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

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 (49) 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/Search.d.ts +1 -1
  5. package/contexts/hooks/useScrollRestorationInfinite.d.ts +1 -1
  6. package/contexts/index.d.ts +4 -4
  7. package/data/api/aviseme/index.d.ts +18 -0
  8. package/data/api/preview/exit-preview/index.d.ts +13 -0
  9. package/data/api/preview/index.d.ts +36 -0
  10. package/data/api/xml/index.d.ts +3 -0
  11. package/data/helpers/plp/index.d.ts +3 -7
  12. package/data/helpers/search/facets.d.ts +0 -1
  13. package/data/helpers/search/index.d.ts +0 -4
  14. package/data/helpers/search/product/index.d.ts +1 -13
  15. package/data/helpers/search/search.d.ts +0 -1
  16. package/data/index.d.ts +0 -2
  17. package/{index-CIVkR1d_.mjs → index-BM8vTUKg.mjs} +712 -776
  18. package/index-CZjoMPpQ.js +4 -0
  19. package/index.js +18 -18
  20. package/index.mjs +8751 -11007
  21. package/index2.js +2 -2
  22. package/index2.mjs +666 -578
  23. package/layout/index.d.ts +2 -2
  24. package/layout/template/PDC/Composite/InfiniteScroller/Banners/Banners.d.ts +1 -1
  25. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Card.d.ts +1 -1
  26. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Loader.d.ts +1 -1
  27. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/NextPage.d.ts +1 -4
  28. package/layout/template/PDC/Composite/InfiniteScroller/Page/Page.d.ts +2 -2
  29. package/layout/template/PDC/Composite/InfiniteScroller/Page/index.d.ts +3 -10
  30. package/layout/template/PDC/Composite/Pagination/Pagination.d.ts +1 -1
  31. package/layout/template/PDC/PDC.d.ts +1 -1
  32. package/layout/template/PDC/index.d.ts +1 -1
  33. package/package.json +1 -1
  34. package/server.d.ts +8 -4
  35. package/style.css +1 -1
  36. package/types/contexts/contexts/plp.d.ts +21 -63
  37. package/types/contexts/contexts/search.d.ts +17 -39
  38. package/types/contexts/hooks/index.d.ts +2 -0
  39. package/types/layout/team-components/PLPNavigation/index.d.ts +2 -0
  40. package/types/layout/templates/PLP/index.d.ts +3 -7
  41. package/contexts/contexts/search/QueryFacets.d.ts +0 -5
  42. package/contexts/contexts/search/QueryProducts.d.ts +0 -5
  43. package/contexts/contexts/search/RootTank.d.ts +0 -9
  44. package/contexts/store/plp-scroll.d.ts +0 -3
  45. package/index-BFjIPkXv.js +0 -4
  46. package/layout/template/PDC/Composite/InfiniteScroller/Filters/Filters.d.ts +0 -11
  47. package/layout/template/PDC/Composite/InfiniteScroller/Filters/index.d.ts +0 -1
  48. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/AnchorPDP.d.ts +0 -7
  49. package/layout/template/SearchResult/Composite/Products.d.ts +0 -7
