md-components-mdigial-azamat 0.0.11 → 0.0.13

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 (112) hide show
  1. package/README.md +1 -1
  2. package/dist/AllComponents.js +130 -0
  3. package/dist/AnimatedSwiper/Slide/Slide.js +57 -0
  4. package/dist/AnimatedSwiper/Slide/index.js +4 -0
  5. package/dist/AnimatedSwiper/index.js +117 -0
  6. package/dist/AnimatedSwiper/types.js +1 -0
  7. package/dist/Banner/Banner.js +34 -48
  8. package/dist/BannerAndText/index.js +4 -8
  9. package/dist/CardIconList/CardIconList.js +4 -10
  10. package/dist/CardImageList/CardImageList.js +4 -9
  11. package/dist/CardImageSecondary/CardImageSecondary.js +50 -0
  12. package/dist/CardImageSecondary/index.js +4 -0
  13. package/dist/CardImageSecondary/types.js +1 -0
  14. package/dist/CardImageSecondaryList/CardImageSecondaryList.js +21 -0
  15. package/dist/CardImageSecondaryList/index.js +4 -0
  16. package/dist/CardImageSecondaryList/types.js +1 -0
  17. package/dist/CardInfoTable/index.js +153 -0
  18. package/dist/CardInfoTable/types.js +1 -0
  19. package/dist/Cards/CardImage/CardImage.js +3 -5
  20. package/dist/Cards/ColoredCard/index.js +3 -7
  21. package/dist/Cards/ContentCard/ContentCard.js +12 -13
  22. package/dist/Cards/FeaturesCard/index.js +3 -3
  23. package/dist/Cards/WarningCard/WarningCard.js +16 -20
  24. package/dist/Cards/WarningCard/model.js +1 -1
  25. package/dist/ComponentContainer-0fcc2695.js +16 -0
  26. package/dist/ConfigProvider/index.js +1 -3
  27. package/dist/ContentCardList/ContentCardList.js +2 -4
  28. package/dist/DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js +22 -19
  29. package/dist/DownloadFile/components/DownloadFileBright/index.js +103 -0
  30. package/dist/DownloadFile/components/DownloadFileBright/types.js +1 -0
  31. package/dist/DownloadFile/components/DownloadFileFull/DownloadFileFull.js +15 -16
  32. package/dist/DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js +14 -15
  33. package/dist/DownloadFile/components/DownloadFileMini/DownloadFileMini.js +12 -13
  34. package/dist/EmptyBox/EmptyBox.js +5 -0
  35. package/dist/EmptyBox/types.js +1 -0
  36. package/dist/Faq/Faq.js +2 -5
  37. package/dist/Faq/components/Collapse/Collapse.js +1 -4
  38. package/dist/Faq/components/FeedbackForm/FeedbackForm.js +95 -94
  39. package/dist/Faq/components/PlusMinusIcon/PlusMinusIcon.js +1 -1
  40. package/dist/HeroPossibilityBanner/index.js +1 -1
  41. package/dist/HtmlContent/HtmlContent.js +2 -5
  42. package/dist/InfoBanner/index.js +73 -0
  43. package/dist/InfoBanner/types.js +1 -0
  44. package/dist/InfoBannerList/InfoBannerList.js +37 -0
  45. package/dist/InfoBannerList/index.js +4 -0
  46. package/dist/InfoBannerList/types.js +1 -0
  47. package/dist/InstructionList/InstructionList.js +3 -7
  48. package/dist/InstructionList/components/InstructionCard/InstructionCard.js +2 -4
  49. package/dist/InstructionList/components/InstructionModal/InstructionModal.js +2 -2
  50. package/dist/IntroBanner/IntroBanner.js +60 -0
  51. package/dist/IntroBanner/index.js +4 -0
  52. package/dist/IntroBanner/types.js +1 -0
  53. package/dist/MainBanner/MainBanner.js +4 -4
  54. package/dist/MultiCards/index.js +1 -1
  55. package/dist/PageViewer/ComponentsView.js +9 -0
  56. package/dist/PageViewer/PageViewer.js +6 -0
  57. package/dist/PageViewer/index.js +4 -0
  58. package/dist/PageViewer/renderComponents.js +26 -0
  59. package/dist/Partners/Partners.js +3 -5
  60. package/dist/PartnersColors/PartnersColors.js +2 -7
  61. package/dist/PartnersColors/components/PartnerCard/PartnerCard.js +1 -1
  62. package/dist/PartnersColors/components/PartnerTab/PartnerTab.js +2 -2
  63. package/dist/PreviewList/PreviewList.js +3 -9
  64. package/dist/PreviewList/components/PreviewCard/PreviewCard.js +13 -14
  65. package/dist/PromoPoster/PromoPoster.js +36 -0
  66. package/dist/PromoPoster/types.js +1 -0
  67. package/dist/RenderAllComponents/RenderAllComponents.js +16 -0
  68. package/dist/RenderAllComponents/const.js +43 -0
  69. package/dist/RenderAllComponents/index.js +4 -0
  70. package/dist/Segments/Segments.js +2 -5
  71. package/dist/StandartTable/components/CardMarkedRow/index.js +75 -0
  72. package/dist/StandartTable/components/CardMarkedRow/types.js +1 -0
  73. package/dist/StandartTable/components/CardWarning/index.js +89 -0
  74. package/dist/StandartTable/components/CardWarning/types.js +1 -0
  75. package/dist/StandartTable/index.js +48 -0
  76. package/dist/StandartTable/types.js +1 -0
  77. package/dist/Stepper/Stepper.js +4 -8
  78. package/dist/SwiperList/SwiperList.js +44 -3191
  79. package/dist/SwiperList/components/Bullet/Bullet.js +1 -1
  80. package/dist/SwiperList/components/Slide/Slide.js +2 -2
  81. package/dist/TasksBanner/TasksBanner.js +108 -0
  82. package/dist/TasksBanner/index.js +4 -0
  83. package/dist/TasksBanner/types.js +1 -0
  84. package/dist/TasksBannerList/TasksBannerList.js +17 -0
  85. package/dist/TasksBannerList/index.js +4 -0
  86. package/dist/TasksBannerList/types.js +1 -0
  87. package/dist/Video/VideoFull/VideoFull.js +2 -4
  88. package/dist/Video/VideoList/VideoList.js +2 -4
  89. package/dist/Video/VideoListMini/VideoListMini.js +2 -4
  90. package/dist/Video/components/VideoPlayer/VideoPlayer.js +1 -1
  91. package/dist/VideoMainBanner/VideoMainBanner.js +148 -0
  92. package/dist/VideoMainBanner/index.js +4 -0
  93. package/dist/VideoMainBanner/types.js +1 -0
  94. package/dist/assets/TasksBanner.css +1 -0
  95. package/dist/assets/index.css +1 -1
  96. package/dist/{cn-eacd4725.js → cn-d8c04b28.js} +1 -0
  97. package/dist/componentsMap-8af3b722.js +71 -0
  98. package/dist/const-9041b93a.js +5 -0
  99. package/dist/data.mock-741c2220.js +1714 -0
  100. package/dist/{index-fb8c9446.js → index-60dfa873.js} +1 -1
  101. package/dist/{index-b52a1a9d.js → index-6e0f7db0.js} +3 -7
  102. package/dist/index-b3d6aed3.js +52 -0
  103. package/dist/main.js +1 -1
  104. package/dist/{palette-52b06a82.js → palette-ac8c8a5f.js} +7 -2
  105. package/dist/swiper-react-c049ea66.js +3158 -0
  106. package/dist/trash/HeroLargeCards/index.js +1 -1
  107. package/dist/useScreenSize-c1b64c02.js +19 -0
  108. package/package.json +1 -1
  109. package/dist/ComponentContainer-41408843.js +0 -15
  110. package/dist/index-89dcf24f.js +0 -54
  111. /package/dist/assets/{SwiperList.css → swiper-react.css} +0 -0
  112. /package/dist/assets/{Slide.css → swiper.css} +0 -0
