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