@konnectio/core 4.1.0 → 4.1.2

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.
Files changed (71) hide show
  1. package/dist/{ActionField-Cpmt5Zg9.js → ActionField-RCouJ4bL.js} +3 -3
  2. package/dist/ActionField-RCouJ4bL.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-Vu5_xmgg.js → AvailabilitySkeleton-DMCMhOc1.js} +25 -25
  4. package/dist/AvailabilitySkeleton-DMCMhOc1.js.br +0 -0
  5. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-mLoIG3Dr.js +8595 -0
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-mLoIG3Dr.js.br +0 -0
  7. package/dist/{CheckoutWindow-BzNZHnDo.js → CheckoutWindow-CIVRhVLH.js} +83 -84
  8. package/dist/CheckoutWindow-CIVRhVLH.js.br +0 -0
  9. package/dist/{ErrorMessage-Do6glE2a.js → ErrorMessage-CRkFYH0N.js} +3 -3
  10. package/dist/ErrorMessage-CRkFYH0N.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-Ctf4T1Y9.js → EventAvailabilityForm-DuzDq1td.js} +4 -4
  12. package/dist/EventAvailabilityForm-DuzDq1td.js.br +0 -0
  13. package/dist/{Field-3qj4q_Da.js → Field-B89fBG1z.js} +4 -4
  14. package/dist/Field-B89fBG1z.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-CSJEkKWu.js → Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-DHYObk1q.js} +6 -6
  16. package/dist/SelectField.vue_vue_type_style_index_0_lang-DpqEmfGX.js +19391 -0
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-DpqEmfGX.js.br +0 -0
  18. package/dist/{TermsOfService-CxZCC2bU.js → TermsOfService-B3RWtSMr.js} +4 -4
  19. package/dist/_-CS3eNenD.js +5 -0
  20. package/dist/{_.vue_vue_type_style_index_0_lang-d3sS0itn.js → _.vue_vue_type_style_index_0_lang-CPp11Oc1.js} +3 -3
  21. package/dist/availability.js +6 -6
  22. package/dist/availability.js.br +0 -0
  23. package/dist/cancel-reservation.js +5 -5
  24. package/dist/cancel-reservation.js.br +0 -0
  25. package/dist/core.css +1 -0
  26. package/dist/core.css.br +0 -0
  27. package/dist/deep-link.js +1 -1
  28. package/dist/deep-link.js.br +0 -0
  29. package/dist/event.js +9 -9
  30. package/dist/event.js.br +0 -0
  31. package/dist/gift-card-validation.js +9 -9
  32. package/dist/gift-card-validation.js.br +0 -0
  33. package/dist/gift-card.js +10 -10
  34. package/dist/gift-card.js.br +0 -0
  35. package/dist/{giftCard-C0XVvEDP.js → giftCard-ovHKnHZ1.js} +3 -3
  36. package/dist/giftCard-ovHKnHZ1.js.br +0 -0
  37. package/dist/hotel.js +9112 -1582
  38. package/dist/hotel.js.br +0 -0
  39. package/dist/leaflet-src.esm-DBQWLG1M.js +6434 -0
  40. package/dist/leaflet-src.esm-DBQWLG1M.js.br +0 -0
  41. package/dist/marker-icon-2x-DVSLMKfE.js +5 -0
  42. package/dist/marker-icon-2x-DVSLMKfE.js.br +0 -0
  43. package/dist/marker-icon-DbhCZIpd.js +5 -0
  44. package/dist/marker-icon-DbhCZIpd.js.br +0 -0
  45. package/dist/marker-shadow-ZZvxUwqf.js +5 -0
  46. package/dist/{masonry.plugin-Djhh4bxD.js → masonry.plugin-DEok8Hbz.js} +1024 -1014
  47. package/dist/masonry.plugin-DEok8Hbz.js.br +0 -0
  48. package/dist/{mitt-Dv_UvJqG.js → mitt-Dh_4vPVI.js} +4190 -4146
  49. package/dist/mitt-Dh_4vPVI.js.br +0 -0
  50. package/dist/polyfill.js +9944 -6682
  51. package/dist/polyfill.js.br +0 -0
  52. package/dist/{style-DL_k5gwT.js → style-CXMzdeVK.js} +60 -60
  53. package/dist/style-CXMzdeVK.js.br +0 -0
  54. package/package.json +22 -19
  55. package/dist/ActionField-Cpmt5Zg9.js.br +0 -0
  56. package/dist/AvailabilitySkeleton-Vu5_xmgg.js.br +0 -0
  57. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Csznyq5Z.js +0 -8429
  58. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Csznyq5Z.js.br +0 -0
  59. package/dist/CheckoutWindow-BzNZHnDo.js.br +0 -0
  60. package/dist/ErrorMessage-Do6glE2a.js.br +0 -0
  61. package/dist/EventAvailabilityForm-Ctf4T1Y9.js.br +0 -0
  62. package/dist/Field-3qj4q_Da.js.br +0 -0
  63. package/dist/SelectField.vue_vue_type_style_index_0_lang-CAOBBtwX.js +0 -19349
  64. package/dist/SelectField.vue_vue_type_style_index_0_lang-CAOBBtwX.js.br +0 -0
  65. package/dist/_-CDHtcbcg.js +0 -5
  66. package/dist/giftCard-C0XVvEDP.js.br +0 -0
  67. package/dist/masonry.plugin-Djhh4bxD.js.br +0 -0
  68. package/dist/mitt-Dv_UvJqG.js.br +0 -0
  69. package/dist/style-DL_k5gwT.js.br +0 -0
  70. package/dist/style.css +0 -1
  71. package/dist/style.css.br +0 -0
@@ -1,9 +1,9 @@
1
- import { d as defineComponent, P as resolveComponent, Q as h, R as Comment, U as Text, F as Fragment, V as getCurrentInstance, r as ref, c as computed$1, E as watch, o as onMounted, a as openBlock, g as createElementBlock, b as createBlock, w as withCtx, e as createBaseVNode, h as withModifiers, j as createCommentVNode, f as createVNode, A as renderList, i as unref, n as normalizeClass, u as useI18n, s as storeToRefs, z as createSlots, G as withDirectives, t as toDisplayString, O as inject, K as resolveDirective, W as reactive, X as onUnmounted, v as renderSlot, Y as normalizeStyle, M as nextTick, H as vShow, x as createTextVNode, Z as mergeModels, y as useSlots, _ as useModel, T as Transition, B as isRef, q as mitt } from "./mitt-Dv_UvJqG.js";
2
- import { I as Icon, _ as _export_sfc, b as useHotelStore, f as useEventStore, T as TextField, K as convertDescription, B as BookingLayout, h as useUtilityStore, q as capitalized, k as daysBetweenDates, o as showPrice, s as showDate, x as InputField, J as BookingHeaderLayout, y as useApplyGiftCardStore, d as Clickable, z as usePaymentStore } from "./SelectField.vue_vue_type_style_index_0_lang-CAOBBtwX.js";
3
- import { B as Base$1, C as Checkbox, _ as _sfc_main$c } from "./CheckoutWindow-BzNZHnDo.js";
4
- import { A as ActionField } from "./ActionField-Cpmt5Zg9.js";
5
- import { E as Element$1 } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-CSJEkKWu.js";
6
- import { c as commonjsGlobal, g as getDefaultExportFromCjs } from "./_commonjsHelpers-DaMA6jEr.js";
1
+ import { d as defineComponent, Y as resolveComponent, O as h, Z as Comment, _ as Text, F as Fragment, $ as getCurrentInstance, r as ref, c as computed$1, E as watch, o as onMounted, a as openBlock, g as createElementBlock, b as createBlock, w as withCtx, e as createBaseVNode, h as withModifiers, j as createCommentVNode, f as createVNode, A as renderList, i as unref, n as normalizeClass, u as useI18n, s as storeToRefs, z as createSlots, G as withDirectives, t as toDisplayString, L as inject, K as resolveDirective, P as reactive, U as onUnmounted, v as renderSlot, a0 as normalizeStyle, N as nextTick, H as vShow, x as createTextVNode, a1 as mergeModels, y as useSlots, a2 as useModel, T as Transition, B as isRef, q as mitt } from "./mitt-Dh_4vPVI.js";
2
+ import { I as Icon, _ as _export_sfc, b as useHotelStore, f as useEventStore, T as TextField, M as convertDescription, B as BookingLayout, h as useUtilityStore, q as capitalized, k as daysBetweenDates, o as showPrice, s as showDate, x as InputField, J as BookingHeaderLayout, y as useApplyGiftCardStore, d as Clickable, z as usePaymentStore } from "./SelectField.vue_vue_type_style_index_0_lang-DpqEmfGX.js";
3
+ import { B as Base$1, C as Checkbox, _ as _sfc_main$c } from "./CheckoutWindow-CIVRhVLH.js";
4
+ import { A as ActionField } from "./ActionField-RCouJ4bL.js";
5
+ import { E as Element$1 } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-DHYObk1q.js";
6
+ import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-DaMA6jEr.js";
7
7
  /*! *****************************************************************************
8
8
  Copyright (c) Microsoft Corporation.
9
9
 
@@ -143,9 +143,9 @@ var isUndefined = function(s) {
143
143
  if (d) {
144
144
  var f = 0;
145
145
  try {
146
- for (var p = __values$1(d), _ = p.next(); !_.done; _ = p.next()) {
147
- var b = _.value;
148
- if (b === e) {
146
+ for (var _ = __values$1(d), g = _.next(); !g.done; g = _.next()) {
147
+ var y = g.value;
148
+ if (y === e) {
149
149
  d.splice(f, 1), d.length <= 0 && delete this._eventHandler[t];
150
150
  break;
151
151
  }
@@ -157,7 +157,7 @@ var isUndefined = function(s) {
157
157
  };
158
158
  } finally {
159
159
  try {
160
- _ && !_.done && (r = p.return) && r.call(p);
160
+ g && !g.done && (r = _.return) && r.call(_);
161
161
  } finally {
162
162
  if (n) throw n.error;
163
163
  }
@@ -343,12 +343,12 @@ function getLegacyAgent(s) {
343
343
  name: "unknown",
344
344
  version: "-1",
345
345
  majorVersion: -1
346
- }, r = findPreset(BROWSER_PRESETS, i), l = r.preset, u = r.version, d = findPreset(OS_PRESETS, i), f = d.preset, p = d.version, _ = findPreset(CHROMIUM_PRESETS, i);
347
- if (e.chromium = !!_.preset, e.chromiumVersion = _.version, !e.chromium) {
348
- var b = findPreset(WEBKIT_PRESETS, i);
349
- e.webkit = !!b.preset, e.webkitVersion = b.version;
346
+ }, r = findPreset(BROWSER_PRESETS, i), l = r.preset, u = r.version, d = findPreset(OS_PRESETS, i), f = d.preset, _ = d.version, g = findPreset(CHROMIUM_PRESETS, i);
347
+ if (e.chromium = !!g.preset, e.chromiumVersion = g.version, !e.chromium) {
348
+ var y = findPreset(WEBKIT_PRESETS, i);
349
+ e.webkit = !!y.preset, e.webkitVersion = y.version;
350
350
  }
351
- return f && (n.name = f.id, n.version = p, n.majorVersion = parseInt(p, 10)), l && (e.name = l.id, e.version = u, e.webview && n.name === "ios" && e.name !== "safari" && (e.webview = !1)), e.majorVersion = parseInt(e.version, 10), {
351
+ return f && (n.name = f.id, n.version = _, n.majorVersion = parseInt(_, 10)), l && (e.name = l.id, e.version = u, e.webview && n.name === "ios" && e.name !== "safari" && (e.webview = !1)), e.majorVersion = parseInt(e.version, 10), {
352
352
  browser: e,
353
353
  os: n,
354
354
  isMobile: t,
@@ -370,21 +370,21 @@ function getClientHintsAgent(s) {
370
370
  version: "-1",
371
371
  majorVersion: -1
372
372
  };
373
- l.webkit = !l.chromium && some(WEBKIT_PRESETS, function(b) {
374
- return findBrand(t, b);
373
+ l.webkit = !l.chromium && some(WEBKIT_PRESETS, function(y) {
374
+ return findBrand(t, y);
375
375
  });
376
376
  var d = findPresetBrand(CHROMIUM_PRESETS, t);
377
377
  if (l.chromium = !!d.brand, l.chromiumVersion = d.version, !l.chromium) {
378
378
  var f = findPresetBrand(WEBKIT_PRESETS, t);
379
379
  l.webkit = !!f.brand, l.webkitVersion = f.version;
380
380
  }
381
- var p = find$1(OS_PRESETS, function(b) {
382
- return new RegExp("" + b.test, "g").exec(r);
381
+ var _ = find$1(OS_PRESETS, function(y) {
382
+ return new RegExp("" + y.test, "g").exec(r);
383
383
  });
384
- u.name = p ? p.id : "";
384
+ u.name = _ ? _.id : "";
385
385
  {
386
- var _ = findPresetBrand(BROWSER_PRESETS, t);
387
- l.name = _.brand || l.name, l.version = _.brand && s ? s.uaFullVersion : _.version;
386
+ var g = findPresetBrand(BROWSER_PRESETS, t);
387
+ l.name = g.brand || l.name, l.version = g.brand && s ? s.uaFullVersion : g.version;
388
388
  }
389
389
  return l.webkit && (u.name = e ? "ios" : "mac"), u.name === "ios" && l.webview && (l.version = "-1"), u.version = convertVersion(u.version), l.version = convertVersion(l.version), u.majorVersion = parseInt(u.version, 10), l.majorVersion = parseInt(l.version, 10), {
390
390
  browser: l,
@@ -778,7 +778,7 @@ var requestAnimationFrame$2 = function(s) {
778
778
  }, i.triggerChange = function(t, e, n, r) {
779
779
  var l = this;
780
780
  r === void 0 && (r = !1);
781
- var u = this.animationManager, d = u.axisManager, f = u.getEventInfo(), p = this._getRoundPos(t, e), _ = p.roundPos, b = p.roundDepa, v = d.moveTo(_, b), m = n?.event || f?.event || null, P = {
781
+ var u = this.animationManager, d = u.axisManager, f = u.getEventInfo(), _ = this._getRoundPos(t, e), g = _.roundPos, y = _.roundDepa, v = d.moveTo(g, y), m = n?.event || f?.event || null, P = {
782
782
  pos: v.pos,
783
783
  delta: v.delta,
784
784
  bounceRatio: this._getBounceRatio(v.pos),
@@ -789,11 +789,11 @@ var requestAnimationFrame$2 = function(s) {
789
789
  set: m ? this._createUserControll(v.pos) : function() {
790
790
  }
791
791
  // eslint-disable-line @typescript-eslint/no-empty-function
792
- }, y = new ComponentEvent$1("change", P);
793
- return this._axes.trigger(y), Object.keys(v.pos).forEach(function(g) {
794
- var E = v.pos[g];
795
- getObserver(l._axes, g, E).current = E;
796
- }), m && d.set(P.set().destPos), !y.isCanceled();
792
+ }, b = new ComponentEvent$1("change", P);
793
+ return this._axes.trigger(b), Object.keys(v.pos).forEach(function(p) {
794
+ var E = v.pos[p];
795
+ getObserver(l._axes, p, E).current = E;
796
+ }), m && d.set(P.set().destPos), !b.isCanceled();
797
797
  }, i.triggerAnimationStart = function(t) {
798
798
  var e = this._getRoundPos(t.destPos, t.depaPos), n = e.roundPos, r = e.roundDepa;
799
799
  t.destPos = n, t.depaPos = r, t.setTo = this._createUserControll(t.destPos, t.duration);
@@ -946,22 +946,22 @@ var requestAnimationFrame$2 = function(s) {
946
946
  var e, n = this.prevEvent, r = this._getCenter(t), l = n ? this._getMovement(t) : {
947
947
  x: 0,
948
948
  y: 0
949
- }, u = n ? this._getScale(t) : 1, d = n ? getAngle(r.x - n.center.x, r.y - n.center.y) : 0, f = n ? n.deltaX + l.x : l.x, p = n ? n.deltaY + l.y : l.y, _ = l.x, b = l.y, v = this._latestInterval, m = Date.now(), P = v ? m - v.timestamp : 0, y = n ? n.velocityX : 0, g = n ? n.velocityY : 0;
950
- return (!v || P >= VELOCITY_INTERVAL) && (v && (e = [(f - v.deltaX) / P, (p - v.deltaY) / P], y = e[0], g = e[1]), this._latestInterval = {
949
+ }, u = n ? this._getScale(t) : 1, d = n ? getAngle(r.x - n.center.x, r.y - n.center.y) : 0, f = n ? n.deltaX + l.x : l.x, _ = n ? n.deltaY + l.y : l.y, g = l.x, y = l.y, v = this._latestInterval, m = Date.now(), P = v ? m - v.timestamp : 0, b = n ? n.velocityX : 0, p = n ? n.velocityY : 0;
950
+ return (!v || P >= VELOCITY_INTERVAL) && (v && (e = [(f - v.deltaX) / P, (_ - v.deltaY) / P], b = e[0], p = e[1]), this._latestInterval = {
951
951
  timestamp: m,
952
952
  deltaX: f,
953
- deltaY: p
953
+ deltaY: _
954
954
  }), {
955
955
  srcEvent: t,
956
956
  scale: u,
957
957
  angle: d,
958
958
  center: r,
959
959
  deltaX: f,
960
- deltaY: p,
961
- offsetX: _,
962
- offsetY: b,
963
- velocityX: y,
964
- velocityY: g,
960
+ deltaY: _,
961
+ offsetX: g,
962
+ offsetY: y,
963
+ velocityX: b,
964
+ velocityY: p,
965
965
  preventSystemEvent: !0
966
966
  };
967
967
  }, i._getDistance = function(t, e) {
@@ -1184,30 +1184,30 @@ var InputObserver = /* @__PURE__ */ function() {
1184
1184
  this._isStopped = !1, this._interruptManager.setInterrupt(!0), this._animationManager.stopAnimation(n), ++this._eventManager.holdingCount, this._moveDistance || this._eventManager.hold(this._axisManager.get(), n), this._isOutside = this._axisManager.isOutside(t.axes), this._moveDistance = this._axisManager.get(t.axes);
1185
1185
  }