@@ -1,28 +1,28 @@
1
- import * as M from "yup";
2
- import { jsxs as gt, Fragment as Xr, jsx as F } from "react/jsx-runtime";
3
- import { Utils as Wr } from "@soma-vertical-web/core-components";
4
- const Ze = (t, e = !0) => Intl.NumberFormat("pt-BR", {
1
+ import * as x from "yup";
2
+ import { jsxs as yt, Fragment as Mr, jsx as L } from "react/jsx-runtime";
3
+ import { Utils as Ur } from "@soma-vertical-web/core-components";
4
+ const Ye = (t, e = !0) => Intl.NumberFormat("pt-BR", {
5
5
  style: "currency",
6
6
  currency: "BRL",
7
7
  minimumFractionDigits: e ? 2 : 0
8
- }).format(t), Vr = ({ valueInCents: t, hasFree: e, freeTaxMessage: r }) => t === 0 ? e ? r : Ze(0) : Ze(t / 100), qr = (t, e) => {
8
+ }).format(t), Gr = ({ valueInCents: t, hasFree: e, freeTaxMessage: r }) => t === 0 ? e ? r : Ye(0) : Ye(t / 100), Br = (t, e) => {
9
9
  const n = (t - e) * 100 / t;
10
10
  return Math.floor(n);
11
- }, zt = (t, e) => {
11
+ }, Xt = (t, e) => {
12
12
  const [r, n] = t.split(e);
13
13
  return { name: r.trim(), size: n ? n.trim() : "" };
14
- }, zr = (t, e) => {
14
+ }, Hr = (t, e) => {
15
15
  if (!t)
16
16
  return {};
17
17
  const [r, n] = t.split(e);
18
18
  return { color: r == null ? void 0 : r.trim(), size: n == null ? void 0 : n.trim() };
19
- }, Kr = (t, e = "tamanho") => {
19
+ }, kr = (t, e = "tamanho") => {
20
20
  if (t.additionalProperty) {
21
21
  const [r] = t.additionalProperty;
22
22
  return r != null && r.name ? r.name.toLocaleLowerCase() === e ? r.value : t.name : "";
23
23
  }
24
24
  return t.name;
25
- }, Yr = (t, e) => t.replace(e, "").trim(), Qr = (t) => t.replace(/\//g, ""), Jr = ({ items: t, NAME_SPLIT_SYMBOL: e }) => {
25
+ }, jr = (t, e) => t.replace(e, "").trim(), Xr = (t) => t.replace(/\//g, ""), Wr = ({ items: t, NAME_SPLIT_SYMBOL: e }) => {
26
26
  const r = {
27
27
  price: 0,
28
28
  listPrice: 0,
@@ -41,9 +41,9 @@ const Ze = (t, e = !0) => Intl.NumberFormat("pt-BR", {
41
41
  r.price = c, r.listPrice = s;
42
42
  const p = (f = u == null ? void 0 : u[0]) == null ? void 0 : f.installments;
43
43
  if (p) {
44
- const { count: d, value: y } = p[p.length - 1];
44
+ const { count: v, value: y } = p[p.length - 1];
45
45
  r.installments = {
46
- count: d,
46
+ count: v,
47
47
  value: y / 100
48
48
  };
49
49
  }
@@ -54,7 +54,7 @@ const Ze = (t, e = !0) => Intl.NumberFormat("pt-BR", {
54
54
  const c = {
55
55
  name: l.name,
56
56
  sku: l.itemId,
57
- value: ((u = l.Tamanho) == null ? void 0 : u[0]) ?? zt(l.nameComplete ?? l.name, e).size,
57
+ value: ((u = l.Tamanho) == null ? void 0 : u[0]) ?? Xt(l.nameComplete ?? l.name, e).size,
58
58
  available: !1,
59
59
  sellerId: "",
60
60
  sellerName: "",
@@ -71,26 +71,26 @@ const Ze = (t, e = !0) => Intl.NumberFormat("pt-BR", {
71
71
  sizes: a,
72
72
  allSizesAvailable: o
73
73
  };
74
- }, Zr = (t) => t ? !t.offers.offers.find(({ quantity: e = 0 }) => e > 0) : !1, en = (t, e) => {
74
+ }, Vr = (t) => t ? !t.offers.offers.find(({ quantity: e = 0 }) => e > 0) : !1, qr = (t, e) => {
75
75
  const r = t.find(
76
76
  (n) => n.availability.includes("InStock") && n.quantity && n.listPrice > 0 && n.seller.identifier === e
77
77
  );
78
78
  return r || t.find(
79
79
  (n) => n.availability.includes("InStock") && n.quantity && n.listPrice > 0
80
80
  );
81
- }, tn = ({ images: t, TEXTURE_IMAGE: e }) => t.find((r) => e.includes(r.imageLabel)) ?? t[0], rn = (t, e) => {
81
+ }, zr = ({ images: t, TEXTURE_IMAGE: e }) => t.find((r) => e.includes(r.imageLabel)) ?? t[0], Kr = (t, e) => {
82
82
  const r = /\/ids\/(\d+)\//, n = t.match(r);
83
83
  return n ? t.replace(
84
84
  `/${n[1]}/`,
85
85
  `/${n[1]}-${e.width}-${e.height}/`
86
86
  ) : t;
87
- }, nn = (t, e) => {
87
+ }, Yr = (t, e) => {
88
88
  const r = /\/ids\/(\d+)-(\d+)-(\d+)\//, n = t.match(r);
89
89
  return n ? t.replace(
90
90
  `/${n[1]}-${n[2]}-${n[3]}/`,
91
91
  `/${n[1]}-${e.width}-${e.height}/`
92
92
  ) : t;
93
- }, on = ({
93
+ }, Qr = ({
94
94
  images: t,
95
95
  label: e
96
96
  }) => {
@@ -98,35 +98,35 @@ const Ze = (t, e = !0) => Intl.NumberFormat("pt-BR", {
98
98
  (n) => n.keywords === e.first || n.keywords === e.second || n.alternateName === e.first || n.alternateName === e.second
99
99
  );
100
100
  return r.length === 0 ? t.slice(0, 2) : r;
101
- }, an = (t) => {
101
+ }, Jr = (t) => {
102
102
  const [e, r] = t.split("/").map(Number);
103
103
  if (Number.isNaN(e) || Number.isNaN(r))
104
104
  throw new Error("[ERROR ASPECT RATIO IMAGE]: Invalid aspect ratio format");
105
105
  return r / e;
106
- }, ln = (t, e, r) => {
106
+ }, Zr = (t, e, r) => {
107
107
  e && (t ? (e.getAttribute("src") || (e.src = r ?? ""), e.play()) : e.pause());
108
- }, ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
108
+ }, Ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
109
109
  __proto__: null,
110
- disableSKU: Zr,
111
- formatPriceToCurrency: Ze,
112
- freightParsePrice: Vr,
113
- getAspectRatio: an,
114
- getColorAndSizeFromSkuName: zr,
115
- getDiscountPercent: qr,
116
- getFirstImages: on,
117
- getProductNameWithoutSku: Yr,
118
- getSKUName: Kr,
119
- getSkuInfos: Jr,
120
- getThumbImage: tn,
121
- getValidOffer: en,
122
- removeSlashes: Qr,
123
- resizingImg: rn,
124
- setVideoPlay: ln,
125
- splitNameAndSizeFromFullName: zt,
126
- updatedResizedImg: nn
127
- }, Symbol.toStringTag, { value: "Module" })), mt = "fuzzy", _t = "operator", cn = (t) => ({
110
+ disableSKU: Vr,
111
+ formatPriceToCurrency: Ye,
112
+ freightParsePrice: Gr,
113
+ getAspectRatio: Jr,
114
+ getColorAndSizeFromSkuName: Hr,
115
+ getDiscountPercent: Br,
116
+ getFirstImages: Qr,
117
+ getProductNameWithoutSku: jr,
118
+ getSKUName: kr,
119
+ getSkuInfos: Wr,
120
+ getThumbImage: zr,
121
+ getValidOffer: qr,
122
+ removeSlashes: Xr,
123
+ resizingImg: Kr,
124
+ setVideoPlay: Zr,
125
+ splitNameAndSizeFromFullName: Xt,
126
+ updatedResizedImg: Yr
127
+ }, Symbol.toStringTag, { value: "Module" })), dt = "fuzzy", vt = "operator", en = (t) => ({
128
128
  isDepartment: t != null && t.length ? t[0].key === "category-1" : !1
129
- }), un = (t, e) => {
129
+ }), Di = (t, e) => {
130
130
  const r = decodeURIComponent(e ?? "").slice(1).split("/");
131
131
  return t.map((n) => {
132
132
  if (n.key === "category-2" && n.__typename === "FacetBoolean") {
@@ -142,7 +142,7 @@ const Ze = (t, e = !0) => Intl.NumberFormat("pt-BR", {
142
142
  }
143
143
  return n;
144
144
  });
145
- }, Kt = (t, e) => e ? t === "category-1" : !1, fn = (t) => t.key === "operator" && (t.value === "and" || t.value === "or"), sn = (t) => t.type === "TEXT", pn = (t) => t.key === "fuzzy" && (t.value === "0" || t.value === "1" || t.value === "auto"), yn = (t) => {
145
+ }, Wt = (t, e) => e ? t === "category-1" : !1, tn = (t) => t.key === "operator" && (t.value === "and" || t.value === "or"), rn = (t) => t.type === "TEXT", nn = (t) => t.key === "fuzzy" && (t.value === "0" || t.value === "1" || t.value === "auto"), on = (t) => {
146
146
  const { key: e, name: r, values: n } = t;
147
147
  return {
148
148
  __typename: "FacetBoolean",
@@ -150,71 +150,54 @@ const Ze = (t, e = !0) => Intl.NumberFormat("pt-BR", {
150
150
  label: r,
151
151
  values: n.slice().sort((o, a) => o.name.localeCompare(a.name))
152
152
  };
153
- }, dn = ({ key: t, values: e }) => ({
153
+ }, an = ({ key: t, values: e }) => ({
154
154
  __typename: "FacetRange",
155
155
  key: t,
156
156
  values: e
157
- }), Xi = (t, e, r) => {
157
+ }), $i = (t, e, r) => {
158
158
  if (!(t instanceof Object) || !("facets" in t))
159
159
  return [];
160
160
  const { facets: n = [] } = t, o = e != null && e.length ? e[0].key === "category-1" : !1;
161
161
  return n.filter(
162
- (i) => !r || !Kt(i.key, o)
162
+ (i) => !r || !Wt(i.key, o)
163
163
  ).map(
164
- (i) => sn(i) ? yn(i) : dn(i)
164
+ (i) => rn(i) ? on(i) : an(i)
165
165
  );
166
- }, Wi = (t, e) => {
167
- const r = t.find(({ key: o }) => o === mt) ?? null, n = t.find(({ key: o }) => o === _t) ?? null;
168
- r && pn(r) && e.append(mt, r.value), n && fn(n) && e.append(_t, n.value);
169
- }, Yt = (t) => t.map((e) => {
166
+ }, Fi = (t, e) => {
167
+ const r = t.find(({ key: o }) => o === dt) ?? null, n = t.find(({ key: o }) => o === vt) ?? null;
168
+ r && nn(r) && e.append(dt, r.value), n && tn(n) && e.append(vt, n.value);
169
+ }, ln = (t) => t.map((e) => {
170
170
  const [r, n] = e.split("/");
171
171
  return { key: r, value: n };
172
- }), vn = (t, e) => {
172
+ }), xi = (t, e) => {
173
173
  const r = decodeURIComponent(e ?? "").slice(1).split("/"), n = t.filter(({ value: a }) => !r.includes(decodeURIComponent(a))).map((a) => ({
174
174
  ...a,
175
175
  value: decodeURIComponent(a.value)
176
- })), { isDepartment: o } = cn(n);
177
- return n == null ? void 0 : n.filter((a) => !Kt(a.key, o));
178
- }, Vi = (t) => t.getAll("facets").flatMap((e) => {
179
- const [r, ...n] = e.split("/");
180
- return !r || n.length === 0 ? [] : [
181
- {
182
- key: r,
183
- value: n.join("/")
184
- }
185
- ];
186
- }), hn = ({ pathname: t, searchParams: e }, r) => {
176
+ })), { isDepartment: o } = en(n);
177
+ return n == null ? void 0 : n.filter((a) => !Wt(a.key, o));
178
+ }, Li = ({ pathname: t, searchParams: e }, r) => {
187
179
  const n = e.get("sort") ?? "", o = e.get("query") ?? null, a = parseInt(e.get("page") ?? "1", 10);
188
180
  return {
189
181
  sort: n,
190
- facets: Yt(r),
182
+ facets: ln(r),
191
183
  term: o,
192
184
  base: o ? "" : t,
193
185
  page: a
194
186
  };
195
- }, gn = (t) => {
187
+ }, Mi = (t) => {
196
188
  const e = new URLSearchParams();
197
189
  return Object.entries(t).forEach(([r, n]) => {
198
190
  Array.isArray(n) ? n.forEach((o) => e.append(r, o)) : n !== void 0 && e.append(r, n);
199
191
  }), e;
200
- }, qi = (t, e, r = 24, n = 1, o) => {
192
+ }, Ui = (t, e, r = 24, n = 1, o) => {
201
193
  const a = `/search?query=${e ?? ""}&count=${r}&page=${n}${o ? `&sort=${o.replace("_", ":")}` : ""}`;
202
194
  t.push(a);
203
- }, mn = {
204
- parseSearchState: hn,
205
- convertSearchParams: gn,
206
- filterNonRootFacets: vn,
207
- selectedFacets: Yt,
208
- filterNonCategorySelected: un
209
- }, zi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
210
- __proto__: null,
211
- default: mn
212
- }, Symbol.toStringTag, { value: "Module" }));
213
- var Et = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
214
- function _n(t) {
195
+ };
196
+ var ht = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
197
+ function cn(t) {
215
198
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
216
199
  }
217
- function En(t) {
200
+ function un(t) {
218
201
  if (t.__esModule) return t;
219
202
  var e = t.default;
220
203
  if (typeof e == "function") {
@@ -233,7 +216,7 @@ function En(t) {
233
216
  });
234
217
  }), r;
235
218
  }
236
- var Sn = {};
219
+ var fn = {};
237
220
  (function(t) {
238
221
  Object.defineProperty(t, "__esModule", {
239
222
  value: !0
@@ -246,8 +229,8 @@ var Sn = {};
246
229
  function e(r) {
247
230
  return r.replace(/\/$/, "") || "/";
248
231
  }
249
- })(Sn);
250
- var it = {};
232
+ })(fn);
233
+ var nt = {};
251
234
  (function(t) {
252
235
  Object.defineProperty(t, "__esModule", {
253
236
  value: !0
@@ -269,8 +252,8 @@ var it = {};
269
252
  hash: ""
270
253
  };
271
254
  }
272
- })(it);
273
- var Qt = {};
255
+ })(nt);
256
+ var Vt = {};
274
257
  (function(t) {
275
258
  Object.defineProperty(t, "__esModule", {
276
259
  value: !0
@@ -280,23 +263,23 @@ var Qt = {};
280
263
  return r;
281
264
  }
282
265
  });
283
- const e = it;
266
+ const e = nt;
284
267
  function r(n, o) {
285
268
  if (typeof n != "string")
286
269
  return !1;
287
270
  const { pathname: a } = (0, e.parsePath)(n);
288
271
  return a === o || a.startsWith(o + "/");
289
272
  }
290
- })(Qt);
291
- var An = {};
273
+ })(Vt);
274
+ var sn = {};
292
275
  (function(t) {
293
276
  Object.defineProperty(t, "__esModule", {
294
277
  value: !0
295
278
  });
296
- function e(kr, vt) {
297
- for (var ht in vt) Object.defineProperty(kr, ht, {
279
+ function e(Lr, st) {
280
+ for (var pt in st) Object.defineProperty(Lr, pt, {
298
281
  enumerable: !0,
299
- get: vt[ht]
282
+ get: st[pt]
300
283
  });
301
284
  }
302
285
  e(t, {
@@ -310,25 +293,25 @@ var An = {};
310
293
  return I;
311
294
  },
312
295
  DOT_NEXT_ALIAS: function() {
313
- return x;
296
+ return F;
314
297
  },
315
298
  ESLINT_DEFAULT_DIRS: function() {
316
- return Gr;
299
+ return Dr;
317
300
  },
318
301
  GSP_NO_RETURNED_VALUE: function() {
319
- return $r;
302
+ return br;
320
303
  },
321
304
  GSSP_COMPONENT_MEMBER_ERROR: function() {
322
- return Fr;
305
+ return wr;
323
306
  },
324
307
  GSSP_NO_RETURNED_VALUE: function() {
325
- return xr;
308
+ return Ir;
326
309
  },
327
310
  INSTRUMENTATION_HOOK_FILENAME: function() {
328
311
  return U;
329
312
  },
330
313
  MIDDLEWARE_FILENAME: function() {
331
- return w;
314
+ return T;
332
315
  },
333
316
  MIDDLEWARE_LOCATION_REGEXP: function() {
334
317
  return k;
@@ -343,10 +326,10 @@ var An = {};
343
326
  return y;
344
327
  },
345
328
  NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER: function() {
346
- return _;
329
+ return E;
347
330
  },
348
331
  NEXT_CACHE_SOFT_TAGS_HEADER: function() {
349
- return d;
332
+ return v;
350
333
  },
351
334
  NEXT_CACHE_SOFT_TAG_MAX_LENGTH: function() {
352
335
  return b;
@@ -358,7 +341,7 @@ var An = {};
358
341
  return A;
359
342
  },
360
343
  NEXT_CACHE_TAG_MAX_LENGTH: function() {
361
- return P;
344
+ return O;
362
345
  },
363
346
  NEXT_DATA_SUFFIX: function() {
364
347
  return s;
@@ -373,7 +356,7 @@ var An = {};
373
356
  return r;
374
357
  },
375
358
  NON_STANDARD_NODE_ENV: function() {
376
- return Lr;
359
+ return Cr;
377
360
  },
378
361
  PAGES_DIR_ALIAS: function() {
379
362
  return z;
@@ -388,19 +371,19 @@ var An = {};
388
371
  return ne;
389
372
  },
390
373
  ROOT_DIR_ALIAS: function() {
391
- return T;
374
+ return w;
392
375
  },
393
376
  RSC_ACTION_CLIENT_WRAPPER_ALIAS: function() {
394
- return X;
377
+ return j;
395
378
  },
396
379
  RSC_ACTION_ENCRYPTION_ALIAS: function() {
397
- return R;
380
+ return P;
398
381
  },
399
382
  RSC_ACTION_PROXY_ALIAS: function() {
400
383
  return C;
401
384
  },
402
385
  RSC_ACTION_VALIDATE_ALIAS: function() {
403
- return O;
386
+ return R;
404
387
  },
405
388
  RSC_MOD_REF_PROXY_ALIAS: function() {
406
389
  return G;
@@ -412,7 +395,7 @@ var An = {};
412
395
  return l;
413
396
  },
414
397
  SERVER_PROPS_EXPORT_ERROR: function() {
415
- return Dr;
398
+ return Or;
416
399
  },
417
400
  SERVER_PROPS_GET_INIT_PROPS_CONFLICT: function() {
418
401
  return ve;
@@ -421,38 +404,38 @@ var An = {};
421
404
  return oe;
422
405
  },
423
406
  SERVER_RUNTIME: function() {
424
- return Br;
407
+ return $r;
425
408
  },
426
409
  SSG_FALLBACK_EXPORT_ERROR: function() {
427
- return Ur;
410
+ return Nr;
428
411
  },
429
412
  SSG_GET_INITIAL_PROPS_CONFLICT: function() {
430
- return xe;
413
+ return Ne;
431
414
  },
432
415
  STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR: function() {
433
- return Nr;
416
+ return Pr;
434
417
  },
435
418
  UNSTABLE_REVALIDATE_RENAME_ERROR: function() {
436
- return Mr;
419
+ return Tr;
437
420
  },
438
421
  WEBPACK_LAYERS: function() {
439
- return Hr;
422
+ return Fr;
440
423
  },
441
424
  WEBPACK_RESOURCE_QUERIES: function() {
442
- return jr;
425
+ return xr;
443
426
  }
444
427
  });
445
- const r = "nxtP", n = "nxtI", o = "x-prerender-revalidate", a = "x-prerender-revalidate-if-generated", i = ".prefetch.rsc", l = ".rsc", c = ".action", s = ".json", u = ".meta", p = ".body", f = "x-next-cache-tags", d = "x-next-cache-soft-tags", y = "x-next-revalidated-tags", _ = "x-next-revalidate-tag-token", A = 128, P = 256, b = 1024, h = "_N_T_", I = 31536e3, w = "middleware", k = `(?:src/)?${w}`, U = "instrumentation", z = "private-next-pages", x = "private-dot-next", T = "private-next-root-dir", K = "private-next-app-dir", G = "private-next-rsc-mod-ref-proxy", O = "private-next-rsc-action-validate", C = "private-next-rsc-server-reference", R = "private-next-rsc-action-encryption", X = "private-next-rsc-action-client-wrapper", ne = "You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict", xe = "You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps", ve = "You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.", oe = "You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps", Nr = "can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props", Dr = "pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export", $r = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?", xr = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?", Mr = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.", Fr = "can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member", Lr = 'You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env', Ur = "Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export", Gr = [
428
+ const r = "nxtP", n = "nxtI", o = "x-prerender-revalidate", a = "x-prerender-revalidate-if-generated", i = ".prefetch.rsc", l = ".rsc", c = ".action", s = ".json", u = ".meta", p = ".body", f = "x-next-cache-tags", v = "x-next-cache-soft-tags", y = "x-next-revalidated-tags", E = "x-next-revalidate-tag-token", A = 128, O = 256, b = 1024, h = "_N_T_", I = 31536e3, T = "middleware", k = `(?:src/)?${T}`, U = "instrumentation", z = "private-next-pages", F = "private-dot-next", w = "private-next-root-dir", K = "private-next-app-dir", G = "private-next-rsc-mod-ref-proxy", R = "private-next-rsc-action-validate", C = "private-next-rsc-server-reference", P = "private-next-rsc-action-encryption", j = "private-next-rsc-action-client-wrapper", ne = "You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict", Ne = "You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps", ve = "You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.", oe = "You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps", Pr = "can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props", Or = "pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export", br = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?", Ir = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?", Tr = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.", wr = "can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member", Cr = 'You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env', Nr = "Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export", Dr = [
446
429
  "app",
447
430
  "pages",
448
431
  "components",
449
432
  "lib",
450
433
  "src"
451
- ], Br = {
434
+ ], $r = {
452
435
  edge: "edge",
453
436
  experimentalEdge: "experimental-edge",
454
437
  nodejs: "nodejs"
455
- }, E = {
438
+ }, _ = {
456
439
  /**
457
440
  * The layer for the shared code between the client and server bundles.
458
441
  */
@@ -497,44 +480,44 @@ var An = {};
497
480
  * The layer for the server bundle for App Route handlers.
498
481
  */
499
482
  appRouteHandler: "app-route-handler"
500
- }, Hr = {
501
- ...E,
483
+ }, Fr = {
484
+ ..._,
502
485
  GROUP: {
503
486
  serverOnly: [
504
- E.reactServerComponents,
505
- E.actionBrowser,
506
- E.appMetadataRoute,
507
- E.appRouteHandler,
508
- E.instrument
487
+ _.reactServerComponents,
488
+ _.actionBrowser,
489
+ _.appMetadataRoute,
490
+ _.appRouteHandler,
491
+ _.instrument
509
492
  ],
510
493
  clientOnly: [
511
- E.serverSideRendering,
512
- E.appPagesBrowser
494
+ _.serverSideRendering,
495
+ _.appPagesBrowser
513
496
  ],
514
497
  nonClientServerTarget: [
515
498
  // middleware and pages api
516
- E.middleware,
517
- E.api
499
+ _.middleware,
500
+ _.api
518
501
  ],
519
502
  app: [
520
- E.reactServerComponents,
521
- E.actionBrowser,
522
- E.appMetadataRoute,
523
- E.appRouteHandler,
524
- E.serverSideRendering,
525
- E.appPagesBrowser,
526
- E.shared,
527
- E.instrument
503
+ _.reactServerComponents,
504
+ _.actionBrowser,
505
+ _.appMetadataRoute,
506
+ _.appRouteHandler,
507
+ _.serverSideRendering,
508
+ _.appPagesBrowser,
509
+ _.shared,
510
+ _.instrument
528
511
  ]
529
512
  }
530
- }, jr = {
513
+ }, xr = {
531
514
  edgeSSREntry: "__next_edge_ssr_entry__",
532
515
  metadata: "__next_metadata__",
533
516
  metadataRoute: "__next_metadata_route__",
534
517
  metadataImageMeta: "__next_metadata_image_meta__"
535
518
  };
536
- })(An);
537
- var On = {}, Jt = {};
519
+ })(sn);
520
+ var pn = {}, qt = {};
538
521
  (function(t) {
539
522
  Object.defineProperty(t, "__esModule", {
540
523
  value: !0
@@ -544,14 +527,14 @@ var On = {}, Jt = {};
544
527
  return r;
545
528
  }
546
529
  });
547
- const e = it;
530
+ const e = nt;
548
531
  function r(n, o) {
549
532
  if (!n.startsWith("/") || !o)
550
533
  return n;
551
534
  const { pathname: a, query: i, hash: l } = (0, e.parsePath)(n);
552
535
  return "" + o + a + i + l;
553
536
  }
554
- })(Jt);
537
+ })(qt);
555
538
  (function(t) {
556
539
  Object.defineProperty(t, "__esModule", {
557
540
  value: !0
@@ -561,14 +544,14 @@ var On = {}, Jt = {};
561
544
  return n;
562
545
  }
563
546
  });
564
- const e = Jt, r = Qt;
547
+ const e = qt, r = Vt;
565
548
  function n(o, a, i, l) {
566
549
  if (!a || a === i) return o;
567
550
  const c = o.toLowerCase();
568
551
  return !l && ((0, r.pathHasPrefix)(c, "/api") || (0, r.pathHasPrefix)(c, "/" + a.toLowerCase())) ? o : (0, e.addPathPrefix)(o, "/" + a);
569
552
  }
570
- })(On);
571
- var Rn = {};
553
+ })(pn);
554
+ var yn = {};
572
555
  (function(t) {
573
556
  Object.defineProperty(t, "__esModule", {
574
557
  value: !0
@@ -586,8 +569,8 @@ var Rn = {};
586
569
  detectedLocale: o
587
570
  };
588
571
  }
589
- })(Rn);
590
- var Pn = {};
572
+ })(yn);
573
+ var dn = {};
591
574
  (function(t) {
592
575
  Object.defineProperty(t, "__esModule", {
593
576
  value: !0
@@ -608,19 +591,19 @@ var Pn = {};
608
591
  }
609
592
  }
610
593
  }
611
- })(Pn);
612
- const bn = (t = "") => t.charAt(0).toUpperCase() + t.slice(1), St = (t, e = " ") => !t || typeof t == "string" && t.length === 0 ? t : (Array.isArray(t) ? t : t.split("-")).map(bn).join(e), In = ({ canonical: t, seo: e, slug: r }) => {
594
+ })(dn);
595
+ const vn = (t = "") => t.charAt(0).toUpperCase() + t.slice(1), gt = (t, e = " ") => !t || typeof t == "string" && t.length === 0 ? t : (Array.isArray(t) ? t : t.split("-")).map(vn).join(e), hn = ({ canonical: t, seo: e, slug: r }) => {
613
596
  const n = Array.isArray(r) ? r.join(", ") : r;
614
597
  return {
615
598
  id: 0,
616
- Title: `${Array.isArray(r) ? r.map((a) => St(a)).join(",") : St(r)} - ${e.title}`,
599
+ Title: `${Array.isArray(r) ? r.map((a) => gt(a)).join(",") : gt(r)} - ${e.title}`,
617
600
  MetaTagDescription: e.description,
618
601
  name: n,
619
602
  hasChildren: !1,
620
603
  url: t,
621
604
  children: []
622
605
  };
623
- }, wn = ({ canonical: t, category: e, previousImages: r, seo: n }) => ({
606
+ }, gn = ({ canonical: t, category: e, previousImages: r, seo: n }) => ({
624
607
  category: String(e == null ? void 0 : e.id),
625
608
  title: (e == null ? void 0 : e.Title) ?? n.title,
626
609
  description: (e == null ? void 0 : e.MetaTagDescription) ?? n.description,
@@ -631,28 +614,28 @@ const bn = (t = "") => t.charAt(0).toUpperCase() + t.slice(1), St = (t, e = " ")
631
614
  description: (e == null ? void 0 : e.MetaTagDescription) ?? n.description,
632
615
  images: Array.isArray(r) ? [...r] : []
633
616
  }
634
- }), Tn = ({ items: t, parent: e, apiUrl: r, find: n }) => {
617
+ }), mn = ({ items: t, parent: e, apiUrl: r, find: n }) => {
635
618
  const o = t.find(
636
619
  (i) => i.url.replace(r, "") === decodeURIComponent(e.toLowerCase())
637
620
  );
638
621
  return (o == null ? void 0 : o.children.find(
639
622
  (i) => i.name.toLowerCase() === decodeURIComponent(String(n))
640
623
  )) ?? o;
641
- }, Cn = (t) => {
624
+ }, En = (t) => {
642
625
  t instanceof Error ? (console.error(`[ERROR CATEGORY INFO]: ${t.message}`), console.error(t.stack)) : console.error("[ERROR CATEGORY INFO]: Unknown error", t);
643
- }, Nn = /* @__PURE__ */ new Set([
626
+ }, _n = /* @__PURE__ */ new Set([
644
627
  "brand",
645
628
  "category",
646
629
  "department",
647
630
  "subcategory",
648
631
  "collection",
649
632
  "cluster"
650
- ]), Dn = (t) => typeof (t == null ? void 0 : t.pageType) == "string" && Nn.has(t == null ? void 0 : t.pageType.toLowerCase()), $n = (t) => ({
633
+ ]), Sn = (t) => typeof (t == null ? void 0 : t.pageType) == "string" && _n.has(t == null ? void 0 : t.pageType.toLowerCase()), An = (t) => ({
651
634
  collection: t.Coleção,
652
635
  categoryId: t.categoryId,
653
636
  current_collection: t["Coleção Atual"],
654
637
  items: t.items
655
- }), xn = (t, e) => t.reduce((r, n) => {
638
+ }), Rn = (t, e) => t.reduce((r, n) => {
656
639
  if (n.items.filter(
657
640
  (i) => i.sellers.find((l) => l.commertialOffer.IsAvailable)
658
641
  ).length === 0 || (r == null ? void 0 : r.find((i) => (i == null ? void 0 : i.productId) === (n == null ? void 0 : n.productId))) !== void 0)
@@ -666,21 +649,21 @@ const bn = (t = "") => t.charAt(0).toUpperCase() + t.slice(1), St = (t, e = " ")
666
649
  textureImage: (a == null ? void 0 : a.imageUrl) ?? "",
667
650
  textureAlt: (a == null ? void 0 : a.imageText) ?? ""
668
651
  }), r;
669
- }, []), Ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
652
+ }, []), Gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
670
653
  __proto__: null,
671
- createEmptySeoCategory: In,
672
- createSeoCategory: wn,
673
- findCategory: Tn,
674
- formattedSimilars: xn,
675
- isCollectionPageType: Dn,
676
- notFindCategoryError: Cn,
677
- responseAdapter: $n
654
+ createEmptySeoCategory: hn,
655
+ createSeoCategory: gn,
656
+ findCategory: mn,
657
+ formattedSimilars: Rn,
658
+ isCollectionPageType: Sn,
659
+ notFindCategoryError: En,
660
+ responseAdapter: An
678
661
  }, Symbol.toStringTag, { value: "Module" })), he = {
679
662
  "responsive-mobile-flex": "_responsive-mobile-flex_1e0ai_1",
680
663
  "responsive-desktop-flex": "_responsive-desktop-flex_1e0ai_15",
681
664
  "responsive-mobile-block": "_responsive-mobile-block_1e0ai_30",
682
665
  "responsive-desktop-block": "_responsive-desktop-block_1e0ai_41"
683
- }, Zt = async (t, e = {}) => {
666
+ }, zt = async (t, e = {}) => {
684
667
  const { method: r = "GET", body: n, headers: o = {}, priority: a = "auto", cache: i = "default" } = e;
685
668
  return fetch(t, {
686
669
  method: r,
@@ -697,12 +680,12 @@ const bn = (t = "") => t.charAt(0).toUpperCase() + t.slice(1), St = (t, e = " ")
697
680
  console.error("[ERROR FETCH VTEX]", l);
698
681
  });
699
682
  }, ae = /* @__PURE__ */ new Map();
