react-semaphor 0.1.602 → 0.1.604

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (211) hide show
  1. package/dist/activity/index.js +1 -73
  2. package/dist/analytics-protocol/index.js +1 -1451
  3. package/dist/appearance/index.js +1 -12
  4. package/dist/appearance-runtime/index.js +1 -5
  5. package/dist/assistant-context/index.js +1 -11
  6. package/dist/assistant-protocol/index.js +1 -152
  7. package/dist/brand-studio/index.js +4 -1594
  8. package/dist/briefings/index.js +1 -70
  9. package/dist/chunks/add-to-dashboard-DeHEBEqG.js +12 -0
  10. package/dist/chunks/analytics-base-schemas-BREc5WGv.js +1 -0
  11. package/dist/chunks/appearance-context-BqBZrijL.js +1 -0
  12. package/dist/chunks/appearance-runtime-provider-DmbCrOOG.js +1 -0
  13. package/dist/chunks/applied-constraints-CinevlKD.js +1 -0
  14. package/dist/chunks/assistant-chat-CjYrwVDa.js +56 -0
  15. package/dist/chunks/attribution-BEFSsbNn.js +1 -0
  16. package/dist/chunks/availability-3AIOf6Z-.js +1 -0
  17. package/dist/chunks/bookmark-impact-C89zBLq3.js +1 -0
  18. package/dist/chunks/bookmark-state-69YYnRql.js +1 -0
  19. package/dist/chunks/brand-DCaZyRt6.js +1 -0
  20. package/dist/chunks/card-filter-builder-CTp6RAz1.js +17 -0
  21. package/dist/chunks/column-bands-DwxbZ6UI.js +1 -0
  22. package/dist/chunks/comparison-window-caption-C312mn3s.js +1 -0
  23. package/dist/chunks/context-ALdccLHw.js +2 -0
  24. package/dist/chunks/conversation-JMK2kyTK.js +1 -0
  25. package/dist/chunks/dashboard-BX28ld6s.js +1 -0
  26. package/dist/chunks/dashboard-briefing-launcher-qo7GH4EO.js +37 -0
  27. package/dist/chunks/dashboard-controls-DhRjB7MA.js +42 -0
  28. package/dist/chunks/dashboard-json-9cHzhSjC.js +1 -0
  29. package/dist/chunks/dates-D-KP8G-z.js +1 -0
  30. package/dist/chunks/edit-DEAK0UZo.js +1 -0
  31. package/dist/chunks/edit-dashboard-visual-Duq_QkB_.js +93 -0
  32. package/dist/chunks/export-file-format-B-wQNHIn.js +4 -0
  33. package/dist/chunks/filter-line-CwQrqORc.js +1 -0
  34. package/dist/chunks/filter-reach-preview-gixPFlZj.js +1 -0
  35. package/dist/chunks/filter-value-text-B3tXakhd.js +1 -0
  36. package/dist/chunks/index-B-VF1ogs.js +1 -0
  37. package/dist/chunks/index-BE1DfxNs.js +1 -0
  38. package/dist/chunks/index-DViPGDFj.js +1 -0
  39. package/dist/chunks/layout-grid-BWtlgw0T.js +6 -0
  40. package/dist/chunks/matrix-analytical-definition-CtFqWyCK.js +1 -0
  41. package/dist/chunks/matrix-member-presentation-Q0MCJ-YK.js +1 -0
  42. package/dist/chunks/matrix-operation-contract-D1RC1bfi.js +1 -0
  43. package/dist/chunks/metric-comparison-DEZYXROZ.js +1 -0
  44. package/dist/chunks/normalize-dashboard-for-dirty-check-ILKfqgL3.js +1 -0
  45. package/dist/chunks/paintbrush-BjS3SbrH.js +6 -0
  46. package/dist/chunks/palette-BzC-CGOc.js +6 -0
  47. package/dist/chunks/pickers-DuBrUht0.js +1 -0
  48. package/dist/chunks/pivot-result-contract-expectations-DTQAgr4n.js +1 -0
  49. package/dist/chunks/pivot-result-identity-DTNCB--h.js +1 -0
  50. package/dist/chunks/raw-temporal-value-DeyEhL0S.js +1 -0
  51. package/dist/chunks/rendered-file-BbvwaU6z.js +1 -0
  52. package/dist/chunks/report-preferences-dialog-B_gUmCzG.js +1 -0
  53. package/dist/chunks/report-runtime-context-BWzIHCKK.js +1 -0
  54. package/dist/chunks/resolve-dashboard-input-context-B-TtRqxu.js +8 -0
  55. package/dist/chunks/resolver-AN9ChBfZ.js +1 -0
  56. package/dist/chunks/save-DdFUZcbi.js +6 -0
  57. package/dist/chunks/saved-dashboard-context-BAJ5tWiq.js +1 -0
  58. package/dist/chunks/schema-MC0cQSAb.js +4 -0
  59. package/dist/chunks/selection-filter-compiler-CCoCD25M.js +1 -0
  60. package/dist/chunks/semaphor-ready-indicator-DzjorP3t.js +999 -0
  61. package/dist/chunks/set-DuJfGkbY.js +1 -0
  62. package/dist/chunks/shelf-drop-preview-context-BlLJ5RsT.js +6 -0
  63. package/dist/chunks/stored-dashboard-Ctcpkllg.js +1 -0
  64. package/dist/chunks/style-sheet-parts-BRGt9O05.js +178 -0
  65. package/dist/chunks/table-export-sheet-rC5pKmXg.js +2 -0
  66. package/dist/chunks/token-types-Bj9iMy0w.js +1 -0
  67. package/dist/chunks/validators-CqV3Yka1.js +1 -0
  68. package/dist/chunks/variable-draft-DJrfUyhv.js +1 -0
  69. package/dist/chunks/visual-choice-DgEFfkE-.js +1 -0
  70. package/dist/dashboard/index.js +1 -7
  71. package/dist/dashboard-authoring/index.js +1 -4491
  72. package/dist/format-utils/index.js +1 -424
  73. package/dist/index.js +1 -554
  74. package/dist/layouts/index.js +1 -7
  75. package/dist/live-channel/index.js +1 -124
  76. package/dist/pdf-export-policy/index.js +1 -92
  77. package/dist/pdf-table-layout/index.js +1 -993
  78. package/dist/report-runtime-context/index.js +1 -9
  79. package/dist/shared/index.js +1 -6
  80. package/dist/style.css +1 -1
  81. package/dist/surfboard/index.js +1 -9
  82. package/dist/types/components/ui-custom/date-range-presets.d.ts +8 -0
  83. package/dist/types/index.js +1 -88
  84. package/dist/types/lib/document/document-edits.d.ts +0 -4
  85. package/dist/types/lib/filter-values/build-card-filter-definition.d.ts +32 -0
  86. package/dist/types/lib/query-context/dashboard-filter-mapping-resolution.d.ts +9 -0
  87. package/dist/types/lib/stores/dashboard-store.d.ts +0 -1
  88. package/dist/types/lib/stores/explorer-actions.d.ts +7 -6
  89. package/dist/types/lib/types/common-types.d.ts +0 -2
  90. package/dist/types/lib/types/explorer-types.d.ts +1 -1
  91. package/dist/types/lib/types/semantic-types.d.ts +6 -10
  92. package/dist/types/lib/utils/field-state-calculator.d.ts +7 -19
  93. package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +18 -0
  94. package/dist/types/shared/analytics-protocol/analyze-result-types.d.ts +3 -0
  95. package/dist/types/shared/analytics-protocol/comparison-choices.d.ts +92 -0
  96. package/dist/types/shared/analytics-protocol/comparison-placement.d.ts +30 -0
  97. package/dist/types/shared/analytics-protocol/contracts.d.ts +11 -5
  98. package/dist/types/shared/analytics-protocol/date-window.d.ts +105 -0
  99. package/dist/types/shared/analytics-protocol/filter-field-ownership.d.ts +27 -0
  100. package/dist/types/shared/analytics-protocol/fixtures.d.ts +4 -2
  101. package/dist/types/shared/analytics-protocol/index.d.ts +3 -0
  102. package/dist/types/shared/analytics-protocol/metric-comparison.d.ts +93 -11
  103. package/dist/types/shared/assistant-protocol/context.d.ts +16 -16
  104. package/dist/types/shared/dashboard-authoring/calculations/calculated-column.d.ts +1 -1
  105. package/dist/types/shared/dashboard-authoring/calculations/definition.d.ts +13 -0
  106. package/dist/types/shared/dashboard-authoring/card-data-source/card-base.d.ts +125 -0
  107. package/dist/types/shared/dashboard-authoring/card-data-source/card-field-folders.d.ts +55 -0
  108. package/dist/types/shared/dashboard-authoring/card-data-source/card-joins.d.ts +114 -0
  109. package/dist/types/shared/dashboard-authoring/card-data-source/card-prune.d.ts +12 -0
  110. package/dist/types/shared/dashboard-authoring/card-data-source/filter-field-catalog.d.ts +60 -0
  111. package/dist/types/shared/dashboard-authoring/card-data-source/filter-field-folders.d.ts +132 -0
  112. package/dist/types/shared/dashboard-authoring/card-data-source/index.d.ts +7 -0
  113. package/dist/types/shared/dashboard-authoring/card-data-source/join-reach.d.ts +42 -0
  114. package/dist/types/shared/dashboard-authoring/card-field-places.d.ts +28 -0
  115. package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +8 -0
  116. package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
  117. package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +2 -1
  118. package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +0 -3
  119. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +21 -358
  120. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +2 -0
  121. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
  122. package/dist/types/shared/dashboard-authoring/dashboard-variable-card.d.ts +2 -4
  123. package/dist/types/shared/dashboard-authoring/field-folders/field-folders.d.ts +115 -0
  124. package/dist/types/shared/dashboard-authoring/field-folders/index.d.ts +1 -0
  125. package/dist/types/shared/dashboard-authoring/filter-reach-decision.d.ts +11 -0
  126. package/dist/types/shared/dashboard-authoring/index.d.ts +6 -1
  127. package/dist/types/shared/dashboard-authoring/kpi-date-context.d.ts +2 -0
  128. package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +18 -0
  129. package/dist/types/shared/dashboard-authoring/measure-calculations/comparison.d.ts +8 -7
  130. package/dist/types/shared/dashboard-authoring/measure-calculations/dates.d.ts +11 -1
  131. package/dist/types/shared/dashboard-authoring/measure-calculations/index.d.ts +2 -2
  132. package/dist/types/shared/dashboard-authoring/measure-calculations/options.d.ts +4 -0
  133. package/dist/types/shared/dashboard-authoring/measure-calculations/read.d.ts +18 -1
  134. package/dist/types/shared/dashboard-authoring/measure-calculations/resolve.d.ts +2 -0
  135. package/dist/types/shared/dashboard-authoring/measure-calculations/schemas.d.ts +46 -88
  136. package/dist/types/shared/dashboard-authoring/operations/calculated-field-operations.d.ts +33 -8
  137. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +0 -2
  138. package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +5 -0
  139. package/dist/types/shared/dashboard-authoring/see-records/result.d.ts +7 -22
  140. package/dist/types/shared/format-utils/comparison-detail.d.ts +34 -0
  141. package/dist/types/shared/format-utils/index.d.ts +1 -0
  142. package/dist/types/shared/format-utils/partial-period.d.ts +4 -2
  143. package/dist/types/shared/temporal/calendar-periods.d.ts +11 -0
  144. package/dist/types/shared/temporal/index.d.ts +2 -0
  145. package/dist/types/shared/temporal/temporal-text.d.ts +33 -0
  146. package/dist/types/shared/temporal/temporal.d.ts +27 -0
  147. package/dist/types/shared/temporal/zoned-wall-clock.d.ts +4 -3
  148. package/dist/usage-events/index.js +1 -285
  149. package/dist/value-format-preferences/index.js +1 -635
  150. package/package.json +6 -2
  151. package/dist/chunks/add-to-dashboard-ClhEIFst.js +0 -291
  152. package/dist/chunks/analytics-base-schemas-DevrgqQb.js +0 -678
  153. package/dist/chunks/appearance-context-BwBp25ZG.js +0 -162
  154. package/dist/chunks/appearance-runtime-provider-BRHYELkC.js +0 -80
  155. package/dist/chunks/applied-constraints-DU-wndZ7.js +0 -47
  156. package/dist/chunks/assistant-chat-BWF3GYip.js +0 -6115
  157. package/dist/chunks/attribution-BvoKvhcj.js +0 -32
  158. package/dist/chunks/availability-Bp5Gfu1I.js +0 -44
  159. package/dist/chunks/bookmark-impact-BF3iRx5a.js +0 -76
  160. package/dist/chunks/bookmark-state-CBSTdW6q.js +0 -1666
  161. package/dist/chunks/brand-BoUV0iHF.js +0 -54
  162. package/dist/chunks/card-filter-builder-B8XHwMY6.js +0 -4069
  163. package/dist/chunks/column-bands-RdM-kjDe.js +0 -47
  164. package/dist/chunks/comparison-window-caption-W83qB4V5.js +0 -741
  165. package/dist/chunks/context-BJoEFgNl.js +0 -369
  166. package/dist/chunks/conversation-sQiWYUOb.js +0 -16
  167. package/dist/chunks/dashboard-DG5EIYYB.js +0 -14
  168. package/dist/chunks/dashboard-briefing-launcher-CBSrhyWZ.js +0 -4875
  169. package/dist/chunks/dashboard-controls-D6ECO4N1.js +0 -2290
  170. package/dist/chunks/dashboard-json-DrJftBSL.js +0 -66
  171. package/dist/chunks/dates-Bz-qM5px.js +0 -164
  172. package/dist/chunks/edit-9df1zOWe.js +0 -226
  173. package/dist/chunks/edit-dashboard-visual-BDYAJIbb.js +0 -18605
  174. package/dist/chunks/export-file-format-C-tJsxsf.js +0 -111
  175. package/dist/chunks/filter-line-BXT6y303.js +0 -703
  176. package/dist/chunks/filter-reach-copy-BukhZmzm.js +0 -5250
  177. package/dist/chunks/filter-value-text-D3-bf3_b.js +0 -153
  178. package/dist/chunks/index-BVKzKl5d.js +0 -90
  179. package/dist/chunks/index-BW0yozjs.js +0 -2795
  180. package/dist/chunks/index-CV_Kzou0.js +0 -595
  181. package/dist/chunks/layout-grid-Ds0diMeY.js +0 -16
  182. package/dist/chunks/matrix-analytical-definition-CgQgVeeI.js +0 -1162
  183. package/dist/chunks/matrix-member-presentation-DSBIIudt.js +0 -258
  184. package/dist/chunks/matrix-operation-contract--DkNCOzd.js +0 -1412
  185. package/dist/chunks/metric-comparison-zMylnIkc.js +0 -541
  186. package/dist/chunks/normalize-dashboard-for-dirty-check-XKgH3GFX.js +0 -119
  187. package/dist/chunks/paintbrush-CX8pao1j.js +0 -27
  188. package/dist/chunks/palette-CuA0HlzF.js +0 -23
  189. package/dist/chunks/pickers-DkqmtnTL.js +0 -2403
  190. package/dist/chunks/pivot-result-contract-expectations-C8KL7hPx.js +0 -5046
  191. package/dist/chunks/pivot-result-identity-C1AOH1PS.js +0 -77
  192. package/dist/chunks/raw-temporal-value-E416F-0L.js +0 -454
  193. package/dist/chunks/rendered-file-D8xEuVVx.js +0 -108
  194. package/dist/chunks/report-preferences-dialog-CbuVNDGi.js +0 -1637
  195. package/dist/chunks/report-runtime-context-E7USjN7E.js +0 -388
  196. package/dist/chunks/resolve-dashboard-input-context-CULCE_hM.js +0 -25172
  197. package/dist/chunks/resolver-DG_tfEpt.js +0 -156
  198. package/dist/chunks/save-BKHlDONy.js +0 -21
  199. package/dist/chunks/saved-dashboard-context-C1WlOx5z.js +0 -632
  200. package/dist/chunks/schema-C9NPiIru.js +0 -2568
  201. package/dist/chunks/selection-filter-compiler-ifT8JCXS.js +0 -131
  202. package/dist/chunks/semaphor-ready-indicator-CBIRcDWs.js +0 -145326
  203. package/dist/chunks/shelf-drop-preview-context-xR69SMA8.js +0 -2466
  204. package/dist/chunks/stored-dashboard-BuM8vnWf.js +0 -4070
  205. package/dist/chunks/style-sheet-parts-Bt9ZNre8.js +0 -8674
  206. package/dist/chunks/table-export-sheet-DVljtHkG.js +0 -949
  207. package/dist/chunks/token-types-D_xKgyVS.js +0 -8
  208. package/dist/chunks/upload-Dll_M7XQ.js +0 -15
  209. package/dist/chunks/validators-ClWHpYql.js +0 -3686
  210. package/dist/chunks/variable-draft-CDGGl53R.js +0 -242
  211. package/dist/chunks/visual-choice-DDfHfHvY.js +0 -172
