@soma-vertical-web/multi-lib 0.0.75 → 1.0.1
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/SearchPageScreening-BryoK-U4.js +4 -0
- package/SearchPageScreening-DER0_wzr.mjs +1812 -0
- package/cms/ContentTypes/Cart/index.d.ts +3 -0
- package/cms/ContentTypes/CommonPage/CommonPage.d.ts +1 -1
- package/cms/ContentTypes/FlagsAndTags/index.d.ts +3 -0
- package/cms/ContentTypes/Footer/Footer.d.ts +1 -1
- package/cms/ContentTypes/HelpButton/HelpButtonContent.d.ts +1 -1
- package/cms/ContentTypes/LPCadastro/LPCadastroContent.d.ts +1 -1
- package/cms/ContentTypes/PDP/PDPContent.d.ts +1 -1
- package/cms/ContentTypes/PLP/PLPContent.d.ts +1 -1
- package/cms/ContentTypes/{Redirects → PLP/Redirects}/Redirects.d.ts +1 -1
- package/cms/ContentTypes/Search/SearchContent.d.ts +1 -1
- package/cms/Sections/Banner/Composite/Content.d.ts +1 -1
- package/cms/Sections/SectionZone.d.ts +1 -1
- package/cms/Sections/TextAccordion/Component.d.ts +1 -1
- package/cms/Sections/TextContent/Component.d.ts +1 -1
- package/cms/Sections/TextContent/Composite/ContentWrapper.d.ts +1 -1
- package/cms/index.d.ts +4 -4
- package/cms/server.d.ts +8 -6
- package/contexts/contexts/Session.d.ts +1 -1
- package/contexts/contexts/cart/Context.d.ts +1 -1
- package/contexts/contexts/cms/FlagsAndTagsContext.d.ts +3 -5
- package/contexts/hooks/useOperations.d.ts +3 -2
- package/contexts/index.d.ts +5 -15
- package/data/api/checkout/region/index.d.ts +1 -1
- package/data/api/cms/index.d.ts +10 -11
- package/data/helpers/cart/index.d.ts +62 -13
- package/data/helpers/cms/index.d.ts +9 -10
- package/data/helpers/utils/cms.d.ts +4 -0
- package/index.js +17 -41
- package/index.mjs +10206 -11387
- package/index2.js +1 -1
- package/index2.mjs +786 -744
- package/layout/index.d.ts +12 -10
- package/layout/team-component/Footer/Footer.d.ts +1 -1
- package/layout/team-component/Header/Composite/HeaderMobileWrapper.d.ts +1 -2
- package/layout/team-component/Header/index.d.ts +1 -1
- package/layout/team-component/ProductCard/Composite/Selectors/SizeSelector.d.ts +1 -1
- package/layout/team-component/ProductCard/ProductCard.d.ts +1 -1
- package/layout/team-component/Timer/index.d.ts +1 -1
- package/layout/team-component/UserMenu/index.d.ts +1 -1
- package/layout/template/MiniCart/Composite/Card/Composite/Sku.d.ts +1 -1
- package/layout/template/MiniCart/Composite/Card/index.d.ts +1 -1
- package/layout/template/MiniCart/Composite/Modal/Body/Body.d.ts +7 -0
- package/layout/template/MiniCart/Composite/Modal/Body/CouponTag/CouponTag.d.ts +9 -0
- package/layout/template/MiniCart/Composite/Modal/Body/CouponTag/index.d.ts +1 -0
- package/layout/template/MiniCart/Composite/Modal/Body/Promotion/Promotion.d.ts +9 -0
- package/layout/template/MiniCart/Composite/Modal/Body/Promotion/helper.d.ts +5 -0
- package/layout/template/MiniCart/Composite/Modal/Body/Promotion/index.d.ts +1 -0
- package/layout/template/MiniCart/Composite/Modal/Body/index.d.ts +1 -0
- package/layout/template/MiniCart/Composite/Modal/Footer/Discount/Discount.d.ts +1 -1
- package/layout/template/MiniCart/Composite/Modal/Footer/Resume/Totals.d.ts +1 -5
- package/layout/template/MiniCart/Composite/Notifications/Notifications.d.ts +1 -1
- package/layout/template/MiniCart/MiniCart.d.ts +1 -1
- package/layout/template/MiniCart/index.d.ts +3 -5
- package/layout/template/PDC/Composite/Products/Products.d.ts +1 -1
- package/layout/template/PDC/index.d.ts +1 -1
- package/layout/template/PDP/Composite/Info/MainContent/Actions/index.d.ts +1 -1
- package/layout/template/PDP/Composite/Info/MainContent/BottomNavigation/index.d.ts +1 -1
- package/layout/template/PDP/Composite/Info/MainContent/Header/GoldenTag.d.ts +9 -0
- package/layout/template/PDP/index.d.ts +2 -1
- package/layout/template/QuickShop/Composite/Body.d.ts +1 -1
- package/layout/template/SearchModal/Composite/AutoComplete.d.ts +7 -0
- package/layout/template/SearchModal/Composite/Header.d.ts +3 -0
- package/layout/template/SearchModal/Composite/Recommendations.d.ts +3 -0
- package/layout/template/SearchModal/Composite/Trends.d.ts +4 -0
- package/layout/template/SearchModal/SearchModal.d.ts +7 -0
- package/layout/template/SearchModal/helpers.d.ts +3 -0
- package/layout/template/SearchModal/index.d.ts +1 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/cms/ContentTypes/Cart/index.d.ts +46 -0
- package/types/cms/ContentTypes/CommonPage/index.d.ts +5 -4
- package/types/cms/ContentTypes/FlagsAndTags/index.d.ts +18 -9
- package/types/cms/ContentTypes/Footer/index.d.ts +7 -5
- package/types/cms/ContentTypes/Header/index.d.ts +4 -4
- package/types/cms/ContentTypes/HelpButton/index.d.ts +5 -6
- package/types/cms/ContentTypes/PDP/index.d.ts +6 -6
- package/types/cms/ContentTypes/PLP/index.d.ts +7 -6
- package/types/cms/ContentTypes/Redirects/index.d.ts +2 -2
- package/types/cms/ContentTypes/Search/index.d.ts +7 -7
- package/types/cms/ContentTypes/Tipbar/index.d.ts +4 -3
- package/types/cms/Sections/Banner/index.d.ts +3 -5
- package/types/cms/Sections/BannerCarousel/index.d.ts +2 -3
- package/types/cms/Sections/BennefitsBar/index.d.ts +2 -6
- package/types/cms/Sections/Newsletter/index.d.ts +2 -7
- package/types/cms/Sections/ProductCarousel/index.d.ts +5 -29
- package/types/cms/Sections/SectionZone/index.d.ts +81 -0
- package/types/cms/Sections/TextContent/index.d.ts +5 -2
- package/types/constants.d.ts +36 -0
- package/types/contexts/contexts/pdp.d.ts +2 -1
- package/types/contexts/contexts/plp.d.ts +3 -1
- package/types/contexts/store/cart.d.ts +12 -0
- package/types/data/api/checkout/order-form/index.d.ts +19 -0
- package/types/data/api/cms/index.d.ts +5 -4
- package/types/data/api/index.d.ts +1 -1
- package/types/layout/team-components/BuyPackage/index.d.ts +2 -20
- package/types/layout/team-components/Footer/index.d.ts +2 -0
- package/types/layout/team-components/Header/index.d.ts +3 -2
- package/types/layout/team-components/ProductCard/Selectors/index.d.ts +2 -0
- package/types/layout/team-components/ProductCard/index.d.ts +2 -1
- package/types/layout/team-components/ProductList/index.d.ts +3 -1
- package/types/layout/team-components/Timer/index.d.ts +8 -1
- package/types/layout/team-components/UserMenu/index.d.ts +3 -1
- package/types/layout/templates/LPCadastro/index.d.ts +5 -4
- package/types/layout/templates/MiniCart/index.d.ts +7 -1
- package/types/layout/templates/PDP/index.d.ts +4 -2
- package/types/layout/templates/PLP/index.d.ts +2 -1
- package/types/layout/templates/QuickShop/index.d.ts +2 -1
- package/types/layout/templates/SearchModal/index.d.ts +42 -0
- package/data/api/cms/backup/index.d.ts +0 -11
- package/index-BBxYNFkz.mjs +0 -416
- package/index-BR_9YNfn.mjs +0 -421
- package/index-CwBIv223.js +0 -1
- package/index-DL877zTH.js +0 -1
- package/layout/template/MiniCart/Composite/Modal/Body.d.ts +0 -7
- package/types/cms/Sections/SectionZone/intex.d.ts +0 -64
|
@@ -0,0 +1,1812 @@
|
|
|
1
|
+
import { jsxs as at, Fragment as ur, jsx as P } from "react/jsx-runtime";
|
|
2
|
+
import { Utils as sr } from "@soma-vertical-web/core-components";
|
|
3
|
+
const Ge = (t, e = !0) => Intl.NumberFormat("pt-BR", {
|
|
4
|
+
style: "currency",
|
|
5
|
+
currency: "BRL",
|
|
6
|
+
minimumFractionDigits: e ? 2 : 0
|
|
7
|
+
}).format(t), pr = ({ valueInCents: t, hasFree: e, freeTaxMessage: r }) => t === 0 ? e ? r : Ge(0) : Ge(t / 100), yr = (t, e) => {
|
|
8
|
+
const n = (t - e) * 100 / t;
|
|
9
|
+
return Math.floor(n);
|
|
10
|
+
}, Ct = (t, e) => {
|
|
11
|
+
const [r, n] = t.split(e);
|
|
12
|
+
return { name: r.trim(), size: n ? n.trim() : "" };
|
|
13
|
+
}, dr = (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
|
+
}, mr = (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
|
+
}, vr = (t, e) => t.replace(e, "").trim(), gr = (t) => t.replace(/\//g, ""), hr = ({ 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, c) => {
|
|
33
|
+
var u;
|
|
34
|
+
c && (c.sellerId = i.sellerId, c.sellerName = i.sellerName, c.available = !0, c.isSellerDefault = i.sellerDefault);
|
|
35
|
+
const {
|
|
36
|
+
Price: l,
|
|
37
|
+
ListPrice: s,
|
|
38
|
+
PaymentOptions: { installmentOptions: f }
|
|
39
|
+
} = i.commertialOffer;
|
|
40
|
+
r.price = l, r.listPrice = s;
|
|
41
|
+
const p = (u = f == null ? void 0 : f[0]) == null ? void 0 : u.installments;
|
|
42
|
+
if (p) {
|
|
43
|
+
const { count: m, value: d } = p[p.length - 1];
|
|
44
|
+
r.installments = {
|
|
45
|
+
count: m,
|
|
46
|
+
value: d / 100
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
let o = !0;
|
|
51
|
+
const a = t.reduce((i, c) => {
|
|
52
|
+
var f;
|
|
53
|
+
const l = {
|
|
54
|
+
name: c.name,
|
|
55
|
+
sku: c.itemId,
|
|
56
|
+
value: ((f = c.Tamanho) == null ? void 0 : f[0]) ?? Ct(c.nameComplete ?? c.name, e).size,
|
|
57
|
+
available: !1,
|
|
58
|
+
sellerId: "",
|
|
59
|
+
sellerName: "",
|
|
60
|
+
isSellerDefault: !1
|
|
61
|
+
}, s = c.sellers.filter((p) => (p.sellerDefault && p.commertialOffer.IsAvailable && (l.available = !0, n(p, l)), p.commertialOffer.IsAvailable));
|
|
62
|
+
return !l.isSellerDefault && s.length > 0 && (l.available = !0, n(s[0], {
|
|
63
|
+
...l,
|
|
64
|
+
sellerId: s[0].sellerId,
|
|
65
|
+
sellerName: s[0].sellerName
|
|
66
|
+
})), l.available === !1 && (o = !1), i.push(l), i;
|
|
67
|
+
}, []);
|
|
68
|
+
return {
|
|
69
|
+
...r,
|
|
70
|
+
sizes: a,
|
|
71
|
+
allSizesAvailable: o
|
|
72
|
+
};
|
|
73
|
+
}, br = (t) => t ? !t.offers.offers.find(({ quantity: e = 0 }) => e > 0) : !1, _r = (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
|
+
}, Sr = ({ images: t, TEXTURE_IMAGE: e }) => t.find((r) => e.includes(r.imageLabel)) ?? t[0], wr = (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
|
+
}, Ar = (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
|
+
}, Or = ({
|
|
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
|
+
}, xr = (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
|
+
}, Er = (t, e, r) => {
|
|
106
|
+
e && (t ? (e.getAttribute("src") || (e.src = r ?? ""), e.play()) : e.pause());
|
|
107
|
+
}, mi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
108
|
+
__proto__: null,
|
|
109
|
+
disableSKU: br,
|
|
110
|
+
formatPriceToCurrency: Ge,
|
|
111
|
+
freightParsePrice: pr,
|
|
112
|
+
getAspectRatio: xr,
|
|
113
|
+
getColorAndSizeFromSkuName: dr,
|
|
114
|
+
getDiscountPercent: yr,
|
|
115
|
+
getFirstImages: Or,
|
|
116
|
+
getProductNameWithoutSku: vr,
|
|
117
|
+
getSKUName: mr,
|
|
118
|
+
getSkuInfos: hr,
|
|
119
|
+
getThumbImage: Sr,
|
|
120
|
+
getValidOffer: _r,
|
|
121
|
+
removeSlashes: gr,
|
|
122
|
+
resizingImg: wr,
|
|
123
|
+
setVideoPlay: Er,
|
|
124
|
+
splitNameAndSizeFromFullName: Ct,
|
|
125
|
+
updatedResizedImg: Ar
|
|
126
|
+
}, Symbol.toStringTag, { value: "Module" })), it = "fuzzy", lt = "operator", Pr = (t) => ({
|
|
127
|
+
isDepartment: t != null && t.length ? t[0].key === "category-1" : !1
|
|
128
|
+
}), vi = (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
|
+
}, Mt = (t, e) => e ? t === "category-1" : !1, $r = (t) => t.key === "operator" && (t.value === "and" || t.value === "or"), Ir = (t) => t.type === "TEXT", Rr = (t) => t.key === "fuzzy" && (t.value === "0" || t.value === "1" || t.value === "auto"), Dr = (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
|
+
}, Fr = ({ key: t, values: e }) => ({
|
|
153
|
+
__typename: "FacetRange",
|
|
154
|
+
key: t,
|
|
155
|
+
values: e
|
|
156
|
+
}), gi = (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 || !Mt(i.key, o)
|
|
162
|
+
).map(
|
|
163
|
+
(i) => Ir(i) ? Dr(i) : Fr(i)
|
|
164
|
+
);
|
|
165
|
+
}, hi = (t, e) => {
|
|
166
|
+
const r = t.find(({ key: o }) => o === it) ?? null, n = t.find(({ key: o }) => o === lt) ?? null;
|
|
167
|
+
r && Rr(r) && e.append(it, r.value), n && $r(n) && e.append(lt, n.value);
|
|
168
|
+
}, Nr = (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 } = Pr(n);
|
|
176
|
+
return n == null ? void 0 : n.filter((a) => !Mt(a.key, o));
|
|
177
|
+
}, _i = ({ 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: Nr(r),
|
|
182
|
+
term: o,
|
|
183
|
+
base: o ? "" : t,
|
|
184
|
+
page: a
|
|
185
|
+
};
|
|
186
|
+
}, Si = (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
|
+
}, wi = (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 ct = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
196
|
+
function Tr(t) {
|
|
197
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
198
|
+
}
|
|
199
|
+
function Cr(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
|
+
const ue = {
|
|
219
|
+
"responsive-mobile-flex": "_responsive-mobile-flex_1e0ai_1",
|
|
220
|
+
"responsive-desktop-flex": "_responsive-desktop-flex_1e0ai_15",
|
|
221
|
+
"responsive-mobile-block": "_responsive-mobile-block_1e0ai_30",
|
|
222
|
+
"responsive-desktop-block": "_responsive-desktop-block_1e0ai_41"
|
|
223
|
+
}, Mr = "_header_mpbx7_57", Br = "_actions_mpbx7_131", kr = "_breadcrumb_mpbx7_142", Lr = "_credits_mpbx7_157", Ur = "_pdplinks_mpbx7_185", Wr = "_similars_mpbx7_212", zr = "_sizes_mpbx7_251", qr = "_measurementTable_mpbx7_267", Gr = "_measurementHead_mpbx7_280", Hr = "_measurementRows_mpbx7_285", jr = "_measurementRowsTitle_mpbx7_302", Kr = "_measurementRowsText_mpbx7_314", Vr = "_measurementImage_mpbx7_325", Qr = "_measurementImageContainer_mpbx7_328", Jr = "_measurementContent_mpbx7_337", Yr = "_measurementTitle_mpbx7_341", Xr = "_measurementClose_mpbx7_352", Zr = "_productref_mpbx7_417", en = "_slideOut_mpbx7_1", tn = "_slideIn_mpbx7_1", rn = "_content_mpbx7_397", nn = "_pdp_mpbx7_185", on = "_divider_mpbx7_580", Ai = {
|
|
224
|
+
"bottom-navigation": "_bottom-navigation_mpbx7_1",
|
|
225
|
+
"bottom-navigation__credits-modifier": "_bottom-navigation__credits-modifier_mpbx7_18",
|
|
226
|
+
"bottom-navigation__header": "_bottom-navigation__header_mpbx7_21",
|
|
227
|
+
"bottom-navigation__header-content": "_bottom-navigation__header-content_mpbx7_26",
|
|
228
|
+
"golden-tag-content": "_golden-tag-content_mpbx7_45",
|
|
229
|
+
"bottom-navigation__price-and-promo": "_bottom-navigation__price-and-promo_mpbx7_48",
|
|
230
|
+
header: Mr,
|
|
231
|
+
"golden-tag": "_golden-tag_mpbx7_45",
|
|
232
|
+
"golden-tag-video": "_golden-tag-video_mpbx7_86",
|
|
233
|
+
"golden-tag-content-text": "_golden-tag-content-text_mpbx7_105",
|
|
234
|
+
actions: Br,
|
|
235
|
+
"add-to-cart": "_add-to-cart_mpbx7_138",
|
|
236
|
+
breadcrumb: kr,
|
|
237
|
+
"breadcrumb--active": "_breadcrumb--active_mpbx7_147",
|
|
238
|
+
credits: Lr,
|
|
239
|
+
"gallery-carousel-modifier": "_gallery-carousel-modifier_mpbx7_162",
|
|
240
|
+
pdplinks: Ur,
|
|
241
|
+
"links-wrapper": "_links-wrapper_mpbx7_195",
|
|
242
|
+
similars: Wr,
|
|
243
|
+
"similars-info": "_similars-info_mpbx7_224",
|
|
244
|
+
"toggle-style-modifier": "_toggle-style-modifier_mpbx7_233",
|
|
245
|
+
"accessibility-info": "_accessibility-info_mpbx7_237",
|
|
246
|
+
sizes: zr,
|
|
247
|
+
"price-wrapper": "_price-wrapper_mpbx7_263",
|
|
248
|
+
measurementTable: qr,
|
|
249
|
+
measurementHead: Gr,
|
|
250
|
+
measurementRows: Hr,
|
|
251
|
+
measurementRowsTitle: jr,
|
|
252
|
+
measurementRowsText: Kr,
|
|
253
|
+
measurementImage: Vr,
|
|
254
|
+
measurementImageContainer: Qr,
|
|
255
|
+
measurementContent: Jr,
|
|
256
|
+
measurementTitle: Yr,
|
|
257
|
+
measurementClose: Xr,
|
|
258
|
+
"tabs-root-modifier": "_tabs-root-modifier_mpbx7_358",
|
|
259
|
+
"tabs-list-modifier": "_tabs-list-modifier_mpbx7_376",
|
|
260
|
+
"tabs-item-modifier": "_tabs-item-modifier_mpbx7_393",
|
|
261
|
+
"content-wrapper": "_content-wrapper_mpbx7_397",
|
|
262
|
+
productref: Zr,
|
|
263
|
+
"tabs-panel": "_tabs-panel_mpbx7_428",
|
|
264
|
+
"tabs-panel-exit": "_tabs-panel-exit_mpbx7_434",
|
|
265
|
+
slideOut: en,
|
|
266
|
+
"tabs-panel-enter": "_tabs-panel-enter_mpbx7_438",
|
|
267
|
+
slideIn: tn,
|
|
268
|
+
content: rn,
|
|
269
|
+
pdp: nn,
|
|
270
|
+
"pdp-main": "_pdp-main_mpbx7_496",
|
|
271
|
+
"pdp-main__gallery-wrapper": "_pdp-main__gallery-wrapper_mpbx7_501",
|
|
272
|
+
"pdp-main__info": "_pdp-main__info_mpbx7_518",
|
|
273
|
+
"pdp-main__info-main-content": "_pdp-main__info-main-content_mpbx7_538",
|
|
274
|
+
"pdp-main__info-subsection": "_pdp-main__info-subsection_mpbx7_538",
|
|
275
|
+
"subsection-product-info": "_subsection-product-info_mpbx7_549",
|
|
276
|
+
"subsection-similars": "_subsection-similars_mpbx7_552",
|
|
277
|
+
"subsection-sizes": "_subsection-sizes_mpbx7_555",
|
|
278
|
+
"subsection-actions": "_subsection-actions_mpbx7_558",
|
|
279
|
+
"pdp-main__info-secondary-content": "_pdp-main__info-secondary-content_mpbx7_562",
|
|
280
|
+
"sections-title": "_sections-title_mpbx7_568",
|
|
281
|
+
divider: on,
|
|
282
|
+
"breadcrumbs-desktop": "_breadcrumbs-desktop_mpbx7_585",
|
|
283
|
+
"breadcrumbs-mobile": "_breadcrumbs-mobile_mpbx7_594"
|
|
284
|
+
};
|
|
285
|
+
var J = TypeError;
|
|
286
|
+
const an = {}, ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
287
|
+
__proto__: null,
|
|
288
|
+
default: an
|
|
289
|
+
}, Symbol.toStringTag, { value: "Module" })), cn = /* @__PURE__ */ Cr(ln);
|
|
290
|
+
var Ye = typeof Map == "function" && Map.prototype, Ee = Object.getOwnPropertyDescriptor && Ye ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, ve = Ye && Ee && typeof Ee.get == "function" ? Ee.get : null, ft = Ye && Map.prototype.forEach, Xe = typeof Set == "function" && Set.prototype, Pe = Object.getOwnPropertyDescriptor && Xe ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, ge = Xe && Pe && typeof Pe.get == "function" ? Pe.get : null, ut = Xe && Set.prototype.forEach, fn = typeof WeakMap == "function" && WeakMap.prototype, ee = fn ? WeakMap.prototype.has : null, un = typeof WeakSet == "function" && WeakSet.prototype, te = un ? WeakSet.prototype.has : null, sn = typeof WeakRef == "function" && WeakRef.prototype, st = sn ? WeakRef.prototype.deref : null, pn = Boolean.prototype.valueOf, yn = Object.prototype.toString, dn = Function.prototype.toString, mn = String.prototype.match, Ze = String.prototype.slice, T = String.prototype.replace, vn = String.prototype.toUpperCase, pt = String.prototype.toLowerCase, Bt = RegExp.prototype.test, yt = Array.prototype.concat, x = Array.prototype.join, gn = Array.prototype.slice, dt = Math.floor, He = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, $e = Object.getOwnPropertySymbols, je = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, V = typeof Symbol == "function" && typeof Symbol.iterator == "object", re = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === V || !0) ? Symbol.toStringTag : null, kt = Object.prototype.propertyIsEnumerable, mt = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
291
|
+
return t.__proto__;
|
|
292
|
+
} : null);
|
|
293
|
+
function vt(t, e) {
|
|
294
|
+
if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || Bt.call(/e/, e))
|
|
295
|
+
return e;
|
|
296
|
+
var r = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
297
|
+
if (typeof t == "number") {
|
|
298
|
+
var n = t < 0 ? -dt(-t) : dt(t);
|
|
299
|
+
if (n !== t) {
|
|
300
|
+
var o = String(n), a = Ze.call(e, o.length + 1);
|
|
301
|
+
return T.call(o, r, "$&_") + "." + T.call(T.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
return T.call(e, r, "$&_");
|
|
305
|
+
}
|
|
306
|
+
var Ke = cn, gt = Ke.custom, ht = Wt(gt) ? gt : null, Lt = {
|
|
307
|
+
__proto__: null,
|
|
308
|
+
double: '"',
|
|
309
|
+
single: "'"
|
|
310
|
+
}, hn = {
|
|
311
|
+
__proto__: null,
|
|
312
|
+
double: /(["\\])/g,
|
|
313
|
+
single: /(['\\])/g
|
|
314
|
+
}, _e = function t(e, r, n, o) {
|
|
315
|
+
var a = r || {};
|
|
316
|
+
if ($(a, "quoteStyle") && !$(Lt, a.quoteStyle))
|
|
317
|
+
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
318
|
+
if ($(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
|
|
319
|
+
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
320
|
+
var i = $(a, "customInspect") ? a.customInspect : !0;
|
|
321
|
+
if (typeof i != "boolean" && i !== "symbol")
|
|
322
|
+
throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
|
|
323
|
+
if ($(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
|
|
324
|
+
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
325
|
+
if ($(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
|
|
326
|
+
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
327
|
+
var c = a.numericSeparator;
|
|
328
|
+
if (typeof e > "u")
|
|
329
|
+
return "undefined";
|
|
330
|
+
if (e === null)
|
|
331
|
+
return "null";
|
|
332
|
+
if (typeof e == "boolean")
|
|
333
|
+
return e ? "true" : "false";
|
|
334
|
+
if (typeof e == "string")
|
|
335
|
+
return qt(e, a);
|
|
336
|
+
if (typeof e == "number") {
|
|
337
|
+
if (e === 0)
|
|
338
|
+
return 1 / 0 / e > 0 ? "0" : "-0";
|
|
339
|
+
var l = String(e);
|
|
340
|
+
return c ? vt(e, l) : l;
|
|
341
|
+
}
|
|
342
|
+
if (typeof e == "bigint") {
|
|
343
|
+
var s = String(e) + "n";
|
|
344
|
+
return c ? vt(e, s) : s;
|
|
345
|
+
}
|
|
346
|
+
var f = typeof a.depth > "u" ? 5 : a.depth;
|
|
347
|
+
if (typeof n > "u" && (n = 0), n >= f && f > 0 && typeof e == "object")
|
|
348
|
+
return Ve(e) ? "[Array]" : "[Object]";
|
|
349
|
+
var p = Mn(a, n);
|
|
350
|
+
if (typeof o > "u")
|
|
351
|
+
o = [];
|
|
352
|
+
else if (zt(o, e) >= 0)
|
|
353
|
+
return "[Circular]";
|
|
354
|
+
function u(w, N, E) {
|
|
355
|
+
if (N && (o = gn.call(o), o.push(N)), E) {
|
|
356
|
+
var X = {
|
|
357
|
+
depth: a.depth
|
|
358
|
+
};
|
|
359
|
+
return $(a, "quoteStyle") && (X.quoteStyle = a.quoteStyle), t(w, X, n + 1, o);
|
|
360
|
+
}
|
|
361
|
+
return t(w, a, n + 1, o);
|
|
362
|
+
}
|
|
363
|
+
if (typeof e == "function" && !bt(e)) {
|
|
364
|
+
var m = Pn(e), d = se(e, u);
|
|
365
|
+
return "[Function" + (m ? ": " + m : " (anonymous)") + "]" + (d.length > 0 ? " { " + x.call(d, ", ") + " }" : "");
|
|
366
|
+
}
|
|
367
|
+
if (Wt(e)) {
|
|
368
|
+
var _ = V ? T.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : je.call(e);
|
|
369
|
+
return typeof e == "object" && !V ? Z(_) : _;
|
|
370
|
+
}
|
|
371
|
+
if (Nn(e)) {
|
|
372
|
+
for (var S = "<" + pt.call(String(e.nodeName)), I = e.attributes || [], R = 0; R < I.length; R++)
|
|
373
|
+
S += " " + I[R].name + "=" + Ut(bn(I[R].value), "double", a);
|
|
374
|
+
return S += ">", e.childNodes && e.childNodes.length && (S += "..."), S += "</" + pt.call(String(e.nodeName)) + ">", S;
|
|
375
|
+
}
|
|
376
|
+
if (Ve(e)) {
|
|
377
|
+
if (e.length === 0)
|
|
378
|
+
return "[]";
|
|
379
|
+
var v = se(e, u);
|
|
380
|
+
return p && !Cn(v) ? "[" + Qe(v, p) + "]" : "[ " + x.call(v, ", ") + " ]";
|
|
381
|
+
}
|
|
382
|
+
if (Sn(e)) {
|
|
383
|
+
var D = se(e, u);
|
|
384
|
+
return !("cause" in Error.prototype) && "cause" in e && !kt.call(e, "cause") ? "{ [" + String(e) + "] " + x.call(yt.call("[cause]: " + u(e.cause), D), ", ") + " }" : D.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + x.call(D, ", ") + " }";
|
|
385
|
+
}
|
|
386
|
+
if (typeof e == "object" && i) {
|
|
387
|
+
if (ht && typeof e[ht] == "function" && Ke)
|
|
388
|
+
return Ke(e, { depth: f - n });
|
|
389
|
+
if (i !== "symbol" && typeof e.inspect == "function")
|
|
390
|
+
return e.inspect();
|
|
391
|
+
}
|
|
392
|
+
if ($n(e)) {
|
|
393
|
+
var M = [];
|
|
394
|
+
return ft && ft.call(e, function(w, N) {
|
|
395
|
+
M.push(u(N, e, !0) + " => " + u(w, e));
|
|
396
|
+
}), _t("Map", ve.call(e), M, p);
|
|
397
|
+
}
|
|
398
|
+
if (Dn(e)) {
|
|
399
|
+
var Y = [];
|
|
400
|
+
return ut && ut.call(e, function(w) {
|
|
401
|
+
Y.push(u(w, e));
|
|
402
|
+
}), _t("Set", ge.call(e), Y, p);
|
|
403
|
+
}
|
|
404
|
+
if (In(e))
|
|
405
|
+
return Ie("WeakMap");
|
|
406
|
+
if (Fn(e))
|
|
407
|
+
return Ie("WeakSet");
|
|
408
|
+
if (Rn(e))
|
|
409
|
+
return Ie("WeakRef");
|
|
410
|
+
if (An(e))
|
|
411
|
+
return Z(u(Number(e)));
|
|
412
|
+
if (xn(e))
|
|
413
|
+
return Z(u(He.call(e)));
|
|
414
|
+
if (On(e))
|
|
415
|
+
return Z(pn.call(e));
|
|
416
|
+
if (wn(e))
|
|
417
|
+
return Z(u(String(e)));
|
|
418
|
+
if (typeof window < "u" && e === window)
|
|
419
|
+
return "{ [object Window] }";
|
|
420
|
+
if (typeof globalThis < "u" && e === globalThis || typeof ct < "u" && e === ct)
|
|
421
|
+
return "{ [object globalThis] }";
|
|
422
|
+
if (!_n(e) && !bt(e)) {
|
|
423
|
+
var z = se(e, u), ce = mt ? mt(e) === Object.prototype : e instanceof Object || e.constructor === Object, B = e instanceof Object ? "" : "null prototype", F = !ce && re && Object(e) === e && re in e ? Ze.call(C(e), 8, -1) : B ? "Object" : "", fe = ce || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", q = fe + (F || B ? "[" + x.call(yt.call([], F || [], B || []), ": ") + "] " : "");
|
|
424
|
+
return z.length === 0 ? q + "{}" : p ? q + "{" + Qe(z, p) + "}" : q + "{ " + x.call(z, ", ") + " }";
|
|
425
|
+
}
|
|
426
|
+
return String(e);
|
|
427
|
+
};
|
|
428
|
+
function Ut(t, e, r) {
|
|
429
|
+
var n = r.quoteStyle || e, o = Lt[n];
|
|
430
|
+
return o + t + o;
|
|
431
|
+
}
|
|
432
|
+
function bn(t) {
|
|
433
|
+
return T.call(String(t), /"/g, """);
|
|
434
|
+
}
|
|
435
|
+
function W(t) {
|
|
436
|
+
return !re || !(typeof t == "object" && (re in t || typeof t[re] < "u"));
|
|
437
|
+
}
|
|
438
|
+
function Ve(t) {
|
|
439
|
+
return C(t) === "[object Array]" && W(t);
|
|
440
|
+
}
|
|
441
|
+
function _n(t) {
|
|
442
|
+
return C(t) === "[object Date]" && W(t);
|
|
443
|
+
}
|
|
444
|
+
function bt(t) {
|
|
445
|
+
return C(t) === "[object RegExp]" && W(t);
|
|
446
|
+
}
|
|
447
|
+
function Sn(t) {
|
|
448
|
+
return C(t) === "[object Error]" && W(t);
|
|
449
|
+
}
|
|
450
|
+
function wn(t) {
|
|
451
|
+
return C(t) === "[object String]" && W(t);
|
|
452
|
+
}
|
|
453
|
+
function An(t) {
|
|
454
|
+
return C(t) === "[object Number]" && W(t);
|
|
455
|
+
}
|
|
456
|
+
function On(t) {
|
|
457
|
+
return C(t) === "[object Boolean]" && W(t);
|
|
458
|
+
}
|
|
459
|
+
function Wt(t) {
|
|
460
|
+
if (V)
|
|
461
|
+
return t && typeof t == "object" && t instanceof Symbol;
|
|
462
|
+
if (typeof t == "symbol")
|
|
463
|
+
return !0;
|
|
464
|
+
if (!t || typeof t != "object" || !je)
|
|
465
|
+
return !1;
|
|
466
|
+
try {
|
|
467
|
+
return je.call(t), !0;
|
|
468
|
+
} catch {
|
|
469
|
+
}
|
|
470
|
+
return !1;
|
|
471
|
+
}
|
|
472
|
+
function xn(t) {
|
|
473
|
+
if (!t || typeof t != "object" || !He)
|
|
474
|
+
return !1;
|
|
475
|
+
try {
|
|
476
|
+
return He.call(t), !0;
|
|
477
|
+
} catch {
|
|
478
|
+
}
|
|
479
|
+
return !1;
|
|
480
|
+
}
|
|
481
|
+
var En = Object.prototype.hasOwnProperty || function(t) {
|
|
482
|
+
return t in this;
|
|
483
|
+
};
|
|
484
|
+
function $(t, e) {
|
|
485
|
+
return En.call(t, e);
|
|
486
|
+
}
|
|
487
|
+
function C(t) {
|
|
488
|
+
return yn.call(t);
|
|
489
|
+
}
|
|
490
|
+
function Pn(t) {
|
|
491
|
+
if (t.name)
|
|
492
|
+
return t.name;
|
|
493
|
+
var e = mn.call(dn.call(t), /^function\s*([\w$]+)/);
|
|
494
|
+
return e ? e[1] : null;
|
|
495
|
+
}
|
|
496
|
+
function zt(t, e) {
|
|
497
|
+
if (t.indexOf)
|
|
498
|
+
return t.indexOf(e);
|
|
499
|
+
for (var r = 0, n = t.length; r < n; r++)
|
|
500
|
+
if (t[r] === e)
|
|
501
|
+
return r;
|
|
502
|
+
return -1;
|
|
503
|
+
}
|
|
504
|
+
function $n(t) {
|
|
505
|
+
if (!ve || !t || typeof t != "object")
|
|
506
|
+
return !1;
|
|
507
|
+
try {
|
|
508
|
+
ve.call(t);
|
|
509
|
+
try {
|
|
510
|
+
ge.call(t);
|
|
511
|
+
} catch {
|
|
512
|
+
return !0;
|
|
513
|
+
}
|
|
514
|
+
return t instanceof Map;
|
|
515
|
+
} catch {
|
|
516
|
+
}
|
|
517
|
+
return !1;
|
|
518
|
+
}
|
|
519
|
+
function In(t) {
|
|
520
|
+
if (!ee || !t || typeof t != "object")
|
|
521
|
+
return !1;
|
|
522
|
+
try {
|
|
523
|
+
ee.call(t, ee);
|
|
524
|
+
try {
|
|
525
|
+
te.call(t, te);
|
|
526
|
+
} catch {
|
|
527
|
+
return !0;
|
|
528
|
+
}
|
|
529
|
+
return t instanceof WeakMap;
|
|
530
|
+
} catch {
|
|
531
|
+
}
|
|
532
|
+
return !1;
|
|
533
|
+
}
|
|
534
|
+
function Rn(t) {
|
|
535
|
+
if (!st || !t || typeof t != "object")
|
|
536
|
+
return !1;
|
|
537
|
+
try {
|
|
538
|
+
return st.call(t), !0;
|
|
539
|
+
} catch {
|
|
540
|
+
}
|
|
541
|
+
return !1;
|
|
542
|
+
}
|
|
543
|
+
function Dn(t) {
|
|
544
|
+
if (!ge || !t || typeof t != "object")
|
|
545
|
+
return !1;
|
|
546
|
+
try {
|
|
547
|
+
ge.call(t);
|
|
548
|
+
try {
|
|
549
|
+
ve.call(t);
|
|
550
|
+
} catch {
|
|
551
|
+
return !0;
|
|
552
|
+
}
|
|
553
|
+
return t instanceof Set;
|
|
554
|
+
} catch {
|
|
555
|
+
}
|
|
556
|
+
return !1;
|
|
557
|
+
}
|
|
558
|
+
function Fn(t) {
|
|
559
|
+
if (!te || !t || typeof t != "object")
|
|
560
|
+
return !1;
|
|
561
|
+
try {
|
|
562
|
+
te.call(t, te);
|
|
563
|
+
try {
|
|
564
|
+
ee.call(t, ee);
|
|
565
|
+
} catch {
|
|
566
|
+
return !0;
|
|
567
|
+
}
|
|
568
|
+
return t instanceof WeakSet;
|
|
569
|
+
} catch {
|
|
570
|
+
}
|
|
571
|
+
return !1;
|
|
572
|
+
}
|
|
573
|
+
function Nn(t) {
|
|
574
|
+
return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
|
|
575
|
+
}
|
|
576
|
+
function qt(t, e) {
|
|
577
|
+
if (t.length > e.maxStringLength) {
|
|
578
|
+
var r = t.length - e.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : "");
|
|
579
|
+
return qt(Ze.call(t, 0, e.maxStringLength), e) + n;
|
|
580
|
+
}
|
|
581
|
+
var o = hn[e.quoteStyle || "single"];
|
|
582
|
+
o.lastIndex = 0;
|
|
583
|
+
var a = T.call(T.call(t, o, "\\$1"), /[\x00-\x1f]/g, Tn);
|
|
584
|
+
return Ut(a, "single", e);
|
|
585
|
+
}
|
|
586
|
+
function Tn(t) {
|
|
587
|
+
var e = t.charCodeAt(0), r = {
|
|
588
|
+
8: "b",
|
|
589
|
+
9: "t",
|
|
590
|
+
10: "n",
|
|
591
|
+
12: "f",
|
|
592
|
+
13: "r"
|
|
593
|
+
}[e];
|
|
594
|
+
return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + vn.call(e.toString(16));
|
|
595
|
+
}
|
|
596
|
+
function Z(t) {
|
|
597
|
+
return "Object(" + t + ")";
|
|
598
|
+
}
|
|
599
|
+
function Ie(t) {
|
|
600
|
+
return t + " { ? }";
|
|
601
|
+
}
|
|
602
|
+
function _t(t, e, r, n) {
|
|
603
|
+
var o = n ? Qe(r, n) : x.call(r, ", ");
|
|
604
|
+
return t + " (" + e + ") {" + o + "}";
|
|
605
|
+
}
|
|
606
|
+
function Cn(t) {
|
|
607
|
+
for (var e = 0; e < t.length; e++)
|
|
608
|
+
if (zt(t[e], `
|
|
609
|
+
`) >= 0)
|
|
610
|
+
return !1;
|
|
611
|
+
return !0;
|
|
612
|
+
}
|
|
613
|
+
function Mn(t, e) {
|
|
614
|
+
var r;
|
|
615
|
+
if (t.indent === " ")
|
|
616
|
+
r = " ";
|
|
617
|
+
else if (typeof t.indent == "number" && t.indent > 0)
|
|
618
|
+
r = x.call(Array(t.indent + 1), " ");
|
|
619
|
+
else
|
|
620
|
+
return null;
|
|
621
|
+
return {
|
|
622
|
+
base: r,
|
|
623
|
+
prev: x.call(Array(e + 1), r)
|
|
624
|
+
};
|
|
625
|
+
}
|
|
626
|
+
function Qe(t, e) {
|
|
627
|
+
if (t.length === 0)
|
|
628
|
+
return "";
|
|
629
|
+
var r = `
|
|
630
|
+
` + e.prev + e.base;
|
|
631
|
+
return r + x.call(t, "," + r) + `
|
|
632
|
+
` + e.prev;
|
|
633
|
+
}
|
|
634
|
+
function se(t, e) {
|
|
635
|
+
var r = Ve(t), n = [];
|
|
636
|
+
if (r) {
|
|
637
|
+
n.length = t.length;
|
|
638
|
+
for (var o = 0; o < t.length; o++)
|
|
639
|
+
n[o] = $(t, o) ? e(t[o], t) : "";
|
|
640
|
+
}
|
|
641
|
+
var a = typeof $e == "function" ? $e(t) : [], i;
|
|
642
|
+
if (V) {
|
|
643
|
+
i = {};
|
|
644
|
+
for (var c = 0; c < a.length; c++)
|
|
645
|
+
i["$" + a[c]] = a[c];
|
|
646
|
+
}
|
|
647
|
+
for (var l in t)
|
|
648
|
+
$(t, l) && (r && String(Number(l)) === l && l < t.length || V && i["$" + l] instanceof Symbol || (Bt.call(/[^\w$]/, l) ? n.push(e(l, t) + ": " + e(t[l], t)) : n.push(l + ": " + e(t[l], t))));
|
|
649
|
+
if (typeof $e == "function")
|
|
650
|
+
for (var s = 0; s < a.length; s++)
|
|
651
|
+
kt.call(t, a[s]) && n.push("[" + e(a[s]) + "]: " + e(t[a[s]], t));
|
|
652
|
+
return n;
|
|
653
|
+
}
|
|
654
|
+
var Bn = _e, kn = J, Se = function(t, e, r) {
|
|
655
|
+
for (var n = t, o; (o = n.next) != null; n = o)
|
|
656
|
+
if (o.key === e)
|
|
657
|
+
return n.next = o.next, r || (o.next = /** @type {NonNullable<typeof list.next>} */
|
|
658
|
+
t.next, t.next = o), o;
|
|
659
|
+
}, Ln = function(t, e) {
|
|
660
|
+
if (t) {
|
|
661
|
+
var r = Se(t, e);
|
|
662
|
+
return r && r.value;
|
|
663
|
+
}
|
|
664
|
+
}, Un = function(t, e, r) {
|
|
665
|
+
var n = Se(t, e);
|
|
666
|
+
n ? n.value = r : t.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
|
|
667
|
+
{
|
|
668
|
+
// eslint-disable-line no-param-reassign, no-extra-parens
|
|
669
|
+
key: e,
|
|
670
|
+
next: t.next,
|
|
671
|
+
value: r
|
|
672
|
+
};
|
|
673
|
+
}, Wn = function(t, e) {
|
|
674
|
+
return t ? !!Se(t, e) : !1;
|
|
675
|
+
}, zn = function(t, e) {
|
|
676
|
+
if (t)
|
|
677
|
+
return Se(t, e, !0);
|
|
678
|
+
}, qn = function() {
|
|
679
|
+
var e, r = {
|
|
680
|
+
assert: function(n) {
|
|
681
|
+
if (!r.has(n))
|
|
682
|
+
throw new kn("Side channel does not contain " + Bn(n));
|
|
683
|
+
},
|
|
684
|
+
delete: function(n) {
|
|
685
|
+
var o = e && e.next, a = zn(e, n);
|
|
686
|
+
return a && o && o === a && (e = void 0), !!a;
|
|
687
|
+
},
|
|
688
|
+
get: function(n) {
|
|
689
|
+
return Ln(e, n);
|
|
690
|
+
},
|
|
691
|
+
has: function(n) {
|
|
692
|
+
return Wn(e, n);
|
|
693
|
+
},
|
|
694
|
+
set: function(n, o) {
|
|
695
|
+
e || (e = {
|
|
696
|
+
next: void 0
|
|
697
|
+
}), Un(
|
|
698
|
+
/** @type {NonNullable<typeof $o>} */
|
|
699
|
+
e,
|
|
700
|
+
n,
|
|
701
|
+
o
|
|
702
|
+
);
|
|
703
|
+
}
|
|
704
|
+
};
|
|
705
|
+
return r;
|
|
706
|
+
}, Gt = Object, Gn = Error, Hn = EvalError, jn = RangeError, Kn = ReferenceError, Vn = SyntaxError, Qn = URIError, Jn = Math.abs, Yn = Math.floor, Xn = Math.max, Zn = Math.min, eo = Math.pow, to = Math.round, ro = Number.isNaN || function(e) {
|
|
707
|
+
return e !== e;
|
|
708
|
+
}, no = ro, oo = function(e) {
|
|
709
|
+
return no(e) || e === 0 ? e : e < 0 ? -1 : 1;
|
|
710
|
+
}, ao = Object.getOwnPropertyDescriptor, ye = ao;
|
|
711
|
+
if (ye)
|
|
712
|
+
try {
|
|
713
|
+
ye([], "length");
|
|
714
|
+
} catch {
|
|
715
|
+
ye = null;
|
|
716
|
+
}
|
|
717
|
+
var Ht = ye, de = Object.defineProperty || !1;
|
|
718
|
+
if (de)
|
|
719
|
+
try {
|
|
720
|
+
de({}, "a", { value: 1 });
|
|
721
|
+
} catch {
|
|
722
|
+
de = !1;
|
|
723
|
+
}
|
|
724
|
+
var io = de, Re, St;
|
|
725
|
+
function lo() {
|
|
726
|
+
return St || (St = 1, Re = function() {
|
|
727
|
+
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
728
|
+
return !1;
|
|
729
|
+
if (typeof Symbol.iterator == "symbol")
|
|
730
|
+
return !0;
|
|
731
|
+
var e = {}, r = Symbol("test"), n = Object(r);
|
|
732
|
+
if (typeof r == "string" || Object.prototype.toString.call(r) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]")
|
|
733
|
+
return !1;
|
|
734
|
+
var o = 42;
|
|
735
|
+
e[r] = o;
|
|
736
|
+
for (var a in e)
|
|
737
|
+
return !1;
|
|
738
|
+
if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
|
|
739
|
+
return !1;
|
|
740
|
+
var i = Object.getOwnPropertySymbols(e);
|
|
741
|
+
if (i.length !== 1 || i[0] !== r || !Object.prototype.propertyIsEnumerable.call(e, r))
|
|
742
|
+
return !1;
|
|
743
|
+
if (typeof Object.getOwnPropertyDescriptor == "function") {
|
|
744
|
+
var c = (
|
|
745
|
+
/** @type {PropertyDescriptor} */
|
|
746
|
+
Object.getOwnPropertyDescriptor(e, r)
|
|
747
|
+
);
|
|
748
|
+
if (c.value !== o || c.enumerable !== !0)
|
|
749
|
+
return !1;
|
|
750
|
+
}
|
|
751
|
+
return !0;
|
|
752
|
+
}), Re;
|
|
753
|
+
}
|
|
754
|
+
var De, wt;
|
|
755
|
+
function co() {
|
|
756
|
+
if (wt) return De;
|
|
757
|
+
wt = 1;
|
|
758
|
+
var t = typeof Symbol < "u" && Symbol, e = lo();
|
|
759
|
+
return De = function() {
|
|
760
|
+
return typeof t != "function" || typeof Symbol != "function" || typeof t("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
|
|
761
|
+
}, De;
|
|
762
|
+
}
|
|
763
|
+
var Fe, At;
|
|
764
|
+
function jt() {
|
|
765
|
+
return At || (At = 1, Fe = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Fe;
|
|
766
|
+
}
|
|
767
|
+
var Ne, Ot;
|
|
768
|
+
function Kt() {
|
|
769
|
+
if (Ot) return Ne;
|
|
770
|
+
Ot = 1;
|
|
771
|
+
var t = Gt;
|
|
772
|
+
return Ne = t.getPrototypeOf || null, Ne;
|
|
773
|
+
}
|
|
774
|
+
var fo = "Function.prototype.bind called on incompatible ", uo = Object.prototype.toString, so = Math.max, po = "[object Function]", xt = function(e, r) {
|
|
775
|
+
for (var n = [], o = 0; o < e.length; o += 1)
|
|
776
|
+
n[o] = e[o];
|
|
777
|
+
for (var a = 0; a < r.length; a += 1)
|
|
778
|
+
n[a + e.length] = r[a];
|
|
779
|
+
return n;
|
|
780
|
+
}, yo = function(e, r) {
|
|
781
|
+
for (var n = [], o = r, a = 0; o < e.length; o += 1, a += 1)
|
|
782
|
+
n[a] = e[o];
|
|
783
|
+
return n;
|
|
784
|
+
}, mo = function(t, e) {
|
|
785
|
+
for (var r = "", n = 0; n < t.length; n += 1)
|
|
786
|
+
r += t[n], n + 1 < t.length && (r += e);
|
|
787
|
+
return r;
|
|
788
|
+
}, vo = function(e) {
|
|
789
|
+
var r = this;
|
|
790
|
+
if (typeof r != "function" || uo.apply(r) !== po)
|
|
791
|
+
throw new TypeError(fo + r);
|
|
792
|
+
for (var n = yo(arguments, 1), o, a = function() {
|
|
793
|
+
if (this instanceof o) {
|
|
794
|
+
var f = r.apply(
|
|
795
|
+
this,
|
|
796
|
+
xt(n, arguments)
|
|
797
|
+
);
|
|
798
|
+
return Object(f) === f ? f : this;
|
|
799
|
+
}
|
|
800
|
+
return r.apply(
|
|
801
|
+
e,
|
|
802
|
+
xt(n, arguments)
|
|
803
|
+
);
|
|
804
|
+
}, i = so(0, r.length - n.length), c = [], l = 0; l < i; l++)
|
|
805
|
+
c[l] = "$" + l;
|
|
806
|
+
if (o = Function("binder", "return function (" + mo(c, ",") + "){ return binder.apply(this,arguments); }")(a), r.prototype) {
|
|
807
|
+
var s = function() {
|
|
808
|
+
};
|
|
809
|
+
s.prototype = r.prototype, o.prototype = new s(), s.prototype = null;
|
|
810
|
+
}
|
|
811
|
+
return o;
|
|
812
|
+
}, go = vo, we = Function.prototype.bind || go, et = Function.prototype.call, Te, Et;
|
|
813
|
+
function Vt() {
|
|
814
|
+
return Et || (Et = 1, Te = Function.prototype.apply), Te;
|
|
815
|
+
}
|
|
816
|
+
var ho = typeof Reflect < "u" && Reflect && Reflect.apply, bo = we, _o = Vt(), So = et, wo = ho, Ao = wo || bo.call(So, _o), Oo = we, xo = J, Eo = et, Po = Ao, Qt = function(e) {
|
|
817
|
+
if (e.length < 1 || typeof e[0] != "function")
|
|
818
|
+
throw new xo("a function is required");
|
|
819
|
+
return Po(Oo, Eo, e);
|
|
820
|
+
}, Ce, Pt;
|
|
821
|
+
function $o() {
|
|
822
|
+
if (Pt) return Ce;
|
|
823
|
+
Pt = 1;
|
|
824
|
+
var t = Qt, e = Ht, r;
|
|
825
|
+
try {
|
|
826
|
+
r = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
827
|
+
[].__proto__ === Array.prototype;
|
|
828
|
+
} catch (i) {
|
|
829
|
+
if (!i || typeof i != "object" || !("code" in i) || i.code !== "ERR_PROTO_ACCESS")
|
|
830
|
+
throw i;
|
|
831
|
+
}
|
|
832
|
+
var n = !!r && e && e(
|
|
833
|
+
Object.prototype,
|
|
834
|
+
/** @type {keyof typeof Object.prototype} */
|
|
835
|
+
"__proto__"
|
|
836
|
+
), o = Object, a = o.getPrototypeOf;
|
|
837
|
+
return Ce = n && typeof n.get == "function" ? t([n.get]) : typeof a == "function" ? (
|
|
838
|
+
/** @type {import('./get')} */
|
|
839
|
+
function(c) {
|
|
840
|
+
return a(c == null ? c : o(c));
|
|
841
|
+
}
|
|
842
|
+
) : !1, Ce;
|
|
843
|
+
}
|
|
844
|
+
var Me, $t;
|
|
845
|
+
function Io() {
|
|
846
|
+
if ($t) return Me;
|
|
847
|
+
$t = 1;
|
|
848
|
+
var t = jt(), e = Kt(), r = $o();
|
|
849
|
+
return Me = t ? function(o) {
|
|
850
|
+
return t(o);
|
|
851
|
+
} : e ? function(o) {
|
|
852
|
+
if (!o || typeof o != "object" && typeof o != "function")
|
|
853
|
+
throw new TypeError("getProto: not an object");
|
|
854
|
+
return e(o);
|
|
855
|
+
} : r ? function(o) {
|
|
856
|
+
return r(o);
|
|
857
|
+
} : null, Me;
|
|
858
|
+
}
|
|
859
|
+
var Be, It;
|
|
860
|
+
function Ro() {
|
|
861
|
+
if (It) return Be;
|
|
862
|
+
It = 1;
|
|
863
|
+
var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, r = we;
|
|
864
|
+
return Be = r.call(t, e), Be;
|
|
865
|
+
}
|
|
866
|
+
var y, Do = Gt, Fo = Gn, No = Hn, To = jn, Co = Kn, Q = Vn, K = J, Mo = Qn, Bo = Jn, ko = Yn, Lo = Xn, Uo = Zn, Wo = eo, zo = to, qo = oo, Jt = Function, ke = function(t) {
|
|
867
|
+
try {
|
|
868
|
+
return Jt('"use strict"; return (' + t + ").constructor;")();
|
|
869
|
+
} catch {
|
|
870
|
+
}
|
|
871
|
+
}, oe = Ht, Go = io, Le = function() {
|
|
872
|
+
throw new K();
|
|
873
|
+
}, Ho = oe ? function() {
|
|
874
|
+
try {
|
|
875
|
+
return arguments.callee, Le;
|
|
876
|
+
} catch {
|
|
877
|
+
try {
|
|
878
|
+
return oe(arguments, "callee").get;
|
|
879
|
+
} catch {
|
|
880
|
+
return Le;
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
}() : Le, G = co()(), b = Io(), jo = Kt(), Ko = jt(), Yt = Vt(), ae = et, j = {}, Vo = typeof Uint8Array > "u" || !b ? y : b(Uint8Array), L = {
|
|
884
|
+
__proto__: null,
|
|
885
|
+
"%AggregateError%": typeof AggregateError > "u" ? y : AggregateError,
|
|
886
|
+
"%Array%": Array,
|
|
887
|
+
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? y : ArrayBuffer,
|
|
888
|
+
"%ArrayIteratorPrototype%": G && b ? b([][Symbol.iterator]()) : y,
|
|
889
|
+
"%AsyncFromSyncIteratorPrototype%": y,
|
|
890
|
+
"%AsyncFunction%": j,
|
|
891
|
+
"%AsyncGenerator%": j,
|
|
892
|
+
"%AsyncGeneratorFunction%": j,
|
|
893
|
+
"%AsyncIteratorPrototype%": j,
|
|
894
|
+
"%Atomics%": typeof Atomics > "u" ? y : Atomics,
|
|
895
|
+
"%BigInt%": typeof BigInt > "u" ? y : BigInt,
|
|
896
|
+
"%BigInt64Array%": typeof BigInt64Array > "u" ? y : BigInt64Array,
|
|
897
|
+
"%BigUint64Array%": typeof BigUint64Array > "u" ? y : BigUint64Array,
|
|
898
|
+
"%Boolean%": Boolean,
|
|
899
|
+
"%DataView%": typeof DataView > "u" ? y : DataView,
|
|
900
|
+
"%Date%": Date,
|
|
901
|
+
"%decodeURI%": decodeURI,
|
|
902
|
+
"%decodeURIComponent%": decodeURIComponent,
|
|
903
|
+
"%encodeURI%": encodeURI,
|
|
904
|
+
"%encodeURIComponent%": encodeURIComponent,
|
|
905
|
+
"%Error%": Fo,
|
|
906
|
+
"%eval%": eval,
|
|
907
|
+
// eslint-disable-line no-eval
|
|
908
|
+
"%EvalError%": No,
|
|
909
|
+
"%Float16Array%": typeof Float16Array > "u" ? y : Float16Array,
|
|
910
|
+
"%Float32Array%": typeof Float32Array > "u" ? y : Float32Array,
|
|
911
|
+
"%Float64Array%": typeof Float64Array > "u" ? y : Float64Array,
|
|
912
|
+
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? y : FinalizationRegistry,
|
|
913
|
+
"%Function%": Jt,
|
|
914
|
+
"%GeneratorFunction%": j,
|
|
915
|
+
"%Int8Array%": typeof Int8Array > "u" ? y : Int8Array,
|
|
916
|
+
"%Int16Array%": typeof Int16Array > "u" ? y : Int16Array,
|
|
917
|
+
"%Int32Array%": typeof Int32Array > "u" ? y : Int32Array,
|
|
918
|
+
"%isFinite%": isFinite,
|
|
919
|
+
"%isNaN%": isNaN,
|
|
920
|
+
"%IteratorPrototype%": G && b ? b(b([][Symbol.iterator]())) : y,
|
|
921
|
+
"%JSON%": typeof JSON == "object" ? JSON : y,
|
|
922
|
+
"%Map%": typeof Map > "u" ? y : Map,
|
|
923
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !G || !b ? y : b((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
924
|
+
"%Math%": Math,
|
|
925
|
+
"%Number%": Number,
|
|
926
|
+
"%Object%": Do,
|
|
927
|
+
"%Object.getOwnPropertyDescriptor%": oe,
|
|
928
|
+
"%parseFloat%": parseFloat,
|
|
929
|
+
"%parseInt%": parseInt,
|
|
930
|
+
"%Promise%": typeof Promise > "u" ? y : Promise,
|
|
931
|
+
"%Proxy%": typeof Proxy > "u" ? y : Proxy,
|
|
932
|
+
"%RangeError%": To,
|
|
933
|
+
"%ReferenceError%": Co,
|
|
934
|
+
"%Reflect%": typeof Reflect > "u" ? y : Reflect,
|
|
935
|
+
"%RegExp%": RegExp,
|
|
936
|
+
"%Set%": typeof Set > "u" ? y : Set,
|
|
937
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !G || !b ? y : b((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
938
|
+
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? y : SharedArrayBuffer,
|
|
939
|
+
"%String%": String,
|
|
940
|
+
"%StringIteratorPrototype%": G && b ? b(""[Symbol.iterator]()) : y,
|
|
941
|
+
"%Symbol%": G ? Symbol : y,
|
|
942
|
+
"%SyntaxError%": Q,
|
|
943
|
+
"%ThrowTypeError%": Ho,
|
|
944
|
+
"%TypedArray%": Vo,
|
|
945
|
+
"%TypeError%": K,
|
|
946
|
+
"%Uint8Array%": typeof Uint8Array > "u" ? y : Uint8Array,
|
|
947
|
+
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? y : Uint8ClampedArray,
|
|
948
|
+
"%Uint16Array%": typeof Uint16Array > "u" ? y : Uint16Array,
|
|
949
|
+
"%Uint32Array%": typeof Uint32Array > "u" ? y : Uint32Array,
|
|
950
|
+
"%URIError%": Mo,
|
|
951
|
+
"%WeakMap%": typeof WeakMap > "u" ? y : WeakMap,
|
|
952
|
+
"%WeakRef%": typeof WeakRef > "u" ? y : WeakRef,
|
|
953
|
+
"%WeakSet%": typeof WeakSet > "u" ? y : WeakSet,
|
|
954
|
+
"%Function.prototype.call%": ae,
|
|
955
|
+
"%Function.prototype.apply%": Yt,
|
|
956
|
+
"%Object.defineProperty%": Go,
|
|
957
|
+
"%Object.getPrototypeOf%": jo,
|
|
958
|
+
"%Math.abs%": Bo,
|
|
959
|
+
"%Math.floor%": ko,
|
|
960
|
+
"%Math.max%": Lo,
|
|
961
|
+
"%Math.min%": Uo,
|
|
962
|
+
"%Math.pow%": Wo,
|
|
963
|
+
"%Math.round%": zo,
|
|
964
|
+
"%Math.sign%": qo,
|
|
965
|
+
"%Reflect.getPrototypeOf%": Ko
|
|
966
|
+
};
|
|
967
|
+
if (b)
|
|
968
|
+
try {
|
|
969
|
+
null.error;
|
|
970
|
+
} catch (t) {
|
|
971
|
+
var Qo = b(b(t));
|
|
972
|
+
L["%Error.prototype%"] = Qo;
|
|
973
|
+
}
|
|
974
|
+
var Jo = function t(e) {
|
|
975
|
+
var r;
|
|
976
|
+
if (e === "%AsyncFunction%")
|
|
977
|
+
r = ke("async function () {}");
|
|
978
|
+
else if (e === "%GeneratorFunction%")
|
|
979
|
+
r = ke("function* () {}");
|
|
980
|
+
else if (e === "%AsyncGeneratorFunction%")
|
|
981
|
+
r = ke("async function* () {}");
|
|
982
|
+
else if (e === "%AsyncGenerator%") {
|
|
983
|
+
var n = t("%AsyncGeneratorFunction%");
|
|
984
|
+
n && (r = n.prototype);
|
|
985
|
+
} else if (e === "%AsyncIteratorPrototype%") {
|
|
986
|
+
var o = t("%AsyncGenerator%");
|
|
987
|
+
o && b && (r = b(o.prototype));
|
|
988
|
+
}
|
|
989
|
+
return L[e] = r, r;
|
|
990
|
+
}, Rt = {
|
|
991
|
+
__proto__: null,
|
|
992
|
+
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
993
|
+
"%ArrayPrototype%": ["Array", "prototype"],
|
|
994
|
+
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
995
|
+
"%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
|
|
996
|
+
"%ArrayProto_keys%": ["Array", "prototype", "keys"],
|
|
997
|
+
"%ArrayProto_values%": ["Array", "prototype", "values"],
|
|
998
|
+
"%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
|
|
999
|
+
"%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
|
|
1000
|
+
"%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
|
|
1001
|
+
"%BooleanPrototype%": ["Boolean", "prototype"],
|
|
1002
|
+
"%DataViewPrototype%": ["DataView", "prototype"],
|
|
1003
|
+
"%DatePrototype%": ["Date", "prototype"],
|
|
1004
|
+
"%ErrorPrototype%": ["Error", "prototype"],
|
|
1005
|
+
"%EvalErrorPrototype%": ["EvalError", "prototype"],
|
|
1006
|
+
"%Float32ArrayPrototype%": ["Float32Array", "prototype"],
|
|
1007
|
+
"%Float64ArrayPrototype%": ["Float64Array", "prototype"],
|
|
1008
|
+
"%FunctionPrototype%": ["Function", "prototype"],
|
|
1009
|
+
"%Generator%": ["GeneratorFunction", "prototype"],
|
|
1010
|
+
"%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
|
|
1011
|
+
"%Int8ArrayPrototype%": ["Int8Array", "prototype"],
|
|
1012
|
+
"%Int16ArrayPrototype%": ["Int16Array", "prototype"],
|
|
1013
|
+
"%Int32ArrayPrototype%": ["Int32Array", "prototype"],
|
|
1014
|
+
"%JSONParse%": ["JSON", "parse"],
|
|
1015
|
+
"%JSONStringify%": ["JSON", "stringify"],
|
|
1016
|
+
"%MapPrototype%": ["Map", "prototype"],
|
|
1017
|
+
"%NumberPrototype%": ["Number", "prototype"],
|
|
1018
|
+
"%ObjectPrototype%": ["Object", "prototype"],
|
|
1019
|
+
"%ObjProto_toString%": ["Object", "prototype", "toString"],
|
|
1020
|
+
"%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
|
|
1021
|
+
"%PromisePrototype%": ["Promise", "prototype"],
|
|
1022
|
+
"%PromiseProto_then%": ["Promise", "prototype", "then"],
|
|
1023
|
+
"%Promise_all%": ["Promise", "all"],
|
|
1024
|
+
"%Promise_reject%": ["Promise", "reject"],
|
|
1025
|
+
"%Promise_resolve%": ["Promise", "resolve"],
|
|
1026
|
+
"%RangeErrorPrototype%": ["RangeError", "prototype"],
|
|
1027
|
+
"%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
|
|
1028
|
+
"%RegExpPrototype%": ["RegExp", "prototype"],
|
|
1029
|
+
"%SetPrototype%": ["Set", "prototype"],
|
|
1030
|
+
"%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
|
|
1031
|
+
"%StringPrototype%": ["String", "prototype"],
|
|
1032
|
+
"%SymbolPrototype%": ["Symbol", "prototype"],
|
|
1033
|
+
"%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
|
|
1034
|
+
"%TypedArrayPrototype%": ["TypedArray", "prototype"],
|
|
1035
|
+
"%TypeErrorPrototype%": ["TypeError", "prototype"],
|
|
1036
|
+
"%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
|
|
1037
|
+
"%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
|
|
1038
|
+
"%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
|
|
1039
|
+
"%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
|
|
1040
|
+
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
1041
|
+
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
1042
|
+
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
1043
|
+
}, ie = we, he = Ro(), Yo = ie.call(ae, Array.prototype.concat), Xo = ie.call(Yt, Array.prototype.splice), Dt = ie.call(ae, String.prototype.replace), be = ie.call(ae, String.prototype.slice), Zo = ie.call(ae, RegExp.prototype.exec), ea = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, ta = /\\(\\)?/g, ra = function(e) {
|
|
1044
|
+
var r = be(e, 0, 1), n = be(e, -1);
|
|
1045
|
+
if (r === "%" && n !== "%")
|
|
1046
|
+
throw new Q("invalid intrinsic syntax, expected closing `%`");
|
|
1047
|
+
if (n === "%" && r !== "%")
|
|
1048
|
+
throw new Q("invalid intrinsic syntax, expected opening `%`");
|
|
1049
|
+
var o = [];
|
|
1050
|
+
return Dt(e, ea, function(a, i, c, l) {
|
|
1051
|
+
o[o.length] = c ? Dt(l, ta, "$1") : i || a;
|
|
1052
|
+
}), o;
|
|
1053
|
+
}, na = function(e, r) {
|
|
1054
|
+
var n = e, o;
|
|
1055
|
+
if (he(Rt, n) && (o = Rt[n], n = "%" + o[0] + "%"), he(L, n)) {
|
|
1056
|
+
var a = L[n];
|
|
1057
|
+
if (a === j && (a = Jo(n)), typeof a > "u" && !r)
|
|
1058
|
+
throw new K("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
1059
|
+
return {
|
|
1060
|
+
alias: o,
|
|
1061
|
+
name: n,
|
|
1062
|
+
value: a
|
|
1063
|
+
};
|
|
1064
|
+
}
|
|
1065
|
+
throw new Q("intrinsic " + e + " does not exist!");
|
|
1066
|
+
}, tt = function(e, r) {
|
|
1067
|
+
if (typeof e != "string" || e.length === 0)
|
|
1068
|
+
throw new K("intrinsic name must be a non-empty string");
|
|
1069
|
+
if (arguments.length > 1 && typeof r != "boolean")
|
|
1070
|
+
throw new K('"allowMissing" argument must be a boolean');
|
|
1071
|
+
if (Zo(/^%?[^%]*%?$/, e) === null)
|
|
1072
|
+
throw new Q("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
1073
|
+
var n = ra(e), o = n.length > 0 ? n[0] : "", a = na("%" + o + "%", r), i = a.name, c = a.value, l = !1, s = a.alias;
|
|
1074
|
+
s && (o = s[0], Xo(n, Yo([0, 1], s)));
|
|
1075
|
+
for (var f = 1, p = !0; f < n.length; f += 1) {
|
|
1076
|
+
var u = n[f], m = be(u, 0, 1), d = be(u, -1);
|
|
1077
|
+
if ((m === '"' || m === "'" || m === "`" || d === '"' || d === "'" || d === "`") && m !== d)
|
|
1078
|
+
throw new Q("property names with quotes must have matching quotes");
|
|
1079
|
+
if ((u === "constructor" || !p) && (l = !0), o += "." + u, i = "%" + o + "%", he(L, i))
|
|
1080
|
+
c = L[i];
|
|
1081
|
+
else if (c != null) {
|
|
1082
|
+
if (!(u in c)) {
|
|
1083
|
+
if (!r)
|
|
1084
|
+
throw new K("base intrinsic for " + e + " exists, but the property is not available.");
|
|
1085
|
+
return;
|
|
1086
|
+
}
|
|
1087
|
+
if (oe && f + 1 >= n.length) {
|
|
1088
|
+
var _ = oe(c, u);
|
|
1089
|
+
p = !!_, p && "get" in _ && !("originalValue" in _.get) ? c = _.get : c = c[u];
|
|
1090
|
+
} else
|
|
1091
|
+
p = he(c, u), c = c[u];
|
|
1092
|
+
p && !l && (L[i] = c);
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
return c;
|
|
1096
|
+
}, Xt = tt, Zt = Qt, oa = Zt([Xt("%String.prototype.indexOf%")]), er = function(e, r) {
|
|
1097
|
+
var n = (
|
|
1098
|
+
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
1099
|
+
Xt(e, !!r)
|
|
1100
|
+
);
|
|
1101
|
+
return typeof n == "function" && oa(e, ".prototype.") > -1 ? Zt(
|
|
1102
|
+
/** @type {const} */
|
|
1103
|
+
[n]
|
|
1104
|
+
) : n;
|
|
1105
|
+
}, aa = tt, le = er, ia = _e, la = J, Ft = aa("%Map%", !0), ca = le("Map.prototype.get", !0), fa = le("Map.prototype.set", !0), ua = le("Map.prototype.has", !0), sa = le("Map.prototype.delete", !0), pa = le("Map.prototype.size", !0), tr = !!Ft && /** @type {Exclude<import('.'), false>} */
|
|
1106
|
+
function() {
|
|
1107
|
+
var e, r = {
|
|
1108
|
+
assert: function(n) {
|
|
1109
|
+
if (!r.has(n))
|
|
1110
|
+
throw new la("Side channel does not contain " + ia(n));
|
|
1111
|
+
},
|
|
1112
|
+
delete: function(n) {
|
|
1113
|
+
if (e) {
|
|
1114
|
+
var o = sa(e, n);
|
|
1115
|
+
return pa(e) === 0 && (e = void 0), o;
|
|
1116
|
+
}
|
|
1117
|
+
return !1;
|
|
1118
|
+
},
|
|
1119
|
+
get: function(n) {
|
|
1120
|
+
if (e)
|
|
1121
|
+
return ca(e, n);
|
|
1122
|
+
},
|
|
1123
|
+
has: function(n) {
|
|
1124
|
+
return e ? ua(e, n) : !1;
|
|
1125
|
+
},
|
|
1126
|
+
set: function(n, o) {
|
|
1127
|
+
e || (e = new Ft()), fa(e, n, o);
|
|
1128
|
+
}
|
|
1129
|
+
};
|
|
1130
|
+
return r;
|
|
1131
|
+
}, ya = tt, Ae = er, da = _e, pe = tr, ma = J, H = ya("%WeakMap%", !0), va = Ae("WeakMap.prototype.get", !0), ga = Ae("WeakMap.prototype.set", !0), ha = Ae("WeakMap.prototype.has", !0), ba = Ae("WeakMap.prototype.delete", !0), _a = H ? (
|
|
1132
|
+
/** @type {Exclude<import('.'), false>} */
|
|
1133
|
+
function() {
|
|
1134
|
+
var e, r, n = {
|
|
1135
|
+
assert: function(o) {
|
|
1136
|
+
if (!n.has(o))
|
|
1137
|
+
throw new ma("Side channel does not contain " + da(o));
|
|
1138
|
+
},
|
|
1139
|
+
delete: function(o) {
|
|
1140
|
+
if (H && o && (typeof o == "object" || typeof o == "function")) {
|
|
1141
|
+
if (e)
|
|
1142
|
+
return ba(e, o);
|
|
1143
|
+
} else if (pe && r)
|
|
1144
|
+
return r.delete(o);
|
|
1145
|
+
return !1;
|
|
1146
|
+
},
|
|
1147
|
+
get: function(o) {
|
|
1148
|
+
return H && o && (typeof o == "object" || typeof o == "function") && e ? va(e, o) : r && r.get(o);
|
|
1149
|
+
},
|
|
1150
|
+
has: function(o) {
|
|
1151
|
+
return H && o && (typeof o == "object" || typeof o == "function") && e ? ha(e, o) : !!r && r.has(o);
|
|
1152
|
+
},
|
|
1153
|
+
set: function(o, a) {
|
|
1154
|
+
H && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new H()), ga(e, o, a)) : pe && (r || (r = pe()), r.set(o, a));
|
|
1155
|
+
}
|
|
1156
|
+
};
|
|
1157
|
+
return n;
|
|
1158
|
+
}
|
|
1159
|
+
) : pe, Sa = J, wa = _e, Aa = qn, Oa = tr, xa = _a, Ea = xa || Oa || Aa, Pa = function() {
|
|
1160
|
+
var e, r = {
|
|
1161
|
+
assert: function(n) {
|
|
1162
|
+
if (!r.has(n))
|
|
1163
|
+
throw new Sa("Side channel does not contain " + wa(n));
|
|
1164
|
+
},
|
|
1165
|
+
delete: function(n) {
|
|
1166
|
+
return !!e && e.delete(n);
|
|
1167
|
+
},
|
|
1168
|
+
get: function(n) {
|
|
1169
|
+
return e && e.get(n);
|
|
1170
|
+
},
|
|
1171
|
+
has: function(n) {
|
|
1172
|
+
return !!e && e.has(n);
|
|
1173
|
+
},
|
|
1174
|
+
set: function(n, o) {
|
|
1175
|
+
e || (e = Ea()), e.set(n, o);
|
|
1176
|
+
}
|
|
1177
|
+
};
|
|
1178
|
+
return r;
|
|
1179
|
+
}, $a = String.prototype.replace, Ia = /%20/g, Ue = {
|
|
1180
|
+
RFC1738: "RFC1738",
|
|
1181
|
+
RFC3986: "RFC3986"
|
|
1182
|
+
}, rt = {
|
|
1183
|
+
default: Ue.RFC3986,
|
|
1184
|
+
formatters: {
|
|
1185
|
+
RFC1738: function(t) {
|
|
1186
|
+
return $a.call(t, Ia, "+");
|
|
1187
|
+
},
|
|
1188
|
+
RFC3986: function(t) {
|
|
1189
|
+
return String(t);
|
|
1190
|
+
}
|
|
1191
|
+
},
|
|
1192
|
+
RFC1738: Ue.RFC1738,
|
|
1193
|
+
RFC3986: Ue.RFC3986
|
|
1194
|
+
}, Ra = rt, We = Object.prototype.hasOwnProperty, k = Array.isArray, A = function() {
|
|
1195
|
+
for (var t = [], e = 0; e < 256; ++e)
|
|
1196
|
+
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
1197
|
+
return t;
|
|
1198
|
+
}(), Da = function(e) {
|
|
1199
|
+
for (; e.length > 1; ) {
|
|
1200
|
+
var r = e.pop(), n = r.obj[r.prop];
|
|
1201
|
+
if (k(n)) {
|
|
1202
|
+
for (var o = [], a = 0; a < n.length; ++a)
|
|
1203
|
+
typeof n[a] < "u" && o.push(n[a]);
|
|
1204
|
+
r.obj[r.prop] = o;
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
}, rr = function(e, r) {
|
|
1208
|
+
for (var n = r && r.plainObjects ? { __proto__: null } : {}, o = 0; o < e.length; ++o)
|
|
1209
|
+
typeof e[o] < "u" && (n[o] = e[o]);
|
|
1210
|
+
return n;
|
|
1211
|
+
}, Fa = function t(e, r, n) {
|
|
1212
|
+
if (!r)
|
|
1213
|
+
return e;
|
|
1214
|
+
if (typeof r != "object" && typeof r != "function") {
|
|
1215
|
+
if (k(e))
|
|
1216
|
+
e.push(r);
|
|
1217
|
+
else if (e && typeof e == "object")
|
|
1218
|
+
(n && (n.plainObjects || n.allowPrototypes) || !We.call(Object.prototype, r)) && (e[r] = !0);
|
|
1219
|
+
else
|
|
1220
|
+
return [e, r];
|
|
1221
|
+
return e;
|
|
1222
|
+
}
|
|
1223
|
+
if (!e || typeof e != "object")
|
|
1224
|
+
return [e].concat(r);
|
|
1225
|
+
var o = e;
|
|
1226
|
+
return k(e) && !k(r) && (o = rr(e, n)), k(e) && k(r) ? (r.forEach(function(a, i) {
|
|
1227
|
+
if (We.call(e, i)) {
|
|
1228
|
+
var c = e[i];
|
|
1229
|
+
c && typeof c == "object" && a && typeof a == "object" ? e[i] = t(c, a, n) : e.push(a);
|
|
1230
|
+
} else
|
|
1231
|
+
e[i] = a;
|
|
1232
|
+
}), e) : Object.keys(r).reduce(function(a, i) {
|
|
1233
|
+
var c = r[i];
|
|
1234
|
+
return We.call(a, i) ? a[i] = t(a[i], c, n) : a[i] = c, a;
|
|
1235
|
+
}, o);
|
|
1236
|
+
}, Na = function(e, r) {
|
|
1237
|
+
return Object.keys(r).reduce(function(n, o) {
|
|
1238
|
+
return n[o] = r[o], n;
|
|
1239
|
+
}, e);
|
|
1240
|
+
}, Ta = function(t, e, r) {
|
|
1241
|
+
var n = t.replace(/\+/g, " ");
|
|
1242
|
+
if (r === "iso-8859-1")
|
|
1243
|
+
return n.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
1244
|
+
try {
|
|
1245
|
+
return decodeURIComponent(n);
|
|
1246
|
+
} catch {
|
|
1247
|
+
return n;
|
|
1248
|
+
}
|
|
1249
|
+
}, ze = 1024, Ca = function(e, r, n, o, a) {
|
|
1250
|
+
if (e.length === 0)
|
|
1251
|
+
return e;
|
|
1252
|
+
var i = e;
|
|
1253
|
+
if (typeof e == "symbol" ? i = Symbol.prototype.toString.call(e) : typeof e != "string" && (i = String(e)), n === "iso-8859-1")
|
|
1254
|
+
return escape(i).replace(/%u[0-9a-f]{4}/gi, function(m) {
|
|
1255
|
+
return "%26%23" + parseInt(m.slice(2), 16) + "%3B";
|
|
1256
|
+
});
|
|
1257
|
+
for (var c = "", l = 0; l < i.length; l += ze) {
|
|
1258
|
+
for (var s = i.length >= ze ? i.slice(l, l + ze) : i, f = [], p = 0; p < s.length; ++p) {
|
|
1259
|
+
var u = s.charCodeAt(p);
|
|
1260
|
+
if (u === 45 || u === 46 || u === 95 || u === 126 || u >= 48 && u <= 57 || u >= 65 && u <= 90 || u >= 97 && u <= 122 || a === Ra.RFC1738 && (u === 40 || u === 41)) {
|
|
1261
|
+
f[f.length] = s.charAt(p);
|
|
1262
|
+
continue;
|
|
1263
|
+
}
|
|
1264
|
+
if (u < 128) {
|
|
1265
|
+
f[f.length] = A[u];
|
|
1266
|
+
continue;
|
|
1267
|
+
}
|
|
1268
|
+
if (u < 2048) {
|
|
1269
|
+
f[f.length] = A[192 | u >> 6] + A[128 | u & 63];
|
|
1270
|
+
continue;
|
|
1271
|
+
}
|
|
1272
|
+
if (u < 55296 || u >= 57344) {
|
|
1273
|
+
f[f.length] = A[224 | u >> 12] + A[128 | u >> 6 & 63] + A[128 | u & 63];
|
|
1274
|
+
continue;
|
|
1275
|
+
}
|
|
1276
|
+
p += 1, u = 65536 + ((u & 1023) << 10 | s.charCodeAt(p) & 1023), f[f.length] = A[240 | u >> 18] + A[128 | u >> 12 & 63] + A[128 | u >> 6 & 63] + A[128 | u & 63];
|
|
1277
|
+
}
|
|
1278
|
+
c += f.join("");
|
|
1279
|
+
}
|
|
1280
|
+
return c;
|
|
1281
|
+
}, Ma = function(e) {
|
|
1282
|
+
for (var r = [{ obj: { o: e }, prop: "o" }], n = [], o = 0; o < r.length; ++o)
|
|
1283
|
+
for (var a = r[o], i = a.obj[a.prop], c = Object.keys(i), l = 0; l < c.length; ++l) {
|
|
1284
|
+
var s = c[l], f = i[s];
|
|
1285
|
+
typeof f == "object" && f !== null && n.indexOf(f) === -1 && (r.push({ obj: i, prop: s }), n.push(f));
|
|
1286
|
+
}
|
|
1287
|
+
return Da(r), e;
|
|
1288
|
+
}, Ba = function(e) {
|
|
1289
|
+
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
1290
|
+
}, ka = function(e) {
|
|
1291
|
+
return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
|
|
1292
|
+
}, La = function(e, r) {
|
|
1293
|
+
return [].concat(e, r);
|
|
1294
|
+
}, Ua = function(e, r) {
|
|
1295
|
+
if (k(e)) {
|
|
1296
|
+
for (var n = [], o = 0; o < e.length; o += 1)
|
|
1297
|
+
n.push(r(e[o]));
|
|
1298
|
+
return n;
|
|
1299
|
+
}
|
|
1300
|
+
return r(e);
|
|
1301
|
+
}, nr = {
|
|
1302
|
+
arrayToObject: rr,
|
|
1303
|
+
assign: Na,
|
|
1304
|
+
combine: La,
|
|
1305
|
+
compact: Ma,
|
|
1306
|
+
decode: Ta,
|
|
1307
|
+
encode: Ca,
|
|
1308
|
+
isBuffer: ka,
|
|
1309
|
+
isRegExp: Ba,
|
|
1310
|
+
maybeMap: Ua,
|
|
1311
|
+
merge: Fa
|
|
1312
|
+
}, or = Pa, me = nr, ne = rt, Wa = Object.prototype.hasOwnProperty, ar = {
|
|
1313
|
+
brackets: function(e) {
|
|
1314
|
+
return e + "[]";
|
|
1315
|
+
},
|
|
1316
|
+
comma: "comma",
|
|
1317
|
+
indices: function(e, r) {
|
|
1318
|
+
return e + "[" + r + "]";
|
|
1319
|
+
},
|
|
1320
|
+
repeat: function(e) {
|
|
1321
|
+
return e;
|
|
1322
|
+
}
|
|
1323
|
+
}, O = Array.isArray, za = Array.prototype.push, ir = function(t, e) {
|
|
1324
|
+
za.apply(t, O(e) ? e : [e]);
|
|
1325
|
+
}, qa = Date.prototype.toISOString, Nt = ne.default, h = {
|
|
1326
|
+
addQueryPrefix: !1,
|
|
1327
|
+
allowDots: !1,
|
|
1328
|
+
allowEmptyArrays: !1,
|
|
1329
|
+
arrayFormat: "indices",
|
|
1330
|
+
charset: "utf-8",
|
|
1331
|
+
charsetSentinel: !1,
|
|
1332
|
+
commaRoundTrip: !1,
|
|
1333
|
+
delimiter: "&",
|
|
1334
|
+
encode: !0,
|
|
1335
|
+
encodeDotInKeys: !1,
|
|
1336
|
+
encoder: me.encode,
|
|
1337
|
+
encodeValuesOnly: !1,
|
|
1338
|
+
filter: void 0,
|
|
1339
|
+
format: Nt,
|
|
1340
|
+
formatter: ne.formatters[Nt],
|
|
1341
|
+
// deprecated
|
|
1342
|
+
indices: !1,
|
|
1343
|
+
serializeDate: function(e) {
|
|
1344
|
+
return qa.call(e);
|
|
1345
|
+
},
|
|
1346
|
+
skipNulls: !1,
|
|
1347
|
+
strictNullHandling: !1
|
|
1348
|
+
}, Ga = function(e) {
|
|
1349
|
+
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
1350
|
+
}, qe = {}, Ha = function t(e, r, n, o, a, i, c, l, s, f, p, u, m, d, _, S, I, R) {
|
|
1351
|
+
for (var v = e, D = R, M = 0, Y = !1; (D = D.get(qe)) !== void 0 && !Y; ) {
|
|
1352
|
+
var z = D.get(e);
|
|
1353
|
+
if (M += 1, typeof z < "u") {
|
|
1354
|
+
if (z === M)
|
|
1355
|
+
throw new RangeError("Cyclic object value");
|
|
1356
|
+
Y = !0;
|
|
1357
|
+
}
|
|
1358
|
+
typeof D.get(qe) > "u" && (M = 0);
|
|
1359
|
+
}
|
|
1360
|
+
if (typeof f == "function" ? v = f(r, v) : v instanceof Date ? v = m(v) : n === "comma" && O(v) && (v = me.maybeMap(v, function(xe) {
|
|
1361
|
+
return xe instanceof Date ? m(xe) : xe;
|
|
1362
|
+
})), v === null) {
|
|
1363
|
+
if (i)
|
|
1364
|
+
return s && !S ? s(r, h.encoder, I, "key", d) : r;
|
|
1365
|
+
v = "";
|
|
1366
|
+
}
|
|
1367
|
+
if (Ga(v) || me.isBuffer(v)) {
|
|
1368
|
+
if (s) {
|
|
1369
|
+
var ce = S ? r : s(r, h.encoder, I, "key", d);
|
|
1370
|
+
return [_(ce) + "=" + _(s(v, h.encoder, I, "value", d))];
|
|
1371
|
+
}
|
|
1372
|
+
return [_(r) + "=" + _(String(v))];
|
|
1373
|
+
}
|
|
1374
|
+
var B = [];
|
|
1375
|
+
if (typeof v > "u")
|
|
1376
|
+
return B;
|
|
1377
|
+
var F;
|
|
1378
|
+
if (n === "comma" && O(v))
|
|
1379
|
+
S && s && (v = me.maybeMap(v, s)), F = [{ value: v.length > 0 ? v.join(",") || null : void 0 }];
|
|
1380
|
+
else if (O(f))
|
|
1381
|
+
F = f;
|
|
1382
|
+
else {
|
|
1383
|
+
var fe = Object.keys(v);
|
|
1384
|
+
F = p ? fe.sort(p) : fe;
|
|
1385
|
+
}
|
|
1386
|
+
var q = l ? String(r).replace(/\./g, "%2E") : String(r), w = o && O(v) && v.length === 1 ? q + "[]" : q;
|
|
1387
|
+
if (a && O(v) && v.length === 0)
|
|
1388
|
+
return w + "[]";
|
|
1389
|
+
for (var N = 0; N < F.length; ++N) {
|
|
1390
|
+
var E = F[N], X = typeof E == "object" && E && typeof E.value < "u" ? E.value : v[E];
|
|
1391
|
+
if (!(c && X === null)) {
|
|
1392
|
+
var Oe = u && l ? String(E).replace(/\./g, "%2E") : String(E), fr = O(v) ? typeof n == "function" ? n(w, Oe) : w : w + (u ? "." + Oe : "[" + Oe + "]");
|
|
1393
|
+
R.set(e, M);
|
|
1394
|
+
var ot = or();
|
|
1395
|
+
ot.set(qe, R), ir(B, t(
|
|
1396
|
+
X,
|
|
1397
|
+
fr,
|
|
1398
|
+
n,
|
|
1399
|
+
o,
|
|
1400
|
+
a,
|
|
1401
|
+
i,
|
|
1402
|
+
c,
|
|
1403
|
+
l,
|
|
1404
|
+
n === "comma" && S && O(v) ? null : s,
|
|
1405
|
+
f,
|
|
1406
|
+
p,
|
|
1407
|
+
u,
|
|
1408
|
+
m,
|
|
1409
|
+
d,
|
|
1410
|
+
_,
|
|
1411
|
+
S,
|
|
1412
|
+
I,
|
|
1413
|
+
ot
|
|
1414
|
+
));
|
|
1415
|
+
}
|
|
1416
|
+
}
|
|
1417
|
+
return B;
|
|
1418
|
+
}, ja = function(e) {
|
|
1419
|
+
if (!e)
|
|
1420
|
+
return h;
|
|
1421
|
+
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
1422
|
+
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
1423
|
+
if (typeof e.encodeDotInKeys < "u" && typeof e.encodeDotInKeys != "boolean")
|
|
1424
|
+
throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
1425
|
+
if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
|
|
1426
|
+
throw new TypeError("Encoder has to be a function.");
|
|
1427
|
+
var r = e.charset || h.charset;
|
|
1428
|
+
if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
|
|
1429
|
+
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
1430
|
+
var n = ne.default;
|
|
1431
|
+
if (typeof e.format < "u") {
|
|
1432
|
+
if (!Wa.call(ne.formatters, e.format))
|
|
1433
|
+
throw new TypeError("Unknown format option provided.");
|
|
1434
|
+
n = e.format;
|
|
1435
|
+
}
|
|
1436
|
+
var o = ne.formatters[n], a = h.filter;
|
|
1437
|
+
(typeof e.filter == "function" || O(e.filter)) && (a = e.filter);
|
|
1438
|
+
var i;
|
|
1439
|
+
if (e.arrayFormat in ar ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = h.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
|
|
1440
|
+
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
1441
|
+
var c = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : h.allowDots : !!e.allowDots;
|
|
1442
|
+
return {
|
|
1443
|
+
addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : h.addQueryPrefix,
|
|
1444
|
+
allowDots: c,
|
|
1445
|
+
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : h.allowEmptyArrays,
|
|
1446
|
+
arrayFormat: i,
|
|
1447
|
+
charset: r,
|
|
1448
|
+
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : h.charsetSentinel,
|
|
1449
|
+
commaRoundTrip: !!e.commaRoundTrip,
|
|
1450
|
+
delimiter: typeof e.delimiter > "u" ? h.delimiter : e.delimiter,
|
|
1451
|
+
encode: typeof e.encode == "boolean" ? e.encode : h.encode,
|
|
1452
|
+
encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : h.encodeDotInKeys,
|
|
1453
|
+
encoder: typeof e.encoder == "function" ? e.encoder : h.encoder,
|
|
1454
|
+
encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : h.encodeValuesOnly,
|
|
1455
|
+
filter: a,
|
|
1456
|
+
format: n,
|
|
1457
|
+
formatter: o,
|
|
1458
|
+
serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : h.serializeDate,
|
|
1459
|
+
skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : h.skipNulls,
|
|
1460
|
+
sort: typeof e.sort == "function" ? e.sort : null,
|
|
1461
|
+
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : h.strictNullHandling
|
|
1462
|
+
};
|
|
1463
|
+
}, Ka = function(t, e) {
|
|
1464
|
+
var r = t, n = ja(e), o, a;
|
|
1465
|
+
typeof n.filter == "function" ? (a = n.filter, r = a("", r)) : O(n.filter) && (a = n.filter, o = a);
|
|
1466
|
+
var i = [];
|
|
1467
|
+
if (typeof r != "object" || r === null)
|
|
1468
|
+
return "";
|
|
1469
|
+
var c = ar[n.arrayFormat], l = c === "comma" && n.commaRoundTrip;
|
|
1470
|
+
o || (o = Object.keys(r)), n.sort && o.sort(n.sort);
|
|
1471
|
+
for (var s = or(), f = 0; f < o.length; ++f) {
|
|
1472
|
+
var p = o[f], u = r[p];
|
|
1473
|
+
n.skipNulls && u === null || ir(i, Ha(
|
|
1474
|
+
u,
|
|
1475
|
+
p,
|
|
1476
|
+
c,
|
|
1477
|
+
l,
|
|
1478
|
+
n.allowEmptyArrays,
|
|
1479
|
+
n.strictNullHandling,
|
|
1480
|
+
n.skipNulls,
|
|
1481
|
+
n.encodeDotInKeys,
|
|
1482
|
+
n.encode ? n.encoder : null,
|
|
1483
|
+
n.filter,
|
|
1484
|
+
n.sort,
|
|
1485
|
+
n.allowDots,
|
|
1486
|
+
n.serializeDate,
|
|
1487
|
+
n.format,
|
|
1488
|
+
n.formatter,
|
|
1489
|
+
n.encodeValuesOnly,
|
|
1490
|
+
n.charset,
|
|
1491
|
+
s
|
|
1492
|
+
));
|
|
1493
|
+
}
|
|
1494
|
+
var m = i.join(n.delimiter), d = n.addQueryPrefix === !0 ? "?" : "";
|
|
1495
|
+
return n.charsetSentinel && (n.charset === "iso-8859-1" ? d += "utf8=%26%2310003%3B&" : d += "utf8=%E2%9C%93&"), m.length > 0 ? d + m : "";
|
|
1496
|
+
}, U = nr, Je = Object.prototype.hasOwnProperty, Tt = Array.isArray, g = {
|
|
1497
|
+
allowDots: !1,
|
|
1498
|
+
allowEmptyArrays: !1,
|
|
1499
|
+
allowPrototypes: !1,
|
|
1500
|
+
allowSparse: !1,
|
|
1501
|
+
arrayLimit: 20,
|
|
1502
|
+
charset: "utf-8",
|
|
1503
|
+
charsetSentinel: !1,
|
|
1504
|
+
comma: !1,
|
|
1505
|
+
decodeDotInKeys: !1,
|
|
1506
|
+
decoder: U.decode,
|
|
1507
|
+
delimiter: "&",
|
|
1508
|
+
depth: 5,
|
|
1509
|
+
duplicates: "combine",
|
|
1510
|
+
ignoreQueryPrefix: !1,
|
|
1511
|
+
interpretNumericEntities: !1,
|
|
1512
|
+
parameterLimit: 1e3,
|
|
1513
|
+
parseArrays: !0,
|
|
1514
|
+
plainObjects: !1,
|
|
1515
|
+
strictDepth: !1,
|
|
1516
|
+
strictNullHandling: !1,
|
|
1517
|
+
throwOnLimitExceeded: !1
|
|
1518
|
+
}, Va = function(t) {
|
|
1519
|
+
return t.replace(/&#(\d+);/g, function(e, r) {
|
|
1520
|
+
return String.fromCharCode(parseInt(r, 10));
|
|
1521
|
+
});
|
|
1522
|
+
}, lr = function(t, e, r) {
|
|
1523
|
+
if (t && typeof t == "string" && e.comma && t.indexOf(",") > -1)
|
|
1524
|
+
return t.split(",");
|
|
1525
|
+
if (e.throwOnLimitExceeded && r >= e.arrayLimit)
|
|
1526
|
+
throw new RangeError("Array limit exceeded. Only " + e.arrayLimit + " element" + (e.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
1527
|
+
return t;
|
|
1528
|
+
}, Qa = "utf8=%26%2310003%3B", Ja = "utf8=%E2%9C%93", Ya = function(e, r) {
|
|
1529
|
+
var n = { __proto__: null }, o = r.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
|
|
1530
|
+
o = o.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
1531
|
+
var a = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, i = o.split(
|
|
1532
|
+
r.delimiter,
|
|
1533
|
+
r.throwOnLimitExceeded ? a + 1 : a
|
|
1534
|
+
);
|
|
1535
|
+
if (r.throwOnLimitExceeded && i.length > a)
|
|
1536
|
+
throw new RangeError("Parameter limit exceeded. Only " + a + " parameter" + (a === 1 ? "" : "s") + " allowed.");
|
|
1537
|
+
var c = -1, l, s = r.charset;
|
|
1538
|
+
if (r.charsetSentinel)
|
|
1539
|
+
for (l = 0; l < i.length; ++l)
|
|
1540
|
+
i[l].indexOf("utf8=") === 0 && (i[l] === Ja ? s = "utf-8" : i[l] === Qa && (s = "iso-8859-1"), c = l, l = i.length);
|
|
1541
|
+
for (l = 0; l < i.length; ++l)
|
|
1542
|
+
if (l !== c) {
|
|
1543
|
+
var f = i[l], p = f.indexOf("]="), u = p === -1 ? f.indexOf("=") : p + 1, m, d;
|
|
1544
|
+
u === -1 ? (m = r.decoder(f, g.decoder, s, "key"), d = r.strictNullHandling ? null : "") : (m = r.decoder(f.slice(0, u), g.decoder, s, "key"), d = U.maybeMap(
|
|
1545
|
+
lr(
|
|
1546
|
+
f.slice(u + 1),
|
|
1547
|
+
r,
|
|
1548
|
+
Tt(n[m]) ? n[m].length : 0
|
|
1549
|
+
),
|
|
1550
|
+
function(S) {
|
|
1551
|
+
return r.decoder(S, g.decoder, s, "value");
|
|
1552
|
+
}
|
|
1553
|
+
)), d && r.interpretNumericEntities && s === "iso-8859-1" && (d = Va(String(d))), f.indexOf("[]=") > -1 && (d = Tt(d) ? [d] : d);
|
|
1554
|
+
var _ = Je.call(n, m);
|
|
1555
|
+
_ && r.duplicates === "combine" ? n[m] = U.combine(n[m], d) : (!_ || r.duplicates === "last") && (n[m] = d);
|
|
1556
|
+
}
|
|
1557
|
+
return n;
|
|
1558
|
+
}, Xa = function(t, e, r, n) {
|
|
1559
|
+
var o = 0;
|
|
1560
|
+
if (t.length > 0 && t[t.length - 1] === "[]") {
|
|
1561
|
+
var a = t.slice(0, -1).join("");
|
|
1562
|
+
o = Array.isArray(e) && e[a] ? e[a].length : 0;
|
|
1563
|
+
}
|
|
1564
|
+
for (var i = n ? e : lr(e, r, o), c = t.length - 1; c >= 0; --c) {
|
|
1565
|
+
var l, s = t[c];
|
|
1566
|
+
if (s === "[]" && r.parseArrays)
|
|
1567
|
+
l = r.allowEmptyArrays && (i === "" || r.strictNullHandling && i === null) ? [] : U.combine([], i);
|
|
1568
|
+
else {
|
|
1569
|
+
l = r.plainObjects ? { __proto__: null } : {};
|
|
1570
|
+
var f = s.charAt(0) === "[" && s.charAt(s.length - 1) === "]" ? s.slice(1, -1) : s, p = r.decodeDotInKeys ? f.replace(/%2E/g, ".") : f, u = parseInt(p, 10);
|
|
1571
|
+
!r.parseArrays && p === "" ? l = { 0: i } : !isNaN(u) && s !== p && String(u) === p && u >= 0 && r.parseArrays && u <= r.arrayLimit ? (l = [], l[u] = i) : p !== "__proto__" && (l[p] = i);
|
|
1572
|
+
}
|
|
1573
|
+
i = l;
|
|
1574
|
+
}
|
|
1575
|
+
return i;
|
|
1576
|
+
}, Za = function(e, r, n, o) {
|
|
1577
|
+
if (e) {
|
|
1578
|
+
var a = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, c = /(\[[^[\]]*])/g, l = n.depth > 0 && i.exec(a), s = l ? a.slice(0, l.index) : a, f = [];
|
|
1579
|
+
if (s) {
|
|
1580
|
+
if (!n.plainObjects && Je.call(Object.prototype, s) && !n.allowPrototypes)
|
|
1581
|
+
return;
|
|
1582
|
+
f.push(s);
|
|
1583
|
+
}
|
|
1584
|
+
for (var p = 0; n.depth > 0 && (l = c.exec(a)) !== null && p < n.depth; ) {
|
|
1585
|
+
if (p += 1, !n.plainObjects && Je.call(Object.prototype, l[1].slice(1, -1)) && !n.allowPrototypes)
|
|
1586
|
+
return;
|
|
1587
|
+
f.push(l[1]);
|
|
1588
|
+
}
|
|
1589
|
+
if (l) {
|
|
1590
|
+
if (n.strictDepth === !0)
|
|
1591
|
+
throw new RangeError("Input depth exceeded depth option of " + n.depth + " and strictDepth is true");
|
|
1592
|
+
f.push("[" + a.slice(l.index) + "]");
|
|
1593
|
+
}
|
|
1594
|
+
return Xa(f, r, n, o);
|
|
1595
|
+
}
|
|
1596
|
+
}, ei = function(e) {
|
|
1597
|
+
if (!e)
|
|
1598
|
+
return g;
|
|
1599
|
+
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
1600
|
+
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
1601
|
+
if (typeof e.decodeDotInKeys < "u" && typeof e.decodeDotInKeys != "boolean")
|
|
1602
|
+
throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
1603
|
+
if (e.decoder !== null && typeof e.decoder < "u" && typeof e.decoder != "function")
|
|
1604
|
+
throw new TypeError("Decoder has to be a function.");
|
|
1605
|
+
if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
|
|
1606
|
+
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
1607
|
+
if (typeof e.throwOnLimitExceeded < "u" && typeof e.throwOnLimitExceeded != "boolean")
|
|
1608
|
+
throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
|
|
1609
|
+
var r = typeof e.charset > "u" ? g.charset : e.charset, n = typeof e.duplicates > "u" ? g.duplicates : e.duplicates;
|
|
1610
|
+
if (n !== "combine" && n !== "first" && n !== "last")
|
|
1611
|
+
throw new TypeError("The duplicates option must be either combine, first, or last");
|
|
1612
|
+
var o = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 : g.allowDots : !!e.allowDots;
|
|
1613
|
+
return {
|
|
1614
|
+
allowDots: o,
|
|
1615
|
+
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : g.allowEmptyArrays,
|
|
1616
|
+
allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : g.allowPrototypes,
|
|
1617
|
+
allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : g.allowSparse,
|
|
1618
|
+
arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : g.arrayLimit,
|
|
1619
|
+
charset: r,
|
|
1620
|
+
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : g.charsetSentinel,
|
|
1621
|
+
comma: typeof e.comma == "boolean" ? e.comma : g.comma,
|
|
1622
|
+
decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : g.decodeDotInKeys,
|
|
1623
|
+
decoder: typeof e.decoder == "function" ? e.decoder : g.decoder,
|
|
1624
|
+
delimiter: typeof e.delimiter == "string" || U.isRegExp(e.delimiter) ? e.delimiter : g.delimiter,
|
|
1625
|
+
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
1626
|
+
depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : g.depth,
|
|
1627
|
+
duplicates: n,
|
|
1628
|
+
ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
|
|
1629
|
+
interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : g.interpretNumericEntities,
|
|
1630
|
+
parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : g.parameterLimit,
|
|
1631
|
+
parseArrays: e.parseArrays !== !1,
|
|
1632
|
+
plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : g.plainObjects,
|
|
1633
|
+
strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : g.strictDepth,
|
|
1634
|
+
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : g.strictNullHandling,
|
|
1635
|
+
throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" ? e.throwOnLimitExceeded : !1
|
|
1636
|
+
};
|
|
1637
|
+
}, ti = function(t, e) {
|
|
1638
|
+
var r = ei(e);
|
|
1639
|
+
if (t === "" || t === null || typeof t > "u")
|
|
1640
|
+
return r.plainObjects ? { __proto__: null } : {};
|
|
1641
|
+
for (var n = typeof t == "string" ? Ya(t, r) : t, o = r.plainObjects ? { __proto__: null } : {}, a = Object.keys(n), i = 0; i < a.length; ++i) {
|
|
1642
|
+
var c = a[i], l = Za(c, n[c], r, typeof t == "string");
|
|
1643
|
+
o = U.merge(o, l, r);
|
|
1644
|
+
}
|
|
1645
|
+
return r.allowSparse === !0 ? o : U.compact(o);
|
|
1646
|
+
}, ri = Ka, ni = ti, oi = rt, ai = {
|
|
1647
|
+
formats: oi,
|
|
1648
|
+
parse: ni,
|
|
1649
|
+
stringify: ri
|
|
1650
|
+
};
|
|
1651
|
+
const ii = /* @__PURE__ */ Tr(ai);
|
|
1652
|
+
async function nt(t, e = {}, r) {
|
|
1653
|
+
const { cms: n = "cms" } = e;
|
|
1654
|
+
return fetch(`${t.href}?${ii.stringify(e)}`, {
|
|
1655
|
+
method: "GET",
|
|
1656
|
+
cache: r ? "no-store" : "default",
|
|
1657
|
+
headers: {
|
|
1658
|
+
Accept: "application/json",
|
|
1659
|
+
"Content-Type": "application/json",
|
|
1660
|
+
"strapi-encode-source-maps": n === "strapi" && r ? "true" : "false"
|
|
1661
|
+
// strapi
|
|
1662
|
+
}
|
|
1663
|
+
});
|
|
1664
|
+
}
|
|
1665
|
+
function cr(t, e) {
|
|
1666
|
+
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(
|
|
1667
|
+
new URL(`api/${t}`, process.env.NEXT_PUBLIC_API_URL)
|
|
1668
|
+
);
|
|
1669
|
+
}
|
|
1670
|
+
function li(t) {
|
|
1671
|
+
return Array.isArray(t) && t.length > 0 ? t[0] : Array.isArray(t) ? null : t;
|
|
1672
|
+
}
|
|
1673
|
+
async function ci(t, e = [], r = {}) {
|
|
1674
|
+
var n;
|
|
1675
|
+
if ((r == null ? void 0 : r.contentType) === t) {
|
|
1676
|
+
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}` : "", c = new URL(cr(`${t}${i}`, r)), l = await nt(c, r, o);
|
|
1677
|
+
if (!l.ok)
|
|
1678
|
+
return console.error(`[Error fetching preview data]: ${t} - status: ${l.statusText}`), [];
|
|
1679
|
+
const s = await l.json(), f = e.findIndex((p) => p.documentId === s.id);
|
|
1680
|
+
return f !== -1 ? (e[f] = s, [...e]) : [s, ...e];
|
|
1681
|
+
}
|
|
1682
|
+
return e;
|
|
1683
|
+
}
|
|
1684
|
+
async function fi(t, e = {}, r) {
|
|
1685
|
+
const n = !!(e != null && e.previewMode), o = await nt(t, e, n);
|
|
1686
|
+
if (!o.ok)
|
|
1687
|
+
return console.log(
|
|
1688
|
+
`Failed to fetch Strapi (url=${String(t)}, status=${o.status})`
|
|
1689
|
+
), { status: 404, data: [], error: String(o.status) };
|
|
1690
|
+
const { data: a } = await o.json();
|
|
1691
|
+
return a ? {
|
|
1692
|
+
status: 200,
|
|
1693
|
+
data: r ? li(a) : a
|
|
1694
|
+
} : { status: 404, data: [], error: "No data found" };
|
|
1695
|
+
}
|
|
1696
|
+
async function ui(t, e, r = {}) {
|
|
1697
|
+
const n = (r == null ? void 0 : r.previewId) ?? "", o = (r == null ? void 0 : r.previewMode) === "true", a = { ...r, versionId: n }, i = [];
|
|
1698
|
+
let c = 1, l = 0, s = !0;
|
|
1699
|
+
try {
|
|
1700
|
+
do {
|
|
1701
|
+
const f = await nt(e, { ...a, page: c }, o).then((p) => p.json()).catch((p) => (console.error("Error fetching VTEX CMS data:", p), console.error("Error URL:", e.toString()), null));
|
|
1702
|
+
c === 1 && (l = f.totalItems), Array.isArray(f == null ? void 0 : f.data) && i.push(...f.data), s = !!(f != null && f.hasNextPage), c++;
|
|
1703
|
+
} while (s && i.length < l);
|
|
1704
|
+
if (o && i.length > 0) {
|
|
1705
|
+
if (!t || !n)
|
|
1706
|
+
throw new Error(
|
|
1707
|
+
"contentType and previewId are required for preview mode in vtexCMSData"
|
|
1708
|
+
);
|
|
1709
|
+
const f = await ci(
|
|
1710
|
+
t,
|
|
1711
|
+
i,
|
|
1712
|
+
a
|
|
1713
|
+
);
|
|
1714
|
+
return {
|
|
1715
|
+
status: f.length > 0 ? 200 : 404,
|
|
1716
|
+
data: f
|
|
1717
|
+
};
|
|
1718
|
+
}
|
|
1719
|
+
return {
|
|
1720
|
+
status: i.length ? 200 : 404,
|
|
1721
|
+
data: i
|
|
1722
|
+
};
|
|
1723
|
+
} catch (f) {
|
|
1724
|
+
return {
|
|
1725
|
+
status: 500,
|
|
1726
|
+
data: [],
|
|
1727
|
+
error: f instanceof Error ? f.message : String(f)
|
|
1728
|
+
};
|
|
1729
|
+
}
|
|
1730
|
+
}
|
|
1731
|
+
async function si({
|
|
1732
|
+
contentType: t,
|
|
1733
|
+
documentId: e,
|
|
1734
|
+
versionId: r,
|
|
1735
|
+
storeId: n,
|
|
1736
|
+
CMS_PROJECT_NAME: o
|
|
1737
|
+
}) {
|
|
1738
|
+
const a = e && e.length ? `/${e}` : "", i = r && r.length ? `?versionId=${r}` : "";
|
|
1739
|
+
return fetch(
|
|
1740
|
+
`https://${n}.myvtex.com/_v/cms/api/${o}/${t}${a}${i}`,
|
|
1741
|
+
{ cache: "no-cache" }
|
|
1742
|
+
);
|
|
1743
|
+
}
|
|
1744
|
+
async function pi(t, e = {}, r) {
|
|
1745
|
+
const { cms: n = "vtex" } = e ?? {};
|
|
1746
|
+
try {
|
|
1747
|
+
const o = new URL(cr(t, e));
|
|
1748
|
+
return n !== "vtex" ? fi(o, e, r) : ui(t, o, e);
|
|
1749
|
+
} catch (o) {
|
|
1750
|
+
return console.error(`[Fetch ContentType Error CMS ${n}]`, o), r ? { status: 400, data: null } : { status: 200, data: [] };
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1753
|
+
const Oi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1754
|
+
__proto__: null,
|
|
1755
|
+
fetchContentType: pi,
|
|
1756
|
+
getCMSContentType: si
|
|
1757
|
+
}, Symbol.toStringTag, { value: "Module" })), xi = ({
|
|
1758
|
+
children: t,
|
|
1759
|
+
data: e,
|
|
1760
|
+
SectionZone: r,
|
|
1761
|
+
className: n
|
|
1762
|
+
}) => {
|
|
1763
|
+
var f, p;
|
|
1764
|
+
const o = ((f = e == null ? void 0 : e.filter((u) => {
|
|
1765
|
+
var m, d;
|
|
1766
|
+
return ((d = (m = u.config) == null ? void 0 : m.responsive) == null ? void 0 : d.deviceType) === "mobile";
|
|
1767
|
+
})[0]) == null ? void 0 : f.sections) || [], a = ((p = e == null ? void 0 : e.filter((u) => {
|
|
1768
|
+
var m, d;
|
|
1769
|
+
return ((d = (m = u.config) == null ? void 0 : m.responsive) == null ? void 0 : d.deviceType) === "desktop";
|
|
1770
|
+
})[0]) == null ? void 0 : p.sections) || [], i = o.slice(0, 1), c = o.slice(1, o.length), l = a.slice(0, 1), s = a.slice(1, a.length);
|
|
1771
|
+
return /* @__PURE__ */ at(ur, { children: [
|
|
1772
|
+
/* @__PURE__ */ at("div", { className: n, children: [
|
|
1773
|
+
/* @__PURE__ */ P("div", { className: ue["responsive-mobile-flex"], children: /* @__PURE__ */ P(r, { data: i ?? [] }) }),
|
|
1774
|
+
/* @__PURE__ */ P("div", { className: ue["responsive-desktop-flex"], children: /* @__PURE__ */ P(r, { data: l ?? [] }) })
|
|
1775
|
+
] }),
|
|
1776
|
+
t,
|
|
1777
|
+
/* @__PURE__ */ P("div", { className: ue["responsive-mobile-flex"], children: /* @__PURE__ */ P(r, { data: c ?? [] }) }),
|
|
1778
|
+
/* @__PURE__ */ P("div", { className: ue["responsive-desktop-flex"], children: /* @__PURE__ */ P(r, { data: s ?? [] }) }),
|
|
1779
|
+
/* @__PURE__ */ P(sr.Divider, {})
|
|
1780
|
+
] });
|
|
1781
|
+
};
|
|
1782
|
+
export {
|
|
1783
|
+
Si as A,
|
|
1784
|
+
Oi as B,
|
|
1785
|
+
xi as S,
|
|
1786
|
+
hr as a,
|
|
1787
|
+
Sr as b,
|
|
1788
|
+
mr as c,
|
|
1789
|
+
br as d,
|
|
1790
|
+
mi as e,
|
|
1791
|
+
Ge as f,
|
|
1792
|
+
dr as g,
|
|
1793
|
+
pr as h,
|
|
1794
|
+
_r as i,
|
|
1795
|
+
Tr as j,
|
|
1796
|
+
yr as k,
|
|
1797
|
+
Or as l,
|
|
1798
|
+
Er as m,
|
|
1799
|
+
vr as n,
|
|
1800
|
+
Ai as o,
|
|
1801
|
+
_i as p,
|
|
1802
|
+
wr as q,
|
|
1803
|
+
ue as r,
|
|
1804
|
+
Ct as s,
|
|
1805
|
+
bi as t,
|
|
1806
|
+
Ar as u,
|
|
1807
|
+
vi as v,
|
|
1808
|
+
wi as w,
|
|
1809
|
+
pi as x,
|
|
1810
|
+
hi as y,
|
|
1811
|
+
gi as z
|
|
1812
|
+
};
|