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