@soma-vertical-web/multi-lib 1.0.32 → 1.0.34

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 (57) hide show
  1. package/contexts/contexts/plp/FilterContext.d.ts +1 -1
  2. package/contexts/contexts/plp/PLPContext.d.ts +1 -1
  3. package/contexts/contexts/search/Facets.d.ts +1 -1
  4. package/contexts/contexts/search/Products.d.ts +1 -1
  5. package/contexts/contexts/search/QueryFacets.d.ts +5 -0
  6. package/contexts/contexts/search/QueryProducts.d.ts +5 -0
  7. package/contexts/contexts/search/RootTank.d.ts +9 -0
  8. package/contexts/contexts/search/Search.d.ts +1 -1
  9. package/contexts/hooks/useScrollRestorationInfinite.d.ts +1 -1
  10. package/contexts/index.d.ts +3 -15
  11. package/contexts/store/plp-scroll.d.ts +3 -0
  12. package/contexts/store/plp.d.ts +2 -2
  13. package/data/api/fetchProxy.d.ts +9 -0
  14. package/data/helpers/plp/index.d.ts +4 -13
  15. package/data/helpers/search/facets.d.ts +1 -0
  16. package/data/helpers/search/index.d.ts +4 -0
  17. package/data/helpers/search/product/index.d.ts +13 -1
  18. package/data/helpers/search/search.d.ts +1 -0
  19. package/data/index.d.ts +2 -0
  20. package/index-AgO_aUeQ.mjs +2371 -0
  21. package/index-BFjIPkXv.js +4 -0
  22. package/{index-BM8vTUKg.mjs → index-CIVkR1d_.mjs} +776 -712
  23. package/index-CXSKhXO3.js +4 -0
  24. package/index-D0PGMDh5.js +4 -0
  25. package/index-ekZLWJ5-.mjs +2686 -0
  26. package/index.js +17 -17
  27. package/index.mjs +10513 -8429
  28. package/index2.js +2 -2
  29. package/index2.mjs +338 -343
  30. package/layout/index.d.ts +5 -5
  31. package/layout/template/PDC/Composite/Grid/Grid.d.ts +1 -1
  32. package/layout/template/PDC/Composite/InfiniteScroller/Banners/Banners.d.ts +1 -1
  33. package/layout/template/PDC/Composite/InfiniteScroller/Filters/Filters.d.ts +7 -0
  34. package/layout/template/PDC/Composite/InfiniteScroller/Filters/index.d.ts +1 -0
  35. package/layout/template/PDC/Composite/InfiniteScroller/InfiniteScroller.d.ts +3 -1
  36. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/AnchorPDP.d.ts +7 -0
  37. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Card.d.ts +1 -1
  38. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Loader.d.ts +1 -1
  39. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/NextPage.d.ts +4 -1
  40. package/layout/template/PDC/Composite/InfiniteScroller/Page/Page.d.ts +2 -2
  41. package/layout/template/PDC/Composite/InfiniteScroller/Page/index.d.ts +10 -3
  42. package/layout/template/PDC/Composite/Pagination/Pagination.d.ts +1 -1
  43. package/layout/template/PDC/PDC.d.ts +1 -1
  44. package/layout/template/PDC/index.d.ts +3 -3
  45. package/layout/template/SearchResult/Composite/Products.d.ts +7 -0
  46. package/layout/template/SearchResult/SearchContent.d.ts +1 -1
  47. package/layout/template/SearchResult/SearchResult.d.ts +1 -1
  48. package/package.json +1 -1
  49. package/server.d.ts +4 -0
  50. package/style.css +1 -1
  51. package/types/contexts/contexts/plp.d.ts +63 -21
  52. package/types/contexts/contexts/search.d.ts +30 -28
  53. package/types/contexts/hooks/index.d.ts +0 -2
  54. package/types/layout/team-components/PLPNavigation/index.d.ts +0 -2
  55. package/types/layout/templates/PLP/index.d.ts +20 -4
  56. package/types/layout/templates/SearchResult/index.d.ts +3 -0
  57. package/index-CZjoMPpQ.js +0 -4
package/index2.mjs CHANGED
@@ -1,21 +1,21 @@
1
1
  import { jsx as O, jsxs as pe, Fragment as W } from "react/jsx-runtime";
2
- import { G as $, z as oe, S as yt, H as T, I as _t, J as Rt, K as It, a as Pt, j as xt, m as St, r as Ct, q as kt, k as Be, n as Et, o as At, l as Ot, D as Tt, C as qt, L as Nt, p as jt, M as $t, N as Ft, O as Lt, P as Dt, e as Ut, Q as Ht } from "./index-BM8vTUKg.mjs";
2
+ import { I as F, A as oe, S as yt, J as T, K as _t, L as Rt, M as It, a as xt, k as Pt, n as St, r as Ct, t as kt, l as Be, o as Et, q as At, m as Ot, N as Tt, O as qt, P as Nt, Q as jt, p as Ft, R as $t, T as Lt } from "./index-AgO_aUeQ.mjs";
3
3
  import { Utils as se, helpers as le } from "@soma-vertical-web/core-components";
4
4
  import * as l from "yup";