@@ -1,3227 +1,80 @@
1
- import { jsx as F, jsxs as we } from "react/jsx-runtime";
2
- import G, { forwardRef as Ie, useState as U, useRef as R, useEffect as pe, useLayoutEffect as Ye, createContext as Le } from "react";
3
- import { C as Xe } from "../ComponentContainer-41408843.js";
4
- import { Bullet as Ue } from "./components/Bullet/Bullet.js";
5
- import { Slide as Ke } from "./components/Slide/Slide.js";
6
- import '../assets/SwiperList.css';const Qe = ({
7
- color: t = "#40474F",
8
- size: e = 24,
9
- ...i
10
- }) => /* @__PURE__ */ F(
11
- "svg",
12
- {
13
- width: e,
14
- height: e,
15
- viewBox: "0 0 24 24",
16
- fill: "none",
17
- xmlns: "http://www.w3.org/2000/svg",
18
- ...i,
19
- children: /* @__PURE__ */ F(
20
- "path",
21
- {
22
- d: "M17 22L8.41418 13.4142C7.74752 12.7476 7.41418 12.4142 7.41418 12C7.41418 11.5858 7.74752 11.2525 8.41418 10.5858L17 2",
23
- stroke: t,
24
- "stroke-width": "2",
25
- "stroke-linejoin": "round"
26
- }
27
- )
28
- }
29
- ), Ze = ({
30
- color: t = "#40474F",
31
- size: e = 24,
32
- ...i
33
- }) => /* @__PURE__ */ F(
34
- "svg",
35
- {
36
- width: e,
37
- height: e,
38
- viewBox: "0 0 24 24",
39
- fill: "none",
40
- xmlns: "http://www.w3.org/2000/svg",
41
- ...i,
42
- children: /* @__PURE__ */ F(
43
- "path",
44
- {
45
- d: "M7 22L15.5858 13.4142C16.2524 12.7476 16.5858 12.4142 16.5858 12C16.5858 11.5858 16.2525 11.2525 15.5858 10.5858L7 2",
46
- stroke: t,
47
- "stroke-width": "2",
48
- "stroke-linejoin": "round"
49
- }
50
- )
51
- }
52
- );
53
- function Se(t) {
54
- return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
55
- }
56
- function ge(t, e) {
57
- t === void 0 && (t = {}), e === void 0 && (e = {});
58
- const i = ["__proto__", "constructor", "prototype"];
59
- Object.keys(e).filter((s) => i.indexOf(s) < 0).forEach((s) => {
60
- typeof t[s] > "u" ? t[s] = e[s] : Se(e[s]) && Se(t[s]) && Object.keys(e[s]).length > 0 && ge(t[s], e[s]);
61
- });
62
- }
63
- const Oe = {
64
- body: {},
65
- addEventListener() {
66
- },
67
- removeEventListener() {
68
- },
69
- activeElement: {
70
- blur() {
71
- },
72
- nodeName: ""
73
- },
74
- querySelector() {
75
- return null;
76
- },
77
- querySelectorAll() {
78
- return [];
79
- },
80
- getElementById() {
81
- return null;
82
- },
83
- createEvent() {
84
- return {
85
- initEvent() {
86
- }
87
- };
88
- },
89
- createElement() {
90
- return {
91
- children: [],
92
- childNodes: [],
93
- style: {},
94
- setAttribute() {
95
- },
96
- getElementsByTagName() {
97
- return [];
98
- }
99
- };
100
- },
101
- createElementNS() {
102
- return {};
103
- },
104
- importNode() {
105
- return null;
106
- },
107
- location: {
108
- hash: "",
109
- host: "",
110
- hostname: "",
111
- href: "",
112
- origin: "",
113
- pathname: "",
114
- protocol: "",
115
- search: ""
116
- }
117
- };
118
- function H() {
119
- const t = typeof document < "u" ? document : {};
120
- return ge(t, Oe), t;
121
- }
122
- const Je = {
123
- document: Oe,
124
- navigator: {
125
- userAgent: ""
126
- },
127
- location: {
128
- hash: "",
129
- host: "",
130
- hostname: "",
131
- href: "",
132
- origin: "",
133
- pathname: "",
134
- protocol: "",
135
- search: ""
136
- },
137
- history: {
138
- replaceState() {
139
- },
140
- pushState() {
141
- },
142
- go() {
143
- },
144
- back() {
145
- }
146
- },
147
- CustomEvent: function() {
148
- return this;
149
- },
150
- addEventListener() {
151
- },
152
- removeEventListener() {
153
- },
154
- getComputedStyle() {
155
- return {
156
- getPropertyValue() {
157
- return "";
158
- }
159
- };
160
- },
161
- Image() {
162
- },
163
- Date() {
164
- },
165
- screen: {},
166
- setTimeout() {
167
- },
168
- clearTimeout() {
169
- },
170
- matchMedia() {
171
- return {};
172
- },
173
- requestAnimationFrame(t) {
174
- return typeof setTimeout > "u" ? (t(), null) : setTimeout(t, 0);
175
- },
176
- cancelAnimationFrame(t) {
177
- typeof setTimeout > "u" || clearTimeout(t);
178
- }
179
- };
180
- function B() {
181
- const t = typeof window < "u" ? window : {};
182
- return ge(t, Je), t;
183
- }
184
- function et(t) {
185
- return t === void 0 && (t = ""), t.trim().split(" ").filter((e) => !!e.trim());
186
- }
187
- function tt(t) {
188
- const e = t;
189
- Object.keys(e).forEach((i) => {
190
- try {
191
- e[i] = null;
192
- } catch {
193
- }
194
- try {
195
- delete e[i];
196
- } catch {
197
- }
198
- });
199
- }
200
- function ze(t, e) {
201
- return e === void 0 && (e = 0), setTimeout(t, e);
202
- }
203
- function ie() {
204
- return Date.now();
205
- }
206
- function it(t) {
207
- const e = B();
208
- let i;
209
- return e.getComputedStyle && (i = e.getComputedStyle(t, null)), !i && t.currentStyle && (i = t.currentStyle), i || (i = t.style), i;
210
- }
211
- function st(t, e) {
212
- e === void 0 && (e = "x");
213
- const i = B();
214
- let s, n, r;
215
- const l = it(t);
216
- return i.WebKitCSSMatrix ? (n = l.transform || l.webkitTransform, n.split(",").length > 6 && (n = n.split(", ").map((a) => a.replace(",", ".")).join(", ")), r = new i.WebKitCSSMatrix(n === "none" ? "" : n)) : (r = l.MozTransform || l.OTransform || l.MsTransform || l.msTransform || l.transform || l.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;
217
- }
218
- function J(t) {
219
- return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object";
220
- }
221
- function rt(t) {
222
- return typeof window < "u" && typeof window.HTMLElement < "u" ? t instanceof HTMLElement : t && (t.nodeType === 1 || t.nodeType === 11);
223
- }
224
- function k() {
225
- const t = Object(arguments.length <= 0 ? void 0 : arguments[0]), e = ["__proto__", "constructor", "prototype"];
226
- for (let i = 1; i < arguments.length; i += 1) {
227
- const s = i < 0 || arguments.length <= i ? void 0 : arguments[i];
228
- if (s != null && !rt(s)) {
229
- const n = Object.keys(Object(s)).filter((r) => e.indexOf(r) < 0);
230
- for (let r = 0, l = n.length; r < l; r += 1) {
231
- const a = n[r], o = Object.getOwnPropertyDescriptor(s, a);
232
- o !== void 0 && o.enumerable && (J(t[a]) && J(s[a]) ? s[a].__swiper__ ? t[a] = s[a] : k(t[a], s[a]) : !J(t[a]) && J(s[a]) ? (t[a] = {}, s[a].__swiper__ ? t[a] = s[a] : k(t[a], s[a])) : t[a] = s[a]);
233
- }
234
- }
235
- }
236
- return t;
237
- }
238
- function ee(t, e, i) {
239
- t.style.setProperty(e, i);
240
- }
241
- function Ae(t) {
242
- let {
243
- swiper: e,
244
- targetPosition: i,
245
- side: s
246
- } = t;
247
- const n = B(), r = -e.translate;
248
- let l = null, a;
249
- const o = e.params.speed;
250
- e.wrapperEl.style.scrollSnapType = "none", n.cancelAnimationFrame(e.cssModeFrameID);
251
- const d = i > r ? "next" : "prev", c = (p, h) => d === "next" && p >= h || d === "prev" && p <= h, u = () => {
252
- a = (/* @__PURE__ */ new Date()).getTime(), l === null && (l = a);
253
- const p = Math.max(Math.min((a - l) / o, 1), 0), h = 0.5 - Math.cos(p * Math.PI) / 2;
254
- let f = r + h * (i - r);
255
- if (c(f, i) && (f = i), e.wrapperEl.scrollTo({
256
- [s]: f
257
- }), c(f, i)) {
258
- e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.scrollSnapType = "", setTimeout(() => {
259
- e.wrapperEl.style.overflow = "", e.wrapperEl.scrollTo({
260
- [s]: f
261
- });
262
- }), n.cancelAnimationFrame(e.cssModeFrameID);
263
- return;
264
- }
265
- e.cssModeFrameID = n.requestAnimationFrame(u);
266
- };
267
- u();
268
- }
269
- function $(t, e) {
270
- e === void 0 && (e = "");
271
- const i = B(), s = [...t.children];
272
- return i.HTMLSlotElement && t instanceof HTMLSlotElement && s.push(...t.assignedElements()), e ? s.filter((n) => n.matches(e)) : s;
273
- }
274
- function nt(t, e) {
275
- const i = [e];
276
- for (; i.length > 0; ) {
277
- const s = i.shift();
278
- if (t === s)
279
- return !0;
280
- i.push(...s.children, ...s.shadowRoot ? s.shadowRoot.children : [], ...s.assignedElements ? s.assignedElements() : []);
281
- }
282
- }
283
- function at(t, e) {
284
- const i = B();
285
- let s = e.contains(t);
286
- return !s && i.HTMLSlotElement && e instanceof HTMLSlotElement && (s = [...e.assignedElements()].includes(t), s || (s = nt(t, e))), s;
287
- }
288
- function se(t) {
289
- try {
290
- console.warn(t);
291
- return;
292
- } catch {
293
- }
294
- }
295
- function re(t, e) {
296
- e === void 0 && (e = []);
297
- const i = document.createElement(t);
298
- return i.classList.add(...Array.isArray(e) ? e : et(e)), i;
299
- }
300
- function lt(t, e) {
301
- const i = [];
302
- for (; t.previousElementSibling; ) {
303
- const s = t.previousElementSibling;
304
- e ? s.matches(e) && i.push(s) : i.push(s), t = s;
305
- }
306
- return i;
307
- }
308
- function ot(t, e) {
309
- const i = [];
310
- for (; t.nextElementSibling; ) {
311
- const s = t.nextElementSibling;
312
- e ? s.matches(e) && i.push(s) : i.push(s), t = s;
313
- }
314
- return i;
315
- }
316
- function q(t, e) {
317
- return B().getComputedStyle(t, null).getPropertyValue(e);
318
- }
319
- function Te(t) {
320
- let e = t, i;
321
- if (e) {
322
- for (i = 0; (e = e.previousSibling) !== null; )
323
- e.nodeType === 1 && (i += 1);
324
- return i;
325
- }
326
- }
327
- function dt(t, e) {
328
- const i = [];
329
- let s = t.parentElement;
330
- for (; s; )
331
- e ? s.matches(e) && i.push(s) : i.push(s), s = s.parentElement;
332
- return i;
333
- }
334
- function be(t, e, i) {
335
- const s = B();
336
- return i ? 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")) : t.offsetWidth;
337
- }
338
- function j(t) {
339
- return (Array.isArray(t) ? t : [t]).filter((e) => !!e);
340
- }
341
- function ye(t, e) {
342
- e === void 0 && (e = ""), typeof trustedTypes < "u" ? t.innerHTML = trustedTypes.createPolicy("html", {
343
- createHTML: (i) => i
344
- }).createHTML(e) : t.innerHTML = e;
345
- }
346
- function ct(t, e, i, s) {
347
- return t.params.createElements && Object.keys(s).forEach((n) => {
348
- if (!i[n] && i.auto === !0) {
349
- let r = $(t.el, `.${s[n]}`)[0];
350
- r || (r = re("div", s[n]), r.className = s[n], t.el.append(r)), i[n] = r, e[n] = r;
351
- }
352
- }), i;
353
- }
354
- function ut(t) {
355
- let {
356
- swiper: e,
357
- extendParams: i,
358
- on: s,
359
- emit: n
360
- } = t;
361
- i({
362
- navigation: {
363
- nextEl: null,
364
- prevEl: null,
365
- hideOnClick: !1,
366
- disabledClass: "swiper-button-disabled",
367
- hiddenClass: "swiper-button-hidden",
368
- lockClass: "swiper-button-lock",
369
- navigationDisabledClass: "swiper-navigation-disabled"
370
- }
371
- }), e.navigation = {
372
- nextEl: null,
373
- prevEl: null
374
- };
375
- function r(f) {
376
- let g;
377
- return f && typeof f == "string" && e.isElement && (g = e.el.querySelector(f) || e.hostEl.querySelector(f), g) ? g : (f && (typeof f == "string" && (g = [...document.querySelectorAll(f)]), e.params.uniqueNavElements && typeof f == "string" && g && g.length > 1 && e.el.querySelectorAll(f).length === 1 ? g = e.el.querySelector(f) : g && g.length === 1 && (g = g[0])), f && !g ? f : g);
378
- }
379
- function l(f, g) {
380
- const S = e.params.navigation;
381
- f = j(f), f.forEach((m) => {
382
- m && (m.classList[g ? "add" : "remove"](...S.disabledClass.split(" ")), m.tagName === "BUTTON" && (m.disabled = g), e.params.watchOverflow && e.enabled && m.classList[e.isLocked ? "add" : "remove"](S.lockClass));
383
- });
384
- }
385
- function a() {
386
- const {
387
- nextEl: f,
388
- prevEl: g
389
- } = e.navigation;
390
- if (e.params.loop) {
391
- l(g, !1), l(f, !1);
392
- return;
393
- }
394
- l(g, e.isBeginning && !e.params.rewind), l(f, e.isEnd && !e.params.rewind);
395
- }
396
- function o(f) {
397
- f.preventDefault(), !(e.isBeginning && !e.params.loop && !e.params.rewind) && (e.slidePrev(), n("navigationPrev"));
398
- }
399
- function d(f) {
400
- f.preventDefault(), !(e.isEnd && !e.params.loop && !e.params.rewind) && (e.slideNext(), n("navigationNext"));
401
- }
402
- function c() {
403
- const f = e.params.navigation;
404
- if (e.params.navigation = ct(e, e.originalParams.navigation, e.params.navigation, {
405
- nextEl: "swiper-button-next",
406
- prevEl: "swiper-button-prev"
407
- }), !(f.nextEl || f.prevEl))
408
- return;
409
- let g = r(f.nextEl), S = r(f.prevEl);
410
- Object.assign(e.navigation, {
411
- nextEl: g,
412
- prevEl: S
413
- }), g = j(g), S = j(S);
414
- const m = (v, w) => {
415
- v && v.addEventListener("click", w === "next" ? d : o), !e.enabled && v && v.classList.add(...f.lockClass.split(" "));
416
- };
417
- g.forEach((v) => m(v, "next")), S.forEach((v) => m(v, "prev"));
418
- }
419
- function u() {
420
- let {
421
- nextEl: f,
422
- prevEl: g
423
- } = e.navigation;
424
- f = j(f), g = j(g);
425
- const S = (m, v) => {
426
- m.removeEventListener("click", v === "next" ? d : o), m.classList.remove(...e.params.navigation.disabledClass.split(" "));
427
- };
428
- f.forEach((m) => S(m, "next")), g.forEach((m) => S(m, "prev"));
429
- }
430
- s("init", () => {
431
- e.params.navigation.enabled === !1 ? h() : (c(), a());
432
- }), s("toEdge fromEdge lock unlock", () => {
433
- a();
434
- }), s("destroy", () => {
435
- u();
436
- }), s("enable disable", () => {
437
- let {
438
- nextEl: f,
439
- prevEl: g
440
- } = e.navigation;
441
- if (f = j(f), g = j(g), e.enabled) {
442
- a();
443
- return;
444
- }
445
- [...f, ...g].filter((S) => !!S).forEach((S) => S.classList.add(e.params.navigation.lockClass));
446
- }), s("click", (f, g) => {
447
- let {
448
- nextEl: S,
449
- prevEl: m
450
- } = e.navigation;
451
- S = j(S), m = j(m);
452
- const v = g.target;
453
- let w = m.includes(v) || S.includes(v);
454
- if (e.isElement && !w) {
455
- const x = g.path || g.composedPath && g.composedPath();
456
- x && (w = x.find((b) => S.includes(b) || m.includes(b)));
457
- }
458
- if (e.params.navigation.hideOnClick && !w) {
459
- if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === v || e.pagination.el.contains(v)))
460
- return;
461
- let x;
462
- S.length ? x = S[0].classList.contains(e.params.navigation.hiddenClass) : m.length && (x = m[0].classList.contains(e.params.navigation.hiddenClass)), n(x === !0 ? "navigationShow" : "navigationHide"), [...S, ...m].filter((b) => !!b).forEach((b) => b.classList.toggle(e.params.navigation.hiddenClass));
463
- }
464
- });
465
- const p = () => {
466
- e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")), c(), a();
467
- }, h = () => {
468
- e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")), u();
469
- };
470
- Object.assign(e.navigation, {
471
- enable: p,
472
- disable: h,
473
- update: a,
474
- init: c,
475
- destroy: u
476
- });
477
- }
478
- function ft(t) {
479
- let {
480
- swiper: e,
481
- extendParams: i,
482
- on: s,
483
- emit: n,
484
- params: r
485
- } = t;
486
- e.autoplay = {
487
- running: !1,
488
- paused: !1,
489
- timeLeft: 0
490
- }, i({
491
- autoplay: {
492
- enabled: !1,
493
- delay: 3e3,
494
- waitForTransition: !0,
495
- disableOnInteraction: !1,
496
- stopOnLastSlide: !1,
497
- reverseDirection: !1,
498
- pauseOnMouseEnter: !1
499
- }
500
- });
501
- let l, a, o = r && r.autoplay ? r.autoplay.delay : 3e3, d = r && r.autoplay ? r.autoplay.delay : 3e3, c, u = (/* @__PURE__ */ new Date()).getTime(), p, h, f, g, S, m, v;
502
- function w(M) {
503
- !e || e.destroyed || !e.wrapperEl || M.target === e.wrapperEl && (e.wrapperEl.removeEventListener("transitionend", w), !(v || M.detail && M.detail.bySwiperTouchMove) && T());
504
- }
505
- const x = () => {
506
- if (e.destroyed || !e.autoplay.running)
507
- return;
508
- e.autoplay.paused ? p = !0 : p && (d = c, p = !1);
509
- const M = e.autoplay.paused ? c : u + d - (/* @__PURE__ */ new Date()).getTime();
510
- e.autoplay.timeLeft = M, n("autoplayTimeLeft", M, M / o), a = requestAnimationFrame(() => {
511
- x();
512
- });
513
- }, b = () => {
514
- let M;
515
- return e.virtual && e.params.virtual.enabled ? M = e.slides.find((_) => _.classList.contains("swiper-slide-active")) : M = e.slides[e.activeIndex], M ? parseInt(M.getAttribute("data-swiper-autoplay"), 10) : void 0;
516
- }, C = (M) => {
517
- if (e.destroyed || !e.autoplay.running)
518
- return;
519
- cancelAnimationFrame(a), x();
520
- let z = typeof M > "u" ? e.params.autoplay.delay : M;
521
- o = e.params.autoplay.delay, d = e.params.autoplay.delay;
522
- const _ = b();
523
- !Number.isNaN(_) && _ > 0 && typeof M > "u" && (z = _, o = _, d = _), c = z;
524
- const Y = e.params.speed, Z = () => {
525
- !e || e.destroyed || (e.params.autoplay.reverseDirection ? !e.isBeginning || e.params.loop || e.params.rewind ? (e.slidePrev(Y, !0, !0), n("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(e.slides.length - 1, Y, !0, !0), n("autoplay")) : !e.isEnd || e.params.loop || e.params.rewind ? (e.slideNext(Y, !0, !0), n("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(0, Y, !0, !0), n("autoplay")), e.params.cssMode && (u = (/* @__PURE__ */ new Date()).getTime(), requestAnimationFrame(() => {
526
- C();
527
- })));
528
- };
529
- return z > 0 ? (clearTimeout(l), l = setTimeout(() => {
530
- Z();
531
- }, z)) : requestAnimationFrame(() => {
532
- Z();
533
- }), z;
534
- }, I = () => {
535
- u = (/* @__PURE__ */ new Date()).getTime(), e.autoplay.running = !0, C(), n("autoplayStart");
536
- }, E = () => {
537
- e.autoplay.running = !1, clearTimeout(l), cancelAnimationFrame(a), n("autoplayStop");
538
- }, y = (M, z) => {
539
- if (e.destroyed || !e.autoplay.running)
540
- return;
541
- clearTimeout(l), M || (m = !0);
542
- const _ = () => {
543
- n("autoplayPause"), e.params.autoplay.waitForTransition ? e.wrapperEl.addEventListener("transitionend", w) : T();
544
- };
545
- if (e.autoplay.paused = !0, z) {
546
- S && (c = e.params.autoplay.delay), S = !1, _();
547
- return;
548
- }
549
- c = (c || e.params.autoplay.delay) - ((/* @__PURE__ */ new Date()).getTime() - u), !(e.isEnd && c < 0 && !e.params.loop) && (c < 0 && (c = 0), _());
550
- }, T = () => {
551
- e.isEnd && c < 0 && !e.params.loop || e.destroyed || !e.autoplay.running || (u = (/* @__PURE__ */ new Date()).getTime(), m ? (m = !1, C(c)) : C(), e.autoplay.paused = !1, n("autoplayResume"));
552
- }, P = () => {
553
- if (e.destroyed || !e.autoplay.running)
554
- return;
555
- const M = H();
556
- M.visibilityState === "hidden" && (m = !0, y(!0)), M.visibilityState === "visible" && T();
557
- }, L = (M) => {
558
- M.pointerType === "mouse" && (m = !0, v = !0, !(e.animating || e.autoplay.paused) && y(!0));
559
- }, A = (M) => {
560
- M.pointerType === "mouse" && (v = !1, e.autoplay.paused && T());
561
- }, V = () => {
562
- e.params.autoplay.pauseOnMouseEnter && (e.el.addEventListener("pointerenter", L), e.el.addEventListener("pointerleave", A));
563
- }, N = () => {
564
- e.el && typeof e.el != "string" && (e.el.removeEventListener("pointerenter", L), e.el.removeEventListener("pointerleave", A));
565
- }, O = () => {
566
- H().addEventListener("visibilitychange", P);
567
- }, D = () => {
568
- H().removeEventListener("visibilitychange", P);
569
- };
570
- s("init", () => {
571
- e.params.autoplay.enabled && (V(), O(), I());
572
- }), s("destroy", () => {
573
- N(), D(), e.autoplay.running && E();
574
- }), s("_freeModeStaticRelease", () => {
575
- (f || m) && T();
576
- }), s("_freeModeNoMomentumRelease", () => {
577
- e.params.autoplay.disableOnInteraction ? E() : y(!0, !0);
578
- }), s("beforeTransitionStart", (M, z, _) => {
579
- e.destroyed || !e.autoplay.running || (_ || !e.params.autoplay.disableOnInteraction ? y(!0, !0) : E());
580
- }), s("sliderFirstMove", () => {
581
- if (!(e.destroyed || !e.autoplay.running)) {
582
- if (e.params.autoplay.disableOnInteraction) {
583
- E();
584
- return;
585
- }
586
- h = !0, f = !1, m = !1, g = setTimeout(() => {
587
- m = !0, f = !0, y(!0);
588
- }, 200);
589
- }
590
- }), s("touchEnd", () => {
591
- if (!(e.destroyed || !e.autoplay.running || !h)) {
592
- if (clearTimeout(g), clearTimeout(l), e.params.autoplay.disableOnInteraction) {
593
- f = !1, h = !1;
594
- return;
595
- }
596
- f && e.params.cssMode && T(), f = !1, h = !1;
597
- }
598
- }), s("slideChange", () => {
599
- e.destroyed || !e.autoplay.running || (S = !0);
600
- }), Object.assign(e.autoplay, {
601
- start: I,
602
- stop: E,
603
- pause: y,
604
- resume: T
605
- });
606
- }
607
- let ae;
608
- function pt() {
609
- const t = B(), e = H();
610
- return {
611
- smoothScroll: e.documentElement && e.documentElement.style && "scrollBehavior" in e.documentElement.style,
612
- touch: !!("ontouchstart" in t || t.DocumentTouch && e instanceof t.DocumentTouch)
613
- };
614
- }
615
- function _e() {
616
- return ae || (ae = pt()), ae;
617
- }
618
- let le;
619
- function mt(t) {
620
- let {
621
- userAgent: e
622
- } = t === void 0 ? {} : t;
623
- const i = _e(), s = B(), n = s.navigator.platform, r = e || s.navigator.userAgent, l = {
624
- ios: !1,
625
- android: !1
626
- }, a = s.screen.width, o = s.screen.height, d = r.match(/(Android);?[\s\/]+([\d.]+)?/);
627
- let c = r.match(/(iPad).*OS\s([\d_]+)/);
628
- const u = r.match(/(iPod)(.*OS\s([\d_]+))?/), p = !c && r.match(/(iPhone\sOS|iOS)\s([\d_]+)/), h = n === "Win32";
629
- let f = n === "MacIntel";
630
- const g = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
631
- return !c && f && i.touch && g.indexOf(`${a}x${o}`) >= 0 && (c = r.match(/(Version)\/([\d.]+)/), c || (c = [0, 1, "13_0_0"]), f = !1), d && !h && (l.os = "android", l.android = !0), (c || p || u) && (l.os = "ios", l.ios = !0), l;
632
- }
633
- function De(t) {
634
- return t === void 0 && (t = {}), le || (le = mt(t)), le;
635
- }
636
- let oe;
637
- function ht() {
638
- const t = B(), e = De();
639
- let i = !1;
640
- function s() {
641
- const a = t.navigator.userAgent.toLowerCase();
642
- return a.indexOf("safari") >= 0 && a.indexOf("chrome") < 0 && a.indexOf("android") < 0;
643
- }
644
- if (s()) {
645
- const a = String(t.navigator.userAgent);
646
- if (a.includes("Version/")) {
647
- const [o, d] = a.split("Version/")[1].split(" ")[0].split(".").map((c) => Number(c));
648
- i = o < 16 || o === 16 && d < 2;
649
- }
650
- }
651
- const n = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent), r = s(), l = r || n && e.ios;
652
- return {
653
- isSafari: i || r,
654
- needPerspectiveFix: i,
655
- need3dFix: l,
656
- isWebView: n
657
- };
658
- }
659
- function Ge() {
660
- return oe || (oe = ht()), oe;
661
- }
662
- function gt(t) {
663
- let {
664
- swiper: e,
665
- on: i,
666
- emit: s
667
- } = t;
668
- const n = B();
669
- let r = null, l = null;
670
- const a = () => {
671
- !e || e.destroyed || !e.initialized || (s("beforeResize"), s("resize"));
672
- }, o = () => {
673
- !e || e.destroyed || !e.initialized || (r = new ResizeObserver((u) => {
674
- l = n.requestAnimationFrame(() => {
675
- const {
676
- width: p,
677
- height: h
678
- } = e;
679
- let f = p, g = h;
680
- u.forEach((S) => {
681
- let {
682
- contentBoxSize: m,
683
- contentRect: v,
684
- target: w
685
- } = S;
686
- w && w !== e.el || (f = v ? v.width : (m[0] || m).inlineSize, g = v ? v.height : (m[0] || m).blockSize);
687
- }), (f !== p || g !== h) && a();
688
- });
689
- }), r.observe(e.el));
690
- }, d = () => {
691
- l && n.cancelAnimationFrame(l), r && r.unobserve && e.el && (r.unobserve(e.el), r = null);
692
- }, c = () => {
693
- !e || e.destroyed || !e.initialized || s("orientationchange");
694
- };
695
- i("init", () => {
696
- if (e.params.resizeObserver && typeof n.ResizeObserver < "u") {
697
- o();
698
- return;
699
- }
700
- n.addEventListener("resize", a), n.addEventListener("orientationchange", c);
701
- }), i("destroy", () => {
702
- d(), n.removeEventListener("resize", a), n.removeEventListener("orientationchange", c);
703
- });
704
- }
705
- function vt(t) {
706
- let {
707
- swiper: e,
708
- extendParams: i,
709
- on: s,
710
- emit: n
711
- } = t;
712
- const r = [], l = B(), a = function(c, u) {
713
- u === void 0 && (u = {});
714
- const p = l.MutationObserver || l.WebkitMutationObserver, h = new p((f) => {
715
- if (e.__preventObserver__)
716
- return;
717
- if (f.length === 1) {
718
- n("observerUpdate", f[0]);
719
- return;
720
- }
721
- const g = function() {
722
- n("observerUpdate", f[0]);
723
- };
724
- l.requestAnimationFrame ? l.requestAnimationFrame(g) : l.setTimeout(g, 0);
725
- });
726
- h.observe(c, {
727
- attributes: typeof u.attributes > "u" ? !0 : u.attributes,
728
- childList: e.isElement || (typeof u.childList > "u" ? !0 : u).childList,
729
- characterData: typeof u.characterData > "u" ? !0 : u.characterData
730
- }), r.push(h);
731
- }, o = () => {
732
- if (e.params.observer) {
733
- if (e.params.observeParents) {
734
- const c = dt(e.hostEl);
735
- for (let u = 0; u < c.length; u += 1)
736
- a(c[u]);
737
- }
738
- a(e.hostEl, {
739
- childList: e.params.observeSlideChildren
740
- }), a(e.wrapperEl, {
741
- attributes: !1
742
- });
743
- }
744
- }, d = () => {
745
- r.forEach((c) => {
746
- c.disconnect();
747
- }), r.splice(0, r.length);
748
- };
749
- i({
750
- observer: !1,
751
- observeParents: !1,
752
- observeSlideChildren: !1
753
- }), s("init", o), s("destroy", d);
754
- }
755
- var wt = {
756
- on(t, e, i) {
757
- const s = this;
758
- if (!s.eventsListeners || s.destroyed || typeof e != "function")
759
- return s;
760
- const n = i ? "unshift" : "push";
761
- return t.split(" ").forEach((r) => {
762
- s.eventsListeners[r] || (s.eventsListeners[r] = []), s.eventsListeners[r][n](e);
763
- }), s;
764
- },
765
- once(t, e, i) {
766
- const s = this;
767
- if (!s.eventsListeners || s.destroyed || typeof e != "function")
768
- return s;
769
- function n() {
770
- s.off(t, n), n.__emitterProxy && delete n.__emitterProxy;
771
- for (var r = arguments.length, l = new Array(r), a = 0; a < r; a++)
772
- l[a] = arguments[a];
773
- e.apply(s, l);
774
- }
775
- return n.__emitterProxy = e, s.on(t, n, i);
776
- },
777
- onAny(t, e) {
778
- const i = this;
779
- if (!i.eventsListeners || i.destroyed || typeof t != "function")
780
- return i;
781
- const s = e ? "unshift" : "push";
782
- return i.eventsAnyListeners.indexOf(t) < 0 && i.eventsAnyListeners[s](t), i;
783
- },
784
- offAny(t) {
785
- const e = this;
786
- if (!e.eventsListeners || e.destroyed || !e.eventsAnyListeners)
787
- return e;
788
- const i = e.eventsAnyListeners.indexOf(t);
789
- return i >= 0 && e.eventsAnyListeners.splice(i, 1), e;
790
- },
791
- off(t, e) {
792
- const i = this;
793
- return !i.eventsListeners || i.destroyed || !i.eventsListeners || t.split(" ").forEach((s) => {
794
- typeof e > "u" ? i.eventsListeners[s] = [] : i.eventsListeners[s] && i.eventsListeners[s].forEach((n, r) => {
795
- (n === e || n.__emitterProxy && n.__emitterProxy === e) && i.eventsListeners[s].splice(r, 1);
796
- });
797
- }), i;
798
- },
799
- emit() {
800
- const t = this;
801
- if (!t.eventsListeners || t.destroyed || !t.eventsListeners)
802
- return t;
803
- let e, i, s;
804
- for (var n = arguments.length, r = new Array(n), l = 0; l < n; l++)
805
- r[l] = arguments[l];
806
- 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((o) => {
807
- t.eventsAnyListeners && t.eventsAnyListeners.length && t.eventsAnyListeners.forEach((d) => {
808
- d.apply(s, [o, ...i]);
809
- }), t.eventsListeners && t.eventsListeners[o] && t.eventsListeners[o].forEach((d) => {
810
- d.apply(s, i);
811
- });
812
- }), t;
813
- }
814
- };
815
- function St() {
816
- const t = this;
817
- let e, i;
818
- const s = t.el;
819
- 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(q(s, "padding-left") || 0, 10) - parseInt(q(s, "padding-right") || 0, 10), i = i - parseInt(q(s, "padding-top") || 0, 10) - parseInt(q(s, "padding-bottom") || 0, 10), Number.isNaN(e) && (e = 0), Number.isNaN(i) && (i = 0), Object.assign(t, {
820
- width: e,
821
- height: i,
822
- size: t.isHorizontal() ? e : i
823
- }));
824
- }
825
- function Tt() {
826
- const t = this;
827
- function e(T, P) {
828
- return parseFloat(T.getPropertyValue(t.getDirectionLabel(P)) || 0);
829
- }
830
- const i = t.params, {
831
- wrapperEl: s,
832
- slidesEl: n,
833
- size: r,
834
- rtlTranslate: l,
835
- wrongRTL: a
836
- } = t, o = t.virtual && i.virtual.enabled, d = o ? t.virtual.slides.length : t.slides.length, c = $(n, `.${t.params.slideClass}, swiper-slide`), u = o ? t.virtual.slides.length : c.length;
837
- let p = [];
838
- const h = [], f = [];
839
- let g = i.slidesOffsetBefore;
840
- typeof g == "function" && (g = i.slidesOffsetBefore.call(t));
841
- let S = i.slidesOffsetAfter;
842
- typeof S == "function" && (S = i.slidesOffsetAfter.call(t));
843
- const m = t.snapGrid.length, v = t.slidesGrid.length;
844
- let w = i.spaceBetween, x = -g, b = 0, C = 0;
845
- if (typeof r > "u")
846
- return;
847
- typeof w == "string" && w.indexOf("%") >= 0 ? w = parseFloat(w.replace("%", "")) / 100 * r : typeof w == "string" && (w = parseFloat(w)), t.virtualSize = -w, c.forEach((T) => {
848
- l ? T.style.marginLeft = "" : T.style.marginRight = "", T.style.marginBottom = "", T.style.marginTop = "";
849
- }), i.centeredSlides && i.cssMode && (ee(s, "--swiper-centered-offset-before", ""), ee(s, "--swiper-centered-offset-after", ""));
850
- const I = i.grid && i.grid.rows > 1 && t.grid;
851
- I ? t.grid.initSlides(c) : t.grid && t.grid.unsetSlides();
852
- let E;
853
- const y = i.slidesPerView === "auto" && i.breakpoints && Object.keys(i.breakpoints).filter((T) => typeof i.breakpoints[T].slidesPerView < "u").length > 0;
854
- for (let T = 0; T < u; T += 1) {
855
- E = 0;
856
- let P;
857
- if (c[T] && (P = c[T]), I && t.grid.updateSlide(T, P, c), !(c[T] && q(P, "display") === "none")) {
858
- if (i.slidesPerView === "auto") {
859
- y && (c[T].style[t.getDirectionLabel("width")] = "");
860
- const L = getComputedStyle(P), A = P.style.transform, V = P.style.webkitTransform;
861
- if (A && (P.style.transform = "none"), V && (P.style.webkitTransform = "none"), i.roundLengths)
862
- E = t.isHorizontal() ? be(P, "width", !0) : be(P, "height", !0);
863
- else {
864
- const N = e(L, "width"), O = e(L, "padding-left"), D = e(L, "padding-right"), M = e(L, "margin-left"), z = e(L, "margin-right"), _ = L.getPropertyValue("box-sizing");
865
- if (_ && _ === "border-box")
866
- E = N + M + z;
867
- else {
868
- const {
869
- clientWidth: Y,
870
- offsetWidth: Z
871
- } = P;
872
- E = N + O + D + M + z + (Z - Y);
873
- }
874
- }
875
- A && (P.style.transform = A), V && (P.style.webkitTransform = V), i.roundLengths && (E = Math.floor(E));
876
- } else
877
- E = (r - (i.slidesPerView - 1) * w) / i.slidesPerView, i.roundLengths && (E = Math.floor(E)), c[T] && (c[T].style[t.getDirectionLabel("width")] = `${E}px`);
878
- c[T] && (c[T].swiperSlideSize = E), f.push(E), i.centeredSlides ? (x = x + E / 2 + b / 2 + w, b === 0 && T !== 0 && (x = x - r / 2 - w), T === 0 && (x = x - r / 2 - w), Math.abs(x) < 1 / 1e3 && (x = 0), i.roundLengths && (x = Math.floor(x)), C % i.slidesPerGroup === 0 && p.push(x), h.push(x)) : (i.roundLengths && (x = Math.floor(x)), (C - Math.min(t.params.slidesPerGroupSkip, C)) % t.params.slidesPerGroup === 0 && p.push(x), h.push(x), x = x + E + w), t.virtualSize += E + w, b = E, C += 1;
879
- }
880
- }
881
- if (t.virtualSize = Math.max(t.virtualSize, r) + S, l && a && (i.effect === "slide" || i.effect === "coverflow") && (s.style.width = `${t.virtualSize + w}px`), i.setWrapperSize && (s.style[t.getDirectionLabel("width")] = `${t.virtualSize + w}px`), I && t.grid.updateWrapperSize(E, p), !i.centeredSlides) {
882
- const T = [];
883
- for (let P = 0; P < p.length; P += 1) {
884
- let L = p[P];
885
- i.roundLengths && (L = Math.floor(L)), p[P] <= t.virtualSize - r && T.push(L);
886
- }
887
- p = T, Math.floor(t.virtualSize - r) - Math.floor(p[p.length - 1]) > 1 && p.push(t.virtualSize - r);
888
- }
889
- if (o && i.loop) {
890
- const T = f[0] + w;
891
- if (i.slidesPerGroup > 1) {
892
- const P = Math.ceil((t.virtual.slidesBefore + t.virtual.slidesAfter) / i.slidesPerGroup), L = T * i.slidesPerGroup;
893
- for (let A = 0; A < P; A += 1)
894
- p.push(p[p.length - 1] + L);
895
- }
896
- for (let P = 0; P < t.virtual.slidesBefore + t.virtual.slidesAfter; P += 1)
897
- i.slidesPerGroup === 1 && p.push(p[p.length - 1] + T), h.push(h[h.length - 1] + T), t.virtualSize += T;
898
- }
899
- if (p.length === 0 && (p = [0]), w !== 0) {
900
- const T = t.isHorizontal() && l ? "marginLeft" : t.getDirectionLabel("marginRight");
901
- c.filter((P, L) => !i.cssMode || i.loop ? !0 : L !== c.length - 1).forEach((P) => {
902
- P.style[T] = `${w}px`;
903
- });
904
- }
905
- if (i.centeredSlides && i.centeredSlidesBounds) {
906
- let T = 0;
907
- f.forEach((L) => {
908
- T += L + (w || 0);
909
- }), T -= w;
910
- const P = T > r ? T - r : 0;
911
- p = p.map((L) => L <= 0 ? -g : L > P ? P + S : L);
912
- }
913
- if (i.centerInsufficientSlides) {
914
- let T = 0;
915
- f.forEach((L) => {
916
- T += L + (w || 0);
917
- }), T -= w;
918
- const P = (i.slidesOffsetBefore || 0) + (i.slidesOffsetAfter || 0);
919
- if (T + P < r) {
920
- const L = (r - T - P) / 2;
921
- p.forEach((A, V) => {
922
- p[V] = A - L;
923
- }), h.forEach((A, V) => {
924
- h[V] = A + L;
925
- });
926
- }
927
- }
928
- if (Object.assign(t, {
929
- slides: c,
930
- snapGrid: p,
931
- slidesGrid: h,
932
- slidesSizesGrid: f
933
- }), i.centeredSlides && i.cssMode && !i.centeredSlidesBounds) {
934
- ee(s, "--swiper-centered-offset-before", `${-p[0]}px`), ee(s, "--swiper-centered-offset-after", `${t.size / 2 - f[f.length - 1] / 2}px`);
935
- const T = -t.snapGrid[0], P = -t.slidesGrid[0];
936
- t.snapGrid = t.snapGrid.map((L) => L + T), t.slidesGrid = t.slidesGrid.map((L) => L + P);
937
- }
938
- if (u !== d && t.emit("slidesLengthChange"), p.length !== m && (t.params.watchOverflow && t.checkOverflow(), t.emit("snapGridLengthChange")), h.length !== v && t.emit("slidesGridLengthChange"), i.watchSlidesProgress && t.updateSlidesOffset(), t.emit("slidesUpdated"), !o && !i.cssMode && (i.effect === "slide" || i.effect === "fade")) {
939
- const T = `${i.containerModifierClass}backface-hidden`, P = t.el.classList.contains(T);
940
- u <= i.maxBackfaceHiddenSlides ? P || t.el.classList.add(T) : P && t.el.classList.remove(T);
941
- }
942
- }
943
- function bt(t) {
944
- const e = this, i = [], s = e.virtual && e.params.virtual.enabled;
945
- let n = 0, r;
946
- typeof t == "number" ? e.setTransition(t) : t === !0 && e.setTransition(e.params.speed);
947
- const l = (a) => s ? e.slides[e.getSlideIndexByData(a)] : e.slides[a];
948
- if (e.params.slidesPerView !== "auto" && e.params.slidesPerView > 1)
949
- if (e.params.centeredSlides)
950
- (e.visibleSlides || []).forEach((a) => {
951
- i.push(a);
952
- });
953
- else
954
- for (r = 0; r < Math.ceil(e.params.slidesPerView); r += 1) {
955
- const a = e.activeIndex + r;
956
- if (a > e.slides.length && !s)
957
- break;
958
- i.push(l(a));
959
- }
960
- else
961
- i.push(l(e.activeIndex));
962
- for (r = 0; r < i.length; r += 1)
963
- if (typeof i[r] < "u") {
964
- const a = i[r].offsetHeight;
965
- n = a > n ? a : n;
966
- }
967
- (n || n === 0) && (e.wrapperEl.style.height = `${n}px`);
968
- }
969
- function yt() {
970
- const t = this, e = t.slides, i = t.isElement ? t.isHorizontal() ? t.wrapperEl.offsetLeft : t.wrapperEl.offsetTop : 0;
971
- for (let s = 0; s < e.length; s += 1)
972
- e[s].swiperSlideOffset = (t.isHorizontal() ? e[s].offsetLeft : e[s].offsetTop) - i - t.cssOverflowAdjustment();
973
- }
974
- const xe = (t, e, i) => {
975
- e && !t.classList.contains(i) ? t.classList.add(i) : !e && t.classList.contains(i) && t.classList.remove(i);
976
- };
977
- function xt(t) {
978
- t === void 0 && (t = this && this.translate || 0);
979
- const e = this, i = e.params, {
980
- slides: s,
981
- rtlTranslate: n,
982
- snapGrid: r
983
- } = e;
984
- if (s.length === 0)
985
- return;
986
- typeof s[0].swiperSlideOffset > "u" && e.updateSlidesOffset();
987
- let l = -t;
988
- n && (l = t), e.visibleSlidesIndexes = [], e.visibleSlides = [];
989
- let a = i.spaceBetween;
990
- typeof a == "string" && a.indexOf("%") >= 0 ? a = parseFloat(a.replace("%", "")) / 100 * e.size : typeof a == "string" && (a = parseFloat(a));
991
- for (let o = 0; o < s.length; o += 1) {
992
- const d = s[o];
993
- let c = d.swiperSlideOffset;
994
- i.cssMode && i.centeredSlides && (c -= s[0].swiperSlideOffset);
995
- const u = (l + (i.centeredSlides ? e.minTranslate() : 0) - c) / (d.swiperSlideSize + a), p = (l - r[0] + (i.centeredSlides ? e.minTranslate() : 0) - c) / (d.swiperSlideSize + a), h = -(l - c), f = h + e.slidesSizesGrid[o], g = h >= 0 && h <= e.size - e.slidesSizesGrid[o], S = h >= 0 && h < e.size - 1 || f > 1 && f <= e.size || h <= 0 && f >= e.size;
996
- S && (e.visibleSlides.push(d), e.visibleSlidesIndexes.push(o)), xe(d, S, i.slideVisibleClass), xe(d, g, i.slideFullyVisibleClass), d.progress = n ? -u : u, d.originalProgress = n ? -p : p;
997
- }
998
- }
999
- function Et(t) {
1000
- const e = this;
1001
- if (typeof t > "u") {
1002
- const c = e.rtlTranslate ? -1 : 1;
1003
- t = e && e.translate && e.translate * c || 0;
1004
- }
1005
- const i = e.params, s = e.maxTranslate() - e.minTranslate();
1006
- let {
1007
- progress: n,
1008
- isBeginning: r,
1009
- isEnd: l,
1010
- progressLoop: a
1011
- } = e;
1012
- const o = r, d = l;
1013
- if (s === 0)
1014
- n = 0, r = !0, l = !0;
1015
- else {
1016
- n = (t - e.minTranslate()) / s;
1017
- const c = Math.abs(t - e.minTranslate()) < 1, u = Math.abs(t - e.maxTranslate()) < 1;
1018
- r = c || n <= 0, l = u || n >= 1, c && (n = 0), u && (n = 1);
1019
- }
1020
- if (i.loop) {
1021
- const c = e.getSlideIndexByData(0), u = e.getSlideIndexByData(e.slides.length - 1), p = e.slidesGrid[c], h = e.slidesGrid[u], f = e.slidesGrid[e.slidesGrid.length - 1], g = Math.abs(t);
1022
- g >= p ? a = (g - p) / f : a = (g + f - h) / f, a > 1 && (a -= 1);
1023
- }
1024
- Object.assign(e, {
1025
- progress: n,
1026
- progressLoop: a,
1027
- isBeginning: r,
1028
- isEnd: l
1029
- }), (i.watchSlidesProgress || i.centeredSlides && i.autoHeight) && e.updateSlidesProgress(t), r && !o && e.emit("reachBeginning toEdge"), l && !d && e.emit("reachEnd toEdge"), (o && !r || d && !l) && e.emit("fromEdge"), e.emit("progress", n);
1030
- }
1031
- const de = (t, e, i) => {
1032
- e && !t.classList.contains(i) ? t.classList.add(i) : !e && t.classList.contains(i) && t.classList.remove(i);
1033
- };
1034
- function Pt() {
1035
- const t = this, {
1036
- slides: e,
1037
- params: i,
1038
- slidesEl: s,
1039
- activeIndex: n
1040
- } = t, r = t.virtual && i.virtual.enabled, l = t.grid && i.grid && i.grid.rows > 1, a = (u) => $(s, `.${i.slideClass}${u}, swiper-slide${u}`)[0];
1041
- let o, d, c;
1042
- if (r)
1043
- if (i.loop) {
1044
- let u = n - t.virtual.slidesBefore;
1045
- u < 0 && (u = t.virtual.slides.length + u), u >= t.virtual.slides.length && (u -= t.virtual.slides.length), o = a(`[data-swiper-slide-index="${u}"]`);
1046
- } else
1047
- o = a(`[data-swiper-slide-index="${n}"]`);
1048
- else
1049
- l ? (o = e.find((u) => u.column === n), c = e.find((u) => u.column === n + 1), d = e.find((u) => u.column === n - 1)) : o = e[n];
1050
- o && (l || (c = ot(o, `.${i.slideClass}, swiper-slide`)[0], i.loop && !c && (c = e[0]), d = lt(o, `.${i.slideClass}, swiper-slide`)[0], i.loop && !d === 0 && (d = e[e.length - 1]))), e.forEach((u) => {
1051
- de(u, u === o, i.slideActiveClass), de(u, u === c, i.slideNextClass), de(u, u === d, i.slidePrevClass);
1052
- }), t.emitSlidesClasses();
1053
- }
1054
- const te = (t, e) => {
1055
- if (!t || t.destroyed || !t.params)
1056
- return;
1057
- const i = () => t.isElement ? "swiper-slide" : `.${t.params.slideClass}`, s = e.closest(i());
1058
- if (s) {
1059
- let n = s.querySelector(`.${t.params.lazyPreloaderClass}`);
1060
- !n && t.isElement && (s.shadowRoot ? n = s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`) : requestAnimationFrame(() => {
1061
- s.shadowRoot && (n = s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`), n && n.remove());
1062
- })), n && n.remove();
1063
- }
1064
- }, ce = (t, e) => {
1065
- if (!t.slides[e])
1066
- return;
1067
- const i = t.slides[e].querySelector('[loading="lazy"]');
1068
- i && i.removeAttribute("loading");
1069
- }, me = (t) => {
1070
- if (!t || t.destroyed || !t.params)
1071
- return;
1072
- let e = t.params.lazyPreloadPrevNext;
1073
- const i = t.slides.length;
1074
- if (!i || !e || e < 0)
1075
- return;
1076
- e = Math.min(e, i);
1077
- const s = t.params.slidesPerView === "auto" ? t.slidesPerViewDynamic() : Math.ceil(t.params.slidesPerView), n = t.activeIndex;
1078
- if (t.params.grid && t.params.grid.rows > 1) {
1079
- const l = n, a = [l - e];
1080
- a.push(...Array.from({
1081
- length: e
1082
- }).map((o, d) => l + s + d)), t.slides.forEach((o, d) => {
1083
- a.includes(o.column) && ce(t, d);
1084
- });
1085
- return;
1086
- }
1087
- const r = n + s - 1;
1088
- if (t.params.rewind || t.params.loop)
1089
- for (let l = n - e; l <= r + e; l += 1) {
1090
- const a = (l % i + i) % i;
1091
- (a < n || a > r) && ce(t, a);
1092
- }
1093
- else
1094
- for (let l = Math.max(n - e, 0); l <= Math.min(r + e, i - 1); l += 1)
1095
- l !== n && (l > r || l < n) && ce(t, l);
1096
- };
1097
- function Ct(t) {
1098
- const {
1099
- slidesGrid: e,
1100
- params: i
1101
- } = t, s = t.rtlTranslate ? t.translate : -t.translate;
1102
- let n;
1103
- for (let r = 0; r < e.length; r += 1)
1104
- 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);
1105
- return i.normalizeSlideIndex && (n < 0 || typeof n > "u") && (n = 0), n;
1106
- }
1107
- function Mt(t) {
1108
- const e = this, i = e.rtlTranslate ? e.translate : -e.translate, {
1109
- snapGrid: s,
1110
- params: n,
1111
- activeIndex: r,
1112
- realIndex: l,
1113
- snapIndex: a
1114
- } = e;
1115
- let o = t, d;
1116
- const c = (h) => {
1117
- let f = h - e.virtual.slidesBefore;
1118
- return f < 0 && (f = e.virtual.slides.length + f), f >= e.virtual.slides.length && (f -= e.virtual.slides.length), f;
1119
- };
1120
- if (typeof o > "u" && (o = Ct(e)), s.indexOf(i) >= 0)
1121
- d = s.indexOf(i);
1122
- else {
1123
- const h = Math.min(n.slidesPerGroupSkip, o);
1124
- d = h + Math.floor((o - h) / n.slidesPerGroup);
1125
- }
1126
- if (d >= s.length && (d = s.length - 1), o === r && !e.params.loop) {
1127
- d !== a && (e.snapIndex = d, e.emit("snapIndexChange"));
1128
- return;
1129
- }
1130
- if (o === r && e.params.loop && e.virtual && e.params.virtual.enabled) {
1131
- e.realIndex = c(o);
1132
- return;
1133
- }
1134
- const u = e.grid && n.grid && n.grid.rows > 1;
1135
- let p;
1136
- if (e.virtual && n.virtual.enabled && n.loop)
1137
- p = c(o);
1138
- else if (u) {
1139
- const h = e.slides.find((g) => g.column === o);
1140
- let f = parseInt(h.getAttribute("data-swiper-slide-index"), 10);
1141
- Number.isNaN(f) && (f = Math.max(e.slides.indexOf(h), 0)), p = Math.floor(f / n.grid.rows);
1142
- } else if (e.slides[o]) {
1143
- const h = e.slides[o].getAttribute("data-swiper-slide-index");
1144
- h ? p = parseInt(h, 10) : p = o;
1145
- } else
1146
- p = o;
1147
- Object.assign(e, {
1148
- previousSnapIndex: a,
1149
- snapIndex: d,
1150
- previousRealIndex: l,
1151
- realIndex: p,
1152
- previousIndex: r,
1153
- activeIndex: o
1154
- }), e.initialized && me(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (l !== p && e.emit("realIndexChange"), e.emit("slideChange"));
1155
- }
1156
- function It(t, e) {
1157
- const i = this, s = i.params;
1158
- let n = t.closest(`.${s.slideClass}, swiper-slide`);
1159
- !n && i.isElement && e && e.length > 1 && e.includes(t) && [...e.slice(e.indexOf(t) + 1, e.length)].forEach((a) => {
1160
- !n && a.matches && a.matches(`.${s.slideClass}, swiper-slide`) && (n = a);
1161
- });
1162
- let r = !1, l;
1163
- if (n) {
1164
- for (let a = 0; a < i.slides.length; a += 1)
1165
- if (i.slides[a] === n) {
1166
- r = !0, l = a;
1167
- break;
1168
- }
1169
- }
1170
- if (n && r)
1171
- i.clickedSlide = n, i.virtual && i.params.virtual.enabled ? i.clickedIndex = parseInt(n.getAttribute("data-swiper-slide-index"), 10) : i.clickedIndex = l;
1172
- else {
1173
- i.clickedSlide = void 0, i.clickedIndex = void 0;
1174
- return;
1175
- }
1176
- s.slideToClickedSlide && i.clickedIndex !== void 0 && i.clickedIndex !== i.activeIndex && i.slideToClickedSlide();
1177
- }
1178
- var Lt = {
1179
- updateSize: St,
1180
- updateSlides: Tt,
1181
- updateAutoHeight: bt,
1182
- updateSlidesOffset: yt,
1183
- updateSlidesProgress: xt,
1184
- updateProgress: Et,
1185
- updateSlidesClasses: Pt,
1186
- updateActiveIndex: Mt,
1187
- updateClickedSlide: It
1188
- };
1189
- function Ot(t) {
1190
- t === void 0 && (t = this.isHorizontal() ? "x" : "y");
1191
- const e = this, {
1192
- params: i,
1193
- rtlTranslate: s,
1194
- translate: n,
1195
- wrapperEl: r
1196
- } = e;
1197
- if (i.virtualTranslate)
1198
- return s ? -n : n;
1199
- if (i.cssMode)
1200
- return n;
1201
- let l = st(r, t);
1202
- return l += e.cssOverflowAdjustment(), s && (l = -l), l || 0;
1203
- }
1204
- function zt(t, e) {
1205
- const i = this, {
1206
- rtlTranslate: s,
1207
- params: n,
1208
- wrapperEl: r,
1209
- progress: l
1210
- } = i;
1211
- let a = 0, o = 0;
1212
- const d = 0;
1213
- i.isHorizontal() ? a = s ? -t : t : o = t, n.roundLengths && (a = Math.floor(a), o = Math.floor(o)), i.previousTranslate = i.translate, i.translate = i.isHorizontal() ? a : o, n.cssMode ? r[i.isHorizontal() ? "scrollLeft" : "scrollTop"] = i.isHorizontal() ? -a : -o : n.virtualTranslate || (i.isHorizontal() ? a -= i.cssOverflowAdjustment() : o -= i.cssOverflowAdjustment(), r.style.transform = `translate3d(${a}px, ${o}px, ${d}px)`);
1214
- let c;
1215
- const u = i.maxTranslate() - i.minTranslate();
1216
- u === 0 ? c = 0 : c = (t - i.minTranslate()) / u, c !== l && i.updateProgress(t), i.emit("setTranslate", i.translate, e);
1217
- }
1218
- function At() {
1219
- return -this.snapGrid[0];
1220
- }
1221
- function _t() {
1222
- return -this.snapGrid[this.snapGrid.length - 1];
1223
- }
1224
- function Dt(t, e, i, s, n) {
1225
- t === void 0 && (t = 0), e === void 0 && (e = this.params.speed), i === void 0 && (i = !0), s === void 0 && (s = !0);
1226
- const r = this, {
1227
- params: l,
1228
- wrapperEl: a
1229
- } = r;
1230
- if (r.animating && l.preventInteractionOnTransition)
1231
- return !1;
1232
- const o = r.minTranslate(), d = r.maxTranslate();
1233
- let c;
1234
- if (s && t > o ? c = o : s && t < d ? c = d : c = t, r.updateProgress(c), l.cssMode) {
1235
- const u = r.isHorizontal();
1236
- if (e === 0)
1237
- a[u ? "scrollLeft" : "scrollTop"] = -c;
1238
- else {
1239
- if (!r.support.smoothScroll)
1240
- return Ae({
1241
- swiper: r,
1242
- targetPosition: -c,
1243
- side: u ? "left" : "top"
1244
- }), !0;
1245
- a.scrollTo({
1246
- [u ? "left" : "top"]: -c,
1247
- behavior: "smooth"
1248
- });
1249
- }
1250
- return !0;
1251
- }
1252
- return e === 0 ? (r.setTransition(0), r.setTranslate(c), i && (r.emit("beforeTransitionStart", e, n), r.emit("transitionEnd"))) : (r.setTransition(e), r.setTranslate(c), i && (r.emit("beforeTransitionStart", e, n), r.emit("transitionStart")), r.animating || (r.animating = !0, r.onTranslateToWrapperTransitionEnd || (r.onTranslateToWrapperTransitionEnd = function(p) {
1253
- !r || r.destroyed || p.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onTranslateToWrapperTransitionEnd), r.onTranslateToWrapperTransitionEnd = null, delete r.onTranslateToWrapperTransitionEnd, r.animating = !1, i && r.emit("transitionEnd"));
1254
- }), r.wrapperEl.addEventListener("transitionend", r.onTranslateToWrapperTransitionEnd))), !0;
1255
- }
1256
- var Gt = {
1257
- getTranslate: Ot,
1258
- setTranslate: zt,
1259
- minTranslate: At,
1260
- maxTranslate: _t,
1261
- translateTo: Dt
1262
- };
1263
- function Bt(t, e) {
1264
- const i = this;
1265
- i.params.cssMode || (i.wrapperEl.style.transitionDuration = `${t}ms`, i.wrapperEl.style.transitionDelay = t === 0 ? "0ms" : ""), i.emit("setTransition", t, e);
1266
- }
1267
- function Be(t) {
1268
- let {
1269
- swiper: e,
1270
- runCallbacks: i,
1271
- direction: s,
1272
- step: n
1273
- } = t;
1274
- const {
1275
- activeIndex: r,
1276
- previousIndex: l
1277
- } = e;
1278
- let a = s;
1279
- a || (r > l ? a = "next" : r < l ? a = "prev" : a = "reset"), e.emit(`transition${n}`), i && a === "reset" ? e.emit(`slideResetTransition${n}`) : i && r !== l && (e.emit(`slideChangeTransition${n}`), a === "next" ? e.emit(`slideNextTransition${n}`) : e.emit(`slidePrevTransition${n}`));
1280
- }
1281
- function Vt(t, e) {
1282
- t === void 0 && (t = !0);
1283
- const i = this, {
1284
- params: s
1285
- } = i;
1286
- s.cssMode || (s.autoHeight && i.updateAutoHeight(), Be({
1287
- swiper: i,
1288
- runCallbacks: t,
1289
- direction: e,
1290
- step: "Start"
1291
- }));
1292
- }
1293
- function Nt(t, e) {
1294
- t === void 0 && (t = !0);
1295
- const i = this, {
1296
- params: s
1297
- } = i;
1298
- i.animating = !1, !s.cssMode && (i.setTransition(0), Be({
1299
- swiper: i,
1300
- runCallbacks: t,
1301
- direction: e,
1302
- step: "End"
1303
- }));
1304
- }
1305
- var Ft = {
1306
- setTransition: Bt,
1307
- transitionStart: Vt,
1308
- transitionEnd: Nt
1309
- };
1310
- function kt(t, e, i, s, n) {
1311
- t === void 0 && (t = 0), i === void 0 && (i = !0), typeof t == "string" && (t = parseInt(t, 10));
1312
- const r = this;
1313
- let l = t;
1314
- l < 0 && (l = 0);
1315
- const {
1316
- params: a,
1317
- snapGrid: o,
1318
- slidesGrid: d,
1319
- previousIndex: c,
1320
- activeIndex: u,
1321
- rtlTranslate: p,
1322
- wrapperEl: h,
1323
- enabled: f
1324
- } = r;
1325
- if (!f && !s && !n || r.destroyed || r.animating && a.preventInteractionOnTransition)
1326
- return !1;
1327
- typeof e > "u" && (e = r.params.speed);
1328
- const g = Math.min(r.params.slidesPerGroupSkip, l);
1329
- let S = g + Math.floor((l - g) / r.params.slidesPerGroup);
1330
- S >= o.length && (S = o.length - 1);
1331
- const m = -o[S];
1332
- if (a.normalizeSlideIndex)
1333
- for (let I = 0; I < d.length; I += 1) {
1334
- const E = -Math.floor(m * 100), y = Math.floor(d[I] * 100), T = Math.floor(d[I + 1] * 100);
1335
- typeof d[I + 1] < "u" ? E >= y && E < T - (T - y) / 2 ? l = I : E >= y && E < T && (l = I + 1) : E >= y && (l = I);
1336
- }
1337
- if (r.initialized && l !== u && (!r.allowSlideNext && (p ? m > r.translate && m > r.minTranslate() : m < r.translate && m < r.minTranslate()) || !r.allowSlidePrev && m > r.translate && m > r.maxTranslate() && (u || 0) !== l))
1338
- return !1;
1339
- l !== (c || 0) && i && r.emit("beforeSlideChangeStart"), r.updateProgress(m);
1340
- let v;
1341
- l > u ? v = "next" : l < u ? v = "prev" : v = "reset";
1342
- const w = r.virtual && r.params.virtual.enabled;
1343
- if (!(w && n) && (p && -m === r.translate || !p && m === r.translate))
1344
- return r.updateActiveIndex(l), a.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), a.effect !== "slide" && r.setTranslate(m), v !== "reset" && (r.transitionStart(i, v), r.transitionEnd(i, v)), !1;
1345
- if (a.cssMode) {
1346
- const I = r.isHorizontal(), E = p ? m : -m;
1347
- if (e === 0)
1348
- w && (r.wrapperEl.style.scrollSnapType = "none", r._immediateVirtual = !0), w && !r._cssModeVirtualInitialSet && r.params.initialSlide > 0 ? (r._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
1349
- h[I ? "scrollLeft" : "scrollTop"] = E;
1350
- })) : h[I ? "scrollLeft" : "scrollTop"] = E, w && requestAnimationFrame(() => {
1351
- r.wrapperEl.style.scrollSnapType = "", r._immediateVirtual = !1;
1352
- });
1353
- else {
1354
- if (!r.support.smoothScroll)
1355
- return Ae({
1356
- swiper: r,
1357
- targetPosition: E,
1358
- side: I ? "left" : "top"
1359
- }), !0;
1360
- h.scrollTo({
1361
- [I ? "left" : "top"]: E,
1362
- behavior: "smooth"
1363
- });
1364
- }
1365
- return !0;
1366
- }
1367
- const C = Ge().isSafari;
1368
- return w && !n && C && r.isElement && r.virtual.update(!1, !1, l), r.setTransition(e), r.setTranslate(m), r.updateActiveIndex(l), r.updateSlidesClasses(), r.emit("beforeTransitionStart", e, s), r.transitionStart(i, v), e === 0 ? r.transitionEnd(i, v) : r.animating || (r.animating = !0, r.onSlideToWrapperTransitionEnd || (r.onSlideToWrapperTransitionEnd = function(E) {
1369
- !r || r.destroyed || E.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.onSlideToWrapperTransitionEnd = null, delete r.onSlideToWrapperTransitionEnd, r.transitionEnd(i, v));
1370
- }), r.wrapperEl.addEventListener("transitionend", r.onSlideToWrapperTransitionEnd)), !0;
1371
- }
1372
- function Rt(t, e, i, s) {
1373
- t === void 0 && (t = 0), i === void 0 && (i = !0), typeof t == "string" && (t = parseInt(t, 10));
1374
- const n = this;
1375
- if (n.destroyed)
1376
- return;
1377
- typeof e > "u" && (e = n.params.speed);
1378
- const r = n.grid && n.params.grid && n.params.grid.rows > 1;
1379
- let l = t;
1380
- if (n.params.loop)
1381
- if (n.virtual && n.params.virtual.enabled)
1382
- l = l + n.virtual.slidesBefore;
1383
- else {
1384
- let a;
1385
- if (r) {
1386
- const p = l * n.params.grid.rows;
1387
- a = n.slides.find((h) => h.getAttribute("data-swiper-slide-index") * 1 === p).column;
1388
- } else
1389
- a = n.getSlideIndexByData(l);
1390
- const o = r ? Math.ceil(n.slides.length / n.params.grid.rows) : n.slides.length, {
1391
- centeredSlides: d
1392
- } = n.params;
1393
- let c = n.params.slidesPerView;
1394
- c === "auto" ? c = n.slidesPerViewDynamic() : (c = Math.ceil(parseFloat(n.params.slidesPerView, 10)), d && c % 2 === 0 && (c = c + 1));
1395
- let u = o - a < c;
1396
- if (d && (u = u || a < Math.ceil(c / 2)), s && d && n.params.slidesPerView !== "auto" && !r && (u = !1), u) {
1397
- const p = d ? a < n.activeIndex ? "prev" : "next" : a - n.activeIndex - 1 < n.params.slidesPerView ? "next" : "prev";
1398
- n.loopFix({
1399
- direction: p,
1400
- slideTo: !0,
1401
- activeSlideIndex: p === "next" ? a + 1 : a - o + 1,
1402
- slideRealIndex: p === "next" ? n.realIndex : void 0
1403
- });
1404
- }
1405
- if (r) {
1406
- const p = l * n.params.grid.rows;
1407
- l = n.slides.find((h) => h.getAttribute("data-swiper-slide-index") * 1 === p).column;
1408
- } else
1409
- l = n.getSlideIndexByData(l);
1410
- }
1411
- return requestAnimationFrame(() => {
1412
- n.slideTo(l, e, i, s);
1413
- }), n;
1414
- }
1415
- function $t(t, e, i) {
1416
- e === void 0 && (e = !0);
1417
- const s = this, {
1418
- enabled: n,
1419
- params: r,
1420
- animating: l
1421
- } = s;
1422
- if (!n || s.destroyed)
1423
- return s;
1424
- typeof t > "u" && (t = s.params.speed);
1425
- let a = r.slidesPerGroup;
1426
- r.slidesPerView === "auto" && r.slidesPerGroup === 1 && r.slidesPerGroupAuto && (a = Math.max(s.slidesPerViewDynamic("current", !0), 1));
1427
- const o = s.activeIndex < r.slidesPerGroupSkip ? 1 : a, d = s.virtual && r.virtual.enabled;
1428
- if (r.loop) {
1429
- if (l && !d && r.loopPreventsSliding)
1430
- return !1;
1431
- if (s.loopFix({
1432
- direction: "next"
1433
- }), s._clientLeft = s.wrapperEl.clientLeft, s.activeIndex === s.slides.length - 1 && r.cssMode)
1434
- return requestAnimationFrame(() => {
1435
- s.slideTo(s.activeIndex + o, t, e, i);
1436
- }), !0;
1437
- }
1438
- return r.rewind && s.isEnd ? s.slideTo(0, t, e, i) : s.slideTo(s.activeIndex + o, t, e, i);
1439
- }
1440
- function Ht(t, e, i) {
1441
- e === void 0 && (e = !0);
1442
- const s = this, {
1443
- params: n,
1444
- snapGrid: r,
1445
- slidesGrid: l,
1446
- rtlTranslate: a,
1447
- enabled: o,
1448
- animating: d
1449
- } = s;
1450
- if (!o || s.destroyed)
1451
- return s;
1452
- typeof t > "u" && (t = s.params.speed);
1453
- const c = s.virtual && n.virtual.enabled;
1454
- if (n.loop) {
1455
- if (d && !c && n.loopPreventsSliding)
1456
- return !1;
1457
- s.loopFix({
1458
- direction: "prev"
1459
- }), s._clientLeft = s.wrapperEl.clientLeft;
1460
- }
1461
- const u = a ? s.translate : -s.translate;
1462
- function p(v) {
1463
- return v < 0 ? -Math.floor(Math.abs(v)) : Math.floor(v);
1464
- }
1465
- const h = p(u), f = r.map((v) => p(v)), g = n.freeMode && n.freeMode.enabled;
1466
- let S = r[f.indexOf(h) - 1];
1467
- if (typeof S > "u" && (n.cssMode || g)) {
1468
- let v;
1469
- r.forEach((w, x) => {
1470
- h >= w && (v = x);
1471
- }), typeof v < "u" && (S = g ? r[v] : r[v > 0 ? v - 1 : v]);
1472
- }
1473
- let m = 0;
1474
- if (typeof S < "u" && (m = l.indexOf(S), m < 0 && (m = s.activeIndex - 1), n.slidesPerView === "auto" && n.slidesPerGroup === 1 && n.slidesPerGroupAuto && (m = m - s.slidesPerViewDynamic("previous", !0) + 1, m = Math.max(m, 0))), n.rewind && s.isBeginning) {
1475
- const v = s.params.virtual && s.params.virtual.enabled && s.virtual ? s.virtual.slides.length - 1 : s.slides.length - 1;
1476
- return s.slideTo(v, t, e, i);
1477
- } else if (n.loop && s.activeIndex === 0 && n.cssMode)
1478
- return requestAnimationFrame(() => {
1479
- s.slideTo(m, t, e, i);
1480
- }), !0;
1481
- return s.slideTo(m, t, e, i);
1482
- }
1483
- function jt(t, e, i) {
1484
- e === void 0 && (e = !0);
1485
- const s = this;
1486
- if (!s.destroyed)
1487
- return typeof t > "u" && (t = s.params.speed), s.slideTo(s.activeIndex, t, e, i);
1488
- }
1489
- function Wt(t, e, i, s) {
1490
- e === void 0 && (e = !0), s === void 0 && (s = 0.5);
1491
- const n = this;
1492
- if (n.destroyed)
1493
- return;
1494
- typeof t > "u" && (t = n.params.speed);
1495
- let r = n.activeIndex;
1496
- const l = Math.min(n.params.slidesPerGroupSkip, r), a = l + Math.floor((r - l) / n.params.slidesPerGroup), o = n.rtlTranslate ? n.translate : -n.translate;
1497
- if (o >= n.snapGrid[a]) {
1498
- const d = n.snapGrid[a], c = n.snapGrid[a + 1];
1499
- o - d > (c - d) * s && (r += n.params.slidesPerGroup);
1500
- } else {
1501
- const d = n.snapGrid[a - 1], c = n.snapGrid[a];
1502
- o - d <= (c - d) * s && (r -= n.params.slidesPerGroup);
1503
- }
1504
- return r = Math.max(r, 0), r = Math.min(r, n.slidesGrid.length - 1), n.slideTo(r, t, e, i);
1505
- }
1506
- function qt() {
1507
- const t = this;
1508
- if (t.destroyed)
1509
- return;
1510
- const {
1511
- params: e,
1512
- slidesEl: i
1513
- } = t, s = e.slidesPerView === "auto" ? t.slidesPerViewDynamic() : e.slidesPerView;
1514
- let n = t.getSlideIndexWhenGrid(t.clickedIndex), r;
1515
- const l = t.isElement ? "swiper-slide" : `.${e.slideClass}`, a = t.grid && t.params.grid && t.params.grid.rows > 1;
1516
- if (e.loop) {
1517
- if (t.animating)
1518
- return;
1519
- r = parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"), 10), e.centeredSlides ? t.slideToLoop(r) : n > (a ? (t.slides.length - s) / 2 - (t.params.grid.rows - 1) : t.slides.length - s) ? (t.loopFix(), n = t.getSlideIndex($(i, `${l}[data-swiper-slide-index="${r}"]`)[0]), ze(() => {
1520
- t.slideTo(n);
1521
- })) : t.slideTo(n);
1522
- } else
1523
- t.slideTo(n);
1524
- }
1525
- var Yt = {
1526
- slideTo: kt,
1527
- slideToLoop: Rt,
1528
- slideNext: $t,
1529
- slidePrev: Ht,
1530
- slideReset: jt,
1531
- slideToClosest: Wt,
1532
- slideToClickedSlide: qt
1533
- };
1534
- function Xt(t, e) {
1535
- const i = this, {
1536
- params: s,
1537
- slidesEl: n
1538
- } = i;
1539
- if (!s.loop || i.virtual && i.params.virtual.enabled)
1540
- return;
1541
- const r = () => {
1542
- $(n, `.${s.slideClass}, swiper-slide`).forEach((h, f) => {
1543
- h.setAttribute("data-swiper-slide-index", f);
1544
- });
1545
- }, l = () => {
1546
- const p = $(n, `.${s.slideBlankClass}`);
1547
- p.forEach((h) => {
1548
- h.remove();
1549
- }), p.length > 0 && (i.recalcSlides(), i.updateSlides());
1550
- }, a = i.grid && s.grid && s.grid.rows > 1;
1551
- s.loopAddBlankSlides && (s.slidesPerGroup > 1 || a) && l();
1552
- const o = s.slidesPerGroup * (a ? s.grid.rows : 1), d = i.slides.length % o !== 0, c = a && i.slides.length % s.grid.rows !== 0, u = (p) => {
1553
- for (let h = 0; h < p; h += 1) {
1554
- const f = i.isElement ? re("swiper-slide", [s.slideBlankClass]) : re("div", [s.slideClass, s.slideBlankClass]);
1555
- i.slidesEl.append(f);
1556
- }
1557
- };
1558
- if (d) {
1559
- if (s.loopAddBlankSlides) {
1560
- const p = o - i.slides.length % o;
1561
- u(p), i.recalcSlides(), i.updateSlides();
1562
- } else
1563
- se("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)");
1564
- r();
1565
- } else if (c) {
1566
- if (s.loopAddBlankSlides) {
1567
- const p = s.grid.rows - i.slides.length % s.grid.rows;
1568
- u(p), i.recalcSlides(), i.updateSlides();
1569
- } else
1570
- se("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)");
1571
- r();
1572
- } else
1573
- r();
1574
- i.loopFix({
1575
- slideRealIndex: t,
1576
- direction: s.centeredSlides ? void 0 : "next",
1577
- initial: e
1578
- });
1579
- }
1580
- function Ut(t) {
1581
- let {
1582
- slideRealIndex: e,
1583
- slideTo: i = !0,
1584
- direction: s,
1585
- setTranslate: n,
1586
- activeSlideIndex: r,
1587
- initial: l,
1588
- byController: a,
1589
- byMousewheel: o
1590
- } = t === void 0 ? {} : t;
1591
- const d = this;
1592
- if (!d.params.loop)
1593
- return;
1594
- d.emit("beforeLoopFix");
1595
- const {
1596
- slides: c,
1597
- allowSlidePrev: u,
1598
- allowSlideNext: p,
1599
- slidesEl: h,
1600
- params: f
1601
- } = d, {
1602
- centeredSlides: g,
1603
- initialSlide: S
1604
- } = f;
1605
- if (d.allowSlidePrev = !0, d.allowSlideNext = !0, d.virtual && f.virtual.enabled) {
1606
- i && (!f.centeredSlides && d.snapIndex === 0 ? d.slideTo(d.virtual.slides.length, 0, !1, !0) : f.centeredSlides && d.snapIndex < f.slidesPerView ? d.slideTo(d.virtual.slides.length + d.snapIndex, 0, !1, !0) : d.snapIndex === d.snapGrid.length - 1 && d.slideTo(d.virtual.slidesBefore, 0, !1, !0)), d.allowSlidePrev = u, d.allowSlideNext = p, d.emit("loopFix");
1607
- return;
1608
- }
1609
- let m = f.slidesPerView;
1610
- m === "auto" ? m = d.slidesPerViewDynamic() : (m = Math.ceil(parseFloat(f.slidesPerView, 10)), g && m % 2 === 0 && (m = m + 1));
1611
- const v = f.slidesPerGroupAuto ? m : f.slidesPerGroup;
1612
- let w = g ? Math.max(v, Math.ceil(m / 2)) : v;
1613
- w % v !== 0 && (w += v - w % v), w += f.loopAdditionalSlides, d.loopedSlides = w;
1614
- const x = d.grid && f.grid && f.grid.rows > 1;
1615
- c.length < m + w || d.params.effect === "cards" && c.length < m + w * 2 ? se("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") : x && f.grid.fill === "row" && se("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
1616
- const b = [], C = [], I = x ? Math.ceil(c.length / f.grid.rows) : c.length, E = l && I - S < m && !g;
1617
- let y = E ? S : d.activeIndex;
1618
- typeof r > "u" ? r = d.getSlideIndex(c.find((O) => O.classList.contains(f.slideActiveClass))) : y = r;
1619
- const T = s === "next" || !s, P = s === "prev" || !s;
1620
- let L = 0, A = 0;
1621
- const N = (x ? c[r].column : r) + (g && typeof n > "u" ? -m / 2 + 0.5 : 0);
1622
- if (N < w) {
1623
- L = Math.max(w - N, v);
1624
- for (let O = 0; O < w - N; O += 1) {
1625
- const D = O - Math.floor(O / I) * I;
1626
- if (x) {
1627
- const M = I - D - 1;
1628
- for (let z = c.length - 1; z >= 0; z -= 1)
1629
- c[z].column === M && b.push(z);
1630
- } else
1631
- b.push(I - D - 1);
1632
- }
1633
- } else if (N + m > I - w) {
1634
- A = Math.max(N - (I - w * 2), v), E && (A = Math.max(A, m - I + S + 1));
1635
- for (let O = 0; O < A; O += 1) {
1636
- const D = O - Math.floor(O / I) * I;
1637
- x ? c.forEach((M, z) => {
1638
- M.column === D && C.push(z);
1639
- }) : C.push(D);
1640
- }
1641
- }
1642
- if (d.__preventObserver__ = !0, requestAnimationFrame(() => {
1643
- d.__preventObserver__ = !1;
1644
- }), d.params.effect === "cards" && c.length < m + w * 2 && (C.includes(r) && C.splice(C.indexOf(r), 1), b.includes(r) && b.splice(b.indexOf(r), 1)), P && b.forEach((O) => {
1645
- c[O].swiperLoopMoveDOM = !0, h.prepend(c[O]), c[O].swiperLoopMoveDOM = !1;
1646
- }), T && C.forEach((O) => {
1647
- c[O].swiperLoopMoveDOM = !0, h.append(c[O]), c[O].swiperLoopMoveDOM = !1;
1648
- }), d.recalcSlides(), f.slidesPerView === "auto" ? d.updateSlides() : x && (b.length > 0 && P || C.length > 0 && T) && d.slides.forEach((O, D) => {
1649
- d.grid.updateSlide(D, O, d.slides);
1650
- }), f.watchSlidesProgress && d.updateSlidesOffset(), i) {
1651
- if (b.length > 0 && P) {
1652
- if (typeof e > "u") {
1653
- const O = d.slidesGrid[y], M = d.slidesGrid[y + L] - O;
1654
- o ? d.setTranslate(d.translate - M) : (d.slideTo(y + Math.ceil(L), 0, !1, !0), n && (d.touchEventsData.startTranslate = d.touchEventsData.startTranslate - M, d.touchEventsData.currentTranslate = d.touchEventsData.currentTranslate - M));
1655
- } else if (n) {
1656
- const O = x ? b.length / f.grid.rows : b.length;
1657
- d.slideTo(d.activeIndex + O, 0, !1, !0), d.touchEventsData.currentTranslate = d.translate;
1658
- }
1659
- } else if (C.length > 0 && T)
1660
- if (typeof e > "u") {
1661
- const O = d.slidesGrid[y], M = d.slidesGrid[y - A] - O;
1662
- o ? d.setTranslate(d.translate - M) : (d.slideTo(y - A, 0, !1, !0), n && (d.touchEventsData.startTranslate = d.touchEventsData.startTranslate - M, d.touchEventsData.currentTranslate = d.touchEventsData.currentTranslate - M));
1663
- } else {
1664
- const O = x ? C.length / f.grid.rows : C.length;
1665
- d.slideTo(d.activeIndex - O, 0, !1, !0);
1666
- }
1667
- }
1668
- if (d.allowSlidePrev = u, d.allowSlideNext = p, d.controller && d.controller.control && !a) {
1669
- const O = {
1670
- slideRealIndex: e,
1671
- direction: s,
1672
- setTranslate: n,
1673
- activeSlideIndex: r,
1674
- byController: !0
1675
- };
1676
- Array.isArray(d.controller.control) ? d.controller.control.forEach((D) => {
1677
- !D.destroyed && D.params.loop && D.loopFix({
1678
- ...O,
1679
- slideTo: D.params.slidesPerView === f.slidesPerView ? i : !1
1680
- });
1681
- }) : d.controller.control instanceof d.constructor && d.controller.control.params.loop && d.controller.control.loopFix({
1682
- ...O,
1683
- slideTo: d.controller.control.params.slidesPerView === f.slidesPerView ? i : !1
1684
- });
1685
- }
1686
- d.emit("loopFix");
1687
- }
1688
- function Kt() {
1689
- const t = this, {
1690
- params: e,
1691
- slidesEl: i
1692
- } = t;
1693
- if (!e.loop || !i || t.virtual && t.params.virtual.enabled)
1694
- return;
1695
- t.recalcSlides();
1696
- const s = [];
1697
- t.slides.forEach((n) => {
1698
- const r = typeof n.swiperSlideIndex > "u" ? n.getAttribute("data-swiper-slide-index") * 1 : n.swiperSlideIndex;
1699
- s[r] = n;
1700
- }), t.slides.forEach((n) => {
1701
- n.removeAttribute("data-swiper-slide-index");
1702
- }), s.forEach((n) => {
1703
- i.append(n);
1704
- }), t.recalcSlides(), t.slideTo(t.realIndex, 0);
1705
- }
1706
- var Qt = {
1707
- loopCreate: Xt,
1708
- loopFix: Ut,
1709
- loopDestroy: Kt
1710
- };
1711
- function Zt(t) {
1712
- const e = this;
1713
- if (!e.params.simulateTouch || e.params.watchOverflow && e.isLocked || e.params.cssMode)
1714
- return;
1715
- const i = e.params.touchEventsTarget === "container" ? e.el : e.wrapperEl;
1716
- e.isElement && (e.__preventObserver__ = !0), i.style.cursor = "move", i.style.cursor = t ? "grabbing" : "grab", e.isElement && requestAnimationFrame(() => {
1717
- e.__preventObserver__ = !1;
1718
- });
1719
- }
1720
- function Jt() {
1721
- const t = this;
1722
- t.params.watchOverflow && t.isLocked || t.params.cssMode || (t.isElement && (t.__preventObserver__ = !0), t[t.params.touchEventsTarget === "container" ? "el" : "wrapperEl"].style.cursor = "", t.isElement && requestAnimationFrame(() => {
1723
- t.__preventObserver__ = !1;
1724
- }));
1725
- }
1726
- var ei = {
1727
- setGrabCursor: Zt,
1728
- unsetGrabCursor: Jt
1729
- };
1730
- function ti(t, e) {
1731
- e === void 0 && (e = this);
1732
- function i(s) {
1733
- if (!s || s === H() || s === B())
1734
- return null;
1735
- s.assignedSlot && (s = s.assignedSlot);
1736
- const n = s.closest(t);
1737
- return !n && !s.getRootNode ? null : n || i(s.getRootNode().host);
1738
- }
1739
- return i(e);
1740
- }
1741
- function Ee(t, e, i) {
1742
- const s = B(), {
1743
- params: n
1744
- } = t, r = n.edgeSwipeDetection, l = n.edgeSwipeThreshold;
1745
- return r && (i <= l || i >= s.innerWidth - l) ? r === "prevent" ? (e.preventDefault(), !0) : !1 : !0;
1746
- }
1747
- function ii(t) {
1748
- const e = this, i = H();
1749
- let s = t;
1750
- s.originalEvent && (s = s.originalEvent);
1751
- const n = e.touchEventsData;
1752
- if (s.type === "pointerdown") {
1753
- if (n.pointerId !== null && n.pointerId !== s.pointerId)
1754
- return;
1755
- n.pointerId = s.pointerId;
1756
- } else
1757
- s.type === "touchstart" && s.targetTouches.length === 1 && (n.touchId = s.targetTouches[0].identifier);
1758
- if (s.type === "touchstart") {
1759
- Ee(e, s, s.targetTouches[0].pageX);
1760
- return;
1761
- }
1762
- const {
1763
- params: r,
1764
- touches: l,
1765
- enabled: a
1766
- } = e;
1767
- if (!a || !r.simulateTouch && s.pointerType === "mouse" || e.animating && r.preventInteractionOnTransition)
1768
- return;
1769
- !e.animating && r.cssMode && r.loop && e.loopFix();
1770
- let o = s.target;
1771
- if (r.touchEventsTarget === "wrapper" && !at(o, e.wrapperEl) || "which" in s && s.which === 3 || "button" in s && s.button > 0 || n.isTouched && n.isMoved)
1772
- return;
1773
- const d = !!r.noSwipingClass && r.noSwipingClass !== "", c = s.composedPath ? s.composedPath() : s.path;
1774
- d && s.target && s.target.shadowRoot && c && (o = c[0]);
1775
- const u = r.noSwipingSelector ? r.noSwipingSelector : `.${r.noSwipingClass}`, p = !!(s.target && s.target.shadowRoot);
1776
- if (r.noSwiping && (p ? ti(u, o) : o.closest(u))) {
1777
- e.allowClick = !0;
1778
- return;
1779
- }
1780
- if (r.swipeHandler && !o.closest(r.swipeHandler))
1781
- return;
1782
- l.currentX = s.pageX, l.currentY = s.pageY;
1783
- const h = l.currentX, f = l.currentY;
1784
- if (!Ee(e, s, h))
1785
- return;
1786
- Object.assign(n, {
1787
- isTouched: !0,
1788
- isMoved: !1,
1789
- allowTouchCallbacks: !0,
1790
- isScrolling: void 0,
1791
- startMoving: void 0
1792
- }), l.startX = h, l.startY = f, n.touchStartTime = ie(), e.allowClick = !0, e.updateSize(), e.swipeDirection = void 0, r.threshold > 0 && (n.allowThresholdMove = !1);
1793
- let g = !0;
1794
- o.matches(n.focusableElements) && (g = !1, o.nodeName === "SELECT" && (n.isTouched = !1)), i.activeElement && i.activeElement.matches(n.focusableElements) && i.activeElement !== o && (s.pointerType === "mouse" || s.pointerType !== "mouse" && !o.matches(n.focusableElements)) && i.activeElement.blur();
1795
- const S = g && e.allowTouchMove && r.touchStartPreventDefault;
1796
- (r.touchStartForcePreventDefault || S) && !o.isContentEditable && s.preventDefault(), r.freeMode && r.freeMode.enabled && e.freeMode && e.animating && !r.cssMode && e.freeMode.onTouchStart(), e.emit("touchStart", s);
1797
- }
1798
- function si(t) {
1799
- const e = H(), i = this, s = i.touchEventsData, {
1800
- params: n,
1801
- touches: r,
1802
- rtlTranslate: l,
1803
- enabled: a
1804
- } = i;
1805
- if (!a || !n.simulateTouch && t.pointerType === "mouse")
1806
- return;
1807
- let o = t;
1808
- if (o.originalEvent && (o = o.originalEvent), o.type === "pointermove" && (s.touchId !== null || o.pointerId !== s.pointerId))
1809
- return;
1810
- let d;
1811
- if (o.type === "touchmove") {
1812
- if (d = [...o.changedTouches].find((C) => C.identifier === s.touchId), !d || d.identifier !== s.touchId)
1813
- return;
1814
- } else
1815
- d = o;
1816
- if (!s.isTouched) {
1817
- s.startMoving && s.isScrolling && i.emit("touchMoveOpposite", o);
1818
- return;
1819
- }
1820
- const c = d.pageX, u = d.pageY;
1821
- if (o.preventedByNestedSwiper) {
1822
- r.startX = c, r.startY = u;
1823
- return;
1824
- }
1825
- if (!i.allowTouchMove) {
1826
- o.target.matches(s.focusableElements) || (i.allowClick = !1), s.isTouched && (Object.assign(r, {
1827
- startX: c,
1828
- startY: u,
1829
- currentX: c,
1830
- currentY: u
1831
- }), s.touchStartTime = ie());
1832
- return;
1833
- }
1834
- if (n.touchReleaseOnEdges && !n.loop)
1835
- if (i.isVertical()) {
1836
- if (u < r.startY && i.translate <= i.maxTranslate() || u > r.startY && i.translate >= i.minTranslate()) {
1837
- s.isTouched = !1, s.isMoved = !1;
1838
- return;
1839
- }
1840
- } else {
1841
- if (l && (c > r.startX && -i.translate <= i.maxTranslate() || c < r.startX && -i.translate >= i.minTranslate()))
1842
- return;
1843
- if (!l && (c < r.startX && i.translate <= i.maxTranslate() || c > r.startX && i.translate >= i.minTranslate()))
1844
- return;
1845
- }
1846
- if (e.activeElement && e.activeElement.matches(s.focusableElements) && e.activeElement !== o.target && o.pointerType !== "mouse" && e.activeElement.blur(), e.activeElement && o.target === e.activeElement && o.target.matches(s.focusableElements)) {
1847
- s.isMoved = !0, i.allowClick = !1;
1848
- return;
1849
- }
1850
- s.allowTouchCallbacks && i.emit("touchMove", o), r.previousX = r.currentX, r.previousY = r.currentY, r.currentX = c, r.currentY = u;
1851
- const p = r.currentX - r.startX, h = r.currentY - r.startY;
1852
- if (i.params.threshold && Math.sqrt(p ** 2 + h ** 2) < i.params.threshold)
1853
- return;
1854
- if (typeof s.isScrolling > "u") {
1855
- let C;
1856
- i.isHorizontal() && r.currentY === r.startY || i.isVertical() && r.currentX === r.startX ? s.isScrolling = !1 : p * p + h * h >= 25 && (C = Math.atan2(Math.abs(h), Math.abs(p)) * 180 / Math.PI, s.isScrolling = i.isHorizontal() ? C > n.touchAngle : 90 - C > n.touchAngle);
1857
- }
1858
- if (s.isScrolling && i.emit("touchMoveOpposite", o), typeof s.startMoving > "u" && (r.currentX !== r.startX || r.currentY !== r.startY) && (s.startMoving = !0), s.isScrolling || o.type === "touchmove" && s.preventTouchMoveFromPointerMove) {
1859
- s.isTouched = !1;
1860
- return;
1861
- }
1862
- if (!s.startMoving)
1863
- return;
1864
- i.allowClick = !1, !n.cssMode && o.cancelable && o.preventDefault(), n.touchMoveStopPropagation && !n.nested && o.stopPropagation();
1865
- let f = i.isHorizontal() ? p : h, g = i.isHorizontal() ? r.currentX - r.previousX : r.currentY - r.previousY;
1866
- n.oneWayMovement && (f = Math.abs(f) * (l ? 1 : -1), g = Math.abs(g) * (l ? 1 : -1)), r.diff = f, f *= n.touchRatio, l && (f = -f, g = -g);
1867
- const S = i.touchesDirection;
1868
- i.swipeDirection = f > 0 ? "prev" : "next", i.touchesDirection = g > 0 ? "prev" : "next";
1869
- const m = i.params.loop && !n.cssMode, v = i.touchesDirection === "next" && i.allowSlideNext || i.touchesDirection === "prev" && i.allowSlidePrev;
1870
- if (!s.isMoved) {
1871
- if (m && v && i.loopFix({
1872
- direction: i.swipeDirection
1873
- }), s.startTranslate = i.getTranslate(), i.setTransition(0), i.animating) {
1874
- const C = new window.CustomEvent("transitionend", {
1875
- bubbles: !0,
1876
- cancelable: !0,
1877
- detail: {
1878
- bySwiperTouchMove: !0
1879
- }
1880
- });
1881
- i.wrapperEl.dispatchEvent(C);
1882
- }
1883
- s.allowMomentumBounce = !1, n.grabCursor && (i.allowSlideNext === !0 || i.allowSlidePrev === !0) && i.setGrabCursor(!0), i.emit("sliderFirstMove", o);
1884
- }
1885
- let w;
1886
- if ((/* @__PURE__ */ new Date()).getTime(), n._loopSwapReset !== !1 && s.isMoved && s.allowThresholdMove && S !== i.touchesDirection && m && v && Math.abs(f) >= 1) {
1887
- Object.assign(r, {
1888
- startX: c,
1889
- startY: u,
1890
- currentX: c,
1891
- currentY: u,
1892
- startTranslate: s.currentTranslate
1893
- }), s.loopSwapReset = !0, s.startTranslate = s.currentTranslate;
1894
- return;
1895
- }
1896
- i.emit("sliderMove", o), s.isMoved = !0, s.currentTranslate = f + s.startTranslate;
1897
- let x = !0, b = n.resistanceRatio;
1898
- if (n.touchReleaseOnEdges && (b = 0), f > 0 ? (m && v && !w && 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({
1899
- direction: "prev",
1900
- setTranslate: !0,
1901
- activeSlideIndex: 0
1902
- }), s.currentTranslate > i.minTranslate() && (x = !1, n.resistance && (s.currentTranslate = i.minTranslate() - 1 + (-i.minTranslate() + s.startTranslate + f) ** b))) : f < 0 && (m && v && !w && 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({
1903
- direction: "next",
1904
- setTranslate: !0,
1905
- activeSlideIndex: i.slides.length - (n.slidesPerView === "auto" ? i.slidesPerViewDynamic() : Math.ceil(parseFloat(n.slidesPerView, 10)))
1906
- }), s.currentTranslate < i.maxTranslate() && (x = !1, n.resistance && (s.currentTranslate = i.maxTranslate() + 1 - (i.maxTranslate() - s.startTranslate - f) ** b))), x && (o.preventedByNestedSwiper = !0), !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)
1907
- if (Math.abs(f) > n.threshold || s.allowThresholdMove) {
1908
- if (!s.allowThresholdMove) {
1909
- s.allowThresholdMove = !0, r.startX = r.currentX, r.startY = r.currentY, s.currentTranslate = s.startTranslate, r.diff = i.isHorizontal() ? r.currentX - r.startX : r.currentY - r.startY;
1910
- return;
1911
- }
1912
- } else {
1913
- s.currentTranslate = s.startTranslate;
1914
- return;
1915
- }
1916
- !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));
1917
- }
1918
- function ri(t) {
1919
- const e = this, i = e.touchEventsData;
1920
- let s = t;
1921
- s.originalEvent && (s = s.originalEvent);
1922
- let n;
1923
- if (s.type === "touchend" || s.type === "touchcancel") {
1924
- if (n = [...s.changedTouches].find((b) => b.identifier === i.touchId), !n || n.identifier !== i.touchId)
1925
- return;
1926
- } else {
1927
- if (i.touchId !== null || s.pointerId !== i.pointerId)
1928
- return;
1929
- n = s;
1930
- }
1931
- if (["pointercancel", "pointerout", "pointerleave", "contextmenu"].includes(s.type) && !(["pointercancel", "contextmenu"].includes(s.type) && (e.browser.isSafari || e.browser.isWebView)))
1932
- return;
1933
- i.pointerId = null, i.touchId = null;
1934
- const {
1935
- params: l,
1936
- touches: a,
1937
- rtlTranslate: o,
1938
- slidesGrid: d,
1939
- enabled: c
1940
- } = e;
1941
- if (!c || !l.simulateTouch && s.pointerType === "mouse")
1942
- return;
1943
- if (i.allowTouchCallbacks && e.emit("touchEnd", s), i.allowTouchCallbacks = !1, !i.isTouched) {
1944
- i.isMoved && l.grabCursor && e.setGrabCursor(!1), i.isMoved = !1, i.startMoving = !1;
1945
- return;
1946
- }
1947
- l.grabCursor && i.isMoved && i.isTouched && (e.allowSlideNext === !0 || e.allowSlidePrev === !0) && e.setGrabCursor(!1);
1948
- const u = ie(), p = u - i.touchStartTime;
1949
- if (e.allowClick) {
1950
- const b = s.path || s.composedPath && s.composedPath();
1951
- e.updateClickedSlide(b && b[0] || s.target, b), e.emit("tap click", s), p < 300 && u - i.lastClickTime < 300 && e.emit("doubleTap doubleClick", s);
1952
- }
1953
- if (i.lastClickTime = ie(), ze(() => {
1954
- e.destroyed || (e.allowClick = !0);
1955
- }), !i.isTouched || !i.isMoved || !e.swipeDirection || a.diff === 0 && !i.loopSwapReset || i.currentTranslate === i.startTranslate && !i.loopSwapReset) {
1956
- i.isTouched = !1, i.isMoved = !1, i.startMoving = !1;
1957
- return;
1958
- }
1959
- i.isTouched = !1, i.isMoved = !1, i.startMoving = !1;
1960
- let h;
1961
- if (l.followFinger ? h = o ? e.translate : -e.translate : h = -i.currentTranslate, l.cssMode)
1962
- return;
1963
- if (l.freeMode && l.freeMode.enabled) {
1964
- e.freeMode.onTouchEnd({
1965
- currentPos: h
1966
- });
1967
- return;
1968
- }
1969
- const f = h >= -e.maxTranslate() && !e.params.loop;
1970
- let g = 0, S = e.slidesSizesGrid[0];
1971
- for (let b = 0; b < d.length; b += b < l.slidesPerGroupSkip ? 1 : l.slidesPerGroup) {
1972
- const C = b < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
1973
- typeof d[b + C] < "u" ? (f || h >= d[b] && h < d[b + C]) && (g = b, S = d[b + C] - d[b]) : (f || h >= d[b]) && (g = b, S = d[d.length - 1] - d[d.length - 2]);
1974
- }
1975
- let m = null, v = null;
1976
- l.rewind && (e.isBeginning ? v = l.virtual && l.virtual.enabled && e.virtual ? e.virtual.slides.length - 1 : e.slides.length - 1 : e.isEnd && (m = 0));
1977
- const w = (h - d[g]) / S, x = g < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
1978
- if (p > l.longSwipesMs) {
1979
- if (!l.longSwipes) {
1980
- e.slideTo(e.activeIndex);
1981
- return;
1982
- }
1983
- e.swipeDirection === "next" && (w >= l.longSwipesRatio ? e.slideTo(l.rewind && e.isEnd ? m : g + x) : e.slideTo(g)), e.swipeDirection === "prev" && (w > 1 - l.longSwipesRatio ? e.slideTo(g + x) : v !== null && w < 0 && Math.abs(w) > l.longSwipesRatio ? e.slideTo(v) : e.slideTo(g));
1984
- } else {
1985
- if (!l.shortSwipes) {
1986
- e.slideTo(e.activeIndex);
1987
- return;
1988
- }
1989
- e.navigation && (s.target === e.navigation.nextEl || s.target === e.navigation.prevEl) ? s.target === e.navigation.nextEl ? e.slideTo(g + x) : e.slideTo(g) : (e.swipeDirection === "next" && e.slideTo(m !== null ? m : g + x), e.swipeDirection === "prev" && e.slideTo(v !== null ? v : g));
1990
- }
1991
- }
1992
- function Pe() {
1993
- const t = this, {
1994
- params: e,
1995
- el: i
1996
- } = t;
1997
- if (i && i.offsetWidth === 0)
1998
- return;
1999
- e.breakpoints && t.setBreakpoint();
2000
- const {
2001
- allowSlideNext: s,
2002
- allowSlidePrev: n,
2003
- snapGrid: r
2004
- } = t, l = t.virtual && t.params.virtual.enabled;
2005
- t.allowSlideNext = !0, t.allowSlidePrev = !0, t.updateSize(), t.updateSlides(), t.updateSlidesClasses();
2006
- const a = l && e.loop;
2007
- (e.slidesPerView === "auto" || e.slidesPerView > 1) && t.isEnd && !t.isBeginning && !t.params.centeredSlides && !a ? t.slideTo(t.slides.length - 1, 0, !1, !0) : t.params.loop && !l ? t.slideToLoop(t.realIndex, 0, !1, !0) : t.slideTo(t.activeIndex, 0, !1, !0), t.autoplay && t.autoplay.running && t.autoplay.paused && (clearTimeout(t.autoplay.resizeTimeout), t.autoplay.resizeTimeout = setTimeout(() => {
2008
- t.autoplay && t.autoplay.running && t.autoplay.paused && t.autoplay.resume();
2009
- }, 500)), t.allowSlidePrev = n, t.allowSlideNext = s, t.params.watchOverflow && r !== t.snapGrid && t.checkOverflow();
2010
- }
2011
- function ni(t) {
2012
- const e = this;
2013
- e.enabled && (e.allowClick || (e.params.preventClicks && t.preventDefault(), e.params.preventClicksPropagation && e.animating && (t.stopPropagation(), t.stopImmediatePropagation())));
2014
- }
2015
- function ai() {
2016
- const t = this, {
2017
- wrapperEl: e,
2018
- rtlTranslate: i,
2019
- enabled: s
2020
- } = t;
2021
- if (!s)
2022
- return;
2023
- t.previousTranslate = t.translate, t.isHorizontal() ? t.translate = -e.scrollLeft : t.translate = -e.scrollTop, t.translate === 0 && (t.translate = 0), t.updateActiveIndex(), t.updateSlidesClasses();
2024
- let n;
2025
- const r = t.maxTranslate() - t.minTranslate();
2026
- 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, !1);
2027
- }
2028
- function li(t) {
2029
- const e = this;
2030
- te(e, t.target), !(e.params.cssMode || e.params.slidesPerView !== "auto" && !e.params.autoHeight) && e.update();
2031
- }
2032
- function oi() {
2033
- const t = this;
2034
- t.documentTouchHandlerProceeded || (t.documentTouchHandlerProceeded = !0, t.params.touchReleaseOnEdges && (t.el.style.touchAction = "auto"));
2035
- }
2036
- const Ve = (t, e) => {
2037
- const i = H(), {
2038
- params: s,
2039
- el: n,
2040
- wrapperEl: r,
2041
- device: l
2042
- } = t, a = !!s.nested, o = e === "on" ? "addEventListener" : "removeEventListener", d = e;
2043
- !n || typeof n == "string" || (i[o]("touchstart", t.onDocumentTouchStart, {
2044
- passive: !1,
2045
- capture: a
2046
- }), n[o]("touchstart", t.onTouchStart, {
2047
- passive: !1
2048
- }), n[o]("pointerdown", t.onTouchStart, {
2049
- passive: !1
2050
- }), i[o]("touchmove", t.onTouchMove, {
2051
- passive: !1,
2052
- capture: a
2053
- }), i[o]("pointermove", t.onTouchMove, {
2054
- passive: !1,
2055
- capture: a
2056
- }), i[o]("touchend", t.onTouchEnd, {
2057
- passive: !0
2058
- }), i[o]("pointerup", t.onTouchEnd, {
2059
- passive: !0
2060
- }), i[o]("pointercancel", t.onTouchEnd, {
2061
- passive: !0
2062
- }), i[o]("touchcancel", t.onTouchEnd, {
2063
- passive: !0
2064
- }), i[o]("pointerout", t.onTouchEnd, {
2065
- passive: !0
2066
- }), i[o]("pointerleave", t.onTouchEnd, {
2067
- passive: !0
2068
- }), i[o]("contextmenu", t.onTouchEnd, {
2069
- passive: !0
2070
- }), (s.preventClicks || s.preventClicksPropagation) && n[o]("click", t.onClick, !0), s.cssMode && r[o]("scroll", t.onScroll), s.updateOnWindowResize ? t[d](l.ios || l.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", Pe, !0) : t[d]("observerUpdate", Pe, !0), n[o]("load", t.onLoad, {
2071
- capture: !0
2072
- }));
2073
- };
2074
- function di() {
2075
- const t = this, {
2076
- params: e
2077
- } = t;
2078
- t.onTouchStart = ii.bind(t), t.onTouchMove = si.bind(t), t.onTouchEnd = ri.bind(t), t.onDocumentTouchStart = oi.bind(t), e.cssMode && (t.onScroll = ai.bind(t)), t.onClick = ni.bind(t), t.onLoad = li.bind(t), Ve(t, "on");
2079
- }
2080
- function ci() {
2081
- Ve(this, "off");
2082
- }
2083
- var ui = {
2084
- attachEvents: di,
2085
- detachEvents: ci
2086
- };
2087
- const Ce = (t, e) => t.grid && e.grid && e.grid.rows > 1;
2088
- function fi() {
2089
- const t = this, {
2090
- realIndex: e,
2091
- initialized: i,
2092
- params: s,
2093
- el: n
2094
- } = t, r = s.breakpoints;
2095
- if (!r || r && Object.keys(r).length === 0)
2096
- return;
2097
- const l = H(), a = s.breakpointsBase === "window" || !s.breakpointsBase ? s.breakpointsBase : "container", o = ["window", "container"].includes(s.breakpointsBase) || !s.breakpointsBase ? t.el : l.querySelector(s.breakpointsBase), d = t.getBreakpoint(r, a, o);
2098
- if (!d || t.currentBreakpoint === d)
2099
- return;
2100
- const u = (d in r ? r[d] : void 0) || t.originalParams, p = Ce(t, s), h = Ce(t, u), f = t.params.grabCursor, g = u.grabCursor, S = s.enabled;
2101
- p && !h ? (n.classList.remove(`${s.containerModifierClass}grid`, `${s.containerModifierClass}grid-column`), t.emitContainerClasses()) : !p && h && (n.classList.add(`${s.containerModifierClass}grid`), (u.grid.fill && u.grid.fill === "column" || !u.grid.fill && s.grid.fill === "column") && n.classList.add(`${s.containerModifierClass}grid-column`), t.emitContainerClasses()), f && !g ? t.unsetGrabCursor() : !f && g && t.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((C) => {
2102
- if (typeof u[C] > "u")
2103
- return;
2104
- const I = s[C] && s[C].enabled, E = u[C] && u[C].enabled;
2105
- I && !E && t[C].disable(), !I && E && t[C].enable();
2106
- });
2107
- const m = u.direction && u.direction !== s.direction, v = s.loop && (u.slidesPerView !== s.slidesPerView || m), w = s.loop;
2108
- m && i && t.changeDirection(), k(t.params, u);
2109
- const x = t.params.enabled, b = t.params.loop;
2110
- Object.assign(t, {
2111
- allowTouchMove: t.params.allowTouchMove,
2112
- allowSlideNext: t.params.allowSlideNext,
2113
- allowSlidePrev: t.params.allowSlidePrev
2114
- }), S && !x ? t.disable() : !S && x && t.enable(), t.currentBreakpoint = d, t.emit("_beforeBreakpoint", u), i && (v ? (t.loopDestroy(), t.loopCreate(e), t.updateSlides()) : !w && b ? (t.loopCreate(e), t.updateSlides()) : w && !b && t.loopDestroy()), t.emit("breakpoint", u);
2115
- }
2116
- function pi(t, e, i) {
2117
- if (e === void 0 && (e = "window"), !t || e === "container" && !i)
2118
- return;
2119
- let s = !1;
2120
- const n = B(), r = e === "window" ? n.innerHeight : i.clientHeight, l = Object.keys(t).map((a) => {
2121
- if (typeof a == "string" && a.indexOf("@") === 0) {
2122
- const o = parseFloat(a.substr(1));
2123
- return {
2124
- value: r * o,
2125
- point: a
2126
- };
2127
- }
2128
- return {
2129
- value: a,
2130
- point: a
2131
- };
2132
- });
2133
- l.sort((a, o) => parseInt(a.value, 10) - parseInt(o.value, 10));
2134
- for (let a = 0; a < l.length; a += 1) {
2135
- const {
2136
- point: o,
2137
- value: d
2138
- } = l[a];
2139
- e === "window" ? n.matchMedia(`(min-width: ${d}px)`).matches && (s = o) : d <= i.clientWidth && (s = o);
2140
- }
2141
- return s || "max";
2142
- }
2143
- var mi = {
2144
- setBreakpoint: fi,
2145
- getBreakpoint: pi
2146
- };
2147
- function hi(t, e) {
2148
- const i = [];
2149
- return t.forEach((s) => {
2150
- typeof s == "object" ? Object.keys(s).forEach((n) => {
2151
- s[n] && i.push(e + n);
2152
- }) : typeof s == "string" && i.push(e + s);
2153
- }), i;
2154
- }
2155
- function gi() {
2156
- const t = this, {
2157
- classNames: e,
2158
- params: i,
2159
- rtl: s,
2160
- el: n,
2161
- device: r
2162
- } = t, l = hi(["initialized", i.direction, {
2163
- "free-mode": t.params.freeMode && i.freeMode.enabled
2164
- }, {
2165
- autoheight: i.autoHeight
2166
- }, {
2167
- rtl: s
2168
- }, {
2169
- grid: i.grid && i.grid.rows > 1
2170
- }, {
2171
- "grid-column": i.grid && i.grid.rows > 1 && i.grid.fill === "column"
2172
- }, {
2173
- android: r.android
2174
- }, {
2175
- ios: r.ios
2176
- }, {
2177
- "css-mode": i.cssMode
2178
- }, {
2179
- centered: i.cssMode && i.centeredSlides
2180
- }, {
2181
- "watch-progress": i.watchSlidesProgress
2182
- }], i.containerModifierClass);
2183
- e.push(...l), n.classList.add(...e), t.emitContainerClasses();
2184
- }
2185
- function vi() {
2186
- const t = this, {
2187
- el: e,
2188
- classNames: i
2189
- } = t;
2190
- !e || typeof e == "string" || (e.classList.remove(...i), t.emitContainerClasses());
2191
- }
2192
- var wi = {
2193
- addClasses: gi,
2194
- removeClasses: vi
2195
- };
2196
- function Si() {
2197
- const t = this, {
2198
- isLocked: e,
2199
- params: i
2200
- } = t, {
2201
- slidesOffsetBefore: s
2202
- } = i;
2203
- if (s) {
2204
- const n = t.slides.length - 1, r = t.slidesGrid[n] + t.slidesSizesGrid[n] + s * 2;
2205
- t.isLocked = t.size > r;
2206
- } else
2207
- t.isLocked = t.snapGrid.length === 1;
2208
- i.allowSlideNext === !0 && (t.allowSlideNext = !t.isLocked), i.allowSlidePrev === !0 && (t.allowSlidePrev = !t.isLocked), e && e !== t.isLocked && (t.isEnd = !1), e !== t.isLocked && t.emit(t.isLocked ? "lock" : "unlock");
2209
- }
2210
- var Ti = {
2211
- checkOverflow: Si
2212
- }, he = {
2213
- init: !0,
2214
- direction: "horizontal",
2215
- oneWayMovement: !1,
2216
- swiperElementNodeName: "SWIPER-CONTAINER",
2217
- touchEventsTarget: "wrapper",
2218
- initialSlide: 0,
2219
- speed: 300,
2220
- cssMode: !1,
2221
- updateOnWindowResize: !0,
2222
- resizeObserver: !0,
2223
- nested: !1,
2224
- createElements: !1,
2225
- eventsPrefix: "swiper",
2226
- enabled: !0,
2227
- focusableElements: "input, select, option, textarea, button, video, label",
2228
- // Overrides
2229
- width: null,
2230
- height: null,
2231
- //
2232
- preventInteractionOnTransition: !1,
2233
- // ssr
2234
- userAgent: null,
2235
- url: null,
2236
- // To support iOS's swipe-to-go-back gesture (when being used in-app).
2237
- edgeSwipeDetection: !1,
2238
- edgeSwipeThreshold: 20,
2239
- // Autoheight
2240
- autoHeight: !1,
2241
- // Set wrapper width
2242
- setWrapperSize: !1,
2243
- // Virtual Translate
2244
- virtualTranslate: !1,
2245
- // Effects
2246
- effect: "slide",
2247
- // 'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'
2248
- // Breakpoints
2249
- breakpoints: void 0,
2250
- breakpointsBase: "window",
2251
- // Slides grid
2252
- spaceBetween: 0,
2253
- slidesPerView: 1,
2254
- slidesPerGroup: 1,
2255
- slidesPerGroupSkip: 0,
2256
- slidesPerGroupAuto: !1,
2257
- centeredSlides: !1,
2258
- centeredSlidesBounds: !1,
2259
- slidesOffsetBefore: 0,
2260
- // in px
2261
- slidesOffsetAfter: 0,
2262
- // in px
2263
- normalizeSlideIndex: !0,
2264
- centerInsufficientSlides: !1,
2265
- // Disable swiper and hide navigation when container not overflow
2266
- watchOverflow: !0,
2267
- // Round length
2268
- roundLengths: !1,
2269
- // Touches
2270
- touchRatio: 1,
2271
- touchAngle: 45,
2272
- simulateTouch: !0,
2273
- shortSwipes: !0,
2274
- longSwipes: !0,
2275
- longSwipesRatio: 0.5,
2276
- longSwipesMs: 300,
2277
- followFinger: !0,
2278
- allowTouchMove: !0,
2279
- threshold: 5,
2280
- touchMoveStopPropagation: !1,
2281
- touchStartPreventDefault: !0,
2282
- touchStartForcePreventDefault: !1,
2283
- touchReleaseOnEdges: !1,
2284
- // Unique Navigation Elements
2285
- uniqueNavElements: !0,
2286
- // Resistance
2287
- resistance: !0,
2288
- resistanceRatio: 0.85,
2289
- // Progress
2290
- watchSlidesProgress: !1,
2291
- // Cursor
2292
- grabCursor: !1,
2293
- // Clicks
2294
- preventClicks: !0,
2295
- preventClicksPropagation: !0,
2296
- slideToClickedSlide: !1,
2297
- // loop
2298
- loop: !1,
2299
- loopAddBlankSlides: !0,
2300
- loopAdditionalSlides: 0,
2301
- loopPreventsSliding: !0,
2302
- // rewind
2303
- rewind: !1,
2304
- // Swiping/no swiping
2305
- allowSlidePrev: !0,
2306
- allowSlideNext: !0,
2307
- swipeHandler: null,
2308
- // '.swipe-handler',
2309
- noSwiping: !0,
2310
- noSwipingClass: "swiper-no-swiping",
2311
- noSwipingSelector: null,
2312
- // Passive Listeners
2313
- passiveListeners: !0,
2314
- maxBackfaceHiddenSlides: 10,
2315
- // NS
2316
- containerModifierClass: "swiper-",
2317
- // NEW
2318
- slideClass: "swiper-slide",
2319
- slideBlankClass: "swiper-slide-blank",
2320
- slideActiveClass: "swiper-slide-active",
2321
- slideVisibleClass: "swiper-slide-visible",
2322
- slideFullyVisibleClass: "swiper-slide-fully-visible",
2323
- slideNextClass: "swiper-slide-next",
2324
- slidePrevClass: "swiper-slide-prev",
2325
- wrapperClass: "swiper-wrapper",
2326
- lazyPreloaderClass: "swiper-lazy-preloader",
2327
- lazyPreloadPrevNext: 0,
2328
- // Callbacks
2329
- runCallbacksOnInit: !0,
2330
- // Internals
2331
- _emitClasses: !1
2332
- };
2333
- function bi(t, e) {
2334
- return function(s) {
2335
- s === void 0 && (s = {});
2336
- const n = Object.keys(s)[0], r = s[n];
2337
- if (typeof r != "object" || r === null) {
2338
- k(e, s);
2339
- return;
2340
- }
2341
- if (t[n] === !0 && (t[n] = {
2342
- enabled: !0
2343
- }), n === "navigation" && t[n] && t[n].enabled && !t[n].prevEl && !t[n].nextEl && (t[n].auto = !0), ["pagination", "scrollbar"].indexOf(n) >= 0 && t[n] && t[n].enabled && !t[n].el && (t[n].auto = !0), !(n in t && "enabled" in r)) {
2344
- k(e, s);
2345
- return;
2346
- }
2347
- typeof t[n] == "object" && !("enabled" in t[n]) && (t[n].enabled = !0), t[n] || (t[n] = {
2348
- enabled: !1
2349
- }), k(e, s);
2350
- };
2351
- }
2352
- const ue = {
2353
- eventsEmitter: wt,
2354
- update: Lt,
2355
- translate: Gt,
2356
- transition: Ft,
2357
- slide: Yt,
2358
- loop: Qt,
2359
- grabCursor: ei,
2360
- events: ui,
2361
- breakpoints: mi,
2362
- checkOverflow: Ti,
2363
- classes: wi
2364
- }, fe = {};
2365
- let ve = class W {
2366
- constructor() {
2367
- let e, i;
2368
- for (var s = arguments.length, n = new Array(s), r = 0; r < s; r++)
2369
- n[r] = arguments[r];
2370
- 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 = k({}, i), e && !i.el && (i.el = e);
2371
- const l = H();
2372
- if (i.el && typeof i.el == "string" && l.querySelectorAll(i.el).length > 1) {
2373
- const c = [];
2374
- return l.querySelectorAll(i.el).forEach((u) => {
2375
- const p = k({}, i, {
2376
- el: u
2377
- });
2378
- c.push(new W(p));
2379
- }), c;
2380
- }
2381
- const a = this;
2382
- a.__swiper__ = !0, a.support = _e(), a.device = De({
2383
- userAgent: i.userAgent
2384
- }), a.browser = Ge(), a.eventsListeners = {}, a.eventsAnyListeners = [], a.modules = [...a.__modules__], i.modules && Array.isArray(i.modules) && a.modules.push(...i.modules);
2385
- const o = {};
2386
- a.modules.forEach((c) => {
2387
- c({
2388
- params: i,
2389
- swiper: a,
2390
- extendParams: bi(i, o),
2391
- on: a.on.bind(a),
2392
- once: a.once.bind(a),
2393
- off: a.off.bind(a),
2394
- emit: a.emit.bind(a)
2395
- });
2396
- });
2397
- const d = k({}, he, o);
2398
- return a.params = k({}, d, fe, i), a.originalParams = k({}, a.params), a.passedParams = k({}, i), a.params && a.params.on && Object.keys(a.params.on).forEach((c) => {
2399
- a.on(c, a.params.on[c]);
2400
- }), a.params && a.params.onAny && a.onAny(a.params.onAny), Object.assign(a, {
2401
- enabled: a.params.enabled,
2402
- el: e,
2403
- // Classes
2404
- classNames: [],
2405
- // Slides
2406
- slides: [],
2407
- slidesGrid: [],
2408
- snapGrid: [],
2409
- slidesSizesGrid: [],
2410
- // isDirection
2411
- isHorizontal() {
2412
- return a.params.direction === "horizontal";
2413
- },
2414
- isVertical() {
2415
- return a.params.direction === "vertical";
2416
- },
2417
- // Indexes
2418
- activeIndex: 0,
2419
- realIndex: 0,
2420
- //
2421
- isBeginning: !0,
2422
- isEnd: !1,
2423
- // Props
2424
- translate: 0,
2425
- previousTranslate: 0,
2426
- progress: 0,
2427
- velocity: 0,
2428
- animating: !1,
2429
- cssOverflowAdjustment() {
2430
- return Math.trunc(this.translate / 2 ** 23) * 2 ** 23;
2431
- },
2432
- // Locks
2433
- allowSlideNext: a.params.allowSlideNext,
2434
- allowSlidePrev: a.params.allowSlidePrev,
2435
- // Touch Events
2436
- touchEventsData: {
2437
- isTouched: void 0,
2438
- isMoved: void 0,
2439
- allowTouchCallbacks: void 0,
2440
- touchStartTime: void 0,
2441
- isScrolling: void 0,
2442
- currentTranslate: void 0,
2443
- startTranslate: void 0,
2444
- allowThresholdMove: void 0,
2445
- // Form elements to match
2446
- focusableElements: a.params.focusableElements,
2447
- // Last click time
2448
- lastClickTime: 0,
2449
- clickTimeout: void 0,
2450
- // Velocities
2451
- velocities: [],
2452
- allowMomentumBounce: void 0,
2453
- startMoving: void 0,
2454
- pointerId: null,
2455
- touchId: null
2456
- },
2457
- // Clicks
2458
- allowClick: !0,
2459
- // Touches
2460
- allowTouchMove: a.params.allowTouchMove,
2461
- touches: {
2462
- startX: 0,
2463
- startY: 0,
2464
- currentX: 0,
2465
- currentY: 0,
2466
- diff: 0
2467
- },
2468
- // Images
2469
- imagesToLoad: [],
2470
- imagesLoaded: 0
2471
- }), a.emit("_swiper"), a.params.init && a.init(), a;
2472
- }
2473
- getDirectionLabel(e) {
2474
- return this.isHorizontal() ? e : {
2475
- width: "height",
2476
- "margin-top": "margin-left",
2477
- "margin-bottom ": "margin-right",
2478
- "margin-left": "margin-top",
2479
- "margin-right": "margin-bottom",
2480
- "padding-left": "padding-top",
2481
- "padding-right": "padding-bottom",
2482
- marginRight: "marginBottom"
2483
- }[e];
2484
- }
2485
- getSlideIndex(e) {
2486
- const {
2487
- slidesEl: i,
2488
- params: s
2489
- } = this, n = $(i, `.${s.slideClass}, swiper-slide`), r = Te(n[0]);
2490
- return Te(e) - r;
2491
- }
2492
- getSlideIndexByData(e) {
2493
- return this.getSlideIndex(this.slides.find((i) => i.getAttribute("data-swiper-slide-index") * 1 === e));
2494
- }
2495
- getSlideIndexWhenGrid(e) {
2496
- 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;
2497
- }
2498
- recalcSlides() {
2499
- const e = this, {
2500
- slidesEl: i,
2501
- params: s
2502
- } = e;
2503
- e.slides = $(i, `.${s.slideClass}, swiper-slide`);
2504
- }
2505
- enable() {
2506
- const e = this;
2507
- e.enabled || (e.enabled = !0, e.params.grabCursor && e.setGrabCursor(), e.emit("enable"));
2508
- }
2509
- disable() {
2510
- const e = this;
2511
- e.enabled && (e.enabled = !1, e.params.grabCursor && e.unsetGrabCursor(), e.emit("disable"));
2512
- }
2513
- setProgress(e, i) {
2514
- const s = this;
2515
- e = Math.min(Math.max(e, 0), 1);
2516
- const n = s.minTranslate(), l = (s.maxTranslate() - n) * e + n;
2517
- s.translateTo(l, typeof i > "u" ? 0 : i), s.updateActiveIndex(), s.updateSlidesClasses();
2518
- }
2519
- emitContainerClasses() {
2520
- const e = this;
2521
- if (!e.params._emitClasses || !e.el)
2522
- return;
2523
- const i = e.el.className.split(" ").filter((s) => s.indexOf("swiper") === 0 || s.indexOf(e.params.containerModifierClass) === 0);
2524
- e.emit("_containerClasses", i.join(" "));
2525
- }
2526
- getSlideClasses(e) {
2527
- const i = this;
2528
- return i.destroyed ? "" : e.className.split(" ").filter((s) => s.indexOf("swiper-slide") === 0 || s.indexOf(i.params.slideClass) === 0).join(" ");
2529
- }
2530
- emitSlidesClasses() {
2531
- const e = this;
2532
- if (!e.params._emitClasses || !e.el)
2533
- return;
2534
- const i = [];
2535
- e.slides.forEach((s) => {
2536
- const n = e.getSlideClasses(s);
2537
- i.push({
2538
- slideEl: s,
2539
- classNames: n
2540
- }), e.emit("_slideClass", s, n);
2541
- }), e.emit("_slideClasses", i);
2542
- }
2543
- slidesPerViewDynamic(e, i) {
2544
- e === void 0 && (e = "current"), i === void 0 && (i = !1);
2545
- const s = this, {
2546
- params: n,
2547
- slides: r,
2548
- slidesGrid: l,
2549
- slidesSizesGrid: a,
2550
- size: o,
2551
- activeIndex: d
2552
- } = s;
2553
- let c = 1;
2554
- if (typeof n.slidesPerView == "number")
2555
- return n.slidesPerView;
2556
- if (n.centeredSlides) {
2557
- let u = r[d] ? Math.ceil(r[d].swiperSlideSize) : 0, p;
2558
- for (let h = d + 1; h < r.length; h += 1)
2559
- r[h] && !p && (u += Math.ceil(r[h].swiperSlideSize), c += 1, u > o && (p = !0));
2560
- for (let h = d - 1; h >= 0; h -= 1)
2561
- r[h] && !p && (u += r[h].swiperSlideSize, c += 1, u > o && (p = !0));
2562
- } else if (e === "current")
2563
- for (let u = d + 1; u < r.length; u += 1)
2564
- (i ? l[u] + a[u] - l[d] < o : l[u] - l[d] < o) && (c += 1);
2565
- else
2566
- for (let u = d - 1; u >= 0; u -= 1)
2567
- l[d] - l[u] < o && (c += 1);
2568
- return c;
2569
- }
2570
- update() {
2571
- const e = this;
2572
- if (!e || e.destroyed)
2573
- return;
2574
- const {
2575
- snapGrid: i,
2576
- params: s
2577
- } = e;
2578
- s.breakpoints && e.setBreakpoint(), [...e.el.querySelectorAll('[loading="lazy"]')].forEach((l) => {
2579
- l.complete && te(e, l);
2580
- }), e.updateSize(), e.updateSlides(), e.updateProgress(), e.updateSlidesClasses();
2581
- function n() {
2582
- const l = e.rtlTranslate ? e.translate * -1 : e.translate, a = Math.min(Math.max(l, e.maxTranslate()), e.minTranslate());
2583
- e.setTranslate(a), e.updateActiveIndex(), e.updateSlidesClasses();
2584
- }
2585
- let r;
2586
- if (s.freeMode && s.freeMode.enabled && !s.cssMode)
2587
- n(), s.autoHeight && e.updateAutoHeight();
2588
- else {
2589
- if ((s.slidesPerView === "auto" || s.slidesPerView > 1) && e.isEnd && !s.centeredSlides) {
2590
- const l = e.virtual && s.virtual.enabled ? e.virtual.slides : e.slides;
2591
- r = e.slideTo(l.length - 1, 0, !1, !0);
2592
- } else
2593
- r = e.slideTo(e.activeIndex, 0, !1, !0);
2594
- r || n();
2595
- }
2596
- s.watchOverflow && i !== e.snapGrid && e.checkOverflow(), e.emit("update");
2597
- }
2598
- changeDirection(e, i) {
2599
- i === void 0 && (i = !0);
2600
- const s = this, n = s.params.direction;
2601
- 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) => {
2602
- e === "vertical" ? r.style.width = "" : r.style.height = "";
2603
- }), s.emit("changeDirection"), i && s.update()), s;
2604
- }
2605
- changeLanguageDirection(e) {
2606
- const i = this;
2607
- i.rtl && e === "rtl" || !i.rtl && e === "ltr" || (i.rtl = e === "rtl", i.rtlTranslate = i.params.direction === "horizontal" && i.rtl, i.rtl ? (i.el.classList.add(`${i.params.containerModifierClass}rtl`), i.el.dir = "rtl") : (i.el.classList.remove(`${i.params.containerModifierClass}rtl`), i.el.dir = "ltr"), i.update());
2608
- }
2609
- mount(e) {
2610
- const i = this;
2611
- if (i.mounted)
2612
- return !0;
2613
- let s = e || i.params.el;
2614
- if (typeof s == "string" && (s = document.querySelector(s)), !s)
2615
- return !1;
2616
- s.swiper = i, s.parentNode && s.parentNode.host && s.parentNode.host.nodeName === i.params.swiperElementNodeName.toUpperCase() && (i.isElement = !0);
2617
- const n = () => `.${(i.params.wrapperClass || "").trim().split(" ").join(".")}`;
2618
- let l = (() => s && s.shadowRoot && s.shadowRoot.querySelector ? s.shadowRoot.querySelector(n()) : $(s, n())[0])();
2619
- return !l && i.params.createElements && (l = re("div", i.params.wrapperClass), s.append(l), $(s, `.${i.params.slideClass}`).forEach((a) => {
2620
- l.append(a);
2621
- })), Object.assign(i, {
2622
- el: s,
2623
- wrapperEl: l,
2624
- slidesEl: i.isElement && !s.parentNode.host.slideSlots ? s.parentNode.host : l,
2625
- hostEl: i.isElement ? s.parentNode.host : s,
2626
- mounted: !0,
2627
- // RTL
2628
- rtl: s.dir.toLowerCase() === "rtl" || q(s, "direction") === "rtl",
2629
- rtlTranslate: i.params.direction === "horizontal" && (s.dir.toLowerCase() === "rtl" || q(s, "direction") === "rtl"),
2630
- wrongRTL: q(l, "display") === "-webkit-box"
2631
- }), !0;
2632
- }
2633
- init(e) {
2634
- const i = this;
2635
- if (i.initialized || i.mount(e) === !1)
2636
- return i;
2637
- 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, !1, !0) : i.slideTo(i.params.initialSlide, 0, i.params.runCallbacksOnInit, !1, !0), i.params.loop && i.loopCreate(void 0, !0), i.attachEvents();
2638
- const n = [...i.el.querySelectorAll('[loading="lazy"]')];
2639
- return i.isElement && n.push(...i.hostEl.querySelectorAll('[loading="lazy"]')), n.forEach((r) => {
2640
- r.complete ? te(i, r) : r.addEventListener("load", (l) => {
2641
- te(i, l.target);
2642
- });
2643
- }), me(i), i.initialized = !0, me(i), i.emit("init"), i.emit("afterInit"), i;
2644
- }
2645
- destroy(e, i) {
2646
- e === void 0 && (e = !0), i === void 0 && (i = !0);
2647
- const s = this, {
2648
- params: n,
2649
- el: r,
2650
- wrapperEl: l,
2651
- slides: a
2652
- } = s;
2653
- return typeof s.params > "u" || s.destroyed || (s.emit("beforeDestroy"), s.initialized = !1, s.detachEvents(), n.loop && s.loopDestroy(), i && (s.removeClasses(), r && typeof r != "string" && r.removeAttribute("style"), l && l.removeAttribute("style"), a && a.length && a.forEach((o) => {
2654
- o.classList.remove(n.slideVisibleClass, n.slideFullyVisibleClass, n.slideActiveClass, n.slideNextClass, n.slidePrevClass), o.removeAttribute("style"), o.removeAttribute("data-swiper-slide-index");
2655
- })), s.emit("destroy"), Object.keys(s.eventsListeners).forEach((o) => {
2656
- s.off(o);
2657
- }), e !== !1 && (s.el && typeof s.el != "string" && (s.el.swiper = null), tt(s)), s.destroyed = !0), null;
2658
- }
2659
- static extendDefaults(e) {
2660
- k(fe, e);
2661
- }
2662
- static get extendedDefaults() {
2663
- return fe;
2664
- }
2665
- static get defaults() {
2666
- return he;
2667
- }
2668
- static installModule(e) {
2669
- W.prototype.__modules__ || (W.prototype.__modules__ = []);
2670
- const i = W.prototype.__modules__;
2671
- typeof e == "function" && i.indexOf(e) < 0 && i.push(e);
2672
- }
2673
- static use(e) {
2674
- return Array.isArray(e) ? (e.forEach((i) => W.installModule(i)), W) : (W.installModule(e), W);
2675
- }
2676
- };
2677
- Object.keys(ue).forEach((t) => {
2678
- Object.keys(ue[t]).forEach((e) => {
2679
- ve.prototype[e] = ue[t][e];
2680
- });
2681
- });
2682
- ve.use([gt, vt]);
2683
- const Ne = [
2684
- "eventsPrefix",
2685
- "injectStyles",
2686
- "injectStylesUrls",
2687
- "modules",
2688
- "init",
2689
- "_direction",
2690
- "oneWayMovement",
2691
- "swiperElementNodeName",
2692
- "touchEventsTarget",
2693
- "initialSlide",
2694
- "_speed",
2695
- "cssMode",
2696
- "updateOnWindowResize",
2697
- "resizeObserver",
2698
- "nested",
2699
- "focusableElements",
2700
- "_enabled",
2701
- "_width",
2702
- "_height",
2703
- "preventInteractionOnTransition",
2704
- "userAgent",
2705
- "url",
2706
- "_edgeSwipeDetection",
2707
- "_edgeSwipeThreshold",
2708
- "_freeMode",
2709
- "_autoHeight",
2710
- "setWrapperSize",
2711
- "virtualTranslate",
2712
- "_effect",
2713
- "breakpoints",
2714
- "breakpointsBase",
2715
- "_spaceBetween",
2716
- "_slidesPerView",
2717
- "maxBackfaceHiddenSlides",
2718
- "_grid",
2719
- "_slidesPerGroup",
2720
- "_slidesPerGroupSkip",
2721
- "_slidesPerGroupAuto",
2722
- "_centeredSlides",
2723
- "_centeredSlidesBounds",
2724
- "_slidesOffsetBefore",
2725
- "_slidesOffsetAfter",
2726
- "normalizeSlideIndex",
2727
- "_centerInsufficientSlides",
2728
- "_watchOverflow",
2729
- "roundLengths",
2730
- "touchRatio",
2731
- "touchAngle",
2732
- "simulateTouch",
2733
- "_shortSwipes",
2734
- "_longSwipes",
2735
- "longSwipesRatio",
2736
- "longSwipesMs",
2737
- "_followFinger",
2738
- "allowTouchMove",
2739
- "_threshold",
2740
- "touchMoveStopPropagation",
2741
- "touchStartPreventDefault",
2742
- "touchStartForcePreventDefault",
2743
- "touchReleaseOnEdges",
2744
- "uniqueNavElements",
2745
- "_resistance",
2746
- "_resistanceRatio",
2747
- "_watchSlidesProgress",
2748
- "_grabCursor",
2749
- "preventClicks",
2750
- "preventClicksPropagation",
2751
- "_slideToClickedSlide",
2752
- "_loop",
2753
- "loopAdditionalSlides",
2754
- "loopAddBlankSlides",
2755
- "loopPreventsSliding",
2756
- "_rewind",
2757
- "_allowSlidePrev",
2758
- "_allowSlideNext",
2759
- "_swipeHandler",
2760
- "_noSwiping",
2761
- "noSwipingClass",
2762
- "noSwipingSelector",
2763
- "passiveListeners",
2764
- "containerModifierClass",
2765
- "slideClass",
2766
- "slideActiveClass",
2767
- "slideVisibleClass",
2768
- "slideFullyVisibleClass",
2769
- "slideNextClass",
2770
- "slidePrevClass",
2771
- "slideBlankClass",
2772
- "wrapperClass",
2773
- "lazyPreloaderClass",
2774
- "lazyPreloadPrevNext",
2775
- "runCallbacksOnInit",
2776
- "observer",
2777
- "observeParents",
2778
- "observeSlideChildren",
2779
- // modules
2780
- "a11y",
2781
- "_autoplay",
2782
- "_controller",
2783
- "coverflowEffect",
2784
- "cubeEffect",
2785
- "fadeEffect",
2786
- "flipEffect",
2787
- "creativeEffect",
2788
- "cardsEffect",
2789
- "hashNavigation",
2790
- "history",
2791
- "keyboard",
2792
- "mousewheel",
2793
- "_navigation",
2794
- "_pagination",
2795
- "parallax",
2796
- "_scrollbar",
2797
- "_thumbs",
2798
- "virtual",
2799
- "zoom",
2800
- "control"
2801
- ];
2802
- function X(t) {
2803
- return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object" && !t.__swiper__;
2804
- }
2805
- function K(t, e) {
2806
- const i = ["__proto__", "constructor", "prototype"];
2807
- Object.keys(e).filter((s) => i.indexOf(s) < 0).forEach((s) => {
2808
- typeof t[s] > "u" ? t[s] = e[s] : X(e[s]) && X(t[s]) && Object.keys(e[s]).length > 0 ? e[s].__swiper__ ? t[s] = e[s] : K(t[s], e[s]) : t[s] = e[s];
2809
- });
2810
- }
2811
- function Fe(t) {
2812
- return t === void 0 && (t = {}), t.navigation && typeof t.navigation.nextEl > "u" && typeof t.navigation.prevEl > "u";
2813
- }
2814
- function ke(t) {
2815
- return t === void 0 && (t = {}), t.pagination && typeof t.pagination.el > "u";
2816
- }
2817
- function Re(t) {
2818
- return t === void 0 && (t = {}), t.scrollbar && typeof t.scrollbar.el > "u";
2819
- }
2820
- function $e(t) {
2821
- t === void 0 && (t = "");
2822
- const e = t.split(" ").map((s) => s.trim()).filter((s) => !!s), i = [];
2823
- return e.forEach((s) => {
2824
- i.indexOf(s) < 0 && i.push(s);
2825
- }), i.join(" ");
2826
- }
2827
- function yi(t) {
2828
- return t === void 0 && (t = ""), t ? t.includes("swiper-wrapper") ? t : `swiper-wrapper ${t}` : "swiper-wrapper";
2829
- }
2830
- function xi(t) {
2831
- let {
2832
- swiper: e,
2833
- slides: i,
2834
- passedParams: s,
2835
- changedParams: n,
2836
- nextEl: r,
2837
- prevEl: l,
2838
- scrollbarEl: a,
2839
- paginationEl: o
2840
- } = t;
2841
- const d = n.filter((y) => y !== "children" && y !== "direction" && y !== "wrapperClass"), {
2842
- params: c,
2843
- pagination: u,
2844
- navigation: p,
2845
- scrollbar: h,
2846
- virtual: f,
2847
- thumbs: g
2848
- } = e;
2849
- let S, m, v, w, x, b, C, I;
2850
- n.includes("thumbs") && s.thumbs && s.thumbs.swiper && !s.thumbs.swiper.destroyed && c.thumbs && (!c.thumbs.swiper || c.thumbs.swiper.destroyed) && (S = !0), n.includes("controller") && s.controller && s.controller.control && c.controller && !c.controller.control && (m = !0), n.includes("pagination") && s.pagination && (s.pagination.el || o) && (c.pagination || c.pagination === !1) && u && !u.el && (v = !0), n.includes("scrollbar") && s.scrollbar && (s.scrollbar.el || a) && (c.scrollbar || c.scrollbar === !1) && h && !h.el && (w = !0), n.includes("navigation") && s.navigation && (s.navigation.prevEl || l) && (s.navigation.nextEl || r) && (c.navigation || c.navigation === !1) && p && !p.prevEl && !p.nextEl && (x = !0);
2851
- const E = (y) => {
2852
- e[y] && (e[y].destroy(), y === "navigation" ? (e.isElement && (e[y].prevEl.remove(), e[y].nextEl.remove()), c[y].prevEl = void 0, c[y].nextEl = void 0, e[y].prevEl = void 0, e[y].nextEl = void 0) : (e.isElement && e[y].el.remove(), c[y].el = void 0, e[y].el = void 0));
2853
- };
2854
- n.includes("loop") && e.isElement && (c.loop && !s.loop ? b = !0 : !c.loop && s.loop ? C = !0 : I = !0), d.forEach((y) => {
2855
- if (X(c[y]) && X(s[y]))
2856
- Object.assign(c[y], s[y]), (y === "navigation" || y === "pagination" || y === "scrollbar") && "enabled" in s[y] && !s[y].enabled && E(y);
2857
- else {
2858
- const T = s[y];
2859
- (T === !0 || T === !1) && (y === "navigation" || y === "pagination" || y === "scrollbar") ? T === !1 && E(y) : c[y] = s[y];
2860
- }
2861
- }), d.includes("controller") && !m && e.controller && e.controller.control && c.controller && c.controller.control && (e.controller.control = c.controller.control), n.includes("children") && i && f && c.virtual.enabled ? (f.slides = i, f.update(!0)) : n.includes("virtual") && f && c.virtual.enabled && (i && (f.slides = i), f.update(!0)), n.includes("children") && i && c.loop && (I = !0), S && g.init() && g.update(!0), m && (e.controller.control = c.controller.control), v && (e.isElement && (!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-pagination"), o.part.add("pagination"), e.el.appendChild(o)), o && (c.pagination.el = o), u.init(), u.render(), u.update()), w && (e.isElement && (!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-scrollbar"), a.part.add("scrollbar"), e.el.appendChild(a)), a && (c.scrollbar.el = a), h.init(), h.updateSize(), h.setTranslate()), x && (e.isElement && ((!r || typeof r == "string") && (r = document.createElement("div"), r.classList.add("swiper-button-next"), ye(r, e.hostEl.constructor.nextButtonSvg), r.part.add("button-next"), e.el.appendChild(r)), (!l || typeof l == "string") && (l = document.createElement("div"), l.classList.add("swiper-button-prev"), ye(l, e.hostEl.constructor.prevButtonSvg), l.part.add("button-prev"), e.el.appendChild(l))), r && (c.navigation.nextEl = r), l && (c.navigation.prevEl = l), p.init(), p.update()), n.includes("allowSlideNext") && (e.allowSlideNext = s.allowSlideNext), n.includes("allowSlidePrev") && (e.allowSlidePrev = s.allowSlidePrev), n.includes("direction") && e.changeDirection(s.direction, !1), (b || I) && e.loopDestroy(), (C || I) && e.loopCreate(), e.update();
2862
- }
2863
- function Ei(t, e) {
2864
- t === void 0 && (t = {}), e === void 0 && (e = !0);
2865
- const i = {
2866
- on: {}
2867
- }, s = {}, n = {};
2868
- K(i, he), i._emitClasses = !0, i.init = !1;
2869
- const r = {}, l = Ne.map((o) => o.replace(/_/, "")), a = Object.assign({}, t);
2870
- return Object.keys(a).forEach((o) => {
2871
- typeof t[o] > "u" || (l.indexOf(o) >= 0 ? X(t[o]) ? (i[o] = {}, n[o] = {}, K(i[o], t[o]), K(n[o], t[o])) : (i[o] = t[o], n[o] = t[o]) : o.search(/on[A-Z]/) === 0 && typeof t[o] == "function" ? e ? s[`${o[2].toLowerCase()}${o.substr(3)}`] = t[o] : i.on[`${o[2].toLowerCase()}${o.substr(3)}`] = t[o] : r[o] = t[o]);
2872
- }), ["navigation", "pagination", "scrollbar"].forEach((o) => {
2873
- i[o] === !0 && (i[o] = {}), i[o] === !1 && delete i[o];
2874
- }), {
2875
- params: i,
2876
- passedParams: n,
2877
- rest: r,
2878
- events: s
2879
- };
2880
- }
2881
- function Pi(t, e) {
2882
- let {
2883
- el: i,
2884
- nextEl: s,
2885
- prevEl: n,
2886
- paginationEl: r,
2887
- scrollbarEl: l,
2888
- swiper: a
2889
- } = t;
2890
- Fe(e) && s && n && (a.params.navigation.nextEl = s, a.originalParams.navigation.nextEl = s, a.params.navigation.prevEl = n, a.originalParams.navigation.prevEl = n), ke(e) && r && (a.params.pagination.el = r, a.originalParams.pagination.el = r), Re(e) && l && (a.params.scrollbar.el = l, a.originalParams.scrollbar.el = l), a.init(i);
2891
- }
2892
- function Ci(t, e, i, s, n) {
2893
- const r = [];
2894
- if (!e)
2895
- return r;
2896
- const l = (o) => {
2897
- r.indexOf(o) < 0 && r.push(o);
2898
- };
2899
- if (i && s) {
2900
- const o = s.map(n), d = i.map(n);
2901
- o.join("") !== d.join("") && l("children"), s.length !== i.length && l("children");
2902
- }
2903
- return Ne.filter((o) => o[0] === "_").map((o) => o.replace(/_/, "")).forEach((o) => {
2904
- if (o in t && o in e)
2905
- if (X(t[o]) && X(e[o])) {
2906
- const d = Object.keys(t[o]), c = Object.keys(e[o]);
2907
- d.length !== c.length ? l(o) : (d.forEach((u) => {
2908
- t[o][u] !== e[o][u] && l(o);
2909
- }), c.forEach((u) => {
2910
- t[o][u] !== e[o][u] && l(o);
2911
- }));
2912
- } else
2913
- t[o] !== e[o] && l(o);
2914
- }), r;
2915
- }
2916
- const Mi = (t) => {
2917
- !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());
2918
- };
2919
- function ne() {
2920
- return ne = Object.assign ? Object.assign.bind() : function(t) {
2921
- for (var e = 1; e < arguments.length; e++) {
2922
- var i = arguments[e];
2923
- for (var s in i)
2924
- Object.prototype.hasOwnProperty.call(i, s) && (t[s] = i[s]);
2925
- }
2926
- return t;
2927
- }, ne.apply(this, arguments);
2928
- }
2929
- function He(t) {
2930
- return t.type && t.type.displayName && t.type.displayName.includes("SwiperSlide");
2931
- }
2932
- function je(t) {
2933
- const e = [];
2934
- return G.Children.toArray(t).forEach((i) => {
2935
- He(i) ? e.push(i) : i.props && i.props.children && je(i.props.children).forEach((s) => e.push(s));
2936
- }), e;
2937
- }
2938
- function Ii(t) {
2939
- const e = [], i = {
2940
- "container-start": [],
2941
- "container-end": [],
2942
- "wrapper-start": [],
2943
- "wrapper-end": []
2944
- };
2945
- return G.Children.toArray(t).forEach((s) => {
2946
- if (He(s))
2947
- e.push(s);
2948
- else if (s.props && s.props.slot && i[s.props.slot])
2949
- i[s.props.slot].push(s);
2950
- else if (s.props && s.props.children) {
2951
- const n = je(s.props.children);
2952
- n.length > 0 ? n.forEach((r) => e.push(r)) : i["container-end"].push(s);
2953
- } else
2954
- i["container-end"].push(s);
2955
- }), {
2956
- slides: e,
2957
- slots: i
2958
- };
2959
- }
2960
- function Li(t, e, i) {
2961
- if (!i)
2962
- return null;
2963
- const s = (c) => {
2964
- let u = c;
2965
- return c < 0 ? u = e.length + c : u >= e.length && (u = u - e.length), u;
2966
- }, n = t.isHorizontal() ? {
2967
- [t.rtlTranslate ? "right" : "left"]: `${i.offset}px`
2968
- } : {
2969
- top: `${i.offset}px`
2970
- }, {
2971
- from: r,
2972
- to: l
2973
- } = i, a = t.params.loop ? -e.length : 0, o = t.params.loop ? e.length * 2 : e.length, d = [];
2974
- for (let c = a; c < o; c += 1)
2975
- c >= r && c <= l && d.push(e[s(c)]);
2976
- return d.map((c, u) => /* @__PURE__ */ G.cloneElement(c, {
2977
- swiper: t,
2978
- style: n,
2979
- key: c.props.virtualIndex || c.key || `slide-${u}`
2980
- }));
2981
- }
2982
- function Q(t, e) {
2983
- return typeof window > "u" ? pe(t, e) : Ye(t, e);
2984
- }
2985
- const Me = /* @__PURE__ */ Le(null), Oi = /* @__PURE__ */ Le(null), We = /* @__PURE__ */ Ie(function(t, e) {
2986
- let {
2987
- className: i,
2988
- tag: s = "div",
2989
- wrapperTag: n = "div",
2990
- children: r,
2991
- onSwiper: l,
2992
- ...a
2993
- } = t === void 0 ? {} : t, o = !1;
2994
- const [d, c] = U("swiper"), [u, p] = U(null), [h, f] = U(!1), g = R(!1), S = R(null), m = R(null), v = R(null), w = R(null), x = R(null), b = R(null), C = R(null), I = R(null), {
2995
- params: E,
2996
- passedParams: y,
2997
- rest: T,
2998
- events: P
2999
- } = Ei(a), {
3000
- slides: L,
3001
- slots: A
3002
- } = Ii(r), V = () => {
3003
- f(!h);
3004
- };
3005
- Object.assign(E.on, {
3006
- _containerClasses(z, _) {
3007
- c(_);
3008
- }
3009
- });
3010
- const N = () => {
3011
- Object.assign(E.on, P), o = !0;
3012
- const z = {
3013
- ...E
3014
- };
3015
- if (delete z.wrapperClass, m.current = new ve(z), m.current.virtual && m.current.params.virtual.enabled) {
3016
- m.current.virtual.slides = L;
3017
- const _ = {
3018
- cache: !1,
3019
- slides: L,
3020
- renderExternal: p,
3021
- renderExternalUpdate: !1
3022
- };
3023
- K(m.current.params.virtual, _), K(m.current.originalParams.virtual, _);
3024
- }
3025
- };
3026
- S.current || N(), m.current && m.current.on("_beforeBreakpoint", V);
3027
- const O = () => {
3028
- o || !P || !m.current || Object.keys(P).forEach((z) => {
3029
- m.current.on(z, P[z]);
3030
- });
3031
- }, D = () => {
3032
- !P || !m.current || Object.keys(P).forEach((z) => {
3033
- m.current.off(z, P[z]);
3034
- });
3035
- };
3036
- pe(() => () => {
3037
- m.current && m.current.off("_beforeBreakpoint", V);
3038
- }), pe(() => {
3039
- !g.current && m.current && (m.current.emitSlidesClasses(), g.current = !0);
3040
- }), Q(() => {
3041
- if (e && (e.current = S.current), !!S.current)
3042
- return m.current.destroyed && N(), Pi({
3043
- el: S.current,
3044
- nextEl: x.current,
3045
- prevEl: b.current,
3046
- paginationEl: C.current,
3047
- scrollbarEl: I.current,
3048
- swiper: m.current
3049
- }, E), l && !m.current.destroyed && l(m.current), () => {
3050
- m.current && !m.current.destroyed && m.current.destroy(!0, !1);
3051
- };
3052
- }, []), Q(() => {
3053
- O();
3054
- const z = Ci(y, v.current, L, w.current, (_) => _.key);
3055
- return v.current = y, w.current = L, z.length && m.current && !m.current.destroyed && xi({
3056
- swiper: m.current,
3057
- slides: L,
3058
- passedParams: y,
3059
- changedParams: z,
3060
- nextEl: x.current,
3061
- prevEl: b.current,
3062
- scrollbarEl: I.current,
3063
- paginationEl: C.current
3064
- }), () => {
3065
- D();
3066
- };
3067
- }), Q(() => {
3068
- Mi(m.current);
3069
- }, [u]);
3070
- function M() {
3071
- return E.virtual ? Li(m.current, L, u) : L.map((z, _) => /* @__PURE__ */ G.cloneElement(z, {
3072
- swiper: m.current,
3073
- swiperSlideIndex: _
3074
- }));
3075
- }
3076
- return /* @__PURE__ */ G.createElement(s, ne({
3077
- ref: S,
3078
- className: $e(`${d}${i ? ` ${i}` : ""}`)
3079
- }, T), /* @__PURE__ */ G.createElement(Oi.Provider, {
3080
- value: m.current
3081
- }, A["container-start"], /* @__PURE__ */ G.createElement(n, {
3082
- className: yi(E.wrapperClass)
3083
- }, A["wrapper-start"], M(), A["wrapper-end"]), Fe(E) && /* @__PURE__ */ G.createElement(G.Fragment, null, /* @__PURE__ */ G.createElement("div", {
3084
- ref: b,
3085
- className: "swiper-button-prev"
3086
- }), /* @__PURE__ */ G.createElement("div", {
3087
- ref: x,
3088
- className: "swiper-button-next"
3089
- })), Re(E) && /* @__PURE__ */ G.createElement("div", {
3090
- ref: I,
3091
- className: "swiper-scrollbar"
3092
- }), ke(E) && /* @__PURE__ */ G.createElement("div", {
3093
- ref: C,
3094
- className: "swiper-pagination"
3095
- }), A["container-end"]));
3096
- });
3097
- We.displayName = "Swiper";
3098
- const qe = /* @__PURE__ */ Ie(function(t, e) {
3099
- let {
3100
- tag: i = "div",
3101
- children: s,
3102
- className: n = "",
3103
- swiper: r,
3104
- zoom: l,
3105
- lazy: a,
3106
- virtualIndex: o,
3107
- swiperSlideIndex: d,
3108
- ...c
3109
- } = t === void 0 ? {} : t;
3110
- const u = R(null), [p, h] = U("swiper-slide"), [f, g] = U(!1);
3111
- function S(x, b, C) {
3112
- b === u.current && h(C);
3113
- }
3114
- Q(() => {
3115
- if (typeof d < "u" && (u.current.swiperSlideIndex = d), e && (e.current = u.current), !(!u.current || !r)) {
3116
- if (r.destroyed) {
3117
- p !== "swiper-slide" && h("swiper-slide");
3118
- return;
3119
- }
3120
- return r.on("_slideClass", S), () => {
3121
- r && r.off("_slideClass", S);
3122
- };
3123
- }
3124
- }), Q(() => {
3125
- r && u.current && !r.destroyed && h(r.getSlideClasses(u.current));
3126
- }, [r]);
3127
- const m = {
3128
- isActive: p.indexOf("swiper-slide-active") >= 0,
3129
- isVisible: p.indexOf("swiper-slide-visible") >= 0,
3130
- isPrev: p.indexOf("swiper-slide-prev") >= 0,
3131
- isNext: p.indexOf("swiper-slide-next") >= 0
3132
- }, v = () => typeof s == "function" ? s(m) : s, w = () => {
3133
- g(!0);
3134
- };
3135
- return /* @__PURE__ */ G.createElement(i, ne({
3136
- ref: u,
3137
- className: $e(`${p}${n ? ` ${n}` : ""}`),
3138
- "data-swiper-slide-index": o,
3139
- onLoad: w
3140
- }, c), l && /* @__PURE__ */ G.createElement(Me.Provider, {
3141
- value: m
3142
- }, /* @__PURE__ */ G.createElement("div", {
3143
- className: "swiper-zoom-container",
3144
- "data-swiper-zoom": typeof l == "number" ? l : void 0
3145
- }, v(), a && !f && /* @__PURE__ */ G.createElement("div", {
3146
- className: "swiper-lazy-preloader"
3147
- }))), !l && /* @__PURE__ */ G.createElement(Me.Provider, {
3148
- value: m
3149
- }, v(), a && !f && /* @__PURE__ */ G.createElement("div", {
3150
- className: "swiper-lazy-preloader"
3151
- })));
3152
- });
3153
- qe.displayName = "SwiperSlide";
3154
- const zi = [
1
+ import { jsxs as l, jsx as t } from "react/jsx-runtime";
2
+ import { useState as h, useRef as s } from "react";
3
+ import { S as g, N as x, A as v, a as b, C as y, b as C } from "../swiper-react-c049ea66.js";
4
+ import { C as S } from "../ComponentContainer-0fcc2695.js";
5
+ import { Bullet as w } from "./components/Bullet/Bullet.js";
6
+ import { Slide as A } from "./components/Slide/Slide.js";
7
+ import '../assets/swiper.css';/* empty css */const N = [
3155
8
  "title",
3156
9
  "cards",
3157
10
  "card_height",
3158
11
  "autoplay",
3159
12
  "autoplayDelay",
3160
13
  "perViewScreens"
3161
- ], Ai = ({
3162
- title: t,
3163
- cards: e,
3164
- card_height: i,
3165
- autoplay: s,
3166
- autoplayDelay: n = 2e3,
14
+ ], E = ({
15
+ title: i,
16
+ cards: a,
17
+ card_height: p,
18
+ autoplay: u,
19
+ autoplayDelay: c = 2e3,
3167
20
  perViewScreens: r
3168
21
  }) => {
3169
- const [l, a] = U(0), d = s ? {
3170
- delay: n,
22
+ const [m, f] = h(0), d = u ? {
23
+ delay: c,
3171
24
  disableOnInteraction: !1,
3172
25
  waitForTransition: !0
3173
- } : !1, c = R(null), u = R(null);
3174
- return /* @__PURE__ */ we(Xe, { children: [
3175
- /* @__PURE__ */ F("p", { className: "text-[44px] leading-[52px] font-bold text-center mb-[48px]", children: t }),
3176
- /* @__PURE__ */ we("div", { className: "relative w-full", children: [
3177
- /* @__PURE__ */ F(
3178
- We,
26
+ } : !1, o = s(null), n = s(null);
27
+ return /* @__PURE__ */ l(S, { children: [
28
+ i && /* @__PURE__ */ t("p", { className: "text-[44px] leading-[52px] font-bold text-center mb-[48px]", children: i }),
29
+ /* @__PURE__ */ l("div", { className: "relative w-full", children: [
30
+ /* @__PURE__ */ t(
31
+ g,
3179
32
  {
3180
- modules: [ut, ft],
33
+ modules: [x, v],
3181
34
  spaceBetween: 24,
3182
35
  slidesPerView: r,
3183
36
  slidesPerGroup: 1,
3184
37
  navigation: {
3185
- nextEl: c.current,
3186
- prevEl: u.current
38
+ nextEl: o.current,
39
+ prevEl: n.current
3187
40
  },
3188
- onBeforeInit: (p) => {
3189
- p.params.navigation && typeof p.params.navigation != "boolean" && (p.params.navigation.nextEl = c.current, p.params.navigation.prevEl = u.current);
41
+ onBeforeInit: (e) => {
42
+ e.params.navigation && typeof e.params.navigation != "boolean" && (e.params.navigation.nextEl = o.current, e.params.navigation.prevEl = n.current);
3190
43
  },
3191
44
  pagination: { clickable: !0 },
3192
- onSlideChange: (p) => a(p.realIndex),
45
+ onSlideChange: (e) => f(e.realIndex),
3193
46
  autoplay: d,
3194
- children: e == null ? void 0 : e.map((p) => /* @__PURE__ */ F(qe, { children: /* @__PURE__ */ F(
3195
- Ke,
47
+ children: a == null ? void 0 : a.map((e) => /* @__PURE__ */ t(b, { children: /* @__PURE__ */ t(
48
+ A,
3196
49
  {
3197
- card: p,
3198
- height: i
50
+ card: e,
51
+ height: p
3199
52
  }
3200
- ) }, p.id))
53
+ ) }, e.id))
3201
54
  }
3202
55
  ),
3203
- /* @__PURE__ */ F(
56
+ /* @__PURE__ */ t(
3204
57
  "button",
3205
58
  {
3206
- ref: u,
59
+ ref: n,
3207
60
  className: "custom-prev absolute left-0 top-[50%] translate-y-[-50%] translate-x-[-50%] z-10 p-[8px] rounded-[50%] bg-white",
3208
- children: /* @__PURE__ */ F(Qe, { size: 24 })
61
+ children: /* @__PURE__ */ t(y, { size: 24 })
3209
62
  }
3210
63
  ),
3211
- /* @__PURE__ */ F(
64
+ /* @__PURE__ */ t(
3212
65
  "button",
3213
66
  {
3214
- ref: c,
67
+ ref: o,
3215
68
  className: "custom-next p-[8px] absolute right-0 top-[50%] translate-y-[-50%] translate-x-[50%] z-10 rounded-[50%] bg-white",
3216
- children: /* @__PURE__ */ F(Ze, { size: 24 })
69
+ children: /* @__PURE__ */ t(C, { size: 24 })
3217
70
  }
3218
71
  )
3219
72
  ] }),
3220
- e.length > 1 && /* @__PURE__ */ F(
3221
- Ue,
73
+ a.length > 1 && /* @__PURE__ */ t(
74
+ w,
3222
75
  {
3223
- count: e.length - (r - 1),
3224
- active: l,
76
+ count: a.length - (r - 1),
77
+ active: m,
3225
78
  activeColor: "#16A34A",
3226
79
  anActiveColor: "#A6B2BA",
3227
80
  className: "mt-[24px]"
@@ -3229,7 +82,7 @@ const zi = [
3229
82
  )
3230
83
  ] });
3231
84
  };
3232
- Ai.propsToEdit = zi;
85
+ E.propsToEdit = N;
3233
86
  export {
3234
- Ai as SwiperList
87
+ E as SwiperList
3235
88
  };