@car-cutter/react-webplayer 3.2.2 → 3.2.3

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.
@@ -54,9 +54,9 @@ const St = /* @__PURE__ */ new Map(), wn = (t) => {
54
54
  isSuccess: !1
55
55
  });
56
56
  return ve(() => {
57
- const d = (c) => i({ status: "success", data: c, isSuccess: !0 }), l = St.get(t);
58
- if (l && !(l instanceof Promise)) {
59
- d(l);
57
+ const d = (u) => i({ status: "success", data: u, isSuccess: !0 }), c = St.get(t);
58
+ if (c && !(c instanceof Promise)) {
59
+ d(c);
60
60
  return;
61
61
  }
62
62
  i({
@@ -64,19 +64,19 @@ const St = /* @__PURE__ */ new Map(), wn = (t) => {
64
64
  isSuccess: !1
65
65
  }), (async function() {
66
66
  try {
67
- let c;
68
- if (l)
69
- c = await l;
67
+ let u;
68
+ if (c)
69
+ u = await c;
70
70
  else {
71
71
  const v = vn(t);
72
- St.set(t, v), c = await v, St.set(t, c);
72
+ St.set(t, v), u = await v, St.set(t, u);
73
73
  }
74
- d(c);
75
- } catch (c) {
74
+ d(u);
75
+ } catch (u) {
76
76
  i({
77
77
  status: "error",
78
78
  isSuccess: !1,
79
- error: c
79
+ error: u
80
80
  });
81
81
  }
82
82
  })();
@@ -99,8 +99,8 @@ const St = /* @__PURE__ */ new Map(), wn = (t) => {
99
99
  const {
100
100
  aspectRatio: i,
101
101
  categories: d,
102
- imageHdWidth: l,
103
- imageSubWidths: c
102
+ imageHdWidth: c,
103
+ imageSubWidths: u
104
104
  } = t, { minMediaWidth: v, maxMediaWidth: e, categoriesFilter: E } = je(), k = Ue(() => {
105
105
  if (E === "*")
106
106
  return d;
@@ -114,13 +114,13 @@ const St = /* @__PURE__ */ new Map(), wn = (t) => {
114
114
  ), L = {
115
115
  aspectRatio: i.replace(":", " / ")
116
116
  }, p = Ue(() => {
117
- const n = c.concat(l), b = n.sort((_, w) => _ - w), P = b.filter(
117
+ const n = u.concat(c), b = n.sort((_, w) => _ - w), P = b.filter(
118
118
  (_) => _ >= v && _ <= e
119
119
  );
120
120
  if (P.length === 0) {
121
121
  const _ = (v + e) / 2, w = n.reduce(
122
122
  (C, x) => Math.abs(x - _) < Math.abs(C - _) ? x : C,
123
- l
123
+ c
124
124
  );
125
125
  return console.warn(
126
126
  `None of available media widths (${b.join("|")}) match the given constraints (${v > 0 ? `${v} ≤ ` : ""}width${e < 1 / 0 ? ` ≤ ${e}` : ""}).`,
@@ -128,7 +128,7 @@ const St = /* @__PURE__ */ new Map(), wn = (t) => {
128
128
  ), [w];
129
129
  }
130
130
  return P;
131
- }, [c, l, v, e]);
131
+ }, [u, c, v, e]);
132
132
  return /* @__PURE__ */ a(
133
133
  fr.Provider,
134
134
  {
@@ -149,19 +149,19 @@ const St = /* @__PURE__ */ new Map(), wn = (t) => {
149
149
  function tt(t, o, i) {
150
150
  return Math.min(Math.max(t, o), i);
151
151
  }
152
- const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
152
+ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, c, u = !1) => {
153
153
  const v = tt(t, o, i);
154
- if (v === (c ? i : o)) return d;
155
- if (v === (c ? o : i)) return 1;
156
- const e = (v - o) / (i - o), k = 1 + (c ? e : 1 - e) * (d - 1), L = 1 + Math.round((k - 1) / l) * l;
154
+ if (v === (u ? i : o)) return d;
155
+ if (v === (u ? o : i)) return 1;
156
+ const e = (v - o) / (i - o), k = 1 + (u ? e : 1 - e) * (d - 1), L = 1 + Math.round((k - 1) / c) * c;
157
157
  return tt(L, 1, d);
158
158
  }, Cn = (t, o) => {
159
159
  if (o.includes(t))
160
160
  return t;
161
161
  let i = o[0], d = Math.abs(t - i);
162
- for (let l = 1; l < o.length; l++) {
163
- const c = Math.abs(t - o[l]);
164
- c < d && (d = c, i = o[l]);
162
+ for (let c = 1; c < o.length; c++) {
163
+ const u = Math.abs(t - o[c]);
164
+ u < d && (d = u, i = o[c]);
165
165
  }
166
166
  return i;
167
167
  }, gr = Lt(null), Ot = () => Et(gr), gt = () => {
@@ -199,7 +199,7 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
199
199
  _.set(C, { Icon: h });
200
200
  }
201
201
  return _;
202
- }, []), [l, c] = Ie(
202
+ }, []), [c, u] = Ie(
203
203
  () => {
204
204
  const b = i();
205
205
  return b ? d(b) : /* @__PURE__ */ new Map();
@@ -210,7 +210,7 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
210
210
  if (!b)
211
211
  return;
212
212
  const P = new MutationObserver(() => {
213
- c(d(b));
213
+ u(d(b));
214
214
  });
215
215
  return P.observe(b, {
216
216
  childList: !0,
@@ -218,11 +218,11 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
218
218
  }), () => P.disconnect();
219
219
  }, [d, i]);
220
220
  const v = G(
221
- (b) => l.get(b),
222
- [l]
221
+ (b) => c.get(b),
222
+ [c]
223
223
  ), e = G(
224
224
  (b, P) => {
225
- c((_) => {
225
+ u((_) => {
226
226
  const { Icon: w, ...C } = P;
227
227
  return new Map(
228
228
  _.set(b, {
@@ -234,7 +234,7 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
234
234
  },
235
235
  []
236
236
  ), E = G((b) => {
237
- c((P) => (P.delete(b), new Map(P)));
237
+ u((P) => (P.delete(b), new Map(P)));
238
238
  }, []), k = G((b) => {
239
239
  const P = b.querySelectorAll(
240
240
  Qt
@@ -324,8 +324,8 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
324
324
  infiniteCarrousel: o,
325
325
  extendBehavior: i,
326
326
  integration: d,
327
- emitEvent: l,
328
- emitAnalyticsEvent: c,
327
+ emitEvent: c,
328
+ emitAnalyticsEvent: u,
329
329
  isFullScreen: v,
330
330
  requestFullscreen: e,
331
331
  exitFullscreen: E
@@ -396,7 +396,7 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
396
396
  const se = Math.ceil(z), A = p.length + (d && !o && z % 1 !== 0 ? 1 : 0), he = z > 1 ? Math.max(0, A - se) : p.length - 1;
397
397
  x(he);
398
398
  }
399
- c({
399
+ u({
400
400
  type: "interaction",
401
401
  current: {
402
402
  category_id: R,
@@ -415,7 +415,7 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
415
415
  C,
416
416
  _,
417
417
  o,
418
- c,
418
+ u,
419
419
  R,
420
420
  q,
421
421
  y.type,
@@ -426,7 +426,7 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
426
426
  if (X || C !== null)
427
427
  return;
428
428
  const O = _ + 1, se = Math.ceil(z), A = p.length + (d && !o && z % 1 !== 0 ? 1 : 0), he = z > 1 ? Math.max(0, A - se) : p.length - 1;
429
- O <= he ? x(O) : o && (I("last_to_first"), x(0)), c({
429
+ O <= he ? x(O) : o && (I("last_to_first"), x(0)), u({
430
430
  type: "interaction",
431
431
  current: {
432
432
  category_id: R,
@@ -448,17 +448,17 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
448
448
  p.length,
449
449
  d,
450
450
  o,
451
- c,
451
+ u,
452
452
  R,
453
453
  q,
454
454
  y.type
455
455
  ]);
456
456
  ve(() => {
457
- l(or, {
457
+ c(or, {
458
458
  index: h,
459
459
  item: y
460
460
  });
461
- }, [y, l, h]), ve(() => {
461
+ }, [y, c, h]), ve(() => {
462
462
  if (X || C !== null)
463
463
  return;
464
464
  const O = {
@@ -470,7 +470,7 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
470
470
  item_position: _,
471
471
  items_count: ce
472
472
  }
473
- }, se = setTimeout(() => c(O), 0);
473
+ }, se = setTimeout(() => u(O), 0);
474
474
  return () => clearTimeout(se);
475
475
  }, [
476
476
  R,
@@ -478,7 +478,7 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
478
478
  ce,
479
479
  y.type,
480
480
  _,
481
- c,
481
+ u,
482
482
  X,
483
483
  C
484
484
  ]);
@@ -518,7 +518,7 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
518
518
  te((A) => ({
519
519
  ...A,
520
520
  [h]: se
521
- })), l(se ? Pt : Nt), c({
521
+ })), c(se ? Pt : Nt), u({
522
522
  type: "interaction",
523
523
  current: {
524
524
  category_id: R,
@@ -534,7 +534,7 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
534
534
  });
535
535
  } else {
536
536
  const O = !B;
537
- ie(O), l(O ? Pt : Nt), c({
537
+ ie(O), c(O ? Pt : Nt), u({
538
538
  type: "interaction",
539
539
  current: {
540
540
  category_id: R,
@@ -554,8 +554,8 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
554
554
  v,
555
555
  F,
556
556
  h,
557
- l,
558
557
  c,
558
+ u,
559
559
  R,
560
560
  q,
561
561
  y.type,
@@ -570,7 +570,7 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
570
570
  }
571
571
  }, [y, T]), [le, j] = Ie(!1), Te = G(() => {
572
572
  const O = !le;
573
- j(O), l(O ? sr : lr), c({
573
+ j(O), c(O ? sr : lr), u({
574
574
  type: "interaction",
575
575
  current: {
576
576
  category_id: R,
@@ -586,13 +586,13 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
586
586
  });
587
587
  }, [
588
588
  le,
589
- l,
590
589
  c,
590
+ u,
591
591
  R,
592
592
  q,
593
593
  y.type,
594
594
  _
595
- ]), [Ye, Ve] = Ie(null), we = G(() => Ve(null), []), u = !!Ye, f = Ue(() => {
595
+ ]), [Ye, Ve] = Ie(null), we = G(() => Ve(null), []), l = !!Ye, f = Ue(() => {
596
596
  switch (y.type) {
597
597
  case "image":
598
598
  return !0;
@@ -604,10 +604,10 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
604
604
  default:
605
605
  return !1;
606
606
  }
607
- }, [y.type, T]), [ee, oe] = Ie(1), Q = G(
607
+ }, [y.type, T]), [Q, oe] = Ie(1), ee = G(
608
608
  (O) => {
609
- const se = typeof O == "function" ? O(ee) : O;
610
- ee !== se && (oe(se), c({
609
+ const se = typeof O == "function" ? O(Q) : O;
610
+ Q !== se && (oe(se), u({
611
611
  type: "interaction",
612
612
  current: {
613
613
  category_id: R,
@@ -623,23 +623,23 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
623
623
  }));
624
624
  },
625
625
  [
626
- ee,
627
- c,
626
+ Q,
627
+ u,
628
628
  R,
629
629
  q,
630
630
  y.type,
631
631
  _
632
632
  ]
633
- ), g = ee !== 1, ae = ee < st, re = ee > 1, xe = G(
633
+ ), g = Q !== 1, ae = Q < st, re = Q > 1, xe = G(
634
634
  (O) => {
635
- Q((se) => tt(se + O, 1, st));
635
+ ee((se) => tt(se + O, 1, st));
636
636
  },
637
- [Q]
638
- ), pe = G(() => Q(1), [Q]), Ge = G(() => xe(dt), [xe]), He = G(() => xe(-dt), [xe]), ge = G(() => {
637
+ [ee]
638
+ ), pe = G(() => ee(1), [ee]), Ge = G(() => xe(dt), [xe]), He = G(() => xe(-dt), [xe]), ge = G(() => {
639
639
  pe(), we();
640
640
  }, [pe, we]), [ye, Ce] = Ie(!1), [Pe, Ne] = Ie(), [Be, We] = Ie(!1), ke = G(
641
641
  async (O) => {
642
- ge(), Ce(O), l(O ? ar : ir), c({
642
+ ge(), Ce(O), c(O ? ar : ir), u({
643
643
  type: "interaction",
644
644
  current: {
645
645
  category_id: R,
@@ -656,8 +656,8 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
656
656
  },
657
657
  [
658
658
  ge,
659
- l,
660
659
  c,
660
+ u,
661
661
  R,
662
662
  q,
663
663
  y.type,
@@ -671,7 +671,7 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
671
671
  Ne(O);
672
672
  }, [Pe]), Xe = G(async () => {
673
673
  const O = await e();
674
- return O && c({
674
+ return O && u({
675
675
  type: "interaction",
676
676
  current: {
677
677
  category_id: R,
@@ -687,14 +687,14 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
687
687
  }), O;
688
688
  }, [
689
689
  e,
690
- c,
690
+ u,
691
691
  R,
692
692
  q,
693
693
  y.type,
694
694
  _
695
695
  ]), De = G(async () => {
696
696
  const O = await E();
697
- return O && c({
697
+ return O && u({
698
698
  type: "interaction",
699
699
  current: {
700
700
  category_id: R,
@@ -710,7 +710,7 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
710
710
  }), O;
711
711
  }, [
712
712
  E,
713
- c,
713
+ u,
714
714
  R,
715
715
  q,
716
716
  y.type,
@@ -775,13 +775,13 @@ const bt = (t, o, i) => t + (o - t) * i, jt = (t, o, i, d, l, c = !1) => {
775
775
  showGallery: le,
776
776
  toggleGallery: Te,
777
777
  shownDetails: Ye,
778
- isShowingDetails: u,
778
+ isShowingDetails: l,
779
779
  setShownDetails: Ve,
780
780
  resetShownDetails: we,
781
781
  showZoomControls: f,
782
- zoom: ee,
782
+ zoom: Q,
783
783
  isZooming: g,
784
- setZoom: Q,
784
+ setZoom: ee,
785
785
  resetZoom: pe,
786
786
  canZoomIn: ae,
787
787
  zoomIn: Ge,
@@ -875,8 +875,8 @@ const qe = ({
875
875
  className: o,
876
876
  children: i
877
877
  }) => {
878
- const { getIconConfig: d } = gt(), c = d(t)?.Icon;
879
- return c ? o ? /* @__PURE__ */ a("div", { className: o, children: c }) : c : i;
878
+ const { getIconConfig: d } = gt(), u = d(t)?.Icon;
879
+ return u ? o ? /* @__PURE__ */ a("div", { className: o, children: u }) : u : i;
880
880
  }, Pn = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customizationKey: "UI_CLOSE", children: /* @__PURE__ */ a("svg", { className: t, viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ a(
881
881
  "path",
882
882
  {
@@ -903,8 +903,8 @@ const qe = ({
903
903
  shape: o = "button",
904
904
  color: i = "primary",
905
905
  className: d,
906
- children: l,
907
- ...c
906
+ children: c,
907
+ ...u
908
908
  }) => {
909
909
  const v = Nn[t][i], e = Rn[o];
910
910
  return /* @__PURE__ */ a(
@@ -916,8 +916,8 @@ const qe = ({
916
916
  e,
917
917
  d
918
918
  ),
919
- ...c,
920
- children: l
919
+ ...u,
920
+ children: c
921
921
  }
922
922
  );
923
923
  }, Rt = (t) => /* @__PURE__ */ a(Qe, { color: "neutral", shape: "icon", ...t, children: /* @__PURE__ */ a(Pn, { className: "size-full" }) }), zn = "data:image/svg+xml,%3csvg%20width='84'%20height='44'%20viewBox='0%200%2084%2044'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20shape-rendering='geometricPrecision'%3e%3crect%20width='84'%20height='44'%20rx='22'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M27.7657%2015.2278C28.0781%2015.5315%2028.0781%2016.024%2027.7657%2016.3277L21.9314%2022L27.7657%2027.6723C28.0781%2027.976%2028.0781%2028.4685%2027.7657%2028.7722C27.4533%2029.0759%2026.9467%2029.0759%2026.6343%2028.7722L20.2343%2022.55C19.9219%2022.2462%2019.9219%2021.7538%2020.2343%2021.45L26.6343%2015.2278C26.9467%2014.9241%2027.4533%2014.9241%2027.7657%2015.2278Z'%20fill='%230F0F0F'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M56.2343%2015.2278C56.5467%2014.9241%2057.0533%2014.9241%2057.3657%2015.2278L63.7657%2021.45C64.0781%2021.7538%2064.0781%2022.2462%2063.7657%2022.55L57.3657%2028.7722C57.0533%2029.0759%2056.5467%2029.0759%2056.2343%2028.7722C55.9219%2028.4685%2055.9219%2027.976%2056.2343%2027.6723L62.0686%2022L56.2343%2016.3277C55.9219%2016.024%2055.9219%2015.5315%2056.2343%2015.2278Z'%20fill='%230F0F0F'/%3e%3c/svg%3e", An = "data:image/svg+xml,%3csvg%20width='84'%20height='44'%20viewBox='0%200%2084%2044'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20shape-rendering='geometricPrecision'%3e%3crect%20width='84'%20height='44'%20rx='22'%20fill='white'/%3e%3cpath%20d='M0%2022C0%209.84974%209.84974%200%2022%200H42V44H22C9.84974%2044%200%2034.1503%200%2022Z'%20fill='%23F5F5F5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M27.7657%2015.2278C28.0781%2015.5315%2028.0781%2016.024%2027.7657%2016.3277L21.9314%2022L27.7657%2027.6723C28.0781%2027.976%2028.0781%2028.4685%2027.7657%2028.7722C27.4533%2029.0759%2026.9467%2029.0759%2026.6343%2028.7722L20.2343%2022.55C19.9219%2022.2462%2019.9219%2021.7538%2020.2343%2021.45L26.6343%2015.2278C26.9467%2014.9241%2027.4533%2014.9241%2027.7657%2015.2278Z'%20fill='%230F0F0F'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M56.2343%2015.2278C56.5467%2014.9241%2057.0533%2014.9241%2057.3657%2015.2278L63.7657%2021.45C64.0781%2021.7538%2064.0781%2022.2462%2063.7657%2022.55L57.3657%2028.7722C57.0533%2029.0759%2056.5467%2029.0759%2056.2343%2028.7722C55.9219%2028.4685%2055.9219%2027.976%2056.2343%2027.6723L62.0686%2022L56.2343%2016.3277C55.9219%2016.024%2055.9219%2015.5315%2056.2343%2015.2278Z'%20fill='%230F0F0F'/%3e%3c/svg%3e", Dn = "data:image/svg+xml,%3csvg%20width='78'%20height='78'%20viewBox='0%200%2078%2078'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.36035%2038.4241C1.36035%2017.9895%2017.9258%201.42407%2038.3604%201.42407C58.7949%201.42407%2075.3604%2017.9895%2075.3604%2038.4241C75.3604%2058.8586%2058.7949%2075.4241%2038.3604%2075.4241C17.9258%2075.4241%201.36035%2058.8586%201.36035%2038.4241Z'%20fill='black'%20fill-opacity='0.5'/%3e%3cpath%20d='M63.6101%2047.2044L66.7877%2048.587L66.5803%2049.0636L63.8703%2047.8845L63.181%2049.4687L62.7134%2049.2653L63.6101%2047.2044ZM61.5503%2054.7756C61.7117%2054.8903%2061.8699%2054.9725%2062.025%2055.022C62.1809%2055.0762%2062.3281%2055.0999%2062.4666%2055.093C62.6077%2055.0881%2062.7369%2055.0545%2062.8542%2054.9921C62.9696%2054.9324%2063.0674%2054.8461%2063.1478%2054.7331C63.2281%2054.6201%2063.2775%2054.4994%2063.2961%2054.3708C63.3154%2054.2469%2063.3045%2054.1197%2063.2636%2053.9893C63.2227%2053.859%2063.151%2053.7291%2063.0487%2053.5996C62.9491%2053.4721%2062.8186%2053.3509%2062.6572%2053.2361C62.4958%2053.1214%2062.3372%2053.0369%2062.1813%2052.9828C62.0262%2052.9332%2061.8791%2052.9095%2061.7398%2052.9117C61.6013%2052.9185%2061.4744%2052.9518%2061.359%2053.0115C61.2418%2053.0739%2061.143%2053.1616%2061.0626%2053.2745C60.9823%2053.3875%2060.9325%2053.506%2060.9132%2053.6299C60.8946%2053.7585%2060.9058%2053.888%2060.9468%2054.0183C60.9858%2054.1514%2061.0551%2054.2817%2061.1548%2054.4092C61.2571%2054.5387%2061.3889%2054.6608%2061.5503%2054.7756ZM61.2514%2055.213C61.0308%2055.0561%2060.8515%2054.884%2060.7134%2054.6967C60.5779%2054.5113%2060.4839%2054.3189%2060.4313%2054.1195C60.3795%2053.9247%2060.3713%2053.7285%2060.4065%2053.5308C60.4418%2053.3332%2060.5235%2053.1443%2060.6517%2052.9641C60.7779%2052.7866%2060.9272%2052.6477%2061.0997%2052.5476C61.2748%2052.4494%2061.4629%2052.3928%2061.6639%2052.3778C61.8649%2052.3629%2062.0752%2052.3889%2062.2948%2052.456C62.5151%2052.5276%2062.7356%2052.6419%2062.9561%2052.7987C63.1767%2052.9556%2063.3547%2053.1267%2063.4901%2053.3121C63.6282%2053.4994%2063.7232%2053.6905%2063.775%2053.8853C63.8276%2054.0847%2063.8363%2054.2832%2063.801%2054.4808C63.7657%2054.6785%2063.685%2054.8661%2063.5587%2055.0436C63.4306%2055.2238%2063.2789%2055.363%2063.1038%2055.4612C62.9314%2055.5613%2062.7446%2055.6188%2062.5436%2055.6338C62.3426%2055.6488%2062.1319%2055.6205%2061.9116%2055.5488C61.692%2055.4818%2061.4719%2055.3698%2061.2514%2055.213ZM58.2673%2059.1725C58.324%2059.2057%2058.3876%2059.2416%2058.4581%2059.2803C58.5286%2059.3189%2058.5991%2059.3575%2058.6696%2059.3961C58.7376%2059.437%2058.8012%2059.4729%2058.8604%2059.5039C58.9193%2059.5396%2058.9647%2059.5676%2058.9963%2059.5879C58.9793%2059.5544%2058.9561%2059.5064%2058.9265%2059.4442C58.8992%2059.3844%2058.8686%2059.3186%2058.8349%2059.2468C58.8033%2059.1774%2058.7708%2059.1045%2058.7373%2059.028C58.7013%2058.9538%2058.6709%2058.8856%2058.646%2058.8236L58.3207%2058.0501L57.5273%2058.7669L58.2673%2059.1725ZM56.3301%2058.1139L57.0977%2058.5279L58.1262%2057.5986L57.7883%2056.7963L58.1887%2056.4346L59.5863%2059.8421L59.1786%2060.2105L55.9187%2058.4857L56.3301%2058.1139ZM52.6993%2062.9259C52.7889%2063.0838%2052.8889%2063.2168%2052.9995%2063.3248C53.1117%2063.4357%2053.2363%2063.515%2053.3732%2063.5625C53.5073%2063.6117%2053.6536%2063.6255%2053.8121%2063.6039C53.9677%2063.584%2054.1346%2063.5235%2054.3126%2063.4226L54.6829%2063.2127L53.4719%2061.0766L53.1016%2061.2866C52.9236%2061.3875%2052.7861%2061.4996%2052.689%2061.6229C52.5891%2061.7478%2052.5258%2061.8804%2052.4992%2062.0208C52.4696%2062.1627%2052.4728%2062.3089%2052.5087%2062.4592C52.5463%2062.6124%2052.6098%2062.768%2052.6993%2062.9259ZM52.2385%2063.1872C52.0872%2062.9202%2051.998%2062.6691%2051.9709%2062.4341C51.941%2062.2006%2051.9585%2061.9839%2052.0235%2061.784C52.0901%2061.5869%2052.1961%2061.4092%2052.3415%2061.2508C52.4841%2061.0941%2052.6544%2060.9596%2052.8525%2060.8473L53.6751%2060.381L55.3842%2063.3956L54.5616%2063.8619C54.3606%2063.9758%2054.1549%2064.0546%2053.9443%2064.098C53.7309%2064.1432%2053.5231%2064.1414%2053.3211%2064.0929C53.1206%2064.0471%2052.928%2063.9515%2052.743%2063.806C52.5581%2063.6604%2052.3899%2063.4542%2052.2385%2063.1872ZM43.3091%2065.6047C43.2474%2065.2537%2043.3126%2064.9674%2043.5049%2064.7459C43.6977%2064.5277%2043.9956%2064.3831%2044.3987%2064.3122C44.5189%2064.291%2044.6415%2064.2829%2044.7663%2064.2877C44.8912%2064.2926%2045.0131%2064.3097%2045.1322%2064.339C45.2481%2064.3688%2045.3575%2064.4099%2045.4605%2064.4622C45.5641%2064.5177%2045.6529%2064.5841%2045.7268%2064.6616L45.3951%2065.0618C45.2677%2064.9468%2045.1234%2064.87%2044.9625%2064.8313C44.8021%2064.7958%2044.6439%2064.7918%2044.4879%2064.8193C44.2148%2064.8673%2044.0317%2064.9498%2043.9383%2065.0668C43.8423%2065.1875%2043.8097%2065.3357%2043.8406%2065.5112C43.8714%2065.6867%2043.9525%2065.8048%2044.0839%2065.8655C44.2157%2065.9294%2044.3711%2065.9457%2044.5498%2065.9142L44.8668%2065.8584L44.9543%2066.3558L44.6422%2066.4107C44.4829%2066.4387%2044.3707%2066.5053%2044.3054%2066.6107C44.2402%2066.716%2044.219%2066.8336%2044.2419%2066.9636C44.2505%2067.0124%2044.2694%2067.0627%2044.2986%2067.1145C44.3278%2067.1663%2044.3708%2067.2107%2044.4276%2067.2476C44.4843%2067.2846%2044.5575%2067.3102%2044.6472%2067.3246C44.7342%2067.3428%2044.8411%2067.3408%2044.9678%2067.3185C45.1043%2067.2944%2045.223%2067.2451%2045.3238%2067.1704C45.4213%2067.0963%2045.5084%2067.0005%2045.5849%2066.8832L46.0287%2067.1771C45.9087%2067.3523%2045.7695%2067.4941%2045.6109%2067.6024C45.4497%2067.7146%2045.2618%2067.7895%2045.0473%2067.8272C44.888%2067.8553%2044.7332%2067.8607%2044.5827%2067.8436C44.4328%2067.8298%2044.299%2067.793%2044.1813%2067.7333C44.0635%2067.6736%2043.9635%2067.5907%2043.8811%2067.4845C43.7994%2067.3816%2043.7453%2067.2554%2043.719%2067.1059C43.683%2066.9011%2043.6956%2066.7347%2043.7568%2066.6067C43.8148%2066.4792%2043.8966%2066.3726%2044.0022%2066.287C43.8317%2066.2701%2043.683%2066.2058%2043.5561%2066.0941C43.4292%2065.9824%2043.3469%2065.8192%2043.3091%2065.6047ZM38.1161%2066.0627C38.1101%2066.2706%2038.1749%2066.4243%2038.3107%2066.524C38.4464%2066.627%2038.6379%2066.6822%2038.8853%2066.6894C39.1394%2066.6968%2039.3404%2066.6514%2039.4886%2066.5534C39.6366%2066.4587%2039.7136%2066.309%2039.7196%2066.1045C39.7221%2066.0187%2039.7079%2065.9374%2039.6772%2065.8606C39.6464%2065.7838%2039.5989%2065.7147%2039.5346%2065.6534C39.467%2065.5953%2039.3842%2065.5466%2039.2863%2065.5075C39.1883%2065.4716%2039.0749%2065.4518%2038.9463%2065.448C38.6824%2065.4403%2038.4795%2065.4906%2038.3377%2065.5987C38.1958%2065.7101%2038.1219%2065.8648%2038.1161%2066.0627ZM37.5913%2066.0573C37.5968%2065.8693%2037.6363%2065.7037%2037.7098%2065.5606C37.7833%2065.4174%2037.8825%2065.2998%2038.0073%2065.2077C38.1322%2065.1156%2038.2778%2065.0472%2038.4442%2065.0025C38.6106%2064.9579%2038.7895%2064.9383%2038.9808%2064.9439C39.1622%2064.9492%2039.3314%2064.9789%2039.4883%2065.033C39.6451%2065.0904%2039.7813%2065.1769%2039.8968%2065.2925C40.009%2065.408%2040.0971%2065.5542%2040.1613%2065.7311C40.2222%2065.9078%2040.2491%2066.1183%2040.242%2066.3624C40.2376%2066.5142%2040.2181%2066.6721%2040.1836%2066.8362C40.1491%2067.0002%2040.0966%2067.1605%2040.026%2067.3169C39.9521%2067.4732%2039.8586%2067.6224%2039.7455%2067.7644C39.6291%2067.9063%2039.4901%2068.031%2039.3285%2068.1385C39.1668%2068.2461%2038.9795%2068.3314%2038.7663%2068.3945C38.5499%2068.4576%2038.3046%2068.49%2038.0305%2068.492L38.0448%2068.0021C38.4444%2067.9972%2038.7805%2067.9063%2039.0531%2067.7293C39.3224%2067.5523%2039.5185%2067.284%2039.6412%2066.9244C39.5164%2067.0165%2039.3857%2067.082%2039.2492%2067.1209C39.1093%2067.1631%2038.9337%2067.1811%2038.7226%2067.1749C38.5643%2067.1703%2038.4165%2067.1429%2038.2793%2067.0927C38.1387%2067.0457%2038.0169%2066.9761%2037.9139%2066.8839C37.811%2066.7918%2037.7301%2066.6772%2037.6714%2066.5401C37.6126%2066.403%2037.5859%2066.2421%2037.5913%2066.0573ZM32.327%2065.9829C32.2844%2066.1594%2032.2608%2066.3269%2032.2565%2066.4854C32.2481%2066.6463%2032.264%2066.7911%2032.3042%2066.9197C32.3413%2067.0475%2032.4049%2067.1562%2032.4953%2067.246C32.5824%2067.335%2032.6998%2067.3973%2032.8473%2067.433C32.9949%2067.4687%2033.1278%2067.4668%2033.2459%2067.4275C33.3633%2067.3914%2033.4693%2067.3253%2033.5638%2067.2293C33.6543%2067.1358%2033.7326%2067.0155%2033.7987%2066.8685C33.8641%2066.7247%2033.9181%2066.5646%2033.9607%2066.3882C34.0034%2066.2117%2034.0289%2066.043%2034.0373%2065.8821C34.0416%2065.7235%2034.0253%2065.5804%2033.9883%2065.4526C33.9481%2065.324%2033.8844%2065.2153%2033.7973%2065.1263C33.7069%2065.0365%2033.588%2064.9738%2033.4404%2064.9381C33.2928%2064.9024%2033.1604%2064.9027%2033.043%2064.9388C32.9248%2064.9781%2032.8205%2065.0446%2032.7299%2065.1381C32.6354%2065.2341%2032.5555%2065.354%2032.4902%2065.4978C32.4241%2065.6448%2032.3697%2065.8065%2032.327%2065.9829ZM31.8146%2065.8692C31.8767%2065.6126%2031.9626%2065.3838%2032.0723%2065.1828C32.1812%2064.9851%2032.3105%2064.8228%2032.46%2064.696C32.6095%2064.5691%2032.7781%2064.4826%2032.9659%2064.4363C33.1496%2064.3924%2033.3506%2064.3969%2033.5687%2064.4496C33.7868%2064.5024%2033.9692%2064.5906%2034.1159%2064.7144C34.2585%2064.8405%2034.3678%2064.9926%2034.4436%2065.1705C34.5154%2065.3509%2034.5546%2065.5539%2034.5612%2065.7796C34.5645%2066.0045%2034.5352%2066.2452%2034.4731%2066.5019C34.4118%2066.7553%2034.3267%2066.9809%2034.2178%2067.1786C34.1081%2067.3796%2033.9785%2067.5435%2033.8289%2067.6703C33.6794%2067.7972%2033.5124%2067.8841%2033.3279%2067.9312C33.1401%2067.9774%2032.9372%2067.9742%2032.719%2067.9215C32.5009%2067.8687%2032.3205%2067.7793%2032.1778%2067.6531C32.0312%2067.5293%2031.922%2067.3773%2031.8501%2067.1969C31.7743%2067.019%2031.7351%2066.816%2031.7325%2066.5879C31.726%2066.3622%2031.7534%2066.1227%2031.8146%2065.8692ZM27.1159%2065.1708C27.0856%2065.2367%2027.0708%2065.3044%2027.0716%2065.3738C27.0681%2065.4448%2027.0784%2065.5131%2027.1027%2065.5788C27.1241%2065.6431%2027.1592%2065.701%2027.2082%2065.7525C27.2527%2065.8057%2027.3095%2065.8481%2027.3785%2065.8798C27.4475%2065.9115%2027.5181%2065.9276%2027.5905%2065.9282C27.6585%2065.9304%2027.7254%2065.9193%2027.791%2065.895C27.8537%2065.8693%2027.9123%2065.8327%2027.9668%2065.7851C28.017%2065.7391%2028.0572%2065.6832%2028.0875%2065.6172C28.1192%2065.5482%2028.1368%2065.4782%2028.1404%2065.4072C28.141%2065.3349%2028.1306%2065.2665%2028.1093%2065.2022C28.085%2065.1366%2028.0505%2065.0772%2028.0059%2065.024C27.957%2064.9725%2027.898%2064.9308%2027.829%2064.8992C27.7601%2064.8675%2027.6916%2064.8505%2027.6236%2064.8483C27.5512%2064.8478%2027.4837%2064.8603%2027.421%2064.886C27.3554%2064.9103%2027.2968%2064.947%2027.2452%2064.9959C27.1907%2065.0435%2027.1476%2065.1018%2027.1159%2065.1708ZM26.711%2064.9848C26.7689%2064.8588%2026.8458%2064.7507%2026.9418%2064.6604C27.0364%2064.5731%2027.1427%2064.5076%2027.2609%2064.4638C27.3791%2064.42%2027.5025%2064.4004%2027.6311%2064.4051C27.7597%2064.4097%2027.887%2064.4409%2028.013%2064.4988C28.139%2064.5567%2028.2456%2064.6329%2028.3329%2064.7275C28.4202%2064.8221%2028.4857%2064.9285%2028.5295%2065.0466C28.5702%2065.1634%2028.5898%2065.2868%2028.5882%2065.4168C28.5822%2065.5485%2028.5503%2065.6773%2028.4924%2065.8032C28.4359%2065.9262%2028.3604%2066.0313%2028.2658%2066.1186C28.1682%2066.2045%2028.0625%2066.2685%2027.9487%2066.3107C27.8305%2066.3544%2027.7071%2066.374%2027.5785%2066.3694C27.4485%2066.3678%2027.3205%2066.338%2027.1945%2066.2802C27.0686%2066.2223%2026.9627%2066.1446%2026.8767%2066.047C26.7894%2065.9524%2026.7239%2065.846%2026.6801%2065.7278C26.635%2065.6127%2026.6147%2065.4908%2026.6193%2065.3621C26.624%2065.2335%2026.6545%2065.1077%2026.711%2064.9848ZM21.0589%2058.281L21.4547%2058.6622L19.9168%2061.9925L19.5104%2061.601L20.5217%2059.5094C20.5441%2059.4623%2020.57%2059.4093%2020.5992%2059.3504C20.6262%2059.2939%2020.6543%2059.2385%2020.6836%2059.1843C20.7106%2059.1278%2020.7376%2059.0759%2020.7648%2059.0287C20.7872%2058.9816%2020.8064%2058.9451%2020.8222%2058.9191C20.7969%2058.9359%2020.7623%2058.9576%2020.7184%2058.9841C20.6699%2059.0107%2020.6191%2059.0396%2020.566%2059.0709C20.5105%2059.1%2020.4539%2059.1302%2020.3961%2059.1616C20.3384%2059.1931%2020.2864%2059.2209%2020.2401%2059.2451L18.1984%2060.3371L17.7991%2059.9524L21.0589%2058.281ZM18.1215%2055.3391L15.3278%2057.3893L15.0202%2056.9702L17.814%2054.92L18.1215%2055.3391ZM15.9886%2052.3007L12.8819%2053.836L11.8927%2051.8344L12.3454%2051.6107L13.1043%2053.1463L13.8721%2052.7668L13.4312%2051.8748L13.8839%2051.6511L14.3248%2052.5431L15.3056%2052.0584L14.5138%2050.4562L14.9665%2050.2325L15.9886%2052.3007ZM13.0654%2044.7145L13.187%2045.225L11.1353%2046.2685C11.108%2046.2818%2011.0745%2046.2982%2011.0351%2046.3178C10.9925%2046.3381%2010.9514%2046.3581%2010.912%2046.3777C10.8693%2046.398%2010.8299%2046.4176%2010.7936%2046.4364C10.7566%2046.452%2010.7289%2046.4637%2010.7104%2046.4715C10.7304%2046.4701%2010.7609%2046.4697%2010.8017%2046.4701C10.8417%2046.4674%2010.8854%2046.4654%2010.9326%2046.4644C10.9766%2046.464%2011.0223%2046.4634%2011.0695%2046.4623C11.1136%2046.462%2011.1508%2046.4616%2011.1812%2046.4611L13.4887%2046.4915L13.608%2046.9924L10.4011%2048.4841L10.2795%2047.9736L12.3116%2047.062C12.3366%2047.0527%2012.3675%2047.0402%2012.4045%2047.0246C12.4407%2047.0058%2012.479%2046.9882%2012.5192%2046.9719C12.5586%2046.9523%2012.5984%2046.9343%2012.6386%2046.918C12.6756%2046.9024%2012.7082%2046.8895%2012.7363%2046.8794C12.7067%2046.8831%2012.6718%2046.8863%2012.6318%2046.8891C12.5909%2046.8886%2012.5485%2046.8885%2012.5045%2046.8889C12.4605%2046.8892%2012.4184%2046.8907%2012.3784%2046.8935C12.3375%2046.893%2012.3035%2046.8926%2012.2763%2046.8923L10.0144%2046.8612L9.91119%2046.4278L11.9619%2045.3591C12.0038%2045.3355%2012.0614%2045.3066%2012.1346%2045.2722C12.2078%2045.2377%2012.2738%2045.2085%2012.3325%2045.1843C12.2652%2045.1867%2012.1915%2045.1907%2012.1114%2045.1962C12.0281%2045.2025%2011.9648%2045.2074%2011.9215%2045.2109L9.64731%2045.3202L9.53029%2044.829L13.0654%2044.7145ZM10.5555%2035.995C10.6605%2036.0061%2010.7553%2036.036%2010.8397%2036.0847C10.9246%2036.1302%2010.9978%2036.191%2011.0594%2036.2672C11.1182%2036.3397%2011.1624%2036.424%2011.1921%2036.5201C11.2188%2036.6125%2011.2269%2036.7096%2011.2161%2036.8113C11.2051%2036.9164%2011.1768%2037.0113%2011.1314%2037.0961C11.0826%2037.1806%2011.0218%2037.2538%2010.9489%2037.3158C10.8731%2037.3742%2010.7888%2037.4184%2010.696%2037.4485C10.6036%2037.4752%2010.5049%2037.4831%2010.3998%2037.472C10.2981%2037.4613%2010.2032%2037.433%2010.1151%2037.3872C10.0273%2037.3382%209.95408%2037.2773%209.89535%2037.2048C9.83369%2037.1286%209.78784%2037.0441%209.75779%2036.9513C9.72775%2036.8586%209.71826%2036.7597%209.72933%2036.6546C9.74005%2036.5529%209.76978%2036.4598%209.8185%2036.3753C9.86758%2036.2876%209.93003%2036.2145%2010.0059%2036.1561C10.0788%2036.0941%2010.1631%2036.0499%2010.2588%2036.0235C10.3548%2035.9938%2010.4537%2035.9843%2010.5555%2035.995ZM13.7648%2029.7157L10.6128%2028.2756L10.8288%2027.8028L13.517%2029.031L14.235%2027.4595L14.6988%2027.6714L13.7648%2029.7157ZM15.9499%2022.181C15.7902%2022.064%2015.6332%2021.9796%2015.4788%2021.9278C15.3237%2021.8714%2015.1769%2021.8456%2015.0383%2021.8505C14.8971%2021.8534%2014.7674%2021.8852%2014.6492%2021.9459C14.5331%2022.0039%2014.434%2022.0888%2014.352%2022.2006C14.2701%2022.3124%2014.2189%2022.4325%2014.1986%2022.5608C14.1775%2022.6844%2014.1865%2022.8117%2014.2256%2022.9427C14.2646%2023.0736%2014.3344%2023.2045%2014.4349%2023.3354C14.5327%2023.4644%2014.6614%2023.5874%2014.8211%2023.7045C14.9809%2023.8215%2015.1383%2023.9082%2015.2933%2023.9646C15.4477%2024.0164%2015.5945%2024.0422%2015.7338%2024.0419C15.8724%2024.0371%2015.9998%2024.0057%2016.116%2023.9476C16.2341%2023.8869%2016.3342%2023.8007%2016.4161%2023.6889C16.4981%2023.5771%2016.5496%2023.4593%2016.5706%2023.3356C16.591%2023.2074%2016.5817%2023.0777%2016.5426%2022.9468C16.5055%2022.8132%2016.438%2022.6819%2016.3402%2022.553C16.2397%2022.4221%2016.1097%2022.2981%2015.9499%2022.181ZM16.2551%2021.7479C16.4734%2021.9079%2016.6502%2022.0825%2016.7856%2022.2718C16.9184%2022.4591%2017.0097%2022.6529%2017.0594%2022.853C17.1084%2023.0485%2017.1139%2023.2448%2017.0758%2023.442C17.0377%2023.6391%2016.9533%2023.8268%2016.8226%2024.0052C16.6938%2024.1809%2016.5425%2024.3175%2016.3687%2024.4152C16.1922%2024.5108%2016.0033%2024.5647%2015.8021%2024.5769C15.6009%2024.589%2015.391%2024.56%2015.1724%2024.4898C14.9531%2024.4149%2014.7343%2024.2975%2014.516%2024.1376C14.2977%2023.9776%2014.1222%2023.8039%2013.9894%2023.6166C13.854%2023.4273%2013.7618%2023.2349%2013.7127%2023.0394C13.663%2022.8393%2013.6572%2022.6407%2013.6953%2022.4435C13.7334%2022.2464%2013.8168%2022.06%2013.9456%2021.8843C14.0763%2021.706%2014.2299%2021.5689%2014.4064%2021.4733C14.5802%2021.3756%2014.7678%2021.3208%2014.969%2021.3086C15.1702%2021.2965%2015.3804%2021.3279%2015.5998%2021.4027C15.8184%2021.4729%2016.0368%2021.588%2016.2551%2021.7479ZM19.3021%2017.8311C19.2459%2017.797%2019.1829%2017.76%2019.1131%2017.7202C19.0432%2017.6804%2018.9734%2017.6407%2018.9035%2017.6009C18.8362%2017.559%2018.7732%2017.522%2018.7145%2017.49C18.6562%2017.4533%2018.6113%2017.4246%2018.58%2017.4038C18.5964%2017.4376%2018.6189%2017.4859%2018.6474%2017.5486C18.6738%2017.6089%2018.7033%2017.6752%2018.7358%2017.7475C18.7662%2017.8174%2018.7975%2017.8908%2018.8298%2017.9678C18.8645%2018.0427%2018.8938%2018.1113%2018.9177%2018.1737L19.2303%2018.9525L20.0354%2018.2488L19.3021%2017.8311ZM21.2217%2018.9213L20.4609%2018.4949L19.4173%2019.4071L19.742%2020.2148L19.3357%2020.57L17.9942%2017.1399L18.408%2016.7782L21.6391%2018.5564L21.2217%2018.9213ZM24.9375%2014.1721C24.8509%2014.0126%2024.7534%2013.8778%2024.6448%2013.7677C24.5347%2013.6547%2024.4116%2013.5732%2024.2755%2013.5231C24.1424%2013.4715%2023.9964%2013.455%2023.8375%2013.4736C23.6815%2013.4906%2023.5136%2013.5479%2023.3338%2013.6455L22.9596%2013.8486L24.1307%2016.0068L24.5049%2015.8037C24.6847%2015.7061%2024.8243%2015.5966%2024.9236%2015.4751C25.0258%2015.3521%2025.0915%2015.2206%2025.1208%2015.0808C25.153%2014.9395%2025.1525%2014.7933%2025.1194%2014.6423C25.0847%2014.4884%2025.0241%2014.3317%2024.9375%2014.1721ZM25.4031%2013.9195C25.5495%2014.1893%2025.634%2014.4419%2025.6567%2014.6774C25.6822%2014.9114%2025.6607%2015.1277%2025.592%2015.3264C25.5218%2015.5222%2025.4125%2015.698%2025.2641%2015.8536C25.1187%2016.0076%2024.9459%2016.1389%2024.7457%2016.2475L23.9146%2016.6985L22.2619%2013.6527L23.0929%2013.2017C23.296%2013.0915%2023.5032%2013.0167%2023.7145%2012.9771C23.9287%2012.9359%2024.1364%2012.9415%2024.3375%2012.9938C24.5371%2013.0433%2024.728%2013.1425%2024.9102%2013.2914C25.0924%2013.4404%2025.2567%2013.6497%2025.4031%2013.9195ZM34.3617%2011.6339C34.4181%2011.9858%2034.3486%2012.2711%2034.153%2012.4896C33.9569%2012.7049%2033.6568%2012.845%2033.2527%2012.9098C33.1322%2012.9291%2033.0095%2012.9354%2032.8847%2012.9287C32.76%2012.922%2032.6383%2012.9031%2032.5197%2012.872C32.4043%2012.8403%2032.2955%2012.7976%2032.1933%2012.7438C32.0905%2012.6868%2032.0028%2012.619%2031.93%2012.5404L32.2677%2012.1453C32.3934%2012.2621%2032.5365%2012.3411%2032.6968%2012.3823C32.8566%2012.4201%2033.0148%2012.4265%2033.1712%2012.4014C33.4449%2012.3575%2033.6293%2012.2778%2033.7244%2012.1623C33.8223%2012.043%2033.8571%2011.8953%2033.8289%2011.7194C33.8007%2011.5434%2033.7214%2011.4241%2033.591%2011.3614C33.4601%2011.2955%2033.305%2011.2769%2033.1258%2011.3057L32.8081%2011.3567L32.7281%2010.8581L33.0409%2010.8079C33.2006%2010.7823%2033.3138%2010.7173%2033.3807%2010.613C33.4475%2010.5087%2033.4705%2010.3914%2033.4496%2010.261C33.4417%2010.2122%2033.4236%2010.1616%2033.3951%2010.1093C33.3667%2010.0571%2033.3244%2010.012%2033.2682%209.97426C33.212%209.93648%2033.1392%209.90972%2033.0497%209.89398C32.963%209.87446%2032.8562%209.8749%2032.7291%209.89528C32.5922%209.91724%2032.4728%209.9648%2032.3709%2010.038C32.2723%2010.1106%2032.1838%2010.205%2032.1055%2010.3212L31.6662%2010.0206C31.7888%209.84723%2031.9302%209.70756%2032.0903%209.60165C32.2532%209.49196%2032.4422%209.41986%2032.6573%209.38536C32.817%209.35975%2032.9719%209.35662%2033.1221%209.37599C33.2717%209.39209%2033.405%209.43088%2033.5218%209.49236C33.6386%209.55385%2033.7374%209.63828%2033.8181%209.74566C33.8983%209.84978%2033.9505%209.97679%2033.9745%2010.1267C34.0074%2010.332%2033.9923%2010.4982%2033.9291%2010.6253C33.8692%2010.7519%2033.7858%2010.8572%2033.679%2010.9412C33.8492%2010.9607%2033.997%2011.0272%2034.1221%2011.1409C34.2473%2011.2545%2034.3272%2011.4188%2034.3617%2011.6339ZM39.5621%2011.2542C39.5713%2011.0465%2039.5088%2010.8918%2039.3745%2010.79C39.2404%2010.685%2039.0497%2010.627%2038.8024%2010.616C38.5486%2010.6048%2038.3468%2010.6471%2038.1972%2010.7429C38.0478%2010.8353%2037.9685%2010.9838%2037.9595%2011.1882C37.9557%2011.2739%2037.9686%2011.3555%2037.9982%2011.4327C38.0278%2011.51%2038.0743%2011.5798%2038.1376%2011.6421C38.2044%2011.7012%2038.2864%2011.7511%2038.3837%2011.7917C38.4812%2011.8291%2038.5942%2011.8506%2038.7228%2011.8563C38.9865%2011.868%2039.1901%2011.8208%2039.3336%2011.7148C39.4772%2011.6056%2039.5533%2011.452%2039.5621%2011.2542ZM40.0868%2011.2675C40.0785%2011.4555%2040.0365%2011.6204%2039.9608%2011.7624C39.8851%2011.9044%2039.7842%2012.0206%2039.658%2012.1108C39.5318%2012.201%2039.3851%2012.2672%2039.2181%2012.3093C39.051%2012.3515%2038.8719%2012.3683%2038.6807%2012.3599C38.4993%2012.3518%2038.3306%2012.3196%2038.1745%2012.2631C38.0186%2012.2034%2037.8838%2012.1148%2037.77%2011.9975C37.6596%2011.8803%2037.5736%2011.7327%2037.5121%2011.5549C37.4539%2011.3773%2037.4302%2011.1664%2037.441%2010.9225C37.4477%2010.7708%2037.4696%2010.6132%2037.5066%2010.4496C37.5435%2010.2861%2037.5985%2010.1267%2037.6714%209.97132C37.7477%209.81613%2037.8434%209.6684%2037.9586%209.52815C38.0772%209.38803%2038.218%209.26543%2038.3813%209.16034C38.5445%209.05524%2038.7331%208.97274%2038.9472%208.91284C39.1646%208.85309%2039.4103%208.82432%2039.6844%208.82655L39.6627%209.31617C39.2631%209.31499%2038.9256%209.40081%2038.6504%209.57363C38.3784%209.74659%2038.1784%2010.0119%2038.0502%2010.3697C38.1765%2010.2794%2038.3081%2010.2159%2038.4452%2010.179C38.5857%2010.139%2038.7615%2010.1236%2038.9725%2010.133C39.1307%2010.14%2039.2781%2010.1696%2039.4145%2010.2219C39.5544%2010.2711%2039.6751%2010.3425%2039.7767%2010.4362C39.8783%2010.5299%2039.9574%2010.6457%2040.014%2010.7836C40.0707%2010.9216%2040.0949%2011.0829%2040.0868%2011.2675ZM45.3511%2011.4213C45.3964%2011.2455%2045.4225%2011.0784%2045.4292%2010.92C45.44%2010.7592%2045.4262%2010.6142%2045.388%2010.485C45.3529%2010.3567%2045.2908%2010.247%2045.2019%2010.1559C45.1161%2010.0656%2044.9997%2010.0015%2044.8527%209.9636C44.7057%209.9257%2044.5728%209.92553%2044.454%209.96309C44.3361%209.99745%2044.2292%2010.0619%2044.1332%2010.1565C44.0413%2010.2486%2043.9612%2010.3677%2043.8929%2010.5137C43.8254%2010.6565%2043.769%2010.8158%2043.7237%2010.9916C43.6784%2011.1673%2043.6503%2011.3356%2043.6396%2011.4964C43.6328%2011.6549%2043.647%2011.7983%2043.682%2011.9266C43.7203%2012.0558%2043.7824%2012.1655%2043.8682%2012.2558C43.9571%2012.3469%2044.0751%2012.4114%2044.2221%2012.4493C44.3692%2012.4871%2044.5016%2012.4889%2044.6195%2012.4546C44.7383%2012.417%2044.8436%2012.3521%2044.9355%2012.2599C45.0315%2012.1654%2045.1132%2012.0467%2045.1807%2011.9039C45.249%2011.7579%2045.3058%2011.5971%2045.3511%2011.4213ZM45.8617%2011.5427C45.7958%2011.7984%2045.7065%2012.0258%2045.5938%2012.2251C45.4819%2012.4212%2045.3502%2012.5816%2045.1988%2012.7061C45.0474%2012.8307%2044.8775%2012.9147%2044.6891%2012.9582C44.5047%2012.9992%2044.3038%2012.9918%2044.0865%2012.9357C43.8692%2012.8797%2043.6882%2012.7888%2043.5434%2012.6628C43.4026%2012.5345%2043.2957%2012.3808%2043.2226%2012.2018C43.1534%2012.0204%2043.1173%2011.8168%2043.1142%2011.5911C43.1142%2011.3661%2043.1472%2011.1258%2043.2131%2010.8702C43.2782%2010.6177%2043.3667%2010.3934%2043.4785%2010.1973C43.5913%209.99801%2043.7233%209.83608%2043.8747%209.71151C44.0261%209.58694%2044.1944%209.50252%2044.3797%209.45825C44.5681%209.4148%2044.771%209.42108%2044.9883%209.4771C45.2056%209.53312%2045.3846%209.62528%2045.5254%209.75359C45.6702%209.87952%2045.7771%2010.0332%2045.8462%2010.2146C45.9193%2010.3936%2045.9555%2010.5972%2045.9546%2010.8253C45.9578%2011.0511%2045.9268%2011.2902%2045.8617%2011.5427ZM50.5577%2012.3223C50.5892%2012.2569%2050.6052%2012.1895%2050.6057%2012.1201C50.6106%2012.0492%2050.6015%2011.9807%2050.5785%2011.9146C50.5584%2011.8499%2050.5243%2011.7913%2050.4763%2011.7389C50.4328%2011.6849%2050.3768%2011.6414%2050.3084%2011.6084C50.24%2011.5755%2050.1697%2011.558%2050.0973%2011.5561C50.0294%2011.5526%2049.9624%2011.5624%2049.8963%2011.5855C49.8331%2011.61%2049.7739%2011.6455%2049.7184%2011.6921C49.6674%2011.7371%2049.6261%2011.7923%2049.5946%2011.8577C49.5616%2011.9261%2049.5427%2011.9957%2049.5378%2012.0666C49.5358%2012.139%2049.5449%2012.2075%2049.565%2012.2722C49.5881%2012.3383%2049.6214%2012.3983%2049.665%2012.4523C49.713%2012.5048%2049.7712%2012.5475%2049.8395%2012.5805C49.9079%2012.6134%2049.9761%2012.6317%2050.044%2012.6351C50.1164%2012.637%2050.1841%2012.6258%2050.2472%2012.6012C50.3133%2012.5782%2050.3726%2012.5426%2050.4251%2012.4946C50.4805%2012.4481%2050.5247%2012.3906%2050.5577%2012.3223ZM50.959%2012.5158C50.8988%2012.6407%2050.8198%2012.7474%2050.7222%2012.8358C50.626%2012.9213%2050.5184%2012.9849%2050.3994%2013.0264C50.2804%2013.068%2050.1567%2013.0852%2050.0282%2013.0782C49.8997%2013.0712%2049.773%2013.0375%2049.6481%2012.9773C49.5233%2012.9171%2049.4181%2012.8389%2049.3326%2012.7427C49.2471%2012.6465%2049.1836%2012.5389%2049.142%2012.4199C49.1034%2012.3023%2049.0862%2012.1786%2049.0902%2012.0486C49.0987%2011.9172%2049.133%2011.789%2049.1933%2011.6641C49.2521%2011.5423%2049.3296%2011.4386%2049.4258%2011.3531C49.5249%2011.269%2049.6318%2011.207%2049.7464%2011.1669C49.8654%2011.1254%2049.9891%2011.1081%2050.1176%2011.1152C50.2476%2011.1192%2050.375%2011.1514%2050.4998%2011.2116C50.6247%2011.2718%2050.7291%2011.3515%2050.8132%2011.4507C50.8987%2011.5469%2050.9622%2011.6545%2051.0038%2011.7735C51.0468%2011.8895%2051.0647%2012.0117%2051.0577%2012.1402C51.0507%2012.2688%2051.0178%2012.394%2050.959%2012.5158ZM56.4961%2019.3123L56.1061%2018.9252L57.6939%2015.6184L58.0944%2016.016L57.0517%2018.0921C57.0286%2018.1389%2057.0019%2018.1915%2056.9718%2018.25C56.944%2018.3061%2056.915%2018.361%2056.8849%2018.4148C56.8571%2018.4709%2056.8293%2018.5223%2056.8014%2018.5691C56.7783%2018.6159%2056.7586%2018.6521%2056.7423%2018.6779C56.7679%2018.6614%2056.8029%2018.6403%2056.8471%2018.6145C56.896%2018.5886%2056.9473%2018.5604%2057.0008%2018.5299C57.0567%2018.5017%2057.1138%2018.4723%2057.172%2018.4418C57.2303%2018.4112%2057.2827%2018.3842%2057.3293%2018.3607L59.3872%2017.2996L59.7807%2017.6902L56.4961%2019.3123ZM59.3871%2022.2996L62.2211%2020.3055L62.5202%2020.7306L59.6862%2022.7247L59.3871%2022.2996ZM61.4608%2025.3785L64.59%2023.8895L65.5493%2025.9055L65.0934%2026.1225L64.3574%2024.5758L63.584%2024.9438L64.0116%2025.8423L63.5556%2026.0593L63.1281%2025.1608L62.1402%2025.6309L62.9081%2027.2446L62.4521%2027.4616L61.4608%2025.3785ZM64.2671%2033.0066L64.1536%2032.4942L66.2216%2031.4834C66.2491%2031.4706%2066.2828%2031.4547%2066.3226%2031.4357C66.3655%2031.4161%2066.4069%2031.3968%2066.4466%2031.3778C66.4896%2031.3582%2066.5293%2031.3392%2066.5659%2031.321C66.6031%2031.306%2066.631%2031.2947%2066.6497%2031.2872C66.6296%2031.2883%2066.5992%2031.2883%2066.5584%2031.2872C66.5183%2031.2893%2066.4746%2031.2905%2066.4274%2031.2908C66.3833%2031.2904%2066.3377%2031.2904%2066.2904%2031.2907C66.2464%2031.2903%2066.2092%2031.2901%2066.1787%2031.2901L63.872%2031.2231L63.7607%2030.7204L66.9909%2029.2798L67.1044%2029.7921L65.058%2030.6713C65.0329%2030.6803%2065.0018%2030.6922%2064.9645%2030.7072C64.928%2030.7255%2064.8895%2030.7424%2064.8491%2030.7582C64.8093%2030.7771%2064.7692%2030.7944%2064.7287%2030.8102C64.6915%2030.8252%2064.6587%2030.8375%2064.6305%2030.8472C64.6602%2030.844%2064.6951%2030.8413%2064.7352%2030.8392C64.776%2030.8403%2064.8184%2030.841%2064.8624%2030.8414C64.9065%2030.8418%2064.9485%2030.8409%2064.9886%2030.8388C65.0294%2030.8399%2065.0634%2030.8408%2065.0906%2030.8416L67.3517%2030.9086L67.4481%2031.3436L65.3806%2032.3796C65.3384%2032.4025%2065.2804%2032.4305%2065.2066%2032.4638C65.1328%2032.497%2065.0664%2032.5253%2065.0073%2032.5485C65.0746%2032.5471%2065.1484%2032.5443%2065.2286%2032.54C65.312%2032.5351%2065.3753%2032.5312%2065.4187%2032.5284L67.6943%2032.4553L67.8035%2032.9483L64.2671%2033.0066ZM66.6349%2041.7727C66.5302%2041.7592%2066.4362%2041.7272%2066.3528%2041.6765C66.2691%2041.6292%2066.1972%2041.5667%2066.1373%2041.4891C66.0803%2041.4153%2066.038%2041.33%2066.0105%2041.2333C65.9858%2041.1403%2065.98%2041.043%2065.993%2040.9415C66.0065%2040.8368%2066.0369%2040.7425%2066.0843%2040.6588C66.1349%2040.5754%2066.1974%2040.5036%2066.2717%2040.4433C66.3488%2040.3866%2066.4341%2040.3443%2066.5275%2040.3164C66.6205%2040.2918%2066.7194%2040.2862%2066.8242%2040.2996C66.9256%2040.3127%2067.0199%2040.3431%2067.1069%2040.3908C67.1935%2040.4419%2067.2654%2040.5044%2067.3224%2040.5782C67.3823%2040.6558%2067.4263%2040.7413%2067.4542%2040.8347C67.4821%2040.9282%2067.4894%2041.0273%2067.4759%2041.132C67.4629%2041.2335%2067.431%2041.3259%2067.3804%2041.4092C67.3293%2041.4958%2067.2652%2041.5675%2067.1881%2041.6241C67.1138%2041.6844%2067.0285%2041.7267%2066.9322%2041.751C66.8355%2041.7785%2066.7364%2041.7857%2066.6349%2041.7727Z'%20fill='white'/%3e%3crect%20x='18.6079'%20y='18.6716'%20width='39.505'%20height='39.505'%20rx='19.7525'%20stroke='white'%20stroke-opacity='0.1'%20stroke-width='0.49505'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M33.085%2032.379C33.0851%2031.5988%2033.9392%2031.1196%2034.6055%2031.5255L45.1846%2037.9718C45.8238%2038.3615%2045.8237%2039.29%2045.1846%2039.6798L34.6055%2046.1271C33.9392%2046.5327%2033.085%2046.0528%2033.085%2045.2726V32.379Z'%20fill='white'/%3e%3c/svg%3e", Fn = "data:image/svg+xml,%3csvg%20width='84'%20height='44'%20viewBox='0%200%2084%2044'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20shape-rendering='geometricPrecision'%3e%3crect%20width='84'%20height='44'%20rx='22'%20fill='white'/%3e%3cg%20opacity='0.5'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M27.7657%2015.2278C28.0781%2015.5315%2028.0781%2016.024%2027.7657%2016.3277L21.9314%2022L27.7657%2027.6723C28.0781%2027.976%2028.0781%2028.4685%2027.7657%2028.7722C27.4533%2029.0759%2026.9467%2029.0759%2026.6343%2028.7722L20.2343%2022.55C19.9219%2022.2462%2019.9219%2021.7538%2020.2343%2021.45L26.6343%2015.2278C26.9467%2014.9241%2027.4533%2014.9241%2027.7657%2015.2278Z'%20fill='%230F0F0F'/%3e%3c/g%3e%3cpath%20d='M42%200H62C74.1503%200%2084%209.84974%2084%2022C84%2034.1503%2074.1503%2044%2062%2044H42V0Z'%20fill='%23F5F5F5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M56.2343%2015.2278C56.5467%2014.9241%2057.0533%2014.9241%2057.3657%2015.2278L63.7657%2021.45C64.0781%2021.7538%2064.0781%2022.2462%2063.7657%2022.55L57.3657%2028.7722C57.0533%2029.0759%2056.5467%2029.0759%2056.2343%2028.7722C55.9219%2028.4685%2055.9219%2027.976%2056.2343%2027.6723L62.0686%2022L56.2343%2016.3277C55.9219%2016.024%2055.9219%2015.5315%2056.2343%2015.2278Z'%20fill='%230F0F0F'/%3e%3c/svg%3e", On = {
@@ -987,14 +987,14 @@ const qe = ({
987
987
  className: o,
988
988
  onLoad: i,
989
989
  imgInPlayerWidthRatio: d = 1,
990
- onlyThumbnail: l,
991
- fadeIn: c,
990
+ onlyThumbnail: c,
991
+ fadeIn: u,
992
992
  ...v
993
993
  }, e) => {
994
994
  const { mediaLoadStrategy: E, playerInViewportWidthRatio: k } = je(), { imageHdWidth: N, usedMediaWidths: L } = lt(), [p, n] = Ue(() => {
995
995
  const _ = L.map((C) => `${C !== N ? fn(t, C) : t} ${C}w`);
996
996
  let w;
997
- if (l)
997
+ if (c)
998
998
  w = [`${L[0]}px`];
999
999
  else {
1000
1000
  const C = 1 / (d * k);
@@ -1031,7 +1031,7 @@ const qe = ({
1031
1031
  N,
1032
1032
  d,
1033
1033
  E,
1034
- l,
1034
+ c,
1035
1035
  k,
1036
1036
  t,
1037
1037
  L
@@ -1052,7 +1052,7 @@ const qe = ({
1052
1052
  sizes: n,
1053
1053
  className: ue(
1054
1054
  o,
1055
- c && ue(
1055
+ u && ue(
1056
1056
  b !== void 0 && "transition-opacity duration-200",
1057
1057
  b === !1 && "opacity-0",
1058
1058
  b === !0 && "opacity-100"
@@ -1257,30 +1257,30 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1257
1257
  );
1258
1258
  }, Zn = ({ item: t }) => {
1259
1259
  const { aspectRatioStyle: o } = lt(), { type: i } = t;
1260
- let d, l;
1260
+ let d, c;
1261
1261
  switch (i) {
1262
1262
  case "360":
1263
- d = t.images[0].src, l = !0;
1263
+ d = t.images[0].src, c = !0;
1264
1264
  break;
1265
1265
  case "next360":
1266
- d = t.images[0].src, l = !0;
1266
+ d = t.images[0].src, c = !0;
1267
1267
  break;
1268
1268
  case "interior-360":
1269
- d = t.poster, l = !0;
1269
+ d = t.poster, c = !0;
1270
1270
  break;
1271
1271
  case "image":
1272
- d = t.src, l = !0;
1272
+ d = t.src, c = !0;
1273
1273
  break;
1274
1274
  case "video":
1275
- d = t.poster, l = !0;
1275
+ d = t.poster, c = !0;
1276
1276
  break;
1277
1277
  case "custom":
1278
- d = t.thumbnailSrc, l = !1;
1278
+ d = t.thumbnailSrc, c = !1;
1279
1279
  break;
1280
1280
  default:
1281
- l = !1;
1281
+ c = !1;
1282
1282
  }
1283
- const c = /* @__PURE__ */ a(Xn, { src: d, withCdn: l });
1283
+ const u = /* @__PURE__ */ a(Xn, { src: d, withCdn: c });
1284
1284
  let v;
1285
1285
  switch (i) {
1286
1286
  case "360":
@@ -1297,7 +1297,7 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1297
1297
  break;
1298
1298
  }
1299
1299
  return /* @__PURE__ */ me("div", { className: "relative bg-foreground/30", style: o, children: [
1300
- c,
1300
+ u,
1301
1301
  v && /* @__PURE__ */ a("div", { className: "absolute inset-0 flex items-center justify-center bg-foreground/25", children: v })
1302
1302
  ] });
1303
1303
  }, Vn = {
@@ -1318,8 +1318,8 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1318
1318
  const {
1319
1319
  hideCategoriesNav: i,
1320
1320
  infiniteCarrousel: d,
1321
- permanentGallery: l,
1322
- isFullScreen: c,
1321
+ permanentGallery: c,
1322
+ isFullScreen: u,
1323
1323
  maxItemsShown: v
1324
1324
  } = je(), { categories: e, aspectRatioStyle: E } = lt(), { emitAnalyticsEvent: k } = je(), {
1325
1325
  items: N,
@@ -1402,7 +1402,7 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1402
1402
  }, [
1403
1403
  H,
1404
1404
  // - Run the effect when those values change
1405
- c,
1405
+ u,
1406
1406
  L,
1407
1407
  p
1408
1408
  ]);
@@ -1437,7 +1437,7 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1437
1437
  b();
1438
1438
  else if (d && D === 0 && n === N.length - 1)
1439
1439
  P();
1440
- else if (!c && v !== 1 && D === N.length - 1) {
1440
+ else if (!u && v !== 1 && D === N.length - 1) {
1441
1441
  const J = Math.ceil(v), S = N.length + 1, B = Math.max(0, S - J);
1442
1442
  _(B);
1443
1443
  } else
@@ -1454,7 +1454,7 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1454
1454
  w,
1455
1455
  b,
1456
1456
  P,
1457
- c,
1457
+ u,
1458
1458
  v,
1459
1459
  _
1460
1460
  ]
@@ -1483,7 +1483,7 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1483
1483
  y.includes(J) && /* @__PURE__ */ a("div", { className: "my-2", children: /* @__PURE__ */ a(
1484
1484
  Mr,
1485
1485
  {
1486
- color: l && !c ? "neutral" : "background",
1486
+ color: c && !u ? "neutral" : "background",
1487
1487
  orientation: "vertical"
1488
1488
  }
1489
1489
  ) }),
@@ -1520,7 +1520,7 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1520
1520
  onlyPreload: t,
1521
1521
  ...o
1522
1522
  }) => {
1523
- const { zoom: i, isZooming: d, setZoom: l } = Ke(), c = Le(null), v = Le(null), e = G((x) => {
1523
+ const { zoom: i, isZooming: d, setZoom: c } = Ke(), u = Le(null), v = Le(null), e = G((x) => {
1524
1524
  if (!v.current)
1525
1525
  throw new Error(
1526
1526
  `[${x ?? "getTransformElementOrThrow"}] transformElementRef.current is null`
@@ -1555,7 +1555,7 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1555
1555
  };
1556
1556
  p.current && (cancelAnimationFrame(p.current), p.current = null);
1557
1557
  const z = () => {
1558
- n({ x: I, y: X, scale: V }), l(V);
1558
+ n({ x: I, y: X, scale: V }), c(V);
1559
1559
  }, H = Math.abs(I - y) < 1 && Math.abs(X - T) < 1 && Math.abs(V - $) < 5e-3;
1560
1560
  if (!h || H) {
1561
1561
  z();
@@ -1575,7 +1575,7 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1575
1575
  };
1576
1576
  q();
1577
1577
  },
1578
- [n, l]
1578
+ [n, c]
1579
1579
  ), P = G(
1580
1580
  (x, h) => {
1581
1581
  let { x: y, y: T } = L.current;
@@ -1663,7 +1663,7 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1663
1663
  }, [d, P, t]), ve(() => {
1664
1664
  if (t)
1665
1665
  return;
1666
- const x = c.current;
1666
+ const x = u.current;
1667
1667
  if (!x)
1668
1668
  return;
1669
1669
  const h = (y) => {
@@ -1690,7 +1690,7 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1690
1690
  x.removeEventListener("wheel", h);
1691
1691
  };
1692
1692
  }, [d, P, C, t]), ve(() => {
1693
- const x = c.current, h = v.current;
1693
+ const x = u.current, h = v.current;
1694
1694
  if (!x || !h)
1695
1695
  return;
1696
1696
  const y = N.current, T = (X) => {
@@ -1738,7 +1738,7 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1738
1738
  }, [d, P, C]), /* @__PURE__ */ a(
1739
1739
  "div",
1740
1740
  {
1741
- ref: c,
1741
+ ref: u,
1742
1742
  className: `relative size-full overflow-hidden ${d ? "z-zoomed-image cursor-move" : ""}`,
1743
1743
  children: /* @__PURE__ */ a(
1744
1744
  "div",
@@ -1788,7 +1788,7 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1788
1788
  item: o,
1789
1789
  analyticsValue: i
1790
1790
  }) => {
1791
- const { title: d, icon: l, description: c, detail: v, type: e } = t, { emitAnalyticsEvent: E } = je(), {
1791
+ const { title: d, icon: c, description: u, detail: v, type: e } = t, { emitAnalyticsEvent: E } = je(), {
1792
1792
  extendMode: k,
1793
1793
  setShownDetails: N,
1794
1794
  displayedCategoryId: L,
@@ -1822,11 +1822,11 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1822
1822
  n("click");
1823
1823
  }, [n]), P = G(() => {
1824
1824
  n("hover");
1825
- }, [n]), { getIconConfig: _ } = gt(), w = l ? _(l) : void 0, C = !!v?.src?.trim(), x = v?.type === "image" && C, h = v?.type === "link" && C, y = v?.type === "pdf" && C, T = x || h || y, $ = !!c || T, I = !!d, X = Le(null), V = Le(null), z = Le(null), [H, R] = Ie(!1), q = T ? e === "damage" ? /* @__PURE__ */ a(jn, { className: "size-4" }) : /* @__PURE__ */ a(br, { className: "size-4" }) : /* @__PURE__ */ a("div", { className: "size-1" }), ce = () => {
1825
+ }, [n]), { getIconConfig: _ } = gt(), w = c ? _(c) : void 0, C = !!v?.src?.trim(), x = v?.type === "image" && C, h = v?.type === "link" && C, y = v?.type === "pdf" && C, T = x || h || y, $ = !!u || T, I = !!d, X = Le(null), V = Le(null), z = Le(null), [H, R] = Ie(!1), q = T ? e === "damage" ? /* @__PURE__ */ a(jn, { className: "size-4" }) : /* @__PURE__ */ a(br, { className: "size-4" }) : /* @__PURE__ */ a("div", { className: "size-1" }), ce = () => {
1826
1826
  $ && (b(), !(h || y) && N({
1827
1827
  src: x ? v.src : void 0,
1828
1828
  title: d,
1829
- text: c
1829
+ text: u
1830
1830
  }));
1831
1831
  }, [U, D] = Ie(!1), J = G(() => {
1832
1832
  U || (D(!0), P());
@@ -1846,10 +1846,10 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1846
1846
  const Te = () => {
1847
1847
  j !== null && cancelAnimationFrame(j), j = requestAnimationFrame(() => {
1848
1848
  j = null;
1849
- const Ve = le.getBoundingClientRect(), we = ne.getBoundingClientRect(), u = M.getBoundingClientRect(), f = Ve.right - we.left, ee = we.right - Ve.left, oe = u.width;
1850
- let Q = !1;
1851
- f >= oe ? Q = !1 : ee >= oe ? Q = !0 : Q = ee >= f, R(
1852
- (g) => g === Q ? g : Q
1849
+ const Ve = le.getBoundingClientRect(), we = ne.getBoundingClientRect(), l = M.getBoundingClientRect(), f = Ve.right - we.left, Q = we.right - Ve.left, oe = l.width;
1850
+ let ee = !1;
1851
+ f >= oe ? ee = !1 : Q >= oe ? ee = !0 : ee = Q >= f, R(
1852
+ (g) => g === ee ? g : ee
1853
1853
  );
1854
1854
  });
1855
1855
  };
@@ -1938,18 +1938,18 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1938
1938
  }
1939
1939
  );
1940
1940
  }, _r = ({ hotspot: t, item: o }) => {
1941
- const { detail: i, title: d, description: l, position: c } = t, v = Ue(
1942
- () => d || l ? {
1941
+ const { detail: i, title: d, description: c, position: u } = t, v = Ue(
1942
+ () => d || c ? {
1943
1943
  ...d ? { title: d } : {},
1944
- ...l ? { description: l } : {}
1944
+ ...c ? { description: c } : {}
1945
1945
  } : void 0,
1946
- [d, l]
1946
+ [d, c]
1947
1947
  ), e = Ue(
1948
- () => v || c ? {
1948
+ () => v || u ? {
1949
1949
  ...v ? { text: v } : {},
1950
- ...c ? { position: c } : {}
1950
+ ...u ? { position: u } : {}
1951
1951
  } : void 0,
1952
- [v, c]
1952
+ [v, u]
1953
1953
  ), E = Ue(
1954
1954
  () => ({
1955
1955
  ...e ? { hotspot: e } : {},
@@ -1970,15 +1970,15 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1970
1970
  itemIndex: o,
1971
1971
  className: i,
1972
1972
  onLoad: d,
1973
- ...l
1973
+ ...c
1974
1974
  }) => {
1975
- const { isShowingDetails: c, currentItemHotspotsVisible: v, setItemInteraction: e } = Ke();
1975
+ const { isShowingDetails: u, currentItemHotspotsVisible: v, setItemInteraction: e } = Ke();
1976
1976
  return /* @__PURE__ */ a("div", { className: ue("relative size-full overflow-hidden", i), children: /* @__PURE__ */ me(
1977
1977
  "div",
1978
1978
  {
1979
1979
  className: ue(
1980
1980
  "size-full duration-details",
1981
- c ? "scale-105" : "scale-100"
1981
+ u ? "scale-105" : "scale-100"
1982
1982
  ),
1983
1983
  children: [
1984
1984
  /* @__PURE__ */ a(
@@ -1988,7 +1988,7 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
1988
1988
  onLoad: (E) => {
1989
1989
  o !== void 0 && o >= 0 && e(o, "ready"), d?.(E);
1990
1990
  },
1991
- ...l
1991
+ ...c
1992
1992
  }
1993
1993
  ),
1994
1994
  v && t?.map((E, k) => /* @__PURE__ */ a(
@@ -2006,12 +2006,12 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
2006
2006
  }
2007
2007
  ) });
2008
2008
  }, Kn = 100, ft = 100, mt = 50, $n = 0, Jn = 0, Qn = (t) => {
2009
- const [o, i] = Ie(0), [d, l] = Ie(!1);
2009
+ const [o, i] = Ie(0), [d, c] = Ie(!1);
2010
2010
  return ve(() => {
2011
- const c = XMLHttpRequest.prototype.open, v = XMLHttpRequest.prototype.send;
2011
+ const u = XMLHttpRequest.prototype.open, v = XMLHttpRequest.prototype.send;
2012
2012
  let e = !1;
2013
2013
  return XMLHttpRequest.prototype.open = function(E, k, N = !0, L, p) {
2014
- return k.toString().includes(t) && (e = !0, l(!0)), c.call(
2014
+ return k.toString().includes(t) && (e = !0, c(!0)), u.call(
2015
2015
  this,
2016
2016
  E,
2017
2017
  k,
@@ -2026,10 +2026,10 @@ const br = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customiza
2026
2026
  i(N);
2027
2027
  }
2028
2028
  }), this.addEventListener("loadend", () => {
2029
- e = !1, i(100), l(!1);
2029
+ e = !1, i(100), c(!1);
2030
2030
  })), v.call(this, E);
2031
2031
  }, () => {
2032
- XMLHttpRequest.prototype.open = c, XMLHttpRequest.prototype.send = v;
2032
+ XMLHttpRequest.prototype.open = u, XMLHttpRequest.prototype.send = v;
2033
2033
  };
2034
2034
  }, [t]), [o, d];
2035
2035
  };
@@ -2038,10 +2038,10 @@ window.libpannellum = (function(t, o, i) {
2038
2038
  var L = o.createElement("canvas");
2039
2039
  L.style.width = L.style.height = "100%", N.appendChild(L);
2040
2040
  var p, n, b, P, _, w, C, x, h, y, T, $, I, X, V, z;
2041
- this.init = function(u, f, ee, oe, Q, g, ae, re) {
2041
+ this.init = function(l, f, Q, oe, ee, g, ae, re) {
2042
2042
  if (f === i && (f = "equirectangular"), f != "equirectangular" && f != "cubemap" && f != "multires")
2043
2043
  throw console.log("Error: invalid image type specified!"), { type: "config error" };
2044
- if (y = f, h = u, T = ee, z = re || {}, p) {
2044
+ if (y = f, h = l, T = Q, z = re || {}, p) {
2045
2045
  if (b && (n.detachShader(p, b), n.deleteShader(b)), P && (n.detachShader(p, P), n.deleteShader(P)), n.bindBuffer(n.ARRAY_BUFFER, null), n.bindBuffer(n.ELEMENT_ARRAY_BUFFER, null), p.texture && n.deleteTexture(p.texture), p.nodeCache)
2046
2046
  for (var xe = 0; xe < p.nodeCache.length; xe++)
2047
2047
  n.deleteTexture(p.nodeCache[xe].texture);
@@ -2111,32 +2111,32 @@ window.libpannellum = (function(t, o, i) {
2111
2111
  re !== i && (re.horizonPitch !== i || re.horizonRoll !== i) && (x = [re.horizonPitch == i ? 0 : re.horizonPitch, re.horizonRoll == i ? 0 : re.horizonRoll]);
2112
2112
  var De = n.TEXTURE_2D;
2113
2113
  n.viewport(0, 0, n.drawingBufferWidth, n.drawingBufferHeight), b = n.createShader(n.VERTEX_SHADER);
2114
- var Ze = l;
2115
- y == "multires" && (Ze = c), n.shaderSource(b, Ze), n.compileShader(b), P = n.createShader(n.FRAGMENT_SHADER);
2114
+ var Ze = c;
2115
+ y == "multires" && (Ze = u), n.shaderSource(b, Ze), n.compileShader(b), P = n.createShader(n.FRAGMENT_SHADER);
2116
2116
  var Ae = E;
2117
2117
  y == "cubemap" ? (De = n.TEXTURE_CUBE_MAP, Ae = e) : y == "multires" && (Ae = k), n.shaderSource(P, Ae), n.compileShader(P), p = n.createProgram(), n.attachShader(p, b), n.attachShader(p, P), n.linkProgram(p), n.getShaderParameter(b, n.COMPILE_STATUS) || console.log(n.getShaderInfoLog(b)), n.getShaderParameter(P, n.COMPILE_STATUS) || console.log(n.getShaderInfoLog(P)), n.getProgramParameter(p, n.LINK_STATUS) || console.log(n.getProgramInfoLog(p)), n.useProgram(p), p.drawInProgress = !1;
2118
2118
  var Re = re.backgroundColor ? re.backgroundColor : [0, 0, 0];
2119
- n.clearColor(Re[0], Re[1], Re[2], 1), n.clear(n.COLOR_BUFFER_BIT), p.texCoordLocation = n.getAttribLocation(p, "a_texCoord"), n.enableVertexAttribArray(p.texCoordLocation), y != "multires" ? ($ || ($ = n.createBuffer()), n.bindBuffer(n.ARRAY_BUFFER, $), n.bufferData(n.ARRAY_BUFFER, new Float32Array([-1, 1, 1, 1, 1, -1, -1, 1, 1, -1, -1, -1]), n.STATIC_DRAW), n.vertexAttribPointer(p.texCoordLocation, 2, n.FLOAT, !1, 0, 0), p.aspectRatio = n.getUniformLocation(p, "u_aspectRatio"), n.uniform1f(p.aspectRatio, n.drawingBufferWidth / n.drawingBufferHeight), p.psi = n.getUniformLocation(p, "u_psi"), p.theta = n.getUniformLocation(p, "u_theta"), p.f = n.getUniformLocation(p, "u_f"), p.h = n.getUniformLocation(p, "u_h"), p.v = n.getUniformLocation(p, "u_v"), p.vo = n.getUniformLocation(p, "u_vo"), p.rot = n.getUniformLocation(p, "u_rot"), n.uniform1f(p.h, oe / (Math.PI * 2)), n.uniform1f(p.v, Q / Math.PI), n.uniform1f(p.vo, g / Math.PI * 2), y == "equirectangular" && (p.backgroundColor = n.getUniformLocation(p, "u_backgroundColor"), n.uniform4fv(p.backgroundColor, Re.concat([1]))), p.texture = n.createTexture(), n.bindTexture(De, p.texture), y == "cubemap" ? (n.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, h[1]), n.texImage2D(n.TEXTURE_CUBE_MAP_NEGATIVE_X, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, h[3]), n.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_Y, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, h[4]), n.texImage2D(n.TEXTURE_CUBE_MAP_NEGATIVE_Y, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, h[5]), n.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_Z, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, h[0]), n.texImage2D(n.TEXTURE_CUBE_MAP_NEGATIVE_Z, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, h[2])) : n.texImage2D(De, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, h), n.texParameteri(De, n.TEXTURE_WRAP_S, n.CLAMP_TO_EDGE), n.texParameteri(De, n.TEXTURE_WRAP_T, n.CLAMP_TO_EDGE), n.texParameteri(De, n.TEXTURE_MIN_FILTER, n.LINEAR), n.texParameteri(De, n.TEXTURE_MAG_FILTER, n.LINEAR)) : (p.vertPosLocation = n.getAttribLocation(p, "a_vertCoord"), n.enableVertexAttribArray(p.vertPosLocation), I || (I = n.createBuffer()), X || (X = n.createBuffer()), V || (V = n.createBuffer()), n.bindBuffer(n.ARRAY_BUFFER, X), n.bufferData(n.ARRAY_BUFFER, new Float32Array([0, 0, 1, 0, 1, 1, 0, 1]), n.STATIC_DRAW), n.bindBuffer(n.ELEMENT_ARRAY_BUFFER, V), n.bufferData(n.ELEMENT_ARRAY_BUFFER, new Uint16Array([0, 1, 2, 0, 2, 3]), n.STATIC_DRAW), p.perspUniform = n.getUniformLocation(p, "u_perspMatrix"), p.cubeUniform = n.getUniformLocation(p, "u_cubeMatrix"), p.level = -1, p.currentNodes = [], p.nodeCache = [], p.nodeCacheTimestamp = 0);
2119
+ n.clearColor(Re[0], Re[1], Re[2], 1), n.clear(n.COLOR_BUFFER_BIT), p.texCoordLocation = n.getAttribLocation(p, "a_texCoord"), n.enableVertexAttribArray(p.texCoordLocation), y != "multires" ? ($ || ($ = n.createBuffer()), n.bindBuffer(n.ARRAY_BUFFER, $), n.bufferData(n.ARRAY_BUFFER, new Float32Array([-1, 1, 1, 1, 1, -1, -1, 1, 1, -1, -1, -1]), n.STATIC_DRAW), n.vertexAttribPointer(p.texCoordLocation, 2, n.FLOAT, !1, 0, 0), p.aspectRatio = n.getUniformLocation(p, "u_aspectRatio"), n.uniform1f(p.aspectRatio, n.drawingBufferWidth / n.drawingBufferHeight), p.psi = n.getUniformLocation(p, "u_psi"), p.theta = n.getUniformLocation(p, "u_theta"), p.f = n.getUniformLocation(p, "u_f"), p.h = n.getUniformLocation(p, "u_h"), p.v = n.getUniformLocation(p, "u_v"), p.vo = n.getUniformLocation(p, "u_vo"), p.rot = n.getUniformLocation(p, "u_rot"), n.uniform1f(p.h, oe / (Math.PI * 2)), n.uniform1f(p.v, ee / Math.PI), n.uniform1f(p.vo, g / Math.PI * 2), y == "equirectangular" && (p.backgroundColor = n.getUniformLocation(p, "u_backgroundColor"), n.uniform4fv(p.backgroundColor, Re.concat([1]))), p.texture = n.createTexture(), n.bindTexture(De, p.texture), y == "cubemap" ? (n.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, h[1]), n.texImage2D(n.TEXTURE_CUBE_MAP_NEGATIVE_X, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, h[3]), n.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_Y, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, h[4]), n.texImage2D(n.TEXTURE_CUBE_MAP_NEGATIVE_Y, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, h[5]), n.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_Z, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, h[0]), n.texImage2D(n.TEXTURE_CUBE_MAP_NEGATIVE_Z, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, h[2])) : n.texImage2D(De, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, h), n.texParameteri(De, n.TEXTURE_WRAP_S, n.CLAMP_TO_EDGE), n.texParameteri(De, n.TEXTURE_WRAP_T, n.CLAMP_TO_EDGE), n.texParameteri(De, n.TEXTURE_MIN_FILTER, n.LINEAR), n.texParameteri(De, n.TEXTURE_MAG_FILTER, n.LINEAR)) : (p.vertPosLocation = n.getAttribLocation(p, "a_vertCoord"), n.enableVertexAttribArray(p.vertPosLocation), I || (I = n.createBuffer()), X || (X = n.createBuffer()), V || (V = n.createBuffer()), n.bindBuffer(n.ARRAY_BUFFER, X), n.bufferData(n.ARRAY_BUFFER, new Float32Array([0, 0, 1, 0, 1, 1, 0, 1]), n.STATIC_DRAW), n.bindBuffer(n.ELEMENT_ARRAY_BUFFER, V), n.bufferData(n.ELEMENT_ARRAY_BUFFER, new Uint16Array([0, 1, 2, 0, 2, 3]), n.STATIC_DRAW), p.perspUniform = n.getUniformLocation(p, "u_perspMatrix"), p.cubeUniform = n.getUniformLocation(p, "u_cubeMatrix"), p.level = -1, p.currentNodes = [], p.nodeCache = [], p.nodeCacheTimestamp = 0);
2120
2120
  var O = n.getError();
2121
2121
  if (O !== 0)
2122
2122
  throw console.log("Error: Something went wrong with WebGL!", O), { type: "webgl error" };
2123
2123
  ae();
2124
2124
  }, this.destroy = function() {
2125
2125
  if (N !== i && (L !== i && N.contains(L) && N.removeChild(L), w !== i && N.contains(w) && N.removeChild(w)), n) {
2126
- var u = n.getExtension("WEBGL_lose_context");
2127
- u && u.loseContext();
2126
+ var l = n.getExtension("WEBGL_lose_context");
2127
+ l && l.loseContext();
2128
2128
  }
2129
2129
  }, this.resize = function() {
2130
- var u = t.devicePixelRatio || 1;
2131
- L.width = L.clientWidth * u, L.height = L.clientHeight * u, n && (n.getError() == 1286 && we(), n.viewport(0, 0, n.drawingBufferWidth, n.drawingBufferHeight), y != "multires" && n.uniform1f(p.aspectRatio, L.clientWidth / L.clientHeight));
2132
- }, this.resize(), this.setPose = function(u, f) {
2133
- x = [u, f];
2134
- }, this.render = function(u, f, ee, oe) {
2135
- var Q, g, ae, re = 0;
2130
+ var l = t.devicePixelRatio || 1;
2131
+ L.width = L.clientWidth * l, L.height = L.clientHeight * l, n && (n.getError() == 1286 && we(), n.viewport(0, 0, n.drawingBufferWidth, n.drawingBufferHeight), y != "multires" && n.uniform1f(p.aspectRatio, L.clientWidth / L.clientHeight));
2132
+ }, this.resize(), this.setPose = function(l, f) {
2133
+ x = [l, f];
2134
+ }, this.render = function(l, f, Q, oe) {
2135
+ var ee, g, ae, re = 0;
2136
2136
  if (oe === i && (oe = {}), oe.roll && (re = oe.roll), x !== i) {
2137
- var xe = x[0], pe = x[1], Ge = u, He = f, ge = Math.cos(pe) * Math.sin(u) * Math.sin(xe) + Math.cos(u) * (Math.cos(xe) * Math.cos(f) + Math.sin(pe) * Math.sin(xe) * Math.sin(f)), ye = -Math.sin(u) * Math.sin(pe) + Math.cos(u) * Math.cos(pe) * Math.sin(f), Ce = Math.cos(pe) * Math.cos(xe) * Math.sin(u) + Math.cos(u) * (-Math.cos(f) * Math.sin(xe) + Math.cos(xe) * Math.sin(pe) * Math.sin(f));
2138
- u = Math.asin(Math.max(Math.min(Ce, 1), -1)), f = Math.atan2(ye, ge);
2139
- var Pe = [Math.cos(Ge) * (Math.sin(pe) * Math.sin(xe) * Math.cos(He) - Math.cos(xe) * Math.sin(He)), Math.cos(Ge) * Math.cos(pe) * Math.cos(He), Math.cos(Ge) * (Math.cos(xe) * Math.sin(pe) * Math.cos(He) + Math.sin(He) * Math.sin(xe))], Ne = [-Math.cos(u) * Math.sin(f), Math.cos(u) * Math.cos(f)], Be = Math.acos(Math.max(Math.min((Pe[0] * Ne[0] + Pe[1] * Ne[1]) / (Math.sqrt(Pe[0] * Pe[0] + Pe[1] * Pe[1] + Pe[2] * Pe[2]) * Math.sqrt(Ne[0] * Ne[0] + Ne[1] * Ne[1])), 1), -1));
2137
+ var xe = x[0], pe = x[1], Ge = l, He = f, ge = Math.cos(pe) * Math.sin(l) * Math.sin(xe) + Math.cos(l) * (Math.cos(xe) * Math.cos(f) + Math.sin(pe) * Math.sin(xe) * Math.sin(f)), ye = -Math.sin(l) * Math.sin(pe) + Math.cos(l) * Math.cos(pe) * Math.sin(f), Ce = Math.cos(pe) * Math.cos(xe) * Math.sin(l) + Math.cos(l) * (-Math.cos(f) * Math.sin(xe) + Math.cos(xe) * Math.sin(pe) * Math.sin(f));
2138
+ l = Math.asin(Math.max(Math.min(Ce, 1), -1)), f = Math.atan2(ye, ge);
2139
+ var Pe = [Math.cos(Ge) * (Math.sin(pe) * Math.sin(xe) * Math.cos(He) - Math.cos(xe) * Math.sin(He)), Math.cos(Ge) * Math.cos(pe) * Math.cos(He), Math.cos(Ge) * (Math.cos(xe) * Math.sin(pe) * Math.cos(He) + Math.sin(He) * Math.sin(xe))], Ne = [-Math.cos(l) * Math.sin(f), Math.cos(l) * Math.cos(f)], Be = Math.acos(Math.max(Math.min((Pe[0] * Ne[0] + Pe[1] * Ne[1]) / (Math.sqrt(Pe[0] * Pe[0] + Pe[1] * Pe[1] + Pe[2] * Pe[2]) * Math.sqrt(Ne[0] * Ne[0] + Ne[1] * Ne[1])), 1), -1));
2140
2140
  Pe[2] < 0 && (Be = 2 * Math.PI - Be), re += Be;
2141
2141
  }
2142
2142
  if (!n && (y == "multires" || y == "cubemap")) {
@@ -2149,8 +2149,8 @@ window.libpannellum = (function(t, o, i) {
2149
2149
  l: "translate3d(-" + ae + "px, -" + (ae + 2) + "px, " + (ae + 2) + "px) rotateX(180deg) rotateY(90deg) rotateZ(180deg)",
2150
2150
  r: "translate3d(" + ae + "px, -" + (ae + 2) + "px, -" + (ae + 2) + "px) rotateY(270deg)"
2151
2151
  };
2152
- Q = 1 / Math.tan(ee / 2);
2153
- var ke = Q * L.clientWidth / 2 + "px", Se = "perspective(" + ke + ") translateZ(" + ke + ") rotateX(" + u + "rad) rotateY(" + f + "rad) ", Xe = Object.keys(We);
2152
+ ee = 1 / Math.tan(Q / 2);
2153
+ var ke = ee * L.clientWidth / 2 + "px", Se = "perspective(" + ke + ") translateZ(" + ke + ") rotateX(" + l + "rad) rotateY(" + f + "rad) ", Xe = Object.keys(We);
2154
2154
  for (g = 0; g < 6; g++) {
2155
2155
  var De = w.querySelector(".pnlm-" + Xe[g] + "face");
2156
2156
  De && (De.style.webkitTransform = Se + We[Xe[g]], De.style.transform = Se + We[Xe[g]]);
@@ -2158,13 +2158,13 @@ window.libpannellum = (function(t, o, i) {
2158
2158
  return;
2159
2159
  }
2160
2160
  if (y != "multires") {
2161
- var Ze = 2 * Math.atan(Math.tan(ee * 0.5) / (n.drawingBufferWidth / n.drawingBufferHeight));
2162
- Q = 1 / Math.tan(Ze * 0.5), n.uniform1f(p.psi, f), n.uniform1f(p.theta, u), n.uniform1f(p.rot, re), n.uniform1f(p.f, Q), T === !0 && y == "equirectangular" && (n.bindTexture(n.TEXTURE_2D, p.texture), n.texImage2D(n.TEXTURE_2D, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, h)), n.drawArrays(n.TRIANGLES, 0, 6);
2161
+ var Ze = 2 * Math.atan(Math.tan(Q * 0.5) / (n.drawingBufferWidth / n.drawingBufferHeight));
2162
+ ee = 1 / Math.tan(Ze * 0.5), n.uniform1f(p.psi, f), n.uniform1f(p.theta, l), n.uniform1f(p.rot, re), n.uniform1f(p.f, ee), T === !0 && y == "equirectangular" && (n.bindTexture(n.TEXTURE_2D, p.texture), n.texImage2D(n.TEXTURE_2D, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, h)), n.drawArrays(n.TRIANGLES, 0, 6);
2163
2163
  } else {
2164
- var Ae = F(ee, n.drawingBufferWidth / n.drawingBufferHeight, 0.1, 100);
2165
- le(ee);
2164
+ var Ae = F(Q, n.drawingBufferWidth / n.drawingBufferHeight, 0.1, 100);
2165
+ le(Q);
2166
2166
  var Re = J();
2167
- Re = S(Re, -re, "z"), Re = S(Re, -u, "x"), Re = S(Re, f, "y"), Re = B(Re), n.uniformMatrix4fv(p.perspUniform, !1, new Float32Array(ie(Ae))), n.uniformMatrix4fv(p.cubeUniform, !1, new Float32Array(ie(Re)));
2167
+ Re = S(Re, -re, "z"), Re = S(Re, -l, "x"), Re = S(Re, f, "y"), Re = B(Re), n.uniformMatrix4fv(p.perspUniform, !1, new Float32Array(ie(Ae))), n.uniformMatrix4fv(p.cubeUniform, !1, new Float32Array(ie(Re)));
2168
2168
  var O = j(Ae, Re);
2169
2169
  if (p.nodeCache.sort(H), p.nodeCache.length > 200 && p.nodeCache.length > p.currentNodes.length + 50)
2170
2170
  for (var se = p.nodeCache.splice(200, p.nodeCache.length - 200), g = 0; g < se.length; g++)
@@ -2173,7 +2173,7 @@ window.libpannellum = (function(t, o, i) {
2173
2173
  var A = ["f", "b", "u", "d", "l", "r"];
2174
2174
  for (ae = 0; ae < 6; ae++) {
2175
2175
  var he = new ce(C[ae], A[ae], 1, 0, 0, h.fullpath);
2176
- U(O, he, u, f);
2176
+ U(O, he, l, f);
2177
2177
  }
2178
2178
  for (p.currentNodes.sort(R), g = K.length - 1; g >= 0; g--)
2179
2179
  p.currentNodes.indexOf(K[g].node) === -1 && (K[g].node.textureLoad = !1, K.splice(g, 1));
@@ -2191,35 +2191,35 @@ window.libpannellum = (function(t, o, i) {
2191
2191
  return L.toDataURL("image/png");
2192
2192
  }, this.isLoading = function() {
2193
2193
  if (n && y == "multires") {
2194
- for (var u = 0; u < p.currentNodes.length; u++)
2195
- if (!p.currentNodes[u].textureLoaded)
2194
+ for (var l = 0; l < p.currentNodes.length; l++)
2195
+ if (!p.currentNodes[l].textureLoaded)
2196
2196
  return !0;
2197
2197
  }
2198
2198
  return !1;
2199
2199
  }, this.getCanvas = function() {
2200
2200
  return L;
2201
2201
  };
2202
- function H(u, f) {
2203
- return u.level == 1 && f.level != 1 ? -1 : f.level == 1 && u.level != 1 ? 1 : f.timestamp - u.timestamp;
2202
+ function H(l, f) {
2203
+ return l.level == 1 && f.level != 1 ? -1 : f.level == 1 && l.level != 1 ? 1 : f.timestamp - l.timestamp;
2204
2204
  }
2205
- function R(u, f) {
2206
- return u.level != f.level ? u.level - f.level : u.diff - f.diff;
2205
+ function R(l, f) {
2206
+ return l.level != f.level ? l.level - f.level : l.diff - f.diff;
2207
2207
  }
2208
2208
  function q() {
2209
2209
  if (!p.drawInProgress) {
2210
2210
  p.drawInProgress = !0, n.clear(n.COLOR_BUFFER_BIT);
2211
- for (var u = 0; u < p.currentNodes.length; u++)
2212
- p.currentNodes[u].textureLoaded > 1 && (n.bindBuffer(n.ARRAY_BUFFER, I), n.bufferData(n.ARRAY_BUFFER, new Float32Array(p.currentNodes[u].vertices), n.STATIC_DRAW), n.vertexAttribPointer(p.vertPosLocation, 3, n.FLOAT, !1, 0, 0), n.bindBuffer(n.ARRAY_BUFFER, X), n.vertexAttribPointer(p.texCoordLocation, 2, n.FLOAT, !1, 0, 0), n.bindTexture(n.TEXTURE_2D, p.currentNodes[u].texture), n.drawElements(n.TRIANGLES, 6, n.UNSIGNED_SHORT, 0));
2211
+ for (var l = 0; l < p.currentNodes.length; l++)
2212
+ p.currentNodes[l].textureLoaded > 1 && (n.bindBuffer(n.ARRAY_BUFFER, I), n.bufferData(n.ARRAY_BUFFER, new Float32Array(p.currentNodes[l].vertices), n.STATIC_DRAW), n.vertexAttribPointer(p.vertPosLocation, 3, n.FLOAT, !1, 0, 0), n.bindBuffer(n.ARRAY_BUFFER, X), n.vertexAttribPointer(p.texCoordLocation, 2, n.FLOAT, !1, 0, 0), n.bindTexture(n.TEXTURE_2D, p.currentNodes[l].texture), n.drawElements(n.TRIANGLES, 6, n.UNSIGNED_SHORT, 0));
2213
2213
  p.drawInProgress = !1;
2214
2214
  }
2215
2215
  }
2216
- function ce(u, f, ee, oe, Q, g) {
2217
- this.vertices = u, this.side = f, this.level = ee, this.x = oe, this.y = Q, this.path = g.replace("%s", f).replace("%l", ee).replace("%x", oe).replace("%y", Q);
2216
+ function ce(l, f, Q, oe, ee, g) {
2217
+ this.vertices = l, this.side = f, this.level = Q, this.x = oe, this.y = ee, this.path = g.replace("%s", f).replace("%l", Q).replace("%x", oe).replace("%y", ee);
2218
2218
  }
2219
- function U(u, f, ee, oe, Q) {
2220
- if (Ve(u, f.vertices)) {
2219
+ function U(l, f, Q, oe, ee) {
2220
+ if (Ve(l, f.vertices)) {
2221
2221
  var g = f.vertices, ae = g[0] + g[3] + g[6] + g[9], re = g[1] + g[4] + g[7] + g[10], xe = g[2] + g[5] + g[8] + g[11], pe = Math.sqrt(ae * ae + re * re + xe * xe), Ge = Math.asin(xe / pe), He = Math.atan2(re, ae), ge = He - oe;
2222
- ge += ge > Math.PI ? -2 * Math.PI : ge < -Math.PI ? 2 * Math.PI : 0, ge = Math.abs(ge), f.diff = Math.acos(Math.sin(ee) * Math.sin(Ge) + Math.cos(ee) * Math.cos(Ge) * Math.cos(ge));
2222
+ ge += ge > Math.PI ? -2 * Math.PI : ge < -Math.PI ? 2 * Math.PI : 0, ge = Math.abs(ge), f.diff = Math.acos(Math.sin(Q) * Math.sin(Ge) + Math.cos(Q) * Math.cos(Ge) * Math.cos(ge));
2223
2223
  for (var ye = !1, Ce = 0; Ce < p.nodeCache.length; Ce++)
2224
2224
  if (p.nodeCache[Ce].path == f.path) {
2225
2225
  ye = !0, p.nodeCache[Ce].timestamp = p.nodeCacheTimestamp++, p.nodeCache[Ce].diff = f.diff, p.currentNodes.push(p.nodeCache[Ce]);
@@ -2233,7 +2233,7 @@ window.libpannellum = (function(t, o, i) {
2233
2233
  var Se = 1 - ke, Xe = [], De, Ze, Ae = ke, Re = ke, O = ke, se = Se, A = Se, he = Se;
2234
2234
  We < h.tileResolution && (f.x == Ne && f.y != Ne ? (Re = 0.5, A = 0.5, (f.side == "d" || f.side == "u") && (O = 0.5, he = 0.5)) : f.x != Ne && f.y == Ne && (Ae = 0.5, se = 0.5, (f.side == "l" || f.side == "r") && (O = 0.5, he = 0.5))), Be <= h.tileResolution && (f.x == Ne && (Ae = 0, se = 1, (f.side == "l" || f.side == "r") && (O = 0, he = 1)), f.y == Ne && (Re = 0, A = 1, (f.side == "d" || f.side == "u") && (O = 0, he = 1))), De = [g[0], g[1], g[2], g[0] * Ae + g[3] * se, g[1] * ke + g[4] * Se, g[2] * O + g[5] * he, g[0] * Ae + g[6] * se, g[1] * Re + g[7] * A, g[2] * O + g[8] * he, g[0] * ke + g[9] * Se, g[1] * Re + g[10] * A, g[2] * O + g[11] * he], Ze = new ce(De, f.side, f.level + 1, f.x * 2, f.y * 2, h.fullpath), Xe.push(Ze), f.x == Ne && Be <= h.tileResolution || (De = [g[0] * Ae + g[3] * se, g[1] * ke + g[4] * Se, g[2] * O + g[5] * he, g[3], g[4], g[5], g[3] * ke + g[6] * Se, g[4] * Re + g[7] * A, g[5] * O + g[8] * he, g[0] * Ae + g[6] * se, g[1] * Re + g[7] * A, g[2] * O + g[8] * he], Ze = new ce(De, f.side, f.level + 1, f.x * 2 + 1, f.y * 2, h.fullpath), Xe.push(Ze)), !(f.x == Ne && Be <= h.tileResolution) && !(f.y == Ne && Be <= h.tileResolution) && (De = [g[0] * Ae + g[6] * se, g[1] * Re + g[7] * A, g[2] * O + g[8] * he, g[3] * ke + g[6] * Se, g[4] * Re + g[7] * A, g[5] * O + g[8] * he, g[6], g[7], g[8], g[9] * Ae + g[6] * se, g[10] * ke + g[7] * Se, g[11] * O + g[8] * he], Ze = new ce(De, f.side, f.level + 1, f.x * 2 + 1, f.y * 2 + 1, h.fullpath), Xe.push(Ze)), f.y == Ne && Be <= h.tileResolution || (De = [g[0] * ke + g[9] * Se, g[1] * Re + g[10] * A, g[2] * O + g[11] * he, g[0] * Ae + g[6] * se, g[1] * Re + g[7] * A, g[2] * O + g[8] * he, g[9] * Ae + g[6] * se, g[10] * ke + g[7] * Se, g[11] * O + g[8] * he, g[9], g[10], g[11]], Ze = new ce(De, f.side, f.level + 1, f.x * 2, f.y * 2 + 1, h.fullpath), Xe.push(Ze));
2235
2235
  for (var _e = 0; _e < Xe.length; _e++)
2236
- U(u, Xe[_e], ee, oe);
2236
+ U(l, Xe[_e], Q, oe);
2237
2237
  }
2238
2238
  }
2239
2239
  }
@@ -2322,33 +2322,33 @@ window.libpannellum = (function(t, o, i) {
2322
2322
  function J() {
2323
2323
  return [1, 0, 0, 0, 1, 0, 0, 0, 1];
2324
2324
  }
2325
- function S(u, f, ee) {
2326
- var oe = Math.sin(f), Q = Math.cos(f);
2327
- if (ee == "x")
2328
- return [u[0], Q * u[1] + oe * u[2], Q * u[2] - oe * u[1], u[3], Q * u[4] + oe * u[5], Q * u[5] - oe * u[4], u[6], Q * u[7] + oe * u[8], Q * u[8] - oe * u[7]];
2329
- if (ee == "y")
2330
- return [Q * u[0] - oe * u[2], u[1], Q * u[2] + oe * u[0], Q * u[3] - oe * u[5], u[4], Q * u[5] + oe * u[3], Q * u[6] - oe * u[8], u[7], Q * u[8] + oe * u[6]];
2331
- if (ee == "z")
2332
- return [Q * u[0] + oe * u[1], Q * u[1] - oe * u[0], u[2], Q * u[3] + oe * u[4], Q * u[4] - oe * u[3], u[5], Q * u[6] + oe * u[7], Q * u[7] - oe * u[6], u[8]];
2325
+ function S(l, f, Q) {
2326
+ var oe = Math.sin(f), ee = Math.cos(f);
2327
+ if (Q == "x")
2328
+ return [l[0], ee * l[1] + oe * l[2], ee * l[2] - oe * l[1], l[3], ee * l[4] + oe * l[5], ee * l[5] - oe * l[4], l[6], ee * l[7] + oe * l[8], ee * l[8] - oe * l[7]];
2329
+ if (Q == "y")
2330
+ return [ee * l[0] - oe * l[2], l[1], ee * l[2] + oe * l[0], ee * l[3] - oe * l[5], l[4], ee * l[5] + oe * l[3], ee * l[6] - oe * l[8], l[7], ee * l[8] + oe * l[6]];
2331
+ if (Q == "z")
2332
+ return [ee * l[0] + oe * l[1], ee * l[1] - oe * l[0], l[2], ee * l[3] + oe * l[4], ee * l[4] - oe * l[3], l[5], ee * l[6] + oe * l[7], ee * l[7] - oe * l[6], l[8]];
2333
2333
  }
2334
- function B(u) {
2335
- return [u[0], u[1], u[2], 0, u[3], u[4], u[5], 0, u[6], u[7], u[8], 0, 0, 0, 0, 1];
2334
+ function B(l) {
2335
+ return [l[0], l[1], l[2], 0, l[3], l[4], l[5], 0, l[6], l[7], l[8], 0, 0, 0, 0, 1];
2336
2336
  }
2337
- function ie(u) {
2338
- return [u[0], u[4], u[8], u[12], u[1], u[5], u[9], u[13], u[2], u[6], u[10], u[14], u[3], u[7], u[11], u[15]];
2337
+ function ie(l) {
2338
+ return [l[0], l[4], l[8], l[12], l[1], l[5], l[9], l[13], l[2], l[6], l[10], l[14], l[3], l[7], l[11], l[15]];
2339
2339
  }
2340
- function F(u, f, ee, oe) {
2341
- var Q = 2 * Math.atan(Math.tan(u / 2) * n.drawingBufferHeight / n.drawingBufferWidth), g = 1 / Math.tan(Q / 2);
2342
- return [g / f, 0, 0, 0, 0, g, 0, 0, 0, 0, (oe + ee) / (ee - oe), 2 * oe * ee / (ee - oe), 0, 0, -1, 0];
2340
+ function F(l, f, Q, oe) {
2341
+ var ee = 2 * Math.atan(Math.tan(l / 2) * n.drawingBufferHeight / n.drawingBufferWidth), g = 1 / Math.tan(ee / 2);
2342
+ return [g / f, 0, 0, 0, 0, g, 0, 0, 0, 0, (oe + Q) / (Q - oe), 2 * oe * Q / (Q - oe), 0, 0, -1, 0];
2343
2343
  }
2344
- function te(u, f) {
2345
- n.bindTexture(n.TEXTURE_2D, f), n.texImage2D(n.TEXTURE_2D, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, u), n.texParameteri(n.TEXTURE_2D, n.TEXTURE_MAG_FILTER, n.LINEAR), n.texParameteri(n.TEXTURE_2D, n.TEXTURE_MIN_FILTER, n.LINEAR), n.texParameteri(n.TEXTURE_2D, n.TEXTURE_WRAP_S, n.CLAMP_TO_EDGE), n.texParameteri(n.TEXTURE_2D, n.TEXTURE_WRAP_T, n.CLAMP_TO_EDGE), n.bindTexture(n.TEXTURE_2D, null);
2344
+ function te(l, f) {
2345
+ n.bindTexture(n.TEXTURE_2D, f), n.texImage2D(n.TEXTURE_2D, 0, n.RGB, n.RGB, n.UNSIGNED_BYTE, l), n.texParameteri(n.TEXTURE_2D, n.TEXTURE_MAG_FILTER, n.LINEAR), n.texParameteri(n.TEXTURE_2D, n.TEXTURE_MIN_FILTER, n.LINEAR), n.texParameteri(n.TEXTURE_2D, n.TEXTURE_WRAP_S, n.CLAMP_TO_EDGE), n.texParameteri(n.TEXTURE_2D, n.TEXTURE_WRAP_T, n.CLAMP_TO_EDGE), n.bindTexture(n.TEXTURE_2D, null);
2346
2346
  }
2347
2347
  var K = [], ne = (function() {
2348
- var u = 4, f = {}, ee;
2348
+ var l = 4, f = {}, Q;
2349
2349
  function oe() {
2350
2350
  var re = this;
2351
- this.texture = this.callback = null, this.image = new Image(), this.image.crossOrigin = ee || "anonymous";
2351
+ this.texture = this.callback = null, this.image = new Image(), this.image.crossOrigin = Q || "anonymous";
2352
2352
  var xe = function() {
2353
2353
  re.image.width > 0 && re.image.height > 0 ? (te(re.image, re.texture), re.callback(re.texture, !0)) : re.callback(re.texture, !1), g(re);
2354
2354
  };
@@ -2357,7 +2357,7 @@ window.libpannellum = (function(t, o, i) {
2357
2357
  oe.prototype.loadTexture = function(re, xe, pe) {
2358
2358
  this.texture = xe, this.callback = pe, this.image.src = re;
2359
2359
  };
2360
- function Q(re, xe, pe, Ge) {
2360
+ function ee(re, xe, pe, Ge) {
2361
2361
  this.node = re, this.src = xe, this.texture = pe, this.callback = Ge;
2362
2362
  }
2363
2363
  function g(re) {
@@ -2365,51 +2365,51 @@ window.libpannellum = (function(t, o, i) {
2365
2365
  var xe = K.shift();
2366
2366
  re.loadTexture(xe.src, xe.texture, xe.callback);
2367
2367
  } else
2368
- f[u++] = re;
2368
+ f[l++] = re;
2369
2369
  }
2370
- for (var ae = 0; ae < u; ae++)
2370
+ for (var ae = 0; ae < l; ae++)
2371
2371
  f[ae] = new oe();
2372
2372
  return function(re, xe, pe, Ge) {
2373
- ee = Ge;
2373
+ Q = Ge;
2374
2374
  var He = n.createTexture();
2375
- return u ? f[--u].loadTexture(xe, He, pe) : K.push(new Q(re, xe, He, pe)), He;
2375
+ return l ? f[--l].loadTexture(xe, He, pe) : K.push(new ee(re, xe, He, pe)), He;
2376
2376
  };
2377
2377
  })();
2378
- function M(u) {
2379
- ne(u, encodeURI(u.path + "." + h.extension), function(f, ee) {
2380
- u.texture = f, u.textureLoaded = ee ? 2 : 1;
2378
+ function M(l) {
2379
+ ne(l, encodeURI(l.path + "." + h.extension), function(f, Q) {
2380
+ l.texture = f, l.textureLoaded = Q ? 2 : 1;
2381
2381
  }, z.crossOrigin);
2382
2382
  }
2383
- function le(u) {
2384
- for (var f = 1; f < h.maxLevel && n.drawingBufferWidth > h.tileResolution * Math.pow(2, f - 1) * Math.tan(u / 2) * 0.707; )
2383
+ function le(l) {
2384
+ for (var f = 1; f < h.maxLevel && n.drawingBufferWidth > h.tileResolution * Math.pow(2, f - 1) * Math.tan(l / 2) * 0.707; )
2385
2385
  f++;
2386
2386
  p.level = f;
2387
2387
  }
2388
- function j(u, f) {
2389
- return [u[0] * f[0], u[0] * f[1], u[0] * f[2], 0, u[5] * f[4], u[5] * f[5], u[5] * f[6], 0, u[10] * f[8], u[10] * f[9], u[10] * f[10], u[11], -f[8], -f[9], -f[10], 0];
2388
+ function j(l, f) {
2389
+ return [l[0] * f[0], l[0] * f[1], l[0] * f[2], 0, l[5] * f[4], l[5] * f[5], l[5] * f[6], 0, l[10] * f[8], l[10] * f[9], l[10] * f[10], l[11], -f[8], -f[9], -f[10], 0];
2390
2390
  }
2391
- function Te(u, f) {
2392
- return [u[0] * f[0] + u[1] * f[1] + u[2] * f[2], u[4] * f[0] + u[5] * f[1] + u[6] * f[2], u[11] + u[8] * f[0] + u[9] * f[1] + u[10] * f[2], 1 / (u[12] * f[0] + u[13] * f[1] + u[14] * f[2])];
2391
+ function Te(l, f) {
2392
+ return [l[0] * f[0] + l[1] * f[1] + l[2] * f[2], l[4] * f[0] + l[5] * f[1] + l[6] * f[2], l[11] + l[8] * f[0] + l[9] * f[1] + l[10] * f[2], 1 / (l[12] * f[0] + l[13] * f[1] + l[14] * f[2])];
2393
2393
  }
2394
- function Ye(u, f) {
2395
- var ee = Te(u, f), oe = ee[0] * ee[3], Q = ee[1] * ee[3], g = ee[2] * ee[3], ae = [0, 0, 0];
2396
- return oe < -1 && (ae[0] = -1), oe > 1 && (ae[0] = 1), Q < -1 && (ae[1] = -1), Q > 1 && (ae[1] = 1), (g < -1 || g > 1) && (ae[2] = 1), ae;
2394
+ function Ye(l, f) {
2395
+ var Q = Te(l, f), oe = Q[0] * Q[3], ee = Q[1] * Q[3], g = Q[2] * Q[3], ae = [0, 0, 0];
2396
+ return oe < -1 && (ae[0] = -1), oe > 1 && (ae[0] = 1), ee < -1 && (ae[1] = -1), ee > 1 && (ae[1] = 1), (g < -1 || g > 1) && (ae[2] = 1), ae;
2397
2397
  }
2398
- function Ve(u, f) {
2399
- var ee = Ye(u, f.slice(0, 3)), oe = Ye(u, f.slice(3, 6)), Q = Ye(u, f.slice(6, 9)), g = Ye(u, f.slice(9, 12)), ae = ee[0] + oe[0] + Q[0] + g[0];
2398
+ function Ve(l, f) {
2399
+ var Q = Ye(l, f.slice(0, 3)), oe = Ye(l, f.slice(3, 6)), ee = Ye(l, f.slice(6, 9)), g = Ye(l, f.slice(9, 12)), ae = Q[0] + oe[0] + ee[0] + g[0];
2400
2400
  if (ae == -4 || ae == 4)
2401
2401
  return !1;
2402
- var re = ee[1] + oe[1] + Q[1] + g[1];
2402
+ var re = Q[1] + oe[1] + ee[1] + g[1];
2403
2403
  if (re == -4 || re == 4)
2404
2404
  return !1;
2405
- var xe = ee[2] + oe[2] + Q[2] + g[2];
2405
+ var xe = Q[2] + oe[2] + ee[2] + g[2];
2406
2406
  return xe != 4;
2407
2407
  }
2408
2408
  function we() {
2409
2409
  console.log("Reducing canvas size due to error 1286!"), L.width = Math.round(L.width / 2), L.height = Math.round(L.height / 2);
2410
2410
  }
2411
2411
  }
2412
- var l = [
2412
+ var c = [
2413
2413
  "attribute vec2 a_texCoord;",
2414
2414
  "varying vec2 v_texCoord;",
2415
2415
  "void main() {",
@@ -2418,7 +2418,7 @@ window.libpannellum = (function(t, o, i) {
2418
2418
  // Pass the coordinates to the fragment shader
2419
2419
  "v_texCoord = a_texCoord;",
2420
2420
  "}"
2421
- ].join(""), c = [
2421
+ ].join(""), u = [
2422
2422
  "attribute vec3 a_vertCoord;",
2423
2423
  "attribute vec2 a_texCoord;",
2424
2424
  "uniform mat4 u_cubeMatrix;",
@@ -2499,7 +2499,7 @@ window.libpannellum = (function(t, o, i) {
2499
2499
  };
2500
2500
  })(window, document);
2501
2501
  window.pannellum = /* @__PURE__ */ (function(t, o, i) {
2502
- function d(l, c) {
2502
+ function d(c, u) {
2503
2503
  var v = this, e, E, k, N = !1, L = Date.now(), p = 0, n = 0, b = -1, P = 0, _ = 0, w = new Array(10), C = !1, x, h = !1, y = !1, T, $, I = { yaw: 0, pitch: 0, hfov: 0 }, X = !1, V = !1, z = 0, H, R = 0, q, ce, U = {}, D = {}, J = [], S = !1, B = !1, ie = {
2504
2504
  hfov: 100,
2505
2505
  minHfov: 50,
@@ -2554,11 +2554,11 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
2554
2554
  textureSizeError: "This panorama is too big for your device! It's %spx wide, but your device only supports images up to %spx wide. Try another device. (If you're the author, try scaling down the image.)",
2555
2555
  // Two substitutions: image width, max image width
2556
2556
  unknownError: "Unknown error. Check developer console."
2557
- }, l = typeof l == "string" ? o.getElementById(l) : l, l.classList.add("pnlm-container"), l.tabIndex = 0;
2557
+ }, c = typeof c == "string" ? o.getElementById(c) : c, c.classList.add("pnlm-container"), c.tabIndex = 0;
2558
2558
  var F = o.createElement("div");
2559
- F.className = "pnlm-ui", l.appendChild(F);
2559
+ F.className = "pnlm-ui", c.appendChild(F);
2560
2560
  var te = o.createElement("div");
2561
- te.className = "pnlm-render-container", l.appendChild(te);
2561
+ te.className = "pnlm-render-container", c.appendChild(te);
2562
2562
  var K = o.createElement("div");
2563
2563
  K.className = "pnlm-dragfix", F.appendChild(K);
2564
2564
  var ne = o.createElement("span");
@@ -2583,11 +2583,11 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
2583
2583
  }
2584
2584
  t.DeviceOrientationEvent ? t.addEventListener("deviceorientation", Ve) : Te = !1;
2585
2585
  var we = o.createElement("div");
2586
- we.className = "pnlm-compass pnlm-controls pnlm-control", F.appendChild(we), c.firstScene ? wt(c.firstScene) : c.default && c.default.firstScene ? wt(c.default.firstScene) : wt(null), It(!0);
2587
- function u() {
2586
+ we.className = "pnlm-compass pnlm-controls pnlm-control", F.appendChild(we), u.firstScene ? wt(u.firstScene) : u.default && u.default.firstScene ? wt(u.default.firstScene) : wt(null), It(!0);
2587
+ function l() {
2588
2588
  var r = o.createElement("div");
2589
2589
  if (r.innerHTML = "<!--[if lte IE 9]><i></i><![endif]-->", r.getElementsByTagName("i").length == 1) {
2590
- Q();
2590
+ ee();
2591
2591
  return;
2592
2592
  }
2593
2593
  q = e.hfov, ce = e.pitch;
@@ -2603,31 +2603,31 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
2603
2603
  T = e.panorama;
2604
2604
  else {
2605
2605
  if (e.panorama === i) {
2606
- Q(e.strings.noPanoramaError);
2606
+ ee(e.strings.noPanoramaError);
2607
2607
  return;
2608
2608
  }
2609
2609
  T = new Image();
2610
2610
  }
2611
2611
  if (e.type == "cubemap") {
2612
2612
  var Y = 6, Z = function() {
2613
- Y--, Y === 0 && ee();
2613
+ Y--, Y === 0 && Q();
2614
2614
  }, be = function(Oe) {
2615
2615
  var ze = o.createElement("a");
2616
- ze.href = Oe.target.src, ze.textContent = ze.href, Q(e.strings.fileAccessError.replace("%s", ze.outerHTML));
2616
+ ze.href = Oe.target.src, ze.textContent = ze.href, ee(e.strings.fileAccessError.replace("%s", ze.outerHTML));
2617
2617
  };
2618
2618
  for (s = 0; s < T.length; s++)
2619
2619
  m = e.cubeMap[s], m == "null" ? (console.log("Will use background instead of missing cubemap face " + s), Z()) : (e.basePath && !f(m) && (m = e.basePath + m), T[s].onload = Z, T[s].onerror = be, T[s].src = ut(m));
2620
2620
  } else if (e.type == "multires")
2621
- ee();
2621
+ Q();
2622
2622
  else if (m = "", e.basePath && (m = e.basePath), e.dynamic !== !0) {
2623
2623
  m = f(e.panorama) ? e.panorama : m + e.panorama, T.onload = function() {
2624
- t.URL.revokeObjectURL(this.src), ee();
2624
+ t.URL.revokeObjectURL(this.src), Q();
2625
2625
  };
2626
2626
  var fe = new XMLHttpRequest();
2627
2627
  fe.onloadend = function() {
2628
2628
  if (fe.status != 200) {
2629
2629
  var Me = o.createElement("a");
2630
- Me.href = m, Me.textContent = Me.href, Q(e.strings.fileAccessError.replace("%s", Me.outerHTML));
2630
+ Me.href = m, Me.textContent = Me.href, ee(e.strings.fileAccessError.replace("%s", Me.outerHTML));
2631
2631
  }
2632
2632
  var Oe = this.response;
2633
2633
  oe(Oe), M.load.msg.innerHTML = "";
@@ -2643,7 +2643,7 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
2643
2643
  try {
2644
2644
  fe.open("GET", m, !0);
2645
2645
  } catch {
2646
- Q(e.strings.malformedURLError);
2646
+ ee(e.strings.malformedURLError);
2647
2647
  }
2648
2648
  fe.responseType = "blob", fe.setRequestHeader("Accept", "image/*,*/*;q=0.9"), fe.withCredentials = e.crossOrigin === "use-credentials", fe.send();
2649
2649
  }
@@ -2652,8 +2652,8 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
2652
2652
  function f(r) {
2653
2653
  return new RegExp("^(?:[a-z]+:)?//", "i").test(r) || r[0] == "/" || r.slice(0, 5) == "blob:";
2654
2654
  }
2655
- function ee() {
2656
- E || (E = new libpannellum.renderer(te)), y || (y = !0, K.addEventListener("mousedown", xe, !1), o.addEventListener("mousemove", He, !1), o.addEventListener("mouseup", ge, !1), e.mouseZoom && (F.addEventListener("mousewheel", Xe, !1), F.addEventListener("DOMMouseScroll", Xe, !1)), e.doubleClickZoom && K.addEventListener("dblclick", pe, !1), F.addEventListener("mozfullscreenchange", ot, !1), F.addEventListener("webkitfullscreenchange", ot, !1), F.addEventListener("msfullscreenchange", ot, !1), F.addEventListener("fullscreenchange", ot, !1), t.addEventListener("resize", he, !1), t.addEventListener("orientationchange", he, !1), e.disableKeyboardCtrl || (l.addEventListener("keydown", De, !1), l.addEventListener("keyup", Ae, !1), l.addEventListener("blur", Ze, !1)), o.addEventListener("mouseleave", ge, !1), o.documentElement.style.pointerAction === "" && o.documentElement.style.touchAction === "" ? (K.addEventListener("pointerdown", We, !1), K.addEventListener("pointermove", ke, !1), K.addEventListener("pointerup", Se, !1), K.addEventListener("pointerleave", Se, !1)) : (K.addEventListener("touchstart", ye, !1), K.addEventListener("touchmove", Ce, !1), K.addEventListener("touchend", Pe, !1)), t.navigator.pointerEnabled && (l.style.touchAction = "none")), zr(), et(e.hfov), setTimeout(function() {
2655
+ function Q() {
2656
+ E || (E = new libpannellum.renderer(te)), y || (y = !0, K.addEventListener("mousedown", xe, !1), o.addEventListener("mousemove", He, !1), o.addEventListener("mouseup", ge, !1), e.mouseZoom && (F.addEventListener("mousewheel", Xe, !1), F.addEventListener("DOMMouseScroll", Xe, !1)), e.doubleClickZoom && K.addEventListener("dblclick", pe, !1), F.addEventListener("mozfullscreenchange", ot, !1), F.addEventListener("webkitfullscreenchange", ot, !1), F.addEventListener("msfullscreenchange", ot, !1), F.addEventListener("fullscreenchange", ot, !1), t.addEventListener("resize", he, !1), t.addEventListener("orientationchange", he, !1), e.disableKeyboardCtrl || (c.addEventListener("keydown", De, !1), c.addEventListener("keyup", Ae, !1), c.addEventListener("blur", Ze, !1)), o.addEventListener("mouseleave", ge, !1), o.documentElement.style.pointerAction === "" && o.documentElement.style.touchAction === "" ? (K.addEventListener("pointerdown", We, !1), K.addEventListener("pointermove", ke, !1), K.addEventListener("pointerup", Se, !1), K.addEventListener("pointerleave", Se, !1)) : (K.addEventListener("touchstart", ye, !1), K.addEventListener("touchmove", Ce, !1), K.addEventListener("touchend", Pe, !1)), t.navigator.pointerEnabled && (c.style.touchAction = "none")), zr(), et(e.hfov), setTimeout(function() {
2657
2657
  }, 500);
2658
2658
  }
2659
2659
  function oe(r) {
@@ -2662,7 +2662,7 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
2662
2662
  var m = s.result;
2663
2663
  if (navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 8_/)) {
2664
2664
  var W = m.indexOf("ÿÂ");
2665
- (W < 0 || W > 65536) && Q(e.strings.iOS8WebGLError);
2665
+ (W < 0 || W > 65536) && ee(e.strings.iOS8WebGLError);
2666
2666
  }
2667
2667
  var Y = m.indexOf("<x:xmpmeta");
2668
2668
  if (Y > -1 && e.ignoreGPanoXMP !== !0) {
@@ -2684,7 +2684,7 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
2684
2684
  T.src = t.URL.createObjectURL(r);
2685
2685
  }), s.readAsBinaryString !== i ? s.readAsBinaryString(r) : s.readAsText(r);
2686
2686
  }
2687
- function Q(r) {
2687
+ function ee(r) {
2688
2688
  r === i && (r = e.strings.genericWebGLError), M.errorMsg.innerHTML = "<p>" + r + "</p>", j.load.style.display = "none", M.load.box.style.display = "none", M.errorMsg.style.display = "table", h = !0, te.style.display = "none", at("error", r);
2689
2689
  }
2690
2690
  function g() {
@@ -2699,11 +2699,11 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
2699
2699
  }, 2500), r.preventDefault();
2700
2700
  }
2701
2701
  function re(r) {
2702
- var s = l.getBoundingClientRect(), m = {};
2702
+ var s = c.getBoundingClientRect(), m = {};
2703
2703
  return m.x = r.clientX - s.left, m.y = r.clientY - s.top, m;
2704
2704
  }
2705
2705
  function xe(r) {
2706
- if (r.preventDefault(), l.focus(), !(!x || !e.draggable)) {
2706
+ if (r.preventDefault(), c.focus(), !(!x || !e.draggable)) {
2707
2707
  var s = re(r);
2708
2708
  if (e.hotSpotDebug) {
2709
2709
  var m = Ge(r);
@@ -2953,11 +2953,11 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
2953
2953
  e.horizonPitch !== i && (r.horizonPitch = e.horizonPitch * Math.PI / 180), e.horizonRoll !== i && (r.horizonRoll = e.horizonRoll * Math.PI / 180), e.backgroundColor !== i && (r.backgroundColor = e.backgroundColor), E.init(T, e.type, e.dynamic, e.haov * Math.PI / 180, e.vaov * Math.PI / 180, e.vOffset * Math.PI / 180, Ar, r), e.dynamic !== !0 && (T = i);
2954
2954
  } catch (s) {
2955
2955
  if (s.type == "webgl error" || s.type == "no webgl")
2956
- Q();
2956
+ ee();
2957
2957
  else if (s.type == "webgl size error")
2958
- Q(e.strings.textureSizeError.replace("%s", s.width).replace("%s", s.maxWidth));
2958
+ ee(e.strings.textureSizeError.replace("%s", s.width).replace("%s", s.maxWidth));
2959
2959
  else
2960
- throw Q(e.strings.unknownError), s;
2960
+ throw ee(e.strings.unknownError), s;
2961
2961
  }
2962
2962
  }
2963
2963
  function Ar() {
@@ -3028,15 +3028,15 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
3028
3028
  J = [];
3029
3029
  for (s in ie)
3030
3030
  ie.hasOwnProperty(s) && (e[s] = ie[s]);
3031
- for (s in c.default)
3032
- if (c.default.hasOwnProperty(s))
3031
+ for (s in u.default)
3032
+ if (u.default.hasOwnProperty(s))
3033
3033
  if (s == "strings")
3034
- for (m in c.default.strings)
3035
- c.default.strings.hasOwnProperty(m) && (e.strings[m] = ct(c.default.strings[m]));
3034
+ for (m in u.default.strings)
3035
+ u.default.strings.hasOwnProperty(m) && (e.strings[m] = ct(u.default.strings[m]));
3036
3036
  else
3037
- e[s] = c.default[s], W.indexOf(s) >= 0 && J.push(s);
3038
- if (r !== null && r !== "" && c.scenes && c.scenes[r]) {
3039
- var Y = c.scenes[r];
3037
+ e[s] = u.default[s], W.indexOf(s) >= 0 && J.push(s);
3038
+ if (r !== null && r !== "" && u.scenes && u.scenes[r]) {
3039
+ var Y = u.scenes[r];
3040
3040
  for (s in Y)
3041
3041
  if (Y.hasOwnProperty(s))
3042
3042
  if (s == "strings")
@@ -3046,13 +3046,13 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
3046
3046
  e[s] = Y[s], W.indexOf(s) >= 0 && J.push(s);
3047
3047
  e.scene = r;
3048
3048
  }
3049
- for (s in c)
3050
- if (c.hasOwnProperty(s))
3049
+ for (s in u)
3050
+ if (u.hasOwnProperty(s))
3051
3051
  if (s == "strings")
3052
- for (m in c.strings)
3053
- c.strings.hasOwnProperty(m) && (e.strings[m] = ct(c.strings[m]));
3052
+ for (m in u.strings)
3053
+ u.strings.hasOwnProperty(m) && (e.strings[m] = ct(u.strings[m]));
3054
3054
  else
3055
- e[s] = c[s], W.indexOf(s) >= 0 && J.push(s);
3055
+ e[s] = u[s], W.indexOf(s) >= 0 && J.push(s);
3056
3056
  }
3057
3057
  function It(r) {
3058
3058
  if (r = r || !1, r && "preview" in e) {
@@ -3080,7 +3080,7 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
3080
3080
  et(Number(e[Y]));
3081
3081
  break;
3082
3082
  case "autoLoad":
3083
- e[Y] === !0 && E === i && (M.load.box.style.display = "inline", j.load.style.display = "none", u());
3083
+ e[Y] === !0 && E === i && (M.load.box.style.display = "inline", j.load.style.display = "none", l());
3084
3084
  break;
3085
3085
  case "showZoomCtrl":
3086
3086
  e[Y] && e.showControls != !1 ? j.zoom.style.display = "block" : j.zoom.style.display = "none";
@@ -3106,7 +3106,7 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
3106
3106
  o.exitFullscreen ? o.exitFullscreen() : o.mozCancelFullScreen ? o.mozCancelFullScreen() : o.webkitCancelFullScreen ? o.webkitCancelFullScreen() : o.msExitFullscreen && o.msExitFullscreen();
3107
3107
  else
3108
3108
  try {
3109
- l.requestFullscreen ? l.requestFullscreen() : l.mozRequestFullScreen ? l.mozRequestFullScreen() : l.msRequestFullscreen ? l.msRequestFullscreen() : l.webkitRequestFullScreen();
3109
+ c.requestFullscreen ? c.requestFullscreen() : c.mozRequestFullScreen ? c.mozRequestFullScreen() : c.msRequestFullscreen ? c.msRequestFullscreen() : c.webkitRequestFullScreen();
3110
3110
  } catch {
3111
3111
  }
3112
3112
  }
@@ -3138,7 +3138,7 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
3138
3138
  U = {}, R = e.autoRotate ? e.autoRotate : R, e.autoRotate = !1;
3139
3139
  }
3140
3140
  function Yt() {
3141
- g(), x = !1, j.load.style.display = "none", M.load.box.style.display = "inline", u();
3141
+ g(), x = !1, j.load.style.display = "none", M.load.box.style.display = "inline", l();
3142
3142
  }
3143
3143
  function _t(r, s, m, W, Y) {
3144
3144
  x = !1, U = {};
@@ -3152,7 +3152,7 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
3152
3152
  return;
3153
3153
  }
3154
3154
  }
3155
- s === "same" ? be = e.pitch : be = s, m === "same" ? fe = e.yaw : m === "sameAzimuth" ? fe = e.yaw + (e.northOffset || 0) - (c.scenes[r].northOffset || 0) : fe = m, W === "same" ? Me = e.hfov : Me = W, Fr(), wt(r), I.yaw = I.pitch = I.hfov = 0, It(), be !== i && (e.pitch = be), fe !== i && (e.yaw = fe), Me !== i && (e.hfov = Me), at("scenechange", r), Yt();
3155
+ s === "same" ? be = e.pitch : be = s, m === "same" ? fe = e.yaw : m === "sameAzimuth" ? fe = e.yaw + (e.northOffset || 0) - (u.scenes[r].northOffset || 0) : fe = m, W === "same" ? Me = e.hfov : Me = W, Fr(), wt(r), I.yaw = I.pitch = I.hfov = 0, It(), be !== i && (e.pitch = be), fe !== i && (e.yaw = fe), Me !== i && (e.hfov = Me), at("scenechange", r), Yt();
3156
3156
  }
3157
3157
  function ht() {
3158
3158
  t.removeEventListener("deviceorientation", Bt), j.orientation.classList.remove("pnlm-orientation-button-active"), V = !1;
@@ -3161,7 +3161,7 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
3161
3161
  V = 1, t.addEventListener("deviceorientation", Bt), j.orientation.classList.add("pnlm-orientation-button-active");
3162
3162
  }
3163
3163
  function ct(r) {
3164
- return c.escapeHTML ? String(r).split(/&/g).join("&amp;").split('"').join("&quot;").split("'").join("&#39;").split("<").join("&lt;").split(">").join("&gt;").split("/").join("&#x2f;").split(`
3164
+ return u.escapeHTML ? String(r).split(/&/g).join("&amp;").split('"').join("&quot;").split("'").join("&#39;").split("<").join("&lt;").split(">").join("&gt;").split("/").join("&#x2f;").split(`
3165
3165
  `).join("<br>") : String(r).split(`
3166
3166
  `).join("<br>");
3167
3167
  }
@@ -3239,7 +3239,7 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
3239
3239
  }, this.getRenderer = function() {
3240
3240
  return E;
3241
3241
  }, this.setUpdate = function(r) {
3242
- return S = r === !0, E === i ? ee() : _e(), this;
3242
+ return S = r === !0, E === i ? Q() : _e(), this;
3243
3243
  }, this.mouseEventToCoords = function(r) {
3244
3244
  return Ge(r);
3245
3245
  }, this.loadScene = function(r, s, m, W) {
@@ -3247,22 +3247,22 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
3247
3247
  }, this.getScene = function() {
3248
3248
  return e.scene;
3249
3249
  }, this.addScene = function(r, s) {
3250
- return c.scenes[r] = s, this;
3250
+ return u.scenes[r] = s, this;
3251
3251
  }, this.removeScene = function(r) {
3252
- return e.scene === r || !c.scenes.hasOwnProperty(r) ? !1 : (delete c.scenes[r], !0);
3252
+ return e.scene === r || !u.scenes.hasOwnProperty(r) ? !1 : (delete u.scenes[r], !0);
3253
3253
  }, this.toggleFullscreen = function() {
3254
3254
  return kt(), this;
3255
3255
  }, this.getConfig = function() {
3256
3256
  return e;
3257
3257
  }, this.getContainer = function() {
3258
- return l;
3258
+ return c;
3259
3259
  }, this.addHotSpot = function(r, s) {
3260
3260
  if (s === i && e.scene === i)
3261
3261
  e.hotSpots.push(r);
3262
3262
  else {
3263
3263
  var m = s !== i ? s : e.scene;
3264
- if (c.scenes.hasOwnProperty(m))
3265
- c.scenes[m].hasOwnProperty("hotSpots") || (c.scenes[m].hotSpots = [], m == e.scene && (e.hotSpots = c.scenes[m].hotSpots)), c.scenes[m].hotSpots.push(r);
3264
+ if (u.scenes.hasOwnProperty(m))
3265
+ u.scenes[m].hasOwnProperty("hotSpots") || (u.scenes[m].hotSpots = [], m == e.scene && (e.hotSpots = u.scenes[m].hotSpots)), u.scenes[m].hotSpots.push(r);
3266
3266
  else
3267
3267
  throw "Invalid scene ID!";
3268
3268
  }
@@ -3277,12 +3277,12 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
3277
3277
  W = W.parentNode;
3278
3278
  return te.removeChild(W), delete e.hotSpots[m].div, e.hotSpots.splice(m, 1), !0;
3279
3279
  }
3280
- } else if (c.scenes.hasOwnProperty(s)) {
3281
- if (!c.scenes[s].hasOwnProperty("hotSpots"))
3280
+ } else if (u.scenes.hasOwnProperty(s)) {
3281
+ if (!u.scenes[s].hasOwnProperty("hotSpots"))
3282
3282
  return !1;
3283
- for (var m = 0; m < c.scenes[s].hotSpots.length; m++)
3284
- if (c.scenes[s].hotSpots[m].hasOwnProperty("id") && c.scenes[s].hotSpots[m].id === r)
3285
- return c.scenes[s].hotSpots.splice(m, 1), !0;
3283
+ for (var m = 0; m < u.scenes[s].hotSpots.length; m++)
3284
+ if (u.scenes[s].hotSpots[m].hasOwnProperty("id") && u.scenes[s].hotSpots[m].id === r)
3285
+ return u.scenes[s].hotSpots.splice(m, 1), !0;
3286
3286
  } else
3287
3287
  return !1;
3288
3288
  }, this.resize = function() {
@@ -3315,12 +3315,12 @@ window.pannellum = /* @__PURE__ */ (function(t, o, i) {
3315
3315
  D[r][D[r].length - s].apply(null, [].slice.call(arguments, 1));
3316
3316
  }
3317
3317
  this.destroy = function() {
3318
- E && E.destroy(), y && (K.removeEventListener("mousedown", xe, !1), K.removeEventListener("dblclick", pe, !1), o.removeEventListener("mousemove", He, !1), o.removeEventListener("mouseup", ge, !1), l.removeEventListener("mousewheel", Xe, !1), l.removeEventListener("DOMMouseScroll", Xe, !1), l.removeEventListener("mozfullscreenchange", ot, !1), l.removeEventListener("webkitfullscreenchange", ot, !1), l.removeEventListener("msfullscreenchange", ot, !1), l.removeEventListener("fullscreenchange", ot, !1), t.removeEventListener("resize", he, !1), t.removeEventListener("orientationchange", he, !1), l.removeEventListener("keydown", De, !1), l.removeEventListener("keyup", Ae, !1), l.removeEventListener("blur", Ze, !1), o.removeEventListener("mouseleave", ge, !1), K.removeEventListener("touchstart", ye, !1), K.removeEventListener("touchmove", Ce, !1), K.removeEventListener("touchend", Pe, !1), K.removeEventListener("pointerdown", We, !1), K.removeEventListener("pointermove", ke, !1), K.removeEventListener("pointerup", Se, !1), K.removeEventListener("pointerleave", Se, !1)), l.innerHTML = "", l.classList.remove("pnlm-container"), F.classList.remove("pnlm-grab"), F.classList.remove("pnlm-grabbing");
3318
+ E && E.destroy(), y && (K.removeEventListener("mousedown", xe, !1), K.removeEventListener("dblclick", pe, !1), o.removeEventListener("mousemove", He, !1), o.removeEventListener("mouseup", ge, !1), c.removeEventListener("mousewheel", Xe, !1), c.removeEventListener("DOMMouseScroll", Xe, !1), c.removeEventListener("mozfullscreenchange", ot, !1), c.removeEventListener("webkitfullscreenchange", ot, !1), c.removeEventListener("msfullscreenchange", ot, !1), c.removeEventListener("fullscreenchange", ot, !1), t.removeEventListener("resize", he, !1), t.removeEventListener("orientationchange", he, !1), c.removeEventListener("keydown", De, !1), c.removeEventListener("keyup", Ae, !1), c.removeEventListener("blur", Ze, !1), o.removeEventListener("mouseleave", ge, !1), K.removeEventListener("touchstart", ye, !1), K.removeEventListener("touchmove", Ce, !1), K.removeEventListener("touchend", Pe, !1), K.removeEventListener("pointerdown", We, !1), K.removeEventListener("pointermove", ke, !1), K.removeEventListener("pointerup", Se, !1), K.removeEventListener("pointerleave", Se, !1)), c.innerHTML = "", c.classList.remove("pnlm-container"), F.classList.remove("pnlm-grab"), F.classList.remove("pnlm-grabbing");
3319
3319
  };
3320
3320
  }
3321
3321
  return {
3322
- viewer: function(c, v) {
3323
- return new d(c, v);
3322
+ viewer: function(u, v) {
3323
+ return new d(u, v);
3324
3324
  }
3325
3325
  };
3326
3326
  })(window, document);
@@ -3330,16 +3330,16 @@ window.requestAnimationFrame || (window.requestAnimationFrame = (function() {
3330
3330
  };
3331
3331
  })());
3332
3332
  function eo(t, o, i) {
3333
- const d = Le(null), l = Le(i);
3334
- return l.current = i, ve(() => {
3335
- const c = t.current;
3336
- if (!c) return;
3333
+ const d = Le(null), c = Le(i);
3334
+ return c.current = i, ve(() => {
3335
+ const u = t.current;
3336
+ if (!u) return;
3337
3337
  const v = window.pannellum;
3338
3338
  if (!v) {
3339
- console.error("[InteriorThreeSixty] pannellum global not available"), l.current.onError?.();
3339
+ console.error("[InteriorThreeSixty] pannellum global not available"), c.current.onError?.();
3340
3340
  return;
3341
3341
  }
3342
- const e = v.viewer(c, {
3342
+ const e = v.viewer(u, {
3343
3343
  type: "equirectangular",
3344
3344
  panorama: o.image,
3345
3345
  preview: o.preview,
@@ -3353,29 +3353,29 @@ function eo(t, o, i) {
3353
3353
  keyboardZoom: !1,
3354
3354
  autoLoad: o.autoLoad
3355
3355
  });
3356
- return d.current = e, e.on("load", () => l.current.onLoad?.()), e.on("error", () => l.current.onError?.()), e.on(
3356
+ return d.current = e, e.on("load", () => c.current.onLoad?.()), e.on("error", () => c.current.onError?.()), e.on(
3357
3357
  "mousedown",
3358
- (...E) => l.current.onMousedown?.(E[0])
3358
+ (...E) => c.current.onMousedown?.(E[0])
3359
3359
  ), e.on(
3360
3360
  "mouseup",
3361
- (...E) => l.current.onMouseup?.(E[0])
3361
+ (...E) => c.current.onMouseup?.(E[0])
3362
3362
  ), e.on(
3363
3363
  "touchstart",
3364
- (...E) => l.current.onTouchstart?.(E[0])
3364
+ (...E) => c.current.onTouchstart?.(E[0])
3365
3365
  ), e.on(
3366
3366
  "touchend",
3367
- (...E) => l.current.onTouchend?.(E[0])
3367
+ (...E) => c.current.onTouchend?.(E[0])
3368
3368
  ), () => {
3369
3369
  d.current = null, e.destroy();
3370
3370
  };
3371
3371
  }, [o.image, o.preview, o.autoLoad]), d;
3372
3372
  }
3373
3373
  function to(t, o = 50, i = 200) {
3374
- let d = null, l = 0;
3375
- return (...c) => {
3374
+ let d = null, c = 0;
3375
+ return (...u) => {
3376
3376
  const v = Date.now();
3377
- d && (clearTimeout(d), d = null), v - l >= o && (t(...c), l = v), d = setTimeout(() => {
3378
- t(...c);
3377
+ d && (clearTimeout(d), d = null), v - c >= o && (t(...u), c = v), d = setTimeout(() => {
3378
+ t(...u);
3379
3379
  }, i);
3380
3380
  };
3381
3381
  }
@@ -3403,8 +3403,8 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3403
3403
  isPannellumLoaded: o,
3404
3404
  isLoading: i,
3405
3405
  progress: d,
3406
- autoloadInterior360: l,
3407
- loadScene: c
3406
+ autoloadInterior360: c,
3407
+ loadScene: u
3408
3408
  }) => {
3409
3409
  const { emitAnalyticsEvent: v } = je(), { displayedCategoryId: e, displayedCategoryName: E } = Ke(), k = G(
3410
3410
  (L) => {
@@ -3425,11 +3425,11 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3425
3425
  },
3426
3426
  [v, e, E, t]
3427
3427
  ), N = G(() => {
3428
- c(), k("click");
3429
- }, [c, k]);
3428
+ u(), k("click");
3429
+ }, [u, k]);
3430
3430
  return ve(() => {
3431
- l && (c(), k("auto"));
3432
- }, [l, c, k]), o ? null : /* @__PURE__ */ a("div", { className: "pointer-events-auto absolute inset-0 flex flex-col items-center justify-center gap-y-4", children: /* @__PURE__ */ me("div", { className: "pointer-events-auto absolute inset-0 flex flex-col items-center justify-center gap-y-4 bg-foreground/35", children: [
3431
+ c && (u(), k("auto"));
3432
+ }, [c, u, k]), o ? null : /* @__PURE__ */ a("div", { className: "pointer-events-auto absolute inset-0 flex flex-col items-center justify-center gap-y-4", children: /* @__PURE__ */ me("div", { className: "pointer-events-auto absolute inset-0 flex flex-col items-center justify-center gap-y-4 bg-foreground/35", children: [
3433
3433
  /* @__PURE__ */ a(Lr, { className: "size-20" }),
3434
3434
  /* @__PURE__ */ a(Qe, { color: "neutral", shape: "icon", onClick: N, children: /* @__PURE__ */ a(ro, { className: "size-full" }) }),
3435
3435
  /* @__PURE__ */ a(
@@ -3450,13 +3450,13 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3450
3450
  )
3451
3451
  ] }) });
3452
3452
  }, oo = (t) => {
3453
- const { itemIndex: o, src: i, poster: d, onLoaded: l, onError: c, onlyPreload: v } = t, { autoLoadInterior360: e } = je(), { isShowingDetails: E, zoom: k, setZoom: N } = Ke(), [L, p] = Qn(i), n = Le(null), [b, P] = Ie(!1), [_, w] = Ie(e);
3453
+ const { itemIndex: o, src: i, poster: d, onLoaded: c, onError: u, onlyPreload: v } = t, { autoLoadInterior360: e } = je(), { isShowingDetails: E, zoom: k, setZoom: N } = Ke(), [L, p] = Qn(i), n = Le(null), [b, P] = Ie(!1), [_, w] = Ie(e);
3454
3454
  ve(() => {
3455
3455
  e && w(!0);
3456
3456
  }, [e]);
3457
3457
  const C = G(() => {
3458
- l?.(), P(!0);
3459
- }, [l]), x = G((T) => {
3458
+ c?.(), P(!0);
3459
+ }, [c]), x = G((T) => {
3460
3460
  T instanceof MouseEvent && T.button !== 0 || (T.preventDefault(), T.stopPropagation(), T.stopImmediatePropagation());
3461
3461
  }, []), h = G(() => {
3462
3462
  w(!0);
@@ -3465,7 +3465,7 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3465
3465
  { image: i, preview: d, autoLoad: _ },
3466
3466
  {
3467
3467
  onLoad: C,
3468
- onError: c,
3468
+ onError: u,
3469
3469
  onMousedown: x,
3470
3470
  onMouseup: x,
3471
3471
  onTouchstart: x,
@@ -3547,10 +3547,10 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3547
3547
  }
3548
3548
  );
3549
3549
  }, ao = (t) => {
3550
- const { itemIndex: o } = t, { setItemInteraction: i } = Ke(), [d, l] = Ie(), c = G(() => {
3551
- l("spin");
3550
+ const { itemIndex: o } = t, { setItemInteraction: i } = Ke(), [d, c] = Ie(), u = G(() => {
3551
+ c("spin");
3552
3552
  }, []), v = G(() => {
3553
- l("error");
3553
+ c("error");
3554
3554
  }, []);
3555
3555
  return ve(() => {
3556
3556
  d === null || d === "error" || i(o, d === "spin" ? "running" : "ready");
@@ -3564,7 +3564,7 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3564
3564
  oo,
3565
3565
  {
3566
3566
  ...t,
3567
- onLoaded: c,
3567
+ onLoaded: u,
3568
3568
  onError: v
3569
3569
  }
3570
3570
  );
@@ -3581,7 +3581,7 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3581
3581
  children: /* @__PURE__ */ a("polygon", { points: "6 3 20 12 6 21 6 3" })
3582
3582
  }
3583
3583
  ) }), io = 750, so = 1250, lo = 360, co = 480, uo = (t, o, i) => ({ cursor: `url("${t}") ${o.x} ${o.y}, ${i}` }), po = ({ images: t, itemIndex: o, onlyPreload: i }) => {
3584
- const { demoSpin: d, reverse360: l, spinCursor: c, themeConfig: v } = je(), { currentItemHotspotsVisible: e, isShowingDetails: E, isZooming: k } = Ke(), N = Ue(() => vt(v), [v]), L = k || E, p = Le(null), n = Le(null), [b, P] = Ie(!1), [_, w] = Ie("default"), C = c === "grab" && b ? "grabbing" : c, x = N?.cursor ? (() => {
3584
+ const { demoSpin: d, reverse360: c, spinCursor: u, themeConfig: v } = je(), { currentItemHotspotsVisible: e, isShowingDetails: E, isZooming: k } = Ke(), N = Ue(() => vt(v), [v]), L = k || E, p = Le(null), n = Le(null), [b, P] = Ie(!1), [_, w] = Ie("default"), C = u === "grab" && b ? "grabbing" : u, x = N?.cursor ? (() => {
3585
3585
  const te = _ === "left" ? "leftSpin" : _ === "right" ? "rightSpin" : "default", K = N.cursor[te];
3586
3586
  return uo(K.url, K.hotspot, C);
3587
3587
  })() : C === Dt ? { cursor: `url("${Sr}") 45 28, ew-resize` } : { cursor: C }, h = Le(0), y = Le(null), [T, $] = Ie(0), I = Le(null), X = Le(null), V = Le(null), z = Le(0), H = 16, R = Le({
@@ -3657,7 +3657,7 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3657
3657
  return;
3658
3658
  }
3659
3659
  const Ae = ke - Ne;
3660
- Math.abs(Ce) >= ne && Ae >= H && (Ce > 0 !== l ? ie() : F(), Ce = 0, Ne = ke), Pe = ke, Be();
3660
+ Math.abs(Ce) >= ne && Ae >= H && (Ce > 0 !== c ? ie() : F(), Ce = 0, Ne = ke), Pe = ke, Be();
3661
3661
  };
3662
3662
  D.current = requestAnimationFrame(We);
3663
3663
  };
@@ -3672,26 +3672,26 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3672
3672
  ge.preventDefault(), ge.stopPropagation(), Ve(), P(!0), w("default");
3673
3673
  const ye = ge.clientX;
3674
3674
  M = ye, j(), Te(Date.now(), ye);
3675
- }, u = (ge) => {
3675
+ }, l = (ge) => {
3676
3676
  if (M === null)
3677
3677
  return;
3678
3678
  ge.stopPropagation();
3679
3679
  const { clientX: ye } = ge;
3680
3680
  Te(Date.now(), ye);
3681
3681
  const Ce = ye - M;
3682
- Ce !== 0 && N?.cursor && w(Ce < 0 ? "left" : "right"), !(Math.abs(Ce) < ne) && (Ce > 0 !== l ? ie() : F(), M = ye);
3682
+ Ce !== 0 && N?.cursor && w(Ce < 0 ? "left" : "right"), !(Math.abs(Ce) < ne) && (Ce > 0 !== c ? ie() : F(), M = ye);
3683
3683
  }, f = () => {
3684
3684
  M !== null && (M = null, P(!1), w("default"), Ye());
3685
3685
  };
3686
- te.addEventListener("mousedown", we), document.addEventListener("mousemove", u), document.addEventListener("mouseleave", f), document.addEventListener("mouseup", f), document.addEventListener("contextmenu", f);
3687
- const ee = co / S, oe = () => K.getBoundingClientRect().width, Q = () => K.scrollWidth / 2 - oe() / 2, g = () => {
3688
- const ge = Q();
3686
+ te.addEventListener("mousedown", we), document.addEventListener("mousemove", l), document.addEventListener("mouseleave", f), document.addEventListener("mouseup", f), document.addEventListener("contextmenu", f);
3687
+ const Q = co / S, oe = () => K.getBoundingClientRect().width, ee = () => K.scrollWidth / 2 - oe() / 2, g = () => {
3688
+ const ge = ee();
3689
3689
  K.scrollLeft = ge;
3690
3690
  };
3691
3691
  g();
3692
3692
  const ae = () => {
3693
- const ge = K.scrollLeft - Q();
3694
- Math.abs(ge) < ee || (ge < 0 !== l ? ie() : F(), g());
3693
+ const ge = K.scrollLeft - ee();
3694
+ Math.abs(ge) < Q || (ge < 0 !== c ? ie() : F(), g());
3695
3695
  };
3696
3696
  K.addEventListener("scroll", ae);
3697
3697
  let re = null;
@@ -3706,7 +3706,7 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3706
3706
  const ye = X.current, Ce = V.current;
3707
3707
  if (ye === null || Ce === null) return;
3708
3708
  const Pe = ye - Ce;
3709
- Pe !== 0 && N?.cursor && w(Pe < 0 ? "left" : "right"), !(Math.abs(Pe) < ne) && (Pe > 0 !== l ? ie() : F(), V.current = ye, M = ye);
3709
+ Pe !== 0 && N?.cursor && w(Pe < 0 ? "left" : "right"), !(Math.abs(Pe) < ne) && (Pe > 0 !== c ? ie() : F(), V.current = ye, M = ye);
3710
3710
  }, pe = (ge) => {
3711
3711
  if (re !== null || ge.changedTouches.length !== 1)
3712
3712
  return;
@@ -3741,14 +3741,14 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3741
3741
  ye && (I.current !== null && (cancelAnimationFrame(I.current), I.current = null), re = null, M = null, V.current = null, X.current = null, P(!1), w("default"), Ye());
3742
3742
  };
3743
3743
  return K.addEventListener("touchstart", pe, { passive: !1 }), K.addEventListener("touchmove", Ge, { passive: !1 }), K.addEventListener("touchend", He), K.addEventListener("touchcancel", He), () => {
3744
- J(), P(!1), I.current !== null && (cancelAnimationFrame(I.current), I.current = null), te.removeEventListener("mousedown", we), document.removeEventListener("mousemove", u), document.removeEventListener("mouseleave", f), document.removeEventListener("mouseup", f), document.removeEventListener("contextmenu", f), K.removeEventListener("scroll", ae), K.removeEventListener("touchstart", pe), K.removeEventListener("touchmove", Ge), K.removeEventListener("touchend", He), K.removeEventListener("touchcancel", He);
3744
+ J(), P(!1), I.current !== null && (cancelAnimationFrame(I.current), I.current = null), te.removeEventListener("mousedown", we), document.removeEventListener("mousemove", l), document.removeEventListener("mouseleave", f), document.removeEventListener("mouseup", f), document.removeEventListener("contextmenu", f), K.removeEventListener("scroll", ae), K.removeEventListener("touchstart", pe), K.removeEventListener("touchmove", Ge), K.removeEventListener("touchend", He), K.removeEventListener("touchcancel", He);
3745
3745
  };
3746
3746
  }, [
3747
3747
  U,
3748
3748
  ie,
3749
3749
  F,
3750
3750
  L,
3751
- l,
3751
+ c,
3752
3752
  N,
3753
3753
  S,
3754
3754
  B
@@ -3782,9 +3782,9 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3782
3782
  images: o,
3783
3783
  onPlaceholderImageLoaded: i,
3784
3784
  onSpinImagesLoaded: d,
3785
- onError: l
3785
+ onError: c
3786
3786
  }) => {
3787
- const { autoLoad360: c, emitAnalyticsEvent: v, themeConfig: e } = je(), { displayedCategoryId: E, displayedCategoryName: k } = Ke(), N = Ue(() => vt(e), [e]), L = Ue(() => o.map(({ src: C }) => C), [o]), [p, n] = Ie(null), b = p ? [...p.values()].filter((C) => C).length / o.length * 100 : null, P = G(
3787
+ const { autoLoad360: u, emitAnalyticsEvent: v, themeConfig: e } = je(), { displayedCategoryId: E, displayedCategoryName: k } = Ke(), N = Ue(() => vt(e), [e]), L = Ue(() => o.map(({ src: C }) => C), [o]), [p, n] = Ie(null), b = p ? [...p.values()].filter((C) => C).length / o.length * 100 : null, P = G(
3788
3788
  (C) => {
3789
3789
  b === null && (n(new Map(L.map((x) => [x, !1]))), v({
3790
3790
  type: "interaction",
@@ -3818,8 +3818,8 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3818
3818
  });
3819
3819
  }, []);
3820
3820
  return ve(() => {
3821
- c && P("auto");
3822
- }, [c, P]), ve(() => {
3821
+ u && P("auto");
3822
+ }, [u, P]), ve(() => {
3823
3823
  b === 100 && d();
3824
3824
  }, [b, d]), /* @__PURE__ */ me("div", { className: "relative aspect-[4/3] w-full", children: [
3825
3825
  b !== null && b !== 100 && // Add images to DOM to preload them
@@ -3828,7 +3828,7 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3828
3828
  {
3829
3829
  src: C,
3830
3830
  onLoad: () => w(C),
3831
- onError: l
3831
+ onError: c
3832
3832
  },
3833
3833
  C
3834
3834
  )) }),
@@ -3873,7 +3873,7 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3873
3873
  ] })
3874
3874
  ] });
3875
3875
  }, ho = (t) => {
3876
- const { itemIndex: o } = t, { setItemInteraction: i } = Ke(), [d, l] = Ie(
3876
+ const { itemIndex: o } = t, { setItemInteraction: i } = Ke(), [d, c] = Ie(
3877
3877
  null
3878
3878
  );
3879
3879
  return ve(() => {
@@ -3888,16 +3888,16 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3888
3888
  fo,
3889
3889
  {
3890
3890
  ...t,
3891
- onPlaceholderImageLoaded: () => l((c) => c === null ? "placeholder" : c),
3892
- onSpinImagesLoaded: () => l("spin"),
3893
- onError: () => l("error")
3891
+ onPlaceholderImageLoaded: () => c((u) => u === null ? "placeholder" : u),
3892
+ onSpinImagesLoaded: () => c("spin"),
3893
+ onError: () => c("error")
3894
3894
  }
3895
3895
  ) : /* @__PURE__ */ a(po, { ...t });
3896
3896
  }, mo = 750, go = 1250, vo = 360, wo = 480, xo = (t, o, i) => ({ cursor: `url("${t}") ${o.x} ${o.y}, ${i}` }), yo = ({
3897
3897
  images: t,
3898
3898
  onlyPreload: o
3899
3899
  }) => {
3900
- const { demoSpin: i, reverse360: d, spinCursor: l, themeConfig: c } = je(), { isShowingDetails: v, isZooming: e } = Ke(), E = Ue(() => vt(c), [c]), k = e || v, N = Le(null), L = Le(null), [p, n] = Ie(!1), [b, P] = Ie("default"), _ = l === "grab" && p ? "grabbing" : l, w = E?.cursor ? (() => {
3900
+ const { demoSpin: i, reverse360: d, spinCursor: c, themeConfig: u } = je(), { isShowingDetails: v, isZooming: e } = Ke(), E = Ue(() => vt(u), [u]), k = e || v, N = Le(null), L = Le(null), [p, n] = Ie(!1), [b, P] = Ie("default"), _ = c === "grab" && p ? "grabbing" : c, w = E?.cursor ? (() => {
3901
3901
  const H = b === "left" ? "leftSpin" : b === "right" ? "rightSpin" : "default", R = E.cursor[H];
3902
3902
  return xo(R.url, R.hotspot, _);
3903
3903
  })() : _ === Dt ? { cursor: `url("${Sr}") 45 28, ew-resize` } : { cursor: _ }, C = Le(i), x = Le(null), h = G(() => {
@@ -3918,14 +3918,14 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3918
3918
  if (!H || !R)
3919
3919
  return;
3920
3920
  C.current && (C.current = !1, x.current = setTimeout(() => {
3921
- const we = Date.now(), u = () => {
3921
+ const we = Date.now(), l = () => {
3922
3922
  const f = () => {
3923
3923
  const oe = (Date.now() - we) / go, g = Math.round(((re) => re * (2 - re))(oe) * X), ae = tt(g % X, 0, X - 1);
3924
- I(ae), !(g >= X) && u();
3924
+ I(ae), !(g >= X) && l();
3925
3925
  };
3926
3926
  y.current = requestAnimationFrame(f);
3927
3927
  };
3928
- u();
3928
+ l();
3929
3929
  }, mo));
3930
3930
  const q = vo / X;
3931
3931
  let ce = null, U = [];
@@ -3933,25 +3933,25 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3933
3933
  U.push(we), U.length > 20 && U.shift();
3934
3934
  }, J = () => {
3935
3935
  const we = (() => {
3936
- const Q = Date.now(), g = U.filter(
3937
- (xe) => Q - xe.timestamp < 50
3936
+ const ee = Date.now(), g = U.filter(
3937
+ (xe) => ee - xe.timestamp < 50
3938
3938
  );
3939
3939
  if (g.length < 2)
3940
3940
  return 0;
3941
3941
  const ae = g[0], re = g[g.length - 1];
3942
3942
  return (re.value - ae.value) / (1e-3 * Math.max(re.timestamp - ae.timestamp, 1));
3943
- })(), u = Date.now();
3944
- let f = 0, ee = u;
3943
+ })(), l = Date.now();
3944
+ let f = 0, Q = l;
3945
3945
  const oe = () => {
3946
- const Q = () => {
3947
- const g = Date.now(), ae = (g - u) / 1e3, re = Math.pow(0.05, ae), xe = we * re, pe = (g - ee) / 1e3;
3946
+ const ee = () => {
3947
+ const g = Date.now(), ae = (g - l) / 1e3, re = Math.pow(0.05, ae), xe = we * re, pe = (g - Q) / 1e3;
3948
3948
  if (f += xe * pe, Math.abs(xe) < 5 * q && Math.abs(f) < q) {
3949
3949
  y.current = null;
3950
3950
  return;
3951
3951
  }
3952
- Math.abs(f) >= q && (f > 0 !== d ? z() : V(), f = 0), ee = g, oe();
3952
+ Math.abs(f) >= q && (f > 0 !== d ? z() : V(), f = 0), Q = g, oe();
3953
3953
  };
3954
- y.current = requestAnimationFrame(Q);
3954
+ y.current = requestAnimationFrame(ee);
3955
3955
  };
3956
3956
  oe();
3957
3957
  }, S = () => {
@@ -3962,16 +3962,16 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3962
3962
  if (we.button !== 0)
3963
3963
  return;
3964
3964
  we.preventDefault(), we.stopPropagation(), S(), n(!0), P("default");
3965
- const u = we.clientX;
3966
- ce = u, U = [{ timestamp: Date.now(), value: u }];
3965
+ const l = we.clientX;
3966
+ ce = l, U = [{ timestamp: Date.now(), value: l }];
3967
3967
  }, ie = (we) => {
3968
3968
  if (ce === null)
3969
3969
  return;
3970
3970
  we.stopPropagation();
3971
- const { clientX: u } = we;
3972
- D({ timestamp: Date.now(), value: u });
3973
- const f = u - ce;
3974
- f !== 0 && E?.cursor && P(f < 0 ? "left" : "right"), !(Math.abs(f) < q) && (f > 0 !== d ? z() : V(), ce = u);
3971
+ const { clientX: l } = we;
3972
+ D({ timestamp: Date.now(), value: l });
3973
+ const f = l - ce;
3974
+ f !== 0 && E?.cursor && P(f < 0 ? "left" : "right"), !(Math.abs(f) < q) && (f > 0 !== d ? z() : V(), ce = l);
3975
3975
  }, F = () => {
3976
3976
  ce !== null && (ce = null, n(!1), P("default"), J());
3977
3977
  };
@@ -3991,21 +3991,21 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
3991
3991
  if (j !== null || we.changedTouches.length !== 1)
3992
3992
  return;
3993
3993
  S(), n(!0), P("default");
3994
- const { identifier: u, clientX: f } = we.changedTouches[0];
3995
- j = u, ce = f, U = [{ timestamp: Date.now(), value: f }];
3994
+ const { identifier: l, clientX: f } = we.changedTouches[0];
3995
+ j = l, ce = f, U = [{ timestamp: Date.now(), value: f }];
3996
3996
  }, Ye = (we) => {
3997
3997
  if (!ce)
3998
3998
  return;
3999
- const u = Array.from(we.changedTouches).find(
3999
+ const l = Array.from(we.changedTouches).find(
4000
4000
  ({ identifier: oe }) => oe === j
4001
4001
  );
4002
- if (!u)
4002
+ if (!l)
4003
4003
  return;
4004
4004
  we.preventDefault();
4005
- const { clientX: f } = u;
4005
+ const { clientX: f } = l;
4006
4006
  D({ timestamp: Date.now(), value: f });
4007
- const ee = f - ce;
4008
- ee !== 0 && E?.cursor && P(ee < 0 ? "left" : "right"), !(Math.abs(ee) < q) && (ee > 0 !== d ? z() : V(), ce = f);
4007
+ const Q = f - ce;
4008
+ Q !== 0 && E?.cursor && P(Q < 0 ? "left" : "right"), !(Math.abs(Q) < q) && (Q > 0 !== d ? z() : V(), ce = f);
4009
4009
  }, Ve = (we) => {
4010
4010
  !ce || !Array.from(we.changedTouches).some(
4011
4011
  ({ identifier: f }) => f === j
@@ -4048,9 +4048,9 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
4048
4048
  images: o,
4049
4049
  onPlaceholderImageLoaded: i,
4050
4050
  onSpinImagesLoaded: d,
4051
- onError: l
4051
+ onError: c
4052
4052
  }) => {
4053
- const { autoLoad360: c, emitAnalyticsEvent: v, themeConfig: e } = je(), { displayedCategoryId: E, displayedCategoryName: k } = Ke(), N = Ue(() => vt(e), [e]), L = Ue(() => o.map(({ src: C }) => C), [o]), [p, n] = Ie(null), b = p ? [...p.values()].filter((C) => C).length / o.length * 100 : null, P = G(
4053
+ const { autoLoad360: u, emitAnalyticsEvent: v, themeConfig: e } = je(), { displayedCategoryId: E, displayedCategoryName: k } = Ke(), N = Ue(() => vt(e), [e]), L = Ue(() => o.map(({ src: C }) => C), [o]), [p, n] = Ie(null), b = p ? [...p.values()].filter((C) => C).length / o.length * 100 : null, P = G(
4054
4054
  (C) => {
4055
4055
  b === null && (n(new Map(L.map((x) => [x, !1]))), v({
4056
4056
  type: "interaction",
@@ -4084,8 +4084,8 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
4084
4084
  });
4085
4085
  }, []);
4086
4086
  return ve(() => {
4087
- c && P("auto");
4088
- }, [c, P]), ve(() => {
4087
+ u && P("auto");
4088
+ }, [u, P]), ve(() => {
4089
4089
  b === 100 && d();
4090
4090
  }, [b, d]), /* @__PURE__ */ me("div", { className: "relative aspect-[4/3] w-full", children: [
4091
4091
  b !== null && b !== 100 && // Add images to DOM to preload them
@@ -4094,7 +4094,7 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
4094
4094
  {
4095
4095
  src: C,
4096
4096
  onLoad: () => w(C),
4097
- onError: l
4097
+ onError: c
4098
4098
  },
4099
4099
  C
4100
4100
  )) }),
@@ -4139,7 +4139,7 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
4139
4139
  ] })
4140
4140
  ] });
4141
4141
  }, bo = (t) => {
4142
- const { itemIndex: o } = t, { setItemInteraction: i } = Ke(), [d, l] = Ie();
4142
+ const { itemIndex: o } = t, { setItemInteraction: i } = Ke(), [d, c] = Ie();
4143
4143
  return ve(() => {
4144
4144
  d === null || d === "error" || i(o, d === "spin" ? "running" : "ready");
4145
4145
  }, [o, i, d]), d === "error" ? /* @__PURE__ */ a(
@@ -4152,9 +4152,9 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
4152
4152
  Co,
4153
4153
  {
4154
4154
  ...t,
4155
- onPlaceholderImageLoaded: () => l((c) => c === null ? "placeholder" : c),
4156
- onSpinImagesLoaded: () => l("spin"),
4157
- onError: () => l("error")
4155
+ onPlaceholderImageLoaded: () => c((u) => u === null ? "placeholder" : u),
4156
+ onSpinImagesLoaded: () => c("spin"),
4157
+ onError: () => c("error")
4158
4158
  }
4159
4159
  ) : /* @__PURE__ */ a(yo, { ...t });
4160
4160
  }, Lo = (t) => /* @__PURE__ */ a(Qe, { color: "neutral", shape: "icon", ...t, children: /* @__PURE__ */ a(Er, { className: "size-full" }) }), Eo = ({ className: t }) => /* @__PURE__ */ a(qe, { className: t, customizationKey: "UI_PAUSE", children: /* @__PURE__ */ a(
@@ -4215,14 +4215,14 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
4215
4215
  style: { transform: `translateX(-${100 * (1 - t)}%)` }
4216
4216
  }
4217
4217
  ) }), ko = 3e3, _o = ({ src: t, poster: o, itemIndex: i }) => {
4218
- const { carrouselItemIndex: d, setItemInteraction: l } = Ke(), c = Le(null), v = Le(null), e = G(() => {
4218
+ const { carrouselItemIndex: d, setItemInteraction: c } = Ke(), u = Le(null), v = Le(null), e = G(() => {
4219
4219
  if (!v.current)
4220
4220
  throw new Error("videoRef.current is null");
4221
4221
  return v.current;
4222
4222
  }, []);
4223
4223
  ve(() => {
4224
- l(i, "ready");
4225
- }, [i, l]);
4224
+ c(i, "ready");
4225
+ }, [i, c]);
4226
4226
  const E = G(() => {
4227
4227
  e().play();
4228
4228
  }, [e]), k = G(() => {
@@ -4232,9 +4232,9 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
4232
4232
  d === i || k();
4233
4233
  }, [d, i, k]);
4234
4234
  const [N, L] = Ie(!1), [p, n] = Ie(!0), b = () => {
4235
- L(!0), l(i, "running");
4235
+ L(!0), c(i, "running");
4236
4236
  }, P = () => {
4237
- L(!1), l(i, "ready");
4237
+ L(!1), c(i, "ready");
4238
4238
  }, _ = () => {
4239
4239
  n(!1);
4240
4240
  }, w = () => {
@@ -4290,7 +4290,7 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
4290
4290
  }, ko);
4291
4291
  }, [q]);
4292
4292
  return ve(() => {
4293
- const U = c.current, D = v.current;
4293
+ const U = u.current, D = v.current;
4294
4294
  if (!U || !D)
4295
4295
  return;
4296
4296
  const J = () => {
@@ -4311,7 +4311,7 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
4311
4311
  return U.addEventListener("mousedown", ie), U.addEventListener("mouseup", F), U.addEventListener("mouseenter", J), U.addEventListener("mousemove", te), U.addEventListener("mouseleave", S), D.addEventListener("touchstart", K, { passive: !0 }), () => {
4312
4312
  U.removeEventListener("mousedown", ie), U.removeEventListener("mouseup", F), U.removeEventListener("mouseenter", J), U.removeEventListener("mousemove", J), U.removeEventListener("mouseleave", S), D.removeEventListener("touchstart", K);
4313
4313
  };
4314
- }, [q, k, ce]), /* @__PURE__ */ me("div", { ref: c, className: "relative aspect-[4/3] w-full", children: [
4314
+ }, [q, k, ce]), /* @__PURE__ */ me("div", { ref: u, className: "relative aspect-[4/3] w-full", children: [
4315
4315
  /* @__PURE__ */ a(
4316
4316
  "video",
4317
4317
  {
@@ -4416,22 +4416,22 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
4416
4416
  ] });
4417
4417
  }, To = ({ index: t, item: o, isShown: i }) => {
4418
4418
  const { type: d } = o;
4419
- let l;
4419
+ let c;
4420
4420
  switch (d) {
4421
4421
  case "image":
4422
- l = /* @__PURE__ */ a(Tr, { itemIndex: t, onlyPreload: !i, ...o });
4422
+ c = /* @__PURE__ */ a(Tr, { itemIndex: t, onlyPreload: !i, ...o });
4423
4423
  break;
4424
4424
  case "video":
4425
- l = /* @__PURE__ */ a(_o, { itemIndex: t, ...o });
4425
+ c = /* @__PURE__ */ a(_o, { itemIndex: t, ...o });
4426
4426
  break;
4427
4427
  case "360":
4428
- l = /* @__PURE__ */ a(bo, { itemIndex: t, onlyPreload: !i, ...o });
4428
+ c = /* @__PURE__ */ a(bo, { itemIndex: t, onlyPreload: !i, ...o });
4429
4429
  break;
4430
4430
  case "next360":
4431
- l = /* @__PURE__ */ a(ho, { itemIndex: t, onlyPreload: !i, ...o });
4431
+ c = /* @__PURE__ */ a(ho, { itemIndex: t, onlyPreload: !i, ...o });
4432
4432
  break;
4433
4433
  case "interior-360":
4434
- l = /* @__PURE__ */ a(
4434
+ c = /* @__PURE__ */ a(
4435
4435
  ao,
4436
4436
  {
4437
4437
  itemIndex: t,
@@ -4441,9 +4441,9 @@ const ro = ({ className: t }) => /* @__PURE__ */ a(
4441
4441
  );
4442
4442
  break;
4443
4443
  case "custom":
4444
- l = /* @__PURE__ */ a(Yn, { itemIndex: t, ...o });
4444
+ c = /* @__PURE__ */ a(Yn, { itemIndex: t, ...o });
4445
4445
  }
4446
- return l = /* @__PURE__ */ a("div", { className: "grid grid-cols-[repeat(var(--max-items),1fr)]", children: l }), l;
4446
+ return c = /* @__PURE__ */ a("div", { className: "grid grid-cols-[repeat(var(--max-items),1fr)]", children: c }), c;
4447
4447
  }, So = (t) => {
4448
4448
  ve(() => {
4449
4449
  const o = (i) => {
@@ -4462,15 +4462,15 @@ const No = ({
4462
4462
  children: o,
4463
4463
  isVisible: i,
4464
4464
  url: d,
4465
- title: l,
4466
- description: c,
4465
+ title: c,
4466
+ description: u,
4467
4467
  clickHandler: v,
4468
4468
  extendMode: e,
4469
4469
  variant: E,
4470
4470
  aspectRatioStyle: k,
4471
4471
  maxItemsShown: N = 1
4472
4472
  }) => {
4473
- const { isFullScreen: L, integration: p } = je(), n = () => E || (!p || L ? "centered" : "aside"), b = () => !!(l || c), P = () => !!d, _ = () => P() && !b(), w = n(), C = (x) => {
4473
+ const { isFullScreen: L, integration: p } = je(), n = () => E || (!p || L ? "centered" : "aside"), b = () => !!(c || u), P = () => !!d, _ = () => P() && !b(), w = n(), C = (x) => {
4474
4474
  if (!k) return {};
4475
4475
  switch (x) {
4476
4476
  case "centered":
@@ -4560,24 +4560,24 @@ const No = ({
4560
4560
  e && "large:p-4"
4561
4561
  ),
4562
4562
  children: [
4563
- l && /* @__PURE__ */ a(
4563
+ c && /* @__PURE__ */ a(
4564
4564
  "h3",
4565
4565
  {
4566
4566
  className: ue(
4567
4567
  "text-[clamp(0.875rem,0.6rem+1.6cqw,1.125rem)] font-semibold text-white small:font-bold",
4568
4568
  e && "large:text-lg"
4569
4569
  ),
4570
- children: l
4570
+ children: c
4571
4571
  }
4572
4572
  ),
4573
- c && /* @__PURE__ */ a(
4573
+ u && /* @__PURE__ */ a(
4574
4574
  "p",
4575
4575
  {
4576
4576
  className: ue(
4577
4577
  "text-[clamp(0.75rem,0.55rem+1.3cqw,0.875rem)] text-white",
4578
4578
  e && "large:text-sm"
4579
4579
  ),
4580
- children: c
4580
+ children: u
4581
4581
  }
4582
4582
  )
4583
4583
  ]
@@ -4628,24 +4628,24 @@ const No = ({
4628
4628
  P() ? "min-h-[15%] shrink-0" : "flex-1 overflow-y-auto"
4629
4629
  ),
4630
4630
  children: [
4631
- l && /* @__PURE__ */ a(
4631
+ c && /* @__PURE__ */ a(
4632
4632
  "span",
4633
4633
  {
4634
4634
  className: ue(
4635
4635
  "block text-[clamp(0.75rem,0.45rem+1.8cqw,1.125rem)] font-semibold leading-tight small:font-bold",
4636
4636
  e && "large:text-lg"
4637
4637
  ),
4638
- children: l
4638
+ children: c
4639
4639
  }
4640
4640
  ),
4641
- c && /* @__PURE__ */ a(
4641
+ u && /* @__PURE__ */ a(
4642
4642
  "p",
4643
4643
  {
4644
4644
  className: ue(
4645
4645
  "text-[clamp(0.625rem,0.4rem+1.5cqw,0.875rem)] leading-tight text-foreground/65",
4646
4646
  e && "large:text-sm"
4647
4647
  ),
4648
- children: c
4648
+ children: u
4649
4649
  }
4650
4650
  )
4651
4651
  ]
@@ -4689,24 +4689,24 @@ const No = ({
4689
4689
  }
4690
4690
  ),
4691
4691
  /* @__PURE__ */ me("div", { className: "h-[15%] space-y-1 overflow-y-auto px-2 py-1 small:p-3", children: [
4692
- l && /* @__PURE__ */ a(
4692
+ c && /* @__PURE__ */ a(
4693
4693
  "span",
4694
4694
  {
4695
4695
  className: ue(
4696
4696
  "text-[clamp(0.75rem,0.45rem+1.8cqw,1.125rem)] font-semibold small:font-bold",
4697
4697
  e && "large:text-lg"
4698
4698
  ),
4699
- children: l
4699
+ children: c
4700
4700
  }
4701
4701
  ),
4702
- c && /* @__PURE__ */ a(
4702
+ u && /* @__PURE__ */ a(
4703
4703
  "p",
4704
4704
  {
4705
4705
  className: ue(
4706
4706
  "text-[clamp(0.625rem,0.4rem+1.5cqw,0.875rem)] text-foreground/65",
4707
4707
  e && "large:text-sm"
4708
4708
  ),
4709
- children: c
4709
+ children: u
4710
4710
  }
4711
4711
  )
4712
4712
  ] })
@@ -4770,7 +4770,7 @@ const No = ({
4770
4770
  onToggle: o,
4771
4771
  label: i,
4772
4772
  className: d,
4773
- children: l
4773
+ children: c
4774
4774
  }) => /* @__PURE__ */ me(
4775
4775
  "label",
4776
4776
  {
@@ -4803,7 +4803,7 @@ const No = ({
4803
4803
  "flex size-4 items-center justify-center rounded-full p-0.5 transition",
4804
4804
  t ? "translate-x-1.5 bg-primary-foreground text-primary" : "-translate-x-1.5 bg-background text-foreground"
4805
4805
  ),
4806
- children: l
4806
+ children: c
4807
4807
  }
4808
4808
  )
4809
4809
  }
@@ -4828,13 +4828,13 @@ const No = ({
4828
4828
  )
4829
4829
  }
4830
4830
  ) }), Bo = ({ sharedClassName: t }) => {
4831
- const { categories: o } = lt(), { displayedCategoryId: i, changeCategory: d } = Ke(), [l, c] = Ie(!1), v = () => {
4832
- c(!l);
4831
+ const { categories: o } = lt(), { displayedCategoryId: i, changeCategory: d } = Ke(), [c, u] = Ie(!1), v = () => {
4832
+ u(!c);
4833
4833
  }, e = () => {
4834
- c(!1);
4834
+ u(!1);
4835
4835
  };
4836
4836
  return /* @__PURE__ */ me(nt, { children: [
4837
- l && /* @__PURE__ */ a(
4837
+ c && /* @__PURE__ */ a(
4838
4838
  "div",
4839
4839
  {
4840
4840
  className: ue(t, "inset-0 small:hidden"),
@@ -4854,12 +4854,12 @@ const No = ({
4854
4854
  Qe,
4855
4855
  {
4856
4856
  shape: "icon",
4857
- color: l ? "primary" : "neutral",
4857
+ color: c ? "primary" : "neutral",
4858
4858
  onClick: v,
4859
4859
  children: /* @__PURE__ */ a(Uo, {})
4860
4860
  }
4861
4861
  ),
4862
- l && /* @__PURE__ */ a("div", { className: "rounded-ui-md bg-background transition-radius", children: /* @__PURE__ */ a("ul", { className: "space-y-0.5 p-1", children: o.map(({ id: E, title: k }) => /* @__PURE__ */ a(
4862
+ c && /* @__PURE__ */ a("div", { className: "rounded-ui-md bg-background transition-radius", children: /* @__PURE__ */ a("ul", { className: "space-y-0.5 p-1", children: o.map(({ id: E, title: k }) => /* @__PURE__ */ a(
4863
4863
  "li",
4864
4864
  {
4865
4865
  className: ue(
@@ -4867,7 +4867,7 @@ const No = ({
4867
4867
  E === i && "bg-primary/50"
4868
4868
  ),
4869
4869
  onClick: () => {
4870
- d(E), c(!1);
4870
+ d(E), u(!1);
4871
4871
  },
4872
4872
  children: k
4873
4873
  },
@@ -4902,8 +4902,8 @@ const No = ({
4902
4902
  infiniteCarrousel: o,
4903
4903
  permanentGallery: i,
4904
4904
  extendBehavior: d,
4905
- maxItemsShown: l,
4906
- isFullScreen: c,
4905
+ maxItemsShown: c,
4906
+ isFullScreen: u,
4907
4907
  integration: v
4908
4908
  } = je(), {
4909
4909
  aspectRatioStyle: e,
@@ -4941,12 +4941,12 @@ const No = ({
4941
4941
  );
4942
4942
  So(X);
4943
4943
  const J = "absolute z-overlay", S = () => {
4944
- if (l === 1) return L;
4945
- const F = Math.floor(l) - 1;
4944
+ if (c === 1) return L;
4945
+ const F = Math.floor(c) - 1;
4946
4946
  return L + F;
4947
4947
  }, B = () => {
4948
4948
  if (!v) return p;
4949
- const F = Math.floor(l) - 1;
4949
+ const F = Math.floor(c) - 1;
4950
4950
  return p + F;
4951
4951
  };
4952
4952
  return /* @__PURE__ */ me(nt, { children: [
@@ -4963,7 +4963,7 @@ const No = ({
4963
4963
  N && !z && /* @__PURE__ */ a("div", { className: ue(J, pt("top-right")), children: /* @__PURE__ */ a(
4964
4964
  Ro,
4965
4965
  {
4966
- currentIndex: !v || c ? L : S(),
4966
+ currentIndex: !v || u ? L : S(),
4967
4967
  maxIndex: k - 1
4968
4968
  }
4969
4969
  ) }),
@@ -5046,7 +5046,7 @@ const No = ({
5046
5046
  children: /* @__PURE__ */ a(Do, { className: "size-full" })
5047
5047
  }
5048
5048
  ),
5049
- V && (!v || c) && /* @__PURE__ */ me("div", { className: "max-small:hidden", children: [
5049
+ V && (!v || u) && /* @__PURE__ */ me("div", { className: "max-small:hidden", children: [
5050
5050
  /* @__PURE__ */ a(
5051
5051
  Qe,
5052
5052
  {
@@ -5095,7 +5095,7 @@ const No = ({
5095
5095
  description: $?.text,
5096
5096
  clickHandler: D,
5097
5097
  extendMode: y,
5098
- maxItemsShown: l,
5098
+ maxItemsShown: c,
5099
5099
  aspectRatioStyle: e,
5100
5100
  children: /* @__PURE__ */ a(
5101
5101
  Rt,
@@ -5119,8 +5119,8 @@ const No = ({
5119
5119
  infiniteCarrousel: o,
5120
5120
  preloadRange: i,
5121
5121
  isFullScreen: d,
5122
- maxItemsShown: l,
5123
- integration: c
5122
+ maxItemsShown: c,
5123
+ integration: u
5124
5124
  } = je(), { aspectRatioStyle: v } = lt(), {
5125
5125
  items: e,
5126
5126
  slidable: E,
@@ -5146,8 +5146,8 @@ const No = ({
5146
5146
  const M = K.offsetLeft, le = Math.abs(M - ie);
5147
5147
  le < te && (te = le, F = ne);
5148
5148
  }), C > 1) {
5149
- const K = Math.ceil(C), ne = e.length + (c && !o && C % 1 !== 0 ? 1 : 0), M = Math.max(0, ne - K);
5150
- if (F = Math.min(F, M), c && !o && C % 1 !== 0) {
5149
+ const K = Math.ceil(C), ne = e.length + (u && !o && C % 1 !== 0 ? 1 : 0), M = Math.max(0, ne - K);
5150
+ if (F = Math.min(F, M), u && !o && C % 1 !== 0) {
5151
5151
  const le = e.length - 1;
5152
5152
  F = Math.min(F, le);
5153
5153
  }
@@ -5158,7 +5158,7 @@ const No = ({
5158
5158
  C,
5159
5159
  e.length,
5160
5160
  o,
5161
- c
5161
+ u
5162
5162
  ]), z = G(
5163
5163
  (S) => {
5164
5164
  const B = h("setStyleCursor");
@@ -5178,8 +5178,8 @@ const No = ({
5178
5178
  let ne = te[S].offsetLeft;
5179
5179
  const M = F.clientWidth, le = F.scrollWidth - M;
5180
5180
  if (C > 1) {
5181
- const f = Math.ceil(C), ee = e.length + (c && !o && C % 1 !== 0 ? 1 : 0);
5182
- S >= ee - f && (ne = Math.min(ne, le));
5181
+ const f = Math.ceil(C), Q = e.length + (u && !o && C % 1 !== 0 ? 1 : 0);
5182
+ S >= Q - f && (ne = Math.min(ne, le));
5183
5183
  }
5184
5184
  const j = (f) => {
5185
5185
  F.scrollTo({
@@ -5195,19 +5195,19 @@ const No = ({
5195
5195
  }
5196
5196
  const Ve = tt(Ye / 2.5, 300, 1e3), we = (/* @__PURE__ */ new Date()).getTime();
5197
5197
  H("none");
5198
- const u = () => {
5198
+ const l = () => {
5199
5199
  const f = () => {
5200
5200
  const oe = (/* @__PURE__ */ new Date()).getTime() - we;
5201
5201
  if (oe >= Ve) {
5202
5202
  Te();
5203
5203
  return;
5204
5204
  }
5205
- const Q = Math.min(oe / Ve, 1), g = kr(Q), ae = bt(K, ne, g);
5206
- j(ae), u();
5205
+ const ee = Math.min(oe / Ve, 1), g = kr(ee), ae = bt(K, ne, g);
5206
+ j(ae), l();
5207
5207
  };
5208
5208
  I.current = requestAnimationFrame(f);
5209
5209
  };
5210
- u();
5210
+ l();
5211
5211
  },
5212
5212
  [
5213
5213
  X,
@@ -5215,7 +5215,7 @@ const No = ({
5215
5215
  C,
5216
5216
  H,
5217
5217
  e.length,
5218
- c,
5218
+ u,
5219
5219
  o
5220
5220
  ]
5221
5221
  ), [q, ce] = Ie(), U = !!q;
@@ -5311,7 +5311,7 @@ const No = ({
5311
5311
  w,
5312
5312
  U,
5313
5313
  L,
5314
- l,
5314
+ c,
5315
5315
  N,
5316
5316
  p
5317
5317
  ]), ve(() => {
@@ -5324,7 +5324,7 @@ const No = ({
5324
5324
  };
5325
5325
  switch (n) {
5326
5326
  case "first_to_last": {
5327
- const B = Math.ceil(C), ie = e.length + (c && !o && C % 1 !== 0 ? 1 : 0), F = C > 1 ? Math.max(0, ie - B) : e.length - 1;
5327
+ const B = Math.ceil(C), ie = e.length + (u && !o && C % 1 !== 0 ? 1 : 0), F = C > 1 ? Math.max(0, ie - B) : e.length - 1;
5328
5328
  R(F, "instant", S);
5329
5329
  break;
5330
5330
  }
@@ -5347,9 +5347,9 @@ const No = ({
5347
5347
  p,
5348
5348
  C,
5349
5349
  o,
5350
- c
5350
+ u
5351
5351
  ]);
5352
- const D = Ue(() => !c || d ? v : { aspectRatio: "auto" }, [c, d, v]), J = Ue(
5352
+ const D = Ue(() => !u || d ? v : { aspectRatio: "auto" }, [u, d, v]), J = Ue(
5353
5353
  () => ({
5354
5354
  ...v,
5355
5355
  minWidth: `${100 / C}%`,
@@ -5427,7 +5427,7 @@ const No = ({
5427
5427
  j
5428
5428
  );
5429
5429
  }),
5430
- c && !o && !d && l % 1 !== 0 && /* @__PURE__ */ a(
5430
+ u && !o && !d && c % 1 !== 0 && /* @__PURE__ */ a(
5431
5431
  "div",
5432
5432
  {
5433
5433
  className: "h-full",
@@ -5445,15 +5445,15 @@ const No = ({
5445
5445
  }, Zo = () => {
5446
5446
  const { permanentGallery: t, integration: o } = je(), { aspectRatioStyle: i } = lt(), {
5447
5447
  isShowingDetails: d,
5448
- resetShownDetails: l,
5449
- extendMode: c,
5448
+ resetShownDetails: c,
5449
+ extendMode: u,
5450
5450
  disableExtendMode: v,
5451
5451
  isZooming: e,
5452
5452
  resetZoom: E,
5453
5453
  fakeFullScreen: k
5454
5454
  } = Ke(), N = Le(null), L = Le(null), p = Le(null);
5455
5455
  return ve(() => {
5456
- if (!c)
5456
+ if (!u)
5457
5457
  return;
5458
5458
  const n = N.current, b = L.current, P = p.current;
5459
5459
  if (!n || !b || !P)
@@ -5467,9 +5467,9 @@ const No = ({
5467
5467
  return n.addEventListener("mousedown", C), n.addEventListener("mouseup", x), () => {
5468
5468
  n.removeEventListener("mousedown", C), n.removeEventListener("mouseup", x);
5469
5469
  };
5470
- }, [v, c]), ve(() => {
5470
+ }, [v, u]), ve(() => {
5471
5471
  const n = (b) => {
5472
- b.key === "Escape" && (e ? E() : d ? l() : v());
5472
+ b.key === "Escape" && (e ? E() : d ? c() : v());
5473
5473
  };
5474
5474
  return addEventListener("keydown", n), () => {
5475
5475
  removeEventListener("keydown", n);
@@ -5478,7 +5478,7 @@ const No = ({
5478
5478
  v,
5479
5479
  d,
5480
5480
  e,
5481
- l,
5481
+ c,
5482
5482
  E
5483
5483
  ]), /* @__PURE__ */ me(
5484
5484
  "div",
@@ -5486,7 +5486,7 @@ const No = ({
5486
5486
  ref: N,
5487
5487
  className: ue(
5488
5488
  "relative",
5489
- c && "flex size-full items-center justify-center",
5489
+ u && "flex size-full items-center justify-center",
5490
5490
  k && "fixed inset-0 z-overlay bg-foreground/75"
5491
5491
  ),
5492
5492
  children: [
@@ -5494,24 +5494,24 @@ const No = ({
5494
5494
  "div",
5495
5495
  {
5496
5496
  ref: L,
5497
- className: c ? "flex size-full flex-col justify-center gap-y-2 small:gap-y-4" : "space-y-2",
5497
+ className: u ? "flex size-full flex-col justify-center gap-y-2 small:gap-y-4" : "space-y-2",
5498
5498
  children: [
5499
5499
  /* @__PURE__ */ a(
5500
5500
  "div",
5501
5501
  {
5502
5502
  ref: p,
5503
5503
  className: ue(
5504
- c && "mx-auto flex min-h-0 w-full max-w-[1600px] justify-center"
5504
+ u && "mx-auto flex min-h-0 w-full max-w-[1600px] justify-center"
5505
5505
  ),
5506
5506
  style: o ? {} : i,
5507
- children: /* @__PURE__ */ a(Xo, { className: ue(c && "h-full min-w-0") })
5507
+ children: /* @__PURE__ */ a(Xo, { className: ue(u && "h-full min-w-0") })
5508
5508
  }
5509
5509
  ),
5510
- t && /* @__PURE__ */ a(Ir, { className: ue(c && "my-2 shrink-0 small:my-4") })
5510
+ t && /* @__PURE__ */ a(Ir, { className: ue(u && "my-2 shrink-0 small:my-4") })
5511
5511
  ]
5512
5512
  }
5513
5513
  ),
5514
- c && /* @__PURE__ */ a(
5514
+ u && /* @__PURE__ */ a(
5515
5515
  Rt,
5516
5516
  {
5517
5517
  className: "absolute right-2 top-2 small:right-4 small:top-4",
@@ -5524,8 +5524,8 @@ const No = ({
5524
5524
  }, Vo = () => {
5525
5525
  const { emitEvent: t, emitAnalyticsEvent: o, compositionUrl: i } = je(), {
5526
5526
  data: d,
5527
- status: l,
5528
- isSuccess: c,
5527
+ status: c,
5528
+ isSuccess: u,
5529
5529
  error: v
5530
5530
  } = wn(i);
5531
5531
  return ve(() => {
@@ -5549,22 +5549,22 @@ const No = ({
5549
5549
  }
5550
5550
  };
5551
5551
  o(e);
5552
- } else l === "fetching" ? t(tr, i) : c && t(rr, d);
5552
+ } else c === "fetching" ? t(tr, i) : u && t(rr, d);
5553
5553
  }, [
5554
5554
  d,
5555
5555
  i,
5556
5556
  t,
5557
5557
  o,
5558
5558
  v,
5559
- c,
5560
- l
5559
+ u,
5560
+ c
5561
5561
  ]), v ? /* @__PURE__ */ a(
5562
5562
  Mt,
5563
5563
  {
5564
5564
  className: "aspect-square text-foreground/70",
5565
5565
  text: "Player could not be loaded"
5566
5566
  }
5567
- ) : c ? /* @__PURE__ */ a(yn, { composition: d, children: /* @__PURE__ */ a(Ln, { children: /* @__PURE__ */ a(Zo, {}) }) }) : /* @__PURE__ */ me("div", { className: "flex aspect-square size-full flex-col items-center justify-center gap-y-4", children: [
5567
+ ) : u ? /* @__PURE__ */ a(yn, { composition: d, children: /* @__PURE__ */ a(Ln, { children: /* @__PURE__ */ a(Zo, {}) }) }) : /* @__PURE__ */ me("div", { className: "flex aspect-square size-full flex-col items-center justify-center gap-y-4", children: [
5568
5568
  /* @__PURE__ */ a("div", { className: "animate-pulse text-xl", children: "Loading Player" }),
5569
5569
  /* @__PURE__ */ a(Cr, { color: "foreground" })
5570
5570
  ] });
@@ -5587,12 +5587,12 @@ const No = ({
5587
5587
  const { type: o, ...i } = t;
5588
5588
  return JSON.stringify(i);
5589
5589
  }, r2 = 1e4, n2 = async (t, o = r2) => {
5590
- const { payload: i, compositionUrl: d } = t, l = e2(d), c = t2(i), v = Qo(i.type), e = new AbortController(), E = setTimeout(() => e.abort(), o);
5590
+ const { payload: i, compositionUrl: d } = t, c = e2(d), u = t2(i), v = Qo(i.type), e = new AbortController(), E = setTimeout(() => e.abort(), o);
5591
5591
  try {
5592
5592
  const k = await fetch(v, {
5593
5593
  method: "POST",
5594
- headers: l,
5595
- body: c,
5594
+ headers: c,
5595
+ body: u,
5596
5596
  signal: e.signal
5597
5597
  });
5598
5598
  if (!k.ok)
@@ -5607,8 +5607,8 @@ const No = ({
5607
5607
  integration: o = sn,
5608
5608
  maxItemsShown: i = ur,
5609
5609
  hideCategoriesNav: d = Gr,
5610
- infiniteCarrousel: l = jr,
5611
- permanentGallery: c = qr,
5610
+ infiniteCarrousel: c = jr,
5611
+ permanentGallery: u = qr,
5612
5612
  mediaLoadStrategy: v = Kr,
5613
5613
  minMediaWidth: e = $r,
5614
5614
  maxMediaWidth: E = Jr,
@@ -5666,8 +5666,17 @@ const No = ({
5666
5666
  if (document.dispatchEvent(Te), C || z) {
5667
5667
  const Ye = "POST", Ve = new Headers();
5668
5668
  h || (Ve.append("Content-Type", "application/json"), Ve.append("Cache-Control", "no-cache"), x && Ve.append("Authorization", `Bearer ${x}`));
5669
- const we = JSON.stringify(le);
5670
- C && await fetch(C, { method: Ye, headers: Ve, body: we }), z && await n2({ payload: le, compositionUrl: t });
5669
+ const we = JSON.stringify(le), l = [];
5670
+ C && l.push(fetch(C, { method: Ye, headers: Ve, body: we })), z && l.push(
5671
+ n2({ payload: le, compositionUrl: t })
5672
+ );
5673
+ const f = await Promise.allSettled(l);
5674
+ if (T)
5675
+ for (const Q of f)
5676
+ Q.status === "rejected" && console.error(
5677
+ "Analytics request failed:",
5678
+ Q.reason
5679
+ );
5671
5680
  }
5672
5681
  } catch (M) {
5673
5682
  if (!T) return;
@@ -5694,8 +5703,8 @@ const No = ({
5694
5703
  integration: o,
5695
5704
  max_items_shown: i,
5696
5705
  hide_categories_nav: d,
5697
- infinite_carrousel: l,
5698
- permanent_gallery: c,
5706
+ infinite_carrousel: c,
5707
+ permanent_gallery: u,
5699
5708
  media_load_strategy: v,
5700
5709
  min_media_width: e,
5701
5710
  preload_range: k,
@@ -5764,8 +5773,8 @@ const No = ({
5764
5773
  compositionUrl: t,
5765
5774
  integration: o,
5766
5775
  hideCategoriesNav: d,
5767
- infiniteCarrousel: l,
5768
- permanentGallery: c,
5776
+ infiniteCarrousel: c,
5777
+ permanentGallery: u,
5769
5778
  maxItemsShown: i,
5770
5779
  mediaLoadStrategy: v,
5771
5780
  minMediaWidth: e,
@@ -5816,19 +5825,19 @@ const No = ({
5816
5825
  }
5817
5826
  );
5818
5827
  }, a2 = ({ children: t, index: o, thumbnailSrc: i }) => {
5819
- const { registerCustomMedia: d, unregisterCustomMedia: l } = gt();
5828
+ const { registerCustomMedia: d, unregisterCustomMedia: c } = gt();
5820
5829
  return ve(() => {
5821
5830
  if (!t)
5822
5831
  return;
5823
- const c = d({
5832
+ const u = d({
5824
5833
  Media: t,
5825
5834
  index: o,
5826
5835
  thumbnailSrc: i
5827
5836
  });
5828
5837
  return () => {
5829
- l(c);
5838
+ c(u);
5830
5839
  };
5831
- }, [t, l, o, d, i]), null;
5840
+ }, [t, c, o, d, i]), null;
5832
5841
  }, g2 = (t) => Ot() ? /* @__PURE__ */ a(a2, { ...t }) : /* @__PURE__ */ a("slot", {}), i2 = ({ name: t, children: o }) => {
5833
5842
  const { registerIconConfig: i, unregisterIconConfig: d } = gt();
5834
5843
  return ve(() => {
@@ -5849,8 +5858,8 @@ function l2(t) {
5849
5858
  function Ut(t) {
5850
5859
  return Object.entries(t).reduce((o, [i, d]) => {
5851
5860
  if (d !== void 0) {
5852
- const l = l2(i);
5853
- o[l] = d.toString();
5861
+ const c = l2(i);
5862
+ o[c] = d.toString();
5854
5863
  }
5855
5864
  return o;
5856
5865
  }, {});
@@ -5863,8 +5872,8 @@ const w2 = (t) => /* @__PURE__ */ me(nt, { children: [
5863
5872
  onCompositionLoaded: o,
5864
5873
  onCompositionLoadError: i,
5865
5874
  onItemChange: d,
5866
- onExtendModeOn: l,
5867
- onExtendModeOff: c,
5875
+ onExtendModeOn: c,
5876
+ onExtendModeOff: u,
5868
5877
  onHotspotsOn: v,
5869
5878
  onHotspotsOff: e,
5870
5879
  onGalleryOpen: E,
@@ -5888,8 +5897,8 @@ const w2 = (t) => /* @__PURE__ */ me(nt, { children: [
5888
5897
  [rr]: o,
5889
5898
  [nr]: i,
5890
5899
  [or]: d,
5891
- [ar]: l,
5892
- [ir]: c,
5900
+ [ar]: c,
5901
+ [ir]: u,
5893
5902
  [Pt]: v,
5894
5903
  [Nt]: e,
5895
5904
  [sr]: E,
@@ -5923,8 +5932,8 @@ const w2 = (t) => /* @__PURE__ */ me(nt, { children: [
5923
5932
  o,
5924
5933
  i,
5925
5934
  d,
5926
- l,
5927
5935
  c,
5936
+ u,
5928
5937
  v,
5929
5938
  e,
5930
5939
  E,