@expofp/floorplan
Version:
Interactive floor plan library for expos and events
1,276 lines • 163 kB
JavaScript
function __vite_inject_css__(css, id, forceLightDom){ if (typeof document==='undefined') return; var shadow=!forceLightDom&&typeof window!=='undefined'&&window.__efpShadowDOMStyleParent; var parent=shadow||document.head; var s=document.createElement('style'); s.setAttribute('data-chunk-style', id); s.appendChild(document.createTextNode(css)); parent.appendChild(s);}
(function() {
try {
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
e.SENTRY_RELEASE = { id: "3.7.8" };
var t = new e.Error().stack;
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "0d23812c-9f46-40c0-9888-a22a18af8e52", e._sentryDebugIdIdentifier = "sentry-dbid-0d23812c-9f46-40c0-9888-a22a18af8e52");
} catch {}
})();
import { n as e, r as t } from "./rolldown-runtime-YBAZwyzS.js";
import { t as n } from "./react-Di3Pmpio.js";
import { t as r } from "./jsx-runtime-C8yjdFgZ.js";
import { s as i } from "./i18n-BEer1tI4.js";
import { t as a } from "./react-dom-xeogvqlp.js";
import { t as o } from "./classnames-BRCgwycl.js";
import { n as s } from "./Button-C4gPbjAY.js";
import { t as c } from "./useRenderTarget-Cpdl_o5r.js";
//#region src/components/Gallery/GalleryBadges/GalleryBadges.tsx
var l = /* @__PURE__ */ t(o(), 1), u = /* @__PURE__ */ t(n(), 1), d = r(), f = ({ count: e, onFullscreen: t }) => /* @__PURE__ */ (0, d.jsxs)(d.Fragment, { children: [/* @__PURE__ */ (0, d.jsxs)("div", {
className: "gallery__badge gallery__badge-count",
children: [/* @__PURE__ */ (0, d.jsx)("i", { className: "icon-image" }), /* @__PURE__ */ (0, d.jsx)("span", { children: e })]
}), /* @__PURE__ */ (0, d.jsx)("div", {
className: "gallery__badge gallery__badge-fullscreen",
onClick: t,
children: /* @__PURE__ */ (0, d.jsx)("i", { className: "icon-maximize" })
})] }), p = new class {
constructor() {
this.cache = [], this.load = (e) => new Promise((t, n) => {
e || t(null);
var r = this.cache.filter((t) => t.src === e)[0];
r ? t(r) : (r = new Image(), r.crossOrigin = "anonymous", r.src = e, r.onload = () => {
this.cache.length > 10 && this.cache.shift(), this.cache.push(r), t(r);
}, r.onerror = (e) => {
n(e);
});
});
}
}(), m = ({ url: e, setHeight: t = !1, position: n = "center", isFullscreen: r = !1, leading: i = !1, fillMode: a = "contain", onImageLoadHeightUpdate: o }) => {
let s = (0, u.useRef)(null), c = (0, u.useRef)(null);
(0, u.useEffect)(() => {
!s.current || !c.current || !i || l(e);
}, [e]);
let l = async (e) => {
if (t) try {
let t = await p.load(e);
c.current.style.height = t.height * c.current.clientWidth / t.width + "px", o && o();
} catch {}
}, f = {
backgroundImage: `url("${e}")`,
backgroundSize: a,
backgroundRepeat: "no-repeat",
transition: i ? "all 0.5s ease 0s" : "none",
backgroundPosition: n
};
return /* @__PURE__ */ (0, d.jsx)("div", {
ref: c,
style: {
width: "100%",
height: i && !r ? "250px" : "100%"
},
children: /* @__PURE__ */ (0, d.jsx)("div", {
ref: s,
className: "gallery__img",
style: f
})
});
}, h = ({ url: e, position: t = "center", leading: n = !1, setHeight: r = !1, fillMode: i, onClick: a, onImageLoadHeightUpdate: o }) => /* @__PURE__ */ (0, d.jsx)("div", {
className: "gallery__item",
onClick: a,
children: /* @__PURE__ */ (0, d.jsx)(m, {
position: t,
fillMode: i,
url: e,
leading: n,
setHeight: r,
onImageLoadHeightUpdate: o
})
}), g = /* @__PURE__ */ t(a(), 1), _ = function(e, t) {
return Number(e.toFixed(t));
}, v = function(e, t) {
return typeof e == "number" ? e : t;
}, y = function(e, t, n) {
n && typeof n == "function" && n(e, t);
}, b = {
easeOut: function(e) {
return -Math.cos(e * Math.PI) / 2 + .5;
},
linear: function(e) {
return e;
},
easeInQuad: function(e) {
return e * e;
},
easeOutQuad: function(e) {
return e * (2 - e);
},
easeInOutQuad: function(e) {
return e < .5 ? 2 * e * e : -1 + (4 - 2 * e) * e;
},
easeInCubic: function(e) {
return e * e * e;
},
easeOutCubic: function(e) {
return --e * e * e + 1;
},
easeInOutCubic: function(e) {
return e < .5 ? 4 * e * e * e : (e - 1) * (2 * e - 2) * (2 * e - 2) + 1;
},
easeInQuart: function(e) {
return e * e * e * e;
},
easeOutQuart: function(e) {
return 1 - --e * e * e * e;
},
easeInOutQuart: function(e) {
return e < .5 ? 8 * e * e * e * e : 1 - 8 * --e * e * e * e;
},
easeInQuint: function(e) {
return e * e * e * e * e;
},
easeOutQuint: function(e) {
return 1 + --e * e * e * e * e;
},
easeInOutQuint: function(e) {
return e < .5 ? 16 * e * e * e * e * e : 1 + 16 * --e * e * e * e * e;
}
}, x = function(e) {
typeof e == "number" && cancelAnimationFrame(e);
}, S = function(e) {
e.mounted && (x(e.animation), e.animate = !1, e.animation = null, e.velocity = null);
};
function C(e, t, n, r) {
if (e.mounted) {
var i = (/* @__PURE__ */ new Date()).getTime(), a = 1;
S(e), e.animation = function() {
if (!e.mounted) return x(e.animation);
var o = (/* @__PURE__ */ new Date()).getTime() - i, s = o / n, c = b[t], l = c(s);
o >= n ? (r(a), e.animation = null) : e.animation && (r(l), requestAnimationFrame(e.animation));
}, requestAnimationFrame(e.animation);
}
}
function w(e) {
var t = e.scale, n = e.positionX, r = e.positionY;
return !(Number.isNaN(t) || Number.isNaN(n) || Number.isNaN(r));
}
function T(e, t, n, r) {
var i = w(t);
if (!(!e.mounted || !i)) {
var a = e.setTransformState, o = e.transformState, s = o.scale, c = o.positionX, l = o.positionY, u = t.scale - s, d = t.positionX - c, f = t.positionY - l;
n === 0 ? a(t.scale, t.positionX, t.positionY) : C(e, r, n, function(e) {
a(s + u * e, c + d * e, l + f * e);
});
}
}
function E(e, t, n) {
var r = e.offsetWidth, i = e.offsetHeight, a = t.offsetWidth, o = t.offsetHeight, s = a * n, c = o * n;
return {
wrapperWidth: r,
wrapperHeight: i,
newContentWidth: s,
newDiffWidth: r - s,
newContentHeight: c,
newDiffHeight: i - c
};
}
var ee = function(e, t, n, r, i, a, o) {
var s = e > t ? n * (o ? 1 : .5) : 0, c = r > i ? a * (o ? 1 : .5) : 0;
return {
minPositionX: e - t - s,
maxPositionX: s,
minPositionY: r - i - c,
maxPositionY: c
};
}, D = function(e, t) {
var n = e.wrapperComponent, r = e.contentComponent, i = e.setup.centerZoomedOut;
if (!n || !r) throw Error("Components are not mounted");
var a = E(n, r, t), o = a.wrapperWidth, s = a.wrapperHeight, c = a.newContentWidth, l = a.newDiffWidth, u = a.newContentHeight, d = a.newDiffHeight;
return ee(o, c, l, s, u, d, !!i);
}, O = function(e, t, n, r) {
return _(r ? e < t ? t : e > n ? n : e : e, 2);
}, k = function(e, t) {
var n = D(e, t);
return e.bounds = n, n;
};
function A(e, t, n, r, i, a, o) {
var s = n.minPositionX, c = n.minPositionY, l = n.maxPositionX, u = n.maxPositionY, d = 0, f = 0;
return o && (d = i, f = a), {
x: O(e, s - d, l + d, r),
y: O(t, c - f, u + f, r)
};
}
function j(e, t, n, r, i, a) {
var o = e.transformState, s = o.scale, c = o.positionX, l = o.positionY, u = r - s;
return typeof t != "number" || typeof n != "number" ? (console.error("Mouse X and Y position were not provided!"), {
x: c,
y: l
}) : A(c - t * u, l - n * u, i, a, 0, 0, null);
}
function M(e, t, n, r, i) {
var a = t - (i ? r : 0);
return !Number.isNaN(n) && e >= n ? n : !Number.isNaN(t) && e <= a ? a : e;
}
var N = function(e, t) {
var n = e.setup.panning.excluded, r = e.isInitialized, i = e.wrapperComponent, a = t.composedPath()[0] || t.target, o = i == null ? void 0 : i.contains(a);
return !(!(r && a && o) || z(a, n));
}, P = function(e) {
var t = e.isInitialized, n = e.isPanning, r = e.setup.panning.disabled;
return !!(t && n && !r);
}, te = function(e, t) {
var n = e.transformState, r = n.positionX, i = n.positionY;
e.isPanning = !0;
var a = t.clientX, o = t.clientY;
e.startCoords = {
x: a - r,
y: o - i
};
}, ne = function(e, t) {
var n = t.touches, r = e.transformState, i = r.positionX, a = r.positionY;
if (e.isPanning = !0, n.length === 1) {
var o = n[0].clientX, s = n[0].clientY;
e.startCoords = {
x: o - i,
y: s - a
};
}
};
function re(e) {
var t = e.transformState, n = t.positionX, r = t.positionY, i = t.scale, a = e.setup, o = a.disabled, s = a.limitToBounds, c = a.centerZoomedOut, l = e.wrapperComponent;
if (!(o || !l || !e.bounds)) {
var u = e.bounds, d = u.maxPositionX, f = u.minPositionX, p = u.maxPositionY, m = u.minPositionY, h = n > d || n < f, g = r > p || r < m, _ = j(e, n > d ? l.offsetWidth : e.setup.minPositionX || 0, r > p ? l.offsetHeight : e.setup.minPositionY || 0, i, e.bounds, s || c), v = _.x, y = _.y;
return {
scale: i,
positionX: h ? v : n,
positionY: g ? y : r
};
}
}
function ie(e, t, n, r, i) {
var a = e.setup.limitToBounds, o = e.wrapperComponent, s = e.bounds, c = e.transformState, l = c.scale, u = c.positionX, d = c.positionY;
if (!(o === null || s === null || t === u && n === d)) {
var f = A(t, n, s, a, r, i, o), p = f.x, m = f.y;
e.setTransformState(l, p, m);
}
}
var ae = function(e, t, n) {
var r = e.startCoords, i = e.transformState, a = e.setup.panning, o = a.lockAxisX, s = a.lockAxisY, c = i.positionX, l = i.positionY;
if (!r) return {
x: c,
y: l
};
var u = t - r.x, d = n - r.y;
return {
x: o ? c : u,
y: s ? l : d
};
}, oe = function(e, t) {
var n = e.setup, r = e.transformState.scale, i = n.minScale, a = n.disablePadding;
return t > 0 && r >= i && !a ? t : 0;
}, se = function(e) {
var t = e.mounted, n = e.setup, r = n.disabled, i = n.velocityAnimation, a = e.transformState.scale;
return !!(!i.disabled || a > 1 || !r || t);
}, ce = function(e) {
var t = e.mounted, n = e.velocity, r = e.bounds, i = e.setup, a = i.disabled, o = i.velocityAnimation, s = e.transformState.scale;
return !(!(!o.disabled || s > 1 || !a || t) || !n || !r);
};
function le(e, t) {
var n = e.setup.velocityAnimation, r = n.equalToMove, i = n.animationTime, a = n.sensitivity;
return r ? i * t * a : i;
}
function ue(e, t, n, r, i, a, o, s, c, l) {
if (i) {
if (t > o && n > o) {
var u = o + (e - o) * l;
return u > c ? c : u < o ? o : u;
}
if (t < a && n < a) {
var u = a + (e - a) * l;
return u < s ? s : u > a ? a : u;
}
}
return r ? t : O(e, a, o, i);
}
function de(e, t) {
var n = 1;
return t ? Math.min(n, e.offsetWidth / window.innerWidth) : n;
}
function fe(e, t) {
if (se(e)) {
var n = e.lastMousePosition, r = e.velocityTime, i = e.setup, a = e.wrapperComponent, o = i.velocityAnimation.equalToMove, s = Date.now();
if (n && r && a) {
var c = de(a, o), l = t.x - n.x, u = t.y - n.y, d = l / c, f = u / c, p = s - r, m = l * l + u * u;
e.velocity = {
velocityX: d,
velocityY: f,
total: Math.sqrt(m) / p
};
}
e.lastMousePosition = t, e.velocityTime = s;
}
}
function pe(e) {
var t = e.velocity, n = e.bounds, r = e.setup, i = e.wrapperComponent;
if (!(!ce(e) || !t || !n || !i)) {
var a = t.velocityX, o = t.velocityY, s = t.total, c = n.maxPositionX, l = n.minPositionX, u = n.maxPositionY, d = n.minPositionY, f = r.limitToBounds, p = r.alignmentAnimation, m = r.zoomAnimation, h = r.panning, g = h.lockAxisY, _ = h.lockAxisX, v = m.animationType, y = p.sizeX, x = p.sizeY, S = p.velocityAlignmentTime, w = le(e, s), T = Math.max(w, S), E = oe(e, y), ee = oe(e, x), D = E * i.offsetWidth / 100, O = ee * i.offsetHeight / 100, k = c + D, A = l - D, j = u + O, M = d - O, N = e.transformState, P = (/* @__PURE__ */ new Date()).getTime();
C(e, v, T, function(t) {
var n = e.transformState, r = n.scale, i = n.positionX, s = n.positionY, m = ((/* @__PURE__ */ new Date()).getTime() - P) / S, h = b[p.animationType], v = 1 - h(Math.min(1, m)), y = 1 - t, x = i + a * y, C = s + o * y, w = ue(x, N.positionX, i, _, f, l, c, A, k, v), T = ue(C, N.positionY, s, g, f, d, u, M, j, v);
(i !== x || s !== C) && e.setTransformState(r, w, T);
});
}
}
function me(e, t) {
var n = e.transformState.scale;
S(e), k(e, n), window.TouchEvent !== void 0 && t instanceof TouchEvent ? ne(e, t) : te(e, t);
}
function he(e) {
var t = e.transformState.scale, n = e.setup, r = n.minScale, i = n.alignmentAnimation, a = i.disabled, o = i.sizeX, s = i.sizeY, c = i.animationTime, l = i.animationType;
if (!(a || t < r || !o && !s)) {
var u = re(e);
u && T(e, u, c, l);
}
}
function ge(e, t, n) {
var r = e.startCoords, i = e.setup.alignmentAnimation, a = i.sizeX, o = i.sizeY;
if (r) {
var s = ae(e, t, n), c = s.x, l = s.y, u = oe(e, a), d = oe(e, o);
fe(e, {
x: c,
y: l
}), ie(e, c, l, u, d);
}
}
function _e(e) {
if (e.isPanning) {
var t = e.setup.panning.velocityDisabled, n = e.velocity, r = e.wrapperComponent, i = e.contentComponent;
e.isPanning = !1, e.animate = !1, e.animation = null;
var a = r == null ? void 0 : r.getBoundingClientRect(), o = i == null ? void 0 : i.getBoundingClientRect(), s = (a == null ? void 0 : a.width) || 0, c = (a == null ? void 0 : a.height) || 0, l = (o == null ? void 0 : o.width) || 0, u = (o == null ? void 0 : o.height) || 0, d = s < l || c < u;
!t && n && (n == null ? void 0 : n.total) > .1 && d ? pe(e) : he(e);
}
}
function ve(e, t, n, r) {
var i = e.setup, a = i.minScale, o = i.maxScale, s = i.limitToBounds, c = M(_(t, 2), a, o, 0, !1), l = j(e, n, r, c, k(e, c), s);
return {
scale: c,
positionX: l.x,
positionY: l.y
};
}
function ye(e, t, n) {
var r = e.transformState.scale, i = e.wrapperComponent, a = e.setup, o = a.minScale, s = a.limitToBounds, c = a.zoomAnimation, l = c.disabled, u = c.animationTime, d = c.animationType, f = l || r >= o;
if ((r >= 1 || s) && he(e), !(f || !i || !e.mounted)) {
var p = ve(e, o, t || i.offsetWidth / 2, n || i.offsetHeight / 2);
p && T(e, p, u, d);
}
}
var F = function() {
return F = Object.assign || function(e) {
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
return e;
}, F.apply(this, arguments);
};
function be(e, t, n) {
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
return e.concat(a || Array.prototype.slice.call(t));
}
var I = {
previousScale: 1,
scale: 1,
positionX: 0,
positionY: 0
}, L = {
disabled: !1,
minPositionX: null,
maxPositionX: null,
minPositionY: null,
maxPositionY: null,
minScale: 1,
maxScale: 8,
limitToBounds: !0,
centerZoomedOut: !1,
centerOnInit: !1,
disablePadding: !1,
wheel: {
step: .2,
disabled: !1,
wheelDisabled: !1,
touchPadDisabled: !1,
activationKeys: [],
excluded: []
},
panning: {
disabled: !1,
velocityDisabled: !1,
lockAxisX: !1,
lockAxisY: !1,
activationKeys: [],
excluded: []
},
pinch: {
step: 5,
disabled: !1,
excluded: []
},
doubleClick: {
disabled: !1,
step: .7,
mode: "zoomIn",
animationType: "easeOut",
animationTime: 200,
excluded: []
},
zoomAnimation: {
disabled: !1,
size: .4,
animationTime: 200,
animationType: "easeOut"
},
alignmentAnimation: {
disabled: !1,
sizeX: 100,
sizeY: 100,
animationTime: 200,
velocityAlignmentTime: 400,
animationType: "easeOut"
},
velocityAnimation: {
disabled: !1,
sensitivity: 1,
animationTime: 400,
animationType: "easeOut",
equalToMove: !0
}
}, xe = function(e) {
var t, n, r, i;
return {
previousScale: (t = e.initialScale) == null ? I.scale : t,
scale: (n = e.initialScale) == null ? I.scale : n,
positionX: (r = e.initialPositionX) == null ? I.positionX : r,
positionY: (i = e.initialPositionY) == null ? I.positionY : i
};
}, Se = function(e) {
var t = F({}, L);
return Object.keys(e).forEach(function(n) {
var r = e[n] !== void 0;
if (L[n] !== void 0 && r) {
var i = Object.prototype.toString.call(L[n]);
i === "[object Object]" ? t[n] = F(F({}, L[n]), e[n]) : i === "[object Array]" ? t[n] = be(be([], L[n], !0), e[n], !0) : t[n] = e[n];
}
}), t;
}, Ce = function(e, t, n) {
var r = e.transformState.scale, i = e.wrapperComponent, a = e.setup, o = a.maxScale, s = a.minScale, c = a.zoomAnimation.size;
if (!i) throw Error("Wrapper is not mounted");
return M(_(r * Math.exp(t * n), 3), s, o, c, !1);
};
function we(e, t, n, r, i) {
var a = e.wrapperComponent, o = e.transformState, s = o.scale, c = o.positionX, l = o.positionY;
if (!a) return console.error("No WrapperComponent found");
var u = a.offsetWidth, d = a.offsetHeight, f = (u / 2 - c) / s, p = (d / 2 - l) / s, m = ve(e, Ce(e, t, n), f, p);
if (!m) return console.error("Error during zoom event. New transformation state was not calculated.");
T(e, m, r, i);
}
function Te(e, t, n, r) {
var i = e.setup, a = e.wrapperComponent, o = i.limitToBounds, s = xe(e.props), c = e.transformState, l = c.scale, u = c.positionX, d = c.positionY;
if (a) {
var f = D(e, s.scale), p = A(s.positionX, s.positionY, f, o, 0, 0, a), m = {
scale: s.scale,
positionX: p.x,
positionY: p.y
};
l === s.scale && u === s.positionX && d === s.positionY || (r == null || r(), T(e, m, t, n));
}
}
function Ee(e, t, n, r) {
var i = e.getBoundingClientRect(), a = t.getBoundingClientRect(), o = n.getBoundingClientRect(), s = a.x * r.scale, c = a.y * r.scale;
return {
x: (i.x - o.x + s) / r.scale,
y: (i.y - o.y + c) / r.scale
};
}
function De(e, t, n) {
var r = e.wrapperComponent, i = e.contentComponent, a = e.transformState, o = e.setup, s = o.limitToBounds, c = o.minScale, l = o.maxScale;
if (!r || !i) return a;
var u = r.getBoundingClientRect(), d = t.getBoundingClientRect(), f = Ee(t, r, i, a), p = f.x, m = f.y, h = d.width / a.scale, g = d.height / a.scale, _ = r.offsetWidth / h, v = r.offsetHeight / g, y = M(n || Math.min(_, v), c, l, 0, !1), b = (u.width - h * y) / 2, x = (u.height - g * y) / 2, S = A((u.left - p) * y + b, (u.top - m) * y + x, D(e, y), s, 0, 0, r);
return {
positionX: S.x,
positionY: S.y,
scale: y
};
}
var Oe = function(e) {
return function(t, n, r) {
t === void 0 && (t = .5), n === void 0 && (n = 300), r === void 0 && (r = "easeOut"), we(e, 1, t, n, r);
};
}, ke = function(e) {
return function(t, n, r) {
t === void 0 && (t = .5), n === void 0 && (n = 300), r === void 0 && (r = "easeOut"), we(e, -1, t, n, r);
};
}, Ae = function(e) {
return function(t, n, r, i, a) {
i === void 0 && (i = 300), a === void 0 && (a = "easeOut");
var o = e.transformState, s = o.positionX, c = o.positionY, l = o.scale, u = e.wrapperComponent, d = e.contentComponent;
e.setup.disabled || !u || !d || T(e, {
positionX: Number.isNaN(t) ? s : t,
positionY: Number.isNaN(n) ? c : n,
scale: Number.isNaN(r) ? l : r
}, i, a);
};
}, je = function(e) {
return function(t, n) {
t === void 0 && (t = 200), n === void 0 && (n = "easeOut"), Te(e, t, n);
};
}, Me = function(e) {
return function(t, n, r) {
n === void 0 && (n = 200), r === void 0 && (r = "easeOut");
var i = e.transformState, a = e.wrapperComponent, o = e.contentComponent;
a && o && T(e, Be(t || i.scale, a, o), n, r);
};
}, Ne = function(e) {
return function(t, n, r, i) {
r === void 0 && (r = 600), i === void 0 && (i = "easeOut"), S(e);
var a = e.wrapperComponent, o = typeof t == "string" ? document.getElementById(t) : t;
a && o && a.contains(o) && T(e, De(e, o, n), r, i);
};
}, Pe = function(e) {
return {
instance: e,
zoomIn: Oe(e),
zoomOut: ke(e),
setTransform: Ae(e),
resetTransform: je(e),
centerView: Me(e),
zoomToElement: Ne(e)
};
}, Fe = function(e) {
return {
instance: e,
state: e.transformState
};
}, R = function(e) {
var t = {};
return Object.assign(t, Fe(e)), Object.assign(t, Pe(e)), t;
}, Ie = !1;
function Le() {
try {
return { get passive() {
return Ie = !0, !1;
} };
} catch {
return Ie = !1, Ie;
}
}
var z = function(e, t) {
var n = e.tagName.toUpperCase();
return !!(t.find(function(e) {
return e.toUpperCase() === n;
}) || t.find(function(t) {
return e.classList.contains(t);
}));
}, Re = function(e) {
e && clearTimeout(e);
}, ze = function(e, t, n) {
return `translate(${e}px, ${t}px) scale(${n})`;
}, Be = function(e, t, n) {
var r = n.offsetWidth * e, i = n.offsetHeight * e;
return {
scale: e,
positionX: (t.offsetWidth - r) / 2,
positionY: (t.offsetHeight - i) / 2
};
};
function Ve(e) {
return function(t) {
e.forEach(function(e) {
typeof e == "function" ? e(t) : e != null && (e.current = t);
});
};
}
var He = function(e, t) {
var n = e.setup.wheel, r = n.disabled, i = n.wheelDisabled, a = n.touchPadDisabled, o = n.excluded, s = e.isInitialized, c = e.isPanning, l = t.target;
return !(!(s && !c && !r && l) || i && !t.ctrlKey || a && t.ctrlKey || z(l, o));
}, Ue = function(e) {
return e ? e.deltaY < 0 ? 1 : -1 : 0;
};
function We(e, t) {
return v(t, Ue(e));
}
function Ge(e, t, n) {
var r = t.getBoundingClientRect(), i = 0, a = 0;
if ("clientX" in e) i = (e.clientX - r.left) / n, a = (e.clientY - r.top) / n;
else {
var o = e.touches[0];
i = (o.clientX - r.left) / n, a = (o.clientY - r.top) / n;
}
return (Number.isNaN(i) || Number.isNaN(a)) && console.error("No mouse or touch offset found"), {
x: i,
y: a
};
}
var Ke = function(e, t, n, r, i) {
var a = e.transformState.scale, o = e.wrapperComponent, s = e.setup, c = s.maxScale, l = s.minScale, u = s.zoomAnimation, d = s.disablePadding, f = u.size, p = u.disabled;
if (!o) throw Error("Wrapper is not mounted");
var m = a + t * (a - a * n) * n;
if (i) return m;
var h = r ? !1 : !p;
return M(_(m, 3), l, c, f, h && !d);
}, qe = function(e, t) {
var n = e.previousWheelEvent, r = e.transformState.scale, i = e.setup, a = i.maxScale, o = i.minScale;
return n ? r < a || r > o || Math.sign(n.deltaY) !== Math.sign(t.deltaY) || n.deltaY > 0 && n.deltaY < t.deltaY || n.deltaY < 0 && n.deltaY > t.deltaY || Math.sign(n.deltaY) !== Math.sign(t.deltaY) : !1;
}, Je = function(e, t) {
var n = e.setup.pinch, r = n.disabled, i = n.excluded, a = e.isInitialized, o = t.target;
return !(!(a && !r && o) || z(o, i));
}, Ye = function(e) {
var t = e.setup.pinch.disabled, n = e.isInitialized, r = e.pinchStartDistance;
return !!(n && !t && r);
}, Xe = function(e, t, n) {
var r = n.getBoundingClientRect(), i = e.touches, a = _(i[0].clientX - r.left, 5), o = _(i[0].clientY - r.top, 5), s = _(i[1].clientX - r.left, 5), c = _(i[1].clientY - r.top, 5);
return {
x: (a + s) / 2 / t,
y: (o + c) / 2 / t
};
}, Ze = function(e) {
return Math.sqrt((e.touches[0].pageX - e.touches[1].pageX) ** 2 + (e.touches[0].pageY - e.touches[1].pageY) ** 2);
}, Qe = function(e, t) {
var n = e.pinchStartScale, r = e.pinchStartDistance, i = e.setup, a = i.maxScale, o = i.minScale, s = i.zoomAnimation, c = i.disablePadding, l = s.size, u = s.disabled;
if (!n || r === null || !t) throw Error("Pinch touches distance was not provided");
return t < 0 ? e.transformState.scale : M(_(t / r * n, 2), o, a, l, !u && !c);
}, $e = 160, et = 100, tt = function(e, t) {
var n = e.props, r = n.onWheelStart, i = n.onZoomStart;
e.wheelStopEventTimer || (S(e), y(R(e), t, r), y(R(e), t, i));
}, nt = function(e, t) {
var n = e.props, r = n.onWheel, i = n.onZoom, a = e.contentComponent, o = e.setup, s = e.transformState.scale, c = o.limitToBounds, l = o.centerZoomedOut, u = o.zoomAnimation, d = o.wheel, f = o.disablePadding, p = u.size, m = u.disabled, h = d.step;
if (!a) throw Error("Component not mounted");
t.preventDefault(), t.stopPropagation();
var g = Ke(e, We(t, null), h, !t.ctrlKey);
if (s !== g) {
var _ = k(e, g), v = Ge(t, a, s), b = c && (m || p === 0 || l || f), x = j(e, v.x, v.y, g, _, b), S = x.x, C = x.y;
e.previousWheelEvent = t, e.setTransformState(g, S, C), y(R(e), t, r), y(R(e), t, i);
}
}, rt = function(e, t) {
var n = e.props, r = n.onWheelStop, i = n.onZoomStop;
Re(e.wheelAnimationTimer), e.wheelAnimationTimer = setTimeout(function() {
e.mounted && (ye(e, t.x, t.y), e.wheelAnimationTimer = null);
}, et), qe(e, t) && (Re(e.wheelStopEventTimer), e.wheelStopEventTimer = setTimeout(function() {
e.mounted && (e.wheelStopEventTimer = null, y(R(e), t, r), y(R(e), t, i));
}, $e));
}, it = function(e, t) {
var n = Ze(t);
e.pinchStartDistance = n, e.lastDistance = n, e.pinchStartScale = e.transformState.scale, e.isPanning = !1, S(e);
}, at = function(e, t) {
var n = e.contentComponent, r = e.pinchStartDistance, i = e.transformState.scale, a = e.setup, o = a.limitToBounds, s = a.centerZoomedOut, c = a.zoomAnimation, l = c.disabled, u = c.size;
if (!(r === null || !n)) {
var d = Xe(t, i, n);
if (!(!Number.isFinite(d.x) || !Number.isFinite(d.y))) {
var f = Ze(t), p = Qe(e, f);
if (p !== i) {
var m = k(e, p), h = o && (l || u === 0 || s), g = j(e, d.x, d.y, p, m, h), _ = g.x, v = g.y;
e.pinchMidpoint = d, e.lastDistance = f, e.setTransformState(p, _, v);
}
}
}
}, ot = function(e) {
var t = e.pinchMidpoint;
e.velocity = null, e.lastDistance = null, e.pinchMidpoint = null, e.pinchStartScale = null, e.pinchStartDistance = null, ye(e, t == null ? void 0 : t.x, t == null ? void 0 : t.y);
}, st = function(e, t) {
var n = e.props.onZoomStop, r = e.setup.doubleClick.animationTime;
Re(e.doubleClickStopEventTimer), e.doubleClickStopEventTimer = setTimeout(function() {
e.doubleClickStopEventTimer = null, y(R(e), t, n);
}, r);
}, ct = function(e, t) {
var n = e.props, r = n.onZoomStart, i = n.onZoom, a = e.setup.doubleClick, o = a.animationTime, s = a.animationType;
y(R(e), t, r), Te(e, o, s, function() {
return y(R(e), t, i);
}), st(e, t);
};
function lt(e, t) {
var n = e.setup, r = e.doubleClickStopEventTimer, i = e.transformState, a = e.contentComponent, o = i.scale, s = e.props, c = s.onZoomStart, l = s.onZoom, u = n.doubleClick, d = u.disabled, f = u.mode, p = u.step, m = u.animationTime, h = u.animationType;
if (!d && !r) {
if (f === "reset") return ct(e, t);
if (!a) return console.error("No ContentComponent found");
var g = Ce(e, f === "zoomOut" ? -1 : 1, p);
if (o !== g) {
y(R(e), t, c);
var _ = Ge(t, a, o), v = ve(e, g, _.x, _.y);
if (!v) return console.error("Error during zoom event. New transformation state was not calculated.");
y(R(e), t, l), T(e, v, m, h), st(e, t);
}
}
}
var ut = function(e, t) {
var n = e.isInitialized, r = e.setup, i = e.wrapperComponent, a = r.doubleClick, o = a.disabled, s = a.excluded, c = t.target, l = i == null ? void 0 : i.contains(c);
return !(!(n && c && l && !o) || z(c, s));
}, dt = function() {
function e(e) {
var t = this;
this.mounted = !0, this.onChangeCallbacks = /* @__PURE__ */ new Set(), this.onInitCallbacks = /* @__PURE__ */ new Set(), this.wrapperComponent = null, this.contentComponent = null, this.isInitialized = !1, this.bounds = null, this.previousWheelEvent = null, this.wheelStopEventTimer = null, this.wheelAnimationTimer = null, this.isPanning = !1, this.startCoords = null, this.lastTouch = null, this.distance = null, this.lastDistance = null, this.pinchStartDistance = null, this.pinchStartScale = null, this.pinchMidpoint = null, this.doubleClickStopEventTimer = null, this.velocity = null, this.velocityTime = null, this.lastMousePosition = null, this.animate = !1, this.animation = null, this.maxBounds = null, this.pressedKeys = {}, this.mount = function() {
t.initializeWindowEvents();
}, this.unmount = function() {
t.cleanupWindowEvents();
}, this.update = function(e) {
k(t, t.transformState.scale), t.setup = Se(e);
}, this.initializeWindowEvents = function() {
var e, n = Le(), r = (e = t.wrapperComponent) == null ? void 0 : e.ownerDocument, i = r == null ? void 0 : r.defaultView;
i == null || i.addEventListener("mousedown", t.onPanningStart, n), i == null || i.addEventListener("mousemove", t.onPanning, n), i == null || i.addEventListener("mouseup", t.onPanningStop, n), r == null || r.addEventListener("mouseleave", t.clearPanning, n), i == null || i.addEventListener("keyup", t.setKeyUnPressed, n), i == null || i.addEventListener("keydown", t.setKeyPressed, n);
}, this.cleanupWindowEvents = function() {
var e, n, r = Le(), i = (e = t.wrapperComponent) == null ? void 0 : e.ownerDocument, a = i == null ? void 0 : i.defaultView;
a == null || a.removeEventListener("mousedown", t.onPanningStart, r), a == null || a.removeEventListener("mousemove", t.onPanning, r), a == null || a.removeEventListener("mouseup", t.onPanningStop, r), i == null || i.removeEventListener("mouseleave", t.clearPanning, r), a == null || a.removeEventListener("keyup", t.setKeyUnPressed, r), a == null || a.removeEventListener("keydown", t.setKeyPressed, r), document.removeEventListener("mouseleave", t.clearPanning, r), S(t), (n = t.observer) == null || n.disconnect();
}, this.handleInitializeWrapperEvents = function(e) {
var n = Le();
e.addEventListener("wheel", t.onWheelZoom, n), e.addEventListener("dblclick", t.onDoubleClick, n), e.addEventListener("touchstart", t.onTouchPanningStart, n), e.addEventListener("touchmove", t.onTouchPanning, n), e.addEventListener("touchend", t.onTouchPanningStop, n);
}, this.handleInitialize = function(e) {
var n = t.setup.centerOnInit;
t.applyTransformation(), t.onInitCallbacks.forEach(function(e) {
return e(R(t));
}), n && (t.setCenter(), t.observer = new ResizeObserver(function() {
var e;
t.onInitCallbacks.forEach(function(e) {
return e(R(t));
}), t.setCenter(), (e = t.observer) == null || e.disconnect();
}), t.observer.observe(e));
}, this.onWheelZoom = function(e) {
t.setup.disabled || He(t, e) && t.isPressingKeys(t.setup.wheel.activationKeys) && (tt(t, e), nt(t, e), rt(t, e));
}, this.onPanningStart = function(e) {
var n = t.setup.disabled, r = t.props.onPanningStart;
n || N(t, e) && t.isPressingKeys(t.setup.panning.activationKeys) && (e.preventDefault(), e.stopPropagation(), S(t), me(t, e), y(R(t), e, r));
}, this.onPanning = function(e) {
var n = t.setup.disabled, r = t.props.onPanning;
n || P(t) && t.isPressingKeys(t.setup.panning.activationKeys) && (e.preventDefault(), e.stopPropagation(), ge(t, e.clientX, e.clientY), y(R(t), e, r));
}, this.onPanningStop = function(e) {
var n = t.props.onPanningStop;
t.isPanning && (_e(t), y(R(t), e, n));
}, this.onPinchStart = function(e) {
var n = t.setup.disabled, r = t.props, i = r.onPinchingStart, a = r.onZoomStart;
n || Je(t, e) && (it(t, e), S(t), y(R(t), e, i), y(R(t), e, a));
}, this.onPinch = function(e) {
var n = t.setup.disabled, r = t.props, i = r.onPinching, a = r.onZoom;
n || Ye(t) && (e.preventDefault(), e.stopPropagation(), at(t, e), y(R(t), e, i), y(R(t), e, a));
}, this.onPinchStop = function(e) {
var n = t.props, r = n.onPinchingStop, i = n.onZoomStop;
t.pinchStartScale && (ot(t), y(R(t), e, r), y(R(t), e, i));
}, this.onTouchPanningStart = function(e) {
var n = t.setup.disabled, r = t.props.onPanningStart;
if (!n && N(t, e)) if (t.lastTouch && +/* @__PURE__ */ new Date() - t.lastTouch < 200 && e.touches.length === 1) t.onDoubleClick(e);
else {
t.lastTouch = +/* @__PURE__ */ new Date(), S(t);
var i = e.touches, a = i.length === 1, o = i.length === 2;
a && (S(t), me(t, e), y(R(t), e, r)), o && t.onPinchStart(e);
}
}, this.onTouchPanning = function(e) {
var n = t.setup.disabled, r = t.props.onPanning;
if (t.isPanning && e.touches.length === 1) {
if (n || !P(t)) return;
e.preventDefault(), e.stopPropagation();
var i = e.touches[0];
ge(t, i.clientX, i.clientY), y(R(t), e, r);
} else e.touches.length > 1 && t.onPinch(e);
}, this.onTouchPanningStop = function(e) {
t.onPanningStop(e), t.onPinchStop(e);
}, this.onDoubleClick = function(e) {
t.setup.disabled || ut(t, e) && lt(t, e);
}, this.clearPanning = function(e) {
t.isPanning && t.onPanningStop(e);
}, this.setKeyPressed = function(e) {
t.pressedKeys[e.key] = !0;
}, this.setKeyUnPressed = function(e) {
t.pressedKeys[e.key] = !1;
}, this.isPressingKeys = function(e) {
return e.length ? !!e.find(function(e) {
return t.pressedKeys[e];
}) : !0;
}, this.setTransformState = function(e, n, r) {
var i = t.props.onTransformed;
if (!Number.isNaN(e) && !Number.isNaN(n) && !Number.isNaN(r)) {
e !== t.transformState.scale && (t.transformState.previousScale = t.transformState.scale, t.transformState.scale = e), t.transformState.positionX = n, t.transformState.positionY = r, t.applyTransformation();
var a = R(t);
t.onChangeCallbacks.forEach(function(e) {
return e(a);
}), y(a, {
scale: e,
positionX: n,
positionY: r
}, i);
} else console.error("Detected NaN set state values");
}, this.setCenter = function() {
if (t.wrapperComponent && t.contentComponent) {
var e = Be(t.transformState.scale, t.wrapperComponent, t.contentComponent);
t.setTransformState(e.scale, e.positionX, e.positionY);
}
}, this.handleTransformStyles = function(e, n, r) {
return t.props.customTransform ? t.props.customTransform(e, n, r) : ze(e, n, r);
}, this.applyTransformation = function() {
if (!(!t.mounted || !t.contentComponent)) {
var e = t.transformState, n = e.scale, r = e.positionX, i = e.positionY, a = t.handleTransformStyles(r, i, n);
t.contentComponent.style.transform = a;
}
}, this.getContext = function() {
return R(t);
}, this.onChange = function(e) {
return t.onChangeCallbacks.has(e) || t.onChangeCallbacks.add(e), function() {
t.onChangeCallbacks.delete(e);
};
}, this.onInit = function(e) {
return t.onInitCallbacks.has(e) || t.onInitCallbacks.add(e), function() {
t.onInitCallbacks.delete(e);
};
}, this.init = function(e, n) {
t.cleanupWindowEvents(), t.wrapperComponent = e, t.contentComponent = n, k(t, t.transformState.scale), t.handleInitializeWrapperEvents(e), t.handleInitialize(n), t.initializeWindowEvents(), t.isInitialized = !0, y(R(t), void 0, t.props.onInit);
}, this.props = e, this.setup = Se(this.props), this.transformState = xe(this.props);
}
return e;
}(), B = u.createContext(null), ft = function(e, t) {
return typeof e == "function" ? e(t) : e;
}, pt = u.forwardRef(function(e, t) {
var n = (0, u.useRef)(new dt(e)).current, r = ft(e.children, Pe(n));
return (0, u.useImperativeHandle)(t, function() {
return Pe(n);
}, [n]), (0, u.useEffect)(function() {
n.update(e);
}, [n, e]), u.createElement(B.Provider, { value: n }, r);
});
u.forwardRef(function(e, t) {
var n = (0, u.useRef)(null), r = (0, u.useContext)(B);
return (0, u.useEffect)(function() {
return r.onChange(function(e) {
if (n.current) {
var t = 0, i = 0;
n.current.style.transform = r.handleTransformStyles(t, i, 1 / e.instance.transformState.scale);
}
});
}, [r]), u.createElement("div", F({}, e, { ref: Ve([n, t]) }));
});
function mt(e, t) {
t === void 0 && (t = {});
var n = t.insertAt;
if (!(!e || typeof document > "u")) {
var r = document.head || document.getElementsByTagName("head")[0], i = document.createElement("style");
i.type = "text/css", n === "top" && r.firstChild ? r.insertBefore(i, r.firstChild) : r.appendChild(i), i.styleSheet ? i.styleSheet.cssText = e : i.appendChild(document.createTextNode(e));
}
}
var ht = ".transform-component-module_wrapper__SPB86 {\r\n position: relative;\r\n width: -moz-fit-content;\r\n width: fit-content;\r\n height: -moz-fit-content;\r\n height: fit-content;\r\n overflow: hidden;\r\n -webkit-touch-callout: none; /* iOS Safari */\r\n -webkit-user-select: none; /* Safari */\r\n -khtml-user-select: none; /* Konqueror HTML */\r\n -moz-user-select: none; /* Firefox */\r\n -ms-user-select: none; /* Internet Explorer/Edge */\r\n user-select: none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n.transform-component-module_content__FBWxo {\r\n display: flex;\r\n flex-wrap: wrap;\r\n width: -moz-fit-content;\r\n width: fit-content;\r\n height: -moz-fit-content;\r\n height: fit-content;\r\n margin: 0;\r\n padding: 0;\r\n transform-origin: 0% 0%;\r\n}\r\n.transform-component-module_content__FBWxo img {\r\n pointer-events: none;\r\n}\r\n", gt = {
wrapper: "transform-component-module_wrapper__SPB86",
content: "transform-component-module_content__FBWxo"
};
mt(ht);
var _t = function(e) {
var t = e.children, n = e.wrapperClass, r = n === void 0 ? "" : n, i = e.contentClass, a = i === void 0 ? "" : i, o = e.wrapperStyle, s = e.contentStyle, c = e.wrapperProps, l = c === void 0 ? {} : c, d = e.contentProps, f = d === void 0 ? {} : d, p = (0, u.useContext)(B).init, m = (0, u.useRef)(null), h = (0, u.useRef)(null);
return (0, u.useEffect)(function() {
var e = m.current, t = h.current;
e !== null && t !== null && p && p(e, t);
}, []), u.createElement("div", F({}, l, {
ref: m,
className: `react-transform-wrapper ${gt.wrapper} ${r}`,
style: o
}), u.createElement("div", F({}, f, {
ref: h,
className: `react-transform-component ${gt.content} ${a}`,
style: s
}), t));
}, vt = function() {
var e = (0, u.useContext)(B);
if (!e) throw Error("Transform context mus be placed inside TransformWrapper");
return e;
}, yt = function(e) {
var t = vt();
(0, u.useEffect)(function() {
var n, r = t.onChange(function(t) {
n = e(Fe(t.instance));
});
return function() {
r(), n == null || n();
};
}, [e, t]);
};
//#endregion
//#region ../../node_modules/.pnpm/ssr-window@4.0.2/node_modules/ssr-window/ssr-window.esm.js
function bt(e) {
return typeof e == "object" && !!e && "constructor" in e && e.constructor === Object;
}
function xt(e = {}, t = {}) {
Object.keys(t).forEach((n) => {
e[n] === void 0 ? e[n] = t[n] : bt(t[n]) && bt(e[n]) && Object.keys(t[n]).length > 0 && xt(e[n], t[n]);
});
}
var St = {
body: {},
addEventListener() {},
removeEventListener() {},
activeElement: {
blur() {},
nodeName: ""
},
querySelector() {
return null;
},
querySelectorAll() {
return [];
},
getElementById() {
return null;
},
createEvent() {
return { initEvent() {} };
},
createElement() {
return {
children: [],
childNodes: [],
style: {},
setAttribute() {},
getElementsByTagName() {
return [];
}
};
},
createElementNS() {
return {};
},
importNode() {
return null;
},
location: {
hash: "",
host: "",
hostname: "",
href: "",
origin: "",
pathname: "",
protocol: "",
search: ""
}
};
function V() {
let e = typeof document < "u" ? document : {};
return xt(e, St), e;
}
var Ct = {
document: St,
navigator: { userAgent: "" },
location: {
hash: "",
host: "",
hostname: "",
href: "",
origin: "",
pathname: "",
protocol: "",
search: ""
},
history: {
replaceState() {},
pushState() {},
go() {},
back() {}
},
CustomEvent: function() {
return this;
},
addEventListener() {},
removeEventListener() {},
getComputedStyle() {
return { getPropertyValue() {
return "";
} };
},
Image() {},
Date() {},
screen: {},
setTimeout() {},
clearTimeout() {},
matchMedia() {
return {};
},
requestAnimationFrame(e) {
return typeof setTimeout > "u" ? (e(), null) : setTimeout(e, 0);
},
cancelAnimationFrame(e) {
typeof setTimeout > "u" || clearTimeout(e);
}
};
function H() {
let e = typeof window < "u" ? window : {};
return xt(e, Ct), e;
}
//#endregion
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/shared/utils.js
function wt(e) {
let t = e;
Object.keys(t).forEach((e) => {
try {
t[e] = null;
} catch {}
try {
delete t[e];
} catch {}
});
}
function Tt(e, t = 0) {
return setTimeout(e, t);
}
function U() {
return Date.now();
}
function Et(e) {
let t = H(), n;
return t.getComputedStyle && (n = t.getComputedStyle(e, null)), !n && e.currentStyle && (n = e.currentStyle), n || (n = e.style), n;
}
function Dt(e, t = "x") {
let n = H(), r, i, a, o = Et(e, null);
return n.WebKitCSSMatrix ? (i = o.transform || o.webkitTransform, i.split(",").length > 6 && (i = i.split(", ").map((e) => e.replace(",", ".")).join(", ")), a = new n.WebKitCSSMatrix(i === "none" ? "" : i)) : (a = o.MozTransform || o.OTransform || o.MsTransform || o.msTransform || o.transform || o.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), r = a.toString().split(",")), t === "x" && (i = n.WebKitCSSMatrix ? a.m41 : r.length === 16 ? parseFloat(r[12]) : parseFloat(r[4])), t === "y" && (i = n.WebKitCSSMatrix ? a.m42 : r.length === 16 ? parseFloat(r[13]) : parseFloat(r[5])), i || 0;
}
function W(e) {
return typeof e == "object" && !!e && e.constructor && Object.prototype.toString.call(e).slice(8, -1) === "Object";
}
function Ot(e) {
return typeof window < "u" && window.HTMLElement !== void 0 ? e instanceof HTMLElement : e && (e.nodeType === 1 || e.nodeType === 11);
}
function G(...e) {
let t = Object(e[0]), n = [
"__proto__",
"constructor",
"prototype"
];
for (let r = 1; r < e.length; r += 1) {
let i = e[r];
if (i != null && !Ot(i)) {
let e = Object.keys(Object(i)).filter((e) => n.indexOf(e) < 0);
for (let n = 0, r = e.length; n < r; n += 1) {
let r = e[n], a = Object.getOwnPropertyDescriptor(i, r);
a !== void 0 && a.enumerable && (W(t[r]) && W(i[r]) ? i[r].__swiper__ ? t[r] = i[r] : G(t[r], i[r]) : !W(t[r]) && W(i[r]) ? (t[r] = {}, i[r].__swiper__ ? t[r] = i[r] : G(t[r], i[r])) : t[r] = i[r]);
}
}
}
return t;
}
function K(e, t, n) {
e.style.setProperty(t, n);
}
function kt({ swiper: e, targetPosition: t, side: n }) {
let r = H(), i = -e.translate, a = null, o, s = e.params.speed;
e.wrapperEl.style.scrollSnapType = "none", r.cancelAnimationFrame(e.cssModeFrameID);
let c = t > i ? "next" : "prev", l = (e, t) => c === "next" && e >= t || c === "prev" && e <= t, u = () => {
o = (/* @__PURE__ */ new Date()).getTime(), a === null && (a = o);
let c = Math.max(Math.min((o - a) / s, 1), 0), d = i + (.5 - Math.cos(c * Math.PI) / 2) * (t - i);
if (l(d, t) && (d = t), e.wrapperEl.scrollTo({ [n]: d }), l(d, t)) {
e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.scrollSnapType = "", setTimeout(() => {
e.wrapperEl.style.overflow = "", e.wrapperEl.scrollTo({ [n]: d });
}), r.cancelAnimationFrame(e.cssModeFrameID);
return;
}
e.cssModeFrameID = r.requestAnimationFrame(u);
};
u();
}
function q(e, t = "") {
return [...e.children].filter((e) => e.matches(t));
}
function At(e, t = []) {
let n = document.createElement(e);
return n.classList.add(...Array.isArray(t) ? t : [t]), n;
}
function jt(e, t) {
let n = [];
for (; e.previousElementSibling;) {
let r = e.previousElementSibling;
t ? r.matches(t) && n.push(r) : n.push(r), e = r;
}
return n;
}
function Mt(e, t) {
let n = [];
for (; e.nextElementSibling;) {
let r = e.nextElementSibling;
t ? r.matches(t) && n.push(r) : n.push(r), e = r;
}
return n;
}
function J(e, t) {
return H().getComputedStyle(e, null).getPropertyValue(t);
}
function Nt(e) {
let t = e, n;
if (t) {
for (n = 0; (t = t.previousSibling) !== null;) t.nodeType === 1 && (n += 1);
return n;
}
}
function Pt(e, t) {
let n = [], r = e.parentElement;
for (; r;) t ? r.matches(t) && n.push(r) : n.push(r), r = r.parentElement;
return n;
}
function Ft(e, t, n) {
let r = H();
return n ? e[t === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(r.getComputedStyle(e, null).getPropertyValue(t === "width" ? "margin-right" : "margin-top")) + parseFloat(r.getComputedStyle(e, null).getPropertyValue(t === "width" ? "margin-left" : "margin-bottom")) : e.offsetWidth;
}
//#endregion
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/shared/get-support.js
var It;
function Lt() {
let e = H(), t = V();
return {
smoothScroll: t.documentElement && t.documentElement.style && "scrollBehavior" in t.documentElement.style,
touch: !!("ontouchstart" in e || e.DocumentTouch && t instanceof e.DocumentTouch)
};
}
function Rt() {
return It || (It = Lt()), It;
}
//#endregion
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/shared/get-device.js
var zt;
function Bt({ userAgent: e } = {}) {
let t = Rt(), n = H(), r = n.navigator.platform, i = e || n.navigator.userAgent, a = {
ios: !1,
android: !1
}, o = n.screen.width, s = n.screen.height, c = i.match(/(Android);?[\s\/]+([\d.]+)?/), l = i.match(/(iPad).*OS\s([\d_]+)/), u = i.match(/(iPod)(.*OS\s([\d_]+))?/), d = !l && i.match(/(iPhone\sOS|iOS)\s([\d_]+)/), f = r === "Win32", p = r === "MacIntel";
return !l && p && t.touch && [
"1024x1366",
"1366x1024",
"834x1194",
"1194x834",
"834x1112",
"1112x834",
"768x1024",
"1024x768",
"820x1180",
"1180x820",
"810x1080",
"1080x810"
].indexOf(`${o}x${s}`) >= 0 && (l = i.match(/(Version)\/([\d.]+)/), l || (l = [
0,
1,
"13_0_0"
]), p = !1), c && !f && (a.os = "android", a.android = !0), (l || d || u) && (a.os = "ios", a.ios = !0), a;
}
function Vt(e = {}) {
return zt || (zt = Bt(e)), zt;
}
//#endregion
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/shared/get-browser.js
var Ht;
function Ut() {
let e = H(), t = !1;
function n() {
let t = e.navigator.userAgent.toLowerCase();
return t.indexOf("safari") >= 0 && t.indexOf("chrome") < 0 && t.indexOf("android") < 0;
}
if (n()) {
let n = String(e.navigator.userAgent);
if (n.includes("Version/")) {
let [e, r] = n.split("Version/")[1].split(" ")[0].split(".").map((e) => Number(e));
t = e < 16 || e === 16 && r < 2;
}
}
return {
isSafari: t || n(),
needPerspectiveFix: t,
isWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)
};
}
function Wt() {
return Ht || (Ht = Ut()), Ht;
}
//#endregion
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/modules/resize/resize.js
function Gt({ swiper: e, on: t, emit: n }) {
let r = H(), i = null, a = null, o = () => {
!e || e.destroyed || !e.initialized || (n("beforeResize"), n("resize"));
}, s = () => {
!e || e.destroyed || !e.initialized || (i = new ResizeObserver((t) => {
a = r.requestAnimationFrame(() => {
let { width: n, height: r } = e, i = n, a = r;
t.forEach(({ contentBoxSize: t, contentRect: n, target: r }) => {
r && r !== e.el || (i = n ? n.width : (t[0] || t).inlineSize, a = n ? n.height : (t[0] || t).blockSize);
}), (i !== n || a !== r) && o();
});
}), i.observe(e.el));
}, c = () => {
a && r.cancelAnimationFrame(a), i && i.unobserve && e.el && (i.unobserve(e.el), i = null);
}, l = () => {
!e || e.destroyed || !e.initialized || n("orientationchange");
};
t("init", () => {
if (e.params.resizeObserver && r.ResizeObserver !== void 0) {
s();
return;
}
r.addEventListener("resize", o), r.addEventListener("orientationchange", l);
}), t("destroy", () => {
c(), r.removeEventListener("resize", o), r.removeEventListener("orientationchange", l);
});
}
//#endregion
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/modules/observer/observer.js
function Kt({ swiper: e, extendParams: t, on: n, emit: r }) {
let i = [], a = H(), o = (t, n = {}) => {
let o = new (a.MutationObserver || a.WebkitMutationObserver)((t) => {
if (e.__preventObserver__) return;
if (t.length === 1) {
r("observerUpdate", t[0]);
return;
}
let n = function() {
r("observerUpdate", t[0]);
};
a.requestAnimationFrame ? a.requestAnimationFrame(n) : a.setTimeout(n, 0);
});
o.observe(t, {
attributes: n.attributes === void 0 ? !0 : n.attributes,
childList: n.childList === void 0 ? !0 : n.childList,
characterData: n.characterData === void 0 ? !0 : n.characterData
}), i.push(o);
};
t({
observer: !1,
observeParents: !1,
observeSlideChildren: !1
}), n("init", () => {
if (e.params.observer) {
if (e.params.observeParents) {
let t = Pt(e.el);
for (let e = 0; e < t.length; e += 1) o(t[e]);
}
o(e.el, { childList: e.params.observeSlideChildren }), o(e.wrapperEl, { attributes: !1 });
}
}), n("destroy", () => {
i.forEach((e) => {
e.disconnect();
}), i.splice(0, i.length);
});
}
//#endregion
//#region ../../node_modules/.pnpm/swiper@9.4.1/node_modules/swiper/core/events-emitter.js
var qt = {
on(e, t, n) {
let r = this;
if (!r.eventsListeners || r.destroyed || typeof t != "function") return r;
let i = n ? "unshift" : "push";
return e.split(" ").forEach((e) => {
r.eventsListeners[e] || (r.eventsListeners[e] = []), r.eventsListeners[e][i](t);
}), r;
},
once(e, t, n) {
let r = this;
if (!r.eventsListeners || r.destroyed || typeof t != "function") return r;
function i(...n) {
r.off(e, i), i.__emitterProxy && delete i.__emitterProxy, t.apply(r, n);
}
return i.__emitterProxy = t, r.on(e, i, n);
},
onAny(e, t) {
let n = this;
if (!n.eventsListeners || n.destroyed || typeof e != "function") return n;
let r = t ? "unshift" : "push";
return n.eventsAnyListeners.indexOf(e) < 0 && n.eventsAnyListeners[r](e), n;
},
offAny(e) {
let t = this;
if (!t.eventsListeners || t.destroyed || !t.eventsAnyListeners) return t;
let n = t.eventsAnyListeners.indexOf(e);
return n >= 0 && t.eventsAnyListeners.splice(n, 1), t;
},
off(e, t) {
let n = this;
return !n.eventsListeners || n.destroyed || !n.eventsListeners || e.split(" ").forEach((e) => {
t === void 0 ? n.eventsListeners[e] = [] : n.eventsListeners[e] && n.eventsListeners[e].forEach((r, i) => {
(r === t || r.__emitterProxy && r.__emitterProxy === t) && n.eventsListeners[e].splice(i, 1);
});
}), n;
},
emit(...e) {
let t = this;
if (!t.eventsListeners || t.destroyed || !t.eventsListeners) return t;
let n, r, i;
return typeof e[0] == "string" || Array.isArray(e[0]) ? (n = e[0], r = e.slice(1, e.length), i = t) : (n = e[0].events, r = e[0].data, i = e[0].context || t), r.unshift(i), (Array.isArray(n) ? n : n.split(" ")).forEach((e) => {
t.eventsAnyListeners && t.eventsAnyListeners.length && t.eventsAnyListeners.forEach((t) => {
t.apply(i, [e, ...r]);
}), t.eventsListeners && t.eventsListeners[e] && t.eventsListeners[e].forEach((e) =>