@@ -1,1412 +0,0 @@
1
- import { z as t } from "zod";
2
- import { z as Ue, P as De, X as qe, Y as Me, a0 as Be, a1 as Ge, s as U, L as $, n as ze, V as Ve, W as le, g as We, r as Ke, N as Xe, E as $e, F as Ze, o as ue, b as de, I as Ye } from "./analytics-base-schemas-DevrgqQb.js";
3
- import { B as v, v as me, K as G, b0 as te, m as _, E as He, aV as Z, w as Qe, o as Je, q as pe, a3 as et, p as tt, a6 as nt, a$ as at } from "./validators-ClWHpYql.js";
4
- const Y = {
5
- answerSummary: "string",
6
- responseDetail: "responseDetail",
7
- mode: "string",
8
- comparisonKind: "string",
9
- executionResult: "executionResult",
10
- compiledQuery: "unknown",
11
- data: "unknown",
12
- resultSets: "record",
13
- analysisWarnings: "unknownArray",
14
- columns: "unknownArray",
15
- records: "recordArray",
16
- rowCount: "number",
17
- rowLimitExceeded: "boolean",
18
- output: "string",
19
- querySpec: "unknown",
20
- metadata: "record",
21
- validation: "validationResult",
22
- coverage: "coverage",
23
- diagnosticFeedback: "diagnosticFeedback",
24
- missingFields: "stringArray",
25
- warnings: "unknownArray",
26
- comparison: "unknown",
27
- population: "population",
28
- comparisons: "recordArray",
29
- fieldsUsed: "compactExecutionFieldArray",
30
- primary: "recordArray",
31
- contributors: "recordArray",
32
- segments: "recordArray",
33
- periodChanges: "recordArray",
34
- changes: "recordArray",
35
- largestNegativeChanges: "recordArray",
36
- largestPositiveChanges: "recordArray",
37
- drivers: "recordArray",
38
- absoluteDeltaDrivers: "recordArray",
39
- largestNegativeDrivers: "recordArray",
40
- largestPositiveDrivers: "recordArray",
41
- periodRows: "recordArray",
42
- sql: "unknown",
43
- omitted: "stringArray"
44
- }, he = [
45
- /** The request can't run as asked (no specific validation code applies). */
46
- "invalid_request",
47
- /** No authored relationship connects the requested datasets. */
48
- "missing_relationship",
49
- /** More than one relationship path fits and none is preferred. */
50
- "ambiguous_relationship",
51
- /** The join would repeat measure rows (fan-out, chasm, unknown cardinality). */
52
- "unsafe_join",
53
- /** The request needs something this surface doesn't support yet. */
54
- "unsupported_capability",
55
- /** The caller lacks a capability (for example raw SQL). */
56
- "capability_required",
57
- "forbidden",
58
- "not_found",
59
- /** The warehouse or driver failed while the query ran; the message is its own. */
60
- "execution_failed",
61
- "timeout",
62
- "budget_exceeded",
63
- "cancelled"
64
- ], rt = {
65
- invalid_request: 400,
66
- missing_relationship: 400,
67
- ambiguous_relationship: 400,
68
- unsafe_join: 400,
69
- unsupported_capability: 400,
70
- capability_required: 403,
71
- forbidden: 403,
72
- not_found: 404,
73
- execution_failed: 502,
74
- timeout: 504,
75
- budget_exceeded: 413,
76
- cancelled: 499
77
- }, st = /* @__PURE__ */ new Set(["execution_failed", "timeout"]);
78
- function ot(e) {
79
- return typeof e == "string" && he.includes(e);
80
- }
81
- function it(e, n, a = {}) {
82
- return {
83
- code: e,
84
- message: n,
85
- ...a.details ? { details: a.details } : {},
86
- ...a.nextStep ? { nextStep: a.nextStep } : {},
87
- retryable: st.has(e),
88
- status: a.status ?? rt[e]
89
- };
90
- }
91
- function dn(e) {
92
- if (!e || typeof e != "object") return;
93
- const n = e.refusal ?? e;
94
- if (!n || typeof n != "object") return;
95
- const { code: a, message: r } = n;
96
- if (!(!ot(a) || typeof r != "string"))
97
- return n;
98
- }
99
- const ct = {
100
- invalid_request: { message: "This query configuration cannot run.", nextStep: "Check the selected fields, filters and parameters." },
101
- missing_relationship: { message: "The selected data is not connected.", nextStep: "Choose related datasets or ask the owner to add a relationship." },
102
- ambiguous_relationship: { message: "The selected data has more than one relationship path.", nextStep: "Choose the relationship to use." },
103
- unsafe_join: { message: "This query could count values more than once.", nextStep: "Group by shared fields or query the measures separately." },
104
- unsupported_capability: { message: "This query needs a capability this view does not support.", nextStep: "Change the query configuration." },
105
- capability_required: { message: "You do not have access to this capability.", nextStep: "Ask the owner for access." },
106
- forbidden: { message: "You do not have access to this data.", nextStep: "Ask the owner for access." },
107
- not_found: { message: "The requested data is no longer available.", nextStep: "Ask the owner to check the data source." },
108
- execution_failed: { message: "The query could not complete.", nextStep: "Try again. If it keeps failing, contact the owner." },
109
- timeout: { message: "The query took too long to complete.", nextStep: "Try again or narrow the query." },
110
- budget_exceeded: { message: "The query exceeds this view’s limits.", nextStep: "Request fewer rows, columns or measures." },
111
- cancelled: { message: "The query was cancelled.", nextStep: "Reload the view when ready." }
112
- };
113
- function mn(e) {
114
- const n = ct[e.code], a = it(e.code, n.message, { nextStep: n.nextStep, status: e.status }), r = e.retryable ?? a.retryable;
115
- return {
116
- ...a,
117
- retryable: r,
118
- ...!r && a.retryable ? { nextStep: "Ask the owner to check the query." } : {}
119
- };
120
- }
121
- const lt = [
122
- ...he,
123
- "stale_cursor",
124
- "source_truncated"
125
- ], pn = Object.freeze({
126
- coordinates: 2e4,
127
- responseBytes: 5 * 1024 * 1024
128
- }), P = t.string().uuid(), b = t.string().min(1), ut = t.number().int().positive().max(Number.MAX_SAFE_INTEGER);
129
- function f(e, n, a) {
130
- e.addIssue({ code: "custom", path: n, message: a });
131
- }
132
- function T(e, n, a) {
133
- new Set(e).size !== e.length && f(n, a, "Duplicate identity.");
134
- }
135
- const dt = t.object({
136
- id: b,
137
- axis: me,
138
- parent: v,
139
- position: t.union([
140
- t.object({ kind: t.literal("first") }).strict(),
141
- t.object({ kind: t.enum(["after", "before"]), cursor: b }).strict()
142
- ]),
143
- size: ut
144
- }).strict(), ne = t.object({
145
- paths: t.array(v).readonly(),
146
- pageIds: t.array(b).readonly()
147
- }).strict(), mt = t.object({
148
- id: b,
149
- rows: ne,
150
- columns: ne,
151
- measureIds: t.array(P).min(1).readonly()
152
- }).strict(), fe = t.object({
153
- pages: t.array(dt).readonly(),
154
- blocks: t.array(mt).readonly()
155
- }).strict().superRefine((e, n) => {
156
- !e.pages.length && !e.blocks.length && f(n, [], "Request at least one page or block."), T(
157
- [...e.pages, ...e.blocks].map((a) => a.id),
158
- n,
159
- []
160
- );
161
- for (const a of e.blocks) {
162
- T(a.measureIds, n, ["blocks", a.id, "measureIds"]);
163
- for (const r of ["rows", "columns"])
164
- for (const s of a[r].pageIds)
165
- e.pages.some(
166
- (c) => c.id === s && c.axis === r
167
- ) || f(
168
- n,
169
- ["blocks", a.id, r],
170
- "Page reference must name a page on this axis in this operation."
171
- );
172
- }
173
- }), hn = t.object({ spec: G, request: fe }).strict().superRefine(({ spec: e, request: n }, a) => {
174
- for (const r of n.pages)
175
- te(
176
- e,
177
- r.axis,
178
- r.parent,
179
- a,
180
- ["pages", r.id],
181
- !0
182
- ), r.parent.length >= e[r.axis].length && f(
183
- a,
184
- ["pages", r.id],
185
- "Cannot request children of a leaf or empty axis."
186
- );
187
- for (const r of n.blocks) {
188
- r.measureIds.some((s) => !e.measures.some((c) => c.id === s)) && f(a, ["blocks", r.id], "Unknown block measure.");
189
- for (const s of ["rows", "columns"])
190
- for (const c of r[s].paths)
191
- te(e, s, c, a, ["blocks", r.id, s]);
192
- }
193
- }), pt = t.object({
194
- requestId: b,
195
- axis: me,
196
- parent: v,
197
- members: t.array(t.object({ path: v }).strict()).readonly(),
198
- before: b.nullable(),
199
- after: b.nullable(),
200
- exactCount: t.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER).optional()
201
- }).strict().superRefine((e, n) => {
202
- e.parent.some((r) => r.member.kind === "others") && f(n, ["parent"], "Others has no children.");
203
- const a = e.members.filter(
204
- ({ path: r }) => {
205
- var s;
206
- return ((s = r[r.length - 1]) == null ? void 0 : s.member.kind) === "others";
207
- }
208
- );
209
- a.length > 1 && f(n, ["members"], "A page may contain Others only once."), a.length && (e.members[e.members.length - 1] !== a[0] && f(n, ["members"], "Others must be the last page member."), e.after !== null && f(n, ["after"], "Others must end the branch.")), new Set(
210
- e.members.map(
211
- (r) => {
212
- var s;
213
- return (s = r.path[r.path.length - 1]) == null ? void 0 : s.levelId;
214
- }
215
- )
216
- ).size > 1 && f(n, ["members"], "One page must contain one child level."), T(
217
- e.members.map((r) => _(r.path)),
218
- n,
219
- ["members"]
220
- );
221
- for (const r of e.members)
222
- (r.path.length !== e.parent.length + 1 || _(r.path.slice(0, -1)) !== _(e.parent)) && f(n, ["members"], "Page members must be immediate children.");
223
- }), ge = t.object({
224
- rowPaths: t.array(v).readonly(),
225
- columnPaths: t.array(v).readonly(),
226
- measureIds: t.array(P).readonly()
227
- }).strict();
228
- function ye(e, n) {
229
- const a = e.rowPaths.map(_), r = e.columnPaths.map(_);
230
- return T(a, n, ["coverage", "rowPaths"]), T(r, n, ["coverage", "columnPaths"]), T(e.measureIds, n, ["coverage", "measureIds"]), { rows: a, columns: r };
231
- }
232
- const ht = t.object({
233
- requestId: b,
234
- coverage: ge,
235
- cells: t.array(
236
- He.extend({ value: Z }).strict()
237
- ).readonly()
238
- }).strict().superRefine((e, n) => {
239
- const { rows: a, columns: r } = ye(e.coverage, n), s = new Set(a), c = new Set(r), o = new Set(e.coverage.measureIds);
240
- T(
241
- e.cells.map(
242
- (m) => JSON.stringify([
243
- _(m.rowPath),
244
- _(m.columnPath),
245
- m.measureId
246
- ])
247
- ),
248
- n,
249
- ["cells"]
250
- );
251
- for (const m of e.cells)
252
- (!s.has(_(m.rowPath)) || !c.has(_(m.columnPath)) || !o.has(m.measureId)) && f(n, ["cells"], "Cell is outside certified coverage.");
253
- }), D = t.number().int().nonnegative(), ft = t.object({
254
- requestId: b,
255
- coverage: ge,
256
- values: t.array(
257
- t.tuple([D, D, D, Z]).readonly()
258
- ).readonly()
259
- }).strict().superRefine((e, n) => {
260
- ye(e.coverage, n);
261
- const { rowPaths: a, columnPaths: r, measureIds: s } = e.coverage, c = /* @__PURE__ */ new Set();
262
- for (const [o, m, d] of e.values) {
263
- if (o >= a.length || m >= r.length || d >= s.length) {
264
- f(n, ["values"], "Cell is outside certified coverage.");
265
- continue;
266
- }
267
- const i = `${o},${m},${d}`;
268
- c.has(i) && f(n, ["values"], "Duplicate identity."), c.add(i);
269
- }
270
- }), ae = t.object({
271
- id: P,
272
- column: De,
273
- nativeDataType: b,
274
- semanticFormat: Ue.optional()
275
- }).strict(), Se = t.object({
276
- levels: t.array(ae).readonly(),
277
- measures: t.array(ae).readonly()
278
- }).strict(), H = t.object({
279
- code: t.enum(lt),
280
- message: b,
281
- /** Technical cause for dashboard owners; never shown as the primary copy. */
282
- detail: b.optional(),
283
- details: t.record(t.unknown()).optional(),
284
- nextStep: b.optional(),
285
- status: t.number().int().optional(),
286
- retryable: t.boolean(),
287
- scope: t.union([
288
- t.object({ kind: t.literal("operation") }).strict(),
289
- t.object({ kind: t.enum(["page", "block"]), requestId: b }).strict()
290
- ])
291
- }).strict(), gt = t.object({
292
- dialect: t.enum(["postgres", "clickhouse", "duckdb", "snowflake"]),
293
- aggregates: t.array(Qe).readonly()
294
- }).strict();
295
- function be(e) {
296
- return t.object({
297
- queryIdentity: b,
298
- descriptors: Se,
299
- capabilities: gt,
300
- pages: t.array(pt).readonly(),
301
- blocks: t.array(e).readonly(),
302
- failures: t.array(H).readonly()
303
- }).strict().superRefine((n, a) => {
304
- const r = new Set(
305
- n.descriptors.levels.map((o) => o.id)
306
- ), s = new Set(
307
- n.descriptors.measures.map((o) => o.id)
308
- ), c = n.pages.flatMap((o) => [
309
- o.parent,
310
- ...o.members.map((m) => m.path)
311
- ]);
312
- for (const o of n.blocks)
313
- c.push(...o.coverage.rowPaths, ...o.coverage.columnPaths), o.coverage.measureIds.some((m) => !s.has(m)) && f(
314
- a,
315
- ["blocks", o.requestId],
316
- "Coverage references an unknown measure descriptor."
317
- );
318
- c.some((o) => o.some((m) => !r.has(m.levelId))) && f(
319
- a,
320
- ["descriptors"],
321
- "Acquired paths require level descriptors."
322
- ), T(
323
- [...n.descriptors.levels, ...n.descriptors.measures].map(
324
- (o) => o.id
325
- ),
326
- a,
327
- ["descriptors"]
328
- ), T(
329
- [...n.pages, ...n.blocks].map((o) => o.requestId),
330
- a,
331
- []
332
- ), T(
333
- n.failures.map(
334
- (o) => o.scope.kind === "operation" ? "operation" : o.scope.requestId
335
- ),
336
- a,
337
- ["failures"]
338
- );
339
- for (const o of n.failures)
340
- if (o.scope.kind === "operation")
341
- f(
342
- a,
343
- ["failures"],
344
- "Operation failure cannot accompany acquired data."
345
- );
346
- else {
347
- const m = o.scope.requestId;
348
- [...n.pages, ...n.blocks].some(
349
- (d) => d.requestId === m
350
- ) && f(
351
- a,
352
- ["failures"],
353
- "A requested unit cannot both succeed and fail."
354
- );
355
- }
356
- });
357
- }
358
- const Ae = be(
359
- ht
360
- ), yt = be(
361
- ft
362
- );
363
- function Ie(e) {
364
- return t.union([
365
- t.object({
366
- status: t.enum(["success", "partial"]),
367
- window: e
368
- }).strict(),
369
- t.object({ status: t.literal("failed"), failure: H }).strict()
370
- ]).superRefine((n, a) => {
371
- const r = n;
372
- if (r.status === "failed") return;
373
- const { window: s } = r;
374
- !s.pages.length && !s.blocks.length && f(
375
- a,
376
- ["window"],
377
- "A window outcome requires successful acquired work."
378
- ), r.status === "success" != (s.failures.length === 0) && f(a, ["status"], "Status must match failure coverage.");
379
- });
380
- }
381
- const fn = Ie(
382
- Ae
383
- ), gn = Ie(
384
- yt
385
- );
386
- function St(e) {
387
- const { rowPaths: n, columnPaths: a, measureIds: r } = e.coverage, s = (d) => new Map(d.map((i, l) => [i, l])), c = s(n.map(_)), o = s(a.map(_)), m = s(r);
388
- return {
389
- requestId: e.requestId,
390
- coverage: e.coverage,
391
- values: e.cells.map((d) => {
392
- const i = c.get(_(d.rowPath)), l = o.get(_(d.columnPath)), p = m.get(d.measureId);
393
- if (i === void 0 || l === void 0 || p === void 0)
394
- throw new Error("Cell is outside certified coverage.");
395
- return [i, l, p, d.value];
396
- })
397
- };
398
- }
399
- function bt(e) {
400
- const { rowPaths: n, columnPaths: a, measureIds: r } = e.coverage;
401
- return {
402
- requestId: e.requestId,
403
- coverage: e.coverage,
404
- cells: e.values.map(([s, c, o, m]) => ({
405
- rowPath: n[s],
406
- columnPath: a[c],
407
- measureId: r[o],
408
- value: m
409
- }))
410
- };
411
- }
412
- function At(e) {
413
- return { ...e, blocks: e.blocks.map(St) };
414
- }
415
- function yn(e) {
416
- return { ...e, blocks: e.blocks.map(bt) };
417
- }
418
- function Sn(e) {
419
- return e.status === "failed" ? e : { status: e.status, window: At(e.window) };
420
- }
421
- const _e = t.object({
422
- kind: t.literal("matrix"),
423
- window: Ae
424
- }).strict(), we = t.enum(["member", "subtotal", "grand_total"]), It = t.discriminatedUnion("kind", [
425
- t.object({ kind: t.literal("hierarchy"), label: t.string() }).strict(),
426
- t.object({ kind: t.literal("level"), levelId: P, label: t.string() }).strict(),
427
- t.object({
428
- kind: t.literal("measure"),
429
- measureId: P,
430
- columnPath: v,
431
- role: we,
432
- label: t.string()
433
- }).strict()
434
- ]), _t = t.object({
435
- columns: t.array(It).readonly(),
436
- descriptors: Se
437
- }).strict(), re = t.union([
438
- t.object({
439
- kind: t.literal("value"),
440
- value: Z.refine(
441
- (e) => e !== null
442
- )
443
- }).strict(),
444
- t.object({ kind: t.enum(["null", "empty"]) }).strict()
445
- ]), wt = t.discriminatedUnion("kind", [
446
- t.object({
447
- kind: t.literal("layout"),
448
- rowPath: v,
449
- role: we,
450
- values: t.array(re).readonly()
451
- }).strict(),
452
- t.object({
453
- kind: t.literal("flat"),
454
- rowPath: v,
455
- columnPath: v,
456
- values: t.array(re).readonly()
457
- }).strict()
458
- ]), bn = t.discriminatedUnion("kind", [
459
- t.object({
460
- kind: t.literal("layout"),
461
- layout: _t,
462
- next: b
463
- }).strict(),
464
- t.object({
465
- kind: t.literal("rows"),
466
- rows: t.array(wt).readonly(),
467
- next: b.nullable()
468
- }).strict()
469
- ]), kt = t.union([
470
- qe,
471
- Me,
472
- Be,
473
- Ge,
474
- _e
475
- ]), vt = t.object({
476
- status: t.enum([
477
- "not_required",
478
- "resolved",
479
- "missing",
480
- "ambiguous",
481
- "fanout_risk",
482
- "unknown"
483
- ]),
484
- requiredSources: t.array(U).optional(),
485
- relationshipsUsed: t.array(t.string()).optional(),
486
- missingSources: t.array(t.string()).optional(),
487
- warnings: t.array(t.string()).optional(),
488
- message: t.string().optional(),
489
- recommendedNextStep: t.string().optional(),
490
- joinPlanSummary: t.object({
491
- baseSource: U.optional(),
492
- joinedSources: t.array(U).optional(),
493
- joinCount: t.number().optional()
494
- }).passthrough().optional(),
495
- fanoutRisk: t.object({
496
- status: t.enum(["none", "warning", "error", "unknown"]),
497
- message: t.string().optional()
498
- }).passthrough().optional()
499
- }).passthrough(), se = t.enum([
500
- "ambiguous_fields",
501
- "empty_result",
502
- "missing_grounded_fields",
503
- "missing_relationship",
504
- "no_grounded_query",
505
- "partial_result",
506
- "presentation_incomplete",
507
- "query_validation_failed",
508
- "unsafe_join"
509
- ]), ke = t.object({
510
- version: t.literal(1),
511
- status: t.enum(["answered", "partial", "blocked"]),
512
- summary: t.string(),
513
- answered: t.array(
514
- t.object({
515
- slotId: t.string().optional(),
516
- queryId: t.string().optional(),
517
- summary: t.string(),
518
- evidenceIds: t.array(t.string()).optional(),
519
- fieldsUsed: t.array($).optional()
520
- }).passthrough()
521
- ),
522
- blocked: t.array(
523
- t.object({
524
- slotId: t.string().optional(),
525
- queryId: t.string().optional(),
526
- reasonCode: se,
527
- message: t.string(),
528
- missingFields: t.array(t.string()).optional(),
529
- availableFields: t.array(t.string()).optional(),
530
- ambiguousFields: t.array(t.string()).optional(),
531
- missingRelationships: t.array(t.string()).optional(),
532
- evidenceIds: t.array(t.string()).optional(),
533
- neededFromUser: t.array(t.string()).optional(),
534
- recommendedNextStep: t.string().optional()
535
- }).passthrough()
536
- ),
537
- semanticModelRecommendations: t.array(
538
- t.object({
539
- reasonCode: se,
540
- message: t.string(),
541
- recommendedNextStep: t.string().optional()
542
- }).passthrough()
543
- ).optional()
544
- }).passthrough(), ve = t.object({
545
- scope: t.literal("filtered_query"),
546
- measures: t.record(ze)
547
- }).passthrough(), Te = t.object({
548
- answeredObligations: t.array(t.string()),
549
- missingObligations: t.array(t.string()),
550
- warnings: t.array(Ve).optional()
551
- }).passthrough(), Ee = t.object({
552
- intentId: t.string().optional(),
553
- queryId: t.string().optional(),
554
- status: t.enum(["answered", "partial", "failed"]),
555
- resultShape: t.enum([
556
- "metric",
557
- "records",
558
- "inputOptions",
559
- "sql",
560
- "matrix",
561
- "period_change",
562
- "analysis"
563
- ]).optional(),
564
- intent: t.unknown().optional(),
565
- compiledQuery: t.unknown().optional(),
566
- fieldsUsed: t.array($).optional(),
567
- result: kt.optional(),
568
- validation: le,
569
- coverage: Te.optional(),
570
- missingFields: t.array(t.string()).optional(),
571
- warnings: t.array(t.string()).optional(),
572
- relationshipDiagnostics: vt.optional(),
573
- diagnosticFeedback: ke.optional(),
574
- population: ve.optional(),
575
- metadata: t.record(t.string(), t.unknown()).optional()
576
- }).passthrough(), Tt = Ee;
577
- function Et(e) {
578
- switch (e) {
579
- case "boolean":
580
- return t.boolean().optional();
581
- case "compactExecutionFieldArray":
582
- return t.array(Xe).optional();
583
- case "coverage":
584
- return Te.optional();
585
- case "diagnosticFeedback":
586
- return ke.optional();
587
- case "executionFieldArray":
588
- return t.array($).optional();
589
- case "executionResult":
590
- return Tt.optional();
591
- case "number":
592
- return t.number().finite().optional();
593
- case "population":
594
- return ve.optional();
595
- case "record":
596
- return Ke.optional();
597
- case "recordArray":
598
- return We.optional();
599
- case "responseDetail":
600
- return t.enum(["compact", "standard", "debug"]).optional();
601
- case "string":
602
- return t.string().optional();
603
- case "stringArray":
604
- return t.array(t.string()).optional();
605
- case "unknown":
606
- return t.unknown().optional();
607
- case "unknownArray":
608
- return t.array(t.unknown()).optional();
609
- case "validationResult":
610
- return le.optional();
611
- }
612
- }
613
- const Rt = Object.fromEntries(
614
- Object.entries(Y).map(
615
- ([e, n]) => [e, Et(n)]
616
- )
617
- ), Ct = t.object(Rt).strict(), Nt = new Set(
618
- Object.keys(Y)
619
- );
620
- function An() {
621
- return Object.keys(
622
- Y
623
- );
624
- }
625
- function Ot(e) {
626
- return Nt.has(e);
627
- }
628
- function In(e) {
629
- if (!e || typeof e != "object" || Array.isArray(e))
630
- throw new Error("Semaphor analyze result must be an object.");
631
- const a = Object.keys(e).filter(
632
- (r) => !Ot(r)
633
- );
634
- if (a.length)
635
- throw new Error(
636
- `Semaphor analyze result contains unsupported top-level field(s): ${a.join(", ")}.`
637
- );
638
- return Ct.parse(e);
639
- }
640
- const Re = 100, L = "selection:";
641
- function Ce(e) {
642
- return [
643
- pe(e.source),
644
- et(e.name),
645
- e.sourceField ?? ""
646
- ].join("::");
647
- }
648
- function _n(e) {
649
- return `${L}${e}`;
650
- }
651
- function xt(e) {
652
- return e.startsWith(L) && e.length > L.length;
653
- }
654
- function wn(e) {
655
- return xt(e) ? e.slice(L.length) : void 0;
656
- }
657
- function Ne(e) {
658
- if (!e) return "";
659
- const n = e.calendar.fiscalCalendar;
660
- return JSON.stringify([
661
- e.granularity,
662
- e.calendar.tz,
663
- e.calendar.weekStart,
664
- n ? [n.kind, n.yearStartMonth] : null
665
- ]);
666
- }
667
- function Oe(e) {
668
- return e ? JSON.stringify([e.valueKind, e.tz]) : "";
669
- }
670
- function Pt(e) {
671
- return JSON.stringify([
672
- Ce(e.field),
673
- e.operator,
674
- e.operator === "isNull" ? null : e.value,
675
- Ne(e.temporalBucket),
676
- Oe(e.rawTemporal)
677
- ]);
678
- }
679
- function oe(e) {
680
- return JSON.stringify(e.conditions.map(Pt).sort());
681
- }
682
- function z(e) {
683
- return JSON.stringify([
684
- pe(e.field.source),
685
- e.field.name,
686
- e.operator,
687
- e.operator === "isNull" ? null : e.value,
688
- Ne(e.temporalBucket),
689
- Oe(e.rawTemporal)
690
- ]);
691
- }
692
- function ie(e) {
693
- return JSON.stringify(
694
- e.conditions.map(z).sort()
695
- );
696
- }
697
- function kn(e) {
698
- const n = e.map((a) => a.id);
699
- if (new Set(n).size !== n.length)
700
- throw new Error("Data App selections require one active selection per id.");
701
- return e.map((a) => ({
702
- ...a,
703
- tuples: a.tuples.map((r) => ({
704
- ...r,
705
- conditions: [...r.conditions].sort(
706
- (s, c) => q(
707
- z(s),
708
- z(c)
709
- )
710
- )
711
- })).sort(
712
- (r, s) => q(
713
- ie(r),
714
- ie(s)
715
- )
716
- )
717
- })).sort((a, r) => q(a.id, r.id));
718
- }
719
- function q(e, n) {
720
- return e < n ? -1 : e > n ? 1 : 0;
721
- }
722
- function vn(e, n) {
723
- return oe(e) === oe(n);
724
- }
725
- const jt = "(Blank)";
726
- function Tn(e) {
727
- return e.conditions.map((n) => n.label ? n.label : n.operator === "isNull" || n.value === null ? jt : String(n.value)).join(" · ");
728
- }
729
- const Ft = t.union([
730
- $e,
731
- Ze
732
- ]), Lt = t.object({
733
- name: t.string().min(1),
734
- source: Ft,
735
- dataType: t.enum(["string", "number", "boolean", "date", "datetime"]),
736
- sourceField: t.string().min(1).optional(),
737
- nativeDataType: t.string().min(1).optional()
738
- }).strict(), Ut = t.object({
739
- field: Lt,
740
- operator: t.enum(["=", "isNull"]),
741
- value: t.union([t.string(), t.number().finite(), t.null()]),
742
- label: t.string().optional(),
743
- temporalBucket: de.optional(),
744
- rawTemporal: ue.optional()
745
- }).strict().superRefine((e, n) => {
746
- e.operator === "isNull" != (e.value === null) && n.addIssue({
747
- code: t.ZodIssueCode.custom,
748
- message: "isNull carries a null value, and only isNull does.",
749
- path: ["value"]
750
- });
751
- }), Dt = t.object({
752
- conditions: t.array(Ut).min(1)
753
- }).strict().superRefine((e, n) => {
754
- const a = e.conditions.map((r) => Ce(r.field));
755
- new Set(a).size !== a.length && n.addIssue({
756
- code: t.ZodIssueCode.custom,
757
- message: "A tuple holds one condition per field.",
758
- path: ["conditions"]
759
- });
760
- }), En = t.object({
761
- kind: t.literal("selection"),
762
- sourceCardId: t.string().min(1),
763
- tuples: t.array(Dt).min(1).max(Re)
764
- }).strict(), qt = t.object({
765
- field: Ye,
766
- operator: t.enum(["=", "isNull"]),
767
- value: t.union([t.string(), t.number().finite(), t.null()]),
768
- temporalBucket: de.optional(),
769
- rawTemporal: ue.optional()
770
- }).strict().superRefine((e, n) => {
771
- e.operator === "isNull" != (e.value === null) && n.addIssue({
772
- code: t.ZodIssueCode.custom,
773
- message: "isNull carries a null value, and only isNull does.",
774
- path: ["value"]
775
- });
776
- }), Mt = t.object({
777
- conditions: t.array(qt).min(1)
778
- }).strict().superRefine((e, n) => {
779
- for (let a = 0; a < e.conditions.length; a += 1) {
780
- const r = e.conditions[a];
781
- e.conditions.findIndex(
782
- (c, o) => o < a && Je(c.field, r.field)
783
- ) !== -1 && n.addIssue({
784
- code: t.ZodIssueCode.custom,
785
- message: "A selection tuple can contain only one condition per field.",
786
- path: ["conditions", a, "field"]
787
- });
788
- }
789
- }), Rn = t.object({
790
- id: t.string().min(1),
791
- tuples: t.array(Mt).min(1).max(Re)
792
- }).strict(), xe = {
793
- COUNT: "count",
794
- COUNTIF: "count",
795
- COUNT_IF: "count",
796
- COUNTIFS: "count",
797
- SUM: "sum",
798
- SUM_IF: "sum",
799
- SUMIF: "sum",
800
- AVG: "avg",
801
- AVG_IF: "avg",
802
- AVERAGE: "avg",
803
- MEAN: "avg",
804
- MIN: "min",
805
- MIN_IF: "min",
806
- MAX: "max",
807
- MAX_IF: "max",
808
- MEDIAN: "median",
809
- DISTINCT: "count_distinct",
810
- COUNT_DISTINCT: "count_distinct",
811
- APPROX_COUNT_DISTINCT: "count_distinct",
812
- APPROX_DISTINCT: "count_distinct",
813
- NDV: "count_distinct",
814
- UNIQ: "count_distinct",
815
- UNIQEXACT: "count_distinct",
816
- UNIQCOMBINED: "count_distinct",
817
- UNIQHLL12: "count_distinct",
818
- HLL_COUNT: "count_distinct",
819
- HLL_ESTIMATE: "count_distinct",
820
- BOOL_AND: "repeat_safe_other",
821
- BOOL_OR: "repeat_safe_other",
822
- BIT_AND: "repeat_safe_other",
823
- BIT_OR: "repeat_safe_other",
824
- EVERY: "repeat_safe_other",
825
- ANY_VALUE: "repeat_safe_other",
826
- MODE: "other",
827
- // Ordered-set percentiles; PostgreSQL's MEDIAN is PERCENTILE_CONT(0.5).
828
- PERCENTILE_CONT: "other",
829
- PERCENTILE_DISC: "other",
830
- APPROX_QUANTILES: "other",
831
- APPROX_QUANTILE: "other",
832
- APPROX_TOP_COUNT: "other",
833
- APPROX_TOP_SUM: "other",
834
- STDDEV: "other",
835
- STDDEV_POP: "other",
836
- STDDEV_SAMP: "other",
837
- VARIANCE: "other",
838
- VAR_POP: "other",
839
- VAR_SAMP: "other",
840
- BIT_XOR: "other",
841
- CORR: "other",
842
- COVAR_POP: "other",
843
- COVAR_SAMP: "other",
844
- STRING_AGG: "other",
845
- ARRAY_AGG: "other",
846
- JSON_AGG: "other",
847
- JSONB_AGG: "other",
848
- OBJECT_AGG: "other",
849
- MAP_AGG: "other",
850
- LISTAGG: "other",
851
- GROUP_CONCAT: "other",
852
- COLLECT_LIST: "other",
853
- COLLECT_SET: "other",
854
- FIRST: "other",
855
- LAST: "other"
856
- }, Bt = /(?:_AGG$|^APPROX_[A-Z0-9_]+$|^COUNT_DISTINCT$|^HLL_(?:COUNT|ESTIMATE)$|^REGR_[A-Z_]+$)/;
857
- function Gt(e) {
858
- const n = e.toUpperCase();
859
- return n in xe || Bt.test(n);
860
- }
861
- function Pe(e, n = !1) {
862
- const a = xe[e.toUpperCase()] ?? "other";
863
- return n ? a === "count" || a === "count_distinct" ? "count_distinct" : a === "min" || a === "max" ? a : "repeat_safe_other" : a;
864
- }
865
- const zt = /* @__PURE__ */ new Set([
866
- "NULLIF",
867
- "COALESCE",
868
- "IFNULL",
869
- "ISNULL",
870
- "ROUND",
871
- "FLOOR",
872
- "CEIL",
873
- "CEILING",
874
- "ABS",
875
- "POWER",
876
- "SQRT",
877
- "CAST",
878
- "TRY_CAST",
879
- "SAFE_CAST"
880
- ]), Vt = /* @__PURE__ */ new Set(["DECIMAL", "NUMERIC", "INTEGER", "INT", "BIGINT", "FLOAT", "DOUBLE", "REAL", "VARCHAR", "TEXT"]), ce = /[A-Za-z_]/, Wt = /[A-Za-z0-9_]/;
881
- function V(e, n) {
882
- const a = e[n];
883
- let r = n + 1;
884
- for (; r < e.length; ) {
885
- if (e[r] === a) {
886
- if (e[r + 1] === a) {
887
- r += 2;
888
- continue;
889
- }
890
- return r + 1;
891
- }
892
- r += 1;
893
- }
894
- return r;
895
- }
896
- function x(e, n) {
897
- let a = 0, r = n;
898
- for (; r < e.length; ) {
899
- const s = e[r];
900
- if (s === "'" || s === '"') {
901
- r = V(e, r);
902
- continue;
903
- }
904
- if (s === "(" && (a += 1), s === ")" && (a -= 1, a === 0))
905
- return r + 1;
906
- r += 1;
907
- }
908
- return e.length;
909
- }
910
- function F(e, n) {
911
- let a = n;
912
- for (; a < e.length && /\s/.test(e[a]); ) a += 1;
913
- return a;
914
- }
915
- function M(e, n) {
916
- let a = n + 1;
917
- for (; a < e.length && Wt.test(e[a]); ) a += 1;
918
- return a;
919
- }
920
- const Kt = /\{([A-Za-z_][A-Za-z0-9_]*)\}/g;
921
- function Xt(e) {
922
- return Array.from(e.matchAll(Kt), (n) => n[1]);
923
- }
924
- function W(e, n = /* @__PURE__ */ new Set()) {
925
- const a = [], r = [], s = [];
926
- let c = !1, o = "", m = !0, d = 0;
927
- for (; d < e.length; ) {
928
- const i = e[d];
929
- if (i === "'" || i === '"') {
930
- const l = V(e, d);
931
- o += "'s'", i !== "'" && (m = !1), d = l;
932
- continue;
933
- }
934
- if (i === "{") {
935
- const l = e.indexOf("}", d);
936
- if (l > d) {
937
- const p = e.slice(d + 1, l);
938
- r.push(p), n.has(p) || (m = !1), o += `#${p}`, d = l + 1;
939
- continue;
940
- }
941
- }
942
- if (ce.test(i)) {
943
- const l = M(e, d), p = e.slice(d, l), y = F(e, l);
944
- if (e[y] === "(" && Gt(p)) {
945
- let g = x(e, y);
946
- const j = g - 1;
947
- let E = g;
948
- const R = e.slice(y + 1, g - 1);
949
- let O = R.trim() ? 1 : 0;
950
- for (let S = y + 1; S < E - 1; S++)
951
- e[S] === "'" || e[S] === '"' ? S = V(e, S) - 1 : e[S] === "(" ? S = x(e, S) - 1 : e[S] === "," && O++;
952
- const A = /^\s*DISTINCT\b/i.test(R);
953
- W(A ? R.replace(/^\s*DISTINCT\b/i, "") : R).calls.length > 0 && (c = !0);
954
- let k = !1, w = !1;
955
- const C = [];
956
- for (; ; ) {
957
- const S = F(e, g);
958
- if (!ce.test(e[S] || "")) break;
959
- const u = M(e, S), h = e.slice(S, u).toUpperCase(), I = F(e, u);
960
- if (h === "WITHIN") {
961
- const N = M(e, I), ee = F(e, N);
962
- if (e.slice(I, N).toUpperCase() === "GROUP" && e[ee] === "(") {
963
- g = x(e, ee), E = g;
964
- continue;
965
- }
966
- }
967
- if ((h === "FILTER" || h === "OVER") && e[I] === "(") {
968
- k = k || h === "OVER", w = w || h === "FILTER", g = x(e, I), C.push({ kind: h === "OVER" ? "over" : "filter", start: I + 1, end: g - 1 });
969
- continue;
970
- }
971
- break;
972
- }
973
- a.push({
974
- name: p.toUpperCase(),
975
- kind: Pe(p, A),
976
- distinct: A,
977
- windowed: k,
978
- tokens: Xt(e.slice(y, g)),
979
- span: { start: d, end: E, argumentStart: y + 1, argumentEnd: j },
980
- argumentCount: O,
981
- filtered: w,
982
- suffixes: C
983
- }), o += `@${a.length - 1}`, d = g;
984
- continue;
985
- }
986
- p.toUpperCase() === "OVER" && e[y] === "(" && s.push({ start: y + 1, end: x(e, y) - 1 }), o += e.slice(d, l), d = l;
987
- continue;
988
- }
989
- /[\s0-9.,()+*/%<>=!|&^-]/.test(i) || (m = !1), o += i, d += 1;
990
- }
991
- return {
992
- calls: a,
993
- nestedAggregate: c,
994
- windowed: a.some((i) => i.windowed),
995
- tokensOutsideAggregates: r,
996
- windowClauses: s,
997
- aggregateInputsComplete: m && $t(o, n),
998
- skeleton: o
999
- };
1000
- }
1001
- function $t(e, n) {
1002
- var d;
1003
- const a = [];
1004
- let r = 0;
1005
- for (; r < e.length; ) {
1006
- const i = e.slice(r), l = (d = /^(\s+|@\d+|#field_\d+|(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?|'s'|[A-Za-z_][A-Za-z0-9_]*|<>|!=|<=|>=|[()+*/%,<>=-])/.exec(i)) == null ? void 0 : d[0];
1007
- if (!l) return !1;
1008
- if (r += l.length, l.startsWith("#")) {
1009
- if (!n.has(l.slice(1))) return !1;
1010
- a.push("@input");
1011
- } else l.trim() && a.push(l.toUpperCase());
1012
- }
1013
- let s = 0;
1014
- const c = (i) => a[s] === i && ++s > 0, o = () => {
1015
- if (!m()) return !1;
1016
- for (; ["+", "-", "*", "/", "%", "<", ">", "<=", ">=", "=", "<>", "!=", "AND", "OR", "IS"].includes(a[s]); )
1017
- if (a[s++] === "IS" && c("NOT"), !m()) return !1;
1018
- return !0;
1019
- }, m = () => {
1020
- const i = a[s];
1021
- if (!i) return !1;
1022
- if (["+", "-", "NOT"].includes(i))
1023
- return s++, m();
1024
- if (c("(")) return o() && c(")");
1025
- if (c("CASE")) {
1026
- if (a[s] !== "WHEN" && !o()) return !1;
1027
- let l = 0;
1028
- for (; c("WHEN"); ) {
1029
- if (!o() || !c("THEN") || !o()) return !1;
1030
- l++;
1031
- }
1032
- return c("ELSE") && !o() ? !1 : l > 0 && c("END");
1033
- }
1034
- if (i.startsWith("@") || i === "'S'" || ["NULL", "TRUE", "FALSE"].includes(i) || /^[0-9.]/.test(i))
1035
- return s++, !0;
1036
- if (!zt.has(i) || (s++, !c("(") || !o())) return !1;
1037
- if (["CAST", "TRY_CAST", "SAFE_CAST"].includes(i)) {
1038
- if (!c("AS") || !Vt.has(a[s++]) || (c("PRECISION"), c("(") && (!/^\d+$/.test(a[s++] || "") || c(",") && !/^\d+$/.test(a[s++] || "") || !c(")"))))
1039
- return !1;
1040
- } else
1041
- for (; c(","); ) if (!o()) return !1;
1042
- return c(")");
1043
- };
1044
- return o() && s === a.length;
1045
- }
1046
- function Cn(e, n) {
1047
- if (n.argumentCount !== 1 || n.windowed || n.filtered) return;
1048
- const a = e.slice(n.span.argumentStart, n.span.argumentEnd).trim();
1049
- return n.distinct ? a.replace(/^DISTINCT\s*/i, "") : a;
1050
- }
1051
- function Zt(e) {
1052
- const n = [];
1053
- let a = 0;
1054
- for (; a < e.length; ) {
1055
- const r = e[a];
1056
- if (/\s/.test(r)) {
1057
- a += 1;
1058
- continue;
1059
- }
1060
- if (r === "@") {
1061
- const s = /^@(\d+)/.exec(e.slice(a));
1062
- n.push({ type: "unit", unit: { kind: "call", index: Number(s[1]) } }), a += s[0].length;
1063
- continue;
1064
- }
1065
- if (r === "#") {
1066
- const s = /^#([A-Za-z_][A-Za-z0-9_]*)/.exec(e.slice(a));
1067
- if (s) {
1068
- n.push({ type: "unit", unit: { kind: "token", token: s[1] } }), a += s[0].length;
1069
- continue;
1070
- }
1071
- }
1072
- if (/[0-9.]/.test(r)) {
1073
- const s = /^[0-9]*\.?[0-9]+(?:[eE][+-]?[0-9]+)?/.exec(e.slice(a));
1074
- if (s) {
1075
- n.push({ type: "number" }), a += s[0].length;
1076
- continue;
1077
- }
1078
- }
1079
- if (r === "+" || r === "-" || r === "*" || r === "/") {
1080
- n.push({ type: "op", value: r }), a += 1;
1081
- continue;
1082
- }
1083
- if (r === "(") {
1084
- n.push({ type: "open" }), a += 1;
1085
- continue;
1086
- }
1087
- if (r === ")") {
1088
- n.push({ type: "close" }), a += 1;
1089
- continue;
1090
- }
1091
- n.push({ type: "other" }), a += 1;
1092
- }
1093
- return n;
1094
- }
1095
- function Yt(e) {
1096
- const n = Zt(e), a = n.some((i) => i.type === "op" && i.value === "/");
1097
- if (n.some((i) => i.type === "other"))
1098
- return { kind: "other", hasDivision: a };
1099
- let r = 0, s = !0;
1100
- const c = () => {
1101
- let i = [], l, p = !0;
1102
- for (; ; ) {
1103
- if (!p) {
1104
- const g = n[r];
1105
- if (!(g && g.type === "op" && (g.value === "+" || g.value === "-"))) break;
1106
- r += 1;
1107
- }
1108
- const y = o();
1109
- if (!y) return null;
1110
- l === void 0 ? l = y.degree : l !== y.degree && (s = !1), i = i.concat(y.units), p = !1;
1111
- }
1112
- return { degree: l ?? 0, units: i };
1113
- }, o = () => {
1114
- let i = m();
1115
- if (!i) return null;
1116
- for (; ; ) {
1117
- const l = n[r];
1118
- if (!(l && l.type === "op" && (l.value === "*" || l.value === "/"))) break;
1119
- r += 1;
1120
- const p = m();
1121
- if (!p) return null;
1122
- l.value === "/" && p.degree > 0 && (s = !1), i.degree + p.degree > 1 && (s = !1), i = { degree: i.degree + p.degree, units: i.units.concat(p.units) };
1123
- }
1124
- return i;
1125
- }, m = () => {
1126
- var l;
1127
- const i = n[r];
1128
- if (!i) return null;
1129
- if (i.type === "op" && i.value === "-")
1130
- return r += 1, m();
1131
- if (i.type === "unit")
1132
- return r += 1, { degree: 1, units: [i.unit] };
1133
- if (i.type === "number")
1134
- return r += 1, { degree: 0, units: [] };
1135
- if (i.type === "open") {
1136
- r += 1;
1137
- const p = c();
1138
- return !p || ((l = n[r]) == null ? void 0 : l.type) !== "close" ? null : (r += 1, p);
1139
- }
1140
- return null;
1141
- }, d = c();
1142
- return !d || r !== n.length ? { kind: "other", hasDivision: a } : d.units.length === 1 && d.degree === 1 && s && !a && n.filter((l) => l.type !== "open" && l.type !== "close").length === 1 ? { kind: "single", unit: d.units[0] } : s && d.degree === 1 ? { kind: "linear", units: d.units } : { kind: "other", hasDivision: a };
1143
- }
1144
- const Ht = t.object({ key: t.string().min(1), nativeText: t.string().nullable() }).strict(), Qt = t.object({
1145
- executionInstant: t.string().refine((e) => tt(e) !== null, {
1146
- message: "executionInstant must be an ISO instant"
1147
- }),
1148
- dataAnchors: t.array(Ht).default([])
1149
- }).strict().refine(
1150
- (e) => new Set(e.dataAnchors.map((n) => n.key)).size === e.dataAnchors.length,
1151
- { message: "dataAnchors keys must be unique", path: ["dataAnchors"] }
1152
- );
1153
- function Nn(e) {
1154
- if (e == null) return;
1155
- const n = Qt.safeParse(e);
1156
- return n.success ? n.data : void 0;
1157
- }
1158
- const je = /* @__PURE__ */ new Set([
1159
- "min",
1160
- "max",
1161
- "count_distinct",
1162
- "repeat_safe_other"
1163
- ]);
1164
- function K(e) {
1165
- if (!(!e || !e.trim()))
1166
- return Pe(e);
1167
- }
1168
- function Fe(e) {
1169
- switch (e) {
1170
- case "count":
1171
- case "sum":
1172
- return { kind: "additive" };
1173
- case "avg":
1174
- return { kind: "decomposable_avg" };
1175
- case "min":
1176
- case "max":
1177
- return { kind: "idempotent", fn: e };
1178
- case "count_distinct":
1179
- return { kind: "none", reason: "distinct" };
1180
- case "median":
1181
- return { kind: "none", reason: "median" };
1182
- default:
1183
- return { kind: "none", reason: "other" };
1184
- }
1185
- }
1186
- function Jt(e) {
1187
- var n, a;
1188
- return ((n = e.derivedField) == null ? void 0 : n.computeStage) || ((a = e.calculatedFormula) == null ? void 0 : a.computeStage);
1189
- }
1190
- const Q = {
1191
- stage: "aggregate",
1192
- calls: [],
1193
- windowed: !1,
1194
- repeatSafe: !1,
1195
- reaggregation: { kind: "none", reason: "unresolved" },
1196
- outputType: "numeric",
1197
- identity: "unresolved",
1198
- unresolved: !0
1199
- }, Le = { ...Q, stage: "row" };
1200
- function X(e) {
1201
- return {
1202
- stage: "row",
1203
- outer: e,
1204
- calls: [{ kind: e, distinct: e === "count_distinct" }],
1205
- windowed: !1,
1206
- repeatSafe: je.has(e),
1207
- reaggregation: Fe(e),
1208
- outputType: e === "min" || e === "max" ? "input" : "numeric",
1209
- identity: e,
1210
- unresolved: !1
1211
- };
1212
- }
1213
- function B(e, n) {
1214
- var r;
1215
- const a = (r = n.derivedField) == null ? void 0 : r.aggregationBehavior;
1216
- return !a || e.unresolved ? e : a === "additive" ? e.reaggregation.kind === "additive" ? e : { ...e, reaggregation: { kind: "additive" } } : { ...e, reaggregation: { kind: "none", reason: "declared" } };
1217
- }
1218
- function en(e, n) {
1219
- if (!e) return Q;
1220
- if (typeof e.expression == "string" && e.expression.trim()) {
1221
- const r = J(e, n + 1);
1222
- return r === "row_input" ? "raw" : r.unresolved || r.stage === "aggregate" || r.outer ? r : "raw";
1223
- }
1224
- const a = K(e.aggregate);
1225
- return a ? X(a) : "raw";
1226
- }
1227
- const tn = 12;
1228
- function J(e, n) {
1229
- var S;
1230
- if (n > tn) return Q;
1231
- const a = typeof e.expression == "string" ? e.expression.trim() : "";
1232
- if (!a)
1233
- return B(
1234
- X(K(e.aggregate) ?? "sum"),
1235
- e
1236
- );
1237
- const r = W(a), s = ((S = e.calculatedFormula) == null ? void 0 : S.inputFields) || [], c = (u) => {
1238
- const h = /^field_(\d+)$/.exec(u);
1239
- return h ? s[Number(h[1])] : void 0;
1240
- }, o = /* @__PURE__ */ new Map();
1241
- for (const u of r.tokensOutsideAggregates)
1242
- o.has(u) || o.set(u, en(c(u), n));
1243
- const m = r.calls.some(
1244
- (u) => u.tokens.some((h) => {
1245
- const I = c(h);
1246
- if (!(I != null && I.expression)) return !1;
1247
- const N = J(I, n + 1);
1248
- return N !== "row_input" && (N.unresolved || N.stage === "aggregate");
1249
- })
1250
- ), d = Array.from(o.values()).filter(
1251
- (u) => u !== "raw"
1252
- ), i = Array.from(o.values()).some((u) => u === "raw"), l = r.calls.length > 0 || d.length > 0 || Jt(e) === "aggregate" || !!e.isPreAggregated, p = new Set(
1253
- [...o].filter(
1254
- ([u, h]) => h === "raw" ? !l && !!c(u) : !h.unresolved
1255
- ).map(([u]) => u)
1256
- ), y = W(a, p).aggregateInputsComplete;
1257
- if (!l) {
1258
- if (!y) return Le;
1259
- const u = K(e.aggregate);
1260
- return u ? B(X(u), e) : "row_input";
1261
- }
1262
- const g = !y || i || r.nestedAggregate || m || d.some((u) => u.unresolved) || r.calls.length === 0 && d.length === 0, j = [
1263
- ...r.calls.map((u) => ({ kind: u.kind, distinct: u.distinct })),
1264
- ...d.flatMap((u) => u.calls)
1265
- ], E = r.windowed || d.some((u) => u.windowed), R = !g && !E && j.every((u) => je.has(u.kind)), O = (u) => {
1266
- if (u.kind === "call") {
1267
- const I = r.calls[u.index];
1268
- return I ? Fe(I.kind) : { kind: "none", reason: "unresolved" };
1269
- }
1270
- const h = o.get(u.token);
1271
- return h && h !== "raw" ? h.reaggregation : { kind: "none", reason: "unresolved" };
1272
- }, A = Yt(r.skeleton);
1273
- let k, w, C = "numeric";
1274
- if (g)
1275
- k = { kind: "none", reason: "unresolved" }, w = "unresolved";
1276
- else if (E)
1277
- k = { kind: "none", reason: "window" }, w = "expression";
1278
- else if (A.kind === "single")
1279
- if (k = O(A.unit), A.unit.kind === "call") {
1280
- const u = r.calls[A.unit.index];
1281
- w = u.kind, (u.kind === "min" || u.kind === "max") && (C = "input");
1282
- } else {
1283
- const u = o.get(A.unit.token);
1284
- w = u.identity, C = u.outputType;
1285
- }
1286
- else A.kind === "linear" ? (k = A.units.every((h) => O(h).kind === "additive") ? { kind: "additive" } : { kind: "none", reason: "other" }, w = "linear") : (k = { kind: "none", reason: A.hasDivision ? "ratio" : "other" }, w = A.hasDivision ? "ratio" : "expression");
1287
- return B(
1288
- {
1289
- stage: "aggregate",
1290
- calls: j,
1291
- windowed: E,
1292
- repeatSafe: R,
1293
- reaggregation: k,
1294
- outputType: C,
1295
- identity: w,
1296
- unresolved: g
1297
- },
1298
- e
1299
- );
1300
- }
1301
- function nn(e) {
1302
- const n = J(e, 0);
1303
- return n === "row_input" ? Le : n;
1304
- }
1305
- function On(e) {
1306
- const n = nt((e == null ? void 0 : e.dataType) || "number");
1307
- if (!e) return n;
1308
- const a = nn(e);
1309
- return a.unresolved || a.outputType === "input" ? n : "number";
1310
- }
1311
- const an = t.object({
1312
- intent: at,
1313
- matrixWindowRequest: fe
1314
- }).strict(), rn = t.object({
1315
- runtimeFilters: G.innerType().shape.filters,
1316
- runtimeSorts: G.innerType().shape.sorts.optional()
1317
- });
1318
- function xn(e) {
1319
- return rn.parse(e);
1320
- }
1321
- const sn = {
1322
- // A window executes a governed statement set, not one compiled query.
1323
- compiledQuery: t.never().optional(),
1324
- intent: an.shape.intent,
1325
- resultShape: t.literal("matrix"),
1326
- result: _e.optional(),
1327
- metadata: t.object({ rowLimitExceeded: t.boolean(), matrixFailure: H.optional() }).passthrough()
1328
- }, on = Ee.extend(sn), Pn = on.superRefine((e, n) => {
1329
- e.status === "failed" == !!e.result && n.addIssue({ code: "custom", message: "Only answered or partial Matrix execution carries a window." }), e.result && e.status === "partial" != e.result.window.failures.length > 0 && n.addIssue({ code: "custom", message: "Matrix execution status must match acquired window failures." });
1330
- });
1331
- export {
1332
- mt as $,
1333
- Tn as A,
1334
- Lt as B,
1335
- Ut as C,
1336
- Dt as D,
1337
- En as E,
1338
- qt as F,
1339
- Mt as G,
1340
- Rn as H,
1341
- Qt as I,
1342
- Nn as J,
1343
- Gt as K,
1344
- Pe as L,
1345
- W as M,
1346
- Cn as N,
1347
- Yt as O,
1348
- nn as P,
1349
- On as Q,
1350
- he as R,
1351
- Y as S,
1352
- ot as T,
1353
- it as U,
1354
- dn as V,
1355
- mn as W,
1356
- lt as X,
1357
- pn as Y,
1358
- dt as Z,
1359
- ne as _,
1360
- vt as a,
1361
- fe as a0,
1362
- hn as a1,
1363
- pt as a2,
1364
- ht as a3,
1365
- ft as a4,
1366
- ae as a5,
1367
- H as a6,
1368
- gt as a7,
1369
- Ae as a8,
1370
- yt as a9,
1371
- fn as aa,
1372
- gn as ab,
1373
- St as ac,
1374
- bt as ad,
1375
- At as ae,
1376
- yn as af,
1377
- Sn as ag,
1378
- It as ah,
1379
- _t as ai,
1380
- re as aj,
1381
- wt as ak,
1382
- bn as al,
1383
- rn as am,
1384
- xn as an,
1385
- Pn as ao,
1386
- an as ap,
1387
- ke as b,
1388
- ve as c,
1389
- Te as d,
1390
- Ee as e,
1391
- Tt as f,
1392
- An as g,
1393
- Rt as h,
1394
- Ot as i,
1395
- Ct as j,
1396
- Re as k,
1397
- Ce as l,
1398
- _e as m,
1399
- _n as n,
1400
- xt as o,
1401
- In as p,
1402
- wn as q,
1403
- Oe as r,
1404
- kt as s,
1405
- Ne as t,
1406
- Pt as u,
1407
- oe as v,
1408
- z as w,
1409
- ie as x,
1410
- kn as y,
1411
- vn as z
1412
- };