@wikicasa-dev/components 1.2.9 → 1.2.11

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.
@@ -0,0 +1,2444 @@
1
+ import { defineComponent as oe, openBlock as $, createElementBlock as z, normalizeClass as j, normalizeStyle as Tt, createElementVNode as W, ref as re, onBeforeMount as Rt, withModifiers as de, createBlock as Kt, createCommentVNode as ue, renderSlot as G, createVNode as Gt, onMounted as At, reactive as Pt, onBeforeUnmount as Zt, unref as De, computed as K, Fragment as Be, renderList as at, mergeProps as lt, nextTick as Qt } from "vue";
2
+ import { Swiper as ct } from "swiper";
3
+ const en = oe({
4
+ name: "BaseIcon",
5
+ props: {
6
+ lazyLoading: { type: Boolean, default: !1 },
7
+ altAttribute: {
8
+ type: String,
9
+ default: ""
10
+ },
11
+ iconName: {
12
+ type: String,
13
+ default: ""
14
+ },
15
+ iconType: {
16
+ type: String,
17
+ default: "icon-md"
18
+ },
19
+ iconClass: {
20
+ type: String,
21
+ default: "uikit-mr-5px"
22
+ }
23
+ }
24
+ }), kt = (e, t) => {
25
+ const n = e.__vccOpts || e;
26
+ for (const [r, i] of t)
27
+ n[r] = i;
28
+ return n;
29
+ }, tn = ["id", "alt", "src", "width", "height", "loading"];
30
+ function nn(e, t, n, r, i, o) {
31
+ return $(), z("img", {
32
+ id: e.$attrs.id,
33
+ class: j(["uikit-inline-block", e.iconType, e.iconClass]),
34
+ alt: e.altAttribute || e.$attrs.alt,
35
+ style: Tt(e.$attrs.style),
36
+ src: e.$attrs.src ? e.$attrs.src : "",
37
+ width: e.$attrs.width,
38
+ height: e.$attrs.height,
39
+ loading: e.lazyLoading ? "lazy" : "eager"
40
+ }, null, 14, tn);
41
+ }
42
+ const rn = /* @__PURE__ */ kt(en, [["render", nn], ["__scopeId", "data-v-e98a91a0"]]), on = {
43
+ viewBox: "0 0 128 128",
44
+ class: "icon-spin uikit-h-6 uikit-w-6"
45
+ }, sn = ["stroke-width"], an = /* @__PURE__ */ oe({
46
+ __name: "StaticSpinner",
47
+ props: {
48
+ thickness: { default: 9 },
49
+ color: { default: "uikit-stroke-white" }
50
+ },
51
+ setup(e) {
52
+ return (t, n) => ($(), z("div", {
53
+ class: j(["uikit-m-auto uikit-flex uikit-items-center uikit-justify-center", t.color])
54
+ }, [
55
+ ($(), z("svg", on, [
56
+ W("circle", {
57
+ class: "path",
58
+ cx: "64",
59
+ cy: "64",
60
+ r: "42",
61
+ fill: "none",
62
+ "stroke-width": t.thickness
63
+ }, null, 8, sn)
64
+ ]))
65
+ ], 2));
66
+ }
67
+ }), ln = /* @__PURE__ */ kt(an, [["__scopeId", "data-v-343b59c1"]]), cn = ["id", "data-cy", "type", "data-active", "disabled", "aria-labelledby"], _r = /* @__PURE__ */ oe({
68
+ __name: "BaseButton",
69
+ props: {
70
+ lazyLoadIcon: { type: Boolean, default: !0 },
71
+ btnClass: { default: "" },
72
+ iconName: { default: "" },
73
+ iconNameHovering: { default: "" },
74
+ iconClass: { default: "uikit-mr-[5px]" },
75
+ isEmpty: { type: Boolean, default: !1 },
76
+ keepActive: { type: Boolean, default: !1 },
77
+ isLoading: { type: Boolean, default: !1 },
78
+ disabled: { type: Boolean, default: !1 }
79
+ },
80
+ emits: ["mouseover", "mouseout", "click"],
81
+ setup(e) {
82
+ const t = e, n = re(!1), r = re("");
83
+ Rt(() => {
84
+ r.value = t.iconName ?? "";
85
+ });
86
+ const i = () => {
87
+ n.value = !0, t.iconNameHovering && s(t.iconNameHovering);
88
+ }, o = () => {
89
+ n.value = !1, t.iconNameHovering && s(t.iconName);
90
+ }, s = (u) => {
91
+ r.value = u;
92
+ };
93
+ return (u, d) => ($(), z("button", {
94
+ id: u.$attrs.id,
95
+ "data-cy": u.$attrs["data-cy"],
96
+ type: u.$attrs.type,
97
+ class: j([
98
+ {
99
+ "uikit-btn": !u.isEmpty,
100
+ "uikit-btn-empty": u.isEmpty,
101
+ "active uikit-font-medium": u.keepActive,
102
+ "uikit-flex uikit-items-center uikit-justify-center": u.iconName || u.isLoading
103
+ },
104
+ u.btnClass
105
+ ]),
106
+ style: Tt(u.$attrs.style),
107
+ "data-active": u.keepActive,
108
+ disabled: u.isLoading || u.disabled,
109
+ "aria-labelledby": u.$attrs.id,
110
+ onMouseover: d[0] || (d[0] = de((g) => {
111
+ i(), u.$emit("mouseover", g);
112
+ }, ["stop"])),
113
+ onMouseout: d[1] || (d[1] = de((g) => {
114
+ o(), u.$emit("mouseout", g);
115
+ }, ["stop"])),
116
+ onClick: d[2] || (d[2] = (g) => u.$emit("click", g))
117
+ }, [
118
+ u.iconName && !u.isLoading ? ($(), Kt(rn, {
119
+ key: u.$attrs.id ? u.$attrs.id : `btn-${u.iconName}`,
120
+ "icon-name": r.value,
121
+ "icon-class": u.iconClass,
122
+ "alt-attribute": "button icon",
123
+ "lazy-loading": u.lazyLoadIcon
124
+ }, null, 8, ["icon-name", "icon-class", "lazy-loading"])) : ue("", !0),
125
+ u.isLoading ? G(u.$slots, "spinner", { key: 2 }, () => [
126
+ Gt(ln, {
127
+ color: u.btnClass.includes("uikit-btn-light") ? "uikit-stroke-black" : "uikit-stroke-white"
128
+ }, null, 8, ["color"])
129
+ ]) : G(u.$slots, "default", {
130
+ key: 1,
131
+ hover: n.value
132
+ })
133
+ ], 46, cn));
134
+ }
135
+ }), Hr = /* @__PURE__ */ oe({
136
+ __name: "IntersectionObservable",
137
+ props: {
138
+ observer: {},
139
+ isVisible: { type: Boolean }
140
+ },
141
+ setup(e) {
142
+ const t = e, n = re(null);
143
+ return At(() => {
144
+ !t.observer || !n.value || t.observer.observe(n.value);
145
+ }), (r, i) => r.isVisible ? G(r.$slots, "observable", { key: 1 }) : ($(), z("div", {
146
+ key: 0,
147
+ ref_key: "root",
148
+ ref: n,
149
+ class: j(r.$attrs["root-classes"])
150
+ }, [
151
+ G(r.$slots, "observable")
152
+ ], 2));
153
+ }
154
+ }), qr = /* @__PURE__ */ oe({
155
+ __name: "IntersectionObserver",
156
+ props: {
157
+ observeOnce: { type: Boolean, default: !0 },
158
+ skip: { type: Boolean, default: !1 },
159
+ threshold: { default: 0 }
160
+ },
161
+ emits: ["intersection"],
162
+ setup(e, { emit: t }) {
163
+ const n = t, r = e;
164
+ let i = Pt({ root: null, isVisible: !1 });
165
+ const o = re(null), s = (g) => {
166
+ g.forEach(({ target: f, isIntersecting: a }) => {
167
+ a && (i.isVisible = !0, n("intersection")), r.observeOnce && a && u(f);
168
+ });
169
+ }, u = (g) => {
170
+ o.value && o.value.unobserve(g);
171
+ }, d = () => {
172
+ o.value && o.value.disconnect();
173
+ };
174
+ return Rt(() => {
175
+ if (r.skip) {
176
+ i.isVisible = !0;
177
+ return;
178
+ }
179
+ o.value = new IntersectionObserver(s, {
180
+ root: null,
181
+ //if the root is null, then we will check if the target is visible in the doc root!
182
+ threshold: r.threshold
183
+ });
184
+ }), Zt(() => {
185
+ d();
186
+ }), (g, f) => De(i).isVisible ? G(g.$slots, "observer", {
187
+ key: 1,
188
+ observer: o.value,
189
+ isVisible: De(i).isVisible
190
+ }) : ($(), z("div", {
191
+ key: 0,
192
+ ref: "root",
193
+ class: j(g.$attrs["root-classes"])
194
+ }, [
195
+ G(g.$slots, "observer", {
196
+ observer: o.value,
197
+ isVisible: De(i).isVisible
198
+ })
199
+ ], 2));
200
+ }
201
+ });
202
+ function ut(e) {
203
+ return e !== null && typeof e == "object" && "constructor" in e && e.constructor === Object;
204
+ }
205
+ function Ve(e, t) {
206
+ e === void 0 && (e = {}), t === void 0 && (t = {}), Object.keys(t).forEach((n) => {
207
+ typeof e[n] > "u" ? e[n] = t[n] : ut(t[n]) && ut(e[n]) && Object.keys(t[n]).length > 0 && Ve(e[n], t[n]);
208
+ });
209
+ }
210
+ const xt = {
211
+ body: {},
212
+ addEventListener() {
213
+ },
214
+ removeEventListener() {
215
+ },
216
+ activeElement: {
217
+ blur() {
218
+ },
219
+ nodeName: ""
220
+ },
221
+ querySelector() {
222
+ return null;
223
+ },
224
+ querySelectorAll() {
225
+ return [];
226
+ },
227
+ getElementById() {
228
+ return null;
229
+ },
230
+ createEvent() {
231
+ return {
232
+ initEvent() {
233
+ }
234
+ };
235
+ },
236
+ createElement() {
237
+ return {
238
+ children: [],
239
+ childNodes: [],
240
+ style: {},
241
+ setAttribute() {
242
+ },
243
+ getElementsByTagName() {
244
+ return [];
245
+ }
246
+ };
247
+ },
248
+ createElementNS() {
249
+ return {};
250
+ },
251
+ importNode() {
252
+ return null;
253
+ },
254
+ location: {
255
+ hash: "",
256
+ host: "",
257
+ hostname: "",
258
+ href: "",
259
+ origin: "",
260
+ pathname: "",
261
+ protocol: "",
262
+ search: ""
263
+ }
264
+ };
265
+ function un() {
266
+ const e = typeof document < "u" ? document : {};
267
+ return Ve(e, xt), e;
268
+ }
269
+ const dn = {
270
+ document: xt,
271
+ navigator: {
272
+ userAgent: ""
273
+ },
274
+ location: {
275
+ hash: "",
276
+ host: "",
277
+ hostname: "",
278
+ href: "",
279
+ origin: "",
280
+ pathname: "",
281
+ protocol: "",
282
+ search: ""
283
+ },
284
+ history: {
285
+ replaceState() {
286
+ },
287
+ pushState() {
288
+ },
289
+ go() {
290
+ },
291
+ back() {
292
+ }
293
+ },
294
+ CustomEvent: function() {
295
+ return this;
296
+ },
297
+ addEventListener() {
298
+ },
299
+ removeEventListener() {
300
+ },
301
+ getComputedStyle() {
302
+ return {
303
+ getPropertyValue() {
304
+ return "";
305
+ }
306
+ };
307
+ },
308
+ Image() {
309
+ },
310
+ Date() {
311
+ },
312
+ screen: {},
313
+ setTimeout() {
314
+ },
315
+ clearTimeout() {
316
+ },
317
+ matchMedia() {
318
+ return {};
319
+ },
320
+ requestAnimationFrame(e) {
321
+ return typeof setTimeout > "u" ? (e(), null) : setTimeout(e, 0);
322
+ },
323
+ cancelAnimationFrame(e) {
324
+ typeof setTimeout > "u" || clearTimeout(e);
325
+ }
326
+ };
327
+ function pe() {
328
+ const e = typeof window < "u" ? window : {};
329
+ return Ve(e, dn), e;
330
+ }
331
+ function fn(e) {
332
+ return e === void 0 && (e = ""), e.trim().split(" ").filter((t) => !!t.trim());
333
+ }
334
+ function Vr(e, t) {
335
+ return t === void 0 && (t = 0), setTimeout(e, t);
336
+ }
337
+ function Jr() {
338
+ return Date.now();
339
+ }
340
+ function pn(e) {
341
+ const t = pe();
342
+ let n;
343
+ return t.getComputedStyle && (n = t.getComputedStyle(e, null)), !n && e.currentStyle && (n = e.currentStyle), n || (n = e.style), n;
344
+ }
345
+ function dt(e, t) {
346
+ t === void 0 && (t = "x");
347
+ const n = pe();
348
+ let r, i, o;
349
+ const s = pn(e);
350
+ return n.WebKitCSSMatrix ? (i = s.transform || s.webkitTransform, i.split(",").length > 6 && (i = i.split(", ").map((u) => u.replace(",", ".")).join(", ")), o = new n.WebKitCSSMatrix(i === "none" ? "" : i)) : (o = s.MozTransform || s.OTransform || s.MsTransform || s.msTransform || s.transform || s.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), r = o.toString().split(",")), t === "x" && (n.WebKitCSSMatrix ? i = o.m41 : r.length === 16 ? i = parseFloat(r[12]) : i = parseFloat(r[4])), t === "y" && (n.WebKitCSSMatrix ? i = o.m42 : r.length === 16 ? i = parseFloat(r[13]) : i = parseFloat(r[5])), i || 0;
351
+ }
352
+ function Kr(e) {
353
+ return typeof e == "object" && e !== null && e.constructor && Object.prototype.toString.call(e).slice(8, -1) === "Object";
354
+ }
355
+ function ft(e, t) {
356
+ return t === void 0 && (t = ""), [...e.children].filter((n) => n.matches(t));
357
+ }
358
+ function Gr(e, t) {
359
+ t === void 0 && (t = []);
360
+ const n = document.createElement(e);
361
+ return n.classList.add(...Array.isArray(t) ? t : fn(t)), n;
362
+ }
363
+ function pt(e) {
364
+ const t = pe(), n = un(), r = e.getBoundingClientRect(), i = n.body, o = e.clientTop || i.clientTop || 0, s = e.clientLeft || i.clientLeft || 0, u = e === t ? t.scrollY : e.scrollTop, d = e === t ? t.scrollX : e.scrollLeft;
365
+ return {
366
+ top: r.top + u - o,
367
+ left: r.left + d - s
368
+ };
369
+ }
370
+ function Zr(e) {
371
+ let t = e, n;
372
+ if (t) {
373
+ for (n = 0; (t = t.previousSibling) !== null; )
374
+ t.nodeType === 1 && (n += 1);
375
+ return n;
376
+ }
377
+ }
378
+ function Me(e, t) {
379
+ const n = [];
380
+ let r = e.parentElement;
381
+ for (; r; )
382
+ t ? r.matches(t) && n.push(r) : n.push(r), r = r.parentElement;
383
+ return n;
384
+ }
385
+ function Qr(e, t) {
386
+ function n(r) {
387
+ r.target === e && (t.call(e, r), e.removeEventListener("transitionend", n));
388
+ }
389
+ t && e.addEventListener("transitionend", n);
390
+ }
391
+ function ei(e, t, n) {
392
+ const r = pe();
393
+ return n ? e[t === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(r.getComputedStyle(e, null).getPropertyValue(t === "width" ? "margin-right" : "margin-top")) + parseFloat(r.getComputedStyle(e, null).getPropertyValue(t === "width" ? "margin-left" : "margin-bottom")) : e.offsetWidth;
394
+ }
395
+ function ti(e) {
396
+ return (Array.isArray(e) ? e : [e]).filter((t) => !!t);
397
+ }
398
+ function mn(e) {
399
+ let {
400
+ swiper: t,
401
+ extendParams: n,
402
+ on: r,
403
+ emit: i
404
+ } = e;
405
+ const o = pe();
406
+ n({
407
+ zoom: {
408
+ enabled: !1,
409
+ limitToOriginalSize: !1,
410
+ maxRatio: 3,
411
+ minRatio: 1,
412
+ toggle: !0,
413
+ containerClass: "swiper-zoom-container",
414
+ zoomedSlideClass: "swiper-slide-zoomed"
415
+ }
416
+ }), t.zoom = {
417
+ enabled: !1
418
+ };
419
+ let s = 1, u = !1, d, g;
420
+ const f = [], a = {
421
+ originX: 0,
422
+ originY: 0,
423
+ slideEl: void 0,
424
+ slideWidth: void 0,
425
+ slideHeight: void 0,
426
+ imageEl: void 0,
427
+ imageWrapEl: void 0,
428
+ maxRatio: 3
429
+ }, l = {
430
+ isTouched: void 0,
431
+ isMoved: void 0,
432
+ currentX: void 0,
433
+ currentY: void 0,
434
+ minX: void 0,
435
+ minY: void 0,
436
+ maxX: void 0,
437
+ maxY: void 0,
438
+ width: void 0,
439
+ height: void 0,
440
+ startX: void 0,
441
+ startY: void 0,
442
+ touchesStart: {},
443
+ touchesCurrent: {}
444
+ }, h = {
445
+ x: void 0,
446
+ y: void 0,
447
+ prevPositionX: void 0,
448
+ prevPositionY: void 0,
449
+ prevTime: void 0
450
+ };
451
+ let b = 1;
452
+ Object.defineProperty(t.zoom, "scale", {
453
+ get() {
454
+ return b;
455
+ },
456
+ set(p) {
457
+ if (b !== p) {
458
+ const y = a.imageEl, w = a.slideEl;
459
+ i("zoomChange", p, y, w);
460
+ }
461
+ b = p;
462
+ }
463
+ });
464
+ function L() {
465
+ if (f.length < 2)
466
+ return 1;
467
+ const p = f[0].pageX, y = f[0].pageY, w = f[1].pageX, C = f[1].pageY;
468
+ return Math.sqrt((w - p) ** 2 + (C - y) ** 2);
469
+ }
470
+ function R() {
471
+ const p = t.params.zoom, y = a.imageWrapEl.getAttribute("data-swiper-zoom") || p.maxRatio;
472
+ if (p.limitToOriginalSize && a.imageEl && a.imageEl.naturalWidth) {
473
+ const w = a.imageEl.naturalWidth / a.imageEl.offsetWidth;
474
+ return Math.min(w, y);
475
+ }
476
+ return y;
477
+ }
478
+ function _() {
479
+ if (f.length < 2)
480
+ return {
481
+ x: null,
482
+ y: null
483
+ };
484
+ const p = a.imageEl.getBoundingClientRect();
485
+ return [(f[0].pageX + (f[1].pageX - f[0].pageX) / 2 - p.x - o.scrollX) / s, (f[0].pageY + (f[1].pageY - f[0].pageY) / 2 - p.y - o.scrollY) / s];
486
+ }
487
+ function Z() {
488
+ return t.isElement ? "swiper-slide" : `.${t.params.slideClass}`;
489
+ }
490
+ function Q(p) {
491
+ const y = Z();
492
+ return !!(p.target.matches(y) || t.slides.filter((w) => w.contains(p.target)).length > 0);
493
+ }
494
+ function m(p) {
495
+ const y = `.${t.params.zoom.containerClass}`;
496
+ return !!(p.target.matches(y) || [...t.hostEl.querySelectorAll(y)].filter((w) => w.contains(p.target)).length > 0);
497
+ }
498
+ function S(p) {
499
+ if (p.pointerType === "mouse" && f.splice(0, f.length), !Q(p))
500
+ return;
501
+ const y = t.params.zoom;
502
+ if (d = !1, g = !1, f.push(p), !(f.length < 2)) {
503
+ if (d = !0, a.scaleStart = L(), !a.slideEl) {
504
+ a.slideEl = p.target.closest(`.${t.params.slideClass}, swiper-slide`), a.slideEl || (a.slideEl = t.slides[t.activeIndex]);
505
+ let w = a.slideEl.querySelector(`.${y.containerClass}`);
506
+ if (w && (w = w.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), a.imageEl = w, w ? a.imageWrapEl = Me(a.imageEl, `.${y.containerClass}`)[0] : a.imageWrapEl = void 0, !a.imageWrapEl) {
507
+ a.imageEl = void 0;
508
+ return;
509
+ }
510
+ a.maxRatio = R();
511
+ }
512
+ if (a.imageEl) {
513
+ const [w, C] = _();
514
+ a.originX = w, a.originY = C, a.imageEl.style.transitionDuration = "0ms";
515
+ }
516
+ u = !0;
517
+ }
518
+ }
519
+ function E(p) {
520
+ if (!Q(p))
521
+ return;
522
+ const y = t.params.zoom, w = t.zoom, C = f.findIndex((D) => D.pointerId === p.pointerId);
523
+ C >= 0 && (f[C] = p), !(f.length < 2) && (g = !0, a.scaleMove = L(), a.imageEl && (w.scale = a.scaleMove / a.scaleStart * s, w.scale > a.maxRatio && (w.scale = a.maxRatio - 1 + (w.scale - a.maxRatio + 1) ** 0.5), w.scale < y.minRatio && (w.scale = y.minRatio + 1 - (y.minRatio - w.scale + 1) ** 0.5), a.imageEl.style.transform = `translate3d(0,0,0) scale(${w.scale})`));
524
+ }
525
+ function T(p) {
526
+ if (!Q(p) || p.pointerType === "mouse" && p.type === "pointerout")
527
+ return;
528
+ const y = t.params.zoom, w = t.zoom, C = f.findIndex((D) => D.pointerId === p.pointerId);
529
+ C >= 0 && f.splice(C, 1), !(!d || !g) && (d = !1, g = !1, a.imageEl && (w.scale = Math.max(Math.min(w.scale, a.maxRatio), y.minRatio), a.imageEl.style.transitionDuration = `${t.params.speed}ms`, a.imageEl.style.transform = `translate3d(0,0,0) scale(${w.scale})`, s = w.scale, u = !1, w.scale > 1 && a.slideEl ? a.slideEl.classList.add(`${y.zoomedSlideClass}`) : w.scale <= 1 && a.slideEl && a.slideEl.classList.remove(`${y.zoomedSlideClass}`), w.scale === 1 && (a.originX = 0, a.originY = 0, a.slideEl = void 0)));
530
+ }
531
+ function B(p) {
532
+ const y = t.device;
533
+ if (!a.imageEl || l.isTouched)
534
+ return;
535
+ y.android && p.cancelable && p.preventDefault(), l.isTouched = !0;
536
+ const w = f.length > 0 ? f[0] : p;
537
+ l.touchesStart.x = w.pageX, l.touchesStart.y = w.pageY;
538
+ }
539
+ function H(p) {
540
+ if (!Q(p) || !m(p))
541
+ return;
542
+ const y = t.zoom;
543
+ if (!a.imageEl || !l.isTouched || !a.slideEl)
544
+ return;
545
+ l.isMoved || (l.width = a.imageEl.offsetWidth, l.height = a.imageEl.offsetHeight, l.startX = dt(a.imageWrapEl, "x") || 0, l.startY = dt(a.imageWrapEl, "y") || 0, a.slideWidth = a.slideEl.offsetWidth, a.slideHeight = a.slideEl.offsetHeight, a.imageWrapEl.style.transitionDuration = "0ms");
546
+ const w = l.width * y.scale, C = l.height * y.scale;
547
+ if (w < a.slideWidth && C < a.slideHeight)
548
+ return;
549
+ if (l.minX = Math.min(a.slideWidth / 2 - w / 2, 0), l.maxX = -l.minX, l.minY = Math.min(a.slideHeight / 2 - C / 2, 0), l.maxY = -l.minY, l.touchesCurrent.x = f.length > 0 ? f[0].pageX : p.pageX, l.touchesCurrent.y = f.length > 0 ? f[0].pageY : p.pageY, Math.max(Math.abs(l.touchesCurrent.x - l.touchesStart.x), Math.abs(l.touchesCurrent.y - l.touchesStart.y)) > 5 && (t.allowClick = !1), !l.isMoved && !u) {
550
+ if (t.isHorizontal() && (Math.floor(l.minX) === Math.floor(l.startX) && l.touchesCurrent.x < l.touchesStart.x || Math.floor(l.maxX) === Math.floor(l.startX) && l.touchesCurrent.x > l.touchesStart.x)) {
551
+ l.isTouched = !1;
552
+ return;
553
+ }
554
+ if (!t.isHorizontal() && (Math.floor(l.minY) === Math.floor(l.startY) && l.touchesCurrent.y < l.touchesStart.y || Math.floor(l.maxY) === Math.floor(l.startY) && l.touchesCurrent.y > l.touchesStart.y)) {
555
+ l.isTouched = !1;
556
+ return;
557
+ }
558
+ }
559
+ p.cancelable && p.preventDefault(), p.stopPropagation(), l.isMoved = !0;
560
+ const q = (y.scale - s) / (a.maxRatio - t.params.zoom.minRatio), {
561
+ originX: V,
562
+ originY: ne
563
+ } = a;
564
+ l.currentX = l.touchesCurrent.x - l.touchesStart.x + l.startX + q * (l.width - V * 2), l.currentY = l.touchesCurrent.y - l.touchesStart.y + l.startY + q * (l.height - ne * 2), l.currentX < l.minX && (l.currentX = l.minX + 1 - (l.minX - l.currentX + 1) ** 0.8), l.currentX > l.maxX && (l.currentX = l.maxX - 1 + (l.currentX - l.maxX + 1) ** 0.8), l.currentY < l.minY && (l.currentY = l.minY + 1 - (l.minY - l.currentY + 1) ** 0.8), l.currentY > l.maxY && (l.currentY = l.maxY - 1 + (l.currentY - l.maxY + 1) ** 0.8), h.prevPositionX || (h.prevPositionX = l.touchesCurrent.x), h.prevPositionY || (h.prevPositionY = l.touchesCurrent.y), h.prevTime || (h.prevTime = Date.now()), h.x = (l.touchesCurrent.x - h.prevPositionX) / (Date.now() - h.prevTime) / 2, h.y = (l.touchesCurrent.y - h.prevPositionY) / (Date.now() - h.prevTime) / 2, Math.abs(l.touchesCurrent.x - h.prevPositionX) < 2 && (h.x = 0), Math.abs(l.touchesCurrent.y - h.prevPositionY) < 2 && (h.y = 0), h.prevPositionX = l.touchesCurrent.x, h.prevPositionY = l.touchesCurrent.y, h.prevTime = Date.now(), a.imageWrapEl.style.transform = `translate3d(${l.currentX}px, ${l.currentY}px,0)`;
565
+ }
566
+ function ee() {
567
+ const p = t.zoom;
568
+ if (!a.imageEl)
569
+ return;
570
+ if (!l.isTouched || !l.isMoved) {
571
+ l.isTouched = !1, l.isMoved = !1;
572
+ return;
573
+ }
574
+ l.isTouched = !1, l.isMoved = !1;
575
+ let y = 300, w = 300;
576
+ const C = h.x * y, D = l.currentX + C, q = h.y * w, V = l.currentY + q;
577
+ h.x !== 0 && (y = Math.abs((D - l.currentX) / h.x)), h.y !== 0 && (w = Math.abs((V - l.currentY) / h.y));
578
+ const ne = Math.max(y, w);
579
+ l.currentX = D, l.currentY = V;
580
+ const ge = l.width * p.scale, X = l.height * p.scale;
581
+ l.minX = Math.min(a.slideWidth / 2 - ge / 2, 0), l.maxX = -l.minX, l.minY = Math.min(a.slideHeight / 2 - X / 2, 0), l.maxY = -l.minY, l.currentX = Math.max(Math.min(l.currentX, l.maxX), l.minX), l.currentY = Math.max(Math.min(l.currentY, l.maxY), l.minY), a.imageWrapEl.style.transitionDuration = `${ne}ms`, a.imageWrapEl.style.transform = `translate3d(${l.currentX}px, ${l.currentY}px,0)`;
582
+ }
583
+ function P() {
584
+ const p = t.zoom;
585
+ a.slideEl && t.activeIndex !== t.slides.indexOf(a.slideEl) && (a.imageEl && (a.imageEl.style.transform = "translate3d(0,0,0) scale(1)"), a.imageWrapEl && (a.imageWrapEl.style.transform = "translate3d(0,0,0)"), a.slideEl.classList.remove(`${t.params.zoom.zoomedSlideClass}`), p.scale = 1, s = 1, a.slideEl = void 0, a.imageEl = void 0, a.imageWrapEl = void 0, a.originX = 0, a.originY = 0);
586
+ }
587
+ function N(p) {
588
+ const y = t.zoom, w = t.params.zoom;
589
+ if (!a.slideEl) {
590
+ p && p.target && (a.slideEl = p.target.closest(`.${t.params.slideClass}, swiper-slide`)), a.slideEl || (t.params.virtual && t.params.virtual.enabled && t.virtual ? a.slideEl = ft(t.slidesEl, `.${t.params.slideActiveClass}`)[0] : a.slideEl = t.slides[t.activeIndex]);
591
+ let le = a.slideEl.querySelector(`.${w.containerClass}`);
592
+ le && (le = le.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), a.imageEl = le, le ? a.imageWrapEl = Me(a.imageEl, `.${w.containerClass}`)[0] : a.imageWrapEl = void 0;
593
+ }
594
+ if (!a.imageEl || !a.imageWrapEl)
595
+ return;
596
+ t.params.cssMode && (t.wrapperEl.style.overflow = "hidden", t.wrapperEl.style.touchAction = "none"), a.slideEl.classList.add(`${w.zoomedSlideClass}`);
597
+ let C, D, q, V, ne, ge, X, J, nt, rt, it, ot, ye, we, Le, ze, Ne, je;
598
+ typeof l.touchesStart.x > "u" && p ? (C = p.pageX, D = p.pageY) : (C = l.touchesStart.x, D = l.touchesStart.y);
599
+ const ae = typeof p == "number" ? p : null;
600
+ s === 1 && ae && (C = void 0, D = void 0);
601
+ const st = R();
602
+ y.scale = ae || st, s = ae || st, p && !(s === 1 && ae) ? (Ne = a.slideEl.offsetWidth, je = a.slideEl.offsetHeight, q = pt(a.slideEl).left + o.scrollX, V = pt(a.slideEl).top + o.scrollY, ne = q + Ne / 2 - C, ge = V + je / 2 - D, nt = a.imageEl.offsetWidth, rt = a.imageEl.offsetHeight, it = nt * y.scale, ot = rt * y.scale, ye = Math.min(Ne / 2 - it / 2, 0), we = Math.min(je / 2 - ot / 2, 0), Le = -ye, ze = -we, X = ne * y.scale, J = ge * y.scale, X < ye && (X = ye), X > Le && (X = Le), J < we && (J = we), J > ze && (J = ze)) : (X = 0, J = 0), ae && y.scale === 1 && (a.originX = 0, a.originY = 0), a.imageWrapEl.style.transitionDuration = "300ms", a.imageWrapEl.style.transform = `translate3d(${X}px, ${J}px,0)`, a.imageEl.style.transitionDuration = "300ms", a.imageEl.style.transform = `translate3d(0,0,0) scale(${y.scale})`;
603
+ }
604
+ function O() {
605
+ const p = t.zoom, y = t.params.zoom;
606
+ if (!a.slideEl) {
607
+ t.params.virtual && t.params.virtual.enabled && t.virtual ? a.slideEl = ft(t.slidesEl, `.${t.params.slideActiveClass}`)[0] : a.slideEl = t.slides[t.activeIndex];
608
+ let w = a.slideEl.querySelector(`.${y.containerClass}`);
609
+ w && (w = w.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), a.imageEl = w, w ? a.imageWrapEl = Me(a.imageEl, `.${y.containerClass}`)[0] : a.imageWrapEl = void 0;
610
+ }
611
+ !a.imageEl || !a.imageWrapEl || (t.params.cssMode && (t.wrapperEl.style.overflow = "", t.wrapperEl.style.touchAction = ""), p.scale = 1, s = 1, a.imageWrapEl.style.transitionDuration = "300ms", a.imageWrapEl.style.transform = "translate3d(0,0,0)", a.imageEl.style.transitionDuration = "300ms", a.imageEl.style.transform = "translate3d(0,0,0) scale(1)", a.slideEl.classList.remove(`${y.zoomedSlideClass}`), a.slideEl = void 0, a.originX = 0, a.originY = 0);
612
+ }
613
+ function k(p) {
614
+ const y = t.zoom;
615
+ y.scale && y.scale !== 1 ? O() : N(p);
616
+ }
617
+ function te() {
618
+ const p = t.params.passiveListeners ? {
619
+ passive: !0,
620
+ capture: !1
621
+ } : !1, y = t.params.passiveListeners ? {
622
+ passive: !1,
623
+ capture: !0
624
+ } : !0;
625
+ return {
626
+ passiveListener: p,
627
+ activeListenerWithCapture: y
628
+ };
629
+ }
630
+ function et() {
631
+ const p = t.zoom;
632
+ if (p.enabled)
633
+ return;
634
+ p.enabled = !0;
635
+ const {
636
+ passiveListener: y,
637
+ activeListenerWithCapture: w
638
+ } = te();
639
+ t.wrapperEl.addEventListener("pointerdown", S, y), t.wrapperEl.addEventListener("pointermove", E, w), ["pointerup", "pointercancel", "pointerout"].forEach((C) => {
640
+ t.wrapperEl.addEventListener(C, T, y);
641
+ }), t.wrapperEl.addEventListener("pointermove", H, w);
642
+ }
643
+ function tt() {
644
+ const p = t.zoom;
645
+ if (!p.enabled)
646
+ return;
647
+ p.enabled = !1;
648
+ const {
649
+ passiveListener: y,
650
+ activeListenerWithCapture: w
651
+ } = te();
652
+ t.wrapperEl.removeEventListener("pointerdown", S, y), t.wrapperEl.removeEventListener("pointermove", E, w), ["pointerup", "pointercancel", "pointerout"].forEach((C) => {
653
+ t.wrapperEl.removeEventListener(C, T, y);
654
+ }), t.wrapperEl.removeEventListener("pointermove", H, w);
655
+ }
656
+ r("init", () => {
657
+ t.params.zoom.enabled && et();
658
+ }), r("destroy", () => {
659
+ tt();
660
+ }), r("touchStart", (p, y) => {
661
+ t.zoom.enabled && B(y);
662
+ }), r("touchEnd", (p, y) => {
663
+ t.zoom.enabled && ee();
664
+ }), r("doubleTap", (p, y) => {
665
+ !t.animating && t.params.zoom.enabled && t.zoom.enabled && t.params.zoom.toggle && k(y);
666
+ }), r("transitionEnd", () => {
667
+ t.zoom.enabled && t.params.zoom.enabled && P();
668
+ }), r("slideChange", () => {
669
+ t.zoom.enabled && t.params.zoom.enabled && t.params.cssMode && P();
670
+ }), Object.assign(t.zoom, {
671
+ enable: et,
672
+ disable: tt,
673
+ in: N,
674
+ out: O,
675
+ toggle: k
676
+ });
677
+ }
678
+ function $t(e, t) {
679
+ return function() {
680
+ return e.apply(t, arguments);
681
+ };
682
+ }
683
+ const { toString: hn } = Object.prototype, { getPrototypeOf: Je } = Object, Re = /* @__PURE__ */ ((e) => (t) => {
684
+ const n = hn.call(t);
685
+ return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
686
+ })(/* @__PURE__ */ Object.create(null)), F = (e) => (e = e.toLowerCase(), (t) => Re(t) === e), Ae = (e) => (t) => typeof t === e, { isArray: se } = Array, fe = Ae("undefined");
687
+ function gn(e) {
688
+ return e !== null && !fe(e) && e.constructor !== null && !fe(e.constructor) && M(e.constructor.isBuffer) && e.constructor.isBuffer(e);
689
+ }
690
+ const Lt = F("ArrayBuffer");
691
+ function yn(e) {
692
+ let t;
693
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Lt(e.buffer), t;
694
+ }
695
+ const wn = Ae("string"), M = Ae("function"), zt = Ae("number"), Pe = (e) => e !== null && typeof e == "object", bn = (e) => e === !0 || e === !1, ve = (e) => {
696
+ if (Re(e) !== "object")
697
+ return !1;
698
+ const t = Je(e);
699
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
700
+ }, En = F("Date"), vn = F("File"), Sn = F("Blob"), On = F("FileList"), Cn = (e) => Pe(e) && M(e.pipe), Tn = (e) => {
701
+ let t;
702
+ return e && (typeof FormData == "function" && e instanceof FormData || M(e.append) && ((t = Re(e)) === "formdata" || // detect form-data instance
703
+ t === "object" && M(e.toString) && e.toString() === "[object FormData]"));
704
+ }, Rn = F("URLSearchParams"), An = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
705
+ function me(e, t, { allOwnKeys: n = !1 } = {}) {
706
+ if (e === null || typeof e > "u")
707
+ return;
708
+ let r, i;
709
+ if (typeof e != "object" && (e = [e]), se(e))
710
+ for (r = 0, i = e.length; r < i; r++)
711
+ t.call(null, e[r], r, e);
712
+ else {
713
+ const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), s = o.length;
714
+ let u;
715
+ for (r = 0; r < s; r++)
716
+ u = o[r], t.call(null, e[u], u, e);
717
+ }
718
+ }
719
+ function Nt(e, t) {
720
+ t = t.toLowerCase();
721
+ const n = Object.keys(e);
722
+ let r = n.length, i;
723
+ for (; r-- > 0; )
724
+ if (i = n[r], t === i.toLowerCase())
725
+ return i;
726
+ return null;
727
+ }
728
+ const jt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Dt = (e) => !fe(e) && e !== jt;
729
+ function Ye() {
730
+ const { caseless: e } = Dt(this) && this || {}, t = {}, n = (r, i) => {
731
+ const o = e && Nt(t, i) || i;
732
+ ve(t[o]) && ve(r) ? t[o] = Ye(t[o], r) : ve(r) ? t[o] = Ye({}, r) : se(r) ? t[o] = r.slice() : t[o] = r;
733
+ };
734
+ for (let r = 0, i = arguments.length; r < i; r++)
735
+ arguments[r] && me(arguments[r], n);
736
+ return t;
737
+ }
738
+ const Pn = (e, t, n, { allOwnKeys: r } = {}) => (me(t, (i, o) => {
739
+ n && M(i) ? e[o] = $t(i, n) : e[o] = i;
740
+ }, { allOwnKeys: r }), e), kn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), xn = (e, t, n, r) => {
741
+ e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
742
+ value: t.prototype
743
+ }), n && Object.assign(e.prototype, n);
744
+ }, $n = (e, t, n, r) => {
745
+ let i, o, s;
746
+ const u = {};
747
+ if (t = t || {}, e == null)
748
+ return t;
749
+ do {
750
+ for (i = Object.getOwnPropertyNames(e), o = i.length; o-- > 0; )
751
+ s = i[o], (!r || r(s, e, t)) && !u[s] && (t[s] = e[s], u[s] = !0);
752
+ e = n !== !1 && Je(e);
753
+ } while (e && (!n || n(e, t)) && e !== Object.prototype);
754
+ return t;
755
+ }, Ln = (e, t, n) => {
756
+ e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
757
+ const r = e.indexOf(t, n);
758
+ return r !== -1 && r === n;
759
+ }, zn = (e) => {
760
+ if (!e)
761
+ return null;
762
+ if (se(e))
763
+ return e;
764
+ let t = e.length;
765
+ if (!zt(t))
766
+ return null;
767
+ const n = new Array(t);
768
+ for (; t-- > 0; )
769
+ n[t] = e[t];
770
+ return n;
771
+ }, Nn = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Je(Uint8Array)), jn = (e, t) => {
772
+ const n = (e && e[Symbol.iterator]).call(e);
773
+ let r;
774
+ for (; (r = n.next()) && !r.done; ) {
775
+ const i = r.value;
776
+ t.call(e, i[0], i[1]);
777
+ }
778
+ }, Dn = (e, t) => {
779
+ let n;
780
+ const r = [];
781
+ for (; (n = e.exec(t)) !== null; )
782
+ r.push(n);
783
+ return r;
784
+ }, Bn = F("HTMLFormElement"), Mn = (e) => e.toLowerCase().replace(
785
+ /[-_\s]([a-z\d])(\w*)/g,
786
+ function(t, n, r) {
787
+ return n.toUpperCase() + r;
788
+ }
789
+ ), mt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Un = F("RegExp"), Bt = (e, t) => {
790
+ const n = Object.getOwnPropertyDescriptors(e), r = {};
791
+ me(n, (i, o) => {
792
+ t(i, o, e) !== !1 && (r[o] = i);
793
+ }), Object.defineProperties(e, r);
794
+ }, Fn = (e) => {
795
+ Bt(e, (t, n) => {
796
+ if (M(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
797
+ return !1;
798
+ const r = e[n];
799
+ if (M(r)) {
800
+ if (t.enumerable = !1, "writable" in t) {
801
+ t.writable = !1;
802
+ return;
803
+ }
804
+ t.set || (t.set = () => {
805
+ throw Error("Can not rewrite read-only method '" + n + "'");
806
+ });
807
+ }
808
+ });
809
+ }, Xn = (e, t) => {
810
+ const n = {}, r = (i) => {
811
+ i.forEach((o) => {
812
+ n[o] = !0;
813
+ });
814
+ };
815
+ return se(e) ? r(e) : r(String(e).split(t)), n;
816
+ }, In = () => {
817
+ }, Yn = (e, t) => (e = +e, Number.isFinite(e) ? e : t), Ue = "abcdefghijklmnopqrstuvwxyz", ht = "0123456789", Mt = {
818
+ DIGIT: ht,
819
+ ALPHA: Ue,
820
+ ALPHA_DIGIT: Ue + Ue.toUpperCase() + ht
821
+ }, Wn = (e = 16, t = Mt.ALPHA_DIGIT) => {
822
+ let n = "";
823
+ const { length: r } = t;
824
+ for (; e--; )
825
+ n += t[Math.random() * r | 0];
826
+ return n;
827
+ };
828
+ function _n(e) {
829
+ return !!(e && M(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
830
+ }
831
+ const Hn = (e) => {
832
+ const t = new Array(10), n = (r, i) => {
833
+ if (Pe(r)) {
834
+ if (t.indexOf(r) >= 0)
835
+ return;
836
+ if (!("toJSON" in r)) {
837
+ t[i] = r;
838
+ const o = se(r) ? [] : {};
839
+ return me(r, (s, u) => {
840
+ const d = n(s, i + 1);
841
+ !fe(d) && (o[u] = d);
842
+ }), t[i] = void 0, o;
843
+ }
844
+ }
845
+ return r;
846
+ };
847
+ return n(e, 0);
848
+ }, qn = F("AsyncFunction"), Vn = (e) => e && (Pe(e) || M(e)) && M(e.then) && M(e.catch), c = {
849
+ isArray: se,
850
+ isArrayBuffer: Lt,
851
+ isBuffer: gn,
852
+ isFormData: Tn,
853
+ isArrayBufferView: yn,
854
+ isString: wn,
855
+ isNumber: zt,
856
+ isBoolean: bn,
857
+ isObject: Pe,
858
+ isPlainObject: ve,
859
+ isUndefined: fe,
860
+ isDate: En,
861
+ isFile: vn,
862
+ isBlob: Sn,
863
+ isRegExp: Un,
864
+ isFunction: M,
865
+ isStream: Cn,
866
+ isURLSearchParams: Rn,
867
+ isTypedArray: Nn,
868
+ isFileList: On,
869
+ forEach: me,
870
+ merge: Ye,
871
+ extend: Pn,
872
+ trim: An,
873
+ stripBOM: kn,
874
+ inherits: xn,
875
+ toFlatObject: $n,
876
+ kindOf: Re,
877
+ kindOfTest: F,
878
+ endsWith: Ln,
879
+ toArray: zn,
880
+ forEachEntry: jn,
881
+ matchAll: Dn,
882
+ isHTMLForm: Bn,
883
+ hasOwnProperty: mt,
884
+ hasOwnProp: mt,
885
+ // an alias to avoid ESLint no-prototype-builtins detection
886
+ reduceDescriptors: Bt,
887
+ freezeMethods: Fn,
888
+ toObjectSet: Xn,
889
+ toCamelCase: Mn,
890
+ noop: In,
891
+ toFiniteNumber: Yn,
892
+ findKey: Nt,
893
+ global: jt,
894
+ isContextDefined: Dt,
895
+ ALPHABET: Mt,
896
+ generateString: Wn,
897
+ isSpecCompliantForm: _n,
898
+ toJSONObject: Hn,
899
+ isAsyncFn: qn,
900
+ isThenable: Vn
901
+ };
902
+ function v(e, t, n, r, i) {
903
+ Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), i && (this.response = i);
904
+ }
905
+ c.inherits(v, Error, {
906
+ toJSON: function() {
907
+ return {
908
+ // Standard
909
+ message: this.message,
910
+ name: this.name,
911
+ // Microsoft
912
+ description: this.description,
913
+ number: this.number,
914
+ // Mozilla
915
+ fileName: this.fileName,
916
+ lineNumber: this.lineNumber,
917
+ columnNumber: this.columnNumber,
918
+ stack: this.stack,
919
+ // Axios
920
+ config: c.toJSONObject(this.config),
921
+ code: this.code,
922
+ status: this.response && this.response.status ? this.response.status : null
923
+ };
924
+ }
925
+ });
926
+ const Ut = v.prototype, Ft = {};
927
+ [
928
+ "ERR_BAD_OPTION_VALUE",
929
+ "ERR_BAD_OPTION",
930
+ "ECONNABORTED",
931
+ "ETIMEDOUT",
932
+ "ERR_NETWORK",
933
+ "ERR_FR_TOO_MANY_REDIRECTS",
934
+ "ERR_DEPRECATED",
935
+ "ERR_BAD_RESPONSE",
936
+ "ERR_BAD_REQUEST",
937
+ "ERR_CANCELED",
938
+ "ERR_NOT_SUPPORT",
939
+ "ERR_INVALID_URL"
940
+ // eslint-disable-next-line func-names
941
+ ].forEach((e) => {
942
+ Ft[e] = { value: e };
943
+ });
944
+ Object.defineProperties(v, Ft);
945
+ Object.defineProperty(Ut, "isAxiosError", { value: !0 });
946
+ v.from = (e, t, n, r, i, o) => {
947
+ const s = Object.create(Ut);
948
+ return c.toFlatObject(e, s, function(u) {
949
+ return u !== Error.prototype;
950
+ }, (u) => u !== "isAxiosError"), v.call(s, e.message, t, n, r, i), s.cause = e, s.name = e.name, o && Object.assign(s, o), s;
951
+ };
952
+ const Jn = null;
953
+ function We(e) {
954
+ return c.isPlainObject(e) || c.isArray(e);
955
+ }
956
+ function Xt(e) {
957
+ return c.endsWith(e, "[]") ? e.slice(0, -2) : e;
958
+ }
959
+ function gt(e, t, n) {
960
+ return e ? e.concat(t).map(function(r, i) {
961
+ return r = Xt(r), !n && i ? "[" + r + "]" : r;
962
+ }).join(n ? "." : "") : t;
963
+ }
964
+ function Kn(e) {
965
+ return c.isArray(e) && !e.some(We);
966
+ }
967
+ const Gn = c.toFlatObject(c, {}, null, function(e) {
968
+ return /^is[A-Z]/.test(e);
969
+ });
970
+ function ke(e, t, n) {
971
+ if (!c.isObject(e))
972
+ throw new TypeError("target must be an object");
973
+ t = t || new FormData(), n = c.toFlatObject(n, {
974
+ metaTokens: !0,
975
+ dots: !1,
976
+ indexes: !1
977
+ }, !1, function(h, b) {
978
+ return !c.isUndefined(b[h]);
979
+ });
980
+ const r = n.metaTokens, i = n.visitor || g, o = n.dots, s = n.indexes, u = (n.Blob || typeof Blob < "u" && Blob) && c.isSpecCompliantForm(t);
981
+ if (!c.isFunction(i))
982
+ throw new TypeError("visitor must be a function");
983
+ function d(h) {
984
+ if (h === null)
985
+ return "";
986
+ if (c.isDate(h))
987
+ return h.toISOString();
988
+ if (!u && c.isBlob(h))
989
+ throw new v("Blob is not supported. Use a Buffer instead.");
990
+ return c.isArrayBuffer(h) || c.isTypedArray(h) ? u && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
991
+ }
992
+ function g(h, b, L) {
993
+ let R = h;
994
+ if (h && !L && typeof h == "object") {
995
+ if (c.endsWith(b, "{}"))
996
+ b = r ? b : b.slice(0, -2), h = JSON.stringify(h);
997
+ else if (c.isArray(h) && Kn(h) || (c.isFileList(h) || c.endsWith(b, "[]")) && (R = c.toArray(h)))
998
+ return b = Xt(b), R.forEach(function(_, Z) {
999
+ !(c.isUndefined(_) || _ === null) && t.append(
1000
+ // eslint-disable-next-line no-nested-ternary
1001
+ s === !0 ? gt([b], Z, o) : s === null ? b : b + "[]",
1002
+ d(_)
1003
+ );
1004
+ }), !1;
1005
+ }
1006
+ return We(h) ? !0 : (t.append(gt(L, b, o), d(h)), !1);
1007
+ }
1008
+ const f = [], a = Object.assign(Gn, {
1009
+ defaultVisitor: g,
1010
+ convertValue: d,
1011
+ isVisitable: We
1012
+ });
1013
+ function l(h, b) {
1014
+ if (!c.isUndefined(h)) {
1015
+ if (f.indexOf(h) !== -1)
1016
+ throw Error("Circular reference detected in " + b.join("."));
1017
+ f.push(h), c.forEach(h, function(L, R) {
1018
+ (!(c.isUndefined(L) || L === null) && i.call(
1019
+ t,
1020
+ L,
1021
+ c.isString(R) ? R.trim() : R,
1022
+ b,
1023
+ a
1024
+ )) === !0 && l(L, b ? b.concat(R) : [R]);
1025
+ }), f.pop();
1026
+ }
1027
+ }
1028
+ if (!c.isObject(e))
1029
+ throw new TypeError("data must be an object");
1030
+ return l(e), t;
1031
+ }
1032
+ function yt(e) {
1033
+ const t = {
1034
+ "!": "%21",
1035
+ "'": "%27",
1036
+ "(": "%28",
1037
+ ")": "%29",
1038
+ "~": "%7E",
1039
+ "%20": "+",
1040
+ "%00": "\0"
1041
+ };
1042
+ return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(n) {
1043
+ return t[n];
1044
+ });
1045
+ }
1046
+ function Ke(e, t) {
1047
+ this._pairs = [], e && ke(e, this, t);
1048
+ }
1049
+ const It = Ke.prototype;
1050
+ It.append = function(e, t) {
1051
+ this._pairs.push([e, t]);
1052
+ };
1053
+ It.toString = function(e) {
1054
+ const t = e ? function(n) {
1055
+ return e.call(this, n, yt);
1056
+ } : yt;
1057
+ return this._pairs.map(function(n) {
1058
+ return t(n[0]) + "=" + t(n[1]);
1059
+ }, "").join("&");
1060
+ };
1061
+ function Zn(e) {
1062
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
1063
+ }
1064
+ function Yt(e, t, n) {
1065
+ if (!t)
1066
+ return e;
1067
+ const r = n && n.encode || Zn, i = n && n.serialize;
1068
+ let o;
1069
+ if (i ? o = i(t, n) : o = c.isURLSearchParams(t) ? t.toString() : new Ke(t, n).toString(r), o) {
1070
+ const s = e.indexOf("#");
1071
+ s !== -1 && (e = e.slice(0, s)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
1072
+ }
1073
+ return e;
1074
+ }
1075
+ class Qn {
1076
+ constructor() {
1077
+ this.handlers = [];
1078
+ }
1079
+ /**
1080
+ * Add a new interceptor to the stack
1081
+ *
1082
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
1083
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
1084
+ *
1085
+ * @return {Number} An ID used to remove interceptor later
1086
+ */
1087
+ use(t, n, r) {
1088
+ return this.handlers.push({
1089
+ fulfilled: t,
1090
+ rejected: n,
1091
+ synchronous: r ? r.synchronous : !1,
1092
+ runWhen: r ? r.runWhen : null
1093
+ }), this.handlers.length - 1;
1094
+ }
1095
+ /**
1096
+ * Remove an interceptor from the stack
1097
+ *
1098
+ * @param {Number} id The ID that was returned by `use`
1099
+ *
1100
+ * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
1101
+ */
1102
+ eject(t) {
1103
+ this.handlers[t] && (this.handlers[t] = null);
1104
+ }
1105
+ /**
1106
+ * Clear all interceptors from the stack
1107
+ *
1108
+ * @returns {void}
1109
+ */
1110
+ clear() {
1111
+ this.handlers && (this.handlers = []);
1112
+ }
1113
+ /**
1114
+ * Iterate over all the registered interceptors
1115
+ *
1116
+ * This method is particularly useful for skipping over any
1117
+ * interceptors that may have become `null` calling `eject`.
1118
+ *
1119
+ * @param {Function} fn The function to call for each interceptor
1120
+ *
1121
+ * @returns {void}
1122
+ */
1123
+ forEach(t) {
1124
+ c.forEach(this.handlers, function(n) {
1125
+ n !== null && t(n);
1126
+ });
1127
+ }
1128
+ }
1129
+ const wt = Qn, Wt = {
1130
+ silentJSONParsing: !0,
1131
+ forcedJSONParsing: !0,
1132
+ clarifyTimeoutError: !1
1133
+ }, er = typeof URLSearchParams < "u" ? URLSearchParams : Ke, tr = typeof FormData < "u" ? FormData : null, nr = typeof Blob < "u" ? Blob : null, rr = (() => {
1134
+ let e;
1135
+ return typeof navigator < "u" && ((e = navigator.product) === "ReactNative" || e === "NativeScript" || e === "NS") ? !1 : typeof window < "u" && typeof document < "u";
1136
+ })(), ir = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
1137
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", U = {
1138
+ isBrowser: !0,
1139
+ classes: {
1140
+ URLSearchParams: er,
1141
+ FormData: tr,
1142
+ Blob: nr
1143
+ },
1144
+ isStandardBrowserEnv: rr,
1145
+ isStandardBrowserWebWorkerEnv: ir,
1146
+ protocols: ["http", "https", "file", "blob", "url", "data"]
1147
+ };
1148
+ function or(e, t) {
1149
+ return ke(e, new U.classes.URLSearchParams(), Object.assign({
1150
+ visitor: function(n, r, i, o) {
1151
+ return U.isNode && c.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
1152
+ }
1153
+ }, t));
1154
+ }
1155
+ function sr(e) {
1156
+ return c.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
1157
+ }
1158
+ function ar(e) {
1159
+ const t = {}, n = Object.keys(e);
1160
+ let r;
1161
+ const i = n.length;
1162
+ let o;
1163
+ for (r = 0; r < i; r++)
1164
+ o = n[r], t[o] = e[o];
1165
+ return t;
1166
+ }
1167
+ function _t(e) {
1168
+ function t(n, r, i, o) {
1169
+ let s = n[o++];
1170
+ const u = Number.isFinite(+s), d = o >= n.length;
1171
+ return s = !s && c.isArray(i) ? i.length : s, d ? (c.hasOwnProp(i, s) ? i[s] = [i[s], r] : i[s] = r, !u) : ((!i[s] || !c.isObject(i[s])) && (i[s] = []), t(n, r, i[s], o) && c.isArray(i[s]) && (i[s] = ar(i[s])), !u);
1172
+ }
1173
+ if (c.isFormData(e) && c.isFunction(e.entries)) {
1174
+ const n = {};
1175
+ return c.forEachEntry(e, (r, i) => {
1176
+ t(sr(r), i, n, 0);
1177
+ }), n;
1178
+ }
1179
+ return null;
1180
+ }
1181
+ const lr = {
1182
+ "Content-Type": void 0
1183
+ };
1184
+ function cr(e, t, n) {
1185
+ if (c.isString(e))
1186
+ try {
1187
+ return (t || JSON.parse)(e), c.trim(e);
1188
+ } catch (r) {
1189
+ if (r.name !== "SyntaxError")
1190
+ throw r;
1191
+ }
1192
+ return (n || JSON.stringify)(e);
1193
+ }
1194
+ const xe = {
1195
+ transitional: Wt,
1196
+ adapter: ["xhr", "http"],
1197
+ transformRequest: [function(e, t) {
1198
+ const n = t.getContentType() || "", r = n.indexOf("application/json") > -1, i = c.isObject(e);
1199
+ if (i && c.isHTMLForm(e) && (e = new FormData(e)), c.isFormData(e))
1200
+ return r && r ? JSON.stringify(_t(e)) : e;
1201
+ if (c.isArrayBuffer(e) || c.isBuffer(e) || c.isStream(e) || c.isFile(e) || c.isBlob(e))
1202
+ return e;
1203
+ if (c.isArrayBufferView(e))
1204
+ return e.buffer;
1205
+ if (c.isURLSearchParams(e))
1206
+ return t.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
1207
+ let o;
1208
+ if (i) {
1209
+ if (n.indexOf("application/x-www-form-urlencoded") > -1)
1210
+ return or(e, this.formSerializer).toString();
1211
+ if ((o = c.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
1212
+ const s = this.env && this.env.FormData;
1213
+ return ke(
1214
+ o ? { "files[]": e } : e,
1215
+ s && new s(),
1216
+ this.formSerializer
1217
+ );
1218
+ }
1219
+ }
1220
+ return i || r ? (t.setContentType("application/json", !1), cr(e)) : e;
1221
+ }],
1222
+ transformResponse: [function(e) {
1223
+ const t = this.transitional || xe.transitional, n = t && t.forcedJSONParsing, r = this.responseType === "json";
1224
+ if (e && c.isString(e) && (n && !this.responseType || r)) {
1225
+ const i = !(t && t.silentJSONParsing) && r;
1226
+ try {
1227
+ return JSON.parse(e);
1228
+ } catch (o) {
1229
+ if (i)
1230
+ throw o.name === "SyntaxError" ? v.from(o, v.ERR_BAD_RESPONSE, this, null, this.response) : o;
1231
+ }
1232
+ }
1233
+ return e;
1234
+ }],
1235
+ /**
1236
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
1237
+ * timeout is not created.
1238
+ */
1239
+ timeout: 0,
1240
+ xsrfCookieName: "XSRF-TOKEN",
1241
+ xsrfHeaderName: "X-XSRF-TOKEN",
1242
+ maxContentLength: -1,
1243
+ maxBodyLength: -1,
1244
+ env: {
1245
+ FormData: U.classes.FormData,
1246
+ Blob: U.classes.Blob
1247
+ },
1248
+ validateStatus: function(e) {
1249
+ return e >= 200 && e < 300;
1250
+ },
1251
+ headers: {
1252
+ common: {
1253
+ Accept: "application/json, text/plain, */*"
1254
+ }
1255
+ }
1256
+ };
1257
+ c.forEach(["delete", "get", "head"], function(e) {
1258
+ xe.headers[e] = {};
1259
+ });
1260
+ c.forEach(["post", "put", "patch"], function(e) {
1261
+ xe.headers[e] = c.merge(lr);
1262
+ });
1263
+ const Ge = xe, ur = c.toObjectSet([
1264
+ "age",
1265
+ "authorization",
1266
+ "content-length",
1267
+ "content-type",
1268
+ "etag",
1269
+ "expires",
1270
+ "from",
1271
+ "host",
1272
+ "if-modified-since",
1273
+ "if-unmodified-since",
1274
+ "last-modified",
1275
+ "location",
1276
+ "max-forwards",
1277
+ "proxy-authorization",
1278
+ "referer",
1279
+ "retry-after",
1280
+ "user-agent"
1281
+ ]), dr = (e) => {
1282
+ const t = {};
1283
+ let n, r, i;
1284
+ return e && e.split(`
1285
+ `).forEach(function(o) {
1286
+ i = o.indexOf(":"), n = o.substring(0, i).trim().toLowerCase(), r = o.substring(i + 1).trim(), !(!n || t[n] && ur[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
1287
+ }), t;
1288
+ }, bt = Symbol("internals");
1289
+ function ce(e) {
1290
+ return e && String(e).trim().toLowerCase();
1291
+ }
1292
+ function Se(e) {
1293
+ return e === !1 || e == null ? e : c.isArray(e) ? e.map(Se) : String(e);
1294
+ }
1295
+ function fr(e) {
1296
+ const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
1297
+ let r;
1298
+ for (; r = n.exec(e); )
1299
+ t[r[1]] = r[2];
1300
+ return t;
1301
+ }
1302
+ const pr = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
1303
+ function Fe(e, t, n, r, i) {
1304
+ if (c.isFunction(r))
1305
+ return r.call(this, t, n);
1306
+ if (i && (t = n), !!c.isString(t)) {
1307
+ if (c.isString(r))
1308
+ return t.indexOf(r) !== -1;
1309
+ if (c.isRegExp(r))
1310
+ return r.test(t);
1311
+ }
1312
+ }
1313
+ function mr(e) {
1314
+ return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
1315
+ }
1316
+ function hr(e, t) {
1317
+ const n = c.toCamelCase(" " + t);
1318
+ ["get", "set", "has"].forEach((r) => {
1319
+ Object.defineProperty(e, r + n, {
1320
+ value: function(i, o, s) {
1321
+ return this[r].call(this, t, i, o, s);
1322
+ },
1323
+ configurable: !0
1324
+ });
1325
+ });
1326
+ }
1327
+ class $e {
1328
+ constructor(t) {
1329
+ t && this.set(t);
1330
+ }
1331
+ set(t, n, r) {
1332
+ const i = this;
1333
+ function o(u, d, g) {
1334
+ const f = ce(d);
1335
+ if (!f)
1336
+ throw new Error("header name must be a non-empty string");
1337
+ const a = c.findKey(i, f);
1338
+ (!a || i[a] === void 0 || g === !0 || g === void 0 && i[a] !== !1) && (i[a || d] = Se(u));
1339
+ }
1340
+ const s = (u, d) => c.forEach(u, (g, f) => o(g, f, d));
1341
+ return c.isPlainObject(t) || t instanceof this.constructor ? s(t, n) : c.isString(t) && (t = t.trim()) && !pr(t) ? s(dr(t), n) : t != null && o(n, t, r), this;
1342
+ }
1343
+ get(t, n) {
1344
+ if (t = ce(t), t) {
1345
+ const r = c.findKey(this, t);
1346
+ if (r) {
1347
+ const i = this[r];
1348
+ if (!n)
1349
+ return i;
1350
+ if (n === !0)
1351
+ return fr(i);
1352
+ if (c.isFunction(n))
1353
+ return n.call(this, i, r);
1354
+ if (c.isRegExp(n))
1355
+ return n.exec(i);
1356
+ throw new TypeError("parser must be boolean|regexp|function");
1357
+ }
1358
+ }
1359
+ }
1360
+ has(t, n) {
1361
+ if (t = ce(t), t) {
1362
+ const r = c.findKey(this, t);
1363
+ return !!(r && this[r] !== void 0 && (!n || Fe(this, this[r], r, n)));
1364
+ }
1365
+ return !1;
1366
+ }
1367
+ delete(t, n) {
1368
+ const r = this;
1369
+ let i = !1;
1370
+ function o(s) {
1371
+ if (s = ce(s), s) {
1372
+ const u = c.findKey(r, s);
1373
+ u && (!n || Fe(r, r[u], u, n)) && (delete r[u], i = !0);
1374
+ }
1375
+ }
1376
+ return c.isArray(t) ? t.forEach(o) : o(t), i;
1377
+ }
1378
+ clear(t) {
1379
+ const n = Object.keys(this);
1380
+ let r = n.length, i = !1;
1381
+ for (; r--; ) {
1382
+ const o = n[r];
1383
+ (!t || Fe(this, this[o], o, t, !0)) && (delete this[o], i = !0);
1384
+ }
1385
+ return i;
1386
+ }
1387
+ normalize(t) {
1388
+ const n = this, r = {};
1389
+ return c.forEach(this, (i, o) => {
1390
+ const s = c.findKey(r, o);
1391
+ if (s) {
1392
+ n[s] = Se(i), delete n[o];
1393
+ return;
1394
+ }
1395
+ const u = t ? mr(o) : String(o).trim();
1396
+ u !== o && delete n[o], n[u] = Se(i), r[u] = !0;
1397
+ }), this;
1398
+ }
1399
+ concat(...t) {
1400
+ return this.constructor.concat(this, ...t);
1401
+ }
1402
+ toJSON(t) {
1403
+ const n = /* @__PURE__ */ Object.create(null);
1404
+ return c.forEach(this, (r, i) => {
1405
+ r != null && r !== !1 && (n[i] = t && c.isArray(r) ? r.join(", ") : r);
1406
+ }), n;
1407
+ }
1408
+ [Symbol.iterator]() {
1409
+ return Object.entries(this.toJSON())[Symbol.iterator]();
1410
+ }
1411
+ toString() {
1412
+ return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
1413
+ `);
1414
+ }
1415
+ get [Symbol.toStringTag]() {
1416
+ return "AxiosHeaders";
1417
+ }
1418
+ static from(t) {
1419
+ return t instanceof this ? t : new this(t);
1420
+ }
1421
+ static concat(t, ...n) {
1422
+ const r = new this(t);
1423
+ return n.forEach((i) => r.set(i)), r;
1424
+ }
1425
+ static accessor(t) {
1426
+ const n = (this[bt] = this[bt] = {
1427
+ accessors: {}
1428
+ }).accessors, r = this.prototype;
1429
+ function i(o) {
1430
+ const s = ce(o);
1431
+ n[s] || (hr(r, o), n[s] = !0);
1432
+ }
1433
+ return c.isArray(t) ? t.forEach(i) : i(t), this;
1434
+ }
1435
+ }
1436
+ $e.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
1437
+ c.freezeMethods($e.prototype);
1438
+ c.freezeMethods($e);
1439
+ const I = $e;
1440
+ function Xe(e, t) {
1441
+ const n = this || Ge, r = t || n, i = I.from(r.headers);
1442
+ let o = r.data;
1443
+ return c.forEach(e, function(s) {
1444
+ o = s.call(n, o, i.normalize(), t ? t.status : void 0);
1445
+ }), i.normalize(), o;
1446
+ }
1447
+ function Ht(e) {
1448
+ return !!(e && e.__CANCEL__);
1449
+ }
1450
+ function he(e, t, n) {
1451
+ v.call(this, e ?? "canceled", v.ERR_CANCELED, t, n), this.name = "CanceledError";
1452
+ }
1453
+ c.inherits(he, v, {
1454
+ __CANCEL__: !0
1455
+ });
1456
+ function gr(e, t, n) {
1457
+ const r = n.config.validateStatus;
1458
+ !n.status || !r || r(n.status) ? e(n) : t(new v(
1459
+ "Request failed with status code " + n.status,
1460
+ [v.ERR_BAD_REQUEST, v.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
1461
+ n.config,
1462
+ n.request,
1463
+ n
1464
+ ));
1465
+ }
1466
+ const yr = U.isStandardBrowserEnv ? (
1467
+ // Standard browser envs support document.cookie
1468
+ /* @__PURE__ */ function() {
1469
+ return {
1470
+ write: function(e, t, n, r, i, o) {
1471
+ const s = [];
1472
+ s.push(e + "=" + encodeURIComponent(t)), c.isNumber(n) && s.push("expires=" + new Date(n).toGMTString()), c.isString(r) && s.push("path=" + r), c.isString(i) && s.push("domain=" + i), o === !0 && s.push("secure"), document.cookie = s.join("; ");
1473
+ },
1474
+ read: function(e) {
1475
+ const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
1476
+ return t ? decodeURIComponent(t[3]) : null;
1477
+ },
1478
+ remove: function(e) {
1479
+ this.write(e, "", Date.now() - 864e5);
1480
+ }
1481
+ };
1482
+ }()
1483
+ ) : (
1484
+ // Non standard browser env (web workers, react-native) lack needed support.
1485
+ /* @__PURE__ */ function() {
1486
+ return {
1487
+ write: function() {
1488
+ },
1489
+ read: function() {
1490
+ return null;
1491
+ },
1492
+ remove: function() {
1493
+ }
1494
+ };
1495
+ }()
1496
+ );
1497
+ function wr(e) {
1498
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
1499
+ }
1500
+ function br(e, t) {
1501
+ return t ? e.replace(/\/+$/, "") + "/" + t.replace(/^\/+/, "") : e;
1502
+ }
1503
+ function qt(e, t) {
1504
+ return e && !wr(t) ? br(e, t) : t;
1505
+ }
1506
+ const Er = U.isStandardBrowserEnv ? (
1507
+ // Standard browser envs have full support of the APIs needed to test
1508
+ // whether the request URL is of the same origin as current location.
1509
+ function() {
1510
+ const e = /(msie|trident)/i.test(navigator.userAgent), t = document.createElement("a");
1511
+ let n;
1512
+ function r(i) {
1513
+ let o = i;
1514
+ return e && (t.setAttribute("href", o), o = t.href), t.setAttribute("href", o), {
1515
+ href: t.href,
1516
+ protocol: t.protocol ? t.protocol.replace(/:$/, "") : "",
1517
+ host: t.host,
1518
+ search: t.search ? t.search.replace(/^\?/, "") : "",
1519
+ hash: t.hash ? t.hash.replace(/^#/, "") : "",
1520
+ hostname: t.hostname,
1521
+ port: t.port,
1522
+ pathname: t.pathname.charAt(0) === "/" ? t.pathname : "/" + t.pathname
1523
+ };
1524
+ }
1525
+ return n = r(window.location.href), function(i) {
1526
+ const o = c.isString(i) ? r(i) : i;
1527
+ return o.protocol === n.protocol && o.host === n.host;
1528
+ };
1529
+ }()
1530
+ ) : (
1531
+ // Non standard browser envs (web workers, react-native) lack needed support.
1532
+ /* @__PURE__ */ function() {
1533
+ return function() {
1534
+ return !0;
1535
+ };
1536
+ }()
1537
+ );
1538
+ function vr(e) {
1539
+ const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
1540
+ return t && t[1] || "";
1541
+ }
1542
+ function Sr(e, t) {
1543
+ e = e || 10;
1544
+ const n = new Array(e), r = new Array(e);
1545
+ let i = 0, o = 0, s;
1546
+ return t = t !== void 0 ? t : 1e3, function(u) {
1547
+ const d = Date.now(), g = r[o];
1548
+ s || (s = d), n[i] = u, r[i] = d;
1549
+ let f = o, a = 0;
1550
+ for (; f !== i; )
1551
+ a += n[f++], f = f % e;
1552
+ if (i = (i + 1) % e, i === o && (o = (o + 1) % e), d - s < t)
1553
+ return;
1554
+ const l = g && d - g;
1555
+ return l ? Math.round(a * 1e3 / l) : void 0;
1556
+ };
1557
+ }
1558
+ function Et(e, t) {
1559
+ let n = 0;
1560
+ const r = Sr(50, 250);
1561
+ return (i) => {
1562
+ const o = i.loaded, s = i.lengthComputable ? i.total : void 0, u = o - n, d = r(u), g = o <= s;
1563
+ n = o;
1564
+ const f = {
1565
+ loaded: o,
1566
+ total: s,
1567
+ progress: s ? o / s : void 0,
1568
+ bytes: u,
1569
+ rate: d || void 0,
1570
+ estimated: d && s && g ? (s - o) / d : void 0,
1571
+ event: i
1572
+ };
1573
+ f[t ? "download" : "upload"] = !0, e(f);
1574
+ };
1575
+ }
1576
+ const Or = typeof XMLHttpRequest < "u", Cr = Or && function(e) {
1577
+ return new Promise(function(t, n) {
1578
+ let r = e.data;
1579
+ const i = I.from(e.headers).normalize(), o = e.responseType;
1580
+ let s;
1581
+ function u() {
1582
+ e.cancelToken && e.cancelToken.unsubscribe(s), e.signal && e.signal.removeEventListener("abort", s);
1583
+ }
1584
+ c.isFormData(r) && (U.isStandardBrowserEnv || U.isStandardBrowserWebWorkerEnv ? i.setContentType(!1) : i.setContentType("multipart/form-data;", !1));
1585
+ let d = new XMLHttpRequest();
1586
+ if (e.auth) {
1587
+ const l = e.auth.username || "", h = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
1588
+ i.set("Authorization", "Basic " + btoa(l + ":" + h));
1589
+ }
1590
+ const g = qt(e.baseURL, e.url);
1591
+ d.open(e.method.toUpperCase(), Yt(g, e.params, e.paramsSerializer), !0), d.timeout = e.timeout;
1592
+ function f() {
1593
+ if (!d)
1594
+ return;
1595
+ const l = I.from(
1596
+ "getAllResponseHeaders" in d && d.getAllResponseHeaders()
1597
+ ), h = {
1598
+ data: !o || o === "text" || o === "json" ? d.responseText : d.response,
1599
+ status: d.status,
1600
+ statusText: d.statusText,
1601
+ headers: l,
1602
+ config: e,
1603
+ request: d
1604
+ };
1605
+ gr(function(b) {
1606
+ t(b), u();
1607
+ }, function(b) {
1608
+ n(b), u();
1609
+ }, h), d = null;
1610
+ }
1611
+ if ("onloadend" in d ? d.onloadend = f : d.onreadystatechange = function() {
1612
+ !d || d.readyState !== 4 || d.status === 0 && !(d.responseURL && d.responseURL.indexOf("file:") === 0) || setTimeout(f);
1613
+ }, d.onabort = function() {
1614
+ d && (n(new v("Request aborted", v.ECONNABORTED, e, d)), d = null);
1615
+ }, d.onerror = function() {
1616
+ n(new v("Network Error", v.ERR_NETWORK, e, d)), d = null;
1617
+ }, d.ontimeout = function() {
1618
+ let l = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
1619
+ const h = e.transitional || Wt;
1620
+ e.timeoutErrorMessage && (l = e.timeoutErrorMessage), n(new v(
1621
+ l,
1622
+ h.clarifyTimeoutError ? v.ETIMEDOUT : v.ECONNABORTED,
1623
+ e,
1624
+ d
1625
+ )), d = null;
1626
+ }, U.isStandardBrowserEnv) {
1627
+ const l = (e.withCredentials || Er(g)) && e.xsrfCookieName && yr.read(e.xsrfCookieName);
1628
+ l && i.set(e.xsrfHeaderName, l);
1629
+ }
1630
+ r === void 0 && i.setContentType(null), "setRequestHeader" in d && c.forEach(i.toJSON(), function(l, h) {
1631
+ d.setRequestHeader(h, l);
1632
+ }), c.isUndefined(e.withCredentials) || (d.withCredentials = !!e.withCredentials), o && o !== "json" && (d.responseType = e.responseType), typeof e.onDownloadProgress == "function" && d.addEventListener("progress", Et(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && d.upload && d.upload.addEventListener("progress", Et(e.onUploadProgress)), (e.cancelToken || e.signal) && (s = (l) => {
1633
+ d && (n(!l || l.type ? new he(null, e, d) : l), d.abort(), d = null);
1634
+ }, e.cancelToken && e.cancelToken.subscribe(s), e.signal && (e.signal.aborted ? s() : e.signal.addEventListener("abort", s)));
1635
+ const a = vr(g);
1636
+ if (a && U.protocols.indexOf(a) === -1) {
1637
+ n(new v("Unsupported protocol " + a + ":", v.ERR_BAD_REQUEST, e));
1638
+ return;
1639
+ }
1640
+ d.send(r || null);
1641
+ });
1642
+ }, Oe = {
1643
+ http: Jn,
1644
+ xhr: Cr
1645
+ };
1646
+ c.forEach(Oe, (e, t) => {
1647
+ if (e) {
1648
+ try {
1649
+ Object.defineProperty(e, "name", { value: t });
1650
+ } catch {
1651
+ }
1652
+ Object.defineProperty(e, "adapterName", { value: t });
1653
+ }
1654
+ });
1655
+ const Tr = {
1656
+ getAdapter: (e) => {
1657
+ e = c.isArray(e) ? e : [e];
1658
+ const { length: t } = e;
1659
+ let n, r;
1660
+ for (let i = 0; i < t && (n = e[i], !(r = c.isString(n) ? Oe[n.toLowerCase()] : n)); i++)
1661
+ ;
1662
+ if (!r)
1663
+ throw r === !1 ? new v(
1664
+ `Adapter ${n} is not supported by the environment`,
1665
+ "ERR_NOT_SUPPORT"
1666
+ ) : new Error(
1667
+ c.hasOwnProp(Oe, n) ? `Adapter '${n}' is not available in the build` : `Unknown adapter '${n}'`
1668
+ );
1669
+ if (!c.isFunction(r))
1670
+ throw new TypeError("adapter is not a function");
1671
+ return r;
1672
+ },
1673
+ adapters: Oe
1674
+ };
1675
+ function Ie(e) {
1676
+ if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1677
+ throw new he(null, e);
1678
+ }
1679
+ function vt(e) {
1680
+ return Ie(e), e.headers = I.from(e.headers), e.data = Xe.call(
1681
+ e,
1682
+ e.transformRequest
1683
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Tr.getAdapter(e.adapter || Ge.adapter)(e).then(function(t) {
1684
+ return Ie(e), t.data = Xe.call(
1685
+ e,
1686
+ e.transformResponse,
1687
+ t
1688
+ ), t.headers = I.from(t.headers), t;
1689
+ }, function(t) {
1690
+ return Ht(t) || (Ie(e), t && t.response && (t.response.data = Xe.call(
1691
+ e,
1692
+ e.transformResponse,
1693
+ t.response
1694
+ ), t.response.headers = I.from(t.response.headers))), Promise.reject(t);
1695
+ });
1696
+ }
1697
+ const St = (e) => e instanceof I ? e.toJSON() : e;
1698
+ function ie(e, t) {
1699
+ t = t || {};
1700
+ const n = {};
1701
+ function r(g, f, a) {
1702
+ return c.isPlainObject(g) && c.isPlainObject(f) ? c.merge.call({ caseless: a }, g, f) : c.isPlainObject(f) ? c.merge({}, f) : c.isArray(f) ? f.slice() : f;
1703
+ }
1704
+ function i(g, f, a) {
1705
+ if (c.isUndefined(f)) {
1706
+ if (!c.isUndefined(g))
1707
+ return r(void 0, g, a);
1708
+ } else
1709
+ return r(g, f, a);
1710
+ }
1711
+ function o(g, f) {
1712
+ if (!c.isUndefined(f))
1713
+ return r(void 0, f);
1714
+ }
1715
+ function s(g, f) {
1716
+ if (c.isUndefined(f)) {
1717
+ if (!c.isUndefined(g))
1718
+ return r(void 0, g);
1719
+ } else
1720
+ return r(void 0, f);
1721
+ }
1722
+ function u(g, f, a) {
1723
+ if (a in t)
1724
+ return r(g, f);
1725
+ if (a in e)
1726
+ return r(void 0, g);
1727
+ }
1728
+ const d = {
1729
+ url: o,
1730
+ method: o,
1731
+ data: o,
1732
+ baseURL: s,
1733
+ transformRequest: s,
1734
+ transformResponse: s,
1735
+ paramsSerializer: s,
1736
+ timeout: s,
1737
+ timeoutMessage: s,
1738
+ withCredentials: s,
1739
+ adapter: s,
1740
+ responseType: s,
1741
+ xsrfCookieName: s,
1742
+ xsrfHeaderName: s,
1743
+ onUploadProgress: s,
1744
+ onDownloadProgress: s,
1745
+ decompress: s,
1746
+ maxContentLength: s,
1747
+ maxBodyLength: s,
1748
+ beforeRedirect: s,
1749
+ transport: s,
1750
+ httpAgent: s,
1751
+ httpsAgent: s,
1752
+ cancelToken: s,
1753
+ socketPath: s,
1754
+ responseEncoding: s,
1755
+ validateStatus: u,
1756
+ headers: (g, f) => i(St(g), St(f), !0)
1757
+ };
1758
+ return c.forEach(Object.keys(Object.assign({}, e, t)), function(g) {
1759
+ const f = d[g] || i, a = f(e[g], t[g], g);
1760
+ c.isUndefined(a) && f !== u || (n[g] = a);
1761
+ }), n;
1762
+ }
1763
+ const Vt = "1.4.0", Ze = {};
1764
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1765
+ Ze[e] = function(n) {
1766
+ return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
1767
+ };
1768
+ });
1769
+ const Ot = {};
1770
+ Ze.transitional = function(e, t, n) {
1771
+ function r(i, o) {
1772
+ return "[Axios v" + Vt + "] Transitional option '" + i + "'" + o + (n ? ". " + n : "");
1773
+ }
1774
+ return (i, o, s) => {
1775
+ if (e === !1)
1776
+ throw new v(
1777
+ r(o, " has been removed" + (t ? " in " + t : "")),
1778
+ v.ERR_DEPRECATED
1779
+ );
1780
+ return t && !Ot[o] && (Ot[o] = !0, console.warn(
1781
+ r(
1782
+ o,
1783
+ " has been deprecated since v" + t + " and will be removed in the near future"
1784
+ )
1785
+ )), e ? e(i, o, s) : !0;
1786
+ };
1787
+ };
1788
+ function Rr(e, t, n) {
1789
+ if (typeof e != "object")
1790
+ throw new v("options must be an object", v.ERR_BAD_OPTION_VALUE);
1791
+ const r = Object.keys(e);
1792
+ let i = r.length;
1793
+ for (; i-- > 0; ) {
1794
+ const o = r[i], s = t[o];
1795
+ if (s) {
1796
+ const u = e[o], d = u === void 0 || s(u, o, e);
1797
+ if (d !== !0)
1798
+ throw new v("option " + o + " must be " + d, v.ERR_BAD_OPTION_VALUE);
1799
+ continue;
1800
+ }
1801
+ if (n !== !0)
1802
+ throw new v("Unknown option " + o, v.ERR_BAD_OPTION);
1803
+ }
1804
+ }
1805
+ const _e = {
1806
+ assertOptions: Rr,
1807
+ validators: Ze
1808
+ }, Y = _e.validators;
1809
+ class Te {
1810
+ constructor(t) {
1811
+ this.defaults = t, this.interceptors = {
1812
+ request: new wt(),
1813
+ response: new wt()
1814
+ };
1815
+ }
1816
+ /**
1817
+ * Dispatch a request
1818
+ *
1819
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
1820
+ * @param {?Object} config
1821
+ *
1822
+ * @returns {Promise} The Promise to be fulfilled
1823
+ */
1824
+ request(t, n) {
1825
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = ie(this.defaults, n);
1826
+ const { transitional: r, paramsSerializer: i, headers: o } = n;
1827
+ r !== void 0 && _e.assertOptions(r, {
1828
+ silentJSONParsing: Y.transitional(Y.boolean),
1829
+ forcedJSONParsing: Y.transitional(Y.boolean),
1830
+ clarifyTimeoutError: Y.transitional(Y.boolean)
1831
+ }, !1), i != null && (c.isFunction(i) ? n.paramsSerializer = {
1832
+ serialize: i
1833
+ } : _e.assertOptions(i, {
1834
+ encode: Y.function,
1835
+ serialize: Y.function
1836
+ }, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1837
+ let s;
1838
+ s = o && c.merge(
1839
+ o.common,
1840
+ o[n.method]
1841
+ ), s && c.forEach(
1842
+ ["delete", "get", "head", "post", "put", "patch", "common"],
1843
+ (b) => {
1844
+ delete o[b];
1845
+ }
1846
+ ), n.headers = I.concat(s, o);
1847
+ const u = [];
1848
+ let d = !0;
1849
+ this.interceptors.request.forEach(function(b) {
1850
+ typeof b.runWhen == "function" && b.runWhen(n) === !1 || (d = d && b.synchronous, u.unshift(b.fulfilled, b.rejected));
1851
+ });
1852
+ const g = [];
1853
+ this.interceptors.response.forEach(function(b) {
1854
+ g.push(b.fulfilled, b.rejected);
1855
+ });
1856
+ let f, a = 0, l;
1857
+ if (!d) {
1858
+ const b = [vt.bind(this), void 0];
1859
+ for (b.unshift.apply(b, u), b.push.apply(b, g), l = b.length, f = Promise.resolve(n); a < l; )
1860
+ f = f.then(b[a++], b[a++]);
1861
+ return f;
1862
+ }
1863
+ l = u.length;
1864
+ let h = n;
1865
+ for (a = 0; a < l; ) {
1866
+ const b = u[a++], L = u[a++];
1867
+ try {
1868
+ h = b(h);
1869
+ } catch (R) {
1870
+ L.call(this, R);
1871
+ break;
1872
+ }
1873
+ }
1874
+ try {
1875
+ f = vt.call(this, h);
1876
+ } catch (b) {
1877
+ return Promise.reject(b);
1878
+ }
1879
+ for (a = 0, l = g.length; a < l; )
1880
+ f = f.then(g[a++], g[a++]);
1881
+ return f;
1882
+ }
1883
+ getUri(t) {
1884
+ t = ie(this.defaults, t);
1885
+ const n = qt(t.baseURL, t.url);
1886
+ return Yt(n, t.params, t.paramsSerializer);
1887
+ }
1888
+ }
1889
+ c.forEach(["delete", "get", "head", "options"], function(e) {
1890
+ Te.prototype[e] = function(t, n) {
1891
+ return this.request(ie(n || {}, {
1892
+ method: e,
1893
+ url: t,
1894
+ data: (n || {}).data
1895
+ }));
1896
+ };
1897
+ });
1898
+ c.forEach(["post", "put", "patch"], function(e) {
1899
+ function t(n) {
1900
+ return function(r, i, o) {
1901
+ return this.request(ie(o || {}, {
1902
+ method: e,
1903
+ headers: n ? {
1904
+ "Content-Type": "multipart/form-data"
1905
+ } : {},
1906
+ url: r,
1907
+ data: i
1908
+ }));
1909
+ };
1910
+ }
1911
+ Te.prototype[e] = t(), Te.prototype[e + "Form"] = t(!0);
1912
+ });
1913
+ const Ce = Te;
1914
+ class Qe {
1915
+ constructor(t) {
1916
+ if (typeof t != "function")
1917
+ throw new TypeError("executor must be a function.");
1918
+ let n;
1919
+ this.promise = new Promise(function(i) {
1920
+ n = i;
1921
+ });
1922
+ const r = this;
1923
+ this.promise.then((i) => {
1924
+ if (!r._listeners)
1925
+ return;
1926
+ let o = r._listeners.length;
1927
+ for (; o-- > 0; )
1928
+ r._listeners[o](i);
1929
+ r._listeners = null;
1930
+ }), this.promise.then = (i) => {
1931
+ let o;
1932
+ const s = new Promise((u) => {
1933
+ r.subscribe(u), o = u;
1934
+ }).then(i);
1935
+ return s.cancel = function() {
1936
+ r.unsubscribe(o);
1937
+ }, s;
1938
+ }, t(function(i, o, s) {
1939
+ r.reason || (r.reason = new he(i, o, s), n(r.reason));
1940
+ });
1941
+ }
1942
+ /**
1943
+ * Throws a `CanceledError` if cancellation has been requested.
1944
+ */
1945
+ throwIfRequested() {
1946
+ if (this.reason)
1947
+ throw this.reason;
1948
+ }
1949
+ /**
1950
+ * Subscribe to the cancel signal
1951
+ */
1952
+ subscribe(t) {
1953
+ if (this.reason) {
1954
+ t(this.reason);
1955
+ return;
1956
+ }
1957
+ this._listeners ? this._listeners.push(t) : this._listeners = [t];
1958
+ }
1959
+ /**
1960
+ * Unsubscribe from the cancel signal
1961
+ */
1962
+ unsubscribe(t) {
1963
+ if (!this._listeners)
1964
+ return;
1965
+ const n = this._listeners.indexOf(t);
1966
+ n !== -1 && this._listeners.splice(n, 1);
1967
+ }
1968
+ /**
1969
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
1970
+ * cancels the `CancelToken`.
1971
+ */
1972
+ static source() {
1973
+ let t;
1974
+ return {
1975
+ token: new Qe(function(n) {
1976
+ t = n;
1977
+ }),
1978
+ cancel: t
1979
+ };
1980
+ }
1981
+ }
1982
+ const Ar = Qe;
1983
+ function Pr(e) {
1984
+ return function(t) {
1985
+ return e.apply(null, t);
1986
+ };
1987
+ }
1988
+ function kr(e) {
1989
+ return c.isObject(e) && e.isAxiosError === !0;
1990
+ }
1991
+ const He = {
1992
+ Continue: 100,
1993
+ SwitchingProtocols: 101,
1994
+ Processing: 102,
1995
+ EarlyHints: 103,
1996
+ Ok: 200,
1997
+ Created: 201,
1998
+ Accepted: 202,
1999
+ NonAuthoritativeInformation: 203,
2000
+ NoContent: 204,
2001
+ ResetContent: 205,
2002
+ PartialContent: 206,
2003
+ MultiStatus: 207,
2004
+ AlreadyReported: 208,
2005
+ ImUsed: 226,
2006
+ MultipleChoices: 300,
2007
+ MovedPermanently: 301,
2008
+ Found: 302,
2009
+ SeeOther: 303,
2010
+ NotModified: 304,
2011
+ UseProxy: 305,
2012
+ Unused: 306,
2013
+ TemporaryRedirect: 307,
2014
+ PermanentRedirect: 308,
2015
+ BadRequest: 400,
2016
+ Unauthorized: 401,
2017
+ PaymentRequired: 402,
2018
+ Forbidden: 403,
2019
+ NotFound: 404,
2020
+ MethodNotAllowed: 405,
2021
+ NotAcceptable: 406,
2022
+ ProxyAuthenticationRequired: 407,
2023
+ RequestTimeout: 408,
2024
+ Conflict: 409,
2025
+ Gone: 410,
2026
+ LengthRequired: 411,
2027
+ PreconditionFailed: 412,
2028
+ PayloadTooLarge: 413,
2029
+ UriTooLong: 414,
2030
+ UnsupportedMediaType: 415,
2031
+ RangeNotSatisfiable: 416,
2032
+ ExpectationFailed: 417,
2033
+ ImATeapot: 418,
2034
+ MisdirectedRequest: 421,
2035
+ UnprocessableEntity: 422,
2036
+ Locked: 423,
2037
+ FailedDependency: 424,
2038
+ TooEarly: 425,
2039
+ UpgradeRequired: 426,
2040
+ PreconditionRequired: 428,
2041
+ TooManyRequests: 429,
2042
+ RequestHeaderFieldsTooLarge: 431,
2043
+ UnavailableForLegalReasons: 451,
2044
+ InternalServerError: 500,
2045
+ NotImplemented: 501,
2046
+ BadGateway: 502,
2047
+ ServiceUnavailable: 503,
2048
+ GatewayTimeout: 504,
2049
+ HttpVersionNotSupported: 505,
2050
+ VariantAlsoNegotiates: 506,
2051
+ InsufficientStorage: 507,
2052
+ LoopDetected: 508,
2053
+ NotExtended: 510,
2054
+ NetworkAuthenticationRequired: 511
2055
+ };
2056
+ Object.entries(He).forEach(([e, t]) => {
2057
+ He[t] = e;
2058
+ });
2059
+ const xr = He;
2060
+ function Jt(e) {
2061
+ const t = new Ce(e), n = $t(Ce.prototype.request, t);
2062
+ return c.extend(n, Ce.prototype, t, { allOwnKeys: !0 }), c.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(r) {
2063
+ return Jt(ie(e, r));
2064
+ }, n;
2065
+ }
2066
+ const A = Jt(Ge);
2067
+ A.Axios = Ce;
2068
+ A.CanceledError = he;
2069
+ A.CancelToken = Ar;
2070
+ A.isCancel = Ht;
2071
+ A.VERSION = Vt;
2072
+ A.toFormData = ke;
2073
+ A.AxiosError = v;
2074
+ A.Cancel = A.CanceledError;
2075
+ A.all = function(e) {
2076
+ return Promise.all(e);
2077
+ };
2078
+ A.spread = Pr;
2079
+ A.isAxiosError = kr;
2080
+ A.mergeConfig = ie;
2081
+ A.AxiosHeaders = I;
2082
+ A.formToJSON = (e) => _t(c.isHTMLForm(e) ? new FormData(e) : e);
2083
+ A.HttpStatusCode = xr;
2084
+ A.default = A;
2085
+ function $r(e, t) {
2086
+ if (e)
2087
+ for (const n in e)
2088
+ t[n] = e[n];
2089
+ }
2090
+ let be;
2091
+ const Lr = new Uint8Array(16);
2092
+ function zr() {
2093
+ if (!be && (be = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !be))
2094
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
2095
+ return be(Lr);
2096
+ }
2097
+ const x = [];
2098
+ for (let e = 0; e < 256; ++e)
2099
+ x.push((e + 256).toString(16).slice(1));
2100
+ function Nr(e, t = 0) {
2101
+ return (x[e[t + 0]] + x[e[t + 1]] + x[e[t + 2]] + x[e[t + 3]] + "-" + x[e[t + 4]] + x[e[t + 5]] + "-" + x[e[t + 6]] + x[e[t + 7]] + "-" + x[e[t + 8]] + x[e[t + 9]] + "-" + x[e[t + 10]] + x[e[t + 11]] + x[e[t + 12]] + x[e[t + 13]] + x[e[t + 14]] + x[e[t + 15]]).toLowerCase();
2102
+ }
2103
+ const jr = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ct = {
2104
+ randomUUID: jr
2105
+ };
2106
+ function Dr(e, t, n) {
2107
+ if (Ct.randomUUID && !t && !e)
2108
+ return Ct.randomUUID();
2109
+ e = e || {};
2110
+ const r = e.random || (e.rng || zr)();
2111
+ if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t) {
2112
+ n = n || 0;
2113
+ for (let i = 0; i < 16; ++i)
2114
+ t[n + i] = r[i];
2115
+ return t;
2116
+ }
2117
+ return Nr(r);
2118
+ }
2119
+ Dr();
2120
+ /*! js-cookie v3.0.5 | MIT */
2121
+ function Ee(e) {
2122
+ for (var t = 1; t < arguments.length; t++) {
2123
+ var n = arguments[t];
2124
+ for (var r in n)
2125
+ e[r] = n[r];
2126
+ }
2127
+ return e;
2128
+ }
2129
+ var Br = {
2130
+ read: function(e) {
2131
+ return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
2132
+ },
2133
+ write: function(e) {
2134
+ return encodeURIComponent(e).replace(
2135
+ /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
2136
+ decodeURIComponent
2137
+ );
2138
+ }
2139
+ };
2140
+ function qe(e, t) {
2141
+ function n(i, o, s) {
2142
+ if (!(typeof document > "u")) {
2143
+ s = Ee({}, t, s), typeof s.expires == "number" && (s.expires = new Date(Date.now() + s.expires * 864e5)), s.expires && (s.expires = s.expires.toUTCString()), i = encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
2144
+ var u = "";
2145
+ for (var d in s)
2146
+ s[d] && (u += "; " + d, s[d] !== !0 && (u += "=" + s[d].split(";")[0]));
2147
+ return document.cookie = i + "=" + e.write(o, i) + u;
2148
+ }
2149
+ }
2150
+ function r(i) {
2151
+ if (!(typeof document > "u" || arguments.length && !i)) {
2152
+ for (var o = document.cookie ? document.cookie.split("; ") : [], s = {}, u = 0; u < o.length; u++) {
2153
+ var d = o[u].split("="), g = d.slice(1).join("=");
2154
+ try {
2155
+ var f = decodeURIComponent(d[0]);
2156
+ if (s[f] = e.read(g, f), i === f)
2157
+ break;
2158
+ } catch {
2159
+ }
2160
+ }
2161
+ return i ? s[i] : s;
2162
+ }
2163
+ }
2164
+ return Object.create(
2165
+ {
2166
+ set: n,
2167
+ get: r,
2168
+ remove: function(i, o) {
2169
+ n(
2170
+ i,
2171
+ "",
2172
+ Ee({}, o, {
2173
+ expires: -1
2174
+ })
2175
+ );
2176
+ },
2177
+ withAttributes: function(i) {
2178
+ return qe(this.converter, Ee({}, this.attributes, i));
2179
+ },
2180
+ withConverter: function(i) {
2181
+ return qe(Ee({}, this.converter, i), this.attributes);
2182
+ }
2183
+ },
2184
+ {
2185
+ attributes: { value: Object.freeze(t) },
2186
+ converter: { value: Object.freeze(e) }
2187
+ }
2188
+ );
2189
+ }
2190
+ qe(Br, { path: "/" });
2191
+ const Mr = ["id"], Ur = ["id", "data-cy"], Fr = ["data-idx", "loading", "alt", "width", "height", "onLoad"], Xr = ["id"], Ir = ["loading", "alt"], ni = /* @__PURE__ */ oe({
2192
+ inheritAttrs: !1,
2193
+ __name: "SwiperCarousel",
2194
+ props: {
2195
+ id: {},
2196
+ swiperOptions: {},
2197
+ thumbSwiperOptions: {},
2198
+ lazyLoadImages: { type: Boolean, default: !0 },
2199
+ backgroundImage: { type: Boolean, default: !1 },
2200
+ images: {},
2201
+ artDirection: {},
2202
+ shiftFirstImage: { type: Boolean, default: !1 }
2203
+ },
2204
+ emits: ["moved", "click", "firstSlideLoaded"],
2205
+ setup(e, { expose: t, emit: n }) {
2206
+ const r = e, i = n, o = Pt({
2207
+ swiperParams: { modules: [mn] },
2208
+ swiper: null,
2209
+ initCarousel: !1
2210
+ }), s = re(), u = K(() => {
2211
+ var m;
2212
+ return ((m = r.swiperOptions) == null ? void 0 : m.slidesPerView) || 1;
2213
+ }), d = K(() => {
2214
+ var m;
2215
+ return ((m = r.thumbSwiperOptions) == null ? void 0 : m.slidesPerView) || 1;
2216
+ }), g = K(() => {
2217
+ var m;
2218
+ return !!((m = r.swiperOptions) != null && m.keyboard);
2219
+ }), f = K(() => {
2220
+ const m = r.swiperOptions;
2221
+ return m ? !!m.navigation : !1;
2222
+ }), a = K(() => {
2223
+ const m = r.swiperOptions;
2224
+ return m ? !!m.pagination : !1;
2225
+ }), l = K(() => {
2226
+ const m = r.swiperOptions;
2227
+ return m ? !!m.autoplay : !1;
2228
+ }), h = K(
2229
+ () => {
2230
+ var m;
2231
+ return ((m = r.swiperOptions) == null ? void 0 : m.effect) || "slider";
2232
+ }
2233
+ ), b = () => {
2234
+ r.swiperOptions && $r(r.swiperOptions, o.swiperParams);
2235
+ }, L = (m, S = -1) => {
2236
+ if (!m.images)
2237
+ return { src: m.src || "" };
2238
+ let E = "", T = "", B = "";
2239
+ if (r.artDirection) {
2240
+ for (const P in r.artDirection) {
2241
+ const { mq: N, width: O } = r.artDirection[P];
2242
+ O && (B += B ? `,${N} ${parseInt(O)}px` : `${N} ${parseInt(O)}px`);
2243
+ }
2244
+ T = m.images.reduce((P, N, O) => {
2245
+ const k = Object.values(r.artDirection)[O];
2246
+ return !k || !k.width || (P += P ? `, ${N.storagePath} ${k.width}` : `${N.storagePath} ${k.width}`), P;
2247
+ }, ""), E = m.images[0].storagePath;
2248
+ } else {
2249
+ let P = m.images;
2250
+ m.images.length > 3 ? P = m.images.slice(2, 5) : r.shiftFirstImage && (P[0] = P[1]), T = P.reduce((N, O, k) => (k === 0 && (E = `${O.storagePath}`), k > 0 && (N += ", "), `${N}${O.storagePath} ${k + 1}x`), "");
2251
+ }
2252
+ const H = E, ee = T;
2253
+ return typeof u.value == "number" && S > u.value ? (E = "", T = "", { sizes: B, "data-src": H, "data-srcset": ee }) : { src: E, srcset: T, sizes: B };
2254
+ }, R = [], _ = (m) => {
2255
+ if (typeof u.value == "string")
2256
+ return;
2257
+ const S = R[m];
2258
+ if (S && !S.src && (S.src = S.dataset.src || "", S.srcset = S.dataset.srcset || ""), m < u.value || m + 1 >= (r.images ?? []).length)
2259
+ return;
2260
+ const E = R[m + 1];
2261
+ E && !E.src && (E.src = (E == null ? void 0 : E.dataset.src) || "", E.srcset = (E == null ? void 0 : E.dataset.srcset) || "");
2262
+ };
2263
+ t({
2264
+ moveTo(m, S = 0, E = !0) {
2265
+ o.swiper && o.swiper.slideTo(m, S, E);
2266
+ }
2267
+ });
2268
+ const Z = re(null), Q = (m) => {
2269
+ m === 0 && R && R[m] && Qt(() => {
2270
+ var S;
2271
+ (S = Z.value) == null || S.setAttribute("data-first-slide-loaded", "true"), i("firstSlideLoaded");
2272
+ });
2273
+ };
2274
+ return At(async () => {
2275
+ var E, T, B, H, ee, P, N;
2276
+ if (b(), g.value) {
2277
+ const { Keyboard: O } = await import("./index-Brcl3KsS.js");
2278
+ (E = o.swiperParams.modules) == null || E.push(O), o.swiperParams.keyboard = r.swiperOptions.keyboard;
2279
+ }
2280
+ if (a.value) {
2281
+ const { Pagination: O } = await import("./index-Brcl3KsS.js");
2282
+ (T = o.swiperParams.modules) == null || T.push(O), await import("./pagination-l0sNRNKZ.js"), o.swiperParams.pagination = {
2283
+ el: ".swiper-pagination",
2284
+ renderFraction: (k, te) => `<div class="tw-rounded-xs tw-border-w-black tw-border tw-border-solid tw-px-3 tw-bg-white tw-pt-[3px] tw-pb-[3px]">
2285
+ <span data-cy="swiper-pagination-current" class="${k}"></span>
2286
+ /
2287
+ <span data-cy="swiper-pagination-total" class="${te}"></span>
2288
+ </div>`,
2289
+ ...typeof o.swiperParams.pagination == "boolean" ? {} : o.swiperParams.pagination
2290
+ };
2291
+ }
2292
+ if (f.value) {
2293
+ const { Navigation: O } = await import("./index-Brcl3KsS.js");
2294
+ (B = o.swiperParams.modules) == null || B.push(O), await import("./navigation-l0sNRNKZ.js");
2295
+ const k = {
2296
+ ...r.swiperOptions.navigation.nextEl ?? {
2297
+ nextEl: ".swiper-button-next"
2298
+ },
2299
+ ...r.swiperOptions.navigation.prevEl ?? {
2300
+ prevEl: ".swiper-button-prev"
2301
+ }
2302
+ };
2303
+ o.swiperParams.navigation = {
2304
+ ...typeof r.swiperOptions.navigation == "object" ? r.swiperOptions.navigation : {},
2305
+ ...k
2306
+ };
2307
+ }
2308
+ if (l.value) {
2309
+ const { Autoplay: O } = await import("./index-Brcl3KsS.js");
2310
+ (H = o.swiperParams.modules) == null || H.push(O), await import("./autoplay-l0sNRNKZ.js"), o.swiperParams.autoplay = r.swiperOptions.autoplay;
2311
+ }
2312
+ const m = {
2313
+ ...o.swiperParams,
2314
+ on: {
2315
+ slideChange: (O) => {
2316
+ _(O.activeIndex), i("moved", { activeIndex: O.activeIndex });
2317
+ }
2318
+ }
2319
+ };
2320
+ let S = null;
2321
+ if (r.thumbSwiperOptions) {
2322
+ const { Thumbs: O, FreeMode: k, Controller: te } = await import("./index-Brcl3KsS.js");
2323
+ (ee = o.swiperParams.modules) == null || ee.push(O), (P = o.swiperParams.modules) == null || P.push(te), await import("./thumbs-l0sNRNKZ.js"), await import("./free-mode-l0sNRNKZ.js"), await import("./controller-l0sNRNKZ.js"), S = new ct(`#thumb_${r.id}`, {
2324
+ ...r.thumbSwiperOptions,
2325
+ modules: [k]
2326
+ }), m.thumbs = {
2327
+ swiper: S
2328
+ };
2329
+ }
2330
+ m.lazyPreloadPrevNext = 1, o.swiper = new ct(`#${r.id}`, m), (N = s.value) == null || N.classList.remove("tw-hidden");
2331
+ }), (m, S) => ($(), z("div", {
2332
+ id: `root-${m.id}`,
2333
+ ref_key: "root",
2334
+ ref: Z,
2335
+ class: j(["swiper-carousel-root", m.$attrs["root-classes"]])
2336
+ }, [
2337
+ W("div", {
2338
+ id: m.id,
2339
+ "data-cy": m.$attrs["data-cy"],
2340
+ class: j(["swiper", m.$attrs["swiper-classes"]])
2341
+ }, [
2342
+ W("div", {
2343
+ ref_key: "swiperWrapper",
2344
+ ref: s,
2345
+ class: j(["swiper-wrapper", [
2346
+ m.$attrs["swiper-wrapper-classes"],
2347
+ h.value === "none" && "no-transition"
2348
+ ]]),
2349
+ onClick: S[0] || (S[0] = (E) => i("click"))
2350
+ }, [
2351
+ G(m.$slots, "swiper_slide", {}, () => [
2352
+ ($(!0), z(Be, null, at(m.images, (E, T) => ($(), z("div", {
2353
+ key: `swiper_${m.id}_${T}`,
2354
+ class: j(["swiper-slide", m.$attrs["swiper-slide-classes"]])
2355
+ }, [
2356
+ W("div", {
2357
+ class: j(["swiper-zoom-container", m.$attrs["swiper-zoom-container-classes"]])
2358
+ }, [
2359
+ m.backgroundImage ? ue("", !0) : ($(), z("img", lt({
2360
+ key: 0,
2361
+ ref_for: !0,
2362
+ ref: (B) => {
2363
+ R.push(B);
2364
+ },
2365
+ class: ["disable-select", [m.$attrs["slide-img-classes"] || E.classes]],
2366
+ "data-idx": `${m.id}-slide-img-${T}`
2367
+ }, L(E, T), {
2368
+ loading: m.lazyLoadImages || T >= u.value ? "lazy" : void 0,
2369
+ alt: E.alt,
2370
+ itemprop: "image",
2371
+ width: E.width,
2372
+ height: E.height,
2373
+ onLoad: (B) => Q(T)
2374
+ }), null, 16, Fr))
2375
+ ], 2)
2376
+ ], 2))), 128))
2377
+ ])
2378
+ ], 2),
2379
+ a.value ? ($(), z("div", {
2380
+ key: 0,
2381
+ class: j([m.$attrs["swiper-pagination-classes"], "swiper-pagination [&.swiper-pagination-fraction]:tw-flex [&.swiper-pagination-fraction]:tw-justify-center"]),
2382
+ onClick: S[1] || (S[1] = de(() => {
2383
+ }, ["stop"]))
2384
+ }, null, 2)) : ue("", !0),
2385
+ f.value ? ($(), z(Be, { key: 1 }, [
2386
+ W("div", {
2387
+ class: "swiper-button-prev",
2388
+ "data-cy": "swiper-button-prev",
2389
+ onClick: S[2] || (S[2] = de(() => {
2390
+ }, ["stop"]))
2391
+ }),
2392
+ W("div", {
2393
+ class: "swiper-button-next",
2394
+ "data-cy": "swiper-button-next",
2395
+ onClick: S[3] || (S[3] = de(() => {
2396
+ }, ["stop"]))
2397
+ })
2398
+ ], 64)) : ue("", !0)
2399
+ ], 10, Ur),
2400
+ m.thumbSwiperOptions ? ($(), z("div", {
2401
+ key: 0,
2402
+ id: `thumb_${m.id}`,
2403
+ thumbsSlider: "",
2404
+ class: j(["swiper", m.$attrs["thumb-swiper-classes"]])
2405
+ }, [
2406
+ W("div", {
2407
+ class: j(["swiper-wrapper", m.$attrs["thumb-swiper-wrapper-classes"]])
2408
+ }, [
2409
+ ($(!0), z(Be, null, at(m.images, (E, T) => ($(), z("div", {
2410
+ key: `thumb_${m.id}_${T}`,
2411
+ class: j(["swiper-slide", m.$attrs["thumb-img-wrapper-classes"]])
2412
+ }, [
2413
+ W("img", lt({
2414
+ class: m.$attrs["thumb-img-classes"]
2415
+ }, L(E), {
2416
+ loading: T >= d.value ? "lazy" : void 0,
2417
+ alt: E.alt
2418
+ }), null, 16, Ir)
2419
+ ], 2))), 128))
2420
+ ], 2)
2421
+ ], 10, Xr)) : ue("", !0)
2422
+ ], 10, Mr));
2423
+ }
2424
+ });
2425
+ export {
2426
+ mn as Z,
2427
+ _r as _,
2428
+ pe as a,
2429
+ pt as b,
2430
+ ft as c,
2431
+ Gr as d,
2432
+ Me as e,
2433
+ ei as f,
2434
+ un as g,
2435
+ Zr as h,
2436
+ Qr as i,
2437
+ Kr as j,
2438
+ Jr as k,
2439
+ ni as l,
2440
+ ti as m,
2441
+ Vr as n,
2442
+ Hr as o,
2443
+ qr as p
2444
+ };