@levo-so/react 0.1.52 → 0.1.58

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.js CHANGED
@@ -1,20 +1,19 @@
1
1
  "use client";
2
- var it = Object.defineProperty;
3
- var ct = (e, t, n) => t in e ? it(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
2
+ var at = Object.defineProperty;
3
+ var ct = (e, t, n) => t in e ? at(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
4
  var J = (e, t, n) => ct(e, typeof t != "symbol" ? t + "" : t, n);
5
5
  import * as D from "react";
6
- import I, { createContext as ut, useContext as Pe, useEffect as b, useState as x, useMemo as Ae, useRef as Ie, useCallback as me } from "react";
6
+ import A, { createContext as ut, useContext as Pe, useState as x, useEffect as b, useMemo as Ie, useRef as Ae, useCallback as fe } from "react";
7
7
  import { clsx as lt } from "clsx";
8
8
  import { twMerge as De } from "tailwind-merge";
9
- import { useInView as dt } from "react-intersection-observer";
10
- import { getLevoError as Me, LocalStorageLock as ft } from "@levo-so/core";
11
- import { usePageLifecycle as mt, LifecycleState as le } from "use-page-lifecycle";
12
- import { Slot as gt, Dialog as j, Tabs as B, Tooltip as Y } from "radix-ui";
13
- import { cva as pt } from "class-variance-authority";
14
- import { X as bt } from "lucide-react";
15
- import { Toaster as vt, toast as Q } from "sonner";
16
- import { toast as Ur } from "sonner";
17
- const ht = [
9
+ import { getLevoError as Me, LocalStorageLock as dt } from "@levo-so/core";
10
+ import { usePageLifecycle as ft, LifecycleState as ue } from "use-page-lifecycle";
11
+ import { Slot as mt, Dialog as j, Tabs as F, Tooltip as Y } from "radix-ui";
12
+ import { cva as gt } from "class-variance-authority";
13
+ import { X as pt } from "lucide-react";
14
+ import { Toaster as bt, toast as me } from "sonner";
15
+ import { toast as Br } from "sonner";
16
+ const vt = [
18
17
  "pdf",
19
18
  "txt",
20
19
  "xml",
@@ -28,7 +27,7 @@ const ht = [
28
27
  "odp",
29
28
  "ppt",
30
29
  "pptx"
31
- ], wt = [
30
+ ], ht = [
32
31
  "svg",
33
32
  "png",
34
33
  "jpg",
@@ -36,7 +35,7 @@ const ht = [
36
35
  "gif",
37
36
  "webp",
38
37
  "avif"
39
- ], yt = ["mp4", "ogv", "webm"], xt = ["mp3", "ogg", "opus"], Tt = {
38
+ ], wt = ["mp4", "ogv", "webm"], yt = ["mp3", "ogg", "opus"], xt = {
40
39
  "application/xml": [".xml"],
41
40
  "text/plain": [".txt"],
42
41
  "application/pdf": [".pdf"],
@@ -49,7 +48,7 @@ const ht = [
49
48
  ".docx"
50
49
  ],
51
50
  "text/csv": [".csv"]
52
- }, Et = {
51
+ }, Tt = {
53
52
  "image/jpeg": [".jpeg", ".jpg"],
54
53
  "image/jpg": [".jpg"],
55
54
  "image/png": [".png"],
@@ -58,30 +57,30 @@ const ht = [
58
57
  "image/svg+xml": [".svg"],
59
58
  "image/webp": [".webp"],
60
59
  "image/avif": [".avif"]
61
- }, kt = {
60
+ }, Et = {
62
61
  "video/mp4": [".mp4"],
63
62
  "video/mpeg": [".mpeg"],
64
63
  "video/webm": [".webm"]
65
- }, St = {
64
+ }, kt = {
66
65
  "audio/mpeg": [".mp3"],
67
66
  "audio/ogg": [".oga"],
68
67
  "audio/opus": [".opus"]
69
68
  }, X = {
70
- audio: St,
71
- document: Tt,
72
- image: Et,
73
- video: kt
69
+ audio: kt,
70
+ document: xt,
71
+ image: Tt,
72
+ video: Et
74
73
  }, q = {
75
- audio: xt,
76
- document: ht,
77
- image: wt,
78
- video: yt
79
- }, Tr = [
74
+ audio: yt,
75
+ document: vt,
76
+ image: ht,
77
+ video: wt
78
+ }, yr = [
80
79
  ...q.audio,
81
80
  ...q.document,
82
81
  ...q.image,
83
82
  ...q.video
84
- ], Er = {
83
+ ], xr = {
85
84
  ...X.audio,
86
85
  ...X.document,
87
86
  ...X.image,
@@ -106,8 +105,8 @@ function _t() {
106
105
  var c = null;
107
106
  if (s !== void 0 && (c = "" + s), o.key !== void 0 && (c = "" + o.key), "key" in o) {
108
107
  s = {};
109
- for (var i in o)
110
- i !== "key" && (s[i] = o[i]);
108
+ for (var a in o)
109
+ a !== "key" && (s[a] = o[a]);
111
110
  } else s = o;
112
111
  return o = s.ref, {
113
112
  $$typeof: e,
@@ -130,15 +129,15 @@ var H = {};
130
129
  * LICENSE file in the root directory of this source tree.
131
130
  */
132
131
  var ke;
133
- function Ot() {
132
+ function St() {
134
133
  return ke || (ke = 1, process.env.NODE_ENV !== "production" && function() {
135
- function e(a) {
136
- if (a == null) return null;
137
- if (typeof a == "function")
138
- return a.$$typeof === ot ? null : a.displayName || a.name || null;
139
- if (typeof a == "string") return a;
140
- switch (a) {
141
- case _:
134
+ function e(i) {
135
+ if (i == null) return null;
136
+ if (typeof i == "function")
137
+ return i.$$typeof === ot ? null : i.displayName || i.name || null;
138
+ if (typeof i == "string") return i;
139
+ switch (i) {
140
+ case S:
142
141
  return "Fragment";
143
142
  case C:
144
143
  return "Profiler";
@@ -148,129 +147,129 @@ function Ot() {
148
147
  return "Suspense";
149
148
  case w:
150
149
  return "SuspenseList";
151
- case V:
150
+ case G:
152
151
  return "Activity";
153
152
  }
154
- if (typeof a == "object")
155
- switch (typeof a.tag == "number" && console.error(
153
+ if (typeof i == "object")
154
+ switch (typeof i.tag == "number" && console.error(
156
155
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
157
- ), a.$$typeof) {
158
- case S:
156
+ ), i.$$typeof) {
157
+ case _:
159
158
  return "Portal";
160
159
  case y:
161
- return (a.displayName || "Context") + ".Provider";
160
+ return (i.displayName || "Context") + ".Provider";
162
161
  case T:
163
- return (a._context.displayName || "Context") + ".Consumer";
162
+ return (i._context.displayName || "Context") + ".Consumer";
164
163
  case O:
165
- var g = a.render;
166
- return a = a.displayName, a || (a = g.displayName || g.name || "", a = a !== "" ? "ForwardRef(" + a + ")" : "ForwardRef"), a;
164
+ var g = i.render;
165
+ return i = i.displayName, i || (i = g.displayName || g.name || "", i = i !== "" ? "ForwardRef(" + i + ")" : "ForwardRef"), i;
167
166
  case P:
168
- return g = a.displayName || null, g !== null ? g : e(a.type) || "Memo";
167
+ return g = i.displayName || null, g !== null ? g : e(i.type) || "Memo";
169
168
  case $:
170
- g = a._payload, a = a._init;
169
+ g = i._payload, i = i._init;
171
170
  try {
172
- return e(a(g));
171
+ return e(i(g));
173
172
  } catch {
174
173
  }
175
174
  }
176
175
  return null;
177
176
  }
178
- function t(a) {
179
- return "" + a;
177
+ function t(i) {
178
+ return "" + i;
180
179
  }
181
- function n(a) {
180
+ function n(i) {
182
181
  try {
183
- t(a);
182
+ t(i);
184
183
  var g = !1;
185
184
  } catch {
186
185
  g = !0;
187
186
  }
188
187
  if (g) {
189
188
  g = console;
190
- var h = g.error, E = typeof Symbol == "function" && Symbol.toStringTag && a[Symbol.toStringTag] || a.constructor.name || "Object";
189
+ var h = g.error, E = typeof Symbol == "function" && Symbol.toStringTag && i[Symbol.toStringTag] || i.constructor.name || "Object";
191
190
  return h.call(
192
191
  g,
193
192
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
194
193
  E
195
- ), t(a);
194
+ ), t(i);
196
195
  }
197
196
  }
198
- function r(a) {
199
- if (a === _) return "<>";
200
- if (typeof a == "object" && a !== null && a.$$typeof === $)
197
+ function r(i) {
198
+ if (i === S) return "<>";
199
+ if (typeof i == "object" && i !== null && i.$$typeof === $)
201
200
  return "<...>";
202
201
  try {
203
- var g = e(a);
202
+ var g = e(i);
204
203
  return g ? "<" + g + ">" : "<...>";
205
204
  } catch {
206
205
  return "<...>";
207
206
  }
208
207
  }
209
208
  function o() {
210
- var a = se.A;
211
- return a === null ? null : a.getOwner();
209
+ var i = oe.A;
210
+ return i === null ? null : i.getOwner();
212
211
  }
213
212
  function s() {
214
213
  return Error("react-stack-top-frame");
215
214
  }
216
- function c(a) {
217
- if (ve.call(a, "key")) {
218
- var g = Object.getOwnPropertyDescriptor(a, "key").get;
215
+ function c(i) {
216
+ if (ve.call(i, "key")) {
217
+ var g = Object.getOwnPropertyDescriptor(i, "key").get;
219
218
  if (g && g.isReactWarning) return !1;
220
219
  }
221
- return a.key !== void 0;
220
+ return i.key !== void 0;
222
221
  }
223
- function i(a, g) {
222
+ function a(i, g) {
224
223
  function h() {
225
224
  he || (he = !0, console.error(
226
225
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
227
226
  g
228
227
  ));
229
228
  }
230
- h.isReactWarning = !0, Object.defineProperty(a, "key", {
229
+ h.isReactWarning = !0, Object.defineProperty(i, "key", {
231
230
  get: h,
232
231
  configurable: !0
233
232
  });
234
233
  }
235
234
  function u() {
236
- var a = e(this.type);
237
- return we[a] || (we[a] = !0, console.error(
235
+ var i = e(this.type);
236
+ return we[i] || (we[i] = !0, console.error(
238
237
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
239
- )), a = this.props.ref, a !== void 0 ? a : null;
238
+ )), i = this.props.ref, i !== void 0 ? i : null;
240
239
  }
241
- function l(a, g, h, E, F, A, ie, ce) {
242
- return h = A.ref, a = {
240
+ function l(i, g, h, E, W, I, ie, ae) {
241
+ return h = I.ref, i = {
243
242
  $$typeof: v,
244
- type: a,
243
+ type: i,
245
244
  key: g,
246
- props: A,
247
- _owner: F
248
- }, (h !== void 0 ? h : null) !== null ? Object.defineProperty(a, "ref", {
245
+ props: I,
246
+ _owner: W
247
+ }, (h !== void 0 ? h : null) !== null ? Object.defineProperty(i, "ref", {
249
248
  enumerable: !1,
250
249
  get: u
251
- }) : Object.defineProperty(a, "ref", { enumerable: !1, value: null }), a._store = {}, Object.defineProperty(a._store, "validated", {
250
+ }) : Object.defineProperty(i, "ref", { enumerable: !1, value: null }), i._store = {}, Object.defineProperty(i._store, "validated", {
252
251
  configurable: !1,
253
252
  enumerable: !1,
254
253
  writable: !0,
255
254
  value: 0
256
- }), Object.defineProperty(a, "_debugInfo", {
255
+ }), Object.defineProperty(i, "_debugInfo", {
257
256
  configurable: !1,
258
257
  enumerable: !1,
259
258
  writable: !0,
260
259
  value: null
261
- }), Object.defineProperty(a, "_debugStack", {
260
+ }), Object.defineProperty(i, "_debugStack", {
262
261
  configurable: !1,
263
262
  enumerable: !1,
264
263
  writable: !0,
265
264
  value: ie
266
- }), Object.defineProperty(a, "_debugTask", {
265
+ }), Object.defineProperty(i, "_debugTask", {
267
266
  configurable: !1,
268
267
  enumerable: !1,
269
268
  writable: !0,
270
- value: ce
271
- }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
269
+ value: ae
270
+ }), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
272
271
  }
273
- function p(a, g, h, E, F, A, ie, ce) {
272
+ function f(i, g, h, E, W, I, ie, ae) {
274
273
  var k = g.children;
275
274
  if (k !== void 0)
276
275
  if (E)
@@ -284,9 +283,9 @@ function Ot() {
284
283
  );
285
284
  else d(k);
286
285
  if (ve.call(g, "key")) {
287
- k = e(a);
288
- var U = Object.keys(g).filter(function(at) {
289
- return at !== "key";
286
+ k = e(i);
287
+ var U = Object.keys(g).filter(function(it) {
288
+ return it !== "key";
290
289
  });
291
290
  E = 0 < U.length ? "{key: someKey, " + U.join(": ..., ") + ": ...}" : "{key: someKey}", Te[k + E] || (U = 0 < U.length ? "{" + U.join(": ..., ") + ": ...}" : "{}", console.error(
292
291
  `A props object containing a "key" prop is being spread into JSX:
@@ -303,79 +302,79 @@ React keys must be passed directly to JSX without using spread:
303
302
  }
304
303
  if (k = null, h !== void 0 && (n(h), k = "" + h), c(g) && (n(g.key), k = "" + g.key), "key" in g) {
305
304
  h = {};
306
- for (var ue in g)
307
- ue !== "key" && (h[ue] = g[ue]);
305
+ for (var ce in g)
306
+ ce !== "key" && (h[ce] = g[ce]);
308
307
  } else h = g;
309
- return k && i(
308
+ return k && a(
310
309
  h,
311
- typeof a == "function" ? a.displayName || a.name || "Unknown" : a
310
+ typeof i == "function" ? i.displayName || i.name || "Unknown" : i
312
311
  ), l(
313
- a,
312
+ i,
314
313
  k,
315
- A,
316
- F,
314
+ I,
315
+ W,
317
316
  o(),
318
317
  h,
319
318
  ie,
320
- ce
319
+ ae
321
320
  );
322
321
  }
323
- function d(a) {
324
- typeof a == "object" && a !== null && a.$$typeof === v && a._store && (a._store.validated = 1);
322
+ function d(i) {
323
+ typeof i == "object" && i !== null && i.$$typeof === v && i._store && (i._store.validated = 1);
325
324
  }
326
- var f = I, v = Symbol.for("react.transitional.element"), S = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), N = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), T = Symbol.for("react.consumer"), y = Symbol.for("react.context"), O = Symbol.for("react.forward_ref"), M = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), $ = Symbol.for("react.lazy"), V = Symbol.for("react.activity"), ot = Symbol.for("react.client.reference"), se = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ve = Object.prototype.hasOwnProperty, st = Array.isArray, ae = console.createTask ? console.createTask : function() {
325
+ var m = A, v = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), S = Symbol.for("react.fragment"), N = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), T = Symbol.for("react.consumer"), y = Symbol.for("react.context"), O = Symbol.for("react.forward_ref"), M = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), $ = Symbol.for("react.lazy"), G = Symbol.for("react.activity"), ot = Symbol.for("react.client.reference"), oe = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ve = Object.prototype.hasOwnProperty, st = Array.isArray, se = console.createTask ? console.createTask : function() {
327
326
  return null;
328
327
  };
329
- f = {
330
- "react-stack-bottom-frame": function(a) {
331
- return a();
328
+ m = {
329
+ react_stack_bottom_frame: function(i) {
330
+ return i();
332
331
  }
333
332
  };
334
- var he, we = {}, ye = f["react-stack-bottom-frame"].bind(
335
- f,
333
+ var he, we = {}, ye = m.react_stack_bottom_frame.bind(
334
+ m,
336
335
  s
337
- )(), xe = ae(r(s)), Te = {};
338
- H.Fragment = _, H.jsx = function(a, g, h, E, F) {
339
- var A = 1e4 > se.recentlyCreatedOwnerStacks++;
340
- return p(
341
- a,
336
+ )(), xe = se(r(s)), Te = {};
337
+ H.Fragment = S, H.jsx = function(i, g, h, E, W) {
338
+ var I = 1e4 > oe.recentlyCreatedOwnerStacks++;
339
+ return f(
340
+ i,
342
341
  g,
343
342
  h,
344
343
  !1,
345
344
  E,
346
- F,
347
- A ? Error("react-stack-top-frame") : ye,
348
- A ? ae(r(a)) : xe
345
+ W,
346
+ I ? Error("react-stack-top-frame") : ye,
347
+ I ? se(r(i)) : xe
349
348
  );
350
- }, H.jsxs = function(a, g, h, E, F) {
351
- var A = 1e4 > se.recentlyCreatedOwnerStacks++;
352
- return p(
353
- a,
349
+ }, H.jsxs = function(i, g, h, E, W) {
350
+ var I = 1e4 > oe.recentlyCreatedOwnerStacks++;
351
+ return f(
352
+ i,
354
353
  g,
355
354
  h,
356
355
  !0,
357
356
  E,
358
- F,
359
- A ? Error("react-stack-top-frame") : ye,
360
- A ? ae(r(a)) : xe
357
+ W,
358
+ I ? Error("react-stack-top-frame") : ye,
359
+ I ? se(r(i)) : xe
361
360
  );
362
361
  };
363
362
  }()), H;
364
363
  }
365
- var Se;
366
- function jt() {
367
- return Se || (Se = 1, process.env.NODE_ENV === "production" ? K.exports = _t() : K.exports = Ot()), K.exports;
364
+ var _e;
365
+ function Ot() {
366
+ return _e || (_e = 1, process.env.NODE_ENV === "production" ? K.exports = _t() : K.exports = St()), K.exports;
368
367
  }
369
- var m = jt(), $e = {
368
+ var p = Ot(), $e = {
370
369
  color: void 0,
371
370
  size: void 0,
372
371
  className: void 0,
373
372
  style: void 0,
374
373
  attr: void 0
375
- }, _e = I.createContext && /* @__PURE__ */ I.createContext($e), Nt = ["attr", "size", "title"];
376
- function Ct(e, t) {
374
+ }, Se = A.createContext && /* @__PURE__ */ A.createContext($e), jt = ["attr", "size", "title"];
375
+ function Nt(e, t) {
377
376
  if (e == null) return {};
378
- var n = Rt(e, t), r, o;
377
+ var n = Ct(e, t), r, o;
379
378
  if (Object.getOwnPropertySymbols) {
380
379
  var s = Object.getOwnPropertySymbols(e);
381
380
  for (o = 0; o < s.length; o++)
@@ -383,7 +382,7 @@ function Ct(e, t) {
383
382
  }
384
383
  return n;
385
384
  }
386
- function Rt(e, t) {
385
+ function Ct(e, t) {
387
386
  if (e == null) return {};
388
387
  var n = {};
389
388
  for (var r in e)
@@ -393,15 +392,15 @@ function Rt(e, t) {
393
392
  }
394
393
  return n;
395
394
  }
396
- function ee() {
397
- return ee = Object.assign ? Object.assign.bind() : function(e) {
395
+ function Q() {
396
+ return Q = Object.assign ? Object.assign.bind() : function(e) {
398
397
  for (var t = 1; t < arguments.length; t++) {
399
398
  var n = arguments[t];
400
399
  for (var r in n)
401
400
  Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
402
401
  }
403
402
  return e;
404
- }, ee.apply(this, arguments);
403
+ }, Q.apply(this, arguments);
405
404
  }
406
405
  function Oe(e, t) {
407
406
  var n = Object.keys(e);
@@ -413,25 +412,25 @@ function Oe(e, t) {
413
412
  }
414
413
  return n;
415
414
  }
416
- function te(e) {
415
+ function ee(e) {
417
416
  for (var t = 1; t < arguments.length; t++) {
418
417
  var n = arguments[t] != null ? arguments[t] : {};
419
418
  t % 2 ? Oe(Object(n), !0).forEach(function(r) {
420
- Lt(e, r, n[r]);
419
+ Rt(e, r, n[r]);
421
420
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Oe(Object(n)).forEach(function(r) {
422
421
  Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
423
422
  });
424
423
  }
425
424
  return e;
426
425
  }
427
- function Lt(e, t, n) {
428
- return t = Pt(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
426
+ function Rt(e, t, n) {
427
+ return t = Lt(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
429
428
  }
430
- function Pt(e) {
431
- var t = At(e, "string");
429
+ function Lt(e) {
430
+ var t = Pt(e, "string");
432
431
  return typeof t == "symbol" ? t : t + "";
433
432
  }
434
- function At(e, t) {
433
+ function Pt(e, t) {
435
434
  if (typeof e != "object" || !e) return e;
436
435
  var n = e[Symbol.toPrimitive];
437
436
  if (n !== void 0) {
@@ -441,50 +440,50 @@ function At(e, t) {
441
440
  }
442
441
  return (t === "string" ? String : Number)(e);
443
442
  }
444
- function Fe(e) {
445
- return e && e.map((t, n) => /* @__PURE__ */ I.createElement(t.tag, te({
443
+ function We(e) {
444
+ return e && e.map((t, n) => /* @__PURE__ */ A.createElement(t.tag, ee({
446
445
  key: n
447
- }, t.attr), Fe(t.child)));
446
+ }, t.attr), We(t.child)));
448
447
  }
449
448
  function It(e) {
450
- return (t) => /* @__PURE__ */ I.createElement(Dt, ee({
451
- attr: te({}, e.attr)
452
- }, t), Fe(e.child));
449
+ return (t) => /* @__PURE__ */ A.createElement(At, Q({
450
+ attr: ee({}, e.attr)
451
+ }, t), We(e.child));
453
452
  }
454
- function Dt(e) {
453
+ function At(e) {
455
454
  var t = (n) => {
456
455
  var {
457
456
  attr: r,
458
457
  size: o,
459
458
  title: s
460
- } = e, c = Ct(e, Nt), i = o || n.size || "1em", u;
461
- return n.className && (u = n.className), e.className && (u = (u ? u + " " : "") + e.className), /* @__PURE__ */ I.createElement("svg", ee({
459
+ } = e, c = Nt(e, jt), a = o || n.size || "1em", u;
460
+ return n.className && (u = n.className), e.className && (u = (u ? u + " " : "") + e.className), /* @__PURE__ */ A.createElement("svg", Q({
462
461
  stroke: "currentColor",
463
462
  fill: "currentColor",
464
463
  strokeWidth: "0"
465
464
  }, n.attr, r, c, {
466
465
  className: u,
467
- style: te(te({
466
+ style: ee(ee({
468
467
  color: e.color || n.color
469
468
  }, n.style), e.style),
470
- height: i,
471
- width: i,
469
+ height: a,
470
+ width: a,
472
471
  xmlns: "http://www.w3.org/2000/svg"
473
- }), s && /* @__PURE__ */ I.createElement("title", null, s), e.children);
472
+ }), s && /* @__PURE__ */ A.createElement("title", null, s), e.children);
474
473
  };
475
- return _e !== void 0 ? /* @__PURE__ */ I.createElement(_e.Consumer, null, (n) => t(n)) : t($e);
474
+ return Se !== void 0 ? /* @__PURE__ */ A.createElement(Se.Consumer, null, (n) => t(n)) : t($e);
476
475
  }
477
- function We(e) {
476
+ function Be(e) {
478
477
  return It({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M12 22c5.421 0 10-4.579 10-10h-2c0 4.337-3.663 8-8 8s-8-3.663-8-8c0-4.336 3.663-8 8-8V2C6.579 2 2 6.58 2 12c0 5.421 4.579 10 10 10z" }, child: [] }] })(e);
479
478
  }
480
- const R = (...e) => De(lt(e)), Mt = pt(
479
+ const R = (...e) => De(lt(e)), Dt = gt(
481
480
  "inline-flex items-center justify-center text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed",
482
481
  {
483
482
  variants: {
484
483
  variant: {
485
484
  default: "bg-primary text-primary-foreground hover:bg-primary/90",
486
485
  destructive: "bg-destructive text-white hover:bg-destructive/90",
487
- destructiveOutline: "border border-red-500 text-destructive bg-transparent shadow-sm hover:bg-destructive hover:text-destructive-foreground",
486
+ destructiveOutline: "border border-red-500 text-destructive bg-transparent shadow-sm hover:bg-destructive hover:text-white",
488
487
  outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
489
488
  secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
490
489
  secondaryOutline: "bg-transparent border border-solid border-white hover:bg-white hover:border-input",
@@ -512,7 +511,7 @@ const R = (...e) => De(lt(e)), Mt = pt(
512
511
  rounded: "default"
513
512
  }
514
513
  }
515
- ), $t = D.forwardRef(
514
+ ), Mt = D.forwardRef(
516
515
  ({
517
516
  className: e,
518
517
  variant: t,
@@ -521,21 +520,21 @@ const R = (...e) => De(lt(e)), Mt = pt(
521
520
  asChild: o = !1,
522
521
  isLoading: s = !1,
523
522
  loadingText: c,
524
- disabled: i,
523
+ disabled: a,
525
524
  ...u
526
525
  }, l) => {
527
- const p = o ? gt.Root : "button";
528
- return /* @__PURE__ */ m.jsx(
529
- p,
526
+ const f = o ? mt.Root : "button";
527
+ return /* @__PURE__ */ p.jsx(
528
+ f,
530
529
  {
531
- className: R(Mt({ variant: t, size: n, rounded: r, className: e })),
530
+ className: R(Dt({ variant: t, size: n, rounded: r, className: e })),
532
531
  ref: l,
533
- disabled: i || s,
532
+ disabled: a || s,
534
533
  type: "button",
535
534
  ...u,
536
- children: s ? /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
537
- /* @__PURE__ */ m.jsx(
538
- We,
535
+ children: s ? /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
536
+ /* @__PURE__ */ p.jsx(
537
+ Be,
539
538
  {
540
539
  className: De(
541
540
  "h-4 w-4 animate-spin",
@@ -549,8 +548,8 @@ const R = (...e) => De(lt(e)), Mt = pt(
549
548
  );
550
549
  }
551
550
  );
552
- $t.displayName = "Button";
553
- const Ft = j.Root, kr = j.Trigger, Wt = j.Portal, Sr = j.Close, Be = D.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m.jsx(
551
+ Mt.displayName = "Button";
552
+ const $t = j.Root, Tr = j.Trigger, Wt = j.Portal, Er = j.Close, Fe = D.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
554
553
  j.Overlay,
555
554
  {
556
555
  ref: n,
@@ -561,7 +560,7 @@ const Ft = j.Root, kr = j.Trigger, Wt = j.Portal, Sr = j.Close, Be = D.forwardRe
561
560
  ...t
562
561
  }
563
562
  ));
564
- Be.displayName = j.Overlay.displayName;
563
+ Fe.displayName = j.Overlay.displayName;
565
564
  const Ue = D.forwardRef(
566
565
  ({
567
566
  className: e,
@@ -570,7 +569,7 @@ const Ue = D.forwardRef(
570
569
  hideCloseButton: r,
571
570
  overlayStyles: o,
572
571
  ...s
573
- }, c) => /* @__PURE__ */ m.jsx(Wt, { container: n, children: /* @__PURE__ */ m.jsx(Be, { className: o, children: /* @__PURE__ */ m.jsxs(
572
+ }, c) => /* @__PURE__ */ p.jsx(Wt, { container: n, children: /* @__PURE__ */ p.jsx(Fe, { className: o, children: /* @__PURE__ */ p.jsxs(
574
573
  j.Content,
575
574
  {
576
575
  ref: c,
@@ -581,14 +580,14 @@ const Ue = D.forwardRef(
581
580
  ...s,
582
581
  children: [
583
582
  t,
584
- !r && /* @__PURE__ */ m.jsxs(
583
+ !r && /* @__PURE__ */ p.jsxs(
585
584
  j.Close,
586
585
  {
587
586
  type: "button",
588
587
  className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-sm p-1 opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none",
589
588
  children: [
590
- /* @__PURE__ */ m.jsx(bt, { className: "h-4 w-4" }),
591
- /* @__PURE__ */ m.jsx("span", { className: "sr-only", children: "Close" })
589
+ /* @__PURE__ */ p.jsx(pt, { className: "h-4 w-4" }),
590
+ /* @__PURE__ */ p.jsx("span", { className: "sr-only", children: "Close" })
592
591
  ]
593
592
  }
594
593
  )
@@ -600,7 +599,7 @@ Ue.displayName = j.Content.displayName;
600
599
  const Ye = ({
601
600
  className: e,
602
601
  ...t
603
- }) => /* @__PURE__ */ m.jsx(
602
+ }) => /* @__PURE__ */ p.jsx(
604
603
  "div",
605
604
  {
606
605
  className: R(
@@ -614,7 +613,7 @@ Ye.displayName = "DialogHeader";
614
613
  const Bt = ({
615
614
  className: e,
616
615
  ...t
617
- }) => /* @__PURE__ */ m.jsx(
616
+ }) => /* @__PURE__ */ p.jsx(
618
617
  "div",
619
618
  {
620
619
  className: R(
@@ -625,7 +624,7 @@ const Bt = ({
625
624
  }
626
625
  );
627
626
  Bt.displayName = "DialogFooter";
628
- const ze = D.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m.jsx(
627
+ const ze = D.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
629
628
  j.Title,
630
629
  {
631
630
  ref: n,
@@ -637,7 +636,7 @@ const ze = D.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m.jsx(
637
636
  }
638
637
  ));
639
638
  ze.displayName = j.Title.displayName;
640
- const He = D.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m.jsx(
639
+ const He = D.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
641
640
  j.Description,
642
641
  {
643
642
  ref: n,
@@ -646,7 +645,7 @@ const He = D.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m.jsx(
646
645
  }
647
646
  ));
648
647
  He.displayName = j.Description.displayName;
649
- const _r = ({
648
+ const kr = ({
650
649
  isOpen: e,
651
650
  onClose: t,
652
651
  children: n,
@@ -654,14 +653,14 @@ const _r = ({
654
653
  description: o = "",
655
654
  contentClassName: s,
656
655
  modal: c = !0
657
- }) => /* @__PURE__ */ m.jsx(Ft, { open: e, onOpenChange: t, modal: c, children: /* @__PURE__ */ m.jsxs(Ue, { className: s, children: [
658
- r && /* @__PURE__ */ m.jsxs(Ye, { className: "flex-1 font-medium", children: [
659
- /* @__PURE__ */ m.jsx(ze, { children: r }),
660
- /* @__PURE__ */ m.jsx(He, { children: o })
656
+ }) => /* @__PURE__ */ p.jsx($t, { open: e, onOpenChange: t, modal: c, children: /* @__PURE__ */ p.jsxs(Ue, { className: s, children: [
657
+ r && /* @__PURE__ */ p.jsxs(Ye, { className: "flex-1 font-medium", children: [
658
+ /* @__PURE__ */ p.jsx(ze, { children: r }),
659
+ /* @__PURE__ */ p.jsx(He, { children: o })
661
660
  ] }),
662
- /* @__PURE__ */ m.jsx("div", { className: "w-full", children: n })
663
- ] }) }), Or = ({ ...e }) => /* @__PURE__ */ m.jsx(
664
- vt,
661
+ /* @__PURE__ */ p.jsx("div", { className: "w-full", children: n })
662
+ ] }) }), _r = ({ ...e }) => /* @__PURE__ */ p.jsx(
663
+ bt,
665
664
  {
666
665
  closeButton: !0,
667
666
  richColors: !0,
@@ -676,22 +675,22 @@ const _r = ({
676
675
  },
677
676
  ...e
678
677
  }
679
- ), Ut = (e, t = "Error", n = {}) => {
680
- n != null && n.id && Q.dismiss(n == null ? void 0 : n.id), Q.error(t, {
678
+ ), Ft = (e, t = "Error", n = {}) => {
679
+ me.error(t, {
681
680
  description: e,
682
681
  duration: 4e3,
683
682
  position: "bottom-right",
684
683
  ...n
685
684
  });
686
- }, jr = (e, t = "Success", n = {}) => {
687
- n != null && n.id && Q.dismiss(n == null ? void 0 : n.id), Q.success(t, {
685
+ }, Sr = (e, t = "Success", n = {}) => {
686
+ n != null && n.id && me.dismiss(n == null ? void 0 : n.id), me.success(t, {
688
687
  description: e,
689
688
  duration: 4e3,
690
689
  position: "bottom-right",
691
690
  ...n
692
691
  });
693
- }, Yt = ({ className: e }) => /* @__PURE__ */ m.jsx(We, { className: R("h-8 w-8 animate-spin font-light", e) }), Nr = B.Root, zt = D.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m.jsx(
694
- B.List,
692
+ }, Ut = ({ className: e }) => /* @__PURE__ */ p.jsx(Be, { className: R("h-8 w-8 animate-spin font-light", e) }), Or = F.Root, Yt = D.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
693
+ F.List,
695
694
  {
696
695
  ref: n,
697
696
  className: R(
@@ -701,9 +700,9 @@ const _r = ({
701
700
  ...t
702
701
  }
703
702
  ));
704
- zt.displayName = B.List.displayName;
705
- const Ht = D.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m.jsx(
706
- B.Trigger,
703
+ Yt.displayName = F.List.displayName;
704
+ const zt = D.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
705
+ F.Trigger,
707
706
  {
708
707
  ref: n,
709
708
  className: R(
@@ -714,9 +713,9 @@ const Ht = D.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m.jsx(
714
713
  ...t
715
714
  }
716
715
  ));
717
- Ht.displayName = B.Trigger.displayName;
718
- const Gt = D.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m.jsx(
719
- B.Content,
716
+ zt.displayName = F.Trigger.displayName;
717
+ const Ht = D.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p.jsx(
718
+ F.Content,
720
719
  {
721
720
  ref: n,
722
721
  className: R(
@@ -726,8 +725,8 @@ const Gt = D.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m.jsx(
726
725
  ...t
727
726
  }
728
727
  ));
729
- Gt.displayName = B.Content.displayName;
730
- const Cr = Y.Provider, Vt = Y.Root, Jt = Y.Trigger, Xt = Y.Portal, Ge = D.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ m.jsx(
728
+ Ht.displayName = F.Content.displayName;
729
+ const jr = Y.Provider, Vt = Y.Root, Gt = Y.Trigger, Jt = Y.Portal, Ve = D.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ p.jsx(
731
730
  Y.Content,
732
731
  {
733
732
  ref: r,
@@ -739,54 +738,74 @@ const Cr = Y.Provider, Vt = Y.Root, Jt = Y.Trigger, Xt = Y.Portal, Ge = D.forwar
739
738
  ...n
740
739
  }
741
740
  ));
742
- Ge.displayName = Y.Content.displayName;
743
- const Rr = ({
741
+ Ve.displayName = Y.Content.displayName;
742
+ const Nr = ({
744
743
  children: e,
745
744
  label: t,
746
745
  labelClassName: n,
747
- contentClassName: r,
748
- asChild: o = !0,
749
- contentProps: s = {},
750
- side: c
751
- }) => /* @__PURE__ */ m.jsxs(Vt, { children: [
752
- t && /* @__PURE__ */ m.jsx(Xt, { children: /* @__PURE__ */ m.jsx(
753
- Ge,
746
+ asChild: r = !0,
747
+ contentProps: o = {},
748
+ side: s
749
+ }) => /* @__PURE__ */ p.jsxs(Vt, { children: [
750
+ t && /* @__PURE__ */ p.jsx(Jt, { children: /* @__PURE__ */ p.jsx(
751
+ Ve,
754
752
  {
755
- side: c,
753
+ side: s,
756
754
  className: n,
757
- ...s,
758
- children: /* @__PURE__ */ m.jsx("p", { className: r, children: t })
755
+ ...o,
756
+ children: t
759
757
  }
760
758
  ) }),
761
- /* @__PURE__ */ m.jsx(Jt, { asChild: o, children: e })
762
- ] }), Lr = (e, t = 2) => {
759
+ /* @__PURE__ */ p.jsx(Gt, { asChild: r, children: e })
760
+ ] }), Cr = (e, t = 2) => {
763
761
  if (e === 0) return "0 B";
764
762
  const n = 1024, r = t < 0 ? 0 : t, o = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], s = Math.floor(Math.log(e) / Math.log(n));
765
763
  return `${Number.parseFloat((e / n ** s).toFixed(r))} ${o[s]}`;
766
- }, Pr = (e) => {
764
+ }, Rr = (e) => {
767
765
  const t = Me(e);
768
- return Ut((t == null ? void 0 : t.message) || "", (t == null ? void 0 : t.title) || "Error", {
766
+ return Ft((t == null ? void 0 : t.message) || "", (t == null ? void 0 : t.title) || "Error", {
769
767
  id: `${(t == null ? void 0 : t.title) || ""}-${(t == null ? void 0 : t.message) || ""}`
770
768
  }), t;
771
- }, qt = (e) => e instanceof Date, Kt = (e) => e == null, Zt = (e) => typeof e == "object", Qt = (e) => !Kt(e) && !Array.isArray(e) && Zt(e) && !qt(e), Ar = (e) => Qt(e) && !Object.keys(e).length, Ve = ut(null), Ir = ({ children: e, client: t }) => /* @__PURE__ */ m.jsx(Ve.Provider, { value: t, children: e }), L = () => {
772
- const e = Pe(Ve);
769
+ }, Xt = (e) => e instanceof Date, qt = (e) => e == null, Kt = (e) => typeof e == "object", Zt = (e) => !qt(e) && !Array.isArray(e) && Kt(e) && !Xt(e), Lr = (e) => Zt(e) && !Object.keys(e).length, Ge = ut(null), Pr = ({ children: e, client: t }) => /* @__PURE__ */ p.jsx(Ge.Provider, { value: t, children: e }), L = () => {
770
+ const e = Pe(Ge);
773
771
  if (!e)
774
772
  throw new Error(
775
773
  "useLevo must be used within a LevoProvider. Please ensure you have wrapped your component tree with LevoProvider."
776
774
  );
777
775
  return e;
778
- }, Dr = ({ id: e, properties: t = {} }) => {
779
- const { audience: n } = L(), { ref: r, inView: o } = dt({
780
- triggerOnce: !0
781
- });
776
+ }, Ir = ({ id: e, properties: t = {} }) => {
777
+ const { audience: n } = L(), [r, o] = x(!1);
782
778
  return b(() => {
783
- n != null && n.instance && o && (n == null || n.track("block.view", {
784
- ...t,
785
- resource: "block",
786
- identifier: e
787
- }));
788
- }, [o]), /* @__PURE__ */ m.jsx("div", { ref: r, style: { height: "0px" } });
789
- }, Mr = ({ event: e, properties: t }) => {
779
+ if (r || typeof (n == null ? void 0 : n.track) != "function") return;
780
+ const s = document.getElementById(e);
781
+ if (!s) return;
782
+ const c = () => {
783
+ r || (n == null || n.track("block.view", {
784
+ ...t,
785
+ resource: "block",
786
+ identifier: e
787
+ }), o(!0));
788
+ };
789
+ if (((l) => {
790
+ const f = l.getBoundingClientRect();
791
+ return f.top >= 0 && f.left >= 0 && f.bottom <= (window.innerHeight || document.documentElement.clientHeight) && f.right <= (window.innerWidth || document.documentElement.clientWidth);
792
+ })(s)) {
793
+ c();
794
+ return;
795
+ }
796
+ const u = new IntersectionObserver(
797
+ (l) => {
798
+ l.forEach((f) => {
799
+ f.isIntersecting && (c(), u.disconnect());
800
+ });
801
+ },
802
+ { threshold: 0 }
803
+ );
804
+ return u.observe(s), () => {
805
+ u.disconnect();
806
+ };
807
+ }, [n, e, t, r]), null;
808
+ }, Ar = ({ event: e, properties: t }) => {
790
809
  const { audience: n } = L();
791
810
  return b(() => {
792
811
  n != null && n.instance && (n == null || n.track(e, t));
@@ -796,49 +815,49 @@ function ge(e) {
796
815
  var t = typeof e;
797
816
  return e != null && (t == "object" || t == "function");
798
817
  }
799
- var en = typeof global == "object" && global && global.Object === Object && global, tn = typeof self == "object" && self && self.Object === Object && self, Je = en || tn || Function("return this")(), de = function() {
818
+ var Qt = typeof global == "object" && global && global.Object === Object && global, en = typeof self == "object" && self && self.Object === Object && self, Je = Qt || en || Function("return this")(), le = function() {
800
819
  return Je.Date.now();
801
- }, nn = /\s/;
802
- function rn(e) {
803
- for (var t = e.length; t-- && nn.test(e.charAt(t)); )
820
+ }, tn = /\s/;
821
+ function nn(e) {
822
+ for (var t = e.length; t-- && tn.test(e.charAt(t)); )
804
823
  ;
805
824
  return t;
806
825
  }
807
- var on = /^\s+/;
808
- function sn(e) {
809
- return e && e.slice(0, rn(e) + 1).replace(on, "");
826
+ var rn = /^\s+/;
827
+ function on(e) {
828
+ return e && e.slice(0, nn(e) + 1).replace(rn, "");
810
829
  }
811
- var ne = Je.Symbol, Xe = Object.prototype, an = Xe.hasOwnProperty, cn = Xe.toString, G = ne ? ne.toStringTag : void 0;
812
- function un(e) {
813
- var t = an.call(e, G), n = e[G];
830
+ var te = Je.Symbol, Xe = Object.prototype, sn = Xe.hasOwnProperty, an = Xe.toString, V = te ? te.toStringTag : void 0;
831
+ function cn(e) {
832
+ var t = sn.call(e, V), n = e[V];
814
833
  try {
815
- e[G] = void 0;
834
+ e[V] = void 0;
816
835
  var r = !0;
817
836
  } catch {
818
837
  }
819
- var o = cn.call(e);
820
- return r && (t ? e[G] = n : delete e[G]), o;
838
+ var o = an.call(e);
839
+ return r && (t ? e[V] = n : delete e[V]), o;
821
840
  }
822
- var ln = Object.prototype, dn = ln.toString;
823
- function fn(e) {
824
- return dn.call(e);
841
+ var un = Object.prototype, ln = un.toString;
842
+ function dn(e) {
843
+ return ln.call(e);
825
844
  }
826
- var mn = "[object Null]", gn = "[object Undefined]", je = ne ? ne.toStringTag : void 0;
827
- function pn(e) {
828
- return e == null ? e === void 0 ? gn : mn : je && je in Object(e) ? un(e) : fn(e);
845
+ var fn = "[object Null]", mn = "[object Undefined]", je = te ? te.toStringTag : void 0;
846
+ function gn(e) {
847
+ return e == null ? e === void 0 ? mn : fn : je && je in Object(e) ? cn(e) : dn(e);
829
848
  }
830
- function bn(e) {
849
+ function pn(e) {
831
850
  return e != null && typeof e == "object";
832
851
  }
833
- var vn = "[object Symbol]";
834
- function hn(e) {
835
- return typeof e == "symbol" || bn(e) && pn(e) == vn;
852
+ var bn = "[object Symbol]";
853
+ function vn(e) {
854
+ return typeof e == "symbol" || pn(e) && gn(e) == bn;
836
855
  }
837
- var Ne = NaN, wn = /^[-+]0x[0-9a-f]+$/i, yn = /^0b[01]+$/i, xn = /^0o[0-7]+$/i, Tn = parseInt;
856
+ var Ne = NaN, hn = /^[-+]0x[0-9a-f]+$/i, wn = /^0b[01]+$/i, yn = /^0o[0-7]+$/i, xn = parseInt;
838
857
  function Ce(e) {
839
858
  if (typeof e == "number")
840
859
  return e;
841
- if (hn(e))
860
+ if (vn(e))
842
861
  return Ne;
843
862
  if (ge(e)) {
844
863
  var t = typeof e.valueOf == "function" ? e.valueOf() : e;
@@ -846,70 +865,70 @@ function Ce(e) {
846
865
  }
847
866
  if (typeof e != "string")
848
867
  return e === 0 ? e : +e;
849
- e = sn(e);
850
- var n = yn.test(e);
851
- return n || xn.test(e) ? Tn(e.slice(2), n ? 2 : 8) : wn.test(e) ? Ne : +e;
868
+ e = on(e);
869
+ var n = wn.test(e);
870
+ return n || yn.test(e) ? xn(e.slice(2), n ? 2 : 8) : hn.test(e) ? Ne : +e;
852
871
  }
853
- var En = "Expected a function", kn = Math.max, Sn = Math.min;
872
+ var Tn = "Expected a function", En = Math.max, kn = Math.min;
854
873
  function _n(e, t, n) {
855
- var r, o, s, c, i, u, l = 0, p = !1, d = !1, f = !0;
874
+ var r, o, s, c, a, u, l = 0, f = !1, d = !1, m = !0;
856
875
  if (typeof e != "function")
857
- throw new TypeError(En);
858
- t = Ce(t) || 0, ge(n) && (p = !!n.leading, d = "maxWait" in n, s = d ? kn(Ce(n.maxWait) || 0, t) : s, f = "trailing" in n ? !!n.trailing : f);
876
+ throw new TypeError(Tn);
877
+ t = Ce(t) || 0, ge(n) && (f = !!n.leading, d = "maxWait" in n, s = d ? En(Ce(n.maxWait) || 0, t) : s, m = "trailing" in n ? !!n.trailing : m);
859
878
  function v(w) {
860
879
  var P = r, $ = o;
861
880
  return r = o = void 0, l = w, c = e.apply($, P), c;
862
881
  }
863
- function S(w) {
864
- return l = w, i = setTimeout(C, t), p ? v(w) : c;
865
- }
866
882
  function _(w) {
867
- var P = w - u, $ = w - l, V = t - P;
868
- return d ? Sn(V, s - $) : V;
883
+ return l = w, a = setTimeout(C, t), f ? v(w) : c;
884
+ }
885
+ function S(w) {
886
+ var P = w - u, $ = w - l, G = t - P;
887
+ return d ? kn(G, s - $) : G;
869
888
  }
870
889
  function N(w) {
871
890
  var P = w - u, $ = w - l;
872
891
  return u === void 0 || P >= t || P < 0 || d && $ >= s;
873
892
  }
874
893
  function C() {
875
- var w = de();
894
+ var w = le();
876
895
  if (N(w))
877
896
  return T(w);
878
- i = setTimeout(C, _(w));
897
+ a = setTimeout(C, S(w));
879
898
  }
880
899
  function T(w) {
881
- return i = void 0, f && r ? v(w) : (r = o = void 0, c);
900
+ return a = void 0, m && r ? v(w) : (r = o = void 0, c);
882
901
  }
883
902
  function y() {
884
- i !== void 0 && clearTimeout(i), l = 0, r = u = o = i = void 0;
903
+ a !== void 0 && clearTimeout(a), l = 0, r = u = o = a = void 0;
885
904
  }
886
905
  function O() {
887
- return i === void 0 ? c : T(de());
906
+ return a === void 0 ? c : T(le());
888
907
  }
889
908
  function M() {
890
- var w = de(), P = N(w);
909
+ var w = le(), P = N(w);
891
910
  if (r = arguments, o = this, u = w, P) {
892
- if (i === void 0)
893
- return S(u);
911
+ if (a === void 0)
912
+ return _(u);
894
913
  if (d)
895
- return clearTimeout(i), i = setTimeout(C, t), v(u);
914
+ return clearTimeout(a), a = setTimeout(C, t), v(u);
896
915
  }
897
- return i === void 0 && (i = setTimeout(C, t)), c;
916
+ return a === void 0 && (a = setTimeout(C, t)), c;
898
917
  }
899
918
  return M.cancel = y, M.flush = O, M;
900
919
  }
901
- const On = () => {
902
- const [e, t] = x(0), [n, r] = x(0), [o, s] = x(0), [c, i] = x(Date.now()), [u, l] = x("read"), p = _n(() => {
903
- const d = window.scrollY, f = document.documentElement.scrollHeight, v = window.innerHeight, S = Math.round(
904
- d / (f - v) * 100
905
- ), _ = Math.floor(S / 5) * 5;
906
- if (_ <= n)
920
+ const Sn = () => {
921
+ const [e, t] = x(0), [n, r] = x(0), [o, s] = x(0), [c, a] = x(Date.now()), [u, l] = x("read"), f = _n(() => {
922
+ const d = window.scrollY, m = document.documentElement.scrollHeight, v = window.innerHeight, _ = Math.round(
923
+ d / (m - v) * 100
924
+ ), S = Math.floor(_ / 5) * 5;
925
+ if (S <= n)
907
926
  return;
908
927
  const N = Date.now(), C = (N - c) / 1e3, y = Math.abs(d - o) / C;
909
- l(y > 300 ? "scan" : "read"), s(d), i(N), r(_), t(_);
928
+ l(y > 300 ? "scan" : "read"), s(d), a(N), r(S), t(S);
910
929
  }, 250);
911
- return b(() => (window.addEventListener("scroll", p), () => window.removeEventListener("scroll", p)), []), { depth: e, speedCategory: u };
912
- }, jn = () => {
930
+ return b(() => (window.addEventListener("scroll", f), () => window.removeEventListener("scroll", f)), []), { depth: e, speedCategory: u };
931
+ }, On = () => {
913
932
  const e = L(), [t, n] = x(0);
914
933
  return b(() => {
915
934
  const r = Number(localStorage.getItem(e.audience.storage_keys.open_tabs)) || 0;
@@ -932,7 +951,7 @@ const On = () => {
932
951
  window.removeEventListener("storage", o), window.removeEventListener("beforeunload", s);
933
952
  };
934
953
  }, []), t;
935
- }, Nn = () => {
954
+ }, jn = () => {
936
955
  const e = L(), [t, n] = x(null);
937
956
  return b(() => {
938
957
  let r = sessionStorage.getItem(
@@ -950,7 +969,7 @@ const On = () => {
950
969
  )), n(r);
951
970
  const s = () => {
952
971
  const c = o.filter(
953
- (i) => i !== r
972
+ (a) => a !== r
954
973
  );
955
974
  localStorage.setItem(
956
975
  e.audience.storage_keys.all_tabs,
@@ -961,15 +980,15 @@ const On = () => {
961
980
  window.removeEventListener("beforeunload", s);
962
981
  };
963
982
  }, []), t;
964
- }, re = (e) => Object.prototype.toString.call(e) == "[object String]", Cn = (e, t) => e.indexOf(t) !== -1, oe = (e) => e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""), qe = (e) => e === void 0, Rn = (e) => e === null, Ke = (e) => qe(e) || Rn(e), Ze = (e) => !!e && (e == null ? void 0 : e.nodeType) === 3;
965
- function Ln(e) {
983
+ }, ne = (e) => Object.prototype.toString.call(e) == "[object String]", Nn = (e, t) => e.indexOf(t) !== -1, re = (e) => e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""), qe = (e) => e === void 0, Cn = (e) => e === null, Ke = (e) => qe(e) || Cn(e), Ze = (e) => !!e && (e == null ? void 0 : e.nodeType) === 3;
984
+ function Rn(e) {
966
985
  return !!e && (e == null ? void 0 : e.nodeType) === 1;
967
986
  }
968
- function Pn(e, t) {
987
+ function Ln(e, t) {
969
988
  return !!e && !!(e != null && e.tagName) && (e == null ? void 0 : e.tagName.toLowerCase()) === t.toLowerCase();
970
989
  }
971
- function An(e) {
972
- return e ? oe(e).split(/\s+/) : [];
990
+ function Pn(e) {
991
+ return e ? re(e).split(/\s+/) : [];
973
992
  }
974
993
  function In(e) {
975
994
  let t = "";
@@ -984,20 +1003,20 @@ function In(e) {
984
1003
  default:
985
1004
  t = "";
986
1005
  }
987
- return An(t);
1006
+ return Pn(t);
988
1007
  }
989
- const W = (e, t = 255) => Ke(e) ? "" : oe(e).split(/(\s+)/).filter((n) => be(n)).join("").replace(/[\r\n]/g, " ").replace(/[ ]+/g, " ").substring(0, t), pe = (e) => {
1008
+ const B = (e, t = 255) => Ke(e) ? "" : re(e).split(/(\s+)/).filter((n) => be(n)).join("").replace(/[\r\n]/g, " ").replace(/[ ]+/g, " ").substring(0, t), pe = (e) => {
990
1009
  let t = "";
991
- if ($n(e) && // !isSensitiveElement(el) &&
1010
+ if (Mn(e) && // !isSensitiveElement(el) &&
992
1011
  (e != null && e.childNodes) && (e != null && e.childNodes.length))
993
1012
  for (const n of e == null ? void 0 : e.childNodes)
994
- Ze(n) && n.textContent && (t += W(n.textContent) ?? "");
995
- return oe(t);
996
- }, Dn = (e) => {
1013
+ Ze(n) && n.textContent && (t += B(n.textContent) ?? "");
1014
+ return re(t);
1015
+ }, An = (e) => {
997
1016
  var t, n;
998
1017
  return qe(e.target) ? (e == null ? void 0 : e.srcElement) || null : (t = e == null ? void 0 : e.target) != null && t.shadowRoot ? ((n = e == null ? void 0 : e.composedPath()) == null ? void 0 : n[0]) || null : (e == null ? void 0 : e.target) || null;
999
- }, Mn = (e, t) => {
1000
- if (!window || !e || Pn(e, "html") || !Ln(e))
1018
+ }, Dn = (e, t) => {
1019
+ if (!window || !e || Ln(e, "html") || !Rn(e))
1001
1020
  return !1;
1002
1021
  const n = window.getComputedStyle(e);
1003
1022
  if (n && n.getPropertyValue("cursor") === "pointer" && t.type === "click")
@@ -1015,11 +1034,11 @@ const W = (e, t = 255) => Ke(e) ? "" : oe(e).split(/(\s+)/).filter((n) => be(n))
1015
1034
  return t.type === "click";
1016
1035
  }
1017
1036
  };
1018
- function $n(e) {
1019
- if (Cn(In(e), "ph-include"))
1037
+ function Mn(e) {
1038
+ if (Nn(In(e), "ph-include"))
1020
1039
  return !0;
1021
1040
  const t = e.type || "";
1022
- if (re(t))
1041
+ if (ne(t))
1023
1042
  switch (t.toLowerCase()) {
1024
1043
  case "hidden":
1025
1044
  return !1;
@@ -1027,9 +1046,9 @@ function $n(e) {
1027
1046
  return !1;
1028
1047
  }
1029
1048
  const n = e.name || (e == null ? void 0 : e.id) || "";
1030
- return !(re(n) && /^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(n.replace(/[^a-zA-Z0-9]/g, "")));
1049
+ return !(ne(n) && /^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(n.replace(/[^a-zA-Z0-9]/g, "")));
1031
1050
  }
1032
- const Qe = "(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})", Fn = new RegExp(`^(?:${Qe})$`), Wn = new RegExp(Qe), et = "\\d{3}-?\\d{2}-?\\d{4}", Bn = new RegExp(`^(${et})$`), Un = new RegExp(`(${et})`), be = (e, t = !0) => !(Ke(e) || re(e) && (e = oe(e), (t ? Fn : Wn).test((e || "").replace(/[- ]/g, "")) || (t ? Bn : Un).test(e))), Yn = (e) => re(e) ? e.substring(0, 10) === "_ngcontent" || e.substring(0, 7) === "_nghost" : !1, zn = (e) => {
1051
+ const Qe = "(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})", $n = new RegExp(`^(?:${Qe})$`), Wn = new RegExp(Qe), et = "\\d{3}-?\\d{2}-?\\d{4}", Bn = new RegExp(`^(${et})$`), Fn = new RegExp(`(${et})`), be = (e, t = !0) => !(Ke(e) || ne(e) && (e = re(e), (t ? $n : Wn).test((e || "").replace(/[- ]/g, "")) || (t ? Bn : Fn).test(e))), Un = (e) => ne(e) ? e.substring(0, 10) === "_ngcontent" || e.substring(0, 7) === "_nghost" : !1, Yn = (e) => {
1033
1052
  let t = pe(e);
1034
1053
  return t = `${t} ${tt(e)}`.trim(), be(t) ? t : "";
1035
1054
  };
@@ -1047,65 +1066,65 @@ function tt(e) {
1047
1066
  }
1048
1067
  return t;
1049
1068
  }
1050
- const Hn = ["input", "textarea", "select"], nt = (e) => {
1051
- var o, s, c, i;
1069
+ const zn = ["input", "textarea", "select"], nt = (e) => {
1070
+ var o, s, c, a;
1052
1071
  const t = (o = e == null ? void 0 : e.tagName) == null ? void 0 : o.toLowerCase(), n = {
1053
1072
  element: t
1054
1073
  };
1055
- (t == null ? void 0 : t.toLowerCase()) === "a" || (t == null ? void 0 : t.toLowerCase()) === "button" ? n.text = zn(e) : n.text = pe(e);
1074
+ (t == null ? void 0 : t.toLowerCase()) === "a" || (t == null ? void 0 : t.toLowerCase()) === "button" ? n.text = Yn(e) : n.text = pe(e);
1056
1075
  const r = Array.from(e.attributes).reduce(
1057
1076
  (u, l) => {
1058
- if (be(l.value) && !Yn(l.name)) {
1077
+ if (be(l.value) && !Un(l.name)) {
1059
1078
  if (l.name === "class")
1060
1079
  return u;
1061
- u[l.name] = typeof (l == null ? void 0 : l.value) == "string" ? W(l.value) : l.value;
1080
+ u[l.name] = typeof (l == null ? void 0 : l.value) == "string" ? B(l.value) : l.value;
1062
1081
  }
1063
1082
  return u;
1064
1083
  },
1065
1084
  {}
1066
1085
  );
1067
- if (n.attributes = r, Hn.includes(t) || (e == null ? void 0 : e.getAttribute("contenteditable")) === "true") {
1086
+ if (n.attributes = r, zn.includes(t) || (e == null ? void 0 : e.getAttribute("contenteditable")) === "true") {
1068
1087
  let u;
1069
- e.matches('input[type="checkbox"], input[type="radio"]') ? u = e.checked : e.matches("input, select, textarea") && !e.matches('input[type="password"]') && (u = e.value), u !== void 0 && (n.value = typeof u == "string" || u === null ? W(u, 1024) : u);
1088
+ e.matches('input[type="checkbox"], input[type="radio"]') ? u = e.checked : e.matches("input, select, textarea") && !e.matches('input[type="password"]') && (u = e.value), u !== void 0 && (n.value = typeof u == "string" || u === null ? B(u, 1024) : u);
1070
1089
  let l = "";
1071
- n != null && n.attributes.id && (l = W(
1090
+ n != null && n.attributes.id && (l = B(
1072
1091
  ((c = (s = document.querySelector(`label[for="${n == null ? void 0 : n.attributes.id}"]`)) == null ? void 0 : s.textContent) == null ? void 0 : c.trim()) || ""
1073
1092
  ));
1074
- const p = e.closest("label");
1075
- l || (l = W(((i = p == null ? void 0 : p.textContent) == null ? void 0 : i.trim()) || "")), l && (n.label = l);
1093
+ const f = e.closest("label");
1094
+ l || (l = B(((a = f == null ? void 0 : f.textContent) == null ? void 0 : a.trim()) || "")), l && (n.label = l);
1076
1095
  }
1077
1096
  return n;
1078
- }, Gn = (e, t) => {
1097
+ }, Hn = (e, t) => {
1079
1098
  var o;
1080
- let n = Dn(e);
1099
+ let n = An(e);
1081
1100
  Ze(n) && (n = n.parentNode || null);
1082
1101
  const r = ["copy", "cut"].includes(t);
1083
- if (n && (r || Mn(n, e))) {
1102
+ if (n && (r || Dn(n, e))) {
1084
1103
  const s = nt(n);
1085
1104
  if (r) {
1086
- const c = W((o = window == null ? void 0 : window.getSelection()) == null ? void 0 : o.toString()), i = (e == null ? void 0 : e.type) || "clipboard";
1087
- s.copy_text = c ?? "", s.copy_type = i;
1105
+ const c = B((o = window == null ? void 0 : window.getSelection()) == null ? void 0 : o.toString()), a = (e == null ? void 0 : e.type) || "clipboard";
1106
+ s.copy_text = c ?? "", s.copy_type = a;
1088
1107
  }
1089
1108
  return s;
1090
1109
  }
1091
1110
  return null;
1092
- }, Vn = 30, Jn = 1e3, Xn = 3;
1093
- class qn {
1111
+ }, Vn = 30, Gn = 1e3, Jn = 3;
1112
+ class Xn {
1094
1113
  constructor() {
1095
1114
  J(this, "clicks");
1096
1115
  this.clicks = [];
1097
1116
  }
1098
1117
  isRageClick(t, n, r) {
1099
1118
  const o = this.clicks[this.clicks.length - 1];
1100
- if (o && Math.abs(t - o.x) + Math.abs(n - o.y) < Vn && r - o.timestamp < Jn) {
1101
- if (this.clicks.push({ x: t, y: n, timestamp: r }), this.clicks.length === Xn)
1119
+ if (o && Math.abs(t - o.x) + Math.abs(n - o.y) < Vn && r - o.timestamp < Gn) {
1120
+ if (this.clicks.push({ x: t, y: n, timestamp: r }), this.clicks.length === Jn)
1102
1121
  return !0;
1103
1122
  } else
1104
1123
  this.clicks = [{ x: t, y: n, timestamp: r }];
1105
1124
  return !1;
1106
1125
  }
1107
1126
  }
1108
- const fe = new qn(), Kn = () => {
1127
+ const de = new Xn(), qn = () => {
1109
1128
  const { audience: e } = L();
1110
1129
  b(() => {
1111
1130
  let t = null;
@@ -1120,7 +1139,7 @@ const fe = new qn(), Kn = () => {
1120
1139
  }, r = (s) => {
1121
1140
  t && (clearTimeout(t), t = null), o(s, !0);
1122
1141
  }, o = (s, c = !1) => {
1123
- var i;
1142
+ var a;
1124
1143
  try {
1125
1144
  let u = {
1126
1145
  hostname: window.location.hostname,
@@ -1133,7 +1152,7 @@ const fe = new qn(), Kn = () => {
1133
1152
  };
1134
1153
  if (s.target instanceof HTMLElement) {
1135
1154
  const l = s.target;
1136
- u.rage_click = fe == null ? void 0 : fe.isRageClick(
1155
+ u.rage_click = de == null ? void 0 : de.isRageClick(
1137
1156
  s.clientX,
1138
1157
  s.clientY,
1139
1158
  (/* @__PURE__ */ new Date()).getTime()
@@ -1141,21 +1160,21 @@ const fe = new qn(), Kn = () => {
1141
1160
  ...u,
1142
1161
  ...nt(l)
1143
1162
  };
1144
- let p = l == null ? void 0 : l.getAttribute("href");
1145
- if (!p) {
1146
- let d = l.parentNode, f = 0;
1147
- for (; d && f < 8; ) {
1148
- const v = (i = d == null ? void 0 : d.parentElement) == null ? void 0 : i.getAttribute("href");
1163
+ let f = l == null ? void 0 : l.getAttribute("href");
1164
+ if (!f) {
1165
+ let d = l.parentNode, m = 0;
1166
+ for (; d && m < 8; ) {
1167
+ const v = (a = d == null ? void 0 : d.parentElement) == null ? void 0 : a.getAttribute("href");
1149
1168
  if (v) {
1150
- p = v;
1169
+ f = v;
1151
1170
  break;
1152
1171
  }
1153
- d = d.parentNode, f++;
1172
+ d = d.parentNode, m++;
1154
1173
  }
1155
1174
  }
1156
1175
  e == null || e.track("page.click", {
1157
1176
  ...u,
1158
- href: p || void 0
1177
+ href: f || void 0
1159
1178
  });
1160
1179
  }
1161
1180
  } catch {
@@ -1165,7 +1184,7 @@ const fe = new qn(), Kn = () => {
1165
1184
  document.removeEventListener("click", n), document.removeEventListener("dblclick", r);
1166
1185
  };
1167
1186
  }, [e]);
1168
- }, Z = (e) => Number(e.toFixed(0)), Zn = (e) => {
1187
+ }, Z = (e) => Number(e.toFixed(0)), Kn = (e) => {
1169
1188
  const { audience: t } = L(), [n] = x({
1170
1189
  value: Z(performance.now()),
1171
1190
  timestamp: Z(Date.now())
@@ -1177,17 +1196,17 @@ const fe = new qn(), Kn = () => {
1177
1196
  timestamp: null
1178
1197
  });
1179
1198
  return b(() => {
1180
- let i = !0;
1181
- const u = (d, f) => {
1182
- i && d({ value: Z(f), timestamp: Z(Date.now()) });
1199
+ let a = !0;
1200
+ const u = (d, m) => {
1201
+ a && d({ value: Z(m), timestamp: Z(Date.now()) });
1183
1202
  }, l = new PerformanceObserver((d) => {
1184
- for (const f of d.getEntries())
1185
- f.name === "first-contentful-paint" && u(o, f.startTime);
1203
+ for (const m of d.getEntries())
1204
+ m.name === "first-contentful-paint" && u(o, m.startTime);
1186
1205
  });
1187
1206
  l.observe({ type: "paint", buffered: !0 });
1188
- const p = () => u(c, performance.now());
1189
- return document.readyState === "complete" ? u(c, performance.now()) : window.addEventListener("load", p), () => {
1190
- i = !1, l.disconnect(), window.removeEventListener("load", p);
1207
+ const f = () => u(c, performance.now());
1208
+ return document.readyState === "complete" ? u(c, performance.now()) : window.addEventListener("load", f), () => {
1209
+ a = !1, l.disconnect(), window.removeEventListener("load", f);
1191
1210
  };
1192
1211
  }, []), b(() => {
1193
1212
  n && t && (t == null || t.track("page.metrics", {
@@ -1208,7 +1227,7 @@ const fe = new qn(), Kn = () => {
1208
1227
  version: 2
1209
1228
  }));
1210
1229
  }, [s, t]), { script: n, fcp: r, window_onload: s };
1211
- }, Qn = () => {
1230
+ }, Zn = () => {
1212
1231
  const { audience: e } = L();
1213
1232
  b(() => {
1214
1233
  let t;
@@ -1218,7 +1237,7 @@ const fe = new qn(), Kn = () => {
1218
1237
  if (r && (r == null ? void 0 : r.rangeCount) > 0) {
1219
1238
  const o = r == null ? void 0 : r.toString();
1220
1239
  o && (e == null || e.track("page.selection", {
1221
- text: W(o)
1240
+ text: B(o)
1222
1241
  }));
1223
1242
  }
1224
1243
  }, 1e3);
@@ -1227,32 +1246,32 @@ const fe = new qn(), Kn = () => {
1227
1246
  clearTimeout(t), document.removeEventListener("selectionchange", n);
1228
1247
  };
1229
1248
  }, []);
1230
- }, Re = "lv_insights_st", er = 15 * 60 * 1e3, tr = (e = "https://cachefly.cachefly.net/1mb.test") => {
1249
+ }, Re = "lv_insights_st", Qn = 15 * 60 * 1e3, er = (e = "https://cachefly.cachefly.net/1mb.test") => {
1231
1250
  const [t, n] = x(null);
1232
1251
  return b(() => {
1233
1252
  const r = localStorage.getItem(Re);
1234
1253
  if (r) {
1235
- const { speed: i, timestamp: u } = JSON.parse(r);
1236
- if (Date.now() - u < er) {
1237
- n(i);
1254
+ const { speed: a, timestamp: u } = JSON.parse(r);
1255
+ if (Date.now() - u < Qn) {
1256
+ n(a);
1238
1257
  return;
1239
1258
  }
1240
1259
  }
1241
1260
  let o = null;
1242
1261
  const s = async () => {
1243
- const i = new ft("download_speed");
1244
- if (i.acquireLock())
1262
+ const a = new dt("download_speed");
1263
+ if (a.acquireLock())
1245
1264
  try {
1246
1265
  const l = performance.now();
1247
1266
  await fetch(e, { cache: "no-store" });
1248
- const d = (performance.now() - l) / 1e3, f = Math.round(8 / d);
1249
- n(f), localStorage.setItem(
1267
+ const d = (performance.now() - l) / 1e3, m = Math.round(8 / d);
1268
+ n(m), localStorage.setItem(
1250
1269
  Re,
1251
- JSON.stringify({ speed: f, timestamp: Date.now() })
1270
+ JSON.stringify({ speed: m, timestamp: Date.now() })
1252
1271
  );
1253
1272
  } catch {
1254
1273
  } finally {
1255
- i.releaseLock();
1274
+ a.releaseLock();
1256
1275
  }
1257
1276
  }, c = () => {
1258
1277
  document.removeEventListener("mousemove", c), document.removeEventListener("keydown", c), document.removeEventListener("scroll", c), o = setTimeout(s, 5e3);
@@ -1261,7 +1280,7 @@ const fe = new qn(), Kn = () => {
1261
1280
  o && clearTimeout(o), document.removeEventListener("mousemove", c), document.removeEventListener("keydown", c), document.removeEventListener("scroll", c);
1262
1281
  };
1263
1282
  }, [e]), t;
1264
- }, nr = ({
1283
+ }, tr = ({
1265
1284
  id: e,
1266
1285
  properties: t = {},
1267
1286
  href: n
@@ -1281,11 +1300,11 @@ const fe = new qn(), Kn = () => {
1281
1300
  })();
1282
1301
  }, [r == null ? void 0 : r.insightsUrl, r == null ? void 0 : r.workspace, n]), b(() => {
1283
1302
  const o = (s) => {
1284
- var i;
1303
+ var a;
1285
1304
  const c = localStorage.getItem(
1286
1305
  r.audience.storage_keys.identify
1287
1306
  );
1288
- s.key === r.audience.storage_keys.identify && !(r != null && r.audience.is_identified) && !c && ((i = r == null ? void 0 : r.audience) == null || i.identify({
1307
+ s.key === r.audience.storage_keys.identify && !(r != null && r.audience.is_identified) && !c && ((a = r == null ? void 0 : r.audience) == null || a.identify({
1289
1308
  withLock: !1
1290
1309
  }));
1291
1310
  };
@@ -1293,11 +1312,11 @@ const fe = new qn(), Kn = () => {
1293
1312
  window.removeEventListener("storage", o);
1294
1313
  };
1295
1314
  }, []);
1296
- }, rr = ({ id: e }) => {
1315
+ }, nr = ({ id: e }) => {
1297
1316
  const t = L();
1298
1317
  b(() => {
1299
1318
  const r = () => {
1300
- var c, i;
1319
+ var c, a;
1301
1320
  const o = (c = performance.getEntriesByType(
1302
1321
  "navigation"
1303
1322
  )) == null ? void 0 : c[0];
@@ -1310,7 +1329,7 @@ const fe = new qn(), Kn = () => {
1310
1329
  (u == null ? void 0 : u.tagName) === "A" && u.href && (new URL(u.href).origin !== window.location.origin ? s = !0 : s = !1);
1311
1330
  } catch {
1312
1331
  }
1313
- (i = t == null ? void 0 : t.audience) == null || i.bounce({
1332
+ (a = t == null ? void 0 : t.audience) == null || a.bounce({
1314
1333
  resource: "page",
1315
1334
  identifier: e,
1316
1335
  is_navigating_away: s,
@@ -1321,35 +1340,35 @@ const fe = new qn(), Kn = () => {
1321
1340
  window.removeEventListener("beforeunload", r);
1322
1341
  };
1323
1342
  }, [t == null ? void 0 : t.audience, e]);
1324
- const [n] = mt();
1343
+ const [n] = ft();
1325
1344
  b(() => {
1326
1345
  var r;
1327
- (n === le.HIDDEN || n === le.UNKNOWN || n === le.FROZEN) && ((r = t == null ? void 0 : t.audience) == null || r.bounce({
1346
+ (n === ue.HIDDEN || n === ue.UNKNOWN || n === ue.FROZEN) && ((r = t == null ? void 0 : t.audience) == null || r.bounce({
1328
1347
  resource: "page",
1329
1348
  identifier: e,
1330
1349
  state: n
1331
1350
  }));
1332
1351
  }, [n, t == null ? void 0 : t.audience, e]);
1333
- }, $r = ({ id: e, properties: t = {} }) => {
1352
+ }, Dr = ({ id: e, properties: t = {} }) => {
1334
1353
  var c;
1335
1354
  const n = typeof window < "u" ? window.location.href : "", r = L();
1336
1355
  b(() => {
1337
1356
  r && typeof window < "u" && (window.levo_client = r);
1338
1357
  }, [r]), b(() => {
1339
1358
  r != null && r.audience && typeof window < "u" && (window.levo_audience = r == null ? void 0 : r.audience);
1340
- }, []), jn(), Nn(), Kn();
1341
- const o = tr();
1359
+ }, []), On(), jn(), qn();
1360
+ const o = er();
1342
1361
  b(() => {
1343
- var i;
1344
- (i = r == null ? void 0 : r.audience) != null && i.instance && o && (r == null || r.audience.track("user.speedtest", {
1362
+ var a;
1363
+ (a = r == null ? void 0 : r.audience) != null && a.instance && o && (r == null || r.audience.track("user.speedtest", {
1345
1364
  speed: o,
1346
1365
  unit: "Mbps"
1347
1366
  }));
1348
1367
  }, [o]);
1349
- const s = On();
1368
+ const s = Sn();
1350
1369
  return b(() => {
1351
- var i;
1352
- (i = r == null ? void 0 : r.audience) != null && i.instance && (r == null || r.audience.track("page.scroll", {
1370
+ var a;
1371
+ (a = r == null ? void 0 : r.audience) != null && a.instance && (r == null || r.audience.track("page.scroll", {
1353
1372
  resource: "page",
1354
1373
  identifier: e,
1355
1374
  percent: s.depth,
@@ -1360,20 +1379,20 @@ const fe = new qn(), Kn = () => {
1360
1379
  s.depth,
1361
1380
  s.speedCategory,
1362
1381
  e
1363
- ]), Zn(), Qn(), nr({
1382
+ ]), Kn(), Zn(), tr({
1364
1383
  href: n,
1365
1384
  id: e,
1366
1385
  properties: t
1367
- }), rr({ id: e }), b(() => {
1368
- const i = {
1386
+ }), nr({ id: e }), b(() => {
1387
+ const a = {
1369
1388
  change: "form.change",
1370
1389
  submit: "form.submit",
1371
1390
  copy: "page.copy",
1372
1391
  cut: "page.copy"
1373
- }, u = (p) => (d) => {
1392
+ }, u = (f) => (d) => {
1374
1393
  var v;
1375
- const f = Gn(d, p);
1376
- f && i[p] && ((v = r == null ? void 0 : r.audience) == null || v.track(i[p], f));
1394
+ const m = Hn(d, f);
1395
+ m && a[f] && ((v = r == null ? void 0 : r.audience) == null || v.track(a[f], m));
1377
1396
  }, l = {
1378
1397
  change: u("change"),
1379
1398
  copy: u("copy"),
@@ -1386,7 +1405,7 @@ const fe = new qn(), Kn = () => {
1386
1405
  }, []), (!(r != null && r.insightsUrl) || !r.workspace || !r.workspace.startsWith("W")) && console.error(
1387
1406
  "[@levo-so/react] The utility could not be initialized, due to missing workspace, or endpoint for insights."
1388
1407
  ), null;
1389
- }, rt = I.createContext({
1408
+ }, rt = A.createContext({
1390
1409
  urls: null,
1391
1410
  title: "",
1392
1411
  isLoading: !1,
@@ -1394,48 +1413,48 @@ const fe = new qn(), Kn = () => {
1394
1413
  },
1395
1414
  onError: () => {
1396
1415
  }
1397
- }), or = ({
1416
+ }), rr = ({
1398
1417
  title: e,
1399
1418
  onSuccess: t,
1400
1419
  onError: n,
1401
1420
  children: r
1402
1421
  }) => {
1403
- const o = L(), s = typeof window < "u" ? window.location.href : "", [c, i] = x(null), [u, l] = x(!1);
1422
+ const o = L(), s = typeof window < "u" ? window.location.href : "", [c, a] = x(null), [u, l] = x(!1);
1404
1423
  b(() => {
1405
1424
  var d;
1406
- o.membership && (l(!0), (d = o.membership) == null || d.getOAuthURL().then((f) => {
1407
- i(f);
1408
- }).catch((f) => {
1425
+ o.membership && (l(!0), (d = o.membership) == null || d.getOAuthURL().then((m) => {
1426
+ a(m);
1427
+ }).catch((m) => {
1409
1428
  n({
1410
- code: (f == null ? void 0 : f.code) || "SOMETHING_WENT_WRONG",
1411
- message: (f == null ? void 0 : f.message) || "We could not connect with our service for your sign-in."
1429
+ code: (m == null ? void 0 : m.code) || "SOMETHING_WENT_WRONG",
1430
+ message: (m == null ? void 0 : m.message) || "We could not connect with our service for your sign-in."
1412
1431
  });
1413
1432
  }).finally(() => {
1414
1433
  l(!1);
1415
1434
  }));
1416
1435
  }, []);
1417
- const p = Ae(
1436
+ const f = Ie(
1418
1437
  () => ({ title: e, urls: c, isLoading: u, onSuccess: t, onError: n }),
1419
1438
  [e, c, t, n, u]
1420
1439
  );
1421
1440
  return b(() => {
1422
1441
  if (c && s) {
1423
- const d = {}, f = Object.keys(c);
1424
- for (const v of f)
1442
+ const d = {}, m = Object.keys(c);
1443
+ for (const v of m)
1425
1444
  try {
1426
- const S = c[v];
1427
- if (S) {
1428
- const _ = new URL(S), N = _.searchParams;
1445
+ const _ = c[v];
1446
+ if (_) {
1447
+ const S = new URL(_), N = S.searchParams;
1429
1448
  N.set("redirect_uri", s);
1430
1449
  const C = o.pageContext;
1431
- C && N.set("page_context", JSON.stringify(C)), d[v] = _.toString();
1450
+ C && N.set("page_context", JSON.stringify(C)), d[v] = S.toString();
1432
1451
  }
1433
1452
  } catch {
1434
1453
  }
1435
- i(d);
1454
+ a(d);
1436
1455
  }
1437
- }, [s]), /* @__PURE__ */ m.jsx(rt.Provider, { value: p, children: r });
1438
- }, sr = () => Pe(rt), ar = ({ url: e, title: t, height: n, width: r }) => {
1456
+ }, [s]), /* @__PURE__ */ p.jsx(rt.Provider, { value: f, children: r });
1457
+ }, or = () => Pe(rt), sr = ({ url: e, title: t, height: n, width: r }) => {
1439
1458
  const o = window.screenX + (window.outerWidth - r) / 2, s = window.screenY + (window.outerHeight - n) / 2.5;
1440
1459
  return window.open(
1441
1460
  e,
@@ -1451,11 +1470,11 @@ const fe = new qn(), Kn = () => {
1451
1470
  onCode: s,
1452
1471
  onClose: c
1453
1472
  }) => {
1454
- const [i, u] = x(), l = Ie(void 0), p = () => {
1473
+ const [a, u] = x(), l = Ae(void 0), f = () => {
1455
1474
  window.clearInterval(l.current);
1456
1475
  }, d = () => {
1457
1476
  u(
1458
- ar({
1477
+ sr({
1459
1478
  url: r,
1460
1479
  title: e,
1461
1480
  width: t,
@@ -1463,19 +1482,19 @@ const fe = new qn(), Kn = () => {
1463
1482
  })
1464
1483
  );
1465
1484
  };
1466
- return b(() => (i && (l.current = window.setInterval(() => {
1485
+ return b(() => (a && (l.current = window.setInterval(() => {
1467
1486
  try {
1468
- const f = i.location.href, v = new URL(f).searchParams, S = v.get("code");
1469
- if (!S)
1487
+ const m = a.location.href, v = new URL(m).searchParams, _ = v.get("code");
1488
+ if (!_)
1470
1489
  return;
1471
- s(S, v), p(), i.close();
1490
+ s(_, v), f(), a.close();
1472
1491
  } catch {
1473
1492
  } finally {
1474
- (!i || i.closed) && (c(), p());
1493
+ (!a || a.closed) && (c(), f());
1475
1494
  }
1476
1495
  }, 700)), () => {
1477
- i && i.close(), c && c();
1478
- }), [i]), /* @__PURE__ */ m.jsx(
1496
+ a && a.close(), c && c();
1497
+ }), [a]), /* @__PURE__ */ p.jsx(
1479
1498
  "div",
1480
1499
  {
1481
1500
  onClick: () => {
@@ -1484,7 +1503,7 @@ const fe = new qn(), Kn = () => {
1484
1503
  children: o
1485
1504
  }
1486
1505
  );
1487
- }, cr = ({
1506
+ }, ar = ({
1488
1507
  title: e = "Levo",
1489
1508
  url: t,
1490
1509
  children: n,
@@ -1493,10 +1512,10 @@ const fe = new qn(), Kn = () => {
1493
1512
  width: s = 500,
1494
1513
  height: c = 700
1495
1514
  }) => {
1496
- const i = me((u, l) => {
1515
+ const a = fe((u, l) => {
1497
1516
  u.toLowerCase() === "success" ? r(l) : o(l);
1498
1517
  }, []);
1499
- return /* @__PURE__ */ m.jsx(
1518
+ return /* @__PURE__ */ p.jsx(
1500
1519
  ir,
1501
1520
  {
1502
1521
  title: e,
@@ -1505,40 +1524,40 @@ const fe = new qn(), Kn = () => {
1505
1524
  onClose: () => {
1506
1525
  },
1507
1526
  url: t,
1508
- onCode: i,
1527
+ onCode: a,
1509
1528
  children: n
1510
1529
  }
1511
1530
  );
1512
- }, ur = ({ children: e, provider: t }) => {
1513
- const { title: n, urls: r, isLoading: o, onSuccess: s, onError: c } = sr(), i = r == null ? void 0 : r[t];
1514
- return i ? /* @__PURE__ */ m.jsx(
1515
- cr,
1531
+ }, cr = ({ children: e, provider: t }) => {
1532
+ const { title: n, urls: r, isLoading: o, onSuccess: s, onError: c } = or(), a = r == null ? void 0 : r[t];
1533
+ return a ? /* @__PURE__ */ p.jsx(
1534
+ ar,
1516
1535
  {
1517
1536
  title: n,
1518
1537
  provider: t,
1519
- url: i,
1538
+ url: a,
1520
1539
  onSuccess: s,
1521
1540
  onError: c,
1522
- children: o ? /* @__PURE__ */ m.jsx("div", { className: "w-full items-center justify-center", children: /* @__PURE__ */ m.jsx(Yt, { className: "bg-brand h-5 w-5" }) }) : e
1541
+ children: o ? /* @__PURE__ */ p.jsx("div", { className: "w-full items-center justify-center", children: /* @__PURE__ */ p.jsx(Ut, { className: "bg-brand h-5 w-5" }) }) : e
1523
1542
  }
1524
1543
  ) : null;
1525
- }, lr = ({ url: e, title: t, height: n, width: r }) => {
1544
+ }, ur = ({ url: e, title: t, height: n, width: r }) => {
1526
1545
  const o = window.screenX + (window.outerWidth - r) / 2, s = window.screenY + (window.outerHeight - n) / 2.5;
1527
1546
  return window.open(
1528
1547
  e,
1529
1548
  t,
1530
1549
  `width=${r},height=${n},left=${o},top=${s}`
1531
1550
  );
1532
- }, Fr = ({
1551
+ }, Mr = ({
1533
1552
  title: e = "Levo",
1534
1553
  width: t = 500,
1535
1554
  height: n = 700,
1536
1555
  onSuccess: r
1537
1556
  }) => {
1538
- const o = L(), [s, c] = x(!1), [i, u] = x(null), [l, p] = x(null), [d, f] = x(), v = Ie(void 0), S = () => {
1557
+ const o = L(), [s, c] = x(!1), [a, u] = x(null), [l, f] = x(null), [d, m] = x(), v = Ae(void 0), _ = () => {
1539
1558
  window.clearInterval(v.current);
1540
- }, _ = me((T, y) => {
1541
- T.toLowerCase() === "success" ? (p(null), r(y)) : p(y);
1559
+ }, S = fe((T, y) => {
1560
+ T.toLowerCase() === "success" ? (f(null), r(y)) : f(y);
1542
1561
  }, []);
1543
1562
  b(() => {
1544
1563
  var T;
@@ -1549,7 +1568,7 @@ const fe = new qn(), Kn = () => {
1549
1568
  }).catch((y) => {
1550
1569
  var M;
1551
1570
  const O = Me(y);
1552
- (M = o.logger) == null || M.error("Failed to get OAuth URL", O.message), p({
1571
+ (M = o.logger) == null || M.error("Failed to get OAuth URL", O.message), f({
1553
1572
  code: (O == null ? void 0 : O.code) || "SOMETHING_WENT_WRONG",
1554
1573
  message: (O == null ? void 0 : O.message) || "We could not connect with our service for your sign-in."
1555
1574
  });
@@ -1561,20 +1580,20 @@ const fe = new qn(), Kn = () => {
1561
1580
  const T = d.location.href, y = new URL(T).searchParams, O = y.get("code");
1562
1581
  if (!O)
1563
1582
  return;
1564
- _(O, y), S(), d.close();
1583
+ S(O, y), _(), d.close();
1565
1584
  } catch {
1566
1585
  } finally {
1567
- (!d || d.closed) && (S(), p(null));
1586
+ (!d || d.closed) && (_(), f(null));
1568
1587
  }
1569
1588
  }, 700)), () => {
1570
1589
  d && d.close();
1571
1590
  }), [d]);
1572
- const N = me(
1591
+ const N = fe(
1573
1592
  (T) => {
1574
- if (T && i !== null) {
1575
- const y = i == null ? void 0 : i[T];
1576
- y && (d && d.close(), f(
1577
- lr({
1593
+ if (T && a !== null) {
1594
+ const y = a == null ? void 0 : a[T];
1595
+ y && (d && d.close(), m(
1596
+ ur({
1578
1597
  url: y,
1579
1598
  title: e,
1580
1599
  width: t,
@@ -1583,12 +1602,12 @@ const fe = new qn(), Kn = () => {
1583
1602
  ));
1584
1603
  }
1585
1604
  },
1586
- [i, d]
1605
+ [a, d]
1587
1606
  );
1588
1607
  return {
1589
- providers: Ae(() => i !== null ? Object.keys(i).filter(
1590
- (T) => !!i[T]
1591
- ) : [], [i]),
1608
+ providers: Ie(() => a !== null ? Object.keys(a).filter(
1609
+ (T) => !!a[T]
1610
+ ) : [], [a]),
1592
1611
  isLoading: s,
1593
1612
  error: l,
1594
1613
  launchPopup: N
@@ -1596,61 +1615,61 @@ const fe = new qn(), Kn = () => {
1596
1615
  };
1597
1616
  class Le {
1598
1617
  }
1599
- J(Le, "Container", or), J(Le, "Button", ur);
1618
+ J(Le, "Container", rr), J(Le, "Button", cr);
1600
1619
  export {
1601
- $t as Button,
1602
- Ft as Dialog,
1603
- Sr as DialogClose,
1620
+ Mt as Button,
1621
+ $t as Dialog,
1622
+ Er as DialogClose,
1604
1623
  Ue as DialogContent,
1605
1624
  He as DialogDescription,
1606
1625
  Bt as DialogFooter,
1607
1626
  Ye as DialogHeader,
1608
- Be as DialogOverlay,
1627
+ Fe as DialogOverlay,
1609
1628
  Wt as DialogPortal,
1610
1629
  ze as DialogTitle,
1611
- kr as DialogTrigger,
1612
- _r as DialogWrapper,
1613
- Dr as LevoInsightsBlock,
1614
- Mr as LevoInsightsComponent,
1615
- $r as LevoInsightsPage,
1630
+ Tr as DialogTrigger,
1631
+ kr as DialogWrapper,
1632
+ Ir as LevoInsightsBlock,
1633
+ Ar as LevoInsightsComponent,
1634
+ Dr as LevoInsightsPage,
1616
1635
  Le as LevoOAuth,
1617
- Ir as LevoProvider,
1618
- Rr as SimpleTooltipWrapper,
1619
- Yt as Spinner,
1620
- Nr as Tabs,
1621
- Gt as TabsContent,
1622
- zt as TabsList,
1623
- Ht as TabsTrigger,
1624
- Or as Toaster,
1636
+ Pr as LevoProvider,
1637
+ Nr as SimpleTooltipWrapper,
1638
+ Ut as Spinner,
1639
+ Or as Tabs,
1640
+ Ht as TabsContent,
1641
+ Yt as TabsList,
1642
+ zt as TabsTrigger,
1643
+ _r as Toaster,
1625
1644
  Vt as Tooltip,
1626
- Ge as TooltipContent,
1627
- Xt as TooltipPortal,
1628
- Cr as TooltipProvider,
1629
- Jt as TooltipTrigger,
1630
- Tr as allMediaFileExtensions,
1631
- Er as allMediaMimetypes,
1632
- xt as audioFileExtensions,
1633
- St as audioMimetype,
1634
- Mt as buttonVariants,
1635
- Lr as byteToSize,
1645
+ Ve as TooltipContent,
1646
+ Jt as TooltipPortal,
1647
+ jr as TooltipProvider,
1648
+ Gt as TooltipTrigger,
1649
+ yr as allMediaFileExtensions,
1650
+ xr as allMediaMimetypes,
1651
+ yt as audioFileExtensions,
1652
+ kt as audioMimetype,
1653
+ Dt as buttonVariants,
1654
+ Cr as byteToSize,
1636
1655
  R as cn,
1637
- ht as documentFileExtensions,
1638
- Tt as documentMimetype,
1639
- Pr as errorHandler,
1640
- Ut as errorToast,
1641
- wt as imageFileExtensions,
1642
- Et as imageMimetype,
1643
- qt as isDateObject,
1644
- Ar as isEmptyObject,
1645
- Kt as isNullOrUndefined,
1646
- Qt as isObject,
1647
- Zt as isObjectType,
1656
+ vt as documentFileExtensions,
1657
+ xt as documentMimetype,
1658
+ Rr as errorHandler,
1659
+ Ft as errorToast,
1660
+ ht as imageFileExtensions,
1661
+ Tt as imageMimetype,
1662
+ Xt as isDateObject,
1663
+ Lr as isEmptyObject,
1664
+ qt as isNullOrUndefined,
1665
+ Zt as isObject,
1666
+ Kt as isObjectType,
1648
1667
  q as mediaExtensionsByKind,
1649
1668
  X as mediaMimetypeByKind,
1650
- jr as successToast,
1651
- Ur as toast,
1669
+ Sr as successToast,
1670
+ Br as toast,
1652
1671
  L as useLevo,
1653
- Fr as useLevoOAuth,
1654
- yt as videoFileExtensions,
1655
- kt as videoMimetype
1672
+ Mr as useLevoOAuth,
1673
+ wt as videoFileExtensions,
1674
+ Et as videoMimetype
1656
1675
  };