react-semaphor 0.1.559 → 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 (168) hide show
  1. package/dist/analytics-protocol/index.js +389 -378
  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-CB3oFAXk.js +658 -0
  7. package/dist/chunks/{assistant-chat-B_4bVE6I.js → assistant-chat-DiVHY3Hw.js} +209 -211
  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-Rdxa3H-s.js → braces-u8VorWJc.js} +1 -1
  11. package/dist/chunks/{comparison-window-caption-CKzQ5LcF.js → comparison-window-caption-DDsIWJYT.js} +201 -201
  12. package/dist/chunks/{context-DVy4HOU0.js → context-TUjw9eqr.js} +1 -1
  13. package/dist/chunks/{custom-visual-inputs-zVa9wX_o.js → custom-visual-inputs-DfolidZ9.js} +1 -1
  14. package/dist/chunks/{dashboard-BziwOVpZ.js → dashboard-BRdZBPqr.js} +1 -1
  15. package/dist/chunks/{dashboard-briefing-launcher-CbeNR-YI.js → dashboard-briefing-launcher-CgvTLndW.js} +1163 -1178
  16. package/dist/chunks/{dashboard-controls-RD6UJs1r.js → dashboard-controls-B4vfSzTF.js} +877 -941
  17. package/dist/chunks/{dashboard-json-DGpv17vL.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-AQ2pQkFp.js → edit-dashboard-visual-DwjZcxj-.js} +9080 -9354
  20. package/dist/chunks/filter-reach-copy-bijwf_-b.js +3596 -0
  21. package/dist/chunks/{filter-value-text-B4l-xqJT.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-B1Xr7W24.js → index-ClwbY3BL.js} +648 -674
  24. package/dist/chunks/{layout-grid-Bbz3zKif.js → layout-grid-CtvCBfOm.js} +1 -1
  25. package/dist/chunks/{list-filter-3sbH0Uy1.js → list-filter-BklYgciR.js} +1 -1
  26. package/dist/chunks/{matrix-analytical-definition-CEe3PGEo.js → matrix-analytical-definition-pU51-JmY.js} +4 -4
  27. package/dist/chunks/{matrix-card-BRNGb1C4.js → matrix-card-CUorIB7Q.js} +3 -3
  28. package/dist/chunks/{matrix-member-presentation-CEegvTqg.js → matrix-member-presentation-Df5UgCGN.js} +1 -1
  29. package/dist/chunks/{matrix-operation-contract-COxrfQTS.js → matrix-operation-contract-BSiGEXVC.js} +221 -214
  30. package/dist/chunks/{metric-comparison-DQx-uX__.js → metric-comparison-95aC0uEO.js} +6 -6
  31. package/dist/chunks/{model-change-CJEj3ZD6.js → model-change-B5wQhg5G.js} +1 -1
  32. package/dist/chunks/{palette-DMJtp3Vn.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-CAj8SiRL.js → pivot-result-identity-olvXJoB9.js} +1 -1
  35. package/dist/chunks/{report-preferences-dialog-0sc8B1lh.js → report-preferences-dialog-C2YUIwKG.js} +55 -55
  36. package/dist/chunks/{report-runtime-context-bYoExeWr.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-DSb1jTtG.js → save-DH4RyrnG.js} +1 -1
  39. package/dist/chunks/{saved-dashboard-context-BQWM3ldX.js → saved-dashboard-context-8jqfI7hI.js} +59 -59
  40. package/dist/chunks/{selection-reducer-DSzMWb4x.js → selection-reducer-CV7K4FI6.js} +1 -1
  41. package/dist/chunks/{semaphor-ready-indicator-Bz14Oma5.js → semaphor-ready-indicator-E2XWyibu.js} +40105 -41658
  42. package/dist/chunks/{shelf-drop-preview-context-DBHAkgch.js → shelf-drop-preview-context-C29EUzDp.js} +570 -570
  43. package/dist/chunks/{source-entity-resolution-BOrmNCEM.js → source-entity-resolution-BXI3nQ5Z.js} +1 -1
  44. package/dist/chunks/{switch-Dq8XPFpT.js → switch-balDSHc7.js} +3 -3
  45. package/dist/chunks/{table-export-sheet-C_RvEUyO.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-LCYMJ3pa.js → token-types-DhYH5YKb.js} +1 -1
  48. package/dist/chunks/{upload-Dr_WAxHQ.js → upload-Ufj8vjyn.js} +1 -1
  49. package/dist/chunks/{use-create-flow-overlay-state-BK3YFkfc.js → use-create-flow-overlay-state-9WsnzEO5.js} +6 -6
  50. package/dist/chunks/{validators-C87JPd-_.js → validators-BtaCFIEB.js} +1206 -1579
  51. package/dist/chunks/{zoned-wall-clock-E35Frf9v.js → zoned-wall-clock-CGLVI40Q.js} +1 -1
  52. package/dist/dashboard/index.js +2 -2
  53. package/dist/dashboard-authoring/index.js +2713 -1459
  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 +262 -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/components/editor/editor-aside/utils.d.ts +1 -1
  64. package/dist/types/components/visual/data-table/types/data-table.d.ts +5 -20
  65. package/dist/types/index.js +50 -51
  66. package/dist/types/lib/formatters/canonical-format-adapter.d.ts +2 -29
  67. package/dist/types/lib/formatters/kpi-number-formatter.d.ts +41 -0
  68. package/dist/types/lib/formatters/raw-temporal-presentation.d.ts +0 -2
  69. package/dist/types/lib/formatters/table-column-settings.d.ts +47 -0
  70. package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +10 -188
  71. package/dist/types/lib/matrix-table/matrix-delivery-policy.d.ts +1 -1
  72. package/dist/types/lib/matrix-table/matrix-delivery.d.ts +16 -372
  73. package/dist/types/lib/stores/dashboard-store.d.ts +0 -1
  74. package/dist/types/lib/stores/editor-store.d.ts +48 -10
  75. package/dist/types/lib/stores/table-actions.d.ts +9 -5
  76. package/dist/types/lib/table-formatting/index.d.ts +0 -2
  77. package/dist/types/lib/table-formatting/table-conditional-formatting-range-source.d.ts +3 -2
  78. package/dist/types/lib/table-formatting/table-conditional-formatting-range.d.ts +3 -2
  79. package/dist/types/lib/table-formatting/table-formatting-normalize.d.ts +1 -2
  80. package/dist/types/lib/table-formatting/table-formatting-render-model.d.ts +9 -0
  81. package/dist/types/lib/table-formatting/table-formatting-types.d.ts +5 -95
  82. package/dist/types/lib/table-formatting/table-presentation-fields.d.ts +35 -0
  83. package/dist/types/lib/types/common-types.d.ts +40 -47
  84. package/dist/types/lib/types/explorer-types.d.ts +11 -43
  85. package/dist/types/lib/utils/card-config-utils.d.ts +8 -0
  86. package/dist/types/lib/utils/card-definition.d.ts +9 -187
  87. package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +169 -513
  88. package/dist/types/shared/analytics-protocol/contracts.d.ts +32 -9
  89. package/dist/types/shared/analytics-protocol/execution-input-schemas.d.ts +108 -980
  90. package/dist/types/shared/analytics-protocol/field-validation.d.ts +1 -0
  91. package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +281 -4624
  92. package/dist/types/shared/analytics-protocol/matrix-operation-contract.d.ts +20 -20
  93. package/dist/types/shared/analytics-protocol/matrix-operation-request.d.ts +18 -18
  94. package/dist/types/shared/analytics-protocol/matrix-path-contract.d.ts +40 -40
  95. package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +3 -203
  96. package/dist/types/shared/analytics-protocol/measure-aggregation-profile.d.ts +12 -0
  97. package/dist/types/shared/analytics-protocol/scalar-value.d.ts +8 -8
  98. package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +8 -0
  99. package/dist/types/shared/assistant-protocol/context.d.ts +69 -69
  100. package/dist/types/shared/dashboard-authoring/canonical-result-keys.d.ts +13 -0
  101. package/dist/types/shared/dashboard-authoring/card-export-request.d.ts +4 -1
  102. package/dist/types/shared/dashboard-authoring/card-formats/sql-date-pattern.d.ts +10 -0
  103. package/dist/types/shared/dashboard-authoring/card-formats/upgrade-card-formats.d.ts +57 -0
  104. package/dist/types/shared/dashboard-authoring/card-settings/apply-card-settings.d.ts +11 -0
  105. package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +52 -0
  106. package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +14 -0
  107. package/dist/types/shared/dashboard-authoring/card-settings/carry-column-settings.d.ts +3 -0
  108. package/dist/types/shared/dashboard-authoring/card-settings/column-format-write.d.ts +8 -0
  109. package/dist/types/shared/dashboard-authoring/card-settings/column-names.d.ts +51 -0
  110. package/dist/types/shared/dashboard-authoring/card-settings/column-sources.d.ts +14 -0
  111. package/dist/types/shared/dashboard-authoring/card-settings/confirm-class.d.ts +9 -0
  112. package/dist/types/shared/dashboard-authoring/card-settings/highlight-inputs.d.ts +19 -0
  113. package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +15 -0
  114. package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +102 -0
  115. package/dist/types/shared/dashboard-authoring/card-settings/read-card-settings.d.ts +10 -0
  116. package/dist/types/shared/dashboard-authoring/card-settings/resolve-card-highlights.d.ts +14 -0
  117. package/dist/types/shared/dashboard-authoring/card-settings/resolve-card-settings.d.ts +59 -0
  118. package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +40 -0
  119. package/dist/types/shared/dashboard-authoring/card-settings/views.d.ts +28 -0
  120. package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +6 -0
  121. package/dist/types/shared/dashboard-authoring/changes/card-types.d.ts +32 -0
  122. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +555 -38
  123. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +27 -8
  124. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +25 -1
  125. package/dist/types/shared/dashboard-authoring/conditional-formatting/editable.d.ts +14 -0
  126. package/dist/types/shared/dashboard-authoring/conditional-formatting/evaluate.d.ts +16 -0
  127. package/dist/types/shared/dashboard-authoring/conditional-formatting/index.d.ts +9 -0
  128. package/dist/types/shared/dashboard-authoring/conditional-formatting/kpi.d.ts +7 -0
  129. package/dist/types/shared/dashboard-authoring/conditional-formatting/resolve-card-column-ref.d.ts +17 -0
  130. package/dist/types/shared/dashboard-authoring/conditional-formatting/retain.d.ts +14 -0
  131. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +4499 -0
  132. package/dist/types/shared/dashboard-authoring/conditional-formatting/store.d.ts +12 -0
  133. package/dist/types/shared/dashboard-authoring/conditional-formatting/types.d.ts +151 -0
  134. package/dist/types/shared/dashboard-authoring/conditional-formatting/upgrade.d.ts +35 -0
  135. package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +62 -62
  136. package/dist/types/shared/dashboard-authoring/index.d.ts +8 -0
  137. package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +123 -0
  138. package/dist/types/shared/dashboard-authoring/matrix-authoring.d.ts +4 -5
  139. package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +24 -736
  140. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +21 -1
  141. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +10 -4
  142. package/dist/types/shared/dashboard-authoring/retired-presentation-fields.d.ts +31 -0
  143. package/dist/types/shared/dashboard-authoring/upgrade-card-presentation.d.ts +14 -0
  144. package/dist/types/shared/dashboard-viewer/bookmark-impact.d.ts +33 -0
  145. package/dist/types/shared/format-utils/formatters/matrix-formatter.d.ts +13 -2
  146. package/dist/types/shared/format-utils/formatters/number-formatter.d.ts +16 -0
  147. package/dist/types/shared/format-utils/index.d.ts +2 -0
  148. package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +10 -366
  149. package/dist/types/shared/format-utils/raw-temporal.d.ts +31 -1
  150. package/dist/types/shared/format-utils/resolve-column-format.d.ts +43 -0
  151. package/dist/types/shared/format-utils/retired-format-adapters.d.ts +68 -0
  152. package/dist/types/shared/format-utils/semantic-format.d.ts +5 -1
  153. package/dist/types/shared/format-utils/stored-value-format.d.ts +16 -0
  154. package/dist/types/shared/format-utils/types/format-types.d.ts +10 -12
  155. package/package.json +2 -2
  156. package/dist/chunks/analytics-base-schemas-BUFUoO6G.js +0 -472
  157. package/dist/chunks/bookmark-state-ssqrs5oP.js +0 -111
  158. package/dist/chunks/document-dashboard-inputs-ChVkcBuu.js +0 -3010
  159. package/dist/chunks/editor-draft-sync-BN5qYHPF.js +0 -15
  160. package/dist/chunks/filter-reach-copy-B5Y7FHzg.js +0 -3411
  161. package/dist/chunks/global-date-filter-utils-DBzEOX9M.js +0 -12222
  162. package/dist/chunks/pivot-result-contract-expectations-DOYhqeZb.js +0 -1926
  163. package/dist/chunks/raw-temporal-presentation-BmT7z6NH.js +0 -584
  164. package/dist/chunks/resolve-dashboard-input-context-B_C_VAJH.js +0 -5520
  165. package/dist/chunks/table-settings-DXj_zXwS.js +0 -637
  166. package/dist/chunks/temporal-input-presentation-AhLSkGPf.js +0 -2939
  167. package/dist/types/lib/table-formatting/table-conditional-formatting-evaluator.d.ts +0 -9
  168. package/dist/types/lib/table-formatting/table-formatting-validation.d.ts +0 -12