1186
1186
  }, i.change = function(t, e, n, r) {
1187
- if (!(this._isStopped || !this._interruptManager.isInterrupting() || this._axisManager.every(n, function(b) {
1188
- return b === 0;
1187
+ if (!(this._isStopped || !this._interruptManager.isInterrupting() || this._axisManager.every(n, function(y) {
1188
+ return y === 0;
1189
1189
  }))) {
1190
1190
  var l = e.srcEvent ? e.srcEvent : e;
1191
1191
  if (!l.__childrenAxesAlreadyChanged) {
1192
1192
  var u = this._moveDistance || this._axisManager.get(t.axes), d;
1193
- d = map(u, function(b, v) {
1194
- return b + (n[v] || 0);
1195
- }), this._moveDistance && (this._moveDistance = this._axisManager.map(d, function(b, v) {
1193
+ d = map(u, function(y, v) {
1194
+ return y + (n[v] || 0);
1195
+ }), this._moveDistance && (this._moveDistance = this._axisManager.map(d, function(y, v) {
1196
1196
  var m = v.circular, P = v.range;
1197
- return m && (m[0] || m[1]) ? getCirculatedPos(b, P, m) : b;
1198
- })), this._isOutside && this._axisManager.every(u, function(b, v) {
1199
- return !isOutside(b, v.range);
1197
+ return m && (m[0] || m[1]) ? getCirculatedPos(y, P, m) : y;
1198
+ })), this._isOutside && this._axisManager.every(u, function(y, v) {
1199
+ return !isOutside(y, v.range);
1200
1200
  }) && (this._isOutside = !1), u = this._atOutside(u), d = this._atOutside(d), (!this.options.nested || !this._isEndofAxis(n, u, d)) && (l.__childrenAxesAlreadyChanged = !0);
1201
1201
  var f = {
1202
1202
  input: t,
1203
1203
  event: e
1204
1204
  };
1205
1205
  if (r) {
1206
- var p = this._animationManager.getDuration(d, u);
1207
- this._animationManager.animateTo(d, p, f);
1206
+ var _ = this._animationManager.getDuration(d, u);
1207
+ this._animationManager.animateTo(d, _, f);
1208
1208
  } else {
1209
- var _ = !this._eventManager.triggerChange(d, u, f, !0);
1210
- _ && (this._isStopped = !0, this._moveDistance = null, this._animationManager.finish(!1));
1209
+ var g = !this._eventManager.triggerChange(d, u, f, !0);
1210
+ g && (this._isStopped = !0, this._moveDistance = null, this._animationManager.finish(!1));
1211
1211
  }
1212
1212
  }
1213
1213
  }
@@ -1217,27 +1217,27 @@ var InputObserver = /* @__PURE__ */ function() {
1217
1217
  l.__childrenAxesAlreadyReleased && (n = n.map(function() {
1218
1218
  return 0;
1219
1219
  }));
1220
- var u = this._axisManager.get(t.axes), d = this._axisManager.get(), f = this._animationManager.getDisplacement(n), p = toAxis(t.axes, f), _ = this._axisManager.get(this._axisManager.map(p, function(g, E, T) {
1221
- return E.circular && (E.circular[0] || E.circular[1]) ? u[T] + g : getInsidePosition(u[T] + g, E.range, E.circular, E.bounce);
1220
+ var u = this._axisManager.get(t.axes), d = this._axisManager.get(), f = this._animationManager.getDisplacement(n), _ = toAxis(t.axes, f), g = this._axisManager.get(this._axisManager.map(_, function(p, E, T) {
1221
+ return E.circular && (E.circular[0] || E.circular[1]) ? u[T] + p : getInsidePosition(u[T] + p, E.range, E.circular, E.bounce);
1222
1222
  }));
1223
1223
  l.__childrenAxesAlreadyReleased = !0;
1224
- var b = this._animationManager.getDuration(_, u, r);
1225
- b === 0 && (_ = __assign$3({}, d));
1224
+ var y = this._animationManager.getDuration(g, u, r);
1225
+ y === 0 && (g = __assign$3({}, d));
1226
1226
  var v = {
1227
1227
  depaPos: d,
1228
- destPos: _,
1229
- duration: b,
1230
- delta: this._axisManager.getDelta(d, _),
1228
+ destPos: g,
1229
+ duration: y,
1230
+ delta: this._axisManager.getDelta(d, g),
1231
1231
  inputEvent: e,
1232
1232
  input: t,
1233
1233
  isTrusted: !0
1234
1234
  };
1235
1235
  --this._eventManager.holdingCount, this._eventManager.triggerRelease(v), this._eventManager.holdingCount === 0 && (this._moveDistance = null);
1236
- var m = this._animationManager.getUserControl(v), P = equal(m.destPos, d), y = {
1236
+ var m = this._animationManager.getUserControl(v), P = equal(m.destPos, d), b = {
1237
1237
  input: t,
1238
1238
  event: e
1239
1239
  };
1240
- P || m.duration === 0 ? (P || this._eventManager.triggerChange(m.destPos, d, y, !0), this._interruptManager.setInterrupt(!1), this._axisManager.isOutside() ? this._animationManager.restore(y) : this._eventManager.triggerFinish(!0)) : this._animationManager.animateTo(m.destPos, m.duration, y);
1240
+ P || m.duration === 0 ? (P || this._eventManager.triggerChange(m.destPos, d, b, !0), this._interruptManager.setInterrupt(!1), this._axisManager.isOutside() ? this._animationManager.restore(b) : this._eventManager.triggerFinish(!0)) : this._animationManager.animateTo(m.destPos, m.duration, b);
1241
1241
  }
1242
1242
  }, i._atOutside = function(t) {
1243
1243
  var e = this;
@@ -1318,17 +1318,17 @@ var InputObserver = /* @__PURE__ */ function() {
1318
1318
  var r = this;
1319
1319
  this.stopAnimation();
1320
1320
  var l = this._createAnimationParam(t, e, n), u = __assign$3({}, l.depaPos), d = this.eventManager.triggerAnimationStart(l), f = this.getUserControl(l);
1321
- if (!d && this.axisManager.every(f.destPos, function(_, b) {
1322
- return isCircularable(_, b.range, b.circular);
1321
+ if (!d && this.axisManager.every(f.destPos, function(g, y) {
1322
+ return isCircularable(g, y.range, y.circular);
1323
1323
  }) && console.warn("You can't stop the 'animation' event when 'circular' is true."), d && !equal(f.destPos, u)) {
1324
- var p = n?.event || null;
1324
+ var _ = n?.event || null;
1325
1325
  this._animateLoop({
1326
1326
  depaPos: u,
1327
1327
  destPos: f.destPos,
1328
1328
  duration: f.duration,
1329
1329
  delta: this.axisManager.getDelta(u, f.destPos),
1330
- isTrusted: !!p,
1331
- inputEvent: p,
1330
+ isTrusted: !!_,
1331
+ inputEvent: _,
1332
1332
  input: n?.input || null
1333
1333
  }, function() {
1334
1334
  return r.animationEnd();
@@ -1344,8 +1344,8 @@ var InputObserver = /* @__PURE__ */ function() {
1344
1344
  return r[d] !== u;
1345
1345
  });
1346
1346
  return Object.keys(l).length ? (l = this.axisManager.map(l, function(u, d) {
1347
- var f = d.range, p = d.circular;
1348
- return p && (p[0] || p[1]) ? u : getInsidePosition(u, f, p);
1347
+ var f = d.range, _ = d.circular;
1348
+ return _ && (_[0] || _[1]) ? u : getInsidePosition(u, f, _);
1349
1349
  }), equal(l, r) ? this : (e > 0 ? this.animateTo(l, e) : (this.stopAnimation(), this.eventManager.triggerChange(l), this.finish(!1)), this)) : this;
1350
1350
  }, i.setBy = function(t, e) {
1351
1351
  return e === void 0 && (e = 0), this.setTo(map(this.axisManager.get(Object.keys(t)), function(n, r) {
@@ -1375,11 +1375,11 @@ var InputObserver = /* @__PURE__ */ function() {
1375
1375
  return d;
1376
1376
  }), l = this._initState(this._animateParam), u = function() {
1377
1377
  n._raf = null;
1378
- var d = n._animateParam, f = n._getNextState(l), p = !n.eventManager.triggerChange(f.pos, l.pos);
1378
+ var d = n._animateParam, f = n._getNextState(l), _ = !n.eventManager.triggerChange(f.pos, l.pos);
1379
1379
  if (l = f, f.finished) {
1380
1380
  d.destPos = n._getFinalPos(d.destPos, r), equal(d.destPos, n.axisManager.get(Object.keys(d.destPos))) || n.eventManager.triggerChange(d.destPos, f.pos), e();
1381
1381
  return;
1382
- } else p ? n.finish(!1) : n._raf = requestAnimationFrame$2(u);
1382
+ } else _ ? n.finish(!1) : n._raf = requestAnimationFrame$2(u);
1383
1383
  };
1384
1384
  u();
1385
1385
  } else
@@ -1388,8 +1388,8 @@ var InputObserver = /* @__PURE__ */ function() {
1388
1388
  var n = this, r = 1e-6, l = map(t, function(u, d) {
1389
1389
  if (u >= e[d] - r && u <= e[d] + r)
1390
1390
  return e[d];
1391
- var f = n._getRoundUnit(u, d), p = roundNumber(u, f);
1392
- return p;
1391
+ var f = n._getRoundUnit(u, d), _ = roundNumber(u, f);
1392
+ return _;
1393
1393
  });
1394
1394
  return l;
1395
1395
  }, i._getRoundUnit = function(t, e) {
@@ -1423,8 +1423,8 @@ var InputObserver = /* @__PURE__ */ function() {
1423
1423
  this._initialEasingPer = this._prevEasingPer, r.delta = this.axisManager.getDelta(f, u), r.destPos = u;
1424
1424
  }
1425
1425
  if (e?.duration) {
1426
- var p = (l + this._durationOffset) / r.duration;
1427
- this._durationOffset = p * d - l, r.duration = d;
1426
+ var _ = (l + this._durationOffset) / r.duration;
1427
+ this._durationOffset = _ * d - l, r.duration = d;
1428
1428
  }
1429
1429
  }
1430
1430
  }, t._initState = function(e) {
@@ -1436,18 +1436,18 @@ var InputObserver = /* @__PURE__ */ function() {
1436
1436
  }, t._getNextState = function(e) {
1437
1437
  var n = this, r = this._animateParam, l = e.pos, u = r.destPos, d = map(l, function(v, m) {
1438
1438
  return v <= u[m] ? 1 : -1;
1439
- }), f = (/* @__PURE__ */ new Date()).getTime() - r.startTime, p = (f + this._durationOffset) / r.duration, _ = this._easing(p), b = this.axisManager.map(l, function(v, m, P) {
1440
- var y = p >= 1 ? u[P] : v + r.delta[P] * (_ - n._prevEasingPer) / (1 - n._initialEasingPer), g = getCirculatedPos(y, m.range, m.circular);
1441
- if (y !== g) {
1439
+ }), f = (/* @__PURE__ */ new Date()).getTime() - r.startTime, _ = (f + this._durationOffset) / r.duration, g = this._easing(_), y = this.axisManager.map(l, function(v, m, P) {
1440
+ var b = _ >= 1 ? u[P] : v + r.delta[P] * (g - n._prevEasingPer) / (1 - n._initialEasingPer), p = getCirculatedPos(b, m.range, m.circular);
1441
+ if (b !== p) {
1442
1442
  var E = d[P] * (m.range[1] - m.range[0]);
1443
1443
  u[P] -= E, l[P] -= E;
1444
1444
  }
1445
- return g;
1445
+ return p;
1446
1446
  });
1447
- return this._prevEasingPer = _, {
1448
- pos: b,
1449
- easingPer: _,
1450
- finished: _ >= 1
1447
+ return this._prevEasingPer = g, {
1448
+ pos: y,
1449
+ easingPer: g,
1450
+ finished: g >= 1
1451
1451
  };
1452
1452
  }, t._easing = function(e) {
1453
1453
  return e > 1 ? 1 : this._options.easing(e);
@@ -1577,14 +1577,14 @@ var InputObserver = /* @__PURE__ */ function() {
1577
1577
  this._dragged = !1, this._isOverThreshold = !1, this._observer.hold(this, d), this._atRightEdge = IS_IOS_SAFARI && d.center.x > window.innerWidth - f, this._attachWindowEvent(u), l && d.srcEvent.type !== "touchstart" && d.srcEvent.preventDefault(), u.prevEvent = d;
1578
1578
  }
1579
1579
  }, i._onPanmove = function(t) {
1580
- var e = this, n = this.options, r = n.iOSEdgeSwipeThreshold, l = n.preventClickOnDrag, u = n.releaseOnScroll, d = n.inputKey, f = n.inputButton, p = n.threshold, _ = n.thresholdAngle, b = this._activeEvent, v = b.onEventMove(t, d, f), m = b.getTouches(t, f);
1580
+ var e = this, n = this.options, r = n.iOSEdgeSwipeThreshold, l = n.preventClickOnDrag, u = n.releaseOnScroll, d = n.inputKey, f = n.inputButton, _ = n.threshold, g = n.thresholdAngle, y = this._activeEvent, v = y.onEventMove(t, d, f), m = y.getTouches(t, f);
1581
1581
  if (m === 0 || u && v && !v.srcEvent.cancelable) {
1582
1582
  this._onPanend(t);
1583
1583
  return;
1584
1584
  }
1585
1585
  if (!(!v || !this._enabled || m > 1)) {
1586
- var P = getDirectionByAngle(v.angle, _), y = useDirection(DIRECTION_HORIZONTAL, this._direction, P), g = useDirection(DIRECTION_VERTICAL, this._direction, P);
1587
- if (b.prevEvent && IS_IOS_SAFARI) {
1586
+ var P = getDirectionByAngle(v.angle, g), b = useDirection(DIRECTION_HORIZONTAL, this._direction, P), p = useDirection(DIRECTION_VERTICAL, this._direction, P);
1587
+ if (y.prevEvent && IS_IOS_SAFARI) {
1588
1588
  var E = v.center.x < 0;
1589
1589
  if (E) {
1590
1590
  this.release();
@@ -1597,10 +1597,10 @@ var InputObserver = /* @__PURE__ */ function() {
1597
1597
  }, 100);
1598
1598
  }
1599
1599
  }
1600
- var O = this._getDistance([v.deltaX, v.deltaY], [y, g]), S = this._getOffset([v.offsetX, v.offsetY], [y, g]), C = S.some(function(x) {
1600
+ var O = this._getDistance([v.deltaX, v.deltaY], [b, p]), S = this._getOffset([v.offsetX, v.offsetY], [b, p]), C = S.some(function(x) {
1601
1601
  return x !== 0;
1602
1602
  });
1603
- C && (v.srcEvent.cancelable !== !1 && v.srcEvent.preventDefault(), v.srcEvent.stopPropagation()), v.preventSystemEvent = C, C && (this._isOverThreshold || O >= p) && (this._dragged = l, this._isOverThreshold = !0, this._observer.change(this, v, toAxis(this.axes, S))), b.prevEvent = v;
1603
+ C && (v.srcEvent.cancelable !== !1 && v.srcEvent.preventDefault(), v.srcEvent.stopPropagation()), v.preventSystemEvent = C, C && (this._isOverThreshold || O >= _) && (this._dragged = l, this._isOverThreshold = !0, this._observer.change(this, v, toAxis(this.axes, S))), y.prevEvent = v;
1604
1604
  }
1605
1605
  }, i._onPanend = function(t) {
1606
1606
  var e = this.options.inputButton, n = this._activeEvent;
@@ -1852,18 +1852,18 @@ var Loader = /* @__PURE__ */ function(s) {
1852
1852
  var f = n.getLoader(u, {
1853
1853
  prefix: r
1854
1854
  });
1855
- return f.check(), f.on("error", function(p) {
1856
- n.onError(d, p.target);
1857
- }).on("preReady", function(p) {
1858
- var _ = n.elementInfos[d];
1859
- _.hasLoading = p.hasLoading, _.isSkip = p.isSkip;
1860
- var b = n.checkPreReady(d);
1861
- n.onPreReadyElement(d), b && n.onPreReady();
1862
- }).on("ready", function(p) {
1863
- var _ = p.withPreReady, b = p.hasLoading, v = p.isSkip, m = n.elementInfos[d];
1864
- m.hasLoading = b, m.isSkip = v;
1865
- var P = _ && n.checkPreReady(d), y = n.checkReady(d);
1866
- _ && n.onPreReadyElement(d), n.onReadyElement(d), P && n.onPreReady(), y && n.onReady();
1855
+ return f.check(), f.on("error", function(_) {
1856
+ n.onError(d, _.target);
1857
+ }).on("preReady", function(_) {
1858
+ var g = n.elementInfos[d];
1859
+ g.hasLoading = _.hasLoading, g.isSkip = _.isSkip;
1860
+ var y = n.checkPreReady(d);
1861
+ n.onPreReadyElement(d), y && n.onPreReady();
1862
+ }).on("ready", function(_) {
1863
+ var g = _.withPreReady, y = _.hasLoading, v = _.isSkip, m = n.elementInfos[d];
1864
+ m.hasLoading = y, m.isSkip = v;
1865
+ var P = g && n.checkPreReady(d), b = n.checkReady(d);
1866
+ g && n.onPreReadyElement(d), n.onReadyElement(d), P && n.onPreReady(), b && n.onReady();
1867
1867
  }), {
1868
1868
  loader: f,
1869
1869
  element: u,
@@ -1900,25 +1900,25 @@ var Loader = /* @__PURE__ */ function(s) {
1900
1900
  var r = this, l = e.tagName.toLowerCase(), u = this.options.loaders, d = n.prefix, f = Object.keys(u);
1901
1901
  if (u[l])
1902
1902
  return new u[l](e, n);
1903
- var p = new ElementLoader(e, n), _ = toArray$1(e.querySelectorAll(f.join(", ")));
1904
- p.setHasLoading(_.some(function(m) {
1903
+ var _ = new ElementLoader(e, n), g = toArray$1(e.querySelectorAll(f.join(", ")));
1904
+ _.setHasLoading(g.some(function(m) {
1905
1905
  return hasLoadingAttribute(m, d);
1906
1906
  }));
1907
- var b = !1, v = this.clone().on("error", function(m) {
1908
- p.onError(m.target);
1907
+ var y = !1, v = this.clone().on("error", function(m) {
1908
+ _.onError(m.target);
1909
1909
  }).on("ready", function() {
1910
- p.onReady(b);
1910
+ _.onReady(y);
1911
1911
  });
1912
- return p.on("requestChildren", function() {
1912
+ return _.on("requestChildren", function() {
1913
1913
  var m = getContentElements(e, f, r.options.prefix);
1914
1914
  v.check(m).on("preReady", function(P) {
1915
- b = P.isReady, b || p.onPreReady();
1915
+ y = P.isReady, y || _.onPreReady();
1916
1916
  });
1917
1917
  }).on("reqeustReadyChildren", function() {
1918
- v.check(_);
1918
+ v.check(g);
1919
1919
  }).on("requestDestroy", function() {
1920
1920
  v.destroy();
1921
- }), p;
1921
+ }), _;
1922
1922
  }, t.clone = function() {
1923
1923
  return new i(__assign$2({}, this.options));
1924
1924
  }, t.checkPreReady = function(e) {
@@ -2055,22 +2055,22 @@ function __awaiter$1(s, i, t, e) {
2055
2055
  });
2056
2056
  }
2057
2057
  return new (t || (t = Promise))(function(r, l) {
2058
- function u(p) {
2058
+ function u(_) {
2059
2059
  try {
2060
- f(e.next(p));
2061
- } catch (_) {
2062
- l(_);
2060
+ f(e.next(_));
2061
+ } catch (g) {
2062
+ l(g);
2063
2063
  }
2064
2064
  }
2065
- function d(p) {
2065
+ function d(_) {
2066
2066
  try {
2067
- f(e.throw(p));
2068
- } catch (_) {
2069
- l(_);
2067
+ f(e.throw(_));
2068
+ } catch (g) {
2069
+ l(g);
2070
2070
  }
2071
2071
  }
2072
- function f(p) {
2073
- p.done ? r(p.value) : n(p.value).then(u, d);
2072
+ function f(_) {
2073
+ _.done ? r(_.value) : n(_.value).then(u, d);
2074
2074
  }
2075
2075
  f((e = e.apply(s, [])).next());
2076
2076
  });
@@ -2093,8 +2093,8 @@ function __generator$1(s, i) {
2093
2093
  return this;
2094
2094
  }), l;
2095
2095
  function u(f) {
2096
- return function(p) {
2097
- return d([f, p]);
2096
+ return function(_) {
2097
+ return d([f, _]);
2098
2098
  };
2099
2099
  }
2100
2100
  function d(f) {
@@ -2138,8 +2138,8 @@ function __generator$1(s, i) {
2138
2138
  continue;
2139
2139
  }
2140
2140
  f = i.call(s, t);
2141
- } catch (p) {
2142
- f = [6, p], n = 0;
2141
+ } catch (_) {
2142
+ f = [6, _], n = 0;
2143
2143
  } finally {
2144
2144
  e = r = 0;
2145
2145
  }
@@ -2450,12 +2450,12 @@ var CODE = {
2450
2450
  if (d)
2451
2451
  l = n ? u : u - f;
2452
2452
  else {
2453
- var p = t ? parseFloat(r.paddingLeft || "0") + parseFloat(r.paddingRight || "0") : parseFloat(r.paddingTop || "0") + parseFloat(r.paddingBottom || "0");
2454
- l = n ? u + p + f : u + p;
2453
+ var _ = t ? parseFloat(r.paddingLeft || "0") + parseFloat(r.paddingRight || "0") : parseFloat(r.paddingTop || "0") + parseFloat(r.paddingBottom || "0");
2454
+ l = n ? u + _ + f : u + _;
2455
2455
  }
2456
2456
  } else {
2457
- var _ = t ? "Width" : "Height";
2458
- l = n ? i["offset" + _] : i["client" + _];
2457
+ var g = t ? "Width" : "Height";
2458
+ l = n ? i["offset" + g] : i["client" + g];
2459
2459
  }
2460
2460
  return Math.max(l, 0);
2461
2461
  }, setPrototypeOf = Object.setPrototypeOf || function(s, i) {
@@ -2838,15 +2838,15 @@ var State = /* @__PURE__ */ function() {
2838
2838
  var e = t.flicking, n = t.axesEvent, r = t.transitTo, l = n.delta[POSITION_KEY];
2839
2839
  if (l) {
2840
2840
  this._delta += l;
2841
- var u = e.camera, d = u.position, f = n.pos[POSITION_KEY], p = e.circularEnabled ? circulatePosition(f, u.range.min, u.range.max) : f;
2842
- u.lookAt(p);
2843
- var _ = new ComponentEvent$1(EVENTS.MOVE, {
2841
+ var u = e.camera, d = u.position, f = n.pos[POSITION_KEY], _ = e.circularEnabled ? circulatePosition(f, u.range.min, u.range.max) : f;
2842
+ u.lookAt(_);
2843
+ var g = new ComponentEvent$1(EVENTS.MOVE, {
2844
2844
  isTrusted: n.isTrusted,
2845
2845
  holding: this.holding,
2846
2846
  direction: getDirection(0, n.delta[POSITION_KEY]),
2847
2847
  axesEvent: n
2848
2848
  });
2849
- e.trigger(_), _.isCanceled() && (u.lookAt(d), r(STATE_TYPE.DISABLED));
2849
+ e.trigger(g), g.isCanceled() && (u.lookAt(d), r(STATE_TYPE.DISABLED));
2850
2850
  }
2851
2851
  }, s;
2852
2852
  }(), IdleState = /* @__PURE__ */ function(s) {
@@ -2909,18 +2909,18 @@ var State = /* @__PURE__ */ function() {
2909
2909
  }, t.onFinish = function(e) {
2910
2910
  var n, r, l = e.flicking, u = e.transitTo;
2911
2911
  if (u(STATE_TYPE.IDLE), !!this._releaseEvent) {
2912
- var d = this._releaseEvent, f = d.inputEvent.srcEvent, p;
2912
+ var d = this._releaseEvent, f = d.inputEvent.srcEvent, _;
2913
2913
  if (f.type === "touchend") {
2914
- var _ = f, b = _.changedTouches[0];
2915
- p = document.elementFromPoint(b.clientX, b.clientY);
2914
+ var g = f, y = g.changedTouches[0];
2915
+ _ = document.elementFromPoint(y.clientX, y.clientY);
2916
2916
  } else
2917
- p = f.target;
2917
+ _ = f.target;
2918
2918
  var v = l.renderer.panels, m = null;
2919
2919
  try {
2920
- for (var P = __values(v), y = P.next(); !y.done; y = P.next()) {
2921
- var g = y.value;
2922
- if (g.contains(p)) {
2923
- m = g;
2920
+ for (var P = __values(v), b = P.next(); !b.done; b = P.next()) {
2921
+ var p = b.value;
2922
+ if (p.contains(_)) {
2923
+ m = p;
2924
2924
  break;
2925
2925
  }
2926
2926
  }
@@ -2930,7 +2930,7 @@ var State = /* @__PURE__ */ function() {
2930
2930
  };
2931
2931
  } finally {
2932
2932
  try {
2933
- y && !y.done && (r = P.return) && r.call(P);
2933
+ b && !b.done && (r = P.return) && r.call(P);
2934
2934
  } finally {
2935
2935
  if (n) throw n.error;
2936
2936
  }
@@ -2964,9 +2964,9 @@ var State = /* @__PURE__ */ function() {
2964
2964
  return;
2965
2965
  }
2966
2966
  u(STATE_TYPE.ANIMATING);
2967
- var d = r.control, f = l.destPos[POSITION_KEY], p = Math.max(l.duration, r.duration);
2967
+ var d = r.control, f = l.destPos[POSITION_KEY], _ = Math.max(l.duration, r.duration);
2968
2968
  try {
2969
- d.moveToPosition(f, p, l);
2969
+ d.moveToPosition(f, _, l);
2970
2970
  } catch {
2971
2971
  u(STATE_TYPE.IDLE), l.setTo((n = {}, n[POSITION_KEY] = r.camera.position, n), 0);
2972
2972
  }
@@ -2994,8 +2994,8 @@ var State = /* @__PURE__ */ function() {
2994
2994
  direction: getDirection(f.start, f.end),
2995
2995
  axesEvent: r
2996
2996
  }));
2997
- var p = this._targetPanel;
2998
- p && u.setActive(p, u.activePanel, r.isTrusted);
2997
+ var _ = this._targetPanel;
2998
+ _ && u.setActive(_, u.activePanel, r.isTrusted);
2999
2999
  }, i;
3000
3000
  }(State), DisabledState = /* @__PURE__ */ function(s) {
3001
3001
  __extends$2(i, s);
@@ -3246,10 +3246,10 @@ var State = /* @__PURE__ */ function() {
3246
3246
  r.connect(t.horizontal ? [POSITION_KEY, ""] : ["", POSITION_KEY], this._panInput);
3247
3247
  var l = function(d) {
3248
3248
  var f = EVENT[d];
3249
- r.on(f, function(p) {
3249
+ r.on(f, function(_) {
3250
3250
  n._stateMachine.fire(f, {
3251
3251
  flicking: t,
3252
- axesEvent: p
3252
+ axesEvent: _
3253
3253
  });
3254
3254
  });
3255
3255
  };
@@ -3294,31 +3294,31 @@ var State = /* @__PURE__ */ function() {
3294
3294
  return Promise.reject(new FlickingError(MESSAGE.NOT_ATTACHED_TO_FLICKING, CODE.NOT_ATTACHED_TO_FLICKING));
3295
3295
  var f = u.get([POSITION_KEY])[POSITION_KEY];
3296
3296
  if (f === t) {
3297
- var p = getFlickingAttached(this._flicking);
3298
- return p.camera.lookAt(t), d.targetPanel && p.control.setActive(d.targetPanel, p.control.activePanel, (l = n?.isTrusted) !== null && l !== void 0 ? l : !1), Promise.resolve();
3297
+ var _ = getFlickingAttached(this._flicking);
3298
+ return _.camera.lookAt(t), d.targetPanel && _.control.setActive(d.targetPanel, _.control.activePanel, (l = n?.isTrusted) !== null && l !== void 0 ? l : !1), Promise.resolve();
3299
3299
  }
3300
3300
  this._animatingContext = {
3301
3301
  start: f,
3302
3302
  end: t,
3303
3303
  offset: 0
3304
3304
  };
3305
- var _ = function() {
3306
- var b, v, m = function() {
3305
+ var g = function() {
3306
+ var y, v, m = function() {
3307
3307
  r._animatingContext = {
3308
3308
  start: 0,
3309
3309
  end: 0,
3310
3310
  offset: 0
3311
3311
  };
3312
3312
  };
3313
- u.once(EVENT.FINISH, m), n ? n.setTo((b = {}, b[POSITION_KEY] = t, b), e) : u.setTo((v = {}, v[POSITION_KEY] = t, v), e);
3313
+ u.once(EVENT.FINISH, m), n ? n.setTo((y = {}, y[POSITION_KEY] = t, y), e) : u.setTo((v = {}, v[POSITION_KEY] = t, v), e);
3314
3314
  };
3315
- return new Promise(function(b, v) {
3315
+ return new Promise(function(y, v) {
3316
3316
  var m = function() {
3317
- u.off(EVENT.HOLD, P), b();
3317
+ u.off(EVENT.HOLD, P), y();
3318
3318
  }, P = function() {
3319
3319
  u.off(EVENT.FINISH, m), v(new FlickingError(MESSAGE.ANIMATION_INTERRUPTED, CODE.ANIMATION_INTERRUPTED));
3320
3320
  };
3321
- u.once(EVENT.FINISH, m), u.once(EVENT.HOLD, P), _();
3321
+ u.once(EVENT.FINISH, m), u.once(EVENT.HOLD, P), g();
3322
3322
  });
3323
3323
  }, i.updateDirection = function() {
3324
3324
  var t = getFlickingAttached(this._flicking), e = this._axes, n = this._panInput;
@@ -3449,38 +3449,38 @@ var State = /* @__PURE__ */ function() {
3449
3449
  }, i.copy = function(t) {
3450
3450
  this._flicking = t._flicking, this._activePanel = t._activePanel, this._controller = t._controller;
3451
3451
  }, i._triggerIndexChangeEvent = function(t, e, n, r) {
3452
- var l, u = getFlickingAttached(this._flicking), d = t !== this._activePanel ? EVENTS.WILL_CHANGE : EVENTS.WILL_RESTORE, f = u.camera, p = this._activePanel, _ = new ComponentEvent$1(d, {
3452
+ var l, u = getFlickingAttached(this._flicking), d = t !== this._activePanel ? EVENTS.WILL_CHANGE : EVENTS.WILL_RESTORE, f = u.camera, _ = this._activePanel, g = new ComponentEvent$1(d, {
3453
3453
  index: t.index,
3454
3454
  panel: t,
3455
3455
  isTrusted: n?.isTrusted || !1,
3456
- direction: r ?? getDirection((l = p?.position) !== null && l !== void 0 ? l : f.position, e)
3456
+ direction: r ?? getDirection((l = _?.position) !== null && l !== void 0 ? l : f.position, e)
3457
3457
  });
3458
- if (this._nextPanel = t, u.trigger(_), _.isCanceled())
3458
+ if (this._nextPanel = t, u.trigger(g), g.isCanceled())
3459
3459
  throw new FlickingError(MESSAGE.STOP_CALLED_BY_USER, CODE.STOP_CALLED_BY_USER);
3460
3460
  }, i._animateToPosition = function(t) {
3461
3461
  var e = t.position, n = t.duration, r = t.newActivePanel, l = t.axesEvent;
3462
3462
  return __awaiter$1(this, void 0, void 0, function() {
3463
- var u, d, f, p = this;
3464
- return __generator$1(this, function(_) {
3463
+ var u, d, f, _ = this;
3464
+ return __generator$1(this, function(g) {
3465
3465
  return u = getFlickingAttached(this._flicking), d = function() {
3466
- return p._controller.animateTo(e, n, l);
3466
+ return _._controller.animateTo(e, n, l);
3467
3467
  }, f = this._controller.state, f.targetPanel = r, n <= 0 ? [2, d()] : [2, d().then(function() {
3468
- return __awaiter$1(p, void 0, void 0, function() {
3469
- return __generator$1(this, function(b) {
3470
- switch (b.label) {
3468
+ return __awaiter$1(_, void 0, void 0, function() {
3469
+ return __generator$1(this, function(y) {
3470
+ switch (y.label) {
3471
3471
  case 0:
3472
3472
  return [4, u.renderer.render()];
3473
3473
  case 1:
3474
- return b.sent(), [
3474
+ return y.sent(), [
3475
3475
  2
3476
3476
  /*return*/
3477
3477
  ];
3478
3478
  }
3479
3479
  });
3480
3480
  });
3481
- }).catch(function(b) {
3482
- if (!(l && b instanceof FlickingError && b.code === CODE.ANIMATION_INTERRUPTED))
3483
- throw b;
3481
+ }).catch(function(y) {
3482
+ if (!(l && y instanceof FlickingError && y.code === CODE.ANIMATION_INTERRUPTED))
3483
+ throw y;
3484
3484
  })];
3485
3485
  });
3486
3486
  });
@@ -3492,11 +3492,11 @@ var State = /* @__PURE__ */ function() {
3492
3492
  if (!r.canReach(t))
3493
3493
  l = u.position, t = u.panel;
3494
3494
  else if (n.circularEnabled) {
3495
- var d = this._controller.position, f = r.rangeDiff, p = [l, l + f, l - f].filter(function(_) {
3496
- return e === DIRECTION.NONE ? !0 : e === DIRECTION.PREV ? _ <= d : _ >= d;
3495
+ var d = this._controller.position, f = r.rangeDiff, _ = [l, l + f, l - f].filter(function(g) {
3496
+ return e === DIRECTION.NONE ? !0 : e === DIRECTION.PREV ? g <= d : g >= d;
3497
3497
  });
3498
- l = p.reduce(function(_, b) {
3499
- return Math.abs(d - b) < Math.abs(d - _) ? b : _;
3498
+ l = _.reduce(function(g, y) {
3499
+ return Math.abs(d - y) < Math.abs(d - g) ? y : g;
3500
3500
  }, 1 / 0);
3501
3501
  }
3502
3502
  return l;
@@ -3567,14 +3567,14 @@ var State = /* @__PURE__ */ function() {
3567
3567
  enumerable: !1,
3568
3568
  configurable: !0
3569
3569
  }), t.moveToPosition = function(e, n, r) {
3570
- var l = getFlickingAttached(this._flicking), u = l.camera, d = u.findActiveAnchor(), f = u.findNearestAnchor(u.position), p = this._controller.state;
3570
+ var l = getFlickingAttached(this._flicking), u = l.camera, d = u.findActiveAnchor(), f = u.findNearestAnchor(u.position), _ = this._controller.state;
3571
3571
  if (!d || !f)
3572
3572
  return Promise.reject(new FlickingError(MESSAGE.POSITION_NOT_REACHABLE(e), CODE.POSITION_NOT_REACHABLE));
3573
- var _ = this._calcSnapThreshold(l.threshold, e, d), b = l.animating ? p.delta : e - u.position, v = Math.abs(b), m = r && r.delta[POSITION_KEY] !== 0 ? Math.abs(r.delta[POSITION_KEY]) : v, P;
3574
- if (m >= _ && m > 0)
3573
+ var g = this._calcSnapThreshold(l.threshold, e, d), y = l.animating ? _.delta : e - u.position, v = Math.abs(y), m = r && r.delta[POSITION_KEY] !== 0 ? Math.abs(r.delta[POSITION_KEY]) : v, P;
3574
+ if (m >= g && m > 0)
3575
3575
  P = this._findSnappedAnchor(e, f);
3576
3576
  else if (v >= l.threshold && v > 0)
3577
- P = this._findAdjacentAnchor(e, b, f);
3577
+ P = this._findAdjacentAnchor(e, y, f);
3578
3578
  else
3579
3579
  return this.moveToPanel(f.panel, {
3580
3580
  duration: n,
@@ -3587,31 +3587,31 @@ var State = /* @__PURE__ */ function() {
3587
3587
  axesEvent: r
3588
3588
  });
3589
3589
  }, t._findSnappedAnchor = function(e, n) {
3590
- var r = getFlickingAttached(this._flicking), l = r.camera, u = this._count, d = l.position, f = l.clampToReachablePosition(e), p = l.findAnchorIncludePosition(f);
3591
- if (!n || !p)
3590
+ var r = getFlickingAttached(this._flicking), l = r.camera, u = this._count, d = l.position, f = l.clampToReachablePosition(e), _ = l.findAnchorIncludePosition(f);
3591
+ if (!n || !_)
3592
3592
  throw new FlickingError(MESSAGE.POSITION_NOT_REACHABLE(e), CODE.POSITION_NOT_REACHABLE);
3593
3593
  if (!isFinite(u))
3594
- return p;
3595
- var _ = r.panelCount, b = l.anchorPoints, v = Math.sign(e - d) * Math.floor(Math.abs(e - d) / l.rangeDiff);
3596
- e > d && p.index < n.index || p.position > n.position && p.index === n.index ? v += 1 : (e < d && p.index > n.index || p.position < n.position && p.index === n.index) && (v -= 1);
3597
- var m = v * _, P = p.index + m;
3594
+ return _;
3595
+ var g = r.panelCount, y = l.anchorPoints, v = Math.sign(e - d) * Math.floor(Math.abs(e - d) / l.rangeDiff);
3596
+ e > d && _.index < n.index || _.position > n.position && _.index === n.index ? v += 1 : (e < d && _.index > n.index || _.position < n.position && _.index === n.index) && (v -= 1);
3597
+ var m = v * g, P = _.index + m;
3598
3598
  if (Math.abs(P - n.index) <= u) {
3599
- var y = b[p.index];
3599
+ var b = y[_.index];
3600
3600
  return new AnchorPoint({
3601
- index: y.index,
3602
- position: y.position + v * l.rangeDiff,
3603
- panel: y.panel
3601
+ index: b.index,
3602
+ position: b.position + v * l.rangeDiff,
3603
+ panel: b.panel
3604
3604
  });
3605
3605
  }
3606
3606
  if (r.circularEnabled) {
3607
- var g = b[circulateIndex(n.index + Math.sign(e - d) * u, _)], E = Math.floor(u / _);
3608
- return e > d && g.index < n.index ? E += 1 : e < d && g.index > n.index && (E -= 1), new AnchorPoint({
3609
- index: g.index,
3610
- position: g.position + E * l.rangeDiff,
3611
- panel: g.panel
3607
+ var p = y[circulateIndex(n.index + Math.sign(e - d) * u, g)], E = Math.floor(u / g);
3608
+ return e > d && p.index < n.index ? E += 1 : e < d && p.index > n.index && (E -= 1), new AnchorPoint({
3609
+ index: p.index,
3610
+ position: p.position + E * l.rangeDiff,
3611
+ panel: p.panel
3612
3612
  });
3613
3613
  } else
3614
- return b[clamp(n.index + Math.sign(e - d) * u, 0, b.length - 1)];
3614
+ return y[clamp(n.index + Math.sign(e - d) * u, 0, y.length - 1)];
3615
3615
  }, t._findAdjacentAnchor = function(e, n, r) {
3616
3616
  var l, u = getFlickingAttached(this._flicking), d = u.camera;
3617
3617
  if (d.circularEnabled) {
@@ -3619,8 +3619,8 @@ var State = /* @__PURE__ */ function() {
3619
3619
  if (f && f.position !== r.position)
3620
3620
  return f;
3621
3621
  }
3622
- var p = (l = n > 0 ? d.getNextAnchor(r) : d.getPrevAnchor(r)) !== null && l !== void 0 ? l : r;
3623
- return p;
3622
+ var _ = (l = n > 0 ? d.getNextAnchor(r) : d.getPrevAnchor(r)) !== null && l !== void 0 ? l : r;
3623
+ return _;
3624
3624
  }, t._calcSnapThreshold = function(e, n, r) {
3625
3625
  var l = n > r.position, u = r.panel, d = u.size, f = u.alignPosition;
3626
3626
  return Math.max(e, l ? d - f + u.margin.next : f + u.margin.prev);
@@ -3657,11 +3657,11 @@ var State = /* @__PURE__ */ function() {
3657
3657
  var l = getFlickingAttached(this._flicking), u = l.camera, d = u.clampToReachablePosition(e), f = u.findAnchorIncludePosition(d);
3658
3658
  if (!f)
3659
3659
  return Promise.reject(new FlickingError(MESSAGE.POSITION_NOT_REACHABLE(e), CODE.POSITION_NOT_REACHABLE));
3660
- var p = f.panel;
3661
- return p !== this._activePanel && this._triggerIndexChangeEvent(p, e, r), this._animateToPosition({
3660
+ var _ = f.panel;
3661
+ return _ !== this._activePanel && this._triggerIndexChangeEvent(_, e, r), this._animateToPosition({
3662
3662
  position: this._stopAtEdge ? d : e,
3663
3663
  duration: n,
3664
- newActivePanel: p,
3664
+ newActivePanel: _,
3665
3665
  axesEvent: r
3666
3666
  });
3667
3667
  }, i;
@@ -3692,17 +3692,17 @@ var State = /* @__PURE__ */ function() {
3692
3692
  }), t.destroy = function() {
3693
3693
  s.prototype.destroy.call(this), this._resetIndexRange();
3694
3694
  }, t.updateInput = function() {
3695
- var e, n = getFlickingAttached(this._flicking), r = n.camera, l = n.renderer, u = this._controller, d = r.controlParams, f = this._count, p = u.state.animating ? (e = r.findNearestAnchor(r.position)) === null || e === void 0 ? void 0 : e.panel : this._activePanel;
3696
- if (!p)
3695
+ var e, n = getFlickingAttached(this._flicking), r = n.camera, l = n.renderer, u = this._controller, d = r.controlParams, f = this._count, _ = u.state.animating ? (e = r.findNearestAnchor(r.position)) === null || e === void 0 ? void 0 : e.panel : this._activePanel;
3696
+ if (!_)
3697
3697
  return u.update(d), this._resetIndexRange(), this;
3698
- var _ = d.range, b = p.position, v = p.index, m = l.panelCount, P = v - f, y = v + f;
3699
- P < 0 && (P = n.circularEnabled ? getMinusCompensatedIndex((P + 1) % m - 1, m) : clamp(P, 0, m - 1)), y >= m && (y = n.circularEnabled ? y % m : clamp(y, 0, m - 1));
3700
- var g = l.panels[P], E = l.panels[y], T = Math.max(g.position, _.min), O = Math.min(E.position, _.max);
3701
- return T > b && (T -= r.rangeDiff), O < b && (O += r.rangeDiff), d.range = {
3698
+ var g = d.range, y = _.position, v = _.index, m = l.panelCount, P = v - f, b = v + f;
3699
+ P < 0 && (P = n.circularEnabled ? getMinusCompensatedIndex((P + 1) % m - 1, m) : clamp(P, 0, m - 1)), b >= m && (b = n.circularEnabled ? b % m : clamp(b, 0, m - 1));
3700
+ var p = l.panels[P], E = l.panels[b], T = Math.max(p.position, g.min), O = Math.min(E.position, g.max);
3701
+ return T > y && (T -= r.rangeDiff), O < y && (O += r.rangeDiff), d.range = {
3702
3702
  min: T,
3703
3703
  max: O
3704
3704
  }, d.circular && (d.position < T && (d.position += r.rangeDiff), d.position > O && (d.position -= r.rangeDiff)), d.circular = !1, u.update(d), this._indexRange = {
3705
- min: g.index,
3705
+ min: p.index,
3706
3706
  max: E.index
3707
3707
  }, this;
3708
3708
  }, t.moveToPanel = function(e, n) {
@@ -3713,12 +3713,12 @@ var State = /* @__PURE__ */ function() {
3713
3713
  });
3714
3714
  });
3715
3715
  }, t.moveToPosition = function(e, n, r) {
3716
- var l, u = getFlickingAttached(this._flicking), d = u.camera, f = (l = this._nextPanel) !== null && l !== void 0 ? l : this._activePanel, p = this._controller.range, _ = this._indexRange, b = d.range, v = this._controller.state, m = clamp(d.clampToReachablePosition(e), p[0], p[1]), P = d.findAnchorIncludePosition(m);
3716
+ var l, u = getFlickingAttached(this._flicking), d = u.camera, f = (l = this._nextPanel) !== null && l !== void 0 ? l : this._activePanel, _ = this._controller.range, g = this._indexRange, y = d.range, v = this._controller.state, m = clamp(d.clampToReachablePosition(e), _[0], _[1]), P = d.findAnchorIncludePosition(m);
3717
3717
  if (!P || !f)
3718
3718
  return Promise.reject(new FlickingError(MESSAGE.POSITION_NOT_REACHABLE(e), CODE.POSITION_NOT_REACHABLE));
3719
- var y = f.position, g = u.animating ? v.delta : e - d.position, E = Math.abs(g) >= u.threshold, T = e > y ? d.getNextAnchor(P) : d.getPrevAnchor(P), O, S, C = d.anchorPoints, x = C[0], I = C[C.length - 1], R = e <= b.min && isBetween(x.panel.index, _.min, _.max), w = e >= b.max && isBetween(I.panel.index, _.min, _.max), A = T && (_.min <= _.max ? isBetween(T.index, _.min, _.max) : T.index >= _.min || T.index <= _.max);
3719
+ var b = f.position, p = u.animating ? v.delta : e - d.position, E = Math.abs(p) >= u.threshold, T = e > b ? d.getNextAnchor(P) : d.getPrevAnchor(P), O, S, C = d.anchorPoints, x = C[0], I = C[C.length - 1], R = e <= y.min && isBetween(x.panel.index, g.min, g.max), w = e >= y.max && isBetween(I.panel.index, g.min, g.max), A = T && (g.min <= g.max ? isBetween(T.index, g.min, g.max) : T.index >= g.min || T.index <= g.max);
3720
3720
  if (R || w) {
3721
- var N = e < b.min ? x : I;
3721
+ var N = e < y.min ? x : I;
3722
3722
  S = N.panel, O = N.position;
3723
3723
  } else if (E && P.position !== f.position)
3724
3724
  S = P.panel, O = P.position;
@@ -3813,10 +3813,10 @@ var State = /* @__PURE__ */ function() {
3813
3813
  var e = this._flicking, n = e.renderer, r = n.panels;
3814
3814
  if (r.length <= 0)
3815
3815
  return !1;
3816
- var l = r[0], u = r[r.length - 1], d = l.range.min - l.margin.prev, f = u.range.max + u.margin.next, p = e.camera.size, _ = f - d, b = r.every(function(v) {
3817
- return _ - v.size >= p;
3816
+ var l = r[0], u = r[r.length - 1], d = l.range.min - l.margin.prev, f = u.range.max + u.margin.next, _ = e.camera.size, g = f - d, y = r.every(function(v) {
3817
+ return g - v.size >= _;
3818
3818
  });
3819
- return b;
3819
+ return y;
3820
3820
  }, t.getRange = function() {
3821
3821
  var e = this._flicking, n = e.renderer.panels;
3822
3822
  if (n.length <= 0)
@@ -3842,14 +3842,14 @@ var State = /* @__PURE__ */ function() {
3842
3842
  var n = this._flicking.camera, r = n.anchorPoints;
3843
3843
  if (r.length <= 0) return null;
3844
3844
  for (var l = n.range, u = 1 / 0, d = -1, f = 0; f < r.length; f++) {
3845
- var p = r[f], _ = Math.min(Math.abs(p.position - e), Math.abs(p.position - l.min + l.max - e), Math.abs(e - l.min + l.max - p.position));
3846
- _ < u && (u = _, d = f);
3845
+ var _ = r[f], g = Math.min(Math.abs(_.position - e), Math.abs(_.position - l.min + l.max - e), Math.abs(e - l.min + l.max - _.position));
3846
+ g < u && (u = g, d = f);
3847
3847
  }
3848
3848
  return r[d];
3849
3849
  }, t.findAnchorIncludePosition = function(e) {
3850
- var n = this._flicking.camera, r = n.range, l = n.anchorPoints, u = n.rangeDiff, d = l.length, f = circulatePosition(e, r.min, r.max), p = s.prototype.findAnchorIncludePosition.call(this, f);
3850
+ var n = this._flicking.camera, r = n.range, l = n.anchorPoints, u = n.rangeDiff, d = l.length, f = circulatePosition(e, r.min, r.max), _ = s.prototype.findAnchorIncludePosition.call(this, f);
3851
3851
  if (d > 0 && (e === r.min || e === r.max)) {
3852
- var _ = [p, new AnchorPoint({
3852
+ var g = [_, new AnchorPoint({
3853
3853
  index: 0,
3854
3854
  position: l[0].position + u,
3855
3855
  panel: l[0].panel
@@ -3860,27 +3860,27 @@ var State = /* @__PURE__ */ function() {
3860
3860
  })].filter(function(v) {
3861
3861
  return !!v;
3862
3862
  });
3863
- p = _.reduce(function(v, m) {
3863
+ _ = g.reduce(function(v, m) {
3864
3864
  return v && Math.abs(v.position - e) < Math.abs(m.position - e) ? v : m;
3865
3865
  }, null);
3866
3866
  }
3867
- if (!p) return null;
3867
+ if (!_) return null;
3868
3868
  if (e < r.min) {
3869
- var b = -Math.floor((r.min - e) / u) - 1;
3869
+ var y = -Math.floor((r.min - e) / u) - 1;
3870
3870
  return new AnchorPoint({
3871
- index: p.index,
3872
- position: p.position + u * b,
3873
- panel: p.panel
3871
+ index: _.index,
3872
+ position: _.position + u * y,
3873
+ panel: _.panel
3874
3874
  });
3875
3875
  } else if (e > r.max) {
3876
- var b = Math.floor((e - r.max) / u) + 1;
3876
+ var y = Math.floor((e - r.max) / u) + 1;
3877
3877
  return new AnchorPoint({
3878
- index: p.index,
3879
- position: p.position + u * b,
3880
- panel: p.panel
3878
+ index: _.index,
3879
+ position: _.position + u * y,
3880
+ panel: _.panel
3881
3881
  });
3882
3882
  }
3883
- return p;
3883
+ return _;
3884
3884
  }, t.getCircularOffset = function() {
3885
3885
  var e = this._flicking, n = e.camera;
3886
3886
  if (!n.circularEnabled) return 0;
@@ -3914,8 +3914,8 @@ var State = /* @__PURE__ */ function() {
3914
3914
  var e = this._flicking, n = e.renderer, r = n.getPanel(0), l = n.getPanel(n.panelCount - 1);
3915
3915
  if (!r || !l)
3916
3916
  return !1;
3917
- var u = e.camera.size, d = r.range.min, f = l.range.max, p = f - d, _ = u < p;
3918
- return _;
3917
+ var u = e.camera.size, d = r.range.min, f = l.range.max, _ = f - d, g = u < _;
3918
+ return g;
3919
3919
  }, t.getRange = function() {
3920
3920
  var e = this._flicking, n = e.renderer, r = e.camera.alignPosition, l = n.getPanel(0), u = n.getPanel(n.panelCount - 1);
3921
3921
  if (!l || !u)
@@ -3923,16 +3923,16 @@ var State = /* @__PURE__ */ function() {
3923
3923
  min: 0,
3924
3924
  max: 0
3925
3925
  };
3926
- var d = e.camera.size, f = l.range.min, p = u.range.max, _ = p - f, b = d < _, v = f + r, m = p - d + r;
3927
- if (b)
3926
+ var d = e.camera.size, f = l.range.min, _ = u.range.max, g = _ - f, y = d < g, v = f + r, m = _ - d + r;
3927
+ if (y)
3928
3928
  return {
3929
3929
  min: v,
3930
3930
  max: m
3931
3931
  };
3932
- var P = e.camera.align, y = typeof P == "object" ? P.camera : P, g = v + parseAlign$1(y, m - v);
3932
+ var P = e.camera.align, b = typeof P == "object" ? P.camera : P, p = v + parseAlign$1(b, m - v);
3933
3933
  return {
3934
- min: g,
3935
- max: g
3934
+ min: p,
3935
+ max: p
3936
3936
  };
3937
3937
  }, t.getAnchors = function() {
3938
3938
  var e = this._flicking, n = e.camera, r = e.renderer.panels;
@@ -3942,24 +3942,24 @@ var State = /* @__PURE__ */ function() {
3942
3942
  return n.canReach(P);
3943
3943
  });
3944
3944
  if (u.length > 0) {
3945
- var d = u[0].position !== l.min, f = u[u.length - 1].position !== l.max, p = d ? 1 : 0, _ = u.map(function(P, y) {
3945
+ var d = u[0].position !== l.min, f = u[u.length - 1].position !== l.max, _ = d ? 1 : 0, g = u.map(function(P, b) {
3946
3946
  return new AnchorPoint({
3947
- index: y + p,
3947
+ index: b + _,
3948
3948
  position: P.position,
3949
3949
  panel: P
3950
3950
  });
3951
3951
  });
3952
- return d && _.splice(0, 0, new AnchorPoint({
3952
+ return d && g.splice(0, 0, new AnchorPoint({
3953
3953
  index: 0,
3954
3954
  position: l.min,
3955
3955
  panel: r[u[0].index - 1]
3956
- })), f && _.push(new AnchorPoint({
3957
- index: _.length,
3956
+ })), f && g.push(new AnchorPoint({
3957
+ index: g.length,
3958
3958
  position: l.max,
3959
3959
  panel: r[u[u.length - 1].index + 1]
3960
- })), _;
3960
+ })), g;
3961
3961
  } else if (l.min !== l.max) {
3962
- var b = this._findNearestPanel(l.min, r), v = b.index === r.length - 1 ? b.prev() : b, m = v.next();
3962
+ var y = this._findNearestPanel(l.min, r), v = y.index === r.length - 1 ? y.prev() : y, m = v.next();
3963
3963
  return [new AnchorPoint({
3964
3964
  index: 0,
3965
3965
  position: l.min,
@@ -3991,11 +3991,11 @@ var State = /* @__PURE__ */ function() {
3991
3991
  function s(t, e) {
3992
3992
  var n = this, r = (e === void 0 ? {} : e).align, l = r === void 0 ? ALIGN.CENTER : r;
3993
3993
  this._lookedOffset = 0, this._checkTranslateSupport = function() {
3994
- var u, d, f = ["webkitTransform", "msTransform", "MozTransform", "OTransform", "transform"], p = document.documentElement.style, _ = "";
3994
+ var u, d, f = ["webkitTransform", "msTransform", "MozTransform", "OTransform", "transform"], _ = document.documentElement.style, g = "";
3995
3995
  try {
3996
- for (var b = __values(f), v = b.next(); !v.done; v = b.next()) {
3996
+ for (var y = __values(f), v = y.next(); !v.done; v = y.next()) {
3997
3997
  var m = v.value;
3998
- m in p && (_ = m);
3998
+ m in _ && (g = m);
3999
3999
  }
4000
4000
  } catch (P) {
4001
4001
  u = {
@@ -4003,14 +4003,14 @@ var State = /* @__PURE__ */ function() {
4003
4003
  };
4004
4004
  } finally {
4005
4005
  try {
4006
- v && !v.done && (d = b.return) && d.call(b);
4006
+ v && !v.done && (d = y.return) && d.call(y);
4007
4007
  } finally {
4008
4008
  if (u) throw u.error;
4009
4009
  }
4010
4010
  }
4011
- if (!_)
4011
+ if (!g)
4012
4012
  throw new FlickingError(MESSAGE.TRANSFORM_NOT_SUPPORTED, CODE.TRANSFORM_NOT_SUPPORTED);
4013
- n._transform = _;
4013
+ n._transform = g;
4014
4014
  }, this._flicking = t, this._resetInternalValues(), this._align = l;
4015
4015
  }
4016
4016
  var i = s.prototype;
@@ -4223,15 +4223,15 @@ var State = /* @__PURE__ */ function() {
4223
4223
  var t = this._flicking, e = this._position + this._offset, n = this.findNearestAnchor(this._position);
4224
4224
  if (!t || !n)
4225
4225
  return NaN;
4226
- var r = n.panel, l = r.position + r.offset, u = t.control.controller.bounce, d = this.range, f = d.min, p = d.max, _ = this.rangeDiff;
4226
+ var r = n.panel, l = r.position + r.offset, u = t.control.controller.bounce, d = this.range, f = d.min, _ = d.max, g = this.rangeDiff;
4227
4227
  if (e === l)
4228
4228
  return r.index;
4229
4229
  if (e < l) {
4230
- var b = r.prev(), v = b ? b.position + b.offset : f - u[0];
4231
- return v > l && (v -= _), r.index - 1 + getProgress(e, v, l);
4230
+ var y = r.prev(), v = y ? y.position + y.offset : f - u[0];
4231
+ return v > l && (v -= g), r.index - 1 + getProgress(e, v, l);
4232
4232
  } else {
4233
- var m = r.next(), P = m ? m.position + m.offset : p + u[1];
4234
- return P < l && (P += _), r.index + getProgress(e, l, P);
4233
+ var m = r.next(), P = m ? m.position + m.offset : _ + u[1];
4234
+ return P < l && (P += g), r.index + getProgress(e, l, P);
4235
4235
  }
4236
4236
  },
4237
4237
  enumerable: !1,
@@ -4394,16 +4394,16 @@ var State = /* @__PURE__ */ function() {
4394
4394
  })), t.next = !0);
4395
4395
  return;
4396
4396
  }
4397
- var r = this._position, l = this.size, u = this._range, d = e.needPanelThreshold, f = r - this._alignPos, p = f + l, _ = n[0], b = n[n.length - 1];
4397
+ var r = this._position, l = this.size, u = this._range, d = e.needPanelThreshold, f = r - this._alignPos, _ = f + l, g = n[0], y = n[n.length - 1];
4398
4398
  if (!t.prev) {
4399
- var v = _.range.min;
4399
+ var v = g.range.min;
4400
4400
  (f <= v + d || r <= u.min + d) && (e.trigger(new ComponentEvent$1(EVENTS.NEED_PANEL, {
4401
4401
  direction: DIRECTION.PREV
4402
4402
  })), t.prev = !0);
4403
4403
  }
4404
4404
  if (!t.next) {
4405
- var m = b.range.max;
4406
- (p >= m - d || r >= u.max - d) && (e.trigger(new ComponentEvent$1(EVENTS.NEED_PANEL, {
4405
+ var m = y.range.max;
4406
+ (_ >= m - d || r >= u.max - d) && (e.trigger(new ComponentEvent$1(EVENTS.NEED_PANEL, {
4407
4407
  direction: DIRECTION.NEXT
4408
4408
  })), t.next = !0);
4409
4409
  }
@@ -4541,24 +4541,24 @@ var State = /* @__PURE__ */ function() {
4541
4541
  }, i.batchInsertDefer = function() {
4542
4542
  for (var t = this, e = [], n = 0; n < arguments.length; n++)
4543
4543
  e[n] = arguments[n];
4544
- var r = this._panels, l = getFlickingAttached(this._flicking), u = r[0], d = parsePanelAlign(this._align), f = e.reduce(function(p, _) {
4545
- var b, v = getMinusCompensatedIndex(_.index, r.length), m = r.slice(v), P = _.elements.map(function(g, E) {
4546
- return t._createPanel(g, {
4544
+ var r = this._panels, l = getFlickingAttached(this._flicking), u = r[0], d = parsePanelAlign(this._align), f = e.reduce(function(_, g) {
4545
+ var y, v = getMinusCompensatedIndex(g.index, r.length), m = r.slice(v), P = g.elements.map(function(p, E) {
4546
+ return t._createPanel(p, {
4547
4547
  index: v + E,
4548
4548
  align: d,
4549
4549
  flicking: l
4550
4550
  });
4551
4551
  });
4552
- if (r.splice.apply(r, __spread([v, 0], P)), _.hasDOMInElements && t._insertPanelElements(P, (b = m[0]) !== null && b !== void 0 ? b : null), l.panelsPerView > 0) {
4553
- var y = u || P[0].resize();
4554
- t._updatePanelSizeByGrid(y, P);
4552
+ if (r.splice.apply(r, __spread([v, 0], P)), g.hasDOMInElements && t._insertPanelElements(P, (y = m[0]) !== null && y !== void 0 ? y : null), l.panelsPerView > 0) {
4553
+ var b = u || P[0].resize();
4554
+ t._updatePanelSizeByGrid(b, P);
4555
4555
  } else
4556
- P.forEach(function(g) {
4557
- return g.resize();
4556
+ P.forEach(function(p) {
4557
+ return p.resize();
4558
4558
  });
4559
- return m.forEach(function(g) {
4560
- g.increaseIndex(P.length), g.updatePosition();
4561
- }), __spread(p, P);
4559
+ return m.forEach(function(p) {
4560
+ p.increaseIndex(P.length), p.updatePosition();
4561
+ }), __spread(_, P);
4562
4562
  }, []);
4563
4563
  return f;
4564
4564
  }, i.batchRemove = function() {
@@ -4569,13 +4569,13 @@ var State = /* @__PURE__ */ function() {
4569
4569
  }, i.batchRemoveDefer = function() {
4570
4570
  for (var t = this, e = [], n = 0; n < arguments.length; n++)
4571
4571
  e[n] = arguments[n];
4572
- var r = this._panels, l = getFlickingAttached(this._flicking), u = l.control, d = u.activePanel, f = e.reduce(function(p, _) {
4573
- var b = _.index, v = _.deleteCount, m = getMinusCompensatedIndex(b, r.length), P = r.slice(m + v), y = r.splice(m, v);
4574
- return y.length <= 0 ? [] : (P.forEach(function(g) {
4575
- g.decreaseIndex(y.length), g.updatePosition();
4576
- }), _.hasDOMInElements && t._removePanelElements(y), y.forEach(function(g) {
4577
- return g.destroy();
4578
- }), includes(y, d) && u.resetActive(), __spread(p, y));
4572
+ var r = this._panels, l = getFlickingAttached(this._flicking), u = l.control, d = u.activePanel, f = e.reduce(function(_, g) {
4573
+ var y = g.index, v = g.deleteCount, m = getMinusCompensatedIndex(y, r.length), P = r.slice(m + v), b = r.splice(m, v);
4574
+ return b.length <= 0 ? [] : (P.forEach(function(p) {
4575
+ p.decreaseIndex(b.length), p.updatePosition();
4576
+ }), g.hasDOMInElements && t._removePanelElements(b), b.forEach(function(p) {
4577
+ return p.destroy();
4578
+ }), includes(b, d) && u.resetActive(), __spread(_, b));
4579
4579
  }, []);
4580
4580
  return f;
4581
4581
  }, i.updateAfterPanelChange = function(t, e) {
@@ -4585,8 +4585,8 @@ var State = /* @__PURE__ */ function() {
4585
4585
  if (d.length <= 0)
4586
4586
  l.lookAt(0);
4587
4587
  else {
4588
- var p = (n = f?.index) !== null && n !== void 0 ? n : 0;
4589
- p > d.length - 1 && (p = d.length - 1), u.moveToPanel(d[p], {
4588
+ var _ = (n = f?.index) !== null && n !== void 0 ? n : 0;
4589
+ _ > d.length - 1 && (_ = d.length - 1), u.moveToPanel(d[_], {
4590
4590
  duration: 0
4591
4591
  }).catch(function() {
4592
4592
  });
@@ -4617,10 +4617,10 @@ var State = /* @__PURE__ */ function() {
4617
4617
  d.destroy();
4618
4618
  return;
4619
4619
  }
4620
- var p = t[f.index], _ = n.camera, b = n.control, v = b.activePanel ? _.getProgressInPanel(b.activePanel) : 0;
4621
- p.loading = !1, p.resize(), l.slice(p.index + 1).forEach(function(m) {
4620
+ var _ = t[f.index], g = n.camera, y = n.control, v = y.activePanel ? g.getProgressInPanel(y.activePanel) : 0;
4621
+ _.loading = !1, _.resize(), l.slice(_.index + 1).forEach(function(m) {
4622
4622
  return m.updatePosition();
4623
- }), n.initialized && (_.updateRange(), _.updateOffset(), _.updateAnchors(), b.animating || (b.updatePosition(v), b.updateInput()));
4623
+ }), n.initialized && (g.updateRange(), g.updateOffset(), g.updateAnchors(), y.animating || (y.updatePosition(v), y.updateInput()));
4624
4624
  }), d.on("preReady", function(f) {
4625
4625
  e._flicking && e.render(), f.readyCount === f.totalCount && d.destroy();
4626
4626
  }), d.on("ready", function() {
@@ -4649,14 +4649,14 @@ var State = /* @__PURE__ */ function() {
4649
4649
  width: d
4650
4650
  } : {
4651
4651
  height: d
4652
- }, p = __assign$1({
4652
+ }, _ = __assign$1({
4653
4653
  size: d,
4654
4654
  margin: t.margin
4655
4655
  }, !n.horizontal && {
4656
4656
  height: t.height
4657
4657
  });
4658
- n.noPanelStyleOverride || this._strategy.updatePanelSizes(n, f), n.panels.forEach(function(_) {
4659
- return _.resize(p);
4658
+ n.noPanelStyleOverride || this._strategy.updatePanelSizes(n, f), n.panels.forEach(function(g) {
4659
+ return g.resize(_);
4660
4660
  });
4661
4661
  }
4662
4662
  }, i._removeAllChildsFromCamera = function() {
@@ -5081,8 +5081,8 @@ var State = /* @__PURE__ */ function() {
5081
5081
  var t = this._flicking;
5082
5082
  if (!t.circularEnabled)
5083
5083
  return this._toggleDirection = DIRECTION.NONE, this._togglePosition = 0, this._toggled = !1, this;
5084
- var e = t.camera, n = e.range, r = e.alignPosition, l = e.visibleRange, u = l.max - l.min, d = n.min - r, f = n.max - r + u, p = this.includeRange(f - u, f, !1), _ = this.includeRange(d, d + u, !1);
5085
- return this._toggled = !1, p ? (this._toggleDirection = DIRECTION.PREV, this._togglePosition = this.range.max + n.min - n.max + r, this.toggle(1 / 0, e.position)) : _ ? (this._toggleDirection = DIRECTION.NEXT, this._togglePosition = this.range.min + n.max - u + r, this.toggle(-1 / 0, e.position)) : (this._toggleDirection = DIRECTION.NONE, this._togglePosition = 0), this;
5084
+ var e = t.camera, n = e.range, r = e.alignPosition, l = e.visibleRange, u = l.max - l.min, d = n.min - r, f = n.max - r + u, _ = this.includeRange(f - u, f, !1), g = this.includeRange(d, d + u, !1);
5085
+ return this._toggled = !1, _ ? (this._toggleDirection = DIRECTION.PREV, this._togglePosition = this.range.max + n.min - n.max + r, this.toggle(1 / 0, e.position)) : g ? (this._toggleDirection = DIRECTION.NEXT, this._togglePosition = this.range.min + n.max - u + r, this.toggle(-1 / 0, e.position)) : (this._toggleDirection = DIRECTION.NONE, this._togglePosition = 0), this;
5086
5086
  }, i._updateAlignPos = function() {
5087
5087
  this._alignPos = parseAlign$1(this._align, this._size);
5088
5088
  }, i._resetInternalStates = function() {
@@ -5273,10 +5273,10 @@ var State = /* @__PURE__ */ function() {
5273
5273
  }(), Flicking$1 = /* @__PURE__ */ function(s) {
5274
5274
  __extends$2(i, s);
5275
5275
  function i(e, n) {
5276
- var r = n === void 0 ? {} : n, l = r.align, u = l === void 0 ? ALIGN.CENTER : l, d = r.defaultIndex, f = d === void 0 ? 0 : d, p = r.horizontal, _ = p === void 0 ? !0 : p, b = r.circular, v = b === void 0 ? !1 : b, m = r.circularFallback, P = m === void 0 ? CIRCULAR_FALLBACK.LINEAR : m, y = r.bound, g = y === void 0 ? !1 : y, E = r.adaptive, T = E === void 0 ? !1 : E, O = r.panelsPerView, S = O === void 0 ? -1 : O, C = r.noPanelStyleOverride, x = C === void 0 ? !1 : C, I = r.resizeOnContentsReady, R = I === void 0 ? !1 : I, w = r.nested, A = w === void 0 ? !1 : w, N = r.needPanelThreshold, D = N === void 0 ? 0 : N, L = r.preventEventsBeforeInit, B = L === void 0 ? !0 : L, V = r.deceleration, ue = V === void 0 ? 75e-4 : V, M = r.duration, ce = M === void 0 ? 500 : M, z = r.easing, de = z === void 0 ? function(Ae) {
5276
+ var r = n === void 0 ? {} : n, l = r.align, u = l === void 0 ? ALIGN.CENTER : l, d = r.defaultIndex, f = d === void 0 ? 0 : d, _ = r.horizontal, g = _ === void 0 ? !0 : _, y = r.circular, v = y === void 0 ? !1 : y, m = r.circularFallback, P = m === void 0 ? CIRCULAR_FALLBACK.LINEAR : m, b = r.bound, p = b === void 0 ? !1 : b, E = r.adaptive, T = E === void 0 ? !1 : E, O = r.panelsPerView, S = O === void 0 ? -1 : O, C = r.noPanelStyleOverride, x = C === void 0 ? !1 : C, I = r.resizeOnContentsReady, R = I === void 0 ? !1 : I, w = r.nested, A = w === void 0 ? !1 : w, N = r.needPanelThreshold, D = N === void 0 ? 0 : N, L = r.preventEventsBeforeInit, B = L === void 0 ? !0 : L, V = r.deceleration, ue = V === void 0 ? 75e-4 : V, M = r.duration, ce = M === void 0 ? 500 : M, z = r.easing, de = z === void 0 ? function(Ae) {
5277
5277
  return 1 - Math.pow(1 - Ae, 3);
5278
5278
  } : z, F = r.inputType, fe = F === void 0 ? ["mouse", "touch"] : F, j = r.moveType, he = j === void 0 ? "snap" : j, H = r.threshold, ve = H === void 0 ? 40 : H, W = r.dragThreshold, pe = W === void 0 ? 1 : W, U = r.interruptable, ge = U === void 0 ? !0 : U, G = r.bounce, _e = G === void 0 ? "20%" : G, Y = r.iOSEdgeSwipeThreshold, me = Y === void 0 ? 30 : Y, q = r.preventClickOnDrag, Ee = q === void 0 ? !0 : q, X = r.preventDefaultOnDrag, ye = X === void 0 ? !1 : X, K = r.disableOnInit, be = K === void 0 ? !1 : K, Z = r.changeOnHold, Pe = Z === void 0 ? !1 : Z, Q = r.renderOnlyVisible, Te = Q === void 0 ? !1 : Q, J = r.virtual, ee = J === void 0 ? null : J, te = r.autoInit, Oe = te === void 0 ? !0 : te, ne = r.autoResize, Se = ne === void 0 ? !0 : ne, ie = r.useResizeObserver, Ce = ie === void 0 ? !0 : ie, re = r.resizeDebounce, Ie = re === void 0 ? 0 : re, ae = r.maxResizeDebounce, ke = ae === void 0 ? 100 : ae, oe = r.useFractionalSize, xe = oe === void 0 ? !1 : oe, se = r.externalRenderer, Re = se === void 0 ? null : se, le = r.renderExternal, Ne = le === void 0 ? null : le, k = s.call(this) || this;
5279
- return k._initialized = !1, k._plugins = [], k._align = u, k._defaultIndex = f, k._horizontal = _, k._circular = v, k._circularFallback = P, k._bound = g, k._adaptive = T, k._panelsPerView = S, k._noPanelStyleOverride = x, k._resizeOnContentsReady = R, k._nested = A, k._virtual = ee, k._needPanelThreshold = D, k._preventEventsBeforeInit = B, k._deceleration = ue, k._duration = ce, k._easing = de, k._inputType = fe, k._moveType = he, k._threshold = ve, k._dragThreshold = pe, k._interruptable = ge, k._bounce = _e, k._iOSEdgeSwipeThreshold = me, k._preventClickOnDrag = Ee, k._preventDefaultOnDrag = ye, k._disableOnInit = be, k._changeOnHold = Pe, k._renderOnlyVisible = Te, k._autoInit = Oe, k._autoResize = Se, k._useResizeObserver = Ce, k._resizeDebounce = Ie, k._maxResizeDebounce = ke, k._useFractionalSize = xe, k._externalRenderer = Re, k._renderExternal = Ne, k._viewport = new Viewport(k, getElement$1(e)), k._autoResizer = new AutoResizer(k), k._renderer = k._createRenderer(), k._camera = k._createCamera(), k._control = k._createControl(), k._virtualManager = new VirtualManager(k, ee), k._autoInit && k.init(), k;
5279
+ return k._initialized = !1, k._plugins = [], k._align = u, k._defaultIndex = f, k._horizontal = g, k._circular = v, k._circularFallback = P, k._bound = p, k._adaptive = T, k._panelsPerView = S, k._noPanelStyleOverride = x, k._resizeOnContentsReady = R, k._nested = A, k._virtual = ee, k._needPanelThreshold = D, k._preventEventsBeforeInit = B, k._deceleration = ue, k._duration = ce, k._easing = de, k._inputType = fe, k._moveType = he, k._threshold = ve, k._dragThreshold = pe, k._interruptable = ge, k._bounce = _e, k._iOSEdgeSwipeThreshold = me, k._preventClickOnDrag = Ee, k._preventDefaultOnDrag = ye, k._disableOnInit = be, k._changeOnHold = Pe, k._renderOnlyVisible = Te, k._autoInit = Oe, k._autoResize = Se, k._useResizeObserver = Ce, k._resizeDebounce = Ie, k._maxResizeDebounce = ke, k._useFractionalSize = xe, k._externalRenderer = Re, k._renderExternal = Ne, k._viewport = new Viewport(k, getElement$1(e)), k._autoResizer = new AutoResizer(k), k._renderer = k._createRenderer(), k._camera = k._createCamera(), k._control = k._createControl(), k._virtualManager = new VirtualManager(k, ee), k._autoInit && k.init(), k;
5280
5280
  }
5281
5281
  var t = i.prototype;
5282
5282
  return Object.defineProperty(t, "control", {
@@ -6236,8 +6236,8 @@ var State = /* @__PURE__ */ function() {
6236
6236
  return n.init(), u.init(), r.init(this), l.init(this), f && (this.trigger = function() {
6237
6237
  return e;
6238
6238
  }), this._initialResize(), this._moveToInitialPanel(), this._autoResize && this._autoResizer.enable(), this._preventClickOnDrag && l.controller.addPreventClickHandler(), this._disableOnInit && this.disableInput(), r.checkPanelContentsReady(r.panels), this._initialized = !0, r.render().then(function() {
6239
- e._plugins.forEach(function(p) {
6240
- return p.init(e);
6239
+ e._plugins.forEach(function(_) {
6240
+ return _.init(e);
6241
6241
  }), f && (e.trigger = d), e.trigger(new ComponentEvent$1(EVENTS.READY));
6242
6242
  });
6243
6243
  }, t.destroy = function() {
@@ -6273,49 +6273,49 @@ var State = /* @__PURE__ */ function() {
6273
6273
  }, t.disableInput = function() {
6274
6274
  return this._control.disable(), this;
6275
6275
  }, t.getStatus = function(e) {
6276
- var n, r, l = e === void 0 ? {} : e, u = l.index, d = u === void 0 ? !0 : u, f = l.position, p = f === void 0 ? !0 : f, _ = l.includePanelHTML, b = _ === void 0 ? !1 : _, v = l.visiblePanelsOnly, m = v === void 0 ? !1 : v, P = this._camera, y = m ? this.visiblePanels : this.panels, g = {
6277
- panels: y.map(function(O) {
6276
+ var n, r, l = e === void 0 ? {} : e, u = l.index, d = u === void 0 ? !0 : u, f = l.position, _ = f === void 0 ? !0 : f, g = l.includePanelHTML, y = g === void 0 ? !1 : g, v = l.visiblePanelsOnly, m = v === void 0 ? !1 : v, P = this._camera, b = m ? this.visiblePanels : this.panels, p = {
6277
+ panels: b.map(function(O) {
6278
6278
  var S = {
6279
6279
  index: O.index
6280
6280
  };
6281
- return b && (S.html = O.element.outerHTML), S;
6281
+ return y && (S.html = O.element.outerHTML), S;
6282
6282
  })
6283
6283
  };
6284
- if (d && (g.index = this.index), p) {
6284
+ if (d && (p.index = this.index), _) {
6285
6285
  var E = P.findNearestAnchor(P.position);
6286
- E && (g.position = {
6286
+ E && (p.position = {
6287
6287
  panel: E.panel.index,
6288
6288
  progressInPanel: P.getProgressInPanel(E.panel)
6289
6289
  });
6290
6290
  }
6291
6291
  if (m) {
6292
6292
  var T = this.visiblePanels;
6293
- g.visibleOffset = (r = (n = T[0]) === null || n === void 0 ? void 0 : n.index) !== null && r !== void 0 ? r : 0;
6293
+ p.visibleOffset = (r = (n = T[0]) === null || n === void 0 ? void 0 : n.index) !== null && r !== void 0 ? r : 0;
6294
6294
  }
6295
- return g;
6295
+ return p;
6296
6296
  }, t.setStatus = function(e) {
6297
6297
  var n;
6298
6298
  if (!this._initialized)
6299
6299
  throw new FlickingError(MESSAGE.NOT_INITIALIZED, CODE.NOT_INITIALIZED);
6300
- var r = e.index, l = e.position, u = e.visibleOffset, d = e.panels, f = this._renderer, p = this._control;
6300
+ var r = e.index, l = e.position, u = e.visibleOffset, d = e.panels, f = this._renderer, _ = this._control;
6301
6301
  if (!((n = d[0]) === null || n === void 0) && n.html && !this._renderExternal && (f.batchRemove({
6302
6302
  index: 0,
6303
6303
  deleteCount: this.panels.length,
6304
6304
  hasDOMInElements: !0
6305
6305
  }), f.batchInsert({
6306
6306
  index: 0,
6307
- elements: parseElement(d.map(function(y) {
6308
- return y.html;
6307
+ elements: parseElement(d.map(function(b) {
6308
+ return b.html;
6309
6309
  })),
6310
6310
  hasDOMInElements: !0
6311
6311
  })), r != null) {
6312
- var _ = u ? r - u : r;
6313
- this.moveTo(_, 0).catch(function() {
6312
+ var g = u ? r - u : r;
6313
+ this.moveTo(g, 0).catch(function() {
6314
6314
  });
6315
6315
  }
6316
6316
  if (l && this._moveType === MOVE_TYPE.FREE_SCROLL) {
6317
- var b = l.panel, v = l.progressInPanel, _ = u ? b - u : b, m = f.panels[_].range, P = m.min + (m.max - m.min) * v;
6318
- p.moveToPosition(P, 0).catch(function() {
6317
+ var y = l.panel, v = l.progressInPanel, g = u ? y - u : y, m = f.panels[g].range, P = m.min + (m.max - m.min) * v;
6318
+ _.moveToPosition(P, 0).catch(function() {
6319
6319
  });
6320
6320
  }
6321
6321
  }, t.addPlugins = function() {
@@ -6335,11 +6335,11 @@ var State = /* @__PURE__ */ function() {
6335
6335
  }), this;
6336
6336
  }, t.resize = function() {
6337
6337
  return __awaiter$1(this, void 0, void 0, function() {
6338
- var e, n, r, l, u, d, f, p, _, b, v;
6338
+ var e, n, r, l, u, d, f, _, g, y, v;
6339
6339
  return __generator$1(this, function(m) {
6340
6340
  switch (m.label) {
6341
6341
  case 0:
6342
- return e = this._viewport, n = this._renderer, r = this._camera, l = this._control, u = l.activePanel, d = e.width, f = e.height, p = u ? r.getProgressInPanel(u) : 0, this.trigger(new ComponentEvent$1(EVENTS.BEFORE_RESIZE, {
6342
+ return e = this._viewport, n = this._renderer, r = this._camera, l = this._control, u = l.activePanel, d = e.width, f = e.height, _ = u ? r.getProgressInPanel(u) : 0, this.trigger(new ComponentEvent$1(EVENTS.BEFORE_RESIZE, {
6343
6343
  width: d,
6344
6344
  height: f,
6345
6345
  element: e.element
@@ -6350,7 +6350,7 @@ var State = /* @__PURE__ */ function() {
6350
6350
  /*return*/
6351
6351
  ];
6352
6352
  case 2:
6353
- return m.sent(), this._initialized ? (l.animating || (l.updatePosition(p), l.updateInput()), _ = e.width, b = e.height, v = _ !== d || b !== f, this.trigger(new ComponentEvent$1(EVENTS.AFTER_RESIZE, {
6353
+ return m.sent(), this._initialized ? (l.animating || (l.updatePosition(_), l.updateInput()), g = e.width, y = e.height, v = g !== d || y !== f, this.trigger(new ComponentEvent$1(EVENTS.AFTER_RESIZE, {
6354
6354
  width: e.width,
6355
6355
  height: e.height,
6356
6356
  prev: {
@@ -6487,8 +6487,8 @@ var State = /* @__PURE__ */ function() {
6487
6487
  }), u.push.apply(u, __spread(batchRemove(e, f, d + 1)));
6488
6488
  }
6489
6489
  if (i.ordered.forEach(function(v) {
6490
- var m = __read(v, 2), P = m[0], y = m[1], g = n.splice(P, 1)[0];
6491
- n.splice(y, 0, g);
6490
+ var m = __read(v, 2), P = m[0], b = m[1], p = n.splice(P, 1)[0];
6491
+ n.splice(b, 0, p);
6492
6492
  }), i.ordered.length > 0 && (n.forEach(function(v, m) {
6493
6493
  var P = m - v.index;
6494
6494
  P > 0 ? v.increaseIndex(P) : v.decreaseIndex(-P);
@@ -6497,10 +6497,10 @@ var State = /* @__PURE__ */ function() {
6497
6497
  }), n.forEach(function(v) {
6498
6498
  v.updatePosition();
6499
6499
  })), i.added.length > 0) {
6500
- var p = -1, _ = -1, b = t.slice(r.length);
6500
+ var _ = -1, g = -1, y = t.slice(r.length);
6501
6501
  i.added.forEach(function(v, m) {
6502
- p < 0 && (p = m), _ >= 0 && v !== _ + 1 ? (l.push.apply(l, __spread(batchInsert(e, i, b, p, m + 1))), p = -1, _ = -1) : _ = v;
6503
- }), p >= 0 && l.push.apply(l, __spread(batchInsert(e, i, b, p)));
6502
+ _ < 0 && (_ = m), g >= 0 && v !== g + 1 ? (l.push.apply(l, __spread(batchInsert(e, i, y, _, m + 1))), _ = -1, g = -1) : g = v;
6503
+ }), _ >= 0 && l.push.apply(l, __spread(batchInsert(e, i, y, _)));
6504
6504
  }
6505
6505
  (i.added.length > 0 || i.removed.length > 0) && e.updateAfterPanelChange(l, u);
6506
6506
  }, batchInsert = function(s, i, t, e, n) {
@@ -6569,10 +6569,10 @@ var State = /* @__PURE__ */ function() {
6569
6569
  if (r) {
6570
6570
  var d = r.visiblePanels;
6571
6571
  d.forEach(function(f) {
6572
- var p = f.outsetProgress, _ = f.element, b = l ? _.querySelector(l) : _;
6573
- if (b) {
6574
- var v = Math.min(1, Math.max(0, 1 - Math.abs(p * u)));
6575
- b.style.opacity = "" + v;
6572
+ var _ = f.outsetProgress, g = f.element, y = l ? g.querySelector(l) : g;
6573
+ if (y) {
6574
+ var v = Math.min(1, Math.max(0, 1 - Math.abs(_ * u)));
6575
+ y.style.opacity = "" + v;
6576
6576
  }
6577
6577
  });
6578
6578
  }
@@ -6652,40 +6652,40 @@ var State = /* @__PURE__ */ function() {
6652
6652
  return e;
6653
6653
  }, Arrow = /* @__PURE__ */ function() {
6654
6654
  function s(t) {
6655
- var e = this, n = t === void 0 ? {} : t, r = n.parentEl, l = r === void 0 ? null : r, u = n.prevElSelector, d = u === void 0 ? ARROW.PREV_SELECTOR : u, f = n.nextElSelector, p = f === void 0 ? ARROW.NEXT_SELECTOR : f, _ = n.disabledClass, b = _ === void 0 ? ARROW.DISABLED_CLASS : _, v = n.moveCount, m = v === void 0 ? 1 : v, P = n.moveByViewportSize, y = P === void 0 ? !1 : P;
6656
- this._flicking = null, this._preventInputPropagation = function(g) {
6657
- g.stopPropagation();
6655
+ var e = this, n = t === void 0 ? {} : t, r = n.parentEl, l = r === void 0 ? null : r, u = n.prevElSelector, d = u === void 0 ? ARROW.PREV_SELECTOR : u, f = n.nextElSelector, _ = f === void 0 ? ARROW.NEXT_SELECTOR : f, g = n.disabledClass, y = g === void 0 ? ARROW.DISABLED_CLASS : g, v = n.moveCount, m = v === void 0 ? 1 : v, P = n.moveByViewportSize, b = P === void 0 ? !1 : P;
6656
+ this._flicking = null, this._preventInputPropagation = function(p) {
6657
+ p.stopPropagation();
6658
6658
  }, this._onPrevClick = function() {
6659
- var g = e._flicking, E = g.camera, T = E.anchorPoints;
6660
- if (!(g.animating || T.length <= 0)) {
6659
+ var p = e._flicking, E = p.camera, T = E.anchorPoints;
6660
+ if (!(p.animating || T.length <= 0)) {
6661
6661
  var O = T[0], S = e._moveCount;
6662
6662
  if (e._moveByViewportSize)
6663
- g.control.moveToPosition(E.position - E.size, g.duration).catch(e._onCatch);
6664
- else if (g.circularEnabled) {
6665
- for (var C = g.currentPanel, x = 0; x < S; x++)
6663
+ p.control.moveToPosition(E.position - E.size, p.duration).catch(e._onCatch);
6664
+ else if (p.circularEnabled) {
6665
+ for (var C = p.currentPanel, x = 0; x < S; x++)
6666
6666
  C = C.prev();
6667
6667
  C.focus().catch(e._onCatch);
6668
- } else g.index > O.panel.index ? g.moveTo(Math.max(g.index - S, O.panel.index)).catch(e._onCatch) : E.position > E.range.min && g.moveTo(g.index).catch(e._onCatch);
6668
+ } else p.index > O.panel.index ? p.moveTo(Math.max(p.index - S, O.panel.index)).catch(e._onCatch) : E.position > E.range.min && p.moveTo(p.index).catch(e._onCatch);
6669
6669
  }
6670
6670
  }, this._onNextClick = function() {
6671
- var g = e._flicking, E = g.camera, T = E.anchorPoints;
6672
- if (!(g.animating || T.length <= 0)) {
6671
+ var p = e._flicking, E = p.camera, T = E.anchorPoints;
6672
+ if (!(p.animating || T.length <= 0)) {
6673
6673
  var O = T[T.length - 1], S = e._moveCount;
6674
6674
  if (e._moveByViewportSize)
6675
- g.control.moveToPosition(E.position + E.size, g.duration).catch(e._onCatch);
6676
- else if (g.circularEnabled) {
6677
- for (var C = g.currentPanel, x = 0; x < S; x++)
6675
+ p.control.moveToPosition(E.position + E.size, p.duration).catch(e._onCatch);
6676
+ else if (p.circularEnabled) {
6677
+ for (var C = p.currentPanel, x = 0; x < S; x++)
6678
6678
  C = C.next();
6679
6679
  C.focus().catch(e._onCatch);
6680
- } else g.index < O.panel.index ? g.moveTo(Math.min(g.index + S, O.panel.index)).catch(e._onCatch) : E.position > E.range.min && g.moveTo(g.index).catch(e._onCatch);
6680
+ } else p.index < O.panel.index ? p.moveTo(Math.min(p.index + S, O.panel.index)).catch(e._onCatch) : E.position > E.range.min && p.moveTo(p.index).catch(e._onCatch);
6681
6681
  }
6682
6682
  }, this._onAnimation = function() {
6683
- var g = e._flicking, E = g.camera, T = g.control.controller;
6684
- g.holding ? e._updateClass(E.position) : e._updateClass(T.animatingContext.end);
6685
- }, this._onCatch = function(g) {
6686
- if (!(g instanceof FlickingError))
6687
- throw g;
6688
- }, this._parentEl = l, this._prevElSelector = d, this._nextElSelector = p, this._disabledClass = b, this._moveCount = m, this._moveByViewportSize = y;
6683
+ var p = e._flicking, E = p.camera, T = p.control.controller;
6684
+ p.holding ? e._updateClass(E.position) : e._updateClass(T.animatingContext.end);
6685
+ }, this._onCatch = function(p) {
6686
+ if (!(p instanceof FlickingError))
6687
+ throw p;
6688
+ }, this._parentEl = l, this._prevElSelector = d, this._nextElSelector = _, this._disabledClass = y, this._moveCount = m, this._moveByViewportSize = b;
6689
6689
  }
6690
6690
  var i = s.prototype;
6691
6691
  return Object.defineProperty(i, "prevEl", {
@@ -6865,32 +6865,32 @@ var Renderer = /* @__PURE__ */ function() {
6865
6865
  }), t.destroy = function() {
6866
6866
  this._bullets = [], this._prevIndex = -1;
6867
6867
  }, t.render = function() {
6868
- var e = this, n = this._flicking, r = this._pagination, l = this._wrapper, u = this._bulletClass, d = this._activeClass, f = r.renderBullet, p = r.renderActiveBullet, _ = r.classPrefix + "-" + PAGINATION.BULLET_WRAPPER_SUFFIX, b = n.camera.anchorPoints;
6869
- addClass(l, _), l.innerHTML = b.map(function(m, P) {
6870
- return p && m.panel.index === n.index ? p(u, P) : f(u, P);
6868
+ var e = this, n = this._flicking, r = this._pagination, l = this._wrapper, u = this._bulletClass, d = this._activeClass, f = r.renderBullet, _ = r.renderActiveBullet, g = r.classPrefix + "-" + PAGINATION.BULLET_WRAPPER_SUFFIX, y = n.camera.anchorPoints;
6869
+ addClass(l, g), l.innerHTML = y.map(function(m, P) {
6870
+ return _ && m.panel.index === n.index ? _(u, P) : f(u, P);
6871
6871
  }).join(`
6872
6872
  `);
6873
6873
  var v = [].slice.call(l.children);
6874
6874
  v.forEach(function(m, P) {
6875
- var y = b[P];
6876
- y.panel.index === n.index && (addClass(m, d), e._prevIndex = P), e._addBulletEvents(m, P);
6875
+ var b = y[P];
6876
+ b.panel.index === n.index && (addClass(m, d), e._prevIndex = P), e._addBulletEvents(m, P);
6877
6877
  }), this._bullets = v;
6878
6878
  }, t.update = function(e) {
6879
- var n = this._flicking, r = this._pagination, l = this._wrapper, u = this._bullets, d = this._bulletClass, f = this._activeClass, p = this._prevIndex, _ = n.camera.anchorPoints, b = r.renderBullet, v = r.renderActiveBullet;
6880
- if (!(_.length <= 0)) {
6881
- var m = _[0].panel.index, P = e - m;
6882
- if (p !== P) {
6879
+ var n = this._flicking, r = this._pagination, l = this._wrapper, u = this._bullets, d = this._bulletClass, f = this._activeClass, _ = this._prevIndex, g = n.camera.anchorPoints, y = r.renderBullet, v = r.renderActiveBullet;
6880
+ if (!(g.length <= 0)) {
6881
+ var m = g[0].panel.index, P = e - m;
6882
+ if (_ !== P) {
6883
6883
  if (v) {
6884
- var y = u[p];
6885
- if (y) {
6886
- var g = this._createBulletFromString(b(d, p), p);
6887
- y.parentElement.replaceChild(g, y), u[p] = g;
6884
+ var b = u[_];
6885
+ if (b) {
6886
+ var p = this._createBulletFromString(y(d, _), _);
6887
+ b.parentElement.replaceChild(p, b), u[_] = p;
6888
6888
  }
6889
6889
  var E = u[P], T = this._createBulletFromString(v(d + " " + f, P), P);
6890
6890
  l.replaceChild(T, E), u[P] = T;
6891
6891
  } else {
6892
- var E = u[P], y = u[p];
6893
- y && removeClass(y, f), addClass(E, f);
6892
+ var E = u[P], b = u[_];
6893
+ b && removeClass(b, f), addClass(E, f);
6894
6894
  }
6895
6895
  this._prevIndex = P;
6896
6896
  }
@@ -6911,8 +6911,8 @@ var Renderer = /* @__PURE__ */ function() {
6911
6911
  }, t.update = function(e) {
6912
6912
  var n = this._flicking, r = this._wrapper, l = this._pagination, u = n.camera.anchorPoints, d = u.length > 0 ? e - u[0].panel.index + 1 : 0, f = u.length;
6913
6913
  if (!(d === this._prevIndex && f === this._prevTotal)) {
6914
- var p = "." + l.classPrefix + "-" + PAGINATION.FRACTION_CURRENT_SUFFIX, _ = "." + l.classPrefix + "-" + PAGINATION.FRACTION_TOTAL_SUFFIX, b = r.querySelector(p), v = r.querySelector(_);
6915
- b.innerHTML = l.fractionCurrentFormat(d), v.innerHTML = l.fractionTotalFormat(f), this._prevIndex = d, this._prevTotal = f;
6914
+ var _ = "." + l.classPrefix + "-" + PAGINATION.FRACTION_CURRENT_SUFFIX, g = "." + l.classPrefix + "-" + PAGINATION.FRACTION_TOTAL_SUFFIX, y = r.querySelector(_), v = r.querySelector(g);
6915
+ y.innerHTML = l.fractionCurrentFormat(d), v.innerHTML = l.fractionTotalFormat(f), this._prevIndex = d, this._prevTotal = f;
6916
6916
  }
6917
6917
  }, i;
6918
6918
  }(Renderer), ScrollBulletRenderer = /* @__PURE__ */ function(s) {
@@ -6928,61 +6928,61 @@ var Renderer = /* @__PURE__ */ function() {
6928
6928
  return t.destroy = function() {
6929
6929
  this._bullets = [], this._bulletSize = 0, this._previousIndex = -1, this._sliderIndex = -1;
6930
6930
  }, t.render = function() {
6931
- var e = this, n = this._wrapper, r = this._flicking, l = this._pagination, u = l.renderBullet, d = r.camera.anchorPoints, f = l.classPrefix + "-" + PAGINATION.SCROLL_WRAPPER_SUFFIX, p = l.classPrefix + "-" + PAGINATION.BULLET_SUFFIX, _ = l.classPrefix + "-" + PAGINATION.SCROLL_SLIDER_SUFFIX, b = l.classPrefix + "-" + PAGINATION.SCROLL_UNINIT_SUFFIX, v = document.createElement("div");
6932
- addClass(v, _), addClass(n, b), addClass(n, f), n.appendChild(v), v.innerHTML = d.map(function(g, E) {
6933
- return u(p, E);
6931
+ var e = this, n = this._wrapper, r = this._flicking, l = this._pagination, u = l.renderBullet, d = r.camera.anchorPoints, f = l.classPrefix + "-" + PAGINATION.SCROLL_WRAPPER_SUFFIX, _ = l.classPrefix + "-" + PAGINATION.BULLET_SUFFIX, g = l.classPrefix + "-" + PAGINATION.SCROLL_SLIDER_SUFFIX, y = l.classPrefix + "-" + PAGINATION.SCROLL_UNINIT_SUFFIX, v = document.createElement("div");
6932
+ addClass(v, g), addClass(n, y), addClass(n, f), n.appendChild(v), v.innerHTML = d.map(function(p, E) {
6933
+ return u(_, E);
6934
6934
  }).join(`
6935
6935
  `);
6936
6936
  var m = [].slice.call(v.children);
6937
- if (m.forEach(function(g, E) {
6938
- e._addBulletEvents(g, E);
6937
+ if (m.forEach(function(p, E) {
6938
+ e._addBulletEvents(p, E);
6939
6939
  }), !(m.length <= 0)) {
6940
- var P = getComputedStyle(m[0]), y = m[0].clientWidth + parseFloat(P.marginLeft) + parseFloat(P.marginRight);
6941
- n.style.width = y * l.bulletCount + "px", this._bullets = m, this._bulletSize = y, this._previousIndex = -1, this.update(this._flicking.index), window.requestAnimationFrame(function() {
6942
- removeClass(n, b);
6940
+ var P = getComputedStyle(m[0]), b = m[0].clientWidth + parseFloat(P.marginLeft) + parseFloat(P.marginRight);
6941
+ n.style.width = b * l.bulletCount + "px", this._bullets = m, this._bulletSize = b, this._previousIndex = -1, this.update(this._flicking.index), window.requestAnimationFrame(function() {
6942
+ removeClass(n, y);
6943
6943
  });
6944
6944
  }
6945
6945
  }, t.update = function(e) {
6946
- var n = this._pagination, r = this._flicking, l = this._bullets, u = this._previousIndex, d = n.renderBullet, f = n.renderActiveBullet, p = r.camera.anchorPoints, _ = p[0].panel.index, b = e - _;
6947
- if (!(p.length <= 0)) {
6948
- var v = n.classPrefix + "-" + PAGINATION.BULLET_SUFFIX, m = n.classPrefix + "-" + PAGINATION.BULLET_ACTIVE_SUFFIX, P = n.classPrefix + "-" + PAGINATION.SCROLL_PREV_SUFFIX, y = n.classPrefix + "-" + PAGINATION.SCROLL_NEXT_SUFFIX, g = function(R) {
6946
+ var n = this._pagination, r = this._flicking, l = this._bullets, u = this._previousIndex, d = n.renderBullet, f = n.renderActiveBullet, _ = r.camera.anchorPoints, g = _[0].panel.index, y = e - g;
6947
+ if (!(_.length <= 0)) {
6948
+ var v = n.classPrefix + "-" + PAGINATION.BULLET_SUFFIX, m = n.classPrefix + "-" + PAGINATION.BULLET_ACTIVE_SUFFIX, P = n.classPrefix + "-" + PAGINATION.SCROLL_PREV_SUFFIX, b = n.classPrefix + "-" + PAGINATION.SCROLL_NEXT_SUFFIX, p = function(R) {
6949
6949
  return "" + P + (R > 1 ? R : "");
6950
6950
  }, E = function(R) {
6951
- return "" + y + (R > 1 ? R : "");
6952
- }, T = new RegExp("^" + P), O = new RegExp("^" + y);
6951
+ return "" + b + (R > 1 ? R : "");
6952
+ }, T = new RegExp("^" + P), O = new RegExp("^" + b);
6953
6953
  if (f) {
6954
6954
  var S = l[u];
6955
6955
  if (S) {
6956
6956
  var C = this._createBulletFromString(d(v, u), u);
6957
6957
  S.parentElement.replaceChild(C, S), l[u] = C;
6958
6958
  }
6959
- var x = l[b];
6959
+ var x = l[y];
6960
6960
  if (x) {
6961
- var I = this._createBulletFromString(f(v, b), b);
6962
- x.parentElement.replaceChild(I, x), l[b] = I;
6961
+ var I = this._createBulletFromString(f(v, y), y);
6962
+ x.parentElement.replaceChild(I, x), l[y] = I;
6963
6963
  }
6964
6964
  }
6965
6965
  l.forEach(function(R, w) {
6966
- for (var A = w - b, N = R.className.split(" "), D = 0, L = N; D < L.length; D++) {
6966
+ for (var A = w - y, N = R.className.split(" "), D = 0, L = N; D < L.length; D++) {
6967
6967
  var B = L[D];
6968
6968
  (B === m || T.test(B) || O.test(B)) && removeClass(R, B);
6969
6969
  }
6970
- A === 0 ? addClass(R, m) : A > 0 ? addClass(R, E(Math.abs(A))) : addClass(R, g(Math.abs(A)));
6971
- }), n.scrollOnChange(b, {
6970
+ A === 0 ? addClass(R, m) : A > 0 ? addClass(R, E(Math.abs(A))) : addClass(R, p(Math.abs(A)));
6971
+ }), n.scrollOnChange(y, {
6972
6972
  total: l.length,
6973
6973
  prevIndex: u,
6974
6974
  sliderIndex: this._sliderIndex,
6975
- direction: b > u ? DIRECTION.NEXT : DIRECTION.PREV,
6975
+ direction: y > u ? DIRECTION.NEXT : DIRECTION.PREV,
6976
6976
  bullets: __spreadArray$1([], l),
6977
6977
  moveTo: this.moveTo
6978
- }), this._previousIndex = b;
6978
+ }), this._previousIndex = y;
6979
6979
  }
6980
6980
  }, i;
6981
6981
  }(Renderer), Pagination = /* @__PURE__ */ function() {
6982
6982
  function s(t) {
6983
- var e = this, n = t === void 0 ? {} : t, r = n.parentEl, l = r === void 0 ? null : r, u = n.selector, d = u === void 0 ? PAGINATION.SELECTOR : u, f = n.type, p = f === void 0 ? PAGINATION.TYPE.BULLET : f, _ = n.classPrefix, b = _ === void 0 ? PAGINATION.PREFIX : _, v = n.bulletCount, m = v === void 0 ? 5 : v, P = n.renderBullet, y = P === void 0 ? function(A) {
6983
+ var e = this, n = t === void 0 ? {} : t, r = n.parentEl, l = r === void 0 ? null : r, u = n.selector, d = u === void 0 ? PAGINATION.SELECTOR : u, f = n.type, _ = f === void 0 ? PAGINATION.TYPE.BULLET : f, g = n.classPrefix, y = g === void 0 ? PAGINATION.PREFIX : g, v = n.bulletCount, m = v === void 0 ? 5 : v, P = n.renderBullet, b = P === void 0 ? function(A) {
6984
6984
  return '<span class="' + A + '"></span>';
6985
- } : P, g = n.renderActiveBullet, E = g === void 0 ? null : g, T = n.renderFraction, O = T === void 0 ? function(A, N) {
6985
+ } : P, p = n.renderActiveBullet, E = p === void 0 ? null : p, T = n.renderFraction, O = T === void 0 ? function(A, N) {
6986
6986
  return '<span class="' + A + '"></span>/<span class="' + N + '"></span>';
6987
6987
  } : T, S = n.fractionCurrentFormat, C = S === void 0 ? function(A) {
6988
6988
  return A.toString();
@@ -6995,7 +6995,7 @@ var Renderer = /* @__PURE__ */ function() {
6995
6995
  e._removeAllChilds(), e._renderer.render();
6996
6996
  }, this._onIndexChange = function(A) {
6997
6997
  e._renderer.update(A.index);
6998
- }, this._parentEl = l, this._selector = d, this._type = p, this._classPrefix = b, this._bulletCount = m, this._renderBullet = y, this._renderActiveBullet = E, this._renderFraction = O, this._fractionCurrentFormat = C, this._fractionTotalFormat = I, this._scrollOnChange = w;
6998
+ }, this._parentEl = l, this._selector = d, this._type = _, this._classPrefix = y, this._bulletCount = m, this._renderBullet = b, this._renderActiveBullet = E, this._renderFraction = O, this._fractionCurrentFormat = C, this._fractionTotalFormat = I, this._scrollOnChange = w;
6999
6999
  }
7000
7000
  var i = s.prototype;
7001
7001
  return Object.defineProperty(i, "parentEl", {
@@ -7178,10 +7178,10 @@ function orderChanged(s, i) {
7178
7178
  var l = n[0], u = n[1];
7179
7179
  if (l === u)
7180
7180
  return [0, 0];
7181
- var d = t[l], f = e[u - 1], p = d.getIndex();
7181
+ var d = t[l], f = e[u - 1], _ = d.getIndex();
7182
7182
  d.disconnect(), f ? d.connect(f, f.next) : d.connect(void 0, t[0]);
7183
- var _ = d.getIndex();
7184
- return [p, _];
7183
+ var g = d.getIndex();
7184
+ return [_, g];
7185
7185
  });
7186
7186
  }
7187
7187
  var Result = /* @__PURE__ */ function() {
@@ -7204,27 +7204,27 @@ var Result = /* @__PURE__ */ function() {
7204
7204
  }), i.caculateOrdered = function() {
7205
7205
  var t = orderChanged(this.changedBeforeAdded, this.fixed), e = this.changed, n = [];
7206
7206
  this.cacheOrdered = t.filter(function(r, l) {
7207
- var u = r[0], d = r[1], f = e[l], p = f[0], _ = f[1];
7207
+ var u = r[0], d = r[1], f = e[l], _ = f[0], g = f[1];
7208
7208
  if (u !== d)
7209
- return n.push([p, _]), !0;
7209
+ return n.push([_, g]), !0;
7210
7210
  }), this.cachePureChanged = n;
7211
7211
  }, s;
7212
7212
  }();
7213
7213
  function diff(s, i, t) {
7214
7214
  var e = SUPPORT_MAP ? Map : t ? HashMap : PolyMap, n = t || function(E) {
7215
7215
  return E;
7216
- }, r = [], l = [], u = [], d = s.map(n), f = i.map(n), p = new e(), _ = new e(), b = [], v = [], m = {}, P = [], y = 0, g = 0;
7216
+ }, r = [], l = [], u = [], d = s.map(n), f = i.map(n), _ = new e(), g = new e(), y = [], v = [], m = {}, P = [], b = 0, p = 0;
7217
7217
  return d.forEach(function(E, T) {
7218
- p.set(E, T);
7219
- }), f.forEach(function(E, T) {
7220
7218
  _.set(E, T);
7219
+ }), f.forEach(function(E, T) {
7220
+ g.set(E, T);
7221
7221
  }), d.forEach(function(E, T) {
7222
- var O = _.get(E);
7223
- typeof O > "u" ? (++g, l.push(T)) : m[O] = g;
7222
+ var O = g.get(E);
7223
+ typeof O > "u" ? (++p, l.push(T)) : m[O] = p;
7224
7224
  }), f.forEach(function(E, T) {
7225
- var O = p.get(E);
7226
- typeof O > "u" ? (r.push(T), ++y) : (u.push([O, T]), g = m[T] || 0, b.push([O - g, T - y]), v.push(T === O), O !== T && P.push([O, T]));
7227
- }), l.reverse(), new Result(s, i, r, l, P, u, b, v);
7225
+ var O = _.get(E);
7226
+ typeof O > "u" ? (r.push(T), ++b) : (u.push([O, T]), p = m[T] || 0, y.push([O - p, T - b]), v.push(T === O), O !== T && P.push([O, T]));
7227
+ }), l.reverse(), new Result(s, i, r, l, P, u, y, v);
7228
7228
  }
7229
7229
  var ListDiffer = /* @__PURE__ */ function() {
7230
7230
  function s(t, e) {
@@ -7290,22 +7290,22 @@ function __awaiter(s, i, t, e) {
7290
7290
  });
7291
7291
  }
7292
7292
  return new (t || (t = Promise))(function(r, l) {
7293
- function u(p) {
7293
+ function u(_) {
7294
7294
  try {
7295
- f(e.next(p));
7296
- } catch (_) {
7297
- l(_);
7295
+ f(e.next(_));
7296
+ } catch (g) {
7297
+ l(g);
7298
7298
  }
7299
7299
  }
7300
- function d(p) {
7300
+ function d(_) {
7301
7301
  try {
7302
- f(e.throw(p));
7303
- } catch (_) {
7304
- l(_);
7302
+ f(e.throw(_));
7303
+ } catch (g) {
7304
+ l(g);
7305
7305
  }
7306
7306
  }
7307
- function f(p) {
7308
- p.done ? r(p.value) : n(p.value).then(u, d);
7307
+ function f(_) {
7308
+ _.done ? r(_.value) : n(_.value).then(u, d);
7309
7309
  }
7310
7310
  f((e = e.apply(s, [])).next());
7311
7311
  });
@@ -7328,8 +7328,8 @@ function __generator(s, i) {
7328
7328
  return this;
7329
7329
  }), l;
7330
7330
  function u(f) {
7331
- return function(p) {
7332
- return d([f, p]);
7331
+ return function(_) {
7332
+ return d([f, _]);
7333
7333
  };
7334
7334
  }
7335
7335
  function d(f) {
@@ -7373,8 +7373,8 @@ function __generator(s, i) {
7373
7373
  continue;
7374
7374
  }
7375
7375
  f = i.call(s, t);
7376
- } catch (p) {
7377
- f = [6, p], n = 0;
7376
+ } catch (_) {
7377
+ f = [6, _], n = 0;
7378
7378
  } finally {
7379
7379
  e = r = 0;
7380
7380
  }
@@ -7526,10 +7526,10 @@ var FlickingProps = {
7526
7526
  created: function() {
7527
7527
  var s = this;
7528
7528
  this.vanillaFlicking = null, this.renderEmitter = new Component(), this.diffResult = null, this.getPanels = function() {
7529
- var i = getCurrentInstance(), t = i?.ctx, e = s.vanillaFlicking, n = s.getSlots(), r = t?.diffResult, l = r ? getRenderingPanels(e, r) : n, u = resolveComponent("Panel"), d = l.map(function(f, p) {
7529
+ var i = getCurrentInstance(), t = i?.ctx, e = s.vanillaFlicking, n = s.getSlots(), r = t?.diffResult, l = r ? getRenderingPanels(e, r) : n, u = resolveComponent("Panel"), d = l.map(function(f, _) {
7530
7530
  return h(u, {
7531
7531
  key: f.key,
7532
- ref: p.toString()
7532
+ ref: _.toString()
7533
7533
  }, function() {
7534
7534
  return f;
7535
7535
  });
@@ -7541,13 +7541,13 @@ var FlickingProps = {
7541
7541
  } : {
7542
7542
  height: d.size
7543
7543
  } : {};
7544
- return u.map(function(p) {
7544
+ return u.map(function(_) {
7545
7545
  return h("div", {
7546
- key: p,
7547
- ref: p.toString(),
7546
+ key: _,
7547
+ ref: _.toString(),
7548
7548
  class: e,
7549
7549
  style: f,
7550
- "data-element-index": p
7550
+ "data-element-index": _
7551
7551
  });
7552
7552
  });
7553
7553
  }, withFlickingMethods(this, "vanillaFlicking");
@@ -7689,21 +7689,21 @@ const _hoisted_1$c = { class: "konnectio-gallery-arrow-container" }, _hoisted_2$
7689
7689
  function f(m) {
7690
7690
  t("update:idx", m);
7691
7691
  }
7692
- const p = computed$1({
7692
+ const _ = computed$1({
7693
7693
  get: () => e.idx,
7694
7694
  set: (m) => f(m)
7695
7695
  });
7696
- function _(m) {
7697
- p.value = m.index;
7696
+ function g(m) {
7697
+ _.value = m.index;
7698
7698
  }
7699
- function b(m) {
7699
+ function y(m) {
7700
7700
  n.value.moveTo(m);
7701
7701
  }
7702
7702
  function v() {
7703
7703
  t("opened");
7704
7704
  }
7705
- return watch(p, (m) => {
7706
- b(m);
7705
+ return watch(_, (m) => {
7706
+ y(m);
7707
7707
  }), onMounted(() => {
7708
7708
  r.value = [
7709
7709
  new Arrow(),
@@ -7725,7 +7725,7 @@ const _hoisted_1$c = { class: "konnectio-gallery-arrow-container" }, _hoisted_2$
7725
7725
  },
7726
7726
  class: "konnectio-flicking-gallery",
7727
7727
  plugins: r.value,
7728
- onChanged: _
7728
+ onChanged: g
7729
7729
  }, {
7730
7730
  viewport: withCtx(() => [
7731
7731
  createBaseVNode("div", _hoisted_1$c, [
@@ -7752,12 +7752,12 @@ const _hoisted_1$c = { class: "konnectio-gallery-arrow-container" }, _hoisted_2$
7752
7752
  P[0] || (P[0] = createBaseVNode("div", { class: "flicking-pagination" }, null, -1))
7753
7753
  ]),
7754
7754
  default: withCtx(() => [
7755
- (openBlock(!0), createElementBlock(Fragment, null, renderList(m.gallery, ({ large: y, url: g }, E) => (openBlock(), createElementBlock("div", {
7755
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(m.gallery, ({ large: b, url: p }, E) => (openBlock(), createElementBlock("div", {
7756
7756
  key: E,
7757
7757
  class: "konnectio-flicking-gallery-item"
7758
7758
  }, [
7759
7759
  createBaseVNode("img", {
7760
- src: y || g
7760
+ src: b || p
7761
7761
  }, null, 8, _hoisted_4$6)
7762
7762
  ]))), 128))
7763
7763
  ]),
@@ -7804,22 +7804,22 @@ const _hoisted_1$c = { class: "konnectio-gallery-arrow-container" }, _hoisted_2$
7804
7804
  currentDepartureDate: d,
7805
7805
  currentLocation: f
7806
7806
  } = storeToRefs(useHotelStore()), {
7807
- currentEventDate: p,
7808
- currentEventLocation: _
7807
+ currentEventDate: _,
7808
+ currentEventLocation: g
7809
7809
  } = storeToRefs(useEventStore());
7810
- function b(O) {
7810
+ function y(O) {
7811
7811
  const S = O.getFullYear();
7812
7812
  let C = O.getMonth() + 1, x = O.getDate();
7813
7813
  return x < 10 && (x = "0" + x), C < 10 && (C = "0" + C), `${S}-${C}-${x}`;
7814
7814
  }
7815
- const v = computed$1(() => n.type !== "event" ? `${window.location.origin + window.location.pathname}?a=${r.value}&c=${l.value}&ci=${b(u.value)}&co=${b(d.value)}&hid=${f.value}&id=${n.listingId}` : ""), m = computed$1(() => n.type === "event" ? `${window.location.origin + window.location.pathname}?d=${b(p.value)}&rid=${_.value}&eid=${n.listingId}` : "");
7815
+ const v = computed$1(() => n.type !== "event" ? `${window.location.origin + window.location.pathname}?a=${r.value}&c=${l.value}&ci=${y(u.value)}&co=${y(d.value)}&hid=${f.value}&id=${n.listingId}` : ""), m = computed$1(() => n.type === "event" ? `${window.location.origin + window.location.pathname}?d=${y(_.value)}&rid=${g.value}&eid=${n.listingId}` : "");
7816
7816
  function P(O) {
7817
7817
  t("update:idx", O);
7818
7818
  }
7819
- const y = computed$1({
7819
+ const b = computed$1({
7820
7820
  get: () => n.idx,
7821
7821
  set: (O) => P(O)
7822
- }), g = ref("testVueMasonry"), E = inject("redrawVueMasonry");
7822
+ }), p = ref("testVueMasonry"), E = inject("redrawVueMasonry");
7823
7823
  function T() {
7824
7824
  E("testVueMasonry");
7825
7825
  }
@@ -7833,8 +7833,8 @@ const _hoisted_1$c = { class: "konnectio-gallery-arrow-container" }, _hoisted_2$
7833
7833
  O.gallery ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
7834
7834
  createVNode(Gallery, {
7835
7835
  gallery: O.gallery,
7836
- idx: y.value,
7837
- "onUpdate:idx": S[0] || (S[0] = (I) => y.value = I)
7836
+ idx: b.value,
7837
+ "onUpdate:idx": S[0] || (S[0] = (I) => b.value = I)
7838
7838
  }, null, 8, ["gallery", "idx"])
7839
7839
  ])) : createCommentVNode("", !0),
7840
7840
  createBaseVNode("div", _hoisted_2$8, [
@@ -7864,7 +7864,7 @@ const _hoisted_1$c = { class: "konnectio-gallery-arrow-container" }, _hoisted_2$
7864
7864
  [C]
7865
7865
  ])), 128))
7866
7866
  ])), [
7867
- [x, g.value]
7867
+ [x, p.value]
7868
7868
  ])
7869
7869
  ])) : createCommentVNode("", !0)
7870
7870
  ])
@@ -8035,8 +8035,8 @@ function initTriggers(s) {
8035
8035
  };
8036
8036
  }
8037
8037
  function resetTriggers(s) {
8038
- var i = s.__resize_triggers__, t = i.expand, e = i.expandChild, n = i.contract, r = n.scrollWidth, l = n.scrollHeight, u = t.offsetWidth, d = t.offsetHeight, f = t.scrollWidth, p = t.scrollHeight;
8039
- n.scrollLeft = r, n.scrollTop = l, e.style.width = u + 1 + "px", e.style.height = d + 1 + "px", t.scrollLeft = f, t.scrollTop = p;
8038
+ var i = s.__resize_triggers__, t = i.expand, e = i.expandChild, n = i.contract, r = n.scrollWidth, l = n.scrollHeight, u = t.offsetWidth, d = t.offsetHeight, f = t.scrollWidth, _ = t.scrollHeight;
8039
+ n.scrollLeft = r, n.scrollTop = l, e.style.width = u + 1 + "px", e.style.height = d + 1 + "px", t.scrollLeft = f, t.scrollTop = _;
8040
8040
  }
8041
8041
  const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$6 = { key: 1 }, _sfc_main$9 = /* @__PURE__ */ defineComponent({
8042
8042
  __name: "TruncateContent",
@@ -8058,14 +8058,14 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$6 = {
8058
8058
  }), f = computed$1(() => {
8059
8059
  if (!d.localExpanded && e.maxHeight)
8060
8060
  return typeof e?.maxHeight == "number" ? `${e?.maxHeight}px` : e?.maxHeight;
8061
- }), p = () => {
8061
+ }), _ = () => {
8062
8062
  u.value && (u.value.innerHTML = convertDescription(x.value));
8063
- }, _ = () => {
8064
- d.localExpanded || (p(), (m() || C.value) && y());
8065
- }, b = () => {
8066
- e.text && (d.offset = e.text.length, v(), e.autoResize && r.value && (addListener(r.value, _), d.unregisterResizeCallback = () => {
8067
- r.value && removeListener(r.value, _);
8068
- }), _());
8063
+ }, g = () => {
8064
+ d.localExpanded || (_(), (m() || C.value) && b());
8065
+ }, y = () => {
8066
+ e.text && (d.offset = e.text.length, v(), e.autoResize && r.value && (addListener(r.value, g), d.unregisterResizeCallback = () => {
8067
+ r.value && removeListener(r.value, g);
8068
+ }), g());
8069
8069
  }, v = () => {
8070
8070
  d.unregisterResizeCallback?.();
8071
8071
  }, m = () => !e.maxLines && !e.maxHeight || !r.value ? !1 : !!(e.maxLines && P() > e.maxLines || e.maxHeight && r.value.scrollHeight > r.value.offsetHeight), P = () => l.value ? Object.keys(
@@ -8073,16 +8073,16 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$6 = {
8073
8073
  const B = `${D}/${L}`;
8074
8074
  return N[B] || (N[B] = !0), N;
8075
8075
  }, {})
8076
- ).length : 0, y = (...N) => {
8076
+ ).length : 0, b = (...N) => {
8077
8077
  const [D = 0, L = d.offset] = N;
8078
8078
  if (L - D <= 3) {
8079
8079
  E();
8080
8080
  return;
8081
8081
  }
8082
8082
  const B = Math.floor((L + D) / 2);
8083
- g(B), m() ? y(D, B) : y(B, L);
8084
- }, g = (N) => {
8085
- d.offset = N, p();
8083
+ p(B), m() ? b(D, B) : b(B, L);
8084
+ }, p = (N) => {
8085
+ d.offset = N, _();
8086
8086
  }, E = () => {
8087
8087
  T(), O();
8088
8088
  }, T = () => {
@@ -8092,7 +8092,7 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$6 = {
8092
8092
  for (; m() && P() > 1 && d.offset > 0; )
8093
8093
  S(-1);
8094
8094
  }, S = (N) => {
8095
- g(d.offset + N);
8095
+ p(d.offset + N);
8096
8096
  }, C = computed$1(() => e.text ? d.offset !== e.text.length : !1);
8097
8097
  watch(
8098
8098
  () => C.value,
@@ -8126,26 +8126,26 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$6 = {
8126
8126
  ), watch(
8127
8127
  () => d.localExpanded,
8128
8128
  (N) => {
8129
- N ? g(e.text.length) : _(), e.expanded !== N && n("update:expanded", N);
8129
+ N ? p(e.text.length) : g(), e.expanded !== N && n("update:expanded", N);
8130
8130
  }
8131
8131
  ), watch(
8132
8132
  () => [e.maxLines, e.maxHeight, e.ellipsis, e.location, C.value].join(),
8133
8133
  () => {
8134
8134
  nextTick(() => {
8135
- _();
8135
+ g();
8136
8136
  });
8137
8137
  }
8138
8138
  ), watch(
8139
8139
  () => [e.text, e.autoResize].join(),
8140
8140
  () => {
8141
8141
  nextTick(() => {
8142
- b();
8142
+ y();
8143
8143
  });
8144
8144
  }
8145
8145
  ), onUnmounted(() => {
8146
8146
  v();
8147
8147
  }), onMounted(() => {
8148
- b();
8148
+ y();
8149
8149
  }), (N, D) => (openBlock(), createElementBlock("div", {
8150
8150
  ref_key: "textClampRef",
8151
8151
  ref: r,
@@ -8215,39 +8215,39 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$6 = {
8215
8215
  disableDeepLink: { type: Boolean, default: !1 }
8216
8216
  },
8217
8217
  setup(s) {
8218
- const { t: i } = useI18n(), t = ref(!1), e = ref(0), n = s, { disablePricesFrom: r, currency: l } = useUtilityStore(), u = ref(!r && !!n.pricesFrom);
8219
- function d() {
8218
+ const { t: i } = useI18n(), t = ref(!1), e = ref(0), n = s, { disablePricesFrom: r, currency: l, hideAvailabilityNotice: u } = useUtilityStore(), d = ref(!r && !!n.pricesFrom);
8219
+ function f() {
8220
8220
  t.value = !0;
8221
8221
  }
8222
- function f(p) {
8223
- let _ = "";
8224
- return p.forEach(({ name: b }) => {
8225
- _ += `<li>${b}</li>`;
8226
- }), `<ul>${_}</ul>`;
8222
+ function _(g) {
8223
+ let y = "";
8224
+ return g.forEach(({ name: v }) => {
8225
+ y += `<li>${v}</li>`;
8226
+ }), `<ul>${y}</ul>`;
8227
8227
  }
8228
- return (p, _) => {
8229
- const b = resolveDirective("tooltip");
8228
+ return (g, y) => {
8229
+ const v = resolveDirective("tooltip");
8230
8230
  return openBlock(), createElementBlock("li", {
8231
8231
  class: normalizeClass([
8232
8232
  "konnectio-listing",
8233
- { "no-gallery": !p.gallery || p.gallery.length === 0 },
8234
- { "only-featured": p.gallery && p.gallery.length === 1 }
8233
+ { "no-gallery": !g.gallery || g.gallery.length === 0 },
8234
+ { "only-featured": g.gallery && g.gallery.length === 1 }
8235
8235
  ])
8236
8236
  }, [
8237
- p.gallery ? (openBlock(), createElementBlock("div", {
8237
+ g.gallery ? (openBlock(), createElementBlock("div", {
8238
8238
  key: 0,
8239
8239
  class: normalizeClass([
8240
8240
  "konnectio-listing-featured",
8241
- { "single-image": p.gallery.length === 1 }
8241
+ { "single-image": g.gallery.length === 1 }
8242
8242
  ])
8243
8243
  }, [
8244
8244
  createVNode(Gallery, {
8245
- gallery: p.gallery,
8245
+ gallery: g.gallery,
8246
8246
  idx: e.value,
8247
- "onUpdate:idx": _[0] || (_[0] = (v) => e.value = v),
8247
+ "onUpdate:idx": y[0] || (y[0] = (m) => e.value = m),
8248
8248
  "is-listing": !0,
8249
8249
  pagination: "scroll",
8250
- onOpened: d
8250
+ onOpened: f
8251
8251
  }, null, 8, ["gallery", "idx"])
8252
8252
  ], 2)) : createCommentVNode("", !0),
8253
8253
  createBaseVNode("div", _hoisted_1$9, [
@@ -8255,19 +8255,19 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$6 = {
8255
8255
  createBaseVNode("div", {
8256
8256
  class: normalizeClass([
8257
8257
  "konnectio-listing-title",
8258
- { "has-from-price": u.value }
8258
+ { "has-from-price": d.value }
8259
8259
  ])
8260
8260
  }, [
8261
8261
  createBaseVNode("h3", {
8262
- title: unref(capitalized)(p.name),
8263
- class: normalizeClass({ "no-padding": p.hideInfoButton })
8262
+ title: unref(capitalized)(g.name),
8263
+ class: normalizeClass({ "no-padding": g.hideInfoButton })
8264
8264
  }, [
8265
- createBaseVNode("span", null, toDisplayString(unref(capitalized)(p.name)), 1),
8266
- p.hideInfoButton ? createCommentVNode("", !0) : (openBlock(), createElementBlock("button", {
8265
+ createBaseVNode("span", null, toDisplayString(unref(capitalized)(g.name)), 1),
8266
+ g.hideInfoButton ? createCommentVNode("", !0) : (openBlock(), createElementBlock("button", {
8267
8267
  key: 0,
8268
8268
  class: "konnectio-listing-read-more",
8269
8269
  type: "button",
8270
- onClick: _[1] || (_[1] = withModifiers((v) => t.value = !0, ["prevent"]))
8270
+ onClick: y[1] || (y[1] = withModifiers((m) => t.value = !0, ["prevent"]))
8271
8271
  }, [
8272
8272
  createVNode(Icon, {
8273
8273
  icon: "info-circle",
@@ -8275,39 +8275,39 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$6 = {
8275
8275
  })
8276
8276
  ]))
8277
8277
  ], 10, _hoisted_3$5),
8278
- u.value || p.includesBreakfast || p.fromDate && p.toDate || p.toDate && unref(daysBetweenDates)(/* @__PURE__ */ new Date(), p.toDate) < 180 ? (openBlock(), createElementBlock("ul", _hoisted_4$4, [
8279
- u.value ? (openBlock(), createElementBlock("li", _hoisted_5$4, [
8280
- createBaseVNode("span", null, toDisplayString(`${unref(i)("general.pricesFrom")}: ${unref(showPrice)(p.pricesFrom, unref(l))}`), 1)
8278
+ d.value || g.includesBreakfast || g.fromDate && g.toDate || g.toDate && unref(daysBetweenDates)(/* @__PURE__ */ new Date(), g.toDate) < 180 && !unref(u) ? (openBlock(), createElementBlock("ul", _hoisted_4$4, [
8279
+ d.value ? (openBlock(), createElementBlock("li", _hoisted_5$4, [
8280
+ createBaseVNode("span", null, toDisplayString(`${unref(i)("general.pricesFrom")}: ${unref(showPrice)(g.pricesFrom, unref(l))}`), 1)
8281
8281
  ])) : createCommentVNode("", !0),
8282
- p.includesBreakfast ? (openBlock(), createElementBlock("li", _hoisted_6$4, [
8282
+ g.includesBreakfast ? (openBlock(), createElementBlock("li", _hoisted_6$4, [
8283
8283
  createBaseVNode("span", null, toDisplayString(unref(i)("general.breakfastIncluded")), 1),
8284
8284
  createCommentVNode("", !0)
8285
8285
  ])) : createCommentVNode("", !0),
8286
- p.fromDate && p.toDate ? (openBlock(), createElementBlock("li", _hoisted_7$3, [
8287
- createBaseVNode("span", null, toDisplayString(`${unref(showDate)(p.fromDate)} - ${unref(showDate)(p.toDate)}`), 1)
8288
- ])) : p.toDate && unref(daysBetweenDates)(/* @__PURE__ */ new Date(), p.toDate) < 180 ? (openBlock(), createElementBlock("li", _hoisted_8$3, [
8289
- createBaseVNode("span", null, toDisplayString(`${unref(i)("general.availableUntil")}: ${unref(showDate)(p.toDate)}`), 1)
8286
+ g.fromDate && g.toDate ? (openBlock(), createElementBlock("li", _hoisted_7$3, [
8287
+ createBaseVNode("span", null, toDisplayString(`${unref(showDate)(g.fromDate)} - ${unref(showDate)(g.toDate)}`), 1)
8288
+ ])) : g.toDate && unref(daysBetweenDates)(/* @__PURE__ */ new Date(), g.toDate) < 180 && !unref(u) ? (openBlock(), createElementBlock("li", _hoisted_8$3, [
8289
+ createBaseVNode("span", null, toDisplayString(`${unref(i)("general.availableUntil")}: ${unref(showDate)(g.toDate)}`), 1)
8290
8290
  ])) : createCommentVNode("", !0)
8291
8291
  ])) : createCommentVNode("", !0)
8292
8292
  ], 2),
8293
8293
  createBaseVNode("div", _hoisted_9$2, [
8294
- renderSlot(p.$slots, "description", {}, () => [
8295
- p.description ? (openBlock(), createBlock(_sfc_main$9, {
8294
+ renderSlot(g.$slots, "description", {}, () => [
8295
+ g.description ? (openBlock(), createBlock(_sfc_main$9, {
8296
8296
  key: 0,
8297
- text: p.description
8297
+ text: g.description
8298
8298
  }, null, 8, ["text"])) : createCommentVNode("", !0)
8299
8299
  ])
8300
8300
  ]),
8301
- p.facilities ? (openBlock(), createElementBlock("ul", _hoisted_10$2, [
8302
- (openBlock(!0), createElementBlock(Fragment, null, renderList(p.facilities, ({ icon: v, name: m, subFacilities: P }) => (openBlock(), createElementBlock(Fragment, null, [
8303
- v ? withDirectives((openBlock(), createElementBlock("li", { key: m }, [
8301
+ g.facilities ? (openBlock(), createElementBlock("ul", _hoisted_10$2, [
8302
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(g.facilities, ({ icon: m, name: P, subFacilities: b }) => (openBlock(), createElementBlock(Fragment, null, [
8303
+ m ? withDirectives((openBlock(), createElementBlock("li", { key: P }, [
8304
8304
  createVNode(Icon, {
8305
- icon: v,
8305
+ icon: m,
8306
8306
  color: "header"
8307
8307
  }, null, 8, ["icon"])
8308
8308
  ])), [
8309
- [b, {
8310
- content: f(P),
8309
+ [v, {
8310
+ content: _(b),
8311
8311
  classes: ["tooltip", "konnectio-tooltip"],
8312
8312
  html: !0
8313
8313
  }]
@@ -8316,27 +8316,27 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$6 = {
8316
8316
  ])) : createCommentVNode("", !0)
8317
8317
  ]),
8318
8318
  createBaseVNode("div", _hoisted_11$2, [
8319
- renderSlot(p.$slots, "action")
8319
+ renderSlot(g.$slots, "action")
8320
8320
  ]),
8321
- renderSlot(p.$slots, "default"),
8321
+ renderSlot(g.$slots, "default"),
8322
8322
  createVNode(SidePanel, {
8323
8323
  modelValue: t.value,
8324
- "onUpdate:modelValue": _[2] || (_[2] = (v) => t.value = v),
8325
- "listing-id": p.listingId,
8326
- type: p.type,
8327
- title: p.name,
8328
- description: p.description,
8329
- gallery: p.gallery,
8324
+ "onUpdate:modelValue": y[2] || (y[2] = (m) => t.value = m),
8325
+ "listing-id": g.listingId,
8326
+ type: g.type,
8327
+ title: g.name,
8328
+ description: g.description,
8329
+ gallery: g.gallery,
8330
8330
  idx: e.value,
8331
- "onUpdate:idx": _[3] || (_[3] = (v) => e.value = v),
8332
- facilities: p.facilities,
8333
- "disable-deep-link": p.disableDeepLink
8331
+ "onUpdate:idx": y[3] || (y[3] = (m) => e.value = m),
8332
+ facilities: g.facilities,
8333
+ "disable-deep-link": g.disableDeepLink
8334
8334
  }, null, 8, ["modelValue", "listing-id", "type", "title", "description", "gallery", "idx", "facilities", "disable-deep-link"])
8335
8335
  ])
8336
8336
  ], 2);
8337
8337
  };
8338
8338
  }
8339
- }), Base = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-491c76e8"]]), _hoisted_1$8 = { class: "konnectio-radio-checkboxes" }, _sfc_main$7 = /* @__PURE__ */ defineComponent({
8339
+ }), Base = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-72dff61f"]]), _hoisted_1$8 = { class: "konnectio-radio-checkboxes" }, _sfc_main$7 = /* @__PURE__ */ defineComponent({
8340
8340
  __name: "CheckboxField",
8341
8341
  props: {
8342
8342
  modelValue: {},
@@ -8360,10 +8360,10 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$6 = {
8360
8360
  }, {
8361
8361
  default: withCtx(() => [
8362
8362
  createBaseVNode("ul", _hoisted_1$8, [
8363
- (openBlock(!0), createElementBlock(Fragment, null, renderList(l.checkboxes, ({ label: d, value: f }, p) => (openBlock(), createElementBlock("li", { key: p }, [
8363
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(l.checkboxes, ({ label: d, value: f }, _) => (openBlock(), createElementBlock("li", { key: _ }, [
8364
8364
  createVNode(Checkbox, {
8365
8365
  modelValue: r.value,
8366
- "onUpdate:modelValue": u[0] || (u[0] = (_) => r.value = _),
8366
+ "onUpdate:modelValue": u[0] || (u[0] = (g) => r.value = g),
8367
8367
  label: d,
8368
8368
  name: l.name,
8369
8369
  type: "radio",
@@ -8385,28 +8385,28 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$6 = {
8385
8385
  },
8386
8386
  emits: ["reset"],
8387
8387
  setup(s, { emit: i }) {
8388
- const t = inject("emitter"), e = i, { headerHeight: n } = storeToRefs(useUtilityStore()), r = s, l = ref(0), u = ref(), d = computed$1(() => r.steps.filter((m) => !m.hidden)), f = computed$1(() => r.steps[l.value].id), p = () => {
8388
+ const t = inject("emitter"), e = i, { headerHeight: n } = storeToRefs(useUtilityStore()), r = s, l = ref(0), u = ref(), d = computed$1(() => r.steps.filter((m) => !m.hidden)), f = computed$1(() => r.steps[l.value].id), _ = () => {
8389
8389
  if (u.value) {
8390
8390
  const m = n.value;
8391
8391
  if (m && m > 0) {
8392
- const y = u.value.getBoundingClientRect().top + window.scrollY - m;
8392
+ const b = u.value.getBoundingClientRect().top + window.scrollY - m;
8393
8393
  window.scrollTo({
8394
- top: y,
8394
+ top: b,
8395
8395
  behavior: "smooth"
8396
8396
  });
8397
8397
  } else
8398
8398
  u.value.scrollIntoView({ behavior: "smooth" });
8399
8399
  }
8400
- }, _ = (m = 1) => {
8401
- l.value = l.value + m, p();
8402
- }, b = (m = 1) => {
8403
- l.value = l.value - m, p();
8400
+ }, g = (m = 1) => {
8401
+ l.value = l.value + m, _();
8402
+ }, y = (m = 1) => {
8403
+ l.value = l.value - m, _();
8404
8404
  };
8405
8405
  function v() {
8406
- l.value = 0, p();
8406
+ l.value = 0, _();
8407
8407
  }
8408
8408
  return t.on("scrollToTop", () => {
8409
- p();
8409
+ _();
8410
8410
  }), watch(l, () => {
8411
8411
  l.value === 0 && e("reset");
8412
8412
  }), (m, P) => (openBlock(), createElementBlock("div", {
@@ -8425,34 +8425,34 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$6 = {
8425
8425
  createBaseVNode("span", null, toDisplayString(m.subtitle), 1)
8426
8426
  ])) : createCommentVNode("", !0),
8427
8427
  createBaseVNode("ul", _hoisted_5$3, [
8428
- (openBlock(!0), createElementBlock(Fragment, null, renderList(d.value, (y, g) => (openBlock(), createElementBlock("li", {
8429
- key: y.id,
8430
- class: normalizeClass({ "is-active": l.value >= g })
8428
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(d.value, (b, p) => (openBlock(), createElementBlock("li", {
8429
+ key: b.id,
8430
+ class: normalizeClass({ "is-active": l.value >= p })
8431
8431
  }, [
8432
- y.icon ? (openBlock(), createBlock(Icon, {
8432
+ b.icon ? (openBlock(), createBlock(Icon, {
8433
8433
  key: 0,
8434
- icon: y.icon,
8434
+ icon: b.icon,
8435
8435
  type: "fas"
8436
8436
  }, null, 8, ["icon"])) : createCommentVNode("", !0),
8437
- createBaseVNode("span", null, toDisplayString(y.label), 1)
8437
+ createBaseVNode("span", null, toDisplayString(b.label), 1)
8438
8438
  ], 2))), 128))
8439
8439
  ])
8440
8440
  ])
8441
8441
  ])
8442
8442
  ]),
8443
8443
  createBaseVNode("ul", _hoisted_6$3, [
8444
- (openBlock(!0), createElementBlock(Fragment, null, renderList(m.steps, (y) => (openBlock(), createElementBlock("li", {
8445
- key: y.id,
8444
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(m.steps, (b) => (openBlock(), createElementBlock("li", {
8445
+ key: b.id,
8446
8446
  class: "konnectio-multi-step-form-content-tab"
8447
8447
  }, [
8448
8448
  withDirectives(createBaseVNode("div", null, [
8449
- renderSlot(m.$slots, y.id, {
8450
- next: _,
8451
- prev: b,
8449
+ renderSlot(m.$slots, b.id, {
8450
+ next: g,
8451
+ prev: y,
8452
8452
  reset: v
8453
8453
  }, void 0, !0)
8454
8454
  ], 512), [
8455
- [vShow, f.value === y.id]
8455
+ [vShow, f.value === b.id]
8456
8456
  ])
8457
8457
  ]))), 128))
8458
8458
  ])
@@ -8736,12 +8736,12 @@ const StickySidebar = /* @__PURE__ */ (() => {
8736
8736
  let u = "affix." + r.toLowerCase().replace("viewport-", "") + s;
8737
8737
  t.eventTrigger(this.sidebar, u), r === "STATIC" ? t.removeClass(this.sidebar, this.options.stickyClass) : t.addClass(this.sidebar, this.options.stickyClass);
8738
8738
  for (let f in l.outer) {
8739
- let p = typeof l.outer[f] == "number" ? "px" : "";
8740
- this.sidebar.style[f] = l.outer[f] + p;
8739
+ let _ = typeof l.outer[f] == "number" ? "px" : "";
8740
+ this.sidebar.style[f] = l.outer[f] + _;
8741
8741
  }
8742
8742
  for (let f in l.inner) {
8743
- let p = typeof l.inner[f] == "number" ? "px" : "";
8744
- this.sidebarInner.style[f] = l.inner[f] + p;
8743
+ let _ = typeof l.inner[f] == "number" ? "px" : "";
8744
+ this.sidebarInner.style[f] = l.inner[f] + _;
8745
8745
  }
8746
8746
  let d = "affixed." + r.toLowerCase().replace("viewport-", "") + s;
8747
8747
  t.eventTrigger(this.sidebar, d);
@@ -8766,9 +8766,13 @@ const StickySidebar = /* @__PURE__ */ (() => {
8766
8766
  this._running || (this._running = !0, ((r) => {
8767
8767
  requestAnimationFrame(() => {
8768
8768
  switch (r) {
8769
+ // When browser is scrolling and re-calculate just dimensions
8770
+ // within scroll.
8769
8771
  case "scroll":
8770
8772
  this._calcDimensionsWithScroll(), this.observeScrollDir(), this.stickyPosition();
8771
8773
  break;
8774
+ // When browser is resizing or there's no event, observe width
8775
+ // breakpoint and re-calculate dimensions.
8772
8776
  case "resize":
8773
8777
  default:
8774
8778
  this._widthBreakpoint(), this.calcDimensions(), this.stickyPosition(!0);
@@ -8819,10 +8823,10 @@ const StickySidebar = /* @__PURE__ */ (() => {
8819
8823
  * @return {String}
8820
8824
  */
8821
8825
  static supportTransform(n) {
8822
- var r = !1, l = n ? "perspective" : "transform", u = l.charAt(0).toUpperCase() + l.slice(1), d = ["Webkit", "Moz", "O", "ms"], f = document.createElement("support"), p = f.style;
8823
- return (l + " " + d.join(u + " ") + u).split(" ").forEach(function(_, b) {
8824
- if (p[_] !== void 0)
8825
- return r = _, !1;
8826
+ var r = !1, l = n ? "perspective" : "transform", u = l.charAt(0).toUpperCase() + l.slice(1), d = ["Webkit", "Moz", "O", "ms"], f = document.createElement("support"), _ = f.style;
8827
+ return (l + " " + d.join(u + " ") + u).split(" ").forEach(function(g, y) {
8828
+ if (_[g] !== void 0)
8829
+ return r = g, !1;
8826
8830
  }), r;
8827
8831
  }
8828
8832
  /**
@@ -9021,9 +9025,9 @@ const _hoisted_1$3 = {
9021
9025
  headerHeight: u
9022
9026
  } = storeToRefs(useUtilityStore()), { isValidatingDiscountCode: d } = storeToRefs(useHotelStore()), {
9023
9027
  amount: f,
9024
- voucher: p,
9025
- isLoading: _
9026
- } = storeToRefs(useApplyGiftCardStore()), { apply: b, reset: v } = useApplyGiftCardStore(), m = useSlots(), P = useModel(s, "discountCode"), y = s, g = computed$1(() => y.basePrice - y.weekendFee - y.roomUpgrade), E = ref("discount"), T = computed$1(() => E.value === "discount"), O = computed$1(() => E.value === "gift-card"), S = computed$1(() => !t.value || !e.value), C = computed$1(() => !t.value && !e.value), x = (I) => E.value = I;
9028
+ voucher: _,
9029
+ isLoading: g
9030
+ } = storeToRefs(useApplyGiftCardStore()), { apply: y, reset: v } = useApplyGiftCardStore(), m = useSlots(), P = useModel(s, "discountCode"), b = s, p = computed$1(() => b.basePrice - b.weekendFee - b.roomUpgrade), E = ref("discount"), T = computed$1(() => E.value === "discount"), O = computed$1(() => E.value === "gift-card"), S = computed$1(() => !t.value || !e.value), C = computed$1(() => !t.value && !e.value), x = (I) => E.value = I;
9027
9031
  return onMounted(() => {
9028
9032
  e.value && x("gift-card");
9029
9033
  }), (I, R) => {
@@ -9080,9 +9084,9 @@ const _hoisted_1$3 = {
9080
9084
  ]),
9081
9085
  createBaseVNode("ul", null, [
9082
9086
  renderSlot(I.$slots, "price-summary"),
9083
- g.value > 0 ? (openBlock(), createElementBlock("li", _hoisted_10$1, [
9087
+ p.value > 0 ? (openBlock(), createElementBlock("li", _hoisted_10$1, [
9084
9088
  createBaseVNode("span", null, toDisplayString(unref(i)("booking.availability.basePrice")), 1),
9085
- createBaseVNode("b", null, toDisplayString(unref(showPrice)(g.value, unref(r))), 1)
9089
+ createBaseVNode("b", null, toDisplayString(unref(showPrice)(p.value, unref(r))), 1)
9086
9090
  ])) : createCommentVNode("", !0),
9087
9091
  I.weekendFee > 0 ? (openBlock(), createElementBlock("li", _hoisted_11$1, [
9088
9092
  createBaseVNode("span", null, toDisplayString(unref(i)("general.weekendFee")), 1),
@@ -9173,15 +9177,15 @@ const _hoisted_1$3 = {
9173
9177
  onAction: R[4] || (R[4] = (A) => I.validateDiscountCode())
9174
9178
  }, null, 8, ["modelValue", "placeholder", "is-loading"])) : O.value ? (openBlock(), createBlock(ActionField, {
9175
9179
  key: 1,
9176
- modelValue: unref(p),
9177
- "onUpdate:modelValue": R[5] || (R[5] = (A) => isRef(p) ? p.value = A : null),
9180
+ modelValue: unref(_),
9181
+ "onUpdate:modelValue": R[5] || (R[5] = (A) => isRef(_) ? _.value = A : null),
9178
9182
  icon: "gift-card",
9179
9183
  "button-icon": "paper-plane-top",
9180
9184
  placeholder: "XXXXXXXX",
9181
9185
  action: "success",
9182
9186
  secondary: !0,
9183
- "is-loading": unref(_),
9184
- onAction: R[6] || (R[6] = (A) => unref(b)())
9187
+ "is-loading": unref(g),
9188
+ onAction: R[6] || (R[6] = (A) => unref(y)())
9185
9189
  }, null, 8, ["modelValue", "is-loading"])) : createCommentVNode("", !0)
9186
9190
  ]),
9187
9191
  _: 1
@@ -9246,7 +9250,7 @@ const _hoisted_1$3 = {
9246
9250
  ]);
9247
9251
  };
9248
9252
  }
9249
- }), ReservationForm = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-1d759209"]]), _hoisted_1$2 = {
9253
+ }), ReservationForm = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-b4c01bb0"]]), _hoisted_1$2 = {
9250
9254
  id: "konnectio-confirmation",
9251
9255
  class: "konnectio-panel"
9252
9256
  }, _hoisted_2$1 = { id: "konnectio-confirmation-introduction" }, _hoisted_3$1 = { id: "konnectio-confirmation-title" }, _hoisted_4$1 = ["innerHTML"], _hoisted_5$1 = { class: "konnectio-order-panel" }, _hoisted_6$1 = { key: 0 }, _hoisted_7$1 = { class: "konnectio-order-panel" }, _hoisted_8$1 = { class: "konnectio-order-lines" }, _hoisted_9 = { key: 0 }, _hoisted_10 = { key: 1 }, _hoisted_11 = { key: 2 }, _hoisted_12 = {
@@ -9270,18 +9274,18 @@ const _hoisted_1$3 = {
9270
9274
  adults: u,
9271
9275
  children: d,
9272
9276
  offerDate: f,
9273
- totalPrice: p,
9274
- totalVAT: _,
9275
- subTotalPrice: b
9277
+ totalPrice: _,
9278
+ totalVAT: g,
9279
+ subTotalPrice: y
9276
9280
  } = storeToRefs(usePaymentStore()), { currency: v } = storeToRefs(useUtilityStore()), { currentArrivalDate: m, currentDepartureDate: P } = storeToRefs(useHotelStore());
9277
- return (y, g) => (openBlock(), createElementBlock("div", _hoisted_1$2, [
9281
+ return (b, p) => (openBlock(), createElementBlock("div", _hoisted_1$2, [
9278
9282
  createBaseVNode("div", _hoisted_2$1, [
9279
9283
  createBaseVNode("h2", _hoisted_3$1, [
9280
9284
  createBaseVNode("span", null, toDisplayString(unref(i)("general.thankYou")), 1)
9281
9285
  ]),
9282
9286
  createBaseVNode("div", {
9283
9287
  id: "konnectio-confirmation-message",
9284
- innerHTML: y.message
9288
+ innerHTML: b.message
9285
9289
  }, null, 8, _hoisted_4$1)
9286
9290
  ]),
9287
9291
  createBaseVNode("div", _hoisted_5$1, [
@@ -9351,17 +9355,17 @@ const _hoisted_1$3 = {
9351
9355
  ])
9352
9356
  ])) : createCommentVNode("", !0),
9353
9357
  createBaseVNode("ul", _hoisted_14, [
9354
- unref(b) ? (openBlock(), createElementBlock("li", _hoisted_15, [
9358
+ unref(y) ? (openBlock(), createElementBlock("li", _hoisted_15, [
9355
9359
  createBaseVNode("span", null, toDisplayString(unref(i)("general.subTotal")), 1),
9356
- createBaseVNode("b", null, toDisplayString(unref(showPrice)(unref(b), unref(v))), 1)
9360
+ createBaseVNode("b", null, toDisplayString(unref(showPrice)(unref(y), unref(v))), 1)
9357
9361
  ])) : createCommentVNode("", !0),
9358
- unref(_) ? (openBlock(), createElementBlock("li", _hoisted_16, [
9362
+ unref(g) ? (openBlock(), createElementBlock("li", _hoisted_16, [
9359
9363
  createBaseVNode("span", null, toDisplayString(unref(i)("general.vat")), 1),
9360
- createBaseVNode("b", null, toDisplayString(unref(showPrice)(unref(_), unref(v))), 1)
9364
+ createBaseVNode("b", null, toDisplayString(unref(showPrice)(unref(g), unref(v))), 1)
9361
9365
  ])) : createCommentVNode("", !0),
9362
- unref(p) ? (openBlock(), createElementBlock("li", _hoisted_17, [
9366
+ unref(_) ? (openBlock(), createElementBlock("li", _hoisted_17, [
9363
9367
  createBaseVNode("span", null, toDisplayString(unref(i)("booking.reservation.totalPrice")), 1),
9364
- createBaseVNode("b", null, toDisplayString(unref(showPrice)(unref(p), unref(v))), 1)
9368
+ createBaseVNode("b", null, toDisplayString(unref(showPrice)(unref(_), unref(v))), 1)
9365
9369
  ])) : createCommentVNode("", !0)
9366
9370
  ])
9367
9371
  ]));
@@ -9628,12 +9632,12 @@ const Sticky$1 = {
9628
9632
  s.directive("Sticky", Sticky$1);
9629
9633
  }
9630
9634
  };
9631
- var masonry = { exports: {} }, outlayer = { exports: {} }, evEmitter = { exports: {} }, hasRequiredEvEmitter;
9635
+ var masonry = { exports: {} }, outlayer = { exports: {} }, evEmitter$1 = { exports: {} }, evEmitter = evEmitter$1.exports, hasRequiredEvEmitter;
9632
9636
  function requireEvEmitter() {
9633
9637
  return hasRequiredEvEmitter || (hasRequiredEvEmitter = 1, function(s) {
9634
9638
  (function(i, t) {
9635
9639
  s.exports ? s.exports = t() : i.EvEmitter = t();
9636
- })(typeof window < "u" ? window : commonjsGlobal, function() {
9640
+ })(typeof window < "u" ? window : evEmitter, function() {
9637
9641
  function i() {
9638
9642
  }
9639
9643
  var t = i.prototype;
@@ -9668,7 +9672,7 @@ function requireEvEmitter() {
9668
9672
  delete this._events, delete this._onceEvents;
9669
9673
  }, i;
9670
9674
  });
9671
- }(evEmitter)), evEmitter.exports;
9675
+ }(evEmitter$1)), evEmitter$1.exports;
9672
9676
  }
9673
9677
  var getSize = { exports: {} };
9674
9678
  /*!
@@ -9722,8 +9726,8 @@ function requireGetSize() {
9722
9726
  var m = getComputedStyle(v);
9723
9727
  return m || n("Style returned " + m + ". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"), m;
9724
9728
  }
9725
- var f = !1, p;
9726
- function _() {
9729
+ var f = !1, _;
9730
+ function g() {
9727
9731
  if (!f) {
9728
9732
  f = !0;
9729
9733
  var v = document.createElement("div");
@@ -9731,21 +9735,21 @@ function requireGetSize() {
9731
9735
  var m = document.body || document.documentElement;
9732
9736
  m.appendChild(v);
9733
9737
  var P = d(v);
9734
- p = Math.round(t(P.width)) == 200, b.isBoxSizeOuter = p, m.removeChild(v);
9738
+ _ = Math.round(t(P.width)) == 200, y.isBoxSizeOuter = _, m.removeChild(v);
9735
9739
  }
9736
9740
  }
9737
- function b(v) {
9738
- if (_(), typeof v == "string" && (v = document.querySelector(v)), !(!v || typeof v != "object" || !v.nodeType)) {
9741
+ function y(v) {
9742
+ if (g(), typeof v == "string" && (v = document.querySelector(v)), !(!v || typeof v != "object" || !v.nodeType)) {
9739
9743
  var m = d(v);
9740
9744
  if (m.display == "none")
9741
9745
  return u();
9742
9746
  var P = {};
9743
9747
  P.width = v.offsetWidth, P.height = v.offsetHeight;
9744
- for (var y = P.isBorderBox = m.boxSizing == "border-box", g = 0; g < l; g++) {
9745
- var E = r[g], T = m[E], O = parseFloat(T);
9748
+ for (var b = P.isBorderBox = m.boxSizing == "border-box", p = 0; p < l; p++) {
9749
+ var E = r[p], T = m[E], O = parseFloat(T);
9746
9750
  P[E] = isNaN(O) ? 0 : O;
9747
9751
  }
9748
- var S = P.paddingLeft + P.paddingRight, C = P.paddingTop + P.paddingBottom, x = P.marginLeft + P.marginRight, I = P.marginTop + P.marginBottom, R = P.borderLeftWidth + P.borderRightWidth, w = P.borderTopWidth + P.borderBottomWidth, A = y && p, N = t(m.width);
9752
+ var S = P.paddingLeft + P.paddingRight, C = P.paddingTop + P.paddingBottom, x = P.marginLeft + P.marginRight, I = P.marginTop + P.marginBottom, R = P.borderLeftWidth + P.borderRightWidth, w = P.borderTopWidth + P.borderBottomWidth, A = b && _, N = t(m.width);
9749
9753
  N !== !1 && (P.width = N + // add padding and border unless it's already including it
9750
9754
  (A ? 0 : S + R));
9751
9755
  var D = t(m.height);
@@ -9753,7 +9757,7 @@ function requireGetSize() {
9753
9757
  (A ? 0 : C + w)), P.innerWidth = P.width - (S + R), P.innerHeight = P.height - (C + w), P.outerWidth = P.width + x, P.outerHeight = P.height + I, P;
9754
9758
  }
9755
9759
  }
9756
- return b;
9760
+ return y;
9757
9761
  });
9758
9762
  }(getSize)), getSize.exports;
9759
9763
  }
@@ -9824,50 +9828,50 @@ function requireUtils() {
9824
9828
  }, n.filterFindElements = function(u, d) {
9825
9829
  u = n.makeArray(u);
9826
9830
  var f = [];
9827
- return u.forEach(function(p) {
9828
- if (p instanceof HTMLElement) {
9831
+ return u.forEach(function(_) {
9832
+ if (_ instanceof HTMLElement) {
9829
9833
  if (!d) {
9830
- f.push(p);
9834
+ f.push(_);
9831
9835
  return;
9832
9836
  }
9833
- e(p, d) && f.push(p);
9834
- for (var _ = p.querySelectorAll(d), b = 0; b < _.length; b++)
9835
- f.push(_[b]);
9837
+ e(_, d) && f.push(_);
9838
+ for (var g = _.querySelectorAll(d), y = 0; y < g.length; y++)
9839
+ f.push(g[y]);
9836
9840
  }
9837
9841
  }), f;
9838
9842
  }, n.debounceMethod = function(u, d, f) {
9839
9843
  f = f || 100;
9840
- var p = u.prototype[d], _ = d + "Timeout";
9844
+ var _ = u.prototype[d], g = d + "Timeout";
9841
9845
  u.prototype[d] = function() {
9842
- var b = this[_];
9843
- clearTimeout(b);
9846
+ var y = this[g];
9847
+ clearTimeout(y);
9844
9848
  var v = arguments, m = this;
9845
- this[_] = setTimeout(function() {
9846
- p.apply(m, v), delete m[_];
9849
+ this[g] = setTimeout(function() {
9850
+ _.apply(m, v), delete m[g];
9847
9851
  }, f);
9848
9852
  };
9849
9853
  }, n.docReady = function(u) {
9850
9854
  var d = document.readyState;
9851
9855
  d == "complete" || d == "interactive" ? setTimeout(u) : document.addEventListener("DOMContentLoaded", u);
9852
9856
  }, n.toDashed = function(u) {
9853
- return u.replace(/(.)([A-Z])/g, function(d, f, p) {
9854
- return f + "-" + p;
9857
+ return u.replace(/(.)([A-Z])/g, function(d, f, _) {
9858
+ return f + "-" + _;
9855
9859
  }).toLowerCase();
9856
9860
  };
9857
9861
  var l = t.console;
9858
9862
  return n.htmlInit = function(u, d) {
9859
9863
  n.docReady(function() {
9860
- var f = n.toDashed(d), p = "data-" + f, _ = document.querySelectorAll("[" + p + "]"), b = document.querySelectorAll(".js-" + f), v = n.makeArray(_).concat(n.makeArray(b)), m = p + "-options", P = t.jQuery;
9861
- v.forEach(function(y) {
9862
- var g = y.getAttribute(p) || y.getAttribute(m), E;
9864
+ var f = n.toDashed(d), _ = "data-" + f, g = document.querySelectorAll("[" + _ + "]"), y = document.querySelectorAll(".js-" + f), v = n.makeArray(g).concat(n.makeArray(y)), m = _ + "-options", P = t.jQuery;
9865
+ v.forEach(function(b) {
9866
+ var p = b.getAttribute(_) || b.getAttribute(m), E;
9863
9867
  try {
9864
- E = g && JSON.parse(g);
9868
+ E = p && JSON.parse(p);
9865
9869
  } catch (O) {
9866
- l && l.error("Error parsing " + p + " on " + y.className + ": " + O);
9870
+ l && l.error("Error parsing " + _ + " on " + b.className + ": " + O);
9867
9871
  return;
9868
9872
  }
9869
- var T = new u(y, E);
9870
- P && P.data(y, d, T);
9873
+ var T = new u(b, E);
9874
+ P && P.data(b, d, T);
9871
9875
  });
9872
9876
  });
9873
9877
  }, n;
@@ -9886,10 +9890,10 @@ function requireItem() {
9886
9890
  i.getSize
9887
9891
  ));
9888
9892
  })(window, function(t, e) {
9889
- function n(y) {
9890
- for (var g in y)
9893
+ function n(b) {
9894
+ for (var p in b)
9891
9895
  return !1;
9892
- return g = null, !0;
9896
+ return p = null, !0;
9893
9897
  }
9894
9898
  var r = document.documentElement.style, l = typeof r.transition == "string" ? "transition" : "WebkitTransition", u = typeof r.transform == "string" ? "transform" : "WebkitTransform", d = {
9895
9899
  WebkitTransition: "webkitTransitionEnd",
@@ -9901,14 +9905,14 @@ function requireItem() {
9901
9905
  transitionProperty: l + "Property",
9902
9906
  transitionDelay: l + "Delay"
9903
9907
  };
9904
- function p(y, g) {
9905
- y && (this.element = y, this.layout = g, this.position = {
9908
+ function _(b, p) {
9909
+ b && (this.element = b, this.layout = p, this.position = {
9906
9910
  x: 0,
9907
9911
  y: 0
9908
9912
  }, this._create());
9909
9913
  }
9910
- var _ = p.prototype = Object.create(t.prototype);
9911
- _.constructor = p, _._create = function() {
9914
+ var g = _.prototype = Object.create(t.prototype);
9915
+ g.constructor = _, g._create = function() {
9912
9916
  this._transn = {
9913
9917
  ingProperties: {},
9914
9918
  clean: {},
@@ -9916,39 +9920,39 @@ function requireItem() {
9916
9920
  }, this.css({
9917
9921
  position: "absolute"
9918
9922
  });
9919
- }, _.handleEvent = function(y) {
9920
- var g = "on" + y.type;
9921
- this[g] && this[g](y);
9922
- }, _.getSize = function() {
9923
+ }, g.handleEvent = function(b) {
9924
+ var p = "on" + b.type;
9925
+ this[p] && this[p](b);
9926
+ }, g.getSize = function() {
9923
9927
  this.size = e(this.element);
9924
- }, _.css = function(y) {
9925
- var g = this.element.style;
9926
- for (var E in y) {
9928
+ }, g.css = function(b) {
9929
+ var p = this.element.style;
9930
+ for (var E in b) {
9927
9931
  var T = f[E] || E;
9928
- g[T] = y[E];
9932
+ p[T] = b[E];
9929
9933
  }
9930
- }, _.getPosition = function() {
9931
- var y = getComputedStyle(this.element), g = this.layout._getOption("originLeft"), E = this.layout._getOption("originTop"), T = y[g ? "left" : "right"], O = y[E ? "top" : "bottom"], S = parseFloat(T), C = parseFloat(O), x = this.layout.size;
9932
- T.indexOf("%") != -1 && (S = S / 100 * x.width), O.indexOf("%") != -1 && (C = C / 100 * x.height), S = isNaN(S) ? 0 : S, C = isNaN(C) ? 0 : C, S -= g ? x.paddingLeft : x.paddingRight, C -= E ? x.paddingTop : x.paddingBottom, this.position.x = S, this.position.y = C;
9933
- }, _.layoutPosition = function() {
9934
- var y = this.layout.size, g = {}, E = this.layout._getOption("originLeft"), T = this.layout._getOption("originTop"), O = E ? "paddingLeft" : "paddingRight", S = E ? "left" : "right", C = E ? "right" : "left", x = this.position.x + y[O];
9935
- g[S] = this.getXValue(x), g[C] = "";
9936
- var I = T ? "paddingTop" : "paddingBottom", R = T ? "top" : "bottom", w = T ? "bottom" : "top", A = this.position.y + y[I];
9937
- g[R] = this.getYValue(A), g[w] = "", this.css(g), this.emitEvent("layout", [this]);
9938
- }, _.getXValue = function(y) {
9939
- var g = this.layout._getOption("horizontal");
9940
- return this.layout.options.percentPosition && !g ? y / this.layout.size.width * 100 + "%" : y + "px";
9941
- }, _.getYValue = function(y) {
9942
- var g = this.layout._getOption("horizontal");
9943
- return this.layout.options.percentPosition && g ? y / this.layout.size.height * 100 + "%" : y + "px";
9944
- }, _._transitionTo = function(y, g) {
9934
+ }, g.getPosition = function() {
9935
+ var b = getComputedStyle(this.element), p = this.layout._getOption("originLeft"), E = this.layout._getOption("originTop"), T = b[p ? "left" : "right"], O = b[E ? "top" : "bottom"], S = parseFloat(T), C = parseFloat(O), x = this.layout.size;
9936
+ T.indexOf("%") != -1 && (S = S / 100 * x.width), O.indexOf("%") != -1 && (C = C / 100 * x.height), S = isNaN(S) ? 0 : S, C = isNaN(C) ? 0 : C, S -= p ? x.paddingLeft : x.paddingRight, C -= E ? x.paddingTop : x.paddingBottom, this.position.x = S, this.position.y = C;
9937
+ }, g.layoutPosition = function() {
9938
+ var b = this.layout.size, p = {}, E = this.layout._getOption("originLeft"), T = this.layout._getOption("originTop"), O = E ? "paddingLeft" : "paddingRight", S = E ? "left" : "right", C = E ? "right" : "left", x = this.position.x + b[O];
9939
+ p[S] = this.getXValue(x), p[C] = "";
9940
+ var I = T ? "paddingTop" : "paddingBottom", R = T ? "top" : "bottom", w = T ? "bottom" : "top", A = this.position.y + b[I];
9941
+ p[R] = this.getYValue(A), p[w] = "", this.css(p), this.emitEvent("layout", [this]);
9942
+ }, g.getXValue = function(b) {
9943
+ var p = this.layout._getOption("horizontal");
9944
+ return this.layout.options.percentPosition && !p ? b / this.layout.size.width * 100 + "%" : b + "px";
9945
+ }, g.getYValue = function(b) {
9946
+ var p = this.layout._getOption("horizontal");
9947
+ return this.layout.options.percentPosition && p ? b / this.layout.size.height * 100 + "%" : b + "px";
9948
+ }, g._transitionTo = function(b, p) {
9945
9949
  this.getPosition();
9946
- var E = this.position.x, T = this.position.y, O = y == this.position.x && g == this.position.y;
9947
- if (this.setPosition(y, g), O && !this.isTransitioning) {
9950
+ var E = this.position.x, T = this.position.y, O = b == this.position.x && p == this.position.y;
9951
+ if (this.setPosition(b, p), O && !this.isTransitioning) {
9948
9952
  this.layoutPosition();
9949
9953
  return;
9950
9954
  }
9951
- var S = y - E, C = g - T, x = {};
9955
+ var S = b - E, C = p - T, x = {};
9952
9956
  x.transform = this.getTranslate(S, C), this.transition({
9953
9957
  to: x,
9954
9958
  onTransitionEnd: {
@@ -9956,81 +9960,81 @@ function requireItem() {
9956
9960
  },
9957
9961
  isCleaning: !0
9958
9962
  });
9959
- }, _.getTranslate = function(y, g) {
9963
+ }, g.getTranslate = function(b, p) {
9960
9964
  var E = this.layout._getOption("originLeft"), T = this.layout._getOption("originTop");
9961
- return y = E ? y : -y, g = T ? g : -g, "translate3d(" + y + "px, " + g + "px, 0)";
9962
- }, _.goTo = function(y, g) {
9963
- this.setPosition(y, g), this.layoutPosition();
9964
- }, _.moveTo = _._transitionTo, _.setPosition = function(y, g) {
9965
- this.position.x = parseFloat(y), this.position.y = parseFloat(g);
9966
- }, _._nonTransition = function(y) {
9967
- this.css(y.to), y.isCleaning && this._removeStyles(y.to);
9968
- for (var g in y.onTransitionEnd)
9969
- y.onTransitionEnd[g].call(this);
9970
- }, _.transition = function(y) {
9965
+ return b = E ? b : -b, p = T ? p : -p, "translate3d(" + b + "px, " + p + "px, 0)";
9966
+ }, g.goTo = function(b, p) {
9967
+ this.setPosition(b, p), this.layoutPosition();
9968
+ }, g.moveTo = g._transitionTo, g.setPosition = function(b, p) {
9969
+ this.position.x = parseFloat(b), this.position.y = parseFloat(p);
9970
+ }, g._nonTransition = function(b) {
9971
+ this.css(b.to), b.isCleaning && this._removeStyles(b.to);
9972
+ for (var p in b.onTransitionEnd)
9973
+ b.onTransitionEnd[p].call(this);
9974
+ }, g.transition = function(b) {
9971
9975
  if (!parseFloat(this.layout.options.transitionDuration)) {
9972
- this._nonTransition(y);
9976
+ this._nonTransition(b);
9973
9977
  return;
9974
9978
  }
9975
- var g = this._transn;
9976
- for (var E in y.onTransitionEnd)
9977
- g.onEnd[E] = y.onTransitionEnd[E];
9978
- for (E in y.to)
9979
- g.ingProperties[E] = !0, y.isCleaning && (g.clean[E] = !0);
9980
- y.from && (this.css(y.from), this.element.offsetHeight), this.enableTransition(y.to), this.css(y.to), this.isTransitioning = !0;
9979
+ var p = this._transn;
9980
+ for (var E in b.onTransitionEnd)
9981
+ p.onEnd[E] = b.onTransitionEnd[E];
9982
+ for (E in b.to)
9983
+ p.ingProperties[E] = !0, b.isCleaning && (p.clean[E] = !0);
9984
+ b.from && (this.css(b.from), this.element.offsetHeight), this.enableTransition(b.to), this.css(b.to), this.isTransitioning = !0;
9981
9985
  };
9982
- function b(y) {
9983
- return y.replace(/([A-Z])/g, function(g) {
9984
- return "-" + g.toLowerCase();
9986
+ function y(b) {
9987
+ return b.replace(/([A-Z])/g, function(p) {
9988
+ return "-" + p.toLowerCase();
9985
9989
  });
9986
9990
  }
9987
- var v = "opacity," + b(u);
9988
- _.enableTransition = function() {
9991
+ var v = "opacity," + y(u);
9992
+ g.enableTransition = function() {
9989
9993
  if (!this.isTransitioning) {
9990
- var y = this.layout.options.transitionDuration;
9991
- y = typeof y == "number" ? y + "ms" : y, this.css({
9994
+ var b = this.layout.options.transitionDuration;
9995
+ b = typeof b == "number" ? b + "ms" : b, this.css({
9992
9996
  transitionProperty: v,
9993
- transitionDuration: y,
9997
+ transitionDuration: b,
9994
9998
  transitionDelay: this.staggerDelay || 0
9995
9999
  }), this.element.addEventListener(d, this, !1);
9996
10000
  }
9997
- }, _.onwebkitTransitionEnd = function(y) {
9998
- this.ontransitionend(y);
9999
- }, _.onotransitionend = function(y) {
10000
- this.ontransitionend(y);
10001
+ }, g.onwebkitTransitionEnd = function(b) {
10002
+ this.ontransitionend(b);
10003
+ }, g.onotransitionend = function(b) {
10004
+ this.ontransitionend(b);
10001
10005
  };
10002
10006
  var m = {
10003
10007
  "-webkit-transform": "transform"
10004
10008
  };
10005
- _.ontransitionend = function(y) {
10006
- if (y.target === this.element) {
10007
- var g = this._transn, E = m[y.propertyName] || y.propertyName;
10008
- if (delete g.ingProperties[E], n(g.ingProperties) && this.disableTransition(), E in g.clean && (this.element.style[y.propertyName] = "", delete g.clean[E]), E in g.onEnd) {
10009
- var T = g.onEnd[E];
10010
- T.call(this), delete g.onEnd[E];
10009
+ g.ontransitionend = function(b) {
10010
+ if (b.target === this.element) {
10011
+ var p = this._transn, E = m[b.propertyName] || b.propertyName;
10012
+ if (delete p.ingProperties[E], n(p.ingProperties) && this.disableTransition(), E in p.clean && (this.element.style[b.propertyName] = "", delete p.clean[E]), E in p.onEnd) {
10013
+ var T = p.onEnd[E];
10014
+ T.call(this), delete p.onEnd[E];
10011
10015
  }
10012
10016
  this.emitEvent("transitionEnd", [this]);
10013
10017
  }
10014
- }, _.disableTransition = function() {
10018
+ }, g.disableTransition = function() {
10015
10019
  this.removeTransitionStyles(), this.element.removeEventListener(d, this, !1), this.isTransitioning = !1;
10016
- }, _._removeStyles = function(y) {
10017
- var g = {};
10018
- for (var E in y)
10019
- g[E] = "";
10020
- this.css(g);
10020
+ }, g._removeStyles = function(b) {
10021
+ var p = {};
10022
+ for (var E in b)
10023
+ p[E] = "";
10024
+ this.css(p);
10021
10025
  };
10022
10026
  var P = {
10023
10027
  transitionProperty: "",
10024
10028
  transitionDuration: "",
10025
10029
  transitionDelay: ""
10026
10030
  };
10027
- return _.removeTransitionStyles = function() {
10031
+ return g.removeTransitionStyles = function() {
10028
10032
  this.css(P);
10029
- }, _.stagger = function(y) {
10030
- y = isNaN(y) ? 0 : y, this.staggerDelay = y + "ms";
10031
- }, _.removeElem = function() {
10033
+ }, g.stagger = function(b) {
10034
+ b = isNaN(b) ? 0 : b, this.staggerDelay = b + "ms";
10035
+ }, g.removeElem = function() {
10032
10036
  this.element.parentNode.removeChild(this.element), this.css({ display: "" }), this.emitEvent("remove", [this]);
10033
- }, _.remove = function() {
10037
+ }, g.remove = function() {
10034
10038
  if (!l || !parseFloat(this.layout.options.transitionDuration)) {
10035
10039
  this.removeElem();
10036
10040
  return;
@@ -10038,36 +10042,36 @@ function requireItem() {
10038
10042
  this.once("transitionEnd", function() {
10039
10043
  this.removeElem();
10040
10044
  }), this.hide();
10041
- }, _.reveal = function() {
10045
+ }, g.reveal = function() {
10042
10046
  delete this.isHidden, this.css({ display: "" });
10043
- var y = this.layout.options, g = {}, E = this.getHideRevealTransitionEndProperty("visibleStyle");
10044
- g[E] = this.onRevealTransitionEnd, this.transition({
10045
- from: y.hiddenStyle,
10046
- to: y.visibleStyle,
10047
+ var b = this.layout.options, p = {}, E = this.getHideRevealTransitionEndProperty("visibleStyle");
10048
+ p[E] = this.onRevealTransitionEnd, this.transition({
10049
+ from: b.hiddenStyle,
10050
+ to: b.visibleStyle,
10047
10051
  isCleaning: !0,
10048
- onTransitionEnd: g
10052
+ onTransitionEnd: p
10049
10053
  });
10050
- }, _.onRevealTransitionEnd = function() {
10054
+ }, g.onRevealTransitionEnd = function() {
10051
10055
  this.isHidden || this.emitEvent("reveal");
10052
- }, _.getHideRevealTransitionEndProperty = function(y) {
10053
- var g = this.layout.options[y];
10054
- if (g.opacity)
10056
+ }, g.getHideRevealTransitionEndProperty = function(b) {
10057
+ var p = this.layout.options[b];
10058
+ if (p.opacity)
10055
10059
  return "opacity";
10056
- for (var E in g)
10060
+ for (var E in p)
10057
10061
  return E;
10058
- }, _.hide = function() {
10062
+ }, g.hide = function() {
10059
10063
  this.isHidden = !0, this.css({ display: "" });
10060
- var y = this.layout.options, g = {}, E = this.getHideRevealTransitionEndProperty("hiddenStyle");
10061
- g[E] = this.onHideTransitionEnd, this.transition({
10062
- from: y.visibleStyle,
10063
- to: y.hiddenStyle,
10064
+ var b = this.layout.options, p = {}, E = this.getHideRevealTransitionEndProperty("hiddenStyle");
10065
+ p[E] = this.onHideTransitionEnd, this.transition({
10066
+ from: b.visibleStyle,
10067
+ to: b.hiddenStyle,
10064
10068
  // keep hidden stuff hidden
10065
10069
  isCleaning: !0,
10066
- onTransitionEnd: g
10070
+ onTransitionEnd: p
10067
10071
  });
10068
- }, _.onHideTransitionEnd = function() {
10072
+ }, g.onHideTransitionEnd = function() {
10069
10073
  this.isHidden && (this.css({ display: "none" }), this.emitEvent("hide"));
10070
- }, _.destroy = function() {
10074
+ }, g.destroy = function() {
10071
10075
  this.css({
10072
10076
  position: "",
10073
10077
  left: "",
@@ -10077,7 +10081,7 @@ function requireItem() {
10077
10081
  transition: "",
10078
10082
  transform: ""
10079
10083
  });
10080
- }, p;
10084
+ }, _;
10081
10085
  });
10082
10086
  }(item)), item.exports;
10083
10087
  }
@@ -10105,20 +10109,20 @@ function requireOutlayer() {
10105
10109
  );
10106
10110
  })(window, function(t, e, n, r, l) {
10107
10111
  var u = t.console, d = t.jQuery, f = function() {
10108
- }, p = 0, _ = {};
10109
- function b(g, E) {
10110
- var T = r.getQueryElement(g);
10112
+ }, _ = 0, g = {};
10113
+ function y(p, E) {
10114
+ var T = r.getQueryElement(p);
10111
10115
  if (!T) {
10112
- u && u.error("Bad element for " + this.constructor.namespace + ": " + (T || g));
10116
+ u && u.error("Bad element for " + this.constructor.namespace + ": " + (T || p));
10113
10117
  return;
10114
10118
  }
10115
10119
  this.element = T, d && (this.$element = d(this.element)), this.options = r.extend({}, this.constructor.defaults), this.option(E);
10116
- var O = ++p;
10117
- this.element.outlayerGUID = O, _[O] = this, this._create();
10120
+ var O = ++_;
10121
+ this.element.outlayerGUID = O, g[O] = this, this._create();
10118
10122
  var S = this._getOption("initLayout");
10119
10123
  S && this.layout();
10120
10124
  }
10121
- b.namespace = "outlayer", b.Item = l, b.defaults = {
10125
+ y.namespace = "outlayer", y.Item = l, y.defaults = {
10122
10126
  containerStyle: {
10123
10127
  position: "relative"
10124
10128
  },
@@ -10138,13 +10142,13 @@ function requireOutlayer() {
10138
10142
  transform: "scale(1)"
10139
10143
  }
10140
10144
  };
10141
- var v = b.prototype;
10142
- r.extend(v, e.prototype), v.option = function(g) {
10143
- r.extend(this.options, g);
10144
- }, v._getOption = function(g) {
10145
- var E = this.constructor.compatOptions[g];
10146
- return E && this.options[E] !== void 0 ? this.options[E] : this.options[g];
10147
- }, b.compatOptions = {
10145
+ var v = y.prototype;
10146
+ r.extend(v, e.prototype), v.option = function(p) {
10147
+ r.extend(this.options, p);
10148
+ }, v._getOption = function(p) {
10149
+ var E = this.constructor.compatOptions[p];
10150
+ return E && this.options[E] !== void 0 ? this.options[E] : this.options[p];
10151
+ }, y.compatOptions = {
10148
10152
  // currentName: oldName
10149
10153
  initLayout: "isInitLayout",
10150
10154
  horizontal: "isHorizontal",
@@ -10155,43 +10159,43 @@ function requireOutlayer() {
10155
10159
  resizeContainer: "isResizingContainer"
10156
10160
  }, v._create = function() {
10157
10161
  this.reloadItems(), this.stamps = [], this.stamp(this.options.stamp), r.extend(this.element.style, this.options.containerStyle);
10158
- var g = this._getOption("resize");
10159
- g && this.bindResize();
10162
+ var p = this._getOption("resize");
10163
+ p && this.bindResize();
10160
10164
  }, v.reloadItems = function() {
10161
10165
  this.items = this._itemize(this.element.children);
10162
- }, v._itemize = function(g) {
10163
- for (var E = this._filterFindItemElements(g), T = this.constructor.Item, O = [], S = 0; S < E.length; S++) {
10166
+ }, v._itemize = function(p) {
10167
+ for (var E = this._filterFindItemElements(p), T = this.constructor.Item, O = [], S = 0; S < E.length; S++) {
10164
10168
  var C = E[S], x = new T(C, this);
10165
10169
  O.push(x);
10166
10170
  }
10167
10171
  return O;
10168
- }, v._filterFindItemElements = function(g) {
10169
- return r.filterFindElements(g, this.options.itemSelector);
10172
+ }, v._filterFindItemElements = function(p) {
10173
+ return r.filterFindElements(p, this.options.itemSelector);
10170
10174
  }, v.getItemElements = function() {
10171
- return this.items.map(function(g) {
10172
- return g.element;
10175
+ return this.items.map(function(p) {
10176
+ return p.element;
10173
10177
  });
10174
10178
  }, v.layout = function() {
10175
10179
  this._resetLayout(), this._manageStamps();
10176
- var g = this._getOption("layoutInstant"), E = g !== void 0 ? g : !this._isLayoutInited;
10180
+ var p = this._getOption("layoutInstant"), E = p !== void 0 ? p : !this._isLayoutInited;
10177
10181
  this.layoutItems(this.items, E), this._isLayoutInited = !0;
10178
10182
  }, v._init = v.layout, v._resetLayout = function() {
10179
10183
  this.getSize();
10180
10184
  }, v.getSize = function() {
10181
10185
  this.size = n(this.element);
10182
- }, v._getMeasurement = function(g, E) {
10183
- var T = this.options[g], O;
10184
- T ? (typeof T == "string" ? O = this.element.querySelector(T) : T instanceof HTMLElement && (O = T), this[g] = O ? n(O)[E] : T) : this[g] = 0;
10185
- }, v.layoutItems = function(g, E) {
10186
- g = this._getItemsForLayout(g), this._layoutItems(g, E), this._postLayout();
10187
- }, v._getItemsForLayout = function(g) {
10188
- return g.filter(function(E) {
10186
+ }, v._getMeasurement = function(p, E) {
10187
+ var T = this.options[p], O;
10188
+ T ? (typeof T == "string" ? O = this.element.querySelector(T) : T instanceof HTMLElement && (O = T), this[p] = O ? n(O)[E] : T) : this[p] = 0;
10189
+ }, v.layoutItems = function(p, E) {
10190
+ p = this._getItemsForLayout(p), this._layoutItems(p, E), this._postLayout();
10191
+ }, v._getItemsForLayout = function(p) {
10192
+ return p.filter(function(E) {
10189
10193
  return !E.isIgnored;
10190
10194
  });
10191
- }, v._layoutItems = function(g, E) {
10192
- if (this._emitCompleteOnItems("layout", g), !(!g || !g.length)) {
10195
+ }, v._layoutItems = function(p, E) {
10196
+ if (this._emitCompleteOnItems("layout", p), !(!p || !p.length)) {
10193
10197
  var T = [];
10194
- g.forEach(function(O) {
10198
+ p.forEach(function(O) {
10195
10199
  var S = this._getItemLayoutPosition(O);
10196
10200
  S.item = O, S.isInstant = E || O.isLayoutInstant, T.push(S);
10197
10201
  }, this), this._processLayoutQueue(T);
@@ -10201,36 +10205,36 @@ function requireOutlayer() {
10201
10205
  x: 0,
10202
10206
  y: 0
10203
10207
  };
10204
- }, v._processLayoutQueue = function(g) {
10205
- this.updateStagger(), g.forEach(function(E, T) {
10208
+ }, v._processLayoutQueue = function(p) {
10209
+ this.updateStagger(), p.forEach(function(E, T) {
10206
10210
  this._positionItem(E.item, E.x, E.y, E.isInstant, T);
10207
10211
  }, this);
10208
10212
  }, v.updateStagger = function() {
10209
- var g = this.options.stagger;
10210
- if (g == null) {
10213
+ var p = this.options.stagger;
10214
+ if (p == null) {
10211
10215
  this.stagger = 0;
10212
10216
  return;
10213
10217
  }
10214
- return this.stagger = y(g), this.stagger;
10215
- }, v._positionItem = function(g, E, T, O, S) {
10216
- O ? g.goTo(E, T) : (g.stagger(S * this.stagger), g.moveTo(E, T));
10218
+ return this.stagger = b(p), this.stagger;
10219
+ }, v._positionItem = function(p, E, T, O, S) {
10220
+ O ? p.goTo(E, T) : (p.stagger(S * this.stagger), p.moveTo(E, T));
10217
10221
  }, v._postLayout = function() {
10218
10222
  this.resizeContainer();
10219
10223
  }, v.resizeContainer = function() {
10220
- var g = this._getOption("resizeContainer");
10221
- if (g) {
10224
+ var p = this._getOption("resizeContainer");
10225
+ if (p) {
10222
10226
  var E = this._getContainerSize();
10223
10227
  E && (this._setContainerMeasure(E.width, !0), this._setContainerMeasure(E.height, !1));
10224
10228
  }
10225
- }, v._getContainerSize = f, v._setContainerMeasure = function(g, E) {
10226
- if (g !== void 0) {
10229
+ }, v._getContainerSize = f, v._setContainerMeasure = function(p, E) {
10230
+ if (p !== void 0) {
10227
10231
  var T = this.size;
10228
- T.isBorderBox && (g += E ? T.paddingLeft + T.paddingRight + T.borderLeftWidth + T.borderRightWidth : T.paddingBottom + T.paddingTop + T.borderTopWidth + T.borderBottomWidth), g = Math.max(g, 0), this.element.style[E ? "width" : "height"] = g + "px";
10232
+ T.isBorderBox && (p += E ? T.paddingLeft + T.paddingRight + T.borderLeftWidth + T.borderRightWidth : T.paddingBottom + T.paddingTop + T.borderTopWidth + T.borderBottomWidth), p = Math.max(p, 0), this.element.style[E ? "width" : "height"] = p + "px";
10229
10233
  }
10230
- }, v._emitCompleteOnItems = function(g, E) {
10234
+ }, v._emitCompleteOnItems = function(p, E) {
10231
10235
  var T = this;
10232
10236
  function O() {
10233
- T.dispatchEvent(g + "Complete", null, [E]);
10237
+ T.dispatchEvent(p + "Complete", null, [E]);
10234
10238
  }
10235
10239
  var S = E.length;
10236
10240
  if (!E || !S) {
@@ -10242,43 +10246,43 @@ function requireOutlayer() {
10242
10246
  C++, C == S && O();
10243
10247
  }
10244
10248
  E.forEach(function(I) {
10245
- I.once(g, x);
10249
+ I.once(p, x);
10246
10250
  });
10247
- }, v.dispatchEvent = function(g, E, T) {
10251
+ }, v.dispatchEvent = function(p, E, T) {
10248
10252
  var O = E ? [E].concat(T) : T;
10249
- if (this.emitEvent(g, O), d)
10253
+ if (this.emitEvent(p, O), d)
10250
10254
  if (this.$element = this.$element || d(this.element), E) {
10251
10255
  var S = d.Event(E);
10252
- S.type = g, this.$element.trigger(S, T);
10256
+ S.type = p, this.$element.trigger(S, T);
10253
10257
  } else
10254
- this.$element.trigger(g, T);
10255
- }, v.ignore = function(g) {
10256
- var E = this.getItem(g);
10258
+ this.$element.trigger(p, T);
10259
+ }, v.ignore = function(p) {
10260
+ var E = this.getItem(p);
10257
10261
  E && (E.isIgnored = !0);
10258
- }, v.unignore = function(g) {
10259
- var E = this.getItem(g);
10262
+ }, v.unignore = function(p) {
10263
+ var E = this.getItem(p);
10260
10264
  E && delete E.isIgnored;
10261
- }, v.stamp = function(g) {
10262
- g = this._find(g), g && (this.stamps = this.stamps.concat(g), g.forEach(this.ignore, this));
10263
- }, v.unstamp = function(g) {
10264
- g = this._find(g), g && g.forEach(function(E) {
10265
+ }, v.stamp = function(p) {
10266
+ p = this._find(p), p && (this.stamps = this.stamps.concat(p), p.forEach(this.ignore, this));
10267
+ }, v.unstamp = function(p) {
10268
+ p = this._find(p), p && p.forEach(function(E) {
10265
10269
  r.removeFrom(this.stamps, E), this.unignore(E);
10266
10270
  }, this);
10267
- }, v._find = function(g) {
10268
- if (g)
10269
- return typeof g == "string" && (g = this.element.querySelectorAll(g)), g = r.makeArray(g), g;
10271
+ }, v._find = function(p) {
10272
+ if (p)
10273
+ return typeof p == "string" && (p = this.element.querySelectorAll(p)), p = r.makeArray(p), p;
10270
10274
  }, v._manageStamps = function() {
10271
10275
  !this.stamps || !this.stamps.length || (this._getBoundingRect(), this.stamps.forEach(this._manageStamp, this));
10272
10276
  }, v._getBoundingRect = function() {
10273
- var g = this.element.getBoundingClientRect(), E = this.size;
10277
+ var p = this.element.getBoundingClientRect(), E = this.size;
10274
10278
  this._boundingRect = {
10275
- left: g.left + E.paddingLeft + E.borderLeftWidth,
10276
- top: g.top + E.paddingTop + E.borderTopWidth,
10277
- right: g.right - (E.paddingRight + E.borderRightWidth),
10278
- bottom: g.bottom - (E.paddingBottom + E.borderBottomWidth)
10279
+ left: p.left + E.paddingLeft + E.borderLeftWidth,
10280
+ top: p.top + E.paddingTop + E.borderTopWidth,
10281
+ right: p.right - (E.paddingRight + E.borderRightWidth),
10282
+ bottom: p.bottom - (E.paddingBottom + E.borderBottomWidth)
10279
10283
  };
10280
- }, v._manageStamp = f, v._getElementOffset = function(g) {
10281
- var E = g.getBoundingClientRect(), T = this._boundingRect, O = n(g), S = {
10284
+ }, v._manageStamp = f, v._getElementOffset = function(p) {
10285
+ var E = p.getBoundingClientRect(), T = this._boundingRect, O = n(p), S = {
10282
10286
  left: E.left - T.left - O.marginLeft,
10283
10287
  top: E.top - T.top - O.marginTop,
10284
10288
  right: T.right - E.right - O.marginRight,
@@ -10291,97 +10295,97 @@ function requireOutlayer() {
10291
10295
  t.removeEventListener("resize", this), this.isResizeBound = !1;
10292
10296
  }, v.onresize = function() {
10293
10297
  this.resize();
10294
- }, r.debounceMethod(b, "onresize", 100), v.resize = function() {
10298
+ }, r.debounceMethod(y, "onresize", 100), v.resize = function() {
10295
10299
  !this.isResizeBound || !this.needsResizeLayout() || this.layout();
10296
10300
  }, v.needsResizeLayout = function() {
10297
- var g = n(this.element), E = this.size && g;
10298
- return E && g.innerWidth !== this.size.innerWidth;
10299
- }, v.addItems = function(g) {
10300
- var E = this._itemize(g);
10301
+ var p = n(this.element), E = this.size && p;
10302
+ return E && p.innerWidth !== this.size.innerWidth;
10303
+ }, v.addItems = function(p) {
10304
+ var E = this._itemize(p);
10301
10305
  return E.length && (this.items = this.items.concat(E)), E;
10302
- }, v.appended = function(g) {
10303
- var E = this.addItems(g);
10306
+ }, v.appended = function(p) {
10307
+ var E = this.addItems(p);
10304
10308
  E.length && (this.layoutItems(E, !0), this.reveal(E));
10305
- }, v.prepended = function(g) {
10306
- var E = this._itemize(g);
10309
+ }, v.prepended = function(p) {
10310
+ var E = this._itemize(p);
10307
10311
  if (E.length) {
10308
10312
  var T = this.items.slice(0);
10309
10313
  this.items = E.concat(T), this._resetLayout(), this._manageStamps(), this.layoutItems(E, !0), this.reveal(E), this.layoutItems(T);
10310
10314
  }
10311
- }, v.reveal = function(g) {
10312
- if (this._emitCompleteOnItems("reveal", g), !(!g || !g.length)) {
10315
+ }, v.reveal = function(p) {
10316
+ if (this._emitCompleteOnItems("reveal", p), !(!p || !p.length)) {
10313
10317
  var E = this.updateStagger();
10314
- g.forEach(function(T, O) {
10318
+ p.forEach(function(T, O) {
10315
10319
  T.stagger(O * E), T.reveal();
10316
10320
  });
10317
10321
  }
10318
- }, v.hide = function(g) {
10319
- if (this._emitCompleteOnItems("hide", g), !(!g || !g.length)) {
10322
+ }, v.hide = function(p) {
10323
+ if (this._emitCompleteOnItems("hide", p), !(!p || !p.length)) {
10320
10324
  var E = this.updateStagger();
10321
- g.forEach(function(T, O) {
10325
+ p.forEach(function(T, O) {
10322
10326
  T.stagger(O * E), T.hide();
10323
10327
  });
10324
10328
  }
10325
- }, v.revealItemElements = function(g) {
10326
- var E = this.getItems(g);
10329
+ }, v.revealItemElements = function(p) {
10330
+ var E = this.getItems(p);
10327
10331
  this.reveal(E);
10328
- }, v.hideItemElements = function(g) {
10329
- var E = this.getItems(g);
10332
+ }, v.hideItemElements = function(p) {
10333
+ var E = this.getItems(p);
10330
10334
  this.hide(E);
10331
- }, v.getItem = function(g) {
10335
+ }, v.getItem = function(p) {
10332
10336
  for (var E = 0; E < this.items.length; E++) {
10333
10337
  var T = this.items[E];
10334
- if (T.element == g)
10338
+ if (T.element == p)
10335
10339
  return T;
10336
10340
  }
10337
- }, v.getItems = function(g) {
10338
- g = r.makeArray(g);
10341
+ }, v.getItems = function(p) {
10342
+ p = r.makeArray(p);
10339
10343
  var E = [];
10340
- return g.forEach(function(T) {
10344
+ return p.forEach(function(T) {
10341
10345
  var O = this.getItem(T);
10342
10346
  O && E.push(O);
10343
10347
  }, this), E;
10344
- }, v.remove = function(g) {
10345
- var E = this.getItems(g);
10348
+ }, v.remove = function(p) {
10349
+ var E = this.getItems(p);
10346
10350
  this._emitCompleteOnItems("remove", E), !(!E || !E.length) && E.forEach(function(T) {
10347
10351
  T.remove(), r.removeFrom(this.items, T);
10348
10352
  }, this);
10349
10353
  }, v.destroy = function() {
10350
- var g = this.element.style;
10351
- g.height = "", g.position = "", g.width = "", this.items.forEach(function(T) {
10354
+ var p = this.element.style;
10355
+ p.height = "", p.position = "", p.width = "", this.items.forEach(function(T) {
10352
10356
  T.destroy();
10353
10357
  }), this.unbindResize();
10354
10358
  var E = this.element.outlayerGUID;
10355
- delete _[E], delete this.element.outlayerGUID, d && d.removeData(this.element, this.constructor.namespace);
10356
- }, b.data = function(g) {
10357
- g = r.getQueryElement(g);
10358
- var E = g && g.outlayerGUID;
10359
- return E && _[E];
10360
- }, b.create = function(g, E) {
10361
- var T = m(b);
10362
- return T.defaults = r.extend({}, b.defaults), r.extend(T.defaults, E), T.compatOptions = r.extend({}, b.compatOptions), T.namespace = g, T.data = b.data, T.Item = m(l), r.htmlInit(T, g), d && d.bridget && d.bridget(g, T), T;
10359
+ delete g[E], delete this.element.outlayerGUID, d && d.removeData(this.element, this.constructor.namespace);
10360
+ }, y.data = function(p) {
10361
+ p = r.getQueryElement(p);
10362
+ var E = p && p.outlayerGUID;
10363
+ return E && g[E];
10364
+ }, y.create = function(p, E) {
10365
+ var T = m(y);
10366
+ return T.defaults = r.extend({}, y.defaults), r.extend(T.defaults, E), T.compatOptions = r.extend({}, y.compatOptions), T.namespace = p, T.data = y.data, T.Item = m(l), r.htmlInit(T, p), d && d.bridget && d.bridget(p, T), T;
10363
10367
  };
10364
- function m(g) {
10368
+ function m(p) {
10365
10369
  function E() {
10366
- g.apply(this, arguments);
10370
+ p.apply(this, arguments);
10367
10371
  }
10368
- return E.prototype = Object.create(g.prototype), E.prototype.constructor = E, E;
10372
+ return E.prototype = Object.create(p.prototype), E.prototype.constructor = E, E;
10369
10373
  }
10370
10374
  var P = {
10371
10375
  ms: 1,
10372
10376
  s: 1e3
10373
10377
  };
10374
- function y(g) {
10375
- if (typeof g == "number")
10376
- return g;
10377
- var E = g.match(/(^\d*\.?\d*)(\w*)/), T = E && E[1], O = E && E[2];
10378
+ function b(p) {
10379
+ if (typeof p == "number")
10380
+ return p;
10381
+ var E = p.match(/(^\d*\.?\d*)(\w*)/), T = E && E[1], O = E && E[2];
10378
10382
  if (!T.length)
10379
10383
  return 0;
10380
10384
  T = parseFloat(T);
10381
10385
  var S = P[O] || 1;
10382
10386
  return T * S;
10383
10387
  }
10384
- return b.Item = l, b;
10388
+ return y.Item = l, y;
10385
10389
  });
10386
10390
  }(outlayer)), outlayer.exports;
10387
10391
  }
@@ -10392,242 +10396,248 @@ function requireOutlayer() {
10392
10396
  * MIT License
10393
10397
  * by David DeSandro
10394
10398
  */
10395
- (function(s) {
10396
- (function(i, t) {
10397
- s.exports ? s.exports = t(
10398
- requireOutlayer(),
10399
- requireGetSize()
10400
- ) : i.Masonry = t(
10401
- i.Outlayer,
10402
- i.getSize
10403
- );
10404
- })(window, function(t, e) {
10405
- var n = t.create("masonry");
10406
- n.compatOptions.fitWidth = "isFitWidth";
10407
- var r = n.prototype;
10408
- return r._resetLayout = function() {
10409
- this.getSize(), this._getMeasurement("columnWidth", "outerWidth"), this._getMeasurement("gutter", "outerWidth"), this.measureColumns(), this.colYs = [];
10410
- for (var l = 0; l < this.cols; l++)
10411
- this.colYs.push(0);
10412
- this.maxY = 0, this.horizontalColIndex = 0;
10413
- }, r.measureColumns = function() {
10414
- if (this.getContainerWidth(), !this.columnWidth) {
10415
- var l = this.items[0], u = l && l.element;
10416
- this.columnWidth = u && e(u).outerWidth || // if first elem has no width, default to size of container
10417
- this.containerWidth;
10418
- }
10419
- var d = this.columnWidth += this.gutter, f = this.containerWidth + this.gutter, p = f / d, _ = d - f % d, b = _ && _ < 1 ? "round" : "floor";
10420
- p = Math[b](p), this.cols = Math.max(p, 1);
10421
- }, r.getContainerWidth = function() {
10422
- var l = this._getOption("fitWidth"), u = l ? this.element.parentNode : this.element, d = e(u);
10423
- this.containerWidth = d && d.innerWidth;
10424
- }, r._getItemLayoutPosition = function(l) {
10425
- l.getSize();
10426
- var u = l.size.outerWidth % this.columnWidth, d = u && u < 1 ? "round" : "ceil", f = Math[d](l.size.outerWidth / this.columnWidth);
10427
- f = Math.min(f, this.cols);
10428
- for (var p = this.options.horizontalOrder ? "_getHorizontalColPosition" : "_getTopColPosition", _ = this[p](f, l), b = {
10429
- x: this.columnWidth * _.col,
10430
- y: _.y
10431
- }, v = _.y + l.size.outerHeight, m = f + _.col, P = _.col; P < m; P++)
10432
- this.colYs[P] = v;
10433
- return b;
10434
- }, r._getTopColPosition = function(l) {
10435
- var u = this._getTopColGroup(l), d = Math.min.apply(Math, u);
10436
- return {
10437
- col: u.indexOf(d),
10438
- y: d
10439
- };
10440
- }, r._getTopColGroup = function(l) {
10441
- if (l < 2)
10442
- return this.colYs;
10443
- for (var u = [], d = this.cols + 1 - l, f = 0; f < d; f++)
10444
- u[f] = this._getColGroupY(f, l);
10445
- return u;
10446
- }, r._getColGroupY = function(l, u) {
10447
- if (u < 2)
10448
- return this.colYs[l];
10449
- var d = this.colYs.slice(l, l + u);
10450
- return Math.max.apply(Math, d);
10451
- }, r._getHorizontalColPosition = function(l, u) {
10452
- var d = this.horizontalColIndex % this.cols, f = l > 1 && d + l > this.cols;
10453
- d = f ? 0 : d;
10454
- var p = u.size.outerWidth && u.size.outerHeight;
10455
- return this.horizontalColIndex = p ? d + l : this.horizontalColIndex, {
10456
- col: d,
10457
- y: this._getColGroupY(d, l)
10458
- };
10459
- }, r._manageStamp = function(l) {
10460
- var u = e(l), d = this._getElementOffset(l), f = this._getOption("originLeft"), p = f ? d.left : d.right, _ = p + u.outerWidth, b = Math.floor(p / this.columnWidth);
10461
- b = Math.max(0, b);
10462
- var v = Math.floor(_ / this.columnWidth);
10463
- v -= _ % this.columnWidth ? 0 : 1, v = Math.min(this.cols - 1, v);
10464
- for (var m = this._getOption("originTop"), P = (m ? d.top : d.bottom) + u.outerHeight, y = b; y <= v; y++)
10465
- this.colYs[y] = Math.max(P, this.colYs[y]);
10466
- }, r._getContainerSize = function() {
10467
- this.maxY = Math.max.apply(Math, this.colYs);
10468
- var l = {
10469
- height: this.maxY
10470
- };
10471
- return this._getOption("fitWidth") && (l.width = this._getContainerFitWidth()), l;
10472
- }, r._getContainerFitWidth = function() {
10473
- for (var l = 0, u = this.cols; --u && this.colYs[u] === 0; )
10474
- l++;
10475
- return (this.cols - l) * this.columnWidth - this.gutter;
10476
- }, r.needsResizeLayout = function() {
10477
- var l = this.containerWidth;
10478
- return this.getContainerWidth(), l != this.containerWidth;
10479
- }, n;
10480
- });
10481
- })(masonry);
10482
- var masonryExports = masonry.exports;
10399
+ var hasRequiredMasonry;
10400
+ function requireMasonry() {
10401
+ return hasRequiredMasonry || (hasRequiredMasonry = 1, function(s) {
10402
+ (function(i, t) {
10403
+ s.exports ? s.exports = t(
10404
+ requireOutlayer(),
10405
+ requireGetSize()
10406
+ ) : i.Masonry = t(
10407
+ i.Outlayer,
10408
+ i.getSize
10409
+ );
10410
+ })(window, function(t, e) {
10411
+ var n = t.create("masonry");
10412
+ n.compatOptions.fitWidth = "isFitWidth";
10413
+ var r = n.prototype;
10414
+ return r._resetLayout = function() {
10415
+ this.getSize(), this._getMeasurement("columnWidth", "outerWidth"), this._getMeasurement("gutter", "outerWidth"), this.measureColumns(), this.colYs = [];
10416
+ for (var l = 0; l < this.cols; l++)
10417
+ this.colYs.push(0);
10418
+ this.maxY = 0, this.horizontalColIndex = 0;
10419
+ }, r.measureColumns = function() {
10420
+ if (this.getContainerWidth(), !this.columnWidth) {
10421
+ var l = this.items[0], u = l && l.element;
10422
+ this.columnWidth = u && e(u).outerWidth || // if first elem has no width, default to size of container
10423
+ this.containerWidth;
10424
+ }
10425
+ var d = this.columnWidth += this.gutter, f = this.containerWidth + this.gutter, _ = f / d, g = d - f % d, y = g && g < 1 ? "round" : "floor";
10426
+ _ = Math[y](_), this.cols = Math.max(_, 1);
10427
+ }, r.getContainerWidth = function() {
10428
+ var l = this._getOption("fitWidth"), u = l ? this.element.parentNode : this.element, d = e(u);
10429
+ this.containerWidth = d && d.innerWidth;
10430
+ }, r._getItemLayoutPosition = function(l) {
10431
+ l.getSize();
10432
+ var u = l.size.outerWidth % this.columnWidth, d = u && u < 1 ? "round" : "ceil", f = Math[d](l.size.outerWidth / this.columnWidth);
10433
+ f = Math.min(f, this.cols);
10434
+ for (var _ = this.options.horizontalOrder ? "_getHorizontalColPosition" : "_getTopColPosition", g = this[_](f, l), y = {
10435
+ x: this.columnWidth * g.col,
10436
+ y: g.y
10437
+ }, v = g.y + l.size.outerHeight, m = f + g.col, P = g.col; P < m; P++)
10438
+ this.colYs[P] = v;
10439
+ return y;
10440
+ }, r._getTopColPosition = function(l) {
10441
+ var u = this._getTopColGroup(l), d = Math.min.apply(Math, u);
10442
+ return {
10443
+ col: u.indexOf(d),
10444
+ y: d
10445
+ };
10446
+ }, r._getTopColGroup = function(l) {
10447
+ if (l < 2)
10448
+ return this.colYs;
10449
+ for (var u = [], d = this.cols + 1 - l, f = 0; f < d; f++)
10450
+ u[f] = this._getColGroupY(f, l);
10451
+ return u;
10452
+ }, r._getColGroupY = function(l, u) {
10453
+ if (u < 2)
10454
+ return this.colYs[l];
10455
+ var d = this.colYs.slice(l, l + u);
10456
+ return Math.max.apply(Math, d);
10457
+ }, r._getHorizontalColPosition = function(l, u) {
10458
+ var d = this.horizontalColIndex % this.cols, f = l > 1 && d + l > this.cols;
10459
+ d = f ? 0 : d;
10460
+ var _ = u.size.outerWidth && u.size.outerHeight;
10461
+ return this.horizontalColIndex = _ ? d + l : this.horizontalColIndex, {
10462
+ col: d,
10463
+ y: this._getColGroupY(d, l)
10464
+ };
10465
+ }, r._manageStamp = function(l) {
10466
+ var u = e(l), d = this._getElementOffset(l), f = this._getOption("originLeft"), _ = f ? d.left : d.right, g = _ + u.outerWidth, y = Math.floor(_ / this.columnWidth);
10467
+ y = Math.max(0, y);
10468
+ var v = Math.floor(g / this.columnWidth);
10469
+ v -= g % this.columnWidth ? 0 : 1, v = Math.min(this.cols - 1, v);
10470
+ for (var m = this._getOption("originTop"), P = (m ? d.top : d.bottom) + u.outerHeight, b = y; b <= v; b++)
10471
+ this.colYs[b] = Math.max(P, this.colYs[b]);
10472
+ }, r._getContainerSize = function() {
10473
+ this.maxY = Math.max.apply(Math, this.colYs);
10474
+ var l = {
10475
+ height: this.maxY
10476
+ };
10477
+ return this._getOption("fitWidth") && (l.width = this._getContainerFitWidth()), l;
10478
+ }, r._getContainerFitWidth = function() {
10479
+ for (var l = 0, u = this.cols; --u && this.colYs[u] === 0; )
10480
+ l++;
10481
+ return (this.cols - l) * this.columnWidth - this.gutter;
10482
+ }, r.needsResizeLayout = function() {
10483
+ var l = this.containerWidth;
10484
+ return this.getContainerWidth(), l != this.containerWidth;
10485
+ }, n;
10486
+ });
10487
+ }(masonry)), masonry.exports;
10488
+ }
10489
+ var masonryExports = requireMasonry();
10483
10490
  const Masonry = /* @__PURE__ */ getDefaultExportFromCjs(masonryExports);
10484
- var imagesloaded = { exports: {} };
10491
+ var imagesloaded$1 = { exports: {} };
10485
10492
  /*!
10486
10493
  * imagesLoaded v4.1.4
10487
10494
  * JavaScript is all like "You images are done yet or what?"
10488
10495
  * MIT License
10489
10496
  */
10490
- (function(s) {
10491
- (function(i, t) {
10492
- s.exports ? s.exports = t(
10493
- i,
10494
- requireEvEmitter()
10495
- ) : i.imagesLoaded = t(
10496
- i,
10497
- i.EvEmitter
10498
- );
10499
- })(
10500
- typeof window < "u" ? window : commonjsGlobal,
10501
- // -------------------------- factory -------------------------- //
10502
- function(t, e) {
10503
- var n = t.jQuery, r = t.console;
10504
- function l(v, m) {
10505
- for (var P in m)
10506
- v[P] = m[P];
10507
- return v;
10508
- }
10509
- var u = Array.prototype.slice;
10510
- function d(v) {
10511
- if (Array.isArray(v))
10497
+ var imagesloaded = imagesloaded$1.exports, hasRequiredImagesloaded;
10498
+ function requireImagesloaded() {
10499
+ return hasRequiredImagesloaded || (hasRequiredImagesloaded = 1, function(s) {
10500
+ (function(i, t) {
10501
+ s.exports ? s.exports = t(
10502
+ i,
10503
+ requireEvEmitter()
10504
+ ) : i.imagesLoaded = t(
10505
+ i,
10506
+ i.EvEmitter
10507
+ );
10508
+ })(
10509
+ typeof window < "u" ? window : imagesloaded,
10510
+ // -------------------------- factory -------------------------- //
10511
+ function(t, e) {
10512
+ var n = t.jQuery, r = t.console;
10513
+ function l(v, m) {
10514
+ for (var P in m)
10515
+ v[P] = m[P];
10512
10516
  return v;
10513
- var m = typeof v == "object" && typeof v.length == "number";
10514
- return m ? u.call(v) : [v];
10515
- }
10516
- function f(v, m, P) {
10517
- if (!(this instanceof f))
10518
- return new f(v, m, P);
10519
- var y = v;
10520
- if (typeof v == "string" && (y = document.querySelectorAll(v)), !y) {
10521
- r.error("Bad element for imagesLoaded " + (y || v));
10522
- return;
10523
10517
  }
10524
- this.elements = d(y), this.options = l({}, this.options), typeof m == "function" ? P = m : l(this.options, m), P && this.on("always", P), this.getImages(), n && (this.jqDeferred = new n.Deferred()), setTimeout(this.check.bind(this));
10525
- }
10526
- f.prototype = Object.create(e.prototype), f.prototype.options = {}, f.prototype.getImages = function() {
10527
- this.images = [], this.elements.forEach(this.addElementImages, this);
10528
- }, f.prototype.addElementImages = function(v) {
10529
- v.nodeName == "IMG" && this.addImage(v), this.options.background === !0 && this.addElementBackgroundImages(v);
10530
- var m = v.nodeType;
10531
- if (!(!m || !p[m])) {
10532
- for (var P = v.querySelectorAll("img"), y = 0; y < P.length; y++) {
10533
- var g = P[y];
10534
- this.addImage(g);
10518
+ var u = Array.prototype.slice;
10519
+ function d(v) {
10520
+ if (Array.isArray(v))
10521
+ return v;
10522
+ var m = typeof v == "object" && typeof v.length == "number";
10523
+ return m ? u.call(v) : [v];
10524
+ }
10525
+ function f(v, m, P) {
10526
+ if (!(this instanceof f))
10527
+ return new f(v, m, P);
10528
+ var b = v;
10529
+ if (typeof v == "string" && (b = document.querySelectorAll(v)), !b) {
10530
+ r.error("Bad element for imagesLoaded " + (b || v));
10531
+ return;
10535
10532
  }
10536
- if (typeof this.options.background == "string") {
10537
- var E = v.querySelectorAll(this.options.background);
10538
- for (y = 0; y < E.length; y++) {
10539
- var T = E[y];
10540
- this.addElementBackgroundImages(T);
10533
+ this.elements = d(b), this.options = l({}, this.options), typeof m == "function" ? P = m : l(this.options, m), P && this.on("always", P), this.getImages(), n && (this.jqDeferred = new n.Deferred()), setTimeout(this.check.bind(this));
10534
+ }
10535
+ f.prototype = Object.create(e.prototype), f.prototype.options = {}, f.prototype.getImages = function() {
10536
+ this.images = [], this.elements.forEach(this.addElementImages, this);
10537
+ }, f.prototype.addElementImages = function(v) {
10538
+ v.nodeName == "IMG" && this.addImage(v), this.options.background === !0 && this.addElementBackgroundImages(v);
10539
+ var m = v.nodeType;
10540
+ if (!(!m || !_[m])) {
10541
+ for (var P = v.querySelectorAll("img"), b = 0; b < P.length; b++) {
10542
+ var p = P[b];
10543
+ this.addImage(p);
10544
+ }
10545
+ if (typeof this.options.background == "string") {
10546
+ var E = v.querySelectorAll(this.options.background);
10547
+ for (b = 0; b < E.length; b++) {
10548
+ var T = E[b];
10549
+ this.addElementBackgroundImages(T);
10550
+ }
10541
10551
  }
10542
10552
  }
10543
- }
10544
- };
10545
- var p = {
10546
- 1: !0,
10547
- 9: !0,
10548
- 11: !0
10549
- };
10550
- f.prototype.addElementBackgroundImages = function(v) {
10551
- var m = getComputedStyle(v);
10552
- if (m)
10553
- for (var P = /url\((['"])?(.*?)\1\)/gi, y = P.exec(m.backgroundImage); y !== null; ) {
10554
- var g = y && y[2];
10555
- g && this.addBackground(g, v), y = P.exec(m.backgroundImage);
10553
+ };
10554
+ var _ = {
10555
+ 1: !0,
10556
+ 9: !0,
10557
+ 11: !0
10558
+ };
10559
+ f.prototype.addElementBackgroundImages = function(v) {
10560
+ var m = getComputedStyle(v);
10561
+ if (m)
10562
+ for (var P = /url\((['"])?(.*?)\1\)/gi, b = P.exec(m.backgroundImage); b !== null; ) {
10563
+ var p = b && b[2];
10564
+ p && this.addBackground(p, v), b = P.exec(m.backgroundImage);
10565
+ }
10566
+ }, f.prototype.addImage = function(v) {
10567
+ var m = new g(v);
10568
+ this.images.push(m);
10569
+ }, f.prototype.addBackground = function(v, m) {
10570
+ var P = new y(v, m);
10571
+ this.images.push(P);
10572
+ }, f.prototype.check = function() {
10573
+ var v = this;
10574
+ if (this.progressedCount = 0, this.hasAnyBroken = !1, !this.images.length) {
10575
+ this.complete();
10576
+ return;
10556
10577
  }
10557
- }, f.prototype.addImage = function(v) {
10558
- var m = new _(v);
10559
- this.images.push(m);
10560
- }, f.prototype.addBackground = function(v, m) {
10561
- var P = new b(v, m);
10562
- this.images.push(P);
10563
- }, f.prototype.check = function() {
10564
- var v = this;
10565
- if (this.progressedCount = 0, this.hasAnyBroken = !1, !this.images.length) {
10566
- this.complete();
10567
- return;
10568
- }
10569
- function m(P, y, g) {
10570
- setTimeout(function() {
10571
- v.progress(P, y, g);
10578
+ function m(P, b, p) {
10579
+ setTimeout(function() {
10580
+ v.progress(P, b, p);
10581
+ });
10582
+ }
10583
+ this.images.forEach(function(P) {
10584
+ P.once("progress", m), P.check();
10572
10585
  });
10586
+ }, f.prototype.progress = function(v, m, P) {
10587
+ this.progressedCount++, this.hasAnyBroken = this.hasAnyBroken || !v.isLoaded, this.emitEvent("progress", [this, v, m]), this.jqDeferred && this.jqDeferred.notify && this.jqDeferred.notify(this, v), this.progressedCount == this.images.length && this.complete(), this.options.debug && r && r.log("progress: " + P, v, m);
10588
+ }, f.prototype.complete = function() {
10589
+ var v = this.hasAnyBroken ? "fail" : "done";
10590
+ if (this.isComplete = !0, this.emitEvent(v, [this]), this.emitEvent("always", [this]), this.jqDeferred) {
10591
+ var m = this.hasAnyBroken ? "reject" : "resolve";
10592
+ this.jqDeferred[m](this);
10593
+ }
10594
+ };
10595
+ function g(v) {
10596
+ this.img = v;
10573
10597
  }
10574
- this.images.forEach(function(P) {
10575
- P.once("progress", m), P.check();
10576
- });
10577
- }, f.prototype.progress = function(v, m, P) {
10578
- this.progressedCount++, this.hasAnyBroken = this.hasAnyBroken || !v.isLoaded, this.emitEvent("progress", [this, v, m]), this.jqDeferred && this.jqDeferred.notify && this.jqDeferred.notify(this, v), this.progressedCount == this.images.length && this.complete(), this.options.debug && r && r.log("progress: " + P, v, m);
10579
- }, f.prototype.complete = function() {
10580
- var v = this.hasAnyBroken ? "fail" : "done";
10581
- if (this.isComplete = !0, this.emitEvent(v, [this]), this.emitEvent("always", [this]), this.jqDeferred) {
10582
- var m = this.hasAnyBroken ? "reject" : "resolve";
10583
- this.jqDeferred[m](this);
10584
- }
10585
- };
10586
- function _(v) {
10587
- this.img = v;
10588
- }
10589
- _.prototype = Object.create(e.prototype), _.prototype.check = function() {
10590
- var v = this.getIsImageComplete();
10591
- if (v) {
10592
- this.confirm(this.img.naturalWidth !== 0, "naturalWidth");
10593
- return;
10598
+ g.prototype = Object.create(e.prototype), g.prototype.check = function() {
10599
+ var v = this.getIsImageComplete();
10600
+ if (v) {
10601
+ this.confirm(this.img.naturalWidth !== 0, "naturalWidth");
10602
+ return;
10603
+ }
10604
+ this.proxyImage = new Image(), this.proxyImage.addEventListener("load", this), this.proxyImage.addEventListener("error", this), this.img.addEventListener("load", this), this.img.addEventListener("error", this), this.proxyImage.src = this.img.src;
10605
+ }, g.prototype.getIsImageComplete = function() {
10606
+ return this.img.complete && this.img.naturalWidth;
10607
+ }, g.prototype.confirm = function(v, m) {
10608
+ this.isLoaded = v, this.emitEvent("progress", [this, this.img, m]);
10609
+ }, g.prototype.handleEvent = function(v) {
10610
+ var m = "on" + v.type;
10611
+ this[m] && this[m](v);
10612
+ }, g.prototype.onload = function() {
10613
+ this.confirm(!0, "onload"), this.unbindEvents();
10614
+ }, g.prototype.onerror = function() {
10615
+ this.confirm(!1, "onerror"), this.unbindEvents();
10616
+ }, g.prototype.unbindEvents = function() {
10617
+ this.proxyImage.removeEventListener("load", this), this.proxyImage.removeEventListener("error", this), this.img.removeEventListener("load", this), this.img.removeEventListener("error", this);
10618
+ };
10619
+ function y(v, m) {
10620
+ this.url = v, this.element = m, this.img = new Image();
10594
10621
  }
10595
- this.proxyImage = new Image(), this.proxyImage.addEventListener("load", this), this.proxyImage.addEventListener("error", this), this.img.addEventListener("load", this), this.img.addEventListener("error", this), this.proxyImage.src = this.img.src;
10596
- }, _.prototype.getIsImageComplete = function() {
10597
- return this.img.complete && this.img.naturalWidth;
10598
- }, _.prototype.confirm = function(v, m) {
10599
- this.isLoaded = v, this.emitEvent("progress", [this, this.img, m]);
10600
- }, _.prototype.handleEvent = function(v) {
10601
- var m = "on" + v.type;
10602
- this[m] && this[m](v);
10603
- }, _.prototype.onload = function() {
10604
- this.confirm(!0, "onload"), this.unbindEvents();
10605
- }, _.prototype.onerror = function() {
10606
- this.confirm(!1, "onerror"), this.unbindEvents();
10607
- }, _.prototype.unbindEvents = function() {
10608
- this.proxyImage.removeEventListener("load", this), this.proxyImage.removeEventListener("error", this), this.img.removeEventListener("load", this), this.img.removeEventListener("error", this);
10609
- };
10610
- function b(v, m) {
10611
- this.url = v, this.element = m, this.img = new Image();
10622
+ return y.prototype = Object.create(g.prototype), y.prototype.check = function() {
10623
+ this.img.addEventListener("load", this), this.img.addEventListener("error", this), this.img.src = this.url;
10624
+ var v = this.getIsImageComplete();
10625
+ v && (this.confirm(this.img.naturalWidth !== 0, "naturalWidth"), this.unbindEvents());
10626
+ }, y.prototype.unbindEvents = function() {
10627
+ this.img.removeEventListener("load", this), this.img.removeEventListener("error", this);
10628
+ }, y.prototype.confirm = function(v, m) {
10629
+ this.isLoaded = v, this.emitEvent("progress", [this, this.element, m]);
10630
+ }, f.makeJQueryPlugin = function(v) {
10631
+ v = v || t.jQuery, v && (n = v, n.fn.imagesLoaded = function(m, P) {
10632
+ var b = new f(this, m, P);
10633
+ return b.jqDeferred.promise(n(this));
10634
+ });
10635
+ }, f.makeJQueryPlugin(), f;
10612
10636
  }
10613
- return b.prototype = Object.create(_.prototype), b.prototype.check = function() {
10614
- this.img.addEventListener("load", this), this.img.addEventListener("error", this), this.img.src = this.url;
10615
- var v = this.getIsImageComplete();
10616
- v && (this.confirm(this.img.naturalWidth !== 0, "naturalWidth"), this.unbindEvents());
10617
- }, b.prototype.unbindEvents = function() {
10618
- this.img.removeEventListener("load", this), this.img.removeEventListener("error", this);
10619
- }, b.prototype.confirm = function(v, m) {
10620
- this.isLoaded = v, this.emitEvent("progress", [this, this.element, m]);
10621
- }, f.makeJQueryPlugin = function(v) {
10622
- v = v || t.jQuery, v && (n = v, n.fn.imagesLoaded = function(m, P) {
10623
- var y = new f(this, m, P);
10624
- return y.jqDeferred.promise(n(this));
10625
- });
10626
- }, f.makeJQueryPlugin(), f;
10627
- }
10628
- );
10629
- })(imagesloaded);
10630
- var imagesloadedExports = imagesloaded.exports;
10637
+ );
10638
+ }(imagesloaded$1)), imagesloaded$1.exports;
10639
+ }
10640
+ var imagesloadedExports = requireImagesloaded();
10631
10641
  const ImageLoaded = /* @__PURE__ */ getDefaultExportFromCjs(imagesloadedExports), attributesMap = {
10632
10642
  "column-width": "columnWidth",
10633
10643
  "transition-duration": "transitionDuration",
@@ -10658,22 +10668,22 @@ VueMasonryPlugin.install = function(s, i) {
10658
10668
  mounted: function(r, l) {
10659
10669
  if (!Masonry)
10660
10670
  throw new Error("Masonry plugin is not defined. Please check it's connected and parsed correctly.");
10661
- const u = collectOptions(r.attributes), d = new Masonry(r, u), f = l.value || e, p = u.destroyDelay ? parseInt(u.destroyDelay, 10) : void 0, _ = function() {
10671
+ const u = collectOptions(r.attributes), d = new Masonry(r, u), f = l.value || e, _ = u.destroyDelay ? parseInt(u.destroyDelay, 10) : void 0, g = function() {
10662
10672
  d.reloadItems(), d.layout();
10663
10673
  };
10664
10674
  nextTick(() => {
10665
- _();
10675
+ g();
10666
10676
  });
10667
- const b = function(m) {
10668
- _();
10677
+ const y = function(m) {
10678
+ g();
10669
10679
  }, v = function(m) {
10670
- t.off(`${EVENT_ADD}__${f}`, b), t.off(`${EVENT_REMOVE}__${f}`, b), t.off(`${EVENT_IMAGE_LOADED}__${f}`, b), t.off(`${EVENT_DESTROY}__${f}`, v);
10671
- const P = p && !Number.isNaN(p) ? p : 0;
10680
+ t.off(`${EVENT_ADD}__${f}`, y), t.off(`${EVENT_REMOVE}__${f}`, y), t.off(`${EVENT_IMAGE_LOADED}__${f}`, y), t.off(`${EVENT_DESTROY}__${f}`, v);
10681
+ const P = _ && !Number.isNaN(_) ? _ : 0;
10672
10682
  setTimeout(function() {
10673
10683
  d.destroy();
10674
10684
  }, P);
10675
10685
  };
10676
- t.on(`${EVENT_ADD}__${f}`, b), t.on(`${EVENT_REMOVE}__${f}`, b), t.on(`${EVENT_IMAGE_LOADED}__${f}`, b), t.on(`${EVENT_DESTROY}__${f}`, v);
10686
+ t.on(`${EVENT_ADD}__${f}`, y), t.on(`${EVENT_REMOVE}__${f}`, y), t.on(`${EVENT_IMAGE_LOADED}__${f}`, y), t.on(`${EVENT_DESTROY}__${f}`, v);
10677
10687
  },
10678
10688
  unbind: function(r, l) {
10679
10689
  const u = l.value || e;
@@ -10718,4 +10728,4 @@ export {
10718
10728
  StickyPlugin as a,
10719
10729
  ListingSkeleton as b
10720
10730
  };
10721
- //# sourceMappingURL=masonry.plugin-Djhh4bxD.js.map
10731
+ //# sourceMappingURL=masonry.plugin-DEok8Hbz.js.map