@marimo-team/islands 0.14.11-dev39 → 0.14.11-dev4

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/{ConnectedDataExplorerComponent-Sd9Nxepm.js → ConnectedDataExplorerComponent-B3jU38aR.js} +4 -4
  2. package/dist/{ImageComparisonComponent-5Y_UPK-4.js → ImageComparisonComponent-CUfFulP7.js} +1 -1
  3. package/dist/{VegaLite-xEnU6x-s.js → VegaLite-CT_m2Gns.js} +7180 -6961
  4. package/dist/{_baseUniq-hectrKF-.js → _baseUniq-DVXzAxqW.js} +36 -36
  5. package/dist/{any-language-editor-CFSQwvzE.js → any-language-editor-Bm5ppbnQ.js} +1 -1
  6. package/dist/{architectureDiagram-NQ2NVSRB-CCXJjFvh.js → architectureDiagram-IEHRJDOE-Buq1PEDd.js} +894 -897
  7. package/dist/assets/{worker-Bfk1FrzG.js → save-worker-BIDtxCd1.js} +1724 -1604
  8. package/dist/assets/{save-worker-fI5ofStJ.js → worker-BcyuOSTi.js} +1649 -1076
  9. package/dist/assets/worker-Dz6PPEGc.js +4115 -0
  10. package/dist/{blockDiagram-PHRCVELO-BjyOlQ-1.js → blockDiagram-JOT3LUYC-Baj8O4gb.js} +522 -534
  11. package/dist/{c4Diagram-6F6E4RAY-Dekfu0nv.js → c4Diagram-VJAJSXHY-CBDfWUzS.js} +4 -4
  12. package/dist/{channel-3ZP1Ahsx.js → channel-Cy0SmgpI.js} +1 -1
  13. package/dist/{chunk-353BL4L5-DAFgStCL.js → chunk-4BMEZGHF-BnpEqs6S.js} +1 -1
  14. package/dist/{chunk-QEP2MXWD-B3Qy_0QF.js → chunk-A2AXSNBT-i8l7moUJ.js} +27 -30
  15. package/dist/chunk-AEK57VVT-BxuW_6WB.js +1416 -0
  16. package/dist/{chunk-67H74DCK-DZpdsEFc.js → chunk-D6G4REZN-DwIklRV0.js} +1 -1
  17. package/dist/chunk-RZ5BOZE2-CNoeotZt.js +24 -0
  18. package/dist/{chunk-AACKK3MU-B95hL8py.js → chunk-XZIHB7SX-Cr4T9caJ.js} +1 -1
  19. package/dist/{classDiagram-v2-O24JOBDK-CRnOnb_r.js → classDiagram-GIVACNV2-CbFkMOFI.js} +2 -2
  20. package/dist/{classDiagram-BGRH5UQR-CRnOnb_r.js → classDiagram-v2-COTLJTTW-CbFkMOFI.js} +2 -2
  21. package/dist/{clone-CFt3Dbsx.js → clone-BeXSGgDB.js} +1 -1
  22. package/dist/{dagre-FFZHY6LT-BCZYCsTf.js → dagre-OKDRZEBW-Bo2roBvL.js} +8 -8
  23. package/dist/{data-editor-DJm7TwNK.js → data-editor-Dnm_K2_c.js} +201 -213
  24. package/dist/{diagram-ZTM2IBQH-CZn2HwdK.js → diagram-SSKATNLV-6e7ZOneB.js} +3 -3
  25. package/dist/diagram-VNBRO52H-VcG5htt_.js +126 -0
  26. package/dist/{erDiagram-R3QVA2FD-CgONUTHE.js → erDiagram-Q7BY3M3F-DObb1KYA.js} +5 -6
  27. package/dist/{flowDiagram-PKI6S5ZS-Dk7_9UWG.js → flowDiagram-4HSFHLVR-BAvIkIMr.js} +278 -283
  28. package/dist/{ganttDiagram-EK5VF46D-CRpVp1Tv.js → ganttDiagram-APWFNJXF-BUabt1F7.js} +439 -453
  29. package/dist/{gitGraphDiagram-GW3U2K7C-C62qVSS0.js → gitGraphDiagram-7IBYFJ6S-Bs-H6FAX.js} +35 -35
  30. package/dist/{graph-Bmg6ThvY.js → graph-B7tbSSJp.js} +3 -3
  31. package/dist/{index-DjyV3XsQ.js → index-CiG5v3ld.js} +3 -3
  32. package/dist/{index-CpMCQprO.js → index-DI-1MlWW.js} +1 -1
  33. package/dist/{index-DOW7j8QD.js → index-DpepA-b-.js} +3 -6
  34. package/dist/{index-BmXq13zt.js → index-phTQQwAJ.js} +4 -4
  35. package/dist/{infoDiagram-RLU2ROGC-BxV_L_v4.js → infoDiagram-PH2N3AL5-7fwphtgP.js} +3 -5
  36. package/dist/journeyDiagram-U35MCT3I-C4s4ilvs.js +809 -0
  37. package/dist/{kanban-definition-ILFWEQ3N-Czy4NHmp.js → kanban-definition-NDS4AKOZ-DcxIaLdv.js} +39 -41
  38. package/dist/{layout-oDYqqouw.js → layout-v4OeDCTb.js} +49 -49
  39. package/dist/{linear-B2w8crqt.js → linear-xHimOevt.js} +22 -22
  40. package/dist/{main-WBPEOYUW.js → main-C7CuKeJY.js} +47637 -47530
  41. package/dist/main.js +1 -1
  42. package/dist/{mermaid-BrDUrAOA.js → mermaid-C9S7GU2b.js} +4855 -4927
  43. package/dist/min-BT9mkTQN.js +80 -0
  44. package/dist/{mindmap-definition-CZNETY7S-DwnN0Xtd.js → mindmap-definition-ALO5MXBD-CVFEcHZK.js} +3 -3
  45. package/dist/{pieDiagram-NIOCPIFQ-C6DftsTF.js → pieDiagram-IB7DONF6-Co1Ma8jK.js} +3 -3
  46. package/dist/{quadrantDiagram-2OG54O6I-D_F4-y3O.js → quadrantDiagram-7GDLP6J5-DQlP2K2y.js} +2 -2
  47. package/dist/{treemap-FKARHQ26-BdRtb6Jl.js → radar-MK3ICKWK-BhkTFShi.js} +2330 -2469
  48. package/dist/{react-plotly-DyGjmGkP.js → react-plotly-Bh6GaXqm.js} +1 -1
  49. package/dist/{requirementDiagram-SO3GGRV7-B0B6nUaZ.js → requirementDiagram-KVF5MWMF-BygiWyL4.js} +4 -5
  50. package/dist/{sankeyDiagram-4UZDY2LN-Dc9a_ZCf.js → sankeyDiagram-QLVOVGJD-Ch4TJi_X.js} +11 -11
  51. package/dist/{sequenceDiagram-ZIKVLSP4-CK0IGm4R.js → sequenceDiagram-X6HHIX6F-DuQdesWk.js} +149 -151
  52. package/dist/{slides-component-Dnp9jsH4.js → slides-component-BA1GLkbQ.js} +962 -969
  53. package/dist/stateDiagram-DGXRK772-CG6dTG8s.js +271 -0
  54. package/dist/{stateDiagram-v2-GD6S3NHB-z7eMLBFB.js → stateDiagram-v2-YXO3MK2T-ChBhvPue.js} +2 -2
  55. package/dist/style.css +1 -1
  56. package/dist/{time-CsAbaoLW.js → time-BImtLwbp.js} +2 -2
  57. package/dist/{timeline-definition-RI47OAVP-BClUsJ6N.js → timeline-definition-BDJGKUSR-DDxqWt73.js} +102 -99
  58. package/dist/{vega-component-B4kFG0mV.js → vega-component-ClHul7Ph.js} +21 -21
  59. package/dist/{xychartDiagram-H2YORKM3-DKa9A91j.js → xychartDiagram-VJFVF3MP-DsuROm2x.js} +375 -409
  60. package/package.json +42 -42
  61. package/dist/assets/worker-BldghCZh.js +0 -3752
  62. package/dist/chunk-6OLS64BW-Brmt-SZS.js +0 -1383
  63. package/dist/chunk-BFAMUDN2-BT75CqeT.js +0 -8
  64. package/dist/chunk-E2GYISFI-C0R6djsG.js +0 -19
  65. package/dist/chunk-SKB7J2MH-CW_LVmrE.js +0 -20
  66. package/dist/diagram-3EMPZRKU-K1apRbx_.js +0 -313
  67. package/dist/diagram-5UYTHUR4-CDt_HKgG.js +0 -137
  68. package/dist/index-pBmAzQJl.js +0 -235
  69. package/dist/journeyDiagram-EWQZEKCU-BmLTz9kg.js +0 -836
  70. package/dist/min-DrafC17d.js +0 -80
  71. package/dist/stateDiagram-XX37X6EN-BvfpfSgz.js +0 -264
@@ -1,4 +1,4 @@
1
- import { G as R, b as V, c as bt, aT as xt, M as Ke, j as ge, O as yt } from "./main-WBPEOYUW.js";
1
+ import { F as R, b as V, c as Et, aT as bt, K as Ke, j as he, M as xt } from "./main-C7CuKeJY.js";
2
2
  function Ze(t) {
3
3
  return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
4
4
  }
@@ -68,7 +68,7 @@ function Z() {
68
68
  const t = typeof document < "u" ? document : {};
69
69
  return je(t, st), t;
70
70
  }
