react-semaphor 0.1.552 → 0.1.554

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 (73) hide show
  1. package/dist/analytics-protocol/index.js +228 -227
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/brand-studio/index.js +3 -3
  4. package/dist/briefings/index.js +5 -5
  5. package/dist/chunks/{assistant-chat-sWQaBT61.js → assistant-chat-ngs5dTvo.js} +1275 -1296
  6. package/dist/chunks/{bookmark-state-Cu-a5ie_.js → bookmark-state-BAeGKd3s.js} +3 -3
  7. package/dist/chunks/{comparison-window-caption-CF90-I0i.js → comparison-window-caption-C2WNTlxK.js} +44 -44
  8. package/dist/chunks/{custom-visual-inputs-ByQUyWf4.js → custom-visual-inputs-cTHqcqPu.js} +1 -1
  9. package/dist/chunks/{dashboard-BjoJI7NN.js → dashboard-548YvEW5.js} +1 -1
  10. package/dist/chunks/{dashboard-briefing-launcher-DUJQv719.js → dashboard-briefing-launcher-ptIRn5FS.js} +62 -62
  11. package/dist/chunks/{dashboard-controls-BjnvfcQp.js → dashboard-controls-CqyUTN6Q.js} +46 -46
  12. package/dist/chunks/{dashboard-json-BqcLekhd.js → dashboard-json-CvDFipA0.js} +4 -4
  13. package/dist/chunks/{document-dashboard-inputs-PoQihHLu.js → document-dashboard-inputs-DrA9m-5H.js} +119 -119
  14. package/dist/chunks/{edit-dashboard-visual-KNJQr60W.js → edit-dashboard-visual-BHL0AlIj.js} +4087 -3979
  15. package/dist/chunks/{filter-reach-copy-zdhUFn6t.js → filter-reach-copy-CyftKCZE.js} +48 -48
  16. package/dist/chunks/{filter-value-text-Ddf55Ku1.js → filter-value-text-DMrpj4h9.js} +2 -2
  17. package/dist/chunks/{global-date-filter-utils-C1jCNWdV.js → global-date-filter-utils-Or-3DL3k.js} +6033 -5772
  18. package/dist/chunks/{index-Dp0ta6KB.js → index-ClwmmbUH.js} +9 -9
  19. package/dist/chunks/{matrix-analytical-definition-B9vW-osb.js → matrix-analytical-definition-DPVGg1mU.js} +12 -12
  20. package/dist/chunks/{matrix-card-LiMEipvq.js → matrix-card-CVFVtqyo.js} +2 -2
  21. package/dist/chunks/{matrix-formatter-C_EpDP6o.js → matrix-formatter-K2OVPJQI.js} +30 -30
  22. package/dist/chunks/{matrix-member-presentation-DqzG-UhQ.js → matrix-member-presentation-DRWcJ8Mi.js} +1 -1
  23. package/dist/chunks/{matrix-operation-contract-D6vYkZK4.js → matrix-operation-contract--lMaLlpV.js} +64 -61
  24. package/dist/chunks/{metric-comparison-zpGw4lD6.js → metric-comparison-CYIt2F5X.js} +1 -1
  25. package/dist/chunks/{pivot-header-presentation-CQnIDtUv.js → pivot-header-presentation-CX4fkRuG.js} +1 -1
  26. package/dist/chunks/{pivot-result-identity-C-Q1j1Wb.js → pivot-result-identity-BHJGZwIc.js} +1 -1
  27. package/dist/chunks/{pivot-result-lifecycle-pwq3b7LC.js → pivot-result-lifecycle-BygCpOhk.js} +20 -20
  28. package/dist/chunks/{raw-temporal-presentation-D3i0mnUe.js → raw-temporal-presentation-gooAp93G.js} +6 -6
  29. package/dist/chunks/{report-preferences-dialog-C0uGI0v7.js → report-preferences-dialog-2tqY0BMQ.js} +49 -49
  30. package/dist/chunks/{report-runtime-context-hWiTCzFV.js → report-runtime-context-BaIKSaja.js} +1 -1
  31. package/dist/chunks/{resolve-dashboard-input-context-Cm0b7s-d.js → resolve-dashboard-input-context-bOKDTHfJ.js} +2062 -1986
  32. package/dist/chunks/{saved-dashboard-context-DCtGmAWe.js → saved-dashboard-context--Hq1juf9.js} +8 -8
  33. package/dist/chunks/{selection-reducer-CJzkTZio.js → selection-reducer-yw_JgICP.js} +1 -1
  34. package/dist/chunks/{semaphor-ready-indicator-ChyotaWB.js → semaphor-ready-indicator-yM4wo-FH.js} +26 -26
  35. package/dist/chunks/{shelf-drop-preview-context-D09ATIXv.js → shelf-drop-preview-context-BuLzyT1T.js} +119 -119
  36. package/dist/chunks/{source-entity-resolution-D195CrYS.js → source-entity-resolution-CGymm5td.js} +1 -1
  37. package/dist/chunks/{switch-wJP6O7ZT.js → switch-B-UTI6v-.js} +2 -2
  38. package/dist/chunks/{table-export-sheet-DUS_s8Cj.js → table-export-sheet-CgO6gaSM.js} +1 -1
  39. package/dist/chunks/{table-settings-WysCBj62.js → table-settings-DOT_Bv1m.js} +224 -201
  40. package/dist/chunks/{temporal-bucket-CQOSbv9-.js → temporal-bucket-C4rqmwaQ.js} +24 -24
  41. package/dist/chunks/{token-types-BMqRmT-C.js → token-types-DYECHYGH.js} +1 -1
  42. package/dist/chunks/{use-create-flow-overlay-state-t7JLE_LV.js → use-create-flow-overlay-state-DSXC-LD7.js} +6 -6
  43. package/dist/chunks/{validators-C-aOQlTB.js → validators-ClKLGDGZ.js} +1077 -1054
  44. package/dist/dashboard/index.js +2 -2
  45. package/dist/dashboard-authoring/index.js +273 -264
  46. package/dist/data-app-sdk/index.js +5 -5
  47. package/dist/data-app-sdk-adapters/index.js +2 -2
  48. package/dist/data-app-sdk-validation/index.js +5 -5
  49. package/dist/format-utils/index.js +15 -15
  50. package/dist/index.js +21 -21
  51. package/dist/report-runtime-context/index.js +1 -1
  52. package/dist/style.css +1 -1
  53. package/dist/surfboard/index.js +2 -2
  54. package/dist/types/index.js +6 -6
  55. package/dist/types/lib/dashboard-inputs/prepare-loaded-dashboard.d.ts +3 -0
  56. package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +3 -2
  57. package/dist/types/lib/matrix-table/matrix-delivery.d.ts +4 -2
  58. package/dist/types/lib/utils/card-config-utils.d.ts +61 -0
  59. package/dist/types/lib/utils/card-definition.d.ts +2 -1
  60. package/dist/types/lib/utils/card-type-change.d.ts +5 -1
  61. package/dist/types/shared/analytics-protocol/explorer-input-schemas.d.ts +2 -0
  62. package/dist/types/shared/analytics-protocol/index.d.ts +2 -2
  63. package/dist/types/shared/analytics-protocol/matrix-analytical-definition.d.ts +1 -0
  64. package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +59 -21
  65. package/dist/types/shared/analytics-protocol/matrix-operation-contract.d.ts +12 -7
  66. package/dist/types/shared/analytics-protocol/matrix-operation-request.d.ts +16 -9
  67. package/dist/types/shared/dashboard-authoring/document-section-cards.d.ts +6 -0
  68. package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
  69. package/dist/types/shared/dashboard-authoring/legacy-table-routing.d.ts +62 -0
  70. package/dist/types/shared/dashboard-authoring/matrix-authoring.d.ts +4 -1
  71. package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +8 -4
  72. package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +4 -2
  73. package/package.json +2 -2