5
- import Mt from "sanitize-html";
6
- import { decodeJwt as Bt } from "jose";
7
- import zt from "axios";
8
- const Gt = async ({
5
+ import Dt from "sanitize-html";
6
+ import { decodeJwt as Ut } from "jose";
7
+ import Ht from "axios";
8
+ const Mt = async ({
9
9
  children: e,
10
10
  ClientCartProvider: t,
11
11
  ...r
12
12
  }) => {
13
- const { data: n } = await $(
13
+ const { data: n } = await F(
14
14
  "mini_cart",
15
15
  r
16
16
  );
17
17
  return /* @__PURE__ */ O(t, { ...n ? Array.isArray(n) ? { data: n[0] } : { data: n } : {}, children: e });
18
- }, Vt = ({
18
+ }, Bt = ({
19
19
  slug: e,
20
20
  data: t,
21
21
  SectionZone: r,
@@ -57,19 +57,19 @@ const Gt = async ({
57
57
  }
58
58
  )
59
59
  ] });
60
- }, Wt = async ({
60
+ }, zt = async ({
61
61
  slug: e,
62
62
  SectionZone: t,
63
63
  COMMON_PAGE_COLUMN_GAP: r,
64
64
  identifyWhoIsFirst: n = !1,
65
65
  ...a
66
66
  }) => {
67
- const { data: o } = await $(
67
+ const { data: o } = await F(
68
68
  "common_page",
69
69
  a
70
70
  );
71
71
  return !o || !Array.isArray(o) || o.length === 0 ? null : /* @__PURE__ */ O(
72
- Vt,
72
+ Bt,
73
73
  {
74
74
  data: o,
75
75
  slug: e,
@@ -78,17 +78,17 @@ const Gt = async ({
78
78
  identifyWhoIsFirst: n
79
79
  }
80
80
  );
81
- }, Qt = async ({
81
+ }, Gt = async ({
82
82
  children: e,
83
83
  ClientFlagsAndTagsProvider: t,
84
84
  ...r
85
85
  }) => {
86
- const { data: n } = await $(
86
+ const { data: n } = await F(
87
87
  "flags_and_tags",
88
88
  r
89
89
  );
90
90
  return !n || !Array.isArray(n) ? null : /* @__PURE__ */ O(t, { data: n[0], children: e });
91
- }, Xt = async ({
91
+ }, Vt = async ({
92
92
  className: e,
93
93
  PAYMENT_FLAGS_DICTIONARY: t,
94
94
  PAYMENT_FLAGS: r,
@@ -101,7 +101,7 @@ const Gt = async ({
101
101
  ...g
102
102
  }) => {
103
103
  var v, y, _, p, b, m, f, h, E, N, I;
104
- const { data: s } = await $("footer", g), u = Array.isArray(s) && ((v = s[0]) == null ? void 0 : v.type) === "footer" ? s[0] : null, w = {
104
+ const { data: s } = await F("footer", g), u = Array.isArray(s) && ((v = s[0]) == null ? void 0 : v.type) === "footer" ? s[0] : null, w = {
105
105
  ...(y = u == null ? void 0 : u.paymentInfo) == null ? void 0 : y.paymentInfo,
106
106
  acceptedFlags: Array.isArray(
107
107
  (_ = u == null ? void 0 : u.paymentInfo) == null ? void 0 : _.paymentInfo.acceptedFlags
@@ -138,13 +138,13 @@ const Gt = async ({
138
138
  ICONS: a
139
139
  }
140
140
  ) : null;
141
- }, Kt = async ({
141
+ }, Wt = async ({
142
142
  children: e,
143
143
  ClientHeaderProvider: t,
144
144
  ...r
145
145
  }) => {
146
146
  var o, c, i, d, g, s;
147
- const { data: n } = await $(
147
+ const { data: n } = await F(
148
148
  "header",
149
149
  r
150
150
  ), a = Array.isArray(n) ? n[0] : void 0;
@@ -160,7 +160,7 @@ const Gt = async ({
160
160
  children: e
161
161
  }
162
162
  );
163
- }, Zt = (e) => {
163
+ }, Qt = (e) => {
164
164
  var c, i;
165
165
  const t = (i = (c = e[0]) == null ? void 0 : c.items) == null ? void 0 : i.items;
166
166
  if ((t == null ? void 0 : t.items.length) === 0 || e.length === 0)
@@ -189,19 +189,19 @@ const Gt = async ({
189
189
  helpButtonSize: a,
190
190
  content: o
191
191
  };
192
- }, Jt = async ({
192
+ }, Xt = async ({
193
193
  HelpButton: e,
194
194
  ICONS: t,
195
195
  className: r,
196
196
  ...n
197
197
  }) => {
198
- const { data: a } = await $(
198
+ const { data: a } = await F(
199
199
  "helpbutton",
200
200
  n
201
201
  );
202
202
  if (!a || !Array.isArray(a) || a.length === 0)
203
203
  return null;
204
- const o = Zt(a);
204
+ const o = Qt(a);
205
205
  return /* @__PURE__ */ O(
206
206
  e,
207
207
  {
@@ -210,13 +210,13 @@ const Gt = async ({
210
210
  className: r
211
211
  }
212
212
  );
213
- }, Yt = async ({
213
+ }, Kt = async ({
214
214
  SectionZone: e,
215
215
  LPCadastro: t,
216
216
  ...r
217
217
  }) => {
218
218
  var d;
219
- const { data: n } = await $(
219
+ const { data: n } = await F(
220
220
  "lp_cadastro",
221
221
  r
222
222
  );
@@ -227,7 +227,7 @@ const Gt = async ({
227
227
  /* @__PURE__ */ O(t, { sections: o, content: c }),
228
228
  /* @__PURE__ */ O(e, { data: i })
229
229
  ] });
230
- }, er = async ({
230
+ }, Zt = async ({
231
231
  LPLOJAS_TEMPLATE_RETURN_BUTTON: e,
232
232
  ICONS: t,
233
233
  entity: r,
@@ -236,7 +236,7 @@ const Gt = async ({
236
236
  ...o
237
237
  }) => {
238
238
  var g;
239
- const { data: c } = await $("lp_lojas", o), d = (g = (Array.isArray(c) ? c : [])[0]) == null ? void 0 : g.config.config;
239
+ const { data: c } = await F("lp_lojas", o), d = (g = (Array.isArray(c) ? c : [])[0]) == null ? void 0 : g.config.config;
240
240
  return /* @__PURE__ */ O(
241
241
  a,
242
242
  {
@@ -248,13 +248,13 @@ const Gt = async ({
248
248
  LPLOJAS_TEMPLATE_RETURN_BUTTON: e
249
249
  }
250
250
  );
251
- }, tr = async ({
251
+ }, Jt = async ({
252
252
  ERROR_TEMPLATE_RETURN_BUTTON: e,
253
253
  ErrorTemplate: t,
254
254
  ...r
255
255
  }) => {
256
256
  var o;
257
- const { data: n } = await $(
257
+ const { data: n } = await F(
258
258
  "notfound_page",
259
259
  r
260
260
  ), a = Array.isArray(n) ? (o = n[0]) == null ? void 0 : o.config.config : null;
@@ -265,7 +265,7 @@ const Gt = async ({
265
265
  ERROR_TEMPLATE_RETURN_BUTTON: e
266
266
  }
267
267
  ) : /* @__PURE__ */ O(W, {});
268
- }, rr = async ({
268
+ }, Yt = async ({
269
269
  children: e,
270
270
  productId: t,
271
271
  COMMON_PAGE_COLUMN_GAP: r,
@@ -273,7 +273,7 @@ const Gt = async ({
273
273
  PDPContentProvider: a,
274
274
  ...o
275
275
  }) => {
276
- const { data: c } = await $(
276
+ const { data: c } = await F(
277
277
  "product_page",
278
278
  o
279
279
  );
@@ -287,9 +287,9 @@ const Gt = async ({
287
287
  children: e
288
288
  }
289
289
  );
290
- }, nr = {
290
+ }, er = {
291
291
  "column-modifier": "_column-modifier_1tqap_1"
292
- }, ar = async ({
292
+ }, tr = async ({
293
293
  className: e,
294
294
  children: t,
295
295
  slug: r,
@@ -298,7 +298,7 @@ const Gt = async ({
298
298
  PLPContentProvider: o,
299
299
  ...c
300
300
  }) => {
301
- const { data: i } = await $(
301
+ const { data: i } = await F(
302
302
  "categories_page",
303
303
  c
304
304
  );
@@ -331,7 +331,7 @@ const Gt = async ({
331
331
  {
332
332
  className: le.classNameConcat(
333
333
  oe["responsive-desktop-flex"],
334
- [nr["column-modifier"], ...w]
334
+ [er["column-modifier"], ...w]
335
335
  ),
336
336
  style: {
337
337
  minHeight: "100vh"
@@ -359,9 +359,9 @@ const Gt = async ({
359
359
  }
360
360
  ) })
361
361
  ] });
362
- }, ir = async ({ slug: e, ...t }) => {
362
+ }, rr = async ({ slug: e, ...t }) => {
363
363
  var c, i, d;
364
- const { data: r } = await $(
364
+ const { data: r } = await F(
365
365
  "redirect_to_search",
366
366
  t
367
367
  );
@@ -399,9 +399,9 @@ const Gt = async ({
399
399
  filters: null,
400
400
  sort: null
401
401
  };
402
- }, or = async ({ slug: e, ...t }) => {
402
+ }, nr = async ({ slug: e, ...t }) => {
403
403
  var c, i, d;
404
- const { data: r } = await $(
404
+ const { data: r } = await F(
405
405
  "redirect_to_search",
406
406
  t
407
407
  );
@@ -421,17 +421,17 @@ const Gt = async ({
421
421
  title: o.pageTitle,
422
422
  description: o.pageDescription
423
423
  } : null;
424
- }, sr = async ({
424
+ }, ar = async ({
425
425
  slug: e,
426
426
  Politicas: t,
427
427
  SectionZone: r,
428
428
  oneTrust: n,
429
429
  ...a
430
430
  }) => {
431
- const { data: o } = await $(
431
+ const { data: o } = await F(
432
432
  "policy_page",
433
433
  a
434
- ), { data: c } = await $(
434
+ ), { data: c } = await F(
435
435
  "policy_tab",
436
436
  a
437
437
  ), i = Array.isArray(o) ? o : null, d = Array.isArray(c) ? c : null, g = i ? i[0].sections : null;
@@ -447,13 +447,13 @@ const Gt = async ({
447
447
  ),
448
448
  g && /* @__PURE__ */ O(r, { data: g })
449
449
  ] });
450
- }, lr = async ({
450
+ }, ir = async ({
451
451
  children: e,
452
452
  SectionZone: t,
453
453
  className: r,
454
454
  ...n
455
455
  }) => {
456
- const { data: a } = await $(
456
+ const { data: a } = await F(
457
457
  "search_page",
458
458
  n
459
459
  );
@@ -466,22 +466,22 @@ const Gt = async ({
466
466
  children: e
467
467
  }
468
468
  ) : /* @__PURE__ */ O(W, { children: "children" });
469
- }, cr = async ({
469
+ }, or = async ({
470
470
  ClientTipbarContent: e,
471
471
  ...t
472
472
  }) => {
473
- const { data: r } = await $(
473
+ const { data: r } = await F(
474
474
  "tipbar",
475
475
  t
476
476
  );
477
477
  return /* @__PURE__ */ O(e, { data: r });
478
- }, ur = async ({
478
+ }, sr = async ({
479
479
  children: e,
480
480
  SectionZone: t,
481
481
  WishlistScreening: r,
482
482
  ...n
483
483
  }) => {
484
- const { data: a } = await $(
484
+ const { data: a } = await F(
485
485
  "wishlist_page",
486
486
  n
487
487
  );
@@ -493,34 +493,34 @@ const Gt = async ({
493
493
  children: e
494
494
  }
495
495
  );
496
- }, dr = {
497
- CommonPageContent: Wt,
498
- CartContent: Gt,
499
- FlagsAndTagsContent: Qt,
500
- HeaderContent: Kt,
501
- TipbarContent: cr,
502
- FooterContent: Xt,
503
- PLPContent: ar,
504
- PDPContent: rr,
505
- getRedirectData: ir,
506
- getPLPSynteticMetaData: or,
507
- SearchPageContent: lr,
508
- HelpButtonContent: Jt,
509
- LPCadastroContent: Yt,
510
- LPLojasContent: er,
511
- PolicyPageContent: sr,
512
- NotFoundContent: tr,
513
- WishlistContent: ur
514
- }, Ra = { Components: dr }, pr = l.object({
496
+ }, lr = {
497
+ CommonPageContent: zt,
498
+ CartContent: Mt,
499
+ FlagsAndTagsContent: Gt,
500
+ HeaderContent: Wt,
501
+ TipbarContent: or,
502
+ FooterContent: Vt,
503
+ PLPContent: tr,
504
+ PDPContent: Yt,
505
+ getRedirectData: rr,
506
+ getPLPSynteticMetaData: nr,
507
+ SearchPageContent: ir,
508
+ HelpButtonContent: Xt,
509
+ LPCadastroContent: Kt,
510
+ LPLojasContent: Zt,
511
+ PolicyPageContent: ar,
512
+ NotFoundContent: Jt,
513
+ WishlistContent: sr
514
+ }, wa = { Components: lr }, cr = l.object({
515
515
  country: l.string().length(3, "Country code must be 3 characters long").required("Country is required"),
516
516
  postalCode: l.string().nullable()
517
517
  });
518
- async function mr({ apiUrl: e, body: t, fetchOptions: r }) {
518
+ async function ur({ apiUrl: e, body: t, fetchOptions: r }) {
519
519
  if (!t) {
520
520
  console.error("[ERROR FETCHING] Body is required");
521
521
  return;
522
522
  }
523
- await pr.validate(t);
523
+ await cr.validate(t);
524
524
  const { country: n, postalCode: a } = t;
525
525
  return await T(
526
526
  `${e}/api/checkout/pub/postal-code/${n}/${a}`,
@@ -531,7 +531,7 @@ async function mr({ apiUrl: e, body: t, fetchOptions: r }) {
531
531
  }
532
532
  );
533
533
  }
534
- const fr = l.object({
534
+ const dr = l.object({
535
535
  orderFormId: l.string().nullable(),
536
536
  sellerCode: l.string().nullable(),
537
537
  sellerName: l.string().nullable()
@@ -545,7 +545,7 @@ async function ze({
545
545
  console.error("[ERROR FETCHING] Body is required");
546
546
  return;
547
547
  }
548
- await fr.validate(t);
548
+ await dr.validate(t);
549
549
  const { orderFormId: n, sellerCode: a, sellerName: o } = t, c = a ? `${a.trim()} - ${o}` : null;
550
550
  return T(
551
551
  `${e}/api/checkout/pub/orderForm/${n}/attachments/openTextField`,
@@ -558,7 +558,7 @@ async function ze({
558
558
  }
559
559
  );
560
560
  }
561
- const hr = l.object({
561
+ const pr = l.object({
562
562
  orderFormId: l.string().nullable(),
563
563
  sellerCode: l.string().nullable(),
564
564
  marketingData: l.object()
@@ -573,7 +573,7 @@ async function Ge({
573
573
  console.error("[ERROR FETCHING] Body is required");
574
574
  return;
575
575
  }
576
- await hr.validate(t);
576
+ await pr.validate(t);
577
577
  const { orderFormId: a, sellerCode: o, marketingData: c } = t, i = o ? {
578
578
  utmCampaign: o ? o.toUpperCase() : "",
579
579
  utmiCampaign: o ? `${r.VENDOR_CODE}` : "semcodigo"
@@ -590,17 +590,17 @@ async function Ge({
590
590
  }
591
591
  );
592
592
  }
593
- const gr = l.object({
593
+ const mr = l.object({
594
594
  orderFormId: l.string().nullable(),
595
595
  sellerCode: l.string().nullable(),
596
596
  sellerName: l.string().nullable()
597
597
  });
598
- async function br({ apiUrl: e, body: t, fetchOptions: r, extraData: n }) {
598
+ async function fr({ apiUrl: e, body: t, fetchOptions: r, extraData: n }) {
599
599
  if (!t) {
600
600
  console.error("[ERROR FETCHING] Body is required");
601
601
  return;
602
602
  }
603
- await gr.validate(t);
603
+ await mr.validate(t);
604
604
  const a = await ze({ apiUrl: e, body: t, fetchOptions: r });
605
605
  return Ge({
606
606
  apiUrl: e,
@@ -612,11 +612,11 @@ async function br({ apiUrl: e, body: t, fetchOptions: r, extraData: n }) {
612
612
  fetchOptions: r
613
613
  });
614
614
  }
615
- const wr = l.object({
615
+ const hr = l.object({
616
616
  orderFormId: l.string().nullable(),
617
617
  coupon: l.string().nullable()
618
618
  });
619
- async function vr({
619
+ async function gr({
620
620
  apiUrl: e,
621
621
  body: t,
622
622
  fetchOptions: r
@@ -625,7 +625,7 @@ async function vr({
625
625
  console.error("[ERROR FETCHING] Body is required");
626
626
  return;
627
627
  }
628
- await wr.validate(t);
628
+ await hr.validate(t);
629
629
  const { coupon: n = "", orderFormId: a } = t;
630
630
  return T(
631
631
  `${e}/api/checkout/pub/orderForm/${a}/coupons`,
@@ -636,12 +636,12 @@ async function vr({
636
636
  }
637
637
  );
638
638
  }
639
- const yr = l.object({
639
+ const br = l.object({
640
640
  appId: l.string().required("App ID is required"),
641
641
  orderFormId: l.string().nullable(),
642
642
  key: l.array().of(l.string())
643
643
  });
644
- async function _r({
644
+ async function wr({
645
645
  apiUrl: e,
646
646
  body: t,
647
647
  fetchOptions: r
@@ -650,7 +650,7 @@ async function _r({
650
650
  console.error("[ERROR FETCHING] Body is required");
651
651
  return;
652
652
  }
653
- await yr.validate(t);
653
+ await br.validate(t);
654
654
  const { appId: n = "faststore", orderFormId: a, key: o } = t;
655
655
  return T(
656
656
  `${e}/api/checkout/pub/orderForm/${a}/customData/${n}/${o}`,
@@ -660,23 +660,23 @@ async function _r({
660
660
  }
661
661
  );
662
662
  }
663
- const Rr = l.object().shape({
663
+ const vr = l.object().shape({
664
664
  name: l.string().required("Attachment name is required"),
665
665
  content: l.object().nullable()
666
666
  });
667
667
  var He;
668
- const Ir = l.object().shape({
669
- attachments: (He = l.array().of(Rr)) == null ? void 0 : He.nullable(),
668
+ const yr = l.object().shape({
669
+ attachments: (He = l.array().of(vr)) == null ? void 0 : He.nullable(),
670
670
  id: l.string().required("ID of SKU is required"),
671
671
  index: l.number().integer().nullable(),
672
672
  quantity: l.number().integer().nullable(),
673
673
  seller: l.string().required("Seller is required"),
674
674
  price: l.number().integer()
675
- }), Pr = l.object({
675
+ }), _r = l.object({
676
676
  orderFormId: l.string().required("OrderFormId is required"),
677
- orderItems: l.array().of(Ir)
677
+ orderItems: l.array().of(yr)
678
678
  });
679
- async function xr({
679
+ async function Rr({
680
680
  apiUrl: e,
681
681
  body: t,
682
682
  fetchOptions: r
@@ -685,7 +685,7 @@ async function xr({
685
685
  console.error("[ERROR FETCHING] Body is required");
686
686
  return;
687
687
  }
688
- await Pr.validate(t);
688
+ await _r.validate(t);
689
689
  const { orderFormId: n, orderItems: a } = t;
690
690
  return T(
691
691
  `${e}/api/checkout/pub/orderForm/${n}/items`,
@@ -696,10 +696,10 @@ async function xr({
696
696
  }
697
697
  );
698
698
  }
699
- const Sr = l.object({
699
+ const Ir = l.object({
700
700
  orderFormId: l.string().nullable()
701
701
  });
702
- async function Cr({
702
+ async function xr({
703
703
  apiUrl: e,
704
704
  body: t,
705
705
  fetchOptions: r
@@ -708,7 +708,7 @@ async function Cr({
708
708
  console.error("[ERROR FETCHING] Body is required");
709
709
  return;
710
710
  }
711
- await Sr.validate(t);
711
+ await Ir.validate(t);
712
712
  const { orderFormId: n } = t;
713
713
  return T(
714
714
  `${e}/api/checkout/pub/orderForm/${n}/items/removeAll`,
@@ -718,23 +718,23 @@ async function Cr({
718
718
  }
719
719
  );
720
720
  }
721
- const kr = l.object().shape({
721
+ const Pr = l.object().shape({
722
722
  name: l.string().required("Attachment name is required"),
723
723
  content: l.object().nullable()
724
724
  });
725
725
  var Me;
726
- const Er = l.object().shape({
727
- attachments: (Me = l.array().of(kr)) == null ? void 0 : Me.nullable(),
726
+ const Sr = l.object().shape({
727
+ attachments: (Me = l.array().of(Pr)) == null ? void 0 : Me.nullable(),
728
728
  id: l.string().required("ID of SKU is required"),
729
729
  index: l.number().integer().nullable(),
730
730
  quantity: l.number().integer().nullable(),
731
731
  seller: l.string().required("Seller is required"),
732
732
  price: l.number().integer()
733
- }), Ar = l.object({
733
+ }), Cr = l.object({
734
734
  orderFormId: l.string().nullable(),
735
- orderItems: l.array().of(Er)
735
+ orderItems: l.array().of(Sr)
736
736
  });
737
- async function Or({
737
+ async function kr({
738
738
  apiUrl: e,
739
739
  body: t,
740
740
  fetchOptions: r
@@ -743,7 +743,7 @@ async function Or({
743
743
  console.error("[ERROR FETCHING] Body is required");
744
744
  return;
745
745
  }
746
- await Ar.validate(t);
746
+ await Cr.validate(t);
747
747
  const { orderFormId: n, orderItems: a } = t;
748
748
  return T(
749
749
  `${e}/api/checkout/pub/orderForm/${n}/items/update`,
@@ -754,10 +754,10 @@ async function Or({
754
754
  }
755
755
  );
756
756
  }
757
- const Tr = l.object({
757
+ const Er = l.object({
758
758
  orderFormId: l.string().nullable()
759
759
  });
760
- async function qr({
760
+ async function Ar({
761
761
  apiUrl: e,
762
762
  body: t,
763
763
  fetchOptions: r
@@ -766,7 +766,7 @@ async function qr({
766
766
  console.error("[ERROR FETCHING] Body is required");
767
767
  return;
768
768
  }
769
- await Tr.validate(t);
769
+ await Er.validate(t);
770
770
  const { orderFormId: n } = t;
771
771
  return T(
772
772
  `${e}/api/checkout/pub/orderForm/${n}/messages/clear`,
@@ -776,19 +776,19 @@ async function qr({
776
776
  }
777
777
  );
778
778
  }
779
- const Nr = l.object({
779
+ const Or = l.object({
780
780
  id: l.string().nullable(),
781
781
  // id offering
782
782
  itemIndex: l.number().nullable(),
783
783
  orderFormId: l.string().nullable(),
784
784
  remove: l.boolean().nullable()
785
785
  });
786
- async function jr({ apiUrl: e, body: t, fetchOptions: r }) {
786
+ async function Tr({ apiUrl: e, body: t, fetchOptions: r }) {
787
787
  if (!t) {
788
788
  console.error("[ERROR FETCHING] Body is required");
789
789
  return;
790
790
  }
791
- await Nr.validate(t);
791
+ await Or.validate(t);
792
792
  const { itemIndex: n, orderFormId: a, id: o, remove: c } = t, i = c ? `/${o}/remove` : "", d = `${e}/api/checkout/pub/orderForm/${a}/items/${n}/offerings${i}`;
793
793
  return T(d, {
794
794
  method: "POST",
@@ -796,10 +796,10 @@ async function jr({ apiUrl: e, body: t, fetchOptions: r }) {
796
796
  ...r
797
797
  });
798
798
  }
799
- const $r = l.object({
799
+ const qr = l.object({
800
800
  orderFormId: l.string().nullable()
801
801
  });
802
- async function Fr({
802
+ async function Nr({
803
803
  apiUrl: e,
804
804
  body: t,
805
805
  fetchOptions: r,
@@ -810,13 +810,13 @@ async function Fr({
810
810
  console.error("[ERROR FETCHING] Body is required");
811
811
  return;
812
812
  }
813
- await $r.validate(t);
813
+ await qr.validate(t);
814
814
  const a = new URLSearchParams({
815
815
  refreshOutdatedData: "true"
816
816
  }), o = t.orderFormId && ((c = n.orderFormPurchaseId) == null ? void 0 : c.value) !== t.orderFormId ? `${e}/api/checkout/pub/orderForm/${t.orderFormId}?${String(a)}` : `${e}/api/checkout/pub/orderForm`;
817
817
  return T(o, { method: "GET", ...r });
818
818
  }
819
- const Lr = l.object({
819
+ const jr = l.object({
820
820
  orderFormId: l.string().nullable(),
821
821
  email: l.string().email().required(),
822
822
  firstName: l.string().required(),
@@ -825,7 +825,7 @@ const Lr = l.object({
825
825
  document: l.string().required(),
826
826
  phone: l.string().matches(/^\+\d{1,3}\d{10,11}$/)
827
827
  });
828
- async function Dr({
828
+ async function Fr({
829
829
  apiUrl: e,
830
830
  body: t,
831
831
  fetchOptions: r
@@ -834,7 +834,7 @@ async function Dr({
834
834
  console.error("[ERROR FETCHING] Body is required");
835
835
  return;
836
836
  }
837
- await Lr.validate(t);
837
+ await jr.validate(t);
838
838
  const { orderFormId: n, ...a } = t;
839
839
  return T(
840
840
  `${e}/api/checkout/pub/orderForm/${n}/attachments/clientProfileData`,
@@ -845,10 +845,10 @@ async function Dr({
845
845
  }
846
846
  );
847
847
  }
848
- const Ur = l.object({
848
+ const $r = l.object({
849
849
  sellerCode: l.string().nullable()
850
850
  });
851
- async function Hr({
851
+ async function Lr({
852
852
  apiUrl: e,
853
853
  body: t,
854
854
  extraData: r,
@@ -858,7 +858,7 @@ async function Hr({
858
858
  console.error("[ERROR FETCHING] Body is required");
859
859
  return;
860
860
  }
861
- await Ur.validate(t);
861
+ await $r.validate(t);
862
862
  const { sellerCode: a = "" } = t;
863
863
  return T(
864
864
  `${e}/api/dataentities/${r.ENTITIES}/search?_fields=${r.FIELDS}&${r.FILTER}=${a}`,
@@ -871,12 +871,12 @@ async function Hr({
871
871
  }
872
872
  );
873
873
  }
874
- const Mr = l.object().shape({
874
+ const Dr = l.object().shape({
875
875
  country: l.string().length(3, "Country code must be 3 characters long").required("Country is required"),
876
876
  orderFormId: l.string().nullable(),
877
877
  postalCode: l.string().nullable()
878
878
  });
879
- async function Br({
879
+ async function Ur({
880
880
  apiUrl: e,
881
881
  body: t,
882
882
  fetchOptions: r
@@ -885,7 +885,7 @@ async function Br({
885
885
  console.error("[ERROR FETCHING] Body is required");
886
886
  return;
887
887
  }
888
- await Mr.validate(t);
888
+ await Dr.validate(t);
889
889
  const { country: n, orderFormId: a, postalCode: o } = t, c = o ? {
890
890
  address: {
891
891
  addressType: "residential",
@@ -905,7 +905,7 @@ async function Br({
905
905
  }
906
906
  );
907
907
  }
908
- const zr = l.object().shape({
908
+ const Hr = l.object().shape({
909
909
  orderFormId: l.string().nullable(),
910
910
  options: l.array().of(
911
911
  l.object().shape({
@@ -933,12 +933,12 @@ const zr = l.object().shape({
933
933
  })
934
934
  )
935
935
  });
936
- async function Gr({ apiUrl: e, body: t, fetchOptions: r }) {
936
+ async function Mr({ apiUrl: e, body: t, fetchOptions: r }) {
937
937
  if (!t) {
938
938
  console.error("[ERROR FETCHING] Body is required");
939
939
  return;
940
940
  }
941
- await zr.validate(t);
941
+ await Hr.validate(t);
942
942
  const { orderFormId: n, options: a, selectedAddresses: o } = t;
943
943
  return T(
944
944
  `${e}/api/checkout/pub/orderForm/${n}/attachments/shippingData`,
@@ -953,7 +953,7 @@ async function Gr({ apiUrl: e, body: t, fetchOptions: r }) {
953
953
  }
954
954
  );
955
955
  }
956
- const Vr = l.object({
956
+ const Br = l.object({
957
957
  country: l.string().length(3, "Country code must be 3 characters long").required("Country is required"),
958
958
  postalCode: l.string().nullable(),
959
959
  geoCoordinates: l.object().shape({
@@ -961,12 +961,12 @@ const Vr = l.object({
961
961
  latitude: l.number().required()
962
962
  })
963
963
  });
964
- async function Wr({ apiUrl: e, body: t, fetchOptions: r }) {
964
+ async function zr({ apiUrl: e, body: t, fetchOptions: r }) {
965
965
  if (!t) {
966
966
  console.error("[ERROR FETCHING] Body is required");
967
967
  return;
968
968
  }
969
- await Vr.validate(t);
969
+ await Br.validate(t);
970
970
  const { country: n = "", geoCoordinates: a, postalCode: o = "" } = t, c = new URLSearchParams({ country: String(n) });
971
971
  return o ? c.append("postalCode", o) : c.append(
972
972
  "geoCoordinates",
@@ -979,22 +979,22 @@ async function Wr({ apiUrl: e, body: t, fetchOptions: r }) {
979
979
  }
980
980
  );
981
981
  }
982
- const Qr = l.object({
982
+ const Gr = l.object({
983
983
  id: l.string().required("ID of SKU is required"),
984
984
  quantity: l.number().integer().required("Quantity of item is required"),
985
985
  seller: l.string()
986
- }), Xr = l.object({
987
- items: l.array().of(Qr),
986
+ }), Vr = l.object({
987
+ items: l.array().of(Gr),
988
988
  country: l.string().length(3, "Country code must be 3 characters long").required("Country is required"),
989
989
  postalCode: l.string().nullable(),
990
990
  geoCoordinates: l.array().nullable().of(l.number()).length(2)
991
991
  });
992
- async function Kr({ apiUrl: e, body: t, fetchOptions: r }) {
992
+ async function Wr({ apiUrl: e, body: t, fetchOptions: r }) {
993
993
  if (!t) {
994
994
  console.error("[ERROR FETCHING] Body is required");
995
995
  return;
996
996
  }
997
- return await Xr.validate(t), T(
997
+ return await Vr.validate(t), T(
998
998
  `${e}/api/checkout/pub/orderForms/simulation`,
999
999
  {
1000
1000
  method: "POST",
@@ -1003,35 +1003,35 @@ async function Kr({ apiUrl: e, body: t, fetchOptions: r }) {
1003
1003
  }
1004
1004
  );
1005
1005
  }
1006
- const Zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1006
+ const Qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1007
1007
  __proto__: null,
1008
- getMasterDataSellerCode: Hr,
1009
- getOrderForm: Fr,
1010
- postOrderFormAddCoupon: vr,
1011
- postOrderFormAttachClientProfileData: Dr,
1012
- postOrderFormAttachOrderFormData: br,
1013
- postOrderFormAttachShippingData: Br,
1008
+ getMasterDataSellerCode: Lr,
1009
+ getOrderForm: Nr,
1010
+ postOrderFormAddCoupon: gr,
1011
+ postOrderFormAttachClientProfileData: Fr,
1012
+ postOrderFormAttachOrderFormData: fr,
1013
+ postOrderFormAttachShippingData: Ur,
1014
1014
  postOrderFormAttachmentsMarketingData: Ge,
1015
1015
  postOrderFormAttachmentsOpenTextField: ze,
1016
- postOrderFormClearMessages: qr,
1017
- postOrderFormFreightSimulation: Kr,
1018
- postOrderFormItems: xr,
1019
- postOrderFormRegion: Wr,
1020
- postOrderFormRemoveAllItems: Cr,
1021
- postOrderFormUpdateItems: Or,
1022
- postOrderFormUpdateShippingData: Gr,
1023
- postOrderformAddress: mr,
1024
- putOrderFormCustomData: _r,
1025
- updateOrderFormOffering: jr
1026
- }, Symbol.toStringTag, { value: "Module" })), Jr = l.object({
1016
+ postOrderFormClearMessages: Ar,
1017
+ postOrderFormFreightSimulation: Wr,
1018
+ postOrderFormItems: Rr,
1019
+ postOrderFormRegion: zr,
1020
+ postOrderFormRemoveAllItems: xr,
1021
+ postOrderFormUpdateItems: kr,
1022
+ postOrderFormUpdateShippingData: Mr,
1023
+ postOrderformAddress: ur,
1024
+ putOrderFormCustomData: wr,
1025
+ updateOrderFormOffering: Tr
1026
+ }, Symbol.toStringTag, { value: "Module" })), Xr = l.object({
1027
1027
  skuId: l.string()
1028
1028
  });
1029
- async function Yr({ apiUrl: e, body: t, fetchOptions: r }) {
1029
+ async function Kr({ apiUrl: e, body: t, fetchOptions: r }) {
1030
1030
  if (!t) {
1031
1031
  console.error("[ERROR FETCHING] Body is required");
1032
1032
  return;
1033
1033
  }
1034
- await Jr.validate(t);
1034
+ await Xr.validate(t);
1035
1035
  const { skuId: n } = t;
1036
1036
  return T(
1037
1037
  `${e}/api/catalog/pvt/stockkeepingunitkit?parentSkuId=${n}`,
@@ -1040,15 +1040,15 @@ async function Yr({ apiUrl: e, body: t, fetchOptions: r }) {
1040
1040
  }
1041
1041
  );
1042
1042
  }
1043
- const en = l.object({
1043
+ const Zr = l.object({
1044
1044
  ids: l.array().of(l.string().required("ID are required")).required("IDs are required")
1045
1045
  });
1046
- async function tn({ apiUrl: e, body: t, fetchOptions: r }) {
1046
+ async function Jr({ apiUrl: e, body: t, fetchOptions: r }) {
1047
1047
  if (!t) {
1048
1048
  console.error("[ERROR FETCHING] Body is required");
1049
1049
  return;
1050
1050
  }
1051
- await en.validate(t);
1051
+ await Zr.validate(t);
1052
1052
  const { ids: n } = t;
1053
1053
  return T(
1054
1054
  `${e}/api/catalog_system/pub/products/search?fq=${n.map((a) => `productId:${a}`).join("&fq=")}`,
@@ -1057,15 +1057,15 @@ async function tn({ apiUrl: e, body: t, fetchOptions: r }) {
1057
1057
  }
1058
1058
  );
1059
1059
  }
1060
- const rn = l.object({
1060
+ const Yr = l.object({
1061
1061
  productId: l.number().required("Product ID is required")
1062
1062
  });
1063
- async function nn({ apiUrl: e, body: t, fetchOptions: r }) {
1063
+ async function en({ apiUrl: e, body: t, fetchOptions: r }) {
1064
1064
  if (!t) {
1065
1065
  console.error("[ERROR FETCHING] Body is required");
1066
1066
  return;
1067
1067
  }
1068
- await rn.validate(t);
1068
+ await Yr.validate(t);
1069
1069
  const { productId: n } = t;
1070
1070
  return T(
1071
1071
  `${e}/api/catalog_system/pub/products/crossselling/similars/${n.toString()}`,
@@ -1074,7 +1074,7 @@ async function nn({ apiUrl: e, body: t, fetchOptions: r }) {
1074
1074
  }
1075
1075
  );
1076
1076
  }
1077
- async function an({
1077
+ async function tn({
1078
1078
  apiUrl: e,
1079
1079
  params: t,
1080
1080
  fetchOptions: r
@@ -1086,16 +1086,16 @@ async function an({
1086
1086
  }
1087
1087
  ) : (console.error("[ERROR FETCHING] slug is required"), null);
1088
1088
  }
1089
- const on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1089
+ const rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1090
1090
  __proto__: null,
1091
- getCatalogKitProducts: Yr,
1092
- getCatalogPageInfo: an,
1093
- getCatalogProducts: tn,
1094
- getCatalogSimilars: nn
1095
- }, Symbol.toStringTag, { value: "Module" })), sn = l.object({
1091
+ getCatalogKitProducts: Kr,
1092
+ getCatalogPageInfo: tn,
1093
+ getCatalogProducts: Jr,
1094
+ getCatalogSimilars: en
1095
+ }, Symbol.toStringTag, { value: "Module" })), nn = l.object({
1096
1096
  query: l.string()
1097
1097
  });
1098
- async function ln({
1098
+ async function an({
1099
1099
  apiUrl: e,
1100
1100
  body: t,
1101
1101
  fetchOptions: r
@@ -1104,7 +1104,7 @@ async function ln({
1104
1104
  console.error("[ERROR FETCHING] Body is required");
1105
1105
  return;
1106
1106
  }
1107
- await sn.validate(t);
1107
+ await nn.validate(t);
1108
1108
  const { query: n = "" } = t, a = new URLSearchParams({ query: n });
1109
1109
  return T(
1110
1110
  `${e}/api/io/_v/api/intelligent-search/autocomplete_suggestions?${a.toString()}`,
@@ -1113,10 +1113,10 @@ async function ln({
1113
1113
  }
1114
1114
  );
1115
1115
  }
1116
- const cn = (e, t) => Mt(e, t), un = (e) => ({
1116
+ const on = (e, t) => Dt(e, t), sn = (e) => ({
1117
1117
  ...e,
1118
- description: e.description ? cn(e.description) : e.description
1119
- }), dn = ({
1118
+ description: e.description ? on(e.description) : e.description
1119
+ }), ln = ({
1120
1120
  offer: e,
1121
1121
  seller: t,
1122
1122
  product: r
@@ -1126,8 +1126,8 @@ const cn = (e, t) => Mt(e, t), un = (e) => ({
1126
1126
  seller: t
1127
1127
  }), Ve = (e, t) => ({
1128
1128
  ...e,
1129
- isVariantOf: un(t)
1130
- }), pn = (e) => e ? "https://schema.org/InStock" : "https://schema.org/OutOfStock", ie = (e) => e.AvailableQuantity > 0, Le = (e) => e.spotPrice ?? 0, mn = (e) => e.Price ?? 0, We = (e, t) => ie(e) && !ie(t) ? -1 : !ie(e) && ie(t) ? 1 : Le(e) - Le(t), fn = (e, t) => {
1129
+ isVariantOf: sn(t)
1130
+ }), cn = (e) => e ? "https://schema.org/InStock" : "https://schema.org/OutOfStock", ie = (e) => e.AvailableQuantity > 0, Le = (e) => e.spotPrice ?? 0, un = (e) => e.Price ?? 0, We = (e, t) => ie(e) && !ie(t) ? -1 : !ie(e) && ie(t) ? 1 : Le(e) - Le(t), dn = (e, t) => {
1131
1131
  let r = 0;
1132
1132
  for (let n = 1; n < e.length; n++)
1133
1133
  t(e[r], e[n]) > 0 && (r = n);
@@ -1138,7 +1138,7 @@ const cn = (e, t) => Mt(e, t), un = (e) => ({
1138
1138
  offer: a.commertialOffer,
1139
1139
  sku: n
1140
1140
  }))
1141
- ), r = fn(
1141
+ ), r = dn(
1142
1142
  t,
1143
1143
  ({ offer: n }, { offer: a }) => We(n, a)
1144
1144
  );
@@ -1153,11 +1153,11 @@ const cn = (e, t) => Mt(e, t), un = (e) => ({
1153
1153
  attachment: "ATTACHMENT",
1154
1154
  specification: "SPECIFICATION",
1155
1155
  attribute: "ATTRIBUTE"
1156
- }, hn = (e) => ({
1156
+ }, pn = (e) => ({
1157
1157
  name: e.name,
1158
1158
  value: e.content,
1159
1159
  valueReference: ce.attachment
1160
- }), gn = (e) => ({
1160
+ }), mn = (e) => ({
1161
1161
  propertyID: e.id,
1162
1162
  name: e.name,
1163
1163
  value: e.value,
@@ -1174,23 +1174,23 @@ const cn = (e, t) => Mt(e, t), un = (e) => ({
1174
1174
  name: c,
1175
1175
  value: "",
1176
1176
  valueReference: ce.specification
1177
- }), a = Array.isArray(r) ? r.map(hn) : [], o = t ? t.map(gn) : [];
1177
+ }), a = Array.isArray(r) ? r.map(pn) : [], o = t ? t.map(mn) : [];
1178
1178
  return [
1179
1179
  ...n,
1180
1180
  ...a,
1181
1181
  ...o
1182
1182
  ];
1183
- }, De = "ÁÄÂÀÃÅČÇĆĎÉĚËÈÊẼĔȆÍÌÎÏŇÑÓÖÒÔÕØŘŔŠŤÚŮÜÙÛÝŸŽáäâàãåčçćďéěëèêẽĕȇíìîïňñóöòôõøðřŕšťúůüùûýÿžþÞĐđ߯a", bn = "AAAAAACCCDEEEEEEEEIIIINNOOOOOORRSTUUUUUYYZaaaaaacccdeeeeeeeeiiiinnooooooorrstuuuuuyyzbBDdBAa", wn = (e) => {
1183
+ }, De = "ÁÄÂÀÃÅČÇĆĎÉĚËÈÊẼĔȆÍÌÎÏŇÑÓÖÒÔÕØŘŔŠŤÚŮÜÙÛÝŸŽáäâàãåčçćďéěëèêẽĕȇíìîïňñóöòôõøðřŕšťúůüùûýÿžþÞĐđ߯a", fn = "AAAAAACCCDEEEEEEEEIIIINNOOOOOORRSTUUUUUYYZaaaaaacccdeeeeeeeeiiiinnooooooorrstuuuuuyyzbBDdBAa", hn = (e) => {
1184
1184
  let t = e.slice(0);
1185
1185
  for (let r = 0; r < De.length; r++)
1186
1186
  t = t.replace(
1187
1187
  new RegExp(De.charAt(r), "g"),
1188
- bn.charAt(r)
1188
+ fn.charAt(r)
1189
1189
  );
1190
1190
  return t;
1191
- }, vn = (e) => e.replace(/[·/_,:]/, "-"), Ke = (e) => {
1191
+ }, gn = (e) => e.replace(/[·/_,:]/, "-"), Ke = (e) => {
1192
1192
  const r = e.replace(/,/g, "").replace(/[*+~.()'"!:@&\[\]`/ %$#?{}|><=_^]/g, "-");
1193
- return vn(wn(r)).toLowerCase();
1193
+ return gn(hn(r)).toLowerCase();
1194
1194
  }, Ze = (e) => `/${e}/p`, Je = (e) => {
1195
1195
  const t = Math.max(
1196
1196
  ...e.map((n) => n.NumberOfInstallments)
@@ -1207,7 +1207,7 @@ const cn = (e, t) => Mt(e, t), un = (e) => ({
1207
1207
  listPrice: 0,
1208
1208
  sellerDefault: !1
1209
1209
  }, a = e.map(
1210
- (o) => dn({
1210
+ (o) => ln({
1211
1211
  offer: o.commertialOffer,
1212
1212
  seller: o,
1213
1213
  product: t
@@ -1215,7 +1215,7 @@ const cn = (e, t) => Mt(e, t), un = (e) => ({
1215
1215
  ).sort(We).map((o) => (o.seller.sellerId === "1" && o.AvailableQuantity > 0 && (r.price = o.Price, r.listPrice = o.ListPrice, r.sellerDefault = !0), {
1216
1216
  availability: o.AvailableQuantity > 0,
1217
1217
  listPrice: o.ListPrice,
1218
- price: mn(o),
1218
+ price: un(o),
1219
1219
  priceValidUntil: o.PriceValidUntil,
1220
1220
  priceCurrency: "BRL",
1221
1221
  installments: o.Installments,
@@ -1237,7 +1237,7 @@ const cn = (e, t) => Mt(e, t), un = (e) => ({
1237
1237
  name: n,
1238
1238
  offers: {
1239
1239
  offers: a == null ? void 0 : a.map(({ sellerId: c, commertialOffer: i }) => ({
1240
- availability: pn(i.AvailableQuantity > 0),
1240
+ availability: cn(i.AvailableQuantity > 0),
1241
1241
  listPrice: i.ListPrice,
1242
1242
  price: i.Price,
1243
1243
  quantity: i.AvailableQuantity,
@@ -1249,7 +1249,7 @@ const cn = (e, t) => Mt(e, t), un = (e) => ({
1249
1249
  sku: r
1250
1250
  // slug: getSlug('', itemId), // getSlug('', itemId) que tipo de slug é esse?
1251
1251
  };
1252
- }, yn = (e) => {
1252
+ }, bn = (e) => {
1253
1253
  var R;
1254
1254
  const {
1255
1255
  attributes: t,
@@ -1300,7 +1300,7 @@ const cn = (e, t) => Mt(e, t), un = (e) => ({
1300
1300
  breadcrumbList: {
1301
1301
  itemListElement: [
1302
1302
  ...E.map((C, j) => {
1303
- const F = C.split("/"), D = F[F.length - 2], U = F.map(Ke).join("/");
1303
+ const $ = C.split("/"), D = $[$.length - 2], U = $.map(Ke).join("/");
1304
1304
  return {
1305
1305
  name: D,
1306
1306
  item: U,
@@ -1324,7 +1324,7 @@ const cn = (e, t) => Mt(e, t), un = (e) => ({
1324
1324
  },
1325
1325
  installments: I
1326
1326
  };
1327
- }, _n = (e) => {
1327
+ }, wn = (e) => {
1328
1328
  var I;
1329
1329
  const {
1330
1330
  attributes: t,
@@ -1376,9 +1376,9 @@ const cn = (e, t) => Mt(e, t), un = (e) => ({
1376
1376
  breadcrumbList: {
1377
1377
  itemListElement: [
1378
1378
  ...h.map((R, C) => {
1379
- const j = R.split("/"), F = j[j.length - 2], D = j.map(Ke).join("/");
1379
+ const j = R.split("/"), $ = j[j.length - 2], D = j.map(Ke).join("/");
1380
1380
  return {
1381
- name: F,
1381
+ name: $,
1382
1382
  item: D,
1383
1383
  position: C + 1
1384
1384
  };
@@ -1397,9 +1397,9 @@ const cn = (e, t) => Mt(e, t), un = (e) => ({
1397
1397
  isVariantOf: {
1398
1398
  productGroupID: n.productId,
1399
1399
  hasVariant: n.items.map((R) => {
1400
- const { variations: C } = R, j = C.map((F) => ({
1401
- name: F,
1402
- values: R[F]
1400
+ const { variations: C } = R, j = C.map(($) => ({
1401
+ name: $,
1402
+ values: R[$]
1403
1403
  }));
1404
1404
  return {
1405
1405
  ...et(R),
@@ -1413,13 +1413,13 @@ const cn = (e, t) => Mt(e, t), un = (e) => ({
1413
1413
  },
1414
1414
  installments: N
1415
1415
  };
1416
- }, Rn = l.array().of(
1416
+ }, vn = l.array().of(
1417
1417
  l.object({
1418
1418
  key: l.string().required(),
1419
1419
  value: l.string().required()
1420
1420
  })
1421
1421
  ).required("Facets are required");
1422
- async function In({
1422
+ async function yn({
1423
1423
  apiUrl: e,
1424
1424
  body: t,
1425
1425
  fetchOptions: r
@@ -1428,7 +1428,7 @@ async function In({
1428
1428
  console.error("[ERROR FETCHING] Body is required");
1429
1429
  return;
1430
1430
  }
1431
- await Rn.validate(t);
1431
+ await vn.validate(t);
1432
1432
  const n = new URLSearchParams({}), a = t.map(({ key: c, value: i }) => `${c}/${i}`).join("/");
1433
1433
  _t(t, n);
1434
1434
  const o = `${e}/api/catalog_system/pub/products/crossselling/${a}`;
@@ -1439,7 +1439,7 @@ async function In({
1439
1439
  const g = Qe(d.items);
1440
1440
  return g && Ve(g, d);
1441
1441
  }).filter((d) => !!d).map((d) => ({
1442
- node: _n(d)
1442
+ node: wn(d)
1443
1443
  })));
1444
1444
  }
1445
1445
  const tt = ({
@@ -1481,7 +1481,7 @@ const tt = ({
1481
1481
  }
1482
1482
  );
1483
1483
  };
1484
- async function Pn({
1484
+ async function _n({
1485
1485
  body: e,
1486
1486
  extraData: t,
1487
1487
  ...r
@@ -1512,13 +1512,13 @@ async function Pn({
1512
1512
  total: o.count
1513
1513
  },
1514
1514
  products: a.map((i, d) => ({
1515
- node: yn(i),
1515
+ node: bn(i),
1516
1516
  cursor: d.toString()
1517
1517
  }))
1518
1518
  }
1519
1519
  };
1520
1520
  }
1521
- async function xn({ body: e, extraData: t, ...r }) {
1521
+ async function Rn({ body: e, extraData: t, ...r }) {
1522
1522
  if (!e) {
1523
1523
  console.error("[ERROR FETCHING] Body is required");
1524
1524
  return;
@@ -1538,16 +1538,16 @@ async function xn({ body: e, extraData: t, ...r }) {
1538
1538
  }
1539
1539
  };
1540
1540
  }
1541
- const Sn = l.object({
1541
+ const In = l.object({
1542
1542
  query: l.string().optional(),
1543
1543
  locale: l.string().optional()
1544
1544
  });
1545
- async function Cn({ apiUrl: e, body: t, fetchOptions: r }) {
1545
+ async function xn({ apiUrl: e, body: t, fetchOptions: r }) {
1546
1546
  if (!t) {
1547
1547
  console.error("[ERROR FETCHING] Body is required");
1548
1548
  return;
1549
1549
  }
1550
- await Sn.validate(t);
1550
+ await In.validate(t);
1551
1551
  const { query: n = "", locale: a = "default_locale" } = t, o = new URLSearchParams({ query: n, locale: a });
1552
1552
  return T(
1553
1553
  `${e}/api/io/_v/api/intelligent-search/search_suggestions?${o.toString()}`,
@@ -1556,22 +1556,22 @@ async function Cn({ apiUrl: e, body: t, fetchOptions: r }) {
1556
1556
  }
1557
1557
  );
1558
1558
  }
1559
- async function kn({ apiUrl: e }) {
1559
+ async function Pn({ apiUrl: e }) {
1560
1560
  return T(`${e}/api/io/_v/api/intelligent-search/top_searches`);
1561
1561
  }
1562
- const En = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1562
+ const Sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1563
1563
  __proto__: null,
1564
- getSearchAutoCompleteSuggestions: ln,
1565
- getSearchCrossellingProducts: In,
1566
- getSearchFacets: xn,
1567
- getSearchProducts: Pn,
1568
- getSearchSuggestedTerms: Cn,
1569
- getSearchTopSearchs: kn
1570
- }, Symbol.toStringTag, { value: "Module" })), An = l.object({
1564
+ getSearchAutoCompleteSuggestions: an,
1565
+ getSearchCrossellingProducts: yn,
1566
+ getSearchFacets: Rn,
1567
+ getSearchProducts: _n,
1568
+ getSearchSuggestedTerms: xn,
1569
+ getSearchTopSearchs: Pn
1570
+ }, Symbol.toStringTag, { value: "Module" })), Cn = l.object({
1571
1571
  masterDataEntity: l.string().nonNullable(),
1572
1572
  payload: l.object().shape({}).nullable()
1573
1573
  });
1574
- async function On({
1574
+ async function kn({
1575
1575
  apiUrl: e,
1576
1576
  body: t,
1577
1577
  fetchOptions: r
@@ -1580,7 +1580,7 @@ async function On({
1580
1580
  console.error("[ERROR FETCHING] Body is required");
1581
1581
  return;
1582
1582
  }
1583
- await An.validate(t);
1583
+ await Cn.validate(t);
1584
1584
  const { masterDataEntity: n, payload: a } = t, o = `${e}/api/dataentities/${n}/documents`;
1585
1585
  return T(o, {
1586
1586
  method: "POST",
@@ -1590,21 +1590,21 @@ async function On({
1590
1590
  ...r
1591
1591
  });
1592
1592
  }
1593
- const Tn = l.object().shape({
1593
+ const En = l.object().shape({
1594
1594
  _where: l.string().optional(),
1595
1595
  _fields: l.string().optional(),
1596
1596
  _sort: l.string().optional(),
1597
1597
  _from: l.number().integer().min(0).optional(),
1598
1598
  _to: l.number().integer().min(0).optional(),
1599
1599
  _keyword: l.string().optional()
1600
- }), qn = l.object({
1600
+ }), An = l.object({
1601
1601
  masterDataEntity: l.string().required(),
1602
- searchFields: Tn,
1602
+ searchFields: En,
1603
1603
  headers: l.object().shape({
1604
1604
  "REST-Range": l.string().notRequired()
1605
1605
  })
1606
1606
  });
1607
- async function Nn({
1607
+ async function On({
1608
1608
  apiUrl: e,
1609
1609
  body: t,
1610
1610
  fetchOptions: r
@@ -1614,7 +1614,7 @@ async function Nn({
1614
1614
  return;
1615
1615
  }
1616
1616
  const n = new URLSearchParams();
1617
- await qn.validate(t);
1617
+ await An.validate(t);
1618
1618
  const { masterDataEntity: a, searchFields: o, headers: c } = t;
1619
1619
  o && Object.entries(o).forEach(([g, s]) => {
1620
1620
  n.append(g, String(s));
@@ -1642,12 +1642,12 @@ async function Nn({
1642
1642
  } while (d);
1643
1643
  return i;
1644
1644
  }
1645
- const jn = l.object({
1645
+ const Tn = l.object({
1646
1646
  dataEntityName: l.string().required(),
1647
1647
  id: l.string().required(),
1648
1648
  fieldsToBeUpdated: l.object().shape({})
1649
1649
  });
1650
- async function $n({
1650
+ async function qn({
1651
1651
  apiUrl: e,
1652
1652
  body: t,
1653
1653
  fetchOptions: r
@@ -1656,7 +1656,7 @@ async function $n({
1656
1656
  console.error("[ERROR FETCHING] Body is required");
1657
1657
  return;
1658
1658
  }
1659
- await jn.validate(t);
1659
+ await Tn.validate(t);
1660
1660
  const { dataEntityName: n, id: a, fieldsToBeUpdated: o } = t, c = `${e}/api/dataentities/${n}/documents/${a}`;
1661
1661
  return T(c, {
1662
1662
  body: {
@@ -1666,13 +1666,13 @@ async function $n({
1666
1666
  ...r
1667
1667
  });
1668
1668
  }
1669
- const Fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1669
+ const Nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1670
1670
  __proto__: null,
1671
- getSearchMasterdata: Nn,
1672
- patchUpdateMasterdata: $n,
1673
- postMasterdata: On
1671
+ getSearchMasterdata: On,
1672
+ patchUpdateMasterdata: qn,
1673
+ postMasterdata: kn
1674
1674
  }, Symbol.toStringTag, { value: "Module" }));
1675
- async function Ln({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
1675
+ async function jn({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
1676
1676
  const { productIds: a } = e;
1677
1677
  if (!a)
1678
1678
  return console.error("[ERROR FETCHING] productIds is required"), [];
@@ -1687,7 +1687,7 @@ async function Ln({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
1687
1687
  ), d = (s) => Object.keys(s).map((u) => ({ id: u, name: s[u] }));
1688
1688
  return i.map((s, u) => {
1689
1689
  var f;
1690
- const { installments: w, price: v, listPrice: y, sizes: _, allSizesAvailable: p } = Pt({ items: s.items, NAME_SPLIT_SYMBOL: o }), b = p ? !0 : _.some((h) => h.available), m = s.items[0].sellers[0].commertialOffer;
1690
+ const { installments: w, price: v, listPrice: y, sizes: _, allSizesAvailable: p } = xt({ items: s.items, NAME_SPLIT_SYMBOL: o }), b = p ? !0 : _.some((h) => h.available), m = s.items[0].sellers[0].commertialOffer;
1691
1691
  return {
1692
1692
  node: {
1693
1693
  sku: s.items[0].itemId,
@@ -1787,9 +1787,9 @@ async function Ln({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
1787
1787
  };
1788
1788
  });
1789
1789
  }
1790
- const Dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1790
+ const Fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1791
1791
  __proto__: null,
1792
- getWishlistProducts: Ln
1792
+ getWishlistProducts: jn
1793
1793
  }, Symbol.toStringTag, { value: "Module" }));
1794
1794
  var _e = { exports: {} }, rt = {}, Ie = {}, nt = {}, at = {};
1795
1795
  (function(e) {
@@ -1801,7 +1801,7 @@ var _e = { exports: {} }, rt = {}, Ie = {}, nt = {}, at = {};
1801
1801
  return r;
1802
1802
  }
1803
1803
  });
1804
- const t = xt;
1804
+ const t = Pt;
1805
1805
  function r(n, a) {
1806
1806
  if (!n.startsWith("/") || !a)
1807
1807
  return n;
@@ -2061,7 +2061,7 @@ var ot = {}, st = {};
2061
2061
  }
2062
2062
  }
2063
2063
  })(Ie);
2064
- var Pe = {};
2064
+ var xe = {};
2065
2065
  (function(e) {
2066
2066
  Object.defineProperty(e, "__esModule", {
2067
2067
  value: !0
@@ -2150,7 +2150,7 @@ var Pe = {};
2150
2150
  g(w);
2151
2151
  }
2152
2152
  }
2153
- })(Pe);
2153
+ })(xe);
2154
2154
  var lt = {};
2155
2155
  (function(e) {
2156
2156
  Object.defineProperty(e, "__esModule", {
@@ -2196,23 +2196,23 @@ var lt = {};
2196
2196
  }
2197
2197
  }
2198
2198
  })(lt);
2199
- var de = {}, xe = Object.defineProperty, Un = Object.getOwnPropertyDescriptor, Hn = Object.getOwnPropertyNames, Mn = Object.prototype.hasOwnProperty, Bn = (e, t) => {
2199
+ var de = {}, Pe = Object.defineProperty, $n = Object.getOwnPropertyDescriptor, Ln = Object.getOwnPropertyNames, Dn = Object.prototype.hasOwnProperty, Un = (e, t) => {
2200
2200
  for (var r in t)
2201
- xe(e, r, { get: t[r], enumerable: !0 });
2202
- }, zn = (e, t, r, n) => {
2201
+ Pe(e, r, { get: t[r], enumerable: !0 });
2202
+ }, Hn = (e, t, r, n) => {
2203
2203
  if (t && typeof t == "object" || typeof t == "function")
2204
- for (let a of Hn(t))
2205
- !Mn.call(e, a) && a !== r && xe(e, a, { get: () => t[a], enumerable: !(n = Un(t, a)) || n.enumerable });
2204
+ for (let a of Ln(t))
2205
+ !Dn.call(e, a) && a !== r && Pe(e, a, { get: () => t[a], enumerable: !(n = $n(t, a)) || n.enumerable });
2206
2206
  return e;
2207
- }, Gn = (e) => zn(xe({}, "__esModule", { value: !0 }), e), ct = {};
2208
- Bn(ct, {
2209
- RequestCookies: () => Yn,
2210
- ResponseCookies: () => ea,
2207
+ }, Mn = (e) => Hn(Pe({}, "__esModule", { value: !0 }), e), ct = {};
2208
+ Un(ct, {
2209
+ RequestCookies: () => Kn,
2210
+ ResponseCookies: () => Zn,
2211
2211
  parseCookie: () => Se,
2212
2212
  parseSetCookie: () => ut,
2213
2213
  stringifyCookie: () => K
2214
2214
  });
2215
- var Vn = Gn(ct);
2215
+ var Bn = Mn(ct);
2216
2216
  function K(e) {
2217
2217
  var t;
2218
2218
  const r = [
@@ -2269,28 +2269,28 @@ function ut(e) {
2269
2269
  ...c && { httpOnly: !0 },
2270
2270
  ...typeof i == "string" && { maxAge: Number(i) },
2271
2271
  path: d,
2272
- ...g && { sameSite: Xn(g) },
2272
+ ...g && { sameSite: Vn(g) },
2273
2273
  ...s && { secure: !0 },
2274
- ...w && { priority: Zn(w) },
2274
+ ...w && { priority: Qn(w) },
2275
2275
  ...u && { partitioned: !0 }
2276
2276
  };
2277
- return Wn(v);
2277
+ return zn(v);
2278
2278
  }
2279
- function Wn(e) {
2279
+ function zn(e) {
2280
2280
  const t = {};
2281
2281
  for (const r in e)
2282
2282
  e[r] && (t[r] = e[r]);
2283
2283
  return t;
2284
2284
  }
2285
- var Qn = ["strict", "lax", "none"];
2286
- function Xn(e) {
2287
- return e = e.toLowerCase(), Qn.includes(e) ? e : void 0;
2285
+ var Gn = ["strict", "lax", "none"];
2286
+ function Vn(e) {
2287
+ return e = e.toLowerCase(), Gn.includes(e) ? e : void 0;
2288
2288
  }
2289
- var Kn = ["low", "medium", "high"];
2290
- function Zn(e) {
2291
- return e = e.toLowerCase(), Kn.includes(e) ? e : void 0;
2289
+ var Wn = ["low", "medium", "high"];
2290
+ function Qn(e) {
2291
+ return e = e.toLowerCase(), Wn.includes(e) ? e : void 0;
2292
2292
  }
2293
- function Jn(e) {
2293
+ function Xn(e) {
2294
2294
  if (!e)
2295
2295
  return [];
2296
2296
  var t = [], r = 0, n, a, o, c, i;
@@ -2314,7 +2314,7 @@ function Jn(e) {
2314
2314
  }
2315
2315
  return t;
2316
2316
  }
2317
- var Yn = class {
2317
+ var Kn = class {
2318
2318
  constructor(e) {
2319
2319
  this._parsed = /* @__PURE__ */ new Map(), this._headers = e;
2320
2320
  const t = e.get("cookie");
@@ -2380,12 +2380,12 @@ var Yn = class {
2380
2380
  toString() {
2381
2381
  return [...this._parsed.values()].map((e) => `${e.name}=${encodeURIComponent(e.value)}`).join("; ");
2382
2382
  }
2383
- }, ea = class {
2383
+ }, Zn = class {
2384
2384
  constructor(e) {
2385
2385
  this._parsed = /* @__PURE__ */ new Map();
2386
2386
  var t, r, n;
2387
2387
  this._headers = e;
2388
- const a = (n = (r = (t = e.getSetCookie) == null ? void 0 : t.call(e)) != null ? r : e.get("set-cookie")) != null ? n : [], o = Array.isArray(a) ? a : Jn(a);
2388
+ const a = (n = (r = (t = e.getSetCookie) == null ? void 0 : t.call(e)) != null ? r : e.get("set-cookie")) != null ? n : [], o = Array.isArray(a) ? a : Xn(a);
2389
2389
  for (const c of o) {
2390
2390
  const i = ut(c);
2391
2391
  i && this._parsed.set(i.name, i);
@@ -2417,7 +2417,7 @@ var Yn = class {
2417
2417
  */
2418
2418
  set(...e) {
2419
2419
  const [t, r, n] = e.length === 1 ? [e[0].name, e[0].value, e[0]] : e, a = this._parsed;
2420
- return a.set(t, ra({ name: t, value: r, ...n })), ta(a, this._headers), this;
2420
+ return a.set(t, Yn({ name: t, value: r, ...n })), Jn(a, this._headers), this;
2421
2421
  }
2422
2422
  /**
2423
2423
  * {@link https://wicg.github.io/cookie-store/#CookieStore-delete CookieStore#delete} without the Promise.
@@ -2433,14 +2433,14 @@ var Yn = class {
2433
2433
  return [...this._parsed.values()].map(K).join("; ");
2434
2434
  }
2435
2435
  };
2436
- function ta(e, t) {
2436
+ function Jn(e, t) {
2437
2437
  t.delete("set-cookie");
2438
2438
  for (const [, r] of e) {
2439
2439
  const n = K(r);
2440
2440
  t.append("set-cookie", n);
2441
2441
  }
2442
2442
  }
2443
- function ra(e = { name: "", value: "" }) {
2443
+ function Yn(e = { name: "", value: "" }) {
2444
2444
  return typeof e.expires == "number" && (e.expires = new Date(e.expires)), e.maxAge && (e.expires = new Date(Date.now() + e.maxAge * 1e3)), (e.path === null || e.path === void 0) && (e.path = "/"), e;
2445
2445
  }
2446
2446
  (function(e) {
@@ -2464,7 +2464,7 @@ function ra(e = { name: "", value: "" }) {
2464
2464
  return r.stringifyCookie;
2465
2465
  }
2466
2466
  });
2467
- const r = Vn;
2467
+ const r = Bn;
2468
2468
  })(de);
2469
2469
  (function(e) {
2470
2470
  Object.defineProperty(e, "__esModule", {
@@ -2484,7 +2484,7 @@ function ra(e = { name: "", value: "" }) {
2484
2484
  return i;
2485
2485
  }
2486
2486
  });
2487
- const r = Ie, n = Pe, a = lt, o = de, c = Symbol("internal request");
2487
+ const r = Ie, n = xe, a = lt, o = de, c = Symbol("internal request");
2488
2488
  class i extends Request {
2489
2489
  constructor(g, s = {}) {
2490
2490
  const u = typeof g != "string" && "url" in g ? g.url : String(g);
@@ -2592,7 +2592,7 @@ var dt = {}, pt = {};
2592
2592
  return g;
2593
2593
  }
2594
2594
  });
2595
- const t = de, r = Ie, n = Pe, a = pt, o = de, c = Symbol("internal response"), i = /* @__PURE__ */ new Set([
2595
+ const t = de, r = Ie, n = xe, a = pt, o = de, c = Symbol("internal response"), i = /* @__PURE__ */ new Set([
2596
2596
  301,
2597
2597
  302,
2598
2598
  303,
@@ -2702,14 +2702,14 @@ var Re = {}, ft = { exports: {} };
2702
2702
  (() => {
2703
2703
  var e = { 226: function(a, o) {
2704
2704
  (function(c, i) {
2705
- var d = "1.0.35", g = "", s = "?", u = "function", w = "undefined", v = "object", y = "string", _ = "major", p = "model", b = "name", m = "type", f = "vendor", h = "version", E = "architecture", N = "console", I = "mobile", R = "tablet", C = "smarttv", j = "wearable", F = "embedded", D = 350, U = "Amazon", B = "Apple", Z = "ASUS", Ce = "BlackBerry", G = "Browser", J = "Chrome", gt = "Edge", Y = "Firefox", ee = "Google", ke = "Huawei", me = "LG", fe = "Microsoft", Ee = "Motorola", te = "Opera", he = "Samsung", Ae = "Sharp", re = "Sony", ge = "Xiaomi", be = "Zebra", Oe = "Facebook", Te = "Chromium OS", qe = "Mac OS", bt = function(S, A) {
2706
- var x = {};
2705
+ var d = "1.0.35", g = "", s = "?", u = "function", w = "undefined", v = "object", y = "string", _ = "major", p = "model", b = "name", m = "type", f = "vendor", h = "version", E = "architecture", N = "console", I = "mobile", R = "tablet", C = "smarttv", j = "wearable", $ = "embedded", D = 350, U = "Amazon", B = "Apple", Z = "ASUS", Ce = "BlackBerry", G = "Browser", J = "Chrome", gt = "Edge", Y = "Firefox", ee = "Google", ke = "Huawei", me = "LG", fe = "Microsoft", Ee = "Motorola", te = "Opera", he = "Samsung", Ae = "Sharp", re = "Sony", ge = "Xiaomi", be = "Zebra", Oe = "Facebook", Te = "Chromium OS", qe = "Mac OS", bt = function(S, A) {
2706
+ var P = {};
2707
2707
  for (var q in S)
2708
- A[q] && A[q].length % 2 === 0 ? x[q] = A[q].concat(S[q]) : x[q] = S[q];
2709
- return x;
2708
+ A[q] && A[q].length % 2 === 0 ? P[q] = A[q].concat(S[q]) : P[q] = S[q];
2709
+ return P;
2710
2710
  }, ne = function(S) {
2711
- for (var A = {}, x = 0; x < S.length; x++)
2712
- A[S[x].toUpperCase()] = S[x];
2711
+ for (var A = {}, P = 0; P < S.length; P++)
2712
+ A[S[P].toUpperCase()] = S[P];
2713
2713
  return A;
2714
2714
  }, Ne = function(S, A) {
2715
2715
  return typeof S === y ? Q(A).indexOf(Q(S)) !== -1 : !1;
@@ -2721,51 +2721,51 @@ var Re = {}, ft = { exports: {} };
2721
2721
  if (typeof S === y)
2722
2722
  return S = S.replace(/^\s\s*/, g), typeof A === w ? S : S.substring(0, D);
2723
2723
  }, X = function(S, A) {
2724
- for (var x = 0, q, z, H, k, P, M; x < A.length && !P; ) {
2725
- var ye = A[x], Fe = A[x + 1];
2726
- for (q = z = 0; q < ye.length && !P && ye[q]; )
2727
- if (P = ye[q++].exec(S), P)
2728
- for (H = 0; H < Fe.length; H++)
2729
- M = P[++z], k = Fe[H], typeof k === v && k.length > 0 ? k.length === 2 ? typeof k[1] == u ? this[k[0]] = k[1].call(this, M) : this[k[0]] = k[1] : k.length === 3 ? typeof k[1] === u && !(k[1].exec && k[1].test) ? this[k[0]] = M ? k[1].call(this, M, k[2]) : i : this[k[0]] = M ? M.replace(k[1], k[2]) : i : k.length === 4 && (this[k[0]] = M ? k[3].call(this, M.replace(k[1], k[2])) : i) : this[k] = M || i;
2730
- x += 2;
2724
+ for (var P = 0, q, z, H, k, x, M; P < A.length && !x; ) {
2725
+ var ye = A[P], $e = A[P + 1];
2726
+ for (q = z = 0; q < ye.length && !x && ye[q]; )
2727
+ if (x = ye[q++].exec(S), x)
2728
+ for (H = 0; H < $e.length; H++)
2729
+ M = x[++z], k = $e[H], typeof k === v && k.length > 0 ? k.length === 2 ? typeof k[1] == u ? this[k[0]] = k[1].call(this, M) : this[k[0]] = k[1] : k.length === 3 ? typeof k[1] === u && !(k[1].exec && k[1].test) ? this[k[0]] = M ? k[1].call(this, M, k[2]) : i : this[k[0]] = M ? M.replace(k[1], k[2]) : i : k.length === 4 && (this[k[0]] = M ? k[3].call(this, M.replace(k[1], k[2])) : i) : this[k] = M || i;
2730
+ P += 2;
2731
2731
  }
2732
2732
  }, ve = function(S, A) {
2733
- for (var x in A)
2734
- if (typeof A[x] === v && A[x].length > 0) {
2735
- for (var q = 0; q < A[x].length; q++)
2736
- if (Ne(A[x][q], S))
2737
- return x === s ? i : x;
2738
- } else if (Ne(A[x], S))
2739
- return x === s ? i : x;
2733
+ for (var P in A)
2734
+ if (typeof A[P] === v && A[P].length > 0) {
2735
+ for (var q = 0; q < A[P].length; q++)
2736
+ if (Ne(A[P][q], S))
2737
+ return P === s ? i : P;
2738
+ } else if (Ne(A[P], S))
2739
+ return P === s ? i : P;
2740
2740
  return S;
2741
- }, vt = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, je = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, $e = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [h, [b, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [h, [b, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [b, h], [/opios[\/ ]+([\w\.]+)/i], [h, [b, te + " Mini"]], [/\bopr\/([\w\.]+)/i], [h, [b, te]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i, /(ba?idubrowser)[\/ ]?([\w\.]+)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [b, h], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [h, [b, "UC" + G]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i], [h, [b, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [h, [b, "WeChat"]], [/konqueror\/([\w\.]+)/i], [h, [b, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [h, [b, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [h, [b, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[b, /(.+)/, "$1 Secure " + G], h], [/\bfocus\/([\w\.]+)/i], [h, [b, Y + " Focus"]], [/\bopt\/([\w\.]+)/i], [h, [b, te + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [h, [b, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [h, [b, "Dolphin"]], [/coast\/([\w\.]+)/i], [h, [b, te + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [h, [b, "MIUI " + G]], [/fxios\/([-\w\.]+)/i], [h, [b, Y]], [/\bqihu|(qi?ho?o?|360)browser/i], [[b, "360 " + G]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[b, /(.+)/, "$1 " + G], h], [/(comodo_dragon)\/([\w\.]+)/i], [[b, /_/g, " "], h], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i], [b, h], [/(metasr)[\/ ]?([\w\.]+)/i, /(lbbrowser)/i, /\[(linkedin)app\]/i], [b], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[b, Oe], h], [/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram)[\/ ]([-\w\.]+)/i], [b, h], [/\bgsa\/([\w\.]+) .*safari\//i], [h, [b, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [h, [b, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [h, [b, J + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[b, J + " WebView"], h], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [h, [b, "Android " + G]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [b, h], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [h, [b, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [h, b], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [b, [h, ve, vt]], [/(webkit|khtml)\/([\w\.]+)/i], [b, h], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[b, "Netscape"], h], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [h, [b, Y + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [b, h], [/(cobalt)\/([\w\.]+)/i], [b, [h, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[E, "amd64"]], [/(ia32(?=;))/i], [[E, Q]], [/((?:i[346]|x)86)[;\)]/i], [[E, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[E, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[E, "armhf"]], [/windows (ce|mobile); ppc;/i], [[E, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[E, /ower/, g, Q]], [/(sun4\w)[;\)]/i], [[E, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[E, Q]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [p, [f, he], [m, R]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [p, [f, he], [m, I]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [p, [f, B], [m, I]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [p, [f, B], [m, R]], [/(macintosh);/i], [p, [f, B]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [p, [f, Ae], [m, I]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [p, [f, ke], [m, R]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [p, [f, ke], [m, I]], [/\b(poco[\w ]+)(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[p, /_/g, " "], [f, ge], [m, I]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[p, /_/g, " "], [f, ge], [m, R]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [p, [f, "OPPO"], [m, I]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [p, [f, "Vivo"], [m, I]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [p, [f, "Realme"], [m, I]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [p, [f, Ee], [m, I]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [p, [f, Ee], [m, R]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [p, [f, me], [m, R]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [p, [f, me], [m, I]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [p, [f, "Lenovo"], [m, R]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[p, /_/g, " "], [f, "Nokia"], [m, I]], [/(pixel c)\b/i], [p, [f, ee], [m, R]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [p, [f, ee], [m, I]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [p, [f, re], [m, I]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[p, "Xperia Tablet"], [f, re], [m, R]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [p, [f, "OnePlus"], [m, I]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [p, [f, U], [m, R]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[p, /(.+)/g, "Fire Phone $1"], [f, U], [m, I]], [/(playbook);[-\w\),; ]+(rim)/i], [p, f, [m, R]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [p, [f, Ce], [m, I]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [p, [f, Z], [m, R]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [p, [f, Z], [m, I]], [/(nexus 9)/i], [p, [f, "HTC"], [m, R]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [f, [p, /_/g, " "], [m, I]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [p, [f, "Acer"], [m, R]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [p, [f, "Meizu"], [m, I]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [f, p, [m, I]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [f, p, [m, R]], [/(surface duo)/i], [p, [f, fe], [m, R]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [p, [f, "Fairphone"], [m, I]], [/(u304aa)/i], [p, [f, "AT&T"], [m, I]], [/\bsie-(\w*)/i], [p, [f, "Siemens"], [m, I]], [/\b(rct\w+) b/i], [p, [f, "RCA"], [m, R]], [/\b(venue[\d ]{2,7}) b/i], [p, [f, "Dell"], [m, R]], [/\b(q(?:mv|ta)\w+) b/i], [p, [f, "Verizon"], [m, R]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [p, [f, "Barnes & Noble"], [m, R]], [/\b(tm\d{3}\w+) b/i], [p, [f, "NuVision"], [m, R]], [/\b(k88) b/i], [p, [f, "ZTE"], [m, R]], [/\b(nx\d{3}j) b/i], [p, [f, "ZTE"], [m, I]], [/\b(gen\d{3}) b.+49h/i], [p, [f, "Swiss"], [m, I]], [/\b(zur\d{3}) b/i], [p, [f, "Swiss"], [m, R]], [/\b((zeki)?tb.*\b) b/i], [p, [f, "Zeki"], [m, R]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[f, "Dragon Touch"], p, [m, R]], [/\b(ns-?\w{0,9}) b/i], [p, [f, "Insignia"], [m, R]], [/\b((nxa|next)-?\w{0,9}) b/i], [p, [f, "NextBook"], [m, R]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[f, "Voice"], p, [m, I]], [/\b(lvtel\-)?(v1[12]) b/i], [[f, "LvTel"], p, [m, I]], [/\b(ph-1) /i], [p, [f, "Essential"], [m, I]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [p, [f, "Envizen"], [m, R]], [/\b(trio[-\w\. ]+) b/i], [p, [f, "MachSpeed"], [m, R]], [/\btu_(1491) b/i], [p, [f, "Rotor"], [m, R]], [/(shield[\w ]+) b/i], [p, [f, "Nvidia"], [m, R]], [/(sprint) (\w+)/i], [f, p, [m, I]], [/(kin\.[onetw]{3})/i], [[p, /\./g, " "], [f, fe], [m, I]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [p, [f, be], [m, R]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [p, [f, be], [m, I]], [/smart-tv.+(samsung)/i], [f, [m, C]], [/hbbtv.+maple;(\d+)/i], [[p, /^/, "SmartTV"], [f, he], [m, C]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[f, me], [m, C]], [/(apple) ?tv/i], [f, [p, B + " TV"], [m, C]], [/crkey/i], [[p, J + "cast"], [f, ee], [m, C]], [/droid.+aft(\w)( bui|\))/i], [p, [f, U], [m, C]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [p, [f, Ae], [m, C]], [/(bravia[\w ]+)( bui|\))/i], [p, [f, re], [m, C]], [/(mitv-\w{5}) bui/i], [p, [f, ge], [m, C]], [/Hbbtv.*(technisat) (.*);/i], [f, p, [m, C]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[f, we], [p, we], [m, C]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[m, C]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [f, p, [m, N]], [/droid.+; (shield) bui/i], [p, [f, "Nvidia"], [m, N]], [/(playstation [345portablevi]+)/i], [p, [f, re], [m, N]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [p, [f, fe], [m, N]], [/((pebble))app/i], [f, p, [m, j]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [p, [f, B], [m, j]], [/droid.+; (glass) \d/i], [p, [f, ee], [m, j]], [/droid.+; (wt63?0{2,3})\)/i], [p, [f, be], [m, j]], [/(quest( 2| pro)?)/i], [p, [f, Oe], [m, j]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [f, [m, F]], [/(aeobc)\b/i], [p, [f, U], [m, F]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i], [p, [m, I]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [p, [m, R]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[m, R]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[m, I]], [/(android[-\w\. ]{0,9});.+buil/i], [p, [f, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [h, [b, gt + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [h, [b, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [b, h], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [h, b]], os: [[/microsoft (windows) (vista|xp)/i], [b, h], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [b, [h, ve, je]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[b, "Windows"], [h, ve, je]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /ios;fbsv\/([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[h, /_/g, "."], [b, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[b, qe], [h, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [h, b], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [b, h], [/\(bb(10);/i], [h, [b, Ce]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [h, [b, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [h, [b, Y + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [h, [b, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [h, [b, "watchOS"]], [/crkey\/([\d\.]+)/i], [h, [b, J + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[b, Te], h], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [b, h], [/(sunos) ?([\w\.\d]*)/i], [[b, "Solaris"], h], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [b, h]] }, L = function(S, A) {
2741
+ }, vt = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, je = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, Fe = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [h, [b, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [h, [b, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [b, h], [/opios[\/ ]+([\w\.]+)/i], [h, [b, te + " Mini"]], [/\bopr\/([\w\.]+)/i], [h, [b, te]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i, /(ba?idubrowser)[\/ ]?([\w\.]+)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [b, h], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [h, [b, "UC" + G]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i], [h, [b, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [h, [b, "WeChat"]], [/konqueror\/([\w\.]+)/i], [h, [b, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [h, [b, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [h, [b, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[b, /(.+)/, "$1 Secure " + G], h], [/\bfocus\/([\w\.]+)/i], [h, [b, Y + " Focus"]], [/\bopt\/([\w\.]+)/i], [h, [b, te + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [h, [b, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [h, [b, "Dolphin"]], [/coast\/([\w\.]+)/i], [h, [b, te + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [h, [b, "MIUI " + G]], [/fxios\/([-\w\.]+)/i], [h, [b, Y]], [/\bqihu|(qi?ho?o?|360)browser/i], [[b, "360 " + G]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[b, /(.+)/, "$1 " + G], h], [/(comodo_dragon)\/([\w\.]+)/i], [[b, /_/g, " "], h], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i], [b, h], [/(metasr)[\/ ]?([\w\.]+)/i, /(lbbrowser)/i, /\[(linkedin)app\]/i], [b], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[b, Oe], h], [/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram)[\/ ]([-\w\.]+)/i], [b, h], [/\bgsa\/([\w\.]+) .*safari\//i], [h, [b, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [h, [b, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [h, [b, J + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[b, J + " WebView"], h], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [h, [b, "Android " + G]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [b, h], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [h, [b, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [h, b], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [b, [h, ve, vt]], [/(webkit|khtml)\/([\w\.]+)/i], [b, h], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[b, "Netscape"], h], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [h, [b, Y + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [b, h], [/(cobalt)\/([\w\.]+)/i], [b, [h, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[E, "amd64"]], [/(ia32(?=;))/i], [[E, Q]], [/((?:i[346]|x)86)[;\)]/i], [[E, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[E, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[E, "armhf"]], [/windows (ce|mobile); ppc;/i], [[E, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[E, /ower/, g, Q]], [/(sun4\w)[;\)]/i], [[E, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[E, Q]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [p, [f, he], [m, R]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [p, [f, he], [m, I]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [p, [f, B], [m, I]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [p, [f, B], [m, R]], [/(macintosh);/i], [p, [f, B]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [p, [f, Ae], [m, I]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [p, [f, ke], [m, R]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [p, [f, ke], [m, I]], [/\b(poco[\w ]+)(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[p, /_/g, " "], [f, ge], [m, I]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[p, /_/g, " "], [f, ge], [m, R]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [p, [f, "OPPO"], [m, I]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [p, [f, "Vivo"], [m, I]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [p, [f, "Realme"], [m, I]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [p, [f, Ee], [m, I]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [p, [f, Ee], [m, R]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [p, [f, me], [m, R]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [p, [f, me], [m, I]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [p, [f, "Lenovo"], [m, R]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[p, /_/g, " "], [f, "Nokia"], [m, I]], [/(pixel c)\b/i], [p, [f, ee], [m, R]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [p, [f, ee], [m, I]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [p, [f, re], [m, I]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[p, "Xperia Tablet"], [f, re], [m, R]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [p, [f, "OnePlus"], [m, I]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [p, [f, U], [m, R]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[p, /(.+)/g, "Fire Phone $1"], [f, U], [m, I]], [/(playbook);[-\w\),; ]+(rim)/i], [p, f, [m, R]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [p, [f, Ce], [m, I]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [p, [f, Z], [m, R]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [p, [f, Z], [m, I]], [/(nexus 9)/i], [p, [f, "HTC"], [m, R]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [f, [p, /_/g, " "], [m, I]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [p, [f, "Acer"], [m, R]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [p, [f, "Meizu"], [m, I]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [f, p, [m, I]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [f, p, [m, R]], [/(surface duo)/i], [p, [f, fe], [m, R]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [p, [f, "Fairphone"], [m, I]], [/(u304aa)/i], [p, [f, "AT&T"], [m, I]], [/\bsie-(\w*)/i], [p, [f, "Siemens"], [m, I]], [/\b(rct\w+) b/i], [p, [f, "RCA"], [m, R]], [/\b(venue[\d ]{2,7}) b/i], [p, [f, "Dell"], [m, R]], [/\b(q(?:mv|ta)\w+) b/i], [p, [f, "Verizon"], [m, R]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [p, [f, "Barnes & Noble"], [m, R]], [/\b(tm\d{3}\w+) b/i], [p, [f, "NuVision"], [m, R]], [/\b(k88) b/i], [p, [f, "ZTE"], [m, R]], [/\b(nx\d{3}j) b/i], [p, [f, "ZTE"], [m, I]], [/\b(gen\d{3}) b.+49h/i], [p, [f, "Swiss"], [m, I]], [/\b(zur\d{3}) b/i], [p, [f, "Swiss"], [m, R]], [/\b((zeki)?tb.*\b) b/i], [p, [f, "Zeki"], [m, R]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[f, "Dragon Touch"], p, [m, R]], [/\b(ns-?\w{0,9}) b/i], [p, [f, "Insignia"], [m, R]], [/\b((nxa|next)-?\w{0,9}) b/i], [p, [f, "NextBook"], [m, R]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[f, "Voice"], p, [m, I]], [/\b(lvtel\-)?(v1[12]) b/i], [[f, "LvTel"], p, [m, I]], [/\b(ph-1) /i], [p, [f, "Essential"], [m, I]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [p, [f, "Envizen"], [m, R]], [/\b(trio[-\w\. ]+) b/i], [p, [f, "MachSpeed"], [m, R]], [/\btu_(1491) b/i], [p, [f, "Rotor"], [m, R]], [/(shield[\w ]+) b/i], [p, [f, "Nvidia"], [m, R]], [/(sprint) (\w+)/i], [f, p, [m, I]], [/(kin\.[onetw]{3})/i], [[p, /\./g, " "], [f, fe], [m, I]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [p, [f, be], [m, R]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [p, [f, be], [m, I]], [/smart-tv.+(samsung)/i], [f, [m, C]], [/hbbtv.+maple;(\d+)/i], [[p, /^/, "SmartTV"], [f, he], [m, C]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[f, me], [m, C]], [/(apple) ?tv/i], [f, [p, B + " TV"], [m, C]], [/crkey/i], [[p, J + "cast"], [f, ee], [m, C]], [/droid.+aft(\w)( bui|\))/i], [p, [f, U], [m, C]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [p, [f, Ae], [m, C]], [/(bravia[\w ]+)( bui|\))/i], [p, [f, re], [m, C]], [/(mitv-\w{5}) bui/i], [p, [f, ge], [m, C]], [/Hbbtv.*(technisat) (.*);/i], [f, p, [m, C]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[f, we], [p, we], [m, C]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[m, C]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [f, p, [m, N]], [/droid.+; (shield) bui/i], [p, [f, "Nvidia"], [m, N]], [/(playstation [345portablevi]+)/i], [p, [f, re], [m, N]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [p, [f, fe], [m, N]], [/((pebble))app/i], [f, p, [m, j]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [p, [f, B], [m, j]], [/droid.+; (glass) \d/i], [p, [f, ee], [m, j]], [/droid.+; (wt63?0{2,3})\)/i], [p, [f, be], [m, j]], [/(quest( 2| pro)?)/i], [p, [f, Oe], [m, j]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [f, [m, $]], [/(aeobc)\b/i], [p, [f, U], [m, $]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i], [p, [m, I]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [p, [m, R]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[m, R]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[m, I]], [/(android[-\w\. ]{0,9});.+buil/i], [p, [f, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [h, [b, gt + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [h, [b, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [b, h], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [h, b]], os: [[/microsoft (windows) (vista|xp)/i], [b, h], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [b, [h, ve, je]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[b, "Windows"], [h, ve, je]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /ios;fbsv\/([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[h, /_/g, "."], [b, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[b, qe], [h, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [h, b], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [b, h], [/\(bb(10);/i], [h, [b, Ce]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [h, [b, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [h, [b, Y + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [h, [b, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [h, [b, "watchOS"]], [/crkey\/([\d\.]+)/i], [h, [b, J + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[b, Te], h], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [b, h], [/(sunos) ?([\w\.\d]*)/i], [[b, "Solaris"], h], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [b, h]] }, L = function(S, A) {
2742
2742
  if (typeof S === v && (A = S, S = i), !(this instanceof L))
2743
2743
  return new L(S, A).getResult();
2744
- var x = typeof c !== w && c.navigator ? c.navigator : i, q = S || (x && x.userAgent ? x.userAgent : g), z = x && x.userAgentData ? x.userAgentData : i, H = A ? bt($e, A) : $e, k = x && x.userAgent == q;
2744
+ var P = typeof c !== w && c.navigator ? c.navigator : i, q = S || (P && P.userAgent ? P.userAgent : g), z = P && P.userAgentData ? P.userAgentData : i, H = A ? bt(Fe, A) : Fe, k = P && P.userAgent == q;
2745
2745
  return this.getBrowser = function() {
2746
- var P = {};
2747
- return P[b] = i, P[h] = i, X.call(P, q, H.browser), P[_] = wt(P[h]), k && x && x.brave && typeof x.brave.isBrave == u && (P[b] = "Brave"), P;
2746
+ var x = {};
2747
+ return x[b] = i, x[h] = i, X.call(x, q, H.browser), x[_] = wt(x[h]), k && P && P.brave && typeof P.brave.isBrave == u && (x[b] = "Brave"), x;
2748
2748
  }, this.getCPU = function() {
2749
- var P = {};
2750
- return P[E] = i, X.call(P, q, H.cpu), P;
2749
+ var x = {};
2750
+ return x[E] = i, X.call(x, q, H.cpu), x;
2751
2751
  }, this.getDevice = function() {
2752
- var P = {};
2753
- return P[f] = i, P[p] = i, P[m] = i, X.call(P, q, H.device), k && !P[m] && z && z.mobile && (P[m] = I), k && P[p] == "Macintosh" && x && typeof x.standalone !== w && x.maxTouchPoints && x.maxTouchPoints > 2 && (P[p] = "iPad", P[m] = R), P;
2752
+ var x = {};
2753
+ return x[f] = i, x[p] = i, x[m] = i, X.call(x, q, H.device), k && !x[m] && z && z.mobile && (x[m] = I), k && x[p] == "Macintosh" && P && typeof P.standalone !== w && P.maxTouchPoints && P.maxTouchPoints > 2 && (x[p] = "iPad", x[m] = R), x;
2754
2754
  }, this.getEngine = function() {
2755
- var P = {};
2756
- return P[b] = i, P[h] = i, X.call(P, q, H.engine), P;
2755
+ var x = {};
2756
+ return x[b] = i, x[h] = i, X.call(x, q, H.engine), x;
2757
2757
  }, this.getOS = function() {
2758
- var P = {};
2759
- return P[b] = i, P[h] = i, X.call(P, q, H.os), k && !P[b] && z && z.platform != "Unknown" && (P[b] = z.platform.replace(/chrome os/i, Te).replace(/macos/i, qe)), P;
2758
+ var x = {};
2759
+ return x[b] = i, x[h] = i, X.call(x, q, H.os), k && !x[b] && z && z.platform != "Unknown" && (x[b] = z.platform.replace(/chrome os/i, Te).replace(/macos/i, qe)), x;
2760
2760
  }, this.getResult = function() {
2761
2761
  return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
2762
2762
  }, this.getUA = function() {
2763
2763
  return q;
2764
- }, this.setUA = function(P) {
2765
- return q = typeof P === y && P.length > D ? we(P, D) : P, this;
2764
+ }, this.setUA = function(x) {
2765
+ return q = typeof x === y && x.length > D ? we(x, D) : x, this;
2766
2766
  }, this.setUA(q), this;
2767
2767
  };
2768
- L.VERSION = d, L.BROWSER = ne([b, h, _]), L.CPU = ne([E]), L.DEVICE = ne([p, f, m, N, I, C, R, j, F]), L.ENGINE = L.OS = ne([b, h]), typeof o !== w ? (a.exports && (o = a.exports = L), o.UAParser = L) : typeof c !== w && (c.UAParser = L);
2768
+ L.VERSION = d, L.BROWSER = ne([b, h, _]), L.CPU = ne([E]), L.DEVICE = ne([p, f, m, N, I, C, R, j, $]), L.ENGINE = L.OS = ne([b, h]), typeof o !== w ? (a.exports && (o = a.exports = L), o.UAParser = L) : typeof c !== w && (c.UAParser = L);
2769
2769
  var V = typeof c !== w && (c.jQuery || c.Zepto);
2770
2770
  if (V && !V.ua) {
2771
2771
  var ae = new L();
@@ -2774,8 +2774,8 @@ var Re = {}, ft = { exports: {} };
2774
2774
  }, V.ua.set = function(S) {
2775
2775
  ae.setUA(S);
2776
2776
  var A = ae.getResult();
2777
- for (var x in A)
2778
- V.ua[x] = A[x];
2777
+ for (var P in A)
2778
+ V.ua[P] = A[P];
2779
2779
  };
2780
2780
  }
2781
2781
  })(typeof window == "object" ? window : this);
@@ -2796,7 +2796,7 @@ var Re = {}, ft = { exports: {} };
2796
2796
  var n = r(226);
2797
2797
  ft.exports = n;
2798
2798
  })();
2799
- var na = ft.exports;
2799
+ var ea = ft.exports;
2800
2800
  (function(e) {
2801
2801
  Object.defineProperty(e, "__esModule", {
2802
2802
  value: !0
@@ -2818,7 +2818,7 @@ var na = ft.exports;
2818
2818
  return o;
2819
2819
  }
2820
2820
  });
2821
- const r = /* @__PURE__ */ n(na);
2821
+ const r = /* @__PURE__ */ n(ea);
2822
2822
  function n(i) {
2823
2823
  return i && i.__esModule ? i : {
2824
2824
  default: i
@@ -2864,7 +2864,7 @@ var ht = {};
2864
2864
  e.exports = r, t.NextRequest = r.NextRequest, t.NextResponse = r.NextResponse, t.ImageResponse = r.ImageResponse, t.userAgentFromString = r.userAgentFromString, t.userAgent = r.userAgent, t.URLPattern = r.URLPattern;
2865
2865
  })(_e, _e.exports);
2866
2866
  var Ue = _e.exports;
2867
- async function aa({ apiUrl: e, extraData: t, fetchOptions: r }) {
2867
+ async function ta({ apiUrl: e, extraData: t, fetchOptions: r }) {
2868
2868
  var I, R;
2869
2869
  const n = `${e}/api/dataentities`, a = `${e}/api/io/v1/extrato/get-total`, {
2870
2870
  MASTER_DATA_ENTITY: o,
@@ -2878,11 +2878,11 @@ async function aa({ apiUrl: e, extraData: t, fetchOptions: r }) {
2878
2878
  { error: "Token not found. Unauthorized" },
2879
2879
  { status: 200 }
2880
2880
  );
2881
- const { sub: _, userId: p } = Bt(y), b = Object.fromEntries(
2881
+ const { sub: _, userId: p } = Ut(y), b = Object.fromEntries(
2882
2882
  Object.entries(d).map(([C, j]) => [C, String(j || "")])
2883
- ), m = async (C, j, F = !1) => {
2883
+ ), m = async (C, j, $ = !1) => {
2884
2884
  try {
2885
- const U = await fetch(`${F ? a : n}${C}`, {
2885
+ const U = await fetch(`${$ ? a : n}${C}`, {
2886
2886
  headers: {
2887
2887
  ...j,
2888
2888
  ...r == null ? void 0 : r.headers
@@ -2910,20 +2910,15 @@ async function aa({ apiUrl: e, extraData: t, fetchOptions: r }) {
2910
2910
  ) : null;
2911
2911
  return { ...f, ...E, userCredits: N, sub: _, userId: p };
2912
2912
  }
2913
- const ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2913
+ const ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2914
2914
  __proto__: null,
2915
- getUserData: aa
2916
- }, Symbol.toStringTag, { value: "Module" })), oa = {
2917
- parseSearchState: jt,
2918
- convertSearchParams: Nt,
2919
- filterNonRootFacets: qt,
2920
- filterNonCategorySelected: Tt
2921
- }, sa = l.object({
2915
+ getUserData: ta
2916
+ }, Symbol.toStringTag, { value: "Module" })), na = l.object({
2922
2917
  userName: l.string().optional(),
2923
2918
  email: l.string().optional(),
2924
2919
  sku: l.string().optional()
2925
2920
  });
2926
- async function la({
2921
+ async function aa({
2927
2922
  apiUrl: e,
2928
2923
  body: t
2929
2924
  }) {
@@ -2931,7 +2926,7 @@ async function la({
2931
2926
  console.error("[ERROR FETCHING] Body is required");
2932
2927
  return;
2933
2928
  }
2934
- await sa.validate(t);
2929
+ await na.validate(t);
2935
2930
  const r = `https://${e}.myvtex.com/no-cache/AviseMe.aspx`, n = await fetch(r, {
2936
2931
  method: "POST",
2937
2932
  headers: {
@@ -2945,11 +2940,11 @@ async function la({
2945
2940
  text: a
2946
2941
  };
2947
2942
  }
2948
- const ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2943
+ const ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2949
2944
  __proto__: null,
2950
- aviseMe: la
2945
+ aviseMe: aa
2951
2946
  }, Symbol.toStringTag, { value: "Module" }));
2952
- function ua({
2947
+ function oa({
2953
2948
  platformCMS: e,
2954
2949
  request: t
2955
2950
  }) {
@@ -2965,23 +2960,23 @@ function ua({
2965
2960
  } : null
2966
2961
  };
2967
2962
  }
2968
- const da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2963
+ const sa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2969
2964
  __proto__: null,
2970
- getCMSPreviewData: ua
2965
+ getCMSPreviewData: oa
2971
2966
  }, Symbol.toStringTag, { value: "Module" }));
2972
- function pa(e) {
2967
+ function la(e) {
2973
2968
  return {
2974
2969
  redirectTo: e.nextUrl.searchParams.get("redirect") ?? "/",
2975
2970
  clearCookies: ["cms_preview_data"],
2976
2971
  disableDraft: !0
2977
2972
  };
2978
2973
  }
2979
- const ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2974
+ const ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2980
2975
  __proto__: null,
2981
- getCMSPreviewExitData: pa
2976
+ getCMSPreviewExitData: la
2982
2977
  }, Symbol.toStringTag, { value: "Module" }));
2983
- async function fa({ pathname: e }) {
2984
- return (await zt.get(
2978
+ async function ua({ pathname: e }) {
2979
+ return (await Ht.get(
2985
2980
  `https://mariafilo.vtexcommercestable.com.br${e}`,
2986
2981
  {
2987
2982
  headers: {
@@ -2993,40 +2988,40 @@ async function fa({ pathname: e }) {
2993
2988
  "www.multimarcassoma"
2994
2989
  );
2995
2990
  }
2996
- const ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2991
+ const da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2997
2992
  __proto__: null,
2998
- getVtexXmlProxyData: fa
2999
- }, Symbol.toStringTag, { value: "Module" })), Ia = {
3000
- checkout: Zr,
3001
- catalog: on,
3002
- cms: Ft,
3003
- search: En,
3004
- masterdata: Fn,
3005
- marketingdata: $t,
3006
- user: ia,
3007
- aviseme: ca,
3008
- preview: da,
3009
- exitpreview: ma,
3010
- vtexXmlProxy: ha,
2993
+ getVtexXmlProxyData: ua
2994
+ }, Symbol.toStringTag, { value: "Module" })), va = {
2995
+ checkout: Qr,
2996
+ catalog: rn,
2997
+ cms: qt,
2998
+ search: Sn,
2999
+ masterdata: Nn,
3000
+ marketingdata: Tt,
3001
+ user: ra,
3002
+ aviseme: ia,
3003
+ preview: sa,
3004
+ exitpreview: ca,
3005
+ vtexXmlProxy: da,
3011
3006
  wishlist: {
3012
- ...Dn
3007
+ ...Fn
3013
3008
  }
3014
- }, Pa = {
3015
- catalog: Ht,
3016
- search: oa,
3017
- product: Ut,
3009
+ }, ya = {
3010
+ catalog: Lt,
3011
+ search: $t,
3012
+ product: Ft,
3018
3013
  cms: {
3019
- ...Dt,
3020
- ...Lt
3014
+ ...jt,
3015
+ ...Nt
3021
3016
  }
3022
- }, xa = {
3017
+ }, _a = {
3023
3018
  template: {
3024
3019
  pdp: {}
3025
3020
  }
3026
3021
  };
3027
3022
  export {
3028
- Ia as serverAPIs,
3029
- Ra as serverCMS,
3030
- xa as serverComponents,
3031
- Pa as serverHelpers
3023
+ va as serverAPIs,
3024
+ wa as serverCMS,
3025
+ _a as serverComponents,
3026
+ ya as serverHelpers
3032
3027
  };