60p82u21t54k 0.0.104 → 0.0.107

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.
@@ -70,10 +70,10 @@ const ce = (e) => new TextEncoder().encode(e), me = (e) => {
70
70
  (i.getTime() - e.getTime()) / 1e3
71
71
  ), d = Math.floor(
72
72
  (i.getTime() - l.getTime()) / 1e3
73
- ), m = d - u;
73
+ ), p = d - u;
74
74
  return {
75
75
  monthRemainingTime: u,
76
- monthProgressPercentage: Math.round(m / d * 100)
76
+ monthProgressPercentage: Math.round(p / d * 100)
77
77
  };
78
78
  }, ge = () => {
79
79
  const e = /* @__PURE__ */ new Date(), t = e.getDay(), a = t === 1 ? 7 : 8 - t, l = new Date(
@@ -84,10 +84,10 @@ const ce = (e) => new TextEncoder().encode(e), me = (e) => {
84
84
  0,
85
85
  0,
86
86
  0
87
- ), i = Math.floor((l.getTime() - e.getTime()) / 1e3), p = 7 * 24 * 60 * 60;
88
- return console.log(i), console.log(p), {
87
+ ), i = Math.floor((l.getTime() - e.getTime()) / 1e3), g = 7 * 24 * 60 * 60;
88
+ return console.log(i), console.log(g), {
89
89
  weekRemainingTime: i,
90
- weekProgressPercentage: Math.round(i / p * 100)
90
+ weekProgressPercentage: Math.round(i / g * 100)
91
91
  };
92
92
  }, be = () => {
93
93
  const e = /* @__PURE__ */ new Date(), t = new Date(
@@ -109,10 +109,10 @@ const fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
109
109
  __proto__: null,
110
110
  Api: s
111
111
  }, Symbol.toStringTag, { value: "Module" }));
112
- var L = /* @__PURE__ */ ((e) => (e.default = "default", e.pay = "pay", e.auto = "auto", e.fix = "fix", e.manual = "manual", e.unknown = "unknown", e))(L || {});
112
+ var I = /* @__PURE__ */ ((e) => (e.default = "default", e.pay = "pay", e.auto = "auto", e.fix = "fix", e.manual = "manual", e.unknown = "unknown", e))(I || {});
113
113
  const ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
114
114
  __proto__: null,
