react-semaphor 0.1.583 → 0.1.585

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/dist/analytics-protocol/index.js +470 -428
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/brand-studio/index.js +7 -7
  4. package/dist/briefings/index.js +4 -4
  5. package/dist/chunks/aggregate-measure-field-DsFXETpI.js +22 -0
  6. package/dist/chunks/{assistant-chat-D3fm5qod.js → assistant-chat-BdbLmAnK.js} +12 -12
  7. package/dist/chunks/{bookmark-impact-Dpxl46Wd.js → bookmark-impact-BhT3k379.js} +2 -2
  8. package/dist/chunks/{bookmark-state-BEl_G9vr.js → bookmark-state-CL4WEpgB.js} +22 -22
  9. package/dist/chunks/{card-filter-builder-IxkFVxy2.js → card-filter-builder-CEcKF6Fw.js} +124 -124
  10. package/dist/chunks/comparison-window-caption-CoART8BC.js +1254 -0
  11. package/dist/chunks/{dashboard-BMqG98fc.js → dashboard-MPku_x1M.js} +1 -1
  12. package/dist/chunks/{dashboard-briefing-launcher-D45YfCkm.js → dashboard-briefing-launcher-CkFNlkr1.js} +13 -13
  13. package/dist/chunks/{dashboard-controls-DOvZRfof.js → dashboard-controls-Clt4ovXS.js} +84 -84
  14. package/dist/chunks/{dashboard-json-B_4TqF_o.js → dashboard-json-DSmXazIg.js} +4 -4
  15. package/dist/chunks/{dates-44_rcNj2.js → dates-CYZW9owO.js} +8 -8
  16. package/dist/chunks/{edit-dashboard-visual-BBPKJWSe.js → edit-dashboard-visual-Dn2ECRbX.js} +2752 -2687
  17. package/dist/chunks/filter-line-Cu2u1K36.js +131 -0
  18. package/dist/chunks/{filter-reach-copy-DWPq4Swi.js → filter-reach-copy-CmJpPa4G.js} +1745 -1326
  19. package/dist/chunks/{filter-value-text-DXGYypEd.js → filter-value-text-xefXzZlf.js} +6 -6
  20. package/dist/chunks/{index-DPRzcFp0.js → index-0WYn6RMz.js} +37 -37
  21. package/dist/chunks/{layout-grid-8rR-LPTk.js → layout-grid-9nSS2SL-.js} +1 -1
  22. package/dist/chunks/{list-filter-C1-uTgjR.js → list-filter-CfMPI6v4.js} +1 -1
  23. package/dist/chunks/{matrix-analytical-definition-D_HgptqZ.js → matrix-analytical-definition-QjBgUYhP.js} +382 -544
  24. package/dist/chunks/{matrix-member-presentation-DRa-9e6Q.js → matrix-member-presentation-BKDyxJho.js} +1 -1
  25. package/dist/chunks/{matrix-operation-contract-DCVinw1o.js → matrix-operation-contract-BM5TveR3.js} +153 -147
  26. package/dist/chunks/{metric-comparison-n9NsIa-2.js → metric-comparison-ZmurmEIs.js} +3 -3
  27. package/dist/chunks/{paintbrush-aR17Z3C9.js → paintbrush-LzAje2ff.js} +1 -1
  28. package/dist/chunks/{palette-a5FCZKFI.js → palette-DicJG0TC.js} +1 -1
  29. package/dist/chunks/{pivot-header-presentation-MvvlxtIB.js → pivot-header-presentation-CdeTU96P.js} +1 -1
  30. package/dist/chunks/{pivot-result-contract-expectations-8tuNjRvG.js → pivot-result-contract-expectations-Bx_BCu-7.js} +1029 -1010
  31. package/dist/chunks/{pivot-result-identity-B89X5xjb.js → pivot-result-identity-Bvs6Uq3v.js} +1 -1
  32. package/dist/chunks/raw-temporal-value-DH-feMc2.js +322 -0
  33. package/dist/chunks/{report-preferences-dialog-B8PhISua.js → report-preferences-dialog-BRaeufEi.js} +63 -62
  34. package/dist/chunks/{report-runtime-context-BhPzLTbS.js → report-runtime-context-NlOXwyRB.js} +1 -1
  35. package/dist/chunks/{resolve-dashboard-input-context-BfT8y5xL.js → resolve-dashboard-input-context-Cn9jumxl.js} +4924 -4823
  36. package/dist/chunks/{save-D985VvYp.js → save-0wu1Z1U7.js} +1 -1
  37. package/dist/chunks/{saved-dashboard-context-DH91-2B9.js → saved-dashboard-context-CfqkUMzR.js} +6 -6
  38. package/dist/chunks/selection-filter-compiler-BReJy-uv.js +92 -0
  39. package/dist/chunks/{semaphor-ready-indicator-Cg_Z2IDc.js → semaphor-ready-indicator-D6WjdTGl.js} +48377 -47074
  40. package/dist/chunks/{shelf-drop-preview-context-C7-BgcP4.js → shelf-drop-preview-context-Bbbrr9u4.js} +5 -5
  41. package/dist/chunks/{stored-dashboard-BpyCiE49.js → stored-dashboard-sPkTjxYf.js} +210 -221
  42. package/dist/chunks/{style-sheet-parts-C7qGZuH1.js → style-sheet-parts-_dGSFzDi.js} +2 -2
  43. package/dist/chunks/{table-export-sheet-wBkk17aa.js → table-export-sheet-Dmtqi5NV.js} +1 -1
  44. package/dist/chunks/{token-types-iKMplaBL.js → token-types-DEe_FP4l.js} +1 -1
  45. package/dist/chunks/{upload-CiGNKJ_0.js → upload-CtyOkU_B.js} +1 -1
  46. package/dist/chunks/{validators-B8fpdinG.js → validators-CJ8Jh0E8.js} +2 -2
  47. package/dist/chunks/{variable-draft-D8GFhAkm.js → variable-draft-D1RotIEG.js} +4 -4
  48. package/dist/dashboard/index.js +2 -2
  49. package/dist/dashboard-authoring/index.js +670 -647
  50. package/dist/format-utils/index.js +218 -215
  51. package/dist/index.js +234 -231
  52. package/dist/report-runtime-context/index.js +1 -1
  53. package/dist/style.css +1 -1
  54. package/dist/surfboard/index.js +2 -2
  55. package/dist/types/components/visual/data-table/types/data-table.d.ts +3 -0
  56. package/dist/types/components/visual/matrix-table/matrix-interaction-actions.d.ts +24 -3
  57. package/dist/types/index.js +5 -5
  58. package/dist/types/lib/hooks/interactions/use-drill-actions.d.ts +1 -1
  59. package/dist/types/lib/interactions/get-click-context-from-chartjs.d.ts +9 -0
  60. package/dist/types/lib/matrix-table/matrix-runtime.d.ts +8 -3
  61. package/dist/types/lib/query-context/compile-selection-filters.d.ts +1 -5
  62. package/dist/types/lib/see-records/click.d.ts +79 -0
  63. package/dist/types/lib/see-records/see-records-offer.d.ts +25 -0
  64. package/dist/types/lib/see-records/use-see-records-offer.d.ts +16 -0
  65. package/dist/types/lib/types/common-types.d.ts +6 -0
  66. package/dist/types/shared/analytics-protocol/aggregate-expression.d.ts +7 -0
  67. package/dist/types/shared/analytics-protocol/aggregate-measure-field.d.ts +13 -0
  68. package/dist/types/shared/analytics-protocol/index.d.ts +1 -0
  69. package/dist/types/shared/analytics-protocol/selection-filter-compiler.d.ts +3 -0
  70. package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +6 -0
  71. package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
  72. package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +1 -1
  73. package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +2 -0
  74. package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +2 -0
  75. package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +1 -0
  76. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
  77. package/dist/types/shared/dashboard-authoring/index.d.ts +2 -0
  78. package/dist/types/shared/dashboard-authoring/kpi-date-context.d.ts +191 -0
  79. package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +14 -0
  80. package/dist/types/shared/dashboard-authoring/see-records/availability.d.ts +30 -0
  81. package/dist/types/shared/dashboard-authoring/see-records/click.d.ts +37 -0
  82. package/dist/types/shared/dashboard-authoring/see-records/index.d.ts +12 -0
  83. package/dist/types/shared/dashboard-authoring/see-records/limits.d.ts +18 -0
  84. package/dist/types/shared/dashboard-authoring/see-records/measure-kind.d.ts +49 -0
  85. package/dist/types/shared/dashboard-authoring/see-records/request.d.ts +28 -0
  86. package/dist/types/shared/dashboard-authoring/see-records/result.d.ts +94 -0
  87. package/dist/types/shared/format-utils/semantic-format.d.ts +0 -1
  88. package/dist/types/shared/format-utils/temporal-bucket.d.ts +20 -0
  89. package/dist/types/shared/temporal/calendar-periods.d.ts +15 -0
  90. package/dist/types/shared/temporal/raw-temporal-equality.d.ts +14 -0
  91. package/dist/types/shared/usage-events/envelope.d.ts +4 -4
  92. package/package.json +1 -1
  93. package/dist/chunks/comparison-window-caption-sRFtnX1q.js +0 -1371
  94. package/dist/chunks/raw-temporal-value-DdT0s47W.js +0 -159
  95. package/dist/chunks/selection-filter-compiler-CUDRnUxc.js +0 -80
@@ -1,36 +1,36 @@
1
1
  var _s = Object.defineProperty;
