react-semaphor 0.1.569 → 0.1.571

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 (112) hide show
  1. package/dist/appearance/index.js +6 -3
  2. package/dist/appearance-runtime/index.js +1 -1
  3. package/dist/assistant-context/index.js +1 -1
  4. package/dist/brand-studio/index.js +570 -432
  5. package/dist/briefings/index.js +2 -2
  6. package/dist/chunks/appearance-context-BwBp25ZG.js +162 -0
  7. package/dist/chunks/appearance-runtime-provider-BRHYELkC.js +80 -0
  8. package/dist/chunks/assistant-chat-SkCraw2C.js +5940 -0
  9. package/dist/chunks/{bookmark-impact-Czg6FGt5.js → bookmark-impact-DCYD-6Fr.js} +1 -1
  10. package/dist/chunks/brand-BoUV0iHF.js +54 -0
  11. package/dist/chunks/{card-filter-builder-BS982X7x.js → card-filter-builder-D-aSYpyr.js} +72 -72
  12. package/dist/chunks/{comparison-window-caption-lLTgzOkM.js → comparison-window-caption-PtcDWvkN.js} +2 -2
  13. package/dist/chunks/{dashboard-BiYSbxZv.js → dashboard-B_w_ekUz.js} +1 -1
  14. package/dist/chunks/{dashboard-briefing-launcher-Bdj7luOr.js → dashboard-briefing-launcher-_g1m2tJ3.js} +183 -182
  15. package/dist/chunks/{dashboard-controls-TViDsnb8.js → dashboard-controls-CY0gbcCt.js} +285 -280
  16. package/dist/chunks/{dashboard-json-Dg9dQd9U.js → dashboard-json-DsM79yem.js} +3 -3
  17. package/dist/chunks/{dates-BsPrWZIP.js → dates-RSEzJ9N7.js} +13 -12
  18. package/dist/chunks/edit-9df1zOWe.js +226 -0
  19. package/dist/chunks/{edit-dashboard-visual-C6hoIeEJ.js → edit-dashboard-visual-cX0FM-4i.js} +2256 -2268
  20. package/dist/chunks/{filter-reach-copy-hcQ4os0u.js → filter-reach-copy-thzt25Rc.js} +1303 -1226
  21. package/dist/chunks/{filter-value-text-CVxEEDVl.js → filter-value-text-DvvSNlho.js} +1 -1
  22. package/dist/chunks/index-BVKzKl5d.js +90 -0
  23. package/dist/chunks/{index-RNaTnE3m.js → index-CV_Kzou0.js} +233 -223
  24. package/dist/chunks/{index-G4q89J6O.js → index-y3HUzRNk.js} +61 -60
  25. package/dist/chunks/{layout-grid-BIcoFfdS.js → layout-grid-8rR-LPTk.js} +1 -1
  26. package/dist/chunks/{list-filter-C6tYkHyv.js → list-filter-C1-uTgjR.js} +1 -1
  27. package/dist/chunks/paintbrush-aR17Z3C9.js +27 -0
  28. package/dist/chunks/{palette-NjHOE_6B.js → palette-a5FCZKFI.js} +1 -1
  29. package/dist/chunks/{_commonjsHelpers-Bid1ZNYj.js → pickers-DkqmtnTL.js} +179 -166
  30. package/dist/chunks/{pivot-result-contract-expectations-DkmueDTW.js → pivot-result-contract-expectations-C-HnUKYe.js} +1 -1
  31. package/dist/chunks/{report-preferences-dialog-Xc8_GFju.js → report-preferences-dialog-B_GXs91t.js} +79 -79
  32. package/dist/chunks/{resolve-dashboard-input-context-KqvcLcTM.js → resolve-dashboard-input-context-Lkbwycwe.js} +5179 -5391
  33. package/dist/chunks/resolver-DG_tfEpt.js +156 -0
  34. package/dist/chunks/{save-C6VmEJTA.js → save-D985VvYp.js} +1 -1
  35. package/dist/chunks/{saved-dashboard-context-BeXXyoD4.js → saved-dashboard-context-DC_TEd6y.js} +3 -3
  36. package/dist/chunks/schema-C9NPiIru.js +2568 -0
  37. package/dist/chunks/{semaphor-ready-indicator-BNkaANsG.js → semaphor-ready-indicator-CBQamwQY.js} +33931 -34031
  38. package/dist/chunks/{shelf-drop-preview-context-C_issPBA.js → shelf-drop-preview-context-Bkjf0XXw.js} +50 -50
  39. package/dist/chunks/{stored-dashboard-B6_StAty.js → stored-dashboard-C0hekXiI.js} +189 -188
  40. package/dist/chunks/{code-editor-BsxHzm9u.js → style-sheet-parts-C7qGZuH1.js} +2400 -2036
  41. package/dist/chunks/{table-export-sheet-BWP2joD1.js → table-export-sheet-CP8zSOhj.js} +1 -1
  42. package/dist/chunks/{temporal-input-presentation-scSWQXAB.js → temporal-input-presentation-CqbJjIuu.js} +14 -14
  43. package/dist/chunks/{upload-BRW4Mwrd.js → upload-CiGNKJ_0.js} +1 -1
  44. package/dist/chunks/{variable-draft-BQ3OMjvy.js → variable-draft-DvglU8yj.js} +2 -2
  45. package/dist/dashboard/index.js +1 -1
  46. package/dist/dashboard-authoring/index.js +2064 -1946
  47. package/dist/format-utils/index.js +8 -8
  48. package/dist/index.js +332 -335
  49. package/dist/layouts/index.js +1 -1
  50. package/dist/style.css +1 -1
  51. package/dist/surfboard/index.js +1 -1
  52. package/dist/types/appearance/index.d.ts +1 -0
  53. package/dist/types/brand-studio/brand-studio-draft.d.ts +7 -0
  54. package/dist/types/brand-studio/index.d.ts +1 -1
  55. package/dist/types/components/briefings/briefing-author/run-model.d.ts +1 -2
  56. package/dist/types/components/providers/appearance-runtime-provider.d.ts +4 -1
  57. package/dist/types/components/sharing-and-management/hooks/use-resource-management.d.ts +0 -2
  58. package/dist/types/components/sharing-and-management/utils/types.d.ts +0 -72
  59. package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +0 -1
  60. package/dist/types/components/visual/data-table/types/data-table.d.ts +0 -9
  61. package/dist/types/components/visual/data-table/utils/pagination-utils.d.ts +0 -19
  62. package/dist/types/components/visual/shared/utils/table-column-order.d.ts +0 -1
  63. package/dist/types/lib/appearance/aliases.d.ts +42 -0
  64. package/dist/types/lib/appearance/compiler.d.ts +6 -0
  65. package/dist/types/lib/appearance/defaults.d.ts +6 -0
  66. package/dist/types/lib/appearance/index.d.ts +2 -0
  67. package/dist/types/lib/appearance/normalize-organization.d.ts +17 -0
  68. package/dist/types/lib/appearance/resolver.d.ts +2 -2
  69. package/dist/types/lib/appearance/types.d.ts +38 -1
  70. package/dist/types/lib/charts/types.d.ts +6 -2
  71. package/dist/types/lib/dashboard/semantic-dataset-references.d.ts +0 -1
  72. package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +0 -2
  73. package/dist/types/lib/dashboard-variables/types.d.ts +1 -6
  74. package/dist/types/lib/download-pdf.d.ts +0 -1
  75. package/dist/types/lib/hooks/use-dashboard.d.ts +3 -4
  76. package/dist/types/lib/stores/dashboard-store.d.ts +15 -6
  77. package/dist/types/lib/stores/editor-store.d.ts +0 -1
  78. package/dist/types/lib/stores/table-actions.d.ts +0 -1
  79. package/dist/types/lib/table-formatting/table-formatting-css.d.ts +0 -5
  80. package/dist/types/lib/types/common-types.d.ts +3 -52
  81. package/dist/types/lib/types/summary-types.d.ts +0 -5
  82. package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +4 -4
  83. package/dist/types/shared/analytics-protocol/execution-input-schemas.d.ts +10 -10
  84. package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +68 -68
  85. package/dist/types/shared/assistant-protocol/context.d.ts +18 -18
  86. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +212 -42
  87. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +4 -1
  88. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +8 -0
  89. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +30 -30
  90. package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +4 -4
  91. package/dist/types/shared/dashboard-authoring/dashboard-style/bounds.d.ts +17 -0
  92. package/dist/types/shared/dashboard-authoring/dashboard-style/brand.d.ts +20 -0
  93. package/dist/types/shared/dashboard-authoring/dashboard-style/edit-words.d.ts +7 -0
  94. package/dist/types/shared/dashboard-authoring/dashboard-style/edit.d.ts +19 -0
  95. package/dist/types/shared/dashboard-authoring/dashboard-style/index.d.ts +15 -0
  96. package/dist/types/shared/dashboard-authoring/dashboard-style/layers.d.ts +20 -0
  97. package/dist/types/shared/dashboard-authoring/dashboard-style/legacy.d.ts +21 -0
  98. package/dist/types/shared/dashboard-authoring/dashboard-style/parse.d.ts +18 -0
  99. package/dist/types/shared/dashboard-authoring/dashboard-style/pickers.d.ts +12 -0
  100. package/dist/types/shared/dashboard-authoring/dashboard-style/types.d.ts +122 -0
  101. package/dist/types/shared/dashboard-authoring/dashboard-style/view.d.ts +10 -0
  102. package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
  103. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +11 -0
  104. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +19 -0
  105. package/dist/types/shared/format-utils/matrix-continuation.d.ts +7 -7
  106. package/package.json +6 -3
  107. package/dist/chunks/appearance-context-DEYtWinQ.js +0 -126
  108. package/dist/chunks/appearance-runtime-provider-B-M8gwlZ.js +0 -81
  109. package/dist/chunks/assistant-chat-Dzf2Mbph.js +0 -8847
  110. package/dist/chunks/color-CJvdlFM_.js +0 -2162
  111. package/dist/chunks/index-CLIro-EG.js +0 -425
  112. package/dist/types/components/sharing-and-management/utils/group-types.d.ts +0 -105
