@soma-vertical-web/multi-lib 1.0.1 → 1.0.3

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 (34) hide show
  1. package/cms/ContentTypes/Footer/Footer.d.ts +1 -1
  2. package/cms/Sections/Banner/Composite/Content.d.ts +1 -1
  3. package/cms/Sections/ProductCarousel/ProductCarousel.d.ts +2 -2
  4. package/cms/index.d.ts +2 -2
  5. package/cms/server.d.ts +1 -1
  6. package/contexts/hooks/useOperations.d.ts +1 -1
  7. package/index-4WXjd-uR.js +4 -0
  8. package/index-4tOP7lCS.js +4 -0
  9. package/index-ByhWQJ9Z.mjs +1844 -0
  10. package/index-CCvTne7y.mjs +1826 -0
  11. package/index.js +13 -13
  12. package/index.mjs +3952 -3828
  13. package/index2.js +1 -1
  14. package/index2.mjs +407 -404
  15. package/layout/index.d.ts +3 -3
  16. package/layout/team-component/BackToTop/BackToTop.d.ts +1 -1
  17. package/layout/team-component/Footer/Footer.d.ts +1 -1
  18. package/layout/team-component/ProductList/Composite/Card/Actions.d.ts +1 -1
  19. package/layout/template/MiniCart/Composite/Card/Composite/Sku.d.ts +1 -1
  20. package/layout/template/MiniCart/Composite/Card/Composite/Style.d.ts +1 -1
  21. package/layout/template/MiniCart/Composite/Card/index.d.ts +2 -2
  22. package/layout/template/PDC/Composite/Grid/Banners.d.ts +1 -1
  23. package/layout/template/PDC/Composite/InfiniteScroller/Banners/Banners.d.ts +1 -1
  24. package/layout/template/SearchModal/Composite/Recommendations.d.ts +4 -2
  25. package/layout/template/SearchModal/SearchModal.d.ts +1 -1
  26. package/package.json +1 -1
  27. package/server.d.ts +16 -0
  28. package/style.css +1 -1
  29. package/types/cms/ContentTypes/Footer/index.d.ts +1 -0
  30. package/types/cms/Sections/BannerCarousel/index.d.ts +2 -1
  31. package/types/cms/Sections/SectionZone/index.d.ts +1 -0
  32. package/types/layout/team-components/BackToTop/index.d.ts +1 -0
  33. package/types/layout/templates/PLP/index.d.ts +2 -2
  34. package/types/layout/templates/SearchModal/index.d.ts +1 -2