700
- async function Yi(t, e = {}) {
683
+ async function Bi(t, e = {}) {
701
684
  var r;
702
685
  try {
703
686
  const { abort: n = !1 } = e, o = new AbortController();
704
687
  n && (ae.has(t) && ((r = ae.get(t)) == null || r.abort(), ae.delete(t)), ae.set(t, o));
705
- const a = Zt(t, {
688
+ const a = zt(t, {
706
689
  ...e,
707
690
  ...n ? { signal: o.signal } : {}
708
691
  });
@@ -715,17 +698,17 @@ async function Yi(t, e = {}) {
715
698
  throw console.error(`[ERROR API]: ${n.message}`), n;
716
699
  }
717
700
  }
718
- const Mn = M.object({
719
- orderFormId: M.string().required(),
720
- coupon: M.string().nullable(),
721
- utmSource: M.string().optional(),
722
- utmMedium: M.string().optional(),
723
- utmCampaign: M.string().optional(),
724
- utmiCampaign: M.string().optional(),
725
- utmiPart: M.string().optional(),
726
- utmipage: M.string().optional()
701
+ const Pn = x.object({
702
+ orderFormId: x.string().required(),
703
+ coupon: x.string().nullable(),
704
+ utmSource: x.string().optional(),
705
+ utmMedium: x.string().optional(),
706
+ utmCampaign: x.string().optional(),
707
+ utmiCampaign: x.string().optional(),
708
+ utmiPart: x.string().optional(),
709
+ utmipage: x.string().optional()
727
710
  });
728
- async function Fn({
711
+ async function On({
729
712
  apiUrl: t,
730
713
  body: e
731
714
  }) {
@@ -733,9 +716,9 @@ async function Fn({
733
716
  console.error("[ERROR FETCHING] Body is required");
734
717
  return;
735
718
  }
736
- await Mn.validate(e);
719
+ await Pn.validate(e);
737
720
  const { orderFormId: r, utmiPart: n, coupon: o, ...a } = e, i = `${t}/api/checkout/pub/orderForm/${r}/attachments/marketingData`;
738
- return Zt(i, {
721
+ return zt(i, {
739
722
  method: "POST",
740
723
  body: {
741
724
  orderFormId: r,
@@ -745,10 +728,10 @@ async function Fn({
745
728
  }
746
729
  });
747
730
  }
748
- const Qi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
731
+ const Hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
749
732
  __proto__: null,
750
- postMediaData: Fn
751
- }, Symbol.toStringTag, { value: "Module" })), Ji = ({
733
+ postMediaData: On
734
+ }, Symbol.toStringTag, { value: "Module" })), ki = ({
752
735
  children: t,
753
736
  data: e,
754
737
  SectionZone: r,
@@ -756,64 +739,64 @@ const Qi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
756
739
  }) => {
757
740
  var u, p;
758
741
  const o = ((u = e == null ? void 0 : e.filter((f) => {
759
- var d, y;
760
- return ((y = (d = f.config) == null ? void 0 : d.responsive) == null ? void 0 : y.deviceType) === "mobile";
742
+ var v, y;
743
+ return ((y = (v = f.config) == null ? void 0 : v.responsive) == null ? void 0 : y.deviceType) === "mobile";
761
744
  })[0]) == null ? void 0 : u.sections) || [], a = ((p = e == null ? void 0 : e.filter((f) => {
762
- var d, y;
763
- return ((y = (d = f.config) == null ? void 0 : d.responsive) == null ? void 0 : y.deviceType) === "desktop";
745
+ var v, y;
746
+ return ((y = (v = f.config) == null ? void 0 : v.responsive) == null ? void 0 : y.deviceType) === "desktop";
764
747
  })[0]) == null ? void 0 : p.sections) || [], i = o.slice(0, 1), l = o.slice(1, o.length), c = a.slice(0, 1), s = a.slice(1, a.length);
765
- return /* @__PURE__ */ gt(Xr, { children: [
766
- /* @__PURE__ */ gt("div", { className: n, children: [
767
- /* @__PURE__ */ F("div", { className: he["responsive-mobile-flex"], children: /* @__PURE__ */ F(r, { data: i ?? [] }) }),
768
- /* @__PURE__ */ F("div", { className: he["responsive-desktop-flex"], children: /* @__PURE__ */ F(r, { data: c ?? [] }) })
748
+ return /* @__PURE__ */ yt(Mr, { children: [
749
+ /* @__PURE__ */ yt("div", { className: n, children: [
750
+ /* @__PURE__ */ L("div", { className: he["responsive-mobile-flex"], children: /* @__PURE__ */ L(r, { data: i ?? [] }) }),
751
+ /* @__PURE__ */ L("div", { className: he["responsive-desktop-flex"], children: /* @__PURE__ */ L(r, { data: c ?? [] }) })
769
752
  ] }),
770
753
  t,
771
- /* @__PURE__ */ F("div", { className: he["responsive-mobile-flex"], children: /* @__PURE__ */ F(r, { data: l ?? [] }) }),
772
- /* @__PURE__ */ F("div", { className: he["responsive-desktop-flex"], children: /* @__PURE__ */ F(r, { data: s ?? [] }) }),
773
- /* @__PURE__ */ F(Wr.Divider, {})
754
+ /* @__PURE__ */ L("div", { className: he["responsive-mobile-flex"], children: /* @__PURE__ */ L(r, { data: l ?? [] }) }),
755
+ /* @__PURE__ */ L("div", { className: he["responsive-desktop-flex"], children: /* @__PURE__ */ L(r, { data: s ?? [] }) }),
756
+ /* @__PURE__ */ L(Ur.Divider, {})
774
757
  ] });
775
758
  };
776
759
  var re = TypeError;
777
- const Ln = {}, Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
760
+ const bn = {}, In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
778
761
  __proto__: null,
779
- default: Ln
780
- }, Symbol.toStringTag, { value: "Module" })), Gn = /* @__PURE__ */ En(Un);
781
- var lt = typeof Map == "function" && Map.prototype, Me = Object.getOwnPropertyDescriptor && lt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Oe = lt && Me && typeof Me.get == "function" ? Me.get : null, At = lt && Map.prototype.forEach, ct = typeof Set == "function" && Set.prototype, Fe = Object.getOwnPropertyDescriptor && ct ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Re = ct && Fe && typeof Fe.get == "function" ? Fe.get : null, Ot = ct && Set.prototype.forEach, Bn = typeof WeakMap == "function" && WeakMap.prototype, le = Bn ? WeakMap.prototype.has : null, Hn = typeof WeakSet == "function" && WeakSet.prototype, ce = Hn ? WeakSet.prototype.has : null, jn = typeof WeakRef == "function" && WeakRef.prototype, Rt = jn ? WeakRef.prototype.deref : null, kn = Boolean.prototype.valueOf, Xn = Object.prototype.toString, Wn = Function.prototype.toString, Vn = String.prototype.match, ut = String.prototype.slice, B = String.prototype.replace, qn = String.prototype.toUpperCase, Pt = String.prototype.toLowerCase, er = RegExp.prototype.test, bt = Array.prototype.concat, $ = Array.prototype.join, zn = Array.prototype.slice, It = Math.floor, et = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Le = Object.getOwnPropertySymbols, tt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ee = typeof Symbol == "function" && typeof Symbol.iterator == "object", ue = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ee || !0) ? Symbol.toStringTag : null, tr = Object.prototype.propertyIsEnumerable, wt = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
762
+ default: bn
763
+ }, Symbol.toStringTag, { value: "Module" })), Tn = /* @__PURE__ */ un(In);
764
+ var ot = typeof Map == "function" && Map.prototype, De = Object.getOwnPropertyDescriptor && ot ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ae = ot && De && typeof De.get == "function" ? De.get : null, mt = ot && Map.prototype.forEach, at = typeof Set == "function" && Set.prototype, $e = Object.getOwnPropertyDescriptor && at ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Re = at && $e && typeof $e.get == "function" ? $e.get : null, Et = at && Set.prototype.forEach, wn = typeof WeakMap == "function" && WeakMap.prototype, le = wn ? WeakMap.prototype.has : null, Cn = typeof WeakSet == "function" && WeakSet.prototype, ce = Cn ? WeakSet.prototype.has : null, Nn = typeof WeakRef == "function" && WeakRef.prototype, _t = Nn ? WeakRef.prototype.deref : null, Dn = Boolean.prototype.valueOf, $n = Object.prototype.toString, Fn = Function.prototype.toString, xn = String.prototype.match, it = String.prototype.slice, B = String.prototype.replace, Ln = String.prototype.toUpperCase, St = String.prototype.toLowerCase, Kt = RegExp.prototype.test, At = Array.prototype.concat, $ = Array.prototype.join, Mn = Array.prototype.slice, Rt = Math.floor, Qe = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Fe = Object.getOwnPropertySymbols, Je = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ee = typeof Symbol == "function" && typeof Symbol.iterator == "object", ue = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ee || !0) ? Symbol.toStringTag : null, Yt = Object.prototype.propertyIsEnumerable, Pt = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
782
765
  return t.__proto__;
783
766
  } : null);
784
- function Tt(t, e) {
785
- if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || er.call(/e/, e))
767
+ function Ot(t, e) {
768
+ if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || Kt.call(/e/, e))
786
769
  return e;
787
770
  var r = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
788
771
  if (typeof t == "number") {
789
- var n = t < 0 ? -It(-t) : It(t);
772
+ var n = t < 0 ? -Rt(-t) : Rt(t);
790
773
  if (n !== t) {
791
- var o = String(n), a = ut.call(e, o.length + 1);
774
+ var o = String(n), a = it.call(e, o.length + 1);
792
775
  return B.call(o, r, "$&_") + "." + B.call(B.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
793
776
  }
794
777
  }
795
778
  return B.call(e, r, "$&_");
796
779
  }
797
- var rt = Gn, Ct = rt.custom, Nt = or(Ct) ? Ct : null, rr = {
780
+ var Ze = Tn, bt = Ze.custom, It = Zt(bt) ? bt : null, Qt = {
798
781
  __proto__: null,
799
782
  double: '"',
800
783
  single: "'"
801
- }, Kn = {
784
+ }, Un = {
802
785
  __proto__: null,
803
786
  double: /(["\\])/g,
804
787
  single: /(['\\])/g
805
- }, we = function t(e, r, n, o) {
788
+ }, be = function t(e, r, n, o) {
806
789
  var a = r || {};
807
- if (L(a, "quoteStyle") && !L(rr, a.quoteStyle))
790
+ if (M(a, "quoteStyle") && !M(Qt, a.quoteStyle))
808
791
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
809
- if (L(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
792
+ if (M(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
810
793
  throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
811
- var i = L(a, "customInspect") ? a.customInspect : !0;
794
+ var i = M(a, "customInspect") ? a.customInspect : !0;
812
795
  if (typeof i != "boolean" && i !== "symbol")
813
796
  throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
814
- if (L(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
797
+ if (M(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
815
798
  throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
816
- if (L(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
799
+ if (M(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
817
800
  throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
818
801
  var l = a.numericSeparator;
819
802
  if (typeof e > "u")
@@ -823,168 +806,168 @@ var rt = Gn, Ct = rt.custom, Nt = or(Ct) ? Ct : null, rr = {
823
806
  if (typeof e == "boolean")
824
807
  return e ? "true" : "false";
825
808
  if (typeof e == "string")
826
- return ir(e, a);
809
+ return tr(e, a);
827
810
  if (typeof e == "number") {
828
811
  if (e === 0)
829
812
  return 1 / 0 / e > 0 ? "0" : "-0";
830
813
  var c = String(e);
831
- return l ? Tt(e, c) : c;
814
+ return l ? Ot(e, c) : c;
832
815
  }
833
816
  if (typeof e == "bigint") {
834
817
  var s = String(e) + "n";
835
- return l ? Tt(e, s) : s;
818
+ return l ? Ot(e, s) : s;
836
819
  }
837
820
  var u = typeof a.depth > "u" ? 5 : a.depth;
838
821
  if (typeof n > "u" && (n = 0), n >= u && u > 0 && typeof e == "object")
839
- return nt(e) ? "[Array]" : "[Object]";
840
- var p = yo(a, n);
822
+ return et(e) ? "[Array]" : "[Object]";
823
+ var p = ro(a, n);
841
824
  if (typeof o > "u")
842
825
  o = [];
843
- else if (ar(o, e) >= 0)
826
+ else if (er(o, e) >= 0)
844
827
  return "[Circular]";
845
- function f(O, C, R) {
846
- if (C && (o = zn.call(o), o.push(C)), R) {
847
- var X = {
828
+ function f(R, C, P) {
829
+ if (C && (o = Mn.call(o), o.push(C)), P) {
830
+ var j = {
848
831
  depth: a.depth
849
832
  };
850
- return L(a, "quoteStyle") && (X.quoteStyle = a.quoteStyle), t(O, X, n + 1, o);
833
+ return M(a, "quoteStyle") && (j.quoteStyle = a.quoteStyle), t(R, j, n + 1, o);
851
834
  }
852
- return t(O, a, n + 1, o);
835
+ return t(R, a, n + 1, o);
853
836
  }
854
- if (typeof e == "function" && !Dt(e)) {
855
- var d = oo(e), y = ge(e, f);
856
- return "[Function" + (d ? ": " + d : " (anonymous)") + "]" + (y.length > 0 ? " { " + $.call(y, ", ") + " }" : "");
837
+ if (typeof e == "function" && !Tt(e)) {
838
+ var v = qn(e), y = ge(e, f);
839
+ return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (y.length > 0 ? " { " + $.call(y, ", ") + " }" : "");
857
840
  }
858
- if (or(e)) {
859
- var _ = ee ? B.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : tt.call(e);
860
- return typeof e == "object" && !ee ? ie(_) : _;
841
+ if (Zt(e)) {
842
+ var E = ee ? B.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Je.call(e);
843
+ return typeof e == "object" && !ee ? ie(E) : E;
861
844
  }
862
- if (fo(e)) {
863
- for (var A = "<" + Pt.call(String(e.nodeName)), P = e.attributes || [], b = 0; b < P.length; b++)
864
- A += " " + P[b].name + "=" + nr(Yn(P[b].value), "double", a);
865
- return A += ">", e.childNodes && e.childNodes.length && (A += "..."), A += "</" + Pt.call(String(e.nodeName)) + ">", A;
845
+ if (Zn(e)) {
846
+ for (var A = "<" + St.call(String(e.nodeName)), O = e.attributes || [], b = 0; b < O.length; b++)
847
+ A += " " + O[b].name + "=" + Jt(Gn(O[b].value), "double", a);
848
+ return A += ">", e.childNodes && e.childNodes.length && (A += "..."), A += "</" + St.call(String(e.nodeName)) + ">", A;
866
849
  }
867
- if (nt(e)) {
850
+ if (et(e)) {
868
851
  if (e.length === 0)
869
852
  return "[]";
870
853
  var h = ge(e, f);
871
- return p && !po(h) ? "[" + ot(h, p) + "]" : "[ " + $.call(h, ", ") + " ]";
854
+ return p && !to(h) ? "[" + tt(h, p) + "]" : "[ " + $.call(h, ", ") + " ]";
872
855
  }
873
- if (Jn(e)) {
856
+ if (Hn(e)) {
874
857
  var I = ge(e, f);
875
- return !("cause" in Error.prototype) && "cause" in e && !tr.call(e, "cause") ? "{ [" + String(e) + "] " + $.call(bt.call("[cause]: " + f(e.cause), I), ", ") + " }" : I.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + $.call(I, ", ") + " }";
858
+ return !("cause" in Error.prototype) && "cause" in e && !Yt.call(e, "cause") ? "{ [" + String(e) + "] " + $.call(At.call("[cause]: " + f(e.cause), I), ", ") + " }" : I.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + $.call(I, ", ") + " }";
876
859
  }
877
860
  if (typeof e == "object" && i) {
878
- if (Nt && typeof e[Nt] == "function" && rt)
879
- return rt(e, { depth: u - n });
861
+ if (It && typeof e[It] == "function" && Ze)
862
+ return Ze(e, { depth: u - n });
880
863
  if (i !== "symbol" && typeof e.inspect == "function")
881
864
  return e.inspect();
882
865
  }
883
- if (ao(e)) {
884
- var w = [];
885
- return At && At.call(e, function(O, C) {
886
- w.push(f(C, e, !0) + " => " + f(O, e));
887
- }), $t("Map", Oe.call(e), w, p);
866
+ if (zn(e)) {
867
+ var T = [];
868
+ return mt && mt.call(e, function(R, C) {
869
+ T.push(f(C, e, !0) + " => " + f(R, e));
870
+ }), wt("Map", Ae.call(e), T, p);
888
871
  }
889
- if (co(e)) {
872
+ if (Qn(e)) {
890
873
  var k = [];
891
- return Ot && Ot.call(e, function(O) {
892
- k.push(f(O, e));
893
- }), $t("Set", Re.call(e), k, p);
894
- }
895
- if (io(e))
896
- return Ue("WeakMap");
897
- if (uo(e))
898
- return Ue("WeakSet");
899
- if (lo(e))
900
- return Ue("WeakRef");
901
- if (eo(e))
874
+ return Et && Et.call(e, function(R) {
875
+ k.push(f(R, e));
876
+ }), wt("Set", Re.call(e), k, p);
877
+ }
878
+ if (Kn(e))
879
+ return xe("WeakMap");
880
+ if (Jn(e))
881
+ return xe("WeakSet");
882
+ if (Yn(e))
883
+ return xe("WeakRef");
884
+ if (jn(e))
902
885
  return ie(f(Number(e)));
903
- if (ro(e))
904
- return ie(f(et.call(e)));
905
- if (to(e))
906
- return ie(kn.call(e));
907
- if (Zn(e))
886
+ if (Wn(e))
887
+ return ie(f(Qe.call(e)));
888
+ if (Xn(e))
889
+ return ie(Dn.call(e));
890
+ if (kn(e))
908
891
  return ie(f(String(e)));
909
892
  if (typeof window < "u" && e === window)
910
893
  return "{ [object Window] }";
911
- if (typeof globalThis < "u" && e === globalThis || typeof Et < "u" && e === Et)
894
+ if (typeof globalThis < "u" && e === globalThis || typeof ht < "u" && e === ht)
912
895
  return "{ [object globalThis] }";
913
- if (!Qn(e) && !Dt(e)) {
914
- var U = ge(e, f), z = wt ? wt(e) === Object.prototype : e instanceof Object || e.constructor === Object, x = e instanceof Object ? "" : "null prototype", T = !z && ue && Object(e) === e && ue in e ? ut.call(j(e), 8, -1) : x ? "Object" : "", K = z || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", G = K + (T || x ? "[" + $.call(bt.call([], T || [], x || []), ": ") + "] " : "");
915
- return U.length === 0 ? G + "{}" : p ? G + "{" + ot(U, p) + "}" : G + "{ " + $.call(U, ", ") + " }";
896
+ if (!Bn(e) && !Tt(e)) {
897
+ var U = ge(e, f), z = Pt ? Pt(e) === Object.prototype : e instanceof Object || e.constructor === Object, F = e instanceof Object ? "" : "null prototype", w = !z && ue && Object(e) === e && ue in e ? it.call(H(e), 8, -1) : F ? "Object" : "", K = z || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", G = K + (w || F ? "[" + $.call(At.call([], w || [], F || []), ": ") + "] " : "");
898
+ return U.length === 0 ? G + "{}" : p ? G + "{" + tt(U, p) + "}" : G + "{ " + $.call(U, ", ") + " }";
916
899
  }
917
900
  return String(e);
918
901
  };
919
- function nr(t, e, r) {
920
- var n = r.quoteStyle || e, o = rr[n];
902
+ function Jt(t, e, r) {
903
+ var n = r.quoteStyle || e, o = Qt[n];
921
904
  return o + t + o;
922
905
  }
923
- function Yn(t) {
906
+ function Gn(t) {
924
907
  return B.call(String(t), /"/g, "&quot;");
925
908
  }
926
909
  function q(t) {
927
910
  return !ue || !(typeof t == "object" && (ue in t || typeof t[ue] < "u"));
928
911
  }
929
- function nt(t) {
930
- return j(t) === "[object Array]" && q(t);
912
+ function et(t) {
913
+ return H(t) === "[object Array]" && q(t);
931
914
  }
932
- function Qn(t) {
933
- return j(t) === "[object Date]" && q(t);
915
+ function Bn(t) {
916
+ return H(t) === "[object Date]" && q(t);
934
917
  }
935
- function Dt(t) {
936
- return j(t) === "[object RegExp]" && q(t);
918
+ function Tt(t) {
919
+ return H(t) === "[object RegExp]" && q(t);
937
920
  }
938
- function Jn(t) {
939
- return j(t) === "[object Error]" && q(t);
921
+ function Hn(t) {
922
+ return H(t) === "[object Error]" && q(t);
940
923
  }
941
- function Zn(t) {
942
- return j(t) === "[object String]" && q(t);
924
+ function kn(t) {
925
+ return H(t) === "[object String]" && q(t);
943
926
  }
944
- function eo(t) {
945
- return j(t) === "[object Number]" && q(t);
927
+ function jn(t) {
928
+ return H(t) === "[object Number]" && q(t);
946
929
  }
947
- function to(t) {
948
- return j(t) === "[object Boolean]" && q(t);
930
+ function Xn(t) {
931
+ return H(t) === "[object Boolean]" && q(t);
949
932
  }
950
- function or(t) {
933
+ function Zt(t) {
951
934
  if (ee)
952
935
  return t && typeof t == "object" && t instanceof Symbol;
953
936
  if (typeof t == "symbol")
954
937
  return !0;
955
- if (!t || typeof t != "object" || !tt)
938
+ if (!t || typeof t != "object" || !Je)
956
939
  return !1;
957
940
  try {
958
- return tt.call(t), !0;
941
+ return Je.call(t), !0;
959
942
  } catch {
960
943
  }
961
944
  return !1;
962
945
  }
963
- function ro(t) {
964
- if (!t || typeof t != "object" || !et)
946
+ function Wn(t) {
947
+ if (!t || typeof t != "object" || !Qe)
965
948
  return !1;
966
949
  try {
967
- return et.call(t), !0;
950
+ return Qe.call(t), !0;
968
951
  } catch {
969
952
  }
970
953
  return !1;
971
954
  }
972
- var no = Object.prototype.hasOwnProperty || function(t) {
955
+ var Vn = Object.prototype.hasOwnProperty || function(t) {
973
956
  return t in this;
974
957
  };
975
- function L(t, e) {
976
- return no.call(t, e);
958
+ function M(t, e) {
959
+ return Vn.call(t, e);
977
960
  }
978
- function j(t) {
979
- return Xn.call(t);
961
+ function H(t) {
962
+ return $n.call(t);
980
963
  }
981
- function oo(t) {
964
+ function qn(t) {
982
965
  if (t.name)
983
966
  return t.name;
984
- var e = Vn.call(Wn.call(t), /^function\s*([\w$]+)/);
967
+ var e = xn.call(Fn.call(t), /^function\s*([\w$]+)/);
985
968
  return e ? e[1] : null;
986
969
  }
987
- function ar(t, e) {
970
+ function er(t, e) {
988
971
  if (t.indexOf)
989
972
  return t.indexOf(e);
990
973
  for (var r = 0, n = t.length; r < n; r++)
@@ -992,11 +975,11 @@ function ar(t, e) {
992
975
  return r;
993
976
  return -1;
994
977
  }
995
- function ao(t) {
996
- if (!Oe || !t || typeof t != "object")
978
+ function zn(t) {
979
+ if (!Ae || !t || typeof t != "object")
997
980
  return !1;
998
981
  try {
999
- Oe.call(t);
982
+ Ae.call(t);
1000
983
  try {
1001
984
  Re.call(t);
1002
985
  } catch {
@@ -1007,7 +990,7 @@ function ao(t) {
1007
990
  }
1008
991
  return !1;
1009
992
  }
1010
- function io(t) {
993
+ function Kn(t) {
1011
994
  if (!le || !t || typeof t != "object")
1012
995
  return !1;
1013
996
  try {
@@ -1022,22 +1005,22 @@ function io(t) {
1022
1005
  }
1023
1006
  return !1;
1024
1007
  }
1025
- function lo(t) {
1026
- if (!Rt || !t || typeof t != "object")
1008
+ function Yn(t) {
1009
+ if (!_t || !t || typeof t != "object")
1027
1010
  return !1;
1028
1011
  try {
1029
- return Rt.call(t), !0;
1012
+ return _t.call(t), !0;
1030
1013
  } catch {
1031
1014
  }
1032
1015
  return !1;
1033
1016
  }
1034
- function co(t) {
1017
+ function Qn(t) {
1035
1018
  if (!Re || !t || typeof t != "object")
1036
1019
  return !1;
1037
1020
  try {
1038
1021
  Re.call(t);
1039
1022
  try {
1040
- Oe.call(t);
1023
+ Ae.call(t);
1041
1024
  } catch {
1042
1025
  return !0;
1043
1026
  }
@@ -1046,7 +1029,7 @@ function co(t) {
1046
1029
  }
1047
1030
  return !1;
1048
1031
  }
1049
- function uo(t) {
1032
+ function Jn(t) {
1050
1033
  if (!ce || !t || typeof t != "object")
1051
1034
  return !1;
1052
1035
  try {
@@ -1061,20 +1044,20 @@ function uo(t) {
1061
1044
  }
1062
1045
  return !1;
1063
1046
  }
1064
- function fo(t) {
1047
+ function Zn(t) {
1065
1048
  return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
1066
1049
  }
1067
- function ir(t, e) {
1050
+ function tr(t, e) {
1068
1051
  if (t.length > e.maxStringLength) {
1069
1052
  var r = t.length - e.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : "");
1070
- return ir(ut.call(t, 0, e.maxStringLength), e) + n;
1053
+ return tr(it.call(t, 0, e.maxStringLength), e) + n;
1071
1054
  }
1072
- var o = Kn[e.quoteStyle || "single"];
1055
+ var o = Un[e.quoteStyle || "single"];
1073
1056
  o.lastIndex = 0;
1074
- var a = B.call(B.call(t, o, "\\$1"), /[\x00-\x1f]/g, so);
1075
- return nr(a, "single", e);
1057
+ var a = B.call(B.call(t, o, "\\$1"), /[\x00-\x1f]/g, eo);
1058
+ return Jt(a, "single", e);
1076
1059
  }
1077
- function so(t) {
1060
+ function eo(t) {
1078
1061
  var e = t.charCodeAt(0), r = {
1079
1062
  8: "b",
1080
1063
  9: "t",
@@ -1082,26 +1065,26 @@ function so(t) {
1082
1065
  12: "f",
1083
1066
  13: "r"
1084
1067
  }[e];
1085
- return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + qn.call(e.toString(16));
1068
+ return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + Ln.call(e.toString(16));
1086
1069
  }
1087
1070
  function ie(t) {
1088
1071
  return "Object(" + t + ")";
1089
1072
  }
1090
- function Ue(t) {
1073
+ function xe(t) {
1091
1074
  return t + " { ? }";
1092
1075
  }
1093
- function $t(t, e, r, n) {
1094
- var o = n ? ot(r, n) : $.call(r, ", ");
1076
+ function wt(t, e, r, n) {
1077
+ var o = n ? tt(r, n) : $.call(r, ", ");
1095
1078
  return t + " (" + e + ") {" + o + "}";
1096
1079
  }
1097
- function po(t) {
1080
+ function to(t) {
1098
1081
  for (var e = 0; e < t.length; e++)
1099
- if (ar(t[e], `
1082
+ if (er(t[e], `
1100
1083
  `) >= 0)
1101
1084
  return !1;
1102
1085
  return !0;
1103
1086
  }
1104
- function yo(t, e) {
1087
+ function ro(t, e) {
1105
1088
  var r;
1106
1089
  if (t.indent === " ")
1107
1090
  r = " ";
@@ -1114,7 +1097,7 @@ function yo(t, e) {
1114
1097
  prev: $.call(Array(e + 1), r)
1115
1098
  };
1116
1099
  }
1117
- function ot(t, e) {
1100
+ function tt(t, e) {
1118
1101
  if (t.length === 0)
1119
1102
  return "";
1120
1103
  var r = `
@@ -1123,37 +1106,37 @@ function ot(t, e) {
1123
1106
  ` + e.prev;
1124
1107
  }
1125
1108
  function ge(t, e) {
1126
- var r = nt(t), n = [];
1109
+ var r = et(t), n = [];
1127
1110
  if (r) {
1128
1111
  n.length = t.length;
1129
1112
  for (var o = 0; o < t.length; o++)
1130
- n[o] = L(t, o) ? e(t[o], t) : "";
1113
+ n[o] = M(t, o) ? e(t[o], t) : "";
1131
1114
  }
1132
- var a = typeof Le == "function" ? Le(t) : [], i;
1115
+ var a = typeof Fe == "function" ? Fe(t) : [], i;
1133
1116
  if (ee) {
1134
1117
  i = {};
1135
1118
  for (var l = 0; l < a.length; l++)
1136
1119
  i["$" + a[l]] = a[l];
1137
1120
  }
1138
1121
  for (var c in t)
1139
- L(t, c) && (r && String(Number(c)) === c && c < t.length || ee && i["$" + c] instanceof Symbol || (er.call(/[^\w$]/, c) ? n.push(e(c, t) + ": " + e(t[c], t)) : n.push(c + ": " + e(t[c], t))));
1140
- if (typeof Le == "function")
1122
+ M(t, c) && (r && String(Number(c)) === c && c < t.length || ee && i["$" + c] instanceof Symbol || (Kt.call(/[^\w$]/, c) ? n.push(e(c, t) + ": " + e(t[c], t)) : n.push(c + ": " + e(t[c], t))));
1123
+ if (typeof Fe == "function")
1141
1124
  for (var s = 0; s < a.length; s++)
1142
- tr.call(t, a[s]) && n.push("[" + e(a[s]) + "]: " + e(t[a[s]], t));
1125
+ Yt.call(t, a[s]) && n.push("[" + e(a[s]) + "]: " + e(t[a[s]], t));
1143
1126
  return n;
1144
1127
  }
1145
- var vo = we, ho = re, Te = function(t, e, r) {
1128
+ var no = be, oo = re, Ie = function(t, e, r) {
1146
1129
  for (var n = t, o; (o = n.next) != null; n = o)
1147
1130
  if (o.key === e)
1148
1131
  return n.next = o.next, r || (o.next = /** @type {NonNullable<typeof list.next>} */
1149
1132
  t.next, t.next = o), o;
1150
- }, go = function(t, e) {
1133
+ }, ao = function(t, e) {
1151
1134
  if (t) {
1152
- var r = Te(t, e);
1135
+ var r = Ie(t, e);
1153
1136
  return r && r.value;
1154
1137
  }
1155
- }, mo = function(t, e, r) {
1156
- var n = Te(t, e);
1138
+ }, io = function(t, e, r) {
1139
+ var n = Ie(t, e);
1157
1140
  n ? n.value = r : t.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
1158
1141
  {
1159
1142
  // eslint-disable-line no-param-reassign, no-extra-parens
@@ -1161,31 +1144,31 @@ var vo = we, ho = re, Te = function(t, e, r) {
1161
1144
  next: t.next,
1162
1145
  value: r
1163
1146
  };
1164
- }, _o = function(t, e) {
1165
- return t ? !!Te(t, e) : !1;
1166
- }, Eo = function(t, e) {
1147
+ }, lo = function(t, e) {
1148
+ return t ? !!Ie(t, e) : !1;
1149
+ }, co = function(t, e) {
1167
1150
  if (t)
1168
- return Te(t, e, !0);
1169
- }, So = function() {
1151
+ return Ie(t, e, !0);
1152
+ }, uo = function() {
1170
1153
  var e, r = {
1171
1154
  assert: function(n) {
1172
1155
  if (!r.has(n))
1173
- throw new ho("Side channel does not contain " + vo(n));
1156
+ throw new oo("Side channel does not contain " + no(n));
1174
1157
  },
1175
1158
  delete: function(n) {
1176
- var o = e && e.next, a = Eo(e, n);
1159
+ var o = e && e.next, a = co(e, n);
1177
1160
  return a && o && o === a && (e = void 0), !!a;
1178
1161
  },
1179
1162
  get: function(n) {
1180
- return go(e, n);
1163
+ return ao(e, n);
1181
1164
  },
1182
1165
  has: function(n) {
1183
- return _o(e, n);
1166
+ return lo(e, n);
1184
1167
  },
1185
1168
  set: function(n, o) {
1186
1169
  e || (e = {
1187
1170
  next: void 0
1188
- }), mo(
1171
+ }), io(
1189
1172
  /** @type {NonNullable<typeof $o>} */
1190
1173
  e,
1191
1174
  n,
@@ -1194,27 +1177,27 @@ var vo = we, ho = re, Te = function(t, e, r) {
1194
1177
  }
1195
1178
  };
1196
1179
  return r;
1197
- }, lr = Object, Ao = Error, Oo = EvalError, Ro = RangeError, Po = ReferenceError, bo = SyntaxError, Io = URIError, wo = Math.abs, To = Math.floor, Co = Math.max, No = Math.min, Do = Math.pow, $o = Math.round, xo = Number.isNaN || function(e) {
1180
+ }, rr = Object, fo = Error, so = EvalError, po = RangeError, yo = ReferenceError, vo = SyntaxError, ho = URIError, go = Math.abs, mo = Math.floor, Eo = Math.max, _o = Math.min, So = Math.pow, Ao = Math.round, Ro = Number.isNaN || function(e) {
1198
1181
  return e !== e;
1199
- }, Mo = xo, Fo = function(e) {
1200
- return Mo(e) || e === 0 ? e : e < 0 ? -1 : 1;
1201
- }, Lo = Object.getOwnPropertyDescriptor, _e = Lo;
1202
- if (_e)
1182
+ }, Po = Ro, Oo = function(e) {
1183
+ return Po(e) || e === 0 ? e : e < 0 ? -1 : 1;
1184
+ }, bo = Object.getOwnPropertyDescriptor, Ee = bo;
1185
+ if (Ee)
1203
1186
  try {
1204
- _e([], "length");
1187
+ Ee([], "length");
1205
1188
  } catch {
1206
- _e = null;
1189
+ Ee = null;
1207
1190
  }
1208
- var cr = _e, Ee = Object.defineProperty || !1;
1209
- if (Ee)
1191
+ var nr = Ee, _e = Object.defineProperty || !1;
1192
+ if (_e)
1210
1193
  try {
1211
- Ee({}, "a", { value: 1 });
1194
+ _e({}, "a", { value: 1 });
1212
1195
  } catch {
1213
- Ee = !1;
1196
+ _e = !1;
1214
1197
  }
1215
- var Uo = Ee, Ge, xt;
1216
- function Go() {
1217
- return xt || (xt = 1, Ge = function() {
1198
+ var Io = _e, Le, Ct;
1199
+ function To() {
1200
+ return Ct || (Ct = 1, Le = function() {
1218
1201
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
1219
1202
  return !1;
1220
1203
  if (typeof Symbol.iterator == "symbol")
@@ -1240,79 +1223,79 @@ function Go() {
1240
1223
  return !1;
1241
1224
  }
1242
1225
  return !0;
1243
- }), Ge;
1226
+ }), Le;
1244
1227
  }
1245
- var Be, Mt;
1246
- function Bo() {
1247
- if (Mt) return Be;
1248
- Mt = 1;
1249
- var t = typeof Symbol < "u" && Symbol, e = Go();
1250
- return Be = function() {
1228
+ var Me, Nt;
1229
+ function wo() {
1230
+ if (Nt) return Me;
1231
+ Nt = 1;
1232
+ var t = typeof Symbol < "u" && Symbol, e = To();
1233
+ return Me = function() {
1251
1234
  return typeof t != "function" || typeof Symbol != "function" || typeof t("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
1252
- }, Be;
1235
+ }, Me;
1253
1236
  }
1254
- var He, Ft;
1255
- function ur() {
1256
- return Ft || (Ft = 1, He = typeof Reflect < "u" && Reflect.getPrototypeOf || null), He;
1237
+ var Ue, Dt;
1238
+ function or() {
1239
+ return Dt || (Dt = 1, Ue = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Ue;
1257
1240
  }
1258
- var je, Lt;
1259
- function fr() {
1260
- if (Lt) return je;
1261
- Lt = 1;
1262
- var t = lr;
1263
- return je = t.getPrototypeOf || null, je;
1241
+ var Ge, $t;
1242
+ function ar() {
1243
+ if ($t) return Ge;
1244
+ $t = 1;
1245
+ var t = rr;
1246
+ return Ge = t.getPrototypeOf || null, Ge;
1264
1247
  }
1265
- var Ho = "Function.prototype.bind called on incompatible ", jo = Object.prototype.toString, ko = Math.max, Xo = "[object Function]", Ut = function(e, r) {
1248
+ var Co = "Function.prototype.bind called on incompatible ", No = Object.prototype.toString, Do = Math.max, $o = "[object Function]", Ft = function(e, r) {
1266
1249
  for (var n = [], o = 0; o < e.length; o += 1)
1267
1250
  n[o] = e[o];
1268
1251
  for (var a = 0; a < r.length; a += 1)
1269
1252
  n[a + e.length] = r[a];
1270
1253
  return n;
1271
- }, Wo = function(e, r) {
1254
+ }, Fo = function(e, r) {
1272
1255
  for (var n = [], o = r, a = 0; o < e.length; o += 1, a += 1)
1273
1256
  n[a] = e[o];
1274
1257
  return n;
1275
- }, Vo = function(t, e) {
1258
+ }, xo = function(t, e) {
1276
1259
  for (var r = "", n = 0; n < t.length; n += 1)
1277
1260
  r += t[n], n + 1 < t.length && (r += e);
1278
1261
  return r;
1279
- }, qo = function(e) {
1262
+ }, Lo = function(e) {
1280
1263
  var r = this;
1281
- if (typeof r != "function" || jo.apply(r) !== Xo)
1282
- throw new TypeError(Ho + r);
1283
- for (var n = Wo(arguments, 1), o, a = function() {
1264
+ if (typeof r != "function" || No.apply(r) !== $o)
1265
+ throw new TypeError(Co + r);
1266
+ for (var n = Fo(arguments, 1), o, a = function() {
1284
1267
  if (this instanceof o) {
1285
1268
  var u = r.apply(
1286
1269
  this,
1287
- Ut(n, arguments)
1270
+ Ft(n, arguments)
1288
1271
  );
1289
1272
  return Object(u) === u ? u : this;
1290
1273
  }
1291
1274
  return r.apply(
1292
1275
  e,
1293
- Ut(n, arguments)
1276
+ Ft(n, arguments)
1294
1277
  );
1295
- }, i = ko(0, r.length - n.length), l = [], c = 0; c < i; c++)
1278
+ }, i = Do(0, r.length - n.length), l = [], c = 0; c < i; c++)
1296
1279
  l[c] = "$" + c;
1297
- if (o = Function("binder", "return function (" + Vo(l, ",") + "){ return binder.apply(this,arguments); }")(a), r.prototype) {
1280
+ if (o = Function("binder", "return function (" + xo(l, ",") + "){ return binder.apply(this,arguments); }")(a), r.prototype) {
1298
1281
  var s = function() {
1299
1282
  };
1300
1283
  s.prototype = r.prototype, o.prototype = new s(), s.prototype = null;
1301
1284
  }
1302
1285
  return o;
1303
- }, zo = qo, Ce = Function.prototype.bind || zo, ft = Function.prototype.call, ke, Gt;
1304
- function sr() {
1305
- return Gt || (Gt = 1, ke = Function.prototype.apply), ke;
1286
+ }, Mo = Lo, Te = Function.prototype.bind || Mo, lt = Function.prototype.call, Be, xt;
1287
+ function ir() {
1288
+ return xt || (xt = 1, Be = Function.prototype.apply), Be;
1306
1289
  }
1307
- var Ko = typeof Reflect < "u" && Reflect && Reflect.apply, Yo = Ce, Qo = sr(), Jo = ft, Zo = Ko, ea = Zo || Yo.call(Jo, Qo), ta = Ce, ra = re, na = ft, oa = ea, pr = function(e) {
1290
+ var Uo = typeof Reflect < "u" && Reflect && Reflect.apply, Go = Te, Bo = ir(), Ho = lt, ko = Uo, jo = ko || Go.call(Ho, Bo), Xo = Te, Wo = re, Vo = lt, qo = jo, lr = function(e) {
1308
1291
  if (e.length < 1 || typeof e[0] != "function")
1309
- throw new ra("a function is required");
1310
- return oa(ta, na, e);
1311
- }, Xe, Bt;
1312
- function aa() {
1313
- if (Bt) return Xe;
1314
- Bt = 1;
1315
- var t = pr, e = cr, r;
1292
+ throw new Wo("a function is required");
1293
+ return qo(Xo, Vo, e);
1294
+ }, He, Lt;
1295
+ function zo() {
1296
+ if (Lt) return He;
1297
+ Lt = 1;
1298
+ var t = lr, e = nr, r;
1316
1299
  try {
1317
1300
  r = /** @type {{ __proto__?: typeof Array.prototype }} */
1318
1301
  [].__proto__ === Array.prototype;
@@ -1325,19 +1308,19 @@ function aa() {
1325
1308
  /** @type {keyof typeof Object.prototype} */
1326
1309
  "__proto__"
1327
1310
  ), o = Object, a = o.getPrototypeOf;
1328
- return Xe = n && typeof n.get == "function" ? t([n.get]) : typeof a == "function" ? (
1311
+ return He = n && typeof n.get == "function" ? t([n.get]) : typeof a == "function" ? (
1329
1312
  /** @type {import('./get')} */
1330
1313
  function(l) {
1331
1314
  return a(l == null ? l : o(l));
1332
1315
  }
1333
- ) : !1, Xe;
1316
+ ) : !1, He;
1334
1317
  }
1335
- var We, Ht;
1336
- function ia() {
1337
- if (Ht) return We;
1338
- Ht = 1;
1339
- var t = ur(), e = fr(), r = aa();
1340
- return We = t ? function(o) {
1318
+ var ke, Mt;
1319
+ function Ko() {
1320
+ if (Mt) return ke;
1321
+ Mt = 1;
1322
+ var t = or(), e = ar(), r = zo();
1323
+ return ke = t ? function(o) {
1341
1324
  return t(o);
1342
1325
  } : e ? function(o) {
1343
1326
  if (!o || typeof o != "object" && typeof o != "function")
@@ -1345,131 +1328,131 @@ function ia() {
1345
1328
  return e(o);
1346
1329
  } : r ? function(o) {
1347
1330
  return r(o);
1348
- } : null, We;
1331
+ } : null, ke;
1349
1332
  }
1350
- var Ve, jt;
1351
- function la() {
1352
- if (jt) return Ve;
1353
- jt = 1;
1354
- var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, r = Ce;
1355
- return Ve = r.call(t, e), Ve;
1333
+ var je, Ut;
1334
+ function Yo() {
1335
+ if (Ut) return je;
1336
+ Ut = 1;
1337
+ var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, r = Te;
1338
+ return je = r.call(t, e), je;
1356
1339
  }
1357
- var v, ca = lr, ua = Ao, fa = Oo, sa = Ro, pa = Po, te = bo, Z = re, ya = Io, da = wo, va = To, ha = Co, ga = No, ma = Do, _a = $o, Ea = Fo, yr = Function, qe = function(t) {
1340
+ var d, Qo = rr, Jo = fo, Zo = so, ea = po, ta = yo, te = vo, Z = re, ra = ho, na = go, oa = mo, aa = Eo, ia = _o, la = So, ca = Ao, ua = Oo, cr = Function, Xe = function(t) {
1358
1341
  try {
1359
- return yr('"use strict"; return (' + t + ").constructor;")();
1342
+ return cr('"use strict"; return (' + t + ").constructor;")();
1360
1343
  } catch {
1361
1344
  }
1362
- }, se = cr, Sa = Uo, ze = function() {
1345
+ }, se = nr, fa = Io, We = function() {
1363
1346
  throw new Z();
1364
- }, Aa = se ? function() {
1347
+ }, sa = se ? function() {
1365
1348
  try {
1366
- return arguments.callee, ze;
1349
+ return arguments.callee, We;
1367
1350
  } catch {
1368
1351
  try {
1369
1352
  return se(arguments, "callee").get;
1370
1353
  } catch {
1371
- return ze;
1354
+ return We;
1372
1355
  }
1373
1356
  }
1374
- }() : ze, Y = Bo()(), S = ia(), Oa = fr(), Ra = ur(), dr = sr(), pe = ft, J = {}, Pa = typeof Uint8Array > "u" || !S ? v : S(Uint8Array), V = {
1357
+ }() : We, Y = wo()(), S = Ko(), pa = ar(), ya = or(), ur = ir(), pe = lt, J = {}, da = typeof Uint8Array > "u" || !S ? d : S(Uint8Array), W = {
1375
1358
  __proto__: null,
1376
- "%AggregateError%": typeof AggregateError > "u" ? v : AggregateError,
1359
+ "%AggregateError%": typeof AggregateError > "u" ? d : AggregateError,
1377
1360
  "%Array%": Array,
1378
- "%ArrayBuffer%": typeof ArrayBuffer > "u" ? v : ArrayBuffer,
1379
- "%ArrayIteratorPrototype%": Y && S ? S([][Symbol.iterator]()) : v,
1380
- "%AsyncFromSyncIteratorPrototype%": v,
1361
+ "%ArrayBuffer%": typeof ArrayBuffer > "u" ? d : ArrayBuffer,
1362
+ "%ArrayIteratorPrototype%": Y && S ? S([][Symbol.iterator]()) : d,
1363
+ "%AsyncFromSyncIteratorPrototype%": d,
1381
1364
  "%AsyncFunction%": J,
1382
1365
  "%AsyncGenerator%": J,
1383
1366
  "%AsyncGeneratorFunction%": J,
1384
1367
  "%AsyncIteratorPrototype%": J,
1385
- "%Atomics%": typeof Atomics > "u" ? v : Atomics,
1386
- "%BigInt%": typeof BigInt > "u" ? v : BigInt,
1387
- "%BigInt64Array%": typeof BigInt64Array > "u" ? v : BigInt64Array,
1388
- "%BigUint64Array%": typeof BigUint64Array > "u" ? v : BigUint64Array,
1368
+ "%Atomics%": typeof Atomics > "u" ? d : Atomics,
1369
+ "%BigInt%": typeof BigInt > "u" ? d : BigInt,
1370
+ "%BigInt64Array%": typeof BigInt64Array > "u" ? d : BigInt64Array,
1371
+ "%BigUint64Array%": typeof BigUint64Array > "u" ? d : BigUint64Array,
1389
1372
  "%Boolean%": Boolean,
1390
- "%DataView%": typeof DataView > "u" ? v : DataView,
1373
+ "%DataView%": typeof DataView > "u" ? d : DataView,
1391
1374
  "%Date%": Date,
1392
1375
  "%decodeURI%": decodeURI,
1393
1376
  "%decodeURIComponent%": decodeURIComponent,
1394
1377
  "%encodeURI%": encodeURI,
1395
1378
  "%encodeURIComponent%": encodeURIComponent,
1396
- "%Error%": ua,
1379
+ "%Error%": Jo,
1397
1380
  "%eval%": eval,
1398
1381
  // eslint-disable-line no-eval
1399
- "%EvalError%": fa,
1400
- "%Float16Array%": typeof Float16Array > "u" ? v : Float16Array,
1401
- "%Float32Array%": typeof Float32Array > "u" ? v : Float32Array,
1402
- "%Float64Array%": typeof Float64Array > "u" ? v : Float64Array,
1403
- "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? v : FinalizationRegistry,
1404
- "%Function%": yr,
1382
+ "%EvalError%": Zo,
1383
+ "%Float16Array%": typeof Float16Array > "u" ? d : Float16Array,
1384
+ "%Float32Array%": typeof Float32Array > "u" ? d : Float32Array,
1385
+ "%Float64Array%": typeof Float64Array > "u" ? d : Float64Array,
1386
+ "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? d : FinalizationRegistry,
1387
+ "%Function%": cr,
1405
1388
  "%GeneratorFunction%": J,
1406
- "%Int8Array%": typeof Int8Array > "u" ? v : Int8Array,
1407
- "%Int16Array%": typeof Int16Array > "u" ? v : Int16Array,
1408
- "%Int32Array%": typeof Int32Array > "u" ? v : Int32Array,
1389
+ "%Int8Array%": typeof Int8Array > "u" ? d : Int8Array,
1390
+ "%Int16Array%": typeof Int16Array > "u" ? d : Int16Array,
1391
+ "%Int32Array%": typeof Int32Array > "u" ? d : Int32Array,
1409
1392
  "%isFinite%": isFinite,
1410
1393
  "%isNaN%": isNaN,
1411
- "%IteratorPrototype%": Y && S ? S(S([][Symbol.iterator]())) : v,
1412
- "%JSON%": typeof JSON == "object" ? JSON : v,
1413
- "%Map%": typeof Map > "u" ? v : Map,
1414
- "%MapIteratorPrototype%": typeof Map > "u" || !Y || !S ? v : S((/* @__PURE__ */ new Map())[Symbol.iterator]()),
1394
+ "%IteratorPrototype%": Y && S ? S(S([][Symbol.iterator]())) : d,
1395
+ "%JSON%": typeof JSON == "object" ? JSON : d,
1396
+ "%Map%": typeof Map > "u" ? d : Map,
1397
+ "%MapIteratorPrototype%": typeof Map > "u" || !Y || !S ? d : S((/* @__PURE__ */ new Map())[Symbol.iterator]()),
1415
1398
  "%Math%": Math,
1416
1399
  "%Number%": Number,
1417
- "%Object%": ca,
1400
+ "%Object%": Qo,
1418
1401
  "%Object.getOwnPropertyDescriptor%": se,
1419
1402
  "%parseFloat%": parseFloat,
1420
1403
  "%parseInt%": parseInt,
1421
- "%Promise%": typeof Promise > "u" ? v : Promise,
1422
- "%Proxy%": typeof Proxy > "u" ? v : Proxy,
1423
- "%RangeError%": sa,
1424
- "%ReferenceError%": pa,
1425
- "%Reflect%": typeof Reflect > "u" ? v : Reflect,
1404
+ "%Promise%": typeof Promise > "u" ? d : Promise,
1405
+ "%Proxy%": typeof Proxy > "u" ? d : Proxy,
1406
+ "%RangeError%": ea,
1407
+ "%ReferenceError%": ta,
1408
+ "%Reflect%": typeof Reflect > "u" ? d : Reflect,
1426
1409
  "%RegExp%": RegExp,
1427
- "%Set%": typeof Set > "u" ? v : Set,
1428
- "%SetIteratorPrototype%": typeof Set > "u" || !Y || !S ? v : S((/* @__PURE__ */ new Set())[Symbol.iterator]()),
1429
- "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? v : SharedArrayBuffer,
1410
+ "%Set%": typeof Set > "u" ? d : Set,
1411
+ "%SetIteratorPrototype%": typeof Set > "u" || !Y || !S ? d : S((/* @__PURE__ */ new Set())[Symbol.iterator]()),
1412
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? d : SharedArrayBuffer,
1430
1413
  "%String%": String,
1431
- "%StringIteratorPrototype%": Y && S ? S(""[Symbol.iterator]()) : v,
1432
- "%Symbol%": Y ? Symbol : v,
1414
+ "%StringIteratorPrototype%": Y && S ? S(""[Symbol.iterator]()) : d,
1415
+ "%Symbol%": Y ? Symbol : d,
1433
1416
  "%SyntaxError%": te,
1434
- "%ThrowTypeError%": Aa,
1435
- "%TypedArray%": Pa,
1417
+ "%ThrowTypeError%": sa,
1418
+ "%TypedArray%": da,
1436
1419
  "%TypeError%": Z,
1437
- "%Uint8Array%": typeof Uint8Array > "u" ? v : Uint8Array,
1438
- "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? v : Uint8ClampedArray,
1439
- "%Uint16Array%": typeof Uint16Array > "u" ? v : Uint16Array,
1440
- "%Uint32Array%": typeof Uint32Array > "u" ? v : Uint32Array,
1441
- "%URIError%": ya,
1442
- "%WeakMap%": typeof WeakMap > "u" ? v : WeakMap,
1443
- "%WeakRef%": typeof WeakRef > "u" ? v : WeakRef,
1444
- "%WeakSet%": typeof WeakSet > "u" ? v : WeakSet,
1420
+ "%Uint8Array%": typeof Uint8Array > "u" ? d : Uint8Array,
1421
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? d : Uint8ClampedArray,
1422
+ "%Uint16Array%": typeof Uint16Array > "u" ? d : Uint16Array,
1423
+ "%Uint32Array%": typeof Uint32Array > "u" ? d : Uint32Array,
1424
+ "%URIError%": ra,
1425
+ "%WeakMap%": typeof WeakMap > "u" ? d : WeakMap,
1426
+ "%WeakRef%": typeof WeakRef > "u" ? d : WeakRef,
1427
+ "%WeakSet%": typeof WeakSet > "u" ? d : WeakSet,
1445
1428
  "%Function.prototype.call%": pe,
1446
- "%Function.prototype.apply%": dr,
1447
- "%Object.defineProperty%": Sa,
1448
- "%Object.getPrototypeOf%": Oa,
1449
- "%Math.abs%": da,
1450
- "%Math.floor%": va,
1451
- "%Math.max%": ha,
1452
- "%Math.min%": ga,
1453
- "%Math.pow%": ma,
1454
- "%Math.round%": _a,
1455
- "%Math.sign%": Ea,
1456
- "%Reflect.getPrototypeOf%": Ra
1429
+ "%Function.prototype.apply%": ur,
1430
+ "%Object.defineProperty%": fa,
1431
+ "%Object.getPrototypeOf%": pa,
1432
+ "%Math.abs%": na,
1433
+ "%Math.floor%": oa,
1434
+ "%Math.max%": aa,
1435
+ "%Math.min%": ia,
1436
+ "%Math.pow%": la,
1437
+ "%Math.round%": ca,
1438
+ "%Math.sign%": ua,
1439
+ "%Reflect.getPrototypeOf%": ya
1457
1440
  };
1458
1441
  if (S)
1459
1442
  try {
1460
1443
  null.error;
1461
1444
  } catch (t) {
1462
- var ba = S(S(t));
1463
- V["%Error.prototype%"] = ba;
1445
+ var va = S(S(t));
1446
+ W["%Error.prototype%"] = va;
1464
1447
  }
1465
- var Ia = function t(e) {
1448
+ var ha = function t(e) {
1466
1449
  var r;
1467
1450
  if (e === "%AsyncFunction%")
1468
- r = qe("async function () {}");
1451
+ r = Xe("async function () {}");
1469
1452
  else if (e === "%GeneratorFunction%")
1470
- r = qe("function* () {}");
1453
+ r = Xe("function* () {}");
1471
1454
  else if (e === "%AsyncGeneratorFunction%")
1472
- r = qe("async function* () {}");
1455
+ r = Xe("async function* () {}");
1473
1456
  else if (e === "%AsyncGenerator%") {
1474
1457
  var n = t("%AsyncGeneratorFunction%");
1475
1458
  n && (r = n.prototype);
@@ -1477,8 +1460,8 @@ var Ia = function t(e) {
1477
1460
  var o = t("%AsyncGenerator%");
1478
1461
  o && S && (r = S(o.prototype));
1479
1462
  }
1480
- return V[e] = r, r;
1481
- }, kt = {
1463
+ return W[e] = r, r;
1464
+ }, Gt = {
1482
1465
  __proto__: null,
1483
1466
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
1484
1467
  "%ArrayPrototype%": ["Array", "prototype"],
@@ -1531,21 +1514,21 @@ var Ia = function t(e) {
1531
1514
  "%URIErrorPrototype%": ["URIError", "prototype"],
1532
1515
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
1533
1516
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
1534
- }, ye = Ce, Pe = la(), wa = ye.call(pe, Array.prototype.concat), Ta = ye.call(dr, Array.prototype.splice), Xt = ye.call(pe, String.prototype.replace), be = ye.call(pe, String.prototype.slice), Ca = ye.call(pe, RegExp.prototype.exec), Na = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Da = /\\(\\)?/g, $a = function(e) {
1535
- var r = be(e, 0, 1), n = be(e, -1);
1517
+ }, ye = Te, Pe = Yo(), ga = ye.call(pe, Array.prototype.concat), ma = ye.call(ur, Array.prototype.splice), Bt = ye.call(pe, String.prototype.replace), Oe = ye.call(pe, String.prototype.slice), Ea = ye.call(pe, RegExp.prototype.exec), _a = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Sa = /\\(\\)?/g, Aa = function(e) {
1518
+ var r = Oe(e, 0, 1), n = Oe(e, -1);
1536
1519
  if (r === "%" && n !== "%")
1537
1520
  throw new te("invalid intrinsic syntax, expected closing `%`");
1538
1521
  if (n === "%" && r !== "%")
1539
1522
  throw new te("invalid intrinsic syntax, expected opening `%`");
1540
1523
  var o = [];
1541
- return Xt(e, Na, function(a, i, l, c) {
1542
- o[o.length] = l ? Xt(c, Da, "$1") : i || a;
1524
+ return Bt(e, _a, function(a, i, l, c) {
1525
+ o[o.length] = l ? Bt(c, Sa, "$1") : i || a;
1543
1526
  }), o;
1544
- }, xa = function(e, r) {
1527
+ }, Ra = function(e, r) {
1545
1528
  var n = e, o;
1546
- if (Pe(kt, n) && (o = kt[n], n = "%" + o[0] + "%"), Pe(V, n)) {
1547
- var a = V[n];
1548
- if (a === J && (a = Ia(n)), typeof a > "u" && !r)
1529
+ if (Pe(Gt, n) && (o = Gt[n], n = "%" + o[0] + "%"), Pe(W, n)) {
1530
+ var a = W[n];
1531
+ if (a === J && (a = ha(n)), typeof a > "u" && !r)
1549
1532
  throw new Z("intrinsic " + e + " exists, but is not available. Please file an issue!");
1550
1533
  return {
1551
1534
  alias: o,
@@ -1554,21 +1537,21 @@ var Ia = function t(e) {
1554
1537
  };
1555
1538
  }
1556
1539
  throw new te("intrinsic " + e + " does not exist!");
1557
- }, st = function(e, r) {
1540
+ }, ct = function(e, r) {
1558
1541
  if (typeof e != "string" || e.length === 0)
1559
1542
  throw new Z("intrinsic name must be a non-empty string");
1560
1543
  if (arguments.length > 1 && typeof r != "boolean")
1561
1544
  throw new Z('"allowMissing" argument must be a boolean');
1562
- if (Ca(/^%?[^%]*%?$/, e) === null)
1545
+ if (Ea(/^%?[^%]*%?$/, e) === null)
1563
1546
  throw new te("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
1564
- var n = $a(e), o = n.length > 0 ? n[0] : "", a = xa("%" + o + "%", r), i = a.name, l = a.value, c = !1, s = a.alias;
1565
- s && (o = s[0], Ta(n, wa([0, 1], s)));
1547
+ var n = Aa(e), o = n.length > 0 ? n[0] : "", a = Ra("%" + o + "%", r), i = a.name, l = a.value, c = !1, s = a.alias;
1548
+ s && (o = s[0], ma(n, ga([0, 1], s)));
1566
1549
  for (var u = 1, p = !0; u < n.length; u += 1) {
1567
- var f = n[u], d = be(f, 0, 1), y = be(f, -1);
1568
- if ((d === '"' || d === "'" || d === "`" || y === '"' || y === "'" || y === "`") && d !== y)
1550
+ var f = n[u], v = Oe(f, 0, 1), y = Oe(f, -1);
1551
+ if ((v === '"' || v === "'" || v === "`" || y === '"' || y === "'" || y === "`") && v !== y)
1569
1552
  throw new te("property names with quotes must have matching quotes");
1570
- if ((f === "constructor" || !p) && (c = !0), o += "." + f, i = "%" + o + "%", Pe(V, i))
1571
- l = V[i];
1553
+ if ((f === "constructor" || !p) && (c = !0), o += "." + f, i = "%" + o + "%", Pe(W, i))
1554
+ l = W[i];
1572
1555
  else if (l != null) {
1573
1556
  if (!(f in l)) {
1574
1557
  if (!r)
@@ -1576,82 +1559,82 @@ var Ia = function t(e) {
1576
1559
  return;
1577
1560
  }
1578
1561
  if (se && u + 1 >= n.length) {
1579
- var _ = se(l, f);
1580
- p = !!_, p && "get" in _ && !("originalValue" in _.get) ? l = _.get : l = l[f];
1562
+ var E = se(l, f);
1563
+ p = !!E, p && "get" in E && !("originalValue" in E.get) ? l = E.get : l = l[f];
1581
1564
  } else
1582
1565
  p = Pe(l, f), l = l[f];
1583
- p && !c && (V[i] = l);
1566
+ p && !c && (W[i] = l);
1584
1567
  }
1585
1568
  }
1586
1569
  return l;
1587
- }, vr = st, hr = pr, Ma = hr([vr("%String.prototype.indexOf%")]), gr = function(e, r) {
1570
+ }, fr = ct, sr = lr, Pa = sr([fr("%String.prototype.indexOf%")]), pr = function(e, r) {
1588
1571
  var n = (
1589
1572
  /** @type {(this: unknown, ...args: unknown[]) => unknown} */
1590
- vr(e, !!r)
1573
+ fr(e, !!r)
1591
1574
  );
1592
- return typeof n == "function" && Ma(e, ".prototype.") > -1 ? hr(
1575
+ return typeof n == "function" && Pa(e, ".prototype.") > -1 ? sr(
1593
1576
  /** @type {const} */
1594
1577
  [n]
1595
1578
  ) : n;
1596
- }, Fa = st, de = gr, La = we, Ua = re, Wt = Fa("%Map%", !0), Ga = de("Map.prototype.get", !0), Ba = de("Map.prototype.set", !0), Ha = de("Map.prototype.has", !0), ja = de("Map.prototype.delete", !0), ka = de("Map.prototype.size", !0), mr = !!Wt && /** @type {Exclude<import('.'), false>} */
1579
+ }, Oa = ct, de = pr, ba = be, Ia = re, Ht = Oa("%Map%", !0), Ta = de("Map.prototype.get", !0), wa = de("Map.prototype.set", !0), Ca = de("Map.prototype.has", !0), Na = de("Map.prototype.delete", !0), Da = de("Map.prototype.size", !0), yr = !!Ht && /** @type {Exclude<import('.'), false>} */
1597
1580
  function() {
1598
1581
  var e, r = {
1599
1582
  assert: function(n) {
1600
1583
  if (!r.has(n))
1601
- throw new Ua("Side channel does not contain " + La(n));
1584
+ throw new Ia("Side channel does not contain " + ba(n));
1602
1585
  },
1603
1586
  delete: function(n) {
1604
1587
  if (e) {
1605
- var o = ja(e, n);
1606
- return ka(e) === 0 && (e = void 0), o;
1588
+ var o = Na(e, n);
1589
+ return Da(e) === 0 && (e = void 0), o;
1607
1590
  }
1608
1591
  return !1;
1609
1592
  },
1610
1593
  get: function(n) {
1611
1594
  if (e)
1612
- return Ga(e, n);
1595
+ return Ta(e, n);
1613
1596
  },
1614
1597
  has: function(n) {
1615
- return e ? Ha(e, n) : !1;
1598
+ return e ? Ca(e, n) : !1;
1616
1599
  },
1617
1600
  set: function(n, o) {
1618
- e || (e = new Wt()), Ba(e, n, o);
1601
+ e || (e = new Ht()), wa(e, n, o);
1619
1602
  }
1620
1603
  };
1621
1604
  return r;
1622
- }, Xa = st, Ne = gr, Wa = we, me = mr, Va = re, Q = Xa("%WeakMap%", !0), qa = Ne("WeakMap.prototype.get", !0), za = Ne("WeakMap.prototype.set", !0), Ka = Ne("WeakMap.prototype.has", !0), Ya = Ne("WeakMap.prototype.delete", !0), Qa = Q ? (
1605
+ }, $a = ct, we = pr, Fa = be, me = yr, xa = re, Q = $a("%WeakMap%", !0), La = we("WeakMap.prototype.get", !0), Ma = we("WeakMap.prototype.set", !0), Ua = we("WeakMap.prototype.has", !0), Ga = we("WeakMap.prototype.delete", !0), Ba = Q ? (
1623
1606
  /** @type {Exclude<import('.'), false>} */
1624
1607
  function() {
1625
1608
  var e, r, n = {
1626
1609
  assert: function(o) {
1627
1610
  if (!n.has(o))
1628
- throw new Va("Side channel does not contain " + Wa(o));
1611
+ throw new xa("Side channel does not contain " + Fa(o));
1629
1612
  },
1630
1613
  delete: function(o) {
1631
1614
  if (Q && o && (typeof o == "object" || typeof o == "function")) {
1632
1615
  if (e)
1633
- return Ya(e, o);
1616
+ return Ga(e, o);
1634
1617
  } else if (me && r)
1635
1618
  return r.delete(o);
1636
1619
  return !1;
1637
1620
  },
1638
1621
  get: function(o) {
1639
- return Q && o && (typeof o == "object" || typeof o == "function") && e ? qa(e, o) : r && r.get(o);
1622
+ return Q && o && (typeof o == "object" || typeof o == "function") && e ? La(e, o) : r && r.get(o);
1640
1623
  },
1641
1624
  has: function(o) {
1642
- return Q && o && (typeof o == "object" || typeof o == "function") && e ? Ka(e, o) : !!r && r.has(o);
1625
+ return Q && o && (typeof o == "object" || typeof o == "function") && e ? Ua(e, o) : !!r && r.has(o);
1643
1626
  },
1644
1627
  set: function(o, a) {
1645
- Q && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new Q()), za(e, o, a)) : me && (r || (r = me()), r.set(o, a));
1628
+ Q && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new Q()), Ma(e, o, a)) : me && (r || (r = me()), r.set(o, a));
1646
1629
  }
1647
1630
  };
1648
1631
  return n;
1649
1632
  }
1650
- ) : me, Ja = re, Za = we, ei = So, ti = mr, ri = Qa, ni = ri || ti || ei, _r = function() {
1633
+ ) : me, Ha = re, ka = be, ja = uo, Xa = yr, Wa = Ba, Va = Wa || Xa || ja, qa = function() {
1651
1634
  var e, r = {
1652
1635
  assert: function(n) {
1653
1636
  if (!r.has(n))
1654
- throw new Ja("Side channel does not contain " + Za(n));
1637
+ throw new Ha("Side channel does not contain " + ka(n));
1655
1638
  },
1656
1639
  delete: function(n) {
1657
1640
  return !!e && e.delete(n);
@@ -1663,91 +1646,72 @@ function() {
1663
1646
  return !!e && e.has(n);
1664
1647
  },
1665
1648
  set: function(n, o) {
1666
- e || (e = ni()), e.set(n, o);
1649
+ e || (e = Va()), e.set(n, o);
1667
1650
  }
1668
1651
  };
1669
1652
  return r;
1670
- }, oi = String.prototype.replace, ai = /%20/g, Ke = {
1653
+ }, za = String.prototype.replace, Ka = /%20/g, Ve = {
1671
1654
  RFC1738: "RFC1738",
1672
1655
  RFC3986: "RFC3986"
1673
- }, pt = {
1674
- default: Ke.RFC3986,
1656
+ }, ut = {
1657
+ default: Ve.RFC3986,
1675
1658
  formatters: {
1676
1659
  RFC1738: function(t) {
1677
- return oi.call(t, ai, "+");
1660
+ return za.call(t, Ka, "+");
1678
1661
  },
1679
1662
  RFC3986: function(t) {
1680
1663
  return String(t);
1681
1664
  }
1682
1665
  },
1683
- RFC1738: Ke.RFC1738,
1684
- RFC3986: Ke.RFC3986
1685
- }, ii = pt, li = _r, Ye = Object.prototype.hasOwnProperty, W = Array.isArray, De = li(), Er = function(e, r) {
1686
- return De.set(e, r), e;
1687
- }, Ie = function(e) {
1688
- return De.has(e);
1689
- }, at = function(e) {
1690
- return De.get(e);
1691
- }, Sr = function(e, r) {
1692
- De.set(e, r);
1693
- }, N = function() {
1666
+ RFC1738: Ve.RFC1738,
1667
+ RFC3986: Ve.RFC3986
1668
+ }, Ya = ut, qe = Object.prototype.hasOwnProperty, X = Array.isArray, N = function() {
1694
1669
  for (var t = [], e = 0; e < 256; ++e)
1695
1670
  t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
1696
1671
  return t;
1697
- }(), ci = function(e) {
1672
+ }(), Qa = function(e) {
1698
1673
  for (; e.length > 1; ) {
1699
1674
  var r = e.pop(), n = r.obj[r.prop];
1700
- if (W(n)) {
1675
+ if (X(n)) {
1701
1676
  for (var o = [], a = 0; a < n.length; ++a)
1702
1677
  typeof n[a] < "u" && o.push(n[a]);
1703
1678
  r.obj[r.prop] = o;
1704
1679
  }
1705
1680
  }
1706
- }, yt = function(e, r) {
1681
+ }, dr = function(e, r) {
1707
1682
  for (var n = r && r.plainObjects ? { __proto__: null } : {}, o = 0; o < e.length; ++o)
1708
1683
  typeof e[o] < "u" && (n[o] = e[o]);
1709
1684
  return n;
1710
- }, ui = function t(e, r, n) {
1685
+ }, Ja = function t(e, r, n) {
1711
1686
  if (!r)
1712
1687
  return e;
1713
1688
  if (typeof r != "object" && typeof r != "function") {
1714
- if (W(e))
1689
+ if (X(e))
1715
1690
  e.push(r);
1716
1691
  else if (e && typeof e == "object")
1717
- if (Ie(e)) {
1718
- var o = at(e) + 1;
1719
- e[o] = r, Sr(e, o);
1720
- } else (n && (n.plainObjects || n.allowPrototypes) || !Ye.call(Object.prototype, r)) && (e[r] = !0);
1692
+ (n && (n.plainObjects || n.allowPrototypes) || !qe.call(Object.prototype, r)) && (e[r] = !0);
1721
1693
  else
1722
1694
  return [e, r];
1723
1695
  return e;
1724
1696
  }
1725
- if (!e || typeof e != "object") {
1726
- if (Ie(r)) {
1727
- for (var a = Object.keys(r), i = n && n.plainObjects ? { __proto__: null, 0: e } : { 0: e }, l = 0; l < a.length; l++) {
1728
- var c = parseInt(a[l], 10);
1729
- i[c + 1] = r[a[l]];
1730
- }
1731
- return Er(i, at(r) + 1);
1732
- }
1697
+ if (!e || typeof e != "object")
1733
1698
  return [e].concat(r);
1734
- }
1735
- var s = e;
1736
- return W(e) && !W(r) && (s = yt(e, n)), W(e) && W(r) ? (r.forEach(function(u, p) {
1737
- if (Ye.call(e, p)) {
1738
- var f = e[p];
1739
- f && typeof f == "object" && u && typeof u == "object" ? e[p] = t(f, u, n) : e.push(u);
1699
+ var o = e;
1700
+ return X(e) && !X(r) && (o = dr(e, n)), X(e) && X(r) ? (r.forEach(function(a, i) {
1701
+ if (qe.call(e, i)) {
1702
+ var l = e[i];
1703
+ l && typeof l == "object" && a && typeof a == "object" ? e[i] = t(l, a, n) : e.push(a);
1740
1704
  } else
1741
- e[p] = u;
1742
- }), e) : Object.keys(r).reduce(function(u, p) {
1743
- var f = r[p];
1744
- return Ye.call(u, p) ? u[p] = t(u[p], f, n) : u[p] = f, u;
1745
- }, s);
1746
- }, fi = function(e, r) {
1705
+ e[i] = a;
1706
+ }), e) : Object.keys(r).reduce(function(a, i) {
1707
+ var l = r[i];
1708
+ return qe.call(a, i) ? a[i] = t(a[i], l, n) : a[i] = l, a;
1709
+ }, o);
1710
+ }, Za = function(e, r) {
1747
1711
  return Object.keys(r).reduce(function(n, o) {
1748
1712
  return n[o] = r[o], n;
1749
1713
  }, e);
1750
- }, si = function(t, e, r) {
1714
+ }, ei = function(t, e, r) {
1751
1715
  var n = t.replace(/\+/g, " ");
1752
1716
  if (r === "iso-8859-1")
1753
1717
  return n.replace(/%[0-9a-f]{2}/gi, unescape);
@@ -1756,18 +1720,18 @@ function() {
1756
1720
  } catch {
1757
1721
  return n;
1758
1722
  }
1759
- }, Qe = 1024, pi = function(e, r, n, o, a) {
1723
+ }, ze = 1024, ti = function(e, r, n, o, a) {
1760
1724
  if (e.length === 0)
1761
1725
  return e;
1762
1726
  var i = e;
1763
1727
  if (typeof e == "symbol" ? i = Symbol.prototype.toString.call(e) : typeof e != "string" && (i = String(e)), n === "iso-8859-1")
1764
- return escape(i).replace(/%u[0-9a-f]{4}/gi, function(d) {
1765
- return "%26%23" + parseInt(d.slice(2), 16) + "%3B";
1728
+ return escape(i).replace(/%u[0-9a-f]{4}/gi, function(v) {
1729
+ return "%26%23" + parseInt(v.slice(2), 16) + "%3B";
1766
1730
  });
1767
- for (var l = "", c = 0; c < i.length; c += Qe) {
1768
- for (var s = i.length >= Qe ? i.slice(c, c + Qe) : i, u = [], p = 0; p < s.length; ++p) {
1731
+ for (var l = "", c = 0; c < i.length; c += ze) {
1732
+ for (var s = i.length >= ze ? i.slice(c, c + ze) : i, u = [], p = 0; p < s.length; ++p) {
1769
1733
  var f = s.charCodeAt(p);
1770
- if (f === 45 || f === 46 || f === 95 || f === 126 || f >= 48 && f <= 57 || f >= 65 && f <= 90 || f >= 97 && f <= 122 || a === ii.RFC1738 && (f === 40 || f === 41)) {
1734
+ if (f === 45 || f === 46 || f === 95 || f === 126 || f >= 48 && f <= 57 || f >= 65 && f <= 90 || f >= 97 && f <= 122 || a === Ya.RFC1738 && (f === 40 || f === 41)) {
1771
1735
  u[u.length] = s.charAt(p);
1772
1736
  continue;
1773
1737
  }
@@ -1788,44 +1752,38 @@ function() {
1788
1752
  l += u.join("");
1789
1753
  }
1790
1754
  return l;
1791
- }, yi = function(e) {
1755
+ }, ri = function(e) {
1792
1756
  for (var r = [{ obj: { o: e }, prop: "o" }], n = [], o = 0; o < r.length; ++o)
1793
1757
  for (var a = r[o], i = a.obj[a.prop], l = Object.keys(i), c = 0; c < l.length; ++c) {
1794
1758
  var s = l[c], u = i[s];
1795
1759
  typeof u == "object" && u !== null && n.indexOf(u) === -1 && (r.push({ obj: i, prop: s }), n.push(u));
1796
1760
  }
1797
- return ci(r), e;
1798
- }, di = function(e) {
1761
+ return Qa(r), e;
1762
+ }, ni = function(e) {
1799
1763
  return Object.prototype.toString.call(e) === "[object RegExp]";
1800
- }, vi = function(e) {
1764
+ }, oi = function(e) {
1801
1765
  return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
1802
- }, hi = function(e, r, n, o) {
1803
- if (Ie(e)) {
1804
- var a = at(e) + 1;
1805
- return e[a] = r, Sr(e, a), e;
1806
- }
1807
- var i = [].concat(e, r);
1808
- return i.length > n ? Er(yt(i, { plainObjects: o }), i.length - 1) : i;
1809
- }, gi = function(e, r) {
1810
- if (W(e)) {
1766
+ }, ai = function(e, r) {
1767
+ return [].concat(e, r);
1768
+ }, ii = function(e, r) {
1769
+ if (X(e)) {
1811
1770
  for (var n = [], o = 0; o < e.length; o += 1)
1812
1771
  n.push(r(e[o]));
1813
1772
  return n;
1814
1773
  }
1815
1774
  return r(e);
1816
- }, Ar = {
1817
- arrayToObject: yt,
1818
- assign: fi,
1819
- combine: hi,
1820
- compact: yi,
1821
- decode: si,
1822
- encode: pi,
1823
- isBuffer: vi,
1824
- isOverflow: Ie,
1825
- isRegExp: di,
1826
- maybeMap: gi,
1827
- merge: ui
1828
- }, Or = _r, Se = Ar, fe = pt, mi = Object.prototype.hasOwnProperty, Rr = {
1775
+ }, vr = {
1776
+ arrayToObject: dr,
1777
+ assign: Za,
1778
+ combine: ai,
1779
+ compact: ri,
1780
+ decode: ei,
1781
+ encode: ti,
1782
+ isBuffer: oi,
1783
+ isRegExp: ni,
1784
+ maybeMap: ii,
1785
+ merge: Ja
1786
+ }, hr = qa, Se = vr, fe = ut, li = Object.prototype.hasOwnProperty, gr = {
1829
1787
  brackets: function(e) {
1830
1788
  return e + "[]";
1831
1789
  },
@@ -1836,9 +1794,9 @@ function() {
1836
1794
  repeat: function(e) {
1837
1795
  return e;
1838
1796
  }
1839
- }, D = Array.isArray, _i = Array.prototype.push, Pr = function(t, e) {
1840
- _i.apply(t, D(e) ? e : [e]);
1841
- }, Ei = Date.prototype.toISOString, Vt = fe.default, m = {
1797
+ }, D = Array.isArray, ci = Array.prototype.push, mr = function(t, e) {
1798
+ ci.apply(t, D(e) ? e : [e]);
1799
+ }, ui = Date.prototype.toISOString, kt = fe.default, m = {
1842
1800
  addQueryPrefix: !1,
1843
1801
  allowDots: !1,
1844
1802
  allowEmptyArrays: !1,
@@ -1852,65 +1810,65 @@ function() {
1852
1810
  encoder: Se.encode,
1853
1811
  encodeValuesOnly: !1,
1854
1812
  filter: void 0,
1855
- format: Vt,
1856
- formatter: fe.formatters[Vt],
1813
+ format: kt,
1814
+ formatter: fe.formatters[kt],
1857
1815
  // deprecated
1858
1816
  indices: !1,
1859
1817
  serializeDate: function(e) {
1860
- return Ei.call(e);
1818
+ return ui.call(e);
1861
1819
  },
1862
1820
  skipNulls: !1,
1863
1821
  strictNullHandling: !1
1864
- }, Si = function(e) {
1822
+ }, fi = function(e) {
1865
1823
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
1866
- }, Je = {}, Ai = function t(e, r, n, o, a, i, l, c, s, u, p, f, d, y, _, A, P, b) {
1867
- for (var h = e, I = b, w = 0, k = !1; (I = I.get(Je)) !== void 0 && !k; ) {
1824
+ }, Ke = {}, si = function t(e, r, n, o, a, i, l, c, s, u, p, f, v, y, E, A, O, b) {
1825
+ for (var h = e, I = b, T = 0, k = !1; (I = I.get(Ke)) !== void 0 && !k; ) {
1868
1826
  var U = I.get(e);
1869
- if (w += 1, typeof U < "u") {
1870
- if (U === w)
1827
+ if (T += 1, typeof U < "u") {
1828
+ if (U === T)
1871
1829
  throw new RangeError("Cyclic object value");
1872
1830
  k = !0;
1873
1831
  }
1874
- typeof I.get(Je) > "u" && (w = 0);
1832
+ typeof I.get(Ke) > "u" && (T = 0);
1875
1833
  }
1876
- if (typeof u == "function" ? h = u(r, h) : h instanceof Date ? h = d(h) : n === "comma" && D(h) && (h = Se.maybeMap(h, function(oe) {
1877
- return oe instanceof Date ? d(oe) : oe;
1834
+ if (typeof u == "function" ? h = u(r, h) : h instanceof Date ? h = v(h) : n === "comma" && D(h) && (h = Se.maybeMap(h, function(oe) {
1835
+ return oe instanceof Date ? v(oe) : oe;
1878
1836
  })), h === null) {
1879
1837
  if (i)
1880
- return s && !A ? s(r, m.encoder, P, "key", y) : r;
1838
+ return s && !A ? s(r, m.encoder, O, "key", y) : r;
1881
1839
  h = "";
1882
1840
  }
1883
- if (Si(h) || Se.isBuffer(h)) {
1841
+ if (fi(h) || Se.isBuffer(h)) {
1884
1842
  if (s) {
1885
- var z = A ? r : s(r, m.encoder, P, "key", y);
1886
- return [_(z) + "=" + _(s(h, m.encoder, P, "value", y))];
1843
+ var z = A ? r : s(r, m.encoder, O, "key", y);
1844
+ return [E(z) + "=" + E(s(h, m.encoder, O, "value", y))];
1887
1845
  }
1888
- return [_(r) + "=" + _(String(h))];
1846
+ return [E(r) + "=" + E(String(h))];
1889
1847
  }
1890
- var x = [];
1848
+ var F = [];
1891
1849
  if (typeof h > "u")
1892
- return x;
1893
- var T;
1850
+ return F;
1851
+ var w;
1894
1852
  if (n === "comma" && D(h))
1895
- A && s && (h = Se.maybeMap(h, s)), T = [{ value: h.length > 0 ? h.join(",") || null : void 0 }];
1853
+ A && s && (h = Se.maybeMap(h, s)), w = [{ value: h.length > 0 ? h.join(",") || null : void 0 }];
1896
1854
  else if (D(u))
1897
- T = u;
1855
+ w = u;
1898
1856
  else {
1899
1857
  var K = Object.keys(h);
1900
- T = p ? K.sort(p) : K;
1858
+ w = p ? K.sort(p) : K;
1901
1859
  }
1902
- var G = c ? String(r).replace(/\./g, "%2E") : String(r), O = o && D(h) && h.length === 1 ? G + "[]" : G;
1860
+ var G = c ? String(r).replace(/\./g, "%2E") : String(r), R = o && D(h) && h.length === 1 ? G + "[]" : G;
1903
1861
  if (a && D(h) && h.length === 0)
1904
- return O + "[]";
1905
- for (var C = 0; C < T.length; ++C) {
1906
- var R = T[C], X = typeof R == "object" && R && typeof R.value < "u" ? R.value : h[R];
1907
- if (!(l && X === null)) {
1908
- var ne = f && c ? String(R).replace(/\./g, "%2E") : String(R), xe = D(h) ? typeof n == "function" ? n(O, ne) : O : O + (f ? "." + ne : "[" + ne + "]");
1909
- b.set(e, w);
1910
- var ve = Or();
1911
- ve.set(Je, b), Pr(x, t(
1912
- X,
1913
- xe,
1862
+ return R + "[]";
1863
+ for (var C = 0; C < w.length; ++C) {
1864
+ var P = w[C], j = typeof P == "object" && P && typeof P.value < "u" ? P.value : h[P];
1865
+ if (!(l && j === null)) {
1866
+ var ne = f && c ? String(P).replace(/\./g, "%2E") : String(P), Ne = D(h) ? typeof n == "function" ? n(R, ne) : R : R + (f ? "." + ne : "[" + ne + "]");
1867
+ b.set(e, T);
1868
+ var ve = hr();
1869
+ ve.set(Ke, b), mr(F, t(
1870
+ j,
1871
+ Ne,
1914
1872
  n,
1915
1873
  o,
1916
1874
  a,
@@ -1921,17 +1879,17 @@ function() {
1921
1879
  u,
1922
1880
  p,
1923
1881
  f,
1924
- d,
1882
+ v,
1925
1883
  y,
1926
- _,
1884
+ E,
1927
1885
  A,
1928
- P,
1886
+ O,
1929
1887
  ve
1930
1888
  ));
1931
1889
  }
1932
1890
  }
1933
- return x;
1934
- }, Oi = function(e) {
1891
+ return F;
1892
+ }, pi = function(e) {
1935
1893
  if (!e)
1936
1894
  return m;
1937
1895
  if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
@@ -1945,14 +1903,14 @@ function() {
1945
1903
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1946
1904
  var n = fe.default;
1947
1905
  if (typeof e.format < "u") {
1948
- if (!mi.call(fe.formatters, e.format))
1906
+ if (!li.call(fe.formatters, e.format))
1949
1907
  throw new TypeError("Unknown format option provided.");
1950
1908
  n = e.format;
1951
1909
  }
1952
1910
  var o = fe.formatters[n], a = m.filter;
1953
1911
  (typeof e.filter == "function" || D(e.filter)) && (a = e.filter);
1954
1912
  var i;
1955
- if (e.arrayFormat in Rr ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = m.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
1913
+ if (e.arrayFormat in gr ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = m.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
1956
1914
  throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
1957
1915
  var l = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : m.allowDots : !!e.allowDots;
1958
1916
  return {
@@ -1976,17 +1934,17 @@ function() {
1976
1934
  sort: typeof e.sort == "function" ? e.sort : null,
1977
1935
  strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : m.strictNullHandling
1978
1936
  };
1979
- }, Ri = function(t, e) {
1980
- var r = t, n = Oi(e), o, a;
1937
+ }, yi = function(t, e) {
1938
+ var r = t, n = pi(e), o, a;
1981
1939
  typeof n.filter == "function" ? (a = n.filter, r = a("", r)) : D(n.filter) && (a = n.filter, o = a);
1982
1940
  var i = [];
1983
1941
  if (typeof r != "object" || r === null)
1984
1942
  return "";
1985
- var l = Rr[n.arrayFormat], c = l === "comma" && n.commaRoundTrip;
1943
+ var l = gr[n.arrayFormat], c = l === "comma" && n.commaRoundTrip;
1986
1944
  o || (o = Object.keys(r)), n.sort && o.sort(n.sort);
1987
- for (var s = Or(), u = 0; u < o.length; ++u) {
1945
+ for (var s = hr(), u = 0; u < o.length; ++u) {
1988
1946
  var p = o[u], f = r[p];
1989
- n.skipNulls && f === null || Pr(i, Ai(
1947
+ n.skipNulls && f === null || mr(i, si(
1990
1948
  f,
1991
1949
  p,
1992
1950
  l,
@@ -2007,9 +1965,9 @@ function() {
2007
1965
  s
2008
1966
  ));
2009
1967
  }
2010
- var d = i.join(n.delimiter), y = n.addQueryPrefix === !0 ? "?" : "";
2011
- return n.charsetSentinel && (n.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"), d.length > 0 ? y + d : "";
2012
- }, H = Ar, Ae = Object.prototype.hasOwnProperty, qt = Array.isArray, g = {
1968
+ var v = i.join(n.delimiter), y = n.addQueryPrefix === !0 ? "?" : "";
1969
+ return n.charsetSentinel && (n.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"), v.length > 0 ? y + v : "";
1970
+ }, V = vr, rt = Object.prototype.hasOwnProperty, jt = Array.isArray, g = {
2013
1971
  allowDots: !1,
2014
1972
  allowEmptyArrays: !1,
2015
1973
  allowPrototypes: !1,
@@ -2019,7 +1977,7 @@ function() {
2019
1977
  charsetSentinel: !1,
2020
1978
  comma: !1,
2021
1979
  decodeDotInKeys: !1,
2022
- decoder: H.decode,
1980
+ decoder: V.decode,
2023
1981
  delimiter: "&",
2024
1982
  depth: 5,
2025
1983
  duplicates: "combine",
@@ -2031,17 +1989,17 @@ function() {
2031
1989
  strictDepth: !1,
2032
1990
  strictNullHandling: !1,
2033
1991
  throwOnLimitExceeded: !1
2034
- }, Pi = function(t) {
1992
+ }, di = function(t) {
2035
1993
  return t.replace(/&#(\d+);/g, function(e, r) {
2036
1994
  return String.fromCharCode(parseInt(r, 10));
2037
1995
  });
2038
- }, br = function(t, e, r) {
1996
+ }, Er = function(t, e, r) {
2039
1997
  if (t && typeof t == "string" && e.comma && t.indexOf(",") > -1)
2040
1998
  return t.split(",");
2041
1999
  if (e.throwOnLimitExceeded && r >= e.arrayLimit)
2042
2000
  throw new RangeError("Array limit exceeded. Only " + e.arrayLimit + " element" + (e.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
2043
2001
  return t;
2044
- }, bi = "utf8=%26%2310003%3B", Ii = "utf8=%E2%9C%93", wi = function(e, r) {
2002
+ }, vi = "utf8=%26%2310003%3B", hi = "utf8=%E2%9C%93", gi = function(e, r) {
2045
2003
  var n = { __proto__: null }, o = r.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
2046
2004
  o = o.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
2047
2005
  var a = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, i = o.split(
@@ -2053,45 +2011,34 @@ function() {
2053
2011
  var l = -1, c, s = r.charset;
2054
2012
  if (r.charsetSentinel)
2055
2013
  for (c = 0; c < i.length; ++c)
2056
- i[c].indexOf("utf8=") === 0 && (i[c] === Ii ? s = "utf-8" : i[c] === bi && (s = "iso-8859-1"), l = c, c = i.length);
2014
+ i[c].indexOf("utf8=") === 0 && (i[c] === hi ? s = "utf-8" : i[c] === vi && (s = "iso-8859-1"), l = c, c = i.length);
2057
2015
  for (c = 0; c < i.length; ++c)
2058
2016
  if (c !== l) {
2059
- var u = i[c], p = u.indexOf("]="), f = p === -1 ? u.indexOf("=") : p + 1, d, y;
2060
- if (f === -1 ? (d = r.decoder(u, g.decoder, s, "key"), y = r.strictNullHandling ? null : "") : (d = r.decoder(u.slice(0, f), g.decoder, s, "key"), d !== null && (y = H.maybeMap(
2061
- br(
2017
+ var u = i[c], p = u.indexOf("]="), f = p === -1 ? u.indexOf("=") : p + 1, v, y;
2018
+ f === -1 ? (v = r.decoder(u, g.decoder, s, "key"), y = r.strictNullHandling ? null : "") : (v = r.decoder(u.slice(0, f), g.decoder, s, "key"), y = V.maybeMap(
2019
+ Er(
2062
2020
  u.slice(f + 1),
2063
2021
  r,
2064
- qt(n[d]) ? n[d].length : 0
2022
+ jt(n[v]) ? n[v].length : 0
2065
2023
  ),
2066
2024
  function(A) {
2067
2025
  return r.decoder(A, g.decoder, s, "value");
2068
2026
  }
2069
- ))), y && r.interpretNumericEntities && s === "iso-8859-1" && (y = Pi(String(y))), u.indexOf("[]=") > -1 && (y = qt(y) ? [y] : y), d !== null) {
2070
- var _ = Ae.call(n, d);
2071
- _ && r.duplicates === "combine" ? n[d] = H.combine(
2072
- n[d],
2073
- y,
2074
- r.arrayLimit,
2075
- r.plainObjects
2076
- ) : (!_ || r.duplicates === "last") && (n[d] = y);
2077
- }
2027
+ )), y && r.interpretNumericEntities && s === "iso-8859-1" && (y = di(String(y))), u.indexOf("[]=") > -1 && (y = jt(y) ? [y] : y);
2028
+ var E = rt.call(n, v);
2029
+ E && r.duplicates === "combine" ? n[v] = V.combine(n[v], y) : (!E || r.duplicates === "last") && (n[v] = y);
2078
2030
  }
2079
2031
  return n;
2080
- }, Ti = function(t, e, r, n) {
2032
+ }, mi = function(t, e, r, n) {
2081
2033
  var o = 0;
2082
2034
  if (t.length > 0 && t[t.length - 1] === "[]") {
2083
2035
  var a = t.slice(0, -1).join("");
2084
2036
  o = Array.isArray(e) && e[a] ? e[a].length : 0;
2085
2037
  }
2086
- for (var i = n ? e : br(e, r, o), l = t.length - 1; l >= 0; --l) {
2038
+ for (var i = n ? e : Er(e, r, o), l = t.length - 1; l >= 0; --l) {
2087
2039
  var c, s = t[l];
2088
2040
  if (s === "[]" && r.parseArrays)
2089
- H.isOverflow(i) ? c = i : c = r.allowEmptyArrays && (i === "" || r.strictNullHandling && i === null) ? [] : H.combine(
2090
- [],
2091
- i,
2092
- r.arrayLimit,
2093
- r.plainObjects
2094
- );
2041
+ c = r.allowEmptyArrays && (i === "" || r.strictNullHandling && i === null) ? [] : V.combine([], i);
2095
2042
  else {
2096
2043
  c = r.plainObjects ? { __proto__: null } : {};
2097
2044
  var u = s.charAt(0) === "[" && s.charAt(s.length - 1) === "]" ? s.slice(1, -1) : s, p = r.decodeDotInKeys ? u.replace(/%2E/g, ".") : u, f = parseInt(p, 10);
@@ -2100,36 +2047,27 @@ function() {
2100
2047
  i = c;
2101
2048
  }
2102
2049
  return i;
2103
- }, Ci = function(e, r) {
2104
- var n = r.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e;
2105
- if (r.depth <= 0)
2106
- return !r.plainObjects && Ae.call(Object.prototype, n) && !r.allowPrototypes ? void 0 : [n];
2107
- var o = /(\[[^[\]]*])/, a = /(\[[^[\]]*])/g, i = o.exec(n), l = i ? n.slice(0, i.index) : n, c = [];
2108
- if (l) {
2109
- if (!r.plainObjects && Ae.call(Object.prototype, l) && !r.allowPrototypes)
2110
- return;
2111
- c.push(l);
2112
- }
2113
- for (var s = 0; (i = a.exec(n)) !== null && s < r.depth; ) {
2114
- s += 1;
2115
- var u = i[1].slice(1, -1);
2116
- if (!r.plainObjects && Ae.call(Object.prototype, u) && !r.allowPrototypes)
2117
- return;
2118
- c.push(i[1]);
2119
- }
2120
- if (i) {
2121
- if (r.strictDepth === !0)
2122
- throw new RangeError("Input depth exceeded depth option of " + r.depth + " and strictDepth is true");
2123
- c.push("[" + n.slice(i.index) + "]");
2124
- }
2125
- return c;
2126
- }, Ni = function(e, r, n, o) {
2050
+ }, Ei = function(e, r, n, o) {
2127
2051
  if (e) {
2128
- var a = Ci(e, n);
2129
- if (a)
2130
- return Ti(a, r, n, o);
2052
+ var a = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, l = /(\[[^[\]]*])/g, c = n.depth > 0 && i.exec(a), s = c ? a.slice(0, c.index) : a, u = [];
2053
+ if (s) {
2054
+ if (!n.plainObjects && rt.call(Object.prototype, s) && !n.allowPrototypes)
2055
+ return;
2056
+ u.push(s);
2057
+ }
2058
+ for (var p = 0; n.depth > 0 && (c = l.exec(a)) !== null && p < n.depth; ) {
2059
+ if (p += 1, !n.plainObjects && rt.call(Object.prototype, c[1].slice(1, -1)) && !n.allowPrototypes)
2060
+ return;
2061
+ u.push(c[1]);
2062
+ }
2063
+ if (c) {
2064
+ if (n.strictDepth === !0)
2065
+ throw new RangeError("Input depth exceeded depth option of " + n.depth + " and strictDepth is true");
2066
+ u.push("[" + a.slice(c.index) + "]");
2067
+ }
2068
+ return mi(u, r, n, o);
2131
2069
  }
2132
- }, Di = function(e) {
2070
+ }, _i = function(e) {
2133
2071
  if (!e)
2134
2072
  return g;
2135
2073
  if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
@@ -2157,7 +2095,7 @@ function() {
2157
2095
  comma: typeof e.comma == "boolean" ? e.comma : g.comma,
2158
2096
  decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : g.decodeDotInKeys,
2159
2097
  decoder: typeof e.decoder == "function" ? e.decoder : g.decoder,
2160
- delimiter: typeof e.delimiter == "string" || H.isRegExp(e.delimiter) ? e.delimiter : g.delimiter,
2098
+ delimiter: typeof e.delimiter == "string" || V.isRegExp(e.delimiter) ? e.delimiter : g.delimiter,
2161
2099
  // eslint-disable-next-line no-implicit-coercion, no-extra-parens
2162
2100
  depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : g.depth,
2163
2101
  duplicates: n,
@@ -2170,24 +2108,24 @@ function() {
2170
2108
  strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : g.strictNullHandling,
2171
2109
  throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" ? e.throwOnLimitExceeded : !1
2172
2110
  };
2173
- }, $i = function(t, e) {
2174
- var r = Di(e);
2111
+ }, Si = function(t, e) {
2112
+ var r = _i(e);
2175
2113
  if (t === "" || t === null || typeof t > "u")
2176
2114
  return r.plainObjects ? { __proto__: null } : {};
2177
- for (var n = typeof t == "string" ? wi(t, r) : t, o = r.plainObjects ? { __proto__: null } : {}, a = Object.keys(n), i = 0; i < a.length; ++i) {
2178
- var l = a[i], c = Ni(l, n[l], r, typeof t == "string");
2179
- o = H.merge(o, c, r);
2180
- }
2181
- return r.allowSparse === !0 ? o : H.compact(o);
2182
- }, xi = Ri, Mi = $i, Fi = pt, Li = {
2183
- formats: Fi,
2184
- parse: Mi,
2185
- stringify: xi
2115
+ for (var n = typeof t == "string" ? gi(t, r) : t, o = r.plainObjects ? { __proto__: null } : {}, a = Object.keys(n), i = 0; i < a.length; ++i) {
2116
+ var l = a[i], c = Ei(l, n[l], r, typeof t == "string");
2117
+ o = V.merge(o, c, r);
2118
+ }
2119
+ return r.allowSparse === !0 ? o : V.compact(o);
2120
+ }, Ai = yi, Ri = Si, Pi = ut, Oi = {
2121
+ formats: Pi,
2122
+ parse: Ri,
2123
+ stringify: Ai
2186
2124
  };
2187
- const Ui = /* @__PURE__ */ _n(Li);
2188
- async function $e(t, e = {}, r) {
2125
+ const bi = /* @__PURE__ */ cn(Oi);
2126
+ async function Ce(t, e = {}, r) {
2189
2127
  const { cms: n = "cms" } = e;
2190
- return fetch(`${t.href}?${Ui.stringify(e)}`, {
2128
+ return fetch(`${t.href}?${bi.stringify(e)}`, {
2191
2129
  method: "GET",
2192
2130
  cache: r ? "no-store" : "default",
2193
2131
  headers: {
@@ -2198,18 +2136,18 @@ async function $e(t, e = {}, r) {
2198
2136
  }
2199
2137
  });
2200
2138
  }
2201
- function dt(t, e) {
2139
+ function ft(t, e) {
2202
2140
  return !(e != null && e.cms) || (e == null ? void 0 : e.cms) === "vtex" ? `https://${e == null ? void 0 : e.storeId}.myvtex.com/_v/cms/api/${e == null ? void 0 : e.name}/${t}` : String(
2203
2141
  new URL(`api/${t}`, process.env.NEXT_PUBLIC_API_URL)
2204
2142
  );
2205
2143
  }
2206
- function Ir(t) {
2144
+ function _r(t) {
2207
2145
  return Array.isArray(t) && t.length > 0 ? t[0] : Array.isArray(t) ? null : t;
2208
2146
  }
2209
- async function wr(t, e = [], r = {}) {
2147
+ async function Sr(t, e = [], r = {}) {
2210
2148
  var n;
2211
2149
  if ((r == null ? void 0 : r.contentType) === t) {
2212
- const o = (r == null ? void 0 : r.previewMode) === "true", a = (r == null ? void 0 : r.documentId) ?? "", i = a && ((n = String(a)) != null && n.length) ? `/${r.documentId}` : "", l = new URL(dt(`${t}${i}`, r)), c = await $e(l, r, o);
2150
+ const o = (r == null ? void 0 : r.previewMode) === "true", a = (r == null ? void 0 : r.documentId) ?? "", i = a && ((n = String(a)) != null && n.length) ? `/${r.documentId}` : "", l = new URL(ft(`${t}${i}`, r)), c = await Ce(l, r, o);
2213
2151
  if (!c.ok)
2214
2152
  return console.error(`[Error fetching preview data]: ${t} - status: ${c.statusText}`), [];
2215
2153
  const s = await c.json(), u = e.findIndex((p) => p.documentId === s.id);
@@ -2217,15 +2155,15 @@ async function wr(t, e = [], r = {}) {
2217
2155
  }
2218
2156
  return e;
2219
2157
  }
2220
- const Zi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2158
+ const ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2221
2159
  __proto__: null,
2222
- createUrl: dt,
2223
- fetchCMS: $e,
2224
- mergePreviewDocument: wr,
2225
- spreadStrapiData: Ir
2160
+ createUrl: ft,
2161
+ fetchCMS: Ce,
2162
+ mergePreviewDocument: Sr,
2163
+ spreadStrapiData: _r
2226
2164
  }, Symbol.toStringTag, { value: "Module" }));
2227
- async function Tr(t, e = {}, r) {
2228
- const n = !!(e != null && e.previewMode), o = await $e(t, e, n);
2165
+ async function Ar(t, e = {}, r) {
2166
+ const n = !!(e != null && e.previewMode), o = await Ce(t, e, n);
2229
2167
  if (!o.ok)
2230
2168
  return console.log(
2231
2169
  `Failed to fetch Strapi (url=${String(t)}, status=${o.status})`
@@ -2233,15 +2171,15 @@ async function Tr(t, e = {}, r) {
2233
2171
  const { data: a } = await o.json();
2234
2172
  return a ? {
2235
2173
  status: 200,
2236
- data: r ? Ir(a) : a
2174
+ data: r ? _r(a) : a
2237
2175
  } : { status: 404, data: [], error: "No data found" };
2238
2176
  }
2239
- async function Cr(t, e, r = {}) {
2177
+ async function Rr(t, e, r = {}) {
2240
2178
  const n = (r == null ? void 0 : r.previewId) ?? "", o = (r == null ? void 0 : r.previewMode) === "true", a = { ...r, versionId: n }, i = [];
2241
2179
  let l = 1, c = 0, s = !0;
2242
2180
  try {
2243
2181
  do {
2244
- const u = await $e(e, { ...a, page: l }, o).then((p) => p.json()).catch((p) => (console.error("Error fetching VTEX CMS data:", p), console.error("Error URL:", e.toString()), null));
2182
+ const u = await Ce(e, { ...a, page: l }, o).then((p) => p.json()).catch((p) => (console.error("Error fetching VTEX CMS data:", p), console.error("Error URL:", e.toString()), null));
2245
2183
  l === 1 && (c = u.totalItems), Array.isArray(u == null ? void 0 : u.data) && i.push(...u.data), s = !!(u != null && u.hasNextPage), l++;
2246
2184
  } while (s && i.length < c);
2247
2185
  if (o && i.length > 0) {
@@ -2249,7 +2187,7 @@ async function Cr(t, e, r = {}) {
2249
2187
  throw new Error(
2250
2188
  "contentType and previewId are required for preview mode in vtexCMSData"
2251
2189
  );
2252
- const u = await wr(
2190
+ const u = await Sr(
2253
2191
  t,
2254
2192
  i,
2255
2193
  a
@@ -2271,12 +2209,12 @@ async function Cr(t, e, r = {}) {
2271
2209
  };
2272
2210
  }
2273
2211
  }
2274
- const el = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2212
+ const Xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2275
2213
  __proto__: null,
2276
- strapiCMSData: Tr,
2277
- vtexCMSData: Cr
2214
+ strapiCMSData: Ar,
2215
+ vtexCMSData: Rr
2278
2216
  }, Symbol.toStringTag, { value: "Module" }));
2279
- async function Gi({
2217
+ async function Ii({
2280
2218
  contentType: t,
2281
2219
  documentId: e,
2282
2220
  versionId: r,
@@ -2289,65 +2227,63 @@ async function Gi({
2289
2227
  { cache: "no-cache" }
2290
2228
  );
2291
2229
  }
2292
- async function Bi(t, e = {}, r) {
2230
+ async function Ti(t, e = {}, r) {
2293
2231
  const { cms: n = "vtex" } = e ?? {};
2294
2232
  try {
2295
- const o = new URL(dt(t, e));
2296
- return n !== "vtex" ? Tr(o, e, r) : Cr(t, o, e);
2233
+ const o = new URL(ft(t, e));
2234
+ return n !== "vtex" ? Ar(o, e, r) : Rr(t, o, e);
2297
2235
  } catch (o) {
2298
2236
  return console.error(`[Fetch ContentType Error CMS ${n}]`, o), r ? { status: 400, data: null } : { status: 200, data: [] };
2299
2237
  }
2300
2238
  }
2301
- const tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2239
+ const Wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2302
2240
  __proto__: null,
2303
- fetchContentType: Bi,
2304
- getCMSContentType: Gi
2241
+ fetchContentType: Ti,
2242
+ getCMSContentType: Ii
2305
2243
  }, Symbol.toStringTag, { value: "Module" }));
2306
2244
  export {
2307
- he as A,
2308
- Yr as B,
2309
- rn as C,
2310
- Vi as D,
2311
- vn as E,
2312
- un as F,
2313
- qi as G,
2314
- Fn as H,
2315
- Bi as I,
2316
- Zt as J,
2317
- Wi as K,
2318
- Yi as L,
2319
- Xi as M,
2320
- Qi as N,
2321
- tl as O,
2322
- Zi as P,
2323
- el as Q,
2324
- mn as R,
2325
- Ji as S,
2326
- Ki as T,
2327
- Jr as a,
2328
- tn as b,
2329
- Yt as c,
2330
- Kr as d,
2331
- Zr as e,
2332
- zi as f,
2333
- zr as g,
2334
- Ze as h,
2335
- Vr as i,
2336
- en as j,
2337
- it as k,
2338
- Qt as l,
2339
- An as m,
2340
- On as n,
2341
- Rn as o,
2342
- ki as p,
2343
- Pn as q,
2344
- Sn as r,
2345
- zt as s,
2346
- Jt as t,
2347
- nn as u,
2348
- _n as v,
2349
- xn as w,
2350
- qr as x,
2351
- on as y,
2352
- ln as z
2245
+ jr as A,
2246
+ Kr as B,
2247
+ xi as C,
2248
+ Di as D,
2249
+ Ui as E,
2250
+ On as F,
2251
+ Ti as G,
2252
+ zt as H,
2253
+ Fi as I,
2254
+ Bi as J,
2255
+ $i as K,
2256
+ Mi as L,
2257
+ Hi as M,
2258
+ Wi as N,
2259
+ ji as O,
2260
+ Xi as P,
2261
+ Gi as Q,
2262
+ ki as S,
2263
+ Wr as a,
2264
+ zr as b,
2265
+ kr as c,
2266
+ Vr as d,
2267
+ Ni as e,
2268
+ Ye as f,
2269
+ Hr as g,
2270
+ Gr as h,
2271
+ qr as i,
2272
+ nt as j,
2273
+ Vt as k,
2274
+ sn as l,
2275
+ pn as m,
2276
+ yn as n,
2277
+ dn as o,
2278
+ Li as p,
2279
+ qt as q,
2280
+ fn as r,
2281
+ Xt as s,
2282
+ cn as t,
2283
+ Yr as u,
2284
+ Rn as v,
2285
+ Br as w,
2286
+ Qr as x,
2287
+ Zr as y,
2288
+ he as z
2353
2289
  };