react-semaphor 0.1.590 → 0.1.591
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/analytics-protocol/index.js +254 -236
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +7 -7
- package/dist/briefings/index.js +4 -4
- package/dist/chunks/{aggregate-measure-field-BrkXsSJp.js → aggregate-measure-field-DHlDj0Pc.js} +2 -2
- package/dist/chunks/{assistant-chat-C_6dBLUk.js → assistant-chat-Cazikwyh.js} +13 -13
- package/dist/chunks/{bookmark-impact-DkZABEd3.js → bookmark-impact-rWjQgk8h.js} +2 -2
- package/dist/chunks/{bookmark-state-Bn7k3ttp.js → bookmark-state-Bt_eQEqt.js} +569 -537
- package/dist/chunks/{card-filter-builder-6vflbF9O.js → card-filter-builder-DFR-6Jpm.js} +929 -910
- package/dist/chunks/{comparison-window-caption-fqijZdVd.js → comparison-window-caption-CFaw-kIV.js} +6 -6
- package/dist/chunks/{dashboard-DpgRl65K.js → dashboard-DCh9hKnJ.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-BLbhONJz.js → dashboard-briefing-launcher-ob8G1b58.js} +91 -91
- package/dist/chunks/{dashboard-controls-kCTYEEsq.js → dashboard-controls-Nszg0k1A.js} +64 -64
- package/dist/chunks/{dashboard-json-CNIFresY.js → dashboard-json-BpwnG23b.js} +4 -4
- package/dist/chunks/{dates-BoeweqEo.js → dates-BOLBSBpn.js} +8 -8
- package/dist/chunks/{edit-dashboard-visual-D0eWTlPL.js → edit-dashboard-visual-BvM7br5P.js} +5501 -5475
- package/dist/chunks/filter-line-CYT7KIXb.js +133 -0
- package/dist/chunks/{filter-reach-copy-eMhDPTYH.js → filter-reach-copy-By3r7O3G.js} +11 -11
- package/dist/chunks/filter-value-text-CFiIZWJP.js +153 -0
- package/dist/chunks/{index-D8LFjI8j.js → index-CsQYlwhU.js} +5 -5
- package/dist/chunks/{layout-grid-BG__sPkb.js → layout-grid-DoFIfQGd.js} +1 -1
- package/dist/chunks/{list-filter-Cb8i7N8f.js → list-filter-BeTQxjNy.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-D9Ll_9R-.js → matrix-analytical-definition-CyWOwLmE.js} +17 -17
- package/dist/chunks/{matrix-member-presentation-DVBJR0MA.js → matrix-member-presentation-Bj2YcHAP.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-JSmproo9.js → matrix-operation-contract-CAanJeCj.js} +60 -60
- package/dist/chunks/{metric-comparison-xE_J6hkg.js → metric-comparison-BeKnUD08.js} +27 -31
- package/dist/chunks/{paintbrush-C310xSuR.js → paintbrush-KeaU1L1a.js} +1 -1
- package/dist/chunks/{palette-Ci5P91Zb.js → palette-BcFJLeXB.js} +1 -1
- package/dist/chunks/{pivot-header-presentation-D-DfPAjb.js → pivot-header-presentation-gUxhdIdr.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-DbBahmgc.js → pivot-result-contract-expectations-BkMRCjzf.js} +111 -111
- package/dist/chunks/{pivot-result-identity-CUsMt_4r.js → pivot-result-identity-BKUjYO1u.js} +1 -1
- package/dist/chunks/raw-temporal-value-BzdgeDa7.js +454 -0
- package/dist/chunks/{report-preferences-dialog-dUlVLgEk.js → report-preferences-dialog-ChXt8wCt.js} +13 -13
- package/dist/chunks/{report-runtime-context-CrOgmuxO.js → report-runtime-context-g4Zp_TU9.js} +1 -1
- package/dist/chunks/{resolve-dashboard-input-context-NurwNg4I.js → resolve-dashboard-input-context-BlyFX8He.js} +5053 -4955
- package/dist/chunks/{save-BhhXfp4s.js → save-C9CZAk6V.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-CPp--vXU.js → saved-dashboard-context-BPSdH2jW.js} +7 -7
- package/dist/chunks/{selection-filter-compiler-CHG-8xnW.js → selection-filter-compiler-BclSpK3P.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-CXojR95M.js → semaphor-ready-indicator-BZUMCHRU.js} +28962 -28917
- package/dist/chunks/{shelf-drop-preview-context-BDScAUdq.js → shelf-drop-preview-context-yJheoeTC.js} +5 -5
- package/dist/chunks/{stored-dashboard-KkH4zOhq.js → stored-dashboard-CxQl9g0l.js} +653 -657
- package/dist/chunks/{style-sheet-parts-CmXmKqGw.js → style-sheet-parts-DM_Mw_sm.js} +45 -42
- package/dist/chunks/{table-export-sheet-ClSgERQC.js → table-export-sheet-h7wm5TwP.js} +1 -1
- package/dist/chunks/{token-types-DTocOcwt.js → token-types-BB2ImFx6.js} +1 -1
- package/dist/chunks/{upload-DDYc1Qjj.js → upload-CMTCg47S.js} +1 -1
- package/dist/chunks/{validators-CrYXNnNE.js → validators-BlEWWX9O.js} +576 -562
- package/dist/chunks/{variable-draft-Bi3RlULA.js → variable-draft-OpYyaVCW.js} +4 -4
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +1602 -1555
- package/dist/format-utils/index.js +14 -14
- package/dist/index.js +18 -18
- package/dist/report-runtime-context/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/components/surfboard/filter/types.d.ts +7 -5
- package/dist/types/index.js +5 -5
- package/dist/types/lib/dashboard-inputs/dashboard-date-comparison-plan.d.ts +0 -1
- package/dist/types/lib/formatters/raw-temporal-presentation.d.ts +0 -2
- package/dist/types/shared/analytics-protocol/agent-time-window.d.ts +1 -1
- package/dist/types/shared/analytics-protocol/relative-date/index.d.ts +2 -1
- package/dist/types/shared/analytics-protocol/relative-date/sentence.d.ts +81 -0
- package/dist/types/shared/analytics-protocol/relative-date/traits.d.ts +0 -9
- package/dist/types/shared/analytics-protocol/relative-date/window.d.ts +23 -2
- package/dist/types/shared/dashboard-authoring/canonical-result-keys.d.ts +20 -0
- package/dist/types/shared/dashboard-authoring/card-formats/detail-date-display.d.ts +84 -0
- package/dist/types/shared/dashboard-authoring/card-settings/column-names.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +36 -36
- package/dist/types/shared/dashboard-authoring/filter-model/date-filter-default.d.ts +37 -0
- package/dist/types/shared/dashboard-authoring/filter-model/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
- package/dist/types/shared/format-utils/filter-line.d.ts +2 -0
- package/package.json +1 -1
- package/dist/chunks/filter-line-Dza3ee4w.js +0 -131
- package/dist/chunks/filter-value-text-DQw4v3nC.js +0 -146
- package/dist/chunks/raw-temporal-value-BnGCWJAL.js +0 -322
|
@@ -3,13 +3,13 @@ var zn = (e, t, n) => t in e ? Yn(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var $ = (e, t, n) => zn(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import { z as w } from "zod";
|
|
5
5
|
import { E as jt, l as Ht } from "./export-file-format-C-tJsxsf.js";
|
|
6
|
-
import {
|
|
7
|
-
import "./matrix-operation-contract-
|
|
6
|
+
import { b1 as qt, b2 as An, aW as Rn, m as it, a7 as Un, O as Ln, b3 as Wn, b4 as jn, T as Hn, K as X, U as qn } from "./validators-BlEWWX9O.js";
|
|
7
|
+
import "./matrix-operation-contract-CAanJeCj.js";
|
|
8
8
|
import { k as Zn, i as ge } from "./analytics-base-schemas-8wz9vqn_.js";
|
|
9
|
-
import { b as Xn } from "./report-runtime-context-
|
|
9
|
+
import { b as Xn } from "./report-runtime-context-g4Zp_TU9.js";
|
|
10
10
|
import { canonicalizeSupportedLocale as Q, canonicalizeSupportedCurrencyCode as Le, DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as Bn } from "../value-format-preferences/index.js";
|
|
11
|
-
import { p as Vn, a as Kn, c as Gn, i as ot, s as ye,
|
|
12
|
-
import { a as er } from "./metric-comparison-
|
|
11
|
+
import { p as Vn, a as Kn, c as Gn, i as ot, s as ye, C as Qn, u as Jn } from "./raw-temporal-value-BzdgeDa7.js";
|
|
12
|
+
import { a as er } from "./metric-comparison-BeKnUD08.js";
|
|
13
13
|
function J(e) {
|
|
14
14
|
if (!e || typeof e != "object") return !1;
|
|
15
15
|
const t = e.type;
|
|
@@ -487,11 +487,11 @@ function Er(e, t, n) {
|
|
|
487
487
|
const r = Mr(e, t) / 1e3;
|
|
488
488
|
return Sr(n == null ? void 0 : n.roundingMethod)(r);
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function Or(e) {
|
|
491
491
|
const t = p(e), n = N(e, 0);
|
|
492
492
|
return n.setFullYear(t.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
493
493
|
}
|
|
494
|
-
const
|
|
494
|
+
const Ir = {
|
|
495
495
|
lessThanXSeconds: {
|
|
496
496
|
one: "less than a second",
|
|
497
497
|
other: "less than {{count}} seconds"
|
|
@@ -553,9 +553,9 @@ const Or = {
|
|
|
553
553
|
one: "almost 1 year",
|
|
554
554
|
other: "almost {{count}} years"
|
|
555
555
|
}
|
|
556
|
-
},
|
|
556
|
+
}, Cr = (e, t, n) => {
|
|
557
557
|
let r;
|
|
558
|
-
const a =
|
|
558
|
+
const a = Ir[e];
|
|
559
559
|
return typeof a == "string" ? r = a : t === 1 ? r = a.one : r = a.other.replace("{{count}}", t.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
560
560
|
};
|
|
561
561
|
function $e(e) {
|
|
@@ -564,7 +564,7 @@ function $e(e) {
|
|
|
564
564
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
565
565
|
};
|
|
566
566
|
}
|
|
567
|
-
const
|
|
567
|
+
const Fr = {
|
|
568
568
|
full: "EEEE, MMMM do, y",
|
|
569
569
|
long: "MMMM do, y",
|
|
570
570
|
medium: "MMM d, y",
|
|
@@ -581,7 +581,7 @@ const Cr = {
|
|
|
581
581
|
short: "{{date}}, {{time}}"
|
|
582
582
|
}, zr = {
|
|
583
583
|
date: $e({
|
|
584
|
-
formats:
|
|
584
|
+
formats: Fr,
|
|
585
585
|
defaultWidth: "full"
|
|
586
586
|
}),
|
|
587
587
|
time: $e({
|
|
@@ -912,7 +912,7 @@ const Gr = /^(\d+)(th|st|nd|rd)?/i, Qr = /\d+/i, Jr = {
|
|
|
912
912
|
})
|
|
913
913
|
}, on = {
|
|
914
914
|
code: "en-US",
|
|
915
|
-
formatDistance:
|
|
915
|
+
formatDistance: Cr,
|
|
916
916
|
formatLong: zr,
|
|
917
917
|
formatRelative: Rr,
|
|
918
918
|
localize: Xr,
|
|
@@ -924,7 +924,7 @@ const Gr = /^(\d+)(th|st|nd|rd)?/i, Qr = /\d+/i, Jr = {
|
|
|
924
924
|
};
|
|
925
925
|
function la(e) {
|
|
926
926
|
const t = p(e);
|
|
927
|
-
return wr(t,
|
|
927
|
+
return wr(t, Or(t)) + 1;
|
|
928
928
|
}
|
|
929
929
|
function ma(e) {
|
|
930
930
|
const t = p(e), n = +we(t) - +Tr(t);
|
|
@@ -1006,7 +1006,7 @@ const k = {
|
|
|
1006
1006
|
);
|
|
1007
1007
|
return y(a, t.length);
|
|
1008
1008
|
}
|
|
1009
|
-
},
|
|
1009
|
+
}, C = {
|
|
1010
1010
|
midnight: "midnight",
|
|
1011
1011
|
noon: "noon",
|
|
1012
1012
|
morning: "morning",
|
|
@@ -1348,7 +1348,7 @@ const k = {
|
|
|
1348
1348
|
b: function(e, t, n) {
|
|
1349
1349
|
const r = e.getHours();
|
|
1350
1350
|
let a;
|
|
1351
|
-
switch (r === 12 ? a =
|
|
1351
|
+
switch (r === 12 ? a = C.noon : r === 0 ? a = C.midnight : a = r / 12 >= 1 ? "pm" : "am", t) {
|
|
1352
1352
|
case "b":
|
|
1353
1353
|
case "bb":
|
|
1354
1354
|
return n.dayPeriod(a, {
|
|
@@ -1377,7 +1377,7 @@ const k = {
|
|
|
1377
1377
|
B: function(e, t, n) {
|
|
1378
1378
|
const r = e.getHours();
|
|
1379
1379
|
let a;
|
|
1380
|
-
switch (r >= 17 ? a =
|
|
1380
|
+
switch (r >= 17 ? a = C.evening : r >= 12 ? a = C.afternoon : r >= 4 ? a = C.morning : a = C.night, t) {
|
|
1381
1381
|
case "B":
|
|
1382
1382
|
case "BB":
|
|
1383
1383
|
case "BBB":
|
|
@@ -1442,11 +1442,11 @@ const k = {
|
|
|
1442
1442
|
return yt(r);
|
|
1443
1443
|
case "XXXX":
|
|
1444
1444
|
case "XX":
|
|
1445
|
-
return
|
|
1445
|
+
return O(r);
|
|
1446
1446
|
case "XXXXX":
|
|
1447
1447
|
case "XXX":
|
|
1448
1448
|
default:
|
|
1449
|
-
return
|
|
1449
|
+
return O(r, ":");
|
|
1450
1450
|
}
|
|
1451
1451
|
},
|
|
1452
1452
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
@@ -1457,11 +1457,11 @@ const k = {
|
|
|
1457
1457
|
return yt(r);
|
|
1458
1458
|
case "xxxx":
|
|
1459
1459
|
case "xx":
|
|
1460
|
-
return
|
|
1460
|
+
return O(r);
|
|
1461
1461
|
case "xxxxx":
|
|
1462
1462
|
case "xxx":
|
|
1463
1463
|
default:
|
|
1464
|
-
return
|
|
1464
|
+
return O(r, ":");
|
|
1465
1465
|
}
|
|
1466
1466
|
},
|
|
1467
1467
|
// Timezone (GMT)
|
|
@@ -1474,7 +1474,7 @@ const k = {
|
|
|
1474
1474
|
return "GMT" + gt(r, ":");
|
|
1475
1475
|
case "OOOO":
|
|
1476
1476
|
default:
|
|
1477
|
-
return "GMT" +
|
|
1477
|
+
return "GMT" + O(r, ":");
|
|
1478
1478
|
}
|
|
1479
1479
|
},
|
|
1480
1480
|
// Timezone (specific non-location)
|
|
@@ -1487,7 +1487,7 @@ const k = {
|
|
|
1487
1487
|
return "GMT" + gt(r, ":");
|
|
1488
1488
|
case "zzzz":
|
|
1489
1489
|
default:
|
|
1490
|
-
return "GMT" +
|
|
1490
|
+
return "GMT" + O(r, ":");
|
|
1491
1491
|
}
|
|
1492
1492
|
},
|
|
1493
1493
|
// Seconds timestamp
|
|
@@ -1506,9 +1506,9 @@ function gt(e, t = "") {
|
|
|
1506
1506
|
return i === 0 ? n + String(a) : n + String(a) + t + y(i, 2);
|
|
1507
1507
|
}
|
|
1508
1508
|
function yt(e, t) {
|
|
1509
|
-
return e % 60 === 0 ? (e > 0 ? "-" : "+") + y(Math.abs(e) / 60, 2) :
|
|
1509
|
+
return e % 60 === 0 ? (e > 0 ? "-" : "+") + y(Math.abs(e) / 60, 2) : O(e, t);
|
|
1510
1510
|
}
|
|
1511
|
-
function
|
|
1511
|
+
function O(e, t = "") {
|
|
1512
1512
|
const n = e > 0 ? "-" : "+", r = Math.abs(e), a = y(Math.trunc(r / 60), 2), i = y(r % 60, 2);
|
|
1513
1513
|
return n + a + t + i;
|
|
1514
1514
|
}
|
|
@@ -1661,10 +1661,10 @@ function $a(e, t, n) {
|
|
|
1661
1661
|
function Ea(e, t) {
|
|
1662
1662
|
return $a(e, Dr(e), t);
|
|
1663
1663
|
}
|
|
1664
|
-
function
|
|
1664
|
+
function Oa() {
|
|
1665
1665
|
return Object.assign({}, j());
|
|
1666
1666
|
}
|
|
1667
|
-
function
|
|
1667
|
+
function Os(e, t) {
|
|
1668
1668
|
const r = Pa(e);
|
|
1669
1669
|
let a;
|
|
1670
1670
|
if (r.date) {
|
|
@@ -1699,7 +1699,7 @@ const se = {
|
|
|
1699
1699
|
dateTimeDelimiter: /[T ]/,
|
|
1700
1700
|
timeZoneDelimiter: /[Z ]/i,
|
|
1701
1701
|
timezone: /([Z+-].*)$/
|
|
1702
|
-
},
|
|
1702
|
+
}, Ia = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, Ca = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, Fa = /^([+-])(\d{2})(?::?(\d{2}))?$/;
|
|
1703
1703
|
function Pa(e) {
|
|
1704
1704
|
const t = {}, n = e.split(se.dateTimeDelimiter);
|
|
1705
1705
|
let r;
|
|
@@ -1727,7 +1727,7 @@ function Ya(e, t) {
|
|
|
1727
1727
|
}
|
|
1728
1728
|
function za(e, t) {
|
|
1729
1729
|
if (t === null) return /* @__PURE__ */ new Date(NaN);
|
|
1730
|
-
const n = e.match(
|
|
1730
|
+
const n = e.match(Ia);
|
|
1731
1731
|
if (!n) return /* @__PURE__ */ new Date(NaN);
|
|
1732
1732
|
const r = !!n[4], a = Z(n[1]), i = Z(n[2]) - 1, o = Z(n[3]), s = Z(n[4]), c = Z(n[5]) - 1;
|
|
1733
1733
|
if (r)
|
|
@@ -1741,7 +1741,7 @@ function Z(e) {
|
|
|
1741
1741
|
return e ? parseInt(e) : 1;
|
|
1742
1742
|
}
|
|
1743
1743
|
function Aa(e) {
|
|
1744
|
-
const t = e.match(
|
|
1744
|
+
const t = e.match(Ca);
|
|
1745
1745
|
if (!t) return NaN;
|
|
1746
1746
|
const n = Ee(t[1]), r = Ee(t[2]), a = Ee(t[3]);
|
|
1747
1747
|
return qa(n, r, a) ? n * rn + r * nn + a * 1e3 : NaN;
|
|
@@ -1751,7 +1751,7 @@ function Ee(e) {
|
|
|
1751
1751
|
}
|
|
1752
1752
|
function Ra(e) {
|
|
1753
1753
|
if (e === "Z") return 0;
|
|
1754
|
-
const t = e.match(
|
|
1754
|
+
const t = e.match(Fa);
|
|
1755
1755
|
if (!t) return 0;
|
|
1756
1756
|
const n = t[1] === "+" ? -1 : 1, r = parseInt(t[2]), a = t[3] && parseInt(t[3]) || 0;
|
|
1757
1757
|
return Za(r, a) ? n * (r * rn + a * nn) : NaN;
|
|
@@ -1782,7 +1782,7 @@ function Za(e, t) {
|
|
|
1782
1782
|
return t >= 0 && t <= 59;
|
|
1783
1783
|
}
|
|
1784
1784
|
function wt(e, t, n) {
|
|
1785
|
-
const r =
|
|
1785
|
+
const r = Oa(), a = Va(e, n.timeZone, n.locale ?? r.locale);
|
|
1786
1786
|
return "formatToParts" in a ? Xa(a, t) : Ba(a, t);
|
|
1787
1787
|
}
|
|
1788
1788
|
function Xa(e, t) {
|
|
@@ -1838,7 +1838,7 @@ function Ja(e, t) {
|
|
|
1838
1838
|
parseInt(r[6], 10)
|
|
1839
1839
|
];
|
|
1840
1840
|
}
|
|
1841
|
-
const
|
|
1841
|
+
const Oe = {}, Tt = new Intl.DateTimeFormat("en-US", {
|
|
1842
1842
|
hourCycle: "h23",
|
|
1843
1843
|
timeZone: "America/New_York",
|
|
1844
1844
|
year: "numeric",
|
|
@@ -1849,7 +1849,7 @@ const Ie = {}, Tt = new Intl.DateTimeFormat("en-US", {
|
|
|
1849
1849
|
second: "2-digit"
|
|
1850
1850
|
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), ei = Tt === "06/25/2014, 00:00:00" || Tt === "06/25/2014 00:00:00";
|
|
1851
1851
|
function ti(e) {
|
|
1852
|
-
return
|
|
1852
|
+
return Oe[e] || (Oe[e] = ei ? new Intl.DateTimeFormat("en-US", {
|
|
1853
1853
|
hourCycle: "h23",
|
|
1854
1854
|
timeZone: e,
|
|
1855
1855
|
year: "numeric",
|
|
@@ -1867,13 +1867,13 @@ function ti(e) {
|
|
|
1867
1867
|
hour: "2-digit",
|
|
1868
1868
|
minute: "2-digit",
|
|
1869
1869
|
second: "2-digit"
|
|
1870
|
-
})),
|
|
1870
|
+
})), Oe[e];
|
|
1871
1871
|
}
|
|
1872
1872
|
function Ge(e, t, n, r, a, i, o) {
|
|
1873
1873
|
const s = /* @__PURE__ */ new Date(0);
|
|
1874
1874
|
return s.setUTCFullYear(e, t, n), s.setUTCHours(r, a, i, o), s;
|
|
1875
1875
|
}
|
|
1876
|
-
const Dt = 36e5, ni = 6e4,
|
|
1876
|
+
const Dt = 36e5, ni = 6e4, Ie = {
|
|
1877
1877
|
timezoneZ: /^(Z)$/,
|
|
1878
1878
|
timezoneHH: /^([+-]\d{2})$/,
|
|
1879
1879
|
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
@@ -1881,13 +1881,13 @@ const Dt = 36e5, ni = 6e4, Oe = {
|
|
|
1881
1881
|
function ke(e, t, n) {
|
|
1882
1882
|
if (!e)
|
|
1883
1883
|
return 0;
|
|
1884
|
-
let r =
|
|
1884
|
+
let r = Ie.timezoneZ.exec(e);
|
|
1885
1885
|
if (r)
|
|
1886
1886
|
return 0;
|
|
1887
1887
|
let a, i;
|
|
1888
|
-
if (r =
|
|
1888
|
+
if (r = Ie.timezoneHH.exec(e), r)
|
|
1889
1889
|
return a = parseInt(r[1], 10), bt(a) ? -(a * Dt) : NaN;
|
|
1890
|
-
if (r =
|
|
1890
|
+
if (r = Ie.timezoneHHMM.exec(e), r) {
|
|
1891
1891
|
a = parseInt(r[2], 10);
|
|
1892
1892
|
const o = parseInt(r[3], 10);
|
|
1893
1893
|
return bt(a, o) ? (i = Math.abs(a) * Dt + o * ni, r[1] === "+" ? -i : i) : NaN;
|
|
@@ -1933,7 +1933,7 @@ function ii(e) {
|
|
|
1933
1933
|
const oi = 60 * 1e3, si = {
|
|
1934
1934
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
1935
1935
|
X: function(e, t, n) {
|
|
1936
|
-
const r =
|
|
1936
|
+
const r = Ce(n.timeZone, e);
|
|
1937
1937
|
if (r === 0)
|
|
1938
1938
|
return "Z";
|
|
1939
1939
|
switch (t) {
|
|
@@ -1941,31 +1941,31 @@ const oi = 60 * 1e3, si = {
|
|
|
1941
1941
|
return vt(r);
|
|
1942
1942
|
case "XXXX":
|
|
1943
1943
|
case "XX":
|
|
1944
|
-
return
|
|
1944
|
+
return F(r);
|
|
1945
1945
|
case "XXXXX":
|
|
1946
1946
|
case "XXX":
|
|
1947
1947
|
default:
|
|
1948
|
-
return
|
|
1948
|
+
return F(r, ":");
|
|
1949
1949
|
}
|
|
1950
1950
|
},
|
|
1951
1951
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
1952
1952
|
x: function(e, t, n) {
|
|
1953
|
-
const r =
|
|
1953
|
+
const r = Ce(n.timeZone, e);
|
|
1954
1954
|
switch (t) {
|
|
1955
1955
|
case "x":
|
|
1956
1956
|
return vt(r);
|
|
1957
1957
|
case "xxxx":
|
|
1958
1958
|
case "xx":
|
|
1959
|
-
return
|
|
1959
|
+
return F(r);
|
|
1960
1960
|
case "xxxxx":
|
|
1961
1961
|
case "xxx":
|
|
1962
1962
|
default:
|
|
1963
|
-
return
|
|
1963
|
+
return F(r, ":");
|
|
1964
1964
|
}
|
|
1965
1965
|
},
|
|
1966
1966
|
// Timezone (GMT)
|
|
1967
1967
|
O: function(e, t, n) {
|
|
1968
|
-
const r =
|
|
1968
|
+
const r = Ce(n.timeZone, e);
|
|
1969
1969
|
switch (t) {
|
|
1970
1970
|
case "O":
|
|
1971
1971
|
case "OO":
|
|
@@ -1973,7 +1973,7 @@ const oi = 60 * 1e3, si = {
|
|
|
1973
1973
|
return "GMT" + ci(r, ":");
|
|
1974
1974
|
case "OOOO":
|
|
1975
1975
|
default:
|
|
1976
|
-
return "GMT" +
|
|
1976
|
+
return "GMT" + F(r, ":");
|
|
1977
1977
|
}
|
|
1978
1978
|
},
|
|
1979
1979
|
// Timezone (specific non-location)
|
|
@@ -1989,7 +1989,7 @@ const oi = 60 * 1e3, si = {
|
|
|
1989
1989
|
}
|
|
1990
1990
|
}
|
|
1991
1991
|
};
|
|
1992
|
-
function
|
|
1992
|
+
function Ce(e, t) {
|
|
1993
1993
|
const n = e ? ke(e, t, !0) / oi : (t == null ? void 0 : t.getTimezoneOffset()) ?? 0;
|
|
1994
1994
|
if (Number.isNaN(n))
|
|
1995
1995
|
throw new RangeError("Invalid time zone specified: " + e);
|
|
@@ -2002,12 +2002,12 @@ function De(e, t) {
|
|
|
2002
2002
|
r = "0" + r;
|
|
2003
2003
|
return n + r;
|
|
2004
2004
|
}
|
|
2005
|
-
function
|
|
2005
|
+
function F(e, t = "") {
|
|
2006
2006
|
const n = e > 0 ? "-" : "+", r = Math.abs(e), a = De(Math.floor(r / 60), 2), i = De(Math.floor(r % 60), 2);
|
|
2007
2007
|
return n + a + t + i;
|
|
2008
2008
|
}
|
|
2009
2009
|
function vt(e, t) {
|
|
2010
|
-
return e % 60 === 0 ? (e > 0 ? "-" : "+") + De(Math.abs(e) / 60, 2) :
|
|
2010
|
+
return e % 60 === 0 ? (e > 0 ? "-" : "+") + De(Math.abs(e) / 60, 2) : F(e, t);
|
|
2011
2011
|
}
|
|
2012
2012
|
function ci(e, t = "") {
|
|
2013
2013
|
const n = e > 0 ? "-" : "+", r = Math.abs(e), a = Math.floor(r / 60), i = r % 60;
|
|
@@ -2017,7 +2017,7 @@ function St(e) {
|
|
|
2017
2017
|
const t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
|
|
2018
2018
|
return t.setUTCFullYear(e.getFullYear()), +e - +t;
|
|
2019
2019
|
}
|
|
2020
|
-
const ln = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,
|
|
2020
|
+
const ln = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, Fe = 36e5, Mt = 6e4, ui = 2, b = {
|
|
2021
2021
|
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
2022
2022
|
datePattern: /^([0-9W+-]+)(.*)/,
|
|
2023
2023
|
// year tokens
|
|
@@ -2145,13 +2145,13 @@ function fi(e, t) {
|
|
|
2145
2145
|
function di(e) {
|
|
2146
2146
|
let t, n, r = b.HH.exec(e);
|
|
2147
2147
|
if (r)
|
|
2148
|
-
return t = parseFloat(r[1].replace(",", ".")), Pe(t) ? t % 24 *
|
|
2148
|
+
return t = parseFloat(r[1].replace(",", ".")), Pe(t) ? t % 24 * Fe : NaN;
|
|
2149
2149
|
if (r = b.HHMM.exec(e), r)
|
|
2150
|
-
return t = parseInt(r[1], 10), n = parseFloat(r[2].replace(",", ".")), Pe(t, n) ? t % 24 *
|
|
2150
|
+
return t = parseInt(r[1], 10), n = parseFloat(r[2].replace(",", ".")), Pe(t, n) ? t % 24 * Fe + n * Mt : NaN;
|
|
2151
2151
|
if (r = b.HHMMSS.exec(e), r) {
|
|
2152
2152
|
t = parseInt(r[1], 10), n = parseInt(r[2], 10);
|
|
2153
2153
|
const a = parseFloat(r[3].replace(",", "."));
|
|
2154
|
-
return Pe(t, n, a) ? t % 24 *
|
|
2154
|
+
return Pe(t, n, a) ? t % 24 * Fe + n * Mt + a * 1e3 : NaN;
|
|
2155
2155
|
}
|
|
2156
2156
|
return null;
|
|
2157
2157
|
}
|
|
@@ -2224,10 +2224,10 @@ function te(e, t, n) {
|
|
|
2224
2224
|
const r = Ge(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), a = ke(t, new Date(r));
|
|
2225
2225
|
return new Date(r + a);
|
|
2226
2226
|
}
|
|
2227
|
-
function
|
|
2227
|
+
function Is(e, t) {
|
|
2228
2228
|
return e && e !== "auto" ? e : t;
|
|
2229
2229
|
}
|
|
2230
|
-
function
|
|
2230
|
+
function Cs(e, t = /* @__PURE__ */ new Date()) {
|
|
2231
2231
|
try {
|
|
2232
2232
|
const n = {
|
|
2233
2233
|
timeZone: e,
|
|
@@ -2238,7 +2238,7 @@ function Fs(e, t = /* @__PURE__ */ new Date()) {
|
|
|
2238
2238
|
return e;
|
|
2239
2239
|
}
|
|
2240
2240
|
}
|
|
2241
|
-
function
|
|
2241
|
+
function Fs(e) {
|
|
2242
2242
|
try {
|
|
2243
2243
|
const t = {
|
|
2244
2244
|
timeZone: e,
|
|
@@ -2411,7 +2411,7 @@ function qs(e, t) {
|
|
|
2411
2411
|
}
|
|
2412
2412
|
return n;
|
|
2413
2413
|
}
|
|
2414
|
-
const
|
|
2414
|
+
const Oi = w.object({
|
|
2415
2415
|
acquisition: w.literal("continuation"),
|
|
2416
2416
|
deadlineAt: xe,
|
|
2417
2417
|
chunks: w.array(w.object({ chunkNumber: ve, dataKey: w.string() })).min(1),
|
|
@@ -2425,14 +2425,14 @@ const Ii = w.object({
|
|
|
2425
2425
|
sheetKey: w.string().min(1).optional()
|
|
2426
2426
|
}).refine((e) => e.fileKey === void 0 == (e.fileSize === void 0), "Incomplete published Matrix artifact.").refine((e) => e.format === "xlsx" == (e.sheetKey !== void 0), "An Excel Matrix manifest names its sheet layout, and only it does.");
|
|
2427
2427
|
function Zs(e, t, n) {
|
|
2428
|
-
const r =
|
|
2428
|
+
const r = Oi.parse(e);
|
|
2429
2429
|
if (r.deadlineAt !== n) throw new Error("Matrix deadline does not match the job.");
|
|
2430
2430
|
return r.chunks.forEach((a, i) => {
|
|
2431
2431
|
if (a.chunkNumber !== i + 1) throw new Error("Invalid committed Matrix chunk order.");
|
|
2432
2432
|
P(t, a.dataKey);
|
|
2433
2433
|
}), r.fileKey !== void 0 && P(t, r.fileKey), r.sheetKey !== void 0 && P(t, r.sheetKey), r;
|
|
2434
2434
|
}
|
|
2435
|
-
const
|
|
2435
|
+
const Ii = "en-US";
|
|
2436
2436
|
function $t(e) {
|
|
2437
2437
|
if (typeof e != "string")
|
|
2438
2438
|
return;
|
|
@@ -2444,10 +2444,10 @@ function fe(e) {
|
|
|
2444
2444
|
if (!(typeof e != "number" || !Number.isFinite(e)))
|
|
2445
2445
|
return Math.max(0, Math.min(10, Math.trunc(e)));
|
|
2446
2446
|
}
|
|
2447
|
-
function
|
|
2447
|
+
function Ci(e) {
|
|
2448
2448
|
return e === "currency" ? 2 : e === "percent" ? 1 : e === "scientific" ? 2 : 0;
|
|
2449
2449
|
}
|
|
2450
|
-
function
|
|
2450
|
+
function Fi(e, t, n) {
|
|
2451
2451
|
const r = fe(t.minimumFractionDigits), a = fe(t.maximumFractionDigits);
|
|
2452
2452
|
if (typeof r == "number" || typeof a == "number") {
|
|
2453
2453
|
const s = r ?? 0, c = a ?? Math.max(s, 2);
|
|
@@ -2464,7 +2464,7 @@ function Ci(e, t, n) {
|
|
|
2464
2464
|
};
|
|
2465
2465
|
if (n != null && n.preserveOmittedProperties)
|
|
2466
2466
|
return {};
|
|
2467
|
-
const o =
|
|
2467
|
+
const o = Ci(e);
|
|
2468
2468
|
return {
|
|
2469
2469
|
minimumFractionDigits: o,
|
|
2470
2470
|
maximumFractionDigits: o
|
|
@@ -2487,7 +2487,7 @@ function E(e, t, n) {
|
|
|
2487
2487
|
const r = { ...t, type: e };
|
|
2488
2488
|
if ((n == null ? void 0 : n.numericInput) === "canonical" && J(r))
|
|
2489
2489
|
return Et(r);
|
|
2490
|
-
const a =
|
|
2490
|
+
const a = Fi(e, t, n), i = typeof t.prefix == "string" ? t.prefix : void 0, o = {
|
|
2491
2491
|
type: e,
|
|
2492
2492
|
locale: t.locale,
|
|
2493
2493
|
minimumFractionDigits: a.minimumFractionDigits,
|
|
@@ -2502,10 +2502,10 @@ function E(e, t, n) {
|
|
|
2502
2502
|
};
|
|
2503
2503
|
return e === "currency" && t.currency && (o.currency = t.currency), e === "percent" && (o.percentValueMode = t.percentValueMode || "fraction"), Et(o);
|
|
2504
2504
|
}
|
|
2505
|
-
function
|
|
2505
|
+
function Ot(e) {
|
|
2506
2506
|
return {
|
|
2507
2507
|
type: "date",
|
|
2508
|
-
locale: e.locale ||
|
|
2508
|
+
locale: e.locale || Ii,
|
|
2509
2509
|
pattern: e.pattern,
|
|
2510
2510
|
// A stored pattern's token set and a preset carry to every reader (column formats ledger P5-45).
|
|
2511
2511
|
...e.dialect ? { dialect: e.dialect } : {},
|
|
@@ -2520,7 +2520,7 @@ function It(e) {
|
|
|
2520
2520
|
function Ye(e) {
|
|
2521
2521
|
return e === "millisecond" || e === "second" || e === "minute" || e === "hour" || e === "day";
|
|
2522
2522
|
}
|
|
2523
|
-
function
|
|
2523
|
+
function It(e) {
|
|
2524
2524
|
const t = fe(e.maxUnits);
|
|
2525
2525
|
return {
|
|
2526
2526
|
type: "duration",
|
|
@@ -2534,7 +2534,7 @@ function Ot(e) {
|
|
|
2534
2534
|
negativeStyle: e.negativeStyle || "minus"
|
|
2535
2535
|
};
|
|
2536
2536
|
}
|
|
2537
|
-
function
|
|
2537
|
+
function Ct(e) {
|
|
2538
2538
|
return {
|
|
2539
2539
|
type: "string",
|
|
2540
2540
|
prefix: e.prefix,
|
|
@@ -2561,7 +2561,7 @@ function Yi(e, t) {
|
|
|
2561
2561
|
"scientific",
|
|
2562
2562
|
{ type: "scientific" },
|
|
2563
2563
|
t
|
|
2564
|
-
) : r === "date" ?
|
|
2564
|
+
) : r === "date" ? Ot({}) : r === "duration" ? It({}) : r === "string" ? Ct({}) : r === "number" ? E(
|
|
2565
2565
|
"number",
|
|
2566
2566
|
{ type: "number" },
|
|
2567
2567
|
t
|
|
@@ -2589,11 +2589,11 @@ function Yi(e, t) {
|
|
|
2589
2589
|
if (n.type === "number" || n.type === "currency" || n.type === "percent" || n.type === "scientific")
|
|
2590
2590
|
return E(n.type, n, t);
|
|
2591
2591
|
if (n.type === "date")
|
|
2592
|
-
return It(n);
|
|
2593
|
-
if (n.type === "duration")
|
|
2594
2592
|
return Ot(n);
|
|
2593
|
+
if (n.type === "duration")
|
|
2594
|
+
return It(n);
|
|
2595
2595
|
if (n.type === "string")
|
|
2596
|
-
return
|
|
2596
|
+
return Ct(n);
|
|
2597
2597
|
}
|
|
2598
2598
|
const zi = Object.freeze({ source: "automatic" });
|
|
2599
2599
|
function Ai(e, t) {
|
|
@@ -2609,7 +2609,7 @@ function Ai(e, t) {
|
|
|
2609
2609
|
return;
|
|
2610
2610
|
}
|
|
2611
2611
|
}
|
|
2612
|
-
function
|
|
2612
|
+
function Ft(e, t) {
|
|
2613
2613
|
const n = e.config;
|
|
2614
2614
|
if (n)
|
|
2615
2615
|
return [
|
|
@@ -2620,8 +2620,8 @@ function Ct(e, t) {
|
|
|
2620
2620
|
].find((r) => r.id === t);
|
|
2621
2621
|
}
|
|
2622
2622
|
function Ri(e, t) {
|
|
2623
|
-
if (t.kind === "field") return
|
|
2624
|
-
if (t.kind === "pivot") return
|
|
2623
|
+
if (t.kind === "field") return Ft(e, t.fieldId);
|
|
2624
|
+
if (t.kind === "pivot") return Ft(e, t.metricId);
|
|
2625
2625
|
}
|
|
2626
2626
|
function Ui(e, t, n) {
|
|
2627
2627
|
var r, a, i, o, s, c, u, l, f;
|
|
@@ -3908,7 +3908,7 @@ function K(e, t, n) {
|
|
|
3908
3908
|
timeZone: "UTC"
|
|
3909
3909
|
}).format(r);
|
|
3910
3910
|
}
|
|
3911
|
-
function
|
|
3911
|
+
function Oo(e, t, n) {
|
|
3912
3912
|
return t.map((r) => {
|
|
3913
3913
|
if (r.kind === "literal") return r.value;
|
|
3914
3914
|
switch (r.value) {
|
|
@@ -3951,7 +3951,7 @@ function Ut(e, t, n) {
|
|
|
3951
3951
|
timeZone: "UTC"
|
|
3952
3952
|
}).format(G(e));
|
|
3953
3953
|
}
|
|
3954
|
-
function
|
|
3954
|
+
function Io(e, t, n) {
|
|
3955
3955
|
return Y(t, {
|
|
3956
3956
|
calendar: "gregory",
|
|
3957
3957
|
dateStyle: n.dateStyle,
|
|
@@ -3961,7 +3961,7 @@ function Oo(e, t, n) {
|
|
|
3961
3961
|
timeZone: "UTC"
|
|
3962
3962
|
}).format(G(e));
|
|
3963
3963
|
}
|
|
3964
|
-
function
|
|
3964
|
+
function Co(e, t, n) {
|
|
3965
3965
|
var a;
|
|
3966
3966
|
if (n === "short") {
|
|
3967
3967
|
const i = G(e), o = Y(t, {
|
|
@@ -4007,7 +4007,7 @@ function Re(e, t, n) {
|
|
|
4007
4007
|
timeZone: "UTC"
|
|
4008
4008
|
}).format(G(e));
|
|
4009
4009
|
}
|
|
4010
|
-
function
|
|
4010
|
+
function Fo(e, t, n, r) {
|
|
4011
4011
|
const a = Nn(e, 1);
|
|
4012
4012
|
switch (r) {
|
|
4013
4013
|
case "week":
|
|
@@ -4024,7 +4024,7 @@ function Co(e, t, n, r) {
|
|
|
4024
4024
|
}
|
|
4025
4025
|
function Ze(e, t, n, r) {
|
|
4026
4026
|
if (En(t))
|
|
4027
|
-
return
|
|
4027
|
+
return Fo(e, t, n, r.granularity);
|
|
4028
4028
|
const a = _e(r) ?? 1, i = Nn(e, a);
|
|
4029
4029
|
switch (t) {
|
|
4030
4030
|
case "week_of_short":
|
|
@@ -4047,13 +4047,13 @@ function Po(e, t, n, r) {
|
|
|
4047
4047
|
case "second":
|
|
4048
4048
|
case "minute":
|
|
4049
4049
|
case "hour":
|
|
4050
|
-
return
|
|
4050
|
+
return Io(e, n, r.dateTime);
|
|
4051
4051
|
case "day":
|
|
4052
4052
|
return Ut(e, n, r.dateStyle);
|
|
4053
4053
|
case "week":
|
|
4054
4054
|
return `Week of ${Ut(e, n, r.dateStyle)}`;
|
|
4055
4055
|
case "month":
|
|
4056
|
-
return
|
|
4056
|
+
return Co(e, n, r.dateStyle);
|
|
4057
4057
|
case "quarter":
|
|
4058
4058
|
return Ze(
|
|
4059
4059
|
e,
|
|
@@ -4073,7 +4073,7 @@ function rc(e, t) {
|
|
|
4073
4073
|
const { year: r, month: a, day: i, hour: o, minute: s, second: c } = n.value;
|
|
4074
4074
|
return { year: r, month: a, day: i, hour: o, minute: s, second: c };
|
|
4075
4075
|
}
|
|
4076
|
-
function
|
|
4076
|
+
function On(e) {
|
|
4077
4077
|
const t = Mn(e.format);
|
|
4078
4078
|
if (!t.ok || !kn(t.value, e.metadata))
|
|
4079
4079
|
throw new de(
|
|
@@ -4108,7 +4108,7 @@ function In(e) {
|
|
|
4108
4108
|
"invalid_temporal_bucket_format",
|
|
4109
4109
|
i.message
|
|
4110
4110
|
);
|
|
4111
|
-
return
|
|
4111
|
+
return Oo(n.value, i.segments, a);
|
|
4112
4112
|
}
|
|
4113
4113
|
function Yo(e, t) {
|
|
4114
4114
|
var a;
|
|
@@ -4171,7 +4171,7 @@ function sc(e, t, n) {
|
|
|
4171
4171
|
locale: n.valueFormat.locale,
|
|
4172
4172
|
styles: { dateStyle: n.valueFormat.dateStyle, dateTime: n.valueFormat.dateTime }
|
|
4173
4173
|
});
|
|
4174
|
-
return (d) => typeof d == "string" ?
|
|
4174
|
+
return (d) => typeof d == "string" ? On({ value: d, metadata: m, format: h.format }) : f(d);
|
|
4175
4175
|
}
|
|
4176
4176
|
if (o.column.rawTemporal) {
|
|
4177
4177
|
const m = Je({ override: c, model: u }).format, { formatValue: h } = bo({
|
|
@@ -4305,7 +4305,7 @@ class fc extends Error {
|
|
|
4305
4305
|
this.name = "MissingResolvedRawTemporalFormatError";
|
|
4306
4306
|
}
|
|
4307
4307
|
}
|
|
4308
|
-
function
|
|
4308
|
+
function I(e, t, n) {
|
|
4309
4309
|
const r = new Set(t), a = Object.keys(e).find((i) => !r.has(i));
|
|
4310
4310
|
if (a)
|
|
4311
4311
|
throw new Error(`${n} contains unknown property "${a}"`);
|
|
@@ -4313,7 +4313,7 @@ function O(e, t, n) {
|
|
|
4313
4313
|
function Wo(e, t = "scope") {
|
|
4314
4314
|
if (!T(e))
|
|
4315
4315
|
throw new Error(`${t} must be an object`);
|
|
4316
|
-
|
|
4316
|
+
I(
|
|
4317
4317
|
e,
|
|
4318
4318
|
["dashboardId", "cardId", "attachmentIndex"],
|
|
4319
4319
|
t
|
|
@@ -4337,7 +4337,7 @@ function Wo(e, t = "scope") {
|
|
|
4337
4337
|
}
|
|
4338
4338
|
function z(e, t, n, r) {
|
|
4339
4339
|
if (e.kind !== t) return;
|
|
4340
|
-
|
|
4340
|
+
I(e, ["kind", n], r);
|
|
4341
4341
|
const a = e[n];
|
|
4342
4342
|
if (typeof a != "string" || !a.trim())
|
|
4343
4343
|
throw new Error(`${r}.${n} is required`);
|
|
@@ -4375,7 +4375,7 @@ function Ho(e) {
|
|
|
4375
4375
|
}
|
|
4376
4376
|
const qo = ["type", "locale", "pattern", "timezone", "sourceTimezone"];
|
|
4377
4377
|
function Zo(e, t) {
|
|
4378
|
-
if (
|
|
4378
|
+
if (I(e, qo, t), typeof e.locale != "string" || !e.locale.trim())
|
|
4379
4379
|
throw new Error(`${t}.locale must be a non-empty string`);
|
|
4380
4380
|
for (const n of ["pattern", "timezone", "sourceTimezone"])
|
|
4381
4381
|
if (e[n] !== void 0 && typeof e[n] != "string")
|
|
@@ -4389,7 +4389,7 @@ function Zo(e, t) {
|
|
|
4389
4389
|
};
|
|
4390
4390
|
}
|
|
4391
4391
|
function Xo(e, t) {
|
|
4392
|
-
|
|
4392
|
+
I(e, jo, t);
|
|
4393
4393
|
for (const i of ["inputUnit", "largestUnit", "smallestUnit"])
|
|
4394
4394
|
if (e[i] !== void 0 && !Ho(e[i]))
|
|
4395
4395
|
throw new Error(`${t}.${i} must be a duration unit`);
|
|
@@ -4421,7 +4421,7 @@ function Bo(e, t) {
|
|
|
4421
4421
|
if (!T(e))
|
|
4422
4422
|
throw new Error(`${t} must be an object`);
|
|
4423
4423
|
if (e.kind === "field") {
|
|
4424
|
-
|
|
4424
|
+
I(e, ["kind", "fieldId", "role"], t);
|
|
4425
4425
|
const a = typeof e.fieldId == "string" ? e.fieldId.trim() : "";
|
|
4426
4426
|
if (!a)
|
|
4427
4427
|
throw new Error(`${t}.fieldId is required`);
|
|
@@ -4490,7 +4490,7 @@ function Go(e) {
|
|
|
4490
4490
|
const a = `resolvedFormats.${r}`;
|
|
4491
4491
|
if (!T(n))
|
|
4492
4492
|
throw new Error(`${a} must be an object`);
|
|
4493
|
-
|
|
4493
|
+
I(n, ["scope", "target", "format"], a);
|
|
4494
4494
|
const i = Wo(n.scope, `${a}.scope`);
|
|
4495
4495
|
if (!T(n.format))
|
|
4496
4496
|
throw new Error(`${a}.format must be an object`);
|
|
@@ -4571,7 +4571,7 @@ function Qo(e) {
|
|
|
4571
4571
|
try {
|
|
4572
4572
|
if (!T(e))
|
|
4573
4573
|
throw new Error("presentation execution snapshot must be an object");
|
|
4574
|
-
if (
|
|
4574
|
+
if (I(
|
|
4575
4575
|
e,
|
|
4576
4576
|
["version", "reportContext", "resolvedFormats"],
|
|
4577
4577
|
"presentation execution snapshot"
|
|
@@ -4737,16 +4737,16 @@ function Dc(e) {
|
|
|
4737
4737
|
function os(e, t, n, r) {
|
|
4738
4738
|
const [a, i = a] = e;
|
|
4739
4739
|
if ((t == null ? void 0 : t.mode) === "pattern")
|
|
4740
|
-
return
|
|
4740
|
+
return Fn(
|
|
4741
4741
|
e.map(
|
|
4742
|
-
(c) =>
|
|
4742
|
+
(c) => Cn(Xe(c), "date", t.pattern, n, r)
|
|
4743
4743
|
)
|
|
4744
4744
|
);
|
|
4745
4745
|
const o = (t == null ? void 0 : t.mode) === "style" ? t.dateStyle : n.dateStyle;
|
|
4746
4746
|
if (!t || t.mode === "period_label") {
|
|
4747
4747
|
const c = fs(a, i, r);
|
|
4748
4748
|
if (c)
|
|
4749
|
-
return
|
|
4749
|
+
return On({
|
|
4750
4750
|
value: Xe(a),
|
|
4751
4751
|
metadata: {
|
|
4752
4752
|
kind: "temporal_bucket",
|
|
@@ -4769,13 +4769,13 @@ function os(e, t, n, r) {
|
|
|
4769
4769
|
timeZone: "UTC",
|
|
4770
4770
|
dateStyle: o
|
|
4771
4771
|
});
|
|
4772
|
-
return hs(a, i) ? s.format(he(a)) :
|
|
4772
|
+
return hs(a, i) ? s.format(he(a)) : In(s, he(a), he(i));
|
|
4773
4773
|
}
|
|
4774
4774
|
function ss(e, t, n, r) {
|
|
4775
4775
|
if ((t == null ? void 0 : t.mode) === "pattern")
|
|
4776
|
-
return
|
|
4776
|
+
return Fn(
|
|
4777
4777
|
e.map(
|
|
4778
|
-
(s) =>
|
|
4778
|
+
(s) => Cn(
|
|
4779
4779
|
s.toISOString(),
|
|
4780
4780
|
"instant",
|
|
4781
4781
|
t.pattern,
|
|
@@ -4790,13 +4790,13 @@ function ss(e, t, n, r) {
|
|
|
4790
4790
|
dateStyle: (t == null ? void 0 : t.mode) === "style" ? t.dateStyle : n.dateTime.dateStyle,
|
|
4791
4791
|
timeStyle: n.dateTime.timeStyle
|
|
4792
4792
|
}), [i, o] = e;
|
|
4793
|
-
return o && o.getTime() !== i.getTime() ?
|
|
4793
|
+
return o && o.getTime() !== i.getTime() ? In(a, i, o) : a.format(i);
|
|
4794
4794
|
}
|
|
4795
|
-
function
|
|
4795
|
+
function In(e, t, n) {
|
|
4796
4796
|
const r = e;
|
|
4797
4797
|
return typeof r.formatRange == "function" ? r.formatRange(t, n) : `${e.format(t)}${nt}${e.format(n)}`;
|
|
4798
4798
|
}
|
|
4799
|
-
function
|
|
4799
|
+
function Cn(e, t, n, r, a) {
|
|
4800
4800
|
const i = Tn({
|
|
4801
4801
|
format: {
|
|
4802
4802
|
type: "raw_temporal",
|
|
@@ -4818,7 +4818,7 @@ function Fn(e, t, n, r, a) {
|
|
|
4818
4818
|
function cs(e) {
|
|
4819
4819
|
return /HH|mm|ss/.test(e);
|
|
4820
4820
|
}
|
|
4821
|
-
function
|
|
4821
|
+
function Fn(e) {
|
|
4822
4822
|
return e[1] === void 0 || e[0] === e[1] ? e[0] : e.join(nt);
|
|
4823
4823
|
}
|
|
4824
4824
|
function us(e, t) {
|
|
@@ -4898,7 +4898,7 @@ export {
|
|
|
4898
4898
|
$i as O,
|
|
4899
4899
|
Ei as P,
|
|
4900
4900
|
qs as Q,
|
|
4901
|
-
|
|
4901
|
+
Oi as R,
|
|
4902
4902
|
Zs as S,
|
|
4903
4903
|
sc as T,
|
|
4904
4904
|
Xi as U,
|
|
@@ -4932,7 +4932,7 @@ export {
|
|
|
4932
4932
|
ic as aJ,
|
|
4933
4933
|
cc as aK,
|
|
4934
4934
|
fn as aL,
|
|
4935
|
-
|
|
4935
|
+
Os as aM,
|
|
4936
4936
|
uc as aN,
|
|
4937
4937
|
lc as aO,
|
|
4938
4938
|
Uo as aP,
|
|
@@ -4976,12 +4976,12 @@ export {
|
|
|
4976
4976
|
Ns as b,
|
|
4977
4977
|
Dr as b0,
|
|
4978
4978
|
$a as b1,
|
|
4979
|
-
|
|
4979
|
+
Ii as b2,
|
|
4980
4980
|
hr as b3,
|
|
4981
4981
|
Ro as b4,
|
|
4982
|
-
|
|
4982
|
+
It as b5,
|
|
4983
4983
|
E as b6,
|
|
4984
|
-
|
|
4984
|
+
Ot as b7,
|
|
4985
4985
|
$t as b8,
|
|
4986
4986
|
Ao as b9,
|
|
4987
4987
|
zo as ba,
|
|
@@ -4989,7 +4989,7 @@ export {
|
|
|
4989
4989
|
Yi as c,
|
|
4990
4990
|
ks as d,
|
|
4991
4991
|
Be as e,
|
|
4992
|
-
|
|
4992
|
+
On as f,
|
|
4993
4993
|
Qt as g,
|
|
4994
4994
|
Jt as h,
|
|
4995
4995
|
J as i,
|
|
@@ -5004,10 +5004,10 @@ export {
|
|
|
5004
5004
|
Wi as r,
|
|
5005
5005
|
xi as s,
|
|
5006
5006
|
Ps as t,
|
|
5007
|
-
|
|
5008
|
-
|
|
5007
|
+
Is as u,
|
|
5008
|
+
Cs as v,
|
|
5009
5009
|
Xs as w,
|
|
5010
|
-
|
|
5010
|
+
Fs as x,
|
|
5011
5011
|
Qe as y,
|
|
5012
5012
|
dn as z
|
|
5013
5013
|
};
|