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