@@ -1,23 +1,22 @@
1
- var Fe = Object.defineProperty;
2
- var Re = (e, n, t) => n in e ? Fe(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
- var L = (e, n, t) => Re(e, typeof n != "symbol" ? n + "" : n, t);
4
- import { ai as Ne, L as Be, r as ae, E as se, k as Me, K as Le, P as B } from "./temporal-input-presentation-AhLSkGPf.js";
5
- import { a4 as J, aj as Ue, o as Pe } from "./validators-C87JPd-_.js";
6
- import { l as ze, C as Ve } from "./export-file-format-C-tJsxsf.js";
1
+ var De = Object.defineProperty;
2
+ var _e = (e, n, t) => n in e ? De(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
+ var R = (e, n, t) => _e(e, typeof n != "symbol" ? n + "" : n, t);
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
+ 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 je, ah as qe, U as Ke } from "./matrix-operation-contract-COxrfQTS.js";
9
- import "./analytics-base-schemas-BUFUoO6G.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
- import { r as He } from "./rendered-file-D8xEuVVx.js";
12
- import { cR as Ge, cS as We, cT as Xe, r as Ze, n as Ye } from "./global-date-filter-utils-DBzEOX9M.js";
13
- import { r as Je } from "./matrix-card-BRNGb1C4.js";
14
- import { z as Qe } from "./table-settings-DXj_zXwS.js";
15
- import { r as et, a as tt, b as nt, c as rt, d as ot } from "./raw-temporal-presentation-BmT7z6NH.js";
11
+ import { r as je } from "./rendered-file-D8xEuVVx.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 at, r as it, b as ct, g as lt } from "./custom-visual-inputs-zVa9wX_o.js";
20
- const dt = /* @__PURE__ */ new Set(["table", "detailTable"]), st = /* @__PURE__ */ new Set([
18
+ import { f as tt, r as nt, b as rt, g as ot } from "./custom-visual-inputs-DfolidZ9.js";
19
+ const at = /* @__PURE__ */ new Set(["table", "detailTable"]), it = /* @__PURE__ */ new Set([
21
20
  "bar",
22
21
  "horizontalBar",
23
22
  "line",
@@ -45,30 +44,30 @@ const dt = /* @__PURE__ */ new Set(["table", "detailTable"]), st = /* @__PURE__
45
44
  "treemap",
46
45
  "custom"
47
46
  ]);
48
- function Xn(e) {
47
+ function qn(e) {
49
48
  var o, a, i;
50
- const n = st.has(e.type) && (e.type !== "custom" || !!((o = e.customCardPreferences) != null && o.url));
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 = !!Je(e);
52
+ t = !!Qe(e);
54
53
  } catch {
55
54
  return { formats: [], defaultFormat: null };
56
55
  }
57
- return e.type === "text" || !n || !t && Ge(e) ? { formats: [], defaultFormat: null } : {
58
- formats: ut({
56
+ return e.type === "text" || !n || !t && qe(e) ? { formats: [], defaultFormat: null } : {
57
+ formats: dt({
59
58
  cardType: e.type,
60
59
  allowDownload: (a = e.preferences) == null ? void 0 : a.allowDownload
61
60
  }).filter((c) => c !== "xlsx" || e.type !== "matrixTable" || t),
62
- defaultFormat: pt({
61
+ defaultFormat: st({
63
62
  cardType: e.type,
64
63
  allowDownload: (i = e.preferences) == null ? void 0 : i.allowDownload
65
64
  })
66
65
  };
67
66
  }
68
- function Q(e) {
67
+ function X(e) {
69
68
  return e === "table" || e === "detailTable";
70
69
  }
71
- function mt(e) {
70
+ function ct(e) {
72
71
  var t, r;
73
72
  if (e.type !== "card")
74
73
  return { kind: "rendered", format: e.format };
@@ -80,33 +79,33 @@ function mt(e) {
80
79
  return n ? { kind: "matrix_pdf" } : { kind: "rendered", format: "pdf" };
81
80
  case "csv":
82
81
  case "xlsx":
83
- return n || Q((r = e.settings) == null ? void 0 : r.cardType) ? { kind: "export_job", format: e.format } : { kind: "rendered", format: "csv" };
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 Zn(e) {
87
- return mt(e).kind === "export_job";
85
+ function Kn(e) {
86
+ return ct(e).kind === "export_job";
88
87
  }
89
- function ft(e) {
90
- const { label: n, extension: t, contentType: r } = e === "pdf" || e === "png" ? He(e) : ze(e);
88
+ function lt(e) {
89
+ const { label: n, extension: t, contentType: r } = e === "pdf" || e === "png" ? je(e) : Le(e);
91
90
  return { label: n, extension: t, contentType: r };
92
91
  }
93
- function ut(e) {
94
- return e.allowDownload === !1 ? ["pdf", "png"] : e.cardType === "matrixTable" || Q(e.cardType) ? ["pdf", "png", "csv", "xlsx"] : ["pdf", "png", "csv"];
92
+ function dt(e) {
93
+ return e.allowDownload === !1 ? ["pdf", "png"] : e.cardType === "matrixTable" || X(e.cardType) ? ["pdf", "png", "csv", "xlsx"] : ["pdf", "png", "csv"];
95
94
  }
96
- function Yn(e) {
97
- return ft(e).label;
95
+ function Hn(e) {
96
+ return lt(e).label;
98
97
  }
99
- function pt(e) {
100
- return dt.has(e.cardType) && e.allowDownload !== !1 ? "csv" : "pdf";
98
+ function st(e) {
99
+ return at.has(e.cardType) && e.allowDownload !== !1 ? "csv" : "pdf";
101
100
  }
102
- function Jn(e) {
103
- const { config: n } = e, t = Ne({
101
+ function Gn(e) {
102
+ const { config: n } = e, t = Oe({
104
103
  spec: n.spec,
105
104
  presentation: n.presentation,
106
105
  defaults: n.defaultView,
107
106
  session: e.purpose === "manual" ? e.session : void 0
108
107
  });
109
- return J.parse({
108
+ return W.parse({
110
109
  spec: t.spec,
111
110
  presentation: t.presentation,
112
111
  ...e.content === "flat" ? { mode: "flat", format: e.format === "xlsx" ? "xlsx" : "csv" } : {
@@ -120,7 +119,7 @@ function Jn(e) {
120
119
  }
121
120
  });
122
121
  }
123
- const ht = y.object({
122
+ const mt = y.object({
124
123
  connection_id: y.string().min(1),
125
124
  cardType: y.literal("matrixTable"),
126
125
  resultOwner: y.literal("config"),
@@ -135,11 +134,11 @@ const ht = y.object({
135
134
  semanticDomainId: y.string().optional()
136
135
  }).passthrough(),
137
136
  active_filters: y.array(y.unknown()).default([])
138
- }).passthrough(), Qn = ht.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({
142
- matrix: J,
141
+ matrix: W,
143
142
  acquisition: y.literal("continuation").optional(),
144
143
  presentationExecutionSnapshot: y.unknown()
145
144
  }).passthrough().superRefine((e, n) => {
@@ -150,7 +149,7 @@ const ht = y.object({
150
149
  });
151
150
  })
152
151
  });
153
- function er(e) {
152
+ function Xn(e) {
154
153
  return {
155
154
  ...e.controls,
156
155
  type: "card",
@@ -178,215 +177,190 @@ function er(e) {
178
177
  delimiter: e.delimiter,
179
178
  includeHeaders: e.includeHeaders,
180
179
  timezone: e.reportContext.calendar.tz,
181
- presentationExecutionSnapshot: Be({
180
+ presentationExecutionSnapshot: Fe({
182
181
  reportContext: e.reportContext,
183
182
  resolvedFormats: []
184
183
  })
185
184
  }
186
185
  };
187
186
  }
188
- const K = y.number().int().nonnegative(), tr = 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
- request: J,
192
- layout: je,
193
- rows: y.array(qe).readonly(),
194
- usage: y.object({ rows: K, cells: K, bytes: K }).strict()
190
+ request: W,
191
+ layout: Pe,
192
+ rows: y.array(Ve).readonly(),
193
+ usage: y.object({ rows: V, cells: V, bytes: V }).strict()
195
194
  }).strict(),
196
195
  y.object({
197
196
  status: y.literal("failed"),
198
197
  failure: y.object({
199
- code: y.enum(Ke),
198
+ code: y.enum(ze),
200
199
  limit: y.enum(["rows", "bytes"]).optional(),
201
200
  message: y.string().min(1),
202
201
  retryable: y.boolean()
203
202
  }).strict()
204
203
  }).strict()
205
204
  ]);
206
- function ie(e) {
205
+ function oe(e) {
207
206
  return !e || typeof e != "object" ? !1 : Array.isArray(e.cards);
208
207
  }
209
- function yt(e) {
208
+ function ut(e) {
210
209
  if (!e)
211
210
  return null;
212
211
  if (typeof e == "string")
213
212
  try {
214
213
  const n = JSON.parse(e);
215
- return ie(n) ? n : null;
214
+ return oe(n) ? n : null;
216
215
  } catch {
217
216
  return null;
218
217
  }
219
- return ie(e) ? e : null;
218
+ return oe(e) ? e : null;
220
219
  }
221
- function me(e) {
220
+ 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 nr(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 me(yt(n));
227
+ return de(ut(n));
229
228
  }
230
- class U extends Error {
229
+ class B 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(
234
233
  `Unable to resolve ${r} while capturing report presentation. Refresh the authoring page and select the attachment again.`
235
234
  );
236
- L(this, "code", "temporal_snapshot_target_not_found");
237
- L(this, "selection");
235
+ R(this, "code", "temporal_snapshot_target_not_found");
236
+ R(this, "selection");
238
237
  this.name = "TemporalSnapshotSelectionError", this.selection = t;
239
238
  }
240
239
  }
241
- function gt(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 U(a);
245
+ throw new B(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 U(a);
250
+ throw new B(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
- (h) => Qe(h)
254
+ (p) => et(p)
256
255
  ), s = (l.frames || []).flatMap(
257
- (h) => bt(h, a.cardId)
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
- (h) => !a.cardId || a.cardId === h.id
262
+ (p) => !a.cardId || a.cardId === p.id
264
263
  ),
265
264
  ...m.filter(
266
- (h) => !a.cardId || a.cardId === h.id
265
+ (p) => !a.cardId || a.cardId === p.id
267
266
  )
268
267
  ];
269
- for (const h of u) {
268
+ for (const p of f) {
270
269
  c = !0;
271
270
  const g = r.get(a.attachmentIndex) ?? /* @__PURE__ */ new Set();
272
- g.has(h.id) || (g.add(h.id), r.set(a.attachmentIndex, g), t.push({
273
- card: h,
271
+ g.has(p.id) || (g.add(p.id), r.set(a.attachmentIndex, g), t.push({
272
+ card: p,
274
273
  ...a.attachmentIndex !== void 0 ? { attachmentIndex: a.attachmentIndex } : {}
275
274
  }));
276
275
  }
277
276
  }
278
277
  if (!c)
279
- throw new U(a);
278
+ throw new B(a);
280
279
  }
281
280
  return t;
282
281
  }
283
- function bt(e, n) {
282
+ function pt(e, n) {
284
283
  var i;
285
- const t = n ? (i = e.cards) == null ? void 0 : i.find((c) => c.id === n) : me(e);
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 = at(e, t), o = (e.cards || []).filter(
286
+ const r = tt(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 && (it(r) === "multiple" || o);
293
- return !r || !a ? [t] : ct(
294
- lt({
291
+ ).length > 1, a = r != null && (nt(r) === "multiple" || o);
292
+ return !r || !a ? [t] : rt(
293
+ ot({
295
294
  frame: e,
296
295
  configCard: r,
297
296
  isMultiInputVisual: !0
298
297
  })
299
298
  ).filter((c) => c !== null);
300
299
  }
301
- function rr(e) {
302
- return gt(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, h, g;
305
- const r = ((s = e.resolveCardConfig) == null ? void 0 : s.call(e, n)) ?? n.config, o = We({
303
+ var s, f;
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
308
307
  }), a = {
309
308
  dashboardId: e.dashboard.id,
310
309
  cardId: n.id,
311
310
  ...t !== void 0 ? { attachmentIndex: t } : {}
312
- }, i = o ? o.fields.map((E) => ({
311
+ }, i = o ? o.fields.map((p) => ({
313
312
  scope: a,
314
313
  target: {
315
314
  kind: "field",
316
- fieldId: E.id,
317
- role: E.role
315
+ fieldId: p.id,
316
+ role: p.role
318
317
  },
319
- format: Xe(
320
- E,
318
+ format: He(
319
+ p,
321
320
  {
322
321
  dateStyle: e.valueFormatPreferences.dateStyle,
323
322
  dateTime: { ...e.valueFormatPreferences.dateTime }
324
323
  },
325
324
  e.valueFormatPreferences.locale
326
325
  )
327
- })) : [], c = [], l = Ze(n, r), m = Ye(
326
+ })) : [], c = [], l = Ge(n, r), m = We(
328
327
  n.python || ""
329
328
  );
330
329
  if (n.type === "detailTable" && l === "config") {
331
- const E = (r == null ? void 0 : r.detailColumns) || [], C = [
332
- ...((r == null ? void 0 : r.groupByColumns) || []).map(($) => ({
333
- field: $,
334
- role: "groupby"
335
- })),
336
- ...((r == null ? void 0 : r.metricColumns) || []).map(($) => ({
337
- field: $,
338
- role: "metric"
339
- })),
340
- ...((r == null ? void 0 : r.pivotByColumns) || []).map(($) => ({
341
- field: $,
342
- role: "pivotby"
343
- })),
344
- ...E.map(($) => ({
345
- field: $,
346
- role: "detail"
347
- }))
348
- ], _ = /* @__PURE__ */ new Map(), M = new Set(
349
- C.map(
350
- ({ field: $, role: T }) => et($, T)
351
- )
352
- );
353
- for (const { field: $ } of C) {
354
- const T = $.label;
355
- T && _.set(T, (_.get(T) || 0) + 1);
356
- }
357
- for (const $ of E) {
358
- const T = Ue($.dataType);
359
- if (T !== "date" && T !== "datetime") continue;
360
- const Oe = tt($), q = $.label, oe = nt({
361
- label: q,
362
- labelCount: q && _.get(q) || 0,
363
- rawKey: Oe,
364
- rawKeys: M
365
- });
366
- if (!oe) throw new U(a);
330
+ const p = (r == null ? void 0 : r.detailColumns) || [], g = Xe({
331
+ groupByColumns: r == null ? void 0 : r.groupByColumns,
332
+ metricColumns: r == null ? void 0 : r.metricColumns,
333
+ pivotByColumns: r == null ? void 0 : r.pivotByColumns,
334
+ detailColumns: p
335
+ });
336
+ for (const E of p) {
337
+ const A = Be(E.dataType);
338
+ if (A !== "date" && A !== "datetime") continue;
339
+ const F = g.get(E);
340
+ if (!F) throw new B(a);
367
341
  c.push({
368
342
  scope: a,
369
- target: { kind: "column", columnKey: oe },
370
- format: ae({
371
- format: rt($),
343
+ target: { kind: "column", columnKey: F },
344
+ format: re({
345
+ format: Ze(E),
372
346
  preferences: e.valueFormatPreferences,
373
347
  calendar: e.calendar
374
348
  })
375
349
  });
376
350
  }
377
- } else if (l === "freeform" && ((u = n.sql) != null && u.trim()) && !m.trim())
378
- for (const [E, C] of Object.entries(
379
- ((g = (h = n.preferences) == null ? void 0 : h.tablePrefs) == null ? void 0 : g.columnSettingsMap) || {}
351
+ } else if (l === "freeform" && ((f = n.sql) != null && f.trim()) && !m.trim())
352
+ for (const [p, g] of Object.entries(
353
+ Ye(n)
380
354
  )) {
381
- if (C.type !== "date") continue;
382
- const _ = ot(
383
- C.dateFormat
355
+ if (g.type !== "date") continue;
356
+ const E = Je(
357
+ g.dateFormat
384
358
  );
385
- _ && c.push({
359
+ E && c.push({
386
360
  scope: a,
387
- target: { kind: "column", columnKey: E },
388
- format: ae({
389
- format: _,
361
+ target: { kind: "column", columnKey: p },
362
+ format: re({
363
+ format: E,
390
364
  preferences: e.valueFormatPreferences,
391
365
  calendar: e.calendar
392
366
  })
@@ -396,13 +370,13 @@ function rr(e) {
396
370
  }
397
371
  );
398
372
  }
399
- function It(e) {
373
+ function ht(e) {
400
374
  return !!e && typeof e == "object" && !Array.isArray(e);
401
375
  }
402
- function A(e, n, t) {
403
- return It(e) ? e : (t.push({ field: n, message: "Expected an object." }), {});
376
+ function T(e, n, t) {
377
+ return ht(e) ? e : (t.push({ field: n, message: "Expected an object." }), {});
404
378
  }
405
- function w(e, n, t, r) {
379
+ function S(e, n, t, r) {
406
380
  const o = new Set(t);
407
381
  Object.keys(e).forEach((a) => {
408
382
  o.has(a) || r.push({
@@ -411,7 +385,7 @@ function w(e, n, t, r) {
411
385
  });
412
386
  });
413
387
  }
414
- function F(e, n, t, r, o = {}) {
388
+ function D(e, n, t, r, o = {}) {
415
389
  if (e == null)
416
390
  return;
417
391
  if (typeof e != "string") {
@@ -432,8 +406,8 @@ function F(e, n, t, r, o = {}) {
432
406
  }
433
407
  return a;
434
408
  }
435
- function ee(e, n, t) {
436
- const r = F(e, n, 2e3, t);
409
+ function Z(e, n, t) {
410
+ const r = D(e, n, 2e3, t);
437
411
  if (r)
438
412
  try {
439
413
  return new URL(r), r;
@@ -442,13 +416,13 @@ function ee(e, n, t) {
442
416
  return;
443
417
  }
444
418
  }
445
- function ce(e, n, t) {
446
- const r = A(e, n, t);
447
- w(r, n, ["tokens", "components"], t);
419
+ function ae(e, n, t) {
420
+ const r = T(e, n, t);
421
+ S(r, n, ["tokens", "components"], t);
448
422
  const o = {};
449
423
  if (r.tokens !== void 0) {
450
- const a = A(r.tokens, `${n}.tokens`, t);
451
- w(
424
+ const a = T(r.tokens, `${n}.tokens`, t);
425
+ S(
452
426
  a,
453
427
  `${n}.tokens`,
454
428
  ["color", "typography"],
@@ -456,7 +430,7 @@ function ce(e, n, t) {
456
430
  );
457
431
  const i = {};
458
432
  if (a.color !== void 0) {
459
- const c = A(
433
+ const c = T(
460
434
  a.color,
461
435
  `${n}.tokens.color`,
462
436
  t
@@ -473,37 +447,37 @@ function ce(e, n, t) {
473
447
  "warning",
474
448
  "info"
475
449
  ];
476
- w(c, `${n}.tokens.color`, l, t);
450
+ S(c, `${n}.tokens.color`, l, t);
477
451
  const m = {};
478
452
  l.forEach((s) => {
479
- const u = F(
453
+ const f = D(
480
454
  c[s],
481
455
  `${n}.tokens.color.${s}`,
482
456
  120,
483
457
  t
484
458
  );
485
- u !== void 0 && (m[s] = u);
459
+ f !== void 0 && (m[s] = f);
486
460
  }), i.color = m;
487
461
  }
488
462
  if (a.typography !== void 0) {
489
- const c = A(
463
+ const c = T(
490
464
  a.typography,
491
465
  `${n}.tokens.typography`,
492
466
  t
493
467
  );
494
- w(
468
+ S(
495
469
  c,
496
470
  `${n}.tokens.typography`,
497
471
  ["fontFamily", "monoFontFamily"],
498
472
  t
499
473
  );
500
- const l = F(
474
+ const l = D(
501
475
  c.fontFamily,
502
476
  `${n}.tokens.typography.fontFamily`,
503
477
  500,
504
478
  t,
505
479
  { allowEmpty: !0 }
506
- ), m = F(
480
+ ), m = D(
507
481
  c.monoFontFamily,
508
482
  `${n}.tokens.typography.monoFontFamily`,
509
483
  500,
@@ -518,24 +492,24 @@ function ce(e, n, t) {
518
492
  o.tokens = i;
519
493
  }
520
494
  if (r.components !== void 0) {
521
- const a = A(
495
+ const a = T(
522
496
  r.components,
523
497
  `${n}.components`,
524
498
  t
525
499
  );
526
- if (w(a, `${n}.components`, ["chart"], t), a.chart !== void 0) {
527
- const i = A(
500
+ if (S(a, `${n}.components`, ["chart"], t), a.chart !== void 0) {
501
+ const i = T(
528
502
  a.chart,
529
503
  `${n}.components.chart`,
530
504
  t
531
505
  );
532
- w(i, `${n}.components.chart`, ["palette"], t);
506
+ S(i, `${n}.components.chart`, ["palette"], t);
533
507
  let c;
534
508
  i.palette !== void 0 && (Array.isArray(i.palette) ? i.palette.length > 20 ? t.push({
535
509
  field: `${n}.components.chart.palette`,
536
510
  message: "Expected 20 colors or fewer."
537
511
  }) : c = i.palette.map(
538
- (l, m) => F(
512
+ (l, m) => D(
539
513
  l,
540
514
  `${n}.components.chart.palette.${m}`,
541
515
  120,
@@ -551,22 +525,22 @@ function ce(e, n, t) {
551
525
  }
552
526
  return o;
553
527
  }
554
- function vt(e, n) {
555
- const t = "presentation.appearance", r = A(e, t, n);
556
- w(r, t, ["version", "schemes"], n);
528
+ function yt(e, n) {
529
+ const t = "presentation.appearance", r = T(e, t, n);
530
+ S(r, t, ["version", "schemes"], n);
557
531
  const o = {};
558
532
  if (r.version !== void 0 && (typeof r.version != "number" || !Number.isFinite(r.version) ? n.push({ field: `${t}.version`, message: "Expected a number." }) : o.version = r.version), r.schemes !== void 0) {
559
- const a = A(r.schemes, `${t}.schemes`, n);
560
- w(a, `${t}.schemes`, ["light", "dark"], n), o.schemes = {
533
+ const a = T(r.schemes, `${t}.schemes`, n);
534
+ S(a, `${t}.schemes`, ["light", "dark"], n), o.schemes = {
561
535
  ...a.light !== void 0 ? {
562
- light: ce(
536
+ light: ae(
563
537
  a.light,
564
538
  `${t}.schemes.light`,
565
539
  n
566
540
  )
567
541
  } : {},
568
542
  ...a.dark !== void 0 ? {
569
- dark: ce(
543
+ dark: ae(
570
544
  a.dark,
571
545
  `${t}.schemes.dark`,
572
546
  n
@@ -576,23 +550,23 @@ function vt(e, n) {
576
550
  }
577
551
  return o;
578
552
  }
579
- function Et(e, n) {
580
- const t = "presentation.brandOverrides", r = A(e, t, n);
581
- w(r, t, ["brandName", "logoUrl", "link"], n);
582
- const o = F(
553
+ function gt(e, n) {
554
+ const t = "presentation.brandOverrides", r = T(e, t, n);
555
+ S(r, t, ["brandName", "logoUrl", "link"], n);
556
+ const o = D(
583
557
  r.brandName,
584
558
  `${t}.brandName`,
585
559
  200,
586
560
  n
587
- ), a = ee(r.logoUrl, `${t}.logoUrl`, n), i = F(r.link, `${t}.link`, 120, n);
561
+ ), a = Z(r.logoUrl, `${t}.logoUrl`, n), i = D(r.link, `${t}.link`, 120, n);
588
562
  return {
589
563
  ...o !== void 0 ? { brandName: o } : {},
590
564
  ...a !== void 0 ? { logoUrl: a } : {},
591
565
  ...i !== void 0 ? { link: i } : {}
592
566
  };
593
567
  }
594
- function $t(e, n) {
595
- const t = "presentation.fragments", r = A(e, t, n), o = [
568
+ function bt(e, n) {
569
+ const t = "presentation.fragments", r = T(e, t, n), o = [
596
570
  "preHeaderText",
597
571
  "headerBannerHtml",
598
572
  "signatureHtml",
@@ -600,10 +574,10 @@ function $t(e, n) {
600
574
  "disclaimerHtml",
601
575
  "unsubscribeUrl"
602
576
  ];
603
- w(r, t, o, n);
577
+ S(r, t, o, n);
604
578
  const a = {};
605
579
  return o.forEach((i) => {
606
- const c = i === "unsubscribeUrl" ? ee(r[i], `${t}.${i}`, n) : F(
580
+ const c = i === "unsubscribeUrl" ? Z(r[i], `${t}.${i}`, n) : D(
607
581
  r[i],
608
582
  `${t}.${i}`,
609
583
  i === "preHeaderText" ? 200 : 5e3,
@@ -613,15 +587,15 @@ function $t(e, n) {
613
587
  c !== void 0 && (a[i] = c);
614
588
  }), a;
615
589
  }
616
- function xt(e) {
590
+ function It(e) {
617
591
  const n = [], t = {};
618
- if (e.appearance !== void 0 && (t.appearance = vt(e.appearance, n)), e.brandOverrides !== void 0 && (t.brandOverrides = Et(e.brandOverrides, n)), e.fragments !== void 0 && (t.fragments = $t(e.fragments, n)), e.viewUrl !== void 0) {
619
- const r = ee(e.viewUrl, "presentation.viewUrl", n);
592
+ if (e.appearance !== void 0 && (t.appearance = yt(e.appearance, n)), e.brandOverrides !== void 0 && (t.brandOverrides = gt(e.brandOverrides, n)), e.fragments !== void 0 && (t.fragments = bt(e.fragments, n)), e.viewUrl !== void 0) {
593
+ const r = Z(e.viewUrl, "presentation.viewUrl", n);
620
594
  r !== void 0 && (t.viewUrl = r);
621
595
  }
622
596
  return { value: t, issues: n };
623
597
  }
624
- const P = [
598
+ const M = [
625
599
  "SUN",
626
600
  "MON",
627
601
  "TUE",
@@ -629,21 +603,21 @@ const P = [
629
603
  "THU",
630
604
  "FRI",
631
605
  "SAT"
632
- ], fe = new Map(
633
- P.map((e, n) => [e, n])
634
- ), V = [1, 2, 3, 4, 5], ue = [1, 2, 3, 6, 12], pe = {
606
+ ], se = new Map(
607
+ M.map((e, n) => [e, n])
608
+ ), U = [1, 2, 3, 4, 5], me = [1, 2, 3, 6, 12], ue = {
635
609
  1: "first",
636
610
  2: "second",
637
611
  3: "third",
638
612
  4: "fourth",
639
613
  [-1]: "last"
640
- }, or = {
614
+ }, Qn = {
641
615
  frequency: "weekly",
642
616
  hour: 9,
643
617
  minute: 0,
644
618
  weekdays: [1]
645
- }, S = { ok: !1, issue: "Choose a supported schedule." };
646
- function Ct(e) {
619
+ }, C = { ok: !1, issue: "Choose a supported schedule." };
620
+ function vt(e) {
647
621
  if (typeof e != "string" || e.length === 0 || e !== e.trim() || /^(?:(?:UTC|GMT)[+-]|[+-]\d{2}:\d{2}$)/.test(e))
648
622
  return !1;
649
623
  try {
@@ -652,17 +626,17 @@ function Ct(e) {
652
626
  return !1;
653
627
  }
654
628
  }
655
- function Tt(e) {
629
+ function Et(e) {
656
630
  return Number.isInteger(e.minute) && e.minute >= 0 && e.minute <= 59 && Number.isInteger(e.hour) && e.hour >= 0 && e.hour <= 23;
657
631
  }
658
- function he(e) {
632
+ function fe(e) {
659
633
  if (e.length === 0) return null;
660
634
  const n = [...e].sort((t, r) => t - r);
661
635
  return n.some(
662
636
  (t, r) => !Number.isInteger(t) || t < 0 || t > 6 || r > 0 && t === n[r - 1]
663
637
  ) ? null : n;
664
638
  }
665
- function ye(e) {
639
+ function pe(e) {
666
640
  const t = [...e.filter((o) => o !== "last")].sort((o, a) => o - a);
667
641
  if (t.some(
668
642
  (o, a) => !Number.isInteger(o) || o < 1 || o > 31 || a > 0 && o === t[a - 1]
@@ -671,101 +645,101 @@ function ye(e) {
671
645
  const r = e.includes("last") ? [...t, "last"] : t;
672
646
  return r.length > 0 ? r : null;
673
647
  }
674
- function N(e, n) {
648
+ function O(e, n) {
675
649
  const t = [];
676
650
  for (let r = 0; r < 12 / e; r += 1)
677
651
  t.push((n + r * e) % 12);
678
652
  return t.sort((r, o) => r - o);
679
653
  }
680
- function St(e, n) {
681
- return e === 1 ? "*" : N(e, n).map((t) => t + 1).join(",");
654
+ function $t(e, n) {
655
+ return e === 1 ? "*" : O(e, n).map((t) => t + 1).join(",");
682
656
  }
683
- function ge(e, n) {
684
- return e.every((t) => Rt(t, n));
657
+ function he(e, n) {
658
+ return e.every((t) => Dt(t, n));
685
659
  }
686
- function ar(e) {
687
- if (!Tt(e))
660
+ function er(e) {
661
+ if (!Et(e))
688
662
  throw new Error("Choose a valid schedule time.");
689
663
  const n = `${e.minute} ${e.hour}`;
690
664
  switch (e.frequency) {
691
665
  case "daily":
692
- return e.weekdaysOnly ? `${n} * * ${V.map((t) => P[t]).join(",")}` : `${n} * * *`;
666
+ return e.weekdaysOnly ? `${n} * * ${U.map((t) => M[t]).join(",")}` : `${n} * * *`;
693
667
  case "weekly": {
694
- const t = he(e.weekdays);
668
+ const t = fe(e.weekdays);
695
669
  if (!t) throw new Error("Choose at least one weekday.");
696
- return `${n} * * ${t.map((r) => P[r]).join(",")}`;
670
+ return `${n} * * ${t.map((r) => M[r]).join(",")}`;
697
671
  }
698
672
  case "monthly": {
699
- if (!ue.includes(e.interval) || !Number.isInteger(e.startMonth) || e.startMonth < 0 || e.startMonth >= e.interval)
673
+ if (!me.includes(e.interval) || !Number.isInteger(e.startMonth) || e.startMonth < 0 || e.startMonth >= e.interval)
700
674
  throw new Error("Choose a valid month cycle.");
701
- const t = St(e.interval, e.startMonth);
675
+ const t = $t(e.interval, e.startMonth);
702
676
  if (e.on.type === "days") {
703
- const i = ye(e.on.days);
677
+ const i = pe(e.on.days);
704
678
  if (!i) throw new Error("Choose at least one day of the month.");
705
- const c = N(e.interval, e.startMonth);
706
- if (!ge(i, c))
679
+ const c = O(e.interval, e.startMonth);
680
+ if (!he(i, c))
707
681
  throw new Error("Choose a day that occurs in the chosen months.");
708
682
  const l = i.map((m) => m === "last" ? "L" : String(m)).join(",");
709
683
  return `${n} ${l} ${t} *`;
710
684
  }
711
685
  const { ordinal: r, weekday: o } = e.on;
712
- if (!Number.isInteger(o) || o < 0 || o > 6 || !(r in pe))
686
+ if (!Number.isInteger(o) || o < 0 || o > 6 || !(r in ue))
713
687
  throw new Error("Choose a valid weekday.");
714
- const a = P[o];
688
+ const a = M[o];
715
689
  return `${n} * ${t} ${r === -1 ? `${a}L` : `${a}#${r}`}`;
716
690
  }
717
691
  }
718
692
  }
719
- function kt(e) {
693
+ function Ct(e) {
720
694
  if (e === "*") return { interval: 1, startMonth: 0 };
721
695
  const n = e.split(",");
722
696
  if (n.some((i) => !/^([1-9]|1[0-2])$/.test(i))) return null;
723
697
  const t = n.map((i) => Number(i) - 1), r = 12 / t.length;
724
- if (!ue.includes(r))
698
+ if (!me.includes(r))
725
699
  return null;
726
- const o = t[0], a = N(
700
+ const o = t[0], a = O(
727
701
  r,
728
702
  o
729
703
  );
730
704
  return o >= r || a.length !== t.length || a.some((i, c) => i !== t[c]) ? null : { interval: r, startMonth: o };
731
705
  }
732
- function At(e) {
706
+ function xt(e) {
733
707
  const n = e.split(",");
734
708
  if (n.some((o) => !/^(L|[1-9]|[12]\d|3[01])$/.test(o))) return null;
735
709
  const t = n.map(
736
710
  (o) => o === "L" ? "last" : Number(o)
737
- ), r = ye(t);
711
+ ), r = pe(t);
738
712
  return !r || r.some((o, a) => o !== t[a]) ? null : r;
739
713
  }
740
- function wt(e) {
714
+ function Tt(e) {
741
715
  const n = /^([A-Z]{3})(?:#([1-4])|(L))$/.exec(e);
742
716
  if (!n) return null;
743
- const t = fe.get(n[1]);
717
+ const t = se.get(n[1]);
744
718
  return t === void 0 ? null : {
745
719
  weekday: t,
746
720
  ordinal: n[3] ? -1 : Number(n[2])
747
721
  };
748
722
  }
749
- function be(e) {
723
+ function ye(e) {
750
724
  if (typeof e != "string" || e.length === 0 || e !== e.trim() || e.includes(" "))
751
- return S;
725
+ return C;
752
726
  const n = e.split(" ");
753
- if (n.length !== 5) return S;
727
+ if (n.length !== 5) return C;
754
728
  const [t, r, o, a, i] = n;
755
729
  if (!/^(0|[1-9]\d?)$/.test(t) || !/^(0|[1-9]\d?)$/.test(r))
756
- return S;
730
+ return C;
757
731
  const c = Number(t), l = Number(r);
758
- if (c > 59 || l > 23) return S;
732
+ if (c > 59 || l > 23) return C;
759
733
  if (a === "*" && o === "*" && i === "*")
760
734
  return {
761
735
  ok: !0,
762
736
  value: { frequency: "daily", hour: l, minute: c, weekdaysOnly: !1 }
763
737
  };
764
738
  if (a === "*" && o === "*" && !i.includes("#") && !i.endsWith("L")) {
765
- const u = i.split(",").map((E) => fe.get(E));
766
- if (u.some((E) => E === void 0)) return S;
767
- const h = u, g = he(h);
768
- return !g || g.some((E, C) => E !== h[C]) ? S : g.length === V.length && g.every((E, C) => E === V[C]) ? {
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]) ? {
769
743
  ok: !0,
770
744
  value: { frequency: "daily", hour: l, minute: c, weekdaysOnly: !0 }
771
745
  } : {
@@ -773,11 +747,11 @@ function be(e) {
773
747
  value: { frequency: "weekly", hour: l, minute: c, weekdays: g }
774
748
  };
775
749
  }
776
- const m = kt(a);
777
- if (!m) return S;
750
+ const m = Ct(a);
751
+ if (!m) return C;
778
752
  if (o !== "*" && i === "*") {
779
- const s = At(o), u = N(m.interval, m.startMonth);
780
- return !s || !ge(s, u) ? S : {
753
+ const s = xt(o), f = O(m.interval, m.startMonth);
754
+ return !s || !he(s, f) ? C : {
781
755
  ok: !0,
782
756
  value: {
783
757
  frequency: "monthly",
@@ -789,7 +763,7 @@ function be(e) {
789
763
  };
790
764
  }
791
765
  if (o === "*" && i !== "*") {
792
- const s = wt(i);
766
+ const s = Tt(i);
793
767
  return s ? {
794
768
  ok: !0,
795
769
  value: {
@@ -799,18 +773,18 @@ function be(e) {
799
773
  ...m,
800
774
  on: { type: "weekday", ...s }
801
775
  }
802
- } : S;
776
+ } : C;
803
777
  }
804
- return S;
778
+ return C;
805
779
  }
806
- function Dt(e, n, t) {
780
+ function St(e, n, t) {
807
781
  return new Intl.DateTimeFormat(t, {
808
782
  hour: "numeric",
809
783
  minute: "2-digit",
810
784
  timeZone: "UTC"
811
785
  }).format(new Date(Date.UTC(2020, 0, 1, e, n)));
812
786
  }
813
- function _t(e, n) {
787
+ function kt(e, n) {
814
788
  var t;
815
789
  if (e === "UTC") return "UTC";
816
790
  try {
@@ -822,29 +796,29 @@ function _t(e, n) {
822
796
  return null;
823
797
  }
824
798
  }
825
- function le(e) {
799
+ function ie(e) {
826
800
  return e.length <= 1 ? e.join("") : e.length === 2 ? `${e[0]} and ${e[1]}` : `${e.slice(0, -1).join(", ")} and ${e[e.length - 1]}`;
827
801
  }
828
- function Ot(e) {
802
+ function At(e) {
829
803
  const n = e % 100;
830
804
  return n >= 11 && n <= 13 ? `${e}th` : `${e}${["th", "st", "nd", "rd"][e % 10] ?? "th"}`;
831
805
  }
832
- function Ft(e, n, t) {
806
+ function wt(e, n, t) {
833
807
  const r = (a, i) => new Intl.DateTimeFormat(t, { month: i, timeZone: "UTC" }).format(
834
808
  new Date(Date.UTC(2020, a, 1))
835
809
  );
836
810
  if (e === 1) return "every month";
837
811
  if (e === 12) return `${r(n, "long")} each year`;
838
- const o = N(e, n).map((a) => r(a, "short")).join(", ");
812
+ const o = O(e, n).map((a) => r(a, "short")).join(", ");
839
813
  return e === 3 ? `each quarter (${o})` : `every ${e} months (${o})`;
840
814
  }
841
- function ir(e, n, t = "en-US") {
842
- const r = be(e);
815
+ function tr(e, n, t = "en-US") {
816
+ const r = ye(e);
843
817
  if (!r.ok) return null;
844
818
  try {
845
- const o = r.value, a = _t(n, t);
819
+ const o = r.value, a = kt(n, t);
846
820
  if (!a) return null;
847
- const i = `at ${Dt(o.hour, o.minute, t)} ${a}`, c = (l) => new Intl.DateTimeFormat(t, {
821
+ const i = `at ${St(o.hour, o.minute, t)} ${a}`, c = (l) => new Intl.DateTimeFormat(t, {
848
822
  weekday: "long",
849
823
  timeZone: "UTC"
850
824
  }).format(new Date(Date.UTC(2023, 0, 1 + l)));
@@ -852,57 +826,57 @@ function ir(e, n, t = "en-US") {
852
826
  case "daily":
853
827
  return o.weekdaysOnly ? `Every weekday, Monday to Friday, ${i}` : `Every day ${i}`;
854
828
  case "weekly":
855
- return `Every ${le(o.weekdays.map(c))} ${i}`;
829
+ return `Every ${ie(o.weekdays.map(c))} ${i}`;
856
830
  case "monthly": {
857
- const l = Ft(o.interval, o.startMonth, t);
831
+ const l = wt(o.interval, o.startMonth, t);
858
832
  if (o.on.type === "weekday")
859
- return `On the ${pe[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}`;
860
834
  const m = o.on.days.map(
861
- (s) => s === "last" ? "last day" : Ot(s)
835
+ (s) => s === "last" ? "last day" : At(s)
862
836
  );
863
- return `On the ${le(m)} of ${l} ${i}`;
837
+ return `On the ${ie(m)} of ${l} ${i}`;
864
838
  }
865
839
  }
866
840
  } catch {
867
841
  return null;
868
842
  }
869
843
  }
870
- const Ie = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
871
- function Rt(e, n) {
872
- return e === "last" || n.some((t) => e <= Ie[t]);
844
+ const ge = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
845
+ function Dt(e, n) {
846
+ return e === "last" || n.some((t) => e <= ge[t]);
873
847
  }
874
- function cr(e) {
848
+ function nr(e) {
875
849
  if (e.frequency !== "monthly" || e.on.type !== "days") return null;
876
850
  const n = e.on.days.filter((o) => o !== "last");
877
851
  if (n.length === 0) return null;
878
- const t = Math.max(...n), r = N(e.interval, e.startMonth).filter(
879
- (o) => t > (o === 1 ? 28 : Ie[o])
852
+ const t = Math.max(...n), r = O(e.interval, e.startMonth).filter(
853
+ (o) => t > (o === 1 ? 28 : ge[o])
880
854
  );
881
855
  return r.length > 0 ? { day: t, months: r } : null;
882
856
  }
883
- function Nt(e, n) {
857
+ function _t(e, n) {
884
858
  return new Date(Date.UTC(e, n + 1, 0)).getUTCDate();
885
859
  }
886
- function Bt(e, n, t, r) {
860
+ function Ot(e, n, t, r) {
887
861
  const o = new Date(Date.UTC(n, t, r)).getUTCDay();
888
862
  switch (e.frequency) {
889
863
  case "daily":
890
- return !e.weekdaysOnly || V.includes(o);
864
+ return !e.weekdaysOnly || U.includes(o);
891
865
  case "weekly":
892
866
  return e.weekdays.includes(o);
893
867
  case "monthly": {
894
- if (!N(e.interval, e.startMonth).includes(t))
868
+ if (!O(e.interval, e.startMonth).includes(t))
895
869
  return !1;
896
- const a = Nt(n, t);
870
+ const a = _t(n, t);
897
871
  return e.on.type === "days" ? e.on.days.some(
898
872
  (i) => i === "last" ? r === a : i === r
899
873
  ) : o !== e.on.weekday ? !1 : e.on.ordinal === -1 ? r + 7 > a : Math.ceil(r / 7) === e.on.ordinal;
900
874
  }
901
875
  }
902
876
  }
903
- function lr(e, n, t, r) {
904
- const o = be(e);
905
- if (!o.ok || !Ct(n)) return [];
877
+ function rr(e, n, t, r) {
878
+ const o = ye(e);
879
+ if (!o.ok || !vt(n)) return [];
906
880
  const a = o.value, i = new Intl.DateTimeFormat("en-US", {
907
881
  timeZone: n,
908
882
  hourCycle: "h23",
@@ -912,16 +886,16 @@ function lr(e, n, t, r) {
912
886
  hour: "numeric",
913
887
  minute: "numeric"
914
888
  }).formatToParts(t), c = (s) => {
915
- var u;
916
- return Number((u = i.find((h) => h.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);
917
891
  }, l = new Date(Date.UTC(c("year"), c("month") - 1, c("day")));
918
892
  c("hour") * 60 + c("minute") >= a.hour * 60 + a.minute && l.setUTCDate(l.getUTCDate() + 1);
919
893
  const m = [];
920
894
  for (let s = 0; s < 366 * 4 * (r + 1) && m.length < r; s += 1)
921
- Bt(a, l.getUTCFullYear(), l.getUTCMonth(), l.getUTCDate()) && m.push(l.toISOString().slice(0, 10)), l.setUTCDate(l.getUTCDate() + 1);
895
+ Ot(a, l.getUTCFullYear(), l.getUTCMonth(), l.getUTCDate()) && m.push(l.toISOString().slice(0, 10)), l.setUTCDate(l.getUTCDate() + 1);
922
896
  return m;
923
897
  }
924
- const Mt = Object.freeze([
898
+ const Ft = Object.freeze([
925
899
  "PDF_ROW_LIMIT_EXCEEDED",
926
900
  "PDF_SIZE_LIMIT_EXCEEDED",
927
901
  "TABLE_COMPLETENESS_UNVERIFIED",
@@ -937,14 +911,14 @@ const Mt = Object.freeze([
937
911
  "EXPORT_NO_ROWS",
938
912
  // A dashboard sheet too tall for one image (PNG exports PN-D7).
939
913
  "IMAGE_TOO_LARGE"
940
- ]), Lt = new Set(Mt);
941
- function Ut(e) {
942
- return typeof e == "string" && Lt.has(e);
914
+ ]), Nt = new Set(Ft);
915
+ function Rt(e) {
916
+ return typeof e == "string" && Nt.has(e);
943
917
  }
944
- function Pt(e) {
918
+ function Bt(e) {
945
919
  if (!e || typeof e != "object" || Array.isArray(e)) return null;
946
920
  const n = e;
947
- return typeof n.index != "number" || !Number.isInteger(n.index) || n.index < 0 || typeof n.title != "string" || !ve.includes(n.format) || !Ut(n.code) || typeof n.reason != "string" || typeof n.diagnostic != "string" ? null : {
921
+ 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 : {
948
922
  index: n.index,
949
923
  title: n.title,
950
924
  format: n.format,
@@ -953,39 +927,39 @@ function Pt(e) {
953
927
  diagnostic: n.diagnostic
954
928
  };
955
929
  }
956
- function dr(e) {
930
+ function or(e) {
957
931
  if (!e || typeof e != "object" || Array.isArray(e)) return [];
958
932
  const n = e.omittedAttachments;
959
933
  return Array.isArray(n) ? n.flatMap((t) => {
960
- const r = Pt(t);
934
+ const r = Bt(t);
961
935
  return r ? [r] : [];
962
936
  }) : [];
963
937
  }
964
- function sr(e) {
938
+ function ar(e) {
965
939
  return e != null && e.role ? e.type === "tenant" ? e.role === "POWER_USER" : ["AUTHOR", "ADMIN", "SUPER_ADMIN"].includes(e.role) : !1;
966
940
  }
967
- function mr(e) {
941
+ function ir(e) {
968
942
  return e.canCreate ? [
969
943
  ...e.scheduledReportAvailable ? ["scheduled_report"] : [],
970
944
  ...e.analyticalBriefingsEnabled ? ["analytical_briefing"] : []
971
945
  ] : [];
972
946
  }
973
- function zt(e) {
947
+ function Mt(e) {
974
948
  const n = (e == null ? void 0 : e.channels) ?? [];
975
949
  return n.length === 1 && n[0] === "EMAIL";
976
950
  }
977
- function Vt(e) {
978
- return e.body.type === "generated_analysis" ? "Analytical briefing" : e.body.type === "custom_message" && e.attachments.length > 0 && zt(e.deliveryConfig) ? e.scheduleExpr ? "Scheduled report" : "On-demand report" : "Plain briefing";
951
+ function Lt(e) {
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";
979
953
  }
980
- function fr(e) {
981
- const n = Vt(e), t = n === "Scheduled report" || n === "On-demand report" ? "report" : "briefing";
954
+ function cr(e) {
955
+ const n = Lt(e), t = n === "Scheduled report" || n === "On-demand report" ? "report" : "briefing";
982
956
  return {
983
957
  typeLabel: n,
984
958
  noun: t,
985
959
  pluralNoun: t === "report" ? "reports" : "briefings"
986
960
  };
987
961
  }
988
- const Z = "BRIEFING", jt = ["markdown", "html"], Y = ["markdown"], H = 20, f = {
962
+ const H = "BRIEFING", Ut = ["markdown", "html"], G = ["markdown"], z = 20, u = {
989
963
  name: 500,
990
964
  description: 2e3,
991
965
  instruction: 5e4,
@@ -1001,20 +975,20 @@ const Z = "BRIEFING", jt = ["markdown", "html"], Y = ["markdown"], H = 20, f = {
1001
975
  presentationTone: 500,
1002
976
  presentationFormat: 2e3,
1003
977
  id: 500
1004
- }, x = {
978
+ }, $ = {
1005
979
  maxBlocks: 50,
1006
980
  maxTableRows: 100,
1007
981
  maxTableColumns: 20,
1008
- maxTableCellCharacters: f.contentCell,
1009
- maxParagraphCharacters: f.contentText,
1010
- maxFindingCharacters: f.contentText,
982
+ maxTableCellCharacters: u.contentCell,
983
+ maxParagraphCharacters: u.contentText,
984
+ maxFindingCharacters: u.contentText,
1011
985
  maxListItems: 100,
1012
986
  // A kpi_grid is rendered as a 2-up tile arrangement in emails. Cap at 8 so
1013
987
  // the visual stays at most 4 rows (4 columns wide on desktop would force
1014
988
  // tiny tiles in narrow client panels; 2-up was the chosen layout).
1015
989
  maxKpiTiles: 8
1016
990
  };
1017
- function qt(e) {
991
+ function Pt(e) {
1018
992
  if (e === null || typeof e != "object" || Array.isArray(e))
1019
993
  return !1;
1020
994
  const n = e;
@@ -1024,60 +998,60 @@ function qt(e) {
1024
998
  if (t === null || typeof t != "object" || Array.isArray(t))
1025
999
  return !1;
1026
1000
  const r = t;
1027
- return (r.kind === "metric" && typeof r.metricId == "string" && !!r.metricId.trim() || r.kind === "column" && typeof r.columnKey == "string" && !!r.columnKey.trim() || r.kind === "matrix_measure" && typeof r.measureId == "string" && !!r.measureId.trim()) && se(n.format).ok;
1001
+ return (r.kind === "metric" && typeof r.metricId == "string" && !!r.metricId.trim() || r.kind === "column" && typeof r.columnKey == "string" && !!r.columnKey.trim() || r.kind === "matrix_measure" && typeof r.measureId == "string" && !!r.measureId.trim()) && le(n.format).ok;
1028
1002
  }
1029
- function Kt(e) {
1030
- return e == null ? "" : qt(e) ? Me(e.value, e.format) : String(e);
1003
+ function Vt(e) {
1004
+ return e == null ? "" : Pt(e) ? Ne(e.value, e.format) : String(e);
1031
1005
  }
1032
- function ur(e) {
1006
+ function lr(e) {
1033
1007
  return [e.delta, e.percentChange].filter(
1034
1008
  (n) => n != null
1035
- ).map(Kt).filter(Boolean).join(" / ");
1009
+ ).map(Vt).filter(Boolean).join(" / ");
1036
1010
  }
1037
- const ve = ["pdf", "png", "csv", "xlsx"], Ee = new Set(jt), Ht = /* @__PURE__ */ new Set([
1011
+ const be = ["pdf", "png", "csv", "xlsx"], Ie = new Set(Ut), zt = /* @__PURE__ */ new Set([
1038
1012
  "EMAIL",
1039
1013
  "WEBHOOK",
1040
1014
  "SLACK",
1041
1015
  "IN_APP",
1042
1016
  "TELEGRAM"
1043
- ]), G = {
1017
+ ]), j = {
1044
1018
  maxToolCalls: { min: 1, max: 100 },
1045
1019
  maxPlanningIterations: { min: 1, max: 10 },
1046
1020
  maxRows: { min: 1, max: 1e5 },
1047
1021
  timeoutMs: { min: 1e3, max: 30 * 6e4 }
1048
- }, Gt = /* @__PURE__ */ new Set([
1022
+ }, jt = /* @__PURE__ */ new Set([
1049
1023
  "letter",
1050
1024
  "legal",
1051
1025
  "a4",
1052
1026
  "a3",
1053
1027
  "tabloid"
1054
- ]), Wt = /* @__PURE__ */ new Set([
1028
+ ]), qt = /* @__PURE__ */ new Set([
1055
1029
  "portrait",
1056
1030
  "landscape"
1057
- ]), Xt = /* @__PURE__ */ new Set([",", ";", " "]), Zt = new Set(Ve), Yt = /* @__PURE__ */ new Set([
1031
+ ]), Kt = /* @__PURE__ */ new Set([",", ";", " "]), Ht = new Set(Ue), Gt = /* @__PURE__ */ new Set([
1058
1032
  "current",
1059
1033
  "all"
1060
- ]), Jt = /* @__PURE__ */ new Set([
1034
+ ]), Wt = /* @__PURE__ */ new Set([
1061
1035
  "concise",
1062
1036
  "balanced",
1063
1037
  "detailed"
1064
- ]), Qt = /* @__PURE__ */ new Set([
1038
+ ]), Xt = /* @__PURE__ */ new Set([
1065
1039
  "info",
1066
1040
  "positive",
1067
1041
  "warning",
1068
1042
  "critical"
1069
- ]), en = /* @__PURE__ */ new Set([
1043
+ ]), Zt = /* @__PURE__ */ new Set([
1070
1044
  "text",
1071
1045
  "number",
1072
1046
  "currency",
1073
1047
  "percent",
1074
1048
  "date",
1075
1049
  "boolean"
1076
- ]), tn = /* @__PURE__ */ new Set([
1050
+ ]), Yt = /* @__PURE__ */ new Set([
1077
1051
  "left",
1078
1052
  "center",
1079
1053
  "right"
1080
- ]), nn = [
1054
+ ]), Jt = [
1081
1055
  "matrix",
1082
1056
  "pageSize",
1083
1057
  "orientation",
@@ -1108,23 +1082,23 @@ const ve = ["pdf", "png", "csv", "xlsx"], Ee = new Set(jt), Ht = /* @__PURE__ */
1108
1082
  "allowDownload",
1109
1083
  "theme"
1110
1084
  ];
1111
- class j extends Error {
1085
+ class P extends Error {
1112
1086
  constructor(t) {
1113
1087
  super(t.map((r) => `${r.field}: ${r.message}`).join("; "));
1114
- L(this, "issues");
1088
+ R(this, "issues");
1115
1089
  this.name = "BriefingContractError", this.issues = t;
1116
1090
  }
1117
1091
  }
1118
- function $e(e) {
1092
+ function ve(e) {
1119
1093
  return typeof e == "object" && e !== null && !Array.isArray(e);
1120
1094
  }
1121
1095
  function d(e, n, t) {
1122
1096
  e.push({ field: n, message: t });
1123
1097
  }
1124
1098
  function v(e, n, t) {
1125
- return $e(e) ? e : (d(t, n, "Expected an object."), {});
1099
+ return ve(e) ? e : (d(t, n, "Expected an object."), {});
1126
1100
  }
1127
- function p(e, n, t, r) {
1101
+ function h(e, n, t, r) {
1128
1102
  const o = new Set(t);
1129
1103
  Object.keys(e).forEach((a) => {
1130
1104
  o.has(a) || d(
@@ -1151,13 +1125,13 @@ function I(e, n, t, r) {
1151
1125
  if (o)
1152
1126
  return o.length > t && d(r, n, `Must be ${t} characters or fewer.`), o;
1153
1127
  }
1154
- function rn(e, n, t, r) {
1128
+ function Qt(e, n, t, r) {
1155
1129
  if (typeof e != "string")
1156
1130
  return d(r, n, "Expected a string."), "";
1157
1131
  const o = e.trim();
1158
1132
  return o.length > t && d(r, n, `Must be ${t} characters or fewer.`), o;
1159
1133
  }
1160
- function on(e, n, t) {
1134
+ function en(e, n, t) {
1161
1135
  if (e != null) {
1162
1136
  if (!Number.isInteger(e) || Number(e) < 0) {
1163
1137
  d(t, n, "Expected a non-negative integer.");
@@ -1166,7 +1140,7 @@ function on(e, n, t) {
1166
1140
  return Number(e);
1167
1141
  }
1168
1142
  }
1169
- function k(e, n, t, r = {}) {
1143
+ function x(e, n, t, r = {}) {
1170
1144
  if (e == null)
1171
1145
  return r.required ? (d(t, n, "Expected at least one evidence id."), []) : void 0;
1172
1146
  if (!Array.isArray(e))
@@ -1176,64 +1150,64 @@ function k(e, n, t, r = {}) {
1176
1150
  const c = b(
1177
1151
  a,
1178
1152
  `${n}.${i}`,
1179
- f.id,
1153
+ u.id,
1180
1154
  t
1181
1155
  );
1182
1156
  c && !o.includes(c) && o.push(c);
1183
1157
  }), r.required && o.length === 0 && d(t, n, "Expected at least one evidence id."), o.length > 0 || r.required ? o : void 0;
1184
1158
  }
1185
- function R(e, n, t, r) {
1159
+ function _(e, n, t, r) {
1186
1160
  return e == null ? n : typeof e != "boolean" ? (d(r, t, "Expected a boolean."), n) : e;
1187
1161
  }
1188
- function an(e, n) {
1162
+ function tn(e, n) {
1189
1163
  return e == null ? "ACTIVE" : e === "ACTIVE" || e === "PAUSED" || e === "DISABLED" ? e : (d(n, "status", "Expected ACTIVE, PAUSED, or DISABLED."), "ACTIVE");
1190
1164
  }
1191
- function cn(e) {
1165
+ function nn(e) {
1192
1166
  return e.includes("@") && e.includes(".") && !e.includes(" ");
1193
1167
  }
1194
- function xe(e, n) {
1168
+ function Ee(e, n) {
1195
1169
  if (e == null)
1196
1170
  return { type: "project" };
1197
1171
  const t = v(e, "source", n), r = t.type;
1198
- return r === "project" ? (p(t, "source", ["type"], n), { type: "project" }) : r === "dashboard" ? (p(t, "source", ["type", "dashboardId"], n), {
1172
+ return r === "project" ? (h(t, "source", ["type"], n), { type: "project" }) : r === "dashboard" ? (h(t, "source", ["type", "dashboardId"], n), {
1199
1173
  type: "dashboard",
1200
1174
  dashboardId: b(
1201
1175
  t.dashboardId,
1202
1176
  "source.dashboardId",
1203
- f.id,
1177
+ u.id,
1204
1178
  n
1205
1179
  )
1206
1180
  }) : (d(n, "source.type", "Expected project or dashboard."), { type: "project" });
1207
1181
  }
1208
- function Ce(e, n) {
1182
+ function $e(e, n) {
1209
1183
  const t = v(e, "body", n), r = t.type;
1210
- return r === "generated_analysis" ? (p(t, "body", ["type", "instruction"], n), {
1184
+ return r === "generated_analysis" ? (h(t, "body", ["type", "instruction"], n), {
1211
1185
  type: "generated_analysis",
1212
1186
  instruction: b(
1213
1187
  t.instruction,
1214
1188
  "body.instruction",
1215
- f.instruction,
1189
+ u.instruction,
1216
1190
  n
1217
1191
  )
1218
- }) : r === "custom_message" ? (p(t, "body", ["type", "message"], n), {
1192
+ }) : r === "custom_message" ? (h(t, "body", ["type", "message"], n), {
1219
1193
  type: "custom_message",
1220
- message: rn(
1194
+ message: Qt(
1221
1195
  t.message,
1222
1196
  "body.message",
1223
- f.customMessage,
1197
+ u.customMessage,
1224
1198
  n
1225
1199
  )
1226
- }) : r === "none" ? (p(t, "body", ["type"], n), { type: "none" }) : (d(
1200
+ }) : r === "none" ? (h(t, "body", ["type"], n), { type: "none" }) : (d(
1227
1201
  n,
1228
1202
  "body.type",
1229
1203
  "Expected generated_analysis, custom_message, or none."
1230
1204
  ), { type: "none" });
1231
1205
  }
1232
- function ln(e, n) {
1206
+ function rn(e, n) {
1233
1207
  if (e == null)
1234
- return [...Y];
1208
+ return [...G];
1235
1209
  if (!Array.isArray(e))
1236
- return d(n, "presentation.artifactFormats", "Expected an array."), [...Y];
1210
+ return d(n, "presentation.artifactFormats", "Expected an array."), [...G];
1237
1211
  if (e.length === 0)
1238
1212
  return d(
1239
1213
  n,
@@ -1242,7 +1216,7 @@ function ln(e, n) {
1242
1216
  ), [];
1243
1217
  const t = [];
1244
1218
  return e.forEach((r, o) => {
1245
- if (typeof r != "string" || !Ee.has(r)) {
1219
+ if (typeof r != "string" || !Ie.has(r)) {
1246
1220
  d(
1247
1221
  n,
1248
1222
  `presentation.artifactFormats.${o}`,
@@ -1253,15 +1227,15 @@ function ln(e, n) {
1253
1227
  t.includes(r) || t.push(r);
1254
1228
  }), t;
1255
1229
  }
1256
- function Te(e, n) {
1230
+ function Ce(e, n) {
1257
1231
  if (e == null)
1258
1232
  return {
1259
- artifactFormats: [...Y],
1233
+ artifactFormats: [...G],
1260
1234
  includeEvidence: !0,
1261
1235
  includeSql: !0
1262
1236
  };
1263
1237
  const t = v(e, "presentation", n);
1264
- p(
1238
+ h(
1265
1239
  t,
1266
1240
  "presentation",
1267
1241
  [
@@ -1279,14 +1253,14 @@ function Te(e, n) {
1279
1253
  n
1280
1254
  );
1281
1255
  const r = {
1282
- artifactFormats: ln(t.artifactFormats, n),
1283
- includeEvidence: R(
1256
+ artifactFormats: rn(t.artifactFormats, n),
1257
+ includeEvidence: _(
1284
1258
  t.includeEvidence,
1285
1259
  !0,
1286
1260
  "presentation.includeEvidence",
1287
1261
  n
1288
1262
  ),
1289
- includeSql: R(
1263
+ includeSql: _(
1290
1264
  t.includeSql,
1291
1265
  !0,
1292
1266
  "presentation.includeSql",
@@ -1295,66 +1269,66 @@ function Te(e, n) {
1295
1269
  }, o = I(
1296
1270
  t.audience,
1297
1271
  "presentation.audience",
1298
- f.presentationAudience,
1272
+ u.presentationAudience,
1299
1273
  n
1300
1274
  ), a = I(
1301
1275
  t.tone,
1302
1276
  "presentation.tone",
1303
- f.presentationTone,
1277
+ u.presentationTone,
1304
1278
  n
1305
1279
  ), i = I(
1306
1280
  t.format,
1307
1281
  "presentation.format",
1308
- f.presentationFormat,
1282
+ u.presentationFormat,
1309
1283
  n
1310
1284
  );
1311
1285
  o && (r.audience = o), a && (r.tone = a), i && (r.format = i);
1312
- const c = xt(t);
1286
+ const c = It(t);
1313
1287
  return c.issues.forEach((l) => d(n, l.field, l.message)), Object.assign(r, c.value), r;
1314
1288
  }
1315
- function dn(e, n, t) {
1316
- return Array.isArray(e) ? (e.length === 0 && d(t, n, "Expected at least one item."), e.length > x.maxListItems && d(
1289
+ function on(e, n, t) {
1290
+ return Array.isArray(e) ? (e.length === 0 && d(t, n, "Expected at least one item."), e.length > $.maxListItems && d(
1317
1291
  t,
1318
1292
  n,
1319
- `Must have ${x.maxListItems} items or fewer.`
1320
- ), e.slice(0, x.maxListItems).map(
1293
+ `Must have ${$.maxListItems} items or fewer.`
1294
+ ), e.slice(0, $.maxListItems).map(
1321
1295
  (r, o) => b(
1322
1296
  r,
1323
1297
  `${n}.${o}`,
1324
- f.contentItem,
1298
+ u.contentItem,
1325
1299
  t
1326
1300
  )
1327
1301
  ).filter(Boolean)) : (d(t, n, "Expected an array."), []);
1328
1302
  }
1329
- function sn(e, n, t) {
1303
+ function an(e, n, t) {
1330
1304
  const r = v(e, n, t);
1331
1305
  if (r.kind === "metric")
1332
- return p(r, n, ["kind", "metricId"], t), {
1306
+ return h(r, n, ["kind", "metricId"], t), {
1333
1307
  kind: "metric",
1334
1308
  metricId: b(
1335
1309
  r.metricId,
1336
1310
  `${n}.metricId`,
1337
- f.id,
1311
+ u.id,
1338
1312
  t
1339
1313
  )
1340
1314
  };
1341
1315
  if (r.kind === "column")
1342
- return p(r, n, ["kind", "columnKey"], t), {
1316
+ return h(r, n, ["kind", "columnKey"], t), {
1343
1317
  kind: "column",
1344
1318
  columnKey: b(
1345
1319
  r.columnKey,
1346
1320
  `${n}.columnKey`,
1347
- f.id,
1321
+ u.id,
1348
1322
  t
1349
1323
  )
1350
1324
  };
1351
1325
  if (r.kind === "matrix_measure")
1352
- return p(r, n, ["kind", "measureId"], t), {
1326
+ return h(r, n, ["kind", "measureId"], t), {
1353
1327
  kind: "matrix_measure",
1354
1328
  measureId: b(
1355
1329
  r.measureId,
1356
1330
  `${n}.measureId`,
1357
- f.id,
1331
+ u.id,
1358
1332
  t
1359
1333
  )
1360
1334
  };
@@ -1364,18 +1338,18 @@ function sn(e, n, t) {
1364
1338
  "Expected metric, column, or matrix_measure."
1365
1339
  );
1366
1340
  }
1367
- function Se(e, n, t) {
1341
+ function xe(e, n, t) {
1368
1342
  if (e === null || typeof e != "object" || Array.isArray(e))
1369
1343
  return;
1370
1344
  const r = v(e, n, t);
1371
1345
  if (!Object.prototype.hasOwnProperty.call(r, "target") && !Object.prototype.hasOwnProperty.call(r, "format"))
1372
1346
  return;
1373
- p(r, n, ["value", "target", "format"], t), (typeof r.value != "number" || !Number.isFinite(r.value)) && d(t, `${n}.value`, "Expected a finite number.");
1374
- const o = sn(
1347
+ h(r, n, ["value", "target", "format"], t), (typeof r.value != "number" || !Number.isFinite(r.value)) && d(t, `${n}.value`, "Expected a finite number.");
1348
+ const o = an(
1375
1349
  r.target,
1376
1350
  `${n}.target`,
1377
1351
  t
1378
- ), a = se(r.format);
1352
+ ), a = le(r.format);
1379
1353
  if (a.ok || a.issues.forEach(
1380
1354
  (i) => d(
1381
1355
  t,
@@ -1385,7 +1359,7 @@ function Se(e, n, t) {
1385
1359
  ), !(typeof r.value != "number" || !Number.isFinite(r.value) || !o || !a.ok))
1386
1360
  return { value: r.value, target: o, format: a.value };
1387
1361
  }
1388
- function O(e, n, t) {
1362
+ function w(e, n, t) {
1389
1363
  if (typeof e == "string")
1390
1364
  return e;
1391
1365
  if (typeof e == "number") {
@@ -1395,7 +1369,7 @@ function O(e, n, t) {
1395
1369
  }
1396
1370
  return e;
1397
1371
  }
1398
- const r = Se(e, n, t);
1372
+ const r = xe(e, n, t);
1399
1373
  if (r) return r;
1400
1374
  d(
1401
1375
  t,
@@ -1403,54 +1377,54 @@ function O(e, n, t) {
1403
1377
  "Expected a string, number, or structured numeric value."
1404
1378
  );
1405
1379
  }
1406
- function mn(e, n, t) {
1380
+ function cn(e, n, t) {
1407
1381
  if (e === null || typeof e == "string" || typeof e == "number" || typeof e == "boolean")
1408
- return typeof e == "string" && e.length > f.contentCell ? (d(
1382
+ return typeof e == "string" && e.length > u.contentCell ? (d(
1409
1383
  t,
1410
1384
  n,
1411
- `Must be ${f.contentCell} characters or fewer.`
1412
- ), e.slice(0, f.contentCell)) : typeof e == "number" && !Number.isFinite(e) ? (d(t, n, "Expected a finite number."), null) : e;
1413
- const r = Se(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);
1414
1388
  return r || (d(
1415
1389
  t,
1416
1390
  n,
1417
1391
  "Expected a string, number, boolean, structured numeric value, or null."
1418
1392
  ), null);
1419
1393
  }
1420
- function fn(e, n, t) {
1394
+ function ln(e, n, t) {
1421
1395
  if (!Array.isArray(e))
1422
1396
  return d(t, n, "Expected an array."), [];
1423
- e.length === 0 && d(t, n, "Expected at least one column."), e.length > x.maxTableColumns && d(
1397
+ e.length === 0 && d(t, n, "Expected at least one column."), e.length > $.maxTableColumns && d(
1424
1398
  t,
1425
1399
  n,
1426
- `Must have ${x.maxTableColumns} columns or fewer.`
1400
+ `Must have ${$.maxTableColumns} columns or fewer.`
1427
1401
  );
1428
1402
  const r = /* @__PURE__ */ new Set();
1429
- return e.slice(0, x.maxTableColumns).map((o, a) => {
1403
+ return e.slice(0, $.maxTableColumns).map((o, a) => {
1430
1404
  const i = `${n}.${a}`, c = v(o, i, t);
1431
- p(c, i, ["key", "label", "kind", "align"], t);
1405
+ h(c, i, ["key", "label", "kind", "align"], t);
1432
1406
  const l = b(
1433
1407
  c.key,
1434
1408
  `${i}.key`,
1435
- f.id,
1409
+ u.id,
1436
1410
  t
1437
1411
  );
1438
1412
  l && (r.has(l) && d(t, `${i}.key`, "Column key must be unique."), r.add(l));
1439
1413
  const m = b(
1440
1414
  c.label,
1441
1415
  `${i}.label`,
1442
- f.contentTitle,
1416
+ u.contentTitle,
1443
1417
  t
1444
- ), s = D(
1418
+ ), s = k(
1445
1419
  c.kind,
1446
1420
  `${i}.kind`,
1447
- en,
1421
+ Zt,
1448
1422
  "text, number, currency, percent, date, or boolean",
1449
1423
  t
1450
- ), u = D(
1424
+ ), f = k(
1451
1425
  c.align,
1452
1426
  `${i}.align`,
1453
- tn,
1427
+ Yt,
1454
1428
  "left, center, or right",
1455
1429
  t
1456
1430
  );
@@ -1458,44 +1432,44 @@ function fn(e, n, t) {
1458
1432
  key: l,
1459
1433
  label: m,
1460
1434
  ...s ? { kind: s } : {},
1461
- ...u ? { align: u } : {}
1435
+ ...f ? { align: f } : {}
1462
1436
  };
1463
1437
  });
1464
1438
  }
1465
- function un(e, n, t, r) {
1439
+ function dn(e, n, t, r) {
1466
1440
  if (!Array.isArray(e))
1467
1441
  return d(r, n, "Expected an array."), [];
1468
- e.length > x.maxTableRows && d(
1442
+ e.length > $.maxTableRows && d(
1469
1443
  r,
1470
1444
  n,
1471
- `Must have ${x.maxTableRows} rows or fewer.`
1445
+ `Must have ${$.maxTableRows} rows or fewer.`
1472
1446
  );
1473
1447
  const o = new Set(t.map((a) => a.key).filter(Boolean));
1474
- return e.slice(0, x.maxTableRows).map((a, i) => {
1448
+ return e.slice(0, $.maxTableRows).map((a, i) => {
1475
1449
  const c = `${n}.${i}`, l = v(a, c, r);
1476
1450
  return Object.keys(l).forEach((m) => {
1477
1451
  o.has(m) || d(r, `${c}.${m}`, `Unexpected table cell "${m}".`);
1478
1452
  }), Object.fromEntries(
1479
1453
  t.map((m) => [
1480
1454
  m.key,
1481
- mn(l[m.key] ?? null, `${c}.${m.key}`, r)
1455
+ cn(l[m.key] ?? null, `${c}.${m.key}`, r)
1482
1456
  ])
1483
1457
  );
1484
1458
  });
1485
1459
  }
1486
- function pn(e, n, t) {
1460
+ function sn(e, n, t) {
1487
1461
  const r = `content.blocks.${n}`, o = v(e, r, t), a = o.type;
1488
1462
  if (a === "heading") {
1489
- p(o, r, ["type", "text", "level", "evidenceIds"], t);
1463
+ h(o, r, ["type", "text", "level", "evidenceIds"], t);
1490
1464
  const i = o.level === void 0 || o.level === null ? void 0 : o.level === 2 || o.level === 3 ? o.level : void 0;
1491
1465
  o.level !== void 0 && o.level !== null && i === void 0 && d(t, `${r}.level`, "Expected 2 or 3.");
1492
- const c = k(o.evidenceIds, `${r}.evidenceIds`, t);
1466
+ const c = x(o.evidenceIds, `${r}.evidenceIds`, t);
1493
1467
  return {
1494
1468
  type: "heading",
1495
1469
  text: b(
1496
1470
  o.text,
1497
1471
  `${r}.text`,
1498
- f.contentTitle,
1472
+ u.contentTitle,
1499
1473
  t
1500
1474
  ),
1501
1475
  ...i ? { level: i } : {},
@@ -1503,30 +1477,30 @@ function pn(e, n, t) {
1503
1477
  };
1504
1478
  }
1505
1479
  if (a === "paragraph") {
1506
- p(o, r, ["type", "text", "evidenceIds"], t);
1507
- const i = k(o.evidenceIds, `${r}.evidenceIds`, t);
1480
+ h(o, r, ["type", "text", "evidenceIds"], t);
1481
+ const i = x(o.evidenceIds, `${r}.evidenceIds`, t);
1508
1482
  return {
1509
1483
  type: "paragraph",
1510
1484
  text: b(
1511
1485
  o.text,
1512
1486
  `${r}.text`,
1513
- f.contentText,
1487
+ u.contentText,
1514
1488
  t
1515
1489
  ),
1516
1490
  ...i ? { evidenceIds: i } : {}
1517
1491
  };
1518
1492
  }
1519
1493
  if (a === "finding") {
1520
- p(o, r, ["type", "title", "text", "severity", "evidenceIds"], t);
1494
+ h(o, r, ["type", "title", "text", "severity", "evidenceIds"], t);
1521
1495
  const i = I(
1522
1496
  o.title,
1523
1497
  `${r}.title`,
1524
- f.contentTitle,
1498
+ u.contentTitle,
1525
1499
  t
1526
- ), c = D(
1500
+ ), c = k(
1527
1501
  o.severity,
1528
1502
  `${r}.severity`,
1529
- Qt,
1503
+ Xt,
1530
1504
  "info, positive, warning, or critical",
1531
1505
  t
1532
1506
  );
@@ -1536,32 +1510,32 @@ function pn(e, n, t) {
1536
1510
  text: b(
1537
1511
  o.text,
1538
1512
  `${r}.text`,
1539
- f.contentText,
1513
+ u.contentText,
1540
1514
  t
1541
1515
  ),
1542
1516
  ...c ? { severity: c } : {},
1543
- evidenceIds: k(o.evidenceIds, `${r}.evidenceIds`, t, {
1517
+ evidenceIds: x(o.evidenceIds, `${r}.evidenceIds`, t, {
1544
1518
  required: !0
1545
1519
  }) ?? []
1546
1520
  };
1547
1521
  }
1548
1522
  if (a === "bullets" || a === "actions" || a === "limitations") {
1549
- p(o, r, ["type", "title", "items", "evidenceIds"], t);
1523
+ h(o, r, ["type", "title", "items", "evidenceIds"], t);
1550
1524
  const i = I(
1551
1525
  o.title,
1552
1526
  `${r}.title`,
1553
- f.contentTitle,
1527
+ u.contentTitle,
1554
1528
  t
1555
- ), c = k(o.evidenceIds, `${r}.evidenceIds`, t);
1529
+ ), c = x(o.evidenceIds, `${r}.evidenceIds`, t);
1556
1530
  return {
1557
1531
  type: a,
1558
1532
  ...i ? { title: i } : {},
1559
- items: dn(o.items, `${r}.items`, t),
1533
+ items: on(o.items, `${r}.items`, t),
1560
1534
  ...c ? { evidenceIds: c } : {}
1561
1535
  };
1562
1536
  }
1563
1537
  if (a === "metric") {
1564
- p(
1538
+ h(
1565
1539
  o,
1566
1540
  r,
1567
1541
  [
@@ -1576,36 +1550,36 @@ function pn(e, n, t) {
1576
1550
  ],
1577
1551
  t
1578
1552
  );
1579
- const i = O(o.value, `${r}.value`, t) ?? "";
1553
+ const i = w(o.value, `${r}.value`, t) ?? "";
1580
1554
  i === "" && d(
1581
1555
  t,
1582
1556
  `${r}.value`,
1583
1557
  "Expected a non-empty string, number, or structured numeric value."
1584
1558
  );
1585
- const c = o.previousValue === void 0 || o.previousValue === null ? o.previousValue : O(
1559
+ const c = o.previousValue === void 0 || o.previousValue === null ? o.previousValue : w(
1586
1560
  o.previousValue,
1587
1561
  `${r}.previousValue`,
1588
1562
  t
1589
- ), l = o.delta === void 0 || o.delta === null ? o.delta : O(
1563
+ ), l = o.delta === void 0 || o.delta === null ? o.delta : w(
1590
1564
  o.delta,
1591
1565
  `${r}.delta`,
1592
1566
  t
1593
- ), m = o.percentChange === void 0 || o.percentChange === null ? o.percentChange : O(
1567
+ ), m = o.percentChange === void 0 || o.percentChange === null ? o.percentChange : w(
1594
1568
  o.percentChange,
1595
1569
  `${r}.percentChange`,
1596
1570
  t
1597
1571
  ), s = I(
1598
1572
  o.unit,
1599
1573
  `${r}.unit`,
1600
- f.contentTitle,
1574
+ u.contentTitle,
1601
1575
  t
1602
- ), u = k(o.evidenceIds, `${r}.evidenceIds`, t);
1576
+ ), f = x(o.evidenceIds, `${r}.evidenceIds`, t);
1603
1577
  return {
1604
1578
  type: "metric",
1605
1579
  label: b(
1606
1580
  o.label,
1607
1581
  `${r}.label`,
1608
- f.contentTitle,
1582
+ u.contentTitle,
1609
1583
  t
1610
1584
  ),
1611
1585
  value: i,
@@ -1613,27 +1587,27 @@ function pn(e, n, t) {
1613
1587
  ...l !== void 0 ? { delta: l } : {},
1614
1588
  ...m !== void 0 ? { percentChange: m } : {},
1615
1589
  ...s ? { unit: s } : {},
1616
- ...u ? { evidenceIds: u } : {}
1590
+ ...f ? { evidenceIds: f } : {}
1617
1591
  };
1618
1592
  }
1619
1593
  if (a === "kpi_grid") {
1620
- p(o, r, ["type", "title", "tiles", "evidenceIds"], t);
1594
+ h(o, r, ["type", "title", "tiles", "evidenceIds"], t);
1621
1595
  const i = I(
1622
1596
  o.title,
1623
1597
  `${r}.title`,
1624
- f.contentTitle,
1598
+ u.contentTitle,
1625
1599
  t
1626
1600
  ), c = Array.isArray(o.tiles) ? o.tiles : [];
1627
- 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 > x.maxKpiTiles && d(
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(
1628
1602
  t,
1629
1603
  `${r}.tiles`,
1630
- `Must have ${x.maxKpiTiles} tiles or fewer.`
1604
+ `Must have ${$.maxKpiTiles} tiles or fewer.`
1631
1605
  );
1632
- const l = c.slice(0, x.maxKpiTiles).map((s, u) => {
1633
- const h = `${r}.tiles.${u}`, g = v(s, h, t);
1634
- p(
1606
+ const l = c.slice(0, $.maxKpiTiles).map((s, f) => {
1607
+ const p = `${r}.tiles.${f}`, g = v(s, p, t);
1608
+ h(
1635
1609
  g,
1636
- h,
1610
+ p,
1637
1611
  [
1638
1612
  "label",
1639
1613
  "value",
@@ -1645,53 +1619,53 @@ function pn(e, n, t) {
1645
1619
  ],
1646
1620
  t
1647
1621
  );
1648
- const E = O(
1622
+ const E = w(
1649
1623
  g.value,
1650
- `${h}.value`,
1624
+ `${p}.value`,
1651
1625
  t
1652
1626
  ) ?? "";
1653
1627
  E === "" && d(
1654
1628
  t,
1655
- `${h}.value`,
1629
+ `${p}.value`,
1656
1630
  "Expected a non-empty string, number, or structured numeric value."
1657
1631
  );
1658
- const C = g.previousValue === void 0 || g.previousValue === null ? g.previousValue : O(
1632
+ const A = g.previousValue === void 0 || g.previousValue === null ? g.previousValue : w(
1659
1633
  g.previousValue,
1660
- `${h}.previousValue`,
1634
+ `${p}.previousValue`,
1661
1635
  t
1662
- ), _ = g.delta === void 0 || g.delta === null ? g.delta : O(
1636
+ ), F = g.delta === void 0 || g.delta === null ? g.delta : w(
1663
1637
  g.delta,
1664
- `${h}.delta`,
1638
+ `${p}.delta`,
1665
1639
  t
1666
- ), M = g.percentChange === void 0 || g.percentChange === null ? g.percentChange : O(
1640
+ ), ee = g.percentChange === void 0 || g.percentChange === null ? g.percentChange : w(
1667
1641
  g.percentChange,
1668
- `${h}.percentChange`,
1642
+ `${p}.percentChange`,
1669
1643
  t
1670
- ), $ = I(
1644
+ ), te = I(
1671
1645
  g.unit,
1672
- `${h}.unit`,
1673
- f.contentTitle,
1646
+ `${p}.unit`,
1647
+ u.contentTitle,
1674
1648
  t
1675
- ), T = k(
1649
+ ), ne = x(
1676
1650
  g.evidenceIds,
1677
- `${h}.evidenceIds`,
1651
+ `${p}.evidenceIds`,
1678
1652
  t
1679
1653
  );
1680
1654
  return {
1681
1655
  label: b(
1682
1656
  g.label,
1683
- `${h}.label`,
1684
- f.contentTitle,
1657
+ `${p}.label`,
1658
+ u.contentTitle,
1685
1659
  t
1686
1660
  ),
1687
1661
  value: E,
1688
- ...C !== void 0 ? { previousValue: C } : {},
1689
- ..._ !== void 0 ? { delta: _ } : {},
1690
- ...M !== void 0 ? { percentChange: M } : {},
1691
- ...$ ? { unit: $ } : {},
1692
- ...T ? { evidenceIds: T } : {}
1662
+ ...A !== void 0 ? { previousValue: A } : {},
1663
+ ...F !== void 0 ? { delta: F } : {},
1664
+ ...ee !== void 0 ? { percentChange: ee } : {},
1665
+ ...te ? { unit: te } : {},
1666
+ ...ne ? { evidenceIds: ne } : {}
1693
1667
  };
1694
- }), m = k(
1668
+ }), m = x(
1695
1669
  o.evidenceIds,
1696
1670
  `${r}.evidenceIds`,
1697
1671
  t
@@ -1704,21 +1678,21 @@ function pn(e, n, t) {
1704
1678
  };
1705
1679
  }
1706
1680
  if (a === "progress") {
1707
- p(o, r, ["type", "label", "value", "detail", "evidenceIds"], t);
1681
+ h(o, r, ["type", "label", "value", "detail", "evidenceIds"], t);
1708
1682
  const i = typeof o.value == "number" && Number.isFinite(o.value) ? o.value : 0;
1709
1683
  (typeof o.value != "number" || !Number.isFinite(o.value)) && d(t, `${r}.value`, "Expected a finite number.");
1710
1684
  const c = I(
1711
1685
  o.detail,
1712
1686
  `${r}.detail`,
1713
- f.contentText,
1687
+ u.contentText,
1714
1688
  t
1715
- ), l = k(o.evidenceIds, `${r}.evidenceIds`, t);
1689
+ ), l = x(o.evidenceIds, `${r}.evidenceIds`, t);
1716
1690
  return {
1717
1691
  type: "progress",
1718
1692
  label: b(
1719
1693
  o.label,
1720
1694
  `${r}.label`,
1721
- f.contentTitle,
1695
+ u.contentTitle,
1722
1696
  t
1723
1697
  ),
1724
1698
  value: i,
@@ -1727,72 +1701,72 @@ function pn(e, n, t) {
1727
1701
  };
1728
1702
  }
1729
1703
  if (a === "table") {
1730
- p(
1704
+ h(
1731
1705
  o,
1732
1706
  r,
1733
1707
  ["type", "id", "title", "columns", "rows", "caption", "totalRows", "evidenceIds"],
1734
1708
  t
1735
1709
  );
1736
- const i = fn(o.columns, `${r}.columns`, t), c = I(
1710
+ const i = ln(o.columns, `${r}.columns`, t), c = I(
1737
1711
  o.title,
1738
1712
  `${r}.title`,
1739
- f.contentTitle,
1713
+ u.contentTitle,
1740
1714
  t
1741
1715
  ), l = I(
1742
1716
  o.id,
1743
1717
  `${r}.id`,
1744
- f.id,
1718
+ u.id,
1745
1719
  t
1746
1720
  ), m = I(
1747
1721
  o.caption,
1748
1722
  `${r}.caption`,
1749
- f.contentItem,
1723
+ u.contentItem,
1750
1724
  t
1751
- ), s = on(
1725
+ ), s = en(
1752
1726
  o.totalRows,
1753
1727
  `${r}.totalRows`,
1754
1728
  t
1755
- ), u = k(o.evidenceIds, `${r}.evidenceIds`, t);
1729
+ ), f = x(o.evidenceIds, `${r}.evidenceIds`, t);
1756
1730
  return {
1757
1731
  type: "table",
1758
1732
  ...l ? { id: l } : {},
1759
1733
  ...c ? { title: c } : {},
1760
1734
  columns: i,
1761
- rows: un(o.rows, `${r}.rows`, i, t),
1735
+ rows: dn(o.rows, `${r}.rows`, i, t),
1762
1736
  ...m ? { caption: m } : {},
1763
1737
  ...s !== void 0 ? { totalRows: s } : {},
1764
- ...u ? { evidenceIds: u } : {}
1738
+ ...f ? { evidenceIds: f } : {}
1765
1739
  };
1766
1740
  }
1767
1741
  if (a === "evidence_appendix") {
1768
- p(o, r, ["type", "title", "evidenceIds"], t);
1742
+ h(o, r, ["type", "title", "evidenceIds"], t);
1769
1743
  const i = I(
1770
1744
  o.title,
1771
1745
  `${r}.title`,
1772
- f.contentTitle,
1746
+ u.contentTitle,
1773
1747
  t
1774
1748
  );
1775
1749
  return {
1776
1750
  type: "evidence_appendix",
1777
1751
  ...i ? { title: i } : {},
1778
- evidenceIds: k(o.evidenceIds, `${r}.evidenceIds`, t, {
1752
+ evidenceIds: x(o.evidenceIds, `${r}.evidenceIds`, t, {
1779
1753
  required: !0
1780
1754
  }) ?? []
1781
1755
  };
1782
1756
  }
1783
1757
  if (a === "sql") {
1784
- p(o, r, ["type", "title", "sql", "evidenceIds"], t);
1758
+ h(o, r, ["type", "title", "sql", "evidenceIds"], t);
1785
1759
  const i = I(
1786
1760
  o.title,
1787
1761
  `${r}.title`,
1788
- f.contentTitle,
1762
+ u.contentTitle,
1789
1763
  t
1790
1764
  ), c = b(
1791
1765
  o.sql,
1792
1766
  `${r}.sql`,
1793
- f.contentSql,
1767
+ u.contentSql,
1794
1768
  t
1795
- ), l = k(o.evidenceIds, `${r}.evidenceIds`, t);
1769
+ ), l = x(o.evidenceIds, `${r}.evidenceIds`, t);
1796
1770
  return {
1797
1771
  type: "sql",
1798
1772
  ...i ? { title: i } : {},
@@ -1809,59 +1783,59 @@ function pn(e, n, t) {
1809
1783
  text: ""
1810
1784
  };
1811
1785
  }
1812
- function hn(e) {
1786
+ function mn(e) {
1813
1787
  const n = [], t = v(e, "content", n);
1814
- p(t, "content", ["version", "title", "summary", "blocks"], n), t.version !== 1 && d(n, "content.version", "Expected version 1.");
1788
+ h(t, "content", ["version", "title", "summary", "blocks"], n), t.version !== 1 && d(n, "content.version", "Expected version 1.");
1815
1789
  const r = I(
1816
1790
  t.title,
1817
1791
  "content.title",
1818
- f.contentTitle,
1792
+ u.contentTitle,
1819
1793
  n
1820
1794
  ), o = I(
1821
1795
  t.summary,
1822
1796
  "content.summary",
1823
- f.contentSummary,
1797
+ u.contentSummary,
1824
1798
  n
1825
1799
  );
1826
1800
  Array.isArray(t.blocks) || d(n, "content.blocks", "Expected an array.");
1827
1801
  const a = Array.isArray(t.blocks) ? t.blocks : [];
1828
- a.length === 0 && d(n, "content.blocks", "Expected at least one block."), a.length > x.maxBlocks && d(
1802
+ a.length === 0 && d(n, "content.blocks", "Expected at least one block."), a.length > $.maxBlocks && d(
1829
1803
  n,
1830
1804
  "content.blocks",
1831
- `Must have ${x.maxBlocks} blocks or fewer.`
1805
+ `Must have ${$.maxBlocks} blocks or fewer.`
1832
1806
  );
1833
- const i = a.slice(0, x.maxBlocks).map((c, l) => pn(c, l, n));
1834
- return te(n), {
1807
+ const i = a.slice(0, $.maxBlocks).map((c, l) => sn(c, l, n));
1808
+ return Y(n), {
1835
1809
  version: 1,
1836
1810
  ...r ? { title: r } : {},
1837
1811
  ...o ? { summary: o } : {},
1838
1812
  blocks: i
1839
1813
  };
1840
1814
  }
1841
- function pr(e) {
1815
+ function dr(e) {
1842
1816
  try {
1843
1817
  return {
1844
1818
  valid: !0,
1845
- value: hn(e),
1819
+ value: mn(e),
1846
1820
  issues: []
1847
1821
  };
1848
1822
  } catch (n) {
1849
- if (n instanceof j)
1823
+ if (n instanceof P)
1850
1824
  return { valid: !1, issues: n.issues };
1851
1825
  throw n;
1852
1826
  }
1853
1827
  }
1854
- function z(e, n, t, r) {
1828
+ function L(e, n, t, r) {
1855
1829
  return typeof e == "string" && t.includes(e) ? e : (d(r, n, `Expected ${t.join(" or ")}.`), t[0]);
1856
1830
  }
1857
- function D(e, n, t, r, o) {
1831
+ function k(e, n, t, r, o) {
1858
1832
  if (e != null) {
1859
1833
  if (typeof e == "string" && t.has(e))
1860
1834
  return e;
1861
1835
  d(o, n, `Expected ${r}.`);
1862
1836
  }
1863
1837
  }
1864
- function yn(e, n, t) {
1838
+ function un(e, n, t) {
1865
1839
  if (e != null) {
1866
1840
  if (!Array.isArray(e)) {
1867
1841
  d(t, n, "Expected an array.");
@@ -1870,63 +1844,63 @@ function yn(e, n, t) {
1870
1844
  return e;
1871
1845
  }
1872
1846
  }
1873
- function gn(e, n, t) {
1847
+ function fn(e, n, t) {
1874
1848
  if (e != null) {
1875
- if (!$e(e)) {
1849
+ if (!ve(e)) {
1876
1850
  d(t, n, "Expected an object.");
1877
1851
  return;
1878
1852
  }
1879
1853
  return e;
1880
1854
  }
1881
1855
  }
1882
- function bn(e, n, t) {
1856
+ function pn(e, n, t) {
1883
1857
  if (e == null)
1884
1858
  return;
1885
1859
  const r = v(e, n, t);
1886
- p(r, n, nn, t);
1860
+ h(r, n, Jt, t);
1887
1861
  const o = {};
1888
1862
  if (r.matrix !== void 0) {
1889
1863
  const s = v(r.matrix, `${n}.matrix`, t);
1890
- p(s, `${n}.matrix`, ["config", "content"], t);
1891
- const u = Pe.safeParse(s.config);
1892
- u.success || d(t, `${n}.matrix.config`, "Expected a valid Matrix definition.");
1893
- const h = D(
1864
+ h(s, `${n}.matrix`, ["config", "content"], t);
1865
+ const f = Me.safeParse(s.config);
1866
+ f.success || d(t, `${n}.matrix.config`, "Expected a valid Matrix definition.");
1867
+ const p = k(
1894
1868
  s.content,
1895
1869
  `${n}.matrix.content`,
1896
1870
  /* @__PURE__ */ new Set(["current", "all", "flat"]),
1897
1871
  "current, all, or flat",
1898
1872
  t
1899
1873
  );
1900
- h || d(t, `${n}.matrix.content`, "Choose Matrix export content."), u.success && h && (o.matrix = { config: u.data, content: h });
1874
+ p || d(t, `${n}.matrix.content`, "Choose Matrix export content."), f.success && p && (o.matrix = { config: f.data, content: p });
1901
1875
  }
1902
- const a = D(
1876
+ const a = k(
1903
1877
  r.pageSize,
1904
1878
  `${n}.pageSize`,
1905
- Gt,
1879
+ jt,
1906
1880
  "letter, legal, a4, a3, or tabloid",
1907
1881
  t
1908
- ), i = D(
1882
+ ), i = k(
1909
1883
  r.orientation,
1910
1884
  `${n}.orientation`,
1911
- Wt,
1885
+ qt,
1912
1886
  "portrait or landscape",
1913
1887
  t
1914
- ), c = D(
1888
+ ), c = k(
1915
1889
  r.delimiter,
1916
1890
  `${n}.delimiter`,
1917
- Xt,
1891
+ Kt,
1918
1892
  "comma, semicolon, or tab",
1919
1893
  t
1920
- ), l = D(
1894
+ ), l = k(
1921
1895
  r.csvEncoding,
1922
1896
  `${n}.csvEncoding`,
1923
- Zt,
1897
+ Ht,
1924
1898
  "utf-8-bom or utf-8",
1925
1899
  t
1926
- ), m = D(
1900
+ ), m = k(
1927
1901
  r.sheetSelection,
1928
1902
  `${n}.sheetSelection`,
1929
- Yt,
1903
+ Gt,
1930
1904
  "current or all",
1931
1905
  t
1932
1906
  );
@@ -1952,13 +1926,13 @@ function bn(e, n, t) {
1952
1926
  "cardType",
1953
1927
  "theme"
1954
1928
  ]) {
1955
- const u = I(
1929
+ const f = I(
1956
1930
  r[s],
1957
1931
  `${n}.${s}`,
1958
- f.id,
1932
+ u.id,
1959
1933
  t
1960
1934
  );
1961
- u && (o[s] = u);
1935
+ f && (o[s] = f);
1962
1936
  }
1963
1937
  for (const s of [
1964
1938
  "filterValues",
@@ -1968,8 +1942,8 @@ function bn(e, n, t) {
1968
1942
  "cardControlDefinitions",
1969
1943
  "controlBindings"
1970
1944
  ]) {
1971
- const u = yn(r[s], `${n}.${s}`, t);
1972
- u && (o[s] = u);
1945
+ const f = un(r[s], `${n}.${s}`, t);
1946
+ f && (o[s] = f);
1973
1947
  }
1974
1948
  for (const s of [
1975
1949
  "controlValues",
@@ -1977,77 +1951,77 @@ function bn(e, n, t) {
1977
1951
  "dashboardInputExecutionSnapshot",
1978
1952
  "printInputCapture"
1979
1953
  ]) {
1980
- const u = gn(r[s], `${n}.${s}`, t);
1981
- u && (o[s] = u);
1954
+ const f = fn(r[s], `${n}.${s}`, t);
1955
+ f && (o[s] = f);
1982
1956
  }
1983
1957
  return Object.keys(o).length > 0 ? o : void 0;
1984
1958
  }
1985
- function W(e, n, t, r) {
1959
+ function q(e, n, t, r) {
1986
1960
  const o = I(
1987
1961
  n,
1988
1962
  t,
1989
- f.attachmentTitle,
1963
+ u.attachmentTitle,
1990
1964
  r
1991
1965
  );
1992
1966
  return o && (e.title = o), e;
1993
1967
  }
1994
- function X(e, n, t, r) {
1995
- const o = bn(n, t, r);
1968
+ function K(e, n, t, r) {
1969
+ const o = pn(n, t, r);
1996
1970
  return o != null && o.printInputCapture && e.type !== "dashboard" && d(
1997
1971
  r,
1998
1972
  `${t}.printInputCapture`,
1999
1973
  "Only a full dashboard attachment can carry printInputCapture."
2000
1974
  ), o && (e.settings = o), e;
2001
1975
  }
2002
- function In(e, n, t) {
1976
+ function hn(e, n, t) {
2003
1977
  const r = `attachments.${n}`, o = v(e, r, t), a = o.type;
2004
1978
  if (a === "dashboard") {
2005
- p(
1979
+ h(
2006
1980
  o,
2007
1981
  r,
2008
1982
  ["type", "dashboardId", "format", "title", "settings"],
2009
1983
  t
2010
1984
  );
2011
- const i = W(
1985
+ const i = q(
2012
1986
  {
2013
1987
  type: "dashboard",
2014
1988
  dashboardId: b(
2015
1989
  o.dashboardId,
2016
1990
  `${r}.dashboardId`,
2017
- f.id,
1991
+ u.id,
2018
1992
  t
2019
1993
  ),
2020
- format: z(o.format, `${r}.format`, ["pdf"], t)
1994
+ format: L(o.format, `${r}.format`, ["pdf"], t)
2021
1995
  },
2022
1996
  o.title,
2023
1997
  `${r}.title`,
2024
1998
  t
2025
1999
  );
2026
- return X(i, o.settings, `${r}.settings`, t);
2000
+ return K(i, o.settings, `${r}.settings`, t);
2027
2001
  }
2028
2002
  if (a === "dashboard_sheet" || a === "document_sheet") {
2029
- p(
2003
+ h(
2030
2004
  o,
2031
2005
  r,
2032
2006
  ["type", "dashboardId", "sheetId", "format", "title", "settings"],
2033
2007
  t
2034
2008
  );
2035
- const i = W(
2009
+ const i = q(
2036
2010
  {
2037
2011
  type: a,
2038
2012
  dashboardId: b(
2039
2013
  o.dashboardId,
2040
2014
  `${r}.dashboardId`,
2041
- f.id,
2015
+ u.id,
2042
2016
  t
2043
2017
  ),
2044
2018
  sheetId: b(
2045
2019
  o.sheetId,
2046
2020
  `${r}.sheetId`,
2047
- f.id,
2021
+ u.id,
2048
2022
  t
2049
2023
  ),
2050
- format: z(
2024
+ format: L(
2051
2025
  o.format,
2052
2026
  `${r}.format`,
2053
2027
  a === "dashboard_sheet" ? ["pdf", "png"] : ["pdf"],
@@ -2058,36 +2032,36 @@ function In(e, n, t) {
2058
2032
  `${r}.title`,
2059
2033
  t
2060
2034
  );
2061
- return de(
2062
- X(i, o.settings, `${r}.settings`, t)
2035
+ return ce(
2036
+ K(i, o.settings, `${r}.settings`, t)
2063
2037
  );
2064
2038
  }
2065
2039
  if (a === "card") {
2066
- p(
2040
+ h(
2067
2041
  o,
2068
2042
  r,
2069
2043
  ["type", "dashboardId", "cardId", "format", "title", "settings"],
2070
2044
  t
2071
2045
  );
2072
- const i = W(
2046
+ const i = q(
2073
2047
  {
2074
2048
  type: "card",
2075
2049
  dashboardId: b(
2076
2050
  o.dashboardId,
2077
2051
  `${r}.dashboardId`,
2078
- f.id,
2052
+ u.id,
2079
2053
  t
2080
2054
  ),
2081
2055
  cardId: b(
2082
2056
  o.cardId,
2083
2057
  `${r}.cardId`,
2084
- f.id,
2058
+ u.id,
2085
2059
  t
2086
2060
  ),
2087
- format: z(
2061
+ format: L(
2088
2062
  o.format,
2089
2063
  `${r}.format`,
2090
- ve,
2064
+ be,
2091
2065
  t
2092
2066
  )
2093
2067
  },
@@ -2095,8 +2069,8 @@ function In(e, n, t) {
2095
2069
  `${r}.title`,
2096
2070
  t
2097
2071
  );
2098
- return de(
2099
- X(i, o.settings, `${r}.settings`, t)
2072
+ return ce(
2073
+ K(i, o.settings, `${r}.settings`, t)
2100
2074
  );
2101
2075
  }
2102
2076
  return d(
@@ -2105,7 +2079,7 @@ function In(e, n, t) {
2105
2079
  "Expected dashboard, dashboard_sheet, document_sheet, or card."
2106
2080
  ), { type: "dashboard", dashboardId: "", format: "pdf" };
2107
2081
  }
2108
- function de(e) {
2082
+ function ce(e) {
2109
2083
  if (e.format !== "png" || !e.settings) return e;
2110
2084
  const {
2111
2085
  pageSize: n,
@@ -2115,7 +2089,7 @@ function de(e) {
2115
2089
  } = e.settings, { settings: a, ...i } = e;
2116
2090
  return Object.keys(o).length > 0 ? { ...i, settings: o } : i;
2117
2091
  }
2118
- function vn(e) {
2092
+ function yn(e) {
2119
2093
  switch (e.type) {
2120
2094
  case "dashboard":
2121
2095
  return `${e.type}:${e.dashboardId}:${e.format}`;
@@ -2126,35 +2100,35 @@ function vn(e) {
2126
2100
  return `${e.type}:${e.dashboardId}:${e.cardId}:${e.format}`;
2127
2101
  }
2128
2102
  }
2129
- function ke(e, n) {
2103
+ function Te(e, n) {
2130
2104
  if (e == null)
2131
2105
  return [];
2132
2106
  if (!Array.isArray(e))
2133
2107
  return d(n, "attachments", "Expected an array."), [];
2134
- e.length > H && d(
2108
+ e.length > z && d(
2135
2109
  n,
2136
2110
  "attachments",
2137
- `Choose ${H} attachments or fewer.`
2111
+ `Choose ${z} attachments or fewer.`
2138
2112
  );
2139
- const t = e.slice(0, H).map((o, a) => In(o, a, n)), r = /* @__PURE__ */ new Set();
2113
+ const t = e.slice(0, z).map((o, a) => hn(o, a, n)), r = /* @__PURE__ */ new Set();
2140
2114
  return t.forEach((o, a) => {
2141
2115
  var c, l, m, s;
2142
- (c = o.settings) != null && c.matrix && (o.type !== "card" || o.settings.cardType !== "matrixTable" || o.settings.matrix.content === "flat" && o.format === "pdf") && d(n, `attachments.${a}.settings.matrix`, "Matrix settings require a matrixTable card attachment; flat content requires CSV or Excel."), o.format === "png" && ((l = o.settings) != null && l.matrix) && o.settings.matrix.content !== "current" && d(n, `attachments.${a}.settings.matrix.content`, "A Matrix PNG image shows the current layout."), o.format === "xlsx" && !((m = o.settings) != null && m.matrix) && !Q((s = o.settings) == null ? void 0 : s.cardType) && d(n, `attachments.${a}.format`, "Excel attachments require a Table, Detail Table or Matrix card.");
2143
- const i = vn(o);
2116
+ (c = o.settings) != null && c.matrix && (o.type !== "card" || o.settings.cardType !== "matrixTable" || o.settings.matrix.content === "flat" && o.format === "pdf") && d(n, `attachments.${a}.settings.matrix`, "Matrix settings require a matrixTable card attachment; flat content requires CSV or Excel."), o.format === "png" && ((l = o.settings) != null && l.matrix) && o.settings.matrix.content !== "current" && d(n, `attachments.${a}.settings.matrix.content`, "A Matrix PNG image shows the current layout."), o.format === "xlsx" && !((m = o.settings) != null && m.matrix) && !X((s = o.settings) == null ? void 0 : s.cardType) && d(n, `attachments.${a}.format`, "Excel attachments require a Table, Detail Table or Matrix card.");
2117
+ const i = yn(o);
2144
2118
  r.has(i) && d(n, `attachments.${a}`, "Duplicate attachment."), r.add(i);
2145
2119
  }), t;
2146
2120
  }
2147
- function Ae(e, n) {
2121
+ function Se(e, n) {
2148
2122
  if (e == null)
2149
2123
  return;
2150
2124
  const t = v(e, "limits", n);
2151
- p(t, "limits", Object.keys(G), n);
2125
+ h(t, "limits", Object.keys(j), n);
2152
2126
  const r = {};
2153
- return Object.keys(G).forEach((o) => {
2127
+ return Object.keys(j).forEach((o) => {
2154
2128
  const a = t[o];
2155
2129
  if (a == null)
2156
2130
  return;
2157
- const i = G[o];
2131
+ const i = j[o];
2158
2132
  if (typeof a != "number" || !Number.isInteger(a) || a < i.min || a > i.max) {
2159
2133
  d(
2160
2134
  n,
@@ -2166,42 +2140,42 @@ function Ae(e, n) {
2166
2140
  r[o] = a;
2167
2141
  }), Object.keys(r).length > 0 ? r : void 0;
2168
2142
  }
2169
- function te(e) {
2143
+ function Y(e) {
2170
2144
  if (e.length > 0)
2171
- throw new j(e);
2145
+ throw new P(e);
2172
2146
  }
2173
- function we(e, n, t) {
2147
+ function ke(e, n, t) {
2174
2148
  !(e.type === "generated_analysis" || e.type === "custom_message" && !!e.message.trim()) && n.length === 0 && d(
2175
2149
  t,
2176
2150
  "body",
2177
2151
  "Add briefing instructions, a custom message, or at least one attachment."
2178
2152
  );
2179
2153
  }
2180
- function En(e, n, t) {
2154
+ function gn(e, n, t) {
2181
2155
  e == null || e.forEach((r, o) => {
2182
2156
  const a = `${t}.${o}.scope`, i = r.scope.attachmentIndex;
2183
2157
  if (i === void 0)
2184
- throw new B(
2158
+ throw new N(
2185
2159
  `${a}.attachmentIndex must identify the attachment that owns this presentation entry.`
2186
2160
  );
2187
2161
  const c = n[i];
2188
2162
  if (!c)
2189
- throw new B(
2163
+ throw new N(
2190
2164
  `${a}.attachmentIndex must identify an existing attachment.`
2191
2165
  );
2192
2166
  if (r.scope.dashboardId !== c.dashboardId)
2193
- throw new B(
2167
+ throw new N(
2194
2168
  `${a}.dashboardId must match the dashboard selected by the referenced attachment.`
2195
2169
  );
2196
2170
  if (c.type === "card" && r.scope.cardId !== c.cardId)
2197
- throw new B(
2171
+ throw new N(
2198
2172
  `${a}.cardId must match the card selected by the referenced attachment.`
2199
2173
  );
2200
2174
  });
2201
2175
  }
2202
- function De(e) {
2176
+ function Ae(e) {
2203
2177
  const n = [], t = v(e, "jobConfig", n);
2204
- p(
2178
+ h(
2205
2179
  t,
2206
2180
  "jobConfig",
2207
2181
  [
@@ -2214,14 +2188,14 @@ function De(e) {
2214
2188
  "limits"
2215
2189
  ],
2216
2190
  n
2217
- ), t.kind !== Z && d(n, "kind", "Expected BRIEFING.");
2191
+ ), t.kind !== H && d(n, "kind", "Expected BRIEFING.");
2218
2192
  let r;
2219
2193
  try {
2220
- r = Le(
2194
+ r = Re(
2221
2195
  t.presentationExecutionSnapshot
2222
2196
  );
2223
2197
  } catch (m) {
2224
- if (m instanceof B)
2198
+ if (m instanceof N)
2225
2199
  throw m;
2226
2200
  d(
2227
2201
  n,
@@ -2229,13 +2203,13 @@ function De(e) {
2229
2203
  m instanceof Error ? m.message : "Invalid presentation snapshot."
2230
2204
  );
2231
2205
  }
2232
- const o = xe(t.source, n), a = Ce(t.body, n), i = ke(t.attachments, n), c = Te(t.presentation, n), l = Ae(t.limits, n);
2233
- return we(a, i, n), En(
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);
2207
+ return ke(a, i, n), gn(
2234
2208
  r == null ? void 0 : r.resolvedFormats,
2235
2209
  i,
2236
2210
  "jobConfig.presentationExecutionSnapshot.resolvedFormats"
2237
- ), te(n), {
2238
- kind: Z,
2211
+ ), Y(n), {
2212
+ kind: H,
2239
2213
  presentationExecutionSnapshot: r,
2240
2214
  source: o,
2241
2215
  body: a,
@@ -2244,55 +2218,55 @@ function De(e) {
2244
2218
  ...l ? { limits: l } : {}
2245
2219
  };
2246
2220
  }
2247
- function hr(e) {
2248
- return De({
2221
+ function sr(e) {
2222
+ return Ae({
2249
2223
  ...e,
2250
- kind: Z
2224
+ kind: H
2251
2225
  });
2252
2226
  }
2253
- function ne(e, n, t, r = "deliveryConfig.recipients") {
2227
+ function J(e, n, t, r = "deliveryConfig.recipients") {
2254
2228
  const o = `${r}.${n}`, a = v(e, o, t), i = a.type;
2255
2229
  if (i === "email") {
2256
- p(a, o, ["type", "address", "name"], t);
2230
+ h(a, o, ["type", "address", "name"], t);
2257
2231
  const c = b(
2258
2232
  a.address,
2259
2233
  `${o}.address`,
2260
- f.id,
2234
+ u.id,
2261
2235
  t
2262
2236
  ), l = I(
2263
2237
  a.name,
2264
2238
  `${o}.name`,
2265
- f.attachmentTitle,
2239
+ u.attachmentTitle,
2266
2240
  t
2267
2241
  );
2268
- return c && !cn(c) && d(t, `${o}.address`, "Email address is invalid."), {
2242
+ return c && !nn(c) && d(t, `${o}.address`, "Email address is invalid."), {
2269
2243
  type: "email",
2270
2244
  address: c,
2271
2245
  ...l ? { name: l } : {}
2272
2246
  };
2273
2247
  }
2274
- return i === "user" ? (p(a, o, ["type", "userId"], t), {
2248
+ return i === "user" ? (h(a, o, ["type", "userId"], t), {
2275
2249
  type: "user",
2276
2250
  userId: b(
2277
2251
  a.userId,
2278
2252
  `${o}.userId`,
2279
- f.id,
2253
+ u.id,
2280
2254
  t
2281
2255
  )
2282
- }) : i === "tenant_user" ? (p(a, o, ["type", "tenantUserId"], t), {
2256
+ }) : i === "tenant_user" ? (h(a, o, ["type", "tenantUserId"], t), {
2283
2257
  type: "tenant_user",
2284
2258
  tenantUserId: b(
2285
2259
  a.tenantUserId,
2286
2260
  `${o}.tenantUserId`,
2287
- f.id,
2261
+ u.id,
2288
2262
  t
2289
2263
  )
2290
- }) : i === "group" ? (p(a, o, ["type", "groupId"], t), {
2264
+ }) : i === "group" ? (h(a, o, ["type", "groupId"], t), {
2291
2265
  type: "group",
2292
2266
  groupId: b(
2293
2267
  a.groupId,
2294
2268
  `${o}.groupId`,
2295
- f.id,
2269
+ u.id,
2296
2270
  t
2297
2271
  )
2298
2272
  }) : (d(
@@ -2301,17 +2275,17 @@ function ne(e, n, t, r = "deliveryConfig.recipients") {
2301
2275
  "Expected email, user, tenant_user, or group."
2302
2276
  ), { type: "email", address: "" });
2303
2277
  }
2304
- function $n(e, n) {
2278
+ function bn(e, n) {
2305
2279
  return e == null ? [] : Array.isArray(e) ? e.map(
2306
- (t, r) => ne(t, r, n)
2280
+ (t, r) => J(t, r, n)
2307
2281
  ) : (d(n, "deliveryConfig.recipients", "Expected an array."), []);
2308
2282
  }
2309
- function xn(e, n) {
2283
+ function In(e, n) {
2310
2284
  if (!Array.isArray(e))
2311
2285
  return d(n, "deliveryConfig.channels", "Expected an array."), [];
2312
2286
  const t = [];
2313
2287
  return e.forEach((r, o) => {
2314
- if (!_e(r)) {
2288
+ if (!we(r)) {
2315
2289
  d(
2316
2290
  n,
2317
2291
  `deliveryConfig.channels.${o}`,
@@ -2322,7 +2296,7 @@ function xn(e, n) {
2322
2296
  t.includes(r) || t.push(r);
2323
2297
  }), t;
2324
2298
  }
2325
- function Cn(e, n, t) {
2299
+ function vn(e, n, t) {
2326
2300
  if (e == null)
2327
2301
  return;
2328
2302
  const r = v(e, n, t), o = {};
@@ -2334,17 +2308,17 @@ function Cn(e, n, t) {
2334
2308
  o[a] = i.trim();
2335
2309
  }), Object.keys(o).length > 0 ? o : void 0;
2336
2310
  }
2337
- function Tn(e, n, t) {
2311
+ function En(e, n, t) {
2338
2312
  if (e == null)
2339
2313
  return;
2340
2314
  const r = v(e, n, t);
2341
- p(
2315
+ h(
2342
2316
  r,
2343
2317
  n,
2344
2318
  ["url", "method", "headers", "secretEncrypted"],
2345
2319
  t
2346
2320
  );
2347
- const o = r.method === void 0 || r.method === null ? void 0 : z(r.method, `${n}.method`, ["POST", "PUT"], t), a = Cn(r.headers, `${n}.headers`, t), i = I(
2321
+ 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(
2348
2322
  r.secretEncrypted,
2349
2323
  `${n}.secretEncrypted`,
2350
2324
  2e3,
@@ -2357,10 +2331,10 @@ function Tn(e, n, t) {
2357
2331
  ...i ? { secretEncrypted: i } : {}
2358
2332
  };
2359
2333
  }
2360
- function Sn(e, n, t) {
2334
+ function $n(e, n, t) {
2361
2335
  const r = v(e, n, t), o = r.type;
2362
2336
  if (o === "channel") {
2363
- p(
2337
+ h(
2364
2338
  r,
2365
2339
  n,
2366
2340
  ["type", "channelId", "channelName", "isPrivate"],
@@ -2369,9 +2343,9 @@ function Sn(e, n, t) {
2369
2343
  const a = I(
2370
2344
  r.channelName,
2371
2345
  `${n}.channelName`,
2372
- f.attachmentTitle,
2346
+ u.attachmentTitle,
2373
2347
  t
2374
- ), i = r.isPrivate === void 0 || r.isPrivate === null ? void 0 : R(
2348
+ ), i = r.isPrivate === void 0 || r.isPrivate === null ? void 0 : _(
2375
2349
  r.isPrivate,
2376
2350
  !1,
2377
2351
  `${n}.isPrivate`,
@@ -2382,23 +2356,23 @@ function Sn(e, n, t) {
2382
2356
  channelId: b(
2383
2357
  r.channelId,
2384
2358
  `${n}.channelId`,
2385
- f.id,
2359
+ u.id,
2386
2360
  t
2387
2361
  ),
2388
2362
  ...a ? { channelName: a } : {},
2389
2363
  ...i !== void 0 ? { isPrivate: i } : {}
2390
2364
  };
2391
2365
  }
2392
- return o === "dm" ? (p(r, n, ["type", "recipient"], t), d(
2366
+ return o === "dm" ? (h(r, n, ["type", "recipient"], t), d(
2393
2367
  t,
2394
2368
  `${n}.type`,
2395
2369
  "Slack DM delivery is not supported in V1."
2396
2370
  ), {
2397
2371
  type: "dm",
2398
- recipient: ne(r.recipient, 0, t, `${n}.recipient`)
2372
+ recipient: J(r.recipient, 0, t, `${n}.recipient`)
2399
2373
  }) : (d(t, `${n}.type`, "Expected channel."), { type: "channel", channelId: "" });
2400
2374
  }
2401
- function kn(e, n, t) {
2375
+ function Cn(e, n, t) {
2402
2376
  if (e == null)
2403
2377
  return;
2404
2378
  if (!Array.isArray(e)) {
@@ -2406,15 +2380,15 @@ function kn(e, n, t) {
2406
2380
  return;
2407
2381
  }
2408
2382
  const r = e.map(
2409
- (o, a) => ne(o, a, t, n)
2383
+ (o, a) => J(o, a, t, n)
2410
2384
  );
2411
2385
  return r.length > 0 ? r : void 0;
2412
2386
  }
2413
- function An(e, n, t) {
2387
+ function xn(e, n, t) {
2414
2388
  if (e == null)
2415
2389
  return;
2416
2390
  const r = v(e, n, t);
2417
- p(
2391
+ h(
2418
2392
  r,
2419
2393
  n,
2420
2394
  [
@@ -2426,28 +2400,28 @@ function An(e, n, t) {
2426
2400
  ],
2427
2401
  t
2428
2402
  );
2429
- const o = kn(
2403
+ const o = Cn(
2430
2404
  r.threadMentions,
2431
2405
  `${n}.threadMentions`,
2432
2406
  t
2433
- ), a = R(
2407
+ ), a = _(
2434
2408
  r.postThreadDetail,
2435
2409
  !0,
2436
2410
  `${n}.postThreadDetail`,
2437
2411
  t
2438
- ), i = R(
2412
+ ), i = _(
2439
2413
  r.includeDashboardLink,
2440
2414
  !0,
2441
2415
  `${n}.includeDashboardLink`,
2442
2416
  t
2443
- ), c = R(
2417
+ ), c = _(
2444
2418
  r.includeBriefingLink,
2445
2419
  !0,
2446
2420
  `${n}.includeBriefingLink`,
2447
2421
  t
2448
2422
  );
2449
2423
  return {
2450
- destination: Sn(
2424
+ destination: $n(
2451
2425
  r.destination,
2452
2426
  `${n}.destination`,
2453
2427
  t
@@ -2458,9 +2432,9 @@ function An(e, n, t) {
2458
2432
  ...r.includeBriefingLink !== void 0 ? { includeBriefingLink: c } : {}
2459
2433
  };
2460
2434
  }
2461
- function wn(e, n, t) {
2435
+ function Tn(e, n, t) {
2462
2436
  const r = v(e, n, t);
2463
- p(
2437
+ h(
2464
2438
  r,
2465
2439
  n,
2466
2440
  [
@@ -2474,10 +2448,10 @@ function wn(e, n, t) {
2474
2448
  ],
2475
2449
  t
2476
2450
  );
2477
- const o = D(
2451
+ const o = k(
2478
2452
  r.formatProfile,
2479
2453
  `${n}.formatProfile`,
2480
- Jt,
2454
+ Wt,
2481
2455
  "concise, balanced, or detailed",
2482
2456
  t
2483
2457
  ), a = I(
@@ -2495,16 +2469,16 @@ function wn(e, n, t) {
2495
2469
  `${n}.summaryOverride`,
2496
2470
  2e3,
2497
2471
  t
2498
- ), l = R(
2472
+ ), l = _(
2499
2473
  r.actionBlockVisible,
2500
2474
  !0,
2501
2475
  `${n}.actionBlockVisible`,
2502
2476
  t
2503
- ), m = Tn(
2477
+ ), m = En(
2504
2478
  r.webhookConfig,
2505
2479
  `${n}.webhookConfig`,
2506
2480
  t
2507
- ), s = An(
2481
+ ), s = xn(
2508
2482
  r.slackConfig,
2509
2483
  `${n}.slackConfig`,
2510
2484
  t
@@ -2519,12 +2493,12 @@ function wn(e, n, t) {
2519
2493
  ...m ? { webhookConfig: m } : {}
2520
2494
  };
2521
2495
  }
2522
- function Dn(e, n) {
2496
+ function Sn(e, n) {
2523
2497
  if (e == null)
2524
2498
  return;
2525
2499
  const t = v(e, "deliveryConfig.channelConfigs", n), r = {};
2526
2500
  return Object.entries(t).forEach(([o, a]) => {
2527
- if (!_e(o)) {
2501
+ if (!we(o)) {
2528
2502
  d(
2529
2503
  n,
2530
2504
  `deliveryConfig.channelConfigs.${o}`,
@@ -2532,27 +2506,27 @@ function Dn(e, n) {
2532
2506
  );
2533
2507
  return;
2534
2508
  }
2535
- r[o] = wn(
2509
+ r[o] = Tn(
2536
2510
  a,
2537
2511
  `deliveryConfig.channelConfigs.${o}`,
2538
2512
  n
2539
2513
  );
2540
2514
  }), Object.keys(r).length > 0 ? r : void 0;
2541
2515
  }
2542
- function _n(e, n) {
2516
+ function kn(e, n) {
2543
2517
  var l, m, s;
2544
2518
  if (e == null)
2545
2519
  return null;
2546
2520
  const t = v(e, "deliveryConfig", n);
2547
- p(
2521
+ h(
2548
2522
  t,
2549
2523
  "deliveryConfig",
2550
2524
  ["recipients", "channels", "channelConfigs"],
2551
2525
  n
2552
2526
  );
2553
- const r = Dn(t.channelConfigs, n), o = $n(t.recipients, n), a = xn(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();
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();
2554
2528
  return a.some(
2555
- (u) => u !== "SLACK"
2529
+ (f) => f !== "SLACK"
2556
2530
  ) && o.length === 0 && d(
2557
2531
  n,
2558
2532
  "deliveryConfig.recipients",
@@ -2575,9 +2549,9 @@ function _n(e, n) {
2575
2549
  ...r ? { channelConfigs: r } : {}
2576
2550
  };
2577
2551
  }
2578
- function re(e) {
2552
+ function Q(e) {
2579
2553
  const n = [], t = v(e, "draft", n);
2580
- p(
2554
+ h(
2581
2555
  t,
2582
2556
  "draft",
2583
2557
  [
@@ -2598,15 +2572,15 @@ function re(e) {
2598
2572
  const r = b(
2599
2573
  t.name,
2600
2574
  "name",
2601
- f.name,
2575
+ u.name,
2602
2576
  n
2603
2577
  ), o = I(
2604
2578
  t.description,
2605
2579
  "description",
2606
- f.description,
2580
+ u.description,
2607
2581
  n
2608
- ) ?? null, a = I(t.scheduleExpr, "scheduleExpr", 500, n) ?? null, i = I(t.timezone, "timezone", 200, n) ?? "UTC", c = an(t.status, n), l = xe(t.source, n), m = Ce(t.body, n), s = ke(t.attachments, n), u = Te(t.presentation, n), h = Ae(t.limits, n), g = _n(t.deliveryConfig, n);
2609
- return we(m, s, n), te(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);
2583
+ return ke(m, s, n), Y(n), {
2610
2584
  name: r,
2611
2585
  description: o,
2612
2586
  status: c,
@@ -2615,97 +2589,97 @@ function re(e) {
2615
2589
  source: l,
2616
2590
  body: m,
2617
2591
  attachments: s,
2618
- presentation: u,
2619
- ...h ? { limits: h } : {},
2592
+ presentation: f,
2593
+ ...p ? { limits: p } : {},
2620
2594
  deliveryConfig: g
2621
2595
  };
2622
2596
  }
2623
- function yr(e) {
2624
- return re(e);
2597
+ function mr(e) {
2598
+ return Q(e);
2625
2599
  }
2626
- function gr(e) {
2627
- return re(e);
2600
+ function ur(e) {
2601
+ return Q(e);
2628
2602
  }
2629
- function br(e) {
2603
+ function fr(e) {
2630
2604
  try {
2631
- return { valid: !0, value: re(e), issues: [] };
2605
+ return { valid: !0, value: Q(e), issues: [] };
2632
2606
  } catch (n) {
2633
- if (n instanceof j)
2607
+ if (n instanceof P)
2634
2608
  return { valid: !1, issues: n.issues };
2635
2609
  throw n;
2636
2610
  }
2637
2611
  }
2638
- function Ir(e) {
2612
+ function pr(e) {
2639
2613
  try {
2640
- return { valid: !0, value: De(e), issues: [] };
2614
+ return { valid: !0, value: Ae(e), issues: [] };
2641
2615
  } catch (n) {
2642
- if (n instanceof j)
2616
+ if (n instanceof P)
2643
2617
  return { valid: !1, issues: n.issues };
2644
2618
  throw n;
2645
2619
  }
2646
2620
  }
2647
- function vr(e) {
2648
- return typeof e == "string" && Ee.has(e);
2621
+ function hr(e) {
2622
+ return typeof e == "string" && Ie.has(e);
2649
2623
  }
2650
- function _e(e) {
2651
- return typeof e == "string" && Ht.has(e);
2624
+ function we(e) {
2625
+ return typeof e == "string" && zt.has(e);
2652
2626
  }
2653
2627
  export {
2654
- Q as $,
2655
- f as A,
2656
- Z as B,
2657
- x as C,
2658
- or as D,
2659
- qt as E,
2660
- Kt as F,
2661
- ur as G,
2662
- ve as H,
2663
- j as I,
2664
- hn as J,
2665
- pr as K,
2666
- De as L,
2667
- H as M,
2668
- hr as N,
2669
- re as O,
2670
- yr as P,
2671
- gr as Q,
2672
- br as R,
2673
- Ir as S,
2674
- vr as T,
2675
- _e as U,
2676
- Qn as V,
2677
- ht as W,
2678
- ft as X,
2679
- Zn as Y,
2680
- mt as Z,
2681
- pt as _,
2682
- mr as a,
2683
- Mt as a0,
2684
- Ut as a1,
2685
- Vt as a2,
2686
- ut as b,
2687
- Jn as c,
2688
- ir as d,
2689
- er as e,
2690
- rr as f,
2691
- fr as g,
2692
- Xn as h,
2693
- Yn as i,
2694
- Ct as j,
2695
- ar as k,
2696
- N as l,
2697
- cr as m,
2698
- Rt as n,
2699
- lr as o,
2700
- be as p,
2701
- ye as q,
2702
- zt as r,
2703
- dr as s,
2704
- sr as t,
2705
- yt as u,
2706
- me as v,
2707
- nr as w,
2708
- tr as x,
2709
- jt as y,
2710
- Y as z
2628
+ X as $,
2629
+ u as A,
2630
+ H as B,
2631
+ $ as C,
2632
+ Qn as D,
2633
+ Pt as E,
2634
+ Vt as F,
2635
+ lr as G,
2636
+ be as H,
2637
+ P as I,
2638
+ mn as J,
2639
+ dr as K,
2640
+ Ae as L,
2641
+ z as M,
2642
+ sr as N,
2643
+ Q as O,
2644
+ mr as P,
2645
+ ur as Q,
2646
+ fr as R,
2647
+ pr as S,
2648
+ hr as T,
2649
+ we as U,
2650
+ Wn as V,
2651
+ mt as W,
2652
+ lt as X,
2653
+ Kn as Y,
2654
+ ct as Z,
2655
+ st as _,
2656
+ ir as a,
2657
+ Ft as a0,
2658
+ Rt as a1,
2659
+ Lt as a2,
2660
+ dt as b,
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,
2668
+ vt as j,
2669
+ er as k,
2670
+ O as l,
2671
+ nr as m,
2672
+ Dt as n,
2673
+ rr as o,
2674
+ ye as p,
2675
+ pe as q,
2676
+ Mt as r,
2677
+ or as s,
2678
+ ar as t,
2679
+ ut as u,
2680
+ de as v,
2681
+ Yn as w,
2682
+ Zn as x,
2683
+ Ut as y,
2684
+ G as z
2711
2685
  };