@golstats/gsc-relevant-data 1.0.6 → 1.0.8

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 (31) hide show
  1. package/dist/{CardBaseAllIndividual-Din4dnnE-ClvswX2H.js → CardBaseAllIndividual-CNB7K2M0-nej9DJ8x.js} +68 -69
  2. package/dist/{CardGeneral-70CyP1c9-DzGLKPLW.js → CardGeneral-DyOdaEFZ-DVY9vI50.js} +29 -30
  3. package/dist/{CardGeneralIndividual-CFAG9SL3-Cm2WMulY.js → CardGeneralIndividual-DaONNIwT-WoYrg7O0.js} +22 -23
  4. package/dist/{CardGeneralTeams-C1b59sT7-DKIH3pKd.js → CardGeneralTeams-CCfSIg5--ycGF0WJl.js} +35 -36
  5. package/dist/{CardIndividual-BVJEvLuq-DNLGRnJn.js → CardIndividual-B5YHR_4X-DC-zfHLx.js} +69 -70
  6. package/dist/{CardIndividual1vs1-BEIdhWs1-CmX-Dpme.js → CardIndividual1vs1-DEBY4dbB-V3PJhhY7.js} +8 -9
  7. package/dist/{CardIndividualAreas-T43vItFr-GlwzP3pQ.js → CardIndividualAreas-D9mHXjfS-DrA6YV1T.js} +56 -56
  8. package/dist/{CardIndividualCenters-fZNKbbXo-CvIgTyZn.js → CardIndividualCenters-DeGyy9wB-BftpRpCL.js} +108 -108
  9. package/dist/{CardIndividualDistance-CcU2Vbnx-DlR0hivB.js → CardIndividualDistance-jUf26hS9-BTaa0gSa.js} +14 -15
  10. package/dist/{CardIndividualFouls-BYcKqeFK-BGZfrm52.js → CardIndividualFouls-DF0AvPys-C61mrpb7.js} +119 -119
  11. package/dist/{CardIndividualGoalParticipation-yPoWp2QU-DpNpWdqc.js → CardIndividualGoalParticipation-CGVwsTkf-BsIXMNqX.js} +21 -22
  12. package/dist/{CardIndividualGoals-C69mSV2s-CBAHkKBm.js → CardIndividualGoals-CjrXz7Zv-Cg_lAqNg.js} +177 -177
  13. package/dist/{CardIndividualGold-BxCrvpoF-BEc0OJ86.js → CardIndividualGold-Cp8DsHVJ-nOXX6qdb.js} +32 -33
  14. package/dist/{CardIndividualNoGoalReceived-CqVz1A2y-Bkyl-TxG.js → CardIndividualNoGoalReceived-BNjVlC0Z-BtnbjfPl.js} +18 -19
  15. package/dist/{CardIndividualPerformance-JjUTmJQy-8qdezjEh.js → CardIndividualPerformance-kbuWBDcK-CWDHQrku.js} +32 -33
  16. package/dist/{CardIndividualSaves-DEvTL6Uw-_tm_oIfl.js → CardIndividualSaves-BTCuv2ld-BJ7OrOnW.js} +13 -14
  17. package/dist/{CardIndividualShotsOnGoal-BxwPL-4b-8RHeYE0k.js → CardIndividualShotsOnGoal-B6fysQZQ-2WTo5bAB.js} +68 -59
  18. package/dist/{CardIndividualStatistics-DQRVwOUb-Cq_TJCc_.js → CardIndividualStatistics-B7vL_L1s-BYMwjEJD.js} +13 -14
  19. package/dist/{CardPromTournament-HcWvduRV-BAoQc2Cb.js → CardPromTournament-DMe6axFO-DWI8msi-.js} +31 -32
  20. package/dist/{CardSuccessfulPasses-D9ZpWlLr-u3HOsral.js → CardSuccessfulPasses-ByzEm7s3-DmSHr8yg.js} +9 -10
  21. package/dist/{CardTheMostProductive-CNNFBK3--DOPfJcMr.js → CardTheMostProductive-CDDFIo-I-LQ50NbB5.js} +14 -15
  22. package/dist/CircleWithDotsBig-5eFuZwDk-n956nNzk.js +151 -0
  23. package/dist/{Shield-COMdrYaO-CAc0Epy_.js → Shield-0VkASyDI-Cm8rtKBS.js} +1 -1
  24. package/dist/gsc-relevant-data.css +1 -1
  25. package/dist/gsc-relevant-data.js +4949 -2
  26. package/dist/gsc-relevant-data.umd.cjs +6 -6
  27. package/dist/misc-BbzSgyER-2p2XKW1m.js +168 -0
  28. package/package.json +2 -2
  29. package/dist/CircleWithDotsBig-DOPQy89I-Cv_-f5J6.js +0 -91
  30. package/dist/index-Cb9m7Z8V.js +0 -4933
  31. package/dist/misc-CMAhmOsp-CuP1bOXh.js +0 -163
