@car-cutter/react-webplayer 0.4.1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import ye, { createContext as Ie, useContext as Me, useRef as $, useState as A, useCallback as M, useEffect as P, useMemo as te, Fragment as Ot } from "react";
2
- import { createRoot as Ft } from "react-dom/client";
3
- var tt = { exports: {} }, ge = {};
1
+ import ye, { createContext as Ie, useContext as Me, useRef as $, useState as D, useCallback as M, useEffect as Z, useMemo as te, Fragment as Ot } from "react";
2
+ import { createRoot as Pt } from "react-dom/client";
3
+ var tt = { exports: {} }, xe = {};
4
4
  /**
5
5
  * @license React
6
6
  * react-jsx-runtime.production.min.js
@@ -11,27 +11,27 @@ var tt = { exports: {} }, ge = {};
11
11
  * LICENSE file in the root directory of this source tree.
12
12
  */
13
13
  var Xe;
14
- function Pt() {
15
- if (Xe) return ge;
14
+ function At() {
15
+ if (Xe) return xe;
16
16
  Xe = 1;
17
17
  var e = ye, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
18
- function c(l, s, b) {
19
- var d, m = {}, f = null, E = null;
20
- b !== void 0 && (f = "" + b), s.key !== void 0 && (f = "" + s.key), s.ref !== void 0 && (E = s.ref);
21
- for (d in s) o.call(s, d) && !u.hasOwnProperty(d) && (m[d] = s[d]);
22
- if (l && l.defaultProps) for (d in s = l.defaultProps, s) m[d] === void 0 && (m[d] = s[d]);
23
- return { $$typeof: r, type: l, key: f, ref: E, props: m, _owner: i.current };
18
+ function c(l, a, w) {
19
+ var d, m = {}, f = null, z = null;
20
+ w !== void 0 && (f = "" + w), a.key !== void 0 && (f = "" + a.key), a.ref !== void 0 && (z = a.ref);
21
+ for (d in a) o.call(a, d) && !u.hasOwnProperty(d) && (m[d] = a[d]);
22
+ if (l && l.defaultProps) for (d in a = l.defaultProps, a) m[d] === void 0 && (m[d] = a[d]);
23
+ return { $$typeof: r, type: l, key: f, ref: z, props: m, _owner: i.current };
24
24
  }
25
- return ge.Fragment = n, ge.jsx = c, ge.jsxs = c, ge;
25
+ return xe.Fragment = n, xe.jsx = c, xe.jsxs = c, xe;
26
26
  }
27
- tt.exports = Pt();
27
+ tt.exports = At();
28
28
  var rt = tt.exports;
29
- const Ze = "cc-webplayer", De = "cc-webplayer-icon", nt = "composition-loading", ot = "composition-loaded", st = "composition-load-error", at = "extend-mode-on", it = "extend-mode-off", lt = "hotspots-on", ct = "hotspots-off", dt = "gallery-open", ut = "gallery-close", At = !1, Zt = !1, Dt = !1, $t = "quality", Yt = !1, mt = "cc-webplayer:", Wt = !1;
29
+ const Fe = "cc-webplayer", De = "cc-webplayer-icon", nt = "composition-loading", ot = "composition-loaded", st = "composition-load-error", at = "extend-mode-on", it = "extend-mode-off", lt = "hotspots-on", ct = "hotspots-off", dt = "gallery-open", ut = "gallery-close", Zt = !1, Ft = !1, Dt = !1, $t = "quality", Yt = !1, mt = "cc-webplayer:", Wt = !1;
30
30
  function Ut(e, r) {
31
31
  const n = e.split("/"), o = n.pop();
32
32
  return [n.join("/"), r, o].join("/");
33
33
  }
34
- var pt = { exports: {} }, xe = {};
34
+ var pt = { exports: {} }, ve = {};
35
35
  /**
36
36
  * @license React
37
37
  * react-jsx-runtime.production.min.js
@@ -43,17 +43,17 @@ var pt = { exports: {} }, xe = {};
43
43
  */
44
44
  var Be;
45
45
  function Xt() {
46
- if (Be) return xe;
46
+ if (Be) return ve;
47
47
  Be = 1;
48
48
  var e = ye, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
49
- function c(l, s, b) {
50
- var d, m = {}, f = null, E = null;
51
- b !== void 0 && (f = "" + b), s.key !== void 0 && (f = "" + s.key), s.ref !== void 0 && (E = s.ref);
52
- for (d in s) o.call(s, d) && !u.hasOwnProperty(d) && (m[d] = s[d]);
53
- if (l && l.defaultProps) for (d in s = l.defaultProps, s) m[d] === void 0 && (m[d] = s[d]);
54
- return { $$typeof: r, type: l, key: f, ref: E, props: m, _owner: i.current };
49
+ function c(l, a, w) {
50
+ var d, m = {}, f = null, z = null;
51
+ w !== void 0 && (f = "" + w), a.key !== void 0 && (f = "" + a.key), a.ref !== void 0 && (z = a.ref);
52
+ for (d in a) o.call(a, d) && !u.hasOwnProperty(d) && (m[d] = a[d]);
53
+ if (l && l.defaultProps) for (d in a = l.defaultProps, a) m[d] === void 0 && (m[d] = a[d]);
54
+ return { $$typeof: r, type: l, key: f, ref: z, props: m, _owner: i.current };
55
55
  }
56
- return xe.Fragment = n, xe.jsx = c, xe.jsxs = c, xe;
56
+ return ve.Fragment = n, ve.jsx = c, ve.jsxs = c, ve;
57
57
  }
58
58
  pt.exports = Xt();
59
59
  var t = pt.exports;
@@ -63,13 +63,13 @@ async function Bt(e) {
63
63
  throw new Error(`Failed to fetch composition: ${r.statusText}`);
64
64
  return await r.json();
65
65
  }
66
- const Fe = /* @__PURE__ */ new Map(), Gt = (e) => {
67
- const [r, n] = A({
66
+ const Pe = /* @__PURE__ */ new Map(), Gt = (e) => {
67
+ const [r, n] = D({
68
68
  status: "pending",
69
69
  isSuccess: !1
70
70
  });
71
- return P(() => {
72
- const o = (u) => n({ status: "success", data: u, isSuccess: !0 }), i = Fe.get(e);
71
+ return Z(() => {
72
+ const o = (u) => n({ status: "success", data: u, isSuccess: !0 }), i = Pe.get(e);
73
73
  if (i && !(i instanceof Promise)) {
74
74
  o(i);
75
75
  return;
@@ -84,7 +84,7 @@ const Fe = /* @__PURE__ */ new Map(), Gt = (e) => {
84
84
  u = await i;
85
85
  else {
86
86
  const c = Bt(e);
87
- Fe.set(e, c), u = await c, Fe.set(e, u);
87
+ Pe.set(e, c), u = await c, Pe.set(e, u);
88
88
  }
89
89
  o(u);
90
90
  } catch (u) {
@@ -121,11 +121,11 @@ const Fe = /* @__PURE__ */ new Map(), Gt = (e) => {
121
121
  children: r
122
122
  }
123
123
  );
124
- }, ft = 500, Ae = 0.75, _e = 1 + Ae * 2;
124
+ }, ft = 500, Ze = 0.75, ze = 1 + Ze * 2;
125
125
  function se(e, r, n) {
126
126
  return Math.min(Math.max(e, r), n);
127
127
  }
128
- const ze = (e, r, n) => e + (r - e) * n, Ge = (e, r) => (e % r + r) % r, gt = Ie(null), J = () => {
128
+ const _e = (e, r, n) => e + (r - e) * n, Ge = (e, r) => (e % r + r) % r, gt = Ie(null), J = () => {
129
129
  const e = Me(gt);
130
130
  if (!e)
131
131
  throw new Error(
@@ -149,110 +149,110 @@ const ze = (e, r, n) => e + (r - e) * n, Ge = (e, r) => (e % r + r) % r, gt = Ie
149
149
  isFullScreen: i,
150
150
  requestFullscreen: u,
151
151
  exitFullscreen: c
152
- } = J(), { categories: l, items: s } = re(), [b, d] = A(s.map(() => null)), m = M(
153
- (F, Q) => {
152
+ } = J(), { categories: l, items: a } = re(), [w, d] = D(a.map(() => null)), m = M(
153
+ (P, Q) => {
154
154
  d(
155
- (de) => de.map((he, fe) => fe === F ? Q : he)
155
+ (de) => de.map((fe, ge) => ge === P ? Q : fe)
156
156
  );
157
157
  },
158
158
  []
159
- ), [f, E] = A(0), [p, x] = A(null), z = p ?? f, w = s[z], N = b[z], [j, h] = A(
159
+ ), [f, z] = D(0), [v, g] = D(null), I = v ?? f, x = a[I], T = w[I], [b, p] = D(
160
160
  null
161
- ), g = !!j, C = M(() => h(null), []), T = M(() => {
162
- if (g || p !== null)
161
+ ), h = !!b, k = M(() => p(null), []), L = M(() => {
162
+ if (h || v !== null)
163
163
  return;
164
- const F = f - 1;
165
- F >= 0 ? x(F) : r && (h("first_to_last"), x(s.length - 1));
164
+ const P = f - 1;
165
+ P >= 0 ? g(P) : r && (p("first_to_last"), g(a.length - 1));
166
166
  }, [
167
- g,
168
- p,
167
+ h,
168
+ v,
169
169
  f,
170
170
  r,
171
- s.length
172
- ]), V = M(() => {
173
- if (g || p !== null)
171
+ a.length
172
+ ]), R = M(() => {
173
+ if (h || v !== null)
174
174
  return;
175
- const F = f + 1;
176
- F < s.length ? x(F) : r && (h("last_to_first"), x(0));
175
+ const P = f + 1;
176
+ P < a.length ? g(P) : r && (p("last_to_first"), g(0));
177
177
  }, [
178
- g,
179
- p,
178
+ h,
179
+ v,
180
180
  f,
181
- s.length,
181
+ a.length,
182
182
  r
183
- ]), S = M(
184
- (F) => {
185
- const Q = Math.min(f, F), de = Math.max(f, F);
186
- b.slice(Q, de + 1).filter((he) => he === null).length > 2 && h("instant"), x(F);
183
+ ]), V = M(
184
+ (P) => {
185
+ const Q = Math.min(f, P), de = Math.max(f, P);
186
+ w.slice(Q, de + 1).filter((fe) => fe === null).length > 2 && p("instant"), g(P);
187
187
  },
188
- [f, b]
189
- ), v = te(() => {
190
- for (const F of l)
191
- if (F.items.includes(w))
192
- return F.id;
188
+ [f, w]
189
+ ), y = te(() => {
190
+ for (const P of l)
191
+ if (P.items.includes(x))
192
+ return P.id;
193
193
  throw new Error("Current item not found in any category");
194
- }, [l, w]), _ = M(
195
- (F) => {
194
+ }, [l, x]), E = M(
195
+ (P) => {
196
196
  var Q;
197
- const de = (Q = l.find(({ id: fe }) => fe === F)) == null ? void 0 : Q.items[0];
197
+ const de = (Q = l.find(({ id: ge }) => ge === P)) == null ? void 0 : Q.items[0];
198
198
  if (de === void 0)
199
199
  throw new Error("Failed to find target category");
200
- const he = s.findIndex((fe) => fe === de);
201
- S(he);
200
+ const fe = a.findIndex((ge) => ge === de);
201
+ V(fe);
202
202
  },
203
- [l, s, S]
204
- ), I = te(() => {
205
- var F;
206
- switch (w.type) {
203
+ [l, a, V]
204
+ ), _ = te(() => {
205
+ var P;
206
+ switch (x.type) {
207
207
  case "image":
208
- return !!((F = w.hotspots) != null && F.length);
208
+ return !!((P = x.hotspots) != null && P.length);
209
209
  case "360":
210
- return N === "running";
210
+ return T === "running";
211
211
  case "video":
212
212
  return !1;
213
213
  }
214
- }, [w, N]), [R, Z] = A(!0), k = M(() => {
215
- const F = !R;
216
- Z(F), o(F ? lt : ct);
217
- }, [o, R]), a = te(() => {
218
- switch (w.type) {
214
+ }, [x, T]), [S, O] = D(!0), C = M(() => {
215
+ const P = !S;
216
+ O(P), o(P ? lt : ct);
217
+ }, [o, S]), s = te(() => {
218
+ switch (x.type) {
219
219
  case "image":
220
220
  case "360":
221
221
  return !0;
222
222
  case "video":
223
- return N !== "running";
223
+ return T !== "running";
224
224
  }
225
- }, [w, N]), [y, L] = A(!1), H = M(() => {
226
- const F = !y;
227
- L(F), o(F ? dt : ut);
228
- }, [o, y]), [D, Y] = A(null), W = M(() => Y(null), []), G = !!D, X = te(() => {
229
- switch (w.type) {
225
+ }, [x, T]), [j, N] = D(!1), H = M(() => {
226
+ const P = !j;
227
+ N(P), o(P ? dt : ut);
228
+ }, [o, j]), [F, Y] = D(null), W = M(() => Y(null), []), G = !!F, X = te(() => {
229
+ switch (x.type) {
230
230
  case "image":
231
231
  return !0;
232
232
  case "360":
233
- return N === "running";
233
+ return T === "running";
234
234
  case "video":
235
235
  return !1;
236
236
  }
237
- }, [w.type, N]), [B, ne] = A(1), je = B !== 1, me = B < _e, ke = B > 1, ae = M((F) => {
238
- ne((Q) => se(Q + F, 1, _e));
239
- }, []), pe = M(() => ne(1), []), Te = M(() => ae(Ae), [ae]), St = M(() => ae(-Ae), [ae]), Ve = M(() => {
240
- pe(), W();
241
- }, [pe, W]), [ie, Rt] = A(!1), [Se, We] = A(), [Re, Ue] = A(!1), le = M(
242
- async (F) => {
243
- Ve(), Rt(F), o(F ? at : it);
237
+ }, [x.type, T]), [B, ne] = D(1), je = B !== 1, pe = B < ze, ke = B > 1, ae = M((P) => {
238
+ ne((Q) => se(Q + P, 1, ze));
239
+ }, []), he = M(() => ne(1), []), Te = M(() => ae(Ze), [ae]), St = M(() => ae(-Ze), [ae]), Ve = M(() => {
240
+ he(), W();
241
+ }, [he, W]), [ie, Rt] = D(!1), [Se, We] = D(), [Re, Ue] = D(!1), le = M(
242
+ async (P) => {
243
+ Ve(), Rt(P), o(P ? at : it);
244
244
  },
245
245
  [o, Ve]
246
246
  ), ce = M(() => {
247
247
  clearTimeout(Se);
248
- const F = setTimeout(() => {
248
+ const P = setTimeout(() => {
249
249
  We(void 0);
250
250
  }, ft);
251
- We(F);
251
+ We(P);
252
252
  }, [Se]), He = M(async () => {
253
253
  if (ce(), !n) {
254
- const F = await u();
255
- if (Ue(!F), F)
254
+ const P = await u();
255
+ if (Ue(!P), P)
256
256
  return;
257
257
  }
258
258
  le(!0);
@@ -271,7 +271,7 @@ const ze = (e, r, n) => e + (r - e) * n, Ge = (e, r) => (e % r + r) % r, gt = Ie
271
271
  ]), Ht = M(() => {
272
272
  ie ? Oe() : He();
273
273
  }, [Oe, He, ie]);
274
- return P(() => {
274
+ return Z(() => {
275
275
  n || Re && ie || i !== ie && (ce(), le(i));
276
276
  }, [
277
277
  n,
@@ -285,27 +285,27 @@ const ze = (e, r, n) => e + (r - e) * n, Ge = (e, r) => (e % r + r) % r, gt = Ie
285
285
  {
286
286
  value: {
287
287
  setItemInteraction: m,
288
- slidable: s.length > 1,
288
+ slidable: a.length > 1,
289
289
  carrouselItemIndex: f,
290
- setCarrouselItemIndex: E,
291
- itemIndexCommand: p,
292
- setItemIndexCommand: x,
293
- masterItemIndex: z,
294
- specialCommand: j,
295
- isRunningSpecialCommand: g,
296
- finishSpecialCommand: C,
297
- prevItem: T,
298
- nextItem: V,
299
- scrollToItemIndex: S,
300
- displayedCategoryId: v,
301
- changeCategory: _,
302
- enableHotspotsControl: I,
303
- showHotspots: R,
304
- toggleHotspots: k,
305
- showGalleryControls: a,
306
- showGallery: y,
290
+ setCarrouselItemIndex: z,
291
+ itemIndexCommand: v,
292
+ setItemIndexCommand: g,
293
+ masterItemIndex: I,
294
+ specialCommand: b,
295
+ isRunningSpecialCommand: h,
296
+ finishSpecialCommand: k,
297
+ prevItem: L,
298
+ nextItem: R,
299
+ scrollToItemIndex: V,
300
+ displayedCategoryId: y,
301
+ changeCategory: E,
302
+ enableHotspotsControl: _,
303
+ showHotspots: S,
304
+ toggleHotspots: C,
305
+ showGalleryControls: s,
306
+ showGallery: j,
307
307
  toggleGallery: H,
308
- shownDetails: D,
308
+ shownDetails: F,
309
309
  isShowingDetails: G,
310
310
  setShownDetails: Y,
311
311
  resetShownDetails: W,
@@ -313,8 +313,8 @@ const ze = (e, r, n) => e + (r - e) * n, Ge = (e, r) => (e % r + r) % r, gt = Ie
313
313
  zoom: B,
314
314
  isZooming: je,
315
315
  setZoom: ne,
316
- resetZoom: pe,
317
- canZoomIn: me,
316
+ resetZoom: he,
317
+ canZoomIn: pe,
318
318
  zoomIn: Te,
319
319
  canZoomOut: ke,
320
320
  zoomOut: St,
@@ -363,7 +363,7 @@ function nr(e) {
363
363
  throw new Error(`Invalid position: ${e}`);
364
364
  return tr(e) ? [e, void 0] : er(e) ? [void 0, e] : e.split("-");
365
365
  }
366
- function O(...e) {
366
+ function A(...e) {
367
367
  return e.filter((r) => !!r).map((r) => r.trim()).join(" ");
368
368
  }
369
369
  function or(e) {
@@ -409,32 +409,32 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
409
409
  );
410
410
  return e;
411
411
  }, ar = ({ children: e }) => {
412
- const [r, n] = A(
412
+ const [r, n] = D(
413
413
  /* @__PURE__ */ new Map()
414
414
  ), o = M(
415
415
  (c) => {
416
416
  const l = r.get(c);
417
417
  if (l)
418
418
  return l;
419
- const s = document.querySelector(
419
+ const a = document.querySelector(
420
420
  `${De}[name="${c}"]`
421
421
  );
422
- if (!s)
422
+ if (!a)
423
423
  return;
424
- const b = s.getAttribute("color") ?? void 0, d = s.innerHTML, m = d ? /* @__PURE__ */ t.jsx(
424
+ const w = a.getAttribute("color") ?? void 0, d = a.innerHTML, m = d ? /* @__PURE__ */ t.jsx(
425
425
  "div",
426
426
  {
427
427
  className: "size-full",
428
428
  dangerouslySetInnerHTML: { __html: d }
429
429
  }
430
430
  ) : void 0;
431
- if (!(!b && !m))
432
- return { Icon: m, color: b };
431
+ if (!(!w && !m))
432
+ return { Icon: m, color: w };
433
433
  },
434
434
  [r]
435
435
  ), i = M(
436
436
  (c, l) => {
437
- n((s) => new Map(s.set(c, l)));
437
+ n((a) => new Map(a.set(c, l)));
438
438
  },
439
439
  []
440
440
  ), u = M((c) => {
@@ -511,11 +511,11 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
511
511
  children: i
512
512
  }
513
513
  );
514
- }, kt = ({ className: e = "", ...r }) => /* @__PURE__ */ t.jsx(K, { color: "neutral", shape: "icon", className: e, ...r, children: /* @__PURE__ */ t.jsx(ir, { className: "size-full" }) }), Nt = ({
514
+ }, kt = ({ className: e = "", ...r }) => /* @__PURE__ */ t.jsx(K, { color: "neutral", shape: "icon", className: e, ...r, children: /* @__PURE__ */ t.jsx(ir, { className: "size-full" }) }), Ct = ({
515
515
  title: e,
516
516
  error: r,
517
517
  children: n
518
- }) => (P(() => {
518
+ }) => (Z(() => {
519
519
  console.error(e, r);
520
520
  }, [r, e]), /* @__PURE__ */ t.jsxs("div", { className: "space-y-2", children: [
521
521
  /* @__PURE__ */ t.jsx("div", { className: "text-xl", children: e }),
@@ -527,7 +527,7 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
527
527
  sm: "size-4 border",
528
528
  md: "size-8 border-2",
529
529
  lg: "size-12 border-4"
530
- }, Ct = ({
530
+ }, Et = ({
531
531
  color: e = "neutral",
532
532
  size: r = "md"
533
533
  }) => {
@@ -538,7 +538,7 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
538
538
  className: `inline-block ${o} animate-rotation rounded-full ${n} border-b-transparent`
539
539
  }
540
540
  );
541
- }, be = ({
541
+ }, me = ({
542
542
  src: e,
543
543
  className: r,
544
544
  onLoad: n,
@@ -549,66 +549,66 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
549
549
  }) => {
550
550
  const {
551
551
  minImageWidth: l,
552
- maxImageWidth: s,
553
- imageLoadStrategy: b,
552
+ maxImageWidth: a,
553
+ imageLoadStrategy: w,
554
554
  playerInViewportWidthRatio: d
555
- } = J(), { imageHdWidth: m, imageSubWidths: f } = re(), [E, p] = te(() => {
556
- const w = f.concat(m).sort((h, g) => h - g).filter((h) => !(l && h < l || s && h > s));
557
- if (w.length === 0)
555
+ } = J(), { imageHdWidth: m, imageSubWidths: f } = re(), [z, v] = te(() => {
556
+ const x = f.concat(m).sort((p, h) => p - h).filter((p) => !(l && p < l || a && p > a));
557
+ if (x.length === 0)
558
558
  throw new Error("No image widths available for the given constraints");
559
- const N = w.map((h) => `${h !== m ? Ut(e, h) : e} ${h}w`);
560
- let j;
559
+ const T = x.map((p) => `${p !== m ? Ut(e, p) : e} ${p}w`);
560
+ let b;
561
561
  if (i)
562
- j = [`${w.shift()}px`];
562
+ b = [`${x.shift()}px`];
563
563
  else {
564
- const h = 1 / (o * d);
565
- if (b === "quality") {
566
- const g = w.pop();
567
- j = w.map(
568
- (C) => `(max-width: ${h * C}px) ${C}px`
569
- ), j.push(`${g}px`);
564
+ const p = 1 / (o * d);
565
+ if (w === "quality") {
566
+ const h = x.pop();
567
+ b = x.map(
568
+ (k) => `(max-width: ${p * k}px) ${k}px`
569
+ ), b.push(`${h}px`);
570
570
  } else {
571
- const g = w.shift();
572
- j = w.reverse().map(
573
- (C) => `(min-width: ${h * C}px) ${C}px`
574
- ), j.push(`${g}px`);
571
+ const h = x.shift();
572
+ b = x.reverse().map(
573
+ (k) => `(min-width: ${p * k}px) ${k}px`
574
+ ), b.push(`${h}px`);
575
575
  }
576
576
  }
577
- return [N.join(", "), j.join(", ")];
577
+ return [T.join(", "), b.join(", ")];
578
578
  }, [
579
579
  m,
580
- b,
580
+ w,
581
581
  f,
582
582
  o,
583
- s,
583
+ a,
584
584
  l,
585
585
  i,
586
586
  d,
587
587
  e
588
- ]), [x, z] = A();
589
- return P(() => {
590
- if (x === !0)
588
+ ]), [g, I] = D();
589
+ return Z(() => {
590
+ if (g === !0)
591
591
  return;
592
- const w = setTimeout(() => {
593
- z(!1);
592
+ const x = setTimeout(() => {
593
+ I((T) => T ?? !1);
594
594
  }, 30);
595
- return () => clearTimeout(w);
596
- }, [x]), /* @__PURE__ */ t.jsx(
595
+ return () => clearTimeout(x);
596
+ }, [g]), /* @__PURE__ */ t.jsx(
597
597
  "img",
598
598
  {
599
599
  src: e,
600
- srcSet: E,
601
- sizes: p,
602
- className: O(
600
+ srcSet: z,
601
+ sizes: v,
602
+ className: A(
603
603
  r,
604
- u && O(
605
- x !== void 0 && "transition-opacity duration-200",
606
- x === !1 && "opacity-0",
607
- x === !0 && "opacity-100"
604
+ u && A(
605
+ g !== void 0 && "transition-opacity duration-200",
606
+ g === !1 && "opacity-0",
607
+ g === !0 && "opacity-100"
608
608
  )
609
609
  ),
610
- onLoad: (w) => {
611
- z(!0), n == null || n(w);
610
+ onLoad: (x) => {
611
+ I(!0), n == null || n(x);
612
612
  },
613
613
  ...c
614
614
  }
@@ -625,7 +625,7 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
625
625
  strokeLinejoin: "round",
626
626
  children: /* @__PURE__ */ t.jsx("polygon", { points: "6 3 20 12 6 21 6 3" })
627
627
  }
628
- ) }), Et = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_360", children: /* @__PURE__ */ t.jsxs(
628
+ ) }), Nt = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_360", children: /* @__PURE__ */ t.jsxs(
629
629
  "svg",
630
630
  {
631
631
  className: e,
@@ -687,7 +687,7 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
687
687
  return /* @__PURE__ */ t.jsx(
688
688
  "div",
689
689
  {
690
- className: O(
690
+ className: A(
691
691
  "flex aspect-square h-3/4 items-center justify-center rounded-full bg-foreground/50 p-1",
692
692
  r && "large:h-3/5 large:p-2"
693
693
  ),
@@ -709,7 +709,7 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
709
709
  break;
710
710
  }
711
711
  const u = /* @__PURE__ */ t.jsx(
712
- be,
712
+ me,
713
713
  {
714
714
  className: "size-full object-cover",
715
715
  src: i,
@@ -720,7 +720,7 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
720
720
  let c;
721
721
  switch (o) {
722
722
  case "360":
723
- c = /* @__PURE__ */ t.jsx(Ke, { children: /* @__PURE__ */ t.jsx(Et, { className: "size-full text-primary" }) });
723
+ c = /* @__PURE__ */ t.jsx(Ke, { children: /* @__PURE__ */ t.jsx(Nt, { className: "size-full text-primary" }) });
724
724
  break;
725
725
  case "video":
726
726
  c = /* @__PURE__ */ t.jsx(Ke, { children: /* @__PURE__ */ t.jsx(Ye, { className: "size-full p-0.5 text-background" }) });
@@ -747,109 +747,109 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
747
747
  orientation: r = "horizontal"
748
748
  }) => {
749
749
  const n = pr[e], o = r === "horizontal" ? "h-px w-full" : "w-px h-full";
750
- return /* @__PURE__ */ t.jsx("div", { className: O(n, o) });
751
- }, zt = ({
750
+ return /* @__PURE__ */ t.jsx("div", { className: A(n, o) });
751
+ }, _t = ({
752
752
  className: e = "",
753
753
  containerClassName: r = ""
754
754
  }) => {
755
- const { flatten: n, infiniteCarrousel: o, permanentGallery: i, isFullScreen: u } = J(), { categories: c, items: l, aspectRatioStyle: s } = re(), {
756
- extendMode: b,
755
+ const { flatten: n, infiniteCarrousel: o, permanentGallery: i, isFullScreen: u } = J(), { categories: c, items: l, aspectRatioStyle: a } = re(), {
756
+ extendMode: w,
757
757
  extendTransition: d,
758
758
  masterItemIndex: m,
759
759
  prevItem: f,
760
- nextItem: E,
761
- scrollToItemIndex: p,
762
- resetView: x
763
- } = q(), z = te(() => {
760
+ nextItem: z,
761
+ scrollToItemIndex: v,
762
+ resetView: g
763
+ } = q(), I = te(() => {
764
764
  if (n)
765
765
  return [];
766
- const v = new Array();
767
- let _ = 0;
768
- for (let I = 0; I < c.length - 1; I++) {
769
- const R = c[I].items.length;
770
- v.push(_ + R), _ += R;
766
+ const y = new Array();
767
+ let E = 0;
768
+ for (let _ = 0; _ < c.length - 1; _++) {
769
+ const S = c[_].items.length;
770
+ y.push(E + S), E += S;
771
771
  }
772
- return v;
773
- }, [c, n]), w = $(null), N = M(() => {
774
- if (!w.current)
772
+ return y;
773
+ }, [c, n]), x = $(null), T = M(() => {
774
+ if (!x.current)
775
775
  throw new Error("slider.current is null");
776
- return w.current;
777
- }, []), j = $(!1), h = $(
776
+ return x.current;
777
+ }, []), b = $(!1), p = $(
778
778
  null
779
- ), [g, C] = A(!1), T = M(
780
- (v, _) => {
781
- const I = N(), R = I.clientWidth, Z = I.scrollWidth / l.length, k = (v + 1 / 2) * Z - R / 2, a = I.scrollWidth - I.clientWidth;
782
- I.scrollTo({
783
- left: se(k, 0, a),
784
- behavior: _
779
+ ), [h, k] = D(!1), L = M(
780
+ (y, E) => {
781
+ const _ = T(), S = _.clientWidth, O = _.scrollWidth / l.length, C = (y + 1 / 2) * O - S / 2, s = _.scrollWidth - _.clientWidth;
782
+ _.scrollTo({
783
+ left: se(C, 0, s),
784
+ behavior: E
785
785
  });
786
786
  },
787
- [l.length, N]
787
+ [l.length, T]
788
788
  );
789
- P(() => {
790
- const v = w.current;
791
- if (!v)
789
+ Z(() => {
790
+ const y = x.current;
791
+ if (!y)
792
792
  return;
793
- const _ = (Z) => {
794
- Z.preventDefault(), j.current = !0, h.current = {
795
- x: Z.pageX - v.offsetLeft,
796
- scrollLeft: v.scrollLeft
793
+ const E = (O) => {
794
+ O.preventDefault(), b.current = !0, p.current = {
795
+ x: O.pageX - y.offsetLeft,
796
+ scrollLeft: y.scrollLeft
797
797
  };
798
- }, I = (Z) => {
799
- if (!j.current)
798
+ }, _ = (O) => {
799
+ if (!b.current)
800
800
  return;
801
- if (h.current === null)
801
+ if (p.current === null)
802
802
  throw new Error("[onMouseMove] scrollStart is null");
803
- const k = Z.pageX - v.offsetLeft - h.current.x;
804
- if (!g && Math.abs(k) < 5)
803
+ const C = O.pageX - y.offsetLeft - p.current.x;
804
+ if (!h && Math.abs(C) < 5)
805
805
  return;
806
- const a = h.current.scrollLeft - k;
807
- C(!0), requestAnimationFrame(() => {
808
- v.scrollLeft = a;
806
+ const s = p.current.scrollLeft - C;
807
+ k(!0), requestAnimationFrame(() => {
808
+ y.scrollLeft = s;
809
809
  });
810
- }, R = () => {
811
- j.current && (j.current = !1, requestAnimationFrame(() => {
812
- C(!1);
810
+ }, S = () => {
811
+ b.current && (b.current = !1, requestAnimationFrame(() => {
812
+ k(!1);
813
813
  }));
814
814
  };
815
- return v.addEventListener("mousedown", _), document.addEventListener("mousemove", I), document.addEventListener("mouseleave", R), document.addEventListener("mouseup", R), document.addEventListener("contextmenu", R), () => {
816
- v.removeEventListener("mousedown", _), document.removeEventListener("mousemove", I), document.removeEventListener("mouseleave", R), document.removeEventListener("mouseup", R), document.removeEventListener("contextmenu", R);
815
+ return y.addEventListener("mousedown", E), document.addEventListener("mousemove", _), document.addEventListener("mouseleave", S), document.addEventListener("mouseup", S), document.addEventListener("contextmenu", S), () => {
816
+ y.removeEventListener("mousedown", E), document.removeEventListener("mousemove", _), document.removeEventListener("mouseleave", S), document.removeEventListener("mouseup", S), document.removeEventListener("contextmenu", S);
817
817
  };
818
- }, [g]);
819
- const V = $(m);
820
- P(() => {
821
- w.current && (T(m, "smooth"), V.current = m);
822
- }, [m, T]), P(() => {
823
- w.current && T(V.current, "instant");
818
+ }, [h]);
819
+ const R = $(m);
820
+ Z(() => {
821
+ x.current && (L(m, "smooth"), R.current = m);
822
+ }, [m, L]), Z(() => {
823
+ x.current && L(R.current, "instant");
824
824
  }, [
825
- T,
825
+ L,
826
826
  // - Run the effect when those values change
827
827
  u,
828
- b,
828
+ w,
829
829
  d
830
830
  ]);
831
- const S = (v, _) => {
832
- g || (o && _ === l.length - 1 && m === 0 ? f() : o && _ === 0 && m === l.length - 1 ? E() : p(_), x());
831
+ const V = (y, E) => {
832
+ h || (o && E === l.length - 1 && m === 0 ? f() : o && E === 0 && m === l.length - 1 ? z() : v(E), g());
833
833
  };
834
834
  return /* @__PURE__ */ t.jsx(
835
835
  "div",
836
836
  {
837
- ref: w,
838
- className: O(
837
+ ref: x,
838
+ className: A(
839
839
  "relative w-full overflow-x-auto no-scrollbar",
840
- g ? "cursor-grab" : "cursor-grabbing",
840
+ h ? "cursor-grab" : "cursor-grabbing",
841
841
  e
842
842
  ),
843
843
  children: /* @__PURE__ */ t.jsx(
844
844
  "div",
845
845
  {
846
- className: O(
846
+ className: A(
847
847
  "flex h-10 w-fit gap-1 small:h-12 small:gap-2",
848
- b && "large:h-20 large:gap-4",
848
+ w && "large:h-20 large:gap-4",
849
849
  r
850
850
  ),
851
- children: l.map((v, _) => /* @__PURE__ */ t.jsxs(Ot, { children: [
852
- z.includes(_) && /* @__PURE__ */ t.jsx("div", { className: "my-2", children: /* @__PURE__ */ t.jsx(
851
+ children: l.map((y, E) => /* @__PURE__ */ t.jsxs(Ot, { children: [
852
+ I.includes(E) && /* @__PURE__ */ t.jsx("div", { className: "my-2", children: /* @__PURE__ */ t.jsx(
853
853
  Lt,
854
854
  {
855
855
  color: i && !u ? "neutral" : "background",
@@ -859,23 +859,23 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
859
859
  /* @__PURE__ */ t.jsx(
860
860
  "div",
861
861
  {
862
- className: O(
862
+ className: A(
863
863
  "relative h-full rounded-gallery ",
864
- !g && "cursor-pointer",
864
+ !h && "cursor-pointer",
865
865
  "after:absolute after:inset-0 after:rounded-gallery after:border-2 after:border-primary after:transition-opacity",
866
- _ === m ? "after:opacity-100" : "after:opacity-0 hover:after:opacity-70"
866
+ E === m ? "after:opacity-100" : "after:opacity-0 hover:after:opacity-70"
867
867
  ),
868
- style: s,
869
- onClick: () => S(v, _),
870
- children: /* @__PURE__ */ t.jsx(mr, { item: v })
868
+ style: a,
869
+ onClick: () => V(y, E),
870
+ children: /* @__PURE__ */ t.jsx(mr, { item: y })
871
871
  }
872
872
  )
873
- ] }, _))
873
+ ] }, E))
874
874
  }
875
875
  )
876
876
  }
877
877
  );
878
- }, _t = (e) => 1 - Math.pow(1 - e, 2), hr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", { className: "space-x-0.5 rounded-ui bg-foreground/40 px-1.5 py-0.5 text-xs text-background/75 small:space-x-1 small:px-2 small:py-1 small:text-sm", children: [
878
+ }, zt = (e) => 1 - Math.pow(1 - e, 2), hr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", { className: "space-x-0.5 rounded-ui bg-foreground/40 px-1.5 py-0.5 text-xs text-background/75 small:space-x-1 small:px-2 small:py-1 small:text-sm", children: [
879
879
  /* @__PURE__ */ t.jsx("span", { children: e + 1 }),
880
880
  /* @__PURE__ */ t.jsx("span", { children: "/" }),
881
881
  /* @__PURE__ */ t.jsx("span", { children: r + 1 })
@@ -885,210 +885,222 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
885
885
  onlyPreload: e,
886
886
  ...r
887
887
  }) => {
888
- const { zoom: n, isZooming: o, setZoom: i } = q(), u = $(null), c = $(null), l = M((N) => {
888
+ const { zoom: n, isZooming: o, setZoom: i } = q(), u = $(null), c = $(null), l = M((b) => {
889
889
  if (!c.current)
890
890
  throw new Error(
891
- `[${N ?? "getTransformElementOrThrow"}] transformElementRef.current is null`
891
+ `[${b ?? "getTransformElementOrThrow"}] transformElementRef.current is null`
892
892
  );
893
893
  return c.current;
894
- }, []), s = $(!1), b = $(null), d = $(/* @__PURE__ */ new Map()), m = $({ x: 0, y: 0, scale: 1 }), f = $(null), E = M(
895
- (N) => {
896
- const j = l("setTransformStyle"), {
894
+ }, []), a = $(!1), w = $(null), d = $(/* @__PURE__ */ new Map()), m = $({ x: 0, y: 0, scale: 1 }), f = $(null), z = M(
895
+ (b) => {
896
+ const p = l("setTransformStyle"), {
897
897
  x: h,
898
- y: g,
899
- scale: C
898
+ y: k,
899
+ scale: L
900
900
  } = {
901
901
  ...m.current,
902
- ...N
903
- }, T = se(C, 1, _e), V = j.clientWidth, S = j.clientHeight, v = V * T, _ = S * T, I = se(h, -(v - V), 0), R = se(g, -(_ - S), 0);
904
- m.current = { x: I, y: R, scale: T }, j.style.transform = `translate(${I}px, ${R}px) scale(${T})`;
902
+ ...b
903
+ }, R = se(L, 1, ze), V = p.clientWidth, y = p.clientHeight, E = V * R, _ = y * R, S = se(h, -(E - V), 0), O = se(k, -(_ - y), 0);
904
+ m.current = { x: S, y: O, scale: R }, p.style.transform = `translate(${S}px, ${O}px) scale(${R})`;
905
905
  },
906
906
  [l]
907
- ), p = M(
908
- (N, j) => {
907
+ ), v = M(
908
+ (b, p) => {
909
909
  const {
910
910
  x: h,
911
- y: g,
912
- scale: C
911
+ y: k,
912
+ scale: L
913
913
  } = m.current, {
914
- x: T,
914
+ x: R,
915
915
  y: V,
916
- scale: S
916
+ scale: y
917
917
  } = {
918
918
  ...m.current,
919
- ...N
919
+ ...b
920
920
  };
921
921
  f.current && (cancelAnimationFrame(f.current), f.current = null);
922
- const v = () => {
923
- E({ x: T, y: V, scale: S }), i(S);
924
- }, _ = Math.abs(T - h) < 1 && Math.abs(V - g) < 1 && Math.abs(S - C) < 5e-3;
925
- if (!j || _) {
926
- v();
922
+ const E = () => {
923
+ z({ x: R, y: V, scale: y }), i(y);
924
+ }, _ = Math.abs(R - h) < 1 && Math.abs(V - k) < 1 && Math.abs(y - L) < 5e-3;
925
+ if (!p || _) {
926
+ E();
927
927
  return;
928
928
  }
929
- const I = (/* @__PURE__ */ new Date()).getTime(), R = () => {
930
- const Z = () => {
931
- const k = (/* @__PURE__ */ new Date()).getTime() - I;
932
- if (k >= j) {
933
- v(), f.current = null;
929
+ const S = (/* @__PURE__ */ new Date()).getTime(), O = () => {
930
+ const C = () => {
931
+ const s = (/* @__PURE__ */ new Date()).getTime() - S;
932
+ if (s >= p) {
933
+ E(), f.current = null;
934
934
  return;
935
935
  }
936
- const a = Math.min(k / j, 1), y = _t(a), L = ze(h, T, y), H = ze(g, V, y), D = ze(C, S, y);
937
- E({ x: L, y: H, scale: D }), R();
936
+ const j = Math.min(s / p, 1), N = zt(j), H = _e(h, R, N), F = _e(k, V, N), Y = _e(L, y, N);
937
+ z({ x: H, y: F, scale: Y }), O();
938
938
  };
939
- f.current = requestAnimationFrame(Z);
939
+ f.current = requestAnimationFrame(C);
940
940
  };
941
- R();
941
+ O();
942
942
  },
943
- [E, i]
944
- ), x = M(
945
- (N, j) => {
946
- let { x: h, y: g } = m.current;
947
- N.x && (h += N.x), N.y && (g += N.y), p(
943
+ [z, i]
944
+ ), g = M(
945
+ (b, p) => {
946
+ let { x: h, y: k } = m.current;
947
+ b.x && (h += b.x), b.y && (k += b.y), v(
948
948
  {
949
949
  x: h,
950
- y: g
950
+ y: k
951
951
  },
952
- j
952
+ p
953
953
  );
954
954
  },
955
- [p]
956
- ), z = M(
957
- (N, j, h) => {
958
- const g = m.current.scale, C = se(N, 1, _e), T = C / g, { x: V, y: S } = m.current, { x: v, y: _ } = j, I = -V + v, R = -S + _, Z = I * T, k = R * T, a = Z - v, y = k - _, L = -a, H = -y;
959
- p(
955
+ [v]
956
+ ), I = M(
957
+ (b, p, h) => {
958
+ const k = m.current.scale, L = se(b, 1, ze), R = L / k, { x: V, y } = m.current, { x: E, y: _ } = p, S = -V + E, O = -y + _, C = S * R, s = O * R, j = C - E, N = s - _, H = -j, F = -N;
959
+ v(
960
960
  {
961
- x: L,
962
- y: H,
963
- scale: C
961
+ x: H,
962
+ y: F,
963
+ scale: L
964
964
  },
965
965
  h
966
966
  );
967
967
  },
968
- [p]
969
- ), w = M(
970
- (N) => {
971
- const j = l(
968
+ [v]
969
+ ), x = M(
970
+ (b) => {
971
+ const p = l(
972
972
  "shiftZoomFromButton"
973
- ), h = j.clientWidth, g = j.clientHeight;
974
- z(
975
- N,
973
+ ), h = p.clientWidth, k = p.clientHeight;
974
+ I(
975
+ b,
976
976
  {
977
977
  x: h / 2,
978
- y: g / 2
978
+ y: k / 2
979
979
  },
980
980
  200
981
981
  );
982
982
  },
983
- [l, z]
983
+ [l, I]
984
+ ), T = M(
985
+ (b, p, h) => {
986
+ const { scale: k } = m.current;
987
+ I(
988
+ k + b,
989
+ p,
990
+ h
991
+ );
992
+ },
993
+ [I]
984
994
  );
985
- return P(() => {
986
- c.current && w(n);
987
- }, [w, n]), P(() => {
988
- if (!o)
995
+ return Z(() => {
996
+ e || c.current && x(n);
997
+ }, [e, x, n]), Z(() => {
998
+ if (e || !o)
989
999
  return;
990
- const N = c.current;
991
- if (!N)
1000
+ const b = c.current;
1001
+ if (!b)
992
1002
  return;
993
- const j = (C) => {
994
- C.preventDefault(), C.stopPropagation(), s.current = !0, b.current = {
995
- x: C.clientX,
996
- y: C.clientY
1003
+ const p = (L) => {
1004
+ L.preventDefault(), L.stopPropagation(), a.current = !0, w.current = {
1005
+ x: L.clientX,
1006
+ y: L.clientY
997
1007
  };
998
- }, h = (C) => {
999
- if (!s.current)
1008
+ }, h = (L) => {
1009
+ if (!a.current)
1000
1010
  return;
1001
- if (!b.current)
1011
+ if (!w.current)
1002
1012
  throw new Error("mouseStartXY.current is null");
1003
- C.stopPropagation();
1004
- const T = C.clientX - b.current.x, V = C.clientY - b.current.y;
1005
- x({
1006
- x: T,
1013
+ L.stopPropagation();
1014
+ const R = L.clientX - w.current.x, V = L.clientY - w.current.y;
1015
+ g({
1016
+ x: R,
1007
1017
  y: V
1008
- }), b.current = {
1009
- x: C.clientX,
1010
- y: C.clientY
1018
+ }), w.current = {
1019
+ x: L.clientX,
1020
+ y: L.clientY
1011
1021
  };
1012
- }, g = () => {
1013
- s.current = !1;
1022
+ }, k = () => {
1023
+ a.current = !1;
1014
1024
  };
1015
- return N.addEventListener("mousedown", j), document.addEventListener("mousemove", h), document.addEventListener("mouseleave", g), document.addEventListener("mouseup", g), document.addEventListener("contextmenu", g), () => {
1016
- N.removeEventListener("mousedown", j), document.removeEventListener("mousemove", h), document.removeEventListener("mouseleave", g), document.removeEventListener("mouseup", g), document.removeEventListener("contextmenu", g);
1025
+ return b.addEventListener("mousedown", p), document.addEventListener("mousemove", h), document.addEventListener("mouseleave", k), document.addEventListener("mouseup", k), document.addEventListener("contextmenu", k), () => {
1026
+ b.removeEventListener("mousedown", p), document.removeEventListener("mousemove", h), document.removeEventListener("mouseleave", k), document.removeEventListener("mouseup", k), document.removeEventListener("contextmenu", k);
1017
1027
  };
1018
- }, [o, x]), P(() => {
1019
- const N = u.current;
1020
- if (!N)
1028
+ }, [o, g, e]), Z(() => {
1029
+ if (e)
1030
+ return;
1031
+ const b = u.current;
1032
+ if (!b)
1021
1033
  return;
1022
- const j = (h) => {
1023
- const { ctrlKey: g, clientX: C, clientY: T, deltaX: V, deltaY: S } = h;
1024
- if (g) {
1025
- if (!o && S >= 0)
1034
+ const p = (h) => {
1035
+ const { ctrlKey: k, clientX: L, clientY: R, deltaX: V, deltaY: y } = h;
1036
+ if (k) {
1037
+ if (!o && y >= 0)
1026
1038
  return;
1027
- const { left: v, top: _ } = N.getBoundingClientRect(), I = C - v, R = T - _;
1028
- z(n - 0.01 * S, {
1029
- x: I,
1030
- y: R
1039
+ const { left: E, top: _ } = b.getBoundingClientRect(), S = L - E, O = R - _;
1040
+ T(-0.01 * y, {
1041
+ x: S,
1042
+ y: O
1031
1043
  });
1032
1044
  } else {
1033
1045
  if (!o)
1034
1046
  return;
1035
- x({
1047
+ g({
1036
1048
  x: -2 * V,
1037
- y: -2 * S
1049
+ y: -2 * y
1038
1050
  });
1039
1051
  }
1040
1052
  h.preventDefault();
1041
1053
  };
1042
- return N.addEventListener("wheel", j), () => {
1043
- N.removeEventListener("wheel", j);
1054
+ return b.addEventListener("wheel", p), () => {
1055
+ b.removeEventListener("wheel", p);
1044
1056
  };
1045
- }, [o, x, z, n]), P(() => {
1046
- const N = u.current, j = c.current;
1047
- if (!N || !j)
1057
+ }, [o, g, T, e]), Z(() => {
1058
+ const b = u.current, p = c.current;
1059
+ if (!b || !p)
1048
1060
  return;
1049
- const h = d.current, g = (V) => {
1050
- for (let S = 0; S < V.changedTouches.length; S++) {
1051
- const v = V.changedTouches[S];
1052
- h.set(v.identifier, v);
1061
+ const h = d.current, k = (V) => {
1062
+ for (let y = 0; y < V.changedTouches.length; y++) {
1063
+ const E = V.changedTouches[y];
1064
+ h.set(E.identifier, E);
1053
1065
  }
1054
- }, C = (V) => {
1055
- for (let S = 0; S < V.changedTouches.length; S++) {
1056
- const v = V.changedTouches[S];
1057
- h.delete(v.identifier);
1066
+ }, L = (V) => {
1067
+ for (let y = 0; y < V.changedTouches.length; y++) {
1068
+ const E = V.changedTouches[y];
1069
+ h.delete(E.identifier);
1058
1070
  }
1059
- }, T = (V) => {
1060
- const S = V.touches.length;
1061
- if (S === 1) {
1071
+ }, R = (V) => {
1072
+ const y = V.touches.length;
1073
+ if (y === 1) {
1062
1074
  if (!o)
1063
1075
  return;
1064
1076
  V.preventDefault();
1065
- const v = V.touches[0], _ = h.get(v.identifier);
1077
+ const E = V.touches[0], _ = h.get(E.identifier);
1066
1078
  if (!_)
1067
1079
  throw new Error("touchStart is null");
1068
- const I = v.clientX - _.clientX, R = v.clientY - _.clientY;
1069
- x({
1070
- x: I,
1071
- y: R
1072
- }), h.set(v.identifier, v);
1073
- } else if (S === 2) {
1080
+ const S = E.clientX - _.clientX, O = E.clientY - _.clientY;
1081
+ g({
1082
+ x: S,
1083
+ y: O
1084
+ }), h.set(E.identifier, E);
1085
+ } else if (y === 2) {
1074
1086
  V.preventDefault();
1075
- const [v, _] = V.touches, I = h.get(v.identifier), R = h.get(_.identifier);
1076
- if (!I || !R)
1087
+ const [E, _] = V.touches, S = h.get(E.identifier), O = h.get(_.identifier);
1088
+ if (!S || !O)
1077
1089
  throw new Error("intialTouch1 or intialTouch2 is null");
1078
- const Z = qe(
1079
- I,
1080
- R
1081
- ), k = qe(v, _) / Z, { left: a, top: y } = N.getBoundingClientRect();
1082
- z(k * n, {
1083
- x: (v.clientX + _.clientX) / 2 - a,
1084
- y: (v.clientY + _.clientY) / 2 - y
1085
- }), h.set(v.identifier, v), h.set(_.identifier, _);
1090
+ const C = qe(
1091
+ S,
1092
+ O
1093
+ ), s = qe(E, _) / C, { left: j, top: N } = b.getBoundingClientRect();
1094
+ T(s - 1, {
1095
+ x: (E.clientX + _.clientX) / 2 - j,
1096
+ y: (E.clientY + _.clientY) / 2 - N
1097
+ }), h.set(E.identifier, E), h.set(_.identifier, _);
1086
1098
  }
1087
1099
  };
1088
- return j.addEventListener("touchstart", g), j.addEventListener("touchmove", T), j.addEventListener("touchend", C), j.addEventListener("touchcancel", C), () => {
1089
- j.removeEventListener("touchstart", g), j.removeEventListener("touchmove", T), j.removeEventListener("touchend", C), j.removeEventListener("touchcancel", C);
1100
+ return p.addEventListener("touchstart", k), p.addEventListener("touchmove", R), p.addEventListener("touchend", L), p.addEventListener("touchcancel", L), () => {
1101
+ p.removeEventListener("touchstart", k), p.removeEventListener("touchmove", R), p.removeEventListener("touchend", L), p.removeEventListener("touchcancel", L);
1090
1102
  };
1091
- }, [o, x, z, n]), /* @__PURE__ */ t.jsx(
1103
+ }, [o, g, T]), /* @__PURE__ */ t.jsx(
1092
1104
  "div",
1093
1105
  {
1094
1106
  ref: u,
@@ -1099,7 +1111,7 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
1099
1111
  ref: c,
1100
1112
  className: "origin-top-left",
1101
1113
  children: /* @__PURE__ */ t.jsx(
1102
- be,
1114
+ me,
1103
1115
  {
1104
1116
  ...r,
1105
1117
  imgInPlayerWidthRatio: e ? 1 : n
@@ -1116,8 +1128,8 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
1116
1128
  fill: "currentColor"
1117
1129
  }
1118
1130
  ) }) }), xr = ({ hotspot: e }) => {
1119
- const { title: r, icon: n, description: o, position: i, detail: u } = e, { getIconConfig: c } = $e(), l = n ? c(n) : void 0, { extendMode: s, setShownDetails: b } = q(), d = !!u, m = (u == null ? void 0 : u.type) === "image", f = !!r || !!o, E = m ? /* @__PURE__ */ t.jsx(gr, { className: "size-4" }) : /* @__PURE__ */ t.jsx("div", { className: "size-1" }), p = () => {
1120
- m && b({
1131
+ const { title: r, icon: n, description: o, position: i, detail: u } = e, { getIconConfig: c } = $e(), l = n ? c(n) : void 0, { extendMode: a, setShownDetails: w } = q(), d = !!u, m = (u == null ? void 0 : u.type) === "image", f = !!r || !!o, z = m ? /* @__PURE__ */ t.jsx(gr, { className: "size-4" }) : /* @__PURE__ */ t.jsx("div", { className: "size-1" }), v = () => {
1132
+ m && w({
1121
1133
  src: u.src,
1122
1134
  title: r,
1123
1135
  text: o
@@ -1126,7 +1138,7 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
1126
1138
  return /* @__PURE__ */ t.jsxs(
1127
1139
  "div",
1128
1140
  {
1129
- className: O(
1141
+ className: A(
1130
1142
  "group absolute z-hotspot -translate-x-1/2 -translate-y-1/2 hover:z-hotspot-hover",
1131
1143
  d ? "cursor-pointer" : "cursor-help"
1132
1144
  ),
@@ -1134,7 +1146,7 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
1134
1146
  top: `${100 * e.position.y}%`,
1135
1147
  left: `${100 * e.position.x}%`
1136
1148
  },
1137
- onClick: p,
1149
+ onClick: v,
1138
1150
  children: [
1139
1151
  /* @__PURE__ */ t.jsxs(
1140
1152
  "div",
@@ -1148,23 +1160,23 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
1148
1160
  className: "pointer-events-none absolute -z-20 size-8 animate-hotspot-ping rounded-full border-2 border-background"
1149
1161
  }
1150
1162
  ),
1151
- l != null && l.Icon ? /* @__PURE__ */ t.jsx("div", { className: "size-5", children: l.Icon }) : /* @__PURE__ */ t.jsx("div", { className: "p-1", children: E })
1163
+ l != null && l.Icon ? /* @__PURE__ */ t.jsx("div", { className: "size-5", children: l.Icon }) : /* @__PURE__ */ t.jsx("div", { className: "p-1", children: z })
1152
1164
  ]
1153
1165
  }
1154
1166
  ),
1155
1167
  !m && f && /* @__PURE__ */ t.jsx(
1156
1168
  "div",
1157
1169
  {
1158
- className: O(
1170
+ className: A(
1159
1171
  "absolute -z-10 w-max max-w-40 text-pretty rounded-ui bg-background p-2 small:max-w-48",
1160
- s && "large:max-w-56",
1172
+ a && "large:max-w-56",
1161
1173
  i.y < 0.55 ? "-top-1" : "-bottom-1",
1162
1174
  i.x < 0.55 ? "-left-1 pl-6 small:pl-8" : "-right-1 pr-4 small:pr-6",
1163
- "pointer-events-none opacity-0 transition-opacity duration-300 group-hover:pointer-events-auto group-hover:opacity-100"
1175
+ "pointer-events-none opacity-0 transition-opacity duration-200 group-hover:pointer-events-auto group-hover:opacity-100"
1164
1176
  ),
1165
- children: /* @__PURE__ */ t.jsxs("div", { className: "space-y-1", children: [
1166
- r && /* @__PURE__ */ t.jsx("div", { className: "text-sm", children: r }),
1167
- o && /* @__PURE__ */ t.jsx("div", { className: "text-xs", children: o })
1177
+ children: /* @__PURE__ */ t.jsxs("div", { className: "space-y-1 text-pretty", children: [
1178
+ r && /* @__PURE__ */ t.jsx("div", { className: "text-sm font-semibold small:text-base small:font-bold", children: r }),
1179
+ o && /* @__PURE__ */ t.jsx("div", { className: "text-xs text-foreground/65 small:text-sm", children: o })
1168
1180
  ] })
1169
1181
  }
1170
1182
  )
@@ -1214,10 +1226,10 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
1214
1226
  ...i
1215
1227
  }) => {
1216
1228
  const { isShowingDetails: u, showHotspots: c, setItemInteraction: l } = q();
1217
- return /* @__PURE__ */ t.jsx("div", { className: O("relative size-full overflow-hidden", n), children: /* @__PURE__ */ t.jsxs(
1229
+ return /* @__PURE__ */ t.jsx("div", { className: A("relative size-full overflow-hidden", n), children: /* @__PURE__ */ t.jsxs(
1218
1230
  "div",
1219
1231
  {
1220
- className: O(
1232
+ className: A(
1221
1233
  "size-full duration-details",
1222
1234
  u ? "scale-105" : "scale-100"
1223
1235
  ),
@@ -1226,37 +1238,37 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
1226
1238
  fr,
1227
1239
  {
1228
1240
  className: "size-full",
1229
- onLoad: (s) => {
1230
- r !== void 0 && l(r, "ready"), o == null || o(s);
1241
+ onLoad: (a) => {
1242
+ r !== void 0 && l(r, "ready"), o == null || o(a);
1231
1243
  },
1232
1244
  ...i
1233
1245
  }
1234
1246
  ),
1235
- c && (e == null ? void 0 : e.map((s, b) => /* @__PURE__ */ t.jsx(vr, { hotspot: s }, b)))
1247
+ c && (e == null ? void 0 : e.map((a, w) => /* @__PURE__ */ t.jsx(vr, { hotspot: a }, w)))
1236
1248
  ]
1237
1249
  }
1238
1250
  ) });
1239
- }, ve = 10, wr = 15, br = ({
1251
+ }, we = 10, wr = 15, br = ({
1240
1252
  images: e,
1241
1253
  onlyPreload: r
1242
1254
  }) => {
1243
- const { reverse360: n } = J(), { isShowingDetails: o, isZooming: i } = q(), u = i || o, c = $(null), l = $(null), [s, b] = A(0), d = e.length, m = M(() => {
1244
- b((E) => (E - 1 + d) % d);
1255
+ const { reverse360: n } = J(), { isShowingDetails: o, isZooming: i } = q(), u = i || o, c = $(null), l = $(null), [a, w] = D(0), d = e.length, m = M(() => {
1256
+ w((z) => (z - 1 + d) % d);
1245
1257
  }, [d]), f = M(() => {
1246
- b((E) => (E + 1) % d);
1258
+ w((z) => (z + 1) % d);
1247
1259
  }, [d]);
1248
- return P(() => {
1260
+ return Z(() => {
1249
1261
  if (u)
1250
1262
  return;
1251
- const E = c.current, p = l.current;
1252
- if (!E || !p)
1263
+ const z = c.current, v = l.current;
1264
+ if (!z || !v)
1253
1265
  return;
1254
- let x = null, z = [], w = null;
1255
- const N = (a) => {
1256
- z.push(a), z.length > 20 && z.shift();
1257
- }, j = () => {
1258
- const a = Date.now(), y = (() => {
1259
- const Y = Date.now(), W = z.filter(
1266
+ let g = null, I = [], x = null;
1267
+ const T = (s) => {
1268
+ I.push(s), I.length > 20 && I.shift();
1269
+ }, b = () => {
1270
+ const s = Date.now(), j = (() => {
1271
+ const Y = Date.now(), W = I.filter(
1260
1272
  (B) => Y - B.timestamp < 50
1261
1273
  );
1262
1274
  if (W.length < 2)
@@ -1264,114 +1276,114 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
1264
1276
  const G = W[0], X = W[W.length - 1];
1265
1277
  return (X.value - G.value) / (1e-3 * Math.max(X.timestamp - G.timestamp, 1));
1266
1278
  })();
1267
- let L = 0, H = a;
1268
- const D = () => {
1269
- w = requestAnimationFrame(() => {
1270
- const Y = Date.now(), W = (Y - a) / 1e3, G = Math.pow(0.05, W), X = y * G, B = (Y - H) / 1e3;
1271
- if (L += X * B, Math.abs(X) < 5 * ve && Math.abs(L) < ve) {
1272
- w = null;
1279
+ let N = 0, H = s;
1280
+ const F = () => {
1281
+ x = requestAnimationFrame(() => {
1282
+ const Y = Date.now(), W = (Y - s) / 1e3, G = Math.pow(0.05, W), X = j * G, B = (Y - H) / 1e3;
1283
+ if (N += X * B, Math.abs(X) < 5 * we && Math.abs(N) < we) {
1284
+ x = null;
1273
1285
  return;
1274
1286
  }
1275
- Math.abs(L) >= ve && (L > 0 !== n ? f() : m(), L = 0), H = Y, D();
1287
+ Math.abs(N) >= we && (N > 0 !== n ? f() : m(), N = 0), H = Y, F();
1276
1288
  });
1277
1289
  };
1278
- D();
1279
- }, h = () => {
1280
- w && (cancelAnimationFrame(w), w = null);
1281
- }, g = (a) => {
1282
- if (a.button !== 0)
1290
+ F();
1291
+ }, p = () => {
1292
+ x && (cancelAnimationFrame(x), x = null);
1293
+ }, h = (s) => {
1294
+ if (s.button !== 0)
1283
1295
  return;
1284
- a.preventDefault(), a.stopPropagation(), h();
1285
- const y = a.clientX;
1286
- x = y, z = [{ timestamp: Date.now(), value: y }];
1287
- }, C = (a) => {
1288
- if (x === null)
1296
+ s.preventDefault(), s.stopPropagation(), p();
1297
+ const j = s.clientX;
1298
+ g = j, I = [{ timestamp: Date.now(), value: j }];
1299
+ }, k = (s) => {
1300
+ if (g === null)
1289
1301
  return;
1290
- a.stopPropagation();
1291
- const { clientX: y } = a;
1292
- N({ timestamp: Date.now(), value: y });
1293
- const L = y - x;
1294
- Math.abs(L) < ve || (L > 0 !== n ? f() : m(), x = y);
1295
- }, T = () => {
1296
- x !== null && (x = null, j());
1302
+ s.stopPropagation();
1303
+ const { clientX: j } = s;
1304
+ T({ timestamp: Date.now(), value: j });
1305
+ const N = j - g;
1306
+ Math.abs(N) < we || (N > 0 !== n ? f() : m(), g = j);
1307
+ }, L = () => {
1308
+ g !== null && (g = null, b());
1297
1309
  };
1298
- E.addEventListener("mousedown", g), document.addEventListener("mousemove", C), document.addEventListener("mouseleave", T), document.addEventListener("mouseup", T), document.addEventListener("contextmenu", T);
1299
- const V = () => p.getBoundingClientRect().width, S = () => p.scrollWidth / 2 - V() / 2, v = () => {
1300
- const a = S();
1301
- p.scrollLeft = a;
1310
+ z.addEventListener("mousedown", h), document.addEventListener("mousemove", k), document.addEventListener("mouseleave", L), document.addEventListener("mouseup", L), document.addEventListener("contextmenu", L);
1311
+ const R = () => v.getBoundingClientRect().width, V = () => v.scrollWidth / 2 - R() / 2, y = () => {
1312
+ const s = V();
1313
+ v.scrollLeft = s;
1302
1314
  };
1303
- v();
1304
- const _ = () => {
1305
- const a = p.scrollLeft - S();
1306
- Math.abs(a) < wr || (a < 0 !== n ? f() : m(), v());
1315
+ y();
1316
+ const E = () => {
1317
+ const s = v.scrollLeft - V();
1318
+ Math.abs(s) < wr || (s < 0 !== n ? f() : m(), y());
1307
1319
  };
1308
- p.addEventListener("scroll", _);
1309
- let I = null;
1310
- const R = (a) => {
1311
- if (I !== null || a.changedTouches.length !== 1)
1320
+ v.addEventListener("scroll", E);
1321
+ let _ = null;
1322
+ const S = (s) => {
1323
+ if (_ !== null || s.changedTouches.length !== 1)
1312
1324
  return;
1313
- h();
1314
- const { identifier: y, clientX: L } = a.changedTouches[0];
1315
- I = y, x = L, z = [{ timestamp: Date.now(), value: L }];
1316
- }, Z = (a) => {
1317
- if (!x)
1325
+ p();
1326
+ const { identifier: j, clientX: N } = s.changedTouches[0];
1327
+ _ = j, g = N, I = [{ timestamp: Date.now(), value: N }];
1328
+ }, O = (s) => {
1329
+ if (!g)
1318
1330
  return;
1319
- const y = Array.from(a.changedTouches).find(
1320
- ({ identifier: D }) => D === I
1331
+ const j = Array.from(s.changedTouches).find(
1332
+ ({ identifier: F }) => F === _
1321
1333
  );
1322
- if (!y)
1334
+ if (!j)
1323
1335
  return;
1324
- a.preventDefault();
1325
- const { clientX: L } = y;
1326
- N({ timestamp: Date.now(), value: L });
1327
- const H = L - x;
1328
- Math.abs(H) < ve || (H > 0 !== n ? f() : m(), x = L);
1329
- }, k = (a) => {
1330
- !x || !Array.from(a.changedTouches).some(
1331
- ({ identifier: y }) => y === I
1332
- ) || (I = null, x = null, j());
1336
+ s.preventDefault();
1337
+ const { clientX: N } = j;
1338
+ T({ timestamp: Date.now(), value: N });
1339
+ const H = N - g;
1340
+ Math.abs(H) < we || (H > 0 !== n ? f() : m(), g = N);
1341
+ }, C = (s) => {
1342
+ !g || !Array.from(s.changedTouches).some(
1343
+ ({ identifier: j }) => j === _
1344
+ ) || (_ = null, g = null, b());
1333
1345
  };
1334
- return p.addEventListener("touchstart", R), p.addEventListener("touchmove", Z), p.addEventListener("touchend", k), p.addEventListener("touchcancel", k), () => {
1335
- E.removeEventListener("mousedown", g), document.removeEventListener("mousemove", C), document.removeEventListener("mouseleave", T), document.removeEventListener("mouseup", T), document.removeEventListener("contextmenu", T), p.removeEventListener("scroll", _), p.removeEventListener("touchstart", R), p.removeEventListener("touchmove", Z), p.removeEventListener("touchend", k), p.removeEventListener("touchcancel", k);
1346
+ return v.addEventListener("touchstart", S), v.addEventListener("touchmove", O), v.addEventListener("touchend", C), v.addEventListener("touchcancel", C), () => {
1347
+ z.removeEventListener("mousedown", h), document.removeEventListener("mousemove", k), document.removeEventListener("mouseleave", L), document.removeEventListener("mouseup", L), document.removeEventListener("contextmenu", L), v.removeEventListener("scroll", E), v.removeEventListener("touchstart", S), v.removeEventListener("touchmove", O), v.removeEventListener("touchend", C), v.removeEventListener("touchcancel", C);
1336
1348
  };
1337
1349
  }, [f, m, u, n]), /* @__PURE__ */ t.jsx("div", { ref: c, className: "cursor-ew-resize", children: /* @__PURE__ */ t.jsxs("div", { ref: l, className: "overflow-x-scroll no-scrollbar", children: [
1338
- /* @__PURE__ */ t.jsx("div", { className: "sticky left-0 top-0", children: e.map((E, p) => /* @__PURE__ */ t.jsx(
1339
- It,
1340
- {
1341
- ...E,
1342
- className: O(
1343
- p !== s && "pointer-events-none !absolute left-0 top-0 -z-10"
1344
- ),
1345
- onlyPreload: p !== s || r
1346
- },
1347
- E.src
1348
- )) }),
1350
+ /* @__PURE__ */ t.jsxs("div", { className: "sticky left-0 top-0", children: [
1351
+ e.map((z) => /* @__PURE__ */ t.jsx(
1352
+ me,
1353
+ {
1354
+ src: z.src,
1355
+ className: "pointer-events-none !absolute left-0 top-0 -z-10"
1356
+ },
1357
+ z.src
1358
+ )),
1359
+ /* @__PURE__ */ t.jsx(It, { ...e[a], onlyPreload: r })
1360
+ ] }),
1349
1361
  /* @__PURE__ */ t.jsx("div", { className: "pointer-events-none -mt-px h-px w-[calc(100%+1024px)]" })
1350
1362
  ] }) });
1351
1363
  }, yr = ({ images: e, onPlaceholderImageLoaded: r, onSpinImagesLoaded: n, onError: o }) => {
1352
- const i = te(() => e.map(({ src: d }) => d), [e]), [u, c] = A(null), l = u ? [...u.values()].filter((d) => d).length / e.length * 100 : null, s = M(() => {
1364
+ const i = te(() => e.map(({ src: d }) => d), [e]), [u, c] = D(null), l = u ? [...u.values()].filter((d) => d).length / e.length * 100 : null, a = M(() => {
1353
1365
  l === null && c(new Map(i.map((d) => [d, !1])));
1354
- }, [i, l]), b = M((d) => {
1366
+ }, [i, l]), w = M((d) => {
1355
1367
  c((m) => {
1356
1368
  const f = new Map(m);
1357
1369
  return f.set(d, !0), f;
1358
1370
  });
1359
1371
  }, []);
1360
- return P(() => {
1372
+ return Z(() => {
1361
1373
  l === 100 && n();
1362
1374
  }, [l, n]), /* @__PURE__ */ t.jsxs("div", { className: "relative size-full", children: [
1363
1375
  l !== null && l !== 100 && // Add images to DOM to preload them
1364
1376
  /* @__PURE__ */ t.jsx("div", { className: "hidden", children: i.map((d) => /* @__PURE__ */ t.jsx(
1365
- be,
1377
+ me,
1366
1378
  {
1367
1379
  src: d,
1368
- onLoad: () => b(d),
1380
+ onLoad: () => w(d),
1369
1381
  onError: o
1370
1382
  },
1371
1383
  d
1372
1384
  )) }),
1373
1385
  /* @__PURE__ */ t.jsx(
1374
- be,
1386
+ me,
1375
1387
  {
1376
1388
  className: "size-full",
1377
1389
  src: i[0],
@@ -1379,12 +1391,12 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
1379
1391
  }
1380
1392
  ),
1381
1393
  /* @__PURE__ */ t.jsxs("div", { className: "absolute inset-0 flex flex-col items-center justify-center gap-y-4 bg-foreground/35", children: [
1382
- /* @__PURE__ */ t.jsx(Et, { className: "size-20 text-primary" }),
1383
- /* @__PURE__ */ t.jsx(K, { color: "neutral", shape: "icon", onClick: s, children: /* @__PURE__ */ t.jsx(Ye, { className: "size-full" }) }),
1394
+ /* @__PURE__ */ t.jsx(Nt, { className: "size-20 text-primary" }),
1395
+ /* @__PURE__ */ t.jsx(K, { color: "neutral", shape: "icon", onClick: a, children: /* @__PURE__ */ t.jsx(Ye, { className: "size-full" }) }),
1384
1396
  /* @__PURE__ */ t.jsx(
1385
1397
  "div",
1386
1398
  {
1387
- className: O(
1399
+ className: A(
1388
1400
  "relative h-1 w-3/5 overflow-hidden rounded-full bg-background",
1389
1401
  l === null && "invisible"
1390
1402
  ),
@@ -1400,10 +1412,10 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
1400
1412
  ] })
1401
1413
  ] });
1402
1414
  }, jr = (e) => {
1403
- const { itemIndex: r } = e, { setItemInteraction: n } = q(), [o, i] = A();
1404
- return P(() => {
1415
+ const { itemIndex: r } = e, { setItemInteraction: n } = q(), [o, i] = D();
1416
+ return Z(() => {
1405
1417
  o === null || o === "error" || n(r, o === "spin" ? "running" : "ready");
1406
- }, [r, n, o]), o === "error" ? /* @__PURE__ */ t.jsx(Nt, { title: "Failed to fetch 360" }) : o !== "spin" ? /* @__PURE__ */ t.jsx(
1418
+ }, [r, n, o]), o === "error" ? /* @__PURE__ */ t.jsx(Ct, { title: "Failed to fetch 360" }) : o !== "spin" ? /* @__PURE__ */ t.jsx(
1407
1419
  yr,
1408
1420
  {
1409
1421
  ...e,
@@ -1412,7 +1424,7 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
1412
1424
  onError: () => i("error")
1413
1425
  }
1414
1426
  ) : /* @__PURE__ */ t.jsx(br, { ...e });
1415
- }, kr = ({ className: e = "", ...r }) => /* @__PURE__ */ t.jsx(K, { color: "neutral", shape: "icon", className: e, ...r, children: /* @__PURE__ */ t.jsx(Ye, { className: "size-full" }) }), Nr = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_PAUSE", children: /* @__PURE__ */ t.jsx(
1427
+ }, kr = ({ className: e = "", ...r }) => /* @__PURE__ */ t.jsx(K, { color: "neutral", shape: "icon", className: e, ...r, children: /* @__PURE__ */ t.jsx(Ye, { className: "size-full" }) }), Cr = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_PAUSE", children: /* @__PURE__ */ t.jsx(
1416
1428
  "svg",
1417
1429
  {
1418
1430
  className: e,
@@ -1429,7 +1441,7 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
1429
1441
  }
1430
1442
  )
1431
1443
  }
1432
- ) }), Cr = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_VOLUME", children: /* @__PURE__ */ t.jsx(
1444
+ ) }), Er = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_VOLUME", children: /* @__PURE__ */ t.jsx(
1433
1445
  "svg",
1434
1446
  {
1435
1447
  className: e,
@@ -1446,7 +1458,7 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
1446
1458
  }
1447
1459
  )
1448
1460
  }
1449
- ) }), Er = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_VOLUME_OFF", children: /* @__PURE__ */ t.jsx(
1461
+ ) }), Nr = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_VOLUME_OFF", children: /* @__PURE__ */ t.jsx(
1450
1462
  "svg",
1451
1463
  {
1452
1464
  className: e,
@@ -1469,104 +1481,104 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
1469
1481
  className: "size-full rounded-ui-sm bg-background transition-transform",
1470
1482
  style: { transform: `translateX(-${100 * (1 - e)}%)` }
1471
1483
  }
1472
- ) }), Lr = 3e3, zr = ({ src: e, poster: r, itemIndex: n }) => {
1484
+ ) }), Lr = 3e3, _r = ({ src: e, poster: r, itemIndex: n }) => {
1473
1485
  const { carrouselItemIndex: o, setItemInteraction: i } = q(), u = $(null), c = $(null), l = M(() => {
1474
1486
  if (!c.current)
1475
1487
  throw new Error("videoRef.current is null");
1476
1488
  return c.current;
1477
1489
  }, []);
1478
- P(() => {
1490
+ Z(() => {
1479
1491
  i(n, "ready");
1480
1492
  }, [n, i]);
1481
- const s = M(() => {
1493
+ const a = M(() => {
1482
1494
  l().play();
1483
- }, [l]), b = M(() => {
1495
+ }, [l]), w = M(() => {
1484
1496
  l().pause();
1485
1497
  }, [l]);
1486
- P(() => {
1487
- o === n || b();
1488
- }, [o, n, b]);
1489
- const [d, m] = A(!1), [f, E] = A(!0), p = () => {
1498
+ Z(() => {
1499
+ o === n || w();
1500
+ }, [o, n, w]);
1501
+ const [d, m] = D(!1), [f, z] = D(!0), v = () => {
1490
1502
  m(!0), i(n, "running");
1491
- }, x = () => {
1503
+ }, g = () => {
1492
1504
  m(!1), i(n, "ready");
1493
- }, z = () => {
1494
- E(!1);
1495
- }, w = () => {
1496
- E(!0);
1497
- }, [N, j] = A(null), h = (a) => {
1498
- const y = l(), L = a.currentTarget.getBoundingClientRect(), H = (a.clientX - L.left) / L.width, D = Math.min(1, Math.max(0, H));
1499
- y.volume = D, y.muted = !1;
1500
- }, g = (a) => {
1501
- const y = l();
1502
- y.muted = a;
1505
+ }, I = () => {
1506
+ z(!1);
1507
+ }, x = () => {
1508
+ z(!0);
1509
+ }, [T, b] = D(null), p = (s) => {
1510
+ const j = l(), N = s.currentTarget.getBoundingClientRect(), H = (s.clientX - N.left) / N.width, F = Math.min(1, Math.max(0, H));
1511
+ j.volume = F, j.muted = !1;
1512
+ }, h = (s) => {
1513
+ const j = l();
1514
+ j.muted = s;
1503
1515
  };
1504
- P(() => {
1505
- const a = c.current;
1506
- if (!a)
1516
+ Z(() => {
1517
+ const s = c.current;
1518
+ if (!s)
1507
1519
  return;
1508
- const y = () => {
1509
- j({
1510
- volume: a.volume,
1511
- isMuted: a.muted
1520
+ const j = () => {
1521
+ b({
1522
+ volume: s.volume,
1523
+ isMuted: s.muted
1512
1524
  });
1513
1525
  };
1514
- return y(), a.addEventListener("volumechange", y), () => {
1515
- a.removeEventListener("volumechange", y);
1526
+ return j(), s.addEventListener("volumechange", j), () => {
1527
+ s.removeEventListener("volumechange", j);
1516
1528
  };
1517
1529
  }, []);
1518
- const [C, T] = A(null), V = C ? C.currentTime / C.duration : 0;
1519
- P(() => {
1520
- const a = c.current;
1521
- if (!a) return;
1522
- const y = () => {
1523
- const L = a.currentTime, H = a.duration;
1524
- isNaN(L) || isNaN(H) || T({
1525
- currentTime: L,
1530
+ const [k, L] = D(null), R = k ? k.currentTime / k.duration : 0;
1531
+ Z(() => {
1532
+ const s = c.current;
1533
+ if (!s) return;
1534
+ const j = () => {
1535
+ const N = s.currentTime, H = s.duration;
1536
+ isNaN(N) || isNaN(H) || L({
1537
+ currentTime: N,
1526
1538
  duration: H
1527
1539
  });
1528
1540
  };
1529
- return y(), a.addEventListener("timeupdate", y), () => {
1530
- a.removeEventListener("timeupdate", y);
1541
+ return j(), s.addEventListener("timeupdate", j), () => {
1542
+ s.removeEventListener("timeupdate", j);
1531
1543
  };
1532
1544
  }, []);
1533
- const S = (a) => {
1534
- const y = l(), L = a.currentTarget.getBoundingClientRect(), H = (a.clientX - L.left) / L.width, D = y.duration * H;
1535
- y.currentTime = D;
1536
- }, v = (a) => {
1537
- const y = Math.floor(a % 3600 / 60), L = Math.floor(a % 60);
1538
- return `${y}:${L.toString().padStart(2, "0")}`;
1539
- }, [_, I] = A(!1), R = $(void 0), Z = M(
1540
- () => clearTimeout(R.current),
1545
+ const V = (s) => {
1546
+ const j = l(), N = s.currentTarget.getBoundingClientRect(), H = (s.clientX - N.left) / N.width, F = j.duration * H;
1547
+ j.currentTime = F;
1548
+ }, y = (s) => {
1549
+ const j = Math.floor(s % 3600 / 60), N = Math.floor(s % 60);
1550
+ return `${j}:${N.toString().padStart(2, "0")}`;
1551
+ }, [E, _] = D(!1), S = $(void 0), O = M(
1552
+ () => clearTimeout(S.current),
1541
1553
  []
1542
- ), k = M(() => {
1543
- Z(), R.current = setTimeout(() => {
1544
- I(!1);
1554
+ ), C = M(() => {
1555
+ O(), S.current = setTimeout(() => {
1556
+ _(!1);
1545
1557
  }, Lr);
1546
- }, [Z]);
1547
- return P(() => {
1548
- const a = u.current, y = c.current;
1549
- if (!a || !y)
1558
+ }, [O]);
1559
+ return Z(() => {
1560
+ const s = u.current, j = c.current;
1561
+ if (!s || !j)
1550
1562
  return;
1551
- const L = () => {
1552
- k(), I(!0);
1563
+ const N = () => {
1564
+ C(), _(!0);
1553
1565
  }, H = () => {
1554
- Z(), I(!1);
1566
+ O(), _(!1);
1555
1567
  };
1556
- let D = !1;
1568
+ let F = !1;
1557
1569
  const Y = () => {
1558
- D = !0;
1570
+ F = !0;
1559
1571
  }, W = () => {
1560
- D && (D = !1, b());
1572
+ F && (F = !1, w());
1561
1573
  }, G = () => {
1562
- D = !1, L();
1574
+ F = !1, N();
1563
1575
  }, X = (B) => {
1564
- B.preventDefault(), B.touches.length === 1 && (k(), I((ne) => !ne));
1576
+ B.preventDefault(), B.touches.length === 1 && (C(), _((ne) => !ne));
1565
1577
  };
1566
- return a.addEventListener("mousedown", Y), a.addEventListener("mouseup", W), a.addEventListener("mouseenter", L), a.addEventListener("mousemove", G), a.addEventListener("mouseleave", H), y.addEventListener("touchstart", X), () => {
1567
- a.removeEventListener("mousedown", Y), a.removeEventListener("mouseup", W), a.removeEventListener("mouseenter", L), a.removeEventListener("mousemove", L), a.removeEventListener("mouseleave", H), y.removeEventListener("touchstart", X);
1578
+ return s.addEventListener("mousedown", Y), s.addEventListener("mouseup", W), s.addEventListener("mouseenter", N), s.addEventListener("mousemove", G), s.addEventListener("mouseleave", H), j.addEventListener("touchstart", X), () => {
1579
+ s.removeEventListener("mousedown", Y), s.removeEventListener("mouseup", W), s.removeEventListener("mouseenter", N), s.removeEventListener("mousemove", N), s.removeEventListener("mouseleave", H), j.removeEventListener("touchstart", X);
1568
1580
  };
1569
- }, [Z, b, k]), /* @__PURE__ */ t.jsxs("div", { ref: u, className: "relative size-full", children: [
1581
+ }, [O, w, C]), /* @__PURE__ */ t.jsxs("div", { ref: u, className: "relative size-full", children: [
1570
1582
  /* @__PURE__ */ t.jsx(
1571
1583
  "video",
1572
1584
  {
@@ -1576,22 +1588,22 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
1576
1588
  poster: r,
1577
1589
  disablePictureInPicture: !0,
1578
1590
  playsInline: !0,
1579
- onPlay: p,
1580
- onPause: x,
1581
- onEnded: x,
1582
- onCanPlay: z,
1583
- onWaiting: w
1591
+ onPlay: v,
1592
+ onPause: g,
1593
+ onEnded: g,
1594
+ onCanPlay: I,
1595
+ onWaiting: x
1584
1596
  }
1585
1597
  ),
1586
1598
  d ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1587
1599
  /* @__PURE__ */ t.jsxs(
1588
1600
  "div",
1589
1601
  {
1590
- className: O(
1602
+ className: A(
1591
1603
  "absolute inset-x-0 bottom-0 cursor-auto space-y-2 bg-gradient-to-t from-foreground to-transparent p-4 pr-12 pt-8 transition-opacity duration-300",
1592
- _ ? "pointer-events-auto opacity-100" : "pointer-events-none opacity-0"
1604
+ E ? "pointer-events-auto opacity-100" : "pointer-events-none opacity-0"
1593
1605
  ),
1594
- onMouseDownCapture: (a) => a.stopPropagation(),
1606
+ onMouseDownCapture: (s) => s.stopPropagation(),
1595
1607
  children: [
1596
1608
  /* @__PURE__ */ t.jsxs("div", { className: "flex items-center justify-between text-background", children: [
1597
1609
  /* @__PURE__ */ t.jsxs(
@@ -1605,20 +1617,20 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
1605
1617
  shape: "icon",
1606
1618
  variant: "ghost",
1607
1619
  color: "neutral",
1608
- onClick: b,
1609
- children: /* @__PURE__ */ t.jsx(Nr, { className: "size-full" })
1620
+ onClick: w,
1621
+ children: /* @__PURE__ */ t.jsx(Cr, { className: "size-full" })
1610
1622
  }
1611
1623
  ),
1612
- C && /* @__PURE__ */ t.jsxs("span", { className: "text-sm", children: [
1613
- v(C.currentTime),
1624
+ k && /* @__PURE__ */ t.jsxs("span", { className: "text-sm", children: [
1625
+ y(k.currentTime),
1614
1626
  " /",
1615
1627
  " ",
1616
- v(C.duration)
1628
+ y(k.duration)
1617
1629
  ] })
1618
1630
  ]
1619
1631
  }
1620
1632
  ),
1621
- N && /* @__PURE__ */ t.jsxs(
1633
+ T && /* @__PURE__ */ t.jsxs(
1622
1634
  "div",
1623
1635
  {
1624
1636
  className: "group/volume flex items-center gap-x-4 rounded-ui-md p-2 transition-colors hover:bg-foreground/25",
@@ -1626,17 +1638,17 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
1626
1638
  /* @__PURE__ */ t.jsx(
1627
1639
  "div",
1628
1640
  {
1629
- className: `w-12 cursor-pointer py-1 opacity-0 transition-opacity ${N.isMuted ? "group-hover/volume:opacity-50" : "group-hover/volume:opacity-100"}`,
1630
- onClick: h,
1631
- children: /* @__PURE__ */ t.jsx(Je, { progress: N.volume })
1641
+ className: `w-12 cursor-pointer py-1 opacity-0 transition-opacity ${T.isMuted ? "group-hover/volume:opacity-50" : "group-hover/volume:opacity-100"}`,
1642
+ onClick: p,
1643
+ children: /* @__PURE__ */ t.jsx(Je, { progress: T.volume })
1632
1644
  }
1633
1645
  ),
1634
1646
  /* @__PURE__ */ t.jsx(
1635
1647
  "div",
1636
1648
  {
1637
1649
  className: "size-5 cursor-pointer",
1638
- onClick: () => g(!N.isMuted),
1639
- children: N.isMuted ? /* @__PURE__ */ t.jsx(Er, { className: "size-full" }) : /* @__PURE__ */ t.jsx(Cr, { className: "size-full" })
1650
+ onClick: () => h(!T.isMuted),
1651
+ children: T.isMuted ? /* @__PURE__ */ t.jsx(Nr, { className: "size-full" }) : /* @__PURE__ */ t.jsx(Er, { className: "size-full" })
1640
1652
  }
1641
1653
  )
1642
1654
  ]
@@ -1647,8 +1659,8 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
1647
1659
  "div",
1648
1660
  {
1649
1661
  className: "cursor-pointer py-1",
1650
- onClick: S,
1651
- children: /* @__PURE__ */ t.jsx(Je, { progress: V })
1662
+ onClick: V,
1663
+ children: /* @__PURE__ */ t.jsx(Je, { progress: R })
1652
1664
  }
1653
1665
  )
1654
1666
  ]
@@ -1658,18 +1670,18 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
1658
1670
  "div",
1659
1671
  {
1660
1672
  className: "pointer-events-none absolute inset-0 flex items-center justify-center bg-foreground/25",
1661
- children: /* @__PURE__ */ t.jsx(Ct, { size: "lg" })
1673
+ children: /* @__PURE__ */ t.jsx(Et, { size: "lg" })
1662
1674
  }
1663
1675
  )
1664
1676
  ] }) : /* @__PURE__ */ t.jsx(
1665
1677
  "div",
1666
1678
  {
1667
1679
  className: "absolute inset-0 flex items-center justify-center bg-foreground/25",
1668
- children: /* @__PURE__ */ t.jsx(kr, { onClick: s })
1680
+ children: /* @__PURE__ */ t.jsx(kr, { onClick: a })
1669
1681
  }
1670
1682
  )
1671
1683
  ] });
1672
- }, _r = ({ index: e, item: r, isShown: n, lazy: o }) => {
1684
+ }, zr = ({ index: e, item: r, isShown: n, lazy: o }) => {
1673
1685
  const { type: i } = r;
1674
1686
  let u;
1675
1687
  if (o)
@@ -1680,7 +1692,7 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
1680
1692
  u = /* @__PURE__ */ t.jsx(It, { itemIndex: e, onlyPreload: !n, ...r });
1681
1693
  break;
1682
1694
  case "video":
1683
- u = /* @__PURE__ */ t.jsx(zr, { itemIndex: e, ...r });
1695
+ u = /* @__PURE__ */ t.jsx(_r, { itemIndex: e, ...r });
1684
1696
  break;
1685
1697
  case "360":
1686
1698
  u = /* @__PURE__ */ t.jsx(
@@ -1695,7 +1707,7 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
1695
1707
  }
1696
1708
  return u;
1697
1709
  }, Ir = (e) => {
1698
- P(() => {
1710
+ Z(() => {
1699
1711
  const r = (n) => {
1700
1712
  n.key === "Escape" && e();
1701
1713
  };
@@ -1785,7 +1797,7 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
1785
1797
  d: "M3.33325 10.6668H5.33325V12.6668H6.66659V9.3335H3.33325V10.6668ZM5.33325 5.3335H3.33325V6.66683H6.66659V3.3335H5.33325V5.3335ZM9.33325 12.6668H10.6666V10.6668H12.6666V9.3335H9.33325V12.6668ZM10.6666 5.3335V3.3335H9.33325V6.66683H12.6666V5.3335H10.6666Z",
1786
1798
  fill: "currentColor"
1787
1799
  }
1788
- ) }) }), Fr = ({
1800
+ ) }) }), Pr = ({
1789
1801
  enabled: e,
1790
1802
  onToggle: r,
1791
1803
  label: n,
@@ -1794,7 +1806,7 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
1794
1806
  }) => /* @__PURE__ */ t.jsxs(
1795
1807
  "label",
1796
1808
  {
1797
- className: O(
1809
+ className: A(
1798
1810
  "flex cursor-pointer items-center justify-center gap-x-2",
1799
1811
  o
1800
1812
  ),
@@ -1812,14 +1824,14 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
1812
1824
  /* @__PURE__ */ t.jsx(
1813
1825
  "div",
1814
1826
  {
1815
- className: O(
1827
+ className: A(
1816
1828
  "flex h-5 w-8 items-center justify-center rounded-full transition-colors",
1817
1829
  e ? "bg-primary" : "bg-background/60"
1818
1830
  ),
1819
1831
  children: /* @__PURE__ */ t.jsx(
1820
1832
  "div",
1821
1833
  {
1822
- className: O(
1834
+ className: A(
1823
1835
  "flex size-4 items-center justify-center rounded-full p-0.5 transition",
1824
1836
  e ? "translate-x-1.5 bg-primary-foreground text-primary" : "-translate-x-1.5 bg-background text-foreground"
1825
1837
  ),
@@ -1830,7 +1842,7 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
1830
1842
  )
1831
1843
  ]
1832
1844
  }
1833
- ), Pr = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_BURGER", children: /* @__PURE__ */ t.jsx(
1845
+ ), Ar = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_BURGER", children: /* @__PURE__ */ t.jsx(
1834
1846
  "svg",
1835
1847
  {
1836
1848
  className: e,
@@ -1847,8 +1859,8 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
1847
1859
  }
1848
1860
  )
1849
1861
  }
1850
- ) }), Ar = ({ sharedClassName: e }) => {
1851
- const { categories: r } = re(), { displayedCategoryId: n, changeCategory: o } = q(), [i, u] = A(!1), c = () => {
1862
+ ) }), Zr = ({ sharedClassName: e }) => {
1863
+ const { categories: r } = re(), { displayedCategoryId: n, changeCategory: o } = q(), [i, u] = D(!1), c = () => {
1852
1864
  u(!i);
1853
1865
  }, l = () => {
1854
1866
  u(!1);
@@ -1857,14 +1869,14 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
1857
1869
  i && /* @__PURE__ */ t.jsx(
1858
1870
  "div",
1859
1871
  {
1860
- className: O(e, "inset-0 small:hidden"),
1872
+ className: A(e, "inset-0 small:hidden"),
1861
1873
  onClick: l
1862
1874
  }
1863
1875
  ),
1864
1876
  /* @__PURE__ */ t.jsxs(
1865
1877
  "div",
1866
1878
  {
1867
- className: O(
1879
+ className: A(
1868
1880
  e,
1869
1881
  ue("top-left"),
1870
1882
  "flex gap-x-2 small:hidden"
@@ -1876,22 +1888,22 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
1876
1888
  shape: "icon",
1877
1889
  color: i ? "primary" : "neutral",
1878
1890
  onClick: c,
1879
- children: /* @__PURE__ */ t.jsx(Pr, {})
1891
+ children: /* @__PURE__ */ t.jsx(Ar, {})
1880
1892
  }
1881
1893
  ),
1882
- i && /* @__PURE__ */ t.jsx("div", { className: "rounded-ui-md bg-background", children: /* @__PURE__ */ t.jsx("ul", { className: "space-y-0.5 p-1", children: r.map(({ id: s, title: b }) => /* @__PURE__ */ t.jsx(
1894
+ i && /* @__PURE__ */ t.jsx("div", { className: "rounded-ui-md bg-background", children: /* @__PURE__ */ t.jsx("ul", { className: "space-y-0.5 p-1", children: r.map(({ id: a, title: w }) => /* @__PURE__ */ t.jsx(
1883
1895
  "li",
1884
1896
  {
1885
- className: O(
1897
+ className: A(
1886
1898
  "cursor-pointer rounded-ui px-2 py-1 text-sm font-bold transition-colors hover:bg-primary/30",
1887
- s === n && "bg-primary/50"
1899
+ a === n && "bg-primary/50"
1888
1900
  ),
1889
1901
  onClick: () => {
1890
- o(s), u(!1);
1902
+ o(a), u(!1);
1891
1903
  },
1892
- children: b
1904
+ children: w
1893
1905
  },
1894
- s
1906
+ a
1895
1907
  )) }) })
1896
1908
  ]
1897
1909
  }
@@ -1899,24 +1911,24 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
1899
1911
  /* @__PURE__ */ t.jsx(
1900
1912
  "div",
1901
1913
  {
1902
- className: O(
1914
+ className: A(
1903
1915
  e,
1904
1916
  bt("top"),
1905
1917
  "w-full overflow-x-auto max-small:hidden"
1906
1918
  ),
1907
- children: /* @__PURE__ */ t.jsx("div", { className: "mx-auto flex w-fit gap-x-1 rounded-ui-md bg-background p-1 shadow", children: r.map(({ id: s, title: b }) => /* @__PURE__ */ t.jsx(
1919
+ children: /* @__PURE__ */ t.jsx("div", { className: "mx-auto flex w-fit gap-x-1 rounded-ui-md bg-background p-1 shadow", children: r.map(({ id: a, title: w }) => /* @__PURE__ */ t.jsx(
1908
1920
  K,
1909
1921
  {
1910
- variant: s === n ? "fill" : "ghost",
1911
- onClick: () => o(s),
1912
- children: b
1922
+ variant: a === n ? "fill" : "ghost",
1923
+ onClick: () => o(a),
1924
+ children: w
1913
1925
  },
1914
- s
1926
+ a
1915
1927
  )) })
1916
1928
  }
1917
1929
  )
1918
1930
  ] });
1919
- }, Zr = () => {
1931
+ }, Fr = () => {
1920
1932
  const { flatten: e, infiniteCarrousel: r, permanentGallery: n } = J(), {
1921
1933
  items: { length: o },
1922
1934
  aspectRatioStyle: i
@@ -1924,42 +1936,42 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
1924
1936
  slidable: u,
1925
1937
  masterItemIndex: c,
1926
1938
  prevItem: l,
1927
- nextItem: s,
1928
- showGalleryControls: b,
1939
+ nextItem: a,
1940
+ showGalleryControls: w,
1929
1941
  enableHotspotsControl: d,
1930
1942
  showHotspots: m,
1931
1943
  toggleHotspots: f,
1932
- showGallery: E,
1933
- toggleGallery: p,
1934
- extendMode: x,
1935
- toggleExtendMode: z,
1936
- shownDetails: w,
1937
- isShowingDetails: N,
1938
- resetShownDetails: j,
1939
- showZoomControls: h,
1940
- isZooming: g,
1941
- canZoomIn: C,
1942
- zoomIn: T,
1943
- canZoomOut: V,
1944
- zoomOut: S,
1945
- resetView: v
1946
- } = q(), _ = M(
1947
- (Z) => {
1948
- Mr(Z) && j();
1944
+ showGallery: z,
1945
+ toggleGallery: v,
1946
+ extendMode: g,
1947
+ toggleExtendMode: I,
1948
+ shownDetails: x,
1949
+ isShowingDetails: T,
1950
+ resetShownDetails: b,
1951
+ showZoomControls: p,
1952
+ isZooming: h,
1953
+ canZoomIn: k,
1954
+ zoomIn: L,
1955
+ canZoomOut: R,
1956
+ zoomOut: V,
1957
+ resetView: y
1958
+ } = q(), E = M(
1959
+ (O) => {
1960
+ Mr(O) && b();
1949
1961
  },
1950
- [j]
1962
+ [b]
1951
1963
  );
1952
- Ir(j);
1953
- const I = "absolute z-overlay", R = `transition-opacity ${b ? "opacity-100" : "opacity-0 !pointer-events-none"}`;
1964
+ Ir(b);
1965
+ const _ = "absolute z-overlay", S = `transition-opacity ${w ? "opacity-100" : "opacity-0 !pointer-events-none"}`;
1954
1966
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1955
- !e && !g && /* @__PURE__ */ t.jsx(Ar, { sharedClassName: I }),
1956
- u && !g && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1967
+ !e && !h && /* @__PURE__ */ t.jsx(Zr, { sharedClassName: _ }),
1968
+ u && !h && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1957
1969
  /* @__PURE__ */ t.jsx(
1958
1970
  K,
1959
1971
  {
1960
1972
  shape: "icon",
1961
1973
  color: "neutral",
1962
- className: O(I, ue("middle-left")),
1974
+ className: A(_, ue("middle-left")),
1963
1975
  onClick: l,
1964
1976
  disabled: !r && c <= 0,
1965
1977
  children: /* @__PURE__ */ t.jsx(U, { customizationKey: "CONTROLS_ARROW_LEFT", children: /* @__PURE__ */ t.jsx(Qe, { className: "size-full rotate-180" }) })
@@ -1970,8 +1982,8 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
1970
1982
  {
1971
1983
  shape: "icon",
1972
1984
  color: "neutral",
1973
- className: O(I, ue("middle-right")),
1974
- onClick: s,
1985
+ className: A(_, ue("middle-right")),
1986
+ onClick: a,
1975
1987
  disabled: !r && c >= o - 1,
1976
1988
  children: /* @__PURE__ */ t.jsx(U, { customizationKey: "CONTROLS_ARROW_RIGHT", children: /* @__PURE__ */ t.jsx(Qe, { className: "size-full" }) })
1977
1989
  }
@@ -1980,29 +1992,29 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
1980
1992
  /* @__PURE__ */ t.jsxs(
1981
1993
  "div",
1982
1994
  {
1983
- className: O(
1984
- I,
1995
+ className: A(
1996
+ _,
1985
1997
  ue("bottom-fullW"),
1986
1998
  "pointer-events-none grid grid-cols-[auto,1fr,auto] items-end *:pointer-events-auto small:gap-x-2"
1987
1999
  ),
1988
2000
  children: [
1989
- !n && o > 1 && !g && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2001
+ !n && o > 1 && !h && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1990
2002
  /* @__PURE__ */ t.jsx(
1991
2003
  K,
1992
2004
  {
1993
- className: R,
2005
+ className: S,
1994
2006
  variant: "fill",
1995
- color: E ? "primary" : "neutral",
2007
+ color: z ? "primary" : "neutral",
1996
2008
  shape: "icon",
1997
- onClick: p,
2009
+ onClick: v,
1998
2010
  children: /* @__PURE__ */ t.jsx(U, { customizationKey: "CONTROLS_GALLERY", children: /* @__PURE__ */ t.jsx(Vr, { className: "size-full" }) })
1999
2011
  }
2000
2012
  ),
2001
- E && /* @__PURE__ */ t.jsx(
2002
- zt,
2013
+ z && /* @__PURE__ */ t.jsx(
2014
+ _t,
2003
2015
  {
2004
- className: O(
2005
- R,
2016
+ className: A(
2017
+ S,
2006
2018
  "[mask-image:linear-gradient(to_left,transparent_0px,black_4px,black_calc(100%-4px),transparent_100%)]"
2007
2019
  ),
2008
2020
  containerClassName: "mx-1"
@@ -2010,16 +2022,16 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
2010
2022
  )
2011
2023
  ] }),
2012
2024
  /* @__PURE__ */ t.jsxs("div", { className: "col-start-3 flex flex-col items-end gap-y-1 small:gap-y-2", children: [
2013
- d && !g && /* @__PURE__ */ t.jsx(Fr, { enabled: m, onToggle: f, children: /* @__PURE__ */ t.jsx(Sr, { className: "size-full" }) }),
2014
- h && /* @__PURE__ */ t.jsxs("div", { className: "max-small:hidden", children: [
2025
+ d && !h && /* @__PURE__ */ t.jsx(Pr, { enabled: m, onToggle: f, children: /* @__PURE__ */ t.jsx(Sr, { className: "size-full" }) }),
2026
+ p && /* @__PURE__ */ t.jsxs("div", { className: "max-small:hidden", children: [
2015
2027
  /* @__PURE__ */ t.jsx(
2016
2028
  K,
2017
2029
  {
2018
2030
  className: "rounded-b-none",
2019
2031
  color: "neutral",
2020
2032
  shape: "icon",
2021
- disabled: !C,
2022
- onClick: T,
2033
+ disabled: !k,
2034
+ onClick: L,
2023
2035
  children: /* @__PURE__ */ t.jsx(Hr, { className: "size-full" })
2024
2036
  }
2025
2037
  ),
@@ -2030,8 +2042,8 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
2030
2042
  className: "rounded-t-none",
2031
2043
  color: "neutral",
2032
2044
  shape: "icon",
2033
- disabled: !V,
2034
- onClick: S,
2045
+ disabled: !R,
2046
+ onClick: V,
2035
2047
  children: /* @__PURE__ */ t.jsx(Rr, { className: "size-full" })
2036
2048
  }
2037
2049
  )
@@ -2040,10 +2052,10 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
2040
2052
  K,
2041
2053
  {
2042
2054
  variant: "fill",
2043
- color: x ? "primary" : "neutral",
2055
+ color: g ? "primary" : "neutral",
2044
2056
  shape: "icon",
2045
- onClick: z,
2046
- children: x ? /* @__PURE__ */ t.jsx(Or, { className: "size-full" }) : /* @__PURE__ */ t.jsx(Tr, { className: "size-full" })
2057
+ onClick: I,
2058
+ children: g ? /* @__PURE__ */ t.jsx(Or, { className: "size-full" }) : /* @__PURE__ */ t.jsx(Tr, { className: "size-full" })
2047
2059
  }
2048
2060
  )
2049
2061
  ] })
@@ -2053,55 +2065,55 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
2053
2065
  /* @__PURE__ */ t.jsx(
2054
2066
  "div",
2055
2067
  {
2056
- className: O(
2057
- I,
2068
+ className: A(
2069
+ _,
2058
2070
  "inset-0 flex justify-end overflow-hidden bg-foreground/60 transition-opacity duration-details",
2059
- N ? "opacity-100" : "pointer-events-none opacity-0"
2071
+ T ? "opacity-100" : "pointer-events-none opacity-0"
2060
2072
  ),
2061
- onClick: _,
2073
+ onClick: E,
2062
2074
  children: /* @__PURE__ */ t.jsx(
2063
2075
  "div",
2064
2076
  {
2065
- className: O(
2077
+ className: A(
2066
2078
  "h-full w-3/5 bg-background transition-transform duration-details",
2067
- N ? "translate-x-0" : "translate-x-full"
2079
+ T ? "translate-x-0" : "translate-x-full"
2068
2080
  ),
2069
- children: !!w && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2081
+ children: !!x && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2070
2082
  /* @__PURE__ */ t.jsx(
2071
- be,
2083
+ me,
2072
2084
  {
2073
2085
  className: "w-full bg-foreground/65",
2074
2086
  style: i,
2075
- src: w.src,
2087
+ src: x.src,
2076
2088
  imgInPlayerWidthRatio: 0.6
2077
2089
  }
2078
2090
  ),
2079
2091
  /* @__PURE__ */ t.jsxs(
2080
2092
  "div",
2081
2093
  {
2082
- className: O(
2083
- "space-y-1 p-1.5 small:p-2",
2084
- x && "large:p-3"
2094
+ className: A(
2095
+ "space-y-1 px-2 py-1 small:p-3",
2096
+ g && "large:p-4"
2085
2097
  ),
2086
2098
  children: [
2087
- w.title && /* @__PURE__ */ t.jsx(
2099
+ x.title && /* @__PURE__ */ t.jsx(
2088
2100
  "span",
2089
2101
  {
2090
- className: O(
2091
- "text-sm small:text-base",
2092
- x && "large:text-lg"
2102
+ className: A(
2103
+ "text-sm font-semibold small:text-base small:font-bold",
2104
+ g && "large:text-lg"
2093
2105
  ),
2094
- children: w.title
2106
+ children: x.title
2095
2107
  }
2096
2108
  ),
2097
- w.text && /* @__PURE__ */ t.jsx(
2109
+ x.text && /* @__PURE__ */ t.jsx(
2098
2110
  "p",
2099
2111
  {
2100
- className: O(
2101
- "text-xs small:text-sm",
2102
- x && "large:text-base"
2112
+ className: A(
2113
+ "text-xs text-foreground/65 small:text-sm",
2114
+ g && "large:text-base"
2103
2115
  ),
2104
- children: w.text
2116
+ children: x.text
2105
2117
  }
2106
2118
  )
2107
2119
  ]
@@ -2112,11 +2124,11 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
2112
2124
  )
2113
2125
  }
2114
2126
  ),
2115
- (g || N) && /* @__PURE__ */ t.jsx(
2127
+ (h || T) && /* @__PURE__ */ t.jsx(
2116
2128
  kt,
2117
2129
  {
2118
- className: O(I, ue("top-right")),
2119
- onClick: v
2130
+ className: A(_, ue("top-right")),
2131
+ onClick: y
2120
2132
  }
2121
2133
  )
2122
2134
  ] });
@@ -2125,202 +2137,203 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
2125
2137
  slidable: u,
2126
2138
  carrouselItemIndex: c,
2127
2139
  setCarrouselItemIndex: l,
2128
- itemIndexCommand: s,
2129
- setItemIndexCommand: b,
2140
+ itemIndexCommand: a,
2141
+ setItemIndexCommand: w,
2130
2142
  specialCommand: d,
2131
2143
  isRunningSpecialCommand: m,
2132
2144
  finishSpecialCommand: f,
2133
- extendMode: E,
2134
- extendTransition: p,
2135
- isZooming: x
2136
- } = q(), z = $(null), w = M((k) => {
2137
- if (!z.current)
2138
- throw new Error(`[${k ?? "sliderOrThrow"}] slider.current is null`);
2139
- return z.current;
2140
- }, []), N = $(!1), j = $(null), h = $(null), g = $(null), C = M(() => {
2141
- g.current && cancelAnimationFrame(g.current);
2142
- }, []), T = M(() => {
2143
- const k = w("computeClosestSnapIndex"), a = Array.from(k.children), y = k.scrollLeft, L = a.reduce(
2144
- (H, D, Y) => {
2145
- const W = D.offsetLeft;
2146
- return Math.abs(W - y) < Math.abs(a[H].offsetLeft - y) ? Y : H;
2145
+ extendMode: z,
2146
+ extendTransition: v,
2147
+ isZooming: g
2148
+ } = q(), I = $(null), x = M((C) => {
2149
+ if (!I.current)
2150
+ throw new Error(`[${C ?? "sliderOrThrow"}] slider.current is null`);
2151
+ return I.current;
2152
+ }, []), T = $(!1), b = $(null), p = $(null), h = $(null), k = M(() => {
2153
+ h.current && cancelAnimationFrame(h.current);
2154
+ }, []), L = M(() => {
2155
+ const C = x("computeClosestSnapIndex"), s = Array.from(C.children), j = C.scrollLeft, N = s.reduce(
2156
+ (H, F, Y) => {
2157
+ const W = F.offsetLeft;
2158
+ return Math.abs(W - j) < Math.abs(s[H].offsetLeft - j) ? Y : H;
2147
2159
  },
2148
2160
  0
2149
2161
  );
2150
- return d === "first_to_last" ? Ge(L, o.length) : d === "last_to_first" ? Ge(L - 1, o.length) : L;
2151
- }, [d, w, o.length]), V = M(
2152
- (k) => {
2153
- const a = w("setStyleCursor");
2154
- a.style.cursor = k;
2162
+ return d === "first_to_last" ? Ge(N, o.length) : d === "last_to_first" ? Ge(N - 1, o.length) : N;
2163
+ }, [d, x, o.length]), R = M(
2164
+ (C) => {
2165
+ const s = x("setStyleCursor");
2166
+ s.style.cursor = C;
2155
2167
  },
2156
- [w]
2157
- ), S = M(
2158
- (k) => {
2159
- const a = w("setStyleSnapState");
2160
- k === "mandatory" ? a.style.scrollSnapType = "x mandatory" : a.style.scrollSnapType = "none";
2168
+ [x]
2169
+ ), V = M(
2170
+ (C) => {
2171
+ const s = x("setStyleSnapState");
2172
+ C === "mandatory" ? s.style.scrollSnapType = "x mandatory" : s.style.scrollSnapType = "none";
2161
2173
  },
2162
- [w]
2163
- ), v = M(
2164
- (k, a, y) => {
2165
- C();
2166
- const L = w("scrollToIndex"), H = Array.from(L.children), D = L.scrollLeft, Y = H[k].offsetLeft, W = (me) => {
2167
- L.scrollTo({
2168
- left: me,
2174
+ [x]
2175
+ ), y = M(
2176
+ (C, s, j) => {
2177
+ k();
2178
+ const N = x("scrollToIndex"), H = Array.from(N.children), F = N.scrollLeft, Y = H[C].offsetLeft, W = (pe) => {
2179
+ N.scrollTo({
2180
+ left: pe,
2169
2181
  behavior: "instant"
2170
2182
  });
2171
2183
  }, G = () => {
2172
- W(Y), S("mandatory"), y == null || y();
2173
- }, X = Math.abs(D - Y);
2174
- if (X < 1 || a === "instant") {
2184
+ W(Y), V("mandatory"), j == null || j();
2185
+ }, X = Math.abs(F - Y);
2186
+ if (X < 1 || s === "instant") {
2175
2187
  G();
2176
2188
  return;
2177
2189
  }
2178
2190
  const B = se(X / 2.5, 300, 1e3), ne = (/* @__PURE__ */ new Date()).getTime();
2179
- S("none");
2191
+ V("none");
2180
2192
  const je = () => {
2181
- const me = () => {
2193
+ const pe = () => {
2182
2194
  const ke = (/* @__PURE__ */ new Date()).getTime() - ne;
2183
2195
  if (ke >= B) {
2184
2196
  G();
2185
2197
  return;
2186
2198
  }
2187
- const ae = Math.min(ke / B, 1), pe = _t(ae), Te = ze(D, Y, pe);
2199
+ const ae = Math.min(ke / B, 1), he = zt(ae), Te = _e(F, Y, he);
2188
2200
  W(Te), je();
2189
2201
  };
2190
- g.current = requestAnimationFrame(me);
2202
+ h.current = requestAnimationFrame(pe);
2191
2203
  };
2192
2204
  je();
2193
2205
  },
2194
- [C, w, S]
2195
- ), [_, I] = A(), R = !!_;
2196
- P(() => {
2197
- const k = () => {
2198
- clearTimeout(_);
2199
- const a = setTimeout(() => {
2200
- I(void 0);
2206
+ [k, x, V]
2207
+ ), [E, _] = D(), S = !!E;
2208
+ Z(() => {
2209
+ const C = () => {
2210
+ clearTimeout(E);
2211
+ const s = setTimeout(() => {
2212
+ _(void 0);
2201
2213
  }, ft);
2202
- I(a);
2214
+ _(s);
2203
2215
  };
2204
- return addEventListener("resize", k), document.addEventListener("fullscreenchange", k), () => {
2205
- removeEventListener("resize", k), document.removeEventListener("fullscreenchange", k);
2216
+ return addEventListener("resize", C), document.addEventListener("fullscreenchange", C), () => {
2217
+ removeEventListener("resize", C), document.removeEventListener("fullscreenchange", C);
2206
2218
  };
2207
- }, [_]), P(() => {
2208
- const k = T();
2209
- Number.isNaN(k) || k !== c && v(c, "instant");
2219
+ }, [E]), Z(() => {
2220
+ const C = L();
2221
+ Number.isNaN(C) || C !== c && y(c, "instant");
2210
2222
  }, [
2211
2223
  c,
2212
- v,
2213
- T,
2224
+ y,
2225
+ L,
2214
2226
  // - Run the effect when those values change
2215
2227
  o,
2216
- _,
2217
- n,
2218
2228
  E,
2219
- p
2220
- ]), P(() => {
2229
+ n,
2230
+ z,
2231
+ v
2232
+ ]), Z(() => {
2221
2233
  if (!u || m) {
2222
- V("auto");
2234
+ R("auto");
2223
2235
  return;
2224
2236
  }
2225
- const k = z.current;
2226
- if (!k)
2237
+ const C = I.current;
2238
+ if (!C)
2227
2239
  return;
2228
- V("grab"), S("mandatory");
2229
- const a = (H) => {
2230
- H.button === 0 && (H.preventDefault(), H.stopPropagation(), N.current = !0, j.current = H.pageX - k.offsetLeft, h.current = k.scrollLeft, C(), V("grabbing"), S("none"));
2231
- }, y = (H) => {
2232
- if (!N.current)
2240
+ R("grab"), V("mandatory");
2241
+ const s = (H) => {
2242
+ H.button === 0 && (H.preventDefault(), H.stopPropagation(), k(), T.current = !0, b.current = H.pageX - C.offsetLeft, p.current = C.scrollLeft, R("grabbing"));
2243
+ }, j = (H) => {
2244
+ if (!T.current)
2233
2245
  return;
2234
- if (j.current === null)
2246
+ if (b.current === null)
2235
2247
  throw new Error("[onMouseMove] startX is null");
2236
- const D = H.pageX - k.offsetLeft - j.current;
2248
+ V("none");
2249
+ const F = H.pageX - C.offsetLeft - b.current;
2237
2250
  requestAnimationFrame(() => {
2238
- if (h.current === null)
2251
+ if (p.current === null)
2239
2252
  throw new Error("[onMouseMove] scrollLeft is null");
2240
- k.scrollLeft = h.current - D;
2253
+ C.scrollLeft = p.current - F;
2241
2254
  });
2242
- }, L = () => {
2243
- if (!N.current)
2255
+ }, N = () => {
2256
+ if (!T.current)
2244
2257
  return;
2245
- N.current = !1, V("grab");
2246
- const H = T();
2247
- v(H, "smooth");
2258
+ T.current = !1, R("grab");
2259
+ const H = L();
2260
+ y(H, "smooth");
2248
2261
  };
2249
- return k.addEventListener("mousedown", a), document.addEventListener("mousemove", y), document.addEventListener("mouseleave", L), document.addEventListener("mouseup", L), document.addEventListener("contextmenu", L), () => {
2250
- k.removeEventListener("mousedown", a), document.removeEventListener("mousemove", y), document.removeEventListener("mouseleave", L), document.removeEventListener("mouseup", L), document.removeEventListener("contextmenu", L);
2262
+ return C.addEventListener("mousedown", s), document.addEventListener("mousemove", j), document.addEventListener("mouseleave", N), document.addEventListener("mouseup", N), document.addEventListener("contextmenu", N), () => {
2263
+ C.removeEventListener("mousedown", s), document.removeEventListener("mousemove", j), document.removeEventListener("mouseleave", N), document.removeEventListener("mouseup", N), document.removeEventListener("contextmenu", N);
2251
2264
  };
2252
2265
  }, [
2253
- C,
2254
- T,
2266
+ k,
2267
+ L,
2255
2268
  m,
2256
- v,
2269
+ y,
2270
+ R,
2257
2271
  V,
2258
- S,
2259
2272
  u
2260
- ]), P(() => {
2261
- if (p || R)
2273
+ ]), Z(() => {
2274
+ if (v || S)
2262
2275
  return;
2263
- const k = z.current;
2264
- if (!k)
2276
+ const C = I.current;
2277
+ if (!C)
2265
2278
  return;
2266
- const a = () => {
2267
- const y = T();
2268
- Number.isNaN(y) || (l(y), y === s && b(null));
2279
+ const s = () => {
2280
+ const j = L();
2281
+ Number.isNaN(j) || (l(j), j === a && w(null));
2269
2282
  };
2270
- return k.addEventListener("scroll", a), () => {
2271
- k.removeEventListener("scroll", a);
2283
+ return C.addEventListener("scroll", s), () => {
2284
+ C.removeEventListener("scroll", s);
2272
2285
  };
2273
2286
  }, [
2274
- T,
2275
- p,
2287
+ L,
2288
+ v,
2276
2289
  m,
2277
- R,
2278
- s,
2290
+ S,
2291
+ a,
2279
2292
  o.length,
2280
2293
  l,
2281
- b
2282
- ]), P(() => {
2283
- if (s === null)
2294
+ w
2295
+ ]), Z(() => {
2296
+ if (a === null)
2284
2297
  return;
2285
- const k = () => f();
2298
+ const C = () => f();
2286
2299
  switch (d) {
2287
2300
  case "first_to_last":
2288
- v(o.length, "instant"), v(o.length - 1, "smooth", k);
2301
+ y(o.length, "instant"), y(o.length - 1, "smooth", C);
2289
2302
  break;
2290
2303
  case "last_to_first":
2291
- v(0, "instant"), v(1, "smooth", k);
2304
+ y(0, "instant"), y(1, "smooth", C);
2292
2305
  break;
2293
2306
  case "instant":
2294
- v(s, "instant", k);
2307
+ y(a, "instant", C);
2295
2308
  break;
2296
2309
  default:
2297
- v(s, "smooth");
2310
+ y(a, "smooth");
2298
2311
  break;
2299
2312
  }
2300
2313
  }, [
2301
2314
  d,
2302
2315
  f,
2303
- s,
2316
+ a,
2304
2317
  o.length,
2305
- v
2318
+ y
2306
2319
  ]);
2307
- const Z = () => /* @__PURE__ */ t.jsx("div", { className: "h-full", style: i });
2320
+ const O = () => /* @__PURE__ */ t.jsx("div", { className: "h-full", style: i });
2308
2321
  return /* @__PURE__ */ t.jsxs(
2309
2322
  "div",
2310
2323
  {
2311
- className: O("relative overflow-hidden rounded-carrousel", e),
2324
+ className: A("relative overflow-hidden rounded-carrousel", e),
2312
2325
  style: i,
2313
2326
  children: [
2314
2327
  /* @__PURE__ */ t.jsxs(
2315
2328
  "div",
2316
2329
  {
2317
- ref: z,
2330
+ ref: I,
2318
2331
  className: `flex size-full ${u ? "overflow-x-auto no-scrollbar *:snap-start *:snap-always" : "justify-center"}`,
2319
2332
  children: [
2320
- d === "last_to_first" && /* @__PURE__ */ t.jsx(Z, {}),
2321
- o.map((k, a) => {
2322
- const y = k.type === "360" ? k.images[0] : k.src, L = a === c, H = a === 0, D = c === o.length - 1, Y = a === o.length - 1, W = c === 0, G = Math.abs(a - c) > 1 && // Not next to the current one
2323
- !(r && H && D) && // Not the last one when the first one is shown (only for infinite carrousel)
2333
+ d === "last_to_first" && /* @__PURE__ */ t.jsx(O, {}),
2334
+ o.map((C, s) => {
2335
+ const j = C.type === "360" ? C.images[0] : C.src, N = s === c, H = s === 0, F = c === o.length - 1, Y = s === o.length - 1, W = c === 0, G = Math.abs(s - c) > 1 && // Not next to the current one
2336
+ !(r && H && F) && // Not the last one when the first one is shown (only for infinite carrousel)
2324
2337
  !(r && Y && W), X = (() => {
2325
2338
  if (d === "first_to_last" && H)
2326
2339
  return {
@@ -2337,30 +2350,30 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
2337
2350
  className: "relative h-full bg-foreground/50",
2338
2351
  style: { ...i, ...X },
2339
2352
  children: /* @__PURE__ */ t.jsx(
2340
- _r,
2353
+ zr,
2341
2354
  {
2342
- index: a,
2343
- item: k,
2344
- isShown: L,
2355
+ index: s,
2356
+ item: C,
2357
+ isShown: N,
2345
2358
  lazy: G
2346
2359
  }
2347
2360
  )
2348
2361
  },
2349
- `${a}_${y}`
2362
+ `${s}_${j}`
2350
2363
  );
2351
2364
  }),
2352
- d === "first_to_last" && /* @__PURE__ */ t.jsx(Z, {})
2365
+ d === "first_to_last" && /* @__PURE__ */ t.jsx(O, {})
2353
2366
  ]
2354
2367
  }
2355
2368
  ),
2356
- u && !x && /* @__PURE__ */ t.jsx("div", { className: `absolute ${ue("top-right")}`, children: /* @__PURE__ */ t.jsx(
2369
+ u && !g && /* @__PURE__ */ t.jsx("div", { className: `absolute ${ue("top-right")}`, children: /* @__PURE__ */ t.jsx(
2357
2370
  hr,
2358
2371
  {
2359
2372
  currentIndex: c,
2360
2373
  maxIndex: o.length - 1
2361
2374
  }
2362
2375
  ) }),
2363
- /* @__PURE__ */ t.jsx(Zr, {})
2376
+ /* @__PURE__ */ t.jsx(Fr, {})
2364
2377
  ]
2365
2378
  }
2366
2379
  );
@@ -2372,45 +2385,45 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
2372
2385
  resetShownDetails: u,
2373
2386
  extendMode: c,
2374
2387
  disableExtendMode: l,
2375
- isZooming: s,
2376
- resetZoom: b,
2388
+ isZooming: a,
2389
+ resetZoom: w,
2377
2390
  fakeFullScreen: d
2378
- } = q(), m = $(null), f = $(null), E = $(null);
2379
- return P(() => {
2391
+ } = q(), m = $(null), f = $(null), z = $(null);
2392
+ return Z(() => {
2380
2393
  if (!c)
2381
2394
  return;
2382
- const p = m.current, x = f.current, z = E.current;
2383
- if (!p || !x || !z)
2395
+ const v = m.current, g = f.current, I = z.current;
2396
+ if (!v || !g || !I)
2384
2397
  return;
2385
- let w = !1;
2386
- const N = (g) => [p, x, z].includes(g.target), j = (g) => {
2387
- w = N(g);
2388
- }, h = (g) => {
2389
- w && (N(g) && l(), w = !1);
2398
+ let x = !1;
2399
+ const T = (h) => [v, g, I].includes(h.target), b = (h) => {
2400
+ x = T(h);
2401
+ }, p = (h) => {
2402
+ x && (T(h) && l(), x = !1);
2390
2403
  };
2391
- return p.addEventListener("mousedown", j), p.addEventListener("mouseup", h), () => {
2392
- p.removeEventListener("mousedown", j), p.removeEventListener("mouseup", h);
2404
+ return v.addEventListener("mousedown", b), v.addEventListener("mouseup", p), () => {
2405
+ v.removeEventListener("mousedown", b), v.removeEventListener("mouseup", p);
2393
2406
  };
2394
- }, [l, c]), P(() => {
2395
- const p = (x) => {
2396
- x.key === "Escape" && (s ? b() : i ? u() : l());
2407
+ }, [l, c]), Z(() => {
2408
+ const v = (g) => {
2409
+ g.key === "Escape" && (a ? w() : i ? u() : l());
2397
2410
  };
2398
- return addEventListener("keydown", p), () => {
2399
- removeEventListener("keydown", p);
2411
+ return addEventListener("keydown", v), () => {
2412
+ removeEventListener("keydown", v);
2400
2413
  };
2401
2414
  }, [
2402
2415
  l,
2403
2416
  i,
2404
- s,
2417
+ a,
2405
2418
  o,
2406
2419
  n,
2407
2420
  u,
2408
- b
2421
+ w
2409
2422
  ]), /* @__PURE__ */ t.jsxs(
2410
2423
  "div",
2411
2424
  {
2412
2425
  ref: m,
2413
- className: O(
2426
+ className: A(
2414
2427
  "relative",
2415
2428
  c && "flex size-full items-center justify-center bg-foreground/75",
2416
2429
  d && "fixed inset-0 z-overlay"
@@ -2425,15 +2438,15 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
2425
2438
  /* @__PURE__ */ t.jsx(
2426
2439
  "div",
2427
2440
  {
2428
- ref: E,
2429
- className: O(
2441
+ ref: z,
2442
+ className: A(
2430
2443
  c && "mx-auto flex min-h-0 w-full max-w-[1600px] justify-center"
2431
2444
  ),
2432
2445
  style: r,
2433
- children: /* @__PURE__ */ t.jsx(Dr, { className: O(c && "h-full min-w-0") })
2446
+ children: /* @__PURE__ */ t.jsx(Dr, { className: A(c && "h-full min-w-0") })
2434
2447
  }
2435
2448
  ),
2436
- e && /* @__PURE__ */ t.jsx(zt, { className: O(c && "my-2 shrink-0 small:my-4") })
2449
+ e && /* @__PURE__ */ t.jsx(_t, { className: A(c && "my-2 shrink-0 small:my-4") })
2437
2450
  ]
2438
2451
  }
2439
2452
  ),
@@ -2456,73 +2469,73 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
2456
2469
  isSuccess: i,
2457
2470
  error: u
2458
2471
  } = Gt(e);
2459
- return P(() => {
2460
- u ? r(st, u) : i ? r(ot) : o === "fetching" && r(nt);
2461
- }, [r, u, i, o]), u ? /* @__PURE__ */ t.jsx(Nt, { title: "Failed to fetch composition", error: u }) : i ? /* @__PURE__ */ t.jsx(Kt, { composition: n, children: /* @__PURE__ */ t.jsx(Jt, { children: /* @__PURE__ */ t.jsx($r, {}) }) }) : /* @__PURE__ */ t.jsxs("div", { className: "flex aspect-video size-full flex-col items-center justify-center gap-y-4", children: [
2472
+ return Z(() => {
2473
+ u ? r(st, u) : o === "fetching" ? r(nt, e) : i && r(ot, n);
2474
+ }, [n, e, r, u, i, o]), u ? /* @__PURE__ */ t.jsx(Ct, { title: "Failed to fetch composition", error: u }) : i ? /* @__PURE__ */ t.jsx(Kt, { composition: n, children: /* @__PURE__ */ t.jsx(Jt, { children: /* @__PURE__ */ t.jsx($r, {}) }) }) : /* @__PURE__ */ t.jsxs("div", { className: "flex aspect-video size-full flex-col items-center justify-center gap-y-4", children: [
2462
2475
  /* @__PURE__ */ t.jsx("div", { className: "text-xl", children: "Loading WebPlayer..." }),
2463
- /* @__PURE__ */ t.jsx(Ct, { color: "primary" })
2476
+ /* @__PURE__ */ t.jsx(Et, { color: "primary" })
2464
2477
  ] });
2465
2478
  }, Wr = ({
2466
2479
  compositionUrl: e,
2467
- flatten: r = At,
2468
- infiniteCarrousel: n = Zt,
2480
+ flatten: r = Zt,
2481
+ infiniteCarrousel: n = Ft,
2469
2482
  permanentGallery: o = Dt,
2470
2483
  imageLoadStrategy: i = $t,
2471
2484
  preventFullScreen: u = Yt,
2472
2485
  eventPrefix: c = mt,
2473
2486
  reverse360: l = Wt,
2474
- children: s,
2487
+ children: a,
2475
2488
  // NOTE: use to customize the player, not to display the content
2476
- ...b
2489
+ ...w
2477
2490
  }) => {
2478
- const d = $(null), [m, f] = A(), [E, p] = A(0.5), [x, z] = A(!1), w = M(
2479
- (h, g) => {
2480
- const C = c + h, T = new CustomEvent(C, { detail: g });
2481
- document.dispatchEvent(T);
2491
+ const d = $(null), [m, f] = D(), [z, v] = D(0.5), [g, I] = D(!1), x = M(
2492
+ (p, h) => {
2493
+ const k = c + p, L = new CustomEvent(k, { detail: h });
2494
+ document.dispatchEvent(L);
2482
2495
  },
2483
2496
  [c]
2484
2497
  );
2485
- P(() => {
2486
- if (x) {
2487
- p(1);
2498
+ Z(() => {
2499
+ if (g) {
2500
+ v(1);
2488
2501
  return;
2489
2502
  }
2490
2503
  if (!d.current)
2491
2504
  return;
2492
- const h = d.current, g = () => {
2493
- const C = window.innerWidth, T = getComputedStyle(h), V = h.getBoundingClientRect().width + parseFloat(T.marginLeft) + parseFloat(T.marginRight);
2494
- f(V), p(V / C);
2505
+ const p = d.current, h = () => {
2506
+ const k = window.innerWidth, L = getComputedStyle(p), R = p.getBoundingClientRect().width + parseFloat(L.marginLeft) + parseFloat(L.marginRight);
2507
+ f(R), v(R / k);
2495
2508
  };
2496
- return g(), addEventListener("resize", g), () => {
2497
- removeEventListener("resize", g);
2509
+ return h(), addEventListener("resize", h), () => {
2510
+ removeEventListener("resize", h);
2498
2511
  };
2499
- }, [x]), P(() => {
2512
+ }, [g]), Z(() => {
2500
2513
  if (u)
2501
2514
  return;
2502
- const h = d.current;
2503
- if (!h)
2515
+ const p = d.current;
2516
+ if (!p)
2504
2517
  throw new Error("Wrapper not found");
2505
- const g = () => {
2506
- const { fullscreenElement: C } = document;
2507
- z(
2508
- C === h || // NOTE: For custom element, the web browser is making the whole custom element full-screen and not only the wrapper
2509
- (C == null ? void 0 : C.localName) === Ze
2518
+ const h = () => {
2519
+ const { fullscreenElement: k } = document;
2520
+ I(
2521
+ k === p || // NOTE: For custom element, the web browser is making the whole custom element full-screen and not only the wrapper
2522
+ (k == null ? void 0 : k.localName) === Fe
2510
2523
  );
2511
2524
  };
2512
- return document.addEventListener("fullscreenchange", g), () => {
2513
- document.removeEventListener("fullscreenchange", g);
2525
+ return document.addEventListener("fullscreenchange", h), () => {
2526
+ document.removeEventListener("fullscreenchange", h);
2514
2527
  };
2515
2528
  }, [u]);
2516
- const N = M(async () => {
2517
- const h = d.current;
2518
- if (!h)
2529
+ const T = M(async () => {
2530
+ const p = d.current;
2531
+ if (!p)
2519
2532
  throw new Error("Wrapper not found");
2520
2533
  try {
2521
- return await h.requestFullscreen(), !0;
2534
+ return await p.requestFullscreen(), !0;
2522
2535
  } catch {
2523
2536
  return !1;
2524
2537
  }
2525
- }, []), j = M(async () => {
2538
+ }, []), b = M(async () => {
2526
2539
  try {
2527
2540
  return await document.exitFullscreen(), !0;
2528
2541
  } catch {
@@ -2532,18 +2545,18 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
2532
2545
  return /* @__PURE__ */ t.jsx(
2533
2546
  qt,
2534
2547
  {
2535
- ...b,
2548
+ ...w,
2536
2549
  reverse360: l,
2537
2550
  imageLoadStrategy: i,
2538
2551
  flatten: r,
2539
2552
  infiniteCarrousel: n,
2540
2553
  preventFullScreen: u,
2541
2554
  permanentGallery: o,
2542
- emitEvent: w,
2543
- playerInViewportWidthRatio: E,
2544
- isFullScreen: x,
2545
- requestFullscreen: N,
2546
- exitFullscreen: j,
2555
+ emitEvent: x,
2556
+ playerInViewportWidthRatio: z,
2557
+ isFullScreen: g,
2558
+ requestFullscreen: T,
2559
+ exitFullscreen: b,
2547
2560
  children: /* @__PURE__ */ t.jsxs(ar, { children: [
2548
2561
  /* @__PURE__ */ t.jsx(
2549
2562
  "div",
@@ -2558,13 +2571,13 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
2558
2571
  children: /* @__PURE__ */ t.jsx(Yr, { compositionUrl: e })
2559
2572
  }
2560
2573
  ),
2561
- s
2574
+ a
2562
2575
  ] })
2563
2576
  }
2564
2577
  );
2565
2578
  }, Ur = ({ name: e, color: r, children: n }) => {
2566
2579
  const { setIconConfig: o, resetIconConfig: i } = $e();
2567
- return P(() => {
2580
+ return Z(() => {
2568
2581
  if (!(!n && !r))
2569
2582
  return o(e, {
2570
2583
  Icon: n,
@@ -2573,8 +2586,8 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
2573
2586
  i(e);
2574
2587
  };
2575
2588
  }, [n, r, e, i, o]), null;
2576
- }, Xr = (e) => jt() ? /* @__PURE__ */ t.jsx(Ur, { ...e }) : /* @__PURE__ */ t.jsx("slot", {}), Br = '*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}#cc-webplayer-wrapper{--background: var(--cc-webplayer-background, 0 0% 100%);--foreground: var(--cc-webplayer-foreground, 240 10% 3.9%);--primary: var(--cc-webplayer-primary, 216 100% 52%);--primary-foreground: var( --cc-webplayer-primary-foreground, var(--background) );--neutral: var(--cc-webplayer-neutral, 0 0% 39%);--neutral-foreground: var( --cc-webplayer-neutral-foreground, var(--foreground) );--radius-ui: var(--cc-webplayer-radius-ui, 1rem);--radius-carrousel: var(--cc-webplayer-radius-carrousel, 0);--radius-gallery: var(--cc-webplayer-radius-gallery, 0)}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.\\!container{width:100%!important}.container{width:100%}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.invisible{visibility:hidden}.fixed{position:fixed}.\\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.inset-x-1{left:.25rem;right:.25rem}.inset-y-1{top:.25rem;bottom:.25rem}.-bottom-1{bottom:-.25rem}.-left-1{left:-.25rem}.-right-1{right:-.25rem}.-top-1{top:-.25rem}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.left-0{left:0}.left-1{left:.25rem}.left-1\\/2{left:50%}.right-1{right:.25rem}.right-2{right:.5rem}.top-0{top:0}.top-1{top:.25rem}.top-1\\/2{top:50%}.top-2{top:.5rem}.-z-10{z-index:-10}.-z-20{z-index:-20}.z-hotspot{z-index:10}.z-overlay{z-index:30}.z-zoomed-image{z-index:20}.col-start-3{grid-column-start:3}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.-mt-px{margin-top:-1px}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.aspect-video{aspect-ratio:16 / 9}.size-1{width:.25rem;height:.25rem}.size-12{width:3rem;height:3rem}.size-20{width:5rem;height:5rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-8{width:2rem;height:2rem}.size-full{width:100%;height:100%}.h-1{height:.25rem}.h-10{height:2.5rem}.h-3\\/4{height:75%}.h-5{height:1.25rem}.h-8{height:2rem}.h-full{height:100%}.h-px{height:1px}.min-h-0{min-height:0px}.w-12{width:3rem}.w-3\\/5{width:60%}.w-8{width:2rem}.w-\\[calc\\(100\\%\\+1024px\\)\\]{width:calc(100% + 1024px)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.min-w-0{min-width:0px}.max-w-40{max-width:10rem}.max-w-\\[1600px\\]{max-width:1600px}.shrink-0{flex-shrink:0}.origin-top-left{transform-origin:top left}.-translate-x-1\\.5{--tw-translate-x: -.375rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\\.5{--tw-translate-x: .375rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes hotspot-ping{0%{transform:scale(0)}25%{opacity:1}75%,to{transform:scale(1.5);opacity:0}}.animate-hotspot-ping{animation:hotspot-ping 3s cubic-bezier(0,0,.2,1) infinite}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.animate-rotation{animation:rotation 1s linear infinite}.cursor-auto{cursor:auto}.cursor-ew-resize{cursor:ew-resize}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-help{cursor:help}.cursor-move{cursor:move}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-\\[auto\\,1fr\\,auto\\]{grid-template-columns:auto 1fr auto}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.gap-y-4{row-gap:1rem}.space-x-0\\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.125rem * var(--tw-space-x-reverse));margin-left:calc(.125rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-scroll{overflow-x:scroll}.text-pretty{text-wrap:pretty}.rounded-carrousel{border-radius:var(--radius-carrousel)}.rounded-full{border-radius:9999px}.rounded-gallery{border-radius:var(--radius-gallery)}.rounded-ui{border-radius:var(--radius-ui)}.rounded-ui-md{border-radius:calc(var(--radius-ui) + .125rem)}.rounded-ui-sm{border-radius:calc(var(--radius-ui) - .125rem)}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-background{border-color:hsl(var(--background))}.border-primary{border-color:hsl(var(--primary))}.border-b-transparent{border-bottom-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-background\\/25{background-color:hsl(var(--background) / .25)}.bg-background\\/50{background-color:hsl(var(--background) / .5)}.bg-background\\/60{background-color:hsl(var(--background) / .6)}.bg-foreground\\/25{background-color:hsl(var(--foreground) / .25)}.bg-foreground\\/30{background-color:hsl(var(--foreground) / .3)}.bg-foreground\\/35{background-color:hsl(var(--foreground) / .35)}.bg-foreground\\/40{background-color:hsl(var(--foreground) / .4)}.bg-foreground\\/50{background-color:hsl(var(--foreground) / .5)}.bg-foreground\\/60{background-color:hsl(var(--foreground) / .6)}.bg-foreground\\/65{background-color:hsl(var(--foreground) / .65)}.bg-foreground\\/75{background-color:hsl(var(--foreground) / .75)}.bg-neutral\\/50{background-color:hsl(var(--neutral) / .5)}.bg-primary{background-color:hsl(var(--primary))}.bg-primary-foreground{background-color:hsl(var(--primary-foreground))}.bg-primary\\/50{background-color:hsl(var(--primary) / .5)}.bg-transparent{background-color:transparent}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-foreground{--tw-gradient-from: hsl(var(--foreground)) var(--tw-gradient-from-position);--tw-gradient-to: hsl(var(--foreground) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\\.5{padding:.375rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.pl-6{padding-left:1.5rem}.pr-12{padding-right:3rem}.pr-4{padding-right:1rem}.pt-8{padding-top:2rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.text-background{color:hsl(var(--background))}.text-background\\/75{color:hsl(var(--background) / .75)}.text-foreground{color:hsl(var(--foreground))}.text-neutral-foreground{color:hsl(var(--neutral-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[width\\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-details{transition-duration:.35s}.no-scrollbar{scrollbar-width:none;-ms-overflow-style:none}.no-scrollbar::-webkit-scrollbar{display:none}.\\[mask-image\\:linear-gradient\\(to_left\\,transparent_0px\\,black_4px\\,black_calc\\(100\\%-4px\\)\\,transparent_100\\%\\)\\]{-webkit-mask-image:linear-gradient(to left,transparent 0px,black 4px,black calc(100% - 4px),transparent 100%);mask-image:linear-gradient(to left,transparent 0px,black 4px,black calc(100% - 4px),transparent 100%)}.\\*\\:pointer-events-auto>*{pointer-events:auto}.\\*\\:snap-start>*{scroll-snap-align:start}.\\*\\:snap-always>*{scroll-snap-stop:always}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:inset-0:after{content:var(--tw-content);top:0;right:0;bottom:0;left:0}.after\\:rounded-gallery:after{content:var(--tw-content);border-radius:var(--radius-gallery)}.after\\:border-2:after{content:var(--tw-content);border-width:2px}.after\\:border-primary:after{content:var(--tw-content);border-color:hsl(var(--primary))}.after\\:opacity-0:after{content:var(--tw-content);opacity:0}.after\\:opacity-100:after{content:var(--tw-content);opacity:1}.after\\:transition-opacity:after{content:var(--tw-content);transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\\:z-hotspot-hover:hover{z-index:11}.hover\\:bg-foreground\\/25:hover{background-color:hsl(var(--foreground) / .25)}.hover\\:bg-primary\\/25:hover{background-color:hsl(var(--primary) / .25)}.hover\\:bg-primary\\/30:hover{background-color:hsl(var(--primary) / .3)}.hover\\:opacity-80:hover{opacity:.8}.hover\\:after\\:opacity-70:hover:after{content:var(--tw-content);opacity:.7}.disabled\\:opacity-60:disabled{opacity:.6}.group:hover .group-hover\\:pointer-events-auto{pointer-events:auto}.group\\/volume:hover .group-hover\\/volume\\:opacity-100{opacity:1}.group\\/volume:hover .group-hover\\/volume\\:opacity-50{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}@media ((orientation: portrait) and (max-width: 767px)) or ((orientation: landscape) and (max-width: 1023px)){.max-small\\:hidden{display:none}}@media ((orientation: portrait) and (min-width: 768px)) or ((orientation: landscape) and (min-width: 1024px)){.small\\:inset-x-2{left:.5rem;right:.5rem}.small\\:inset-y-2{top:.5rem;bottom:.5rem}.small\\:bottom-2{bottom:.5rem}.small\\:left-2{left:.5rem}.small\\:right-2{right:.5rem}.small\\:right-4{right:1rem}.small\\:top-2{top:.5rem}.small\\:top-4{top:1rem}.small\\:my-4{margin-top:1rem;margin-bottom:1rem}.small\\:hidden{display:none}.small\\:h-12{height:3rem}.small\\:max-w-48{max-width:12rem}.small\\:gap-2{gap:.5rem}.small\\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.small\\:gap-y-2{row-gap:.5rem}.small\\:gap-y-4{row-gap:1rem}.small\\:space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.small\\:p-2{padding:.5rem}.small\\:px-2{padding-left:.5rem;padding-right:.5rem}.small\\:py-1{padding-top:.25rem;padding-bottom:.25rem}.small\\:pl-8{padding-left:2rem}.small\\:pr-6{padding-right:1.5rem}.small\\:text-base{font-size:1rem;line-height:1.5rem}.small\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 1280px){.large\\:h-20{height:5rem}.large\\:h-3\\/5{height:60%}.large\\:max-w-56{max-width:14rem}.large\\:gap-4{gap:1rem}.large\\:p-2{padding:.5rem}.large\\:p-3{padding:.75rem}.large\\:text-base{font-size:1rem;line-height:1.5rem}.large\\:text-lg{font-size:1.125rem;line-height:1.75rem}}';
2577
- var Mt = { exports: {} }, we = {};
2589
+ }, Xr = (e) => jt() ? /* @__PURE__ */ t.jsx(Ur, { ...e }) : /* @__PURE__ */ t.jsx("slot", {}), Br = '*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}#cc-webplayer-wrapper{--background: var(--cc-webplayer-background, 0 0% 100%);--foreground: var(--cc-webplayer-foreground, 240 10% 3.9%);--primary: var(--cc-webplayer-primary, 216 100% 52%);--primary-foreground: var( --cc-webplayer-primary-foreground, var(--background) );--neutral: var(--cc-webplayer-neutral, 0 0% 39%);--neutral-foreground: var( --cc-webplayer-neutral-foreground, var(--foreground) );--radius-ui: var(--cc-webplayer-radius-ui, 1rem);--radius-carrousel: var(--cc-webplayer-radius-carrousel, 0);--radius-gallery: var(--cc-webplayer-radius-gallery, 0)}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.\\!container{width:100%!important}.container{width:100%}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.invisible{visibility:hidden}.fixed{position:fixed}.\\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.inset-x-1{left:.25rem;right:.25rem}.inset-y-1{top:.25rem;bottom:.25rem}.-bottom-1{bottom:-.25rem}.-left-1{left:-.25rem}.-right-1{right:-.25rem}.-top-1{top:-.25rem}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.left-0{left:0}.left-1{left:.25rem}.left-1\\/2{left:50%}.right-1{right:.25rem}.right-2{right:.5rem}.top-0{top:0}.top-1{top:.25rem}.top-1\\/2{top:50%}.top-2{top:.5rem}.-z-10{z-index:-10}.-z-20{z-index:-20}.z-hotspot{z-index:10}.z-overlay{z-index:30}.z-zoomed-image{z-index:20}.col-start-3{grid-column-start:3}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.-mt-px{margin-top:-1px}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.aspect-video{aspect-ratio:16 / 9}.size-1{width:.25rem;height:.25rem}.size-12{width:3rem;height:3rem}.size-20{width:5rem;height:5rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-8{width:2rem;height:2rem}.size-full{width:100%;height:100%}.h-1{height:.25rem}.h-10{height:2.5rem}.h-3\\/4{height:75%}.h-5{height:1.25rem}.h-8{height:2rem}.h-full{height:100%}.h-px{height:1px}.min-h-0{min-height:0px}.w-12{width:3rem}.w-3\\/5{width:60%}.w-8{width:2rem}.w-\\[calc\\(100\\%\\+1024px\\)\\]{width:calc(100% + 1024px)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.min-w-0{min-width:0px}.max-w-40{max-width:10rem}.max-w-\\[1600px\\]{max-width:1600px}.shrink-0{flex-shrink:0}.origin-top-left{transform-origin:top left}.-translate-x-1\\.5{--tw-translate-x: -.375rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\\.5{--tw-translate-x: .375rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes hotspot-ping{0%{transform:scale(0)}25%{opacity:1}75%,to{transform:scale(1.5);opacity:0}}.animate-hotspot-ping{animation:hotspot-ping 3s cubic-bezier(0,0,.2,1) infinite}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.animate-rotation{animation:rotation 1s linear infinite}.cursor-auto{cursor:auto}.cursor-ew-resize{cursor:ew-resize}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-help{cursor:help}.cursor-move{cursor:move}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-\\[auto\\,1fr\\,auto\\]{grid-template-columns:auto 1fr auto}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.gap-y-4{row-gap:1rem}.space-x-0\\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.125rem * var(--tw-space-x-reverse));margin-left:calc(.125rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-scroll{overflow-x:scroll}.text-pretty{text-wrap:pretty}.rounded-carrousel{border-radius:var(--radius-carrousel)}.rounded-full{border-radius:9999px}.rounded-gallery{border-radius:var(--radius-gallery)}.rounded-ui{border-radius:var(--radius-ui)}.rounded-ui-md{border-radius:calc(var(--radius-ui) + .125rem)}.rounded-ui-sm{border-radius:calc(var(--radius-ui) - .125rem)}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-background{border-color:hsl(var(--background))}.border-primary{border-color:hsl(var(--primary))}.border-b-transparent{border-bottom-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-background\\/25{background-color:hsl(var(--background) / .25)}.bg-background\\/50{background-color:hsl(var(--background) / .5)}.bg-background\\/60{background-color:hsl(var(--background) / .6)}.bg-foreground\\/25{background-color:hsl(var(--foreground) / .25)}.bg-foreground\\/30{background-color:hsl(var(--foreground) / .3)}.bg-foreground\\/35{background-color:hsl(var(--foreground) / .35)}.bg-foreground\\/40{background-color:hsl(var(--foreground) / .4)}.bg-foreground\\/50{background-color:hsl(var(--foreground) / .5)}.bg-foreground\\/60{background-color:hsl(var(--foreground) / .6)}.bg-foreground\\/65{background-color:hsl(var(--foreground) / .65)}.bg-foreground\\/75{background-color:hsl(var(--foreground) / .75)}.bg-neutral\\/50{background-color:hsl(var(--neutral) / .5)}.bg-primary{background-color:hsl(var(--primary))}.bg-primary-foreground{background-color:hsl(var(--primary-foreground))}.bg-primary\\/50{background-color:hsl(var(--primary) / .5)}.bg-transparent{background-color:transparent}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-foreground{--tw-gradient-from: hsl(var(--foreground)) var(--tw-gradient-from-position);--tw-gradient-to: hsl(var(--foreground) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.pl-6{padding-left:1.5rem}.pr-12{padding-right:3rem}.pr-4{padding-right:1rem}.pt-8{padding-top:2rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.text-background{color:hsl(var(--background))}.text-background\\/75{color:hsl(var(--background) / .75)}.text-foreground{color:hsl(var(--foreground))}.text-foreground\\/65{color:hsl(var(--foreground) / .65)}.text-neutral-foreground{color:hsl(var(--neutral-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[width\\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-details{transition-duration:.35s}.no-scrollbar{scrollbar-width:none;-ms-overflow-style:none}.no-scrollbar::-webkit-scrollbar{display:none}.\\[mask-image\\:linear-gradient\\(to_left\\,transparent_0px\\,black_4px\\,black_calc\\(100\\%-4px\\)\\,transparent_100\\%\\)\\]{-webkit-mask-image:linear-gradient(to left,transparent 0px,black 4px,black calc(100% - 4px),transparent 100%);mask-image:linear-gradient(to left,transparent 0px,black 4px,black calc(100% - 4px),transparent 100%)}.\\*\\:pointer-events-auto>*{pointer-events:auto}.\\*\\:snap-start>*{scroll-snap-align:start}.\\*\\:snap-always>*{scroll-snap-stop:always}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:inset-0:after{content:var(--tw-content);top:0;right:0;bottom:0;left:0}.after\\:rounded-gallery:after{content:var(--tw-content);border-radius:var(--radius-gallery)}.after\\:border-2:after{content:var(--tw-content);border-width:2px}.after\\:border-primary:after{content:var(--tw-content);border-color:hsl(var(--primary))}.after\\:opacity-0:after{content:var(--tw-content);opacity:0}.after\\:opacity-100:after{content:var(--tw-content);opacity:1}.after\\:transition-opacity:after{content:var(--tw-content);transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\\:z-hotspot-hover:hover{z-index:11}.hover\\:bg-foreground\\/25:hover{background-color:hsl(var(--foreground) / .25)}.hover\\:bg-primary\\/25:hover{background-color:hsl(var(--primary) / .25)}.hover\\:bg-primary\\/30:hover{background-color:hsl(var(--primary) / .3)}.hover\\:opacity-80:hover{opacity:.8}.hover\\:after\\:opacity-70:hover:after{content:var(--tw-content);opacity:.7}.disabled\\:opacity-60:disabled{opacity:.6}.group:hover .group-hover\\:pointer-events-auto{pointer-events:auto}.group\\/volume:hover .group-hover\\/volume\\:opacity-100{opacity:1}.group\\/volume:hover .group-hover\\/volume\\:opacity-50{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}@media ((orientation: portrait) and (max-width: 767px)) or ((orientation: landscape) and (max-width: 1023px)){.max-small\\:hidden{display:none}}@media ((orientation: portrait) and (min-width: 768px)) or ((orientation: landscape) and (min-width: 1024px)){.small\\:inset-x-2{left:.5rem;right:.5rem}.small\\:inset-y-2{top:.5rem;bottom:.5rem}.small\\:bottom-2{bottom:.5rem}.small\\:left-2{left:.5rem}.small\\:right-2{right:.5rem}.small\\:right-4{right:1rem}.small\\:top-2{top:.5rem}.small\\:top-4{top:1rem}.small\\:my-4{margin-top:1rem;margin-bottom:1rem}.small\\:hidden{display:none}.small\\:h-12{height:3rem}.small\\:max-w-48{max-width:12rem}.small\\:gap-2{gap:.5rem}.small\\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.small\\:gap-y-2{row-gap:.5rem}.small\\:gap-y-4{row-gap:1rem}.small\\:space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.small\\:p-3{padding:.75rem}.small\\:px-2{padding-left:.5rem;padding-right:.5rem}.small\\:py-1{padding-top:.25rem;padding-bottom:.25rem}.small\\:pl-8{padding-left:2rem}.small\\:pr-6{padding-right:1.5rem}.small\\:text-base{font-size:1rem;line-height:1.5rem}.small\\:text-sm{font-size:.875rem;line-height:1.25rem}.small\\:font-bold{font-weight:700}}@media (min-width: 1280px){.large\\:h-20{height:5rem}.large\\:h-3\\/5{height:60%}.large\\:max-w-56{max-width:14rem}.large\\:gap-4{gap:1rem}.large\\:p-2{padding:.5rem}.large\\:p-4{padding:1rem}.large\\:text-base{font-size:1rem;line-height:1.5rem}.large\\:text-lg{font-size:1.125rem;line-height:1.75rem}}';
2590
+ var Mt = { exports: {} }, be = {};
2578
2591
  /**
2579
2592
  * @license React
2580
2593
  * react-jsx-runtime.production.min.js
@@ -2586,20 +2599,20 @@ var Mt = { exports: {} }, we = {};
2586
2599
  */
2587
2600
  var et;
2588
2601
  function Gr() {
2589
- if (et) return we;
2602
+ if (et) return be;
2590
2603
  et = 1;
2591
2604
  var e = ye, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
2592
- function c(l, s, b) {
2593
- var d, m = {}, f = null, E = null;
2594
- b !== void 0 && (f = "" + b), s.key !== void 0 && (f = "" + s.key), s.ref !== void 0 && (E = s.ref);
2595
- for (d in s) o.call(s, d) && !u.hasOwnProperty(d) && (m[d] = s[d]);
2596
- if (l && l.defaultProps) for (d in s = l.defaultProps, s) m[d] === void 0 && (m[d] = s[d]);
2597
- return { $$typeof: r, type: l, key: f, ref: E, props: m, _owner: i.current };
2605
+ function c(l, a, w) {
2606
+ var d, m = {}, f = null, z = null;
2607
+ w !== void 0 && (f = "" + w), a.key !== void 0 && (f = "" + a.key), a.ref !== void 0 && (z = a.ref);
2608
+ for (d in a) o.call(a, d) && !u.hasOwnProperty(d) && (m[d] = a[d]);
2609
+ if (l && l.defaultProps) for (d in a = l.defaultProps, a) m[d] === void 0 && (m[d] = a[d]);
2610
+ return { $$typeof: r, type: l, key: f, ref: z, props: m, _owner: i.current };
2598
2611
  }
2599
- return we.Fragment = n, we.jsx = c, we.jsxs = c, we;
2612
+ return be.Fragment = n, be.jsx = c, be.jsxs = c, be;
2600
2613
  }
2601
2614
  Mt.exports = Gr();
2602
- var Ne = Mt.exports, Kr = Object.defineProperty, qr = (e, r, n) => r in e ? Kr(e, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[r] = n, Ce = (e, r, n) => (qr(e, typeof r != "symbol" ? r + "" : r, n), n);
2615
+ var Ce = Mt.exports, Kr = Object.defineProperty, qr = (e, r, n) => r in e ? Kr(e, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[r] = n, Ee = (e, r, n) => (qr(e, typeof r != "symbol" ? r + "" : r, n), n);
2603
2616
  const Jr = {
2604
2617
  stringify: (e) => e,
2605
2618
  parse: (e) => e
@@ -2623,7 +2636,7 @@ const Jr = {
2623
2636
  }, rn = {
2624
2637
  stringify: (e) => JSON.stringify(e),
2625
2638
  parse: (e) => JSON.parse(e)
2626
- }, Pe = {
2639
+ }, Ae = {
2627
2640
  string: Jr,
2628
2641
  number: Qr,
2629
2642
  boolean: en,
@@ -2636,40 +2649,40 @@ function nn(e) {
2636
2649
  (r, n, o) => `${n}-${o.toLowerCase()}`
2637
2650
  );
2638
2651
  }
2639
- const Ee = Symbol.for("r2wc.render"), Le = Symbol.for("r2wc.connected"), oe = Symbol.for("r2wc.context"), ee = Symbol.for("r2wc.props");
2652
+ const Ne = Symbol.for("r2wc.render"), Le = Symbol.for("r2wc.connected"), oe = Symbol.for("r2wc.context"), ee = Symbol.for("r2wc.props");
2640
2653
  function on(e, r, n) {
2641
2654
  var o, i, u;
2642
2655
  r.props || (r.props = e.propTypes ? Object.keys(e.propTypes) : []);
2643
- const c = Array.isArray(r.props) ? r.props.slice() : Object.keys(r.props), l = {}, s = {}, b = {};
2656
+ const c = Array.isArray(r.props) ? r.props.slice() : Object.keys(r.props), l = {}, a = {}, w = {};
2644
2657
  for (const m of c) {
2645
2658
  l[m] = Array.isArray(r.props) ? "string" : r.props[m];
2646
2659
  const f = nn(m);
2647
- s[m] = f, b[f] = m;
2660
+ a[m] = f, w[f] = m;
2648
2661
  }
2649
2662
  class d extends HTMLElement {
2650
2663
  constructor() {
2651
- super(), Ce(this, o, !0), Ce(this, i), Ce(this, u, {}), Ce(this, "container"), r.shadow ? this.container = this.attachShadow({
2664
+ super(), Ee(this, o, !0), Ee(this, i), Ee(this, u, {}), Ee(this, "container"), r.shadow ? this.container = this.attachShadow({
2652
2665
  mode: r.shadow
2653
2666
  }) : this.container = this, this[ee].container = this.container;
2654
2667
  for (const f of c) {
2655
- const E = s[f], p = this.getAttribute(E), x = l[f], z = x ? Pe[x] : null;
2656
- z != null && z.parse && p && (this[ee][f] = z.parse(p, E, this));
2668
+ const z = a[f], v = this.getAttribute(z), g = l[f], I = g ? Ae[g] : null;
2669
+ I != null && I.parse && v && (this[ee][f] = I.parse(v, z, this));
2657
2670
  }
2658
2671
  }
2659
2672
  static get observedAttributes() {
2660
- return Object.keys(b);
2673
+ return Object.keys(w);
2661
2674
  }
2662
2675
  connectedCallback() {
2663
- this[Le] = !0, this[Ee]();
2676
+ this[Le] = !0, this[Ne]();
2664
2677
  }
2665
2678
  disconnectedCallback() {
2666
2679
  this[Le] = !1, this[oe] && n.unmount(this[oe]), delete this[oe];
2667
2680
  }
2668
- attributeChangedCallback(f, E, p) {
2669
- const x = b[f], z = l[x], w = z ? Pe[z] : null;
2670
- x in l && w != null && w.parse && p && (this[ee][x] = w.parse(p, f, this), this[Ee]());
2681
+ attributeChangedCallback(f, z, v) {
2682
+ const g = w[f], I = l[g], x = I ? Ae[I] : null;
2683
+ g in l && x != null && x.parse && v && (this[ee][g] = x.parse(v, f, this), this[Ne]());
2671
2684
  }
2672
- [(o = Le, i = oe, u = ee, Ee)]() {
2685
+ [(o = Le, i = oe, u = ee, Ne)]() {
2673
2686
  this[Le] && (this[oe] ? n.update(this[oe], this[ee]) : this[oe] = n.mount(
2674
2687
  this.container,
2675
2688
  e,
@@ -2678,28 +2691,28 @@ function on(e, r, n) {
2678
2691
  }
2679
2692
  }
2680
2693
  for (const m of c) {
2681
- const f = s[m], E = l[m];
2694
+ const f = a[m], z = l[m];
2682
2695
  Object.defineProperty(d.prototype, m, {
2683
2696
  enumerable: !0,
2684
2697
  configurable: !0,
2685
2698
  get() {
2686
2699
  return this[ee][m];
2687
2700
  },
2688
- set(p) {
2689
- this[ee][m] = p;
2690
- const x = E ? Pe[E] : null;
2691
- if (x != null && x.stringify) {
2692
- const z = x.stringify(p, f, this);
2693
- this.getAttribute(f) !== z && this.setAttribute(f, z);
2701
+ set(v) {
2702
+ this[ee][m] = v;
2703
+ const g = z ? Ae[z] : null;
2704
+ if (g != null && g.stringify) {
2705
+ const I = g.stringify(v, f, this);
2706
+ this.getAttribute(f) !== I && this.setAttribute(f, I);
2694
2707
  } else
2695
- this[Ee]();
2708
+ this[Ne]();
2696
2709
  }
2697
2710
  });
2698
2711
  }
2699
2712
  return d;
2700
2713
  }
2701
2714
  function sn(e, r, n) {
2702
- const o = Ft(e), i = ye.createElement(r, n);
2715
+ const o = Pt(e), i = ye.createElement(r, n);
2703
2716
  return o.render(i), {
2704
2717
  root: o,
2705
2718
  ReactComponent: r
@@ -2727,9 +2740,9 @@ function dn(e) {
2727
2740
  r[cn(n)] = o.toString();
2728
2741
  }), r;
2729
2742
  }
2730
- const un = (e) => /* @__PURE__ */ Ne.jsxs(Ne.Fragment, { children: [
2731
- /* @__PURE__ */ Ne.jsx("style", { children: Br }),
2732
- /* @__PURE__ */ Ne.jsx(Wr, { ...e })
2743
+ const un = (e) => /* @__PURE__ */ Ce.jsxs(Ce.Fragment, { children: [
2744
+ /* @__PURE__ */ Ce.jsx("style", { children: Br }),
2745
+ /* @__PURE__ */ Ce.jsx(Wr, { ...e })
2733
2746
  ] }), mn = Tt(un, {
2734
2747
  shadow: "open",
2735
2748
  props: {
@@ -2752,10 +2765,10 @@ const un = (e) => /* @__PURE__ */ Ne.jsxs(Ne.Fragment, { children: [
2752
2765
  }
2753
2766
  });
2754
2767
  function fn() {
2755
- return !!customElements.get(Ze) && !!customElements.get(De);
2768
+ return !!customElements.get(Fe) && !!customElements.get(De);
2756
2769
  }
2757
2770
  function gn() {
2758
- customElements.define(Ze, mn), customElements.define(De, hn);
2771
+ customElements.define(Fe, mn), customElements.define(De, hn);
2759
2772
  }
2760
2773
  function Vt() {
2761
2774
  fn() || gn();
@@ -2770,37 +2783,34 @@ const wn = ({
2770
2783
  onHotspotsOn: u,
2771
2784
  onHotspotsOff: c,
2772
2785
  onGalleryOpen: l,
2773
- onGalleryClose: s,
2774
- ...b
2786
+ onGalleryClose: a,
2787
+ ...w
2775
2788
  }) => {
2776
- const d = pn(b);
2777
- return P(() => {
2778
- const m = b.eventPrefix ?? mt, f = (p) => `${m}${p}`, E = /* @__PURE__ */ new Map([
2779
- [nt, e],
2780
- [ot, r],
2781
- [st, n],
2782
- [at, o],
2783
- [it, i],
2784
- [lt, u],
2785
- [ct, c],
2786
- [dt, l],
2787
- [ut, s]
2788
- ]);
2789
- return E.forEach((p, x) => {
2790
- if (p) {
2791
- const z = f(x);
2792
- document.addEventListener(z, p);
2793
- }
2789
+ const d = pn(w);
2790
+ return Z(() => {
2791
+ const m = w.eventPrefix ?? mt, f = (g) => `${m}${g}`, z = {
2792
+ [nt]: e,
2793
+ [ot]: r,
2794
+ [st]: n,
2795
+ [at]: o,
2796
+ [it]: i,
2797
+ [lt]: u,
2798
+ [ct]: c,
2799
+ [dt]: l,
2800
+ [ut]: a
2801
+ }, v = /* @__PURE__ */ new Map();
2802
+ return Object.entries(z).forEach(([g, I]) => {
2803
+ if (!I)
2804
+ return;
2805
+ const x = f(g), T = (b) => I(b.detail);
2806
+ v.set(x, T), document.addEventListener(x, T);
2794
2807
  }), () => {
2795
- E.forEach((p, x) => {
2796
- if (p) {
2797
- const z = f(x);
2798
- document.removeEventListener(z, p);
2799
- }
2808
+ v.forEach((g, I) => {
2809
+ document.removeEventListener(I, g);
2800
2810
  });
2801
2811
  };
2802
2812
  }, [
2803
- b.eventPrefix,
2813
+ w.eventPrefix,
2804
2814
  e,
2805
2815
  r,
2806
2816
  n,
@@ -2809,7 +2819,7 @@ const wn = ({
2809
2819
  u,
2810
2820
  c,
2811
2821
  l,
2812
- s
2822
+ a
2813
2823
  ]), /* @__PURE__ */ rt.jsx("cc-webplayer", { ...d });
2814
2824
  };
2815
2825
  Vt();
@@ -2826,7 +2836,7 @@ export {
2826
2836
  ct as EVENT_HOTSPOTS_OFF,
2827
2837
  lt as EVENT_HOTSPOTS_ON,
2828
2838
  De as WEB_PLAYER_ICON_WC_TAG,
2829
- Ze as WEB_PLAYER_WC_TAG,
2839
+ Fe as WEB_PLAYER_WC_TAG,
2830
2840
  wn as WebPlayer,
2831
2841
  bn as WebPlayerIcon
2832
2842
  };