@car-cutter/react-webplayer 0.3.2 → 0.4.1

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 xe, { createContext as Le, useContext as _e, useRef as W, useState as F, useCallback as T, useEffect as A, useMemo as Q, Fragment as Ot } from "react";
2
- import At from "react-dom";
3
- var tt = { exports: {} }, he = {};
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 = {};
4
4
  /**
5
5
  * @license React
6
6
  * react-jsx-runtime.production.min.js
@@ -10,28 +10,28 @@ var tt = { exports: {} }, he = {};
10
10
  * This source code is licensed under the MIT license found in the
11
11
  * LICENSE file in the root directory of this source tree.
12
12
  */
13
- var Ye;
13
+ var Xe;
14
14
  function Pt() {
15
- if (Ye) return he;
16
- Ye = 1;
17
- var e = xe, 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, s = { key: !0, ref: !0, __self: !0, __source: !0 };
18
- function l(d, a, g) {
19
- var c, f = {}, p = null, M = null;
20
- g !== void 0 && (p = "" + g), a.key !== void 0 && (p = "" + a.key), a.ref !== void 0 && (M = a.ref);
21
- for (c in a) o.call(a, c) && !s.hasOwnProperty(c) && (f[c] = a[c]);
22
- if (d && d.defaultProps) for (c in a = d.defaultProps, a) f[c] === void 0 && (f[c] = a[c]);
23
- return { $$typeof: r, type: d, key: p, ref: M, props: f, _owner: i.current };
15
+ if (Xe) return ge;
16
+ Xe = 1;
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 };
24
24
  }
25
- return he.Fragment = n, he.jsx = l, he.jsxs = l, he;
25
+ return ge.Fragment = n, ge.jsx = c, ge.jsxs = c, ge;
26
26
  }
27
27
  tt.exports = Pt();
28
28
  var rt = tt.exports;
29
- const Ze = "cc-webplayer", Fe = "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, $t = !1, Wt = "quality", Dt = !1, mt = "cc-webplayer:", Ut = !1;
30
- function Yt(e, r) {
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;
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: {} }, fe = {};
34
+ var pt = { exports: {} }, xe = {};
35
35
  /**
36
36
  * @license React
37
37
  * react-jsx-runtime.production.min.js
@@ -41,35 +41,35 @@ var pt = { exports: {} }, fe = {};
41
41
  * This source code is licensed under the MIT license found in the
42
42
  * LICENSE file in the root directory of this source tree.
43
43
  */
44
- var Xe;
44
+ var Be;
45
45
  function Xt() {
46
- if (Xe) return fe;
47
- Xe = 1;
48
- var e = xe, 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, s = { key: !0, ref: !0, __self: !0, __source: !0 };
49
- function l(d, a, g) {
50
- var c, f = {}, p = null, M = null;
51
- g !== void 0 && (p = "" + g), a.key !== void 0 && (p = "" + a.key), a.ref !== void 0 && (M = a.ref);
52
- for (c in a) o.call(a, c) && !s.hasOwnProperty(c) && (f[c] = a[c]);
53
- if (d && d.defaultProps) for (c in a = d.defaultProps, a) f[c] === void 0 && (f[c] = a[c]);
54
- return { $$typeof: r, type: d, key: p, ref: M, props: f, _owner: i.current };
46
+ if (Be) return xe;
47
+ Be = 1;
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 };
55
55
  }
56
- return fe.Fragment = n, fe.jsx = l, fe.jsxs = l, fe;
56
+ return xe.Fragment = n, xe.jsx = c, xe.jsxs = c, xe;
57
57
  }
58
58
  pt.exports = Xt();
59
59
  var t = pt.exports;
