react-semaphor 0.1.603 → 0.1.605
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 -1491
- 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 +3 -1598
- package/dist/briefings/index.js +1 -70
- package/dist/chunks/add-to-dashboard-CEmZUf9o.js +12 -0
- package/dist/chunks/analytics-base-schemas-DMFrDqn_.js +1 -0
- package/dist/chunks/appearance-provider-CfoAVQuG.js +608 -0
- package/dist/chunks/appearance-runtime-provider-Bx8H-moR.js +1 -0
- package/dist/chunks/applied-constraints-CinevlKD.js +1 -0
- package/dist/chunks/assistant-chat-DgUaCE9k.js +51 -0
- package/dist/chunks/attachment-filter-line-C_zHMhGh.js +1 -0
- package/dist/chunks/attribution-BEFSsbNn.js +1 -0
- package/dist/chunks/availability-3AIOf6Z-.js +1 -0
- package/dist/chunks/bookmark-impact-BAtemeyK.js +1 -0
- package/dist/chunks/bookmark-state-DScd31KT.js +1 -0
- package/dist/chunks/brand-C9APUFaP.js +1 -0
- package/dist/chunks/card-filter-builder-ClWrXB7P.js +11 -0
- package/dist/chunks/column-bands-DwxbZ6UI.js +1 -0
- package/dist/chunks/comparison-window-caption-tguyN24S.js +1 -0
- package/dist/chunks/context-CntvtZwC.js +2 -0
- package/dist/chunks/conversation-JMK2kyTK.js +1 -0
- package/dist/chunks/dashboard-ChIcbVTx.js +1 -0
- package/dist/chunks/dashboard-briefing-launcher-CwMlhkxV.js +42 -0
- package/dist/chunks/dashboard-controls-UCSAFCGA.js +42 -0
- package/dist/chunks/dashboard-json-B120hYDa.js +1 -0
- package/dist/chunks/dashboard-temporal-snapshot-BFJKbp_6.js +1 -0
- package/dist/chunks/edit-dashboard-visual-DvHp03h_.js +73 -0
- package/dist/chunks/export-file-format-B-wQNHIn.js +4 -0
- package/dist/chunks/filter-line-WwUV5JzN.js +1 -0
- package/dist/chunks/filter-reach-preview-C5M5_hf_.js +1 -0
- package/dist/chunks/filter-value-text-DqTHe_vu.js +1 -0
- package/dist/chunks/index-DViPGDFj.js +1 -0
- package/dist/chunks/index-bkP6SnYu.js +1 -0
- package/dist/chunks/kpi-trend-rule-B87LNzcz.js +1 -0
- package/dist/chunks/layout-grid-CFzqJ7GC.js +6 -0
- package/dist/chunks/matrix-analytical-definition-5T-2euHZ.js +1 -0
- package/dist/chunks/matrix-member-presentation-vVAv-aqg.js +1 -0
- package/dist/chunks/matrix-operation-contract-CWvcEsQ0.js +1 -0
- package/dist/chunks/normalize-dashboard-for-dirty-check-ILKfqgL3.js +1 -0
- package/dist/chunks/numeric-range-options-C8tr-Bls.js +1 -0
- package/dist/chunks/palette-NvEIuXHN.js +6 -0
- package/dist/chunks/pivot-result-contract-expectations-BNWhS8mv.js +1 -0
- package/dist/chunks/pivot-result-identity-B0eWVMXg.js +1 -0
- package/dist/chunks/raw-temporal-value-BHQ-ldpW.js +1 -0
- package/dist/chunks/rendered-file-BbvwaU6z.js +1 -0
- package/dist/chunks/report-preferences-dialog-Bseb2Rlg.js +1 -0
- package/dist/chunks/report-runtime-context-Cd1b5pku.js +1 -0
- package/dist/chunks/resolve-dashboard-input-context-BDY7KwRe.js +8 -0
- package/dist/chunks/resolver-CjsW8Rz0.js +1 -0
- package/dist/chunks/saved-dashboard-context-C3lWc4Dx.js +1 -0
- package/dist/chunks/schema-O1Y3WTGF.js +4 -0
- package/dist/chunks/selection-filter-compiler-kYsRugss.js +1 -0
- package/dist/chunks/semaphor-ready-indicator-BQarSo6S.js +612 -0
- package/dist/chunks/set-6mOnfQeH.js +1 -0
- package/dist/chunks/slider-BPnHdMGq.js +4 -0
- package/dist/chunks/stored-dashboard-DfrxDLhR.js +1 -0
- package/dist/chunks/table-export-sheet-xaczzWZF.js +2 -0
- package/dist/chunks/token-types-1vzMWjI-.js +1 -0
- package/dist/chunks/validators-Dg2kyF4_.js +1 -0
- package/dist/chunks/variable-draft-B4_xqr4Y.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 -4614
- package/dist/format-utils/index.js +1 -425
- 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/brand-studio/brand-studio-draft.d.ts +45 -13
- package/dist/types/brand-studio/brand-studio-editor.d.ts +13 -2
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +17 -6
- package/dist/types/components/visual/data-table/types/data-table.d.ts +52 -42
- package/dist/types/index.js +1 -88
- package/dist/types/lib/appearance/aliases.d.ts +3 -0
- package/dist/types/lib/appearance/index.d.ts +1 -0
- package/dist/types/lib/appearance/table-density.d.ts +18 -0
- package/dist/types/lib/appearance/types.d.ts +39 -1
- package/dist/types/lib/dashboard-viewer/column-header-actions.d.ts +100 -0
- package/dist/types/lib/dashboard-viewer/table-view-edit.d.ts +0 -27
- package/dist/types/lib/dashboard-viewer/table-view.d.ts +26 -2
- package/dist/types/lib/dashboard-viewer/use-table-view.d.ts +2 -0
- package/dist/types/lib/filter-values/build-card-filter-definition.d.ts +32 -0
- package/dist/types/lib/hooks/use-add-new-frame.d.ts +7 -0
- package/dist/types/lib/hooks/use-dashboard-card.d.ts +4 -0
- package/dist/types/lib/interactions/get-click-context-from-chartjs.d.ts +8 -0
- package/dist/types/lib/query-context/dashboard-filter-mapping-resolution.d.ts +9 -0
- package/dist/types/lib/stores/dashboard-store.d.ts +14 -2
- package/dist/types/lib/stores/explorer-actions.d.ts +7 -10
- package/dist/types/lib/types/common-types.d.ts +1 -2
- package/dist/types/lib/types/semantic-types.d.ts +6 -10
- package/dist/types/lib/utils/card-config-utils.d.ts +13 -0
- package/dist/types/lib/utils/field-placement.d.ts +17 -0
- package/dist/types/lib/utils/field-state-calculator.d.ts +7 -19
- package/dist/types/shared/analytics-protocol/analytics-refusal.d.ts +21 -1
- package/dist/types/shared/analytics-protocol/field-provenance.d.ts +7 -4
- 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 +180 -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 +2 -8
- package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/column-display-values.d.ts +5 -0
- package/dist/types/shared/dashboard-authoring/card-settings/column-display.d.ts +52 -0
- package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +9 -0
- package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +4 -0
- package/dist/types/shared/dashboard-authoring/card-settings/table-viewer-switches.d.ts +15 -0
- package/dist/types/shared/dashboard-authoring/card-settings/views.d.ts +5 -0
- package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +6 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +132 -3
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +3 -1
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
- package/dist/types/shared/dashboard-authoring/conditional-formatting/store.d.ts +10 -1
- package/dist/types/shared/dashboard-authoring/field-aggregations.d.ts +9 -2
- package/dist/types/shared/dashboard-authoring/field-folders/field-folders.d.ts +116 -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 +7 -1
- package/dist/types/shared/dashboard-authoring/operations/card-operations.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +7 -2
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +6 -2
- package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/see-records/result.d.ts +7 -22
- package/dist/types/shared/dashboard-authoring/sheet-kinds.d.ts +36 -0
- package/dist/types/shared/dashboard-authoring/table-sheet-shape.d.ts +140 -0
- package/dist/types/shared/dashboard-viewer/table-column-move.d.ts +15 -0
- package/dist/types/shared/dashboard-viewer/table-settings.d.ts +8 -2
- package/dist/types/shared/format-utils/types/format-types.d.ts +1 -1
- package/dist/usage-events/index.js +1 -285
- package/dist/value-format-preferences/index.js +1 -635
- package/package.json +5 -2
- package/dist/chunks/add-to-dashboard-CFF-wFU-.js +0 -291
- package/dist/chunks/analytics-base-schemas-DsUh5Q3C.js +0 -680
- 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-B6hNQI1t.js +0 -6115
- package/dist/chunks/attribution-BvoKvhcj.js +0 -32
- package/dist/chunks/availability-Bp5Gfu1I.js +0 -44
- package/dist/chunks/bookmark-impact-Ba2PLcGp.js +0 -76
- package/dist/chunks/bookmark-state-n7AaNzR_.js +0 -1667
- package/dist/chunks/brand-BoUV0iHF.js +0 -54
- package/dist/chunks/card-filter-builder-Y22HizVx.js +0 -4069
- package/dist/chunks/column-bands-RdM-kjDe.js +0 -47
- package/dist/chunks/comparison-window-caption-Ck2TIbnR.js +0 -741
- package/dist/chunks/context-UCQ7sere.js +0 -369
- package/dist/chunks/conversation-sQiWYUOb.js +0 -16
- package/dist/chunks/dashboard-BghI99oY.js +0 -14
- package/dist/chunks/dashboard-briefing-launcher-DtBAnGiH.js +0 -4875
- package/dist/chunks/dashboard-controls-CtFXlyjV.js +0 -2290
- package/dist/chunks/dashboard-json-DfGBUtCd.js +0 -66
- package/dist/chunks/dates-BnrXF4bb.js +0 -185
- package/dist/chunks/edit-9df1zOWe.js +0 -226
- package/dist/chunks/edit-dashboard-visual-oxt3x1wb.js +0 -18397
- package/dist/chunks/export-file-format-C-tJsxsf.js +0 -111
- package/dist/chunks/filter-line-Cy5YYqRL.js +0 -703
- package/dist/chunks/filter-reach-copy-CE_ZX147.js +0 -5111
- package/dist/chunks/filter-value-text-fWvSDwkl.js +0 -153
- package/dist/chunks/index-BVKzKl5d.js +0 -90
- package/dist/chunks/index-CV_Kzou0.js +0 -595
- package/dist/chunks/index-D5rxbtS4.js +0 -2795
- package/dist/chunks/layout-grid-9LndRoLa.js +0 -16
- package/dist/chunks/matrix-analytical-definition-CCp48UCw.js +0 -1233
- package/dist/chunks/matrix-member-presentation-zNehruXR.js +0 -391
- package/dist/chunks/matrix-operation-contract-DPBj69D8.js +0 -1413
- package/dist/chunks/metric-comparison-B0FR-Q8I.js +0 -600
- package/dist/chunks/normalize-dashboard-for-dirty-check-XKgH3GFX.js +0 -119
- package/dist/chunks/paintbrush-58FQYY-y.js +0 -27
- package/dist/chunks/palette-Be62Tkoa.js +0 -23
- package/dist/chunks/pickers-DkqmtnTL.js +0 -2403
- package/dist/chunks/pivot-result-contract-expectations-BYqAmG9n.js +0 -5092
- package/dist/chunks/pivot-result-identity-CAP4--iq.js +0 -77
- package/dist/chunks/raw-temporal-value-Dg_MTFF7.js +0 -3778
- package/dist/chunks/rendered-file-D8xEuVVx.js +0 -108
- package/dist/chunks/report-preferences-dialog-uJp9GBTM.js +0 -1651
- package/dist/chunks/report-runtime-context-c77_KF9v.js +0 -388
- package/dist/chunks/resolve-dashboard-input-context-Rtl1ffmE.js +0 -25324
- package/dist/chunks/resolver-DG_tfEpt.js +0 -156
- package/dist/chunks/save-C5A0JnEV.js +0 -21
- package/dist/chunks/saved-dashboard-context-tcyTU8jm.js +0 -618
- package/dist/chunks/schema-C9NPiIru.js +0 -2568
- package/dist/chunks/selection-filter-compiler-DNijjI5y.js +0 -150
- package/dist/chunks/semaphor-ready-indicator-FBvunj6S.js +0 -145603
- package/dist/chunks/shelf-drop-preview-context-QKStrcK9.js +0 -2466
- package/dist/chunks/stored-dashboard-CHozcAY9.js +0 -4075
- package/dist/chunks/style-sheet-parts-CDCG-8Ej.js +0 -8681
- package/dist/chunks/table-export-sheet-ZFIvs6Sj.js +0 -949
- package/dist/chunks/token-types-XbM6QByy.js +0 -8
- package/dist/chunks/upload-H15d7uHK.js +0 -15
- package/dist/chunks/validators-Baf3VIf5.js +0 -3686
- package/dist/chunks/variable-draft-C2y8Jp6Z.js +0 -242
- package/dist/chunks/visual-choice-DDfHfHvY.js +0 -172
|
@@ -1,425 +1 @@
|
|
|
1
|
-
import { f as x, a as _ } from "../chunks/pivot-result-contract-expectations-BYqAmG9n.js";
|
|
2
|
-
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-BYqAmG9n.js";
|
|
3
|
-
import { p as F, m as P } from "../chunks/comparison-window-caption-Ck2TIbnR.js";
|
|
4
|
-
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-Ck2TIbnR.js";
|
|
5
|
-
import { c as h } from "../chunks/export-file-format-C-tJsxsf.js";
|
|
6
|
-
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-C-tJsxsf.js";
|
|
7
|
-
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-D8xEuVVx.js";
|
|
8
|
-
import { r as f, t as S } from "../chunks/filter-line-Cy5YYqRL.js";
|
|
9
|
-
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-Cy5YYqRL.js";
|
|
10
|
-
import { d as C } from "../chunks/table-export-sheet-ZFIvs6Sj.js";
|
|
11
|
-
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-ZFIvs6Sj.js";
|
|
12
|
-
import { m as T } from "../chunks/validators-Baf3VIf5.js";
|
|
13
|
-
import "../chunks/matrix-operation-contract-DPBj69D8.js";
|
|
14
|
-
import { S as Ct, t as Rt } from "../chunks/analytics-base-schemas-DsUh5Q3C.js";
|
|
15
|
-
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";
|
|
16
|
-
import { a as Nt, d as Ot } from "../chunks/filter-value-text-fWvSDwkl.js";
|
|
17
|
-
import { r as Xt } from "../chunks/metric-comparison-B0FR-Q8I.js";
|
|
18
|
-
import { P as Bt, b as $t, c as Vt, r as Ut, a as qt } from "../chunks/pivot-result-identity-CAP4--iq.js";
|
|
19
|
-
import { c as zt, p as Ht, v as Wt } from "../chunks/raw-temporal-value-Dg_MTFF7.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
|
-
or as CSV_CONTENT_TYPE,
|
|
203
|
-
lr as CSV_DELIMITERS,
|
|
204
|
-
ir as CSV_ENCODINGS,
|
|
205
|
-
nr as CSV_RECORD_SEPARATOR,
|
|
206
|
-
mr as DEFAULT_CSV_ENCODING,
|
|
207
|
-
U as DEFAULT_RESOLVED_TEMPORAL_STYLE_SET,
|
|
208
|
-
q as DIRECT_CSV_EXPORT_MAX_ROWS,
|
|
209
|
-
Da as DOCUMENT_PAGE_FIT_TOLERANCE_PX,
|
|
210
|
-
Ma as DOCUMENT_PRINT_FAILURE_CODES,
|
|
211
|
-
wr as EMAIL_IMAGE_DASHBOARD_WIDTH,
|
|
212
|
-
ur as EXPORT_FILE_FORMATS,
|
|
213
|
-
xt as FAST_PDF_POLICY,
|
|
214
|
-
kr as FILTER_LINE_MAX_LISTED_VALUES,
|
|
215
|
-
j as FULL_DATASET_CSV_EXPORT_MAX_ROWS,
|
|
216
|
-
Ir as IMAGE_CAPTURE_LIMITS,
|
|
217
|
-
z as MATRIX_EXPORT_DECODED_PART_BYTES,
|
|
218
|
-
H as MATRIX_EXPORT_MAX_ARTIFACT_BYTES,
|
|
219
|
-
W as MATRIX_EXPORT_MAX_CELLS,
|
|
220
|
-
K as MATRIX_EXPORT_MAX_ENCODED_BYTES,
|
|
221
|
-
Y as MATRIX_EXPORT_TRANSFER_BYTES,
|
|
222
|
-
ga as MATRIX_PRINT_DEFAULT_DECIMALS,
|
|
223
|
-
Na as MATRIX_PRINT_ORGANIZATION_DEFAULTS,
|
|
224
|
-
G as MissingResolvedRawTemporalFormatError,
|
|
225
|
-
_t as PDF_CAPACITY,
|
|
226
|
-
Ft as PDF_CAPACITY_REFUSAL_CODES,
|
|
227
|
-
Oa as PDF_GROUP_CONTINUATION_CLASS,
|
|
228
|
-
Pt as PDF_NUMBER_COLUMN_TOO_WIDE,
|
|
229
|
-
ht as PDF_SAFETY_LIMIT_EXCEEDED,
|
|
230
|
-
St as PDF_TABLE_CARD_TYPES,
|
|
231
|
-
La as PdfSafetyLimitError,
|
|
232
|
-
Q as PivotHeaderPresentationError,
|
|
233
|
-
Bt as PivotResultIdentityError,
|
|
234
|
-
J as PresentationExecutionSnapshotError,
|
|
235
|
-
vr as RENDERED_FILE_KINDS,
|
|
236
|
-
Z as RawTemporalFormatContractError,
|
|
237
|
-
Ct as SEMAPHOR_GENERATED_COUNT_METRIC_ID,
|
|
238
|
-
Kr 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
|
-
cr as XLSX_CONTENT_TYPE,
|
|
243
|
-
Yr as XLSX_LIMIT_FAILURE_REASONS,
|
|
244
|
-
Gr as XlsxLimitError,
|
|
245
|
-
Xa as applyMatrixPrintNumberDefaults,
|
|
246
|
-
ka as applyMatrixPrintOrganization,
|
|
247
|
-
te as assertMatrixBatchResponseSize,
|
|
248
|
-
se as assertRawTemporalChunkClassificationAgreement,
|
|
249
|
-
Qr as assertXlsxColumnCount,
|
|
250
|
-
B as buildFlatTableExportTotalsFooter,
|
|
251
|
-
Ba as buildMatrixPrintTable,
|
|
252
|
-
$a as buildMatrixTableStructure,
|
|
253
|
-
yr as cardImageSize,
|
|
254
|
-
oe as classifyDeclaredSqlTemporalColumn,
|
|
255
|
-
zt as classifyTemporalLiteral,
|
|
256
|
-
le as createPresentationExecutionSnapshot,
|
|
257
|
-
ie as createRawTemporalChunkClassificationEvidence,
|
|
258
|
-
pr as csvFilePreamble,
|
|
259
|
-
h as csvRecord,
|
|
260
|
-
Er as csvRecords,
|
|
261
|
-
Va as cutDatePeriod,
|
|
262
|
-
ne as dataExportRoute,
|
|
263
|
-
me as dateWallClock,
|
|
264
|
-
Jr as defineTableExportSheet,
|
|
265
|
-
C as defineXlsxSheet,
|
|
266
|
-
ue as deriveMetricInstanceAliasExpectations,
|
|
267
|
-
ce as describeComparison,
|
|
268
|
-
Nt as describeConditionInFullDetail,
|
|
269
|
-
Ua as describeDocumentPrintFailure,
|
|
270
|
-
Ot as describeFilterValueInFullDetail,
|
|
271
|
-
pe as describeTemporalBucketCalendar,
|
|
272
|
-
fr as encodeCsvFile,
|
|
273
|
-
Zr as encodeTableExportWorkbook,
|
|
274
|
-
et as encodeXlsxFile,
|
|
275
|
-
at as encodeXlsxRows,
|
|
276
|
-
Tr as escapeCSVValue,
|
|
277
|
-
Br as exportCellText,
|
|
278
|
-
dr as exportFileFormatFromContentType,
|
|
279
|
-
Cr as exportFileFormatFromStored,
|
|
280
|
-
Rr as exportFileName,
|
|
281
|
-
br as exportFileTraits,
|
|
282
|
-
Ee as findResolvedDateFormat,
|
|
283
|
-
x as findResolvedMeasureFormat,
|
|
284
|
-
fe as findResolvedNumericFormat,
|
|
285
|
-
Te as findResolvedRawTemporalFormat,
|
|
286
|
-
de as findResolvedTemporalBucketFormat,
|
|
287
|
-
qa as formatCanonicalComparisonRange,
|
|
288
|
-
Ce as formatCellValue,
|
|
289
|
-
Re as formatCurrency,
|
|
290
|
-
be as formatDate,
|
|
291
|
-
xe as formatDuration,
|
|
292
|
-
_e as formatDurationCanonical,
|
|
293
|
-
$r as formatFilterCondition,
|
|
294
|
-
Vr as formatFilterLine,
|
|
295
|
-
_ as formatMeasureCanonical,
|
|
296
|
-
ja as formatMetricComparison,
|
|
297
|
-
Fe as formatNumber,
|
|
298
|
-
Pe as formatNumberCustom,
|
|
299
|
-
he as formatNumberWithColumnSettings,
|
|
300
|
-
Se as formatNumericCanonical,
|
|
301
|
-
Ae as formatPercent,
|
|
302
|
-
we as formatRawTemporalValue,
|
|
303
|
-
Ie as formatRelativeTime,
|
|
304
|
-
ve as formatRowForExport,
|
|
305
|
-
ye as formatScientific,
|
|
306
|
-
De as formatTemporalBucket,
|
|
307
|
-
Me as formatTemporalInputValue,
|
|
308
|
-
ge as fromSemanticFormat,
|
|
309
|
-
Ne as getTimezoneAbbreviation,
|
|
310
|
-
Oe as getTimezoneName,
|
|
311
|
-
At as getUtf8ByteLength,
|
|
312
|
-
za as isDocumentPrintFailureCode,
|
|
313
|
-
wt as isFastPdfRequestSizeEligible,
|
|
314
|
-
It as isFastPdfRowCountEligible,
|
|
315
|
-
Le as isMeasureCanonicalFormat,
|
|
316
|
-
Xe as isNumericCanonicalFormat,
|
|
317
|
-
vt as isPdfCapacityRefusalCode,
|
|
318
|
-
yt as isPdfPageCountWithinCapacity,
|
|
319
|
-
Ha as isPdfRefusalCode,
|
|
320
|
-
Dt as isPdfTableCardType,
|
|
321
|
-
ke as isTemporalBucketPreset,
|
|
322
|
-
rt as isXlsxLimitError,
|
|
323
|
-
Be as matrixAttemptKey,
|
|
324
|
-
$e as matrixBatchInputSchema,
|
|
325
|
-
Ve as matrixBatchResponseSchema,
|
|
326
|
-
Ue as matrixExportDeadlineSchema,
|
|
327
|
-
Wa as matrixFlatCsvHeaders,
|
|
328
|
-
Ka as matrixFlatCsvRow,
|
|
329
|
-
P as matrixFlatRowText,
|
|
330
|
-
qe as matrixManifestSchema,
|
|
331
|
-
xr as parseCsvDelimiter,
|
|
332
|
-
_r as parseCsvEncoding,
|
|
333
|
-
Fr as parseExportFileFormat,
|
|
334
|
-
k as parseFlatTableExportTotalsByColumnId,
|
|
335
|
-
X as parseFlatTableExportTotalsRequest,
|
|
336
|
-
Dr as parseImageCaptureRequest,
|
|
337
|
-
je as parseMatrixAttemptKey,
|
|
338
|
-
ze as parseMatrixBatchResponse,
|
|
339
|
-
He as parseMatrixManifest,
|
|
340
|
-
We as parseNumericCanonicalFormat,
|
|
341
|
-
Ke as parsePresentationExecutionSnapshot,
|
|
342
|
-
Ye as parsePresentationScope,
|
|
343
|
-
Ge as parseRawTemporalChunkClassificationEvidence,
|
|
344
|
-
Ht as parseRawTemporalValueMetadata,
|
|
345
|
-
Qe as parseResolvedNumericCanonicalFormat,
|
|
346
|
-
Je as parseResolvedPresentationEntries,
|
|
347
|
-
Ze as parseResolvedRawTemporalFormat,
|
|
348
|
-
ea as parseResolvedTemporalBucketFormat,
|
|
349
|
-
Ur as parseTableExportFormatting,
|
|
350
|
-
tt as parseTableExportSheetColumns,
|
|
351
|
-
aa as parseTemporalBucketValue,
|
|
352
|
-
ra as parseTemporalInputPresentation,
|
|
353
|
-
ta as parseWithSourceTimezone,
|
|
354
|
-
st as parseXlsxColumns,
|
|
355
|
-
ot as parseXlsxSheet,
|
|
356
|
-
Ya as partialPeriodEdgeNames,
|
|
357
|
-
Ga as partialPeriodLabel,
|
|
358
|
-
Qa as pdfCapacityRefusalLine,
|
|
359
|
-
sa as pickColumnFormat,
|
|
360
|
-
Mr as planImageViewport,
|
|
361
|
-
Ja as planMatrixKeepWithPrevious,
|
|
362
|
-
F as prepareMatrixExportPresentation,
|
|
363
|
-
L as prepareMatrixFlatXlsxPresentation,
|
|
364
|
-
oa as prepareMatrixFormatting,
|
|
365
|
-
O as prepareMatrixXlsxPresentation,
|
|
366
|
-
la as prepareRawDateColumn,
|
|
367
|
-
ia as prepareRawTemporalFormatter,
|
|
368
|
-
qr as prepareTableExport,
|
|
369
|
-
na as presentPivotHeader,
|
|
370
|
-
Pr as protectCSVText,
|
|
371
|
-
Za as readAttachmentFilterLineValues,
|
|
372
|
-
er as readDocumentPrintFailureFacts,
|
|
373
|
-
ar as readDocumentPrintLayout,
|
|
374
|
-
jr as readNamedRelativeWindow,
|
|
375
|
-
Mt as readPdfCapacityFacts,
|
|
376
|
-
rr as readPdfErrorResponse,
|
|
377
|
-
gr as renderedFileName,
|
|
378
|
-
Nr as renderedFileTraits,
|
|
379
|
-
tr as requestStructuredPdf,
|
|
380
|
-
$t as requirePivotHeaderMembers,
|
|
381
|
-
Vt as requirePivotResultColumnIdentities,
|
|
382
|
-
ma as requiresChunkedCsvExport,
|
|
383
|
-
zr as requiresRawTemporalSqlChunkEvidence,
|
|
384
|
-
ua as resolveApplicableTemporalBucketFormat,
|
|
385
|
-
ca as resolveColumnFormat,
|
|
386
|
-
hr as resolveCsvEncoding,
|
|
387
|
-
pa as resolveCurrencyFractionDigits,
|
|
388
|
-
Xt as resolveMetricResultAlias,
|
|
389
|
-
Ea as resolveNumericPresentation,
|
|
390
|
-
Ut as resolveQueryColumnKeyMapEntry,
|
|
391
|
-
fa as resolveRawTemporalFormat,
|
|
392
|
-
Ta as resolveTemporalBucketPresentation,
|
|
393
|
-
da as resolveTimezone,
|
|
394
|
-
qt as resolveUniqueQueryColumnKeyMapEntry,
|
|
395
|
-
f as resolveXlsxColumn,
|
|
396
|
-
lt as serializeTableExportSheetColumns,
|
|
397
|
-
it as serializeXlsxColumns,
|
|
398
|
-
nt as serializeXlsxSheet,
|
|
399
|
-
Or as sheetImageEntryName,
|
|
400
|
-
Ca as shiftTemporalBucketValue,
|
|
401
|
-
Ra as storedRawDatePresentation,
|
|
402
|
-
mt as streamXlsxFile,
|
|
403
|
-
Hr as tableExportFormattingFromOptions,
|
|
404
|
-
ut as tableExportJobSheet,
|
|
405
|
-
ct as tableExportSheetColumns,
|
|
406
|
-
pt as tableExportXlsxRows,
|
|
407
|
-
ba as temporalBucketDays,
|
|
408
|
-
xa as temporalBucketPeriod,
|
|
409
|
-
_a as temporalBucketWallClock,
|
|
410
|
-
Sr as toCsvCell,
|
|
411
|
-
Rt as toStoredValueFormat,
|
|
412
|
-
Fa as tokenizeTemporalBucketPattern,
|
|
413
|
-
Pa as validateCardExportNumericPresentationSnapshot,
|
|
414
|
-
ha as validateCardExportPresentationSnapshot,
|
|
415
|
-
Sa as validateRawTemporalPattern,
|
|
416
|
-
Wt as validateRawTemporalResultColumn,
|
|
417
|
-
Aa as validateTemporalBucketFormatApplicability,
|
|
418
|
-
wa as validateTemporalInputPattern,
|
|
419
|
-
Ia as withLiveModelFormats,
|
|
420
|
-
va as withMissingPresentationEntries,
|
|
421
|
-
Et as withXlsxSheetColumns,
|
|
422
|
-
Lr as writeImageCaptureRequest,
|
|
423
|
-
ft as xlsxColumnsFingerprint,
|
|
424
|
-
Tt as xlsxLimitFailureReason
|
|
425
|
-
};
|
|
1
|
+
import{f as x,a as _}from"../chunks/pivot-result-contract-expectations-BNWhS8mv.js";import{af as V,D as U,F as q,I as j,C as H,M as W,B as z,H as K,_ as Y,aF as G,Z as Q,ar as J,a9 as Z,aa as ee,ag as ae,P as re,ax as te,au as se,a2 as oe,av as le,G as ie,t as ne,aH as me,d as ue,al as ce,a5 as pe,a4 as Ee,a6 as fe,a7 as Te,z as de,g as Ce,q as Re,n as be,o as xe,e as _e,m as Fe,l as Pe,k as he,h as Se,aA as Ae,s as we,A as Ie,j as ve,ap as ye,aE as De,b as Me,v as ge,x as Ne,c as Oe,i as Le,ab as Xe,L as ke,N as Be,O as $e,J as Ve,R as Ue,K as qe,Q as je,S as He,U as We,a1 as ze,$ as Ke,aw as Ye,V as Ge,a0 as Qe,as as Je,am as Ze,ah as ea,aC as aa,y as ra,p as ta,T as sa,aB as oa,az as la,aG as ia,E as na,ae as ma,r as ua,X as ca,Y as pa,at as Ea,an as fa,u as Ta,ai as da,aq as Ca,ak as Ra,aj as ba,ao as xa,ac as _a,W as Fa,a8 as Pa,ay as ha,ad as Sa,aD as Aa,w as wa,a3 as Ia}from"../chunks/pivot-result-contract-expectations-BNWhS8mv.js";import{P as ya,c as Da,f as Ma,a as ga,i as Na,e as Oa,d as La,p as Xa,r as ka,b as Ba}from"../chunks/comparison-window-caption-tguyN24S.js";import{c as F}from"../chunks/export-file-format-B-wQNHIn.js";import{d as Va,a as Ua,C as qa,b as ja,D as Ha,E as Wa,X as za,f as Ka,i as Ya,j as Ga,g as Qa,n as Ja,m as Za,o as er,l as ar,e as rr,p as tr,k as sr,h as or,r as lr,t as ir}from"../chunks/export-file-format-B-wQNHIn.js";import{E as mr,I as ur,R as cr,c as pr,p as Er,a as fr,b as Tr,r as dr,s as Cr,w as Rr}from"../chunks/rendered-file-BbvwaU6z.js";import{r as f,t as P}from"../chunks/filter-line-WwUV5JzN.js";import{F as xr,e as _r,f as Fr,g as Pr,a as hr,p as Sr,d as Ar,c as wr,b as Ir}from"../chunks/filter-line-WwUV5JzN.js";import{d as C}from"../chunks/table-export-sheet-xaczzWZF.js";import{T as yr,a as Dr,X as Mr,b as gr,k as Nr,l as Or,g as Lr,h as Xr,i as kr,o as Br,e as $r,p as Vr,n as Ur,c as qr,s as jr,j as Hr,q as Wr,m as zr,t as Kr,w as Yr,f as Gr,x as Qr}from"../chunks/table-export-sheet-xaczzWZF.js";import{p as h,m as S}from"../chunks/attachment-filter-line-C_zHMhGh.js";import{D as Zr,i as et,f as at,M as rt,P as tt,g as st,e as ot,d as lt,c as it,k as nt,j as mt,a as ut,b as ct,h as pt,n as Et,r as ft,l as Tt}from"../chunks/attachment-filter-line-C_zHMhGh.js";import{m as T}from"../chunks/validators-Dg2kyF4_.js";import{r as Ct}from"../chunks/matrix-operation-contract-CWvcEsQ0.js";import{S as bt,t as xt}from"../chunks/analytics-base-schemas-DMFrDqn_.js";import{FAST_PDF_POLICY as Ft,PDF_CAPACITY as Pt,PDF_CAPACITY_REFUSAL_CODES as ht,PDF_NUMBER_COLUMN_TOO_WIDE as St,PDF_SAFETY_LIMIT_EXCEEDED as At,PDF_TABLE_CARD_TYPES as wt,getUtf8ByteLength as It,isFastPdfRequestSizeEligible as vt,isFastPdfRowCountEligible as yt,isPdfCapacityRefusalCode as Dt,isPdfPageCountWithinCapacity as Mt,isPdfTableCardType as gt,readPdfCapacityFacts as Nt}from"../pdf-export-policy/index.js";import{a as Lt,d as Xt}from"../chunks/filter-value-text-DqTHe_vu.js";import{P as Bt,b as $t,c as Vt,r as Ut,a as qt}from"../chunks/pivot-result-identity-B0eWVMXg.js";import{c as Ht,p as Wt,v as zt}from"../chunks/raw-temporal-value-BHQ-ldpW.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 P({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 N(a,t,l){const s=h(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 O(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,S(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 L(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 X(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 k(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 F(t,a.delimiter);}export{Va as CSV_CONTENT_TYPE,Ua as CSV_DELIMITERS,qa as CSV_ENCODINGS,ja as CSV_RECORD_SEPARATOR,Ha as DEFAULT_CSV_ENCODING,V as DEFAULT_RESOLVED_TEMPORAL_STYLE_SET,U as DIRECT_CSV_EXPORT_MAX_ROWS,Zr as DOCUMENT_PAGE_FIT_TOLERANCE_PX,et as DOCUMENT_PRINT_FAILURE_CODES,mr as EMAIL_IMAGE_DASHBOARD_WIDTH,Wa as EXPORT_FILE_FORMATS,Ft as FAST_PDF_POLICY,xr as FILTER_LINE_MAX_LISTED_VALUES,q as FULL_DATASET_CSV_EXPORT_MAX_ROWS,ur as IMAGE_CAPTURE_LIMITS,j as MATRIX_EXPORT_DECODED_PART_BYTES,H as MATRIX_EXPORT_MAX_ARTIFACT_BYTES,W as MATRIX_EXPORT_MAX_CELLS,z as MATRIX_EXPORT_MAX_ENCODED_BYTES,K as MATRIX_EXPORT_TRANSFER_BYTES,at as MATRIX_PRINT_DEFAULT_DECIMALS,rt as MATRIX_PRINT_ORGANIZATION_DEFAULTS,Y as MissingResolvedRawTemporalFormatError,Pt as PDF_CAPACITY,ht as PDF_CAPACITY_REFUSAL_CODES,tt as PDF_GROUP_CONTINUATION_CLASS,St as PDF_NUMBER_COLUMN_TOO_WIDE,At as PDF_SAFETY_LIMIT_EXCEEDED,wt as PDF_TABLE_CARD_TYPES,ya as PdfSafetyLimitError,G as PivotHeaderPresentationError,Bt as PivotResultIdentityError,Q as PresentationExecutionSnapshotError,cr as RENDERED_FILE_KINDS,J as RawTemporalFormatContractError,bt as SEMAPHOR_GENERATED_COUNT_METRIC_ID,yr as TABLE_EXPORT_SHEET_SAMPLE_ROWS,Z as TEMPORAL_BUCKET_PATTERN_TOKENS,ee as TWELVE_HOUR_PATTERN_TOKENS,ae as TemporalBucketContractError,za as XLSX_CONTENT_TYPE,Dr as XLSX_LIMIT_FAILURE_REASONS,Mr as XlsxLimitError,st as applyMatrixPrintNumberDefaults,ot as applyMatrixPrintOrganization,re as assertMatrixBatchResponseSize,te as assertRawTemporalChunkClassificationAgreement,gr as assertXlsxColumnCount,k as buildFlatTableExportTotalsFooter,lt as buildMatrixPrintTable,it as buildMatrixTableStructure,pr as cardImageSize,se as classifyDeclaredSqlTemporalColumn,Ht as classifyTemporalLiteral,oe as createPresentationExecutionSnapshot,le as createRawTemporalChunkClassificationEvidence,Ka as csvFilePreamble,F as csvRecord,Ya as csvRecords,Da as cutDatePeriod,ie as dataExportRoute,ne as dateWallClock,Nr as defineTableExportSheet,C as defineXlsxSheet,me as deriveMetricInstanceAliasExpectations,ue as describeComparison,Lt as describeConditionInFullDetail,nt as describeDocumentPrintFailure,Xt as describeFilterValueInFullDetail,ce as describeTemporalBucketCalendar,Ga as encodeCsvFile,Or as encodeTableExportWorkbook,Lr as encodeXlsxFile,Xr as encodeXlsxRows,Qa as escapeCSVValue,_r as exportCellText,Ja as exportFileFormatFromContentType,Za as exportFileFormatFromStored,er as exportFileName,ar as exportFileTraits,pe as findResolvedDateFormat,x as findResolvedMeasureFormat,Ee as findResolvedNumericFormat,fe as findResolvedRawTemporalFormat,Te as findResolvedTemporalBucketFormat,Ma as formatCanonicalComparisonRange,de as formatCellValue,Ce as formatCurrency,Re as formatDate,be as formatDuration,xe as formatDurationCanonical,Fr as formatFilterCondition,Pr as formatFilterLine,_ as formatMeasureCanonical,ga as formatMetricComparison,_e as formatNumber,Fe as formatNumberCustom,Pe as formatNumberWithColumnSettings,he as formatNumericCanonical,Se as formatPercent,Ae as formatRawTemporalValue,we as formatRelativeTime,Ie as formatRowForExport,ve as formatScientific,ye as formatTemporalBucket,De as formatTemporalInputValue,Me as fromSemanticFormat,ge as getTimezoneAbbreviation,Ne as getTimezoneName,It as getUtf8ByteLength,mt as isDocumentPrintFailureCode,vt as isFastPdfRequestSizeEligible,yt as isFastPdfRowCountEligible,Oe as isMeasureCanonicalFormat,Le as isNumericCanonicalFormat,Dt as isPdfCapacityRefusalCode,Mt as isPdfPageCountWithinCapacity,Na as isPdfRefusalCode,gt as isPdfTableCardType,Xe as isTemporalBucketPreset,kr as isXlsxLimitError,ke as matrixAttemptKey,Be as matrixBatchInputSchema,$e as matrixBatchResponseSchema,Ve as matrixExportDeadlineSchema,ut as matrixFlatCsvHeaders,ct as matrixFlatCsvRow,S as matrixFlatRowText,Ue as matrixManifestSchema,rr as parseCsvDelimiter,tr as parseCsvEncoding,sr as parseExportFileFormat,X as parseFlatTableExportTotalsByColumnId,L as parseFlatTableExportTotalsRequest,Er as parseImageCaptureRequest,qe as parseMatrixAttemptKey,je as parseMatrixBatchResponse,He as parseMatrixManifest,We as parseNumericCanonicalFormat,ze as parsePresentationExecutionSnapshot,Ke as parsePresentationScope,Ye as parseRawTemporalChunkClassificationEvidence,Wt as parseRawTemporalValueMetadata,Ge as parseResolvedNumericCanonicalFormat,Qe as parseResolvedPresentationEntries,Je as parseResolvedRawTemporalFormat,Ze as parseResolvedTemporalBucketFormat,hr as parseTableExportFormatting,Br as parseTableExportSheetColumns,ea as parseTemporalBucketValue,aa as parseTemporalInputPresentation,ra as parseWithSourceTimezone,$r as parseXlsxColumns,Vr as parseXlsxSheet,Oa as partialPeriodEdgeNames,La as partialPeriodLabel,Xa as pdfCapacityRefusalLine,ta as pickColumnFormat,fr as planImageViewport,pt as planMatrixKeepWithPrevious,h as prepareMatrixExportPresentation,O as prepareMatrixFlatXlsxPresentation,sa as prepareMatrixFormatting,N as prepareMatrixXlsxPresentation,oa as prepareRawDateColumn,la as prepareRawTemporalFormatter,Sr as prepareTableExport,ia as presentPivotHeader,or as protectCSVText,Et as readAttachmentFilterLineValues,ft as readDocumentPrintFailureFacts,Tt as readDocumentPrintLayout,Ar as readNamedRelativeWindow,Nt as readPdfCapacityFacts,ka as readPdfErrorResponse,Tr as renderedFileName,dr as renderedFileTraits,Ba as requestStructuredPdf,$t as requirePivotHeaderMembers,Vt as requirePivotResultColumnIdentities,na as requiresChunkedCsvExport,wr as requiresRawTemporalSqlChunkEvidence,ma as resolveApplicableTemporalBucketFormat,ua as resolveColumnFormat,lr as resolveCsvEncoding,ca as resolveCurrencyFractionDigits,Ct as resolveMetricResultAlias,pa as resolveNumericPresentation,Ut as resolveQueryColumnKeyMapEntry,Ea as resolveRawTemporalFormat,fa as resolveTemporalBucketPresentation,Ta as resolveTimezone,qt as resolveUniqueQueryColumnKeyMapEntry,f as resolveXlsxColumn,Ur as serializeTableExportSheetColumns,qr as serializeXlsxColumns,jr as serializeXlsxSheet,Cr as sheetImageEntryName,da as shiftTemporalBucketValue,Ca as storedRawDatePresentation,Hr as streamXlsxFile,Ir as tableExportFormattingFromOptions,Wr as tableExportJobSheet,zr as tableExportSheetColumns,Kr as tableExportXlsxRows,Ra as temporalBucketDays,ba as temporalBucketPeriod,xa as temporalBucketWallClock,ir as toCsvCell,xt as toStoredValueFormat,_a as tokenizeTemporalBucketPattern,Fa as validateCardExportNumericPresentationSnapshot,Pa as validateCardExportPresentationSnapshot,ha as validateRawTemporalPattern,zt as validateRawTemporalResultColumn,Sa as validateTemporalBucketFormatApplicability,Aa as validateTemporalInputPattern,wa as withLiveModelFormats,Ia as withMissingPresentationEntries,Yr as withXlsxSheetColumns,Rr as writeImageCaptureRequest,Gr as xlsxColumnsFingerprint,Qr as xlsxLimitFailureReason};
|