@@ -1,17 +1,18 @@
1
- import { gW as co, cB as uo, c1 as fo, aT as po, bd as mo, f as go, bV as yo, N as oe, gX as bo, gY as Ne, e5 as Rt, e8 as ho, bM as Co, gZ as Io, au as vo, fL as Kt, fN as Fo, bx as Le, g_ as qt, P as So, fP as To, d0 as Fe, s as _, fG as Se, n as je, g$ as Do, cW as Nt, cY as Lt, cH as Mo, c$ as Vo, cZ as bt, c_ as ko, b as Po, cJ as xo, cV as wo, cT as Oo, bA as jt, a4 as q, gj as Ao, h0 as Te, h1 as zt, h2 as Eo, h3 as ze, gy as De, h4 as Bo, h5 as Ge, h6 as _o, h7 as Ro, h8 as Ko, h9 as qo, ha as No, l as He, hb as Lo, k as ee, r as jo, h as zo, hc as U, gN as $e, hd as ge, he as Gt, hf as Go, J as Ho, hg as $o, hh as Uo, gb as Qo, hi as Wo, hj as Yo, e as Jo, hk as Zo, hl as Ht, a0 as $t, hm as Xo, hn as er, ho as tr, hp as Ut, j as Ue, cs as nr, a5 as or, o as Qt, cr as rr, gv as ir, q as sr, t as ht, C as ar, hq as lr, hr as cr, ct as ur, hs as dr } from "./resolve-dashboard-input-context-KqvcLcTM.js";
1
+ import { gX as co, cB as uo, c1 as fo, aT as po, bd as mo, f as go, bV as yo, N as oe, gY as bo, gZ as Ne, e6 as Rt, e9 as ho, bM as Co, g_ as Io, au as vo, fO as Kt, fQ as Fo, bx as Le, g$ as qt, P as So, fS as To, d0 as Fe, s as _, fJ as Se, n as je, h0 as Do, cW as Nt, cY as Lt, cH as Mo, c$ as Vo, cZ as bt, c_ as ko, b as xo, cJ as Po, cV as wo, cT as Oo, bA as jt, a4 as q, gl as Ao, h1 as Te, h2 as zt, h3 as Eo, h4 as ze, gA as De, h5 as Bo, h6 as Ge, h7 as _o, h8 as Ro, h9 as Ko, ha as qo, hb as No, l as He, hc as Lo, k as ee, r as jo, h as zo, hd as U, gO as $e, he as ge, hf as Gt, hg as Go, J as Ho, hh as $o, hi as Uo, fI as Qo, hj as Wo, hk as Yo, e as Jo, hl as Zo, hm as Ht, a0 as $t, hn as Xo, ho as er, hp as tr, hq as Ut, j as Ue, cs as nr, a5 as or, o as Qt, cr as rr, gx as ir, q as sr, t as ht, C as ar, hr as lr, hs as cr, ct as ur, ht as dr } from "./resolve-dashboard-input-context-Lkbwycwe.js";
2
2
  import { ak as fr, a5 as re, J as pr, v as mr, aw as Oe, w as gr, a7 as Ct, ay as Wt, U as yr, r as br } from "./validators-B8fpdinG.js";
3
3
  import { q as Yt } from "./matrix-operation-contract-DCVinw1o.js";
4
4
  import { S as Qe } from "./analytics-base-schemas-BaIQrEzX.js";
5
- import "./_commonjsHelpers-Bid1ZNYj.js";
5
+ import "./pickers-DkqmtnTL.js";
6
6
  import { canonicalizeSupportedCurrencyCode as Jt } from "../value-format-preferences/index.js";
7
7
  import { ZodError as hr } from "zod";
8
- import { b as ye, r as Cr, aW as Ir, i as vr, aD as Fr, aA as It } from "./temporal-input-presentation-scSWQXAB.js";
9
- import { aB as Zt, aC as Xt, aD as ke, $ as Sr, aE as en, aF as tn, aA as nn, aG as on, n as Tr, l as Dr, v as rn, t as j, aH as sn, k as an, C as Ae, aI as H, z as ie, i as ln, o as Mr, u as Vr, B as We, aJ as kr, ah as Pr, F as cn, D as xr, az as vt, N as un, O as dn, I as fn } from "./bookmark-state-CflS88gq.js";
10
- import "./index-RNaTnE3m.js";
8
+ import { b as ye, r as Cr, aW as Ir, i as vr, aD as Fr, aA as It } from "./temporal-input-presentation-CqbJjIuu.js";
9
+ import { aB as Zt, aC as Xt, aD as ke, $ as Sr, aE as en, aF as tn, aA as nn, aG as on, n as Tr, l as Dr, v as rn, t as j, aH as sn, k as an, C as Ae, aI as H, z as ie, i as ln, o as Mr, u as Vr, B as We, aJ as kr, ah as xr, F as cn, D as Pr, az as vt, N as un, O as dn, I as fn } from "./bookmark-state-CflS88gq.js";
10
+ import "./schema-C9NPiIru.js";
11
+ import "./index-CV_Kzou0.js";
11
12
  import "./context-R31TSL5V.js";
12
13
  import { D as wr } from "./report-runtime-context-BhPzLTbS.js";
13
14
  import { r as Q, C as Or } from "./metric-comparison-n9NsIa-2.js";
14
- import { p as Ar, d as Er } from "./pivot-result-contract-expectations-DkmueDTW.js";
15
+ import { p as Ar, d as Er } from "./pivot-result-contract-expectations-C-HnUKYe.js";
15
16
  import { isPdfTableCardType as Br, PDF_CAPACITY as _r } from "../pdf-export-policy/index.js";
16
17
  import { c as Rr } from "./selection-filter-compiler-CUDRnUxc.js";
17
18
  import { a as Kr, h as qr, s as Nr } from "./matrix-analytical-definition-dkS8szLM.js";
@@ -114,7 +115,7 @@ function Yr(e, t, n, o) {
114
115
  return t ^ n ^ o;
115
116
  }
116
117
  }
