@malloy-publisher/sdk 0.12.5 → 0.12.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{RenderedResult-DqPvGZgL.es.js → RenderedResult-DAW_Cfc-.es.js} +2 -2
- package/dist/{RenderedResult-C2arX5Zz.cjs.js → RenderedResult-ozKMHmvL.cjs.js} +1 -1
- package/dist/{ServerProvider-DRbZ6tLP.es.js → ServerProvider-Qd3zdOsC.es.js} +12 -12
- package/dist/builder/index.cjs.js +1 -1
- package/dist/builder/index.es.js +3 -3
- package/dist/client/api.d.ts +23 -19
- package/dist/client/index.es.js +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +5 -5
- package/dist/{useCompiledDocument--Z7vKZL5.cjs.js → useCompiledDocument-BpP4Clt3.cjs.js} +5 -5
- package/dist/{useCompiledDocument-BnT2QpG0.es.js → useCompiledDocument-XJMCZF8O.es.js} +228 -218
- package/package.json +1 -1
- package/src/components/DocumentCreate/createDocument.spec.ts +126 -4
- package/src/components/DocumentCreate/createDocument.ts +38 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as S, jsxs as re, Fragment as Bt } from "react/jsx-runtime";
|
|
2
2
|
import { Box as be, Dialog as Ed, DialogTitle as Od, IconButton as Qn, DialogContent as Ad, Typography as Ge, Stack as wt, DialogActions as Fd, Button as st, Tooltip as wn, TextField as Vn, InputAdornment as Wl, Alert as Ld, Autocomplete as Nd, CircularProgress as Hl, FormControl as Ki, Slider as Bd, FormHelperText as Xi, FormControlLabel as Vd, Checkbox as zd, Paper as ni, MenuItem as An, ButtonBase as Ul, Popover as _d, LinearProgress as Wd } from "@mui/material";
|
|
3
|
-
import { br as Ke, bw as Zn, bx as Hd, bs as Jn, bq as Yl, bM as Ud } from "./ServerProvider-
|
|
3
|
+
import { br as Ke, bw as Zn, bx as Hd, bs as Jn, bq as Yl, bM as Ud } from "./ServerProvider-Qd3zdOsC.es.js";
|
|
4
4
|
import * as x from "react";
|
|
5
5
|
import xt, { useState as Oe, useEffect as He, useRef as Ye, useId as jl, useMemo as Ve, useCallback as et, createContext as Fo, useContext as er, isValidElement as co, cloneElement as uo, Children as Yd, Suspense as jd, lazy as Gd } from "react";
|
|
6
6
|
import { useQueries as Gl, QueryClientContext as qd, useQuery as Kd, useMutation as Xd, keepPreviousData as Qd } from "@tanstack/react-query";
|
|
@@ -84,7 +84,7 @@ function Zi(...e) {
|
|
|
84
84
|
function rn(e) {
|
|
85
85
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function WM(e) {
|
|
88
88
|
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
|
|
89
89
|
var t = e.default;
|
|
90
90
|
if (typeof t == "function") {
|
|
@@ -3114,19 +3114,19 @@ function Hh(e, t) {
|
|
|
3114
3114
|
}
|
|
3115
3115
|
const pc = Ae(/* @__PURE__ */ S("path", {
|
|
3116
3116
|
d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"
|
|
3117
|
-
})), Uh = 2, Yh = 24,
|
|
3117
|
+
})), Uh = 2, Yh = 24, HM = (e, t, n) => Math.min(Math.max(e + t, 1), Math.min(n, Yh)), Vt = 16, UM = Vt / 2;
|
|
3118
3118
|
function jh(e, t) {
|
|
3119
3119
|
const n = Math.min(e.colspan ?? 1, t);
|
|
3120
3120
|
return e.break ? `1 / span ${n}` : `span ${n}`;
|
|
3121
3121
|
}
|
|
3122
|
-
const di = 80, Gh = 3,
|
|
3122
|
+
const di = 80, Gh = 3, YM = 2, jM = 1, qh = 16, Kh = (e) => e * di + (e - 1) * Vt, GM = (e, t = Gh) => Math.min(
|
|
3123
3123
|
Math.max(
|
|
3124
3124
|
Math.round((e + Vt) / (di + Vt)),
|
|
3125
3125
|
t
|
|
3126
3126
|
),
|
|
3127
3127
|
qh
|
|
3128
3128
|
), Xh = 240;
|
|
3129
|
-
function
|
|
3129
|
+
function qM(e, t, n = Xh) {
|
|
3130
3130
|
const [r, o] = Oe(0);
|
|
3131
3131
|
return He(() => {
|
|
3132
3132
|
const s = e.current;
|
|
@@ -3155,7 +3155,7 @@ function Jh(e, t, n) {
|
|
|
3155
3155
|
};
|
|
3156
3156
|
}
|
|
3157
3157
|
const em = (e) => e.row === void 0 ? 1e6 : e.row * 1e3 + (e.col ?? 0);
|
|
3158
|
-
function
|
|
3158
|
+
function KM({
|
|
3159
3159
|
tiles: e,
|
|
3160
3160
|
columns: t,
|
|
3161
3161
|
keyOf: n,
|
|
@@ -3306,7 +3306,7 @@ function mc(e) {
|
|
|
3306
3306
|
(r) => Ns.has(r)
|
|
3307
3307
|
);
|
|
3308
3308
|
}
|
|
3309
|
-
function
|
|
3309
|
+
function XM() {
|
|
3310
3310
|
return [
|
|
3311
3311
|
"#",
|
|
3312
3312
|
...pi.filter((e) => e !== "big_value").map(
|
|
@@ -3314,7 +3314,7 @@ function KM() {
|
|
|
3314
3314
|
)
|
|
3315
3315
|
].join(" ");
|
|
3316
3316
|
}
|
|
3317
|
-
function
|
|
3317
|
+
function QM(e, t) {
|
|
3318
3318
|
return ["#", ...pi.filter(
|
|
3319
3319
|
(r) => r !== e && (t === void 0 || t.includes(r) || e === "none" && r === "big_value")
|
|
3320
3320
|
).map((r) => `-${r}`), "-viz", ...e === "none" ? [] : [e]].join(
|
|
@@ -3330,22 +3330,22 @@ function rm(e) {
|
|
|
3330
3330
|
const t = Xo(e[0]);
|
|
3331
3331
|
return t ? nm(t) : "custom";
|
|
3332
3332
|
}
|
|
3333
|
-
function
|
|
3333
|
+
function ZM(e) {
|
|
3334
3334
|
const t = e.filter((n) => Xo(n));
|
|
3335
3335
|
return e.some(mc) ? "custom" : t.length === 0 ? void 0 : rm(t);
|
|
3336
3336
|
}
|
|
3337
3337
|
const om = /^#[ \t]*theme\.palette\.series[ \t]*=[ \t]*\[[ \t]*"(#[0-9A-Fa-f]{6})"[ \t]*\][ \t]*$/;
|
|
3338
|
-
function
|
|
3338
|
+
function JM(e) {
|
|
3339
3339
|
return om.exec(e.trim())?.[1]?.toLowerCase();
|
|
3340
3340
|
}
|
|
3341
|
-
const
|
|
3342
|
-
function
|
|
3341
|
+
const eD = (e) => `# theme.palette.series=["${e.toLowerCase()}"]`, tD = "# -theme.palette.series", sm = (e) => /^#[0-9A-Fa-f]{6}$/.test(e);
|
|
3342
|
+
function nD(e) {
|
|
3343
3343
|
const t = e.trim().toLowerCase();
|
|
3344
3344
|
if (sm(t)) return t;
|
|
3345
3345
|
const n = /^#([0-9a-f])([0-9a-f])([0-9a-f])$/.exec(t);
|
|
3346
3346
|
return n ? `#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}` : void 0;
|
|
3347
3347
|
}
|
|
3348
|
-
const
|
|
3348
|
+
const rD = (e) => e.filter((t) => Xo(t) || mc(t)), fi = Ae(/* @__PURE__ */ S("path", {
|
|
3349
3349
|
d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
3350
3350
|
}));
|
|
3351
3351
|
function im({
|
|
@@ -3429,7 +3429,7 @@ function im({
|
|
|
3429
3429
|
}
|
|
3430
3430
|
);
|
|
3431
3431
|
}
|
|
3432
|
-
function
|
|
3432
|
+
function oD({
|
|
3433
3433
|
open: e,
|
|
3434
3434
|
canSave: t,
|
|
3435
3435
|
onKeepEditing: n,
|
|
@@ -3455,7 +3455,7 @@ function rD({
|
|
|
3455
3455
|
const am = Ae(/* @__PURE__ */ S("path", {
|
|
3456
3456
|
d: "M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"
|
|
3457
3457
|
}));
|
|
3458
|
-
function
|
|
3458
|
+
function sD({
|
|
3459
3459
|
label: e,
|
|
3460
3460
|
onClick: t,
|
|
3461
3461
|
disabled: n
|
|
@@ -3474,7 +3474,7 @@ function oD({
|
|
|
3474
3474
|
}
|
|
3475
3475
|
);
|
|
3476
3476
|
}
|
|
3477
|
-
function
|
|
3477
|
+
function iD({
|
|
3478
3478
|
label: e,
|
|
3479
3479
|
icon: t,
|
|
3480
3480
|
onClick: n,
|
|
@@ -3509,9 +3509,9 @@ const lm = Ae(/* @__PURE__ */ S("path", {
|
|
|
3509
3509
|
transition: "none",
|
|
3510
3510
|
animation: "none"
|
|
3511
3511
|
}
|
|
3512
|
-
},
|
|
3512
|
+
}, aD = () => typeof window < "u" && window.matchMedia?.("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth", cm = {
|
|
3513
3513
|
"@media (hover: none)": { opacity: 1 }
|
|
3514
|
-
},
|
|
3514
|
+
}, lD = (e) => e.palette.mode === "dark" ? e.palette.error.main : e.palette.error.dark;
|
|
3515
3515
|
Zn.size.control;
|
|
3516
3516
|
Zn.size.chip;
|
|
3517
3517
|
Zn.radius.control;
|
|
@@ -3551,7 +3551,7 @@ function yc(e) {
|
|
|
3551
3551
|
}
|
|
3552
3552
|
return n ?? t.at(-1);
|
|
3553
3553
|
}
|
|
3554
|
-
function
|
|
3554
|
+
function cD(e) {
|
|
3555
3555
|
const t = yc(e);
|
|
3556
3556
|
return t !== void 0 && Jo[t] !== void 0;
|
|
3557
3557
|
}
|
|
@@ -3640,7 +3640,7 @@ const bm = Ae(/* @__PURE__ */ S("path", {
|
|
|
3640
3640
|
})), Pm = Ae(/* @__PURE__ */ S("path", {
|
|
3641
3641
|
d: "M10 10.02h5V21h-5zM17 21h3c1.1 0 2-.9 2-2v-9h-5zm3-18H5c-1.1 0-2 .9-2 2v3h19V5c0-1.1-.9-2-2-2M3 19c0 1.1.9 2 2 2h3V10H3z"
|
|
3642
3642
|
}));
|
|
3643
|
-
function
|
|
3643
|
+
function uD(e) {
|
|
3644
3644
|
const t = e.replace(/_+/g, " ").trim();
|
|
3645
3645
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
3646
3646
|
}
|
|
@@ -3664,7 +3664,7 @@ function km({ chart: e }) {
|
|
|
3664
3664
|
return /* @__PURE__ */ S(Pm, { sx: t });
|
|
3665
3665
|
}
|
|
3666
3666
|
}
|
|
3667
|
-
function
|
|
3667
|
+
function dD({
|
|
3668
3668
|
groups: e,
|
|
3669
3669
|
query: t,
|
|
3670
3670
|
onQuery: n,
|
|
@@ -3912,13 +3912,13 @@ const Mm = /* @__PURE__ */ new Set([
|
|
|
3912
3912
|
"link",
|
|
3913
3913
|
"image"
|
|
3914
3914
|
]);
|
|
3915
|
-
function
|
|
3915
|
+
function pD(e, t) {
|
|
3916
3916
|
return t === "fill" ? "container" : t === "fixed" || !e ? "content" : Mm.has(e) ? "container" : "content";
|
|
3917
3917
|
}
|
|
3918
|
-
function
|
|
3918
|
+
function fD(e, t) {
|
|
3919
3919
|
return t === "fixed" ? !0 : t === "fill" ? !1 : e !== void 0 && Dm.has(e);
|
|
3920
3920
|
}
|
|
3921
|
-
function
|
|
3921
|
+
function hD(e) {
|
|
3922
3922
|
return e === "dashboard" ? 3 : 2;
|
|
3923
3923
|
}
|
|
3924
3924
|
function Tm(e, t) {
|
|
@@ -3927,11 +3927,11 @@ function Tm(e, t) {
|
|
|
3927
3927
|
n = n.firstElementChild;
|
|
3928
3928
|
return n;
|
|
3929
3929
|
}
|
|
3930
|
-
function
|
|
3930
|
+
function mD(e, t) {
|
|
3931
3931
|
const n = Tm(e, t);
|
|
3932
3932
|
return n && (n.scrollHeight || n.offsetHeight) || 0;
|
|
3933
3933
|
}
|
|
3934
|
-
const bc = 400,
|
|
3934
|
+
const bc = 400, gD = 700, Rm = 700;
|
|
3935
3935
|
function Im({
|
|
3936
3936
|
renderAs: e,
|
|
3937
3937
|
maxHeight: t,
|
|
@@ -3939,7 +3939,7 @@ function Im({
|
|
|
3939
3939
|
}) {
|
|
3940
3940
|
return e !== "table" || n === void 0 ? t : t === void 0 ? n : Math.min(t, n);
|
|
3941
3941
|
}
|
|
3942
|
-
const
|
|
3942
|
+
const yD = 600, bD = 800, $m = 400, Em = 2e3;
|
|
3943
3943
|
function Om(e, t) {
|
|
3944
3944
|
const n = t ?? Em;
|
|
3945
3945
|
return e === void 0 ? n : Math.min(e, n);
|
|
@@ -3964,11 +3964,11 @@ const Am = "data-publisher-tight", Fm = "publisher-result-scroller";
|
|
|
3964
3964
|
function Lm(e, t, n = 1) {
|
|
3965
3965
|
return e === 1 && t <= 2 && n === 1 ? void 0 : e;
|
|
3966
3966
|
}
|
|
3967
|
-
function
|
|
3967
|
+
function vD(e, t, n, r = 1) {
|
|
3968
3968
|
const o = { ...e }, s = Lm(t, n, r);
|
|
3969
3969
|
return s === void 0 ? delete o.colspan : o.colspan = s, o;
|
|
3970
3970
|
}
|
|
3971
|
-
function
|
|
3971
|
+
function SD(e, t) {
|
|
3972
3972
|
if (e === "linear")
|
|
3973
3973
|
return {
|
|
3974
3974
|
layout: "linear",
|
|
@@ -4005,7 +4005,7 @@ function Nm(e, t, n, r = vc, o = [n]) {
|
|
|
4005
4005
|
(s) => s.kind === "names" ? s.names.includes(t) : o.includes(xc(s.from, r))
|
|
4006
4006
|
);
|
|
4007
4007
|
}
|
|
4008
|
-
function
|
|
4008
|
+
function xD(e, t, n, r = vc, o = [n]) {
|
|
4009
4009
|
const { imports: s } = e;
|
|
4010
4010
|
if (Nm(e, t, n, r, o))
|
|
4011
4011
|
return s;
|
|
@@ -4023,7 +4023,7 @@ function SD(e, t, n, r = vc, o = [n]) {
|
|
|
4023
4023
|
(a, l) => l === i && a.kind === "names" ? { ...a, names: [...a.names, t] } : a
|
|
4024
4024
|
);
|
|
4025
4025
|
}
|
|
4026
|
-
const
|
|
4026
|
+
const wD = Ae(/* @__PURE__ */ S("path", {
|
|
4027
4027
|
d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"
|
|
4028
4028
|
})), Bm = Ae(/* @__PURE__ */ S("path", {
|
|
4029
4029
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m-5.5-2.5 7.51-3.49L17.5 6.5 9.99 9.99zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1"
|
|
@@ -4100,7 +4100,7 @@ function Hm({ error: e, context: t }) {
|
|
|
4100
4100
|
const n = e.data?.message || "Unknown error";
|
|
4101
4101
|
return /* @__PURE__ */ S(Wm, { summary: t, detail: n });
|
|
4102
4102
|
}
|
|
4103
|
-
function
|
|
4103
|
+
function CD(e) {
|
|
4104
4104
|
const t = Um(e);
|
|
4105
4105
|
return {
|
|
4106
4106
|
name: e.name,
|
|
@@ -4137,7 +4137,7 @@ const Ym = {
|
|
|
4137
4137
|
"\b": "\\b",
|
|
4138
4138
|
"\f": "\\f"
|
|
4139
4139
|
}, jm = (e) => `\\u${e.charCodeAt(0).toString(16).padStart(4, "0")}`;
|
|
4140
|
-
function
|
|
4140
|
+
function PD(e, t) {
|
|
4141
4141
|
if (e == null || e === "") return;
|
|
4142
4142
|
const n = (o) => `'${Cc(o)}'`;
|
|
4143
4143
|
switch (t === void 0 ? Gm(e) : t.startsWith("filter<") ? "filter" : t) {
|
|
@@ -4184,17 +4184,17 @@ function Ma(e) {
|
|
|
4184
4184
|
return e instanceof Date ? Number.isNaN(e.getTime()) ? void 0 : e.toISOString().slice(0, 10) : /^(\d{4}-\d{2}-\d{2})/.exec(String(e))?.[1];
|
|
4185
4185
|
}
|
|
4186
4186
|
const Km = /^\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?$/;
|
|
4187
|
-
function
|
|
4187
|
+
function kD(e, t = !1) {
|
|
4188
4188
|
return e == null ? "null" : e instanceof Date ? `@${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}` : t && typeof e == "string" && Km.test(e) ? `@${e}` : typeof e == "string" ? `'${Cc(e)}'` : typeof e == "number" ? String(e) : e ? "true" : "false";
|
|
4189
4189
|
}
|
|
4190
4190
|
const Wn = "malloy-publisher.report-draft:", Hn = {
|
|
4191
4191
|
storage: () => window.localStorage
|
|
4192
4192
|
};
|
|
4193
|
-
function
|
|
4193
|
+
function MD(e) {
|
|
4194
4194
|
const { server: t, environmentName: n, packageName: r, versionId: o, path: s } = e;
|
|
4195
4195
|
return `${t}|${n}/${r}@${o ?? ""}/${s}`;
|
|
4196
4196
|
}
|
|
4197
|
-
function
|
|
4197
|
+
function DD(e) {
|
|
4198
4198
|
if (typeof e == "string") {
|
|
4199
4199
|
ho(e);
|
|
4200
4200
|
return;
|
|
@@ -4216,7 +4216,7 @@ function MD(e) {
|
|
|
4216
4216
|
} catch {
|
|
4217
4217
|
}
|
|
4218
4218
|
}
|
|
4219
|
-
function
|
|
4219
|
+
function TD() {
|
|
4220
4220
|
try {
|
|
4221
4221
|
const e = `${Wn}probe`;
|
|
4222
4222
|
return Hn.storage().setItem(e, "1"), Hn.storage().removeItem(e), !0;
|
|
@@ -4258,7 +4258,7 @@ function ws(e, t) {
|
|
|
4258
4258
|
for (const r of Object.keys(n)) delete n[r];
|
|
4259
4259
|
Object.assign(n, structuredClone(t));
|
|
4260
4260
|
}
|
|
4261
|
-
function
|
|
4261
|
+
function RD(e, t, n) {
|
|
4262
4262
|
const [r, o] = Oe(), [s, i] = Oe(), [a, l] = Oe(!1), c = Ye(void 0), u = Ye(void 0), d = Ye(!1), h = Xm(n), g = Ye(t);
|
|
4263
4263
|
g.current = t;
|
|
4264
4264
|
const p = Ye(!1);
|
|
@@ -4329,7 +4329,7 @@ function zs(e, t) {
|
|
|
4329
4329
|
}
|
|
4330
4330
|
} : Pc;
|
|
4331
4331
|
}
|
|
4332
|
-
function
|
|
4332
|
+
function ID(e, t) {
|
|
4333
4333
|
const n = Ye(t);
|
|
4334
4334
|
n.current = t;
|
|
4335
4335
|
const r = t !== void 0, { path: o, layout: s } = e;
|
|
@@ -4837,7 +4837,7 @@ function Oc(e) {
|
|
|
4837
4837
|
function Ra(e) {
|
|
4838
4838
|
return e.moment === "literal" && pg.test(e.literal) ? e.literal : void 0;
|
|
4839
4839
|
}
|
|
4840
|
-
const
|
|
4840
|
+
const $D = "self";
|
|
4841
4841
|
function hg(e) {
|
|
4842
4842
|
if (!e) return [];
|
|
4843
4843
|
if (e.wasDimension && !e.wasDimension()) return [];
|
|
@@ -4867,7 +4867,7 @@ function mi(e) {
|
|
|
4867
4867
|
function yg(e) {
|
|
4868
4868
|
return e instanceof Date ? mi(e) ?? "" : String(e);
|
|
4869
4869
|
}
|
|
4870
|
-
function
|
|
4870
|
+
function ED(e) {
|
|
4871
4871
|
if (!e || e.isHeader) return;
|
|
4872
4872
|
const t = e.field;
|
|
4873
4873
|
if (!t) return;
|
|
@@ -5222,7 +5222,7 @@ function Dg({
|
|
|
5222
5222
|
return { draft: I, applied: R, setGiven: $, reset: b, apply: E, pending: T, atStart: D };
|
|
5223
5223
|
}
|
|
5224
5224
|
const Tg = "You don't have access to this data";
|
|
5225
|
-
function
|
|
5225
|
+
function OD(e) {
|
|
5226
5226
|
return (e ?? []).filter((t) => t.kind === "definition" && !t.restricted).map((t) => t.text ?? "").join(`
|
|
5227
5227
|
|
|
5228
5228
|
`);
|
|
@@ -5238,13 +5238,13 @@ function Rg(e) {
|
|
|
5238
5238
|
function Un(e) {
|
|
5239
5239
|
return `\`${e.replace(/\\/g, "\\\\").replace(/`/g, "\\`")}\``;
|
|
5240
5240
|
}
|
|
5241
|
-
function
|
|
5241
|
+
function AD(e, t) {
|
|
5242
5242
|
return `run: ${Un(e)} -> ${Un(t)}`;
|
|
5243
5243
|
}
|
|
5244
|
-
function
|
|
5244
|
+
function FD(e) {
|
|
5245
5245
|
return `run: ${Un(e)}`;
|
|
5246
5246
|
}
|
|
5247
|
-
function
|
|
5247
|
+
function LD(e, t, n) {
|
|
5248
5248
|
const r = Un(t);
|
|
5249
5249
|
return [
|
|
5250
5250
|
`run: ${Un(e)} -> {`,
|
|
@@ -5459,7 +5459,7 @@ function Vg(e, t) {
|
|
|
5459
5459
|
}
|
|
5460
5460
|
return n;
|
|
5461
5461
|
}
|
|
5462
|
-
function
|
|
5462
|
+
function ND({
|
|
5463
5463
|
specs: e,
|
|
5464
5464
|
loaded: t,
|
|
5465
5465
|
startingValues: n,
|
|
@@ -6917,7 +6917,7 @@ function ot(e = []) {
|
|
|
6917
6917
|
function Ky(e) {
|
|
6918
6918
|
return me("MuiTypography", e);
|
|
6919
6919
|
}
|
|
6920
|
-
const
|
|
6920
|
+
const BD = fe("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]), Xy = {
|
|
6921
6921
|
primary: !0,
|
|
6922
6922
|
secondary: !0,
|
|
6923
6923
|
error: !0,
|
|
@@ -22690,12 +22690,12 @@ function qP({
|
|
|
22690
22690
|
return s ? /* @__PURE__ */ S(wn, { title: n, children: i }) : i;
|
|
22691
22691
|
}
|
|
22692
22692
|
const Ui = (e) => e.required === !0, KP = (e, t) => e == null || e === "" && !Lc(t);
|
|
22693
|
-
function
|
|
22693
|
+
function VD(e, t, n) {
|
|
22694
22694
|
return e.filter(
|
|
22695
22695
|
(r) => r.name !== void 0 && Ui(r) && KP(t.get(r.name), r.type) && (n?.[r.name] === void 0 || n[r.name] === null)
|
|
22696
22696
|
);
|
|
22697
22697
|
}
|
|
22698
|
-
function
|
|
22698
|
+
function zD(e, t) {
|
|
22699
22699
|
if (!t || e.length === 0) return [];
|
|
22700
22700
|
const n = new Set(t);
|
|
22701
22701
|
return e.filter((r) => r.name && n.has(r.name));
|
|
@@ -22704,11 +22704,11 @@ const hd = (e) => e.label ?? e.name ?? "";
|
|
|
22704
22704
|
function md(e) {
|
|
22705
22705
|
return e.length < 2 ? e.join("") : `${e.slice(0, -1).join(", ")} and ${e[e.length - 1]}`;
|
|
22706
22706
|
}
|
|
22707
|
-
function
|
|
22707
|
+
function _D(e) {
|
|
22708
22708
|
const t = e.map(hd);
|
|
22709
22709
|
return `Pick a value for ${md(t)} to see this report.`;
|
|
22710
22710
|
}
|
|
22711
|
-
function
|
|
22711
|
+
function WD(e) {
|
|
22712
22712
|
return `Waiting for ${md(e.map(hd))}.`;
|
|
22713
22713
|
}
|
|
22714
22714
|
const Js = 28, XP = /^\d{4}-\d{2}-\d{2}$/, gd = new Intl.DateTimeFormat("en-US", {
|
|
@@ -22765,7 +22765,7 @@ function bd(e, t, n) {
|
|
|
22765
22765
|
function JP(e, t) {
|
|
22766
22766
|
return bd(e, t, !1);
|
|
22767
22767
|
}
|
|
22768
|
-
function
|
|
22768
|
+
function HD(e, t) {
|
|
22769
22769
|
return bd(e, t, !0);
|
|
22770
22770
|
}
|
|
22771
22771
|
function ek(e) {
|
|
@@ -23118,7 +23118,7 @@ function sk() {
|
|
|
23118
23118
|
) }) })
|
|
23119
23119
|
);
|
|
23120
23120
|
}
|
|
23121
|
-
function
|
|
23121
|
+
function UD({
|
|
23122
23122
|
givens: e,
|
|
23123
23123
|
values: t,
|
|
23124
23124
|
onChange: n,
|
|
@@ -23351,7 +23351,7 @@ const ck = (e) => ({
|
|
|
23351
23351
|
function uk({ alt: e }) {
|
|
23352
23352
|
return /* @__PURE__ */ S(Bt, { children: e });
|
|
23353
23353
|
}
|
|
23354
|
-
function
|
|
23354
|
+
function YD({
|
|
23355
23355
|
children: e,
|
|
23356
23356
|
variant: t = "caption",
|
|
23357
23357
|
links: n,
|
|
@@ -23485,7 +23485,7 @@ function mk(e) {
|
|
|
23485
23485
|
`)
|
|
23486
23486
|
};
|
|
23487
23487
|
}
|
|
23488
|
-
const gk = Gd(() => import("./RenderedResult-
|
|
23488
|
+
const gk = Gd(() => import("./RenderedResult-DAW_Cfc-.es.js").then((e) => e.c));
|
|
23489
23489
|
function yk({
|
|
23490
23490
|
result: e,
|
|
23491
23491
|
maxHeight: t,
|
|
@@ -23735,7 +23735,7 @@ function bk({
|
|
|
23735
23735
|
const Ll = () => typeof performance < "u" ? performance.now() : Date.now(), vk = Ae(/* @__PURE__ */ S("path", {
|
|
23736
23736
|
d: "m16.95 6-3.57 4.55 1.43 1.43c1.03-1.31 4.98-6.37 4.98-6.37C20.3 4.95 19.83 4 19 4H6.83l2 2zM2.81 2.81 1.39 4.22 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-2.17l5.78 5.78 1.41-1.41z"
|
|
23737
23737
|
})), Sk = 3;
|
|
23738
|
-
function
|
|
23738
|
+
function jD(e, t) {
|
|
23739
23739
|
if (e === void 0) return [];
|
|
23740
23740
|
const n = new Set(e);
|
|
23741
23741
|
return t.flatMap(
|
|
@@ -23789,7 +23789,7 @@ function wk({ ignored: e }) {
|
|
|
23789
23789
|
}
|
|
23790
23790
|
);
|
|
23791
23791
|
}
|
|
23792
|
-
const Ck = /\.malloy(nb)?$/,
|
|
23792
|
+
const Ck = /\.malloy(nb)?$/, GD = (e) => e && e.slice(e.lastIndexOf("/") + 1).replace(Ck, "") || void 0, Pk = (e) => e.replace(/\.malloy$/, "").split("/").map(encodeURIComponent).join("/"), kk = (e, t, n) => `/${encodeURIComponent(e)}/${encodeURIComponent(t)}/${Pk(n)}`, Mk = "edit", qD = (e, t, n) => `${kk(e, t, n)}?${Mk}`, Dk = (e) => e.layout === "linear" ? "linear" : "grid", Tk = (e) => ({
|
|
23793
23793
|
layout: Dk(e),
|
|
23794
23794
|
path: e.path,
|
|
23795
23795
|
editable: e.editable !== !1
|
|
@@ -23803,7 +23803,7 @@ function Rk(e) {
|
|
|
23803
23803
|
(t) => t !== "" && t !== "." && t !== ".."
|
|
23804
23804
|
);
|
|
23805
23805
|
}
|
|
23806
|
-
function
|
|
23806
|
+
function KD(e, t) {
|
|
23807
23807
|
if (!Rk(e)) return { kind: "unresolved" };
|
|
23808
23808
|
for (const n of [`${e}.malloy`, e]) {
|
|
23809
23809
|
const r = wd(n, t);
|
|
@@ -23848,7 +23848,7 @@ function Ek(e, t, n, r = !0) {
|
|
|
23848
23848
|
refetch: s.refetch
|
|
23849
23849
|
};
|
|
23850
23850
|
}
|
|
23851
|
-
function
|
|
23851
|
+
function XD(e, t, n, r) {
|
|
23852
23852
|
const { reports: o, settled: s } = Ek(
|
|
23853
23853
|
e,
|
|
23854
23854
|
t,
|
|
@@ -23864,7 +23864,7 @@ const Cd = 20, Ok = {
|
|
|
23864
23864
|
radius: "8px",
|
|
23865
23865
|
padding: `${Cd}px`
|
|
23866
23866
|
};
|
|
23867
|
-
function
|
|
23867
|
+
function QD(e, t = Ok) {
|
|
23868
23868
|
return {
|
|
23869
23869
|
"--malloy-render--font-family": e.font.family,
|
|
23870
23870
|
"--malloy-render--table-font-size": `${e.font.size}px`,
|
|
@@ -24043,7 +24043,7 @@ function zk() {
|
|
|
24043
24043
|
}, []), stuck: e };
|
|
24044
24044
|
}
|
|
24045
24045
|
const _k = 4, Wk = "--publisher-sticky-top", Hk = 2;
|
|
24046
|
-
function
|
|
24046
|
+
function ZD({
|
|
24047
24047
|
layout: e,
|
|
24048
24048
|
notice: t,
|
|
24049
24049
|
header: n,
|
|
@@ -24066,7 +24066,7 @@ function QD({
|
|
|
24066
24066
|
}
|
|
24067
24067
|
);
|
|
24068
24068
|
}
|
|
24069
|
-
function
|
|
24069
|
+
function JD({
|
|
24070
24070
|
title: e,
|
|
24071
24071
|
description: t,
|
|
24072
24072
|
actions: n
|
|
@@ -24088,13 +24088,13 @@ function ZD({
|
|
|
24088
24088
|
t
|
|
24089
24089
|
] });
|
|
24090
24090
|
}
|
|
24091
|
-
function
|
|
24091
|
+
function eT({
|
|
24092
24092
|
sx: e,
|
|
24093
24093
|
children: t
|
|
24094
24094
|
}) {
|
|
24095
24095
|
return /* @__PURE__ */ S(Pd, { chrome: "none", kind: "text", ...e ? { sx: e } : {}, children: t });
|
|
24096
24096
|
}
|
|
24097
|
-
function
|
|
24097
|
+
function tT({ children: e }) {
|
|
24098
24098
|
const { theme: t } = Ke(), { stickyRef: n, stuck: r } = zk();
|
|
24099
24099
|
return /* @__PURE__ */ S(
|
|
24100
24100
|
be,
|
|
@@ -24160,13 +24160,13 @@ function Yi(e, t) {
|
|
|
24160
24160
|
return n?.[t] ? n : e;
|
|
24161
24161
|
}
|
|
24162
24162
|
const jk = (e) => Yi(e, "MalloyTranslator"), Gk = (e) => Yi(e, "parseAnnotation"), qk = (e) => Yi(e, "ASTQuery");
|
|
24163
|
-
async function
|
|
24163
|
+
async function nT() {
|
|
24164
24164
|
return jk(await import("@malloydata/malloy"));
|
|
24165
24165
|
}
|
|
24166
|
-
async function
|
|
24166
|
+
async function rT() {
|
|
24167
24167
|
return Gk(await import("@malloydata/malloy-tag"));
|
|
24168
24168
|
}
|
|
24169
|
-
async function
|
|
24169
|
+
async function oT() {
|
|
24170
24170
|
return qk(
|
|
24171
24171
|
// eslint-disable-next-line no-restricted-syntax -- the query builder's one loader, for the Explorer; every other rule still holds in this file
|
|
24172
24172
|
await import("@malloydata/malloy-query-builder")
|
|
@@ -24182,7 +24182,7 @@ async function Kk(e) {
|
|
|
24182
24182
|
(n) => n.toString(16).padStart(2, "0")
|
|
24183
24183
|
).join("");
|
|
24184
24184
|
}
|
|
24185
|
-
function
|
|
24185
|
+
function sT(e) {
|
|
24186
24186
|
return e.find((t) => t.authoritative) ?? e.find((t) => t.writeable);
|
|
24187
24187
|
}
|
|
24188
24188
|
function Xk({
|
|
@@ -24199,10 +24199,10 @@ function Xk({
|
|
|
24199
24199
|
writer: o ? void 0 : e ? r ? "storage" : void 0 : i ? void 0 : t ? "package" : r ? "storage" : void 0
|
|
24200
24200
|
};
|
|
24201
24201
|
}
|
|
24202
|
-
async function
|
|
24202
|
+
async function iT(e, t) {
|
|
24203
24203
|
return e ?? (t === void 0 ? void 0 : await Kk(t));
|
|
24204
24204
|
}
|
|
24205
|
-
function
|
|
24205
|
+
function aT({
|
|
24206
24206
|
authoritative: e,
|
|
24207
24207
|
mutable: t,
|
|
24208
24208
|
pinnedPackageSave: n,
|
|
@@ -24212,14 +24212,14 @@ function iT({
|
|
|
24212
24212
|
}) {
|
|
24213
24213
|
return o !== void 0 ? `The saved copy could not be read, so Save is off: ${o}` : e && r ? r.writeable ? r.description : `${r.description}: you cannot save into it.` : n ? `Reading version ${s}: a version is a fixed point in history, so Save is off.` : t ? "Save writes the file into the package." : r ? `${r.description}: this server does not take writes.` : "This server does not take writes.";
|
|
24214
24214
|
}
|
|
24215
|
-
function
|
|
24215
|
+
function lT(e) {
|
|
24216
24216
|
return e instanceof Error ? e.message : String(e);
|
|
24217
24217
|
}
|
|
24218
24218
|
function Qk(e) {
|
|
24219
24219
|
const t = e.response?.data;
|
|
24220
24220
|
return t?.message ? t.message : e instanceof Error ? e.message : String(e);
|
|
24221
24221
|
}
|
|
24222
|
-
async function
|
|
24222
|
+
async function cT({
|
|
24223
24223
|
apiClients: e,
|
|
24224
24224
|
queryClient: t,
|
|
24225
24225
|
environmentName: n,
|
|
@@ -24255,10 +24255,10 @@ async function lT({
|
|
|
24255
24255
|
}
|
|
24256
24256
|
return d;
|
|
24257
24257
|
}
|
|
24258
|
-
function
|
|
24258
|
+
function uT(e, t) {
|
|
24259
24259
|
return t === void 0 || !/\.(saved|save_undone)$/.test(e.type) || e.where === "package" ? e : { ...e, workspace: t };
|
|
24260
24260
|
}
|
|
24261
|
-
function
|
|
24261
|
+
function dT(e) {
|
|
24262
24262
|
if (!("resourceUri" in e))
|
|
24263
24263
|
return {
|
|
24264
24264
|
environmentName: e.environmentName,
|
|
@@ -24335,7 +24335,7 @@ function ji(e, t, n = nM) {
|
|
|
24335
24335
|
].join(`
|
|
24336
24336
|
`);
|
|
24337
24337
|
}
|
|
24338
|
-
function
|
|
24338
|
+
function pT(e, t) {
|
|
24339
24339
|
return ji(e, "linear", t);
|
|
24340
24340
|
}
|
|
24341
24341
|
function rM(e) {
|
|
@@ -24355,7 +24355,7 @@ function oM({
|
|
|
24355
24355
|
return `The ${o} name ${JSON.stringify(s)} cannot be written as a Malloy name.`;
|
|
24356
24356
|
return /["\\\r\n]/.test(t) ? `The model path ${JSON.stringify(t)} cannot be written into an import.` : kd("title", e);
|
|
24357
24357
|
}
|
|
24358
|
-
function
|
|
24358
|
+
function fT(e, t) {
|
|
24359
24359
|
const n = oM(e);
|
|
24360
24360
|
if (n) throw new Error(n);
|
|
24361
24361
|
return ji(e, "grid", t);
|
|
@@ -24380,7 +24380,7 @@ const lM = (e, t, n) => `${e}/${t}/${n}`, cM = (e, t, n, r, o) => ({
|
|
|
24380
24380
|
type: e,
|
|
24381
24381
|
path: lM(n, r, o)
|
|
24382
24382
|
}), Td = 20;
|
|
24383
|
-
function
|
|
24383
|
+
function hT(e) {
|
|
24384
24384
|
const { savesTo: t, writer: n } = Xk({ ...e, readFailed: !1 });
|
|
24385
24385
|
return t === "browser" ? void 0 : n;
|
|
24386
24386
|
}
|
|
@@ -24397,7 +24397,7 @@ function uM(e) {
|
|
|
24397
24397
|
if (e.toLowerCase() === "index.malloy")
|
|
24398
24398
|
return "The package's index.malloy is its surface, never a report.";
|
|
24399
24399
|
}
|
|
24400
|
-
async function
|
|
24400
|
+
async function mT(e) {
|
|
24401
24401
|
const t = e.layout ?? "linear", n = Ll();
|
|
24402
24402
|
let r;
|
|
24403
24403
|
try {
|
|
@@ -24437,7 +24437,7 @@ async function dM(e, t) {
|
|
|
24437
24437
|
await r.write(w, a(w)), m = w;
|
|
24438
24438
|
break;
|
|
24439
24439
|
} catch (k) {
|
|
24440
|
-
if (!
|
|
24440
|
+
if (!fM(k)) throw k;
|
|
24441
24441
|
}
|
|
24442
24442
|
if (m === void 0) throw Vl(n.title, e.path);
|
|
24443
24443
|
return { layout: t, path: m, slug: Bl(m) };
|
|
@@ -24471,10 +24471,20 @@ async function dM(e, t) {
|
|
|
24471
24471
|
if (p === void 0) throw Vl(n.title, e.path);
|
|
24472
24472
|
return await l.saveDocument(p.locator, a(p.path)), p;
|
|
24473
24473
|
}
|
|
24474
|
-
const pM =
|
|
24474
|
+
const pM = /^`[^`]+` already exists in the package\b/;
|
|
24475
|
+
function fM(e) {
|
|
24476
|
+
const t = e?.response;
|
|
24477
|
+
if (t?.status !== 409) return !1;
|
|
24478
|
+
const n = t.data?.reason;
|
|
24479
|
+
if (n === "FILE_EXISTS") return !0;
|
|
24480
|
+
if (n != null) return !1;
|
|
24481
|
+
const r = t.data?.message;
|
|
24482
|
+
return typeof r == "string" && pM.test(r);
|
|
24483
|
+
}
|
|
24484
|
+
const Vl = (e, t) => new Error(
|
|
24475
24485
|
t !== void 0 ? `${t} already exists. Fix: choose a different location.` : `No free file name for "${e}" after ${Td} tries. Fix: choose a different title.`
|
|
24476
24486
|
);
|
|
24477
|
-
function
|
|
24487
|
+
function hM(e) {
|
|
24478
24488
|
try {
|
|
24479
24489
|
const t = JSON.parse(e ?? "");
|
|
24480
24490
|
return new Set(
|
|
@@ -24492,13 +24502,13 @@ function zl(e) {
|
|
|
24492
24502
|
if (n) return n[1].trim();
|
|
24493
24503
|
}
|
|
24494
24504
|
}
|
|
24495
|
-
function
|
|
24505
|
+
function mM(e) {
|
|
24496
24506
|
for (const t of e ?? []) {
|
|
24497
24507
|
const n = /^#\s*(?:-[A-Za-z_]+\s+)*([a-z_]+)/.exec(t.trim())?.[1];
|
|
24498
24508
|
if (n && hc.includes(n)) return n;
|
|
24499
24509
|
}
|
|
24500
24510
|
}
|
|
24501
|
-
function
|
|
24511
|
+
function gT({
|
|
24502
24512
|
environmentName: e,
|
|
24503
24513
|
packageName: t,
|
|
24504
24514
|
versionId: n,
|
|
@@ -24530,14 +24540,14 @@ function mT({
|
|
|
24530
24540
|
}), l = a.map((p) => p.dataUpdatedAt).join(), c = Ve(() => {
|
|
24531
24541
|
const p = /* @__PURE__ */ new Map();
|
|
24532
24542
|
return a.forEach((f, m) => {
|
|
24533
|
-
const w = [], k =
|
|
24543
|
+
const w = [], k = hM(f.data?.modelInfo);
|
|
24534
24544
|
for (const v of f.data?.sources ?? []) {
|
|
24535
24545
|
if (typeof v.name != "string" || !k.has(v.name))
|
|
24536
24546
|
continue;
|
|
24537
24547
|
const y = zl(v.annotations);
|
|
24538
24548
|
for (const P of v.views ?? [])
|
|
24539
24549
|
if (typeof P.name == "string") {
|
|
24540
|
-
const C = zl(P.annotations), I =
|
|
24550
|
+
const C = zl(P.annotations), I = mM(P.annotations);
|
|
24541
24551
|
w.push({
|
|
24542
24552
|
source: v.name,
|
|
24543
24553
|
view: P.name,
|
|
@@ -24565,14 +24575,14 @@ function mT({
|
|
|
24565
24575
|
};
|
|
24566
24576
|
}
|
|
24567
24577
|
const Gi = Fo(void 0);
|
|
24568
|
-
function
|
|
24578
|
+
function yT({
|
|
24569
24579
|
children: e,
|
|
24570
24580
|
documentStorage: t
|
|
24571
24581
|
}) {
|
|
24572
24582
|
const n = Ve(() => ({ documentStorage: t }), [t]);
|
|
24573
24583
|
return /* @__PURE__ */ S(Gi.Provider, { value: n, children: e });
|
|
24574
24584
|
}
|
|
24575
|
-
function
|
|
24585
|
+
function bT() {
|
|
24576
24586
|
const e = er(Gi);
|
|
24577
24587
|
if (!e)
|
|
24578
24588
|
throw new Error(
|
|
@@ -24580,10 +24590,10 @@ function yT() {
|
|
|
24580
24590
|
);
|
|
24581
24591
|
return e;
|
|
24582
24592
|
}
|
|
24583
|
-
function
|
|
24593
|
+
function vT() {
|
|
24584
24594
|
return er(Gi);
|
|
24585
24595
|
}
|
|
24586
|
-
function
|
|
24596
|
+
function ST(e, {
|
|
24587
24597
|
environmentName: t,
|
|
24588
24598
|
packageName: n,
|
|
24589
24599
|
path: r,
|
|
@@ -24603,8 +24613,8 @@ function vT(e, {
|
|
|
24603
24613
|
...s === void 0 ? {} : { staleTime: s }
|
|
24604
24614
|
};
|
|
24605
24615
|
}
|
|
24606
|
-
const
|
|
24607
|
-
function
|
|
24616
|
+
const xT = 1e4, wT = (e) => e === "notebook" ? "linear" : "grid", CT = (e, t) => `${e}s/${t}.malloy`;
|
|
24617
|
+
function gM(e, t, n) {
|
|
24608
24618
|
return [
|
|
24609
24619
|
["dashboards"],
|
|
24610
24620
|
["notebooks"],
|
|
@@ -24612,11 +24622,11 @@ function mM(e, t, n) {
|
|
|
24612
24622
|
...n === void 0 ? [] : [[Yk({ environmentName: e, packageName: t, modelPath: n })]]
|
|
24613
24623
|
];
|
|
24614
24624
|
}
|
|
24615
|
-
function
|
|
24625
|
+
function PT(e, t, n, r) {
|
|
24616
24626
|
for (const o of [
|
|
24617
24627
|
["report"],
|
|
24618
24628
|
["reports"],
|
|
24619
|
-
...
|
|
24629
|
+
...gM(t, n, r)
|
|
24620
24630
|
])
|
|
24621
24631
|
e.invalidateQueries({ queryKey: o });
|
|
24622
24632
|
}
|
|
@@ -24646,7 +24656,7 @@ function qi(e) {
|
|
|
24646
24656
|
};
|
|
24647
24657
|
return Kd(n, Yl);
|
|
24648
24658
|
}
|
|
24649
|
-
function
|
|
24659
|
+
function kT(e) {
|
|
24650
24660
|
const t = {
|
|
24651
24661
|
...e,
|
|
24652
24662
|
mutationFn: async (n) => {
|
|
@@ -24670,7 +24680,7 @@ function PT(e) {
|
|
|
24670
24680
|
};
|
|
24671
24681
|
return Xd(t, Yl);
|
|
24672
24682
|
}
|
|
24673
|
-
function
|
|
24683
|
+
function yM(e) {
|
|
24674
24684
|
return [
|
|
24675
24685
|
"queryResult",
|
|
24676
24686
|
e.environmentName,
|
|
@@ -24685,7 +24695,7 @@ function gM(e) {
|
|
|
24685
24695
|
JSON.stringify(e.givens ?? {})
|
|
24686
24696
|
];
|
|
24687
24697
|
}
|
|
24688
|
-
function
|
|
24698
|
+
function MT(e) {
|
|
24689
24699
|
return [
|
|
24690
24700
|
"queryResult",
|
|
24691
24701
|
e.environmentName,
|
|
@@ -24694,8 +24704,8 @@ function kT(e) {
|
|
|
24694
24704
|
e.modelPath
|
|
24695
24705
|
];
|
|
24696
24706
|
}
|
|
24697
|
-
function
|
|
24698
|
-
const { apiClients: n } = Jn(), r =
|
|
24707
|
+
function bM(e, { enabled: t = !0 } = {}) {
|
|
24708
|
+
const { apiClients: n } = Jn(), r = yM(e);
|
|
24699
24709
|
return qi({
|
|
24700
24710
|
queryKey: r,
|
|
24701
24711
|
// The signal cancels a run the page no longer wants: a tile whose givens
|
|
@@ -24721,17 +24731,17 @@ function yM(e, { enabled: t = !0 } = {}) {
|
|
|
24721
24731
|
// "Running…" and back: every tile on a page blanked and redrew on each
|
|
24722
24732
|
// filter pick. The last result stays up until the new one lands, and
|
|
24723
24733
|
// `isPlaceholderData` says it is the previous answer.
|
|
24724
|
-
placeholderData: (o, s) => s &&
|
|
24734
|
+
placeholderData: (o, s) => s && SM(s.queryKey, r) ? Qd(o) : void 0,
|
|
24725
24735
|
...Ud
|
|
24726
24736
|
});
|
|
24727
24737
|
}
|
|
24728
|
-
const
|
|
24729
|
-
function
|
|
24738
|
+
const vM = 8;
|
|
24739
|
+
function SM(e, t) {
|
|
24730
24740
|
return e.every(
|
|
24731
|
-
(n, r) => r ===
|
|
24741
|
+
(n, r) => r === vM || r >= t.length || n === t[r]
|
|
24732
24742
|
);
|
|
24733
24743
|
}
|
|
24734
|
-
const
|
|
24744
|
+
const xM = /<\/?[A-Za-z][^>]*>|<!--|<![A-Za-z]/;
|
|
24735
24745
|
function Rd(e) {
|
|
24736
24746
|
let t = !1;
|
|
24737
24747
|
for (const [n, r] of Array.from(e.entries())) {
|
|
@@ -24747,7 +24757,7 @@ function Rd(e) {
|
|
|
24747
24757
|
} catch {
|
|
24748
24758
|
s = void 0;
|
|
24749
24759
|
}
|
|
24750
|
-
if (s !== void 0 &&
|
|
24760
|
+
if (s !== void 0 && xM.test(s)) {
|
|
24751
24761
|
e.delete("label"), t = !0;
|
|
24752
24762
|
continue;
|
|
24753
24763
|
}
|
|
@@ -24758,7 +24768,7 @@ function Rd(e) {
|
|
|
24758
24768
|
}
|
|
24759
24769
|
return t;
|
|
24760
24770
|
}
|
|
24761
|
-
function
|
|
24771
|
+
function wM(e) {
|
|
24762
24772
|
const t = e.trim();
|
|
24763
24773
|
if (!/^#(?:\||[ \t\r\n]|$)/.test(t)) return e;
|
|
24764
24774
|
if (t.includes("@env.")) return "";
|
|
@@ -24782,7 +24792,7 @@ function ti(e) {
|
|
|
24782
24792
|
if (n === "annotations" && Array.isArray(r))
|
|
24783
24793
|
for (const o of r) {
|
|
24784
24794
|
const s = o;
|
|
24785
|
-
typeof s?.value == "string" && (s.value =
|
|
24795
|
+
typeof s?.value == "string" && (s.value = wM(s.value));
|
|
24786
24796
|
}
|
|
24787
24797
|
else
|
|
24788
24798
|
ti(r);
|
|
@@ -24799,7 +24809,7 @@ function Id(e) {
|
|
|
24799
24809
|
const r = JSON.stringify(t);
|
|
24800
24810
|
return r === n ? e : r;
|
|
24801
24811
|
}
|
|
24802
|
-
const
|
|
24812
|
+
const CM = /* @__PURE__ */ new Set([
|
|
24803
24813
|
"bar_chart",
|
|
24804
24814
|
"line_chart",
|
|
24805
24815
|
"scatter_chart",
|
|
@@ -24818,22 +24828,22 @@ const wM = /* @__PURE__ */ new Set([
|
|
|
24818
24828
|
"image",
|
|
24819
24829
|
"link",
|
|
24820
24830
|
"text"
|
|
24821
|
-
]),
|
|
24831
|
+
]), PM = { value: `# big_value
|
|
24822
24832
|
` };
|
|
24823
|
-
function
|
|
24833
|
+
function kM(e) {
|
|
24824
24834
|
const t = e.schema?.fields;
|
|
24825
24835
|
if (!Array.isArray(t) || t.length === 0 || !t.every((r) => Vs(r))) return !1;
|
|
24826
24836
|
const n = e.data;
|
|
24827
24837
|
return n ? n.kind === "record_cell" ? !0 : n.kind === "array_cell" && Array.isArray(n.array_value) && n.array_value.length === 1 : !1;
|
|
24828
24838
|
}
|
|
24829
|
-
function
|
|
24839
|
+
function MM(e) {
|
|
24830
24840
|
for (const t of e) {
|
|
24831
24841
|
const n = t.trim();
|
|
24832
24842
|
if (!n.startsWith("#") || n.startsWith("#(") || n.startsWith('#"'))
|
|
24833
24843
|
continue;
|
|
24834
24844
|
const r = Ko(n.slice(1));
|
|
24835
24845
|
for (const o of r.split(/[\s{}=.,[\]]+/))
|
|
24836
|
-
if (
|
|
24846
|
+
if (CM.has(o)) return !0;
|
|
24837
24847
|
}
|
|
24838
24848
|
return !1;
|
|
24839
24849
|
}
|
|
@@ -24844,20 +24854,20 @@ function $d(e) {
|
|
|
24844
24854
|
} catch {
|
|
24845
24855
|
return e;
|
|
24846
24856
|
}
|
|
24847
|
-
if (!t || typeof t != "object" || !
|
|
24857
|
+
if (!t || typeof t != "object" || !kM(t))
|
|
24848
24858
|
return e;
|
|
24849
24859
|
const n = Array.isArray(t.annotations) ? t.annotations : [], r = n.map((o) => o?.value).filter((o) => typeof o == "string");
|
|
24850
|
-
return
|
|
24860
|
+
return MM(r) ? e : JSON.stringify({
|
|
24851
24861
|
...t,
|
|
24852
|
-
annotations: [
|
|
24862
|
+
annotations: [PM, ...n]
|
|
24853
24863
|
});
|
|
24854
24864
|
}
|
|
24855
|
-
const
|
|
24865
|
+
const DM = (e) => Id($d(e));
|
|
24856
24866
|
function _l(e) {
|
|
24857
24867
|
const t = e.split("->").at(-1)?.trim() ?? e;
|
|
24858
24868
|
return /^[A-Za-z_][\w-]*$/.test(t) ? mg(t) : e;
|
|
24859
24869
|
}
|
|
24860
|
-
function
|
|
24870
|
+
function DT({
|
|
24861
24871
|
environmentName: e,
|
|
24862
24872
|
packageName: t,
|
|
24863
24873
|
versionId: n,
|
|
@@ -24886,7 +24896,7 @@ function MT({
|
|
|
24886
24896
|
waitingFor: A,
|
|
24887
24897
|
index: O
|
|
24888
24898
|
}) {
|
|
24889
|
-
const { theme: $ } = Ke(), [b, E] = _m(), T =
|
|
24899
|
+
const { theme: $ } = Ke(), [b, E] = _m(), T = bM(
|
|
24890
24900
|
{
|
|
24891
24901
|
environmentName: e,
|
|
24892
24902
|
packageName: t,
|
|
@@ -24974,7 +24984,7 @@ function MT({
|
|
|
24974
24984
|
drill: v,
|
|
24975
24985
|
transform: (
|
|
24976
24986
|
// A document held as text draws no value-to-URL or markup tags.
|
|
24977
|
-
I !== void 0 ? s !== void 0 ?
|
|
24987
|
+
I !== void 0 ? s !== void 0 ? DM : Id : s !== void 0 ? $d : void 0
|
|
24978
24988
|
)
|
|
24979
24989
|
}
|
|
24980
24990
|
)
|
|
@@ -24982,7 +24992,7 @@ function MT({
|
|
|
24982
24992
|
}
|
|
24983
24993
|
);
|
|
24984
24994
|
}
|
|
24985
|
-
function
|
|
24995
|
+
function TT(e, { enabled: t = !0 } = {}) {
|
|
24986
24996
|
const { apiClients: n } = Jn();
|
|
24987
24997
|
return qi({
|
|
24988
24998
|
queryKey: [
|
|
@@ -25010,110 +25020,110 @@ function DT(e, { enabled: t = !0 } = {}) {
|
|
|
25010
25020
|
});
|
|
25011
25021
|
}
|
|
25012
25022
|
export {
|
|
25013
|
-
|
|
25023
|
+
YD as $,
|
|
25014
25024
|
pc as A,
|
|
25015
|
-
|
|
25025
|
+
wD as B,
|
|
25016
25026
|
am as C,
|
|
25017
25027
|
Cd as D,
|
|
25018
25028
|
lm as E,
|
|
25019
|
-
|
|
25029
|
+
nD as F,
|
|
25020
25030
|
Vt as G,
|
|
25021
25031
|
sm as H,
|
|
25022
25032
|
_l as I,
|
|
25023
25033
|
Zh as J,
|
|
25024
25034
|
Zo as K,
|
|
25025
|
-
|
|
25026
|
-
|
|
25027
|
-
|
|
25028
|
-
|
|
25035
|
+
nT as L,
|
|
25036
|
+
jM as M,
|
|
25037
|
+
JM as N,
|
|
25038
|
+
ZM as O,
|
|
25029
25039
|
Qh as P,
|
|
25030
|
-
|
|
25040
|
+
rD as Q,
|
|
25031
25041
|
Fm as R,
|
|
25032
|
-
|
|
25042
|
+
iD as S,
|
|
25033
25043
|
Am as T,
|
|
25034
|
-
|
|
25035
|
-
|
|
25044
|
+
oD as U,
|
|
25045
|
+
dD as V,
|
|
25036
25046
|
kd as W,
|
|
25037
25047
|
mc as X,
|
|
25038
25048
|
Xo as Y,
|
|
25039
|
-
|
|
25040
|
-
|
|
25041
|
-
|
|
25042
|
-
|
|
25049
|
+
QM as Z,
|
|
25050
|
+
eD as _,
|
|
25051
|
+
cD as a,
|
|
25052
|
+
wT as a$,
|
|
25043
25053
|
um as a0,
|
|
25044
|
-
|
|
25045
|
-
|
|
25054
|
+
eT as a1,
|
|
25055
|
+
GM as a2,
|
|
25046
25056
|
qh as a3,
|
|
25047
25057
|
Kh as a4,
|
|
25048
25058
|
GP as a5,
|
|
25049
25059
|
qP as a6,
|
|
25050
|
-
|
|
25060
|
+
UM as a7,
|
|
25051
25061
|
xr as a8,
|
|
25052
25062
|
Fk as a9,
|
|
25053
25063
|
Nm as aA,
|
|
25054
25064
|
qi as aB,
|
|
25055
|
-
|
|
25056
|
-
|
|
25057
|
-
|
|
25065
|
+
ST as aC,
|
|
25066
|
+
TT as aD,
|
|
25067
|
+
OD as aE,
|
|
25058
25068
|
Ek as aF,
|
|
25059
|
-
|
|
25060
|
-
|
|
25069
|
+
ND as aG,
|
|
25070
|
+
VD as aH,
|
|
25061
25071
|
Sd as aI,
|
|
25062
|
-
|
|
25063
|
-
|
|
25064
|
-
|
|
25065
|
-
|
|
25066
|
-
|
|
25067
|
-
|
|
25068
|
-
|
|
25069
|
-
|
|
25072
|
+
DT as aJ,
|
|
25073
|
+
jD as aK,
|
|
25074
|
+
zD as aL,
|
|
25075
|
+
WD as aM,
|
|
25076
|
+
_D as aN,
|
|
25077
|
+
UD as aO,
|
|
25078
|
+
xT as aP,
|
|
25079
|
+
sT as aQ,
|
|
25070
25080
|
cM as aR,
|
|
25071
25081
|
Jk as aS,
|
|
25072
|
-
aT,
|
|
25082
|
+
lT as aT,
|
|
25073
25083
|
Jm as aU,
|
|
25074
25084
|
tg as aV,
|
|
25075
|
-
|
|
25076
|
-
|
|
25077
|
-
|
|
25085
|
+
iT as aW,
|
|
25086
|
+
cT as aX,
|
|
25087
|
+
PT as aY,
|
|
25078
25088
|
Xk as aZ,
|
|
25079
|
-
|
|
25089
|
+
MT as a_,
|
|
25080
25090
|
Pd as aa,
|
|
25081
25091
|
Lk as ab,
|
|
25082
|
-
|
|
25083
|
-
|
|
25084
|
-
|
|
25092
|
+
KM as ac,
|
|
25093
|
+
vD as ad,
|
|
25094
|
+
JD as ae,
|
|
25085
25095
|
zs as af,
|
|
25086
|
-
|
|
25096
|
+
tT as ag,
|
|
25087
25097
|
jP as ah,
|
|
25088
25098
|
ok as ai,
|
|
25089
25099
|
sk as aj,
|
|
25090
|
-
|
|
25100
|
+
aD as ak,
|
|
25091
25101
|
Ll as al,
|
|
25092
|
-
|
|
25102
|
+
hM as am,
|
|
25093
25103
|
zl as an,
|
|
25094
25104
|
gm as ao,
|
|
25095
|
-
|
|
25096
|
-
|
|
25097
|
-
|
|
25098
|
-
|
|
25099
|
-
|
|
25100
|
-
|
|
25101
|
-
|
|
25102
|
-
|
|
25103
|
-
|
|
25104
|
-
|
|
25105
|
+
mM as ap,
|
|
25106
|
+
RD as aq,
|
|
25107
|
+
SD as ar,
|
|
25108
|
+
qM as as,
|
|
25109
|
+
HM as at,
|
|
25110
|
+
ZD as au,
|
|
25111
|
+
CD as av,
|
|
25112
|
+
PD as aw,
|
|
25113
|
+
XM as ax,
|
|
25114
|
+
tD as ay,
|
|
25105
25115
|
xc as az,
|
|
25106
|
-
|
|
25116
|
+
pD as b,
|
|
25107
25117
|
Pn as b$,
|
|
25108
|
-
|
|
25109
|
-
|
|
25110
|
-
|
|
25111
|
-
|
|
25112
|
-
|
|
25113
|
-
|
|
25118
|
+
dT as b0,
|
|
25119
|
+
GD as b1,
|
|
25120
|
+
vT as b2,
|
|
25121
|
+
uT as b3,
|
|
25122
|
+
MD as b4,
|
|
25123
|
+
aT as b5,
|
|
25114
25124
|
Hm as b6,
|
|
25115
|
-
|
|
25116
|
-
|
|
25125
|
+
DD as b7,
|
|
25126
|
+
CT as b8,
|
|
25117
25127
|
Td as b9,
|
|
25118
25128
|
Xh as bA,
|
|
25119
25129
|
Uk as bB,
|
|
@@ -25136,41 +25146,41 @@ export {
|
|
|
25136
25146
|
ze as bS,
|
|
25137
25147
|
Io as bT,
|
|
25138
25148
|
ae as bU,
|
|
25139
|
-
|
|
25140
|
-
|
|
25149
|
+
kT as bV,
|
|
25150
|
+
sD as bW,
|
|
25141
25151
|
hp as bX,
|
|
25142
25152
|
Wr as bY,
|
|
25143
25153
|
Mh as bZ,
|
|
25144
25154
|
Mr as b_,
|
|
25145
|
-
|
|
25146
|
-
|
|
25147
|
-
|
|
25155
|
+
mT as ba,
|
|
25156
|
+
hT as bb,
|
|
25157
|
+
fT as bc,
|
|
25148
25158
|
Md as bd,
|
|
25149
|
-
|
|
25159
|
+
pT as be,
|
|
25150
25160
|
sM as bf,
|
|
25151
25161
|
aM as bg,
|
|
25152
25162
|
rM as bh,
|
|
25153
25163
|
iM as bi,
|
|
25154
|
-
|
|
25164
|
+
gT as bj,
|
|
25155
25165
|
Cc as bk,
|
|
25156
|
-
|
|
25166
|
+
$D as bl,
|
|
25157
25167
|
mi as bm,
|
|
25158
25168
|
yg as bn,
|
|
25159
|
-
|
|
25169
|
+
ED as bo,
|
|
25160
25170
|
mg as bp,
|
|
25161
25171
|
hg as bq,
|
|
25162
25172
|
gg as br,
|
|
25163
25173
|
zc as bs,
|
|
25164
25174
|
fi as bt,
|
|
25165
|
-
|
|
25175
|
+
bM as bu,
|
|
25166
25176
|
bk as bv,
|
|
25167
25177
|
kc as bw,
|
|
25168
25178
|
Vc as bx,
|
|
25169
25179
|
Bc as by,
|
|
25170
|
-
|
|
25180
|
+
KD as bz,
|
|
25171
25181
|
dk as c,
|
|
25172
25182
|
Cs as c$,
|
|
25173
|
-
|
|
25183
|
+
BD as c0,
|
|
25174
25184
|
qe as c1,
|
|
25175
25185
|
Or as c2,
|
|
25176
25186
|
Pt as c3,
|
|
@@ -25182,31 +25192,31 @@ export {
|
|
|
25182
25192
|
Ht as c9,
|
|
25183
25193
|
pk as cA,
|
|
25184
25194
|
ud as cB,
|
|
25185
|
-
|
|
25195
|
+
HD as cC,
|
|
25186
25196
|
OP as cD,
|
|
25187
25197
|
Lg as cE,
|
|
25188
|
-
|
|
25198
|
+
LD as cF,
|
|
25189
25199
|
xd as cG,
|
|
25190
25200
|
yk as cH,
|
|
25191
|
-
|
|
25192
|
-
|
|
25201
|
+
AD as cI,
|
|
25202
|
+
FD as cJ,
|
|
25193
25203
|
Dg as cK,
|
|
25194
|
-
|
|
25204
|
+
bD as cL,
|
|
25195
25205
|
fk as cM,
|
|
25196
25206
|
wm as cN,
|
|
25197
|
-
|
|
25198
|
-
|
|
25199
|
-
|
|
25207
|
+
yD as cO,
|
|
25208
|
+
oT as cP,
|
|
25209
|
+
ID as cQ,
|
|
25200
25210
|
eg as cR,
|
|
25201
25211
|
uM as cS,
|
|
25202
25212
|
Ls as cT,
|
|
25203
|
-
|
|
25213
|
+
qD as cU,
|
|
25204
25214
|
kk as cV,
|
|
25205
25215
|
lM as cW,
|
|
25206
25216
|
Dk as cX,
|
|
25207
25217
|
Zk as cY,
|
|
25208
25218
|
Wm as cZ,
|
|
25209
|
-
|
|
25219
|
+
gD as c_,
|
|
25210
25220
|
wa as ca,
|
|
25211
25221
|
yw as cb,
|
|
25212
25222
|
S0 as cc,
|
|
@@ -25224,19 +25234,19 @@ export {
|
|
|
25224
25234
|
uy as co,
|
|
25225
25235
|
$P as cp,
|
|
25226
25236
|
Mc as cq,
|
|
25227
|
-
|
|
25237
|
+
kD as cr,
|
|
25228
25238
|
qm as cs,
|
|
25229
|
-
|
|
25239
|
+
WM as ct,
|
|
25230
25240
|
rn as cu,
|
|
25231
25241
|
ei as cv,
|
|
25232
25242
|
kt as cw,
|
|
25233
25243
|
Hh as cx,
|
|
25234
25244
|
ot as cy,
|
|
25235
25245
|
nr as cz,
|
|
25236
|
-
|
|
25246
|
+
QD as d,
|
|
25237
25247
|
EP as d0,
|
|
25238
25248
|
Tk as d1,
|
|
25239
|
-
|
|
25249
|
+
yT as d2,
|
|
25240
25250
|
dd as d3,
|
|
25241
25251
|
Em as d4,
|
|
25242
25252
|
Mk as d5,
|
|
@@ -25247,28 +25257,28 @@ export {
|
|
|
25247
25257
|
Ak as da,
|
|
25248
25258
|
wk as db,
|
|
25249
25259
|
$m as dc,
|
|
25250
|
-
|
|
25260
|
+
TD as dd,
|
|
25251
25261
|
bg as de,
|
|
25252
25262
|
Om as df,
|
|
25253
25263
|
Rk as dg,
|
|
25254
25264
|
wd as dh,
|
|
25255
25265
|
Un as di,
|
|
25256
|
-
|
|
25266
|
+
yM as dj,
|
|
25257
25267
|
Pk as dk,
|
|
25258
25268
|
Pa as dl,
|
|
25259
|
-
|
|
25260
|
-
|
|
25269
|
+
XD as dm,
|
|
25270
|
+
bT as dn,
|
|
25261
25271
|
vg as dp,
|
|
25262
25272
|
cm as dq,
|
|
25263
|
-
|
|
25273
|
+
fD as e,
|
|
25264
25274
|
Tm as f,
|
|
25265
|
-
|
|
25266
|
-
|
|
25275
|
+
hD as g,
|
|
25276
|
+
YM as h,
|
|
25267
25277
|
Gh as i,
|
|
25268
25278
|
tm as j,
|
|
25269
25279
|
di as k,
|
|
25270
|
-
|
|
25271
|
-
|
|
25280
|
+
rT as l,
|
|
25281
|
+
mD as m,
|
|
25272
25282
|
Ae as n,
|
|
25273
25283
|
Qo as o,
|
|
25274
25284
|
Hr as p,
|
|
@@ -25277,9 +25287,9 @@ export {
|
|
|
25277
25287
|
fm as s,
|
|
25278
25288
|
im as t,
|
|
25279
25289
|
km as u,
|
|
25280
|
-
|
|
25290
|
+
uD as v,
|
|
25281
25291
|
Lm as w,
|
|
25282
25292
|
Uh as x,
|
|
25283
|
-
|
|
25284
|
-
|
|
25293
|
+
xD as y,
|
|
25294
|
+
lD as z
|
|
25285
25295
|
};
|