115
- PaymentType: L
115
+ PaymentType: I
116
116
  }, Symbol.toStringTag, { value: "Module" })), H = {
117
117
  depositBank: !1,
118
118
  depositDateTime: !1,
@@ -123,7 +123,7 @@ const ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
123
123
  }, X = {
124
124
  id: 0,
125
125
  name: "",
126
- type: L.unknown,
126
+ type: I.unknown,
127
127
  promo: [],
128
128
  bank: [],
129
129
  requiredField: H
@@ -132,10 +132,10 @@ const ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
132
132
  return ((t = e.mdPaymentChannels) == null ? void 0 : t.map((a) => {
133
133
  const l = [];
134
134
  switch (a.name) {
135
- case L.default:
135
+ case I.default:
136
136
  l.push(ee(a.paymentmethod.manual, e));
137
137
  break;
138
- case L.pay:
138
+ case I.pay:
139
139
  l.push(ve(a.paymentmethod.onlinebanking, e));
140
140
  break;
141
141
  default:
@@ -181,36 +181,36 @@ const ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
181
181
  let i, u;
182
182
  a > 0 ? i = e > 0 ? Math.max(a, e) : a : i = Math.max(e, 0), l > 0 ? u = t > 0 ? Math.min(l, t) : l : u = Math.max(t, 0);
183
183
  const d = Math.round(i);
184
- let m = 1e3;
185
- u < m && (m = Math.round(u));
186
- const f = m - d;
187
- let p = "", v = "";
188
- if (f > 0) {
189
- let P = Math.round((m - d) * 0.25).toString().split(""), x = [];
190
- for (const R of P)
191
- R !== "" && x.push(R);
192
- for (let R = 0; R < x.length; R++)
193
- R === 0 ? p += (parseInt(x[R]) + 1).toString() : p += "0";
194
- P = Math.round((m - d) * 0.5).toString().split(""), x = [];
195
- for (const R of P)
196
- R !== "" && x.push(R);
197
- for (let R = 0; R < x.length; R++)
198
- R === 0 ? v += (parseInt(x[R]) + 1).toString() : v += "0";
184
+ let p = 1e3;
185
+ u < p && (p = Math.round(u));
186
+ const y = p - d;
187
+ let g = "", b = "";
188
+ if (y > 0) {
189
+ let S = Math.round((p - d) * 0.25).toString().split(""), M = [];
190
+ for (const R of S)
191
+ R !== "" && M.push(R);
192
+ for (let R = 0; R < M.length; R++)
193
+ R === 0 ? g += (parseInt(M[R]) + 1).toString() : g += "0";
194
+ S = Math.round((p - d) * 0.5).toString().split(""), M = [];
195
+ for (const R of S)
196
+ R !== "" && M.push(R);
197
+ for (let R = 0; R < M.length; R++)
198
+ R === 0 ? b += (parseInt(M[R]) + 1).toString() : b += "0";
199
199
  } else
200
- p = m.toString(), v = m.toString();
200
+ g = p.toString(), b = p.toString();
201
201
  return { amountList: [
202
202
  d.toString(),
203
- p,
204
- v,
205
- m.toString()
203
+ g,
204
+ b,
205
+ p.toString()
206
206
  ], minAmount: d, maxAmount: u };
207
207
  }, ee = (e, t) => t ? {
208
208
  id: 0,
209
209
  name: "manualMethod",
210
- type: L.manual,
210
+ type: I.manual,
211
211
  promo: A(e.promo),
212
212
  bank: e.bank.map((i) => {
213
- const u = i.list && i.list.length > 0 ? i.list[0].mintransaction ?? "0.00" : "0.00", d = i.list && i.list.length > 0 ? i.list[0].maxtransaction ?? "0.00" : "0.00", { amountList: m, minAmount: f, maxAmount: p } = V(
213
+ const u = i.list && i.list.length > 0 ? i.list[0].mintransaction ?? "0.00" : "0.00", d = i.list && i.list.length > 0 ? i.list[0].maxtransaction ?? "0.00" : "0.00", { amountList: p, minAmount: y, maxAmount: g } = V(
214
214
  Number(u),
215
215
  Number(d),
216
216
  t.mdBankLevelDetail.deposit_min,
@@ -223,9 +223,9 @@ const ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
223
223
  accountName: i.list && i.list.length > 0 ? i.list[0].bankaccountname ?? "" : "",
224
224
  accountNo: i.list && i.list.length > 0 ? i.list[0].bankaccountno ?? "" : "",
225
225
  qrcode: i.list && i.list.length > 0 ? i.list[0].bankaccountdesc : "",
226
- amountList: m,
227
- min: f,
228
- max: p
226
+ amountList: p,
227
+ min: y,
228
+ max: g
229
229
  };
230
230
  }),
231
231
  requiredField: {
@@ -239,37 +239,37 @@ const ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
239
239
  } : X, ve = (e, t) => t ? {
240
240
  id: 0,
241
241
  name: "onlineBankingMethod",
242
- type: L.pay,
242
+ type: I.pay,
243
243
  promo: A(e.promo),
244
244
  bank: e.banklist.map((i) => {
245
245
  let u = "0.00", d = "0.00";
246
- const m = i.bankindex ?? 0;
247
- for (let P = 0; P < t.mdGatewayMinMax.length; P++)
248
- t.mdGatewayMinMax[P].bankindex == m.toString() && (u = t.mdGatewayMinMax[P].min, d = t.mdGatewayMinMax[P].max);
249
- const { amountList: f, minAmount: p, maxAmount: v } = V(
246
+ const p = i.bankindex ?? 0;
247
+ for (let S = 0; S < t.mdGatewayMinMax.length; S++)
248
+ t.mdGatewayMinMax[S].bankindex == p.toString() && (u = t.mdGatewayMinMax[S].min, d = t.mdGatewayMinMax[S].max);
249
+ const { amountList: y, minAmount: g, maxAmount: b } = V(
250
250
  Number(u),
251
251
  Number(d),
252
252
  t.mdBankLevelDetail.onlinepayment_min,
253
253
  t.mdBankLevelDetail.onlinepayment_max
254
- ), O = {
254
+ ), P = {
255
255
  id: 0,
256
256
  name: "autoChannel",
257
- amountList: f,
258
- min: p,
259
- max: v
260
- }, h = i.pg.map((P) => {
261
- const x = P.mintransaction ?? "0.00", _ = P.maxtransaction ?? "0.00", { amountList: D, minAmount: R, maxAmount: k } = V(
262
- Number(x),
263
- Number(_),
257
+ amountList: y,
258
+ min: g,
259
+ max: b
260
+ }, v = i.pg.map((S) => {
261
+ const M = S.mintransaction ?? "0.00", F = S.maxtransaction ?? "0.00", { amountList: x, minAmount: R, maxAmount: L } = V(
262
+ Number(M),
263
+ Number(F),
264
264
  t.mdBankLevelDetail.onlinepayment_min,
265
265
  t.mdBankLevelDetail.onlinepayment_max
266
266
  );
267
267
  return {
268
- id: P.pgindex,
269
- name: P.bankaccountname,
270
- amountList: D,
268
+ id: S.pgindex,
269
+ name: S.bankaccountname,
270
+ amountList: x,
271
271
  min: R,
272
- max: k
272
+ max: L
273
273
  };
274
274
  });
275
275
  return {
@@ -278,48 +278,48 @@ const ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
278
278
  amountList: [],
279
279
  min: 0,
280
280
  max: 0,
281
- gateway: [O, ...h]
281
+ gateway: [P, ...v]
282
282
  };
283
283
  }),
284
284
  requiredField: H
285
285
  } : X, he = (e, t, a) => {
286
286
  if (!a) return X;
287
- const l = L.auto;
287
+ const l = I.auto;
288
288
  let i = [];
289
289
  const u = a.mdGatewayMinMax ?? [];
290
290
  if (t.bank.length > 0 && a.mdPGSelection === "1")
291
- i = t.bank.map((m) => {
292
- const { amountList: f, minAmount: p, maxAmount: v } = V(
293
- m.mintransaction ?? 0,
294
- m.maxtransaction ?? 0,
291
+ i = t.bank.map((p) => {
292
+ const { amountList: y, minAmount: g, maxAmount: b } = V(
293
+ p.mintransaction ?? 0,
294
+ p.maxtransaction ?? 0,
295
295
  a.mdBankLevelDetail.onlinepayment_min,
296
296
  a.mdBankLevelDetail.onlinepayment_max
297
297
  );
298
298
  return {
299
- id: m.pgindex ?? 0,
300
- name: m.bankaccountname || "",
301
- amountList: f,
302
- min: p,
303
- max: v
299
+ id: p.pgindex ?? 0,
300
+ name: p.bankaccountname || "",
301
+ amountList: y,
302
+ min: g,
303
+ max: b
304
304
  };
305
305
  });
306
306
  else {
307
- let m = "0.00", f = "0.00";
308
- for (let g = 0; g < u.length; g++)
309
- u[g].bankindex === e.toString() && (m = u[g].min, f = u[g].max);
310
- const { amountList: p, minAmount: v, maxAmount: O } = V(
311
- Number(m),
312
- Number(f),
307
+ let p = "0.00", y = "0.00";
308
+ for (let m = 0; m < u.length; m++)
309
+ u[m].bankindex === e.toString() && (p = u[m].min, y = u[m].max);
310
+ const { amountList: g, minAmount: b, maxAmount: P } = V(
311
+ Number(p),
312
+ Number(y),
313
313
  a.mdBankLevelDetail.onlinepayment_min,
314
314
  a.mdBankLevelDetail.onlinepayment_max
315
- ), h = {
315
+ ), v = {
316
316
  id: 0,
317
317
  name: "autoChannel",
318
- amountList: p,
319
- min: v,
320
- max: O
318
+ amountList: g,
319
+ min: b,
320
+ max: P
321
321
  };
322
- i.push(h);
322
+ i.push(v);
323
323
  }
324
324
  return {
325
325
  id: e,
@@ -330,14 +330,14 @@ const ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
330
330
  requiredField: H
331
331
  };
332
332
  }, Te = (e, t) => {
333
- const a = L.fix;
333
+ const a = I.fix;
334
334
  return {
335
335
  id: e,
336
336
  name: "fixAmountMethod",
337
337
  type: a,
338
338
  promo: A(t.promo),
339
339
  bank: t.bank.map((i) => {
340
- const u = i.amtlist.map(Number).sort((m, f) => m - f);
340
+ const u = i.amtlist.map(Number).sort((p, y) => p - y);
341
341
  return {
342
342
  id: i.pgindex,
343
343
  name: i.name,
@@ -360,67 +360,67 @@ const ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
360
360
  phoneNumber: e.mdUserDetail.mobileno ?? "",
361
361
  profilePicUrl: e.mdUserDetail.profile_pic
362
362
  }), Pe = (e) => {
363
- var t, a, l, i, u, d, m, f, p, v, O, h, g, P, x;
363
+ var t, a, l, i, u, d, p, y, g;
364
364
  return {
365
- platformGame: ((t = e.mdGameListResult) == null ? void 0 : t.map((_) => {
366
- var D, R;
365
+ platformGame: ((t = e.mdGameListResult) == null ? void 0 : t.map((b) => {
366
+ var P, v;
367
367
  return {
368
- code: _.code.toLowerCase(),
369
- id: _.id,
370
- name: _.name,
371
- iconUrl: `${e.mdDomains[3]}side_menu/${_.code.toLowerCase()}/${_.code.toLowerCase()}.png?v=1`,
372
- nextPage: _.nextPage === 1,
373
- list: (_.mdPlatformProducts !== null && ((D = _.mdPlatformProducts) == null ? void 0 : D.length)) ?? !1 ? ((R = _.mdPlatformProducts) == null ? void 0 : R.map((k) => ({
374
- gameId: Number(k.id_GameMaster),
375
- platformId: Number(k.id),
376
- name: k.shortName,
368
+ code: b.code.toLowerCase(),
369
+ id: b.id,
370
+ name: b.name,
371
+ iconUrl: `${e.mdDomains[3]}side_menu/${b.code.toLowerCase()}/${b.code.toLowerCase()}.png?v=1`,
372
+ nextPage: b.nextPage === 1,
373
+ list: (b.mdPlatformProducts !== null && ((P = b.mdPlatformProducts) == null ? void 0 : P.length)) ?? !1 ? ((v = b.mdPlatformProducts) == null ? void 0 : v.map((m) => ({
374
+ gameId: Number(m.id_GameMaster),
375
+ platformId: Number(m.id),
376
+ name: m.shortName,
377
377
  flag: {
378
- value: k.flag,
379
- hot: (k.flag & 2) > 0,
380
- trial: (k.flag & 4) > 0,
381
- new: (k.flag & 8) > 0
378
+ value: m.flag,
379
+ hot: (m.flag & 2) > 0,
380
+ trial: (m.flag & 4) > 0,
381
+ new: (m.flag & 8) > 0
382
382
  },
383
- imageUrl: `${e.mdDomains[k.mdDomains_id]}${k.img}?ts=${k.filemtime}`,
384
- logoUrl: `/image/platform_logo/${k.img.split("/").pop()}?v=1`,
383
+ imageUrl: `${e.mdDomains[m.mdDomains_id]}${m.img}?ts=${m.filemtime}`,
384
+ logoUrl: `/image/platform_logo/${m.img.split("/").pop()}?v=1`,
385
385
  rate: "0.00"
386
386
  }))) ?? [] : []
387
387
  };
388
388
  })) ?? [],
389
- hotGameList: ke(e.mdGameLists.data) ? {
389
+ hotGameList: ke(e.mdGameLists.data) && e.mdGameLists.data.length > 0 ? {
390
390
  currentPage: ((a = e.mdGameLists) == null ? void 0 : a.current_page) ?? 1,
391
391
  lastPage: ((l = e.mdGameLists) == null ? void 0 : l.last_page) ?? 1,
392
- data: (i = e.mdGameLists) != null && i.data && ((d = (u = e.mdGameLists) == null ? void 0 : u.data) == null ? void 0 : d.length) > 0 ? ((f = (m = e.mdGameLists) == null ? void 0 : m.data) == null ? void 0 : f.map((_) => ({
393
- gameId: Number(_.id),
394
- platformId: Number(_.id_PlatformProduct),
395
- name: _.name,
392
+ data: (u = (i = e.mdGameLists) == null ? void 0 : i.data) == null ? void 0 : u.map((b) => ({
393
+ gameId: Number(b.id),
394
+ platformId: Number(b.id_PlatformProduct),
395
+ name: b.name,
396
396
  flag: {
397
397
  value: 0,
398
398
  hot: !1,
399
399
  trial: !1,
400
400
  new: !1
401
401
  },
402
- imageUrl: `${e.mdDomains[_.mdDomains_id]}${_.img}?ts=${_.filemtime}`,
403
- logoUrl: `/image/platform_logo/${_.img.split("/").pop()}?v=1`,
402
+ imageUrl: b.img.includes("platform_logo") ? `/image/platform_logo/${b.img.split("/").pop()}?v=1` : `${e.mdDomains[b.mdDomains_id]}${b.img}?ts=${b.filemtime}`,
403
+ logoUrl: `/image/platform_logo/${b.img.split("/").pop()}?v=1`,
404
404
  rate: "0.00"
405
- }))) ?? [] : []
405
+ }))
406
406
  } : {},
407
- platformGameList: Oe(e.mdGameLists.data) ? {
408
- currentPage: ((p = e.mdGameLists) == null ? void 0 : p.current_page) ?? 1,
409
- lastPage: ((v = e.mdGameLists) == null ? void 0 : v.last_page) ?? 1,
410
- data: (O = e.mdGameLists) != null && O.data && ((g = (h = e.mdGameLists) == null ? void 0 : h.data) == null ? void 0 : g.length) > 0 ? ((x = (P = e.mdGameLists) == null ? void 0 : P.data) == null ? void 0 : x.map((_) => ({
411
- gameId: Number(_.id),
412
- platformId: Number(_.id_PlatformProduct),
413
- name: _.name,
407
+ platformGameList: Oe(e.mdGameLists.data) && e.mdGameLists.data.length > 0 ? {
408
+ currentPage: ((d = e.mdGameLists) == null ? void 0 : d.current_page) ?? 1,
409
+ lastPage: ((p = e.mdGameLists) == null ? void 0 : p.last_page) ?? 1,
410
+ data: (g = (y = e.mdGameLists) == null ? void 0 : y.data) == null ? void 0 : g.map((b) => ({
411
+ gameId: Number(b.id),
412
+ platformId: Number(b.id_PlatformProduct),
413
+ name: b.name,
414
414
  flag: {
415
415
  value: 0,
416
416
  hot: !1,
417
417
  trial: !1,
418
418
  new: !1
419
419
  },
420
- imageUrl: `${e.mdDomains[_.mdDomains_id]}${_.img}?ts=${_.filemtime}`,
421
- logoUrl: `/image/platform_logo/${_.img.split("/").pop()}?v=1`,
420
+ imageUrl: `${e.mdDomains[b.mdDomains_id]}${b.img}?ts=${b.filemtime}`,
421
+ logoUrl: `/image/platform_logo/${b.img.split("/").pop()}?v=1`,
422
422
  rate: "0.00"
423
- }))) ?? [] : []
423
+ }))
424
424
  } : {},
425
425
  trialGameList: [],
426
426
  fishGameList: []
@@ -438,7 +438,7 @@ function Oe(e) {
438
438
  }
439
439
  const Me = (e) => ({
440
440
  list: e.mdGrade.map((t) => {
441
- var a, l, i, u, d, m, f, p, v, O, h, g, P, x, _, D, R, k, U, B, J, q, Y, $, E, n, c, y, r, o, T, M;
441
+ var a, l, i, u, d, p, y, g, b, P, v, m, S, M, F, x, R, L, U, B, J, q, Y, $, E, n, c, _, r, o, h, k;
442
442
  return {
443
443
  id: t.gradeindex,
444
444
  is_current_level: !1,
@@ -454,38 +454,38 @@ const Me = (e) => ({
454
454
  current: "0.00",
455
455
  total: parseFloat(t.min_deposit).toFixed(2)
456
456
  },
457
- promo_list: t.promocash.filter((j) => j.isshow == 1 && j.status == "1").map((j) => ({
458
- name: j.promosimplified,
459
- min_deposit: parseFloat(j.min_deposit).toFixed(2),
460
- promo_bonus: j.percentage,
461
- promo_limit: parseFloat(j.max_promo_amt).toFixed(2),
462
- turnover_multiplier: j.multiply,
463
- type: j.promo_type
457
+ promo_list: t.promocash.filter((O) => O.isshow == 1 && O.status == "1").map((O) => ({
458
+ name: O.promosimplified,
459
+ min_deposit: parseFloat(O.min_deposit).toFixed(2),
460
+ promo_bonus: O.percentage,
461
+ promo_limit: parseFloat(O.max_promo_amt).toFixed(2),
462
+ turnover_multiplier: O.multiply,
463
+ type: O.promo_type
464
464
  })),
465
465
  benefit_list: {
466
466
  daily: {
467
467
  bonus: parseFloat(((l = (a = t.benefit) == null ? void 0 : a.daily) == null ? void 0 : l.bonus) ?? "0.00").toFixed(2),
468
468
  bonus_name: ((u = (i = t.benefit) == null ? void 0 : i.daily) == null ? void 0 : u.bonus_name) ?? "",
469
- turnover: parseFloat(((m = (d = t.benefit) == null ? void 0 : d.daily) == null ? void 0 : m.turnover) ?? "0.00").toFixed(2),
470
- turnover_name: ((p = (f = t.benefit) == null ? void 0 : f.daily) == null ? void 0 : p.turnover_name) ?? ""
469
+ turnover: parseFloat(((p = (d = t.benefit) == null ? void 0 : d.daily) == null ? void 0 : p.turnover) ?? "0.00").toFixed(2),
470
+ turnover_name: ((g = (y = t.benefit) == null ? void 0 : y.daily) == null ? void 0 : g.turnover_name) ?? ""
471
471
  },
472
472
  monthly: {
473
- bonus: parseFloat(((O = (v = t.benefit) == null ? void 0 : v.monthly) == null ? void 0 : O.bonus) ?? "0.00").toFixed(2),
474
- bonus_name: ((g = (h = t.benefit) == null ? void 0 : h.monthly) == null ? void 0 : g.bonus_name) ?? "",
475
- turnover: parseFloat(((x = (P = t.benefit) == null ? void 0 : P.monthly) == null ? void 0 : x.turnover) ?? "0.00").toFixed(2),
476
- turnover_name: ((D = (_ = t.benefit) == null ? void 0 : _.monthly) == null ? void 0 : D.turnover_name) ?? ""
473
+ bonus: parseFloat(((P = (b = t.benefit) == null ? void 0 : b.monthly) == null ? void 0 : P.bonus) ?? "0.00").toFixed(2),
474
+ bonus_name: ((m = (v = t.benefit) == null ? void 0 : v.monthly) == null ? void 0 : m.bonus_name) ?? "",
475
+ turnover: parseFloat(((M = (S = t.benefit) == null ? void 0 : S.monthly) == null ? void 0 : M.turnover) ?? "0.00").toFixed(2),
476
+ turnover_name: ((x = (F = t.benefit) == null ? void 0 : F.monthly) == null ? void 0 : x.turnover_name) ?? ""
477
477
  },
478
478
  weekly: {
479
- bonus: parseFloat(((k = (R = t.benefit) == null ? void 0 : R.weekly) == null ? void 0 : k.bonus) ?? "0.00").toFixed(2),
479
+ bonus: parseFloat(((L = (R = t.benefit) == null ? void 0 : R.weekly) == null ? void 0 : L.bonus) ?? "0.00").toFixed(2),
480
480
  bonus_name: ((B = (U = t.benefit) == null ? void 0 : U.weekly) == null ? void 0 : B.bonus_name) ?? "",
481
481
  turnover: parseFloat(((q = (J = t.benefit) == null ? void 0 : J.weekly) == null ? void 0 : q.turnover) ?? "0.00").toFixed(2),
482
482
  turnover_name: (($ = (Y = t.benefit) == null ? void 0 : Y.weekly) == null ? void 0 : $.turnover_name) ?? ""
483
483
  },
484
484
  upgrade: {
485
485
  bonus: parseFloat(((n = (E = t.benefit) == null ? void 0 : E.upgrade) == null ? void 0 : n.bonus) ?? "0.00").toFixed(2),
486
- bonus_name: ((y = (c = t.benefit) == null ? void 0 : c.upgrade) == null ? void 0 : y.bonus_name) ?? "",
486
+ bonus_name: ((_ = (c = t.benefit) == null ? void 0 : c.upgrade) == null ? void 0 : _.bonus_name) ?? "",
487
487
  turnover: parseFloat(((o = (r = t.benefit) == null ? void 0 : r.upgrade) == null ? void 0 : o.turnover) ?? "0.00").toFixed(2),
488
- turnover_name: ((M = (T = t.benefit) == null ? void 0 : T.upgrade) == null ? void 0 : M.turnover_name) ?? ""
488
+ turnover_name: ((k = (h = t.benefit) == null ? void 0 : h.upgrade) == null ? void 0 : k.turnover_name) ?? ""
489
489
  }
490
490
  }
491
491
  };
@@ -551,7 +551,7 @@ const Me = (e) => ({
551
551
  })), Ce = (e) => ({
552
552
  current_deposit: e.deposit,
553
553
  current_turnover: e.turnOver,
554
- current_grade_id: e.mdCurrentGrade.gradeindex,
554
+ current_grade_id: e.mdCurrentGrade ? e.mdCurrentGrade.gradeindex : 0,
555
555
  next_grade_id: e.mdNextGrade.gradeindex,
556
556
  percentage: Number(e.percentage) * 100
557
557
  }), Ie = (e) => {
@@ -663,21 +663,21 @@ const We = (e) => {
663
663
  companyId: t.company_id,
664
664
  companyName: t.company_name,
665
665
  resultByDateList: t.draws.map((a) => {
666
- const l = a.results.filter((g) => g.combination_dimension == 3).map((g) => g.combination_combination), i = a.results.filter(
667
- (g) => g.combination_dimension == 4 && g.combination_position === 1
668
- ).map((g) => g.combination_combination), u = a.results.filter(
669
- (g) => g.combination_dimension === 4 && g.combination_position === 2
670
- ).map((g) => g.combination_combination), d = a.results.filter(
671
- (g) => g.combination_dimension === 4 && g.combination_position === 3
672
- ).map((g) => g.combination_combination), m = a.results.filter(
673
- (g) => g.combination_dimension === 4 && g.combination_position === 4
674
- ).map((g) => g.combination_combination), f = a.results.filter(
675
- (g) => g.combination_dimension === 4 && g.combination_position === 5
676
- ).map((g) => g.combination_combination), p = a.results.filter(
677
- (g) => g.combination_dimension === 5 && g.combination_position === 1
678
- ).map((g) => g.combination_combination), v = a.results.filter((g) => g.combination_dimension == 5).map((g) => g.combination_combination), O = a.results.filter(
679
- (g) => g.combination_dimension === 6 && g.combination_position === 1
680
- ).map((g) => g.combination_combination), h = a.results.filter((g) => g.combination_dimension === 6).map((g) => g.combination_combination);
666
+ const l = a.results.filter((m) => m.combination_dimension == 3).map((m) => m.combination_combination), i = a.results.filter(
667
+ (m) => m.combination_dimension == 4 && m.combination_position === 1
668
+ ).map((m) => m.combination_combination), u = a.results.filter(
669
+ (m) => m.combination_dimension === 4 && m.combination_position === 2
670
+ ).map((m) => m.combination_combination), d = a.results.filter(
671
+ (m) => m.combination_dimension === 4 && m.combination_position === 3
672
+ ).map((m) => m.combination_combination), p = a.results.filter(
673
+ (m) => m.combination_dimension === 4 && m.combination_position === 4
674
+ ).map((m) => m.combination_combination), y = a.results.filter(
675
+ (m) => m.combination_dimension === 4 && m.combination_position === 5
676
+ ).map((m) => m.combination_combination), g = a.results.filter(
677
+ (m) => m.combination_dimension === 5 && m.combination_position === 1
678
+ ).map((m) => m.combination_combination), b = a.results.filter((m) => m.combination_dimension == 5).map((m) => m.combination_combination), P = a.results.filter(
679
+ (m) => m.combination_dimension === 6 && m.combination_position === 1
680
+ ).map((m) => m.combination_combination), v = a.results.filter((m) => m.combination_dimension === 6).map((m) => m.combination_combination);
681
681
  return {
682
682
  date: a.date,
683
683
  dimension_3: l,
@@ -685,16 +685,16 @@ const We = (e) => {
685
685
  prize_1: i,
686
686
  prize_2: u,
687
687
  prize_3: d,
688
- prize_4: m,
689
- prize_5: f
688
+ prize_4: p,
689
+ prize_5: y
690
690
  },
691
691
  dimension_5: {
692
- prize_1: p,
693
- all: v
692
+ prize_1: g,
693
+ all: b
694
694
  },
695
695
  dimension_6: {
696
- prize_1: O,
697
- all: h
696
+ prize_1: P,
697
+ all: v
698
698
  }
699
699
  };
700
700
  })
@@ -726,21 +726,21 @@ const We = (e) => {
726
726
  status: e.status == 1,
727
727
  message: e.status == 1 ? e.message ?? "" : e.errormessage ?? "",
728
728
  flag: e.flag
729
- }), S = (e) => ({
729
+ }), T = (e) => ({
730
730
  status: e.status == 1,
731
731
  message: e.status == 1 ? e.message ?? "" : e.errormessage ?? ""
732
- }), Ae = (e) => S(e), Je = (e) => {
732
+ }), Ae = (e) => T(e), Je = (e) => {
733
733
  var t, a, l, i, u;
734
734
  return {
735
735
  bankCard: ((t = e.bankCard) == null ? void 0 : t.map((d) => {
736
- var m, f;
736
+ var p, y;
737
737
  return {
738
738
  bankIndex: d.bankindex,
739
739
  bankProvince: {
740
740
  id: d.bankprovince,
741
- desc: ((f = (m = e.province) == null ? void 0 : m.find(
742
- (p) => p.provinceindex == d.bankprovince
743
- )) == null ? void 0 : f.label) ?? ""
741
+ desc: ((y = (p = e.province) == null ? void 0 : p.find(
742
+ (g) => g.provinceindex == d.bankprovince
743
+ )) == null ? void 0 : y.label) ?? ""
744
744
  },
745
745
  bankName: d.banknamesimplified,
746
746
  bankAccountNo: d.bankaccountno,
@@ -794,38 +794,38 @@ const We = (e) => {
794
794
  withdrawFee: e.withdrawFee,
795
795
  withdrawMaxFee: Number(e.withdrawMaxFee),
796
796
  withdrawCount: e.withdrawCount
797
- }), Ke = (e) => S(e), Qe = (e) => {
797
+ }), Ke = (e) => T(e), Qe = (e) => {
798
798
  var t, a, l, i, u, d;
799
799
  return {
800
- statusMode: ((t = e.subStatusModes) == null ? void 0 : t.map((m) => ({
801
- key: m.key,
802
- value: m.value
800
+ statusMode: ((t = e.subStatusModes) == null ? void 0 : t.map((p) => ({
801
+ key: p.key,
802
+ value: p.value
803
803
  }))) ?? [],
804
- transactionMethod: ((a = e.subTransactionMethods) == null ? void 0 : a.map((m) => ({
805
- key: m.key,
806
- value: m.value
804
+ transactionMethod: ((a = e.subTransactionMethods) == null ? void 0 : a.map((p) => ({
805
+ key: p.key,
806
+ value: p.value
807
807
  }))) ?? [],
808
808
  data: {
809
809
  currentPage: ((l = e.mdCashLedgers) == null ? void 0 : l.current_page) ?? 0,
810
810
  lastPage: ((i = e.mdCashLedgers) == null ? void 0 : i.last_page) ?? 0,
811
- data: ((d = (u = e.mdCashLedgers) == null ? void 0 : u.data) == null ? void 0 : d.map((m) => {
812
- var f, p;
811
+ data: ((d = (u = e.mdCashLedgers) == null ? void 0 : u.data) == null ? void 0 : d.map((p) => {
812
+ var y, g;
813
813
  return {
814
- transactionIndex: m.ledgerindex,
814
+ transactionIndex: p.ledgerindex,
815
815
  transactionInfo: {
816
- id: m.fundindex,
817
- desc: Xe(m.fundindex, m.transactionindex),
818
- ext: m.fundindex === 3 ? `(${m.promo_cash})` : ""
816
+ id: p.fundindex,
817
+ desc: Xe(p.fundindex, p.transactionindex),
818
+ ext: p.fundindex === 3 ? `(${p.promo_cash})` : ""
819
819
  },
820
820
  statusInfo: {
821
- id: m.status,
822
- value: m.status == 1,
823
- desc: ((p = (f = e.subStatusModes) == null ? void 0 : f.find((v) => v.key === m.status)) == null ? void 0 : p.value) ?? ""
821
+ id: p.status,
822
+ value: p.status == 1,
823
+ desc: ((g = (y = e.subStatusModes) == null ? void 0 : y.find((b) => b.key === p.status)) == null ? void 0 : g.value) ?? ""
824
824
  },
825
- amount: Number(m.amount).toFixed(2),
826
- dateTime: m.ledgerdatetime,
827
- reason: m.reasonsimplified,
828
- method: m.fundmethod
825
+ amount: Number(p.amount).toFixed(2),
826
+ dateTime: p.ledgerdatetime,
827
+ reason: p.reasonsimplified,
828
+ method: p.fundmethod
829
829
  };
830
830
  })) ?? []
831
831
  }
@@ -1017,47 +1017,47 @@ const We = (e) => {
1017
1017
  uplineCode: e.data.upline.accountcode,
1018
1018
  referralCode: e.data.referral_code
1019
1019
  }, gt = (e) => {
1020
- var f;
1020
+ var y;
1021
1021
  let t = null, a = null;
1022
1022
  if (e.status == 0)
1023
1023
  return { welcomeBonus: null, dailyBonus: null };
1024
- const l = e.data.filter((p) => p.dtype == "5" && p.type == "F").map((p) => {
1025
- const v = Math.min(
1026
- Number(p.min_deposit) * Number(p.percentage) / 100,
1027
- Number(p.max_promo_amt)
1024
+ const l = e.data.filter((g) => g.dtype == "5" && g.type == "F").map((g) => {
1025
+ const b = Math.min(
1026
+ Number(g.min_deposit) * Number(g.percentage) / 100,
1027
+ Number(g.max_promo_amt)
1028
1028
  );
1029
1029
  return {
1030
- name: p.promodesc,
1031
- depositAmount: Number(p.min_deposit),
1032
- promoAmount: v,
1033
- percentage: Math.round(v / Number(p.min_deposit) * 100),
1034
- expiryTime: p.etime
1030
+ name: g.promodesc,
1031
+ depositAmount: Number(g.min_deposit),
1032
+ promoAmount: b,
1033
+ percentage: Math.round(b / Number(g.min_deposit) * 100),
1034
+ expiryTime: g.etime
1035
1035
  };
1036
1036
  });
1037
1037
  l.length > 0 && (t = l[0]);
1038
- const i = e.data.filter((p) => p.dtype == "5" && p.type == "D").map((p) => {
1039
- const v = Math.min(
1040
- Number(p.min_deposit) * Number(p.percentage) / 100,
1041
- Number(p.max_promo_amt)
1038
+ const i = e.data.filter((g) => g.dtype == "5" && g.type == "D").map((g) => {
1039
+ const b = Math.min(
1040
+ Number(g.min_deposit) * Number(g.percentage) / 100,
1041
+ Number(g.max_promo_amt)
1042
1042
  );
1043
1043
  return {
1044
- name: p.promodesc,
1045
- depositAmount: Number(p.min_deposit),
1046
- promoAmount: v,
1047
- percentage: Number((v / Number(p.min_deposit) * 100).toFixed(2)),
1048
- expiryTime: p.etime
1044
+ name: g.promodesc,
1045
+ depositAmount: Number(g.min_deposit),
1046
+ promoAmount: b,
1047
+ percentage: Number((b / Number(g.min_deposit) * 100).toFixed(2)),
1048
+ expiryTime: g.etime
1049
1049
  };
1050
1050
  });
1051
- let u = 0, d = ((f = i[0]) == null ? void 0 : f.expiryTime) || "";
1052
- const m = i.map((p) => (u = Math.max(u, p.percentage), new Date(p.expiryTime) < new Date(d) && (d = p.expiryTime), {
1053
- name: p.name,
1054
- depositAmount: p.depositAmount,
1055
- promoAmount: p.promoAmount
1051
+ let u = 0, d = ((y = i[0]) == null ? void 0 : y.expiryTime) || "";
1052
+ const p = i.map((g) => (u = Math.max(u, g.percentage), new Date(g.expiryTime) < new Date(d) && (d = g.expiryTime), {
1053
+ name: g.name,
1054
+ depositAmount: g.depositAmount,
1055
+ promoAmount: g.promoAmount
1056
1056
  }));
1057
1057
  return a = {
1058
1058
  percentage: u,
1059
1059
  expiryTime: d,
1060
- list: m
1060
+ list: p
1061
1061
  }, { welcomeBonus: t, dailyBonus: a };
1062
1062
  }, bt = (e) => ({
1063
1063
  status: e.status == 1,
@@ -1114,7 +1114,7 @@ const We = (e) => {
1114
1114
  }
1115
1115
  }
1116
1116
  return t;
1117
- }, Tt = (e) => S(e), Rt = (e) => S(e), St = (e) => {
1117
+ }, Tt = (e) => T(e), Rt = (e) => T(e), St = (e) => {
1118
1118
  var t, a, l, i, u;
1119
1119
  return {
1120
1120
  status: e.status == 1,
@@ -1146,10 +1146,10 @@ const We = (e) => {
1146
1146
  regex: t.regex,
1147
1147
  showName: t.showname,
1148
1148
  inputHelper: t.inputHelper
1149
- })) : [], kt = (e) => S(e), Ot = (e) => e, Mt = (e) => ({
1149
+ })) : [], kt = (e) => T(e), Ot = (e) => e, Mt = (e) => ({
1150
1150
  status: e.status == 1,
1151
1151
  message: e.status == 1 ? e.message ?? "" : e.errormessage ?? ""
1152
- }), jt = (e) => S(e), xt = (e) => ({
1152
+ }), jt = (e) => T(e), xt = (e) => ({
1153
1153
  status: e.status == 1,
1154
1154
  message: e.message,
1155
1155
  user: e.user ?? ""
@@ -1157,7 +1157,7 @@ const We = (e) => {
1157
1157
  status: e.status == 1,
1158
1158
  message: e.msg ?? "",
1159
1159
  amount: e.amount ?? ""
1160
- }), Ct = (e) => S(e), It = (e) => {
1160
+ }), Ct = (e) => T(e), It = (e) => {
1161
1161
  var t;
1162
1162
  return {
1163
1163
  status: e.status == 1,
@@ -1190,10 +1190,10 @@ const We = (e) => {
1190
1190
  message: e.msg ?? "",
1191
1191
  form: e.form ?? "",
1192
1192
  gameUrl: e.data ?? ""
1193
- }), zt = (e) => S(e), Nt = (e) => S(e), Q = (e) => ({
1193
+ }), zt = (e) => T(e), Nt = (e) => T(e), Q = (e) => ({
1194
1194
  status: e.status == 1,
1195
1195
  message: e.errormessage ?? ""
1196
- }), wt = (e) => S(e), Ut = (e) => e, Bt = (e) => S(e), qt = (e) => {
1196
+ }), wt = (e) => T(e), Ut = (e) => e, Bt = (e) => T(e), qt = (e) => {
1197
1197
  var t;
1198
1198
  return {
1199
1199
  platformProduct: ((t = e.mdPlatformProduct) == null ? void 0 : t.map((a) => ({
@@ -1217,7 +1217,7 @@ const We = (e) => {
1217
1217
  }))) ?? []
1218
1218
  };
1219
1219
  })) ?? [];
1220
- }, Vt = (e) => S(e), $t = (e) => S(e), Et = (e) => S(e), Ht = (e) => S(e), At = (e) => S(e), Jt = (e) => S(e), Yt = (e) => S(e), Kt = (e) => ({
1220
+ }, Vt = (e) => T(e), $t = (e) => T(e), Et = (e) => T(e), Ht = (e) => T(e), At = (e) => T(e), Jt = (e) => T(e), Yt = (e) => T(e), Kt = (e) => ({
1221
1221
  status: e.status == 1,
1222
1222
  message: e.msg ?? "",
1223
1223
  data: e.data
@@ -1323,7 +1323,7 @@ const We = (e) => {
1323
1323
  }))) ?? []
1324
1324
  };
1325
1325
  }, sa = (e) => {
1326
- var t, a, l, i, u, d, m, f, p, v, O;
1326
+ var t, a, l, i, u, d, p, y, g, b, P;
1327
1327
  return {
1328
1328
  status: e.status == 1,
1329
1329
  message: e.status == 1 ? e.message ?? "" : e.errormessage ?? "",
@@ -1339,26 +1339,26 @@ const We = (e) => {
1339
1339
  validBet: "0.00",
1340
1340
  payout: "0.00"
1341
1341
  },
1342
- data: ((m = (d = e.data) == null ? void 0 : d.sum) == null ? void 0 : m.map((h) => ({
1343
- bet: Number(h.bet).toFixed(2),
1344
- activeBet: Number(h.activebet).toFixed(2),
1345
- payout: Number(h.payout).toFixed(2),
1346
- target: h.name,
1347
- com: h.com
1342
+ data: ((p = (d = e.data) == null ? void 0 : d.sum) == null ? void 0 : p.map((v) => ({
1343
+ bet: Number(v.bet).toFixed(2),
1344
+ activeBet: Number(v.activebet).toFixed(2),
1345
+ payout: Number(v.payout).toFixed(2),
1346
+ target: v.name,
1347
+ com: v.com
1348
1348
  }))) ?? [],
1349
- wagers: ((p = (f = e.data) == null ? void 0 : f.wagers) == null ? void 0 : p.map((h) => ({
1350
- payout: Number(h.payout).toFixed(2),
1351
- betType: h.betType,
1352
- stakeF: Number(h.stakeF).toFixed(2),
1353
- stakeL: Number(h.stakeL).toFixed(2),
1354
- date: h.date,
1355
- key: h.key,
1356
- detailSA: h.detailsa,
1357
- detailSC: h.detailsc,
1358
- resultL: h.resultL
1349
+ wagers: ((g = (y = e.data) == null ? void 0 : y.wagers) == null ? void 0 : g.map((v) => ({
1350
+ payout: Number(v.payout).toFixed(2),
1351
+ betType: v.betType,
1352
+ stakeF: Number(v.stakeF).toFixed(2),
1353
+ stakeL: Number(v.stakeL).toFixed(2),
1354
+ date: v.date,
1355
+ key: v.key,
1356
+ detailSA: v.detailsa,
1357
+ detailSC: v.detailsc,
1358
+ resultL: v.resultL
1359
1359
  }))) ?? [],
1360
- currentPage: ((v = e.data) == null ? void 0 : v.page.current_page) ?? 1,
1361
- totalPage: ((O = e.data) == null ? void 0 : O.page.last_page) ?? 1
1360
+ currentPage: ((b = e.data) == null ? void 0 : b.page.current_page) ?? 1,
1361
+ totalPage: ((P = e.data) == null ? void 0 : P.page.last_page) ?? 1
1362
1362
  }
1363
1363
  };
1364
1364
  }, ia = (e) => {
@@ -1372,7 +1372,7 @@ const We = (e) => {
1372
1372
  binded: ((l = e.data) == null ? void 0 : l.binded) ?? !1
1373
1373
  }
1374
1374
  };
1375
- }, la = (e) => S(e), ua = (e) => {
1375
+ }, la = (e) => T(e), ua = (e) => {
1376
1376
  var t;
1377
1377
  return {
1378
1378
  status: e.status == 1,
@@ -1382,7 +1382,7 @@ const We = (e) => {
1382
1382
  createdAt: a.created_at
1383
1383
  }))) ?? []
1384
1384
  };
1385
- }, da = (e) => S(e), ca = (e) => {
1385
+ }, da = (e) => T(e), ca = (e) => {
1386
1386
  var t, a, l;
1387
1387
  return {
1388
1388
  status: e.status == 1,
@@ -1407,11 +1407,11 @@ const We = (e) => {
1407
1407
  }))) ?? []
1408
1408
  }
1409
1409
  };
1410
- }, ma = (e) => S(e), pa = (e) => ({
1410
+ }, ma = (e) => T(e), pa = (e) => ({
1411
1411
  status: e.status == 1,
1412
1412
  message: e.status == 1 ? e.message ?? "" : e.errormessage ?? "",
1413
1413
  tokenAmount: e.token_amount
1414
- }), ga = (e) => S(e);
1414
+ }), ga = (e) => T(e);
1415
1415
  var Z = /* @__PURE__ */ ((e) => (e.vipcalculation = "vipcalculation", e.livechat = "livechat", e.extralivechat = "extralivechat", e.mobilevalidate = "mobilevalidate", e.withdrawtac = "withdrawtac", e.imageDomain = "imagedomain", e.withdrawalCode = "withdrawalcode", e.withdrawAlipay = "withdrawalipay", e.crypto = "crypto", e.loginCaptcha = "logincaptcha", e.registerCaptcha = "registercaptcha", e))(Z || {});
1416
1416
  const ba = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1417
1417
  __proto__: null,
@@ -1490,7 +1490,7 @@ const ba = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1490
1490
  status: e.status == 1,
1491
1491
  errorMessage: e.errormessage ?? "",
1492
1492
  isAutoTransfer: e.optionkey == "auto"
1493
- }), Sa = (e) => S(e), Pa = (e) => ({
1493
+ }), Sa = (e) => T(e), Pa = (e) => ({
1494
1494
  status: e.status,
1495
1495
  message: e.msg ?? "",
1496
1496
  turnover: e.data ? e.data.turnover : 0,
@@ -1512,10 +1512,10 @@ const ba = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1512
1512
  amount: t
1513
1513
  };
1514
1514
  };
1515
- var I = /* @__PURE__ */ ((e) => (e.inProgress = "inProgress", e.collectable = "collectable", e.collected = "collected", e))(I || {});
1515
+ var D = /* @__PURE__ */ ((e) => (e.inProgress = "inProgress", e.collectable = "collectable", e.collected = "collected", e))(D || {});
1516
1516
  const Ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1517
1517
  __proto__: null,
1518
- MissionStatus: I
1518
+ MissionStatus: D
1519
1519
  }, Symbol.toStringTag, { value: "Module" })), ja = (e) => {
1520
1520
  if (e.status === 0)
1521
1521
  return {
@@ -1529,18 +1529,18 @@ const Ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1529
1529
  period: `${ae(e.data.datefrom)} ~ ${ae(e.data.dateto)}`,
1530
1530
  gift: {
1531
1531
  deposit: {
1532
- current: t.filter((l) => l.status == I.collected).length,
1532
+ current: t.filter((l) => l.status == D.collected).length,
1533
1533
  total: t.length,
1534
1534
  percentage: ne(t)
1535
1535
  },
1536
1536
  activeBet: {
1537
- current: a.filter((l) => l.status == I.collected).length,
1537
+ current: a.filter((l) => l.status == D.collected).length,
1538
1538
  total: a.length,
1539
1539
  percentage: ne(a)
1540
1540
  },
1541
1541
  grandPrize: {
1542
1542
  countDownTimestamp: xa(e.data.dateto),
1543
- status: e.data.final_claimable ? e.data.final_collected === "1" ? I.collected : I.collectable : I.inProgress,
1543
+ status: e.data.final_claimable ? e.data.final_collected === "1" ? D.collected : D.collectable : D.inProgress,
1544
1544
  prize: e.data.reward
1545
1545
  }
1546
1546
  },
@@ -1553,7 +1553,7 @@ const Ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1553
1553
  return {
1554
1554
  id: a.transid,
1555
1555
  reward: a.reward,
1556
- status: a.claimable !== "1" ? I.inProgress : a.collected === "1" ? I.collected : I.collectable,
1556
+ status: a.claimable !== "1" ? D.inProgress : a.collected === "1" ? D.collected : D.collectable,
1557
1557
  progress: {
1558
1558
  current: l,
1559
1559
  total: a.requirement,
@@ -1587,7 +1587,7 @@ const Ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1587
1587
  }), Ia = (e) => ({
1588
1588
  currentPage: e.mdGameLists.current_page,
1589
1589
  lastPage: e.mdGameLists.last_page,
1590
- data: e.mdGameLists.data.map((t) => ({
1590
+ data: e.mdGameLists.data && e.mdGameLists.data.length > 0 ? e.mdGameLists.data.map((t) => ({
1591
1591
  gameId: t.id,
1592
1592
  platformId: t.id_PlatformProduct,
1593
1593
  name: t.name,
@@ -1600,9 +1600,9 @@ const Ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1600
1600
  imageUrl: t.img.includes("platform_logo") ? `/image/platform_logo/${t.img.split("/").pop()}?v=1` : `${e.mdDomains[t.mdDomains_id]}${t.img}?ts=${t.filemtime}`,
1601
1601
  logoUrl: `/image/platform_logo/${t.img.split("/").pop()}?v=1`,
1602
1602
  rate: "0.00"
1603
- }))
1604
- }), Fa = (e) => S(e), La = (e) => S(e), Ga = (e) => S(e), za = async (e) => {
1605
- var t, a, l, i, u, d, m, f, p, v, O, h, g, P, x, _;
1603
+ })) ?? [] : []
1604
+ }), Fa = (e) => T(e), La = (e) => T(e), Ga = (e) => T(e), za = async (e) => {
1605
+ var t, a, l, i, u, d, p, y, g, b, P, v, m, S, M, F;
1606
1606
  try {
1607
1607
  e.findIndex((c) => c.name === s.vipList) !== -1 && e.push(
1608
1608
  {
@@ -1623,8 +1623,8 @@ const Ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1623
1623
  name: s.getPlatformTurnoverRate,
1624
1624
  query: ""
1625
1625
  }));
1626
- const k = e.findIndex((c) => c.name === s.gameList);
1627
- k !== -1 && (JSON.parse(e[k].query).pid || e.push({
1626
+ const L = e.findIndex((c) => c.name === s.gameList);
1627
+ L !== -1 && (JSON.parse(e[L].query).pid || e.push({
1628
1628
  name: s.fishGameList,
1629
1629
  query: JSON.stringify({
1630
1630
  d: "mobile",
@@ -1638,8 +1638,8 @@ const Ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1638
1638
  const U = e.findIndex((c) => c.name === s.searchHot);
1639
1639
  if (U !== -1) {
1640
1640
  let c = {};
1641
- e.forEach((y) => {
1642
- c = y.query;
1641
+ e.forEach((_) => {
1642
+ c = _.query;
1643
1643
  }), e.splice(U), e.push({
1644
1644
  name: s.getFourDimensionData,
1645
1645
  query: String(c)
@@ -1648,8 +1648,8 @@ const Ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1648
1648
  const B = e.findIndex((c) => c.name === s.searchNumberHistory);
1649
1649
  if (B !== -1) {
1650
1650
  let c = {};
1651
- e.forEach((y) => {
1652
- c = y.query;
1651
+ e.forEach((_) => {
1652
+ c = _.query;
1653
1653
  }), e.splice(B), e.push({
1654
1654
  name: s.getFourDimensionData,
1655
1655
  query: String(c)
@@ -1657,8 +1657,8 @@ const Ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1657
1657
  }
1658
1658
  if (e.findIndex((c) => c.name === s.searchByDate) !== -1) {
1659
1659
  let c = {};
1660
- e.forEach((y) => {
1661
- c = y.query;
1660
+ e.forEach((_) => {
1661
+ c = _.query;
1662
1662
  }), e.splice(B), e.push({
1663
1663
  name: s.getFourDimensionData,
1664
1664
  query: String(c)
@@ -1698,7 +1698,7 @@ const Ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1698
1698
  };
1699
1699
  for (const c of E.data.responses) {
1700
1700
  c.error != null && c.error.code != 200 && (n.status = c.error.code, n.message = c.error.message);
1701
- const y = c.attributes !== null && c.attributes !== void 0 ? me(c.attributes) : null, r = c.name, o = y ? JSON.parse(y) : null;
1701
+ const _ = c.attributes !== null && c.attributes !== void 0 ? me(c.attributes) : null, r = c.name, o = _ ? JSON.parse(_) : null;
1702
1702
  if (console.log(r), console.log(o), !o)
1703
1703
  console.log("Not data received"), n.result[r] = null;
1704
1704
  else
@@ -2202,8 +2202,8 @@ const Ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2202
2202
  const c = n.result.getIncentiveData;
2203
2203
  if (s.getIncentiveRebate in n.result) {
2204
2204
  if ((a = n.result) != null && a.getIncentiveRebate) {
2205
- const y = n.result.getIncentiveRebate;
2206
- c.claimable = Number(y.amount);
2205
+ const _ = n.result.getIncentiveRebate;
2206
+ c.claimable = Number(_.amount);
2207
2207
  }
2208
2208
  delete n.result.getIncentiveRebate;
2209
2209
  }
@@ -2211,30 +2211,30 @@ const Ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2211
2211
  }
2212
2212
  if (s.vipList in n.result && ((l = n.result) != null && l.vipList)) {
2213
2213
  const c = n.result.vipList;
2214
- let y = 4;
2215
- if (s.getSetting in n.result && ((i = n.result) != null && i.getSetting && (y = n.result.getSetting.vipCalculation), delete n.result.getSetting), s.vipStatus in n.result) {
2214
+ let _ = 4;
2215
+ if (s.getSetting in n.result && ((i = n.result) != null && i.getSetting && (_ = n.result.getSetting.vipCalculation), delete n.result.getSetting), s.vipStatus in n.result) {
2216
2216
  if ((u = n.result) != null && u.vipStatus) {
2217
2217
  const r = n.result.vipStatus, {
2218
2218
  current_grade_id: o,
2219
- current_deposit: T,
2220
- current_turnover: M,
2221
- percentage: j
2222
- } = r, G = c.list.findIndex((C) => C.id === o);
2223
- c.list = c.list.map((C, z) => {
2219
+ current_deposit: h,
2220
+ current_turnover: k,
2221
+ percentage: O
2222
+ } = r, G = c.list.findIndex((j) => j.id === o);
2223
+ c.list = c.list.map((j, z) => {
2224
2224
  const N = z === G;
2225
- let F = "0", b = "0", W = 0;
2226
- return N ? (F = `${Math.min(Number(T), Number(C.deposit.total))}`, b = `${Math.min(Number(M), Number(C.turnover.total))}`, W = j) : z < G ? (F = C.deposit.total, b = C.turnover.total, W = 1) : z > G && (F = "0.00", b = "0.00", W = 0), {
2227
- ...C,
2225
+ let C = "0", f = "0", W = 0;
2226
+ return N ? (C = `${Math.min(Number(h), Number(j.deposit.total))}`, f = `${Math.min(Number(k), Number(j.turnover.total))}`, W = O) : z < G ? (C = j.deposit.total, f = j.turnover.total, W = 1) : z > G && (C = "0.00", f = "0.00", W = 0), {
2227
+ ...j,
2228
2228
  is_current_level: N,
2229
2229
  deposit: {
2230
- ...C.deposit,
2231
- isShow: y === 1 || y === 3 || y === 4,
2232
- current: F
2230
+ ...j.deposit,
2231
+ isShow: _ === 1 || _ === 3 || _ === 4,
2232
+ current: C
2233
2233
  },
2234
2234
  turnover: {
2235
- ...C.turnover,
2236
- isShow: y === 2 || y === 3 || y === 4,
2237
- current: b
2235
+ ...j.turnover,
2236
+ isShow: _ === 2 || _ === 3 || _ === 4,
2237
+ current: f
2238
2238
  },
2239
2239
  percentage: W
2240
2240
  };
@@ -2244,118 +2244,118 @@ const Ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2244
2244
  }
2245
2245
  if (s.vipBonus in n.result) {
2246
2246
  if ((d = n.result) != null && d.vipBonus) {
2247
- const r = n.result.vipBonus, o = c.list.find((W) => W.is_current_level == !0), T = Number(o == null ? void 0 : o.benefit_list.daily.bonus) ?? 0, M = Number(o == null ? void 0 : o.benefit_list.weekly.bonus) ?? 0, j = Number(o == null ? void 0 : o.benefit_list.monthly.bonus) ?? 0;
2247
+ const r = n.result.vipBonus, o = c.list.find((W) => W.is_current_level == !0), h = Number(o == null ? void 0 : o.benefit_list.daily.bonus) ?? 0, k = Number(o == null ? void 0 : o.benefit_list.weekly.bonus) ?? 0, O = Number(o == null ? void 0 : o.benefit_list.monthly.bonus) ?? 0;
2248
2248
  c.bonus.day.isClaimable = r.day.isClaimable;
2249
- const { dayRemainingTime: G, dayProgressPercentage: C } = be();
2249
+ const { dayRemainingTime: G, dayProgressPercentage: j } = be();
2250
2250
  c.bonus.day.timestamp = {
2251
- current: !r.day.isClaimable && T > 0 ? G : 0,
2252
- percentage: C
2251
+ current: !r.day.isClaimable && h > 0 ? G : 0,
2252
+ percentage: j
2253
2253
  }, c.bonus.week.isClaimable = r.week.isClaimable;
2254
2254
  const { weekRemainingTime: z, weekProgressPercentage: N } = ge();
2255
2255
  c.bonus.week.timestamp = {
2256
- current: !r.week.isClaimable && M > 0 ? z : 0,
2256
+ current: !r.week.isClaimable && k > 0 ? z : 0,
2257
2257
  percentage: N
2258
2258
  }, c.bonus.month.isClaimable = r.month.isClaimable;
2259
- const { monthRemainingTime: F, monthProgressPercentage: b } = pe();
2259
+ const { monthRemainingTime: C, monthProgressPercentage: f } = pe();
2260
2260
  c.bonus.month.timestamp = {
2261
- current: !r.month.isClaimable && j > 0 ? F : 0,
2262
- percentage: b
2261
+ current: !r.month.isClaimable && O > 0 ? C : 0,
2262
+ percentage: f
2263
2263
  };
2264
2264
  }
2265
2265
  delete n.result.vipBonus;
2266
2266
  }
2267
2267
  if (s.vipFieldStatus in n.result) {
2268
- if ((m = n.result) != null && m.vipFieldStatus) {
2268
+ if ((p = n.result) != null && p.vipFieldStatus) {
2269
2269
  const r = n.result.vipFieldStatus, o = [];
2270
2270
  o.push({
2271
2271
  name: "",
2272
2272
  code: "vipLevel",
2273
- value: c.list.map((b) => b.name)
2273
+ value: c.list.map((f) => f.name)
2274
2274
  });
2275
- const T = r.findIndex(
2276
- (b) => b.fieldName == "upgrade_bonus"
2275
+ const h = r.findIndex(
2276
+ (f) => f.fieldName == "upgrade_bonus"
2277
2277
  );
2278
- T > -1 && o.push({
2279
- name: r[T].showName,
2278
+ h > -1 && o.push({
2279
+ name: r[h].showName,
2280
2280
  code: "",
2281
- value: c.list.map((b) => b.benefit_list.upgrade.bonus)
2281
+ value: c.list.map((f) => f.benefit_list.upgrade.bonus)
2282
2282
  });
2283
- const M = r.findIndex(
2284
- (b) => b.fieldName == "upgrade_bonus_multiply"
2283
+ const k = r.findIndex(
2284
+ (f) => f.fieldName == "upgrade_bonus_multiply"
2285
2285
  );
2286
- M > -1 && o.push({
2287
- name: r[M].showName,
2286
+ k > -1 && o.push({
2287
+ name: r[k].showName,
2288
2288
  code: "",
2289
- value: c.list.map((b) => b.benefit_list.upgrade.turnover)
2289
+ value: c.list.map((f) => f.benefit_list.upgrade.turnover)
2290
2290
  });
2291
- const j = r.findIndex(
2292
- (b) => b.fieldName == "monthly_bonus"
2291
+ const O = r.findIndex(
2292
+ (f) => f.fieldName == "monthly_bonus"
2293
2293
  );
2294
- c.bonus.month.isShow = j > -1, j > -1 && o.push({
2295
- name: r[j].showName,
2294
+ c.bonus.month.isShow = O > -1, O > -1 && o.push({
2295
+ name: r[O].showName,
2296
2296
  code: "",
2297
- value: c.list.map((b) => b.benefit_list.monthly.bonus)
2297
+ value: c.list.map((f) => f.benefit_list.monthly.bonus)
2298
2298
  });
2299
2299
  const G = r.findIndex(
2300
- (b) => b.fieldName == "monthly_bonus_multiply"
2300
+ (f) => f.fieldName == "monthly_bonus_multiply"
2301
2301
  );
2302
2302
  G > -1 && o.push({
2303
2303
  name: r[G].showName,
2304
2304
  code: "",
2305
- value: c.list.map((b) => b.benefit_list.monthly.turnover)
2305
+ value: c.list.map((f) => f.benefit_list.monthly.turnover)
2306
2306
  });
2307
- const C = r.findIndex(
2308
- (b) => b.fieldName == "weekly_bonus"
2307
+ const j = r.findIndex(
2308
+ (f) => f.fieldName == "weekly_bonus"
2309
2309
  );
2310
- c.bonus.week.isShow = C > -1, C > -1 && o.push({
2311
- name: r[C].showName,
2310
+ c.bonus.week.isShow = j > -1, j > -1 && o.push({
2311
+ name: r[j].showName,
2312
2312
  code: "",
2313
- value: c.list.map((b) => b.benefit_list.weekly.bonus)
2313
+ value: c.list.map((f) => f.benefit_list.weekly.bonus)
2314
2314
  });
2315
2315
  const z = r.findIndex(
2316
- (b) => b.fieldName == "weekly_bonus_multiply"
2316
+ (f) => f.fieldName == "weekly_bonus_multiply"
2317
2317
  );
2318
2318
  z > -1 && o.push({
2319
2319
  name: r[z].showName,
2320
2320
  code: "",
2321
- value: c.list.map((b) => b.benefit_list.weekly.turnover)
2321
+ value: c.list.map((f) => f.benefit_list.weekly.turnover)
2322
2322
  });
2323
2323
  const N = r.findIndex(
2324
- (b) => b.fieldName == "daily_bonus"
2324
+ (f) => f.fieldName == "daily_bonus"
2325
2325
  );
2326
2326
  c.bonus.day.isShow = N > -1, N > -1 && o.push({
2327
2327
  name: r[N].showName,
2328
2328
  code: "",
2329
- value: c.list.map((b) => b.benefit_list.daily.bonus)
2329
+ value: c.list.map((f) => f.benefit_list.daily.bonus)
2330
2330
  });
2331
- const F = r.findIndex(
2332
- (b) => b.fieldName == "daily_bonus_multiply"
2331
+ const C = r.findIndex(
2332
+ (f) => f.fieldName == "daily_bonus_multiply"
2333
2333
  );
2334
- F > -1 && o.push({
2335
- name: r[F].showName,
2334
+ C > -1 && o.push({
2335
+ name: r[C].showName,
2336
2336
  code: "",
2337
- value: c.list.map((b) => b.benefit_list.daily.turnover)
2338
- }), (y === 1 || y === 3 || y === 4) && o.push({
2337
+ value: c.list.map((f) => f.benefit_list.daily.turnover)
2338
+ }), (_ === 1 || _ === 3 || _ === 4) && o.push({
2339
2339
  name: "",
2340
2340
  code: "detail_deposit",
2341
- value: c.list.map((b) => b.deposit.total)
2342
- }), (y === 2 || y === 3 || y === 4) && o.push({
2341
+ value: c.list.map((f) => f.deposit.total)
2342
+ }), (_ === 2 || _ === 3 || _ === 4) && o.push({
2343
2343
  name: "",
2344
2344
  code: "detail_turnover",
2345
- value: c.list.map((b) => b.turnover.total)
2345
+ value: c.list.map((f) => f.turnover.total)
2346
2346
  }), c.detail = o;
2347
2347
  }
2348
2348
  delete n.result.vipFieldStatus;
2349
2349
  }
2350
2350
  n.result.vipList = c;
2351
2351
  }
2352
- if (s.getFavouriteGame in n.result && ((f = n.result) != null && f.getFavouriteGame)) {
2352
+ if (s.getFavouriteGame in n.result && ((y = n.result) != null && y.getFavouriteGame)) {
2353
2353
  const c = n.result.getFavouriteGame;
2354
- if (JSON.parse(e[R].query).pid && s.getPlatformTurnoverRate in n.result && (p = n.result) != null && p.getPlatformTurnoverRate) {
2355
- const y = n.result.getPlatformTurnoverRate;
2354
+ if (JSON.parse(e[R].query).pid && s.getPlatformTurnoverRate in n.result && (g = n.result) != null && g.getPlatformTurnoverRate) {
2355
+ const _ = n.result.getPlatformTurnoverRate;
2356
2356
  n.result.getFavouriteGame = c.data.map((r) => {
2357
- const o = y.find(
2358
- (T) => T.id === r.platformId
2357
+ const o = _.find(
2358
+ (h) => h.id === r.platformId
2359
2359
  );
2360
2360
  return {
2361
2361
  ...r,
@@ -2364,15 +2364,15 @@ const Ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2364
2364
  });
2365
2365
  }
2366
2366
  }
2367
- if (s.gameList in n.result && ((v = n.result) != null && v.gameList)) {
2367
+ if (s.gameList in n.result && ((b = n.result) != null && b.gameList)) {
2368
2368
  const c = n.result.gameList;
2369
- if (JSON.parse(e[k].query).pid) {
2370
- if (s.getPlatformTurnoverRate in n.result && ((O = n.result) != null && O.getPlatformTurnoverRate)) {
2371
- const y = n.result.getPlatformTurnoverRate;
2369
+ if (JSON.parse(e[L].query).pid) {
2370
+ if (s.getPlatformTurnoverRate in n.result && ((P = n.result) != null && P.getPlatformTurnoverRate)) {
2371
+ const _ = n.result.getPlatformTurnoverRate;
2372
2372
  c.platformGameList.data = c.platformGameList.data.map(
2373
2373
  (r) => {
2374
- const o = y.find(
2375
- (T) => T.id === r.platformId
2374
+ const o = _.find(
2375
+ (h) => h.id === r.platformId
2376
2376
  );
2377
2377
  return {
2378
2378
  ...r,
@@ -2382,8 +2382,8 @@ const Ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2382
2382
  );
2383
2383
  }
2384
2384
  } else {
2385
- const y = c.platformGame.map((r) => r.list.filter((o) => o.flag.trial && !r.nextPage).map((o) => o));
2386
- if (c.trialGameList = y.flat(), s.fishGameList in n.result && n.result.fishGameList) {
2385
+ const _ = c.platformGame.map((r) => r.list.filter((o) => o.flag.trial && !r.nextPage).map((o) => o));
2386
+ if (c.trialGameList = _.flat(), s.fishGameList in n.result && n.result.fishGameList) {
2387
2387
  const r = n.result.fishGameList;
2388
2388
  c.fishGameList = r.map((o) => ({
2389
2389
  gameId: Number(o.id),
@@ -2400,96 +2400,97 @@ const Ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2400
2400
  rate: "0.00"
2401
2401
  })), delete n.result.fishGameList;
2402
2402
  }
2403
- if (s.getPlatformTurnoverRate in n.result && ((h = n.result) != null && h.getPlatformTurnoverRate)) {
2403
+ if (s.getPlatformTurnoverRate in n.result && ((v = n.result) != null && v.getPlatformTurnoverRate)) {
2404
2404
  const r = n.result.getPlatformTurnoverRate;
2405
2405
  c.platformGame.forEach((o) => {
2406
- o.list = o.list.map((T) => {
2407
- const M = r.find(
2408
- (j) => j.id === T.platformId
2406
+ o.list = o.list.map((h) => {
2407
+ const k = r.find(
2408
+ (O) => O.id === h.platformId
2409
2409
  );
2410
2410
  return {
2411
- ...T,
2412
- rate: (M == null ? void 0 : M.percentage) ?? "0.00"
2411
+ ...h,
2412
+ rate: (k == null ? void 0 : k.percentage) ?? "0.00"
2413
2413
  };
2414
2414
  });
2415
2415
  }), c.hotGameList.data = c.hotGameList.data.map((o) => {
2416
- const T = r.find(
2417
- (M) => M.id === o.platformId
2416
+ const h = r.find(
2417
+ (k) => k.id === o.platformId
2418
2418
  );
2419
2419
  return {
2420
2420
  ...o,
2421
- rate: (T == null ? void 0 : T.percentage) ?? "0.00"
2421
+ rate: (h == null ? void 0 : h.percentage) ?? "0.00"
2422
2422
  };
2423
2423
  }), c.trialGameList = c.trialGameList.map((o) => {
2424
- const T = r.find(
2425
- (M) => M.id === o.platformId
2424
+ const h = r.find(
2425
+ (k) => k.id === o.platformId
2426
2426
  );
2427
2427
  return {
2428
2428
  ...o,
2429
- rate: (T == null ? void 0 : T.percentage) ?? "0.00"
2429
+ rate: (h == null ? void 0 : h.percentage) ?? "0.00"
2430
2430
  };
2431
2431
  }), c.fishGameList = c.fishGameList.map((o) => {
2432
- const T = r.find(
2433
- (M) => M.id === o.platformId
2432
+ const h = r.find(
2433
+ (k) => k.id === o.platformId
2434
2434
  );
2435
2435
  return {
2436
2436
  ...o,
2437
- rate: (T == null ? void 0 : T.percentage) ?? "0.00"
2437
+ rate: (h == null ? void 0 : h.percentage) ?? "0.00"
2438
2438
  };
2439
2439
  }), delete n.result.getPlatformTurnoverRate;
2440
2440
  }
2441
2441
  }
2442
2442
  n.result.gameList = c;
2443
2443
  }
2444
- if (s.getCompany in n.result && ((g = n.result) != null && g.getCompany)) {
2444
+ if (s.getCompany in n.result && ((m = n.result) != null && m.getCompany)) {
2445
2445
  const c = n.result.getCompany;
2446
- if (s.searchResultDate in n.result && (P = n.result) != null && P.searchResultDate) {
2447
- const y = n.result.searchResultDate;
2446
+ if (s.searchResultDate in n.result && (S = n.result) != null && S.searchResultDate) {
2447
+ const _ = n.result.searchResultDate;
2448
2448
  c.forEach((r) => {
2449
- const o = y.find((T) => T.id == r.id);
2449
+ const o = _.find((h) => h.id == r.id);
2450
2450
  o && (r.date = o == null ? void 0 : o.date);
2451
2451
  }), delete n.result.searchResultDate;
2452
2452
  }
2453
2453
  n.result.getCompany = c;
2454
2454
  }
2455
2455
  return n;
2456
- } catch (D) {
2457
- return le.isAxiosError(D) ? {
2458
- status: ((x = D.response) == null ? void 0 : x.status) || 600,
2459
- message: JSON.stringify((_ = D.response) == null ? void 0 : _.data),
2456
+ } catch (x) {
2457
+ return le.isAxiosError(x) ? {
2458
+ status: ((M = x.response) == null ? void 0 : M.status) || 600,
2459
+ message: JSON.stringify((F = x.response) == null ? void 0 : F.data),
2460
2460
  result: {}
2461
- } : (console.error(D), {
2462
- status: D.status || 500,
2463
- message: D.message,
2461
+ } : (console.error(x), {
2462
+ status: x.status || 500,
2463
+ message: x.message,
2464
2464
  result: {}
2465
2465
  });
2466
2466
  }
2467
2467
  }, Na = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2468
2468
  __proto__: null,
2469
2469
  post: za
2470
- }, Symbol.toStringTag, { value: "Module" })), wa = async (e, t) => {
2471
- let a = {
2470
+ }, Symbol.toStringTag, { value: "Module" })), wa = async (e, t, a) => {
2471
+ let l = {
2472
2472
  status: 200,
2473
2473
  message: "",
2474
2474
  accessToken: ""
2475
2475
  };
2476
2476
  try {
2477
- a = {
2477
+ l = {
2478
2478
  status: 200,
2479
2479
  message: "",
2480
2480
  accessToken: (await w.post("/auth/sesh", {
2481
2481
  usr: e,
2482
- pwd: t
2482
+ pwd: t,
2483
+ captcha: a
2483
2484
  })).data.access_token
2484
2485
  };
2485
- } catch (l) {
2486
- a = {
2487
- status: l.status || 500,
2488
- message: l.message,
2486
+ } catch (i) {
2487
+ l = {
2488
+ status: i.status || 500,
2489
+ message: i.message,
2489
2490
  accessToken: ""
2490
2491
  };
2491
2492
  }
2492
- return a;
2493
+ return l;
2493
2494
  }, Ua = async (e, t, a, l, i) => {
2494
2495
  let u = {
2495
2496
  status: 200,
@@ -2497,7 +2498,7 @@ const Ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2497
2498
  accessToken: ""
2498
2499
  };
2499
2500
  try {
2500
- const m = (await w.post("/auth/jwt", {
2501
+ const p = (await w.post("/auth/jwt", {
2501
2502
  os: e,
2502
2503
  usr: t,
2503
2504
  pwd: a,
@@ -2507,7 +2508,7 @@ const Ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2507
2508
  u.status === 200 && (u = {
2508
2509
  status: 200,
2509
2510
  message: "",
2510
- accessToken: m.access_token
2511
+ accessToken: p.access_token
2511
2512
  });
2512
2513
  } catch (d) {
2513
2514
  u = {