react-semaphor 0.1.602 → 0.1.604
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.
- package/dist/activity/index.js +1 -73
- package/dist/analytics-protocol/index.js +1 -1451
- package/dist/appearance/index.js +1 -12
- package/dist/appearance-runtime/index.js +1 -5
- package/dist/assistant-context/index.js +1 -11
- package/dist/assistant-protocol/index.js +1 -152
- package/dist/brand-studio/index.js +4 -1594
- package/dist/briefings/index.js +1 -70
- package/dist/chunks/add-to-dashboard-DeHEBEqG.js +12 -0
- package/dist/chunks/analytics-base-schemas-BREc5WGv.js +1 -0
- package/dist/chunks/appearance-context-BqBZrijL.js +1 -0
- package/dist/chunks/appearance-runtime-provider-DmbCrOOG.js +1 -0
- package/dist/chunks/applied-constraints-CinevlKD.js +1 -0
- package/dist/chunks/assistant-chat-CjYrwVDa.js +56 -0
- package/dist/chunks/attribution-BEFSsbNn.js +1 -0
- package/dist/chunks/availability-3AIOf6Z-.js +1 -0
- package/dist/chunks/bookmark-impact-C89zBLq3.js +1 -0
- package/dist/chunks/bookmark-state-69YYnRql.js +1 -0
- package/dist/chunks/brand-DCaZyRt6.js +1 -0
- package/dist/chunks/card-filter-builder-CTp6RAz1.js +17 -0
- package/dist/chunks/column-bands-DwxbZ6UI.js +1 -0
- package/dist/chunks/comparison-window-caption-C312mn3s.js +1 -0
- package/dist/chunks/context-ALdccLHw.js +2 -0
- package/dist/chunks/conversation-JMK2kyTK.js +1 -0
- package/dist/chunks/dashboard-BX28ld6s.js +1 -0
- package/dist/chunks/dashboard-briefing-launcher-qo7GH4EO.js +37 -0
- package/dist/chunks/dashboard-controls-DhRjB7MA.js +42 -0
- package/dist/chunks/dashboard-json-9cHzhSjC.js +1 -0
- package/dist/chunks/dates-D-KP8G-z.js +1 -0
- package/dist/chunks/edit-DEAK0UZo.js +1 -0
- package/dist/chunks/edit-dashboard-visual-Duq_QkB_.js +93 -0
- package/dist/chunks/export-file-format-B-wQNHIn.js +4 -0
- package/dist/chunks/filter-line-CwQrqORc.js +1 -0
- package/dist/chunks/filter-reach-preview-gixPFlZj.js +1 -0
- package/dist/chunks/filter-value-text-B3tXakhd.js +1 -0
- package/dist/chunks/index-B-VF1ogs.js +1 -0
- package/dist/chunks/index-BE1DfxNs.js +1 -0
- package/dist/chunks/index-DViPGDFj.js +1 -0
- package/dist/chunks/layout-grid-BWtlgw0T.js +6 -0
- package/dist/chunks/matrix-analytical-definition-CtFqWyCK.js +1 -0
- package/dist/chunks/matrix-member-presentation-Q0MCJ-YK.js +1 -0
- package/dist/chunks/matrix-operation-contract-D1RC1bfi.js +1 -0
- package/dist/chunks/metric-comparison-DEZYXROZ.js +1 -0
- package/dist/chunks/normalize-dashboard-for-dirty-check-ILKfqgL3.js +1 -0
- package/dist/chunks/paintbrush-BjS3SbrH.js +6 -0
- package/dist/chunks/palette-BzC-CGOc.js +6 -0
- package/dist/chunks/pickers-DuBrUht0.js +1 -0
- package/dist/chunks/pivot-result-contract-expectations-DTQAgr4n.js +1 -0
- package/dist/chunks/pivot-result-identity-DTNCB--h.js +1 -0
- package/dist/chunks/raw-temporal-value-DeyEhL0S.js +1 -0
- package/dist/chunks/rendered-file-BbvwaU6z.js +1 -0
- package/dist/chunks/report-preferences-dialog-B_gUmCzG.js +1 -0
- package/dist/chunks/report-runtime-context-BWzIHCKK.js +1 -0
- package/dist/chunks/resolve-dashboard-input-context-B-TtRqxu.js +8 -0
- package/dist/chunks/resolver-AN9ChBfZ.js +1 -0
- package/dist/chunks/save-DdFUZcbi.js +6 -0
- package/dist/chunks/saved-dashboard-context-BAJ5tWiq.js +1 -0
- package/dist/chunks/schema-MC0cQSAb.js +4 -0
- package/dist/chunks/selection-filter-compiler-CCoCD25M.js +1 -0
- package/dist/chunks/semaphor-ready-indicator-DzjorP3t.js +999 -0
- package/dist/chunks/set-DuJfGkbY.js +1 -0
- package/dist/chunks/shelf-drop-preview-context-BlLJ5RsT.js +6 -0
- package/dist/chunks/stored-dashboard-Ctcpkllg.js +1 -0
- package/dist/chunks/style-sheet-parts-BRGt9O05.js +178 -0
- package/dist/chunks/table-export-sheet-rC5pKmXg.js +2 -0
- package/dist/chunks/token-types-Bj9iMy0w.js +1 -0
- package/dist/chunks/validators-CqV3Yka1.js +1 -0
- package/dist/chunks/variable-draft-DJrfUyhv.js +1 -0
- package/dist/chunks/visual-choice-DgEFfkE-.js +1 -0
- package/dist/dashboard/index.js +1 -7
- package/dist/dashboard-authoring/index.js +1 -4491
- package/dist/format-utils/index.js +1 -424
- package/dist/index.js +1 -554
- package/dist/layouts/index.js +1 -7
- package/dist/live-channel/index.js +1 -124
- package/dist/pdf-export-policy/index.js +1 -92
- package/dist/pdf-table-layout/index.js +1 -993
- package/dist/report-runtime-context/index.js +1 -9
- package/dist/shared/index.js +1 -6
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -9
- package/dist/types/components/ui-custom/date-range-presets.d.ts +8 -0
- package/dist/types/index.js +1 -88
- package/dist/types/lib/document/document-edits.d.ts +0 -4
- package/dist/types/lib/filter-values/build-card-filter-definition.d.ts +32 -0
- package/dist/types/lib/query-context/dashboard-filter-mapping-resolution.d.ts +9 -0
- package/dist/types/lib/stores/dashboard-store.d.ts +0 -1
- package/dist/types/lib/stores/explorer-actions.d.ts +7 -6
- package/dist/types/lib/types/common-types.d.ts +0 -2
- package/dist/types/lib/types/explorer-types.d.ts +1 -1
- package/dist/types/lib/types/semantic-types.d.ts +6 -10
- package/dist/types/lib/utils/field-state-calculator.d.ts +7 -19
- package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +18 -0
- package/dist/types/shared/analytics-protocol/analyze-result-types.d.ts +3 -0
- package/dist/types/shared/analytics-protocol/comparison-choices.d.ts +92 -0
- package/dist/types/shared/analytics-protocol/comparison-placement.d.ts +30 -0
- package/dist/types/shared/analytics-protocol/contracts.d.ts +11 -5
- package/dist/types/shared/analytics-protocol/date-window.d.ts +105 -0
- package/dist/types/shared/analytics-protocol/filter-field-ownership.d.ts +27 -0
- package/dist/types/shared/analytics-protocol/fixtures.d.ts +4 -2
- package/dist/types/shared/analytics-protocol/index.d.ts +3 -0
- package/dist/types/shared/analytics-protocol/metric-comparison.d.ts +93 -11
- package/dist/types/shared/assistant-protocol/context.d.ts +16 -16
- package/dist/types/shared/dashboard-authoring/calculations/calculated-column.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/calculations/definition.d.ts +13 -0
- package/dist/types/shared/dashboard-authoring/card-data-source/card-base.d.ts +125 -0
- package/dist/types/shared/dashboard-authoring/card-data-source/card-field-folders.d.ts +55 -0
- package/dist/types/shared/dashboard-authoring/card-data-source/card-joins.d.ts +114 -0
- package/dist/types/shared/dashboard-authoring/card-data-source/card-prune.d.ts +12 -0
- package/dist/types/shared/dashboard-authoring/card-data-source/filter-field-catalog.d.ts +60 -0
- package/dist/types/shared/dashboard-authoring/card-data-source/filter-field-folders.d.ts +132 -0
- package/dist/types/shared/dashboard-authoring/card-data-source/index.d.ts +7 -0
- package/dist/types/shared/dashboard-authoring/card-data-source/join-reach.d.ts +42 -0
- package/dist/types/shared/dashboard-authoring/card-field-places.d.ts +28 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +8 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +2 -1
- package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +0 -3
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +21 -358
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
- package/dist/types/shared/dashboard-authoring/dashboard-variable-card.d.ts +2 -4
- package/dist/types/shared/dashboard-authoring/field-folders/field-folders.d.ts +115 -0
- package/dist/types/shared/dashboard-authoring/field-folders/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/filter-reach-decision.d.ts +11 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +6 -1
- package/dist/types/shared/dashboard-authoring/kpi-date-context.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +18 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/comparison.d.ts +8 -7
- package/dist/types/shared/dashboard-authoring/measure-calculations/dates.d.ts +11 -1
- package/dist/types/shared/dashboard-authoring/measure-calculations/index.d.ts +2 -2
- package/dist/types/shared/dashboard-authoring/measure-calculations/options.d.ts +4 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/read.d.ts +18 -1
- package/dist/types/shared/dashboard-authoring/measure-calculations/resolve.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/schemas.d.ts +46 -88
- package/dist/types/shared/dashboard-authoring/operations/calculated-field-operations.d.ts +33 -8
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +0 -2
- package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +5 -0
- package/dist/types/shared/dashboard-authoring/see-records/result.d.ts +7 -22
- package/dist/types/shared/format-utils/comparison-detail.d.ts +34 -0
- package/dist/types/shared/format-utils/index.d.ts +1 -0
- package/dist/types/shared/format-utils/partial-period.d.ts +4 -2
- package/dist/types/shared/temporal/calendar-periods.d.ts +11 -0
- package/dist/types/shared/temporal/index.d.ts +2 -0
- package/dist/types/shared/temporal/temporal-text.d.ts +33 -0
- package/dist/types/shared/temporal/temporal.d.ts +27 -0
- package/dist/types/shared/temporal/zoned-wall-clock.d.ts +4 -3
- package/dist/usage-events/index.js +1 -285
- package/dist/value-format-preferences/index.js +1 -635
- package/package.json +6 -2
- package/dist/chunks/add-to-dashboard-ClhEIFst.js +0 -291
- package/dist/chunks/analytics-base-schemas-DevrgqQb.js +0 -678
- package/dist/chunks/appearance-context-BwBp25ZG.js +0 -162
- package/dist/chunks/appearance-runtime-provider-BRHYELkC.js +0 -80
- package/dist/chunks/applied-constraints-DU-wndZ7.js +0 -47
- package/dist/chunks/assistant-chat-BWF3GYip.js +0 -6115
- package/dist/chunks/attribution-BvoKvhcj.js +0 -32
- package/dist/chunks/availability-Bp5Gfu1I.js +0 -44
- package/dist/chunks/bookmark-impact-BF3iRx5a.js +0 -76
- package/dist/chunks/bookmark-state-CBSTdW6q.js +0 -1666
- package/dist/chunks/brand-BoUV0iHF.js +0 -54
- package/dist/chunks/card-filter-builder-B8XHwMY6.js +0 -4069
- package/dist/chunks/column-bands-RdM-kjDe.js +0 -47
- package/dist/chunks/comparison-window-caption-W83qB4V5.js +0 -741
- package/dist/chunks/context-BJoEFgNl.js +0 -369
- package/dist/chunks/conversation-sQiWYUOb.js +0 -16
- package/dist/chunks/dashboard-DG5EIYYB.js +0 -14
- package/dist/chunks/dashboard-briefing-launcher-CBSrhyWZ.js +0 -4875
- package/dist/chunks/dashboard-controls-D6ECO4N1.js +0 -2290
- package/dist/chunks/dashboard-json-DrJftBSL.js +0 -66
- package/dist/chunks/dates-Bz-qM5px.js +0 -164
- package/dist/chunks/edit-9df1zOWe.js +0 -226
- package/dist/chunks/edit-dashboard-visual-BDYAJIbb.js +0 -18605
- package/dist/chunks/export-file-format-C-tJsxsf.js +0 -111
- package/dist/chunks/filter-line-BXT6y303.js +0 -703
- package/dist/chunks/filter-reach-copy-BukhZmzm.js +0 -5250
- package/dist/chunks/filter-value-text-D3-bf3_b.js +0 -153
- package/dist/chunks/index-BVKzKl5d.js +0 -90
- package/dist/chunks/index-BW0yozjs.js +0 -2795
- package/dist/chunks/index-CV_Kzou0.js +0 -595
- package/dist/chunks/layout-grid-Ds0diMeY.js +0 -16
- package/dist/chunks/matrix-analytical-definition-CgQgVeeI.js +0 -1162
- package/dist/chunks/matrix-member-presentation-DSBIIudt.js +0 -258
- package/dist/chunks/matrix-operation-contract--DkNCOzd.js +0 -1412
- package/dist/chunks/metric-comparison-zMylnIkc.js +0 -541
- package/dist/chunks/normalize-dashboard-for-dirty-check-XKgH3GFX.js +0 -119
- package/dist/chunks/paintbrush-CX8pao1j.js +0 -27
- package/dist/chunks/palette-CuA0HlzF.js +0 -23
- package/dist/chunks/pickers-DkqmtnTL.js +0 -2403
- package/dist/chunks/pivot-result-contract-expectations-C8KL7hPx.js +0 -5046
- package/dist/chunks/pivot-result-identity-C1AOH1PS.js +0 -77
- package/dist/chunks/raw-temporal-value-E416F-0L.js +0 -454
- package/dist/chunks/rendered-file-D8xEuVVx.js +0 -108
- package/dist/chunks/report-preferences-dialog-CbuVNDGi.js +0 -1637
- package/dist/chunks/report-runtime-context-E7USjN7E.js +0 -388
- package/dist/chunks/resolve-dashboard-input-context-CULCE_hM.js +0 -25172
- package/dist/chunks/resolver-DG_tfEpt.js +0 -156
- package/dist/chunks/save-BKHlDONy.js +0 -21
- package/dist/chunks/saved-dashboard-context-C1WlOx5z.js +0 -632
- package/dist/chunks/schema-C9NPiIru.js +0 -2568
- package/dist/chunks/selection-filter-compiler-ifT8JCXS.js +0 -131
- package/dist/chunks/semaphor-ready-indicator-CBIRcDWs.js +0 -145326
- package/dist/chunks/shelf-drop-preview-context-xR69SMA8.js +0 -2466
- package/dist/chunks/stored-dashboard-BuM8vnWf.js +0 -4070
- package/dist/chunks/style-sheet-parts-Bt9ZNre8.js +0 -8674
- package/dist/chunks/table-export-sheet-DVljtHkG.js +0 -949
- package/dist/chunks/token-types-D_xKgyVS.js +0 -8
- package/dist/chunks/upload-Dll_M7XQ.js +0 -15
- package/dist/chunks/validators-ClWHpYql.js +0 -3686
- package/dist/chunks/variable-draft-CDGGl53R.js +0 -242
- package/dist/chunks/visual-choice-DDfHfHvY.js +0 -172
|
@@ -1,424 +1 @@
|
|
|
1
|
-
import { f as x, a as _ } from "../chunks/pivot-result-contract-expectations-C8KL7hPx.js";
|
|
2
|
-
import { ae as U, D as q, F as j, H as z, B as W, M as H, A as K, G as Y, Z as G, aE as Q, Y as J, aq as Z, a8 as ee, a9 as ae, af as re, O as te, aw as se, at as oe, a1 as le, au as ie, E as ne, s as me, aG as ue, ak as ce, a4 as pe, a3 as Ee, a5 as fe, a6 as Te, y as de, e as Ce, o as Re, m as be, n as xe, d as _e, l as Fe, k as Pe, j as he, g as Se, az as Ae, q as we, z as Ie, h as ve, ao as ye, aD as De, b as Me, u as ge, v as Ne, c as Oe, i as Le, aa as Xe, K as ke, L as Be, N as $e, I as Ve, Q as Ue, J as qe, P as je, R as ze, T as We, a0 as He, _ as Ke, av as Ye, U as Ge, $ as Qe, ar as Je, al as Ze, ag as ea, aB as aa, x as ra, p as ta, S as sa, aA as oa, ay as la, aF as ia, C as na, ad as ma, r as ua, W as ca, X as pa, as as Ea, am as fa, t as Ta, ah as da, ap as Ca, aj as Ra, ai as ba, an as xa, ab as _a, V as Fa, a7 as Pa, ax as ha, ac as Sa, aC as Aa, w as wa, a2 as Ia } from "../chunks/pivot-result-contract-expectations-C8KL7hPx.js";
|
|
3
|
-
import { p as F, m as P } from "../chunks/comparison-window-caption-W83qB4V5.js";
|
|
4
|
-
import { D as ya, q as Da, h as Ma, M as ga, P as Na, l as Oa, i as La, g as Xa, e as ka, d as Ba, w as $a, u as Va, f as Ua, a as qa, s as ja, n as za, b as Wa, c as Ha, y as Ka, x as Ya, k as Ga, j as Qa, z as Ja, t as Za, v as er, r as ar, o as rr } from "../chunks/comparison-window-caption-W83qB4V5.js";
|
|
5
|
-
import { c as h } from "../chunks/export-file-format-C-tJsxsf.js";
|
|
6
|
-
import { d as sr, a as or, C as lr, b as ir, D as nr, E as mr, X as ur, f as cr, i as pr, j as Er, g as fr, n as Tr, m as dr, o as Cr, l as Rr, e as br, p as xr, k as _r, h as Fr, r as Pr, t as hr } from "../chunks/export-file-format-C-tJsxsf.js";
|
|
7
|
-
import { E as Ar, I as wr, R as Ir, c as vr, p as yr, a as Dr, b as Mr, r as gr, s as Nr, w as Or } from "../chunks/rendered-file-D8xEuVVx.js";
|
|
8
|
-
import { r as f, t as S } from "../chunks/filter-line-BXT6y303.js";
|
|
9
|
-
import { F as Xr, e as kr, f as Br, g as $r, a as Vr, p as Ur, d as qr, c as jr, b as zr } from "../chunks/filter-line-BXT6y303.js";
|
|
10
|
-
import { d as C } from "../chunks/table-export-sheet-DVljtHkG.js";
|
|
11
|
-
import { T as Hr, a as Kr, X as Yr, b as Gr, k as Qr, l as Jr, g as Zr, h as et, i as at, o as rt, e as tt, p as st, n as ot, c as lt, s as it, j as nt, q as mt, m as ut, t as ct, w as pt, f as Et, x as ft } from "../chunks/table-export-sheet-DVljtHkG.js";
|
|
12
|
-
import { m as T } from "../chunks/validators-ClWHpYql.js";
|
|
13
|
-
import "../chunks/matrix-operation-contract--DkNCOzd.js";
|
|
14
|
-
import { S as dt, t as Ct } from "../chunks/analytics-base-schemas-DevrgqQb.js";
|
|
15
|
-
import { FAST_PDF_POLICY as bt, PDF_CAPACITY as xt, PDF_CAPACITY_REFUSAL_CODES as _t, PDF_NUMBER_COLUMN_TOO_WIDE as Ft, PDF_SAFETY_LIMIT_EXCEEDED as Pt, PDF_TABLE_CARD_TYPES as ht, getUtf8ByteLength as St, isFastPdfRequestSizeEligible as At, isFastPdfRowCountEligible as wt, isPdfCapacityRefusalCode as It, isPdfPageCountWithinCapacity as vt, isPdfTableCardType as yt, readPdfCapacityFacts as Dt } from "../pdf-export-policy/index.js";
|
|
16
|
-
import { a as gt, d as Nt } from "../chunks/filter-value-text-D3-bf3_b.js";
|
|
17
|
-
import { r as Lt } from "../chunks/metric-comparison-zMylnIkc.js";
|
|
18
|
-
import { P as kt, b as Bt, c as $t, r as Vt, a as Ut } from "../chunks/pivot-result-identity-C1AOH1PS.js";
|
|
19
|
-
import { c as jt, p as zt, v as Wt } from "../chunks/raw-temporal-value-E416F-0L.js";
|
|
20
|
-
function R(a, t, l) {
|
|
21
|
-
return a.columns.map((s, r) => {
|
|
22
|
-
var n;
|
|
23
|
-
const o = `matrix:${r}`;
|
|
24
|
-
if (s.kind !== "measure")
|
|
25
|
-
return f({ key: o, label: l[r], formattedValues: !0, dataType: "string", presentation: { kind: "text" } });
|
|
26
|
-
const e = t.measureFormats.get(s.measureId);
|
|
27
|
-
return f({
|
|
28
|
-
key: o,
|
|
29
|
-
label: l[r],
|
|
30
|
-
formattedValues: !0,
|
|
31
|
-
dataType: (n = t.measureSemantics.get(s.measureId)) != null && n.isNumeric ? "number" : "string",
|
|
32
|
-
...e ? { presentation: { kind: "measure", format: e } } : {}
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
function b(a, t, l) {
|
|
37
|
-
return t.map((s, r) => {
|
|
38
|
-
const o = a.values[r];
|
|
39
|
-
return S({ value: (o == null ? void 0 : o.kind) === "value" ? o.value : null, text: s, column: l[r] });
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
function A(a, t) {
|
|
43
|
-
const l = [];
|
|
44
|
-
for (let s = 0; s < t; s += 1) {
|
|
45
|
-
const r = a.columns.map((e) => e.kind !== "measure" ? null : s < e.columnPath.length ? `member:${T(e.columnPath.slice(0, s + 1))}` : s === e.columnPath.length && e.role !== "member" ? `${e.role}:${T(e.columnPath)}` : null);
|
|
46
|
-
let o = 0;
|
|
47
|
-
for (let e = 1; e <= r.length; e += 1)
|
|
48
|
-
e < r.length && r[e] !== null && r[e] === r[o] || (r[o] !== null && e - 1 > o && l.push({ row: s, firstColumn: o, lastColumn: e - 1 }), o = e);
|
|
49
|
-
}
|
|
50
|
-
return l;
|
|
51
|
-
}
|
|
52
|
-
function O(a, t, l) {
|
|
53
|
-
const s = F(a, t, l), r = R(a, s.formatting, s.headers);
|
|
54
|
-
return {
|
|
55
|
-
/** Header bands as header rows (XL-D16), with merges from identity (XL-D34). */
|
|
56
|
-
xlsxSheet: (o) => C({
|
|
57
|
-
title: o.title,
|
|
58
|
-
columns: r,
|
|
59
|
-
headerRows: o.includeHeaders ? s.headerBands : [],
|
|
60
|
-
merges: o.includeHeaders ? A(a, s.headerBands.length - 1) : []
|
|
61
|
-
}),
|
|
62
|
-
/** Every row label repeated; subtotal and grand-total rows are 'total' (bold). */
|
|
63
|
-
xlsxRows: (o) => o.map((e) => ({
|
|
64
|
-
role: e.kind === "layout" && e.role !== "member" ? "total" : "body",
|
|
65
|
-
// No previous row: every label shows, whatever the screen's layout repeats.
|
|
66
|
-
cells: b(e, s.row(e), r)
|
|
67
|
-
}))
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
function L(a, t) {
|
|
71
|
-
const l = a.columns.map((r) => r.label), s = R(a, t, l);
|
|
72
|
-
return {
|
|
73
|
-
/** One header row of the layout's column labels. */
|
|
74
|
-
xlsxSheet: (r) => C({ title: r.title, columns: s, headerRows: r.includeHeaders ? [l] : [] }),
|
|
75
|
-
/** Flat rows with the card's formats (MX-D10) and typed measure cells. */
|
|
76
|
-
xlsxRows: (r) => r.map((o) => ({ role: "body", cells: b(o, P(o, a, t), s) }))
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
function p(a) {
|
|
80
|
-
if (a === null || typeof a != "object" || Array.isArray(a))
|
|
81
|
-
return !1;
|
|
82
|
-
const t = Object.getPrototypeOf(a);
|
|
83
|
-
return t === null || t === Object.prototype;
|
|
84
|
-
}
|
|
85
|
-
function d(a, t, l) {
|
|
86
|
-
const s = new Set(t), r = Object.keys(a).find((o) => !s.has(o));
|
|
87
|
-
if (r)
|
|
88
|
-
throw new Error(`${l} contains unknown property "${r}"`);
|
|
89
|
-
}
|
|
90
|
-
function X(a, t = "tableTotalsRequest") {
|
|
91
|
-
if (!p(a))
|
|
92
|
-
throw new Error(`${t} must be an object`);
|
|
93
|
-
if (d(a, ["source", "columns"], t), a.source !== "documentFlatTable")
|
|
94
|
-
throw new Error(`${t}.source must be documentFlatTable`);
|
|
95
|
-
if (!Array.isArray(a.columns) || a.columns.length === 0)
|
|
96
|
-
throw new Error(`${t}.columns must be a non-empty array`);
|
|
97
|
-
let l = 0;
|
|
98
|
-
const s = a.columns.map((e, n) => {
|
|
99
|
-
const i = `${t}.columns.${n}`;
|
|
100
|
-
if (!p(e))
|
|
101
|
-
throw new Error(`${i} must be an object`);
|
|
102
|
-
d(
|
|
103
|
-
e,
|
|
104
|
-
["fieldId", "role", "behavior", "metricAlias", "label"],
|
|
105
|
-
i
|
|
106
|
-
);
|
|
107
|
-
const E = typeof e.fieldId == "string" ? e.fieldId.trim() : "";
|
|
108
|
-
if (!E)
|
|
109
|
-
throw new Error(`${i}.fieldId must be a non-empty string`);
|
|
110
|
-
if (e.role !== "detail" && e.role !== "groupby" && e.role !== "metric")
|
|
111
|
-
throw new Error(`${i}.role is invalid`);
|
|
112
|
-
const m = e.role;
|
|
113
|
-
if (e.behavior !== "overall" && e.behavior !== "sumOfRows" && e.behavior !== "none" && e.behavior !== "label")
|
|
114
|
-
throw new Error(`${i}.behavior is invalid`);
|
|
115
|
-
const c = e.behavior, u = typeof e.metricAlias == "string" ? e.metricAlias.trim() : void 0;
|
|
116
|
-
if (e.metricAlias !== void 0 && !u)
|
|
117
|
-
throw new Error(`${i}.metricAlias must be a non-empty string`);
|
|
118
|
-
if (u && m !== "metric")
|
|
119
|
-
throw new Error(`${i}.metricAlias requires metric role`);
|
|
120
|
-
if (c === "label") {
|
|
121
|
-
if (l += 1, m === "metric")
|
|
122
|
-
throw new Error(`${i}.behavior label requires a non-metric role`);
|
|
123
|
-
} else if (m !== "metric")
|
|
124
|
-
throw new Error(`${i}.${c} requires metric role`);
|
|
125
|
-
if (e.label !== void 0 && typeof e.label != "string")
|
|
126
|
-
throw new Error(`${i}.label must be a string`);
|
|
127
|
-
return {
|
|
128
|
-
fieldId: E,
|
|
129
|
-
role: m,
|
|
130
|
-
behavior: c,
|
|
131
|
-
...u ? { metricAlias: u } : {},
|
|
132
|
-
...e.label !== void 0 ? { label: e.label } : {}
|
|
133
|
-
};
|
|
134
|
-
}), r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Set();
|
|
135
|
-
for (const e of s) {
|
|
136
|
-
if (e.metricAlias) {
|
|
137
|
-
if (o.has(e.metricAlias))
|
|
138
|
-
throw new Error(
|
|
139
|
-
`${t}.columns duplicates metricAlias "${e.metricAlias}"`
|
|
140
|
-
);
|
|
141
|
-
o.add(e.metricAlias);
|
|
142
|
-
}
|
|
143
|
-
const n = `${e.role}:${e.fieldId}`, i = r.get(n) ?? [];
|
|
144
|
-
i.push(e), r.set(n, i);
|
|
145
|
-
}
|
|
146
|
-
for (const e of r.values()) {
|
|
147
|
-
if (e.length === 1) continue;
|
|
148
|
-
const { fieldId: n } = e[0];
|
|
149
|
-
for (const i of e)
|
|
150
|
-
if (i.role !== "metric" || !i.metricAlias)
|
|
151
|
-
throw new Error(
|
|
152
|
-
`${t}.columns duplicates fieldId "${n}" without distinct metricAlias values`
|
|
153
|
-
);
|
|
154
|
-
}
|
|
155
|
-
if (l > 1)
|
|
156
|
-
throw new Error(`${t}.columns may contain at most one label`);
|
|
157
|
-
return { source: "documentFlatTable", columns: s };
|
|
158
|
-
}
|
|
159
|
-
function k(a, t = "tableTotalsByColumnId") {
|
|
160
|
-
if (!p(a))
|
|
161
|
-
throw new Error(`${t} must be an object`);
|
|
162
|
-
const l = {};
|
|
163
|
-
for (const [s, r] of Object.entries(a)) {
|
|
164
|
-
if (!s.trim())
|
|
165
|
-
throw new Error(`${t} contains an empty column id`);
|
|
166
|
-
if (r !== null && typeof r != "string" && (typeof r != "number" || !Number.isFinite(r)))
|
|
167
|
-
throw new Error(`${t}.${s} must be a string, finite number, or null`);
|
|
168
|
-
l[s] = r;
|
|
169
|
-
}
|
|
170
|
-
if (Object.keys(l).length === 0)
|
|
171
|
-
throw new Error(`${t} must not be empty`);
|
|
172
|
-
return l;
|
|
173
|
-
}
|
|
174
|
-
function w(a) {
|
|
175
|
-
if (typeof a == "number")
|
|
176
|
-
return Number.isFinite(a) ? a : null;
|
|
177
|
-
if (!a.trim())
|
|
178
|
-
return null;
|
|
179
|
-
const t = Number(a);
|
|
180
|
-
return Number.isFinite(t) ? t : null;
|
|
181
|
-
}
|
|
182
|
-
function B(a) {
|
|
183
|
-
const t = a.visibleColumns.map((l) => {
|
|
184
|
-
const r = Object.prototype.hasOwnProperty.call(
|
|
185
|
-
a.totalsByColumnId,
|
|
186
|
-
l
|
|
187
|
-
) ? a.totalsByColumnId[l] : l === a.labelColumnKey ? "Total" : null;
|
|
188
|
-
if (r === null)
|
|
189
|
-
return "";
|
|
190
|
-
if (!a.useFormattedValues)
|
|
191
|
-
return String(r);
|
|
192
|
-
const o = x({
|
|
193
|
-
snapshot: a.snapshot,
|
|
194
|
-
scope: a.scope,
|
|
195
|
-
target: { kind: "column", columnKey: l }
|
|
196
|
-
}), e = o ? w(r) : null;
|
|
197
|
-
return o && e !== null ? _(e, o) : String(r);
|
|
198
|
-
});
|
|
199
|
-
return h(t, a.delimiter);
|
|
200
|
-
}
|
|
201
|
-
export {
|
|
202
|
-
sr as CSV_CONTENT_TYPE,
|
|
203
|
-
or as CSV_DELIMITERS,
|
|
204
|
-
lr as CSV_ENCODINGS,
|
|
205
|
-
ir as CSV_RECORD_SEPARATOR,
|
|
206
|
-
nr as DEFAULT_CSV_ENCODING,
|
|
207
|
-
U as DEFAULT_RESOLVED_TEMPORAL_STYLE_SET,
|
|
208
|
-
q as DIRECT_CSV_EXPORT_MAX_ROWS,
|
|
209
|
-
ya as DOCUMENT_PAGE_FIT_TOLERANCE_PX,
|
|
210
|
-
Da as DOCUMENT_PRINT_FAILURE_CODES,
|
|
211
|
-
Ar as EMAIL_IMAGE_DASHBOARD_WIDTH,
|
|
212
|
-
mr as EXPORT_FILE_FORMATS,
|
|
213
|
-
bt as FAST_PDF_POLICY,
|
|
214
|
-
Xr as FILTER_LINE_MAX_LISTED_VALUES,
|
|
215
|
-
j as FULL_DATASET_CSV_EXPORT_MAX_ROWS,
|
|
216
|
-
wr as IMAGE_CAPTURE_LIMITS,
|
|
217
|
-
z as MATRIX_EXPORT_DECODED_PART_BYTES,
|
|
218
|
-
W as MATRIX_EXPORT_MAX_ARTIFACT_BYTES,
|
|
219
|
-
H as MATRIX_EXPORT_MAX_CELLS,
|
|
220
|
-
K as MATRIX_EXPORT_MAX_ENCODED_BYTES,
|
|
221
|
-
Y as MATRIX_EXPORT_TRANSFER_BYTES,
|
|
222
|
-
Ma as MATRIX_PRINT_DEFAULT_DECIMALS,
|
|
223
|
-
ga as MATRIX_PRINT_ORGANIZATION_DEFAULTS,
|
|
224
|
-
G as MissingResolvedRawTemporalFormatError,
|
|
225
|
-
xt as PDF_CAPACITY,
|
|
226
|
-
_t as PDF_CAPACITY_REFUSAL_CODES,
|
|
227
|
-
Na as PDF_GROUP_CONTINUATION_CLASS,
|
|
228
|
-
Ft as PDF_NUMBER_COLUMN_TOO_WIDE,
|
|
229
|
-
Pt as PDF_SAFETY_LIMIT_EXCEEDED,
|
|
230
|
-
ht as PDF_TABLE_CARD_TYPES,
|
|
231
|
-
Oa as PdfSafetyLimitError,
|
|
232
|
-
Q as PivotHeaderPresentationError,
|
|
233
|
-
kt as PivotResultIdentityError,
|
|
234
|
-
J as PresentationExecutionSnapshotError,
|
|
235
|
-
Ir as RENDERED_FILE_KINDS,
|
|
236
|
-
Z as RawTemporalFormatContractError,
|
|
237
|
-
dt as SEMAPHOR_GENERATED_COUNT_METRIC_ID,
|
|
238
|
-
Hr as TABLE_EXPORT_SHEET_SAMPLE_ROWS,
|
|
239
|
-
ee as TEMPORAL_BUCKET_PATTERN_TOKENS,
|
|
240
|
-
ae as TWELVE_HOUR_PATTERN_TOKENS,
|
|
241
|
-
re as TemporalBucketContractError,
|
|
242
|
-
ur as XLSX_CONTENT_TYPE,
|
|
243
|
-
Kr as XLSX_LIMIT_FAILURE_REASONS,
|
|
244
|
-
Yr as XlsxLimitError,
|
|
245
|
-
La as applyMatrixPrintNumberDefaults,
|
|
246
|
-
Xa as applyMatrixPrintOrganization,
|
|
247
|
-
te as assertMatrixBatchResponseSize,
|
|
248
|
-
se as assertRawTemporalChunkClassificationAgreement,
|
|
249
|
-
Gr as assertXlsxColumnCount,
|
|
250
|
-
B as buildFlatTableExportTotalsFooter,
|
|
251
|
-
ka as buildMatrixPrintTable,
|
|
252
|
-
Ba as buildMatrixTableStructure,
|
|
253
|
-
vr as cardImageSize,
|
|
254
|
-
oe as classifyDeclaredSqlTemporalColumn,
|
|
255
|
-
jt as classifyTemporalLiteral,
|
|
256
|
-
le as createPresentationExecutionSnapshot,
|
|
257
|
-
ie as createRawTemporalChunkClassificationEvidence,
|
|
258
|
-
cr as csvFilePreamble,
|
|
259
|
-
h as csvRecord,
|
|
260
|
-
pr as csvRecords,
|
|
261
|
-
$a as cutDatePeriod,
|
|
262
|
-
ne as dataExportRoute,
|
|
263
|
-
me as dateWallClock,
|
|
264
|
-
Qr as defineTableExportSheet,
|
|
265
|
-
C as defineXlsxSheet,
|
|
266
|
-
ue as deriveMetricInstanceAliasExpectations,
|
|
267
|
-
gt as describeConditionInFullDetail,
|
|
268
|
-
Va as describeDocumentPrintFailure,
|
|
269
|
-
Nt as describeFilterValueInFullDetail,
|
|
270
|
-
ce as describeTemporalBucketCalendar,
|
|
271
|
-
Er as encodeCsvFile,
|
|
272
|
-
Jr as encodeTableExportWorkbook,
|
|
273
|
-
Zr as encodeXlsxFile,
|
|
274
|
-
et as encodeXlsxRows,
|
|
275
|
-
fr as escapeCSVValue,
|
|
276
|
-
kr as exportCellText,
|
|
277
|
-
Tr as exportFileFormatFromContentType,
|
|
278
|
-
dr as exportFileFormatFromStored,
|
|
279
|
-
Cr as exportFileName,
|
|
280
|
-
Rr as exportFileTraits,
|
|
281
|
-
pe as findResolvedDateFormat,
|
|
282
|
-
x as findResolvedMeasureFormat,
|
|
283
|
-
Ee as findResolvedNumericFormat,
|
|
284
|
-
fe as findResolvedRawTemporalFormat,
|
|
285
|
-
Te as findResolvedTemporalBucketFormat,
|
|
286
|
-
Ua as formatCanonicalComparisonRange,
|
|
287
|
-
de as formatCellValue,
|
|
288
|
-
Ce as formatCurrency,
|
|
289
|
-
Re as formatDate,
|
|
290
|
-
be as formatDuration,
|
|
291
|
-
xe as formatDurationCanonical,
|
|
292
|
-
Br as formatFilterCondition,
|
|
293
|
-
$r as formatFilterLine,
|
|
294
|
-
_ as formatMeasureCanonical,
|
|
295
|
-
qa as formatMetricComparison,
|
|
296
|
-
_e as formatNumber,
|
|
297
|
-
Fe as formatNumberCustom,
|
|
298
|
-
Pe as formatNumberWithColumnSettings,
|
|
299
|
-
he as formatNumericCanonical,
|
|
300
|
-
Se as formatPercent,
|
|
301
|
-
Ae as formatRawTemporalValue,
|
|
302
|
-
we as formatRelativeTime,
|
|
303
|
-
Ie as formatRowForExport,
|
|
304
|
-
ve as formatScientific,
|
|
305
|
-
ye as formatTemporalBucket,
|
|
306
|
-
De as formatTemporalInputValue,
|
|
307
|
-
Me as fromSemanticFormat,
|
|
308
|
-
ge as getTimezoneAbbreviation,
|
|
309
|
-
Ne as getTimezoneName,
|
|
310
|
-
St as getUtf8ByteLength,
|
|
311
|
-
ja as isDocumentPrintFailureCode,
|
|
312
|
-
At as isFastPdfRequestSizeEligible,
|
|
313
|
-
wt as isFastPdfRowCountEligible,
|
|
314
|
-
Oe as isMeasureCanonicalFormat,
|
|
315
|
-
Le as isNumericCanonicalFormat,
|
|
316
|
-
It as isPdfCapacityRefusalCode,
|
|
317
|
-
vt as isPdfPageCountWithinCapacity,
|
|
318
|
-
za as isPdfRefusalCode,
|
|
319
|
-
yt as isPdfTableCardType,
|
|
320
|
-
Xe as isTemporalBucketPreset,
|
|
321
|
-
at as isXlsxLimitError,
|
|
322
|
-
ke as matrixAttemptKey,
|
|
323
|
-
Be as matrixBatchInputSchema,
|
|
324
|
-
$e as matrixBatchResponseSchema,
|
|
325
|
-
Ve as matrixExportDeadlineSchema,
|
|
326
|
-
Wa as matrixFlatCsvHeaders,
|
|
327
|
-
Ha as matrixFlatCsvRow,
|
|
328
|
-
P as matrixFlatRowText,
|
|
329
|
-
Ue as matrixManifestSchema,
|
|
330
|
-
br as parseCsvDelimiter,
|
|
331
|
-
xr as parseCsvEncoding,
|
|
332
|
-
_r as parseExportFileFormat,
|
|
333
|
-
k as parseFlatTableExportTotalsByColumnId,
|
|
334
|
-
X as parseFlatTableExportTotalsRequest,
|
|
335
|
-
yr as parseImageCaptureRequest,
|
|
336
|
-
qe as parseMatrixAttemptKey,
|
|
337
|
-
je as parseMatrixBatchResponse,
|
|
338
|
-
ze as parseMatrixManifest,
|
|
339
|
-
We as parseNumericCanonicalFormat,
|
|
340
|
-
He as parsePresentationExecutionSnapshot,
|
|
341
|
-
Ke as parsePresentationScope,
|
|
342
|
-
Ye as parseRawTemporalChunkClassificationEvidence,
|
|
343
|
-
zt as parseRawTemporalValueMetadata,
|
|
344
|
-
Ge as parseResolvedNumericCanonicalFormat,
|
|
345
|
-
Qe as parseResolvedPresentationEntries,
|
|
346
|
-
Je as parseResolvedRawTemporalFormat,
|
|
347
|
-
Ze as parseResolvedTemporalBucketFormat,
|
|
348
|
-
Vr as parseTableExportFormatting,
|
|
349
|
-
rt as parseTableExportSheetColumns,
|
|
350
|
-
ea as parseTemporalBucketValue,
|
|
351
|
-
aa as parseTemporalInputPresentation,
|
|
352
|
-
ra as parseWithSourceTimezone,
|
|
353
|
-
tt as parseXlsxColumns,
|
|
354
|
-
st as parseXlsxSheet,
|
|
355
|
-
Ka as partialPeriodEdgeNames,
|
|
356
|
-
Ya as partialPeriodLabel,
|
|
357
|
-
Ga as pdfCapacityRefusalLine,
|
|
358
|
-
ta as pickColumnFormat,
|
|
359
|
-
Dr as planImageViewport,
|
|
360
|
-
Qa as planMatrixKeepWithPrevious,
|
|
361
|
-
F as prepareMatrixExportPresentation,
|
|
362
|
-
L as prepareMatrixFlatXlsxPresentation,
|
|
363
|
-
sa as prepareMatrixFormatting,
|
|
364
|
-
O as prepareMatrixXlsxPresentation,
|
|
365
|
-
oa as prepareRawDateColumn,
|
|
366
|
-
la as prepareRawTemporalFormatter,
|
|
367
|
-
Ur as prepareTableExport,
|
|
368
|
-
ia as presentPivotHeader,
|
|
369
|
-
Fr as protectCSVText,
|
|
370
|
-
Ja as readAttachmentFilterLineValues,
|
|
371
|
-
Za as readDocumentPrintFailureFacts,
|
|
372
|
-
er as readDocumentPrintLayout,
|
|
373
|
-
qr as readNamedRelativeWindow,
|
|
374
|
-
Dt as readPdfCapacityFacts,
|
|
375
|
-
ar as readPdfErrorResponse,
|
|
376
|
-
Mr as renderedFileName,
|
|
377
|
-
gr as renderedFileTraits,
|
|
378
|
-
rr as requestStructuredPdf,
|
|
379
|
-
Bt as requirePivotHeaderMembers,
|
|
380
|
-
$t as requirePivotResultColumnIdentities,
|
|
381
|
-
na as requiresChunkedCsvExport,
|
|
382
|
-
jr as requiresRawTemporalSqlChunkEvidence,
|
|
383
|
-
ma as resolveApplicableTemporalBucketFormat,
|
|
384
|
-
ua as resolveColumnFormat,
|
|
385
|
-
Pr as resolveCsvEncoding,
|
|
386
|
-
ca as resolveCurrencyFractionDigits,
|
|
387
|
-
Lt as resolveMetricResultAlias,
|
|
388
|
-
pa as resolveNumericPresentation,
|
|
389
|
-
Vt as resolveQueryColumnKeyMapEntry,
|
|
390
|
-
Ea as resolveRawTemporalFormat,
|
|
391
|
-
fa as resolveTemporalBucketPresentation,
|
|
392
|
-
Ta as resolveTimezone,
|
|
393
|
-
Ut as resolveUniqueQueryColumnKeyMapEntry,
|
|
394
|
-
f as resolveXlsxColumn,
|
|
395
|
-
ot as serializeTableExportSheetColumns,
|
|
396
|
-
lt as serializeXlsxColumns,
|
|
397
|
-
it as serializeXlsxSheet,
|
|
398
|
-
Nr as sheetImageEntryName,
|
|
399
|
-
da as shiftTemporalBucketValue,
|
|
400
|
-
Ca as storedRawDatePresentation,
|
|
401
|
-
nt as streamXlsxFile,
|
|
402
|
-
zr as tableExportFormattingFromOptions,
|
|
403
|
-
mt as tableExportJobSheet,
|
|
404
|
-
ut as tableExportSheetColumns,
|
|
405
|
-
ct as tableExportXlsxRows,
|
|
406
|
-
Ra as temporalBucketDays,
|
|
407
|
-
ba as temporalBucketPeriod,
|
|
408
|
-
xa as temporalBucketWallClock,
|
|
409
|
-
hr as toCsvCell,
|
|
410
|
-
Ct as toStoredValueFormat,
|
|
411
|
-
_a as tokenizeTemporalBucketPattern,
|
|
412
|
-
Fa as validateCardExportNumericPresentationSnapshot,
|
|
413
|
-
Pa as validateCardExportPresentationSnapshot,
|
|
414
|
-
ha as validateRawTemporalPattern,
|
|
415
|
-
Wt as validateRawTemporalResultColumn,
|
|
416
|
-
Sa as validateTemporalBucketFormatApplicability,
|
|
417
|
-
Aa as validateTemporalInputPattern,
|
|
418
|
-
wa as withLiveModelFormats,
|
|
419
|
-
Ia as withMissingPresentationEntries,
|
|
420
|
-
pt as withXlsxSheetColumns,
|
|
421
|
-
Or as writeImageCaptureRequest,
|
|
422
|
-
Et as xlsxColumnsFingerprint,
|
|
423
|
-
ft as xlsxLimitFailureReason
|
|
424
|
-
};
|
|
1
|
+
import{f as x,a as _}from"../chunks/pivot-result-contract-expectations-DTQAgr4n.js";import{af as U,D as q,F as j,I as z,C as H,M as W,B as K,H as Y,_ as G,aF as Q,Z as J,ar as Z,a9 as ee,aa as ae,ag as re,P as te,ax as se,au as oe,a2 as le,av as ie,G as ne,t as me,aH as ue,d as ce,al as pe,a5 as Ee,a4 as fe,a6 as Te,a7 as de,z as Ce,g as Re,q as be,n as xe,o as _e,e as Fe,m as Pe,l as he,k as Se,h as Ae,aA as we,s as Ie,A as ve,j as ye,ap as De,aE as Me,b as ge,v as Ne,x as Oe,c as Le,i as Xe,ab as ke,L as Be,N as $e,O as Ve,J as Ue,R as qe,K as je,Q as ze,S as He,U as We,a1 as Ke,$ as Ye,aw as Ge,V as Qe,a0 as Je,as as Ze,am as ea,ah as aa,aC as ra,y as ta,p as sa,T as oa,aB as la,az as ia,aG as na,E as ma,ae as ua,r as ca,X as pa,Y as Ea,at as fa,an as Ta,u as da,ai as Ca,aq as Ra,ak as ba,aj as xa,ao as _a,ac as Fa,W as Pa,a8 as ha,ay as Sa,ad as Aa,aD as wa,w as Ia,a3 as va}from"../chunks/pivot-result-contract-expectations-DTQAgr4n.js";import{p as F,m as P}from"../chunks/comparison-window-caption-C312mn3s.js";import{D as Da,q as Ma,h as ga,M as Na,P as Oa,l as La,i as Xa,g as ka,e as Ba,d as $a,w as Va,u as Ua,f as qa,a as ja,s as za,n as Ha,b as Wa,c as Ka,y as Ya,x as Ga,k as Qa,j as Ja,z as Za,t as er,v as ar,r as rr,o as tr}from"../chunks/comparison-window-caption-C312mn3s.js";import{c as h}from"../chunks/export-file-format-B-wQNHIn.js";import{d as or,a as lr,C as ir,b as nr,D as mr,E as ur,X as cr,f as pr,i as Er,j as fr,g as Tr,n as dr,m as Cr,o as Rr,l as br,e as xr,p as _r,k as Fr,h as Pr,r as hr,t as Sr}from"../chunks/export-file-format-B-wQNHIn.js";import{E as wr,I as Ir,R as vr,c as yr,p as Dr,a as Mr,b as gr,r as Nr,s as Or,w as Lr}from"../chunks/rendered-file-BbvwaU6z.js";import{r as f,t as S}from"../chunks/filter-line-CwQrqORc.js";import{F as kr,e as Br,f as $r,g as Vr,a as Ur,p as qr,d as jr,c as zr,b as Hr}from"../chunks/filter-line-CwQrqORc.js";import{d as C}from"../chunks/table-export-sheet-rC5pKmXg.js";import{T as Kr,a as Yr,X as Gr,b as Qr,k as Jr,l as Zr,g as et,h as at,i as rt,o as tt,e as st,p as ot,n as lt,c as it,s as nt,j as mt,q as ut,m as ct,t as pt,w as Et,f as ft,x as Tt}from"../chunks/table-export-sheet-rC5pKmXg.js";import{m as T}from"../chunks/validators-CqV3Yka1.js";import"../chunks/matrix-operation-contract-D1RC1bfi.js";import{S as Ct,t as Rt}from"../chunks/analytics-base-schemas-BREc5WGv.js";import{FAST_PDF_POLICY as xt,PDF_CAPACITY as _t,PDF_CAPACITY_REFUSAL_CODES as Ft,PDF_NUMBER_COLUMN_TOO_WIDE as Pt,PDF_SAFETY_LIMIT_EXCEEDED as ht,PDF_TABLE_CARD_TYPES as St,getUtf8ByteLength as At,isFastPdfRequestSizeEligible as wt,isFastPdfRowCountEligible as It,isPdfCapacityRefusalCode as vt,isPdfPageCountWithinCapacity as yt,isPdfTableCardType as Dt,readPdfCapacityFacts as Mt}from"../pdf-export-policy/index.js";import{a as Nt,d as Ot}from"../chunks/filter-value-text-B3tXakhd.js";import{r as Xt}from"../chunks/metric-comparison-DEZYXROZ.js";import{P as Bt,b as $t,c as Vt,r as Ut,a as qt}from"../chunks/pivot-result-identity-DTNCB--h.js";import{c as zt,p as Ht,v as Wt}from"../chunks/raw-temporal-value-DeyEhL0S.js";function R(a,t,l){return a.columns.map((s,r)=>{var n;const o=`matrix:${r}`;if(s.kind!=="measure")return f({key:o,label:l[r],formattedValues:!0,dataType:"string",presentation:{kind:"text"}});const e=t.measureFormats.get(s.measureId);return f({key:o,label:l[r],formattedValues:!0,dataType:(n=t.measureSemantics.get(s.measureId))!=null&&n.isNumeric?"number":"string",...(e?{presentation:{kind:"measure",format:e}}:{})});});}function b(a,t,l){return t.map((s,r)=>{const o=a.values[r];return S({value:(o==null?void 0:o.kind)==="value"?o.value:null,text:s,column:l[r]});});}function A(a,t){const l=[];for(let s=0;s<t;s+=1){const r=a.columns.map(e=>e.kind!=="measure"?null:s<e.columnPath.length?`member:${T(e.columnPath.slice(0,s+1))}`:s===e.columnPath.length&&e.role!=="member"?`${e.role}:${T(e.columnPath)}`:null);let o=0;for(let e=1;e<=r.length;e+=1)e<r.length&&r[e]!==null&&r[e]===r[o]||(r[o]!==null&&e-1>o&&l.push({row:s,firstColumn:o,lastColumn:e-1}),o=e);}return l;}function O(a,t,l){const s=F(a,t,l),r=R(a,s.formatting,s.headers);return{xlsxSheet:o=>C({title:o.title,columns:r,headerRows:o.includeHeaders?s.headerBands:[],merges:o.includeHeaders?A(a,s.headerBands.length-1):[]}),xlsxRows:o=>o.map(e=>({role:e.kind==="layout"&&e.role!=="member"?"total":"body",cells:b(e,s.row(e),r)}))};}function L(a,t){const l=a.columns.map(r=>r.label),s=R(a,t,l);return{xlsxSheet:r=>C({title:r.title,columns:s,headerRows:r.includeHeaders?[l]:[]}),xlsxRows:r=>r.map(o=>({role:"body",cells:b(o,P(o,a,t),s)}))};}function p(a){if(a===null||typeof a!="object"||Array.isArray(a))return!1;const t=Object.getPrototypeOf(a);return t===null||t===Object.prototype;}function d(a,t,l){const s=new Set(t),r=Object.keys(a).find(o=>!s.has(o));if(r)throw new Error(`${l} contains unknown property "${r}"`);}function X(a,t="tableTotalsRequest"){if(!p(a))throw new Error(`${t} must be an object`);if(d(a,["source","columns"],t),a.source!=="documentFlatTable")throw new Error(`${t}.source must be documentFlatTable`);if(!Array.isArray(a.columns)||a.columns.length===0)throw new Error(`${t}.columns must be a non-empty array`);let l=0;const s=a.columns.map((e,n)=>{const i=`${t}.columns.${n}`;if(!p(e))throw new Error(`${i} must be an object`);d(e,["fieldId","role","behavior","metricAlias","label"],i);const E=typeof e.fieldId=="string"?e.fieldId.trim():"";if(!E)throw new Error(`${i}.fieldId must be a non-empty string`);if(e.role!=="detail"&&e.role!=="groupby"&&e.role!=="metric")throw new Error(`${i}.role is invalid`);const m=e.role;if(e.behavior!=="overall"&&e.behavior!=="sumOfRows"&&e.behavior!=="none"&&e.behavior!=="label")throw new Error(`${i}.behavior is invalid`);const c=e.behavior,u=typeof e.metricAlias=="string"?e.metricAlias.trim():void 0;if(e.metricAlias!==void 0&&!u)throw new Error(`${i}.metricAlias must be a non-empty string`);if(u&&m!=="metric")throw new Error(`${i}.metricAlias requires metric role`);if(c==="label"){if(l+=1,m==="metric")throw new Error(`${i}.behavior label requires a non-metric role`);}else if(m!=="metric")throw new Error(`${i}.${c} requires metric role`);if(e.label!==void 0&&typeof e.label!="string")throw new Error(`${i}.label must be a string`);return{fieldId:E,role:m,behavior:c,...(u?{metricAlias:u}:{}),...(e.label!==void 0?{label:e.label}:{})};}),r=/* @__PURE__ */new Map(),o=/* @__PURE__ */new Set();for(const e of s){if(e.metricAlias){if(o.has(e.metricAlias))throw new Error(`${t}.columns duplicates metricAlias "${e.metricAlias}"`);o.add(e.metricAlias);}const n=`${e.role}:${e.fieldId}`,i=r.get(n)??[];i.push(e),r.set(n,i);}for(const e of r.values()){if(e.length===1)continue;const{fieldId:n}=e[0];for(const i of e)if(i.role!=="metric"||!i.metricAlias)throw new Error(`${t}.columns duplicates fieldId "${n}" without distinct metricAlias values`);}if(l>1)throw new Error(`${t}.columns may contain at most one label`);return{source:"documentFlatTable",columns:s};}function k(a,t="tableTotalsByColumnId"){if(!p(a))throw new Error(`${t} must be an object`);const l={};for(const[s,r]of Object.entries(a)){if(!s.trim())throw new Error(`${t} contains an empty column id`);if(r!==null&&typeof r!="string"&&(typeof r!="number"||!Number.isFinite(r)))throw new Error(`${t}.${s} must be a string, finite number, or null`);l[s]=r;}if(Object.keys(l).length===0)throw new Error(`${t} must not be empty`);return l;}function w(a){if(typeof a=="number")return Number.isFinite(a)?a:null;if(!a.trim())return null;const t=Number(a);return Number.isFinite(t)?t:null;}function B(a){const t=a.visibleColumns.map(l=>{const r=Object.prototype.hasOwnProperty.call(a.totalsByColumnId,l)?a.totalsByColumnId[l]:l===a.labelColumnKey?"Total":null;if(r===null)return"";if(!a.useFormattedValues)return String(r);const o=x({snapshot:a.snapshot,scope:a.scope,target:{kind:"column",columnKey:l}}),e=o?w(r):null;return o&&e!==null?_(e,o):String(r);});return h(t,a.delimiter);}export{or as CSV_CONTENT_TYPE,lr as CSV_DELIMITERS,ir as CSV_ENCODINGS,nr as CSV_RECORD_SEPARATOR,mr as DEFAULT_CSV_ENCODING,U as DEFAULT_RESOLVED_TEMPORAL_STYLE_SET,q as DIRECT_CSV_EXPORT_MAX_ROWS,Da as DOCUMENT_PAGE_FIT_TOLERANCE_PX,Ma as DOCUMENT_PRINT_FAILURE_CODES,wr as EMAIL_IMAGE_DASHBOARD_WIDTH,ur as EXPORT_FILE_FORMATS,xt as FAST_PDF_POLICY,kr as FILTER_LINE_MAX_LISTED_VALUES,j as FULL_DATASET_CSV_EXPORT_MAX_ROWS,Ir as IMAGE_CAPTURE_LIMITS,z as MATRIX_EXPORT_DECODED_PART_BYTES,H as MATRIX_EXPORT_MAX_ARTIFACT_BYTES,W as MATRIX_EXPORT_MAX_CELLS,K as MATRIX_EXPORT_MAX_ENCODED_BYTES,Y as MATRIX_EXPORT_TRANSFER_BYTES,ga as MATRIX_PRINT_DEFAULT_DECIMALS,Na as MATRIX_PRINT_ORGANIZATION_DEFAULTS,G as MissingResolvedRawTemporalFormatError,_t as PDF_CAPACITY,Ft as PDF_CAPACITY_REFUSAL_CODES,Oa as PDF_GROUP_CONTINUATION_CLASS,Pt as PDF_NUMBER_COLUMN_TOO_WIDE,ht as PDF_SAFETY_LIMIT_EXCEEDED,St as PDF_TABLE_CARD_TYPES,La as PdfSafetyLimitError,Q as PivotHeaderPresentationError,Bt as PivotResultIdentityError,J as PresentationExecutionSnapshotError,vr as RENDERED_FILE_KINDS,Z as RawTemporalFormatContractError,Ct as SEMAPHOR_GENERATED_COUNT_METRIC_ID,Kr as TABLE_EXPORT_SHEET_SAMPLE_ROWS,ee as TEMPORAL_BUCKET_PATTERN_TOKENS,ae as TWELVE_HOUR_PATTERN_TOKENS,re as TemporalBucketContractError,cr as XLSX_CONTENT_TYPE,Yr as XLSX_LIMIT_FAILURE_REASONS,Gr as XlsxLimitError,Xa as applyMatrixPrintNumberDefaults,ka as applyMatrixPrintOrganization,te as assertMatrixBatchResponseSize,se as assertRawTemporalChunkClassificationAgreement,Qr as assertXlsxColumnCount,B as buildFlatTableExportTotalsFooter,Ba as buildMatrixPrintTable,$a as buildMatrixTableStructure,yr as cardImageSize,oe as classifyDeclaredSqlTemporalColumn,zt as classifyTemporalLiteral,le as createPresentationExecutionSnapshot,ie as createRawTemporalChunkClassificationEvidence,pr as csvFilePreamble,h as csvRecord,Er as csvRecords,Va as cutDatePeriod,ne as dataExportRoute,me as dateWallClock,Jr as defineTableExportSheet,C as defineXlsxSheet,ue as deriveMetricInstanceAliasExpectations,ce as describeComparison,Nt as describeConditionInFullDetail,Ua as describeDocumentPrintFailure,Ot as describeFilterValueInFullDetail,pe as describeTemporalBucketCalendar,fr as encodeCsvFile,Zr as encodeTableExportWorkbook,et as encodeXlsxFile,at as encodeXlsxRows,Tr as escapeCSVValue,Br as exportCellText,dr as exportFileFormatFromContentType,Cr as exportFileFormatFromStored,Rr as exportFileName,br as exportFileTraits,Ee as findResolvedDateFormat,x as findResolvedMeasureFormat,fe as findResolvedNumericFormat,Te as findResolvedRawTemporalFormat,de as findResolvedTemporalBucketFormat,qa as formatCanonicalComparisonRange,Ce as formatCellValue,Re as formatCurrency,be as formatDate,xe as formatDuration,_e as formatDurationCanonical,$r as formatFilterCondition,Vr as formatFilterLine,_ as formatMeasureCanonical,ja as formatMetricComparison,Fe as formatNumber,Pe as formatNumberCustom,he as formatNumberWithColumnSettings,Se as formatNumericCanonical,Ae as formatPercent,we as formatRawTemporalValue,Ie as formatRelativeTime,ve as formatRowForExport,ye as formatScientific,De as formatTemporalBucket,Me as formatTemporalInputValue,ge as fromSemanticFormat,Ne as getTimezoneAbbreviation,Oe as getTimezoneName,At as getUtf8ByteLength,za as isDocumentPrintFailureCode,wt as isFastPdfRequestSizeEligible,It as isFastPdfRowCountEligible,Le as isMeasureCanonicalFormat,Xe as isNumericCanonicalFormat,vt as isPdfCapacityRefusalCode,yt as isPdfPageCountWithinCapacity,Ha as isPdfRefusalCode,Dt as isPdfTableCardType,ke as isTemporalBucketPreset,rt as isXlsxLimitError,Be as matrixAttemptKey,$e as matrixBatchInputSchema,Ve as matrixBatchResponseSchema,Ue as matrixExportDeadlineSchema,Wa as matrixFlatCsvHeaders,Ka as matrixFlatCsvRow,P as matrixFlatRowText,qe as matrixManifestSchema,xr as parseCsvDelimiter,_r as parseCsvEncoding,Fr as parseExportFileFormat,k as parseFlatTableExportTotalsByColumnId,X as parseFlatTableExportTotalsRequest,Dr as parseImageCaptureRequest,je as parseMatrixAttemptKey,ze as parseMatrixBatchResponse,He as parseMatrixManifest,We as parseNumericCanonicalFormat,Ke as parsePresentationExecutionSnapshot,Ye as parsePresentationScope,Ge as parseRawTemporalChunkClassificationEvidence,Ht as parseRawTemporalValueMetadata,Qe as parseResolvedNumericCanonicalFormat,Je as parseResolvedPresentationEntries,Ze as parseResolvedRawTemporalFormat,ea as parseResolvedTemporalBucketFormat,Ur as parseTableExportFormatting,tt as parseTableExportSheetColumns,aa as parseTemporalBucketValue,ra as parseTemporalInputPresentation,ta as parseWithSourceTimezone,st as parseXlsxColumns,ot as parseXlsxSheet,Ya as partialPeriodEdgeNames,Ga as partialPeriodLabel,Qa as pdfCapacityRefusalLine,sa as pickColumnFormat,Mr as planImageViewport,Ja as planMatrixKeepWithPrevious,F as prepareMatrixExportPresentation,L as prepareMatrixFlatXlsxPresentation,oa as prepareMatrixFormatting,O as prepareMatrixXlsxPresentation,la as prepareRawDateColumn,ia as prepareRawTemporalFormatter,qr as prepareTableExport,na as presentPivotHeader,Pr as protectCSVText,Za as readAttachmentFilterLineValues,er as readDocumentPrintFailureFacts,ar as readDocumentPrintLayout,jr as readNamedRelativeWindow,Mt as readPdfCapacityFacts,rr as readPdfErrorResponse,gr as renderedFileName,Nr as renderedFileTraits,tr as requestStructuredPdf,$t as requirePivotHeaderMembers,Vt as requirePivotResultColumnIdentities,ma as requiresChunkedCsvExport,zr as requiresRawTemporalSqlChunkEvidence,ua as resolveApplicableTemporalBucketFormat,ca as resolveColumnFormat,hr as resolveCsvEncoding,pa as resolveCurrencyFractionDigits,Xt as resolveMetricResultAlias,Ea as resolveNumericPresentation,Ut as resolveQueryColumnKeyMapEntry,fa as resolveRawTemporalFormat,Ta as resolveTemporalBucketPresentation,da as resolveTimezone,qt as resolveUniqueQueryColumnKeyMapEntry,f as resolveXlsxColumn,lt as serializeTableExportSheetColumns,it as serializeXlsxColumns,nt as serializeXlsxSheet,Or as sheetImageEntryName,Ca as shiftTemporalBucketValue,Ra as storedRawDatePresentation,mt as streamXlsxFile,Hr as tableExportFormattingFromOptions,ut as tableExportJobSheet,ct as tableExportSheetColumns,pt as tableExportXlsxRows,ba as temporalBucketDays,xa as temporalBucketPeriod,_a as temporalBucketWallClock,Sr as toCsvCell,Rt as toStoredValueFormat,Fa as tokenizeTemporalBucketPattern,Pa as validateCardExportNumericPresentationSnapshot,ha as validateCardExportPresentationSnapshot,Sa as validateRawTemporalPattern,Wt as validateRawTemporalResultColumn,Aa as validateTemporalBucketFormatApplicability,wa as validateTemporalInputPattern,Ia as withLiveModelFormats,va as withMissingPresentationEntries,Et as withXlsxSheetColumns,Lr as writeImageCaptureRequest,ft as xlsxColumnsFingerprint,Tt as xlsxLimitFailureReason};
|