@soma-vertical-web/multi-lib 1.0.26 → 1.0.28
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-C3vJ4G_S.mjs → index-BM8vTUKg.mjs} +703 -748
- package/index-By2TIGCS.js +4 -0
- package/index-CZjoMPpQ.js +4 -0
- package/{index-BhiCzrut.mjs → index-CrmS0qoM.mjs} +890 -838
- package/index.js +17 -17
- package/index.mjs +3841 -3829
- 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-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,28 +1,28 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { Utils as
|
|
4
|
-
const
|
|
1
|
+
import * as x from "yup";
|
|
2
|
+
import { jsxs as yt, Fragment as Mr, jsx as L } from "react/jsx-runtime";
|
|
3
|
+
import { Utils as Ur } from "@soma-vertical-web/core-components";
|
|
4
|
+
const Ye = (t, e = !0) => Intl.NumberFormat("pt-BR", {
|
|
5
5
|
style: "currency",
|
|
6
6
|
currency: "BRL",
|
|
7
7
|
minimumFractionDigits: e ? 2 : 0
|
|
8
|
-
}).format(t),
|
|
8
|
+
}).format(t), Gr = ({ valueInCents: t, hasFree: e, freeTaxMessage: r }) => t === 0 ? e ? r : Ye(0) : Ye(t / 100), Br = (t, e) => {
|
|
9
9
|
const n = (t - e) * 100 / t;
|
|
10
10
|
return Math.floor(n);
|
|
11
|
-
},
|
|
11
|
+
}, Xt = (t, e) => {
|
|
12
12
|
const [r, n] = t.split(e);
|
|
13
13
|
return { name: r.trim(), size: n ? n.trim() : "" };
|
|
14
|
-
},
|
|
14
|
+
}, Hr = (t, e) => {
|
|
15
15
|
if (!t)
|
|
16
16
|
return {};
|
|
17
17
|
const [r, n] = t.split(e);
|
|
18
18
|
return { color: r == null ? void 0 : r.trim(), size: n == null ? void 0 : n.trim() };
|
|
19
|
-
},
|
|
19
|
+
}, kr = (t, e = "tamanho") => {
|
|
20
20
|
if (t.additionalProperty) {
|
|
21
21
|
const [r] = t.additionalProperty;
|
|
22
22
|
return r != null && r.name ? r.name.toLocaleLowerCase() === e ? r.value : t.name : "";
|
|
23
23
|
}
|
|
24
24
|
return t.name;
|
|
25
|
-
},
|
|
25
|
+
}, jr = (t, e) => t.replace(e, "").trim(), Xr = (t) => t.replace(/\//g, ""), Wr = ({ items: t, NAME_SPLIT_SYMBOL: e }) => {
|
|
26
26
|
const r = {
|
|
27
27
|
price: 0,
|
|
28
28
|
listPrice: 0,
|
|
@@ -41,9 +41,9 @@ const Ze = (t, e = !0) => Intl.NumberFormat("pt-BR", {
|
|
|
41
41
|
r.price = c, r.listPrice = s;
|
|
42
42
|
const p = (f = u == null ? void 0 : u[0]) == null ? void 0 : f.installments;
|
|
43
43
|
if (p) {
|
|
44
|
-
const { count:
|
|
44
|
+
const { count: v, value: y } = p[p.length - 1];
|
|
45
45
|
r.installments = {
|
|
46
|
-
count:
|
|
46
|
+
count: v,
|
|
47
47
|
value: y / 100
|
|
48
48
|
};
|
|
49
49
|
}
|
|
@@ -54,7 +54,7 @@ const Ze = (t, e = !0) => Intl.NumberFormat("pt-BR", {
|
|
|
54
54
|
const c = {
|
|
55
55
|
name: l.name,
|
|
56
56
|
sku: l.itemId,
|
|
57
|
-
value: ((u = l.Tamanho) == null ? void 0 : u[0]) ??
|
|
57
|
+
value: ((u = l.Tamanho) == null ? void 0 : u[0]) ?? Xt(l.nameComplete ?? l.name, e).size,
|
|
58
58
|
available: !1,
|
|
59
59
|
sellerId: "",
|
|
60
60
|
sellerName: "",
|
|
@@ -71,26 +71,26 @@ const Ze = (t, e = !0) => Intl.NumberFormat("pt-BR", {
|
|
|
71
71
|
sizes: a,
|
|
72
72
|
allSizesAvailable: o
|
|
73
73
|
};
|
|
74
|
-
},
|
|
74
|
+
}, Vr = (t) => t ? !t.offers.offers.find(({ quantity: e = 0 }) => e > 0) : !1, qr = (t, e) => {
|
|
75
75
|
const r = t.find(
|
|
76
76
|
(n) => n.availability.includes("InStock") && n.quantity && n.listPrice > 0 && n.seller.identifier === e
|
|
77
77
|
);
|
|
78
78
|
return r || t.find(
|
|
79
79
|
(n) => n.availability.includes("InStock") && n.quantity && n.listPrice > 0
|
|
80
80
|
);
|
|
81
|
-
},
|
|
81
|
+
}, zr = ({ images: t, TEXTURE_IMAGE: e }) => t.find((r) => e.includes(r.imageLabel)) ?? t[0], Kr = (t, e) => {
|
|
82
82
|
const r = /\/ids\/(\d+)\//, n = t.match(r);
|
|
83
83
|
return n ? t.replace(
|
|
84
84
|
`/${n[1]}/`,
|
|
85
85
|
`/${n[1]}-${e.width}-${e.height}/`
|
|
86
86
|
) : t;
|
|
87
|
-
},
|
|
87
|
+
}, Yr = (t, e) => {
|
|
88
88
|
const r = /\/ids\/(\d+)-(\d+)-(\d+)\//, n = t.match(r);
|
|
89
89
|
return n ? t.replace(
|
|
90
90
|
`/${n[1]}-${n[2]}-${n[3]}/`,
|
|
91
91
|
`/${n[1]}-${e.width}-${e.height}/`
|
|
92
92
|
) : t;
|
|
93
|
-
},
|
|
93
|
+
}, Qr = ({
|
|
94
94
|
images: t,
|
|
95
95
|
label: e
|
|
96
96
|
}) => {
|
|
@@ -98,35 +98,35 @@ const Ze = (t, e = !0) => Intl.NumberFormat("pt-BR", {
|
|
|
98
98
|
(n) => n.keywords === e.first || n.keywords === e.second || n.alternateName === e.first || n.alternateName === e.second
|
|
99
99
|
);
|
|
100
100
|
return r.length === 0 ? t.slice(0, 2) : r;
|
|
101
|
-
},
|
|
101
|
+
}, Jr = (t) => {
|
|
102
102
|
const [e, r] = t.split("/").map(Number);
|
|
103
103
|
if (Number.isNaN(e) || Number.isNaN(r))
|
|
104
104
|
throw new Error("[ERROR ASPECT RATIO IMAGE]: Invalid aspect ratio format");
|
|
105
105
|
return r / e;
|
|
106
|
-
},
|
|
106
|
+
}, Zr = (t, e, r) => {
|
|
107
107
|
e && (t ? (e.getAttribute("src") || (e.src = r ?? ""), e.play()) : e.pause());
|
|
108
|
-
},
|
|
108
|
+
}, Ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
109
109
|
__proto__: null,
|
|
110
|
-
disableSKU:
|
|
111
|
-
formatPriceToCurrency:
|
|
112
|
-
freightParsePrice:
|
|
113
|
-
getAspectRatio:
|
|
114
|
-
getColorAndSizeFromSkuName:
|
|
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" })),
|
|
110
|
+
disableSKU: Vr,
|
|
111
|
+
formatPriceToCurrency: Ye,
|
|
112
|
+
freightParsePrice: Gr,
|
|
113
|
+
getAspectRatio: Jr,
|
|
114
|
+
getColorAndSizeFromSkuName: Hr,
|
|
115
|
+
getDiscountPercent: Br,
|
|
116
|
+
getFirstImages: Qr,
|
|
117
|
+
getProductNameWithoutSku: jr,
|
|
118
|
+
getSKUName: kr,
|
|
119
|
+
getSkuInfos: Wr,
|
|
120
|
+
getThumbImage: zr,
|
|
121
|
+
getValidOffer: qr,
|
|
122
|
+
removeSlashes: Xr,
|
|
123
|
+
resizingImg: Kr,
|
|
124
|
+
setVideoPlay: Zr,
|
|
125
|
+
splitNameAndSizeFromFullName: Xt,
|
|
126
|
+
updatedResizedImg: Yr
|
|
127
|
+
}, Symbol.toStringTag, { value: "Module" })), dt = "fuzzy", vt = "operator", en = (t) => ({
|
|
128
128
|
isDepartment: t != null && t.length ? t[0].key === "category-1" : !1
|
|
129
|
-
}),
|
|
129
|
+
}), Di = (t, e) => {
|
|
130
130
|
const r = decodeURIComponent(e ?? "").slice(1).split("/");
|
|
131
131
|
return t.map((n) => {
|
|
132
132
|
if (n.key === "category-2" && n.__typename === "FacetBoolean") {
|
|
@@ -142,7 +142,7 @@ const Ze = (t, e = !0) => Intl.NumberFormat("pt-BR", {
|
|
|
142
142
|
}
|
|
143
143
|
return n;
|
|
144
144
|
});
|
|
145
|
-
},
|
|
145
|
+
}, Wt = (t, e) => e ? t === "category-1" : !1, tn = (t) => t.key === "operator" && (t.value === "and" || t.value === "or"), rn = (t) => t.type === "TEXT", nn = (t) => t.key === "fuzzy" && (t.value === "0" || t.value === "1" || t.value === "auto"), on = (t) => {
|
|
146
146
|
const { key: e, name: r, values: n } = t;
|
|
147
147
|
return {
|
|
148
148
|
__typename: "FacetBoolean",
|
|
@@ -150,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
|
+
}, an = ({ key: t, values: e }) => ({
|
|
154
154
|
__typename: "FacetRange",
|
|
155
155
|
key: t,
|
|
156
156
|
values: e
|
|
157
|
-
}),
|
|
157
|
+
}), $i = (t, e, r) => {
|
|
158
158
|
if (!(t instanceof Object) || !("facets" in t))
|
|
159
159
|
return [];
|
|
160
160
|
const { facets: n = [] } = t, o = e != null && e.length ? e[0].key === "category-1" : !1;
|
|
161
161
|
return n.filter(
|
|
162
|
-
(i) => !r || !
|
|
162
|
+
(i) => !r || !Wt(i.key, o)
|
|
163
163
|
).map(
|
|
164
|
-
(i) =>
|
|
164
|
+
(i) => rn(i) ? on(i) : an(i)
|
|
165
165
|
);
|
|
166
|
-
},
|
|
167
|
-
const r = t.find(({ key: o }) => o ===
|
|
168
|
-
r &&
|
|
169
|
-
},
|
|
166
|
+
}, Fi = (t, e) => {
|
|
167
|
+
const r = t.find(({ key: o }) => o === dt) ?? null, n = t.find(({ key: o }) => o === vt) ?? null;
|
|
168
|
+
r && nn(r) && e.append(dt, r.value), n && tn(n) && e.append(vt, n.value);
|
|
169
|
+
}, ln = (t) => t.map((e) => {
|
|
170
170
|
const [r, n] = e.split("/");
|
|
171
171
|
return { key: r, value: n };
|
|
172
|
-
}),
|
|
172
|
+
}), xi = (t, e) => {
|
|
173
173
|
const r = decodeURIComponent(e ?? "").slice(1).split("/"), n = t.filter(({ value: a }) => !r.includes(decodeURIComponent(a))).map((a) => ({
|
|
174
174
|
...a,
|
|
175
175
|
value: decodeURIComponent(a.value)
|
|
176
|
-
})), { isDepartment: o } =
|
|
177
|
-
return n == null ? void 0 : n.filter((a) => !
|
|
178
|
-
},
|
|
176
|
+
})), { isDepartment: o } = en(n);
|
|
177
|
+
return n == null ? void 0 : n.filter((a) => !Wt(a.key, o));
|
|
178
|
+
}, Li = ({ pathname: t, searchParams: e }, r) => {
|
|
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: ln(r),
|
|
183
183
|
term: o,
|
|
184
184
|
base: o ? "" : t,
|
|
185
185
|
page: a
|
|
186
186
|
};
|
|
187
|
-
},
|
|
187
|
+
}, Mi = (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
|
+
}, Ui = (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
|
-
var
|
|
197
|
-
function
|
|
196
|
+
var ht = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
197
|
+
function cn(t) {
|
|
198
198
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function un(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 fn = {};
|
|
220
220
|
(function(t) {
|
|
221
221
|
Object.defineProperty(t, "__esModule", {
|
|
222
222
|
value: !0
|
|
@@ -229,8 +229,8 @@ var hn = {};
|
|
|
229
229
|
function e(r) {
|
|
230
230
|
return r.replace(/\/$/, "") || "/";
|
|
231
231
|
}
|
|
232
|
-
})(
|
|
233
|
-
var
|
|
232
|
+
})(fn);
|
|
233
|
+
var nt = {};
|
|
234
234
|
(function(t) {
|
|
235
235
|
Object.defineProperty(t, "__esModule", {
|
|
236
236
|
value: !0
|
|
@@ -252,8 +252,8 @@ var it = {};
|
|
|
252
252
|
hash: ""
|
|
253
253
|
};
|
|
254
254
|
}
|
|
255
|
-
})(
|
|
256
|
-
var
|
|
255
|
+
})(nt);
|
|
256
|
+
var Vt = {};
|
|
257
257
|
(function(t) {
|
|
258
258
|
Object.defineProperty(t, "__esModule", {
|
|
259
259
|
value: !0
|
|
@@ -263,23 +263,23 @@ var Yt = {};
|
|
|
263
263
|
return r;
|
|
264
264
|
}
|
|
265
265
|
});
|
|
266
|
-
const e =
|
|
266
|
+
const e = nt;
|
|
267
267
|
function r(n, o) {
|
|
268
268
|
if (typeof n != "string")
|
|
269
269
|
return !1;
|
|
270
270
|
const { pathname: a } = (0, e.parsePath)(n);
|
|
271
271
|
return a === o || a.startsWith(o + "/");
|
|
272
272
|
}
|
|
273
|
-
})(
|
|
274
|
-
var
|
|
273
|
+
})(Vt);
|
|
274
|
+
var sn = {};
|
|
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(Lr, st) {
|
|
280
|
+
for (var pt in st) Object.defineProperty(Lr, pt, {
|
|
281
281
|
enumerable: !0,
|
|
282
|
-
get:
|
|
282
|
+
get: st[pt]
|
|
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 Dr;
|
|
300
300
|
},
|
|
301
301
|
GSP_NO_RETURNED_VALUE: function() {
|
|
302
|
-
return
|
|
302
|
+
return br;
|
|
303
303
|
},
|
|
304
304
|
GSSP_COMPONENT_MEMBER_ERROR: function() {
|
|
305
|
-
return
|
|
305
|
+
return wr;
|
|
306
306
|
},
|
|
307
307
|
GSSP_NO_RETURNED_VALUE: function() {
|
|
308
|
-
return
|
|
308
|
+
return Ir;
|
|
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,10 +326,10 @@ var gn = {};
|
|
|
326
326
|
return y;
|
|
327
327
|
},
|
|
328
328
|
NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER: function() {
|
|
329
|
-
return
|
|
329
|
+
return E;
|
|
330
330
|
},
|
|
331
331
|
NEXT_CACHE_SOFT_TAGS_HEADER: function() {
|
|
332
|
-
return
|
|
332
|
+
return v;
|
|
333
333
|
},
|
|
334
334
|
NEXT_CACHE_SOFT_TAG_MAX_LENGTH: function() {
|
|
335
335
|
return b;
|
|
@@ -341,7 +341,7 @@ var gn = {};
|
|
|
341
341
|
return A;
|
|
342
342
|
},
|
|
343
343
|
NEXT_CACHE_TAG_MAX_LENGTH: function() {
|
|
344
|
-
return
|
|
344
|
+
return O;
|
|
345
345
|
},
|
|
346
346
|
NEXT_DATA_SUFFIX: function() {
|
|
347
347
|
return s;
|
|
@@ -356,7 +356,7 @@ var gn = {};
|
|
|
356
356
|
return r;
|
|
357
357
|
},
|
|
358
358
|
NON_STANDARD_NODE_ENV: function() {
|
|
359
|
-
return
|
|
359
|
+
return Cr;
|
|
360
360
|
},
|
|
361
361
|
PAGES_DIR_ALIAS: function() {
|
|
362
362
|
return z;
|
|
@@ -371,19 +371,19 @@ 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 P;
|
|
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 R;
|
|
387
387
|
},
|
|
388
388
|
RSC_MOD_REF_PROXY_ALIAS: function() {
|
|
389
389
|
return G;
|
|
@@ -395,7 +395,7 @@ var gn = {};
|
|
|
395
395
|
return l;
|
|
396
396
|
},
|
|
397
397
|
SERVER_PROPS_EXPORT_ERROR: function() {
|
|
398
|
-
return
|
|
398
|
+
return Or;
|
|
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 $r;
|
|
408
408
|
},
|
|
409
409
|
SSG_FALLBACK_EXPORT_ERROR: function() {
|
|
410
|
-
return
|
|
410
|
+
return Nr;
|
|
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 Pr;
|
|
417
417
|
},
|
|
418
418
|
UNSTABLE_REVALIDATE_RENAME_ERROR: function() {
|
|
419
|
-
return
|
|
419
|
+
return Tr;
|
|
420
420
|
},
|
|
421
421
|
WEBPACK_LAYERS: function() {
|
|
422
|
-
return
|
|
422
|
+
return Fr;
|
|
423
423
|
},
|
|
424
424
|
WEBPACK_RESOURCE_QUERIES: function() {
|
|
425
|
-
return
|
|
425
|
+
return xr;
|
|
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", s = ".json", u = ".meta", p = ".body", f = "x-next-cache-tags",
|
|
428
|
+
const r = "nxtP", n = "nxtI", o = "x-prerender-revalidate", a = "x-prerender-revalidate-if-generated", i = ".prefetch.rsc", l = ".rsc", c = ".action", s = ".json", u = ".meta", p = ".body", f = "x-next-cache-tags", v = "x-next-cache-soft-tags", y = "x-next-revalidated-tags", E = "x-next-revalidate-tag-token", A = 128, O = 256, b = 1024, h = "_N_T_", I = 31536e3, T = "middleware", k = `(?:src/)?${T}`, U = "instrumentation", z = "private-next-pages", F = "private-dot-next", w = "private-next-root-dir", K = "private-next-app-dir", G = "private-next-rsc-mod-ref-proxy", R = "private-next-rsc-action-validate", C = "private-next-rsc-server-reference", P = "private-next-rsc-action-encryption", j = "private-next-rsc-action-client-wrapper", ne = "You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict", Ne = "You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps", ve = "You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.", oe = "You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps", Pr = "can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props", Or = "pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export", br = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?", Ir = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?", Tr = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.", wr = "can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member", Cr = 'You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env', Nr = "Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export", Dr = [
|
|
429
429
|
"app",
|
|
430
430
|
"pages",
|
|
431
431
|
"components",
|
|
432
432
|
"lib",
|
|
433
433
|
"src"
|
|
434
|
-
],
|
|
434
|
+
], $r = {
|
|
435
435
|
edge: "edge",
|
|
436
436
|
experimentalEdge: "experimental-edge",
|
|
437
437
|
nodejs: "nodejs"
|
|
438
|
-
},
|
|
438
|
+
}, _ = {
|
|
439
439
|
/**
|
|
440
440
|
* The layer for the shared code between the client and server bundles.
|
|
441
441
|
*/
|
|
@@ -480,44 +480,44 @@ var gn = {};
|
|
|
480
480
|
* The layer for the server bundle for App Route handlers.
|
|
481
481
|
*/
|
|
482
482
|
appRouteHandler: "app-route-handler"
|
|
483
|
-
},
|
|
484
|
-
...
|
|
483
|
+
}, Fr = {
|
|
484
|
+
..._,
|
|
485
485
|
GROUP: {
|
|
486
486
|
serverOnly: [
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
487
|
+
_.reactServerComponents,
|
|
488
|
+
_.actionBrowser,
|
|
489
|
+
_.appMetadataRoute,
|
|
490
|
+
_.appRouteHandler,
|
|
491
|
+
_.instrument
|
|
492
492
|
],
|
|
493
493
|
clientOnly: [
|
|
494
|
-
|
|
495
|
-
|
|
494
|
+
_.serverSideRendering,
|
|
495
|
+
_.appPagesBrowser
|
|
496
496
|
],
|
|
497
497
|
nonClientServerTarget: [
|
|
498
498
|
// middleware and pages api
|
|
499
|
-
|
|
500
|
-
|
|
499
|
+
_.middleware,
|
|
500
|
+
_.api
|
|
501
501
|
],
|
|
502
502
|
app: [
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
503
|
+
_.reactServerComponents,
|
|
504
|
+
_.actionBrowser,
|
|
505
|
+
_.appMetadataRoute,
|
|
506
|
+
_.appRouteHandler,
|
|
507
|
+
_.serverSideRendering,
|
|
508
|
+
_.appPagesBrowser,
|
|
509
|
+
_.shared,
|
|
510
|
+
_.instrument
|
|
511
511
|
]
|
|
512
512
|
}
|
|
513
|
-
},
|
|
513
|
+
}, xr = {
|
|
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
|
+
})(sn);
|
|
520
|
+
var pn = {}, qt = {};
|
|
521
521
|
(function(t) {
|
|
522
522
|
Object.defineProperty(t, "__esModule", {
|
|
523
523
|
value: !0
|
|
@@ -527,14 +527,14 @@ var mn = {}, Qt = {};
|
|
|
527
527
|
return r;
|
|
528
528
|
}
|
|
529
529
|
});
|
|
530
|
-
const e =
|
|
530
|
+
const e = nt;
|
|
531
531
|
function r(n, o) {
|
|
532
532
|
if (!n.startsWith("/") || !o)
|
|
533
533
|
return n;
|
|
534
534
|
const { pathname: a, query: i, hash: l } = (0, e.parsePath)(n);
|
|
535
535
|
return "" + o + a + i + l;
|
|
536
536
|
}
|
|
537
|
-
})(
|
|
537
|
+
})(qt);
|
|
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 = qt, r = Vt;
|
|
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
|
+
})(pn);
|
|
554
|
+
var yn = {};
|
|
555
555
|
(function(t) {
|
|
556
556
|
Object.defineProperty(t, "__esModule", {
|
|
557
557
|
value: !0
|
|
@@ -569,8 +569,8 @@ var _n = {};
|
|
|
569
569
|
detectedLocale: o
|
|
570
570
|
};
|
|
571
571
|
}
|
|
572
|
-
})(
|
|
573
|
-
var
|
|
572
|
+
})(yn);
|
|
573
|
+
var dn = {};
|
|
574
574
|
(function(t) {
|
|
575
575
|
Object.defineProperty(t, "__esModule", {
|
|
576
576
|
value: !0
|
|
@@ -591,19 +591,19 @@ var En = {};
|
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
|
-
})(
|
|
595
|
-
const
|
|
594
|
+
})(dn);
|
|
595
|
+
const vn = (t = "") => t.charAt(0).toUpperCase() + t.slice(1), gt = (t, e = " ") => !t || typeof t == "string" && t.length === 0 ? t : (Array.isArray(t) ? t : t.split("-")).map(vn).join(e), hn = ({ canonical: t, seo: e, slug: r }) => {
|
|
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) => gt(a)).join(",") : gt(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
|
+
}, gn = ({ 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,
|
|
@@ -614,28 +614,28 @@ const Sn = (t = "") => t.charAt(0).toUpperCase() + t.slice(1), St = (t, e = " ")
|
|
|
614
614
|
description: (e == null ? void 0 : e.MetaTagDescription) ?? n.description,
|
|
615
615
|
images: Array.isArray(r) ? [...r] : []
|
|
616
616
|
}
|
|
617
|
-
}),
|
|
617
|
+
}), mn = ({ items: t, parent: e, apiUrl: r, find: n }) => {
|
|
618
618
|
const o = t.find(
|
|
619
619
|
(i) => i.url.replace(r, "") === decodeURIComponent(e.toLowerCase())
|
|
620
620
|
);
|
|
621
621
|
return (o == null ? void 0 : o.children.find(
|
|
622
622
|
(i) => i.name.toLowerCase() === decodeURIComponent(String(n))
|
|
623
623
|
)) ?? o;
|
|
624
|
-
},
|
|
624
|
+
}, En = (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
|
+
}, _n = /* @__PURE__ */ new Set([
|
|
627
627
|
"brand",
|
|
628
628
|
"category",
|
|
629
629
|
"department",
|
|
630
630
|
"subcategory",
|
|
631
631
|
"collection",
|
|
632
632
|
"cluster"
|
|
633
|
-
]),
|
|
633
|
+
]), Sn = (t) => typeof (t == null ? void 0 : t.pageType) == "string" && _n.has(t == null ? void 0 : t.pageType.toLowerCase()), An = (t) => ({
|
|
634
634
|
collection: t.Coleção,
|
|
635
635
|
categoryId: t.categoryId,
|
|
636
636
|
current_collection: t["Coleção Atual"],
|
|
637
637
|
items: t.items
|
|
638
|
-
}),
|
|
638
|
+
}), Rn = (t, e) => t.reduce((r, n) => {
|
|
639
639
|
if (n.items.filter(
|
|
640
640
|
(i) => i.sellers.find((l) => l.commertialOffer.IsAvailable)
|
|
641
641
|
).length === 0 || (r == null ? void 0 : r.find((i) => (i == null ? void 0 : i.productId) === (n == null ? void 0 : n.productId))) !== void 0)
|
|
@@ -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
|
+
}, []), Gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
653
653
|
__proto__: null,
|
|
654
|
-
createEmptySeoCategory:
|
|
655
|
-
createSeoCategory:
|
|
656
|
-
findCategory:
|
|
657
|
-
formattedSimilars:
|
|
658
|
-
isCollectionPageType:
|
|
659
|
-
notFindCategoryError:
|
|
660
|
-
responseAdapter:
|
|
654
|
+
createEmptySeoCategory: hn,
|
|
655
|
+
createSeoCategory: gn,
|
|
656
|
+
findCategory: mn,
|
|
657
|
+
formattedSimilars: Rn,
|
|
658
|
+
isCollectionPageType: Sn,
|
|
659
|
+
notFindCategoryError: En,
|
|
660
|
+
responseAdapter: An
|
|
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 Bi(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 Pn = x.object({
|
|
702
|
+
orderFormId: x.string().required(),
|
|
703
|
+
coupon: x.string().nullable(),
|
|
704
|
+
utmSource: x.string().optional(),
|
|
705
|
+
utmMedium: x.string().optional(),
|
|
706
|
+
utmCampaign: x.string().optional(),
|
|
707
|
+
utmiCampaign: x.string().optional(),
|
|
708
|
+
utmiPart: x.string().optional(),
|
|
709
|
+
utmipage: x.string().optional()
|
|
710
710
|
});
|
|
711
|
-
async function
|
|
711
|
+
async function On({
|
|
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 Pn.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,10 +728,10 @@ async function Nn({
|
|
|
728
728
|
}
|
|
729
729
|
});
|
|
730
730
|
}
|
|
731
|
-
const
|
|
731
|
+
const Hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
732
732
|
__proto__: null,
|
|
733
|
-
postMediaData:
|
|
734
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
733
|
+
postMediaData: On
|
|
734
|
+
}, Symbol.toStringTag, { value: "Module" })), ki = ({
|
|
735
735
|
children: t,
|
|
736
736
|
data: e,
|
|
737
737
|
SectionZone: r,
|
|
@@ -739,64 +739,64 @@ const zi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
739
739
|
}) => {
|
|
740
740
|
var u, p;
|
|
741
741
|
const o = ((u = e == null ? void 0 : e.filter((f) => {
|
|
742
|
-
var
|
|
743
|
-
return ((y = (
|
|
742
|
+
var v, y;
|
|
743
|
+
return ((y = (v = f.config) == null ? void 0 : v.responsive) == null ? void 0 : y.deviceType) === "mobile";
|
|
744
744
|
})[0]) == null ? void 0 : u.sections) || [], a = ((p = e == null ? void 0 : e.filter((f) => {
|
|
745
|
-
var
|
|
746
|
-
return ((y = (
|
|
745
|
+
var v, y;
|
|
746
|
+
return ((y = (v = f.config) == null ? void 0 : v.responsive) == null ? void 0 : y.deviceType) === "desktop";
|
|
747
747
|
})[0]) == null ? void 0 : p.sections) || [], i = o.slice(0, 1), l = o.slice(1, o.length), c = a.slice(0, 1), s = a.slice(1, a.length);
|
|
748
|
-
return /* @__PURE__ */
|
|
749
|
-
/* @__PURE__ */
|
|
748
|
+
return /* @__PURE__ */ yt(Mr, { children: [
|
|
749
|
+
/* @__PURE__ */ yt("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
755
|
/* @__PURE__ */ L("div", { className: he["responsive-desktop-flex"], children: /* @__PURE__ */ L(r, { data: s ?? [] }) }),
|
|
756
|
-
/* @__PURE__ */ L(
|
|
756
|
+
/* @__PURE__ */ L(Ur.Divider, {})
|
|
757
757
|
] });
|
|
758
758
|
};
|
|
759
759
|
var re = TypeError;
|
|
760
|
-
const
|
|
760
|
+
const bn = {}, In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
761
761
|
__proto__: null,
|
|
762
|
-
default:
|
|
763
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
764
|
-
var
|
|
762
|
+
default: bn
|
|
763
|
+
}, Symbol.toStringTag, { value: "Module" })), Tn = /* @__PURE__ */ un(In);
|
|
764
|
+
var ot = typeof Map == "function" && Map.prototype, De = Object.getOwnPropertyDescriptor && ot ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ae = ot && De && typeof De.get == "function" ? De.get : null, mt = ot && Map.prototype.forEach, at = typeof Set == "function" && Set.prototype, $e = Object.getOwnPropertyDescriptor && at ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Re = at && $e && typeof $e.get == "function" ? $e.get : null, Et = at && Set.prototype.forEach, wn = typeof WeakMap == "function" && WeakMap.prototype, le = wn ? WeakMap.prototype.has : null, Cn = typeof WeakSet == "function" && WeakSet.prototype, ce = Cn ? WeakSet.prototype.has : null, Nn = typeof WeakRef == "function" && WeakRef.prototype, _t = Nn ? WeakRef.prototype.deref : null, Dn = Boolean.prototype.valueOf, $n = Object.prototype.toString, Fn = Function.prototype.toString, xn = String.prototype.match, it = String.prototype.slice, B = String.prototype.replace, Ln = String.prototype.toUpperCase, St = String.prototype.toLowerCase, Kt = RegExp.prototype.test, At = Array.prototype.concat, $ = Array.prototype.join, Mn = Array.prototype.slice, Rt = Math.floor, Qe = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Fe = Object.getOwnPropertySymbols, Je = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ee = typeof Symbol == "function" && typeof Symbol.iterator == "object", ue = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ee || !0) ? Symbol.toStringTag : null, Yt = Object.prototype.propertyIsEnumerable, Pt = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
765
765
|
return t.__proto__;
|
|
766
766
|
} : null);
|
|
767
|
-
function
|
|
768
|
-
if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 ||
|
|
767
|
+
function Ot(t, e) {
|
|
768
|
+
if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || Kt.call(/e/, e))
|
|
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 ? -Rt(-t) : Rt(t);
|
|
773
773
|
if (n !== t) {
|
|
774
|
-
var o = String(n), a =
|
|
774
|
+
var o = String(n), a = it.call(e, o.length + 1);
|
|
775
775
|
return B.call(o, r, "$&_") + "." + B.call(B.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
776
776
|
}
|
|
777
777
|
}
|
|
778
778
|
return B.call(e, r, "$&_");
|
|
779
779
|
}
|
|
780
|
-
var
|
|
780
|
+
var Ze = Tn, bt = Ze.custom, It = Zt(bt) ? bt : null, Qt = {
|
|
781
781
|
__proto__: null,
|
|
782
782
|
double: '"',
|
|
783
783
|
single: "'"
|
|
784
|
-
},
|
|
784
|
+
}, Un = {
|
|
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(Qt, 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,168 +806,168 @@ 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 tr(e, a);
|
|
810
810
|
if (typeof e == "number") {
|
|
811
811
|
if (e === 0)
|
|
812
812
|
return 1 / 0 / e > 0 ? "0" : "-0";
|
|
813
813
|
var c = String(e);
|
|
814
|
-
return l ?
|
|
814
|
+
return l ? Ot(e, c) : c;
|
|
815
815
|
}
|
|
816
816
|
if (typeof e == "bigint") {
|
|
817
817
|
var s = String(e) + "n";
|
|
818
|
-
return l ?
|
|
818
|
+
return l ? Ot(e, s) : s;
|
|
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
|
-
return
|
|
823
|
-
var p =
|
|
822
|
+
return et(e) ? "[Array]" : "[Object]";
|
|
823
|
+
var p = ro(a, n);
|
|
824
824
|
if (typeof o > "u")
|
|
825
825
|
o = [];
|
|
826
|
-
else if (
|
|
826
|
+
else if (er(o, e) >= 0)
|
|
827
827
|
return "[Circular]";
|
|
828
|
-
function f(
|
|
829
|
-
if (C && (o =
|
|
830
|
-
var
|
|
828
|
+
function f(R, C, P) {
|
|
829
|
+
if (C && (o = Mn.call(o), o.push(C)), P) {
|
|
830
|
+
var j = {
|
|
831
831
|
depth: a.depth
|
|
832
832
|
};
|
|
833
|
-
return
|
|
833
|
+
return M(a, "quoteStyle") && (j.quoteStyle = a.quoteStyle), t(R, j, n + 1, o);
|
|
834
834
|
}
|
|
835
|
-
return t(
|
|
835
|
+
return t(R, a, n + 1, o);
|
|
836
836
|
}
|
|
837
|
-
if (typeof e == "function" && !
|
|
838
|
-
var
|
|
839
|
-
return "[Function" + (
|
|
837
|
+
if (typeof e == "function" && !Tt(e)) {
|
|
838
|
+
var v = qn(e), y = ge(e, f);
|
|
839
|
+
return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (y.length > 0 ? " { " + $.call(y, ", ") + " }" : "");
|
|
840
840
|
}
|
|
841
|
-
if (
|
|
842
|
-
var
|
|
843
|
-
return typeof e == "object" && !ee ? ie(
|
|
841
|
+
if (Zt(e)) {
|
|
842
|
+
var E = ee ? B.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Je.call(e);
|
|
843
|
+
return typeof e == "object" && !ee ? ie(E) : E;
|
|
844
844
|
}
|
|
845
|
-
if (
|
|
846
|
-
for (var A = "<" +
|
|
847
|
-
A += " " +
|
|
848
|
-
return A += ">", e.childNodes && e.childNodes.length && (A += "..."), A += "</" +
|
|
845
|
+
if (Zn(e)) {
|
|
846
|
+
for (var A = "<" + St.call(String(e.nodeName)), O = e.attributes || [], b = 0; b < O.length; b++)
|
|
847
|
+
A += " " + O[b].name + "=" + Jt(Gn(O[b].value), "double", a);
|
|
848
|
+
return A += ">", e.childNodes && e.childNodes.length && (A += "..."), A += "</" + St.call(String(e.nodeName)) + ">", A;
|
|
849
849
|
}
|
|
850
|
-
if (
|
|
850
|
+
if (et(e)) {
|
|
851
851
|
if (e.length === 0)
|
|
852
852
|
return "[]";
|
|
853
853
|
var h = ge(e, f);
|
|
854
|
-
return p && !
|
|
854
|
+
return p && !to(h) ? "[" + tt(h, p) + "]" : "[ " + $.call(h, ", ") + " ]";
|
|
855
855
|
}
|
|
856
|
-
if (
|
|
856
|
+
if (Hn(e)) {
|
|
857
857
|
var I = ge(e, f);
|
|
858
|
-
return !("cause" in Error.prototype) && "cause" in e && !
|
|
858
|
+
return !("cause" in Error.prototype) && "cause" in e && !Yt.call(e, "cause") ? "{ [" + String(e) + "] " + $.call(At.call("[cause]: " + f(e.cause), I), ", ") + " }" : I.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + $.call(I, ", ") + " }";
|
|
859
859
|
}
|
|
860
860
|
if (typeof e == "object" && i) {
|
|
861
|
-
if (
|
|
862
|
-
return
|
|
861
|
+
if (It && typeof e[It] == "function" && Ze)
|
|
862
|
+
return Ze(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 mt && mt.call(e, function(R, C) {
|
|
869
|
+
T.push(f(C, e, !0) + " => " + f(R, e));
|
|
870
|
+
}), wt("Map", Ae.call(e), T, p);
|
|
871
871
|
}
|
|
872
|
-
if (
|
|
872
|
+
if (Qn(e)) {
|
|
873
873
|
var k = [];
|
|
874
|
-
return
|
|
875
|
-
k.push(f(
|
|
876
|
-
}),
|
|
877
|
-
}
|
|
878
|
-
if (to(e))
|
|
879
|
-
return Ue("WeakMap");
|
|
880
|
-
if (oo(e))
|
|
881
|
-
return Ue("WeakSet");
|
|
882
|
-
if (ro(e))
|
|
883
|
-
return Ue("WeakRef");
|
|
874
|
+
return Et && Et.call(e, function(R) {
|
|
875
|
+
k.push(f(R, e));
|
|
876
|
+
}), wt("Set", Re.call(e), k, p);
|
|
877
|
+
}
|
|
884
878
|
if (Kn(e))
|
|
885
|
-
return
|
|
886
|
-
if (
|
|
887
|
-
return
|
|
879
|
+
return xe("WeakMap");
|
|
880
|
+
if (Jn(e))
|
|
881
|
+
return xe("WeakSet");
|
|
888
882
|
if (Yn(e))
|
|
889
|
-
return
|
|
890
|
-
if (
|
|
883
|
+
return xe("WeakRef");
|
|
884
|
+
if (jn(e))
|
|
885
|
+
return ie(f(Number(e)));
|
|
886
|
+
if (Wn(e))
|
|
887
|
+
return ie(f(Qe.call(e)));
|
|
888
|
+
if (Xn(e))
|
|
889
|
+
return ie(Dn.call(e));
|
|
890
|
+
if (kn(e))
|
|
891
891
|
return ie(f(String(e)));
|
|
892
892
|
if (typeof window < "u" && e === window)
|
|
893
893
|
return "{ [object Window] }";
|
|
894
|
-
if (typeof globalThis < "u" && e === globalThis || typeof
|
|
894
|
+
if (typeof globalThis < "u" && e === globalThis || typeof ht < "u" && e === ht)
|
|
895
895
|
return "{ [object globalThis] }";
|
|
896
|
-
if (!
|
|
897
|
-
var U = ge(e, f), z =
|
|
898
|
-
return U.length === 0 ? G + "{}" : p ? G + "{" +
|
|
896
|
+
if (!Bn(e) && !Tt(e)) {
|
|
897
|
+
var U = ge(e, f), z = Pt ? Pt(e) === Object.prototype : e instanceof Object || e.constructor === Object, F = e instanceof Object ? "" : "null prototype", w = !z && ue && Object(e) === e && ue in e ? it.call(H(e), 8, -1) : F ? "Object" : "", K = z || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", G = K + (w || F ? "[" + $.call(At.call([], w || [], F || []), ": ") + "] " : "");
|
|
898
|
+
return U.length === 0 ? G + "{}" : p ? G + "{" + tt(U, p) + "}" : G + "{ " + $.call(U, ", ") + " }";
|
|
899
899
|
}
|
|
900
900
|
return String(e);
|
|
901
901
|
};
|
|
902
|
-
function
|
|
903
|
-
var n = r.quoteStyle || e, o =
|
|
902
|
+
function Jt(t, e, r) {
|
|
903
|
+
var n = r.quoteStyle || e, o = Qt[n];
|
|
904
904
|
return o + t + o;
|
|
905
905
|
}
|
|
906
|
-
function
|
|
906
|
+
function Gn(t) {
|
|
907
907
|
return B.call(String(t), /"/g, """);
|
|
908
908
|
}
|
|
909
909
|
function q(t) {
|
|
910
910
|
return !ue || !(typeof t == "object" && (ue in t || typeof t[ue] < "u"));
|
|
911
911
|
}
|
|
912
|
-
function
|
|
913
|
-
return
|
|
912
|
+
function et(t) {
|
|
913
|
+
return H(t) === "[object Array]" && q(t);
|
|
914
914
|
}
|
|
915
|
-
function
|
|
916
|
-
return
|
|
915
|
+
function Bn(t) {
|
|
916
|
+
return H(t) === "[object Date]" && q(t);
|
|
917
917
|
}
|
|
918
|
-
function
|
|
919
|
-
return
|
|
918
|
+
function Tt(t) {
|
|
919
|
+
return H(t) === "[object RegExp]" && q(t);
|
|
920
920
|
}
|
|
921
|
-
function
|
|
922
|
-
return
|
|
921
|
+
function Hn(t) {
|
|
922
|
+
return H(t) === "[object Error]" && q(t);
|
|
923
923
|
}
|
|
924
|
-
function
|
|
925
|
-
return
|
|
924
|
+
function kn(t) {
|
|
925
|
+
return H(t) === "[object String]" && q(t);
|
|
926
926
|
}
|
|
927
|
-
function
|
|
928
|
-
return
|
|
927
|
+
function jn(t) {
|
|
928
|
+
return H(t) === "[object Number]" && q(t);
|
|
929
929
|
}
|
|
930
|
-
function
|
|
931
|
-
return
|
|
930
|
+
function Xn(t) {
|
|
931
|
+
return H(t) === "[object Boolean]" && q(t);
|
|
932
932
|
}
|
|
933
|
-
function
|
|
933
|
+
function Zt(t) {
|
|
934
934
|
if (ee)
|
|
935
935
|
return t && typeof t == "object" && t instanceof Symbol;
|
|
936
936
|
if (typeof t == "symbol")
|
|
937
937
|
return !0;
|
|
938
|
-
if (!t || typeof t != "object" || !
|
|
938
|
+
if (!t || typeof t != "object" || !Je)
|
|
939
939
|
return !1;
|
|
940
940
|
try {
|
|
941
|
-
return
|
|
941
|
+
return Je.call(t), !0;
|
|
942
942
|
} catch {
|
|
943
943
|
}
|
|
944
944
|
return !1;
|
|
945
945
|
}
|
|
946
|
-
function
|
|
947
|
-
if (!t || typeof t != "object" || !
|
|
946
|
+
function Wn(t) {
|
|
947
|
+
if (!t || typeof t != "object" || !Qe)
|
|
948
948
|
return !1;
|
|
949
949
|
try {
|
|
950
|
-
return
|
|
950
|
+
return Qe.call(t), !0;
|
|
951
951
|
} catch {
|
|
952
952
|
}
|
|
953
953
|
return !1;
|
|
954
954
|
}
|
|
955
|
-
var
|
|
955
|
+
var Vn = Object.prototype.hasOwnProperty || function(t) {
|
|
956
956
|
return t in this;
|
|
957
957
|
};
|
|
958
|
-
function
|
|
959
|
-
return
|
|
958
|
+
function M(t, e) {
|
|
959
|
+
return Vn.call(t, e);
|
|
960
960
|
}
|
|
961
|
-
function
|
|
962
|
-
return
|
|
961
|
+
function H(t) {
|
|
962
|
+
return $n.call(t);
|
|
963
963
|
}
|
|
964
|
-
function
|
|
964
|
+
function qn(t) {
|
|
965
965
|
if (t.name)
|
|
966
966
|
return t.name;
|
|
967
|
-
var e =
|
|
967
|
+
var e = xn.call(Fn.call(t), /^function\s*([\w$]+)/);
|
|
968
968
|
return e ? e[1] : null;
|
|
969
969
|
}
|
|
970
|
-
function
|
|
970
|
+
function er(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 Kn(t) {
|
|
994
994
|
if (!le || !t || typeof t != "object")
|
|
995
995
|
return !1;
|
|
996
996
|
try {
|
|
@@ -1005,22 +1005,22 @@ function to(t) {
|
|
|
1005
1005
|
}
|
|
1006
1006
|
return !1;
|
|
1007
1007
|
}
|
|
1008
|
-
function
|
|
1009
|
-
if (!
|
|
1008
|
+
function Yn(t) {
|
|
1009
|
+
if (!_t || !t || typeof t != "object")
|
|
1010
1010
|
return !1;
|
|
1011
1011
|
try {
|
|
1012
|
-
return
|
|
1012
|
+
return _t.call(t), !0;
|
|
1013
1013
|
} catch {
|
|
1014
1014
|
}
|
|
1015
1015
|
return !1;
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1017
|
+
function Qn(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 Jn(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 Zn(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 tr(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 tr(it.call(t, 0, e.maxStringLength), e) + n;
|
|
1054
1054
|
}
|
|
1055
|
-
var o =
|
|
1055
|
+
var o = Un[e.quoteStyle || "single"];
|
|
1056
1056
|
o.lastIndex = 0;
|
|
1057
|
-
var a = B.call(B.call(t, o, "\\$1"), /[\x00-\x1f]/g,
|
|
1058
|
-
return
|
|
1057
|
+
var a = B.call(B.call(t, o, "\\$1"), /[\x00-\x1f]/g, eo);
|
|
1058
|
+
return Jt(a, "single", e);
|
|
1059
1059
|
}
|
|
1060
|
-
function
|
|
1060
|
+
function eo(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" : "") + Ln.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
|
|
1077
|
-
var o = n ?
|
|
1076
|
+
function wt(t, e, r, n) {
|
|
1077
|
+
var o = n ? tt(r, n) : $.call(r, ", ");
|
|
1078
1078
|
return t + " (" + e + ") {" + o + "}";
|
|
1079
1079
|
}
|
|
1080
|
-
function
|
|
1080
|
+
function to(t) {
|
|
1081
1081
|
for (var e = 0; e < t.length; e++)
|
|
1082
|
-
if (
|
|
1082
|
+
if (er(t[e], `
|
|
1083
1083
|
`) >= 0)
|
|
1084
1084
|
return !1;
|
|
1085
1085
|
return !0;
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1087
|
+
function ro(t, e) {
|
|
1088
1088
|
var r;
|
|
1089
1089
|
if (t.indent === " ")
|
|
1090
1090
|
r = " ";
|
|
@@ -1097,7 +1097,7 @@ function co(t, e) {
|
|
|
1097
1097
|
prev: $.call(Array(e + 1), r)
|
|
1098
1098
|
};
|
|
1099
1099
|
}
|
|
1100
|
-
function
|
|
1100
|
+
function tt(t, e) {
|
|
1101
1101
|
if (t.length === 0)
|
|
1102
1102
|
return "";
|
|
1103
1103
|
var r = `
|
|
@@ -1106,11 +1106,11 @@ function ot(t, e) {
|
|
|
1106
1106
|
` + e.prev;
|
|
1107
1107
|
}
|
|
1108
1108
|
function ge(t, e) {
|
|
1109
|
-
var r =
|
|
1109
|
+
var r = et(t), n = [];
|
|
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 || (Kt.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
1124
|
for (var s = 0; s < a.length; s++)
|
|
1125
|
-
|
|
1125
|
+
Yt.call(t, a[s]) && n.push("[" + e(a[s]) + "]: " + e(t[a[s]], t));
|
|
1126
1126
|
return n;
|
|
1127
1127
|
}
|
|
1128
|
-
var
|
|
1128
|
+
var no = be, oo = 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
|
+
}, ao = 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
|
+
}, io = 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
|
-
},
|
|
1148
|
-
return t ? !!
|
|
1149
|
-
},
|
|
1147
|
+
}, lo = function(t, e) {
|
|
1148
|
+
return t ? !!Ie(t, e) : !1;
|
|
1149
|
+
}, co = function(t, e) {
|
|
1150
1150
|
if (t)
|
|
1151
|
-
return
|
|
1152
|
-
},
|
|
1151
|
+
return Ie(t, e, !0);
|
|
1152
|
+
}, uo = function() {
|
|
1153
1153
|
var e, r = {
|
|
1154
1154
|
assert: function(n) {
|
|
1155
1155
|
if (!r.has(n))
|
|
1156
|
-
throw new
|
|
1156
|
+
throw new oo("Side channel does not contain " + no(n));
|
|
1157
1157
|
},
|
|
1158
1158
|
delete: function(n) {
|
|
1159
|
-
var o = e && e.next, a =
|
|
1159
|
+
var o = e && e.next, a = co(e, n);
|
|
1160
1160
|
return a && o && o === a && (e = void 0), !!a;
|
|
1161
1161
|
},
|
|
1162
1162
|
get: function(n) {
|
|
1163
|
-
return
|
|
1163
|
+
return ao(e, n);
|
|
1164
1164
|
},
|
|
1165
1165
|
has: function(n) {
|
|
1166
|
-
return
|
|
1166
|
+
return lo(e, n);
|
|
1167
1167
|
},
|
|
1168
1168
|
set: function(n, o) {
|
|
1169
1169
|
e || (e = {
|
|
1170
1170
|
next: void 0
|
|
1171
|
-
}),
|
|
1171
|
+
}), io(
|
|
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
|
+
}, rr = Object, fo = Error, so = EvalError, po = RangeError, yo = ReferenceError, vo = SyntaxError, ho = URIError, go = Math.abs, mo = Math.floor, Eo = Math.max, _o = Math.min, So = Math.pow, Ao = Math.round, Ro = Number.isNaN || function(e) {
|
|
1181
1181
|
return e !== e;
|
|
1182
|
-
},
|
|
1183
|
-
return
|
|
1184
|
-
},
|
|
1185
|
-
if (
|
|
1182
|
+
}, Po = Ro, Oo = function(e) {
|
|
1183
|
+
return Po(e) || e === 0 ? e : e < 0 ? -1 : 1;
|
|
1184
|
+
}, bo = Object.getOwnPropertyDescriptor, Ee = bo;
|
|
1185
|
+
if (Ee)
|
|
1186
1186
|
try {
|
|
1187
|
-
|
|
1187
|
+
Ee([], "length");
|
|
1188
1188
|
} catch {
|
|
1189
|
-
|
|
1189
|
+
Ee = null;
|
|
1190
1190
|
}
|
|
1191
|
-
var
|
|
1192
|
-
if (
|
|
1191
|
+
var nr = 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 Io = _e, Le, Ct;
|
|
1199
|
+
function To() {
|
|
1200
|
+
return Ct || (Ct = 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,79 @@ 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, Nt;
|
|
1229
|
+
function wo() {
|
|
1230
|
+
if (Nt) return Me;
|
|
1231
|
+
Nt = 1;
|
|
1232
|
+
var t = typeof Symbol < "u" && Symbol, e = To();
|
|
1233
|
+
return Me = function() {
|
|
1234
1234
|
return typeof t != "function" || typeof Symbol != "function" || typeof t("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
|
|
1235
|
-
},
|
|
1235
|
+
}, Me;
|
|
1236
1236
|
}
|
|
1237
|
-
var
|
|
1238
|
-
function
|
|
1239
|
-
return
|
|
1237
|
+
var Ue, Dt;
|
|
1238
|
+
function or() {
|
|
1239
|
+
return Dt || (Dt = 1, Ue = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Ue;
|
|
1240
1240
|
}
|
|
1241
|
-
var
|
|
1242
|
-
function
|
|
1243
|
-
if (
|
|
1244
|
-
|
|
1245
|
-
var t =
|
|
1246
|
-
return
|
|
1241
|
+
var Ge, $t;
|
|
1242
|
+
function ar() {
|
|
1243
|
+
if ($t) return Ge;
|
|
1244
|
+
$t = 1;
|
|
1245
|
+
var t = rr;
|
|
1246
|
+
return Ge = t.getPrototypeOf || null, Ge;
|
|
1247
1247
|
}
|
|
1248
|
-
var
|
|
1248
|
+
var Co = "Function.prototype.bind called on incompatible ", No = Object.prototype.toString, Do = Math.max, $o = "[object Function]", Ft = function(e, r) {
|
|
1249
1249
|
for (var n = [], o = 0; o < e.length; o += 1)
|
|
1250
1250
|
n[o] = e[o];
|
|
1251
1251
|
for (var a = 0; a < r.length; a += 1)
|
|
1252
1252
|
n[a + e.length] = r[a];
|
|
1253
1253
|
return n;
|
|
1254
|
-
},
|
|
1254
|
+
}, Fo = function(e, r) {
|
|
1255
1255
|
for (var n = [], o = r, a = 0; o < e.length; o += 1, a += 1)
|
|
1256
1256
|
n[a] = e[o];
|
|
1257
1257
|
return n;
|
|
1258
|
-
},
|
|
1258
|
+
}, xo = function(t, e) {
|
|
1259
1259
|
for (var r = "", n = 0; n < t.length; n += 1)
|
|
1260
1260
|
r += t[n], n + 1 < t.length && (r += e);
|
|
1261
1261
|
return r;
|
|
1262
|
-
},
|
|
1262
|
+
}, Lo = function(e) {
|
|
1263
1263
|
var r = this;
|
|
1264
|
-
if (typeof r != "function" ||
|
|
1265
|
-
throw new TypeError(
|
|
1266
|
-
for (var n =
|
|
1264
|
+
if (typeof r != "function" || No.apply(r) !== $o)
|
|
1265
|
+
throw new TypeError(Co + r);
|
|
1266
|
+
for (var n = Fo(arguments, 1), o, a = function() {
|
|
1267
1267
|
if (this instanceof o) {
|
|
1268
1268
|
var u = r.apply(
|
|
1269
1269
|
this,
|
|
1270
|
-
|
|
1270
|
+
Ft(n, arguments)
|
|
1271
1271
|
);
|
|
1272
1272
|
return Object(u) === u ? u : this;
|
|
1273
1273
|
}
|
|
1274
1274
|
return r.apply(
|
|
1275
1275
|
e,
|
|
1276
|
-
|
|
1276
|
+
Ft(n, arguments)
|
|
1277
1277
|
);
|
|
1278
|
-
}, i =
|
|
1278
|
+
}, i = Do(0, r.length - n.length), l = [], c = 0; c < i; c++)
|
|
1279
1279
|
l[c] = "$" + c;
|
|
1280
|
-
if (o = Function("binder", "return function (" +
|
|
1280
|
+
if (o = Function("binder", "return function (" + xo(l, ",") + "){ return binder.apply(this,arguments); }")(a), r.prototype) {
|
|
1281
1281
|
var s = function() {
|
|
1282
1282
|
};
|
|
1283
1283
|
s.prototype = r.prototype, o.prototype = new s(), s.prototype = null;
|
|
1284
1284
|
}
|
|
1285
1285
|
return o;
|
|
1286
|
-
},
|
|
1287
|
-
function
|
|
1288
|
-
return
|
|
1286
|
+
}, Mo = Lo, Te = Function.prototype.bind || Mo, lt = Function.prototype.call, Be, xt;
|
|
1287
|
+
function ir() {
|
|
1288
|
+
return xt || (xt = 1, Be = Function.prototype.apply), Be;
|
|
1289
1289
|
}
|
|
1290
|
-
var
|
|
1290
|
+
var Uo = typeof Reflect < "u" && Reflect && Reflect.apply, Go = Te, Bo = ir(), Ho = lt, ko = Uo, jo = ko || Go.call(Ho, Bo), Xo = Te, Wo = re, Vo = lt, qo = jo, lr = function(e) {
|
|
1291
1291
|
if (e.length < 1 || typeof e[0] != "function")
|
|
1292
|
-
throw new
|
|
1293
|
-
return
|
|
1294
|
-
},
|
|
1295
|
-
function
|
|
1296
|
-
if (
|
|
1297
|
-
|
|
1298
|
-
var t =
|
|
1292
|
+
throw new Wo("a function is required");
|
|
1293
|
+
return qo(Xo, Vo, e);
|
|
1294
|
+
}, He, Lt;
|
|
1295
|
+
function zo() {
|
|
1296
|
+
if (Lt) return He;
|
|
1297
|
+
Lt = 1;
|
|
1298
|
+
var t = lr, e = nr, r;
|
|
1299
1299
|
try {
|
|
1300
1300
|
r = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
1301
1301
|
[].__proto__ === Array.prototype;
|
|
@@ -1308,19 +1308,19 @@ function ea() {
|
|
|
1308
1308
|
/** @type {keyof typeof Object.prototype} */
|
|
1309
1309
|
"__proto__"
|
|
1310
1310
|
), o = Object, a = o.getPrototypeOf;
|
|
1311
|
-
return
|
|
1311
|
+
return He = n && typeof n.get == "function" ? t([n.get]) : typeof a == "function" ? (
|
|
1312
1312
|
/** @type {import('./get')} */
|
|
1313
1313
|
function(l) {
|
|
1314
1314
|
return a(l == null ? l : o(l));
|
|
1315
1315
|
}
|
|
1316
|
-
) : !1,
|
|
1316
|
+
) : !1, He;
|
|
1317
1317
|
}
|
|
1318
|
-
var
|
|
1319
|
-
function
|
|
1320
|
-
if (
|
|
1321
|
-
|
|
1322
|
-
var t =
|
|
1323
|
-
return
|
|
1318
|
+
var ke, Mt;
|
|
1319
|
+
function Ko() {
|
|
1320
|
+
if (Mt) return ke;
|
|
1321
|
+
Mt = 1;
|
|
1322
|
+
var t = or(), e = ar(), r = zo();
|
|
1323
|
+
return ke = t ? function(o) {
|
|
1324
1324
|
return t(o);
|
|
1325
1325
|
} : e ? function(o) {
|
|
1326
1326
|
if (!o || typeof o != "object" && typeof o != "function")
|
|
@@ -1328,131 +1328,131 @@ function ta() {
|
|
|
1328
1328
|
return e(o);
|
|
1329
1329
|
} : r ? function(o) {
|
|
1330
1330
|
return r(o);
|
|
1331
|
-
} : null,
|
|
1331
|
+
} : null, ke;
|
|
1332
1332
|
}
|
|
1333
|
-
var
|
|
1334
|
-
function
|
|
1335
|
-
if (
|
|
1336
|
-
|
|
1337
|
-
var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, r =
|
|
1338
|
-
return
|
|
1333
|
+
var je, Ut;
|
|
1334
|
+
function Yo() {
|
|
1335
|
+
if (Ut) return je;
|
|
1336
|
+
Ut = 1;
|
|
1337
|
+
var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, r = Te;
|
|
1338
|
+
return je = r.call(t, e), je;
|
|
1339
1339
|
}
|
|
1340
|
-
var
|
|
1340
|
+
var d, Qo = rr, Jo = fo, Zo = so, ea = po, ta = yo, te = vo, Z = re, ra = ho, na = go, oa = mo, aa = Eo, ia = _o, la = So, ca = Ao, ua = Oo, cr = Function, Xe = function(t) {
|
|
1341
1341
|
try {
|
|
1342
|
-
return
|
|
1342
|
+
return cr('"use strict"; return (' + t + ").constructor;")();
|
|
1343
1343
|
} catch {
|
|
1344
1344
|
}
|
|
1345
|
-
}, se =
|
|
1345
|
+
}, se = nr, fa = Io, We = function() {
|
|
1346
1346
|
throw new Z();
|
|
1347
|
-
},
|
|
1347
|
+
}, sa = se ? function() {
|
|
1348
1348
|
try {
|
|
1349
|
-
return arguments.callee,
|
|
1349
|
+
return arguments.callee, We;
|
|
1350
1350
|
} catch {
|
|
1351
1351
|
try {
|
|
1352
1352
|
return se(arguments, "callee").get;
|
|
1353
1353
|
} catch {
|
|
1354
|
-
return
|
|
1354
|
+
return We;
|
|
1355
1355
|
}
|
|
1356
1356
|
}
|
|
1357
|
-
}() :
|
|
1357
|
+
}() : We, Y = wo()(), S = Ko(), pa = ar(), ya = or(), ur = ir(), pe = lt, J = {}, da = typeof Uint8Array > "u" || !S ? d : S(Uint8Array), W = {
|
|
1358
1358
|
__proto__: null,
|
|
1359
|
-
"%AggregateError%": typeof AggregateError > "u" ?
|
|
1359
|
+
"%AggregateError%": typeof AggregateError > "u" ? d : AggregateError,
|
|
1360
1360
|
"%Array%": Array,
|
|
1361
|
-
"%ArrayBuffer%": typeof ArrayBuffer > "u" ?
|
|
1362
|
-
"%ArrayIteratorPrototype%": Y && S ? S([][Symbol.iterator]()) :
|
|
1363
|
-
"%AsyncFromSyncIteratorPrototype%":
|
|
1361
|
+
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? d : ArrayBuffer,
|
|
1362
|
+
"%ArrayIteratorPrototype%": Y && S ? S([][Symbol.iterator]()) : d,
|
|
1363
|
+
"%AsyncFromSyncIteratorPrototype%": d,
|
|
1364
1364
|
"%AsyncFunction%": J,
|
|
1365
1365
|
"%AsyncGenerator%": J,
|
|
1366
1366
|
"%AsyncGeneratorFunction%": J,
|
|
1367
1367
|
"%AsyncIteratorPrototype%": J,
|
|
1368
|
-
"%Atomics%": typeof Atomics > "u" ?
|
|
1369
|
-
"%BigInt%": typeof BigInt > "u" ?
|
|
1370
|
-
"%BigInt64Array%": typeof BigInt64Array > "u" ?
|
|
1371
|
-
"%BigUint64Array%": typeof BigUint64Array > "u" ?
|
|
1368
|
+
"%Atomics%": typeof Atomics > "u" ? d : Atomics,
|
|
1369
|
+
"%BigInt%": typeof BigInt > "u" ? d : BigInt,
|
|
1370
|
+
"%BigInt64Array%": typeof BigInt64Array > "u" ? d : BigInt64Array,
|
|
1371
|
+
"%BigUint64Array%": typeof BigUint64Array > "u" ? d : BigUint64Array,
|
|
1372
1372
|
"%Boolean%": Boolean,
|
|
1373
|
-
"%DataView%": typeof DataView > "u" ?
|
|
1373
|
+
"%DataView%": typeof DataView > "u" ? d : DataView,
|
|
1374
1374
|
"%Date%": Date,
|
|
1375
1375
|
"%decodeURI%": decodeURI,
|
|
1376
1376
|
"%decodeURIComponent%": decodeURIComponent,
|
|
1377
1377
|
"%encodeURI%": encodeURI,
|
|
1378
1378
|
"%encodeURIComponent%": encodeURIComponent,
|
|
1379
|
-
"%Error%":
|
|
1379
|
+
"%Error%": Jo,
|
|
1380
1380
|
"%eval%": eval,
|
|
1381
1381
|
// eslint-disable-line no-eval
|
|
1382
|
-
"%EvalError%":
|
|
1383
|
-
"%Float16Array%": typeof Float16Array > "u" ?
|
|
1384
|
-
"%Float32Array%": typeof Float32Array > "u" ?
|
|
1385
|
-
"%Float64Array%": typeof Float64Array > "u" ?
|
|
1386
|
-
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ?
|
|
1387
|
-
"%Function%":
|
|
1382
|
+
"%EvalError%": Zo,
|
|
1383
|
+
"%Float16Array%": typeof Float16Array > "u" ? d : Float16Array,
|
|
1384
|
+
"%Float32Array%": typeof Float32Array > "u" ? d : Float32Array,
|
|
1385
|
+
"%Float64Array%": typeof Float64Array > "u" ? d : Float64Array,
|
|
1386
|
+
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? d : FinalizationRegistry,
|
|
1387
|
+
"%Function%": cr,
|
|
1388
1388
|
"%GeneratorFunction%": J,
|
|
1389
|
-
"%Int8Array%": typeof Int8Array > "u" ?
|
|
1390
|
-
"%Int16Array%": typeof Int16Array > "u" ?
|
|
1391
|
-
"%Int32Array%": typeof Int32Array > "u" ?
|
|
1389
|
+
"%Int8Array%": typeof Int8Array > "u" ? d : Int8Array,
|
|
1390
|
+
"%Int16Array%": typeof Int16Array > "u" ? d : Int16Array,
|
|
1391
|
+
"%Int32Array%": typeof Int32Array > "u" ? d : Int32Array,
|
|
1392
1392
|
"%isFinite%": isFinite,
|
|
1393
1393
|
"%isNaN%": isNaN,
|
|
1394
|
-
"%IteratorPrototype%": Y && S ? S(S([][Symbol.iterator]())) :
|
|
1395
|
-
"%JSON%": typeof JSON == "object" ? JSON :
|
|
1396
|
-
"%Map%": typeof Map > "u" ?
|
|
1397
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !Y || !S ?
|
|
1394
|
+
"%IteratorPrototype%": Y && S ? S(S([][Symbol.iterator]())) : d,
|
|
1395
|
+
"%JSON%": typeof JSON == "object" ? JSON : d,
|
|
1396
|
+
"%Map%": typeof Map > "u" ? d : Map,
|
|
1397
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !Y || !S ? d : S((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
1398
1398
|
"%Math%": Math,
|
|
1399
1399
|
"%Number%": Number,
|
|
1400
|
-
"%Object%":
|
|
1400
|
+
"%Object%": Qo,
|
|
1401
1401
|
"%Object.getOwnPropertyDescriptor%": se,
|
|
1402
1402
|
"%parseFloat%": parseFloat,
|
|
1403
1403
|
"%parseInt%": parseInt,
|
|
1404
|
-
"%Promise%": typeof Promise > "u" ?
|
|
1405
|
-
"%Proxy%": typeof Proxy > "u" ?
|
|
1406
|
-
"%RangeError%":
|
|
1407
|
-
"%ReferenceError%":
|
|
1408
|
-
"%Reflect%": typeof Reflect > "u" ?
|
|
1404
|
+
"%Promise%": typeof Promise > "u" ? d : Promise,
|
|
1405
|
+
"%Proxy%": typeof Proxy > "u" ? d : Proxy,
|
|
1406
|
+
"%RangeError%": ea,
|
|
1407
|
+
"%ReferenceError%": ta,
|
|
1408
|
+
"%Reflect%": typeof Reflect > "u" ? d : Reflect,
|
|
1409
1409
|
"%RegExp%": RegExp,
|
|
1410
|
-
"%Set%": typeof Set > "u" ?
|
|
1411
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !Y || !S ?
|
|
1412
|
-
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ?
|
|
1410
|
+
"%Set%": typeof Set > "u" ? d : Set,
|
|
1411
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !Y || !S ? d : S((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
1412
|
+
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? d : SharedArrayBuffer,
|
|
1413
1413
|
"%String%": String,
|
|
1414
|
-
"%StringIteratorPrototype%": Y && S ? S(""[Symbol.iterator]()) :
|
|
1415
|
-
"%Symbol%": Y ? Symbol :
|
|
1414
|
+
"%StringIteratorPrototype%": Y && S ? S(""[Symbol.iterator]()) : d,
|
|
1415
|
+
"%Symbol%": Y ? Symbol : d,
|
|
1416
1416
|
"%SyntaxError%": te,
|
|
1417
|
-
"%ThrowTypeError%":
|
|
1418
|
-
"%TypedArray%":
|
|
1417
|
+
"%ThrowTypeError%": sa,
|
|
1418
|
+
"%TypedArray%": da,
|
|
1419
1419
|
"%TypeError%": Z,
|
|
1420
|
-
"%Uint8Array%": typeof Uint8Array > "u" ?
|
|
1421
|
-
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ?
|
|
1422
|
-
"%Uint16Array%": typeof Uint16Array > "u" ?
|
|
1423
|
-
"%Uint32Array%": typeof Uint32Array > "u" ?
|
|
1424
|
-
"%URIError%":
|
|
1425
|
-
"%WeakMap%": typeof WeakMap > "u" ?
|
|
1426
|
-
"%WeakRef%": typeof WeakRef > "u" ?
|
|
1427
|
-
"%WeakSet%": typeof WeakSet > "u" ?
|
|
1420
|
+
"%Uint8Array%": typeof Uint8Array > "u" ? d : Uint8Array,
|
|
1421
|
+
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? d : Uint8ClampedArray,
|
|
1422
|
+
"%Uint16Array%": typeof Uint16Array > "u" ? d : Uint16Array,
|
|
1423
|
+
"%Uint32Array%": typeof Uint32Array > "u" ? d : Uint32Array,
|
|
1424
|
+
"%URIError%": ra,
|
|
1425
|
+
"%WeakMap%": typeof WeakMap > "u" ? d : WeakMap,
|
|
1426
|
+
"%WeakRef%": typeof WeakRef > "u" ? d : WeakRef,
|
|
1427
|
+
"%WeakSet%": typeof WeakSet > "u" ? d : WeakSet,
|
|
1428
1428
|
"%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%":
|
|
1429
|
+
"%Function.prototype.apply%": ur,
|
|
1430
|
+
"%Object.defineProperty%": fa,
|
|
1431
|
+
"%Object.getPrototypeOf%": pa,
|
|
1432
|
+
"%Math.abs%": na,
|
|
1433
|
+
"%Math.floor%": oa,
|
|
1434
|
+
"%Math.max%": aa,
|
|
1435
|
+
"%Math.min%": ia,
|
|
1436
|
+
"%Math.pow%": la,
|
|
1437
|
+
"%Math.round%": ca,
|
|
1438
|
+
"%Math.sign%": ua,
|
|
1439
|
+
"%Reflect.getPrototypeOf%": ya
|
|
1440
1440
|
};
|
|
1441
1441
|
if (S)
|
|
1442
1442
|
try {
|
|
1443
1443
|
null.error;
|
|
1444
1444
|
} catch (t) {
|
|
1445
|
-
var
|
|
1446
|
-
|
|
1445
|
+
var va = S(S(t));
|
|
1446
|
+
W["%Error.prototype%"] = va;
|
|
1447
1447
|
}
|
|
1448
|
-
var
|
|
1448
|
+
var ha = function t(e) {
|
|
1449
1449
|
var r;
|
|
1450
1450
|
if (e === "%AsyncFunction%")
|
|
1451
|
-
r =
|
|
1451
|
+
r = Xe("async function () {}");
|
|
1452
1452
|
else if (e === "%GeneratorFunction%")
|
|
1453
|
-
r =
|
|
1453
|
+
r = Xe("function* () {}");
|
|
1454
1454
|
else if (e === "%AsyncGeneratorFunction%")
|
|
1455
|
-
r =
|
|
1455
|
+
r = Xe("async function* () {}");
|
|
1456
1456
|
else if (e === "%AsyncGenerator%") {
|
|
1457
1457
|
var n = t("%AsyncGeneratorFunction%");
|
|
1458
1458
|
n && (r = n.prototype);
|
|
@@ -1460,8 +1460,8 @@ var Aa = function t(e) {
|
|
|
1460
1460
|
var o = t("%AsyncGenerator%");
|
|
1461
1461
|
o && S && (r = S(o.prototype));
|
|
1462
1462
|
}
|
|
1463
|
-
return
|
|
1464
|
-
},
|
|
1463
|
+
return W[e] = r, r;
|
|
1464
|
+
}, Gt = {
|
|
1465
1465
|
__proto__: null,
|
|
1466
1466
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
1467
1467
|
"%ArrayPrototype%": ["Array", "prototype"],
|
|
@@ -1514,21 +1514,21 @@ var Aa = function t(e) {
|
|
|
1514
1514
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
1515
1515
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
1516
1516
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
1517
|
-
}, ye =
|
|
1518
|
-
var r =
|
|
1517
|
+
}, ye = Te, Pe = Yo(), ga = ye.call(pe, Array.prototype.concat), ma = ye.call(ur, Array.prototype.splice), Bt = ye.call(pe, String.prototype.replace), Oe = ye.call(pe, String.prototype.slice), Ea = ye.call(pe, RegExp.prototype.exec), _a = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Sa = /\\(\\)?/g, Aa = function(e) {
|
|
1518
|
+
var r = Oe(e, 0, 1), n = Oe(e, -1);
|
|
1519
1519
|
if (r === "%" && n !== "%")
|
|
1520
1520
|
throw new te("invalid intrinsic syntax, expected closing `%`");
|
|
1521
1521
|
if (n === "%" && r !== "%")
|
|
1522
1522
|
throw new te("invalid intrinsic syntax, expected opening `%`");
|
|
1523
1523
|
var o = [];
|
|
1524
|
-
return
|
|
1525
|
-
o[o.length] = l ?
|
|
1524
|
+
return Bt(e, _a, function(a, i, l, c) {
|
|
1525
|
+
o[o.length] = l ? Bt(c, Sa, "$1") : i || a;
|
|
1526
1526
|
}), o;
|
|
1527
|
-
},
|
|
1527
|
+
}, Ra = function(e, r) {
|
|
1528
1528
|
var n = e, o;
|
|
1529
|
-
if (Pe(
|
|
1530
|
-
var a =
|
|
1531
|
-
if (a === J && (a =
|
|
1529
|
+
if (Pe(Gt, n) && (o = Gt[n], n = "%" + o[0] + "%"), Pe(W, n)) {
|
|
1530
|
+
var a = W[n];
|
|
1531
|
+
if (a === J && (a = ha(n)), typeof a > "u" && !r)
|
|
1532
1532
|
throw new Z("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
1533
1533
|
return {
|
|
1534
1534
|
alias: o,
|
|
@@ -1537,21 +1537,21 @@ var Aa = function t(e) {
|
|
|
1537
1537
|
};
|
|
1538
1538
|
}
|
|
1539
1539
|
throw new te("intrinsic " + e + " does not exist!");
|
|
1540
|
-
},
|
|
1540
|
+
}, ct = function(e, r) {
|
|
1541
1541
|
if (typeof e != "string" || e.length === 0)
|
|
1542
1542
|
throw new Z("intrinsic name must be a non-empty string");
|
|
1543
1543
|
if (arguments.length > 1 && typeof r != "boolean")
|
|
1544
1544
|
throw new Z('"allowMissing" argument must be a boolean');
|
|
1545
|
-
if (
|
|
1545
|
+
if (Ea(/^%?[^%]*%?$/, e) === null)
|
|
1546
1546
|
throw new te("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
1547
|
-
var n =
|
|
1548
|
-
s && (o = s[0],
|
|
1547
|
+
var n = Aa(e), o = n.length > 0 ? n[0] : "", a = Ra("%" + o + "%", r), i = a.name, l = a.value, c = !1, s = a.alias;
|
|
1548
|
+
s && (o = s[0], ma(n, ga([0, 1], s)));
|
|
1549
1549
|
for (var u = 1, p = !0; u < n.length; u += 1) {
|
|
1550
|
-
var f = n[u],
|
|
1551
|
-
if ((
|
|
1550
|
+
var f = n[u], v = Oe(f, 0, 1), y = Oe(f, -1);
|
|
1551
|
+
if ((v === '"' || v === "'" || v === "`" || y === '"' || y === "'" || y === "`") && v !== y)
|
|
1552
1552
|
throw new te("property names with quotes must have matching quotes");
|
|
1553
|
-
if ((f === "constructor" || !p) && (c = !0), o += "." + f, i = "%" + o + "%", Pe(
|
|
1554
|
-
l =
|
|
1553
|
+
if ((f === "constructor" || !p) && (c = !0), o += "." + f, i = "%" + o + "%", Pe(W, i))
|
|
1554
|
+
l = W[i];
|
|
1555
1555
|
else if (l != null) {
|
|
1556
1556
|
if (!(f in l)) {
|
|
1557
1557
|
if (!r)
|
|
@@ -1559,82 +1559,82 @@ var Aa = function t(e) {
|
|
|
1559
1559
|
return;
|
|
1560
1560
|
}
|
|
1561
1561
|
if (se && u + 1 >= n.length) {
|
|
1562
|
-
var
|
|
1563
|
-
p = !!
|
|
1562
|
+
var E = se(l, f);
|
|
1563
|
+
p = !!E, p && "get" in E && !("originalValue" in E.get) ? l = E.get : l = l[f];
|
|
1564
1564
|
} else
|
|
1565
1565
|
p = Pe(l, f), l = l[f];
|
|
1566
|
-
p && !c && (
|
|
1566
|
+
p && !c && (W[i] = l);
|
|
1567
1567
|
}
|
|
1568
1568
|
}
|
|
1569
1569
|
return l;
|
|
1570
|
-
},
|
|
1570
|
+
}, fr = ct, sr = lr, Pa = sr([fr("%String.prototype.indexOf%")]), pr = function(e, r) {
|
|
1571
1571
|
var n = (
|
|
1572
1572
|
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
1573
|
-
|
|
1573
|
+
fr(e, !!r)
|
|
1574
1574
|
);
|
|
1575
|
-
return typeof n == "function" &&
|
|
1575
|
+
return typeof n == "function" && Pa(e, ".prototype.") > -1 ? sr(
|
|
1576
1576
|
/** @type {const} */
|
|
1577
1577
|
[n]
|
|
1578
1578
|
) : n;
|
|
1579
|
-
},
|
|
1579
|
+
}, Oa = ct, de = pr, ba = be, Ia = re, Ht = Oa("%Map%", !0), Ta = de("Map.prototype.get", !0), wa = de("Map.prototype.set", !0), Ca = de("Map.prototype.has", !0), Na = de("Map.prototype.delete", !0), Da = de("Map.prototype.size", !0), yr = !!Ht && /** @type {Exclude<import('.'), false>} */
|
|
1580
1580
|
function() {
|
|
1581
1581
|
var e, r = {
|
|
1582
1582
|
assert: function(n) {
|
|
1583
1583
|
if (!r.has(n))
|
|
1584
|
-
throw new
|
|
1584
|
+
throw new Ia("Side channel does not contain " + ba(n));
|
|
1585
1585
|
},
|
|
1586
1586
|
delete: function(n) {
|
|
1587
1587
|
if (e) {
|
|
1588
|
-
var o =
|
|
1589
|
-
return
|
|
1588
|
+
var o = Na(e, n);
|
|
1589
|
+
return Da(e) === 0 && (e = void 0), o;
|
|
1590
1590
|
}
|
|
1591
1591
|
return !1;
|
|
1592
1592
|
},
|
|
1593
1593
|
get: function(n) {
|
|
1594
1594
|
if (e)
|
|
1595
|
-
return
|
|
1595
|
+
return Ta(e, n);
|
|
1596
1596
|
},
|
|
1597
1597
|
has: function(n) {
|
|
1598
|
-
return e ?
|
|
1598
|
+
return e ? Ca(e, n) : !1;
|
|
1599
1599
|
},
|
|
1600
1600
|
set: function(n, o) {
|
|
1601
|
-
e || (e = new
|
|
1601
|
+
e || (e = new Ht()), wa(e, n, o);
|
|
1602
1602
|
}
|
|
1603
1603
|
};
|
|
1604
1604
|
return r;
|
|
1605
|
-
},
|
|
1605
|
+
}, $a = ct, we = pr, Fa = be, me = yr, xa = re, Q = $a("%WeakMap%", !0), La = we("WeakMap.prototype.get", !0), Ma = we("WeakMap.prototype.set", !0), Ua = we("WeakMap.prototype.has", !0), Ga = we("WeakMap.prototype.delete", !0), Ba = Q ? (
|
|
1606
1606
|
/** @type {Exclude<import('.'), false>} */
|
|
1607
1607
|
function() {
|
|
1608
1608
|
var e, r, n = {
|
|
1609
1609
|
assert: function(o) {
|
|
1610
1610
|
if (!n.has(o))
|
|
1611
|
-
throw new
|
|
1611
|
+
throw new xa("Side channel does not contain " + Fa(o));
|
|
1612
1612
|
},
|
|
1613
1613
|
delete: function(o) {
|
|
1614
1614
|
if (Q && o && (typeof o == "object" || typeof o == "function")) {
|
|
1615
1615
|
if (e)
|
|
1616
|
-
return
|
|
1616
|
+
return Ga(e, o);
|
|
1617
1617
|
} else if (me && r)
|
|
1618
1618
|
return r.delete(o);
|
|
1619
1619
|
return !1;
|
|
1620
1620
|
},
|
|
1621
1621
|
get: function(o) {
|
|
1622
|
-
return Q && o && (typeof o == "object" || typeof o == "function") && e ?
|
|
1622
|
+
return Q && o && (typeof o == "object" || typeof o == "function") && e ? La(e, o) : r && r.get(o);
|
|
1623
1623
|
},
|
|
1624
1624
|
has: function(o) {
|
|
1625
|
-
return Q && o && (typeof o == "object" || typeof o == "function") && e ?
|
|
1625
|
+
return Q && o && (typeof o == "object" || typeof o == "function") && e ? Ua(e, o) : !!r && r.has(o);
|
|
1626
1626
|
},
|
|
1627
1627
|
set: function(o, a) {
|
|
1628
|
-
Q && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new Q()),
|
|
1628
|
+
Q && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new Q()), Ma(e, o, a)) : me && (r || (r = me()), r.set(o, a));
|
|
1629
1629
|
}
|
|
1630
1630
|
};
|
|
1631
1631
|
return n;
|
|
1632
1632
|
}
|
|
1633
|
-
) : me,
|
|
1633
|
+
) : me, Ha = re, ka = be, ja = uo, Xa = yr, Wa = Ba, Va = Wa || Xa || ja, qa = function() {
|
|
1634
1634
|
var e, r = {
|
|
1635
1635
|
assert: function(n) {
|
|
1636
1636
|
if (!r.has(n))
|
|
1637
|
-
throw new
|
|
1637
|
+
throw new Ha("Side channel does not contain " + ka(n));
|
|
1638
1638
|
},
|
|
1639
1639
|
delete: function(n) {
|
|
1640
1640
|
return !!e && e.delete(n);
|
|
@@ -1646,91 +1646,72 @@ function() {
|
|
|
1646
1646
|
return !!e && e.has(n);
|
|
1647
1647
|
},
|
|
1648
1648
|
set: function(n, o) {
|
|
1649
|
-
e || (e =
|
|
1649
|
+
e || (e = Va()), e.set(n, o);
|
|
1650
1650
|
}
|
|
1651
1651
|
};
|
|
1652
1652
|
return r;
|
|
1653
|
-
},
|
|
1653
|
+
}, za = String.prototype.replace, Ka = /%20/g, Ve = {
|
|
1654
1654
|
RFC1738: "RFC1738",
|
|
1655
1655
|
RFC3986: "RFC3986"
|
|
1656
|
-
},
|
|
1657
|
-
default:
|
|
1656
|
+
}, ut = {
|
|
1657
|
+
default: Ve.RFC3986,
|
|
1658
1658
|
formatters: {
|
|
1659
1659
|
RFC1738: function(t) {
|
|
1660
|
-
return
|
|
1660
|
+
return za.call(t, Ka, "+");
|
|
1661
1661
|
},
|
|
1662
1662
|
RFC3986: function(t) {
|
|
1663
1663
|
return String(t);
|
|
1664
1664
|
}
|
|
1665
1665
|
},
|
|
1666
|
-
RFC1738:
|
|
1667
|
-
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() {
|
|
1666
|
+
RFC1738: Ve.RFC1738,
|
|
1667
|
+
RFC3986: Ve.RFC3986
|
|
1668
|
+
}, Ya = ut, qe = Object.prototype.hasOwnProperty, X = Array.isArray, N = function() {
|
|
1677
1669
|
for (var t = [], e = 0; e < 256; ++e)
|
|
1678
1670
|
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
1679
1671
|
return t;
|
|
1680
|
-
}(),
|
|
1672
|
+
}(), Qa = function(e) {
|
|
1681
1673
|
for (; e.length > 1; ) {
|
|
1682
1674
|
var r = e.pop(), n = r.obj[r.prop];
|
|
1683
|
-
if (
|
|
1675
|
+
if (X(n)) {
|
|
1684
1676
|
for (var o = [], a = 0; a < n.length; ++a)
|
|
1685
1677
|
typeof n[a] < "u" && o.push(n[a]);
|
|
1686
1678
|
r.obj[r.prop] = o;
|
|
1687
1679
|
}
|
|
1688
1680
|
}
|
|
1689
|
-
},
|
|
1681
|
+
}, dr = function(e, r) {
|
|
1690
1682
|
for (var n = r && r.plainObjects ? { __proto__: null } : {}, o = 0; o < e.length; ++o)
|
|
1691
1683
|
typeof e[o] < "u" && (n[o] = e[o]);
|
|
1692
1684
|
return n;
|
|
1693
|
-
},
|
|
1685
|
+
}, Ja = function t(e, r, n) {
|
|
1694
1686
|
if (!r)
|
|
1695
1687
|
return e;
|
|
1696
1688
|
if (typeof r != "object" && typeof r != "function") {
|
|
1697
|
-
if (
|
|
1689
|
+
if (X(e))
|
|
1698
1690
|
e.push(r);
|
|
1699
1691
|
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);
|
|
1692
|
+
(n && (n.plainObjects || n.allowPrototypes) || !qe.call(Object.prototype, r)) && (e[r] = !0);
|
|
1704
1693
|
else
|
|
1705
1694
|
return [e, r];
|
|
1706
1695
|
return e;
|
|
1707
1696
|
}
|
|
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
|
-
}
|
|
1697
|
+
if (!e || typeof e != "object")
|
|
1716
1698
|
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);
|
|
1699
|
+
var o = e;
|
|
1700
|
+
return X(e) && !X(r) && (o = dr(e, n)), X(e) && X(r) ? (r.forEach(function(a, i) {
|
|
1701
|
+
if (qe.call(e, i)) {
|
|
1702
|
+
var l = e[i];
|
|
1703
|
+
l && typeof l == "object" && a && typeof a == "object" ? e[i] = t(l, a, n) : e.push(a);
|
|
1723
1704
|
} else
|
|
1724
|
-
e[
|
|
1725
|
-
}), e) : Object.keys(r).reduce(function(
|
|
1726
|
-
var
|
|
1727
|
-
return
|
|
1728
|
-
},
|
|
1729
|
-
},
|
|
1705
|
+
e[i] = a;
|
|
1706
|
+
}), e) : Object.keys(r).reduce(function(a, i) {
|
|
1707
|
+
var l = r[i];
|
|
1708
|
+
return qe.call(a, i) ? a[i] = t(a[i], l, n) : a[i] = l, a;
|
|
1709
|
+
}, o);
|
|
1710
|
+
}, Za = function(e, r) {
|
|
1730
1711
|
return Object.keys(r).reduce(function(n, o) {
|
|
1731
1712
|
return n[o] = r[o], n;
|
|
1732
1713
|
}, e);
|
|
1733
|
-
},
|
|
1714
|
+
}, ei = function(t, e, r) {
|
|
1734
1715
|
var n = t.replace(/\+/g, " ");
|
|
1735
1716
|
if (r === "iso-8859-1")
|
|
1736
1717
|
return n.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
@@ -1739,18 +1720,18 @@ function() {
|
|
|
1739
1720
|
} catch {
|
|
1740
1721
|
return n;
|
|
1741
1722
|
}
|
|
1742
|
-
},
|
|
1723
|
+
}, ze = 1024, ti = function(e, r, n, o, a) {
|
|
1743
1724
|
if (e.length === 0)
|
|
1744
1725
|
return e;
|
|
1745
1726
|
var i = e;
|
|
1746
1727
|
if (typeof e == "symbol" ? i = Symbol.prototype.toString.call(e) : typeof e != "string" && (i = String(e)), n === "iso-8859-1")
|
|
1747
|
-
return escape(i).replace(/%u[0-9a-f]{4}/gi, function(
|
|
1748
|
-
return "%26%23" + parseInt(
|
|
1728
|
+
return escape(i).replace(/%u[0-9a-f]{4}/gi, function(v) {
|
|
1729
|
+
return "%26%23" + parseInt(v.slice(2), 16) + "%3B";
|
|
1749
1730
|
});
|
|
1750
|
-
for (var l = "", c = 0; c < i.length; c +=
|
|
1751
|
-
for (var s = i.length >=
|
|
1731
|
+
for (var l = "", c = 0; c < i.length; c += ze) {
|
|
1732
|
+
for (var s = i.length >= ze ? i.slice(c, c + ze) : i, u = [], p = 0; p < s.length; ++p) {
|
|
1752
1733
|
var f = s.charCodeAt(p);
|
|
1753
|
-
if (f === 45 || f === 46 || f === 95 || f === 126 || f >= 48 && f <= 57 || f >= 65 && f <= 90 || f >= 97 && f <= 122 || a ===
|
|
1734
|
+
if (f === 45 || f === 46 || f === 95 || f === 126 || f >= 48 && f <= 57 || f >= 65 && f <= 90 || f >= 97 && f <= 122 || a === Ya.RFC1738 && (f === 40 || f === 41)) {
|
|
1754
1735
|
u[u.length] = s.charAt(p);
|
|
1755
1736
|
continue;
|
|
1756
1737
|
}
|
|
@@ -1771,44 +1752,38 @@ function() {
|
|
|
1771
1752
|
l += u.join("");
|
|
1772
1753
|
}
|
|
1773
1754
|
return l;
|
|
1774
|
-
},
|
|
1755
|
+
}, ri = function(e) {
|
|
1775
1756
|
for (var r = [{ obj: { o: e }, prop: "o" }], n = [], o = 0; o < r.length; ++o)
|
|
1776
1757
|
for (var a = r[o], i = a.obj[a.prop], l = Object.keys(i), c = 0; c < l.length; ++c) {
|
|
1777
1758
|
var s = l[c], u = i[s];
|
|
1778
1759
|
typeof u == "object" && u !== null && n.indexOf(u) === -1 && (r.push({ obj: i, prop: s }), n.push(u));
|
|
1779
1760
|
}
|
|
1780
|
-
return
|
|
1781
|
-
},
|
|
1761
|
+
return Qa(r), e;
|
|
1762
|
+
}, ni = function(e) {
|
|
1782
1763
|
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
1783
|
-
},
|
|
1764
|
+
}, oi = function(e) {
|
|
1784
1765
|
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)) {
|
|
1766
|
+
}, ai = function(e, r) {
|
|
1767
|
+
return [].concat(e, r);
|
|
1768
|
+
}, ii = function(e, r) {
|
|
1769
|
+
if (X(e)) {
|
|
1794
1770
|
for (var n = [], o = 0; o < e.length; o += 1)
|
|
1795
1771
|
n.push(r(e[o]));
|
|
1796
1772
|
return n;
|
|
1797
1773
|
}
|
|
1798
1774
|
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 = {
|
|
1775
|
+
}, vr = {
|
|
1776
|
+
arrayToObject: dr,
|
|
1777
|
+
assign: Za,
|
|
1778
|
+
combine: ai,
|
|
1779
|
+
compact: ri,
|
|
1780
|
+
decode: ei,
|
|
1781
|
+
encode: ti,
|
|
1782
|
+
isBuffer: oi,
|
|
1783
|
+
isRegExp: ni,
|
|
1784
|
+
maybeMap: ii,
|
|
1785
|
+
merge: Ja
|
|
1786
|
+
}, hr = qa, Se = vr, fe = ut, li = Object.prototype.hasOwnProperty, gr = {
|
|
1812
1787
|
brackets: function(e) {
|
|
1813
1788
|
return e + "[]";
|
|
1814
1789
|
},
|
|
@@ -1819,9 +1794,9 @@ function() {
|
|
|
1819
1794
|
repeat: function(e) {
|
|
1820
1795
|
return e;
|
|
1821
1796
|
}
|
|
1822
|
-
}, D = Array.isArray,
|
|
1823
|
-
|
|
1824
|
-
},
|
|
1797
|
+
}, D = Array.isArray, ci = Array.prototype.push, mr = function(t, e) {
|
|
1798
|
+
ci.apply(t, D(e) ? e : [e]);
|
|
1799
|
+
}, ui = Date.prototype.toISOString, kt = fe.default, m = {
|
|
1825
1800
|
addQueryPrefix: !1,
|
|
1826
1801
|
allowDots: !1,
|
|
1827
1802
|
allowEmptyArrays: !1,
|
|
@@ -1835,65 +1810,65 @@ function() {
|
|
|
1835
1810
|
encoder: Se.encode,
|
|
1836
1811
|
encodeValuesOnly: !1,
|
|
1837
1812
|
filter: void 0,
|
|
1838
|
-
format:
|
|
1839
|
-
formatter: fe.formatters[
|
|
1813
|
+
format: kt,
|
|
1814
|
+
formatter: fe.formatters[kt],
|
|
1840
1815
|
// deprecated
|
|
1841
1816
|
indices: !1,
|
|
1842
1817
|
serializeDate: function(e) {
|
|
1843
|
-
return
|
|
1818
|
+
return ui.call(e);
|
|
1844
1819
|
},
|
|
1845
1820
|
skipNulls: !1,
|
|
1846
1821
|
strictNullHandling: !1
|
|
1847
|
-
},
|
|
1822
|
+
}, fi = function(e) {
|
|
1848
1823
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
1849
|
-
},
|
|
1850
|
-
for (var h = e, I = b,
|
|
1824
|
+
}, Ke = {}, si = function t(e, r, n, o, a, i, l, c, s, u, p, f, v, y, E, A, O, b) {
|
|
1825
|
+
for (var h = e, I = b, T = 0, k = !1; (I = I.get(Ke)) !== void 0 && !k; ) {
|
|
1851
1826
|
var U = I.get(e);
|
|
1852
|
-
if (
|
|
1853
|
-
if (U ===
|
|
1827
|
+
if (T += 1, typeof U < "u") {
|
|
1828
|
+
if (U === T)
|
|
1854
1829
|
throw new RangeError("Cyclic object value");
|
|
1855
1830
|
k = !0;
|
|
1856
1831
|
}
|
|
1857
|
-
typeof I.get(
|
|
1832
|
+
typeof I.get(Ke) > "u" && (T = 0);
|
|
1858
1833
|
}
|
|
1859
|
-
if (typeof u == "function" ? h = u(r, h) : h instanceof Date ? h =
|
|
1860
|
-
return oe instanceof Date ?
|
|
1834
|
+
if (typeof u == "function" ? h = u(r, h) : h instanceof Date ? h = v(h) : n === "comma" && D(h) && (h = Se.maybeMap(h, function(oe) {
|
|
1835
|
+
return oe instanceof Date ? v(oe) : oe;
|
|
1861
1836
|
})), h === null) {
|
|
1862
1837
|
if (i)
|
|
1863
|
-
return s && !A ? s(r, m.encoder,
|
|
1838
|
+
return s && !A ? s(r, m.encoder, O, "key", y) : r;
|
|
1864
1839
|
h = "";
|
|
1865
1840
|
}
|
|
1866
|
-
if (
|
|
1841
|
+
if (fi(h) || Se.isBuffer(h)) {
|
|
1867
1842
|
if (s) {
|
|
1868
|
-
var z = A ? r : s(r, m.encoder,
|
|
1869
|
-
return [
|
|
1843
|
+
var z = A ? r : s(r, m.encoder, O, "key", y);
|
|
1844
|
+
return [E(z) + "=" + E(s(h, m.encoder, O, "value", y))];
|
|
1870
1845
|
}
|
|
1871
|
-
return [
|
|
1846
|
+
return [E(r) + "=" + E(String(h))];
|
|
1872
1847
|
}
|
|
1873
|
-
var
|
|
1848
|
+
var F = [];
|
|
1874
1849
|
if (typeof h > "u")
|
|
1875
|
-
return
|
|
1876
|
-
var
|
|
1850
|
+
return F;
|
|
1851
|
+
var w;
|
|
1877
1852
|
if (n === "comma" && D(h))
|
|
1878
|
-
A && s && (h = Se.maybeMap(h, s)),
|
|
1853
|
+
A && s && (h = Se.maybeMap(h, s)), w = [{ value: h.length > 0 ? h.join(",") || null : void 0 }];
|
|
1879
1854
|
else if (D(u))
|
|
1880
|
-
|
|
1855
|
+
w = u;
|
|
1881
1856
|
else {
|
|
1882
1857
|
var K = Object.keys(h);
|
|
1883
|
-
|
|
1858
|
+
w = p ? K.sort(p) : K;
|
|
1884
1859
|
}
|
|
1885
|
-
var G = c ? String(r).replace(/\./g, "%2E") : String(r),
|
|
1860
|
+
var G = c ? String(r).replace(/\./g, "%2E") : String(r), R = o && D(h) && h.length === 1 ? G + "[]" : G;
|
|
1886
1861
|
if (a && D(h) && h.length === 0)
|
|
1887
|
-
return
|
|
1888
|
-
for (var C = 0; C <
|
|
1889
|
-
var
|
|
1890
|
-
if (!(l &&
|
|
1891
|
-
var ne = f && c ? String(
|
|
1892
|
-
b.set(e,
|
|
1893
|
-
var ve =
|
|
1894
|
-
ve.set(
|
|
1895
|
-
|
|
1896
|
-
|
|
1862
|
+
return R + "[]";
|
|
1863
|
+
for (var C = 0; C < w.length; ++C) {
|
|
1864
|
+
var P = w[C], j = typeof P == "object" && P && typeof P.value < "u" ? P.value : h[P];
|
|
1865
|
+
if (!(l && j === null)) {
|
|
1866
|
+
var ne = f && c ? String(P).replace(/\./g, "%2E") : String(P), Ne = D(h) ? typeof n == "function" ? n(R, ne) : R : R + (f ? "." + ne : "[" + ne + "]");
|
|
1867
|
+
b.set(e, T);
|
|
1868
|
+
var ve = hr();
|
|
1869
|
+
ve.set(Ke, b), mr(F, t(
|
|
1870
|
+
j,
|
|
1871
|
+
Ne,
|
|
1897
1872
|
n,
|
|
1898
1873
|
o,
|
|
1899
1874
|
a,
|
|
@@ -1904,17 +1879,17 @@ function() {
|
|
|
1904
1879
|
u,
|
|
1905
1880
|
p,
|
|
1906
1881
|
f,
|
|
1907
|
-
|
|
1882
|
+
v,
|
|
1908
1883
|
y,
|
|
1909
|
-
|
|
1884
|
+
E,
|
|
1910
1885
|
A,
|
|
1911
|
-
|
|
1886
|
+
O,
|
|
1912
1887
|
ve
|
|
1913
1888
|
));
|
|
1914
1889
|
}
|
|
1915
1890
|
}
|
|
1916
|
-
return
|
|
1917
|
-
},
|
|
1891
|
+
return F;
|
|
1892
|
+
}, pi = function(e) {
|
|
1918
1893
|
if (!e)
|
|
1919
1894
|
return m;
|
|
1920
1895
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
@@ -1928,14 +1903,14 @@ function() {
|
|
|
1928
1903
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
1929
1904
|
var n = fe.default;
|
|
1930
1905
|
if (typeof e.format < "u") {
|
|
1931
|
-
if (!
|
|
1906
|
+
if (!li.call(fe.formatters, e.format))
|
|
1932
1907
|
throw new TypeError("Unknown format option provided.");
|
|
1933
1908
|
n = e.format;
|
|
1934
1909
|
}
|
|
1935
1910
|
var o = fe.formatters[n], a = m.filter;
|
|
1936
1911
|
(typeof e.filter == "function" || D(e.filter)) && (a = e.filter);
|
|
1937
1912
|
var i;
|
|
1938
|
-
if (e.arrayFormat in
|
|
1913
|
+
if (e.arrayFormat in gr ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = m.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
|
|
1939
1914
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
1940
1915
|
var l = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : m.allowDots : !!e.allowDots;
|
|
1941
1916
|
return {
|
|
@@ -1959,17 +1934,17 @@ function() {
|
|
|
1959
1934
|
sort: typeof e.sort == "function" ? e.sort : null,
|
|
1960
1935
|
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : m.strictNullHandling
|
|
1961
1936
|
};
|
|
1962
|
-
},
|
|
1963
|
-
var r = t, n =
|
|
1937
|
+
}, yi = function(t, e) {
|
|
1938
|
+
var r = t, n = pi(e), o, a;
|
|
1964
1939
|
typeof n.filter == "function" ? (a = n.filter, r = a("", r)) : D(n.filter) && (a = n.filter, o = a);
|
|
1965
1940
|
var i = [];
|
|
1966
1941
|
if (typeof r != "object" || r === null)
|
|
1967
1942
|
return "";
|
|
1968
|
-
var l =
|
|
1943
|
+
var l = gr[n.arrayFormat], c = l === "comma" && n.commaRoundTrip;
|
|
1969
1944
|
o || (o = Object.keys(r)), n.sort && o.sort(n.sort);
|
|
1970
|
-
for (var s =
|
|
1945
|
+
for (var s = hr(), u = 0; u < o.length; ++u) {
|
|
1971
1946
|
var p = o[u], f = r[p];
|
|
1972
|
-
n.skipNulls && f === null ||
|
|
1947
|
+
n.skipNulls && f === null || mr(i, si(
|
|
1973
1948
|
f,
|
|
1974
1949
|
p,
|
|
1975
1950
|
l,
|
|
@@ -1990,9 +1965,9 @@ function() {
|
|
|
1990
1965
|
s
|
|
1991
1966
|
));
|
|
1992
1967
|
}
|
|
1993
|
-
var
|
|
1994
|
-
return n.charsetSentinel && (n.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"),
|
|
1995
|
-
},
|
|
1968
|
+
var v = i.join(n.delimiter), y = n.addQueryPrefix === !0 ? "?" : "";
|
|
1969
|
+
return n.charsetSentinel && (n.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"), v.length > 0 ? y + v : "";
|
|
1970
|
+
}, V = vr, rt = Object.prototype.hasOwnProperty, jt = Array.isArray, g = {
|
|
1996
1971
|
allowDots: !1,
|
|
1997
1972
|
allowEmptyArrays: !1,
|
|
1998
1973
|
allowPrototypes: !1,
|
|
@@ -2002,7 +1977,7 @@ function() {
|
|
|
2002
1977
|
charsetSentinel: !1,
|
|
2003
1978
|
comma: !1,
|
|
2004
1979
|
decodeDotInKeys: !1,
|
|
2005
|
-
decoder:
|
|
1980
|
+
decoder: V.decode,
|
|
2006
1981
|
delimiter: "&",
|
|
2007
1982
|
depth: 5,
|
|
2008
1983
|
duplicates: "combine",
|
|
@@ -2014,17 +1989,17 @@ function() {
|
|
|
2014
1989
|
strictDepth: !1,
|
|
2015
1990
|
strictNullHandling: !1,
|
|
2016
1991
|
throwOnLimitExceeded: !1
|
|
2017
|
-
},
|
|
1992
|
+
}, di = function(t) {
|
|
2018
1993
|
return t.replace(/&#(\d+);/g, function(e, r) {
|
|
2019
1994
|
return String.fromCharCode(parseInt(r, 10));
|
|
2020
1995
|
});
|
|
2021
|
-
},
|
|
1996
|
+
}, Er = function(t, e, r) {
|
|
2022
1997
|
if (t && typeof t == "string" && e.comma && t.indexOf(",") > -1)
|
|
2023
1998
|
return t.split(",");
|
|
2024
1999
|
if (e.throwOnLimitExceeded && r >= e.arrayLimit)
|
|
2025
2000
|
throw new RangeError("Array limit exceeded. Only " + e.arrayLimit + " element" + (e.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
2026
2001
|
return t;
|
|
2027
|
-
},
|
|
2002
|
+
}, vi = "utf8=%26%2310003%3B", hi = "utf8=%E2%9C%93", gi = function(e, r) {
|
|
2028
2003
|
var n = { __proto__: null }, o = r.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
|
|
2029
2004
|
o = o.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
2030
2005
|
var a = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, i = o.split(
|
|
@@ -2036,45 +2011,34 @@ function() {
|
|
|
2036
2011
|
var l = -1, c, s = r.charset;
|
|
2037
2012
|
if (r.charsetSentinel)
|
|
2038
2013
|
for (c = 0; c < i.length; ++c)
|
|
2039
|
-
i[c].indexOf("utf8=") === 0 && (i[c] ===
|
|
2014
|
+
i[c].indexOf("utf8=") === 0 && (i[c] === hi ? s = "utf-8" : i[c] === vi && (s = "iso-8859-1"), l = c, c = i.length);
|
|
2040
2015
|
for (c = 0; c < i.length; ++c)
|
|
2041
2016
|
if (c !== l) {
|
|
2042
|
-
var u = i[c], p = u.indexOf("]="), f = p === -1 ? u.indexOf("=") : p + 1,
|
|
2043
|
-
|
|
2044
|
-
|
|
2017
|
+
var u = i[c], p = u.indexOf("]="), f = p === -1 ? u.indexOf("=") : p + 1, v, y;
|
|
2018
|
+
f === -1 ? (v = r.decoder(u, g.decoder, s, "key"), y = r.strictNullHandling ? null : "") : (v = r.decoder(u.slice(0, f), g.decoder, s, "key"), y = V.maybeMap(
|
|
2019
|
+
Er(
|
|
2045
2020
|
u.slice(f + 1),
|
|
2046
2021
|
r,
|
|
2047
|
-
|
|
2022
|
+
jt(n[v]) ? n[v].length : 0
|
|
2048
2023
|
),
|
|
2049
2024
|
function(A) {
|
|
2050
2025
|
return r.decoder(A, g.decoder, s, "value");
|
|
2051
2026
|
}
|
|
2052
|
-
))
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
n[d],
|
|
2056
|
-
y,
|
|
2057
|
-
r.arrayLimit,
|
|
2058
|
-
r.plainObjects
|
|
2059
|
-
) : (!_ || r.duplicates === "last") && (n[d] = y);
|
|
2060
|
-
}
|
|
2027
|
+
)), y && r.interpretNumericEntities && s === "iso-8859-1" && (y = di(String(y))), u.indexOf("[]=") > -1 && (y = jt(y) ? [y] : y);
|
|
2028
|
+
var E = rt.call(n, v);
|
|
2029
|
+
E && r.duplicates === "combine" ? n[v] = V.combine(n[v], y) : (!E || r.duplicates === "last") && (n[v] = y);
|
|
2061
2030
|
}
|
|
2062
2031
|
return n;
|
|
2063
|
-
},
|
|
2032
|
+
}, mi = function(t, e, r, n) {
|
|
2064
2033
|
var o = 0;
|
|
2065
2034
|
if (t.length > 0 && t[t.length - 1] === "[]") {
|
|
2066
2035
|
var a = t.slice(0, -1).join("");
|
|
2067
2036
|
o = Array.isArray(e) && e[a] ? e[a].length : 0;
|
|
2068
2037
|
}
|
|
2069
|
-
for (var i = n ? e :
|
|
2038
|
+
for (var i = n ? e : Er(e, r, o), l = t.length - 1; l >= 0; --l) {
|
|
2070
2039
|
var c, s = t[l];
|
|
2071
2040
|
if (s === "[]" && r.parseArrays)
|
|
2072
|
-
|
|
2073
|
-
[],
|
|
2074
|
-
i,
|
|
2075
|
-
r.arrayLimit,
|
|
2076
|
-
r.plainObjects
|
|
2077
|
-
);
|
|
2041
|
+
c = r.allowEmptyArrays && (i === "" || r.strictNullHandling && i === null) ? [] : V.combine([], i);
|
|
2078
2042
|
else {
|
|
2079
2043
|
c = r.plainObjects ? { __proto__: null } : {};
|
|
2080
2044
|
var u = s.charAt(0) === "[" && s.charAt(s.length - 1) === "]" ? s.slice(1, -1) : s, p = r.decodeDotInKeys ? u.replace(/%2E/g, ".") : u, f = parseInt(p, 10);
|
|
@@ -2083,36 +2047,27 @@ function() {
|
|
|
2083
2047
|
i = c;
|
|
2084
2048
|
}
|
|
2085
2049
|
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) {
|
|
2050
|
+
}, Ei = function(e, r, n, o) {
|
|
2110
2051
|
if (e) {
|
|
2111
|
-
var a =
|
|
2112
|
-
if (
|
|
2113
|
-
|
|
2052
|
+
var a = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, l = /(\[[^[\]]*])/g, c = n.depth > 0 && i.exec(a), s = c ? a.slice(0, c.index) : a, u = [];
|
|
2053
|
+
if (s) {
|
|
2054
|
+
if (!n.plainObjects && rt.call(Object.prototype, s) && !n.allowPrototypes)
|
|
2055
|
+
return;
|
|
2056
|
+
u.push(s);
|
|
2057
|
+
}
|
|
2058
|
+
for (var p = 0; n.depth > 0 && (c = l.exec(a)) !== null && p < n.depth; ) {
|
|
2059
|
+
if (p += 1, !n.plainObjects && rt.call(Object.prototype, c[1].slice(1, -1)) && !n.allowPrototypes)
|
|
2060
|
+
return;
|
|
2061
|
+
u.push(c[1]);
|
|
2062
|
+
}
|
|
2063
|
+
if (c) {
|
|
2064
|
+
if (n.strictDepth === !0)
|
|
2065
|
+
throw new RangeError("Input depth exceeded depth option of " + n.depth + " and strictDepth is true");
|
|
2066
|
+
u.push("[" + a.slice(c.index) + "]");
|
|
2067
|
+
}
|
|
2068
|
+
return mi(u, r, n, o);
|
|
2114
2069
|
}
|
|
2115
|
-
},
|
|
2070
|
+
}, _i = function(e) {
|
|
2116
2071
|
if (!e)
|
|
2117
2072
|
return g;
|
|
2118
2073
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
@@ -2140,7 +2095,7 @@ function() {
|
|
|
2140
2095
|
comma: typeof e.comma == "boolean" ? e.comma : g.comma,
|
|
2141
2096
|
decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : g.decodeDotInKeys,
|
|
2142
2097
|
decoder: typeof e.decoder == "function" ? e.decoder : g.decoder,
|
|
2143
|
-
delimiter: typeof e.delimiter == "string" ||
|
|
2098
|
+
delimiter: typeof e.delimiter == "string" || V.isRegExp(e.delimiter) ? e.delimiter : g.delimiter,
|
|
2144
2099
|
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
2145
2100
|
depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : g.depth,
|
|
2146
2101
|
duplicates: n,
|
|
@@ -2153,24 +2108,24 @@ function() {
|
|
|
2153
2108
|
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : g.strictNullHandling,
|
|
2154
2109
|
throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" ? e.throwOnLimitExceeded : !1
|
|
2155
2110
|
};
|
|
2156
|
-
},
|
|
2157
|
-
var r =
|
|
2111
|
+
}, Si = function(t, e) {
|
|
2112
|
+
var r = _i(e);
|
|
2158
2113
|
if (t === "" || t === null || typeof t > "u")
|
|
2159
2114
|
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:
|
|
2115
|
+
for (var n = typeof t == "string" ? gi(t, r) : t, o = r.plainObjects ? { __proto__: null } : {}, a = Object.keys(n), i = 0; i < a.length; ++i) {
|
|
2116
|
+
var l = a[i], c = Ei(l, n[l], r, typeof t == "string");
|
|
2117
|
+
o = V.merge(o, c, r);
|
|
2118
|
+
}
|
|
2119
|
+
return r.allowSparse === !0 ? o : V.compact(o);
|
|
2120
|
+
}, Ai = yi, Ri = Si, Pi = ut, Oi = {
|
|
2121
|
+
formats: Pi,
|
|
2122
|
+
parse: Ri,
|
|
2123
|
+
stringify: Ai
|
|
2169
2124
|
};
|
|
2170
|
-
const
|
|
2171
|
-
async function
|
|
2125
|
+
const bi = /* @__PURE__ */ cn(Oi);
|
|
2126
|
+
async function Ce(t, e = {}, r) {
|
|
2172
2127
|
const { cms: n = "cms" } = e;
|
|
2173
|
-
return fetch(`${t.href}?${
|
|
2128
|
+
return fetch(`${t.href}?${bi.stringify(e)}`, {
|
|
2174
2129
|
method: "GET",
|
|
2175
2130
|
cache: r ? "no-store" : "default",
|
|
2176
2131
|
headers: {
|
|
@@ -2181,18 +2136,18 @@ async function $e(t, e = {}, r) {
|
|
|
2181
2136
|
}
|
|
2182
2137
|
});
|
|
2183
2138
|
}
|
|
2184
|
-
function
|
|
2139
|
+
function ft(t, e) {
|
|
2185
2140
|
return !(e != null && e.cms) || (e == null ? void 0 : e.cms) === "vtex" ? `https://${e == null ? void 0 : e.storeId}.myvtex.com/_v/cms/api/${e == null ? void 0 : e.name}/${t}` : String(
|
|
2186
2141
|
new URL(`api/${t}`, process.env.NEXT_PUBLIC_API_URL)
|
|
2187
2142
|
);
|
|
2188
2143
|
}
|
|
2189
|
-
function
|
|
2144
|
+
function _r(t) {
|
|
2190
2145
|
return Array.isArray(t) && t.length > 0 ? t[0] : Array.isArray(t) ? null : t;
|
|
2191
2146
|
}
|
|
2192
|
-
async function
|
|
2147
|
+
async function Sr(t, e = [], r = {}) {
|
|
2193
2148
|
var n;
|
|
2194
2149
|
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(
|
|
2150
|
+
const o = (r == null ? void 0 : r.previewMode) === "true", a = (r == null ? void 0 : r.documentId) ?? "", i = a && ((n = String(a)) != null && n.length) ? `/${r.documentId}` : "", l = new URL(ft(`${t}${i}`, r)), c = await Ce(l, r, o);
|
|
2196
2151
|
if (!c.ok)
|
|
2197
2152
|
return console.error(`[Error fetching preview data]: ${t} - status: ${c.statusText}`), [];
|
|
2198
2153
|
const s = await c.json(), u = e.findIndex((p) => p.documentId === s.id);
|
|
@@ -2200,15 +2155,15 @@ async function Ir(t, e = [], r = {}) {
|
|
|
2200
2155
|
}
|
|
2201
2156
|
return e;
|
|
2202
2157
|
}
|
|
2203
|
-
const
|
|
2158
|
+
const ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2204
2159
|
__proto__: null,
|
|
2205
|
-
createUrl:
|
|
2206
|
-
fetchCMS:
|
|
2207
|
-
mergePreviewDocument:
|
|
2208
|
-
spreadStrapiData:
|
|
2160
|
+
createUrl: ft,
|
|
2161
|
+
fetchCMS: Ce,
|
|
2162
|
+
mergePreviewDocument: Sr,
|
|
2163
|
+
spreadStrapiData: _r
|
|
2209
2164
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2210
|
-
async function
|
|
2211
|
-
const n = !!(e != null && e.previewMode), o = await
|
|
2165
|
+
async function Ar(t, e = {}, r) {
|
|
2166
|
+
const n = !!(e != null && e.previewMode), o = await Ce(t, e, n);
|
|
2212
2167
|
if (!o.ok)
|
|
2213
2168
|
return console.log(
|
|
2214
2169
|
`Failed to fetch Strapi (url=${String(t)}, status=${o.status})`
|
|
@@ -2216,15 +2171,15 @@ async function wr(t, e = {}, r) {
|
|
|
2216
2171
|
const { data: a } = await o.json();
|
|
2217
2172
|
return a ? {
|
|
2218
2173
|
status: 200,
|
|
2219
|
-
data: r ?
|
|
2174
|
+
data: r ? _r(a) : a
|
|
2220
2175
|
} : { status: 404, data: [], error: "No data found" };
|
|
2221
2176
|
}
|
|
2222
|
-
async function
|
|
2177
|
+
async function Rr(t, e, r = {}) {
|
|
2223
2178
|
const n = (r == null ? void 0 : r.previewId) ?? "", o = (r == null ? void 0 : r.previewMode) === "true", a = { ...r, versionId: n }, i = [];
|
|
2224
2179
|
let l = 1, c = 0, s = !0;
|
|
2225
2180
|
try {
|
|
2226
2181
|
do {
|
|
2227
|
-
const u = await
|
|
2182
|
+
const u = await Ce(e, { ...a, page: l }, o).then((p) => p.json()).catch((p) => (console.error("Error fetching VTEX CMS data:", p), console.error("Error URL:", e.toString()), null));
|
|
2228
2183
|
l === 1 && (c = u.totalItems), Array.isArray(u == null ? void 0 : u.data) && i.push(...u.data), s = !!(u != null && u.hasNextPage), l++;
|
|
2229
2184
|
} while (s && i.length < c);
|
|
2230
2185
|
if (o && i.length > 0) {
|
|
@@ -2232,7 +2187,7 @@ async function Tr(t, e, r = {}) {
|
|
|
2232
2187
|
throw new Error(
|
|
2233
2188
|
"contentType and previewId are required for preview mode in vtexCMSData"
|
|
2234
2189
|
);
|
|
2235
|
-
const u = await
|
|
2190
|
+
const u = await Sr(
|
|
2236
2191
|
t,
|
|
2237
2192
|
i,
|
|
2238
2193
|
a
|
|
@@ -2254,12 +2209,12 @@ async function Tr(t, e, r = {}) {
|
|
|
2254
2209
|
};
|
|
2255
2210
|
}
|
|
2256
2211
|
}
|
|
2257
|
-
const
|
|
2212
|
+
const Xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2258
2213
|
__proto__: null,
|
|
2259
|
-
strapiCMSData:
|
|
2260
|
-
vtexCMSData:
|
|
2214
|
+
strapiCMSData: Ar,
|
|
2215
|
+
vtexCMSData: Rr
|
|
2261
2216
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2262
|
-
async function
|
|
2217
|
+
async function Ii({
|
|
2263
2218
|
contentType: t,
|
|
2264
2219
|
documentId: e,
|
|
2265
2220
|
versionId: r,
|
|
@@ -2272,63 +2227,63 @@ async function xi({
|
|
|
2272
2227
|
{ cache: "no-cache" }
|
|
2273
2228
|
);
|
|
2274
2229
|
}
|
|
2275
|
-
async function
|
|
2230
|
+
async function Ti(t, e = {}, r) {
|
|
2276
2231
|
const { cms: n = "vtex" } = e ?? {};
|
|
2277
2232
|
try {
|
|
2278
|
-
const o = new URL(
|
|
2279
|
-
return n !== "vtex" ?
|
|
2233
|
+
const o = new URL(ft(t, e));
|
|
2234
|
+
return n !== "vtex" ? Ar(o, e, r) : Rr(t, o, e);
|
|
2280
2235
|
} catch (o) {
|
|
2281
2236
|
return console.error(`[Fetch ContentType Error CMS ${n}]`, o), r ? { status: 400, data: null } : { status: 200, data: [] };
|
|
2282
2237
|
}
|
|
2283
2238
|
}
|
|
2284
|
-
const
|
|
2239
|
+
const Wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2285
2240
|
__proto__: null,
|
|
2286
|
-
fetchContentType:
|
|
2287
|
-
getCMSContentType:
|
|
2241
|
+
fetchContentType: Ti,
|
|
2242
|
+
getCMSContentType: Ii
|
|
2288
2243
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2289
2244
|
export {
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2245
|
+
jr as A,
|
|
2246
|
+
Kr as B,
|
|
2247
|
+
xi as C,
|
|
2248
|
+
Di as D,
|
|
2249
|
+
Ui as E,
|
|
2250
|
+
On as F,
|
|
2251
|
+
Ti as G,
|
|
2252
|
+
zt as H,
|
|
2253
|
+
Fi as I,
|
|
2254
|
+
Bi as J,
|
|
2255
|
+
$i as K,
|
|
2256
|
+
Mi as L,
|
|
2257
|
+
Hi as M,
|
|
2258
|
+
Wi as N,
|
|
2259
|
+
ji as O,
|
|
2260
|
+
Xi as P,
|
|
2261
|
+
Gi as Q,
|
|
2262
|
+
ki as S,
|
|
2263
|
+
Wr as a,
|
|
2264
|
+
zr as b,
|
|
2265
|
+
kr as c,
|
|
2266
|
+
Vr as d,
|
|
2267
|
+
Ni as e,
|
|
2268
|
+
Ye as f,
|
|
2269
|
+
Hr as g,
|
|
2270
|
+
Gr as h,
|
|
2271
|
+
qr as i,
|
|
2272
|
+
nt as j,
|
|
2273
|
+
Vt as k,
|
|
2274
|
+
sn as l,
|
|
2275
|
+
pn as m,
|
|
2276
|
+
yn as n,
|
|
2277
|
+
dn as o,
|
|
2278
|
+
Li as p,
|
|
2279
|
+
qt as q,
|
|
2280
|
+
fn as r,
|
|
2281
|
+
Xt as s,
|
|
2282
|
+
cn as t,
|
|
2283
|
+
Yr as u,
|
|
2284
|
+
Rn as v,
|
|
2285
|
+
Br as w,
|
|
2286
|
+
Qr as x,
|
|
2287
|
+
Zr as y,
|
|
2333
2288
|
he as z
|
|
2334
2289
|
};
|