react-semaphor 0.1.507 → 0.1.509
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/DATA_APP_SDK.md +56 -0
- package/dist/analytics-protocol/index.cjs +1 -1
- package/dist/analytics-protocol/index.js +194 -172
- package/dist/appearance/index.cjs +1 -1
- package/dist/appearance/index.js +1 -1
- package/dist/appearance-runtime/index.cjs +1 -1
- package/dist/appearance-runtime/index.js +1 -1
- package/dist/brand-studio/index.cjs +2 -2
- package/dist/brand-studio/index.js +279 -250
- package/dist/briefings/index.cjs +1 -1
- package/dist/briefings/index.js +3 -3
- package/dist/chunks/appearance-context-DzqCdhB4.cjs +1 -0
- package/dist/chunks/{appearance-context-XviHOhWJ.js → appearance-context-VJdrKi7r.js} +2 -1
- package/dist/chunks/{appearance-runtime-provider-D0xVQWnH.js → appearance-runtime-provider-CC4HT2Gi.js} +2 -2
- package/dist/chunks/{appearance-runtime-provider-Ca8rxO86.cjs → appearance-runtime-provider-D5pkvgE4.cjs} +1 -1
- package/dist/chunks/calculated-field-identity-BiTGmnST.cjs +1 -0
- package/dist/chunks/calculated-field-identity-CJL54uFx.js +1373 -0
- package/dist/chunks/{constants-NUleP4DY.js → card-config-utils-Bq1enstT.js} +260 -260
- package/dist/chunks/card-config-utils-CMO4_zVs.cjs +1 -0
- package/dist/chunks/{dashboard-briefing-launcher-DXTpU85p.js → dashboard-briefing-launcher-B5AQu-Vb.js} +12 -12
- package/dist/chunks/{dashboard-briefing-launcher-C8nDSDnV.cjs → dashboard-briefing-launcher-BoXFrqq0.cjs} +1 -1
- package/dist/chunks/{dashboard-controls-CyL0yimg.js → dashboard-controls-CKKkSXEX.js} +16 -14
- package/dist/chunks/dashboard-controls-gUVkQm8o.cjs +52 -0
- package/dist/chunks/dashboard-json-B7fSi6_b.cjs +1 -0
- package/dist/chunks/{dashboard-json-5Jr3RudV.js → dashboard-json-CAJJquVx.js} +9 -9
- package/dist/chunks/edit-dashboard-visual-AZetLUv1.cjs +172 -0
- package/dist/chunks/{edit-dashboard-visual-C7X-um9g.js → edit-dashboard-visual-DCnbqRRn.js} +1986 -1990
- package/dist/chunks/{editor-action-buttons-CcDm8nA5.cjs → editor-action-buttons-CBQsVYdt.cjs} +2 -2
- package/dist/chunks/{editor-action-buttons-C5Wja_J4.js → editor-action-buttons-DDA5JGwO.js} +6 -6
- package/dist/chunks/field-aggregations-DUb0NU6c.js +1229 -0
- package/dist/chunks/field-aggregations-jSi77h9Z.cjs +1 -0
- package/dist/chunks/{field-dependencies-DVl2p1Nm.js → field-dependencies-Cl97kkHy.js} +30 -34
- package/dist/chunks/{field-dependencies-r_U0CGQ-.cjs → field-dependencies-DIab72rQ.cjs} +1 -1
- package/dist/chunks/{index-BVr4fcCB.js → index-0pdaQ9e1.js} +5 -5
- package/dist/chunks/{index-De2QNsqV.js → index-CL2lvhwk.js} +47783 -46019
- package/dist/chunks/{index-C9KXfCkC.js → index-CLIro-EG.js} +3 -0
- package/dist/chunks/index-Cx3qmRUB.cjs +1 -0
- package/dist/chunks/{index-BlYf8gNa.cjs → index-DhlVxvyI.cjs} +1 -1
- package/dist/chunks/index-DkEAikW8.cjs +1420 -0
- package/dist/chunks/{matrix-card-DACDwdTq.js → matrix-card-CnKQpnsj.js} +1 -1
- package/dist/chunks/{matrix-card-CRXcmAjp.cjs → matrix-card-U4c72doZ.cjs} +1 -1
- package/dist/chunks/{matrix-control-sources-ClQzIk7E.js → matrix-control-sources-CRRdP03Q.js} +165 -134
- package/dist/chunks/matrix-control-sources-FjxGIbqk.cjs +1 -0
- package/dist/chunks/{matrix-formatter-7GLTcBuy.cjs → matrix-formatter-CveLJo6S.cjs} +1 -1
- package/dist/chunks/{matrix-formatter-xsq7n_e6.js → matrix-formatter-ZVS5QOuq.js} +2 -2
- package/dist/chunks/matrix-member-presentation-CFHjdrxT.cjs +1 -0
- package/dist/chunks/matrix-member-presentation-CzGZJd3a.js +182 -0
- package/dist/chunks/matrix-operation-contract-DoiWTUbT.cjs +1 -0
- package/dist/chunks/matrix-operation-contract-xL8IhFzp.js +1802 -0
- package/dist/chunks/{pivot-header-presentation-3wqWChFd.cjs → pivot-header-presentation-Cxz8-06f.cjs} +1 -1
- package/dist/chunks/{pivot-header-presentation-D44ODZGn.js → pivot-header-presentation-DVylCBHB.js} +2 -2
- package/dist/chunks/{pivot-result-lifecycle-DZ0ZSMoM.cjs → pivot-result-lifecycle-BiERyXnS.cjs} +1 -1
- package/dist/chunks/{pivot-result-lifecycle-BSmqVkVG.js → pivot-result-lifecycle-CmjpW7qG.js} +1 -1
- package/dist/chunks/{report-preferences-dialog-xADifRXs.js → report-preferences-dialog-Bv2VIOKc.js} +4 -4
- package/dist/chunks/report-preferences-dialog-Wg9g9fIj.cjs +1 -0
- package/dist/chunks/{search-BHsQIWBV.js → selection-reducer-B94WgZ9V.js} +55 -11
- package/dist/chunks/selection-reducer-CGKKsaPa.cjs +26 -0
- package/dist/chunks/{semantic-format-BhIL1PXP.cjs → semantic-format-BzH69TRq.cjs} +1 -1
- package/dist/chunks/{semantic-format-C3amkGmY.js → semantic-format-CBlRO8Aw.js} +1 -1
- package/dist/chunks/{switch-DHGiC0aU.js → switch-CD4uGTZI.js} +7450 -7694
- package/dist/chunks/switch-iC1x2dcE.cjs +134 -0
- package/dist/chunks/token-types-Ahh5u4iT.cjs +1 -0
- package/dist/chunks/token-types-CPde8_LG.js +8 -0
- package/dist/chunks/{update-policy-Cc9h57pA.cjs → update-policy-COjFudhl.cjs} +1 -1
- package/dist/chunks/{update-policy-eTcz52jO.js → update-policy-D9q1Tz8k.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.cjs +3 -3
- package/dist/dashboard-authoring/index.js +734 -622
- package/dist/data-app-builder/index.cjs +1 -1
- package/dist/data-app-builder/index.js +3 -3
- package/dist/data-app-codegen/index.cjs +1 -1
- package/dist/data-app-codegen/index.js +2 -2
- package/dist/data-app-codegen-node/index.cjs +94 -92
- package/dist/data-app-codegen-node/index.js +337 -333
- package/dist/data-app-sdk/index.cjs +9 -9
- package/dist/data-app-sdk/index.js +1091 -969
- package/dist/data-app-sdk-adapters/index.cjs +1 -1
- package/dist/data-app-sdk-adapters/index.js +104 -96
- package/dist/data-app-sdk-validation/index.cjs +1 -1
- package/dist/data-app-sdk-validation/index.js +2 -2
- package/dist/format-utils/index.cjs +1 -1
- package/dist/format-utils/index.js +8 -8
- package/dist/index.cjs +1 -1
- package/dist/index.js +15 -15
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/brand-studio/brand-studio-draft.d.ts +3 -1
- package/dist/types/components/dashboard/card-selection-pill.d.ts +5 -0
- package/dist/types/components/dashboard/dashboard-container.d.ts +1 -1
- package/dist/types/components/dashboard/drill-breadcrumb.d.ts +1 -0
- package/dist/types/components/dashboard/drill-navigation-controls.d.ts +3 -3
- package/dist/types/components/interactions/applied-filters-display.d.ts +6 -1
- package/dist/types/components/interactions/click-to-filter-review-dialog.d.ts +21 -0
- package/dist/types/components/interactions/dashboard-drill-host.d.ts +13 -0
- package/dist/types/components/interactions/filter-badge-tooltip.d.ts +4 -4
- package/dist/types/components/interactions/insight-modal.d.ts +4 -14
- package/dist/types/components/interactions/insight-viewer.d.ts +7 -19
- package/dist/types/components/interactions/interactions-sheet.d.ts +6 -0
- package/dist/types/components/interactions/panels/click-to-filter-panel.d.ts +20 -0
- package/dist/types/components/interactions/reusable/interaction-selection-popover.d.ts +2 -2
- package/dist/types/components/interactions/sheet/action-editor.d.ts +17 -0
- package/dist/types/components/interactions/sheet/action-meta.d.ts +45 -0
- package/dist/types/components/interactions/sheet/action-picker.d.ts +7 -0
- package/dist/types/components/interactions/sheet/click-outcome-preview.d.ts +10 -0
- package/dist/types/components/interactions/sheet/interactions-home.d.ts +28 -0
- package/dist/types/components/interactions/sheet/sheet-parts.d.ts +37 -0
- package/dist/types/components/surfboard/filter/dashboard-filter-mapping-panel.d.ts +28 -1
- package/dist/types/components/surfboard/filter/selection-chip.d.ts +11 -0
- package/dist/types/components/surfboard/filter/selection-filter-section.d.ts +4 -0
- package/dist/types/components/surfboard/filter/use-dashboard-filter-mapping-popover.d.ts +3 -0
- package/dist/types/components/ui/resizable.d.ts +1 -1
- package/dist/types/components/visual/matrix-table/matrix-interaction-actions.d.ts +24 -3
- package/dist/types/components/visual/matrix-table/matrix-selection-click.d.ts +6 -0
- package/dist/types/components/visual/matrix-table/matrix-window-viewer.d.ts +1 -1
- package/dist/types/data-app-sdk/adapters.d.ts +3 -2
- package/dist/types/data-app-sdk/builders.d.ts +2 -1
- package/dist/types/data-app-sdk/contracts.d.ts +44 -2
- package/dist/types/data-app-sdk/index.d.ts +1 -0
- package/dist/types/data-app-sdk/query-request.d.ts +7 -2
- package/dist/types/data-app-sdk/selection.d.ts +2 -0
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.js +24 -23
- package/dist/types/lib/appearance/types.d.ts +3 -1
- package/dist/types/lib/briefings/briefing-attachment-model.d.ts +0 -2
- package/dist/types/lib/contexts/interactions-popover-context.d.ts +1 -8
- package/dist/types/lib/dashboard/click-to-filter-card-references.d.ts +23 -0
- package/dist/types/lib/dashboard-inputs/build-normalized-dashboard-inputs.d.ts +16 -2
- package/dist/types/lib/dashboard-inputs/build-selection-dashboard-inputs.d.ts +31 -0
- package/dist/types/lib/dashboard-inputs/click-to-filter-emitted-fields.d.ts +17 -0
- package/dist/types/lib/dashboard-inputs/click-to-filter-mapping-draft.d.ts +99 -0
- package/dist/types/lib/dashboard-inputs/click-to-filter-sheet-reach.d.ts +12 -0
- package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-authoring.d.ts +18 -1
- package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-candidate-metadata.d.ts +4 -1
- package/dist/types/lib/dashboard-inputs/dashboard-input-scope.d.ts +10 -0
- package/dist/types/lib/dashboard-inputs/dashboard-input-snapshot.d.ts +8 -1
- package/dist/types/lib/dashboard-inputs/index.d.ts +1 -0
- package/dist/types/lib/dashboard-inputs/resolve-dashboard-input-context.d.ts +18 -7
- package/dist/types/lib/dashboard-inputs/resolve-field-date-comparison-coverage.d.ts +5 -2
- package/dist/types/lib/dashboard-inputs/resolve-selection-input.d.ts +77 -0
- package/dist/types/lib/dashboard-inputs/selection-targets.d.ts +26 -0
- package/dist/types/lib/dashboard-inputs/transient-input-context.d.ts +102 -0
- package/dist/types/lib/dashboard-navigation/build-carried-click-context.d.ts +50 -0
- package/dist/types/lib/dashboard-navigation/describe-carried-context.d.ts +11 -0
- package/dist/types/lib/dashboard-navigation/index.d.ts +1 -0
- package/dist/types/lib/dashboard-navigation/navigation-state.d.ts +120 -0
- package/dist/types/lib/dashboard-navigation/run-one-off-drill.d.ts +11 -0
- package/dist/types/lib/dashboard-navigation/use-transient-contexts.d.ts +17 -0
- package/dist/types/lib/dashboard-view-state/card-view-state.d.ts +48 -0
- package/dist/types/lib/dashboard-view-state/drill-path.d.ts +20 -0
- package/dist/types/lib/dashboard-view-state/index.d.ts +2 -0
- package/dist/types/lib/download-pdf.d.ts +0 -3
- package/dist/types/lib/formatters/metric-formatting.d.ts +1 -1
- package/dist/types/lib/hooks/ai/dashboard-context.d.ts +15 -8
- package/dist/types/lib/hooks/chartjs/use-chart-blur.d.ts +10 -2
- package/dist/types/lib/hooks/interactions/{use-event-engine.d.ts → use-drill-actions.d.ts} +28 -7
- package/dist/types/lib/hooks/selection/use-active-selections.d.ts +15 -0
- package/dist/types/lib/hooks/selection/use-click-to-filter-mapping-draft.d.ts +20 -0
- package/dist/types/lib/hooks/selection/use-selection-click.d.ts +34 -0
- package/dist/types/lib/hooks/selection/use-selection-gestures.d.ts +38 -0
- package/dist/types/lib/hooks/selection/use-table-row-selection.d.ts +46 -0
- package/dist/types/lib/hooks/use-dashboard-card.d.ts +0 -2
- package/dist/types/lib/hooks/use-dashboard-filter-mapping-candidates.d.ts +18 -0
- package/dist/types/lib/hooks/use-dashboard-frame-query.d.ts +0 -1
- package/dist/types/lib/hooks/use-dashboard.d.ts +1 -3
- package/dist/types/lib/hooks/use-interactions-popover.d.ts +1 -8
- package/dist/types/lib/hooks/use-resolved-card-config.d.ts +6 -0
- package/dist/types/lib/interactions/click-outcome.d.ts +25 -0
- package/dist/types/lib/interactions/get-click-context-from-chartjs.d.ts +3 -1
- package/dist/types/lib/interactions/get-click-context-from-matrix.d.ts +1 -1
- package/dist/types/lib/interactions/get-click-context-from-table.d.ts +7 -0
- package/dist/types/lib/interactions/interaction-utils.d.ts +17 -1
- package/dist/types/lib/matrix-table/build-matrix-drill-to-detail.d.ts +15 -0
- package/dist/types/lib/matrix-table/matrix-card-interactions.d.ts +14 -3
- package/dist/types/lib/matrix-table/matrix-runtime-types.d.ts +0 -3
- package/dist/types/lib/matrix-table/matrix-runtime.d.ts +0 -4
- package/dist/types/lib/matrix-table/{use-matrix-selection.d.ts → use-matrix-cell-focus.d.ts} +13 -17
- package/dist/types/lib/matrix-table/use-matrix.d.ts +0 -1
- package/dist/types/lib/query-context/build-card-query-context.d.ts +19 -8
- package/dist/types/lib/query-context/build-dashboard-execution-snapshot.d.ts +5 -3
- package/dist/types/lib/query-context/build-dashboard-frame-base-query-contexts.d.ts +12 -4
- package/dist/types/lib/query-context/compile-selection-filters.d.ts +5 -0
- package/dist/types/lib/query-context/dashboard-filter-mapping-resolution.d.ts +46 -0
- package/dist/types/lib/query-context/filter-group-utils.d.ts +3 -0
- package/dist/types/lib/query-context/resolve-runtime-card-filters.d.ts +29 -0
- package/dist/types/lib/selection/click-to-filter-authoring-support.d.ts +9 -0
- package/dist/types/lib/selection/selection-from-click-context.d.ts +41 -0
- package/dist/types/lib/selection/selection-labels.d.ts +3 -0
- package/dist/types/lib/selection/selection-notices.d.ts +9 -0
- package/dist/types/lib/selection/selection-reducer.d.ts +46 -0
- package/dist/types/lib/stores/dashboard-store.d.ts +62 -17
- package/dist/types/lib/stores/editor-store.d.ts +1 -2
- package/dist/types/lib/stores/index.d.ts +0 -2
- package/dist/types/lib/types/common-types.d.ts +60 -6
- package/dist/types/lib/types/explorer-types.d.ts +1 -22
- package/dist/types/lib/types/interaction-types.d.ts +6 -198
- package/dist/types/lib/utils/calculate-context-aware-filters.d.ts +21 -12
- package/dist/types/lib/utils/card-utils.d.ts +11 -0
- package/dist/types/lib/utils/date-hierarchy-utils.d.ts +3 -1
- package/dist/types/lib/utils/drag-and-drop-utils.d.ts +1 -1
- package/dist/types/lib/utils/interaction-icons.d.ts +1 -1
- package/dist/types/shared/analytics-protocol/execution-input-schemas.d.ts +32 -32
- package/dist/types/shared/analytics-protocol/index.d.ts +2 -0
- package/dist/types/shared/analytics-protocol/selection-contract.d.ts +100 -0
- package/dist/types/shared/analytics-protocol/selection-filter-compiler.d.ts +12 -0
- package/dist/types/shared/dashboard-authoring/apply-group-by-override.d.ts +19 -0
- package/dist/types/shared/dashboard-authoring/click-to-filter-settings.d.ts +88 -0
- package/dist/types/shared/dashboard-authoring/contracts.d.ts +8 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +3 -0
- package/dist/types/shared/dashboard-authoring/linked-click-to-filter-overrides.d.ts +32 -0
- package/dist/types/shared/format-utils/matrix-continuation.d.ts +3 -3
- package/package.json +1 -1
- package/src/data-app-sdk/README.md +58 -1
- package/dist/chunks/appearance-context-tNjvTJj3.cjs +0 -1
- package/dist/chunks/calculated-field-identity-BTpUqfEu.js +0 -1276
- package/dist/chunks/calculated-field-identity-rMuXuzEY.cjs +0 -1
- package/dist/chunks/constants-vtu7_IUo.cjs +0 -1
- package/dist/chunks/dashboard-controls-DlxeddZN.cjs +0 -52
- package/dist/chunks/dashboard-json-DhS4yJfc.cjs +0 -1
- package/dist/chunks/edit-dashboard-visual-X3OCnivL.cjs +0 -172
- package/dist/chunks/field-aggregations-BU_3gHKR.js +0 -957
- package/dist/chunks/field-aggregations-CDCamEsQ.cjs +0 -1
- package/dist/chunks/index-C8XCKzB6.cjs +0 -1
- package/dist/chunks/index-DSa6RSdg.cjs +0 -1417
- package/dist/chunks/matrix-control-sources-CeC5EMyq.cjs +0 -1
- package/dist/chunks/matrix-member-presentation-E2B4k3ws.cjs +0 -1
- package/dist/chunks/matrix-member-presentation-qiHxv67e.js +0 -105
- package/dist/chunks/matrix-operation-contract-Cqy4EW2H.js +0 -1638
- package/dist/chunks/matrix-operation-contract-D9dLX-Wr.cjs +0 -1
- package/dist/chunks/report-preferences-dialog-7Vsc_fsG.cjs +0 -1
- package/dist/chunks/search-BqqhaMx9.cjs +0 -26
- package/dist/chunks/switch-BytP6QY8.cjs +0 -139
- package/dist/types/components/interactions/configuration-popover.d.ts +0 -1
- package/dist/types/components/interactions/interaction-card.d.ts +0 -59
- package/dist/types/components/interactions/interaction-event-handler.d.ts +0 -11
- package/dist/types/components/interactions/interactions-list.d.ts +0 -50
- package/dist/types/components/interactions/panels/cross-filter-panel.d.ts +0 -24
- package/dist/types/components/interactions/panels/inline-drill-panel.d.ts +0 -24
- package/dist/types/components/interactions/selectors/action-selector.d.ts +0 -31
- package/dist/types/components/interactions/selectors/trigger-selector.d.ts +0 -38
- package/dist/types/components/surfboard/filter/click-filter-section.d.ts +0 -5
- package/dist/types/lib/interactions/build-interaction-event.d.ts +0 -25
- package/dist/types/lib/interactions/convert-click-filters-to-filter-group.d.ts +0 -10
- package/dist/types/lib/interactions/execute-interaction-event.d.ts +0 -80
- package/dist/types/lib/interactions/field-utils.d.ts +0 -11
- package/dist/types/lib/interactions/handle-chart-click.d.ts +0 -75
- package/dist/types/lib/interactions/linked-interaction-utils.d.ts +0 -14
- package/dist/types/lib/interactions/source-card-filter-utils.d.ts +0 -9
- package/dist/types/lib/matrix-table/matrix-clipboard.d.ts +0 -45
- package/dist/types/lib/matrix-table/matrix-selection.d.ts +0 -20
- package/dist/types/lib/stores/drill-actions.d.ts +0 -139
- package/dist/types/lib/stores/interaction-store.d.ts +0 -113
- package/dist/types/lib/stores/pointer-interaction-store.d.ts +0 -18
|
@@ -0,0 +1,1373 @@
|
|
|
1
|
+
var de = Object.defineProperty;
|
|
2
|
+
var ce = (e, t, n) => t in e ? de(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var q = (e, t, n) => ce(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import { ah as D, ak as M, a_ as A, aa as le, A as P, am as ue, x as fe, U as pe, r as H, t as W, bc as me, C as U } from "./validators-BDYzZFgs.js";
|
|
5
|
+
import "./matrix-operation-contract-xL8IhFzp.js";
|
|
6
|
+
import { m as he, h as ge, j as Ie } from "./field-aggregations-DUb0NU6c.js";
|
|
7
|
+
import { g as G } from "./matrix-analytical-definition-xesmc3Qa.js";
|
|
8
|
+
import { s as $ } from "./stable-serialize-CfqXeiBP.js";
|
|
9
|
+
const ye = (e, t) => {
|
|
10
|
+
const n = {};
|
|
11
|
+
if (e === null || t === null)
|
|
12
|
+
return t;
|
|
13
|
+
const r = /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)]);
|
|
14
|
+
for (const i of r) {
|
|
15
|
+
if (!(i in e) && i in t) {
|
|
16
|
+
n[i] = t[i];
|
|
17
|
+
continue;
|
|
18
|
+
}
|
|
19
|
+
if (i in e && !(i in t)) {
|
|
20
|
+
n[i] = void 0;
|
|
21
|
+
continue;
|
|
22
|
+
}
|
|
23
|
+
const o = e[i], s = t[i];
|
|
24
|
+
if (!E(o, s))
|
|
25
|
+
if (Array.isArray(o) && Array.isArray(s))
|
|
26
|
+
n[i] = s;
|
|
27
|
+
else if (J(o) && J(s)) {
|
|
28
|
+
const a = ye(o, s);
|
|
29
|
+
Object.keys(a).length > 0 && (n[i] = a);
|
|
30
|
+
} else
|
|
31
|
+
n[i] = s;
|
|
32
|
+
}
|
|
33
|
+
return n;
|
|
34
|
+
}, E = (e, t) => {
|
|
35
|
+
if (e === t) return !0;
|
|
36
|
+
if (e && t && typeof e == "object" && typeof t == "object") {
|
|
37
|
+
if (Array.isArray(e) && Array.isArray(t))
|
|
38
|
+
return e.length !== t.length ? !1 : e.every((i, o) => E(i, t[o]));
|
|
39
|
+
const n = Object.keys(e), r = Object.keys(t);
|
|
40
|
+
return n.length !== r.length ? !1 : n.every((i) => E(e[i], t[i]));
|
|
41
|
+
}
|
|
42
|
+
return !1;
|
|
43
|
+
}, J = (e) => e !== null && typeof e == "object" && !Array.isArray(e), C = (e) => {
|
|
44
|
+
if (e === null || typeof e != "object")
|
|
45
|
+
return e;
|
|
46
|
+
if (e instanceof Date)
|
|
47
|
+
return new Date(e);
|
|
48
|
+
if (e instanceof RegExp)
|
|
49
|
+
return new RegExp(e);
|
|
50
|
+
if (Array.isArray(e))
|
|
51
|
+
return e.map((n) => C(n));
|
|
52
|
+
const t = {};
|
|
53
|
+
for (const n in e)
|
|
54
|
+
Object.prototype.hasOwnProperty.call(e, n) && (t[n] = C(e[n]));
|
|
55
|
+
return t;
|
|
56
|
+
}, j = { kind: "allSheets" }, w = (e, t) => (t == null ? void 0 : t[e]) ?? e;
|
|
57
|
+
function re(e, t) {
|
|
58
|
+
switch (e.kind) {
|
|
59
|
+
case "cards":
|
|
60
|
+
return {
|
|
61
|
+
kind: "cards",
|
|
62
|
+
cardIds: e.cardIds.map((n) => w(n, t.cardIds))
|
|
63
|
+
};
|
|
64
|
+
case "sheets":
|
|
65
|
+
return {
|
|
66
|
+
kind: "sheets",
|
|
67
|
+
sheetIds: e.sheetIds.map((n) => w(n, t.sheetIds))
|
|
68
|
+
};
|
|
69
|
+
case "documentSections":
|
|
70
|
+
return {
|
|
71
|
+
...e,
|
|
72
|
+
sheetId: w(e.sheetId, t.sheetIds),
|
|
73
|
+
sectionIds: e.sectionIds.map((n) => w(n, t.sectionIds))
|
|
74
|
+
};
|
|
75
|
+
default:
|
|
76
|
+
return e;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
function be(e, t) {
|
|
80
|
+
return {
|
|
81
|
+
...e,
|
|
82
|
+
targets: re(e.targets, t),
|
|
83
|
+
cardMappings: e.cardMappings.map((n) => ({
|
|
84
|
+
...n,
|
|
85
|
+
cardId: w(n.cardId, t.cardIds)
|
|
86
|
+
}))
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
function ot(e, t) {
|
|
90
|
+
return {
|
|
91
|
+
...e.targets !== void 0 ? { targets: e.targets && re(e.targets, t) } : {},
|
|
92
|
+
...e.cardMappings !== void 0 ? {
|
|
93
|
+
cardMappings: e.cardMappings && e.cardMappings.map((n) => ({
|
|
94
|
+
...n,
|
|
95
|
+
cardId: w(n.cardId, t.cardIds)
|
|
96
|
+
}))
|
|
97
|
+
} : {}
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
function at(e, t) {
|
|
101
|
+
return t ? {
|
|
102
|
+
...e,
|
|
103
|
+
targets: t.targets === void 0 ? e.targets : t.targets ?? j,
|
|
104
|
+
cardMappings: t.cardMappings === void 0 ? e.cardMappings : t.cardMappings ?? []
|
|
105
|
+
} : e;
|
|
106
|
+
}
|
|
107
|
+
const O = (e, t) => JSON.stringify(e) === JSON.stringify(t);
|
|
108
|
+
function st(e, t) {
|
|
109
|
+
const n = {};
|
|
110
|
+
return O(e.targets, t.targets) || (n.targets = O(e.targets, j) ? null : e.targets), O(e.cardMappings, t.cardMappings) || (n.cardMappings = e.cardMappings.length ? e.cardMappings : null), Object.keys(n).length ? n : void 0;
|
|
111
|
+
}
|
|
112
|
+
function dt(e, t) {
|
|
113
|
+
return {
|
|
114
|
+
...e,
|
|
115
|
+
targets: (t == null ? void 0 : t.targets) ?? j,
|
|
116
|
+
cardMappings: (t == null ? void 0 : t.cardMappings) ?? []
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
function ct(e) {
|
|
120
|
+
const t = Object.values(e.linkedInteractionTargetOverrides ?? {});
|
|
121
|
+
if (!t.length) return;
|
|
122
|
+
const n = {};
|
|
123
|
+
if (t.some(
|
|
124
|
+
(o) => o.applyToCardIds !== void 0
|
|
125
|
+
)) {
|
|
126
|
+
const o = t.flatMap(
|
|
127
|
+
(s) => Array.isArray(s.applyToCardIds) ? [s.applyToCardIds] : []
|
|
128
|
+
);
|
|
129
|
+
n.targets = o.length === t.length ? { kind: "cards", cardIds: [...new Set(o.flat())] } : null;
|
|
130
|
+
}
|
|
131
|
+
const i = t.filter((o) => !Array.isArray(o.applyToCardIds));
|
|
132
|
+
if (i.some((o) => o.excludeCardIds !== void 0)) {
|
|
133
|
+
const o = [
|
|
134
|
+
...new Set(i.flatMap((s) => s.excludeCardIds ?? []))
|
|
135
|
+
].filter(
|
|
136
|
+
(s) => i.every((a) => {
|
|
137
|
+
var c;
|
|
138
|
+
return (c = a.excludeCardIds) == null ? void 0 : c.includes(s);
|
|
139
|
+
})
|
|
140
|
+
);
|
|
141
|
+
n.cardMappings = o.length ? o.map(
|
|
142
|
+
(s) => ({ kind: "excluded", cardId: s })
|
|
143
|
+
) : null;
|
|
144
|
+
}
|
|
145
|
+
return Object.keys(n).length ? n : void 0;
|
|
146
|
+
}
|
|
147
|
+
const K = /\[\[\s*param\.([A-Za-z0-9_.-]+)\s*\]\]/g, Y = /\bparam\s*\(\s*(['"])([^'"]+)\1/g;
|
|
148
|
+
function ve(e) {
|
|
149
|
+
const t = [];
|
|
150
|
+
let n = 0;
|
|
151
|
+
for (; n < e.length; ) {
|
|
152
|
+
const r = e.indexOf("{{", n), i = e.indexOf("{%", n);
|
|
153
|
+
let o = -1, s = "";
|
|
154
|
+
if (r === -1 ? (o = i, s = "%}") : i === -1 || r < i ? (o = r, s = "}}") : (o = i, s = "%}"), o === -1)
|
|
155
|
+
break;
|
|
156
|
+
const a = e.indexOf(s, o + 2);
|
|
157
|
+
if (a === -1) {
|
|
158
|
+
n = o + 2;
|
|
159
|
+
continue;
|
|
160
|
+
}
|
|
161
|
+
t.push(e.slice(o + 2, a)), n = a + 2;
|
|
162
|
+
}
|
|
163
|
+
return t;
|
|
164
|
+
}
|
|
165
|
+
function ie(e) {
|
|
166
|
+
var r, i;
|
|
167
|
+
if (!e)
|
|
168
|
+
return [];
|
|
169
|
+
const t = /* @__PURE__ */ new Set();
|
|
170
|
+
let n;
|
|
171
|
+
for (K.lastIndex = 0; (n = K.exec(e)) !== null; ) {
|
|
172
|
+
const o = (r = n[1]) == null ? void 0 : r.trim();
|
|
173
|
+
o && t.add(o);
|
|
174
|
+
}
|
|
175
|
+
for (const o of ve(e))
|
|
176
|
+
for (Y.lastIndex = 0; (n = Y.exec(o)) !== null; ) {
|
|
177
|
+
const s = (i = n[2]) == null ? void 0 : i.trim();
|
|
178
|
+
s && t.add(s);
|
|
179
|
+
}
|
|
180
|
+
return Array.from(t);
|
|
181
|
+
}
|
|
182
|
+
function lt(e) {
|
|
183
|
+
const t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map();
|
|
184
|
+
for (const r of e.controlBindings || [])
|
|
185
|
+
t.add(r.controlId), r.target === "sql_param" && n.set(r.paramId, r.controlId);
|
|
186
|
+
for (const r of ie(e.sql))
|
|
187
|
+
t.add(n.get(r) ?? r);
|
|
188
|
+
return Array.from(t);
|
|
189
|
+
}
|
|
190
|
+
function ke(e) {
|
|
191
|
+
const t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
192
|
+
for (const r of e.controlBindings || [])
|
|
193
|
+
r.target === "sql_param" && n.set(r.paramId, r.controlId);
|
|
194
|
+
for (const r of ie(e.sql))
|
|
195
|
+
t.set(r, {
|
|
196
|
+
paramId: r,
|
|
197
|
+
controlId: n.get(r) ?? r
|
|
198
|
+
});
|
|
199
|
+
return Array.from(t.values());
|
|
200
|
+
}
|
|
201
|
+
function _e(e, t) {
|
|
202
|
+
var i;
|
|
203
|
+
const n = (i = e.controlBindings) == null ? void 0 : i.map((o) => ({
|
|
204
|
+
...o,
|
|
205
|
+
controlId: t.get(o.controlId) ?? o.controlId
|
|
206
|
+
})), r = ke(e).flatMap(
|
|
207
|
+
({ paramId: o, controlId: s }) => {
|
|
208
|
+
var c;
|
|
209
|
+
const a = t.get(s);
|
|
210
|
+
return !a || a === s || (c = e.controlBindings) != null && c.some(
|
|
211
|
+
(d) => d.target === "sql_param" && d.paramId === o
|
|
212
|
+
) ? [] : [{ target: "sql_param", paramId: o, controlId: a }];
|
|
213
|
+
}
|
|
214
|
+
);
|
|
215
|
+
return r.length ? [...n ?? [], ...r] : n;
|
|
216
|
+
}
|
|
217
|
+
function oe(e, t) {
|
|
218
|
+
var i, o;
|
|
219
|
+
const n = e.source === "dashboardInputAlias" ? ((i = t.inputAliases) == null ? void 0 : i[e.variableName]) ?? e : e, r = e.source === "dashboardInputAlias" && n !== e ? { ...n, export: e.export ?? "label" } : n;
|
|
220
|
+
return r.source === "dashboardInput" ? {
|
|
221
|
+
...r,
|
|
222
|
+
inputId: ((o = t.inputIds) == null ? void 0 : o[r.inputId]) ?? r.inputId
|
|
223
|
+
} : r;
|
|
224
|
+
}
|
|
225
|
+
function ut(e, t) {
|
|
226
|
+
var i;
|
|
227
|
+
const n = {};
|
|
228
|
+
for (const o of [
|
|
229
|
+
"cardIds",
|
|
230
|
+
"sheetIds",
|
|
231
|
+
"inputIds",
|
|
232
|
+
"controlIds",
|
|
233
|
+
"filterIds"
|
|
234
|
+
]) {
|
|
235
|
+
const s = { ...t[o] };
|
|
236
|
+
for (const [a, c] of Object.entries((e == null ? void 0 : e[o]) ?? {}))
|
|
237
|
+
s[a] = ((i = t[o]) == null ? void 0 : i[c]) ?? c;
|
|
238
|
+
Object.keys(s).length && (n[o] = s);
|
|
239
|
+
}
|
|
240
|
+
const r = { ...t.inputAliases };
|
|
241
|
+
for (const [o, s] of Object.entries((e == null ? void 0 : e.inputAliases) ?? {}))
|
|
242
|
+
r[o] = oe(s, t);
|
|
243
|
+
return Object.keys(r).length && (n.inputAliases = r), n;
|
|
244
|
+
}
|
|
245
|
+
function ft(e, t) {
|
|
246
|
+
var i, o, s, a;
|
|
247
|
+
const n = C(e);
|
|
248
|
+
n.controlBindings = _e(
|
|
249
|
+
e,
|
|
250
|
+
new Map(Object.entries(t.controlIds ?? {}))
|
|
251
|
+
);
|
|
252
|
+
for (const c of n.controls ?? [])
|
|
253
|
+
c.id = ((i = t.controlIds) == null ? void 0 : i[c.id]) ?? c.id;
|
|
254
|
+
for (const c of n.inlineFilters ?? [])
|
|
255
|
+
c.id = ((o = t.filterIds) == null ? void 0 : o[c.id]) ?? c.id;
|
|
256
|
+
const r = (c) => {
|
|
257
|
+
var p, f, u;
|
|
258
|
+
if (!c || typeof c != "object") return;
|
|
259
|
+
if (Array.isArray(c)) {
|
|
260
|
+
c.forEach(r);
|
|
261
|
+
return;
|
|
262
|
+
}
|
|
263
|
+
const d = c;
|
|
264
|
+
if (d.type === "variable" && d.ref && typeof d.ref == "object") {
|
|
265
|
+
const m = d.ref;
|
|
266
|
+
d.ref = m.source === "input" ? { ...m, inputId: ((p = t.inputIds) == null ? void 0 : p[m.inputId]) ?? m.inputId } : oe(m, t);
|
|
267
|
+
}
|
|
268
|
+
if (typeof d.entityId == "string") {
|
|
269
|
+
const m = d.entityId;
|
|
270
|
+
d.fieldScope === "card" && (d.entityId = ((f = t.cardIds) == null ? void 0 : f[m]) ?? m), d.fieldScope === "sheet" && (d.entityId = ((u = t.sheetIds) == null ? void 0 : u[m]) ?? m);
|
|
271
|
+
}
|
|
272
|
+
for (const [m, k] of Object.entries(d))
|
|
273
|
+
m !== "linkedReferenceOverrides" && r(k);
|
|
274
|
+
};
|
|
275
|
+
r(n), n.clickToFilter && (n.clickToFilter = be(n.clickToFilter, t));
|
|
276
|
+
for (const c of Object.values(
|
|
277
|
+
((s = n.customCardPreferences) == null ? void 0 : s.dataInputCardIds) ?? {}
|
|
278
|
+
))
|
|
279
|
+
c.cardId = ((a = t.cardIds) == null ? void 0 : a[c.cardId]) ?? c.cardId;
|
|
280
|
+
return n;
|
|
281
|
+
}
|
|
282
|
+
function R(e) {
|
|
283
|
+
return (e == null ? void 0 : e.trim()) || void 0;
|
|
284
|
+
}
|
|
285
|
+
function V(e) {
|
|
286
|
+
return e.split(".").at(-1) || e;
|
|
287
|
+
}
|
|
288
|
+
function Q(e, t) {
|
|
289
|
+
var c, d;
|
|
290
|
+
const n = R(t);
|
|
291
|
+
if (!n) return;
|
|
292
|
+
const r = V(n), i = R((c = e.fieldMeta) == null ? void 0 : c.name);
|
|
293
|
+
if (i && i !== n && i !== r)
|
|
294
|
+
return;
|
|
295
|
+
const o = R(
|
|
296
|
+
(d = e.fieldMeta) == null ? void 0 : d.qualifiedFieldName
|
|
297
|
+
);
|
|
298
|
+
if (o && V(o) !== r)
|
|
299
|
+
return;
|
|
300
|
+
const s = n.includes(".") ? n : void 0, a = o != null && o.includes(".") ? o : void 0;
|
|
301
|
+
if (!(s && a && s !== a))
|
|
302
|
+
return {
|
|
303
|
+
leafName: r,
|
|
304
|
+
...s || a ? {
|
|
305
|
+
qualifiedFieldName: s || a
|
|
306
|
+
} : {}
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
function X(e, t) {
|
|
310
|
+
return Q(e, t) || Q({}, t);
|
|
311
|
+
}
|
|
312
|
+
function Z({
|
|
313
|
+
source: e,
|
|
314
|
+
sourceFieldName: t,
|
|
315
|
+
target: n,
|
|
316
|
+
targetFieldName: r
|
|
317
|
+
}) {
|
|
318
|
+
const i = X(
|
|
319
|
+
e,
|
|
320
|
+
t
|
|
321
|
+
), o = X(
|
|
322
|
+
n,
|
|
323
|
+
r
|
|
324
|
+
);
|
|
325
|
+
return !i || !o || i.leafName !== o.leafName ? !1 : o.qualifiedFieldName ? i.qualifiedFieldName === o.qualifiedFieldName : !0;
|
|
326
|
+
}
|
|
327
|
+
function N(e, t) {
|
|
328
|
+
var i, o;
|
|
329
|
+
const n = Fe(e);
|
|
330
|
+
if (n) return n;
|
|
331
|
+
const r = (o = (i = e == null ? void 0 : e.fieldMeta) == null ? void 0 : i.nativeDataType) == null ? void 0 : o.trim();
|
|
332
|
+
if (L(e == null ? void 0 : e.fieldMeta, t) && r && r !== "date" && r !== "datetime")
|
|
333
|
+
return r;
|
|
334
|
+
}
|
|
335
|
+
function Fe(e) {
|
|
336
|
+
var n;
|
|
337
|
+
const t = (n = e == null ? void 0 : e.nativeDataType) == null ? void 0 : n.trim();
|
|
338
|
+
return t && t !== "date" && t !== "datetime" ? t : void 0;
|
|
339
|
+
}
|
|
340
|
+
function L(e, t) {
|
|
341
|
+
var s, a;
|
|
342
|
+
const n = t.trim();
|
|
343
|
+
if (!n) return !1;
|
|
344
|
+
const r = n.split(".").at(-1), i = (s = e == null ? void 0 : e.qualifiedFieldName) == null ? void 0 : s.trim();
|
|
345
|
+
if (i && !(i === n || !i.includes(".") && i === r))
|
|
346
|
+
return !1;
|
|
347
|
+
const o = (a = e == null ? void 0 : e.name) == null ? void 0 : a.trim();
|
|
348
|
+
return o && o !== n && o !== r ? !1 : !!(i || o);
|
|
349
|
+
}
|
|
350
|
+
function Te({
|
|
351
|
+
fieldName: e,
|
|
352
|
+
definition: t,
|
|
353
|
+
value: n
|
|
354
|
+
}) {
|
|
355
|
+
if ((t == null ? void 0 : t.column) === e) {
|
|
356
|
+
const r = N(t, e);
|
|
357
|
+
if (r)
|
|
358
|
+
return r;
|
|
359
|
+
}
|
|
360
|
+
return (n == null ? void 0 : n.name) === e ? N(n, e) : void 0;
|
|
361
|
+
}
|
|
362
|
+
function De({
|
|
363
|
+
definition: e,
|
|
364
|
+
value: t,
|
|
365
|
+
sourceValue: n = t
|
|
366
|
+
}) {
|
|
367
|
+
const r = e && Z({
|
|
368
|
+
source: e,
|
|
369
|
+
sourceFieldName: e.column,
|
|
370
|
+
target: t,
|
|
371
|
+
targetFieldName: t.name
|
|
372
|
+
}) ? e : void 0, i = n && Z({
|
|
373
|
+
source: n,
|
|
374
|
+
sourceFieldName: n.name,
|
|
375
|
+
target: t,
|
|
376
|
+
targetFieldName: t.name
|
|
377
|
+
}) ? n : void 0, o = (r ? N(r, r.column) : void 0) || (i ? N(i, i.name) : void 0);
|
|
378
|
+
return ae({
|
|
379
|
+
carrier: t,
|
|
380
|
+
nativeDataType: o,
|
|
381
|
+
projectNestedNativeDataType: L(
|
|
382
|
+
t.fieldMeta,
|
|
383
|
+
t.name
|
|
384
|
+
)
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
function pt({
|
|
388
|
+
filterDefinitions: e,
|
|
389
|
+
filterValues: t
|
|
390
|
+
}) {
|
|
391
|
+
if (!(e != null && e.length) || !t.length)
|
|
392
|
+
return t;
|
|
393
|
+
const n = new Map(
|
|
394
|
+
e.map((o) => [o.id, o])
|
|
395
|
+
);
|
|
396
|
+
let r = !1;
|
|
397
|
+
const i = t.map((o) => {
|
|
398
|
+
if (typeof o.name != "string" || !o.name.trim())
|
|
399
|
+
return o;
|
|
400
|
+
const s = n.get(o.filterId);
|
|
401
|
+
if (!s)
|
|
402
|
+
return o;
|
|
403
|
+
const a = De({
|
|
404
|
+
definition: s,
|
|
405
|
+
value: o
|
|
406
|
+
});
|
|
407
|
+
return r || (r = a !== o), a;
|
|
408
|
+
});
|
|
409
|
+
return r ? i : t;
|
|
410
|
+
}
|
|
411
|
+
function mt(e) {
|
|
412
|
+
const t = Te({
|
|
413
|
+
fieldName: e.column,
|
|
414
|
+
definition: e
|
|
415
|
+
});
|
|
416
|
+
return ae({
|
|
417
|
+
carrier: e,
|
|
418
|
+
nativeDataType: t,
|
|
419
|
+
projectNestedNativeDataType: L(
|
|
420
|
+
e.fieldMeta,
|
|
421
|
+
e.column
|
|
422
|
+
)
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
function ae({
|
|
426
|
+
carrier: e,
|
|
427
|
+
nativeDataType: t,
|
|
428
|
+
projectNestedNativeDataType: n
|
|
429
|
+
}) {
|
|
430
|
+
var d;
|
|
431
|
+
const r = (d = e.fieldMeta) == null ? void 0 : d.nativeDataType;
|
|
432
|
+
if (t) {
|
|
433
|
+
if (e.nativeDataType === t && (!e.fieldMeta || (n ? r === t : !r)))
|
|
434
|
+
return e;
|
|
435
|
+
const { nativeDataType: p, ...f } = e.fieldMeta || {};
|
|
436
|
+
return {
|
|
437
|
+
...e,
|
|
438
|
+
nativeDataType: t,
|
|
439
|
+
...e.fieldMeta ? {
|
|
440
|
+
fieldMeta: n ? {
|
|
441
|
+
...e.fieldMeta,
|
|
442
|
+
nativeDataType: t
|
|
443
|
+
} : f
|
|
444
|
+
} : {}
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
if (e.nativeDataType === void 0 && r === void 0)
|
|
448
|
+
return e;
|
|
449
|
+
const {
|
|
450
|
+
nativeDataType: i,
|
|
451
|
+
fieldMeta: o,
|
|
452
|
+
...s
|
|
453
|
+
} = e, { nativeDataType: a, ...c } = o || {};
|
|
454
|
+
return {
|
|
455
|
+
...s,
|
|
456
|
+
...o ? { fieldMeta: c } : {}
|
|
457
|
+
};
|
|
458
|
+
}
|
|
459
|
+
function ee(e) {
|
|
460
|
+
const t = /* @__PURE__ */ new Set();
|
|
461
|
+
for (const n of [e.name, e.sourceField]) {
|
|
462
|
+
if (!n) continue;
|
|
463
|
+
const r = D(n);
|
|
464
|
+
if (!r) continue;
|
|
465
|
+
t.add(r);
|
|
466
|
+
const i = r.split("."), o = i[i.length - 1];
|
|
467
|
+
o && t.add(o);
|
|
468
|
+
}
|
|
469
|
+
return t;
|
|
470
|
+
}
|
|
471
|
+
function se(e, t) {
|
|
472
|
+
const n = M(e), r = M(t);
|
|
473
|
+
return n === "unknown" || r === "unknown" ? !1 : (n === "date" || n === "datetime") && (r === "date" || r === "datetime") ? !0 : n === r;
|
|
474
|
+
}
|
|
475
|
+
function we(e, t) {
|
|
476
|
+
return A(e.field.source, t.field.source) && D(e.field.name) === D(t.field.name) && D(e.field.sourceField || e.field.name) === D(t.field.sourceField || t.field.name);
|
|
477
|
+
}
|
|
478
|
+
function $e(e, t) {
|
|
479
|
+
if (e.kind !== "field") return !1;
|
|
480
|
+
const n = ee(t), r = ee(e.field);
|
|
481
|
+
return se(t.dataType, e.field.dataType) && [...r].some((i) => n.has(i));
|
|
482
|
+
}
|
|
483
|
+
function ht(e) {
|
|
484
|
+
const t = e.candidates.filter(
|
|
485
|
+
(n) => $e(
|
|
486
|
+
n,
|
|
487
|
+
e.logicalValueField
|
|
488
|
+
)
|
|
489
|
+
);
|
|
490
|
+
return t.length === 1 ? { status: "matched", target: t[0] } : t.length > 1 ? { status: "ambiguous" } : { status: "notApplicable" };
|
|
491
|
+
}
|
|
492
|
+
function gt(e) {
|
|
493
|
+
const t = [];
|
|
494
|
+
for (const n of e.acceptedTargets)
|
|
495
|
+
!se(
|
|
496
|
+
e.logicalValueField.dataType,
|
|
497
|
+
n.field.dataType
|
|
498
|
+
) || t.some(
|
|
499
|
+
(r) => we(r, n)
|
|
500
|
+
) || t.push(n);
|
|
501
|
+
return t.length === 1 ? { status: "matched", target: t[0] } : t.length > 1 ? { status: "ambiguous" } : { status: "notApplicable" };
|
|
502
|
+
}
|
|
503
|
+
const xe = /\{\{-?\s*filters\s*\|\s*where\s*-?\}\}/i, Ae = /\{\{-?\s*filters\s*\|\s*and\s*-?\}\}/i, Ne = /\bwhere\b/i;
|
|
504
|
+
function Se(e) {
|
|
505
|
+
return e != null && e.trim() ? xe.test(e) || Ae.test(e) : !1;
|
|
506
|
+
}
|
|
507
|
+
function It(e) {
|
|
508
|
+
return !(e != null && e.trim()) || Se(e) ? null : Ne.test(e) ? {
|
|
509
|
+
helper: "{{ filters | and }}",
|
|
510
|
+
description: "For queries with an existing WHERE clause."
|
|
511
|
+
} : {
|
|
512
|
+
helper: "{{ filters | where }}",
|
|
513
|
+
description: "For queries without a WHERE clause."
|
|
514
|
+
};
|
|
515
|
+
}
|
|
516
|
+
function Oe(e) {
|
|
517
|
+
return (e.field.sourceField || e.field.name).trim() || void 0;
|
|
518
|
+
}
|
|
519
|
+
function yt(e) {
|
|
520
|
+
if (e.inventory.kind !== "sql" || e.target.kind !== "field")
|
|
521
|
+
return { status: "ineligible" };
|
|
522
|
+
const t = he(
|
|
523
|
+
e.inventory,
|
|
524
|
+
e.target.field.source
|
|
525
|
+
), n = Oe(e.target);
|
|
526
|
+
if (!t || !n) return { status: "ineligible" };
|
|
527
|
+
if (t.executionTable) {
|
|
528
|
+
const s = [
|
|
529
|
+
t.executionTable.databaseName,
|
|
530
|
+
t.executionTable.schemaName,
|
|
531
|
+
t.executionTable.tableName,
|
|
532
|
+
n
|
|
533
|
+
].filter(Boolean).join(".");
|
|
534
|
+
return {
|
|
535
|
+
status: "eligible",
|
|
536
|
+
source: t.source,
|
|
537
|
+
executionIdentifier: s
|
|
538
|
+
};
|
|
539
|
+
}
|
|
540
|
+
if (e.inventory.pinnedCatalogSources.length !== 1)
|
|
541
|
+
return { status: "ineligible" };
|
|
542
|
+
const r = D(n), i = (e.candidateTargets || []).filter(
|
|
543
|
+
(s) => D(
|
|
544
|
+
s.field.sourceField || s.field.name
|
|
545
|
+
) === r
|
|
546
|
+
), o = [];
|
|
547
|
+
for (const s of i)
|
|
548
|
+
o.some(
|
|
549
|
+
(a) => A(a, s.field.source)
|
|
550
|
+
) || o.push(s.field.source);
|
|
551
|
+
return o.length > 1 ? { status: "ineligible" } : {
|
|
552
|
+
status: "eligible",
|
|
553
|
+
source: t.source,
|
|
554
|
+
executionIdentifier: n
|
|
555
|
+
};
|
|
556
|
+
}
|
|
557
|
+
const Re = Object.freeze({ mode: "all_applicable" });
|
|
558
|
+
function Me(e) {
|
|
559
|
+
if (e === void 0)
|
|
560
|
+
return { ok: !0, dependencies: { ...Re } };
|
|
561
|
+
const t = le(e, "dashboard");
|
|
562
|
+
if (!t.ok)
|
|
563
|
+
return {
|
|
564
|
+
ok: !1,
|
|
565
|
+
error: "Invalid dashboard option dependency policy.",
|
|
566
|
+
issues: t.errors.map((r) => r.message)
|
|
567
|
+
};
|
|
568
|
+
const n = e;
|
|
569
|
+
switch (n.mode) {
|
|
570
|
+
case "independent":
|
|
571
|
+
return { ok: !0, dependencies: { mode: "independent" } };
|
|
572
|
+
case "explicit":
|
|
573
|
+
return {
|
|
574
|
+
ok: !0,
|
|
575
|
+
dependencies: {
|
|
576
|
+
mode: "explicit",
|
|
577
|
+
includeInputIds: [...n.includeInputIds || []]
|
|
578
|
+
}
|
|
579
|
+
};
|
|
580
|
+
case "all_applicable":
|
|
581
|
+
return {
|
|
582
|
+
ok: !0,
|
|
583
|
+
dependencies: {
|
|
584
|
+
mode: "all_applicable",
|
|
585
|
+
...n.excludeInputIds ? { excludeInputIds: [...n.excludeInputIds] } : {}
|
|
586
|
+
}
|
|
587
|
+
};
|
|
588
|
+
default:
|
|
589
|
+
return {
|
|
590
|
+
ok: !1,
|
|
591
|
+
error: "Invalid dashboard option dependency policy.",
|
|
592
|
+
issues: ["Dashboard option dependencies must declare a mode."]
|
|
593
|
+
};
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
function Ee(e) {
|
|
597
|
+
if (e === void 0) return { ok: !0, population: void 0 };
|
|
598
|
+
const t = { ok: !1, error: "Invalid option population." };
|
|
599
|
+
if (!e || typeof e != "object" || Array.isArray(e)) return t;
|
|
600
|
+
const n = e;
|
|
601
|
+
if (n.kind === "option_source")
|
|
602
|
+
return { ok: !0, population: { kind: "option_source" } };
|
|
603
|
+
if (n.kind !== "related_population") return t;
|
|
604
|
+
const r = n.baseSource;
|
|
605
|
+
if (!r || r.kind !== "semantic" || !P(r))
|
|
606
|
+
return t;
|
|
607
|
+
const i = n.relationshipHint;
|
|
608
|
+
return i !== void 0 && (!i || typeof i != "object" || i.relationshipIds !== void 0 && (!Array.isArray(i.relationshipIds) || i.relationshipIds.some(
|
|
609
|
+
(o) => typeof o != "string" || !o.trim()
|
|
610
|
+
))) ? t : {
|
|
611
|
+
ok: !0,
|
|
612
|
+
population: {
|
|
613
|
+
kind: "related_population",
|
|
614
|
+
baseSource: r,
|
|
615
|
+
...i ? { relationshipHint: i } : {}
|
|
616
|
+
}
|
|
617
|
+
};
|
|
618
|
+
}
|
|
619
|
+
function bt(e) {
|
|
620
|
+
const { dependencies: t } = e, n = /* @__PURE__ */ new Set([
|
|
621
|
+
e.targetInputId,
|
|
622
|
+
...t.excludeInputIds || []
|
|
623
|
+
]);
|
|
624
|
+
return t.mode === "independent" ? [] : t.mode === "explicit" ? (t.includeInputIds || []).filter(
|
|
625
|
+
(r) => !n.has(r)
|
|
626
|
+
) : e.peerInputIds.filter((r) => !n.has(r));
|
|
627
|
+
}
|
|
628
|
+
function vt(e, t, n) {
|
|
629
|
+
if (t === n) return e;
|
|
630
|
+
let r = !1;
|
|
631
|
+
const i = (s) => s != null && s.includes(t) ? (r = !0, Array.from(
|
|
632
|
+
new Set(s.map((a) => a === t ? n : a))
|
|
633
|
+
)) : s, o = e.map((s) => {
|
|
634
|
+
const a = s.optionDependencies;
|
|
635
|
+
if (!a) return s;
|
|
636
|
+
const c = i(a.includeInputIds), d = i(a.excludeInputIds);
|
|
637
|
+
return c === a.includeInputIds && d === a.excludeInputIds ? s : {
|
|
638
|
+
...s,
|
|
639
|
+
optionDependencies: {
|
|
640
|
+
...a,
|
|
641
|
+
...c ? { includeInputIds: c } : {},
|
|
642
|
+
...d ? { excludeInputIds: d } : {}
|
|
643
|
+
}
|
|
644
|
+
};
|
|
645
|
+
});
|
|
646
|
+
return r ? o : e;
|
|
647
|
+
}
|
|
648
|
+
function kt(e, t) {
|
|
649
|
+
const n = Ce(
|
|
650
|
+
e.dependencies,
|
|
651
|
+
t
|
|
652
|
+
);
|
|
653
|
+
return n === e.dependencies ? e : { ...e, dependencies: n };
|
|
654
|
+
}
|
|
655
|
+
function Ce(e, t) {
|
|
656
|
+
if (!(t != null && t.length) || e.mode !== "explicit")
|
|
657
|
+
return e;
|
|
658
|
+
const n = new Set(e.includeInputIds || []), r = Array.from(new Set(t)).filter(
|
|
659
|
+
(i) => n.has(i)
|
|
660
|
+
);
|
|
661
|
+
return r.length ? { ...e, omitInputIds: r } : e;
|
|
662
|
+
}
|
|
663
|
+
class Pe extends Error {
|
|
664
|
+
constructor(n) {
|
|
665
|
+
super(n.map((r) => r.message).join(" "));
|
|
666
|
+
q(this, "issues");
|
|
667
|
+
this.name = "DashboardFilterMappingContractError", this.issues = n;
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
const je = {
|
|
671
|
+
string: !0,
|
|
672
|
+
number: !0,
|
|
673
|
+
boolean: !0,
|
|
674
|
+
date: !0,
|
|
675
|
+
datetime: !0
|
|
676
|
+
};
|
|
677
|
+
function v(e) {
|
|
678
|
+
return typeof e == "string" && e.trim().length > 0;
|
|
679
|
+
}
|
|
680
|
+
function h(e) {
|
|
681
|
+
return !!e && typeof e == "object" && !Array.isArray(e);
|
|
682
|
+
}
|
|
683
|
+
function x(e) {
|
|
684
|
+
return Array.isArray(e) && e.every((t) => typeof t == "string");
|
|
685
|
+
}
|
|
686
|
+
function Le(e) {
|
|
687
|
+
if (!h(e)) return !1;
|
|
688
|
+
switch (e.kind) {
|
|
689
|
+
case "allSheets":
|
|
690
|
+
return e.sheetKinds === void 0 || x(e.sheetKinds) && e.sheetKinds.every(
|
|
691
|
+
(t) => t === "dashboard" || t === "document"
|
|
692
|
+
);
|
|
693
|
+
case "sheets":
|
|
694
|
+
return x(e.sheetIds);
|
|
695
|
+
case "cards":
|
|
696
|
+
return x(e.cardIds);
|
|
697
|
+
case "documentSections":
|
|
698
|
+
return v(e.sheetId) && x(e.sectionIds);
|
|
699
|
+
default:
|
|
700
|
+
return !1;
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
function Be(e) {
|
|
704
|
+
return e === "shared" || e === "perSheet" || e === "perCard" || e === "perDocumentSection";
|
|
705
|
+
}
|
|
706
|
+
function ze(e) {
|
|
707
|
+
return h(e) ? v(e.id) && v(e.column) && v(e.dataType) : !1;
|
|
708
|
+
}
|
|
709
|
+
function qe(e, t, n, r) {
|
|
710
|
+
var a;
|
|
711
|
+
if (!h(t)) {
|
|
712
|
+
r.push({
|
|
713
|
+
code: "invalid_option_source",
|
|
714
|
+
path: n,
|
|
715
|
+
message: `${n} must be a semantic or physical option source.`,
|
|
716
|
+
inputId: e
|
|
717
|
+
});
|
|
718
|
+
return;
|
|
719
|
+
}
|
|
720
|
+
const i = t.source, o = [
|
|
721
|
+
["labelField", t.labelField],
|
|
722
|
+
["valueField", t.valueField],
|
|
723
|
+
["searchField", t.searchField]
|
|
724
|
+
];
|
|
725
|
+
if (!h(i) || i.kind !== "semantic" && i.kind !== "physical" || !P(i) || !h(t.labelField) || !h(t.valueField) || t.searchField !== void 0 && !h(t.searchField) || t.disambiguationFields !== void 0 && (!Array.isArray(t.disambiguationFields) || !t.disambiguationFields.every(h))) {
|
|
726
|
+
r.push({
|
|
727
|
+
code: "invalid_option_source",
|
|
728
|
+
path: n,
|
|
729
|
+
message: `${n} must contain a valid semantic or physical source and field references.`,
|
|
730
|
+
inputId: e
|
|
731
|
+
});
|
|
732
|
+
return;
|
|
733
|
+
}
|
|
734
|
+
for (const [c, d] of o)
|
|
735
|
+
d !== void 0 && h(d) && (!v(d.name) || d.source !== void 0 && !A(
|
|
736
|
+
d.source,
|
|
737
|
+
i
|
|
738
|
+
)) && r.push({
|
|
739
|
+
code: "invalid_option_source",
|
|
740
|
+
path: `${n}.${c}`,
|
|
741
|
+
message: `${n}.${c} must be a named field belonging to the declared option source.`,
|
|
742
|
+
inputId: e
|
|
743
|
+
});
|
|
744
|
+
for (const [c, d] of ((a = t.disambiguationFields) == null ? void 0 : a.entries()) || [])
|
|
745
|
+
(!h(d) || !v(d.name) || d.source !== void 0 && !A(
|
|
746
|
+
d.source,
|
|
747
|
+
i
|
|
748
|
+
)) && r.push({
|
|
749
|
+
code: "invalid_option_source",
|
|
750
|
+
path: `${n}.disambiguationFields[${c}]`,
|
|
751
|
+
message: `${n}.disambiguationFields[${c}] must be a named field belonging to the declared option source.`,
|
|
752
|
+
inputId: e
|
|
753
|
+
});
|
|
754
|
+
const s = t.valueField;
|
|
755
|
+
["string", "number", "boolean", "date", "datetime"].includes(
|
|
756
|
+
String(s.dataType)
|
|
757
|
+
) || r.push({
|
|
758
|
+
code: "invalid_option_source",
|
|
759
|
+
path: `${n}.valueField.dataType`,
|
|
760
|
+
message: `${n}.valueField.dataType must be a known option-value datatype.`,
|
|
761
|
+
inputId: e
|
|
762
|
+
});
|
|
763
|
+
}
|
|
764
|
+
function He(e, t, n) {
|
|
765
|
+
var r;
|
|
766
|
+
if (e.optionDependencies !== void 0) {
|
|
767
|
+
const i = Me(e.optionDependencies);
|
|
768
|
+
i.ok ? h(e.optionDependencies) && e.optionDependencies.omitInputIds !== void 0 && n.push({
|
|
769
|
+
code: "invalid_option_dependencies",
|
|
770
|
+
path: `${t}.optionDependencies.omitInputIds`,
|
|
771
|
+
message: `${t}.optionDependencies cannot persist a browse override (omitInputIds).`,
|
|
772
|
+
inputId: e.id
|
|
773
|
+
}) : n.push({
|
|
774
|
+
code: "invalid_option_dependencies",
|
|
775
|
+
path: `${t}.optionDependencies`,
|
|
776
|
+
message: `${t}.optionDependencies ${i.issues.join("; ") || i.error}`,
|
|
777
|
+
inputId: e.id
|
|
778
|
+
});
|
|
779
|
+
}
|
|
780
|
+
if (e.optionPopulation !== void 0) {
|
|
781
|
+
const i = Ee(e.optionPopulation);
|
|
782
|
+
i.ok ? ((r = i.population) == null ? void 0 : r.kind) === "related_population" && !We(e.optionSource) && n.push({
|
|
783
|
+
code: "invalid_option_population",
|
|
784
|
+
path: `${t}.optionPopulation`,
|
|
785
|
+
message: `${t}.optionPopulation related_population requires an authored semantic optionSource.`,
|
|
786
|
+
inputId: e.id
|
|
787
|
+
}) : n.push({
|
|
788
|
+
code: "invalid_option_population",
|
|
789
|
+
path: `${t}.optionPopulation`,
|
|
790
|
+
message: `${t}.optionPopulation must be option_source or a related_population with a complete semantic baseSource.`,
|
|
791
|
+
inputId: e.id
|
|
792
|
+
});
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
function We(e) {
|
|
796
|
+
return h(e) && h(e.source) && e.source.kind === "semantic";
|
|
797
|
+
}
|
|
798
|
+
function Ue(e, t, n, r, i, o) {
|
|
799
|
+
var d;
|
|
800
|
+
if (v(t.bindingId) || i.push({
|
|
801
|
+
code: "invalid_binding_id",
|
|
802
|
+
path: `${n}.bindingId`,
|
|
803
|
+
message: `${n}.bindingId must be an opaque non-empty id.`,
|
|
804
|
+
inputId: e,
|
|
805
|
+
cardId: t.cardId
|
|
806
|
+
}), ((d = t.target) == null ? void 0 : d.kind) !== "field") {
|
|
807
|
+
i.push({
|
|
808
|
+
code: "unsupported_target",
|
|
809
|
+
path: `${n}.target`,
|
|
810
|
+
message: `${n}.target must be one direct field target.`,
|
|
811
|
+
inputId: e,
|
|
812
|
+
cardId: t.cardId,
|
|
813
|
+
bindingId: t.bindingId
|
|
814
|
+
});
|
|
815
|
+
return;
|
|
816
|
+
}
|
|
817
|
+
const s = t.target.field;
|
|
818
|
+
if (!v(s == null ? void 0 : s.name) || !s.source || s.source.kind !== "semantic" && s.source.kind !== "physical" || !P(s.source)) {
|
|
819
|
+
i.push({
|
|
820
|
+
code: "invalid_target_field",
|
|
821
|
+
path: `${n}.target.field`,
|
|
822
|
+
message: `${n}.target.field must have a name and a source-qualified semantic or physical identity.`,
|
|
823
|
+
inputId: e,
|
|
824
|
+
cardId: t.cardId,
|
|
825
|
+
bindingId: t.bindingId
|
|
826
|
+
});
|
|
827
|
+
return;
|
|
828
|
+
}
|
|
829
|
+
if (Object.prototype.hasOwnProperty.call(
|
|
830
|
+
je,
|
|
831
|
+
s.dataType
|
|
832
|
+
) || i.push({
|
|
833
|
+
code: "unknown_target_data_type",
|
|
834
|
+
path: `${n}.target.field.dataType`,
|
|
835
|
+
message: `${n}.target.field.dataType must be known.`,
|
|
836
|
+
inputId: e,
|
|
837
|
+
cardId: t.cardId,
|
|
838
|
+
bindingId: t.bindingId
|
|
839
|
+
}), s.sourceField !== void 0 && !v(s.sourceField) && i.push({
|
|
840
|
+
code: "invalid_target_field",
|
|
841
|
+
path: `${n}.target.field.sourceField`,
|
|
842
|
+
message: `${n}.target.field.sourceField must be a non-empty catalog-grounded column when provided.`,
|
|
843
|
+
inputId: e,
|
|
844
|
+
cardId: t.cardId,
|
|
845
|
+
bindingId: t.bindingId
|
|
846
|
+
}), !o) return;
|
|
847
|
+
const a = r.get(t.cardId);
|
|
848
|
+
if (!a) {
|
|
849
|
+
i.push({
|
|
850
|
+
code: "unknown_card",
|
|
851
|
+
path: `${n}.cardId`,
|
|
852
|
+
message: `${n}.cardId '${t.cardId}' does not exist.`,
|
|
853
|
+
inputId: e,
|
|
854
|
+
cardId: t.cardId,
|
|
855
|
+
bindingId: t.bindingId
|
|
856
|
+
});
|
|
857
|
+
return;
|
|
858
|
+
}
|
|
859
|
+
const c = ge(a);
|
|
860
|
+
(c.kind === "unconfigured" || !Ie(c, s.source)) && i.push({
|
|
861
|
+
code: "unavailable_card_source",
|
|
862
|
+
path: `${n}.target.field.source`,
|
|
863
|
+
message: `${n}.target field source is not declared by card '${a.id}'.`,
|
|
864
|
+
inputId: e,
|
|
865
|
+
cardId: a.id,
|
|
866
|
+
bindingId: t.bindingId
|
|
867
|
+
});
|
|
868
|
+
}
|
|
869
|
+
function Ge(e, t, n, r, i, o) {
|
|
870
|
+
if (t === void 0) return;
|
|
871
|
+
if (!h(t) || t.kind !== "cardMappings" || !Array.isArray(t.cards)) {
|
|
872
|
+
i.push({
|
|
873
|
+
code: "invalid_application",
|
|
874
|
+
path: n,
|
|
875
|
+
message: `${n} must be a cardMappings application with a cards array.`,
|
|
876
|
+
inputId: e
|
|
877
|
+
});
|
|
878
|
+
return;
|
|
879
|
+
}
|
|
880
|
+
const s = /* @__PURE__ */ new Set();
|
|
881
|
+
t.cards.forEach((a, c) => {
|
|
882
|
+
const d = `${n}.cards[${c}]`;
|
|
883
|
+
if (!v(a == null ? void 0 : a.cardId)) {
|
|
884
|
+
i.push({
|
|
885
|
+
code: "unknown_card",
|
|
886
|
+
path: `${d}.cardId`,
|
|
887
|
+
message: `${d}.cardId is required.`,
|
|
888
|
+
inputId: e
|
|
889
|
+
});
|
|
890
|
+
return;
|
|
891
|
+
}
|
|
892
|
+
if (s.has(a.cardId)) {
|
|
893
|
+
i.push({
|
|
894
|
+
code: "duplicate_card_application",
|
|
895
|
+
path: `${d}.cardId`,
|
|
896
|
+
message: `${n} contains more than one entry for card '${a.cardId}'.`,
|
|
897
|
+
inputId: e,
|
|
898
|
+
cardId: a.cardId
|
|
899
|
+
});
|
|
900
|
+
return;
|
|
901
|
+
}
|
|
902
|
+
if (s.add(a.cardId), o && !r.has(a.cardId)) {
|
|
903
|
+
i.push({
|
|
904
|
+
code: "unknown_card",
|
|
905
|
+
path: `${d}.cardId`,
|
|
906
|
+
message: `${d}.cardId '${a.cardId}' does not exist.`,
|
|
907
|
+
inputId: e,
|
|
908
|
+
cardId: a.cardId
|
|
909
|
+
});
|
|
910
|
+
return;
|
|
911
|
+
}
|
|
912
|
+
a.kind === "bound" ? Ue(
|
|
913
|
+
e,
|
|
914
|
+
a,
|
|
915
|
+
d,
|
|
916
|
+
r,
|
|
917
|
+
i,
|
|
918
|
+
o
|
|
919
|
+
) : a.kind !== "excluded" && i.push({
|
|
920
|
+
code: "invalid_application",
|
|
921
|
+
path: d,
|
|
922
|
+
message: `${d}.kind must be 'bound' or 'excluded'.`,
|
|
923
|
+
inputId: e,
|
|
924
|
+
cardId: a.cardId
|
|
925
|
+
});
|
|
926
|
+
});
|
|
927
|
+
}
|
|
928
|
+
function Je({
|
|
929
|
+
inputs: e,
|
|
930
|
+
dashboardFilters: t,
|
|
931
|
+
cards: n = [],
|
|
932
|
+
validateCardTargets: r = !1
|
|
933
|
+
}) {
|
|
934
|
+
const i = [], o = new Map(
|
|
935
|
+
(t || []).map((d) => [d.id, d])
|
|
936
|
+
), s = new Map(
|
|
937
|
+
r ? n.map((d) => [d.id, d]) : []
|
|
938
|
+
), a = [], c = /* @__PURE__ */ new Map();
|
|
939
|
+
return e != null && !Array.isArray(e) ? (i.push({
|
|
940
|
+
code: "invalid_input",
|
|
941
|
+
path: "dashboard.inputs",
|
|
942
|
+
message: "dashboard.inputs must be an array when present."
|
|
943
|
+
}), { ok: !1, inputs: a, issues: i }) : ((Array.isArray(e) ? e : []).forEach((d, p) => {
|
|
944
|
+
const f = `dashboard.inputs[${p}]`;
|
|
945
|
+
if (!h(d) || d.kind !== "filter" && d.kind !== "control" || !v(d.id) || !v(d.label) || !v(d.variableName) || !Le(d.scope) || !Be(d.runtimeScope)) {
|
|
946
|
+
i.push({
|
|
947
|
+
code: "invalid_input",
|
|
948
|
+
path: f,
|
|
949
|
+
message: `${f} must be a complete filter or control Dashboard Input envelope.`,
|
|
950
|
+
inputId: h(d) && typeof d.id == "string" ? d.id : void 0
|
|
951
|
+
});
|
|
952
|
+
return;
|
|
953
|
+
}
|
|
954
|
+
if (d.kind === "control" && !h(d.control)) {
|
|
955
|
+
i.push({
|
|
956
|
+
code: "invalid_input",
|
|
957
|
+
path: `${f}.control`,
|
|
958
|
+
message: `${f}.control must be a control definition.`,
|
|
959
|
+
inputId: d.id
|
|
960
|
+
});
|
|
961
|
+
return;
|
|
962
|
+
}
|
|
963
|
+
const u = d;
|
|
964
|
+
if (u.kind === "control") {
|
|
965
|
+
a.push(u);
|
|
966
|
+
return;
|
|
967
|
+
}
|
|
968
|
+
const m = u.filter, k = u.filterReference, F = m !== void 0, T = !!k;
|
|
969
|
+
if (F && T) {
|
|
970
|
+
i.push({
|
|
971
|
+
code: "both_filter_definitions",
|
|
972
|
+
path: f,
|
|
973
|
+
message: `${f} must contain either filter or filterReference, not both.`,
|
|
974
|
+
inputId: u.id
|
|
975
|
+
});
|
|
976
|
+
return;
|
|
977
|
+
}
|
|
978
|
+
if (!F && !T) {
|
|
979
|
+
i.push({
|
|
980
|
+
code: "missing_filter_definition",
|
|
981
|
+
path: f,
|
|
982
|
+
message: `${f} must contain filter or filterReference.`,
|
|
983
|
+
inputId: u.id
|
|
984
|
+
});
|
|
985
|
+
return;
|
|
986
|
+
}
|
|
987
|
+
if (F && !ze(m)) {
|
|
988
|
+
i.push({
|
|
989
|
+
code: "invalid_input",
|
|
990
|
+
path: `${f}.filter`,
|
|
991
|
+
message: `${f}.filter must be a complete dashboard filter definition.`,
|
|
992
|
+
inputId: u.id
|
|
993
|
+
});
|
|
994
|
+
return;
|
|
995
|
+
}
|
|
996
|
+
let y, l;
|
|
997
|
+
if (F)
|
|
998
|
+
y = m, l = "embedded";
|
|
999
|
+
else {
|
|
1000
|
+
if ((k == null ? void 0 : k.kind) !== "dashboardFilter") {
|
|
1001
|
+
i.push({
|
|
1002
|
+
code: "invalid_filter_reference",
|
|
1003
|
+
path: `${f}.filterReference.kind`,
|
|
1004
|
+
message: `${f}.filterReference.kind must be 'dashboardFilter'.`,
|
|
1005
|
+
inputId: u.id
|
|
1006
|
+
});
|
|
1007
|
+
return;
|
|
1008
|
+
}
|
|
1009
|
+
const S = typeof (k == null ? void 0 : k.filterId) == "string" ? k.filterId : void 0;
|
|
1010
|
+
if (y = S ? o.get(S) : void 0, l = "dashboardFilter", !y) {
|
|
1011
|
+
i.push({
|
|
1012
|
+
code: "orphaned_filter_reference",
|
|
1013
|
+
path: `${f}.filterReference.filterId`,
|
|
1014
|
+
message: `${f}.filterReference cannot resolve dashboard filter '${S || ""}'.`,
|
|
1015
|
+
inputId: u.id
|
|
1016
|
+
});
|
|
1017
|
+
return;
|
|
1018
|
+
}
|
|
1019
|
+
if (y.kind === "global-date") {
|
|
1020
|
+
i.push({
|
|
1021
|
+
code: "global_date_reference",
|
|
1022
|
+
path: `${f}.filterReference`,
|
|
1023
|
+
message: `${f}.filterReference cannot reference the Global Date filter.`,
|
|
1024
|
+
inputId: u.id
|
|
1025
|
+
});
|
|
1026
|
+
return;
|
|
1027
|
+
}
|
|
1028
|
+
const z = c.get(y.id);
|
|
1029
|
+
if (z) {
|
|
1030
|
+
i.push({
|
|
1031
|
+
code: "duplicate_filter_reference",
|
|
1032
|
+
path: `${f}.filterReference.filterId`,
|
|
1033
|
+
message: `${f}.filterReference duplicates dashboard filter '${y.id}' already owned by Dashboard Input '${z}'.`,
|
|
1034
|
+
inputId: u.id
|
|
1035
|
+
});
|
|
1036
|
+
return;
|
|
1037
|
+
}
|
|
1038
|
+
c.set(y.id, u.id);
|
|
1039
|
+
}
|
|
1040
|
+
if (!y) return;
|
|
1041
|
+
if (u.forceSelection !== void 0 && typeof u.forceSelection != "boolean" && i.push({
|
|
1042
|
+
code: "invalid_input",
|
|
1043
|
+
path: `${f}.forceSelection`,
|
|
1044
|
+
message: `${f}.forceSelection must be a boolean.`,
|
|
1045
|
+
inputId: u.id
|
|
1046
|
+
}), u.optionSource !== void 0 && qe(
|
|
1047
|
+
u.id,
|
|
1048
|
+
u.optionSource,
|
|
1049
|
+
`${f}.optionSource`,
|
|
1050
|
+
i
|
|
1051
|
+
), He(u, f, i), u.application && y.kind === "global-date") {
|
|
1052
|
+
i.push({
|
|
1053
|
+
code: "global_date_reference",
|
|
1054
|
+
path: `${f}.application`,
|
|
1055
|
+
message: `${f}.application cannot map the Global Date filter.`,
|
|
1056
|
+
inputId: u.id
|
|
1057
|
+
});
|
|
1058
|
+
return;
|
|
1059
|
+
}
|
|
1060
|
+
u.application && u.scope.kind !== "allSheets" && u.scope.kind !== "sheets" && i.push({
|
|
1061
|
+
code: "unsupported_mapped_scope",
|
|
1062
|
+
path: `${f}.scope`,
|
|
1063
|
+
message: `${f}.scope must be allSheets or sheets when cardMappings are present.`,
|
|
1064
|
+
inputId: u.id
|
|
1065
|
+
}), Ge(
|
|
1066
|
+
u.id,
|
|
1067
|
+
u.application,
|
|
1068
|
+
`${f}.application`,
|
|
1069
|
+
s,
|
|
1070
|
+
i,
|
|
1071
|
+
r
|
|
1072
|
+
);
|
|
1073
|
+
const {
|
|
1074
|
+
filter: _,
|
|
1075
|
+
filterReference: I,
|
|
1076
|
+
// A reference-backed authored input must shadow the generated
|
|
1077
|
+
// dashboard-filter compatibility input. Older writers may have copied
|
|
1078
|
+
// the compatibility marker onto the reference; never preserve it.
|
|
1079
|
+
compatibility: b,
|
|
1080
|
+
...g
|
|
1081
|
+
} = u;
|
|
1082
|
+
a.push({
|
|
1083
|
+
...g,
|
|
1084
|
+
filter: y,
|
|
1085
|
+
...F && b ? { compatibility: b } : {},
|
|
1086
|
+
...u.optionSource ? {
|
|
1087
|
+
optionSource: u.optionSource
|
|
1088
|
+
} : {},
|
|
1089
|
+
...u.optionDependencies ? { optionDependencies: u.optionDependencies } : {},
|
|
1090
|
+
...u.optionPopulation ? { optionPopulation: u.optionPopulation } : {},
|
|
1091
|
+
definitionOrigin: l
|
|
1092
|
+
});
|
|
1093
|
+
}), i.length ? { ok: !1, inputs: a, issues: i } : { ok: !0, inputs: a });
|
|
1094
|
+
}
|
|
1095
|
+
function _t(e) {
|
|
1096
|
+
const t = Je(e);
|
|
1097
|
+
if (!t.ok) throw new Pe(t.issues);
|
|
1098
|
+
return t.inputs;
|
|
1099
|
+
}
|
|
1100
|
+
function Ft(e = () => globalThis.crypto.randomUUID()) {
|
|
1101
|
+
return e();
|
|
1102
|
+
}
|
|
1103
|
+
const Ke = {
|
|
1104
|
+
date: /* @__PURE__ */ new Set([
|
|
1105
|
+
"between",
|
|
1106
|
+
"not between",
|
|
1107
|
+
"=",
|
|
1108
|
+
"!=",
|
|
1109
|
+
">",
|
|
1110
|
+
">=",
|
|
1111
|
+
"<",
|
|
1112
|
+
"<=",
|
|
1113
|
+
"is null",
|
|
1114
|
+
"is not null"
|
|
1115
|
+
]),
|
|
1116
|
+
number: /* @__PURE__ */ new Set([
|
|
1117
|
+
"between",
|
|
1118
|
+
"not between",
|
|
1119
|
+
"=",
|
|
1120
|
+
"!=",
|
|
1121
|
+
">",
|
|
1122
|
+
">=",
|
|
1123
|
+
"<",
|
|
1124
|
+
"<=",
|
|
1125
|
+
"in",
|
|
1126
|
+
"not in",
|
|
1127
|
+
"is null",
|
|
1128
|
+
"is not null"
|
|
1129
|
+
]),
|
|
1130
|
+
string: /* @__PURE__ */ new Set([
|
|
1131
|
+
"=",
|
|
1132
|
+
"!=",
|
|
1133
|
+
"in",
|
|
1134
|
+
"not in",
|
|
1135
|
+
"like",
|
|
1136
|
+
"not like",
|
|
1137
|
+
"is null",
|
|
1138
|
+
"is not null"
|
|
1139
|
+
]),
|
|
1140
|
+
boolean: /* @__PURE__ */ new Set(["=", "!=", "in", "not in", "is null", "is not null"])
|
|
1141
|
+
};
|
|
1142
|
+
function Ye(e) {
|
|
1143
|
+
const t = M(e);
|
|
1144
|
+
return t === "number" || t === "boolean" ? t : t === "date" || t === "datetime" ? "date" : "string";
|
|
1145
|
+
}
|
|
1146
|
+
function Tt(e, t) {
|
|
1147
|
+
return typeof t != "string" ? !1 : Ke[Ye(e)].has(t);
|
|
1148
|
+
}
|
|
1149
|
+
function te(e, t, n = (r) => {
|
|
1150
|
+
var i;
|
|
1151
|
+
return ((i = r.derivedField) == null ? void 0 : i.dataType) ?? r.dataType;
|
|
1152
|
+
}) {
|
|
1153
|
+
return t === "sql_param" || t === "presentation_currency" ? [] : t === "config_metric_selector" || t === "config_aggregation" ? e.measures.flatMap((r) => r.kind === "aggregate" ? [{ id: r.id, kind: "measure", measure: r }] : []) : ["rows", "columns"].flatMap((r) => e[r].filter((i) => t !== "config_grain" || ue(n(i.field))).map((i) => ({ id: i.id, kind: "level", axis: r, level: i })));
|
|
1154
|
+
}
|
|
1155
|
+
function Dt(e, t, n, r) {
|
|
1156
|
+
const i = [...e.rows, ...e.columns].find((d) => d.id === t);
|
|
1157
|
+
if (!i) throw new Error("Matrix level is no longer present.");
|
|
1158
|
+
if (r === t) return { kind: "structure", rows: e.rows, columns: e.columns };
|
|
1159
|
+
const o = e.rows.filter((d) => d.id !== t), s = e.columns.filter((d) => d.id !== t), a = n === "rows" ? o : s, c = r ? a.findIndex((d) => d.id === r) : -1;
|
|
1160
|
+
return a.splice(c < 0 ? a.length : c, 0, i), { kind: "structure", rows: o, columns: s };
|
|
1161
|
+
}
|
|
1162
|
+
function B(e, t) {
|
|
1163
|
+
const n = G(e), r = G(t), i = (a, c) => $(n[a][c]) === $(r[a][c]), o = (a) => {
|
|
1164
|
+
const c = n.rankings.find((p) => p.id === a), d = r.rankings.find((p) => p.id === a);
|
|
1165
|
+
return !!c && !!d && $(c) === $(d);
|
|
1166
|
+
};
|
|
1167
|
+
return (a, c, d = !1) => c.length <= t[a].length && c.every(
|
|
1168
|
+
(p, f) => {
|
|
1169
|
+
var u;
|
|
1170
|
+
return (p.member.kind === "value" || d && o(p.member.rankingId)) && p.levelId === ((u = t[a][f]) == null ? void 0 : u.id) && i(a, f);
|
|
1171
|
+
}
|
|
1172
|
+
);
|
|
1173
|
+
}
|
|
1174
|
+
function ne(e, t, n, r) {
|
|
1175
|
+
if (!n) return n;
|
|
1176
|
+
const i = B(e, t), o = new Set(t.measures.map((s) => s.id));
|
|
1177
|
+
return { ...n, rules: n.rules.filter((s) => {
|
|
1178
|
+
const a = s.target.matrix, c = !a || (a.levelId === void 0 || t[a.axis].some((p) => p.id === a.levelId)) && (a.oppositePath === void 0 || i(a.axis === "rows" ? "columns" : "rows", a.oppositePath, !0)), { validationRefs: d } = me(s);
|
|
1179
|
+
return c && d.every((p) => o.has(p)) ? !0 : (r.push({ kind: "conditional_format", id: s.id, message: "Removed a conditional rule whose measure, level or member path changed." }), !1);
|
|
1180
|
+
}) };
|
|
1181
|
+
}
|
|
1182
|
+
function Ve(e, t, n = !1) {
|
|
1183
|
+
const r = { ...t }, i = [], o = B(e, r), s = new Set(r.measures.map((c) => c.id)), a = (c, d, p) => i.push({ kind: c, id: d, message: p });
|
|
1184
|
+
return r.sorts = r.sorts.filter((c) => {
|
|
1185
|
+
const d = r[c.axis].findIndex(
|
|
1186
|
+
(f) => f.id === c.levelId
|
|
1187
|
+
), p = d >= 0 && (c.scope.kind === "level" || c.scope.parent.length === d && o(c.axis, c.scope.parent)) && (c.target.kind === "member" || s.has(c.target.measureId) && o(
|
|
1188
|
+
c.axis === "rows" ? "columns" : "rows",
|
|
1189
|
+
c.target.oppositePath
|
|
1190
|
+
));
|
|
1191
|
+
return p || a(
|
|
1192
|
+
"sort",
|
|
1193
|
+
c.levelId,
|
|
1194
|
+
"Removed a sort whose level, measure or member path changed."
|
|
1195
|
+
), p;
|
|
1196
|
+
}), r.rankings = r.rankings.filter((c) => {
|
|
1197
|
+
const d = r[c.axis].some((p) => p.id === c.levelId) && s.has(c.measureId) && o(
|
|
1198
|
+
c.axis === "rows" ? "columns" : "rows",
|
|
1199
|
+
c.oppositePath
|
|
1200
|
+
);
|
|
1201
|
+
return d || a(
|
|
1202
|
+
"ranking",
|
|
1203
|
+
c.id,
|
|
1204
|
+
"Removed a ranking whose level, measure or member path changed."
|
|
1205
|
+
), d;
|
|
1206
|
+
}), { spec: (n ? fe : pe).parse(r), notices: i };
|
|
1207
|
+
}
|
|
1208
|
+
function wt(e, t, n = [], r, i = !1) {
|
|
1209
|
+
const o = [];
|
|
1210
|
+
if (t.kind !== "structure") {
|
|
1211
|
+
const l = t.kind === "presentation" ? { ...e, presentation: t.presentation } : t.kind === "defaults" ? { ...e, defaultView: t.defaultView } : t.kind === "sorts" ? { ...e, spec: { ...e.spec, sorts: t.sorts } } : {
|
|
1212
|
+
...e,
|
|
1213
|
+
spec: { ...e.spec, rankings: t.rankings }
|
|
1214
|
+
};
|
|
1215
|
+
return t.kind === "rankings" && l.presentation.conditionalFormatting && (l.presentation = { ...l.presentation, conditionalFormatting: ne(e.spec, l.spec, l.presentation.conditionalFormatting, o) }), {
|
|
1216
|
+
config: (i ? H : W).parse(l),
|
|
1217
|
+
notices: o,
|
|
1218
|
+
removedBindings: [],
|
|
1219
|
+
bindings: n
|
|
1220
|
+
};
|
|
1221
|
+
}
|
|
1222
|
+
const s = Ve(e.spec, {
|
|
1223
|
+
...e.spec,
|
|
1224
|
+
rows: t.rows ?? e.spec.rows,
|
|
1225
|
+
columns: t.columns ?? e.spec.columns,
|
|
1226
|
+
measures: t.measures ?? e.spec.measures
|
|
1227
|
+
}, i), a = s.spec;
|
|
1228
|
+
o.push(...s.notices);
|
|
1229
|
+
const c = B(e.spec, a), d = new Set(a.measures.map((l) => l.id)), p = [...a.rows, ...a.columns], f = new Set(p.map((l) => l.id)), u = (l, _, I) => o.push({ kind: l, id: _, message: I }), m = [], k = n.flatMap((l) => {
|
|
1230
|
+
if (l.target === "sql_param" || l.target === "presentation_currency") return [l];
|
|
1231
|
+
const _ = te(e.spec, l.target, r), I = l.matrixTargetId ?? (_.length === 1 ? _[0].id : void 0);
|
|
1232
|
+
return te(a, l.target, r).some((g) => g.id === I) ? l.matrixTargetId ? [l] : (u("binding", l.controlId, "Pinned the control binding to its original Matrix target after a structural change."), [{ ...l, matrixTargetId: I }]) : (u(
|
|
1233
|
+
"binding",
|
|
1234
|
+
l.controlId,
|
|
1235
|
+
"Removed a control binding whose original Matrix target is missing, ambiguous or no longer eligible."
|
|
1236
|
+
), m.push(l), []);
|
|
1237
|
+
}), F = (l, _, I) => Object.fromEntries(
|
|
1238
|
+
Object.entries(l).filter(([b]) => _.has(b) ? !0 : (u(I, b, `Removed a ${I} override for a removed field.`), !1))
|
|
1239
|
+
), T = {
|
|
1240
|
+
...e.presentation,
|
|
1241
|
+
levelLabels: F(e.presentation.levelLabels, f, "label"),
|
|
1242
|
+
measureLabels: F(
|
|
1243
|
+
e.presentation.measureLabels,
|
|
1244
|
+
d,
|
|
1245
|
+
"label"
|
|
1246
|
+
),
|
|
1247
|
+
levelFormats: F(
|
|
1248
|
+
e.presentation.levelFormats,
|
|
1249
|
+
f,
|
|
1250
|
+
"format"
|
|
1251
|
+
),
|
|
1252
|
+
measureFormats: F(
|
|
1253
|
+
e.presentation.measureFormats,
|
|
1254
|
+
d,
|
|
1255
|
+
"format"
|
|
1256
|
+
),
|
|
1257
|
+
totals: { ...e.presentation.totals }
|
|
1258
|
+
};
|
|
1259
|
+
T.levelFormats = Object.fromEntries(
|
|
1260
|
+
Object.entries(T.levelFormats).filter(([l, _]) => {
|
|
1261
|
+
const I = p.find((g) => g.id === l), b = [...e.spec.rows, ...e.spec.columns].find(
|
|
1262
|
+
(g) => g.id === l
|
|
1263
|
+
);
|
|
1264
|
+
return _.type !== "temporal_bucket" || I.grain && I.grain === (b == null ? void 0 : b.grain) ? !0 : (u(
|
|
1265
|
+
"format",
|
|
1266
|
+
l,
|
|
1267
|
+
"Removed a temporal format because its grain changed."
|
|
1268
|
+
), !1);
|
|
1269
|
+
})
|
|
1270
|
+
), T.conditionalFormatting && (T.conditionalFormatting = ne(e.spec, a, T.conditionalFormatting, o));
|
|
1271
|
+
const y = { ...e.defaultView };
|
|
1272
|
+
for (const l of ["rows", "columns"]) {
|
|
1273
|
+
const _ = {
|
|
1274
|
+
...e.presentation.totals.rows.levels,
|
|
1275
|
+
...e.presentation.totals.columns.levels
|
|
1276
|
+
};
|
|
1277
|
+
for (const g of Object.keys(e.presentation.totals[l].levels))
|
|
1278
|
+
f.has(g) || u("total", g, "Removed subtotal settings for a removed level.");
|
|
1279
|
+
T.totals[l] = {
|
|
1280
|
+
...e.presentation.totals[l],
|
|
1281
|
+
levels: Object.fromEntries(
|
|
1282
|
+
a[l].map((g) => [
|
|
1283
|
+
g.id,
|
|
1284
|
+
_[g.id] ?? { visible: !0, position: "before" }
|
|
1285
|
+
])
|
|
1286
|
+
)
|
|
1287
|
+
};
|
|
1288
|
+
const I = e.defaultView[l], b = Math.min(I.depth, Math.max(0, a[l].length - 1));
|
|
1289
|
+
b !== I.depth && u(
|
|
1290
|
+
"depth",
|
|
1291
|
+
l,
|
|
1292
|
+
`Reduced ${l} expansion depth to fit the hierarchy.`
|
|
1293
|
+
), y[l] = {
|
|
1294
|
+
depth: b,
|
|
1295
|
+
overrides: I.overrides.filter((g) => g.path.length < a[l].length && c(l, g.path) ? !0 : (u(
|
|
1296
|
+
"expansion",
|
|
1297
|
+
l,
|
|
1298
|
+
`Removed a ${l} expansion override whose path changed or became a leaf.`
|
|
1299
|
+
), !1))
|
|
1300
|
+
};
|
|
1301
|
+
}
|
|
1302
|
+
return {
|
|
1303
|
+
config: (i ? H : W).parse({
|
|
1304
|
+
...e,
|
|
1305
|
+
spec: a,
|
|
1306
|
+
presentation: T,
|
|
1307
|
+
defaultView: y
|
|
1308
|
+
}),
|
|
1309
|
+
notices: o,
|
|
1310
|
+
removedBindings: m,
|
|
1311
|
+
bindings: k
|
|
1312
|
+
};
|
|
1313
|
+
}
|
|
1314
|
+
function Qe(e) {
|
|
1315
|
+
return !e.entityName || e.entityName === U || e.entityName === "calculated_fields" || e.qualifiedEntityName === U || e.qualifiedEntityName === "calculated_fields" ? "root" : e.qualifiedEntityName || e.entityName;
|
|
1316
|
+
}
|
|
1317
|
+
function Xe(e) {
|
|
1318
|
+
return ["domain", e.role || "field", Qe(e), e.name].join("::");
|
|
1319
|
+
}
|
|
1320
|
+
function $t(e) {
|
|
1321
|
+
var i, o;
|
|
1322
|
+
if (e.fieldScope !== "domain") return;
|
|
1323
|
+
const t = e.calculatedFieldOrigin;
|
|
1324
|
+
if ((i = t == null ? void 0 : t.id) != null && i.startsWith("domain::")) return t.id;
|
|
1325
|
+
const n = (o = e.derivedField) == null ? void 0 : o.resultRole, r = n === "measure" ? "metric" : n === "dimension" || n === "date" ? "groupby" : e.derivedField || t == null ? void 0 : t.role;
|
|
1326
|
+
if (!(r !== "metric" && r !== "groupby"))
|
|
1327
|
+
return Xe({ ...e, role: r });
|
|
1328
|
+
}
|
|
1329
|
+
export {
|
|
1330
|
+
Qe as A,
|
|
1331
|
+
Xe as B,
|
|
1332
|
+
$t as C,
|
|
1333
|
+
Pe as D,
|
|
1334
|
+
Re as E,
|
|
1335
|
+
Me as F,
|
|
1336
|
+
Ee as G,
|
|
1337
|
+
bt as H,
|
|
1338
|
+
vt as I,
|
|
1339
|
+
kt as J,
|
|
1340
|
+
Ce as K,
|
|
1341
|
+
ye as L,
|
|
1342
|
+
ke as M,
|
|
1343
|
+
mt as N,
|
|
1344
|
+
lt as O,
|
|
1345
|
+
pt as P,
|
|
1346
|
+
ie as Q,
|
|
1347
|
+
ht as a,
|
|
1348
|
+
gt as b,
|
|
1349
|
+
C as c,
|
|
1350
|
+
$e as d,
|
|
1351
|
+
yt as e,
|
|
1352
|
+
_t as f,
|
|
1353
|
+
It as g,
|
|
1354
|
+
Se as h,
|
|
1355
|
+
Ft as i,
|
|
1356
|
+
Ye as j,
|
|
1357
|
+
Tt as k,
|
|
1358
|
+
ut as l,
|
|
1359
|
+
De as m,
|
|
1360
|
+
Je as n,
|
|
1361
|
+
ft as o,
|
|
1362
|
+
ot as p,
|
|
1363
|
+
at as q,
|
|
1364
|
+
be as r,
|
|
1365
|
+
st as s,
|
|
1366
|
+
dt as t,
|
|
1367
|
+
ct as u,
|
|
1368
|
+
te as v,
|
|
1369
|
+
Dt as w,
|
|
1370
|
+
ne as x,
|
|
1371
|
+
Ve as y,
|
|
1372
|
+
wt as z
|
|
1373
|
+
};
|