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