@@ -0,0 +1,1844 @@
1
+ import { jsxs as ft, Fragment as _r, jsx as $ } from "react/jsx-runtime";
2
+ import { Utils as br } from "@soma-vertical-web/core-components";
3
+ const Ve = (t, e = !0) => Intl.NumberFormat("pt-BR", {
4
+ style: "currency",
5
+ currency: "BRL",
6
+ minimumFractionDigits: e ? 2 : 0
7
+ }).format(t), Sr = ({ valueInCents: t, hasFree: e, freeTaxMessage: r }) => t === 0 ? e ? r : Ve(0) : Ve(t / 100), wr = (t, e) => {
8
+ const n = (t - e) * 100 / t;
9
+ return Math.floor(n);
10
+ }, Ut = (t, e) => {
11
+ const [r, n] = t.split(e);
12
+ return { name: r.trim(), size: n ? n.trim() : "" };
13
+ }, xr = (t, e) => {
14
+ if (!t)
15
+ return {};
16
+ const [r, n] = t.split(e);
17
+ return { color: r == null ? void 0 : r.trim(), size: n == null ? void 0 : n.trim() };
18
+ }, Ar = (t, e = "tamanho") => {
19
+ if (t.additionalProperty) {
20
+ const [r] = t.additionalProperty;
21
+ return r != null && r.name ? r.name.toLocaleLowerCase() === e ? r.value : t.name : "";
22
+ }
23
+ return t.name;
24
+ }, Or = (t, e) => t.replace(e, "").trim(), Er = (t) => t.replace(/\//g, ""), Pr = ({ items: t, NAME_SPLIT_SYMBOL: e }) => {
25
+ const r = {
26
+ price: 0,
27
+ listPrice: 0,
28
+ installments: {
29
+ count: 0,
30
+ value: 0
31
+ }
32
+ }, n = (i, f) => {
33
+ var s;
34
+ f && (f.sellerId = i.sellerId, f.sellerName = i.sellerName, f.available = !0, f.isSellerDefault = i.sellerDefault);
35
+ const {
36
+ Price: l,
37
+ ListPrice: u,
38
+ PaymentOptions: { installmentOptions: c }
39
+ } = i.commertialOffer;
40
+ r.price = l, r.listPrice = u;
41
+ const p = (s = c == null ? void 0 : c[0]) == null ? void 0 : s.installments;
42
+ if (p) {
43
+ const { count: v, value: y } = p[p.length - 1];
44
+ r.installments = {
45
+ count: v,
46
+ value: y / 100
47
+ };
48
+ }
49
+ };
50
+ let o = !0;
51
+ const a = t.reduce((i, f) => {
52
+ var c;
53
+ const l = {
54
+ name: f.name,
55
+ sku: f.itemId,
56
+ value: ((c = f.Tamanho) == null ? void 0 : c[0]) ?? Ut(f.nameComplete ?? f.name, e).size,
57
+ available: !1,
58
+ sellerId: "",
59
+ sellerName: "",
60
+ isSellerDefault: !1
61
+ }, u = f.sellers.filter((p) => (p.sellerDefault && p.commertialOffer.IsAvailable && (l.available = !0, n(p, l)), p.commertialOffer.IsAvailable));
62
+ return !l.isSellerDefault && u.length > 0 && (l.available = !0, n(u[0], {
63
+ ...l,
64
+ sellerId: u[0].sellerId,
65
+ sellerName: u[0].sellerName
66
+ })), l.available === !1 && (o = !1), i.push(l), i;
67
+ }, []);
68
+ return {
69
+ ...r,
70
+ sizes: a,
71
+ allSizesAvailable: o
72
+ };
73
+ }, $r = (t) => t ? !t.offers.offers.find(({ quantity: e = 0 }) => e > 0) : !1, Ir = (t, e) => {
74
+ const r = t.find(
75
+ (n) => n.availability.includes("InStock") && n.quantity && n.listPrice > 0 && n.seller.identifier === e
76
+ );
77
+ return r || t.find(
78
+ (n) => n.availability.includes("InStock") && n.quantity && n.listPrice > 0
79
+ );
80
+ }, Rr = ({ images: t, TEXTURE_IMAGE: e }) => t.find((r) => e.includes(r.imageLabel)) ?? t[0], kr = (t, e) => {
81
+ const r = /\/ids\/(\d+)\//, n = t.match(r);
82
+ return n ? t.replace(
83
+ `/${n[1]}/`,
84
+ `/${n[1]}-${e.width}-${e.height}/`
85
+ ) : t;
86
+ }, Fr = (t, e) => {
87
+ const r = /\/ids\/(\d+)-(\d+)-(\d+)\//, n = t.match(r);
88
+ return n ? t.replace(
89
+ `/${n[1]}-${n[2]}-${n[3]}/`,
90
+ `/${n[1]}-${e.width}-${e.height}/`
91
+ ) : t;
92
+ }, Dr = ({
93
+ images: t,
94
+ label: e
95
+ }) => {
96
+ const r = t.filter(
97
+ (n) => n.keywords === e.first || n.keywords === e.second || n.alternateName === e.first || n.alternateName === e.second
98
+ );
99
+ return r.length === 0 ? t.slice(0, 2) : r;
100
+ }, Cr = (t) => {
101
+ const [e, r] = t.split("/").map(Number);
102
+ if (Number.isNaN(e) || Number.isNaN(r))
103
+ throw new Error("[ERROR ASPECT RATIO IMAGE]: Invalid aspect ratio format");
104
+ return r / e;
105
+ }, Tr = (t, e, r) => {
106
+ e && (t ? (e.getAttribute("src") || (e.src = r ?? ""), e.play()) : e.pause());
107
+ }, yi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
108
+ __proto__: null,
109
+ disableSKU: $r,
110
+ formatPriceToCurrency: Ve,
111
+ freightParsePrice: Sr,
112
+ getAspectRatio: Cr,
113
+ getColorAndSizeFromSkuName: xr,
114
+ getDiscountPercent: wr,
115
+ getFirstImages: Dr,
116
+ getProductNameWithoutSku: Or,
117
+ getSKUName: Ar,
118
+ getSkuInfos: Pr,
119
+ getThumbImage: Rr,
120
+ getValidOffer: Ir,
121
+ removeSlashes: Er,
122
+ resizingImg: kr,
123
+ setVideoPlay: Tr,
124
+ splitNameAndSizeFromFullName: Ut,
125
+ updatedResizedImg: Fr
126
+ }, Symbol.toStringTag, { value: "Module" })), ut = "fuzzy", st = "operator", Nr = (t) => ({
127
+ isDepartment: t != null && t.length ? t[0].key === "category-1" : !1
128
+ }), di = (t, e) => {
129
+ const r = decodeURIComponent(e ?? "").slice(1).split("/");
130
+ return t.map((n) => {
131
+ if (n.key === "category-2" && n.__typename === "FacetBoolean") {
132
+ const o = n.values;
133
+ return {
134
+ ...n,
135
+ values: o.filter(
136
+ (a) => !r.find(
137
+ (i) => i.toLowerCase() === a.value || i.toLowerCase() === a.name.toLowerCase()
138
+ )
139
+ )
140
+ };
141
+ }
142
+ return n;
143
+ });
144
+ }, qt = (t, e) => e ? t === "category-1" : !1, Mr = (t) => t.key === "operator" && (t.value === "and" || t.value === "or"), jr = (t) => t.type === "TEXT", Br = (t) => t.key === "fuzzy" && (t.value === "0" || t.value === "1" || t.value === "auto"), Lr = (t) => {
145
+ const { key: e, name: r, values: n } = t;
146
+ return {
147
+ __typename: "FacetBoolean",
148
+ key: e,
149
+ label: r,
150
+ values: n.slice().sort((o, a) => o.name.localeCompare(a.name))
151
+ };
152
+ }, Ur = ({ key: t, values: e }) => ({
153
+ __typename: "FacetRange",
154
+ key: t,
155
+ values: e
156
+ }), vi = (t, e, r) => {
157
+ if (!(t instanceof Object) || !("facets" in t))
158
+ return [];
159
+ const { facets: n = [] } = t, o = e != null && e.length ? e[0].key === "category-1" : !1;
160
+ return n.filter(
161
+ (i) => !r || !qt(i.key, o)
162
+ ).map(
163
+ (i) => jr(i) ? Lr(i) : Ur(i)
164
+ );
165
+ }, mi = (t, e) => {
166
+ const r = t.find(({ key: o }) => o === ut) ?? null, n = t.find(({ key: o }) => o === st) ?? null;
167
+ r && Br(r) && e.append(ut, r.value), n && Mr(n) && e.append(st, n.value);
168
+ }, qr = (t) => t.map((e) => {
169
+ const [r, n] = e.split("/");
170
+ return { key: r, value: n };
171
+ }), gi = (t, e) => {
172
+ const r = decodeURIComponent(e ?? "").slice(1).split("/"), n = t.filter(({ value: a }) => !r.includes(decodeURIComponent(a))).map((a) => ({
173
+ ...a,
174
+ value: decodeURIComponent(a.value)
175
+ })), { isDepartment: o } = Nr(n);
176
+ return n == null ? void 0 : n.filter((a) => !qt(a.key, o));
177
+ }, hi = ({ pathname: t, searchParams: e }, r) => {
178
+ const n = e.get("sort") ?? "", o = e.get("query") ?? null, a = parseInt(e.get("page") ?? "1", 10);
179
+ return {
180
+ sort: n,
181
+ facets: qr(r),
182
+ term: o,
183
+ base: o ? "" : t,
184
+ page: a
185
+ };
186
+ }, _i = (t) => {
187
+ const e = new URLSearchParams();
188
+ return Object.entries(t).forEach(([r, n]) => {
189
+ Array.isArray(n) ? n.forEach((o) => e.append(r, o)) : n !== void 0 && e.append(r, n);
190
+ }), e;
191
+ }, bi = (t, e, r = 24, n = 1, o) => {
192
+ const a = `/search?query=${e ?? ""}&count=${r}&page=${n}${o ? `&sort=${o.replace("_", ":")}` : ""}`;
193
+ t.push(a);
194
+ };
195
+ var pt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
196
+ function Wr(t) {
197
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
198
+ }
199
+ function zr(t) {
200
+ if (t.__esModule) return t;
201
+ var e = t.default;
202
+ if (typeof e == "function") {
203
+ var r = function n() {
204
+ return this instanceof n ? Reflect.construct(e, arguments, this.constructor) : e.apply(this, arguments);
205
+ };
206
+ r.prototype = e.prototype;
207
+ } else r = {};
208
+ return Object.defineProperty(r, "__esModule", { value: !0 }), Object.keys(t).forEach(function(n) {
209
+ var o = Object.getOwnPropertyDescriptor(t, n);
210
+ Object.defineProperty(r, n, o.get ? o : {
211
+ enumerable: !0,
212
+ get: function() {
213
+ return t[n];
214
+ }
215
+ });
216
+ }), r;
217
+ }
218
+ const ue = {
219
+ "responsive-mobile-flex": "_responsive-mobile-flex_1e0ai_1",
220
+ "responsive-desktop-flex": "_responsive-desktop-flex_1e0ai_15",
221
+ "responsive-mobile-block": "_responsive-mobile-block_1e0ai_30",
222
+ "responsive-desktop-block": "_responsive-desktop-block_1e0ai_41"
223
+ }, Gr = "_header_9xxjk_57", Hr = "_actions_9xxjk_131", Kr = "_breadcrumb_9xxjk_142", Vr = "_credits_9xxjk_157", Qr = "_pdplinks_9xxjk_185", Jr = "_similars_9xxjk_212", Yr = "_sizes_9xxjk_251", Xr = "_measurementTable_9xxjk_267", Zr = "_measurementHead_9xxjk_280", en = "_measurementRows_9xxjk_285", tn = "_measurementRowsTitle_9xxjk_302", rn = "_measurementRowsText_9xxjk_314", nn = "_measurementImage_9xxjk_325", on = "_measurementImageContainer_9xxjk_328", an = "_measurementContent_9xxjk_337", ln = "_measurementTitle_9xxjk_341", cn = "_measurementClose_9xxjk_352", fn = "_productref_9xxjk_417", un = "_slideOut_9xxjk_1", sn = "_slideIn_9xxjk_1", pn = "_content_9xxjk_397", yn = "_pdp_9xxjk_185", dn = "_divider_9xxjk_575", Si = {
224
+ "bottom-navigation": "_bottom-navigation_9xxjk_1",
225
+ "bottom-navigation__credits-modifier": "_bottom-navigation__credits-modifier_9xxjk_18",
226
+ "bottom-navigation__header": "_bottom-navigation__header_9xxjk_21",
227
+ "bottom-navigation__header-content": "_bottom-navigation__header-content_9xxjk_26",
228
+ "golden-tag-content": "_golden-tag-content_9xxjk_45",
229
+ "bottom-navigation__price-and-promo": "_bottom-navigation__price-and-promo_9xxjk_48",
230
+ header: Gr,
231
+ "golden-tag": "_golden-tag_9xxjk_45",
232
+ "golden-tag-video": "_golden-tag-video_9xxjk_86",
233
+ "golden-tag-content-text": "_golden-tag-content-text_9xxjk_105",
234
+ actions: Hr,
235
+ "add-to-cart": "_add-to-cart_9xxjk_138",
236
+ breadcrumb: Kr,
237
+ "breadcrumb--active": "_breadcrumb--active_9xxjk_147",
238
+ credits: Vr,
239
+ "gallery-carousel-modifier": "_gallery-carousel-modifier_9xxjk_162",
240
+ pdplinks: Qr,
241
+ "links-wrapper": "_links-wrapper_9xxjk_195",
242
+ similars: Jr,
243
+ "similars-info": "_similars-info_9xxjk_224",
244
+ "toggle-style-modifier": "_toggle-style-modifier_9xxjk_233",
245
+ "accessibility-info": "_accessibility-info_9xxjk_237",
246
+ sizes: Yr,
247
+ "price-wrapper": "_price-wrapper_9xxjk_263",
248
+ measurementTable: Xr,
249
+ measurementHead: Zr,
250
+ measurementRows: en,
251
+ measurementRowsTitle: tn,
252
+ measurementRowsText: rn,
253
+ measurementImage: nn,
254
+ measurementImageContainer: on,
255
+ measurementContent: an,
256
+ measurementTitle: ln,
257
+ measurementClose: cn,
258
+ "tabs-root-modifier": "_tabs-root-modifier_9xxjk_358",
259
+ "tabs-list-modifier": "_tabs-list-modifier_9xxjk_376",
260
+ "tabs-item-modifier": "_tabs-item-modifier_9xxjk_393",
261
+ "content-wrapper": "_content-wrapper_9xxjk_397",
262
+ productref: fn,
263
+ "tabs-panel": "_tabs-panel_9xxjk_428",
264
+ "tabs-panel-exit": "_tabs-panel-exit_9xxjk_434",
265
+ slideOut: un,
266
+ "tabs-panel-enter": "_tabs-panel-enter_9xxjk_438",
267
+ slideIn: sn,
268
+ content: pn,
269
+ pdp: yn,
270
+ "pdp-main": "_pdp-main_9xxjk_496",
271
+ "pdp-main__gallery-wrapper": "_pdp-main__gallery-wrapper_9xxjk_501",
272
+ "pdp-main__info": "_pdp-main__info_9xxjk_518",
273
+ "pdp-main__info-main-content": "_pdp-main__info-main-content_9xxjk_533",
274
+ "pdp-main__info-subsection": "_pdp-main__info-subsection_9xxjk_533",
275
+ "subsection-product-info": "_subsection-product-info_9xxjk_544",
276
+ "subsection-similars": "_subsection-similars_9xxjk_547",
277
+ "subsection-sizes": "_subsection-sizes_9xxjk_550",
278
+ "subsection-actions": "_subsection-actions_9xxjk_553",
279
+ "pdp-main__info-secondary-content": "_pdp-main__info-secondary-content_9xxjk_557",
280
+ "sections-title": "_sections-title_9xxjk_563",
281
+ divider: dn,
282
+ "breadcrumbs-desktop": "_breadcrumbs-desktop_9xxjk_580",
283
+ "breadcrumbs-mobile": "_breadcrumbs-mobile_9xxjk_589"
284
+ }, wi = ({
285
+ children: t,
286
+ data: e,
287
+ SectionZone: r,
288
+ className: n
289
+ }) => {
290
+ var c, p;
291
+ const o = ((c = e == null ? void 0 : e.filter((s) => {
292
+ var v, y;
293
+ return ((y = (v = s.config) == null ? void 0 : v.responsive) == null ? void 0 : y.deviceType) === "mobile";
294
+ })[0]) == null ? void 0 : c.sections) || [], a = ((p = e == null ? void 0 : e.filter((s) => {
295
+ var v, y;
296
+ return ((y = (v = s.config) == null ? void 0 : v.responsive) == null ? void 0 : y.deviceType) === "desktop";
297
+ })[0]) == null ? void 0 : p.sections) || [], i = o.slice(0, 1), f = o.slice(1, o.length), l = a.slice(0, 1), u = a.slice(1, a.length);
298
+ return /* @__PURE__ */ ft(_r, { children: [
299
+ /* @__PURE__ */ ft("div", { className: n, children: [
300
+ /* @__PURE__ */ $("div", { className: ue["responsive-mobile-flex"], children: /* @__PURE__ */ $(r, { data: i ?? [] }) }),
301
+ /* @__PURE__ */ $("div", { className: ue["responsive-desktop-flex"], children: /* @__PURE__ */ $(r, { data: l ?? [] }) })
302
+ ] }),
303
+ t,
304
+ /* @__PURE__ */ $("div", { className: ue["responsive-mobile-flex"], children: /* @__PURE__ */ $(r, { data: f ?? [] }) }),
305
+ /* @__PURE__ */ $("div", { className: ue["responsive-desktop-flex"], children: /* @__PURE__ */ $(r, { data: u ?? [] }) }),
306
+ /* @__PURE__ */ $(br.Divider, {})
307
+ ] });
308
+ };
309
+ var J = TypeError;
310
+ const vn = {}, mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
311
+ __proto__: null,
312
+ default: vn
313
+ }, Symbol.toStringTag, { value: "Module" })), gn = /* @__PURE__ */ zr(mn);
314
+ var tt = typeof Map == "function" && Map.prototype, Pe = Object.getOwnPropertyDescriptor && tt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, me = tt && Pe && typeof Pe.get == "function" ? Pe.get : null, yt = tt && Map.prototype.forEach, rt = typeof Set == "function" && Set.prototype, $e = Object.getOwnPropertyDescriptor && rt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, ge = rt && $e && typeof $e.get == "function" ? $e.get : null, dt = rt && Set.prototype.forEach, hn = typeof WeakMap == "function" && WeakMap.prototype, ee = hn ? WeakMap.prototype.has : null, _n = typeof WeakSet == "function" && WeakSet.prototype, te = _n ? WeakSet.prototype.has : null, bn = typeof WeakRef == "function" && WeakRef.prototype, vt = bn ? WeakRef.prototype.deref : null, Sn = Boolean.prototype.valueOf, wn = Object.prototype.toString, xn = Function.prototype.toString, An = String.prototype.match, nt = String.prototype.slice, C = String.prototype.replace, On = String.prototype.toUpperCase, mt = String.prototype.toLowerCase, Wt = RegExp.prototype.test, gt = Array.prototype.concat, E = Array.prototype.join, En = Array.prototype.slice, ht = Math.floor, Qe = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Ie = Object.getOwnPropertySymbols, Je = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, V = typeof Symbol == "function" && typeof Symbol.iterator == "object", re = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === V || !0) ? Symbol.toStringTag : null, zt = Object.prototype.propertyIsEnumerable, _t = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
315
+ return t.__proto__;
316
+ } : null);
317
+ function bt(t, e) {
318
+ if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || Wt.call(/e/, e))
319
+ return e;
320
+ var r = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
321
+ if (typeof t == "number") {
322
+ var n = t < 0 ? -ht(-t) : ht(t);
323
+ if (n !== t) {
324
+ var o = String(n), a = nt.call(e, o.length + 1);
325
+ return C.call(o, r, "$&_") + "." + C.call(C.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
326
+ }
327
+ }
328
+ return C.call(e, r, "$&_");
329
+ }
330
+ var Ye = gn, St = Ye.custom, wt = Kt(St) ? St : null, Gt = {
331
+ __proto__: null,
332
+ double: '"',
333
+ single: "'"
334
+ }, Pn = {
335
+ __proto__: null,
336
+ double: /(["\\])/g,
337
+ single: /(['\\])/g
338
+ }, be = function t(e, r, n, o) {
339
+ var a = r || {};
340
+ if (I(a, "quoteStyle") && !I(Gt, a.quoteStyle))
341
+ throw new TypeError('option "quoteStyle" must be "single" or "double"');
342
+ if (I(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
343
+ throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
344
+ var i = I(a, "customInspect") ? a.customInspect : !0;
345
+ if (typeof i != "boolean" && i !== "symbol")
346
+ throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
347
+ if (I(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
348
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
349
+ if (I(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
350
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
351
+ var f = a.numericSeparator;
352
+ if (typeof e > "u")
353
+ return "undefined";
354
+ if (e === null)
355
+ return "null";
356
+ if (typeof e == "boolean")
357
+ return e ? "true" : "false";
358
+ if (typeof e == "string")
359
+ return Qt(e, a);
360
+ if (typeof e == "number") {
361
+ if (e === 0)
362
+ return 1 / 0 / e > 0 ? "0" : "-0";
363
+ var l = String(e);
364
+ return f ? bt(e, l) : l;
365
+ }
366
+ if (typeof e == "bigint") {
367
+ var u = String(e) + "n";
368
+ return f ? bt(e, u) : u;
369
+ }
370
+ var c = typeof a.depth > "u" ? 5 : a.depth;
371
+ if (typeof n > "u" && (n = 0), n >= c && c > 0 && typeof e == "object")
372
+ return Xe(e) ? "[Array]" : "[Object]";
373
+ var p = Gn(a, n);
374
+ if (typeof o > "u")
375
+ o = [];
376
+ else if (Vt(o, e) >= 0)
377
+ return "[Circular]";
378
+ function s(x, D, P) {
379
+ if (D && (o = En.call(o), o.push(D)), P) {
380
+ var X = {
381
+ depth: a.depth
382
+ };
383
+ return I(a, "quoteStyle") && (X.quoteStyle = a.quoteStyle), t(x, X, n + 1, o);
384
+ }
385
+ return t(x, a, n + 1, o);
386
+ }
387
+ if (typeof e == "function" && !xt(e)) {
388
+ var v = Nn(e), y = se(e, s);
389
+ return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (y.length > 0 ? " { " + E.call(y, ", ") + " }" : "");
390
+ }
391
+ if (Kt(e)) {
392
+ var h = V ? C.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Je.call(e);
393
+ return typeof e == "object" && !V ? Z(h) : h;
394
+ }
395
+ if (qn(e)) {
396
+ for (var S = "<" + mt.call(String(e.nodeName)), w = e.attributes || [], R = 0; R < w.length; R++)
397
+ S += " " + w[R].name + "=" + Ht($n(w[R].value), "double", a);
398
+ return S += ">", e.childNodes && e.childNodes.length && (S += "..."), S += "</" + mt.call(String(e.nodeName)) + ">", S;
399
+ }
400
+ if (Xe(e)) {
401
+ if (e.length === 0)
402
+ return "[]";
403
+ var m = se(e, s);
404
+ return p && !zn(m) ? "[" + Ze(m, p) + "]" : "[ " + E.call(m, ", ") + " ]";
405
+ }
406
+ if (Rn(e)) {
407
+ var k = se(e, s);
408
+ return !("cause" in Error.prototype) && "cause" in e && !zt.call(e, "cause") ? "{ [" + String(e) + "] " + E.call(gt.call("[cause]: " + s(e.cause), k), ", ") + " }" : k.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + E.call(k, ", ") + " }";
409
+ }
410
+ if (typeof e == "object" && i) {
411
+ if (wt && typeof e[wt] == "function" && Ye)
412
+ return Ye(e, { depth: c - n });
413
+ if (i !== "symbol" && typeof e.inspect == "function")
414
+ return e.inspect();
415
+ }
416
+ if (Mn(e)) {
417
+ var N = [];
418
+ return yt && yt.call(e, function(x, D) {
419
+ N.push(s(D, e, !0) + " => " + s(x, e));
420
+ }), At("Map", me.call(e), N, p);
421
+ }
422
+ if (Ln(e)) {
423
+ var Y = [];
424
+ return dt && dt.call(e, function(x) {
425
+ Y.push(s(x, e));
426
+ }), At("Set", ge.call(e), Y, p);
427
+ }
428
+ if (jn(e))
429
+ return Re("WeakMap");
430
+ if (Un(e))
431
+ return Re("WeakSet");
432
+ if (Bn(e))
433
+ return Re("WeakRef");
434
+ if (Fn(e))
435
+ return Z(s(Number(e)));
436
+ if (Cn(e))
437
+ return Z(s(Qe.call(e)));
438
+ if (Dn(e))
439
+ return Z(Sn.call(e));
440
+ if (kn(e))
441
+ return Z(s(String(e)));
442
+ if (typeof window < "u" && e === window)
443
+ return "{ [object Window] }";
444
+ if (typeof globalThis < "u" && e === globalThis || typeof pt < "u" && e === pt)
445
+ return "{ [object globalThis] }";
446
+ if (!In(e) && !xt(e)) {
447
+ var q = se(e, s), ce = _t ? _t(e) === Object.prototype : e instanceof Object || e.constructor === Object, M = e instanceof Object ? "" : "null prototype", F = !ce && re && Object(e) === e && re in e ? nt.call(T(e), 8, -1) : M ? "Object" : "", fe = ce || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", W = fe + (F || M ? "[" + E.call(gt.call([], F || [], M || []), ": ") + "] " : "");
448
+ return q.length === 0 ? W + "{}" : p ? W + "{" + Ze(q, p) + "}" : W + "{ " + E.call(q, ", ") + " }";
449
+ }
450
+ return String(e);
451
+ };
452
+ function Ht(t, e, r) {
453
+ var n = r.quoteStyle || e, o = Gt[n];
454
+ return o + t + o;
455
+ }
456
+ function $n(t) {
457
+ return C.call(String(t), /"/g, "&quot;");
458
+ }
459
+ function U(t) {
460
+ return !re || !(typeof t == "object" && (re in t || typeof t[re] < "u"));
461
+ }
462
+ function Xe(t) {
463
+ return T(t) === "[object Array]" && U(t);
464
+ }
465
+ function In(t) {
466
+ return T(t) === "[object Date]" && U(t);
467
+ }
468
+ function xt(t) {
469
+ return T(t) === "[object RegExp]" && U(t);
470
+ }
471
+ function Rn(t) {
472
+ return T(t) === "[object Error]" && U(t);
473
+ }
474
+ function kn(t) {
475
+ return T(t) === "[object String]" && U(t);
476
+ }
477
+ function Fn(t) {
478
+ return T(t) === "[object Number]" && U(t);
479
+ }
480
+ function Dn(t) {
481
+ return T(t) === "[object Boolean]" && U(t);
482
+ }
483
+ function Kt(t) {
484
+ if (V)
485
+ return t && typeof t == "object" && t instanceof Symbol;
486
+ if (typeof t == "symbol")
487
+ return !0;
488
+ if (!t || typeof t != "object" || !Je)
489
+ return !1;
490
+ try {
491
+ return Je.call(t), !0;
492
+ } catch {
493
+ }
494
+ return !1;
495
+ }
496
+ function Cn(t) {
497
+ if (!t || typeof t != "object" || !Qe)
498
+ return !1;
499
+ try {
500
+ return Qe.call(t), !0;
501
+ } catch {
502
+ }
503
+ return !1;
504
+ }
505
+ var Tn = Object.prototype.hasOwnProperty || function(t) {
506
+ return t in this;
507
+ };
508
+ function I(t, e) {
509
+ return Tn.call(t, e);
510
+ }
511
+ function T(t) {
512
+ return wn.call(t);
513
+ }
514
+ function Nn(t) {
515
+ if (t.name)
516
+ return t.name;
517
+ var e = An.call(xn.call(t), /^function\s*([\w$]+)/);
518
+ return e ? e[1] : null;
519
+ }
520
+ function Vt(t, e) {
521
+ if (t.indexOf)
522
+ return t.indexOf(e);
523
+ for (var r = 0, n = t.length; r < n; r++)
524
+ if (t[r] === e)
525
+ return r;
526
+ return -1;
527
+ }
528
+ function Mn(t) {
529
+ if (!me || !t || typeof t != "object")
530
+ return !1;
531
+ try {
532
+ me.call(t);
533
+ try {
534
+ ge.call(t);
535
+ } catch {
536
+ return !0;
537
+ }
538
+ return t instanceof Map;
539
+ } catch {
540
+ }
541
+ return !1;
542
+ }
543
+ function jn(t) {
544
+ if (!ee || !t || typeof t != "object")
545
+ return !1;
546
+ try {
547
+ ee.call(t, ee);
548
+ try {
549
+ te.call(t, te);
550
+ } catch {
551
+ return !0;
552
+ }
553
+ return t instanceof WeakMap;
554
+ } catch {
555
+ }
556
+ return !1;
557
+ }
558
+ function Bn(t) {
559
+ if (!vt || !t || typeof t != "object")
560
+ return !1;
561
+ try {
562
+ return vt.call(t), !0;
563
+ } catch {
564
+ }
565
+ return !1;
566
+ }
567
+ function Ln(t) {
568
+ if (!ge || !t || typeof t != "object")
569
+ return !1;
570
+ try {
571
+ ge.call(t);
572
+ try {
573
+ me.call(t);
574
+ } catch {
575
+ return !0;
576
+ }
577
+ return t instanceof Set;
578
+ } catch {
579
+ }
580
+ return !1;
581
+ }
582
+ function Un(t) {
583
+ if (!te || !t || typeof t != "object")
584
+ return !1;
585
+ try {
586
+ te.call(t, te);
587
+ try {
588
+ ee.call(t, ee);
589
+ } catch {
590
+ return !0;
591
+ }
592
+ return t instanceof WeakSet;
593
+ } catch {
594
+ }
595
+ return !1;
596
+ }
597
+ function qn(t) {
598
+ return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
599
+ }
600
+ function Qt(t, e) {
601
+ if (t.length > e.maxStringLength) {
602
+ var r = t.length - e.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : "");
603
+ return Qt(nt.call(t, 0, e.maxStringLength), e) + n;
604
+ }
605
+ var o = Pn[e.quoteStyle || "single"];
606
+ o.lastIndex = 0;
607
+ var a = C.call(C.call(t, o, "\\$1"), /[\x00-\x1f]/g, Wn);
608
+ return Ht(a, "single", e);
609
+ }
610
+ function Wn(t) {
611
+ var e = t.charCodeAt(0), r = {
612
+ 8: "b",
613
+ 9: "t",
614
+ 10: "n",
615
+ 12: "f",
616
+ 13: "r"
617
+ }[e];
618
+ return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + On.call(e.toString(16));
619
+ }
620
+ function Z(t) {
621
+ return "Object(" + t + ")";
622
+ }
623
+ function Re(t) {
624
+ return t + " { ? }";
625
+ }
626
+ function At(t, e, r, n) {
627
+ var o = n ? Ze(r, n) : E.call(r, ", ");
628
+ return t + " (" + e + ") {" + o + "}";
629
+ }
630
+ function zn(t) {
631
+ for (var e = 0; e < t.length; e++)
632
+ if (Vt(t[e], `
633
+ `) >= 0)
634
+ return !1;
635
+ return !0;
636
+ }
637
+ function Gn(t, e) {
638
+ var r;
639
+ if (t.indent === " ")
640
+ r = " ";
641
+ else if (typeof t.indent == "number" && t.indent > 0)
642
+ r = E.call(Array(t.indent + 1), " ");
643
+ else
644
+ return null;
645
+ return {
646
+ base: r,
647
+ prev: E.call(Array(e + 1), r)
648
+ };
649
+ }
650
+ function Ze(t, e) {
651
+ if (t.length === 0)
652
+ return "";
653
+ var r = `
654
+ ` + e.prev + e.base;
655
+ return r + E.call(t, "," + r) + `
656
+ ` + e.prev;
657
+ }
658
+ function se(t, e) {
659
+ var r = Xe(t), n = [];
660
+ if (r) {
661
+ n.length = t.length;
662
+ for (var o = 0; o < t.length; o++)
663
+ n[o] = I(t, o) ? e(t[o], t) : "";
664
+ }
665
+ var a = typeof Ie == "function" ? Ie(t) : [], i;
666
+ if (V) {
667
+ i = {};
668
+ for (var f = 0; f < a.length; f++)
669
+ i["$" + a[f]] = a[f];
670
+ }
671
+ for (var l in t)
672
+ I(t, l) && (r && String(Number(l)) === l && l < t.length || V && i["$" + l] instanceof Symbol || (Wt.call(/[^\w$]/, l) ? n.push(e(l, t) + ": " + e(t[l], t)) : n.push(l + ": " + e(t[l], t))));
673
+ if (typeof Ie == "function")
674
+ for (var u = 0; u < a.length; u++)
675
+ zt.call(t, a[u]) && n.push("[" + e(a[u]) + "]: " + e(t[a[u]], t));
676
+ return n;
677
+ }
678
+ var Hn = be, Kn = J, Se = function(t, e, r) {
679
+ for (var n = t, o; (o = n.next) != null; n = o)
680
+ if (o.key === e)
681
+ return n.next = o.next, r || (o.next = /** @type {NonNullable<typeof list.next>} */
682
+ t.next, t.next = o), o;
683
+ }, Vn = function(t, e) {
684
+ if (t) {
685
+ var r = Se(t, e);
686
+ return r && r.value;
687
+ }
688
+ }, Qn = function(t, e, r) {
689
+ var n = Se(t, e);
690
+ n ? n.value = r : t.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
691
+ {
692
+ // eslint-disable-line no-param-reassign, no-extra-parens
693
+ key: e,
694
+ next: t.next,
695
+ value: r
696
+ };
697
+ }, Jn = function(t, e) {
698
+ return t ? !!Se(t, e) : !1;
699
+ }, Yn = function(t, e) {
700
+ if (t)
701
+ return Se(t, e, !0);
702
+ }, Xn = function() {
703
+ var e, r = {
704
+ assert: function(n) {
705
+ if (!r.has(n))
706
+ throw new Kn("Side channel does not contain " + Hn(n));
707
+ },
708
+ delete: function(n) {
709
+ var o = e && e.next, a = Yn(e, n);
710
+ return a && o && o === a && (e = void 0), !!a;
711
+ },
712
+ get: function(n) {
713
+ return Vn(e, n);
714
+ },
715
+ has: function(n) {
716
+ return Jn(e, n);
717
+ },
718
+ set: function(n, o) {
719
+ e || (e = {
720
+ next: void 0
721
+ }), Qn(
722
+ /** @type {NonNullable<typeof $o>} */
723
+ e,
724
+ n,
725
+ o
726
+ );
727
+ }
728
+ };
729
+ return r;
730
+ }, Jt = Object, Zn = Error, eo = EvalError, to = RangeError, ro = ReferenceError, no = SyntaxError, oo = URIError, ao = Math.abs, io = Math.floor, lo = Math.max, co = Math.min, fo = Math.pow, uo = Math.round, so = Number.isNaN || function(e) {
731
+ return e !== e;
732
+ }, po = so, yo = function(e) {
733
+ return po(e) || e === 0 ? e : e < 0 ? -1 : 1;
734
+ }, vo = Object.getOwnPropertyDescriptor, ye = vo;
735
+ if (ye)
736
+ try {
737
+ ye([], "length");
738
+ } catch {
739
+ ye = null;
740
+ }
741
+ var Yt = ye, de = Object.defineProperty || !1;
742
+ if (de)
743
+ try {
744
+ de({}, "a", { value: 1 });
745
+ } catch {
746
+ de = !1;
747
+ }
748
+ var mo = de, ke, Ot;
749
+ function go() {
750
+ return Ot || (Ot = 1, ke = function() {
751
+ if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
752
+ return !1;
753
+ if (typeof Symbol.iterator == "symbol")
754
+ return !0;
755
+ var e = {}, r = Symbol("test"), n = Object(r);
756
+ if (typeof r == "string" || Object.prototype.toString.call(r) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]")
757
+ return !1;
758
+ var o = 42;
759
+ e[r] = o;
760
+ for (var a in e)
761
+ return !1;
762
+ if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
763
+ return !1;
764
+ var i = Object.getOwnPropertySymbols(e);
765
+ if (i.length !== 1 || i[0] !== r || !Object.prototype.propertyIsEnumerable.call(e, r))
766
+ return !1;
767
+ if (typeof Object.getOwnPropertyDescriptor == "function") {
768
+ var f = (
769
+ /** @type {PropertyDescriptor} */
770
+ Object.getOwnPropertyDescriptor(e, r)
771
+ );
772
+ if (f.value !== o || f.enumerable !== !0)
773
+ return !1;
774
+ }
775
+ return !0;
776
+ }), ke;
777
+ }
778
+ var Fe, Et;
779
+ function ho() {
780
+ if (Et) return Fe;
781
+ Et = 1;
782
+ var t = typeof Symbol < "u" && Symbol, e = go();
783
+ return Fe = function() {
784
+ return typeof t != "function" || typeof Symbol != "function" || typeof t("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
785
+ }, Fe;
786
+ }
787
+ var De, Pt;
788
+ function Xt() {
789
+ return Pt || (Pt = 1, De = typeof Reflect < "u" && Reflect.getPrototypeOf || null), De;
790
+ }
791
+ var Ce, $t;
792
+ function Zt() {
793
+ if ($t) return Ce;
794
+ $t = 1;
795
+ var t = Jt;
796
+ return Ce = t.getPrototypeOf || null, Ce;
797
+ }
798
+ var Te, It;
799
+ function _o() {
800
+ if (It) return Te;
801
+ It = 1;
802
+ var t = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, r = Math.max, n = "[object Function]", o = function(l, u) {
803
+ for (var c = [], p = 0; p < l.length; p += 1)
804
+ c[p] = l[p];
805
+ for (var s = 0; s < u.length; s += 1)
806
+ c[s + l.length] = u[s];
807
+ return c;
808
+ }, a = function(l, u) {
809
+ for (var c = [], p = u, s = 0; p < l.length; p += 1, s += 1)
810
+ c[s] = l[p];
811
+ return c;
812
+ }, i = function(f, l) {
813
+ for (var u = "", c = 0; c < f.length; c += 1)
814
+ u += f[c], c + 1 < f.length && (u += l);
815
+ return u;
816
+ };
817
+ return Te = function(l) {
818
+ var u = this;
819
+ if (typeof u != "function" || e.apply(u) !== n)
820
+ throw new TypeError(t + u);
821
+ for (var c = a(arguments, 1), p, s = function() {
822
+ if (this instanceof p) {
823
+ var w = u.apply(
824
+ this,
825
+ o(c, arguments)
826
+ );
827
+ return Object(w) === w ? w : this;
828
+ }
829
+ return u.apply(
830
+ l,
831
+ o(c, arguments)
832
+ );
833
+ }, v = r(0, u.length - c.length), y = [], h = 0; h < v; h++)
834
+ y[h] = "$" + h;
835
+ if (p = Function("binder", "return function (" + i(y, ",") + "){ return binder.apply(this,arguments); }")(s), u.prototype) {
836
+ var S = function() {
837
+ };
838
+ S.prototype = u.prototype, p.prototype = new S(), S.prototype = null;
839
+ }
840
+ return p;
841
+ }, Te;
842
+ }
843
+ var Ne, Rt;
844
+ function we() {
845
+ if (Rt) return Ne;
846
+ Rt = 1;
847
+ var t = _o();
848
+ return Ne = Function.prototype.bind || t, Ne;
849
+ }
850
+ var Me, kt;
851
+ function ot() {
852
+ return kt || (kt = 1, Me = Function.prototype.call), Me;
853
+ }
854
+ var je, Ft;
855
+ function er() {
856
+ return Ft || (Ft = 1, je = Function.prototype.apply), je;
857
+ }
858
+ var bo = typeof Reflect < "u" && Reflect && Reflect.apply, So = we(), wo = er(), xo = ot(), Ao = bo, Oo = Ao || So.call(xo, wo), Eo = we(), Po = J, $o = ot(), Io = Oo, tr = function(e) {
859
+ if (e.length < 1 || typeof e[0] != "function")
860
+ throw new Po("a function is required");
861
+ return Io(Eo, $o, e);
862
+ }, Be, Dt;
863
+ function Ro() {
864
+ if (Dt) return Be;
865
+ Dt = 1;
866
+ var t = tr, e = Yt, r;
867
+ try {
868
+ r = /** @type {{ __proto__?: typeof Array.prototype }} */
869
+ [].__proto__ === Array.prototype;
870
+ } catch (i) {
871
+ if (!i || typeof i != "object" || !("code" in i) || i.code !== "ERR_PROTO_ACCESS")
872
+ throw i;
873
+ }
874
+ var n = !!r && e && e(
875
+ Object.prototype,
876
+ /** @type {keyof typeof Object.prototype} */
877
+ "__proto__"
878
+ ), o = Object, a = o.getPrototypeOf;
879
+ return Be = n && typeof n.get == "function" ? t([n.get]) : typeof a == "function" ? (
880
+ /** @type {import('./get')} */
881
+ function(f) {
882
+ return a(f == null ? f : o(f));
883
+ }
884
+ ) : !1, Be;
885
+ }
886
+ var Le, Ct;
887
+ function ko() {
888
+ if (Ct) return Le;
889
+ Ct = 1;
890
+ var t = Xt(), e = Zt(), r = Ro();
891
+ return Le = t ? function(o) {
892
+ return t(o);
893
+ } : e ? function(o) {
894
+ if (!o || typeof o != "object" && typeof o != "function")
895
+ throw new TypeError("getProto: not an object");
896
+ return e(o);
897
+ } : r ? function(o) {
898
+ return r(o);
899
+ } : null, Le;
900
+ }
901
+ var Ue, Tt;
902
+ function Fo() {
903
+ if (Tt) return Ue;
904
+ Tt = 1;
905
+ var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, r = we();
906
+ return Ue = r.call(t, e), Ue;
907
+ }
908
+ var d, Do = Jt, Co = Zn, To = eo, No = to, Mo = ro, Q = no, K = J, jo = oo, Bo = ao, Lo = io, Uo = lo, qo = co, Wo = fo, zo = uo, Go = yo, rr = Function, qe = function(t) {
909
+ try {
910
+ return rr('"use strict"; return (' + t + ").constructor;")();
911
+ } catch {
912
+ }
913
+ }, oe = Yt, Ho = mo, We = function() {
914
+ throw new K();
915
+ }, Ko = oe ? function() {
916
+ try {
917
+ return arguments.callee, We;
918
+ } catch {
919
+ try {
920
+ return oe(arguments, "callee").get;
921
+ } catch {
922
+ return We;
923
+ }
924
+ }
925
+ }() : We, z = ho()(), b = ko(), Vo = Zt(), Qo = Xt(), nr = er(), ae = ot(), H = {}, Jo = typeof Uint8Array > "u" || !b ? d : b(Uint8Array), B = {
926
+ __proto__: null,
927
+ "%AggregateError%": typeof AggregateError > "u" ? d : AggregateError,
928
+ "%Array%": Array,
929
+ "%ArrayBuffer%": typeof ArrayBuffer > "u" ? d : ArrayBuffer,
930
+ "%ArrayIteratorPrototype%": z && b ? b([][Symbol.iterator]()) : d,
931
+ "%AsyncFromSyncIteratorPrototype%": d,
932
+ "%AsyncFunction%": H,
933
+ "%AsyncGenerator%": H,
934
+ "%AsyncGeneratorFunction%": H,
935
+ "%AsyncIteratorPrototype%": H,
936
+ "%Atomics%": typeof Atomics > "u" ? d : Atomics,
937
+ "%BigInt%": typeof BigInt > "u" ? d : BigInt,
938
+ "%BigInt64Array%": typeof BigInt64Array > "u" ? d : BigInt64Array,
939
+ "%BigUint64Array%": typeof BigUint64Array > "u" ? d : BigUint64Array,
940
+ "%Boolean%": Boolean,
941
+ "%DataView%": typeof DataView > "u" ? d : DataView,
942
+ "%Date%": Date,
943
+ "%decodeURI%": decodeURI,
944
+ "%decodeURIComponent%": decodeURIComponent,
945
+ "%encodeURI%": encodeURI,
946
+ "%encodeURIComponent%": encodeURIComponent,
947
+ "%Error%": Co,
948
+ "%eval%": eval,
949
+ // eslint-disable-line no-eval
950
+ "%EvalError%": To,
951
+ "%Float16Array%": typeof Float16Array > "u" ? d : Float16Array,
952
+ "%Float32Array%": typeof Float32Array > "u" ? d : Float32Array,
953
+ "%Float64Array%": typeof Float64Array > "u" ? d : Float64Array,
954
+ "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? d : FinalizationRegistry,
955
+ "%Function%": rr,
956
+ "%GeneratorFunction%": H,
957
+ "%Int8Array%": typeof Int8Array > "u" ? d : Int8Array,
958
+ "%Int16Array%": typeof Int16Array > "u" ? d : Int16Array,
959
+ "%Int32Array%": typeof Int32Array > "u" ? d : Int32Array,
960
+ "%isFinite%": isFinite,
961
+ "%isNaN%": isNaN,
962
+ "%IteratorPrototype%": z && b ? b(b([][Symbol.iterator]())) : d,
963
+ "%JSON%": typeof JSON == "object" ? JSON : d,
964
+ "%Map%": typeof Map > "u" ? d : Map,
965
+ "%MapIteratorPrototype%": typeof Map > "u" || !z || !b ? d : b((/* @__PURE__ */ new Map())[Symbol.iterator]()),
966
+ "%Math%": Math,
967
+ "%Number%": Number,
968
+ "%Object%": Do,
969
+ "%Object.getOwnPropertyDescriptor%": oe,
970
+ "%parseFloat%": parseFloat,
971
+ "%parseInt%": parseInt,
972
+ "%Promise%": typeof Promise > "u" ? d : Promise,
973
+ "%Proxy%": typeof Proxy > "u" ? d : Proxy,
974
+ "%RangeError%": No,
975
+ "%ReferenceError%": Mo,
976
+ "%Reflect%": typeof Reflect > "u" ? d : Reflect,
977
+ "%RegExp%": RegExp,
978
+ "%Set%": typeof Set > "u" ? d : Set,
979
+ "%SetIteratorPrototype%": typeof Set > "u" || !z || !b ? d : b((/* @__PURE__ */ new Set())[Symbol.iterator]()),
980
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? d : SharedArrayBuffer,
981
+ "%String%": String,
982
+ "%StringIteratorPrototype%": z && b ? b(""[Symbol.iterator]()) : d,
983
+ "%Symbol%": z ? Symbol : d,
984
+ "%SyntaxError%": Q,
985
+ "%ThrowTypeError%": Ko,
986
+ "%TypedArray%": Jo,
987
+ "%TypeError%": K,
988
+ "%Uint8Array%": typeof Uint8Array > "u" ? d : Uint8Array,
989
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? d : Uint8ClampedArray,
990
+ "%Uint16Array%": typeof Uint16Array > "u" ? d : Uint16Array,
991
+ "%Uint32Array%": typeof Uint32Array > "u" ? d : Uint32Array,
992
+ "%URIError%": jo,
993
+ "%WeakMap%": typeof WeakMap > "u" ? d : WeakMap,
994
+ "%WeakRef%": typeof WeakRef > "u" ? d : WeakRef,
995
+ "%WeakSet%": typeof WeakSet > "u" ? d : WeakSet,
996
+ "%Function.prototype.call%": ae,
997
+ "%Function.prototype.apply%": nr,
998
+ "%Object.defineProperty%": Ho,
999
+ "%Object.getPrototypeOf%": Vo,
1000
+ "%Math.abs%": Bo,
1001
+ "%Math.floor%": Lo,
1002
+ "%Math.max%": Uo,
1003
+ "%Math.min%": qo,
1004
+ "%Math.pow%": Wo,
1005
+ "%Math.round%": zo,
1006
+ "%Math.sign%": Go,
1007
+ "%Reflect.getPrototypeOf%": Qo
1008
+ };
1009
+ if (b)
1010
+ try {
1011
+ null.error;
1012
+ } catch (t) {
1013
+ var Yo = b(b(t));
1014
+ B["%Error.prototype%"] = Yo;
1015
+ }
1016
+ var Xo = function t(e) {
1017
+ var r;
1018
+ if (e === "%AsyncFunction%")
1019
+ r = qe("async function () {}");
1020
+ else if (e === "%GeneratorFunction%")
1021
+ r = qe("function* () {}");
1022
+ else if (e === "%AsyncGeneratorFunction%")
1023
+ r = qe("async function* () {}");
1024
+ else if (e === "%AsyncGenerator%") {
1025
+ var n = t("%AsyncGeneratorFunction%");
1026
+ n && (r = n.prototype);
1027
+ } else if (e === "%AsyncIteratorPrototype%") {
1028
+ var o = t("%AsyncGenerator%");
1029
+ o && b && (r = b(o.prototype));
1030
+ }
1031
+ return B[e] = r, r;
1032
+ }, Nt = {
1033
+ __proto__: null,
1034
+ "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
1035
+ "%ArrayPrototype%": ["Array", "prototype"],
1036
+ "%ArrayProto_entries%": ["Array", "prototype", "entries"],
1037
+ "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
1038
+ "%ArrayProto_keys%": ["Array", "prototype", "keys"],
1039
+ "%ArrayProto_values%": ["Array", "prototype", "values"],
1040
+ "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
1041
+ "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
1042
+ "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
1043
+ "%BooleanPrototype%": ["Boolean", "prototype"],
1044
+ "%DataViewPrototype%": ["DataView", "prototype"],
1045
+ "%DatePrototype%": ["Date", "prototype"],
1046
+ "%ErrorPrototype%": ["Error", "prototype"],
1047
+ "%EvalErrorPrototype%": ["EvalError", "prototype"],
1048
+ "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
1049
+ "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
1050
+ "%FunctionPrototype%": ["Function", "prototype"],
1051
+ "%Generator%": ["GeneratorFunction", "prototype"],
1052
+ "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
1053
+ "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
1054
+ "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
1055
+ "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
1056
+ "%JSONParse%": ["JSON", "parse"],
1057
+ "%JSONStringify%": ["JSON", "stringify"],
1058
+ "%MapPrototype%": ["Map", "prototype"],
1059
+ "%NumberPrototype%": ["Number", "prototype"],
1060
+ "%ObjectPrototype%": ["Object", "prototype"],
1061
+ "%ObjProto_toString%": ["Object", "prototype", "toString"],
1062
+ "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
1063
+ "%PromisePrototype%": ["Promise", "prototype"],
1064
+ "%PromiseProto_then%": ["Promise", "prototype", "then"],
1065
+ "%Promise_all%": ["Promise", "all"],
1066
+ "%Promise_reject%": ["Promise", "reject"],
1067
+ "%Promise_resolve%": ["Promise", "resolve"],
1068
+ "%RangeErrorPrototype%": ["RangeError", "prototype"],
1069
+ "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
1070
+ "%RegExpPrototype%": ["RegExp", "prototype"],
1071
+ "%SetPrototype%": ["Set", "prototype"],
1072
+ "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
1073
+ "%StringPrototype%": ["String", "prototype"],
1074
+ "%SymbolPrototype%": ["Symbol", "prototype"],
1075
+ "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
1076
+ "%TypedArrayPrototype%": ["TypedArray", "prototype"],
1077
+ "%TypeErrorPrototype%": ["TypeError", "prototype"],
1078
+ "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
1079
+ "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
1080
+ "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
1081
+ "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
1082
+ "%URIErrorPrototype%": ["URIError", "prototype"],
1083
+ "%WeakMapPrototype%": ["WeakMap", "prototype"],
1084
+ "%WeakSetPrototype%": ["WeakSet", "prototype"]
1085
+ }, ie = we(), he = Fo(), Zo = ie.call(ae, Array.prototype.concat), ea = ie.call(nr, Array.prototype.splice), Mt = ie.call(ae, String.prototype.replace), _e = ie.call(ae, String.prototype.slice), ta = ie.call(ae, RegExp.prototype.exec), ra = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, na = /\\(\\)?/g, oa = function(e) {
1086
+ var r = _e(e, 0, 1), n = _e(e, -1);
1087
+ if (r === "%" && n !== "%")
1088
+ throw new Q("invalid intrinsic syntax, expected closing `%`");
1089
+ if (n === "%" && r !== "%")
1090
+ throw new Q("invalid intrinsic syntax, expected opening `%`");
1091
+ var o = [];
1092
+ return Mt(e, ra, function(a, i, f, l) {
1093
+ o[o.length] = f ? Mt(l, na, "$1") : i || a;
1094
+ }), o;
1095
+ }, aa = function(e, r) {
1096
+ var n = e, o;
1097
+ if (he(Nt, n) && (o = Nt[n], n = "%" + o[0] + "%"), he(B, n)) {
1098
+ var a = B[n];
1099
+ if (a === H && (a = Xo(n)), typeof a > "u" && !r)
1100
+ throw new K("intrinsic " + e + " exists, but is not available. Please file an issue!");
1101
+ return {
1102
+ alias: o,
1103
+ name: n,
1104
+ value: a
1105
+ };
1106
+ }
1107
+ throw new Q("intrinsic " + e + " does not exist!");
1108
+ }, at = function(e, r) {
1109
+ if (typeof e != "string" || e.length === 0)
1110
+ throw new K("intrinsic name must be a non-empty string");
1111
+ if (arguments.length > 1 && typeof r != "boolean")
1112
+ throw new K('"allowMissing" argument must be a boolean');
1113
+ if (ta(/^%?[^%]*%?$/, e) === null)
1114
+ throw new Q("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
1115
+ var n = oa(e), o = n.length > 0 ? n[0] : "", a = aa("%" + o + "%", r), i = a.name, f = a.value, l = !1, u = a.alias;
1116
+ u && (o = u[0], ea(n, Zo([0, 1], u)));
1117
+ for (var c = 1, p = !0; c < n.length; c += 1) {
1118
+ var s = n[c], v = _e(s, 0, 1), y = _e(s, -1);
1119
+ if ((v === '"' || v === "'" || v === "`" || y === '"' || y === "'" || y === "`") && v !== y)
1120
+ throw new Q("property names with quotes must have matching quotes");
1121
+ if ((s === "constructor" || !p) && (l = !0), o += "." + s, i = "%" + o + "%", he(B, i))
1122
+ f = B[i];
1123
+ else if (f != null) {
1124
+ if (!(s in f)) {
1125
+ if (!r)
1126
+ throw new K("base intrinsic for " + e + " exists, but the property is not available.");
1127
+ return;
1128
+ }
1129
+ if (oe && c + 1 >= n.length) {
1130
+ var h = oe(f, s);
1131
+ p = !!h, p && "get" in h && !("originalValue" in h.get) ? f = h.get : f = f[s];
1132
+ } else
1133
+ p = he(f, s), f = f[s];
1134
+ p && !l && (B[i] = f);
1135
+ }
1136
+ }
1137
+ return f;
1138
+ }, or = at, ar = tr, ia = ar([or("%String.prototype.indexOf%")]), ir = function(e, r) {
1139
+ var n = (
1140
+ /** @type {(this: unknown, ...args: unknown[]) => unknown} */
1141
+ or(e, !!r)
1142
+ );
1143
+ return typeof n == "function" && ia(e, ".prototype.") > -1 ? ar(
1144
+ /** @type {const} */
1145
+ [n]
1146
+ ) : n;
1147
+ }, la = at, le = ir, ca = be, fa = J, jt = la("%Map%", !0), ua = le("Map.prototype.get", !0), sa = le("Map.prototype.set", !0), pa = le("Map.prototype.has", !0), ya = le("Map.prototype.delete", !0), da = le("Map.prototype.size", !0), lr = !!jt && /** @type {Exclude<import('.'), false>} */
1148
+ function() {
1149
+ var e, r = {
1150
+ assert: function(n) {
1151
+ if (!r.has(n))
1152
+ throw new fa("Side channel does not contain " + ca(n));
1153
+ },
1154
+ delete: function(n) {
1155
+ if (e) {
1156
+ var o = ya(e, n);
1157
+ return da(e) === 0 && (e = void 0), o;
1158
+ }
1159
+ return !1;
1160
+ },
1161
+ get: function(n) {
1162
+ if (e)
1163
+ return ua(e, n);
1164
+ },
1165
+ has: function(n) {
1166
+ return e ? pa(e, n) : !1;
1167
+ },
1168
+ set: function(n, o) {
1169
+ e || (e = new jt()), sa(e, n, o);
1170
+ }
1171
+ };
1172
+ return r;
1173
+ }, va = at, xe = ir, ma = be, pe = lr, ga = J, G = va("%WeakMap%", !0), ha = xe("WeakMap.prototype.get", !0), _a = xe("WeakMap.prototype.set", !0), ba = xe("WeakMap.prototype.has", !0), Sa = xe("WeakMap.prototype.delete", !0), wa = G ? (
1174
+ /** @type {Exclude<import('.'), false>} */
1175
+ function() {
1176
+ var e, r, n = {
1177
+ assert: function(o) {
1178
+ if (!n.has(o))
1179
+ throw new ga("Side channel does not contain " + ma(o));
1180
+ },
1181
+ delete: function(o) {
1182
+ if (G && o && (typeof o == "object" || typeof o == "function")) {
1183
+ if (e)
1184
+ return Sa(e, o);
1185
+ } else if (pe && r)
1186
+ return r.delete(o);
1187
+ return !1;
1188
+ },
1189
+ get: function(o) {
1190
+ return G && o && (typeof o == "object" || typeof o == "function") && e ? ha(e, o) : r && r.get(o);
1191
+ },
1192
+ has: function(o) {
1193
+ return G && o && (typeof o == "object" || typeof o == "function") && e ? ba(e, o) : !!r && r.has(o);
1194
+ },
1195
+ set: function(o, a) {
1196
+ G && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new G()), _a(e, o, a)) : pe && (r || (r = pe()), r.set(o, a));
1197
+ }
1198
+ };
1199
+ return n;
1200
+ }
1201
+ ) : pe, xa = J, Aa = be, Oa = Xn, Ea = lr, Pa = wa, $a = Pa || Ea || Oa, Ia = function() {
1202
+ var e, r = {
1203
+ assert: function(n) {
1204
+ if (!r.has(n))
1205
+ throw new xa("Side channel does not contain " + Aa(n));
1206
+ },
1207
+ delete: function(n) {
1208
+ return !!e && e.delete(n);
1209
+ },
1210
+ get: function(n) {
1211
+ return e && e.get(n);
1212
+ },
1213
+ has: function(n) {
1214
+ return !!e && e.has(n);
1215
+ },
1216
+ set: function(n, o) {
1217
+ e || (e = $a()), e.set(n, o);
1218
+ }
1219
+ };
1220
+ return r;
1221
+ }, Ra = String.prototype.replace, ka = /%20/g, ze = {
1222
+ RFC1738: "RFC1738",
1223
+ RFC3986: "RFC3986"
1224
+ }, it = {
1225
+ default: ze.RFC3986,
1226
+ formatters: {
1227
+ RFC1738: function(t) {
1228
+ return Ra.call(t, ka, "+");
1229
+ },
1230
+ RFC3986: function(t) {
1231
+ return String(t);
1232
+ }
1233
+ },
1234
+ RFC1738: ze.RFC1738,
1235
+ RFC3986: ze.RFC3986
1236
+ }, Fa = it, Ge = Object.prototype.hasOwnProperty, j = Array.isArray, A = function() {
1237
+ for (var t = [], e = 0; e < 256; ++e)
1238
+ t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
1239
+ return t;
1240
+ }(), Da = function(e) {
1241
+ for (; e.length > 1; ) {
1242
+ var r = e.pop(), n = r.obj[r.prop];
1243
+ if (j(n)) {
1244
+ for (var o = [], a = 0; a < n.length; ++a)
1245
+ typeof n[a] < "u" && o.push(n[a]);
1246
+ r.obj[r.prop] = o;
1247
+ }
1248
+ }
1249
+ }, cr = function(e, r) {
1250
+ for (var n = r && r.plainObjects ? { __proto__: null } : {}, o = 0; o < e.length; ++o)
1251
+ typeof e[o] < "u" && (n[o] = e[o]);
1252
+ return n;
1253
+ }, Ca = function t(e, r, n) {
1254
+ if (!r)
1255
+ return e;
1256
+ if (typeof r != "object" && typeof r != "function") {
1257
+ if (j(e))
1258
+ e.push(r);
1259
+ else if (e && typeof e == "object")
1260
+ (n && (n.plainObjects || n.allowPrototypes) || !Ge.call(Object.prototype, r)) && (e[r] = !0);
1261
+ else
1262
+ return [e, r];
1263
+ return e;
1264
+ }
1265
+ if (!e || typeof e != "object")
1266
+ return [e].concat(r);
1267
+ var o = e;
1268
+ return j(e) && !j(r) && (o = cr(e, n)), j(e) && j(r) ? (r.forEach(function(a, i) {
1269
+ if (Ge.call(e, i)) {
1270
+ var f = e[i];
1271
+ f && typeof f == "object" && a && typeof a == "object" ? e[i] = t(f, a, n) : e.push(a);
1272
+ } else
1273
+ e[i] = a;
1274
+ }), e) : Object.keys(r).reduce(function(a, i) {
1275
+ var f = r[i];
1276
+ return Ge.call(a, i) ? a[i] = t(a[i], f, n) : a[i] = f, a;
1277
+ }, o);
1278
+ }, Ta = function(e, r) {
1279
+ return Object.keys(r).reduce(function(n, o) {
1280
+ return n[o] = r[o], n;
1281
+ }, e);
1282
+ }, Na = function(t, e, r) {
1283
+ var n = t.replace(/\+/g, " ");
1284
+ if (r === "iso-8859-1")
1285
+ return n.replace(/%[0-9a-f]{2}/gi, unescape);
1286
+ try {
1287
+ return decodeURIComponent(n);
1288
+ } catch {
1289
+ return n;
1290
+ }
1291
+ }, He = 1024, Ma = function(e, r, n, o, a) {
1292
+ if (e.length === 0)
1293
+ return e;
1294
+ var i = e;
1295
+ if (typeof e == "symbol" ? i = Symbol.prototype.toString.call(e) : typeof e != "string" && (i = String(e)), n === "iso-8859-1")
1296
+ return escape(i).replace(/%u[0-9a-f]{4}/gi, function(v) {
1297
+ return "%26%23" + parseInt(v.slice(2), 16) + "%3B";
1298
+ });
1299
+ for (var f = "", l = 0; l < i.length; l += He) {
1300
+ for (var u = i.length >= He ? i.slice(l, l + He) : i, c = [], p = 0; p < u.length; ++p) {
1301
+ var s = u.charCodeAt(p);
1302
+ if (s === 45 || s === 46 || s === 95 || s === 126 || s >= 48 && s <= 57 || s >= 65 && s <= 90 || s >= 97 && s <= 122 || a === Fa.RFC1738 && (s === 40 || s === 41)) {
1303
+ c[c.length] = u.charAt(p);
1304
+ continue;
1305
+ }
1306
+ if (s < 128) {
1307
+ c[c.length] = A[s];
1308
+ continue;
1309
+ }
1310
+ if (s < 2048) {
1311
+ c[c.length] = A[192 | s >> 6] + A[128 | s & 63];
1312
+ continue;
1313
+ }
1314
+ if (s < 55296 || s >= 57344) {
1315
+ c[c.length] = A[224 | s >> 12] + A[128 | s >> 6 & 63] + A[128 | s & 63];
1316
+ continue;
1317
+ }
1318
+ p += 1, s = 65536 + ((s & 1023) << 10 | u.charCodeAt(p) & 1023), c[c.length] = A[240 | s >> 18] + A[128 | s >> 12 & 63] + A[128 | s >> 6 & 63] + A[128 | s & 63];
1319
+ }
1320
+ f += c.join("");
1321
+ }
1322
+ return f;
1323
+ }, ja = function(e) {
1324
+ for (var r = [{ obj: { o: e }, prop: "o" }], n = [], o = 0; o < r.length; ++o)
1325
+ for (var a = r[o], i = a.obj[a.prop], f = Object.keys(i), l = 0; l < f.length; ++l) {
1326
+ var u = f[l], c = i[u];
1327
+ typeof c == "object" && c !== null && n.indexOf(c) === -1 && (r.push({ obj: i, prop: u }), n.push(c));
1328
+ }
1329
+ return Da(r), e;
1330
+ }, Ba = function(e) {
1331
+ return Object.prototype.toString.call(e) === "[object RegExp]";
1332
+ }, La = function(e) {
1333
+ return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
1334
+ }, Ua = function(e, r) {
1335
+ return [].concat(e, r);
1336
+ }, qa = function(e, r) {
1337
+ if (j(e)) {
1338
+ for (var n = [], o = 0; o < e.length; o += 1)
1339
+ n.push(r(e[o]));
1340
+ return n;
1341
+ }
1342
+ return r(e);
1343
+ }, fr = {
1344
+ arrayToObject: cr,
1345
+ assign: Ta,
1346
+ combine: Ua,
1347
+ compact: ja,
1348
+ decode: Na,
1349
+ encode: Ma,
1350
+ isBuffer: La,
1351
+ isRegExp: Ba,
1352
+ maybeMap: qa,
1353
+ merge: Ca
1354
+ }, ur = Ia, ve = fr, ne = it, Wa = Object.prototype.hasOwnProperty, sr = {
1355
+ brackets: function(e) {
1356
+ return e + "[]";
1357
+ },
1358
+ comma: "comma",
1359
+ indices: function(e, r) {
1360
+ return e + "[" + r + "]";
1361
+ },
1362
+ repeat: function(e) {
1363
+ return e;
1364
+ }
1365
+ }, O = Array.isArray, za = Array.prototype.push, pr = function(t, e) {
1366
+ za.apply(t, O(e) ? e : [e]);
1367
+ }, Ga = Date.prototype.toISOString, Bt = ne.default, _ = {
1368
+ addQueryPrefix: !1,
1369
+ allowDots: !1,
1370
+ allowEmptyArrays: !1,
1371
+ arrayFormat: "indices",
1372
+ charset: "utf-8",
1373
+ charsetSentinel: !1,
1374
+ commaRoundTrip: !1,
1375
+ delimiter: "&",
1376
+ encode: !0,
1377
+ encodeDotInKeys: !1,
1378
+ encoder: ve.encode,
1379
+ encodeValuesOnly: !1,
1380
+ filter: void 0,
1381
+ format: Bt,
1382
+ formatter: ne.formatters[Bt],
1383
+ // deprecated
1384
+ indices: !1,
1385
+ serializeDate: function(e) {
1386
+ return Ga.call(e);
1387
+ },
1388
+ skipNulls: !1,
1389
+ strictNullHandling: !1
1390
+ }, Ha = function(e) {
1391
+ return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
1392
+ }, Ke = {}, Ka = function t(e, r, n, o, a, i, f, l, u, c, p, s, v, y, h, S, w, R) {
1393
+ for (var m = e, k = R, N = 0, Y = !1; (k = k.get(Ke)) !== void 0 && !Y; ) {
1394
+ var q = k.get(e);
1395
+ if (N += 1, typeof q < "u") {
1396
+ if (q === N)
1397
+ throw new RangeError("Cyclic object value");
1398
+ Y = !0;
1399
+ }
1400
+ typeof k.get(Ke) > "u" && (N = 0);
1401
+ }
1402
+ if (typeof c == "function" ? m = c(r, m) : m instanceof Date ? m = v(m) : n === "comma" && O(m) && (m = ve.maybeMap(m, function(Ee) {
1403
+ return Ee instanceof Date ? v(Ee) : Ee;
1404
+ })), m === null) {
1405
+ if (i)
1406
+ return u && !S ? u(r, _.encoder, w, "key", y) : r;
1407
+ m = "";
1408
+ }
1409
+ if (Ha(m) || ve.isBuffer(m)) {
1410
+ if (u) {
1411
+ var ce = S ? r : u(r, _.encoder, w, "key", y);
1412
+ return [h(ce) + "=" + h(u(m, _.encoder, w, "value", y))];
1413
+ }
1414
+ return [h(r) + "=" + h(String(m))];
1415
+ }
1416
+ var M = [];
1417
+ if (typeof m > "u")
1418
+ return M;
1419
+ var F;
1420
+ if (n === "comma" && O(m))
1421
+ S && u && (m = ve.maybeMap(m, u)), F = [{ value: m.length > 0 ? m.join(",") || null : void 0 }];
1422
+ else if (O(c))
1423
+ F = c;
1424
+ else {
1425
+ var fe = Object.keys(m);
1426
+ F = p ? fe.sort(p) : fe;
1427
+ }
1428
+ var W = l ? String(r).replace(/\./g, "%2E") : String(r), x = o && O(m) && m.length === 1 ? W + "[]" : W;
1429
+ if (a && O(m) && m.length === 0)
1430
+ return x + "[]";
1431
+ for (var D = 0; D < F.length; ++D) {
1432
+ var P = F[D], X = typeof P == "object" && P && typeof P.value < "u" ? P.value : m[P];
1433
+ if (!(f && X === null)) {
1434
+ var Oe = s && l ? String(P).replace(/\./g, "%2E") : String(P), hr = O(m) ? typeof n == "function" ? n(x, Oe) : x : x + (s ? "." + Oe : "[" + Oe + "]");
1435
+ R.set(e, N);
1436
+ var ct = ur();
1437
+ ct.set(Ke, R), pr(M, t(
1438
+ X,
1439
+ hr,
1440
+ n,
1441
+ o,
1442
+ a,
1443
+ i,
1444
+ f,
1445
+ l,
1446
+ n === "comma" && S && O(m) ? null : u,
1447
+ c,
1448
+ p,
1449
+ s,
1450
+ v,
1451
+ y,
1452
+ h,
1453
+ S,
1454
+ w,
1455
+ ct
1456
+ ));
1457
+ }
1458
+ }
1459
+ return M;
1460
+ }, Va = function(e) {
1461
+ if (!e)
1462
+ return _;
1463
+ if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
1464
+ throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
1465
+ if (typeof e.encodeDotInKeys < "u" && typeof e.encodeDotInKeys != "boolean")
1466
+ throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
1467
+ if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
1468
+ throw new TypeError("Encoder has to be a function.");
1469
+ var r = e.charset || _.charset;
1470
+ if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
1471
+ throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1472
+ var n = ne.default;
1473
+ if (typeof e.format < "u") {
1474
+ if (!Wa.call(ne.formatters, e.format))
1475
+ throw new TypeError("Unknown format option provided.");
1476
+ n = e.format;
1477
+ }
1478
+ var o = ne.formatters[n], a = _.filter;
1479
+ (typeof e.filter == "function" || O(e.filter)) && (a = e.filter);
1480
+ var i;
1481
+ if (e.arrayFormat in sr ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = _.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
1482
+ throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
1483
+ var f = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : _.allowDots : !!e.allowDots;
1484
+ return {
1485
+ addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : _.addQueryPrefix,
1486
+ allowDots: f,
1487
+ allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : _.allowEmptyArrays,
1488
+ arrayFormat: i,
1489
+ charset: r,
1490
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : _.charsetSentinel,
1491
+ commaRoundTrip: !!e.commaRoundTrip,
1492
+ delimiter: typeof e.delimiter > "u" ? _.delimiter : e.delimiter,
1493
+ encode: typeof e.encode == "boolean" ? e.encode : _.encode,
1494
+ encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : _.encodeDotInKeys,
1495
+ encoder: typeof e.encoder == "function" ? e.encoder : _.encoder,
1496
+ encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : _.encodeValuesOnly,
1497
+ filter: a,
1498
+ format: n,
1499
+ formatter: o,
1500
+ serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : _.serializeDate,
1501
+ skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : _.skipNulls,
1502
+ sort: typeof e.sort == "function" ? e.sort : null,
1503
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : _.strictNullHandling
1504
+ };
1505
+ }, Qa = function(t, e) {
1506
+ var r = t, n = Va(e), o, a;
1507
+ typeof n.filter == "function" ? (a = n.filter, r = a("", r)) : O(n.filter) && (a = n.filter, o = a);
1508
+ var i = [];
1509
+ if (typeof r != "object" || r === null)
1510
+ return "";
1511
+ var f = sr[n.arrayFormat], l = f === "comma" && n.commaRoundTrip;
1512
+ o || (o = Object.keys(r)), n.sort && o.sort(n.sort);
1513
+ for (var u = ur(), c = 0; c < o.length; ++c) {
1514
+ var p = o[c], s = r[p];
1515
+ n.skipNulls && s === null || pr(i, Ka(
1516
+ s,
1517
+ p,
1518
+ f,
1519
+ l,
1520
+ n.allowEmptyArrays,
1521
+ n.strictNullHandling,
1522
+ n.skipNulls,
1523
+ n.encodeDotInKeys,
1524
+ n.encode ? n.encoder : null,
1525
+ n.filter,
1526
+ n.sort,
1527
+ n.allowDots,
1528
+ n.serializeDate,
1529
+ n.format,
1530
+ n.formatter,
1531
+ n.encodeValuesOnly,
1532
+ n.charset,
1533
+ u
1534
+ ));
1535
+ }
1536
+ var v = i.join(n.delimiter), y = n.addQueryPrefix === !0 ? "?" : "";
1537
+ return n.charsetSentinel && (n.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"), v.length > 0 ? y + v : "";
1538
+ }, L = fr, et = Object.prototype.hasOwnProperty, Lt = Array.isArray, g = {
1539
+ allowDots: !1,
1540
+ allowEmptyArrays: !1,
1541
+ allowPrototypes: !1,
1542
+ allowSparse: !1,
1543
+ arrayLimit: 20,
1544
+ charset: "utf-8",
1545
+ charsetSentinel: !1,
1546
+ comma: !1,
1547
+ decodeDotInKeys: !1,
1548
+ decoder: L.decode,
1549
+ delimiter: "&",
1550
+ depth: 5,
1551
+ duplicates: "combine",
1552
+ ignoreQueryPrefix: !1,
1553
+ interpretNumericEntities: !1,
1554
+ parameterLimit: 1e3,
1555
+ parseArrays: !0,
1556
+ plainObjects: !1,
1557
+ strictDepth: !1,
1558
+ strictNullHandling: !1,
1559
+ throwOnLimitExceeded: !1
1560
+ }, Ja = function(t) {
1561
+ return t.replace(/&#(\d+);/g, function(e, r) {
1562
+ return String.fromCharCode(parseInt(r, 10));
1563
+ });
1564
+ }, yr = function(t, e, r) {
1565
+ if (t && typeof t == "string" && e.comma && t.indexOf(",") > -1)
1566
+ return t.split(",");
1567
+ if (e.throwOnLimitExceeded && r >= e.arrayLimit)
1568
+ throw new RangeError("Array limit exceeded. Only " + e.arrayLimit + " element" + (e.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
1569
+ return t;
1570
+ }, Ya = "utf8=%26%2310003%3B", Xa = "utf8=%E2%9C%93", Za = function(e, r) {
1571
+ var n = { __proto__: null }, o = r.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
1572
+ o = o.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
1573
+ var a = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, i = o.split(
1574
+ r.delimiter,
1575
+ r.throwOnLimitExceeded ? a + 1 : a
1576
+ );
1577
+ if (r.throwOnLimitExceeded && i.length > a)
1578
+ throw new RangeError("Parameter limit exceeded. Only " + a + " parameter" + (a === 1 ? "" : "s") + " allowed.");
1579
+ var f = -1, l, u = r.charset;
1580
+ if (r.charsetSentinel)
1581
+ for (l = 0; l < i.length; ++l)
1582
+ i[l].indexOf("utf8=") === 0 && (i[l] === Xa ? u = "utf-8" : i[l] === Ya && (u = "iso-8859-1"), f = l, l = i.length);
1583
+ for (l = 0; l < i.length; ++l)
1584
+ if (l !== f) {
1585
+ var c = i[l], p = c.indexOf("]="), s = p === -1 ? c.indexOf("=") : p + 1, v, y;
1586
+ s === -1 ? (v = r.decoder(c, g.decoder, u, "key"), y = r.strictNullHandling ? null : "") : (v = r.decoder(c.slice(0, s), g.decoder, u, "key"), y = L.maybeMap(
1587
+ yr(
1588
+ c.slice(s + 1),
1589
+ r,
1590
+ Lt(n[v]) ? n[v].length : 0
1591
+ ),
1592
+ function(S) {
1593
+ return r.decoder(S, g.decoder, u, "value");
1594
+ }
1595
+ )), y && r.interpretNumericEntities && u === "iso-8859-1" && (y = Ja(String(y))), c.indexOf("[]=") > -1 && (y = Lt(y) ? [y] : y);
1596
+ var h = et.call(n, v);
1597
+ h && r.duplicates === "combine" ? n[v] = L.combine(n[v], y) : (!h || r.duplicates === "last") && (n[v] = y);
1598
+ }
1599
+ return n;
1600
+ }, ei = function(t, e, r, n) {
1601
+ var o = 0;
1602
+ if (t.length > 0 && t[t.length - 1] === "[]") {
1603
+ var a = t.slice(0, -1).join("");
1604
+ o = Array.isArray(e) && e[a] ? e[a].length : 0;
1605
+ }
1606
+ for (var i = n ? e : yr(e, r, o), f = t.length - 1; f >= 0; --f) {
1607
+ var l, u = t[f];
1608
+ if (u === "[]" && r.parseArrays)
1609
+ l = r.allowEmptyArrays && (i === "" || r.strictNullHandling && i === null) ? [] : L.combine([], i);
1610
+ else {
1611
+ l = r.plainObjects ? { __proto__: null } : {};
1612
+ var c = u.charAt(0) === "[" && u.charAt(u.length - 1) === "]" ? u.slice(1, -1) : u, p = r.decodeDotInKeys ? c.replace(/%2E/g, ".") : c, s = parseInt(p, 10);
1613
+ !r.parseArrays && p === "" ? l = { 0: i } : !isNaN(s) && u !== p && String(s) === p && s >= 0 && r.parseArrays && s <= r.arrayLimit ? (l = [], l[s] = i) : p !== "__proto__" && (l[p] = i);
1614
+ }
1615
+ i = l;
1616
+ }
1617
+ return i;
1618
+ }, ti = function(e, r, n, o) {
1619
+ if (e) {
1620
+ var a = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, f = /(\[[^[\]]*])/g, l = n.depth > 0 && i.exec(a), u = l ? a.slice(0, l.index) : a, c = [];
1621
+ if (u) {
1622
+ if (!n.plainObjects && et.call(Object.prototype, u) && !n.allowPrototypes)
1623
+ return;
1624
+ c.push(u);
1625
+ }
1626
+ for (var p = 0; n.depth > 0 && (l = f.exec(a)) !== null && p < n.depth; ) {
1627
+ if (p += 1, !n.plainObjects && et.call(Object.prototype, l[1].slice(1, -1)) && !n.allowPrototypes)
1628
+ return;
1629
+ c.push(l[1]);
1630
+ }
1631
+ if (l) {
1632
+ if (n.strictDepth === !0)
1633
+ throw new RangeError("Input depth exceeded depth option of " + n.depth + " and strictDepth is true");
1634
+ c.push("[" + a.slice(l.index) + "]");
1635
+ }
1636
+ return ei(c, r, n, o);
1637
+ }
1638
+ }, ri = function(e) {
1639
+ if (!e)
1640
+ return g;
1641
+ if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
1642
+ throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
1643
+ if (typeof e.decodeDotInKeys < "u" && typeof e.decodeDotInKeys != "boolean")
1644
+ throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
1645
+ if (e.decoder !== null && typeof e.decoder < "u" && typeof e.decoder != "function")
1646
+ throw new TypeError("Decoder has to be a function.");
1647
+ if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
1648
+ throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1649
+ if (typeof e.throwOnLimitExceeded < "u" && typeof e.throwOnLimitExceeded != "boolean")
1650
+ throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
1651
+ var r = typeof e.charset > "u" ? g.charset : e.charset, n = typeof e.duplicates > "u" ? g.duplicates : e.duplicates;
1652
+ if (n !== "combine" && n !== "first" && n !== "last")
1653
+ throw new TypeError("The duplicates option must be either combine, first, or last");
1654
+ var o = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 : g.allowDots : !!e.allowDots;
1655
+ return {
1656
+ allowDots: o,
1657
+ allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : g.allowEmptyArrays,
1658
+ allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : g.allowPrototypes,
1659
+ allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : g.allowSparse,
1660
+ arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : g.arrayLimit,
1661
+ charset: r,
1662
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : g.charsetSentinel,
1663
+ comma: typeof e.comma == "boolean" ? e.comma : g.comma,
1664
+ decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : g.decodeDotInKeys,
1665
+ decoder: typeof e.decoder == "function" ? e.decoder : g.decoder,
1666
+ delimiter: typeof e.delimiter == "string" || L.isRegExp(e.delimiter) ? e.delimiter : g.delimiter,
1667
+ // eslint-disable-next-line no-implicit-coercion, no-extra-parens
1668
+ depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : g.depth,
1669
+ duplicates: n,
1670
+ ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
1671
+ interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : g.interpretNumericEntities,
1672
+ parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : g.parameterLimit,
1673
+ parseArrays: e.parseArrays !== !1,
1674
+ plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : g.plainObjects,
1675
+ strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : g.strictDepth,
1676
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : g.strictNullHandling,
1677
+ throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" ? e.throwOnLimitExceeded : !1
1678
+ };
1679
+ }, ni = function(t, e) {
1680
+ var r = ri(e);
1681
+ if (t === "" || t === null || typeof t > "u")
1682
+ return r.plainObjects ? { __proto__: null } : {};
1683
+ for (var n = typeof t == "string" ? Za(t, r) : t, o = r.plainObjects ? { __proto__: null } : {}, a = Object.keys(n), i = 0; i < a.length; ++i) {
1684
+ var f = a[i], l = ti(f, n[f], r, typeof t == "string");
1685
+ o = L.merge(o, l, r);
1686
+ }
1687
+ return r.allowSparse === !0 ? o : L.compact(o);
1688
+ }, oi = Qa, ai = ni, ii = it, li = {
1689
+ formats: ii,
1690
+ parse: ai,
1691
+ stringify: oi
1692
+ };
1693
+ const ci = /* @__PURE__ */ Wr(li);
1694
+ async function Ae(t, e = {}, r) {
1695
+ const { cms: n = "cms" } = e;
1696
+ return fetch(`${t.href}?${ci.stringify(e)}`, {
1697
+ method: "GET",
1698
+ cache: r ? "no-store" : "default",
1699
+ headers: {
1700
+ Accept: "application/json",
1701
+ "Content-Type": "application/json",
1702
+ "strapi-encode-source-maps": n === "strapi" && r ? "true" : "false"
1703
+ // strapi
1704
+ }
1705
+ });
1706
+ }
1707
+ function lt(t, e) {
1708
+ 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(
1709
+ new URL(`api/${t}`, process.env.NEXT_PUBLIC_API_URL)
1710
+ );
1711
+ }
1712
+ function dr(t) {
1713
+ return Array.isArray(t) && t.length > 0 ? t[0] : Array.isArray(t) ? null : t;
1714
+ }
1715
+ async function vr(t, e = [], r = {}) {
1716
+ var n;
1717
+ if ((r == null ? void 0 : r.contentType) === t) {
1718
+ 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}` : "", f = new URL(lt(`${t}${i}`, r)), l = await Ae(f, r, o);
1719
+ if (!l.ok)
1720
+ return console.error(`[Error fetching preview data]: ${t} - status: ${l.statusText}`), [];
1721
+ const u = await l.json(), c = e.findIndex((p) => p.documentId === u.id);
1722
+ return c !== -1 ? (e[c] = u, [...e]) : [u, ...e];
1723
+ }
1724
+ return e;
1725
+ }
1726
+ const xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1727
+ __proto__: null,
1728
+ createUrl: lt,
1729
+ fetchCMS: Ae,
1730
+ mergePreviewDocument: vr,
1731
+ spreadStrapiData: dr
1732
+ }, Symbol.toStringTag, { value: "Module" }));
1733
+ async function mr(t, e = {}, r) {
1734
+ const n = !!(e != null && e.previewMode), o = await Ae(t, e, n);
1735
+ if (!o.ok)
1736
+ return console.log(
1737
+ `Failed to fetch Strapi (url=${String(t)}, status=${o.status})`
1738
+ ), { status: 404, data: [], error: String(o.status) };
1739
+ const { data: a } = await o.json();
1740
+ return a ? {
1741
+ status: 200,
1742
+ data: r ? dr(a) : a
1743
+ } : { status: 404, data: [], error: "No data found" };
1744
+ }
1745
+ async function gr(t, e, r = {}) {
1746
+ const n = (r == null ? void 0 : r.previewId) ?? "", o = (r == null ? void 0 : r.previewMode) === "true", a = { ...r, versionId: n }, i = [];
1747
+ let f = 1, l = 0, u = !0;
1748
+ try {
1749
+ do {
1750
+ const c = await Ae(e, { ...a, page: f }, o).then((p) => p.json()).catch((p) => (console.error("Error fetching VTEX CMS data:", p), console.error("Error URL:", e.toString()), null));
1751
+ f === 1 && (l = c.totalItems), Array.isArray(c == null ? void 0 : c.data) && i.push(...c.data), u = !!(c != null && c.hasNextPage), f++;
1752
+ } while (u && i.length < l);
1753
+ if (o && i.length > 0) {
1754
+ if (!t || !n)
1755
+ throw new Error(
1756
+ "contentType and previewId are required for preview mode in vtexCMSData"
1757
+ );
1758
+ const c = await vr(
1759
+ t,
1760
+ i,
1761
+ a
1762
+ );
1763
+ return {
1764
+ status: c.length > 0 ? 200 : 404,
1765
+ data: c
1766
+ };
1767
+ }
1768
+ return {
1769
+ status: i.length ? 200 : 404,
1770
+ data: i
1771
+ };
1772
+ } catch (c) {
1773
+ return {
1774
+ status: 500,
1775
+ data: [],
1776
+ error: c instanceof Error ? c.message : String(c)
1777
+ };
1778
+ }
1779
+ }
1780
+ const Ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1781
+ __proto__: null,
1782
+ strapiCMSData: mr,
1783
+ vtexCMSData: gr
1784
+ }, Symbol.toStringTag, { value: "Module" }));
1785
+ async function fi({
1786
+ contentType: t,
1787
+ documentId: e,
1788
+ versionId: r,
1789
+ storeId: n,
1790
+ CMS_PROJECT_NAME: o
1791
+ }) {
1792
+ const a = e && e.length ? `/${e}` : "", i = r && r.length ? `?versionId=${r}` : "";
1793
+ return fetch(
1794
+ `https://${n}.myvtex.com/_v/cms/api/${o}/${t}${a}${i}`,
1795
+ { cache: "no-cache" }
1796
+ );
1797
+ }
1798
+ async function ui(t, e = {}, r) {
1799
+ const { cms: n = "vtex" } = e ?? {};
1800
+ try {
1801
+ const o = new URL(lt(t, e));
1802
+ return n !== "vtex" ? mr(o, e, r) : gr(t, o, e);
1803
+ } catch (o) {
1804
+ return console.error(`[Fetch ContentType Error CMS ${n}]`, o), r ? { status: 400, data: null } : { status: 200, data: [] };
1805
+ }
1806
+ }
1807
+ const Oi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1808
+ __proto__: null,
1809
+ fetchContentType: ui,
1810
+ getCMSContentType: fi
1811
+ }, Symbol.toStringTag, { value: "Module" }));
1812
+ export {
1813
+ _i as A,
1814
+ Oi as B,
1815
+ xi as C,
1816
+ Ai as D,
1817
+ wi as S,
1818
+ Pr as a,
1819
+ Rr as b,
1820
+ Ar as c,
1821
+ $r as d,
1822
+ yi as e,
1823
+ Ve as f,
1824
+ xr as g,
1825
+ Sr as h,
1826
+ Ir as i,
1827
+ Wr as j,
1828
+ wr as k,
1829
+ Dr as l,
1830
+ Tr as m,
1831
+ Or as n,
1832
+ Si as o,
1833
+ hi as p,
1834
+ kr as q,
1835
+ ue as r,
1836
+ Ut as s,
1837
+ gi as t,
1838
+ Fr as u,
1839
+ di as v,
1840
+ bi as w,
1841
+ ui as x,
1842
+ mi as y,
1843
+ vi as z
1844
+ };