@kong-ui-public/analytics-utilities 12.1.4-pr.2686.517f60a7c.0 → 12.1.4

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.
@@ -3,7 +3,7 @@ var ea = (e, t, n) => t in e ? Jr(e, t, { enumerable: !0, configurable: !0, writ
3
3
  var T = (e, t, n) => ea(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  const Ro = 3e4, Co = 1e3, Yo = "analytics-query-provider";
5
5
  var p = /* @__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.NINETY_DAY = "90d", e.ONE_HUNDRED_EIGHTY_DAY = "180d", e.ONE_YEAR = "365d", e.CURRENT_WEEK = "current_week", e.CURRENT_MONTH = "current_month", e.CURRENT_QUARTER = "current_quarter", e.CURRENT_YEAR = "current_year", e.PREVIOUS_WEEK = "previous_week", e.PREVIOUS_MONTH = "previous_month", e.PREVIOUS_QUARTER = "previous_quarter", e.PREVIOUS_YEAR = "previous_year", e))(p || {});
6
- const ko = ["90d", "180d", "365d", "current_year", "previous_year"], Go = [
6
+ const Go = ["90d", "180d", "365d", "current_year", "previous_year"], ko = [
7
7
  "horizontal_bar",
8
8
  "vertical_bar",
9
9
  "timeseries_line",
@@ -1032,7 +1032,7 @@ const Ra = {
1032
1032
  long: "{{date}} 'at' {{time}}",
1033
1033
  medium: "{{date}}, {{time}}",
1034
1034
  short: "{{date}}, {{time}}"
1035
- }, ka = {
1035
+ }, Ga = {
1036
1036
  date: He({
1037
1037
  formats: Ra,
1038
1038
  defaultWidth: "full"
@@ -1045,14 +1045,14 @@ const Ra = {
1045
1045
  formats: Ya,
1046
1046
  defaultWidth: "full"
1047
1047
  })
1048
- }, Ga = {
1048
+ }, ka = {
1049
1049
  lastWeek: "'last' eeee 'at' p",
1050
1050
  yesterday: "'yesterday at' p",
1051
1051
  today: "'today at' p",
1052
1052
  tomorrow: "'tomorrow at' p",
1053
1053
  nextWeek: "eeee 'at' p",
1054
1054
  other: "P"
1055
- }, Aa = (e, t, n, r) => Ga[e];
1055
+ }, Aa = (e, t, n, r) => ka[e];
1056
1056
  function re(e) {
1057
1057
  return (t, n) => {
1058
1058
  const r = n != null && n.context ? String(n.context) : "standalone";
@@ -1366,7 +1366,7 @@ const Za = /^(\d+)(th|st|nd|rd)?/i, Xa = /\d+/i, Qa = {
1366
1366
  }, ui = {
1367
1367
  code: "en-US",
1368
1368
  formatDistance: Pa,
1369
- formatLong: ka,
1369
+ formatLong: Ga,
1370
1370
  formatRelative: Aa,
1371
1371
  localize: za,
1372
1372
  match: si,
@@ -1379,9 +1379,9 @@ let ci = {};
1379
1379
  function ue() {
1380
1380
  return ci;
1381
1381
  }
1382
- const hn = 6048e5, li = 864e5, di = 60, mi = 3600, Gt = Symbol.for("constructDateFrom");
1382
+ const hn = 6048e5, li = 864e5, di = 60, mi = 3600, kt = Symbol.for("constructDateFrom");
1383
1383
  function R(e, t) {
1384
- return typeof e == "function" ? e(t) : e && typeof e == "object" && Gt in e ? e[Gt](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
1384
+ return typeof e == "function" ? e(t) : e && typeof e == "object" && kt in e ? e[kt](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
1385
1385
  }
1386
1386
  function O(e, t) {
1387
1387
  return R(t || e, e);
@@ -2101,7 +2101,7 @@ function xi(e) {
2101
2101
  function Pi(e) {
2102
2102
  return !(!xi(e) && typeof e != "number" || isNaN(+O(e)));
2103
2103
  }
2104
- const Ri = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ci = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Yi = /^'([^]*?)'?$/, ki = /''/g, Gi = /[a-zA-Z]/;
2104
+ const Ri = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ci = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Yi = /^'([^]*?)'?$/, Gi = /''/g, ki = /[a-zA-Z]/;
2105
2105
  function Ai(e, t, n) {
2106
2106
  var f, d, h, b, E, N, C, W;
2107
2107
  const r = ue(), i = (n == null ? void 0 : n.locale) ?? r.locale ?? ui, o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((d = (f = n == null ? void 0 : n.locale) == null ? void 0 : f.options) == null ? void 0 : d.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((b = (h = r.locale) == null ? void 0 : h.options) == null ? void 0 : b.firstWeekContainsDate) ?? 1, c = (n == null ? void 0 : n.weekStartsOn) ?? ((N = (E = n == null ? void 0 : n.locale) == null ? void 0 : E.options) == null ? void 0 : N.weekStartsOn) ?? r.weekStartsOn ?? ((W = (C = r.locale) == null ? void 0 : C.options) == null ? void 0 : W.weekStartsOn) ?? 0, m = O(e, n == null ? void 0 : n.in);
@@ -2122,7 +2122,7 @@ function Ai(e, t, n) {
2122
2122
  return { isToken: !1, value: Fi(v) };
2123
2123
  if (Ft[D])
2124
2124
  return { isToken: !0, value: v };
2125
- if (D.match(Gi))
2125
+ if (D.match(ki))
2126
2126
  throw new RangeError(
2127
2127
  "Format string contains an unescaped latin alphabet character `" + D + "`"
2128
2128
  );
@@ -2144,7 +2144,7 @@ function Ai(e, t, n) {
2144
2144
  }
2145
2145
  function Fi(e) {
2146
2146
  const t = e.match(Yi);
2147
- return t ? t[1].replace(ki, "'") : e;
2147
+ return t ? t[1].replace(Gi, "'") : e;
2148
2148
  }
2149
2149
  function Le(e, t, n) {
2150
2150
  const r = O(e, n == null ? void 0 : n.in);
@@ -2639,25 +2639,13 @@ function Bo(e, t = {}) {
2639
2639
  const n = (t == null ? void 0 : t.tz) || Intl.DateTimeFormat().resolvedOptions().timeZone;
2640
2640
  let r = "MMM dd, yyy hh:mm a";
2641
2641
  switch (t.format) {
2642
- case "year":
2643
- r = "yyyy";
2644
- break;
2645
- case "month":
2646
- r = "MMM yyyy";
2647
- break;
2648
- case "day":
2642
+ case "short":
2649
2643
  r = "MMM dd, yyyy";
2650
2644
  break;
2651
- case "hour":
2652
- r = "MMM dd, yyyy hh a";
2653
- break;
2654
- case "minute":
2645
+ case "default":
2655
2646
  r = "MMM dd, yyyy hh:mm a";
2656
2647
  break;
2657
- case "second":
2658
- r = "MMM dd, yyyy hh:mm:ss a";
2659
- break;
2660
- case "ms":
2648
+ case "full":
2661
2649
  r = "MMM dd, yyyy hh:mm:ss.SSS a";
2662
2650
  break;
2663
2651
  }
@@ -2805,8 +2793,8 @@ De.exports;
2805
2793
  (function(e, t) {
2806
2794
  var n = 200, r = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", c = "[object Array]", m = "[object Boolean]", g = "[object Date]", l = "[object Error]", f = "[object Function]", d = "[object GeneratorFunction]", h = "[object Map]", b = "[object Number]", E = "[object Object]", N = "[object Promise]", C = "[object RegExp]", W = "[object Set]", v = "[object String]", D = "[object Symbol]", q = "[object WeakMap]", tt = "[object ArrayBuffer]", le = "[object DataView]", nt = "[object Float32Array]", rt = "[object Float64Array]", at = "[object Int8Array]", it = "[object Int16Array]", ot = "[object Int32Array]", st = "[object Uint8Array]", ut = "[object Uint8ClampedArray]", ct = "[object Uint16Array]", lt = "[object Uint32Array]", In = /[\\^$.*+?()[\]{}|]/g, xn = /\w*$/, Pn = /^\[object .+?Constructor\]$/, Rn = /^(?:0|[1-9]\d*)$/, w = {};
2807
2795
  w[o] = w[c] = w[tt] = w[le] = w[m] = w[g] = w[nt] = w[rt] = w[at] = w[it] = w[ot] = w[h] = w[b] = w[E] = w[C] = w[W] = w[v] = w[D] = w[st] = w[ut] = w[ct] = w[lt] = !0, w[l] = w[f] = w[q] = !1;
2808
- var Cn = typeof pe == "object" && pe && pe.Object === Object && pe, Yn = typeof self == "object" && self && self.Object === Object && self, Y = Cn || Yn || Function("return this")(), dt = t && !t.nodeType && t, mt = dt && !0 && e && !e.nodeType && e, kn = mt && mt.exports === dt;
2809
- function Gn(a, s) {
2796
+ var Cn = typeof pe == "object" && pe && pe.Object === Object && pe, Yn = typeof self == "object" && self && self.Object === Object && self, Y = Cn || Yn || Function("return this")(), dt = t && !t.nodeType && t, mt = dt && !0 && e && !e.nodeType && e, Gn = mt && mt.exports === dt;
2797
+ function kn(a, s) {
2810
2798
  return a.set(s[0], s[1]), a;
2811
2799
  }
2812
2800
  function An(a, s) {
@@ -2866,7 +2854,7 @@ De.exports;
2866
2854
  return a ? "Symbol(src)_1." + a : "";
2867
2855
  }(), _t = qn.toString, H = de.hasOwnProperty, me = de.toString, jn = RegExp(
2868
2856
  "^" + _t.call(H).replace(In, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
2869
- ), wt = kn ? Y.Buffer : void 0, bt = Y.Symbol, Tt = Y.Uint8Array, zn = Ne(Object.getPrototypeOf, Object), Vn = Object.create, $n = de.propertyIsEnumerable, Bn = Wn.splice, Dt = Object.getOwnPropertySymbols, Zn = wt ? wt.isBuffer : void 0, Xn = Ne(Object.keys, Object), xe = X(Y, "DataView"), te = X(Y, "Map"), Pe = X(Y, "Promise"), Re = X(Y, "Set"), Ce = X(Y, "WeakMap"), ne = X(Object, "create"), Qn = V(xe), Kn = V(te), Jn = V(Pe), er = V(Re), tr = V(Ce), Mt = bt ? bt.prototype : void 0, St = Mt ? Mt.valueOf : void 0;
2857
+ ), wt = Gn ? Y.Buffer : void 0, bt = Y.Symbol, Tt = Y.Uint8Array, zn = Ne(Object.getPrototypeOf, Object), Vn = Object.create, $n = de.propertyIsEnumerable, Bn = Wn.splice, Dt = Object.getOwnPropertySymbols, Zn = wt ? wt.isBuffer : void 0, Xn = Ne(Object.keys, Object), xe = X(Y, "DataView"), te = X(Y, "Map"), Pe = X(Y, "Promise"), Re = X(Y, "Set"), Ce = X(Y, "WeakMap"), ne = X(Object, "create"), Qn = V(xe), Kn = V(te), Jn = V(Pe), er = V(Re), tr = V(Ce), Mt = bt ? bt.prototype : void 0, St = Mt ? Mt.valueOf : void 0;
2870
2858
  function j(a) {
2871
2859
  var s = -1, u = a ? a.length : 0;
2872
2860
  for (this.clear(); ++s < u; ) {
@@ -2897,7 +2885,7 @@ De.exports;
2897
2885
  return u[a] = ne && s === void 0 ? r : s, this;
2898
2886
  }
2899
2887
  j.prototype.clear = nr, j.prototype.delete = rr, j.prototype.get = ar, j.prototype.has = ir, j.prototype.set = or;
2900
- function k(a) {
2888
+ function G(a) {
2901
2889
  var s = -1, u = a ? a.length : 0;
2902
2890
  for (this.clear(); ++s < u; ) {
2903
2891
  var y = a[s];
@@ -2925,7 +2913,7 @@ De.exports;
2925
2913
  var u = this.__data__, y = fe(u, a);
2926
2914
  return y < 0 ? u.push([a, s]) : u[y][1] = s, this;
2927
2915
  }
2928
- k.prototype.clear = sr, k.prototype.delete = ur, k.prototype.get = cr, k.prototype.has = lr, k.prototype.set = dr;
2916
+ G.prototype.clear = sr, G.prototype.delete = ur, G.prototype.get = cr, G.prototype.has = lr, G.prototype.set = dr;
2929
2917
  function B(a) {
2930
2918
  var s = -1, u = a ? a.length : 0;
2931
2919
  for (this.clear(); ++s < u; ) {
@@ -2936,7 +2924,7 @@ De.exports;
2936
2924
  function mr() {
2937
2925
  this.__data__ = {
2938
2926
  hash: new j(),
2939
- map: new (te || k)(),
2927
+ map: new (te || G)(),
2940
2928
  string: new j()
2941
2929
  };
2942
2930
  }
@@ -2954,10 +2942,10 @@ De.exports;
2954
2942
  }
2955
2943
  B.prototype.clear = mr, B.prototype.delete = fr, B.prototype.get = hr, B.prototype.has = yr, B.prototype.set = gr;
2956
2944
  function Z(a) {
2957
- this.__data__ = new k(a);
2945
+ this.__data__ = new G(a);
2958
2946
  }
2959
2947
  function pr() {
2960
- this.__data__ = new k();
2948
+ this.__data__ = new G();
2961
2949
  }
2962
2950
  function _r(a) {
2963
2951
  return this.__data__.delete(a);
@@ -2970,7 +2958,7 @@ De.exports;
2970
2958
  }
2971
2959
  function Tr(a, s) {
2972
2960
  var u = this.__data__;
2973
- if (u instanceof k) {
2961
+ if (u instanceof G) {
2974
2962
  var y = u.__data__;
2975
2963
  if (!te || y.length < n - 1)
2976
2964
  return y.push([a, s]), this;
@@ -2980,7 +2968,7 @@ De.exports;
2980
2968
  }
2981
2969
  Z.prototype.clear = pr, Z.prototype.delete = _r, Z.prototype.get = wr, Z.prototype.has = br, Z.prototype.set = Tr;
2982
2970
  function Dr(a, s) {
2983
- var u = Ge(a) || Vr(a) ? Ln(a.length, String) : [], y = u.length, M = !!y;
2971
+ var u = ke(a) || Vr(a) ? Ln(a.length, String) : [], y = u.length, M = !!y;
2984
2972
  for (var x in a)
2985
2973
  H.call(a, x) && !(M && (x == "length" || Wr(x, y))) && u.push(x);
2986
2974
  return u;
@@ -2998,16 +2986,16 @@ De.exports;
2998
2986
  function Mr(a, s) {
2999
2987
  return a && Et(s, Ae(s), a);
3000
2988
  }
3001
- function Ye(a, s, u, y, M, x, G) {
2989
+ function Ye(a, s, u, y, M, x, k) {
3002
2990
  var P;
3003
- if (y && (P = x ? y(a, M, x, G) : y(a)), P !== void 0)
2991
+ if (y && (P = x ? y(a, M, x, k) : y(a)), P !== void 0)
3004
2992
  return P;
3005
2993
  if (!ye(a))
3006
2994
  return a;
3007
- var Rt = Ge(a);
2995
+ var Rt = ke(a);
3008
2996
  if (Rt) {
3009
2997
  if (P = Hr(a), !s)
3010
- return Gr(a, P);
2998
+ return kr(a, P);
3011
2999
  } else {
3012
3000
  var Q = z(a), Ct = Q == f || Q == d;
3013
3001
  if (Br(a))
@@ -3023,14 +3011,14 @@ De.exports;
3023
3011
  P = Ur(a, Q, Ye, s);
3024
3012
  }
3025
3013
  }
3026
- G || (G = new Z());
3027
- var Yt = G.get(a);
3014
+ k || (k = new Z());
3015
+ var Yt = k.get(a);
3028
3016
  if (Yt)
3029
3017
  return Yt;
3030
- if (G.set(a, P), !Rt)
3031
- var kt = u ? Fr(a) : Ae(a);
3032
- return Fn(kt || a, function(Fe, ge) {
3033
- kt && (ge = Fe, Fe = a[ge]), Ot(P, ge, Ye(Fe, s, u, y, ge, a, G));
3018
+ if (k.set(a, P), !Rt)
3019
+ var Gt = u ? Fr(a) : Ae(a);
3020
+ return Fn(Gt || a, function(Fe, ge) {
3021
+ Gt && (ge = Fe, Fe = a[ge]), Ot(P, ge, Ye(Fe, s, u, y, ge, a, k));
3034
3022
  }), P;
3035
3023
  }
3036
3024
  function Sr(a) {
@@ -3038,7 +3026,7 @@ De.exports;
3038
3026
  }
3039
3027
  function Or(a, s, u) {
3040
3028
  var y = s(a);
3041
- return Ge(a) ? y : Hn(y, u(a));
3029
+ return ke(a) ? y : Hn(y, u(a));
3042
3030
  }
3043
3031
  function Er(a) {
3044
3032
  return me.call(a);
@@ -3063,17 +3051,17 @@ De.exports;
3063
3051
  var u = new a.constructor(a.length);
3064
3052
  return a.copy(u), u;
3065
3053
  }
3066
- function ke(a) {
3054
+ function Ge(a) {
3067
3055
  var s = new a.constructor(a.byteLength);
3068
3056
  return new Tt(s).set(new Tt(a)), s;
3069
3057
  }
3070
3058
  function xr(a, s) {
3071
- var u = s ? ke(a.buffer) : a.buffer;
3059
+ var u = s ? Ge(a.buffer) : a.buffer;
3072
3060
  return new a.constructor(u, a.byteOffset, a.byteLength);
3073
3061
  }
3074
3062
  function Pr(a, s, u) {
3075
3063
  var y = s ? u(yt(a), !0) : yt(a);
3076
- return ft(y, Gn, new a.constructor());
3064
+ return ft(y, kn, new a.constructor());
3077
3065
  }
3078
3066
  function Rr(a) {
3079
3067
  var s = new a.constructor(a.source, xn.exec(a));
@@ -3086,11 +3074,11 @@ De.exports;
3086
3074
  function Yr(a) {
3087
3075
  return St ? Object(St.call(a)) : {};
3088
3076
  }
3089
- function kr(a, s) {
3090
- var u = s ? ke(a.buffer) : a.buffer;
3077
+ function Gr(a, s) {
3078
+ var u = s ? Ge(a.buffer) : a.buffer;
3091
3079
  return new a.constructor(u, a.byteOffset, a.length);
3092
3080
  }
3093
- function Gr(a, s) {
3081
+ function kr(a, s) {
3094
3082
  var u = -1, y = a.length;
3095
3083
  for (s || (s = Array(y)); ++u < y; )
3096
3084
  s[u] = a[u];
@@ -3099,8 +3087,8 @@ De.exports;
3099
3087
  function Et(a, s, u, y) {
3100
3088
  u || (u = {});
3101
3089
  for (var M = -1, x = s.length; ++M < x; ) {
3102
- var G = s[M], P = void 0;
3103
- Ot(u, G, P === void 0 ? a[G] : P);
3090
+ var k = s[M], P = void 0;
3091
+ Ot(u, k, P === void 0 ? a[k] : P);
3104
3092
  }
3105
3093
  return u;
3106
3094
  }
@@ -3147,7 +3135,7 @@ De.exports;
3147
3135
  var M = a.constructor;
3148
3136
  switch (s) {
3149
3137
  case tt:
3150
- return ke(a);
3138
+ return Ge(a);
3151
3139
  case m:
3152
3140
  case g:
3153
3141
  return new M(+a);
@@ -3162,7 +3150,7 @@ De.exports;
3162
3150
  case ut:
3163
3151
  case ct:
3164
3152
  case lt:
3165
- return kr(a, y);
3153
+ return Gr(a, y);
3166
3154
  case h:
3167
3155
  return Pr(a, y, u);
3168
3156
  case b:
@@ -3212,7 +3200,7 @@ De.exports;
3212
3200
  function Vr(a) {
3213
3201
  return $r(a) && H.call(a, "callee") && (!$n.call(a, "callee") || me.call(a) == o);
3214
3202
  }
3215
- var Ge = Array.isArray;
3203
+ var ke = Array.isArray;
3216
3204
  function xt(a) {
3217
3205
  return a != null && Zr(a.length) && !Pt(a);
3218
3206
  }
@@ -3994,7 +3982,7 @@ export {
3994
3982
  rn as dstOffsetHours,
3995
3983
  ra as exploreAggregations,
3996
3984
  ta as exploreFilterTypesV2,
3997
- ko as extendedRelativeTimeRangeValues,
3985
+ Go as extendedRelativeTimeRangeValues,
3998
3986
  Oe as filterableAiExploreDimensions,
3999
3987
  Me as filterableBasicExploreDimensions,
4000
3988
  Se as filterableExploreDimensions,
@@ -4028,7 +4016,7 @@ export {
4028
4016
  vn as rand,
4029
4017
  Wo as relativeTimeRangeValuesRequestV2,
4030
4018
  on as relativeTimeRangeValuesV4,
4031
- Go as reportChartTypes,
4019
+ ko as reportChartTypes,
4032
4020
  na as requestFilterTypeEmptyV2,
4033
4021
  Ao as requestFilterTypeEqualsV2,
4034
4022
  Fo as requestFilterTypeMetricV2,