60
- async function Gt(e) {
60
+ async function Bt(e) {
61
61
  const r = await fetch(e);
62
62
  if (!r.ok)
63
63
  throw new Error(`Failed to fetch composition: ${r.statusText}`);
64
64
  return await r.json();
65
65
  }
66
- const Oe = /* @__PURE__ */ new Map(), Bt = (e) => {
67
- const [r, n] = F({
66
+ const Fe = /* @__PURE__ */ new Map(), Gt = (e) => {
67
+ const [r, n] = A({
68
68
  status: "pending",
69
69
  isSuccess: !1
70
70
  });
71
- return A(() => {
72
- const o = (s) => n({ status: "success", data: s, isSuccess: !0 }), i = Oe.get(e);
71
+ return P(() => {
72
+ const o = (u) => n({ status: "success", data: u, isSuccess: !0 }), i = Fe.get(e);
73
73
  if (i && !(i instanceof Promise)) {
74
74
  o(i);
75
75
  return;
@@ -79,35 +79,35 @@ const Oe = /* @__PURE__ */ new Map(), Bt = (e) => {
79
79
  isSuccess: !1
80
80
  }), async function() {
81
81
  try {
82
- let s;
82
+ let u;
83
83
  if (i)
84
- s = await i;
84
+ u = await i;
85
85
  else {
86
- const l = Gt(e);
87
- Oe.set(e, l), s = await l, Oe.set(e, s);
86
+ const c = Bt(e);
87
+ Fe.set(e, c), u = await c, Fe.set(e, u);
88
88
  }
89
- o(s);
90
- } catch (s) {
89
+ o(u);
90
+ } catch (u) {
91
91
  n({
92
92
  status: "error",
93
93
  isSuccess: !1,
94
- error: s
94
+ error: u
95
95
  });
96
96
  }
97
97
  }();
98
98
  }, [e]), r;
99
- }, ht = Le(null), ee = () => {
100
- const e = _e(ht);
99
+ }, ht = Ie(null), re = () => {
100
+ const e = Me(ht);
101
101
  if (!e)
102
102
  throw new Error(
103
103
  "useCompositionContext must be used within a CompositionContextProvider"
104
104
  );
105
105
  return e;
106
- }, qt = ({ composition: e, children: r }) => {
107
- const { aspectRatio: n, categories: o } = e, i = Q(
108
- () => o.flatMap(({ items: l }) => l),
106
+ }, Kt = ({ composition: e, children: r }) => {
107
+ const { aspectRatio: n, categories: o } = e, i = te(
108
+ () => o.flatMap(({ items: c }) => c),
109
109
  [o]
110
- ), s = {
110
+ ), u = {
111
111
  aspectRatio: n.replace(":", " / ")
112
112
  };
113
113
  return /* @__PURE__ */ t.jsx(
@@ -116,24 +116,24 @@ const Oe = /* @__PURE__ */ new Map(), Bt = (e) => {
116
116
  value: {
117
117
  ...e,
118
118
  items: i,
119
- aspectRatioStyle: s
119
+ aspectRatioStyle: u
120
120
  },
121
121
  children: r
122
122
  }
123
123
  );
124
- }, ft = 500, Pe = 0.75, Ne = 1 + Pe * 2;
125
- function ae(e, r, n) {
124
+ }, ft = 500, Ae = 0.75, _e = 1 + Ae * 2;
125
+ function se(e, r, n) {
126
126
  return Math.min(Math.max(e, r), n);
127
127
  }
128
- const Ee = (e, r, n) => e + (r - e) * n, Ge = (e, r) => (e % r + r) % r, gt = Le(null), te = () => {
129
- const e = _e(gt);
128
+ const ze = (e, r, n) => e + (r - e) * n, Ge = (e, r) => (e % r + r) % r, gt = Ie(null), J = () => {
129
+ const e = Me(gt);
130
130
  if (!e)
131
131
  throw new Error(
132
132
  "useGlobalContext must be used within a GlobalContextProvider"
133
133
  );
134
134
  return e;
135
- }, Kt = ({ children: e, ...r }) => /* @__PURE__ */ t.jsx(gt.Provider, { value: r, children: e }), vt = Le(null), q = () => {
136
- const e = _e(vt);
135
+ }, qt = ({ children: e, ...r }) => /* @__PURE__ */ t.jsx(gt.Provider, { value: r, children: e }), xt = Ie(null), q = () => {
136
+ const e = Me(xt);
137
137
  if (!e)
138
138
  throw new Error(
139
139
  "useControlsContext must be used within a ControlsContextProvider"
@@ -143,176 +143,195 @@ const Ee = (e, r, n) => e + (r - e) * n, Ge = (e, r) => (e % r + r) % r, gt = Le
143
143
  children: e
144
144
  }) => {
145
145
  const {
146
- emitEvent: r,
147
- isFullScreen: n,
148
- preventFullScreen: o,
149
- requestFullscreen: i,
150
- exitFullscreen: s
151
- } = te(), { categories: l, items: d } = ee(), a = T(() => d.map(() => null), [d]), [g, c] = F(a), f = T(
152
- (O, de) => {
153
- c(
154
- (ye) => ye.map((Re, pe) => pe === O ? de : Re)
146
+ infiniteCarrousel: r,
147
+ preventFullScreen: n,
148
+ emitEvent: o,
149
+ isFullScreen: i,
150
+ requestFullscreen: u,
151
+ exitFullscreen: c
152
+ } = J(), { categories: l, items: s } = re(), [b, d] = A(s.map(() => null)), m = M(
153
+ (F, Q) => {
154
+ d(
155
+ (de) => de.map((he, fe) => fe === F ? Q : he)
155
156
  );
156
157
  },
157
158
  []
158
- ), [p, M] = F(0), [u, h] = F(null), j = u ?? p, N = d[j], E = g[j], [w, k] = F(null), y = T(() => k(null), []), I = T(() => {
159
- if (w || u !== null)
159
+ ), [f, E] = A(0), [p, x] = A(null), z = p ?? f, w = s[z], N = b[z], [j, h] = A(
160
+ null
161
+ ), g = !!j, C = M(() => h(null), []), T = M(() => {
162
+ if (g || p !== null)
160
163
  return;
161
- const O = p - 1;
162
- O < 0 ? (k("first_to_last"), h(d.length - 1)) : h(O);
163
- }, [p, d.length, w, u]), v = T(() => {
164
- if (w || u !== null)
164
+ const F = f - 1;
165
+ F >= 0 ? x(F) : r && (h("first_to_last"), x(s.length - 1));
166
+ }, [
167
+ g,
168
+ p,
169
+ f,
170
+ r,
171
+ s.length
172
+ ]), V = M(() => {
173
+ if (g || p !== null)
165
174
  return;
166
- const O = p + 1;
167
- O > d.length - 1 ? (k("last_to_first"), h(0)) : h(O);
168
- }, [p, d.length, w, u]), L = Q(() => {
169
- for (const O of l)
170
- if (O.items.includes(N))
171
- return O.id;
175
+ const F = f + 1;
176
+ F < s.length ? x(F) : r && (h("last_to_first"), x(0));
177
+ }, [
178
+ g,
179
+ p,
180
+ f,
181
+ s.length,
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);
187
+ },
188
+ [f, b]
189
+ ), v = te(() => {
190
+ for (const F of l)
191
+ if (F.items.includes(w))
192
+ return F.id;
172
193
  throw new Error("Current item not found in any category");
173
- }, [l, N]), z = T(
174
- (O) => {
175
- var de;
176
- const ye = (de = l.find(({ id: pe }) => pe === O)) == null ? void 0 : de.items[0];
177
- if (ye === void 0)
194
+ }, [l, w]), _ = M(
195
+ (F) => {
196
+ var Q;
197
+ const de = (Q = l.find(({ id: fe }) => fe === F)) == null ? void 0 : Q.items[0];
198
+ if (de === void 0)
178
199
  throw new Error("Failed to find target category");
179
- const Re = d.findIndex((pe) => pe === ye);
180
- h(Re);
200
+ const he = s.findIndex((fe) => fe === de);
201
+ S(he);
181
202
  },
182
- [l, d]
183
- ), C = Q(() => {
184
- var O;
185
- switch (N.type) {
203
+ [l, s, S]
204
+ ), I = te(() => {
205
+ var F;
206
+ switch (w.type) {
186
207
  case "image":
187
- return !!((O = N.hotspots) != null && O.length);
208
+ return !!((F = w.hotspots) != null && F.length);
188
209
  case "360":
189
- return E !== null;
210
+ return N === "running";
190
211
  case "video":
191
- case "omni_directional":
192
212
  return !1;
193
213
  }
194
- }, [N, E]), [S, H] = F(!0), R = T(() => {
195
- const O = !S;
196
- H(O), r(O ? lt : ct);
197
- }, [r, S]), U = Q(() => {
198
- switch (N.type) {
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) {
199
219
  case "image":
200
220
  case "360":
201
- case "omni_directional":
202
221
  return !0;
203
222
  case "video":
204
- return E !== "running";
223
+ return N !== "running";
205
224
  }
206
- }, [N, E]), [_, x] = F(!1), m = T(() => {
207
- const O = !_;
208
- x(O), r(O ? dt : ut);
209
- }, [r, _]), [b, V] = F(null), P = T(() => V(null), []), $ = !!b, D = Q(() => {
210
- switch (N.type) {
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) {
211
230
  case "image":
212
231
  return !0;
213
232
  case "360":
214
- return E !== null;
233
+ return N === "running";
215
234
  case "video":
216
- case "omni_directional":
217
235
  return !1;
218
236
  }
219
- }, [N.type, E]), [X, G] = F(1), K = X !== 1, re = X < Ne, ne = X > 1, oe = T((O) => {
220
- G((de) => ae(de + O, 1, Ne));
221
- }, []), me = T(() => G(1), []), ze = T(() => oe(Pe), [oe]), Me = T(() => oe(-Pe), [oe]), Ie = T(() => {
222
- me(), P();
223
- }, [me, P]), [ie, Ht] = F(!1), [Te, De] = F(), [Ve, Ue] = F(!1), le = T(
224
- async (O) => {
225
- Ie(), Ht(O), r(O ? at : it);
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);
226
244
  },
227
- [r, Ie]
228
- ), ce = T(() => {
229
- clearTimeout(Te);
230
- const O = setTimeout(() => {
231
- De(void 0);
245
+ [o, Ve]
246
+ ), ce = M(() => {
247
+ clearTimeout(Se);
248
+ const F = setTimeout(() => {
249
+ We(void 0);
232
250
  }, ft);
233
- De(O);
234
- }, [Te]), Se = T(async () => {
235
- if (ce(), !o) {
236
- const O = await i();
237
- if (Ue(!O), O)
251
+ We(F);
252
+ }, [Se]), He = M(async () => {
253
+ if (ce(), !n) {
254
+ const F = await u();
255
+ if (Ue(!F), F)
238
256
  return;
239
257
  }
240
258
  le(!0);
241
259
  }, [
242
- o,
260
+ n,
243
261
  le,
244
- i,
262
+ u,
245
263
  ce
246
- ]), He = T(async () => {
247
- ce(), !(!o && (Ue(!1), await s())) && le(!1);
264
+ ]), Oe = M(async () => {
265
+ ce(), !(!n && (Ue(!1), await c())) && le(!1);
248
266
  }, [
249
- o,
267
+ n,
250
268
  le,
251
- s,
269
+ c,
252
270
  ce
253
- ]), Rt = T(() => {
254
- ie ? He() : Se();
255
- }, [He, Se, ie]);
256
- return A(() => {
257
- o || Ve && ie || n !== ie && (ce(), le(n));
271
+ ]), Ht = M(() => {
272
+ ie ? Oe() : He();
273
+ }, [Oe, He, ie]);
274
+ return P(() => {
275
+ n || Re && ie || i !== ie && (ce(), le(i));
258
276
  }, [
259
- o,
277
+ n,
260
278
  le,
261
279
  ie,
262
- Ve,
263
- n,
280
+ Re,
281
+ i,
264
282
  ce
265
283
  ]), /* @__PURE__ */ t.jsx(
266
- vt.Provider,
284
+ xt.Provider,
267
285
  {
268
286
  value: {
269
- setItemInteraction: f,
270
- slidable: d.length > 1,
271
- carrouselItemIndex: p,
272
- setCarrouselItemIndex: M,
273
- itemIndexCommand: u,
274
- setItemIndexCommand: h,
275
- masterItemIndex: j,
276
- cycling: w,
277
- isCycling: !!w,
278
- finishCycling: y,
279
- prevImage: I,
280
- nextImage: v,
281
- displayedCategoryId: L,
282
- changeCategory: z,
283
- enableHotspotsControl: C,
284
- showHotspots: S,
285
- toggleHotspots: R,
286
- showGalleryControls: U,
287
- showGallery: _,
288
- toggleGallery: m,
289
- shownDetails: b,
290
- isShowingDetails: $,
291
- setShownDetails: V,
292
- resetShownDetails: P,
293
- showZoomControls: D,
294
- zoom: X,
295
- isZooming: K,
296
- setZoom: G,
297
- resetZoom: me,
298
- canZoomIn: re,
299
- zoomIn: ze,
300
- canZoomOut: ne,
301
- zoomOut: Me,
302
- resetView: Ie,
287
+ setItemInteraction: m,
288
+ slidable: s.length > 1,
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,
307
+ toggleGallery: H,
308
+ shownDetails: D,
309
+ isShowingDetails: G,
310
+ setShownDetails: Y,
311
+ resetShownDetails: W,
312
+ showZoomControls: X,
313
+ zoom: B,
314
+ isZooming: je,
315
+ setZoom: ne,
316
+ resetZoom: pe,
317
+ canZoomIn: me,
318
+ zoomIn: Te,
319
+ canZoomOut: ke,
320
+ zoomOut: St,
321
+ resetView: Ve,
303
322
  extendMode: ie,
304
- enableExtendMode: Se,
305
- disableExtendMode: He,
306
- toggleExtendMode: Rt,
307
- extendTransition: !!Te,
308
- fakeFullScreen: Ve
323
+ enableExtendMode: He,
324
+ disableExtendMode: Oe,
325
+ toggleExtendMode: Ht,
326
+ extendTransition: !!Se,
327
+ fakeFullScreen: Re
309
328
  },
310
329
  children: e
311
330
  }
312
331
  );
313
- }, wt = ["left", "center", "right", "fullW"], xt = ["top", "middle", "bottom", "fullH"], Qt = [
332
+ }, vt = ["left", "center", "right", "fullW"], wt = ["top", "middle", "bottom", "fullH"], Qt = [
333
+ ...vt,
314
334
  ...wt,
315
- ...xt,
316
335
  "top-left",
317
336
  "top-center",
318
337
  "top-right",
@@ -331,10 +350,10 @@ const Ee = (e, r, n) => e + (r - e) * n, Ge = (e, r) => (e % r + r) % r, gt = Le
331
350
  "fullW-fullW"
332
351
  ];
333
352
  function er(e) {
334
- return wt.includes(e);
353
+ return vt.includes(e);
335
354
  }
336
355
  function tr(e) {
337
- return xt.includes(e);
356
+ return wt.includes(e);
338
357
  }
339
358
  function rr(e) {
340
359
  return Qt.includes(e);
@@ -344,7 +363,7 @@ function nr(e) {
344
363
  throw new Error(`Invalid position: ${e}`);
345
364
  return tr(e) ? [e, void 0] : er(e) ? [void 0, e] : e.split("-");
346
365
  }
347
- function Z(...e) {
366
+ function O(...e) {
348
367
  return e.filter((r) => !!r).map((r) => r.trim()).join(" ");
349
368
  }
350
369
  function or(e) {
@@ -359,7 +378,7 @@ function or(e) {
359
378
  return "inset-x-1 small:inset-x-2";
360
379
  }
361
380
  }
362
- function yt(e) {
381
+ function bt(e) {
363
382
  switch (e) {
364
383
  case "top":
365
384
  return "top-1 small:top-2";
@@ -376,13 +395,13 @@ function sr({
376
395
  positionY: r
377
396
  }) {
378
397
  const n = new Array();
379
- return e && n.push(or(e)), r && n.push(yt(r)), n.join(" ");
398
+ return e && n.push(or(e)), r && n.push(bt(r)), n.join(" ");
380
399
  }
381
400
  function ue(e) {
382
401
  const [r, n] = nr(e);
383
402
  return sr({ positionX: n, positionY: r });
384
403
  }
385
- const bt = Le(null), jt = () => _e(bt), $e = () => {
404
+ const yt = Ie(null), jt = () => Me(yt), $e = () => {
386
405
  const e = jt();
387
406
  if (!e)
388
407
  throw new Error(
@@ -390,49 +409,49 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
390
409
  );
391
410
  return e;
392
411
  }, ar = ({ children: e }) => {
393
- const [r, n] = F(
412
+ const [r, n] = A(
394
413
  /* @__PURE__ */ new Map()
395
- ), o = T(
396
- (l) => {
397
- const d = r.get(l);
398
- if (d)
399
- return d;
400
- const a = document.querySelector(
401
- `${Fe}[name="${l}"]`
414
+ ), o = M(
415
+ (c) => {
416
+ const l = r.get(c);
417
+ if (l)
418
+ return l;
419
+ const s = document.querySelector(
420
+ `${De}[name="${c}"]`
402
421
  );
403
- if (!a)
422
+ if (!s)
404
423
  return;
405
- const g = a.getAttribute("color") ?? void 0, c = a.innerHTML, f = c ? /* @__PURE__ */ t.jsx(
424
+ const b = s.getAttribute("color") ?? void 0, d = s.innerHTML, m = d ? /* @__PURE__ */ t.jsx(
406
425
  "div",
407
426
  {
408
427
  className: "size-full",
409
- dangerouslySetInnerHTML: { __html: c }
428
+ dangerouslySetInnerHTML: { __html: d }
410
429
  }
411
430
  ) : void 0;
412
- if (!(!g && !f))
413
- return { Icon: f, color: g };
431
+ if (!(!b && !m))
432
+ return { Icon: m, color: b };
414
433
  },
415
434
  [r]
416
- ), i = T(
417
- (l, d) => {
418
- n((a) => new Map(a.set(l, d)));
435
+ ), i = M(
436
+ (c, l) => {
437
+ n((s) => new Map(s.set(c, l)));
419
438
  },
420
439
  []
421
- ), s = T((l) => {
422
- n((d) => (d.delete(l), new Map(d)));
440
+ ), u = M((c) => {
441
+ n((l) => (l.delete(c), new Map(l)));
423
442
  }, []);
424
443
  return /* @__PURE__ */ t.jsx(
425
- bt.Provider,
444
+ yt.Provider,
426
445
  {
427
446
  value: {
428
447
  getIconConfig: o,
429
448
  setIconConfig: i,
430
- resetIconConfig: s
449
+ resetIconConfig: u
431
450
  },
432
451
  children: e
433
452
  }
434
453
  );
435
- }, Y = ({
454
+ }, U = ({
436
455
  customizationKey: e,
437
456
  className: r = "",
438
457
  children: n
@@ -446,7 +465,7 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
446
465
  children: (i == null ? void 0 : i.Icon) ?? n
447
466
  }
448
467
  ) : n;
449
- }, ir = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, customizationKey: "UI_CLOSE", children: /* @__PURE__ */ t.jsx(
468
+ }, ir = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_CLOSE", children: /* @__PURE__ */ t.jsx(
450
469
  "svg",
451
470
  {
452
471
  className: e,
@@ -475,28 +494,28 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
475
494
  }, cr = {
476
495
  button: "h-8 px-2",
477
496
  icon: "size-8 p-2"
478
- }, B = ({
497
+ }, K = ({
479
498
  variant: e = "fill",
480
499
  shape: r = "button",
481
500
  color: n = "primary",
482
501
  className: o = "",
483
502
  children: i,
484
- ...s
503
+ ...u
485
504
  }) => {
486
- const l = lr[e][n], d = cr[r];
505
+ const c = lr[e][n], l = cr[r];
487
506
  return /* @__PURE__ */ t.jsx(
488
507
  "button",
489
508
  {
490
- className: `${l} ${d} flex items-center justify-center rounded-ui text-sm transition disabled:opacity-60 ${o}`,
491
- ...s,
509
+ className: `${c} ${l} flex items-center justify-center rounded-ui text-sm transition disabled:opacity-60 ${o}`,
510
+ ...u,
492
511
  children: i
493
512
  }
494
513
  );
495
- }, kt = ({ className: e = "", ...r }) => /* @__PURE__ */ t.jsx(B, { color: "neutral", shape: "icon", className: e, ...r, children: /* @__PURE__ */ t.jsx(ir, { className: "size-full" }) }), Ct = ({
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 = ({
496
515
  title: e,
497
516
  error: r,
498
517
  children: n
499
- }) => (A(() => {
518
+ }) => (P(() => {
500
519
  console.error(e, r);
501
520
  }, [r, e]), /* @__PURE__ */ t.jsxs("div", { className: "space-y-2", children: [
502
521
  /* @__PURE__ */ t.jsx("div", { className: "text-xl", children: e }),
@@ -508,7 +527,7 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
508
527
  sm: "size-4 border",
509
528
  md: "size-8 border-2",
510
529
  lg: "size-12 border-4"
511
- }, Et = ({
530
+ }, Ct = ({
512
531
  color: e = "neutral",
513
532
  size: r = "md"
514
533
  }) => {
@@ -519,53 +538,82 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
519
538
  className: `inline-block ${o} animate-rotation rounded-full ${n} border-b-transparent`
520
539
  }
521
540
  );
522
- }, we = ({
541
+ }, be = ({
523
542
  src: e,
524
- imgInPlayerWidthRatio: r = 1,
525
- onlyThumbnail: n,
526
- ...o
543
+ className: r,
544
+ onLoad: n,
545
+ imgInPlayerWidthRatio: o = 1,
546
+ onlyThumbnail: i,
547
+ fadeIn: u,
548
+ ...c
527
549
  }) => {
528
550
  const {
529
- minImageWidth: i,
551
+ minImageWidth: l,
530
552
  maxImageWidth: s,
531
- imageLoadStrategy: l,
553
+ imageLoadStrategy: b,
532
554
  playerInViewportWidthRatio: d
533
- } = te(), { imageHdWidth: a, imageSubWidths: g } = ee(), [c, f] = Q(() => {
534
- const p = g.concat(a).sort((h, j) => h - j).filter((h) => !(i && h < i || s && h > s));
535
- if (p.length === 0)
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)
536
558
  throw new Error("No image widths available for the given constraints");
537
- const M = p.map((h) => `${h !== a ? Yt(e, h) : e} ${h}w`);
538
- let u;
539
- if (n)
540
- u = [`${p.shift()}px`];
559
+ const N = w.map((h) => `${h !== m ? Ut(e, h) : e} ${h}w`);
560
+ let j;
561
+ if (i)
562
+ j = [`${w.shift()}px`];
541
563
  else {
542
- const h = 1 / (r * d);
543
- if (l === "quality") {
544
- const j = p.pop();
545
- u = p.map(
546
- (N) => `(max-width: ${h * N}px) ${N}px`
547
- ), u.push(`${j}px`);
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`);
548
570
  } else {
549
- const j = p.shift();
550
- u = p.reverse().map(
551
- (N) => `(min-width: ${h * N}px) ${N}px`
552
- ), u.push(`${j}px`);
571
+ const g = w.shift();
572
+ j = w.reverse().map(
573
+ (C) => `(min-width: ${h * C}px) ${C}px`
574
+ ), j.push(`${g}px`);
553
575
  }
554
576
  }
555
- return [M.join(", "), u.join(", ")];
577
+ return [N.join(", "), j.join(", ")];
556
578
  }, [
557
- a,
558
- l,
559
- g,
560
- r,
579
+ m,
580
+ b,
581
+ f,
582
+ o,
561
583
  s,
584
+ l,
562
585
  i,
563
- n,
564
586
  d,
565
587
  e
566
- ]);
567
- return /* @__PURE__ */ t.jsx("img", { src: e, srcSet: c, sizes: f, ...o });
568
- }, We = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, customizationKey: "UI_PLAY", children: /* @__PURE__ */ t.jsx(
588
+ ]), [x, z] = A();
589
+ return P(() => {
590
+ if (x === !0)
591
+ return;
592
+ const w = setTimeout(() => {
593
+ z(!1);
594
+ }, 30);
595
+ return () => clearTimeout(w);
596
+ }, [x]), /* @__PURE__ */ t.jsx(
597
+ "img",
598
+ {
599
+ src: e,
600
+ srcSet: E,
601
+ sizes: p,
602
+ className: O(
603
+ r,
604
+ u && O(
605
+ x !== void 0 && "transition-opacity duration-200",
606
+ x === !1 && "opacity-0",
607
+ x === !0 && "opacity-100"
608
+ )
609
+ ),
610
+ onLoad: (w) => {
611
+ z(!0), n == null || n(w);
612
+ },
613
+ ...c
614
+ }
615
+ );
616
+ }, Ye = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_PLAY", children: /* @__PURE__ */ t.jsx(
569
617
  "svg",
570
618
  {
571
619
  className: e,
@@ -577,7 +625,7 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
577
625
  strokeLinejoin: "round",
578
626
  children: /* @__PURE__ */ t.jsx("polygon", { points: "6 3 20 12 6 21 6 3" })
579
627
  }
580
- ) }), Nt = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, customizationKey: "UI_360", children: /* @__PURE__ */ t.jsxs(
628
+ ) }), Et = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_360", children: /* @__PURE__ */ t.jsxs(
581
629
  "svg",
582
630
  {
583
631
  className: e,
@@ -632,14 +680,14 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
632
680
  /* @__PURE__ */ t.jsx("defs", { children: /* @__PURE__ */ t.jsx("clipPath", { id: "clip0_134_843", children: /* @__PURE__ */ t.jsx("rect", { width: "56", height: "56", fill: "white" }) }) })
633
681
  ]
634
682
  }
635
- ) }), Be = ({
683
+ ) }), Ke = ({
636
684
  children: e
637
685
  }) => {
638
686
  const { extendMode: r } = q();
639
687
  return /* @__PURE__ */ t.jsx(
640
688
  "div",
641
689
  {
642
- className: Z(
690
+ className: O(
643
691
  "flex aspect-square h-3/4 items-center justify-center rounded-full bg-foreground/50 p-1",
644
692
  r && "large:h-3/5 large:p-2"
645
693
  ),
@@ -647,43 +695,45 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
647
695
  }
648
696
  );
649
697
  }, mr = ({ item: e }) => {
650
- const { aspectRatioStyle: r } = ee(), { type: n } = e;
651
- let o;
652
- if (n !== "omni_directional") {
653
- let s;
654
- switch (n) {
655
- case "360":
656
- s = e.images[0].src;
657
- break;
658
- case "image":
659
- s = e.src;
660
- break;
661
- case "video":
662
- s = e.poster;
663
- break;
664
- }
665
- o = /* @__PURE__ */ t.jsx(we, { className: "size-full object-cover", src: s, onlyThumbnail: !0 });
666
- } else {
667
- const s = e.src;
668
- o = /* @__PURE__ */ t.jsx("img", { className: "size-full object-cover", src: s });
669
- }
698
+ const { permanentGallery: r } = J(), { aspectRatioStyle: n } = re(), { type: o } = e;
670
699
  let i;
671
- switch (n) {
700
+ switch (o) {
672
701
  case "360":
673
- i = /* @__PURE__ */ t.jsx(Be, { children: /* @__PURE__ */ t.jsx(Nt, { className: "size-full text-primary" }) });
702
+ i = e.images[0].src;
703
+ break;
704
+ case "image":
705
+ i = e.src;
674
706
  break;
675
707
  case "video":
676
- i = /* @__PURE__ */ t.jsx(Be, { children: /* @__PURE__ */ t.jsx(We, { className: "size-full p-0.5 text-background" }) });
708
+ i = e.poster;
709
+ break;
710
+ }
711
+ const u = /* @__PURE__ */ t.jsx(
712
+ be,
713
+ {
714
+ className: "size-full object-cover",
715
+ src: i,
716
+ onlyThumbnail: !0,
717
+ fadeIn: !r
718
+ }
719
+ );
720
+ let c;
721
+ switch (o) {
722
+ case "360":
723
+ c = /* @__PURE__ */ t.jsx(Ke, { children: /* @__PURE__ */ t.jsx(Et, { className: "size-full text-primary" }) });
724
+ break;
725
+ case "video":
726
+ c = /* @__PURE__ */ t.jsx(Ke, { children: /* @__PURE__ */ t.jsx(Ye, { className: "size-full p-0.5 text-background" }) });
677
727
  break;
678
728
  }
679
729
  return /* @__PURE__ */ t.jsxs(
680
730
  "div",
681
731
  {
682
732
  className: "relative overflow-hidden rounded-gallery bg-foreground/30",
683
- style: r,
733
+ style: n,
684
734
  children: [
685
- o,
686
- i && /* @__PURE__ */ t.jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-foreground/25", children: i })
735
+ u,
736
+ c && /* @__PURE__ */ t.jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-foreground/25", children: c })
687
737
  ]
688
738
  }
689
739
  );
@@ -697,133 +747,135 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
697
747
  orientation: r = "horizontal"
698
748
  }) => {
699
749
  const n = pr[e], o = r === "horizontal" ? "h-px w-full" : "w-px h-full";
700
- return /* @__PURE__ */ t.jsx("div", { className: Z(n, o) });
701
- }, _t = ({
750
+ return /* @__PURE__ */ t.jsx("div", { className: O(n, o) });
751
+ }, zt = ({
702
752
  className: e = "",
703
753
  containerClassName: r = ""
704
754
  }) => {
705
- const { flatten: n, isFullScreen: o, permanentGallery: i } = te(), { categories: s, items: l, aspectRatioStyle: d } = ee(), {
706
- extendMode: a,
707
- extendTransition: g,
708
- masterItemIndex: c,
709
- setItemIndexCommand: f,
710
- resetView: p
711
- } = q(), M = Q(() => {
755
+ const { flatten: n, infiniteCarrousel: o, permanentGallery: i, isFullScreen: u } = J(), { categories: c, items: l, aspectRatioStyle: s } = re(), {
756
+ extendMode: b,
757
+ extendTransition: d,
758
+ masterItemIndex: m,
759
+ prevItem: f,
760
+ nextItem: E,
761
+ scrollToItemIndex: p,
762
+ resetView: x
763
+ } = q(), z = te(() => {
712
764
  if (n)
713
765
  return [];
714
766
  const v = new Array();
715
- let L = 0;
716
- for (let z = 0; z < s.length - 1; z++) {
717
- const C = s[z].items.length;
718
- v.push(L + C), L += C;
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;
719
771
  }
720
772
  return v;
721
- }, [s, n]), u = W(null), h = T(() => {
722
- if (!u.current)
773
+ }, [c, n]), w = $(null), N = M(() => {
774
+ if (!w.current)
723
775
  throw new Error("slider.current is null");
724
- return u.current;
725
- }, []), j = W(!1), N = W(
776
+ return w.current;
777
+ }, []), j = $(!1), h = $(
726
778
  null
727
- ), [E, w] = F(!1), k = T(
728
- (v, L) => {
729
- const z = h(), C = z.clientWidth, S = z.scrollWidth / l.length, H = (v + 1 / 2) * S - C / 2, R = z.scrollWidth - z.clientWidth;
730
- z.scrollTo({
731
- left: ae(H, 0, R),
732
- behavior: L
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: _
733
785
  });
734
786
  },
735
- [l.length, h]
787
+ [l.length, N]
736
788
  );
737
- A(() => {
738
- const v = u.current;
789
+ P(() => {
790
+ const v = w.current;
739
791
  if (!v)
740
792
  return;
741
- const L = (S) => {
742
- S.preventDefault(), j.current = !0, N.current = {
743
- x: S.pageX - v.offsetLeft,
793
+ const _ = (Z) => {
794
+ Z.preventDefault(), j.current = !0, h.current = {
795
+ x: Z.pageX - v.offsetLeft,
744
796
  scrollLeft: v.scrollLeft
745
797
  };
746
- }, z = (S) => {
798
+ }, I = (Z) => {
747
799
  if (!j.current)
748
800
  return;
749
- if (N.current === null)
801
+ if (h.current === null)
750
802
  throw new Error("[onMouseMove] scrollStart is null");
751
- const H = S.pageX - v.offsetLeft - N.current.x;
752
- if (!E && Math.abs(H) < 5)
803
+ const k = Z.pageX - v.offsetLeft - h.current.x;
804
+ if (!g && Math.abs(k) < 5)
753
805
  return;
754
- const R = N.current.scrollLeft - H;
755
- w(!0), requestAnimationFrame(() => {
756
- v.scrollLeft = R;
806
+ const a = h.current.scrollLeft - k;
807
+ C(!0), requestAnimationFrame(() => {
808
+ v.scrollLeft = a;
757
809
  });
758
- }, C = () => {
810
+ }, R = () => {
759
811
  j.current && (j.current = !1, requestAnimationFrame(() => {
760
- w(!1);
812
+ C(!1);
761
813
  }));
762
814
  };
763
- return v.addEventListener("mousedown", L), document.addEventListener("mousemove", z), document.addEventListener("mouseleave", C), document.addEventListener("mouseup", C), document.addEventListener("contextmenu", C), () => {
764
- v.removeEventListener("mousedown", L), document.removeEventListener("mousemove", z), document.removeEventListener("mouseleave", C), document.removeEventListener("mouseup", C), document.removeEventListener("contextmenu", C);
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);
765
817
  };
766
- }, [E]);
767
- const y = W(c);
768
- A(() => {
769
- u.current && (k(c, "smooth"), y.current = c);
770
- }, [c, k]), A(() => {
771
- u.current && k(y.current, "instant");
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");
772
824
  }, [
773
- k,
825
+ T,
774
826
  // - Run the effect when those values change
775
- o,
776
- a,
777
- g
827
+ u,
828
+ b,
829
+ d
778
830
  ]);
779
- const I = (v, L) => {
780
- E || (f(L), p());
831
+ const S = (v, _) => {
832
+ g || (o && _ === l.length - 1 && m === 0 ? f() : o && _ === 0 && m === l.length - 1 ? E() : p(_), x());
781
833
  };
782
834
  return /* @__PURE__ */ t.jsx(
783
835
  "div",
784
836
  {
785
- ref: u,
786
- className: Z(
837
+ ref: w,
838
+ className: O(
787
839
  "relative w-full overflow-x-auto no-scrollbar",
788
- E ? "cursor-grab" : "cursor-grabbing",
840
+ g ? "cursor-grab" : "cursor-grabbing",
789
841
  e
790
842
  ),
791
843
  children: /* @__PURE__ */ t.jsx(
792
844
  "div",
793
845
  {
794
- className: Z(
846
+ className: O(
795
847
  "flex h-10 w-fit gap-1 small:h-12 small:gap-2",
796
- a && "large:h-20 large:gap-4",
848
+ b && "large:h-20 large:gap-4",
797
849
  r
798
850
  ),
799
- children: l.map((v, L) => /* @__PURE__ */ t.jsxs(Ot, { children: [
800
- M.includes(L) && /* @__PURE__ */ t.jsx("div", { className: "my-2", children: /* @__PURE__ */ t.jsx(
851
+ children: l.map((v, _) => /* @__PURE__ */ t.jsxs(Ot, { children: [
852
+ z.includes(_) && /* @__PURE__ */ t.jsx("div", { className: "my-2", children: /* @__PURE__ */ t.jsx(
801
853
  Lt,
802
854
  {
803
- color: i && !o ? "neutral" : "background",
855
+ color: i && !u ? "neutral" : "background",
804
856
  orientation: "vertical"
805
857
  }
806
858
  ) }),
807
859
  /* @__PURE__ */ t.jsx(
808
860
  "div",
809
861
  {
810
- className: Z(
862
+ className: O(
811
863
  "relative h-full rounded-gallery ",
812
- !E && "cursor-pointer",
864
+ !g && "cursor-pointer",
813
865
  "after:absolute after:inset-0 after:rounded-gallery after:border-2 after:border-primary after:transition-opacity",
814
- L === c ? "after:opacity-100" : "after:opacity-0 hover:after:opacity-70"
866
+ _ === m ? "after:opacity-100" : "after:opacity-0 hover:after:opacity-70"
815
867
  ),
816
- style: d,
817
- onClick: () => I(v, L),
868
+ style: s,
869
+ onClick: () => S(v, _),
818
870
  children: /* @__PURE__ */ t.jsx(mr, { item: v })
819
871
  }
820
872
  )
821
- ] }, L))
873
+ ] }, _))
822
874
  }
823
875
  )
824
876
  }
825
877
  );
826
- }, 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: [
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: [
827
879
  /* @__PURE__ */ t.jsx("span", { children: e + 1 }),
828
880
  /* @__PURE__ */ t.jsx("span", { children: "/" }),
829
881
  /* @__PURE__ */ t.jsx("span", { children: r + 1 })
@@ -833,221 +885,221 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
833
885
  onlyPreload: e,
834
886
  ...r
835
887
  }) => {
836
- const { zoom: n, isZooming: o, setZoom: i } = q(), s = W(null), l = W(null), d = T((E) => {
837
- if (!l.current)
888
+ const { zoom: n, isZooming: o, setZoom: i } = q(), u = $(null), c = $(null), l = M((N) => {
889
+ if (!c.current)
838
890
  throw new Error(
839
- `[${E ?? "getTransformElementOrThrow"}] transformElementRef.current is null`
891
+ `[${N ?? "getTransformElementOrThrow"}] transformElementRef.current is null`
840
892
  );
841
- return l.current;
842
- }, []), a = W(!1), g = W(null), c = W(/* @__PURE__ */ new Map()), f = W({ x: 0, y: 0, scale: 1 }), p = W(null), M = T(
843
- (E) => {
844
- const w = d("setTransformStyle"), {
845
- x: k,
846
- y,
847
- scale: I
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"), {
897
+ x: h,
898
+ y: g,
899
+ scale: C
848
900
  } = {
849
- ...f.current,
850
- ...E
851
- }, v = ae(I, 1, Ne), L = w.clientWidth, z = w.clientHeight, C = L * v, S = z * v, H = ae(k, -(C - L), 0), R = ae(y, -(S - z), 0);
852
- f.current = { x: H, y: R, scale: v }, w.style.transform = `translate(${H}px, ${R}px) scale(${v})`;
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})`;
853
905
  },
854
- [d]
855
- ), u = T(
856
- (E, w) => {
906
+ [l]
907
+ ), p = M(
908
+ (N, j) => {
857
909
  const {
858
- x: k,
859
- y,
860
- scale: I
861
- } = f.current, {
862
- x: v,
863
- y: L,
864
- scale: z
910
+ x: h,
911
+ y: g,
912
+ scale: C
913
+ } = m.current, {
914
+ x: T,
915
+ y: V,
916
+ scale: S
865
917
  } = {
866
- ...f.current,
867
- ...E
918
+ ...m.current,
919
+ ...N
868
920
  };
869
- p.current && (cancelAnimationFrame(p.current), p.current = null);
870
- const C = () => {
871
- M({ x: v, y: L, scale: z }), i(z);
872
- }, S = Math.abs(v - k) < 1 && Math.abs(L - y) < 1 && Math.abs(z - I) < 5e-3;
873
- if (!w || S) {
874
- C();
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();
875
927
  return;
876
928
  }
877
- const H = (/* @__PURE__ */ new Date()).getTime(), R = () => {
878
- const U = () => {
879
- const _ = (/* @__PURE__ */ new Date()).getTime() - H;
880
- if (_ >= w) {
881
- C(), p.current = null;
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;
882
934
  return;
883
935
  }
884
- const x = Math.min(_ / w, 1), m = zt(x), b = Ee(k, v, m), V = Ee(y, L, m), P = Ee(I, z, m);
885
- M({ x: b, y: V, scale: P }), R();
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();
886
938
  };
887
- p.current = requestAnimationFrame(U);
939
+ f.current = requestAnimationFrame(Z);
888
940
  };
889
941
  R();
890
942
  },
891
- [M, i]
892
- ), h = T(
893
- (E, w) => {
894
- let { x: k, y } = f.current;
895
- E.x && (k += E.x), E.y && (y += E.y), u(
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(
896
948
  {
897
- x: k,
898
- y
949
+ x: h,
950
+ y: g
899
951
  },
900
- w
952
+ j
901
953
  );
902
954
  },
903
- [u]
904
- ), j = T(
905
- (E, w, k) => {
906
- const y = f.current.scale, I = ae(E, 1, Ne), v = I / y, { x: L, y: z } = f.current, { x: C, y: S } = w, H = -L + C, R = -z + S, U = H * v, _ = R * v, x = U - C, m = _ - S, b = -x, V = -m;
907
- u(
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(
908
960
  {
909
- x: b,
910
- y: V,
911
- scale: I
961
+ x: L,
962
+ y: H,
963
+ scale: C
912
964
  },
913
- k
965
+ h
914
966
  );
915
967
  },
916
- [u]
917
- ), N = T(
918
- (E) => {
919
- const w = d(
968
+ [p]
969
+ ), w = M(
970
+ (N) => {
971
+ const j = l(
920
972
  "shiftZoomFromButton"
921
- ), k = w.clientWidth, y = w.clientHeight;
922
- j(
923
- E,
973
+ ), h = j.clientWidth, g = j.clientHeight;
974
+ z(
975
+ N,
924
976
  {
925
- x: k / 2,
926
- y: y / 2
977
+ x: h / 2,
978
+ y: g / 2
927
979
  },
928
980
  200
929
981
  );
930
982
  },
931
- [d, j]
983
+ [l, z]
932
984
  );
933
- return A(() => {
934
- l.current && N(n);
935
- }, [N, n]), A(() => {
985
+ return P(() => {
986
+ c.current && w(n);
987
+ }, [w, n]), P(() => {
936
988
  if (!o)
937
989
  return;
938
- const E = l.current;
939
- if (!E)
990
+ const N = c.current;
991
+ if (!N)
940
992
  return;
941
- const w = (I) => {
942
- I.preventDefault(), I.stopPropagation(), a.current = !0, g.current = {
943
- x: I.clientX,
944
- y: I.clientY
993
+ const j = (C) => {
994
+ C.preventDefault(), C.stopPropagation(), s.current = !0, b.current = {
995
+ x: C.clientX,
996
+ y: C.clientY
945
997
  };
946
- }, k = (I) => {
947
- if (!a.current)
998
+ }, h = (C) => {
999
+ if (!s.current)
948
1000
  return;
949
- if (!g.current)
1001
+ if (!b.current)
950
1002
  throw new Error("mouseStartXY.current is null");
951
- I.stopPropagation();
952
- const v = I.clientX - g.current.x, L = I.clientY - g.current.y;
953
- h({
954
- x: v,
955
- y: L
956
- }), g.current = {
957
- x: I.clientX,
958
- y: I.clientY
1003
+ C.stopPropagation();
1004
+ const T = C.clientX - b.current.x, V = C.clientY - b.current.y;
1005
+ x({
1006
+ x: T,
1007
+ y: V
1008
+ }), b.current = {
1009
+ x: C.clientX,
1010
+ y: C.clientY
959
1011
  };
960
- }, y = () => {
961
- a.current = !1;
1012
+ }, g = () => {
1013
+ s.current = !1;
962
1014
  };
963
- return E.addEventListener("mousedown", w), document.addEventListener("mousemove", k), document.addEventListener("mouseleave", y), document.addEventListener("mouseup", y), document.addEventListener("contextmenu", y), () => {
964
- E.removeEventListener("mousedown", w), document.removeEventListener("mousemove", k), document.removeEventListener("mouseleave", y), document.removeEventListener("mouseup", y), document.removeEventListener("contextmenu", y);
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);
965
1017
  };
966
- }, [o, h]), A(() => {
967
- const E = s.current;
968
- if (!E)
1018
+ }, [o, x]), P(() => {
1019
+ const N = u.current;
1020
+ if (!N)
969
1021
  return;
970
- const w = (k) => {
971
- const { ctrlKey: y, clientX: I, clientY: v, deltaX: L, deltaY: z } = k;
972
- if (y) {
973
- if (!o && z >= 0)
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)
974
1026
  return;
975
- const { left: C, top: S } = E.getBoundingClientRect(), H = I - C, R = v - S;
976
- j(n - 0.01 * z, {
977
- x: H,
1027
+ const { left: v, top: _ } = N.getBoundingClientRect(), I = C - v, R = T - _;
1028
+ z(n - 0.01 * S, {
1029
+ x: I,
978
1030
  y: R
979
1031
  });
980
1032
  } else {
981
1033
  if (!o)
982
1034
  return;
983
- h({
984
- x: -2 * L,
985
- y: -2 * z
1035
+ x({
1036
+ x: -2 * V,
1037
+ y: -2 * S
986
1038
  });
987
1039
  }
988
- k.preventDefault();
1040
+ h.preventDefault();
989
1041
  };
990
- return E.addEventListener("wheel", w), () => {
991
- E.removeEventListener("wheel", w);
1042
+ return N.addEventListener("wheel", j), () => {
1043
+ N.removeEventListener("wheel", j);
992
1044
  };
993
- }, [o, h, j, n]), A(() => {
994
- const E = s.current, w = l.current;
995
- if (!E || !w)
1045
+ }, [o, x, z, n]), P(() => {
1046
+ const N = u.current, j = c.current;
1047
+ if (!N || !j)
996
1048
  return;
997
- const k = c.current, y = (L) => {
998
- for (let z = 0; z < L.changedTouches.length; z++) {
999
- const C = L.changedTouches[z];
1000
- k.set(C.identifier, C);
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);
1001
1053
  }
1002
- }, I = (L) => {
1003
- for (let z = 0; z < L.changedTouches.length; z++) {
1004
- const C = L.changedTouches[z];
1005
- k.delete(C.identifier);
1054
+ }, C = (V) => {
1055
+ for (let S = 0; S < V.changedTouches.length; S++) {
1056
+ const v = V.changedTouches[S];
1057
+ h.delete(v.identifier);
1006
1058
  }
1007
- }, v = (L) => {
1008
- const z = L.touches.length;
1009
- if (z === 1) {
1059
+ }, T = (V) => {
1060
+ const S = V.touches.length;
1061
+ if (S === 1) {
1010
1062
  if (!o)
1011
1063
  return;
1012
- L.preventDefault();
1013
- const C = L.touches[0], S = k.get(C.identifier);
1014
- if (!S)
1064
+ V.preventDefault();
1065
+ const v = V.touches[0], _ = h.get(v.identifier);
1066
+ if (!_)
1015
1067
  throw new Error("touchStart is null");
1016
- const H = C.clientX - S.clientX, R = C.clientY - S.clientY;
1017
- h({
1018
- x: H,
1068
+ const I = v.clientX - _.clientX, R = v.clientY - _.clientY;
1069
+ x({
1070
+ x: I,
1019
1071
  y: R
1020
- }), k.set(C.identifier, C);
1021
- } else if (z === 2) {
1022
- L.preventDefault();
1023
- const [C, S] = L.touches, H = k.get(C.identifier), R = k.get(S.identifier);
1024
- if (!H || !R)
1072
+ }), h.set(v.identifier, v);
1073
+ } else if (S === 2) {
1074
+ V.preventDefault();
1075
+ const [v, _] = V.touches, I = h.get(v.identifier), R = h.get(_.identifier);
1076
+ if (!I || !R)
1025
1077
  throw new Error("intialTouch1 or intialTouch2 is null");
1026
- const U = qe(
1027
- H,
1078
+ const Z = qe(
1079
+ I,
1028
1080
  R
1029
- ), _ = qe(C, S) / U, { left: x, top: m } = E.getBoundingClientRect();
1030
- j(_ * n, {
1031
- x: (C.clientX + S.clientX) / 2 - x,
1032
- y: (C.clientY + S.clientY) / 2 - m
1033
- }), k.set(C.identifier, C), k.set(S.identifier, S);
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, _);
1034
1086
  }
1035
1087
  };
1036
- return w.addEventListener("touchstart", y), w.addEventListener("touchmove", v), w.addEventListener("touchend", I), w.addEventListener("touchcancel", I), () => {
1037
- w.removeEventListener("touchstart", y), w.removeEventListener("touchmove", v), w.removeEventListener("touchend", I), w.removeEventListener("touchcancel", I);
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);
1038
1090
  };
1039
- }, [o, h, j, n]), /* @__PURE__ */ t.jsx(
1091
+ }, [o, x, z, n]), /* @__PURE__ */ t.jsx(
1040
1092
  "div",
1041
1093
  {
1042
- ref: s,
1094
+ ref: u,
1043
1095
  className: `relative size-full overflow-hidden ${o ? "z-zoomed-image cursor-move" : ""}`,
1044
1096
  children: /* @__PURE__ */ t.jsx(
1045
1097
  "div",
1046
1098
  {
1047
- ref: l,
1099
+ ref: c,
1048
1100
  className: "origin-top-left",
1049
1101
  children: /* @__PURE__ */ t.jsx(
1050
- we,
1102
+ be,
1051
1103
  {
1052
1104
  ...r,
1053
1105
  imgInPlayerWidthRatio: e ? 1 : n
@@ -1057,16 +1109,16 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
1057
1109
  )
1058
1110
  }
1059
1111
  );
1060
- }, gr = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, customizationKey: "UI_IMAGE", children: /* @__PURE__ */ t.jsx("svg", { className: e, viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ t.jsx(
1112
+ }, gr = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_IMAGE", children: /* @__PURE__ */ t.jsx("svg", { className: e, viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ t.jsx(
1061
1113
  "path",
1062
1114
  {
1063
1115
  d: "M9.5 2.5V9.5H2.5V2.5H9.5ZM9.5 1.5H2.5C1.95 1.5 1.5 1.95 1.5 2.5V9.5C1.5 10.05 1.95 10.5 2.5 10.5H9.5C10.05 10.5 10.5 10.05 10.5 9.5V2.5C10.5 1.95 10.05 1.5 9.5 1.5ZM7.07 5.93L5.57 7.865L4.5 6.57L3 8.5H9L7.07 5.93Z",
1064
1116
  fill: "currentColor"
1065
1117
  }
1066
- ) }) }), vr = ({ hotspot: e }) => {
1067
- const { title: r, icon: n, description: o, position: i, detail: s } = e, { getIconConfig: l } = $e(), d = n ? l(n) : void 0, { setShownDetails: a } = q(), g = !!s, c = (s == null ? void 0 : s.type) === "image", f = c ? /* @__PURE__ */ t.jsx(gr, { className: "size-4" }) : /* @__PURE__ */ t.jsx("div", { className: "size-1" }), p = () => {
1068
- c && a({
1069
- src: s.src,
1118
+ ) }) }), 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({
1121
+ src: u.src,
1070
1122
  title: r,
1071
1123
  text: o
1072
1124
  });
@@ -1074,7 +1126,10 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
1074
1126
  return /* @__PURE__ */ t.jsxs(
1075
1127
  "div",
1076
1128
  {
1077
- className: `group absolute z-hotspot -translate-x-1/2 -translate-y-1/2 ${g ? "cursor-pointer" : "cursor-help"} hover:z-hotspot-hover`,
1129
+ className: O(
1130
+ "group absolute z-hotspot -translate-x-1/2 -translate-y-1/2 hover:z-hotspot-hover",
1131
+ d ? "cursor-pointer" : "cursor-help"
1132
+ ),
1078
1133
  style: {
1079
1134
  top: `${100 * e.position.y}%`,
1080
1135
  left: `${100 * e.position.x}%`
@@ -1085,7 +1140,7 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
1085
1140
  "div",
1086
1141
  {
1087
1142
  className: "relative flex items-center justify-center rounded-full border-2 border-background bg-primary text-primary-foreground",
1088
- style: { backgroundColor: d == null ? void 0 : d.color },
1143
+ style: { backgroundColor: l == null ? void 0 : l.color },
1089
1144
  children: [
1090
1145
  /* @__PURE__ */ t.jsx(
1091
1146
  "div",
@@ -1093,21 +1148,22 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
1093
1148
  className: "pointer-events-none absolute -z-20 size-8 animate-hotspot-ping rounded-full border-2 border-background"
1094
1149
  }
1095
1150
  ),
1096
- d != null && d.Icon ? /* @__PURE__ */ t.jsx("div", { className: "size-5", children: d.Icon }) : /* @__PURE__ */ t.jsx("div", { className: "p-1", children: f })
1151
+ l != null && l.Icon ? /* @__PURE__ */ t.jsx("div", { className: "size-5", children: l.Icon }) : /* @__PURE__ */ t.jsx("div", { className: "p-1", children: E })
1097
1152
  ]
1098
1153
  }
1099
1154
  ),
1100
- !c && o && /* @__PURE__ */ t.jsx(
1155
+ !m && f && /* @__PURE__ */ t.jsx(
1101
1156
  "div",
1102
1157
  {
1103
- className: Z(
1104
- "absolute -z-10 w-max max-w-40 rounded-ui-lg bg-background p-2 pl-6 small:max-w-48 small:pl-8",
1105
- i.y < 0.55 ? "-top-0.5" : "-bottom-0.5",
1106
- i.x < 0.55 ? "-left-0.5" : "-right-0.5",
1158
+ className: O(
1159
+ "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",
1161
+ i.y < 0.55 ? "-top-1" : "-bottom-1",
1162
+ i.x < 0.55 ? "-left-1 pl-6 small:pl-8" : "-right-1 pr-4 small:pr-6",
1107
1163
  "pointer-events-none opacity-0 transition-opacity duration-300 group-hover:pointer-events-auto group-hover:opacity-100"
1108
1164
  ),
1109
1165
  children: /* @__PURE__ */ t.jsxs("div", { className: "space-y-1", children: [
1110
- /* @__PURE__ */ t.jsx("div", { className: "text-sm", children: r }),
1166
+ r && /* @__PURE__ */ t.jsx("div", { className: "text-sm", children: r }),
1111
1167
  o && /* @__PURE__ */ t.jsx("div", { className: "text-xs", children: o })
1112
1168
  ] })
1113
1169
  }
@@ -1115,7 +1171,7 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
1115
1171
  ]
1116
1172
  }
1117
1173
  );
1118
- }, wr = ({ hotspot: e }) => {
1174
+ }, vr = ({ hotspot: e }) => {
1119
1175
  const { icon: r, detail: n } = e;
1120
1176
  let o;
1121
1177
  switch (r) {
@@ -1140,7 +1196,7 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
1140
1196
  );
1141
1197
  break;
1142
1198
  default:
1143
- o = /* @__PURE__ */ t.jsx(vr, { hotspot: e });
1199
+ o = /* @__PURE__ */ t.jsx(xr, { hotspot: e });
1144
1200
  break;
1145
1201
  }
1146
1202
  switch (n == null ? void 0 : n.type) {
@@ -1150,160 +1206,185 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
1150
1206
  default:
1151
1207
  return o;
1152
1208
  }
1153
- }, Mt = ({ className: e, hotspots: r, ...n }) => {
1154
- const { isShowingDetails: o, showHotspots: i } = q();
1155
- return /* @__PURE__ */ t.jsx("div", { className: Z("relative size-full overflow-hidden", e), children: /* @__PURE__ */ t.jsxs(
1209
+ }, It = ({
1210
+ hotspots: e,
1211
+ itemIndex: r,
1212
+ className: n,
1213
+ onLoad: o,
1214
+ ...i
1215
+ }) => {
1216
+ 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(
1156
1218
  "div",
1157
1219
  {
1158
- className: `size-full duration-details ${o ? "scale-105" : "scale-100"}`,
1220
+ className: O(
1221
+ "size-full duration-details",
1222
+ u ? "scale-105" : "scale-100"
1223
+ ),
1159
1224
  children: [
1160
- /* @__PURE__ */ t.jsx(fr, { className: "size-full", ...n }),
1161
- i && (r == null ? void 0 : r.map((s, l) => /* @__PURE__ */ t.jsx(wr, { hotspot: s }, l)))
1225
+ /* @__PURE__ */ t.jsx(
1226
+ fr,
1227
+ {
1228
+ className: "size-full",
1229
+ onLoad: (s) => {
1230
+ r !== void 0 && l(r, "ready"), o == null || o(s);
1231
+ },
1232
+ ...i
1233
+ }
1234
+ ),
1235
+ c && (e == null ? void 0 : e.map((s, b) => /* @__PURE__ */ t.jsx(vr, { hotspot: s }, b)))
1162
1236
  ]
1163
1237
  }
1164
1238
  ) });
1165
- }, xr = ({ item: { src: e } }) => /* @__PURE__ */ t.jsx("img", { className: "size-full", src: e, alt: "" }, e), ge = 10, yr = 15, br = ({
1239
+ }, ve = 10, wr = 15, br = ({
1166
1240
  images: e,
1167
1241
  onlyPreload: r
1168
1242
  }) => {
1169
- const { reverse360: n } = te(), { isShowingDetails: o, isZooming: i } = q(), s = i || o, l = W(null), d = W(null), [a, g] = F(0), c = e.length, f = T(() => {
1170
- g((M) => (M - 1 + c) % c);
1171
- }, [c]), p = T(() => {
1172
- g((M) => (M + 1) % c);
1173
- }, [c]);
1174
- return A(() => {
1175
- if (s)
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);
1245
+ }, [d]), f = M(() => {
1246
+ b((E) => (E + 1) % d);
1247
+ }, [d]);
1248
+ return P(() => {
1249
+ if (u)
1176
1250
  return;
1177
- const M = l.current, u = d.current;
1178
- if (!M || !u)
1251
+ const E = c.current, p = l.current;
1252
+ if (!E || !p)
1179
1253
  return;
1180
- let h = null, j = [], N = null;
1181
- const E = (x) => {
1182
- j.push(x), j.length > 20 && j.shift();
1183
- }, w = () => {
1184
- const x = Date.now(), m = (() => {
1185
- const $ = Date.now(), D = j.filter(
1186
- (K) => $ - K.timestamp < 50
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(
1260
+ (B) => Y - B.timestamp < 50
1187
1261
  );
1188
- if (D.length < 2)
1262
+ if (W.length < 2)
1189
1263
  return 0;
1190
- const X = D[0], G = D[D.length - 1];
1191
- return (G.value - X.value) / (1e-3 * Math.max(G.timestamp - X.timestamp, 1));
1264
+ const G = W[0], X = W[W.length - 1];
1265
+ return (X.value - G.value) / (1e-3 * Math.max(X.timestamp - G.timestamp, 1));
1192
1266
  })();
1193
- let b = 0, V = x;
1194
- const P = () => {
1195
- N = requestAnimationFrame(() => {
1196
- const $ = Date.now(), D = ($ - x) / 1e3, X = Math.pow(0.05, D), G = m * X, K = ($ - V) / 1e3;
1197
- if (b += G * K, Math.abs(G) < 5 * ge && Math.abs(b) < ge) {
1198
- N = null;
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;
1199
1273
  return;
1200
1274
  }
1201
- Math.abs(b) >= ge && (b > 0 !== n ? p() : f(), b = 0), V = $, P();
1275
+ Math.abs(L) >= ve && (L > 0 !== n ? f() : m(), L = 0), H = Y, D();
1202
1276
  });
1203
1277
  };
1204
- P();
1205
- }, k = () => {
1206
- N && (cancelAnimationFrame(N), N = null);
1207
- }, y = (x) => {
1208
- if (x.button !== 0)
1278
+ D();
1279
+ }, h = () => {
1280
+ w && (cancelAnimationFrame(w), w = null);
1281
+ }, g = (a) => {
1282
+ if (a.button !== 0)
1209
1283
  return;
1210
- x.preventDefault(), x.stopPropagation(), k();
1211
- const m = x.clientX;
1212
- h = m, j = [{ timestamp: Date.now(), value: m }];
1213
- }, I = (x) => {
1214
- if (h === null)
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)
1215
1289
  return;
1216
- x.stopPropagation();
1217
- const { clientX: m } = x;
1218
- E({ timestamp: Date.now(), value: m });
1219
- const b = m - h;
1220
- Math.abs(b) < ge || (b > 0 !== n ? p() : f(), h = m);
1221
- }, v = () => {
1222
- h !== null && (h = null, w());
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());
1223
1297
  };
1224
- M.addEventListener("mousedown", y), document.addEventListener("mousemove", I), document.addEventListener("mouseleave", v), document.addEventListener("mouseup", v), document.addEventListener("contextmenu", v);
1225
- const L = () => u.getBoundingClientRect().width, z = () => u.scrollWidth / 2 - L() / 2, C = () => {
1226
- const x = z();
1227
- u.scrollLeft = x;
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;
1228
1302
  };
1229
- C();
1230
- const S = () => {
1231
- const x = u.scrollLeft - z();
1232
- Math.abs(x) < yr || (x < 0 !== n ? p() : f(), C());
1303
+ v();
1304
+ const _ = () => {
1305
+ const a = p.scrollLeft - S();
1306
+ Math.abs(a) < wr || (a < 0 !== n ? f() : m(), v());
1233
1307
  };
1234
- u.addEventListener("scroll", S);
1235
- let H = null;
1236
- const R = (x) => {
1237
- if (H !== null || x.changedTouches.length !== 1)
1308
+ p.addEventListener("scroll", _);
1309
+ let I = null;
1310
+ const R = (a) => {
1311
+ if (I !== null || a.changedTouches.length !== 1)
1238
1312
  return;
1239
- k();
1240
- const { identifier: m, clientX: b } = x.changedTouches[0];
1241
- H = m, h = b, j = [{ timestamp: Date.now(), value: b }];
1242
- }, U = (x) => {
1243
- if (!h)
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)
1244
1318
  return;
1245
- const m = Array.from(x.changedTouches).find(
1246
- ({ identifier: P }) => P === H
1319
+ const y = Array.from(a.changedTouches).find(
1320
+ ({ identifier: D }) => D === I
1247
1321
  );
1248
- if (!m)
1322
+ if (!y)
1249
1323
  return;
1250
- x.preventDefault();
1251
- const { clientX: b } = m;
1252
- E({ timestamp: Date.now(), value: b });
1253
- const V = b - h;
1254
- Math.abs(V) < ge || (V > 0 !== n ? p() : f(), h = b);
1255
- }, _ = (x) => {
1256
- !h || !Array.from(x.changedTouches).some(
1257
- ({ identifier: m }) => m === H
1258
- ) || (H = null, h = null, w());
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());
1259
1333
  };
1260
- return u.addEventListener("touchstart", R), u.addEventListener("touchmove", U), u.addEventListener("touchend", _), u.addEventListener("touchcancel", _), () => {
1261
- M.removeEventListener("mousedown", y), document.removeEventListener("mousemove", I), document.removeEventListener("mouseleave", v), document.removeEventListener("mouseup", v), document.removeEventListener("contextmenu", v), u.removeEventListener("scroll", S), u.removeEventListener("touchstart", R), u.removeEventListener("touchmove", U), u.removeEventListener("touchend", _), u.removeEventListener("touchcancel", _);
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);
1262
1336
  };
1263
- }, [p, f, s, n]), /* @__PURE__ */ t.jsx("div", { ref: l, className: "cursor-ew-resize", children: /* @__PURE__ */ t.jsxs("div", { ref: d, className: "overflow-x-scroll no-scrollbar", children: [
1264
- /* @__PURE__ */ t.jsx("div", { className: "sticky left-0 top-0", children: e.map((M, u) => /* @__PURE__ */ t.jsx(
1265
- Mt,
1337
+ }, [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,
1266
1340
  {
1267
- ...M,
1268
- className: Z(
1269
- u !== a && "pointer-events-none !absolute left-0 top-0 -z-10"
1341
+ ...E,
1342
+ className: O(
1343
+ p !== s && "pointer-events-none !absolute left-0 top-0 -z-10"
1270
1344
  ),
1271
- onlyPreload: u !== a || r
1345
+ onlyPreload: p !== s || r
1272
1346
  },
1273
- M.src
1347
+ E.src
1274
1348
  )) }),
1275
1349
  /* @__PURE__ */ t.jsx("div", { className: "pointer-events-none -mt-px h-px w-[calc(100%+1024px)]" })
1276
1350
  ] }) });
1277
- }, jr = ({ images: e, onReady: r, onError: n }) => {
1278
- const o = Q(() => e.map(({ src: g }) => g), [e]), [i, s] = F(null), l = i ? [...i.values()].filter((g) => g).length / e.length * 100 : null, d = T(() => {
1279
- l === null && s(new Map(o.map((g) => [g, !1])));
1280
- }, [o, l]), a = T((g) => {
1281
- s((c) => {
1282
- const f = new Map(c);
1283
- return f.set(g, !0), f;
1351
+ }, 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(() => {
1353
+ l === null && c(new Map(i.map((d) => [d, !1])));
1354
+ }, [i, l]), b = M((d) => {
1355
+ c((m) => {
1356
+ const f = new Map(m);
1357
+ return f.set(d, !0), f;
1284
1358
  });
1285
1359
  }, []);
1286
- return A(() => {
1287
- l === 100 && r();
1288
- }, [l, r]), /* @__PURE__ */ t.jsxs("div", { className: "relative size-full", children: [
1360
+ return P(() => {
1361
+ l === 100 && n();
1362
+ }, [l, n]), /* @__PURE__ */ t.jsxs("div", { className: "relative size-full", children: [
1289
1363
  l !== null && l !== 100 && // Add images to DOM to preload them
1290
- /* @__PURE__ */ t.jsx("div", { className: "hidden", children: o.map((g) => /* @__PURE__ */ t.jsx(
1291
- we,
1364
+ /* @__PURE__ */ t.jsx("div", { className: "hidden", children: i.map((d) => /* @__PURE__ */ t.jsx(
1365
+ be,
1292
1366
  {
1293
- src: g,
1294
- onLoad: () => a(g),
1295
- onError: n
1367
+ src: d,
1368
+ onLoad: () => b(d),
1369
+ onError: o
1296
1370
  },
1297
- g
1371
+ d
1298
1372
  )) }),
1299
- /* @__PURE__ */ t.jsx(we, { className: "size-full", src: o[0] }),
1373
+ /* @__PURE__ */ t.jsx(
1374
+ be,
1375
+ {
1376
+ className: "size-full",
1377
+ src: i[0],
1378
+ onLoad: r
1379
+ }
1380
+ ),
1300
1381
  /* @__PURE__ */ t.jsxs("div", { className: "absolute inset-0 flex flex-col items-center justify-center gap-y-4 bg-foreground/35", children: [
1301
- /* @__PURE__ */ t.jsx(Nt, { className: "size-20 text-primary" }),
1302
- /* @__PURE__ */ t.jsx(B, { color: "neutral", shape: "icon", onClick: d, children: /* @__PURE__ */ t.jsx(We, { className: "size-full" }) }),
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" }) }),
1303
1384
  /* @__PURE__ */ t.jsx(
1304
1385
  "div",
1305
1386
  {
1306
- className: Z(
1387
+ className: O(
1307
1388
  "relative h-1 w-3/5 overflow-hidden rounded-full bg-background",
1308
1389
  l === null && "invisible"
1309
1390
  ),
@@ -1318,23 +1399,20 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
1318
1399
  )
1319
1400
  ] })
1320
1401
  ] });
1321
- }, kr = (e) => {
1322
- const { index: r } = e, { setItemInteraction: n } = q(), [o, i] = F(
1323
- "placeholder"
1324
- );
1325
- return A(() => {
1326
- n(r, o === "ready" ? "running" : null);
1327
- }, [r, n, o]), A(() => () => {
1328
- n(r, null);
1329
- }, [r, n]), o === "error" ? /* @__PURE__ */ t.jsx(Ct, { title: "Failed to fetch 360" }) : o === "placeholder" ? /* @__PURE__ */ t.jsx(
1330
- jr,
1402
+ }, jr = (e) => {
1403
+ const { itemIndex: r } = e, { setItemInteraction: n } = q(), [o, i] = A();
1404
+ return P(() => {
1405
+ 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(
1407
+ yr,
1331
1408
  {
1332
1409
  ...e,
1333
- onReady: () => i("ready"),
1410
+ onPlaceholderImageLoaded: () => i("placeholder"),
1411
+ onSpinImagesLoaded: () => i("spin"),
1334
1412
  onError: () => i("error")
1335
1413
  }
1336
1414
  ) : /* @__PURE__ */ t.jsx(br, { ...e });
1337
- }, Cr = ({ className: e = "", ...r }) => /* @__PURE__ */ t.jsx(B, { color: "neutral", shape: "icon", className: e, ...r, children: /* @__PURE__ */ t.jsx(We, { className: "size-full" }) }), Er = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, customizationKey: "UI_PAUSE", children: /* @__PURE__ */ t.jsx(
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(
1338
1416
  "svg",
1339
1417
  {
1340
1418
  className: e,
@@ -1351,7 +1429,7 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
1351
1429
  }
1352
1430
  )
1353
1431
  }
1354
- ) }), Nr = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, customizationKey: "UI_VOLUME", children: /* @__PURE__ */ t.jsx(
1432
+ ) }), Cr = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_VOLUME", children: /* @__PURE__ */ t.jsx(
1355
1433
  "svg",
1356
1434
  {
1357
1435
  className: e,
@@ -1368,7 +1446,7 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
1368
1446
  }
1369
1447
  )
1370
1448
  }
1371
- ) }), Lr = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, customizationKey: "UI_VOLUME_OFF", children: /* @__PURE__ */ t.jsx(
1449
+ ) }), Er = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_VOLUME_OFF", children: /* @__PURE__ */ t.jsx(
1372
1450
  "svg",
1373
1451
  {
1374
1452
  className: e,
@@ -1385,131 +1463,135 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
1385
1463
  }
1386
1464
  )
1387
1465
  }
1388
- ) }), Ke = ({ progress: e }) => /* @__PURE__ */ t.jsx("div", { className: "h-1 w-full overflow-hidden rounded-ui-sm bg-background/25", children: /* @__PURE__ */ t.jsx(
1466
+ ) }), Je = ({ progress: e }) => /* @__PURE__ */ t.jsx("div", { className: "h-1 w-full overflow-hidden rounded-ui-sm bg-background/25", children: /* @__PURE__ */ t.jsx(
1389
1467
  "div",
1390
1468
  {
1391
1469
  className: "size-full rounded-ui-sm bg-background transition-transform",
1392
1470
  style: { transform: `translateX(-${100 * (1 - e)}%)` }
1393
1471
  }
1394
- ) }), _r = 3e3, zr = ({ src: e, poster: r, index: n }) => {
1395
- const { carrouselItemIndex: o, setItemInteraction: i } = q(), s = o === n, l = W(null), d = W(null), a = T(() => {
1396
- if (!d.current)
1472
+ ) }), Lr = 3e3, zr = ({ src: e, poster: r, itemIndex: n }) => {
1473
+ const { carrouselItemIndex: o, setItemInteraction: i } = q(), u = $(null), c = $(null), l = M(() => {
1474
+ if (!c.current)
1397
1475
  throw new Error("videoRef.current is null");
1398
- return d.current;
1399
- }, []), g = T(() => {
1400
- a().play();
1401
- }, [a]), c = T(() => {
1402
- a().pause();
1403
- }, [a]);
1404
- A(() => {
1405
- s || c();
1406
- }, [c, s]);
1407
- const [f, p] = F(!1), [M, u] = F(!0), h = () => {
1408
- p(!0), i(n, "running");
1409
- }, j = () => {
1410
- p(!1), i(n, null);
1411
- }, N = () => {
1412
- u(!1);
1413
- }, E = () => {
1414
- u(!0);
1415
- }, [w, k] = F(null), y = (m) => {
1416
- const b = a(), V = m.currentTarget.getBoundingClientRect(), P = (m.clientX - V.left) / V.width, $ = Math.min(1, Math.max(0, P));
1417
- b.volume = $, b.muted = !1;
1418
- }, I = (m) => {
1419
- const b = a();
1420
- b.muted = m;
1476
+ return c.current;
1477
+ }, []);
1478
+ P(() => {
1479
+ i(n, "ready");
1480
+ }, [n, i]);
1481
+ const s = M(() => {
1482
+ l().play();
1483
+ }, [l]), b = M(() => {
1484
+ l().pause();
1485
+ }, [l]);
1486
+ P(() => {
1487
+ o === n || b();
1488
+ }, [o, n, b]);
1489
+ const [d, m] = A(!1), [f, E] = A(!0), p = () => {
1490
+ m(!0), i(n, "running");
1491
+ }, x = () => {
1492
+ 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;
1421
1503
  };
1422
- A(() => {
1423
- const m = d.current;
1424
- if (!m)
1504
+ P(() => {
1505
+ const a = c.current;
1506
+ if (!a)
1425
1507
  return;
1426
- const b = () => {
1427
- k({
1428
- volume: m.volume,
1429
- isMuted: m.muted
1508
+ const y = () => {
1509
+ j({
1510
+ volume: a.volume,
1511
+ isMuted: a.muted
1430
1512
  });
1431
1513
  };
1432
- return b(), m.addEventListener("volumechange", b), () => {
1433
- m.removeEventListener("volumechange", b);
1514
+ return y(), a.addEventListener("volumechange", y), () => {
1515
+ a.removeEventListener("volumechange", y);
1434
1516
  };
1435
1517
  }, []);
1436
- const [v, L] = F(null), z = v ? v.currentTime / v.duration : 0;
1437
- A(() => {
1438
- const m = d.current;
1439
- if (!m) return;
1440
- const b = () => {
1441
- const V = m.currentTime, P = m.duration;
1442
- isNaN(V) || isNaN(P) || L({
1443
- currentTime: V,
1444
- duration: P
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,
1526
+ duration: H
1445
1527
  });
1446
1528
  };
1447
- return b(), m.addEventListener("timeupdate", b), () => {
1448
- m.removeEventListener("timeupdate", b);
1529
+ return y(), a.addEventListener("timeupdate", y), () => {
1530
+ a.removeEventListener("timeupdate", y);
1449
1531
  };
1450
1532
  }, []);
1451
- const C = (m) => {
1452
- const b = a(), V = m.currentTarget.getBoundingClientRect(), P = (m.clientX - V.left) / V.width, $ = b.duration * P;
1453
- b.currentTime = $;
1454
- }, S = (m) => {
1455
- const b = Math.floor(m % 3600 / 60), V = Math.floor(m % 60);
1456
- return `${b}:${V.toString().padStart(2, "0")}`;
1457
- }, [H, R] = F(!1), U = W(void 0), _ = T(
1458
- () => clearTimeout(U.current),
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),
1459
1541
  []
1460
- ), x = T(() => {
1461
- _(), U.current = setTimeout(() => {
1462
- R(!1);
1463
- }, _r);
1464
- }, [_]);
1465
- return A(() => {
1466
- const m = l.current, b = d.current;
1467
- if (!m || !b)
1542
+ ), k = M(() => {
1543
+ Z(), R.current = setTimeout(() => {
1544
+ I(!1);
1545
+ }, Lr);
1546
+ }, [Z]);
1547
+ return P(() => {
1548
+ const a = u.current, y = c.current;
1549
+ if (!a || !y)
1468
1550
  return;
1469
- const V = () => {
1470
- x(), R(!0);
1471
- }, P = () => {
1472
- _(), R(!1);
1551
+ const L = () => {
1552
+ k(), I(!0);
1553
+ }, H = () => {
1554
+ Z(), I(!1);
1473
1555
  };
1474
- let $ = !1;
1475
- const D = () => {
1476
- $ = !0;
1477
- }, X = () => {
1478
- $ && ($ = !1, c());
1556
+ let D = !1;
1557
+ const Y = () => {
1558
+ D = !0;
1559
+ }, W = () => {
1560
+ D && (D = !1, b());
1479
1561
  }, G = () => {
1480
- $ = !1, V();
1481
- }, K = (re) => {
1482
- re.preventDefault(), re.touches.length === 1 && (x(), R((ne) => !ne));
1562
+ D = !1, L();
1563
+ }, X = (B) => {
1564
+ B.preventDefault(), B.touches.length === 1 && (k(), I((ne) => !ne));
1483
1565
  };
1484
- return m.addEventListener("mousedown", D), m.addEventListener("mouseup", X), m.addEventListener("mouseenter", V), m.addEventListener("mousemove", G), m.addEventListener("mouseleave", P), b.addEventListener("touchstart", K), () => {
1485
- m.removeEventListener("mousedown", D), m.removeEventListener("mouseup", X), m.removeEventListener("mouseenter", V), m.removeEventListener("mousemove", V), m.removeEventListener("mouseleave", P), b.removeEventListener("touchstart", K);
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);
1486
1568
  };
1487
- }, [_, c, x]), /* @__PURE__ */ t.jsxs("div", { ref: l, className: "relative size-full", children: [
1569
+ }, [Z, b, k]), /* @__PURE__ */ t.jsxs("div", { ref: u, className: "relative size-full", children: [
1488
1570
  /* @__PURE__ */ t.jsx(
1489
1571
  "video",
1490
1572
  {
1491
- ref: d,
1573
+ ref: c,
1492
1574
  className: "size-full",
1493
1575
  src: e,
1494
1576
  poster: r,
1495
1577
  disablePictureInPicture: !0,
1496
1578
  playsInline: !0,
1497
- onPlay: h,
1498
- onPause: j,
1499
- onEnded: j,
1500
- onCanPlay: N,
1501
- onWaiting: E
1579
+ onPlay: p,
1580
+ onPause: x,
1581
+ onEnded: x,
1582
+ onCanPlay: z,
1583
+ onWaiting: w
1502
1584
  }
1503
1585
  ),
1504
- f ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1586
+ d ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1505
1587
  /* @__PURE__ */ t.jsxs(
1506
1588
  "div",
1507
1589
  {
1508
- className: Z(
1590
+ className: O(
1509
1591
  "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",
1510
- H ? "pointer-events-auto opacity-100" : "pointer-events-none opacity-0"
1592
+ _ ? "pointer-events-auto opacity-100" : "pointer-events-none opacity-0"
1511
1593
  ),
1512
- onMouseDownCapture: (m) => m.stopPropagation(),
1594
+ onMouseDownCapture: (a) => a.stopPropagation(),
1513
1595
  children: [
1514
1596
  /* @__PURE__ */ t.jsxs("div", { className: "flex items-center justify-between text-background", children: [
1515
1597
  /* @__PURE__ */ t.jsxs(
@@ -1518,25 +1600,25 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
1518
1600
  className: "flex items-center gap-x-4",
1519
1601
  children: [
1520
1602
  /* @__PURE__ */ t.jsx(
1521
- B,
1603
+ K,
1522
1604
  {
1523
1605
  shape: "icon",
1524
1606
  variant: "ghost",
1525
1607
  color: "neutral",
1526
- onClick: c,
1527
- children: /* @__PURE__ */ t.jsx(Er, { className: "size-full" })
1608
+ onClick: b,
1609
+ children: /* @__PURE__ */ t.jsx(Nr, { className: "size-full" })
1528
1610
  }
1529
1611
  ),
1530
- v && /* @__PURE__ */ t.jsxs("span", { className: "text-sm", children: [
1531
- S(v.currentTime),
1612
+ C && /* @__PURE__ */ t.jsxs("span", { className: "text-sm", children: [
1613
+ v(C.currentTime),
1532
1614
  " /",
1533
1615
  " ",
1534
- S(v.duration)
1616
+ v(C.duration)
1535
1617
  ] })
1536
1618
  ]
1537
1619
  }
1538
1620
  ),
1539
- w && /* @__PURE__ */ t.jsxs(
1621
+ N && /* @__PURE__ */ t.jsxs(
1540
1622
  "div",
1541
1623
  {
1542
1624
  className: "group/volume flex items-center gap-x-4 rounded-ui-md p-2 transition-colors hover:bg-foreground/25",
@@ -1544,17 +1626,17 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
1544
1626
  /* @__PURE__ */ t.jsx(
1545
1627
  "div",
1546
1628
  {
1547
- className: `w-12 cursor-pointer py-1 opacity-0 transition-opacity ${w.isMuted ? "group-hover/volume:opacity-50" : "group-hover/volume:opacity-100"}`,
1548
- onClick: y,
1549
- children: /* @__PURE__ */ t.jsx(Ke, { progress: w.volume })
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 })
1550
1632
  }
1551
1633
  ),
1552
1634
  /* @__PURE__ */ t.jsx(
1553
1635
  "div",
1554
1636
  {
1555
1637
  className: "size-5 cursor-pointer",
1556
- onClick: () => I(!w.isMuted),
1557
- children: w.isMuted ? /* @__PURE__ */ t.jsx(Lr, { className: "size-full" }) : /* @__PURE__ */ t.jsx(Nr, { className: "size-full" })
1638
+ onClick: () => g(!N.isMuted),
1639
+ children: N.isMuted ? /* @__PURE__ */ t.jsx(Er, { className: "size-full" }) : /* @__PURE__ */ t.jsx(Cr, { className: "size-full" })
1558
1640
  }
1559
1641
  )
1560
1642
  ]
@@ -1565,53 +1647,55 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
1565
1647
  "div",
1566
1648
  {
1567
1649
  className: "cursor-pointer py-1",
1568
- onClick: C,
1569
- children: /* @__PURE__ */ t.jsx(Ke, { progress: z })
1650
+ onClick: S,
1651
+ children: /* @__PURE__ */ t.jsx(Je, { progress: V })
1570
1652
  }
1571
1653
  )
1572
1654
  ]
1573
1655
  }
1574
1656
  ),
1575
- M && /* @__PURE__ */ t.jsx(
1657
+ f && /* @__PURE__ */ t.jsx(
1576
1658
  "div",
1577
1659
  {
1578
1660
  className: "pointer-events-none absolute inset-0 flex items-center justify-center bg-foreground/25",
1579
- children: /* @__PURE__ */ t.jsx(Et, { size: "lg" })
1661
+ children: /* @__PURE__ */ t.jsx(Ct, { size: "lg" })
1580
1662
  }
1581
1663
  )
1582
1664
  ] }) : /* @__PURE__ */ t.jsx(
1583
1665
  "div",
1584
1666
  {
1585
1667
  className: "absolute inset-0 flex items-center justify-center bg-foreground/25",
1586
- children: /* @__PURE__ */ t.jsx(Cr, { onClick: g })
1668
+ children: /* @__PURE__ */ t.jsx(kr, { onClick: s })
1587
1669
  }
1588
1670
  )
1589
1671
  ] });
1590
- }, Mr = ({ index: e, item: r, isShown: n, lazy: o }) => {
1672
+ }, _r = ({ index: e, item: r, isShown: n, lazy: o }) => {
1591
1673
  const { type: i } = r;
1592
- let s;
1674
+ let u;
1593
1675
  if (o)
1594
- s = null;
1676
+ u = null;
1595
1677
  else
1596
1678
  switch (i) {
1597
1679
  case "image":
1598
- s = /* @__PURE__ */ t.jsx(Mt, { onlyPreload: !n, ...r });
1680
+ u = /* @__PURE__ */ t.jsx(It, { itemIndex: e, onlyPreload: !n, ...r });
1599
1681
  break;
1600
1682
  case "video":
1601
- s = /* @__PURE__ */ t.jsx(zr, { index: e, ...r });
1683
+ u = /* @__PURE__ */ t.jsx(zr, { itemIndex: e, ...r });
1602
1684
  break;
1603
1685
  case "360":
1604
- s = /* @__PURE__ */ t.jsx(kr, { index: e, onlyPreload: !n, ...r });
1605
- break;
1606
- case "omni_directional":
1607
- s = /* @__PURE__ */ t.jsx(xr, { item: r });
1686
+ u = /* @__PURE__ */ t.jsx(
1687
+ jr,
1688
+ {
1689
+ itemIndex: e,
1690
+ onlyPreload: !n,
1691
+ ...r
1692
+ }
1693
+ );
1608
1694
  break;
1609
- default:
1610
- throw new Error(`Unsupported item type: ${i}`);
1611
1695
  }
1612
- return s;
1696
+ return u;
1613
1697
  }, Ir = (e) => {
1614
- A(() => {
1698
+ P(() => {
1615
1699
  const r = (n) => {
1616
1700
  n.key === "Escape" && e();
1617
1701
  };
@@ -1620,28 +1704,28 @@ const bt = Le(null), jt = () => _e(bt), $e = () => {
1620
1704
  };
1621
1705
  }, [e]);
1622
1706
  };
1623
- function Tr(e) {
1707
+ function Mr(e) {
1624
1708
  return e.target === e.currentTarget;
1625
1709
  }
1626
- const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, customizationKey: "UI_ARROW_RIGHT", children: /* @__PURE__ */ t.jsx("svg", { className: e, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ t.jsx(
1710
+ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_ARROW_RIGHT", children: /* @__PURE__ */ t.jsx("svg", { className: e, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ t.jsx(
1627
1711
  "path",
1628
1712
  {
1629
1713
  d: "M4.07666 13.4868L5.25666 14.6668L11.9233 8.00016L5.25666 1.3335L4.07666 2.5135L9.56333 8.00016L4.07666 13.4868Z",
1630
1714
  fill: "currentColor"
1631
1715
  }
1632
- ) }) }), Vr = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, customizationKey: "UI_EXTEND", children: /* @__PURE__ */ t.jsx("svg", { className: e, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ t.jsx(
1716
+ ) }) }), Tr = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_EXTEND", children: /* @__PURE__ */ t.jsx("svg", { className: e, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ t.jsx(
1633
1717
  "path",
1634
1718
  {
1635
1719
  d: "M4.66683 9.3335H3.3335V12.6668H6.66683V11.3335H4.66683V9.3335ZM3.3335 6.66683H4.66683V4.66683H6.66683V3.3335H3.3335V6.66683ZM11.3335 11.3335H9.3335V12.6668H12.6668V9.3335H11.3335V11.3335ZM9.3335 3.3335V4.66683H11.3335V6.66683H12.6668V3.3335H9.3335Z",
1636
1720
  fill: "currentColor"
1637
1721
  }
1638
- ) }) }), Sr = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, customizationKey: "UI_GALLERY", children: /* @__PURE__ */ t.jsx("svg", { className: e, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ t.jsx(
1722
+ ) }) }), Vr = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_GALLERY", children: /* @__PURE__ */ t.jsx("svg", { className: e, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ t.jsx(
1639
1723
  "path",
1640
1724
  {
1641
1725
  d: "M13.3334 2.66683V10.6668H5.33337V2.66683H13.3334ZM13.3334 1.3335H5.33337C4.60004 1.3335 4.00004 1.9335 4.00004 2.66683V10.6668C4.00004 11.4002 4.60004 12.0002 5.33337 12.0002H13.3334C14.0667 12.0002 14.6667 11.4002 14.6667 10.6668V2.66683C14.6667 1.9335 14.0667 1.3335 13.3334 1.3335ZM7.66671 7.78016L8.79337 9.28683L10.4467 7.22016L12.6667 10.0002H6.00004L7.66671 7.78016ZM1.33337 4.00016V13.3335C1.33337 14.0668 1.93337 14.6668 2.66671 14.6668H12V13.3335H2.66671V4.00016H1.33337Z",
1642
1726
  fill: "currentColor"
1643
1727
  }
1644
- ) }) }), Hr = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, customizationKey: "UI_HOTSPOTS", children: /* @__PURE__ */ t.jsxs(
1728
+ ) }) }), Sr = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_HOTSPOTS", children: /* @__PURE__ */ t.jsxs(
1645
1729
  "svg",
1646
1730
  {
1647
1731
  className: e,
@@ -1661,7 +1745,7 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
1661
1745
  /* @__PURE__ */ t.jsx("defs", { children: /* @__PURE__ */ t.jsx("clipPath", { id: "clip0_418_982", children: /* @__PURE__ */ t.jsx("rect", { width: "12", height: "12", fill: "white" }) }) })
1662
1746
  ]
1663
1747
  }
1664
- ) }), Rr = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, customizationKey: "UI_MINUS", children: /* @__PURE__ */ t.jsx(
1748
+ ) }), Rr = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_MINUS", children: /* @__PURE__ */ t.jsx(
1665
1749
  "svg",
1666
1750
  {
1667
1751
  className: e,
@@ -1678,7 +1762,7 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
1678
1762
  }
1679
1763
  )
1680
1764
  }
1681
- ) }), Or = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, customizationKey: "UI_PLUS", children: /* @__PURE__ */ t.jsx(
1765
+ ) }), Hr = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_PLUS", children: /* @__PURE__ */ t.jsx(
1682
1766
  "svg",
1683
1767
  {
1684
1768
  className: e,
@@ -1695,13 +1779,13 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
1695
1779
  }
1696
1780
  )
1697
1781
  }
1698
- ) }), Ar = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, customizationKey: "UI_REDUCE", children: /* @__PURE__ */ t.jsx("svg", { className: e, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ t.jsx(
1782
+ ) }), Or = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_REDUCE", children: /* @__PURE__ */ t.jsx("svg", { className: e, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ t.jsx(
1699
1783
  "path",
1700
1784
  {
1701
1785
  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",
1702
1786
  fill: "currentColor"
1703
1787
  }
1704
- ) }) }), Pr = ({
1788
+ ) }) }), Fr = ({
1705
1789
  enabled: e,
1706
1790
  onToggle: r,
1707
1791
  label: n,
@@ -1710,7 +1794,7 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
1710
1794
  }) => /* @__PURE__ */ t.jsxs(
1711
1795
  "label",
1712
1796
  {
1713
- className: Z(
1797
+ className: O(
1714
1798
  "flex cursor-pointer items-center justify-center gap-x-2",
1715
1799
  o
1716
1800
  ),
@@ -1728,14 +1812,14 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
1728
1812
  /* @__PURE__ */ t.jsx(
1729
1813
  "div",
1730
1814
  {
1731
- className: Z(
1815
+ className: O(
1732
1816
  "flex h-5 w-8 items-center justify-center rounded-full transition-colors",
1733
1817
  e ? "bg-primary" : "bg-background/60"
1734
1818
  ),
1735
1819
  children: /* @__PURE__ */ t.jsx(
1736
1820
  "div",
1737
1821
  {
1738
- className: Z(
1822
+ className: O(
1739
1823
  "flex size-4 items-center justify-center rounded-full p-0.5 transition",
1740
1824
  e ? "translate-x-1.5 bg-primary-foreground text-primary" : "-translate-x-1.5 bg-background text-foreground"
1741
1825
  ),
@@ -1746,7 +1830,7 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
1746
1830
  )
1747
1831
  ]
1748
1832
  }
1749
- ), Zr = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, customizationKey: "UI_BURGER", children: /* @__PURE__ */ t.jsx(
1833
+ ), Pr = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_BURGER", children: /* @__PURE__ */ t.jsx(
1750
1834
  "svg",
1751
1835
  {
1752
1836
  className: e,
@@ -1763,51 +1847,51 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
1763
1847
  }
1764
1848
  )
1765
1849
  }
1766
- ) }), Fr = ({ sharedClassName: e }) => {
1767
- const { categories: r } = ee(), { displayedCategoryId: n, changeCategory: o } = q(), [i, s] = F(!1), l = () => {
1768
- s(!i);
1769
- }, d = () => {
1770
- s(!1);
1850
+ ) }), Ar = ({ sharedClassName: e }) => {
1851
+ const { categories: r } = re(), { displayedCategoryId: n, changeCategory: o } = q(), [i, u] = A(!1), c = () => {
1852
+ u(!i);
1853
+ }, l = () => {
1854
+ u(!1);
1771
1855
  };
1772
1856
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1773
1857
  i && /* @__PURE__ */ t.jsx(
1774
1858
  "div",
1775
1859
  {
1776
- className: Z(e, "inset-0 small:hidden"),
1777
- onClick: d
1860
+ className: O(e, "inset-0 small:hidden"),
1861
+ onClick: l
1778
1862
  }
1779
1863
  ),
1780
1864
  /* @__PURE__ */ t.jsxs(
1781
1865
  "div",
1782
1866
  {
1783
- className: Z(
1867
+ className: O(
1784
1868
  e,
1785
1869
  ue("top-left"),
1786
1870
  "flex gap-x-2 small:hidden"
1787
1871
  ),
1788
1872
  children: [
1789
1873
  /* @__PURE__ */ t.jsx(
1790
- B,
1874
+ K,
1791
1875
  {
1792
1876
  shape: "icon",
1793
1877
  color: i ? "primary" : "neutral",
1794
- onClick: l,
1795
- children: /* @__PURE__ */ t.jsx(Zr, {})
1878
+ onClick: c,
1879
+ children: /* @__PURE__ */ t.jsx(Pr, {})
1796
1880
  }
1797
1881
  ),
1798
- 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: g }) => /* @__PURE__ */ t.jsx(
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(
1799
1883
  "li",
1800
1884
  {
1801
- className: Z(
1885
+ className: O(
1802
1886
  "cursor-pointer rounded-ui px-2 py-1 text-sm font-bold transition-colors hover:bg-primary/30",
1803
- a === n && "bg-primary/50"
1887
+ s === n && "bg-primary/50"
1804
1888
  ),
1805
1889
  onClick: () => {
1806
- o(a), s(!1);
1890
+ o(s), u(!1);
1807
1891
  },
1808
- children: g
1892
+ children: b
1809
1893
  },
1810
- a
1894
+ s
1811
1895
  )) }) })
1812
1896
  ]
1813
1897
  }
@@ -1815,109 +1899,109 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
1815
1899
  /* @__PURE__ */ t.jsx(
1816
1900
  "div",
1817
1901
  {
1818
- className: Z(
1902
+ className: O(
1819
1903
  e,
1820
- yt("top"),
1904
+ bt("top"),
1821
1905
  "w-full overflow-x-auto max-small:hidden"
1822
1906
  ),
1823
- 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: g }) => /* @__PURE__ */ t.jsx(
1824
- B,
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(
1908
+ K,
1825
1909
  {
1826
- variant: a === n ? "fill" : "ghost",
1827
- onClick: () => o(a),
1828
- children: g
1910
+ variant: s === n ? "fill" : "ghost",
1911
+ onClick: () => o(s),
1912
+ children: b
1829
1913
  },
1830
- a
1914
+ s
1831
1915
  )) })
1832
1916
  }
1833
1917
  )
1834
1918
  ] });
1835
- }, $r = () => {
1836
- const { flatten: e, infiniteCarrousel: r, permanentGallery: n } = te(), {
1919
+ }, Zr = () => {
1920
+ const { flatten: e, infiniteCarrousel: r, permanentGallery: n } = J(), {
1837
1921
  items: { length: o },
1838
1922
  aspectRatioStyle: i
1839
- } = ee(), {
1840
- slidable: s,
1841
- masterItemIndex: l,
1842
- prevImage: d,
1843
- nextImage: a,
1844
- showGalleryControls: g,
1845
- enableHotspotsControl: c,
1846
- showHotspots: f,
1847
- toggleHotspots: p,
1848
- showGallery: M,
1849
- toggleGallery: u,
1850
- extendMode: h,
1851
- toggleExtendMode: j,
1852
- shownDetails: N,
1853
- isShowingDetails: E,
1854
- resetShownDetails: w,
1855
- showZoomControls: k,
1856
- isZooming: y,
1857
- canZoomIn: I,
1858
- zoomIn: v,
1859
- canZoomOut: L,
1860
- zoomOut: z,
1861
- resetView: C
1862
- } = q(), S = T(
1863
- (U) => {
1864
- Tr(U) && w();
1923
+ } = re(), {
1924
+ slidable: u,
1925
+ masterItemIndex: c,
1926
+ prevItem: l,
1927
+ nextItem: s,
1928
+ showGalleryControls: b,
1929
+ enableHotspotsControl: d,
1930
+ showHotspots: m,
1931
+ 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();
1865
1949
  },
1866
- [w]
1950
+ [j]
1867
1951
  );
1868
- Ir(w);
1869
- const H = "absolute z-overlay", R = `transition-opacity ${g ? "opacity-100" : "opacity-0 !pointer-events-none"}`;
1952
+ Ir(j);
1953
+ const I = "absolute z-overlay", R = `transition-opacity ${b ? "opacity-100" : "opacity-0 !pointer-events-none"}`;
1870
1954
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1871
- !e && !y && /* @__PURE__ */ t.jsx(Fr, { sharedClassName: H }),
1872
- s && !y && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1955
+ !e && !g && /* @__PURE__ */ t.jsx(Ar, { sharedClassName: I }),
1956
+ u && !g && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1873
1957
  /* @__PURE__ */ t.jsx(
1874
- B,
1958
+ K,
1875
1959
  {
1876
1960
  shape: "icon",
1877
1961
  color: "neutral",
1878
- className: Z(H, ue("middle-left")),
1879
- onClick: d,
1880
- disabled: !r && l <= 0,
1881
- children: /* @__PURE__ */ t.jsx(Y, { customizationKey: "CONTROLS_ARROW_LEFT", children: /* @__PURE__ */ t.jsx(Je, { className: "size-full rotate-180" }) })
1962
+ className: O(I, ue("middle-left")),
1963
+ onClick: l,
1964
+ disabled: !r && c <= 0,
1965
+ children: /* @__PURE__ */ t.jsx(U, { customizationKey: "CONTROLS_ARROW_LEFT", children: /* @__PURE__ */ t.jsx(Qe, { className: "size-full rotate-180" }) })
1882
1966
  }
1883
1967
  ),
1884
1968
  /* @__PURE__ */ t.jsx(
1885
- B,
1969
+ K,
1886
1970
  {
1887
1971
  shape: "icon",
1888
1972
  color: "neutral",
1889
- className: Z(H, ue("middle-right")),
1890
- onClick: a,
1891
- disabled: !r && l >= o - 1,
1892
- children: /* @__PURE__ */ t.jsx(Y, { customizationKey: "CONTROLS_ARROW_RIGHT", children: /* @__PURE__ */ t.jsx(Je, { className: "size-full" }) })
1973
+ className: O(I, ue("middle-right")),
1974
+ onClick: s,
1975
+ disabled: !r && c >= o - 1,
1976
+ children: /* @__PURE__ */ t.jsx(U, { customizationKey: "CONTROLS_ARROW_RIGHT", children: /* @__PURE__ */ t.jsx(Qe, { className: "size-full" }) })
1893
1977
  }
1894
1978
  )
1895
1979
  ] }),
1896
1980
  /* @__PURE__ */ t.jsxs(
1897
1981
  "div",
1898
1982
  {
1899
- className: Z(
1900
- H,
1983
+ className: O(
1984
+ I,
1901
1985
  ue("bottom-fullW"),
1902
1986
  "pointer-events-none grid grid-cols-[auto,1fr,auto] items-end *:pointer-events-auto small:gap-x-2"
1903
1987
  ),
1904
1988
  children: [
1905
- !n && o > 1 && !y && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1989
+ !n && o > 1 && !g && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1906
1990
  /* @__PURE__ */ t.jsx(
1907
- B,
1991
+ K,
1908
1992
  {
1909
1993
  className: R,
1910
1994
  variant: "fill",
1911
- color: M ? "primary" : "neutral",
1995
+ color: E ? "primary" : "neutral",
1912
1996
  shape: "icon",
1913
- onClick: u,
1914
- children: /* @__PURE__ */ t.jsx(Y, { customizationKey: "CONTROLS_GALLERY", children: /* @__PURE__ */ t.jsx(Sr, { className: "size-full" }) })
1997
+ onClick: p,
1998
+ children: /* @__PURE__ */ t.jsx(U, { customizationKey: "CONTROLS_GALLERY", children: /* @__PURE__ */ t.jsx(Vr, { className: "size-full" }) })
1915
1999
  }
1916
2000
  ),
1917
- M && /* @__PURE__ */ t.jsx(
1918
- _t,
2001
+ E && /* @__PURE__ */ t.jsx(
2002
+ zt,
1919
2003
  {
1920
- className: Z(
2004
+ className: O(
1921
2005
  R,
1922
2006
  "[mask-image:linear-gradient(to_left,transparent_0px,black_4px,black_calc(100%-4px),transparent_100%)]"
1923
2007
  ),
@@ -1926,40 +2010,40 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
1926
2010
  )
1927
2011
  ] }),
1928
2012
  /* @__PURE__ */ t.jsxs("div", { className: "col-start-3 flex flex-col items-end gap-y-1 small:gap-y-2", children: [
1929
- c && !y && /* @__PURE__ */ t.jsx(Pr, { enabled: f, onToggle: p, children: /* @__PURE__ */ t.jsx(Hr, { className: "size-full" }) }),
1930
- k && /* @__PURE__ */ t.jsxs("div", { className: "max-small:hidden", 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: [
1931
2015
  /* @__PURE__ */ t.jsx(
1932
- B,
2016
+ K,
1933
2017
  {
1934
2018
  className: "rounded-b-none",
1935
2019
  color: "neutral",
1936
2020
  shape: "icon",
1937
- disabled: !I,
1938
- onClick: v,
1939
- children: /* @__PURE__ */ t.jsx(Or, { className: "size-full" })
2021
+ disabled: !C,
2022
+ onClick: T,
2023
+ children: /* @__PURE__ */ t.jsx(Hr, { className: "size-full" })
1940
2024
  }
1941
2025
  ),
1942
2026
  /* @__PURE__ */ t.jsx(Lt, { color: "background" }),
1943
2027
  /* @__PURE__ */ t.jsx(
1944
- B,
2028
+ K,
1945
2029
  {
1946
2030
  className: "rounded-t-none",
1947
2031
  color: "neutral",
1948
2032
  shape: "icon",
1949
- disabled: !L,
1950
- onClick: z,
2033
+ disabled: !V,
2034
+ onClick: S,
1951
2035
  children: /* @__PURE__ */ t.jsx(Rr, { className: "size-full" })
1952
2036
  }
1953
2037
  )
1954
2038
  ] }),
1955
2039
  /* @__PURE__ */ t.jsx(
1956
- B,
2040
+ K,
1957
2041
  {
1958
2042
  variant: "fill",
1959
- color: h ? "primary" : "neutral",
2043
+ color: x ? "primary" : "neutral",
1960
2044
  shape: "icon",
1961
- onClick: j,
1962
- children: h ? /* @__PURE__ */ t.jsx(Ar, { className: "size-full" }) : /* @__PURE__ */ t.jsx(Vr, { className: "size-full" })
2045
+ onClick: z,
2046
+ children: x ? /* @__PURE__ */ t.jsx(Or, { className: "size-full" }) : /* @__PURE__ */ t.jsx(Tr, { className: "size-full" })
1963
2047
  }
1964
2048
  )
1965
2049
  ] })
@@ -1969,231 +2053,280 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
1969
2053
  /* @__PURE__ */ t.jsx(
1970
2054
  "div",
1971
2055
  {
1972
- className: Z(
1973
- H,
2056
+ className: O(
2057
+ I,
1974
2058
  "inset-0 flex justify-end overflow-hidden bg-foreground/60 transition-opacity duration-details",
1975
- E ? "opacity-100" : "pointer-events-none opacity-0"
2059
+ N ? "opacity-100" : "pointer-events-none opacity-0"
1976
2060
  ),
1977
- onClick: S,
2061
+ onClick: _,
1978
2062
  children: /* @__PURE__ */ t.jsx(
1979
2063
  "div",
1980
2064
  {
1981
- className: Z(
2065
+ className: O(
1982
2066
  "h-full w-3/5 bg-background transition-transform duration-details",
1983
- E ? "translate-x-0" : "translate-x-full"
2067
+ N ? "translate-x-0" : "translate-x-full"
1984
2068
  ),
1985
- children: !!N && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2069
+ children: !!w && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1986
2070
  /* @__PURE__ */ t.jsx(
1987
- we,
2071
+ be,
1988
2072
  {
1989
2073
  className: "w-full bg-foreground/65",
1990
2074
  style: i,
1991
- src: N.src,
2075
+ src: w.src,
1992
2076
  imgInPlayerWidthRatio: 0.6
1993
2077
  }
1994
2078
  ),
1995
- /* @__PURE__ */ t.jsxs("div", { className: "space-y-1 p-3", children: [
1996
- /* @__PURE__ */ t.jsx("span", { children: N.title }),
1997
- /* @__PURE__ */ t.jsx("p", { children: N.text })
1998
- ] })
2079
+ /* @__PURE__ */ t.jsxs(
2080
+ "div",
2081
+ {
2082
+ className: O(
2083
+ "space-y-1 p-1.5 small:p-2",
2084
+ x && "large:p-3"
2085
+ ),
2086
+ children: [
2087
+ w.title && /* @__PURE__ */ t.jsx(
2088
+ "span",
2089
+ {
2090
+ className: O(
2091
+ "text-sm small:text-base",
2092
+ x && "large:text-lg"
2093
+ ),
2094
+ children: w.title
2095
+ }
2096
+ ),
2097
+ w.text && /* @__PURE__ */ t.jsx(
2098
+ "p",
2099
+ {
2100
+ className: O(
2101
+ "text-xs small:text-sm",
2102
+ x && "large:text-base"
2103
+ ),
2104
+ children: w.text
2105
+ }
2106
+ )
2107
+ ]
2108
+ }
2109
+ )
1999
2110
  ] })
2000
2111
  }
2001
2112
  )
2002
2113
  }
2003
2114
  ),
2004
- (y || E) && /* @__PURE__ */ t.jsx(
2115
+ (g || N) && /* @__PURE__ */ t.jsx(
2005
2116
  kt,
2006
2117
  {
2007
- className: Z(H, ue("top-right")),
2008
- onClick: C
2118
+ className: O(I, ue("top-right")),
2119
+ onClick: v
2009
2120
  }
2010
2121
  )
2011
2122
  ] });
2012
- }, Wr = ({ className: e = "" }) => {
2013
- const { infiniteCarrousel: r, isFullScreen: n } = te(), { items: o, aspectRatioStyle: i } = ee(), {
2014
- slidable: s,
2015
- carrouselItemIndex: l,
2016
- setCarrouselItemIndex: d,
2017
- itemIndexCommand: a,
2018
- setItemIndexCommand: g,
2019
- cycling: c,
2020
- isCycling: f,
2021
- finishCycling: p,
2022
- extendMode: M,
2023
- extendTransition: u,
2024
- isZooming: h
2025
- } = q(), j = W(null), N = T((_) => {
2026
- if (!j.current)
2027
- throw new Error(`[${_ ?? "sliderOrThrow"}] slider.current is null`);
2028
- return j.current;
2029
- }, []), E = W(!1), w = W(null), k = W(null), y = W(null), I = T(() => {
2030
- y.current && (cancelAnimationFrame(y.current), y.current = null);
2031
- }, []), v = T(() => {
2032
- const _ = N("computeClosestSnapIndex"), x = Array.from(_.children), m = _.scrollLeft, b = x.reduce(
2033
- (V, P, $) => {
2034
- const D = P.offsetLeft;
2035
- return Math.abs(D - m) < Math.abs(x[V].offsetLeft - m) ? $ : V;
2123
+ }, Dr = ({ className: e = "" }) => {
2124
+ const { infiniteCarrousel: r, isFullScreen: n } = J(), { items: o, aspectRatioStyle: i } = re(), {
2125
+ slidable: u,
2126
+ carrouselItemIndex: c,
2127
+ setCarrouselItemIndex: l,
2128
+ itemIndexCommand: s,
2129
+ setItemIndexCommand: b,
2130
+ specialCommand: d,
2131
+ isRunningSpecialCommand: m,
2132
+ 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;
2036
2147
  },
2037
2148
  0
2038
2149
  );
2039
- return c === "first_to_last" ? Ge(b, o.length) : c === "last_to_first" ? Ge(b - 1, o.length) : b;
2040
- }, [c, N, o.length]), L = T(
2041
- (_) => {
2042
- const x = N("setStyleCursor");
2043
- x.style.cursor = _;
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;
2044
2155
  },
2045
- [N]
2046
- ), z = T(
2047
- (_) => {
2048
- const x = N("setStyleSnapState");
2049
- _ === "mandatory" ? x.style.scrollSnapType = "x mandatory" : x.style.scrollSnapType = "none";
2156
+ [w]
2157
+ ), S = M(
2158
+ (k) => {
2159
+ const a = w("setStyleSnapState");
2160
+ k === "mandatory" ? a.style.scrollSnapType = "x mandatory" : a.style.scrollSnapType = "none";
2050
2161
  },
2051
- [N]
2052
- ), C = T(
2053
- (_, x, m) => {
2054
- I();
2055
- const b = N("scrollToIndex"), V = Array.from(b.children), P = b.scrollLeft, $ = V[_].offsetLeft, D = (ne) => {
2056
- b.scrollTo({
2057
- left: ne,
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,
2058
2169
  behavior: "instant"
2059
2170
  });
2060
- }, X = Math.abs(P - $);
2061
- if (X < 1 || x === "instant") {
2062
- D($), m == null || m();
2171
+ }, G = () => {
2172
+ W(Y), S("mandatory"), y == null || y();
2173
+ }, X = Math.abs(D - Y);
2174
+ if (X < 1 || a === "instant") {
2175
+ G();
2063
2176
  return;
2064
2177
  }
2065
- const G = ae(X / 2.5, 300, 1e3), K = (/* @__PURE__ */ new Date()).getTime();
2066
- z("none");
2067
- const re = () => {
2068
- const ne = () => {
2069
- const oe = (/* @__PURE__ */ new Date()).getTime() - K;
2070
- if (oe >= G) {
2071
- D($), m == null || m(), y.current = requestAnimationFrame(() => {
2072
- z("mandatory"), y.current = null;
2073
- });
2178
+ const B = se(X / 2.5, 300, 1e3), ne = (/* @__PURE__ */ new Date()).getTime();
2179
+ S("none");
2180
+ const je = () => {
2181
+ const me = () => {
2182
+ const ke = (/* @__PURE__ */ new Date()).getTime() - ne;
2183
+ if (ke >= B) {
2184
+ G();
2074
2185
  return;
2075
2186
  }
2076
- const me = Math.min(oe / G, 1), ze = zt(me), Me = Ee(P, $, ze);
2077
- D(Me), re();
2187
+ const ae = Math.min(ke / B, 1), pe = _t(ae), Te = ze(D, Y, pe);
2188
+ W(Te), je();
2078
2189
  };
2079
- y.current = requestAnimationFrame(ne);
2190
+ g.current = requestAnimationFrame(me);
2080
2191
  };
2081
- re();
2192
+ je();
2082
2193
  },
2083
- [I, N, z]
2084
- ), [S, H] = F(), R = !!S;
2085
- A(() => {
2086
- const _ = () => {
2087
- clearTimeout(S);
2088
- const x = setTimeout(() => {
2089
- H(void 0);
2194
+ [C, w, S]
2195
+ ), [_, I] = A(), R = !!_;
2196
+ P(() => {
2197
+ const k = () => {
2198
+ clearTimeout(_);
2199
+ const a = setTimeout(() => {
2200
+ I(void 0);
2090
2201
  }, ft);
2091
- H(x);
2202
+ I(a);
2092
2203
  };
2093
- return addEventListener("resize", _), document.addEventListener("fullscreenchange", _), () => {
2094
- removeEventListener("resize", _), document.removeEventListener("fullscreenchange", _);
2204
+ return addEventListener("resize", k), document.addEventListener("fullscreenchange", k), () => {
2205
+ removeEventListener("resize", k), document.removeEventListener("fullscreenchange", k);
2095
2206
  };
2096
- }, [S]), A(() => {
2097
- const _ = v();
2098
- Number.isNaN(_) || _ !== l && C(l, "instant");
2207
+ }, [_]), P(() => {
2208
+ const k = T();
2209
+ Number.isNaN(k) || k !== c && v(c, "instant");
2099
2210
  }, [
2100
- l,
2101
- C,
2211
+ c,
2102
2212
  v,
2213
+ T,
2103
2214
  // - Run the effect when those values change
2104
2215
  o,
2105
- S,
2216
+ _,
2106
2217
  n,
2107
- M,
2108
- u
2109
- ]), A(() => {
2110
- if (!s || f) {
2111
- L("auto");
2218
+ E,
2219
+ p
2220
+ ]), P(() => {
2221
+ if (!u || m) {
2222
+ V("auto");
2112
2223
  return;
2113
2224
  }
2114
- const _ = j.current;
2115
- if (!_)
2225
+ const k = z.current;
2226
+ if (!k)
2116
2227
  return;
2117
- L("grab"), z("mandatory");
2118
- const x = (V) => {
2119
- V.button === 0 && (V.preventDefault(), V.stopPropagation(), E.current = !0, w.current = V.pageX - _.offsetLeft, k.current = _.scrollLeft, I(), L("grabbing"), z("none"));
2120
- }, m = (V) => {
2121
- if (!E.current)
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)
2122
2233
  return;
2123
- if (w.current === null)
2234
+ if (j.current === null)
2124
2235
  throw new Error("[onMouseMove] startX is null");
2125
- const P = V.pageX - _.offsetLeft - w.current;
2236
+ const D = H.pageX - k.offsetLeft - j.current;
2126
2237
  requestAnimationFrame(() => {
2127
- if (k.current === null)
2238
+ if (h.current === null)
2128
2239
  throw new Error("[onMouseMove] scrollLeft is null");
2129
- _.scrollLeft = k.current - P;
2240
+ k.scrollLeft = h.current - D;
2130
2241
  });
2131
- }, b = () => {
2132
- if (!E.current)
2242
+ }, L = () => {
2243
+ if (!N.current)
2133
2244
  return;
2134
- E.current = !1, L("grab");
2135
- const V = v();
2136
- C(V, "smooth");
2245
+ N.current = !1, V("grab");
2246
+ const H = T();
2247
+ v(H, "smooth");
2137
2248
  };
2138
- return _.addEventListener("mousedown", x), document.addEventListener("mousemove", m), document.addEventListener("mouseleave", b), document.addEventListener("mouseup", b), document.addEventListener("contextmenu", b), () => {
2139
- _.removeEventListener("mousedown", x), document.removeEventListener("mousemove", m), document.removeEventListener("mouseleave", b), document.removeEventListener("mouseup", b), document.removeEventListener("contextmenu", b);
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);
2140
2251
  };
2141
2252
  }, [
2142
- I,
2143
- v,
2144
- f,
2145
2253
  C,
2146
- L,
2147
- z,
2148
- s
2149
- ]), A(() => {
2150
- if (u || R)
2254
+ T,
2255
+ m,
2256
+ v,
2257
+ V,
2258
+ S,
2259
+ u
2260
+ ]), P(() => {
2261
+ if (p || R)
2151
2262
  return;
2152
- const _ = j.current;
2153
- if (!_)
2263
+ const k = z.current;
2264
+ if (!k)
2154
2265
  return;
2155
- const x = () => {
2156
- const m = v();
2157
- Number.isNaN(m) || (d(m), m === a && g(null));
2266
+ const a = () => {
2267
+ const y = T();
2268
+ Number.isNaN(y) || (l(y), y === s && b(null));
2158
2269
  };
2159
- return _.addEventListener("scroll", x), () => {
2160
- _.removeEventListener("scroll", x);
2270
+ return k.addEventListener("scroll", a), () => {
2271
+ k.removeEventListener("scroll", a);
2161
2272
  };
2162
2273
  }, [
2163
- v,
2164
- u,
2165
- f,
2274
+ T,
2275
+ p,
2276
+ m,
2166
2277
  R,
2167
- a,
2278
+ s,
2168
2279
  o.length,
2280
+ l,
2281
+ b
2282
+ ]), P(() => {
2283
+ if (s === null)
2284
+ return;
2285
+ const k = () => f();
2286
+ switch (d) {
2287
+ case "first_to_last":
2288
+ v(o.length, "instant"), v(o.length - 1, "smooth", k);
2289
+ break;
2290
+ case "last_to_first":
2291
+ v(0, "instant"), v(1, "smooth", k);
2292
+ break;
2293
+ case "instant":
2294
+ v(s, "instant", k);
2295
+ break;
2296
+ default:
2297
+ v(s, "smooth");
2298
+ break;
2299
+ }
2300
+ }, [
2169
2301
  d,
2170
- g
2171
- ]), A(() => {
2172
- a !== null && (c === "first_to_last" ? (C(o.length, "instant"), C(o.length - 1, "smooth", () => p())) : c === "last_to_first" ? (C(0, "instant"), C(1, "smooth", () => p())) : C(a, "smooth"));
2173
- }, [c, p, a, o.length, C]);
2174
- const U = () => /* @__PURE__ */ t.jsx("div", { className: "h-full", style: i });
2302
+ f,
2303
+ s,
2304
+ o.length,
2305
+ v
2306
+ ]);
2307
+ const Z = () => /* @__PURE__ */ t.jsx("div", { className: "h-full", style: i });
2175
2308
  return /* @__PURE__ */ t.jsxs(
2176
2309
  "div",
2177
2310
  {
2178
- className: Z("relative overflow-hidden rounded-carrousel", e),
2311
+ className: O("relative overflow-hidden rounded-carrousel", e),
2179
2312
  style: i,
2180
2313
  children: [
2181
2314
  /* @__PURE__ */ t.jsxs(
2182
2315
  "div",
2183
2316
  {
2184
- ref: j,
2185
- className: `flex size-full ${s ? "overflow-x-auto no-scrollbar *:snap-start *:snap-always" : "justify-center"}`,
2317
+ ref: z,
2318
+ className: `flex size-full ${u ? "overflow-x-auto no-scrollbar *:snap-start *:snap-always" : "justify-center"}`,
2186
2319
  children: [
2187
- c === "last_to_first" && /* @__PURE__ */ t.jsx(U, {}),
2188
- o.map((_, x) => {
2189
- const m = _.type === "360" ? _.images[0] : _.src, b = x === l, V = x === 0, P = l === o.length - 1, $ = x === o.length - 1, D = l === 0, X = Math.abs(x - l) > 1 && // Not next to the current one
2190
- !(r && V && P) && // Not the last one when the first one is shown (only for infinite carrousel)
2191
- !(r && $ && D), G = (() => {
2192
- if (c === "first_to_last" && V)
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)
2324
+ !(r && Y && W), X = (() => {
2325
+ if (d === "first_to_last" && H)
2193
2326
  return {
2194
2327
  transform: `translateX(${100 * o.length}%)`
2195
2328
  };
2196
- if (c === "last_to_first" && $)
2329
+ if (d === "last_to_first" && Y)
2197
2330
  return {
2198
2331
  transform: `translateX(-${100 * o.length}%)`
2199
2332
  };
@@ -2202,205 +2335,194 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
2202
2335
  "div",
2203
2336
  {
2204
2337
  className: "relative h-full bg-foreground/50",
2205
- style: { ...i, ...G },
2338
+ style: { ...i, ...X },
2206
2339
  children: /* @__PURE__ */ t.jsx(
2207
- Mr,
2340
+ _r,
2208
2341
  {
2209
- index: x,
2210
- item: _,
2211
- isShown: b,
2212
- lazy: X
2342
+ index: a,
2343
+ item: k,
2344
+ isShown: L,
2345
+ lazy: G
2213
2346
  }
2214
2347
  )
2215
2348
  },
2216
- `${x}_${m}`
2349
+ `${a}_${y}`
2217
2350
  );
2218
2351
  }),
2219
- c === "first_to_last" && /* @__PURE__ */ t.jsx(U, {})
2352
+ d === "first_to_last" && /* @__PURE__ */ t.jsx(Z, {})
2220
2353
  ]
2221
2354
  }
2222
2355
  ),
2223
- s && !h && /* @__PURE__ */ t.jsx("div", { className: `absolute ${ue("top-right")}`, children: /* @__PURE__ */ t.jsx(
2356
+ u && !x && /* @__PURE__ */ t.jsx("div", { className: `absolute ${ue("top-right")}`, children: /* @__PURE__ */ t.jsx(
2224
2357
  hr,
2225
2358
  {
2226
- currentIndex: l,
2359
+ currentIndex: c,
2227
2360
  maxIndex: o.length - 1
2228
2361
  }
2229
2362
  ) }),
2230
- /* @__PURE__ */ t.jsx($r, {})
2363
+ /* @__PURE__ */ t.jsx(Zr, {})
2231
2364
  ]
2232
2365
  }
2233
2366
  );
2234
- }, Dr = () => {
2235
- const { permanentGallery: e } = te(), { aspectRatioStyle: r } = ee(), {
2236
- prevImage: n,
2237
- nextImage: o,
2367
+ }, $r = () => {
2368
+ const { permanentGallery: e } = J(), { aspectRatioStyle: r } = re(), {
2369
+ prevItem: n,
2370
+ nextItem: o,
2238
2371
  isShowingDetails: i,
2239
- resetShownDetails: s,
2240
- extendMode: l,
2241
- disableExtendMode: d,
2242
- isZooming: a,
2243
- resetZoom: g,
2244
- fakeFullScreen: c
2245
- } = q(), f = W(null), p = W(null), M = W(null);
2246
- return A(() => {
2247
- if (!l)
2372
+ resetShownDetails: u,
2373
+ extendMode: c,
2374
+ disableExtendMode: l,
2375
+ isZooming: s,
2376
+ resetZoom: b,
2377
+ fakeFullScreen: d
2378
+ } = q(), m = $(null), f = $(null), E = $(null);
2379
+ return P(() => {
2380
+ if (!c)
2248
2381
  return;
2249
- const u = f.current, h = p.current, j = M.current;
2250
- if (!u || !h || !j)
2382
+ const p = m.current, x = f.current, z = E.current;
2383
+ if (!p || !x || !z)
2251
2384
  return;
2252
- let N = !1;
2253
- const E = (y) => [u, h, j].includes(y.target), w = (y) => {
2254
- N = E(y);
2255
- }, k = (y) => {
2256
- N && (E(y) && d(), N = !1);
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);
2257
2390
  };
2258
- return u.addEventListener("mousedown", w), u.addEventListener("mouseup", k), () => {
2259
- u.removeEventListener("mousedown", w), u.removeEventListener("mouseup", k);
2391
+ return p.addEventListener("mousedown", j), p.addEventListener("mouseup", h), () => {
2392
+ p.removeEventListener("mousedown", j), p.removeEventListener("mouseup", h);
2260
2393
  };
2261
- }, [d, l]), A(() => {
2262
- const u = (h) => {
2263
- const j = h.key === "Escape", N = !a && !i;
2264
- if (j)
2265
- a ? g() : i ? s() : d();
2266
- else if (N)
2267
- switch (h.key) {
2268
- case "ArrowLeft":
2269
- n();
2270
- break;
2271
- case "ArrowRight":
2272
- o();
2273
- break;
2274
- }
2394
+ }, [l, c]), P(() => {
2395
+ const p = (x) => {
2396
+ x.key === "Escape" && (s ? b() : i ? u() : l());
2275
2397
  };
2276
- return addEventListener("keydown", u), () => {
2277
- removeEventListener("keydown", u);
2398
+ return addEventListener("keydown", p), () => {
2399
+ removeEventListener("keydown", p);
2278
2400
  };
2279
2401
  }, [
2280
- d,
2402
+ l,
2281
2403
  i,
2282
- a,
2404
+ s,
2283
2405
  o,
2284
2406
  n,
2285
- s,
2286
- g
2407
+ u,
2408
+ b
2287
2409
  ]), /* @__PURE__ */ t.jsxs(
2288
2410
  "div",
2289
2411
  {
2290
- ref: f,
2291
- className: Z(
2412
+ ref: m,
2413
+ className: O(
2292
2414
  "relative",
2293
- l && "flex size-full items-center justify-center bg-foreground/75",
2294
- c && "fixed inset-0 z-overlay"
2415
+ c && "flex size-full items-center justify-center bg-foreground/75",
2416
+ d && "fixed inset-0 z-overlay"
2295
2417
  ),
2296
2418
  children: [
2297
2419
  /* @__PURE__ */ t.jsxs(
2298
2420
  "div",
2299
2421
  {
2300
- ref: p,
2301
- className: l ? "flex size-full flex-col justify-center gap-y-2 small:gap-y-4" : "space-y-2",
2422
+ ref: f,
2423
+ className: c ? "flex size-full flex-col justify-center gap-y-2 small:gap-y-4" : "space-y-2",
2302
2424
  children: [
2303
2425
  /* @__PURE__ */ t.jsx(
2304
2426
  "div",
2305
2427
  {
2306
- ref: M,
2307
- className: Z(
2308
- l && "mx-auto flex min-h-0 w-full max-w-[1600px] justify-center"
2428
+ ref: E,
2429
+ className: O(
2430
+ c && "mx-auto flex min-h-0 w-full max-w-[1600px] justify-center"
2309
2431
  ),
2310
2432
  style: r,
2311
- children: /* @__PURE__ */ t.jsx(Wr, { className: Z(l && "h-full min-w-0") })
2433
+ children: /* @__PURE__ */ t.jsx(Dr, { className: O(c && "h-full min-w-0") })
2312
2434
  }
2313
2435
  ),
2314
- e && /* @__PURE__ */ t.jsx(_t, { className: Z(l && "my-2 shrink-0 small:my-4") })
2436
+ e && /* @__PURE__ */ t.jsx(zt, { className: O(c && "my-2 shrink-0 small:my-4") })
2315
2437
  ]
2316
2438
  }
2317
2439
  ),
2318
- l && /* @__PURE__ */ t.jsx(
2440
+ c && /* @__PURE__ */ t.jsx(
2319
2441
  kt,
2320
2442
  {
2321
2443
  className: "absolute right-2 top-2 small:right-4 small:top-4",
2322
- onClick: d
2444
+ onClick: l
2323
2445
  }
2324
2446
  )
2325
2447
  ]
2326
2448
  }
2327
2449
  );
2328
- }, Ur = ({
2450
+ }, Yr = ({
2329
2451
  compositionUrl: e
2330
2452
  }) => {
2331
- const { emitEvent: r } = te(), {
2453
+ const { emitEvent: r } = J(), {
2332
2454
  data: n,
2333
2455
  status: o,
2334
2456
  isSuccess: i,
2335
- error: s
2336
- } = Bt(e);
2337
- return A(() => {
2338
- s ? r(st, s) : i ? r(ot) : o === "fetching" && r(nt);
2339
- }, [r, s, i, o]), s ? /* @__PURE__ */ t.jsx(Ct, { title: "Failed to fetch composition", error: s }) : i ? /* @__PURE__ */ t.jsx(qt, { composition: n, children: /* @__PURE__ */ t.jsx(Jt, { children: /* @__PURE__ */ t.jsx(Dr, {}) }) }) : /* @__PURE__ */ t.jsxs("div", { className: "flex aspect-video size-full flex-col items-center justify-center gap-y-4", children: [
2457
+ error: u
2458
+ } = 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: [
2340
2462
  /* @__PURE__ */ t.jsx("div", { className: "text-xl", children: "Loading WebPlayer..." }),
2341
- /* @__PURE__ */ t.jsx(Et, { color: "primary" })
2463
+ /* @__PURE__ */ t.jsx(Ct, { color: "primary" })
2342
2464
  ] });
2343
- }, Yr = ({
2465
+ }, Wr = ({
2344
2466
  compositionUrl: e,
2345
- flatten: r = Zt,
2346
- infiniteCarrousel: n = Ft,
2347
- permanentGallery: o = $t,
2348
- imageLoadStrategy: i = Wt,
2349
- preventFullScreen: s = Dt,
2350
- eventPrefix: l = mt,
2351
- reverse360: d = Ut,
2352
- children: a,
2467
+ flatten: r = At,
2468
+ infiniteCarrousel: n = Zt,
2469
+ permanentGallery: o = Dt,
2470
+ imageLoadStrategy: i = $t,
2471
+ preventFullScreen: u = Yt,
2472
+ eventPrefix: c = mt,
2473
+ reverse360: l = Wt,
2474
+ children: s,
2353
2475
  // NOTE: use to customize the player, not to display the content
2354
- ...g
2476
+ ...b
2355
2477
  }) => {
2356
- const c = W(null), [f, p] = F(), [M, u] = F(0.5), [h, j] = F(!1), N = T(
2357
- (k, y) => {
2358
- const I = l + k, v = new CustomEvent(I, { detail: y });
2359
- document.dispatchEvent(v);
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);
2360
2482
  },
2361
- [l]
2483
+ [c]
2362
2484
  );
2363
- A(() => {
2364
- if (h) {
2365
- u(1);
2485
+ P(() => {
2486
+ if (x) {
2487
+ p(1);
2366
2488
  return;
2367
2489
  }
2368
- if (!c.current)
2490
+ if (!d.current)
2369
2491
  return;
2370
- const k = c.current, y = () => {
2371
- const I = window.innerWidth, v = getComputedStyle(k), L = k.getBoundingClientRect().width + parseFloat(v.marginLeft) + parseFloat(v.marginRight);
2372
- p(L), u(L / I);
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);
2373
2495
  };
2374
- return y(), addEventListener("resize", y), () => {
2375
- removeEventListener("resize", y);
2496
+ return g(), addEventListener("resize", g), () => {
2497
+ removeEventListener("resize", g);
2376
2498
  };
2377
- }, [h]), A(() => {
2378
- if (s)
2499
+ }, [x]), P(() => {
2500
+ if (u)
2379
2501
  return;
2380
- const k = c.current;
2381
- if (!k)
2502
+ const h = d.current;
2503
+ if (!h)
2382
2504
  throw new Error("Wrapper not found");
2383
- const y = () => {
2384
- const { fullscreenElement: I } = document;
2385
- j(
2386
- I === k || // NOTE: For custom element, the web browser is making the whole custom element full-screen and not only the wrapper
2387
- (I == null ? void 0 : I.localName) === Ze
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
2388
2510
  );
2389
2511
  };
2390
- return document.addEventListener("fullscreenchange", y), () => {
2391
- document.removeEventListener("fullscreenchange", y);
2512
+ return document.addEventListener("fullscreenchange", g), () => {
2513
+ document.removeEventListener("fullscreenchange", g);
2392
2514
  };
2393
- }, [s]);
2394
- const E = T(async () => {
2395
- const k = c.current;
2396
- if (!k)
2515
+ }, [u]);
2516
+ const N = M(async () => {
2517
+ const h = d.current;
2518
+ if (!h)
2397
2519
  throw new Error("Wrapper not found");
2398
2520
  try {
2399
- return await k.requestFullscreen(), !0;
2521
+ return await h.requestFullscreen(), !0;
2400
2522
  } catch {
2401
2523
  return !1;
2402
2524
  }
2403
- }, []), w = T(async () => {
2525
+ }, []), j = M(async () => {
2404
2526
  try {
2405
2527
  return await document.exitFullscreen(), !0;
2406
2528
  } catch {
@@ -2408,41 +2530,41 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
2408
2530
  }
2409
2531
  }, []);
2410
2532
  return /* @__PURE__ */ t.jsx(
2411
- Kt,
2533
+ qt,
2412
2534
  {
2413
- ...g,
2414
- reverse360: d,
2535
+ ...b,
2536
+ reverse360: l,
2415
2537
  imageLoadStrategy: i,
2416
2538
  flatten: r,
2417
2539
  infiniteCarrousel: n,
2418
- preventFullScreen: s,
2540
+ preventFullScreen: u,
2419
2541
  permanentGallery: o,
2420
- emitEvent: N,
2421
- playerInViewportWidthRatio: M,
2422
- isFullScreen: h,
2423
- requestFullscreen: E,
2424
- exitFullscreen: w,
2542
+ emitEvent: w,
2543
+ playerInViewportWidthRatio: E,
2544
+ isFullScreen: x,
2545
+ requestFullscreen: N,
2546
+ exitFullscreen: j,
2425
2547
  children: /* @__PURE__ */ t.jsxs(ar, { children: [
2426
2548
  /* @__PURE__ */ t.jsx(
2427
2549
  "div",
2428
2550
  {
2429
2551
  id: "cc-webplayer-wrapper",
2430
- ref: c,
2552
+ ref: d,
2431
2553
  className: "select-none text-foreground",
2432
2554
  style: {
2433
2555
  marginInline: "auto",
2434
- maxWidth: f && Math.floor(f)
2556
+ maxWidth: m && Math.floor(m)
2435
2557
  },
2436
- children: /* @__PURE__ */ t.jsx(Ur, { compositionUrl: e })
2558
+ children: /* @__PURE__ */ t.jsx(Yr, { compositionUrl: e })
2437
2559
  }
2438
2560
  ),
2439
- a
2561
+ s
2440
2562
  ] })
2441
2563
  }
2442
2564
  );
2443
- }, Xr = ({ name: e, color: r, children: n }) => {
2565
+ }, Ur = ({ name: e, color: r, children: n }) => {
2444
2566
  const { setIconConfig: o, resetIconConfig: i } = $e();
2445
- return A(() => {
2567
+ return P(() => {
2446
2568
  if (!(!n && !r))
2447
2569
  return o(e, {
2448
2570
  Icon: n,
@@ -2451,8 +2573,8 @@ const Je = ({ className: e }) => /* @__PURE__ */ t.jsx(Y, { className: e, custom
2451
2573
  i(e);
2452
2574
  };
2453
2575
  }, [n, r, e, i, o]), null;
2454
- }, Gr = (e) => jt() ? /* @__PURE__ */ t.jsx(Xr, { ...e }) : /* @__PURE__ */ t.jsx("slot", {});
2455
- var It = { exports: {} }, ve = {};
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 = {};
2456
2578
  /**
2457
2579
  * @license React
2458
2580
  * react-jsx-runtime.production.min.js
@@ -2462,24 +2584,22 @@ var It = { exports: {} }, ve = {};
2462
2584
  * This source code is licensed under the MIT license found in the
2463
2585
  * LICENSE file in the root directory of this source tree.
2464
2586
  */
2465
- var Qe;
2466
- function Br() {
2467
- if (Qe) return ve;
2468
- Qe = 1;
2469
- var e = xe, 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, s = { key: !0, ref: !0, __self: !0, __source: !0 };
2470
- function l(d, a, g) {
2471
- var c, f = {}, p = null, M = null;
2472
- g !== void 0 && (p = "" + g), a.key !== void 0 && (p = "" + a.key), a.ref !== void 0 && (M = a.ref);
2473
- for (c in a) o.call(a, c) && !s.hasOwnProperty(c) && (f[c] = a[c]);
2474
- if (d && d.defaultProps) for (c in a = d.defaultProps, a) f[c] === void 0 && (f[c] = a[c]);
2475
- return { $$typeof: r, type: d, key: p, ref: M, props: f, _owner: i.current };
2587
+ var et;
2588
+ function Gr() {
2589
+ if (et) return we;
2590
+ et = 1;
2591
+ 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 };
2476
2598
  }
2477
- return ve.Fragment = n, ve.jsx = l, ve.jsxs = l, ve;
2599
+ return we.Fragment = n, we.jsx = c, we.jsxs = c, we;
2478
2600
  }
2479
- It.exports = Br();
2480
- var be = It.exports, Tt, et = At;
2481
- Tt = et.createRoot, et.hydrateRoot;
2482
- var qr = Object.defineProperty, Kr = (e, r, n) => r in e ? qr(e, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[r] = n, je = (e, r, n) => (Kr(e, typeof r != "symbol" ? r + "" : r, n), n);
2601
+ 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);
2483
2603
  const Jr = {
2484
2604
  stringify: (e) => e,
2485
2605
  parse: (e) => e
@@ -2503,7 +2623,7 @@ const Jr = {
2503
2623
  }, rn = {
2504
2624
  stringify: (e) => JSON.stringify(e),
2505
2625
  parse: (e) => JSON.parse(e)
2506
- }, Ae = {
2626
+ }, Pe = {
2507
2627
  string: Jr,
2508
2628
  number: Qr,
2509
2629
  boolean: en,
@@ -2516,102 +2636,101 @@ function nn(e) {
2516
2636
  (r, n, o) => `${n}-${o.toLowerCase()}`
2517
2637
  );
2518
2638
  }
2519
- const ke = Symbol.for("r2wc.render"), Ce = Symbol.for("r2wc.connected"), se = Symbol.for("r2wc.context"), J = Symbol.for("r2wc.props");
2639
+ const Ee = Symbol.for("r2wc.render"), Le = Symbol.for("r2wc.connected"), oe = Symbol.for("r2wc.context"), ee = Symbol.for("r2wc.props");
2520
2640
  function on(e, r, n) {
2521
- var o, i, s;
2641
+ var o, i, u;
2522
2642
  r.props || (r.props = e.propTypes ? Object.keys(e.propTypes) : []);
2523
- const l = Array.isArray(r.props) ? r.props.slice() : Object.keys(r.props), d = {}, a = {}, g = {};
2524
- for (const f of l) {
2525
- d[f] = Array.isArray(r.props) ? "string" : r.props[f];
2526
- const p = nn(f);
2527
- a[f] = p, g[p] = f;
2643
+ const c = Array.isArray(r.props) ? r.props.slice() : Object.keys(r.props), l = {}, s = {}, b = {};
2644
+ for (const m of c) {
2645
+ l[m] = Array.isArray(r.props) ? "string" : r.props[m];
2646
+ const f = nn(m);
2647
+ s[m] = f, b[f] = m;
2528
2648
  }
2529
- class c extends HTMLElement {
2649
+ class d extends HTMLElement {
2530
2650
  constructor() {
2531
- super(), je(this, o, !0), je(this, i), je(this, s, {}), je(this, "container"), r.shadow ? this.container = this.attachShadow({
2651
+ super(), Ce(this, o, !0), Ce(this, i), Ce(this, u, {}), Ce(this, "container"), r.shadow ? this.container = this.attachShadow({
2532
2652
  mode: r.shadow
2533
- }) : this.container = this, this[J].container = this.container;
2534
- for (const p of l) {
2535
- const M = a[p], u = this.getAttribute(M), h = d[p], j = h ? Ae[h] : null;
2536
- j != null && j.parse && u && (this[J][p] = j.parse(u, M, this));
2653
+ }) : this.container = this, this[ee].container = this.container;
2654
+ 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));
2537
2657
  }
2538
2658
  }
2539
2659
  static get observedAttributes() {
2540
- return Object.keys(g);
2660
+ return Object.keys(b);
2541
2661
  }
2542
2662
  connectedCallback() {
2543
- this[Ce] = !0, this[ke]();
2663
+ this[Le] = !0, this[Ee]();
2544
2664
  }
2545
2665
  disconnectedCallback() {
2546
- this[Ce] = !1, this[se] && n.unmount(this[se]), delete this[se];
2666
+ this[Le] = !1, this[oe] && n.unmount(this[oe]), delete this[oe];
2547
2667
  }
2548
- attributeChangedCallback(p, M, u) {
2549
- const h = g[p], j = d[h], N = j ? Ae[j] : null;
2550
- h in d && N != null && N.parse && u && (this[J][h] = N.parse(u, p, this), this[ke]());
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]());
2551
2671
  }
2552
- [(o = Ce, i = se, s = J, ke)]() {
2553
- this[Ce] && (this[se] ? n.update(this[se], this[J]) : this[se] = n.mount(
2672
+ [(o = Le, i = oe, u = ee, Ee)]() {
2673
+ this[Le] && (this[oe] ? n.update(this[oe], this[ee]) : this[oe] = n.mount(
2554
2674
  this.container,
2555
2675
  e,
2556
- this[J]
2676
+ this[ee]
2557
2677
  ));
2558
2678
  }
2559
2679
  }
2560
- for (const f of l) {
2561
- const p = a[f], M = d[f];
2562
- Object.defineProperty(c.prototype, f, {
2680
+ for (const m of c) {
2681
+ const f = s[m], E = l[m];
2682
+ Object.defineProperty(d.prototype, m, {
2563
2683
  enumerable: !0,
2564
2684
  configurable: !0,
2565
2685
  get() {
2566
- return this[J][f];
2686
+ return this[ee][m];
2567
2687
  },
2568
- set(u) {
2569
- this[J][f] = u;
2570
- const h = M ? Ae[M] : null;
2571
- if (h != null && h.stringify) {
2572
- const j = h.stringify(u, p, this);
2573
- this.getAttribute(p) !== j && this.setAttribute(p, j);
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);
2574
2694
  } else
2575
- this[ke]();
2695
+ this[Ee]();
2576
2696
  }
2577
2697
  });
2578
2698
  }
2579
- return c;
2699
+ return d;
2580
2700
  }
2581
2701
  function sn(e, r, n) {
2582
- const o = Tt(e), i = xe.createElement(r, n);
2702
+ const o = Ft(e), i = ye.createElement(r, n);
2583
2703
  return o.render(i), {
2584
2704
  root: o,
2585
2705
  ReactComponent: r
2586
2706
  };
2587
2707
  }
2588
2708
  function an({ root: e, ReactComponent: r }, n) {
2589
- const o = xe.createElement(r, n);
2709
+ const o = ye.createElement(r, n);
2590
2710
  e.render(o);
2591
2711
  }
2592
2712
  function ln({ root: e }) {
2593
2713
  e.unmount();
2594
2714
  }
2595
- function Vt(e, r = {}) {
2715
+ function Tt(e, r = {}) {
2596
2716
  return on(e, r, { mount: sn, update: an, unmount: ln });
2597
2717
  }
2598
- const cn = '*,: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-0\\.5{bottom:-.125rem}.-left-0\\.5{left:-.125rem}.-right-0\\.5{right:-.125rem}.-top-0\\.5{top:-.125rem}.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}.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-lg{border-radius:calc(var(--radius-ui) + .25rem)}.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-3{padding:.75rem}.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}.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-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\\:px-2{padding-left:.5rem;padding-right:.5rem}.small\\:py-1{padding-top:.25rem;padding-bottom:.25rem}.small\\:pl-8{padding-left:2rem}.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\\:gap-4{gap:1rem}.large\\:p-2{padding:.5rem}}';
2599
- function dn(e) {
2718
+ function cn(e) {
2600
2719
  return e.replace(
2601
2720
  /([a-z0-9])([A-Z])/g,
2602
2721
  (r, n, o) => `${n}-${o.toLowerCase()}`
2603
2722
  );
2604
2723
  }
2605
- function un(e) {
2724
+ function dn(e) {
2606
2725
  const r = {};
2607
2726
  return Object.entries(e).forEach(([n, o]) => {
2608
- r[dn(n)] = o.toString();
2727
+ r[cn(n)] = o.toString();
2609
2728
  }), r;
2610
2729
  }
2611
- const mn = (e) => /* @__PURE__ */ be.jsxs(be.Fragment, { children: [
2612
- /* @__PURE__ */ be.jsx("style", { children: cn }),
2613
- /* @__PURE__ */ be.jsx(Yr, { ...e })
2614
- ] }), pn = Vt(mn, {
2730
+ const un = (e) => /* @__PURE__ */ Ne.jsxs(Ne.Fragment, { children: [
2731
+ /* @__PURE__ */ Ne.jsx("style", { children: Br }),
2732
+ /* @__PURE__ */ Ne.jsx(Wr, { ...e })
2733
+ ] }), mn = Tt(un, {
2615
2734
  shadow: "open",
2616
2735
  props: {
2617
2736
  compositionUrl: "string",
@@ -2625,75 +2744,75 @@ const mn = (e) => /* @__PURE__ */ be.jsxs(be.Fragment, { children: [
2625
2744
  eventPrefix: "string",
2626
2745
  reverse360: "boolean"
2627
2746
  }
2628
- }), hn = (e) => un(e), fn = Vt(Gr, {
2747
+ }), pn = (e) => dn(e), hn = Tt(Xr, {
2629
2748
  shadow: "closed",
2630
2749
  props: {
2631
2750
  name: "string",
2632
2751
  color: "string"
2633
2752
  }
2634
2753
  });
2635
- function gn() {
2636
- return !!customElements.get(Ze) && !!customElements.get(Fe);
2754
+ function fn() {
2755
+ return !!customElements.get(Ze) && !!customElements.get(De);
2637
2756
  }
2638
- function vn() {
2639
- customElements.define(Ze, pn), customElements.define(Fe, fn);
2757
+ function gn() {
2758
+ customElements.define(Ze, mn), customElements.define(De, hn);
2640
2759
  }
2641
- function St() {
2642
- gn() || vn();
2760
+ function Vt() {
2761
+ fn() || gn();
2643
2762
  }
2644
- St();
2645
- const yn = ({
2763
+ Vt();
2764
+ const wn = ({
2646
2765
  onCompositionLoading: e,
2647
2766
  onCompositionLoaded: r,
2648
2767
  onCompositionLoadError: n,
2649
2768
  onExtendModeOn: o,
2650
2769
  onExtendModeOff: i,
2651
- onHotspotsOn: s,
2652
- onHotspotsOff: l,
2653
- onGalleryOpen: d,
2654
- onGalleryClose: a,
2655
- ...g
2770
+ onHotspotsOn: u,
2771
+ onHotspotsOff: c,
2772
+ onGalleryOpen: l,
2773
+ onGalleryClose: s,
2774
+ ...b
2656
2775
  }) => {
2657
- const c = hn(g);
2658
- return A(() => {
2659
- const f = g.eventPrefix ?? mt, p = (u) => `${f}${u}`, M = /* @__PURE__ */ new Map([
2776
+ const d = pn(b);
2777
+ return P(() => {
2778
+ const m = b.eventPrefix ?? mt, f = (p) => `${m}${p}`, E = /* @__PURE__ */ new Map([
2660
2779
  [nt, e],
2661
2780
  [ot, r],
2662
2781
  [st, n],
2663
2782
  [at, o],
2664
2783
  [it, i],
2665
- [lt, s],
2666
- [ct, l],
2667
- [dt, d],
2668
- [ut, a]
2784
+ [lt, u],
2785
+ [ct, c],
2786
+ [dt, l],
2787
+ [ut, s]
2669
2788
  ]);
2670
- return M.forEach((u, h) => {
2671
- if (u) {
2672
- const j = p(h);
2673
- document.addEventListener(j, u);
2789
+ return E.forEach((p, x) => {
2790
+ if (p) {
2791
+ const z = f(x);
2792
+ document.addEventListener(z, p);
2674
2793
  }
2675
2794
  }), () => {
2676
- M.forEach((u, h) => {
2677
- if (u) {
2678
- const j = p(h);
2679
- document.removeEventListener(j, u);
2795
+ E.forEach((p, x) => {
2796
+ if (p) {
2797
+ const z = f(x);
2798
+ document.removeEventListener(z, p);
2680
2799
  }
2681
2800
  });
2682
2801
  };
2683
2802
  }, [
2684
- g.eventPrefix,
2803
+ b.eventPrefix,
2685
2804
  e,
2686
2805
  r,
2687
2806
  n,
2688
2807
  o,
2689
2808
  i,
2690
- s,
2809
+ u,
2810
+ c,
2691
2811
  l,
2692
- d,
2693
- a
2694
- ]), /* @__PURE__ */ rt.jsx("cc-webplayer", { ...c });
2812
+ s
2813
+ ]), /* @__PURE__ */ rt.jsx("cc-webplayer", { ...d });
2695
2814
  };
2696
- St();
2815
+ Vt();
2697
2816
  const bn = ({ name: e, color: r }) => /* @__PURE__ */ rt.jsx("cc-webplayer-icon", { name: e, color: r });
2698
2817
  export {
2699
2818
  mt as DEFAULT_EVENT_PREFIX,
@@ -2706,8 +2825,8 @@ export {
2706
2825
  dt as EVENT_GALLERY_OPEN,
2707
2826
  ct as EVENT_HOTSPOTS_OFF,
2708
2827
  lt as EVENT_HOTSPOTS_ON,
2709
- Fe as WEB_PLAYER_ICON_WC_TAG,
2828
+ De as WEB_PLAYER_ICON_WC_TAG,
2710
2829
  Ze as WEB_PLAYER_WC_TAG,
2711
- yn as WebPlayer,
2830
+ wn as WebPlayer,
2712
2831
  bn as WebPlayerIcon
2713
2832
  };