@kong-ui-public/analytics-utilities 11.1.1-pr.2402.a80357eea.0 → 11.1.1-pr.2453.55b43e75c.0
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/types/constants.d.ts +2 -0
- package/dist/types/constants.d.ts.map +1 -1
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/index.d.ts.map +1 -1
- package/dist/types/types/request-export.d.ts +11 -0
- package/dist/types/types/request-export.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/types/utils/requestExport.d.ts +17 -0
- package/dist/types/utils/requestExport.d.ts.map +1 -0
- package/dist/vitals-utilities.cjs +1 -1
- package/dist/vitals-utilities.cjs.map +1 -1
- package/dist/vitals-utilities.es.js +422 -388
- package/dist/vitals-utilities.es.js.map +1 -1
- package/dist/vitals-utilities.umd.js +1 -1
- package/dist/vitals-utilities.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
var jn = Object.defineProperty;
|
|
2
2
|
var zn = (e, t, r) => t in e ? jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var b = (e, t, r) => zn(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
|
|
4
|
+
import { inject as Vn, ref as Bn, onUnmounted as Xn } from "vue";
|
|
5
|
+
const xs = 30 * 1e3, $n = 250, Zn = "analytics-query-provider";
|
|
5
6
|
var m = /* @__PURE__ */ ((e) => (e.FIFTEEN_MIN = "15m", e.ONE_HOUR = "1h", e.SIX_HOUR = "6h", e.TWELVE_HOUR = "12h", e.ONE_DAY = "24h", e.SEVEN_DAY = "7d", e.THIRTY_DAY = "30d", e.CURRENT_WEEK = "current_week", e.CURRENT_MONTH = "current_month", e.CURRENT_QUARTER = "current_quarter", e.PREVIOUS_WEEK = "previous_week", e.PREVIOUS_MONTH = "previous_month", e.PREVIOUS_QUARTER = "previous_quarter", e))(m || {});
|
|
6
|
-
const
|
|
7
|
+
const Ns = [
|
|
7
8
|
"horizontal_bar",
|
|
8
9
|
"vertical_bar",
|
|
9
10
|
"timeseries_line",
|
|
@@ -11,7 +12,7 @@ const Ms = [
|
|
|
11
12
|
"timeseries_bar",
|
|
12
13
|
"donut",
|
|
13
14
|
"single_value"
|
|
14
|
-
],
|
|
15
|
+
], Qn = ["in", "not_in", "selector"], Ps = ["=", "!="], Is = ["=", "!=", "<", ">", "<=", ">="], Kn = ["empty", "not_empty"], Cs = ["starts_with", "ends_with"], Rs = ["absolute", "relative"], Jn = [
|
|
15
16
|
"15m",
|
|
16
17
|
"1h",
|
|
17
18
|
"6h",
|
|
@@ -66,7 +67,7 @@ const Ms = [
|
|
|
66
67
|
"response_source",
|
|
67
68
|
"data_plane_node_version",
|
|
68
69
|
"realm"
|
|
69
|
-
], Oe = ie(rr),
|
|
70
|
+
], Oe = ie(rr), ea = [
|
|
70
71
|
...tr,
|
|
71
72
|
"response_latency_p99",
|
|
72
73
|
"response_latency_p95",
|
|
@@ -107,7 +108,7 @@ const Ms = [
|
|
|
107
108
|
"status_code",
|
|
108
109
|
"status_code_grouped",
|
|
109
110
|
"ai_plugin"
|
|
110
|
-
], Se = ie(nr),
|
|
111
|
+
], Se = ie(nr), ta = [
|
|
111
112
|
"total_tokens",
|
|
112
113
|
"prompt_tokens",
|
|
113
114
|
"completion_tokens",
|
|
@@ -118,7 +119,7 @@ const Ms = [
|
|
|
118
119
|
"llm_latency_average",
|
|
119
120
|
"llm_embeddings_tokens",
|
|
120
121
|
"llm_embeddings_cost"
|
|
121
|
-
],
|
|
122
|
+
], ra = [
|
|
122
123
|
"api",
|
|
123
124
|
"api_product",
|
|
124
125
|
"api_product_version",
|
|
@@ -153,7 +154,7 @@ const Ms = [
|
|
|
153
154
|
"upstream_uri",
|
|
154
155
|
"upstream_status_code_grouped",
|
|
155
156
|
"websocket"
|
|
156
|
-
],
|
|
157
|
+
], na = ie(ra), aa = [
|
|
157
158
|
"auth_type",
|
|
158
159
|
"client_ip",
|
|
159
160
|
"country_code",
|
|
@@ -169,7 +170,7 @@ const Ms = [
|
|
|
169
170
|
"service_protocol",
|
|
170
171
|
"trace_id",
|
|
171
172
|
"upstream_uri"
|
|
172
|
-
],
|
|
173
|
+
], ks = aa, ia = [
|
|
173
174
|
"ai_count",
|
|
174
175
|
"latencies_response_ms",
|
|
175
176
|
"latencies_upstream_ms",
|
|
@@ -179,18 +180,18 @@ const Ms = [
|
|
|
179
180
|
"response_header_content_length",
|
|
180
181
|
"status_code",
|
|
181
182
|
"upstream_status_code"
|
|
182
|
-
],
|
|
183
|
+
], sa = ie(ia), Ys = [
|
|
183
184
|
"15M",
|
|
184
185
|
"1H",
|
|
185
186
|
"6H",
|
|
186
187
|
"12H",
|
|
187
188
|
"24H",
|
|
188
189
|
"7D"
|
|
189
|
-
],
|
|
190
|
+
], Gs = ["basic", "api_usage", "llm_usage"], oa = {
|
|
190
191
|
basic: new Set(Me),
|
|
191
192
|
api_usage: new Set(Oe),
|
|
192
193
|
llm_usage: new Set(Se)
|
|
193
|
-
},
|
|
194
|
+
}, As = (e, t) => t.filter((r) => oa[e].has(r.field)), ua = [
|
|
194
195
|
"AF",
|
|
195
196
|
// Afghanistan
|
|
196
197
|
"AX",
|
|
@@ -689,7 +690,7 @@ const Ms = [
|
|
|
689
690
|
// Zambia
|
|
690
691
|
"ZW"
|
|
691
692
|
// Zimbabwe
|
|
692
|
-
],
|
|
693
|
+
], Hs = [
|
|
693
694
|
"horizontal_bar",
|
|
694
695
|
"vertical_bar",
|
|
695
696
|
"gauge",
|
|
@@ -715,7 +716,7 @@ const Ms = [
|
|
|
715
716
|
additionalProperties: {
|
|
716
717
|
type: "string"
|
|
717
718
|
}
|
|
718
|
-
},
|
|
719
|
+
}, ca = {
|
|
719
720
|
type: "object",
|
|
720
721
|
properties: {
|
|
721
722
|
type: {
|
|
@@ -728,7 +729,7 @@ const Ms = [
|
|
|
728
729
|
},
|
|
729
730
|
required: ["type", "id"],
|
|
730
731
|
additionalProperties: !1
|
|
731
|
-
},
|
|
732
|
+
}, la = {
|
|
732
733
|
type: "object",
|
|
733
734
|
properties: {
|
|
734
735
|
type: {
|
|
@@ -745,7 +746,7 @@ const Ms = [
|
|
|
745
746
|
},
|
|
746
747
|
required: ["type"],
|
|
747
748
|
additionalProperties: !1
|
|
748
|
-
},
|
|
749
|
+
}, da = {
|
|
749
750
|
type: "object",
|
|
750
751
|
properties: {
|
|
751
752
|
type: {
|
|
@@ -768,7 +769,7 @@ const Ms = [
|
|
|
768
769
|
},
|
|
769
770
|
required: ["type"],
|
|
770
771
|
additionalProperties: !1
|
|
771
|
-
},
|
|
772
|
+
}, fa = {
|
|
772
773
|
type: "object",
|
|
773
774
|
properties: {
|
|
774
775
|
type: {
|
|
@@ -791,7 +792,7 @@ const Ms = [
|
|
|
791
792
|
},
|
|
792
793
|
required: ["type"],
|
|
793
794
|
additionalProperties: !1
|
|
794
|
-
},
|
|
795
|
+
}, ha = {
|
|
795
796
|
type: "object",
|
|
796
797
|
properties: {
|
|
797
798
|
type: {
|
|
@@ -803,7 +804,7 @@ const Ms = [
|
|
|
803
804
|
},
|
|
804
805
|
required: ["type"],
|
|
805
806
|
additionalProperties: !1
|
|
806
|
-
},
|
|
807
|
+
}, ma = {
|
|
807
808
|
type: "object",
|
|
808
809
|
properties: {
|
|
809
810
|
chart_title: W,
|
|
@@ -821,7 +822,7 @@ const Ms = [
|
|
|
821
822
|
},
|
|
822
823
|
required: ["type"],
|
|
823
824
|
additionalProperties: !1
|
|
824
|
-
},
|
|
825
|
+
}, ya = {
|
|
825
826
|
type: "object",
|
|
826
827
|
properties: {
|
|
827
828
|
chart_title: W,
|
|
@@ -841,7 +842,7 @@ const Ms = [
|
|
|
841
842
|
},
|
|
842
843
|
required: ["type"],
|
|
843
844
|
additionalProperties: !1
|
|
844
|
-
},
|
|
845
|
+
}, ga = {
|
|
845
846
|
type: "object",
|
|
846
847
|
properties: {
|
|
847
848
|
type: {
|
|
@@ -855,7 +856,7 @@ const Ms = [
|
|
|
855
856
|
},
|
|
856
857
|
required: ["type"],
|
|
857
858
|
additionalProperties: !1
|
|
858
|
-
},
|
|
859
|
+
}, pa = {
|
|
859
860
|
type: "object",
|
|
860
861
|
properties: {
|
|
861
862
|
type: {
|
|
@@ -865,7 +866,7 @@ const Ms = [
|
|
|
865
866
|
chart_title: W,
|
|
866
867
|
fit_to_country: {
|
|
867
868
|
type: "string",
|
|
868
|
-
enum:
|
|
869
|
+
enum: ua
|
|
869
870
|
},
|
|
870
871
|
legend: {
|
|
871
872
|
type: "boolean",
|
|
@@ -888,7 +889,7 @@ const Ms = [
|
|
|
888
889
|
},
|
|
889
890
|
required: ["type"],
|
|
890
891
|
additionalProperties: !1
|
|
891
|
-
},
|
|
892
|
+
}, _a = {
|
|
892
893
|
type: "object",
|
|
893
894
|
properties: {
|
|
894
895
|
tz: {
|
|
@@ -903,7 +904,7 @@ const Ms = [
|
|
|
903
904
|
},
|
|
904
905
|
time_range: {
|
|
905
906
|
type: "string",
|
|
906
|
-
enum:
|
|
907
|
+
enum: Jn,
|
|
907
908
|
default: "1h"
|
|
908
909
|
}
|
|
909
910
|
},
|
|
@@ -912,7 +913,7 @@ const Ms = [
|
|
|
912
913
|
"time_range"
|
|
913
914
|
],
|
|
914
915
|
additionalProperties: !1
|
|
915
|
-
},
|
|
916
|
+
}, wa = {
|
|
916
917
|
type: "object",
|
|
917
918
|
description: "A duration representing an exact start and end time.",
|
|
918
919
|
properties: {
|
|
@@ -948,8 +949,8 @@ const Ms = [
|
|
|
948
949
|
type: "object",
|
|
949
950
|
description: "The time range to query.",
|
|
950
951
|
anyOf: [
|
|
951
|
-
|
|
952
|
-
|
|
952
|
+
_a,
|
|
953
|
+
wa
|
|
953
954
|
],
|
|
954
955
|
default: {
|
|
955
956
|
type: "relative",
|
|
@@ -993,7 +994,7 @@ const Ms = [
|
|
|
993
994
|
},
|
|
994
995
|
operator: {
|
|
995
996
|
type: "string",
|
|
996
|
-
enum:
|
|
997
|
+
enum: Qn
|
|
997
998
|
},
|
|
998
999
|
value: {
|
|
999
1000
|
type: "array",
|
|
@@ -1019,7 +1020,7 @@ const Ms = [
|
|
|
1019
1020
|
},
|
|
1020
1021
|
operator: {
|
|
1021
1022
|
type: "string",
|
|
1022
|
-
enum:
|
|
1023
|
+
enum: Kn
|
|
1023
1024
|
}
|
|
1024
1025
|
},
|
|
1025
1026
|
required: [
|
|
@@ -1030,7 +1031,7 @@ const Ms = [
|
|
|
1030
1031
|
}
|
|
1031
1032
|
]
|
|
1032
1033
|
}
|
|
1033
|
-
}),
|
|
1034
|
+
}), ba = {
|
|
1034
1035
|
type: "object",
|
|
1035
1036
|
description: "A query to launch at the advanced explore API",
|
|
1036
1037
|
properties: {
|
|
@@ -1040,14 +1041,14 @@ const Ms = [
|
|
|
1040
1041
|
"api_usage"
|
|
1041
1042
|
]
|
|
1042
1043
|
},
|
|
1043
|
-
metrics: Xe(
|
|
1044
|
+
metrics: Xe(ea),
|
|
1044
1045
|
dimensions: $e(rr),
|
|
1045
1046
|
filters: ve(Oe),
|
|
1046
1047
|
...Be
|
|
1047
1048
|
},
|
|
1048
1049
|
required: ["datasource"],
|
|
1049
1050
|
additionalProperties: !1
|
|
1050
|
-
},
|
|
1051
|
+
}, Ta = {
|
|
1051
1052
|
type: "object",
|
|
1052
1053
|
description: "A query to launch at the basic explore API",
|
|
1053
1054
|
properties: {
|
|
@@ -1064,7 +1065,7 @@ const Ms = [
|
|
|
1064
1065
|
},
|
|
1065
1066
|
required: ["datasource"],
|
|
1066
1067
|
additionalProperties: !1
|
|
1067
|
-
},
|
|
1068
|
+
}, Da = {
|
|
1068
1069
|
type: "object",
|
|
1069
1070
|
description: "A query to launch at the AI explore API",
|
|
1070
1071
|
properties: {
|
|
@@ -1074,36 +1075,36 @@ const Ms = [
|
|
|
1074
1075
|
"llm_usage"
|
|
1075
1076
|
]
|
|
1076
1077
|
},
|
|
1077
|
-
metrics: Xe(
|
|
1078
|
+
metrics: Xe(ta),
|
|
1078
1079
|
dimensions: $e(nr),
|
|
1079
1080
|
filters: ve(Se),
|
|
1080
1081
|
...Be
|
|
1081
1082
|
},
|
|
1082
1083
|
required: ["datasource"],
|
|
1083
1084
|
additionalProperties: !1
|
|
1084
|
-
},
|
|
1085
|
-
anyOf: [
|
|
1086
|
-
},
|
|
1085
|
+
}, Ma = {
|
|
1086
|
+
anyOf: [ba, Ta, Da]
|
|
1087
|
+
}, Oa = {
|
|
1087
1088
|
type: "object",
|
|
1088
1089
|
properties: {
|
|
1089
|
-
query:
|
|
1090
|
+
query: Ma,
|
|
1090
1091
|
chart: {
|
|
1091
1092
|
anyOf: [
|
|
1092
|
-
ia,
|
|
1093
|
-
oa,
|
|
1094
|
-
ua,
|
|
1095
|
-
sa,
|
|
1096
1093
|
la,
|
|
1097
|
-
|
|
1098
|
-
|
|
1094
|
+
fa,
|
|
1095
|
+
ha,
|
|
1099
1096
|
da,
|
|
1100
|
-
|
|
1097
|
+
ya,
|
|
1098
|
+
ma,
|
|
1099
|
+
ca,
|
|
1100
|
+
ga,
|
|
1101
|
+
pa
|
|
1101
1102
|
]
|
|
1102
1103
|
}
|
|
1103
1104
|
},
|
|
1104
1105
|
required: ["query", "chart"],
|
|
1105
1106
|
additionalProperties: !1
|
|
1106
|
-
},
|
|
1107
|
+
}, Sa = {
|
|
1107
1108
|
type: "object",
|
|
1108
1109
|
properties: {
|
|
1109
1110
|
position: {
|
|
@@ -1140,15 +1141,15 @@ const Ms = [
|
|
|
1140
1141
|
},
|
|
1141
1142
|
required: ["position", "size"],
|
|
1142
1143
|
additionalProperties: !1
|
|
1143
|
-
},
|
|
1144
|
+
}, va = {
|
|
1144
1145
|
type: "object",
|
|
1145
1146
|
properties: {
|
|
1146
1147
|
type: {
|
|
1147
1148
|
type: "string",
|
|
1148
1149
|
enum: ["chart"]
|
|
1149
1150
|
},
|
|
1150
|
-
definition:
|
|
1151
|
-
layout:
|
|
1151
|
+
definition: Oa,
|
|
1152
|
+
layout: Sa,
|
|
1152
1153
|
id: {
|
|
1153
1154
|
type: "string",
|
|
1154
1155
|
description: "Unique identifier for the tile. If not provided, one will be generated."
|
|
@@ -1156,12 +1157,12 @@ const Ms = [
|
|
|
1156
1157
|
},
|
|
1157
1158
|
required: ["type", "definition", "layout"],
|
|
1158
1159
|
additionalProperties: !1
|
|
1159
|
-
},
|
|
1160
|
+
}, Fs = {
|
|
1160
1161
|
type: "object",
|
|
1161
1162
|
properties: {
|
|
1162
1163
|
tiles: {
|
|
1163
1164
|
type: "array",
|
|
1164
|
-
items:
|
|
1165
|
+
items: va
|
|
1165
1166
|
},
|
|
1166
1167
|
tile_height: {
|
|
1167
1168
|
type: "number",
|
|
@@ -1175,10 +1176,10 @@ const Ms = [
|
|
|
1175
1176
|
},
|
|
1176
1177
|
required: ["tiles"],
|
|
1177
1178
|
additionalProperties: !1
|
|
1178
|
-
},
|
|
1179
|
+
}, Ws = (e) => {
|
|
1179
1180
|
const t = [];
|
|
1180
|
-
return Me.includes(e) && t.push("basic"), Oe.includes(e) && t.push("api_usage"), Se.includes(e) && t.push("llm_usage"), (
|
|
1181
|
-
}, sr = 6048e5,
|
|
1181
|
+
return Me.includes(e) && t.push("basic"), Oe.includes(e) && t.push("api_usage"), Se.includes(e) && t.push("llm_usage"), (na.includes(e) || sa.includes(e)) && t.push("requests"), t;
|
|
1182
|
+
}, sr = 6048e5, Ea = 864e5, xa = 60, Na = 3600, Rt = Symbol.for("constructDateFrom");
|
|
1182
1183
|
function C(e, t) {
|
|
1183
1184
|
return typeof e == "function" ? e(t) : e && typeof e == "object" && Rt in e ? e[Rt](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
1184
1185
|
}
|
|
@@ -1189,7 +1190,7 @@ function kt(e, t, r) {
|
|
|
1189
1190
|
const n = M(e, r == null ? void 0 : r.in);
|
|
1190
1191
|
return isNaN(t) ? C(e, NaN) : (n.setDate(n.getDate() + t), n);
|
|
1191
1192
|
}
|
|
1192
|
-
function
|
|
1193
|
+
function Pa(e, t, r) {
|
|
1193
1194
|
const n = M(e, r == null ? void 0 : r.in);
|
|
1194
1195
|
if (isNaN(t)) return C(e, NaN);
|
|
1195
1196
|
const i = n.getDate(), o = C(e, n.getTime());
|
|
@@ -1201,13 +1202,13 @@ function Sa(e, t, r) {
|
|
|
1201
1202
|
i
|
|
1202
1203
|
), n);
|
|
1203
1204
|
}
|
|
1204
|
-
let
|
|
1205
|
+
let Ia = {};
|
|
1205
1206
|
function oe() {
|
|
1206
|
-
return
|
|
1207
|
+
return Ia;
|
|
1207
1208
|
}
|
|
1208
1209
|
function A(e, t) {
|
|
1209
|
-
var d, h, f,
|
|
1210
|
-
const r = oe(), n = (t == null ? void 0 : t.weekStartsOn) ?? ((h = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : h.weekStartsOn) ?? r.weekStartsOn ?? ((
|
|
1210
|
+
var d, h, f, p;
|
|
1211
|
+
const r = oe(), n = (t == null ? void 0 : t.weekStartsOn) ?? ((h = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : h.weekStartsOn) ?? r.weekStartsOn ?? ((p = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : p.weekStartsOn) ?? 0, i = M(e, t == null ? void 0 : t.in), o = i.getDay(), c = (o < n ? 7 : 0) + o - n;
|
|
1211
1212
|
return i.setDate(i.getDate() - c), i.setHours(0, 0, 0, 0), i;
|
|
1212
1213
|
}
|
|
1213
1214
|
function pe(e, t) {
|
|
@@ -1235,7 +1236,7 @@ function Yt(e) {
|
|
|
1235
1236
|
);
|
|
1236
1237
|
return r.setUTCFullYear(t.getFullYear()), +e - +r;
|
|
1237
1238
|
}
|
|
1238
|
-
function
|
|
1239
|
+
function Ca(e, ...t) {
|
|
1239
1240
|
const r = C.bind(
|
|
1240
1241
|
null,
|
|
1241
1242
|
t.find((n) => typeof n == "object")
|
|
@@ -1246,33 +1247,33 @@ function _e(e, t) {
|
|
|
1246
1247
|
const r = M(e, t == null ? void 0 : t.in);
|
|
1247
1248
|
return r.setHours(0, 0, 0, 0), r;
|
|
1248
1249
|
}
|
|
1249
|
-
function
|
|
1250
|
-
const [n, i] =
|
|
1250
|
+
function Ra(e, t, r) {
|
|
1251
|
+
const [n, i] = Ca(
|
|
1251
1252
|
r == null ? void 0 : r.in,
|
|
1252
1253
|
e,
|
|
1253
1254
|
t
|
|
1254
1255
|
), o = _e(n), c = _e(i), d = +o - Yt(o), h = +c - Yt(c);
|
|
1255
|
-
return Math.round((d - h) /
|
|
1256
|
+
return Math.round((d - h) / Ea);
|
|
1256
1257
|
}
|
|
1257
|
-
function
|
|
1258
|
+
function ka(e, t) {
|
|
1258
1259
|
const r = or(e, t), n = C(e, 0);
|
|
1259
1260
|
return n.setFullYear(r, 0, 4), n.setHours(0, 0, 0, 0), pe(n);
|
|
1260
1261
|
}
|
|
1261
|
-
function
|
|
1262
|
+
function Ya(e) {
|
|
1262
1263
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
1263
1264
|
}
|
|
1264
|
-
function
|
|
1265
|
-
return !(!
|
|
1265
|
+
function Ga(e) {
|
|
1266
|
+
return !(!Ya(e) && typeof e != "number" || isNaN(+M(e)));
|
|
1266
1267
|
}
|
|
1267
1268
|
function J(e, t) {
|
|
1268
1269
|
const r = M(e, t == null ? void 0 : t.in);
|
|
1269
1270
|
return r.setDate(1), r.setHours(0, 0, 0, 0), r;
|
|
1270
1271
|
}
|
|
1271
|
-
function
|
|
1272
|
+
function Aa(e, t) {
|
|
1272
1273
|
const r = M(e, t == null ? void 0 : t.in);
|
|
1273
1274
|
return r.setFullYear(r.getFullYear(), 0, 1), r.setHours(0, 0, 0, 0), r;
|
|
1274
1275
|
}
|
|
1275
|
-
const
|
|
1276
|
+
const Ha = {
|
|
1276
1277
|
lessThanXSeconds: {
|
|
1277
1278
|
one: "less than a second",
|
|
1278
1279
|
other: "less than {{count}} seconds"
|
|
@@ -1334,9 +1335,9 @@ const Ra = {
|
|
|
1334
1335
|
one: "almost 1 year",
|
|
1335
1336
|
other: "almost {{count}} years"
|
|
1336
1337
|
}
|
|
1337
|
-
},
|
|
1338
|
+
}, Fa = (e, t, r) => {
|
|
1338
1339
|
let n;
|
|
1339
|
-
const i =
|
|
1340
|
+
const i = Ha[e];
|
|
1340
1341
|
return typeof i == "string" ? n = i : t === 1 ? n = i.one : n = i.other.replace("{{count}}", t.toString()), r != null && r.addSuffix ? r.comparison && r.comparison > 0 ? "in " + n : n + " ago" : n;
|
|
1341
1342
|
};
|
|
1342
1343
|
function Fe(e) {
|
|
@@ -1345,42 +1346,42 @@ function Fe(e) {
|
|
|
1345
1346
|
return e.formats[r] || e.formats[e.defaultWidth];
|
|
1346
1347
|
};
|
|
1347
1348
|
}
|
|
1348
|
-
const
|
|
1349
|
+
const Wa = {
|
|
1349
1350
|
full: "EEEE, MMMM do, y",
|
|
1350
1351
|
long: "MMMM do, y",
|
|
1351
1352
|
medium: "MMM d, y",
|
|
1352
1353
|
short: "MM/dd/yyyy"
|
|
1353
|
-
},
|
|
1354
|
+
}, qa = {
|
|
1354
1355
|
full: "h:mm:ss a zzzz",
|
|
1355
1356
|
long: "h:mm:ss a z",
|
|
1356
1357
|
medium: "h:mm:ss a",
|
|
1357
1358
|
short: "h:mm a"
|
|
1358
|
-
},
|
|
1359
|
+
}, La = {
|
|
1359
1360
|
full: "{{date}} 'at' {{time}}",
|
|
1360
1361
|
long: "{{date}} 'at' {{time}}",
|
|
1361
1362
|
medium: "{{date}}, {{time}}",
|
|
1362
1363
|
short: "{{date}}, {{time}}"
|
|
1363
|
-
},
|
|
1364
|
+
}, Ua = {
|
|
1364
1365
|
date: Fe({
|
|
1365
|
-
formats:
|
|
1366
|
+
formats: Wa,
|
|
1366
1367
|
defaultWidth: "full"
|
|
1367
1368
|
}),
|
|
1368
1369
|
time: Fe({
|
|
1369
|
-
formats:
|
|
1370
|
+
formats: qa,
|
|
1370
1371
|
defaultWidth: "full"
|
|
1371
1372
|
}),
|
|
1372
1373
|
dateTime: Fe({
|
|
1373
|
-
formats:
|
|
1374
|
+
formats: La,
|
|
1374
1375
|
defaultWidth: "full"
|
|
1375
1376
|
})
|
|
1376
|
-
},
|
|
1377
|
+
}, ja = {
|
|
1377
1378
|
lastWeek: "'last' eeee 'at' p",
|
|
1378
1379
|
yesterday: "'yesterday at' p",
|
|
1379
1380
|
today: "'today at' p",
|
|
1380
1381
|
tomorrow: "'tomorrow at' p",
|
|
1381
1382
|
nextWeek: "eeee 'at' p",
|
|
1382
1383
|
other: "P"
|
|
1383
|
-
},
|
|
1384
|
+
}, za = (e, t, r, n) => ja[e];
|
|
1384
1385
|
function ne(e) {
|
|
1385
1386
|
return (t, r) => {
|
|
1386
1387
|
const n = r != null && r.context ? String(r.context) : "standalone";
|
|
@@ -1396,15 +1397,15 @@ function ne(e) {
|
|
|
1396
1397
|
return i[o];
|
|
1397
1398
|
};
|
|
1398
1399
|
}
|
|
1399
|
-
const
|
|
1400
|
+
const Va = {
|
|
1400
1401
|
narrow: ["B", "A"],
|
|
1401
1402
|
abbreviated: ["BC", "AD"],
|
|
1402
1403
|
wide: ["Before Christ", "Anno Domini"]
|
|
1403
|
-
},
|
|
1404
|
+
}, Ba = {
|
|
1404
1405
|
narrow: ["1", "2", "3", "4"],
|
|
1405
1406
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
1406
1407
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
1407
|
-
},
|
|
1408
|
+
}, Xa = {
|
|
1408
1409
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
1409
1410
|
abbreviated: [
|
|
1410
1411
|
"Jan",
|
|
@@ -1434,7 +1435,7 @@ const La = {
|
|
|
1434
1435
|
"November",
|
|
1435
1436
|
"December"
|
|
1436
1437
|
]
|
|
1437
|
-
},
|
|
1438
|
+
}, $a = {
|
|
1438
1439
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
1439
1440
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
1440
1441
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -1447,7 +1448,7 @@ const La = {
|
|
|
1447
1448
|
"Friday",
|
|
1448
1449
|
"Saturday"
|
|
1449
1450
|
]
|
|
1450
|
-
},
|
|
1451
|
+
}, Za = {
|
|
1451
1452
|
narrow: {
|
|
1452
1453
|
am: "a",
|
|
1453
1454
|
pm: "p",
|
|
@@ -1478,7 +1479,7 @@ const La = {
|
|
|
1478
1479
|
evening: "evening",
|
|
1479
1480
|
night: "night"
|
|
1480
1481
|
}
|
|
1481
|
-
},
|
|
1482
|
+
}, Qa = {
|
|
1482
1483
|
narrow: {
|
|
1483
1484
|
am: "a",
|
|
1484
1485
|
pm: "p",
|
|
@@ -1509,7 +1510,7 @@ const La = {
|
|
|
1509
1510
|
evening: "in the evening",
|
|
1510
1511
|
night: "at night"
|
|
1511
1512
|
}
|
|
1512
|
-
},
|
|
1513
|
+
}, Ka = (e, t) => {
|
|
1513
1514
|
const r = Number(e), n = r % 100;
|
|
1514
1515
|
if (n > 20 || n < 10)
|
|
1515
1516
|
switch (n % 10) {
|
|
@@ -1521,29 +1522,29 @@ const La = {
|
|
|
1521
1522
|
return r + "rd";
|
|
1522
1523
|
}
|
|
1523
1524
|
return r + "th";
|
|
1524
|
-
},
|
|
1525
|
-
ordinalNumber:
|
|
1525
|
+
}, Ja = {
|
|
1526
|
+
ordinalNumber: Ka,
|
|
1526
1527
|
era: ne({
|
|
1527
|
-
values:
|
|
1528
|
+
values: Va,
|
|
1528
1529
|
defaultWidth: "wide"
|
|
1529
1530
|
}),
|
|
1530
1531
|
quarter: ne({
|
|
1531
|
-
values:
|
|
1532
|
+
values: Ba,
|
|
1532
1533
|
defaultWidth: "wide",
|
|
1533
1534
|
argumentCallback: (e) => e - 1
|
|
1534
1535
|
}),
|
|
1535
1536
|
month: ne({
|
|
1536
|
-
values:
|
|
1537
|
+
values: Xa,
|
|
1537
1538
|
defaultWidth: "wide"
|
|
1538
1539
|
}),
|
|
1539
1540
|
day: ne({
|
|
1540
|
-
values:
|
|
1541
|
+
values: $a,
|
|
1541
1542
|
defaultWidth: "wide"
|
|
1542
1543
|
}),
|
|
1543
1544
|
dayPeriod: ne({
|
|
1544
|
-
values:
|
|
1545
|
+
values: Za,
|
|
1545
1546
|
defaultWidth: "wide",
|
|
1546
|
-
formattingValues:
|
|
1547
|
+
formattingValues: Qa,
|
|
1547
1548
|
defaultFormattingWidth: "wide"
|
|
1548
1549
|
})
|
|
1549
1550
|
};
|
|
@@ -1552,30 +1553,30 @@ function ae(e) {
|
|
|
1552
1553
|
const n = r.width, i = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], o = t.match(i);
|
|
1553
1554
|
if (!o)
|
|
1554
1555
|
return null;
|
|
1555
|
-
const c = o[0], d = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], h = Array.isArray(d) ?
|
|
1556
|
+
const c = o[0], d = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], h = Array.isArray(d) ? ti(d, (y) => y.test(c)) : (
|
|
1556
1557
|
// [TODO] -- I challenge you to fix the type
|
|
1557
|
-
|
|
1558
|
+
ei(d, (y) => y.test(c))
|
|
1558
1559
|
);
|
|
1559
1560
|
let f;
|
|
1560
1561
|
f = e.valueCallback ? e.valueCallback(h) : h, f = r.valueCallback ? (
|
|
1561
1562
|
// [TODO] -- I challenge you to fix the type
|
|
1562
1563
|
r.valueCallback(f)
|
|
1563
1564
|
) : f;
|
|
1564
|
-
const
|
|
1565
|
-
return { value: f, rest:
|
|
1565
|
+
const p = t.slice(c.length);
|
|
1566
|
+
return { value: f, rest: p };
|
|
1566
1567
|
};
|
|
1567
1568
|
}
|
|
1568
|
-
function
|
|
1569
|
+
function ei(e, t) {
|
|
1569
1570
|
for (const r in e)
|
|
1570
1571
|
if (Object.prototype.hasOwnProperty.call(e, r) && t(e[r]))
|
|
1571
1572
|
return r;
|
|
1572
1573
|
}
|
|
1573
|
-
function
|
|
1574
|
+
function ti(e, t) {
|
|
1574
1575
|
for (let r = 0; r < e.length; r++)
|
|
1575
1576
|
if (t(e[r]))
|
|
1576
1577
|
return r;
|
|
1577
1578
|
}
|
|
1578
|
-
function
|
|
1579
|
+
function ri(e) {
|
|
1579
1580
|
return (t, r = {}) => {
|
|
1580
1581
|
const n = t.match(e.matchPattern);
|
|
1581
1582
|
if (!n) return null;
|
|
@@ -1587,23 +1588,23 @@ function Qa(e) {
|
|
|
1587
1588
|
return { value: c, rest: d };
|
|
1588
1589
|
};
|
|
1589
1590
|
}
|
|
1590
|
-
const
|
|
1591
|
+
const ni = /^(\d+)(th|st|nd|rd)?/i, ai = /\d+/i, ii = {
|
|
1591
1592
|
narrow: /^(b|a)/i,
|
|
1592
1593
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
1593
1594
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
1594
|
-
},
|
|
1595
|
+
}, si = {
|
|
1595
1596
|
any: [/^b/i, /^(a|c)/i]
|
|
1596
|
-
},
|
|
1597
|
+
}, oi = {
|
|
1597
1598
|
narrow: /^[1234]/i,
|
|
1598
1599
|
abbreviated: /^q[1234]/i,
|
|
1599
1600
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
1600
|
-
},
|
|
1601
|
+
}, ui = {
|
|
1601
1602
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
1602
|
-
},
|
|
1603
|
+
}, ci = {
|
|
1603
1604
|
narrow: /^[jfmasond]/i,
|
|
1604
1605
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
1605
1606
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
1606
|
-
},
|
|
1607
|
+
}, li = {
|
|
1607
1608
|
narrow: [
|
|
1608
1609
|
/^j/i,
|
|
1609
1610
|
/^f/i,
|
|
@@ -1632,18 +1633,18 @@ const Ka = /^(\d+)(th|st|nd|rd)?/i, Ja = /\d+/i, ei = {
|
|
|
1632
1633
|
/^n/i,
|
|
1633
1634
|
/^d/i
|
|
1634
1635
|
]
|
|
1635
|
-
},
|
|
1636
|
+
}, di = {
|
|
1636
1637
|
narrow: /^[smtwf]/i,
|
|
1637
1638
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
1638
1639
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
1639
1640
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
1640
|
-
},
|
|
1641
|
+
}, fi = {
|
|
1641
1642
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
1642
1643
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
1643
|
-
},
|
|
1644
|
+
}, hi = {
|
|
1644
1645
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
1645
1646
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
1646
|
-
},
|
|
1647
|
+
}, mi = {
|
|
1647
1648
|
any: {
|
|
1648
1649
|
am: /^a/i,
|
|
1649
1650
|
pm: /^p/i,
|
|
@@ -1654,82 +1655,82 @@ const Ka = /^(\d+)(th|st|nd|rd)?/i, Ja = /\d+/i, ei = {
|
|
|
1654
1655
|
evening: /evening/i,
|
|
1655
1656
|
night: /night/i
|
|
1656
1657
|
}
|
|
1657
|
-
},
|
|
1658
|
-
ordinalNumber:
|
|
1659
|
-
matchPattern:
|
|
1660
|
-
parsePattern:
|
|
1658
|
+
}, yi = {
|
|
1659
|
+
ordinalNumber: ri({
|
|
1660
|
+
matchPattern: ni,
|
|
1661
|
+
parsePattern: ai,
|
|
1661
1662
|
valueCallback: (e) => parseInt(e, 10)
|
|
1662
1663
|
}),
|
|
1663
1664
|
era: ae({
|
|
1664
|
-
matchPatterns:
|
|
1665
|
+
matchPatterns: ii,
|
|
1665
1666
|
defaultMatchWidth: "wide",
|
|
1666
|
-
parsePatterns:
|
|
1667
|
+
parsePatterns: si,
|
|
1667
1668
|
defaultParseWidth: "any"
|
|
1668
1669
|
}),
|
|
1669
1670
|
quarter: ae({
|
|
1670
|
-
matchPatterns:
|
|
1671
|
+
matchPatterns: oi,
|
|
1671
1672
|
defaultMatchWidth: "wide",
|
|
1672
|
-
parsePatterns:
|
|
1673
|
+
parsePatterns: ui,
|
|
1673
1674
|
defaultParseWidth: "any",
|
|
1674
1675
|
valueCallback: (e) => e + 1
|
|
1675
1676
|
}),
|
|
1676
1677
|
month: ae({
|
|
1677
|
-
matchPatterns:
|
|
1678
|
+
matchPatterns: ci,
|
|
1678
1679
|
defaultMatchWidth: "wide",
|
|
1679
|
-
parsePatterns:
|
|
1680
|
+
parsePatterns: li,
|
|
1680
1681
|
defaultParseWidth: "any"
|
|
1681
1682
|
}),
|
|
1682
1683
|
day: ae({
|
|
1683
|
-
matchPatterns:
|
|
1684
|
+
matchPatterns: di,
|
|
1684
1685
|
defaultMatchWidth: "wide",
|
|
1685
|
-
parsePatterns:
|
|
1686
|
+
parsePatterns: fi,
|
|
1686
1687
|
defaultParseWidth: "any"
|
|
1687
1688
|
}),
|
|
1688
1689
|
dayPeriod: ae({
|
|
1689
|
-
matchPatterns:
|
|
1690
|
+
matchPatterns: hi,
|
|
1690
1691
|
defaultMatchWidth: "any",
|
|
1691
|
-
parsePatterns:
|
|
1692
|
+
parsePatterns: mi,
|
|
1692
1693
|
defaultParseWidth: "any"
|
|
1693
1694
|
})
|
|
1694
|
-
},
|
|
1695
|
+
}, gi = {
|
|
1695
1696
|
code: "en-US",
|
|
1696
|
-
formatDistance:
|
|
1697
|
-
formatLong:
|
|
1698
|
-
formatRelative:
|
|
1699
|
-
localize:
|
|
1700
|
-
match:
|
|
1697
|
+
formatDistance: Fa,
|
|
1698
|
+
formatLong: Ua,
|
|
1699
|
+
formatRelative: za,
|
|
1700
|
+
localize: Ja,
|
|
1701
|
+
match: yi,
|
|
1701
1702
|
options: {
|
|
1702
1703
|
weekStartsOn: 0,
|
|
1703
1704
|
firstWeekContainsDate: 1
|
|
1704
1705
|
}
|
|
1705
1706
|
};
|
|
1706
|
-
function
|
|
1707
|
+
function pi(e, t) {
|
|
1707
1708
|
const r = M(e, t == null ? void 0 : t.in);
|
|
1708
|
-
return
|
|
1709
|
+
return Ra(r, Aa(r)) + 1;
|
|
1709
1710
|
}
|
|
1710
|
-
function
|
|
1711
|
-
const r = M(e, t == null ? void 0 : t.in), n = +pe(r) - +
|
|
1711
|
+
function _i(e, t) {
|
|
1712
|
+
const r = M(e, t == null ? void 0 : t.in), n = +pe(r) - +ka(r);
|
|
1712
1713
|
return Math.round(n / sr) + 1;
|
|
1713
1714
|
}
|
|
1714
1715
|
function ur(e, t) {
|
|
1715
|
-
var
|
|
1716
|
-
const r = M(e, t == null ? void 0 : t.in), n = r.getFullYear(), i = oe(), o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((y = (
|
|
1716
|
+
var p, y, g, x;
|
|
1717
|
+
const r = M(e, t == null ? void 0 : t.in), n = r.getFullYear(), i = oe(), o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((y = (p = t == null ? void 0 : t.locale) == null ? void 0 : p.options) == null ? void 0 : y.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((x = (g = i.locale) == null ? void 0 : g.options) == null ? void 0 : x.firstWeekContainsDate) ?? 1, c = C((t == null ? void 0 : t.in) || e, 0);
|
|
1717
1718
|
c.setFullYear(n + 1, 0, o), c.setHours(0, 0, 0, 0);
|
|
1718
1719
|
const d = A(c, t), h = C((t == null ? void 0 : t.in) || e, 0);
|
|
1719
1720
|
h.setFullYear(n, 0, o), h.setHours(0, 0, 0, 0);
|
|
1720
1721
|
const f = A(h, t);
|
|
1721
1722
|
return +r >= +d ? n + 1 : +r >= +f ? n : n - 1;
|
|
1722
1723
|
}
|
|
1723
|
-
function
|
|
1724
|
-
var d, h, f,
|
|
1725
|
-
const r = oe(), n = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((h = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((
|
|
1724
|
+
function wi(e, t) {
|
|
1725
|
+
var d, h, f, p;
|
|
1726
|
+
const r = oe(), n = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((h = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((p = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, i = ur(e, t), o = C((t == null ? void 0 : t.in) || e, 0);
|
|
1726
1727
|
return o.setFullYear(i, 0, n), o.setHours(0, 0, 0, 0), A(o, t);
|
|
1727
1728
|
}
|
|
1728
|
-
function
|
|
1729
|
-
const r = M(e, t == null ? void 0 : t.in), n = +A(r, t) - +
|
|
1729
|
+
function bi(e, t) {
|
|
1730
|
+
const r = M(e, t == null ? void 0 : t.in), n = +A(r, t) - +wi(r, t);
|
|
1730
1731
|
return Math.round(n / sr) + 1;
|
|
1731
1732
|
}
|
|
1732
|
-
function
|
|
1733
|
+
function _(e, t) {
|
|
1733
1734
|
const r = e < 0 ? "-" : "", n = Math.abs(e).toString().padStart(t, "0");
|
|
1734
1735
|
return r + n;
|
|
1735
1736
|
}
|
|
@@ -1737,16 +1738,16 @@ const F = {
|
|
|
1737
1738
|
// Year
|
|
1738
1739
|
y(e, t) {
|
|
1739
1740
|
const r = e.getFullYear(), n = r > 0 ? r : 1 - r;
|
|
1740
|
-
return
|
|
1741
|
+
return _(t === "yy" ? n % 100 : n, t.length);
|
|
1741
1742
|
},
|
|
1742
1743
|
// Month
|
|
1743
1744
|
M(e, t) {
|
|
1744
1745
|
const r = e.getMonth();
|
|
1745
|
-
return t === "M" ? String(r + 1) :
|
|
1746
|
+
return t === "M" ? String(r + 1) : _(r + 1, 2);
|
|
1746
1747
|
},
|
|
1747
1748
|
// Day of the month
|
|
1748
1749
|
d(e, t) {
|
|
1749
|
-
return
|
|
1750
|
+
return _(e.getDate(), t.length);
|
|
1750
1751
|
},
|
|
1751
1752
|
// AM or PM
|
|
1752
1753
|
a(e, t) {
|
|
@@ -1766,26 +1767,26 @@ const F = {
|
|
|
1766
1767
|
},
|
|
1767
1768
|
// Hour [1-12]
|
|
1768
1769
|
h(e, t) {
|
|
1769
|
-
return
|
|
1770
|
+
return _(e.getHours() % 12 || 12, t.length);
|
|
1770
1771
|
},
|
|
1771
1772
|
// Hour [0-23]
|
|
1772
1773
|
H(e, t) {
|
|
1773
|
-
return
|
|
1774
|
+
return _(e.getHours(), t.length);
|
|
1774
1775
|
},
|
|
1775
1776
|
// Minute
|
|
1776
1777
|
m(e, t) {
|
|
1777
|
-
return
|
|
1778
|
+
return _(e.getMinutes(), t.length);
|
|
1778
1779
|
},
|
|
1779
1780
|
// Second
|
|
1780
1781
|
s(e, t) {
|
|
1781
|
-
return
|
|
1782
|
+
return _(e.getSeconds(), t.length);
|
|
1782
1783
|
},
|
|
1783
1784
|
// Fraction of second
|
|
1784
1785
|
S(e, t) {
|
|
1785
1786
|
const r = t.length, n = e.getMilliseconds(), i = Math.trunc(
|
|
1786
1787
|
n * Math.pow(10, r - 3)
|
|
1787
1788
|
);
|
|
1788
|
-
return
|
|
1789
|
+
return _(i, t.length);
|
|
1789
1790
|
}
|
|
1790
1791
|
}, Q = {
|
|
1791
1792
|
midnight: "midnight",
|
|
@@ -1823,14 +1824,14 @@ const F = {
|
|
|
1823
1824
|
const i = ur(e, n), o = i > 0 ? i : 1 - i;
|
|
1824
1825
|
if (t === "YY") {
|
|
1825
1826
|
const c = o % 100;
|
|
1826
|
-
return
|
|
1827
|
+
return _(c, 2);
|
|
1827
1828
|
}
|
|
1828
|
-
return t === "Yo" ? r.ordinalNumber(o, { unit: "year" }) :
|
|
1829
|
+
return t === "Yo" ? r.ordinalNumber(o, { unit: "year" }) : _(o, t.length);
|
|
1829
1830
|
},
|
|
1830
1831
|
// ISO week-numbering year
|
|
1831
1832
|
R: function(e, t) {
|
|
1832
1833
|
const r = or(e);
|
|
1833
|
-
return
|
|
1834
|
+
return _(r, t.length);
|
|
1834
1835
|
},
|
|
1835
1836
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
1836
1837
|
// The main difference between `y` and `u` localizers are B.C. years:
|
|
@@ -1843,7 +1844,7 @@ const F = {
|
|
|
1843
1844
|
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
1844
1845
|
u: function(e, t) {
|
|
1845
1846
|
const r = e.getFullYear();
|
|
1846
|
-
return
|
|
1847
|
+
return _(r, t.length);
|
|
1847
1848
|
},
|
|
1848
1849
|
// Quarter
|
|
1849
1850
|
Q: function(e, t, r) {
|
|
@@ -1852,7 +1853,7 @@ const F = {
|
|
|
1852
1853
|
case "Q":
|
|
1853
1854
|
return String(n);
|
|
1854
1855
|
case "QQ":
|
|
1855
|
-
return
|
|
1856
|
+
return _(n, 2);
|
|
1856
1857
|
case "Qo":
|
|
1857
1858
|
return r.ordinalNumber(n, { unit: "quarter" });
|
|
1858
1859
|
case "QQQ":
|
|
@@ -1880,7 +1881,7 @@ const F = {
|
|
|
1880
1881
|
case "q":
|
|
1881
1882
|
return String(n);
|
|
1882
1883
|
case "qq":
|
|
1883
|
-
return
|
|
1884
|
+
return _(n, 2);
|
|
1884
1885
|
case "qo":
|
|
1885
1886
|
return r.ordinalNumber(n, { unit: "quarter" });
|
|
1886
1887
|
case "qqq":
|
|
@@ -1932,7 +1933,7 @@ const F = {
|
|
|
1932
1933
|
case "L":
|
|
1933
1934
|
return String(n + 1);
|
|
1934
1935
|
case "LL":
|
|
1935
|
-
return
|
|
1936
|
+
return _(n + 1, 2);
|
|
1936
1937
|
case "Lo":
|
|
1937
1938
|
return r.ordinalNumber(n + 1, { unit: "month" });
|
|
1938
1939
|
case "LLL":
|
|
@@ -1952,13 +1953,13 @@ const F = {
|
|
|
1952
1953
|
},
|
|
1953
1954
|
// Local week of year
|
|
1954
1955
|
w: function(e, t, r, n) {
|
|
1955
|
-
const i =
|
|
1956
|
-
return t === "wo" ? r.ordinalNumber(i, { unit: "week" }) :
|
|
1956
|
+
const i = bi(e, n);
|
|
1957
|
+
return t === "wo" ? r.ordinalNumber(i, { unit: "week" }) : _(i, t.length);
|
|
1957
1958
|
},
|
|
1958
1959
|
// ISO week of year
|
|
1959
1960
|
I: function(e, t, r) {
|
|
1960
|
-
const n =
|
|
1961
|
-
return t === "Io" ? r.ordinalNumber(n, { unit: "week" }) :
|
|
1961
|
+
const n = _i(e);
|
|
1962
|
+
return t === "Io" ? r.ordinalNumber(n, { unit: "week" }) : _(n, t.length);
|
|
1962
1963
|
},
|
|
1963
1964
|
// Day of the month
|
|
1964
1965
|
d: function(e, t, r) {
|
|
@@ -1966,8 +1967,8 @@ const F = {
|
|
|
1966
1967
|
},
|
|
1967
1968
|
// Day of year
|
|
1968
1969
|
D: function(e, t, r) {
|
|
1969
|
-
const n =
|
|
1970
|
-
return t === "Do" ? r.ordinalNumber(n, { unit: "dayOfYear" }) :
|
|
1970
|
+
const n = pi(e);
|
|
1971
|
+
return t === "Do" ? r.ordinalNumber(n, { unit: "dayOfYear" }) : _(n, t.length);
|
|
1971
1972
|
},
|
|
1972
1973
|
// Day of week
|
|
1973
1974
|
E: function(e, t, r) {
|
|
@@ -2005,7 +2006,7 @@ const F = {
|
|
|
2005
2006
|
case "e":
|
|
2006
2007
|
return String(o);
|
|
2007
2008
|
case "ee":
|
|
2008
|
-
return
|
|
2009
|
+
return _(o, 2);
|
|
2009
2010
|
case "eo":
|
|
2010
2011
|
return r.ordinalNumber(o, { unit: "day" });
|
|
2011
2012
|
case "eee":
|
|
@@ -2038,7 +2039,7 @@ const F = {
|
|
|
2038
2039
|
case "c":
|
|
2039
2040
|
return String(o);
|
|
2040
2041
|
case "cc":
|
|
2041
|
-
return
|
|
2042
|
+
return _(o, t.length);
|
|
2042
2043
|
case "co":
|
|
2043
2044
|
return r.ordinalNumber(o, { unit: "day" });
|
|
2044
2045
|
case "ccc":
|
|
@@ -2071,7 +2072,7 @@ const F = {
|
|
|
2071
2072
|
case "i":
|
|
2072
2073
|
return String(i);
|
|
2073
2074
|
case "ii":
|
|
2074
|
-
return
|
|
2075
|
+
return _(i, t.length);
|
|
2075
2076
|
case "io":
|
|
2076
2077
|
return r.ordinalNumber(i, { unit: "day" });
|
|
2077
2078
|
case "iii":
|
|
@@ -2194,12 +2195,12 @@ const F = {
|
|
|
2194
2195
|
// Hour [0-11]
|
|
2195
2196
|
K: function(e, t, r) {
|
|
2196
2197
|
const n = e.getHours() % 12;
|
|
2197
|
-
return t === "Ko" ? r.ordinalNumber(n, { unit: "hour" }) :
|
|
2198
|
+
return t === "Ko" ? r.ordinalNumber(n, { unit: "hour" }) : _(n, t.length);
|
|
2198
2199
|
},
|
|
2199
2200
|
// Hour [1-24]
|
|
2200
2201
|
k: function(e, t, r) {
|
|
2201
2202
|
let n = e.getHours();
|
|
2202
|
-
return n === 0 && (n = 24), t === "ko" ? r.ordinalNumber(n, { unit: "hour" }) :
|
|
2203
|
+
return n === 0 && (n = 24), t === "ko" ? r.ordinalNumber(n, { unit: "hour" }) : _(n, t.length);
|
|
2203
2204
|
},
|
|
2204
2205
|
// Minute
|
|
2205
2206
|
m: function(e, t, r) {
|
|
@@ -2274,22 +2275,22 @@ const F = {
|
|
|
2274
2275
|
// Seconds timestamp
|
|
2275
2276
|
t: function(e, t, r) {
|
|
2276
2277
|
const n = Math.trunc(+e / 1e3);
|
|
2277
|
-
return
|
|
2278
|
+
return _(n, t.length);
|
|
2278
2279
|
},
|
|
2279
2280
|
// Milliseconds timestamp
|
|
2280
2281
|
T: function(e, t, r) {
|
|
2281
|
-
return
|
|
2282
|
+
return _(+e, t.length);
|
|
2282
2283
|
}
|
|
2283
2284
|
};
|
|
2284
2285
|
function At(e, t = "") {
|
|
2285
2286
|
const r = e > 0 ? "-" : "+", n = Math.abs(e), i = Math.trunc(n / 60), o = n % 60;
|
|
2286
|
-
return o === 0 ? r + String(i) : r + String(i) + t +
|
|
2287
|
+
return o === 0 ? r + String(i) : r + String(i) + t + _(o, 2);
|
|
2287
2288
|
}
|
|
2288
2289
|
function Ht(e, t) {
|
|
2289
|
-
return e % 60 === 0 ? (e > 0 ? "-" : "+") +
|
|
2290
|
+
return e % 60 === 0 ? (e > 0 ? "-" : "+") + _(Math.abs(e) / 60, 2) : V(e, t);
|
|
2290
2291
|
}
|
|
2291
2292
|
function V(e, t = "") {
|
|
2292
|
-
const r = e > 0 ? "-" : "+", n = Math.abs(e), i =
|
|
2293
|
+
const r = e > 0 ? "-" : "+", n = Math.abs(e), i = _(Math.trunc(n / 60), 2), o = _(n % 60, 2);
|
|
2293
2294
|
return r + i + t + o;
|
|
2294
2295
|
}
|
|
2295
2296
|
const Ft = (e, t) => {
|
|
@@ -2316,7 +2317,7 @@ const Ft = (e, t) => {
|
|
|
2316
2317
|
default:
|
|
2317
2318
|
return t.time({ width: "full" });
|
|
2318
2319
|
}
|
|
2319
|
-
},
|
|
2320
|
+
}, Ti = (e, t) => {
|
|
2320
2321
|
const r = e.match(/(P+)(p+)?/) || [], n = r[1], i = r[2];
|
|
2321
2322
|
if (!i)
|
|
2322
2323
|
return Ft(e, t);
|
|
@@ -2337,46 +2338,46 @@ const Ft = (e, t) => {
|
|
|
2337
2338
|
break;
|
|
2338
2339
|
}
|
|
2339
2340
|
return o.replace("{{date}}", Ft(n, t)).replace("{{time}}", cr(i, t));
|
|
2340
|
-
},
|
|
2341
|
+
}, Di = {
|
|
2341
2342
|
p: cr,
|
|
2342
|
-
P:
|
|
2343
|
-
},
|
|
2344
|
-
function
|
|
2345
|
-
return
|
|
2343
|
+
P: Ti
|
|
2344
|
+
}, Mi = /^D+$/, Oi = /^Y+$/, Si = ["D", "DD", "YY", "YYYY"];
|
|
2345
|
+
function vi(e) {
|
|
2346
|
+
return Mi.test(e);
|
|
2346
2347
|
}
|
|
2347
|
-
function
|
|
2348
|
-
return
|
|
2348
|
+
function Ei(e) {
|
|
2349
|
+
return Oi.test(e);
|
|
2349
2350
|
}
|
|
2350
|
-
function
|
|
2351
|
-
const n =
|
|
2352
|
-
if (console.warn(n),
|
|
2351
|
+
function xi(e, t, r) {
|
|
2352
|
+
const n = Ni(e, t, r);
|
|
2353
|
+
if (console.warn(n), Si.includes(e)) throw new RangeError(n);
|
|
2353
2354
|
}
|
|
2354
|
-
function
|
|
2355
|
+
function Ni(e, t, r) {
|
|
2355
2356
|
const n = e[0] === "Y" ? "years" : "days of the month";
|
|
2356
2357
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
2357
2358
|
}
|
|
2358
|
-
const
|
|
2359
|
+
const Pi = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ii = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ci = /^'([^]*?)'?$/, Ri = /''/g, ki = /[a-zA-Z]/;
|
|
2359
2360
|
function lr(e, t, r) {
|
|
2360
|
-
var
|
|
2361
|
-
const n = oe(), i = (r == null ? void 0 : r.locale) ?? n.locale ??
|
|
2362
|
-
if (!
|
|
2361
|
+
var p, y, g, x, N, P, R, q;
|
|
2362
|
+
const n = oe(), i = (r == null ? void 0 : r.locale) ?? n.locale ?? gi, o = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((y = (p = r == null ? void 0 : r.locale) == null ? void 0 : p.options) == null ? void 0 : y.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((x = (g = n.locale) == null ? void 0 : g.options) == null ? void 0 : x.firstWeekContainsDate) ?? 1, c = (r == null ? void 0 : r.weekStartsOn) ?? ((P = (N = r == null ? void 0 : r.locale) == null ? void 0 : N.options) == null ? void 0 : P.weekStartsOn) ?? n.weekStartsOn ?? ((q = (R = n.locale) == null ? void 0 : R.options) == null ? void 0 : q.weekStartsOn) ?? 0, d = M(e, r == null ? void 0 : r.in);
|
|
2363
|
+
if (!Ga(d))
|
|
2363
2364
|
throw new RangeError("Invalid time value");
|
|
2364
|
-
let h = t.match(
|
|
2365
|
+
let h = t.match(Ii).map((O) => {
|
|
2365
2366
|
const T = O[0];
|
|
2366
2367
|
if (T === "p" || T === "P") {
|
|
2367
|
-
const
|
|
2368
|
-
return
|
|
2368
|
+
const L = Di[T];
|
|
2369
|
+
return L(O, i.formatLong);
|
|
2369
2370
|
}
|
|
2370
2371
|
return O;
|
|
2371
|
-
}).join("").match(
|
|
2372
|
+
}).join("").match(Pi).map((O) => {
|
|
2372
2373
|
if (O === "''")
|
|
2373
2374
|
return { isToken: !1, value: "'" };
|
|
2374
2375
|
const T = O[0];
|
|
2375
2376
|
if (T === "'")
|
|
2376
|
-
return { isToken: !1, value:
|
|
2377
|
+
return { isToken: !1, value: Yi(O) };
|
|
2377
2378
|
if (Gt[T])
|
|
2378
2379
|
return { isToken: !0, value: O };
|
|
2379
|
-
if (T.match(
|
|
2380
|
+
if (T.match(ki))
|
|
2380
2381
|
throw new RangeError(
|
|
2381
2382
|
"Format string contains an unescaped latin alphabet character `" + T + "`"
|
|
2382
2383
|
);
|
|
@@ -2391,63 +2392,63 @@ function lr(e, t, r) {
|
|
|
2391
2392
|
return h.map((O) => {
|
|
2392
2393
|
if (!O.isToken) return O.value;
|
|
2393
2394
|
const T = O.value;
|
|
2394
|
-
(!(r != null && r.useAdditionalWeekYearTokens) &&
|
|
2395
|
-
const
|
|
2396
|
-
return
|
|
2395
|
+
(!(r != null && r.useAdditionalWeekYearTokens) && Ei(T) || !(r != null && r.useAdditionalDayOfYearTokens) && vi(T)) && xi(T, t, String(e));
|
|
2396
|
+
const L = Gt[T[0]];
|
|
2397
|
+
return L(d, T, i.localize, f);
|
|
2397
2398
|
}).join("");
|
|
2398
2399
|
}
|
|
2399
|
-
function
|
|
2400
|
-
const t = e.match(
|
|
2401
|
-
return t ? t[1].replace(
|
|
2400
|
+
function Yi(e) {
|
|
2401
|
+
const t = e.match(Ci);
|
|
2402
|
+
return t ? t[1].replace(Ri, "'") : e;
|
|
2402
2403
|
}
|
|
2403
|
-
function
|
|
2404
|
+
function Gi(e, t) {
|
|
2404
2405
|
const r = M(e, t == null ? void 0 : t.in), n = r.getFullYear(), i = r.getMonth(), o = C(r, 0);
|
|
2405
2406
|
return o.setFullYear(n, i + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
|
|
2406
2407
|
}
|
|
2407
|
-
function
|
|
2408
|
+
function Ai() {
|
|
2408
2409
|
return Object.assign({}, oe());
|
|
2409
2410
|
}
|
|
2410
2411
|
function Wt(e) {
|
|
2411
2412
|
return +M(e);
|
|
2412
2413
|
}
|
|
2413
|
-
function
|
|
2414
|
+
function qt(e) {
|
|
2414
2415
|
return Math.trunc(+M(e) / 1e3);
|
|
2415
2416
|
}
|
|
2416
|
-
function
|
|
2417
|
-
return Math.trunc(e *
|
|
2417
|
+
function Hi(e) {
|
|
2418
|
+
return Math.trunc(e * Na);
|
|
2418
2419
|
}
|
|
2419
|
-
function
|
|
2420
|
-
const t = e /
|
|
2420
|
+
function Fi(e) {
|
|
2421
|
+
const t = e / xa;
|
|
2421
2422
|
return Math.trunc(t);
|
|
2422
2423
|
}
|
|
2423
2424
|
function dr(e, t, r) {
|
|
2424
|
-
return
|
|
2425
|
+
return Pa(e, -1, r);
|
|
2425
2426
|
}
|
|
2426
|
-
function
|
|
2427
|
-
const n =
|
|
2428
|
-
return "formatToParts" in i ?
|
|
2427
|
+
function Lt(e, t, r) {
|
|
2428
|
+
const n = Ai(), i = Li(e, r.timeZone, r.locale ?? n.locale);
|
|
2429
|
+
return "formatToParts" in i ? Wi(i, t) : qi(i, t);
|
|
2429
2430
|
}
|
|
2430
|
-
function
|
|
2431
|
+
function Wi(e, t) {
|
|
2431
2432
|
const r = e.formatToParts(t);
|
|
2432
2433
|
for (let n = r.length - 1; n >= 0; --n)
|
|
2433
2434
|
if (r[n].type === "timeZoneName")
|
|
2434
2435
|
return r[n].value;
|
|
2435
2436
|
}
|
|
2436
|
-
function
|
|
2437
|
+
function qi(e, t) {
|
|
2437
2438
|
const r = e.format(t).replace(/\u200E/g, ""), n = / [\w-+ ]+$/.exec(r);
|
|
2438
2439
|
return n ? n[0].substr(1) : "";
|
|
2439
2440
|
}
|
|
2440
|
-
function
|
|
2441
|
+
function Li(e, t, r) {
|
|
2441
2442
|
return new Intl.DateTimeFormat(r ? [r.code, "en-US"] : void 0, {
|
|
2442
2443
|
timeZone: t,
|
|
2443
2444
|
timeZoneName: e
|
|
2444
2445
|
});
|
|
2445
2446
|
}
|
|
2446
|
-
function
|
|
2447
|
-
const r =
|
|
2448
|
-
return "formatToParts" in r ?
|
|
2447
|
+
function Ui(e, t) {
|
|
2448
|
+
const r = Xi(t);
|
|
2449
|
+
return "formatToParts" in r ? zi(r, e) : Vi(r, e);
|
|
2449
2450
|
}
|
|
2450
|
-
const
|
|
2451
|
+
const ji = {
|
|
2451
2452
|
year: 0,
|
|
2452
2453
|
month: 1,
|
|
2453
2454
|
day: 2,
|
|
@@ -2455,11 +2456,11 @@ const Fi = {
|
|
|
2455
2456
|
minute: 4,
|
|
2456
2457
|
second: 5
|
|
2457
2458
|
};
|
|
2458
|
-
function
|
|
2459
|
+
function zi(e, t) {
|
|
2459
2460
|
try {
|
|
2460
2461
|
const r = e.formatToParts(t), n = [];
|
|
2461
2462
|
for (let i = 0; i < r.length; i++) {
|
|
2462
|
-
const o =
|
|
2463
|
+
const o = ji[r[i].type];
|
|
2463
2464
|
o !== void 0 && (n[o] = parseInt(r[i].value, 10));
|
|
2464
2465
|
}
|
|
2465
2466
|
return n;
|
|
@@ -2469,7 +2470,7 @@ function Wi(e, t) {
|
|
|
2469
2470
|
throw r;
|
|
2470
2471
|
}
|
|
2471
2472
|
}
|
|
2472
|
-
function
|
|
2473
|
+
function Vi(e, t) {
|
|
2473
2474
|
const r = e.format(t), n = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r);
|
|
2474
2475
|
return [
|
|
2475
2476
|
parseInt(n[3], 10),
|
|
@@ -2489,9 +2490,9 @@ const We = {}, Ut = new Intl.DateTimeFormat("en-US", {
|
|
|
2489
2490
|
hour: "2-digit",
|
|
2490
2491
|
minute: "2-digit",
|
|
2491
2492
|
second: "2-digit"
|
|
2492
|
-
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")),
|
|
2493
|
-
function
|
|
2494
|
-
return We[e] || (We[e] =
|
|
2493
|
+
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), Bi = Ut === "06/25/2014, 00:00:00" || Ut === "06/25/2014 00:00:00";
|
|
2494
|
+
function Xi(e) {
|
|
2495
|
+
return We[e] || (We[e] = Bi ? new Intl.DateTimeFormat("en-US", {
|
|
2495
2496
|
hourCycle: "h23",
|
|
2496
2497
|
timeZone: e,
|
|
2497
2498
|
year: "numeric",
|
|
@@ -2515,7 +2516,7 @@ function Ze(e, t, r, n, i, o, c) {
|
|
|
2515
2516
|
const d = /* @__PURE__ */ new Date(0);
|
|
2516
2517
|
return d.setUTCFullYear(e, t, r), d.setUTCHours(n, i, o, c), d;
|
|
2517
2518
|
}
|
|
2518
|
-
const jt = 36e5,
|
|
2519
|
+
const jt = 36e5, $i = 6e4, qe = {
|
|
2519
2520
|
timezoneZ: /^(Z)$/,
|
|
2520
2521
|
timezoneHH: /^([+-]\d{2})$/,
|
|
2521
2522
|
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
@@ -2523,34 +2524,34 @@ const jt = 36e5, ji = 6e4, Le = {
|
|
|
2523
2524
|
function ue(e, t, r) {
|
|
2524
2525
|
if (!e)
|
|
2525
2526
|
return 0;
|
|
2526
|
-
let n =
|
|
2527
|
+
let n = qe.timezoneZ.exec(e);
|
|
2527
2528
|
if (n)
|
|
2528
2529
|
return 0;
|
|
2529
2530
|
let i, o;
|
|
2530
|
-
if (n =
|
|
2531
|
+
if (n = qe.timezoneHH.exec(e), n)
|
|
2531
2532
|
return i = parseInt(n[1], 10), zt(i) ? -(i * jt) : NaN;
|
|
2532
|
-
if (n =
|
|
2533
|
+
if (n = qe.timezoneHHMM.exec(e), n) {
|
|
2533
2534
|
i = parseInt(n[2], 10);
|
|
2534
2535
|
const c = parseInt(n[3], 10);
|
|
2535
|
-
return zt(i, c) ? (o = Math.abs(i) * jt + c *
|
|
2536
|
+
return zt(i, c) ? (o = Math.abs(i) * jt + c * $i, n[1] === "+" ? -o : o) : NaN;
|
|
2536
2537
|
}
|
|
2537
|
-
if (
|
|
2538
|
+
if (Ki(e)) {
|
|
2538
2539
|
t = new Date(t || Date.now());
|
|
2539
|
-
const c = r ? t :
|
|
2540
|
-
return -(r ? d :
|
|
2540
|
+
const c = r ? t : Zi(t), d = ze(c, e);
|
|
2541
|
+
return -(r ? d : Qi(t, d, e));
|
|
2541
2542
|
}
|
|
2542
2543
|
return NaN;
|
|
2543
2544
|
}
|
|
2544
|
-
function
|
|
2545
|
+
function Zi(e) {
|
|
2545
2546
|
return Ze(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
|
|
2546
2547
|
}
|
|
2547
2548
|
function ze(e, t) {
|
|
2548
|
-
const r =
|
|
2549
|
+
const r = Ui(e, t), n = Ze(r[0], r[1] - 1, r[2], r[3] % 24, r[4], r[5], 0).getTime();
|
|
2549
2550
|
let i = e.getTime();
|
|
2550
2551
|
const o = i % 1e3;
|
|
2551
2552
|
return i -= o >= 0 ? o : 1e3 + o, n - i;
|
|
2552
2553
|
}
|
|
2553
|
-
function
|
|
2554
|
+
function Qi(e, t, r) {
|
|
2554
2555
|
let i = e.getTime() - t;
|
|
2555
2556
|
const o = ze(new Date(i), r);
|
|
2556
2557
|
if (t === o)
|
|
@@ -2563,7 +2564,7 @@ function zt(e, t) {
|
|
|
2563
2564
|
return -23 <= e && e <= 23 && (t == null || 0 <= t && t <= 59);
|
|
2564
2565
|
}
|
|
2565
2566
|
const Vt = {};
|
|
2566
|
-
function
|
|
2567
|
+
function Ki(e) {
|
|
2567
2568
|
if (Vt[e])
|
|
2568
2569
|
return !0;
|
|
2569
2570
|
try {
|
|
@@ -2572,10 +2573,10 @@ function Bi(e) {
|
|
|
2572
2573
|
return !1;
|
|
2573
2574
|
}
|
|
2574
2575
|
}
|
|
2575
|
-
const
|
|
2576
|
+
const Ji = 60 * 1e3, es = {
|
|
2576
2577
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
2577
2578
|
X: function(e, t, r) {
|
|
2578
|
-
const n =
|
|
2579
|
+
const n = Le(r.timeZone, e);
|
|
2579
2580
|
if (n === 0)
|
|
2580
2581
|
return "Z";
|
|
2581
2582
|
switch (t) {
|
|
@@ -2592,7 +2593,7 @@ const Xi = 60 * 1e3, $i = {
|
|
|
2592
2593
|
},
|
|
2593
2594
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
2594
2595
|
x: function(e, t, r) {
|
|
2595
|
-
const n =
|
|
2596
|
+
const n = Le(r.timeZone, e);
|
|
2596
2597
|
switch (t) {
|
|
2597
2598
|
case "x":
|
|
2598
2599
|
return Bt(n);
|
|
@@ -2607,12 +2608,12 @@ const Xi = 60 * 1e3, $i = {
|
|
|
2607
2608
|
},
|
|
2608
2609
|
// Timezone (GMT)
|
|
2609
2610
|
O: function(e, t, r) {
|
|
2610
|
-
const n =
|
|
2611
|
+
const n = Le(r.timeZone, e);
|
|
2611
2612
|
switch (t) {
|
|
2612
2613
|
case "O":
|
|
2613
2614
|
case "OO":
|
|
2614
2615
|
case "OOO":
|
|
2615
|
-
return "GMT" +
|
|
2616
|
+
return "GMT" + ts(n, ":");
|
|
2616
2617
|
case "OOOO":
|
|
2617
2618
|
default:
|
|
2618
2619
|
return "GMT" + K(n, ":");
|
|
@@ -2624,15 +2625,15 @@ const Xi = 60 * 1e3, $i = {
|
|
|
2624
2625
|
case "z":
|
|
2625
2626
|
case "zz":
|
|
2626
2627
|
case "zzz":
|
|
2627
|
-
return
|
|
2628
|
+
return Lt("short", e, r);
|
|
2628
2629
|
case "zzzz":
|
|
2629
2630
|
default:
|
|
2630
|
-
return
|
|
2631
|
+
return Lt("long", e, r);
|
|
2631
2632
|
}
|
|
2632
2633
|
}
|
|
2633
2634
|
};
|
|
2634
|
-
function
|
|
2635
|
-
const r = e ? ue(e, t, !0) /
|
|
2635
|
+
function Le(e, t) {
|
|
2636
|
+
const r = e ? ue(e, t, !0) / Ji : (t == null ? void 0 : t.getTimezoneOffset()) ?? 0;
|
|
2636
2637
|
if (Number.isNaN(r))
|
|
2637
2638
|
throw new RangeError("Invalid time zone specified: " + e);
|
|
2638
2639
|
return r;
|
|
@@ -2651,7 +2652,7 @@ function K(e, t = "") {
|
|
|
2651
2652
|
function Bt(e, t) {
|
|
2652
2653
|
return e % 60 === 0 ? (e > 0 ? "-" : "+") + we(Math.abs(e) / 60, 2) : K(e, t);
|
|
2653
2654
|
}
|
|
2654
|
-
function
|
|
2655
|
+
function ts(e, t = "") {
|
|
2655
2656
|
const r = e > 0 ? "-" : "+", n = Math.abs(e), i = Math.floor(n / 60), o = n % 60;
|
|
2656
2657
|
return o === 0 ? r + String(i) : r + String(i) + t + we(o, 2);
|
|
2657
2658
|
}
|
|
@@ -2659,7 +2660,7 @@ function Xt(e) {
|
|
|
2659
2660
|
const t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
|
|
2660
2661
|
return t.setUTCFullYear(e.getFullYear()), +e - +t;
|
|
2661
2662
|
}
|
|
2662
|
-
const fr = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, Ue = 36e5, $t = 6e4,
|
|
2663
|
+
const fr = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, Ue = 36e5, $t = 6e4, rs = 2, S = {
|
|
2663
2664
|
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
2664
2665
|
datePattern: /^([0-9W+-]+)(.*)/,
|
|
2665
2666
|
// year tokens
|
|
@@ -2698,7 +2699,7 @@ function be(e, t = {}) {
|
|
|
2698
2699
|
throw new TypeError("1 argument required, but only " + arguments.length + " present");
|
|
2699
2700
|
if (e === null)
|
|
2700
2701
|
return /* @__PURE__ */ new Date(NaN);
|
|
2701
|
-
const r = t.additionalDigits == null ?
|
|
2702
|
+
const r = t.additionalDigits == null ? rs : Number(t.additionalDigits);
|
|
2702
2703
|
if (r !== 2 && r !== 1 && r !== 0)
|
|
2703
2704
|
throw new RangeError("additionalDigits must be 0, 1 or 2");
|
|
2704
2705
|
if (e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]")
|
|
@@ -2707,13 +2708,13 @@ function be(e, t = {}) {
|
|
|
2707
2708
|
return new Date(e);
|
|
2708
2709
|
if (Object.prototype.toString.call(e) !== "[object String]")
|
|
2709
2710
|
return /* @__PURE__ */ new Date(NaN);
|
|
2710
|
-
const n =
|
|
2711
|
+
const n = ns(e), { year: i, restDateString: o } = as(n.date, r), c = is(o, i);
|
|
2711
2712
|
if (c === null || isNaN(c.getTime()))
|
|
2712
2713
|
return /* @__PURE__ */ new Date(NaN);
|
|
2713
2714
|
if (c) {
|
|
2714
2715
|
const d = c.getTime();
|
|
2715
2716
|
let h = 0, f;
|
|
2716
|
-
if (n.time && (h =
|
|
2717
|
+
if (n.time && (h = ss(n.time), h === null || isNaN(h)))
|
|
2717
2718
|
return /* @__PURE__ */ new Date(NaN);
|
|
2718
2719
|
if (n.timeZone || t.timeZone) {
|
|
2719
2720
|
if (f = ue(n.timeZone || t.timeZone, new Date(d + h)), isNaN(f))
|
|
@@ -2724,7 +2725,7 @@ function be(e, t = {}) {
|
|
|
2724
2725
|
} else
|
|
2725
2726
|
return /* @__PURE__ */ new Date(NaN);
|
|
2726
2727
|
}
|
|
2727
|
-
function
|
|
2728
|
+
function ns(e) {
|
|
2728
2729
|
const t = {};
|
|
2729
2730
|
let r = S.dateTimePattern.exec(e), n;
|
|
2730
2731
|
if (r ? (t.date = r[1], n = r[3]) : (r = S.datePattern.exec(e), r ? (t.date = r[1], n = r[2]) : (t.date = null, n = e)), n) {
|
|
@@ -2733,7 +2734,7 @@ function Ki(e) {
|
|
|
2733
2734
|
}
|
|
2734
2735
|
return t;
|
|
2735
2736
|
}
|
|
2736
|
-
function
|
|
2737
|
+
function as(e, t) {
|
|
2737
2738
|
if (e) {
|
|
2738
2739
|
const r = S.YYY[t], n = S.YYYYY[t];
|
|
2739
2740
|
let i = S.YYYY.exec(e) || n.exec(e);
|
|
@@ -2756,7 +2757,7 @@ function Ji(e, t) {
|
|
|
2756
2757
|
year: null
|
|
2757
2758
|
};
|
|
2758
2759
|
}
|
|
2759
|
-
function
|
|
2760
|
+
function is(e, t) {
|
|
2760
2761
|
if (t === null)
|
|
2761
2762
|
return null;
|
|
2762
2763
|
let r, n, i;
|
|
@@ -2768,7 +2769,7 @@ function es(e, t) {
|
|
|
2768
2769
|
if (o = S.DDD.exec(e), o) {
|
|
2769
2770
|
r = /* @__PURE__ */ new Date(0);
|
|
2770
2771
|
const c = parseInt(o[1], 10);
|
|
2771
|
-
return
|
|
2772
|
+
return cs(t, c) ? (r.setUTCFullYear(t, 0, c), r) : /* @__PURE__ */ new Date(NaN);
|
|
2772
2773
|
}
|
|
2773
2774
|
if (o = S.MMDD.exec(e), o) {
|
|
2774
2775
|
r = /* @__PURE__ */ new Date(0), n = parseInt(o[1], 10) - 1;
|
|
@@ -2784,7 +2785,7 @@ function es(e, t) {
|
|
|
2784
2785
|
}
|
|
2785
2786
|
return null;
|
|
2786
2787
|
}
|
|
2787
|
-
function
|
|
2788
|
+
function ss(e) {
|
|
2788
2789
|
let t, r, n = S.HH.exec(e);
|
|
2789
2790
|
if (n)
|
|
2790
2791
|
return t = parseFloat(n[1].replace(",", ".")), je(t) ? t % 24 * Ue : NaN;
|
|
@@ -2804,7 +2805,7 @@ function Zt(e, t, r) {
|
|
|
2804
2805
|
const i = n.getUTCDay() || 7, o = t * 7 + r + 1 - i;
|
|
2805
2806
|
return n.setUTCDate(n.getUTCDate() + o), n;
|
|
2806
2807
|
}
|
|
2807
|
-
const
|
|
2808
|
+
const os = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], us = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
2808
2809
|
function hr(e) {
|
|
2809
2810
|
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
2810
2811
|
}
|
|
@@ -2815,12 +2816,12 @@ function Qt(e, t, r) {
|
|
|
2815
2816
|
if (r < 1)
|
|
2816
2817
|
return !1;
|
|
2817
2818
|
const n = hr(e);
|
|
2818
|
-
if (n && r >
|
|
2819
|
+
if (n && r > us[t] || !n && r > os[t])
|
|
2819
2820
|
return !1;
|
|
2820
2821
|
}
|
|
2821
2822
|
return !0;
|
|
2822
2823
|
}
|
|
2823
|
-
function
|
|
2824
|
+
function cs(e, t) {
|
|
2824
2825
|
if (t < 1)
|
|
2825
2826
|
return !1;
|
|
2826
2827
|
const r = hr(e);
|
|
@@ -2832,16 +2833,16 @@ function Kt(e, t) {
|
|
|
2832
2833
|
function je(e, t, r) {
|
|
2833
2834
|
return !(e < 0 || e >= 25 || t != null && (t < 0 || t >= 60) || r != null && (r < 0 || r >= 60));
|
|
2834
2835
|
}
|
|
2835
|
-
const
|
|
2836
|
-
function
|
|
2836
|
+
const ls = /([xXOz]+)|''|'(''|[^'])+('|$)/g;
|
|
2837
|
+
function ds(e, t, r = {}) {
|
|
2837
2838
|
t = String(t);
|
|
2838
|
-
const n = t.match(
|
|
2839
|
+
const n = t.match(ls);
|
|
2839
2840
|
if (n) {
|
|
2840
2841
|
const i = be(r.originalDate || e, r);
|
|
2841
2842
|
t = n.reduce(function(o, c) {
|
|
2842
2843
|
if (c[0] === "'")
|
|
2843
2844
|
return o;
|
|
2844
|
-
const d = o.indexOf(c), h = o[d - 1] === "'", f = o.replace(c, "'" +
|
|
2845
|
+
const d = o.indexOf(c), h = o[d - 1] === "'", f = o.replace(c, "'" + es[c[0]](i, c, r) + "'");
|
|
2845
2846
|
return h ? f.substring(0, d - 1) + f.substring(d + 1) : f;
|
|
2846
2847
|
}, t);
|
|
2847
2848
|
}
|
|
@@ -2852,14 +2853,14 @@ function mr(e, t, r) {
|
|
|
2852
2853
|
const n = ue(t, e, !0), i = new Date(e.getTime() - n), o = /* @__PURE__ */ new Date(0);
|
|
2853
2854
|
return o.setFullYear(i.getUTCFullYear(), i.getUTCMonth(), i.getUTCDate()), o.setHours(i.getUTCHours(), i.getUTCMinutes(), i.getUTCSeconds(), i.getUTCMilliseconds()), o;
|
|
2854
2855
|
}
|
|
2855
|
-
function
|
|
2856
|
+
function fs(e, t, r, n) {
|
|
2856
2857
|
return n = {
|
|
2857
2858
|
...n,
|
|
2858
2859
|
timeZone: t,
|
|
2859
2860
|
originalDate: e
|
|
2860
|
-
},
|
|
2861
|
+
}, ds(mr(e, t, { timeZone: n.timeZone }), r, n);
|
|
2861
2862
|
}
|
|
2862
|
-
function
|
|
2863
|
+
function hs(e, t, r) {
|
|
2863
2864
|
if (typeof e == "string" && !e.match(fr))
|
|
2864
2865
|
return be(e, { ...r, timeZone: t });
|
|
2865
2866
|
e = be(e, r);
|
|
@@ -2869,7 +2870,7 @@ function us(e, t, r) {
|
|
|
2869
2870
|
function yr(e, t) {
|
|
2870
2871
|
return -ue(e, t);
|
|
2871
2872
|
}
|
|
2872
|
-
function
|
|
2873
|
+
function qs(e) {
|
|
2873
2874
|
return lr(e, "yyyy-MM-dd'T'HH:mm:ss.SSSXXX");
|
|
2874
2875
|
}
|
|
2875
2876
|
function Jt(e, t = {}) {
|
|
@@ -2880,12 +2881,12 @@ function Jt(e, t = {}) {
|
|
|
2880
2881
|
let n = "MMM dd, yyy hh:mm a";
|
|
2881
2882
|
t.short && (n = "MMM dd, yyy"), t.includeTZ && (n += " (z)");
|
|
2882
2883
|
const i = new Date(e);
|
|
2883
|
-
return
|
|
2884
|
+
return fs(i, r, n);
|
|
2884
2885
|
} catch {
|
|
2885
2886
|
return console.error("Invalid value passed to formatTime", e), "(invalid date)";
|
|
2886
2887
|
}
|
|
2887
2888
|
}
|
|
2888
|
-
function
|
|
2889
|
+
function Ls(e, t) {
|
|
2889
2890
|
return `${Jt(e.getTime())} - ${Jt(t.getTime(), { includeTZ: !0 })}`;
|
|
2890
2891
|
}
|
|
2891
2892
|
const Te = {
|
|
@@ -2903,20 +2904,20 @@ const Te = {
|
|
|
2903
2904
|
weekly: 60 * 60 * 24 * 7 * 1e3,
|
|
2904
2905
|
trend: 0
|
|
2905
2906
|
};
|
|
2906
|
-
function
|
|
2907
|
+
function Us(e, t) {
|
|
2907
2908
|
return e.map((r) => ({
|
|
2908
2909
|
value: r,
|
|
2909
2910
|
label: t.t(`configuration.vitals.reports.granularity.${r}`)
|
|
2910
2911
|
}));
|
|
2911
2912
|
}
|
|
2912
|
-
function
|
|
2913
|
+
function ms(e, t) {
|
|
2913
2914
|
return {
|
|
2914
2915
|
duration: e,
|
|
2915
2916
|
type: "duration",
|
|
2916
2917
|
origin: t
|
|
2917
2918
|
};
|
|
2918
2919
|
}
|
|
2919
|
-
function
|
|
2920
|
+
function js(e) {
|
|
2920
2921
|
return e && er.find((r) => e <= Te[r]) || null;
|
|
2921
2922
|
}
|
|
2922
2923
|
function gr(e, t, r, n) {
|
|
@@ -2924,7 +2925,7 @@ function gr(e, t, r, n) {
|
|
|
2924
2925
|
let o = 0;
|
|
2925
2926
|
return i >= Te.daily && (n ? o = -yr(n, t) : o = t.getTimezoneOffset() * 60 * 1e3), new Date(e((t.getTime() - o) / i) * i + o);
|
|
2926
2927
|
}
|
|
2927
|
-
function
|
|
2928
|
+
function ys(e, t, r) {
|
|
2928
2929
|
return gr(Math.floor, e, t, r);
|
|
2929
2930
|
}
|
|
2930
2931
|
function pr(e, t, r) {
|
|
@@ -2943,7 +2944,7 @@ class Ee {
|
|
|
2943
2944
|
if (t)
|
|
2944
2945
|
return new Date(this.endDate().getTime() - this.timeframe.timeframeLengthMs() * n);
|
|
2945
2946
|
{
|
|
2946
|
-
const i = this.endDate(), o = this.timeframe.rawStart(this.tz), c =
|
|
2947
|
+
const i = this.endDate(), o = this.timeframe.rawStart(this.tz), c = ys(o, r, this.tz), h = (i.getTime() - c.getTime()) * (n - 1);
|
|
2947
2948
|
return new Date(c.getTime() - h);
|
|
2948
2949
|
}
|
|
2949
2950
|
}
|
|
@@ -2951,15 +2952,15 @@ class Ee {
|
|
|
2951
2952
|
return Math.floor(this.granularityMs() / 1e3);
|
|
2952
2953
|
}
|
|
2953
2954
|
granularityDruid() {
|
|
2954
|
-
return
|
|
2955
|
+
return ms(this.granularityMs(), this.startDate().toISOString());
|
|
2955
2956
|
}
|
|
2956
2957
|
// Return a UNIX timestamp suitable for use in the `start` query param.
|
|
2957
2958
|
startSeconds() {
|
|
2958
|
-
return
|
|
2959
|
+
return qt(this.startDate());
|
|
2959
2960
|
}
|
|
2960
2961
|
// Return a UNIX timestamp suitable for use in the `end` query param.
|
|
2961
2962
|
endSeconds() {
|
|
2962
|
-
return
|
|
2963
|
+
return qt(this.endDate());
|
|
2963
2964
|
}
|
|
2964
2965
|
// Return epoch time in milliseconds, suitable for use in the `startMs` query param.
|
|
2965
2966
|
startMs() {
|
|
@@ -2970,7 +2971,7 @@ class Ee {
|
|
|
2970
2971
|
return Wt(this.endDate());
|
|
2971
2972
|
}
|
|
2972
2973
|
}
|
|
2973
|
-
class
|
|
2974
|
+
class zs extends Ee {
|
|
2974
2975
|
constructor(r, n, i, o, c) {
|
|
2975
2976
|
super(r, i, o);
|
|
2976
2977
|
b(this, "granularity");
|
|
@@ -2986,7 +2987,7 @@ class Fs extends Ee {
|
|
|
2986
2987
|
return Te[this.granularity];
|
|
2987
2988
|
}
|
|
2988
2989
|
}
|
|
2989
|
-
class
|
|
2990
|
+
class gs extends Ee {
|
|
2990
2991
|
startDate() {
|
|
2991
2992
|
return this.calculateStartDate(this.timeframe.isRelative, this.dataGranularity);
|
|
2992
2993
|
}
|
|
@@ -2997,7 +2998,7 @@ class ds extends Ee {
|
|
|
2997
2998
|
return this.endDate().getTime() - this.startDate().getTime();
|
|
2998
2999
|
}
|
|
2999
3000
|
}
|
|
3000
|
-
class
|
|
3001
|
+
class Vs extends gs {
|
|
3001
3002
|
startDate() {
|
|
3002
3003
|
return this.calculateStartDate(this.timeframe.isRelative, this.dataGranularity, 2);
|
|
3003
3004
|
}
|
|
@@ -3006,14 +3007,14 @@ class Ws extends ds {
|
|
|
3006
3007
|
}
|
|
3007
3008
|
}
|
|
3008
3009
|
var ge = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
3009
|
-
function
|
|
3010
|
+
function ps(e) {
|
|
3010
3011
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
3011
3012
|
}
|
|
3012
3013
|
var De = { exports: {} };
|
|
3013
3014
|
De.exports;
|
|
3014
3015
|
(function(e, t) {
|
|
3015
|
-
var r = 200, n = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", c = "[object Array]", d = "[object Boolean]", h = "[object Date]", f = "[object Error]",
|
|
3016
|
-
w[o] = w[c] = w[Ke] = w[ce] = w[d] = w[h] = w[Je] = w[et] = w[tt] = w[rt] = w[nt] = w[g] = w[x] = w[N] = w[R] = w[
|
|
3016
|
+
var r = 200, n = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", c = "[object Array]", d = "[object Boolean]", h = "[object Date]", f = "[object Error]", p = "[object Function]", y = "[object GeneratorFunction]", g = "[object Map]", x = "[object Number]", N = "[object Object]", P = "[object Promise]", R = "[object RegExp]", q = "[object Set]", O = "[object String]", T = "[object Symbol]", L = "[object WeakMap]", Ke = "[object ArrayBuffer]", ce = "[object DataView]", Je = "[object Float32Array]", et = "[object Float64Array]", tt = "[object Int8Array]", rt = "[object Int16Array]", nt = "[object Int32Array]", at = "[object Uint8Array]", it = "[object Uint8ClampedArray]", st = "[object Uint16Array]", ot = "[object Uint32Array]", wr = /[\\^$.*+?()[\]{}|]/g, br = /\w*$/, Tr = /^\[object .+?Constructor\]$/, Dr = /^(?:0|[1-9]\d*)$/, w = {};
|
|
3017
|
+
w[o] = w[c] = w[Ke] = w[ce] = w[d] = w[h] = w[Je] = w[et] = w[tt] = w[rt] = w[nt] = w[g] = w[x] = w[N] = w[R] = w[q] = w[O] = w[T] = w[at] = w[it] = w[st] = w[ot] = !0, w[f] = w[p] = w[L] = !1;
|
|
3017
3018
|
var Mr = typeof ge == "object" && ge && ge.Object === Object && ge, Or = typeof self == "object" && self && self.Object === Object && self, k = Mr || Or || Function("return this")(), ut = t && !t.nodeType && t, ct = ut && !0 && e && !e.nodeType && e, Sr = ct && ct.exports === ut;
|
|
3018
3019
|
function vr(a, s) {
|
|
3019
3020
|
return a.set(s[0], s[1]), a;
|
|
@@ -3075,7 +3076,7 @@ De.exports;
|
|
|
3075
3076
|
return a ? "Symbol(src)_1." + a : "";
|
|
3076
3077
|
}(), yt = Rr.toString, H = le.hasOwnProperty, de = le.toString, kr = RegExp(
|
|
3077
3078
|
"^" + yt.call(H).replace(wr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
3078
|
-
), gt = Sr ? k.Buffer : void 0, pt = k.Symbol, _t = k.Uint8Array, Yr = xe(Object.getPrototypeOf, Object), Gr = Object.create, Ar = le.propertyIsEnumerable, Hr = Cr.splice, wt = Object.getOwnPropertySymbols, Fr = gt ? gt.isBuffer : void 0, Wr = xe(Object.keys, Object), Pe = $(k, "DataView"), te = $(k, "Map"), Ie = $(k, "Promise"), Ce = $(k, "Set"), Re = $(k, "WeakMap"), re = $(Object, "create"),
|
|
3079
|
+
), gt = Sr ? k.Buffer : void 0, pt = k.Symbol, _t = k.Uint8Array, Yr = xe(Object.getPrototypeOf, Object), Gr = Object.create, Ar = le.propertyIsEnumerable, Hr = Cr.splice, wt = Object.getOwnPropertySymbols, Fr = gt ? gt.isBuffer : void 0, Wr = xe(Object.keys, Object), Pe = $(k, "DataView"), te = $(k, "Map"), Ie = $(k, "Promise"), Ce = $(k, "Set"), Re = $(k, "WeakMap"), re = $(Object, "create"), qr = z(Pe), Lr = z(te), Ur = z(Ie), jr = z(Ce), zr = z(Re), bt = pt ? pt.prototype : void 0, Tt = bt ? bt.valueOf : void 0;
|
|
3079
3080
|
function U(a) {
|
|
3080
3081
|
var s = -1, u = a ? a.length : 0;
|
|
3081
3082
|
for (this.clear(); ++s < u; ) {
|
|
@@ -3218,7 +3219,7 @@ De.exports;
|
|
|
3218
3219
|
if (E = Pn(a), !s)
|
|
3219
3220
|
return En(a, E);
|
|
3220
3221
|
} else {
|
|
3221
|
-
var Z = j(a), Pt = Z ==
|
|
3222
|
+
var Z = j(a), Pt = Z == p || Z == y;
|
|
3222
3223
|
if (Fn(a))
|
|
3223
3224
|
return bn(a, s);
|
|
3224
3225
|
if (Z == N || Z == o || Pt && !v) {
|
|
@@ -3327,21 +3328,21 @@ De.exports;
|
|
|
3327
3328
|
var u = Ir(a, s);
|
|
3328
3329
|
return _n(u) ? u : void 0;
|
|
3329
3330
|
}
|
|
3330
|
-
var Ot = wt ? xe(wt, Object) :
|
|
3331
|
-
(Pe && j(new Pe(new ArrayBuffer(1))) != ce || te && j(new te()) != g || Ie && j(Ie.resolve()) != P || Ce && j(new Ce()) !=
|
|
3331
|
+
var Ot = wt ? xe(wt, Object) : Ln, j = pn;
|
|
3332
|
+
(Pe && j(new Pe(new ArrayBuffer(1))) != ce || te && j(new te()) != g || Ie && j(Ie.resolve()) != P || Ce && j(new Ce()) != q || Re && j(new Re()) != L) && (j = function(a) {
|
|
3332
3333
|
var s = de.call(a), u = s == N ? a.constructor : void 0, l = u ? z(u) : void 0;
|
|
3333
3334
|
if (l)
|
|
3334
3335
|
switch (l) {
|
|
3335
|
-
case Lr:
|
|
3336
|
-
return ce;
|
|
3337
3336
|
case qr:
|
|
3337
|
+
return ce;
|
|
3338
|
+
case Lr:
|
|
3338
3339
|
return g;
|
|
3339
3340
|
case Ur:
|
|
3340
3341
|
return P;
|
|
3341
3342
|
case jr:
|
|
3342
|
-
return L;
|
|
3343
|
-
case zr:
|
|
3344
3343
|
return q;
|
|
3344
|
+
case zr:
|
|
3345
|
+
return L;
|
|
3345
3346
|
}
|
|
3346
3347
|
return s;
|
|
3347
3348
|
});
|
|
@@ -3379,7 +3380,7 @@ De.exports;
|
|
|
3379
3380
|
return new D(a);
|
|
3380
3381
|
case R:
|
|
3381
3382
|
return Mn(a);
|
|
3382
|
-
case
|
|
3383
|
+
case q:
|
|
3383
3384
|
return On(a, l, u);
|
|
3384
3385
|
case T:
|
|
3385
3386
|
return Sn(a);
|
|
@@ -3426,12 +3427,12 @@ De.exports;
|
|
|
3426
3427
|
return a != null && Wn(a.length) && !xt(a);
|
|
3427
3428
|
}
|
|
3428
3429
|
function Hn(a) {
|
|
3429
|
-
return
|
|
3430
|
+
return qn(a) && Et(a);
|
|
3430
3431
|
}
|
|
3431
3432
|
var Fn = Fr || Un;
|
|
3432
3433
|
function xt(a) {
|
|
3433
3434
|
var s = me(a) ? de.call(a) : "";
|
|
3434
|
-
return s ==
|
|
3435
|
+
return s == p || s == y;
|
|
3435
3436
|
}
|
|
3436
3437
|
function Wn(a) {
|
|
3437
3438
|
return typeof a == "number" && a > -1 && a % 1 == 0 && a <= i;
|
|
@@ -3440,13 +3441,13 @@ De.exports;
|
|
|
3440
3441
|
var s = typeof a;
|
|
3441
3442
|
return !!a && (s == "object" || s == "function");
|
|
3442
3443
|
}
|
|
3443
|
-
function
|
|
3444
|
+
function qn(a) {
|
|
3444
3445
|
return !!a && typeof a == "object";
|
|
3445
3446
|
}
|
|
3446
3447
|
function Ae(a) {
|
|
3447
3448
|
return Et(a) ? hn(a) : wn(a);
|
|
3448
3449
|
}
|
|
3449
|
-
function
|
|
3450
|
+
function Ln() {
|
|
3450
3451
|
return [];
|
|
3451
3452
|
}
|
|
3452
3453
|
function Un() {
|
|
@@ -3454,8 +3455,8 @@ De.exports;
|
|
|
3454
3455
|
}
|
|
3455
3456
|
e.exports = Gn;
|
|
3456
3457
|
})(De, De.exports);
|
|
3457
|
-
var
|
|
3458
|
-
const
|
|
3458
|
+
var _s = De.exports;
|
|
3459
|
+
const ws = /* @__PURE__ */ ps(_s), ee = (e, t) => new Date(e.getTime() - yr(t, e));
|
|
3459
3460
|
class I {
|
|
3460
3461
|
constructor(t) {
|
|
3461
3462
|
b(this, "timeframeText");
|
|
@@ -3524,11 +3525,11 @@ class I {
|
|
|
3524
3525
|
tzAdjustedDate(t) {
|
|
3525
3526
|
if (!t)
|
|
3526
3527
|
return /* @__PURE__ */ new Date();
|
|
3527
|
-
const r =
|
|
3528
|
+
const r = hs(/* @__PURE__ */ new Date(), new Intl.DateTimeFormat().resolvedOptions().timeZone);
|
|
3528
3529
|
return mr(r, t);
|
|
3529
3530
|
}
|
|
3530
3531
|
}
|
|
3531
|
-
class
|
|
3532
|
+
class bs extends I {
|
|
3532
3533
|
rawStart(t) {
|
|
3533
3534
|
let r = A(this.tzAdjustedDate(t), { weekStartsOn: 1 });
|
|
3534
3535
|
return t && (r = ee(r, t)), r;
|
|
@@ -3537,7 +3538,7 @@ class ys extends I {
|
|
|
3537
3538
|
return 60 * 60 * 24 * 7;
|
|
3538
3539
|
}
|
|
3539
3540
|
}
|
|
3540
|
-
class
|
|
3541
|
+
class Ts extends I {
|
|
3541
3542
|
rawStart(t) {
|
|
3542
3543
|
let r = J(this.tzAdjustedDate(t));
|
|
3543
3544
|
return t && (r = ee(r, t)), r;
|
|
@@ -3546,7 +3547,7 @@ class gs extends I {
|
|
|
3546
3547
|
return 60 * 60 * 24 * 31;
|
|
3547
3548
|
}
|
|
3548
3549
|
}
|
|
3549
|
-
class
|
|
3550
|
+
class Ds extends I {
|
|
3550
3551
|
rawEnd(t) {
|
|
3551
3552
|
let r = A(this.tzAdjustedDate(t), { weekStartsOn: 1 });
|
|
3552
3553
|
return t && (r = ee(r, t)), r;
|
|
@@ -3559,7 +3560,7 @@ class ps extends I {
|
|
|
3559
3560
|
return t && (n = ee(n, t)), n;
|
|
3560
3561
|
}
|
|
3561
3562
|
}
|
|
3562
|
-
class
|
|
3563
|
+
class Ms extends I {
|
|
3563
3564
|
rawEnd(t) {
|
|
3564
3565
|
let r = J(this.tzAdjustedDate(t));
|
|
3565
3566
|
return t && (r = ee(r, t)), r;
|
|
@@ -3569,7 +3570,7 @@ class _s extends I {
|
|
|
3569
3570
|
return t && (r = ee(r, t)), r;
|
|
3570
3571
|
}
|
|
3571
3572
|
}
|
|
3572
|
-
const
|
|
3573
|
+
const Os = /* @__PURE__ */ new Map([
|
|
3573
3574
|
[
|
|
3574
3575
|
m.FIFTEEN_MIN,
|
|
3575
3576
|
new I({
|
|
@@ -3677,7 +3678,7 @@ const ws = /* @__PURE__ */ new Map([
|
|
|
3677
3678
|
],
|
|
3678
3679
|
[
|
|
3679
3680
|
m.CURRENT_WEEK,
|
|
3680
|
-
new
|
|
3681
|
+
new bs({
|
|
3681
3682
|
key: m.CURRENT_WEEK,
|
|
3682
3683
|
display: "This week",
|
|
3683
3684
|
timeframeText: "Week",
|
|
@@ -3695,7 +3696,7 @@ const ws = /* @__PURE__ */ new Map([
|
|
|
3695
3696
|
],
|
|
3696
3697
|
[
|
|
3697
3698
|
m.CURRENT_MONTH,
|
|
3698
|
-
new
|
|
3699
|
+
new Ts({
|
|
3699
3700
|
key: m.CURRENT_MONTH,
|
|
3700
3701
|
display: "This month",
|
|
3701
3702
|
timeframeText: "Month",
|
|
@@ -3711,7 +3712,7 @@ const ws = /* @__PURE__ */ new Map([
|
|
|
3711
3712
|
],
|
|
3712
3713
|
[
|
|
3713
3714
|
m.PREVIOUS_WEEK,
|
|
3714
|
-
new
|
|
3715
|
+
new Ds({
|
|
3715
3716
|
key: m.PREVIOUS_WEEK,
|
|
3716
3717
|
display: "Previous week",
|
|
3717
3718
|
timeframeText: "Week",
|
|
@@ -3726,14 +3727,14 @@ const ws = /* @__PURE__ */ new Map([
|
|
|
3726
3727
|
],
|
|
3727
3728
|
[
|
|
3728
3729
|
m.PREVIOUS_MONTH,
|
|
3729
|
-
new
|
|
3730
|
+
new Ms({
|
|
3730
3731
|
key: m.PREVIOUS_MONTH,
|
|
3731
3732
|
display: "Previous month",
|
|
3732
3733
|
timeframeText: "Month",
|
|
3733
3734
|
timeframeLength: () => {
|
|
3734
3735
|
let e = 0;
|
|
3735
3736
|
const t = J(/* @__PURE__ */ new Date()), r = J(dr(/* @__PURE__ */ new Date()));
|
|
3736
|
-
return t.getTimezoneOffset() !== r.getTimezoneOffset() && (e =
|
|
3737
|
+
return t.getTimezoneOffset() !== r.getTimezoneOffset() && (e = Ss(t, r)), 60 * 60 * 24 * Gi((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + Hi(e);
|
|
3737
3738
|
},
|
|
3738
3739
|
defaultResponseGranularity: "daily",
|
|
3739
3740
|
dataGranularity: "daily",
|
|
@@ -3742,9 +3743,9 @@ const ws = /* @__PURE__ */ new Map([
|
|
|
3742
3743
|
})
|
|
3743
3744
|
]
|
|
3744
3745
|
]);
|
|
3745
|
-
function
|
|
3746
|
+
function Bs(e) {
|
|
3746
3747
|
const t = new Date(e.start), r = new Date(e.end), n = (r.getTime() - t.getTime()) / 1e3;
|
|
3747
|
-
return e.timePeriodsKey &&
|
|
3748
|
+
return e.timePeriodsKey && ws(Os.get(e.timePeriodsKey)) || new I({
|
|
3748
3749
|
key: "custom",
|
|
3749
3750
|
timeframeText: "custom",
|
|
3750
3751
|
display: "custom",
|
|
@@ -3757,14 +3758,14 @@ function Ls(e) {
|
|
|
3757
3758
|
allowedTiers: ["free", "plus", "enterprise"]
|
|
3758
3759
|
});
|
|
3759
3760
|
}
|
|
3760
|
-
function
|
|
3761
|
+
function Xs(e) {
|
|
3761
3762
|
return {
|
|
3762
3763
|
...e.key !== "custom" && { timePeriodsKey: e.key },
|
|
3763
3764
|
start: e.rawStart(),
|
|
3764
3765
|
end: e.rawEnd()
|
|
3765
3766
|
};
|
|
3766
3767
|
}
|
|
3767
|
-
function
|
|
3768
|
+
function $s(e) {
|
|
3768
3769
|
return {
|
|
3769
3770
|
key: e.key,
|
|
3770
3771
|
display: e.display,
|
|
@@ -3775,10 +3776,10 @@ function Us(e) {
|
|
|
3775
3776
|
end: () => e.rawEnd()
|
|
3776
3777
|
};
|
|
3777
3778
|
}
|
|
3778
|
-
function
|
|
3779
|
-
return
|
|
3779
|
+
function Ss(e, t) {
|
|
3780
|
+
return Fi(e.getTimezoneOffset() - t.getTimezoneOffset());
|
|
3780
3781
|
}
|
|
3781
|
-
const
|
|
3782
|
+
const Zs = {
|
|
3782
3783
|
"15M": m.FIFTEEN_MIN,
|
|
3783
3784
|
"1H": m.ONE_HOUR,
|
|
3784
3785
|
"6H": m.SIX_HOUR,
|
|
@@ -3807,7 +3808,7 @@ class Qe {
|
|
|
3807
3808
|
return Math.floor(i * (r - t + 1)) + t;
|
|
3808
3809
|
}
|
|
3809
3810
|
}
|
|
3810
|
-
const
|
|
3811
|
+
const Qs = (e, t, r) => {
|
|
3811
3812
|
const n = _r(10, 1e4), i = new Qe(n), o = Date.now() - 6 * 60 * 60 * 1e3, c = Date.now(), d = [];
|
|
3812
3813
|
let h = 0;
|
|
3813
3814
|
for (let y = o; y <= c; y += 60 * 60 * 1e3)
|
|
@@ -3845,7 +3846,7 @@ const zs = (e, t, r) => {
|
|
|
3845
3846
|
deleted: !1
|
|
3846
3847
|
};
|
|
3847
3848
|
});
|
|
3848
|
-
const
|
|
3849
|
+
const p = {
|
|
3849
3850
|
start_ms: o,
|
|
3850
3851
|
end_ms: c,
|
|
3851
3852
|
start: new Date(o).toISOString(),
|
|
@@ -3862,22 +3863,22 @@ const zs = (e, t, r) => {
|
|
|
3862
3863
|
};
|
|
3863
3864
|
return {
|
|
3864
3865
|
data: d,
|
|
3865
|
-
meta:
|
|
3866
|
+
meta: p
|
|
3866
3867
|
};
|
|
3867
|
-
},
|
|
3868
|
+
}, Ks = (e, t) => {
|
|
3868
3869
|
const r = _r(10, 1e4), n = new Qe(r), i = Date.now() - 6 * 60 * 60 * 1e3, o = Date.now(), c = [], d = {};
|
|
3869
3870
|
e.forEach((f) => {
|
|
3870
3871
|
d[f.name] = 0;
|
|
3871
3872
|
});
|
|
3872
3873
|
for (let f = i; f <= o; f += 60 * 60 * 1e3) {
|
|
3873
|
-
const
|
|
3874
|
+
const p = {};
|
|
3874
3875
|
e.forEach((g) => {
|
|
3875
|
-
d[g.name] += n.next(50, 500),
|
|
3876
|
+
d[g.name] += n.next(50, 500), p[g.name] = d[g.name];
|
|
3876
3877
|
});
|
|
3877
3878
|
const y = {
|
|
3878
3879
|
version: "1.0",
|
|
3879
3880
|
timestamp: new Date(f).toISOString(),
|
|
3880
|
-
event:
|
|
3881
|
+
event: p
|
|
3881
3882
|
};
|
|
3882
3883
|
c.push(y);
|
|
3883
3884
|
}
|
|
@@ -3888,7 +3889,7 @@ const zs = (e, t, r) => {
|
|
|
3888
3889
|
end: new Date(o).toISOString(),
|
|
3889
3890
|
query_id: "12345",
|
|
3890
3891
|
metric_names: e.map((f) => f.name),
|
|
3891
|
-
metric_units: e.reduce((f,
|
|
3892
|
+
metric_units: e.reduce((f, p) => (f[p.name] = p.unit, f), {}),
|
|
3892
3893
|
granularity_ms: 60 * 60 * 1e3,
|
|
3893
3894
|
// 1 hour in ms
|
|
3894
3895
|
display: {},
|
|
@@ -3898,7 +3899,7 @@ const zs = (e, t, r) => {
|
|
|
3898
3899
|
data: c,
|
|
3899
3900
|
meta: h
|
|
3900
3901
|
};
|
|
3901
|
-
},
|
|
3902
|
+
}, Js = (e, t, r) => {
|
|
3902
3903
|
const n = Math.floor(Math.random() * 9991) + 10, i = new Qe(n), o = Date.now() - 6 * 60 * 60 * 1e3, c = Date.now(), d = new Date((o + c) / 2).toISOString(), h = [];
|
|
3903
3904
|
if (t) {
|
|
3904
3905
|
const y = Object.keys(t), g = Object.values(t), x = (N, P) => {
|
|
@@ -3936,7 +3937,7 @@ const zs = (e, t, r) => {
|
|
|
3936
3937
|
deleted: !1
|
|
3937
3938
|
};
|
|
3938
3939
|
});
|
|
3939
|
-
const
|
|
3940
|
+
const p = {
|
|
3940
3941
|
start_ms: o,
|
|
3941
3942
|
end_ms: c,
|
|
3942
3943
|
start: new Date(o).toISOString(),
|
|
@@ -3952,86 +3953,119 @@ const zs = (e, t, r) => {
|
|
|
3952
3953
|
};
|
|
3953
3954
|
return {
|
|
3954
3955
|
data: h,
|
|
3955
|
-
meta:
|
|
3956
|
+
meta: p
|
|
3956
3957
|
};
|
|
3957
3958
|
};
|
|
3958
3959
|
function _r(e, t) {
|
|
3959
3960
|
return e = Math.ceil(e), t = Math.floor(t), Math.floor(Math.random() * (t - e + 1) + e);
|
|
3960
3961
|
}
|
|
3962
|
+
function eo({ buildQuery: e, defaultLimit: t = $n }) {
|
|
3963
|
+
const r = Vn(Zn);
|
|
3964
|
+
if (!(r != null && r.queryFn))
|
|
3965
|
+
throw new Error("useAnalyticsRequestExport: missing injected query bridge.");
|
|
3966
|
+
const n = Bn({ status: "loading" });
|
|
3967
|
+
let i = null;
|
|
3968
|
+
const o = () => {
|
|
3969
|
+
i == null || i.abort(), i = null;
|
|
3970
|
+
}, c = () => {
|
|
3971
|
+
n.value = { status: "loading" };
|
|
3972
|
+
};
|
|
3973
|
+
Xn(o);
|
|
3974
|
+
async function d(h = t) {
|
|
3975
|
+
n.value = { status: "loading" }, i == null || i.abort(), i = new AbortController();
|
|
3976
|
+
try {
|
|
3977
|
+
if (r) {
|
|
3978
|
+
const f = e(h), p = await r.queryFn(f, i);
|
|
3979
|
+
p && (n.value = { status: "success", chartData: p });
|
|
3980
|
+
}
|
|
3981
|
+
} catch (f) {
|
|
3982
|
+
n.value = { status: "error", error: f };
|
|
3983
|
+
}
|
|
3984
|
+
}
|
|
3985
|
+
return {
|
|
3986
|
+
exportState: n,
|
|
3987
|
+
requestExport: d,
|
|
3988
|
+
cancelExport: o,
|
|
3989
|
+
resetExport: c
|
|
3990
|
+
};
|
|
3991
|
+
}
|
|
3961
3992
|
export {
|
|
3962
|
-
|
|
3993
|
+
Vs as DeltaQueryTime,
|
|
3994
|
+
$n as EXPORT_RECORD_LIMIT,
|
|
3963
3995
|
Te as Granularities,
|
|
3964
|
-
|
|
3996
|
+
Zn as INJECT_QUERY_PROVIDER,
|
|
3997
|
+
xs as REFRESH_INTERVAL_MS,
|
|
3965
3998
|
Qe as SeededRandom,
|
|
3966
|
-
|
|
3967
|
-
|
|
3999
|
+
Zs as TIMEFRAME_LOOKUP,
|
|
4000
|
+
Os as TimePeriods,
|
|
3968
4001
|
I as Timeframe,
|
|
3969
4002
|
m as TimeframeKeys,
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
4003
|
+
zs as TimeseriesQueryTime,
|
|
4004
|
+
gs as UnaryQueryTime,
|
|
4005
|
+
ta as aiExploreAggregations,
|
|
4006
|
+
ba as apiUsageQuerySchema,
|
|
4007
|
+
la as barChartSchema,
|
|
3975
4008
|
tr as basicExploreAggregations,
|
|
3976
|
-
|
|
4009
|
+
Ta as basicQuerySchema,
|
|
3977
4010
|
pr as ceilToNearestTimeGrain,
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
4011
|
+
pa as choroplethMapSchema,
|
|
4012
|
+
ua as countryISOA2,
|
|
4013
|
+
Fs as dashboardConfigSchema,
|
|
4014
|
+
Hs as dashboardTileTypes,
|
|
4015
|
+
oa as datasourceToFilterableDimensions,
|
|
4016
|
+
Bs as datePickerSelectionToTimeframe,
|
|
4017
|
+
ha as donutChartSchema,
|
|
4018
|
+
Ss as dstOffsetHours,
|
|
4019
|
+
ea as exploreAggregations,
|
|
4020
|
+
Qn as exploreFilterTypesV2,
|
|
3988
4021
|
Se as filterableAiExploreDimensions,
|
|
3989
4022
|
Me as filterableBasicExploreDimensions,
|
|
3990
4023
|
Oe as filterableExploreDimensions,
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
4024
|
+
na as filterableRequestDimensions,
|
|
4025
|
+
sa as filterableRequestMetrics,
|
|
4026
|
+
ks as filterableRequestWildcardDimensions,
|
|
4027
|
+
ys as floorToNearestTimeGrain,
|
|
4028
|
+
qs as formatISOTimeWithTZ,
|
|
3996
4029
|
Jt as formatTime,
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4030
|
+
Ls as formatTimeRange,
|
|
4031
|
+
fa as gaugeChartSchema,
|
|
4032
|
+
Js as generateCrossSectionalData,
|
|
4033
|
+
Ks as generateMultipleMetricTimeSeriesData,
|
|
4034
|
+
Qs as generateSingleMetricTimeSeriesData,
|
|
4035
|
+
Ws as getFieldDataSources,
|
|
4036
|
+
Us as granularitiesToOptions,
|
|
4037
|
+
ms as granularityMsToQuery,
|
|
4005
4038
|
er as granularityValues,
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4039
|
+
Da as llmUsageSchema,
|
|
4040
|
+
ya as metricCardSchema,
|
|
4041
|
+
js as msToGranularity,
|
|
4042
|
+
Gs as queryDatasources,
|
|
4010
4043
|
nr as queryableAiExploreDimensions,
|
|
4011
4044
|
Ve as queryableBasicExploreDimensions,
|
|
4012
4045
|
rr as queryableExploreDimensions,
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4046
|
+
ra as queryableRequestDimensions,
|
|
4047
|
+
ia as queryableRequestMetrics,
|
|
4048
|
+
aa as queryableRequestWildcardDimensions,
|
|
4016
4049
|
_r as rand,
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4050
|
+
Ys as relativeTimeRangeValuesRequestV2,
|
|
4051
|
+
Jn as relativeTimeRangeValuesV4,
|
|
4052
|
+
Ns as reportChartTypes,
|
|
4053
|
+
Kn as requestFilterTypeEmptyV2,
|
|
4054
|
+
Ps as requestFilterTypeEqualsV2,
|
|
4055
|
+
Is as requestFilterTypeMetricV2,
|
|
4056
|
+
Cs as requestFilterTypeWildcardV2,
|
|
4057
|
+
ga as singleValueSchema,
|
|
4058
|
+
ca as slottableSchema,
|
|
4059
|
+
As as stripUnknownFilters,
|
|
4060
|
+
va as tileConfigSchema,
|
|
4061
|
+
Oa as tileDefinitionSchema,
|
|
4062
|
+
Sa as tileLayoutSchema,
|
|
4063
|
+
Rs as timeRangeTypeV2,
|
|
4064
|
+
Xs as timeframeToDatepickerSelection,
|
|
4065
|
+
$s as timeframeToDatepickerTimeperiod,
|
|
4066
|
+
da as timeseriesChartSchema,
|
|
4067
|
+
ma as topNTableSchema,
|
|
4068
|
+
eo as useAnalyticsRequestExport,
|
|
4069
|
+
Ma as validDashboardQuery
|
|
4036
4070
|
};
|
|
4037
4071
|
//# sourceMappingURL=vitals-utilities.es.js.map
|