@@ -1,23 +1,23 @@
1
1
  var Fe = Object.defineProperty;
2
2
  var Re = (e, n, t) => n in e ? Fe(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
3
  var L = (e, n, t) => Re(e, typeof n != "symbol" ? n + "" : n, t);
4
- import { r as ae, q as se, j as Ne } from "./temporal-bucket-CQOSbv9-.js";
5
- import { Y as J, ab as Be, o as Me } from "./validators-C-aOQlTB.js";
4
+ import { r as ae, q as se, j as Ne } from "./temporal-bucket-C4rqmwaQ.js";
5
+ import { Z as J, ac as Be, o as Me } from "./validators-ClKLGDGZ.js";
6
6
  import { l as Le, C as Ue } from "./export-file-format-C-tJsxsf.js";
7
7
  import { z as y } from "zod";
8
- import { I as Pe, q as ze, o as Ve, P as B } from "./pivot-result-lifecycle-pwq3b7LC.js";
9
- import { af as je, ah as qe, U as Ke } from "./matrix-operation-contract-D6vYkZK4.js";
8
+ import { I as Pe, q as ze, o as Ve, P as B } from "./pivot-result-lifecycle-BygCpOhk.js";
9
+ import { af as je, ah as qe, U as Ke } from "./matrix-operation-contract--lMaLlpV.js";
10
10
  import "./analytics-base-schemas-BKs3flFS.js";
11
11
  import "../value-format-preferences/index.js";
12
12
  import { r as He } from "./rendered-file-D8xEuVVx.js";
13
- import { cP as Ge, cQ as We, cR as Xe, r as Ze, n as Ye } from "./global-date-filter-utils-C1jCNWdV.js";
14
- import { r as Je } from "./matrix-card-LiMEipvq.js";
15
- import { z as Qe } from "./table-settings-WysCBj62.js";
16
- import { r as et, a as tt, b as nt, c as rt, d as ot } from "./raw-temporal-presentation-D3i0mnUe.js";
13
+ import { cR as Ge, cS as We, cT as Xe, r as Ze, n as Ye } from "./global-date-filter-utils-Or-3DL3k.js";
14
+ import { r as Je } from "./matrix-card-CVFVtqyo.js";
15
+ import { z as Qe } from "./table-settings-DOT_Bv1m.js";
16
+ import { r as et, a as tt, b as nt, c as rt, d as ot } from "./raw-temporal-presentation-gooAp93G.js";
17
17
  import "./index-CtoK1Lgu.js";
18
18
  import "./index-CuHybtft.js";
19
19
  import "./_commonjsHelpers-DimLPMtv.js";
20
- import { f as at, r as it, b as ct, g as lt } from "./custom-visual-inputs-ByQUyWf4.js";
20
+ import { f as at, r as it, b as ct, g as lt } from "./custom-visual-inputs-cTHqcqPu.js";
21
21
  const dt = /* @__PURE__ */ new Set([
22
22
  "table",
23
23
  "aggregateTable",
@@ -1,5 +1,5 @@
1
- import { r as G } from "./metric-comparison-zpGw4lD6.js";
2
- import { ab as E, aw as Y, av as V, ax as J, au as X, at as ee, a0 as $, O as j, x as te } from "./validators-C-aOQlTB.js";
1
+ import { r as G } from "./metric-comparison-CYIt2F5X.js";
2
+ import { ac as E, ax as Y, aw as V, ay as J, av as X, au as ee, a1 as $, Q as j, x as te } from "./validators-ClKLGDGZ.js";
3
3
  import { b as ne, w as h, z as F } from "./zoned-wall-clock-MulfA26h.js";
4
4
  import { z as u } from "zod";
5
5
  import { c as ie } from "./analytics-base-schemas-BKs3flFS.js";
@@ -408,7 +408,7 @@ function He(e, t, n) {
408
408
  return Math.round((i(t) - i(e)) / M);
409
409
  }
410
410
  const Ie = /^(\d{4})-(\d{2})-(\d{2})$/;
411
- function Ke(e, t) {
411
+ function Qe(e, t) {
412
412
  const { year: n, month: i, day: a } = F(e, t);
413
413
  return `${String(n).padStart(4, "0")}-${String(i).padStart(2, "0")}-${String(a).padStart(2, "0")}`;
414
414
  }
@@ -418,7 +418,7 @@ function Z(e) {
418
418
  const n = Number(t[1]), i = Number(t[2]), a = Number(t[3]);
419
419
  return i < 1 || i > 12 || a < 1 || a > B(n, i) ? null : { year: n, month: i, day: a };
420
420
  }
421
- function Qe(e, t) {
421
+ function Ke(e, t) {
422
422
  const n = Z(e);
423
423
  if (!n) return null;
424
424
  const i = { ...n, hour: 0, minute: 0, second: 0, millisecond: 0 };
@@ -559,7 +559,7 @@ function H(e) {
559
559
  ...e.kind === "physical" ? { dialect: e.dialect, connectionType: e.connectionType } : {}
560
560
  };
561
561
  }
562
- function K(e) {
562
+ function Q(e) {
563
563
  const { label: t, source: n, ...i } = e;
564
564
  return { ...i, source: n && H(n) };
565
565
  }
@@ -577,7 +577,7 @@ function k(e) {
577
577
  inputs: Object.fromEntries(
578
578
  Object.entries(s).map(([o, c]) => [
579
579
  o,
580
- { ...c, field: K(c.field) }
580
+ { ...c, field: Q(c.field) }
581
581
  ])
582
582
  )
583
583
  };
@@ -585,7 +585,7 @@ function k(e) {
585
585
  function S(e) {
586
586
  const { derivedField: t, ...n } = e;
587
587
  return {
588
- ...K(n),
588
+ ...Q(n),
589
589
  derivedField: t && k(t)
590
590
  };
591
591
  }
@@ -611,7 +611,7 @@ function D(e) {
611
611
  }
612
612
  };
613
613
  }
614
- function Q(e) {
614
+ function K(e) {
615
615
  return {
616
616
  ...e,
617
617
  conditions: e.conditions.map(
@@ -620,7 +620,7 @@ function Q(e) {
620
620
  field: D(n)
621
621
  })
622
622
  ),
623
- groups: e.groups.map(Q)
623
+ groups: e.groups.map(K)
624
624
  };
625
625
  }
626
626
  function Je(e) {
@@ -641,7 +641,7 @@ function Je(e) {
641
641
  definition: k(t.definition)
642
642
  }
643
643
  ),
644
- filters: e.filters && Q(e.filters),
644
+ filters: e.filters && K(e.filters),
645
645
  joinPlan: e.joinPlan && {
646
646
  ...e.joinPlan,
647
647
  // relationshipName participates in governed relationship resolution.
@@ -676,9 +676,9 @@ export {
676
676
  q as I,
677
677
  x as J,
678
678
  He as K,
679
- Ke as L,
679
+ Qe as L,
680
680
  Z as M,
681
- Qe as N,
681
+ Ke as N,
682
682
  Ge as O,
683
683
  Ye as P,
684
684
  Ve as Q,
@@ -1,5 +1,5 @@
1
- import { l as a, o as s, q as f } from "./validators-C-aOQlTB.js";
2
- import "./matrix-operation-contract-D6vYkZK4.js";
1
+ import { l as a, o as s, q as f } from "./validators-ClKLGDGZ.js";
2
+ import "./matrix-operation-contract--lMaLlpV.js";
3
3
  import "./analytics-base-schemas-BKs3flFS.js";
4
4
  import "zod";
5
5
  function u(i, r = {}) {
@@ -1,8 +1,8 @@
1
- import { aI as ge, t as U, ab as ye, S as we } from "./validators-C-aOQlTB.js";
2
- import "./matrix-operation-contract-D6vYkZK4.js";
1
+ import { aJ as ge, t as U, ac as ye, T as we } from "./validators-ClKLGDGZ.js";
2
+ import "./matrix-operation-contract--lMaLlpV.js";
3
3
  import { j as be } from "./analytics-base-schemas-BKs3flFS.js";
4
4
  import "zod";
5
- import { W as Me, X as se, S as Z, U as F, Y as oe, Z as ue, Q as xe, k as De, i as q, F as pe, f as Oe, p as Te, r as ve, u as Pe, j as Se, m as ke } from "./temporal-bucket-CQOSbv9-.js";
5
+ import { W as Me, X as se, S as Z, U as F, Y as oe, Z as ue, Q as xe, k as De, i as I, F as pe, f as Oe, p as Te, r as ve, u as Pe, j as Se, m as ke } from "./temporal-bucket-C4rqmwaQ.js";
6
6
  function d(e) {
7
7
  const t = Object.prototype.toString.call(e);
8
8
  return e instanceof Date || typeof e == "object" && t === "[object Date]" ? new e.constructor(+e) : typeof e == "number" || t === "[object Number]" || typeof e == "string" || t === "[object String]" ? new Date(e) : /* @__PURE__ */ new Date(NaN);
@@ -89,13 +89,13 @@ function _e(e) {
89
89
  const t = d(e);
90
90
  return t.setHours(23, 59, 59, 999), t;
91
91
  }
92
- function Ie(e) {
92
+ function qe(e) {
93
93
  const t = d(e), n = t.getMonth();
94
94
  return t.setFullYear(t.getFullYear(), n + 1, 0), t.setHours(23, 59, 59, 999), t;
95
95
  }
96
- function qe(e) {
96
+ function Ie(e) {
97
97
  const t = d(e);
98
- return +_e(t) == +Ie(t);
98
+ return +_e(t) == +qe(t);
99
99
  }
100
100
  function Re(e, t) {
101
101
  const n = d(e), r = d(t), a = N(n, r), i = Math.abs(
@@ -107,7 +107,7 @@ function Re(e, t) {
107
107
  else {
108
108
  n.getMonth() === 1 && n.getDate() > 27 && n.setDate(30), n.setMonth(n.getMonth() - a * i);
109
109
  let o = N(n, r) === -a;
110
- qe(d(e)) && i === 1 && N(e, r) === 1 && (o = !1), s = a * (i - Number(o));
110
+ Ie(d(e)) && i === 1 && N(e, r) === 1 && (o = !1), s = a * (i - Number(o));
111
111
  }
112
112
  return s === 0 ? 0 : s;
113
113
  }
@@ -1203,7 +1203,7 @@ function Et(e, t, n) {
1203
1203
  const r = e[0] === "Y" ? "years" : "days of the month";
1204
1204
  return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
1205
1205
  }
1206
- const Lt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, zt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Xt = /^'([^]*?)'?$/, _t = /''/g, It = /[a-zA-Z]/;
1206
+ const Lt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, zt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Xt = /^'([^]*?)'?$/, _t = /''/g, qt = /[a-zA-Z]/;
1207
1207
  function R(e, t, n) {
1208
1208
  var u, g, c, h, y, O, H, j;
1209
1209
  const r = P(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? fe, i = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((g = (u = n == null ? void 0 : n.locale) == null ? void 0 : u.options) == null ? void 0 : g.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((h = (c = r.locale) == null ? void 0 : c.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, s = (n == null ? void 0 : n.weekStartsOn) ?? ((O = (y = n == null ? void 0 : n.locale) == null ? void 0 : y.options) == null ? void 0 : O.weekStartsOn) ?? r.weekStartsOn ?? ((j = (H = r.locale) == null ? void 0 : H.options) == null ? void 0 : j.weekStartsOn) ?? 0, o = d(e);
@@ -1221,10 +1221,10 @@ function R(e, t, n) {
1221
1221
  return { isToken: !1, value: "'" };
1222
1222
  const w = b[0];
1223
1223
  if (w === "'")
1224
- return { isToken: !1, value: qt(b) };
1224
+ return { isToken: !1, value: It(b) };
1225
1225
  if (B[w])
1226
1226
  return { isToken: !0, value: b };
1227
- if (w.match(It))
1227
+ if (w.match(qt))
1228
1228
  throw new RangeError(
1229
1229
  "Format string contains an unescaped latin alphabet character `" + w + "`"
1230
1230
  );
@@ -1244,7 +1244,7 @@ function R(e, t, n) {
1244
1244
  return z(o, w, a.localize, l);
1245
1245
  }).join("");
1246
1246
  }
1247
- function qt(e) {
1247
+ function It(e) {
1248
1248
  const t = e.match(Xt);
1249
1249
  return t ? t[1].replace(_t, "'") : e;
1250
1250
  }
@@ -1624,7 +1624,7 @@ function ne(e) {
1624
1624
  }
1625
1625
  function D(e, t, n) {
1626
1626
  const r = { ...t, type: e };
1627
- if ((n == null ? void 0 : n.numericInput) === "canonical" && q(r))
1627
+ if ((n == null ? void 0 : n.numericInput) === "canonical" && I(r))
1628
1628
  return ne(r);
1629
1629
  const a = on(e, t, n), i = typeof t.prefix == "string" ? t.prefix : void 0, s = {
1630
1630
  type: e,
@@ -1652,17 +1652,17 @@ function re(e) {
1652
1652
  suffix: e.suffix
1653
1653
  };
1654
1654
  }
1655
- function I(e) {
1655
+ function q(e) {
1656
1656
  return e === "millisecond" || e === "second" || e === "minute" || e === "hour" || e === "day";
1657
1657
  }
1658
1658
  function ae(e) {
1659
1659
  const t = C(e.maxUnits);
1660
1660
  return {
1661
1661
  type: "duration",
1662
- inputUnit: I(e.inputUnit) ? e.inputUnit : "second",
1662
+ inputUnit: q(e.inputUnit) ? e.inputUnit : "second",
1663
1663
  outputStyle: e.outputStyle === "digital" || e.outputStyle === "long" ? e.outputStyle : "compact",
1664
- largestUnit: I(e.largestUnit) ? e.largestUnit : void 0,
1665
- smallestUnit: I(e.smallestUnit) ? e.smallestUnit : "second",
1664
+ largestUnit: q(e.largestUnit) ? e.largestUnit : void 0,
1665
+ smallestUnit: q(e.smallestUnit) ? e.smallestUnit : "second",
1666
1666
  maxUnits: t,
1667
1667
  prefix: e.prefix,
1668
1668
  suffix: e.suffix,
@@ -1709,7 +1709,7 @@ function cn(e, t) {
1709
1709
  const n = e;
1710
1710
  if ((t == null ? void 0 : t.numericInput) === "canonical") {
1711
1711
  const r = n.type === "percentage" ? { ...n, type: "percent" } : n;
1712
- if (q(r))
1712
+ if (I(r))
1713
1713
  return D(r.type, r, t);
1714
1714
  }
1715
1715
  if (n.type === "percentage")
@@ -1820,7 +1820,7 @@ function Pn(e, t, n) {
1820
1820
  return y.ok ? y.text : g(h);
1821
1821
  };
1822
1822
  }
1823
- if (q(u)) {
1823
+ if (I(u)) {
1824
1824
  const c = Pe(u, n.valueFormat);
1825
1825
  return o === "measures" && a.set(s.id, c), (h) => typeof h == "number" || typeof h == "object" && h !== null ? Se(h, c) : g(h);
1826
1826
  }
@@ -1842,11 +1842,11 @@ function Pn(e, t, n) {
1842
1842
  };
1843
1843
  }
1844
1844
  export {
1845
- d as A,
1846
- ze as B,
1847
- E as C,
1845
+ ae as A,
1846
+ D as B,
1847
+ te as C,
1848
1848
  rn as D,
1849
- Ce as E,
1849
+ mn as E,
1850
1850
  ln as F,
1851
1851
  en as a,
1852
1852
  tn as b,
@@ -1866,12 +1866,12 @@ export {
1866
1866
  A as p,
1867
1867
  Rt as q,
1868
1868
  bn as r,
1869
- re as s,
1870
- ae as t,
1871
- D as u,
1872
- te as v,
1873
- mn as w,
1874
- P as x,
1875
- fe as y,
1876
- N as z
1869
+ P as s,
1870
+ fe as t,
1871
+ N as u,
1872
+ d as v,
1873
+ ze as w,
1874
+ E as x,
1875
+ Ce as y,
1876
+ re as z
1877
1877
  };
@@ -1,4 +1,4 @@
1
- import { t as d } from "./validators-C-aOQlTB.js";
1
+ import { t as d } from "./validators-ClKLGDGZ.js";
2
2
  const h = [
3
3
  "=",
4
4
  "!=",
@@ -1,7 +1,7 @@
1
1
  import { z as t } from "zod";
2
2
  import { z as je, E as Fe, F as Le, I as Ue, J as qe, s as U, x as Z, n as De, C as Me, D as ce, f as Be, r as Ge, y as ze, m as Ve, o as We, t as le, u as Xe } from "./analytics-base-schemas-BKs3flFS.js";
3
- import { I as w, A as ue, Q as G, aN as ee, t as b, J as Ke, aG as $, aO as Ze, B as $e, s as Ye, x as de, a8 as He, r as Qe, m as Je } from "./validators-C-aOQlTB.js";
4
- const Y = {
3
+ import { I as w, A as ue, R as G, aO as ee, t as b, J as Ke, aH as $, aP as Ze, B as $e, s as He, x as de, a9 as Ye, r as Je, m as Qe } from "./validators-ClKLGDGZ.js";
4
+ const H = {
5
5
  answerSummary: "string",
6
6
  responseDetail: "responseDetail",
7
7
  mode: "string",
@@ -275,7 +275,7 @@ const ut = t.object({
275
275
  }).strict(), ge = t.object({
276
276
  levels: t.array(ne).readonly(),
277
277
  measures: t.array(ne).readonly()
278
- }).strict(), H = t.object({
278
+ }).strict(), Y = t.object({
279
279
  code: t.enum(st),
280
280
  message: y,
281
281
  /** Technical cause for dashboard owners; never shown as the primary copy. */
@@ -299,7 +299,7 @@ function ye(e) {
299
299
  capabilities: mt,
300
300
  pages: t.array(lt).readonly(),
301
301
  blocks: t.array(e).readonly(),
302
- failures: t.array(H).readonly()
302
+ failures: t.array(Y).readonly()
303
303
  }).strict().superRefine((n, a) => {
304
304
  const r = new Set(
305
305
  n.descriptors.levels.map((i) => i.id)
@@ -366,7 +366,7 @@ function Ae(e) {
366
366
  status: t.enum(["success", "partial"]),
367
367
  window: e
368
368
  }).strict(),
369
- t.object({ status: t.literal("failed"), failure: H }).strict()
369
+ t.object({ status: t.literal("failed"), failure: Y }).strict()
370
370
  ]).superRefine((n, a) => {
371
371
  const r = n;
372
372
  if (r.status === "failed") return;
@@ -611,25 +611,25 @@ function kt(e) {
611
611
  }
612
612
  }
613
613
  const wt = Object.fromEntries(
614
- Object.entries(Y).map(
614
+ Object.entries(H).map(
615
615
  ([e, n]) => [e, kt(n)]
616
616
  )
617
617
  ), vt = t.object(wt).strict(), Tt = new Set(
618
- Object.keys(Y)
618
+ Object.keys(H)
619
619
  );
620
620
  function fn() {
621
621
  return Object.keys(
622
- Y
622
+ H
623
623
  );
624
624
  }
625
- function Rt(e) {
625
+ function Et(e) {
626
626
  return Tt.has(e);
627
627
  }
628
628
  function gn(e) {
629
629
  if (!e || typeof e != "object" || Array.isArray(e))
630
630
  throw new Error("Semaphor analyze result must be an object.");
631
631
  const a = Object.keys(e).filter(
632
- (r) => !Rt(r)
632
+ (r) => !Et(r)
633
633
  );
634
634
  if (a.length)
635
635
  throw new Error(
@@ -638,23 +638,23 @@ function gn(e) {
638
638
  return vt.parse(e);
639
639
  }
640
640
  const Te = 100, F = "selection:";
641
- function Re(e) {
641
+ function Ee(e) {
642
642
  return [
643
643
  de(e.source),
644
- He(e.name),
644
+ Ye(e.name),
645
645
  e.sourceField ?? ""
646
646
  ].join("::");
647
647
  }
648
648
  function yn(e) {
649
649
  return `${F}${e}`;
650
650
  }
651
- function Et(e) {
651
+ function Rt(e) {
652
652
  return e.startsWith(F) && e.length > F.length;
653
653
  }
654
654
  function Sn(e) {
655
- return Et(e) ? e.slice(F.length) : void 0;
655
+ return Rt(e) ? e.slice(F.length) : void 0;
656
656
  }
657
- function Ee(e) {
657
+ function Re(e) {
658
658
  if (!e) return "";
659
659
  const n = e.calendar.fiscalCalendar;
660
660
  return JSON.stringify([
@@ -666,10 +666,10 @@ function Ee(e) {
666
666
  }
667
667
  function Ct(e) {
668
668
  return JSON.stringify([
669
- Re(e.field),
669
+ Ee(e.field),
670
670
  e.operator,
671
671
  e.operator === "isNull" ? null : e.value,
672
- Ee(e.temporalBucket)
672
+ Re(e.temporalBucket)
673
673
  ]);
674
674
  }
675
675
  function se(e) {
@@ -681,7 +681,7 @@ function z(e) {
681
681
  e.field.name,
682
682
  e.operator,
683
683
  e.operator === "isNull" ? null : e.value,
684
- Ee(e.temporalBucket)
684
+ Re(e.temporalBucket)
685
685
  ]);
686
686
  }
687
687
  function oe(e) {
@@ -744,7 +744,7 @@ const Ot = t.union([
744
744
  }), jt = t.object({
745
745
  conditions: t.array(Pt).min(1)
746
746
  }).strict().superRefine((e, n) => {
747
- const a = e.conditions.map((r) => Re(r.field));
747
+ const a = e.conditions.map((r) => Ee(r.field));
748
748
  new Set(a).size !== a.length && n.addIssue({
749
749
  code: t.ZodIssueCode.custom,
750
750
  message: "A tuple holds one condition per field.",
@@ -771,7 +771,7 @@ const Ot = t.union([
771
771
  for (let a = 0; a < e.conditions.length; a += 1) {
772
772
  const r = e.conditions[a];
773
773
  e.conditions.findIndex(
774
- (c, i) => i < a && Ye(c.field, r.field)
774
+ (c, i) => i < a && He(c.field, r.field)
775
775
  ) !== -1 && n.addIssue({
776
776
  code: t.ZodIssueCode.custom,
777
777
  message: "A selection tuple can contain only one condition per field.",
@@ -782,7 +782,7 @@ const Ot = t.union([
782
782
  id: t.string().min(1),
783
783
  tuples: t.array(Lt).min(1).max(Te)
784
784
  }).strict(), Ut = t.object({ key: t.string().min(1), nativeText: t.string().nullable() }).strict(), qt = t.object({
785
- executionInstant: t.string().refine((e) => Qe(e) !== null, {
785
+ executionInstant: t.string().refine((e) => Je(e) !== null, {
786
786
  message: "executionInstant must be an ISO instant"
787
787
  }),
788
788
  dataAnchors: t.array(Ut).default([])
@@ -830,6 +830,9 @@ const Ce = {
830
830
  EVERY: "repeat_safe_other",
831
831
  ANY_VALUE: "repeat_safe_other",
832
832
  MODE: "other",
833
+ // Ordered-set percentiles; PostgreSQL's MEDIAN is PERCENTILE_CONT(0.5).
834
+ PERCENTILE_CONT: "other",
835
+ PERCENTILE_DISC: "other",
833
836
  APPROX_QUANTILES: "other",
834
837
  APPROX_QUANTILE: "other",
835
838
  APPROX_TOP_COUNT: "other",
@@ -947,10 +950,10 @@ function W(e, n = /* @__PURE__ */ new Set()) {
947
950
  if (e[p] === "(" && Mt(d)) {
948
951
  let g = P(e, p);
949
952
  const I = g - 1;
950
- let E = g;
953
+ let R = g;
951
954
  const T = e.slice(p + 1, g - 1);
952
955
  let x = T.trim() ? 1 : 0;
953
- for (let h = p + 1; h < E - 1; h++)
956
+ for (let h = p + 1; h < R - 1; h++)
954
957
  e[h] === "'" || e[h] === '"' ? h = V(e, h) - 1 : e[h] === "(" ? h = P(e, h) - 1 : e[h] === "," && x++;
955
958
  const C = /^\s*DISTINCT\b/i.test(T);
956
959
  W(C ? T.replace(/^\s*DISTINCT\b/i, "") : T).calls.length > 0 && (s = !0);
@@ -958,16 +961,16 @@ function W(e, n = /* @__PURE__ */ new Set()) {
958
961
  for (; ; ) {
959
962
  const h = j(e, g);
960
963
  if (!ie.test(e[h] || "")) break;
961
- const N = M(e, h), R = e.slice(h, N).toUpperCase(), u = j(e, N);
962
- if (R === "WITHIN") {
964
+ const N = M(e, h), E = e.slice(h, N).toUpperCase(), u = j(e, N);
965
+ if (E === "WITHIN") {
963
966
  const S = M(e, u), k = j(e, S);
964
967
  if (e.slice(u, S).toUpperCase() === "GROUP" && e[k] === "(") {
965
- g = P(e, k), E = g;
968
+ g = P(e, k), R = g;
966
969
  continue;
967
970
  }
968
971
  }
969
- if ((R === "FILTER" || R === "OVER") && e[u] === "(") {
970
- A = A || R === "OVER", _ = _ || R === "FILTER", g = P(e, u);
972
+ if ((E === "FILTER" || E === "OVER") && e[u] === "(") {
973
+ A = A || E === "OVER", _ = _ || E === "FILTER", g = P(e, u);
971
974
  continue;
972
975
  }
973
976
  break;
@@ -978,7 +981,7 @@ function W(e, n = /* @__PURE__ */ new Set()) {
978
981
  distinct: C,
979
982
  windowed: A,
980
983
  tokens: Wt(e.slice(p, g)),
981
- span: { start: l, end: E, argumentStart: p + 1, argumentEnd: I },
984
+ span: { start: l, end: R, argumentStart: p + 1, argumentEnd: I },
982
985
  argumentCount: x,
983
986
  filtered: _
984
987
  }), c += `@${a.length - 1}`, l = g;
@@ -1168,7 +1171,7 @@ function $t(e) {
1168
1171
  var n, a;
1169
1172
  return ((n = e.derivedField) == null ? void 0 : n.computeStage) || ((a = e.calculatedFormula) == null ? void 0 : a.computeStage);
1170
1173
  }
1171
- const Q = {
1174
+ const J = {
1172
1175
  stage: "aggregate",
1173
1176
  calls: [],
1174
1177
  windowed: !1,
@@ -1177,7 +1180,7 @@ const Q = {
1177
1180
  outputType: "numeric",
1178
1181
  identity: "unresolved",
1179
1182
  unresolved: !0
1180
- }, Pe = { ...Q, stage: "row" };
1183
+ }, Pe = { ...J, stage: "row" };
1181
1184
  function K(e) {
1182
1185
  return {
1183
1186
  stage: "row",
@@ -1196,36 +1199,36 @@ function B(e, n) {
1196
1199
  const a = (r = n.derivedField) == null ? void 0 : r.aggregationBehavior;
1197
1200
  return !a || e.unresolved ? e : a === "additive" ? e.reaggregation.kind === "additive" ? e : { ...e, reaggregation: { kind: "additive" } } : { ...e, reaggregation: { kind: "none", reason: "declared" } };
1198
1201
  }
1199
- function Yt(e, n) {
1200
- if (!e) return Q;
1202
+ function Ht(e, n) {
1203
+ if (!e) return J;
1201
1204
  if (typeof e.expression == "string" && e.expression.trim()) {
1202
- const r = J(e, n + 1);
1205
+ const r = Q(e, n + 1);
1203
1206
  return r === "row_input" ? "raw" : r.unresolved || r.stage === "aggregate" || r.outer ? r : "raw";
1204
1207
  }
1205
1208
  const a = X(e.aggregate);
1206
1209
  return a ? K(a) : "raw";
1207
1210
  }
1208
- const Ht = 12;
1209
- function J(e, n) {
1210
- var R;
1211
- if (n > Ht) return Q;
1211
+ const Yt = 12;
1212
+ function Q(e, n) {
1213
+ var E;
1214
+ if (n > Yt) return J;
1212
1215
  const a = typeof e.expression == "string" ? e.expression.trim() : "";
1213
1216
  if (!a)
1214
1217
  return B(
1215
1218
  K(X(e.aggregate) ?? "sum"),
1216
1219
  e
1217
1220
  );
1218
- const r = W(a), s = ((R = e.calculatedFormula) == null ? void 0 : R.inputFields) || [], c = (u) => {
1221
+ const r = W(a), s = ((E = e.calculatedFormula) == null ? void 0 : E.inputFields) || [], c = (u) => {
1219
1222
  const S = /^field_(\d+)$/.exec(u);
1220
1223
  return S ? s[Number(S[1])] : void 0;
1221
1224
  }, i = /* @__PURE__ */ new Map();
1222
1225
  for (const u of r.tokensOutsideAggregates)
1223
- i.has(u) || i.set(u, Yt(c(u), n));
1226
+ i.has(u) || i.set(u, Ht(c(u), n));
1224
1227
  const l = r.calls.some(
1225
1228
  (u) => u.tokens.some((S) => {
1226
1229
  const k = c(S);
1227
1230
  if (!(k != null && k.expression)) return !1;
1228
- const L = J(k, n + 1);
1231
+ const L = Q(k, n + 1);
1229
1232
  return L !== "row_input" && (L.unresolved || L.stage === "aggregate");
1230
1233
  })
1231
1234
  ), m = Array.from(i.values()).filter(
@@ -1240,10 +1243,10 @@ function J(e, n) {
1240
1243
  const u = X(e.aggregate);
1241
1244
  return u ? B(K(u), e) : "row_input";
1242
1245
  }
1243
- const I = !g || o || r.nestedAggregate || l || m.some((u) => u.unresolved) || r.calls.length === 0 && m.length === 0, E = [
1246
+ const I = !g || o || r.nestedAggregate || l || m.some((u) => u.unresolved) || r.calls.length === 0 && m.length === 0, R = [
1244
1247
  ...r.calls.map((u) => ({ kind: u.kind, distinct: u.distinct })),
1245
1248
  ...m.flatMap((u) => u.calls)
1246
- ], T = r.windowed || m.some((u) => u.windowed), x = !I && !T && E.every((u) => Oe.has(u.kind)), C = (u) => {
1249
+ ], T = r.windowed || m.some((u) => u.windowed), x = !I && !T && R.every((u) => Oe.has(u.kind)), C = (u) => {
1247
1250
  if (u.kind === "call") {
1248
1251
  const k = r.calls[u.index];
1249
1252
  return k ? xe(k.kind) : { kind: "none", reason: "unresolved" };
@@ -1268,7 +1271,7 @@ function J(e, n) {
1268
1271
  return B(
1269
1272
  {
1270
1273
  stage: "aggregate",
1271
- calls: E,
1274
+ calls: R,
1272
1275
  windowed: T,
1273
1276
  repeatSafe: x,
1274
1277
  reaggregation: _,
@@ -1280,27 +1283,27 @@ function J(e, n) {
1280
1283
  );
1281
1284
  }
1282
1285
  function vn(e) {
1283
- const n = J(e, 0);
1286
+ const n = Q(e, 0);
1284
1287
  return n === "row_input" ? Pe : n;
1285
1288
  }
1286
- const Qt = t.object({
1287
- intent: Je,
1289
+ const Jt = t.object({
1290
+ intent: Qe,
1288
1291
  matrixWindowRequest: pe
1289
- }).strict(), Jt = t.object({
1292
+ }).strict(), Qt = t.object({
1290
1293
  runtimeFilters: G.innerType().shape.filters,
1291
1294
  runtimeSorts: G.innerType().shape.sorts.optional()
1292
1295
  });
1293
1296
  function Tn(e) {
1294
- return Jt.parse(e);
1297
+ return Qt.parse(e);
1295
1298
  }
1296
1299
  const en = {
1297
1300
  // A window executes a governed statement set, not one compiled query.
1298
1301
  compiledQuery: t.never().optional(),
1299
- intent: Qt.shape.intent,
1302
+ intent: Jt.shape.intent,
1300
1303
  resultShape: t.literal("matrix"),
1301
1304
  result: be.optional(),
1302
- metadata: t.object({ rowLimitExceeded: t.boolean(), matrixFailure: H.optional() }).passthrough()
1303
- }, tn = ve.extend(en), Rn = tn.superRefine((e, n) => {
1305
+ metadata: t.object({ rowLimitExceeded: t.boolean(), matrixFailure: Y.optional() }).passthrough()
1306
+ }, tn = ve.extend(en), En = tn.superRefine((e, n) => {
1304
1307
  e.status === "failed" == !!e.result && n.addIssue({ code: "custom", message: "Only answered or partial Matrix execution carries a window." }), e.result && e.status === "partial" != e.result.window.failures.length > 0 && n.addIssue({ code: "custom", message: "Matrix execution status must match acquired window failures." });
1305
1308
  });
1306
1309
  export {
@@ -1323,7 +1326,7 @@ export {
1323
1326
  nt as P,
1324
1327
  at as Q,
1325
1328
  sn as R,
1326
- Y as S,
1329
+ H as S,
1327
1330
  on as T,
1328
1331
  st as U,
1329
1332
  cn as V,
@@ -1336,7 +1339,7 @@ export {
1336
1339
  ut as a0,
1337
1340
  dt as a1,
1338
1341
  ne as a2,
1339
- H as a3,
1342
+ Y as a3,
1340
1343
  mt as a4,
1341
1344
  Se as a5,
1342
1345
  pt as a6,
@@ -1352,10 +1355,10 @@ export {
1352
1355
  ae as ag,
1353
1356
  At as ah,
1354
1357
  hn as ai,
1355
- Jt as aj,
1358
+ Qt as aj,
1356
1359
  Tn as ak,
1357
- Rn as al,
1358
- Qt as am,
1360
+ En as al,
1361
+ Jt as am,
1359
1362
  Sn as b,
1360
1363
  An as c,
1361
1364
  bt as d,
@@ -1363,7 +1366,7 @@ export {
1363
1366
  _e as f,
1364
1367
  fn as g,
1365
1368
  ke as h,
1366
- Rt as i,
1369
+ Et as i,
1367
1370
  we as j,
1368
1371
  ve as k,
1369
1372
  _t as l,
@@ -1372,11 +1375,11 @@ export {
1372
1375
  be as o,
1373
1376
  gn as p,
1374
1377
  Te as q,
1375
- Re as r,
1378
+ Ee as r,
1376
1379
  _n as s,
1377
1380
  yn as t,
1378
- Et as u,
1379
- Ee as v,
1381
+ Rt as u,
1382
+ Re as v,
1380
1383
  Ct as w,
1381
1384
  se as x,
1382
1385
  z as y,
@@ -1,5 +1,5 @@
1
1
  import { t as g, T as m, a as C } from "./analytics-base-schemas-BKs3flFS.js";
2
- import { r as k } from "./validators-C-aOQlTB.js";
2
+ import { r as k } from "./validators-ClKLGDGZ.js";
3
3
  function w(e) {
4
4
  const r = g.safeParse(e);
5
5
  return r.success ? { ok: !0, value: r.data } : {