71
- const Tt = {
71
+ const yt = {
72
72
  document: st,
73
73
  navigator: {
74
74
  userAgent: ""
@@ -128,12 +128,12 @@ const Tt = {
128
128
  };
129
129
  function k() {
130
130
  const t = typeof window < "u" ? window : {};
131
- return je(t, Tt), t;
131
+ return je(t, yt), t;
132
132
  }
133
- function Ct(t) {
133
+ function Tt(t) {
134
134
  return t === void 0 && (t = ""), t.trim().split(" ").filter((e) => !!e.trim());
135
135
  }
136
- function Mt(t) {
136
+ function Ct(t) {
137
137
  const e = t;
138
138
  Object.keys(e).forEach((i) => {
139
139
  try {
@@ -146,13 +146,13 @@ function Mt(t) {
146
146
  }
147
147
  });
148
148
  }
149
- function rt(t, e) {
149
+ function Ve(t, e) {
150
150
  return e === void 0 && (e = 0), setTimeout(t, e);
151
151
  }
152
- function Me() {
152
+ function Ce() {
153
153
  return Date.now();
154
154
  }
155
- function Pt(t) {
155
+ function Mt(t) {
156
156
  const e = k();
157
157
  let i;
158
158
  return e.getComputedStyle && (i = e.getComputedStyle(t, null)), !i && t.currentStyle && (i = t.currentStyle), i || (i = t.style), i;
@@ -160,31 +160,31 @@ function Pt(t) {
160
160
  function We(t, e) {
161
161
  e === void 0 && (e = "x");
162
162
  const i = k();
163
- let s, n, r;
164
- const d = Pt(t);
165
- return i.WebKitCSSMatrix ? (n = d.transform || d.webkitTransform, n.split(",").length > 6 && (n = n.split(", ").map((o) => o.replace(",", ".")).join(", ")), r = new i.WebKitCSSMatrix(n === "none" ? "" : n)) : (r = d.MozTransform || d.OTransform || d.MsTransform || d.msTransform || d.transform || d.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), s = r.toString().split(",")), e === "x" && (i.WebKitCSSMatrix ? n = r.m41 : s.length === 16 ? n = parseFloat(s[12]) : n = parseFloat(s[4])), e === "y" && (i.WebKitCSSMatrix ? n = r.m42 : s.length === 16 ? n = parseFloat(s[13]) : n = parseFloat(s[5])), n || 0;
163
+ let s, r, n;
164
+ const d = Mt(t);
165
+ return i.WebKitCSSMatrix ? (r = d.transform || d.webkitTransform, r.split(",").length > 6 && (r = r.split(", ").map((o) => o.replace(",", ".")).join(", ")), n = new i.WebKitCSSMatrix(r === "none" ? "" : r)) : (n = d.MozTransform || d.OTransform || d.MsTransform || d.msTransform || d.transform || d.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), s = n.toString().split(",")), e === "x" && (i.WebKitCSSMatrix ? r = n.m41 : s.length === 16 ? r = parseFloat(s[12]) : r = parseFloat(s[4])), e === "y" && (i.WebKitCSSMatrix ? r = n.m42 : s.length === 16 ? r = parseFloat(s[13]) : r = parseFloat(s[5])), r || 0;
166
166
  }
167
- function Te(t) {
167
+ function ye(t) {
168
168
  return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object";
169
169
  }
170
- function Lt(t) {
170
+ function Pt(t) {
171
171
  return typeof window < "u" && typeof window.HTMLElement < "u" ? t instanceof HTMLElement : t && (t.nodeType === 1 || t.nodeType === 11);
172
172
  }
173
173
  function j() {
174
174
  const t = Object(arguments.length <= 0 ? void 0 : arguments[0]), e = ["__proto__", "constructor", "prototype"];
175
175
  for (let i = 1; i < arguments.length; i += 1) {
176
176
  const s = i < 0 || arguments.length <= i ? void 0 : arguments[i];
177
- if (s != null && !Lt(s)) {
178
- const n = Object.keys(Object(s)).filter((r) => e.indexOf(r) < 0);
179
- for (let r = 0, d = n.length; r < d; r += 1) {
180
- const o = n[r], c = Object.getOwnPropertyDescriptor(s, o);
181
- c !== void 0 && c.enumerable && (Te(t[o]) && Te(s[o]) ? s[o].__swiper__ ? t[o] = s[o] : j(t[o], s[o]) : !Te(t[o]) && Te(s[o]) ? (t[o] = {}, s[o].__swiper__ ? t[o] = s[o] : j(t[o], s[o])) : t[o] = s[o]);
177
+ if (s != null && !Pt(s)) {
178
+ const r = Object.keys(Object(s)).filter((n) => e.indexOf(n) < 0);
179
+ for (let n = 0, d = r.length; n < d; n += 1) {
180
+ const o = r[n], c = Object.getOwnPropertyDescriptor(s, o);
181
+ c !== void 0 && c.enumerable && (ye(t[o]) && ye(s[o]) ? s[o].__swiper__ ? t[o] = s[o] : j(t[o], s[o]) : !ye(t[o]) && ye(s[o]) ? (t[o] = {}, s[o].__swiper__ ? t[o] = s[o] : j(t[o], s[o])) : t[o] = s[o]);
182
182
  }
183
183
  }
184
184
  }
185
185
  return t;
186
186
  }
187
- function we(t, e, i) {
187
+ function ve(t, e, i) {
188
188
  t.style.setProperty(e, i);
189
189
  }
190
190
  function nt(t) {
@@ -193,34 +193,34 @@ function nt(t) {
193
193
  targetPosition: i,
194
194
  side: s
195
195
  } = t;
196
- const n = k(), r = -e.translate;
196
+ const r = k(), n = -e.translate;
197
197
  let d = null, o;
198
198
  const c = e.params.speed;
199
- e.wrapperEl.style.scrollSnapType = "none", n.cancelAnimationFrame(e.cssModeFrameID);
200
- const f = i > r ? "next" : "prev", p = (v, w) => f === "next" && v >= w || f === "prev" && v <= w, m = () => {
199
+ e.wrapperEl.style.scrollSnapType = "none", r.cancelAnimationFrame(e.cssModeFrameID);
200
+ const f = i > n ? "next" : "prev", u = (v, w) => f === "next" && v >= w || f === "prev" && v <= w, m = () => {
201
201
  o = (/* @__PURE__ */ new Date()).getTime(), d === null && (d = o);
202
202
  const v = Math.max(Math.min((o - d) / c, 1), 0), w = 0.5 - Math.cos(v * Math.PI) / 2;
203
- let a = r + w * (i - r);
204
- if (p(a, i) && (a = i), e.wrapperEl.scrollTo({
203
+ let a = n + w * (i - n);
204
+ if (u(a, i) && (a = i), e.wrapperEl.scrollTo({
205
205
  [s]: a
206
- }), p(a, i)) {
206
+ }), u(a, i)) {
207
207
  e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.scrollSnapType = "", setTimeout(() => {
208
208
  e.wrapperEl.style.overflow = "", e.wrapperEl.scrollTo({
209
209
  [s]: a
210
210
  });
211
- }), n.cancelAnimationFrame(e.cssModeFrameID);
211
+ }), r.cancelAnimationFrame(e.cssModeFrameID);
212
212
  return;
213
213
  }
214
- e.cssModeFrameID = n.requestAnimationFrame(m);
214
+ e.cssModeFrameID = r.requestAnimationFrame(m);
215
215
  };
216
216
  m();
217
217
  }
218
218
  function q(t, e) {
219
219
  e === void 0 && (e = "");
220
220
  const i = k(), s = [...t.children];
221
- return i.HTMLSlotElement && t instanceof HTMLSlotElement && s.push(...t.assignedElements()), e ? s.filter((n) => n.matches(e)) : s;
221
+ return i.HTMLSlotElement && t instanceof HTMLSlotElement && s.push(...t.assignedElements()), e ? s.filter((r) => r.matches(e)) : s;
222
222
  }
223
- function zt(t, e) {
223
+ function Lt(t, e) {
224
224
  const i = [e];
225
225
  for (; i.length > 0; ) {
226
226
  const s = i.shift();
@@ -229,12 +229,12 @@ function zt(t, e) {
229
229
  i.push(...s.children, ...s.shadowRoot ? s.shadowRoot.children : [], ...s.assignedElements ? s.assignedElements() : []);
230
230
  }
231
231
  }
232
- function It(t, e) {
232
+ function zt(t, e) {
233
233
  const i = k();
234
234
  let s = e.contains(t);
235
- return !s && i.HTMLSlotElement && e instanceof HTMLSlotElement && (s = [...e.assignedElements()].includes(t), s || (s = zt(t, e))), s;
235
+ return !s && i.HTMLSlotElement && e instanceof HTMLSlotElement && (s = [...e.assignedElements()].includes(t), s || (s = Lt(t, e))), s;
236
236
  }
237
- function Pe(t) {
237
+ function Me(t) {
238
238
  try {
239
239
  console.warn(t);
240
240
  return;
@@ -244,16 +244,16 @@ function Pe(t) {
244
244
  function fe(t, e) {
245
245
  e === void 0 && (e = []);
246
246
  const i = document.createElement(t);
247
- return i.classList.add(...Array.isArray(e) ? e : Ct(e)), i;
247
+ return i.classList.add(...Array.isArray(e) ? e : Tt(e)), i;
248
248
  }
249
249
  function ke(t) {
250
- const e = k(), i = Z(), s = t.getBoundingClientRect(), n = i.body, r = t.clientTop || n.clientTop || 0, d = t.clientLeft || n.clientLeft || 0, o = t === e ? e.scrollY : t.scrollTop, c = t === e ? e.scrollX : t.scrollLeft;
250
+ const e = k(), i = Z(), s = t.getBoundingClientRect(), r = i.body, n = t.clientTop || r.clientTop || 0, d = t.clientLeft || r.clientLeft || 0, o = t === e ? e.scrollY : t.scrollTop, c = t === e ? e.scrollX : t.scrollLeft;
251
251
  return {
252
- top: s.top + o - r,
252
+ top: s.top + o - n,
253
253
  left: s.left + c - d
254
254
  };
255
255
  }
256
- function Ot(t, e) {
256
+ function It(t, e) {
257
257
  const i = [];
258
258
  for (; t.previousElementSibling; ) {
259
259
  const s = t.previousElementSibling;
@@ -261,7 +261,7 @@ function Ot(t, e) {
261
261
  }
262
262
  return i;
263
263
  }
264
- function At(t, e) {
264
+ function Ot(t, e) {
265
265
  const i = [];
266
266
  for (; t.nextElementSibling; ) {
267
267
  const s = t.nextElementSibling;
@@ -269,10 +269,10 @@ function At(t, e) {
269
269
  }
270
270
  return i;
271
271
  }
272
- function re(t, e) {
272
+ function ne(t, e) {
273
273
  return k().getComputedStyle(t, null).getPropertyValue(e);
274
274
  }
275
- function Le(t) {
275
+ function Pe(t) {
276
276
  let e = t, i;
277
277
  if (e) {
278
278
  for (i = 0; (e = e.previousSibling) !== null; )
@@ -280,31 +280,26 @@ function Le(t) {
280
280
  return i;
281
281
  }
282
282
  }
283
- function ne(t, e) {
283
+ function re(t, e) {
284
284
  const i = [];
285
285
  let s = t.parentElement;
286
286
  for (; s; )
287
287
  e ? s.matches(e) && i.push(s) : i.push(s), s = s.parentElement;
288
288
  return i;
289
289
  }
290
- function Ne(t, e, i) {
290
+ function He(t, e, i) {
291
291
  const s = k();
292
292
  return t[e === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(s.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-right" : "margin-top")) + parseFloat(s.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-left" : "margin-bottom"));
293
293
  }
294
294
  function W(t) {
295
295
  return (Array.isArray(t) ? t : [t]).filter((e) => !!e);
296
296
  }
297
- function ue(t, e) {
298
- e === void 0 && (e = ""), typeof trustedTypes < "u" ? t.innerHTML = trustedTypes.createPolicy("html", {
299
- createHTML: (i) => i
300
- }).createHTML(e) : t.innerHTML = e;
301
- }
302
- function Dt(t) {
297
+ function At(t) {
303
298
  let {
304
299
  swiper: e,
305
300
  extendParams: i,
306
301
  on: s,
307
- emit: n
302
+ emit: r
308
303
  } = t;
309
304
  i({
310
305
  virtual: {
@@ -318,7 +313,7 @@ function Dt(t) {
318
313
  addSlidesAfter: 0
319
314
  }
320
315
  });
321
- let r;
316
+ let n;
322
317
  const d = Z();
323
318
  e.virtual = {
324
319
  cache: {},
@@ -334,12 +329,12 @@ function Dt(t) {
334
329
  if (S.cache && e.virtual.cache[l])
335
330
  return e.virtual.cache[l];
336
331
  let g;
337
- return S.renderSlide ? (g = S.renderSlide.call(e, a, l), typeof g == "string" && (ue(o, g), g = o.children[0])) : e.isElement ? g = fe("swiper-slide") : g = fe("div", e.params.slideClass), g.setAttribute("data-swiper-slide-index", l), S.renderSlide || ue(g, a), S.cache && (e.virtual.cache[l] = g), g;
332
+ return S.renderSlide ? (g = S.renderSlide.call(e, a, l), typeof g == "string" && (o.innerHTML = g, g = o.children[0])) : e.isElement ? g = fe("swiper-slide") : g = fe("div", e.params.slideClass), g.setAttribute("data-swiper-slide-index", l), S.renderSlide || (g.innerHTML = a), S.cache && (e.virtual.cache[l] = g), g;
338
333
  }
339
334
  function f(a, l, S) {
340
335
  const {
341
336
  slidesPerView: g,
342
- slidesPerGroup: u,
337
+ slidesPerGroup: p,
343
338
  centeredSlides: h,
344
339
  loop: E,
345
340
  initialSlide: b
@@ -361,7 +356,7 @@ function Dt(t) {
361
356
  let $;
362
357
  e.rtlTranslate ? $ = "right" : $ = e.isHorizontal() ? "left" : "top";
363
358
  let _, A;
364
- h ? (_ = Math.floor(g / 2) + u + I, A = Math.floor(g / 2) + u + L) : (_ = g + (u - 1) + I, A = (E ? g : u) + L);
359
+ h ? (_ = Math.floor(g / 2) + p + I, A = Math.floor(g / 2) + p + L) : (_ = g + (p - 1) + I, A = (E ? g : p) + L);
365
360
  let Y = D - A, X = D + _;
366
361
  E || (Y = Math.max(Y, 0), X = Math.min(X, T.length - 1));
367
362
  let G = (e.slidesGrid[Y] || 0) - (e.slidesGrid[0] || 0);
@@ -373,13 +368,13 @@ function Dt(t) {
373
368
  slidesBefore: A,
374
369
  slidesAfter: _
375
370
  });
376
- function N() {
377
- e.updateSlides(), e.updateProgress(), e.updateSlidesClasses(), n("virtualUpdate");
371
+ function H() {
372
+ e.updateSlides(), e.updateProgress(), e.updateSlidesClasses(), r("virtualUpdate");
378
373
  }
379
374
  if (z === Y && y === X && !a) {
380
375
  e.slidesGrid !== P && G !== O && e.slides.forEach((x) => {
381
376
  x.style[$] = `${G - Math.abs(e.cssOverflowAdjustment())}px`;
382
- }), e.updateProgress(), n("virtualUpdate");
377
+ }), e.updateProgress(), r("virtualUpdate");
383
378
  return;
384
379
  }
385
380
  if (e.params.virtual.renderExternal) {
@@ -393,10 +388,10 @@ function Dt(t) {
393
388
  M.push(T[B]);
394
389
  return M;
395
390
  }()
396
- }), e.params.virtual.renderExternalUpdate ? N() : n("virtualUpdate");
391
+ }), e.params.virtual.renderExternalUpdate ? H() : r("virtualUpdate");
397
392
  return;
398
393
  }
399
- const K = [], ee = [], pe = (x) => {
394
+ const K = [], ee = [], ue = (x) => {
400
395
  let M = x;
401
396
  return x < 0 ? M = T.length + x : M >= T.length && (M = M - T.length), M;
402
397
  };
@@ -407,15 +402,15 @@ function Dt(t) {
407
402
  else
408
403
  for (let x = z; x <= y; x += 1)
409
404
  if (x < Y || x > X) {
410
- const M = pe(x);
405
+ const M = ue(x);
411
406
  e.slides.filter((B) => B.matches(`.${e.params.slideClass}[data-swiper-slide-index="${M}"], swiper-slide[data-swiper-slide-index="${M}"]`)).forEach((B) => {
412
407
  B.remove();
413
408
  });
414
409
  }
415
- const Ee = E ? -T.length : 0, C = E ? T.length * 2 : T.length;
416
- for (let x = Ee; x < C; x += 1)
410
+ const Se = E ? -T.length : 0, C = E ? T.length * 2 : T.length;
411
+ for (let x = Se; x < C; x += 1)
417
412
  if (x >= Y && x <= X) {
418
- const M = pe(x);
413
+ const M = ue(x);
419
414
  typeof y > "u" || a ? ee.push(M) : (x > y && ee.push(M), x < z && K.push(M));
420
415
  }
421
416
  if (ee.forEach((x) => {
@@ -431,9 +426,9 @@ function Dt(t) {
431
426
  });
432
427
  q(e.slidesEl, ".swiper-slide, swiper-slide").forEach((x) => {
433
428
  x.style[$] = `${G - Math.abs(e.cssOverflowAdjustment())}px`;
434
- }), N();
429
+ }), H();
435
430
  }
436
- function p(a) {
431
+ function u(a) {
437
432
  if (typeof a == "object" && "length" in a)
438
433
  for (let l = 0; l < a.length; l += 1)
439
434
  a[l] && e.virtual.slides.push(a[l]);
@@ -445,15 +440,15 @@ function Dt(t) {
445
440
  const l = e.activeIndex;
446
441
  let S = l + 1, g = 1;
447
442
  if (Array.isArray(a)) {
448
- for (let u = 0; u < a.length; u += 1)
449
- a[u] && e.virtual.slides.unshift(a[u]);
443
+ for (let p = 0; p < a.length; p += 1)
444
+ a[p] && e.virtual.slides.unshift(a[p]);
450
445
  S = l + a.length, g = a.length;
451
446
  } else
452
447
  e.virtual.slides.unshift(a);
453
448
  if (e.params.virtual.cache) {
454
- const u = e.virtual.cache, h = {};
455
- Object.keys(u).forEach((E) => {
456
- const b = u[E], L = b.getAttribute("data-swiper-slide-index");
449
+ const p = e.virtual.cache, h = {};
450
+ Object.keys(p).forEach((E) => {
451
+ const b = p[E], L = b.getAttribute("data-swiper-slide-index");
457
452
  L && b.setAttribute("data-swiper-slide-index", parseInt(L, 10) + g), h[parseInt(E, 10) + g] = b;
458
453
  }), e.virtual.cache = h;
459
454
  }
@@ -487,27 +482,27 @@ function Dt(t) {
487
482
  }
488
483
  a || (e.virtual.slides = e.params.virtual.slides), e.classNames.push(`${e.params.containerModifierClass}virtual`), e.params.watchSlidesProgress = true, e.originalParams.watchSlidesProgress = true, f(false, true);
489
484
  }), s("setTranslate", () => {
490
- e.params.virtual.enabled && (e.params.cssMode && !e._immediateVirtual ? (clearTimeout(r), r = setTimeout(() => {
485
+ e.params.virtual.enabled && (e.params.cssMode && !e._immediateVirtual ? (clearTimeout(n), n = setTimeout(() => {
491
486
  f();
492
487
  }, 100)) : f());
493
488
  }), s("init update resize", () => {
494
- e.params.virtual.enabled && e.params.cssMode && we(e.wrapperEl, "--swiper-virtual-size", `${e.virtualSize}px`);
489
+ e.params.virtual.enabled && e.params.cssMode && ve(e.wrapperEl, "--swiper-virtual-size", `${e.virtualSize}px`);
495
490
  }), Object.assign(e.virtual, {
496
- appendSlide: p,
491
+ appendSlide: u,
497
492
  prependSlide: m,
498
493
  removeSlide: v,
499
494
  removeAllSlides: w,
500
495
  update: f
501
496
  });
502
497
  }
503
- function $t(t) {
498
+ function Dt(t) {
504
499
  let {
505
500
  swiper: e,
506
501
  extendParams: i,
507
502
  on: s,
508
- emit: n
503
+ emit: r
509
504
  } = t;
510
- const r = Z(), d = k();
505
+ const n = Z(), d = k();
511
506
  e.keyboard = {
512
507
  enabled: false
513
508
  }, i({
@@ -517,20 +512,20 @@ function $t(t) {
517
512
  pageUpDown: true
518
513
  }
519
514
  });
520
- function o(p) {
515
+ function o(u) {
521
516
  if (!e.enabled) return;
522
517
  const {
523
518
  rtlTranslate: m
524
519
  } = e;
525
- let v = p;
520
+ let v = u;
526
521
  v.originalEvent && (v = v.originalEvent);
527
- const w = v.keyCode || v.charCode, a = e.params.keyboard.pageUpDown, l = a && w === 33, S = a && w === 34, g = w === 37, u = w === 39, h = w === 38, E = w === 40;
528
- if (!e.allowSlideNext && (e.isHorizontal() && u || e.isVertical() && E || S) || !e.allowSlidePrev && (e.isHorizontal() && g || e.isVertical() && h || l))
522
+ const w = v.keyCode || v.charCode, a = e.params.keyboard.pageUpDown, l = a && w === 33, S = a && w === 34, g = w === 37, p = w === 39, h = w === 38, E = w === 40;
523
+ if (!e.allowSlideNext && (e.isHorizontal() && p || e.isVertical() && E || S) || !e.allowSlidePrev && (e.isHorizontal() && g || e.isVertical() && h || l))
529
524
  return false;
530
- if (!(v.shiftKey || v.altKey || v.ctrlKey || v.metaKey) && !(r.activeElement && (r.activeElement.isContentEditable || r.activeElement.nodeName && (r.activeElement.nodeName.toLowerCase() === "input" || r.activeElement.nodeName.toLowerCase() === "textarea")))) {
531
- if (e.params.keyboard.onlyInViewport && (l || S || g || u || h || E)) {
525
+ if (!(v.shiftKey || v.altKey || v.ctrlKey || v.metaKey) && !(n.activeElement && n.activeElement.nodeName && (n.activeElement.nodeName.toLowerCase() === "input" || n.activeElement.nodeName.toLowerCase() === "textarea"))) {
526
+ if (e.params.keyboard.onlyInViewport && (l || S || g || p || h || E)) {
532
527
  let b = false;
533
- if (ne(e.el, `.${e.params.slideClass}, swiper-slide`).length > 0 && ne(e.el, `.${e.params.slideActiveClass}`).length === 0)
528
+ if (re(e.el, `.${e.params.slideClass}, swiper-slide`).length > 0 && re(e.el, `.${e.params.slideActiveClass}`).length === 0)
534
529
  return;
535
530
  const L = e.el, I = L.clientWidth, z = L.clientHeight, y = d.innerWidth, T = d.innerHeight, P = ke(L);
536
531
  m && (P.left -= L.scrollLeft);
@@ -544,14 +539,14 @@ function $t(t) {
544
539
  }
545
540
  if (!b) return;
546
541
  }
547
- e.isHorizontal() ? ((l || S || g || u) && (v.preventDefault ? v.preventDefault() : v.returnValue = false), ((S || u) && !m || (l || g) && m) && e.slideNext(), ((l || g) && !m || (S || u) && m) && e.slidePrev()) : ((l || S || h || E) && (v.preventDefault ? v.preventDefault() : v.returnValue = false), (S || E) && e.slideNext(), (l || h) && e.slidePrev()), n("keyPress", w);
542
+ e.isHorizontal() ? ((l || S || g || p) && (v.preventDefault ? v.preventDefault() : v.returnValue = false), ((S || p) && !m || (l || g) && m) && e.slideNext(), ((l || g) && !m || (S || p) && m) && e.slidePrev()) : ((l || S || h || E) && (v.preventDefault ? v.preventDefault() : v.returnValue = false), (S || E) && e.slideNext(), (l || h) && e.slidePrev()), r("keyPress", w);
548
543
  }
549
544
  }
550
545
  function c() {
551
- e.keyboard.enabled || (r.addEventListener("keydown", o), e.keyboard.enabled = true);
546
+ e.keyboard.enabled || (n.addEventListener("keydown", o), e.keyboard.enabled = true);
552
547
  }
553
548
  function f() {
554
- e.keyboard.enabled && (r.removeEventListener("keydown", o), e.keyboard.enabled = false);
549
+ e.keyboard.enabled && (n.removeEventListener("keydown", o), e.keyboard.enabled = false);
555
550
  }
556
551
  s("init", () => {
557
552
  e.params.keyboard.enabled && c();
@@ -562,20 +557,20 @@ function $t(t) {
562
557
  disable: f
563
558
  });
564
559
  }
565
- function at(t, e, i, s) {
566
- return t.params.createElements && Object.keys(s).forEach((n) => {
567
- if (!i[n] && i.auto === true) {
568
- let r = q(t.el, `.${s[n]}`)[0];
569
- r || (r = fe("div", s[n]), r.className = s[n], t.el.append(r)), i[n] = r, e[n] = r;
560
+ function rt(t, e, i, s) {
561
+ return t.params.createElements && Object.keys(s).forEach((r) => {
562
+ if (!i[r] && i.auto === true) {
563
+ let n = q(t.el, `.${s[r]}`)[0];
564
+ n || (n = fe("div", s[r]), n.className = s[r], t.el.append(n)), i[r] = n, e[r] = n;
570
565
  }
571
566
  }), i;
572
567
  }
573
- function _t(t) {
568
+ function $t(t) {
574
569
  let {
575
570
  swiper: e,
576
571
  extendParams: i,
577
572
  on: s,
578
- emit: n
573
+ emit: r
579
574
  } = t;
580
575
  i({
581
576
  navigation: {
@@ -591,7 +586,7 @@ function _t(t) {
591
586
  nextEl: null,
592
587
  prevEl: null
593
588
  };
594
- function r(a) {
589
+ function n(a) {
595
590
  let l;
596
591
  return a && typeof a == "string" && e.isElement && (l = e.el.querySelector(a) || e.hostEl.querySelector(a), l) ? l : (a && (typeof a == "string" && (l = [...document.querySelectorAll(a)]), e.params.uniqueNavElements && typeof a == "string" && l && l.length > 1 && e.el.querySelectorAll(a).length === 1 ? l = e.el.querySelector(a) : l && l.length === 1 && (l = l[0])), a && !l ? a : l);
597
592
  }
@@ -613,26 +608,26 @@ function _t(t) {
613
608
  d(l, e.isBeginning && !e.params.rewind), d(a, e.isEnd && !e.params.rewind);
614
609
  }
615
610
  function c(a) {
616
- a.preventDefault(), !(e.isBeginning && !e.params.loop && !e.params.rewind) && (e.slidePrev(), n("navigationPrev"));
611
+ a.preventDefault(), !(e.isBeginning && !e.params.loop && !e.params.rewind) && (e.slidePrev(), r("navigationPrev"));
617
612
  }
618
613
  function f(a) {
619
- a.preventDefault(), !(e.isEnd && !e.params.loop && !e.params.rewind) && (e.slideNext(), n("navigationNext"));
614
+ a.preventDefault(), !(e.isEnd && !e.params.loop && !e.params.rewind) && (e.slideNext(), r("navigationNext"));
620
615
  }
621
- function p() {
616
+ function u() {
622
617
  const a = e.params.navigation;
623
- if (e.params.navigation = at(e, e.originalParams.navigation, e.params.navigation, {
618
+ if (e.params.navigation = rt(e, e.originalParams.navigation, e.params.navigation, {
624
619
  nextEl: "swiper-button-next",
625
620
  prevEl: "swiper-button-prev"
626
621
  }), !(a.nextEl || a.prevEl)) return;
627
- let l = r(a.nextEl), S = r(a.prevEl);
622
+ let l = n(a.nextEl), S = n(a.prevEl);
628
623
  Object.assign(e.navigation, {
629
624
  nextEl: l,
630
625
  prevEl: S
631
626
  }), l = W(l), S = W(S);
632
- const g = (u, h) => {
633
- u && u.addEventListener("click", h === "next" ? f : c), !e.enabled && u && u.classList.add(...a.lockClass.split(" "));
627
+ const g = (p, h) => {
628
+ p && p.addEventListener("click", h === "next" ? f : c), !e.enabled && p && p.classList.add(...a.lockClass.split(" "));
634
629
  };
635
- l.forEach((u) => g(u, "next")), S.forEach((u) => g(u, "prev"));
630
+ l.forEach((p) => g(p, "next")), S.forEach((p) => g(p, "prev"));
636
631
  }
637
632
  function m() {
638
633
  let {
@@ -640,13 +635,13 @@ function _t(t) {
640
635
  prevEl: l
641
636
  } = e.navigation;
642
637
  a = W(a), l = W(l);
643
- const S = (g, u) => {
644
- g.removeEventListener("click", u === "next" ? f : c), g.classList.remove(...e.params.navigation.disabledClass.split(" "));
638
+ const S = (g, p) => {
639
+ g.removeEventListener("click", p === "next" ? f : c), g.classList.remove(...e.params.navigation.disabledClass.split(" "));
645
640
  };
646
641
  a.forEach((g) => S(g, "next")), l.forEach((g) => S(g, "prev"));
647
642
  }
648
643
  s("init", () => {
649
- e.params.navigation.enabled === false ? w() : (p(), o());
644
+ e.params.navigation.enabled === false ? w() : (u(), o());
650
645
  }), s("toEdge fromEdge lock unlock", () => {
651
646
  o();
652
647
  }), s("destroy", () => {
@@ -667,20 +662,20 @@ function _t(t) {
667
662
  prevEl: g
668
663
  } = e.navigation;
669
664
  S = W(S), g = W(g);
670
- const u = l.target;
671
- let h = g.includes(u) || S.includes(u);
665
+ const p = l.target;
666
+ let h = g.includes(p) || S.includes(p);
672
667
  if (e.isElement && !h) {
673
668
  const E = l.path || l.composedPath && l.composedPath();
674
669
  E && (h = E.find((b) => S.includes(b) || g.includes(b)));
675
670
  }
676
671
  if (e.params.navigation.hideOnClick && !h) {
677
- if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === u || e.pagination.el.contains(u))) return;
672
+ if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === p || e.pagination.el.contains(p))) return;
678
673
  let E;
679
- S.length ? E = S[0].classList.contains(e.params.navigation.hiddenClass) : g.length && (E = g[0].classList.contains(e.params.navigation.hiddenClass)), n(E === true ? "navigationShow" : "navigationHide"), [...S, ...g].filter((b) => !!b).forEach((b) => b.classList.toggle(e.params.navigation.hiddenClass));
674
+ S.length ? E = S[0].classList.contains(e.params.navigation.hiddenClass) : g.length && (E = g[0].classList.contains(e.params.navigation.hiddenClass)), r(E === true ? "navigationShow" : "navigationHide"), [...S, ...g].filter((b) => !!b).forEach((b) => b.classList.toggle(e.params.navigation.hiddenClass));
680
675
  }
681
676
  });
682
677
  const v = () => {
683
- e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")), p(), o();
678
+ e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")), u(), o();
684
679
  }, w = () => {
685
680
  e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")), m();
686
681
  };
@@ -688,21 +683,21 @@ function _t(t) {
688
683
  enable: v,
689
684
  disable: w,
690
685
  update: o,
691
- init: p,
686
+ init: u,
692
687
  destroy: m
693
688
  });
694
689
  }
695
- function ve(t) {
696
- return t === void 0 && (t = ""), `.${t.trim().replace(/([\.:!+\/()[\]])/g, "\\$1").replace(/ /g, ".")}`;
690
+ function ge(t) {
691
+ return t === void 0 && (t = ""), `.${t.trim().replace(/([\.:!+\/])/g, "\\$1").replace(/ /g, ".")}`;
697
692
  }
698
- function Gt(t) {
693
+ function _t(t) {
699
694
  let {
700
695
  swiper: e,
701
696
  extendParams: i,
702
697
  on: s,
703
- emit: n
698
+ emit: r
704
699
  } = t;
705
- const r = "swiper-pagination";
700
+ const n = "swiper-pagination";
706
701
  i({
707
702
  pagination: {
708
703
  el: null,
@@ -718,21 +713,21 @@ function Gt(t) {
718
713
  // 'bullets' or 'progressbar' or 'fraction' or 'custom'
719
714
  dynamicBullets: false,
720
715
  dynamicMainBullets: 1,
721
- formatFractionCurrent: (u) => u,
722
- formatFractionTotal: (u) => u,
723
- bulletClass: `${r}-bullet`,
724
- bulletActiveClass: `${r}-bullet-active`,
725
- modifierClass: `${r}-`,
726
- currentClass: `${r}-current`,
727
- totalClass: `${r}-total`,
728
- hiddenClass: `${r}-hidden`,
729
- progressbarFillClass: `${r}-progressbar-fill`,
730
- progressbarOppositeClass: `${r}-progressbar-opposite`,
731
- clickableClass: `${r}-clickable`,
732
- lockClass: `${r}-lock`,
733
- horizontalClass: `${r}-horizontal`,
734
- verticalClass: `${r}-vertical`,
735
- paginationDisabledClass: `${r}-disabled`
716
+ formatFractionCurrent: (p) => p,
717
+ formatFractionTotal: (p) => p,
718
+ bulletClass: `${n}-bullet`,
719
+ bulletActiveClass: `${n}-bullet-active`,
720
+ modifierClass: `${n}-`,
721
+ currentClass: `${n}-current`,
722
+ totalClass: `${n}-total`,
723
+ hiddenClass: `${n}-hidden`,
724
+ progressbarFillClass: `${n}-progressbar-fill`,
725
+ progressbarOppositeClass: `${n}-progressbar-opposite`,
726
+ clickableClass: `${n}-clickable`,
727
+ lockClass: `${n}-lock`,
728
+ horizontalClass: `${n}-horizontal`,
729
+ verticalClass: `${n}-vertical`,
730
+ paginationDisabledClass: `${n}-disabled`
736
731
  }
737
732
  }), e.pagination = {
738
733
  el: null,
@@ -742,33 +737,33 @@ function Gt(t) {
742
737
  function c() {
743
738
  return !e.params.pagination.el || !e.pagination.el || Array.isArray(e.pagination.el) && e.pagination.el.length === 0;
744
739
  }
745
- function f(u, h) {
740
+ function f(p, h) {
746
741
  const {
747
742
  bulletActiveClass: E
748
743
  } = e.params.pagination;
749
- u && (u = u[`${h === "prev" ? "previous" : "next"}ElementSibling`], u && (u.classList.add(`${E}-${h}`), u = u[`${h === "prev" ? "previous" : "next"}ElementSibling`], u && u.classList.add(`${E}-${h}-${h}`)));
744
+ p && (p = p[`${h === "prev" ? "previous" : "next"}ElementSibling`], p && (p.classList.add(`${E}-${h}`), p = p[`${h === "prev" ? "previous" : "next"}ElementSibling`], p && p.classList.add(`${E}-${h}-${h}`)));
750
745
  }
751
- function p(u, h, E) {
752
- if (u = u % E, h = h % E, h === u + 1)
746
+ function u(p, h, E) {
747
+ if (p = p % E, h = h % E, h === p + 1)
753
748
  return "next";
754
- if (h === u - 1)
749
+ if (h === p - 1)
755
750
  return "previous";
756
751
  }
757
- function m(u) {
758
- const h = u.target.closest(ve(e.params.pagination.bulletClass));
752
+ function m(p) {
753
+ const h = p.target.closest(ge(e.params.pagination.bulletClass));
759
754
  if (!h)
760
755
  return;
761
- u.preventDefault();
762
- const E = Le(h) * e.params.slidesPerGroup;
756
+ p.preventDefault();
757
+ const E = Pe(h) * e.params.slidesPerGroup;
763
758
  if (e.params.loop) {
764
759
  if (e.realIndex === E) return;
765
- const b = p(e.realIndex, E, e.slides.length);
760
+ const b = u(e.realIndex, E, e.slides.length);
766
761
  b === "next" ? e.slideNext() : b === "previous" ? e.slidePrev() : e.slideToLoop(E);
767
762
  } else
768
763
  e.slideTo(E);
769
764
  }
770
765
  function v() {
771
- const u = e.rtl, h = e.params.pagination;
766
+ const p = e.rtl, h = e.params.pagination;
772
767
  if (c()) return;
773
768
  let E = e.pagination.el;
774
769
  E = W(E);
@@ -777,14 +772,14 @@ function Gt(t) {
777
772
  if (e.params.loop ? (L = e.previousRealIndex || 0, b = e.params.slidesPerGroup > 1 ? Math.floor(e.realIndex / e.params.slidesPerGroup) : e.realIndex) : typeof e.snapIndex < "u" ? (b = e.snapIndex, L = e.previousSnapIndex) : (L = e.previousIndex || 0, b = e.activeIndex || 0), h.type === "bullets" && e.pagination.bullets && e.pagination.bullets.length > 0) {
778
773
  const y = e.pagination.bullets;
779
774
  let T, P, O;
780
- if (h.dynamicBullets && (d = Ne(y[0], e.isHorizontal() ? "width" : "height"), E.forEach((D) => {
775
+ if (h.dynamicBullets && (d = He(y[0], e.isHorizontal() ? "width" : "height"), E.forEach((D) => {
781
776
  D.style[e.isHorizontal() ? "width" : "height"] = `${d * (h.dynamicMainBullets + 4)}px`;
782
777
  }), h.dynamicMainBullets > 1 && L !== void 0 && (o += b - (L || 0), o > h.dynamicMainBullets - 1 ? o = h.dynamicMainBullets - 1 : o < 0 && (o = 0)), T = Math.max(b - o, 0), P = T + (Math.min(y.length, h.dynamicMainBullets) - 1), O = (P + T) / 2), y.forEach((D) => {
783
778
  const $ = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((_) => `${h.bulletActiveClass}${_}`)].map((_) => typeof _ == "string" && _.includes(" ") ? _.split(" ") : _).flat();
784
779
  D.classList.remove(...$);
785
780
  }), E.length > 1)
786
781
  y.forEach((D) => {
787
- const $ = Le(D);
782
+ const $ = Pe(D);
788
783
  $ === b ? D.classList.add(...h.bulletActiveClass.split(" ")) : e.isElement && D.setAttribute("part", "bullet"), h.dynamicBullets && ($ >= T && $ <= P && D.classList.add(...`${h.bulletActiveClass}-main`.split(" ")), $ === T && f(D, "prev"), $ === P && f(D, "next"));
789
784
  });
790
785
  else {
@@ -799,75 +794,75 @@ function Gt(t) {
799
794
  }
800
795
  }
801
796
  if (h.dynamicBullets) {
802
- const D = Math.min(y.length, h.dynamicMainBullets + 4), $ = (d * D - d) / 2 - O * d, _ = u ? "right" : "left";
797
+ const D = Math.min(y.length, h.dynamicMainBullets + 4), $ = (d * D - d) / 2 - O * d, _ = p ? "right" : "left";
803
798
  y.forEach((A) => {
804
799
  A.style[e.isHorizontal() ? _ : "top"] = `${$}px`;
805
800
  });
806
801
  }
807
802
  }
808
803
  E.forEach((y, T) => {
809
- if (h.type === "fraction" && (y.querySelectorAll(ve(h.currentClass)).forEach((P) => {
804
+ if (h.type === "fraction" && (y.querySelectorAll(ge(h.currentClass)).forEach((P) => {
810
805
  P.textContent = h.formatFractionCurrent(b + 1);
811
- }), y.querySelectorAll(ve(h.totalClass)).forEach((P) => {
806
+ }), y.querySelectorAll(ge(h.totalClass)).forEach((P) => {
812
807
  P.textContent = h.formatFractionTotal(z);
813
808
  })), h.type === "progressbar") {
814
809
  let P;
815
810
  h.progressbarOpposite ? P = e.isHorizontal() ? "vertical" : "horizontal" : P = e.isHorizontal() ? "horizontal" : "vertical";
816
811
  const O = (b + 1) / z;
817
812
  let D = 1, $ = 1;
818
- P === "horizontal" ? D = O : $ = O, y.querySelectorAll(ve(h.progressbarFillClass)).forEach((_) => {
813
+ P === "horizontal" ? D = O : $ = O, y.querySelectorAll(ge(h.progressbarFillClass)).forEach((_) => {
819
814
  _.style.transform = `translate3d(0,0,0) scaleX(${D}) scaleY(${$})`, _.style.transitionDuration = `${e.params.speed}ms`;
820
815
  });
821
816
  }
822
- h.type === "custom" && h.renderCustom ? (ue(y, h.renderCustom(e, b + 1, z)), T === 0 && n("paginationRender", y)) : (T === 0 && n("paginationRender", y), n("paginationUpdate", y)), e.params.watchOverflow && e.enabled && y.classList[e.isLocked ? "add" : "remove"](h.lockClass);
817
+ h.type === "custom" && h.renderCustom ? (y.innerHTML = h.renderCustom(e, b + 1, z), T === 0 && r("paginationRender", y)) : (T === 0 && r("paginationRender", y), r("paginationUpdate", y)), e.params.watchOverflow && e.enabled && y.classList[e.isLocked ? "add" : "remove"](h.lockClass);
823
818
  });
824
819
  }
825
820
  function w() {
826
- const u = e.params.pagination;
821
+ const p = e.params.pagination;
827
822
  if (c()) return;
828
823
  const h = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.grid && e.params.grid.rows > 1 ? e.slides.length / Math.ceil(e.params.grid.rows) : e.slides.length;
829
824
  let E = e.pagination.el;
830
825
  E = W(E);
831
826
  let b = "";
832
- if (u.type === "bullets") {
827
+ if (p.type === "bullets") {
833
828
  let L = e.params.loop ? Math.ceil(h / e.params.slidesPerGroup) : e.snapGrid.length;
834
829
  e.params.freeMode && e.params.freeMode.enabled && L > h && (L = h);
835
830
  for (let I = 0; I < L; I += 1)
836
- u.renderBullet ? b += u.renderBullet.call(e, I, u.bulletClass) : b += `<${u.bulletElement} ${e.isElement ? 'part="bullet"' : ""} class="${u.bulletClass}"></${u.bulletElement}>`;
831
+ p.renderBullet ? b += p.renderBullet.call(e, I, p.bulletClass) : b += `<${p.bulletElement} ${e.isElement ? 'part="bullet"' : ""} class="${p.bulletClass}"></${p.bulletElement}>`;
837
832
  }
838
- u.type === "fraction" && (u.renderFraction ? b = u.renderFraction.call(e, u.currentClass, u.totalClass) : b = `<span class="${u.currentClass}"></span> / <span class="${u.totalClass}"></span>`), u.type === "progressbar" && (u.renderProgressbar ? b = u.renderProgressbar.call(e, u.progressbarFillClass) : b = `<span class="${u.progressbarFillClass}"></span>`), e.pagination.bullets = [], E.forEach((L) => {
839
- u.type !== "custom" && ue(L, b || ""), u.type === "bullets" && e.pagination.bullets.push(...L.querySelectorAll(ve(u.bulletClass)));
840
- }), u.type !== "custom" && n("paginationRender", E[0]);
833
+ p.type === "fraction" && (p.renderFraction ? b = p.renderFraction.call(e, p.currentClass, p.totalClass) : b = `<span class="${p.currentClass}"></span> / <span class="${p.totalClass}"></span>`), p.type === "progressbar" && (p.renderProgressbar ? b = p.renderProgressbar.call(e, p.progressbarFillClass) : b = `<span class="${p.progressbarFillClass}"></span>`), e.pagination.bullets = [], E.forEach((L) => {
834
+ p.type !== "custom" && (L.innerHTML = b || ""), p.type === "bullets" && e.pagination.bullets.push(...L.querySelectorAll(ge(p.bulletClass)));
835
+ }), p.type !== "custom" && r("paginationRender", E[0]);
841
836
  }
842
837
  function a() {
843
- e.params.pagination = at(e, e.originalParams.pagination, e.params.pagination, {
838
+ e.params.pagination = rt(e, e.originalParams.pagination, e.params.pagination, {
844
839
  el: "swiper-pagination"
845
840
  });
846
- const u = e.params.pagination;
847
- if (!u.el) return;
841
+ const p = e.params.pagination;
842
+ if (!p.el) return;
848
843
  let h;
849
- typeof u.el == "string" && e.isElement && (h = e.el.querySelector(u.el)), !h && typeof u.el == "string" && (h = [...document.querySelectorAll(u.el)]), h || (h = u.el), !(!h || h.length === 0) && (e.params.uniqueNavElements && typeof u.el == "string" && Array.isArray(h) && h.length > 1 && (h = [...e.el.querySelectorAll(u.el)], h.length > 1 && (h = h.find((E) => ne(E, ".swiper")[0] === e.el))), Array.isArray(h) && h.length === 1 && (h = h[0]), Object.assign(e.pagination, {
844
+ typeof p.el == "string" && e.isElement && (h = e.el.querySelector(p.el)), !h && typeof p.el == "string" && (h = [...document.querySelectorAll(p.el)]), h || (h = p.el), !(!h || h.length === 0) && (e.params.uniqueNavElements && typeof p.el == "string" && Array.isArray(h) && h.length > 1 && (h = [...e.el.querySelectorAll(p.el)], h.length > 1 && (h = h.find((E) => re(E, ".swiper")[0] === e.el))), Array.isArray(h) && h.length === 1 && (h = h[0]), Object.assign(e.pagination, {
850
845
  el: h
851
846
  }), h = W(h), h.forEach((E) => {
852
- u.type === "bullets" && u.clickable && E.classList.add(...(u.clickableClass || "").split(" ")), E.classList.add(u.modifierClass + u.type), E.classList.add(e.isHorizontal() ? u.horizontalClass : u.verticalClass), u.type === "bullets" && u.dynamicBullets && (E.classList.add(`${u.modifierClass}${u.type}-dynamic`), o = 0, u.dynamicMainBullets < 1 && (u.dynamicMainBullets = 1)), u.type === "progressbar" && u.progressbarOpposite && E.classList.add(u.progressbarOppositeClass), u.clickable && E.addEventListener("click", m), e.enabled || E.classList.add(u.lockClass);
847
+ p.type === "bullets" && p.clickable && E.classList.add(...(p.clickableClass || "").split(" ")), E.classList.add(p.modifierClass + p.type), E.classList.add(e.isHorizontal() ? p.horizontalClass : p.verticalClass), p.type === "bullets" && p.dynamicBullets && (E.classList.add(`${p.modifierClass}${p.type}-dynamic`), o = 0, p.dynamicMainBullets < 1 && (p.dynamicMainBullets = 1)), p.type === "progressbar" && p.progressbarOpposite && E.classList.add(p.progressbarOppositeClass), p.clickable && E.addEventListener("click", m), e.enabled || E.classList.add(p.lockClass);
853
848
  }));
854
849
  }
855
850
  function l() {
856
- const u = e.params.pagination;
851
+ const p = e.params.pagination;
857
852
  if (c()) return;
858
853
  let h = e.pagination.el;
859
854
  h && (h = W(h), h.forEach((E) => {
860
- E.classList.remove(u.hiddenClass), E.classList.remove(u.modifierClass + u.type), E.classList.remove(e.isHorizontal() ? u.horizontalClass : u.verticalClass), u.clickable && (E.classList.remove(...(u.clickableClass || "").split(" ")), E.removeEventListener("click", m));
861
- })), e.pagination.bullets && e.pagination.bullets.forEach((E) => E.classList.remove(...u.bulletActiveClass.split(" ")));
855
+ E.classList.remove(p.hiddenClass), E.classList.remove(p.modifierClass + p.type), E.classList.remove(e.isHorizontal() ? p.horizontalClass : p.verticalClass), p.clickable && (E.classList.remove(...(p.clickableClass || "").split(" ")), E.removeEventListener("click", m));
856
+ })), e.pagination.bullets && e.pagination.bullets.forEach((E) => E.classList.remove(...p.bulletActiveClass.split(" ")));
862
857
  }
863
858
  s("changeDirection", () => {
864
859
  if (!e.pagination || !e.pagination.el) return;
865
- const u = e.params.pagination;
860
+ const p = e.params.pagination;
866
861
  let {
867
862
  el: h
868
863
  } = e.pagination;
869
864
  h = W(h), h.forEach((E) => {
870
- E.classList.remove(u.horizontalClass, u.verticalClass), E.classList.add(e.isHorizontal() ? u.horizontalClass : u.verticalClass);
865
+ E.classList.remove(p.horizontalClass, p.verticalClass), E.classList.add(e.isHorizontal() ? p.horizontalClass : p.verticalClass);
871
866
  });
872
867
  }), s("init", () => {
873
868
  e.params.pagination.enabled === false ? g() : (a(), w(), v());
@@ -881,31 +876,31 @@ function Gt(t) {
881
876
  l();
882
877
  }), s("enable disable", () => {
883
878
  let {
884
- el: u
879
+ el: p
885
880
  } = e.pagination;
886
- u && (u = W(u), u.forEach((h) => h.classList[e.enabled ? "remove" : "add"](e.params.pagination.lockClass)));
881
+ p && (p = W(p), p.forEach((h) => h.classList[e.enabled ? "remove" : "add"](e.params.pagination.lockClass)));
887
882
  }), s("lock unlock", () => {
888
883
  v();
889
- }), s("click", (u, h) => {
884
+ }), s("click", (p, h) => {
890
885
  const E = h.target, b = W(e.pagination.el);
891
886
  if (e.params.pagination.el && e.params.pagination.hideOnClick && b && b.length > 0 && !E.classList.contains(e.params.pagination.bulletClass)) {
892
887
  if (e.navigation && (e.navigation.nextEl && E === e.navigation.nextEl || e.navigation.prevEl && E === e.navigation.prevEl)) return;
893
888
  const L = b[0].classList.contains(e.params.pagination.hiddenClass);
894
- n(L === true ? "paginationShow" : "paginationHide"), b.forEach((I) => I.classList.toggle(e.params.pagination.hiddenClass));
889
+ r(L === true ? "paginationShow" : "paginationHide"), b.forEach((I) => I.classList.toggle(e.params.pagination.hiddenClass));
895
890
  }
896
891
  });
897
892
  const S = () => {
898
893
  e.el.classList.remove(e.params.pagination.paginationDisabledClass);
899
894
  let {
900
- el: u
895
+ el: p
901
896
  } = e.pagination;
902
- u && (u = W(u), u.forEach((h) => h.classList.remove(e.params.pagination.paginationDisabledClass))), a(), w(), v();
897
+ p && (p = W(p), p.forEach((h) => h.classList.remove(e.params.pagination.paginationDisabledClass))), a(), w(), v();
903
898
  }, g = () => {
904
899
  e.el.classList.add(e.params.pagination.paginationDisabledClass);
905
900
  let {
906
- el: u
901
+ el: p
907
902
  } = e.pagination;
908
- u && (u = W(u), u.forEach((h) => h.classList.add(e.params.pagination.paginationDisabledClass))), l();
903
+ p && (p = W(p), p.forEach((h) => h.classList.add(e.params.pagination.paginationDisabledClass))), l();
909
904
  };
910
905
  Object.assign(e.pagination, {
911
906
  enable: S,
@@ -916,14 +911,14 @@ function Gt(t) {
916
911
  destroy: l
917
912
  });
918
913
  }
919
- function Bt(t) {
914
+ function Gt(t) {
920
915
  let {
921
916
  swiper: e,
922
917
  extendParams: i,
923
918
  on: s,
924
- emit: n
919
+ emit: r
925
920
  } = t;
926
- const r = k();
921
+ const n = k();
927
922
  i({
928
923
  zoom: {
929
924
  enabled: false,
@@ -942,7 +937,7 @@ function Bt(t) {
942
937
  x: 0,
943
938
  y: 0
944
939
  };
945
- const p = -3;
940
+ const u = -3;
946
941
  let m, v;
947
942
  const w = [], a = {
948
943
  originX: 0,
@@ -983,12 +978,12 @@ function Bt(t) {
983
978
  set(C) {
984
979
  if (g !== C) {
985
980
  const x = a.imageEl, M = a.slideEl;
986
- n("zoomChange", C, x, M);
981
+ r("zoomChange", C, x, M);
987
982
  }
988
983
  g = C;
989
984
  }
990
985
  });
991
- function u() {
986
+ function p() {
992
987
  if (w.length < 2) return 1;
993
988
  const C = w[0].pageX, x = w[0].pageY, M = w[1].pageX, B = w[1].pageY;
994
989
  return Math.sqrt((M - C) ** 2 + (B - x) ** 2);
@@ -1007,7 +1002,7 @@ function Bt(t) {
1007
1002
  y: null
1008
1003
  };
1009
1004
  const C = a.imageEl.getBoundingClientRect();
1010
- return [(w[0].pageX + (w[1].pageX - w[0].pageX) / 2 - C.x - r.scrollX) / d, (w[0].pageY + (w[1].pageY - w[0].pageY) / 2 - C.y - r.scrollY) / d];
1005
+ return [(w[0].pageX + (w[1].pageX - w[0].pageX) / 2 - C.x - n.scrollX) / d, (w[0].pageY + (w[1].pageY - w[0].pageY) / 2 - C.y - n.scrollY) / d];
1011
1006
  }
1012
1007
  function b() {
1013
1008
  return e.isElement ? "swiper-slide" : `.${e.params.slideClass}`;
@@ -1024,10 +1019,10 @@ function Bt(t) {
1024
1019
  if (C.pointerType === "mouse" && w.splice(0, w.length), !L(C)) return;
1025
1020
  const x = e.params.zoom;
1026
1021
  if (m = false, v = false, w.push(C), !(w.length < 2)) {
1027
- if (m = true, a.scaleStart = u(), !a.slideEl) {
1022
+ if (m = true, a.scaleStart = p(), !a.slideEl) {
1028
1023
  a.slideEl = C.target.closest(`.${e.params.slideClass}, swiper-slide`), a.slideEl || (a.slideEl = e.slides[e.activeIndex]);
1029
1024
  let M = a.slideEl.querySelector(`.${x.containerClass}`);
1030
- if (M && (M = M.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), a.imageEl = M, M ? a.imageWrapEl = ne(a.imageEl, `.${x.containerClass}`)[0] : a.imageWrapEl = void 0, !a.imageWrapEl) {
1025
+ if (M && (M = M.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), a.imageEl = M, M ? a.imageWrapEl = re(a.imageEl, `.${x.containerClass}`)[0] : a.imageWrapEl = void 0, !a.imageWrapEl) {
1031
1026
  a.imageEl = void 0;
1032
1027
  return;
1033
1028
  }
@@ -1042,12 +1037,12 @@ function Bt(t) {
1042
1037
  }
1043
1038
  function y(C) {
1044
1039
  if (!L(C)) return;
1045
- const x = e.params.zoom, M = e.zoom, B = w.findIndex((H) => H.pointerId === C.pointerId);
1046
- B >= 0 && (w[B] = C), !(w.length < 2) && (v = true, a.scaleMove = u(), a.imageEl && (M.scale = a.scaleMove / a.scaleStart * d, M.scale > a.maxRatio && (M.scale = a.maxRatio - 1 + (M.scale - a.maxRatio + 1) ** 0.5), M.scale < x.minRatio && (M.scale = x.minRatio + 1 - (x.minRatio - M.scale + 1) ** 0.5), a.imageEl.style.transform = `translate3d(0,0,0) scale(${M.scale})`));
1040
+ const x = e.params.zoom, M = e.zoom, B = w.findIndex((N) => N.pointerId === C.pointerId);
1041
+ B >= 0 && (w[B] = C), !(w.length < 2) && (v = true, a.scaleMove = p(), a.imageEl && (M.scale = a.scaleMove / a.scaleStart * d, M.scale > a.maxRatio && (M.scale = a.maxRatio - 1 + (M.scale - a.maxRatio + 1) ** 0.5), M.scale < x.minRatio && (M.scale = x.minRatio + 1 - (x.minRatio - M.scale + 1) ** 0.5), a.imageEl.style.transform = `translate3d(0,0,0) scale(${M.scale})`));
1047
1042
  }
1048
1043
  function T(C) {
1049
1044
  if (!L(C) || C.pointerType === "mouse" && C.type === "pointerout") return;
1050
- const x = e.params.zoom, M = e.zoom, B = w.findIndex((H) => H.pointerId === C.pointerId);
1045
+ const x = e.params.zoom, M = e.zoom, B = w.findIndex((N) => N.pointerId === C.pointerId);
1051
1046
  B >= 0 && w.splice(B, 1), !(!m || !v) && (m = false, v = false, a.imageEl && (M.scale = Math.max(Math.min(M.scale, a.maxRatio), x.minRatio), a.imageEl.style.transitionDuration = `${e.params.speed}ms`, a.imageEl.style.transform = `translate3d(0,0,0) scale(${M.scale})`, d = M.scale, o = false, M.scale > 1 && a.slideEl ? a.slideEl.classList.add(`${x.zoomedSlideClass}`) : M.scale <= 1 && a.slideEl && a.slideEl.classList.remove(`${x.zoomedSlideClass}`), M.scale === 1 && (a.originX = 0, a.originY = 0, a.slideEl = void 0)));
1052
1047
  }
1053
1048
  let P;
@@ -1082,8 +1077,8 @@ function Bt(t) {
1082
1077
  return;
1083
1078
  }
1084
1079
  l.isMoved || (l.width = a.imageEl.offsetWidth || a.imageEl.clientWidth, l.height = a.imageEl.offsetHeight || a.imageEl.clientHeight, l.startX = We(a.imageWrapEl, "x") || 0, l.startY = We(a.imageWrapEl, "y") || 0, a.slideWidth = a.slideEl.offsetWidth, a.slideHeight = a.slideEl.offsetHeight, a.imageWrapEl.style.transitionDuration = "0ms");
1085
- const H = l.width * B.scale, te = l.height * B.scale;
1086
- if (l.minX = Math.min(a.slideWidth / 2 - H / 2, 0), l.maxX = -l.minX, l.minY = Math.min(a.slideHeight / 2 - te / 2, 0), l.maxY = -l.minY, l.touchesCurrent.x = w.length > 0 ? w[0].pageX : C.pageX, l.touchesCurrent.y = w.length > 0 ? w[0].pageY : C.pageY, Math.max(Math.abs(l.touchesCurrent.x - l.touchesStart.x), Math.abs(l.touchesCurrent.y - l.touchesStart.y)) > 5 && (e.allowClick = false), !l.isMoved && !o) {
1080
+ const N = l.width * B.scale, te = l.height * B.scale;
1081
+ if (l.minX = Math.min(a.slideWidth / 2 - N / 2, 0), l.maxX = -l.minX, l.minY = Math.min(a.slideHeight / 2 - te / 2, 0), l.maxY = -l.minY, l.touchesCurrent.x = w.length > 0 ? w[0].pageX : C.pageX, l.touchesCurrent.y = w.length > 0 ? w[0].pageY : C.pageY, Math.max(Math.abs(l.touchesCurrent.x - l.touchesStart.x), Math.abs(l.touchesCurrent.y - l.touchesStart.y)) > 5 && (e.allowClick = false), !l.isMoved && !o) {
1087
1082
  if (e.isHorizontal() && (Math.floor(l.minX) === Math.floor(l.startX) && l.touchesCurrent.x < l.touchesStart.x || Math.floor(l.maxX) === Math.floor(l.startX) && l.touchesCurrent.x > l.touchesStart.x)) {
1088
1083
  l.isTouched = false, O();
1089
1084
  return;
@@ -1109,10 +1104,10 @@ function Bt(t) {
1109
1104
  }
1110
1105
  l.isTouched = false, l.isMoved = false;
1111
1106
  let x = 300, M = 300;
1112
- const B = S.x * x, H = l.currentX + B, te = S.y * M, ie = l.currentY + te;
1113
- S.x !== 0 && (x = Math.abs((H - l.currentX) / S.x)), S.y !== 0 && (M = Math.abs((ie - l.currentY) / S.y));
1107
+ const B = S.x * x, N = l.currentX + B, te = S.y * M, ie = l.currentY + te;
1108
+ S.x !== 0 && (x = Math.abs((N - l.currentX) / S.x)), S.y !== 0 && (M = Math.abs((ie - l.currentY) / S.y));
1114
1109
  const Q = Math.max(x, M);
1115
- l.currentX = H, l.currentY = ie;
1110
+ l.currentX = N, l.currentY = ie;
1116
1111
  const se = l.width * C.scale, F = l.height * C.scale;
1117
1112
  l.minX = Math.min(a.slideWidth / 2 - se / 2, 0), l.maxX = -l.minX, l.minY = Math.min(a.slideHeight / 2 - F / 2, 0), l.maxY = -l.minY, l.currentX = Math.max(Math.min(l.currentX, l.maxX), l.minX), l.currentY = Math.max(Math.min(l.currentY, l.maxY), l.minY), a.imageWrapEl.style.transitionDuration = `${Q}ms`, a.imageWrapEl.style.transform = `translate3d(${l.currentX}px, ${l.currentY}px,0)`;
1118
1113
  }
@@ -1122,36 +1117,36 @@ function Bt(t) {
1122
1117
  }
1123
1118
  function X(C) {
1124
1119
  if (d <= 1 || !a.imageWrapEl || !L(C) || !I(C)) return;
1125
- const x = r.getComputedStyle(a.imageWrapEl).transform, M = new r.DOMMatrix(x);
1120
+ const x = n.getComputedStyle(a.imageWrapEl).transform, M = new n.DOMMatrix(x);
1126
1121
  if (!c) {
1127
1122
  c = true, f.x = C.clientX, f.y = C.clientY, l.startX = M.e, l.startY = M.f, l.width = a.imageEl.offsetWidth || a.imageEl.clientWidth, l.height = a.imageEl.offsetHeight || a.imageEl.clientHeight, a.slideWidth = a.slideEl.offsetWidth, a.slideHeight = a.slideEl.offsetHeight;
1128
1123
  return;
1129
1124
  }
1130
- const B = (C.clientX - f.x) * p, H = (C.clientY - f.y) * p, te = l.width * d, ie = l.height * d, Q = a.slideWidth, se = a.slideHeight, F = Math.min(Q / 2 - te / 2, 0), U = -F, me = Math.min(se / 2 - ie / 2, 0), be = -me, le = Math.max(Math.min(l.startX + B, U), F), oe = Math.max(Math.min(l.startY + H, be), me);
1125
+ const B = (C.clientX - f.x) * u, N = (C.clientY - f.y) * u, te = l.width * d, ie = l.height * d, Q = a.slideWidth, se = a.slideHeight, F = Math.min(Q / 2 - te / 2, 0), U = -F, pe = Math.min(se / 2 - ie / 2, 0), Ee = -pe, le = Math.max(Math.min(l.startX + B, U), F), oe = Math.max(Math.min(l.startY + N, Ee), pe);
1131
1126
  a.imageWrapEl.style.transitionDuration = "0ms", a.imageWrapEl.style.transform = `translate3d(${le}px, ${oe}px, 0)`, f.x = C.clientX, f.y = C.clientY, l.startX = le, l.startY = oe, l.currentX = le, l.currentY = oe;
1132
1127
  }
1133
1128
  function G(C) {
1134
1129
  const x = e.zoom, M = e.params.zoom;
1135
1130
  if (!a.slideEl) {
1136
1131
  C && C.target && (a.slideEl = C.target.closest(`.${e.params.slideClass}, swiper-slide`)), a.slideEl || (e.params.virtual && e.params.virtual.enabled && e.virtual ? a.slideEl = q(e.slidesEl, `.${e.params.slideActiveClass}`)[0] : a.slideEl = e.slides[e.activeIndex]);
1137
- let he = a.slideEl.querySelector(`.${M.containerClass}`);
1138
- he && (he = he.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), a.imageEl = he, he ? a.imageWrapEl = ne(a.imageEl, `.${M.containerClass}`)[0] : a.imageWrapEl = void 0;
1132
+ let me = a.slideEl.querySelector(`.${M.containerClass}`);
1133
+ me && (me = me.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), a.imageEl = me, me ? a.imageWrapEl = re(a.imageEl, `.${M.containerClass}`)[0] : a.imageWrapEl = void 0;
1139
1134
  }
1140
1135
  if (!a.imageEl || !a.imageWrapEl) return;
1141
1136
  e.params.cssMode && (e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.touchAction = "none"), a.slideEl.classList.add(`${M.zoomedSlideClass}`);
1142
- let B, H, te, ie, Q, se, F, U, me, be, le, oe, xe, ye, Ie, Oe, Ae, De;
1143
- typeof l.touchesStart.x > "u" && C ? (B = C.pageX, H = C.pageY) : (B = l.touchesStart.x, H = l.touchesStart.y);
1144
- const $e = d, de = typeof C == "number" ? C : null;
1145
- d === 1 && de && (B = void 0, H = void 0, l.touchesStart.x = void 0, l.touchesStart.y = void 0);
1137
+ let B, N, te, ie, Q, se, F, U, pe, Ee, le, oe, be, xe, ze, Ie, Oe, Ae;
1138
+ typeof l.touchesStart.x > "u" && C ? (B = C.pageX, N = C.pageY) : (B = l.touchesStart.x, N = l.touchesStart.y);
1139
+ const De = d, de = typeof C == "number" ? C : null;
1140
+ d === 1 && de && (B = void 0, N = void 0, l.touchesStart.x = void 0, l.touchesStart.y = void 0);
1146
1141
  const Ue = h();
1147
- x.scale = de || Ue, d = de || Ue, C && !(d === 1 && de) ? (Ae = a.slideEl.offsetWidth, De = a.slideEl.offsetHeight, te = ke(a.slideEl).left + r.scrollX, ie = ke(a.slideEl).top + r.scrollY, Q = te + Ae / 2 - B, se = ie + De / 2 - H, me = a.imageEl.offsetWidth || a.imageEl.clientWidth, be = a.imageEl.offsetHeight || a.imageEl.clientHeight, le = me * x.scale, oe = be * x.scale, xe = Math.min(Ae / 2 - le / 2, 0), ye = Math.min(De / 2 - oe / 2, 0), Ie = -xe, Oe = -ye, $e > 0 && de && typeof l.currentX == "number" && typeof l.currentY == "number" ? (F = l.currentX * x.scale / $e, U = l.currentY * x.scale / $e) : (F = Q * x.scale, U = se * x.scale), F < xe && (F = xe), F > Ie && (F = Ie), U < ye && (U = ye), U > Oe && (U = Oe)) : (F = 0, U = 0), de && x.scale === 1 && (a.originX = 0, a.originY = 0), l.currentX = F, l.currentY = U, a.imageWrapEl.style.transitionDuration = "300ms", a.imageWrapEl.style.transform = `translate3d(${F}px, ${U}px,0)`, a.imageEl.style.transitionDuration = "300ms", a.imageEl.style.transform = `translate3d(0,0,0) scale(${x.scale})`;
1142
+ x.scale = de || Ue, d = de || Ue, C && !(d === 1 && de) ? (Oe = a.slideEl.offsetWidth, Ae = a.slideEl.offsetHeight, te = ke(a.slideEl).left + n.scrollX, ie = ke(a.slideEl).top + n.scrollY, Q = te + Oe / 2 - B, se = ie + Ae / 2 - N, pe = a.imageEl.offsetWidth || a.imageEl.clientWidth, Ee = a.imageEl.offsetHeight || a.imageEl.clientHeight, le = pe * x.scale, oe = Ee * x.scale, be = Math.min(Oe / 2 - le / 2, 0), xe = Math.min(Ae / 2 - oe / 2, 0), ze = -be, Ie = -xe, De > 0 && de && typeof l.currentX == "number" && typeof l.currentY == "number" ? (F = l.currentX * x.scale / De, U = l.currentY * x.scale / De) : (F = Q * x.scale, U = se * x.scale), F < be && (F = be), F > ze && (F = ze), U < xe && (U = xe), U > Ie && (U = Ie)) : (F = 0, U = 0), de && x.scale === 1 && (a.originX = 0, a.originY = 0), l.currentX = F, l.currentY = U, a.imageWrapEl.style.transitionDuration = "300ms", a.imageWrapEl.style.transform = `translate3d(${F}px, ${U}px,0)`, a.imageEl.style.transitionDuration = "300ms", a.imageEl.style.transform = `translate3d(0,0,0) scale(${x.scale})`;
1148
1143
  }
1149
- function N() {
1144
+ function H() {
1150
1145
  const C = e.zoom, x = e.params.zoom;
1151
1146
  if (!a.slideEl) {
1152
1147
  e.params.virtual && e.params.virtual.enabled && e.virtual ? a.slideEl = q(e.slidesEl, `.${e.params.slideActiveClass}`)[0] : a.slideEl = e.slides[e.activeIndex];
1153
1148
  let M = a.slideEl.querySelector(`.${x.containerClass}`);
1154
- M && (M = M.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), a.imageEl = M, M ? a.imageWrapEl = ne(a.imageEl, `.${x.containerClass}`)[0] : a.imageWrapEl = void 0;
1149
+ M && (M = M.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), a.imageEl = M, M ? a.imageWrapEl = re(a.imageEl, `.${x.containerClass}`)[0] : a.imageWrapEl = void 0;
1155
1150
  }
1156
1151
  !a.imageEl || !a.imageWrapEl || (e.params.cssMode && (e.wrapperEl.style.overflow = "", e.wrapperEl.style.touchAction = ""), C.scale = 1, d = 1, l.currentX = void 0, l.currentY = void 0, l.touchesStart.x = void 0, l.touchesStart.y = void 0, a.imageWrapEl.style.transitionDuration = "300ms", a.imageWrapEl.style.transform = "translate3d(0,0,0)", a.imageEl.style.transitionDuration = "300ms", a.imageEl.style.transform = "translate3d(0,0,0) scale(1)", a.slideEl.classList.remove(`${x.zoomedSlideClass}`), a.slideEl = void 0, a.originX = 0, a.originY = 0, e.params.zoom.panOnMouseMove && (f = {
1157
1152
  x: 0,
@@ -1160,7 +1155,7 @@ function Bt(t) {
1160
1155
  }
1161
1156
  function K(C) {
1162
1157
  const x = e.zoom;
1163
- x.scale && x.scale !== 1 ? N() : G(C);
1158
+ x.scale && x.scale !== 1 ? H() : G(C);
1164
1159
  }
1165
1160
  function ee() {
1166
1161
  const C = e.params.passiveListeners ? {
@@ -1175,7 +1170,7 @@ function Bt(t) {
1175
1170
  activeListenerWithCapture: x
1176
1171
  };
1177
1172
  }
1178
- function pe() {
1173
+ function ue() {
1179
1174
  const C = e.zoom;
1180
1175
  if (C.enabled) return;
1181
1176
  C.enabled = true;
@@ -1187,7 +1182,7 @@ function Bt(t) {
1187
1182
  e.wrapperEl.addEventListener(B, T, x);
1188
1183
  }), e.wrapperEl.addEventListener("pointermove", _, M);
1189
1184
  }
1190
- function Ee() {
1185
+ function Se() {
1191
1186
  const C = e.zoom;
1192
1187
  if (!C.enabled) return;
1193
1188
  C.enabled = false;
@@ -1200,9 +1195,9 @@ function Bt(t) {
1200
1195
  }), e.wrapperEl.removeEventListener("pointermove", _, M);
1201
1196
  }
1202
1197
  s("init", () => {
1203
- e.params.zoom.enabled && pe();
1198
+ e.params.zoom.enabled && ue();
1204
1199
  }), s("destroy", () => {
1205
- Ee();
1200
+ Se();
1206
1201
  }), s("touchStart", (C, x) => {
1207
1202
  e.zoom.enabled && $(x);
1208
1203
  }), s("touchEnd", (C, x) => {
@@ -1214,45 +1209,45 @@ function Bt(t) {
1214
1209
  }), s("slideChange", () => {
1215
1210
  e.zoom.enabled && e.params.zoom.enabled && e.params.cssMode && Y();
1216
1211
  }), Object.assign(e.zoom, {
1217
- enable: pe,
1218
- disable: Ee,
1212
+ enable: ue,
1213
+ disable: Se,
1219
1214
  in: G,
1220
- out: N,
1215
+ out: H,
1221
1216
  toggle: K
1222
1217
  });
1223
1218
  }
1224
- let _e;
1225
- function Yt() {
1219
+ let $e;
1220
+ function Bt() {
1226
1221
  const t = k(), e = Z();
1227
1222
  return {
1228
1223
  smoothScroll: e.documentElement && e.documentElement.style && "scrollBehavior" in e.documentElement.style,
1229
1224
  touch: !!("ontouchstart" in t || t.DocumentTouch && e instanceof t.DocumentTouch)
1230
1225
  };
1231
1226
  }
1232
- function lt() {
1233
- return _e || (_e = Yt()), _e;
1227
+ function at() {
1228
+ return $e || ($e = Bt()), $e;
1234
1229
  }
1235
- let Ge;
1236
- function Xt(t) {
1230
+ let _e;
1231
+ function Yt(t) {
1237
1232
  let {
1238
1233
  userAgent: e
1239
1234
  } = t === void 0 ? {} : t;
1240
- const i = lt(), s = k(), n = s.navigator.platform, r = e || s.navigator.userAgent, d = {
1235
+ const i = at(), s = k(), r = s.navigator.platform, n = e || s.navigator.userAgent, d = {
1241
1236
  ios: false,
1242
1237
  android: false
1243
- }, o = s.screen.width, c = s.screen.height, f = r.match(/(Android);?[\s\/]+([\d.]+)?/);
1244
- let p = r.match(/(iPad).*OS\s([\d_]+)/);
1245
- const m = r.match(/(iPod)(.*OS\s([\d_]+))?/), v = !p && r.match(/(iPhone\sOS|iOS)\s([\d_]+)/), w = n === "Win32";
1246
- let a = n === "MacIntel";
1238
+ }, o = s.screen.width, c = s.screen.height, f = n.match(/(Android);?[\s\/]+([\d.]+)?/);
1239
+ let u = n.match(/(iPad).*OS\s([\d_]+)/);
1240
+ const m = n.match(/(iPod)(.*OS\s([\d_]+))?/), v = !u && n.match(/(iPhone\sOS|iOS)\s([\d_]+)/), w = r === "Win32";
1241
+ let a = r === "MacIntel";
1247
1242
  const l = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
1248
- return !p && a && i.touch && l.indexOf(`${o}x${c}`) >= 0 && (p = r.match(/(Version)\/([\d.]+)/), p || (p = [0, 1, "13_0_0"]), a = false), f && !w && (d.os = "android", d.android = true), (p || v || m) && (d.os = "ios", d.ios = true), d;
1243
+ return !u && a && i.touch && l.indexOf(`${o}x${c}`) >= 0 && (u = n.match(/(Version)\/([\d.]+)/), u || (u = [0, 1, "13_0_0"]), a = false), f && !w && (d.os = "android", d.android = true), (u || v || m) && (d.os = "ios", d.ios = true), d;
1249
1244
  }
1250
- function ot(t) {
1251
- return t === void 0 && (t = {}), Ge || (Ge = Xt(t)), Ge;
1245
+ function lt(t) {
1246
+ return t === void 0 && (t = {}), _e || (_e = Yt(t)), _e;
1252
1247
  }
1253
- let Be;
1254
- function Rt() {
1255
- const t = k(), e = ot();
1248
+ let Ge;
1249
+ function Xt() {
1250
+ const t = k(), e = lt();
1256
1251
  let i = false;
1257
1252
  function s() {
1258
1253
  const o = t.navigator.userAgent.toLowerCase();
@@ -1261,34 +1256,34 @@ function Rt() {
1261
1256
  if (s()) {
1262
1257
  const o = String(t.navigator.userAgent);
1263
1258
  if (o.includes("Version/")) {
1264
- const [c, f] = o.split("Version/")[1].split(" ")[0].split(".").map((p) => Number(p));
1259
+ const [c, f] = o.split("Version/")[1].split(" ")[0].split(".").map((u) => Number(u));
1265
1260
  i = c < 16 || c === 16 && f < 2;
1266
1261
  }
1267
1262
  }
1268
- const n = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent), r = s(), d = r || n && e.ios;
1263
+ const r = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent), n = s(), d = n || r && e.ios;
1269
1264
  return {
1270
- isSafari: i || r,
1265
+ isSafari: i || n,
1271
1266
  needPerspectiveFix: i,
1272
1267
  need3dFix: d,
1273
- isWebView: n
1268
+ isWebView: r
1274
1269
  };
1275
1270
  }
1276
- function dt() {
1277
- return Be || (Be = Rt()), Be;
1271
+ function ot() {
1272
+ return Ge || (Ge = Xt()), Ge;
1278
1273
  }
1279
- function Vt(t) {
1274
+ function Rt(t) {
1280
1275
  let {
1281
1276
  swiper: e,
1282
1277
  on: i,
1283
1278
  emit: s
1284
1279
  } = t;
1285
- const n = k();
1286
- let r = null, d = null;
1280
+ const r = k();
1281
+ let n = null, d = null;
1287
1282
  const o = () => {
1288
1283
  !e || e.destroyed || !e.initialized || (s("beforeResize"), s("resize"));
1289
1284
  }, c = () => {
1290
- !e || e.destroyed || !e.initialized || (r = new ResizeObserver((m) => {
1291
- d = n.requestAnimationFrame(() => {
1285
+ !e || e.destroyed || !e.initialized || (n = new ResizeObserver((m) => {
1286
+ d = r.requestAnimationFrame(() => {
1292
1287
  const {
1293
1288
  width: v,
1294
1289
  height: w
@@ -1297,59 +1292,59 @@ function Vt(t) {
1297
1292
  m.forEach((S) => {
1298
1293
  let {
1299
1294
  contentBoxSize: g,
1300
- contentRect: u,
1295
+ contentRect: p,
1301
1296
  target: h
1302
1297
  } = S;
1303
- h && h !== e.el || (a = u ? u.width : (g[0] || g).inlineSize, l = u ? u.height : (g[0] || g).blockSize);
1298
+ h && h !== e.el || (a = p ? p.width : (g[0] || g).inlineSize, l = p ? p.height : (g[0] || g).blockSize);
1304
1299
  }), (a !== v || l !== w) && o();
1305
1300
  });
1306
- }), r.observe(e.el));
1301
+ }), n.observe(e.el));
1307
1302
  }, f = () => {
1308
- d && n.cancelAnimationFrame(d), r && r.unobserve && e.el && (r.unobserve(e.el), r = null);
1309
- }, p = () => {
1303
+ d && r.cancelAnimationFrame(d), n && n.unobserve && e.el && (n.unobserve(e.el), n = null);
1304
+ }, u = () => {
1310
1305
  !e || e.destroyed || !e.initialized || s("orientationchange");
1311
1306
  };
1312
1307
  i("init", () => {
1313
- if (e.params.resizeObserver && typeof n.ResizeObserver < "u") {
1308
+ if (e.params.resizeObserver && typeof r.ResizeObserver < "u") {
1314
1309
  c();
1315
1310
  return;
1316
1311
  }
1317
- n.addEventListener("resize", o), n.addEventListener("orientationchange", p);
1312
+ r.addEventListener("resize", o), r.addEventListener("orientationchange", u);
1318
1313
  }), i("destroy", () => {
1319
- f(), n.removeEventListener("resize", o), n.removeEventListener("orientationchange", p);
1314
+ f(), r.removeEventListener("resize", o), r.removeEventListener("orientationchange", u);
1320
1315
  });
1321
1316
  }
1322
- function Wt(t) {
1317
+ function Vt(t) {
1323
1318
  let {
1324
1319
  swiper: e,
1325
1320
  extendParams: i,
1326
1321
  on: s,
1327
- emit: n
1322
+ emit: r
1328
1323
  } = t;
1329
- const r = [], d = k(), o = function(p, m) {
1324
+ const n = [], d = k(), o = function(u, m) {
1330
1325
  m === void 0 && (m = {});
1331
1326
  const v = d.MutationObserver || d.WebkitMutationObserver, w = new v((a) => {
1332
1327
  if (e.__preventObserver__) return;
1333
1328
  if (a.length === 1) {
1334
- n("observerUpdate", a[0]);
1329
+ r("observerUpdate", a[0]);
1335
1330
  return;
1336
1331
  }
1337
1332
  const l = function() {
1338
- n("observerUpdate", a[0]);
1333
+ r("observerUpdate", a[0]);
1339
1334
  };
1340
1335
  d.requestAnimationFrame ? d.requestAnimationFrame(l) : d.setTimeout(l, 0);
1341
1336
  });
1342
- w.observe(p, {
1337
+ w.observe(u, {
1343
1338
  attributes: typeof m.attributes > "u" ? true : m.attributes,
1344
1339
  childList: e.isElement || (typeof m.childList > "u" ? true : m).childList,
1345
1340
  characterData: typeof m.characterData > "u" ? true : m.characterData
1346
- }), r.push(w);
1341
+ }), n.push(w);
1347
1342
  }, c = () => {
1348
1343
  if (e.params.observer) {
1349
1344
  if (e.params.observeParents) {
1350
- const p = ne(e.hostEl);
1351
- for (let m = 0; m < p.length; m += 1)
1352
- o(p[m]);
1345
+ const u = re(e.hostEl);
1346
+ for (let m = 0; m < u.length; m += 1)
1347
+ o(u[m]);
1353
1348
  }
1354
1349
  o(e.hostEl, {
1355
1350
  childList: e.params.observeSlideChildren
@@ -1358,9 +1353,9 @@ function Wt(t) {
1358
1353
  });
1359
1354
  }
1360
1355
  }, f = () => {
1361
- r.forEach((p) => {
1362
- p.disconnect();
1363
- }), r.splice(0, r.length);
1356
+ n.forEach((u) => {
1357
+ u.disconnect();
1358
+ }), n.splice(0, n.length);
1364
1359
  };
1365
1360
  i({
1366
1361
  observer: false,
@@ -1368,25 +1363,25 @@ function Wt(t) {
1368
1363
  observeSlideChildren: false
1369
1364
  }), s("init", c), s("destroy", f);
1370
1365
  }
1371
- var kt = {
1366
+ var Wt = {
1372
1367
  on(t, e, i) {
1373
1368
  const s = this;
1374
1369
  if (!s.eventsListeners || s.destroyed || typeof e != "function") return s;
1375
- const n = i ? "unshift" : "push";
1376
- return t.split(" ").forEach((r) => {
1377
- s.eventsListeners[r] || (s.eventsListeners[r] = []), s.eventsListeners[r][n](e);
1370
+ const r = i ? "unshift" : "push";
1371
+ return t.split(" ").forEach((n) => {
1372
+ s.eventsListeners[n] || (s.eventsListeners[n] = []), s.eventsListeners[n][r](e);
1378
1373
  }), s;
1379
1374
  },
1380
1375
  once(t, e, i) {
1381
1376
  const s = this;
1382
1377
  if (!s.eventsListeners || s.destroyed || typeof e != "function") return s;
1383
- function n() {
1384
- s.off(t, n), n.__emitterProxy && delete n.__emitterProxy;
1385
- for (var r = arguments.length, d = new Array(r), o = 0; o < r; o++)
1378
+ function r() {
1379
+ s.off(t, r), r.__emitterProxy && delete r.__emitterProxy;
1380
+ for (var n = arguments.length, d = new Array(n), o = 0; o < n; o++)
1386
1381
  d[o] = arguments[o];
1387
1382
  e.apply(s, d);
1388
1383
  }
1389
- return n.__emitterProxy = e, s.on(t, n, i);
1384
+ return r.__emitterProxy = e, s.on(t, r, i);
1390
1385
  },
1391
1386
  onAny(t, e) {
1392
1387
  const i = this;
@@ -1403,8 +1398,8 @@ var kt = {
1403
1398
  off(t, e) {
1404
1399
  const i = this;
1405
1400
  return !i.eventsListeners || i.destroyed || !i.eventsListeners || t.split(" ").forEach((s) => {
1406
- typeof e > "u" ? i.eventsListeners[s] = [] : i.eventsListeners[s] && i.eventsListeners[s].forEach((n, r) => {
1407
- (n === e || n.__emitterProxy && n.__emitterProxy === e) && i.eventsListeners[s].splice(r, 1);
1401
+ typeof e > "u" ? i.eventsListeners[s] = [] : i.eventsListeners[s] && i.eventsListeners[s].forEach((r, n) => {
1402
+ (r === e || r.__emitterProxy && r.__emitterProxy === e) && i.eventsListeners[s].splice(n, 1);
1408
1403
  });
1409
1404
  }), i;
1410
1405
  },
@@ -1412,9 +1407,9 @@ var kt = {
1412
1407
  const t = this;
1413
1408
  if (!t.eventsListeners || t.destroyed || !t.eventsListeners) return t;
1414
1409
  let e, i, s;
1415
- for (var n = arguments.length, r = new Array(n), d = 0; d < n; d++)
1416
- r[d] = arguments[d];
1417
- return typeof r[0] == "string" || Array.isArray(r[0]) ? (e = r[0], i = r.slice(1, r.length), s = t) : (e = r[0].events, i = r[0].data, s = r[0].context || t), i.unshift(s), (Array.isArray(e) ? e : e.split(" ")).forEach((c) => {
1410
+ for (var r = arguments.length, n = new Array(r), d = 0; d < r; d++)
1411
+ n[d] = arguments[d];
1412
+ return typeof n[0] == "string" || Array.isArray(n[0]) ? (e = n[0], i = n.slice(1, n.length), s = t) : (e = n[0].events, i = n[0].data, s = n[0].context || t), i.unshift(s), (Array.isArray(e) ? e : e.split(" ")).forEach((c) => {
1418
1413
  t.eventsAnyListeners && t.eventsAnyListeners.length && t.eventsAnyListeners.forEach((f) => {
1419
1414
  f.apply(s, [c, ...i]);
1420
1415
  }), t.eventsListeners && t.eventsListeners[c] && t.eventsListeners[c].forEach((f) => {
@@ -1423,11 +1418,11 @@ var kt = {
1423
1418
  }), t;
1424
1419
  }
1425
1420
  };
1426
- function Nt() {
1421
+ function kt() {
1427
1422
  const t = this;
1428
1423
  let e, i;
1429
1424
  const s = t.el;
1430
- typeof t.params.width < "u" && t.params.width !== null ? e = t.params.width : e = s.clientWidth, typeof t.params.height < "u" && t.params.height !== null ? i = t.params.height : i = s.clientHeight, !(e === 0 && t.isHorizontal() || i === 0 && t.isVertical()) && (e = e - parseInt(re(s, "padding-left") || 0, 10) - parseInt(re(s, "padding-right") || 0, 10), i = i - parseInt(re(s, "padding-top") || 0, 10) - parseInt(re(s, "padding-bottom") || 0, 10), Number.isNaN(e) && (e = 0), Number.isNaN(i) && (i = 0), Object.assign(t, {
1425
+ typeof t.params.width < "u" && t.params.width !== null ? e = t.params.width : e = s.clientWidth, typeof t.params.height < "u" && t.params.height !== null ? i = t.params.height : i = s.clientHeight, !(e === 0 && t.isHorizontal() || i === 0 && t.isVertical()) && (e = e - parseInt(ne(s, "padding-left") || 0, 10) - parseInt(ne(s, "padding-right") || 0, 10), i = i - parseInt(ne(s, "padding-top") || 0, 10) - parseInt(ne(s, "padding-bottom") || 0, 10), Number.isNaN(e) && (e = 0), Number.isNaN(i) && (i = 0), Object.assign(t, {
1431
1426
  width: e,
1432
1427
  height: i,
1433
1428
  size: t.isHorizontal() ? e : i
@@ -1440,40 +1435,40 @@ function Ht() {
1440
1435
  }
1441
1436
  const i = t.params, {
1442
1437
  wrapperEl: s,
1443
- slidesEl: n,
1444
- size: r,
1438
+ slidesEl: r,
1439
+ size: n,
1445
1440
  rtlTranslate: d,
1446
1441
  wrongRTL: o
1447
- } = t, c = t.virtual && i.virtual.enabled, f = c ? t.virtual.slides.length : t.slides.length, p = q(n, `.${t.params.slideClass}, swiper-slide`), m = c ? t.virtual.slides.length : p.length;
1442
+ } = t, c = t.virtual && i.virtual.enabled, f = c ? t.virtual.slides.length : t.slides.length, u = q(r, `.${t.params.slideClass}, swiper-slide`), m = c ? t.virtual.slides.length : u.length;
1448
1443
  let v = [];
1449
1444
  const w = [], a = [];
1450
1445
  let l = i.slidesOffsetBefore;
1451
1446
  typeof l == "function" && (l = i.slidesOffsetBefore.call(t));
1452
1447
  let S = i.slidesOffsetAfter;
1453
1448
  typeof S == "function" && (S = i.slidesOffsetAfter.call(t));
1454
- const g = t.snapGrid.length, u = t.slidesGrid.length;
1449
+ const g = t.snapGrid.length, p = t.slidesGrid.length;
1455
1450
  let h = i.spaceBetween, E = -l, b = 0, L = 0;
1456
- if (typeof r > "u")
1451
+ if (typeof n > "u")
1457
1452
  return;
1458
- typeof h == "string" && h.indexOf("%") >= 0 ? h = parseFloat(h.replace("%", "")) / 100 * r : typeof h == "string" && (h = parseFloat(h)), t.virtualSize = -h, p.forEach((T) => {
1453
+ typeof h == "string" && h.indexOf("%") >= 0 ? h = parseFloat(h.replace("%", "")) / 100 * n : typeof h == "string" && (h = parseFloat(h)), t.virtualSize = -h, u.forEach((T) => {
1459
1454
  d ? T.style.marginLeft = "" : T.style.marginRight = "", T.style.marginBottom = "", T.style.marginTop = "";
1460
- }), i.centeredSlides && i.cssMode && (we(s, "--swiper-centered-offset-before", ""), we(s, "--swiper-centered-offset-after", ""));
1455
+ }), i.centeredSlides && i.cssMode && (ve(s, "--swiper-centered-offset-before", ""), ve(s, "--swiper-centered-offset-after", ""));
1461
1456
  const I = i.grid && i.grid.rows > 1 && t.grid;
1462
- I ? t.grid.initSlides(p) : t.grid && t.grid.unsetSlides();
1457
+ I ? t.grid.initSlides(u) : t.grid && t.grid.unsetSlides();
1463
1458
  let z;
1464
1459
  const y = i.slidesPerView === "auto" && i.breakpoints && Object.keys(i.breakpoints).filter((T) => typeof i.breakpoints[T].slidesPerView < "u").length > 0;
1465
1460
  for (let T = 0; T < m; T += 1) {
1466
1461
  z = 0;
1467
1462
  let P;
1468
- if (p[T] && (P = p[T]), I && t.grid.updateSlide(T, P, p), !(p[T] && re(P, "display") === "none")) {
1463
+ if (u[T] && (P = u[T]), I && t.grid.updateSlide(T, P, u), !(u[T] && ne(P, "display") === "none")) {
1469
1464
  if (i.slidesPerView === "auto") {
1470
- y && (p[T].style[t.getDirectionLabel("width")] = "");
1465
+ y && (u[T].style[t.getDirectionLabel("width")] = "");
1471
1466
  const O = getComputedStyle(P), D = P.style.transform, $ = P.style.webkitTransform;
1472
1467
  if (D && (P.style.transform = "none"), $ && (P.style.webkitTransform = "none"), i.roundLengths)
1473
- z = t.isHorizontal() ? Ne(P, "width") : Ne(P, "height");
1468
+ z = t.isHorizontal() ? He(P, "width") : He(P, "height");
1474
1469
  else {
1475
- const _ = e(O, "width"), A = e(O, "padding-left"), Y = e(O, "padding-right"), X = e(O, "margin-left"), G = e(O, "margin-right"), N = O.getPropertyValue("box-sizing");
1476
- if (N && N === "border-box")
1470
+ const _ = e(O, "width"), A = e(O, "padding-left"), Y = e(O, "padding-right"), X = e(O, "margin-left"), G = e(O, "margin-right"), H = O.getPropertyValue("box-sizing");
1471
+ if (H && H === "border-box")
1477
1472
  z = _ + X + G;
1478
1473
  else {
1479
1474
  const {
@@ -1485,17 +1480,17 @@ function Ht() {
1485
1480
  }
1486
1481
  D && (P.style.transform = D), $ && (P.style.webkitTransform = $), i.roundLengths && (z = Math.floor(z));
1487
1482
  } else
1488
- z = (r - (i.slidesPerView - 1) * h) / i.slidesPerView, i.roundLengths && (z = Math.floor(z)), p[T] && (p[T].style[t.getDirectionLabel("width")] = `${z}px`);
1489
- p[T] && (p[T].swiperSlideSize = z), a.push(z), i.centeredSlides ? (E = E + z / 2 + b / 2 + h, b === 0 && T !== 0 && (E = E - r / 2 - h), T === 0 && (E = E - r / 2 - h), Math.abs(E) < 1 / 1e3 && (E = 0), i.roundLengths && (E = Math.floor(E)), L % i.slidesPerGroup === 0 && v.push(E), w.push(E)) : (i.roundLengths && (E = Math.floor(E)), (L - Math.min(t.params.slidesPerGroupSkip, L)) % t.params.slidesPerGroup === 0 && v.push(E), w.push(E), E = E + z + h), t.virtualSize += z + h, b = z, L += 1;
1483
+ z = (n - (i.slidesPerView - 1) * h) / i.slidesPerView, i.roundLengths && (z = Math.floor(z)), u[T] && (u[T].style[t.getDirectionLabel("width")] = `${z}px`);
1484
+ u[T] && (u[T].swiperSlideSize = z), a.push(z), i.centeredSlides ? (E = E + z / 2 + b / 2 + h, b === 0 && T !== 0 && (E = E - n / 2 - h), T === 0 && (E = E - n / 2 - h), Math.abs(E) < 1 / 1e3 && (E = 0), i.roundLengths && (E = Math.floor(E)), L % i.slidesPerGroup === 0 && v.push(E), w.push(E)) : (i.roundLengths && (E = Math.floor(E)), (L - Math.min(t.params.slidesPerGroupSkip, L)) % t.params.slidesPerGroup === 0 && v.push(E), w.push(E), E = E + z + h), t.virtualSize += z + h, b = z, L += 1;
1490
1485
  }
1491
1486
  }
1492
- if (t.virtualSize = Math.max(t.virtualSize, r) + S, d && o && (i.effect === "slide" || i.effect === "coverflow") && (s.style.width = `${t.virtualSize + h}px`), i.setWrapperSize && (s.style[t.getDirectionLabel("width")] = `${t.virtualSize + h}px`), I && t.grid.updateWrapperSize(z, v), !i.centeredSlides) {
1487
+ if (t.virtualSize = Math.max(t.virtualSize, n) + S, d && o && (i.effect === "slide" || i.effect === "coverflow") && (s.style.width = `${t.virtualSize + h}px`), i.setWrapperSize && (s.style[t.getDirectionLabel("width")] = `${t.virtualSize + h}px`), I && t.grid.updateWrapperSize(z, v), !i.centeredSlides) {
1493
1488
  const T = [];
1494
1489
  for (let P = 0; P < v.length; P += 1) {
1495
1490
  let O = v[P];
1496
- i.roundLengths && (O = Math.floor(O)), v[P] <= t.virtualSize - r && T.push(O);
1491
+ i.roundLengths && (O = Math.floor(O)), v[P] <= t.virtualSize - n && T.push(O);
1497
1492
  }
1498
- v = T, Math.floor(t.virtualSize - r) - Math.floor(v[v.length - 1]) > 1 && v.push(t.virtualSize - r);
1493
+ v = T, Math.floor(t.virtualSize - n) - Math.floor(v[v.length - 1]) > 1 && v.push(t.virtualSize - n);
1499
1494
  }
1500
1495
  if (c && i.loop) {
1501
1496
  const T = a[0] + h;
@@ -1509,7 +1504,7 @@ function Ht() {
1509
1504
  }
1510
1505
  if (v.length === 0 && (v = [0]), h !== 0) {
1511
1506
  const T = t.isHorizontal() && d ? "marginLeft" : t.getDirectionLabel("marginRight");
1512
- p.filter((P, O) => !i.cssMode || i.loop ? true : O !== p.length - 1).forEach((P) => {
1507
+ u.filter((P, O) => !i.cssMode || i.loop ? true : O !== u.length - 1).forEach((P) => {
1513
1508
  P.style[T] = `${h}px`;
1514
1509
  });
1515
1510
  }
@@ -1518,7 +1513,7 @@ function Ht() {
1518
1513
  a.forEach((O) => {
1519
1514
  T += O + (h || 0);
1520
1515
  }), T -= h;
1521
- const P = T > r ? T - r : 0;
1516
+ const P = T > n ? T - n : 0;
1522
1517
  v = v.map((O) => O <= 0 ? -l : O > P ? P + S : O);
1523
1518
  }
1524
1519
  if (i.centerInsufficientSlides) {
@@ -1527,8 +1522,8 @@ function Ht() {
1527
1522
  T += O + (h || 0);
1528
1523
  }), T -= h;
1529
1524
  const P = (i.slidesOffsetBefore || 0) + (i.slidesOffsetAfter || 0);
1530
- if (T + P < r) {
1531
- const O = (r - T - P) / 2;
1525
+ if (T + P < n) {
1526
+ const O = (n - T - P) / 2;
1532
1527
  v.forEach((D, $) => {
1533
1528
  v[$] = D - O;
1534
1529
  }), w.forEach((D, $) => {
@@ -1537,23 +1532,23 @@ function Ht() {
1537
1532
  }
1538
1533
  }
1539
1534
  if (Object.assign(t, {
1540
- slides: p,
1535
+ slides: u,
1541
1536
  snapGrid: v,
1542
1537
  slidesGrid: w,
1543
1538
  slidesSizesGrid: a
1544
1539
  }), i.centeredSlides && i.cssMode && !i.centeredSlidesBounds) {
1545
- we(s, "--swiper-centered-offset-before", `${-v[0]}px`), we(s, "--swiper-centered-offset-after", `${t.size / 2 - a[a.length - 1] / 2}px`);
1540
+ ve(s, "--swiper-centered-offset-before", `${-v[0]}px`), ve(s, "--swiper-centered-offset-after", `${t.size / 2 - a[a.length - 1] / 2}px`);
1546
1541
  const T = -t.snapGrid[0], P = -t.slidesGrid[0];
1547
1542
  t.snapGrid = t.snapGrid.map((O) => O + T), t.slidesGrid = t.slidesGrid.map((O) => O + P);
1548
1543
  }
1549
- if (m !== f && t.emit("slidesLengthChange"), v.length !== g && (t.params.watchOverflow && t.checkOverflow(), t.emit("snapGridLengthChange")), w.length !== u && t.emit("slidesGridLengthChange"), i.watchSlidesProgress && t.updateSlidesOffset(), t.emit("slidesUpdated"), !c && !i.cssMode && (i.effect === "slide" || i.effect === "fade")) {
1544
+ if (m !== f && t.emit("slidesLengthChange"), v.length !== g && (t.params.watchOverflow && t.checkOverflow(), t.emit("snapGridLengthChange")), w.length !== p && t.emit("slidesGridLengthChange"), i.watchSlidesProgress && t.updateSlidesOffset(), t.emit("slidesUpdated"), !c && !i.cssMode && (i.effect === "slide" || i.effect === "fade")) {
1550
1545
  const T = `${i.containerModifierClass}backface-hidden`, P = t.el.classList.contains(T);
1551
1546
  m <= i.maxBackfaceHiddenSlides ? P || t.el.classList.add(T) : P && t.el.classList.remove(T);
1552
1547
  }
1553
1548
  }
1554
- function Ft(t) {
1549
+ function Nt(t) {
1555
1550
  const e = this, i = [], s = e.virtual && e.params.virtual.enabled;
1556
- let n = 0, r;
1551
+ let r = 0, n;
1557
1552
  typeof t == "number" ? e.setTransition(t) : t === true && e.setTransition(e.params.speed);
1558
1553
  const d = (o) => s ? e.slides[e.getSlideIndexByData(o)] : e.slides[o];
1559
1554
  if (e.params.slidesPerView !== "auto" && e.params.slidesPerView > 1)
@@ -1562,21 +1557,21 @@ function Ft(t) {
1562
1557
  i.push(o);
1563
1558
  });
1564
1559
  else
1565
- for (r = 0; r < Math.ceil(e.params.slidesPerView); r += 1) {
1566
- const o = e.activeIndex + r;
1560
+ for (n = 0; n < Math.ceil(e.params.slidesPerView); n += 1) {
1561
+ const o = e.activeIndex + n;
1567
1562
  if (o > e.slides.length && !s) break;
1568
1563
  i.push(d(o));
1569
1564
  }
1570
1565
  else
1571
1566
  i.push(d(e.activeIndex));
1572
- for (r = 0; r < i.length; r += 1)
1573
- if (typeof i[r] < "u") {
1574
- const o = i[r].offsetHeight;
1575
- n = o > n ? o : n;
1567
+ for (n = 0; n < i.length; n += 1)
1568
+ if (typeof i[n] < "u") {
1569
+ const o = i[n].offsetHeight;
1570
+ r = o > r ? o : r;
1576
1571
  }
1577
- (n || n === 0) && (e.wrapperEl.style.height = `${n}px`);
1572
+ (r || r === 0) && (e.wrapperEl.style.height = `${r}px`);
1578
1573
  }
1579
- function jt() {
1574
+ function Ft() {
1580
1575
  const t = this, e = t.slides, i = t.isElement ? t.isHorizontal() ? t.wrapperEl.offsetLeft : t.wrapperEl.offsetTop : 0;
1581
1576
  for (let s = 0; s < e.length; s += 1)
1582
1577
  e[s].swiperSlideOffset = (t.isHorizontal() ? e[s].offsetLeft : e[s].offsetTop) - i - t.cssOverflowAdjustment();
@@ -1584,166 +1579,166 @@ function jt() {
1584
1579
  const Qe = (t, e, i) => {
1585
1580
  e && !t.classList.contains(i) ? t.classList.add(i) : !e && t.classList.contains(i) && t.classList.remove(i);
1586
1581
  };
1587
- function qt(t) {
1582
+ function jt(t) {
1588
1583
  t === void 0 && (t = this && this.translate || 0);
1589
1584
  const e = this, i = e.params, {
1590
1585
  slides: s,
1591
- rtlTranslate: n,
1592
- snapGrid: r
1586
+ rtlTranslate: r,
1587
+ snapGrid: n
1593
1588
  } = e;
1594
1589
  if (s.length === 0) return;
1595
1590
  typeof s[0].swiperSlideOffset > "u" && e.updateSlidesOffset();
1596
1591
  let d = -t;
1597
- n && (d = t), e.visibleSlidesIndexes = [], e.visibleSlides = [];
1592
+ r && (d = t), e.visibleSlidesIndexes = [], e.visibleSlides = [];
1598
1593
  let o = i.spaceBetween;
1599
1594
  typeof o == "string" && o.indexOf("%") >= 0 ? o = parseFloat(o.replace("%", "")) / 100 * e.size : typeof o == "string" && (o = parseFloat(o));
1600
1595
  for (let c = 0; c < s.length; c += 1) {
1601
1596
  const f = s[c];
1602
- let p = f.swiperSlideOffset;
1603
- i.cssMode && i.centeredSlides && (p -= s[0].swiperSlideOffset);
1604
- const m = (d + (i.centeredSlides ? e.minTranslate() : 0) - p) / (f.swiperSlideSize + o), v = (d - r[0] + (i.centeredSlides ? e.minTranslate() : 0) - p) / (f.swiperSlideSize + o), w = -(d - p), a = w + e.slidesSizesGrid[c], l = w >= 0 && w <= e.size - e.slidesSizesGrid[c], S = w >= 0 && w < e.size - 1 || a > 1 && a <= e.size || w <= 0 && a >= e.size;
1605
- S && (e.visibleSlides.push(f), e.visibleSlidesIndexes.push(c)), Qe(f, S, i.slideVisibleClass), Qe(f, l, i.slideFullyVisibleClass), f.progress = n ? -m : m, f.originalProgress = n ? -v : v;
1597
+ let u = f.swiperSlideOffset;
1598
+ i.cssMode && i.centeredSlides && (u -= s[0].swiperSlideOffset);
1599
+ const m = (d + (i.centeredSlides ? e.minTranslate() : 0) - u) / (f.swiperSlideSize + o), v = (d - n[0] + (i.centeredSlides ? e.minTranslate() : 0) - u) / (f.swiperSlideSize + o), w = -(d - u), a = w + e.slidesSizesGrid[c], l = w >= 0 && w <= e.size - e.slidesSizesGrid[c], S = w >= 0 && w < e.size - 1 || a > 1 && a <= e.size || w <= 0 && a >= e.size;
1600
+ S && (e.visibleSlides.push(f), e.visibleSlidesIndexes.push(c)), Qe(f, S, i.slideVisibleClass), Qe(f, l, i.slideFullyVisibleClass), f.progress = r ? -m : m, f.originalProgress = r ? -v : v;
1606
1601
  }
1607
1602
  }
1608
- function Ut(t) {
1603
+ function qt(t) {
1609
1604
  const e = this;
1610
1605
  if (typeof t > "u") {
1611
- const p = e.rtlTranslate ? -1 : 1;
1612
- t = e && e.translate && e.translate * p || 0;
1606
+ const u = e.rtlTranslate ? -1 : 1;
1607
+ t = e && e.translate && e.translate * u || 0;
1613
1608
  }
1614
1609
  const i = e.params, s = e.maxTranslate() - e.minTranslate();
1615
1610
  let {
1616
- progress: n,
1617
- isBeginning: r,
1611
+ progress: r,
1612
+ isBeginning: n,
1618
1613
  isEnd: d,
1619
1614
  progressLoop: o
1620
1615
  } = e;
1621
- const c = r, f = d;
1616
+ const c = n, f = d;
1622
1617
  if (s === 0)
1623
- n = 0, r = true, d = true;
1618
+ r = 0, n = true, d = true;
1624
1619
  else {
1625
- n = (t - e.minTranslate()) / s;
1626
- const p = Math.abs(t - e.minTranslate()) < 1, m = Math.abs(t - e.maxTranslate()) < 1;
1627
- r = p || n <= 0, d = m || n >= 1, p && (n = 0), m && (n = 1);
1620
+ r = (t - e.minTranslate()) / s;
1621
+ const u = Math.abs(t - e.minTranslate()) < 1, m = Math.abs(t - e.maxTranslate()) < 1;
1622
+ n = u || r <= 0, d = m || r >= 1, u && (r = 0), m && (r = 1);
1628
1623
  }
1629
1624
  if (i.loop) {
1630
- const p = e.getSlideIndexByData(0), m = e.getSlideIndexByData(e.slides.length - 1), v = e.slidesGrid[p], w = e.slidesGrid[m], a = e.slidesGrid[e.slidesGrid.length - 1], l = Math.abs(t);
1625
+ const u = e.getSlideIndexByData(0), m = e.getSlideIndexByData(e.slides.length - 1), v = e.slidesGrid[u], w = e.slidesGrid[m], a = e.slidesGrid[e.slidesGrid.length - 1], l = Math.abs(t);
1631
1626
  l >= v ? o = (l - v) / a : o = (l + a - w) / a, o > 1 && (o -= 1);
1632
1627
  }
1633
1628
  Object.assign(e, {
1634
- progress: n,
1629
+ progress: r,
1635
1630
  progressLoop: o,
1636
- isBeginning: r,
1631
+ isBeginning: n,
1637
1632
  isEnd: d
1638
- }), (i.watchSlidesProgress || i.centeredSlides && i.autoHeight) && e.updateSlidesProgress(t), r && !c && e.emit("reachBeginning toEdge"), d && !f && e.emit("reachEnd toEdge"), (c && !r || f && !d) && e.emit("fromEdge"), e.emit("progress", n);
1633
+ }), (i.watchSlidesProgress || i.centeredSlides && i.autoHeight) && e.updateSlidesProgress(t), n && !c && e.emit("reachBeginning toEdge"), d && !f && e.emit("reachEnd toEdge"), (c && !n || f && !d) && e.emit("fromEdge"), e.emit("progress", r);
1639
1634
  }
1640
- const Ye = (t, e, i) => {
1635
+ const Be = (t, e, i) => {
1641
1636
  e && !t.classList.contains(i) ? t.classList.add(i) : !e && t.classList.contains(i) && t.classList.remove(i);
1642
1637
  };
1643
- function Kt() {
1638
+ function Ut() {
1644
1639
  const t = this, {
1645
1640
  slides: e,
1646
1641
  params: i,
1647
1642
  slidesEl: s,
1648
- activeIndex: n
1649
- } = t, r = t.virtual && i.virtual.enabled, d = t.grid && i.grid && i.grid.rows > 1, o = (m) => q(s, `.${i.slideClass}${m}, swiper-slide${m}`)[0];
1650
- let c, f, p;
1651
- if (r)
1643
+ activeIndex: r
1644
+ } = t, n = t.virtual && i.virtual.enabled, d = t.grid && i.grid && i.grid.rows > 1, o = (m) => q(s, `.${i.slideClass}${m}, swiper-slide${m}`)[0];
1645
+ let c, f, u;
1646
+ if (n)
1652
1647
  if (i.loop) {
1653
- let m = n - t.virtual.slidesBefore;
1648
+ let m = r - t.virtual.slidesBefore;
1654
1649
  m < 0 && (m = t.virtual.slides.length + m), m >= t.virtual.slides.length && (m -= t.virtual.slides.length), c = o(`[data-swiper-slide-index="${m}"]`);
1655
1650
  } else
1656
- c = o(`[data-swiper-slide-index="${n}"]`);
1651
+ c = o(`[data-swiper-slide-index="${r}"]`);
1657
1652
  else
1658
- d ? (c = e.find((m) => m.column === n), p = e.find((m) => m.column === n + 1), f = e.find((m) => m.column === n - 1)) : c = e[n];
1659
- c && (d || (p = At(c, `.${i.slideClass}, swiper-slide`)[0], i.loop && !p && (p = e[0]), f = Ot(c, `.${i.slideClass}, swiper-slide`)[0], i.loop && !f === 0 && (f = e[e.length - 1]))), e.forEach((m) => {
1660
- Ye(m, m === c, i.slideActiveClass), Ye(m, m === p, i.slideNextClass), Ye(m, m === f, i.slidePrevClass);
1653
+ d ? (c = e.find((m) => m.column === r), u = e.find((m) => m.column === r + 1), f = e.find((m) => m.column === r - 1)) : c = e[r];
1654
+ c && (d || (u = Ot(c, `.${i.slideClass}, swiper-slide`)[0], i.loop && !u && (u = e[0]), f = It(c, `.${i.slideClass}, swiper-slide`)[0], i.loop && !f === 0 && (f = e[e.length - 1]))), e.forEach((m) => {
1655
+ Be(m, m === c, i.slideActiveClass), Be(m, m === u, i.slideNextClass), Be(m, m === f, i.slidePrevClass);
1661
1656
  }), t.emitSlidesClasses();
1662
1657
  }
1663
- const Ce = (t, e) => {
1658
+ const Te = (t, e) => {
1664
1659
  if (!t || t.destroyed || !t.params) return;
1665
1660
  const i = () => t.isElement ? "swiper-slide" : `.${t.params.slideClass}`, s = e.closest(i());
1666
1661
  if (s) {
1667
- let n = s.querySelector(`.${t.params.lazyPreloaderClass}`);
1668
- !n && t.isElement && (s.shadowRoot ? n = s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`) : requestAnimationFrame(() => {
1669
- s.shadowRoot && (n = s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`), n && n.remove());
1670
- })), n && n.remove();
1662
+ let r = s.querySelector(`.${t.params.lazyPreloaderClass}`);
1663
+ !r && t.isElement && (s.shadowRoot ? r = s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`) : requestAnimationFrame(() => {
1664
+ s.shadowRoot && (r = s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`), r && r.remove());
1665
+ })), r && r.remove();
1671
1666
  }
1672
- }, Xe = (t, e) => {
1667
+ }, Ye = (t, e) => {
1673
1668
  if (!t.slides[e]) return;
1674
1669
  const i = t.slides[e].querySelector('[loading="lazy"]');
1675
1670
  i && i.removeAttribute("loading");
1676
- }, He = (t) => {
1671
+ }, Ne = (t) => {
1677
1672
  if (!t || t.destroyed || !t.params) return;
1678
1673
  let e = t.params.lazyPreloadPrevNext;
1679
1674
  const i = t.slides.length;
1680
1675
  if (!i || !e || e < 0) return;
1681
1676
  e = Math.min(e, i);
1682
- const s = t.params.slidesPerView === "auto" ? t.slidesPerViewDynamic() : Math.ceil(t.params.slidesPerView), n = t.activeIndex;
1677
+ const s = t.params.slidesPerView === "auto" ? t.slidesPerViewDynamic() : Math.ceil(t.params.slidesPerView), r = t.activeIndex;
1683
1678
  if (t.params.grid && t.params.grid.rows > 1) {
1684
- const d = n, o = [d - e];
1679
+ const d = r, o = [d - e];
1685
1680
  o.push(...Array.from({
1686
1681
  length: e
1687
1682
  }).map((c, f) => d + s + f)), t.slides.forEach((c, f) => {
1688
- o.includes(c.column) && Xe(t, f);
1683
+ o.includes(c.column) && Ye(t, f);
1689
1684
  });
1690
1685
  return;
1691
1686
  }
1692
- const r = n + s - 1;
1687
+ const n = r + s - 1;
1693
1688
  if (t.params.rewind || t.params.loop)
1694
- for (let d = n - e; d <= r + e; d += 1) {
1689
+ for (let d = r - e; d <= n + e; d += 1) {
1695
1690
  const o = (d % i + i) % i;
1696
- (o < n || o > r) && Xe(t, o);
1691
+ (o < r || o > n) && Ye(t, o);
1697
1692
  }
1698
1693
  else
1699
- for (let d = Math.max(n - e, 0); d <= Math.min(r + e, i - 1); d += 1)
1700
- d !== n && (d > r || d < n) && Xe(t, d);
1694
+ for (let d = Math.max(r - e, 0); d <= Math.min(n + e, i - 1); d += 1)
1695
+ d !== r && (d > n || d < r) && Ye(t, d);
1701
1696
  };
1702
- function Zt(t) {
1697
+ function Kt(t) {
1703
1698
  const {
1704
1699
  slidesGrid: e,
1705
1700
  params: i
1706
1701
  } = t, s = t.rtlTranslate ? t.translate : -t.translate;
1707
- let n;
1708
- for (let r = 0; r < e.length; r += 1)
1709
- typeof e[r + 1] < "u" ? s >= e[r] && s < e[r + 1] - (e[r + 1] - e[r]) / 2 ? n = r : s >= e[r] && s < e[r + 1] && (n = r + 1) : s >= e[r] && (n = r);
1710
- return i.normalizeSlideIndex && (n < 0 || typeof n > "u") && (n = 0), n;
1702
+ let r;
1703
+ for (let n = 0; n < e.length; n += 1)
1704
+ typeof e[n + 1] < "u" ? s >= e[n] && s < e[n + 1] - (e[n + 1] - e[n]) / 2 ? r = n : s >= e[n] && s < e[n + 1] && (r = n + 1) : s >= e[n] && (r = n);
1705
+ return i.normalizeSlideIndex && (r < 0 || typeof r > "u") && (r = 0), r;
1711
1706
  }
1712
- function Qt(t) {
1707
+ function Zt(t) {
1713
1708
  const e = this, i = e.rtlTranslate ? e.translate : -e.translate, {
1714
1709
  snapGrid: s,
1715
- params: n,
1716
- activeIndex: r,
1710
+ params: r,
1711
+ activeIndex: n,
1717
1712
  realIndex: d,
1718
1713
  snapIndex: o
1719
1714
  } = e;
1720
1715
  let c = t, f;
1721
- const p = (w) => {
1716
+ const u = (w) => {
1722
1717
  let a = w - e.virtual.slidesBefore;
1723
1718
  return a < 0 && (a = e.virtual.slides.length + a), a >= e.virtual.slides.length && (a -= e.virtual.slides.length), a;
1724
1719
  };
1725
- if (typeof c > "u" && (c = Zt(e)), s.indexOf(i) >= 0)
1720
+ if (typeof c > "u" && (c = Kt(e)), s.indexOf(i) >= 0)
1726
1721
  f = s.indexOf(i);
1727
1722
  else {
1728
- const w = Math.min(n.slidesPerGroupSkip, c);
1729
- f = w + Math.floor((c - w) / n.slidesPerGroup);
1723
+ const w = Math.min(r.slidesPerGroupSkip, c);
1724
+ f = w + Math.floor((c - w) / r.slidesPerGroup);
1730
1725
  }
1731
- if (f >= s.length && (f = s.length - 1), c === r && !e.params.loop) {
1726
+ if (f >= s.length && (f = s.length - 1), c === n && !e.params.loop) {
1732
1727
  f !== o && (e.snapIndex = f, e.emit("snapIndexChange"));
1733
1728
  return;
1734
1729
  }
1735
- if (c === r && e.params.loop && e.virtual && e.params.virtual.enabled) {
1736
- e.realIndex = p(c);
1730
+ if (c === n && e.params.loop && e.virtual && e.params.virtual.enabled) {
1731
+ e.realIndex = u(c);
1737
1732
  return;
1738
1733
  }
1739
- const m = e.grid && n.grid && n.grid.rows > 1;
1734
+ const m = e.grid && r.grid && r.grid.rows > 1;
1740
1735
  let v;
1741
- if (e.virtual && n.virtual.enabled && n.loop)
1742
- v = p(c);
1736
+ if (e.virtual && r.virtual.enabled && r.loop)
1737
+ v = u(c);
1743
1738
  else if (m) {
1744
1739
  const w = e.slides.find((l) => l.column === c);
1745
1740
  let a = parseInt(w.getAttribute("data-swiper-slide-index"), 10);
1746
- Number.isNaN(a) && (a = Math.max(e.slides.indexOf(w), 0)), v = Math.floor(a / n.grid.rows);
1741
+ Number.isNaN(a) && (a = Math.max(e.slides.indexOf(w), 0)), v = Math.floor(a / r.grid.rows);
1747
1742
  } else if (e.slides[c]) {
1748
1743
  const w = e.slides[c].getAttribute("data-swiper-slide-index");
1749
1744
  w ? v = parseInt(w, 10) : v = c;
@@ -1754,184 +1749,190 @@ function Qt(t) {
1754
1749
  snapIndex: f,
1755
1750
  previousRealIndex: d,
1756
1751
  realIndex: v,
1757
- previousIndex: r,
1752
+ previousIndex: n,
1758
1753
  activeIndex: c
1759
- }), e.initialized && He(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (d !== v && e.emit("realIndexChange"), e.emit("slideChange"));
1754
+ }), e.initialized && Ne(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (d !== v && e.emit("realIndexChange"), e.emit("slideChange"));
1760
1755
  }
1761
- function Jt(t, e) {
1756
+ function Qt(t, e) {
1762
1757
  const i = this, s = i.params;
1763
- let n = t.closest(`.${s.slideClass}, swiper-slide`);
1764
- !n && i.isElement && e && e.length > 1 && e.includes(t) && [...e.slice(e.indexOf(t) + 1, e.length)].forEach((o) => {
1765
- !n && o.matches && o.matches(`.${s.slideClass}, swiper-slide`) && (n = o);
1758
+ let r = t.closest(`.${s.slideClass}, swiper-slide`);
1759
+ !r && i.isElement && e && e.length > 1 && e.includes(t) && [...e.slice(e.indexOf(t) + 1, e.length)].forEach((o) => {
1760
+ !r && o.matches && o.matches(`.${s.slideClass}, swiper-slide`) && (r = o);
1766
1761
  });
1767
- let r = false, d;
1768
- if (n) {
1762
+ let n = false, d;
1763
+ if (r) {
1769
1764
  for (let o = 0; o < i.slides.length; o += 1)
1770
- if (i.slides[o] === n) {
1771
- r = true, d = o;
1765
+ if (i.slides[o] === r) {
1766
+ n = true, d = o;
1772
1767
  break;
1773
1768
  }
1774
1769
  }
1775
- if (n && r)
1776
- i.clickedSlide = n, i.virtual && i.params.virtual.enabled ? i.clickedIndex = parseInt(n.getAttribute("data-swiper-slide-index"), 10) : i.clickedIndex = d;
1770
+ if (r && n)
1771
+ i.clickedSlide = r, i.virtual && i.params.virtual.enabled ? i.clickedIndex = parseInt(r.getAttribute("data-swiper-slide-index"), 10) : i.clickedIndex = d;
1777
1772
  else {
1778
1773
  i.clickedSlide = void 0, i.clickedIndex = void 0;
1779
1774
  return;
1780
1775
  }
1781
1776
  s.slideToClickedSlide && i.clickedIndex !== void 0 && i.clickedIndex !== i.activeIndex && i.slideToClickedSlide();
1782
1777
  }
1783
- var ei = {
1784
- updateSize: Nt,
1778
+ var Jt = {
1779
+ updateSize: kt,
1785
1780
  updateSlides: Ht,
1786
- updateAutoHeight: Ft,
1787
- updateSlidesOffset: jt,
1788
- updateSlidesProgress: qt,
1789
- updateProgress: Ut,
1790
- updateSlidesClasses: Kt,
1791
- updateActiveIndex: Qt,
1792
- updateClickedSlide: Jt
1781
+ updateAutoHeight: Nt,
1782
+ updateSlidesOffset: Ft,
1783
+ updateSlidesProgress: jt,
1784
+ updateProgress: qt,
1785
+ updateSlidesClasses: Ut,
1786
+ updateActiveIndex: Zt,
1787
+ updateClickedSlide: Qt
1793
1788
  };
1794
- function ti(t) {
1789
+ function ei(t) {
1795
1790
  t === void 0 && (t = this.isHorizontal() ? "x" : "y");
1796
1791
  const e = this, {
1797
1792
  params: i,
1798
1793
  rtlTranslate: s,
1799
- translate: n,
1800
- wrapperEl: r
1794
+ translate: r,
1795
+ wrapperEl: n
1801
1796
  } = e;
1802
1797
  if (i.virtualTranslate)
1803
- return s ? -n : n;
1798
+ return s ? -r : r;
1804
1799
  if (i.cssMode)
1805
- return n;
1806
- let d = We(r, t);
1800
+ return r;
1801
+ let d = We(n, t);
1807
1802
  return d += e.cssOverflowAdjustment(), s && (d = -d), d || 0;
1808
1803
  }
1809
- function ii(t, e) {
1804
+ function ti(t, e) {
1810
1805
  const i = this, {
1811
1806
  rtlTranslate: s,
1812
- params: n,
1813
- wrapperEl: r,
1807
+ params: r,
1808
+ wrapperEl: n,
1814
1809
  progress: d
1815
1810
  } = i;
1816
1811
  let o = 0, c = 0;
1817
1812
  const f = 0;
1818
- i.isHorizontal() ? o = s ? -t : t : c = t, n.roundLengths && (o = Math.floor(o), c = Math.floor(c)), i.previousTranslate = i.translate, i.translate = i.isHorizontal() ? o : c, n.cssMode ? r[i.isHorizontal() ? "scrollLeft" : "scrollTop"] = i.isHorizontal() ? -o : -c : n.virtualTranslate || (i.isHorizontal() ? o -= i.cssOverflowAdjustment() : c -= i.cssOverflowAdjustment(), r.style.transform = `translate3d(${o}px, ${c}px, ${f}px)`);
1819
- let p;
1813
+ i.isHorizontal() ? o = s ? -t : t : c = t, r.roundLengths && (o = Math.floor(o), c = Math.floor(c)), i.previousTranslate = i.translate, i.translate = i.isHorizontal() ? o : c, r.cssMode ? n[i.isHorizontal() ? "scrollLeft" : "scrollTop"] = i.isHorizontal() ? -o : -c : r.virtualTranslate || (i.isHorizontal() ? o -= i.cssOverflowAdjustment() : c -= i.cssOverflowAdjustment(), n.style.transform = `translate3d(${o}px, ${c}px, ${f}px)`);
1814
+ let u;
1820
1815
  const m = i.maxTranslate() - i.minTranslate();
1821
- m === 0 ? p = 0 : p = (t - i.minTranslate()) / m, p !== d && i.updateProgress(t), i.emit("setTranslate", i.translate, e);
1816
+ m === 0 ? u = 0 : u = (t - i.minTranslate()) / m, u !== d && i.updateProgress(t), i.emit("setTranslate", i.translate, e);
1822
1817
  }
1823
- function si() {
1818
+ function ii() {
1824
1819
  return -this.snapGrid[0];
1825
1820
  }
1826
- function ri() {
1821
+ function si() {
1827
1822
  return -this.snapGrid[this.snapGrid.length - 1];
1828
1823
  }
1829
- function ni(t, e, i, s, n) {
1824
+ function ni(t, e, i, s, r) {
1830
1825
  t === void 0 && (t = 0), e === void 0 && (e = this.params.speed), i === void 0 && (i = true), s === void 0 && (s = true);
1831
- const r = this, {
1826
+ const n = this, {
1832
1827
  params: d,
1833
1828
  wrapperEl: o
1834
- } = r;
1835
- if (r.animating && d.preventInteractionOnTransition)
1829
+ } = n;
1830
+ if (n.animating && d.preventInteractionOnTransition)
1836
1831
  return false;
1837
- const c = r.minTranslate(), f = r.maxTranslate();
1838
- let p;
1839
- if (s && t > c ? p = c : s && t < f ? p = f : p = t, r.updateProgress(p), d.cssMode) {
1840
- const m = r.isHorizontal();
1832
+ const c = n.minTranslate(), f = n.maxTranslate();
1833
+ let u;
1834
+ if (s && t > c ? u = c : s && t < f ? u = f : u = t, n.updateProgress(u), d.cssMode) {
1835
+ const m = n.isHorizontal();
1841
1836
  if (e === 0)
1842
- o[m ? "scrollLeft" : "scrollTop"] = -p;
1837
+ o[m ? "scrollLeft" : "scrollTop"] = -u;
1843
1838
  else {
1844
- if (!r.support.smoothScroll)
1839
+ if (!n.support.smoothScroll)
1845
1840
  return nt({
1846
- swiper: r,
1847
- targetPosition: -p,
1841
+ swiper: n,
1842
+ targetPosition: -u,
1848
1843
  side: m ? "left" : "top"
1849
1844
  }), true;
1850
1845
  o.scrollTo({
1851
- [m ? "left" : "top"]: -p,
1846
+ [m ? "left" : "top"]: -u,
1852
1847
  behavior: "smooth"
1853
1848
  });
1854
1849
  }
1855
1850
  return true;
1856
1851
  }
1857
- return e === 0 ? (r.setTransition(0), r.setTranslate(p), i && (r.emit("beforeTransitionStart", e, n), r.emit("transitionEnd"))) : (r.setTransition(e), r.setTranslate(p), i && (r.emit("beforeTransitionStart", e, n), r.emit("transitionStart")), r.animating || (r.animating = true, r.onTranslateToWrapperTransitionEnd || (r.onTranslateToWrapperTransitionEnd = function(v) {
1858
- !r || r.destroyed || v.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onTranslateToWrapperTransitionEnd), r.onTranslateToWrapperTransitionEnd = null, delete r.onTranslateToWrapperTransitionEnd, r.animating = false, i && r.emit("transitionEnd"));
1859
- }), r.wrapperEl.addEventListener("transitionend", r.onTranslateToWrapperTransitionEnd))), true;
1852
+ return e === 0 ? (n.setTransition(0), n.setTranslate(u), i && (n.emit("beforeTransitionStart", e, r), n.emit("transitionEnd"))) : (n.setTransition(e), n.setTranslate(u), i && (n.emit("beforeTransitionStart", e, r), n.emit("transitionStart")), n.animating || (n.animating = true, n.onTranslateToWrapperTransitionEnd || (n.onTranslateToWrapperTransitionEnd = function(v) {
1853
+ !n || n.destroyed || v.target === this && (n.wrapperEl.removeEventListener("transitionend", n.onTranslateToWrapperTransitionEnd), n.onTranslateToWrapperTransitionEnd = null, delete n.onTranslateToWrapperTransitionEnd, n.animating = false, i && n.emit("transitionEnd"));
1854
+ }), n.wrapperEl.addEventListener("transitionend", n.onTranslateToWrapperTransitionEnd))), true;
1860
1855
  }
1861
- var ai = {
1862
- getTranslate: ti,
1863
- setTranslate: ii,
1864
- minTranslate: si,
1865
- maxTranslate: ri,
1856
+ var ri = {
1857
+ getTranslate: ei,
1858
+ setTranslate: ti,
1859
+ minTranslate: ii,
1860
+ maxTranslate: si,
1866
1861
  translateTo: ni
1867
1862
  };
1868
- function li(t, e) {
1863
+ function ai(t, e) {
1869
1864
  const i = this;
1870
1865
  i.params.cssMode || (i.wrapperEl.style.transitionDuration = `${t}ms`, i.wrapperEl.style.transitionDelay = t === 0 ? "0ms" : ""), i.emit("setTransition", t, e);
1871
1866
  }
1872
- function ct(t) {
1867
+ function dt(t) {
1873
1868
  let {
1874
1869
  swiper: e,
1875
1870
  runCallbacks: i,
1876
1871
  direction: s,
1877
- step: n
1872
+ step: r
1878
1873
  } = t;
1879
1874
  const {
1880
- activeIndex: r,
1875
+ activeIndex: n,
1881
1876
  previousIndex: d
1882
1877
  } = e;
1883
1878
  let o = s;
1884
- o || (r > d ? o = "next" : r < d ? o = "prev" : o = "reset"), e.emit(`transition${n}`), i && o === "reset" ? e.emit(`slideResetTransition${n}`) : i && r !== d && (e.emit(`slideChangeTransition${n}`), o === "next" ? e.emit(`slideNextTransition${n}`) : e.emit(`slidePrevTransition${n}`));
1879
+ if (o || (n > d ? o = "next" : n < d ? o = "prev" : o = "reset"), e.emit(`transition${r}`), i && n !== d) {
1880
+ if (o === "reset") {
1881
+ e.emit(`slideResetTransition${r}`);
1882
+ return;
1883
+ }
1884
+ e.emit(`slideChangeTransition${r}`), o === "next" ? e.emit(`slideNextTransition${r}`) : e.emit(`slidePrevTransition${r}`);
1885
+ }
1885
1886
  }
1886
- function oi(t, e) {
1887
+ function li(t, e) {
1887
1888
  t === void 0 && (t = true);
1888
1889
  const i = this, {
1889
1890
  params: s
1890
1891
  } = i;
1891
- s.cssMode || (s.autoHeight && i.updateAutoHeight(), ct({
1892
+ s.cssMode || (s.autoHeight && i.updateAutoHeight(), dt({
1892
1893
  swiper: i,
1893
1894
  runCallbacks: t,
1894
1895
  direction: e,
1895
1896
  step: "Start"
1896
1897
  }));
1897
1898
  }
1898
- function di(t, e) {
1899
+ function oi(t, e) {
1899
1900
  t === void 0 && (t = true);
1900
1901
  const i = this, {
1901
1902
  params: s
1902
1903
  } = i;
1903
- i.animating = false, !s.cssMode && (i.setTransition(0), ct({
1904
+ i.animating = false, !s.cssMode && (i.setTransition(0), dt({
1904
1905
  swiper: i,
1905
1906
  runCallbacks: t,
1906
1907
  direction: e,
1907
1908
  step: "End"
1908
1909
  }));
1909
1910
  }
1910
- var ci = {
1911
- setTransition: li,
1912
- transitionStart: oi,
1913
- transitionEnd: di
1911
+ var di = {
1912
+ setTransition: ai,
1913
+ transitionStart: li,
1914
+ transitionEnd: oi
1914
1915
  };
1915
- function fi(t, e, i, s, n) {
1916
+ function ci(t, e, i, s, r) {
1916
1917
  t === void 0 && (t = 0), i === void 0 && (i = true), typeof t == "string" && (t = parseInt(t, 10));
1917
- const r = this;
1918
+ const n = this;
1918
1919
  let d = t;
1919
1920
  d < 0 && (d = 0);
1920
1921
  const {
1921
1922
  params: o,
1922
1923
  snapGrid: c,
1923
1924
  slidesGrid: f,
1924
- previousIndex: p,
1925
+ previousIndex: u,
1925
1926
  activeIndex: m,
1926
1927
  rtlTranslate: v,
1927
1928
  wrapperEl: w,
1928
1929
  enabled: a
1929
- } = r;
1930
- if (!a && !s && !n || r.destroyed || r.animating && o.preventInteractionOnTransition)
1930
+ } = n;
1931
+ if (!a && !s && !r || n.destroyed || n.animating && o.preventInteractionOnTransition)
1931
1932
  return false;
1932
- typeof e > "u" && (e = r.params.speed);
1933
- const l = Math.min(r.params.slidesPerGroupSkip, d);
1934
- let S = l + Math.floor((d - l) / r.params.slidesPerGroup);
1933
+ typeof e > "u" && (e = n.params.speed);
1934
+ const l = Math.min(n.params.slidesPerGroupSkip, d);
1935
+ let S = l + Math.floor((d - l) / n.params.slidesPerGroup);
1935
1936
  S >= c.length && (S = c.length - 1);
1936
1937
  const g = -c[S];
1937
1938
  if (o.normalizeSlideIndex)
@@ -1939,26 +1940,26 @@ function fi(t, e, i, s, n) {
1939
1940
  const z = -Math.floor(g * 100), y = Math.floor(f[I] * 100), T = Math.floor(f[I + 1] * 100);
1940
1941
  typeof f[I + 1] < "u" ? z >= y && z < T - (T - y) / 2 ? d = I : z >= y && z < T && (d = I + 1) : z >= y && (d = I);
1941
1942
  }
1942
- if (r.initialized && d !== m && (!r.allowSlideNext && (v ? g > r.translate && g > r.minTranslate() : g < r.translate && g < r.minTranslate()) || !r.allowSlidePrev && g > r.translate && g > r.maxTranslate() && (m || 0) !== d))
1943
+ if (n.initialized && d !== m && (!n.allowSlideNext && (v ? g > n.translate && g > n.minTranslate() : g < n.translate && g < n.minTranslate()) || !n.allowSlidePrev && g > n.translate && g > n.maxTranslate() && (m || 0) !== d))
1943
1944
  return false;
1944
- d !== (p || 0) && i && r.emit("beforeSlideChangeStart"), r.updateProgress(g);
1945
- let u;
1946
- d > m ? u = "next" : d < m ? u = "prev" : u = "reset";
1947
- const h = r.virtual && r.params.virtual.enabled;
1948
- if (!(h && n) && (v && -g === r.translate || !v && g === r.translate))
1949
- return r.updateActiveIndex(d), o.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), o.effect !== "slide" && r.setTranslate(g), u !== "reset" && (r.transitionStart(i, u), r.transitionEnd(i, u)), false;
1945
+ d !== (u || 0) && i && n.emit("beforeSlideChangeStart"), n.updateProgress(g);
1946
+ let p;
1947
+ d > m ? p = "next" : d < m ? p = "prev" : p = "reset";
1948
+ const h = n.virtual && n.params.virtual.enabled;
1949
+ if (!(h && r) && (v && -g === n.translate || !v && g === n.translate))
1950
+ return n.updateActiveIndex(d), o.autoHeight && n.updateAutoHeight(), n.updateSlidesClasses(), o.effect !== "slide" && n.setTranslate(g), p !== "reset" && (n.transitionStart(i, p), n.transitionEnd(i, p)), false;
1950
1951
  if (o.cssMode) {
1951
- const I = r.isHorizontal(), z = v ? g : -g;
1952
+ const I = n.isHorizontal(), z = v ? g : -g;
1952
1953
  if (e === 0)
1953
- h && (r.wrapperEl.style.scrollSnapType = "none", r._immediateVirtual = true), h && !r._cssModeVirtualInitialSet && r.params.initialSlide > 0 ? (r._cssModeVirtualInitialSet = true, requestAnimationFrame(() => {
1954
+ h && (n.wrapperEl.style.scrollSnapType = "none", n._immediateVirtual = true), h && !n._cssModeVirtualInitialSet && n.params.initialSlide > 0 ? (n._cssModeVirtualInitialSet = true, requestAnimationFrame(() => {
1954
1955
  w[I ? "scrollLeft" : "scrollTop"] = z;
1955
1956
  })) : w[I ? "scrollLeft" : "scrollTop"] = z, h && requestAnimationFrame(() => {
1956
- r.wrapperEl.style.scrollSnapType = "", r._immediateVirtual = false;
1957
+ n.wrapperEl.style.scrollSnapType = "", n._immediateVirtual = false;
1957
1958
  });
1958
1959
  else {
1959
- if (!r.support.smoothScroll)
1960
+ if (!n.support.smoothScroll)
1960
1961
  return nt({
1961
- swiper: r,
1962
+ swiper: n,
1962
1963
  targetPosition: z,
1963
1964
  side: I ? "left" : "top"
1964
1965
  }), true;
@@ -1969,81 +1970,81 @@ function fi(t, e, i, s, n) {
1969
1970
  }
1970
1971
  return true;
1971
1972
  }
1972
- const L = dt().isSafari;
1973
- return h && !n && L && r.isElement && r.virtual.update(false, false, d), r.setTransition(e), r.setTranslate(g), r.updateActiveIndex(d), r.updateSlidesClasses(), r.emit("beforeTransitionStart", e, s), r.transitionStart(i, u), e === 0 ? r.transitionEnd(i, u) : r.animating || (r.animating = true, r.onSlideToWrapperTransitionEnd || (r.onSlideToWrapperTransitionEnd = function(z) {
1974
- !r || r.destroyed || z.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.onSlideToWrapperTransitionEnd = null, delete r.onSlideToWrapperTransitionEnd, r.transitionEnd(i, u));
1975
- }), r.wrapperEl.addEventListener("transitionend", r.onSlideToWrapperTransitionEnd)), true;
1973
+ const L = ot().isSafari;
1974
+ return h && !r && L && n.isElement && n.virtual.update(false, false, d), n.setTransition(e), n.setTranslate(g), n.updateActiveIndex(d), n.updateSlidesClasses(), n.emit("beforeTransitionStart", e, s), n.transitionStart(i, p), e === 0 ? n.transitionEnd(i, p) : n.animating || (n.animating = true, n.onSlideToWrapperTransitionEnd || (n.onSlideToWrapperTransitionEnd = function(z) {
1975
+ !n || n.destroyed || z.target === this && (n.wrapperEl.removeEventListener("transitionend", n.onSlideToWrapperTransitionEnd), n.onSlideToWrapperTransitionEnd = null, delete n.onSlideToWrapperTransitionEnd, n.transitionEnd(i, p));
1976
+ }), n.wrapperEl.addEventListener("transitionend", n.onSlideToWrapperTransitionEnd)), true;
1976
1977
  }
1977
- function ui(t, e, i, s) {
1978
+ function fi(t, e, i, s) {
1978
1979
  t === void 0 && (t = 0), i === void 0 && (i = true), typeof t == "string" && (t = parseInt(t, 10));
1979
- const n = this;
1980
- if (n.destroyed) return;
1981
- typeof e > "u" && (e = n.params.speed);
1982
- const r = n.grid && n.params.grid && n.params.grid.rows > 1;
1980
+ const r = this;
1981
+ if (r.destroyed) return;
1982
+ typeof e > "u" && (e = r.params.speed);
1983
+ const n = r.grid && r.params.grid && r.params.grid.rows > 1;
1983
1984
  let d = t;
1984
- if (n.params.loop)
1985
- if (n.virtual && n.params.virtual.enabled)
1986
- d = d + n.virtual.slidesBefore;
1985
+ if (r.params.loop)
1986
+ if (r.virtual && r.params.virtual.enabled)
1987
+ d = d + r.virtual.slidesBefore;
1987
1988
  else {
1988
1989
  let o;
1989
- if (r) {
1990
- const v = d * n.params.grid.rows;
1991
- o = n.slides.find((w) => w.getAttribute("data-swiper-slide-index") * 1 === v).column;
1990
+ if (n) {
1991
+ const v = d * r.params.grid.rows;
1992
+ o = r.slides.find((w) => w.getAttribute("data-swiper-slide-index") * 1 === v).column;
1992
1993
  } else
1993
- o = n.getSlideIndexByData(d);
1994
- const c = r ? Math.ceil(n.slides.length / n.params.grid.rows) : n.slides.length, {
1994
+ o = r.getSlideIndexByData(d);
1995
+ const c = n ? Math.ceil(r.slides.length / r.params.grid.rows) : r.slides.length, {
1995
1996
  centeredSlides: f
1996
- } = n.params;
1997
- let p = n.params.slidesPerView;
1998
- p === "auto" ? p = n.slidesPerViewDynamic() : (p = Math.ceil(parseFloat(n.params.slidesPerView, 10)), f && p % 2 === 0 && (p = p + 1));
1999
- let m = c - o < p;
2000
- if (f && (m = m || o < Math.ceil(p / 2)), s && f && n.params.slidesPerView !== "auto" && !r && (m = false), m) {
2001
- const v = f ? o < n.activeIndex ? "prev" : "next" : o - n.activeIndex - 1 < n.params.slidesPerView ? "next" : "prev";
2002
- n.loopFix({
1997
+ } = r.params;
1998
+ let u = r.params.slidesPerView;
1999
+ u === "auto" ? u = r.slidesPerViewDynamic() : (u = Math.ceil(parseFloat(r.params.slidesPerView, 10)), f && u % 2 === 0 && (u = u + 1));
2000
+ let m = c - o < u;
2001
+ if (f && (m = m || o < Math.ceil(u / 2)), s && f && r.params.slidesPerView !== "auto" && !n && (m = false), m) {
2002
+ const v = f ? o < r.activeIndex ? "prev" : "next" : o - r.activeIndex - 1 < r.params.slidesPerView ? "next" : "prev";
2003
+ r.loopFix({
2003
2004
  direction: v,
2004
2005
  slideTo: true,
2005
2006
  activeSlideIndex: v === "next" ? o + 1 : o - c + 1,
2006
- slideRealIndex: v === "next" ? n.realIndex : void 0
2007
+ slideRealIndex: v === "next" ? r.realIndex : void 0
2007
2008
  });
2008
2009
  }
2009
- if (r) {
2010
- const v = d * n.params.grid.rows;
2011
- d = n.slides.find((w) => w.getAttribute("data-swiper-slide-index") * 1 === v).column;
2010
+ if (n) {
2011
+ const v = d * r.params.grid.rows;
2012
+ d = r.slides.find((w) => w.getAttribute("data-swiper-slide-index") * 1 === v).column;
2012
2013
  } else
2013
- d = n.getSlideIndexByData(d);
2014
+ d = r.getSlideIndexByData(d);
2014
2015
  }
2015
2016
  return requestAnimationFrame(() => {
2016
- n.slideTo(d, e, i, s);
2017
- }), n;
2017
+ r.slideTo(d, e, i, s);
2018
+ }), r;
2018
2019
  }
2019
- function pi(t, e, i) {
2020
+ function ui(t, e, i) {
2020
2021
  e === void 0 && (e = true);
2021
2022
  const s = this, {
2022
- enabled: n,
2023
- params: r,
2023
+ enabled: r,
2024
+ params: n,
2024
2025
  animating: d
2025
2026
  } = s;
2026
- if (!n || s.destroyed) return s;
2027
+ if (!r || s.destroyed) return s;
2027
2028
  typeof t > "u" && (t = s.params.speed);
2028
- let o = r.slidesPerGroup;
2029
- r.slidesPerView === "auto" && r.slidesPerGroup === 1 && r.slidesPerGroupAuto && (o = Math.max(s.slidesPerViewDynamic("current", true), 1));
2030
- const c = s.activeIndex < r.slidesPerGroupSkip ? 1 : o, f = s.virtual && r.virtual.enabled;
2031
- if (r.loop) {
2032
- if (d && !f && r.loopPreventsSliding) return false;
2029
+ let o = n.slidesPerGroup;
2030
+ n.slidesPerView === "auto" && n.slidesPerGroup === 1 && n.slidesPerGroupAuto && (o = Math.max(s.slidesPerViewDynamic("current", true), 1));
2031
+ const c = s.activeIndex < n.slidesPerGroupSkip ? 1 : o, f = s.virtual && n.virtual.enabled;
2032
+ if (n.loop) {
2033
+ if (d && !f && n.loopPreventsSliding) return false;
2033
2034
  if (s.loopFix({
2034
2035
  direction: "next"
2035
- }), s._clientLeft = s.wrapperEl.clientLeft, s.activeIndex === s.slides.length - 1 && r.cssMode)
2036
+ }), s._clientLeft = s.wrapperEl.clientLeft, s.activeIndex === s.slides.length - 1 && n.cssMode)
2036
2037
  return requestAnimationFrame(() => {
2037
2038
  s.slideTo(s.activeIndex + c, t, e, i);
2038
2039
  }), true;
2039
2040
  }
2040
- return r.rewind && s.isEnd ? s.slideTo(0, t, e, i) : s.slideTo(s.activeIndex + c, t, e, i);
2041
+ return n.rewind && s.isEnd ? s.slideTo(0, t, e, i) : s.slideTo(s.activeIndex + c, t, e, i);
2041
2042
  }
2042
- function mi(t, e, i) {
2043
+ function pi(t, e, i) {
2043
2044
  e === void 0 && (e = true);
2044
2045
  const s = this, {
2045
- params: n,
2046
- snapGrid: r,
2046
+ params: r,
2047
+ snapGrid: n,
2047
2048
  slidesGrid: d,
2048
2049
  rtlTranslate: o,
2049
2050
  enabled: c,
@@ -2051,135 +2052,130 @@ function mi(t, e, i) {
2051
2052
  } = s;
2052
2053
  if (!c || s.destroyed) return s;
2053
2054
  typeof t > "u" && (t = s.params.speed);
2054
- const p = s.virtual && n.virtual.enabled;
2055
- if (n.loop) {
2056
- if (f && !p && n.loopPreventsSliding) return false;
2055
+ const u = s.virtual && r.virtual.enabled;
2056
+ if (r.loop) {
2057
+ if (f && !u && r.loopPreventsSliding) return false;
2057
2058
  s.loopFix({
2058
2059
  direction: "prev"
2059
2060
  }), s._clientLeft = s.wrapperEl.clientLeft;
2060
2061
  }
2061
2062
  const m = o ? s.translate : -s.translate;
2062
- function v(u) {
2063
- return u < 0 ? -Math.floor(Math.abs(u)) : Math.floor(u);
2063
+ function v(p) {
2064
+ return p < 0 ? -Math.floor(Math.abs(p)) : Math.floor(p);
2064
2065
  }
2065
- const w = v(m), a = r.map((u) => v(u)), l = n.freeMode && n.freeMode.enabled;
2066
- let S = r[a.indexOf(w) - 1];
2067
- if (typeof S > "u" && (n.cssMode || l)) {
2068
- let u;
2069
- r.forEach((h, E) => {
2070
- w >= h && (u = E);
2071
- }), typeof u < "u" && (S = l ? r[u] : r[u > 0 ? u - 1 : u]);
2066
+ const w = v(m), a = n.map((p) => v(p)), l = r.freeMode && r.freeMode.enabled;
2067
+ let S = n[a.indexOf(w) - 1];
2068
+ if (typeof S > "u" && (r.cssMode || l)) {
2069
+ let p;
2070
+ n.forEach((h, E) => {
2071
+ w >= h && (p = E);
2072
+ }), typeof p < "u" && (S = l ? n[p] : n[p > 0 ? p - 1 : p]);
2072
2073
  }
2073
2074
  let g = 0;
2074
- if (typeof S < "u" && (g = d.indexOf(S), g < 0 && (g = s.activeIndex - 1), n.slidesPerView === "auto" && n.slidesPerGroup === 1 && n.slidesPerGroupAuto && (g = g - s.slidesPerViewDynamic("previous", true) + 1, g = Math.max(g, 0))), n.rewind && s.isBeginning) {
2075
- const u = s.params.virtual && s.params.virtual.enabled && s.virtual ? s.virtual.slides.length - 1 : s.slides.length - 1;
2076
- return s.slideTo(u, t, e, i);
2077
- } else if (n.loop && s.activeIndex === 0 && n.cssMode)
2075
+ if (typeof S < "u" && (g = d.indexOf(S), g < 0 && (g = s.activeIndex - 1), r.slidesPerView === "auto" && r.slidesPerGroup === 1 && r.slidesPerGroupAuto && (g = g - s.slidesPerViewDynamic("previous", true) + 1, g = Math.max(g, 0))), r.rewind && s.isBeginning) {
2076
+ const p = s.params.virtual && s.params.virtual.enabled && s.virtual ? s.virtual.slides.length - 1 : s.slides.length - 1;
2077
+ return s.slideTo(p, t, e, i);
2078
+ } else if (r.loop && s.activeIndex === 0 && r.cssMode)
2078
2079
  return requestAnimationFrame(() => {
2079
2080
  s.slideTo(g, t, e, i);
2080
2081
  }), true;
2081
2082
  return s.slideTo(g, t, e, i);
2082
2083
  }
2083
- function hi(t, e, i) {
2084
+ function mi(t, e, i) {
2084
2085
  e === void 0 && (e = true);
2085
2086
  const s = this;
2086
2087
  if (!s.destroyed)
2087
2088
  return typeof t > "u" && (t = s.params.speed), s.slideTo(s.activeIndex, t, e, i);
2088
2089
  }
2089
- function gi(t, e, i, s) {
2090
+ function hi(t, e, i, s) {
2090
2091
  e === void 0 && (e = true), s === void 0 && (s = 0.5);
2091
- const n = this;
2092
- if (n.destroyed) return;
2093
- typeof t > "u" && (t = n.params.speed);
2094
- let r = n.activeIndex;
2095
- const d = Math.min(n.params.slidesPerGroupSkip, r), o = d + Math.floor((r - d) / n.params.slidesPerGroup), c = n.rtlTranslate ? n.translate : -n.translate;
2096
- if (c >= n.snapGrid[o]) {
2097
- const f = n.snapGrid[o], p = n.snapGrid[o + 1];
2098
- c - f > (p - f) * s && (r += n.params.slidesPerGroup);
2092
+ const r = this;
2093
+ if (r.destroyed) return;
2094
+ typeof t > "u" && (t = r.params.speed);
2095
+ let n = r.activeIndex;
2096
+ const d = Math.min(r.params.slidesPerGroupSkip, n), o = d + Math.floor((n - d) / r.params.slidesPerGroup), c = r.rtlTranslate ? r.translate : -r.translate;
2097
+ if (c >= r.snapGrid[o]) {
2098
+ const f = r.snapGrid[o], u = r.snapGrid[o + 1];
2099
+ c - f > (u - f) * s && (n += r.params.slidesPerGroup);
2099
2100
  } else {
2100
- const f = n.snapGrid[o - 1], p = n.snapGrid[o];
2101
- c - f <= (p - f) * s && (r -= n.params.slidesPerGroup);
2101
+ const f = r.snapGrid[o - 1], u = r.snapGrid[o];
2102
+ c - f <= (u - f) * s && (n -= r.params.slidesPerGroup);
2102
2103
  }
2103
- return r = Math.max(r, 0), r = Math.min(r, n.slidesGrid.length - 1), n.slideTo(r, t, e, i);
2104
+ return n = Math.max(n, 0), n = Math.min(n, r.slidesGrid.length - 1), r.slideTo(n, t, e, i);
2104
2105
  }
2105
- function vi() {
2106
+ function gi() {
2106
2107
  const t = this;
2107
2108
  if (t.destroyed) return;
2108
2109
  const {
2109
2110
  params: e,
2110
2111
  slidesEl: i
2111
2112
  } = t, s = e.slidesPerView === "auto" ? t.slidesPerViewDynamic() : e.slidesPerView;
2112
- let n = t.getSlideIndexWhenGrid(t.clickedIndex), r;
2113
- const d = t.isElement ? "swiper-slide" : `.${e.slideClass}`, o = t.grid && t.params.grid && t.params.grid.rows > 1;
2113
+ let r = t.clickedIndex, n;
2114
+ const d = t.isElement ? "swiper-slide" : `.${e.slideClass}`;
2114
2115
  if (e.loop) {
2115
2116
  if (t.animating) return;
2116
- r = parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"), 10), e.centeredSlides ? t.slideToLoop(r) : n > (o ? (t.slides.length - s) / 2 - (t.params.grid.rows - 1) : t.slides.length - s) ? (t.loopFix(), n = t.getSlideIndex(q(i, `${d}[data-swiper-slide-index="${r}"]`)[0]), rt(() => {
2117
- t.slideTo(n);
2118
- })) : t.slideTo(n);
2117
+ n = parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"), 10), e.centeredSlides ? r < t.loopedSlides - s / 2 || r > t.slides.length - t.loopedSlides + s / 2 ? (t.loopFix(), r = t.getSlideIndex(q(i, `${d}[data-swiper-slide-index="${n}"]`)[0]), Ve(() => {
2118
+ t.slideTo(r);
2119
+ })) : t.slideTo(r) : r > t.slides.length - s ? (t.loopFix(), r = t.getSlideIndex(q(i, `${d}[data-swiper-slide-index="${n}"]`)[0]), Ve(() => {
2120
+ t.slideTo(r);
2121
+ })) : t.slideTo(r);
2119
2122
  } else
2120
- t.slideTo(n);
2121
- }
2122
- var wi = {
2123
- slideTo: fi,
2124
- slideToLoop: ui,
2125
- slideNext: pi,
2126
- slidePrev: mi,
2127
- slideReset: hi,
2128
- slideToClosest: gi,
2129
- slideToClickedSlide: vi
2123
+ t.slideTo(r);
2124
+ }
2125
+ var vi = {
2126
+ slideTo: ci,
2127
+ slideToLoop: fi,
2128
+ slideNext: ui,
2129
+ slidePrev: pi,
2130
+ slideReset: mi,
2131
+ slideToClosest: hi,
2132
+ slideToClickedSlide: gi
2130
2133
  };
2131
- function Si(t, e) {
2134
+ function wi(t, e) {
2132
2135
  const i = this, {
2133
2136
  params: s,
2134
- slidesEl: n
2137
+ slidesEl: r
2135
2138
  } = i;
2136
2139
  if (!s.loop || i.virtual && i.params.virtual.enabled) return;
2137
- const r = () => {
2138
- q(n, `.${s.slideClass}, swiper-slide`).forEach((w, a) => {
2139
- w.setAttribute("data-swiper-slide-index", a);
2140
+ const n = () => {
2141
+ q(r, `.${s.slideClass}, swiper-slide`).forEach((v, w) => {
2142
+ v.setAttribute("data-swiper-slide-index", w);
2140
2143
  });
2141
- }, d = () => {
2142
- const v = q(n, `.${s.slideBlankClass}`);
2143
- v.forEach((w) => {
2144
- w.remove();
2145
- }), v.length > 0 && (i.recalcSlides(), i.updateSlides());
2146
- }, o = i.grid && s.grid && s.grid.rows > 1;
2147
- s.loopAddBlankSlides && (s.slidesPerGroup > 1 || o) && d();
2148
- const c = s.slidesPerGroup * (o ? s.grid.rows : 1), f = i.slides.length % c !== 0, p = o && i.slides.length % s.grid.rows !== 0, m = (v) => {
2149
- for (let w = 0; w < v; w += 1) {
2150
- const a = i.isElement ? fe("swiper-slide", [s.slideBlankClass]) : fe("div", [s.slideClass, s.slideBlankClass]);
2151
- i.slidesEl.append(a);
2144
+ }, d = i.grid && s.grid && s.grid.rows > 1, o = s.slidesPerGroup * (d ? s.grid.rows : 1), c = i.slides.length % o !== 0, f = d && i.slides.length % s.grid.rows !== 0, u = (m) => {
2145
+ for (let v = 0; v < m; v += 1) {
2146
+ const w = i.isElement ? fe("swiper-slide", [s.slideBlankClass]) : fe("div", [s.slideClass, s.slideBlankClass]);
2147
+ i.slidesEl.append(w);
2152
2148
  }
2153
2149
  };
2154
- if (f) {
2150
+ if (c) {
2155
2151
  if (s.loopAddBlankSlides) {
2156
- const v = c - i.slides.length % c;
2157
- m(v), i.recalcSlides(), i.updateSlides();
2152
+ const m = o - i.slides.length % o;
2153
+ u(m), i.recalcSlides(), i.updateSlides();
2158
2154
  } else
2159
- Pe("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
2160
- r();
2161
- } else if (p) {
2155
+ Me("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
2156
+ n();
2157
+ } else if (f) {
2162
2158
  if (s.loopAddBlankSlides) {
2163
- const v = s.grid.rows - i.slides.length % s.grid.rows;
2164
- m(v), i.recalcSlides(), i.updateSlides();
2159
+ const m = s.grid.rows - i.slides.length % s.grid.rows;
2160
+ u(m), i.recalcSlides(), i.updateSlides();
2165
2161
  } else
2166
- Pe("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
2167
- r();
2162
+ Me("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
2163
+ n();
2168
2164
  } else
2169
- r();
2165
+ n();
2170
2166
  i.loopFix({
2171
2167
  slideRealIndex: t,
2172
2168
  direction: s.centeredSlides ? void 0 : "next",
2173
2169
  initial: e
2174
2170
  });
2175
2171
  }
2176
- function Ei(t) {
2172
+ function Si(t) {
2177
2173
  let {
2178
2174
  slideRealIndex: e,
2179
2175
  slideTo: i = true,
2180
2176
  direction: s,
2181
- setTranslate: n,
2182
- activeSlideIndex: r,
2177
+ setTranslate: r,
2178
+ activeSlideIndex: n,
2183
2179
  initial: d,
2184
2180
  byController: o,
2185
2181
  byMousewheel: c
@@ -2188,7 +2184,7 @@ function Ei(t) {
2188
2184
  if (!f.params.loop) return;
2189
2185
  f.emit("beforeLoopFix");
2190
2186
  const {
2191
- slides: p,
2187
+ slides: u,
2192
2188
  allowSlidePrev: m,
2193
2189
  allowSlideNext: v,
2194
2190
  slidesEl: w,
@@ -2203,58 +2199,58 @@ function Ei(t) {
2203
2199
  }
2204
2200
  let g = a.slidesPerView;
2205
2201
  g === "auto" ? g = f.slidesPerViewDynamic() : (g = Math.ceil(parseFloat(a.slidesPerView, 10)), l && g % 2 === 0 && (g = g + 1));
2206
- const u = a.slidesPerGroupAuto ? g : a.slidesPerGroup;
2207
- let h = l ? Math.max(u, Math.ceil(g / 2)) : u;
2208
- h % u !== 0 && (h += u - h % u), h += a.loopAdditionalSlides, f.loopedSlides = h;
2202
+ const p = a.slidesPerGroupAuto ? g : a.slidesPerGroup;
2203
+ let h = p;
2204
+ h % p !== 0 && (h += p - h % p), h += a.loopAdditionalSlides, f.loopedSlides = h;
2209
2205
  const E = f.grid && a.grid && a.grid.rows > 1;
2210
- p.length < g + h || f.params.effect === "cards" && p.length < g + h * 2 ? Pe("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : E && a.grid.fill === "row" && Pe("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
2211
- const b = [], L = [], I = E ? Math.ceil(p.length / a.grid.rows) : p.length, z = d && I - S < g && !l;
2206
+ u.length < g + h || f.params.effect === "cards" && u.length < g + h * 2 ? Me("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : E && a.grid.fill === "row" && Me("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
2207
+ const b = [], L = [], I = E ? Math.ceil(u.length / a.grid.rows) : u.length, z = d && I - S < g && !l;
2212
2208
  let y = z ? S : f.activeIndex;
2213
- typeof r > "u" ? r = f.getSlideIndex(p.find((A) => A.classList.contains(a.slideActiveClass))) : y = r;
2209
+ typeof n > "u" ? n = f.getSlideIndex(u.find((A) => A.classList.contains(a.slideActiveClass))) : y = n;
2214
2210
  const T = s === "next" || !s, P = s === "prev" || !s;
2215
2211
  let O = 0, D = 0;
2216
- const _ = (E ? p[r].column : r) + (l && typeof n > "u" ? -g / 2 + 0.5 : 0);
2212
+ const _ = (E ? u[n].column : n) + (l && typeof r > "u" ? -g / 2 + 0.5 : 0);
2217
2213
  if (_ < h) {
2218
- O = Math.max(h - _, u);
2214
+ O = Math.max(h - _, p);
2219
2215
  for (let A = 0; A < h - _; A += 1) {
2220
2216
  const Y = A - Math.floor(A / I) * I;
2221
2217
  if (E) {
2222
2218
  const X = I - Y - 1;
2223
- for (let G = p.length - 1; G >= 0; G -= 1)
2224
- p[G].column === X && b.push(G);
2219
+ for (let G = u.length - 1; G >= 0; G -= 1)
2220
+ u[G].column === X && b.push(G);
2225
2221
  } else
2226
2222
  b.push(I - Y - 1);
2227
2223
  }
2228
2224
  } else if (_ + g > I - h) {
2229
- D = Math.max(_ - (I - h * 2), u), z && (D = Math.max(D, g - I + S + 1));
2225
+ D = Math.max(_ - (I - h * 2), p), z && (D = Math.max(D, g - I + S + 1));
2230
2226
  for (let A = 0; A < D; A += 1) {
2231
2227
  const Y = A - Math.floor(A / I) * I;
2232
- E ? p.forEach((X, G) => {
2228
+ E ? u.forEach((X, G) => {
2233
2229
  X.column === Y && L.push(G);
2234
2230
  }) : L.push(Y);
2235
2231
  }
2236
2232
  }
2237
2233
  if (f.__preventObserver__ = true, requestAnimationFrame(() => {
2238
2234
  f.__preventObserver__ = false;
2239
- }), f.params.effect === "cards" && p.length < g + h * 2 && (L.includes(r) && L.splice(L.indexOf(r), 1), b.includes(r) && b.splice(b.indexOf(r), 1)), P && b.forEach((A) => {
2240
- p[A].swiperLoopMoveDOM = true, w.prepend(p[A]), p[A].swiperLoopMoveDOM = false;
2235
+ }), f.params.effect === "cards" && u.length < g + h * 2 && (L.includes(n) && L.splice(L.indexOf(n), 1), b.includes(n) && b.splice(b.indexOf(n), 1)), P && b.forEach((A) => {
2236
+ u[A].swiperLoopMoveDOM = true, w.prepend(u[A]), u[A].swiperLoopMoveDOM = false;
2241
2237
  }), T && L.forEach((A) => {
2242
- p[A].swiperLoopMoveDOM = true, w.append(p[A]), p[A].swiperLoopMoveDOM = false;
2238
+ u[A].swiperLoopMoveDOM = true, w.append(u[A]), u[A].swiperLoopMoveDOM = false;
2243
2239
  }), f.recalcSlides(), a.slidesPerView === "auto" ? f.updateSlides() : E && (b.length > 0 && P || L.length > 0 && T) && f.slides.forEach((A, Y) => {
2244
2240
  f.grid.updateSlide(Y, A, f.slides);
2245
2241
  }), a.watchSlidesProgress && f.updateSlidesOffset(), i) {
2246
2242
  if (b.length > 0 && P) {
2247
2243
  if (typeof e > "u") {
2248
2244
  const A = f.slidesGrid[y], X = f.slidesGrid[y + O] - A;
2249
- c ? f.setTranslate(f.translate - X) : (f.slideTo(y + Math.ceil(O), 0, false, true), n && (f.touchEventsData.startTranslate = f.touchEventsData.startTranslate - X, f.touchEventsData.currentTranslate = f.touchEventsData.currentTranslate - X));
2250
- } else if (n) {
2245
+ c ? f.setTranslate(f.translate - X) : (f.slideTo(y + Math.ceil(O), 0, false, true), r && (f.touchEventsData.startTranslate = f.touchEventsData.startTranslate - X, f.touchEventsData.currentTranslate = f.touchEventsData.currentTranslate - X));
2246
+ } else if (r) {
2251
2247
  const A = E ? b.length / a.grid.rows : b.length;
2252
2248
  f.slideTo(f.activeIndex + A, 0, false, true), f.touchEventsData.currentTranslate = f.translate;
2253
2249
  }
2254
2250
  } else if (L.length > 0 && T)
2255
2251
  if (typeof e > "u") {
2256
2252
  const A = f.slidesGrid[y], X = f.slidesGrid[y - D] - A;
2257
- c ? f.setTranslate(f.translate - X) : (f.slideTo(y - D, 0, false, true), n && (f.touchEventsData.startTranslate = f.touchEventsData.startTranslate - X, f.touchEventsData.currentTranslate = f.touchEventsData.currentTranslate - X));
2253
+ c ? f.setTranslate(f.translate - X) : (f.slideTo(y - D, 0, false, true), r && (f.touchEventsData.startTranslate = f.touchEventsData.startTranslate - X, f.touchEventsData.currentTranslate = f.touchEventsData.currentTranslate - X));
2258
2254
  } else {
2259
2255
  const A = E ? L.length / a.grid.rows : L.length;
2260
2256
  f.slideTo(f.activeIndex - A, 0, false, true);
@@ -2264,8 +2260,8 @@ function Ei(t) {
2264
2260
  const A = {
2265
2261
  slideRealIndex: e,
2266
2262
  direction: s,
2267
- setTranslate: n,
2268
- activeSlideIndex: r,
2263
+ setTranslate: r,
2264
+ activeSlideIndex: n,
2269
2265
  byController: true
2270
2266
  };
2271
2267
  Array.isArray(f.controller.control) ? f.controller.control.forEach((Y) => {
@@ -2280,7 +2276,7 @@ function Ei(t) {
2280
2276
  }
2281
2277
  f.emit("loopFix");
2282
2278
  }
2283
- function bi() {
2279
+ function Ei() {
2284
2280
  const t = this, {
2285
2281
  params: e,
2286
2282
  slidesEl: i
@@ -2288,21 +2284,21 @@ function bi() {
2288
2284
  if (!e.loop || !i || t.virtual && t.params.virtual.enabled) return;
2289
2285
  t.recalcSlides();
2290
2286
  const s = [];
2291
- t.slides.forEach((n) => {
2292
- const r = typeof n.swiperSlideIndex > "u" ? n.getAttribute("data-swiper-slide-index") * 1 : n.swiperSlideIndex;
2293
- s[r] = n;
2294
- }), t.slides.forEach((n) => {
2295
- n.removeAttribute("data-swiper-slide-index");
2296
- }), s.forEach((n) => {
2297
- i.append(n);
2287
+ t.slides.forEach((r) => {
2288
+ const n = typeof r.swiperSlideIndex > "u" ? r.getAttribute("data-swiper-slide-index") * 1 : r.swiperSlideIndex;
2289
+ s[n] = r;
2290
+ }), t.slides.forEach((r) => {
2291
+ r.removeAttribute("data-swiper-slide-index");
2292
+ }), s.forEach((r) => {
2293
+ i.append(r);
2298
2294
  }), t.recalcSlides(), t.slideTo(t.realIndex, 0);
2299
2295
  }
2300
- var xi = {
2301
- loopCreate: Si,
2302
- loopFix: Ei,
2303
- loopDestroy: bi
2296
+ var bi = {
2297
+ loopCreate: wi,
2298
+ loopFix: Si,
2299
+ loopDestroy: Ei
2304
2300
  };
2305
- function yi(t) {
2301
+ function xi(t) {
2306
2302
  const e = this;
2307
2303
  if (!e.params.simulateTouch || e.params.watchOverflow && e.isLocked || e.params.cssMode) return;
2308
2304
  const i = e.params.touchEventsTarget === "container" ? e.el : e.wrapperEl;
@@ -2310,89 +2306,89 @@ function yi(t) {
2310
2306
  e.__preventObserver__ = false;
2311
2307
  });
2312
2308
  }
2313
- function Ti() {
2309
+ function yi() {
2314
2310
  const t = this;
2315
2311
  t.params.watchOverflow && t.isLocked || t.params.cssMode || (t.isElement && (t.__preventObserver__ = true), t[t.params.touchEventsTarget === "container" ? "el" : "wrapperEl"].style.cursor = "", t.isElement && requestAnimationFrame(() => {
2316
2312
  t.__preventObserver__ = false;
2317
2313
  }));
2318
2314
  }
2319
- var Ci = {
2320
- setGrabCursor: yi,
2321
- unsetGrabCursor: Ti
2315
+ var Ti = {
2316
+ setGrabCursor: xi,
2317
+ unsetGrabCursor: yi
2322
2318
  };
2323
- function Mi(t, e) {
2319
+ function Ci(t, e) {
2324
2320
  e === void 0 && (e = this);
2325
2321
  function i(s) {
2326
2322
  if (!s || s === Z() || s === k()) return null;
2327
2323
  s.assignedSlot && (s = s.assignedSlot);
2328
- const n = s.closest(t);
2329
- return !n && !s.getRootNode ? null : n || i(s.getRootNode().host);
2324
+ const r = s.closest(t);
2325
+ return !r && !s.getRootNode ? null : r || i(s.getRootNode().host);
2330
2326
  }
2331
2327
  return i(e);
2332
2328
  }
2333
2329
  function Je(t, e, i) {
2334
2330
  const s = k(), {
2335
- params: n
2336
- } = t, r = n.edgeSwipeDetection, d = n.edgeSwipeThreshold;
2337
- return r && (i <= d || i >= s.innerWidth - d) ? r === "prevent" ? (e.preventDefault(), true) : false : true;
2331
+ params: r
2332
+ } = t, n = r.edgeSwipeDetection, d = r.edgeSwipeThreshold;
2333
+ return n && (i <= d || i >= s.innerWidth - d) ? n === "prevent" ? (e.preventDefault(), true) : false : true;
2338
2334
  }
2339
- function Pi(t) {
2335
+ function Mi(t) {
2340
2336
  const e = this, i = Z();
2341
2337
  let s = t;
2342
2338
  s.originalEvent && (s = s.originalEvent);
2343
- const n = e.touchEventsData;
2339
+ const r = e.touchEventsData;
2344
2340
  if (s.type === "pointerdown") {
2345
- if (n.pointerId !== null && n.pointerId !== s.pointerId)
2341
+ if (r.pointerId !== null && r.pointerId !== s.pointerId)
2346
2342
  return;
2347
- n.pointerId = s.pointerId;
2348
- } else s.type === "touchstart" && s.targetTouches.length === 1 && (n.touchId = s.targetTouches[0].identifier);
2343
+ r.pointerId = s.pointerId;
2344
+ } else s.type === "touchstart" && s.targetTouches.length === 1 && (r.touchId = s.targetTouches[0].identifier);
2349
2345
  if (s.type === "touchstart") {
2350
2346
  Je(e, s, s.targetTouches[0].pageX);
2351
2347
  return;
2352
2348
  }
2353
2349
  const {
2354
- params: r,
2350
+ params: n,
2355
2351
  touches: d,
2356
2352
  enabled: o
2357
2353
  } = e;
2358
- if (!o || !r.simulateTouch && s.pointerType === "mouse" || e.animating && r.preventInteractionOnTransition)
2354
+ if (!o || !n.simulateTouch && s.pointerType === "mouse" || e.animating && n.preventInteractionOnTransition)
2359
2355
  return;
2360
- !e.animating && r.cssMode && r.loop && e.loopFix();
2356
+ !e.animating && n.cssMode && n.loop && e.loopFix();
2361
2357
  let c = s.target;
2362
- if (r.touchEventsTarget === "wrapper" && !It(c, e.wrapperEl) || "which" in s && s.which === 3 || "button" in s && s.button > 0 || n.isTouched && n.isMoved) return;
2363
- const f = !!r.noSwipingClass && r.noSwipingClass !== "", p = s.composedPath ? s.composedPath() : s.path;
2364
- f && s.target && s.target.shadowRoot && p && (c = p[0]);
2365
- const m = r.noSwipingSelector ? r.noSwipingSelector : `.${r.noSwipingClass}`, v = !!(s.target && s.target.shadowRoot);
2366
- if (r.noSwiping && (v ? Mi(m, c) : c.closest(m))) {
2358
+ if (n.touchEventsTarget === "wrapper" && !zt(c, e.wrapperEl) || "which" in s && s.which === 3 || "button" in s && s.button > 0 || r.isTouched && r.isMoved) return;
2359
+ const f = !!n.noSwipingClass && n.noSwipingClass !== "", u = s.composedPath ? s.composedPath() : s.path;
2360
+ f && s.target && s.target.shadowRoot && u && (c = u[0]);
2361
+ const m = n.noSwipingSelector ? n.noSwipingSelector : `.${n.noSwipingClass}`, v = !!(s.target && s.target.shadowRoot);
2362
+ if (n.noSwiping && (v ? Ci(m, c) : c.closest(m))) {
2367
2363
  e.allowClick = true;
2368
2364
  return;
2369
2365
  }
2370
- if (r.swipeHandler && !c.closest(r.swipeHandler))
2366
+ if (n.swipeHandler && !c.closest(n.swipeHandler))
2371
2367
  return;
2372
2368
  d.currentX = s.pageX, d.currentY = s.pageY;
2373
2369
  const w = d.currentX, a = d.currentY;
2374
2370
  if (!Je(e, s, w))
2375
2371
  return;
2376
- Object.assign(n, {
2372
+ Object.assign(r, {
2377
2373
  isTouched: true,
2378
2374
  isMoved: false,
2379
2375
  allowTouchCallbacks: true,
2380
2376
  isScrolling: void 0,
2381
2377
  startMoving: void 0
2382
- }), d.startX = w, d.startY = a, n.touchStartTime = Me(), e.allowClick = true, e.updateSize(), e.swipeDirection = void 0, r.threshold > 0 && (n.allowThresholdMove = false);
2378
+ }), d.startX = w, d.startY = a, r.touchStartTime = Ce(), e.allowClick = true, e.updateSize(), e.swipeDirection = void 0, n.threshold > 0 && (r.allowThresholdMove = false);
2383
2379
  let l = true;
2384
- c.matches(n.focusableElements) && (l = false, c.nodeName === "SELECT" && (n.isTouched = false)), i.activeElement && i.activeElement.matches(n.focusableElements) && i.activeElement !== c && (s.pointerType === "mouse" || s.pointerType !== "mouse" && !c.matches(n.focusableElements)) && i.activeElement.blur();
2385
- const S = l && e.allowTouchMove && r.touchStartPreventDefault;
2386
- (r.touchStartForcePreventDefault || S) && !c.isContentEditable && s.preventDefault(), r.freeMode && r.freeMode.enabled && e.freeMode && e.animating && !r.cssMode && e.freeMode.onTouchStart(), e.emit("touchStart", s);
2380
+ c.matches(r.focusableElements) && (l = false, c.nodeName === "SELECT" && (r.isTouched = false)), i.activeElement && i.activeElement.matches(r.focusableElements) && i.activeElement !== c && (s.pointerType === "mouse" || s.pointerType !== "mouse" && !c.matches(r.focusableElements)) && i.activeElement.blur();
2381
+ const S = l && e.allowTouchMove && n.touchStartPreventDefault;
2382
+ (n.touchStartForcePreventDefault || S) && !c.isContentEditable && s.preventDefault(), n.freeMode && n.freeMode.enabled && e.freeMode && e.animating && !n.cssMode && e.freeMode.onTouchStart(), e.emit("touchStart", s);
2387
2383
  }
2388
- function Li(t) {
2384
+ function Pi(t) {
2389
2385
  const e = Z(), i = this, s = i.touchEventsData, {
2390
- params: n,
2391
- touches: r,
2386
+ params: r,
2387
+ touches: n,
2392
2388
  rtlTranslate: d,
2393
2389
  enabled: o
2394
2390
  } = i;
2395
- if (!o || !n.simulateTouch && t.pointerType === "mouse") return;
2391
+ if (!o || !r.simulateTouch && t.pointerType === "mouse") return;
2396
2392
  let c = t;
2397
2393
  if (c.originalEvent && (c = c.originalEvent), c.type === "pointermove" && (s.touchId !== null || c.pointerId !== s.pointerId))
2398
2394
  return;
@@ -2405,57 +2401,57 @@ function Li(t) {
2405
2401
  s.startMoving && s.isScrolling && i.emit("touchMoveOpposite", c);
2406
2402
  return;
2407
2403
  }
2408
- const p = f.pageX, m = f.pageY;
2404
+ const u = f.pageX, m = f.pageY;
2409
2405
  if (c.preventedByNestedSwiper) {
2410
- r.startX = p, r.startY = m;
2406
+ n.startX = u, n.startY = m;
2411
2407
  return;
2412
2408
  }
2413
2409
  if (!i.allowTouchMove) {
2414
- c.target.matches(s.focusableElements) || (i.allowClick = false), s.isTouched && (Object.assign(r, {
2415
- startX: p,
2410
+ c.target.matches(s.focusableElements) || (i.allowClick = false), s.isTouched && (Object.assign(n, {
2411
+ startX: u,
2416
2412
  startY: m,
2417
- currentX: p,
2413
+ currentX: u,
2418
2414
  currentY: m
2419
- }), s.touchStartTime = Me());
2415
+ }), s.touchStartTime = Ce());
2420
2416
  return;
2421
2417
  }
2422
- if (n.touchReleaseOnEdges && !n.loop)
2418
+ if (r.touchReleaseOnEdges && !r.loop)
2423
2419
  if (i.isVertical()) {
2424
- if (m < r.startY && i.translate <= i.maxTranslate() || m > r.startY && i.translate >= i.minTranslate()) {
2420
+ if (m < n.startY && i.translate <= i.maxTranslate() || m > n.startY && i.translate >= i.minTranslate()) {
2425
2421
  s.isTouched = false, s.isMoved = false;
2426
2422
  return;
2427
2423
  }
2428
2424
  } else {
2429
- if (d && (p > r.startX && -i.translate <= i.maxTranslate() || p < r.startX && -i.translate >= i.minTranslate()))
2425
+ if (d && (u > n.startX && -i.translate <= i.maxTranslate() || u < n.startX && -i.translate >= i.minTranslate()))
2430
2426
  return;
2431
- if (!d && (p < r.startX && i.translate <= i.maxTranslate() || p > r.startX && i.translate >= i.minTranslate()))
2427
+ if (!d && (u < n.startX && i.translate <= i.maxTranslate() || u > n.startX && i.translate >= i.minTranslate()))
2432
2428
  return;
2433
2429
  }
2434
2430
  if (e.activeElement && e.activeElement.matches(s.focusableElements) && e.activeElement !== c.target && c.pointerType !== "mouse" && e.activeElement.blur(), e.activeElement && c.target === e.activeElement && c.target.matches(s.focusableElements)) {
2435
2431
  s.isMoved = true, i.allowClick = false;
2436
2432
  return;
2437
2433
  }
2438
- s.allowTouchCallbacks && i.emit("touchMove", c), r.previousX = r.currentX, r.previousY = r.currentY, r.currentX = p, r.currentY = m;
2439
- const v = r.currentX - r.startX, w = r.currentY - r.startY;
2434
+ s.allowTouchCallbacks && i.emit("touchMove", c), n.previousX = n.currentX, n.previousY = n.currentY, n.currentX = u, n.currentY = m;
2435
+ const v = n.currentX - n.startX, w = n.currentY - n.startY;
2440
2436
  if (i.params.threshold && Math.sqrt(v ** 2 + w ** 2) < i.params.threshold) return;
2441
2437
  if (typeof s.isScrolling > "u") {
2442
2438
  let b;
2443
- i.isHorizontal() && r.currentY === r.startY || i.isVertical() && r.currentX === r.startX ? s.isScrolling = false : v * v + w * w >= 25 && (b = Math.atan2(Math.abs(w), Math.abs(v)) * 180 / Math.PI, s.isScrolling = i.isHorizontal() ? b > n.touchAngle : 90 - b > n.touchAngle);
2439
+ i.isHorizontal() && n.currentY === n.startY || i.isVertical() && n.currentX === n.startX ? s.isScrolling = false : v * v + w * w >= 25 && (b = Math.atan2(Math.abs(w), Math.abs(v)) * 180 / Math.PI, s.isScrolling = i.isHorizontal() ? b > r.touchAngle : 90 - b > r.touchAngle);
2444
2440
  }
2445
- if (s.isScrolling && i.emit("touchMoveOpposite", c), typeof s.startMoving > "u" && (r.currentX !== r.startX || r.currentY !== r.startY) && (s.startMoving = true), s.isScrolling || c.type === "touchmove" && s.preventTouchMoveFromPointerMove) {
2441
+ if (s.isScrolling && i.emit("touchMoveOpposite", c), typeof s.startMoving > "u" && (n.currentX !== n.startX || n.currentY !== n.startY) && (s.startMoving = true), s.isScrolling || c.type === "touchmove" && s.preventTouchMoveFromPointerMove) {
2446
2442
  s.isTouched = false;
2447
2443
  return;
2448
2444
  }
2449
2445
  if (!s.startMoving)
2450
2446
  return;
2451
- i.allowClick = false, !n.cssMode && c.cancelable && c.preventDefault(), n.touchMoveStopPropagation && !n.nested && c.stopPropagation();
2452
- let a = i.isHorizontal() ? v : w, l = i.isHorizontal() ? r.currentX - r.previousX : r.currentY - r.previousY;
2453
- n.oneWayMovement && (a = Math.abs(a) * (d ? 1 : -1), l = Math.abs(l) * (d ? 1 : -1)), r.diff = a, a *= n.touchRatio, d && (a = -a, l = -l);
2447
+ i.allowClick = false, !r.cssMode && c.cancelable && c.preventDefault(), r.touchMoveStopPropagation && !r.nested && c.stopPropagation();
2448
+ let a = i.isHorizontal() ? v : w, l = i.isHorizontal() ? n.currentX - n.previousX : n.currentY - n.previousY;
2449
+ r.oneWayMovement && (a = Math.abs(a) * (d ? 1 : -1), l = Math.abs(l) * (d ? 1 : -1)), n.diff = a, a *= r.touchRatio, d && (a = -a, l = -l);
2454
2450
  const S = i.touchesDirection;
2455
2451
  i.swipeDirection = a > 0 ? "prev" : "next", i.touchesDirection = l > 0 ? "prev" : "next";
2456
- const g = i.params.loop && !n.cssMode, u = i.touchesDirection === "next" && i.allowSlideNext || i.touchesDirection === "prev" && i.allowSlidePrev;
2452
+ const g = i.params.loop && !r.cssMode, p = i.touchesDirection === "next" && i.allowSlideNext || i.touchesDirection === "prev" && i.allowSlidePrev;
2457
2453
  if (!s.isMoved) {
2458
- if (g && u && i.loopFix({
2454
+ if (g && p && i.loopFix({
2459
2455
  direction: i.swipeDirection
2460
2456
  }), s.startTranslate = i.getTranslate(), i.setTransition(0), i.animating) {
2461
2457
  const b = new window.CustomEvent("transitionend", {
@@ -2467,50 +2463,50 @@ function Li(t) {
2467
2463
  });
2468
2464
  i.wrapperEl.dispatchEvent(b);
2469
2465
  }
2470
- s.allowMomentumBounce = false, n.grabCursor && (i.allowSlideNext === true || i.allowSlidePrev === true) && i.setGrabCursor(true), i.emit("sliderFirstMove", c);
2466
+ s.allowMomentumBounce = false, r.grabCursor && (i.allowSlideNext === true || i.allowSlidePrev === true) && i.setGrabCursor(true), i.emit("sliderFirstMove", c);
2471
2467
  }
2472
- if ((/* @__PURE__ */ new Date()).getTime(), n._loopSwapReset !== false && s.isMoved && s.allowThresholdMove && S !== i.touchesDirection && g && u && Math.abs(a) >= 1) {
2473
- Object.assign(r, {
2474
- startX: p,
2468
+ if ((/* @__PURE__ */ new Date()).getTime(), r._loopSwapReset !== false && s.isMoved && s.allowThresholdMove && S !== i.touchesDirection && g && p && Math.abs(a) >= 1) {
2469
+ Object.assign(n, {
2470
+ startX: u,
2475
2471
  startY: m,
2476
- currentX: p,
2472
+ currentX: u,
2477
2473
  currentY: m,
2478
2474
  startTranslate: s.currentTranslate
2479
2475
  }), s.loopSwapReset = true, s.startTranslate = s.currentTranslate;
2480
2476
  return;
2481
2477
  }
2482
2478
  i.emit("sliderMove", c), s.isMoved = true, s.currentTranslate = a + s.startTranslate;
2483
- let h = true, E = n.resistanceRatio;
2484
- if (n.touchReleaseOnEdges && (E = 0), a > 0 ? (g && u && s.allowThresholdMove && s.currentTranslate > (n.centeredSlides ? i.minTranslate() - i.slidesSizesGrid[i.activeIndex + 1] - (n.slidesPerView !== "auto" && i.slides.length - n.slidesPerView >= 2 ? i.slidesSizesGrid[i.activeIndex + 1] + i.params.spaceBetween : 0) - i.params.spaceBetween : i.minTranslate()) && i.loopFix({
2479
+ let h = true, E = r.resistanceRatio;
2480
+ if (r.touchReleaseOnEdges && (E = 0), a > 0 ? (g && p && s.allowThresholdMove && s.currentTranslate > (r.centeredSlides ? i.minTranslate() - i.slidesSizesGrid[i.activeIndex + 1] - (r.slidesPerView !== "auto" && i.slides.length - r.slidesPerView >= 2 ? i.slidesSizesGrid[i.activeIndex + 1] + i.params.spaceBetween : 0) - i.params.spaceBetween : i.minTranslate()) && i.loopFix({
2485
2481
  direction: "prev",
2486
2482
  setTranslate: true,
2487
2483
  activeSlideIndex: 0
2488
- }), s.currentTranslate > i.minTranslate() && (h = false, n.resistance && (s.currentTranslate = i.minTranslate() - 1 + (-i.minTranslate() + s.startTranslate + a) ** E))) : a < 0 && (g && u && s.allowThresholdMove && s.currentTranslate < (n.centeredSlides ? i.maxTranslate() + i.slidesSizesGrid[i.slidesSizesGrid.length - 1] + i.params.spaceBetween + (n.slidesPerView !== "auto" && i.slides.length - n.slidesPerView >= 2 ? i.slidesSizesGrid[i.slidesSizesGrid.length - 1] + i.params.spaceBetween : 0) : i.maxTranslate()) && i.loopFix({
2484
+ }), s.currentTranslate > i.minTranslate() && (h = false, r.resistance && (s.currentTranslate = i.minTranslate() - 1 + (-i.minTranslate() + s.startTranslate + a) ** E))) : a < 0 && (g && p && s.allowThresholdMove && s.currentTranslate < (r.centeredSlides ? i.maxTranslate() + i.slidesSizesGrid[i.slidesSizesGrid.length - 1] + i.params.spaceBetween + (r.slidesPerView !== "auto" && i.slides.length - r.slidesPerView >= 2 ? i.slidesSizesGrid[i.slidesSizesGrid.length - 1] + i.params.spaceBetween : 0) : i.maxTranslate()) && i.loopFix({
2489
2485
  direction: "next",
2490
2486
  setTranslate: true,
2491
- activeSlideIndex: i.slides.length - (n.slidesPerView === "auto" ? i.slidesPerViewDynamic() : Math.ceil(parseFloat(n.slidesPerView, 10)))
2492
- }), s.currentTranslate < i.maxTranslate() && (h = false, n.resistance && (s.currentTranslate = i.maxTranslate() + 1 - (i.maxTranslate() - s.startTranslate - a) ** E))), h && (c.preventedByNestedSwiper = true), !i.allowSlideNext && i.swipeDirection === "next" && s.currentTranslate < s.startTranslate && (s.currentTranslate = s.startTranslate), !i.allowSlidePrev && i.swipeDirection === "prev" && s.currentTranslate > s.startTranslate && (s.currentTranslate = s.startTranslate), !i.allowSlidePrev && !i.allowSlideNext && (s.currentTranslate = s.startTranslate), n.threshold > 0)
2493
- if (Math.abs(a) > n.threshold || s.allowThresholdMove) {
2487
+ activeSlideIndex: i.slides.length - (r.slidesPerView === "auto" ? i.slidesPerViewDynamic() : Math.ceil(parseFloat(r.slidesPerView, 10)))
2488
+ }), s.currentTranslate < i.maxTranslate() && (h = false, r.resistance && (s.currentTranslate = i.maxTranslate() + 1 - (i.maxTranslate() - s.startTranslate - a) ** E))), h && (c.preventedByNestedSwiper = true), !i.allowSlideNext && i.swipeDirection === "next" && s.currentTranslate < s.startTranslate && (s.currentTranslate = s.startTranslate), !i.allowSlidePrev && i.swipeDirection === "prev" && s.currentTranslate > s.startTranslate && (s.currentTranslate = s.startTranslate), !i.allowSlidePrev && !i.allowSlideNext && (s.currentTranslate = s.startTranslate), r.threshold > 0)
2489
+ if (Math.abs(a) > r.threshold || s.allowThresholdMove) {
2494
2490
  if (!s.allowThresholdMove) {
2495
- s.allowThresholdMove = true, r.startX = r.currentX, r.startY = r.currentY, s.currentTranslate = s.startTranslate, r.diff = i.isHorizontal() ? r.currentX - r.startX : r.currentY - r.startY;
2491
+ s.allowThresholdMove = true, n.startX = n.currentX, n.startY = n.currentY, s.currentTranslate = s.startTranslate, n.diff = i.isHorizontal() ? n.currentX - n.startX : n.currentY - n.startY;
2496
2492
  return;
2497
2493
  }
2498
2494
  } else {
2499
2495
  s.currentTranslate = s.startTranslate;
2500
2496
  return;
2501
2497
  }
2502
- !n.followFinger || n.cssMode || ((n.freeMode && n.freeMode.enabled && i.freeMode || n.watchSlidesProgress) && (i.updateActiveIndex(), i.updateSlidesClasses()), n.freeMode && n.freeMode.enabled && i.freeMode && i.freeMode.onTouchMove(), i.updateProgress(s.currentTranslate), i.setTranslate(s.currentTranslate));
2498
+ !r.followFinger || r.cssMode || ((r.freeMode && r.freeMode.enabled && i.freeMode || r.watchSlidesProgress) && (i.updateActiveIndex(), i.updateSlidesClasses()), r.freeMode && r.freeMode.enabled && i.freeMode && i.freeMode.onTouchMove(), i.updateProgress(s.currentTranslate), i.setTranslate(s.currentTranslate));
2503
2499
  }
2504
- function zi(t) {
2500
+ function Li(t) {
2505
2501
  const e = this, i = e.touchEventsData;
2506
2502
  let s = t;
2507
2503
  s.originalEvent && (s = s.originalEvent);
2508
- let n;
2504
+ let r;
2509
2505
  if (s.type === "touchend" || s.type === "touchcancel") {
2510
- if (n = [...s.changedTouches].find((b) => b.identifier === i.touchId), !n || n.identifier !== i.touchId) return;
2506
+ if (r = [...s.changedTouches].find((b) => b.identifier === i.touchId), !r || r.identifier !== i.touchId) return;
2511
2507
  } else {
2512
2508
  if (i.touchId !== null || s.pointerId !== i.pointerId) return;
2513
- n = s;
2509
+ r = s;
2514
2510
  }
2515
2511
  if (["pointercancel", "pointerout", "pointerleave", "contextmenu"].includes(s.type) && !(["pointercancel", "contextmenu"].includes(s.type) && (e.browser.isSafari || e.browser.isWebView)))
2516
2512
  return;
@@ -2520,20 +2516,20 @@ function zi(t) {
2520
2516
  touches: o,
2521
2517
  rtlTranslate: c,
2522
2518
  slidesGrid: f,
2523
- enabled: p
2519
+ enabled: u
2524
2520
  } = e;
2525
- if (!p || !d.simulateTouch && s.pointerType === "mouse") return;
2521
+ if (!u || !d.simulateTouch && s.pointerType === "mouse") return;
2526
2522
  if (i.allowTouchCallbacks && e.emit("touchEnd", s), i.allowTouchCallbacks = false, !i.isTouched) {
2527
2523
  i.isMoved && d.grabCursor && e.setGrabCursor(false), i.isMoved = false, i.startMoving = false;
2528
2524
  return;
2529
2525
  }
2530
2526
  d.grabCursor && i.isMoved && i.isTouched && (e.allowSlideNext === true || e.allowSlidePrev === true) && e.setGrabCursor(false);
2531
- const m = Me(), v = m - i.touchStartTime;
2527
+ const m = Ce(), v = m - i.touchStartTime;
2532
2528
  if (e.allowClick) {
2533
2529
  const b = s.path || s.composedPath && s.composedPath();
2534
2530
  e.updateClickedSlide(b && b[0] || s.target, b), e.emit("tap click", s), v < 300 && m - i.lastClickTime < 300 && e.emit("doubleTap doubleClick", s);
2535
2531
  }
2536
- if (i.lastClickTime = Me(), rt(() => {
2532
+ if (i.lastClickTime = Ce(), Ve(() => {
2537
2533
  e.destroyed || (e.allowClick = true);
2538
2534
  }), !i.isTouched || !i.isMoved || !e.swipeDirection || o.diff === 0 && !i.loopSwapReset || i.currentTranslate === i.startTranslate && !i.loopSwapReset) {
2539
2535
  i.isTouched = false, i.isMoved = false, i.startMoving = false;
@@ -2555,21 +2551,21 @@ function zi(t) {
2555
2551
  const L = b < d.slidesPerGroupSkip - 1 ? 1 : d.slidesPerGroup;
2556
2552
  typeof f[b + L] < "u" ? (a || w >= f[b] && w < f[b + L]) && (l = b, S = f[b + L] - f[b]) : (a || w >= f[b]) && (l = b, S = f[f.length - 1] - f[f.length - 2]);
2557
2553
  }
2558
- let g = null, u = null;
2559
- d.rewind && (e.isBeginning ? u = d.virtual && d.virtual.enabled && e.virtual ? e.virtual.slides.length - 1 : e.slides.length - 1 : e.isEnd && (g = 0));
2554
+ let g = null, p = null;
2555
+ d.rewind && (e.isBeginning ? p = d.virtual && d.virtual.enabled && e.virtual ? e.virtual.slides.length - 1 : e.slides.length - 1 : e.isEnd && (g = 0));
2560
2556
  const h = (w - f[l]) / S, E = l < d.slidesPerGroupSkip - 1 ? 1 : d.slidesPerGroup;
2561
2557
  if (v > d.longSwipesMs) {
2562
2558
  if (!d.longSwipes) {
2563
2559
  e.slideTo(e.activeIndex);
2564
2560
  return;
2565
2561
  }
2566
- e.swipeDirection === "next" && (h >= d.longSwipesRatio ? e.slideTo(d.rewind && e.isEnd ? g : l + E) : e.slideTo(l)), e.swipeDirection === "prev" && (h > 1 - d.longSwipesRatio ? e.slideTo(l + E) : u !== null && h < 0 && Math.abs(h) > d.longSwipesRatio ? e.slideTo(u) : e.slideTo(l));
2562
+ e.swipeDirection === "next" && (h >= d.longSwipesRatio ? e.slideTo(d.rewind && e.isEnd ? g : l + E) : e.slideTo(l)), e.swipeDirection === "prev" && (h > 1 - d.longSwipesRatio ? e.slideTo(l + E) : p !== null && h < 0 && Math.abs(h) > d.longSwipesRatio ? e.slideTo(p) : e.slideTo(l));
2567
2563
  } else {
2568
2564
  if (!d.shortSwipes) {
2569
2565
  e.slideTo(e.activeIndex);
2570
2566
  return;
2571
2567
  }
2572
- e.navigation && (s.target === e.navigation.nextEl || s.target === e.navigation.prevEl) ? s.target === e.navigation.nextEl ? e.slideTo(l + E) : e.slideTo(l) : (e.swipeDirection === "next" && e.slideTo(g !== null ? g : l + E), e.swipeDirection === "prev" && e.slideTo(u !== null ? u : l));
2568
+ e.navigation && (s.target === e.navigation.nextEl || s.target === e.navigation.prevEl) ? s.target === e.navigation.nextEl ? e.slideTo(l + E) : e.slideTo(l) : (e.swipeDirection === "next" && e.slideTo(g !== null ? g : l + E), e.swipeDirection === "prev" && e.slideTo(p !== null ? p : l));
2573
2569
  }
2574
2570
  }
2575
2571
  function et() {
@@ -2581,20 +2577,20 @@ function et() {
2581
2577
  e.breakpoints && t.setBreakpoint();
2582
2578
  const {
2583
2579
  allowSlideNext: s,
2584
- allowSlidePrev: n,
2585
- snapGrid: r
2580
+ allowSlidePrev: r,
2581
+ snapGrid: n
2586
2582
  } = t, d = t.virtual && t.params.virtual.enabled;
2587
2583
  t.allowSlideNext = true, t.allowSlidePrev = true, t.updateSize(), t.updateSlides(), t.updateSlidesClasses();
2588
2584
  const o = d && e.loop;
2589
2585
  (e.slidesPerView === "auto" || e.slidesPerView > 1) && t.isEnd && !t.isBeginning && !t.params.centeredSlides && !o ? t.slideTo(t.slides.length - 1, 0, false, true) : t.params.loop && !d ? t.slideToLoop(t.realIndex, 0, false, true) : t.slideTo(t.activeIndex, 0, false, true), t.autoplay && t.autoplay.running && t.autoplay.paused && (clearTimeout(t.autoplay.resizeTimeout), t.autoplay.resizeTimeout = setTimeout(() => {
2590
2586
  t.autoplay && t.autoplay.running && t.autoplay.paused && t.autoplay.resume();
2591
- }, 500)), t.allowSlidePrev = n, t.allowSlideNext = s, t.params.watchOverflow && r !== t.snapGrid && t.checkOverflow();
2587
+ }, 500)), t.allowSlidePrev = r, t.allowSlideNext = s, t.params.watchOverflow && n !== t.snapGrid && t.checkOverflow();
2592
2588
  }
2593
- function Ii(t) {
2589
+ function zi(t) {
2594
2590
  const e = this;
2595
2591
  e.enabled && (e.allowClick || (e.params.preventClicks && t.preventDefault(), e.params.preventClicksPropagation && e.animating && (t.stopPropagation(), t.stopImmediatePropagation())));
2596
2592
  }
2597
- function Oi() {
2593
+ function Ii() {
2598
2594
  const t = this, {
2599
2595
  wrapperEl: e,
2600
2596
  rtlTranslate: i,
@@ -2602,31 +2598,31 @@ function Oi() {
2602
2598
  } = t;
2603
2599
  if (!s) return;
2604
2600
  t.previousTranslate = t.translate, t.isHorizontal() ? t.translate = -e.scrollLeft : t.translate = -e.scrollTop, t.translate === 0 && (t.translate = 0), t.updateActiveIndex(), t.updateSlidesClasses();
2605
- let n;
2606
- const r = t.maxTranslate() - t.minTranslate();
2607
- r === 0 ? n = 0 : n = (t.translate - t.minTranslate()) / r, n !== t.progress && t.updateProgress(i ? -t.translate : t.translate), t.emit("setTranslate", t.translate, false);
2601
+ let r;
2602
+ const n = t.maxTranslate() - t.minTranslate();
2603
+ n === 0 ? r = 0 : r = (t.translate - t.minTranslate()) / n, r !== t.progress && t.updateProgress(i ? -t.translate : t.translate), t.emit("setTranslate", t.translate, false);
2608
2604
  }
2609
- function Ai(t) {
2605
+ function Oi(t) {
2610
2606
  const e = this;
2611
- Ce(e, t.target), !(e.params.cssMode || e.params.slidesPerView !== "auto" && !e.params.autoHeight) && e.update();
2607
+ Te(e, t.target), !(e.params.cssMode || e.params.slidesPerView !== "auto" && !e.params.autoHeight) && e.update();
2612
2608
  }
2613
- function Di() {
2609
+ function Ai() {
2614
2610
  const t = this;
2615
2611
  t.documentTouchHandlerProceeded || (t.documentTouchHandlerProceeded = true, t.params.touchReleaseOnEdges && (t.el.style.touchAction = "auto"));
2616
2612
  }
2617
- const ft = (t, e) => {
2613
+ const ct = (t, e) => {
2618
2614
  const i = Z(), {
2619
2615
  params: s,
2620
- el: n,
2621
- wrapperEl: r,
2616
+ el: r,
2617
+ wrapperEl: n,
2622
2618
  device: d
2623
2619
  } = t, o = !!s.nested, c = e === "on" ? "addEventListener" : "removeEventListener", f = e;
2624
- !n || typeof n == "string" || (i[c]("touchstart", t.onDocumentTouchStart, {
2620
+ !r || typeof r == "string" || (i[c]("touchstart", t.onDocumentTouchStart, {
2625
2621
  passive: false,
2626
2622
  capture: o
2627
- }), n[c]("touchstart", t.onTouchStart, {
2623
+ }), r[c]("touchstart", t.onTouchStart, {
2628
2624
  passive: false
2629
- }), n[c]("pointerdown", t.onTouchStart, {
2625
+ }), r[c]("pointerdown", t.onTouchStart, {
2630
2626
  passive: false
2631
2627
  }), i[c]("touchmove", t.onTouchMove, {
2632
2628
  passive: false,
@@ -2648,57 +2644,57 @@ const ft = (t, e) => {
2648
2644
  passive: true
2649
2645
  }), i[c]("contextmenu", t.onTouchEnd, {
2650
2646
  passive: true
2651
- }), (s.preventClicks || s.preventClicksPropagation) && n[c]("click", t.onClick, true), s.cssMode && r[c]("scroll", t.onScroll), s.updateOnWindowResize ? t[f](d.ios || d.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", et, true) : t[f]("observerUpdate", et, true), n[c]("load", t.onLoad, {
2647
+ }), (s.preventClicks || s.preventClicksPropagation) && r[c]("click", t.onClick, true), s.cssMode && n[c]("scroll", t.onScroll), s.updateOnWindowResize ? t[f](d.ios || d.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", et, true) : t[f]("observerUpdate", et, true), r[c]("load", t.onLoad, {
2652
2648
  capture: true
2653
2649
  }));
2654
2650
  };
2655
- function $i() {
2651
+ function Di() {
2656
2652
  const t = this, {
2657
2653
  params: e
2658
2654
  } = t;
2659
- t.onTouchStart = Pi.bind(t), t.onTouchMove = Li.bind(t), t.onTouchEnd = zi.bind(t), t.onDocumentTouchStart = Di.bind(t), e.cssMode && (t.onScroll = Oi.bind(t)), t.onClick = Ii.bind(t), t.onLoad = Ai.bind(t), ft(t, "on");
2655
+ t.onTouchStart = Mi.bind(t), t.onTouchMove = Pi.bind(t), t.onTouchEnd = Li.bind(t), t.onDocumentTouchStart = Ai.bind(t), e.cssMode && (t.onScroll = Ii.bind(t)), t.onClick = zi.bind(t), t.onLoad = Oi.bind(t), ct(t, "on");
2660
2656
  }
2661
- function _i() {
2662
- ft(this, "off");
2657
+ function $i() {
2658
+ ct(this, "off");
2663
2659
  }
2664
- var Gi = {
2665
- attachEvents: $i,
2666
- detachEvents: _i
2660
+ var _i = {
2661
+ attachEvents: Di,
2662
+ detachEvents: $i
2667
2663
  };
2668
2664
  const tt = (t, e) => t.grid && e.grid && e.grid.rows > 1;
2669
- function Bi() {
2665
+ function Gi() {
2670
2666
  const t = this, {
2671
2667
  realIndex: e,
2672
2668
  initialized: i,
2673
2669
  params: s,
2674
- el: n
2675
- } = t, r = s.breakpoints;
2676
- if (!r || r && Object.keys(r).length === 0) return;
2677
- const d = Z(), o = s.breakpointsBase === "window" || !s.breakpointsBase ? s.breakpointsBase : "container", c = ["window", "container"].includes(s.breakpointsBase) || !s.breakpointsBase ? t.el : d.querySelector(s.breakpointsBase), f = t.getBreakpoint(r, o, c);
2670
+ el: r
2671
+ } = t, n = s.breakpoints;
2672
+ if (!n || n && Object.keys(n).length === 0) return;
2673
+ const d = Z(), o = s.breakpointsBase === "window" || !s.breakpointsBase ? s.breakpointsBase : "container", c = ["window", "container"].includes(s.breakpointsBase) || !s.breakpointsBase ? t.el : d.querySelector(s.breakpointsBase), f = t.getBreakpoint(n, o, c);
2678
2674
  if (!f || t.currentBreakpoint === f) return;
2679
- const m = (f in r ? r[f] : void 0) || t.originalParams, v = tt(t, s), w = tt(t, m), a = t.params.grabCursor, l = m.grabCursor, S = s.enabled;
2680
- v && !w ? (n.classList.remove(`${s.containerModifierClass}grid`, `${s.containerModifierClass}grid-column`), t.emitContainerClasses()) : !v && w && (n.classList.add(`${s.containerModifierClass}grid`), (m.grid.fill && m.grid.fill === "column" || !m.grid.fill && s.grid.fill === "column") && n.classList.add(`${s.containerModifierClass}grid-column`), t.emitContainerClasses()), a && !l ? t.unsetGrabCursor() : !a && l && t.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((L) => {
2675
+ const m = (f in n ? n[f] : void 0) || t.originalParams, v = tt(t, s), w = tt(t, m), a = t.params.grabCursor, l = m.grabCursor, S = s.enabled;
2676
+ v && !w ? (r.classList.remove(`${s.containerModifierClass}grid`, `${s.containerModifierClass}grid-column`), t.emitContainerClasses()) : !v && w && (r.classList.add(`${s.containerModifierClass}grid`), (m.grid.fill && m.grid.fill === "column" || !m.grid.fill && s.grid.fill === "column") && r.classList.add(`${s.containerModifierClass}grid-column`), t.emitContainerClasses()), a && !l ? t.unsetGrabCursor() : !a && l && t.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((L) => {
2681
2677
  if (typeof m[L] > "u") return;
2682
2678
  const I = s[L] && s[L].enabled, z = m[L] && m[L].enabled;
2683
2679
  I && !z && t[L].disable(), !I && z && t[L].enable();
2684
2680
  });
2685
- const g = m.direction && m.direction !== s.direction, u = s.loop && (m.slidesPerView !== s.slidesPerView || g), h = s.loop;
2681
+ const g = m.direction && m.direction !== s.direction, p = s.loop && (m.slidesPerView !== s.slidesPerView || g), h = s.loop;
2686
2682
  g && i && t.changeDirection(), j(t.params, m);
2687
2683
  const E = t.params.enabled, b = t.params.loop;
2688
2684
  Object.assign(t, {
2689
2685
  allowTouchMove: t.params.allowTouchMove,
2690
2686
  allowSlideNext: t.params.allowSlideNext,
2691
2687
  allowSlidePrev: t.params.allowSlidePrev
2692
- }), S && !E ? t.disable() : !S && E && t.enable(), t.currentBreakpoint = f, t.emit("_beforeBreakpoint", m), i && (u ? (t.loopDestroy(), t.loopCreate(e), t.updateSlides()) : !h && b ? (t.loopCreate(e), t.updateSlides()) : h && !b && t.loopDestroy()), t.emit("breakpoint", m);
2688
+ }), S && !E ? t.disable() : !S && E && t.enable(), t.currentBreakpoint = f, t.emit("_beforeBreakpoint", m), i && (p ? (t.loopDestroy(), t.loopCreate(e), t.updateSlides()) : !h && b ? (t.loopCreate(e), t.updateSlides()) : h && !b && t.loopDestroy()), t.emit("breakpoint", m);
2693
2689
  }
2694
- function Yi(t, e, i) {
2690
+ function Bi(t, e, i) {
2695
2691
  if (e === void 0 && (e = "window"), !t || e === "container" && !i) return;
2696
2692
  let s = false;
2697
- const n = k(), r = e === "window" ? n.innerHeight : i.clientHeight, d = Object.keys(t).map((o) => {
2693
+ const r = k(), n = e === "window" ? r.innerHeight : i.clientHeight, d = Object.keys(t).map((o) => {
2698
2694
  if (typeof o == "string" && o.indexOf("@") === 0) {
2699
2695
  const c = parseFloat(o.substr(1));
2700
2696
  return {
2701
- value: r * c,
2697
+ value: n * c,
2702
2698
  point: o
2703
2699
  };
2704
2700
  }
@@ -2713,30 +2709,30 @@ function Yi(t, e, i) {
2713
2709
  point: c,
2714
2710
  value: f
2715
2711
  } = d[o];
2716
- e === "window" ? n.matchMedia(`(min-width: ${f}px)`).matches && (s = c) : f <= i.clientWidth && (s = c);
2712
+ e === "window" ? r.matchMedia(`(min-width: ${f}px)`).matches && (s = c) : f <= i.clientWidth && (s = c);
2717
2713
  }
2718
2714
  return s || "max";
2719
2715
  }
2720
- var Xi = {
2721
- setBreakpoint: Bi,
2722
- getBreakpoint: Yi
2716
+ var Yi = {
2717
+ setBreakpoint: Gi,
2718
+ getBreakpoint: Bi
2723
2719
  };
2724
- function Ri(t, e) {
2720
+ function Xi(t, e) {
2725
2721
  const i = [];
2726
2722
  return t.forEach((s) => {
2727
- typeof s == "object" ? Object.keys(s).forEach((n) => {
2728
- s[n] && i.push(e + n);
2723
+ typeof s == "object" ? Object.keys(s).forEach((r) => {
2724
+ s[r] && i.push(e + r);
2729
2725
  }) : typeof s == "string" && i.push(e + s);
2730
2726
  }), i;
2731
2727
  }
2732
- function Vi() {
2728
+ function Ri() {
2733
2729
  const t = this, {
2734
2730
  classNames: e,
2735
2731
  params: i,
2736
2732
  rtl: s,
2737
- el: n,
2738
- device: r
2739
- } = t, d = Ri(["initialized", i.direction, {
2733
+ el: r,
2734
+ device: n
2735
+ } = t, d = Xi(["initialized", i.direction, {
2740
2736
  "free-mode": t.params.freeMode && i.freeMode.enabled
2741
2737
  }, {
2742
2738
  autoheight: i.autoHeight
@@ -2747,9 +2743,9 @@ function Vi() {
2747
2743
  }, {
2748
2744
  "grid-column": i.grid && i.grid.rows > 1 && i.grid.fill === "column"
2749
2745
  }, {
2750
- android: r.android
2746
+ android: n.android
2751
2747
  }, {
2752
- ios: r.ios
2748
+ ios: n.ios
2753
2749
  }, {
2754
2750
  "css-mode": i.cssMode
2755
2751
  }, {
@@ -2757,20 +2753,20 @@ function Vi() {
2757
2753
  }, {
2758
2754
  "watch-progress": i.watchSlidesProgress
2759
2755
  }], i.containerModifierClass);
2760
- e.push(...d), n.classList.add(...e), t.emitContainerClasses();
2756
+ e.push(...d), r.classList.add(...e), t.emitContainerClasses();
2761
2757
  }
2762
- function Wi() {
2758
+ function Vi() {
2763
2759
  const t = this, {
2764
2760
  el: e,
2765
2761
  classNames: i
2766
2762
  } = t;
2767
2763
  !e || typeof e == "string" || (e.classList.remove(...i), t.emitContainerClasses());
2768
2764
  }
2769
- var ki = {
2770
- addClasses: Vi,
2771
- removeClasses: Wi
2765
+ var Wi = {
2766
+ addClasses: Ri,
2767
+ removeClasses: Vi
2772
2768
  };
2773
- function Ni() {
2769
+ function ki() {
2774
2770
  const t = this, {
2775
2771
  isLocked: e,
2776
2772
  params: i
@@ -2778,14 +2774,14 @@ function Ni() {
2778
2774
  slidesOffsetBefore: s
2779
2775
  } = i;
2780
2776
  if (s) {
2781
- const n = t.slides.length - 1, r = t.slidesGrid[n] + t.slidesSizesGrid[n] + s * 2;
2782
- t.isLocked = t.size > r;
2777
+ const r = t.slides.length - 1, n = t.slidesGrid[r] + t.slidesSizesGrid[r] + s * 2;
2778
+ t.isLocked = t.size > n;
2783
2779
  } else
2784
2780
  t.isLocked = t.snapGrid.length === 1;
2785
2781
  i.allowSlideNext === true && (t.allowSlideNext = !t.isLocked), i.allowSlidePrev === true && (t.allowSlidePrev = !t.isLocked), e && e !== t.isLocked && (t.isEnd = false), e !== t.isLocked && t.emit(t.isLocked ? "lock" : "unlock");
2786
2782
  }
2787
2783
  var Hi = {
2788
- checkOverflow: Ni
2784
+ checkOverflow: ki
2789
2785
  }, Fe = {
2790
2786
  init: true,
2791
2787
  direction: "horizontal",
@@ -2907,64 +2903,64 @@ var Hi = {
2907
2903
  // Internals
2908
2904
  _emitClasses: false
2909
2905
  };
2910
- function Fi(t, e) {
2906
+ function Ni(t, e) {
2911
2907
  return function(s) {
2912
2908
  s === void 0 && (s = {});
2913
- const n = Object.keys(s)[0], r = s[n];
2914
- if (typeof r != "object" || r === null) {
2909
+ const r = Object.keys(s)[0], n = s[r];
2910
+ if (typeof n != "object" || n === null) {
2915
2911
  j(e, s);
2916
2912
  return;
2917
2913
  }
2918
- if (t[n] === true && (t[n] = {
2914
+ if (t[r] === true && (t[r] = {
2919
2915
  enabled: true
2920
- }), n === "navigation" && t[n] && t[n].enabled && !t[n].prevEl && !t[n].nextEl && (t[n].auto = true), ["pagination", "scrollbar"].indexOf(n) >= 0 && t[n] && t[n].enabled && !t[n].el && (t[n].auto = true), !(n in t && "enabled" in r)) {
2916
+ }), r === "navigation" && t[r] && t[r].enabled && !t[r].prevEl && !t[r].nextEl && (t[r].auto = true), ["pagination", "scrollbar"].indexOf(r) >= 0 && t[r] && t[r].enabled && !t[r].el && (t[r].auto = true), !(r in t && "enabled" in n)) {
2921
2917
  j(e, s);
2922
2918
  return;
2923
2919
  }
2924
- typeof t[n] == "object" && !("enabled" in t[n]) && (t[n].enabled = true), t[n] || (t[n] = {
2920
+ typeof t[r] == "object" && !("enabled" in t[r]) && (t[r].enabled = true), t[r] || (t[r] = {
2925
2921
  enabled: false
2926
2922
  }), j(e, s);
2927
2923
  };
2928
2924
  }
2929
- const Re = {
2930
- eventsEmitter: kt,
2931
- update: ei,
2932
- translate: ai,
2933
- transition: ci,
2934
- slide: wi,
2935
- loop: xi,
2936
- grabCursor: Ci,
2937
- events: Gi,
2938
- breakpoints: Xi,
2925
+ const Xe = {
2926
+ eventsEmitter: Wt,
2927
+ update: Jt,
2928
+ translate: ri,
2929
+ transition: di,
2930
+ slide: vi,
2931
+ loop: bi,
2932
+ grabCursor: Ti,
2933
+ events: _i,
2934
+ breakpoints: Yi,
2939
2935
  checkOverflow: Hi,
2940
- classes: ki
2941
- }, Ve = {};
2936
+ classes: Wi
2937
+ }, Re = {};
2942
2938
  let qe = class J {
2943
2939
  constructor() {
2944
2940
  let e, i;
2945
- for (var s = arguments.length, n = new Array(s), r = 0; r < s; r++)
2946
- n[r] = arguments[r];
2947
- n.length === 1 && n[0].constructor && Object.prototype.toString.call(n[0]).slice(8, -1) === "Object" ? i = n[0] : [e, i] = n, i || (i = {}), i = j({}, i), e && !i.el && (i.el = e);
2941
+ for (var s = arguments.length, r = new Array(s), n = 0; n < s; n++)
2942
+ r[n] = arguments[n];
2943
+ r.length === 1 && r[0].constructor && Object.prototype.toString.call(r[0]).slice(8, -1) === "Object" ? i = r[0] : [e, i] = r, i || (i = {}), i = j({}, i), e && !i.el && (i.el = e);
2948
2944
  const d = Z();
2949
2945
  if (i.el && typeof i.el == "string" && d.querySelectorAll(i.el).length > 1) {
2950
- const p = [];
2946
+ const u = [];
2951
2947
  return d.querySelectorAll(i.el).forEach((m) => {
2952
2948
  const v = j({}, i, {
2953
2949
  el: m
2954
2950
  });
2955
- p.push(new J(v));
2956
- }), p;
2951
+ u.push(new J(v));
2952
+ }), u;
2957
2953
  }
2958
2954
  const o = this;
2959
- o.__swiper__ = true, o.support = lt(), o.device = ot({
2955
+ o.__swiper__ = true, o.support = at(), o.device = lt({
2960
2956
  userAgent: i.userAgent
2961
- }), o.browser = dt(), o.eventsListeners = {}, o.eventsAnyListeners = [], o.modules = [...o.__modules__], i.modules && Array.isArray(i.modules) && o.modules.push(...i.modules);
2957
+ }), o.browser = ot(), o.eventsListeners = {}, o.eventsAnyListeners = [], o.modules = [...o.__modules__], i.modules && Array.isArray(i.modules) && o.modules.push(...i.modules);
2962
2958
  const c = {};
2963
- o.modules.forEach((p) => {
2964
- p({
2959
+ o.modules.forEach((u) => {
2960
+ u({
2965
2961
  params: i,
2966
2962
  swiper: o,
2967
- extendParams: Fi(i, c),
2963
+ extendParams: Ni(i, c),
2968
2964
  on: o.on.bind(o),
2969
2965
  once: o.once.bind(o),
2970
2966
  off: o.off.bind(o),
@@ -2972,8 +2968,8 @@ let qe = class J {
2972
2968
  });
2973
2969
  });
2974
2970
  const f = j({}, Fe, c);
2975
- return o.params = j({}, f, Ve, i), o.originalParams = j({}, o.params), o.passedParams = j({}, i), o.params && o.params.on && Object.keys(o.params.on).forEach((p) => {
2976
- o.on(p, o.params.on[p]);
2971
+ return o.params = j({}, f, Re, i), o.originalParams = j({}, o.params), o.passedParams = j({}, i), o.params && o.params.on && Object.keys(o.params.on).forEach((u) => {
2972
+ o.on(u, o.params.on[u]);
2977
2973
  }), o.params && o.params.onAny && o.onAny(o.params.onAny), Object.assign(o, {
2978
2974
  enabled: o.params.enabled,
2979
2975
  el: e,
@@ -3063,15 +3059,12 @@ let qe = class J {
3063
3059
  const {
3064
3060
  slidesEl: i,
3065
3061
  params: s
3066
- } = this, n = q(i, `.${s.slideClass}, swiper-slide`), r = Le(n[0]);
3067
- return Le(e) - r;
3062
+ } = this, r = q(i, `.${s.slideClass}, swiper-slide`), n = Pe(r[0]);
3063
+ return Pe(e) - n;
3068
3064
  }
3069
3065
  getSlideIndexByData(e) {
3070
3066
  return this.getSlideIndex(this.slides.find((i) => i.getAttribute("data-swiper-slide-index") * 1 === e));
3071
3067
  }
3072
- getSlideIndexWhenGrid(e) {
3073
- return this.grid && this.params.grid && this.params.grid.rows > 1 && (this.params.grid.fill === "column" ? e = Math.floor(e / this.params.grid.rows) : this.params.grid.fill === "row" && (e = e % Math.ceil(this.slides.length / this.params.grid.rows))), e;
3074
- }
3075
3068
  recalcSlides() {
3076
3069
  const e = this, {
3077
3070
  slidesEl: i,
@@ -3090,7 +3083,7 @@ let qe = class J {
3090
3083
  setProgress(e, i) {
3091
3084
  const s = this;
3092
3085
  e = Math.min(Math.max(e, 0), 1);
3093
- const n = s.minTranslate(), d = (s.maxTranslate() - n) * e + n;
3086
+ const r = s.minTranslate(), d = (s.maxTranslate() - r) * e + r;
3094
3087
  s.translateTo(d, typeof i > "u" ? 0 : i), s.updateActiveIndex(), s.updateSlidesClasses();
3095
3088
  }
3096
3089
  emitContainerClasses() {
@@ -3108,38 +3101,38 @@ let qe = class J {
3108
3101
  if (!e.params._emitClasses || !e.el) return;
3109
3102
  const i = [];
3110
3103
  e.slides.forEach((s) => {
3111
- const n = e.getSlideClasses(s);
3104
+ const r = e.getSlideClasses(s);
3112
3105
  i.push({
3113
3106
  slideEl: s,
3114
- classNames: n
3115
- }), e.emit("_slideClass", s, n);
3107
+ classNames: r
3108
+ }), e.emit("_slideClass", s, r);
3116
3109
  }), e.emit("_slideClasses", i);
3117
3110
  }
3118
3111
  slidesPerViewDynamic(e, i) {
3119
3112
  e === void 0 && (e = "current"), i === void 0 && (i = false);
3120
3113
  const s = this, {
3121
- params: n,
3122
- slides: r,
3114
+ params: r,
3115
+ slides: n,
3123
3116
  slidesGrid: d,
3124
3117
  slidesSizesGrid: o,
3125
3118
  size: c,
3126
3119
  activeIndex: f
3127
3120
  } = s;
3128
- let p = 1;
3129
- if (typeof n.slidesPerView == "number") return n.slidesPerView;
3130
- if (n.centeredSlides) {
3131
- let m = r[f] ? Math.ceil(r[f].swiperSlideSize) : 0, v;
3132
- for (let w = f + 1; w < r.length; w += 1)
3133
- r[w] && !v && (m += Math.ceil(r[w].swiperSlideSize), p += 1, m > c && (v = true));
3121
+ let u = 1;
3122
+ if (typeof r.slidesPerView == "number") return r.slidesPerView;
3123
+ if (r.centeredSlides) {
3124
+ let m = n[f] ? Math.ceil(n[f].swiperSlideSize) : 0, v;
3125
+ for (let w = f + 1; w < n.length; w += 1)
3126
+ n[w] && !v && (m += Math.ceil(n[w].swiperSlideSize), u += 1, m > c && (v = true));
3134
3127
  for (let w = f - 1; w >= 0; w -= 1)
3135
- r[w] && !v && (m += r[w].swiperSlideSize, p += 1, m > c && (v = true));
3128
+ n[w] && !v && (m += n[w].swiperSlideSize, u += 1, m > c && (v = true));
3136
3129
  } else if (e === "current")
3137
- for (let m = f + 1; m < r.length; m += 1)
3138
- (i ? d[m] + o[m] - d[f] < c : d[m] - d[f] < c) && (p += 1);
3130
+ for (let m = f + 1; m < n.length; m += 1)
3131
+ (i ? d[m] + o[m] - d[f] < c : d[m] - d[f] < c) && (u += 1);
3139
3132
  else
3140
3133
  for (let m = f - 1; m >= 0; m -= 1)
3141
- d[f] - d[m] < c && (p += 1);
3142
- return p;
3134
+ d[f] - d[m] < c && (u += 1);
3135
+ return u;
3143
3136
  }
3144
3137
  update() {
3145
3138
  const e = this;
@@ -3149,30 +3142,30 @@ let qe = class J {
3149
3142
  params: s
3150
3143
  } = e;
3151
3144
  s.breakpoints && e.setBreakpoint(), [...e.el.querySelectorAll('[loading="lazy"]')].forEach((d) => {
3152
- d.complete && Ce(e, d);
3145
+ d.complete && Te(e, d);
3153
3146
  }), e.updateSize(), e.updateSlides(), e.updateProgress(), e.updateSlidesClasses();
3154
- function n() {
3147
+ function r() {
3155
3148
  const d = e.rtlTranslate ? e.translate * -1 : e.translate, o = Math.min(Math.max(d, e.maxTranslate()), e.minTranslate());
3156
3149
  e.setTranslate(o), e.updateActiveIndex(), e.updateSlidesClasses();
3157
3150
  }
3158
- let r;
3151
+ let n;
3159
3152
  if (s.freeMode && s.freeMode.enabled && !s.cssMode)
3160
- n(), s.autoHeight && e.updateAutoHeight();
3153
+ r(), s.autoHeight && e.updateAutoHeight();
3161
3154
  else {
3162
3155
  if ((s.slidesPerView === "auto" || s.slidesPerView > 1) && e.isEnd && !s.centeredSlides) {
3163
3156
  const d = e.virtual && s.virtual.enabled ? e.virtual.slides : e.slides;
3164
- r = e.slideTo(d.length - 1, 0, false, true);
3157
+ n = e.slideTo(d.length - 1, 0, false, true);
3165
3158
  } else
3166
- r = e.slideTo(e.activeIndex, 0, false, true);
3167
- r || n();
3159
+ n = e.slideTo(e.activeIndex, 0, false, true);
3160
+ n || r();
3168
3161
  }
3169
3162
  s.watchOverflow && i !== e.snapGrid && e.checkOverflow(), e.emit("update");
3170
3163
  }
3171
3164
  changeDirection(e, i) {
3172
3165
  i === void 0 && (i = true);
3173
- const s = this, n = s.params.direction;
3174
- return e || (e = n === "horizontal" ? "vertical" : "horizontal"), e === n || e !== "horizontal" && e !== "vertical" || (s.el.classList.remove(`${s.params.containerModifierClass}${n}`), s.el.classList.add(`${s.params.containerModifierClass}${e}`), s.emitContainerClasses(), s.params.direction = e, s.slides.forEach((r) => {
3175
- e === "vertical" ? r.style.width = "" : r.style.height = "";
3166
+ const s = this, r = s.params.direction;
3167
+ return e || (e = r === "horizontal" ? "vertical" : "horizontal"), e === r || e !== "horizontal" && e !== "vertical" || (s.el.classList.remove(`${s.params.containerModifierClass}${r}`), s.el.classList.add(`${s.params.containerModifierClass}${e}`), s.emitContainerClasses(), s.params.direction = e, s.slides.forEach((n) => {
3168
+ e === "vertical" ? n.style.width = "" : n.style.height = "";
3176
3169
  }), s.emit("changeDirection"), i && s.update()), s;
3177
3170
  }
3178
3171
  changeLanguageDirection(e) {
@@ -3186,8 +3179,8 @@ let qe = class J {
3186
3179
  if (typeof s == "string" && (s = document.querySelector(s)), !s)
3187
3180
  return false;
3188
3181
  s.swiper = i, s.parentNode && s.parentNode.host && s.parentNode.host.nodeName === i.params.swiperElementNodeName.toUpperCase() && (i.isElement = true);
3189
- const n = () => `.${(i.params.wrapperClass || "").trim().split(" ").join(".")}`;
3190
- let d = s && s.shadowRoot && s.shadowRoot.querySelector ? s.shadowRoot.querySelector(n()) : q(s, n())[0];
3182
+ const r = () => `.${(i.params.wrapperClass || "").trim().split(" ").join(".")}`;
3183
+ let d = s && s.shadowRoot && s.shadowRoot.querySelector ? s.shadowRoot.querySelector(r()) : q(s, r())[0];
3191
3184
  return !d && i.params.createElements && (d = fe("div", i.params.wrapperClass), s.append(d), q(s, `.${i.params.slideClass}`).forEach((o) => {
3192
3185
  d.append(o);
3193
3186
  })), Object.assign(i, {
@@ -3197,41 +3190,41 @@ let qe = class J {
3197
3190
  hostEl: i.isElement ? s.parentNode.host : s,
3198
3191
  mounted: true,
3199
3192
  // RTL
3200
- rtl: s.dir.toLowerCase() === "rtl" || re(s, "direction") === "rtl",
3201
- rtlTranslate: i.params.direction === "horizontal" && (s.dir.toLowerCase() === "rtl" || re(s, "direction") === "rtl"),
3202
- wrongRTL: re(d, "display") === "-webkit-box"
3193
+ rtl: s.dir.toLowerCase() === "rtl" || ne(s, "direction") === "rtl",
3194
+ rtlTranslate: i.params.direction === "horizontal" && (s.dir.toLowerCase() === "rtl" || ne(s, "direction") === "rtl"),
3195
+ wrongRTL: ne(d, "display") === "-webkit-box"
3203
3196
  }), true;
3204
3197
  }
3205
3198
  init(e) {
3206
3199
  const i = this;
3207
3200
  if (i.initialized || i.mount(e) === false) return i;
3208
3201
  i.emit("beforeInit"), i.params.breakpoints && i.setBreakpoint(), i.addClasses(), i.updateSize(), i.updateSlides(), i.params.watchOverflow && i.checkOverflow(), i.params.grabCursor && i.enabled && i.setGrabCursor(), i.params.loop && i.virtual && i.params.virtual.enabled ? i.slideTo(i.params.initialSlide + i.virtual.slidesBefore, 0, i.params.runCallbacksOnInit, false, true) : i.slideTo(i.params.initialSlide, 0, i.params.runCallbacksOnInit, false, true), i.params.loop && i.loopCreate(void 0, true), i.attachEvents();
3209
- const n = [...i.el.querySelectorAll('[loading="lazy"]')];
3210
- return i.isElement && n.push(...i.hostEl.querySelectorAll('[loading="lazy"]')), n.forEach((r) => {
3211
- r.complete ? Ce(i, r) : r.addEventListener("load", (d) => {
3212
- Ce(i, d.target);
3202
+ const r = [...i.el.querySelectorAll('[loading="lazy"]')];
3203
+ return i.isElement && r.push(...i.hostEl.querySelectorAll('[loading="lazy"]')), r.forEach((n) => {
3204
+ n.complete ? Te(i, n) : n.addEventListener("load", (d) => {
3205
+ Te(i, d.target);
3213
3206
  });
3214
- }), He(i), i.initialized = true, He(i), i.emit("init"), i.emit("afterInit"), i;
3207
+ }), Ne(i), i.initialized = true, Ne(i), i.emit("init"), i.emit("afterInit"), i;
3215
3208
  }
3216
3209
  destroy(e, i) {
3217
3210
  e === void 0 && (e = true), i === void 0 && (i = true);
3218
3211
  const s = this, {
3219
- params: n,
3220
- el: r,
3212
+ params: r,
3213
+ el: n,
3221
3214
  wrapperEl: d,
3222
3215
  slides: o
3223
3216
  } = s;
3224
- return typeof s.params > "u" || s.destroyed || (s.emit("beforeDestroy"), s.initialized = false, s.detachEvents(), n.loop && s.loopDestroy(), i && (s.removeClasses(), r && typeof r != "string" && r.removeAttribute("style"), d && d.removeAttribute("style"), o && o.length && o.forEach((c) => {
3225
- c.classList.remove(n.slideVisibleClass, n.slideFullyVisibleClass, n.slideActiveClass, n.slideNextClass, n.slidePrevClass), c.removeAttribute("style"), c.removeAttribute("data-swiper-slide-index");
3217
+ return typeof s.params > "u" || s.destroyed || (s.emit("beforeDestroy"), s.initialized = false, s.detachEvents(), r.loop && s.loopDestroy(), i && (s.removeClasses(), n && typeof n != "string" && n.removeAttribute("style"), d && d.removeAttribute("style"), o && o.length && o.forEach((c) => {
3218
+ c.classList.remove(r.slideVisibleClass, r.slideFullyVisibleClass, r.slideActiveClass, r.slideNextClass, r.slidePrevClass), c.removeAttribute("style"), c.removeAttribute("data-swiper-slide-index");
3226
3219
  })), s.emit("destroy"), Object.keys(s.eventsListeners).forEach((c) => {
3227
3220
  s.off(c);
3228
- }), e !== false && (s.el && typeof s.el != "string" && (s.el.swiper = null), Mt(s)), s.destroyed = true), null;
3221
+ }), e !== false && (s.el && typeof s.el != "string" && (s.el.swiper = null), Ct(s)), s.destroyed = true), null;
3229
3222
  }
3230
3223
  static extendDefaults(e) {
3231
- j(Ve, e);
3224
+ j(Re, e);
3232
3225
  }
3233
3226
  static get extendedDefaults() {
3234
- return Ve;
3227
+ return Re;
3235
3228
  }
3236
3229
  static get defaults() {
3237
3230
  return Fe;
@@ -3245,13 +3238,13 @@ let qe = class J {
3245
3238
  return Array.isArray(e) ? (e.forEach((i) => J.installModule(i)), J) : (J.installModule(e), J);
3246
3239
  }
3247
3240
  };
3248
- Object.keys(Re).forEach((t) => {
3249
- Object.keys(Re[t]).forEach((e) => {
3250
- qe.prototype[e] = Re[t][e];
3241
+ Object.keys(Xe).forEach((t) => {
3242
+ Object.keys(Xe[t]).forEach((e) => {
3243
+ qe.prototype[e] = Xe[t][e];
3251
3244
  });
3252
3245
  });
3253
- qe.use([Vt, Wt]);
3254
- const ut = [
3246
+ qe.use([Rt, Vt]);
3247
+ const ft = [
3255
3248
  "eventsPrefix",
3256
3249
  "injectStyles",
3257
3250
  "injectStylesUrls",
@@ -3379,132 +3372,132 @@ function ce(t, e) {
3379
3372
  typeof t[s] > "u" ? t[s] = e[s] : ae(e[s]) && ae(t[s]) && Object.keys(e[s]).length > 0 ? e[s].__swiper__ ? t[s] = e[s] : ce(t[s], e[s]) : t[s] = e[s];
3380
3373
  });
3381
3374
  }
3382
- function pt(t) {
3375
+ function ut(t) {
3383
3376
  return t === void 0 && (t = {}), t.navigation && typeof t.navigation.nextEl > "u" && typeof t.navigation.prevEl > "u";
3384
3377
  }
3385
- function mt(t) {
3378
+ function pt(t) {
3386
3379
  return t === void 0 && (t = {}), t.pagination && typeof t.pagination.el > "u";
3387
3380
  }
3388
- function ht(t) {
3381
+ function mt(t) {
3389
3382
  return t === void 0 && (t = {}), t.scrollbar && typeof t.scrollbar.el > "u";
3390
3383
  }
3391
- function gt(t) {
3384
+ function ht(t) {
3392
3385
  t === void 0 && (t = "");
3393
3386
  const e = t.split(" ").map((s) => s.trim()).filter((s) => !!s), i = [];
3394
3387
  return e.forEach((s) => {
3395
3388
  i.indexOf(s) < 0 && i.push(s);
3396
3389
  }), i.join(" ");
3397
3390
  }
3398
- function ji(t) {
3391
+ function Fi(t) {
3399
3392
  return t === void 0 && (t = ""), t ? t.includes("swiper-wrapper") ? t : `swiper-wrapper ${t}` : "swiper-wrapper";
3400
3393
  }
3401
- function qi(t) {
3394
+ function ji(t) {
3402
3395
  let {
3403
3396
  swiper: e,
3404
3397
  slides: i,
3405
3398
  passedParams: s,
3406
- changedParams: n,
3407
- nextEl: r,
3399
+ changedParams: r,
3400
+ nextEl: n,
3408
3401
  prevEl: d,
3409
3402
  scrollbarEl: o,
3410
3403
  paginationEl: c
3411
3404
  } = t;
3412
- const f = n.filter((y) => y !== "children" && y !== "direction" && y !== "wrapperClass"), {
3413
- params: p,
3405
+ const f = r.filter((y) => y !== "children" && y !== "direction" && y !== "wrapperClass"), {
3406
+ params: u,
3414
3407
  pagination: m,
3415
3408
  navigation: v,
3416
3409
  scrollbar: w,
3417
3410
  virtual: a,
3418
3411
  thumbs: l
3419
3412
  } = e;
3420
- let S, g, u, h, E, b, L, I;
3421
- n.includes("thumbs") && s.thumbs && s.thumbs.swiper && !s.thumbs.swiper.destroyed && p.thumbs && (!p.thumbs.swiper || p.thumbs.swiper.destroyed) && (S = true), n.includes("controller") && s.controller && s.controller.control && p.controller && !p.controller.control && (g = true), n.includes("pagination") && s.pagination && (s.pagination.el || c) && (p.pagination || p.pagination === false) && m && !m.el && (u = true), n.includes("scrollbar") && s.scrollbar && (s.scrollbar.el || o) && (p.scrollbar || p.scrollbar === false) && w && !w.el && (h = true), n.includes("navigation") && s.navigation && (s.navigation.prevEl || d) && (s.navigation.nextEl || r) && (p.navigation || p.navigation === false) && v && !v.prevEl && !v.nextEl && (E = true);
3413
+ let S, g, p, h, E, b, L, I;
3414
+ r.includes("thumbs") && s.thumbs && s.thumbs.swiper && !s.thumbs.swiper.destroyed && u.thumbs && (!u.thumbs.swiper || u.thumbs.swiper.destroyed) && (S = true), r.includes("controller") && s.controller && s.controller.control && u.controller && !u.controller.control && (g = true), r.includes("pagination") && s.pagination && (s.pagination.el || c) && (u.pagination || u.pagination === false) && m && !m.el && (p = true), r.includes("scrollbar") && s.scrollbar && (s.scrollbar.el || o) && (u.scrollbar || u.scrollbar === false) && w && !w.el && (h = true), r.includes("navigation") && s.navigation && (s.navigation.prevEl || d) && (s.navigation.nextEl || n) && (u.navigation || u.navigation === false) && v && !v.prevEl && !v.nextEl && (E = true);
3422
3415
  const z = (y) => {
3423
- e[y] && (e[y].destroy(), y === "navigation" ? (e.isElement && (e[y].prevEl.remove(), e[y].nextEl.remove()), p[y].prevEl = void 0, p[y].nextEl = void 0, e[y].prevEl = void 0, e[y].nextEl = void 0) : (e.isElement && e[y].el.remove(), p[y].el = void 0, e[y].el = void 0));
3416
+ e[y] && (e[y].destroy(), y === "navigation" ? (e.isElement && (e[y].prevEl.remove(), e[y].nextEl.remove()), u[y].prevEl = void 0, u[y].nextEl = void 0, e[y].prevEl = void 0, e[y].nextEl = void 0) : (e.isElement && e[y].el.remove(), u[y].el = void 0, e[y].el = void 0));
3424
3417
  };
3425
- n.includes("loop") && e.isElement && (p.loop && !s.loop ? b = true : !p.loop && s.loop ? L = true : I = true), f.forEach((y) => {
3426
- if (ae(p[y]) && ae(s[y]))
3427
- Object.assign(p[y], s[y]), (y === "navigation" || y === "pagination" || y === "scrollbar") && "enabled" in s[y] && !s[y].enabled && z(y);
3418
+ r.includes("loop") && e.isElement && (u.loop && !s.loop ? b = true : !u.loop && s.loop ? L = true : I = true), f.forEach((y) => {
3419
+ if (ae(u[y]) && ae(s[y]))
3420
+ Object.assign(u[y], s[y]), (y === "navigation" || y === "pagination" || y === "scrollbar") && "enabled" in s[y] && !s[y].enabled && z(y);
3428
3421
  else {
3429
3422
  const T = s[y];
3430
- (T === true || T === false) && (y === "navigation" || y === "pagination" || y === "scrollbar") ? T === false && z(y) : p[y] = s[y];
3423
+ (T === true || T === false) && (y === "navigation" || y === "pagination" || y === "scrollbar") ? T === false && z(y) : u[y] = s[y];
3431
3424
  }
3432
- }), f.includes("controller") && !g && e.controller && e.controller.control && p.controller && p.controller.control && (e.controller.control = p.controller.control), n.includes("children") && i && a && p.virtual.enabled ? (a.slides = i, a.update(true)) : n.includes("virtual") && a && p.virtual.enabled && (i && (a.slides = i), a.update(true)), n.includes("children") && i && p.loop && (I = true), S && l.init() && l.update(true), g && (e.controller.control = p.controller.control), u && (e.isElement && (!c || typeof c == "string") && (c = document.createElement("div"), c.classList.add("swiper-pagination"), c.part.add("pagination"), e.el.appendChild(c)), c && (p.pagination.el = c), m.init(), m.render(), m.update()), h && (e.isElement && (!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-scrollbar"), o.part.add("scrollbar"), e.el.appendChild(o)), o && (p.scrollbar.el = o), w.init(), w.updateSize(), w.setTranslate()), E && (e.isElement && ((!r || typeof r == "string") && (r = document.createElement("div"), r.classList.add("swiper-button-next"), ue(r, e.hostEl.constructor.nextButtonSvg), r.part.add("button-next"), e.el.appendChild(r)), (!d || typeof d == "string") && (d = document.createElement("div"), d.classList.add("swiper-button-prev"), ue(d, e.hostEl.constructor.prevButtonSvg), d.part.add("button-prev"), e.el.appendChild(d))), r && (p.navigation.nextEl = r), d && (p.navigation.prevEl = d), v.init(), v.update()), n.includes("allowSlideNext") && (e.allowSlideNext = s.allowSlideNext), n.includes("allowSlidePrev") && (e.allowSlidePrev = s.allowSlidePrev), n.includes("direction") && e.changeDirection(s.direction, false), (b || I) && e.loopDestroy(), (L || I) && e.loopCreate(), e.update();
3425
+ }), f.includes("controller") && !g && e.controller && e.controller.control && u.controller && u.controller.control && (e.controller.control = u.controller.control), r.includes("children") && i && a && u.virtual.enabled ? (a.slides = i, a.update(true)) : r.includes("virtual") && a && u.virtual.enabled && (i && (a.slides = i), a.update(true)), r.includes("children") && i && u.loop && (I = true), S && l.init() && l.update(true), g && (e.controller.control = u.controller.control), p && (e.isElement && (!c || typeof c == "string") && (c = document.createElement("div"), c.classList.add("swiper-pagination"), c.part.add("pagination"), e.el.appendChild(c)), c && (u.pagination.el = c), m.init(), m.render(), m.update()), h && (e.isElement && (!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-scrollbar"), o.part.add("scrollbar"), e.el.appendChild(o)), o && (u.scrollbar.el = o), w.init(), w.updateSize(), w.setTranslate()), E && (e.isElement && ((!n || typeof n == "string") && (n = document.createElement("div"), n.classList.add("swiper-button-next"), n.innerHTML = e.hostEl.constructor.nextButtonSvg, n.part.add("button-next"), e.el.appendChild(n)), (!d || typeof d == "string") && (d = document.createElement("div"), d.classList.add("swiper-button-prev"), d.innerHTML = e.hostEl.constructor.prevButtonSvg, d.part.add("button-prev"), e.el.appendChild(d))), n && (u.navigation.nextEl = n), d && (u.navigation.prevEl = d), v.init(), v.update()), r.includes("allowSlideNext") && (e.allowSlideNext = s.allowSlideNext), r.includes("allowSlidePrev") && (e.allowSlidePrev = s.allowSlidePrev), r.includes("direction") && e.changeDirection(s.direction, false), (b || I) && e.loopDestroy(), (L || I) && e.loopCreate(), e.update();
3433
3426
  }
3434
- function Ui(t, e) {
3427
+ function qi(t, e) {
3435
3428
  t === void 0 && (t = {}), e === void 0 && (e = true);
3436
3429
  const i = {
3437
3430
  on: {}
3438
- }, s = {}, n = {};
3431
+ }, s = {}, r = {};
3439
3432
  ce(i, Fe), i._emitClasses = true, i.init = false;
3440
- const r = {}, d = ut.map((c) => c.replace(/_/, "")), o = Object.assign({}, t);
3433
+ const n = {}, d = ft.map((c) => c.replace(/_/, "")), o = Object.assign({}, t);
3441
3434
  return Object.keys(o).forEach((c) => {
3442
- typeof t[c] > "u" || (d.indexOf(c) >= 0 ? ae(t[c]) ? (i[c] = {}, n[c] = {}, ce(i[c], t[c]), ce(n[c], t[c])) : (i[c] = t[c], n[c] = t[c]) : c.search(/on[A-Z]/) === 0 && typeof t[c] == "function" ? e ? s[`${c[2].toLowerCase()}${c.substr(3)}`] = t[c] : i.on[`${c[2].toLowerCase()}${c.substr(3)}`] = t[c] : r[c] = t[c]);
3435
+ typeof t[c] > "u" || (d.indexOf(c) >= 0 ? ae(t[c]) ? (i[c] = {}, r[c] = {}, ce(i[c], t[c]), ce(r[c], t[c])) : (i[c] = t[c], r[c] = t[c]) : c.search(/on[A-Z]/) === 0 && typeof t[c] == "function" ? e ? s[`${c[2].toLowerCase()}${c.substr(3)}`] = t[c] : i.on[`${c[2].toLowerCase()}${c.substr(3)}`] = t[c] : n[c] = t[c]);
3443
3436
  }), ["navigation", "pagination", "scrollbar"].forEach((c) => {
3444
3437
  i[c] === true && (i[c] = {}), i[c] === false && delete i[c];
3445
3438
  }), {
3446
3439
  params: i,
3447
- passedParams: n,
3448
- rest: r,
3440
+ passedParams: r,
3441
+ rest: n,
3449
3442
  events: s
3450
3443
  };
3451
3444
  }
3452
- function Ki(t, e) {
3445
+ function Ui(t, e) {
3453
3446
  let {
3454
3447
  el: i,
3455
3448
  nextEl: s,
3456
- prevEl: n,
3457
- paginationEl: r,
3449
+ prevEl: r,
3450
+ paginationEl: n,
3458
3451
  scrollbarEl: d,
3459
3452
  swiper: o
3460
3453
  } = t;
3461
- pt(e) && s && n && (o.params.navigation.nextEl = s, o.originalParams.navigation.nextEl = s, o.params.navigation.prevEl = n, o.originalParams.navigation.prevEl = n), mt(e) && r && (o.params.pagination.el = r, o.originalParams.pagination.el = r), ht(e) && d && (o.params.scrollbar.el = d, o.originalParams.scrollbar.el = d), o.init(i);
3454
+ ut(e) && s && r && (o.params.navigation.nextEl = s, o.originalParams.navigation.nextEl = s, o.params.navigation.prevEl = r, o.originalParams.navigation.prevEl = r), pt(e) && n && (o.params.pagination.el = n, o.originalParams.pagination.el = n), mt(e) && d && (o.params.scrollbar.el = d, o.originalParams.scrollbar.el = d), o.init(i);
3462
3455
  }
3463
- function Zi(t, e, i, s, n) {
3464
- const r = [];
3465
- if (!e) return r;
3456
+ function Ki(t, e, i, s, r) {
3457
+ const n = [];
3458
+ if (!e) return n;
3466
3459
  const d = (c) => {
3467
- r.indexOf(c) < 0 && r.push(c);
3460
+ n.indexOf(c) < 0 && n.push(c);
3468
3461
  };
3469
3462
  if (i && s) {
3470
- const c = s.map(n), f = i.map(n);
3463
+ const c = s.map(r), f = i.map(r);
3471
3464
  c.join("") !== f.join("") && d("children"), s.length !== i.length && d("children");
3472
3465
  }
3473
- return ut.filter((c) => c[0] === "_").map((c) => c.replace(/_/, "")).forEach((c) => {
3466
+ return ft.filter((c) => c[0] === "_").map((c) => c.replace(/_/, "")).forEach((c) => {
3474
3467
  if (c in t && c in e)
3475
3468
  if (ae(t[c]) && ae(e[c])) {
3476
- const f = Object.keys(t[c]), p = Object.keys(e[c]);
3477
- f.length !== p.length ? d(c) : (f.forEach((m) => {
3469
+ const f = Object.keys(t[c]), u = Object.keys(e[c]);
3470
+ f.length !== u.length ? d(c) : (f.forEach((m) => {
3478
3471
  t[c][m] !== e[c][m] && d(c);
3479
- }), p.forEach((m) => {
3472
+ }), u.forEach((m) => {
3480
3473
  t[c][m] !== e[c][m] && d(c);
3481
3474
  }));
3482
3475
  } else t[c] !== e[c] && d(c);
3483
- }), r;
3476
+ }), n;
3484
3477
  }
3485
- const Qi = (t) => {
3486
- !t || t.destroyed || !t.params.virtual || t.params.virtual && !t.params.virtual.enabled || (t.updateSlides(), t.updateProgress(), t.updateSlidesClasses(), t.emit("_virtualUpdated"), t.parallax && t.params.parallax && t.params.parallax.enabled && t.parallax.setTranslate());
3478
+ const Zi = (t) => {
3479
+ !t || t.destroyed || !t.params.virtual || t.params.virtual && !t.params.virtual.enabled || (t.updateSlides(), t.updateProgress(), t.updateSlidesClasses(), t.parallax && t.params.parallax && t.params.parallax.enabled && t.parallax.setTranslate());
3487
3480
  };
3488
- function ze() {
3489
- return ze = Object.assign ? Object.assign.bind() : function(t) {
3481
+ function Le() {
3482
+ return Le = Object.assign ? Object.assign.bind() : function(t) {
3490
3483
  for (var e = 1; e < arguments.length; e++) {
3491
3484
  var i = arguments[e];
3492
3485
  for (var s in i)
3493
3486
  Object.prototype.hasOwnProperty.call(i, s) && (t[s] = i[s]);
3494
3487
  }
3495
3488
  return t;
3496
- }, ze.apply(this, arguments);
3489
+ }, Le.apply(this, arguments);
3497
3490
  }
3498
- function vt(t) {
3491
+ function gt(t) {
3499
3492
  return t.type && t.type.displayName && t.type.displayName.includes("SwiperSlide");
3500
3493
  }
3501
- function wt(t) {
3494
+ function vt(t) {
3502
3495
  const e = [];
3503
3496
  return V.Children.toArray(t).forEach((i) => {
3504
- vt(i) ? e.push(i) : i.props && i.props.children && wt(i.props.children).forEach((s) => e.push(s));
3497
+ gt(i) ? e.push(i) : i.props && i.props.children && vt(i.props.children).forEach((s) => e.push(s));
3505
3498
  }), e;
3506
3499
  }
3507
- function Ji(t) {
3500
+ function Qi(t) {
3508
3501
  const e = [], i = {
3509
3502
  "container-start": [],
3510
3503
  "container-end": [],
@@ -3512,13 +3505,13 @@ function Ji(t) {
3512
3505
  "wrapper-end": []
3513
3506
  };
3514
3507
  return V.Children.toArray(t).forEach((s) => {
3515
- if (vt(s))
3508
+ if (gt(s))
3516
3509
  e.push(s);
3517
3510
  else if (s.props && s.props.slot && i[s.props.slot])
3518
3511
  i[s.props.slot].push(s);
3519
3512
  else if (s.props && s.props.children) {
3520
- const n = wt(s.props.children);
3521
- n.length > 0 ? n.forEach((r) => e.push(r)) : i["container-end"].push(s);
3513
+ const r = vt(s.props.children);
3514
+ r.length > 0 ? r.forEach((n) => e.push(n)) : i["container-end"].push(s);
3522
3515
  } else
3523
3516
  i["container-end"].push(s);
3524
3517
  }), {
@@ -3526,53 +3519,53 @@ function Ji(t) {
3526
3519
  slots: i
3527
3520
  };
3528
3521
  }
3529
- function es(t, e, i) {
3522
+ function Ji(t, e, i) {
3530
3523
  if (!i) return null;
3531
- const s = (p) => {
3532
- let m = p;
3533
- return p < 0 ? m = e.length + p : m >= e.length && (m = m - e.length), m;
3534
- }, n = t.isHorizontal() ? {
3524
+ const s = (u) => {
3525
+ let m = u;
3526
+ return u < 0 ? m = e.length + u : m >= e.length && (m = m - e.length), m;
3527
+ }, r = t.isHorizontal() ? {
3535
3528
  [t.rtlTranslate ? "right" : "left"]: `${i.offset}px`
3536
3529
  } : {
3537
3530
  top: `${i.offset}px`
3538
3531
  }, {
3539
- from: r,
3532
+ from: n,
3540
3533
  to: d
3541
3534
  } = i, o = t.params.loop ? -e.length : 0, c = t.params.loop ? e.length * 2 : e.length, f = [];
3542
- for (let p = o; p < c; p += 1)
3543
- p >= r && p <= d && f.push(e[s(p)]);
3544
- return f.map((p, m) => /* @__PURE__ */ V.cloneElement(p, {
3535
+ for (let u = o; u < c; u += 1)
3536
+ u >= n && u <= d && f.push(e[s(u)]);
3537
+ return f.map((u, m) => /* @__PURE__ */ V.cloneElement(u, {
3545
3538
  swiper: t,
3546
- style: n,
3547
- key: p.props.virtualIndex || p.key || `slide-${m}`
3539
+ style: r,
3540
+ key: u.props.virtualIndex || u.key || `slide-${m}`
3548
3541
  }));
3549
3542
  }
3550
- function Se(t, e) {
3543
+ function we(t, e) {
3551
3544
  return typeof window > "u" ? R.useEffect(t, e) : R.useLayoutEffect(t, e);
3552
3545
  }
3553
- const it = /* @__PURE__ */ R.createContext(null), ts = /* @__PURE__ */ R.createContext(null), St = /* @__PURE__ */ R.forwardRef(function(t, e) {
3546
+ const it = /* @__PURE__ */ R.createContext(null), es = /* @__PURE__ */ R.createContext(null), wt = /* @__PURE__ */ R.forwardRef(function(t, e) {
3554
3547
  let {
3555
3548
  className: i,
3556
3549
  tag: s = "div",
3557
- wrapperTag: n = "div",
3558
- children: r,
3550
+ wrapperTag: r = "div",
3551
+ children: n,
3559
3552
  onSwiper: d,
3560
3553
  ...o
3561
3554
  } = t === void 0 ? {} : t, c = false;
3562
- const [f, p] = R.useState("swiper"), [m, v] = R.useState(null), [w, a] = R.useState(false), l = R.useRef(false), S = R.useRef(null), g = R.useRef(null), u = R.useRef(null), h = R.useRef(null), E = R.useRef(null), b = R.useRef(null), L = R.useRef(null), I = R.useRef(null), {
3555
+ const [f, u] = R.useState("swiper"), [m, v] = R.useState(null), [w, a] = R.useState(false), l = R.useRef(false), S = R.useRef(null), g = R.useRef(null), p = R.useRef(null), h = R.useRef(null), E = R.useRef(null), b = R.useRef(null), L = R.useRef(null), I = R.useRef(null), {
3563
3556
  params: z,
3564
3557
  passedParams: y,
3565
3558
  rest: T,
3566
3559
  events: P
3567
- } = Ui(o), {
3560
+ } = qi(o), {
3568
3561
  slides: O,
3569
3562
  slots: D
3570
- } = Ji(r), $ = () => {
3563
+ } = Qi(n), $ = () => {
3571
3564
  a(!w);
3572
3565
  };
3573
3566
  Object.assign(z.on, {
3574
- _containerClasses(G, N) {
3575
- p(N);
3567
+ _containerClasses(G, H) {
3568
+ u(H);
3576
3569
  }
3577
3570
  });
3578
3571
  const _ = () => {
@@ -3582,13 +3575,13 @@ const it = /* @__PURE__ */ R.createContext(null), ts = /* @__PURE__ */ R.createC
3582
3575
  };
3583
3576
  if (delete G.wrapperClass, g.current = new qe(G), g.current.virtual && g.current.params.virtual.enabled) {
3584
3577
  g.current.virtual.slides = O;
3585
- const N = {
3578
+ const H = {
3586
3579
  cache: false,
3587
3580
  slides: O,
3588
3581
  renderExternal: v,
3589
3582
  renderExternalUpdate: false
3590
3583
  };
3591
- ce(g.current.params.virtual, N), ce(g.current.originalParams.virtual, N);
3584
+ ce(g.current.params.virtual, H), ce(g.current.originalParams.virtual, H);
3592
3585
  }
3593
3586
  };
3594
3587
  S.current || _(), g.current && g.current.on("_beforeBreakpoint", $);
@@ -3605,9 +3598,9 @@ const it = /* @__PURE__ */ R.createContext(null), ts = /* @__PURE__ */ R.createC
3605
3598
  g.current && g.current.off("_beforeBreakpoint", $);
3606
3599
  }), R.useEffect(() => {
3607
3600
  !l.current && g.current && (g.current.emitSlidesClasses(), l.current = true);
3608
- }), Se(() => {
3601
+ }), we(() => {
3609
3602
  if (e && (e.current = S.current), !!S.current)
3610
- return g.current.destroyed && _(), Ki({
3603
+ return g.current.destroyed && _(), Ui({
3611
3604
  el: S.current,
3612
3605
  nextEl: E.current,
3613
3606
  prevEl: b.current,
@@ -3617,10 +3610,10 @@ const it = /* @__PURE__ */ R.createContext(null), ts = /* @__PURE__ */ R.createC
3617
3610
  }, z), d && !g.current.destroyed && d(g.current), () => {
3618
3611
  g.current && !g.current.destroyed && g.current.destroy(true, false);
3619
3612
  };
3620
- }, []), Se(() => {
3613
+ }, []), we(() => {
3621
3614
  A();
3622
- const G = Zi(y, u.current, O, h.current, (N) => N.key);
3623
- return u.current = y, h.current = O, G.length && g.current && !g.current.destroyed && qi({
3615
+ const G = Ki(y, p.current, O, h.current, (H) => H.key);
3616
+ return p.current = y, h.current = O, G.length && g.current && !g.current.destroyed && ji({
3624
3617
  swiper: g.current,
3625
3618
  slides: O,
3626
3619
  passedParams: y,
@@ -3632,123 +3625,123 @@ const it = /* @__PURE__ */ R.createContext(null), ts = /* @__PURE__ */ R.createC
3632
3625
  }), () => {
3633
3626
  Y();
3634
3627
  };
3635
- }), Se(() => {
3636
- Qi(g.current);
3628
+ }), we(() => {
3629
+ Zi(g.current);
3637
3630
  }, [m]);
3638
3631
  function X() {
3639
- return z.virtual ? es(g.current, O, m) : O.map((G, N) => /* @__PURE__ */ V.cloneElement(G, {
3632
+ return z.virtual ? Ji(g.current, O, m) : O.map((G, H) => /* @__PURE__ */ V.cloneElement(G, {
3640
3633
  swiper: g.current,
3641
- swiperSlideIndex: N
3634
+ swiperSlideIndex: H
3642
3635
  }));
3643
3636
  }
3644
- return /* @__PURE__ */ V.createElement(s, ze({
3637
+ return /* @__PURE__ */ V.createElement(s, Le({
3645
3638
  ref: S,
3646
- className: gt(`${f}${i ? ` ${i}` : ""}`)
3647
- }, T), /* @__PURE__ */ V.createElement(ts.Provider, {
3639
+ className: ht(`${f}${i ? ` ${i}` : ""}`)
3640
+ }, T), /* @__PURE__ */ V.createElement(es.Provider, {
3648
3641
  value: g.current
3649
- }, D["container-start"], /* @__PURE__ */ V.createElement(n, {
3650
- className: ji(z.wrapperClass)
3651
- }, D["wrapper-start"], X(), D["wrapper-end"]), pt(z) && /* @__PURE__ */ V.createElement(V.Fragment, null, /* @__PURE__ */ V.createElement("div", {
3642
+ }, D["container-start"], /* @__PURE__ */ V.createElement(r, {
3643
+ className: Fi(z.wrapperClass)
3644
+ }, D["wrapper-start"], X(), D["wrapper-end"]), ut(z) && /* @__PURE__ */ V.createElement(V.Fragment, null, /* @__PURE__ */ V.createElement("div", {
3652
3645
  ref: b,
3653
3646
  className: "swiper-button-prev"
3654
3647
  }), /* @__PURE__ */ V.createElement("div", {
3655
3648
  ref: E,
3656
3649
  className: "swiper-button-next"
3657
- })), ht(z) && /* @__PURE__ */ V.createElement("div", {
3650
+ })), mt(z) && /* @__PURE__ */ V.createElement("div", {
3658
3651
  ref: I,
3659
3652
  className: "swiper-scrollbar"
3660
- }), mt(z) && /* @__PURE__ */ V.createElement("div", {
3653
+ }), pt(z) && /* @__PURE__ */ V.createElement("div", {
3661
3654
  ref: L,
3662
3655
  className: "swiper-pagination"
3663
3656
  }), D["container-end"]));
3664
3657
  });
3665
- St.displayName = "Swiper";
3666
- const Et = /* @__PURE__ */ R.forwardRef(function(t, e) {
3658
+ wt.displayName = "Swiper";
3659
+ const St = /* @__PURE__ */ R.forwardRef(function(t, e) {
3667
3660
  let {
3668
3661
  tag: i = "div",
3669
3662
  children: s,
3670
- className: n = "",
3671
- swiper: r,
3663
+ className: r = "",
3664
+ swiper: n,
3672
3665
  zoom: d,
3673
3666
  lazy: o,
3674
3667
  virtualIndex: c,
3675
3668
  swiperSlideIndex: f,
3676
- ...p
3669
+ ...u
3677
3670
  } = t === void 0 ? {} : t;
3678
3671
  const m = R.useRef(null), [v, w] = R.useState("swiper-slide"), [a, l] = R.useState(false);
3679
3672
  function S(E, b, L) {
3680
3673
  b === m.current && w(L);
3681
3674
  }
3682
- Se(() => {
3683
- if (typeof f < "u" && (m.current.swiperSlideIndex = f), e && (e.current = m.current), !(!m.current || !r)) {
3684
- if (r.destroyed) {
3675
+ we(() => {
3676
+ if (typeof f < "u" && (m.current.swiperSlideIndex = f), e && (e.current = m.current), !(!m.current || !n)) {
3677
+ if (n.destroyed) {
3685
3678
  v !== "swiper-slide" && w("swiper-slide");
3686
3679
  return;
3687
3680
  }
3688
- return r.on("_slideClass", S), () => {
3689
- r && r.off("_slideClass", S);
3681
+ return n.on("_slideClass", S), () => {
3682
+ n && n.off("_slideClass", S);
3690
3683
  };
3691
3684
  }
3692
- }), Se(() => {
3693
- r && m.current && !r.destroyed && w(r.getSlideClasses(m.current));
3694
- }, [r]);
3685
+ }), we(() => {
3686
+ n && m.current && !n.destroyed && w(n.getSlideClasses(m.current));
3687
+ }, [n]);
3695
3688
  const g = {
3696
3689
  isActive: v.indexOf("swiper-slide-active") >= 0,
3697
3690
  isVisible: v.indexOf("swiper-slide-visible") >= 0,
3698
3691
  isPrev: v.indexOf("swiper-slide-prev") >= 0,
3699
3692
  isNext: v.indexOf("swiper-slide-next") >= 0
3700
- }, u = () => typeof s == "function" ? s(g) : s, h = () => {
3693
+ }, p = () => typeof s == "function" ? s(g) : s, h = () => {
3701
3694
  l(true);
3702
3695
  };
3703
- return /* @__PURE__ */ V.createElement(i, ze({
3696
+ return /* @__PURE__ */ V.createElement(i, Le({
3704
3697
  ref: m,
3705
- className: gt(`${v}${n ? ` ${n}` : ""}`),
3698
+ className: ht(`${v}${r ? ` ${r}` : ""}`),
3706
3699
  "data-swiper-slide-index": c,
3707
3700
  onLoad: h
3708
- }, p), d && /* @__PURE__ */ V.createElement(it.Provider, {
3701
+ }, u), d && /* @__PURE__ */ V.createElement(it.Provider, {
3709
3702
  value: g
3710
3703
  }, /* @__PURE__ */ V.createElement("div", {
3711
3704
  className: "swiper-zoom-container",
3712
3705
  "data-swiper-zoom": typeof d == "number" ? d : void 0
3713
- }, u(), o && !a && /* @__PURE__ */ V.createElement("div", {
3706
+ }, p(), o && !a && /* @__PURE__ */ V.createElement("div", {
3714
3707
  className: "swiper-lazy-preloader"
3715
3708
  }))), !d && /* @__PURE__ */ V.createElement(it.Provider, {
3716
3709
  value: g
3717
- }, u(), o && !a && /* @__PURE__ */ V.createElement("div", {
3710
+ }, p(), o && !a && /* @__PURE__ */ V.createElement("div", {
3718
3711
  className: "swiper-lazy-preloader"
3719
3712
  })));
3720
3713
  });
3721
- Et.displayName = "SwiperSlide";
3722
- const as = (t) => {
3723
- const e = bt.c(26), {
3714
+ St.displayName = "SwiperSlide";
3715
+ const rs = (t) => {
3716
+ const e = Et.c(26), {
3724
3717
  className: i,
3725
3718
  children: s,
3726
- height: n,
3727
- forceKeyboardNavigation: r
3728
- } = t, d = r === void 0 ? false : r, o = V.useRef(null), [c, f] = V.useState(false);
3729
- let p;
3730
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (p = () => {
3719
+ height: r,
3720
+ forceKeyboardNavigation: n
3721
+ } = t, d = n === void 0 ? false : n, o = V.useRef(null), [c, f] = V.useState(false);
3722
+ let u;
3723
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (u = () => {
3731
3724
  var _a, _b;
3732
3725
  document.fullscreenElement ? (_a = o.current) == null ? void 0 : _a.swiper.keyboard.enable() : (_b = o.current) == null ? void 0 : _b.swiper.keyboard.disable(), f(!!document.fullscreenElement);
3733
- }, e[0] = p) : p = e[0], xt(document, "fullscreenchange", p);
3726
+ }, e[0] = u) : u = e[0], bt(document, "fullscreenchange", u);
3734
3727
  let m;
3735
- e[1] !== c ? (m = [c], e[1] = c, e[2] = m) : m = e[2], R.useEffect(ss, m);
3728
+ e[1] !== c ? (m = [c], e[1] = c, e[2] = m) : m = e[2], R.useEffect(is, m);
3736
3729
  let v;
3737
3730
  e[3] !== i ? (v = Ke("relative w-full border rounded bg-background mo-slides-theme prose-slides", i), e[3] = i, e[4] = v) : v = e[4];
3738
- const w = c ? "100%" : n || "550px";
3731
+ const w = c ? "100%" : r || "550px";
3739
3732
  let a;
3740
3733
  e[5] !== w ? (a = {
3741
3734
  height: w
3742
3735
  }, e[5] = w, e[6] = a) : a = e[6];
3743
3736
  let l, S;
3744
- e[7] === Symbol.for("react.memo_cache_sentinel") ? (l = [Dt, $t, Gt, Bt, _t], S = {
3737
+ e[7] === Symbol.for("react.memo_cache_sentinel") ? (l = [At, Dt, _t, Gt, $t], S = {
3745
3738
  maxRatio: 5
3746
3739
  }, e[7] = l, e[8] = S) : (l = e[7], S = e[8]);
3747
3740
  const g = c || d;
3748
- let u;
3749
- e[9] !== g ? (u = {
3741
+ let p;
3742
+ e[9] !== g ? (p = {
3750
3743
  enabled: g
3751
- }, e[9] = g, e[10] = u) : u = e[10];
3744
+ }, e[9] = g, e[10] = p) : p = e[10];
3752
3745
  let h;
3753
3746
  e[11] === Symbol.for("react.memo_cache_sentinel") ? (h = {
3754
3747
  clickable: true
@@ -3756,7 +3749,7 @@ const as = (t) => {
3756
3749
  let E;
3757
3750
  if (e[12] !== s || e[13] !== c) {
3758
3751
  let y;
3759
- e[15] !== c ? (y = (T, P) => T == null ? null : /* @__PURE__ */ ge.jsx(Et, { children: /* @__PURE__ */ ge.jsx("div", { onKeyDown: rs, className: Ke("h-full w-full flex box-border overflow-y-auto overflow-x-hidden", c ? "p-20" : "p-6"), children: /* @__PURE__ */ ge.jsx("div", { className: "mo-slide-content", children: T }) }) }, P), e[15] = c, e[16] = y) : y = e[16], E = V.Children.map(s, y), e[12] = s, e[13] = c, e[14] = E;
3752
+ e[15] !== c ? (y = (T, P) => T == null ? null : /* @__PURE__ */ he.jsx(St, { children: /* @__PURE__ */ he.jsx("div", { onKeyDown: ss, className: Ke("h-full w-full flex box-border overflow-y-auto overflow-x-hidden", c ? "p-20" : "p-6"), children: /* @__PURE__ */ he.jsx("div", { className: "mo-slide-content", children: T }) }) }, P), e[15] = c, e[16] = y) : y = e[16], E = V.Children.map(s, y), e[12] = s, e[13] = c, e[14] = E;
3760
3753
  } else
3761
3754
  E = e[14];
3762
3755
  let b;
@@ -3768,22 +3761,22 @@ const as = (t) => {
3768
3761
  }, e[17] = b) : b = e[17];
3769
3762
  const L = c ? "Exit Fullscreen" : "Fullscreen";
3770
3763
  let I;
3771
- e[18] !== L ? (I = /* @__PURE__ */ ge.jsx(yt, { variant: "link", size: "sm", "data-testid": "marimo-plugin-slides-fullscreen", onClick: b, className: "absolute bottom-0 right-0 z-10 mx-1 mb-0", children: L }), e[18] = L, e[19] = I) : I = e[19];
3764
+ e[18] !== L ? (I = /* @__PURE__ */ he.jsx(xt, { variant: "link", size: "sm", "data-testid": "marimo-plugin-slides-fullscreen", onClick: b, className: "absolute bottom-0 right-0 z-10 mx-1 mb-0", children: L }), e[18] = L, e[19] = I) : I = e[19];
3772
3765
  let z;
3773
- return e[20] !== u || e[21] !== E || e[22] !== I || e[23] !== v || e[24] !== a ? (z = /* @__PURE__ */ ge.jsxs(St, { ref: o, className: v, spaceBetween: 50, style: a, slidesPerView: 1, modules: l, zoom: S, simulateTouch: false, keyboard: u, navigation: true, pagination: h, virtual: true, speed: 1, children: [
3766
+ return e[20] !== p || e[21] !== E || e[22] !== I || e[23] !== v || e[24] !== a ? (z = /* @__PURE__ */ he.jsxs(wt, { ref: o, className: v, spaceBetween: 50, style: a, slidesPerView: 1, modules: l, zoom: S, simulateTouch: false, keyboard: p, navigation: true, pagination: h, virtual: true, speed: 1, children: [
3774
3767
  E,
3775
3768
  I
3776
- ] }), e[20] = u, e[21] = E, e[22] = I, e[23] = v, e[24] = a, e[25] = z) : z = e[25], z;
3769
+ ] }), e[20] = p, e[21] = E, e[22] = I, e[23] = v, e[24] = a, e[25] = z) : z = e[25], z;
3777
3770
  };
3778
- function is() {
3771
+ function ts() {
3779
3772
  window.dispatchEvent(new Event("resize"));
3780
3773
  }
3781
- function ss() {
3782
- requestAnimationFrame(is);
3774
+ function is() {
3775
+ requestAnimationFrame(ts);
3783
3776
  }
3784
- function rs(t) {
3777
+ function ss(t) {
3785
3778
  t.target instanceof HTMLElement && t.target.tagName.toLocaleLowerCase().startsWith("marimo-") && t.stopPropagation();
3786
3779
  }
3787
3780
  export {
3788
- as as default
3781
+ rs as default
3789
3782
  };