2
2
  var Cs = (e, a, t) => a in e ? _s(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t;
3
3
  var lt = (e, a, t) => Cs(e, typeof a != "symbol" ? a + "" : a, t);
4
- import { _ as $s, $ as ws, a0 as xs, a1 as Ss, a2 as ks, a3 as qa, a4 as Ie, a5 as Ts, a6 as he, a7 as $e, a8 as la, a9 as ot, aa as Na, ab as Q, ac as G, ad as qe, ae as Rs, af as As, ag as Ft, ah as Fs, ai as Ds, aj as Os, ak as Es, al as qs, am as Ns, an as Pa, ao as Ps, ap as Ls, aq as Ms, ar as Bs, as as Vs, at as js, au as Ks, av as ca, aw as La, ax as ua, ay as we, az as be, aA as Ne, aB as Ws, aC as Us, aD as Gs, o as Xe, aE as Qs, aF as Hs, aG as _t, aH as Ze, aI as zs, aJ as Ys, aK as Ma, aL as Dt, aM as Ct, aN as Js, aO as Xs, aP as Zs, aQ as ie, aR as Ba, aS as Va, aT as ct, aU as eo, aV as to, aW as fa, aX as $t, aY as ao, aZ as ma, a_ as so, a$ as ha, b0 as pa, b1 as et, b2 as ga, b3 as De, b4 as oo, b5 as He, m as no, b6 as ja, b7 as io, b8 as ro, b9 as lo, ba as Ka, a as co, bb as uo, bc as fo, bd as mo, be as ho, bf as po, bg as go, bh as bo, bi as yo, bj as vo, bk as Io, bl as _o, bm as ba, bn as Co, bo as $o, bp as wo, bq as xo, br as So, bs as ko, bt as To, bu as Ro, bv as Ao, bw as Fo, bx as Do, by as Oo } from "../chunks/resolve-dashboard-input-context-BfT8y5xL.js";
5
- import { dC as Vr, bQ as jr, de as Kr, df as Wr, du as Ur, dt as Gr, dn as Qr, ey as Hr, dv as zr, dw as Yr, dY as Jr, cU as Xr, cV as Zr, cW as ed, cR as td, cS as ad, cT as sd, cN as od, cO as nd, cQ as id, cP as rd, cX as dd, dS as ld, dg as cd, cc as ud, e1 as fd, e2 as md, cb as hd, d8 as pd, dE as gd, cl as bd, eA as yd, eC as vd, c2 as Id, dV as _d, dH as Cd, e3 as $d, eV as wd, f4 as xd, eZ as Sd, dr as kd, ds as Td, ci as Rd, bM as Ad, eQ as Fd, dG as Dd, co as Od, dN as Ed, ch as qd, f8 as Nd, f9 as Pd, en as Ld, dF as Md, eI as Bd, fd as Vd, cF as jd, e_ as Kd, dm as Wd, cj as Ud, eb as Gd, ec as Qd, cY as Hd, cG as zd, dU as Yd, bG as Jd, dZ as Xd, el as Zd, dJ as el, eJ as tl, bH as al, bP as sl, e6 as ol, cA as nl, fb as il, eo as rl, dM as dl, em as ll, dX as cl, d7 as ul, d6 as fl, cg as ml, dT as hl, b_ as pl, c4 as gl, dR as bl, cx as yl, bE as vl, e$ as Il, f3 as _l, cp as Cl, e0 as $l, d_ as wl, eh as xl, bI as Sl, ep as kl, eR as Tl, dA as Rl, dB as Al, fe as Fl, ff as Dl, fh as Ol, b$ as El, c0 as ql, c1 as Nl, ck as Pl, cm as Ll, fa as Ml, ev as Bl, db as Vl, f as jl, cM as Kl, c9 as Wl, cu as Ul, b as Gl, cJ as Ql, dc as Hl, bS as zl, bT as Yl, dL as Jl, c8 as Xl, e8 as Zl, cq as ec, bz as tc, cd as ac, dp as sc, bW as oc, dz as nc, c3 as ic, d2 as rc, fg as dc, bN as lc, d4 as cc, e9 as uc, d5 as fc, ed as mc, eE as hc, eD as pc, dO as gc, cC as bc, ct as yc, cv as vc, l as Ic, cw as _c, et as Cc, dx as $c, dK as wc, bA as xc, bB as Sc, bC as kc, bJ as Tc, eX as Rc, eS as Ac, dD as Fc, eT as Dc, cz as Oc, ce as Ec, cI as qc, dy as Nc, es as Pc, d9 as Lc, da as Mc, bR as Bc, fc as Vc, dI as jc, eq as Kc, dd as Wc, eH as Uc, J as Gc, eW as Qc, c7 as Hc, f0 as zc, f1 as Yc, dk as Jc, cL as Xc, bV as Zc, d$ as eu, dW as tu, bD as au, cD as su, cE as ou, cf as nu, c_ as iu, bZ as ru, c5 as du, c6 as lu, dh as cu, di as uu, ca as fu, bK as mu, bY as hu, d0 as pu, eB as gu, ex as bu, f2 as yu, d1 as vu, c$ as Iu, f5 as _u, bU as Cu, ez as $u, cB as wu, ew as xu, cK as Su, ea as ku, dj as Tu, cy as Ru, dq as Au, bF as Fu, bX as Du, dP as Ou, eG as Eu, e7 as qu, cH as Nu, d3 as Pu, bO as Lu, dQ as Mu, f6 as Bu, e5 as Vu, e4 as ju, eu as Ku, eF as Wu, cn as Uu, cs as Gu, bL as Qu, eY as Hu, eU as zu, f7 as Yu, cZ as Ju, er as Xu, ek as Zu, dl as ef, ej as tf, eL as af, eg as sf, ei as of, cr as nf, ee as rf, ef as df, eK as lf, eM as cf, eN as uf, eO as ff, eP as mf } from "../chunks/resolve-dashboard-input-context-BfT8y5xL.js";
6
- import { K as Eo, L as Wa, G as Ua, M as qo, N as No, O as Ot, P as Ga, Q as Qa, A as xe, R as Po, S as Lo, H as Mo, T as Bo } from "../chunks/bookmark-state-BEl_G9vr.js";
7
- import { ae as pf, ay as gf, Y as bf, Z as yf, a8 as vf, ac as If, a9 as _f, aa as Cf, ab as $f, af as wf, aw as xf, aq as Sf, D as kf, au as Tf, F as Rf, a1 as Af, I as Ff, ax as Df, a4 as Of, a5 as Ef, as as qf, ad as Nf, a2 as Pf, ao as Lf, at as Mf, av as Bf, ap as Vf, ar as jf, a0 as Kf, _ as Wf, ah as Uf, am as Gf, W as Qf, X as Hf, U as zf, a3 as Yf, an as Jf, az as Xf, ai as Zf, ag as em, aj as tm, ak as am, al as sm, a7 as om, a6 as nm, $ as im } from "../chunks/bookmark-state-BEl_G9vr.js";
8
- import { L as dm, G as lm, H as cm, g as um, F as fm, q as mm, A as hm, D as pm, u as gm, v as bm, E as ym, C as vm, s as Im, t as _m, p as Cm, B as $m, I as wm, w as xm, y as Sm, x as km, z as Tm } from "../chunks/stored-dashboard-BpyCiE49.js";
9
- import { r as Vo, a5 as ya, aD as jo } from "../chunks/pivot-result-contract-expectations-8tuNjRvG.js";
10
- import { aG as Am, aF as Fm, aA as Dm, aE as Om, aH as Em, au as qm } from "../chunks/pivot-result-contract-expectations-8tuNjRvG.js";
11
- import { f as Ko, w as Wo, D as va, r as Uo } from "../chunks/metric-comparison-n9NsIa-2.js";
12
- import { p as Go } from "../chunks/report-runtime-context-BhPzLTbS.js";
13
- import { r as Ha, D as Ia, f as Qo, h as za, i as Ho, j as zo, k as Yo, e as wt, l as Jo, v as Xo } from "../chunks/filter-reach-copy-DWPq4Swi.js";
14
- import { N as Pm, R as Lm, n as Mm, q as Bm, u as Vm, t as jm, F as Km, B as Wm, m as Um, p as Gm, I as Qm, O as Hm, P as zm, C as Ym, K as Jm, E as Xm, w as Zm, x as eh, z as th, o as ah, y as sh, Q as oh, M as nh, L as ih, G as rh, H as dh, s as lh, J as ch, A as uh } from "../chunks/filter-reach-copy-DWPq4Swi.js";
15
- import { a7 as Ya, r as Ja, aN as Zo, a_ as Pe, aL as en, aQ as tn, aK as an, aE as sn, aM as on, a5 as nn } from "../chunks/validators-B8fpdinG.js";
4
+ import { _ as $s, $ as ws, a0 as xs, a1 as Ss, a2 as ks, a3 as qa, a4 as Ie, a5 as Ts, a6 as he, a7 as $e, a8 as la, a9 as ot, aa as Na, ab as Q, ac as G, ad as Ee, ae as Rs, af as As, ag as Ft, ah as Fs, ai as Ds, aj as Os, ak as Es, al as qs, am as Ns, an as Pa, ao as Ps, ap as Ls, aq as Ms, ar as Bs, as as Vs, at as js, au as Ks, av as ca, aw as La, ax as ua, ay as we, az as be, aA as qe, aB as Ws, aC as Us, aD as Gs, o as Xe, aE as Qs, aF as Hs, aG as _t, aH as Ze, aI as zs, aJ as Ys, aK as Ma, aL as Dt, aM as Ct, aN as Js, aO as Xs, aP as Zs, aQ as ie, aR as Ba, aS as Va, aT as ct, aU as eo, aV as to, aW as fa, aX as $t, aY as ao, aZ as ma, a_ as so, a$ as ha, b0 as pa, b1 as et, b2 as ga, b3 as Fe, b4 as oo, b5 as He, m as no, b6 as ja, b7 as io, b8 as ro, b9 as lo, ba as Ka, a as co, bb as uo, bc as fo, bd as mo, be as ho, bf as po, bg as go, bh as bo, bi as yo, bj as vo, bk as Io, bl as _o, bm as ba, bn as Co, bo as $o, bp as wo, bq as xo, br as So, bs as ko, bt as To, bu as Ro, bv as Ao, bw as Fo, bx as Do, by as Oo } from "../chunks/resolve-dashboard-input-context-Cn9jumxl.js";
5
+ import { dC as Vr, bQ as jr, de as Kr, df as Wr, du as Ur, dt as Gr, dn as Qr, ey as Hr, dv as zr, dw as Yr, dY as Jr, cU as Xr, cV as Zr, cW as ed, cR as td, cS as ad, cT as sd, cN as od, cO as nd, cQ as id, cP as rd, cX as dd, dS as ld, dg as cd, cc as ud, e1 as fd, e2 as md, cb as hd, d8 as pd, dE as gd, cl as bd, eA as yd, eC as vd, c2 as Id, dV as _d, dH as Cd, e3 as $d, f0 as wd, fb as xd, f4 as Sd, dr as kd, ds as Td, ci as Rd, eL as Ad, eJ as Fd, eK as Dd, bM as Od, eX as Ed, dG as qd, co as Nd, dN as Pd, ch as Ld, ff as Md, fg as Bd, en as Vd, dF as jd, eO as Kd, fk as Wd, cF as Ud, f5 as Gd, dm as Qd, cj as Hd, eb as zd, ec as Yd, cY as Jd, cG as Xd, dU as Zd, bG as el, dZ as tl, el as al, dJ as sl, eP as ol, bH as nl, bP as il, e6 as rl, cA as dl, fi as ll, eo as cl, dM as ul, em as fl, dX as ml, d7 as hl, d6 as pl, cg as gl, dT as bl, b_ as yl, c4 as vl, dR as Il, cx as _l, bE as Cl, f6 as $l, fa as wl, cp as xl, e0 as Sl, d_ as kl, eh as Tl, bI as Rl, ep as Al, eY as Fl, dA as Dl, dB as Ol, fl as El, fm as ql, fo as Nl, b$ as Pl, c0 as Ll, c1 as Ml, ck as Bl, cm as Vl, fh as jl, ev as Kl, db as Wl, f as Ul, cM as Gl, c9 as Ql, cu as Hl, b as zl, cJ as Yl, dc as Jl, bS as Xl, bT as Zl, dL as ec, c8 as tc, e8 as ac, cq as sc, bz as oc, cd as nc, dp as ic, bW as rc, dz as dc, c3 as lc, d2 as cc, eM as uc, fn as fc, bN as mc, d4 as hc, e9 as pc, d5 as gc, ed as bc, eE as yc, eD as vc, dO as Ic, cC as _c, ct as Cc, cv as $c, l as wc, cw as xc, et as Sc, dx as kc, dK as Tc, bA as Rc, bB as Ac, bC as Fc, bJ as Dc, f2 as Oc, eZ as Ec, dD as qc, e_ as Nc, cz as Pc, ce as Lc, cI as Mc, dy as Bc, es as Vc, d9 as jc, da as Kc, bR as Wc, fj as Uc, dI as Gc, eq as Qc, dd as Hc, eI as zc, eG as Yc, J as Jc, f1 as Xc, c7 as Zc, f7 as eu, f8 as tu, dk as au, cL as su, bV as ou, d$ as nu, dW as iu, bD as ru, cD as du, cE as lu, cf as cu, c_ as uu, bZ as fu, c5 as mu, c6 as hu, dh as pu, di as gu, ca as bu, bK as yu, bY as vu, d0 as Iu, eB as _u, ex as Cu, f9 as $u, d1 as wu, c$ as xu, fc as Su, bU as ku, ez as Tu, cB as Ru, ew as Au, cK as Fu, ea as Du, eN as Ou, dj as Eu, cy as qu, dq as Nu, bF as Pu, bX as Lu, dP as Mu, eH as Bu, e7 as Vu, cH as ju, d3 as Ku, bO as Wu, dQ as Uu, fd as Gu, e5 as Qu, e4 as Hu, eu as zu, eF as Yu, cn as Ju, cs as Xu, bL as Zu, f3 as ef, e$ as tf, fe as af, cZ as sf, er as of, ek as nf, dl as rf, ej as df, eR as lf, eg as cf, ei as uf, cr as ff, ee as mf, ef as hf, eQ as pf, eS as gf, eT as bf, eU as yf, eV as vf, eW as If } from "../chunks/resolve-dashboard-input-context-Cn9jumxl.js";
6
+ import { K as Eo, L as Wa, G as Ua, M as qo, N as No, O as Ot, P as Ga, Q as Qa, A as xe, R as Po, S as Lo, H as Mo, T as Bo } from "../chunks/bookmark-state-CL4WEpgB.js";
7
+ import { ae as Cf, ay as $f, Y as wf, Z as xf, a8 as Sf, ac as kf, a9 as Tf, aa as Rf, ab as Af, af as Ff, aw as Df, aq as Of, D as Ef, au as qf, F as Nf, a1 as Pf, I as Lf, ax as Mf, a4 as Bf, a5 as Vf, as as jf, ad as Kf, a2 as Wf, ao as Uf, at as Gf, av as Qf, ap as Hf, ar as zf, a0 as Yf, _ as Jf, ah as Xf, am as Zf, W as em, X as tm, U as am, a3 as sm, an as om, az as nm, ai as im, ag as rm, aj as dm, ak as lm, al as cm, a7 as um, a6 as fm, $ as mm } from "../chunks/bookmark-state-CL4WEpgB.js";
8
+ import { L as pm, G as gm, H as bm, g as ym, F as vm, q as Im, A as _m, D as Cm, u as $m, v as wm, E as xm, C as Sm, s as km, t as Tm, p as Rm, B as Am, I as Fm, w as Dm, y as Om, x as Em, z as qm } from "../chunks/stored-dashboard-sPkTjxYf.js";
9
+ import { r as Vo, ac as ya } from "../chunks/pivot-result-contract-expectations-Bx_BCu-7.js";
10
+ import { aO as Pm, aN as Lm, aJ as Mm, aM as Bm, aP as Vm, aD as jm } from "../chunks/pivot-result-contract-expectations-Bx_BCu-7.js";
11
+ import { f as jo, w as Ko, D as va, a as Wo } from "../chunks/metric-comparison-ZmurmEIs.js";
12
+ import { p as Uo } from "../chunks/report-runtime-context-NlOXwyRB.js";
13
+ import { r as Ha, D as Ia, f as Go, h as za, i as Qo, j as Ho, k as zo, e as wt, l as Yo, v as Jo } from "../chunks/filter-reach-copy-CmJpPa4G.js";
14
+ import { N as Wm, $ as Um, S as Gm, n as Qm, q as Hm, u as zm, t as Ym, F as Jm, B as Xm, m as Zm, p as eh, I as th, K as ah, L as sh, M as oh, _ as nh, a0 as ih, C as rh, X as dh, E as lh, w as ch, x as uh, z as fh, o as mh, y as hh, R as ph, O as gh, a1 as bh, Z as yh, Y as vh, J as Ih, G as _h, H as Ch, U as $h, T as wh, Q as xh, V as Sh, P as kh, s as Th, W as Rh, A as Ah } from "../chunks/filter-reach-copy-CmJpPa4G.js";
15
+ import { a7 as Ya, r as Ja, aN as Xo, a_ as Ne, aL as Zo, aQ as en, aK as tn, aE as an, aM as sn, a5 as on } from "../chunks/validators-CJ8Jh0E8.js";
16
16
  import "../chunks/schema-C9NPiIru.js";
17
- import { i as Xa, C as je, D as rn, e as dn, b as ln } from "../chunks/edit-9df1zOWe.js";
18
- import "../chunks/matrix-operation-contract-DCVinw1o.js";
19
- import { A as Me, B as ze, z as cn, f as un, y as Et, t as Se, e as fn } from "../chunks/analytics-base-schemas-BaIQrEzX.js";
20
- import { y as _a, C as mn } from "../chunks/matrix-analytical-definition-D_HgptqZ.js";
17
+ import { i as Xa, C as je, D as nn, e as rn, b as dn } from "../chunks/edit-9df1zOWe.js";
18
+ import "../chunks/matrix-operation-contract-BM5TveR3.js";
19
+ import { A as Le, B as ze, z as ln, f as cn, y as Et, t as Me, e as un } from "../chunks/analytics-base-schemas-BaIQrEzX.js";
20
+ import { y as _a, C as fn } from "../chunks/matrix-analytical-definition-QjBgUYhP.js";
21
21
  import "zod";
22
22
  import "../value-format-preferences/index.js";
23
- import { C as mh, a as hh, S as ph } from "../chunks/pickers-DkqmtnTL.js";
24
- import { r as hn } from "../chunks/index-CV_Kzou0.js";
23
+ import { C as Dh, a as Oh, S as Eh } from "../chunks/pickers-DkqmtnTL.js";
24
+ import { r as mn } from "../chunks/index-CV_Kzou0.js";
25
25
  import "../chunks/context-BTLBjQNh.js";
26
- import { v as Ye, a as pn, i as Ca, o as ut, d as gn, b as bn, c as yn } from "../chunks/variable-draft-D8GFhAkm.js";
27
- import { S as bh, f as yh, g as vh, e as Ih, n as _h } from "../chunks/variable-draft-D8GFhAkm.js";
28
- import { r as $h, a as wh } from "../chunks/dates-44_rcNj2.js";
29
- import { b as Sh, d as kh } from "../chunks/bookmark-impact-Dpxl46Wd.js";
30
- import { r as ye, b as vn, s as In, a as _n } from "../chunks/resolver-DG_tfEpt.js";
31
- import { n as Cn, r as $n } from "../chunks/index-BVKzKl5d.js";
32
- import { e as Rh } from "../chunks/brand-BoUV0iHF.js";
33
- const kr = [
26
+ import { v as Ye, a as hn, i as Ca, o as ut, d as pn, b as gn, c as bn } from "../chunks/variable-draft-D1RotIEG.js";
27
+ import { S as Nh, f as Ph, g as Lh, e as Mh, n as Bh } from "../chunks/variable-draft-D1RotIEG.js";
28
+ import { r as jh, a as Kh } from "../chunks/dates-CYZW9owO.js";
29
+ import { b as Uh, d as Gh } from "../chunks/bookmark-impact-BhT3k379.js";
30
+ import { r as ye, b as yn, s as vn, a as In } from "../chunks/resolver-DG_tfEpt.js";
31
+ import { n as _n, r as Cn } from "../chunks/index-BVKzKl5d.js";
32
+ import { e as Hh } from "../chunks/brand-BoUV0iHF.js";
33
+ const Sr = [
34
34
  "cardType",
35
35
  "sql",
36
36
  "python",
@@ -46,7 +46,7 @@ const kr = [
46
46
  "globalDateComparison",
47
47
  "calendarContext",
48
48
  "sqlRowLimit"
49
- ], Tr = [
49
+ ], kr = [
50
50
  "cardId",
51
51
  "cardTitle",
52
52
  "cache_config",
@@ -70,10 +70,10 @@ function ve(e) {
70
70
  function Ke(e) {
71
71
  return typeof e == "string" ? e : "";
72
72
  }
73
- function wn(e, a = {}) {
73
+ function $n(e, a = {}) {
74
74
  const t = ve(e), s = qt(a), o = {};
75
75
  if (t.calendarContext !== void 0) {
76
- const i = Go(t.calendarContext);
76
+ const i = Uo(t.calendarContext);
77
77
  if (!i.ok)
78
78
  throw new ce(
79
79
  `${s}calendarContext: ${i.issues.map((d) => d.message).join("; ")}`,
@@ -90,20 +90,20 @@ function wn(e, a = {}) {
90
90
  n.issues
91
91
  );
92
92
  if (t.resolvedPrimaryDateField && (o.resolvedPrimaryDateField = t.resolvedPrimaryDateField), t.globalDateComparison !== void 0) {
93
- const i = Ko(t.globalDateComparison);
93
+ const i = jo(t.globalDateComparison);
94
94
  if (!i.ok)
95
95
  throw new ce(
96
96
  `${s}Invalid globalDateComparison: ${i.errors.map((d) => `${d.path}: ${d.message}`).join("; ")}`,
97
97
  "globalDateComparison",
98
98
  i.errors
99
99
  );
100
- o.globalDateComparison = Wo(
100
+ o.globalDateComparison = Ko(
101
101
  t.globalDateComparison
102
102
  );
103
103
  }
104
104
  return o;
105
105
  }
106
- function Rr(e, a = {}) {
106
+ function Tr(e, a = {}) {
107
107
  const t = ve(e), s = qt(a), o = {};
108
108
  if (t.pagination !== void 0) {
109
109
  const n = ve(t.pagination), i = n.page, d = n.pageSize;
@@ -135,7 +135,7 @@ function Rr(e, a = {}) {
135
135
  }
136
136
  return o;
137
137
  }
138
- function Ar(e, a = {}) {
138
+ function Rr(e, a = {}) {
139
139
  const t = ve(e), s = qt(a), o = (w) => new ce(`${s}${w} is required`, w), n = Ke(t.connection_id).trim();
140
140
  if (!n) throw o("connection_id");
141
141
  const i = Ke(t.cardType).trim();
@@ -178,39 +178,39 @@ function Ar(e, a = {}) {
178
178
  controlDefinitions: x.controlDefinitions,
179
179
  cardControlDefinitions: x.cardControlDefinitions,
180
180
  controlBindings: x.controlBindings,
181
- ...wn(t, a),
181
+ ...$n(t, a),
182
182
  ...typeof t.sqlRowLimit == "number" && Number.isInteger(t.sqlRowLimit) && t.sqlRowLimit > 0 ? { sqlRowLimit: t.sqlRowLimit } : {}
183
183
  };
184
184
  }
185
- const ft = ["#14b8a6", "#5eead4", "#374151", "#6b7280", "#d1d5db"], xn = ["spacing", "canvasPadding", "canvas", "cardCorners", "chartColors"], Za = ["light", "dark"];
186
- function Fr(e) {
185
+ const ft = ["#14b8a6", "#5eead4", "#374151", "#6b7280", "#d1d5db"], wn = ["spacing", "canvasPadding", "canvas", "cardCorners", "chartColors"], Za = ["light", "dark"];
186
+ function Ar(e) {
187
187
  const a = [], t = ht(e.globalStyle) ? e.globalStyle : {}, s = ht(t.default) ? t.default : {}, o = ht(t.dark) ? t.dark : {}, n = (p) => ye(o, p) ?? ye(s, p), i = {}, d = n(["gridLayout", "margin"]);
188
- Array.isArray(d) && typeof d[1] == "number" && (i.spacing = Oe("spacing", d[1], a), i.canvasPadding = Oe("canvasPadding", d[1], a));
188
+ Array.isArray(d) && typeof d[1] == "number" && (i.spacing = De("spacing", d[1], a), i.canvasPadding = De("canvasPadding", d[1], a));
189
189
  const l = n(["cardBorderRadius"]);
190
- typeof l == "number" && (i.cardCorners = Oe("cardCorners", l, a));
190
+ typeof l == "number" && (i.cardCorners = De("cardCorners", l, a));
191
191
  const c = n(["controlInputRadius"]);
192
- typeof c == "number" && (i.controlCorners = Oe("controlCorners", c, a));
192
+ typeof c == "number" && (i.controlCorners = De("controlCorners", c, a));
193
193
  const h = n(["chart", "options", "borderRadius"]);
194
- typeof h == "number" && (i.barCorners = Oe("barCorners", h, a));
194
+ typeof h == "number" && (i.barCorners = De("barCorners", h, a));
195
195
  for (const p of Za) {
196
- const I = p === "light" ? ye(s, ["canvasTheme"]) : n(["canvasTheme"]), v = Tn(I, a);
196
+ const I = p === "light" ? ye(s, ["canvasTheme"]) : n(["canvasTheme"]), v = kn(I, a);
197
197
  v !== void 0 && (i.canvas = { ...i.canvas, [p]: v });
198
- const x = kn(s, o, p);
198
+ const x = Sn(s, o, p);
199
199
  if (x) {
200
200
  const w = x.filter(Xa).map((E) => E.toLowerCase());
201
201
  w.length < x.length && a.push({ field: "chartColors", kind: "dropped_colour", detail: `${p}: ${x.length - w.length} colours that aren't hex` }), w.length >= je.min && (i.chartColors = { ...i.chartColors, [p]: w.slice(0, je.max) }), w.length > je.max && a.push({ field: "chartColors", kind: "clamped", detail: `${p}: kept the first ${je.max} colours` });
202
202
  }
203
203
  }
204
- return { style: Sn(i, e.organizationAppearance, a), notes: a };
204
+ return { style: xn(i, e.organizationAppearance, a), notes: a };
205
205
  }
206
- function Sn(e, a, t) {
207
- const s = vn({ organizationAppearance: a ? Cn(a).spec : null }), o = { ...e };
206
+ function xn(e, a, t) {
207
+ const s = yn({ organizationAppearance: a ? _n(a).spec : null }), o = { ...e };
208
208
  for (const n of Object.keys(e)) {
209
- const i = _n[n], d = n === "canvas" || n === "chartColors";
209
+ const i = In[n], d = n === "canvas" || n === "chartColors";
210
210
  for (const l of Za) {
211
- const c = In(o, n, l);
211
+ const c = vn(o, n, l);
212
212
  if (c === void 0) continue;
213
- const h = xn.includes(n) && ye($n(a, l), i) !== void 0, p = JSON.stringify(ye(s.schemes[l], i)) === JSON.stringify(c);
213
+ const h = wn.includes(n) && ye(Cn(a, l), i) !== void 0, p = JSON.stringify(ye(s.schemes[l], i)) === JSON.stringify(c);
214
214
  if (!(!h && !p))
215
215
  if ((d || l === "light") && t.push({ field: n, kind: h ? "brand_wins" : "equal_to_inherited", detail: d ? l : `${JSON.stringify(c)}` }), d) {
216
216
  const I = { ...o[n] };
@@ -220,7 +220,7 @@ function Sn(e, a, t) {
220
220
  }
221
221
  return Object.keys(o).length > 0 ? o : void 0;
222
222
  }
223
- function kn(e, a, t) {
223
+ function Sn(e, a, t) {
224
224
  const s = ye(e, ["chart", "dataset", "backgroundColor"]), o = ye(a, ["chart", "dataset", "backgroundColor"]), n = mt(ft, s);
225
225
  if (t === "light") return Array.isArray(s) ? n : void 0;
226
226
  const i = mt(n, mt(ft, o));
@@ -232,7 +232,7 @@ function mt(e, a) {
232
232
  const t = Math.max(e.length, a.length);
233
233
  return Array.from({ length: t }, (s, o) => a[o] !== void 0 ? String(a[o]) : e[o]);
234
234
  }
235
- function Tn(e, a) {
235
+ function kn(e, a) {
236
236
  if (!(e == null || e === "")) {
237
237
  if (e === "muted") return "muted";
238
238
  if (e === "clear") return "background";
@@ -240,8 +240,8 @@ function Tn(e, a) {
240
240
  a.push({ field: "canvas", kind: "dropped_colour", detail: String(e) });
241
241
  }
242
242
  }
243
- function Oe(e, a, t) {
244
- const { min: s, max: o } = rn[e], n = Math.min(o, Math.max(s, Math.round(a)));
243
+ function De(e, a, t) {
244
+ const { min: s, max: o } = nn[e], n = Math.min(o, Math.max(s, Math.round(a)));
245
245
  return n !== a && t.push({ field: e, kind: "clamped", detail: `${a} → ${n}` }), n;
246
246
  }
247
247
  function ht(e) {
@@ -258,19 +258,19 @@ const pt = {
258
258
  chartColors: (e, a) => a.chartColors = e,
259
259
  barCorners: (e, a) => a.barCorners = e
260
260
  };
261
- function Rn(e) {
261
+ function Tn(e) {
262
262
  var t;
263
263
  const a = {};
264
264
  for (const [s, o] of Object.entries(e ?? {}))
265
265
  o !== void 0 && ((t = pt[s]) == null || t.call(pt, o, a));
266
266
  return a;
267
267
  }
268
- const An = {
268
+ const Rn = {
269
269
  global_date: "The date filter for the whole report can't be changed through the MCP. Change it in the editor; removing or excluding it works.",
270
270
  not_semantic: "This filter reads a database table, not a dataset, so it can't be changed through the MCP. Change it in the editor; removing or excluding it works.",
271
271
  scope_not_expressible: "This filter applies to chosen cards rather than whole sheets, so it can't be changed through the MCP. Change it in the editor; removing or excluding it works."
272
272
  };
273
- function Fn(e, a, t = {}) {
273
+ function An(e, a, t = {}) {
274
274
  var d;
275
275
  const s = Ie(e), o = Eo(a.scope), n = new Set(Wa(e).map((l) => l.id)), i = {
276
276
  reaches: [],
@@ -357,7 +357,7 @@ function Fn(e, a, t = {}) {
357
357
  }
358
358
  return i;
359
359
  }
360
- function Dn(e, a) {
360
+ function Fn(e, a) {
361
361
  var o;
362
362
  const t = a.scope;
363
363
  if (t.kind === "allSheets") {
@@ -382,12 +382,12 @@ function es(e, a) {
382
382
  }
383
383
  function ts(e, a, t, s) {
384
384
  var E, _, S;
385
- const { input: o } = a, n = Fn(e, o, s), i = (y, D) => ({
385
+ const { input: o } = a, n = An(e, o, s), i = (y, D) => ({
386
386
  filterId: o.id,
387
387
  label: o.label,
388
388
  editable: !1,
389
389
  kind: D,
390
- notEditable: { reason: y, message: An[y] },
390
+ notEditable: { reason: y, message: Rn[y] },
391
391
  reaches: n.reaches,
392
392
  excluded: n.excluded,
393
393
  ...n.blocked ? { blocked: n.blocked } : {},
@@ -397,13 +397,13 @@ function ts(e, a, t, s) {
397
397
  if (o.filter.kind === "global-date") return i("global_date", "global_date");
398
398
  const d = ks(o.filter).filter((y) => y.kind === "semantic");
399
399
  if (d.length !== 1 || d[0].kind !== "semantic") return i("not_semantic", "field");
400
- const l = Dn(e, o);
400
+ const l = Fn(e, o);
401
401
  if (!l || a.origin !== "embeddedInput") return i("scope_not_expressible", "field");
402
402
  const c = ((E = o.filter.fieldMeta) == null ? void 0 : E.name) ?? ((_ = o.filter.column) == null ? void 0 : _.split(".").pop()) ?? "", h = Ha({
403
403
  dashboard: e,
404
404
  target: { kind: "dashboardInput", input: o, scope: {} },
405
405
  calendar: es(t, void 0)
406
- }).value, p = Ya(o.filter.dataType), I = p || (S = h == null ? void 0 : h.values) == null ? void 0 : S.filter((y) => ["string", "number", "boolean"].includes(typeof y)), v = Ja(h && "relativeMeta" in h ? h.relativeMeta : void 0), x = p ? v : void 0, w = x ? Zo(
406
+ }).value, p = Ya(o.filter.dataType), I = p || (S = h == null ? void 0 : h.values) == null ? void 0 : S.filter((y) => ["string", "number", "boolean"].includes(typeof y)), v = Ja(h && "relativeMeta" in h ? h.relativeMeta : void 0), x = p ? v : void 0, w = x ? Xo(
407
407
  x,
408
408
  { use: "filterDefault", columnHasTime: qa(o.filter) === "datetime" },
409
409
  "defaultPeriod"
@@ -427,7 +427,7 @@ function ts(e, a, t, s) {
427
427
  function as(e, a, t) {
428
428
  return Ie(e).inputs.map((s) => ts(e, s, a, t));
429
429
  }
430
- function Le(e, a, t, s) {
430
+ function Pe(e, a, t, s) {
431
431
  const o = Ie(e).findFilterInput({ inputId: a });
432
432
  return o ? ts(e, o, t, s) : void 0;
433
433
  }
@@ -455,7 +455,7 @@ function ns(e) {
455
455
  field: s
456
456
  }));
457
457
  }
458
- function On(e) {
458
+ function Dn(e) {
459
459
  const a = os(e), t = /* @__PURE__ */ new Map();
460
460
  for (const { field: s } of ns(e)) {
461
461
  const o = ss(s, a);
@@ -463,14 +463,14 @@ function On(e) {
463
463
  }
464
464
  return [...t.values()];
465
465
  }
466
- function En(e, a, t) {
466
+ function On(e, a, t) {
467
467
  if (!t) return;
468
468
  const s = la(a), o = ns(e).find((d) => la(d.ref) === s);
469
469
  if (!o) return;
470
470
  const n = ss(o.field, os(e)), i = n ? t[Nt(n)] : void 0;
471
471
  return i ? ot(i, o.field.name, n.datasetName) : void 0;
472
472
  }
473
- const xt = ["orientation", "stack", "donut", "totals", "dataLabels", "legend", "axes", "comparisonDisplay", "inheritComparison", "band"], qn = {
473
+ const xt = ["orientation", "stack", "donut", "totals", "dataLabels", "legend", "axes", "comparisonDisplay", "inheritComparison", "band", "seeRecords"], En = {
474
474
  orientation: "orientation",
475
475
  stack: "stacking",
476
476
  donut: "donut hole",
@@ -480,17 +480,18 @@ const xt = ["orientation", "stack", "donut", "totals", "dataLabels", "legend", "
480
480
  axes: "axes",
481
481
  comparisonDisplay: "comparison display",
482
482
  inheritComparison: "dashboard comparison",
483
- band: "band under its value"
484
- }, Nn = { x: "xAxisConfig", y: "yAxisConfig" }, gt = { x: "horizontal", y: "vertical" };
485
- function Pn(e) {
483
+ band: "band under its value",
484
+ seeRecords: "records to see"
485
+ }, qn = { x: "xAxisConfig", y: "yAxisConfig" }, gt = { x: "horizontal", y: "vertical" };
486
+ function Nn(e) {
486
487
  const a = `${e.sql ? "SQL " : ""}${qs(e.type)}`;
487
488
  return `${/^[aeiou]/i.test(a) ? "an" : "a"} ${a}`;
488
489
  }
489
- function Ln(e, a, t) {
490
+ function Pn(e, a, t) {
490
491
  const s = Object.fromEntries(Object.entries(a).filter(([o, n]) => n !== void 0 && !t.includes(o)));
491
492
  return Object.keys(s).length ? { op: "card.update", cardId: e.cardRef, ...s } : void 0;
492
493
  }
493
- function Mn(e, a, t, s, o) {
494
+ function Ln(e, a, t, s, o) {
494
495
  var v, x, w, E, _, S, y, D, $, N;
495
496
  const n = xt.filter((g) => t[g] !== void 0);
496
497
  if (!n.length) return {};
@@ -498,15 +499,15 @@ function Mn(e, a, t, s, o) {
498
499
  for (const g of d)
499
500
  o.push(
500
501
  Q("setting_not_for_card", {
501
- message: `${G(e.title)} is ${Pn(a)}, which has no ${qn[g]}.`,
502
+ message: `${G(e.title)} is ${Nn(a)}, which has no ${En[g]}.`,
502
503
  path: `${s.path}.${g}`,
503
504
  fix: i.length ? `Leave out ${g}; this card takes ${i.join(", ")}.` : `Leave out ${g}.`,
504
505
  allowed: i,
505
- suggestedChange: Ln(s, t, d)
506
+ suggestedChange: Pn(s, t, d)
506
507
  })
507
508
  );
508
509
  if (d.length) return {};
509
- const l = {}, c = ((v = qe(e)) == null ? void 0 : v.properties) ?? {}, h = {
510
+ const l = {}, c = ((v = Ee(e)) == null ? void 0 : v.properties) ?? {}, h = {
510
511
  ...c,
511
512
  ...t.orientation !== void 0 ? { orientation: t.orientation } : {},
512
513
  ...t.stack !== void 0 ? { stack: t.stack } : {},
@@ -523,8 +524,8 @@ function Mn(e, a, t, s, o) {
523
524
  t.dataLabels.show !== Ds(p) && (g.show = t.dataLabels.show);
524
525
  const k = t.dataLabels.format;
525
526
  if (k === null && ((w = I.dataLabels) != null && w.format) && (g.format = null), k) {
526
- const T = Bn(e, a, k, `${s.path}.dataLabels.format`, o);
527
- T && !Pe(T, (E = I.dataLabels) == null ? void 0 : E.format) && (g.format = T);
527
+ const T = Mn(e, a, k, `${s.path}.dataLabels.format`, o);
528
+ T && !Ne(T, (E = I.dataLabels) == null ? void 0 : E.format) && (g.format = T);
528
529
  }
529
530
  Object.keys(g).length && (l.dataLabels = g);
530
531
  }
@@ -537,8 +538,8 @@ function Mn(e, a, t, s, o) {
537
538
  for (const T of ["x", "y"]) {
538
539
  const L = t.axes[T];
539
540
  if (!L) continue;
540
- const V = Vn(e, T, L, ((y = I.axes) == null ? void 0 : y[T]) ?? {}, T === g, `${s.path}.axes.${T}`, o);
541
- V && (k[Nn[T]] = V);
541
+ const V = Bn(e, T, L, ((y = I.axes) == null ? void 0 : y[T]) ?? {}, T === g, `${s.path}.axes.${T}`, o);
542
+ V && (k[qn[T]] = V);
542
543
  }
543
544
  Object.keys(k).length && (l.axes = k);
544
545
  }
@@ -546,7 +547,7 @@ function Mn(e, a, t, s, o) {
546
547
  const g = (D = e.preferences) == null ? void 0 : D.comparisonPresentation, k = {}, { show: T, mode: L, precision: V } = t.comparisonDisplay;
547
548
  T !== void 0 && T !== ((g == null ? void 0 : g.showComparison) ?? !0) && (k.show = T), L !== void 0 && L !== ((g == null ? void 0 : g.displayMode) ?? "difference") && (k.mode = L), V !== void 0 && V !== ((g == null ? void 0 : g.precision) ?? null) && (k.precision = V), Object.keys(k).length && (l.comparisonDisplay = k);
548
549
  }
549
- return t.inheritComparison !== void 0 && t.inheritComparison !== ((($ = e.preferences) == null ? void 0 : $.inheritGlobalComparison) !== !1) && (l.inheritComparison = t.inheritComparison), t.band !== void 0 && (t.band === "trend" && !Es(e.config) ? o.push(
550
+ return t.inheritComparison !== void 0 && t.inheritComparison !== ((($ = e.preferences) == null ? void 0 : $.inheritGlobalComparison) !== !1) && (l.inheritComparison = t.inheritComparison), t.seeRecords !== void 0 && t.seeRecords !== (e.seeRecords !== !1) && (l.seeRecords = t.seeRecords), t.band !== void 0 && (t.band === "trend" && !Es(e.config) ? o.push(
550
551
  Q("value_invalid", {
551
552
  message: `${G(e.title)} has no Trend By date, so it has no trend to show.`,
552
553
  path: `${s.path}.band`,
@@ -555,8 +556,8 @@ function Mn(e, a, t, s, o) {
555
556
  })
556
557
  ) : t.band !== (((N = e.config) == null ? void 0 : N.kpiBand) ?? "automatic") && (l.band = t.band === "automatic" ? null : t.band)), l;
557
558
  }
558
- function Bn(e, a, t, s, o) {
559
- const n = String(t.type), i = Ns("cartesian", "number"), d = Me(n), l = d == null ? void 0 : d.safeParse(t);
559
+ function Mn(e, a, t, s, o) {
560
+ const n = String(t.type), i = Ns("cartesian", "number"), d = Le(n), l = d == null ? void 0 : d.safeParse(t);
560
561
  if (!i.includes(n) || !(l != null && l.success)) {
561
562
  const h = l && !l.success ? l.error.issues[0] : void 0;
562
563
  o.push(
@@ -576,7 +577,7 @@ function Bn(e, a, t, s, o) {
576
577
  }
577
578
  return l.data;
578
579
  }
579
- function Vn(e, a, t, s, o, n, i) {
580
+ function Bn(e, a, t, s, o, n, i) {
580
581
  const d = {};
581
582
  t.title !== void 0 && (t.title !== null && !t.title.trim() ? i.push(Q("value_invalid", { message: "An axis title can't be empty.", path: `${n}.title`, fix: "Send a title, or null for none." })) : (t.title ?? void 0) !== s.title && (d.title = t.title));
582
583
  const l = ["min", "max"].filter((c) => t[c] !== void 0 && t[c] !== null);
@@ -625,25 +626,25 @@ function $a(e, a, t, s, o) {
625
626
  });
626
627
  }
627
628
  const is = (e) => e.granularity ? `a date grouped by ${e.granularity}` : e.dataType ? `a ${e.dataType.toLowerCase()}` : "this column";
628
- function ke(e, a) {
629
+ function Se(e, a) {
629
630
  return `${e}.columns[${JSON.stringify(a)}]`;
630
631
  }
631
632
  function St(e, a, t, s) {
632
633
  const { [s]: o, ...n } = t;
633
634
  return Object.keys(n).length ? { op: "card.update", cardId: e.cardRef, columns: { [a]: n } } : void 0;
634
635
  }
635
- function jn(e, a, t) {
636
+ function Vn(e, a, t) {
636
637
  const { hidden: s, width: o, ...n } = t;
637
638
  return Object.keys(n).length ? { op: "card.update", cardId: e.cardRef, columns: { [a]: n } } : void 0;
638
639
  }
639
640
  function We(e, a, t) {
640
641
  return { op: "card.update", cardId: e.cardRef, columns: { [a]: { format: t } } };
641
642
  }
642
- function Kn(e, a, t, s, o, n, i) {
643
+ function jn(e, a, t, s, o, n, i) {
643
644
  var c;
644
645
  const d = o.label;
645
646
  if (d === void 0 || d === t.label) return;
646
- const l = `${ke(n.path, s)}.label`;
647
+ const l = `${Se(n.path, s)}.label`;
647
648
  if (!a.settings.has("columns.label") || !t.labelKey) {
648
649
  i.push(
649
650
  Q("setting_not_for_card", {
@@ -656,7 +657,7 @@ function Kn(e, a, t, s, o, n, i) {
656
657
  return;
657
658
  }
658
659
  if (d === null) {
659
- const h = ((c = En(e, t.ref, n.catalogs)) == null ? void 0 : c.label) || t.field || t.label;
660
+ const h = ((c = On(e, t.ref, n.catalogs)) == null ? void 0 : c.label) || t.field || t.label;
660
661
  return t.labelInherited && t.label === h ? void 0 : { key: t.labelKey, label: h, origin: "semantic" };
661
662
  }
662
663
  if (!d.trim()) {
@@ -665,9 +666,9 @@ function Kn(e, a, t, s, o, n, i) {
665
666
  }
666
667
  return { key: t.labelKey, label: d };
667
668
  }
668
- function Wn(e, a, t, s, o, n, i) {
669
+ function Kn(e, a, t, s, o, n, i) {
669
670
  var g, k;
670
- const d = `${ke(n.path, s)}.format`;
671
+ const d = `${Se(n.path, s)}.format`;
671
672
  if (!a.settings.has("columns.format")) {
672
673
  i.push(Q("setting_not_for_card", { message: `${G(e.title)} takes no column formats.`, path: d }));
673
674
  return;
@@ -679,7 +680,7 @@ function Wn(e, a, t, s, o, n, i) {
679
680
  ...h ? { catalogFormat: h } : {}
680
681
  }), I = p.source === "override" ? p.format : void 0;
681
682
  if (o === null) return I ? null : void 0;
682
- if (I && Pe(o, I)) return;
683
+ if (I && Ne(o, I)) return;
683
684
  const v = js(e, a, t, n.sqlResultColumns), x = v.value, w = Ks(v);
684
685
  if (w.length === 0) {
685
686
  i.push($a(e, s, d, t, x));
@@ -711,15 +712,15 @@ function Wn(e, a, t, s, o, n, i) {
711
712
  );
712
713
  return;
713
714
  }
714
- const y = Me(S), D = y == null ? void 0 : y.safeParse(_);
715
+ const y = Le(S), D = y == null ? void 0 : y.safeParse(_);
715
716
  if (!y || !(D != null && D.success)) {
716
717
  const T = D && !D.success ? D.error.issues[0] : void 0;
717
718
  i.push(
718
719
  Q("format_invalid", {
719
720
  message: y ? (T == null ? void 0 : T.code) === "unrecognized_keys" ? `A ${S} format has no ${T.keys.join(", ")}.` : `That format for ${s} isn't valid: ${(T == null ? void 0 : T.message) ?? "invalid"}.` : `${JSON.stringify(S)} isn't a format type.`,
720
721
  path: d,
721
- fix: Hn(S),
722
- allowed: y ? ze(S) : [...cn],
722
+ fix: Qn(S),
723
+ allowed: y ? ze(S) : [...ln],
723
724
  ...p.format ? { suggestedChange: We(n, s, p.format) } : {}
724
725
  })
725
726
  );
@@ -727,7 +728,7 @@ function Wn(e, a, t, s, o, n, i) {
727
728
  }
728
729
  const $ = D.data;
729
730
  if ($.type === "temporal_bucket" && t.granularity && !ya($, t.granularity).ok) {
730
- const L = un.filter(
731
+ const L = cn.filter(
731
732
  (V) => ya({ presentation: { mode: "preset", preset: V } }, t.granularity).ok
732
733
  );
733
734
  i.push(
@@ -741,7 +742,7 @@ function Wn(e, a, t, s, o, n, i) {
741
742
  return;
742
743
  }
743
744
  if ($.type === "date") {
744
- const T = o, L = p.format ?? {}, V = Object.keys(T).filter((K) => !ca.includes(K) && !Pe(T[K], L[K]));
745
+ const T = o, L = p.format ?? {}, V = Object.keys(T).filter((K) => !ca.includes(K) && !Ne(T[K], L[K]));
745
746
  if (V.length) {
746
747
  const K = Object.fromEntries(Object.entries($).filter(([B]) => !V.includes(B)));
747
748
  i.push(
@@ -768,13 +769,13 @@ function Wn(e, a, t, s, o, n, i) {
768
769
  );
769
770
  return;
770
771
  }
771
- return I && Pe(I, $) ? void 0 : $;
772
+ return I && Ne(I, $) ? void 0 : $;
772
773
  }
773
- function Un(e, a, t, s, o, n, i) {
774
+ function Wn(e, a, t, s, o, n, i) {
774
775
  var w, E;
775
776
  const d = o.polarity;
776
777
  if (d === void 0) return;
777
- const l = `${ke(n.path, s)}.polarity`, c = t.ref;
778
+ const l = `${Se(n.path, s)}.polarity`, c = t.ref;
778
779
  if (!(a.settings.has("columns.polarity") && (c.kind === "sqlKpiValue" || c.kind === "field" && t.role === "measure"))) {
779
780
  i.push(
780
781
  Q("setting_not_for_card", {
@@ -802,10 +803,10 @@ function Un(e, a, t, s, o, n, i) {
802
803
  }
803
804
  return d === (x ?? v ?? va) ? void 0 : d;
804
805
  }
805
- function Gn(e, a, t, s, o, n, i, d) {
806
+ function Un(e, a, t, s, o, n, i, d) {
806
807
  var h, p, I;
807
808
  if (o.hidden === void 0 && o.width === void 0) return {};
808
- const l = ke(i.path, s);
809
+ const l = Se(i.path, s);
809
810
  if (!a.settings.has("columns.hidden") || t.resultKey === void 0) {
810
811
  const v = a.pivoted && t.role === "measure";
811
812
  return d.push(
@@ -813,7 +814,7 @@ function Gn(e, a, t, s, o, n, i, d) {
813
814
  message: v ? `${s} on ${G(e.title)} has a column for each pivot value; hide or size them in the editor.` : `${G(e.title)} has no hidden columns or column widths; those are for tables.`,
814
815
  path: `${l}.${o.hidden !== void 0 ? "hidden" : "width"}`,
815
816
  allowed: v ? ["label", "format"] : ["label", "format"].filter((x) => a.settings.has(`columns.${x}`)),
816
- suggestedChange: jn(i, s, o)
817
+ suggestedChange: Vn(i, s, o)
817
818
  })
818
819
  ), {};
819
820
  }
@@ -830,7 +831,7 @@ function Gn(e, a, t, s, o, n, i, d) {
830
831
  }
831
832
  return c;
832
833
  }
833
- function Qn(e, a, t) {
834
+ function Gn(e, a, t) {
834
835
  var E, _, S, y;
835
836
  const { columns: s = {}, ...o } = a.settings ?? {}, n = [], i = xt.some((D) => o[D] !== void 0), d = !!((_ = (E = a.highlights) == null ? void 0 : E.add) != null && _.length || (y = (S = a.highlights) == null ? void 0 : S.remove) != null && y.length);
836
837
  if (!Object.keys(s).length && !i && !d) return { ok: !0, labels: [], settings: null, warnings: [] };
@@ -840,9 +841,9 @@ function Qn(e, a, t) {
840
841
  ok: !1,
841
842
  problems: [Q("setting_not_for_card", { message: `${G(e.title)} takes no card settings through this tool.`, path: t.path })]
842
843
  };
843
- const c = Mn(e, l, o, t, n), h = Ls(e, l, t.sqlResultColumns), p = d ? Ms(e, l, h, a.highlights, t, n) : void 0, I = Ft(e), v = [], x = [];
844
+ const c = Ln(e, l, o, t, n), h = Ls(e, l, t.sqlResultColumns), p = d ? Ms(e, l, h, a.highlights, t, n) : void 0, I = Ft(e), v = [], x = [];
844
845
  for (const [D, $] of Object.entries(s)) {
845
- const N = Bs(h, D, { path: ke(t.path, D), cardTitle: G(e.title) });
846
+ const N = Bs(h, D, { path: Se(t.path, D), cardTitle: G(e.title) });
846
847
  if (!N.ok) {
847
848
  n.push(N.problem);
848
849
  continue;
@@ -852,15 +853,15 @@ function Qn(e, a, t) {
852
853
  n.push(
853
854
  Q("columns_unavailable", {
854
855
  message: `${G(e.title)}'s columns weren't read from its query, so ${D} can't be checked.`,
855
- path: ke(t.path, D),
856
+ path: Se(t.path, D),
856
857
  fix: "Check that the card runs and returns rows, then propose again."
857
858
  })
858
859
  );
859
860
  continue;
860
861
  }
861
- const k = Kn(e, l, g, D, $, t, n);
862
+ const k = jn(e, l, g, D, $, t, n);
862
863
  k && v.push(k);
863
- const T = Gn(e, l, g, D, $, I.columns[g.name], t, n), L = $.format !== void 0 ? Wn(e, l, g, D, $.format, t, n) : void 0, V = Un(e, l, g, D, $, t, n), K = {
864
+ const T = Un(e, l, g, D, $, I.columns[g.name], t, n), L = $.format !== void 0 ? Kn(e, l, g, D, $.format, t, n) : void 0, V = Wn(e, l, g, D, $, t, n), K = {
864
865
  column: g.ref,
865
866
  ...T,
866
867
  ...L !== void 0 ? { format: L } : {},
@@ -872,11 +873,11 @@ function Qn(e, a, t) {
872
873
  const w = { ...c, ...x.length ? { columns: x } : {}, ...p ? { highlights: p } : {} };
873
874
  return { ok: !0, labels: v, settings: Object.keys(w).length ? w : null, warnings: [] };
874
875
  }
875
- function Hn(e) {
876
- const a = Me(e), t = a && a === Me("number") ? ua.number : e === "temporal_bucket" || e === "date" ? ua[e] : void 0;
876
+ function Qn(e) {
877
+ const a = Le(e), t = a && a === Le("number") ? ua.number : e === "temporal_bucket" || e === "date" ? ua[e] : void 0;
877
878
  return t ? `Send a stored format: ${t}.` : "Send the format in the stored shape the outline shows.";
878
879
  }
879
- function zn(e, a, t, s, o) {
880
+ function Hn(e, a, t, s, o) {
880
881
  var _, S, y, D, $, N;
881
882
  const n = we(e, { sql: !0, calculations: !1 });
882
883
  if (!n.editable) return [n.message];
@@ -908,7 +909,7 @@ function zn(e, a, t, s, o) {
908
909
  const T = g && typeof g == "object" ? g.aggregate : void 0;
909
910
  T && _a(E[k] ?? {}) !== T && p.push(`the aggregate of measures[${k}]`);
910
911
  });
911
- for (const { key: g, label: k } of Ne(a))
912
+ for (const { key: g, label: k } of qe(a))
912
913
  Ws(e, g) !== k && p.push(`the label "${k}"`);
913
914
  if (!o || o.aspects.includes("filters")) {
914
915
  const g = d.filters ?? [];
@@ -922,7 +923,7 @@ function zn(e, a, t, s, o) {
922
923
  (B) => !(c != null && c.timeWindow) && !g.some((se) => V(se, B))
923
924
  );
924
925
  (!K.length || K.some((B) => !k.some((se) => V(B, se)))) && p.push("timeWindow"), k = k.filter((B) => !K.some((se) => V(se, B)));
925
- } else T ? en(d.timeWindow, i.timeWindow) || p.push("timeWindow") : L && p.push("timeWindow");
926
+ } else T ? Zo(d.timeWindow, i.timeWindow) || p.push("timeWindow") : L && p.push("timeWindow");
926
927
  (g.length !== k.length || g.some((K, B) => !V(K, k[B]))) && p.push("filters");
927
928
  }
928
929
  if (d.orderBy !== void 0) {
@@ -944,7 +945,7 @@ function Je(e, a) {
944
945
  const t = e.variables ?? [];
945
946
  return t.find((s) => s.name === a) ?? t.find((s) => s.id === a);
946
947
  }
947
- function Yn(e, a, t, s) {
948
+ function zn(e, a, t, s) {
948
949
  var i;
949
950
  const o = Je(e, a);
950
951
  o || s.problem(ls(e, a, t));
@@ -1025,7 +1026,7 @@ async function wa(e, a, t) {
1025
1026
  dataSource: h.dataSource,
1026
1027
  connectionId: h.connectionId,
1027
1028
  get: "only",
1028
- ...(y = d.filters) != null && y.length ? { conditions: await Xn(d, n, i, t.refuseAll) } : {}
1029
+ ...(y = d.filters) != null && y.length ? { conditions: await Jn(d, n, i, t.refuseAll) } : {}
1029
1030
  };
1030
1031
  if (l.kind === "aggregate") {
1031
1032
  (v.length !== 1 || x.length) && s({
@@ -1034,7 +1035,7 @@ async function wa(e, a, t) {
1034
1035
  path: `${i}.query`,
1035
1036
  fix: `Send measures: [{ name, aggregate }] alone; for one field's value use get: "only", "first" or "list" with dimensions: [field].`
1036
1037
  }), d.orderBy && s({ code: "invalid_change", message: "An aggregate is one value, so it has no order.", path: `${i}.query.orderBy`, fix: "Leave out orderBy." });
1037
- const $ = I(v[0], `${i}.query.measures[0]`), N = typeof v[0] == "string" ? void 0 : v[0].aggregate, g = pn($).filter((L) => Ca(L.value)), k = N ?? (ut($) ? "calculation" : gn($));
1038
+ const $ = I(v[0], `${i}.query.measures[0]`), N = typeof v[0] == "string" ? void 0 : v[0].aggregate, g = hn($).filter((L) => Ca(L.value)), k = N ?? (ut($) ? "calculation" : pn($));
1038
1039
  if (!Ca(k) || !g.some((L) => L.value === k)) {
1039
1040
  const L = g.map((V) => V.value);
1040
1041
  s({
@@ -1045,7 +1046,7 @@ async function wa(e, a, t) {
1045
1046
  allowed: L
1046
1047
  });
1047
1048
  }
1048
- const T = Jn(v[0], { ...w, field: $, get: k }, `${i}.query.measures[0].comparison`, s);
1049
+ const T = Yn(v[0], { ...w, field: $, get: k }, `${i}.query.measures[0].comparison`, s);
1049
1050
  return S(Ye({ ...w, field: $, get: k, ...T ? { comparison: T } : {} }, a));
1050
1051
  }
1051
1052
  (x.length !== 1 || v.length) && s({
@@ -1090,7 +1091,7 @@ async function wa(e, a, t) {
1090
1091
  return g.length && t.refuseAll(cs(g, i)), N;
1091
1092
  }
1092
1093
  }
1093
- function Jn(e, a, t, s) {
1094
+ function Yn(e, a, t, s) {
1094
1095
  var n, i;
1095
1096
  const o = typeof e == "string" ? void 0 : e.comparison;
1096
1097
  if (!(!o || o.kind === "inherit" || o.kind === "off"))
@@ -1099,14 +1100,14 @@ function Jn(e, a, t, s) {
1099
1100
  message: "A variable compares with an earlier period, not a target.",
1100
1101
  path: t,
1101
1102
  fix: "Send comparison: { kind: 'previous_period' } or { kind: 'previous_year' }; put a target in the words, or on a KPI card."
1102
- }), yn(a) || s({
1103
+ }), bn(a) || s({
1103
1104
  code: "invalid_change",
1104
1105
  message: `${((n = a.field) == null ? void 0 : n.label) || ((i = a.field) == null ? void 0 : i.name)} with ${String(a.get)} isn't a number, so it has no comparison.`,
1105
1106
  path: t,
1106
1107
  fix: "Compare a count, or a numeric field's total, average, lowest or highest; leave comparison out here."
1107
1108
  }), Xs(o);
1108
1109
  }
1109
- async function Xn(e, a, t, s) {
1110
+ async function Jn(e, a, t, s) {
1110
1111
  var n;
1111
1112
  const o = await a.compileCardQuery({
1112
1113
  query: { domainId: e.domainId, datasetName: e.datasetName, measures: ["__count"], filters: e.filters },
@@ -1114,8 +1115,8 @@ async function Xn(e, a, t, s) {
1114
1115
  });
1115
1116
  return o.ok ? ((n = o.part.config) == null ? void 0 : n.filters) ?? null : s(o.problems.map((i) => ({ ...i, path: i.path ? `${t}.query.${i.path}` : `${t}.query.filters` })));
1116
1117
  }
1117
- function Zn(e, a, t, s, o) {
1118
- const n = ds(a), i = bn(e);
1118
+ function Xn(e, a, t, s, o) {
1119
+ const n = ds(a), i = gn(e);
1119
1120
  n.kind === "aggregate" && e.get.kind !== "aggregate" && s.problem({ code: "invalid_change", message: `${e.name} reads a field's rows; an aggregate needs its measure.`, path: `${o}.get`, fix: 'Send query with measures: [{ name, aggregate }] and get: "aggregate".' }), n.kind !== "aggregate" && e.get.kind === "aggregate" && s.problem({ code: "invalid_change", message: `${e.name} is an aggregate; a value, the first or a list reads a dimension.`, path: `${o}.get`, fix: "Send query with dimensions: [field] and the get." }), i.mode === "sql" && n.kind !== "only" && n.kind !== "first" && s.problem({ code: "invalid_change", message: "A SQL variable takes the only row or the first row of its result.", path: `${o}.get`, fix: 'Send get: "only" or "first", or write the list in the SQL itself.' });
1120
1121
  const d = Ye(
1121
1122
  {
@@ -1128,7 +1129,7 @@ function Zn(e, a, t, s, o) {
1128
1129
  );
1129
1130
  return { query: d.query, get: d.get };
1130
1131
  }
1131
- function ei(e, a) {
1132
+ function Zn(e, a) {
1132
1133
  const t = Qa(e).filter(({ ref: i }) => i.source === "data" && i.variableId === a), s = (i) => {
1133
1134
  var d;
1134
1135
  return `"${((d = (e.sheets ?? []).find((l) => l.id === i)) == null ? void 0 : d.title) ?? i}"`;
@@ -1144,7 +1145,7 @@ function ei(e, a) {
1144
1145
  )
1145
1146
  ].join(", "), places: t };
1146
1147
  }
1147
- function ti(e, a, t, s, o) {
1148
+ function ei(e, a, t, s, o) {
1148
1149
  const { problem: n } = o;
1149
1150
  (!Xe(t) || !t.document) && n({
1150
1151
  code: "invalid_change",
@@ -1170,7 +1171,7 @@ function ti(e, a, t, s, o) {
1170
1171
  path: `${s}.style`,
1171
1172
  fix: "Leave style out for a footer line."
1172
1173
  });
1173
- const _ = i[w] ? Qo(i[w].blocks, E) : void 0;
1174
+ const _ = i[w] ? Go(i[w].blocks, E) : void 0;
1174
1175
  l = (_ == null ? void 0 : _.content) ?? [], c = _ == null ? void 0 : _.style;
1175
1176
  }
1176
1177
  const h = e.style !== void 0 ? Hs(e.style) : void 0, p = !h || Object.entries(h).every(([w, E]) => (c == null ? void 0 : c[w]) === E);
@@ -1203,9 +1204,9 @@ const xa = "A text card takes title, description and text.", bt = (e) => e.cards
1203
1204
  function us(e, a) {
1204
1205
  return a.path.reduce((t, s) => typeof s == "number" ? `${t}[${s}]` : `${t}.${s}`, e);
1205
1206
  }
1206
- const ai = { max: _o, what: "A proposal", fix: "Split the changes into several proposals." };
1207
- async function Dr(e, a, t) {
1208
- return fs(e, a, t, { limit: ai });
1207
+ const ti = { max: _o, what: "A proposal", fix: "Split the changes into several proposals." };
1208
+ async function Fr(e, a, t) {
1209
+ return fs(e, a, t, { limit: ti });
1209
1210
  }
1210
1211
  async function fs(e, a, t, s) {
1211
1212
  var Gt, Qt, Ht, zt, Yt, Jt, Xt, Zt, ea, ta, aa, sa, oa, na, ia, ra;
@@ -1232,7 +1233,7 @@ async function fs(e, a, t, s) {
1232
1233
  return;
1233
1234
  }
1234
1235
  for (const u of f.error.issues) {
1235
- const b = tn(u.message);
1236
+ const b = en(u.message);
1236
1237
  o.push({
1237
1238
  code: "invalid_change",
1238
1239
  message: (b == null ? void 0 : b.message) ?? u.message,
@@ -1259,7 +1260,7 @@ async function fs(e, a, t, s) {
1259
1260
  if (!O && !A && !F && !((Y = C == null ? void 0 : C.remove) != null && Y.length)) return null;
1260
1261
  const R = ie(v, r).card, P = Object.values(O ?? {}).some((H) => H.label === null), q = Object.values(O ?? {}).some((H) => H.format !== void 0 && H.format !== null), M = {};
1261
1262
  if (P && !((j = R.sql) != null && j.trim()))
1262
- for (const H of On(R)) {
1263
+ for (const H of Dn(R)) {
1263
1264
  const de = await t.loadCardSource(H);
1264
1265
  de && (M[Nt(H)] = de.fields);
1265
1266
  }
@@ -1278,7 +1279,7 @@ async function fs(e, a, t, s) {
1278
1279
  fix: "Check that the card runs and returns rows, then propose again."
1279
1280
  }), z = H;
1280
1281
  }
1281
- const W = Qn(
1282
+ const W = Gn(
1282
1283
  R,
1283
1284
  {
1284
1285
  settings: { ...b, ...O ? { columns: O } : { columns: void 0 } },
@@ -1296,7 +1297,7 @@ async function fs(e, a, t, s) {
1296
1297
  if (!W.ok)
1297
1298
  throw o.push(...W.problems), new me();
1298
1299
  for (const H of W.labels) {
1299
- const de = m.queryLabels.find((Fe) => He(Fe.key, H.key) && Fe.label !== H.label);
1300
+ const de = m.queryLabels.find((Ae) => He(Ae.key, H.key) && Ae.label !== H.label);
1300
1301
  de && y({
1301
1302
  code: "value_invalid",
1302
1303
  message: `Two labels are stated for one column of "${R.title || "Untitled"}": "${de.label}" in the query and "${H.label}" in columns.`,
@@ -1352,7 +1353,8 @@ async function fs(e, a, t, s) {
1352
1353
  axes: m.axes,
1353
1354
  comparisonDisplay: m.comparisonDisplay,
1354
1355
  inheritComparison: m.inheritComparison,
1355
- band: m.band
1356
+ band: m.band,
1357
+ seeRecords: m.seeRecords
1356
1358
  }), K = (m) => Object.entries(V(m)).filter(([, r]) => r !== void 0).map(([r]) => r), B = (m) => (o.push(...m.slice(0, -1)), y(m[m.length - 1])), se = (m, r, f, u) => {
1357
1359
  const { card: b } = r, C = [...m.type ? ["type"] : [], ...m.query ? ["query"] : [], ...m.matrix ? ["matrix"] : [], ...K(m)];
1358
1360
  C.length && y({
@@ -1432,7 +1434,7 @@ async function fs(e, a, t, s) {
1432
1434
  }, Bt = (m, r) => {
1433
1435
  const f = m.startsWith("$") ? void 0 : Je(v, m);
1434
1436
  return f ? f.id : oe(m, r);
1435
- }, Re = { services: t, problem: y, refuseAll: B, need: D }, nt = () => (v.sheets ?? []).filter((m) => !Xe(m)), Be = () => nt().map((m) => ({ sheetId: m.id, title: m.title ?? "" })), it = (m, r, f) => {
1437
+ }, Te = { services: t, problem: y, refuseAll: B, need: D }, nt = () => (v.sheets ?? []).filter((m) => !Xe(m)), Be = () => nt().map((m) => ({ sheetId: m.id, title: m.title ?? "" })), it = (m, r, f) => {
1436
1438
  let u = m;
1437
1439
  if (m.startsWith("$")) {
1438
1440
  const C = h.get(m);
@@ -1445,17 +1447,17 @@ async function fs(e, a, t, s) {
1445
1447
  }
1446
1448
  const b = (v.sheets ?? []).find((C) => C.id === u);
1447
1449
  return b || y({ code: "sheet_not_found", message: `There's no sheet ${u} on this dashboard.`, path: r, fix: "Read the outline again and use its sheet ids.", details: { sheets: Be() } }), f.grid && Xe(b) && y({ code: "sheet_not_a_grid", message: `"${b.title}" is a Document sheet.`, path: r, fix: "Add the card to a grid sheet; Document sheets are changed in the editor.", details: { sheets: Be() } }), b;
1448
- }, Ae = (m, r) => it(m, r, { grid: !0 }), Vt = (m, r) => m.map((f, u) => Ae(f, `${r}.sheetIds[${u}]`).id), jt = (m, r, f, u) => {
1450
+ }, Re = (m, r) => it(m, r, { grid: !0 }), Vt = (m, r) => m.map((f, u) => Re(f, `${r}.sheetIds[${u}]`).id), jt = (m, r, f, u) => {
1449
1451
  var A;
1450
1452
  for (const F of Ma(r, f)) y({ ...F, path: `${u}.${F.path}` });
1451
- const b = De[m], C = tt(r), O = r.dateField;
1453
+ const b = Fe[m], C = tt(r), O = r.dateField;
1452
1454
  if (O && typeof O != "string" && O.label && !r.timeGrain && y({
1453
1455
  code: "invalid_change",
1454
1456
  message: "A label names a column, and the date field is a column only when the card groups by it.",
1455
1457
  path: `${u}.query.dateField.label`,
1456
1458
  fix: "Send timeGrain to group by the date, or leave the label out."
1457
1459
  }), !b.forms.includes(C)) {
1458
- const F = Object.keys(De).filter((R) => De[R].forms.includes(C));
1460
+ const F = Object.keys(Fe).filter((R) => Fe[R].forms.includes(C));
1459
1461
  y({
1460
1462
  code: "type_not_supported",
1461
1463
  message: `A ${m.replace(/_/g, " ")} card takes ${b.forms.map((R) => Ue[R]).join(" or ")}, not ${Ue[C]}.`,
@@ -1512,7 +1514,7 @@ async function fs(e, a, t, s) {
1512
1514
  fix: m.code === "query_not_kept" ? "Tell the user to make this change in the editor." : "Read the outline again and propose again.",
1513
1515
  details: { reason: "not_expressible", ..."parts" in m ? { parts: m.parts } : {} }
1514
1516
  }), Wt = (m, r, f, u, b, C, O) => {
1515
- const A = zn(m, r, f, C, O);
1517
+ const A = Hn(m, r, f, C, O);
1516
1518
  if (!A.length) return;
1517
1519
  const F = r;
1518
1520
  if (A.length === 1 && A[0] === "dateField" && F.dateField && !F.timeGrain && !F.timeWindow) {
@@ -1540,15 +1542,15 @@ async function fs(e, a, t, s) {
1540
1542
  if (!A.ok)
1541
1543
  throw o.push(...A.problems.map((q) => ({ ...q, path: q.path ? `${u}.query.${q.path}` : `${u}.query` }))), new me();
1542
1544
  n.push(...A.warnings.map((q) => ({ ...q, path: q.path ?? `${u}.query` })));
1543
- const F = !b && "timeWindow" in r && r.timeWindow ? ui(A.part.config) : void 0;
1545
+ const F = !b && "timeWindow" in r && r.timeWindow ? ci(A.part.config) : void 0;
1544
1546
  F && "timeWindow" in r && r.timeWindow && hs(r.timeWindow, { use: "cardFilter", columnHasTime: uo(F) }, `${u}.query.timeWindow`, y);
1545
1547
  let R = { ...A.part, type: C };
1546
1548
  const P = R.config ?? {};
1547
1549
  if (C === "detailTable") {
1548
1550
  const q = fo(mo("table", "detailTable", P)) ?? {};
1549
- R = { ...R, config: oi(q) };
1551
+ R = { ...R, config: si(q) };
1550
1552
  }
1551
- return C === "matrixTable" && (R = await vs(R, P, r, f, u)), ni(R, Ne(r));
1553
+ return C === "matrixTable" && (R = await vs(R, P, r, f, u)), oi(R, qe(r));
1552
1554
  }, vs = async (m, r, f, u, b) => {
1553
1555
  var q;
1554
1556
  const C = await t.loadCardSource({ domainId: f.domainId, datasetName: f.datasetName });
@@ -1584,13 +1586,13 @@ async function fs(e, a, t, s) {
1584
1586
  message: `${r.position.after} isn't a card on a grid sheet.`,
1585
1587
  path: `${f}.position.after`,
1586
1588
  fix: "Use a cardId from semaphor_get_dashboard_details on the same sheet, or a handle from this proposal."
1587
- }) : (r.sheetId && Ae(r.sheetId, `${f}.sheetId`).id !== j.sheetId && y({
1589
+ }) : (r.sheetId && Re(r.sheetId, `${f}.sheetId`).id !== j.sheetId && y({
1588
1590
  code: "invalid_change",
1589
1591
  message: `position.after names a card on another sheet than ${r.sheetId}.`,
1590
1592
  path: `${f}.position.after`,
1591
1593
  fix: "Leave out sheetId, or name the card's sheet."
1592
1594
  }), { sheetId: j.sheetId, frameId: j.frameId });
1593
- })() : void 0, b = u ? Ae(u.sheetId, `${f}.position.after`) : r.sheetId ? Ae(r.sheetId, `${f}.sheetId`) : (() => {
1595
+ })() : void 0, b = u ? Re(u.sheetId, `${f}.position.after`) : r.sheetId ? Re(r.sheetId, `${f}.sheetId`) : (() => {
1594
1596
  const Y = nt();
1595
1597
  return Y.length !== 1 && y({
1596
1598
  code: Y.length ? "sheet_required" : "sheet_not_a_grid",
@@ -1608,7 +1610,7 @@ async function fs(e, a, t, s) {
1608
1610
  Y.length && y({ code: "invalid_change", message: `A text card takes no ${et(Y)}.`, path: f, fix: xa }), r.text === void 0 && y({ code: "invalid_change", message: "A text card needs its words in text.", path: `${f}.text`, fix: xa });
1609
1611
  const j = ga({ text: r.text, context: { dashboard: v, place: { kind: "sheet", sheetId: b.id } }, path: `${f}.text` });
1610
1612
  j.ok || B(j.problems);
1611
- const ne = zo({
1613
+ const ne = Ho({
1612
1614
  id: t.newId(),
1613
1615
  title: r.title,
1614
1616
  ...r.description ? { description: r.description } : {},
@@ -1626,7 +1628,7 @@ async function fs(e, a, t, s) {
1626
1628
  const F = yt(r.query), R = F.query, P = r.type;
1627
1629
  jt(P, R, r.matrix, f);
1628
1630
  const q = await Ut(P, R, r.matrix, f), M = {
1629
- ...Yo({ id: t.newId(), title: r.title, ...r.description ? { description: r.description } : {} }),
1631
+ ...zo({ id: t.newId(), title: r.title, ...r.description ? { description: r.description } : {} }),
1630
1632
  type: q.type
1631
1633
  }, U = ha(M, q);
1632
1634
  U.ok || y({ code: "invalid_change", message: U.message, path: f });
@@ -1639,7 +1641,7 @@ async function fs(e, a, t, s) {
1639
1641
  cardId: z.id,
1640
1642
  cardRef: X,
1641
1643
  request: { settings: V(r) },
1642
- queryLabels: "sql" in R ? [] : Ne(R),
1644
+ queryLabels: "sql" in R ? [] : qe(R),
1643
1645
  index: m,
1644
1646
  path: f
1645
1647
  });
@@ -1654,7 +1656,7 @@ async function fs(e, a, t, s) {
1654
1656
  r.text !== void 0 && y({ code: "invalid_change", message: `"${(b == null ? void 0 : b.card.title) ?? u}" isn't a text card, so it takes no text.`, path: `${f}.text`, fix: "Change its query; text is for text cards." });
1655
1657
  const { card: C, read: O } = g(u, f);
1656
1658
  let A = !1, F = [];
1657
- const R = r.type && r.type !== ((Gt = qe(C)) == null ? void 0 : Gt.type) ? ct(r.type) : void 0;
1659
+ const R = r.type && r.type !== ((Gt = Ee(C)) == null ? void 0 : Gt.type) ? ct(r.type) : void 0;
1658
1660
  if (R && R !== C.type) {
1659
1661
  const q = O.editable ? O.source : void 0, M = eo(C, R), U = M && q && q.kind === "semantic" ? (Qt = await t.loadCardSource({ domainId: q.domainId, datasetName: q.datasetName })) == null ? void 0 : Qt.fields : void 0, z = [], W = to(C, R, {
1660
1662
  ...U ? { catalog: U } : {},
@@ -1679,7 +1681,7 @@ async function fs(e, a, t, s) {
1679
1681
  }
1680
1682
  const P = r.query ? yt(r.query) : void 0;
1681
1683
  if (r.query || r.matrix) {
1682
- const q = ie(v, u).card, M = we(q, { sql: !0, calculations: !1 }), U = M.editable ? yt(M.query).query : void 0, z = U, W = li(z, (P == null ? void 0 : P.query) ?? {}, `${f}.query`, (le) => {
1684
+ const q = ie(v, u).card, M = we(q, { sql: !0, calculations: !1 }), U = M.editable ? yt(M.query).query : void 0, z = U, W = di(z, (P == null ? void 0 : P.query) ?? {}, `${f}.query`, (le) => {
1683
1685
  if (le.code === "query_form_mismatch" && (P != null && P.calculations.length)) {
1684
1686
  const pe = T(q, P.calculations, f), Ce = fa({ card: q, stated: pe, context: { path: f, cardRef: r.cardId, dates: ka(q) } });
1685
1687
  if (!Ce.ok)
@@ -1687,20 +1689,20 @@ async function fs(e, a, t, s) {
1687
1689
  }
1688
1690
  return y(le);
1689
1691
  });
1690
- F = di((P == null ? void 0 : P.query) ?? {}, W);
1691
- const X = ((Ht = qe(q)) == null ? void 0 : Ht.type) ?? $t(q.type), Y = r.matrix ?? (M.editable ? M.matrix : void 0);
1692
+ F = ri((P == null ? void 0 : P.query) ?? {}, W);
1693
+ const X = ((Ht = Ee(q)) == null ? void 0 : Ht.type) ?? $t(q.type), Y = r.matrix ?? (M.editable ? M.matrix : void 0);
1692
1694
  jt(X, W, Y, f);
1693
- const j = M.editable && U ? ao(U, W, M.matrix, Y) : void 0, ne = !j || j.aspects.length > 0, fe = j && !("sql" in W) ? Ne(W).filter((le) => !ma(j, le.key.role)) : [], H = so(q, j, fe.map((le) => le.key.role));
1695
+ const j = M.editable && U ? ao(U, W, M.matrix, Y) : void 0, ne = !j || j.aspects.length > 0, fe = j && !("sql" in W) ? qe(W).filter((le) => !ma(j, le.key.role)) : [], H = so(q, j, fe.map((le) => le.key.role));
1694
1696
  H && Kt(H, f);
1695
1697
  let de = W;
1696
1698
  if (j && !("sql" in W) && W.orderBy && !j.aspects.includes("order") && ["metric", "group_by", "detail"].some((le) => ma(j, le))) {
1697
1699
  const { orderBy: le, ...pe } = W;
1698
1700
  de = pe;
1699
1701
  }
1700
- let Fe;
1702
+ let Ae;
1701
1703
  if (ne) {
1702
1704
  const le = !!(z && ms(z, (P == null ? void 0 : P.query) ?? {}) && (j != null && j.keptWindow)), pe = await Ut(X, de, Y, f, le), Ce = pe.type === ct(X) ? { ...pe, type: q.type } : pe;
1703
- Fe = Ce;
1705
+ Ae = Ce;
1704
1706
  const da = j ? { ...Ce, change: j } : Ce, ge = ha(q, da);
1705
1707
  if (ge.ok || Kt(ge, f), ge.ok && ge.droppedBindings.length && n.push({
1706
1708
  code: "control_binding_dropped",
@@ -1719,7 +1721,7 @@ async function fs(e, a, t, s) {
1719
1721
  });
1720
1722
  $({ op: "card.update", cardId: u, update: { kind: "requery", query: da }, changeIndex: m }, `${f}.query`), A = !0;
1721
1723
  }
1722
- fe.length && pa(ie(v, u).card, fe).changed.length && $({ op: "card.update", cardId: u, update: { kind: "relabel", labels: fe }, changeIndex: m }, `${f}.query`), (ne || fe.length) && Wt(ie(v, u).card, de, Y, f, q.title ?? "", Fe, j);
1724
+ fe.length && pa(ie(v, u).card, fe).changed.length && $({ op: "card.update", cardId: u, update: { kind: "relabel", labels: fe }, changeIndex: m }, `${f}.query`), (ne || fe.length) && Wt(ie(v, u).card, de, Y, f, q.title ?? "", Ae, j);
1723
1725
  }
1724
1726
  (r.query || R) && await L({ cardId: u, cardRef: r.cardId, stated: (P == null ? void 0 : P.calculations) ?? [], index: m, path: f }) && (A = !0), (r.title !== void 0 || r.description !== void 0) && $(
1725
1727
  {
@@ -1764,7 +1766,7 @@ async function fs(e, a, t, s) {
1764
1766
  fix: "Use one of details.available, or read semaphor_get_dataset_schema.",
1765
1767
  details: { available: u.fields.slice(0, 20).map((P) => P.name) }
1766
1768
  });
1767
- const C = r.sheetIds ? Vt(r.sheetIds, f) : void 0, O = Ta(C), A = Ho({
1769
+ const C = r.sheetIds ? Vt(r.sheetIds, f) : void 0, O = Ta(C), A = Qo({
1768
1770
  field: b,
1769
1771
  dataSource: u.dataSource,
1770
1772
  connectionId: u.connectionId,
@@ -1780,7 +1782,7 @@ async function fs(e, a, t, s) {
1780
1782
  break;
1781
1783
  }
1782
1784
  case "filter.update": {
1783
- const u = te(r.filterId, `${f}.filterId`), b = Le(v, u, void 0, I);
1785
+ const u = te(r.filterId, `${f}.filterId`), b = Pe(v, u, void 0, I);
1784
1786
  b != null && b.editable || y({
1785
1787
  code: "filter_not_editable",
1786
1788
  message: b && !b.editable ? b.notEditable.message : "This filter can't be changed through the MCP.",
@@ -1818,19 +1820,19 @@ async function fs(e, a, t, s) {
1818
1820
  break;
1819
1821
  }
1820
1822
  case "filter.bind": {
1821
- const u = te(r.filterId, `${f}.filterId`), b = Le(v, u, void 0, I);
1823
+ const u = te(r.filterId, `${f}.filterId`), b = Pe(v, u, void 0, I);
1822
1824
  b != null && b.editable || y({
1823
1825
  code: "filter_not_editable",
1824
1826
  message: b && !b.editable ? b.notEditable.message : "This filter can't be changed through the MCP.",
1825
1827
  path: `${f}.filterId`,
1826
1828
  fix: "Tell the user to change it in the editor; removing or excluding it works."
1827
1829
  });
1828
- const C = Bt(r.cardId, `${f}.cardId`), O = Ua(v, C).card, A = Ie(v).findFilterInput({ inputId: u }), F = A && $e(A.input, O, I).reach === "relationshipApplied", R = await fi(O, r.field, t, `${f}.field`, y, F ? b.label : void 0);
1830
+ const C = Bt(r.cardId, `${f}.cardId`), O = Ua(v, C).card, A = Ie(v).findFilterInput({ inputId: u }), F = A && $e(A.input, O, I).reach === "relationshipApplied", R = await ui(O, r.field, t, `${f}.field`, y, F ? b.label : void 0);
1829
1831
  $({ op: "filter.bind", filterId: u, cardId: C, binding: { kind: "bound", cardId: C, bindingId: t.newId(), target: R }, changeIndex: m }, f), d.push({ ref: r.filterId, kind: "filter", id: u, title: b.label, changeIndex: m });
1830
1832
  break;
1831
1833
  }
1832
1834
  case "layout.arrange": {
1833
- const u = r.sheetId ? Ae(r.sheetId, `${f}.sheetId`) : (() => {
1835
+ const u = r.sheetId ? Re(r.sheetId, `${f}.sheetId`) : (() => {
1834
1836
  const b = nt();
1835
1837
  return b.length !== 1 && y({
1836
1838
  code: b.length ? "sheet_required" : "sheet_not_a_grid",
@@ -1923,7 +1925,7 @@ async function fs(e, a, t, s) {
1923
1925
  case "dashboard.style": {
1924
1926
  const { op: u, ...b } = r;
1925
1927
  x ?? (x = t.readOrganizationAppearance ? t.readOrganizationAppearance() : Promise.resolve(null));
1926
- const { style: C, organizationAppearance: O } = za(v, await x), A = dn({ style: C, edit: b, layers: { organizationAppearance: O } });
1928
+ const { style: C, organizationAppearance: O } = za(v, await x), A = rn({ style: C, edit: b, layers: { organizationAppearance: O } });
1927
1929
  if (A.ok)
1928
1930
  A.sentences.length && $({ op: "dashboard.style", style: A.style, sentences: A.sentences, changeIndex: m }, f);
1929
1931
  else {
@@ -1946,13 +1948,13 @@ async function fs(e, a, t, s) {
1946
1948
  path: f
1947
1949
  },
1948
1950
  v,
1949
- Re
1951
+ Te
1950
1952
  );
1951
1953
  $({ op: "variable.add", variable: u, changeIndex: m }, f), d.push({ ref: r.name, kind: "variable", id: u.id, title: u.name, changeIndex: m });
1952
1954
  break;
1953
1955
  }
1954
1956
  case "variable.update": {
1955
- const u = Yn(v, r.name, `${f}.name`, Re), b = r.rename ?? u.name, C = {
1957
+ const u = zn(v, r.name, `${f}.name`, Te), b = r.rename ?? u.name, C = {
1956
1958
  ...r.rename !== void 0 ? { name: r.rename } : {},
1957
1959
  ...r.label !== void 0 ? { label: r.label } : {},
1958
1960
  ...r.presentation !== void 0 ? { presentation: r.presentation } : {},
@@ -1971,11 +1973,11 @@ async function fs(e, a, t, s) {
1971
1973
  path: f
1972
1974
  },
1973
1975
  O,
1974
- Re
1976
+ Te
1975
1977
  );
1976
1978
  C.query = R.query, C.get = R.get;
1977
1979
  } else if (r.get !== void 0) {
1978
- const R = Zn(u, r.get, O, Re, f);
1980
+ const R = Xn(u, r.get, O, Te, f);
1979
1981
  C.query = R.query, C.get = R.get;
1980
1982
  }
1981
1983
  Object.keys(C).length || y({ code: "invalid_change", message: `variable.update on ${u.name} changes nothing.`, path: f, fix: "Send rename, label, query, get, presentation or emptyText." });
@@ -1986,7 +1988,7 @@ async function fs(e, a, t, s) {
1986
1988
  case "variable.remove": {
1987
1989
  const u = Je(v, r.name);
1988
1990
  u || y(ls(v, r.name, `${f}.name`));
1989
- const b = u, C = ei(v, b.id);
1991
+ const b = u, C = Zn(v, b.id);
1990
1992
  C.places.length && y({
1991
1993
  code: "variable_in_use",
1992
1994
  message: `${b.name} is shown in ${C.words}.`,
@@ -1997,7 +1999,7 @@ async function fs(e, a, t, s) {
1997
1999
  break;
1998
2000
  }
1999
2001
  case "document.text.update": {
2000
- const u = it(r.sheetId, `${f}.sheetId`, { grid: !1 }), { edit: b, unchanged: C } = ti(r, v, u, f, Re);
2002
+ const u = it(r.sheetId, `${f}.sheetId`, { grid: !1 }), { edit: b, unchanged: C } = ei(r, v, u, f, Te);
2001
2003
  if (d.push({ ref: r.sheetId, kind: "sheet", id: u.id, title: u.title ?? "", changeIndex: m }), C) break;
2002
2004
  $({ op: "document.text", sheetId: u.id, edit: b, changeIndex: m }, f);
2003
2005
  break;
@@ -2028,18 +2030,18 @@ async function fs(e, a, t, s) {
2028
2030
  for (const m of c) {
2029
2031
  const r = ie(ae.dashboard, m);
2030
2032
  if (!r) continue;
2031
- const f = ((ea = i.find((O) => Pt(O) === m)) == null ? void 0 : ea.changeIndex) ?? 0, u = we(r.card, { sql: !0 }), b = ((ta = qe(r.card)) == null ? void 0 : ta.type) ?? $t(r.card.type);
2032
- u.editable && ("sql" in u.query ? !!u.query.sql : "measures" in u.query ? u.query.measures.length > 0 : u.query.columns.length > 0) && ((aa = De[b]) == null ? void 0 : aa.forms.includes(tt(u.query))) || o.push({
2033
+ const f = ((ea = i.find((O) => Pt(O) === m)) == null ? void 0 : ea.changeIndex) ?? 0, u = we(r.card, { sql: !0 }), b = ((ta = Ee(r.card)) == null ? void 0 : ta.type) ?? $t(r.card.type);
2034
+ u.editable && ("sql" in u.query ? !!u.query.sql : "measures" in u.query ? u.query.measures.length > 0 : u.query.columns.length > 0) && ((aa = Fe[b]) == null ? void 0 : aa.forms.includes(tt(u.query))) || o.push({
2033
2035
  code: "type_not_supported",
2034
2036
  message: `As changed, "${r.card.title}" would have no query a ${b.replace(/_/g, " ")} can run.`,
2035
2037
  path: `changes[${f}]`,
2036
- fix: `Send a complete query with the type change: ${((sa = De[b]) == null ? void 0 : sa.forms.map((O) => Ue[O]).join(" or ")) ?? "a measures query"}.`
2038
+ fix: `Send a complete query with the type change: ${((sa = Fe[b]) == null ? void 0 : sa.forms.map((O) => Ue[O]).join(" or ")) ?? "a measures query"}.`
2037
2039
  });
2038
2040
  }
2039
- if (o.push(...ii(e, ae.dashboard, i, rt, I)), o.push(...ri(ae.dashboard, dt, t.calendar)), o.length) return { ok: !1, problems: o };
2041
+ if (o.push(...ni(e, ae.dashboard, i, rt, I)), o.push(...ii(ae.dashboard, dt, t.calendar)), o.length) return { ok: !1, problems: o };
2040
2042
  for (const m of i) {
2041
2043
  if (m.op !== "filter.add" && !(m.op === "filter.update" && m.settings.scope)) continue;
2042
- const r = m.op === "filter.add" ? m.input.id : m.filterId, f = Le(ae.dashboard, r, void 0, I);
2044
+ const r = m.op === "filter.add" ? m.input.id : m.filterId, f = Pe(ae.dashboard, r, void 0, I);
2043
2045
  if (!(f != null && f.editable)) continue;
2044
2046
  const u = async (A) => {
2045
2047
  const F = [];
@@ -2099,7 +2101,7 @@ async function fs(e, a, t, s) {
2099
2101
  fix: "Add a timeWindow on that date, or a dashboard date filter that reaches the card."
2100
2102
  });
2101
2103
  }
2102
- const Is = si(ae.dashboard, i, ae.descriptions, I);
2104
+ const Is = ai(ae.dashboard, i, ae.descriptions, I);
2103
2105
  return {
2104
2106
  ok: !0,
2105
2107
  operations: i,
@@ -2113,7 +2115,7 @@ async function fs(e, a, t, s) {
2113
2115
  warnings: n
2114
2116
  };
2115
2117
  }
2116
- function si(e, a, t, s) {
2118
+ function ai(e, a, t, s) {
2117
2119
  const o = a.filter((l) => l.op === "card.add");
2118
2120
  if (!o.length) return [...t];
2119
2121
  const n = as(e, void 0, s);
@@ -2152,12 +2154,12 @@ function Pt(e) {
2152
2154
  if (e.op === "card.update" || e.op === "card.remove") return e.cardId;
2153
2155
  if (e.op === "card.add") return (a = e.frame.cards[0]) == null ? void 0 : a.id;
2154
2156
  }
2155
- function oi(e) {
2157
+ function si(e) {
2156
2158
  return Object.fromEntries(
2157
2159
  ho.flatMap((a) => e[a] === void 0 ? [] : [[a, e[a]]])
2158
2160
  );
2159
2161
  }
2160
- function ni(e, a) {
2162
+ function oi(e, a) {
2161
2163
  if (!a.length || !e.config) return e;
2162
2164
  const t = { ...e.config }, s = [];
2163
2165
  if (t.matrix) {
@@ -2179,11 +2181,11 @@ function ni(e, a) {
2179
2181
  const o = { metric: "metricColumns", group_by: "groupByColumns", detail: "detailColumns" };
2180
2182
  for (const { key: n, label: i } of a) {
2181
2183
  const d = [...t[o[n.role]] ?? []], l = Ka(n.role, d).findIndex((c) => He(c, n));
2182
- l < 0 || (d[l] = mn(d[l], i), t[o[n.role]] = d, s.push(n));
2184
+ l < 0 || (d[l] = fn(d[l], i), t[o[n.role]] = d, s.push(n));
2183
2185
  }
2184
2186
  return { ...e, config: t, statedLabels: s };
2185
2187
  }
2186
- function ii(e, a, t, s, o) {
2188
+ function ni(e, a, t, s, o) {
2187
2189
  var E;
2188
2190
  const n = [], i = new Map(xe(a).map((_) => [_.cardId, _])), d = Ot(a), l = Ie(a), c = (_) => {
2189
2191
  var S, y;
@@ -2255,7 +2257,7 @@ function ii(e, a, t, s, o) {
2255
2257
  for (const _ of t)
2256
2258
  (_.op === "filter.bind" || _.op === "filter.exclude") && v.set(`${_.filterId}|${_.cardId}`, _);
2257
2259
  for (const _ of v.values()) {
2258
- const S = Le(a, _.filterId, void 0, o), y = i.get(_.cardId);
2260
+ const S = Pe(a, _.filterId, void 0, o), y = i.get(_.cardId);
2259
2261
  if (!S || !y) continue;
2260
2262
  const D = S.reaches.includes(_.cardId);
2261
2263
  if (_.op === "filter.bind" ? D : !D) continue;
@@ -2270,13 +2272,13 @@ function ii(e, a, t, s, o) {
2270
2272
  });
2271
2273
  }
2272
2274
  for (const [_, S] of s) {
2273
- const y = Le(a, _, void 0, o);
2275
+ const y = Pe(a, _, void 0, o);
2274
2276
  if (!y) continue;
2275
2277
  const D = y.editable && ((E = y.exceptSheetIds) == null ? void 0 : E.some((g) => {
2276
2278
  var k;
2277
2279
  return ((k = d.get(g)) == null ? void 0 : k.sheetKind) === "dashboard";
2278
2280
  })), $ = y.editable && !D ? y.sheetIds : void 0, N = S.sheetIds === "all" ? "all" : [...S.sheetIds].sort();
2279
- Pe($ === "all" || !$ ? $ : [...$].sort(), N) || n.push({
2281
+ Ne($ === "all" || !$ ? $ : [...$].sort(), N) || n.push({
2280
2282
  code: "filter_not_editable",
2281
2283
  message: `"${y.label}" wouldn't show on the sheets asked for. Change where it shows in the editor.`,
2282
2284
  path: `changes[${S.changeIndex}].sheetIds`,
@@ -2303,7 +2305,7 @@ function ii(e, a, t, s, o) {
2303
2305
  }
2304
2306
  return n;
2305
2307
  }
2306
- function ri(e, a, t) {
2308
+ function ii(e, a, t) {
2307
2309
  const s = [], o = Ie(e);
2308
2310
  for (const [n, i] of a) {
2309
2311
  const d = o.findFilterInput({ inputId: n });
@@ -2317,7 +2319,7 @@ function ri(e, a, t) {
2317
2319
  });
2318
2320
  if (i.period) {
2319
2321
  const I = Ja(l && "relativeMeta" in l ? l.relativeMeta : void 0);
2320
- (!I || an(i.period) || !sn(I, i.period)) && p(
2322
+ (!I || tn(i.period) || !an(I, i.period)) && p(
2321
2323
  `"${d.input.label}" wouldn't load with that default${h ? `: ${h}` : ""}.`,
2322
2324
  h ? "Ask for a default the picker can take, or tell the user to make it a date range in the editor." : "Tell the user to change the filter's default in the editor."
2323
2325
  );
@@ -2344,16 +2346,16 @@ function ka(e) {
2344
2346
  const a = (s = (t = e.config) == null ? void 0 : t.groupByColumns) == null ? void 0 : s.find((o) => co(o.dataType || "") === "date");
2345
2347
  return { comparisonDate: a ? { name: a.name, label: a.label || a.name } : null, dateWindow: "unknown" };
2346
2348
  }
2347
- function di(e, a) {
2349
+ function ri(e, a) {
2348
2350
  if ("sql" in a) return [];
2349
2351
  const t = e, s = (...n) => new Set(n.flatMap((i) => Array.isArray(i) ? i : i ? [i] : []).map((i) => be(i, a.datasetName))), o = {
2350
2352
  metric: s(t.measures),
2351
2353
  group_by: s(t.dimensions, t.dateField),
2352
2354
  detail: s(t.columns)
2353
2355
  };
2354
- return Ne(a).filter((n) => o[n.key.role].has(n.key.field));
2356
+ return qe(a).filter((n) => o[n.key.role].has(n.key.field));
2355
2357
  }
2356
- function li(e, a, t, s) {
2358
+ function di(e, a, t, s) {
2357
2359
  const o = Object.fromEntries(Object.entries(a).filter(([, p]) => p != null)), n = tt(o), i = tt(e), d = (p) => Sa[p].safeParse(o);
2358
2360
  if (!e || n && n !== i) {
2359
2361
  const p = n ?? i, I = p ? d(p) : void 0;
@@ -2389,10 +2391,10 @@ function Ta(e) {
2389
2391
  return e ? { kind: "sheets", sheetIds: e } : { kind: "allSheets", sheetKinds: ["dashboard"] };
2390
2392
  }
2391
2393
  function Ra(e, a, t, s) {
2392
- return ["date", "datetime", "timestamp"].some((i) => Tt(a.dataType).includes(i)) || s({ code: "invalid_change", message: "defaultPeriod is for date filters.", path: t, fix: "Use defaultValues for this field." }), hs(e, { use: "filterDefault", columnHasTime: ci(a) }, t, s);
2394
+ return ["date", "datetime", "timestamp"].some((i) => Tt(a.dataType).includes(i)) || s({ code: "invalid_change", message: "defaultPeriod is for date filters.", path: t, fix: "Use defaultValues for this field." }), hs(e, { use: "filterDefault", columnHasTime: li(a) }, t, s);
2393
2395
  }
2394
2396
  function hs(e, a, t, s) {
2395
- const o = on(e, a);
2397
+ const o = sn(e, a);
2396
2398
  return o.ok ? o.window : s({
2397
2399
  code: "invalid_change",
2398
2400
  message: o.refusal.message,
@@ -2400,14 +2402,14 @@ function hs(e, a, t, s) {
2400
2402
  path: o.refusal.path ? `${t}.${o.refusal.path}` : t
2401
2403
  });
2402
2404
  }
2403
- function ci(e) {
2405
+ function li(e) {
2404
2406
  return qa({ dataType: e.dataType }) === "datetime";
2405
2407
  }
2406
- function ui(e) {
2408
+ function ci(e) {
2407
2409
  var a, t, s;
2408
2410
  return (s = (t = (a = e == null ? void 0 : e.filters) == null ? void 0 : a.conditions) == null ? void 0 : t.find((o) => o.relativeMeta)) == null ? void 0 : s.field;
2409
2411
  }
2410
- async function fi(e, a, t, s, o, n) {
2412
+ async function ui(e, a, t, s, o, n) {
2411
2413
  const i = no(e), d = i.kind === "config" ? i.executableSources : i.kind === "sql" ? i.pinnedCatalogSources.map((w) => w.source) : [], l = he(e), c = typeof a == "string" ? (l == null ? void 0 : l.kind) === "semantic" ? l.datasetName : void 0 : a.datasetName, h = d.find((w) => w.kind === "semantic" && Tt(w.datasetName) === Tt(c));
2412
2414
  if ((!h || h.kind !== "semantic") && n)
2413
2415
  return o({
@@ -2423,7 +2425,7 @@ async function fi(e, a, t, s, o, n) {
2423
2425
  path: s,
2424
2426
  fix: "Name a field of the card's own dataset, or { name, datasetName } for a dataset its query joins."
2425
2427
  });
2426
- const p = await t.loadCardSource({ domainId: h.domainId, datasetName: h.datasetName }), I = typeof a == "string" ? a : a.name, v = p ? ot(p.fields, I, h.datasetName) : void 0, x = v ? Jo(h, { column_name: v.name, data_type: v.dataType, ...v.sourceField ? { sourceField: v.sourceField } : {} }) : void 0;
2428
+ const p = await t.loadCardSource({ domainId: h.domainId, datasetName: h.datasetName }), I = typeof a == "string" ? a : a.name, v = p ? ot(p.fields, I, h.datasetName) : void 0, x = v ? Yo(h, { column_name: v.name, data_type: v.dataType, ...v.sourceField ? { sourceField: v.sourceField } : {} }) : void 0;
2427
2429
  return x || o({
2428
2430
  code: "field_not_found",
2429
2431
  message: `"${I}" isn't a field of ${h.datasetName}.`,
@@ -2432,12 +2434,12 @@ async function fi(e, a, t, s, o, n) {
2432
2434
  details: { available: ((p == null ? void 0 : p.fields) ?? []).slice(0, 20).map((w) => w.name) }
2433
2435
  });
2434
2436
  }
2435
- const mi = {
2437
+ const fi = {
2436
2438
  max: ba,
2437
2439
  what: "A proposal that creates a dashboard",
2438
2440
  fix: `Create with the first ${ba}, then change the new dashboard in a second proposal.`
2439
2441
  };
2440
- async function Or(e, a) {
2442
+ async function Dr(e, a) {
2441
2443
  const t = (d) => d && typeof d == "object" ? d.op : void 0, s = e.changes.flatMap(
2442
2444
  (d, l) => t(d) === "dashboard.update" ? [
2443
2445
  {
@@ -2449,12 +2451,12 @@ async function Or(e, a) {
2449
2451
  ] : []
2450
2452
  );
2451
2453
  if (s.length) return { ok: !1, problems: s };
2452
- const o = pi(e, a), n = await fs(o, e.changes, a, { limit: mi });
2454
+ const o = hi(e, a), n = await fs(o, e.changes, a, { limit: fi });
2453
2455
  if (!n.ok) return n;
2454
- const i = hi(n, e.changes);
2455
- return { ...i, seed: o, sentence: gi(i.dashboard) };
2456
+ const i = mi(n, e.changes);
2457
+ return { ...i, seed: o, sentence: pi(i.dashboard) };
2456
2458
  }
2457
- function hi(e, a) {
2459
+ function mi(e, a) {
2458
2460
  if (a.some((n) => {
2459
2461
  if (!n || typeof n != "object") return !1;
2460
2462
  const { op: i } = n;
@@ -2471,7 +2473,7 @@ function hi(e, a) {
2471
2473
  descriptions: [...e.descriptions, ...o.descriptions]
2472
2474
  };
2473
2475
  }
2474
- function pi(e, a) {
2476
+ function hi(e, a) {
2475
2477
  const t = e.changes.some((s) => s && typeof s == "object" && s.op === "sheet.add");
2476
2478
  return {
2477
2479
  id: e.dashboardId,
@@ -2483,19 +2485,19 @@ function pi(e, a) {
2483
2485
  };
2484
2486
  }
2485
2487
  const vt = (e, a) => `${e} ${a}${e === 1 ? "" : "s"}`;
2486
- function gi(e) {
2488
+ function pi(e) {
2487
2489
  const a = e.sheets ?? [], t = a.reduce((n, i) => n + (i.frames ?? []).reduce((d, l) => {
2488
2490
  var c;
2489
2491
  return d + (((c = l.cards) == null ? void 0 : c.length) ?? 0);
2490
2492
  }, 0), 0), s = (e.inputs ?? []).filter((n) => n.kind === "filter").length, o = [vt(a.length, "sheet"), vt(t, "card"), ...s ? [vt(s, "filter")] : []];
2491
2493
  return `Creates a private dashboard ${Va(e.title)} with ${et(o)}.`;
2492
2494
  }
2493
- const bi = 50;
2494
- function Er(e, a) {
2495
+ const gi = 50;
2496
+ function Or(e, a) {
2495
2497
  var $, N;
2496
2498
  const t = ($ = a.sheetIds) != null && $.length ? new Set(a.sheetIds) : void 0, s = (N = a.cardIds) != null && N.length ? new Set(a.cardIds) : void 0, o = (e.sheets ?? []).filter((g) => !t || t.has(g.id)), n = xe(e).filter(
2497
2499
  (g) => (!t || t.has(g.sheetId)) && (!s || s.has(g.cardId))
2498
- ), i = n.length > (a.maxQueryCards ?? bi), d = new Map(
2500
+ ), i = n.length > (a.maxQueryCards ?? gi), d = new Map(
2499
2501
  (e.sheets ?? []).flatMap((g) => (g.frames ?? []).map((k) => [k.id, k]))
2500
2502
  ), l = /* @__PURE__ */ new Map(), c = (g) => {
2501
2503
  (g == null ? void 0 : g.kind) === "semantic" && l.set(`${g.domainId}|${g.datasetName}`, { domainId: g.domainId, datasetName: g.datasetName });
@@ -2509,7 +2511,7 @@ function Er(e, a) {
2509
2511
  sheetId: g.id,
2510
2512
  title: g.title ?? "",
2511
2513
  kind: g.kind === "document" ? "document" : "dashboard",
2512
- ...g.kind === "document" ? vi(g, I(g.id)) : { layout: Ci(g) },
2514
+ ...g.kind === "document" ? yi(g, I(g.id)) : { layout: _i(g) },
2513
2515
  cards: n.filter((k) => k.sheetId === g.id).map((k) => {
2514
2516
  var oe;
2515
2517
  const T = k.card, L = k.kind === "frameCard" ? (oe = d.get(k.frameId)) == null ? void 0 : oe.visualId : void 0, V = L ? { linkedVisualId: L } : {}, K = { cardId: k.cardId, title: T.title ?? "" };
@@ -2562,7 +2564,7 @@ function Er(e, a) {
2562
2564
  });
2563
2565
  for (const g of E)
2564
2566
  g.editable && l.set(`${g.domainId}|${g.datasetName}`, { domainId: g.domainId, datasetName: g.datasetName });
2565
- const _ = Ii(e, a, new Map([...h, ...v]));
2567
+ const _ = vi(e, a, new Map([...h, ...v]));
2566
2568
  for (const g of e.variables ?? []) {
2567
2569
  const k = kt(g);
2568
2570
  (k == null ? void 0 : k.kind) === "semantic" && l.set(`${k.domainId}|${k.datasetName}`, { domainId: k.domainId, datasetName: k.datasetName });
@@ -2595,20 +2597,20 @@ function Er(e, a) {
2595
2597
  sheets: w,
2596
2598
  filters: E,
2597
2599
  variables: _,
2598
- style: yi(e, a),
2600
+ style: bi(e, a),
2599
2601
  editorOnly: D,
2600
2602
  ...i ? { truncated: !0 } : {}
2601
2603
  };
2602
2604
  }
2603
- function yi(e, a) {
2605
+ function bi(e, a) {
2604
2606
  const { style: t, organizationAppearance: s } = za(e, a.organizationAppearance);
2605
- return { set: Rn(t), shows: ln({ organizationAppearance: s, dashboardStyle: t }, "light").shows };
2607
+ return { set: Tn(t), shows: dn({ organizationAppearance: s, dashboardStyle: t }, "light").shows };
2606
2608
  }
2607
2609
  function Aa(e, a) {
2608
2610
  const t = $o(a);
2609
2611
  return t ? { ...e, style: t } : e;
2610
2612
  }
2611
- function vi(e, a) {
2613
+ function yi(e, a) {
2612
2614
  const t = e.document;
2613
2615
  if (!t) return {};
2614
2616
  const s = (o) => {
@@ -2625,7 +2627,7 @@ function vi(e, a) {
2625
2627
  )
2626
2628
  };
2627
2629
  }
2628
- function Ii(e, a, t) {
2630
+ function vi(e, a, t) {
2629
2631
  const s = Qa(e), o = (c) => s.filter(({ ref: h }) => c(h)).map(({ place: h, where: p }) => ({
2630
2632
  sheetId: h.sheetId,
2631
2633
  where: p.kind,
@@ -2646,7 +2648,7 @@ function Ii(e, a, t) {
2646
2648
  })), d = [...n.values()].filter((c) => c.kind === "report").map((c) => ({
2647
2649
  name: c.name,
2648
2650
  kind: "report",
2649
- words: _i[c.reportKey],
2651
+ words: Ii[c.reportKey],
2650
2652
  parts: [],
2651
2653
  usedIn: o((h) => h.source === "documentMeta" && h.key === c.reportKey),
2652
2654
  editable: !1
@@ -2655,7 +2657,7 @@ function Ii(e, a, t) {
2655
2657
  return {
2656
2658
  name: c.name,
2657
2659
  kind: "data",
2658
- words: Xo(c),
2660
+ words: Jo(c),
2659
2661
  parts: Lo(c),
2660
2662
  ...I ? { presentation: I } : {},
2661
2663
  usedIn: o((v) => v.source === "data" && v.variableId === c.id),
@@ -2666,18 +2668,18 @@ function Ii(e, a, t) {
2666
2668
  });
2667
2669
  return [...i, ...d, ...l];
2668
2670
  }
2669
- const _i = {
2671
+ const Ii = {
2670
2672
  generatedAt: "When the report was generated",
2671
2673
  pageNumber: "The page number (Documents)",
2672
2674
  pageCount: "The page count (Documents)"
2673
2675
  };
2674
2676
  function Ge(e) {
2675
- const a = qe(e);
2677
+ const a = Ee(e);
2676
2678
  return a ? { type: a.type, ...a.properties } : { type: $t(e.type) };
2677
2679
  }
2678
- function Ci(e) {
2680
+ function _i(e) {
2679
2681
  const a = new Map((e.frames ?? []).map((t) => [t.id, t]));
2680
- return hn(e).rows.map((t) => ({
2682
+ return mn(e).rows.map((t) => ({
2681
2683
  tiles: t.tiles.map((s) => {
2682
2684
  const o = a.get(s.frameId);
2683
2685
  return { cardIds: o ? Ba(o) : [], width: s.width };
@@ -2690,13 +2692,13 @@ function Z(e) {
2690
2692
  function ue(e, a) {
2691
2693
  return Z(e) && Object.prototype.hasOwnProperty.call(e, a) && e[a] !== void 0;
2692
2694
  }
2693
- const re = ue, $i = ["metricColumns", "groupByColumns", "detailColumns", "pivotByColumns", "sortByColumns"], wi = ["xAxisConfig", "yAxisConfig", "secondaryYAxisConfig", "tooltipConfig", "dataLabelsConfig"], xi = '`format` on the matching column in `config.metricColumns`, `groupByColumns` or `detailColumns`; for a SQL or Python card, `preferences.sqlColumns["<column>"].format`', Qe = "`preferences.conditionalFormatting`, with columns named by card column id";
2694
- function Si(e) {
2695
- return Me(String(e.type)) ?? Et;
2695
+ const re = ue, Ci = ["metricColumns", "groupByColumns", "detailColumns", "pivotByColumns", "sortByColumns"], $i = ["xAxisConfig", "yAxisConfig", "secondaryYAxisConfig", "tooltipConfig", "dataLabelsConfig"], wi = '`format` on the matching column in `config.metricColumns`, `groupByColumns` or `detailColumns`; for a SQL or Python card, `preferences.sqlColumns["<column>"].format`', Qe = "`preferences.conditionalFormatting`, with columns named by card column id";
2696
+ function xi(e) {
2697
+ return Le(String(e.type)) ?? Et;
2696
2698
  }
2697
- function Ee(e, a, t) {
2699
+ function Oe(e, a, t) {
2698
2700
  if (t === void 0) return;
2699
- const s = Z(t) ? Si(t).safeParse(t) : Et.safeParse(t);
2701
+ const s = Z(t) ? xi(t).safeParse(t) : Et.safeParse(t);
2700
2702
  if (!s.success)
2701
2703
  for (const o of s.error.issues) {
2702
2704
  const n = o.code === "unrecognized_keys" ? o.keys : [o.path.length ? String(o.path[o.path.length - 1]) : "type"];
@@ -2712,19 +2714,19 @@ function It(e, a, t) {
2712
2714
  if (Z(t)) {
2713
2715
  for (const s of ["dateFormat", "customFormat"])
2714
2716
  re(t, s) && e.push({ path: `${a}.${s}`, field: s, replacement: "`format` on this column (a temporal bucket or date format)" });
2715
- Ee(e, `${a}.format`, t.format);
2717
+ Oe(e, `${a}.format`, t.format);
2716
2718
  }
2717
2719
  }
2718
2720
  function ps(e, a) {
2719
2721
  const t = [], s = e.config;
2720
- for (const x of $i) {
2722
+ for (const x of Ci) {
2721
2723
  const w = s == null ? void 0 : s[x];
2722
2724
  Array.isArray(w) && w.forEach((E, _) => It(t, `${a}.config.${x}[${_}]`, E));
2723
2725
  }
2724
2726
  const o = Z(s == null ? void 0 : s.matrix) ? s.matrix : void 0, n = Z(o == null ? void 0 : o.presentation) ? o.presentation : void 0;
2725
2727
  for (const x of ["measureFormats", "levelFormats"]) {
2726
2728
  const w = n == null ? void 0 : n[x];
2727
- if (Z(w)) for (const [E, _] of Object.entries(w)) Ee(t, `${a}.config.matrix.presentation.${x}.${E}`, _);
2729
+ if (Z(w)) for (const [E, _] of Object.entries(w)) Oe(t, `${a}.config.matrix.presentation.${x}.${E}`, _);
2728
2730
  }
2729
2731
  re(n, "conditionalFormatting") && t.push({ path: `${a}.config.matrix.presentation.conditionalFormatting`, field: "conditionalFormatting", replacement: Qe });
2730
2732
  const i = e.interactionConfig, d = i == null ? void 0 : i.drillHierarchies;
@@ -2753,24 +2755,24 @@ function ps(e, a) {
2753
2755
  if (!Z(w)) continue;
2754
2756
  const E = `${c}.tablePrefs.columnSettingsMap.${x}`;
2755
2757
  for (const _ of ["numberFormat", "dateFormat", "inheritMetricFormat"])
2756
- re(w, _) && t.push({ path: `${E}.${_}`, field: _, replacement: _ === "inheritMetricFormat" ? "nothing: a column follows its `format`" : xi });
2758
+ re(w, _) && t.push({ path: `${E}.${_}`, field: _, replacement: _ === "inheritMetricFormat" ? "nothing: a column follows its `format`" : wi });
2757
2759
  re(w, "colorRanges") && t.push({ path: `${E}.colorRanges`, field: "colorRanges", replacement: Qe });
2758
2760
  }
2759
- for (const x of wi) {
2761
+ for (const x of $i) {
2760
2762
  const w = l[x];
2761
2763
  if (Z(w)) {
2762
2764
  for (const E of ["formatMode", "mode", "formatOptions"])
2763
2765
  re(w, E) && t.push({ path: `${c}.${x}.${E}`, field: E, replacement: `\`preferences.${x}.valueFormat\` (absent means the column's format)` });
2764
- x === "dataLabelsConfig" && re(w, "format") && t.push({ path: `${c}.${x}.format`, field: "format", replacement: "`preferences.dataLabelsConfig.valueFormat`" }), Ee(t, `${c}.${x}.valueFormat`, w.valueFormat);
2766
+ x === "dataLabelsConfig" && re(w, "format") && t.push({ path: `${c}.${x}.format`, field: "format", replacement: "`preferences.dataLabelsConfig.valueFormat`" }), Oe(t, `${c}.${x}.valueFormat`, w.valueFormat);
2765
2767
  }
2766
2768
  }
2767
2769
  const v = l.sqlColumns;
2768
2770
  if (Z(v))
2769
2771
  for (const [x, w] of Object.entries(v))
2770
- Z(w) && Ee(t, `${c}.sqlColumns.${x}.format`, w.format);
2771
- return Z(l.sqlKpiValue) && Ee(t, `${c}.sqlKpiValue.format`, l.sqlKpiValue.format), t;
2772
+ Z(w) && Oe(t, `${c}.sqlColumns.${x}.format`, w.format);
2773
+ return Z(l.sqlKpiValue) && Oe(t, `${c}.sqlKpiValue.format`, l.sqlKpiValue.format), t;
2772
2774
  }
2773
- function ki(e) {
2775
+ function Si(e) {
2774
2776
  const a = `sheets[id=${e.sheetId}]`;
2775
2777
  switch (e.kind) {
2776
2778
  case "sheetCard":
@@ -2786,15 +2788,15 @@ function gs(e) {
2786
2788
  if (Array.isArray(e.sheets))
2787
2789
  return xe(e).map((t) => ({
2788
2790
  card: t.card,
2789
- at: ki(t)
2791
+ at: Si(t)
2790
2792
  }));
2791
2793
  const a = e;
2792
2794
  return Array.isArray(a.cards) ? a.cards.map((t) => ({ card: t, at: `cards[id=${t.id}]` })) : [];
2793
2795
  }
2794
- function qr(e) {
2796
+ function Er(e) {
2795
2797
  return gs(e).flatMap(({ card: a, at: t }) => ps(a, t));
2796
2798
  }
2797
- function Ti(e, a) {
2799
+ function ki(e, a) {
2798
2800
  var n;
2799
2801
  const t = (n = e.preferences) == null ? void 0 : n.conditionalFormatting;
2800
2802
  if (t === void 0) return [];
@@ -2809,14 +2811,14 @@ function Ti(e, a) {
2809
2811
  message: i.message
2810
2812
  }));
2811
2813
  }
2812
- function Nr(e) {
2814
+ function qr(e) {
2813
2815
  return gs(e).flatMap(({ card: a, at: t }) => [
2814
2816
  ...ps(a, t).map((s) => ({
2815
2817
  code: "retired_presentation_field",
2816
2818
  path: s.path,
2817
2819
  message: `\`${s.field}\` is retired: use ${s.replacement}.`
2818
2820
  })),
2819
- ...Ti(a, t)
2821
+ ...ki(a, t)
2820
2822
  ]);
2821
2823
  }
2822
2824
  const Lt = [
@@ -2825,7 +2827,7 @@ const Lt = [
2825
2827
  "detailColumns",
2826
2828
  "pivotByColumns",
2827
2829
  "sortByColumns"
2828
- ], Ri = [
2830
+ ], Ti = [
2829
2831
  "xAxisConfig",
2830
2832
  "yAxisConfig",
2831
2833
  "secondaryYAxisConfig",
@@ -2845,14 +2847,14 @@ function _e(e, a) {
2845
2847
  return bs(t(e), t(a));
2846
2848
  }
2847
2849
  function at(e) {
2848
- const a = nn(e);
2850
+ const a = on(e);
2849
2851
  return a === "date" || a === "datetime";
2850
2852
  }
2851
2853
  function ys(e) {
2852
2854
  var a, t;
2853
2855
  return !!((a = e.sql) != null && a.trim() || (t = e.python) != null && t.trim());
2854
2856
  }
2855
- function Ai(e) {
2857
+ function Ri(e) {
2856
2858
  return e.type === "kpi" && Oo(e);
2857
2859
  }
2858
2860
  function Rt(e) {
@@ -2863,13 +2865,13 @@ function ee(e, a) {
2863
2865
  const t = (s = e.config) == null ? void 0 : s[a];
2864
2866
  return Array.isArray(t) ? t : [];
2865
2867
  }
2866
- function Fi(e, a) {
2868
+ function Ai(e, a) {
2867
2869
  for (const t of Lt) {
2868
2870
  const s = ee(e, t).indexOf(a);
2869
2871
  if (s >= 0) return `config.${t}[${s}]`;
2870
2872
  }
2871
2873
  }
2872
- function Te(e, a) {
2874
+ function ke(e, a) {
2873
2875
  let t = !1;
2874
2876
  for (const s of a)
2875
2877
  Object.prototype.hasOwnProperty.call(e, s) && (delete e[s], t = !0);
@@ -2879,14 +2881,12 @@ function st(e, a, t, s) {
2879
2881
  a.format = t, a.formatOrigin = "override", e.changes.push({
2880
2882
  path: s,
2881
2883
  action: "moved",
2882
- to: `${Fi(e.card, a) ?? "config"}.format`
2884
+ to: `${Ai(e.card, a) ?? "config"}.format`
2883
2885
  });
2884
2886
  }
2885
2887
  function Mt(e) {
2886
- if (!J(e)) return;
2887
- if (e.type === "temporal_bucket") return Se(e);
2888
- const a = Se(e);
2889
- return (a == null ? void 0 : a.type) === "currency" && a.currency === void 0 && jo(e) ? { ...a, currency: "USD" } : a;
2888
+ if (J(e))
2889
+ return Me(e);
2890
2890
  }
2891
2891
  function At(e, a, t) {
2892
2892
  if (!(!ue(a, "dateFormat") && !ue(a, "customFormat"))) {
@@ -2904,10 +2904,10 @@ function At(e, a, t) {
2904
2904
  to: `${t}.format`
2905
2905
  }));
2906
2906
  }
2907
- Te(a, ["dateFormat", "customFormat"]) && e.changes.push({ path: `${t}.dateFormat`, action: "removed" });
2907
+ ke(a, ["dateFormat", "customFormat"]) && e.changes.push({ path: `${t}.dateFormat`, action: "removed" });
2908
2908
  }
2909
2909
  }
2910
- function Di(e, a, t) {
2910
+ function Fi(e, a, t) {
2911
2911
  if (!ue(a, "dateFormat") && !ue(a, "customFormat")) return;
2912
2912
  const s = a.dateFormat === "custom" ? a.customFormat : a.dateFormat;
2913
2913
  e.card.type === "detailTable" && at(a.dataType) && !a.format && typeof s == "string" && s.trim() ? (a.format = { type: "date", pattern: s }, a.formatOrigin = "override", e.changes.push({
@@ -2918,28 +2918,28 @@ function Di(e, a, t) {
2918
2918
  path: `${t}.dateFormat`,
2919
2919
  reason: "detail_date_beside_format",
2920
2920
  detail: "A detail date pattern on a column that has a format of its own."
2921
- }), Te(a, ["dateFormat", "customFormat"]) && e.changes.push({ path: `${t}.dateFormat`, action: "removed" });
2921
+ }), ke(a, ["dateFormat", "customFormat"]) && e.changes.push({ path: `${t}.dateFormat`, action: "removed" });
2922
2922
  }
2923
- function Oi(e, a, t, s) {
2923
+ function Di(e, a, t, s) {
2924
2924
  if (a.format !== void 0) {
2925
2925
  const o = Mt(a.format);
2926
2926
  o ? _e(o, a.format) || (a.format = o, e.changes.push({ path: `${s}.format`, action: "cleaned" })) : (delete a.format, e.changes.push({ path: `${s}.format`, action: "removed" }));
2927
2927
  }
2928
- t === "groupByColumns" || t === "pivotByColumns" ? At(e, a, s) : t === "detailColumns" ? Di(e, a, s) : Te(a, ["dateFormat", "customFormat"]) && e.changes.push({ path: `${s}.dateFormat`, action: "removed" });
2928
+ t === "groupByColumns" || t === "pivotByColumns" ? At(e, a, s) : t === "detailColumns" ? Fi(e, a, s) : ke(a, ["dateFormat", "customFormat"]) && e.changes.push({ path: `${s}.dateFormat`, action: "removed" });
2929
2929
  }
2930
- function Ei(e, a) {
2930
+ function Oi(e, a) {
2931
2931
  for (const t of Lt)
2932
2932
  ee(e.card, t).forEach((s, o) => {
2933
2933
  var i;
2934
2934
  if (!s.format || s.formatOrigin) return;
2935
2935
  const n = (i = a.modelFormatFor) == null ? void 0 : i.call(a, s);
2936
- s.formatOrigin = n && _e(Se(n), s.format) ? "semantic" : "override", e.changes.push({
2936
+ s.formatOrigin = n && _e(Me(n), s.format) ? "semantic" : "override", e.changes.push({
2937
2937
  path: `config.${t}[${o}].formatOrigin`,
2938
2938
  action: "marked"
2939
2939
  });
2940
2940
  });
2941
2941
  }
2942
- function qi(e) {
2942
+ function Ei(e) {
2943
2943
  var t;
2944
2944
  const a = (t = e.card.interactionConfig) == null ? void 0 : t.drillHierarchies;
2945
2945
  Array.isArray(a) && a.forEach((s, o) => {
@@ -2957,13 +2957,13 @@ function qi(e) {
2957
2957
  });
2958
2958
  });
2959
2959
  }
2960
- const Ni = [
2960
+ const qi = [
2961
2961
  "numberFormat",
2962
2962
  "dateFormat",
2963
2963
  "inheritMetricFormat",
2964
2964
  "colorRanges"
2965
2965
  ];
2966
- function Pi(e, a) {
2966
+ function Ni(e, a) {
2967
2967
  const t = (o) => o == null ? void 0 : o.trim().toLowerCase(), s = t(a);
2968
2968
  return [
2969
2969
  e.id,
@@ -2971,7 +2971,7 @@ function Pi(e, a) {
2971
2971
  e.name,
2972
2972
  e.qualifiedFieldName,
2973
2973
  e.label,
2974
- e.role === "metric" ? Uo(e) : void 0
2974
+ e.role === "metric" ? Wo(e) : void 0
2975
2975
  ].some((o) => o !== void 0 && t(o) === s);
2976
2976
  }
2977
2977
  function Fa(e, a) {
@@ -2981,22 +2981,22 @@ function Fa(e, a) {
2981
2981
  ...ee(e, "detailColumns"),
2982
2982
  ...ee(e, "metricColumns"),
2983
2983
  ...ee(e, "groupByColumns")
2984
- ].filter((o) => Pi(o, a));
2984
+ ].filter((o) => Ni(o, a));
2985
2985
  return s.length === 1 ? s[0] : void 0;
2986
2986
  }
2987
- function Li(e) {
2987
+ function Pi(e) {
2988
2988
  return e.type === "number" && J(e.numberFormat) && e.inheritMetricFormat !== !0;
2989
2989
  }
2990
- function Mi(e, a) {
2990
+ function Li(e, a) {
2991
2991
  var t;
2992
- return at(a.dataType) ? ee(e, "detailColumns").includes(a) ? e.type === "detailTable" : fn(a.granularity) || ((t = a.format) == null ? void 0 : t.type) === "temporal_bucket" || a.semanticTemporalPresentation != null : !1;
2992
+ return at(a.dataType) ? ee(e, "detailColumns").includes(a) ? e.type === "detailTable" : un(a.granularity) || ((t = a.format) == null ? void 0 : t.type) === "temporal_bucket" || a.semanticTemporalPresentation != null : !1;
2993
2993
  }
2994
2994
  function Da(e, a, t, s) {
2995
2995
  var i;
2996
2996
  const o = (i = e.card).preferences ?? (i.preferences = {}), n = o.sqlColumns ?? (o.sqlColumns = {});
2997
2997
  n[a] = { ...n[a], format: t }, e.changes.push({ path: s, action: "moved", to: `preferences.sqlColumns[${JSON.stringify(a)}].format` });
2998
2998
  }
2999
- function Bi(e) {
2999
+ function Mi(e) {
3000
3000
  const [a, ...t] = e;
3001
3001
  if (!a) return;
3002
3002
  const s = Object.fromEntries(
@@ -3004,7 +3004,7 @@ function Bi(e) {
3004
3004
  );
3005
3005
  return Et.safeParse(s).success ? s : void 0;
3006
3006
  }
3007
- function Vi(e, a) {
3007
+ function Bi(e, a) {
3008
3008
  const t = e.card, s = Mo({
3009
3009
  groupByColumns: ee(t, "groupByColumns"),
3010
3010
  metricColumns: ee(t, "metricColumns"),
@@ -3022,10 +3022,10 @@ function Vi(e, a) {
3022
3022
  });
3023
3023
  }
3024
3024
  }
3025
- function ji(e, a) {
3025
+ function Vi(e, a) {
3026
3026
  var n;
3027
3027
  if (!a.length) return;
3028
- const t = ee(e.card, "metricColumns"), s = t.length === 1 ? t[0] : void 0, o = s && !s.format ? Bi(a.map((i) => i.format)) : void 0;
3028
+ const t = ee(e.card, "metricColumns"), s = t.length === 1 ? t[0] : void 0, o = s && !s.format ? Mi(a.map((i) => i.format)) : void 0;
3029
3029
  s && o && st(e, s, o, a[0].from);
3030
3030
  for (const i of a)
3031
3031
  if (!(s != null && s.format && _e(i.format, s.format))) {
@@ -3050,7 +3050,7 @@ function ji(e, a) {
3050
3050
  );
3051
3051
  }
3052
3052
  }
3053
- function Ki(e) {
3053
+ function ji(e) {
3054
3054
  var l;
3055
3055
  const a = (l = e.card.preferences) == null ? void 0 : l.tablePrefs, t = a == null ? void 0 : a.columnSettingsMap;
3056
3056
  if (!J(t)) return;
@@ -3058,7 +3058,7 @@ function Ki(e) {
3058
3058
  for (const [c, h] of Object.entries(t)) {
3059
3059
  if (!J(h)) continue;
3060
3060
  const p = h, I = `preferences.tablePrefs.columnSettingsMap[${JSON.stringify(c)}]`;
3061
- if (Li(p)) {
3061
+ if (Pi(p)) {
3062
3062
  const v = So(p.numberFormat);
3063
3063
  if (v && o)
3064
3064
  Da(e, c, v, `${I}.numberFormat`);
@@ -3083,36 +3083,36 @@ function Ki(e) {
3083
3083
  Da(e, c, ko(p.dateFormat), `${I}.dateFormat`);
3084
3084
  else if (v && Rt(s)) {
3085
3085
  const x = Fa(s, c);
3086
- (!x || !Mi(s, x)) && e.unconverted.push({
3086
+ (!x || !Li(s, x)) && e.unconverted.push({
3087
3087
  path: `${I}.dateFormat`,
3088
3088
  reason: "config_column_date_setting",
3089
3089
  detail: `"${c}"'s download formats its dates with this setting.`
3090
3090
  });
3091
3091
  }
3092
3092
  }
3093
- for (const v of Ni)
3093
+ for (const v of qi)
3094
3094
  Object.prototype.hasOwnProperty.call(p, v) && (delete p[v], e.changes.push({ path: `${I}.${v}`, action: "removed" }));
3095
3095
  }
3096
- Vi(e, i), ji(e, d);
3096
+ Bi(e, i), Vi(e, d);
3097
3097
  }
3098
- function Wi(e) {
3098
+ function Ki(e) {
3099
3099
  return Object.keys(e).some(
3100
3100
  (a) => a !== "enabled" && a !== "colorRanges" && e[a] !== void 0
3101
3101
  );
3102
3102
  }
3103
- function Ui(e) {
3103
+ function Wi(e) {
3104
3104
  return (e == null ? void 0 : e.enabled) === !1 || (e == null ? void 0 : e.enabled) === "false";
3105
3105
  }
3106
- function Gi(e) {
3106
+ function Ui(e) {
3107
3107
  const a = e.card, t = a.preferences;
3108
3108
  if (!t) return;
3109
- const s = t.kpiVisualOptions, o = J(s == null ? void 0 : s.formatOptions) ? s.formatOptions : void 0, n = t, i = J(n.formatNumber) ? n.formatNumber : void 0, d = o ? Se(To(o)) : void 0, l = i && Wi(i) ? Se(Ro(i)) : void 0;
3109
+ const s = t.kpiVisualOptions, o = J(s == null ? void 0 : s.formatOptions) ? s.formatOptions : void 0, n = t, i = J(n.formatNumber) ? n.formatNumber : void 0, d = o ? Me(To(o)) : void 0, l = i && Ki(i) ? Me(Ro(i)) : void 0;
3110
3110
  if (a.type === "kpi") {
3111
- if (Ui(i) && e.unconverted.push({
3111
+ if (Wi(i) && e.unconverted.push({
3112
3112
  path: "preferences.formatNumber.enabled",
3113
3113
  reason: "raw_display",
3114
3114
  detail: "Formatting is switched off on this KPI."
3115
- }), Ai(a)) {
3115
+ }), Ri(a)) {
3116
3116
  const c = d ?? l, h = s == null ? void 0 : s.queryComparisonPolarity;
3117
3117
  (c || h) && (t.sqlKpiValue = {
3118
3118
  ...t.sqlKpiValue,
@@ -3127,7 +3127,7 @@ function Gi(e) {
3127
3127
  ee(a, "metricColumns").forEach((h) => {
3128
3128
  d ? st(e, h, d, "preferences.kpiVisualOptions.formatOptions") : l && !h.format && st(e, h, l, "preferences.formatNumber");
3129
3129
  });
3130
- Qi(e, i);
3130
+ Gi(e, i);
3131
3131
  } else if (l) {
3132
3132
  const c = ee(a, "metricColumns");
3133
3133
  ys(a) ? e.unconverted.push({
@@ -3144,11 +3144,11 @@ function Gi(e) {
3144
3144
  const c = i.colorRanges;
3145
3145
  Array.isArray(c) && c.length > 0 ? n.formatNumber = { colorRanges: c } : delete n.formatNumber, e.changes.push({ path: "preferences.formatNumber", action: "removed" });
3146
3146
  }
3147
- s && Te(s, ["formatOptions", "queryComparisonPolarity"]) && (e.changes.push({ path: "preferences.kpiVisualOptions.formatOptions", action: "removed" }), Object.keys(s).length === 0 && delete t.kpiVisualOptions);
3147
+ s && ke(s, ["formatOptions", "queryComparisonPolarity"]) && (e.changes.push({ path: "preferences.kpiVisualOptions.formatOptions", action: "removed" }), Object.keys(s).length === 0 && delete t.kpiVisualOptions);
3148
3148
  for (const c of ["numberAxisFormat", "columnSettings"])
3149
- Te(t, [c]) && e.changes.push({ path: `preferences.${c}`, action: "removed" });
3149
+ ke(t, [c]) && e.changes.push({ path: `preferences.${c}`, action: "removed" });
3150
3150
  }
3151
- function Qi(e, a) {
3151
+ function Gi(e, a) {
3152
3152
  var n;
3153
3153
  const t = a == null ? void 0 : a.decimalPlaces, s = e.card.preferences;
3154
3154
  if (typeof t != "number" || ((n = s.comparisonPresentation) == null ? void 0 : n.precision) !== void 0) return;
@@ -3162,24 +3162,24 @@ function Qi(e, a) {
3162
3162
  to: "preferences.comparisonPresentation.precision"
3163
3163
  }));
3164
3164
  }
3165
- const Hi = /* @__PURE__ */ new Set(["number", "currency", "percent", "scientific", "date", "duration"]);
3166
- function zi(e) {
3165
+ const Qi = /* @__PURE__ */ new Set(["number", "currency", "percent", "scientific", "date", "duration"]);
3166
+ function Hi(e) {
3167
3167
  const a = e.card.preferences;
3168
3168
  if (a)
3169
- for (const t of Ri) {
3169
+ for (const t of Ti) {
3170
3170
  const s = a[t];
3171
3171
  if (!J(s)) continue;
3172
3172
  const o = `preferences.${t}`, n = J(s.formatOptions) ? s.formatOptions : void 0, i = t === "dataLabelsConfig" && typeof s.format == "string" ? s.format : void 0, d = s.formatMode === "override" || s.formatMode === "inherit" ? s.formatMode : s.mode === "override" || s.mode === "inherit" ? s.mode : void 0, l = d ?? (i === "none" ? "raw" : i && i !== "auto" || n ? "override" : "inherit");
3173
3173
  if (l === "raw" || d === void 0 && i === "none")
3174
3174
  e.unconverted.push({ path: `${o}.format`, reason: "raw_display", detail: "Data labels show raw values." });
3175
3175
  else if (l === "override") {
3176
- const c = n && n.type ? n : i && Hi.has(i) ? { ...n, type: i } : n, h = c ? Se(Ao(c, { preserveOmittedProperties: !0 })) : void 0;
3176
+ const c = n && n.type ? n : i && Qi.has(i) ? { ...n, type: i } : n, h = c ? Me(Ao(c, { preserveOmittedProperties: !0 })) : void 0;
3177
3177
  h && (s.valueFormat = h, e.changes.push({ path: `${o}.formatOptions`, action: "moved", to: `${o}.valueFormat` }));
3178
3178
  }
3179
- Te(s, ["formatMode", "mode", "formatOptions", ...t === "dataLabelsConfig" ? ["format"] : []]) && e.changes.push({ path: `${o}.formatMode`, action: "removed" });
3179
+ ke(s, ["formatMode", "mode", "formatOptions", ...t === "dataLabelsConfig" ? ["format"] : []]) && e.changes.push({ path: `${o}.formatMode`, action: "removed" });
3180
3180
  }
3181
3181
  }
3182
- function Yi(e) {
3182
+ function zi(e) {
3183
3183
  var s;
3184
3184
  const a = (s = e.card.config) == null ? void 0 : s.matrix, t = J(a) && J(a.presentation) ? a.presentation : void 0;
3185
3185
  if (t)
@@ -3192,27 +3192,27 @@ function Yi(e) {
3192
3192
  }
3193
3193
  }
3194
3194
  }
3195
- function Ji(e, a = {}) {
3195
+ function Yi(e, a = {}) {
3196
3196
  const t = { card: structuredClone(e), changes: [], unconverted: [] };
3197
3197
  for (const s of Lt)
3198
3198
  ee(t.card, s).forEach((o, n) => {
3199
- J(o) && Oi(t, o, s, `config.${s}[${n}]`);
3199
+ J(o) && Di(t, o, s, `config.${s}[${n}]`);
3200
3200
  });
3201
- return qi(t), Ki(t), Gi(t), zi(t), Yi(t), Ei(t, a), t.changes.length === 0 && t.unconverted.length === 0 ? { card: e, changes: [], unconverted: [] } : t;
3201
+ return Ei(t), ji(t), Ui(t), Hi(t), zi(t), Oi(t, a), t.changes.length === 0 && t.unconverted.length === 0 ? { card: e, changes: [], unconverted: [] } : t;
3202
3202
  }
3203
- const Xi = "__semaphor_unassigned_trigger__", Zi = "__NULL__";
3204
- function er(e) {
3203
+ const Ji = "__semaphor_unassigned_trigger__", Xi = "__NULL__";
3204
+ function Zi(e) {
3205
3205
  var a, t;
3206
3206
  return !!((a = e.sql) != null && a.trim() || (t = e.python) != null && t.trim());
3207
3207
  }
3208
- function tr(e) {
3208
+ function er(e) {
3209
3209
  const a = e.config;
3210
3210
  return a ? e.type === "detailTable" ? a.detailColumns ?? [] : [...a.detailColumns ?? [], ...a.metricColumns ?? [], ...a.groupByColumns ?? []] : [];
3211
3211
  }
3212
3212
  function Oa(e) {
3213
3213
  return [e.id, e.alias, e.name, e.qualifiedFieldName, e.label];
3214
3214
  }
3215
- function ar(e, a) {
3215
+ function tr(e, a) {
3216
3216
  var c, h;
3217
3217
  const t = ((c = e.config) == null ? void 0 : c.metricColumns) ?? [], s = ((h = e.config) == null ? void 0 : h.pivotByColumns) ?? [];
3218
3218
  if (t.length !== 1 || s.length !== 1) return { reason: "pivot_key_form" };
@@ -3221,16 +3221,16 @@ function ar(e, a) {
3221
3221
  ref: {
3222
3222
  kind: "pivot",
3223
3223
  metricId: o.id,
3224
- members: [{ fieldId: n.id, value: a === Zi ? null : a }]
3224
+ members: [{ fieldId: n.id, value: a === Xi ? null : a }]
3225
3225
  }
3226
3226
  };
3227
3227
  }
3228
- function sr(e, a) {
3228
+ function ar(e, a) {
3229
3229
  var i, d;
3230
- if (a === Xi) return { reason: "unassigned_trigger" };
3231
- if (er(e)) return { ref: { kind: "result", key: a } };
3232
- const t = tr(e), s = t.filter((l) => Oa(l).includes(a)), o = s.length ? s : t.filter((l) => Oa(l).some((c) => (c == null ? void 0 : c.trim().toLowerCase()) === a.trim().toLowerCase())), n = [...new Set(o.map((l) => l.id))];
3233
- return n.length === 1 ? { ref: { kind: "field", fieldId: n[0] } } : n.length > 1 ? { reason: "ambiguous_column" } : (d = (i = e.config) == null ? void 0 : i.pivotByColumns) != null && d.length ? ar(e, a) : { reason: "no_matching_column" };
3230
+ if (a === Ji) return { reason: "unassigned_trigger" };
3231
+ if (Zi(e)) return { ref: { kind: "result", key: a } };
3232
+ const t = er(e), s = t.filter((l) => Oa(l).includes(a)), o = s.length ? s : t.filter((l) => Oa(l).some((c) => (c == null ? void 0 : c.trim().toLowerCase()) === a.trim().toLowerCase())), n = [...new Set(o.map((l) => l.id))];
3233
+ return n.length === 1 ? { ref: { kind: "field", fieldId: n[0] } } : n.length > 1 ? { reason: "ambiguous_column" } : (d = (i = e.config) == null ? void 0 : i.pivotByColumns) != null && d.length ? tr(e, a) : { reason: "no_matching_column" };
3234
3234
  }
3235
3235
  function Ea(e, a, t, s, o) {
3236
3236
  const n = (g, k, T) => {
@@ -3275,7 +3275,7 @@ function Ea(e, a, t, s, o) {
3275
3275
  target: N
3276
3276
  };
3277
3277
  }
3278
- function or(e, a) {
3278
+ function sr(e, a) {
3279
3279
  var o;
3280
3280
  const t = (o = La(e)) == null ? void 0 : o.value;
3281
3281
  if (!t) return [];
@@ -3288,7 +3288,7 @@ function or(e, a) {
3288
3288
  return [{ id: `kpi-color-range-${i + 1}`, condition: x, target: { level: "cell" }, style: { textColor: w } }];
3289
3289
  }).reverse();
3290
3290
  }
3291
- function nr(e) {
3291
+ function or(e) {
3292
3292
  var h, p, I, v, x, w, E;
3293
3293
  const a = structuredClone(e), t = [], s = [], o = [], n = (_) => {
3294
3294
  t.some((S) => S.from.startsWith(_)) || t.push({ ruleId: "", action: "removed", from: _ });
@@ -3301,7 +3301,7 @@ function nr(e) {
3301
3301
  t.push({ ruleId: D.id, action: "removed", from: `${S}.rules[${$}]` });
3302
3302
  return;
3303
3303
  }
3304
- const N = Ea(D, (k) => sr(a, k), `${S}.rules[${$}]`, s, !1);
3304
+ const N = Ea(D, (k) => ar(a, k), `${S}.rules[${$}]`, s, !1);
3305
3305
  N && (o.push(N), t.push({ ruleId: D.id, action: "moved", from: `${S}.rules[${$}]` }));
3306
3306
  }), delete i.conditionalFormatting, s.some((D) => D.path.startsWith(S)) || n(S);
3307
3307
  }
@@ -3323,7 +3323,7 @@ function nr(e) {
3323
3323
  if (c && ue(c, "colorRanges")) {
3324
3324
  const _ = Array.isArray(c.colorRanges) ? c.colorRanges : [];
3325
3325
  if (a.type === "kpi") {
3326
- const S = or(a, _);
3326
+ const S = sr(a, _);
3327
3327
  o.push(...S), S.forEach((y) => t.push({ ruleId: y.id, action: "moved", from: "preferences.formatNumber.colorRanges" }));
3328
3328
  }
3329
3329
  delete c.colorRanges, Object.keys(c).length === 0 && delete l.formatNumber, t.some((S) => S.from === "preferences.formatNumber.colorRanges") || t.push({ ruleId: "", action: "removed", from: "preferences.formatNumber.colorRanges" });
@@ -3341,11 +3341,14 @@ function nr(e) {
3341
3341
  }
3342
3342
  return { card: a, changes: t, unresolved: s };
3343
3343
  }
3344
- function Pr(e, a = {}) {
3345
- const { only: t, ...s } = a, o = t === "rules" ? void 0 : Ji(e, s), n = t === "formats" ? void 0 : nr((o == null ? void 0 : o.card) ?? e);
3344
+ function Nr(e, a = {}) {
3345
+ const { only: t, ...s } = a, o = t === "rules" ? void 0 : Yi(e, s), n = t === "formats" ? void 0 : or((o == null ? void 0 : o.card) ?? e);
3346
3346
  return { card: (n == null ? void 0 : n.card) ?? (o == null ? void 0 : o.card) ?? e, formats: o, rules: n };
3347
3347
  }
3348
- function ir(e) {
3348
+ function Pr(e) {
3349
+ return e.kind === "metric" ? e.resultId : e.measureId;
3350
+ }
3351
+ function nr(e) {
3349
3352
  if (e.op === "dashboard.update" || e.op === "dashboard.style" || e.op === "sheet.update") return !0;
3350
3353
  if (e.op !== "card.update") return !1;
3351
3354
  switch (e.update.kind) {
@@ -3358,7 +3361,7 @@ function ir(e) {
3358
3361
  }
3359
3362
  }
3360
3363
  function Lr(e) {
3361
- return e.impact.length || e.detaches ? "needed" : e.operations.length > 0 && e.operations.every(ir) ? "not_needed" : "needed";
3364
+ return e.impact.length || e.detaches ? "needed" : e.operations.length > 0 && e.operations.every(nr) ? "not_needed" : "needed";
3362
3365
  }
3363
3366
  export {
3364
3367
  Vr as AGGREGATES,
@@ -3368,17 +3371,17 @@ export {
3368
3371
  Ur as CARD_CONFIG_KEY_CLASSES,
3369
3372
  Gr as CARD_KEY_CLASSES,
3370
3373
  ho as CARD_QUERY_CONFIG_KEYS,
3371
- Tr as CARD_QUERY_REQUEST_DESCRIPTIVE_FIELDS,
3372
- kr as CARD_QUERY_REQUEST_EXECUTED_FIELDS,
3373
- mh as CARD_SURFACES,
3374
+ kr as CARD_QUERY_REQUEST_DESCRIPTIVE_FIELDS,
3375
+ Sr as CARD_QUERY_REQUEST_EXECUTED_FIELDS,
3376
+ Dh as CARD_SURFACES,
3374
3377
  Qr as CARD_TYPES,
3375
- De as CARD_TYPE_RULES,
3378
+ Fe as CARD_TYPE_RULES,
3376
3379
  je as CHART_COLORS_BOUNDS,
3377
3380
  Hr as CHIP_VALUE_COLUMN,
3378
3381
  zr as COLUMN_KEY_CLASSES,
3379
3382
  Yr as COLUMN_PRESENTATION_KEYS,
3380
3383
  Jr as COMPARISON_POLARITIES,
3381
- pf as COMPARISON_SIGN_WORDS,
3384
+ Cf as COMPARISON_SIGN_WORDS,
3382
3385
  Xr as CONTROL_BINDING_MAPPING_MISSING_ERROR_CODE,
3383
3386
  Zr as CONTROL_BINDING_TARGET_INVALID_ERROR_CODE,
3384
3387
  ed as CONTROL_BINDING_VALUE_INVALID_ERROR_CODE,
@@ -3389,16 +3392,16 @@ export {
3389
3392
  nd as CONTROL_REFERENCE_MISSING_ERROR_CODE,
3390
3393
  id as CONTROL_VALUE_INVALID_ERROR_CODE,
3391
3394
  rd as CONTROL_VALUE_MISSING_ERROR_CODE,
3392
- hh as CORNER_STEPS,
3395
+ Oh as CORNER_STEPS,
3393
3396
  ce as CardQueryRequestError,
3394
3397
  dd as ControlResolutionError,
3395
3398
  ld as DASHBOARD_CHANGE_OPS,
3396
3399
  cd as DASHBOARD_DEFAULT_OPTION_DEPENDENCIES,
3397
- gf as DASHBOARD_FILTER_OPERATIONS,
3400
+ $f as DASHBOARD_FILTER_OPERATIONS,
3398
3401
  ud as DASHBOARD_INPUT_RUNTIME_SCOPE_KINDS,
3399
- rn as DASHBOARD_STYLE_NUMBER_BOUNDS,
3400
- bf as DOCUMENT_KPI_SECTION_MAX_CARDS,
3401
- yf as DOCUMENT_KPI_SECTION_MAX_TILES,
3402
+ nn as DASHBOARD_STYLE_NUMBER_BOUNDS,
3403
+ wf as DOCUMENT_KPI_SECTION_MAX_CARDS,
3404
+ xf as DOCUMENT_KPI_SECTION_MAX_TILES,
3402
3405
  fd as DOMAIN_EDIT_CHANGE_OPS,
3403
3406
  md as DYNAMIC_TEXT_MESSAGE,
3404
3407
  hd as DashboardFilterMappingContractError,
@@ -3409,430 +3412,450 @@ export {
3409
3412
  yd as KPI_MEASURES_SHOWN,
3410
3413
  vd as KPI_TREND_PERIODS,
3411
3414
  Id as LEGACY_TABLE_CARD_TYPES,
3412
- dm as LEGACY_TABLE_ROUTING_ID_NAMESPACE,
3415
+ pm as LEGACY_TABLE_ROUTING_ID_NAMESPACE,
3413
3416
  ba as MAX_CREATE_CHANGES,
3414
3417
  _d as MAX_NEXT_STEP_CHARS,
3415
3418
  _o as MAX_PROPOSED_CHANGES,
3416
3419
  Cd as MAX_QUERY_LIMIT,
3417
3420
  $d as MAX_TEXT_WORDS,
3418
3421
  wd as MEASURE_CALCULATION_SUMMARIES,
3419
- Pm as NEW_CARD_TYPE,
3422
+ Wm as NEW_CARD_TYPE,
3420
3423
  xd as NON_ADDITIVE_SUM_OF_ROWS_HINT,
3421
3424
  Sd as PUBLIC_TRANSFORM_KIND,
3422
3425
  kd as QUERY_ASPECTS,
3423
3426
  Td as QUERY_CONFIG_KEY_ASPECTS,
3424
- Lm as RELATIONSHIP_ROUTE_CHANGED_MESSAGE,
3427
+ Um as RELATIONSHIP_ROUTE_CHANGED_MESSAGE,
3425
3428
  Rd as RESERVED_VARIABLE_NAMES,
3426
- Ad as SEMAPHOR_CARTESIAN_CHART_TYPES,
3427
- Fd as SETTINGS_BY_KIND,
3428
- bh as SHELF_FIELD_KEYS,
3429
- ph as SPACING_STEPS,
3430
- Dd as TIME_GRAINS,
3431
- Od as TOOLBAR_FILTER_REACH_FIELDS,
3432
- vf as VARIABLE_CARD_TYPE,
3433
- If as VARIABLE_COMPARISON_PARTS,
3434
- Ed as VARIABLE_GETS,
3435
- _f as VARIABLE_LIST_CAP,
3436
- Cf as VARIABLE_LIST_SHOWN,
3437
- qd as VARIABLE_NAME_PATTERN,
3438
- $f as VARIABLE_VALUE_PART,
3439
- Nd as WINDOW_ERROR_CODES,
3440
- Pd as WINDOW_WARNING_CODES,
3441
- Ld as acceptedColumnRefKinds,
3442
- Md as analyticsFilterSchema,
3443
- lm as applyCardReferenceRemapping,
3444
- Bd as applyCardSettings,
3429
+ Ad as SEE_RECORDS_CARD_TYPES,
3430
+ Fd as SEE_RECORDS_LIMITS,
3431
+ Dd as SEE_RECORDS_MAX_PAGE,
3432
+ Gm as SEE_RECORDS_MESSAGES,
3433
+ Od as SEMAPHOR_CARTESIAN_CHART_TYPES,
3434
+ Ed as SETTINGS_BY_KIND,
3435
+ Nh as SHELF_FIELD_KEYS,
3436
+ Eh as SPACING_STEPS,
3437
+ qd as TIME_GRAINS,
3438
+ Nd as TOOLBAR_FILTER_REACH_FIELDS,
3439
+ Sf as VARIABLE_CARD_TYPE,
3440
+ kf as VARIABLE_COMPARISON_PARTS,
3441
+ Pd as VARIABLE_GETS,
3442
+ Tf as VARIABLE_LIST_CAP,
3443
+ Rf as VARIABLE_LIST_SHOWN,
3444
+ Ld as VARIABLE_NAME_PATTERN,
3445
+ Af as VARIABLE_VALUE_PART,
3446
+ Md as WINDOW_ERROR_CODES,
3447
+ Bd as WINDOW_WARNING_CODES,
3448
+ Vd as acceptedColumnRefKinds,
3449
+ jd as analyticsFilterSchema,
3450
+ gm as applyCardReferenceRemapping,
3451
+ Kd as applyCardSettings,
3445
3452
  wt as applyDashboardOperations,
3446
- Vd as applyFilterApplicability,
3447
- Mm as applyFilterSettingsChange,
3448
- cm as applyGroupByOverride,
3449
- jd as applyLinkedClickToFilterOverrides,
3450
- Kd as applyMeasureCalculations,
3451
- Wd as applyOptionDependencyOverride,
3452
- Ud as applyVariableChange,
3453
- Gd as blockClause,
3454
- Qd as blockSentence,
3455
- Sh as bookmarkImpactSentence,
3456
- Bm as buildCardExportFormatOptions,
3457
- um as buildCardExportQueryContext,
3458
- Vm as buildCardExportRequest,
3459
- jm as buildCardExportRequestFromOptions,
3460
- Km as buildColumnCatalog,
3461
- Hd as buildControlDefinitionIndex,
3453
+ Wd as applyFilterApplicability,
3454
+ Qm as applyFilterSettingsChange,
3455
+ bm as applyGroupByOverride,
3456
+ Ud as applyLinkedClickToFilterOverrides,
3457
+ Gd as applyMeasureCalculations,
3458
+ Qd as applyOptionDependencyOverride,
3459
+ Hd as applyVariableChange,
3460
+ zd as blockClause,
3461
+ Yd as blockSentence,
3462
+ Uh as bookmarkImpactSentence,
3463
+ Hm as buildCardExportFormatOptions,
3464
+ ym as buildCardExportQueryContext,
3465
+ zm as buildCardExportRequest,
3466
+ Ym as buildCardExportRequestFromOptions,
3467
+ Jm as buildColumnCatalog,
3468
+ Jd as buildControlDefinitionIndex,
3462
3469
  no as buildDashboardCardSourceIndex,
3463
- Wm as buildEntityColumnGroup,
3464
- Um as buildFilterInputFromDefinition,
3465
- Ho as buildFilterInputFromField,
3466
- zd as buildLinkedClickToFilterOverrides,
3467
- Yd as buildProposeChangeInputSchema,
3468
- Jd as buildSavedEditorCard,
3469
- Gm as buildTableExportFormatOptions,
3470
- Xd as calculationAddSchema,
3471
- Qm as cardColumnRefForKey,
3472
- Zd as cardColumnRefSchema,
3470
+ Xm as buildEntityColumnGroup,
3471
+ Zm as buildFilterInputFromDefinition,
3472
+ Qo as buildFilterInputFromField,
3473
+ Xd as buildLinkedClickToFilterOverrides,
3474
+ Zd as buildProposeChangeInputSchema,
3475
+ el as buildSavedEditorCard,
3476
+ eh as buildTableExportFormatOptions,
3477
+ tl as calculationAddSchema,
3478
+ th as cardColumnRefForKey,
3479
+ al as cardColumnRefSchema,
3473
3480
  wo as cardConditionalFormattingSchema,
3474
- el as cardQueryPatchSchema,
3481
+ sl as cardQueryPatchSchema,
3475
3482
  Ps as cardSettingsKind,
3476
3483
  qs as cardTypeSentenceName,
3477
- tl as carryColumnSettings,
3484
+ ol as carryColumnSettings,
3478
3485
  po as changeCardType,
3479
- al as changeMatrixEditor,
3486
+ nl as changeMatrixEditor,
3480
3487
  xo as checkConditionalRuleColumns,
3481
3488
  Dt as checkDataVariable,
3482
- sl as checkDetailDateFormat,
3483
- Nr as checkPresentationStores,
3484
- ol as chipOverVariable,
3485
- nl as clickToFilterSettingsSchema,
3486
- il as collectJoinPlanIdentifiers,
3489
+ il as checkDetailDateFormat,
3490
+ qr as checkPresentationStores,
3491
+ rl as chipOverVariable,
3492
+ dl as clickToFilterSettingsSchema,
3493
+ ll as collectJoinPlanIdentifiers,
3487
3494
  Qa as collectVariableReferences,
3488
3495
  Na as columnDataset,
3489
3496
  go as columnFieldKey,
3490
3497
  Ka as columnKeys,
3491
- rl as columnRefIssue,
3498
+ cl as columnRefIssue,
3492
3499
  la as columnRefKey,
3493
- dl as columnSettingsInputSchema,
3494
- wf as comparisonPartPresentation,
3495
- fm as composeCardReferenceRemapping,
3496
- ll as conditionalRuleSchema,
3500
+ ul as columnSettingsInputSchema,
3501
+ Ff as comparisonPartPresentation,
3502
+ vm as composeCardReferenceRemapping,
3503
+ fl as conditionalRuleSchema,
3497
3504
  Lr as confirmClassFor,
3498
- cl as contextChangeSchema,
3499
- ul as controlBindingExecutionSchema,
3500
- fl as controlDefinitionExecutionSchema,
3505
+ ml as contextChangeSchema,
3506
+ hl as controlBindingExecutionSchema,
3507
+ pl as controlDefinitionExecutionSchema,
3501
3508
  so as controlRefusal,
3502
- Fr as convertLegacyStyle,
3503
- ml as createDashboardFilterBindingId,
3504
- Am as createMatrixAuthoringDraft,
3505
- Fm as createMatrixConfig,
3506
- Yo as createNewCard,
3507
- hl as createTargetSchema,
3508
- zo as createTextCard,
3509
- pl as dashboardCardFilterSourceInventoryContains,
3509
+ Ar as convertLegacyStyle,
3510
+ gl as createDashboardFilterBindingId,
3511
+ Pm as createMatrixAuthoringDraft,
3512
+ Lm as createMatrixConfig,
3513
+ zo as createNewCard,
3514
+ bl as createTargetSchema,
3515
+ Ho as createTextCard,
3516
+ yl as dashboardCardFilterSourceInventoryContains,
3510
3517
  Zs as dashboardChangeSchema,
3511
- gl as dashboardFilterTargetMatchesLogicalValue,
3512
- xf as dashboardFilterValueTypeForDataType,
3518
+ vl as dashboardFilterTargetMatchesLogicalValue,
3519
+ Df as dashboardFilterValueTypeForDataType,
3513
3520
  No as dashboardInputScopeIncludesDocumentSheets,
3514
- Rn as dashboardStyleAsEdit,
3515
- bl as dashboardStyleChangeSchema,
3521
+ Tn as dashboardStyleAsEdit,
3522
+ Il as dashboardStyleChangeSchema,
3516
3523
  za as dashboardStyleLayers,
3517
- yl as defaultClickToFilterSettings,
3518
- gn as defaultVariableGet,
3519
- yh as defaultVariableName,
3520
- kh as describeBookmarkImpact,
3521
- vl as describeDashboardFilterCardReach,
3524
+ _l as defaultClickToFilterSettings,
3525
+ pn as defaultVariableGet,
3526
+ Ph as defaultVariableName,
3527
+ Gh as describeBookmarkImpact,
3528
+ Cl as describeDashboardFilterCardReach,
3522
3529
  $e as describeDashboardFilterCardReachDetail,
3523
- Il as describeMeasureCalculations,
3530
+ ah as describeDateWindow,
3531
+ sh as describeKpiDateSection,
3532
+ oh as describeKpiTileDate,
3533
+ $l as describeMeasureCalculations,
3524
3534
  ao as describeQueryChange,
3525
- Hm as describeRelationshipRoute,
3526
- zm as describeRelationshipSkip,
3527
- _l as describeTableColumnTotal,
3528
- Sf as documentInputTextUsage,
3529
- kf as doesDashboardInputApplyToTarget,
3530
- Tf as doesDashboardInputReachFilterTarget,
3531
- Rf as doesDashboardInputSurviveCarriedContext,
3532
- Cl as doesToolbarFilterReachTab,
3533
- Ym as domainCalculatedFields,
3534
- $l as domainEditChangeSchema,
3535
- wl as domainEditChangeSchemas,
3536
- vh as draftBlocker,
3537
- bn as draftFromVariable,
3538
- xl as drawsDetailDatesInBrowser,
3539
- Sl as dropMatrixEditorField,
3540
- Rh as editBrandStyle,
3541
- dn as editDashboardStyle,
3542
- kl as evaluateConditionalRules,
3543
- Tl as explicitComparisonSchema,
3535
+ nh as describeRelationshipRoute,
3536
+ ih as describeRelationshipSkip,
3537
+ wl as describeTableColumnTotal,
3538
+ Of as documentInputTextUsage,
3539
+ Ef as doesDashboardInputApplyToTarget,
3540
+ qf as doesDashboardInputReachFilterTarget,
3541
+ Nf as doesDashboardInputSurviveCarriedContext,
3542
+ xl as doesToolbarFilterReachTab,
3543
+ rh as domainCalculatedFields,
3544
+ Sl as domainEditChangeSchema,
3545
+ kl as domainEditChangeSchemas,
3546
+ Lh as draftBlocker,
3547
+ gn as draftFromVariable,
3548
+ Tl as drawsDetailDatesInBrowser,
3549
+ Rl as dropMatrixEditorField,
3550
+ Hh as editBrandStyle,
3551
+ rn as editDashboardStyle,
3552
+ Al as evaluateConditionalRules,
3553
+ Fl as explicitComparisonSchema,
3544
3554
  Gs as fieldIdentityKey,
3545
- Rl as fieldRef,
3546
- Al as fieldRefSchema,
3547
- Fl as filterApplicabilityContextForCard,
3548
- Jm as filterReachPreviewAnswers,
3549
- Dl as filterValueReachForCard,
3550
- Ol as filterValueSemanticDataset,
3555
+ Dl as fieldRef,
3556
+ Ol as fieldRefSchema,
3557
+ El as filterApplicabilityContextForCard,
3558
+ dh as filterReachPreviewAnswers,
3559
+ ql as filterValueReachForCard,
3560
+ Nl as filterValueSemanticDataset,
3551
3561
  ot as findCatalogField,
3552
- El as findDashboardCardExecutableSource,
3553
- ql as findDashboardCardPinnedCatalogSource,
3562
+ Pl as findDashboardCardExecutableSource,
3563
+ Ll as findDashboardCardPinnedCatalogSource,
3554
3564
  Ua as findDashboardFilterTarget,
3555
- Nl as findDashboardSqlPinnedCatalogSource,
3565
+ Ml as findDashboardSqlPinnedCatalogSource,
3556
3566
  ps as findRetiredCardPresentationFields,
3557
- qr as findRetiredPresentationFields,
3567
+ Er as findRetiredPresentationFields,
3558
3568
  Us as findSortedColumn,
3559
- Xm as flattenEntityColumns,
3560
- Pl as foldPrototypeDocumentInputs,
3561
- Ll as formatFilterModelIssues,
3569
+ lh as flattenEntityColumns,
3570
+ Bl as foldPrototypeDocumentInputs,
3571
+ Vl as formatFilterModelIssues,
3562
3572
  ws as formatResolvedPrimaryDateFieldIssues,
3563
- Ml as formatSkippedFilterWarnings,
3564
- Bl as fromEditableRules,
3565
- Zm as getCalculatedFieldAggregateOverrides,
3566
- Vl as getCalculatedFieldNamespace,
3567
- eh as getCalculatedFieldParameters,
3568
- th as getCalculatedFieldShelfOverrides,
3569
- jl as getCardDefinition,
3570
- ah as getClickContextFromTable,
3571
- Kl as getColumnCatalogFieldId,
3572
- Wl as getDashboardFilterSubscriptionHint,
3573
- Ul as getDashboardGlobalDateFilter,
3574
- Af as getDocumentKpiSectionShapeIssues,
3575
- Ff as getDocumentSectionCards,
3576
- sh as getDomainCalculatedSelectionOverrides,
3577
- Gl as getFieldAggregationOptions,
3578
- Ql as getMatrixBindingTargets,
3579
- Dm as getMatrixLevelLabel,
3580
- Om as getMatrixMeasureLabel,
3581
- Hl as getStableDomainCalculatedFieldId,
3582
- zl as getTemporalBucketAuthoringOptions,
3583
- Yl as getTemporalBucketAuthoringSelection,
3584
- Jl as handleSchema,
3585
- Xl as hasDashboardFilterSubscription,
3573
+ jl as formatSkippedFilterWarnings,
3574
+ Kl as fromEditableRules,
3575
+ ch as getCalculatedFieldAggregateOverrides,
3576
+ Wl as getCalculatedFieldNamespace,
3577
+ uh as getCalculatedFieldParameters,
3578
+ fh as getCalculatedFieldShelfOverrides,
3579
+ Ul as getCardDefinition,
3580
+ mh as getClickContextFromTable,
3581
+ Gl as getColumnCatalogFieldId,
3582
+ Ql as getDashboardFilterSubscriptionHint,
3583
+ Hl as getDashboardGlobalDateFilter,
3584
+ Pf as getDocumentKpiSectionShapeIssues,
3585
+ Lf as getDocumentSectionCards,
3586
+ hh as getDomainCalculatedSelectionOverrides,
3587
+ zl as getFieldAggregationOptions,
3588
+ Yl as getMatrixBindingTargets,
3589
+ Mm as getMatrixLevelLabel,
3590
+ Bm as getMatrixMeasureLabel,
3591
+ Jl as getStableDomainCalculatedFieldId,
3592
+ Xl as getTemporalBucketAuthoringOptions,
3593
+ Zl as getTemporalBucketAuthoringSelection,
3594
+ ec as handleSchema,
3595
+ tc as hasDashboardFilterSubscription,
3596
+ ph as hasSeeRecordsMeasureFilter,
3586
3597
  ue as hasStoredKey,
3587
- Zl as hasTextCardRichWords,
3588
- ec as hasToolbarFilterReachField,
3589
- mm as hostFilterValueFor,
3590
- hm as hostFilterValuesToSlots,
3591
- tc as inspectMatrixCardConfig,
3592
- pm as isAdHocFilterValueOnTab,
3598
+ ac as hasTextCardRichWords,
3599
+ sc as hasToolbarFilterReachField,
3600
+ Im as hostFilterValueFor,
3601
+ _m as hostFilterValuesToSlots,
3602
+ oc as inspectMatrixCardConfig,
3603
+ Cm as isAdHocFilterValueOnTab,
3593
3604
  Ca as isAggregateGet,
3594
- ac as isAllowedDashboardInputScopeCombination,
3595
- sc as isCardType,
3596
- Df as isDashboardFilterOperationCompatible,
3605
+ nc as isAllowedDashboardInputScopeCombination,
3606
+ ic as isCardType,
3607
+ Mf as isDashboardFilterOperationCompatible,
3597
3608
  Ga as isDashboardInputOnTab,
3598
- Of as isDashboardInputOwnedBySheet,
3599
- Ef as isDashboardInputScopeEmpty,
3600
- qf as isDashboardTargetIdTaken,
3601
- oc as isDatabaseEntityReference,
3602
- nc as isGroupedDate,
3603
- ic as isLegacyTableCard,
3604
- rc as isPresentationCurrencyBinding,
3605
- dc as isSemanticAutoJoinCard,
3606
- lc as isSemaphorCartesianChartType,
3609
+ Bf as isDashboardInputOwnedBySheet,
3610
+ Vf as isDashboardInputScopeEmpty,
3611
+ jf as isDashboardTargetIdTaken,
3612
+ rc as isDatabaseEntityReference,
3613
+ dc as isGroupedDate,
3614
+ lc as isLegacyTableCard,
3615
+ cc as isPresentationCurrencyBinding,
3616
+ uc as isSeeRecordsCardType,
3617
+ fc as isSemanticAutoJoinCard,
3618
+ mc as isSemaphorCartesianChartType,
3607
3619
  Oo as isSqlKpi,
3608
- cc as isStructuralControlBinding,
3609
- uc as isTextCardRichContent,
3610
- fc as isValidControlOptionPresentation,
3611
- Nf as isVariableComparisonPart,
3612
- mc as isWhenRun,
3613
- hc as kpiSegmentMetricId,
3614
- pc as kpiShowsTrend,
3620
+ hc as isStructuralControlBinding,
3621
+ pc as isTextCardRichContent,
3622
+ gc as isValidControlOptionPresentation,
3623
+ Kf as isVariableComparisonPart,
3624
+ bc as isWhenRun,
3625
+ yc as kpiSegmentMetricId,
3626
+ vc as kpiShowsTrend,
3615
3627
  Es as kpiTrendBy,
3628
+ gh as kpiTrendByHint,
3616
3629
  Ws as labelAt,
3617
- gc as layoutArrangeSchema,
3618
- gm as legacyTableRoutingIds,
3619
- bm as legacyTableRoutingTarget,
3620
- bc as linkedClickToFilterOverridesSchema,
3621
- ym as listAdHocFilterValuesOnTab,
3630
+ Ic as layoutArrangeSchema,
3631
+ $m as legacyTableRoutingIds,
3632
+ wm as legacyTableRoutingTarget,
3633
+ _c as linkedClickToFilterOverridesSchema,
3634
+ xm as listAdHocFilterValuesOnTab,
3622
3635
  xe as listDashboardCardLocations,
3623
- yc as listDashboardFilterDefinitions,
3624
- vc as listDashboardFilterInputsOnTab,
3636
+ Cc as listDashboardFilterDefinitions,
3637
+ $c as listDashboardFilterInputsOnTab,
3625
3638
  Wa as listDashboardFilterTargets,
3626
- Pf as listDashboardInputReachKeys,
3639
+ Wf as listDashboardInputReachKeys,
3627
3640
  Eo as listDashboardInputScopeExceptedCardIds,
3628
3641
  qo as listDashboardInputScopeExceptedSheetIds,
3629
- Ic as listDashboardInputsTolerantly,
3642
+ wc as listDashboardInputsTolerantly,
3630
3643
  Ot as listDashboardTabTargets,
3631
- Lf as listDataVariablePlaces,
3632
- vm as listFilterInputValueTargets,
3633
- Mf as listFilterTargetScopeTargets,
3634
- Bf as listReachedVariableTargets,
3635
- Vf as listReferencedDataVariableIds,
3636
- _c as listStoredFilterDefinitions,
3637
- jf as listVariableScopeTargets,
3638
- Kf as mapDashboardCards,
3639
- Wf as mapDocumentSectionCards,
3640
- Cc as mapRuleColumns,
3641
- $c as matchColumns,
3642
- Im as matrixCatalogSources,
3644
+ Uf as listDataVariablePlaces,
3645
+ Sm as listFilterInputValueTargets,
3646
+ Gf as listFilterTargetScopeTargets,
3647
+ Qf as listReachedVariableTargets,
3648
+ Hf as listReferencedDataVariableIds,
3649
+ xc as listStoredFilterDefinitions,
3650
+ zf as listVariableScopeTargets,
3651
+ Yf as mapDashboardCards,
3652
+ Jf as mapDocumentSectionCards,
3653
+ Sc as mapRuleColumns,
3654
+ kc as matchColumns,
3655
+ km as matrixCatalogSources,
3643
3656
  vo as matrixColumnKeys,
3644
- wc as matrixColumnsSchema,
3645
- xc as matrixDefinitionFieldRefs,
3646
- Sc as matrixDefinitionFields,
3647
- kc as matrixDefinitionSources,
3648
- Tc as matrixEditorCatalogFromFields,
3649
- _m as matrixExecutionSources,
3650
- Rc as measureCalculationOptions,
3651
- Ac as measureComparisonSchema,
3652
- Fc as measureRefSchema,
3653
- Dc as measureTransformSchema,
3654
- Em as mergeMatrixSorts,
3657
+ Tc as matrixColumnsSchema,
3658
+ Rc as matrixDefinitionFieldRefs,
3659
+ Ac as matrixDefinitionFields,
3660
+ Fc as matrixDefinitionSources,
3661
+ Dc as matrixEditorCatalogFromFields,
3662
+ Tm as matrixExecutionSources,
3663
+ Oc as measureCalculationOptions,
3664
+ Ec as measureComparisonSchema,
3665
+ qc as measureRefSchema,
3666
+ Nc as measureTransformSchema,
3667
+ Vm as mergeMatrixSorts,
3655
3668
  lo as metricCardQuerySchema,
3656
3669
  yo as moveMatrixLevel,
3657
- Ih as newVariableDraft,
3658
- _h as newVariableId,
3659
- Oc as normalizeClickToFilterSettings,
3660
- Ec as normalizeDashboardInputs,
3661
- qc as normalizeLegacyLinkedTargetOverrides,
3662
- Nc as occurrenceKeys,
3670
+ Mh as newVariableDraft,
3671
+ Bh as newVariableId,
3672
+ Pc as normalizeClickToFilterSettings,
3673
+ Lc as normalizeDashboardInputs,
3674
+ Mc as normalizeLegacyLinkedTargetOverrides,
3675
+ Bc as occurrenceKeys,
3663
3676
  es as outlineCalendar,
3664
- Er as outlineDashboard,
3665
- Le as outlineFilter,
3677
+ Or as outlineDashboard,
3678
+ Pe as outlineFilter,
3666
3679
  as as outlineFilters,
3667
3680
  ut as ownsItsAggregate,
3668
- Ar as parseCardQueryRequest,
3669
- wn as parseCardQueryRequestContext,
3670
- Rr as parseCardQueryRequestExtras,
3671
- Pc as parseColumnRefKey,
3672
- oh as parseDashboardStyle,
3673
- Lc as parseExecutionControlBindingsShallow,
3681
+ Rr as parseCardQueryRequest,
3682
+ $n as parseCardQueryRequestContext,
3683
+ Tr as parseCardQueryRequestExtras,
3684
+ Vc as parseColumnRefKey,
3685
+ bh as parseDashboardStyle,
3686
+ jc as parseExecutionControlBindingsShallow,
3674
3687
  Ss as parseExecutionControlContext,
3675
- Mc as parseExecutionControlContract,
3688
+ Kc as parseExecutionControlContract,
3676
3689
  pa as planCardLabels,
3677
3690
  ha as planCardRequery,
3678
- nh as pluralDatasetLabel,
3679
- Cm as prepareLoadedDashboard,
3680
- Bc as previewTemporalBucketAuthoringFormat,
3681
- Uf as projectDataVariableToCard,
3682
- Vc as pruneUnrelatedCalculatedFilters,
3691
+ yh as pluralDatasetLabel,
3692
+ Rm as prepareLoadedDashboard,
3693
+ Wc as previewTemporalBucketAuthoringFormat,
3694
+ Xf as projectDataVariableToCard,
3695
+ Uc as pruneUnrelatedCalculatedFilters,
3683
3696
  oo as queryForm,
3684
- jc as queryMeasureSchema,
3685
- Kc as readCardConditionalRules,
3697
+ Gc as queryMeasureSchema,
3698
+ Qc as readCardConditionalRules,
3686
3699
  we as readCardQuery,
3687
3700
  Ft as readCardSettings,
3688
3701
  he as readCardSource,
3689
- qe as readCardTypeProperties,
3690
- $h as readComparisonDates,
3702
+ Ee as readCardTypeProperties,
3703
+ jh as readComparisonDates,
3691
3704
  Ie as readDashboardFilterModel,
3692
- wh as readDefaultComparisonDates,
3693
- Wc as readExactDomainCalculatedFieldReference,
3694
- ih as readFilterReachResponse,
3695
- $m as readFilterValueList,
3696
- Uc as readKpiFigure,
3697
- Gc as readMatrixCardConfig,
3698
- Qc as readMeasureCalculations,
3699
- Hc as readSqlFilterUse,
3700
- zc as readStoredTransform,
3705
+ Kh as readDefaultComparisonDates,
3706
+ Hc as readExactDomainCalculatedFieldReference,
3707
+ vh as readFilterReachResponse,
3708
+ Am as readFilterValueList,
3709
+ Ih as readKpiDateContext,
3710
+ zc as readKpiFigure,
3711
+ Yc as readKpiNumber,
3712
+ Jc as readMatrixCardConfig,
3713
+ Xc as readMeasureCalculations,
3714
+ Zc as readSqlFilterUse,
3715
+ eu as readStoredTransform,
3701
3716
  ja as readTextCardWords,
3702
3717
  Ze as readTextWords,
3703
- Yc as readTransform,
3704
- Gf as readVariableAnswer,
3718
+ tu as readTransform,
3719
+ Zf as readVariableAnswer,
3705
3720
  rs as readVariableEditability,
3706
3721
  kt as readVariableSource,
3707
3722
  Co as readablePresentation,
3708
- Jc as rebindDashboardOptionDependencyInputId,
3723
+ au as rebindDashboardOptionDependencyInputId,
3709
3724
  ma as rebuildsRole,
3710
- Xc as reconcileMatrixSpecStructure,
3711
- Zc as reconcileTemporalBucketAuthoringFormat,
3725
+ su as reconcileMatrixSpecStructure,
3726
+ ou as reconcileTemporalBucketAuthoringFormat,
3712
3727
  ro as recordsCardQuerySchema,
3713
3728
  Js as refDataset,
3714
3729
  be as refKey,
3715
3730
  Ct as refName,
3716
- eu as registeredDomainEditChangeSchemas,
3717
- tu as relationshipAddSchema,
3718
- au as relationshipRouteTarget,
3719
- su as remapClickToFilterReferences,
3720
- ou as remapLinkedClickToFilterOverrides,
3721
- nu as requireNormalizedDashboardInputs,
3722
- iu as resolveBindingControlValue,
3723
- Qf as resolveCanonicalDetailResultRawKey,
3724
- Hf as resolveCanonicalResultOutputKey,
3731
+ nu as registeredDomainEditChangeSchemas,
3732
+ iu as relationshipAddSchema,
3733
+ ru as relationshipRouteTarget,
3734
+ du as remapClickToFilterReferences,
3735
+ lu as remapLinkedClickToFilterOverrides,
3736
+ cu as requireNormalizedDashboardInputs,
3737
+ uu as resolveBindingControlValue,
3738
+ em as resolveCanonicalDetailResultRawKey,
3739
+ tm as resolveCanonicalResultOutputKey,
3725
3740
  Mo as resolveCanonicalResultOutputKeys,
3726
- zf as resolveCanonicalResultRawKey,
3727
- rh as resolveCardColumnRef,
3728
- Qn as resolveCardSettings,
3729
- dh as resolveConditionalRules,
3730
- Dr as resolveDashboardChanges,
3731
- Or as resolveDashboardCreate,
3732
- ru as resolveDashboardEntitySource,
3733
- du as resolveDashboardFilterAutomaticTarget,
3734
- lu as resolveDashboardFilterInheritedTarget,
3735
- cu as resolveDashboardOptionDependencies,
3736
- uu as resolveDashboardOptionPopulation,
3737
- fu as resolveDashboardSqlFilterTarget,
3738
- ln as resolveDashboardStyle,
3739
- mu as resolveDetailTableRawTemporalPresentation,
3740
- hu as resolveFieldSelectedSource,
3741
- pu as resolveGroupByFieldTarget,
3742
- gu as resolveKpiLayout,
3741
+ am as resolveCanonicalResultRawKey,
3742
+ _h as resolveCardColumnRef,
3743
+ Gn as resolveCardSettings,
3744
+ Ch as resolveConditionalRules,
3745
+ Fr as resolveDashboardChanges,
3746
+ Dr as resolveDashboardCreate,
3747
+ fu as resolveDashboardEntitySource,
3748
+ mu as resolveDashboardFilterAutomaticTarget,
3749
+ hu as resolveDashboardFilterInheritedTarget,
3750
+ pu as resolveDashboardOptionDependencies,
3751
+ gu as resolveDashboardOptionPopulation,
3752
+ bu as resolveDashboardSqlFilterTarget,
3753
+ dn as resolveDashboardStyle,
3754
+ yu as resolveDetailTableRawTemporalPresentation,
3755
+ vu as resolveFieldSelectedSource,
3756
+ Iu as resolveGroupByFieldTarget,
3757
+ _u as resolveKpiLayout,
3743
3758
  La as resolveKpiShape,
3744
- bu as resolveKpiValueStyle,
3745
- wm as resolveMatrixControlBindings,
3746
- qm as resolveMatrixDefinition,
3759
+ Cu as resolveKpiValueStyle,
3760
+ Fm as resolveMatrixControlBindings,
3761
+ jm as resolveMatrixDefinition,
3747
3762
  fa as resolveMeasureCalculations,
3748
- yu as resolveMeasureTransform,
3749
- vu as resolveMetricFieldTarget,
3750
- Iu as resolveScalarMappedValue,
3751
- _u as resolveTableColumnTotal,
3752
- Cu as resolveTemporalBucketAuthoringFormat,
3763
+ $u as resolveMeasureTransform,
3764
+ wu as resolveMetricFieldTarget,
3765
+ xu as resolveScalarMappedValue,
3766
+ Su as resolveTableColumnTotal,
3767
+ ku as resolveTemporalBucketAuthoringFormat,
3753
3768
  xs as resolveTemporalResultOwner,
3754
3769
  ga as resolveTextCardWords,
3755
- $u as resolveValueStyle,
3756
- wu as respondsToSelectionsSchema,
3757
- xu as retainConditionalRules,
3758
- Su as retainedMatrixPath,
3759
- Yf as rewriteDashboardInputScopeIds,
3760
- xm as routeLegacyTableCard,
3761
- Sm as routeLegacyTableCards,
3762
- km as routeLegacyTableFrame,
3770
+ Tu as resolveValueStyle,
3771
+ Ru as respondsToSelectionsSchema,
3772
+ Au as retainConditionalRules,
3773
+ Fu as retainedMatrixPath,
3774
+ sm as rewriteDashboardInputScopeIds,
3775
+ Dm as routeLegacyTableCard,
3776
+ Om as routeLegacyTableCards,
3777
+ Em as routeLegacyTableFrame,
3763
3778
  He as sameColumnKey,
3764
- ku as sanitizeTextCardUrl,
3765
- Tu as selectDashboardOptionDependencyInputIds,
3766
- Ru as selectionFieldFromExplorerField,
3767
- lh as selectionTupleFromClickContext,
3768
- ch as setMeasureCalculations,
3769
- Au as settableCardType,
3770
- Fu as sharedCardPreferences,
3771
- Du as sharedTableDialect,
3772
- Ou as sheetChangeSchemas,
3779
+ Du as sanitizeTextCardUrl,
3780
+ $h as seeRecordsAvailability,
3781
+ wh as seeRecordsCardAvailability,
3782
+ Pr as seeRecordsMeasureId,
3783
+ xh as seeRecordsMeasureKind,
3784
+ Sh as seeRecordsReasonHidesOffer,
3785
+ Ou as seeRecordsRequestSchema,
3786
+ kh as seeRecordsRowField,
3787
+ Eu as selectDashboardOptionDependencyInputIds,
3788
+ qu as selectionFieldFromExplorerField,
3789
+ Th as selectionTupleFromClickContext,
3790
+ Rh as setMeasureCalculations,
3791
+ Nu as settableCardType,
3792
+ Pu as sharedCardPreferences,
3793
+ Lu as sharedTableDialect,
3794
+ Mu as sheetChangeSchemas,
3773
3795
  io as sqlCardQuerySchema,
3774
- Eu as sqlKpiResultKeys,
3775
- Ne as statedLabelsOf,
3796
+ Bu as sqlKpiResultKeys,
3797
+ qe as statedLabelsOf,
3776
3798
  Rs as storedCardTypeFor,
3777
- qu as storedRunPresentation,
3778
- Jf as storedTextRefs,
3779
- Nu as stripInstanceTargetsForLibrarySave,
3780
- Pu as structuralControlOverride,
3799
+ Vu as storedRunPresentation,
3800
+ om as storedTextRefs,
3801
+ ju as stripInstanceTargetsForLibrarySave,
3802
+ Ku as structuralControlOverride,
3781
3803
  ts as summarizeFilter,
3782
- Lu as supportsCanonicalDashboardTemporalResult,
3783
- Mu as tabChangeSchemas,
3784
- Bu as tableColumnTotalLabel,
3785
- Vu as textCardExcerpt,
3786
- ju as textCardWordingClauses,
3804
+ Wu as supportsCanonicalDashboardTemporalResult,
3805
+ Uu as tabChangeSchemas,
3806
+ Gu as tableColumnTotalLabel,
3807
+ Qu as textCardExcerpt,
3808
+ Hu as textCardWordingClauses,
3787
3809
  _t as textCatalogAt,
3788
3810
  ct as toChartType,
3789
- Ku as toEditableRules,
3790
- Wu as toFiniteKpiNumber,
3811
+ zu as toEditableRules,
3812
+ Yu as toFiniteKpiNumber,
3791
3813
  $t as toPublicCardType,
3792
3814
  Xs as toStoredComparison,
3793
- Uu as toolbarFilterInputFields,
3794
- Gu as toolbarFilterScope,
3795
- Qu as transformComparisonDocument,
3796
- Hu as transformGroupings,
3797
- zu as transformOrderSchema,
3815
+ Ju as toolbarFilterInputFields,
3816
+ Xu as toolbarFilterScope,
3817
+ Zu as transformComparisonDocument,
3818
+ ef as transformGroupings,
3819
+ tf as transformOrderSchema,
3798
3820
  bo as updateMatrixConfig,
3799
- Ji as upgradeCardFormats,
3800
- Pr as upgradeCardPresentation,
3801
- nr as upgradeConditionalFormatting,
3802
- Tm as upgradeToStoredDashboard,
3803
- Yu as validateAndResolveWindowTransforms,
3804
- Ju as validateControlValue,
3805
- Xf as validateDashboardFilterValues,
3821
+ Yi as upgradeCardFormats,
3822
+ Nr as upgradeCardPresentation,
3823
+ or as upgradeConditionalFormatting,
3824
+ qm as upgradeToStoredDashboard,
3825
+ af as validateAndResolveWindowTransforms,
3826
+ sf as validateControlValue,
3827
+ nm as validateDashboardFilterValues,
3806
3828
  $s as validateResolvedPrimaryDateFieldShape,
3807
- Zf as variableCardKeepsComparison,
3808
- em as variableComparison,
3829
+ im as variableCardKeepsComparison,
3830
+ rm as variableComparison,
3809
3831
  Ye as variableFromDraft,
3810
- pn as variableGetOptions,
3811
- tm as variablePartCell,
3812
- am as variablePartType,
3832
+ hn as variableGetOptions,
3833
+ dm as variablePartCell,
3834
+ lm as variablePartType,
3813
3835
  Lo as variableParts,
3814
- sm as variableQueryResponseOf,
3815
- uh as variableSourceWords,
3816
- yn as variableTakesComparison,
3817
- Xo as variableWords,
3818
- Xu as withCardConditionalRules,
3819
- Zu as withCardConfigSqlDatePatterns,
3820
- om as withCardExcludedFromScope,
3821
- nm as withCardIncludedInScope,
3822
- ef as withDashboardOptionDependencyOverride,
3823
- tf as withDetailSqlDatePattern,
3824
- im as withDraftCard,
3825
- af as withFormatOverride,
3826
- sf as withSqlDatePattern,
3836
+ cm as variableQueryResponseOf,
3837
+ Ah as variableSourceWords,
3838
+ bn as variableTakesComparison,
3839
+ Jo as variableWords,
3840
+ of as withCardConditionalRules,
3841
+ nf as withCardConfigSqlDatePatterns,
3842
+ um as withCardExcludedFromScope,
3843
+ fm as withCardIncludedInScope,
3844
+ rf as withDashboardOptionDependencyOverride,
3845
+ df as withDetailSqlDatePattern,
3846
+ mm as withDraftCard,
3847
+ lf as withFormatOverride,
3848
+ cf as withSqlDatePattern,
3827
3849
  Po as withUnstatedScopeParts,
3828
- of as withoutSqlDatePattern,
3829
- nf as withoutToolbarFilterReachFields,
3830
- rf as wordingBlocks,
3831
- df as wordingClauses,
3832
- lf as writeColumnFormat,
3833
- cf as writeColumnPolarity,
3834
- uf as writeComparisonDisplay,
3835
- ff as writeComparisonPresentation,
3836
- mf as writeInheritComparison,
3850
+ uf as withoutSqlDatePattern,
3851
+ ff as withoutToolbarFilterReachFields,
3852
+ mf as wordingBlocks,
3853
+ hf as wordingClauses,
3854
+ pf as writeColumnFormat,
3855
+ gf as writeColumnPolarity,
3856
+ bf as writeComparisonDisplay,
3857
+ yf as writeComparisonPresentation,
3858
+ vf as writeInheritComparison,
3859
+ If as writeSeeRecords,
3837
3860
  Ys as writeTextWords
3838
3861
  };