@kong-ui-public/analytics-utilities 12.4.1-pr.2743.56ee8819c.0 → 12.5.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.
@@ -1,9 +1,9 @@
1
1
  var Jr = Object.defineProperty;
2
2
  var ea = (e, t, n) => t in e ? Jr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var T = (e, t, n) => ea(e, typeof t != "symbol" ? t + "" : t, n);
4
- const Co = 3e4, Yo = 1e3, ko = "analytics-query-provider";
4
+ const Co = 3e4, Yo = 1e3, Go = "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 Go = ["90d", "180d", "365d", "current_year", "previous_year"], Ao = [
6
+ const ko = ["90d", "180d", "365d", "current_year", "previous_year"], Ao = [
7
7
  "horizontal_bar",
8
8
  "vertical_bar",
9
9
  "timeseries_line",
@@ -120,7 +120,6 @@ const Go = ["90d", "180d", "365d", "current_year", "previous_year"], Ao = [
120
120
  "llm_embeddings_cost"
121
121
  ], ia = [
122
122
  "api",
123
- "api_package",
124
123
  "api_product",
125
124
  "api_product_version",
126
125
  "application",
@@ -189,7 +188,7 @@ const Go = ["90d", "180d", "365d", "current_year", "previous_year"], Ao = [
189
188
  basic: new Set(Me),
190
189
  api_usage: new Set(Se),
191
190
  llm_usage: new Set(Oe)
192
- }, zo = (e, t) => t.filter((n) => la[e].has(n.field)), dn = [
191
+ }, zo = (e, t) => e.startsWith("goap") ? t : t.filter((n) => la[e].has(n.field)), dn = [
193
192
  { code: "AF", name: "Afghanistan" },
194
193
  { code: "AX", name: "Aland Islands" },
195
194
  { code: "AL", name: "Albania" },
@@ -1034,7 +1033,7 @@ const Ra = {
1034
1033
  long: "{{date}} 'at' {{time}}",
1035
1034
  medium: "{{date}}, {{time}}",
1036
1035
  short: "{{date}}, {{time}}"
1037
- }, ka = {
1036
+ }, Ga = {
1038
1037
  date: He({
1039
1038
  formats: Ra,
1040
1039
  defaultWidth: "full"
@@ -1047,14 +1046,14 @@ const Ra = {
1047
1046
  formats: Ya,
1048
1047
  defaultWidth: "full"
1049
1048
  })
1050
- }, Ga = {
1049
+ }, ka = {
1051
1050
  lastWeek: "'last' eeee 'at' p",
1052
1051
  yesterday: "'yesterday at' p",
1053
1052
  today: "'today at' p",
1054
1053
  tomorrow: "'tomorrow at' p",
1055
1054
  nextWeek: "eeee 'at' p",
1056
1055
  other: "P"
1057
- }, Aa = (e, t, n, r) => Ga[e];
1056
+ }, Aa = (e, t, n, r) => ka[e];
1058
1057
  function re(e) {
1059
1058
  return (t, n) => {
1060
1059
  const r = n != null && n.context ? String(n.context) : "standalone";
@@ -1368,7 +1367,7 @@ const Za = /^(\d+)(th|st|nd|rd)?/i, Xa = /\d+/i, Qa = {
1368
1367
  }, ui = {
1369
1368
  code: "en-US",
1370
1369
  formatDistance: Pa,
1371
- formatLong: ka,
1370
+ formatLong: Ga,
1372
1371
  formatRelative: Aa,
1373
1372
  localize: za,
1374
1373
  match: si,
@@ -1381,9 +1380,9 @@ let ci = {};
1381
1380
  function ue() {
1382
1381
  return ci;
1383
1382
  }
1384
- const hn = 6048e5, li = 864e5, di = 60, mi = 3600, Gt = Symbol.for("constructDateFrom");
1383
+ const hn = 6048e5, li = 864e5, di = 60, mi = 3600, kt = Symbol.for("constructDateFrom");
1385
1384
  function R(e, t) {
1386
- 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);
1385
+ 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);
1387
1386
  }
1388
1387
  function O(e, t) {
1389
1388
  return R(t || e, e);
@@ -2103,7 +2102,7 @@ function xi(e) {
2103
2102
  function Pi(e) {
2104
2103
  return !(!xi(e) && typeof e != "number" || isNaN(+O(e)));
2105
2104
  }
2106
- const Ri = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ci = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Yi = /^'([^]*?)'?$/, ki = /''/g, Gi = /[a-zA-Z]/;
2105
+ const Ri = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ci = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Yi = /^'([^]*?)'?$/, Gi = /''/g, ki = /[a-zA-Z]/;
2107
2106
  function Ai(e, t, n) {
2108
2107
  var f, d, h, b, E, N, C, W;
2109
2108
  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);
@@ -2124,7 +2123,7 @@ function Ai(e, t, n) {
2124
2123
  return { isToken: !1, value: Fi(v) };
2125
2124
  if (Ft[D])
2126
2125
  return { isToken: !0, value: v };
2127
- if (D.match(Gi))
2126
+ if (D.match(ki))
2128
2127
  throw new RangeError(
2129
2128
  "Format string contains an unescaped latin alphabet character `" + D + "`"
2130
2129
  );
@@ -2146,7 +2145,7 @@ function Ai(e, t, n) {
2146
2145
  }
2147
2146
  function Fi(e) {
2148
2147
  const t = e.match(Yi);
2149
- return t ? t[1].replace(ki, "'") : e;
2148
+ return t ? t[1].replace(Gi, "'") : e;
2150
2149
  }
2151
2150
  function Le(e, t, n) {
2152
2151
  const r = O(e, n == null ? void 0 : n.in);
@@ -2795,8 +2794,8 @@ De.exports;
2795
2794
  (function(e, t) {
2796
2795
  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 = {};
2797
2796
  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;
2798
- 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;
2799
- function Gn(a, s) {
2797
+ 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;
2798
+ function kn(a, s) {
2800
2799
  return a.set(s[0], s[1]), a;
2801
2800
  }
2802
2801
  function An(a, s) {
@@ -2856,7 +2855,7 @@ De.exports;
2856
2855
  return a ? "Symbol(src)_1." + a : "";
2857
2856
  }(), _t = qn.toString, H = de.hasOwnProperty, me = de.toString, jn = RegExp(
2858
2857
  "^" + _t.call(H).replace(In, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
2859
- ), 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;
2858
+ ), 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;
2860
2859
  function j(a) {
2861
2860
  var s = -1, u = a ? a.length : 0;
2862
2861
  for (this.clear(); ++s < u; ) {
@@ -2887,7 +2886,7 @@ De.exports;
2887
2886
  return u[a] = ne && s === void 0 ? r : s, this;
2888
2887
  }
2889
2888
  j.prototype.clear = nr, j.prototype.delete = rr, j.prototype.get = ar, j.prototype.has = ir, j.prototype.set = or;
2890
- function k(a) {
2889
+ function G(a) {
2891
2890
  var s = -1, u = a ? a.length : 0;
2892
2891
  for (this.clear(); ++s < u; ) {
2893
2892
  var y = a[s];
@@ -2915,7 +2914,7 @@ De.exports;
2915
2914
  var u = this.__data__, y = fe(u, a);
2916
2915
  return y < 0 ? u.push([a, s]) : u[y][1] = s, this;
2917
2916
  }
2918
- k.prototype.clear = sr, k.prototype.delete = ur, k.prototype.get = cr, k.prototype.has = lr, k.prototype.set = dr;
2917
+ G.prototype.clear = sr, G.prototype.delete = ur, G.prototype.get = cr, G.prototype.has = lr, G.prototype.set = dr;
2919
2918
  function B(a) {
2920
2919
  var s = -1, u = a ? a.length : 0;
2921
2920
  for (this.clear(); ++s < u; ) {
@@ -2926,7 +2925,7 @@ De.exports;
2926
2925
  function mr() {
2927
2926
  this.__data__ = {
2928
2927
  hash: new j(),
2929
- map: new (te || k)(),
2928
+ map: new (te || G)(),
2930
2929
  string: new j()
2931
2930
  };
2932
2931
  }
@@ -2944,10 +2943,10 @@ De.exports;
2944
2943
  }
2945
2944
  B.prototype.clear = mr, B.prototype.delete = fr, B.prototype.get = hr, B.prototype.has = yr, B.prototype.set = gr;
2946
2945
  function Z(a) {
2947
- this.__data__ = new k(a);
2946
+ this.__data__ = new G(a);
2948
2947
  }
2949
2948
  function pr() {
2950
- this.__data__ = new k();
2949
+ this.__data__ = new G();
2951
2950
  }
2952
2951
  function _r(a) {
2953
2952
  return this.__data__.delete(a);
@@ -2960,7 +2959,7 @@ De.exports;
2960
2959
  }
2961
2960
  function Tr(a, s) {
2962
2961
  var u = this.__data__;
2963
- if (u instanceof k) {
2962
+ if (u instanceof G) {
2964
2963
  var y = u.__data__;
2965
2964
  if (!te || y.length < n - 1)
2966
2965
  return y.push([a, s]), this;
@@ -2970,7 +2969,7 @@ De.exports;
2970
2969
  }
2971
2970
  Z.prototype.clear = pr, Z.prototype.delete = _r, Z.prototype.get = wr, Z.prototype.has = br, Z.prototype.set = Tr;
2972
2971
  function Dr(a, s) {
2973
- var u = Ge(a) || Vr(a) ? Ln(a.length, String) : [], y = u.length, M = !!y;
2972
+ var u = ke(a) || Vr(a) ? Ln(a.length, String) : [], y = u.length, M = !!y;
2974
2973
  for (var x in a)
2975
2974
  H.call(a, x) && !(M && (x == "length" || Wr(x, y))) && u.push(x);
2976
2975
  return u;
@@ -2988,16 +2987,16 @@ De.exports;
2988
2987
  function Mr(a, s) {
2989
2988
  return a && Et(s, Ae(s), a);
2990
2989
  }
2991
- function Ye(a, s, u, y, M, x, G) {
2990
+ function Ye(a, s, u, y, M, x, k) {
2992
2991
  var P;
2993
- if (y && (P = x ? y(a, M, x, G) : y(a)), P !== void 0)
2992
+ if (y && (P = x ? y(a, M, x, k) : y(a)), P !== void 0)
2994
2993
  return P;
2995
2994
  if (!ye(a))
2996
2995
  return a;
2997
- var Rt = Ge(a);
2996
+ var Rt = ke(a);
2998
2997
  if (Rt) {
2999
2998
  if (P = Hr(a), !s)
3000
- return Gr(a, P);
2999
+ return kr(a, P);
3001
3000
  } else {
3002
3001
  var Q = z(a), Ct = Q == f || Q == d;
3003
3002
  if (Br(a))
@@ -3013,14 +3012,14 @@ De.exports;
3013
3012
  P = Ur(a, Q, Ye, s);
3014
3013
  }
3015
3014
  }
3016
- G || (G = new Z());
3017
- var Yt = G.get(a);
3015
+ k || (k = new Z());
3016
+ var Yt = k.get(a);
3018
3017
  if (Yt)
3019
3018
  return Yt;
3020
- if (G.set(a, P), !Rt)
3021
- var kt = u ? Fr(a) : Ae(a);
3022
- return Fn(kt || a, function(Fe, ge) {
3023
- kt && (ge = Fe, Fe = a[ge]), Ot(P, ge, Ye(Fe, s, u, y, ge, a, G));
3019
+ if (k.set(a, P), !Rt)
3020
+ var Gt = u ? Fr(a) : Ae(a);
3021
+ return Fn(Gt || a, function(Fe, ge) {
3022
+ Gt && (ge = Fe, Fe = a[ge]), Ot(P, ge, Ye(Fe, s, u, y, ge, a, k));
3024
3023
  }), P;
3025
3024
  }
3026
3025
  function Sr(a) {
@@ -3028,7 +3027,7 @@ De.exports;
3028
3027
  }
3029
3028
  function Or(a, s, u) {
3030
3029
  var y = s(a);
3031
- return Ge(a) ? y : Hn(y, u(a));
3030
+ return ke(a) ? y : Hn(y, u(a));
3032
3031
  }
3033
3032
  function Er(a) {
3034
3033
  return me.call(a);
@@ -3053,17 +3052,17 @@ De.exports;
3053
3052
  var u = new a.constructor(a.length);
3054
3053
  return a.copy(u), u;
3055
3054
  }
3056
- function ke(a) {
3055
+ function Ge(a) {
3057
3056
  var s = new a.constructor(a.byteLength);
3058
3057
  return new Tt(s).set(new Tt(a)), s;
3059
3058
  }
3060
3059
  function xr(a, s) {
3061
- var u = s ? ke(a.buffer) : a.buffer;
3060
+ var u = s ? Ge(a.buffer) : a.buffer;
3062
3061
  return new a.constructor(u, a.byteOffset, a.byteLength);
3063
3062
  }
3064
3063
  function Pr(a, s, u) {
3065
3064
  var y = s ? u(yt(a), !0) : yt(a);
3066
- return ft(y, Gn, new a.constructor());
3065
+ return ft(y, kn, new a.constructor());
3067
3066
  }
3068
3067
  function Rr(a) {
3069
3068
  var s = new a.constructor(a.source, xn.exec(a));
@@ -3076,11 +3075,11 @@ De.exports;
3076
3075
  function Yr(a) {
3077
3076
  return St ? Object(St.call(a)) : {};
3078
3077
  }
3079
- function kr(a, s) {
3080
- var u = s ? ke(a.buffer) : a.buffer;
3078
+ function Gr(a, s) {
3079
+ var u = s ? Ge(a.buffer) : a.buffer;
3081
3080
  return new a.constructor(u, a.byteOffset, a.length);
3082
3081
  }
3083
- function Gr(a, s) {
3082
+ function kr(a, s) {
3084
3083
  var u = -1, y = a.length;
3085
3084
  for (s || (s = Array(y)); ++u < y; )
3086
3085
  s[u] = a[u];
@@ -3089,8 +3088,8 @@ De.exports;
3089
3088
  function Et(a, s, u, y) {
3090
3089
  u || (u = {});
3091
3090
  for (var M = -1, x = s.length; ++M < x; ) {
3092
- var G = s[M], P = void 0;
3093
- Ot(u, G, P === void 0 ? a[G] : P);
3091
+ var k = s[M], P = void 0;
3092
+ Ot(u, k, P === void 0 ? a[k] : P);
3094
3093
  }
3095
3094
  return u;
3096
3095
  }
@@ -3137,7 +3136,7 @@ De.exports;
3137
3136
  var M = a.constructor;
3138
3137
  switch (s) {
3139
3138
  case tt:
3140
- return ke(a);
3139
+ return Ge(a);
3141
3140
  case m:
3142
3141
  case g:
3143
3142
  return new M(+a);
@@ -3152,7 +3151,7 @@ De.exports;
3152
3151
  case ut:
3153
3152
  case ct:
3154
3153
  case lt:
3155
- return kr(a, y);
3154
+ return Gr(a, y);
3156
3155
  case h:
3157
3156
  return Pr(a, y, u);
3158
3157
  case b:
@@ -3202,7 +3201,7 @@ De.exports;
3202
3201
  function Vr(a) {
3203
3202
  return $r(a) && H.call(a, "callee") && (!$n.call(a, "callee") || me.call(a) == o);
3204
3203
  }
3205
- var Ge = Array.isArray;
3204
+ var ke = Array.isArray;
3206
3205
  function xt(a) {
3207
3206
  return a != null && Zr(a.length) && !Pt(a);
3208
3207
  }
@@ -3959,7 +3958,7 @@ export {
3959
3958
  es as DeltaQueryTime,
3960
3959
  Yo as EXPORT_RECORD_LIMIT,
3961
3960
  Te as Granularities,
3962
- ko as INJECT_QUERY_PROVIDER,
3961
+ Go as INJECT_QUERY_PROVIDER,
3963
3962
  Co as REFRESH_INTERVAL_MS,
3964
3963
  et as SeededRandom,
3965
3964
  as as TIMEFRAME_LOOKUP,
@@ -3984,7 +3983,7 @@ export {
3984
3983
  rn as dstOffsetHours,
3985
3984
  ra as exploreAggregations,
3986
3985
  ta as exploreFilterTypesV2,
3987
- Go as extendedRelativeTimeRangeValues,
3986
+ ko as extendedRelativeTimeRangeValues,
3988
3987
  Oe as filterableAiExploreDimensions,
3989
3988
  Me as filterableBasicExploreDimensions,
3990
3989
  Se as filterableExploreDimensions,