@evercam/ui 0.0.52-beta.9 → 0.0.53

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/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import q from "vue";
2
- import * as c from "d3";
2
+ import * as u from "d3";
3
3
  import V from "moment-timezone";
4
- var T = /* @__PURE__ */ ((e) => (e.dot = "dot", e.xs = "xs", e.sm = "sm", e.md = "base", e.base = "base", e.lg = "lg", e.xl = "xl", e["2xl"] = "2xl", e["3xl"] = "3xl", e["4xl"] = "4xl", e["5xl"] = "5xl", e["6xl"] = "6xl", e["7xl"] = "7xl", e["8xl"] = "8xl", e["9xl"] = "9xl", e))(T || {}), B = /* @__PURE__ */ ((e) => (e.warning = "warning", e.error = "error", e.info = "info", e.success = "success", e.primary = "primary", e.brand = "brand", e.default = "default", e))(B || {}), te = /* @__PURE__ */ ((e) => (e.overview = "overview", e.detailed = "detailed", e.detailedBackground = "detailedBackground", e))(te || {}), Z = /* @__PURE__ */ ((e) => (e.bars = "bars", e.lineGraph = "lineGraph", e.barChart = "barGraph", e))(Z || {}), re = /* @__PURE__ */ ((e) => (e.zoom = "zoom", e.autoPan = "autoPan", e.initial = "initial", e))(re || {});
4
+ var E = /* @__PURE__ */ ((e) => (e.dot = "dot", e.xs = "xs", e.sm = "sm", e.md = "base", e.base = "base", e.lg = "lg", e.xl = "xl", e["2xl"] = "2xl", e["3xl"] = "3xl", e["4xl"] = "4xl", e["5xl"] = "5xl", e["6xl"] = "6xl", e["7xl"] = "7xl", e["8xl"] = "8xl", e["9xl"] = "9xl", e))(E || {}), B = /* @__PURE__ */ ((e) => (e.warning = "warning", e.error = "error", e.info = "info", e.success = "success", e.primary = "primary", e.brand = "brand", e.default = "default", e))(B || {}), te = /* @__PURE__ */ ((e) => (e.overview = "overview", e.detailed = "detailed", e.detailedBackground = "detailedBackground", e))(te || {}), Y = /* @__PURE__ */ ((e) => (e.bars = "bars", e.lineGraph = "lineGraph", e.barChart = "barGraph", e))(Y || {}), re = /* @__PURE__ */ ((e) => (e.zoom = "zoom", e.autoPan = "autoPan", e.initial = "initial", e))(re || {});
5
5
  const rt = q.extend({
6
6
  name: "EBadge",
7
7
  props: {
@@ -15,7 +15,7 @@ const rt = q.extend({
15
15
  },
16
16
  size: {
17
17
  type: String,
18
- default: T.base
18
+ default: E.base
19
19
  }
20
20
  },
21
21
  data() {
@@ -29,18 +29,18 @@ const rt = q.extend({
29
29
  [B.success]: "e-bg-lime-500 e-text-white"
30
30
  },
31
31
  sizes: {
32
- [T.dot]: "e-w-2 e-h-2",
33
- [T.xs]: "e-w-3 e-h-3",
34
- [T.sm]: "e-w-4 e-h-4",
35
- [T.md]: "e-w-5 e-h-5",
36
- [T.lg]: "e-min-w-[2rem] e-max-w-[4rem] e-px-1 e-h-6 e-text-sm e-font-medium",
37
- [T.xl]: "e-min-w-[3rem] e-max-w-[5rem] e-px-1 e-h-8 e-text-base e-font-medium"
32
+ [E.dot]: "e-w-2 e-h-2",
33
+ [E.xs]: "e-w-3 e-h-3",
34
+ [E.sm]: "e-w-4 e-h-4",
35
+ [E.md]: "e-w-5 e-h-5",
36
+ [E.lg]: "e-min-w-[2rem] e-max-w-[4rem] e-px-1 e-h-6 e-text-sm e-font-medium",
37
+ [E.xl]: "e-min-w-[3rem] e-max-w-[5rem] e-px-1 e-h-8 e-text-base e-font-medium"
38
38
  }
39
39
  };
40
40
  },
41
41
  computed: {
42
42
  badgeClasses() {
43
- const e = this.colors[this.color] || this.colors[B.default], t = this.sizes[this.size] || this.sizes[T.md];
43
+ const e = this.colors[this.color] || this.colors[B.default], t = this.sizes[this.size] || this.sizes[E.md];
44
44
  return [
45
45
  "e-flex e-items-center e-justify-center e-rounded-full",
46
46
  e,
@@ -48,61 +48,61 @@ const rt = q.extend({
48
48
  ];
49
49
  },
50
50
  showText() {
51
- return [T.lg, T.xl].includes(this.size);
51
+ return [E.lg, E.xl].includes(this.size);
52
52
  }
53
53
  }
54
54
  });
55
- function I(e, t, r, n, s, o, i, d) {
55
+ function I(e, t, r, i, a, o, n, f) {
56
56
  var l = typeof e == "function" ? e.options : e;
57
- t && (l.render = t, l.staticRenderFns = r, l._compiled = !0), n && (l.functional = !0), o && (l._scopeId = "data-v-" + o);
58
- var a;
59
- if (i ? (a = function(f) {
60
- f = f || // cached call
57
+ t && (l.render = t, l.staticRenderFns = r, l._compiled = !0), i && (l.functional = !0), o && (l._scopeId = "data-v-" + o);
58
+ var s;
59
+ if (n ? (s = function(c) {
60
+ c = c || // cached call
61
61
  this.$vnode && this.$vnode.ssrContext || // stateful
62
- this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !f && typeof __VUE_SSR_CONTEXT__ != "undefined" && (f = __VUE_SSR_CONTEXT__), s && s.call(this, f), f && f._registeredComponents && f._registeredComponents.add(i);
63
- }, l._ssrRegister = a) : s && (a = d ? function() {
64
- s.call(
62
+ this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !c && typeof __VUE_SSR_CONTEXT__ != "undefined" && (c = __VUE_SSR_CONTEXT__), a && a.call(this, c), c && c._registeredComponents && c._registeredComponents.add(n);
63
+ }, l._ssrRegister = s) : a && (s = f ? function() {
64
+ a.call(
65
65
  this,
66
66
  (l.functional ? this.parent : this).$root.$options.shadowRoot
67
67
  );
68
- } : s), a)
68
+ } : a), s)
69
69
  if (l.functional) {
70
- l._injectStyles = a;
71
- var u = l.render;
72
- l.render = function(E, b) {
73
- return a.call(b), u(E, b);
70
+ l._injectStyles = s;
71
+ var d = l.render;
72
+ l.render = function(g, x) {
73
+ return s.call(x), d(g, x);
74
74
  };
75
75
  } else {
76
76
  var v = l.beforeCreate;
77
- l.beforeCreate = v ? [].concat(v, a) : [a];
77
+ l.beforeCreate = v ? [].concat(v, s) : [s];
78
78
  }
79
79
  return {
80
80
  exports: e,
81
81
  options: l
82
82
  };
83
83
  }
84
- var nt = function() {
84
+ var it = function() {
85
85
  var t = this, r = t._self._c;
86
86
  return r("span", { staticClass: "e-badge", class: t.badgeClasses }, [t.showText ? r("span", [t._v(t._s(t.text))]) : t._e()]);
87
- }, it = [], st = /* @__PURE__ */ I(
87
+ }, nt = [], st = /* @__PURE__ */ I(
88
88
  rt,
89
- nt,
90
89
  it,
90
+ nt,
91
91
  !1,
92
92
  null,
93
93
  null,
94
94
  null,
95
95
  null
96
96
  );
97
- const Me = st.exports, at = q.extend({
97
+ const Pe = st.exports, at = q.extend({
98
98
  name: "EAvatar",
99
99
  components: {
100
- Badge: Me
100
+ Badge: Pe
101
101
  },
102
102
  props: {
103
103
  size: {
104
104
  type: String,
105
- default: T.md
105
+ default: E.md
106
106
  },
107
107
  showBadge: {
108
108
  type: Boolean,
@@ -118,7 +118,7 @@ const Me = st.exports, at = q.extend({
118
118
  },
119
119
  badgeSize: {
120
120
  type: String,
121
- default: T.md
121
+ default: E.md
122
122
  },
123
123
  image: {
124
124
  type: String,
@@ -128,12 +128,12 @@ const Me = st.exports, at = q.extend({
128
128
  data() {
129
129
  return {
130
130
  sizes: {
131
- [T.xs]: "e-w-8 e-h-8 e-text-xs",
132
- [T.sm]: "e-w-10 e-h-10 e-text-sm",
133
- [T.md]: "e-w-14 e-h-14 e-text-base",
134
- [T.lg]: "e-w-20 e-h-20 e-text-2xl",
135
- [T.xl]: "e-w-28 e-h-28 e-text-3xl",
136
- [T["2xl"]]: "e-w-36 e-h-36 e-text-5xl"
131
+ [E.xs]: "e-w-8 e-h-8 e-text-xs",
132
+ [E.sm]: "e-w-10 e-h-10 e-text-sm",
133
+ [E.md]: "e-w-14 e-h-14 e-text-base",
134
+ [E.lg]: "e-w-20 e-h-20 e-text-2xl",
135
+ [E.xl]: "e-w-28 e-h-28 e-text-3xl",
136
+ [E["2xl"]]: "e-w-36 e-h-36 e-text-5xl"
137
137
  }
138
138
  };
139
139
  },
@@ -141,7 +141,7 @@ const Me = st.exports, at = q.extend({
141
141
  avatarClasses() {
142
142
  return [
143
143
  "e-flex e-items-center e-justify-center e-rounded-full e-bg-purple-500 e-text-white e-font-medium",
144
- this.sizes[this.size] || this.sizes[T.xs]
144
+ this.sizes[this.size] || this.sizes[E.xs]
145
145
  ];
146
146
  }
147
147
  }
@@ -167,7 +167,7 @@ const ct = ut.exports;
167
167
  function dt(e) {
168
168
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
169
169
  }
170
- var Pe = {}, ze = {}, me = {};
170
+ var Fe = {}, ze = {}, me = {};
171
171
  (function(e) {
172
172
  Object.defineProperty(e, "__esModule", {
173
173
  value: !0
@@ -181,20 +181,20 @@ var Pe = {}, ze = {}, me = {};
181
181
  if (r = `${r}`, r === "0")
182
182
  return "0";
183
183
  if (/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(r))
184
- return r.replace(/^[+-]?/, (s) => s === "-" ? "" : "-");
185
- let n = [
184
+ return r.replace(/^[+-]?/, (a) => a === "-" ? "" : "-");
185
+ let i = [
186
186
  "var",
187
187
  "calc",
188
188
  "min",
189
189
  "max",
190
190
  "clamp"
191
191
  ];
192
- for (const s of n)
193
- if (r.includes(`${s}(`))
192
+ for (const a of i)
193
+ if (r.includes(`${a}(`))
194
194
  return `calc(${r} * -1)`;
195
195
  }
196
196
  })(me);
197
- var He = {};
197
+ var Le = {};
198
198
  (function(e) {
199
199
  Object.defineProperty(e, "__esModule", {
200
200
  value: !0
@@ -381,8 +381,8 @@ var He = {};
381
381
  "willChange",
382
382
  "content"
383
383
  ];
384
- })(He);
385
- var Le = {};
384
+ })(Le);
385
+ var Ge = {};
386
386
  (function(e) {
387
387
  Object.defineProperty(e, "__esModule", {
388
388
  value: !0
@@ -392,99 +392,99 @@ var Le = {};
392
392
  return t;
393
393
  }
394
394
  });
395
- function t(r, n) {
396
- return r === void 0 ? n : Array.isArray(r) ? r : [
397
- ...new Set(n.filter((o) => r !== !1 && r[o] !== !1).concat(Object.keys(r).filter((o) => r[o] !== !1)))
395
+ function t(r, i) {
396
+ return r === void 0 ? i : Array.isArray(r) ? r : [
397
+ ...new Set(i.filter((o) => r !== !1 && r[o] !== !1).concat(Object.keys(r).filter((o) => r[o] !== !1)))
398
398
  ];
399
399
  }
400
- })(Le);
401
- var pe = {}, ie = {}, ge = { exports: {} }, P = String, Ge = function() {
402
- return { isColorSupported: !1, reset: P, bold: P, dim: P, italic: P, underline: P, inverse: P, hidden: P, strikethrough: P, black: P, red: P, green: P, yellow: P, blue: P, magenta: P, cyan: P, white: P, gray: P, bgBlack: P, bgRed: P, bgGreen: P, bgYellow: P, bgBlue: P, bgMagenta: P, bgCyan: P, bgWhite: P };
400
+ })(Ge);
401
+ var pe = {}, ne = {}, ge = { exports: {} }, F = String, He = function() {
402
+ return { isColorSupported: !1, reset: F, bold: F, dim: F, italic: F, underline: F, inverse: F, hidden: F, strikethrough: F, black: F, red: F, green: F, yellow: F, blue: F, magenta: F, cyan: F, white: F, gray: F, bgBlack: F, bgRed: F, bgGreen: F, bgYellow: F, bgBlue: F, bgMagenta: F, bgCyan: F, bgWhite: F };
403
403
  };
404
- ge.exports = Ge();
405
- ge.exports.createColors = Ge;
404
+ ge.exports = He();
405
+ ge.exports.createColors = He;
406
406
  var Be = ge.exports;
407
407
  (function(e) {
408
408
  Object.defineProperty(e, "__esModule", {
409
409
  value: !0
410
410
  });
411
- function t(l, a) {
412
- for (var u in a)
413
- Object.defineProperty(l, u, {
411
+ function t(l, s) {
412
+ for (var d in s)
413
+ Object.defineProperty(l, d, {
414
414
  enumerable: !0,
415
- get: a[u]
415
+ get: s[d]
416
416
  });
417
417
  }
418
418
  t(e, {
419
419
  dim: function() {
420
- return i;
420
+ return n;
421
421
  },
422
422
  default: function() {
423
- return d;
423
+ return f;
424
424
  }
425
425
  });
426
- const r = /* @__PURE__ */ n(Be);
427
- function n(l) {
426
+ const r = /* @__PURE__ */ i(Be);
427
+ function i(l) {
428
428
  return l && l.__esModule ? l : {
429
429
  default: l
430
430
  };
431
431
  }
432
- let s = /* @__PURE__ */ new Set();
433
- function o(l, a, u) {
434
- typeof process != "undefined" && process.env.JEST_WORKER_ID || u && s.has(u) || (u && s.add(u), console.warn(""), a.forEach((v) => console.warn(l, "-", v)));
432
+ let a = /* @__PURE__ */ new Set();
433
+ function o(l, s, d) {
434
+ typeof process != "undefined" && process.env.JEST_WORKER_ID || d && a.has(d) || (d && a.add(d), console.warn(""), s.forEach((v) => console.warn(l, "-", v)));
435
435
  }
436
- function i(l) {
436
+ function n(l) {
437
437
  return r.default.dim(l);
438
438
  }
439
- const d = {
440
- info(l, a) {
439
+ const f = {
440
+ info(l, s) {
441
441
  o(r.default.bold(r.default.cyan("info")), ...Array.isArray(l) ? [
442
442
  l
443
443
  ] : [
444
- a,
444
+ s,
445
445
  l
446
446
  ]);
447
447
  },
448
- warn(l, a) {
448
+ warn(l, s) {
449
449
  o(r.default.bold(r.default.yellow("warn")), ...Array.isArray(l) ? [
450
450
  l
451
451
  ] : [
452
- a,
452
+ s,
453
453
  l
454
454
  ]);
455
455
  },
456
- risk(l, a) {
456
+ risk(l, s) {
457
457
  o(r.default.bold(r.default.magenta("risk")), ...Array.isArray(l) ? [
458
458
  l
459
459
  ] : [
460
- a,
460
+ s,
461
461
  l
462
462
  ]);
463
463
  }
464
464
  };
465
- })(ie);
465
+ })(ne);
466
466
  (function(e) {
467
467
  Object.defineProperty(e, "__esModule", {
468
468
  value: !0
469
469
  }), Object.defineProperty(e, "default", {
470
470
  enumerable: !0,
471
471
  get: function() {
472
- return s;
472
+ return a;
473
473
  }
474
474
  });
475
- const t = /* @__PURE__ */ r(ie);
475
+ const t = /* @__PURE__ */ r(ne);
476
476
  function r(o) {
477
477
  return o && o.__esModule ? o : {
478
478
  default: o
479
479
  };
480
480
  }
481
- function n({ version: o, from: i, to: d }) {
482
- t.default.warn(`${i}-color-renamed`, [
483
- `As of Tailwind CSS ${o}, \`${i}\` has been renamed to \`${d}\`.`,
481
+ function i({ version: o, from: n, to: f }) {
482
+ t.default.warn(`${n}-color-renamed`, [
483
+ `As of Tailwind CSS ${o}, \`${n}\` has been renamed to \`${f}\`.`,
484
484
  "Update your configuration file to silence this warning."
485
485
  ]);
486
486
  }
487
- const s = {
487
+ const a = {
488
488
  inherit: "inherit",
489
489
  current: "currentColor",
490
490
  transparent: "transparent",
@@ -777,35 +777,35 @@ var Be = ge.exports;
777
777
  950: "#4c0519"
778
778
  },
779
779
  get lightBlue() {
780
- return n({
780
+ return i({
781
781
  version: "v2.2",
782
782
  from: "lightBlue",
783
783
  to: "sky"
784
784
  }), this.sky;
785
785
  },
786
786
  get warmGray() {
787
- return n({
787
+ return i({
788
788
  version: "v3.0",
789
789
  from: "warmGray",
790
790
  to: "stone"
791
791
  }), this.stone;
792
792
  },
793
793
  get trueGray() {
794
- return n({
794
+ return i({
795
795
  version: "v3.0",
796
796
  from: "trueGray",
797
797
  to: "neutral"
798
798
  }), this.neutral;
799
799
  },
800
800
  get coolGray() {
801
- return n({
801
+ return i({
802
802
  version: "v3.0",
803
803
  from: "coolGray",
804
804
  to: "gray"
805
805
  }), this.gray;
806
806
  },
807
807
  get blueGray() {
808
- return n({
808
+ return i({
809
809
  version: "v3.0",
810
810
  from: "blueGray",
811
811
  to: "slate"
@@ -823,15 +823,15 @@ var je = {};
823
823
  return t;
824
824
  }
825
825
  });
826
- function t(r, ...n) {
827
- for (let i of n) {
828
- for (let d in i) {
829
- var s;
830
- !(r == null || (s = r.hasOwnProperty) === null || s === void 0) && s.call(r, d) || (r[d] = i[d]);
826
+ function t(r, ...i) {
827
+ for (let n of i) {
828
+ for (let f in n) {
829
+ var a;
830
+ !(r == null || (a = r.hasOwnProperty) === null || a === void 0) && a.call(r, f) || (r[f] = n[f]);
831
831
  }
832
- for (let d of Object.getOwnPropertySymbols(i)) {
832
+ for (let f of Object.getOwnPropertySymbols(n)) {
833
833
  var o;
834
- !(r == null || (o = r.hasOwnProperty) === null || o === void 0) && o.call(r, d) || (r[d] = i[d]);
834
+ !(r == null || (o = r.hasOwnProperty) === null || o === void 0) && o.call(r, f) || (r[f] = n[f]);
835
835
  }
836
836
  }
837
837
  return r;
@@ -850,8 +850,8 @@ var Re = {};
850
850
  function t(r) {
851
851
  if (Array.isArray(r))
852
852
  return r;
853
- let n = r.split("[").length - 1, s = r.split("]").length - 1;
854
- if (n !== s)
853
+ let i = r.split("[").length - 1, a = r.split("]").length - 1;
854
+ if (i !== a)
855
855
  throw new Error(`Path is invalid. Has unbalanced brackets: ${r}`);
856
856
  return r.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean);
857
857
  }
@@ -861,26 +861,26 @@ var We = {}, se = {};
861
861
  Object.defineProperty(e, "__esModule", {
862
862
  value: !0
863
863
  });
864
- function t(v, f) {
865
- for (var E in f)
866
- Object.defineProperty(v, E, {
864
+ function t(v, c) {
865
+ for (var g in c)
866
+ Object.defineProperty(v, g, {
867
867
  enumerable: !0,
868
- get: f[E]
868
+ get: c[g]
869
869
  });
870
870
  }
871
871
  t(e, {
872
872
  flagEnabled: function() {
873
- return d;
873
+ return f;
874
874
  },
875
875
  issueFlagNotices: function() {
876
- return a;
876
+ return s;
877
877
  },
878
878
  default: function() {
879
- return u;
879
+ return d;
880
880
  }
881
881
  });
882
- const r = /* @__PURE__ */ s(Be), n = /* @__PURE__ */ s(ie);
883
- function s(v) {
882
+ const r = /* @__PURE__ */ a(Be), i = /* @__PURE__ */ a(ne);
883
+ function a(v) {
884
884
  return v && v.__esModule ? v : {
885
885
  default: v
886
886
  };
@@ -894,7 +894,7 @@ var We = {}, se = {};
894
894
  get relativeContentPathsByDefault() {
895
895
  return !1;
896
896
  }
897
- }, i = {
897
+ }, n = {
898
898
  future: [
899
899
  "hoverOnlyWhenSupported",
900
900
  "respectDefaultRingColorOpacity",
@@ -906,33 +906,33 @@ var We = {}, se = {};
906
906
  "generalizedModifiers"
907
907
  ]
908
908
  };
909
- function d(v, f) {
910
- if (i.future.includes(f)) {
911
- var E, b, k;
912
- return v.future === "all" || ((k = (b = v == null || (E = v.future) === null || E === void 0 ? void 0 : E[f]) !== null && b !== void 0 ? b : o[f]) !== null && k !== void 0 ? k : !1);
909
+ function f(v, c) {
910
+ if (n.future.includes(c)) {
911
+ var g, x, k;
912
+ return v.future === "all" || ((k = (x = v == null || (g = v.future) === null || g === void 0 ? void 0 : g[c]) !== null && x !== void 0 ? x : o[c]) !== null && k !== void 0 ? k : !1);
913
913
  }
914
- if (i.experimental.includes(f)) {
915
- var A, z, H;
916
- return v.experimental === "all" || ((H = (z = v == null || (A = v.experimental) === null || A === void 0 ? void 0 : A[f]) !== null && z !== void 0 ? z : o[f]) !== null && H !== void 0 ? H : !1);
914
+ if (n.experimental.includes(c)) {
915
+ var M, z, L;
916
+ return v.experimental === "all" || ((L = (z = v == null || (M = v.experimental) === null || M === void 0 ? void 0 : M[c]) !== null && z !== void 0 ? z : o[c]) !== null && L !== void 0 ? L : !1);
917
917
  }
918
918
  return !1;
919
919
  }
920
920
  function l(v) {
921
921
  if (v.experimental === "all")
922
- return i.experimental;
923
- var f;
924
- return Object.keys((f = v == null ? void 0 : v.experimental) !== null && f !== void 0 ? f : {}).filter((E) => i.experimental.includes(E) && v.experimental[E]);
922
+ return n.experimental;
923
+ var c;
924
+ return Object.keys((c = v == null ? void 0 : v.experimental) !== null && c !== void 0 ? c : {}).filter((g) => n.experimental.includes(g) && v.experimental[g]);
925
925
  }
926
- function a(v) {
926
+ function s(v) {
927
927
  if (process.env.JEST_WORKER_ID === void 0 && l(v).length > 0) {
928
- let f = l(v).map((E) => r.default.yellow(E)).join(", ");
929
- n.default.warn("experimental-flags-enabled", [
930
- `You have enabled experimental features: ${f}`,
928
+ let c = l(v).map((g) => r.default.yellow(g)).join(", ");
929
+ i.default.warn("experimental-flags-enabled", [
930
+ `You have enabled experimental features: ${c}`,
931
931
  "Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."
932
932
  ]);
933
933
  }
934
934
  }
935
- const u = i;
935
+ const d = n;
936
936
  })(se);
937
937
  (function(e) {
938
938
  Object.defineProperty(e, "__esModule", {
@@ -943,63 +943,63 @@ var We = {}, se = {};
943
943
  return o;
944
944
  }
945
945
  });
946
- const t = se, r = /* @__PURE__ */ s(ie);
947
- function n(i) {
946
+ const t = se, r = /* @__PURE__ */ a(ne);
947
+ function i(n) {
948
948
  if (typeof WeakMap != "function")
949
949
  return null;
950
- var d = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap();
951
- return (n = function(a) {
952
- return a ? l : d;
953
- })(i);
950
+ var f = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap();
951
+ return (i = function(s) {
952
+ return s ? l : f;
953
+ })(n);
954
954
  }
955
- function s(i, d) {
956
- if (!d && i && i.__esModule)
957
- return i;
958
- if (i === null || typeof i != "object" && typeof i != "function")
955
+ function a(n, f) {
956
+ if (!f && n && n.__esModule)
957
+ return n;
958
+ if (n === null || typeof n != "object" && typeof n != "function")
959
959
  return {
960
- default: i
960
+ default: n
961
961
  };
962
- var l = n(d);
963
- if (l && l.has(i))
964
- return l.get(i);
965
- var a = {}, u = Object.defineProperty && Object.getOwnPropertyDescriptor;
966
- for (var v in i)
967
- if (v !== "default" && Object.prototype.hasOwnProperty.call(i, v)) {
968
- var f = u ? Object.getOwnPropertyDescriptor(i, v) : null;
969
- f && (f.get || f.set) ? Object.defineProperty(a, v, f) : a[v] = i[v];
962
+ var l = i(f);
963
+ if (l && l.has(n))
964
+ return l.get(n);
965
+ var s = {}, d = Object.defineProperty && Object.getOwnPropertyDescriptor;
966
+ for (var v in n)
967
+ if (v !== "default" && Object.prototype.hasOwnProperty.call(n, v)) {
968
+ var c = d ? Object.getOwnPropertyDescriptor(n, v) : null;
969
+ c && (c.get || c.set) ? Object.defineProperty(s, v, c) : s[v] = n[v];
970
970
  }
971
- return a.default = i, l && l.set(i, a), a;
971
+ return s.default = n, l && l.set(n, s), s;
972
972
  }
973
- function o(i) {
973
+ function o(n) {
974
974
  if ((() => {
975
- if (i.purge || !i.content || !Array.isArray(i.content) && !(typeof i.content == "object" && i.content !== null))
975
+ if (n.purge || !n.content || !Array.isArray(n.content) && !(typeof n.content == "object" && n.content !== null))
976
976
  return !1;
977
- if (Array.isArray(i.content))
978
- return i.content.every((a) => typeof a == "string" ? !0 : !(typeof (a == null ? void 0 : a.raw) != "string" || a != null && a.extension && typeof (a == null ? void 0 : a.extension) != "string"));
979
- if (typeof i.content == "object" && i.content !== null) {
980
- if (Object.keys(i.content).some((a) => ![
977
+ if (Array.isArray(n.content))
978
+ return n.content.every((s) => typeof s == "string" ? !0 : !(typeof (s == null ? void 0 : s.raw) != "string" || s != null && s.extension && typeof (s == null ? void 0 : s.extension) != "string"));
979
+ if (typeof n.content == "object" && n.content !== null) {
980
+ if (Object.keys(n.content).some((s) => ![
981
981
  "files",
982
982
  "relative",
983
983
  "extract",
984
984
  "transform"
985
- ].includes(a)))
985
+ ].includes(s)))
986
986
  return !1;
987
- if (Array.isArray(i.content.files)) {
988
- if (!i.content.files.every((a) => typeof a == "string" ? !0 : !(typeof (a == null ? void 0 : a.raw) != "string" || a != null && a.extension && typeof (a == null ? void 0 : a.extension) != "string")))
987
+ if (Array.isArray(n.content.files)) {
988
+ if (!n.content.files.every((s) => typeof s == "string" ? !0 : !(typeof (s == null ? void 0 : s.raw) != "string" || s != null && s.extension && typeof (s == null ? void 0 : s.extension) != "string")))
989
989
  return !1;
990
- if (typeof i.content.extract == "object") {
991
- for (let a of Object.values(i.content.extract))
992
- if (typeof a != "function")
990
+ if (typeof n.content.extract == "object") {
991
+ for (let s of Object.values(n.content.extract))
992
+ if (typeof s != "function")
993
993
  return !1;
994
- } else if (!(i.content.extract === void 0 || typeof i.content.extract == "function"))
994
+ } else if (!(n.content.extract === void 0 || typeof n.content.extract == "function"))
995
995
  return !1;
996
- if (typeof i.content.transform == "object") {
997
- for (let a of Object.values(i.content.transform))
998
- if (typeof a != "function")
996
+ if (typeof n.content.transform == "object") {
997
+ for (let s of Object.values(n.content.transform))
998
+ if (typeof s != "function")
999
999
  return !1;
1000
- } else if (!(i.content.transform === void 0 || typeof i.content.transform == "function"))
1000
+ } else if (!(n.content.transform === void 0 || typeof n.content.transform == "function"))
1001
1001
  return !1;
1002
- if (typeof i.content.relative != "boolean" && typeof i.content.relative != "undefined")
1002
+ if (typeof n.content.relative != "boolean" && typeof n.content.relative != "undefined")
1003
1003
  return !1;
1004
1004
  }
1005
1005
  return !0;
@@ -1009,78 +1009,78 @@ var We = {}, se = {};
1009
1009
  "The `purge`/`content` options have changed in Tailwind CSS v3.0.",
1010
1010
  "Update your configuration file to eliminate this warning.",
1011
1011
  "https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"
1012
- ]), i.safelist = (() => {
1013
- var a;
1014
- let { content: u, purge: v, safelist: f } = i;
1015
- return Array.isArray(f) ? f : Array.isArray(u == null ? void 0 : u.safelist) ? u.safelist : Array.isArray(v == null ? void 0 : v.safelist) ? v.safelist : Array.isArray(v == null || (a = v.options) === null || a === void 0 ? void 0 : a.safelist) ? v.options.safelist : [];
1016
- })(), i.blocklist = (() => {
1017
- let { blocklist: a } = i;
1018
- if (Array.isArray(a)) {
1019
- if (a.every((u) => typeof u == "string"))
1020
- return a;
1012
+ ]), n.safelist = (() => {
1013
+ var s;
1014
+ let { content: d, purge: v, safelist: c } = n;
1015
+ return Array.isArray(c) ? c : Array.isArray(d == null ? void 0 : d.safelist) ? d.safelist : Array.isArray(v == null ? void 0 : v.safelist) ? v.safelist : Array.isArray(v == null || (s = v.options) === null || s === void 0 ? void 0 : s.safelist) ? v.options.safelist : [];
1016
+ })(), n.blocklist = (() => {
1017
+ let { blocklist: s } = n;
1018
+ if (Array.isArray(s)) {
1019
+ if (s.every((d) => typeof d == "string"))
1020
+ return s;
1021
1021
  r.default.warn("blocklist-invalid", [
1022
1022
  "The `blocklist` option must be an array of strings.",
1023
1023
  "https://tailwindcss.com/docs/content-configuration#discarding-classes"
1024
1024
  ]);
1025
1025
  }
1026
1026
  return [];
1027
- })(), typeof i.prefix == "function")
1027
+ })(), typeof n.prefix == "function")
1028
1028
  r.default.warn("prefix-function", [
1029
1029
  "As of Tailwind CSS v3.0, `prefix` cannot be a function.",
1030
1030
  "Update `prefix` in your configuration to be a string to eliminate this warning.",
1031
1031
  "https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"
1032
- ]), i.prefix = "";
1032
+ ]), n.prefix = "";
1033
1033
  else {
1034
1034
  var l;
1035
- i.prefix = (l = i.prefix) !== null && l !== void 0 ? l : "";
1035
+ n.prefix = (l = n.prefix) !== null && l !== void 0 ? l : "";
1036
1036
  }
1037
- i.content = {
1037
+ n.content = {
1038
1038
  relative: (() => {
1039
- let { content: a } = i;
1040
- return a != null && a.relative ? a.relative : (0, t.flagEnabled)(i, "relativeContentPathsByDefault");
1039
+ let { content: s } = n;
1040
+ return s != null && s.relative ? s.relative : (0, t.flagEnabled)(n, "relativeContentPathsByDefault");
1041
1041
  })(),
1042
1042
  files: (() => {
1043
- let { content: a, purge: u } = i;
1044
- return Array.isArray(u) ? u : Array.isArray(u == null ? void 0 : u.content) ? u.content : Array.isArray(a) ? a : Array.isArray(a == null ? void 0 : a.content) ? a.content : Array.isArray(a == null ? void 0 : a.files) ? a.files : [];
1043
+ let { content: s, purge: d } = n;
1044
+ return Array.isArray(d) ? d : Array.isArray(d == null ? void 0 : d.content) ? d.content : Array.isArray(s) ? s : Array.isArray(s == null ? void 0 : s.content) ? s.content : Array.isArray(s == null ? void 0 : s.files) ? s.files : [];
1045
1045
  })(),
1046
1046
  extract: (() => {
1047
- let a = (() => {
1048
- var f, E, b, k, A, z, H, M, L, G;
1049
- return !((f = i.purge) === null || f === void 0) && f.extract ? i.purge.extract : !((E = i.content) === null || E === void 0) && E.extract ? i.content.extract : !((b = i.purge) === null || b === void 0 || (k = b.extract) === null || k === void 0) && k.DEFAULT ? i.purge.extract.DEFAULT : !((A = i.content) === null || A === void 0 || (z = A.extract) === null || z === void 0) && z.DEFAULT ? i.content.extract.DEFAULT : !((H = i.purge) === null || H === void 0 || (M = H.options) === null || M === void 0) && M.extractors ? i.purge.options.extractors : !((L = i.content) === null || L === void 0 || (G = L.options) === null || G === void 0) && G.extractors ? i.content.options.extractors : {};
1050
- })(), u = {}, v = (() => {
1051
- var f, E, b, k;
1052
- if (!((f = i.purge) === null || f === void 0 || (E = f.options) === null || E === void 0) && E.defaultExtractor)
1053
- return i.purge.options.defaultExtractor;
1054
- if (!((b = i.content) === null || b === void 0 || (k = b.options) === null || k === void 0) && k.defaultExtractor)
1055
- return i.content.options.defaultExtractor;
1047
+ let s = (() => {
1048
+ var c, g, x, k, M, z, L, P, G, H;
1049
+ return !((c = n.purge) === null || c === void 0) && c.extract ? n.purge.extract : !((g = n.content) === null || g === void 0) && g.extract ? n.content.extract : !((x = n.purge) === null || x === void 0 || (k = x.extract) === null || k === void 0) && k.DEFAULT ? n.purge.extract.DEFAULT : !((M = n.content) === null || M === void 0 || (z = M.extract) === null || z === void 0) && z.DEFAULT ? n.content.extract.DEFAULT : !((L = n.purge) === null || L === void 0 || (P = L.options) === null || P === void 0) && P.extractors ? n.purge.options.extractors : !((G = n.content) === null || G === void 0 || (H = G.options) === null || H === void 0) && H.extractors ? n.content.options.extractors : {};
1050
+ })(), d = {}, v = (() => {
1051
+ var c, g, x, k;
1052
+ if (!((c = n.purge) === null || c === void 0 || (g = c.options) === null || g === void 0) && g.defaultExtractor)
1053
+ return n.purge.options.defaultExtractor;
1054
+ if (!((x = n.content) === null || x === void 0 || (k = x.options) === null || k === void 0) && k.defaultExtractor)
1055
+ return n.content.options.defaultExtractor;
1056
1056
  })();
1057
- if (v !== void 0 && (u.DEFAULT = v), typeof a == "function")
1058
- u.DEFAULT = a;
1059
- else if (Array.isArray(a))
1060
- for (let { extensions: f, extractor: E } of a != null ? a : [])
1061
- for (let b of f)
1062
- u[b] = E;
1057
+ if (v !== void 0 && (d.DEFAULT = v), typeof s == "function")
1058
+ d.DEFAULT = s;
1059
+ else if (Array.isArray(s))
1060
+ for (let { extensions: c, extractor: g } of s != null ? s : [])
1061
+ for (let x of c)
1062
+ d[x] = g;
1063
1063
  else
1064
- typeof a == "object" && a !== null && Object.assign(u, a);
1065
- return u;
1064
+ typeof s == "object" && s !== null && Object.assign(d, s);
1065
+ return d;
1066
1066
  })(),
1067
1067
  transform: (() => {
1068
- let a = (() => {
1069
- var v, f, E, b, k, A;
1070
- return !((v = i.purge) === null || v === void 0) && v.transform ? i.purge.transform : !((f = i.content) === null || f === void 0) && f.transform ? i.content.transform : !((E = i.purge) === null || E === void 0 || (b = E.transform) === null || b === void 0) && b.DEFAULT ? i.purge.transform.DEFAULT : !((k = i.content) === null || k === void 0 || (A = k.transform) === null || A === void 0) && A.DEFAULT ? i.content.transform.DEFAULT : {};
1071
- })(), u = {};
1072
- return typeof a == "function" && (u.DEFAULT = a), typeof a == "object" && a !== null && Object.assign(u, a), u;
1068
+ let s = (() => {
1069
+ var v, c, g, x, k, M;
1070
+ return !((v = n.purge) === null || v === void 0) && v.transform ? n.purge.transform : !((c = n.content) === null || c === void 0) && c.transform ? n.content.transform : !((g = n.purge) === null || g === void 0 || (x = g.transform) === null || x === void 0) && x.DEFAULT ? n.purge.transform.DEFAULT : !((k = n.content) === null || k === void 0 || (M = k.transform) === null || M === void 0) && M.DEFAULT ? n.content.transform.DEFAULT : {};
1071
+ })(), d = {};
1072
+ return typeof s == "function" && (d.DEFAULT = s), typeof s == "object" && s !== null && Object.assign(d, s), d;
1073
1073
  })()
1074
1074
  };
1075
- for (let a of i.content.files)
1076
- if (typeof a == "string" && /{([^,]*?)}/g.test(a)) {
1075
+ for (let s of n.content.files)
1076
+ if (typeof s == "string" && /{([^,]*?)}/g.test(s)) {
1077
1077
  r.default.warn("invalid-glob-braces", [
1078
- `The glob pattern ${(0, r.dim)(a)} in your Tailwind CSS configuration is invalid.`,
1079
- `Update it to ${(0, r.dim)(a.replace(/{([^,]*?)}/g, "$1"))} to silence this warning.`
1078
+ `The glob pattern ${(0, r.dim)(s)} in your Tailwind CSS configuration is invalid.`,
1079
+ `Update it to ${(0, r.dim)(s.replace(/{([^,]*?)}/g, "$1"))} to silence this warning.`
1080
1080
  ]);
1081
1081
  break;
1082
1082
  }
1083
- return i;
1083
+ return n;
1084
1084
  }
1085
1085
  })(We);
1086
1086
  var Ne = {};
@@ -1096,8 +1096,8 @@ var Ne = {};
1096
1096
  function t(r) {
1097
1097
  if (Object.prototype.toString.call(r) !== "[object Object]")
1098
1098
  return !1;
1099
- const n = Object.getPrototypeOf(r);
1100
- return n === null || n === Object.prototype;
1099
+ const i = Object.getPrototypeOf(r);
1100
+ return i === null || i === Object.prototype;
1101
1101
  }
1102
1102
  })(Ne);
1103
1103
  var Ue = {};
@@ -1111,9 +1111,9 @@ var Ue = {};
1111
1111
  }
1112
1112
  });
1113
1113
  function t(r) {
1114
- return Array.isArray(r) ? r.map((n) => t(n)) : typeof r == "object" && r !== null ? Object.fromEntries(Object.entries(r).map(([n, s]) => [
1115
- n,
1116
- t(s)
1114
+ return Array.isArray(r) ? r.map((i) => t(i)) : typeof r == "object" && r !== null ? Object.fromEntries(Object.entries(r).map(([i, a]) => [
1115
+ i,
1116
+ t(a)
1117
1117
  ])) : r;
1118
1118
  }
1119
1119
  })(Ue);
@@ -1888,33 +1888,33 @@ var ve = {}, ye = {}, Xe = {};
1888
1888
  Object.defineProperty(e, "__esModule", {
1889
1889
  value: !0
1890
1890
  });
1891
- function t(b, k) {
1892
- for (var A in k)
1893
- Object.defineProperty(b, A, {
1891
+ function t(x, k) {
1892
+ for (var M in k)
1893
+ Object.defineProperty(x, M, {
1894
1894
  enumerable: !0,
1895
- get: k[A]
1895
+ get: k[M]
1896
1896
  });
1897
1897
  }
1898
1898
  t(e, {
1899
1899
  parseColor: function() {
1900
- return f;
1900
+ return c;
1901
1901
  },
1902
1902
  formatColor: function() {
1903
- return E;
1903
+ return g;
1904
1904
  }
1905
1905
  });
1906
- const r = /* @__PURE__ */ n(Xe);
1907
- function n(b) {
1908
- return b && b.__esModule ? b : {
1909
- default: b
1906
+ const r = /* @__PURE__ */ i(Xe);
1907
+ function i(x) {
1908
+ return x && x.__esModule ? x : {
1909
+ default: x
1910
1910
  };
1911
1911
  }
1912
- let s = /^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i, o = /^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i, i = /(?:\d+|\d*\.\d+)%?/, d = /(?:\s*,\s*|\s+)/, l = /\s*[,/]\s*/, a = /var\(--(?:[^ )]*?)\)/, u = new RegExp(`^(rgba?)\\(\\s*(${i.source}|${a.source})(?:${d.source}(${i.source}|${a.source}))?(?:${d.source}(${i.source}|${a.source}))?(?:${l.source}(${i.source}|${a.source}))?\\s*\\)$`), v = new RegExp(`^(hsla?)\\(\\s*((?:${i.source})(?:deg|rad|grad|turn)?|${a.source})(?:${d.source}(${i.source}|${a.source}))?(?:${d.source}(${i.source}|${a.source}))?(?:${l.source}(${i.source}|${a.source}))?\\s*\\)$`);
1913
- function f(b, { loose: k = !1 } = {}) {
1914
- var A, z;
1915
- if (typeof b != "string")
1912
+ let a = /^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i, o = /^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i, n = /(?:\d+|\d*\.\d+)%?/, f = /(?:\s*,\s*|\s+)/, l = /\s*[,/]\s*/, s = /var\(--(?:[^ )]*?)\)/, d = new RegExp(`^(rgba?)\\(\\s*(${n.source}|${s.source})(?:${f.source}(${n.source}|${s.source}))?(?:${f.source}(${n.source}|${s.source}))?(?:${l.source}(${n.source}|${s.source}))?\\s*\\)$`), v = new RegExp(`^(hsla?)\\(\\s*((?:${n.source})(?:deg|rad|grad|turn)?|${s.source})(?:${f.source}(${n.source}|${s.source}))?(?:${f.source}(${n.source}|${s.source}))?(?:${l.source}(${n.source}|${s.source}))?\\s*\\)$`);
1913
+ function c(x, { loose: k = !1 } = {}) {
1914
+ var M, z;
1915
+ if (typeof x != "string")
1916
1916
  return null;
1917
- if (b = b.trim(), b === "transparent")
1917
+ if (x = x.trim(), x === "transparent")
1918
1918
  return {
1919
1919
  mode: "rgb",
1920
1920
  color: [
@@ -1924,117 +1924,117 @@ var ve = {}, ye = {}, Xe = {};
1924
1924
  ],
1925
1925
  alpha: "0"
1926
1926
  };
1927
- if (b in r.default)
1927
+ if (x in r.default)
1928
1928
  return {
1929
1929
  mode: "rgb",
1930
- color: r.default[b].map((R) => R.toString())
1930
+ color: r.default[x].map((R) => R.toString())
1931
1931
  };
1932
- let H = b.replace(o, (R, U, W, y, D) => [
1932
+ let L = x.replace(o, (R, U, W, b, D) => [
1933
1933
  "#",
1934
1934
  U,
1935
1935
  U,
1936
1936
  W,
1937
1937
  W,
1938
- y,
1939
- y,
1938
+ b,
1939
+ b,
1940
1940
  D ? D + D : ""
1941
- ].join("")).match(s);
1942
- if (H !== null)
1941
+ ].join("")).match(a);
1942
+ if (L !== null)
1943
1943
  return {
1944
1944
  mode: "rgb",
1945
1945
  color: [
1946
- parseInt(H[1], 16),
1947
- parseInt(H[2], 16),
1948
- parseInt(H[3], 16)
1946
+ parseInt(L[1], 16),
1947
+ parseInt(L[2], 16),
1948
+ parseInt(L[3], 16)
1949
1949
  ].map((R) => R.toString()),
1950
- alpha: H[4] ? (parseInt(H[4], 16) / 255).toString() : void 0
1950
+ alpha: L[4] ? (parseInt(L[4], 16) / 255).toString() : void 0
1951
1951
  };
1952
- var M;
1953
- let L = (M = b.match(u)) !== null && M !== void 0 ? M : b.match(v);
1954
- if (L === null)
1952
+ var P;
1953
+ let G = (P = x.match(d)) !== null && P !== void 0 ? P : x.match(v);
1954
+ if (G === null)
1955
1955
  return null;
1956
- let G = [
1957
- L[2],
1958
- L[3],
1959
- L[4]
1956
+ let H = [
1957
+ G[2],
1958
+ G[3],
1959
+ G[4]
1960
1960
  ].filter(Boolean).map((R) => R.toString());
1961
- return G.length === 2 && G[0].startsWith("var(") ? {
1962
- mode: L[1],
1961
+ return H.length === 2 && H[0].startsWith("var(") ? {
1962
+ mode: G[1],
1963
1963
  color: [
1964
- G[0]
1964
+ H[0]
1965
1965
  ],
1966
- alpha: G[1]
1967
- } : !k && G.length !== 3 || G.length < 3 && !G.some((R) => /^var\(.*?\)$/.test(R)) ? null : {
1968
- mode: L[1],
1969
- color: G,
1970
- alpha: (A = L[5]) === null || A === void 0 || (z = A.toString) === null || z === void 0 ? void 0 : z.call(A)
1966
+ alpha: H[1]
1967
+ } : !k && H.length !== 3 || H.length < 3 && !H.some((R) => /^var\(.*?\)$/.test(R)) ? null : {
1968
+ mode: G[1],
1969
+ color: H,
1970
+ alpha: (M = G[5]) === null || M === void 0 || (z = M.toString) === null || z === void 0 ? void 0 : z.call(M)
1971
1971
  };
1972
1972
  }
1973
- function E({ mode: b, color: k, alpha: A }) {
1974
- let z = A !== void 0;
1975
- return b === "rgba" || b === "hsla" ? `${b}(${k.join(", ")}${z ? `, ${A}` : ""})` : `${b}(${k.join(" ")}${z ? ` / ${A}` : ""})`;
1973
+ function g({ mode: x, color: k, alpha: M }) {
1974
+ let z = M !== void 0;
1975
+ return x === "rgba" || x === "hsla" ? `${x}(${k.join(", ")}${z ? `, ${M}` : ""})` : `${x}(${k.join(" ")}${z ? ` / ${M}` : ""})`;
1976
1976
  }
1977
1977
  })(ye);
1978
1978
  (function(e) {
1979
1979
  Object.defineProperty(e, "__esModule", {
1980
1980
  value: !0
1981
1981
  });
1982
- function t(o, i) {
1983
- for (var d in i)
1984
- Object.defineProperty(o, d, {
1982
+ function t(o, n) {
1983
+ for (var f in n)
1984
+ Object.defineProperty(o, f, {
1985
1985
  enumerable: !0,
1986
- get: i[d]
1986
+ get: n[f]
1987
1987
  });
1988
1988
  }
1989
1989
  t(e, {
1990
1990
  withAlphaValue: function() {
1991
- return n;
1991
+ return i;
1992
1992
  },
1993
1993
  default: function() {
1994
- return s;
1994
+ return a;
1995
1995
  }
1996
1996
  });
1997
1997
  const r = ye;
1998
- function n(o, i, d) {
1998
+ function i(o, n, f) {
1999
1999
  if (typeof o == "function")
2000
2000
  return o({
2001
- opacityValue: i
2001
+ opacityValue: n
2002
2002
  });
2003
2003
  let l = (0, r.parseColor)(o, {
2004
2004
  loose: !0
2005
2005
  });
2006
- return l === null ? d : (0, r.formatColor)({
2006
+ return l === null ? f : (0, r.formatColor)({
2007
2007
  ...l,
2008
- alpha: i
2008
+ alpha: n
2009
2009
  });
2010
2010
  }
2011
- function s({ color: o, property: i, variable: d }) {
2012
- let l = [].concat(i);
2011
+ function a({ color: o, property: n, variable: f }) {
2012
+ let l = [].concat(n);
2013
2013
  if (typeof o == "function")
2014
2014
  return {
2015
- [d]: "1",
2016
- ...Object.fromEntries(l.map((u) => [
2017
- u,
2015
+ [f]: "1",
2016
+ ...Object.fromEntries(l.map((d) => [
2017
+ d,
2018
2018
  o({
2019
- opacityVariable: d,
2020
- opacityValue: `var(${d})`
2019
+ opacityVariable: f,
2020
+ opacityValue: `var(${f})`
2021
2021
  })
2022
2022
  ]))
2023
2023
  };
2024
- const a = (0, r.parseColor)(o);
2025
- return a === null ? Object.fromEntries(l.map((u) => [
2026
- u,
2024
+ const s = (0, r.parseColor)(o);
2025
+ return s === null ? Object.fromEntries(l.map((d) => [
2026
+ d,
2027
2027
  o
2028
- ])) : a.alpha !== void 0 ? Object.fromEntries(l.map((u) => [
2029
- u,
2028
+ ])) : s.alpha !== void 0 ? Object.fromEntries(l.map((d) => [
2029
+ d,
2030
2030
  o
2031
2031
  ])) : {
2032
- [d]: "1",
2033
- ...Object.fromEntries(l.map((u) => [
2034
- u,
2032
+ [f]: "1",
2033
+ ...Object.fromEntries(l.map((d) => [
2034
+ d,
2035
2035
  (0, r.formatColor)({
2036
- ...a,
2037
- alpha: `var(${d})`
2036
+ ...s,
2037
+ alpha: `var(${f})`
2038
2038
  })
2039
2039
  ]))
2040
2040
  };
@@ -2050,149 +2050,149 @@ var be = {}, qe = {}, ae = {};
2050
2050
  return t;
2051
2051
  }
2052
2052
  });
2053
- function t(r, n) {
2054
- let s = [], o = [], i = 0, d = !1;
2053
+ function t(r, i) {
2054
+ let a = [], o = [], n = 0, f = !1;
2055
2055
  for (let l = 0; l < r.length; l++) {
2056
- let a = r[l];
2057
- s.length === 0 && a === n[0] && !d && (n.length === 1 || r.slice(l, l + n.length) === n) && (o.push(r.slice(i, l)), i = l + n.length), d ? d = !1 : a === "\\" && (d = !0), a === "(" || a === "[" || a === "{" ? s.push(a) : (a === ")" && s[s.length - 1] === "(" || a === "]" && s[s.length - 1] === "[" || a === "}" && s[s.length - 1] === "{") && s.pop();
2056
+ let s = r[l];
2057
+ a.length === 0 && s === i[0] && !f && (i.length === 1 || r.slice(l, l + i.length) === i) && (o.push(r.slice(n, l)), n = l + i.length), f ? f = !1 : s === "\\" && (f = !0), s === "(" || s === "[" || s === "{" ? a.push(s) : (s === ")" && a[a.length - 1] === "(" || s === "]" && a[a.length - 1] === "[" || s === "}" && a[a.length - 1] === "{") && a.pop();
2058
2058
  }
2059
- return o.push(r.slice(i)), o;
2059
+ return o.push(r.slice(n)), o;
2060
2060
  }
2061
2061
  })(ae);
2062
2062
  (function(e) {
2063
2063
  Object.defineProperty(e, "__esModule", {
2064
2064
  value: !0
2065
2065
  });
2066
- function t(l, a) {
2067
- for (var u in a)
2068
- Object.defineProperty(l, u, {
2066
+ function t(l, s) {
2067
+ for (var d in s)
2068
+ Object.defineProperty(l, d, {
2069
2069
  enumerable: !0,
2070
- get: a[u]
2070
+ get: s[d]
2071
2071
  });
2072
2072
  }
2073
2073
  t(e, {
2074
2074
  parseBoxShadowValue: function() {
2075
- return i;
2075
+ return n;
2076
2076
  },
2077
2077
  formatBoxShadowValue: function() {
2078
- return d;
2078
+ return f;
2079
2079
  }
2080
2080
  });
2081
2081
  const r = ae;
2082
- let n = /* @__PURE__ */ new Set([
2082
+ let i = /* @__PURE__ */ new Set([
2083
2083
  "inset",
2084
2084
  "inherit",
2085
2085
  "initial",
2086
2086
  "revert",
2087
2087
  "unset"
2088
- ]), s = /\ +(?![^(]*\))/g, o = /^-?(\d+|\.\d+)(.*?)$/g;
2089
- function i(l) {
2090
- return (0, r.splitAtTopLevelOnly)(l, ",").map((u) => {
2091
- let v = u.trim(), f = {
2088
+ ]), a = /\ +(?![^(]*\))/g, o = /^-?(\d+|\.\d+)(.*?)$/g;
2089
+ function n(l) {
2090
+ return (0, r.splitAtTopLevelOnly)(l, ",").map((d) => {
2091
+ let v = d.trim(), c = {
2092
2092
  raw: v
2093
- }, E = v.split(s), b = /* @__PURE__ */ new Set();
2094
- for (let k of E)
2095
- o.lastIndex = 0, !b.has("KEYWORD") && n.has(k) ? (f.keyword = k, b.add("KEYWORD")) : o.test(k) ? b.has("X") ? b.has("Y") ? b.has("BLUR") ? b.has("SPREAD") || (f.spread = k, b.add("SPREAD")) : (f.blur = k, b.add("BLUR")) : (f.y = k, b.add("Y")) : (f.x = k, b.add("X")) : f.color ? (f.unknown || (f.unknown = []), f.unknown.push(k)) : f.color = k;
2096
- return f.valid = f.x !== void 0 && f.y !== void 0, f;
2093
+ }, g = v.split(a), x = /* @__PURE__ */ new Set();
2094
+ for (let k of g)
2095
+ o.lastIndex = 0, !x.has("KEYWORD") && i.has(k) ? (c.keyword = k, x.add("KEYWORD")) : o.test(k) ? x.has("X") ? x.has("Y") ? x.has("BLUR") ? x.has("SPREAD") || (c.spread = k, x.add("SPREAD")) : (c.blur = k, x.add("BLUR")) : (c.y = k, x.add("Y")) : (c.x = k, x.add("X")) : c.color ? (c.unknown || (c.unknown = []), c.unknown.push(k)) : c.color = k;
2096
+ return c.valid = c.x !== void 0 && c.y !== void 0, c;
2097
2097
  });
2098
2098
  }
2099
- function d(l) {
2100
- return l.map((a) => a.valid ? [
2101
- a.keyword,
2102
- a.x,
2103
- a.y,
2104
- a.blur,
2105
- a.spread,
2106
- a.color
2107
- ].filter(Boolean).join(" ") : a.raw).join(", ");
2099
+ function f(l) {
2100
+ return l.map((s) => s.valid ? [
2101
+ s.keyword,
2102
+ s.x,
2103
+ s.y,
2104
+ s.blur,
2105
+ s.spread,
2106
+ s.color
2107
+ ].filter(Boolean).join(" ") : s.raw).join(", ");
2108
2108
  }
2109
2109
  })(qe);
2110
2110
  (function(e) {
2111
2111
  Object.defineProperty(e, "__esModule", {
2112
2112
  value: !0
2113
2113
  });
2114
- function t(h, w) {
2115
- for (var F in w)
2116
- Object.defineProperty(h, F, {
2114
+ function t(m, w) {
2115
+ for (var A in w)
2116
+ Object.defineProperty(m, A, {
2117
2117
  enumerable: !0,
2118
- get: w[F]
2118
+ get: w[A]
2119
2119
  });
2120
2120
  }
2121
2121
  t(e, {
2122
2122
  normalize: function() {
2123
- return a;
2123
+ return s;
2124
2124
  },
2125
2125
  url: function() {
2126
2126
  return v;
2127
2127
  },
2128
2128
  number: function() {
2129
- return f;
2129
+ return c;
2130
2130
  },
2131
2131
  percentage: function() {
2132
- return E;
2132
+ return g;
2133
2133
  },
2134
2134
  length: function() {
2135
- return A;
2135
+ return M;
2136
2136
  },
2137
2137
  lineWidth: function() {
2138
- return H;
2138
+ return L;
2139
2139
  },
2140
2140
  shadow: function() {
2141
- return M;
2141
+ return P;
2142
2142
  },
2143
2143
  color: function() {
2144
- return L;
2144
+ return G;
2145
2145
  },
2146
2146
  image: function() {
2147
- return G;
2147
+ return H;
2148
2148
  },
2149
2149
  gradient: function() {
2150
2150
  return U;
2151
2151
  },
2152
2152
  position: function() {
2153
- return y;
2153
+ return b;
2154
2154
  },
2155
2155
  familyName: function() {
2156
2156
  return D;
2157
2157
  },
2158
2158
  genericName: function() {
2159
- return m;
2159
+ return p;
2160
2160
  },
2161
2161
  absoluteSize: function() {
2162
- return _;
2162
+ return C;
2163
2163
  },
2164
2164
  relativeSize: function() {
2165
2165
  return $;
2166
2166
  }
2167
2167
  });
2168
- const r = ye, n = qe, s = ae;
2168
+ const r = ye, i = qe, a = ae;
2169
2169
  let o = [
2170
2170
  "min",
2171
2171
  "max",
2172
2172
  "clamp",
2173
2173
  "calc"
2174
2174
  ];
2175
- function i(h) {
2176
- return o.some((w) => new RegExp(`^${w}\\(.*\\)`).test(h));
2175
+ function n(m) {
2176
+ return o.some((w) => new RegExp(`^${w}\\(.*\\)`).test(m));
2177
2177
  }
2178
- const d = "--tw-placeholder", l = new RegExp(d, "g");
2179
- function a(h, w = !0) {
2180
- return h.startsWith("--") ? `var(${h})` : h.includes("url(") ? h.split(/(url\(.*?\))/g).filter(Boolean).map((F) => /^url\(.*?\)$/.test(F) ? F : a(F, !1)).join("") : (h = h.replace(/([^\\])_+/g, (F, O) => O + " ".repeat(F.length - 1)).replace(/^_/g, " ").replace(/\\_/g, "_"), w && (h = h.trim()), h = u(h), h);
2178
+ const f = "--tw-placeholder", l = new RegExp(f, "g");
2179
+ function s(m, w = !0) {
2180
+ return m.startsWith("--") ? `var(${m})` : m.includes("url(") ? m.split(/(url\(.*?\))/g).filter(Boolean).map((A) => /^url\(.*?\)$/.test(A) ? A : s(A, !1)).join("") : (m = m.replace(/([^\\])_+/g, (A, O) => O + " ".repeat(A.length - 1)).replace(/^_/g, " ").replace(/\\_/g, "_"), w && (m = m.trim()), m = d(m), m);
2181
2181
  }
2182
- function u(h) {
2183
- return h.replace(/(calc|min|max|clamp)\(.+\)/g, (w) => {
2184
- let F = [];
2185
- return w.replace(/var\((--.+?)[,)]/g, (O, Q) => (F.push(Q), O.replace(Q, d))).replace(/(-?\d*\.?\d(?!\b-\d.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g, "$1 $2 ").replace(l, () => F.shift());
2182
+ function d(m) {
2183
+ return m.replace(/(calc|min|max|clamp)\(.+\)/g, (w) => {
2184
+ let A = [];
2185
+ return w.replace(/var\((--.+?)[,)]/g, (O, Q) => (A.push(Q), O.replace(Q, f))).replace(/(-?\d*\.?\d(?!\b-\d.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g, "$1 $2 ").replace(l, () => A.shift());
2186
2186
  });
2187
2187
  }
2188
- function v(h) {
2189
- return h.startsWith("url(");
2188
+ function v(m) {
2189
+ return m.startsWith("url(");
2190
2190
  }
2191
- function f(h) {
2192
- return !isNaN(Number(h)) || i(h);
2191
+ function c(m) {
2192
+ return !isNaN(Number(m)) || n(m);
2193
2193
  }
2194
- function E(h) {
2195
- return h.endsWith("%") && f(h.slice(0, -1)) || i(h);
2194
+ function g(m) {
2195
+ return m.endsWith("%") && c(m.slice(0, -1)) || n(m);
2196
2196
  }
2197
2197
  let k = `(?:${[
2198
2198
  "cm",
@@ -2227,33 +2227,33 @@ var be = {}, qe = {}, ae = {};
2227
2227
  "cqmin",
2228
2228
  "cqmax"
2229
2229
  ].join("|")})`;
2230
- function A(h) {
2231
- return h === "0" || new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${k}$`).test(h) || i(h);
2230
+ function M(m) {
2231
+ return m === "0" || new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${k}$`).test(m) || n(m);
2232
2232
  }
2233
2233
  let z = /* @__PURE__ */ new Set([
2234
2234
  "thin",
2235
2235
  "medium",
2236
2236
  "thick"
2237
2237
  ]);
2238
- function H(h) {
2239
- return z.has(h);
2238
+ function L(m) {
2239
+ return z.has(m);
2240
2240
  }
2241
- function M(h) {
2242
- let w = (0, n.parseBoxShadowValue)(a(h));
2243
- for (let F of w)
2244
- if (!F.valid)
2241
+ function P(m) {
2242
+ let w = (0, i.parseBoxShadowValue)(s(m));
2243
+ for (let A of w)
2244
+ if (!A.valid)
2245
2245
  return !1;
2246
2246
  return !0;
2247
2247
  }
2248
- function L(h) {
2248
+ function G(m) {
2249
2249
  let w = 0;
2250
- return (0, s.splitAtTopLevelOnly)(h, "_").every((O) => (O = a(O), O.startsWith("var(") ? !0 : (0, r.parseColor)(O, {
2250
+ return (0, a.splitAtTopLevelOnly)(m, "_").every((O) => (O = s(O), O.startsWith("var(") ? !0 : (0, r.parseColor)(O, {
2251
2251
  loose: !0
2252
2252
  }) !== null ? (w++, !0) : !1)) ? w > 0 : !1;
2253
2253
  }
2254
- function G(h) {
2254
+ function H(m) {
2255
2255
  let w = 0;
2256
- return (0, s.splitAtTopLevelOnly)(h, ",").every((O) => (O = a(O), O.startsWith("var(") ? !0 : v(O) || U(O) || [
2256
+ return (0, a.splitAtTopLevelOnly)(m, ",").every((O) => (O = s(O), O.startsWith("var(") ? !0 : v(O) || U(O) || [
2257
2257
  "element(",
2258
2258
  "image(",
2259
2259
  "cross-fade(",
@@ -2268,10 +2268,10 @@ var be = {}, qe = {}, ae = {};
2268
2268
  "repeating-linear-gradient",
2269
2269
  "repeating-radial-gradient"
2270
2270
  ]);
2271
- function U(h) {
2272
- h = a(h);
2271
+ function U(m) {
2272
+ m = s(m);
2273
2273
  for (let w of R)
2274
- if (h.startsWith(`${w}(`))
2274
+ if (m.startsWith(`${w}(`))
2275
2275
  return !0;
2276
2276
  return !1;
2277
2277
  }
@@ -2282,15 +2282,15 @@ var be = {}, qe = {}, ae = {};
2282
2282
  "bottom",
2283
2283
  "left"
2284
2284
  ]);
2285
- function y(h) {
2285
+ function b(m) {
2286
2286
  let w = 0;
2287
- return (0, s.splitAtTopLevelOnly)(h, "_").every((O) => (O = a(O), O.startsWith("var(") ? !0 : W.has(O) || A(O) || E(O) ? (w++, !0) : !1)) ? w > 0 : !1;
2287
+ return (0, a.splitAtTopLevelOnly)(m, "_").every((O) => (O = s(O), O.startsWith("var(") ? !0 : W.has(O) || M(O) || g(O) ? (w++, !0) : !1)) ? w > 0 : !1;
2288
2288
  }
2289
- function D(h) {
2289
+ function D(m) {
2290
2290
  let w = 0;
2291
- return (0, s.splitAtTopLevelOnly)(h, ",").every((O) => (O = a(O), O.startsWith("var(") ? !0 : O.includes(" ") && !/(['"])([^"']+)\1/g.test(O) || /^\d/g.test(O) ? !1 : (w++, !0))) ? w > 0 : !1;
2291
+ return (0, a.splitAtTopLevelOnly)(m, ",").every((O) => (O = s(O), O.startsWith("var(") ? !0 : O.includes(" ") && !/(['"])([^"']+)\1/g.test(O) || /^\d/g.test(O) ? !1 : (w++, !0))) ? w > 0 : !1;
2292
2292
  }
2293
- let C = /* @__PURE__ */ new Set([
2293
+ let S = /* @__PURE__ */ new Set([
2294
2294
  "serif",
2295
2295
  "sans-serif",
2296
2296
  "monospace",
@@ -2305,10 +2305,10 @@ var be = {}, qe = {}, ae = {};
2305
2305
  "emoji",
2306
2306
  "fangsong"
2307
2307
  ]);
2308
- function m(h) {
2309
- return C.has(h);
2308
+ function p(m) {
2309
+ return S.has(m);
2310
2310
  }
2311
- let x = /* @__PURE__ */ new Set([
2311
+ let _ = /* @__PURE__ */ new Set([
2312
2312
  "xx-small",
2313
2313
  "x-small",
2314
2314
  "small",
@@ -2318,56 +2318,56 @@ var be = {}, qe = {}, ae = {};
2318
2318
  "x-large",
2319
2319
  "xxx-large"
2320
2320
  ]);
2321
- function _(h) {
2322
- return x.has(h);
2321
+ function C(m) {
2322
+ return _.has(m);
2323
2323
  }
2324
- let g = /* @__PURE__ */ new Set([
2324
+ let y = /* @__PURE__ */ new Set([
2325
2325
  "larger",
2326
2326
  "smaller"
2327
2327
  ]);
2328
- function $(h) {
2329
- return g.has(h);
2328
+ function $(m) {
2329
+ return y.has(m);
2330
2330
  }
2331
2331
  })(be);
2332
- var Ye = {};
2332
+ var Ze = {};
2333
2333
  (function(e) {
2334
2334
  Object.defineProperty(e, "__esModule", {
2335
2335
  value: !0
2336
2336
  }), Object.defineProperty(e, "backgroundSize", {
2337
2337
  enumerable: !0,
2338
2338
  get: function() {
2339
- return n;
2339
+ return i;
2340
2340
  }
2341
2341
  });
2342
2342
  const t = be, r = ae;
2343
- function n(s) {
2343
+ function i(a) {
2344
2344
  let o = [
2345
2345
  "cover",
2346
2346
  "contain"
2347
2347
  ];
2348
- return (0, r.splitAtTopLevelOnly)(s, ",").every((i) => {
2349
- let d = (0, r.splitAtTopLevelOnly)(i, "_").filter(Boolean);
2350
- return d.length === 1 && o.includes(d[0]) ? !0 : d.length !== 1 && d.length !== 2 ? !1 : d.every((l) => (0, t.length)(l) || (0, t.percentage)(l) || l === "auto");
2348
+ return (0, r.splitAtTopLevelOnly)(a, ",").every((n) => {
2349
+ let f = (0, r.splitAtTopLevelOnly)(n, "_").filter(Boolean);
2350
+ return f.length === 1 && o.includes(f[0]) ? !0 : f.length !== 1 && f.length !== 2 ? !1 : f.every((l) => (0, t.length)(l) || (0, t.percentage)(l) || l === "auto");
2351
2351
  });
2352
2352
  }
2353
- })(Ye);
2353
+ })(Ze);
2354
2354
  (function(e) {
2355
2355
  Object.defineProperty(e, "__esModule", {
2356
2356
  value: !0
2357
2357
  });
2358
- function t(y, D) {
2359
- for (var C in D)
2360
- Object.defineProperty(y, C, {
2358
+ function t(b, D) {
2359
+ for (var S in D)
2360
+ Object.defineProperty(b, S, {
2361
2361
  enumerable: !0,
2362
- get: D[C]
2362
+ get: D[S]
2363
2363
  });
2364
2364
  }
2365
2365
  t(e, {
2366
2366
  updateAllClasses: function() {
2367
- return a;
2367
+ return s;
2368
2368
  },
2369
2369
  asValue: function() {
2370
- return f;
2370
+ return c;
2371
2371
  },
2372
2372
  parseColorFormat: function() {
2373
2373
  return k;
@@ -2376,10 +2376,10 @@ var Ye = {};
2376
2376
  return z;
2377
2377
  },
2378
2378
  asLookupValue: function() {
2379
- return H;
2379
+ return L;
2380
2380
  },
2381
2381
  typeMap: function() {
2382
- return L;
2382
+ return G;
2383
2383
  },
2384
2384
  coerceValue: function() {
2385
2385
  return U;
@@ -2388,168 +2388,168 @@ var Ye = {};
2388
2388
  return W;
2389
2389
  }
2390
2390
  });
2391
- const r = /* @__PURE__ */ l(Ve), n = ve, s = be, o = /* @__PURE__ */ l(me), i = Ye, d = se;
2392
- function l(y) {
2393
- return y && y.__esModule ? y : {
2394
- default: y
2391
+ const r = /* @__PURE__ */ l(Ve), i = ve, a = be, o = /* @__PURE__ */ l(me), n = Ze, f = se;
2392
+ function l(b) {
2393
+ return b && b.__esModule ? b : {
2394
+ default: b
2395
2395
  };
2396
2396
  }
2397
- function a(y, D) {
2398
- y.walkClasses((C) => {
2399
- C.value = D(C.value), C.raws && C.raws.value && (C.raws.value = (0, r.default)(C.raws.value));
2397
+ function s(b, D) {
2398
+ b.walkClasses((S) => {
2399
+ S.value = D(S.value), S.raws && S.raws.value && (S.raws.value = (0, r.default)(S.raws.value));
2400
2400
  });
2401
2401
  }
2402
- function u(y, D) {
2403
- if (!E(y))
2402
+ function d(b, D) {
2403
+ if (!g(b))
2404
2404
  return;
2405
- let C = y.slice(1, -1);
2406
- if (D(C))
2407
- return (0, s.normalize)(C);
2405
+ let S = b.slice(1, -1);
2406
+ if (D(S))
2407
+ return (0, a.normalize)(S);
2408
2408
  }
2409
- function v(y, D = {}, C) {
2410
- let m = D[y];
2411
- if (m !== void 0)
2412
- return (0, o.default)(m);
2413
- if (E(y)) {
2414
- let x = u(y, C);
2415
- return x === void 0 ? void 0 : (0, o.default)(x);
2409
+ function v(b, D = {}, S) {
2410
+ let p = D[b];
2411
+ if (p !== void 0)
2412
+ return (0, o.default)(p);
2413
+ if (g(b)) {
2414
+ let _ = d(b, S);
2415
+ return _ === void 0 ? void 0 : (0, o.default)(_);
2416
2416
  }
2417
2417
  }
2418
- function f(y, D = {}, { validate: C = () => !0 } = {}) {
2419
- var m;
2420
- let x = (m = D.values) === null || m === void 0 ? void 0 : m[y];
2421
- return x !== void 0 ? x : D.supportsNegativeValues && y.startsWith("-") ? v(y.slice(1), D.values, C) : u(y, C);
2418
+ function c(b, D = {}, { validate: S = () => !0 } = {}) {
2419
+ var p;
2420
+ let _ = (p = D.values) === null || p === void 0 ? void 0 : p[b];
2421
+ return _ !== void 0 ? _ : D.supportsNegativeValues && b.startsWith("-") ? v(b.slice(1), D.values, S) : d(b, S);
2422
2422
  }
2423
- function E(y) {
2424
- return y.startsWith("[") && y.endsWith("]");
2423
+ function g(b) {
2424
+ return b.startsWith("[") && b.endsWith("]");
2425
2425
  }
2426
- function b(y) {
2427
- let D = y.lastIndexOf("/");
2428
- return D === -1 || D === y.length - 1 ? [
2429
- y,
2426
+ function x(b) {
2427
+ let D = b.lastIndexOf("/");
2428
+ return D === -1 || D === b.length - 1 ? [
2429
+ b,
2430
2430
  void 0
2431
- ] : E(y) && !y.includes("]/[") ? [
2432
- y,
2431
+ ] : g(b) && !b.includes("]/[") ? [
2432
+ b,
2433
2433
  void 0
2434
2434
  ] : [
2435
- y.slice(0, D),
2436
- y.slice(D + 1)
2435
+ b.slice(0, D),
2436
+ b.slice(D + 1)
2437
2437
  ];
2438
2438
  }
2439
- function k(y) {
2440
- if (typeof y == "string" && y.includes("<alpha-value>")) {
2441
- let D = y;
2442
- return ({ opacityValue: C = 1 }) => D.replace("<alpha-value>", C);
2439
+ function k(b) {
2440
+ if (typeof b == "string" && b.includes("<alpha-value>")) {
2441
+ let D = b;
2442
+ return ({ opacityValue: S = 1 }) => D.replace("<alpha-value>", S);
2443
2443
  }
2444
- return y;
2444
+ return b;
2445
2445
  }
2446
- function A(y) {
2447
- return (0, s.normalize)(y.slice(1, -1));
2446
+ function M(b) {
2447
+ return (0, a.normalize)(b.slice(1, -1));
2448
2448
  }
2449
- function z(y, D = {}, { tailwindConfig: C = {} } = {}) {
2450
- var m;
2451
- if (((m = D.values) === null || m === void 0 ? void 0 : m[y]) !== void 0) {
2452
- var x;
2453
- return k((x = D.values) === null || x === void 0 ? void 0 : x[y]);
2449
+ function z(b, D = {}, { tailwindConfig: S = {} } = {}) {
2450
+ var p;
2451
+ if (((p = D.values) === null || p === void 0 ? void 0 : p[b]) !== void 0) {
2452
+ var _;
2453
+ return k((_ = D.values) === null || _ === void 0 ? void 0 : _[b]);
2454
2454
  }
2455
- let [_, g] = b(y);
2456
- if (g !== void 0) {
2457
- var $, h, w, F;
2458
- let O = (F = ($ = D.values) === null || $ === void 0 ? void 0 : $[_]) !== null && F !== void 0 ? F : E(_) ? _.slice(1, -1) : void 0;
2459
- return O === void 0 ? void 0 : (O = k(O), E(g) ? (0, n.withAlphaValue)(O, A(g)) : ((h = C.theme) === null || h === void 0 || (w = h.opacity) === null || w === void 0 ? void 0 : w[g]) === void 0 ? void 0 : (0, n.withAlphaValue)(O, C.theme.opacity[g]));
2455
+ let [C, y] = x(b);
2456
+ if (y !== void 0) {
2457
+ var $, m, w, A;
2458
+ let O = (A = ($ = D.values) === null || $ === void 0 ? void 0 : $[C]) !== null && A !== void 0 ? A : g(C) ? C.slice(1, -1) : void 0;
2459
+ return O === void 0 ? void 0 : (O = k(O), g(y) ? (0, i.withAlphaValue)(O, M(y)) : ((m = S.theme) === null || m === void 0 || (w = m.opacity) === null || w === void 0 ? void 0 : w[y]) === void 0 ? void 0 : (0, i.withAlphaValue)(O, S.theme.opacity[y]));
2460
2460
  }
2461
- return f(y, D, {
2462
- validate: s.color
2461
+ return c(b, D, {
2462
+ validate: a.color
2463
2463
  });
2464
2464
  }
2465
- function H(y, D = {}) {
2466
- var C;
2467
- return (C = D.values) === null || C === void 0 ? void 0 : C[y];
2465
+ function L(b, D = {}) {
2466
+ var S;
2467
+ return (S = D.values) === null || S === void 0 ? void 0 : S[b];
2468
2468
  }
2469
- function M(y) {
2470
- return (D, C) => f(D, C, {
2471
- validate: y
2469
+ function P(b) {
2470
+ return (D, S) => c(D, S, {
2471
+ validate: b
2472
2472
  });
2473
2473
  }
2474
- let L = {
2475
- any: f,
2474
+ let G = {
2475
+ any: c,
2476
2476
  color: z,
2477
- url: M(s.url),
2478
- image: M(s.image),
2479
- length: M(s.length),
2480
- percentage: M(s.percentage),
2481
- position: M(s.position),
2482
- lookup: H,
2483
- "generic-name": M(s.genericName),
2484
- "family-name": M(s.familyName),
2485
- number: M(s.number),
2486
- "line-width": M(s.lineWidth),
2487
- "absolute-size": M(s.absoluteSize),
2488
- "relative-size": M(s.relativeSize),
2489
- shadow: M(s.shadow),
2490
- size: M(i.backgroundSize)
2491
- }, G = Object.keys(L);
2492
- function R(y, D) {
2493
- let C = y.indexOf(D);
2494
- return C === -1 ? [
2477
+ url: P(a.url),
2478
+ image: P(a.image),
2479
+ length: P(a.length),
2480
+ percentage: P(a.percentage),
2481
+ position: P(a.position),
2482
+ lookup: L,
2483
+ "generic-name": P(a.genericName),
2484
+ "family-name": P(a.familyName),
2485
+ number: P(a.number),
2486
+ "line-width": P(a.lineWidth),
2487
+ "absolute-size": P(a.absoluteSize),
2488
+ "relative-size": P(a.relativeSize),
2489
+ shadow: P(a.shadow),
2490
+ size: P(n.backgroundSize)
2491
+ }, H = Object.keys(G);
2492
+ function R(b, D) {
2493
+ let S = b.indexOf(D);
2494
+ return S === -1 ? [
2495
2495
  void 0,
2496
- y
2496
+ b
2497
2497
  ] : [
2498
- y.slice(0, C),
2499
- y.slice(C + 1)
2498
+ b.slice(0, S),
2499
+ b.slice(S + 1)
2500
2500
  ];
2501
2501
  }
2502
- function U(y, D, C, m) {
2503
- if (C.values && D in C.values)
2504
- for (let { type: _ } of y != null ? y : []) {
2505
- let g = L[_](D, C, {
2506
- tailwindConfig: m
2502
+ function U(b, D, S, p) {
2503
+ if (S.values && D in S.values)
2504
+ for (let { type: C } of b != null ? b : []) {
2505
+ let y = G[C](D, S, {
2506
+ tailwindConfig: p
2507
2507
  });
2508
- if (g !== void 0)
2508
+ if (y !== void 0)
2509
2509
  return [
2510
- g,
2511
- _,
2510
+ y,
2511
+ C,
2512
2512
  null
2513
2513
  ];
2514
2514
  }
2515
- if (E(D)) {
2516
- let _ = D.slice(1, -1), [g, $] = R(_, ":");
2517
- if (!/^[\w-_]+$/g.test(g))
2518
- $ = _;
2519
- else if (g !== void 0 && !G.includes(g))
2515
+ if (g(D)) {
2516
+ let C = D.slice(1, -1), [y, $] = R(C, ":");
2517
+ if (!/^[\w-_]+$/g.test(y))
2518
+ $ = C;
2519
+ else if (y !== void 0 && !H.includes(y))
2520
2520
  return [];
2521
- if ($.length > 0 && G.includes(g))
2521
+ if ($.length > 0 && H.includes(y))
2522
2522
  return [
2523
- f(`[${$}]`, C),
2524
- g,
2523
+ c(`[${$}]`, S),
2524
+ y,
2525
2525
  null
2526
2526
  ];
2527
2527
  }
2528
- let x = W(y, D, C, m);
2529
- for (let _ of x)
2530
- return _;
2528
+ let _ = W(b, D, S, p);
2529
+ for (let C of _)
2530
+ return C;
2531
2531
  return [];
2532
2532
  }
2533
- function* W(y, D, C, m) {
2534
- let x = (0, d.flagEnabled)(m, "generalizedModifiers"), [_, g] = b(D);
2535
- if (x && C.modifiers != null && (C.modifiers === "any" || typeof C.modifiers == "object" && (g && E(g) || g in C.modifiers)) || (_ = D, g = void 0), g !== void 0 && _ === "" && (_ = "DEFAULT"), g !== void 0 && typeof C.modifiers == "object") {
2536
- var h, w;
2537
- let F = (w = (h = C.modifiers) === null || h === void 0 ? void 0 : h[g]) !== null && w !== void 0 ? w : null;
2538
- F !== null ? g = F : E(g) && (g = A(g));
2533
+ function* W(b, D, S, p) {
2534
+ let _ = (0, f.flagEnabled)(p, "generalizedModifiers"), [C, y] = x(D);
2535
+ if (_ && S.modifiers != null && (S.modifiers === "any" || typeof S.modifiers == "object" && (y && g(y) || y in S.modifiers)) || (C = D, y = void 0), y !== void 0 && C === "" && (C = "DEFAULT"), y !== void 0 && typeof S.modifiers == "object") {
2536
+ var m, w;
2537
+ let A = (w = (m = S.modifiers) === null || m === void 0 ? void 0 : m[y]) !== null && w !== void 0 ? w : null;
2538
+ A !== null ? y = A : g(y) && (y = M(y));
2539
2539
  }
2540
- for (let { type: F } of y != null ? y : []) {
2541
- let O = L[F](_, C, {
2542
- tailwindConfig: m
2540
+ for (let { type: A } of b != null ? b : []) {
2541
+ let O = G[A](C, S, {
2542
+ tailwindConfig: p
2543
2543
  });
2544
2544
  O !== void 0 && (yield [
2545
2545
  O,
2546
- F,
2547
- g != null ? g : null
2546
+ A,
2547
+ y != null ? y : null
2548
2548
  ]);
2549
2549
  }
2550
2550
  }
2551
2551
  })(Ie);
2552
- var Ze = {};
2552
+ var Ye = {};
2553
2553
  (function(e) {
2554
2554
  Object.defineProperty(e, "__esModule", {
2555
2555
  value: !0
@@ -2562,170 +2562,170 @@ var Ze = {};
2562
2562
  function t(r) {
2563
2563
  return typeof r == "function" ? r({}) : r;
2564
2564
  }
2565
- })(Ze);
2565
+ })(Ye);
2566
2566
  (function(e) {
2567
2567
  Object.defineProperty(e, "__esModule", {
2568
2568
  value: !0
2569
2569
  }), Object.defineProperty(e, "default", {
2570
2570
  enumerable: !0,
2571
2571
  get: function() {
2572
- return C;
2572
+ return S;
2573
2573
  }
2574
2574
  });
2575
- const t = /* @__PURE__ */ E(me), r = /* @__PURE__ */ E(He), n = /* @__PURE__ */ E(Le), s = /* @__PURE__ */ E(pe), o = je, i = Re, d = We, l = /* @__PURE__ */ E(Ne), a = Ue, u = Ie, v = ve, f = /* @__PURE__ */ E(Ze);
2576
- function E(m) {
2577
- return m && m.__esModule ? m : {
2578
- default: m
2575
+ const t = /* @__PURE__ */ g(me), r = /* @__PURE__ */ g(Le), i = /* @__PURE__ */ g(Ge), a = /* @__PURE__ */ g(pe), o = je, n = Re, f = We, l = /* @__PURE__ */ g(Ne), s = Ue, d = Ie, v = ve, c = /* @__PURE__ */ g(Ye);
2576
+ function g(p) {
2577
+ return p && p.__esModule ? p : {
2578
+ default: p
2579
2579
  };
2580
2580
  }
2581
- function b(m) {
2582
- return typeof m == "function";
2581
+ function x(p) {
2582
+ return typeof p == "function";
2583
2583
  }
2584
- function k(m, ...x) {
2585
- let _ = x.pop();
2586
- for (let g of x)
2587
- for (let $ in g) {
2588
- let h = _(m[$], g[$]);
2589
- h === void 0 ? (0, l.default)(m[$]) && (0, l.default)(g[$]) ? m[$] = k({}, m[$], g[$], _) : m[$] = g[$] : m[$] = h;
2584
+ function k(p, ..._) {
2585
+ let C = _.pop();
2586
+ for (let y of _)
2587
+ for (let $ in y) {
2588
+ let m = C(p[$], y[$]);
2589
+ m === void 0 ? (0, l.default)(p[$]) && (0, l.default)(y[$]) ? p[$] = k({}, p[$], y[$], C) : p[$] = y[$] : p[$] = m;
2590
2590
  }
2591
- return m;
2591
+ return p;
2592
2592
  }
2593
- const A = {
2594
- colors: s.default,
2595
- negative(m) {
2596
- return Object.keys(m).filter((x) => m[x] !== "0").reduce((x, _) => {
2597
- let g = (0, t.default)(m[_]);
2598
- return g !== void 0 && (x[`-${_}`] = g), x;
2593
+ const M = {
2594
+ colors: a.default,
2595
+ negative(p) {
2596
+ return Object.keys(p).filter((_) => p[_] !== "0").reduce((_, C) => {
2597
+ let y = (0, t.default)(p[C]);
2598
+ return y !== void 0 && (_[`-${C}`] = y), _;
2599
2599
  }, {});
2600
2600
  },
2601
- breakpoints(m) {
2602
- return Object.keys(m).filter((x) => typeof m[x] == "string").reduce((x, _) => ({
2603
- ...x,
2604
- [`screen-${_}`]: m[_]
2601
+ breakpoints(p) {
2602
+ return Object.keys(p).filter((_) => typeof p[_] == "string").reduce((_, C) => ({
2603
+ ..._,
2604
+ [`screen-${C}`]: p[C]
2605
2605
  }), {});
2606
2606
  }
2607
2607
  };
2608
- function z(m, ...x) {
2609
- return b(m) ? m(...x) : m;
2608
+ function z(p, ..._) {
2609
+ return x(p) ? p(..._) : p;
2610
2610
  }
2611
- function H(m) {
2612
- return m.reduce((x, { extend: _ }) => k(x, _, (g, $) => g === void 0 ? [
2611
+ function L(p) {
2612
+ return p.reduce((_, { extend: C }) => k(_, C, (y, $) => y === void 0 ? [
2613
2613
  $
2614
- ] : Array.isArray(g) ? [
2614
+ ] : Array.isArray(y) ? [
2615
2615
  $,
2616
- ...g
2616
+ ...y
2617
2617
  ] : [
2618
2618
  $,
2619
- g
2619
+ y
2620
2620
  ]), {});
2621
2621
  }
2622
- function M(m) {
2622
+ function P(p) {
2623
2623
  return {
2624
- ...m.reduce((x, _) => (0, o.defaults)(x, _), {}),
2624
+ ...p.reduce((_, C) => (0, o.defaults)(_, C), {}),
2625
2625
  // In order to resolve n config objects, we combine all of their `extend` properties
2626
2626
  // into arrays instead of objects so they aren't overridden.
2627
- extend: H(m)
2627
+ extend: L(p)
2628
2628
  };
2629
2629
  }
2630
- function L(m, x) {
2631
- if (Array.isArray(m) && (0, l.default)(m[0]))
2632
- return m.concat(x);
2633
- if (Array.isArray(x) && (0, l.default)(x[0]) && (0, l.default)(m))
2630
+ function G(p, _) {
2631
+ if (Array.isArray(p) && (0, l.default)(p[0]))
2632
+ return p.concat(_);
2633
+ if (Array.isArray(_) && (0, l.default)(_[0]) && (0, l.default)(p))
2634
2634
  return [
2635
- m,
2636
- ...x
2635
+ p,
2636
+ ..._
2637
2637
  ];
2638
- if (Array.isArray(x))
2639
- return x;
2638
+ if (Array.isArray(_))
2639
+ return _;
2640
2640
  }
2641
- function G({ extend: m, ...x }) {
2642
- return k(x, m, (_, g) => !b(_) && !g.some(b) ? k({}, _, ...g, L) : ($, h) => k({}, ...[
2643
- _,
2644
- ...g
2645
- ].map((w) => z(w, $, h)), L));
2641
+ function H({ extend: p, ..._ }) {
2642
+ return k(_, p, (C, y) => !x(C) && !y.some(x) ? k({}, C, ...y, G) : ($, m) => k({}, ...[
2643
+ C,
2644
+ ...y
2645
+ ].map((w) => z(w, $, m)), G));
2646
2646
  }
2647
- function* R(m) {
2648
- let x = (0, i.toPath)(m);
2649
- if (x.length === 0 || (yield x, Array.isArray(m)))
2647
+ function* R(p) {
2648
+ let _ = (0, n.toPath)(p);
2649
+ if (_.length === 0 || (yield _, Array.isArray(p)))
2650
2650
  return;
2651
- let _ = /^(.*?)\s*\/\s*([^/]+)$/, g = m.match(_);
2652
- if (g !== null) {
2653
- let [, $, h] = g, w = (0, i.toPath)($);
2654
- w.alpha = h, yield w;
2651
+ let C = /^(.*?)\s*\/\s*([^/]+)$/, y = p.match(C);
2652
+ if (y !== null) {
2653
+ let [, $, m] = y, w = (0, n.toPath)($);
2654
+ w.alpha = m, yield w;
2655
2655
  }
2656
2656
  }
2657
- function U(m) {
2658
- const x = (_, g) => {
2659
- for (const $ of R(_)) {
2660
- let h = 0, w = m;
2661
- for (; w != null && h < $.length; )
2662
- w = w[$[h++]], w = b(w) && ($.alpha === void 0 || h <= $.length - 1) ? w(x, A) : w;
2657
+ function U(p) {
2658
+ const _ = (C, y) => {
2659
+ for (const $ of R(C)) {
2660
+ let m = 0, w = p;
2661
+ for (; w != null && m < $.length; )
2662
+ w = w[$[m++]], w = x(w) && ($.alpha === void 0 || m <= $.length - 1) ? w(_, M) : w;
2663
2663
  if (w !== void 0) {
2664
2664
  if ($.alpha !== void 0) {
2665
- let F = (0, u.parseColorFormat)(w);
2666
- return (0, v.withAlphaValue)(F, $.alpha, (0, f.default)(F));
2665
+ let A = (0, d.parseColorFormat)(w);
2666
+ return (0, v.withAlphaValue)(A, $.alpha, (0, c.default)(A));
2667
2667
  }
2668
- return (0, l.default)(w) ? (0, a.cloneDeep)(w) : w;
2668
+ return (0, l.default)(w) ? (0, s.cloneDeep)(w) : w;
2669
2669
  }
2670
2670
  }
2671
- return g;
2671
+ return y;
2672
2672
  };
2673
- return Object.assign(x, {
2674
- theme: x,
2675
- ...A
2676
- }), Object.keys(m).reduce((_, g) => (_[g] = b(m[g]) ? m[g](x, A) : m[g], _), {});
2673
+ return Object.assign(_, {
2674
+ theme: _,
2675
+ ...M
2676
+ }), Object.keys(p).reduce((C, y) => (C[y] = x(p[y]) ? p[y](_, M) : p[y], C), {});
2677
2677
  }
2678
- function W(m) {
2679
- let x = [];
2680
- return m.forEach((_) => {
2681
- x = [
2682
- ...x,
2683
- _
2678
+ function W(p) {
2679
+ let _ = [];
2680
+ return p.forEach((C) => {
2681
+ _ = [
2682
+ ..._,
2683
+ C
2684
2684
  ];
2685
- var g;
2686
- const $ = (g = _ == null ? void 0 : _.plugins) !== null && g !== void 0 ? g : [];
2687
- $.length !== 0 && $.forEach((h) => {
2688
- h.__isOptionsFunction && (h = h());
2685
+ var y;
2686
+ const $ = (y = C == null ? void 0 : C.plugins) !== null && y !== void 0 ? y : [];
2687
+ $.length !== 0 && $.forEach((m) => {
2688
+ m.__isOptionsFunction && (m = m());
2689
2689
  var w;
2690
- x = [
2691
- ...x,
2690
+ _ = [
2691
+ ..._,
2692
2692
  ...W([
2693
- (w = h == null ? void 0 : h.config) !== null && w !== void 0 ? w : {}
2693
+ (w = m == null ? void 0 : m.config) !== null && w !== void 0 ? w : {}
2694
2694
  ])
2695
2695
  ];
2696
2696
  });
2697
- }), x;
2697
+ }), _;
2698
2698
  }
2699
- function y(m) {
2699
+ function b(p) {
2700
2700
  return [
2701
- ...m
2702
- ].reduceRight((_, g) => b(g) ? g({
2703
- corePlugins: _
2704
- }) : (0, n.default)(g, _), r.default);
2701
+ ...p
2702
+ ].reduceRight((C, y) => x(y) ? y({
2703
+ corePlugins: C
2704
+ }) : (0, i.default)(y, C), r.default);
2705
2705
  }
2706
- function D(m) {
2706
+ function D(p) {
2707
2707
  return [
2708
- ...m
2709
- ].reduceRight((_, g) => [
2710
- ..._,
2711
- ...g
2708
+ ...p
2709
+ ].reduceRight((C, y) => [
2710
+ ...C,
2711
+ ...y
2712
2712
  ], []);
2713
2713
  }
2714
- function C(m) {
2715
- let x = [
2716
- ...W(m),
2714
+ function S(p) {
2715
+ let _ = [
2716
+ ...W(p),
2717
2717
  {
2718
2718
  prefix: "",
2719
2719
  important: !1,
2720
2720
  separator: ":"
2721
2721
  }
2722
2722
  ];
2723
- var _, g;
2724
- return (0, d.normalizeConfig)((0, o.defaults)({
2725
- theme: U(G(M(x.map(($) => (_ = $ == null ? void 0 : $.theme) !== null && _ !== void 0 ? _ : {})))),
2726
- corePlugins: y(x.map(($) => $.corePlugins)),
2727
- plugins: D(m.map(($) => (g = $ == null ? void 0 : $.plugins) !== null && g !== void 0 ? g : []))
2728
- }, ...x));
2723
+ var C, y;
2724
+ return (0, f.normalizeConfig)((0, o.defaults)({
2725
+ theme: U(H(P(_.map(($) => (C = $ == null ? void 0 : $.theme) !== null && C !== void 0 ? C : {})))),
2726
+ corePlugins: b(_.map(($) => $.corePlugins)),
2727
+ plugins: D(p.map(($) => (y = $ == null ? void 0 : $.plugins) !== null && y !== void 0 ? y : []))
2728
+ }, ..._));
2729
2729
  }
2730
2730
  })(ze);
2731
2731
  var Ke = {}, ft = {
@@ -3725,26 +3725,26 @@ var Ke = {}, ft = {
3725
3725
  }), Object.defineProperty(e, "default", {
3726
3726
  enumerable: !0,
3727
3727
  get: function() {
3728
- return s;
3728
+ return a;
3729
3729
  }
3730
3730
  });
3731
- const t = /* @__PURE__ */ n(ft), r = se;
3732
- function n(o) {
3731
+ const t = /* @__PURE__ */ i(ft), r = se;
3732
+ function i(o) {
3733
3733
  return o && o.__esModule ? o : {
3734
3734
  default: o
3735
3735
  };
3736
3736
  }
3737
- function s(o) {
3738
- var i;
3739
- const d = ((i = o == null ? void 0 : o.presets) !== null && i !== void 0 ? i : [
3737
+ function a(o) {
3738
+ var n;
3739
+ const f = ((n = o == null ? void 0 : o.presets) !== null && n !== void 0 ? n : [
3740
3740
  t.default
3741
- ]).slice().reverse().flatMap((u) => s(u instanceof Function ? u() : u)), l = {
3741
+ ]).slice().reverse().flatMap((d) => a(d instanceof Function ? d() : d)), l = {
3742
3742
  // Add experimental configs here...
3743
3743
  respectDefaultRingColorOpacity: {
3744
3744
  theme: {
3745
- ringColor: ({ theme: u }) => ({
3745
+ ringColor: ({ theme: d }) => ({
3746
3746
  DEFAULT: "#3b82f67f",
3747
- ...u("colors")
3747
+ ...d("colors")
3748
3748
  })
3749
3749
  }
3750
3750
  },
@@ -3758,11 +3758,11 @@ var Ke = {}, ft = {
3758
3758
  textOpacity: !1
3759
3759
  }
3760
3760
  }
3761
- }, a = Object.keys(l).filter((u) => (0, r.flagEnabled)(o, u)).map((u) => l[u]);
3761
+ }, s = Object.keys(l).filter((d) => (0, r.flagEnabled)(o, d)).map((d) => l[d]);
3762
3762
  return [
3763
3763
  o,
3764
- ...a,
3765
- ...d
3764
+ ...s,
3765
+ ...f
3766
3766
  ];
3767
3767
  }
3768
3768
  })(Ke);
@@ -3772,24 +3772,24 @@ var Ke = {}, ft = {
3772
3772
  }), Object.defineProperty(e, "default", {
3773
3773
  enumerable: !0,
3774
3774
  get: function() {
3775
- return s;
3775
+ return a;
3776
3776
  }
3777
3777
  });
3778
- const t = /* @__PURE__ */ n(ze), r = /* @__PURE__ */ n(Ke);
3779
- function n(o) {
3778
+ const t = /* @__PURE__ */ i(ze), r = /* @__PURE__ */ i(Ke);
3779
+ function i(o) {
3780
3780
  return o && o.__esModule ? o : {
3781
3781
  default: o
3782
3782
  };
3783
3783
  }
3784
- function s(...o) {
3785
- let [, ...i] = (0, r.default)(o[0]);
3784
+ function a(...o) {
3785
+ let [, ...n] = (0, r.default)(o[0]);
3786
3786
  return (0, t.default)([
3787
3787
  ...o,
3788
- ...i
3788
+ ...n
3789
3789
  ]);
3790
3790
  }
3791
- })(Pe);
3792
- let oe = Pe;
3791
+ })(Fe);
3792
+ let oe = Fe;
3793
3793
  var ht = (oe.__esModule ? oe : { default: oe }).default;
3794
3794
  const mt = /* @__PURE__ */ dt(ht);
3795
3795
  let le = pe;
@@ -3917,34 +3917,34 @@ const pt = {
3917
3917
  }
3918
3918
  ]
3919
3919
  }, Je = mt(vt), yt = Je.theme.fontSize, bt = Je.theme.colors, lr = [
3920
- T.dot,
3921
- T.xs,
3922
- T.sm,
3923
- T.md,
3924
- T.lg,
3925
- T.xl
3920
+ E.dot,
3921
+ E.xs,
3922
+ E.sm,
3923
+ E.md,
3924
+ E.lg,
3925
+ E.xl
3926
3926
  ], ur = [
3927
- T.xs,
3928
- T.sm,
3929
- T.md,
3930
- T.lg,
3931
- T.xl,
3932
- T["2xl"]
3927
+ E.xs,
3928
+ E.sm,
3929
+ E.md,
3930
+ E.lg,
3931
+ E.xl,
3932
+ E["2xl"]
3933
3933
  ], xt = [
3934
- T.xs,
3935
- T.sm,
3936
- T.md,
3937
- T.base,
3938
- T.lg,
3939
- T.xl,
3940
- T["2xl"],
3941
- T["3xl"],
3942
- T["4xl"],
3943
- T["5xl"],
3944
- T["6xl"],
3945
- T["7xl"],
3946
- T["8xl"],
3947
- T["9xl"]
3934
+ E.xs,
3935
+ E.sm,
3936
+ E.md,
3937
+ E.base,
3938
+ E.lg,
3939
+ E.xl,
3940
+ E["2xl"],
3941
+ E["3xl"],
3942
+ E["4xl"],
3943
+ E["5xl"],
3944
+ E["6xl"],
3945
+ E["7xl"],
3946
+ E["8xl"],
3947
+ E["9xl"]
3948
3948
  ], cr = [
3949
3949
  B.warning,
3950
3950
  B.error,
@@ -3976,7 +3976,7 @@ const pt = {
3976
3976
  },
3977
3977
  size: {
3978
3978
  type: String,
3979
- default: T.sm
3979
+ default: E.sm
3980
3980
  }
3981
3981
  },
3982
3982
  computed: {
@@ -3987,8 +3987,8 @@ const pt = {
3987
3987
  }), {});
3988
3988
  },
3989
3989
  iconClasses() {
3990
- var n, s;
3991
- const e = this.sizes[this.size] || this.sizes[T.sm], t = `${((s = (n = this.icon) == null ? void 0 : n.split(" ")) == null ? void 0 : s.length) > 1 ? this.icon : `fa fa-${this.icon}`}`;
3990
+ var i, a;
3991
+ const e = this.sizes[this.size] || this.sizes[E.sm], t = `${((a = (i = this.icon) == null ? void 0 : i.split(" ")) == null ? void 0 : a.length) > 1 ? this.icon : `fa fa-${this.icon}`}`;
3992
3992
  return [
3993
3993
  "e-inline-flex e-items-center e-justify-center e-rounded-full",
3994
3994
  this.color,
@@ -3998,13 +3998,13 @@ const pt = {
3998
3998
  }
3999
3999
  }
4000
4000
  });
4001
- var wt = function() {
4001
+ var Ct = function() {
4002
4002
  var t = this, r = t._self._c;
4003
4003
  return r("div", { staticClass: "e-icon" }, [r("i", { class: t.iconClasses })]);
4004
- }, Ct = [], St = /* @__PURE__ */ I(
4004
+ }, wt = [], St = /* @__PURE__ */ I(
4005
4005
  _t,
4006
- wt,
4007
4006
  Ct,
4007
+ wt,
4008
4008
  !1,
4009
4009
  null,
4010
4010
  null,
@@ -4028,7 +4028,7 @@ const Tt = St.exports, Et = q.extend({
4028
4028
  },
4029
4029
  size: {
4030
4030
  type: String,
4031
- default: T.base
4031
+ default: E.base
4032
4032
  },
4033
4033
  opacity: {
4034
4034
  type: [String, Number],
@@ -4043,7 +4043,7 @@ const Tt = St.exports, Et = q.extend({
4043
4043
  },
4044
4044
  computed: {
4045
4045
  computedSize() {
4046
- return this.sizes[T[this.size]] || this.size || this.sizes[T.base];
4046
+ return this.sizes[E[this.size]] || this.size || this.sizes[E.base];
4047
4047
  },
4048
4048
  fill() {
4049
4049
  let e = {
@@ -4079,17 +4079,17 @@ var $t = function() {
4079
4079
  "e-spinner--dark": t.dark,
4080
4080
  "e-spinner--grey": !t.color
4081
4081
  }, style: { opacity: t.opacity }, attrs: { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1629.32 1608.86", width: t.computedSize, height: t.computedSize } }, [r("path", { staticClass: "e-spinner__primary", style: t.getNthPathStyle(0), attrs: { d: "m1254.12,591.61C992.01,401.11,439.78,0,439.78,0h601.2c14.3,0,48.95,9.02,62.54,38.01,55.27,117.88,111.32,235.46,170.48,351.43,33.16,70.9-8.99,170.35-19.87,202.16" } }), r("path", { staticClass: "e-spinner__secondary", style: t.getNthPathStyle(1), attrs: { d: "m1404.65,131.67c-29.37,89.94-55.8,170.95-82.25,251.93-4.05.87-8.1,1.73-12.15,2.61-40.61-83.95-81.21-167.9-123.12-254.54h217.51Z" } }), r("path", { staticClass: "e-spinner__primary", style: t.getNthPathStyle(2), attrs: { d: "m1129.06,1093.51c100.75-307.98,312.75-956.75,312.75-956.75,0,0,180.36,558.53,184.75,572.14,4.39,13.59,6.45,49.34-16.96,71.19-95.21,88.81-189.88,178.28-282.06,270.2-57.29,53.34-164.86,43.8-198.48,43.21" } }), r("path", { staticClass: "e-spinner__secondary", style: t.getNthPathStyle(3), attrs: { d: "m1342.3,1083.06c66.6-63.43,133.22-126.86,207.93-197.98,21.51,73.55,40.3,137.81,60.64,207.37h-263.35c-1.75-3.13-3.48-6.27-5.22-9.39" } }), r("path", { staticClass: "e-spinner__primary", style: t.getNthPathStyle(4), attrs: { d: "m610.27,1137.17c324.03-.53,1006.55-1.85,1006.55-1.85,0,0-474.19,345.83-485.74,354.25-11.55,8.42-44.87,21.56-72.94,6.14-114.11-62.68-228.69-124.66-344.81-183.5-68.56-37.76-93.12-142.93-103.06-175.04" } }), r("path", { staticClass: "e-spinner__secondary", style: t.getNthPathStyle(5), attrs: { d: "m938.58,1468.29c-62.81,42.58-118.35,80.24-180.28,122.23-28.35-87.22-54.62-168.03-80.89-248.86,2.62-2.92,5.26-5.85,7.9-8.76,81.89,43.78,163.79,87.56,253.26,135.39" } }), r("path", { staticClass: "e-spinner__primary", style: t.getNthPathStyle(6), attrs: { d: "m413.07,652.86c101.35,307.77,314.99,956,314.99,956,0,0-476.23-343.04-487.83-351.39-11.58-8.36-34.44-35.93-28.52-67.4,24.07-127.96,47.3-256.13,67.09-384.8,14.54-76.9,106.84-132.96,134.28-152.42" } }), r("path", { staticClass: "e-spinner__secondary", style: t.getNthPathStyle(7), attrs: { d: "m197.48,1068.8c-62.36-47.73-115.99-88.79-176.78-135.33,75.54-54.91,146.18-106.24,216.83-157.57,3.73,2.24,7.45,4.47,11.19,6.71-16.36,91.3-32.7,182.61-51.25,286.19" } }), r("path", { staticClass: "e-spinner__primary", style: t.getNthPathStyle(8), attrs: { d: "m813.58,314.41C551.63,505.15,0,907.07,0,907.07c0,0,180.68-558.4,185.09-572.01,4.39-13.59,23.65-43.78,55.41-47.8,129.19-16.29,258.32-33.41,386.86-53.99,77.67-9.72,159.3,60.97,186.22,81.13" } }), r("path", { staticClass: "e-spinner__secondary", style: t.getNthPathStyle(9), attrs: { d: "m635.14,199.78c-91.99,12.38-183.97,24.77-288.07,38.76,25.77-73.18,48.3-137.14,73.8-209.53,76.56,55.41,147.27,106.58,217.97,157.75-1.23,4.34-2.46,8.68-3.69,13.02" } })]);
4082
- }, Dt = [], kt = /* @__PURE__ */ I(
4082
+ }, kt = [], Dt = /* @__PURE__ */ I(
4083
4083
  Et,
4084
4084
  $t,
4085
- Dt,
4085
+ kt,
4086
4086
  !1,
4087
4087
  null,
4088
4088
  "29711f67",
4089
4089
  null,
4090
4090
  null
4091
4091
  );
4092
- const Qe = kt.exports, Ot = q.extend({
4092
+ const Qe = Dt.exports, Ot = q.extend({
4093
4093
  props: {
4094
4094
  align: {
4095
4095
  type: String,
@@ -4149,20 +4149,20 @@ const Qe = kt.exports, Ot = q.extend({
4149
4149
  }
4150
4150
  }
4151
4151
  });
4152
- var At = function() {
4152
+ var Mt = function() {
4153
4153
  var t = this, r = t._self._c;
4154
4154
  return t._self._setupProxy, r("div", { staticClass: "e-row e-flex e-flex-wrap", class: t.rowClasses }, [t._t("default")], 2);
4155
- }, Ft = [], Mt = /* @__PURE__ */ I(
4155
+ }, At = [], Pt = /* @__PURE__ */ I(
4156
4156
  Ot,
4157
+ Mt,
4157
4158
  At,
4158
- Ft,
4159
4159
  !1,
4160
4160
  null,
4161
4161
  null,
4162
4162
  null,
4163
4163
  null
4164
4164
  );
4165
- const Pt = Mt.exports, zt = q.extend({
4165
+ const Ft = Pt.exports, zt = q.extend({
4166
4166
  props: {
4167
4167
  alignSelf: {
4168
4168
  type: String,
@@ -4266,20 +4266,20 @@ const Pt = Mt.exports, zt = q.extend({
4266
4266
  }
4267
4267
  }
4268
4268
  });
4269
- var Ht = function() {
4269
+ var Lt = function() {
4270
4270
  var t = this, r = t._self._c;
4271
4271
  return r("div", { staticClass: "e-col", class: t.colClasses }, [t._t("default")], 2);
4272
- }, Lt = [], Gt = /* @__PURE__ */ I(
4272
+ }, Gt = [], Ht = /* @__PURE__ */ I(
4273
4273
  zt,
4274
- Ht,
4275
4274
  Lt,
4275
+ Gt,
4276
4276
  !1,
4277
4277
  null,
4278
4278
  null,
4279
4279
  null,
4280
4280
  null
4281
4281
  );
4282
- const Bt = Gt.exports;
4282
+ const Bt = Ht.exports;
4283
4283
  function et() {
4284
4284
  const e = document;
4285
4285
  return !!(e.fullscreenElement || e.mozFullScreenElement || e.webkitFullscreenElement || e.msFullscreenElement);
@@ -4312,10 +4312,10 @@ function Rt() {
4312
4312
  }
4313
4313
  function Wt(e, t) {
4314
4314
  let r = null;
4315
- return function(...n) {
4316
- const s = this;
4315
+ return function(...i) {
4316
+ const a = this;
4317
4317
  r !== null && clearTimeout(r), r = setTimeout(() => {
4318
- r = null, e.apply(s, n);
4318
+ r = null, e.apply(a, i);
4319
4319
  }, t || 1e3);
4320
4320
  };
4321
4321
  }
@@ -4334,8 +4334,8 @@ const ue = new Intl.NumberFormat(void 0, {
4334
4334
  "statechanged",
4335
4335
  "error"
4336
4336
  ], ee = (e) => {
4337
- const t = Math.floor(e % 60), r = Math.floor(e / 60) % 60, n = Math.floor(e / 3600);
4338
- return n === 0 ? `${r}:${ue.format(t)}` : `${n}:${ue.format(
4337
+ const t = Math.floor(e % 60), r = Math.floor(e / 60) % 60, i = Math.floor(e / 3600);
4338
+ return i === 0 ? `${r}:${ue.format(t)}` : `${i}:${ue.format(
4339
4339
  r
4340
4340
  )}:${ue.format(t)}`;
4341
4341
  }, Nt = q.extend({
@@ -4410,11 +4410,11 @@ const ue = new Intl.NumberFormat(void 0, {
4410
4410
  const t = this.$refs.player, r = this.$refs.timelineContainer;
4411
4411
  t.addEventListener(
4412
4412
  e,
4413
- (n) => {
4413
+ (i) => {
4414
4414
  e === "loadeddata" && (this.videoLength = ee(t.duration)), e === "timeupdate" && (this.percentagePlayed = t.currentTime / t.duration * 100, r.style.setProperty(
4415
4415
  "--progress-position",
4416
4416
  this.percentagePlayed.toString()
4417
- )), this.$emit(e, { event: n, player: this });
4417
+ )), this.$emit(e, { event: i, player: this });
4418
4418
  },
4419
4419
  !0
4420
4420
  );
@@ -4423,11 +4423,11 @@ const ue = new Intl.NumberFormat(void 0, {
4423
4423
  const t = this.$refs.player, r = this.$refs.timelineContainer;
4424
4424
  t.addEventListener(
4425
4425
  e,
4426
- (n) => {
4426
+ (i) => {
4427
4427
  e === "loadeddata" && (this.videoLength = ee(t.duration)), e === "timeupdate" && (this.percentagePlayed = t.currentTime / t.duration * 100, r.style.setProperty(
4428
4428
  "--progress-position",
4429
4429
  this.percentagePlayed.toString()
4430
- )), this.$emit(e, { event: n, player: this });
4430
+ )), this.$emit(e, { event: i, player: this });
4431
4431
  },
4432
4432
  !0
4433
4433
  );
@@ -4543,13 +4543,13 @@ const ue = new Intl.NumberFormat(void 0, {
4543
4543
  const t = this.$refs.player;
4544
4544
  if (!document.body.contains(t))
4545
4545
  return;
4546
- const r = this.$refs.timelineContainer, n = r.getBoundingClientRect(), s = Math.min(Math.max(0, e.x - n.x), n.width) / n.width;
4546
+ const r = this.$refs.timelineContainer, i = r.getBoundingClientRect(), a = Math.min(Math.max(0, e.x - i.x), i.width) / i.width;
4547
4547
  r.style.setProperty(
4548
4548
  "--preview-position",
4549
- s.toString()
4549
+ a.toString()
4550
4550
  ), this.isScrubbing && (e.preventDefault(), r.style.setProperty(
4551
4551
  "--progress-position",
4552
- s.toString()
4552
+ a.toString()
4553
4553
  ));
4554
4554
  },
4555
4555
  skip(e = 5) {
@@ -4557,18 +4557,18 @@ const ue = new Intl.NumberFormat(void 0, {
4557
4557
  t.currentTime += e;
4558
4558
  },
4559
4559
  async toggleScrubbing(e) {
4560
- const t = this.$refs.timelineContainer, r = this.$refs.videoContainer, n = this.$refs.player;
4561
- if (!n)
4560
+ const t = this.$refs.timelineContainer, r = this.$refs.videoContainer, i = this.$refs.player;
4561
+ if (!i)
4562
4562
  return;
4563
- const s = t.getBoundingClientRect(), o = Math.min(Math.max(0, e.x - s.x), s.width) / s.width;
4563
+ const a = t.getBoundingClientRect(), o = Math.min(Math.max(0, e.x - a.x), a.width) / a.width;
4564
4564
  if (this.isScrubbing = (e.buttons & 1) === 1, r.classList.toggle("scrubbing", this.isScrubbing), this.isScrubbing) {
4565
- this.wasPaused = n.paused, await n.pause(), this.handleTimelineUpdate(e);
4565
+ this.wasPaused = i.paused, await i.pause(), this.handleTimelineUpdate(e);
4566
4566
  return;
4567
4567
  }
4568
- if (this.realtime = o * this.videoDuration, n.currentTime = o * this.videoDuration, this.wasPaused)
4568
+ if (this.realtime = o * this.videoDuration, i.currentTime = o * this.videoDuration, this.wasPaused)
4569
4569
  return;
4570
- const i = n.play();
4571
- i !== void 0 && i.then(() => this.handleTimelineUpdate(e)).catch(console.error);
4570
+ const n = i.play();
4571
+ n !== void 0 && n.then(() => this.handleTimelineUpdate(e)).catch(console.error);
4572
4572
  },
4573
4573
  handleKeyDown(e) {
4574
4574
  var r;
@@ -4595,8 +4595,8 @@ const ue = new Intl.NumberFormat(void 0, {
4595
4595
  });
4596
4596
  var Ut = function() {
4597
4597
  var t = this, r = t._self._c;
4598
- return r("div", { ref: "videoContainer", staticClass: "video-container paused", attrs: { "data-volume-level": "high" } }, [r("video", t._g(t._b({ ref: "player", attrs: { controls: !1, preload: "auto" }, on: { ended: t.handleEnded, click: t.togglePlay, loadedmetadata: t.getDuration, timeupdate: t.handleTimeUpdate, loadeddata: t.handleLoading } }, "video", t.videoOptions, !1), t.videoListeners), t._l(t.sourceItems, function(n) {
4599
- return r("source", t._g({ key: n.src, attrs: { src: n.src, type: n.type }, on: { error: t.handle404Error } }, t.videoListeners));
4598
+ return r("div", { ref: "videoContainer", staticClass: "video-container paused", attrs: { "data-volume-level": "high" } }, [r("video", t._g(t._b({ ref: "player", attrs: { controls: !1, preload: "auto" }, on: { ended: t.handleEnded, click: t.togglePlay, loadedmetadata: t.getDuration, timeupdate: t.handleTimeUpdate, loadeddata: t.handleLoading } }, "video", t.videoOptions, !1), t.videoListeners), t._l(t.sourceItems, function(i) {
4599
+ return r("source", t._g({ key: i.src, attrs: { src: i.src, type: i.type }, on: { error: t.handle404Error } }, t.videoListeners));
4600
4600
  }), 0), t.isLoading ? r("div", { staticClass: "spinner-container" }, [r("ESpinner", { attrs: { size: "9xl", opacity: "0.6", dark: !0 } })], 1) : t._e(), t.isError ? r("div", { staticClass: "spinner-container e-gap-3" }, [r("i", { staticClass: "fa-solid fa-video-slash fa-2xl e-align-middle" }), r("span", [t._v("This video file cannot be played.")])]) : t._e(), r("div", { class: ["video-controls-container", t.withControls] }, [r("div", { staticClass: "controls" }, [r("button", { ref: "playPauseBtn", staticClass: "play-pause-btn fa-lg fa-solid", class: {
4601
4601
  "fa-play": !t.playing,
4602
4602
  "fa-pause": t.playing
@@ -4617,34 +4617,34 @@ var Ut = function() {
4617
4617
  null,
4618
4618
  null
4619
4619
  );
4620
- const Xt = Vt.exports, ne = (e) => {
4621
- const t = c.utcFormat("%_d")(e), n = {
4620
+ const Xt = Vt.exports, ie = (e) => {
4621
+ const t = u.utcFormat("%_d")(e), i = {
4622
4622
  1: "st",
4623
4623
  2: "nd",
4624
4624
  3: "rd"
4625
4625
  }[t.charAt(1)] || "th";
4626
- return `${t}${n}`;
4626
+ return `${t}${i}`;
4627
4627
  }, _e = (e) => new Date(
4628
4628
  Date.UTC(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate() + 1)
4629
- ).getUTCDate() === 1 ? "" : c.utcFormat("%-d")(e), K = (e) => ["0", " 0", "00"].includes(c.utcFormat("%H")(e)) ? "" : `${c.utcFormat("%H")(e)}h`, X = (e) => {
4630
- const t = c.utcFormat("%H:%M")(e);
4629
+ ).getUTCDate() === 1 ? "" : u.utcFormat("%-d")(e), K = (e) => ["0", " 0", "00"].includes(u.utcFormat("%H")(e)) ? "" : `${u.utcFormat("%H")(e)}h`, X = (e) => {
4630
+ const t = u.utcFormat("%H:%M")(e);
4631
4631
  return t === "00:00" ? "" : t;
4632
- }, ce = (e) => c.utcFormat("%M:%S")(e), we = (e) => `${c.utcFormat("%Hh%Mm")(e)}`, he = (e) => {
4633
- const t = X(e), r = ne(e), n = c.utcFormat("%B")(e);
4634
- return t || `${n} ${r}`;
4632
+ }, ce = (e) => u.utcFormat("%M:%S")(e), Ce = (e) => `${u.utcFormat("%Hh%Mm")(e)}`, he = (e) => {
4633
+ const t = X(e), r = ie(e), i = u.utcFormat("%B")(e);
4634
+ return t || `${i} ${r}`;
4635
4635
  }, de = (e) => {
4636
- const t = X(e), r = Number.parseInt(c.utcFormat("%H")(e)), n = ne(e), s = c.utcFormat("%B")(e);
4637
- return t && r % 6 === 0 ? `${s} ${n} ${t}` : he(e);
4636
+ const t = X(e), r = Number.parseInt(u.utcFormat("%H")(e)), i = ie(e), a = u.utcFormat("%B")(e);
4637
+ return t && r % 6 === 0 ? `${a} ${i} ${t}` : he(e);
4638
4638
  }, J = (e) => (t) => {
4639
- const r = c.utcFormat("%H")(t);
4640
- return !(c.utcFormat("%M")(t) === "00" && Number.parseInt(r) % e === 0);
4639
+ const r = u.utcFormat("%H")(t);
4640
+ return !(u.utcFormat("%M")(t) === "00" && Number.parseInt(r) % e === 0);
4641
4641
  }, fe = (e) => (t) => {
4642
- const r = c.utcFormat("%M")(t);
4642
+ const r = u.utcFormat("%M")(t);
4643
4643
  return Number.parseInt(r) % e !== 0;
4644
- }, Ce = (e) => (t) => {
4645
- const r = c.utcFormat("%M")(t), n = c.utcFormat("%S")(t);
4646
- return Number.parseInt(r) % e !== 0 && Number.parseInt(n) === 0;
4647
- }, S = {
4644
+ }, we = (e) => (t) => {
4645
+ const r = u.utcFormat("%M")(t), i = u.utcFormat("%S")(t);
4646
+ return Number.parseInt(r) % e !== 0 && Number.parseInt(i) === 0;
4647
+ }, T = {
4648
4648
  _10_seconds: 25e-6,
4649
4649
  _20_seconds: 1e-4,
4650
4650
  _30_seconds: 15e-5,
@@ -4666,296 +4666,296 @@ const Xt = Vt.exports, ne = (e) => {
4666
4666
  _3_months: 33,
4667
4667
  infinity: 1 / 0
4668
4668
  };
4669
- var Te, Ee, $e, De, ke, Oe, Ae, Fe;
4669
+ var Te, Ee, $e, ke, De, Oe, Me, Ae;
4670
4670
  const qt = {
4671
4671
  [te.overview]: [
4672
4672
  {
4673
- precision: S._30_seconds,
4674
- interval: c.utcMinute.every(2),
4675
- format: we
4673
+ precision: T._30_seconds,
4674
+ interval: u.utcMinute.every(2),
4675
+ format: Ce
4676
4676
  },
4677
4677
  {
4678
- precision: S._1_minute,
4679
- interval: c.utcMinute.every(5),
4680
- format: we
4678
+ precision: T._1_minute,
4679
+ interval: u.utcMinute.every(5),
4680
+ format: Ce
4681
4681
  },
4682
4682
  {
4683
- precision: S._2_minutes,
4684
- interval: c.utcMinute.every(10),
4683
+ precision: T._2_minutes,
4684
+ interval: u.utcMinute.every(10),
4685
4685
  format: he
4686
4686
  },
4687
4687
  {
4688
- precision: S._5_minutes,
4689
- interval: c.utcMinute.every(20),
4688
+ precision: T._5_minutes,
4689
+ interval: u.utcMinute.every(20),
4690
4690
  format: de
4691
4691
  },
4692
4692
  {
4693
- precision: S._15_minutes,
4694
- interval: c.utcHour,
4693
+ precision: T._15_minutes,
4694
+ interval: u.utcHour,
4695
4695
  format: de
4696
4696
  },
4697
4697
  {
4698
- precision: S._30_minutes,
4699
- interval: c.utcHour.every(2),
4698
+ precision: T._30_minutes,
4699
+ interval: u.utcHour.every(2),
4700
4700
  format: de
4701
4701
  },
4702
4702
  {
4703
- precision: S._2_hours,
4704
- interval: c.utcHour.every(6),
4703
+ precision: T._2_hours,
4704
+ interval: u.utcHour.every(6),
4705
4705
  format: (e) => {
4706
- const t = X(e), r = ne(e), n = c.utcFormat("%B")(e);
4707
- return t || `${n} ${r}`;
4706
+ const t = X(e), r = ie(e), i = u.utcFormat("%B")(e);
4707
+ return t || `${i} ${r}`;
4708
4708
  }
4709
4709
  },
4710
4710
  {
4711
- precision: S._3_hours,
4712
- interval: c.utcHour.every(12),
4711
+ precision: T._3_hours,
4712
+ interval: u.utcHour.every(12),
4713
4713
  format: he
4714
4714
  },
4715
4715
  {
4716
- precision: S._6_hours,
4717
- interval: c.utcHour.every(24),
4716
+ precision: T._6_hours,
4717
+ interval: u.utcHour.every(24),
4718
4718
  format: (e) => {
4719
- const t = ne(e);
4720
- return `${c.utcFormat("%b")(e)} ${t}`;
4719
+ const t = ie(e);
4720
+ return `${u.utcFormat("%b")(e)} ${t}`;
4721
4721
  }
4722
4722
  },
4723
4723
  {
4724
- precision: S._2_days,
4725
- interval: c.utcMonth,
4724
+ precision: T._2_days,
4725
+ interval: u.utcMonth,
4726
4726
  format: (e) => {
4727
4727
  const r = e.getUTCMonth() === 0 && e.getUTCDate() === 1 ? "%Y – %B" : "%B";
4728
- return c.utcFormat(r)(e);
4728
+ return u.utcFormat(r)(e);
4729
4729
  }
4730
4730
  },
4731
4731
  {
4732
- precision: S.infinity,
4733
- interval: c.utcYear,
4732
+ precision: T.infinity,
4733
+ interval: u.utcYear,
4734
4734
  format: "%Y"
4735
4735
  }
4736
4736
  ],
4737
4737
  [te.detailed]: [
4738
4738
  {
4739
- precision: S._10_seconds,
4740
- interval: c.utcSecond.every(10),
4739
+ precision: T._10_seconds,
4740
+ interval: u.utcSecond.every(10),
4741
4741
  format: ce
4742
4742
  },
4743
4743
  {
4744
- precision: S._20_seconds,
4745
- interval: (Te = c.utcSecond.every(20)) == null ? void 0 : Te.filter(Ce(2)),
4744
+ precision: T._20_seconds,
4745
+ interval: (Te = u.utcSecond.every(20)) == null ? void 0 : Te.filter(we(2)),
4746
4746
  format: ce
4747
4747
  },
4748
4748
  {
4749
- precision: S._30_seconds,
4750
- interval: (Ee = c.utcSecond.every(30)) == null ? void 0 : Ee.filter(Ce(2)),
4749
+ precision: T._30_seconds,
4750
+ interval: (Ee = u.utcSecond.every(30)) == null ? void 0 : Ee.filter(we(2)),
4751
4751
  format: ce
4752
4752
  },
4753
4753
  {
4754
- precision: S._1_minute,
4755
- interval: c.utcMinute.filter(fe(5)),
4754
+ precision: T._1_minute,
4755
+ interval: u.utcMinute.filter(fe(5)),
4756
4756
  format: X
4757
4757
  },
4758
4758
  {
4759
- precision: S._2_minutes,
4760
- interval: ($e = c.utcMinute.every(2)) == null ? void 0 : $e.filter(fe(10)),
4759
+ precision: T._2_minutes,
4760
+ interval: ($e = u.utcMinute.every(2)) == null ? void 0 : $e.filter(fe(10)),
4761
4761
  format: X
4762
4762
  },
4763
4763
  {
4764
- precision: S._5_minutes,
4765
- interval: (De = c.utcMinute.every(5)) == null ? void 0 : De.filter(fe(20)),
4764
+ precision: T._5_minutes,
4765
+ interval: (ke = u.utcMinute.every(5)) == null ? void 0 : ke.filter(fe(20)),
4766
4766
  format: X
4767
4767
  },
4768
4768
  {
4769
- precision: S._15_minutes,
4770
- interval: (ke = c.utcMinute.every(15)) == null ? void 0 : ke.filter(J(1)),
4769
+ precision: T._15_minutes,
4770
+ interval: (De = u.utcMinute.every(15)) == null ? void 0 : De.filter(J(1)),
4771
4771
  format: X
4772
4772
  },
4773
4773
  {
4774
- precision: S._30_minutes,
4775
- interval: (Oe = c.utcMinute.every(30)) == null ? void 0 : Oe.filter(J(2)),
4774
+ precision: T._30_minutes,
4775
+ interval: (Oe = u.utcMinute.every(30)) == null ? void 0 : Oe.filter(J(2)),
4776
4776
  format: X
4777
4777
  },
4778
4778
  {
4779
- precision: S._1_hour,
4780
- interval: c.utcHour.filter(J(6)),
4779
+ precision: T._1_hour,
4780
+ interval: u.utcHour.filter(J(6)),
4781
4781
  format: K
4782
4782
  },
4783
4783
  {
4784
- precision: S._2_hours,
4785
- interval: (Ae = c.utcHour.every(2)) == null ? void 0 : Ae.filter(J(6)),
4784
+ precision: T._2_hours,
4785
+ interval: (Me = u.utcHour.every(2)) == null ? void 0 : Me.filter(J(6)),
4786
4786
  format: K
4787
4787
  },
4788
4788
  {
4789
- precision: S._3_hours,
4790
- interval: (Fe = c.utcHour.every(3)) == null ? void 0 : Fe.filter(J(12)),
4789
+ precision: T._3_hours,
4790
+ interval: (Ae = u.utcHour.every(3)) == null ? void 0 : Ae.filter(J(12)),
4791
4791
  format: K
4792
4792
  },
4793
4793
  {
4794
- precision: S._4_hours,
4795
- interval: c.utcHour.every(4),
4794
+ precision: T._4_hours,
4795
+ interval: u.utcHour.every(4),
4796
4796
  format: K
4797
4797
  },
4798
4798
  {
4799
- precision: S._6_hours,
4800
- interval: c.utcHour.every(6),
4799
+ precision: T._6_hours,
4800
+ interval: u.utcHour.every(6),
4801
4801
  format: K
4802
4802
  },
4803
4803
  {
4804
- precision: S._1_day,
4805
- interval: c.utcDay,
4804
+ precision: T._1_day,
4805
+ interval: u.utcDay,
4806
4806
  format: _e
4807
4807
  },
4808
4808
  {
4809
- precision: S._2_days,
4810
- interval: c.utcDay.every(2),
4809
+ precision: T._2_days,
4810
+ interval: u.utcDay.every(2),
4811
4811
  format: _e
4812
4812
  },
4813
4813
  {
4814
- precision: S._1_month,
4815
- interval: c.utcMonth,
4814
+ precision: T._1_month,
4815
+ interval: u.utcMonth,
4816
4816
  format: "%B"
4817
4817
  },
4818
4818
  {
4819
- precision: S._1_month_abbr,
4820
- interval: c.utcMonth,
4819
+ precision: T._1_month_abbr,
4820
+ interval: u.utcMonth,
4821
4821
  format: "%b"
4822
4822
  },
4823
4823
  {
4824
- precision: S._1_month_letter,
4825
- interval: c.utcMonth,
4826
- format: (e) => c.utcFormat("%B")(e).charAt(0)
4824
+ precision: T._1_month_letter,
4825
+ interval: u.utcMonth,
4826
+ format: (e) => u.utcFormat("%B")(e).charAt(0)
4827
4827
  },
4828
4828
  {
4829
- precision: S._3_months,
4830
- interval: c.utcMonth.every(3),
4829
+ precision: T._3_months,
4830
+ interval: u.utcMonth.every(3),
4831
4831
  format: "Q%q"
4832
4832
  },
4833
4833
  {
4834
- precision: S.infinity,
4835
- interval: c.utcMonth.every(3),
4834
+ precision: T.infinity,
4835
+ interval: u.utcMonth.every(3),
4836
4836
  format: ""
4837
4837
  }
4838
4838
  ],
4839
4839
  [te.detailedBackground]: [
4840
4840
  {
4841
- precision: S._10_seconds,
4842
- interval: c.utcSecond,
4841
+ precision: T._10_seconds,
4842
+ interval: u.utcSecond,
4843
4843
  format: ""
4844
4844
  },
4845
4845
  {
4846
- precision: S._20_seconds,
4847
- interval: c.utcSecond.every(5),
4846
+ precision: T._20_seconds,
4847
+ interval: u.utcSecond.every(5),
4848
4848
  format: ""
4849
4849
  },
4850
4850
  {
4851
- precision: S._30_seconds,
4852
- interval: c.utcSecond.every(10),
4851
+ precision: T._30_seconds,
4852
+ interval: u.utcSecond.every(10),
4853
4853
  format: ""
4854
4854
  },
4855
4855
  {
4856
- precision: S._1_minute,
4857
- interval: c.utcSecond.every(20),
4856
+ precision: T._1_minute,
4857
+ interval: u.utcSecond.every(20),
4858
4858
  format: ""
4859
4859
  },
4860
4860
  {
4861
- precision: S._2_minutes,
4862
- interval: c.utcSecond.every(30),
4861
+ precision: T._2_minutes,
4862
+ interval: u.utcSecond.every(30),
4863
4863
  format: ""
4864
4864
  },
4865
4865
  {
4866
- precision: S._5_minutes,
4867
- interval: c.utcMinute,
4866
+ precision: T._5_minutes,
4867
+ interval: u.utcMinute,
4868
4868
  format: ""
4869
4869
  },
4870
4870
  {
4871
- precision: S._15_minutes,
4872
- interval: c.utcMinute.every(3),
4871
+ precision: T._15_minutes,
4872
+ interval: u.utcMinute.every(3),
4873
4873
  format: ""
4874
4874
  },
4875
4875
  {
4876
- precision: S._30_minutes,
4877
- interval: c.utcMinute.every(6),
4876
+ precision: T._30_minutes,
4877
+ interval: u.utcMinute.every(6),
4878
4878
  format: ""
4879
4879
  },
4880
4880
  {
4881
- precision: S._1_hour,
4882
- interval: c.utcMinute.every(15),
4881
+ precision: T._1_hour,
4882
+ interval: u.utcMinute.every(15),
4883
4883
  format: ""
4884
4884
  },
4885
4885
  {
4886
- precision: S._2_hours,
4887
- interval: c.utcMinute.every(30),
4886
+ precision: T._2_hours,
4887
+ interval: u.utcMinute.every(30),
4888
4888
  format: ""
4889
4889
  },
4890
4890
  {
4891
- precision: S._3_hours,
4892
- interval: c.utcHour,
4891
+ precision: T._3_hours,
4892
+ interval: u.utcHour,
4893
4893
  format: ""
4894
4894
  },
4895
4895
  {
4896
- precision: S._4_hours,
4897
- interval: c.utcHour,
4896
+ precision: T._4_hours,
4897
+ interval: u.utcHour,
4898
4898
  format: ""
4899
4899
  },
4900
4900
  {
4901
- precision: S._6_hours,
4902
- interval: c.utcMinute.every(120),
4901
+ precision: T._6_hours,
4902
+ interval: u.utcMinute.every(120),
4903
4903
  format: ""
4904
4904
  },
4905
4905
  {
4906
- precision: S._1_day,
4907
- interval: c.utcHour.every(8),
4906
+ precision: T._1_day,
4907
+ interval: u.utcHour.every(8),
4908
4908
  format: ""
4909
4909
  },
4910
4910
  {
4911
- precision: S._2_days,
4912
- interval: c.utcHour.every(12),
4911
+ precision: T._2_days,
4912
+ interval: u.utcHour.every(12),
4913
4913
  format: ""
4914
4914
  },
4915
4915
  {
4916
- precision: S._1_month,
4917
- interval: c.utcDay.filter((e) => {
4916
+ precision: T._1_month,
4917
+ interval: u.utcDay.filter((e) => {
4918
4918
  const t = e.getUTCDate(), r = new Date(
4919
4919
  e.getUTCFullYear(),
4920
4920
  e.getUTCMonth() + 1,
4921
4921
  0
4922
- ).getUTCDate(), n = Math.ceil(r / 5);
4923
- return t === n || t === 2 * n || t === 3 * n || t === 4 * n;
4922
+ ).getUTCDate(), i = Math.ceil(r / 5);
4923
+ return t === i || t === 2 * i || t === 3 * i || t === 4 * i;
4924
4924
  }),
4925
4925
  format: ""
4926
4926
  },
4927
4927
  {
4928
- precision: S._1_month_abbr,
4929
- interval: c.utcDay.filter((e) => {
4928
+ precision: T._1_month_abbr,
4929
+ interval: u.utcDay.filter((e) => {
4930
4930
  const t = e.getUTCDate(), r = new Date(
4931
4931
  e.getUTCFullYear(),
4932
4932
  e.getUTCMonth() + 1,
4933
4933
  0
4934
- ).getUTCDate(), n = Math.ceil(r / 4);
4935
- return t === n || t === 2 * n || t === 3 * n;
4934
+ ).getUTCDate(), i = Math.ceil(r / 4);
4935
+ return t === i || t === 2 * i || t === 3 * i;
4936
4936
  }),
4937
4937
  format: ""
4938
4938
  },
4939
4939
  {
4940
- precision: S._1_month_letter,
4941
- interval: c.utcDay.filter((e) => {
4940
+ precision: T._1_month_letter,
4941
+ interval: u.utcDay.filter((e) => {
4942
4942
  const t = e.getUTCDate(), r = new Date(
4943
4943
  e.getUTCFullYear(),
4944
4944
  e.getUTCMonth() + 1,
4945
4945
  0
4946
- ).getUTCDate(), n = Math.ceil(r / 2);
4947
- return t === n;
4946
+ ).getUTCDate(), i = Math.ceil(r / 2);
4947
+ return t === i;
4948
4948
  }),
4949
4949
  format: ""
4950
4950
  },
4951
4951
  {
4952
- precision: S._3_months,
4953
- interval: c.utcMonth,
4952
+ precision: T._3_months,
4953
+ interval: u.utcMonth,
4954
4954
  format: ""
4955
4955
  },
4956
4956
  {
4957
- precision: S.infinity,
4958
- interval: c.utcMonth,
4957
+ precision: T.infinity,
4958
+ interval: u.utcMonth,
4959
4959
  format: ""
4960
4960
  }
4961
4961
  ]
@@ -4966,46 +4966,55 @@ const qt = {
4966
4966
  console.error("Invalid callback function provided to v-resize-observer");
4967
4967
  return;
4968
4968
  }
4969
- const n = new ResizeObserver(
4970
- (s) => {
4971
- s[0] && r(s[0]);
4969
+ const i = new ResizeObserver(
4970
+ (a) => {
4971
+ a[0] && r(a[0]);
4972
4972
  }
4973
4973
  );
4974
- n.observe(e), e.__resizeObserver__ = n;
4974
+ i.observe(e), e.__resizeObserver__ = i;
4975
4975
  },
4976
4976
  unbind(e) {
4977
4977
  e.__resizeObserver__ && (e.__resizeObserver__.disconnect(), delete e.__resizeObserver__);
4978
4978
  }
4979
- }, Yt = [
4979
+ }, Zt = [
4980
4980
  {
4981
4981
  name: "resize-observer",
4982
4982
  definition: tt
4983
4983
  }
4984
- ], p = {
4984
+ ], h = {
4985
4985
  eventGroup: "event-group",
4986
4986
  eventGroupBg: "event-group-bg",
4987
4987
  eventRect: "event-rect",
4988
+ eventBarContainer: "event-bar-container",
4989
+ eventBarContainerHovered: "event-bar-container--hovered",
4990
+ eventBarContainerSelected: "event-bar-container--selected",
4988
4991
  eventBar: "event-bar",
4989
4992
  eventBarHoverZone: "event-bar-hover-zone",
4990
4993
  eventBarCap: "event-bar-cap",
4991
4994
  eventRectText: "event-rect-text",
4995
+ eventRectHovered: "event-rect--hovered",
4996
+ eventRectSelected: "event-rect--selected",
4997
+ labelGroup: "label-g",
4992
4998
  labelBg: "label-bg",
4993
4999
  labelBgFill: "label-bg-fill",
4994
5000
  labelText: "label-text",
4995
5001
  loadingIndicator: "loading-indicator",
4996
5002
  xAxis: "x-axis",
4997
5003
  selectedTimestampCursor: "selected-timestamp-cursor",
5004
+ marker: "marker",
5005
+ markerLabel: "marker-label",
5006
+ markerLine: "marker-line",
4998
5007
  barChartGroup: "bar-chart-group",
4999
5008
  lineGraphGroup: "line-graph-group",
5000
5009
  lineGraphPath: "line-graph-path",
5001
5010
  lineGraphHoverZone: "line-graph-hover-zone",
5002
5011
  lineGraphDot: "line-graph-dot",
5003
5012
  curtain: "curtain"
5004
- }, Y = {
5013
+ }, Z = {
5005
5014
  transparencyGradient: "transparency-gradient",
5006
5015
  transparencyGradientLight: "transparency-gradient-light",
5007
5016
  loadingGradient: "loading-gradient"
5008
- }, Zt = q.extend({
5017
+ }, Yt = q.extend({
5009
5018
  name: "ETimeline",
5010
5019
  directives: {
5011
5020
  resizeObserver: tt
@@ -5091,6 +5100,10 @@ const qt = {
5091
5100
  type: [String, void 0],
5092
5101
  default: void 0
5093
5102
  },
5103
+ selectedClass: {
5104
+ type: [String, void 0],
5105
+ default: void 0
5106
+ },
5094
5107
  panOnDateClick: {
5095
5108
  type: Boolean,
5096
5109
  default: !1
@@ -5098,6 +5111,22 @@ const qt = {
5098
5111
  panTransitionDuration: {
5099
5112
  type: Number,
5100
5113
  default: 500
5114
+ },
5115
+ selectedDate: {
5116
+ type: String,
5117
+ default: ""
5118
+ },
5119
+ autoResize: {
5120
+ type: Boolean,
5121
+ default: !0
5122
+ },
5123
+ markers: {
5124
+ type: Array,
5125
+ default: () => []
5126
+ },
5127
+ stickyMarkers: {
5128
+ type: Boolean,
5129
+ default: !0
5101
5130
  }
5102
5131
  },
5103
5132
  data() {
@@ -5139,7 +5168,10 @@ const qt = {
5139
5168
  textPadding: 5,
5140
5169
  debouncedOnResize: () => {
5141
5170
  },
5142
- isFirstPaint: !0
5171
+ isFirstPaint: !0,
5172
+ timeouts: [],
5173
+ groupsVisibility: {},
5174
+ markersPositions: {}
5143
5175
  };
5144
5176
  },
5145
5177
  computed: {
@@ -5160,7 +5192,7 @@ const qt = {
5160
5192
  },
5161
5193
  lineGraphGroups() {
5162
5194
  return Object.entries(this.filteredEventsGroups).reduce(
5163
- (e, [t, r]) => r.chartType === Z.lineGraph ? { ...e, [t]: r } : e,
5195
+ (e, [t, r]) => r.chartType === Y.lineGraph ? { ...e, [t]: r } : e,
5164
5196
  {}
5165
5197
  );
5166
5198
  },
@@ -5172,13 +5204,13 @@ const qt = {
5172
5204
  },
5173
5205
  barGroups() {
5174
5206
  return Object.entries(this.filteredEventsGroups).reduce(
5175
- (e, [t, r]) => !r.chartType || r.chartType === Z.bars ? { ...e, [t]: r } : e,
5207
+ (e, [t, r]) => !r.chartType || r.chartType === Y.bars ? { ...e, [t]: r } : e,
5176
5208
  {}
5177
5209
  );
5178
5210
  },
5179
5211
  barChartGroups() {
5180
5212
  return Object.entries(this.filteredEventsGroups).reduce(
5181
- (e, [t, r]) => r.chartType === Z.barChart ? { ...e, [t]: r } : e,
5213
+ (e, [t, r]) => r.chartType === Y.barChart ? { ...e, [t]: r } : e,
5182
5214
  {}
5183
5215
  );
5184
5216
  },
@@ -5188,9 +5220,9 @@ const qt = {
5188
5220
  labelRectWidth() {
5189
5221
  return Object.values(
5190
5222
  this.eventsGroups
5191
- ).reduce((r, n) => {
5192
- var s;
5193
- return Math.max(r, (s = n.label) == null ? void 0 : s.length);
5223
+ ).reduce((r, i) => {
5224
+ var a;
5225
+ return Math.max(r, (a = i.label) == null ? void 0 : a.length);
5194
5226
  }, 0) * this.characterWidth + 2 * this.textPadding;
5195
5227
  },
5196
5228
  combinedXAxesHeight() {
@@ -5203,7 +5235,7 @@ const qt = {
5203
5235
  },
5204
5236
  filteredEventsGroups() {
5205
5237
  const e = Object.entries(this.eventsGroups).filter(
5206
- ([t, r]) => !r.isHidden
5238
+ ([t, r]) => this.getCurrentGroupVisibility(t)
5207
5239
  );
5208
5240
  return Object.fromEntries(e);
5209
5241
  },
@@ -5260,6 +5292,20 @@ const qt = {
5260
5292
  ...Object.values(this.lineGraphGroups),
5261
5293
  ...Object.values(this.barChartGroups)
5262
5294
  ].map((e) => e.events).flat();
5295
+ },
5296
+ hiddenGroupsLabels() {
5297
+ return Object.entries(this.groupsVisibility).reduce(
5298
+ (e, [t, r]) => r ? e : [...e, t],
5299
+ []
5300
+ );
5301
+ },
5302
+ minHoverZone() {
5303
+ return this.showLabels ? this.labelRectWidth : 0;
5304
+ },
5305
+ sortedMarkers() {
5306
+ return [...this.markers].sort(
5307
+ (e, t) => new Date(e.timestamp).getTime() > new Date(t.timestamp).getTime() ? 1 : -1
5308
+ );
5263
5309
  }
5264
5310
  },
5265
5311
  watch: {
@@ -5269,6 +5315,9 @@ const qt = {
5269
5315
  selectedTimestamp() {
5270
5316
  this.repositionSelectedTimestampCursor();
5271
5317
  },
5318
+ markers() {
5319
+ this.updateMarkersPositions();
5320
+ },
5272
5321
  startDate() {
5273
5322
  this.zoomToStartAndEndDates();
5274
5323
  },
@@ -5285,6 +5334,12 @@ const qt = {
5285
5334
  this.cursor.style.left = t + "px", this.isHoveringTimeline = !0;
5286
5335
  } else
5287
5336
  this.isHoveringTimeline = !1;
5337
+ },
5338
+ selectedDate(e) {
5339
+ e && this.panToTimestamp(e);
5340
+ },
5341
+ groupsVisibility() {
5342
+ this.updateAndRedrawTimeline();
5288
5343
  }
5289
5344
  },
5290
5345
  created() {
@@ -5294,43 +5349,45 @@ const qt = {
5294
5349
  this.initTimeline();
5295
5350
  },
5296
5351
  beforeDestroy() {
5297
- document.removeEventListener("mouseup", this.handleDocumentMouseUp);
5352
+ this.clearTimeline(), document.removeEventListener("mouseup", this.handleDocumentMouseUp);
5298
5353
  },
5299
5354
  methods: {
5300
5355
  initTimeline(e, t) {
5301
- if (this.initRefs(), !this.timeline) {
5302
- setTimeout(this.initTimeline, 500);
5356
+ if (this.initRefs(), !this.timeline || this.timeline.offsetWidth === 0) {
5357
+ this.timeouts.push(
5358
+ setTimeout(this.initTimeline, 500)
5359
+ );
5303
5360
  return;
5304
5361
  }
5305
- this.initSvg(), this.initDefs(), this.initUtcOffset(), this.initTimeScale(e, t), this.initXAxes(), this.initYScale(), this.initZoomBehavior(), this.drawEventsGroups(), this.initCurtains(), this.emitCurtainChange(), this.initSelectedTimestampCursor(), this.registerEventsListeners(), this.emitVisibleInterval(re.initial);
5362
+ this.initSvg(), this.initDefs(), this.initUtcOffset(), this.initTimeScale(e, t), this.initXAxes(), this.initYScale(), this.initZoomBehavior(), this.drawEventsGroups(), this.curtains && (this.initCurtains(), this.emitCurtainChange()), this.initSelectedTimestampCursor(), this.updateMarkersPositions(), this.registerEventsListeners(), this.emitVisibleInterval(re.initial), this.selectedDate && this.panOnDateClick && this.panToTimestamp(this.selectedDate);
5306
5363
  },
5307
5364
  initRefs() {
5308
5365
  this.tooltip = this.$refs.tooltip, this.cursor = this.$refs.cursor, this.timeline = this.$refs.timelineContainer, this.selectedTimestampCursor = this.$refs.selectedTimestamp;
5309
5366
  },
5310
5367
  initSvg() {
5311
- this.svg = c.select(this.timeline).append("svg").attr("width", this.timeline.offsetWidth).attr("height", this.timelineHeight);
5368
+ this.svg = u.select(this.timeline).append("svg").attr("width", this.timeline.offsetWidth).attr("height", this.timelineHeight);
5312
5369
  },
5313
5370
  initDefs() {
5314
5371
  const e = this.svg.append("defs");
5315
5372
  Object.entries(this.filteredEventsGroups).forEach(
5316
5373
  ([t, r]) => {
5317
- const { color: n, chartType: s } = r, o = e.append("linearGradient").attr("id", `${Y.loadingGradient}-${t}`).attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
5318
- o.append("stop").attr("offset", "0%").attr("stop-color", n).attr("stop-opacity", "0"), o.append("stop").attr("offset", "50%").attr("stop-color", n).attr("stop-opacity", "0.6"), o.append("stop").attr("offset", "100%").attr("stop-color", n).attr("stop-opacity", "0"), [Z.lineGraph, Z.barChart].includes(
5319
- s
5374
+ const { color: i, chartType: a } = r, o = e.append("linearGradient").attr("id", `${Z.loadingGradient}-${t}`).attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
5375
+ o.append("stop").attr("offset", "0%").attr("stop-color", i).attr("stop-opacity", "0"), o.append("stop").attr("offset", "50%").attr("stop-color", i).attr("stop-opacity", "0.6"), o.append("stop").attr("offset", "100%").attr("stop-color", i).attr("stop-opacity", "0"), [Y.lineGraph, Y.barChart].includes(
5376
+ a
5320
5377
  ) && [
5321
5378
  {
5322
- id: Y.transparencyGradientLight,
5379
+ id: Z.transparencyGradientLight,
5323
5380
  stop: 38,
5324
5381
  opacity: 0.3
5325
5382
  },
5326
5383
  {
5327
- id: Y.transparencyGradient,
5384
+ id: Z.transparencyGradient,
5328
5385
  stop: 130,
5329
5386
  opacity: 0.4
5330
5387
  }
5331
- ].forEach(({ id: d, stop: l, opacity: a }) => {
5332
- const u = e.append("linearGradient").attr("id", `${d}-${t}`).attr("x1", "0%").attr("x2", "0%").attr("y1", "0%").attr("y2", "100%");
5333
- u.append("stop").attr("offset", "0%").style("stop-color", n).style("stop-opacity", a), u.append("stop").attr("offset", `${l}%`).style("stop-color", n).style("stop-opacity", 0);
5388
+ ].forEach(({ id: f, stop: l, opacity: s }) => {
5389
+ const d = e.append("linearGradient").attr("id", `${f}-${t}`).attr("x1", "0%").attr("x2", "0%").attr("y1", "0%").attr("y2", "100%");
5390
+ d.append("stop").attr("offset", "0%").style("stop-color", i).style("stop-opacity", s), d.append("stop").attr("offset", `${l}%`).style("stop-color", i).style("stop-opacity", 0);
5334
5391
  });
5335
5392
  }
5336
5393
  );
@@ -5340,32 +5397,50 @@ const qt = {
5340
5397
  this.utcOffset = V.parseZone(e).utcOffset();
5341
5398
  },
5342
5399
  initTimeScale(e, t) {
5343
- const r = e || this.startDate || this.oldestEvent.timestamp || this.oldestEvent.startDate, n = t || this.endDate || this.latestEvent.timestamp || this.latestEvent.endDate;
5344
- this.timeScale = c.scaleTime().domain([this.tzStringToDate(r), this.tzStringToDate(n)]).range([0, this.timeline.offsetWidth]), this.initialTimeScale = this.timeScale.copy(), this.updateCurrentTimeScaleDensity();
5400
+ const r = e || this.startDate || this.oldestEvent.timestamp || this.oldestEvent.startDate, i = t || this.endDate || this.latestEvent.timestamp || this.latestEvent.endDate;
5401
+ this.timeScale = u.scaleTime().domain([this.tzStringToDate(r), this.tzStringToDate(i)]).range([0, this.timeline.offsetWidth]), this.initialTimeScale = this.timeScale.copy(), this.updateCurrentTimeScaleDensity();
5345
5402
  },
5346
5403
  initXAxes() {
5347
5404
  let e = 0;
5348
5405
  const t = 5;
5349
5406
  for (const r in this.xAxesConfig) {
5350
- const n = this.createAxis(r);
5351
- this.xAxes[r] = n, this.svg.append("g").classed(p.xAxis, !0).classed(`${p.xAxis}-${r}`, !0).attr("transform", `translate(0, ${e || t})`).call(n), this.translateTicksText(r), e += this.axisHeight;
5407
+ const i = this.createAxis(r);
5408
+ this.xAxes[r] = i, this.svg.append("g").classed(h.xAxis, !0).classed(`${h.xAxis}-${r}`, !0).attr("transform", `translate(0, ${e || t})`).call(i), this.translateTicksText(r), e += this.axisHeight;
5352
5409
  }
5353
5410
  },
5354
5411
  initYScale() {
5355
- this.yScale = c.scaleLinear().range([this.chartHeight, 0]), this.updateYScaleDomain();
5412
+ this.yScale = u.scaleLinear().range([this.chartHeight, 0]), this.updateYScaleDomain();
5356
5413
  },
5357
5414
  updateYScaleDomain() {
5358
- const [e, t] = this.timeScale.domain(), r = this.flattenedCounts.filter((s) => {
5359
- const o = new Date(s.startDate || s.timestamp), i = new Date(s.endDate || s.timestamp);
5360
- return i >= e && i <= t || o >= e && o <= t;
5361
- }), n = c.max(r, (s) => s.count);
5362
- this.yScale.domain([0, n]);
5415
+ const [e, t] = this.timeScale.domain(), r = this.flattenedCounts.filter((a) => {
5416
+ const o = new Date(a.startDate || a.timestamp), n = new Date(a.endDate || a.timestamp);
5417
+ return n >= e && n <= t || o >= e && o <= t;
5418
+ }), i = u.max(r, (a) => a.count);
5419
+ this.yScale.domain([0, i]);
5363
5420
  },
5364
5421
  initZoomBehavior() {
5365
- this.disableZoom || (this.zoomBehavior = c.zoom().on("zoom", this.handleZoom).scaleExtent([this.minZoom, this.maxZoom]), this.svg.call(this.zoomBehavior));
5422
+ this.disableZoom || (this.zoomBehavior = u.zoom().on("zoom", this.handleZoom).scaleExtent([this.minZoom, this.maxZoom]), this.svg.call(this.zoomBehavior));
5366
5423
  },
5367
5424
  initSelectedTimestampCursor() {
5368
- this.svg.append("line").attr("class", p.selectedTimestampCursor).style("stroke", "red").style("stroke-width", "1px").style("opacity", 0).attr("x1", 0).attr("x2", 0).attr("y1", 0).attr("y2", this.timelineHeight), this.repositionSelectedTimestampCursor();
5425
+ this.svg.append("line").attr("class", h.selectedTimestampCursor).style("stroke", "red").style("stroke-width", "1px").style("opacity", 0).attr("x1", 0).attr("x2", 0).attr("y1", 0).attr("y2", this.timelineHeight), this.repositionSelectedTimestampCursor();
5426
+ },
5427
+ updateMarkersPositions() {
5428
+ this.sortedMarkers.forEach((r, i, a) => {
5429
+ const o = typeof r.timestamp == "string" ? this.tzStringToDate(r.timestamp) : r.timestamp, n = this.timeScale(o);
5430
+ let f = !1;
5431
+ const l = this.stickyMarkers ? Math.max(n, i * 12) : n;
5432
+ if (i < a.length - 1) {
5433
+ const s = a[i + 1], d = typeof s.timestamp == "string" ? this.tzStringToDate(s.timestamp) : s.timestamp, v = this.timeScale(d);
5434
+ f = (this.stickyMarkers ? Math.max(v, (i + 1) * 12) : n) - l < 200 + 12;
5435
+ }
5436
+ this.markersPositions = {
5437
+ ...this.markersPositions,
5438
+ [r.id]: {
5439
+ isHidden: f,
5440
+ position: l
5441
+ }
5442
+ };
5443
+ });
5369
5444
  },
5370
5445
  updateAndRedrawTimeline() {
5371
5446
  const { startDate: e, endDate: t } = this.getCurrentTimeBounds();
@@ -5375,7 +5450,7 @@ const qt = {
5375
5450
  this.svg && this.svg.remove(), this.countsByTimestamp = {};
5376
5451
  },
5377
5452
  repositionSelectedTimestampCursor() {
5378
- const e = this.svg.select(`.${p.selectedTimestampCursor}`);
5453
+ const e = this.svg.select(`.${h.selectedTimestampCursor}`);
5379
5454
  if (!this.selectedTimestamp) {
5380
5455
  e.style("opacity", 0);
5381
5456
  return;
@@ -5395,34 +5470,27 @@ const qt = {
5395
5470
  if (this.visibleFrom && this.visibleFrom.getTime() === t.getTime() && this.visibleTo && this.visibleTo.getTime() === r.getTime())
5396
5471
  return;
5397
5472
  this.visibleFrom = t, this.visibleTo = r;
5398
- const n = this.dateToTzString(this.visibleFrom), s = this.dateToTzString(this.visibleTo);
5473
+ const i = this.dateToTzString(this.visibleFrom), a = this.dateToTzString(this.visibleTo);
5399
5474
  this.$emit("visible-interval-change", {
5400
- fromDate: n,
5401
- toDate: s,
5475
+ fromDate: i,
5476
+ toDate: a,
5402
5477
  trigger: e,
5403
5478
  transform: this.transformDiff
5404
5479
  });
5405
5480
  },
5406
5481
  createAxis(e) {
5407
5482
  const t = this.xAxesConfig[e], r = this.getAxisTicksConfig(t);
5408
- return c.axisBottom(this.timeScale).ticks(r.interval).tickFormat(r.formatFn).tickSizeOuter(0).tickSizeInner(this.timelineHeight);
5483
+ return u.axisBottom(this.timeScale).ticks(r.interval).tickFormat(r.formatFn).tickSizeOuter(0).tickSizeInner(this.timelineHeight);
5409
5484
  },
5410
5485
  getAxisTicksConfig(e) {
5411
5486
  const { interval: t, format: r } = e.find(
5412
- (s) => s.precision >= this.currentTimeScaleDensity && s.interval
5487
+ (a) => a.precision >= this.currentTimeScaleDensity && a.interval
5413
5488
  );
5414
5489
  return {
5415
- formatFn: (s) => typeof r == "function" ? r(s) : c.timeFormat(r)(s),
5490
+ formatFn: (a) => typeof r == "function" ? r(a) : u.timeFormat(r)(a),
5416
5491
  interval: t
5417
5492
  };
5418
5493
  },
5419
- panToTimestamp(e) {
5420
- const t = this.tzStringToDate(e), r = this.timeScale(t), n = c.zoomTransform(this.svg.node()), s = n.x - r + this.timeline.offsetWidth / 2;
5421
- this.svg.transition().duration(this.panTransitionDuration).call(
5422
- this.zoomBehavior.transform,
5423
- c.zoomIdentity.translate(s, 0).scale(n.k)
5424
- ), this.emitVisibleInterval(re.autoPan);
5425
- },
5426
5494
  onResize(e) {
5427
5495
  this.isFirstPaint ? (this.handleResize(e), this.isFirstPaint = !1) : this.debouncedOnResize(e);
5428
5496
  },
@@ -5433,13 +5501,13 @@ const qt = {
5433
5501
  if (!this.showLabels)
5434
5502
  return;
5435
5503
  const e = this;
5436
- this.svg.selectAll(`.${p.labelBg}`).each(function() {
5437
- c.select(this).style("fill", e.dark ? "black" : "white");
5438
- }), this.svg.selectAll(`.${p.labelBgFill}`).each(function() {
5439
- const t = c.select(this), r = t.node().dataset.color;
5504
+ this.svg.selectAll(`.${h.labelBg}`).each(function() {
5505
+ u.select(this).style("fill", e.dark ? "black" : "white");
5506
+ }), this.svg.selectAll(`.${h.labelBgFill}`).each(function() {
5507
+ const t = u.select(this), r = t.node().dataset.color;
5440
5508
  t.style("fill", e.getLabelBackgroundColor(r)).style("stroke", e.getTextFillColor(r)).style("stroke-width", 0.25);
5441
- }), this.svg.selectAll(`.${p.labelText}`).each(function() {
5442
- const t = c.select(this), r = t.node().dataset.color;
5509
+ }), this.svg.selectAll(`.${h.labelText}`).each(function() {
5510
+ const t = u.select(this), r = t.node().dataset.color;
5443
5511
  t.style("fill", e.getTextFillColor(r));
5444
5512
  });
5445
5513
  },
@@ -5455,26 +5523,37 @@ const qt = {
5455
5523
  handleMouseMove(e) {
5456
5524
  if (this.isMouseDown)
5457
5525
  return;
5458
- const t = e.offsetX, r = this.timeScale.invert(t);
5526
+ const t = e.offsetX;
5527
+ if (t <= this.minHoverZone) {
5528
+ this.isHoveringTimeline = !1;
5529
+ return;
5530
+ }
5531
+ const r = this.timeScale.invert(t);
5459
5532
  this.hoveredTimestamp = this.dateToTzString(r), this.isHoveringTimeline = !0, this.$emit("hovered-timestamp", this.hoveredTimestamp), this.cursor.style.left = t + "px", this.tooltip && (this.eventTooltipStyle = {
5460
5533
  left: `${t}px`,
5461
5534
  bottom: `${this.timeline.getBoundingClientRect().height}px`,
5462
5535
  zIndex: 100
5463
- }, this.repositionSelectedTimestampCursor());
5536
+ });
5464
5537
  },
5465
5538
  handleClick(e) {
5466
- const t = e.offsetX, r = this.timeScale.invert(t), n = this.dateToTzString(r);
5467
- this.$emit("date-clicked", n), this.isHoveringEvent && this.$emit("event-clicked", {
5539
+ const t = e.offsetX;
5540
+ if (t <= this.minHoverZone)
5541
+ return;
5542
+ const r = this.timeScale.invert(t), i = this.dateToTzString(r);
5543
+ this.$emit("date-clicked", i), this.isHoveringEvent && this.$emit("event-clicked", {
5468
5544
  event: this.hoveredEvent,
5469
5545
  type: this.hoveredEventType
5470
- }), this.panOnDateClick && this.panToTimestamp(n);
5546
+ }), this.panOnDateClick && this.panToTimestamp(i);
5547
+ },
5548
+ handleMarkerClick(e) {
5549
+ this.$emit("marker-clicked", e), this.panToTimestamp(e.timestamp);
5471
5550
  },
5472
5551
  handleLineMouseOver(e, t, r) {
5473
5552
  this.hoveredCounts = Object.entries(
5474
5553
  this.countsByTimestamp[`${t.timestamp}`]
5475
- ).reduce((n, s) => {
5476
- const [o, i] = s;
5477
- return [...n, { type: o, count: i }];
5554
+ ).reduce((i, a) => {
5555
+ const [o, n] = a;
5556
+ return [...i, { type: o, count: n }];
5478
5557
  }, []), this.hoveredEvent = t, this.isHoveringEvent = !0, this.$emit("event-mouseover", {
5479
5558
  eventData: t,
5480
5559
  eventType: r,
@@ -5485,26 +5564,26 @@ const qt = {
5485
5564
  this.isHoveringEvent = !1, this.hoveredCounts = [], this.$emit("event-mouseout");
5486
5565
  },
5487
5566
  handleBarMouseOver(e, t, r) {
5488
- this.hoveredEvent = t, this.hoveredEventType = r, this.isHoveringEvent = !0, this.$emit("event-mouseover", { eventData: t, eventType: r });
5567
+ e.offsetX <= this.minHoverZone || (this.hoveredEvent = t, this.hoveredEventType = r, this.isHoveringEvent = !0, this.$emit("event-mouseover", { eventData: t, eventType: r }));
5489
5568
  },
5490
5569
  handleBarMouseOut() {
5491
5570
  this.isHoveringEvent = !1, this.hoveredEvent = null, this.$emit("event-mouseout");
5492
5571
  },
5493
5572
  handleLabelMouseOver(e) {
5494
- c.selectAll(`.${p.lineGraphGroup}-${e}`).classed(
5495
- `${p.lineGraphGroup}--highlighted`,
5573
+ u.selectAll(`.${h.lineGraphGroup}-${e}`).classed(
5574
+ `${h.lineGraphGroup}--highlighted`,
5496
5575
  !0
5497
- ), c.selectAll(`.${p.lineGraphGroup}-label`).classed(
5498
- `${p.lineGraphGroup}-label--highlighted`,
5576
+ ), u.selectAll(`.${h.lineGraphGroup}-label`).classed(
5577
+ `${h.lineGraphGroup}-label--highlighted`,
5499
5578
  !0
5500
5579
  );
5501
5580
  },
5502
5581
  handleLabelMouseLeave(e) {
5503
- c.selectAll(`.${p.lineGraphGroup}-${e}`).classed(
5504
- `${p.lineGraphGroup}--highlighted`,
5582
+ u.selectAll(`.${h.lineGraphGroup}-${e}`).classed(
5583
+ `${h.lineGraphGroup}--highlighted`,
5505
5584
  !1
5506
- ), c.selectAll(`.${p.lineGraphGroup}-label`).classed(
5507
- `${p.lineGraphGroup}-label--highlighted`,
5585
+ ), u.selectAll(`.${h.lineGraphGroup}-label`).classed(
5586
+ `${h.lineGraphGroup}-label--highlighted`,
5508
5587
  !1
5509
5588
  );
5510
5589
  },
@@ -5516,9 +5595,16 @@ const qt = {
5516
5595
  scale: r,
5517
5596
  translation: e.transform.x - this.lastTransform.x
5518
5597
  }, this.lastTransform = { ...e.transform };
5519
- for (const n in this.xAxes)
5520
- this.rescaleAxis(n, t), this.translateTicksText(n);
5521
- this.updateEventsBars(), this.updateLineGraphs(), this.updateBarChart(), this.updateLineGraphHoverZones(), this.repositionSelectedTimestampCursor(), this.emitVisibleInterval(re.zoom), this.curtains && this.emitCurtainChange();
5598
+ for (const i in this.xAxes)
5599
+ this.rescaleAxis(i, t), this.translateTicksText(i);
5600
+ this.updateEventsBars(), this.updateLineGraphs(), this.updateBarChart(), this.updateLineGraphHoverZones(), this.repositionSelectedTimestampCursor(), this.updateMarkersPositions(), this.emitVisibleInterval(re.zoom), this.curtains && this.emitCurtainChange();
5601
+ },
5602
+ panToTimestamp(e) {
5603
+ const t = this.tzStringToDate(e), r = this.timeScale(t), i = u.zoomTransform(this.svg.node()), a = i.x - r + this.timeline.offsetWidth / 2;
5604
+ this.svg.transition().duration(this.panTransitionDuration).call(
5605
+ this.zoomBehavior.transform,
5606
+ u.zoomIdentity.translate(a, 0).scale(i.k)
5607
+ ), this.emitVisibleInterval(re.autoPan);
5522
5608
  },
5523
5609
  emitCurtainChange() {
5524
5610
  const { startDate: e, endDate: t } = this.calculateDateRangeFromCurtains();
@@ -5528,15 +5614,8 @@ const qt = {
5528
5614
  });
5529
5615
  },
5530
5616
  calculateDateRangeFromCurtains() {
5531
- const e = this.timeline.offsetWidth, t = this.timeScale.domain(), r = t[1].getTime() - t[0].getTime(), n = (this.leftCurtainWidth - this.curtainHandleWidth * 2) / e * r, s = (this.rightCurtainWidth + this.curtainHandleWidth * 2) / e * r, o = new Date(t[0].getTime() + n), i = new Date(t[1].getTime() - s);
5532
- return { startDate: o, endDate: i };
5533
- },
5534
- updateCurtainsOnResize(e) {
5535
- const { startDate: t, endDate: r } = this.calculateDateRangeFromCurtains(), n = this.timeScale.domain(), s = n[1].getTime() - n[0].getTime(), o = t.getTime() - n[0].getTime(), i = n[1].getTime() - r.getTime();
5536
- this.leftCurtainWidth = o / s * e, this.rightCurtainWidth = i / s * e, this.svg.select(`.${p.curtain}--left`).attr("width", this.leftCurtainWidth), this.svg.select(`.${p.curtain}--right`).attr(
5537
- "x",
5538
- e - this.rightCurtainWidth + this.curtainHandleWidth * 2
5539
- ).attr("width", this.rightCurtainWidth);
5617
+ const e = this.timeline.offsetWidth, t = this.timeScale.domain(), r = t[1].getTime() - t[0].getTime(), i = (this.leftCurtainWidth - this.curtainHandleWidth * 2) / e * r, a = (this.rightCurtainWidth + this.curtainHandleWidth * 2) / e * r, o = new Date(t[0].getTime() + i), n = new Date(t[1].getTime() - a);
5618
+ return { startDate: o, endDate: n };
5540
5619
  },
5541
5620
  handleDragStart() {
5542
5621
  this.isDraggingCurtain = !0;
@@ -5550,54 +5629,57 @@ const qt = {
5550
5629
  e.x,
5551
5630
  this.timeline.offsetWidth - this.rightCurtainWidth
5552
5631
  );
5553
- this.leftCurtainWidth = Math.max(0, t), this.svg.select(`.${p.curtain}--left`).attr("width", this.leftCurtainWidth), this.emitCurtainChange();
5632
+ this.leftCurtainWidth = Math.max(0, t), this.svg.select(`.${h.curtain}--left`).attr("width", this.leftCurtainWidth), this.emitCurtainChange();
5554
5633
  },
5555
5634
  handleRightDrag(e) {
5556
5635
  e.sourceEvent.stopPropagation();
5557
5636
  const t = this.timeline.offsetWidth, r = Math.min(
5558
5637
  this.timeline.offsetWidth - e.x,
5559
5638
  this.timeline.offsetWidth - this.leftCurtainWidth
5560
- ), n = t - r;
5561
- this.rightCurtainWidth = Math.max(0, r), this.svg.select(`.${p.curtain}--right`).attr("width", this.rightCurtainWidth).attr("x", n), this.emitCurtainChange();
5639
+ ), i = t - r;
5640
+ this.rightCurtainWidth = Math.max(0, r), this.svg.select(`.${h.curtain}--right`).attr("width", this.rightCurtainWidth).attr("x", i), this.emitCurtainChange();
5562
5641
  },
5563
5642
  zoomToStartAndEndDates() {
5564
- const e = this.startDate || this.oldestEvent.timestamp || this.oldestEvent.startDate, t = this.endDate || this.latestEvent.timestamp || this.latestEvent.endDate, r = this.tzStringToDate(e), n = this.tzStringToDate(t), s = this.timeline.offsetWidth, o = [r, n], i = [0, s];
5565
- this.timeScale = c.scaleTime().domain(o).range(i), this.initialTimeScale = this.timeScale.copy(), this.updateCurrentTimeScaleDensity();
5566
- for (const d in this.xAxes)
5567
- this.rescaleAxis(d, this.timeScale), this.translateTicksText(d);
5568
- this.updateEventsBars(), this.updateLineGraphs(), this.updateLineGraphHoverZones(), this.repositionSelectedTimestampCursor();
5643
+ const e = this.startDate || this.oldestEvent.timestamp || this.oldestEvent.startDate, t = this.endDate || this.latestEvent.timestamp || this.latestEvent.endDate, r = this.tzStringToDate(e), i = this.tzStringToDate(t), a = this.timeline.offsetWidth, o = [r, i], n = [0, a];
5644
+ this.timeScale = u.scaleTime().domain(o).range(n), this.initialTimeScale = this.timeScale.copy(), this.updateCurrentTimeScaleDensity();
5645
+ for (const f in this.xAxes)
5646
+ this.rescaleAxis(f, this.timeScale), this.translateTicksText(f);
5647
+ this.updateEventsBars(), this.updateLineGraphs(), this.updateLineGraphHoverZones(), this.repositionSelectedTimestampCursor(), this.updateMarkersPositions();
5569
5648
  },
5570
5649
  rescaleAxis(e, t) {
5571
- const r = this.xAxes[e], n = this.getAxisTicksConfig(
5650
+ const r = this.xAxes[e], i = this.getAxisTicksConfig(
5572
5651
  this.xAxesConfig[e]
5573
5652
  );
5574
- r.scale(t).ticks(n.interval).tickFormat(n.formatFn).tickSizeOuter(0), this.svg.select(`.${p.xAxis}-${e}`).call(r);
5653
+ r.scale(t).ticks(i.interval).tickFormat(i.formatFn).tickSizeOuter(0), this.svg.select(`.${h.xAxis}-${e}`).call(r);
5575
5654
  },
5576
5655
  translateTicksText(e) {
5577
- this.svg.select(`.${p.xAxis}-${e}`).selectAll(".tick text").each(function() {
5578
- let t = c.select(this), r = t.node().getBBox();
5656
+ this.svg.select(`.${h.xAxis}-${e}`).selectAll(".tick text").each(function() {
5657
+ let t = u.select(this), r = t.node().getBBox();
5579
5658
  t.attr("x", r.height / 2).attr("y", 0).style("text-anchor", "start");
5580
5659
  });
5581
5660
  },
5582
5661
  updateEventsBars() {
5583
- const e = `.${p.eventGroup} > rect.${p.eventRect}`;
5662
+ const e = `.${h.eventGroup} > rect.${h.eventRect}`;
5584
5663
  this.svg.selectAll(e).attr("x", this.getEventRectX).attr("width", this.getEventRectWidth);
5585
- const t = `.${p.eventGroup} > text.${p.eventRectText}`;
5664
+ const t = `.${h.eventGroup} > text.${h.eventRectText}`;
5586
5665
  this.svg.selectAll(t).attr("x", (r) => this.getEventRectX(r) + this.textPadding).text(this.getEventText);
5587
5666
  },
5588
5667
  updateBarChart() {
5589
- const e = (d) => this.getEventRectX(d) + this.barXPadding, t = (d) => this.yScale(d.count), r = (d) => this.getEventRectWidth(d) - this.barXPadding * 2, n = (d) => this.yScale.range()[0] - this.yScale(d.count), s = `.${p.barChartGroup} > rect.${p.eventBarHoverZone}`;
5590
- this.svg.selectAll(s).attr("x", e).attr("width", r);
5591
- const o = `.${p.barChartGroup} > rect.${p.eventBar}`;
5592
- this.svg.selectAll(o).attr("x", e).attr("width", r).attr("y", t).attr("height", n);
5593
- const i = `.${p.barChartGroup} > rect.${p.eventBarCap}`;
5594
- this.svg.selectAll(i).attr("x", e).attr("width", r).attr("y", t);
5668
+ const e = Object.keys(this.barChartGroups).length;
5669
+ Object.keys(this.barChartGroups).forEach((t, r) => {
5670
+ const i = (c) => (this.getEventRectWidth(c) - this.barXPadding * 2) / e, a = (c) => this.yScale.range()[0] - this.yScale(c.count), o = (c) => this.getEventRectX(c) + this.barXPadding + r * i(c), n = (c) => this.yScale(c.count), f = `.${h.eventBarContainer}-${t}`, l = this.svg.selectAll(f), s = `.${h.barChartGroup} rect.${h.eventBarHoverZone}`;
5671
+ l.selectAll(s).attr("x", o).attr("width", i);
5672
+ const d = `.${h.barChartGroup} rect.${h.eventBar}`;
5673
+ l.selectAll(d).attr("x", o).attr("width", i).attr("y", n).attr("height", a);
5674
+ const v = `.${h.barChartGroup} rect.${h.eventBarCap}`;
5675
+ l.selectAll(v).attr("x", o).attr("width", i).attr("y", n);
5676
+ });
5595
5677
  },
5596
5678
  updateLineGraphs() {
5597
5679
  Object.entries(this.lineGraphGroups).forEach(([e]) => {
5598
- const t = c.area().x((r) => this.timeScale(this.tzStringToDate(r.timestamp))).y0(this.timelineHeight).y1((r) => this.yScale(r.count)).curve(c.curveMonotoneX);
5680
+ const t = u.area().x((r) => this.timeScale(this.tzStringToDate(r.timestamp))).y0(this.timelineHeight).y1((r) => this.yScale(r.count)).curve(u.curveMonotoneX);
5599
5681
  this.svg.selectAll(
5600
- `.${p.lineGraphPath}-${e}`
5682
+ `.${h.lineGraphPath}-${e}`
5601
5683
  ).attr("d", (r) => t(r));
5602
5684
  });
5603
5685
  },
@@ -5605,14 +5687,14 @@ const qt = {
5605
5687
  Object.keys(this.lineGraphGroups).forEach((e) => {
5606
5688
  const t = this;
5607
5689
  this.svg.selectAll(
5608
- `.${p.lineGraphDot}-${e}`
5690
+ `.${h.lineGraphDot}-${e}`
5609
5691
  ).each(function(r) {
5610
- c.select(this).attr("cx", t.timeScale(t.tzStringToDate(r.timestamp))).attr("cy", t.yScale(r.count));
5692
+ u.select(this).attr("cx", t.timeScale(t.tzStringToDate(r.timestamp))).attr("cy", t.yScale(r.count));
5611
5693
  }), this.svg.selectAll(
5612
- `.${p.lineGraphHoverZone}-${e}`
5694
+ `.${h.lineGraphHoverZone}-${e}`
5613
5695
  ).each(function(r) {
5614
- const n = t.timeScale(t.tzStringToDate(r.timestamp).getTime()) - 15;
5615
- c.select(this).attr("x", n).attr("y", 0).attr("width", 30).attr("height", t.chartHeight);
5696
+ const i = t.timeScale(t.tzStringToDate(r.timestamp).getTime()) - 15;
5697
+ u.select(this).attr("x", i).attr("y", 0).attr("width", 30).attr("height", t.chartHeight);
5616
5698
  });
5617
5699
  });
5618
5700
  },
@@ -5623,65 +5705,66 @@ const qt = {
5623
5705
  if (!e)
5624
5706
  return 0;
5625
5707
  if (e.startDate && e.endDate) {
5626
- const t = new Date(e.startDate), r = new Date(e.endDate), n = this.timeScale(r) - this.timeScale(t);
5627
- return Math.max(n, this.rectMinWidth);
5708
+ const t = new Date(e.startDate), r = new Date(e.endDate), i = this.timeScale(r) - this.timeScale(t);
5709
+ return Math.max(i, this.rectMinWidth);
5628
5710
  } else {
5629
5711
  const t = 1 / (this.currentTimeScaleDensity * 3600);
5630
5712
  return Math.max(t, this.rectMinWidth);
5631
5713
  }
5632
5714
  },
5633
5715
  getEventText(e) {
5634
- var n;
5716
+ var i;
5635
5717
  const r = (this.getEventRectWidth(e) - this.textPadding) / this.characterWidth;
5636
- return r < 4 ? "" : ((n = e.text) == null ? void 0 : n.length) <= r ? e.text : `${e.text.slice(0, r - 3)}...`;
5718
+ return r < 4 ? "" : ((i = e.text) == null ? void 0 : i.length) <= r ? e.text : `${e.text.slice(0, r - 3)}...`;
5637
5719
  },
5638
5720
  initCurtains() {
5639
5721
  if (!this.curtains)
5640
5722
  return;
5641
5723
  const e = this.timeline.offsetWidth, t = this.timelineHeight;
5642
- this.svg.append("rect").classed(`${p.curtain} ${p.curtain}--left`, !0).attr("width", this.leftCurtainWidth).attr("height", t + this.curtainHandleWidth * 2).attr("y", -this.curtainHandleWidth).attr("x", -this.curtainHandleWidth).attr("fill", "rgba(0, 0, 0, 0.5)").on("mouseenter", () => this.isHoveringCurtain = !0).on("mouseleave", () => this.isHoveringCurtain = !1).call(
5643
- c.drag().on("start", this.handleDragStart).on("drag", this.handleLeftDrag).on("end", this.handleDragEnd)
5644
- ), this.svg.append("rect").classed(`${p.curtain} ${p.curtain}--right`, !0).attr(
5724
+ this.svg.append("rect").classed(`${h.curtain} ${h.curtain}--left`, !0).attr("width", this.leftCurtainWidth).attr("height", t + this.curtainHandleWidth * 2).attr("y", -this.curtainHandleWidth).attr("x", -this.curtainHandleWidth).attr("fill", "rgba(0, 0, 0, 0.5)").on("mouseenter", () => this.isHoveringCurtain = !0).on("mouseleave", () => this.isHoveringCurtain = !1).call(
5725
+ u.drag().on("start", this.handleDragStart).on("drag", this.handleLeftDrag).on("end", this.handleDragEnd)
5726
+ ), this.svg.append("rect").classed(`${h.curtain} ${h.curtain}--right`, !0).attr(
5645
5727
  "x",
5646
5728
  e - this.rightCurtainWidth + this.curtainHandleWidth * 2
5647
5729
  ).attr("y", -this.curtainHandleWidth).attr("width", this.rightCurtainWidth + this.curtainHandleWidth * 2).attr("height", t + this.curtainHandleWidth * 2).attr("fill", "rgba(0, 0, 0, 0.5)").on("mouseenter", () => this.isHoveringCurtain = !0).on("mouseleave", () => this.isHoveringCurtain = !1).call(
5648
- c.drag().on("start", this.handleDragStart).on("drag", this.handleRightDrag).on("end", this.handleDragEnd)
5730
+ u.drag().on("start", this.handleDragStart).on("drag", this.handleRightDrag).on("end", this.handleDragEnd)
5649
5731
  );
5650
5732
  },
5651
5733
  drawEventsGroups() {
5652
- this.svg.selectAll(`g.${p.eventGroup}`).remove(), this.drawLineGraphEventsGroups(), this.drawBarEventsGroups(), this.drawBarChartEventsGroups();
5734
+ this.svg.selectAll(`g.${h.eventGroup}`).remove(), this.drawLineGraphEventsGroups(), this.drawBarEventsGroups(), this.drawBarChartEventsGroups();
5653
5735
  },
5654
5736
  drawLineGraphEventsGroups() {
5655
5737
  const e = this.combinedXAxesHeight, t = this.insertZerosAtInterval ? this.filledGapsLineGraphGroups : this.lineGraphGroups;
5656
- Object.entries(t).forEach(([r, n]) => {
5657
- const s = this.svg.append("g").classed(
5658
- `${p.lineGraphGroup} ${p.lineGraphGroup}-${r}`,
5738
+ Object.entries(t).forEach(([r, i]) => {
5739
+ const a = this.svg.append("g").classed(
5740
+ `${h.lineGraphGroup} ${h.lineGraphGroup}-${r}`,
5659
5741
  !0
5660
- ).attr("transform", `translate(0,${e})`), { color: o, events: i } = n;
5742
+ ).attr("transform", `translate(0,${e})`), { color: o, events: n } = i;
5661
5743
  this.drawLineGraph({
5662
- events: i,
5663
- gElement: s,
5744
+ events: n,
5745
+ gElement: a,
5664
5746
  color: o,
5665
5747
  type: r
5666
5748
  }), this.drawLineGraphHoverZones({
5667
- events: i,
5668
- gElement: s,
5749
+ events: n,
5750
+ gElement: a,
5669
5751
  color: o,
5670
5752
  type: r
5671
5753
  });
5672
5754
  }), Object.entries(this.lineGraphGroups).forEach(
5673
- ([r, n], s) => {
5674
- const { color: o, isLoading: i, label: d } = n, l = this.chartHeight - this.barChartHeight * (s + 1), a = e + this.chartHeight - this.barChartHeight, u = this.svg.append("g").classed(`${p.lineGraphGroup}-label`, !0).attr("transform", `translate(0,${e})`).on("mouseover", () => this.handleLabelMouseOver(r)).on("mouseleave", () => this.handleLabelMouseLeave(r));
5755
+ ([r, i], a) => {
5756
+ const { color: o, isLoading: n, label: f } = i, l = this.chartHeight - this.barChartHeight * (a + 1), s = e + this.chartHeight - this.barChartHeight, d = this.svg.append("g").classed(`${h.lineGraphGroup}-label`, !0).attr("transform", `translate(0,${e})`).on("mouseover", () => this.handleLabelMouseOver(r)).on("mouseleave", () => this.handleLabelMouseLeave(r));
5675
5757
  this.drawProgressIndicator({
5676
5758
  type: r,
5677
5759
  color: o,
5678
- isLoading: i,
5679
- yPosition: a
5760
+ isLoading: n,
5761
+ yPosition: s
5680
5762
  }), this.drawTextLabel({
5681
5763
  color: o,
5682
- label: d,
5764
+ label: f,
5765
+ type: r,
5683
5766
  yPosition: l,
5684
- gElement: u
5767
+ gElement: d
5685
5768
  });
5686
5769
  }
5687
5770
  );
@@ -5690,82 +5773,84 @@ const qt = {
5690
5773
  events: e,
5691
5774
  gElement: t,
5692
5775
  color: r,
5693
- type: n
5776
+ type: i
5694
5777
  }) {
5695
- const s = c.area().x((i) => this.timeScale(this.tzStringToDate(i.timestamp))).y0(this.timelineHeight).y1((i) => this.yScale(i.count)).curve(c.curveMonotoneX), o = `clip-${n}`;
5696
- t.append("defs").append("clipPath").attr("id", o).append("rect").attr("width", this.timeline.offsetWidth).attr("height", this.chartHeight), t.append("path").datum(e).classed(`${p.lineGraphPath}-${n}`, !0).attr("fill", `url(#${Y.transparencyGradientLight}-${n})`).attr("stroke", r).attr("stroke-linejoin", "round").attr("stroke-linecap", "round").attr("stroke-width", 1).attr("d", (i) => s(i)).attr("clip-path", `url(#${o})`);
5778
+ const a = u.area().x((n) => this.timeScale(this.tzStringToDate(n.timestamp))).y0(this.timelineHeight).y1((n) => this.yScale(n.count)).curve(u.curveMonotoneX), o = `clip-${i}`;
5779
+ t.append("defs").append("clipPath").attr("id", o).append("rect").attr("width", this.timeline.offsetWidth).attr("height", this.chartHeight), t.append("path").datum(e).classed(`${h.lineGraphPath}-${i}`, !0).attr("fill", `url(#${Z.transparencyGradientLight}-${i})`).attr("stroke", r).attr("stroke-linejoin", "round").attr("stroke-linecap", "round").attr("stroke-width", 1).attr("d", (n) => a(n)).attr("clip-path", `url(#${o})`);
5697
5780
  },
5698
5781
  drawLineGraphHoverZones({
5699
5782
  events: e,
5700
5783
  gElement: t,
5701
5784
  color: r,
5702
- type: n
5785
+ type: i
5703
5786
  }) {
5704
- e.forEach((s) => {
5705
- const o = `${s.timestamp}`;
5787
+ e.forEach((a) => {
5788
+ const o = `${a.timestamp}`;
5706
5789
  this.countsByTimestamp[o] = {
5707
5790
  ...this.countsByTimestamp[o] || {},
5708
- [n]: s.count
5791
+ [i]: a.count
5709
5792
  };
5710
- const i = t.append("circle").classed(
5711
- `${p.lineGraphDot} ${p.lineGraphDot}-${n}`,
5793
+ const n = t.append("circle").classed(
5794
+ `${h.lineGraphDot} ${h.lineGraphDot}-${i}`,
5712
5795
  !0
5713
- ).attr("cx", this.timeScale(this.tzStringToDate(s.timestamp))).attr("cy", this.yScale(s.count)).attr("r", 1.5).attr("fill", r).attr("stroke-width", 0).datum(s);
5796
+ ).attr("cx", this.timeScale(this.tzStringToDate(a.timestamp))).attr("cy", this.yScale(a.count)).attr("r", 1.5).attr("fill", r).attr("stroke-width", 0).datum(a);
5714
5797
  this.dotsByTimestamp[o] = [
5715
5798
  ...this.dotsByTimestamp[o] || [],
5716
- i
5717
- ], t.append("rect").classed(`${p.lineGraphHoverZone}-${n}`, !0).attr("x", this.timeScale(this.tzStringToDate(s.timestamp)) - 15).attr("y", 0).attr("width", 30).attr("height", this.chartHeight).attr("fill", "transparent").datum(s).on("mouseover", (d) => {
5718
- this.handleLineMouseOver(d, s, n), this.dotsByTimestamp[o].forEach(
5719
- (l) => l.classed(`${p.lineGraphDot}--active`, !0)
5799
+ n
5800
+ ], t.append("rect").classed(`${h.lineGraphHoverZone}-${i}`, !0).attr("x", this.timeScale(this.tzStringToDate(a.timestamp)) - 15).attr("y", 0).attr("width", 30).attr("height", this.chartHeight).attr("fill", "transparent").datum(a).on("mouseover", (f) => {
5801
+ this.handleLineMouseOver(f, a, i), this.dotsByTimestamp[o].forEach(
5802
+ (l) => l.classed(`${h.lineGraphDot}--active`, !0)
5720
5803
  );
5721
5804
  }).on("mouseout", () => {
5722
5805
  this.handleLineMouseOut(), this.dotsByTimestamp[o].forEach(
5723
- (d) => d.classed(`${p.lineGraphDot}--active`, !1)
5806
+ (f) => f.classed(`${h.lineGraphDot}--active`, !1)
5724
5807
  );
5725
5808
  });
5726
5809
  });
5727
5810
  },
5728
5811
  drawBarEventsGroups() {
5729
5812
  Object.entries(this.barGroups).forEach(([e, t], r) => {
5730
- const { color: n, bgColor: s, label: o, events: i, isLoading: d } = t, l = this.hasChart ? this.chartHeight : 0, a = r * this.barChartHeight + this.combinedXAxesHeight + l;
5813
+ const { color: i, bgColor: a, label: o, events: n, isLoading: f } = t, l = this.hasChart ? this.chartHeight : 0, s = r * this.barChartHeight + this.combinedXAxesHeight + l;
5731
5814
  this.drawProgressIndicator({
5732
- yPosition: a,
5815
+ yPosition: s,
5733
5816
  type: e,
5734
- color: n,
5735
- isLoading: d
5817
+ color: i,
5818
+ isLoading: f
5736
5819
  });
5737
- const u = this.svg.append("g").attr("data-color", n).classed(p.eventGroup, !0).classed(`${p.eventGroup}-${e}`, !0);
5820
+ const d = this.svg.append("g").attr("data-color", i).classed(h.eventGroup, !0).classed(`${h.eventGroup}-${e}`, !0);
5738
5821
  this.drawBackground({
5739
- color: s || n,
5740
- gElement: u,
5741
- yPosition: a
5822
+ color: a || i,
5823
+ gElement: d,
5824
+ yPosition: s
5742
5825
  }), this.drawBars({
5743
- events: i,
5744
- color: n,
5745
- gElement: u,
5746
- yPosition: a,
5826
+ events: n,
5827
+ color: i,
5828
+ gElement: d,
5829
+ yPosition: s,
5747
5830
  type: e
5748
5831
  }), this.drawTextLabel({
5749
- color: n,
5832
+ color: i,
5750
5833
  label: o,
5751
- gElement: u,
5752
- yPosition: a
5834
+ type: e,
5835
+ gElement: d,
5836
+ yPosition: s
5753
5837
  });
5754
5838
  });
5755
5839
  },
5756
5840
  drawBarChartEventsGroups() {
5757
5841
  const e = this.combinedXAxesHeight, t = this.barChartGroups;
5758
- Object.entries(t).forEach(([r, n]) => {
5759
- const s = this.svg.append("g").classed(
5760
- `${p.barChartGroup} ${p.barChartGroup}-${r}`,
5842
+ Object.entries(t).forEach(([r, i], a) => {
5843
+ const o = this.svg.append("g").classed(
5844
+ `${h.barChartGroup} ${h.barChartGroup}-${r}`,
5761
5845
  !0
5762
- ).attr("transform", `translate(0,${e})`), { color: o, events: i } = n;
5846
+ ).attr("transform", `translate(0,${e})`), { color: n, events: f } = i;
5763
5847
  this.drawBarsChart({
5764
- events: i,
5765
- color: o,
5766
- gElement: s,
5848
+ events: f,
5849
+ color: n,
5850
+ gElement: o,
5767
5851
  yOffset: e,
5768
- type: r
5852
+ type: r,
5853
+ index: a
5769
5854
  });
5770
5855
  });
5771
5856
  },
@@ -5775,93 +5860,148 @@ const qt = {
5775
5860
  isLoading: r
5776
5861
  }) {
5777
5862
  this.svg.append("rect").classed(
5778
- `${p.loadingIndicator} ${p.loadingIndicator}-${t}`,
5863
+ `${h.loadingIndicator} ${h.loadingIndicator}-${t}`,
5779
5864
  !0
5780
- ).attr("x", 0).attr("y", e).attr("width", this.timeline.offsetWidth / 3).attr("height", this.barChartHeight).attr("fill", `url(#${Y.loadingGradient}-${t})`).style("visibility", r ? "visible" : "hidden");
5865
+ ).attr("x", 0).attr("y", e).attr("width", this.timeline.offsetWidth / 3).attr("height", this.barChartHeight).attr("fill", `url(#${Z.loadingGradient}-${t})`).style("visibility", r ? "visible" : "hidden");
5781
5866
  },
5782
5867
  drawBackground({
5783
5868
  color: e,
5784
5869
  yPosition: t,
5785
5870
  gElement: r
5786
5871
  }) {
5787
- r.append("rect").attr("class", p.eventGroupBg).attr("x", 0).attr("y", t).attr("width", this.timeline.offsetWidth).attr("height", this.barChartHeight).attr("fill", c.color(e).toString()).style("opacity", 0.1);
5872
+ r.append("rect").attr("class", h.eventGroupBg).attr("x", 0).attr("y", t).attr("width", this.timeline.offsetWidth).attr("height", this.barChartHeight).attr("fill", u.color(e).toString()).style("opacity", 0.1);
5788
5873
  },
5789
5874
  drawBars({
5790
5875
  events: e,
5791
5876
  gElement: t,
5792
5877
  yPosition: r,
5793
- color: n,
5794
- type: s
5878
+ color: i,
5879
+ type: a
5795
5880
  }) {
5796
5881
  const o = this;
5797
- t.selectAll(p.eventRect).data(e).enter().append("rect").attr(
5882
+ t.selectAll(h.eventRect).data(e).enter().append("rect").attr(
5798
5883
  "class",
5799
- (i) => p.eventRect + (i.className ? ` ${i.className}` : "")
5800
- ).attr("x", this.getEventRectX).attr("y", r + this.barYPadding / 2).attr("ry", 1.5).attr("rx", 1.5).attr("width", this.getEventRectWidth).attr("height", this.barChartHeight - this.barYPadding).attr("stroke-width", 5).attr("cursor", "pointer").attr("stroke", "#0000").style("fill", (i) => i.color || n).on("mouseover", function(i, d) {
5801
- c.select(this).classed(`${p.eventRect}--hovered`, !0), o.handleBarMouseOver(i, d, s);
5884
+ (n) => h.eventRect + (n.className ? ` ${n.className}` : "")
5885
+ ).attr("x", this.getEventRectX).attr("y", r + this.barYPadding / 2).attr("ry", 1.5).attr("rx", 1.5).attr("width", this.getEventRectWidth).attr("height", this.barChartHeight - this.barYPadding).attr("stroke-width", 5).attr("cursor", "pointer").attr("stroke", "#0000").style("fill", (n) => n.color || i).on("mouseover", function(n, f) {
5886
+ u.select(this).classed(h.eventRectHovered, !0), o.handleBarMouseOver(n, f, a);
5802
5887
  }).on("mouseout", function() {
5803
- c.select(this).classed(`${p.eventRect}--hovered`, !1), o.handleBarMouseOut();
5804
- }), t.selectAll(p.eventRectText).data(e.filter((i) => !!i.text)).enter().append("text").attr("class", p.eventRectText).attr("x", (i) => this.getEventRectX(i) + this.textPadding).attr("y", r + this.barChartHeight / 2).attr("dy", "0.35em").style("text-anchor", "start").style("font-size", "12px").style("font-weight", 600).style("stroke-linejoin", "round").style("paint-order", "stroke").style("pointer-events", "none").style(
5888
+ u.select(this).classed(h.eventRectHovered, !1), o.handleBarMouseOut();
5889
+ }), t.selectAll(h.eventRectText).data(e.filter((n) => !!n.text)).enter().append("text").attr("class", h.eventRectText).attr("x", (n) => this.getEventRectX(n) + this.textPadding).attr("y", r + this.barChartHeight / 2).attr("dy", "0.35em").style("text-anchor", "start").style("font-size", "12px").style("font-weight", 600).style("stroke-linejoin", "round").style("paint-order", "stroke").style("pointer-events", "none").style(
5805
5890
  "fill",
5806
- (i) => this.getTextFillColor(i.color || n, 0.75)
5891
+ (n) => this.getTextFillColor(n.color || i, 0.75)
5807
5892
  ).text(this.getEventText);
5808
5893
  },
5809
5894
  drawBarsChart({
5810
5895
  events: e,
5811
5896
  gElement: t,
5812
5897
  color: r,
5813
- yOffset: n,
5814
- type: s
5898
+ yOffset: i,
5899
+ type: a,
5900
+ index: o
5815
5901
  }) {
5816
- const o = this, i = (u) => this.getEventRectX(u) + this.barXPadding, d = (u) => this.yScale(u.count), l = (u) => this.getEventRectWidth(u) - this.barXPadding * 2, a = (u) => this.yScale.range()[0] - this.yScale(u.count);
5817
- t.selectAll(p.eventBarHoverZone).data(e).enter().append("rect").attr(
5902
+ const n = this, f = Object.keys(this.barChartGroups).length, l = (g) => (this.getEventRectWidth(g) - this.barXPadding * 2) / f, s = (g) => this.yScale.range()[0] - this.yScale(g.count), d = (g) => this.getEventRectX(g) + this.barXPadding + o * l(g), v = (g) => this.yScale(g.count), c = t.selectAll(h.eventBarContainer).data(e).enter().append("g").attr(
5818
5903
  "class",
5819
- (u) => p.eventBarHoverZone + (u.className ? ` ${u.className}` : "")
5820
- ).attr("x", i).attr("y", -n).attr("width", l).attr("height", this.yScale.range()[0] + n).attr("fill", (u) => u.color || r).attr("fill-opacity", 0).on("mouseover", function(u, v) {
5821
- const f = c.select(this);
5822
- f.classed(`${p.eventBarHoverZone}--hovered`, !0), f.attr("fill-opacity", 0.2), o.handleBarMouseOver(u, v, s);
5823
- }).on("mouseout", function() {
5824
- const u = c.select(this);
5825
- u.attr("fill-opacity", 0), u.classed(`${p.eventBarHoverZone}--hovered`, !1), o.handleBarMouseOut();
5826
- }), t.selectAll(p.eventBar).data(e).enter().append("rect").attr(
5904
+ `${h.eventBarContainer} ${h.eventBarContainer}-${a}`
5905
+ );
5906
+ c.append("rect").attr(
5827
5907
  "class",
5828
- (u) => p.eventBar + (u.className ? ` ${u.className}` : "")
5829
- ).attr("x", i).attr("y", d).attr("width", l).attr("height", a).attr("stroke-width", 5).attr("cursor", "pointer").attr("stroke", "#0000").attr("fill", `url(#${Y.transparencyGradient}-${s})`).on("mouseover", function(u, v) {
5830
- const f = c.select(this);
5831
- f.classed(`${p.eventBar}--hovered`, !0), f.attr("fill", u.color || r), f.attr("fill-opacity", 0.5), o.handleBarMouseOver(u, v, s);
5832
- }).on("mouseout", function() {
5833
- const u = c.select(this);
5834
- u.attr("fill", `url(#${Y.transparencyGradient}-${s})`), u.attr("fill-opacity", 1), u.classed(`${p.eventBar}--hovered`, !1), o.handleBarMouseOut();
5835
- }), t.selectAll(p.eventBarCap).data(e).enter().append("rect").attr(
5908
+ (g) => h.eventBarHoverZone + (g.className ? ` ${g.className}` : "")
5909
+ ).attr("x", d).attr("y", -i).attr("width", l).attr("height", this.yScale.range()[0] + i).attr("fill", (g) => g.color || r).attr("fill-opacity", 0), c.append("rect").attr(
5910
+ "class",
5911
+ (g) => h.eventBar + (g.className ? ` ${g.className}` : "")
5912
+ ).attr("x", d).attr("y", v).attr("width", l).attr("height", s).attr("stroke-width", 5).attr("cursor", "pointer").attr("stroke", "#0000").attr("fill", `url(#${Z.transparencyGradient}-${a})`), c.append("rect").attr(
5836
5913
  "class",
5837
- (u) => p.eventBarCap + (u.className ? ` ${u.className}` : "")
5838
- ).attr("x", i).attr("y", d).attr("width", l).attr("height", 2).attr("stroke-width", 0).style("fill", (u) => u.color || r);
5914
+ (g) => h.eventBarCap + (g.className ? ` ${g.className}` : "")
5915
+ ).attr("x", d).attr("y", v).attr("width", l).attr("height", 2).attr("stroke-width", 0).style("fill", (g) => g.color || r), c.on("mouseover", function(g, x) {
5916
+ const k = u.select(this);
5917
+ n.onBarChartBarMouseOver(k, r), n.handleBarMouseOver(g, x, a);
5918
+ }).on("mouseout", function() {
5919
+ const g = u.select(this);
5920
+ n.onBarChartBarMouseOut(g, a), n.handleBarMouseOut();
5921
+ }).on("click", function() {
5922
+ t.selectAll(`.${h.eventBarContainerSelected}`).classed(h.eventBarContainerSelected, !1), u.select(this).classed(h.eventBarContainerSelected, !0);
5923
+ });
5924
+ },
5925
+ onBarChartBarMouseOver(e, t) {
5926
+ e.classed(h.eventBarContainerHovered, !0), e.selectAll(`.${h.eventBarHoverZone}`).attr("fill-opacity", 0.2);
5927
+ const i = e.selectAll(`.${h.eventBar}`);
5928
+ i.attr("fill", t), i.attr("fill-opacity", 0.5);
5929
+ },
5930
+ onBarChartBarMouseOut(e, t) {
5931
+ e.classed(h.eventBarContainerHovered, !1), e.selectAll(`.${h.eventBarHoverZone}`).attr("fill-opacity", 0);
5932
+ const i = e.selectAll(`.${h.eventBar}`);
5933
+ i.attr("fill", `url(#${Z.transparencyGradient}-${t})`), i.attr("fill-opacity", 1);
5839
5934
  },
5840
5935
  drawTextLabel({
5841
5936
  gElement: e,
5842
5937
  yPosition: t,
5843
5938
  color: r,
5844
- label: n
5939
+ label: i,
5940
+ type: a
5845
5941
  }) {
5846
5942
  if (!this.showLabels)
5847
5943
  return;
5848
- const s = {
5944
+ const o = {
5849
5945
  x: -5,
5850
5946
  y: t,
5851
5947
  w: this.labelRectWidth,
5852
5948
  h: this.barChartHeight,
5853
5949
  radius: 3
5854
- };
5855
- e.append("rect").attr("class", p.labelBg).attr("data-color", r).attr("x", s.x).attr("y", s.y).attr("width", s.w).attr("height", s.h).attr("rx", s.radius).attr("ry", s.radius).style("fill", this.dark ? "#131a29" : "white"), e.append("rect").attr("class", p.labelBgFill).attr("data-color", r).attr("x", s.x).attr("y", s.y).attr("width", s.w).attr("height", s.h).attr("rx", s.radius).attr("ry", s.radius).style("fill", this.getLabelBackgroundColor(r)).style("stroke", this.getTextFillColor(r)).style("stroke-width", 0.25), e.append("text").attr("class", p.labelText).attr("data-color", r).attr("x", 5).attr("y", t + this.barChartHeight / 2).attr("dy", "0.35em").style("text-anchor", "start").style("font-size", "12px").style("font-weight", 500).style("stroke-linejoin", "round").style("paint-order", "stroke").style("fill", this.getTextFillColor(r)).text(n);
5950
+ }, n = e.append("g").attr("class", `${h.labelGroup} ${h.labelGroup}-${a}`).style("cursor", "pointer").on("click", () => this.toggleGroupVisibility(a));
5951
+ n.append("rect").attr("class", h.labelBg).attr("data-color", r).attr("x", o.x).attr("y", o.y).attr("width", o.w).attr("height", o.h).attr("rx", o.radius).attr("ry", o.radius).style("fill", this.dark ? "#131a29" : "white"), n.append("rect").attr("class", h.labelBgFill).attr("data-color", r).attr("x", o.x).attr("y", o.y).attr("width", o.w).attr("height", o.h).attr("rx", o.radius).attr("ry", o.radius).style("fill", this.getLabelBackgroundColor(r)).style("stroke", this.getTextFillColor(r)).style("stroke-width", 0.25), n.append("text").attr("class", h.labelText).attr("data-color", r).attr("x", 5).attr("y", t + this.barChartHeight / 2).attr("dy", "0.35em").style("text-anchor", "start").style("font-size", "12px").style("font-weight", 500).style("stroke-linejoin", "round").style("paint-order", "stroke").style("fill", this.getTextFillColor(r)).text(i);
5856
5952
  },
5857
5953
  getTextFillColor(e, t = 0) {
5858
- var r, n;
5859
- return (this.dark ? (r = c.color(e)) == null ? void 0 : r.brighter(1.5 + t) : (n = c.color(e)) == null ? void 0 : n.darker(2 + t)).toString();
5954
+ var r, i;
5955
+ return (this.dark ? (r = u.color(e)) == null ? void 0 : r.brighter(1.5 + t) : (i = u.color(e)) == null ? void 0 : i.darker(2 + t)).toString();
5860
5956
  },
5861
5957
  getLabelBackgroundColor(e) {
5862
- let t = c.color(e);
5958
+ let t = u.color(e);
5863
5959
  return t.opacity = this.dark ? 0.2 : 0.5, t.toString();
5864
5960
  },
5961
+ getCurrentGroupVisibility(e) {
5962
+ const t = this.groupsVisibility[e];
5963
+ if (t !== void 0)
5964
+ return t;
5965
+ const r = this.eventsGroups[e].isHidden;
5966
+ return r !== void 0 ? !r : !0;
5967
+ },
5968
+ toggleGroupVisibility(e) {
5969
+ this.groupsVisibility = {
5970
+ ...this.groupsVisibility,
5971
+ [e]: !this.getCurrentGroupVisibility(e)
5972
+ };
5973
+ },
5974
+ getExternalLabelStyles(e) {
5975
+ const t = this.eventsGroups[e].color;
5976
+ return {
5977
+ background: this.getLabelBackgroundColor(t),
5978
+ color: this.getTextFillColor(t)
5979
+ };
5980
+ },
5981
+ getExternalLabelWrapperStyles(e) {
5982
+ const t = this.eventsGroups[e].color;
5983
+ return {
5984
+ borderColor: this.getTextFillColor(t)
5985
+ };
5986
+ },
5987
+ getMarkerContainerStyle(e) {
5988
+ return {
5989
+ top: "0",
5990
+ left: `${this.markersPositions[e.id].position}px`
5991
+ };
5992
+ },
5993
+ getMarkerLabelStyle(e) {
5994
+ return {
5995
+ background: e.color,
5996
+ color: e.textColor || ""
5997
+ };
5998
+ },
5999
+ getMarkerLineStyle(e) {
6000
+ return {
6001
+ background: e.color,
6002
+ height: `${this.timelineHeight + 24}px`
6003
+ };
6004
+ },
5865
6005
  tzStringToDate(e) {
5866
6006
  return V(e).add(this.utcOffset, "minutes").toDate();
5867
6007
  },
@@ -5879,38 +6019,48 @@ const qt = {
5879
6019
  fillTimeGaps(e) {
5880
6020
  if (e.length <= 1)
5881
6021
  return e;
5882
- const t = this.insertZerosAtInterval, r = (o) => o.clone().add(1, t), n = (o) => o.clone().subtract(1, t);
5883
- let s = [];
6022
+ const t = this.insertZerosAtInterval, r = (o) => o.clone().add(1, t), i = (o) => o.clone().subtract(1, t);
6023
+ let a = [];
5884
6024
  for (let o = 0; o < e.length; o++) {
5885
- const i = e[o];
5886
- if (s.push(i), o === e.length - 1)
6025
+ const n = e[o];
6026
+ if (a.push(n), o === e.length - 1)
5887
6027
  break;
5888
- const d = e[o + 1], l = V(i.timestamp), a = V(d.timestamp);
5889
- if (a.diff(l, t) > 1) {
5890
- const u = r(l).toISOString(), v = n(a).toISOString();
5891
- s.push({ timestamp: u, count: 0 }), u !== v && s.push({ timestamp: v, count: 0 });
6028
+ const f = e[o + 1], l = V(n.timestamp), s = V(f.timestamp);
6029
+ if (s.diff(l, t) > 1) {
6030
+ const d = r(l).toISOString(), v = i(s).toISOString();
6031
+ a.push({ timestamp: d, count: 0 }), d !== v && a.push({ timestamp: v, count: 0 });
5892
6032
  }
5893
6033
  }
5894
6034
  if (this.flattenLineGraphEnds) {
5895
- const o = V(e[0].timestamp), i = V(e[e.length - 1].timestamp), d = n(o).toISOString(), l = r(i).toISOString();
5896
- s = [
5897
- { timestamp: d, count: 0 },
5898
- ...s,
6035
+ const o = V(e[0].timestamp), n = V(e[e.length - 1].timestamp), f = i(o).toISOString(), l = r(n).toISOString();
6036
+ a = [
6037
+ { timestamp: f, count: 0 },
6038
+ ...a,
5899
6039
  { timestamp: l, count: 0 }
5900
6040
  ];
5901
6041
  }
5902
- return s;
6042
+ return a;
5903
6043
  },
5904
6044
  fillEvents(e) {
5905
6045
  return this.placeholderLineChartGroup.map((t) => e.find(
5906
- (n) => n.timestamp === t.timestamp
6046
+ (i) => i.timestamp === t.timestamp
5907
6047
  ) || t);
5908
6048
  }
5909
6049
  }
5910
6050
  });
5911
6051
  var Kt = function() {
5912
6052
  var t = this, r = t._self._c;
5913
- return r("div", { staticClass: "e-relative e-timeline e-border e-rounded", class: t.classes.wrapper }, [r("div", { staticClass: "e-timeline__background e-w-full e-h-full e-absolute e-top-0 e-rounded", class: t.classes.background }), r("div", { directives: [{ name: "resize-observer", rawName: "v-resize-observer", value: t.onResize, expression: "onResize" }], ref: "timelineContainer", staticClass: "e-timeline__svg-container e-relative e-h-13 e-rounded e-select-none e-overflow-x-hidden e-overflow-hidden" }), r("div", { directives: [{ name: "show", rawName: "v-show", value: t.isHoveringTimeline && !t.isInteractingWithCurtain, expression: "isHoveringTimeline && !isInteractingWithCurtain" }], ref: "cursor", staticClass: "e-timeline__cursor e-absolute e-bg-green-600 e-w-px e-h-full e-top-0 e-pointer-events-none" }), r("div", { ref: "tooltip", staticClass: "e-absolute", style: t.eventTooltipStyle }, [t._t("tooltip", function() {
6053
+ return r("div", { staticClass: "e-relative e-timeline e-border e-rounded", class: t.classes.wrapper }, [r("div", { staticClass: "e-timeline__background e-w-full e-h-full e-absolute e-top-0 e-rounded", class: t.classes.background }), t._l(t.sortedMarkers, function(i) {
6054
+ return r("div", { key: i.id, staticClass: "e-absolute marker", class: { "marker--hidden": t.markersPositions[i.id].isHidden }, style: t.getMarkerContainerStyle(i), on: { click: function(a) {
6055
+ return t.handleMarkerClick(i);
6056
+ } } }, [t._t(`marker.${i.id}`, function() {
6057
+ return [r("div", { staticClass: "marker-label e-absolute" }, [r("div", { staticClass: "marker-label-text", style: t.getMarkerLabelStyle(i) }, [t._v(" " + t._s(i.label) + " ")])]), r("div", { staticClass: "marker-line e-absolute e-pointer-events-none", style: t.getMarkerLineStyle(i) })];
6058
+ }, { marker: i })], 2);
6059
+ }), t.autoResize ? r("div", { directives: [{ name: "resize-observer", rawName: "v-resize-observer", value: t.onResize, expression: "onResize" }], ref: "timelineContainer", staticClass: "e-timeline__svg-container e-relative e-h-13 e-rounded e-select-none e-overflow-x-hidden" }) : r("div", { ref: "timelineContainer", staticClass: "e-timeline__svg-container e-relative e-h-13 e-rounded e-select-none e-overflow-x-hidden" }), r("div", { directives: [{ name: "show", rawName: "v-show", value: t.isHoveringTimeline && !t.isInteractingWithCurtain, expression: "isHoveringTimeline && !isInteractingWithCurtain" }], ref: "cursor", staticClass: "e-timeline__cursor e-absolute e-bg-green-600 e-w-px e-h-full e-top-0 e-pointer-events-none" }), r("div", { staticClass: "external-labels-container e-flex" }, t._l(t.hiddenGroupsLabels, function(i) {
6060
+ return r("div", { key: i, staticClass: "external-label", class: t.classes.background, style: t.getExternalLabelWrapperStyles(i), on: { click: function(a) {
6061
+ return t.toggleGroupVisibility(i);
6062
+ } } }, [r("div", { staticClass: "external-label__content", style: t.getExternalLabelStyles(i) }, [t._v(" " + t._s(i) + " ")])]);
6063
+ }), 0), r("div", { ref: "tooltip", staticClass: "e-absolute", style: t.eventTooltipStyle }, [t._t("tooltip", function() {
5914
6064
  return [r("div", { directives: [{ name: "show", rawName: "v-show", value: t.isHoveringTimeline && !t.isHoveringEvent && !t.isInteractingWithCurtain && !t.cursorTimestamp, expression: `
5915
6065
  isHoveringTimeline &&
5916
6066
  !isHoveringEvent &&
@@ -5918,12 +6068,12 @@ var Kt = function() {
5918
6068
  !cursorTimestamp
5919
6069
  ` }], staticClass: "e-timeline__tooltip e-border e-rounded e-px-2 -e-left-2/4 e-relative", class: t.classes.tooltipSlot }, [t._v(" " + t._s(t.hoveredTimestamp) + " ")])];
5920
6070
  }, { timestamp: t.hoveredTimestamp, active: t.isHoveringTimeline && !t.isInteractingWithCurtain && !t.cursorTimestamp })], 2), r("div", { ref: "eventPreviewTooltip", staticClass: "e-absolute e-z-50", style: t.eventTooltipStyle }, [t._t("eventTooltip", function() {
5921
- return [t.showEventTooltip && (t.hoveredEvent || t.hoveredCounts.length) ? r("div", { directives: [{ name: "show", rawName: "v-show", value: t.isHoveringEvent && !t.isInteractingWithCurtain, expression: "isHoveringEvent && !isInteractingWithCurtain" }], staticClass: "e-timeline__event-tooltip e-border e-rounded e-px-2 -e-left-2/4 e-relative", class: t.classes.eventTooltipSlot }, [t.hoveredCounts.length ? r("div", [r("strong", [t._v("Timestamp")]), t._v(": " + t._s(t.hoveredEvent.timestamp) + " "), t._l(t.hoveredCounts, function(n, s) {
5922
- return r("div", { key: s }, [r("strong", [t._v(t._s(n.type) + " Count")]), t._v(": " + t._s(n.count) + " ")]);
6071
+ return [t.showEventTooltip && (t.hoveredEvent || t.hoveredCounts.length) ? r("div", { directives: [{ name: "show", rawName: "v-show", value: t.isHoveringEvent && !t.isInteractingWithCurtain, expression: "isHoveringEvent && !isInteractingWithCurtain" }], staticClass: "e-timeline__event-tooltip e-border e-rounded e-px-2 -e-left-2/4 e-relative", class: t.classes.eventTooltipSlot }, [t.hoveredCounts.length ? r("div", [r("strong", [t._v("Timestamp")]), t._v(": " + t._s(t.hoveredEvent.timestamp) + " "), t._l(t.hoveredCounts, function(i, a) {
6072
+ return r("div", { key: a }, [r("strong", [t._v(t._s(i.type) + " Count")]), t._v(": " + t._s(i.count) + " ")]);
5923
6073
  })], 2) : t.hoveredEvent ? r("div", [t.hoveredEvent.timestamp ? r("div", [r("strong", [t._v("Event time")]), t._v(": " + t._s(t.hoveredEvent.timestamp) + " ")]) : t._e(), t.hoveredEvent.startDate ? r("div", [r("strong", [t._v("From")]), t._v(":" + t._s(t.hoveredEvent.startDate) + " ")]) : t._e(), t.hoveredEvent.endDate ? r("div", [r("strong", [t._v("To")]), t._v(":" + t._s(t.hoveredEvent.endDate) + " ")]) : t._e()]) : t._e()]) : t._e()];
5924
- }, { event: t.hoveredEvent, counts: t.hoveredCounts, active: t.isHoveringEvent && !t.isInteractingWithCurtain, type: t.hoveredEventType })], 2)]);
6074
+ }, { event: t.hoveredEvent, counts: t.hoveredCounts, active: t.isHoveringEvent && !t.isInteractingWithCurtain, type: t.hoveredEventType })], 2)], 2);
5925
6075
  }, Jt = [], Qt = /* @__PURE__ */ I(
5926
- Zt,
6076
+ Yt,
5927
6077
  Kt,
5928
6078
  Jt,
5929
6079
  !1,
@@ -5989,22 +6139,22 @@ const er = Qt.exports, tr = {
5989
6139
  var rr = function() {
5990
6140
  var t = this, r = t._self._c;
5991
6141
  return r("div", { staticClass: "video-embed" }, [r("iframe", t._g(t._b({ attrs: { src: t.embedUrl, frameborder: "0", allowfullscreen: "", width: "100%", height: "100%", allow: "autoplay; fullscreen; picture-in-picture" } }, "iframe", t.iframeOptions, !1), t.iframeListeners))]);
5992
- }, nr = [], ir = /* @__PURE__ */ I(
6142
+ }, ir = [], nr = /* @__PURE__ */ I(
5993
6143
  tr,
5994
6144
  rr,
5995
- nr,
6145
+ ir,
5996
6146
  !1,
5997
6147
  null,
5998
6148
  "0ecf4a71",
5999
6149
  null,
6000
6150
  null
6001
6151
  );
6002
- const sr = ir.exports, Se = {
6152
+ const sr = nr.exports, Se = {
6003
6153
  EAvatar: ct,
6004
- EBadge: Me,
6154
+ EBadge: Pe,
6005
6155
  EIcon: Tt,
6006
6156
  ESpinner: Qe,
6007
- ERow: Pt,
6157
+ ERow: Ft,
6008
6158
  ECol: Bt,
6009
6159
  EVideoPlayer: Xt,
6010
6160
  ETimeline: er,
@@ -6013,7 +6163,7 @@ const sr = ir.exports, Se = {
6013
6163
  install(e) {
6014
6164
  Object.keys(Se).forEach((t) => {
6015
6165
  e.component(t, Se[t]);
6016
- }), Yt.forEach(({ name: t, definition: r }) => {
6166
+ }), Zt.forEach(({ name: t, definition: r }) => {
6017
6167
  e.directive(t, r);
6018
6168
  });
6019
6169
  }
@@ -6024,12 +6174,12 @@ export {
6024
6174
  lr as BadgeSizes,
6025
6175
  B as BaseColor,
6026
6176
  bt as Colors,
6027
- Yt as DirectivesMap,
6177
+ Zt as DirectivesMap,
6028
6178
  ct as EAvatar,
6029
- Me as EBadge,
6179
+ Pe as EBadge,
6030
6180
  Bt as ECol,
6031
6181
  Tt as EIcon,
6032
- Pt as ERow,
6182
+ Ft as ERow,
6033
6183
  Qe as ESpinner,
6034
6184
  er as ETimeline,
6035
6185
  dr as EVENTS,
@@ -6037,10 +6187,10 @@ export {
6037
6187
  Xt as EVideoPlayer,
6038
6188
  xt as IconSizes,
6039
6189
  tt as ResizeObserverDirective,
6040
- T as Size,
6190
+ E as Size,
6041
6191
  yt as TextSizes,
6042
6192
  te as TimelineAxis,
6043
- Z as TimelineChartType,
6193
+ Y as TimelineChartType,
6044
6194
  re as TimelineIntervalChangeTrigger,
6045
6195
  Se as components,
6046
6196
  Wt as debounce,