@@ -1,4 +1,4951 @@
1
- import { D as r } from "./index-Cb9m7Z8V.js";
1
+ import { useCssVars as se, ref as z, onMounted as ge, onUnmounted as Jt, resolveComponent as $, openBlock as p, createElementBlock as g, createElementVNode as m, normalizeStyle as k, Fragment as P, renderList as A, toDisplayString as I, renderSlot as Z, createCommentVNode as v, createVNode as F, withCtx as q, normalizeClass as E, computed as M, createBlock as W, unref as ye, watch as fe, onBeforeMount as St, Transition as vt, withDirectives as Q, vShow as re, pushScopeId as ie, popScopeId as ne, mergeProps as Gt, defineAsyncComponent as x, resolveDynamicComponent as Vt, withModifiers as Xe, vModelText as Xt } from "vue";
2
+ function Zt(e) {
3
+ const r = z({ width: 0, height: 0 });
4
+ function t() {
5
+ const o = e.value.getBoundingClientRect();
6
+ r.value.width = o.width, r.value.height = o.height;
7
+ }
8
+ return ge(() => {
9
+ t(), window.addEventListener("resize", t);
10
+ }), Jt(() => {
11
+ window.removeEventListener("resize", t);
12
+ }), { elementSize: r };
13
+ }
14
+ const Kt = (e, r) => {
15
+ const t = e.__vccOpts || e;
16
+ for (const [o, s] of r)
17
+ t[o] = s;
18
+ return t;
19
+ }, ze = {
20
+ name: "ScrollableContainer",
21
+ props: {
22
+ backgroundColor: { type: String, default: "#0D1D29" },
23
+ pxScroll: { type: Number, default: 100 },
24
+ arrows: { type: Boolean, default: !0 },
25
+ arrowsHideOnNoScroll: { type: Boolean, default: !1 },
26
+ arrowsScrollHide: { type: Boolean, default: !1 },
27
+ arrowsColor: { type: String, default: "#CBEE6B" },
28
+ arrowsHeight: { type: Number, default: 15 },
29
+ arrowsWidth: { type: Number, default: 15 },
30
+ arrowsPadding: { type: Number, default: 5 },
31
+ arrowsMargin: { type: Number, default: 10 },
32
+ arrowsRadius: { type: String, default: "0%" },
33
+ arrowsBorder: { type: String, default: "none" },
34
+ arrowsBackground: { type: String, default: "#0D1D29" },
35
+ arrowsContainerBgL: { type: String, default: "#0D1D29" },
36
+ arrowsContainerBgR: { type: String, default: "#0D1D29" },
37
+ scrollColor: { type: String, default: "#c3e569" },
38
+ arrowsPosition: { type: String, default: "relative" },
39
+ height: { type: String, default: "100%" }
40
+ },
41
+ data() {
42
+ return {
43
+ showLeftArrow: !1,
44
+ showRightArrow: !0,
45
+ intervalid1: ""
46
+ };
47
+ },
48
+ mounted() {
49
+ this.getScroll(), this.arrowsHideOnNoScroll && window.addEventListener("resize", this.resizeSlider), this.arrowsHideOnNoScroll && this.listenerLoad();
50
+ },
51
+ beforeUnmount() {
52
+ this.arrowsHideOnNoScroll && window.removeEventListener("resize", this.resizeSlider), this.arrowsHideOnNoScroll && clearInterval(this.intervalid1);
53
+ },
54
+ computed: {
55
+ getViewBox() {
56
+ return `-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`;
57
+ },
58
+ hideShowLeftArrow() {
59
+ let e = "";
60
+ return this.arrowsPosition == "absolute" ? e = "leftAbsolute" : e = "leftRelative", this.arrowsScrollHide ? this.showLeftArrow ? e += " showArrowSlide" : e += " hideArrowSlide" : e += " showArrowSlide", e;
61
+ },
62
+ hideShowRightArrow() {
63
+ let e = "";
64
+ return this.arrowsPosition == "absolute" ? e = "rightAbsolute" : e = "rightRelative", this.arrowsScrollHide ? this.showRightArrow ? e += " showArrowSlide" : e += " hideArrowSlide" : e += " showArrowSlide", e;
65
+ }
66
+ },
67
+ methods: {
68
+ scrollLeft() {
69
+ this.$refs.content.scrollLeft -= this.pxScroll;
70
+ },
71
+ scrollRight() {
72
+ this.$refs.content.scrollLeft += this.pxScroll;
73
+ },
74
+ getScroll() {
75
+ let e = 0;
76
+ this.arrowsPosition == "relative" ? e = this.$refs.content.scrollWidth - this.$el.clientWidth + this.arrowsMargin * 2 + this.arrowsWidth * 4 : e = this.$refs.content.scrollWidth - this.$el.clientWidth, this.$refs.content.scrollLeft == 0 ? this.showLeftArrow = !1 : this.showLeftArrow = !0, e > 0 && (this.$refs.content.scrollLeft == e ? this.showRightArrow = !1 : this.showRightArrow = !0), this.arrowsHideOnNoScroll && this.$refs.content.clientWidth === this.$refs.content.scrollWidth && (this.showRightArrow = !1);
77
+ },
78
+ resizeSlider() {
79
+ this.getScroll();
80
+ let e;
81
+ clearTimeout(e), e = setTimeout(this.getScroll, 1e3);
82
+ },
83
+ listenerLoad() {
84
+ this.intervalid1 = setInterval((function() {
85
+ var e = this.$el.clientWidth, r = this.$refs.content.scrollWidth;
86
+ r > 0 && e > 0 && (r > e ? (this.showRightArrow = !0, clearInterval(this.intervalid1)) : clearInterval(this.intervalid1));
87
+ }).bind(this), 3e3);
88
+ }
89
+ }
90
+ }, Ze = () => {
91
+ se((e) => ({
92
+ "42d3dba6": e.backgroundColor,
93
+ "4de5d2cf": e.height,
94
+ "67bafa7b": e.arrowsPosition,
95
+ "61e1032e": e.arrowsPadding + "px",
96
+ "79a4ac00": e.arrowsBackground,
97
+ "6b8355c6": e.arrowsHeight * 2 + "px",
98
+ "29a58368": e.arrowsWidth * 2 + "px",
99
+ "3622fa64": e.arrowsRadius,
100
+ "1ba101fe": e.arrowsBorder,
101
+ "0bafb5e6": e.arrowsMargin + "px",
102
+ "423a44b8": e.arrowsContainerBgL,
103
+ "423a44be": e.arrowsContainerBgR,
104
+ "10b117ee": e.scrollColor
105
+ }));
106
+ }, Ke = ze.setup;
107
+ ze.setup = Ke ? (e, r) => (Ze(), Ke(e, r)) : Ze;
108
+ const Qt = {
109
+ ref: "gscScrollableContainer",
110
+ class: "scrollable-container"
111
+ }, Yt = { class: "scrollable-arrows" }, er = ["width", "height", "viewBox"], tr = ["stroke"], rr = { class: "scrollable-wrapper" }, or = { class: "scrollable-arrows" }, sr = ["width", "height", "viewBox"], ir = ["stroke"];
112
+ function nr(e, r, t, o, s, i) {
113
+ return p(), g("div", Qt, [
114
+ t.arrows ? (p(), g("div", {
115
+ key: 0,
116
+ class: E(["arrows-container", i.hideShowLeftArrow]),
117
+ onClick: r[0] || (r[0] = (...n) => i.scrollLeft && i.scrollLeft(...n))
118
+ }, [
119
+ m("div", Yt, [
120
+ (p(), g("svg", {
121
+ width: t.arrowsWidth,
122
+ height: t.arrowsHeight,
123
+ viewBox: i.getViewBox,
124
+ fill: "none",
125
+ xmlns: "http://www.w3.org/2000/svg"
126
+ }, [
127
+ m("path", {
128
+ d: "M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",
129
+ stroke: t.arrowsColor
130
+ }, null, 8, tr)
131
+ ], 8, er))
132
+ ])
133
+ ], 2)) : v("", !0),
134
+ m("div", {
135
+ class: "scrollable-content scrollable-content-slider",
136
+ ref: "content",
137
+ onScroll: r[1] || (r[1] = (...n) => i.getScroll && i.getScroll(...n))
138
+ }, [
139
+ m("div", rr, [
140
+ Z(e.$slots, "default", {}, void 0, !0)
141
+ ])
142
+ ], 544),
143
+ t.arrows ? (p(), g("div", {
144
+ key: 1,
145
+ id: "arrows-container-right",
146
+ class: E(["arrows-container", i.hideShowRightArrow]),
147
+ onClick: r[2] || (r[2] = (...n) => i.scrollRight && i.scrollRight(...n))
148
+ }, [
149
+ m("div", or, [
150
+ (p(), g("svg", {
151
+ width: t.arrowsWidth,
152
+ height: t.arrowsHeight,
153
+ viewBox: i.getViewBox,
154
+ fill: "none",
155
+ xmlns: "http://www.w3.org/2000/svg"
156
+ }, [
157
+ m("path", {
158
+ d: "M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",
159
+ stroke: t.arrowsColor
160
+ }, null, 8, ir)
161
+ ], 8, sr))
162
+ ])
163
+ ], 2)) : v("", !0)
164
+ ], 512);
165
+ }
166
+ const ar = /* @__PURE__ */ Kt(ze, [["render", nr], ["__scopeId", "data-v-b548a08d"]]), lr = (e, r) => {
167
+ const t = e.__vccOpts || e;
168
+ for (const [o, s] of r)
169
+ t[o] = s;
170
+ return t;
171
+ }, Fe = {
172
+ components: {
173
+ GSCSlider: ar
174
+ },
175
+ props: {
176
+ arrow: {
177
+ type: Boolean,
178
+ required: !0
179
+ },
180
+ buttons: {
181
+ type: Array,
182
+ required: !0
183
+ },
184
+ width: {
185
+ type: String,
186
+ default: "300px"
187
+ },
188
+ height: {
189
+ type: String,
190
+ default: "80px"
191
+ },
192
+ fontSize: {
193
+ type: String,
194
+ default: "16px"
195
+ },
196
+ colorFont: {
197
+ type: String,
198
+ default: "#ffffff"
199
+ },
200
+ backgroundOptionActive: {
201
+ type: String,
202
+ default: "#0d1d29"
203
+ },
204
+ colorOptionActive: {
205
+ type: String,
206
+ default: "#cbee6b"
207
+ },
208
+ colorOptionDisable: {
209
+ type: String,
210
+ default: "gray"
211
+ },
212
+ backgroundOptionDisable: {
213
+ type: String,
214
+ default: "#0d1d29"
215
+ },
216
+ fontFamily: {
217
+ type: String,
218
+ default: "Poppins-Semibold"
219
+ },
220
+ borderWidth: {
221
+ type: String,
222
+ default: "3px"
223
+ },
224
+ borderRadius: {
225
+ type: String,
226
+ default: "0px"
227
+ },
228
+ selectedOption: {
229
+ type: String,
230
+ default: ""
231
+ },
232
+ type: {
233
+ type: Number,
234
+ default: 0
235
+ },
236
+ borderWidthContainer: {
237
+ type: String,
238
+ default: "1px"
239
+ },
240
+ background: {
241
+ type: String,
242
+ default: "#0d1d29"
243
+ },
244
+ borderColorContainer: {
245
+ type: String,
246
+ default: "#505355"
247
+ },
248
+ pxScroll: { type: Number, default: 100 },
249
+ scrollColor: { type: String, default: "#c3e569" },
250
+ arrowsPosition: { type: String, default: "relative" },
251
+ arrowsScrollHide: { type: Boolean, default: !1 },
252
+ arrowsBackground: { type: String, default: "#0D1D29" },
253
+ arrowsContainerBgL: { type: String, default: "#0D1D29" },
254
+ arrowsContainerBgR: { type: String, default: "#0D1D29" },
255
+ arrowsMargin: { type: Number, default: 10 },
256
+ arrowsRadius: { type: String, default: "0%" },
257
+ arrowsBorder: { type: String, default: "none" }
258
+ },
259
+ setup() {
260
+ const e = z("myDivRef"), {
261
+ elementSize: r
262
+ } = Zt(e);
263
+ return {
264
+ myDivRef: e,
265
+ elementSize: r
266
+ };
267
+ },
268
+ methods: {
269
+ clickEmitEvent(e) {
270
+ this.$emit("input", e);
271
+ },
272
+ customGrid(e) {
273
+ var r = {};
274
+ return e.width > 768 ? r = {
275
+ fontSize: "16px"
276
+ } : e.width > 480 ? r = {
277
+ fontSize: "14px"
278
+ } : r = {
279
+ fontSize: "12px"
280
+ }, r;
281
+ }
282
+ }
283
+ }, Qe = () => {
284
+ se((e) => ({
285
+ cff4a118: e.fontSize,
286
+ "42aab7f6": e.borderWidth,
287
+ d29bcbd2: e.fontFamily,
288
+ df6c5a9c: e.background,
289
+ "09b32862": e.borderRadius,
290
+ "8c0d6daa": e.borderWidthContainer,
291
+ e8a86fa4: e.borderColorContainer,
292
+ "179494da": e.colorOptionActive,
293
+ cea5647c: e.width
294
+ }));
295
+ }, Ye = Fe.setup;
296
+ Fe.setup = Ye ? (e, r) => (Qe(), Ye(e, r)) : Qe;
297
+ const dr = { ref: "myDivRef" }, cr = {
298
+ key: 0,
299
+ class: "gs-switch-container"
300
+ }, ur = ["onClick"], hr = {
301
+ key: 1,
302
+ class: "gs-switch-container-type"
303
+ }, fr = ["onClick"], pr = {
304
+ key: 2,
305
+ class: "gs-switch-container-carousel"
306
+ }, mr = ["onClick"];
307
+ function gr(e, r, t, o, s, i) {
308
+ const n = $("GSCSlider");
309
+ return p(), g("div", dr, [
310
+ t.type == 0 ? (p(), g("div", cr, [
311
+ m("div", {
312
+ class: "gs-switch-container__control",
313
+ style: k([i.customGrid(o.elementSize)])
314
+ }, [
315
+ (p(!0), g(P, null, A(t.buttons, (a, d) => (p(), g("div", {
316
+ class: "gs-switch-container__control__button-option",
317
+ style: k([{ height: t.height }, t.selectedOption == a ? { borderColor: t.colorOptionActive, color: t.colorFont + "!important", background: t.backgroundOptionActive } : { borderColor: t.colorOptionDisable, color: "grey !important" }]),
318
+ key: d,
319
+ onClick: (u) => (t.selectedOption = a, i.clickEmitEvent(a))
320
+ }, I(a), 13, ur))), 128))
321
+ ], 4),
322
+ Z(e.$slots, t.selectedOption, {}, void 0, !0)
323
+ ])) : v("", !0),
324
+ t.type == 1 ? (p(), g("div", hr, [
325
+ m("div", {
326
+ class: "gs-switch-container-type__control",
327
+ style: k([i.customGrid(o.elementSize)])
328
+ }, [
329
+ (p(!0), g(P, null, A(t.buttons, (a, d) => (p(), g("div", {
330
+ class: "gs-switch-container-type__control__button-option-type",
331
+ style: k([{ height: t.height }, t.selectedOption == a ? { borderColor: t.colorOptionActive, color: t.colorFont + "!important", background: t.backgroundOptionActive } : { borderColor: t.colorOptionDisable, borderWidth: "0px", borderWidth: "0px !important", color: "grey !important", background: t.backgroundOptionDisable }]),
332
+ key: d,
333
+ onClick: (u) => (t.selectedOption = a, i.clickEmitEvent(a))
334
+ }, I(a), 13, fr))), 128))
335
+ ], 4)
336
+ ])) : v("", !0),
337
+ t.type == 2 ? (p(), g("div", pr, [
338
+ F(n, {
339
+ arrows: t.arrow,
340
+ "background-color": t.background,
341
+ "px-scroll": t.pxScroll,
342
+ "scroll-color": t.scrollColor,
343
+ "arrows-position": t.arrowsPosition,
344
+ arrowsScrollHide: t.arrowsScrollHide,
345
+ "arrows-background": t.arrowsBackground,
346
+ "arrows-container-bg-l": t.arrowsContainerBgL,
347
+ "arrows-container-bg-r": t.arrowsContainerBgR,
348
+ "arrows-margin": t.arrowsMargin,
349
+ "arrows-radius": t.arrowsRadius,
350
+ "arrows-border": t.arrowsBorder
351
+ }, {
352
+ default: q(() => [
353
+ (p(!0), g(P, null, A(t.buttons, (a, d) => (p(), g("div", {
354
+ class: "button-option-multi",
355
+ style: k([{ height: t.height }, t.selectedOption == a ? { borderColor: t.colorOptionActive, color: t.colorFont + "!important", background: t.backgroundOptionActive } : { borderColor: t.colorOptionDisable, color: "grey !important" }]),
356
+ key: d,
357
+ onClick: (u) => (t.selectedOption = a, i.clickEmitEvent(a))
358
+ }, I(a), 13, mr))), 128))
359
+ ]),
360
+ _: 1
361
+ }, 8, ["arrows", "background-color", "px-scroll", "scroll-color", "arrows-position", "arrowsScrollHide", "arrows-background", "arrows-container-bg-l", "arrows-container-bg-r", "arrows-margin", "arrows-radius", "arrows-border"])
362
+ ])) : v("", !0)
363
+ ], 512);
364
+ }
365
+ const yr = /* @__PURE__ */ lr(Fe, [["render", gr], ["__scopeId", "data-v-8a86dfaf"]]), wr = (e, r) => {
366
+ const t = e.__vccOpts || e;
367
+ for (const [o, s] of r)
368
+ t[o] = s;
369
+ return t;
370
+ }, We = {
371
+ props: {
372
+ type: { type: Number, default: 0 },
373
+ value: { type: Boolean, default: !1 },
374
+ textValue: String,
375
+ icon: String,
376
+ iconPosition: { type: String, default: "left" },
377
+ iconSize: String,
378
+ fontColor: { type: String, default: "#FFFFFF" },
379
+ textDecoration: String,
380
+ fontSize: { type: String, default: "16px" },
381
+ fontSizeStat: { type: String, default: "16px" },
382
+ fontStyle: String,
383
+ fontFamily: { type: String, default: "Poppins-Regular" },
384
+ height: { type: String, default: "fit-content" },
385
+ width: { type: String, default: "fit-content" },
386
+ borderRadius: { type: String, default: "0px" },
387
+ borderType: { type: String, default: "solid" },
388
+ borderWidth: { type: Number, default: 0 },
389
+ borderWidthBtn: { type: String, default: "2px" },
390
+ borderColor: String,
391
+ backgroundColor: { type: String, default: "none" },
392
+ activeBackgroundColor: { type: String, default: "#000000" },
393
+ activeBorderWidth: { type: Number, default: 2 },
394
+ activeBorderType: { type: String, default: "solid" },
395
+ activeBorderColor: { type: String, default: "#cbee6b" },
396
+ activeColorText: { type: String, default: "#FFFFFF" },
397
+ cursorType: { type: String, default: "default" },
398
+ typeOnOff: { type: Boolean, default: !1 },
399
+ textCategory: String,
400
+ textStat: String,
401
+ marginLeftStat: { type: String, default: "15%" }
402
+ },
403
+ watch: {
404
+ value: {
405
+ deep: !0,
406
+ immediate: !0,
407
+ handler(e) {
408
+ this.status = e;
409
+ }
410
+ }
411
+ },
412
+ data() {
413
+ return { status: !1 };
414
+ },
415
+ computed: {
416
+ customStyle() {
417
+ return {
418
+ height: this.height,
419
+ width: this.width,
420
+ backgroundColor: this.backgroundColor,
421
+ borderRadius: this.borderRadius,
422
+ border: `${this.borderType} ${this.borderWidth}px ${this.borderColor}`,
423
+ color: this.fontColor,
424
+ textDecoration: this.textDecoration,
425
+ cursor: this.cursorType,
426
+ fontSize: this.fontSize,
427
+ fontStyle: this.fontStyle,
428
+ fontFamily: `${this.fontFamily} !important`
429
+ };
430
+ },
431
+ customActive() {
432
+ return {
433
+ backgroundColor: this.activeBackgroundColor,
434
+ color: this.activeColorText,
435
+ border: `${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`
436
+ };
437
+ }
438
+ },
439
+ methods: {
440
+ btnClick(e) {
441
+ this.$emit("click", e), this.typeOnOff && (this.status = !this.status, this.$emit("status", this.status));
442
+ }
443
+ }
444
+ }, et = () => {
445
+ se((e) => ({
446
+ "9d01acb4": e.height,
447
+ "14e95081": e.borderWidthBtn,
448
+ "38fec285": e.borderType,
449
+ 34353510: e.borderColor,
450
+ "20d20dc6": e.borderRadius,
451
+ 17130967: e.width,
452
+ "4ccb7d36": e.backgroundColor,
453
+ "5d1e86a2": e.cursorType,
454
+ ce65d4a2: e.fontSize,
455
+ fe4ac47a: e.fontStyle,
456
+ f98e44dc: e.fontFamily,
457
+ "93b87770": e.marginLeftStat,
458
+ c7f7beba: e.fontSizeStat
459
+ }));
460
+ }, tt = We.setup;
461
+ We.setup = tt ? (e, r) => (et(), tt(e, r)) : et;
462
+ const br = (e) => (ie("data-v-f3ee6b2b"), e = e(), ne(), e), Sr = ["src"], vr = {
463
+ key: 1,
464
+ class: "text"
465
+ }, Cr = ["src"], _r = { class: "stats" }, kr = /* @__PURE__ */ br(() => /* @__PURE__ */ m("img", {
466
+ class: "iconstats",
467
+ src: "https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"
468
+ }, null, -1)), Tr = { class: "numstats" }, Ir = { class: "leyend" };
469
+ function xr(e, r, t, o, s, i) {
470
+ return p(), g("div", null, [
471
+ t.type == 0 ? (p(), g("div", {
472
+ key: 0,
473
+ class: E(["button", s.status && t.typeOnOff && "button-active"]),
474
+ style: k([i.customStyle, s.status && t.typeOnOff && i.customActive]),
475
+ onClick: r[0] || (r[0] = (...n) => i.btnClick && i.btnClick(...n))
476
+ }, [
477
+ t.icon && t.iconPosition.toLowerCase() === "left" ? (p(), g("img", {
478
+ key: 0,
479
+ class: "icon",
480
+ style: k({ width: t.iconSize }),
481
+ src: t.icon
482
+ }, null, 12, Sr)) : v("", !0),
483
+ t.textValue ? (p(), g("div", vr, I(t.textValue), 1)) : v("", !0),
484
+ t.icon && t.iconPosition.toLowerCase() === "right" ? (p(), g("img", {
485
+ key: 2,
486
+ class: "icon",
487
+ style: k({ width: t.iconSize }),
488
+ src: t.icon
489
+ }, null, 12, Cr)) : v("", !0)
490
+ ], 6)) : v("", !0),
491
+ t.type == 1 ? (p(), g("div", {
492
+ key: 1,
493
+ class: "button-target",
494
+ onClick: r[1] || (r[1] = (...n) => i.btnClick && i.btnClick(...n))
495
+ }, [
496
+ m("div", _r, [
497
+ kr,
498
+ m("div", Tr, I(t.textStat), 1)
499
+ ]),
500
+ m("div", Ir, I(t.textCategory), 1)
501
+ ])) : v("", !0)
502
+ ]);
503
+ }
504
+ const Or = /* @__PURE__ */ wr(We, [["render", xr], ["__scopeId", "data-v-f3ee6b2b"]]), Pr = { class: "gsc-dropdown__main-container__item-selected" }, Ar = ["height", "width"], Rr = ["stroke"], Er = { class: "gsc-dropdown__items-container" }, Br = ["onClick"], Nr = {
505
+ key: 0,
506
+ class: "gsc-dropdown__items-footer"
507
+ }, Dr = {
508
+ __name: "GSC-Dropdown",
509
+ props: {
510
+ modelValue: {
511
+ type: [Object, Number, String],
512
+ default: () => null
513
+ },
514
+ height: {
515
+ type: String,
516
+ default: "fit-content"
517
+ },
518
+ width: {
519
+ type: String,
520
+ default: "fit-content"
521
+ },
522
+ fontSize: {
523
+ type: String,
524
+ default: "14px"
525
+ },
526
+ borderRadius: {
527
+ type: Number,
528
+ default: 5
529
+ },
530
+ arrowHeight: {
531
+ type: Number,
532
+ default: 24
533
+ },
534
+ arrowWidth: {
535
+ type: Number,
536
+ default: 24
537
+ },
538
+ borderType: {
539
+ type: String,
540
+ default: "solid",
541
+ validator: function(e) {
542
+ return ["solid", "dotted", "dashed"].includes(e);
543
+ }
544
+ },
545
+ borderWidth: {
546
+ type: Number,
547
+ default: 1
548
+ },
549
+ borderColor: {
550
+ type: String,
551
+ default: "black"
552
+ },
553
+ backgroundColor: {
554
+ type: String,
555
+ default: "grey"
556
+ },
557
+ color: {
558
+ type: String,
559
+ default: "black"
560
+ },
561
+ arrowColor: {
562
+ type: String,
563
+ default: "#CBEE6B"
564
+ },
565
+ items: {
566
+ type: Array,
567
+ default: () => []
568
+ },
569
+ defaultItemByIndex: {
570
+ type: Number,
571
+ default: 0
572
+ },
573
+ defaultItemByProp: {
574
+ type: Object,
575
+ default: null,
576
+ validator: (e) => ["propName", "value"].every((r) => r in e)
577
+ },
578
+ listBackgroundColor: {
579
+ type: String,
580
+ default: "white"
581
+ },
582
+ hoverBackgroundColor: {
583
+ type: String,
584
+ default: "#f1f1f1"
585
+ },
586
+ listMarginTop: {
587
+ type: String,
588
+ default: "0"
589
+ },
590
+ listContainerPadding: {
591
+ type: String,
592
+ default: "0"
593
+ },
594
+ listItemPadding: {
595
+ type: String,
596
+ default: "10px 12px"
597
+ },
598
+ listItemMargin: {
599
+ type: String,
600
+ default: "0"
601
+ },
602
+ listHeight: {
603
+ type: String,
604
+ default: "fit-content"
605
+ },
606
+ listItemSelectedColor: {
607
+ type: String,
608
+ default: "white"
609
+ },
610
+ listItemSelectedBackgroundColor: {
611
+ type: String,
612
+ default: "#399cfd"
613
+ },
614
+ listItemColor: {
615
+ type: String,
616
+ default: "black"
617
+ },
618
+ listBorderRadius: {
619
+ type: String,
620
+ default: "0"
621
+ },
622
+ listBorderColor: {
623
+ type: String,
624
+ default: ""
625
+ },
626
+ listBorderWidth: {
627
+ type: Number,
628
+ default: 1
629
+ },
630
+ listItemBorderRadius: {
631
+ type: String,
632
+ default: "0"
633
+ },
634
+ listAlignment: {
635
+ type: String,
636
+ default: "left"
637
+ },
638
+ isListSameWidth: {
639
+ type: Boolean,
640
+ default: !1
641
+ },
642
+ isMultipleOption: {
643
+ type: Boolean,
644
+ default: !1
645
+ },
646
+ footerBorderColor: {
647
+ type: String,
648
+ default: "#626970"
649
+ },
650
+ footerBorderWidth: {
651
+ type: Number,
652
+ default: 1
653
+ },
654
+ isFooterVisible: {
655
+ type: Boolean,
656
+ default: !1
657
+ },
658
+ isDisabled: {
659
+ type: Boolean,
660
+ default: !1
661
+ },
662
+ onlyFirstTime: {
663
+ type: Boolean,
664
+ default: !1
665
+ }
666
+ },
667
+ emits: ["input", "click-ready", "update:modelValue"],
668
+ setup(e, { emit: r }) {
669
+ const t = e, o = z({}), s = z(null), i = z(t.isMultipleOption ? -1 : 0), n = z(!1);
670
+ fe(
671
+ () => t.items,
672
+ (y, f) => {
673
+ if (!t.modelValue && (!t.onlyFirstTime || !f || !f.length) && y && y.length) {
674
+ if (t.defaultItemByProp) {
675
+ const w = t.items.findIndex(
676
+ (b) => b[t.defaultItemByProp.propName] === t.defaultItemByProp.value
677
+ );
678
+ w !== -1 ? (i.value = w, o.value = y[w]) : (i.value = 0, o.value = y[0]);
679
+ } else
680
+ o.value = y[t.defaultItemByIndex];
681
+ r("input", o.value);
682
+ }
683
+ },
684
+ { immediate: !0 }
685
+ ), fe(
686
+ () => t.modelValue,
687
+ (y) => {
688
+ if (y) {
689
+ const f = t.items.findIndex((w) => typeof y == "object" ? JSON.stringify(w) === JSON.stringify(y) : w === y);
690
+ f !== -1 && (i.value = f, o.value = t.items[f], r("update:modelValue", o.value));
691
+ }
692
+ },
693
+ { immediate: !0 }
694
+ );
695
+ const a = M(() => ({
696
+ height: t.height,
697
+ width: t.width,
698
+ backgroundColor: t.backgroundColor,
699
+ borderRadius: `${t.borderRadius}px`,
700
+ border: `${t.borderType} ${t.borderWidth}px ${t.borderColor}`,
701
+ color: t.color,
702
+ "--hover-background-color": t.hoverBackgroundColor,
703
+ "--list-container-padding": t.listContainerPadding,
704
+ "--list-item-padding": t.listItemPadding,
705
+ "--list-item-margin": t.listItemMargin,
706
+ "--list-background-color": t.listBackgroundColor,
707
+ "--list-height": t.listHeight,
708
+ "--list-item-border-radius": t.listItemBorderRadius,
709
+ "--list-item-selected-color": t.listItemSelectedColor,
710
+ "--list-item-selected-background-color": t.listItemSelectedBackgroundColor,
711
+ "--list-item-color": t.listItemColor,
712
+ "--list-border-radius": `${t.listBorderRadius}`,
713
+ "--list-border-color": t.listBorderColor,
714
+ "--list-width": t.isListSameWidth ? t.width : "fit-content",
715
+ "--list-border-width": `${t.listBorderWidth}px`,
716
+ "--list-margin-top": t.listMarginTop,
717
+ "--list-left": t.listAlignment === "left" ? "0" : "auto",
718
+ "--list-right": t.listAlignment === "right" ? "0" : "auto",
719
+ "--footer-border": `${t.footerBorderWidth}px solid ${t.footerBorderColor}`,
720
+ "--dropdown-opacity": t.isDisabled ? "0.5" : "1",
721
+ "--dropdown-cursor": t.isDisabled ? "not-allowed" : "pointer",
722
+ "--dropdown-font-size": t.fontSize ? t.fontSize : "14px"
723
+ })), d = M(() => ({
724
+ height: `${t.arrowHeight}px`,
725
+ width: `${t.arrowWidth}px`
726
+ }));
727
+ function u() {
728
+ t.isDisabled || (n.value = !n.value);
729
+ }
730
+ function c(y) {
731
+ s.value && !s.value.contains(y.target) && (n.value = !1);
732
+ }
733
+ function h(y, f) {
734
+ t.isMultipleOption ? i.value = -1 : (i.value = f, n.value = !1), o.value = y, r("input", o.value), r("update:modelValue", o.value);
735
+ }
736
+ function S() {
737
+ n.value = !1, r("click-ready");
738
+ }
739
+ return ge(() => {
740
+ document.addEventListener("click", c);
741
+ }), St(() => {
742
+ document.removeEventListener("click", c);
743
+ }), (y, f) => (p(), g("div", {
744
+ ref_key: "dropDown",
745
+ ref: s,
746
+ class: "gsc-dropdown",
747
+ style: k(a.value)
748
+ }, [
749
+ m("div", {
750
+ class: "gsc-dropdown__main-container",
751
+ style: k({ "padding-right": `${e.arrowWidth + 8}px` }),
752
+ onClick: u
753
+ }, [
754
+ m("div", Pr, [
755
+ Z(y.$slots, "default", { selectedItem: o.value })
756
+ ]),
757
+ m("div", {
758
+ class: E(["gsc-dropdown__main-container__icon", { "rotated-180": n.value }]),
759
+ style: k(d.value)
760
+ }, [
761
+ (p(), g("svg", {
762
+ height: e.arrowHeight,
763
+ width: e.arrowWidth,
764
+ viewBox: "0 0 24 24",
765
+ fill: "none",
766
+ xmlns: "http://www.w3.org/2000/svg"
767
+ }, [
768
+ m("path", {
769
+ d: "M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",
770
+ stroke: e.arrowColor
771
+ }, null, 8, Rr)
772
+ ], 8, Ar))
773
+ ], 6)
774
+ ], 4),
775
+ F(vt, null, {
776
+ default: q(() => [
777
+ Q(m("div", Er, [
778
+ m("div", null, [
779
+ m("div", {
780
+ class: "gsc-dropdown__items",
781
+ style: k({ "margin-top": `${t.borderWidth}px` })
782
+ }, [
783
+ (p(!0), g(P, null, A(e.items, (w, b) => (p(), g("div", {
784
+ class: E(["gsc-dropdown__items__item", { selected: b === i.value }]),
785
+ key: b,
786
+ onClick: (T) => h(w, b)
787
+ }, [
788
+ Z(y.$slots, "availableItem", { item: w })
789
+ ], 10, Br))), 128))
790
+ ], 4),
791
+ e.isFooterVisible ? (p(), g("div", Nr, [
792
+ F(ye(Or), {
793
+ "text-value": "Listo",
794
+ "border-color": "#cbee6b",
795
+ "font-size": "12px",
796
+ width: "72px",
797
+ height: "22px",
798
+ "border-radius": "62px",
799
+ "border-width": 0.8,
800
+ onClick: S
801
+ })
802
+ ])) : v("", !0)
803
+ ])
804
+ ], 512), [
805
+ [re, n.value]
806
+ ])
807
+ ]),
808
+ _: 3
809
+ })
810
+ ], 4));
811
+ }
812
+ }, $r = (e, r) => {
813
+ const t = e.__vccOpts || e;
814
+ for (const [o, s] of r)
815
+ t[o] = s;
816
+ return t;
817
+ }, Lr = { class: "season-name" }, zr = { class: "items-list-season" }, Fr = {
818
+ __name: "GSC-SeasonSelect",
819
+ props: {
820
+ seasons: {
821
+ type: Array,
822
+ default: () => []
823
+ },
824
+ currentSeasonId: {
825
+ type: Number,
826
+ default: 0
827
+ }
828
+ },
829
+ emits: ["input"],
830
+ setup(e, { emit: r }) {
831
+ const t = e, o = M(() => t.seasons.find((n) => n.id === t.currentSeasonId));
832
+ function s(n) {
833
+ r("input", n);
834
+ }
835
+ function i(n) {
836
+ r("input", n);
837
+ }
838
+ return (n, a) => (p(), W(ye(Dr), {
839
+ items: e.seasons,
840
+ "model-value": o.value,
841
+ height: "40px",
842
+ width: "179px",
843
+ "background-color": "#0d1d29",
844
+ color: "white",
845
+ "border-color": "rgba(255, 255, 255, 0.2)",
846
+ "font-family": "Poppins-Regular",
847
+ "border-radius": 8,
848
+ onInput: i,
849
+ "onUpdate:modelValue": s
850
+ }, {
851
+ default: q(({ selectedItem: d }) => [
852
+ m("div", Lr, [
853
+ m("span", null, I(d.name), 1)
854
+ ])
855
+ ]),
856
+ availableItem: q(({ item: d }) => [
857
+ m("span", zr, I(d.name), 1)
858
+ ]),
859
+ _: 1
860
+ }, 8, ["items", "model-value"]));
861
+ }
862
+ }, Wr = /* @__PURE__ */ $r(Fr, [["__scopeId", "data-v-d23e9ee2"]]), Mr = (e, r) => {
863
+ const t = e.__vccOpts || e;
864
+ for (const [o, s] of r)
865
+ t[o] = s;
866
+ return t;
867
+ }, Me = {
868
+ props: {
869
+ type: { type: Number, default: 0 },
870
+ value: { type: Boolean, default: !1 },
871
+ textValue: String,
872
+ icon: String,
873
+ iconPosition: { type: String, default: "left" },
874
+ iconSize: String,
875
+ fontColor: { type: String, default: "#FFFFFF" },
876
+ textDecoration: String,
877
+ fontSize: { type: String, default: "16px" },
878
+ fontSizeStat: { type: String, default: "16px" },
879
+ fontStyle: String,
880
+ fontFamily: { type: String, default: "Poppins-Regular" },
881
+ height: { type: String, default: "fit-content" },
882
+ width: { type: String, default: "fit-content" },
883
+ borderRadius: { type: String, default: "0px" },
884
+ borderType: { type: String, default: "solid" },
885
+ borderWidth: { type: Number, default: 0 },
886
+ borderWidthBtn: { type: String, default: "2px" },
887
+ borderColor: String,
888
+ backgroundColor: { type: String, default: "none" },
889
+ activeBackgroundColor: { type: String, default: "#000000" },
890
+ activeBorderWidth: { type: Number, default: 2 },
891
+ activeBorderType: { type: String, default: "solid" },
892
+ activeBorderColor: { type: String, default: "#cbee6b" },
893
+ activeColorText: { type: String, default: "#FFFFFF" },
894
+ cursorType: { type: String, default: "default" },
895
+ typeOnOff: { type: Boolean, default: !1 },
896
+ textCategory: String,
897
+ textStat: String,
898
+ marginLeftStat: { type: String, default: "15%" }
899
+ },
900
+ watch: {
901
+ value: {
902
+ deep: !0,
903
+ immediate: !0,
904
+ handler(e) {
905
+ this.status = e;
906
+ }
907
+ }
908
+ },
909
+ data() {
910
+ return { status: !1 };
911
+ },
912
+ computed: {
913
+ customStyle() {
914
+ return {
915
+ height: this.height,
916
+ width: this.width,
917
+ backgroundColor: this.backgroundColor,
918
+ borderRadius: this.borderRadius,
919
+ border: `${this.borderType} ${this.borderWidth}px ${this.borderColor}`,
920
+ color: this.fontColor,
921
+ textDecoration: this.textDecoration,
922
+ cursor: this.cursorType,
923
+ fontSize: this.fontSize,
924
+ fontStyle: this.fontStyle,
925
+ fontFamily: `${this.fontFamily} !important`
926
+ };
927
+ },
928
+ customActive() {
929
+ return {
930
+ backgroundColor: this.activeBackgroundColor,
931
+ color: this.activeColorText,
932
+ border: `${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`
933
+ };
934
+ }
935
+ },
936
+ methods: {
937
+ btnClick(e) {
938
+ this.$emit("click", e), this.typeOnOff && (this.status = !this.status, this.$emit("status", this.status));
939
+ }
940
+ }
941
+ }, rt = () => {
942
+ se((e) => ({
943
+ "1c960139": e.height,
944
+ b2f635d8: e.borderWidthBtn,
945
+ "06e99898": e.borderType,
946
+ "55555c76": e.borderColor,
947
+ "23b6d320": e.borderRadius,
948
+ "22c97374": e.width,
949
+ "22bb09fa": e.backgroundColor,
950
+ c148da7c: e.cursorType,
951
+ cce756fc: e.fontSize,
952
+ cff98d60: e.fontStyle,
953
+ "5123b3a5": e.fontFamily,
954
+ "47bf58db": e.marginLeftStat,
955
+ cadc8414: e.fontSizeStat
956
+ }));
957
+ }, ot = Me.setup;
958
+ Me.setup = ot ? (e, r) => (rt(), ot(e, r)) : rt;
959
+ const qr = (e) => (ie("data-v-fb269a1e"), e = e(), ne(), e), jr = ["src"], Ur = {
960
+ key: 1,
961
+ class: "text"
962
+ }, Hr = ["src"], Jr = { class: "stats" }, Gr = /* @__PURE__ */ qr(() => /* @__PURE__ */ m("img", {
963
+ class: "iconstats",
964
+ src: "https://az755631.vo.msecnd.net/todoelfut/playdes.png"
965
+ }, null, -1)), Vr = { class: "numstats" }, Xr = { class: "leyend" };
966
+ function Zr(e, r, t, o, s, i) {
967
+ return p(), g("div", null, [
968
+ t.type == 0 ? (p(), g("div", {
969
+ key: 0,
970
+ class: E(["button", s.status && t.typeOnOff && "button-active"]),
971
+ style: k([i.customStyle, s.status && t.typeOnOff && i.customActive]),
972
+ onClick: r[0] || (r[0] = (...n) => i.btnClick && i.btnClick(...n))
973
+ }, [
974
+ t.icon && t.iconPosition.toLowerCase() === "left" ? (p(), g("img", {
975
+ key: 0,
976
+ class: "icon",
977
+ style: k({ width: t.iconSize }),
978
+ src: t.icon
979
+ }, null, 12, jr)) : v("", !0),
980
+ t.textValue ? (p(), g("div", Ur, I(t.textValue), 1)) : v("", !0),
981
+ t.icon && t.iconPosition.toLowerCase() === "right" ? (p(), g("img", {
982
+ key: 2,
983
+ class: "icon",
984
+ style: k({ width: t.iconSize }),
985
+ src: t.icon
986
+ }, null, 12, Hr)) : v("", !0)
987
+ ], 6)) : v("", !0),
988
+ t.type == 1 ? (p(), g("div", {
989
+ key: 1,
990
+ class: "button-target",
991
+ onClick: r[1] || (r[1] = (...n) => i.btnClick && i.btnClick(...n))
992
+ }, [
993
+ m("div", Jr, [
994
+ Gr,
995
+ m("div", Vr, I(t.textStat), 1)
996
+ ]),
997
+ m("div", Xr, I(t.textCategory), 1)
998
+ ])) : v("", !0)
999
+ ]);
1000
+ }
1001
+ const Kr = /* @__PURE__ */ Mr(Me, [["render", Zr], ["__scopeId", "data-v-fb269a1e"]]), Qr = { class: "gsc-dropdown__main-container__item-selected" }, Yr = ["height", "width"], eo = ["stroke"], to = { class: "gsc-dropdown__items-container" }, ro = ["onClick"], oo = {
1002
+ key: 0,
1003
+ class: "gsc-dropdown__items-footer"
1004
+ }, so = {
1005
+ __name: "GSC-Dropdown",
1006
+ props: {
1007
+ modelValue: {
1008
+ type: [Object, Number, String],
1009
+ default: () => null
1010
+ },
1011
+ height: {
1012
+ type: String,
1013
+ default: "fit-content"
1014
+ },
1015
+ width: {
1016
+ type: String,
1017
+ default: "fit-content"
1018
+ },
1019
+ fontSize: {
1020
+ type: String,
1021
+ default: "14px"
1022
+ },
1023
+ borderRadius: {
1024
+ type: Number,
1025
+ default: 5
1026
+ },
1027
+ arrowHeight: {
1028
+ type: Number,
1029
+ default: 24
1030
+ },
1031
+ arrowWidth: {
1032
+ type: Number,
1033
+ default: 24
1034
+ },
1035
+ borderType: {
1036
+ type: String,
1037
+ default: "solid",
1038
+ validator: function(e) {
1039
+ return ["solid", "dotted", "dashed"].includes(e);
1040
+ }
1041
+ },
1042
+ borderWidth: {
1043
+ type: Number,
1044
+ default: 1
1045
+ },
1046
+ borderColor: {
1047
+ type: String,
1048
+ default: "black"
1049
+ },
1050
+ backgroundColor: {
1051
+ type: String,
1052
+ default: "grey"
1053
+ },
1054
+ color: {
1055
+ type: String,
1056
+ default: "black"
1057
+ },
1058
+ arrowColor: {
1059
+ type: String,
1060
+ default: "#CBEE6B"
1061
+ },
1062
+ items: {
1063
+ type: Array,
1064
+ default: () => []
1065
+ },
1066
+ defaultItemByIndex: {
1067
+ type: Number,
1068
+ default: 0
1069
+ },
1070
+ defaultItemByProp: {
1071
+ type: Object,
1072
+ default: null,
1073
+ validator: (e) => ["propName", "value"].every((r) => r in e)
1074
+ },
1075
+ listBackgroundColor: {
1076
+ type: String,
1077
+ default: "white"
1078
+ },
1079
+ hoverBackgroundColor: {
1080
+ type: String,
1081
+ default: "#f1f1f1"
1082
+ },
1083
+ listMarginTop: {
1084
+ type: String,
1085
+ default: "0"
1086
+ },
1087
+ listContainerPadding: {
1088
+ type: String,
1089
+ default: "0"
1090
+ },
1091
+ listItemPadding: {
1092
+ type: String,
1093
+ default: "10px 12px"
1094
+ },
1095
+ listItemMargin: {
1096
+ type: String,
1097
+ default: "0"
1098
+ },
1099
+ listHeight: {
1100
+ type: String,
1101
+ default: "fit-content"
1102
+ },
1103
+ listItemSelectedColor: {
1104
+ type: String,
1105
+ default: "white"
1106
+ },
1107
+ listItemSelectedBackgroundColor: {
1108
+ type: String,
1109
+ default: "#399cfd"
1110
+ },
1111
+ listItemColor: {
1112
+ type: String,
1113
+ default: "black"
1114
+ },
1115
+ listBorderRadius: {
1116
+ type: String,
1117
+ default: "0"
1118
+ },
1119
+ listBorderColor: {
1120
+ type: String,
1121
+ default: ""
1122
+ },
1123
+ listBorderWidth: {
1124
+ type: Number,
1125
+ default: 1
1126
+ },
1127
+ listItemBorderRadius: {
1128
+ type: String,
1129
+ default: "0"
1130
+ },
1131
+ listAlignment: {
1132
+ type: String,
1133
+ default: "left"
1134
+ },
1135
+ isListSameWidth: {
1136
+ type: Boolean,
1137
+ default: !1
1138
+ },
1139
+ isMultipleOption: {
1140
+ type: Boolean,
1141
+ default: !1
1142
+ },
1143
+ footerBorderColor: {
1144
+ type: String,
1145
+ default: "#626970"
1146
+ },
1147
+ footerBorderWidth: {
1148
+ type: Number,
1149
+ default: 1
1150
+ },
1151
+ isFooterVisible: {
1152
+ type: Boolean,
1153
+ default: !1
1154
+ },
1155
+ isDisabled: {
1156
+ type: Boolean,
1157
+ default: !1
1158
+ },
1159
+ onlyFirstTime: {
1160
+ type: Boolean,
1161
+ default: !1
1162
+ }
1163
+ },
1164
+ emits: ["input", "click-ready", "update:modelValue"],
1165
+ setup(e, { emit: r }) {
1166
+ const t = e, o = z({}), s = z(null), i = z(t.isMultipleOption ? -1 : 0), n = z(!1);
1167
+ fe(
1168
+ () => t.items,
1169
+ (y, f) => {
1170
+ if (!t.modelValue && (!t.onlyFirstTime || !f || !f.length) && y && y.length) {
1171
+ if (t.defaultItemByProp) {
1172
+ const w = t.items.findIndex(
1173
+ (b) => b[t.defaultItemByProp.propName] === t.defaultItemByProp.value
1174
+ );
1175
+ w !== -1 ? (i.value = w, o.value = y[w]) : (i.value = 0, o.value = y[0]);
1176
+ } else
1177
+ o.value = y[t.defaultItemByIndex];
1178
+ r("input", o.value);
1179
+ }
1180
+ },
1181
+ { immediate: !0 }
1182
+ ), fe(
1183
+ () => t.modelValue,
1184
+ (y) => {
1185
+ if (y) {
1186
+ const f = t.items.findIndex((w) => typeof y == "object" ? JSON.stringify(w) === JSON.stringify(y) : w === y);
1187
+ f !== -1 && (i.value = f, o.value = t.items[f], r("update:modelValue", o.value));
1188
+ }
1189
+ },
1190
+ { immediate: !0 }
1191
+ );
1192
+ const a = M(() => ({
1193
+ height: t.height,
1194
+ width: t.width,
1195
+ backgroundColor: t.backgroundColor,
1196
+ borderRadius: `${t.borderRadius}px`,
1197
+ border: `${t.borderType} ${t.borderWidth}px ${t.borderColor}`,
1198
+ color: t.color,
1199
+ "--hover-background-color": t.hoverBackgroundColor,
1200
+ "--list-container-padding": t.listContainerPadding,
1201
+ "--list-item-padding": t.listItemPadding,
1202
+ "--list-item-margin": t.listItemMargin,
1203
+ "--list-background-color": t.listBackgroundColor,
1204
+ "--list-height": t.listHeight,
1205
+ "--list-item-border-radius": t.listItemBorderRadius,
1206
+ "--list-item-selected-color": t.listItemSelectedColor,
1207
+ "--list-item-selected-background-color": t.listItemSelectedBackgroundColor,
1208
+ "--list-item-color": t.listItemColor,
1209
+ "--list-border-radius": `${t.listBorderRadius}`,
1210
+ "--list-border-color": t.listBorderColor,
1211
+ "--list-width": t.isListSameWidth ? t.width : "fit-content",
1212
+ "--list-border-width": `${t.listBorderWidth}px`,
1213
+ "--list-margin-top": t.listMarginTop,
1214
+ "--list-left": t.listAlignment === "left" ? "0" : "auto",
1215
+ "--list-right": t.listAlignment === "right" ? "0" : "auto",
1216
+ "--footer-border": `${t.footerBorderWidth}px solid ${t.footerBorderColor}`,
1217
+ "--dropdown-opacity": t.isDisabled ? "0.5" : "1",
1218
+ "--dropdown-cursor": t.isDisabled ? "not-allowed" : "pointer",
1219
+ "--dropdown-font-size": t.fontSize ? t.fontSize : "14px"
1220
+ })), d = M(() => ({
1221
+ height: `${t.arrowHeight}px`,
1222
+ width: `${t.arrowWidth}px`
1223
+ }));
1224
+ function u() {
1225
+ t.isDisabled || (n.value = !n.value);
1226
+ }
1227
+ function c(y) {
1228
+ s.value && !s.value.contains(y.target) && (n.value = !1);
1229
+ }
1230
+ function h(y, f) {
1231
+ t.isMultipleOption ? i.value = -1 : (i.value = f, n.value = !1), o.value = y, r("input", o.value), r("update:modelValue", o.value);
1232
+ }
1233
+ function S() {
1234
+ n.value = !1, r("click-ready");
1235
+ }
1236
+ return ge(() => {
1237
+ document.addEventListener("click", c);
1238
+ }), St(() => {
1239
+ document.removeEventListener("click", c);
1240
+ }), (y, f) => (p(), g("div", {
1241
+ ref_key: "dropDown",
1242
+ ref: s,
1243
+ class: "gsc-dropdown",
1244
+ style: k(a.value)
1245
+ }, [
1246
+ m("div", {
1247
+ class: "gsc-dropdown__main-container",
1248
+ style: k({ "padding-right": `${e.arrowWidth + 8}px` }),
1249
+ onClick: u
1250
+ }, [
1251
+ m("div", Qr, [
1252
+ Z(y.$slots, "default", { selectedItem: o.value })
1253
+ ]),
1254
+ m("div", {
1255
+ class: E(["gsc-dropdown__main-container__icon", { "rotated-180": n.value }]),
1256
+ style: k(d.value)
1257
+ }, [
1258
+ (p(), g("svg", {
1259
+ height: e.arrowHeight,
1260
+ width: e.arrowWidth,
1261
+ viewBox: "0 0 24 24",
1262
+ fill: "none",
1263
+ xmlns: "http://www.w3.org/2000/svg"
1264
+ }, [
1265
+ m("path", {
1266
+ d: "M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",
1267
+ stroke: e.arrowColor
1268
+ }, null, 8, eo)
1269
+ ], 8, Yr))
1270
+ ], 6)
1271
+ ], 4),
1272
+ F(vt, null, {
1273
+ default: q(() => [
1274
+ Q(m("div", to, [
1275
+ m("div", null, [
1276
+ m("div", {
1277
+ class: "gsc-dropdown__items",
1278
+ style: k({ "margin-top": `${t.borderWidth}px` })
1279
+ }, [
1280
+ (p(!0), g(P, null, A(e.items, (w, b) => (p(), g("div", {
1281
+ class: E(["gsc-dropdown__items__item", { selected: b === i.value }]),
1282
+ key: b,
1283
+ onClick: (T) => h(w, b)
1284
+ }, [
1285
+ Z(y.$slots, "availableItem", { item: w })
1286
+ ], 10, ro))), 128))
1287
+ ], 4),
1288
+ e.isFooterVisible ? (p(), g("div", oo, [
1289
+ F(ye(Kr), {
1290
+ "text-value": "Listo",
1291
+ "border-color": "#cbee6b",
1292
+ "font-size": "12px",
1293
+ width: "72px",
1294
+ height: "22px",
1295
+ "border-radius": "62px",
1296
+ "border-width": 0.8,
1297
+ onClick: S
1298
+ })
1299
+ ])) : v("", !0)
1300
+ ])
1301
+ ], 512), [
1302
+ [re, n.value]
1303
+ ])
1304
+ ]),
1305
+ _: 3
1306
+ })
1307
+ ], 4));
1308
+ }
1309
+ }, io = (e, r) => {
1310
+ const t = e.__vccOpts || e;
1311
+ for (const [o, s] of r)
1312
+ t[o] = s;
1313
+ return t;
1314
+ }, no = { class: "tournament-select__selected-tournament" }, ao = { class: "tournament-select__selected-tournament__logo" }, lo = ["src"], co = { class: "tournament-select__selected-tournament__name" }, uo = "https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments", ho = {
1315
+ __name: "GSCTournamentSelect",
1316
+ props: {
1317
+ apiUrl: {
1318
+ type: String,
1319
+ default: "https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments"
1320
+ },
1321
+ fontFamily: {
1322
+ type: String,
1323
+ default: "Poppins-Light"
1324
+ },
1325
+ logosUrl: {
1326
+ type: String,
1327
+ default: "https://golstatsimages.blob.core.windows.net/todoelfut/"
1328
+ },
1329
+ logoFileType: {
1330
+ type: String,
1331
+ default: "png"
1332
+ },
1333
+ height: {
1334
+ type: String,
1335
+ default: "40px"
1336
+ },
1337
+ width: {
1338
+ type: String,
1339
+ default: "179px"
1340
+ },
1341
+ borderRadius: {
1342
+ type: Number,
1343
+ default: 8
1344
+ },
1345
+ arrowHeight: {
1346
+ type: Number,
1347
+ default: 24
1348
+ },
1349
+ arrowWidth: {
1350
+ type: Number,
1351
+ default: 24
1352
+ },
1353
+ borderType: {
1354
+ type: String,
1355
+ default: "solid",
1356
+ validator: function(e) {
1357
+ return ["solid", "dotted", "dashed"].includes(e);
1358
+ }
1359
+ },
1360
+ borderWidth: {
1361
+ type: Number,
1362
+ default: 1
1363
+ },
1364
+ borderColor: {
1365
+ type: String,
1366
+ default: "rgba(255, 255, 255, 0.2)"
1367
+ },
1368
+ backgroundColor: {
1369
+ type: String,
1370
+ default: "#0d1d29"
1371
+ },
1372
+ color: {
1373
+ type: String,
1374
+ default: "white"
1375
+ },
1376
+ arrowColor: {
1377
+ type: String,
1378
+ default: "#CBEE6B"
1379
+ },
1380
+ items: {
1381
+ type: Array,
1382
+ default: () => []
1383
+ },
1384
+ defaultItemByIndex: {
1385
+ type: Number,
1386
+ default: 0
1387
+ },
1388
+ defaultItemByProp: {
1389
+ type: Object,
1390
+ default: null,
1391
+ validator: (e) => ["propName", "value"].every((r) => r in e)
1392
+ },
1393
+ currentSeasonId: {
1394
+ type: Number,
1395
+ default: 0
1396
+ },
1397
+ tournamentsIdsToInclude: {
1398
+ type: Set,
1399
+ default: () => /* @__PURE__ */ new Set()
1400
+ }
1401
+ },
1402
+ emits: ["input", "change-tournaments"],
1403
+ setup(e, { emit: r }) {
1404
+ const t = e, o = z([]), s = M(() => {
1405
+ const y = {};
1406
+ return t.fontFamily && (y["font-family"] = `${t.fontFamily}`), y;
1407
+ }), i = M(() => t.tournamentsIdsToInclude.size ? d(o.value) : o.value), n = M(() => i.value.find((y) => y.seasonsIds.has(t.currentSeasonId)) || i.value[0]);
1408
+ async function a() {
1409
+ try {
1410
+ if (t.items && t.items.length)
1411
+ o.value = [...t.items];
1412
+ else {
1413
+ const y = await c();
1414
+ r("change-tournaments", y), o.value = y.map((f) => ({
1415
+ ...f.tournament,
1416
+ seasons: f.seasons,
1417
+ seasonsIds: f.seasons.reduce((w, b) => (w.add(b.id), w), /* @__PURE__ */ new Set())
1418
+ })).sort((f, w) => f.order - w.order);
1419
+ }
1420
+ } catch (y) {
1421
+ throw new Error(y);
1422
+ }
1423
+ }
1424
+ function d(y) {
1425
+ return y.filter((f) => t.tournamentsIdsToInclude.has(f.id));
1426
+ }
1427
+ function u(y) {
1428
+ const f = new XMLHttpRequest(), w = `${t.logosUrl}${y}.${t.logoFileType}`;
1429
+ return f.open("HEAD", w, !1), f.send(), f.status !== 404;
1430
+ }
1431
+ async function c() {
1432
+ try {
1433
+ return (await fetch(t.apiUrl || uo)).json();
1434
+ } catch (y) {
1435
+ return Promise.reject(y);
1436
+ }
1437
+ }
1438
+ function h(y) {
1439
+ r("input", y);
1440
+ }
1441
+ function S(y) {
1442
+ r("input", y);
1443
+ }
1444
+ return ge(() => {
1445
+ a();
1446
+ }), (y, f) => (p(), g("div", {
1447
+ class: "tournament-select",
1448
+ style: k(s.value)
1449
+ }, [
1450
+ F(ye(so), Gt(t, {
1451
+ "model-value": n.value,
1452
+ items: i.value,
1453
+ onInput: h,
1454
+ "onUpdate:modelValue": S
1455
+ }), {
1456
+ default: q(({ selectedItem: w }) => [
1457
+ m("div", no, [
1458
+ m("div", ao, [
1459
+ u(w.id) ? (p(), g("img", {
1460
+ key: 0,
1461
+ src: `${t.logosUrl}${w.id}.${t.logoFileType}`,
1462
+ alt: ""
1463
+ }, null, 8, lo)) : v("", !0)
1464
+ ]),
1465
+ m("div", co, I(w.name), 1)
1466
+ ])
1467
+ ]),
1468
+ availableItem: q(({ item: w }) => [
1469
+ m("div", null, I(w.name), 1)
1470
+ ]),
1471
+ _: 1
1472
+ }, 16, ["model-value", "items"])
1473
+ ], 4));
1474
+ }
1475
+ }, fo = /* @__PURE__ */ io(ho, [["__scopeId", "data-v-5c8e9511"]]), po = (e, r) => {
1476
+ const t = e.__vccOpts || e;
1477
+ for (const [o, s] of r)
1478
+ t[o] = s;
1479
+ return t;
1480
+ }, qe = {
1481
+ name: "ScrollableContainer",
1482
+ props: {
1483
+ backgroundColor: { type: String, default: "#0D1D29" },
1484
+ pxScroll: { type: Number, default: 100 },
1485
+ arrows: { type: Boolean, default: !0 },
1486
+ arrowsHideOnNoScroll: { type: Boolean, default: !1 },
1487
+ arrowsScrollHide: { type: Boolean, default: !1 },
1488
+ arrowsColor: { type: String, default: "#CBEE6B" },
1489
+ arrowsHeight: { type: Number, default: 15 },
1490
+ arrowsWidth: { type: Number, default: 15 },
1491
+ arrowsPadding: { type: Number, default: 5 },
1492
+ arrowsMargin: { type: Number, default: 10 },
1493
+ arrowsRadius: { type: String, default: "0%" },
1494
+ arrowsBorder: { type: String, default: "none" },
1495
+ arrowsBackground: { type: String, default: "#0D1D29" },
1496
+ arrowsContainerBgL: { type: String, default: "#0D1D29" },
1497
+ arrowsContainerBgR: { type: String, default: "#0D1D29" },
1498
+ scrollColor: { type: String, default: "#c3e569" },
1499
+ arrowsPosition: { type: String, default: "relative" },
1500
+ height: { type: String, default: "100%" }
1501
+ },
1502
+ data() {
1503
+ return {
1504
+ showLeftArrow: !1,
1505
+ showRightArrow: !0,
1506
+ intervalid1: ""
1507
+ };
1508
+ },
1509
+ mounted() {
1510
+ this.getScroll(), this.arrowsHideOnNoScroll && window.addEventListener("resize", this.resizeSlider), this.arrowsHideOnNoScroll && this.listenerLoad();
1511
+ },
1512
+ beforeUnmount() {
1513
+ this.arrowsHideOnNoScroll && window.removeEventListener("resize", this.resizeSlider), this.arrowsHideOnNoScroll && clearInterval(this.intervalid1);
1514
+ },
1515
+ computed: {
1516
+ getViewBox() {
1517
+ return `-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`;
1518
+ },
1519
+ hideShowLeftArrow() {
1520
+ let e = "";
1521
+ return this.arrowsPosition == "absolute" ? e = "leftAbsolute" : e = "leftRelative", this.arrowsScrollHide ? this.showLeftArrow ? e += " showArrowSlide" : e += " hideArrowSlide" : e += " showArrowSlide", e;
1522
+ },
1523
+ hideShowRightArrow() {
1524
+ let e = "";
1525
+ return this.arrowsPosition == "absolute" ? e = "rightAbsolute" : e = "rightRelative", this.arrowsScrollHide ? this.showRightArrow ? e += " showArrowSlide" : e += " hideArrowSlide" : e += " showArrowSlide", e;
1526
+ }
1527
+ },
1528
+ methods: {
1529
+ scrollLeft() {
1530
+ this.$refs.content.scrollLeft -= this.pxScroll;
1531
+ },
1532
+ scrollRight() {
1533
+ this.$refs.content.scrollLeft += this.pxScroll;
1534
+ },
1535
+ getScroll() {
1536
+ let e = 0;
1537
+ this.arrowsPosition == "relative" ? e = this.$refs.content.scrollWidth - this.$el.clientWidth + this.arrowsMargin * 2 + this.arrowsWidth * 4 : e = this.$refs.content.scrollWidth - this.$el.clientWidth, this.$refs.content.scrollLeft == 0 ? this.showLeftArrow = !1 : this.showLeftArrow = !0, e > 0 && (this.$refs.content.scrollLeft == e ? this.showRightArrow = !1 : this.showRightArrow = !0), this.arrowsHideOnNoScroll && this.$refs.content.clientWidth === this.$refs.content.scrollWidth && (this.showRightArrow = !1);
1538
+ },
1539
+ resizeSlider() {
1540
+ this.getScroll();
1541
+ let e;
1542
+ clearTimeout(e), e = setTimeout(this.getScroll, 1e3);
1543
+ },
1544
+ listenerLoad() {
1545
+ this.intervalid1 = setInterval((function() {
1546
+ var e = this.$el.clientWidth, r = this.$refs.content.scrollWidth;
1547
+ r > 0 && e > 0 && (r > e ? (this.showRightArrow = !0, clearInterval(this.intervalid1)) : clearInterval(this.intervalid1));
1548
+ }).bind(this), 3e3);
1549
+ }
1550
+ }
1551
+ }, st = () => {
1552
+ se((e) => ({
1553
+ "26acffa8": e.backgroundColor,
1554
+ "3d95bef4": e.height,
1555
+ "86ba1cc0": e.arrowsPosition,
1556
+ "140b6ada": e.arrowsPadding + "px",
1557
+ "7df46be5": e.arrowsBackground,
1558
+ "33f99798": e.arrowsHeight * 2 + "px",
1559
+ "1c8a858d": e.arrowsWidth * 2 + "px",
1560
+ "4a7876c9": e.arrowsRadius,
1561
+ "2ff67e63": e.arrowsBorder,
1562
+ "59c5dd08": e.arrowsMargin + "px",
1563
+ "6658215d": e.arrowsContainerBgL,
1564
+ 66582163: e.arrowsContainerBgR,
1565
+ e5900a2e: e.scrollColor
1566
+ }));
1567
+ }, it = qe.setup;
1568
+ qe.setup = it ? (e, r) => (st(), it(e, r)) : st;
1569
+ const mo = {
1570
+ ref: "gscScrollableContainer",
1571
+ class: "scrollable-container"
1572
+ }, go = { class: "scrollable-arrows" }, yo = ["width", "height", "viewBox"], wo = ["stroke"], bo = { class: "scrollable-wrapper" }, So = { class: "scrollable-arrows" }, vo = ["width", "height", "viewBox"], Co = ["stroke"];
1573
+ function _o(e, r, t, o, s, i) {
1574
+ return p(), g("div", mo, [
1575
+ t.arrows ? (p(), g("div", {
1576
+ key: 0,
1577
+ class: E(["arrows-container", i.hideShowLeftArrow]),
1578
+ onClick: r[0] || (r[0] = (...n) => i.scrollLeft && i.scrollLeft(...n))
1579
+ }, [
1580
+ m("div", go, [
1581
+ (p(), g("svg", {
1582
+ width: t.arrowsWidth,
1583
+ height: t.arrowsHeight,
1584
+ viewBox: i.getViewBox,
1585
+ fill: "none",
1586
+ xmlns: "http://www.w3.org/2000/svg"
1587
+ }, [
1588
+ m("path", {
1589
+ d: "M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",
1590
+ stroke: t.arrowsColor
1591
+ }, null, 8, wo)
1592
+ ], 8, yo))
1593
+ ])
1594
+ ], 2)) : v("", !0),
1595
+ m("div", {
1596
+ class: "scrollable-content scrollable-content-slider",
1597
+ ref: "content",
1598
+ onScroll: r[1] || (r[1] = (...n) => i.getScroll && i.getScroll(...n))
1599
+ }, [
1600
+ m("div", bo, [
1601
+ Z(e.$slots, "default", {}, void 0, !0)
1602
+ ])
1603
+ ], 544),
1604
+ t.arrows ? (p(), g("div", {
1605
+ key: 1,
1606
+ id: "arrows-container-right",
1607
+ class: E(["arrows-container", i.hideShowRightArrow]),
1608
+ onClick: r[2] || (r[2] = (...n) => i.scrollRight && i.scrollRight(...n))
1609
+ }, [
1610
+ m("div", So, [
1611
+ (p(), g("svg", {
1612
+ width: t.arrowsWidth,
1613
+ height: t.arrowsHeight,
1614
+ viewBox: i.getViewBox,
1615
+ fill: "none",
1616
+ xmlns: "http://www.w3.org/2000/svg"
1617
+ }, [
1618
+ m("path", {
1619
+ d: "M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",
1620
+ stroke: t.arrowsColor
1621
+ }, null, 8, Co)
1622
+ ], 8, vo))
1623
+ ])
1624
+ ], 2)) : v("", !0)
1625
+ ], 512);
1626
+ }
1627
+ const we = /* @__PURE__ */ po(qe, [["render", _o], ["__scopeId", "data-v-7d0811ac"]]), ko = {
1628
+ key: 0,
1629
+ class: "card-container"
1630
+ }, je = {
1631
+ __name: "GSC-DataCard",
1632
+ props: {
1633
+ data: {
1634
+ type: Object,
1635
+ required: !0
1636
+ },
1637
+ height: {
1638
+ type: String,
1639
+ default: "445px"
1640
+ },
1641
+ width: {
1642
+ type: String,
1643
+ default: "319px"
1644
+ },
1645
+ userId: {
1646
+ type: Number,
1647
+ default: 0
1648
+ }
1649
+ },
1650
+ setup(e) {
1651
+ const r = {
1652
+ CardGeneral: x(() => import("./CardGeneral-DyOdaEFZ-DVY9vI50.js")),
1653
+ CardGeneralIndividual: x(() => import("./CardGeneralIndividual-DaONNIwT-WoYrg7O0.js")),
1654
+ CardGeneralTeams: x(() => import("./CardGeneralTeams-CCfSIg5--ycGF0WJl.js")),
1655
+ CardIndividual: x(() => import("./CardIndividual-B5YHR_4X-DC-zfHLx.js")),
1656
+ CardIndividualDistance: x(() => import("./CardIndividualDistance-jUf26hS9-BTaa0gSa.js")),
1657
+ CardIndividualAreas: x(() => import("./CardIndividualAreas-D9mHXjfS-DrA6YV1T.js")),
1658
+ CardIndividualGoalParticipation: x(() => import("./CardIndividualGoalParticipation-CGVwsTkf-BsIXMNqX.js")),
1659
+ CardIndividualGoals: x(() => import("./CardIndividualGoals-CjrXz7Zv-Cg_lAqNg.js")),
1660
+ CardIndividualShotsOnGoal: x(() => import("./CardIndividualShotsOnGoal-B6fysQZQ-2WTo5bAB.js")),
1661
+ CardIndividualFouls: x(() => import("./CardIndividualFouls-DF0AvPys-C61mrpb7.js")),
1662
+ CardIndividualCenters: x(() => import("./CardIndividualCenters-DeGyy9wB-BftpRpCL.js")),
1663
+ CardIndividualSaves: x(() => import("./CardIndividualSaves-BTCuv2ld-BJ7OrOnW.js")),
1664
+ CardIndividual1vs1: x(() => import("./CardIndividual1vs1-DEBY4dbB-V3PJhhY7.js")),
1665
+ CardIndividualStatistics: x(() => import("./CardIndividualStatistics-B7vL_L1s-BYMwjEJD.js")),
1666
+ CardIndividualPerformance: x(() => import("./CardIndividualPerformance-kbuWBDcK-CWDHQrku.js")),
1667
+ CardIndividualGold: x(() => import("./CardIndividualGold-Cp8DsHVJ-nOXX6qdb.js")),
1668
+ CardPromTournament: x(() => import("./CardPromTournament-DMe6axFO-DWI8msi-.js")),
1669
+ CardIndividualNoGoalReceived: x(() => import("./CardIndividualNoGoalReceived-BNjVlC0Z-BtnbjfPl.js")),
1670
+ CardTheMostProductive: x(() => import("./CardTheMostProductive-CDDFIo-I-LQ50NbB5.js")),
1671
+ CardSuccessfulPasses: x(() => import("./CardSuccessfulPasses-ByzEm7s3-DmSHr8yg.js"))
1672
+ }, t = [
1673
+ {
1674
+ componentName: "CardGeneral",
1675
+ ids: [
1676
+ "1-g",
1677
+ "2-g",
1678
+ "3-g",
1679
+ "5-g",
1680
+ "8-g",
1681
+ "10-g",
1682
+ "17-g",
1683
+ "18-g",
1684
+ "21-g",
1685
+ "22-g",
1686
+ "23-g",
1687
+ "24-g",
1688
+ "25-g",
1689
+ "26-g"
1690
+ ]
1691
+ },
1692
+ {
1693
+ componentName: "CardGeneralIndividual",
1694
+ ids: [
1695
+ "4-g",
1696
+ "6-g",
1697
+ "7-g",
1698
+ "11-g",
1699
+ "15-g",
1700
+ "16-g",
1701
+ "19-g",
1702
+ "20-g"
1703
+ ]
1704
+ },
1705
+ {
1706
+ componentName: "CardGeneralTeams",
1707
+ ids: [
1708
+ "9-g",
1709
+ "12-g",
1710
+ "13-g",
1711
+ "14-g"
1712
+ ]
1713
+ },
1714
+ {
1715
+ componentName: "CardIndividual",
1716
+ ids: [
1717
+ "4-i",
1718
+ "5-i",
1719
+ "6-i",
1720
+ "1-e",
1721
+ "2-e",
1722
+ "3-e"
1723
+ ]
1724
+ },
1725
+ {
1726
+ componentName: "CardIndividualDistance",
1727
+ ids: [
1728
+ "77-i",
1729
+ "78-i",
1730
+ "36-e"
1731
+ ]
1732
+ },
1733
+ {
1734
+ componentName: "CardIndividualAreas",
1735
+ ids: [
1736
+ "71-i",
1737
+ "72-i",
1738
+ "73-i",
1739
+ "74-i",
1740
+ "75-i",
1741
+ "76-i",
1742
+ "34-e",
1743
+ "35-e"
1744
+ ]
1745
+ },
1746
+ {
1747
+ componentName: "CardIndividualGoalParticipation",
1748
+ ids: [
1749
+ "22-i",
1750
+ "23-i",
1751
+ "8-e"
1752
+ ]
1753
+ },
1754
+ {
1755
+ componentName: "CardIndividualGoals",
1756
+ ids: [
1757
+ "24-i",
1758
+ "25-i",
1759
+ "26-i",
1760
+ "27-i",
1761
+ "9-e"
1762
+ ]
1763
+ },
1764
+ {
1765
+ componentName: "CardIndividualShotsOnGoal",
1766
+ ids: [
1767
+ "28-i",
1768
+ "29-i",
1769
+ "30-i",
1770
+ "31-i",
1771
+ "32-i",
1772
+ "33-i",
1773
+ "34-i",
1774
+ "10-e",
1775
+ "11-e",
1776
+ "12-e"
1777
+ ]
1778
+ },
1779
+ {
1780
+ componentName: "CardIndividualFouls",
1781
+ ids: [
1782
+ "48-i",
1783
+ "49-i",
1784
+ "50-i",
1785
+ "51-i",
1786
+ "52-i",
1787
+ "53-i",
1788
+ "54-i",
1789
+ "55-i",
1790
+ "56-i",
1791
+ "20-e",
1792
+ "21-e",
1793
+ "22-e"
1794
+ ]
1795
+ },
1796
+ {
1797
+ componentName: "CardIndividualCenters",
1798
+ ids: [
1799
+ "35-i",
1800
+ "36-i",
1801
+ "37-i",
1802
+ "38-i",
1803
+ "39-i",
1804
+ "40-i",
1805
+ "41-i",
1806
+ "42-i",
1807
+ "43-i",
1808
+ "44-i",
1809
+ "45-i",
1810
+ "46-i",
1811
+ "47-i",
1812
+ "13-e",
1813
+ "14-e",
1814
+ "15-e",
1815
+ "16-e",
1816
+ "17-e",
1817
+ "18-e",
1818
+ "19-e"
1819
+ ]
1820
+ },
1821
+ {
1822
+ componentName: "CardIndividualSaves",
1823
+ ids: [
1824
+ "57-i",
1825
+ "58-i",
1826
+ "59-i",
1827
+ "60-i",
1828
+ "61-i",
1829
+ "62-i",
1830
+ "23-e",
1831
+ "24-e",
1832
+ "25-e",
1833
+ "26-e",
1834
+ "27-e"
1835
+ ]
1836
+ },
1837
+ {
1838
+ componentName: "CardIndividual1vs1",
1839
+ ids: [
1840
+ "19-i",
1841
+ "20-i",
1842
+ "21-i",
1843
+ "68-i",
1844
+ "69-i",
1845
+ "70-i",
1846
+ "7-e",
1847
+ "33-e"
1848
+ ]
1849
+ },
1850
+ {
1851
+ componentName: "CardIndividualStatistics",
1852
+ ids: [
1853
+ "81-i",
1854
+ "84-i",
1855
+ "87-i",
1856
+ "90-i",
1857
+ "93-i",
1858
+ "96-i",
1859
+ "99-i",
1860
+ "102-i",
1861
+ "105-i",
1862
+ "108-i",
1863
+ "111-i",
1864
+ "114-i",
1865
+ "117-i",
1866
+ "120-i",
1867
+ "123-i",
1868
+ "126-i",
1869
+ "129-i",
1870
+ "132-i",
1871
+ "135-i",
1872
+ "138-i",
1873
+ "141-i",
1874
+ "144-i",
1875
+ "147-i",
1876
+ "150-i",
1877
+ "153-i",
1878
+ "156-i",
1879
+ "159-i",
1880
+ "162-i",
1881
+ "165-i",
1882
+ "168-i",
1883
+ "171-i",
1884
+ "174-i",
1885
+ "176-i"
1886
+ ]
1887
+ },
1888
+ {
1889
+ componentName: "CardIndividualPerformance",
1890
+ ids: [
1891
+ "82-i",
1892
+ "88-i",
1893
+ "94-i",
1894
+ "100-i",
1895
+ "106-i",
1896
+ "112-i",
1897
+ "118-i",
1898
+ "124-i",
1899
+ "130-i",
1900
+ "136-i",
1901
+ "142-i",
1902
+ "148-i",
1903
+ "154-i",
1904
+ "160-i",
1905
+ "166-i",
1906
+ "172-i",
1907
+ "177-i",
1908
+ "182-i"
1909
+ ]
1910
+ },
1911
+ {
1912
+ componentName: "CardIndividualGold",
1913
+ ids: [
1914
+ "83-i",
1915
+ "85-i",
1916
+ "89-i",
1917
+ "91-i",
1918
+ "95-i",
1919
+ "97-i",
1920
+ "101-i",
1921
+ "103-i",
1922
+ "107-i",
1923
+ "109-i",
1924
+ "113-i",
1925
+ "115-i",
1926
+ "119-i",
1927
+ "121-i",
1928
+ "125-i",
1929
+ "127-i",
1930
+ "131-i",
1931
+ "133-i",
1932
+ "137-i",
1933
+ "139-i",
1934
+ "143-i",
1935
+ "145-i",
1936
+ "149-i",
1937
+ "151-i",
1938
+ "155-i",
1939
+ "157-i",
1940
+ "161-i",
1941
+ "163-i",
1942
+ "167-i",
1943
+ "169-i",
1944
+ "173-i",
1945
+ "178-i"
1946
+ ]
1947
+ },
1948
+ {
1949
+ componentName: "CardPromTournament",
1950
+ ids: [
1951
+ "86-i",
1952
+ "92-i",
1953
+ "98-i",
1954
+ "104-i",
1955
+ "110-i",
1956
+ "116-i",
1957
+ "122-i",
1958
+ "128-i",
1959
+ "134-i",
1960
+ "140-i",
1961
+ "146-i",
1962
+ "152-i",
1963
+ "158-i",
1964
+ "164-i",
1965
+ "170-i",
1966
+ "175-i"
1967
+ ]
1968
+ },
1969
+ {
1970
+ componentName: "CardIndividualNoGoalReceived",
1971
+ ids: [
1972
+ "63-i",
1973
+ "64-i",
1974
+ "65-i",
1975
+ "66-i",
1976
+ "67-i"
1977
+ ]
1978
+ },
1979
+ {
1980
+ componentName: "CardTheMostProductive",
1981
+ ids: [
1982
+ "79-i",
1983
+ "80-i",
1984
+ "37-e"
1985
+ ]
1986
+ },
1987
+ {
1988
+ componentName: "CardSuccessfulPasses",
1989
+ ids: [
1990
+ "10-i",
1991
+ "11-i",
1992
+ "12-i",
1993
+ "13-i",
1994
+ "14-i",
1995
+ "15-i",
1996
+ "16-i",
1997
+ "17-i",
1998
+ "18-i",
1999
+ "4-e",
2000
+ "5-e",
2001
+ "6-e"
2002
+ ]
2003
+ }
2004
+ ].reduce((a, { componentName: d, ids: u }) => (u.forEach((c) => {
2005
+ a.set(c, d);
2006
+ }), a), /* @__PURE__ */ new Map()), o = e, s = M(() => t.get(o.data.id)), i = M(() => r[s.value]), n = M(() => {
2007
+ const a = o.data.id.includes("-e"), d = o.data.id.includes("-g");
2008
+ return a || d ? o.data.is_finished ? 5 : 6 : o.data.player_id === o.userId ? o.data.is_finished ? 1 : 2 : o.data.is_finished ? 3 : 4;
2009
+ });
2010
+ return (a, d) => i.value ? (p(), g("div", ko, [
2011
+ (p(), W(Vt(i.value), {
2012
+ data: e.data,
2013
+ height: e.height,
2014
+ width: e.width,
2015
+ "description-type": n.value
2016
+ }, null, 8, ["data", "height", "width", "description-type"]))
2017
+ ])) : v("", !0);
2018
+ }
2019
+ };
2020
+ function Ct(e, r) {
2021
+ return function() {
2022
+ return e.apply(r, arguments);
2023
+ };
2024
+ }
2025
+ const { toString: To } = Object.prototype, { getPrototypeOf: Ue } = Object, be = /* @__PURE__ */ ((e) => (r) => {
2026
+ const t = To.call(r);
2027
+ return e[t] || (e[t] = t.slice(8, -1).toLowerCase());
2028
+ })(/* @__PURE__ */ Object.create(null)), j = (e) => (e = e.toLowerCase(), (r) => be(r) === e), Se = (e) => (r) => typeof r === e, { isArray: Y } = Array, oe = Se("undefined");
2029
+ function Io(e) {
2030
+ return e !== null && !oe(e) && e.constructor !== null && !oe(e.constructor) && L(e.constructor.isBuffer) && e.constructor.isBuffer(e);
2031
+ }
2032
+ const _t = j("ArrayBuffer");
2033
+ function xo(e) {
2034
+ let r;
2035
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? r = ArrayBuffer.isView(e) : r = e && e.buffer && _t(e.buffer), r;
2036
+ }
2037
+ const Oo = Se("string"), L = Se("function"), kt = Se("number"), ve = (e) => e !== null && typeof e == "object", Po = (e) => e === !0 || e === !1, ce = (e) => {
2038
+ if (be(e) !== "object")
2039
+ return !1;
2040
+ const r = Ue(e);
2041
+ return (r === null || r === Object.prototype || Object.getPrototypeOf(r) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
2042
+ }, Ao = j("Date"), Ro = j("File"), Eo = j("Blob"), Bo = j("FileList"), No = (e) => ve(e) && L(e.pipe), Do = (e) => {
2043
+ let r;
2044
+ return e && (typeof FormData == "function" && e instanceof FormData || L(e.append) && ((r = be(e)) === "formdata" || // detect form-data instance
2045
+ r === "object" && L(e.toString) && e.toString() === "[object FormData]"));
2046
+ }, $o = j("URLSearchParams"), [Lo, zo, Fo, Wo] = ["ReadableStream", "Request", "Response", "Headers"].map(j), Mo = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
2047
+ function ae(e, r, { allOwnKeys: t = !1 } = {}) {
2048
+ if (e === null || typeof e > "u")
2049
+ return;
2050
+ let o, s;
2051
+ if (typeof e != "object" && (e = [e]), Y(e))
2052
+ for (o = 0, s = e.length; o < s; o++)
2053
+ r.call(null, e[o], o, e);
2054
+ else {
2055
+ const i = t ? Object.getOwnPropertyNames(e) : Object.keys(e), n = i.length;
2056
+ let a;
2057
+ for (o = 0; o < n; o++)
2058
+ a = i[o], r.call(null, e[a], a, e);
2059
+ }
2060
+ }
2061
+ function Tt(e, r) {
2062
+ r = r.toLowerCase();
2063
+ const t = Object.keys(e);
2064
+ let o = t.length, s;
2065
+ for (; o-- > 0; )
2066
+ if (s = t[o], r === s.toLowerCase())
2067
+ return s;
2068
+ return null;
2069
+ }
2070
+ const V = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, It = (e) => !oe(e) && e !== V;
2071
+ function Ee() {
2072
+ const { caseless: e } = It(this) && this || {}, r = {}, t = (o, s) => {
2073
+ const i = e && Tt(r, s) || s;
2074
+ ce(r[i]) && ce(o) ? r[i] = Ee(r[i], o) : ce(o) ? r[i] = Ee({}, o) : Y(o) ? r[i] = o.slice() : r[i] = o;
2075
+ };
2076
+ for (let o = 0, s = arguments.length; o < s; o++)
2077
+ arguments[o] && ae(arguments[o], t);
2078
+ return r;
2079
+ }
2080
+ const qo = (e, r, t, { allOwnKeys: o } = {}) => (ae(r, (s, i) => {
2081
+ t && L(s) ? e[i] = Ct(s, t) : e[i] = s;
2082
+ }, { allOwnKeys: o }), e), jo = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Uo = (e, r, t, o) => {
2083
+ e.prototype = Object.create(r.prototype, o), e.prototype.constructor = e, Object.defineProperty(e, "super", {
2084
+ value: r.prototype
2085
+ }), t && Object.assign(e.prototype, t);
2086
+ }, Ho = (e, r, t, o) => {
2087
+ let s, i, n;
2088
+ const a = {};
2089
+ if (r = r || {}, e == null) return r;
2090
+ do {
2091
+ for (s = Object.getOwnPropertyNames(e), i = s.length; i-- > 0; )
2092
+ n = s[i], (!o || o(n, e, r)) && !a[n] && (r[n] = e[n], a[n] = !0);
2093
+ e = t !== !1 && Ue(e);
2094
+ } while (e && (!t || t(e, r)) && e !== Object.prototype);
2095
+ return r;
2096
+ }, Jo = (e, r, t) => {
2097
+ e = String(e), (t === void 0 || t > e.length) && (t = e.length), t -= r.length;
2098
+ const o = e.indexOf(r, t);
2099
+ return o !== -1 && o === t;
2100
+ }, Go = (e) => {
2101
+ if (!e) return null;
2102
+ if (Y(e)) return e;
2103
+ let r = e.length;
2104
+ if (!kt(r)) return null;
2105
+ const t = new Array(r);
2106
+ for (; r-- > 0; )
2107
+ t[r] = e[r];
2108
+ return t;
2109
+ }, Vo = /* @__PURE__ */ ((e) => (r) => e && r instanceof e)(typeof Uint8Array < "u" && Ue(Uint8Array)), Xo = (e, r) => {
2110
+ const o = (e && e[Symbol.iterator]).call(e);
2111
+ let s;
2112
+ for (; (s = o.next()) && !s.done; ) {
2113
+ const i = s.value;
2114
+ r.call(e, i[0], i[1]);
2115
+ }
2116
+ }, Zo = (e, r) => {
2117
+ let t;
2118
+ const o = [];
2119
+ for (; (t = e.exec(r)) !== null; )
2120
+ o.push(t);
2121
+ return o;
2122
+ }, Ko = j("HTMLFormElement"), Qo = (e) => e.toLowerCase().replace(
2123
+ /[-_\s]([a-z\d])(\w*)/g,
2124
+ function(t, o, s) {
2125
+ return o.toUpperCase() + s;
2126
+ }
2127
+ ), nt = (({ hasOwnProperty: e }) => (r, t) => e.call(r, t))(Object.prototype), Yo = j("RegExp"), xt = (e, r) => {
2128
+ const t = Object.getOwnPropertyDescriptors(e), o = {};
2129
+ ae(t, (s, i) => {
2130
+ let n;
2131
+ (n = r(s, i, e)) !== !1 && (o[i] = n || s);
2132
+ }), Object.defineProperties(e, o);
2133
+ }, es = (e) => {
2134
+ xt(e, (r, t) => {
2135
+ if (L(e) && ["arguments", "caller", "callee"].indexOf(t) !== -1)
2136
+ return !1;
2137
+ const o = e[t];
2138
+ if (L(o)) {
2139
+ if (r.enumerable = !1, "writable" in r) {
2140
+ r.writable = !1;
2141
+ return;
2142
+ }
2143
+ r.set || (r.set = () => {
2144
+ throw Error("Can not rewrite read-only method '" + t + "'");
2145
+ });
2146
+ }
2147
+ });
2148
+ }, ts = (e, r) => {
2149
+ const t = {}, o = (s) => {
2150
+ s.forEach((i) => {
2151
+ t[i] = !0;
2152
+ });
2153
+ };
2154
+ return Y(e) ? o(e) : o(String(e).split(r)), t;
2155
+ }, rs = () => {
2156
+ }, os = (e, r) => e != null && Number.isFinite(e = +e) ? e : r, Oe = "abcdefghijklmnopqrstuvwxyz", at = "0123456789", Ot = {
2157
+ DIGIT: at,
2158
+ ALPHA: Oe,
2159
+ ALPHA_DIGIT: Oe + Oe.toUpperCase() + at
2160
+ }, ss = (e = 16, r = Ot.ALPHA_DIGIT) => {
2161
+ let t = "";
2162
+ const { length: o } = r;
2163
+ for (; e--; )
2164
+ t += r[Math.random() * o | 0];
2165
+ return t;
2166
+ };
2167
+ function is(e) {
2168
+ return !!(e && L(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
2169
+ }
2170
+ const ns = (e) => {
2171
+ const r = new Array(10), t = (o, s) => {
2172
+ if (ve(o)) {
2173
+ if (r.indexOf(o) >= 0)
2174
+ return;
2175
+ if (!("toJSON" in o)) {
2176
+ r[s] = o;
2177
+ const i = Y(o) ? [] : {};
2178
+ return ae(o, (n, a) => {
2179
+ const d = t(n, s + 1);
2180
+ !oe(d) && (i[a] = d);
2181
+ }), r[s] = void 0, i;
2182
+ }
2183
+ }
2184
+ return o;
2185
+ };
2186
+ return t(e, 0);
2187
+ }, as = j("AsyncFunction"), ls = (e) => e && (ve(e) || L(e)) && L(e.then) && L(e.catch), Pt = ((e, r) => e ? setImmediate : r ? ((t, o) => (V.addEventListener("message", ({ source: s, data: i }) => {
2188
+ s === V && i === t && o.length && o.shift()();
2189
+ }, !1), (s) => {
2190
+ o.push(s), V.postMessage(t, "*");
2191
+ }))(`axios@${Math.random()}`, []) : (t) => setTimeout(t))(
2192
+ typeof setImmediate == "function",
2193
+ L(V.postMessage)
2194
+ ), ds = typeof queueMicrotask < "u" ? queueMicrotask.bind(V) : typeof process < "u" && process.nextTick || Pt, l = {
2195
+ isArray: Y,
2196
+ isArrayBuffer: _t,
2197
+ isBuffer: Io,
2198
+ isFormData: Do,
2199
+ isArrayBufferView: xo,
2200
+ isString: Oo,
2201
+ isNumber: kt,
2202
+ isBoolean: Po,
2203
+ isObject: ve,
2204
+ isPlainObject: ce,
2205
+ isReadableStream: Lo,
2206
+ isRequest: zo,
2207
+ isResponse: Fo,
2208
+ isHeaders: Wo,
2209
+ isUndefined: oe,
2210
+ isDate: Ao,
2211
+ isFile: Ro,
2212
+ isBlob: Eo,
2213
+ isRegExp: Yo,
2214
+ isFunction: L,
2215
+ isStream: No,
2216
+ isURLSearchParams: $o,
2217
+ isTypedArray: Vo,
2218
+ isFileList: Bo,
2219
+ forEach: ae,
2220
+ merge: Ee,
2221
+ extend: qo,
2222
+ trim: Mo,
2223
+ stripBOM: jo,
2224
+ inherits: Uo,
2225
+ toFlatObject: Ho,
2226
+ kindOf: be,
2227
+ kindOfTest: j,
2228
+ endsWith: Jo,
2229
+ toArray: Go,
2230
+ forEachEntry: Xo,
2231
+ matchAll: Zo,
2232
+ isHTMLForm: Ko,
2233
+ hasOwnProperty: nt,
2234
+ hasOwnProp: nt,
2235
+ // an alias to avoid ESLint no-prototype-builtins detection
2236
+ reduceDescriptors: xt,
2237
+ freezeMethods: es,
2238
+ toObjectSet: ts,
2239
+ toCamelCase: Qo,
2240
+ noop: rs,
2241
+ toFiniteNumber: os,
2242
+ findKey: Tt,
2243
+ global: V,
2244
+ isContextDefined: It,
2245
+ ALPHABET: Ot,
2246
+ generateString: ss,
2247
+ isSpecCompliantForm: is,
2248
+ toJSONObject: ns,
2249
+ isAsyncFn: as,
2250
+ isThenable: ls,
2251
+ setImmediate: Pt,
2252
+ asap: ds
2253
+ };
2254
+ function C(e, r, t, o, s) {
2255
+ Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", r && (this.code = r), t && (this.config = t), o && (this.request = o), s && (this.response = s, this.status = s.status ? s.status : null);
2256
+ }
2257
+ l.inherits(C, Error, {
2258
+ toJSON: function() {
2259
+ return {
2260
+ // Standard
2261
+ message: this.message,
2262
+ name: this.name,
2263
+ // Microsoft
2264
+ description: this.description,
2265
+ number: this.number,
2266
+ // Mozilla
2267
+ fileName: this.fileName,
2268
+ lineNumber: this.lineNumber,
2269
+ columnNumber: this.columnNumber,
2270
+ stack: this.stack,
2271
+ // Axios
2272
+ config: l.toJSONObject(this.config),
2273
+ code: this.code,
2274
+ status: this.status
2275
+ };
2276
+ }
2277
+ });
2278
+ const At = C.prototype, Rt = {};
2279
+ [
2280
+ "ERR_BAD_OPTION_VALUE",
2281
+ "ERR_BAD_OPTION",
2282
+ "ECONNABORTED",
2283
+ "ETIMEDOUT",
2284
+ "ERR_NETWORK",
2285
+ "ERR_FR_TOO_MANY_REDIRECTS",
2286
+ "ERR_DEPRECATED",
2287
+ "ERR_BAD_RESPONSE",
2288
+ "ERR_BAD_REQUEST",
2289
+ "ERR_CANCELED",
2290
+ "ERR_NOT_SUPPORT",
2291
+ "ERR_INVALID_URL"
2292
+ // eslint-disable-next-line func-names
2293
+ ].forEach((e) => {
2294
+ Rt[e] = { value: e };
2295
+ });
2296
+ Object.defineProperties(C, Rt);
2297
+ Object.defineProperty(At, "isAxiosError", { value: !0 });
2298
+ C.from = (e, r, t, o, s, i) => {
2299
+ const n = Object.create(At);
2300
+ return l.toFlatObject(e, n, function(d) {
2301
+ return d !== Error.prototype;
2302
+ }, (a) => a !== "isAxiosError"), C.call(n, e.message, r, t, o, s), n.cause = e, n.name = e.name, i && Object.assign(n, i), n;
2303
+ };
2304
+ const cs = null;
2305
+ function Be(e) {
2306
+ return l.isPlainObject(e) || l.isArray(e);
2307
+ }
2308
+ function Et(e) {
2309
+ return l.endsWith(e, "[]") ? e.slice(0, -2) : e;
2310
+ }
2311
+ function lt(e, r, t) {
2312
+ return e ? e.concat(r).map(function(s, i) {
2313
+ return s = Et(s), !t && i ? "[" + s + "]" : s;
2314
+ }).join(t ? "." : "") : r;
2315
+ }
2316
+ function us(e) {
2317
+ return l.isArray(e) && !e.some(Be);
2318
+ }
2319
+ const hs = l.toFlatObject(l, {}, null, function(r) {
2320
+ return /^is[A-Z]/.test(r);
2321
+ });
2322
+ function Ce(e, r, t) {
2323
+ if (!l.isObject(e))
2324
+ throw new TypeError("target must be an object");
2325
+ r = r || new FormData(), t = l.toFlatObject(t, {
2326
+ metaTokens: !0,
2327
+ dots: !1,
2328
+ indexes: !1
2329
+ }, !1, function(w, b) {
2330
+ return !l.isUndefined(b[w]);
2331
+ });
2332
+ const o = t.metaTokens, s = t.visitor || c, i = t.dots, n = t.indexes, d = (t.Blob || typeof Blob < "u" && Blob) && l.isSpecCompliantForm(r);
2333
+ if (!l.isFunction(s))
2334
+ throw new TypeError("visitor must be a function");
2335
+ function u(f) {
2336
+ if (f === null) return "";
2337
+ if (l.isDate(f))
2338
+ return f.toISOString();
2339
+ if (!d && l.isBlob(f))
2340
+ throw new C("Blob is not supported. Use a Buffer instead.");
2341
+ return l.isArrayBuffer(f) || l.isTypedArray(f) ? d && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
2342
+ }
2343
+ function c(f, w, b) {
2344
+ let T = f;
2345
+ if (f && !b && typeof f == "object") {
2346
+ if (l.endsWith(w, "{}"))
2347
+ w = o ? w : w.slice(0, -2), f = JSON.stringify(f);
2348
+ else if (l.isArray(f) && us(f) || (l.isFileList(f) || l.endsWith(w, "[]")) && (T = l.toArray(f)))
2349
+ return w = Et(w), T.forEach(function(R, H) {
2350
+ !(l.isUndefined(R) || R === null) && r.append(
2351
+ // eslint-disable-next-line no-nested-ternary
2352
+ n === !0 ? lt([w], H, i) : n === null ? w : w + "[]",
2353
+ u(R)
2354
+ );
2355
+ }), !1;
2356
+ }
2357
+ return Be(f) ? !0 : (r.append(lt(b, w, i), u(f)), !1);
2358
+ }
2359
+ const h = [], S = Object.assign(hs, {
2360
+ defaultVisitor: c,
2361
+ convertValue: u,
2362
+ isVisitable: Be
2363
+ });
2364
+ function y(f, w) {
2365
+ if (!l.isUndefined(f)) {
2366
+ if (h.indexOf(f) !== -1)
2367
+ throw Error("Circular reference detected in " + w.join("."));
2368
+ h.push(f), l.forEach(f, function(T, O) {
2369
+ (!(l.isUndefined(T) || T === null) && s.call(
2370
+ r,
2371
+ T,
2372
+ l.isString(O) ? O.trim() : O,
2373
+ w,
2374
+ S
2375
+ )) === !0 && y(T, w ? w.concat(O) : [O]);
2376
+ }), h.pop();
2377
+ }
2378
+ }
2379
+ if (!l.isObject(e))
2380
+ throw new TypeError("data must be an object");
2381
+ return y(e), r;
2382
+ }
2383
+ function dt(e) {
2384
+ const r = {
2385
+ "!": "%21",
2386
+ "'": "%27",
2387
+ "(": "%28",
2388
+ ")": "%29",
2389
+ "~": "%7E",
2390
+ "%20": "+",
2391
+ "%00": "\0"
2392
+ };
2393
+ return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(o) {
2394
+ return r[o];
2395
+ });
2396
+ }
2397
+ function He(e, r) {
2398
+ this._pairs = [], e && Ce(e, this, r);
2399
+ }
2400
+ const Bt = He.prototype;
2401
+ Bt.append = function(r, t) {
2402
+ this._pairs.push([r, t]);
2403
+ };
2404
+ Bt.toString = function(r) {
2405
+ const t = r ? function(o) {
2406
+ return r.call(this, o, dt);
2407
+ } : dt;
2408
+ return this._pairs.map(function(s) {
2409
+ return t(s[0]) + "=" + t(s[1]);
2410
+ }, "").join("&");
2411
+ };
2412
+ function fs(e) {
2413
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
2414
+ }
2415
+ function Nt(e, r, t) {
2416
+ if (!r)
2417
+ return e;
2418
+ const o = t && t.encode || fs;
2419
+ l.isFunction(t) && (t = {
2420
+ serialize: t
2421
+ });
2422
+ const s = t && t.serialize;
2423
+ let i;
2424
+ if (s ? i = s(r, t) : i = l.isURLSearchParams(r) ? r.toString() : new He(r, t).toString(o), i) {
2425
+ const n = e.indexOf("#");
2426
+ n !== -1 && (e = e.slice(0, n)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
2427
+ }
2428
+ return e;
2429
+ }
2430
+ class ct {
2431
+ constructor() {
2432
+ this.handlers = [];
2433
+ }
2434
+ /**
2435
+ * Add a new interceptor to the stack
2436
+ *
2437
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
2438
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
2439
+ *
2440
+ * @return {Number} An ID used to remove interceptor later
2441
+ */
2442
+ use(r, t, o) {
2443
+ return this.handlers.push({
2444
+ fulfilled: r,
2445
+ rejected: t,
2446
+ synchronous: o ? o.synchronous : !1,
2447
+ runWhen: o ? o.runWhen : null
2448
+ }), this.handlers.length - 1;
2449
+ }
2450
+ /**
2451
+ * Remove an interceptor from the stack
2452
+ *
2453
+ * @param {Number} id The ID that was returned by `use`
2454
+ *
2455
+ * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
2456
+ */
2457
+ eject(r) {
2458
+ this.handlers[r] && (this.handlers[r] = null);
2459
+ }
2460
+ /**
2461
+ * Clear all interceptors from the stack
2462
+ *
2463
+ * @returns {void}
2464
+ */
2465
+ clear() {
2466
+ this.handlers && (this.handlers = []);
2467
+ }
2468
+ /**
2469
+ * Iterate over all the registered interceptors
2470
+ *
2471
+ * This method is particularly useful for skipping over any
2472
+ * interceptors that may have become `null` calling `eject`.
2473
+ *
2474
+ * @param {Function} fn The function to call for each interceptor
2475
+ *
2476
+ * @returns {void}
2477
+ */
2478
+ forEach(r) {
2479
+ l.forEach(this.handlers, function(o) {
2480
+ o !== null && r(o);
2481
+ });
2482
+ }
2483
+ }
2484
+ const Dt = {
2485
+ silentJSONParsing: !0,
2486
+ forcedJSONParsing: !0,
2487
+ clarifyTimeoutError: !1
2488
+ }, ps = typeof URLSearchParams < "u" ? URLSearchParams : He, ms = typeof FormData < "u" ? FormData : null, gs = typeof Blob < "u" ? Blob : null, ys = {
2489
+ isBrowser: !0,
2490
+ classes: {
2491
+ URLSearchParams: ps,
2492
+ FormData: ms,
2493
+ Blob: gs
2494
+ },
2495
+ protocols: ["http", "https", "file", "blob", "url", "data"]
2496
+ }, Je = typeof window < "u" && typeof document < "u", Ne = typeof navigator == "object" && navigator || void 0, ws = Je && (!Ne || ["ReactNative", "NativeScript", "NS"].indexOf(Ne.product) < 0), bs = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
2497
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ss = Je && window.location.href || "http://localhost", vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2498
+ __proto__: null,
2499
+ hasBrowserEnv: Je,
2500
+ hasStandardBrowserEnv: ws,
2501
+ hasStandardBrowserWebWorkerEnv: bs,
2502
+ navigator: Ne,
2503
+ origin: Ss
2504
+ }, Symbol.toStringTag, { value: "Module" })), B = {
2505
+ ...vs,
2506
+ ...ys
2507
+ };
2508
+ function Cs(e, r) {
2509
+ return Ce(e, new B.classes.URLSearchParams(), Object.assign({
2510
+ visitor: function(t, o, s, i) {
2511
+ return B.isNode && l.isBuffer(t) ? (this.append(o, t.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
2512
+ }
2513
+ }, r));
2514
+ }
2515
+ function _s(e) {
2516
+ return l.matchAll(/\w+|\[(\w*)]/g, e).map((r) => r[0] === "[]" ? "" : r[1] || r[0]);
2517
+ }
2518
+ function ks(e) {
2519
+ const r = {}, t = Object.keys(e);
2520
+ let o;
2521
+ const s = t.length;
2522
+ let i;
2523
+ for (o = 0; o < s; o++)
2524
+ i = t[o], r[i] = e[i];
2525
+ return r;
2526
+ }
2527
+ function $t(e) {
2528
+ function r(t, o, s, i) {
2529
+ let n = t[i++];
2530
+ if (n === "__proto__") return !0;
2531
+ const a = Number.isFinite(+n), d = i >= t.length;
2532
+ return n = !n && l.isArray(s) ? s.length : n, d ? (l.hasOwnProp(s, n) ? s[n] = [s[n], o] : s[n] = o, !a) : ((!s[n] || !l.isObject(s[n])) && (s[n] = []), r(t, o, s[n], i) && l.isArray(s[n]) && (s[n] = ks(s[n])), !a);
2533
+ }
2534
+ if (l.isFormData(e) && l.isFunction(e.entries)) {
2535
+ const t = {};
2536
+ return l.forEachEntry(e, (o, s) => {
2537
+ r(_s(o), s, t, 0);
2538
+ }), t;
2539
+ }
2540
+ return null;
2541
+ }
2542
+ function Ts(e, r, t) {
2543
+ if (l.isString(e))
2544
+ try {
2545
+ return (r || JSON.parse)(e), l.trim(e);
2546
+ } catch (o) {
2547
+ if (o.name !== "SyntaxError")
2548
+ throw o;
2549
+ }
2550
+ return (0, JSON.stringify)(e);
2551
+ }
2552
+ const le = {
2553
+ transitional: Dt,
2554
+ adapter: ["xhr", "http", "fetch"],
2555
+ transformRequest: [function(r, t) {
2556
+ const o = t.getContentType() || "", s = o.indexOf("application/json") > -1, i = l.isObject(r);
2557
+ if (i && l.isHTMLForm(r) && (r = new FormData(r)), l.isFormData(r))
2558
+ return s ? JSON.stringify($t(r)) : r;
2559
+ if (l.isArrayBuffer(r) || l.isBuffer(r) || l.isStream(r) || l.isFile(r) || l.isBlob(r) || l.isReadableStream(r))
2560
+ return r;
2561
+ if (l.isArrayBufferView(r))
2562
+ return r.buffer;
2563
+ if (l.isURLSearchParams(r))
2564
+ return t.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), r.toString();
2565
+ let a;
2566
+ if (i) {
2567
+ if (o.indexOf("application/x-www-form-urlencoded") > -1)
2568
+ return Cs(r, this.formSerializer).toString();
2569
+ if ((a = l.isFileList(r)) || o.indexOf("multipart/form-data") > -1) {
2570
+ const d = this.env && this.env.FormData;
2571
+ return Ce(
2572
+ a ? { "files[]": r } : r,
2573
+ d && new d(),
2574
+ this.formSerializer
2575
+ );
2576
+ }
2577
+ }
2578
+ return i || s ? (t.setContentType("application/json", !1), Ts(r)) : r;
2579
+ }],
2580
+ transformResponse: [function(r) {
2581
+ const t = this.transitional || le.transitional, o = t && t.forcedJSONParsing, s = this.responseType === "json";
2582
+ if (l.isResponse(r) || l.isReadableStream(r))
2583
+ return r;
2584
+ if (r && l.isString(r) && (o && !this.responseType || s)) {
2585
+ const n = !(t && t.silentJSONParsing) && s;
2586
+ try {
2587
+ return JSON.parse(r);
2588
+ } catch (a) {
2589
+ if (n)
2590
+ throw a.name === "SyntaxError" ? C.from(a, C.ERR_BAD_RESPONSE, this, null, this.response) : a;
2591
+ }
2592
+ }
2593
+ return r;
2594
+ }],
2595
+ /**
2596
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
2597
+ * timeout is not created.
2598
+ */
2599
+ timeout: 0,
2600
+ xsrfCookieName: "XSRF-TOKEN",
2601
+ xsrfHeaderName: "X-XSRF-TOKEN",
2602
+ maxContentLength: -1,
2603
+ maxBodyLength: -1,
2604
+ env: {
2605
+ FormData: B.classes.FormData,
2606
+ Blob: B.classes.Blob
2607
+ },
2608
+ validateStatus: function(r) {
2609
+ return r >= 200 && r < 300;
2610
+ },
2611
+ headers: {
2612
+ common: {
2613
+ Accept: "application/json, text/plain, */*",
2614
+ "Content-Type": void 0
2615
+ }
2616
+ }
2617
+ };
2618
+ l.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
2619
+ le.headers[e] = {};
2620
+ });
2621
+ const Is = l.toObjectSet([
2622
+ "age",
2623
+ "authorization",
2624
+ "content-length",
2625
+ "content-type",
2626
+ "etag",
2627
+ "expires",
2628
+ "from",
2629
+ "host",
2630
+ "if-modified-since",
2631
+ "if-unmodified-since",
2632
+ "last-modified",
2633
+ "location",
2634
+ "max-forwards",
2635
+ "proxy-authorization",
2636
+ "referer",
2637
+ "retry-after",
2638
+ "user-agent"
2639
+ ]), xs = (e) => {
2640
+ const r = {};
2641
+ let t, o, s;
2642
+ return e && e.split(`
2643
+ `).forEach(function(n) {
2644
+ s = n.indexOf(":"), t = n.substring(0, s).trim().toLowerCase(), o = n.substring(s + 1).trim(), !(!t || r[t] && Is[t]) && (t === "set-cookie" ? r[t] ? r[t].push(o) : r[t] = [o] : r[t] = r[t] ? r[t] + ", " + o : o);
2645
+ }), r;
2646
+ }, ut = Symbol("internals");
2647
+ function te(e) {
2648
+ return e && String(e).trim().toLowerCase();
2649
+ }
2650
+ function ue(e) {
2651
+ return e === !1 || e == null ? e : l.isArray(e) ? e.map(ue) : String(e);
2652
+ }
2653
+ function Os(e) {
2654
+ const r = /* @__PURE__ */ Object.create(null), t = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
2655
+ let o;
2656
+ for (; o = t.exec(e); )
2657
+ r[o[1]] = o[2];
2658
+ return r;
2659
+ }
2660
+ const Ps = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
2661
+ function Pe(e, r, t, o, s) {
2662
+ if (l.isFunction(o))
2663
+ return o.call(this, r, t);
2664
+ if (s && (r = t), !!l.isString(r)) {
2665
+ if (l.isString(o))
2666
+ return r.indexOf(o) !== -1;
2667
+ if (l.isRegExp(o))
2668
+ return o.test(r);
2669
+ }
2670
+ }
2671
+ function As(e) {
2672
+ return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (r, t, o) => t.toUpperCase() + o);
2673
+ }
2674
+ function Rs(e, r) {
2675
+ const t = l.toCamelCase(" " + r);
2676
+ ["get", "set", "has"].forEach((o) => {
2677
+ Object.defineProperty(e, o + t, {
2678
+ value: function(s, i, n) {
2679
+ return this[o].call(this, r, s, i, n);
2680
+ },
2681
+ configurable: !0
2682
+ });
2683
+ });
2684
+ }
2685
+ class D {
2686
+ constructor(r) {
2687
+ r && this.set(r);
2688
+ }
2689
+ set(r, t, o) {
2690
+ const s = this;
2691
+ function i(a, d, u) {
2692
+ const c = te(d);
2693
+ if (!c)
2694
+ throw new Error("header name must be a non-empty string");
2695
+ const h = l.findKey(s, c);
2696
+ (!h || s[h] === void 0 || u === !0 || u === void 0 && s[h] !== !1) && (s[h || d] = ue(a));
2697
+ }
2698
+ const n = (a, d) => l.forEach(a, (u, c) => i(u, c, d));
2699
+ if (l.isPlainObject(r) || r instanceof this.constructor)
2700
+ n(r, t);
2701
+ else if (l.isString(r) && (r = r.trim()) && !Ps(r))
2702
+ n(xs(r), t);
2703
+ else if (l.isHeaders(r))
2704
+ for (const [a, d] of r.entries())
2705
+ i(d, a, o);
2706
+ else
2707
+ r != null && i(t, r, o);
2708
+ return this;
2709
+ }
2710
+ get(r, t) {
2711
+ if (r = te(r), r) {
2712
+ const o = l.findKey(this, r);
2713
+ if (o) {
2714
+ const s = this[o];
2715
+ if (!t)
2716
+ return s;
2717
+ if (t === !0)
2718
+ return Os(s);
2719
+ if (l.isFunction(t))
2720
+ return t.call(this, s, o);
2721
+ if (l.isRegExp(t))
2722
+ return t.exec(s);
2723
+ throw new TypeError("parser must be boolean|regexp|function");
2724
+ }
2725
+ }
2726
+ }
2727
+ has(r, t) {
2728
+ if (r = te(r), r) {
2729
+ const o = l.findKey(this, r);
2730
+ return !!(o && this[o] !== void 0 && (!t || Pe(this, this[o], o, t)));
2731
+ }
2732
+ return !1;
2733
+ }
2734
+ delete(r, t) {
2735
+ const o = this;
2736
+ let s = !1;
2737
+ function i(n) {
2738
+ if (n = te(n), n) {
2739
+ const a = l.findKey(o, n);
2740
+ a && (!t || Pe(o, o[a], a, t)) && (delete o[a], s = !0);
2741
+ }
2742
+ }
2743
+ return l.isArray(r) ? r.forEach(i) : i(r), s;
2744
+ }
2745
+ clear(r) {
2746
+ const t = Object.keys(this);
2747
+ let o = t.length, s = !1;
2748
+ for (; o--; ) {
2749
+ const i = t[o];
2750
+ (!r || Pe(this, this[i], i, r, !0)) && (delete this[i], s = !0);
2751
+ }
2752
+ return s;
2753
+ }
2754
+ normalize(r) {
2755
+ const t = this, o = {};
2756
+ return l.forEach(this, (s, i) => {
2757
+ const n = l.findKey(o, i);
2758
+ if (n) {
2759
+ t[n] = ue(s), delete t[i];
2760
+ return;
2761
+ }
2762
+ const a = r ? As(i) : String(i).trim();
2763
+ a !== i && delete t[i], t[a] = ue(s), o[a] = !0;
2764
+ }), this;
2765
+ }
2766
+ concat(...r) {
2767
+ return this.constructor.concat(this, ...r);
2768
+ }
2769
+ toJSON(r) {
2770
+ const t = /* @__PURE__ */ Object.create(null);
2771
+ return l.forEach(this, (o, s) => {
2772
+ o != null && o !== !1 && (t[s] = r && l.isArray(o) ? o.join(", ") : o);
2773
+ }), t;
2774
+ }
2775
+ [Symbol.iterator]() {
2776
+ return Object.entries(this.toJSON())[Symbol.iterator]();
2777
+ }
2778
+ toString() {
2779
+ return Object.entries(this.toJSON()).map(([r, t]) => r + ": " + t).join(`
2780
+ `);
2781
+ }
2782
+ get [Symbol.toStringTag]() {
2783
+ return "AxiosHeaders";
2784
+ }
2785
+ static from(r) {
2786
+ return r instanceof this ? r : new this(r);
2787
+ }
2788
+ static concat(r, ...t) {
2789
+ const o = new this(r);
2790
+ return t.forEach((s) => o.set(s)), o;
2791
+ }
2792
+ static accessor(r) {
2793
+ const o = (this[ut] = this[ut] = {
2794
+ accessors: {}
2795
+ }).accessors, s = this.prototype;
2796
+ function i(n) {
2797
+ const a = te(n);
2798
+ o[a] || (Rs(s, n), o[a] = !0);
2799
+ }
2800
+ return l.isArray(r) ? r.forEach(i) : i(r), this;
2801
+ }
2802
+ }
2803
+ D.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
2804
+ l.reduceDescriptors(D.prototype, ({ value: e }, r) => {
2805
+ let t = r[0].toUpperCase() + r.slice(1);
2806
+ return {
2807
+ get: () => e,
2808
+ set(o) {
2809
+ this[t] = o;
2810
+ }
2811
+ };
2812
+ });
2813
+ l.freezeMethods(D);
2814
+ function Ae(e, r) {
2815
+ const t = this || le, o = r || t, s = D.from(o.headers);
2816
+ let i = o.data;
2817
+ return l.forEach(e, function(a) {
2818
+ i = a.call(t, i, s.normalize(), r ? r.status : void 0);
2819
+ }), s.normalize(), i;
2820
+ }
2821
+ function Lt(e) {
2822
+ return !!(e && e.__CANCEL__);
2823
+ }
2824
+ function ee(e, r, t) {
2825
+ C.call(this, e ?? "canceled", C.ERR_CANCELED, r, t), this.name = "CanceledError";
2826
+ }
2827
+ l.inherits(ee, C, {
2828
+ __CANCEL__: !0
2829
+ });
2830
+ function zt(e, r, t) {
2831
+ const o = t.config.validateStatus;
2832
+ !t.status || !o || o(t.status) ? e(t) : r(new C(
2833
+ "Request failed with status code " + t.status,
2834
+ [C.ERR_BAD_REQUEST, C.ERR_BAD_RESPONSE][Math.floor(t.status / 100) - 4],
2835
+ t.config,
2836
+ t.request,
2837
+ t
2838
+ ));
2839
+ }
2840
+ function Es(e) {
2841
+ const r = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
2842
+ return r && r[1] || "";
2843
+ }
2844
+ function Bs(e, r) {
2845
+ e = e || 10;
2846
+ const t = new Array(e), o = new Array(e);
2847
+ let s = 0, i = 0, n;
2848
+ return r = r !== void 0 ? r : 1e3, function(d) {
2849
+ const u = Date.now(), c = o[i];
2850
+ n || (n = u), t[s] = d, o[s] = u;
2851
+ let h = i, S = 0;
2852
+ for (; h !== s; )
2853
+ S += t[h++], h = h % e;
2854
+ if (s = (s + 1) % e, s === i && (i = (i + 1) % e), u - n < r)
2855
+ return;
2856
+ const y = c && u - c;
2857
+ return y ? Math.round(S * 1e3 / y) : void 0;
2858
+ };
2859
+ }
2860
+ function Ns(e, r) {
2861
+ let t = 0, o = 1e3 / r, s, i;
2862
+ const n = (u, c = Date.now()) => {
2863
+ t = c, s = null, i && (clearTimeout(i), i = null), e.apply(null, u);
2864
+ };
2865
+ return [(...u) => {
2866
+ const c = Date.now(), h = c - t;
2867
+ h >= o ? n(u, c) : (s = u, i || (i = setTimeout(() => {
2868
+ i = null, n(s);
2869
+ }, o - h)));
2870
+ }, () => s && n(s)];
2871
+ }
2872
+ const pe = (e, r, t = 3) => {
2873
+ let o = 0;
2874
+ const s = Bs(50, 250);
2875
+ return Ns((i) => {
2876
+ const n = i.loaded, a = i.lengthComputable ? i.total : void 0, d = n - o, u = s(d), c = n <= a;
2877
+ o = n;
2878
+ const h = {
2879
+ loaded: n,
2880
+ total: a,
2881
+ progress: a ? n / a : void 0,
2882
+ bytes: d,
2883
+ rate: u || void 0,
2884
+ estimated: u && a && c ? (a - n) / u : void 0,
2885
+ event: i,
2886
+ lengthComputable: a != null,
2887
+ [r ? "download" : "upload"]: !0
2888
+ };
2889
+ e(h);
2890
+ }, t);
2891
+ }, ht = (e, r) => {
2892
+ const t = e != null;
2893
+ return [(o) => r[0]({
2894
+ lengthComputable: t,
2895
+ total: e,
2896
+ loaded: o
2897
+ }), r[1]];
2898
+ }, ft = (e) => (...r) => l.asap(() => e(...r)), Ds = B.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, r) => (t) => (t = new URL(t, B.origin), e.protocol === t.protocol && e.host === t.host && (r || e.port === t.port)))(
2899
+ new URL(B.origin),
2900
+ B.navigator && /(msie|trident)/i.test(B.navigator.userAgent)
2901
+ ) : () => !0, $s = B.hasStandardBrowserEnv ? (
2902
+ // Standard browser envs support document.cookie
2903
+ {
2904
+ write(e, r, t, o, s, i) {
2905
+ const n = [e + "=" + encodeURIComponent(r)];
2906
+ l.isNumber(t) && n.push("expires=" + new Date(t).toGMTString()), l.isString(o) && n.push("path=" + o), l.isString(s) && n.push("domain=" + s), i === !0 && n.push("secure"), document.cookie = n.join("; ");
2907
+ },
2908
+ read(e) {
2909
+ const r = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
2910
+ return r ? decodeURIComponent(r[3]) : null;
2911
+ },
2912
+ remove(e) {
2913
+ this.write(e, "", Date.now() - 864e5);
2914
+ }
2915
+ }
2916
+ ) : (
2917
+ // Non-standard browser env (web workers, react-native) lack needed support.
2918
+ {
2919
+ write() {
2920
+ },
2921
+ read() {
2922
+ return null;
2923
+ },
2924
+ remove() {
2925
+ }
2926
+ }
2927
+ );
2928
+ function Ls(e) {
2929
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
2930
+ }
2931
+ function zs(e, r) {
2932
+ return r ? e.replace(/\/?\/$/, "") + "/" + r.replace(/^\/+/, "") : e;
2933
+ }
2934
+ function Ft(e, r) {
2935
+ return e && !Ls(r) ? zs(e, r) : r;
2936
+ }
2937
+ const pt = (e) => e instanceof D ? { ...e } : e;
2938
+ function K(e, r) {
2939
+ r = r || {};
2940
+ const t = {};
2941
+ function o(u, c, h, S) {
2942
+ return l.isPlainObject(u) && l.isPlainObject(c) ? l.merge.call({ caseless: S }, u, c) : l.isPlainObject(c) ? l.merge({}, c) : l.isArray(c) ? c.slice() : c;
2943
+ }
2944
+ function s(u, c, h, S) {
2945
+ if (l.isUndefined(c)) {
2946
+ if (!l.isUndefined(u))
2947
+ return o(void 0, u, h, S);
2948
+ } else return o(u, c, h, S);
2949
+ }
2950
+ function i(u, c) {
2951
+ if (!l.isUndefined(c))
2952
+ return o(void 0, c);
2953
+ }
2954
+ function n(u, c) {
2955
+ if (l.isUndefined(c)) {
2956
+ if (!l.isUndefined(u))
2957
+ return o(void 0, u);
2958
+ } else return o(void 0, c);
2959
+ }
2960
+ function a(u, c, h) {
2961
+ if (h in r)
2962
+ return o(u, c);
2963
+ if (h in e)
2964
+ return o(void 0, u);
2965
+ }
2966
+ const d = {
2967
+ url: i,
2968
+ method: i,
2969
+ data: i,
2970
+ baseURL: n,
2971
+ transformRequest: n,
2972
+ transformResponse: n,
2973
+ paramsSerializer: n,
2974
+ timeout: n,
2975
+ timeoutMessage: n,
2976
+ withCredentials: n,
2977
+ withXSRFToken: n,
2978
+ adapter: n,
2979
+ responseType: n,
2980
+ xsrfCookieName: n,
2981
+ xsrfHeaderName: n,
2982
+ onUploadProgress: n,
2983
+ onDownloadProgress: n,
2984
+ decompress: n,
2985
+ maxContentLength: n,
2986
+ maxBodyLength: n,
2987
+ beforeRedirect: n,
2988
+ transport: n,
2989
+ httpAgent: n,
2990
+ httpsAgent: n,
2991
+ cancelToken: n,
2992
+ socketPath: n,
2993
+ responseEncoding: n,
2994
+ validateStatus: a,
2995
+ headers: (u, c, h) => s(pt(u), pt(c), h, !0)
2996
+ };
2997
+ return l.forEach(Object.keys(Object.assign({}, e, r)), function(c) {
2998
+ const h = d[c] || s, S = h(e[c], r[c], c);
2999
+ l.isUndefined(S) && h !== a || (t[c] = S);
3000
+ }), t;
3001
+ }
3002
+ const Wt = (e) => {
3003
+ const r = K({}, e);
3004
+ let { data: t, withXSRFToken: o, xsrfHeaderName: s, xsrfCookieName: i, headers: n, auth: a } = r;
3005
+ r.headers = n = D.from(n), r.url = Nt(Ft(r.baseURL, r.url), e.params, e.paramsSerializer), a && n.set(
3006
+ "Authorization",
3007
+ "Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
3008
+ );
3009
+ let d;
3010
+ if (l.isFormData(t)) {
3011
+ if (B.hasStandardBrowserEnv || B.hasStandardBrowserWebWorkerEnv)
3012
+ n.setContentType(void 0);
3013
+ else if ((d = n.getContentType()) !== !1) {
3014
+ const [u, ...c] = d ? d.split(";").map((h) => h.trim()).filter(Boolean) : [];
3015
+ n.setContentType([u || "multipart/form-data", ...c].join("; "));
3016
+ }
3017
+ }
3018
+ if (B.hasStandardBrowserEnv && (o && l.isFunction(o) && (o = o(r)), o || o !== !1 && Ds(r.url))) {
3019
+ const u = s && i && $s.read(i);
3020
+ u && n.set(s, u);
3021
+ }
3022
+ return r;
3023
+ }, Fs = typeof XMLHttpRequest < "u", Ws = Fs && function(e) {
3024
+ return new Promise(function(t, o) {
3025
+ const s = Wt(e);
3026
+ let i = s.data;
3027
+ const n = D.from(s.headers).normalize();
3028
+ let { responseType: a, onUploadProgress: d, onDownloadProgress: u } = s, c, h, S, y, f;
3029
+ function w() {
3030
+ y && y(), f && f(), s.cancelToken && s.cancelToken.unsubscribe(c), s.signal && s.signal.removeEventListener("abort", c);
3031
+ }
3032
+ let b = new XMLHttpRequest();
3033
+ b.open(s.method.toUpperCase(), s.url, !0), b.timeout = s.timeout;
3034
+ function T() {
3035
+ if (!b)
3036
+ return;
3037
+ const R = D.from(
3038
+ "getAllResponseHeaders" in b && b.getAllResponseHeaders()
3039
+ ), N = {
3040
+ data: !a || a === "text" || a === "json" ? b.responseText : b.response,
3041
+ status: b.status,
3042
+ statusText: b.statusText,
3043
+ headers: R,
3044
+ config: e,
3045
+ request: b
3046
+ };
3047
+ zt(function(G) {
3048
+ t(G), w();
3049
+ }, function(G) {
3050
+ o(G), w();
3051
+ }, N), b = null;
3052
+ }
3053
+ "onloadend" in b ? b.onloadend = T : b.onreadystatechange = function() {
3054
+ !b || b.readyState !== 4 || b.status === 0 && !(b.responseURL && b.responseURL.indexOf("file:") === 0) || setTimeout(T);
3055
+ }, b.onabort = function() {
3056
+ b && (o(new C("Request aborted", C.ECONNABORTED, e, b)), b = null);
3057
+ }, b.onerror = function() {
3058
+ o(new C("Network Error", C.ERR_NETWORK, e, b)), b = null;
3059
+ }, b.ontimeout = function() {
3060
+ let H = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
3061
+ const N = s.transitional || Dt;
3062
+ s.timeoutErrorMessage && (H = s.timeoutErrorMessage), o(new C(
3063
+ H,
3064
+ N.clarifyTimeoutError ? C.ETIMEDOUT : C.ECONNABORTED,
3065
+ e,
3066
+ b
3067
+ )), b = null;
3068
+ }, i === void 0 && n.setContentType(null), "setRequestHeader" in b && l.forEach(n.toJSON(), function(H, N) {
3069
+ b.setRequestHeader(N, H);
3070
+ }), l.isUndefined(s.withCredentials) || (b.withCredentials = !!s.withCredentials), a && a !== "json" && (b.responseType = s.responseType), u && ([S, f] = pe(u, !0), b.addEventListener("progress", S)), d && b.upload && ([h, y] = pe(d), b.upload.addEventListener("progress", h), b.upload.addEventListener("loadend", y)), (s.cancelToken || s.signal) && (c = (R) => {
3071
+ b && (o(!R || R.type ? new ee(null, e, b) : R), b.abort(), b = null);
3072
+ }, s.cancelToken && s.cancelToken.subscribe(c), s.signal && (s.signal.aborted ? c() : s.signal.addEventListener("abort", c)));
3073
+ const O = Es(s.url);
3074
+ if (O && B.protocols.indexOf(O) === -1) {
3075
+ o(new C("Unsupported protocol " + O + ":", C.ERR_BAD_REQUEST, e));
3076
+ return;
3077
+ }
3078
+ b.send(i || null);
3079
+ });
3080
+ }, Ms = (e, r) => {
3081
+ const { length: t } = e = e ? e.filter(Boolean) : [];
3082
+ if (r || t) {
3083
+ let o = new AbortController(), s;
3084
+ const i = function(u) {
3085
+ if (!s) {
3086
+ s = !0, a();
3087
+ const c = u instanceof Error ? u : this.reason;
3088
+ o.abort(c instanceof C ? c : new ee(c instanceof Error ? c.message : c));
3089
+ }
3090
+ };
3091
+ let n = r && setTimeout(() => {
3092
+ n = null, i(new C(`timeout ${r} of ms exceeded`, C.ETIMEDOUT));
3093
+ }, r);
3094
+ const a = () => {
3095
+ e && (n && clearTimeout(n), n = null, e.forEach((u) => {
3096
+ u.unsubscribe ? u.unsubscribe(i) : u.removeEventListener("abort", i);
3097
+ }), e = null);
3098
+ };
3099
+ e.forEach((u) => u.addEventListener("abort", i));
3100
+ const { signal: d } = o;
3101
+ return d.unsubscribe = () => l.asap(a), d;
3102
+ }
3103
+ }, qs = function* (e, r) {
3104
+ let t = e.byteLength;
3105
+ if (t < r) {
3106
+ yield e;
3107
+ return;
3108
+ }
3109
+ let o = 0, s;
3110
+ for (; o < t; )
3111
+ s = o + r, yield e.slice(o, s), o = s;
3112
+ }, js = async function* (e, r) {
3113
+ for await (const t of Us(e))
3114
+ yield* qs(t, r);
3115
+ }, Us = async function* (e) {
3116
+ if (e[Symbol.asyncIterator]) {
3117
+ yield* e;
3118
+ return;
3119
+ }
3120
+ const r = e.getReader();
3121
+ try {
3122
+ for (; ; ) {
3123
+ const { done: t, value: o } = await r.read();
3124
+ if (t)
3125
+ break;
3126
+ yield o;
3127
+ }
3128
+ } finally {
3129
+ await r.cancel();
3130
+ }
3131
+ }, mt = (e, r, t, o) => {
3132
+ const s = js(e, r);
3133
+ let i = 0, n, a = (d) => {
3134
+ n || (n = !0, o && o(d));
3135
+ };
3136
+ return new ReadableStream({
3137
+ async pull(d) {
3138
+ try {
3139
+ const { done: u, value: c } = await s.next();
3140
+ if (u) {
3141
+ a(), d.close();
3142
+ return;
3143
+ }
3144
+ let h = c.byteLength;
3145
+ if (t) {
3146
+ let S = i += h;
3147
+ t(S);
3148
+ }
3149
+ d.enqueue(new Uint8Array(c));
3150
+ } catch (u) {
3151
+ throw a(u), u;
3152
+ }
3153
+ },
3154
+ cancel(d) {
3155
+ return a(d), s.return();
3156
+ }
3157
+ }, {
3158
+ highWaterMark: 2
3159
+ });
3160
+ }, _e = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Mt = _e && typeof ReadableStream == "function", Hs = _e && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (r) => e.encode(r))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), qt = (e, ...r) => {
3161
+ try {
3162
+ return !!e(...r);
3163
+ } catch {
3164
+ return !1;
3165
+ }
3166
+ }, Js = Mt && qt(() => {
3167
+ let e = !1;
3168
+ const r = new Request(B.origin, {
3169
+ body: new ReadableStream(),
3170
+ method: "POST",
3171
+ get duplex() {
3172
+ return e = !0, "half";
3173
+ }
3174
+ }).headers.has("Content-Type");
3175
+ return e && !r;
3176
+ }), gt = 64 * 1024, De = Mt && qt(() => l.isReadableStream(new Response("").body)), me = {
3177
+ stream: De && ((e) => e.body)
3178
+ };
3179
+ _e && ((e) => {
3180
+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((r) => {
3181
+ !me[r] && (me[r] = l.isFunction(e[r]) ? (t) => t[r]() : (t, o) => {
3182
+ throw new C(`Response type '${r}' is not supported`, C.ERR_NOT_SUPPORT, o);
3183
+ });
3184
+ });
3185
+ })(new Response());
3186
+ const Gs = async (e) => {
3187
+ if (e == null)
3188
+ return 0;
3189
+ if (l.isBlob(e))
3190
+ return e.size;
3191
+ if (l.isSpecCompliantForm(e))
3192
+ return (await new Request(B.origin, {
3193
+ method: "POST",
3194
+ body: e
3195
+ }).arrayBuffer()).byteLength;
3196
+ if (l.isArrayBufferView(e) || l.isArrayBuffer(e))
3197
+ return e.byteLength;
3198
+ if (l.isURLSearchParams(e) && (e = e + ""), l.isString(e))
3199
+ return (await Hs(e)).byteLength;
3200
+ }, Vs = async (e, r) => {
3201
+ const t = l.toFiniteNumber(e.getContentLength());
3202
+ return t ?? Gs(r);
3203
+ }, Xs = _e && (async (e) => {
3204
+ let {
3205
+ url: r,
3206
+ method: t,
3207
+ data: o,
3208
+ signal: s,
3209
+ cancelToken: i,
3210
+ timeout: n,
3211
+ onDownloadProgress: a,
3212
+ onUploadProgress: d,
3213
+ responseType: u,
3214
+ headers: c,
3215
+ withCredentials: h = "same-origin",
3216
+ fetchOptions: S
3217
+ } = Wt(e);
3218
+ u = u ? (u + "").toLowerCase() : "text";
3219
+ let y = Ms([s, i && i.toAbortSignal()], n), f;
3220
+ const w = y && y.unsubscribe && (() => {
3221
+ y.unsubscribe();
3222
+ });
3223
+ let b;
3224
+ try {
3225
+ if (d && Js && t !== "get" && t !== "head" && (b = await Vs(c, o)) !== 0) {
3226
+ let N = new Request(r, {
3227
+ method: "POST",
3228
+ body: o,
3229
+ duplex: "half"
3230
+ }), J;
3231
+ if (l.isFormData(o) && (J = N.headers.get("content-type")) && c.setContentType(J), N.body) {
3232
+ const [G, de] = ht(
3233
+ b,
3234
+ pe(ft(d))
3235
+ );
3236
+ o = mt(N.body, gt, G, de);
3237
+ }
3238
+ }
3239
+ l.isString(h) || (h = h ? "include" : "omit");
3240
+ const T = "credentials" in Request.prototype;
3241
+ f = new Request(r, {
3242
+ ...S,
3243
+ signal: y,
3244
+ method: t.toUpperCase(),
3245
+ headers: c.normalize().toJSON(),
3246
+ body: o,
3247
+ duplex: "half",
3248
+ credentials: T ? h : void 0
3249
+ });
3250
+ let O = await fetch(f);
3251
+ const R = De && (u === "stream" || u === "response");
3252
+ if (De && (a || R && w)) {
3253
+ const N = {};
3254
+ ["status", "statusText", "headers"].forEach((Ve) => {
3255
+ N[Ve] = O[Ve];
3256
+ });
3257
+ const J = l.toFiniteNumber(O.headers.get("content-length")), [G, de] = a && ht(
3258
+ J,
3259
+ pe(ft(a), !0)
3260
+ ) || [];
3261
+ O = new Response(
3262
+ mt(O.body, gt, G, () => {
3263
+ de && de(), w && w();
3264
+ }),
3265
+ N
3266
+ );
3267
+ }
3268
+ u = u || "text";
3269
+ let H = await me[l.findKey(me, u) || "text"](O, e);
3270
+ return !R && w && w(), await new Promise((N, J) => {
3271
+ zt(N, J, {
3272
+ data: H,
3273
+ headers: D.from(O.headers),
3274
+ status: O.status,
3275
+ statusText: O.statusText,
3276
+ config: e,
3277
+ request: f
3278
+ });
3279
+ });
3280
+ } catch (T) {
3281
+ throw w && w(), T && T.name === "TypeError" && /fetch/i.test(T.message) ? Object.assign(
3282
+ new C("Network Error", C.ERR_NETWORK, e, f),
3283
+ {
3284
+ cause: T.cause || T
3285
+ }
3286
+ ) : C.from(T, T && T.code, e, f);
3287
+ }
3288
+ }), $e = {
3289
+ http: cs,
3290
+ xhr: Ws,
3291
+ fetch: Xs
3292
+ };
3293
+ l.forEach($e, (e, r) => {
3294
+ if (e) {
3295
+ try {
3296
+ Object.defineProperty(e, "name", { value: r });
3297
+ } catch {
3298
+ }
3299
+ Object.defineProperty(e, "adapterName", { value: r });
3300
+ }
3301
+ });
3302
+ const yt = (e) => `- ${e}`, Zs = (e) => l.isFunction(e) || e === null || e === !1, jt = {
3303
+ getAdapter: (e) => {
3304
+ e = l.isArray(e) ? e : [e];
3305
+ const { length: r } = e;
3306
+ let t, o;
3307
+ const s = {};
3308
+ for (let i = 0; i < r; i++) {
3309
+ t = e[i];
3310
+ let n;
3311
+ if (o = t, !Zs(t) && (o = $e[(n = String(t)).toLowerCase()], o === void 0))
3312
+ throw new C(`Unknown adapter '${n}'`);
3313
+ if (o)
3314
+ break;
3315
+ s[n || "#" + i] = o;
3316
+ }
3317
+ if (!o) {
3318
+ const i = Object.entries(s).map(
3319
+ ([a, d]) => `adapter ${a} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
3320
+ );
3321
+ let n = r ? i.length > 1 ? `since :
3322
+ ` + i.map(yt).join(`
3323
+ `) : " " + yt(i[0]) : "as no adapter specified";
3324
+ throw new C(
3325
+ "There is no suitable adapter to dispatch the request " + n,
3326
+ "ERR_NOT_SUPPORT"
3327
+ );
3328
+ }
3329
+ return o;
3330
+ },
3331
+ adapters: $e
3332
+ };
3333
+ function Re(e) {
3334
+ if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
3335
+ throw new ee(null, e);
3336
+ }
3337
+ function wt(e) {
3338
+ return Re(e), e.headers = D.from(e.headers), e.data = Ae.call(
3339
+ e,
3340
+ e.transformRequest
3341
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), jt.getAdapter(e.adapter || le.adapter)(e).then(function(o) {
3342
+ return Re(e), o.data = Ae.call(
3343
+ e,
3344
+ e.transformResponse,
3345
+ o
3346
+ ), o.headers = D.from(o.headers), o;
3347
+ }, function(o) {
3348
+ return Lt(o) || (Re(e), o && o.response && (o.response.data = Ae.call(
3349
+ e,
3350
+ e.transformResponse,
3351
+ o.response
3352
+ ), o.response.headers = D.from(o.response.headers))), Promise.reject(o);
3353
+ });
3354
+ }
3355
+ const Ut = "1.7.9", ke = {};
3356
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, r) => {
3357
+ ke[e] = function(o) {
3358
+ return typeof o === e || "a" + (r < 1 ? "n " : " ") + e;
3359
+ };
3360
+ });
3361
+ const bt = {};
3362
+ ke.transitional = function(r, t, o) {
3363
+ function s(i, n) {
3364
+ return "[Axios v" + Ut + "] Transitional option '" + i + "'" + n + (o ? ". " + o : "");
3365
+ }
3366
+ return (i, n, a) => {
3367
+ if (r === !1)
3368
+ throw new C(
3369
+ s(n, " has been removed" + (t ? " in " + t : "")),
3370
+ C.ERR_DEPRECATED
3371
+ );
3372
+ return t && !bt[n] && (bt[n] = !0, console.warn(
3373
+ s(
3374
+ n,
3375
+ " has been deprecated since v" + t + " and will be removed in the near future"
3376
+ )
3377
+ )), r ? r(i, n, a) : !0;
3378
+ };
3379
+ };
3380
+ ke.spelling = function(r) {
3381
+ return (t, o) => (console.warn(`${o} is likely a misspelling of ${r}`), !0);
3382
+ };
3383
+ function Ks(e, r, t) {
3384
+ if (typeof e != "object")
3385
+ throw new C("options must be an object", C.ERR_BAD_OPTION_VALUE);
3386
+ const o = Object.keys(e);
3387
+ let s = o.length;
3388
+ for (; s-- > 0; ) {
3389
+ const i = o[s], n = r[i];
3390
+ if (n) {
3391
+ const a = e[i], d = a === void 0 || n(a, i, e);
3392
+ if (d !== !0)
3393
+ throw new C("option " + i + " must be " + d, C.ERR_BAD_OPTION_VALUE);
3394
+ continue;
3395
+ }
3396
+ if (t !== !0)
3397
+ throw new C("Unknown option " + i, C.ERR_BAD_OPTION);
3398
+ }
3399
+ }
3400
+ const he = {
3401
+ assertOptions: Ks,
3402
+ validators: ke
3403
+ }, U = he.validators;
3404
+ class X {
3405
+ constructor(r) {
3406
+ this.defaults = r, this.interceptors = {
3407
+ request: new ct(),
3408
+ response: new ct()
3409
+ };
3410
+ }
3411
+ /**
3412
+ * Dispatch a request
3413
+ *
3414
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
3415
+ * @param {?Object} config
3416
+ *
3417
+ * @returns {Promise} The Promise to be fulfilled
3418
+ */
3419
+ async request(r, t) {
3420
+ try {
3421
+ return await this._request(r, t);
3422
+ } catch (o) {
3423
+ if (o instanceof Error) {
3424
+ let s = {};
3425
+ Error.captureStackTrace ? Error.captureStackTrace(s) : s = new Error();
3426
+ const i = s.stack ? s.stack.replace(/^.+\n/, "") : "";
3427
+ try {
3428
+ o.stack ? i && !String(o.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (o.stack += `
3429
+ ` + i) : o.stack = i;
3430
+ } catch {
3431
+ }
3432
+ }
3433
+ throw o;
3434
+ }
3435
+ }
3436
+ _request(r, t) {
3437
+ typeof r == "string" ? (t = t || {}, t.url = r) : t = r || {}, t = K(this.defaults, t);
3438
+ const { transitional: o, paramsSerializer: s, headers: i } = t;
3439
+ o !== void 0 && he.assertOptions(o, {
3440
+ silentJSONParsing: U.transitional(U.boolean),
3441
+ forcedJSONParsing: U.transitional(U.boolean),
3442
+ clarifyTimeoutError: U.transitional(U.boolean)
3443
+ }, !1), s != null && (l.isFunction(s) ? t.paramsSerializer = {
3444
+ serialize: s
3445
+ } : he.assertOptions(s, {
3446
+ encode: U.function,
3447
+ serialize: U.function
3448
+ }, !0)), he.assertOptions(t, {
3449
+ baseUrl: U.spelling("baseURL"),
3450
+ withXsrfToken: U.spelling("withXSRFToken")
3451
+ }, !0), t.method = (t.method || this.defaults.method || "get").toLowerCase();
3452
+ let n = i && l.merge(
3453
+ i.common,
3454
+ i[t.method]
3455
+ );
3456
+ i && l.forEach(
3457
+ ["delete", "get", "head", "post", "put", "patch", "common"],
3458
+ (f) => {
3459
+ delete i[f];
3460
+ }
3461
+ ), t.headers = D.concat(n, i);
3462
+ const a = [];
3463
+ let d = !0;
3464
+ this.interceptors.request.forEach(function(w) {
3465
+ typeof w.runWhen == "function" && w.runWhen(t) === !1 || (d = d && w.synchronous, a.unshift(w.fulfilled, w.rejected));
3466
+ });
3467
+ const u = [];
3468
+ this.interceptors.response.forEach(function(w) {
3469
+ u.push(w.fulfilled, w.rejected);
3470
+ });
3471
+ let c, h = 0, S;
3472
+ if (!d) {
3473
+ const f = [wt.bind(this), void 0];
3474
+ for (f.unshift.apply(f, a), f.push.apply(f, u), S = f.length, c = Promise.resolve(t); h < S; )
3475
+ c = c.then(f[h++], f[h++]);
3476
+ return c;
3477
+ }
3478
+ S = a.length;
3479
+ let y = t;
3480
+ for (h = 0; h < S; ) {
3481
+ const f = a[h++], w = a[h++];
3482
+ try {
3483
+ y = f(y);
3484
+ } catch (b) {
3485
+ w.call(this, b);
3486
+ break;
3487
+ }
3488
+ }
3489
+ try {
3490
+ c = wt.call(this, y);
3491
+ } catch (f) {
3492
+ return Promise.reject(f);
3493
+ }
3494
+ for (h = 0, S = u.length; h < S; )
3495
+ c = c.then(u[h++], u[h++]);
3496
+ return c;
3497
+ }
3498
+ getUri(r) {
3499
+ r = K(this.defaults, r);
3500
+ const t = Ft(r.baseURL, r.url);
3501
+ return Nt(t, r.params, r.paramsSerializer);
3502
+ }
3503
+ }
3504
+ l.forEach(["delete", "get", "head", "options"], function(r) {
3505
+ X.prototype[r] = function(t, o) {
3506
+ return this.request(K(o || {}, {
3507
+ method: r,
3508
+ url: t,
3509
+ data: (o || {}).data
3510
+ }));
3511
+ };
3512
+ });
3513
+ l.forEach(["post", "put", "patch"], function(r) {
3514
+ function t(o) {
3515
+ return function(i, n, a) {
3516
+ return this.request(K(a || {}, {
3517
+ method: r,
3518
+ headers: o ? {
3519
+ "Content-Type": "multipart/form-data"
3520
+ } : {},
3521
+ url: i,
3522
+ data: n
3523
+ }));
3524
+ };
3525
+ }
3526
+ X.prototype[r] = t(), X.prototype[r + "Form"] = t(!0);
3527
+ });
3528
+ class Ge {
3529
+ constructor(r) {
3530
+ if (typeof r != "function")
3531
+ throw new TypeError("executor must be a function.");
3532
+ let t;
3533
+ this.promise = new Promise(function(i) {
3534
+ t = i;
3535
+ });
3536
+ const o = this;
3537
+ this.promise.then((s) => {
3538
+ if (!o._listeners) return;
3539
+ let i = o._listeners.length;
3540
+ for (; i-- > 0; )
3541
+ o._listeners[i](s);
3542
+ o._listeners = null;
3543
+ }), this.promise.then = (s) => {
3544
+ let i;
3545
+ const n = new Promise((a) => {
3546
+ o.subscribe(a), i = a;
3547
+ }).then(s);
3548
+ return n.cancel = function() {
3549
+ o.unsubscribe(i);
3550
+ }, n;
3551
+ }, r(function(i, n, a) {
3552
+ o.reason || (o.reason = new ee(i, n, a), t(o.reason));
3553
+ });
3554
+ }
3555
+ /**
3556
+ * Throws a `CanceledError` if cancellation has been requested.
3557
+ */
3558
+ throwIfRequested() {
3559
+ if (this.reason)
3560
+ throw this.reason;
3561
+ }
3562
+ /**
3563
+ * Subscribe to the cancel signal
3564
+ */
3565
+ subscribe(r) {
3566
+ if (this.reason) {
3567
+ r(this.reason);
3568
+ return;
3569
+ }
3570
+ this._listeners ? this._listeners.push(r) : this._listeners = [r];
3571
+ }
3572
+ /**
3573
+ * Unsubscribe from the cancel signal
3574
+ */
3575
+ unsubscribe(r) {
3576
+ if (!this._listeners)
3577
+ return;
3578
+ const t = this._listeners.indexOf(r);
3579
+ t !== -1 && this._listeners.splice(t, 1);
3580
+ }
3581
+ toAbortSignal() {
3582
+ const r = new AbortController(), t = (o) => {
3583
+ r.abort(o);
3584
+ };
3585
+ return this.subscribe(t), r.signal.unsubscribe = () => this.unsubscribe(t), r.signal;
3586
+ }
3587
+ /**
3588
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
3589
+ * cancels the `CancelToken`.
3590
+ */
3591
+ static source() {
3592
+ let r;
3593
+ return {
3594
+ token: new Ge(function(s) {
3595
+ r = s;
3596
+ }),
3597
+ cancel: r
3598
+ };
3599
+ }
3600
+ }
3601
+ function Qs(e) {
3602
+ return function(t) {
3603
+ return e.apply(null, t);
3604
+ };
3605
+ }
3606
+ function Ys(e) {
3607
+ return l.isObject(e) && e.isAxiosError === !0;
3608
+ }
3609
+ const Le = {
3610
+ Continue: 100,
3611
+ SwitchingProtocols: 101,
3612
+ Processing: 102,
3613
+ EarlyHints: 103,
3614
+ Ok: 200,
3615
+ Created: 201,
3616
+ Accepted: 202,
3617
+ NonAuthoritativeInformation: 203,
3618
+ NoContent: 204,
3619
+ ResetContent: 205,
3620
+ PartialContent: 206,
3621
+ MultiStatus: 207,
3622
+ AlreadyReported: 208,
3623
+ ImUsed: 226,
3624
+ MultipleChoices: 300,
3625
+ MovedPermanently: 301,
3626
+ Found: 302,
3627
+ SeeOther: 303,
3628
+ NotModified: 304,
3629
+ UseProxy: 305,
3630
+ Unused: 306,
3631
+ TemporaryRedirect: 307,
3632
+ PermanentRedirect: 308,
3633
+ BadRequest: 400,
3634
+ Unauthorized: 401,
3635
+ PaymentRequired: 402,
3636
+ Forbidden: 403,
3637
+ NotFound: 404,
3638
+ MethodNotAllowed: 405,
3639
+ NotAcceptable: 406,
3640
+ ProxyAuthenticationRequired: 407,
3641
+ RequestTimeout: 408,
3642
+ Conflict: 409,
3643
+ Gone: 410,
3644
+ LengthRequired: 411,
3645
+ PreconditionFailed: 412,
3646
+ PayloadTooLarge: 413,
3647
+ UriTooLong: 414,
3648
+ UnsupportedMediaType: 415,
3649
+ RangeNotSatisfiable: 416,
3650
+ ExpectationFailed: 417,
3651
+ ImATeapot: 418,
3652
+ MisdirectedRequest: 421,
3653
+ UnprocessableEntity: 422,
3654
+ Locked: 423,
3655
+ FailedDependency: 424,
3656
+ TooEarly: 425,
3657
+ UpgradeRequired: 426,
3658
+ PreconditionRequired: 428,
3659
+ TooManyRequests: 429,
3660
+ RequestHeaderFieldsTooLarge: 431,
3661
+ UnavailableForLegalReasons: 451,
3662
+ InternalServerError: 500,
3663
+ NotImplemented: 501,
3664
+ BadGateway: 502,
3665
+ ServiceUnavailable: 503,
3666
+ GatewayTimeout: 504,
3667
+ HttpVersionNotSupported: 505,
3668
+ VariantAlsoNegotiates: 506,
3669
+ InsufficientStorage: 507,
3670
+ LoopDetected: 508,
3671
+ NotExtended: 510,
3672
+ NetworkAuthenticationRequired: 511
3673
+ };
3674
+ Object.entries(Le).forEach(([e, r]) => {
3675
+ Le[r] = e;
3676
+ });
3677
+ function Ht(e) {
3678
+ const r = new X(e), t = Ct(X.prototype.request, r);
3679
+ return l.extend(t, X.prototype, r, { allOwnKeys: !0 }), l.extend(t, r, null, { allOwnKeys: !0 }), t.create = function(s) {
3680
+ return Ht(K(e, s));
3681
+ }, t;
3682
+ }
3683
+ const _ = Ht(le);
3684
+ _.Axios = X;
3685
+ _.CanceledError = ee;
3686
+ _.CancelToken = Ge;
3687
+ _.isCancel = Lt;
3688
+ _.VERSION = Ut;
3689
+ _.toFormData = Ce;
3690
+ _.AxiosError = C;
3691
+ _.Cancel = _.CanceledError;
3692
+ _.all = function(r) {
3693
+ return Promise.all(r);
3694
+ };
3695
+ _.spread = Qs;
3696
+ _.isAxiosError = Ys;
3697
+ _.mergeConfig = K;
3698
+ _.AxiosHeaders = D;
3699
+ _.formToJSON = (e) => $t(l.isHTMLForm(e) ? new FormData(e) : e);
3700
+ _.getAdapter = jt.getAdapter;
3701
+ _.HttpStatusCode = Le;
3702
+ _.default = _;
3703
+ const Te = (e, r) => {
3704
+ const t = e.__vccOpts || e;
3705
+ for (const [o, s] of r)
3706
+ t[o] = s;
3707
+ return t;
3708
+ }, ei = {
3709
+ name: "DataIAGenerales",
3710
+ components: {
3711
+ GSCSlider: we,
3712
+ GSCDataCard: je
3713
+ },
3714
+ props: {
3715
+ currentSeasonId: {
3716
+ type: [Number, String],
3717
+ required: !0
3718
+ }
3719
+ },
3720
+ data() {
3721
+ return {
3722
+ generalsData: [],
3723
+ loading: !0,
3724
+ tokenPremium: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"
3725
+ };
3726
+ },
3727
+ watch: {
3728
+ currentSeasonId: {
3729
+ immediate: !0,
3730
+ handler(e) {
3731
+ e && this.fetchGeneralsData(e);
3732
+ }
3733
+ }
3734
+ },
3735
+ methods: {
3736
+ async fetchGeneralsData(e) {
3737
+ this.loading = !0;
3738
+ try {
3739
+ const t = await _.create({
3740
+ headers: {
3741
+ Authorization: `${this.tokenPremium}`
3742
+ }
3743
+ }).get(
3744
+ `https://qxk21vj1q7.execute-api.us-east-2.amazonaws.com/prod/seasons/${e}/generals`
3745
+ ), o = [...t.data.generals].sort(() => Math.random() - 0.5);
3746
+ this.generalsData = {
3747
+ ...t.data,
3748
+ generals: o
3749
+ };
3750
+ const s = t.data.generals.find((i) => i.id === "16-g");
3751
+ s && this.$emit("most-productive", {
3752
+ player_id: s.player_id,
3753
+ team_id: s.team_id
3754
+ });
3755
+ } catch (r) {
3756
+ console.error("Error al obtener datos generals:", r);
3757
+ } finally {
3758
+ this.loading = !1;
3759
+ }
3760
+ }
3761
+ }
3762
+ }, ti = (e) => (ie("data-v-3c7040f5"), e = e(), ne(), e), ri = { class: "generales-container" }, oi = { class: "container-generals-cards-ia-generales" }, si = { class: "container-data-cards-ia-generales" }, ii = /* @__PURE__ */ ti(() => /* @__PURE__ */ m("div", { class: "loading-overlay" }, [
3763
+ /* @__PURE__ */ m("div", { class: "loading-animation" })
3764
+ ], -1)), ni = [
3765
+ ii
3766
+ ];
3767
+ function ai(e, r, t, o, s, i) {
3768
+ const n = $("GSCDataCard"), a = $("GSCSlider");
3769
+ return p(), g("div", ri, [
3770
+ m("div", oi, [
3771
+ (p(), W(a, {
3772
+ key: t.currentSeasonId,
3773
+ height: 610,
3774
+ "px-scroll": 339,
3775
+ "scroll-color": "none",
3776
+ "arrows-position": "absolute",
3777
+ "arrows-scroll-hide": !0,
3778
+ "arrows-hide-on-no-scroll": !0,
3779
+ "arrows-background": "rgba(255,255,255,.16)",
3780
+ "arrows-container-bg-l": "none",
3781
+ "arrows-container-bg-r": "none",
3782
+ "background-color": "none",
3783
+ "arrows-margin": 0,
3784
+ "arrows-radius": "50%",
3785
+ "arrows-border": "#ddd",
3786
+ arrows: !s.loading
3787
+ }, {
3788
+ default: q(() => [
3789
+ m("div", si, [
3790
+ s.loading ? (p(), g(P, { key: 0 }, A(4, (d) => m("div", {
3791
+ key: d,
3792
+ class: "skeleton-card",
3793
+ style: k([
3794
+ d > 1 ? { "margin-left": "20px" } : {},
3795
+ d === 4 ? { "margin-right": "30px" } : {}
3796
+ ])
3797
+ }, ni, 4)), 64)) : s.generalsData && s.generalsData.generals ? (p(!0), g(P, { key: 1 }, A(s.generalsData.generals, (d, u) => (p(), W(n, {
3798
+ key: u,
3799
+ data: d,
3800
+ style: k([
3801
+ u > 0 ? { "margin-left": "20px" } : {},
3802
+ u === s.generalsData.generals.length - 1 ? { "margin-right": "30px" } : {}
3803
+ ]),
3804
+ height: "520px"
3805
+ }, null, 8, ["data", "style"]))), 128)) : v("", !0)
3806
+ ])
3807
+ ]),
3808
+ _: 1
3809
+ }, 8, ["arrows-background", "arrows"]))
3810
+ ])
3811
+ ]);
3812
+ }
3813
+ const li = /* @__PURE__ */ Te(ei, [["render", ai], ["__scopeId", "data-v-3c7040f5"]]), di = {
3814
+ name: "DataIAEquipos",
3815
+ components: {
3816
+ GSCSlider: we,
3817
+ GSCDataCard: je
3818
+ },
3819
+ props: {
3820
+ currentSeasonId: Number,
3821
+ tournamentsApiUrl: String,
3822
+ torneoLiderId: {
3823
+ type: Number,
3824
+ required: !0
3825
+ }
3826
+ },
3827
+ data() {
3828
+ return {
3829
+ loading: !0,
3830
+ teams: [],
3831
+ selectedTeam: null,
3832
+ isOpen: !1,
3833
+ teamData: null,
3834
+ tokenPremium: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",
3835
+ additionalCarousels: []
3836
+ };
3837
+ },
3838
+ async created() {
3839
+ try {
3840
+ if (this.currentSeasonId != 0) {
3841
+ const r = await _.create({
3842
+ headers: {
3843
+ Authorization: `${this.tokenPremium}`
3844
+ }
3845
+ }).get(
3846
+ `https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${this.currentSeasonId}`
3847
+ );
3848
+ if (this.teams = Array.isArray(r.data) ? r.data : r.data.teams || [], this.torneoLiderId) {
3849
+ const t = this.teams.find((o) => o.team_id === this.torneoLiderId);
3850
+ t && this.selectTeam(t);
3851
+ }
3852
+ }
3853
+ } catch (e) {
3854
+ console.error("Error al obtener equipos:", e), this.teams = [];
3855
+ }
3856
+ },
3857
+ mounted() {
3858
+ document.addEventListener("click", this.handleClickOutside);
3859
+ },
3860
+ beforeUnmount() {
3861
+ document.removeEventListener("click", this.handleClickOutside);
3862
+ },
3863
+ methods: {
3864
+ toggleDropdown(e) {
3865
+ e.stopPropagation(), this.isOpen = !this.isOpen;
3866
+ },
3867
+ selectTeam(e) {
3868
+ this.selectedTeam = e, this.isOpen = !1, this.handleTeamChange();
3869
+ },
3870
+ async handleTeamChange() {
3871
+ if (this.$emit("team-change", this.selectedTeam), this.selectedTeam && this.currentSeasonId) {
3872
+ this.loading = !0;
3873
+ try {
3874
+ const e = _.create({
3875
+ headers: {
3876
+ Authorization: `${this.tokenPremium}`
3877
+ }
3878
+ });
3879
+ console.log("this.selectedTeam: ", this.selectedTeam);
3880
+ const r = await e.get(
3881
+ `https://qxk21vj1q7.execute-api.us-east-2.amazonaws.com/prod/relevant-data/seasons/${this.currentSeasonId}/teams/${this.selectedTeam.team_id}`,
3882
+ {
3883
+ headers: {
3884
+ Authorization: this.tokenPremium
3885
+ }
3886
+ }
3887
+ );
3888
+ this.teamData = r.data.teams, console.log("this.teamData: ", this.teamData);
3889
+ } catch (e) {
3890
+ console.error("Error al obtener datos del equipo:", e), this.teamData = null;
3891
+ } finally {
3892
+ this.loading = !1;
3893
+ }
3894
+ }
3895
+ },
3896
+ handleClickOutside(e) {
3897
+ const r = this.$el.querySelectorAll(".custom-select");
3898
+ let t = !0;
3899
+ r.forEach((o) => {
3900
+ o.contains(e.target) && (t = !1);
3901
+ }), t && (this.isOpen = !1, this.additionalCarousels.forEach((o) => {
3902
+ o.isOpen = !1;
3903
+ }));
3904
+ },
3905
+ addCarousel() {
3906
+ const e = this.additionalCarousels.length;
3907
+ this.additionalCarousels.push({
3908
+ id: `carousel-${e}`,
3909
+ selectedTeam: null,
3910
+ isOpen: !1,
3911
+ teamData: null,
3912
+ loading: !0
3913
+ }), this.$nextTick(() => {
3914
+ this.initializeSlider(e);
3915
+ });
3916
+ },
3917
+ removeCarousel(e) {
3918
+ this.additionalCarousels.splice(e, 1);
3919
+ },
3920
+ toggleDropdownAdditional(e) {
3921
+ this.additionalCarousels[e].isOpen = !this.additionalCarousels[e].isOpen, this.isOpen = !1, this.additionalCarousels.forEach((r, t) => {
3922
+ t !== e && (r.isOpen = !1);
3923
+ });
3924
+ },
3925
+ async selectTeamAdditional(e, r) {
3926
+ const t = this.additionalCarousels[r];
3927
+ t.selectedTeam = e, t.isOpen = !1, t.loading = !0, t.teamData = null, await this.handleTeamChangeAdditional(r);
3928
+ },
3929
+ async handleTeamChangeAdditional(e) {
3930
+ const r = this.additionalCarousels[e];
3931
+ if (r.selectedTeam && this.currentSeasonId)
3932
+ try {
3933
+ const o = await _.create({
3934
+ headers: {
3935
+ Authorization: `${this.tokenPremium}`
3936
+ }
3937
+ }).get(
3938
+ `https://qxk21vj1q7.execute-api.us-east-2.amazonaws.com/prod/relevant-data/seasons/${this.currentSeasonId}/teams/${r.selectedTeam.team_id}`
3939
+ );
3940
+ r.teamData = o.data;
3941
+ } catch (t) {
3942
+ console.error("Error al obtener datos del equipo adicional:", t), r.teamData = null;
3943
+ } finally {
3944
+ r.loading = !1;
3945
+ }
3946
+ },
3947
+ getAvailableTeamsForCarousel(e) {
3948
+ return this.teams.filter((r) => this.selectedTeam && this.selectedTeam.team_id === r.team_id ? !1 : !this.additionalCarousels.some(
3949
+ (t, o) => o !== e && t.selectedTeam && t.selectedTeam.team_id === r.team_id
3950
+ ));
3951
+ },
3952
+ getModifiedTeamData(e) {
3953
+ return e != null && e.teams ? e.teams.map((r) => ({
3954
+ ...r,
3955
+ id: r.id + "-e"
3956
+ })) : [];
3957
+ },
3958
+ initializeSlider(e) {
3959
+ this.$nextTick(() => {
3960
+ const r = this.$refs[`carouselSlider${e}`];
3961
+ r && r[0] && r[0].$forceUpdate();
3962
+ });
3963
+ }
3964
+ },
3965
+ watch: {
3966
+ async currentSeasonId(e) {
3967
+ if (e && e !== 0)
3968
+ try {
3969
+ this.selectedTeam = null, this.teamData = null, this.additionalCarousels = [];
3970
+ const t = await _.create({
3971
+ headers: {
3972
+ Authorization: `${this.tokenPremium}`
3973
+ }
3974
+ }).get(
3975
+ `https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e}`
3976
+ );
3977
+ this.teams = Array.isArray(t.data) ? t.data : t.data.teams || [], console.log("Equipos actualizados para nueva temporada:", t.data);
3978
+ } catch (r) {
3979
+ console.error("Error al actualizar equipos para nueva temporada:", r), this.teams = [];
3980
+ }
3981
+ },
3982
+ teams: {
3983
+ immediate: !0,
3984
+ handler(e) {
3985
+ if ((e == null ? void 0 : e.length) > 0 && this.torneoLiderId && !this.selectedTeam) {
3986
+ console.log(
3987
+ "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ",
3988
+ this.torneoLiderId,
3989
+ "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% "
3990
+ );
3991
+ const r = e.find((t) => t.team_id === this.torneoLiderId);
3992
+ r && this.selectTeam(r);
3993
+ }
3994
+ }
3995
+ }
3996
+ },
3997
+ computed: {
3998
+ selectedTeams() {
3999
+ const e = [];
4000
+ return this.selectedTeam && e.push(this.selectedTeam), this.additionalCarousels.forEach((r) => {
4001
+ r.selectedTeam && e.push(r.selectedTeam);
4002
+ }), e;
4003
+ },
4004
+ availableTeams() {
4005
+ return this.teams.filter(
4006
+ (e) => !this.selectedTeams.some((r) => r.team_id === e.team_id)
4007
+ );
4008
+ },
4009
+ modifiedTeamData() {
4010
+ return this.getModifiedTeamData(this.teamData);
4011
+ }
4012
+ }
4013
+ }, Ie = (e) => (ie("data-v-5d6e193d"), e = e(), ne(), e), ci = { class: "equipos-container" }, ui = { class: "header-container-equipos" }, hi = { class: "select-container" }, fi = { class: "custom-select" }, pi = ["src", "alt"], mi = /* @__PURE__ */ Ie(() => /* @__PURE__ */ m("div", { class: "select-arrow" }, null, -1)), gi = {
4014
+ key: 1,
4015
+ class: "options-container"
4016
+ }, yi = ["onClick"], wi = ["src", "alt"], bi = { class: "container-generals-cards-ia-equipos" }, Si = { class: "container-data-cards-ia-equipos" }, vi = {
4017
+ key: 0,
4018
+ class: "loading-overlay"
4019
+ }, Ci = /* @__PURE__ */ Ie(() => /* @__PURE__ */ m("div", { class: "loading-animation" }, null, -1)), _i = [
4020
+ Ci
4021
+ ], ki = { class: "header-container-equipos" }, Ti = { class: "select-container" }, Ii = { class: "custom-select" }, xi = ["src", "alt"], Oi = ["onClick"], Pi = /* @__PURE__ */ Ie(() => /* @__PURE__ */ m("div", { class: "select-arrow" }, null, -1)), Ai = {
4022
+ key: 1,
4023
+ class: "options-container"
4024
+ }, Ri = ["onClick"], Ei = ["src", "alt"], Bi = ["onClick"], Ni = { class: "container-generals-cards-ia-equipos" }, Di = { class: "container-data-cards-ia-equipos" }, $i = {
4025
+ key: 0,
4026
+ class: "loading-overlay"
4027
+ }, Li = /* @__PURE__ */ Ie(() => /* @__PURE__ */ m("div", { class: "loading-animation" }, null, -1)), zi = [
4028
+ Li
4029
+ ], Fi = { class: "add-button-container" };
4030
+ function Wi(e, r, t, o, s, i) {
4031
+ var d, u;
4032
+ const n = $("GSCDataCard"), a = $("GSCSlider");
4033
+ return p(), g("div", ci, [
4034
+ m("div", ui, [
4035
+ m("div", hi, [
4036
+ m("div", fi, [
4037
+ s.selectedTeam && s.selectedTeam.logo ? (p(), g("img", {
4038
+ key: 0,
4039
+ src: s.selectedTeam.logo,
4040
+ class: "selected-team-logo",
4041
+ alt: s.selectedTeam.colloquial_name
4042
+ }, null, 8, pi)) : v("", !0),
4043
+ m("div", {
4044
+ class: E(["team-selector", { "has-logo": s.selectedTeam && s.selectedTeam.logo }]),
4045
+ onClick: r[0] || (r[0] = (...c) => i.toggleDropdown && i.toggleDropdown(...c))
4046
+ }, [
4047
+ m("span", null, I(s.selectedTeam ? s.selectedTeam.colloquial_name : "Seleccionar equipo"), 1),
4048
+ mi
4049
+ ], 2),
4050
+ s.isOpen ? (p(), g("div", gi, [
4051
+ (p(!0), g(P, null, A(i.availableTeams, (c) => (p(), g("div", {
4052
+ key: c.id,
4053
+ class: "option",
4054
+ onClick: (h) => i.selectTeam(c)
4055
+ }, [
4056
+ c.logo ? (p(), g("img", {
4057
+ key: 0,
4058
+ src: c.logo,
4059
+ class: "option-team-logo",
4060
+ alt: c.colloquial_name
4061
+ }, null, 8, wi)) : v("", !0),
4062
+ m("span", null, I(c.colloquial_name), 1)
4063
+ ], 8, yi))), 128))
4064
+ ])) : v("", !0)
4065
+ ])
4066
+ ])
4067
+ ]),
4068
+ m("div", bi, [
4069
+ (p(), W(a, {
4070
+ key: `main-slider-${(d = s.selectedTeam) == null ? void 0 : d.team_id}`,
4071
+ height: 510,
4072
+ "px-scroll": 339,
4073
+ "scroll-color": "none",
4074
+ "arrows-position": "absolute",
4075
+ "arrows-scroll-hide": !0,
4076
+ "arrows-hide-on-no-scroll": !0,
4077
+ "arrows-background": "rgba(255,255,255,.16)",
4078
+ "arrows-container-bg-l": "none",
4079
+ "arrows-container-bg-r": "none",
4080
+ "background-color": "none",
4081
+ "arrows-margin": 0,
4082
+ "arrows-radius": "50%",
4083
+ "arrows-border": "#ddd",
4084
+ arrows: !s.loading && ((u = s.teamData) == null ? void 0 : u.length) > 0,
4085
+ ref: "mainSlider"
4086
+ }, {
4087
+ default: q(() => [
4088
+ m("div", Si, [
4089
+ s.loading ? (p(), g(P, { key: 0 }, A(4, (c) => m("div", {
4090
+ key: c,
4091
+ class: "skeleton-card",
4092
+ style: k([
4093
+ c > 1 ? { "margin-left": "20px" } : {},
4094
+ c === 4 ? { "margin-right": "30px" } : {}
4095
+ ])
4096
+ }, [
4097
+ s.selectedTeam ? (p(), g("div", vi, _i)) : v("", !0)
4098
+ ], 4)), 64)) : s.teamData ? (p(!0), g(P, { key: 1 }, A(s.teamData, (c, h) => (p(), W(n, {
4099
+ key: h,
4100
+ data: c,
4101
+ class: "data-card"
4102
+ }, null, 8, ["data"]))), 128)) : v("", !0)
4103
+ ])
4104
+ ]),
4105
+ _: 1
4106
+ }, 8, ["arrows-background", "arrows"]))
4107
+ ]),
4108
+ (p(!0), g(P, null, A(s.additionalCarousels, (c, h) => {
4109
+ var S, y;
4110
+ return p(), g("div", {
4111
+ key: h,
4112
+ class: "additional-carousel"
4113
+ }, [
4114
+ m("div", ki, [
4115
+ m("div", Ti, [
4116
+ m("div", Ii, [
4117
+ c.selectedTeam && c.selectedTeam.logo ? (p(), g("img", {
4118
+ key: 0,
4119
+ src: c.selectedTeam.logo,
4120
+ class: "selected-team-logo",
4121
+ alt: c.selectedTeam.team_name
4122
+ }, null, 8, xi)) : v("", !0),
4123
+ m("div", {
4124
+ class: E(["team-selector", { "has-logo": c.selectedTeam && c.selectedTeam.logo }]),
4125
+ onClick: (f) => i.toggleDropdownAdditional(h)
4126
+ }, [
4127
+ m("span", null, I(c.selectedTeam ? c.selectedTeam.team_name : "Seleccionar equipo"), 1),
4128
+ Pi
4129
+ ], 10, Oi),
4130
+ c.isOpen ? (p(), g("div", Ai, [
4131
+ (p(!0), g(P, null, A(i.getAvailableTeamsForCarousel(h), (f) => (p(), g("div", {
4132
+ key: f.id,
4133
+ class: "option",
4134
+ onClick: (w) => i.selectTeamAdditional(f, h)
4135
+ }, [
4136
+ f.logo ? (p(), g("img", {
4137
+ key: 0,
4138
+ src: f.logo,
4139
+ class: "option-team-logo",
4140
+ alt: f.team_name
4141
+ }, null, 8, Ei)) : v("", !0),
4142
+ m("span", null, I(f.team_name), 1)
4143
+ ], 8, Ri))), 128))
4144
+ ])) : v("", !0)
4145
+ ])
4146
+ ]),
4147
+ m("div", {
4148
+ class: "remove-carousel-btn",
4149
+ onClick: (f) => i.removeCarousel(h)
4150
+ }, "×", 8, Bi)
4151
+ ]),
4152
+ m("div", Ni, [
4153
+ (p(), W(a, {
4154
+ key: `carousel-slider-${h}-${(S = c.selectedTeam) == null ? void 0 : S.team_id}`,
4155
+ height: 510,
4156
+ "px-scroll": 339,
4157
+ "scroll-color": "none",
4158
+ "arrows-position": "absolute",
4159
+ "arrows-scroll-hide": !0,
4160
+ "arrows-hide-on-no-scroll": !0,
4161
+ "arrows-background": "rgba(255,255,255,.16)",
4162
+ "arrows-container-bg-l": "none",
4163
+ "arrows-container-bg-r": "none",
4164
+ "background-color": "none",
4165
+ "arrows-margin": 0,
4166
+ "arrows-radius": "50%",
4167
+ "arrows-border": "#ddd",
4168
+ arrows: !c.loading && ((y = c.teamData) == null ? void 0 : y.teams),
4169
+ ref_for: !0,
4170
+ ref: `carouselSlider${h}`,
4171
+ onMounted: (f) => i.initializeSlider(h)
4172
+ }, {
4173
+ default: q(() => [
4174
+ m("div", Di, [
4175
+ c.loading ? (p(), g(P, { key: 0 }, A(4, (f) => m("div", {
4176
+ key: f,
4177
+ class: "skeleton-card",
4178
+ style: k([
4179
+ f > 1 ? { "margin-left": "20px" } : {},
4180
+ f === 4 ? { "margin-right": "30px" } : {}
4181
+ ])
4182
+ }, [
4183
+ c.selectedTeam ? (p(), g("div", $i, zi)) : v("", !0)
4184
+ ], 4)), 64)) : c.teamData && c.teamData.teams ? (p(!0), g(P, { key: 1 }, A(c.teamData.teams, (f, w) => (p(), W(n, {
4185
+ key: w,
4186
+ data: f,
4187
+ class: "data-card"
4188
+ }, null, 8, ["data"]))), 128)) : v("", !0)
4189
+ ])
4190
+ ]),
4191
+ _: 2
4192
+ }, 1032, ["arrows-background", "arrows", "onMounted"]))
4193
+ ])
4194
+ ]);
4195
+ }), 128)),
4196
+ m("div", Fi, [
4197
+ m("div", {
4198
+ class: "carousel-placeholder-equipos",
4199
+ onClick: r[1] || (r[1] = (...c) => i.addCarousel && i.addCarousel(...c))
4200
+ }, " Agregar carrusel de jugadores ")
4201
+ ])
4202
+ ]);
4203
+ }
4204
+ const Mi = /* @__PURE__ */ Te(di, [["render", Wi], ["__scopeId", "data-v-5d6e193d"]]), qi = {
4205
+ name: "DataIAJugadores",
4206
+ components: {
4207
+ "g-s-c-slider": we,
4208
+ "g-s-c-data-card": je
4209
+ },
4210
+ props: {
4211
+ currentSeasonId: {
4212
+ type: Number,
4213
+ required: !0
4214
+ },
4215
+ mostProductivePlayer: {
4216
+ type: Object,
4217
+ required: !0
4218
+ },
4219
+ isFemale: {
4220
+ type: Number,
4221
+ default: 0
4222
+ }
4223
+ },
4224
+ data() {
4225
+ return {
4226
+ containers: [
4227
+ {
4228
+ id: Date.now(),
4229
+ isOpen: !1,
4230
+ selectedTeam: null,
4231
+ selectedPlayer: null,
4232
+ players: [],
4233
+ isPlayerOpen: !1,
4234
+ playerSearchQuery: "",
4235
+ playerData: null
4236
+ }
4237
+ ],
4238
+ maxContainers: 20,
4239
+ // Límite máximo de contenedores
4240
+ teams: [],
4241
+ tokenPremium: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",
4242
+ filteredTeams: [],
4243
+ searchQuery: "",
4244
+ loading: !0,
4245
+ playerData: null,
4246
+ selectedPlayer: null
4247
+ };
4248
+ },
4249
+ computed: {
4250
+ filteredPlayers() {
4251
+ return (e) => {
4252
+ const r = this.containers[e];
4253
+ if (!r) return [];
4254
+ const t = this.containers.filter((s, i) => i !== e).map((s) => s.selectedPlayer).filter(Boolean).map((s) => s.player_id);
4255
+ let o = r.players.filter(
4256
+ (s) => !t.includes(s.player_id)
4257
+ );
4258
+ if (r.playerSearchQuery) {
4259
+ const s = r.playerSearchQuery.toLowerCase();
4260
+ o = o.filter(
4261
+ (i) => i.name.toLowerCase().includes(s)
4262
+ );
4263
+ }
4264
+ return o;
4265
+ };
4266
+ }
4267
+ },
4268
+ watch: {
4269
+ currentSeasonId: {
4270
+ immediate: !0,
4271
+ async handler(e) {
4272
+ var r, t;
4273
+ if (e && e !== 0) {
4274
+ const o = {
4275
+ id: ((r = this.containers[0]) == null ? void 0 : r.id) || Date.now(),
4276
+ isOpen: !1,
4277
+ selectedTeam: null,
4278
+ selectedPlayer: null,
4279
+ players: [],
4280
+ isPlayerOpen: !1,
4281
+ playerSearchQuery: "",
4282
+ playerData: null
4283
+ };
4284
+ this.containers = [o], await this.loadTeams(e), (t = this.mostProductivePlayer) != null && t.team_id && await this.autoSelectProductivePlayer();
4285
+ }
4286
+ }
4287
+ },
4288
+ mostProductivePlayer: {
4289
+ immediate: !0,
4290
+ async handler(e) {
4291
+ e != null && e.team_id && this.teams.length > 0 && !this.containers[0].selectedPlayer && await this.autoSelectProductivePlayer();
4292
+ }
4293
+ }
4294
+ },
4295
+ methods: {
4296
+ async loadTeams(e) {
4297
+ if (!(!e || e === 0))
4298
+ try {
4299
+ const r = _.create({
4300
+ headers: {
4301
+ Authorization: `${this.tokenPremium}`
4302
+ }
4303
+ }), { data: t } = await r.get(
4304
+ `https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e}`
4305
+ );
4306
+ this.teams = t.teams, this.filteredTeams = [...this.teams];
4307
+ } catch (r) {
4308
+ console.error("Error al cargar equipos:", r);
4309
+ }
4310
+ },
4311
+ async loadPlayers(e, r, t) {
4312
+ var o;
4313
+ try {
4314
+ const s = _.create({
4315
+ headers: {
4316
+ Authorization: `${this.tokenPremium}`
4317
+ }
4318
+ }), { data: i } = await s.get(
4319
+ `https://pa3kubpuhg.execute-api.us-west-2.amazonaws.com/prod/playersByTeamAndSeason/${r}/${e}`
4320
+ );
4321
+ if (this.containers[t] = {
4322
+ ...this.containers[t],
4323
+ players: i[0].players
4324
+ }, t === 0 && ((o = this.mostProductivePlayer) != null && o.player_id)) {
4325
+ const n = i[0].players.find(
4326
+ (a) => a.player_id === this.mostProductivePlayer.player_id
4327
+ );
4328
+ n && await this.selectPlayer(n, 0);
4329
+ }
4330
+ } catch (s) {
4331
+ console.error("Error al cargar jugadores:", s);
4332
+ }
4333
+ },
4334
+ toggleDropdown(e) {
4335
+ this.containers[e].isOpen = !this.containers[e].isOpen, this.containers[e].isOpen && this.$nextTick(() => {
4336
+ this.$refs.searchInput && this.$refs.searchInput.focus();
4337
+ });
4338
+ },
4339
+ selectTeam(e, r) {
4340
+ var o;
4341
+ if (((o = this.containers[r].selectedTeam) == null ? void 0 : o.team_id) === e.team_id) {
4342
+ this.containers[r].isOpen = !1;
4343
+ return;
4344
+ }
4345
+ const t = {
4346
+ ...this.containers[r],
4347
+ selectedTeam: e,
4348
+ isOpen: !1,
4349
+ selectedPlayer: null,
4350
+ players: [],
4351
+ isPlayerOpen: !1,
4352
+ playerSearchQuery: "",
4353
+ playerData: null
4354
+ };
4355
+ this.containers[r] = t, this.loadPlayers(e.team_id, this.currentSeasonId, r), this.$emit("team-selected", { team: e, containerIndex: r });
4356
+ },
4357
+ filterTeams() {
4358
+ if (!this.searchQuery) {
4359
+ this.filteredTeams = [...this.teams];
4360
+ return;
4361
+ }
4362
+ const e = this.searchQuery.toLowerCase();
4363
+ this.filteredTeams = this.teams.filter((r) => r.name.toLowerCase().includes(e));
4364
+ },
4365
+ handlePlayerChange() {
4366
+ this.$emit("player-change", this.selectedPlayer);
4367
+ },
4368
+ closeTeamDropdown(e) {
4369
+ this.containers.forEach((r, t) => {
4370
+ const o = this.$refs[`teamSelect${t}`];
4371
+ o && !o[0].contains(e.target) && (r.isOpen = !1, this.searchQuery = "", this.filteredTeams = [...this.teams]);
4372
+ });
4373
+ },
4374
+ closePlayerDropdown(e) {
4375
+ const r = this.$refs.playerSelect;
4376
+ r && (Array.isArray(r) ? !r.some((o) => o && o.contains(e.target)) && this.containers.forEach((o) => {
4377
+ o.isPlayerOpen = !1;
4378
+ }) : r && !r.contains(e.target) && this.containers.forEach((t) => {
4379
+ t.isPlayerOpen = !1;
4380
+ }));
4381
+ },
4382
+ handleTeamChange() {
4383
+ this.selectedTeam && this.$emit("team-change", this.selectedTeam);
4384
+ },
4385
+ togglePlayerDropdown(e) {
4386
+ this.containers[e].isPlayerOpen = !this.containers[e].isPlayerOpen;
4387
+ },
4388
+ async selectPlayer(e, r) {
4389
+ const t = this.containers[r];
4390
+ if (t.selectedPlayer = e, t.isPlayerOpen = !1, t.loading = !0, t.playerData = null, t.selectedPlayer && this.currentSeasonId)
4391
+ try {
4392
+ const o = _.create({
4393
+ headers: {
4394
+ Authorization: `${this.tokenPremium}`
4395
+ }
4396
+ }), { data: s } = await o.get(
4397
+ `https://qxk21vj1q7.execute-api.us-east-2.amazonaws.com/prod/relevant-data/seasons/${this.currentSeasonId}/teams/${t.selectedTeam.team_id}/players/${e.player_id}`
4398
+ );
4399
+ t.playerData = s.players[e.player_id];
4400
+ } catch (o) {
4401
+ console.error("Error al cargar datos del jugador:", o), t.playerData = null;
4402
+ } finally {
4403
+ t.loading = !1;
4404
+ }
4405
+ this.$emit("player-selected", e);
4406
+ },
4407
+ clearSearch(e) {
4408
+ this.containers[e].playerSearchQuery = "";
4409
+ },
4410
+ addContainer() {
4411
+ this.containers.length < this.maxContainers && this.containers.push({
4412
+ id: Date.now(),
4413
+ isOpen: !1,
4414
+ selectedTeam: null,
4415
+ selectedPlayer: null,
4416
+ players: [],
4417
+ isPlayerOpen: !1,
4418
+ playerSearchQuery: "",
4419
+ playerData: null
4420
+ });
4421
+ },
4422
+ removeContainer(e) {
4423
+ e > 0 && this.containers.splice(e, 1);
4424
+ },
4425
+ async autoSelectProductivePlayer() {
4426
+ console.log("Auto-seleccionando jugador productivo:", this.mostProductivePlayer);
4427
+ const e = this.teams.find((r) => r.team_id === this.mostProductivePlayer.team_id);
4428
+ if (e) {
4429
+ this.containers[0] = {
4430
+ ...this.containers[0],
4431
+ selectedTeam: e,
4432
+ isOpen: !1
4433
+ }, await this.loadPlayers(e.team_id, this.currentSeasonId, 0), await new Promise((t) => setTimeout(t, 100));
4434
+ const r = this.containers[0].players.find(
4435
+ (t) => t.player_id === this.mostProductivePlayer.player_id
4436
+ );
4437
+ r && await this.selectPlayer(r, 0);
4438
+ }
4439
+ },
4440
+ addCarousel() {
4441
+ const e = this.additionalCarousels.length;
4442
+ this.additionalCarousels.push({
4443
+ id: `carousel-${e}`,
4444
+ selectedPlayer: null,
4445
+ isOpen: !1,
4446
+ playerData: null,
4447
+ loading: !0
4448
+ // Iniciamos con loading true para mostrar el skeleton
4449
+ }), this.$nextTick(() => {
4450
+ this.initializeSlider(e);
4451
+ });
4452
+ },
4453
+ async handlePlayerChange() {
4454
+ if (this.selectedPlayer && this.currentSeasonId)
4455
+ try {
4456
+ const r = await _.create({
4457
+ headers: {
4458
+ Authorization: `${this.tokenPremium}`
4459
+ }
4460
+ }).get(
4461
+ `https://qxk21vj1q7.execute-api.us-east-2.amazonaws.com/prod/relevant-data/seasons/${this.currentSeasonId}/players/${this.selectedPlayer.player_id}`
4462
+ );
4463
+ this.playerData = r.data.players;
4464
+ } catch (e) {
4465
+ console.error("Error al obtener datos del jugador:", e), this.playerData = null;
4466
+ } finally {
4467
+ this.loading = !1;
4468
+ }
4469
+ },
4470
+ async handlePlayerChangeAdditional(e) {
4471
+ const r = this.additionalCarousels[e];
4472
+ if (r.selectedPlayer && this.currentSeasonId)
4473
+ try {
4474
+ const o = await _.create({
4475
+ headers: {
4476
+ Authorization: `${this.tokenPremium}`
4477
+ }
4478
+ }).get(
4479
+ `https://qxk21vj1q7.execute-api.us-east-2.amazonaws.com/prod/relevant-data/seasons/${this.currentSeasonId}/players/${r.selectedPlayer.player_id}`
4480
+ );
4481
+ r.playerData = o.data;
4482
+ } catch (t) {
4483
+ console.error("Error al obtener datos del jugador adicional:", t), r.playerData = null;
4484
+ } finally {
4485
+ r.loading = !1;
4486
+ }
4487
+ },
4488
+ formatPlayerName(e) {
4489
+ const r = e.split(",");
4490
+ if (r.length === 1) return e;
4491
+ const t = r[0].trim();
4492
+ return `${r[1].trim()}, ${t}`;
4493
+ }
4494
+ },
4495
+ mounted() {
4496
+ this.loadTeams(), document.addEventListener("click", this.closeTeamDropdown), document.addEventListener("click", this.closePlayerDropdown);
4497
+ },
4498
+ beforeUnmount() {
4499
+ document.removeEventListener("click", this.closeTeamDropdown), document.removeEventListener("click", this.closePlayerDropdown);
4500
+ }
4501
+ }, xe = (e) => (ie("data-v-491cc8a4"), e = e(), ne(), e), ji = { class: "jugadores-container" }, Ui = ["onClick"], Hi = /* @__PURE__ */ xe(() => /* @__PURE__ */ m("span", null, "×", -1)), Ji = [
4502
+ Hi
4503
+ ], Gi = { class: "header-container-jugadores" }, Vi = { class: "custom-select" }, Xi = ["src", "alt"], Zi = ["onClick"], Ki = /* @__PURE__ */ xe(() => /* @__PURE__ */ m("div", { class: "select-arrow" }, null, -1)), Qi = {
4504
+ key: 1,
4505
+ class: "options-container"
4506
+ }, Yi = ["onClick"], en = ["src", "alt"], tn = { class: "custom-select" }, rn = ["src", "alt"], on = ["onClick"], sn = /* @__PURE__ */ xe(() => /* @__PURE__ */ m("div", { class: "select-arrow" }, null, -1)), nn = {
4507
+ key: 1,
4508
+ class: "options-container"
4509
+ }, an = {
4510
+ key: 0,
4511
+ class: "search-box"
4512
+ }, ln = { class: "search-input-container" }, dn = ["onUpdate:modelValue"], cn = ["onClick"], un = ["onClick"], hn = ["src", "alt"], fn = { class: "container-generals-cards-ia-jugadores" }, pn = { class: "container-data-cards-ia-jugadores" }, mn = {
4513
+ key: 1,
4514
+ class: "skeleton-cards-container"
4515
+ }, gn = {
4516
+ key: 0,
4517
+ class: "loading-overlay"
4518
+ }, yn = /* @__PURE__ */ xe(() => /* @__PURE__ */ m("div", { class: "loading-animation" }, null, -1)), wn = [
4519
+ yn
4520
+ ];
4521
+ function bn(e, r, t, o, s, i) {
4522
+ const n = $("g-s-c-data-card"), a = $("g-s-c-slider");
4523
+ return p(), g("div", ji, [
4524
+ (p(!0), g(P, null, A(s.containers, (d, u) => {
4525
+ var c;
4526
+ return p(), g("div", {
4527
+ key: `container-${d.id}`,
4528
+ class: "container-section"
4529
+ }, [
4530
+ u > 0 ? (p(), g("div", {
4531
+ key: 0,
4532
+ class: "close-container-button",
4533
+ onClick: (h) => i.removeContainer(u)
4534
+ }, Ji, 8, Ui)) : v("", !0),
4535
+ m("div", Gi, [
4536
+ m("div", {
4537
+ class: "select-container",
4538
+ ref_for: !0,
4539
+ ref: `teamSelect${u}`
4540
+ }, [
4541
+ m("div", Vi, [
4542
+ d.selectedTeam && d.selectedTeam.logo ? (p(), g("img", {
4543
+ key: 0,
4544
+ src: d.selectedTeam.logo,
4545
+ class: "selected-team-logo",
4546
+ alt: d.selectedTeam.colloquial_name
4547
+ }, null, 8, Xi)) : v("", !0),
4548
+ m("div", {
4549
+ class: E(["team-selector", { "has-logo": d.selectedTeam && d.selectedTeam.logo }]),
4550
+ onClick: (h) => i.toggleDropdown(u)
4551
+ }, [
4552
+ m("span", null, I(d.selectedTeam ? d.selectedTeam.colloquial_name : "Seleccionar equipo"), 1),
4553
+ Ki
4554
+ ], 10, Zi),
4555
+ d.isOpen ? (p(), g("div", Qi, [
4556
+ (p(!0), g(P, null, A(s.filteredTeams, (h) => (p(), g("div", {
4557
+ key: h.id,
4558
+ class: "option",
4559
+ onClick: (S) => i.selectTeam(h, u)
4560
+ }, [
4561
+ h.logo ? (p(), g("img", {
4562
+ key: 0,
4563
+ src: h.logo,
4564
+ class: "option-team-logo",
4565
+ alt: h.colloquial_name
4566
+ }, null, 8, en)) : v("", !0),
4567
+ m("span", null, I(h.colloquial_name), 1)
4568
+ ], 8, Yi))), 128))
4569
+ ])) : v("", !0)
4570
+ ])
4571
+ ], 512),
4572
+ m("div", {
4573
+ class: "select-container player-select",
4574
+ ref_for: !0,
4575
+ ref: "playerSelect"
4576
+ }, [
4577
+ m("div", tn, [
4578
+ d.selectedPlayer && d.selectedPlayer.photo ? (p(), g("img", {
4579
+ key: 0,
4580
+ src: d.selectedPlayer.photo,
4581
+ class: "selected-team-logo",
4582
+ alt: d.selectedPlayer.name
4583
+ }, null, 8, rn)) : v("", !0),
4584
+ m("div", {
4585
+ class: E(["team-selector", {
4586
+ "has-logo": d.selectedPlayer && d.selectedPlayer.photo,
4587
+ disabled: !d.selectedTeam || d.players.length === 0
4588
+ }]),
4589
+ onClick: (h) => d.selectedTeam && i.togglePlayerDropdown(u)
4590
+ }, [
4591
+ m("span", null, I(d.selectedPlayer ? i.formatPlayerName(d.selectedPlayer.name) : "Seleccionar jugador"), 1),
4592
+ sn
4593
+ ], 10, on),
4594
+ d.isPlayerOpen ? (p(), g("div", nn, [
4595
+ d.players.length > 0 ? (p(), g("div", an, [
4596
+ m("div", ln, [
4597
+ Q(m("input", {
4598
+ type: "text",
4599
+ "onUpdate:modelValue": (h) => d.playerSearchQuery = h,
4600
+ placeholder: "Buscar jugador...",
4601
+ onClick: r[0] || (r[0] = Xe(() => {
4602
+ }, ["stop"]))
4603
+ }, null, 8, dn), [
4604
+ [Xt, d.playerSearchQuery]
4605
+ ]),
4606
+ d.playerSearchQuery ? (p(), g("button", {
4607
+ key: 0,
4608
+ class: "clear-search",
4609
+ onClick: Xe((h) => i.clearSearch(u), ["stop"])
4610
+ }, " ✕ ", 8, cn)) : v("", !0)
4611
+ ])
4612
+ ])) : v("", !0),
4613
+ (p(!0), g(P, null, A(i.filteredPlayers(u), (h) => (p(), g("div", {
4614
+ key: h.player_id,
4615
+ class: E(["option", {
4616
+ selected: d.selectedPlayer && d.selectedPlayer.player_id === h.player_id
4617
+ }]),
4618
+ onClick: (S) => i.selectPlayer(h, u)
4619
+ }, [
4620
+ h.photo ? (p(), g("img", {
4621
+ key: 0,
4622
+ src: h.photo,
4623
+ class: "option-team-logo",
4624
+ alt: h.name
4625
+ }, null, 8, hn)) : v("", !0),
4626
+ m("span", null, I(i.formatPlayerName(h.name)), 1)
4627
+ ], 10, un))), 128))
4628
+ ])) : v("", !0)
4629
+ ])
4630
+ ], 512)
4631
+ ]),
4632
+ m("div", fn, [
4633
+ (p(), W(a, {
4634
+ ref_for: !0,
4635
+ ref: "slider",
4636
+ key: `slider-${d.id}-${(c = d.selectedPlayer) == null ? void 0 : c.player_id}`,
4637
+ height: 510,
4638
+ "px-scroll": 339,
4639
+ "scroll-color": "none",
4640
+ "arrows-position": "absolute",
4641
+ "arrows-scroll-hide": !0,
4642
+ "arrows-hide-on-no-scroll": !0,
4643
+ "arrows-padding": 0,
4644
+ "arrows-background": "rgba(255,255,255,.16)",
4645
+ "arrows-container-bg-l": "none",
4646
+ "arrows-container-bg-r": "none",
4647
+ "background-color": "none",
4648
+ "arrows-margin": 0,
4649
+ "arrows-radius": "50%",
4650
+ "arrows-border": "#ddd",
4651
+ arrows: d.selectedPlayer && d.playerData
4652
+ }, {
4653
+ default: q(() => [
4654
+ m("div", pn, [
4655
+ d.selectedPlayer && d.playerData ? (p(!0), g(P, { key: 0 }, A(d.playerData, (h, S) => (p(), g("div", { key: S }, [
4656
+ F(n, { data: h }, null, 8, ["data"])
4657
+ ]))), 128)) : (p(), g("div", mn, [
4658
+ (p(), g(P, null, A(4, (h) => m("div", {
4659
+ key: h,
4660
+ class: "skeleton-card"
4661
+ }, [
4662
+ d.selectedPlayer && d.loading ? (p(), g("div", gn, wn)) : v("", !0)
4663
+ ])), 64))
4664
+ ]))
4665
+ ])
4666
+ ]),
4667
+ _: 2
4668
+ }, 1032, ["arrows-background", "arrows"]))
4669
+ ])
4670
+ ]);
4671
+ }), 128)),
4672
+ s.containers.length < s.maxContainers ? (p(), g("div", {
4673
+ key: 0,
4674
+ class: "carousel-placeholder-jugadores",
4675
+ onClick: r[1] || (r[1] = (...d) => i.addContainer && i.addContainer(...d))
4676
+ }, " Agregar carrusel de " + I(t.isFemale ? "jugadoras" : "jugadores"), 1)) : v("", !0)
4677
+ ]);
4678
+ }
4679
+ const Sn = /* @__PURE__ */ Te(qi, [["render", bn], ["__scopeId", "data-v-491cc8a4"]]), vn = {
4680
+ name: "DataIA",
4681
+ components: {
4682
+ GSCSlider: we,
4683
+ GscSwitchComponent: yr,
4684
+ GSCSeasonSelect: Wr,
4685
+ GSCTournamentSelect: fo,
4686
+ DataIAGenerales: li,
4687
+ DataIAEquipos: Mi,
4688
+ DataIAJugadores: Sn
4689
+ },
4690
+ props: {
4691
+ tournamentsApiUrl: {
4692
+ type: String,
4693
+ default: ""
4694
+ }
4695
+ },
4696
+ computed: {
4697
+ containerConfig() {
4698
+ return this.parentWidth, {
4699
+ width: this.parentWidth
4700
+ };
4701
+ },
4702
+ responsiveConfig() {
4703
+ const e = this.parentWidth;
4704
+ return {
4705
+ tabsWidth: e <= 460 ? `${Math.floor((e - 5) / 3)}px` : e < 680 ? "148px" : e <= 720 ? "122px" : (
4706
+ // ... resto de la lógica ...
4707
+ "173px"
4708
+ ),
4709
+ selectWidth: e <= 460 ? `${Math.floor((e - 10) / 2)}px` : e < 680 ? "218px" : "147px",
4710
+ fontSize: e <= 330 ? "font-size-xs" : e <= 460 ? "font-size-sm" : "font-size-default"
4711
+ };
4712
+ },
4713
+ sizeTabsMP() {
4714
+ const e = this.parentWidth;
4715
+ return e <= 480 ? `${Math.min(Math.floor((e - 72) / 3), 140)}px` : e < 680 ? "135px" : e < 690 ? "95px" : e <= 730 ? "100px" : e <= 760 ? "115px" : e <= 800 ? "125px" : "140px";
4716
+ },
4717
+ selectWidth() {
4718
+ const e = this.parentWidth;
4719
+ return e <= 460 ? `${Math.min(Math.floor((e - 15) / 2), 200)}px` : e < 680 ? "200px" : "147px";
4720
+ },
4721
+ headerFontSize() {
4722
+ const e = this.parentWidth;
4723
+ return e <= 330 ? "font-size-xs" : e <= 460 ? "font-size-sm" : "font-size-default";
4724
+ },
4725
+ disabledOptions() {
4726
+ return {
4727
+ Equipos: !this.torneoLiderId,
4728
+ Jugadores: !this.mostProductivePlayerId
4729
+ };
4730
+ },
4731
+ switchOptions() {
4732
+ return ["Generales", "Equipos", this.isFemale ? "Jugadoras" : "Jugadores"];
4733
+ }
4734
+ },
4735
+ data() {
4736
+ return {
4737
+ containerWidth: 0,
4738
+ containerSizeClass: "",
4739
+ resizeObserver: null,
4740
+ parentWidth: 0,
4741
+ tokenPremium: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",
4742
+ optionSelected: "Generales",
4743
+ selectedTournament: { seasons: [] },
4744
+ tournamentSelectedObj: {},
4745
+ tournamentType: "",
4746
+ seasonActive: 0,
4747
+ selectWidthGenerales: 200,
4748
+ selectWidthEquipos: 200,
4749
+ selectWidthJugadores: 200,
4750
+ mostProductivePlayerId: null,
4751
+ generalTableData: null,
4752
+ torneoLiderId: null,
4753
+ isFemale: !1
4754
+ };
4755
+ },
4756
+ watch: {
4757
+ seasonActive: {
4758
+ immediate: !0,
4759
+ async handler(e) {
4760
+ e && e !== 0 && await this.fetchGeneralTable(e);
4761
+ }
4762
+ }
4763
+ },
4764
+ mounted() {
4765
+ this.updateContainerWidth(), this.resizeObserver = new ResizeObserver((e) => {
4766
+ const r = e[0];
4767
+ r && (this.parentWidth = r.contentRect.width, this.updateContainerWidth());
4768
+ }), this.$refs.container && this.resizeObserver.observe(this.$refs.container), window.addEventListener("resize", this.handleResize);
4769
+ },
4770
+ beforeUnmount() {
4771
+ this.resizeObserver && this.resizeObserver.disconnect(), window.removeEventListener("resize", this.handleResize);
4772
+ },
4773
+ methods: {
4774
+ async selectedSeason(e) {
4775
+ console.log("Valores: season: ", e), this.seasonActive !== e.id && (this.seasonActive = e.id, this.optionSelected = "Generales", this.$emit("change-season-id", e.id));
4776
+ },
4777
+ async changeTournament(e) {
4778
+ console.log("tournament: ", e), e.id !== this.selectedTournament.id && (this.selectedTournament = e, this.tournamentType = e.tournament_type, this.isFemale = e.is_female === 1, this.optionSelected = "Generales", this.tournamentSelectedObj = {
4779
+ propName: "id",
4780
+ value: e.id,
4781
+ is_female: this.isFemale
4782
+ });
4783
+ },
4784
+ changeTabsGeneral(e) {
4785
+ e === "Equipos" && !this.torneoLiderId || (e === "Jugadores" || e === "Jugadoras") && !this.mostProductivePlayerId || (this.optionSelected = e);
4786
+ },
4787
+ handleResize() {
4788
+ this.$refs.container && (this.parentWidth = this.$refs.container.offsetWidth, this.updateContainerWidth());
4789
+ },
4790
+ updateContainerWidth() {
4791
+ this.$refs.container && (this.$refs.container.offsetHeight, this.parentWidth >= 1200 ? (this.containerWidth = 1200, this.containerSizeClass = "size-xl") : this.parentWidth >= 992 ? (this.containerWidth = this.parentWidth - 48, this.containerSizeClass = "size-lg") : this.parentWidth >= 680 ? (this.containerWidth = this.parentWidth - 32, this.containerSizeClass = "size-md") : (this.containerWidth = this.parentWidth - 16, this.containerSizeClass = "size-sm"));
4792
+ },
4793
+ handleMostProductive(e) {
4794
+ this.mostProductivePlayerId = e;
4795
+ },
4796
+ async fetchGeneralTable(e) {
4797
+ var r, t, o, s, i;
4798
+ try {
4799
+ const a = await _.create({
4800
+ headers: {
4801
+ Authorization: `${this.tokenPremium}`
4802
+ }
4803
+ }).get(
4804
+ `https://jfxv8fqkn3.execute-api.us-west-2.amazonaws.com/prod/generalTable/${e}`
4805
+ );
4806
+ if (this.generalTableData = a.data, this.tournamentType === 0 && ((t = (r = this.generalTableData) == null ? void 0 : r.data) == null ? void 0 : t.length) > 0)
4807
+ this.torneoLiderId = this.generalTableData.data[0].team_id;
4808
+ else if (this.tournamentType === 2 && ((s = (o = this.generalTableData) == null ? void 0 : o.data) == null ? void 0 : s.length) > 0) {
4809
+ const d = [
4810
+ 175,
4811
+ 392,
4812
+ 550,
4813
+ 943,
4814
+ 962,
4815
+ 1054,
4816
+ 1402,
4817
+ 1405,
4818
+ 1410,
4819
+ 1492,
4820
+ 2098,
4821
+ 2156,
4822
+ 2304,
4823
+ 2315,
4824
+ 2340,
4825
+ 2343,
4826
+ 2346,
4827
+ 2349,
4828
+ 2730,
4829
+ 2832,
4830
+ 2950,
4831
+ 3036,
4832
+ 3407,
4833
+ 3454
4834
+ ], u = [...this.generalTableData.data].sort((h, S) => h.team_name.localeCompare(S.team_name)), c = u.find((h) => d.includes(h.team_id));
4835
+ this.torneoLiderId = c ? c.team_id : u[0].team_id, this.generalTableData.data = u;
4836
+ } else if (this.tournamentType === 1 && ((i = this.generalTableData) != null && i.groups)) {
4837
+ const u = this.generalTableData.groups.reduce((S, y) => S.concat(y.data || []), []).sort((S, y) => S.team_name.localeCompare(y.team_name)), c = [
4838
+ 175,
4839
+ 392,
4840
+ 550,
4841
+ 943,
4842
+ 962,
4843
+ 1054,
4844
+ 1402,
4845
+ 1405,
4846
+ 1410,
4847
+ 1492,
4848
+ 2098,
4849
+ 2156,
4850
+ 2304,
4851
+ 2315,
4852
+ 2340,
4853
+ 2343,
4854
+ 2346,
4855
+ 2349,
4856
+ 2730,
4857
+ 2832,
4858
+ 2950,
4859
+ 3036,
4860
+ 3407,
4861
+ 3454
4862
+ ], h = u.find((S) => c.includes(S.team_id));
4863
+ this.torneoLiderId = h ? h.team_id : u[0].team_id, this.generalTableData.data = u;
4864
+ }
4865
+ } catch (n) {
4866
+ console.error("Error al obtener datos de la tabla general:", n);
4867
+ }
4868
+ }
4869
+ }
4870
+ }, Cn = {
4871
+ class: "data-ia-container",
4872
+ ref: "container"
4873
+ }, _n = { class: "data-ia-header" }, kn = { class: "tabs" }, Tn = { class: "filters" }, In = { class: "league-select" }, xn = { class: "season-select" };
4874
+ function On(e, r, t, o, s, i) {
4875
+ const n = $("GscSwitchComponent"), a = $("GSCTournamentSelect"), d = $("GSCSeasonSelect"), u = $("DataIAGenerales"), c = $("DataIAEquipos"), h = $("DataIAJugadores");
4876
+ return p(), g("div", Cn, [
4877
+ m("div", _n, [
4878
+ m("h2", {
4879
+ class: E(i.headerFontSize)
4880
+ }, "Datos inteligencia Artificial", 2),
4881
+ m("div", {
4882
+ class: E(["header-controls", s.containerSizeClass])
4883
+ }, [
4884
+ m("div", kn, [
4885
+ F(n, {
4886
+ type: 2,
4887
+ buttons: i.switchOptions,
4888
+ "selected-option": s.optionSelected,
4889
+ "disabled-options": i.disabledOptions,
4890
+ "font-size": "14px",
4891
+ "font-family": "Poppins-Medium",
4892
+ width: i.sizeTabsMP,
4893
+ borderWidth: "1px",
4894
+ arrow: !1,
4895
+ height: "46px",
4896
+ onInput: i.changeTabsGeneral
4897
+ }, null, 8, ["buttons", "selected-option", "disabled-options", "width", "onInput"])
4898
+ ]),
4899
+ m("div", Tn, [
4900
+ m("div", In, [
4901
+ F(a, {
4902
+ width: i.selectWidth,
4903
+ "current-season-id": e.currentSeasonId,
4904
+ "tournaments-ids-to-include": e.tournamentsIdsToInclude,
4905
+ "api-url": t.tournamentsApiUrl,
4906
+ onInput: i.changeTournament
4907
+ }, null, 8, ["width", "current-season-id", "tournaments-ids-to-include", "api-url", "onInput"])
4908
+ ]),
4909
+ m("div", xn, [
4910
+ F(d, {
4911
+ width: i.selectWidth,
4912
+ "current-season-id": e.currentSeasonId,
4913
+ seasons: s.selectedTournament.seasons,
4914
+ onInput: i.selectedSeason
4915
+ }, null, 8, ["width", "current-season-id", "seasons", "onInput"])
4916
+ ])
4917
+ ])
4918
+ ], 2)
4919
+ ]),
4920
+ m("div", {
4921
+ class: E(["cards-container", s.containerSizeClass]),
4922
+ style: { width: "100%" }
4923
+ }, [
4924
+ Q(F(u, {
4925
+ "current-season-id": s.seasonActive,
4926
+ onMostProductive: i.handleMostProductive
4927
+ }, null, 8, ["current-season-id", "onMostProductive"]), [
4928
+ [re, s.optionSelected === "Generales"]
4929
+ ]),
4930
+ s.torneoLiderId ? Q((p(), W(c, {
4931
+ key: 0,
4932
+ "current-season-id": s.seasonActive,
4933
+ "torneo-lider-id": s.torneoLiderId
4934
+ }, null, 8, ["current-season-id", "torneo-lider-id"])), [
4935
+ [re, s.optionSelected === "Equipos"]
4936
+ ]) : v("", !0),
4937
+ s.mostProductivePlayerId ? Q((p(), W(h, {
4938
+ key: 1,
4939
+ "current-season-id": s.seasonActive,
4940
+ "most-productive-player": s.mostProductivePlayerId,
4941
+ "is-female": s.isFemale
4942
+ }, null, 8, ["current-season-id", "most-productive-player", "is-female"])), [
4943
+ [re, s.optionSelected === "Jugadores" || s.optionSelected === "Jugadoras"]
4944
+ ]) : v("", !0)
4945
+ ], 2)
4946
+ ], 512);
4947
+ }
4948
+ const An = /* @__PURE__ */ Te(vn, [["render", On], ["__scopeId", "data-v-41b1b590"]]);
2
4949
  export {
3
- r as GSCDataIA
4950
+ An as GSCDataIA
4
4951
  };