117
- function Pe(e, t) {
118
+ function xe(e, t) {
118
119
  return e << t | e >>> 32 - t;
119
120
  }
120
121
  function Jr(e) {
@@ -139,11 +140,11 @@ function Jr(e) {
139
140
  for (let m = 0; m < 16; ++m)
140
141
  a[m] = i[s][m];
141
142
  for (let m = 16; m < 80; ++m)
142
- a[m] = Pe(a[m - 3] ^ a[m - 8] ^ a[m - 14] ^ a[m - 16], 1);
143
+ a[m] = xe(a[m - 3] ^ a[m - 8] ^ a[m - 14] ^ a[m - 16], 1);
143
144
  let c = n[0], l = n[1], u = n[2], d = n[3], f = n[4];
144
145
  for (let m = 0; m < 80; ++m) {
145
- const g = Math.floor(m / 20), p = Pe(c, 5) + Yr(g, l, u, d) + f + t[g] + a[m] >>> 0;
146
- f = d, d = u, u = Pe(l, 30) >>> 0, l = c, c = p;
146
+ const g = Math.floor(m / 20), p = xe(c, 5) + Yr(g, l, u, d) + f + t[g] + a[m] >>> 0;
147
+ f = d, d = u, u = xe(l, 30) >>> 0, l = c, c = p;
147
148
  }
148
149
  n[0] = n[0] + c >>> 0, n[1] = n[1] + l >>> 0, n[2] = n[2] + u >>> 0, n[3] = n[3] + d >>> 0, n[4] = n[4] + f >>> 0;
149
150
  }
@@ -247,7 +248,7 @@ function ni(e, t) {
247
248
  o[i] = mn(s, t);
248
249
  return Object.keys(o).length && (n.inputAliases = o), n;
249
250
  }
250
- function el(e, t) {
251
+ function tl(e, t) {
251
252
  var r, i, s, a;
252
253
  const n = be(Zt(e));
253
254
  n.controlBindings = ti(
@@ -329,7 +330,7 @@ function gn(e) {
329
330
  ]
330
331
  };
331
332
  }
332
- function tl(e) {
333
+ function nl(e) {
333
334
  if (!e.cards) return e;
334
335
  const t = e.cards.map((n) => gn(n).card);
335
336
  return t.every((n, o) => n === e.cards[o]) ? e : { ...e, cards: t };
@@ -371,7 +372,7 @@ function di(e, t, n) {
371
372
  )
372
373
  };
373
374
  }
374
- function nl(e) {
375
+ function ol(e) {
375
376
  switch (e) {
376
377
  case "previous_period":
377
378
  return "Previous";
@@ -391,7 +392,7 @@ function yn(e, t, n) {
391
392
  function fi(e, t) {
392
393
  return `${e} Δ`;
393
394
  }
394
- function ol(e, t) {
395
+ function rl(e, t) {
395
396
  return en(e, t);
396
397
  }
397
398
  function pi(e, t) {
@@ -412,7 +413,7 @@ function bn(e) {
412
413
  });
413
414
  return s.length === 1 ? s[0] : void 0;
414
415
  }
415
- function rl(e, t) {
416
+ function il(e, t) {
416
417
  return t ? { ...e, config: t } : e;
417
418
  }
418
419
  function mi(e) {
@@ -432,7 +433,7 @@ function gi(e, t, n, o) {
432
433
  const r = [...e], [i] = r.splice(t, 1), s = o === "before" ? n > t ? n - 1 : n : n > t ? n : n + 1;
433
434
  return r.splice(s, 0, i), r;
434
435
  }
435
- function xe(e, t, n) {
436
+ function Pe(e, t, n) {
436
437
  if (!(e != null && e.length)) return null;
437
438
  const o = e.findIndex(
438
439
  (i) => n(i).includes(t.draggingColumnId)
@@ -447,13 +448,13 @@ function we(e, t, n) {
447
448
  [t]: n
448
449
  } : null;
449
450
  }
450
- function il(e, t, n) {
451
+ function sl(e, t, n) {
451
452
  if (!W(e) || !n) return null;
452
453
  const o = e.config;
453
454
  return e.type === "detailTable" ? we(
454
455
  o,
455
456
  "detailColumns",
456
- xe(
457
+ Pe(
457
458
  o == null ? void 0 : o.detailColumns,
458
459
  t,
459
460
  (r) => me(r, "detail", n)
@@ -461,7 +462,7 @@ function il(e, t, n) {
461
462
  ) : we(
462
463
  o,
463
464
  "groupByColumns",
464
- xe(
465
+ Pe(
465
466
  o == null ? void 0 : o.groupByColumns,
466
467
  t,
467
468
  (r) => me(r, "groupby", n)
@@ -469,7 +470,7 @@ function il(e, t, n) {
469
470
  ) ?? we(
470
471
  o,
471
472
  "metricColumns",
472
- xe(
473
+ Pe(
473
474
  o == null ? void 0 : o.metricColumns,
474
475
  t,
475
476
  (r) => me(r, "metric", n)
@@ -480,7 +481,7 @@ function yi(e) {
480
481
  var t, n, o, r, i, s;
481
482
  return W(e) ? e.type === "detailTable" ? !!((n = (t = e.config) == null ? void 0 : t.detailColumns) != null && n.length) : !!((r = (o = e.config) == null ? void 0 : o.groupByColumns) != null && r.length || (s = (i = e.config) == null ? void 0 : i.metricColumns) != null && s.length) : !1;
482
483
  }
483
- function sl(e, t) {
484
+ function al(e, t) {
484
485
  return yi(e) && !!t;
485
486
  }
486
487
  function me(e, t, n) {
@@ -854,7 +855,7 @@ function ki(e) {
854
855
  const t = (n = e == null ? void 0 : e.numberFormat) == null ? void 0 : n.style;
855
856
  return t === void 0 || t === "decimal" || t === "currency";
856
857
  }
857
- function Pi(e, t) {
858
+ function xi(e, t) {
858
859
  const n = t == null ? void 0 : t.type;
859
860
  if (n && n !== "none" && n !== "number")
860
861
  return { currencyBindable: !1 };
@@ -868,7 +869,7 @@ function Pi(e, t) {
868
869
  currencyBindable: Ie(a)
869
870
  };
870
871
  }
871
- function xi(e, t) {
872
+ function Pi(e, t) {
872
873
  const n = ye(t.format, {
873
874
  preserveOmittedProperties: !0
874
875
  }), o = re(t.dataType) === "number" ? { type: "number" } : void 0, r = n || o;
@@ -917,7 +918,7 @@ function vn(e, t, n) {
917
918
  function Fn(e, t, n) {
918
919
  return e.kind === "calculated" ? e.definition.format : vn(e.field, t, n);
919
920
  }
920
- function al(e, t) {
921
+ function ll(e, t) {
921
922
  const n = qt(t), o = (r, i) => Object.fromEntries(r.flatMap((s) => {
922
923
  const a = i(s);
923
924
  return a ? [[s.id, a]] : [];
@@ -1003,10 +1004,10 @@ function Ai(e, t = [], n) {
1003
1004
  ), m = e.type === "matrixTable" ? [] : e.type === "kpi" ? c.filter((C) => C.currencyBindable).flatMap(
1004
1005
  (C) => C.target ? [C.target] : []
1005
1006
  ) : (o || !r ? [] : s).filter(
1006
- (C) => (To(e.type) ? Pi(
1007
+ (C) => (To(e.type) ? xi(
1007
1008
  C,
1008
1009
  Oi(a, C)
1009
- ) : xi(e, C)).currencyBindable
1010
+ ) : Pi(e, C)).currencyBindable
1010
1011
  ).map(
1011
1012
  (C) => ({
1012
1013
  kind: "metric",
@@ -1048,13 +1049,13 @@ function Ai(e, t = [], n) {
1048
1049
  ])
1049
1050
  };
1050
1051
  }
1051
- function ll(e, t) {
1052
+ function cl(e, t) {
1052
1053
  const n = Be(e, {
1053
1054
  resultColumnKey: t
1054
1055
  });
1055
1056
  return n.currencyBindable ? n.target : void 0;
1056
1057
  }
1057
- function cl(e) {
1058
+ function ul(e) {
1058
1059
  var t;
1059
1060
  return (t = e.card.sql) != null && t.trim() ? { kind: "column", columnKey: e.columnKey } : e.metricId ? { kind: "metric", metricId: e.metricId } : void 0;
1060
1061
  }
@@ -1094,7 +1095,7 @@ function Dn(e) {
1094
1095
  currencies: t
1095
1096
  };
1096
1097
  }
1097
- function ul(e) {
1098
+ function dl(e) {
1098
1099
  return "control" in Dn(e);
1099
1100
  }
1100
1101
  function Mn(e) {
@@ -1120,7 +1121,7 @@ function Mn(e) {
1120
1121
  )
1121
1122
  };
1122
1123
  }
1123
- function dl(e) {
1124
+ function fl(e) {
1124
1125
  return Mn({
1125
1126
  ...e,
1126
1127
  referencedControlIds: new Set(
@@ -1131,7 +1132,7 @@ function dl(e) {
1131
1132
  )
1132
1133
  });
1133
1134
  }
1134
- function fl(e) {
1135
+ function pl(e) {
1135
1136
  var t;
1136
1137
  return Mn({
1137
1138
  ...e,
@@ -1195,7 +1196,7 @@ function kn(e, t) {
1195
1196
  }
1196
1197
  };
1197
1198
  }
1198
- function pl(e) {
1199
+ function ml(e) {
1199
1200
  const t = Vn(e);
1200
1201
  return (e.bindings || []).flatMap((n) => {
1201
1202
  const o = kn(n, t);
@@ -1349,7 +1350,7 @@ function Li(e, t) {
1349
1350
  controlBindings: Ni(e.controlBindings, t)
1350
1351
  }) : "__none__";
1351
1352
  }
1352
- const ji = ["table", "detailTable"], Pt = (e) => ji.includes(e.type), zi = "calendar-context";
1353
+ const ji = ["table", "detailTable"], xt = (e) => ji.includes(e.type), zi = "calendar-context";
1353
1354
  function Gi(e) {
1354
1355
  const { id: t, label: n, field: o, ...r } = e;
1355
1356
  return {
@@ -1492,7 +1493,7 @@ function Wi(e, {
1492
1493
  }
1493
1494
  function Yi(e, t, n) {
1494
1495
  var a, c, l;
1495
- const o = Wi(e, t), r = _(o), i = ((a = n == null ? void 0 : n.resolvePaginationConfig) == null ? void 0 : a.call(n, r)) ?? e.paginationConfig, s = Pt(e) && Se(e.config) || Pt(e) && e.sql && ((l = (c = e.preferences) == null ? void 0 : c.tablePrefs) == null ? void 0 : l.enableDevModePagination);
1496
+ const o = Wi(e, t), r = _(o), i = ((a = n == null ? void 0 : n.resolvePaginationConfig) == null ? void 0 : a.call(n, r)) ?? e.paginationConfig, s = xt(e) && Se(e.config) || xt(e) && e.sql && ((l = (c = e.preferences) == null ? void 0 : c.tablePrefs) == null ? void 0 : l.enableDevModePagination);
1496
1497
  return {
1497
1498
  queryKey: [
1498
1499
  ...o,
@@ -1520,7 +1521,7 @@ function Ji(e, t, n, o) {
1520
1521
  o
1521
1522
  );
1522
1523
  }
1523
- function Pn(e) {
1524
+ function xn(e) {
1524
1525
  const t = {
1525
1526
  ...Or,
1526
1527
  ...e.presentation
@@ -1583,9 +1584,9 @@ function Pn(e) {
1583
1584
  columnPresentationOwners: d
1584
1585
  };
1585
1586
  }
1586
- function ml(e) {
1587
+ function gl(e) {
1587
1588
  var t, n;
1588
- return Pn({
1589
+ return xn({
1589
1590
  comparisonMetadata: e.comparisonMetadata,
1590
1591
  presentation: (n = (t = e.card) == null ? void 0 : t.preferences) == null ? void 0 : n.comparisonPresentation,
1591
1592
  resolveMetricName: ({ metricId: o, metricAlias: r }) => {
@@ -1599,7 +1600,7 @@ function ml(e) {
1599
1600
  }
1600
1601
  });
1601
1602
  }
1602
- function gl(e) {
1603
+ function yl(e) {
1603
1604
  var n;
1604
1605
  return (((n = e.card.config) == null ? void 0 : n.metricColumns) || []).filter(
1605
1606
  (o) => {
@@ -1629,7 +1630,7 @@ function et(e, t) {
1629
1630
  metricAlias: Q(e)
1630
1631
  } : { kind: "dimension", role: t, fieldId: e.id };
1631
1632
  }
1632
- function xt(e) {
1633
+ function Pt(e) {
1633
1634
  const t = /* @__PURE__ */ new Map();
1634
1635
  for (const n of e) t.set(n, (t.get(n) ?? 0) + 1);
1635
1636
  return t;
@@ -1649,7 +1650,7 @@ function Xi(e, t) {
1649
1650
  }
1650
1651
  ] : [];
1651
1652
  })
1652
- ), s = xt(i.map((m) => m.columnId)), a = xt(
1653
+ ), s = Pt(i.map((m) => m.columnId)), a = Pt(
1653
1654
  i.flatMap(
1654
1655
  (m) => m.outputKey ? [m.outputKey] : []
1655
1656
  )
@@ -1730,7 +1731,7 @@ function es(e) {
1730
1731
  }
1731
1732
  return { entries: t, owners: n };
1732
1733
  }
1733
- function yl(e) {
1734
+ function bl(e) {
1734
1735
  const t = /* @__PURE__ */ new Set();
1735
1736
  for (const n of e ?? [])
1736
1737
  if (n && typeof n == "object")
@@ -1752,7 +1753,7 @@ function ns(e, t, n, o) {
1752
1753
  const m = e.type === "table" ? (c = e.preferences) == null ? void 0 : c.comparisonPresentation : void 0;
1753
1754
  sn(m) || (r = r.filter((g) => !f.comparisonColumnKeys.has(g)));
1754
1755
  } else {
1755
- const f = Pn({
1756
+ const f = xn({
1756
1757
  comparisonMetadata: s,
1757
1758
  presentation: (l = e.preferences) == null ? void 0 : l.comparisonPresentation,
1758
1759
  resolveMetricName: o
@@ -1822,7 +1823,7 @@ function is(e, t, n) {
1822
1823
  function ss(e, t) {
1823
1824
  return e ? "query" : t === "server" ? "page-only" : "browser";
1824
1825
  }
1825
- function xn(e, t) {
1826
+ function Pn(e, t) {
1826
1827
  var n, o, r;
1827
1828
  return !!t && ((r = (o = (n = e.preferences) == null ? void 0 : n.tablePrefs) == null ? void 0 : o.columnVisibility) == null ? void 0 : r[t]) === !1;
1828
1829
  }
@@ -1883,7 +1884,7 @@ function cs(e, t, n, o) {
1883
1884
  ...de(e.slice(i + 1), t, n)
1884
1885
  ];
1885
1886
  }
1886
- function bl(e) {
1887
+ function hl(e) {
1887
1888
  if (oe(e) !== "config") return;
1888
1889
  const t = /* @__PURE__ */ new Set();
1889
1890
  for (const { role: n, fields: o } of Xe(e))
@@ -1893,11 +1894,11 @@ function bl(e) {
1893
1894
  }
1894
1895
  return t;
1895
1896
  }
1896
- function hl(e) {
1897
+ function Cl(e) {
1897
1898
  const t = an(e);
1898
1899
  return (t == null ? void 0 : t.kind) === "metric" && t.metricId === Qe;
1899
1900
  }
1900
- function Cl(e) {
1901
+ function Il(e) {
1901
1902
  var ut, dt, ft, pt, mt, gt, yt;
1902
1903
  const { card: t, result: n } = e, o = e.projection ?? "screen", r = oe(t) === "config", i = as(t), s = i === "card-type" ? void 0 : i === "author-disabled" ? (ut = e.settings) != null && ut.sort ? { sort: e.settings.sort } : void 0 : e.settings, a = ss(r, e.paginationMode), c = n.columnKeyMap, l = r ? Xi(t, n) : es(n), u = (b) => {
1903
1904
  var S, V;
@@ -1911,7 +1912,7 @@ function Cl(e) {
1911
1912
  const S = d(b);
1912
1913
  return u(l.entries.has(S) ? S : void 0) ?? ((V = l.entries.get(S)) == null ? void 0 : V.authorLabel);
1913
1914
  }
1914
- ), g = (b) => xn(t, b), p = (b) => {
1915
+ ), g = (b) => Pn(t, b), p = (b) => {
1915
1916
  const S = l.owners.get(b);
1916
1917
  if (!S || i === "card-type") return;
1917
1918
  const V = l.entries.get(S.columnId);
@@ -1959,14 +1960,14 @@ function Cl(e) {
1959
1960
  )
1960
1961
  )
1961
1962
  } : void 0
1962
- ), F = M == null ? void 0 : M.order, k = F ? cs(y, p, F, n.columns) : y, O = F ? [...k, ...f.filter(g)] : f, x = _e(k, p).flatMap(
1963
+ ), F = M == null ? void 0 : M.order, k = F ? cs(y, p, F, n.columns) : y, O = F ? [...k, ...f.filter(g)] : f, P = _e(k, p).flatMap(
1963
1964
  (b) => b.columnId ? [b.columnId] : []
1964
1965
  ), T = new Set((M == null ? void 0 : M.hidden) ?? []);
1965
- x.length && x.every((b) => T.has(b)) && T.delete(x[0]);
1966
- const P = o === "screen" ? os(t, n, f) : /* @__PURE__ */ new Map(), E = (b, S) => {
1966
+ P.length && P.every((b) => T.has(b)) && T.delete(P[0]);
1967
+ const x = o === "screen" ? os(t, n, f) : /* @__PURE__ */ new Map(), E = (b, S) => {
1967
1968
  const V = u(S == null ? void 0 : S.columnId);
1968
1969
  if ((S == null ? void 0 : S.part) === "base" && V) return V;
1969
- const K = P.get(b);
1970
+ const K = x.get(b);
1970
1971
  if (K)
1971
1972
  return fi(
1972
1973
  ((S == null ? void 0 : S.part) === "comparison" ? V : void 0) ?? (K.metric.label || K.metric.name),
@@ -2014,16 +2015,16 @@ function Cl(e) {
2014
2015
  let ue;
2015
2016
  if (i)
2016
2017
  ue = { available: !1, reason: i };
2017
- else if (!x.length)
2018
+ else if (!P.length)
2018
2019
  ue = { available: !1, reason: "no-addressable-columns" };
2019
2020
  else {
2020
- const b = new Set(F ?? []), S = x.filter(
2021
+ const b = new Set(F ?? []), S = P.filter(
2021
2022
  (V) => !T.has(V)
2022
2023
  ).length;
2023
2024
  ue = {
2024
2025
  available: !0,
2025
2026
  canReset: ct,
2026
- items: x.map((V) => {
2027
+ items: P.map((V) => {
2027
2028
  const K = l.entries.get(V), J = T.has(V), Z = ao.get(V);
2028
2029
  return {
2029
2030
  columnId: V,
@@ -2052,7 +2053,7 @@ function Cl(e) {
2052
2053
  author: { order: I }
2053
2054
  };
2054
2055
  }
2055
- function Il(e, t) {
2056
+ function vl(e, t) {
2056
2057
  var n;
2057
2058
  return (n = wn(e, t)) == null ? void 0 : n.field;
2058
2059
  }
@@ -2078,7 +2079,7 @@ function us(e, t) {
2078
2079
  const i = wn(e, r.columnId);
2079
2080
  if (!i) return [];
2080
2081
  const s = Nr(i.field, i.role);
2081
- return xn(e, s) ? [] : [
2082
+ return Pn(e, s) ? [] : [
2082
2083
  {
2083
2084
  ...i.field,
2084
2085
  alias: s,
@@ -2128,12 +2129,12 @@ function tt(e, t) {
2128
2129
  ...i.map((s) => ({ ...s, role: "metric" }))
2129
2130
  ].filter((s) => !!s.id);
2130
2131
  }
2131
- function vl(e, t) {
2132
+ function Fl(e, t) {
2132
2133
  return t ? !ae(e).some(
2133
2134
  (n) => t[n] === !1
2134
2135
  ) : !0;
2135
2136
  }
2136
- function Fl(e, t) {
2137
+ function Sl(e, t) {
2137
2138
  for (const n of ae(e))
2138
2139
  if (t != null && t[n])
2139
2140
  return n;
@@ -2158,7 +2159,7 @@ function fs(e, t, n) {
2158
2159
  (r) => o.some((i) => i.has(r))
2159
2160
  );
2160
2161
  }
2161
- function Sl({
2162
+ function Tl({
2162
2163
  card: e,
2163
2164
  effectiveCardConfig: t,
2164
2165
  visibleColumnIds: n,
@@ -2180,7 +2181,7 @@ function Sl({
2180
2181
  ])
2181
2182
  );
2182
2183
  }
2183
- function Tl(e) {
2184
+ function Dl(e) {
2184
2185
  var t, n, o, r, i, s;
2185
2186
  return nt(e) ? {
2186
2187
  ...e,
@@ -2234,7 +2235,7 @@ function ps(e, t, n) {
2234
2235
  columns: a
2235
2236
  } : void 0;
2236
2237
  }
2237
- function Dl(e) {
2238
+ function Ml(e) {
2238
2239
  var t, n, o, r, i, s;
2239
2240
  return {
2240
2241
  ...e,
@@ -2261,7 +2262,7 @@ function ys(e) {
2261
2262
  var t, n, o;
2262
2263
  return !!((t = e.sql) != null && t.trim() && Re(e) && ((o = (n = e.preferences) == null ? void 0 : n.tablePrefs) != null && o.enableDevModePagination));
2263
2264
  }
2264
- function Ml(e) {
2265
+ function Vl(e) {
2265
2266
  return e === "export-full-with-cap" ? ms : gs;
2266
2267
  }
2267
2268
  function bs({
@@ -2278,7 +2279,7 @@ function hs(e) {
2278
2279
  var t, n, o;
2279
2280
  return ((t = e.paginationConfig) == null ? void 0 : t.pageSize) || ((o = (n = e.preferences) == null ? void 0 : n.tablePrefs) == null ? void 0 : o.pageSize) || 50;
2280
2281
  }
2281
- function Vl({
2282
+ function kl({
2282
2283
  current: e,
2283
2284
  defaultPageSize: t,
2284
2285
  queryInputIdentity: n
@@ -2291,7 +2292,7 @@ function Vl({
2291
2292
  pageSize: (e == null ? void 0 : e.pageSize) ?? t
2292
2293
  };
2293
2294
  }
2294
- function kl(e, t, n) {
2295
+ function xl(e, t, n) {
2295
2296
  return (e == null ? void 0 : e.queryInputIdentity) === n && e.page === t.page && e.pageSize === t.pageSize;
2296
2297
  }
2297
2298
  function Pl(e, t) {
@@ -2340,7 +2341,7 @@ function Fs(e, t) {
2340
2341
  selectedEntities: []
2341
2342
  };
2342
2343
  }
2343
- function xl(e, t, n = {}) {
2344
+ function wl(e, t, n = {}) {
2344
2345
  const o = vs(e, n);
2345
2346
  if (!o)
2346
2347
  throw new Error("No connection ID found for card");
@@ -2413,7 +2414,7 @@ function Ts(e) {
2413
2414
  const C = `${p.target}:${y}`;
2414
2415
  s.has(C) && I("Multiple controls cannot replace the same Matrix target."), s.add(C);
2415
2416
  const w = (F) => {
2416
- const k = (l().byId.get(F.id) ?? []).filter((x) => !F.source || Oe(F.source, x.field.source ?? e.spec.source));
2417
+ const k = (l().byId.get(F.id) ?? []).filter((P) => !F.source || Oe(F.source, P.field.source ?? e.spec.source));
2417
2418
  if (k.length !== 1) return I(k.length ? "The selected field is ambiguous in the authorized Matrix field catalog." : "The selected field is not in the authorized Matrix field catalog.");
2418
2419
  const O = gr.safeParse(k[0].field);
2419
2420
  return O.success ? O.data : I(O.error.message);
@@ -2424,15 +2425,15 @@ function Ts(e) {
2424
2425
  (T) => T.id === M && T.kind === "aggregate"
2425
2426
  );
2426
2427
  M !== void 0 && !F && I("The selected Matrix aggregate measure is no longer available.");
2427
- const k = p.target === "config_metric_selector" && !F ? Vo({ binding: p, selectedValue: h }) : void 0, O = ((F == null ? void 0 : F.kind) === "aggregate" ? F.aggregate : k == null ? void 0 : k.aggregate) ?? (p.target === "config_aggregation" ? bt({ binding: p, selectedValue: h }) : void 0), x = O === void 0 ? void 0 : mr.safeParse(O);
2428
- x && !x.success && I("This aggregation is not supported by Matrix."), t = {
2428
+ const k = p.target === "config_metric_selector" && !F ? Vo({ binding: p, selectedValue: h }) : void 0, O = ((F == null ? void 0 : F.kind) === "aggregate" ? F.aggregate : k == null ? void 0 : k.aggregate) ?? (p.target === "config_aggregation" ? bt({ binding: p, selectedValue: h }) : void 0), P = O === void 0 ? void 0 : mr.safeParse(O);
2429
+ P && !P.success && I("This aggregation is not supported by Matrix."), t = {
2429
2430
  ...t,
2430
2431
  measures: t.measures.map(
2431
2432
  (T) => T.id !== y || T.kind !== "aggregate" ? T : {
2432
2433
  ...T,
2433
2434
  ...k ? { field: w(k) } : {},
2434
2435
  ...(F == null ? void 0 : F.kind) === "aggregate" ? { field: F.field } : {},
2435
- aggregate: x != null && x.success ? x.data : T.aggregate
2436
+ aggregate: P != null && P.success ? P.data : T.aggregate
2436
2437
  }
2437
2438
  )
2438
2439
  };
@@ -2443,15 +2444,15 @@ function Ts(e) {
2443
2444
  M !== void 0 && !F && I("The selected Matrix level is no longer available.");
2444
2445
  const k = p.target === "config_field_selector" && !F ? ko({ binding: p, selectedValue: h }) : void 0, O = p.target === "config_grain" ? bt({ binding: p, selectedValue: h }) : F ? F.grain : k == null ? void 0 : k.granularity;
2445
2446
  O !== void 0 && !Ss.has(O) && I("This time grain is not supported by Matrix.");
2446
- const x = (T) => T.map((P) => {
2447
- if (P.id !== y) return P;
2448
- const E = (F == null ? void 0 : F.field) ?? (k ? w(k) : P.field), R = d(E, p.controlId), z = O ?? (k && Ct(R) ? P.grain : void 0);
2449
- return z && !Ct(R) && I("A time grain requires a temporal Matrix level."), { ...P, field: E, grain: z };
2447
+ const P = (T) => T.map((x) => {
2448
+ if (x.id !== y) return x;
2449
+ const E = (F == null ? void 0 : F.field) ?? (k ? w(k) : x.field), R = d(E, p.controlId), z = O ?? (k && Ct(R) ? x.grain : void 0);
2450
+ return z && !Ct(R) && I("A time grain requires a temporal Matrix level."), { ...x, field: E, grain: z };
2450
2451
  });
2451
2452
  t = {
2452
2453
  ...t,
2453
- rows: x(t.rows),
2454
- columns: x(t.columns)
2454
+ rows: P(t.rows),
2455
+ columns: P(t.columns)
2455
2456
  };
2456
2457
  }
2457
2458
  }
@@ -2459,10 +2460,10 @@ function Ts(e) {
2459
2460
  const h = t.measures.find((v) => v.id === p);
2460
2461
  if (!h || h.kind !== "aggregate") continue;
2461
2462
  const I = d(h.field, y);
2462
- Po(I).some((v) => v.value === h.aggregate) || u(`Aggregation '${h.aggregate}' is not eligible for this Matrix field datatype.`, y);
2463
+ xo(I).some((v) => v.value === h.aggregate) || u(`Aggregation '${h.aggregate}' is not eligible for this Matrix field datatype.`, y);
2463
2464
  }
2464
2465
  try {
2465
- return xo(m.data, t);
2466
+ return Po(m.data, t);
2466
2467
  } catch (p) {
2467
2468
  if (p instanceof hr) return u(p.message);
2468
2469
  throw p;
@@ -2504,16 +2505,16 @@ function Vs(e, t) {
2504
2505
  };
2505
2506
  }
2506
2507
  function ks(e, t) {
2507
- return Ne(e) ? Ps(e, t) : e.config ?? {};
2508
+ return Ne(e) ? xs(e, t) : e.config ?? {};
2508
2509
  }
2509
- function Ps(e, t) {
2510
+ function xs(e, t) {
2510
2511
  var o;
2511
2512
  const n = (o = t == null ? void 0 : t.steps[t.steps.length - 1]) == null ? void 0 : o.toField;
2512
2513
  return n ? di(e.config ?? {}, n, {
2513
2514
  sortPolicy: "retargetDimensionSort"
2514
2515
  }) : e.config ?? {};
2515
2516
  }
2516
- function xs(e, t) {
2517
+ function Ps(e, t) {
2517
2518
  const n = (e == null ? void 0 : e.steps) ?? [];
2518
2519
  if (n.length !== 0)
2519
2520
  return {
@@ -2552,7 +2553,7 @@ function rt(e) {
2552
2553
  function ws(e) {
2553
2554
  return e === "exclude" ? "not in" : "in";
2554
2555
  }
2555
- function wl(e) {
2556
+ function Ol(e) {
2556
2557
  var n;
2557
2558
  const t = (n = e.liveValue) == null ? void 0 : n.operation;
2558
2559
  return ot(t) ? rt(t) : e.pendingMode ?? e.authoredMode;
@@ -2586,7 +2587,7 @@ function Es(e, t) {
2586
2587
  function Bs(e) {
2587
2588
  return ot(e.operation) ? [rt(e.operation)] : [];
2588
2589
  }
2589
- function Ol(e) {
2590
+ function Al(e) {
2590
2591
  const t = Zt(e), o = q(t).issues.length ? t : Ba(t);
2591
2592
  return ci(Os(o)).dashboard;
2592
2593
  }
@@ -2644,7 +2645,7 @@ function st(e, t, n) {
2644
2645
  n
2645
2646
  );
2646
2647
  }
2647
- function Al(e, t, n) {
2648
+ function El(e, t, n) {
2648
2649
  return _n(e, t, n);
2649
2650
  }
2650
2651
  function _n(e, t, n) {
@@ -2755,7 +2756,7 @@ function Ks(e, t, n) {
2755
2756
  }
2756
2757
  return r ? i : void 0;
2757
2758
  }
2758
- function El(e) {
2759
+ function Bl(e) {
2759
2760
  const { dashboard: t, capture: n, calendar: o } = e, r = so(t, n.filterValues, {
2760
2761
  calendar: o
2761
2762
  }), i = n.dashboardInputExecutionSnapshot, s = n.controlValues, a = {
@@ -2785,7 +2786,7 @@ function El(e) {
2785
2786
  ...c != null && c.length ? { transientContexts: c } : {}
2786
2787
  };
2787
2788
  }
2788
- function Bl(e, t) {
2789
+ function _l(e, t) {
2789
2790
  const { controlContractOverrides: n, cardId: o } = t;
2790
2791
  if (!n || (n.controlDefinitions !== void 0 && (e.controls = n.controlDefinitions), typeof o != "string" || o.trim().length === 0))
2791
2792
  return e;
@@ -2825,7 +2826,7 @@ function le(e, t) {
2825
2826
  var n;
2826
2827
  return !!t && !!((n = e.sheets) != null && n.some((o) => o.id === t));
2827
2828
  }
2828
- function _l(e) {
2829
+ function Rl(e) {
2829
2830
  const { dashboard: t, host: n, calendar: o } = e, r = so(t, n.filterValues, {
2830
2831
  calendar: o
2831
2832
  }).slots, i = n.controlValues, s = le(t, n.selectedSheetId) ? n.selectedSheetId : Ls(t);
@@ -2857,7 +2858,7 @@ function Nn(e, t) {
2857
2858
  const o = ie(e, n);
2858
2859
  return o ? Lo(o, e) ? "applies" : "not-eligible" : "removed";
2859
2860
  }
2860
- function Rl(e, t) {
2861
+ function Kl(e, t) {
2861
2862
  const n = Nn(e, t);
2862
2863
  return n ? n === "applies" : He(e).some(
2863
2864
  (o) => o.id === t
@@ -3105,7 +3106,7 @@ function Ot(e, t, n) {
3105
3106
  )
3106
3107
  };
3107
3108
  }
3108
- function Kl(e) {
3109
+ function ql(e) {
3109
3110
  const { dashboard: t, baseline: n, event: o } = e, r = e.rememberedTableSettings;
3110
3111
  switch (o.kind) {
3111
3112
  case "initial-load":
@@ -3196,7 +3197,7 @@ function Kl(e) {
3196
3197
  }
3197
3198
  }
3198
3199
  }
3199
- function ql(e) {
3200
+ function Nl(e) {
3200
3201
  const { dashboard: t, calendar: n } = e, o = e.hostControlValues, r = {
3201
3202
  ...e.baseline,
3202
3203
  controlOverrides: o,
@@ -3240,7 +3241,7 @@ function ql(e) {
3240
3241
  }
3241
3242
  };
3242
3243
  }
3243
- function Nl(e, t, n) {
3244
+ function Ll(e, t, n) {
3244
3245
  const o = jn(n.values);
3245
3246
  return {
3246
3247
  ...o,
@@ -3273,7 +3274,7 @@ function Hn(e, t) {
3273
3274
  o.has(i) || pe(s.slot) || ve(r, s, { status: "cleared" });
3274
3275
  return Te(r);
3275
3276
  }
3276
- function Ll(e) {
3277
+ function jl(e) {
3277
3278
  const { dashboard: t, baseline: n, current: o } = e, r = Hn(n.materializedInputs, o.inputs), i = B(
3278
3279
  t,
3279
3280
  o.tableSettings,
@@ -3301,7 +3302,7 @@ function Hs(e, t, n) {
3301
3302
  }
3302
3303
  return t.get(n) ?? n;
3303
3304
  }
3304
- function jl(e) {
3305
+ function zl(e) {
3305
3306
  var l, u;
3306
3307
  const { dashboard: t, opened: n, current: o } = e, r = [], i = Gs(t), s = /* @__PURE__ */ new Set();
3307
3308
  for (const d of ne(
@@ -3401,7 +3402,7 @@ function $s(e) {
3401
3402
  }
3402
3403
  } : { inputs: e.inputs, fieldCandidates: t, resolution: { status: "none" } };
3403
3404
  }
3404
- function zl(e) {
3405
+ function Gl(e) {
3405
3406
  var n, o;
3406
3407
  const t = {
3407
3408
  ownerCardCount: 0,
@@ -3593,7 +3594,7 @@ function Yn(e) {
3593
3594
  (n) => n.filterId !== t.id
3594
3595
  ) : e.filterValues;
3595
3596
  }
3596
- function Gl(e) {
3597
+ function Hl(e) {
3597
3598
  const t = U(e.filters), n = Yn({
3598
3599
  filters: e.filters,
3599
3600
  filterValues: e.filterValues
@@ -3658,7 +3659,7 @@ function ta(e) {
3658
3659
  dateComparisonPlan: l
3659
3660
  };
3660
3661
  }
3661
- function Hl(e) {
3662
+ function $l(e) {
3662
3663
  const t = U(e.filters), n = Un(e), o = t ? e.filterValues.find(
3663
3664
  (s) => s.filterId === t.id
3664
3665
  ) : void 0, r = Yn(e);
@@ -3678,7 +3679,7 @@ function Hl(e) {
3678
3679
  }
3679
3680
  class na extends Error {
3680
3681
  }
3681
- function $l(e, t) {
3682
+ function Ul(e, t) {
3682
3683
  const n = new Map((e ? H(e) : []).map(({ card: o }) => [o.id, o]));
3683
3684
  return t && n.set(t.id, t), [...n.values()].flatMap((o) => {
3684
3685
  const r = Le(o);
@@ -3783,7 +3784,7 @@ function sa(e, t, n = {}) {
3783
3784
  metricColumns: c
3784
3785
  } : e;
3785
3786
  }
3786
- function Ul(e, t = {}) {
3787
+ function Ql(e, t = {}) {
3787
3788
  return Jn(Zn(e, t));
3788
3789
  }
3789
3790
  function Jn(e) {
@@ -3792,7 +3793,7 @@ function Jn(e) {
3792
3793
  function Zn(e, t = {}) {
3793
3794
  return {
3794
3795
  authored: t.includeAuthoredFilters === !1 ? void 0 : Jo(e),
3795
- drill: xs(t.drill, e.id),
3796
+ drill: Ps(t.drill, e.id),
3796
3797
  selections: Rr(t.selections ?? [])
3797
3798
  };
3798
3799
  }
@@ -3802,7 +3803,7 @@ function aa(e, t, n) {
3802
3803
  { ...o, filters: n },
3803
3804
  e.type,
3804
3805
  // A data variable's card keeps its own period comparison (P3b-03).
3805
- { keepsPeriodComparison: Pr(e) }
3806
+ { keepsPeriodComparison: xr(e) }
3806
3807
  ) : o;
3807
3808
  }
3808
3809
  function la(e) {
@@ -4208,7 +4209,7 @@ function ha(e, t, n) {
4208
4209
  };
4209
4210
  }
4210
4211
  const Bt = [], Ca = [], Ia = {};
4211
- function Ql(e, t) {
4212
+ function Wl(e, t) {
4212
4213
  return {
4213
4214
  sheetId: e.sheetId,
4214
4215
  sectionId: e.sectionId,
@@ -4277,7 +4278,7 @@ function Fa(e, t) {
4277
4278
  controls: Array.from(n.values())
4278
4279
  };
4279
4280
  }
4280
- function Wl({
4281
+ function Yl({
4281
4282
  card: e,
4282
4283
  place: t,
4283
4284
  source: n
@@ -4300,7 +4301,7 @@ function Sa(e, t, n) {
4300
4301
  globalCacheConfig: e.globalCacheConfig
4301
4302
  };
4302
4303
  }
4303
- function Yl(e, t) {
4304
+ function Jl(e, t) {
4304
4305
  return io(
4305
4306
  e,
4306
4307
  t,
@@ -4351,8 +4352,8 @@ function Da({
4351
4352
  context: v
4352
4353
  };
4353
4354
  const A = Ms(C.config.spec, v), M = r.filter(
4354
- (P) => P.field.source && A.some(
4355
- (E) => Oe(E, P.field.source)
4355
+ (x) => x.field.source && A.some(
4356
+ (E) => Oe(E, x.field.source)
4356
4357
  )
4357
4358
  ), F = oa(h, M, v), { params: k } = w, O = k.dashboardInputContext;
4358
4359
  F.config = {
@@ -4376,15 +4377,15 @@ function Da({
4376
4377
  M
4377
4378
  )
4378
4379
  };
4379
- const x = {
4380
+ const P = {
4380
4381
  ...h,
4381
4382
  config: { matrix: F.config }
4382
- }, T = qe(x, I, n, !1);
4383
+ }, T = qe(P, I, n, !1);
4383
4384
  return {
4384
4385
  status: "ready",
4385
4386
  value: {
4386
4387
  assembled: {
4387
- card: x,
4388
+ card: P,
4388
4389
  context: { ...T.context, resolvedDateFields: F.fields },
4389
4390
  inputContext: T.inputContext
4390
4391
  },
@@ -4421,32 +4422,32 @@ function Da({
4421
4422
  const w = (p = m.dashboardInputContext) == null ? void 0 : p.inputs.find(
4422
4423
  (T) => T.kind === "filter" && T.filter.id === g.id
4423
4424
  ), M = or(s, g).filter(
4424
- ({ card: T, sheet: P }) => !w || xr(w, {
4425
+ ({ card: T, sheet: x }) => !w || Pr(w, {
4425
4426
  cardId: T.id,
4426
- sheetId: P.id,
4427
- sheetKind: Qt(P) ? "document" : "dashboard"
4427
+ sheetId: x.id,
4428
+ sheetKind: Qt(x) ? "document" : "dashboard"
4428
4429
  })
4429
- ).map(({ card: T, sheet: P }) => ({
4430
+ ).map(({ card: T, sheet: x }) => ({
4430
4431
  card: T,
4431
- value: T.id === a ? l : c(T, { kind: "sheet", sheetId: P.id })
4432
+ value: T.id === a ? l : c(T, { kind: "sheet", sheetId: x.id })
4432
4433
  })), F = new Map(
4433
- M.map(({ card: T, value: P }) => [
4434
+ M.map(({ card: T, value: x }) => [
4434
4435
  T.id,
4435
- P.status === "ready" ? P.value.assembled.card : null
4436
+ x.status === "ready" ? x.value.assembled.card : null
4436
4437
  ])
4437
4438
  ), k = new Map(
4438
- M.map(({ card: T, value: P }) => {
4439
+ M.map(({ card: T, value: x }) => {
4439
4440
  var E;
4440
4441
  return [
4441
4442
  T.id,
4442
- P.status === "ready" ? (E = P.value.matrix) == null ? void 0 : E.fields : void 0
4443
+ x.status === "ready" ? (E = x.value.matrix) == null ? void 0 : E.fields : void 0
4443
4444
  ];
4444
4445
  })
4445
4446
  ), O = M.flatMap(
4446
- ({ card: T, value: P }) => {
4447
- const E = T.id, R = P.status === "ready" ? P.value.assembled.context : P.context;
4447
+ ({ card: T, value: x }) => {
4448
+ const E = T.id, R = x.status === "ready" ? x.value.assembled.context : x.context;
4448
4449
  if (!R) return [E];
4449
- const z = P.status === "ready" ? P.value.assembled.card : T;
4450
+ const z = x.status === "ready" ? x.value.assembled.card : T;
4450
4451
  try {
4451
4452
  const Y = Ke(
4452
4453
  z,
@@ -4457,7 +4458,7 @@ function Da({
4457
4458
  return F.set(E, null), [E];
4458
4459
  }
4459
4460
  }
4460
- ), x = $e(
4461
+ ), P = $e(
4461
4462
  s,
4462
4463
  o,
4463
4464
  g,
@@ -4465,16 +4466,16 @@ function Da({
4465
4466
  k,
4466
4467
  O
4467
4468
  );
4468
- if ((y = x.unresolvedCardIds) != null && y.length)
4469
+ if ((y = P.unresolvedCardIds) != null && y.length)
4469
4470
  return {
4470
4471
  status: "blocked",
4471
4472
  cardId: a,
4472
4473
  mappingDispositions: [],
4473
4474
  reason: "coverage",
4474
4475
  missingRequiredLabels: [],
4475
- message: `Date precision requires field metadata and valid inputs for: ${x.unresolvedCardIds.join(", ")}.`
4476
+ message: `Date precision requires field metadata and valid inputs for: ${P.unresolvedCardIds.join(", ")}.`
4476
4477
  };
4477
- v = x.allEligibleTargetsAreDateTime;
4478
+ v = P.allEligibleTargetsAreDateTime;
4478
4479
  }
4479
4480
  const D = io(u, f, v);
4480
4481
  if (D.status === "blocked")
@@ -4610,7 +4611,7 @@ function io(e, t, n) {
4610
4611
  resolvedPrimaryDateField: r
4611
4612
  };
4612
4613
  }
4613
- function Jl({
4614
+ function Zl({
4614
4615
  dashboard: e,
4615
4616
  dashboardInputValues: t,
4616
4617
  adHocFilterValues: n,
@@ -4624,7 +4625,7 @@ function Jl({
4624
4625
  }) {
4625
4626
  const u = e ? [...rr(e)] : void 0, d = r ?? null, f = (I) => {
4626
4627
  var v;
4627
- return e ? xa({
4628
+ return e ? Pa({
4628
4629
  dashboard: e,
4629
4630
  runtimeValues: { dashboardInputValues: t },
4630
4631
  adHocFilterValues: n,
@@ -4665,7 +4666,7 @@ function Jl({
4665
4666
  controlValues: g
4666
4667
  };
4667
4668
  }
4668
- function Zl({
4669
+ function Xl({
4669
4670
  dashboard: e,
4670
4671
  cardId: t,
4671
4672
  transientContexts: n,
@@ -4737,7 +4738,7 @@ function ka(e, t, n) {
4737
4738
  ..."temporalPrecision" in e && e.temporalPrecision === "minute" ? { temporalPrecision: "minute" } : {}
4738
4739
  };
4739
4740
  }
4740
- function Pa(e, t, n) {
4741
+ function xa(e, t, n) {
4741
4742
  const o = t, r = ar(e);
4742
4743
  return lr({
4743
4744
  definition: e,
@@ -4765,7 +4766,7 @@ function so(e, t, n) {
4765
4766
  continue;
4766
4767
  }
4767
4768
  const u = sr(
4768
- Pa(l.filter, a, n.calendar)
4769
+ xa(l.filter, a, n.calendar)
4769
4770
  );
4770
4771
  if (u) {
4771
4772
  if (l.runtimeScope === "shared") {
@@ -4783,7 +4784,7 @@ function so(e, t, n) {
4783
4784
  }
4784
4785
  return { slots: r, adHocFilterValues: i, droppedFilterIds: s };
4785
4786
  }
4786
- function xa(e) {
4787
+ function Pa(e) {
4787
4788
  const { dashboard: t, sheetId: n } = e, o = [];
4788
4789
  if (n)
4789
4790
  for (const { input: r } of ur(t, n, e.sheetKind)) {
@@ -4798,7 +4799,7 @@ function xa(e) {
4798
4799
  }
4799
4800
  return [...o, ...eo(e.adHocFilterValues, n)];
4800
4801
  }
4801
- function Xl(e, t) {
4802
+ function ec(e, t) {
4802
4803
  switch (t.runtimeScope) {
4803
4804
  case "shared":
4804
4805
  return [{}];
@@ -4916,128 +4917,128 @@ function Ba(e) {
4916
4917
  export {
4917
4918
  rt as $,
4918
4919
  so as A,
4919
- xa as B,
4920
- Xl as C,
4920
+ Pa as B,
4921
+ ec as C,
4921
4922
  da as D,
4922
4923
  eo as E,
4923
4924
  ni as F,
4924
- el as G,
4925
+ tl as G,
4925
4926
  di as H,
4926
4927
  Ts as I,
4927
- Pt as J,
4928
- Cl as K,
4928
+ xt as J,
4929
+ Il as K,
4929
4930
  oi as L,
4930
- yl as M,
4931
- xi as N,
4932
- Pi as O,
4931
+ bl as M,
4932
+ Pi as N,
4933
+ xi as O,
4933
4934
  Vi as P,
4934
- cl as Q,
4935
+ ul as Q,
4935
4936
  Sn as R,
4936
4937
  Be as S,
4937
- rl as T,
4938
+ il as T,
4938
4939
  fs as U,
4939
4940
  ps as V,
4940
4941
  Ai as W,
4941
4942
  $ as X,
4942
- ml as Y,
4943
+ gl as Y,
4943
4944
  Bi as Z,
4944
- gl as _,
4945
+ yl as _,
4945
4946
  Hs as a,
4946
4947
  tt as a$,
4947
4948
  ot as a0,
4948
4949
  jr as a1,
4949
- ul as a2,
4950
- pl as a3,
4950
+ dl as a2,
4951
+ ml as a3,
4951
4952
  wi as a4,
4952
- al as a5,
4953
+ ll as a5,
4953
4954
  nt as a6,
4954
4955
  An as a7,
4955
- Yl as a8,
4956
+ Jl as a8,
4956
4957
  Sa as a9,
4957
4958
  On as aA,
4958
- Ql as aB,
4959
- Hl as aC,
4959
+ Wl as aB,
4960
+ $l as aC,
4960
4961
  se as aD,
4961
4962
  yn as aE,
4962
- ol as aF,
4963
- nl as aG,
4964
- sl as aH,
4963
+ rl as aF,
4964
+ ol as aG,
4965
+ al as aH,
4965
4966
  Da as aI,
4966
4967
  yi as aJ,
4967
- il as aK,
4968
- $l as aL,
4968
+ sl as aK,
4969
+ Ul as aL,
4969
4970
  pn as aM,
4970
- dl as aN,
4971
- Gl as aO,
4972
- wl as aP,
4971
+ fl as aN,
4972
+ Hl as aO,
4973
+ Ol as aP,
4973
4974
  ws as aQ,
4974
- zl as aR,
4975
+ Gl as aR,
4975
4976
  Qn as aS,
4976
4977
  Ke as aT,
4977
- ll as aU,
4978
+ cl as aU,
4978
4979
  na as aV,
4979
4980
  Wn as aW,
4980
4981
  Ye as aX,
4981
- fl as aY,
4982
- Tl as aZ,
4983
- Dl as a_,
4982
+ pl as aY,
4983
+ Dl as aZ,
4984
+ Ml as a_,
4984
4985
  _t as aa,
4985
4986
  wa as ab,
4986
4987
  Oa as ac,
4987
4988
  Aa as ad,
4988
4989
  Zi as ae,
4989
- Nl as af,
4990
- Kl as ag,
4990
+ Ll as af,
4991
+ ql as ag,
4991
4992
  Bn as ah,
4992
- ql as ai,
4993
+ Nl as ai,
4993
4994
  Li as aj,
4994
4995
  pa as ak,
4995
- Jl as al,
4996
+ Zl as al,
4996
4997
  aa as am,
4997
- Ul as an,
4998
- Sl as ao,
4999
- Wl as ap,
4998
+ Ql as an,
4999
+ Tl as ao,
5000
+ Yl as ap,
5000
5001
  bs as aq,
5001
5002
  hs as ar,
5002
5003
  Ta as as,
5003
- Vl as at,
5004
- kl as au,
5004
+ kl as at,
5005
+ xl as au,
5005
5006
  Is as av,
5006
5007
  Re as aw,
5007
5008
  ys as ax,
5008
5009
  vs as ay,
5009
5010
  Pl as az,
5010
- bl as b,
5011
- vl as b0,
5012
- Fl as b1,
5013
- Ml as b2,
5011
+ hl as b,
5012
+ Fl as b0,
5013
+ Sl as b1,
5014
+ Vl as b2,
5014
5015
  gs as b3,
5015
5016
  ne as b4,
5016
- Al as b5,
5017
- jl as b6,
5018
- Ll as b7,
5017
+ El as b5,
5018
+ zl as b6,
5019
+ jl as b7,
5019
5020
  Ji as c,
5020
5021
  la as d,
5021
5022
  ei as e,
5022
- Il as f,
5023
- xl as g,
5024
- Rl as h,
5025
- hl as i,
5026
- Bl as j,
5023
+ vl as f,
5024
+ wl as g,
5025
+ Kl as h,
5026
+ Cl as i,
5027
+ _l as j,
5027
5028
  be as k,
5028
5029
  Gs as l,
5029
- Zl as m,
5030
- _l as n,
5030
+ Xl as m,
5031
+ Rl as n,
5031
5032
  st as o,
5032
- Ol as p,
5033
- Pa as q,
5034
- El as r,
5033
+ Al as p,
5034
+ xa as q,
5035
+ Bl as r,
5035
5036
  Ds as s,
5036
5037
  Ms as t,
5037
5038
  ri as u,
5038
5039
  ai as v,
5039
5040
  gn as w,
5040
- tl as x,
5041
+ nl as x,
5041
5042
  ci as y,
5042
5043
  Ba as z
5043
5044
  };