@soma-vertical-web/multi-lib 1.0.12 → 1.0.13

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.
@@ -1,27 +1,27 @@
1
- import { jsxs as at, Fragment as pr, jsx as P } from "react/jsx-runtime";
2
- import { Utils as yr } from "@soma-vertical-web/core-components";
3
- const qe = (t, e = !0) => Intl.NumberFormat("pt-BR", {
1
+ import { jsxs as lt, Fragment as mr, jsx as P } from "react/jsx-runtime";
2
+ import { Utils as gr } from "@soma-vertical-web/core-components";
3
+ const He = (t, e = !0) => Intl.NumberFormat("pt-BR", {
4
4
  style: "currency",
5
5
  currency: "BRL",
6
6
  minimumFractionDigits: e ? 2 : 0
7
- }).format(t), dr = ({ valueInCents: t, hasFree: e, freeTaxMessage: r }) => t === 0 ? e ? r : qe(0) : qe(t / 100), vr = (t, e) => {
7
+ }).format(t), hr = ({ valueInCents: t, hasFree: e, freeTaxMessage: r }) => t === 0 ? e ? r : He(0) : He(t / 100), _r = (t, e) => {
8
8
  const n = (t - e) * 100 / t;
9
9
  return Math.floor(n);
10
- }, Nt = (t, e) => {
10
+ }, jt = (t, e) => {
11
11
  const [r, n] = t.split(e);
12
12
  return { name: r.trim(), size: n ? n.trim() : "" };
13
- }, mr = (t, e) => {
13
+ }, br = (t, e) => {
14
14
  if (!t)
15
15
  return {};
16
16
  const [r, n] = t.split(e);
17
17
  return { color: r == null ? void 0 : r.trim(), size: n == null ? void 0 : n.trim() };
18
- }, gr = (t, e = "tamanho") => {
18
+ }, Sr = (t, e = "tamanho") => {
19
19
  if (t.additionalProperty) {
20
20
  const [r] = t.additionalProperty;
21
21
  return r != null && r.name ? r.name.toLocaleLowerCase() === e ? r.value : t.name : "";
22
22
  }
23
23
  return t.name;
24
- }, hr = (t, e) => t.replace(e, "").trim(), _r = (t) => t.replace(/\//g, ""), br = ({ items: t, NAME_SPLIT_SYMBOL: e }) => {
24
+ }, wr = (t, e) => t.replace(e, "").trim(), xr = (t) => t.replace(/\//g, ""), Ar = ({ items: t, NAME_SPLIT_SYMBOL: e }) => {
25
25
  const r = {
26
26
  price: 0,
27
27
  listPrice: 0,
@@ -53,7 +53,7 @@ const qe = (t, e = !0) => Intl.NumberFormat("pt-BR", {
53
53
  const l = {
54
54
  name: c.name,
55
55
  sku: c.itemId,
56
- value: ((f = c.Tamanho) == null ? void 0 : f[0]) ?? Nt(c.nameComplete ?? c.name, e).size,
56
+ value: ((f = c.Tamanho) == null ? void 0 : f[0]) ?? jt(c.nameComplete ?? c.name, e).size,
57
57
  available: !1,
58
58
  sellerId: "",
59
59
  sellerName: "",
@@ -70,26 +70,26 @@ const qe = (t, e = !0) => Intl.NumberFormat("pt-BR", {
70
70
  sizes: a,
71
71
  allSizesAvailable: o
72
72
  };
73
- }, Sr = (t) => t ? !t.offers.offers.find(({ quantity: e = 0 }) => e > 0) : !1, wr = (t, e) => {
73
+ }, Or = (t) => t ? !t.offers.offers.find(({ quantity: e = 0 }) => e > 0) : !1, Er = (t, e) => {
74
74
  const r = t.find(
75
75
  (n) => n.availability.includes("InStock") && n.quantity && n.listPrice > 0 && n.seller.identifier === e
76
76
  );
77
77
  return r || t.find(
78
78
  (n) => n.availability.includes("InStock") && n.quantity && n.listPrice > 0
79
79
  );
80
- }, xr = ({ images: t, TEXTURE_IMAGE: e }) => t.find((r) => e.includes(r.imageLabel)) ?? t[0], Or = (t, e) => {
80
+ }, Pr = ({ images: t, TEXTURE_IMAGE: e }) => t.find((r) => e.includes(r.imageLabel)) ?? t[0], $r = (t, e) => {
81
81
  const r = /\/ids\/(\d+)\//, n = t.match(r);
82
82
  return n ? t.replace(
83
83
  `/${n[1]}/`,
84
84
  `/${n[1]}-${e.width}-${e.height}/`
85
85
  ) : t;
86
- }, Ar = (t, e) => {
86
+ }, Ir = (t, e) => {
87
87
  const r = /\/ids\/(\d+)-(\d+)-(\d+)\//, n = t.match(r);
88
88
  return n ? t.replace(
89
89
  `/${n[1]}-${n[2]}-${n[3]}/`,
90
90
  `/${n[1]}-${e.width}-${e.height}/`
91
91
  ) : t;
92
- }, Er = ({
92
+ }, Rr = ({
93
93
  images: t,
94
94
  label: e
95
95
  }) => {
@@ -97,35 +97,35 @@ const qe = (t, e = !0) => Intl.NumberFormat("pt-BR", {
97
97
  (n) => n.keywords === e.first || n.keywords === e.second || n.alternateName === e.first || n.alternateName === e.second
98
98
  );
99
99
  return r.length === 0 ? t.slice(0, 2) : r;
100
- }, Pr = (t) => {
100
+ }, kr = (t) => {
101
101
  const [e, r] = t.split("/").map(Number);
102
102
  if (Number.isNaN(e) || Number.isNaN(r))
103
103
  throw new Error("[ERROR ASPECT RATIO IMAGE]: Invalid aspect ratio format");
104
104
  return r / e;
105
- }, $r = (t, e, r) => {
105
+ }, Dr = (t, e, r) => {
106
106
  e && (t ? (e.getAttribute("src") || (e.src = r ?? ""), e.play()) : e.pause());
107
- }, yi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
107
+ }, gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
108
108
  __proto__: null,
109
- disableSKU: Sr,
110
- formatPriceToCurrency: qe,
111
- freightParsePrice: dr,
112
- getAspectRatio: Pr,
113
- getColorAndSizeFromSkuName: mr,
114
- getDiscountPercent: vr,
115
- getFirstImages: Er,
116
- getProductNameWithoutSku: hr,
117
- getSKUName: gr,
118
- getSkuInfos: br,
119
- getThumbImage: xr,
120
- getValidOffer: wr,
121
- removeSlashes: _r,
122
- resizingImg: Or,
123
- setVideoPlay: $r,
124
- splitNameAndSizeFromFullName: Nt,
125
- updatedResizedImg: Ar
126
- }, Symbol.toStringTag, { value: "Module" })), it = "fuzzy", lt = "operator", Ir = (t) => ({
109
+ disableSKU: Or,
110
+ formatPriceToCurrency: He,
111
+ freightParsePrice: hr,
112
+ getAspectRatio: kr,
113
+ getColorAndSizeFromSkuName: br,
114
+ getDiscountPercent: _r,
115
+ getFirstImages: Rr,
116
+ getProductNameWithoutSku: wr,
117
+ getSKUName: Sr,
118
+ getSkuInfos: Ar,
119
+ getThumbImage: Pr,
120
+ getValidOffer: Er,
121
+ removeSlashes: xr,
122
+ resizingImg: $r,
123
+ setVideoPlay: Dr,
124
+ splitNameAndSizeFromFullName: jt,
125
+ updatedResizedImg: Ir
126
+ }, Symbol.toStringTag, { value: "Module" })), ct = "fuzzy", ft = "operator", Fr = (t) => ({
127
127
  isDepartment: t != null && t.length ? t[0].key === "category-1" : !1
128
- }), di = (t, e) => {
128
+ }), hi = (t, e) => {
129
129
  const r = decodeURIComponent(e ?? "").slice(1).split("/");
130
130
  return t.map((n) => {
131
131
  if (n.key === "category-2" && n.__typename === "FacetBoolean") {
@@ -141,7 +141,7 @@ const qe = (t, e = !0) => Intl.NumberFormat("pt-BR", {
141
141
  }
142
142
  return n;
143
143
  });
144
- }, Ct = (t, e) => e ? t === "category-1" : !1, Rr = (t) => t.key === "operator" && (t.value === "and" || t.value === "or"), kr = (t) => t.type === "TEXT", Dr = (t) => t.key === "fuzzy" && (t.value === "0" || t.value === "1" || t.value === "auto"), Tr = (t) => {
144
+ }, Bt = (t, e) => e ? t === "category-1" : !1, Cr = (t) => t.key === "operator" && (t.value === "and" || t.value === "or"), Tr = (t) => t.type === "TEXT", Nr = (t) => t.key === "fuzzy" && (t.value === "0" || t.value === "1" || t.value === "auto"), Mr = (t) => {
145
145
  const { key: e, name: r, values: n } = t;
146
146
  return {
147
147
  __typename: "FacetBoolean",
@@ -149,54 +149,54 @@ const qe = (t, e = !0) => Intl.NumberFormat("pt-BR", {
149
149
  label: r,
150
150
  values: n.slice().sort((o, a) => o.name.localeCompare(a.name))
151
151
  };
152
- }, Nr = ({ key: t, values: e }) => ({
152
+ }, jr = ({ key: t, values: e }) => ({
153
153
  __typename: "FacetRange",
154
154
  key: t,
155
155
  values: e
156
- }), vi = (t, e, r) => {
156
+ }), _i = (t, e, r) => {
157
157
  if (!(t instanceof Object) || !("facets" in t))
158
158
  return [];
159
159
  const { facets: n = [] } = t, o = e != null && e.length ? e[0].key === "category-1" : !1;
160
160
  return n.filter(
161
- (i) => !r || !Ct(i.key, o)
161
+ (i) => !r || !Bt(i.key, o)
162
162
  ).map(
163
- (i) => kr(i) ? Tr(i) : Nr(i)
163
+ (i) => Tr(i) ? Mr(i) : jr(i)
164
164
  );
165
- }, mi = (t, e) => {
166
- const r = t.find(({ key: o }) => o === it) ?? null, n = t.find(({ key: o }) => o === lt) ?? null;
167
- r && Dr(r) && e.append(it, r.value), n && Rr(n) && e.append(lt, n.value);
168
- }, Cr = (t) => t.map((e) => {
165
+ }, bi = (t, e) => {
166
+ const r = t.find(({ key: o }) => o === ct) ?? null, n = t.find(({ key: o }) => o === ft) ?? null;
167
+ r && Nr(r) && e.append(ct, r.value), n && Cr(n) && e.append(ft, n.value);
168
+ }, Br = (t) => t.map((e) => {
169
169
  const [r, n] = e.split("/");
170
170
  return { key: r, value: n };
171
- }), gi = (t, e) => {
171
+ }), Si = (t, e) => {
172
172
  const r = decodeURIComponent(e ?? "").slice(1).split("/"), n = t.filter(({ value: a }) => !r.includes(decodeURIComponent(a))).map((a) => ({
173
173
  ...a,
174
174
  value: decodeURIComponent(a.value)
175
- })), { isDepartment: o } = Ir(n);
176
- return n == null ? void 0 : n.filter((a) => !Ct(a.key, o));
177
- }, hi = ({ pathname: t, searchParams: e }, r) => {
175
+ })), { isDepartment: o } = Fr(n);
176
+ return n == null ? void 0 : n.filter((a) => !Bt(a.key, o));
177
+ }, wi = ({ pathname: t, searchParams: e }, r) => {
178
178
  const n = e.get("sort") ?? "", o = e.get("query") ?? null, a = parseInt(e.get("page") ?? "1", 10);
179
179
  return {
180
180
  sort: n,
181
- facets: Cr(r),
181
+ facets: Br(r),
182
182
  term: o,
183
183
  base: o ? "" : t,
184
184
  page: a
185
185
  };
186
- }, _i = (t) => {
186
+ }, xi = (t) => {
187
187
  const e = new URLSearchParams();
188
188
  return Object.entries(t).forEach(([r, n]) => {
189
189
  Array.isArray(n) ? n.forEach((o) => e.append(r, o)) : n !== void 0 && e.append(r, n);
190
190
  }), e;
191
- }, bi = (t, e, r = 24, n = 1, o) => {
191
+ }, Ai = (t, e, r = 24, n = 1, o) => {
192
192
  const a = `/search?query=${e ?? ""}&count=${r}&page=${n}${o ? `&sort=${o.replace("_", ":")}` : ""}`;
193
193
  t.push(a);
194
194
  };
195
- var ct = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
196
- function Fr(t) {
195
+ var ut = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
196
+ function Lr(t) {
197
197
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
198
198
  }
199
- function Mr(t) {
199
+ function Ur(t) {
200
200
  if (t.__esModule) return t;
201
201
  var e = t.default;
202
202
  if (typeof e == "function") {
@@ -220,53 +220,53 @@ const ue = {
220
220
  "responsive-desktop-flex": "_responsive-desktop-flex_1e0ai_15",
221
221
  "responsive-mobile-block": "_responsive-mobile-block_1e0ai_30",
222
222
  "responsive-desktop-block": "_responsive-desktop-block_1e0ai_41"
223
- }, jr = "_header_9xxjk_57", Br = "_actions_9xxjk_131", Lr = "_breadcrumb_9xxjk_142", Ur = "_credits_9xxjk_157", Wr = "_pdplinks_9xxjk_185", zr = "_similars_9xxjk_212", qr = "_sizes_9xxjk_251", Gr = "_measurementTable_9xxjk_267", Hr = "_measurementHead_9xxjk_280", Kr = "_measurementRows_9xxjk_285", Vr = "_measurementRowsTitle_9xxjk_302", Qr = "_measurementRowsText_9xxjk_314", Jr = "_measurementImage_9xxjk_325", Yr = "_measurementImageContainer_9xxjk_328", Xr = "_measurementContent_9xxjk_337", Zr = "_measurementTitle_9xxjk_341", en = "_measurementClose_9xxjk_352", tn = "_productref_9xxjk_417", rn = "_slideOut_9xxjk_1", nn = "_slideIn_9xxjk_1", on = "_content_9xxjk_397", an = "_pdp_9xxjk_185", ln = "_divider_9xxjk_575", Si = {
223
+ }, Wr = "_header_9xxjk_57", zr = "_actions_9xxjk_131", qr = "_breadcrumb_9xxjk_142", Gr = "_credits_9xxjk_157", Hr = "_pdplinks_9xxjk_185", Kr = "_similars_9xxjk_212", Vr = "_sizes_9xxjk_251", Qr = "_measurementTable_9xxjk_267", Jr = "_measurementHead_9xxjk_280", Yr = "_measurementRows_9xxjk_285", Xr = "_measurementRowsTitle_9xxjk_302", Zr = "_measurementRowsText_9xxjk_314", en = "_measurementImage_9xxjk_325", tn = "_measurementImageContainer_9xxjk_328", rn = "_measurementContent_9xxjk_337", nn = "_measurementTitle_9xxjk_341", on = "_measurementClose_9xxjk_352", an = "_productref_9xxjk_417", ln = "_slideOut_9xxjk_1", cn = "_slideIn_9xxjk_1", fn = "_content_9xxjk_397", un = "_pdp_9xxjk_185", sn = "_divider_9xxjk_575", Oi = {
224
224
  "bottom-navigation": "_bottom-navigation_9xxjk_1",
225
225
  "bottom-navigation__credits-modifier": "_bottom-navigation__credits-modifier_9xxjk_18",
226
226
  "bottom-navigation__header": "_bottom-navigation__header_9xxjk_21",
227
227
  "bottom-navigation__header-content": "_bottom-navigation__header-content_9xxjk_26",
228
228
  "golden-tag-content": "_golden-tag-content_9xxjk_45",
229
229
  "bottom-navigation__price-and-promo": "_bottom-navigation__price-and-promo_9xxjk_48",
230
- header: jr,
230
+ header: Wr,
231
231
  "golden-tag": "_golden-tag_9xxjk_45",
232
232
  "golden-tag-video": "_golden-tag-video_9xxjk_86",
233
233
  "golden-tag-content-text": "_golden-tag-content-text_9xxjk_105",
234
- actions: Br,
234
+ actions: zr,
235
235
  "add-to-cart": "_add-to-cart_9xxjk_138",
236
- breadcrumb: Lr,
236
+ breadcrumb: qr,
237
237
  "breadcrumb--active": "_breadcrumb--active_9xxjk_147",
238
- credits: Ur,
238
+ credits: Gr,
239
239
  "gallery-carousel-modifier": "_gallery-carousel-modifier_9xxjk_162",
240
- pdplinks: Wr,
240
+ pdplinks: Hr,
241
241
  "links-wrapper": "_links-wrapper_9xxjk_195",
242
- similars: zr,
242
+ similars: Kr,
243
243
  "similars-info": "_similars-info_9xxjk_224",
244
244
  "toggle-style-modifier": "_toggle-style-modifier_9xxjk_233",
245
245
  "accessibility-info": "_accessibility-info_9xxjk_237",
246
- sizes: qr,
246
+ sizes: Vr,
247
247
  "price-wrapper": "_price-wrapper_9xxjk_263",
248
- measurementTable: Gr,
249
- measurementHead: Hr,
250
- measurementRows: Kr,
251
- measurementRowsTitle: Vr,
252
- measurementRowsText: Qr,
253
- measurementImage: Jr,
254
- measurementImageContainer: Yr,
255
- measurementContent: Xr,
256
- measurementTitle: Zr,
257
- measurementClose: en,
248
+ measurementTable: Qr,
249
+ measurementHead: Jr,
250
+ measurementRows: Yr,
251
+ measurementRowsTitle: Xr,
252
+ measurementRowsText: Zr,
253
+ measurementImage: en,
254
+ measurementImageContainer: tn,
255
+ measurementContent: rn,
256
+ measurementTitle: nn,
257
+ measurementClose: on,
258
258
  "tabs-root-modifier": "_tabs-root-modifier_9xxjk_358",
259
259
  "tabs-list-modifier": "_tabs-list-modifier_9xxjk_376",
260
260
  "tabs-item-modifier": "_tabs-item-modifier_9xxjk_393",
261
261
  "content-wrapper": "_content-wrapper_9xxjk_397",
262
- productref: tn,
262
+ productref: an,
263
263
  "tabs-panel": "_tabs-panel_9xxjk_428",
264
264
  "tabs-panel-exit": "_tabs-panel-exit_9xxjk_434",
265
- slideOut: rn,
265
+ slideOut: ln,
266
266
  "tabs-panel-enter": "_tabs-panel-enter_9xxjk_438",
267
- slideIn: nn,
268
- content: on,
269
- pdp: an,
267
+ slideIn: cn,
268
+ content: fn,
269
+ pdp: un,
270
270
  "pdp-main": "_pdp-main_9xxjk_496",
271
271
  "pdp-main__gallery-wrapper": "_pdp-main__gallery-wrapper_9xxjk_501",
272
272
  "pdp-main__info": "_pdp-main__info_9xxjk_518",
@@ -278,10 +278,10 @@ const ue = {
278
278
  "subsection-actions": "_subsection-actions_9xxjk_553",
279
279
  "pdp-main__info-secondary-content": "_pdp-main__info-secondary-content_9xxjk_557",
280
280
  "sections-title": "_sections-title_9xxjk_563",
281
- divider: ln,
281
+ divider: sn,
282
282
  "breadcrumbs-desktop": "_breadcrumbs-desktop_9xxjk_580",
283
283
  "breadcrumbs-mobile": "_breadcrumbs-mobile_9xxjk_589"
284
- }, wi = ({
284
+ }, Ei = ({
285
285
  children: t,
286
286
  data: e,
287
287
  SectionZone: r,
@@ -295,49 +295,49 @@ const ue = {
295
295
  var v, d;
296
296
  return ((d = (v = u.config) == null ? void 0 : v.responsive) == null ? void 0 : d.deviceType) === "desktop";
297
297
  })[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);
298
- return /* @__PURE__ */ at(pr, { children: [
299
- /* @__PURE__ */ at("div", { className: n, children: [
298
+ return /* @__PURE__ */ lt(mr, { children: [
299
+ /* @__PURE__ */ lt("div", { className: n, children: [
300
300
  /* @__PURE__ */ P("div", { className: ue["responsive-mobile-flex"], children: /* @__PURE__ */ P(r, { data: i ?? [] }) }),
301
301
  /* @__PURE__ */ P("div", { className: ue["responsive-desktop-flex"], children: /* @__PURE__ */ P(r, { data: l ?? [] }) })
302
302
  ] }),
303
303
  t,
304
304
  /* @__PURE__ */ P("div", { className: ue["responsive-mobile-flex"], children: /* @__PURE__ */ P(r, { data: c ?? [] }) }),
305
305
  /* @__PURE__ */ P("div", { className: ue["responsive-desktop-flex"], children: /* @__PURE__ */ P(r, { data: s ?? [] }) }),
306
- /* @__PURE__ */ P(yr.Divider, {})
306
+ /* @__PURE__ */ P(gr.Divider, {})
307
307
  ] });
308
308
  };
309
309
  var J = TypeError;
310
- const cn = {}, fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
310
+ const pn = {}, yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
311
311
  __proto__: null,
312
- default: cn
313
- }, Symbol.toStringTag, { value: "Module" })), un = /* @__PURE__ */ Mr(fn);
314
- var Ye = typeof Map == "function" && Map.prototype, Pe = Object.getOwnPropertyDescriptor && Ye ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, me = Ye && Pe && typeof Pe.get == "function" ? Pe.get : null, ft = Ye && Map.prototype.forEach, Xe = typeof Set == "function" && Set.prototype, $e = Object.getOwnPropertyDescriptor && Xe ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, ge = Xe && $e && typeof $e.get == "function" ? $e.get : null, ut = Xe && Set.prototype.forEach, sn = typeof WeakMap == "function" && WeakMap.prototype, ee = sn ? WeakMap.prototype.has : null, pn = typeof WeakSet == "function" && WeakSet.prototype, te = pn ? WeakSet.prototype.has : null, yn = typeof WeakRef == "function" && WeakRef.prototype, st = yn ? WeakRef.prototype.deref : null, dn = Boolean.prototype.valueOf, vn = Object.prototype.toString, mn = Function.prototype.toString, gn = String.prototype.match, Ze = String.prototype.slice, N = String.prototype.replace, hn = String.prototype.toUpperCase, pt = String.prototype.toLowerCase, Ft = RegExp.prototype.test, yt = Array.prototype.concat, A = Array.prototype.join, _n = Array.prototype.slice, dt = Math.floor, Ge = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Ie = Object.getOwnPropertySymbols, He = 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, Mt = Object.prototype.propertyIsEnumerable, vt = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
312
+ default: pn
313
+ }, Symbol.toStringTag, { value: "Module" })), dn = /* @__PURE__ */ Ur(yn);
314
+ var Ze = typeof Map == "function" && Map.prototype, Pe = Object.getOwnPropertyDescriptor && Ze ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, me = Ze && Pe && typeof Pe.get == "function" ? Pe.get : null, st = Ze && Map.prototype.forEach, et = typeof Set == "function" && Set.prototype, $e = Object.getOwnPropertyDescriptor && et ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, ge = et && $e && typeof $e.get == "function" ? $e.get : null, pt = et && Set.prototype.forEach, vn = typeof WeakMap == "function" && WeakMap.prototype, ee = vn ? WeakMap.prototype.has : null, mn = typeof WeakSet == "function" && WeakSet.prototype, te = mn ? WeakSet.prototype.has : null, gn = typeof WeakRef == "function" && WeakRef.prototype, yt = gn ? WeakRef.prototype.deref : null, hn = Boolean.prototype.valueOf, _n = Object.prototype.toString, bn = Function.prototype.toString, Sn = String.prototype.match, tt = String.prototype.slice, C = String.prototype.replace, wn = String.prototype.toUpperCase, dt = String.prototype.toLowerCase, Lt = RegExp.prototype.test, vt = Array.prototype.concat, O = Array.prototype.join, xn = Array.prototype.slice, mt = Math.floor, Ke = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Ie = Object.getOwnPropertySymbols, Ve = 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, Ut = Object.prototype.propertyIsEnumerable, gt = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
315
315
  return t.__proto__;
316
316
  } : null);
317
- function mt(t, e) {
318
- if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || Ft.call(/e/, e))
317
+ function ht(t, e) {
318
+ if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || Lt.call(/e/, e))
319
319
  return e;
320
320
  var r = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
321
321
  if (typeof t == "number") {
322
- var n = t < 0 ? -dt(-t) : dt(t);
322
+ var n = t < 0 ? -mt(-t) : mt(t);
323
323
  if (n !== t) {
324
- var o = String(n), a = Ze.call(e, o.length + 1);
325
- return N.call(o, r, "$&_") + "." + N.call(N.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
324
+ var o = String(n), a = tt.call(e, o.length + 1);
325
+ return C.call(o, r, "$&_") + "." + C.call(C.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
326
326
  }
327
327
  }
328
- return N.call(e, r, "$&_");
328
+ return C.call(e, r, "$&_");
329
329
  }
330
- var Ke = un, gt = Ke.custom, ht = Lt(gt) ? gt : null, jt = {
330
+ var Qe = dn, _t = Qe.custom, bt = qt(_t) ? _t : null, Wt = {
331
331
  __proto__: null,
332
332
  double: '"',
333
333
  single: "'"
334
- }, bn = {
334
+ }, An = {
335
335
  __proto__: null,
336
336
  double: /(["\\])/g,
337
337
  single: /(['\\])/g
338
338
  }, be = function t(e, r, n, o) {
339
339
  var a = r || {};
340
- if ($(a, "quoteStyle") && !$(jt, a.quoteStyle))
340
+ if ($(a, "quoteStyle") && !$(Wt, a.quoteStyle))
341
341
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
342
342
  if ($(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
343
343
  throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
@@ -356,27 +356,27 @@ var Ke = un, gt = Ke.custom, ht = Lt(gt) ? gt : null, jt = {
356
356
  if (typeof e == "boolean")
357
357
  return e ? "true" : "false";
358
358
  if (typeof e == "string")
359
- return Wt(e, a);
359
+ return Ht(e, a);
360
360
  if (typeof e == "number") {
361
361
  if (e === 0)
362
362
  return 1 / 0 / e > 0 ? "0" : "-0";
363
363
  var l = String(e);
364
- return c ? mt(e, l) : l;
364
+ return c ? ht(e, l) : l;
365
365
  }
366
366
  if (typeof e == "bigint") {
367
367
  var s = String(e) + "n";
368
- return c ? mt(e, s) : s;
368
+ return c ? ht(e, s) : s;
369
369
  }
370
370
  var f = typeof a.depth > "u" ? 5 : a.depth;
371
371
  if (typeof n > "u" && (n = 0), n >= f && f > 0 && typeof e == "object")
372
- return Ve(e) ? "[Array]" : "[Object]";
373
- var p = jn(a, n);
372
+ return Je(e) ? "[Array]" : "[Object]";
373
+ var p = Wn(a, n);
374
374
  if (typeof o > "u")
375
375
  o = [];
376
- else if (Ut(o, e) >= 0)
376
+ else if (Gt(o, e) >= 0)
377
377
  return "[Circular]";
378
- function u(w, T, E) {
379
- if (T && (o = _n.call(o), o.push(T)), E) {
378
+ function u(w, F, E) {
379
+ if (F && (o = xn.call(o), o.push(F)), E) {
380
380
  var X = {
381
381
  depth: a.depth
382
382
  };
@@ -384,140 +384,140 @@ var Ke = un, gt = Ke.custom, ht = Lt(gt) ? gt : null, jt = {
384
384
  }
385
385
  return t(w, a, n + 1, o);
386
386
  }
387
- if (typeof e == "function" && !_t(e)) {
388
- var v = In(e), d = se(e, u);
389
- return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (d.length > 0 ? " { " + A.call(d, ", ") + " }" : "");
387
+ if (typeof e == "function" && !St(e)) {
388
+ var v = Fn(e), d = se(e, u);
389
+ return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (d.length > 0 ? " { " + O.call(d, ", ") + " }" : "");
390
390
  }
391
- if (Lt(e)) {
392
- var b = V ? N.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : He.call(e);
391
+ if (qt(e)) {
392
+ var b = V ? C.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Ve.call(e);
393
393
  return typeof e == "object" && !V ? Z(b) : b;
394
394
  }
395
- if (Cn(e)) {
396
- for (var S = "<" + pt.call(String(e.nodeName)), I = e.attributes || [], R = 0; R < I.length; R++)
397
- S += " " + I[R].name + "=" + Bt(Sn(I[R].value), "double", a);
398
- return S += ">", e.childNodes && e.childNodes.length && (S += "..."), S += "</" + pt.call(String(e.nodeName)) + ">", S;
395
+ if (Bn(e)) {
396
+ for (var S = "<" + dt.call(String(e.nodeName)), I = e.attributes || [], R = 0; R < I.length; R++)
397
+ S += " " + I[R].name + "=" + zt(On(I[R].value), "double", a);
398
+ return S += ">", e.childNodes && e.childNodes.length && (S += "..."), S += "</" + dt.call(String(e.nodeName)) + ">", S;
399
399
  }
400
- if (Ve(e)) {
400
+ if (Je(e)) {
401
401
  if (e.length === 0)
402
402
  return "[]";
403
403
  var m = se(e, u);
404
- return p && !Mn(m) ? "[" + Qe(m, p) + "]" : "[ " + A.call(m, ", ") + " ]";
404
+ return p && !Un(m) ? "[" + Ye(m, p) + "]" : "[ " + O.call(m, ", ") + " ]";
405
405
  }
406
- if (xn(e)) {
406
+ if (Pn(e)) {
407
407
  var k = se(e, u);
408
- return !("cause" in Error.prototype) && "cause" in e && !Mt.call(e, "cause") ? "{ [" + String(e) + "] " + A.call(yt.call("[cause]: " + u(e.cause), k), ", ") + " }" : k.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + A.call(k, ", ") + " }";
408
+ return !("cause" in Error.prototype) && "cause" in e && !Ut.call(e, "cause") ? "{ [" + String(e) + "] " + O.call(vt.call("[cause]: " + u(e.cause), k), ", ") + " }" : k.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + O.call(k, ", ") + " }";
409
409
  }
410
410
  if (typeof e == "object" && i) {
411
- if (ht && typeof e[ht] == "function" && Ke)
412
- return Ke(e, { depth: f - n });
411
+ if (bt && typeof e[bt] == "function" && Qe)
412
+ return Qe(e, { depth: f - n });
413
413
  if (i !== "symbol" && typeof e.inspect == "function")
414
414
  return e.inspect();
415
415
  }
416
- if (Rn(e)) {
417
- var F = [];
418
- return ft && ft.call(e, function(w, T) {
419
- F.push(u(T, e, !0) + " => " + u(w, e));
420
- }), bt("Map", me.call(e), F, p);
416
+ if (Cn(e)) {
417
+ var N = [];
418
+ return st && st.call(e, function(w, F) {
419
+ N.push(u(F, e, !0) + " => " + u(w, e));
420
+ }), wt("Map", me.call(e), N, p);
421
421
  }
422
- if (Tn(e)) {
422
+ if (Mn(e)) {
423
423
  var Y = [];
424
- return ut && ut.call(e, function(w) {
424
+ return pt && pt.call(e, function(w) {
425
425
  Y.push(u(w, e));
426
- }), bt("Set", ge.call(e), Y, p);
426
+ }), wt("Set", ge.call(e), Y, p);
427
427
  }
428
- if (kn(e))
428
+ if (Tn(e))
429
429
  return Re("WeakMap");
430
- if (Nn(e))
430
+ if (jn(e))
431
431
  return Re("WeakSet");
432
- if (Dn(e))
432
+ if (Nn(e))
433
433
  return Re("WeakRef");
434
- if (An(e))
434
+ if (In(e))
435
435
  return Z(u(Number(e)));
436
- if (Pn(e))
437
- return Z(u(Ge.call(e)));
438
- if (En(e))
439
- return Z(dn.call(e));
440
- if (On(e))
436
+ if (kn(e))
437
+ return Z(u(Ke.call(e)));
438
+ if (Rn(e))
439
+ return Z(hn.call(e));
440
+ if ($n(e))
441
441
  return Z(u(String(e)));
442
442
  if (typeof window < "u" && e === window)
443
443
  return "{ [object Window] }";
444
- if (typeof globalThis < "u" && e === globalThis || typeof ct < "u" && e === ct)
444
+ if (typeof globalThis < "u" && e === globalThis || typeof ut < "u" && e === ut)
445
445
  return "{ [object globalThis] }";
446
- if (!wn(e) && !_t(e)) {
447
- var W = se(e, u), ce = vt ? vt(e) === Object.prototype : e instanceof Object || e.constructor === Object, M = e instanceof Object ? "" : "null prototype", D = !ce && re && Object(e) === e && re in e ? Ze.call(C(e), 8, -1) : M ? "Object" : "", fe = ce || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", z = fe + (D || M ? "[" + A.call(yt.call([], D || [], M || []), ": ") + "] " : "");
448
- return W.length === 0 ? z + "{}" : p ? z + "{" + Qe(W, p) + "}" : z + "{ " + A.call(W, ", ") + " }";
446
+ if (!En(e) && !St(e)) {
447
+ var W = se(e, u), ce = gt ? gt(e) === Object.prototype : e instanceof Object || e.constructor === Object, M = e instanceof Object ? "" : "null prototype", D = !ce && re && Object(e) === e && re in e ? tt.call(T(e), 8, -1) : M ? "Object" : "", fe = ce || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", z = fe + (D || M ? "[" + O.call(vt.call([], D || [], M || []), ": ") + "] " : "");
448
+ return W.length === 0 ? z + "{}" : p ? z + "{" + Ye(W, p) + "}" : z + "{ " + O.call(W, ", ") + " }";
449
449
  }
450
450
  return String(e);
451
451
  };
452
- function Bt(t, e, r) {
453
- var n = r.quoteStyle || e, o = jt[n];
452
+ function zt(t, e, r) {
453
+ var n = r.quoteStyle || e, o = Wt[n];
454
454
  return o + t + o;
455
455
  }
456
- function Sn(t) {
457
- return N.call(String(t), /"/g, "&quot;");
456
+ function On(t) {
457
+ return C.call(String(t), /"/g, "&quot;");
458
458
  }
459
459
  function U(t) {
460
460
  return !re || !(typeof t == "object" && (re in t || typeof t[re] < "u"));
461
461
  }
462
- function Ve(t) {
463
- return C(t) === "[object Array]" && U(t);
462
+ function Je(t) {
463
+ return T(t) === "[object Array]" && U(t);
464
464
  }
465
- function wn(t) {
466
- return C(t) === "[object Date]" && U(t);
465
+ function En(t) {
466
+ return T(t) === "[object Date]" && U(t);
467
467
  }
468
- function _t(t) {
469
- return C(t) === "[object RegExp]" && U(t);
468
+ function St(t) {
469
+ return T(t) === "[object RegExp]" && U(t);
470
470
  }
471
- function xn(t) {
472
- return C(t) === "[object Error]" && U(t);
471
+ function Pn(t) {
472
+ return T(t) === "[object Error]" && U(t);
473
473
  }
474
- function On(t) {
475
- return C(t) === "[object String]" && U(t);
474
+ function $n(t) {
475
+ return T(t) === "[object String]" && U(t);
476
476
  }
477
- function An(t) {
478
- return C(t) === "[object Number]" && U(t);
477
+ function In(t) {
478
+ return T(t) === "[object Number]" && U(t);
479
479
  }
480
- function En(t) {
481
- return C(t) === "[object Boolean]" && U(t);
480
+ function Rn(t) {
481
+ return T(t) === "[object Boolean]" && U(t);
482
482
  }
483
- function Lt(t) {
483
+ function qt(t) {
484
484
  if (V)
485
485
  return t && typeof t == "object" && t instanceof Symbol;
486
486
  if (typeof t == "symbol")
487
487
  return !0;
488
- if (!t || typeof t != "object" || !He)
488
+ if (!t || typeof t != "object" || !Ve)
489
489
  return !1;
490
490
  try {
491
- return He.call(t), !0;
491
+ return Ve.call(t), !0;
492
492
  } catch {
493
493
  }
494
494
  return !1;
495
495
  }
496
- function Pn(t) {
497
- if (!t || typeof t != "object" || !Ge)
496
+ function kn(t) {
497
+ if (!t || typeof t != "object" || !Ke)
498
498
  return !1;
499
499
  try {
500
- return Ge.call(t), !0;
500
+ return Ke.call(t), !0;
501
501
  } catch {
502
502
  }
503
503
  return !1;
504
504
  }
505
- var $n = Object.prototype.hasOwnProperty || function(t) {
505
+ var Dn = Object.prototype.hasOwnProperty || function(t) {
506
506
  return t in this;
507
507
  };
508
508
  function $(t, e) {
509
- return $n.call(t, e);
509
+ return Dn.call(t, e);
510
510
  }
511
- function C(t) {
512
- return vn.call(t);
511
+ function T(t) {
512
+ return _n.call(t);
513
513
  }
514
- function In(t) {
514
+ function Fn(t) {
515
515
  if (t.name)
516
516
  return t.name;
517
- var e = gn.call(mn.call(t), /^function\s*([\w$]+)/);
517
+ var e = Sn.call(bn.call(t), /^function\s*([\w$]+)/);
518
518
  return e ? e[1] : null;
519
519
  }
520
- function Ut(t, e) {
520
+ function Gt(t, e) {
521
521
  if (t.indexOf)
522
522
  return t.indexOf(e);
523
523
  for (var r = 0, n = t.length; r < n; r++)
@@ -525,7 +525,7 @@ function Ut(t, e) {
525
525
  return r;
526
526
  return -1;
527
527
  }
528
- function Rn(t) {
528
+ function Cn(t) {
529
529
  if (!me || !t || typeof t != "object")
530
530
  return !1;
531
531
  try {
@@ -540,7 +540,7 @@ function Rn(t) {
540
540
  }
541
541
  return !1;
542
542
  }
543
- function kn(t) {
543
+ function Tn(t) {
544
544
  if (!ee || !t || typeof t != "object")
545
545
  return !1;
546
546
  try {
@@ -555,16 +555,16 @@ function kn(t) {
555
555
  }
556
556
  return !1;
557
557
  }
558
- function Dn(t) {
559
- if (!st || !t || typeof t != "object")
558
+ function Nn(t) {
559
+ if (!yt || !t || typeof t != "object")
560
560
  return !1;
561
561
  try {
562
- return st.call(t), !0;
562
+ return yt.call(t), !0;
563
563
  } catch {
564
564
  }
565
565
  return !1;
566
566
  }
567
- function Tn(t) {
567
+ function Mn(t) {
568
568
  if (!ge || !t || typeof t != "object")
569
569
  return !1;
570
570
  try {
@@ -579,7 +579,7 @@ function Tn(t) {
579
579
  }
580
580
  return !1;
581
581
  }
582
- function Nn(t) {
582
+ function jn(t) {
583
583
  if (!te || !t || typeof t != "object")
584
584
  return !1;
585
585
  try {
@@ -594,20 +594,20 @@ function Nn(t) {
594
594
  }
595
595
  return !1;
596
596
  }
597
- function Cn(t) {
597
+ function Bn(t) {
598
598
  return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
599
599
  }
600
- function Wt(t, e) {
600
+ function Ht(t, e) {
601
601
  if (t.length > e.maxStringLength) {
602
602
  var r = t.length - e.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : "");
603
- return Wt(Ze.call(t, 0, e.maxStringLength), e) + n;
603
+ return Ht(tt.call(t, 0, e.maxStringLength), e) + n;
604
604
  }
605
- var o = bn[e.quoteStyle || "single"];
605
+ var o = An[e.quoteStyle || "single"];
606
606
  o.lastIndex = 0;
607
- var a = N.call(N.call(t, o, "\\$1"), /[\x00-\x1f]/g, Fn);
608
- return Bt(a, "single", e);
607
+ var a = C.call(C.call(t, o, "\\$1"), /[\x00-\x1f]/g, Ln);
608
+ return zt(a, "single", e);
609
609
  }
610
- function Fn(t) {
610
+ function Ln(t) {
611
611
  var e = t.charCodeAt(0), r = {
612
612
  8: "b",
613
613
  9: "t",
@@ -615,7 +615,7 @@ function Fn(t) {
615
615
  12: "f",
616
616
  13: "r"
617
617
  }[e];
618
- return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + hn.call(e.toString(16));
618
+ return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + wn.call(e.toString(16));
619
619
  }
620
620
  function Z(t) {
621
621
  return "Object(" + t + ")";
@@ -623,40 +623,40 @@ function Z(t) {
623
623
  function Re(t) {
624
624
  return t + " { ? }";
625
625
  }
626
- function bt(t, e, r, n) {
627
- var o = n ? Qe(r, n) : A.call(r, ", ");
626
+ function wt(t, e, r, n) {
627
+ var o = n ? Ye(r, n) : O.call(r, ", ");
628
628
  return t + " (" + e + ") {" + o + "}";
629
629
  }
630
- function Mn(t) {
630
+ function Un(t) {
631
631
  for (var e = 0; e < t.length; e++)
632
- if (Ut(t[e], `
632
+ if (Gt(t[e], `
633
633
  `) >= 0)
634
634
  return !1;
635
635
  return !0;
636
636
  }
637
- function jn(t, e) {
637
+ function Wn(t, e) {
638
638
  var r;
639
639
  if (t.indent === " ")
640
640
  r = " ";
641
641
  else if (typeof t.indent == "number" && t.indent > 0)
642
- r = A.call(Array(t.indent + 1), " ");
642
+ r = O.call(Array(t.indent + 1), " ");
643
643
  else
644
644
  return null;
645
645
  return {
646
646
  base: r,
647
- prev: A.call(Array(e + 1), r)
647
+ prev: O.call(Array(e + 1), r)
648
648
  };
649
649
  }
650
- function Qe(t, e) {
650
+ function Ye(t, e) {
651
651
  if (t.length === 0)
652
652
  return "";
653
653
  var r = `
654
654
  ` + e.prev + e.base;
655
- return r + A.call(t, "," + r) + `
655
+ return r + O.call(t, "," + r) + `
656
656
  ` + e.prev;
657
657
  }
658
658
  function se(t, e) {
659
- var r = Ve(t), n = [];
659
+ var r = Je(t), n = [];
660
660
  if (r) {
661
661
  n.length = t.length;
662
662
  for (var o = 0; o < t.length; o++)
@@ -669,23 +669,23 @@ function se(t, e) {
669
669
  i["$" + a[c]] = a[c];
670
670
  }
671
671
  for (var l in t)
672
- $(t, l) && (r && String(Number(l)) === l && l < t.length || V && i["$" + l] instanceof Symbol || (Ft.call(/[^\w$]/, l) ? n.push(e(l, t) + ": " + e(t[l], t)) : n.push(l + ": " + e(t[l], t))));
672
+ $(t, l) && (r && String(Number(l)) === l && l < t.length || V && i["$" + l] instanceof Symbol || (Lt.call(/[^\w$]/, l) ? n.push(e(l, t) + ": " + e(t[l], t)) : n.push(l + ": " + e(t[l], t))));
673
673
  if (typeof Ie == "function")
674
674
  for (var s = 0; s < a.length; s++)
675
- Mt.call(t, a[s]) && n.push("[" + e(a[s]) + "]: " + e(t[a[s]], t));
675
+ Ut.call(t, a[s]) && n.push("[" + e(a[s]) + "]: " + e(t[a[s]], t));
676
676
  return n;
677
677
  }
678
- var Bn = be, Ln = J, Se = function(t, e, r) {
678
+ var zn = be, qn = J, Se = function(t, e, r) {
679
679
  for (var n = t, o; (o = n.next) != null; n = o)
680
680
  if (o.key === e)
681
681
  return n.next = o.next, r || (o.next = /** @type {NonNullable<typeof list.next>} */
682
682
  t.next, t.next = o), o;
683
- }, Un = function(t, e) {
683
+ }, Gn = function(t, e) {
684
684
  if (t) {
685
685
  var r = Se(t, e);
686
686
  return r && r.value;
687
687
  }
688
- }, Wn = function(t, e, r) {
688
+ }, Hn = function(t, e, r) {
689
689
  var n = Se(t, e);
690
690
  n ? n.value = r : t.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
691
691
  {
@@ -694,31 +694,31 @@ var Bn = be, Ln = J, Se = function(t, e, r) {
694
694
  next: t.next,
695
695
  value: r
696
696
  };
697
- }, zn = function(t, e) {
697
+ }, Kn = function(t, e) {
698
698
  return t ? !!Se(t, e) : !1;
699
- }, qn = function(t, e) {
699
+ }, Vn = function(t, e) {
700
700
  if (t)
701
701
  return Se(t, e, !0);
702
- }, Gn = function() {
702
+ }, Qn = function() {
703
703
  var e, r = {
704
704
  assert: function(n) {
705
705
  if (!r.has(n))
706
- throw new Ln("Side channel does not contain " + Bn(n));
706
+ throw new qn("Side channel does not contain " + zn(n));
707
707
  },
708
708
  delete: function(n) {
709
- var o = e && e.next, a = qn(e, n);
709
+ var o = e && e.next, a = Vn(e, n);
710
710
  return a && o && o === a && (e = void 0), !!a;
711
711
  },
712
712
  get: function(n) {
713
- return Un(e, n);
713
+ return Gn(e, n);
714
714
  },
715
715
  has: function(n) {
716
- return zn(e, n);
716
+ return Kn(e, n);
717
717
  },
718
718
  set: function(n, o) {
719
719
  e || (e = {
720
720
  next: void 0
721
- }), Wn(
721
+ }), Hn(
722
722
  /** @type {NonNullable<typeof $o>} */
723
723
  e,
724
724
  n,
@@ -727,27 +727,27 @@ var Bn = be, Ln = J, Se = function(t, e, r) {
727
727
  }
728
728
  };
729
729
  return r;
730
- }, zt = Object, Hn = Error, Kn = EvalError, Vn = RangeError, Qn = ReferenceError, Jn = SyntaxError, Yn = URIError, Xn = Math.abs, Zn = Math.floor, eo = Math.max, to = Math.min, ro = Math.pow, no = Math.round, oo = Number.isNaN || function(e) {
730
+ }, Kt = Object, Jn = Error, Yn = EvalError, Xn = RangeError, Zn = ReferenceError, eo = SyntaxError, to = URIError, ro = Math.abs, no = Math.floor, oo = Math.max, ao = Math.min, io = Math.pow, lo = Math.round, co = Number.isNaN || function(e) {
731
731
  return e !== e;
732
- }, ao = oo, io = function(e) {
733
- return ao(e) || e === 0 ? e : e < 0 ? -1 : 1;
734
- }, lo = Object.getOwnPropertyDescriptor, ye = lo;
732
+ }, fo = co, uo = function(e) {
733
+ return fo(e) || e === 0 ? e : e < 0 ? -1 : 1;
734
+ }, so = Object.getOwnPropertyDescriptor, ye = so;
735
735
  if (ye)
736
736
  try {
737
737
  ye([], "length");
738
738
  } catch {
739
739
  ye = null;
740
740
  }
741
- var qt = ye, de = Object.defineProperty || !1;
741
+ var Vt = ye, de = Object.defineProperty || !1;
742
742
  if (de)
743
743
  try {
744
744
  de({}, "a", { value: 1 });
745
745
  } catch {
746
746
  de = !1;
747
747
  }
748
- var co = de, ke, St;
749
- function fo() {
750
- return St || (St = 1, ke = function() {
748
+ var po = de, ke, xt;
749
+ function yo() {
750
+ return xt || (xt = 1, ke = function() {
751
751
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
752
752
  return !1;
753
753
  if (typeof Symbol.iterator == "symbol")
@@ -775,73 +775,81 @@ function fo() {
775
775
  return !0;
776
776
  }), ke;
777
777
  }
778
- var De, wt;
779
- function uo() {
780
- if (wt) return De;
781
- wt = 1;
782
- var t = typeof Symbol < "u" && Symbol, e = fo();
778
+ var De, At;
779
+ function vo() {
780
+ if (At) return De;
781
+ At = 1;
782
+ var t = typeof Symbol < "u" && Symbol, e = yo();
783
783
  return De = function() {
784
784
  return typeof t != "function" || typeof Symbol != "function" || typeof t("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
785
785
  }, De;
786
786
  }
787
- var Te, xt;
788
- function Gt() {
789
- return xt || (xt = 1, Te = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Te;
787
+ var Fe, Ot;
788
+ function Qt() {
789
+ return Ot || (Ot = 1, Fe = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Fe;
790
790
  }
791
- var Ne, Ot;
792
- function Ht() {
793
- if (Ot) return Ne;
794
- Ot = 1;
795
- var t = zt;
796
- return Ne = t.getPrototypeOf || null, Ne;
791
+ var Ce, Et;
792
+ function Jt() {
793
+ if (Et) return Ce;
794
+ Et = 1;
795
+ var t = Kt;
796
+ return Ce = t.getPrototypeOf || null, Ce;
797
797
  }
798
- var so = "Function.prototype.bind called on incompatible ", po = Object.prototype.toString, yo = Math.max, vo = "[object Function]", At = function(e, r) {
798
+ var mo = "Function.prototype.bind called on incompatible ", go = Object.prototype.toString, ho = Math.max, _o = "[object Function]", Pt = function(e, r) {
799
799
  for (var n = [], o = 0; o < e.length; o += 1)
800
800
  n[o] = e[o];
801
801
  for (var a = 0; a < r.length; a += 1)
802
802
  n[a + e.length] = r[a];
803
803
  return n;
804
- }, mo = function(e, r) {
804
+ }, bo = function(e, r) {
805
805
  for (var n = [], o = r, a = 0; o < e.length; o += 1, a += 1)
806
806
  n[a] = e[o];
807
807
  return n;
808
- }, go = function(t, e) {
808
+ }, So = function(t, e) {
809
809
  for (var r = "", n = 0; n < t.length; n += 1)
810
810
  r += t[n], n + 1 < t.length && (r += e);
811
811
  return r;
812
- }, ho = function(e) {
812
+ }, wo = function(e) {
813
813
  var r = this;
814
- if (typeof r != "function" || po.apply(r) !== vo)
815
- throw new TypeError(so + r);
816
- for (var n = mo(arguments, 1), o, a = function() {
814
+ if (typeof r != "function" || go.apply(r) !== _o)
815
+ throw new TypeError(mo + r);
816
+ for (var n = bo(arguments, 1), o, a = function() {
817
817
  if (this instanceof o) {
818
818
  var f = r.apply(
819
819
  this,
820
- At(n, arguments)
820
+ Pt(n, arguments)
821
821
  );
822
822
  return Object(f) === f ? f : this;
823
823
  }
824
824
  return r.apply(
825
825
  e,
826
- At(n, arguments)
826
+ Pt(n, arguments)
827
827
  );
828
- }, i = yo(0, r.length - n.length), c = [], l = 0; l < i; l++)
828
+ }, i = ho(0, r.length - n.length), c = [], l = 0; l < i; l++)
829
829
  c[l] = "$" + l;
830
- if (o = Function("binder", "return function (" + go(c, ",") + "){ return binder.apply(this,arguments); }")(a), r.prototype) {
830
+ if (o = Function("binder", "return function (" + So(c, ",") + "){ return binder.apply(this,arguments); }")(a), r.prototype) {
831
831
  var s = function() {
832
832
  };
833
833
  s.prototype = r.prototype, o.prototype = new s(), s.prototype = null;
834
834
  }
835
835
  return o;
836
- }, _o = ho, we = Function.prototype.bind || _o, et = Function.prototype.call, Kt = Function.prototype.apply, bo = typeof Reflect < "u" && Reflect && Reflect.apply, So = we, wo = Kt, xo = et, Oo = bo, Ao = Oo || So.call(xo, wo), Eo = we, Po = J, $o = et, Io = Ao, Vt = function(e) {
836
+ }, xo = wo, we = Function.prototype.bind || xo, Te, $t;
837
+ function rt() {
838
+ return $t || ($t = 1, Te = Function.prototype.call), Te;
839
+ }
840
+ var Ne, It;
841
+ function Yt() {
842
+ return It || (It = 1, Ne = Function.prototype.apply), Ne;
843
+ }
844
+ var Ao = typeof Reflect < "u" && Reflect && Reflect.apply, Oo = we, Eo = Yt(), Po = rt(), $o = Ao, Io = $o || Oo.call(Po, Eo), Ro = we, ko = J, Do = rt(), Fo = Io, Xt = function(e) {
837
845
  if (e.length < 1 || typeof e[0] != "function")
838
- throw new Po("a function is required");
839
- return Io(Eo, $o, e);
840
- }, Ce, Et;
841
- function Ro() {
842
- if (Et) return Ce;
843
- Et = 1;
844
- var t = Vt, e = qt, r;
846
+ throw new ko("a function is required");
847
+ return Fo(Ro, Do, e);
848
+ }, Me, Rt;
849
+ function Co() {
850
+ if (Rt) return Me;
851
+ Rt = 1;
852
+ var t = Xt, e = Vt, r;
845
853
  try {
846
854
  r = /** @type {{ __proto__?: typeof Array.prototype }} */
847
855
  [].__proto__ === Array.prototype;
@@ -854,19 +862,19 @@ function Ro() {
854
862
  /** @type {keyof typeof Object.prototype} */
855
863
  "__proto__"
856
864
  ), o = Object, a = o.getPrototypeOf;
857
- return Ce = n && typeof n.get == "function" ? t([n.get]) : typeof a == "function" ? (
865
+ return Me = n && typeof n.get == "function" ? t([n.get]) : typeof a == "function" ? (
858
866
  /** @type {import('./get')} */
859
867
  function(c) {
860
868
  return a(c == null ? c : o(c));
861
869
  }
862
- ) : !1, Ce;
870
+ ) : !1, Me;
863
871
  }
864
- var Fe, Pt;
865
- function ko() {
866
- if (Pt) return Fe;
867
- Pt = 1;
868
- var t = Gt(), e = Ht(), r = Ro();
869
- return Fe = t ? function(o) {
872
+ var je, kt;
873
+ function To() {
874
+ if (kt) return je;
875
+ kt = 1;
876
+ var t = Qt(), e = Jt(), r = Co();
877
+ return je = t ? function(o) {
870
878
  return t(o);
871
879
  } : e ? function(o) {
872
880
  if (!o || typeof o != "object" && typeof o != "function")
@@ -874,33 +882,33 @@ function ko() {
874
882
  return e(o);
875
883
  } : r ? function(o) {
876
884
  return r(o);
877
- } : null, Fe;
885
+ } : null, je;
878
886
  }
879
- var Me, $t;
880
- function Do() {
881
- if ($t) return Me;
882
- $t = 1;
887
+ var Be, Dt;
888
+ function No() {
889
+ if (Dt) return Be;
890
+ Dt = 1;
883
891
  var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, r = we;
884
- return Me = r.call(t, e), Me;
892
+ return Be = r.call(t, e), Be;
885
893
  }
886
- var y, To = zt, No = Hn, Co = Kn, Fo = Vn, Mo = Qn, Q = Jn, K = J, jo = Yn, Bo = Xn, Lo = Zn, Uo = eo, Wo = to, zo = ro, qo = no, Go = io, Qt = Function, je = function(t) {
894
+ var y, Mo = Kt, jo = Jn, Bo = Yn, Lo = Xn, Uo = Zn, Q = eo, K = J, Wo = to, zo = ro, qo = no, Go = oo, Ho = ao, Ko = io, Vo = lo, Qo = uo, Zt = Function, Le = function(t) {
887
895
  try {
888
- return Qt('"use strict"; return (' + t + ").constructor;")();
896
+ return Zt('"use strict"; return (' + t + ").constructor;")();
889
897
  } catch {
890
898
  }
891
- }, oe = qt, Ho = co, Be = function() {
899
+ }, oe = Vt, Jo = po, Ue = function() {
892
900
  throw new K();
893
- }, Ko = oe ? function() {
901
+ }, Yo = oe ? function() {
894
902
  try {
895
- return arguments.callee, Be;
903
+ return arguments.callee, Ue;
896
904
  } catch {
897
905
  try {
898
906
  return oe(arguments, "callee").get;
899
907
  } catch {
900
- return Be;
908
+ return Ue;
901
909
  }
902
910
  }
903
- }() : Be, q = uo()(), _ = ko(), Vo = Ht(), Qo = Gt(), Jt = Kt, ae = et, H = {}, Jo = typeof Uint8Array > "u" || !_ ? y : _(Uint8Array), B = {
911
+ }() : Ue, q = vo()(), _ = To(), Xo = Jt(), Zo = Qt(), er = Yt(), ae = rt(), H = {}, ea = typeof Uint8Array > "u" || !_ ? y : _(Uint8Array), B = {
904
912
  __proto__: null,
905
913
  "%AggregateError%": typeof AggregateError > "u" ? y : AggregateError,
906
914
  "%Array%": Array,
@@ -922,15 +930,15 @@ var y, To = zt, No = Hn, Co = Kn, Fo = Vn, Mo = Qn, Q = Jn, K = J, jo = Yn, Bo =
922
930
  "%decodeURIComponent%": decodeURIComponent,
923
931
  "%encodeURI%": encodeURI,
924
932
  "%encodeURIComponent%": encodeURIComponent,
925
- "%Error%": No,
933
+ "%Error%": jo,
926
934
  "%eval%": eval,
927
935
  // eslint-disable-line no-eval
928
- "%EvalError%": Co,
936
+ "%EvalError%": Bo,
929
937
  "%Float16Array%": typeof Float16Array > "u" ? y : Float16Array,
930
938
  "%Float32Array%": typeof Float32Array > "u" ? y : Float32Array,
931
939
  "%Float64Array%": typeof Float64Array > "u" ? y : Float64Array,
932
940
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? y : FinalizationRegistry,
933
- "%Function%": Qt,
941
+ "%Function%": Zt,
934
942
  "%GeneratorFunction%": H,
935
943
  "%Int8Array%": typeof Int8Array > "u" ? y : Int8Array,
936
944
  "%Int16Array%": typeof Int16Array > "u" ? y : Int16Array,
@@ -943,14 +951,14 @@ var y, To = zt, No = Hn, Co = Kn, Fo = Vn, Mo = Qn, Q = Jn, K = J, jo = Yn, Bo =
943
951
  "%MapIteratorPrototype%": typeof Map > "u" || !q || !_ ? y : _((/* @__PURE__ */ new Map())[Symbol.iterator]()),
944
952
  "%Math%": Math,
945
953
  "%Number%": Number,
946
- "%Object%": To,
954
+ "%Object%": Mo,
947
955
  "%Object.getOwnPropertyDescriptor%": oe,
948
956
  "%parseFloat%": parseFloat,
949
957
  "%parseInt%": parseInt,
950
958
  "%Promise%": typeof Promise > "u" ? y : Promise,
951
959
  "%Proxy%": typeof Proxy > "u" ? y : Proxy,
952
- "%RangeError%": Fo,
953
- "%ReferenceError%": Mo,
960
+ "%RangeError%": Lo,
961
+ "%ReferenceError%": Uo,
954
962
  "%Reflect%": typeof Reflect > "u" ? y : Reflect,
955
963
  "%RegExp%": RegExp,
956
964
  "%Set%": typeof Set > "u" ? y : Set,
@@ -960,45 +968,45 @@ var y, To = zt, No = Hn, Co = Kn, Fo = Vn, Mo = Qn, Q = Jn, K = J, jo = Yn, Bo =
960
968
  "%StringIteratorPrototype%": q && _ ? _(""[Symbol.iterator]()) : y,
961
969
  "%Symbol%": q ? Symbol : y,
962
970
  "%SyntaxError%": Q,
963
- "%ThrowTypeError%": Ko,
964
- "%TypedArray%": Jo,
971
+ "%ThrowTypeError%": Yo,
972
+ "%TypedArray%": ea,
965
973
  "%TypeError%": K,
966
974
  "%Uint8Array%": typeof Uint8Array > "u" ? y : Uint8Array,
967
975
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? y : Uint8ClampedArray,
968
976
  "%Uint16Array%": typeof Uint16Array > "u" ? y : Uint16Array,
969
977
  "%Uint32Array%": typeof Uint32Array > "u" ? y : Uint32Array,
970
- "%URIError%": jo,
978
+ "%URIError%": Wo,
971
979
  "%WeakMap%": typeof WeakMap > "u" ? y : WeakMap,
972
980
  "%WeakRef%": typeof WeakRef > "u" ? y : WeakRef,
973
981
  "%WeakSet%": typeof WeakSet > "u" ? y : WeakSet,
974
982
  "%Function.prototype.call%": ae,
975
- "%Function.prototype.apply%": Jt,
976
- "%Object.defineProperty%": Ho,
977
- "%Object.getPrototypeOf%": Vo,
978
- "%Math.abs%": Bo,
979
- "%Math.floor%": Lo,
980
- "%Math.max%": Uo,
981
- "%Math.min%": Wo,
982
- "%Math.pow%": zo,
983
- "%Math.round%": qo,
984
- "%Math.sign%": Go,
985
- "%Reflect.getPrototypeOf%": Qo
983
+ "%Function.prototype.apply%": er,
984
+ "%Object.defineProperty%": Jo,
985
+ "%Object.getPrototypeOf%": Xo,
986
+ "%Math.abs%": zo,
987
+ "%Math.floor%": qo,
988
+ "%Math.max%": Go,
989
+ "%Math.min%": Ho,
990
+ "%Math.pow%": Ko,
991
+ "%Math.round%": Vo,
992
+ "%Math.sign%": Qo,
993
+ "%Reflect.getPrototypeOf%": Zo
986
994
  };
987
995
  if (_)
988
996
  try {
989
997
  null.error;
990
998
  } catch (t) {
991
- var Yo = _(_(t));
992
- B["%Error.prototype%"] = Yo;
999
+ var ta = _(_(t));
1000
+ B["%Error.prototype%"] = ta;
993
1001
  }
994
- var Xo = function t(e) {
1002
+ var ra = function t(e) {
995
1003
  var r;
996
1004
  if (e === "%AsyncFunction%")
997
- r = je("async function () {}");
1005
+ r = Le("async function () {}");
998
1006
  else if (e === "%GeneratorFunction%")
999
- r = je("function* () {}");
1007
+ r = Le("function* () {}");
1000
1008
  else if (e === "%AsyncGeneratorFunction%")
1001
- r = je("async function* () {}");
1009
+ r = Le("async function* () {}");
1002
1010
  else if (e === "%AsyncGenerator%") {
1003
1011
  var n = t("%AsyncGeneratorFunction%");
1004
1012
  n && (r = n.prototype);
@@ -1007,7 +1015,7 @@ var Xo = function t(e) {
1007
1015
  o && _ && (r = _(o.prototype));
1008
1016
  }
1009
1017
  return B[e] = r, r;
1010
- }, It = {
1018
+ }, Ft = {
1011
1019
  __proto__: null,
1012
1020
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
1013
1021
  "%ArrayPrototype%": ["Array", "prototype"],
@@ -1060,21 +1068,21 @@ var Xo = function t(e) {
1060
1068
  "%URIErrorPrototype%": ["URIError", "prototype"],
1061
1069
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
1062
1070
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
1063
- }, ie = we, he = Do(), Zo = ie.call(ae, Array.prototype.concat), ea = ie.call(Jt, Array.prototype.splice), Rt = ie.call(ae, String.prototype.replace), _e = ie.call(ae, String.prototype.slice), ta = ie.call(ae, RegExp.prototype.exec), ra = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, na = /\\(\\)?/g, oa = function(e) {
1071
+ }, ie = we, he = No(), na = ie.call(ae, Array.prototype.concat), oa = ie.call(er, Array.prototype.splice), Ct = ie.call(ae, String.prototype.replace), _e = ie.call(ae, String.prototype.slice), aa = ie.call(ae, RegExp.prototype.exec), ia = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, la = /\\(\\)?/g, ca = function(e) {
1064
1072
  var r = _e(e, 0, 1), n = _e(e, -1);
1065
1073
  if (r === "%" && n !== "%")
1066
1074
  throw new Q("invalid intrinsic syntax, expected closing `%`");
1067
1075
  if (n === "%" && r !== "%")
1068
1076
  throw new Q("invalid intrinsic syntax, expected opening `%`");
1069
1077
  var o = [];
1070
- return Rt(e, ra, function(a, i, c, l) {
1071
- o[o.length] = c ? Rt(l, na, "$1") : i || a;
1078
+ return Ct(e, ia, function(a, i, c, l) {
1079
+ o[o.length] = c ? Ct(l, la, "$1") : i || a;
1072
1080
  }), o;
1073
- }, aa = function(e, r) {
1081
+ }, fa = function(e, r) {
1074
1082
  var n = e, o;
1075
- if (he(It, n) && (o = It[n], n = "%" + o[0] + "%"), he(B, n)) {
1083
+ if (he(Ft, n) && (o = Ft[n], n = "%" + o[0] + "%"), he(B, n)) {
1076
1084
  var a = B[n];
1077
- if (a === H && (a = Xo(n)), typeof a > "u" && !r)
1085
+ if (a === H && (a = ra(n)), typeof a > "u" && !r)
1078
1086
  throw new K("intrinsic " + e + " exists, but is not available. Please file an issue!");
1079
1087
  return {
1080
1088
  alias: o,
@@ -1083,15 +1091,15 @@ var Xo = function t(e) {
1083
1091
  };
1084
1092
  }
1085
1093
  throw new Q("intrinsic " + e + " does not exist!");
1086
- }, tt = function(e, r) {
1094
+ }, nt = function(e, r) {
1087
1095
  if (typeof e != "string" || e.length === 0)
1088
1096
  throw new K("intrinsic name must be a non-empty string");
1089
1097
  if (arguments.length > 1 && typeof r != "boolean")
1090
1098
  throw new K('"allowMissing" argument must be a boolean');
1091
- if (ta(/^%?[^%]*%?$/, e) === null)
1099
+ if (aa(/^%?[^%]*%?$/, e) === null)
1092
1100
  throw new Q("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
1093
- var n = oa(e), o = n.length > 0 ? n[0] : "", a = aa("%" + o + "%", r), i = a.name, c = a.value, l = !1, s = a.alias;
1094
- s && (o = s[0], ea(n, Zo([0, 1], s)));
1101
+ var n = ca(e), o = n.length > 0 ? n[0] : "", a = fa("%" + o + "%", r), i = a.name, c = a.value, l = !1, s = a.alias;
1102
+ s && (o = s[0], oa(n, na([0, 1], s)));
1095
1103
  for (var f = 1, p = !0; f < n.length; f += 1) {
1096
1104
  var u = n[f], v = _e(u, 0, 1), d = _e(u, -1);
1097
1105
  if ((v === '"' || v === "'" || v === "`" || d === '"' || d === "'" || d === "`") && v !== d)
@@ -1113,74 +1121,74 @@ var Xo = function t(e) {
1113
1121
  }
1114
1122
  }
1115
1123
  return c;
1116
- }, Yt = tt, Xt = Vt, ia = Xt([Yt("%String.prototype.indexOf%")]), Zt = function(e, r) {
1124
+ }, tr = nt, rr = Xt, ua = rr([tr("%String.prototype.indexOf%")]), nr = function(e, r) {
1117
1125
  var n = (
1118
1126
  /** @type {(this: unknown, ...args: unknown[]) => unknown} */
1119
- Yt(e, !!r)
1127
+ tr(e, !!r)
1120
1128
  );
1121
- return typeof n == "function" && ia(e, ".prototype.") > -1 ? Xt(
1129
+ return typeof n == "function" && ua(e, ".prototype.") > -1 ? rr(
1122
1130
  /** @type {const} */
1123
1131
  [n]
1124
1132
  ) : n;
1125
- }, la = tt, le = Zt, ca = be, fa = J, kt = la("%Map%", !0), ua = le("Map.prototype.get", !0), sa = le("Map.prototype.set", !0), pa = le("Map.prototype.has", !0), ya = le("Map.prototype.delete", !0), da = le("Map.prototype.size", !0), er = !!kt && /** @type {Exclude<import('.'), false>} */
1133
+ }, sa = nt, le = nr, pa = be, ya = J, Tt = sa("%Map%", !0), da = le("Map.prototype.get", !0), va = le("Map.prototype.set", !0), ma = le("Map.prototype.has", !0), ga = le("Map.prototype.delete", !0), ha = le("Map.prototype.size", !0), or = !!Tt && /** @type {Exclude<import('.'), false>} */
1126
1134
  function() {
1127
1135
  var e, r = {
1128
1136
  assert: function(n) {
1129
1137
  if (!r.has(n))
1130
- throw new fa("Side channel does not contain " + ca(n));
1138
+ throw new ya("Side channel does not contain " + pa(n));
1131
1139
  },
1132
1140
  delete: function(n) {
1133
1141
  if (e) {
1134
- var o = ya(e, n);
1135
- return da(e) === 0 && (e = void 0), o;
1142
+ var o = ga(e, n);
1143
+ return ha(e) === 0 && (e = void 0), o;
1136
1144
  }
1137
1145
  return !1;
1138
1146
  },
1139
1147
  get: function(n) {
1140
1148
  if (e)
1141
- return ua(e, n);
1149
+ return da(e, n);
1142
1150
  },
1143
1151
  has: function(n) {
1144
- return e ? pa(e, n) : !1;
1152
+ return e ? ma(e, n) : !1;
1145
1153
  },
1146
1154
  set: function(n, o) {
1147
- e || (e = new kt()), sa(e, n, o);
1155
+ e || (e = new Tt()), va(e, n, o);
1148
1156
  }
1149
1157
  };
1150
1158
  return r;
1151
- }, va = tt, xe = Zt, ma = be, pe = er, ga = J, G = va("%WeakMap%", !0), ha = xe("WeakMap.prototype.get", !0), _a = xe("WeakMap.prototype.set", !0), ba = xe("WeakMap.prototype.has", !0), Sa = xe("WeakMap.prototype.delete", !0), wa = G ? (
1159
+ }, _a = nt, xe = nr, ba = be, pe = or, Sa = J, G = _a("%WeakMap%", !0), wa = xe("WeakMap.prototype.get", !0), xa = xe("WeakMap.prototype.set", !0), Aa = xe("WeakMap.prototype.has", !0), Oa = xe("WeakMap.prototype.delete", !0), Ea = G ? (
1152
1160
  /** @type {Exclude<import('.'), false>} */
1153
1161
  function() {
1154
1162
  var e, r, n = {
1155
1163
  assert: function(o) {
1156
1164
  if (!n.has(o))
1157
- throw new ga("Side channel does not contain " + ma(o));
1165
+ throw new Sa("Side channel does not contain " + ba(o));
1158
1166
  },
1159
1167
  delete: function(o) {
1160
1168
  if (G && o && (typeof o == "object" || typeof o == "function")) {
1161
1169
  if (e)
1162
- return Sa(e, o);
1170
+ return Oa(e, o);
1163
1171
  } else if (pe && r)
1164
1172
  return r.delete(o);
1165
1173
  return !1;
1166
1174
  },
1167
1175
  get: function(o) {
1168
- return G && o && (typeof o == "object" || typeof o == "function") && e ? ha(e, o) : r && r.get(o);
1176
+ return G && o && (typeof o == "object" || typeof o == "function") && e ? wa(e, o) : r && r.get(o);
1169
1177
  },
1170
1178
  has: function(o) {
1171
- return G && o && (typeof o == "object" || typeof o == "function") && e ? ba(e, o) : !!r && r.has(o);
1179
+ return G && o && (typeof o == "object" || typeof o == "function") && e ? Aa(e, o) : !!r && r.has(o);
1172
1180
  },
1173
1181
  set: function(o, a) {
1174
- G && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new G()), _a(e, o, a)) : pe && (r || (r = pe()), r.set(o, a));
1182
+ G && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new G()), xa(e, o, a)) : pe && (r || (r = pe()), r.set(o, a));
1175
1183
  }
1176
1184
  };
1177
1185
  return n;
1178
1186
  }
1179
- ) : pe, xa = J, Oa = be, Aa = Gn, Ea = er, Pa = wa, $a = Pa || Ea || Aa, Ia = function() {
1187
+ ) : pe, Pa = J, $a = be, Ia = Qn, Ra = or, ka = Ea, Da = ka || Ra || Ia, Fa = function() {
1180
1188
  var e, r = {
1181
1189
  assert: function(n) {
1182
1190
  if (!r.has(n))
1183
- throw new xa("Side channel does not contain " + Oa(n));
1191
+ throw new Pa("Side channel does not contain " + $a(n));
1184
1192
  },
1185
1193
  delete: function(n) {
1186
1194
  return !!e && e.delete(n);
@@ -1192,30 +1200,30 @@ function() {
1192
1200
  return !!e && e.has(n);
1193
1201
  },
1194
1202
  set: function(n, o) {
1195
- e || (e = $a()), e.set(n, o);
1203
+ e || (e = Da()), e.set(n, o);
1196
1204
  }
1197
1205
  };
1198
1206
  return r;
1199
- }, Ra = String.prototype.replace, ka = /%20/g, Le = {
1207
+ }, Ca = String.prototype.replace, Ta = /%20/g, We = {
1200
1208
  RFC1738: "RFC1738",
1201
1209
  RFC3986: "RFC3986"
1202
- }, rt = {
1203
- default: Le.RFC3986,
1210
+ }, ot = {
1211
+ default: We.RFC3986,
1204
1212
  formatters: {
1205
1213
  RFC1738: function(t) {
1206
- return Ra.call(t, ka, "+");
1214
+ return Ca.call(t, Ta, "+");
1207
1215
  },
1208
1216
  RFC3986: function(t) {
1209
1217
  return String(t);
1210
1218
  }
1211
1219
  },
1212
- RFC1738: Le.RFC1738,
1213
- RFC3986: Le.RFC3986
1214
- }, Da = rt, Ue = Object.prototype.hasOwnProperty, j = Array.isArray, x = function() {
1220
+ RFC1738: We.RFC1738,
1221
+ RFC3986: We.RFC3986
1222
+ }, Na = ot, ze = Object.prototype.hasOwnProperty, j = Array.isArray, x = function() {
1215
1223
  for (var t = [], e = 0; e < 256; ++e)
1216
1224
  t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
1217
1225
  return t;
1218
- }(), Ta = function(e) {
1226
+ }(), Ma = function(e) {
1219
1227
  for (; e.length > 1; ) {
1220
1228
  var r = e.pop(), n = r.obj[r.prop];
1221
1229
  if (j(n)) {
@@ -1224,18 +1232,18 @@ function() {
1224
1232
  r.obj[r.prop] = o;
1225
1233
  }
1226
1234
  }
1227
- }, tr = function(e, r) {
1235
+ }, ar = function(e, r) {
1228
1236
  for (var n = r && r.plainObjects ? { __proto__: null } : {}, o = 0; o < e.length; ++o)
1229
1237
  typeof e[o] < "u" && (n[o] = e[o]);
1230
1238
  return n;
1231
- }, Na = function t(e, r, n) {
1239
+ }, ja = function t(e, r, n) {
1232
1240
  if (!r)
1233
1241
  return e;
1234
1242
  if (typeof r != "object" && typeof r != "function") {
1235
1243
  if (j(e))
1236
1244
  e.push(r);
1237
1245
  else if (e && typeof e == "object")
1238
- (n && (n.plainObjects || n.allowPrototypes) || !Ue.call(Object.prototype, r)) && (e[r] = !0);
1246
+ (n && (n.plainObjects || n.allowPrototypes) || !ze.call(Object.prototype, r)) && (e[r] = !0);
1239
1247
  else
1240
1248
  return [e, r];
1241
1249
  return e;
@@ -1243,21 +1251,21 @@ function() {
1243
1251
  if (!e || typeof e != "object")
1244
1252
  return [e].concat(r);
1245
1253
  var o = e;
1246
- return j(e) && !j(r) && (o = tr(e, n)), j(e) && j(r) ? (r.forEach(function(a, i) {
1247
- if (Ue.call(e, i)) {
1254
+ return j(e) && !j(r) && (o = ar(e, n)), j(e) && j(r) ? (r.forEach(function(a, i) {
1255
+ if (ze.call(e, i)) {
1248
1256
  var c = e[i];
1249
1257
  c && typeof c == "object" && a && typeof a == "object" ? e[i] = t(c, a, n) : e.push(a);
1250
1258
  } else
1251
1259
  e[i] = a;
1252
1260
  }), e) : Object.keys(r).reduce(function(a, i) {
1253
1261
  var c = r[i];
1254
- return Ue.call(a, i) ? a[i] = t(a[i], c, n) : a[i] = c, a;
1262
+ return ze.call(a, i) ? a[i] = t(a[i], c, n) : a[i] = c, a;
1255
1263
  }, o);
1256
- }, Ca = function(e, r) {
1264
+ }, Ba = function(e, r) {
1257
1265
  return Object.keys(r).reduce(function(n, o) {
1258
1266
  return n[o] = r[o], n;
1259
1267
  }, e);
1260
- }, Fa = function(t, e, r) {
1268
+ }, La = function(t, e, r) {
1261
1269
  var n = t.replace(/\+/g, " ");
1262
1270
  if (r === "iso-8859-1")
1263
1271
  return n.replace(/%[0-9a-f]{2}/gi, unescape);
@@ -1266,7 +1274,7 @@ function() {
1266
1274
  } catch {
1267
1275
  return n;
1268
1276
  }
1269
- }, We = 1024, Ma = function(e, r, n, o, a) {
1277
+ }, qe = 1024, Ua = function(e, r, n, o, a) {
1270
1278
  if (e.length === 0)
1271
1279
  return e;
1272
1280
  var i = e;
@@ -1274,10 +1282,10 @@ function() {
1274
1282
  return escape(i).replace(/%u[0-9a-f]{4}/gi, function(v) {
1275
1283
  return "%26%23" + parseInt(v.slice(2), 16) + "%3B";
1276
1284
  });
1277
- for (var c = "", l = 0; l < i.length; l += We) {
1278
- for (var s = i.length >= We ? i.slice(l, l + We) : i, f = [], p = 0; p < s.length; ++p) {
1285
+ for (var c = "", l = 0; l < i.length; l += qe) {
1286
+ for (var s = i.length >= qe ? i.slice(l, l + qe) : i, f = [], p = 0; p < s.length; ++p) {
1279
1287
  var u = s.charCodeAt(p);
1280
- if (u === 45 || u === 46 || u === 95 || u === 126 || u >= 48 && u <= 57 || u >= 65 && u <= 90 || u >= 97 && u <= 122 || a === Da.RFC1738 && (u === 40 || u === 41)) {
1288
+ if (u === 45 || u === 46 || u === 95 || u === 126 || u >= 48 && u <= 57 || u >= 65 && u <= 90 || u >= 97 && u <= 122 || a === Na.RFC1738 && (u === 40 || u === 41)) {
1281
1289
  f[f.length] = s.charAt(p);
1282
1290
  continue;
1283
1291
  }
@@ -1298,38 +1306,38 @@ function() {
1298
1306
  c += f.join("");
1299
1307
  }
1300
1308
  return c;
1301
- }, ja = function(e) {
1309
+ }, Wa = function(e) {
1302
1310
  for (var r = [{ obj: { o: e }, prop: "o" }], n = [], o = 0; o < r.length; ++o)
1303
1311
  for (var a = r[o], i = a.obj[a.prop], c = Object.keys(i), l = 0; l < c.length; ++l) {
1304
1312
  var s = c[l], f = i[s];
1305
1313
  typeof f == "object" && f !== null && n.indexOf(f) === -1 && (r.push({ obj: i, prop: s }), n.push(f));
1306
1314
  }
1307
- return Ta(r), e;
1308
- }, Ba = function(e) {
1315
+ return Ma(r), e;
1316
+ }, za = function(e) {
1309
1317
  return Object.prototype.toString.call(e) === "[object RegExp]";
1310
- }, La = function(e) {
1318
+ }, qa = function(e) {
1311
1319
  return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
1312
- }, Ua = function(e, r) {
1320
+ }, Ga = function(e, r) {
1313
1321
  return [].concat(e, r);
1314
- }, Wa = function(e, r) {
1322
+ }, Ha = function(e, r) {
1315
1323
  if (j(e)) {
1316
1324
  for (var n = [], o = 0; o < e.length; o += 1)
1317
1325
  n.push(r(e[o]));
1318
1326
  return n;
1319
1327
  }
1320
1328
  return r(e);
1321
- }, rr = {
1322
- arrayToObject: tr,
1323
- assign: Ca,
1324
- combine: Ua,
1325
- compact: ja,
1326
- decode: Fa,
1327
- encode: Ma,
1328
- isBuffer: La,
1329
- isRegExp: Ba,
1330
- maybeMap: Wa,
1331
- merge: Na
1332
- }, nr = Ia, ve = rr, ne = rt, za = Object.prototype.hasOwnProperty, or = {
1329
+ }, ir = {
1330
+ arrayToObject: ar,
1331
+ assign: Ba,
1332
+ combine: Ga,
1333
+ compact: Wa,
1334
+ decode: La,
1335
+ encode: Ua,
1336
+ isBuffer: qa,
1337
+ isRegExp: za,
1338
+ maybeMap: Ha,
1339
+ merge: ja
1340
+ }, lr = Fa, ve = ir, ne = ot, Ka = Object.prototype.hasOwnProperty, cr = {
1333
1341
  brackets: function(e) {
1334
1342
  return e + "[]";
1335
1343
  },
@@ -1340,9 +1348,9 @@ function() {
1340
1348
  repeat: function(e) {
1341
1349
  return e;
1342
1350
  }
1343
- }, O = Array.isArray, qa = Array.prototype.push, ar = function(t, e) {
1344
- qa.apply(t, O(e) ? e : [e]);
1345
- }, Ga = Date.prototype.toISOString, Dt = ne.default, h = {
1351
+ }, A = Array.isArray, Va = Array.prototype.push, fr = function(t, e) {
1352
+ Va.apply(t, A(e) ? e : [e]);
1353
+ }, Qa = Date.prototype.toISOString, Nt = ne.default, h = {
1346
1354
  addQueryPrefix: !1,
1347
1355
  allowDots: !1,
1348
1356
  allowEmptyArrays: !1,
@@ -1356,35 +1364,35 @@ function() {
1356
1364
  encoder: ve.encode,
1357
1365
  encodeValuesOnly: !1,
1358
1366
  filter: void 0,
1359
- format: Dt,
1360
- formatter: ne.formatters[Dt],
1367
+ format: Nt,
1368
+ formatter: ne.formatters[Nt],
1361
1369
  // deprecated
1362
1370
  indices: !1,
1363
1371
  serializeDate: function(e) {
1364
- return Ga.call(e);
1372
+ return Qa.call(e);
1365
1373
  },
1366
1374
  skipNulls: !1,
1367
1375
  strictNullHandling: !1
1368
- }, Ha = function(e) {
1376
+ }, Ja = function(e) {
1369
1377
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
1370
- }, ze = {}, Ka = function t(e, r, n, o, a, i, c, l, s, f, p, u, v, d, b, S, I, R) {
1371
- for (var m = e, k = R, F = 0, Y = !1; (k = k.get(ze)) !== void 0 && !Y; ) {
1378
+ }, Ge = {}, Ya = function t(e, r, n, o, a, i, c, l, s, f, p, u, v, d, b, S, I, R) {
1379
+ for (var m = e, k = R, N = 0, Y = !1; (k = k.get(Ge)) !== void 0 && !Y; ) {
1372
1380
  var W = k.get(e);
1373
- if (F += 1, typeof W < "u") {
1374
- if (W === F)
1381
+ if (N += 1, typeof W < "u") {
1382
+ if (W === N)
1375
1383
  throw new RangeError("Cyclic object value");
1376
1384
  Y = !0;
1377
1385
  }
1378
- typeof k.get(ze) > "u" && (F = 0);
1386
+ typeof k.get(Ge) > "u" && (N = 0);
1379
1387
  }
1380
- if (typeof f == "function" ? m = f(r, m) : m instanceof Date ? m = v(m) : n === "comma" && O(m) && (m = ve.maybeMap(m, function(Ee) {
1388
+ if (typeof f == "function" ? m = f(r, m) : m instanceof Date ? m = v(m) : n === "comma" && A(m) && (m = ve.maybeMap(m, function(Ee) {
1381
1389
  return Ee instanceof Date ? v(Ee) : Ee;
1382
1390
  })), m === null) {
1383
1391
  if (i)
1384
1392
  return s && !S ? s(r, h.encoder, I, "key", d) : r;
1385
1393
  m = "";
1386
1394
  }
1387
- if (Ha(m) || ve.isBuffer(m)) {
1395
+ if (Ja(m) || ve.isBuffer(m)) {
1388
1396
  if (s) {
1389
1397
  var ce = S ? r : s(r, h.encoder, I, "key", d);
1390
1398
  return [b(ce) + "=" + b(s(m, h.encoder, I, "value", d))];
@@ -1395,33 +1403,33 @@ function() {
1395
1403
  if (typeof m > "u")
1396
1404
  return M;
1397
1405
  var D;
1398
- if (n === "comma" && O(m))
1406
+ if (n === "comma" && A(m))
1399
1407
  S && s && (m = ve.maybeMap(m, s)), D = [{ value: m.length > 0 ? m.join(",") || null : void 0 }];
1400
- else if (O(f))
1408
+ else if (A(f))
1401
1409
  D = f;
1402
1410
  else {
1403
1411
  var fe = Object.keys(m);
1404
1412
  D = p ? fe.sort(p) : fe;
1405
1413
  }
1406
- var z = l ? String(r).replace(/\./g, "%2E") : String(r), w = o && O(m) && m.length === 1 ? z + "[]" : z;
1407
- if (a && O(m) && m.length === 0)
1414
+ var z = l ? String(r).replace(/\./g, "%2E") : String(r), w = o && A(m) && m.length === 1 ? z + "[]" : z;
1415
+ if (a && A(m) && m.length === 0)
1408
1416
  return w + "[]";
1409
- for (var T = 0; T < D.length; ++T) {
1410
- var E = D[T], X = typeof E == "object" && E && typeof E.value < "u" ? E.value : m[E];
1417
+ for (var F = 0; F < D.length; ++F) {
1418
+ var E = D[F], X = typeof E == "object" && E && typeof E.value < "u" ? E.value : m[E];
1411
1419
  if (!(c && X === null)) {
1412
- var Ae = u && l ? String(E).replace(/\./g, "%2E") : String(E), sr = O(m) ? typeof n == "function" ? n(w, Ae) : w : w + (u ? "." + Ae : "[" + Ae + "]");
1413
- R.set(e, F);
1414
- var ot = nr();
1415
- ot.set(ze, R), ar(M, t(
1420
+ var Oe = u && l ? String(E).replace(/\./g, "%2E") : String(E), vr = A(m) ? typeof n == "function" ? n(w, Oe) : w : w + (u ? "." + Oe : "[" + Oe + "]");
1421
+ R.set(e, N);
1422
+ var it = lr();
1423
+ it.set(Ge, R), fr(M, t(
1416
1424
  X,
1417
- sr,
1425
+ vr,
1418
1426
  n,
1419
1427
  o,
1420
1428
  a,
1421
1429
  i,
1422
1430
  c,
1423
1431
  l,
1424
- n === "comma" && S && O(m) ? null : s,
1432
+ n === "comma" && S && A(m) ? null : s,
1425
1433
  f,
1426
1434
  p,
1427
1435
  u,
@@ -1430,12 +1438,12 @@ function() {
1430
1438
  b,
1431
1439
  S,
1432
1440
  I,
1433
- ot
1441
+ it
1434
1442
  ));
1435
1443
  }
1436
1444
  }
1437
1445
  return M;
1438
- }, Va = function(e) {
1446
+ }, Xa = function(e) {
1439
1447
  if (!e)
1440
1448
  return h;
1441
1449
  if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
@@ -1449,14 +1457,14 @@ function() {
1449
1457
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1450
1458
  var n = ne.default;
1451
1459
  if (typeof e.format < "u") {
1452
- if (!za.call(ne.formatters, e.format))
1460
+ if (!Ka.call(ne.formatters, e.format))
1453
1461
  throw new TypeError("Unknown format option provided.");
1454
1462
  n = e.format;
1455
1463
  }
1456
1464
  var o = ne.formatters[n], a = h.filter;
1457
- (typeof e.filter == "function" || O(e.filter)) && (a = e.filter);
1465
+ (typeof e.filter == "function" || A(e.filter)) && (a = e.filter);
1458
1466
  var i;
1459
- if (e.arrayFormat in or ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = h.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
1467
+ if (e.arrayFormat in cr ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = h.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
1460
1468
  throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
1461
1469
  var c = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : h.allowDots : !!e.allowDots;
1462
1470
  return {
@@ -1480,17 +1488,17 @@ function() {
1480
1488
  sort: typeof e.sort == "function" ? e.sort : null,
1481
1489
  strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : h.strictNullHandling
1482
1490
  };
1483
- }, Qa = function(t, e) {
1484
- var r = t, n = Va(e), o, a;
1485
- typeof n.filter == "function" ? (a = n.filter, r = a("", r)) : O(n.filter) && (a = n.filter, o = a);
1491
+ }, Za = function(t, e) {
1492
+ var r = t, n = Xa(e), o, a;
1493
+ typeof n.filter == "function" ? (a = n.filter, r = a("", r)) : A(n.filter) && (a = n.filter, o = a);
1486
1494
  var i = [];
1487
1495
  if (typeof r != "object" || r === null)
1488
1496
  return "";
1489
- var c = or[n.arrayFormat], l = c === "comma" && n.commaRoundTrip;
1497
+ var c = cr[n.arrayFormat], l = c === "comma" && n.commaRoundTrip;
1490
1498
  o || (o = Object.keys(r)), n.sort && o.sort(n.sort);
1491
- for (var s = nr(), f = 0; f < o.length; ++f) {
1499
+ for (var s = lr(), f = 0; f < o.length; ++f) {
1492
1500
  var p = o[f], u = r[p];
1493
- n.skipNulls && u === null || ar(i, Ka(
1501
+ n.skipNulls && u === null || fr(i, Ya(
1494
1502
  u,
1495
1503
  p,
1496
1504
  c,
@@ -1513,7 +1521,7 @@ function() {
1513
1521
  }
1514
1522
  var v = i.join(n.delimiter), d = n.addQueryPrefix === !0 ? "?" : "";
1515
1523
  return n.charsetSentinel && (n.charset === "iso-8859-1" ? d += "utf8=%26%2310003%3B&" : d += "utf8=%E2%9C%93&"), v.length > 0 ? d + v : "";
1516
- }, L = rr, Je = Object.prototype.hasOwnProperty, Tt = Array.isArray, g = {
1524
+ }, L = ir, Xe = Object.prototype.hasOwnProperty, Mt = Array.isArray, g = {
1517
1525
  allowDots: !1,
1518
1526
  allowEmptyArrays: !1,
1519
1527
  allowPrototypes: !1,
@@ -1535,17 +1543,17 @@ function() {
1535
1543
  strictDepth: !1,
1536
1544
  strictNullHandling: !1,
1537
1545
  throwOnLimitExceeded: !1
1538
- }, Ja = function(t) {
1546
+ }, ei = function(t) {
1539
1547
  return t.replace(/&#(\d+);/g, function(e, r) {
1540
1548
  return String.fromCharCode(parseInt(r, 10));
1541
1549
  });
1542
- }, ir = function(t, e, r) {
1550
+ }, ur = function(t, e, r) {
1543
1551
  if (t && typeof t == "string" && e.comma && t.indexOf(",") > -1)
1544
1552
  return t.split(",");
1545
1553
  if (e.throwOnLimitExceeded && r >= e.arrayLimit)
1546
1554
  throw new RangeError("Array limit exceeded. Only " + e.arrayLimit + " element" + (e.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
1547
1555
  return t;
1548
- }, Ya = "utf8=%26%2310003%3B", Xa = "utf8=%E2%9C%93", Za = function(e, r) {
1556
+ }, ti = "utf8=%26%2310003%3B", ri = "utf8=%E2%9C%93", ni = function(e, r) {
1549
1557
  var n = { __proto__: null }, o = r.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
1550
1558
  o = o.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
1551
1559
  var a = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, i = o.split(
@@ -1557,31 +1565,31 @@ function() {
1557
1565
  var c = -1, l, s = r.charset;
1558
1566
  if (r.charsetSentinel)
1559
1567
  for (l = 0; l < i.length; ++l)
1560
- i[l].indexOf("utf8=") === 0 && (i[l] === Xa ? s = "utf-8" : i[l] === Ya && (s = "iso-8859-1"), c = l, l = i.length);
1568
+ i[l].indexOf("utf8=") === 0 && (i[l] === ri ? s = "utf-8" : i[l] === ti && (s = "iso-8859-1"), c = l, l = i.length);
1561
1569
  for (l = 0; l < i.length; ++l)
1562
1570
  if (l !== c) {
1563
1571
  var f = i[l], p = f.indexOf("]="), u = p === -1 ? f.indexOf("=") : p + 1, v, d;
1564
1572
  u === -1 ? (v = r.decoder(f, g.decoder, s, "key"), d = r.strictNullHandling ? null : "") : (v = r.decoder(f.slice(0, u), g.decoder, s, "key"), d = L.maybeMap(
1565
- ir(
1573
+ ur(
1566
1574
  f.slice(u + 1),
1567
1575
  r,
1568
- Tt(n[v]) ? n[v].length : 0
1576
+ Mt(n[v]) ? n[v].length : 0
1569
1577
  ),
1570
1578
  function(S) {
1571
1579
  return r.decoder(S, g.decoder, s, "value");
1572
1580
  }
1573
- )), d && r.interpretNumericEntities && s === "iso-8859-1" && (d = Ja(String(d))), f.indexOf("[]=") > -1 && (d = Tt(d) ? [d] : d);
1574
- var b = Je.call(n, v);
1581
+ )), d && r.interpretNumericEntities && s === "iso-8859-1" && (d = ei(String(d))), f.indexOf("[]=") > -1 && (d = Mt(d) ? [d] : d);
1582
+ var b = Xe.call(n, v);
1575
1583
  b && r.duplicates === "combine" ? n[v] = L.combine(n[v], d) : (!b || r.duplicates === "last") && (n[v] = d);
1576
1584
  }
1577
1585
  return n;
1578
- }, ei = function(t, e, r, n) {
1586
+ }, oi = function(t, e, r, n) {
1579
1587
  var o = 0;
1580
1588
  if (t.length > 0 && t[t.length - 1] === "[]") {
1581
1589
  var a = t.slice(0, -1).join("");
1582
1590
  o = Array.isArray(e) && e[a] ? e[a].length : 0;
1583
1591
  }
1584
- for (var i = n ? e : ir(e, r, o), c = t.length - 1; c >= 0; --c) {
1592
+ for (var i = n ? e : ur(e, r, o), c = t.length - 1; c >= 0; --c) {
1585
1593
  var l, s = t[c];
1586
1594
  if (s === "[]" && r.parseArrays)
1587
1595
  l = r.allowEmptyArrays && (i === "" || r.strictNullHandling && i === null) ? [] : L.combine([], i);
@@ -1593,16 +1601,16 @@ function() {
1593
1601
  i = l;
1594
1602
  }
1595
1603
  return i;
1596
- }, ti = function(e, r, n, o) {
1604
+ }, ai = function(e, r, n, o) {
1597
1605
  if (e) {
1598
1606
  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 = [];
1599
1607
  if (s) {
1600
- if (!n.plainObjects && Je.call(Object.prototype, s) && !n.allowPrototypes)
1608
+ if (!n.plainObjects && Xe.call(Object.prototype, s) && !n.allowPrototypes)
1601
1609
  return;
1602
1610
  f.push(s);
1603
1611
  }
1604
1612
  for (var p = 0; n.depth > 0 && (l = c.exec(a)) !== null && p < n.depth; ) {
1605
- if (p += 1, !n.plainObjects && Je.call(Object.prototype, l[1].slice(1, -1)) && !n.allowPrototypes)
1613
+ if (p += 1, !n.plainObjects && Xe.call(Object.prototype, l[1].slice(1, -1)) && !n.allowPrototypes)
1606
1614
  return;
1607
1615
  f.push(l[1]);
1608
1616
  }
@@ -1611,9 +1619,9 @@ function() {
1611
1619
  throw new RangeError("Input depth exceeded depth option of " + n.depth + " and strictDepth is true");
1612
1620
  f.push("[" + a.slice(l.index) + "]");
1613
1621
  }
1614
- return ei(f, r, n, o);
1622
+ return oi(f, r, n, o);
1615
1623
  }
1616
- }, ri = function(e) {
1624
+ }, ii = function(e) {
1617
1625
  if (!e)
1618
1626
  return g;
1619
1627
  if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
@@ -1654,24 +1662,24 @@ function() {
1654
1662
  strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : g.strictNullHandling,
1655
1663
  throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" ? e.throwOnLimitExceeded : !1
1656
1664
  };
1657
- }, ni = function(t, e) {
1658
- var r = ri(e);
1665
+ }, li = function(t, e) {
1666
+ var r = ii(e);
1659
1667
  if (t === "" || t === null || typeof t > "u")
1660
1668
  return r.plainObjects ? { __proto__: null } : {};
1661
- for (var n = typeof t == "string" ? Za(t, r) : t, o = r.plainObjects ? { __proto__: null } : {}, a = Object.keys(n), i = 0; i < a.length; ++i) {
1662
- var c = a[i], l = ti(c, n[c], r, typeof t == "string");
1669
+ for (var n = typeof t == "string" ? ni(t, r) : t, o = r.plainObjects ? { __proto__: null } : {}, a = Object.keys(n), i = 0; i < a.length; ++i) {
1670
+ var c = a[i], l = ai(c, n[c], r, typeof t == "string");
1663
1671
  o = L.merge(o, l, r);
1664
1672
  }
1665
1673
  return r.allowSparse === !0 ? o : L.compact(o);
1666
- }, oi = Qa, ai = ni, ii = rt, li = {
1667
- formats: ii,
1668
- parse: ai,
1669
- stringify: oi
1674
+ }, ci = Za, fi = li, ui = ot, si = {
1675
+ formats: ui,
1676
+ parse: fi,
1677
+ stringify: ci
1670
1678
  };
1671
- const ci = /* @__PURE__ */ Fr(li);
1672
- async function Oe(t, e = {}, r) {
1679
+ const pi = /* @__PURE__ */ Lr(si);
1680
+ async function Ae(t, e = {}, r) {
1673
1681
  const { cms: n = "cms" } = e;
1674
- return fetch(`${t.href}?${ci.stringify(e)}`, {
1682
+ return fetch(`${t.href}?${pi.stringify(e)}`, {
1675
1683
  method: "GET",
1676
1684
  cache: r ? "no-store" : "default",
1677
1685
  headers: {
@@ -1682,18 +1690,18 @@ async function Oe(t, e = {}, r) {
1682
1690
  }
1683
1691
  });
1684
1692
  }
1685
- function nt(t, e) {
1693
+ function at(t, e) {
1686
1694
  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(
1687
1695
  new URL(`api/${t}`, process.env.NEXT_PUBLIC_API_URL)
1688
1696
  );
1689
1697
  }
1690
- function lr(t) {
1698
+ function sr(t) {
1691
1699
  return Array.isArray(t) && t.length > 0 ? t[0] : Array.isArray(t) ? null : t;
1692
1700
  }
1693
- async function cr(t, e = [], r = {}) {
1701
+ async function pr(t, e = [], r = {}) {
1694
1702
  var n;
1695
1703
  if ((r == null ? void 0 : r.contentType) === t) {
1696
- 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(nt(`${t}${i}`, r)), l = await Oe(c, r, o);
1704
+ 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(at(`${t}${i}`, r)), l = await Ae(c, r, o);
1697
1705
  if (!l.ok)
1698
1706
  return console.error(`[Error fetching preview data]: ${t} - status: ${l.statusText}`), [];
1699
1707
  const s = await l.json(), f = e.findIndex((p) => p.documentId === s.id);
@@ -1701,15 +1709,15 @@ async function cr(t, e = [], r = {}) {
1701
1709
  }
1702
1710
  return e;
1703
1711
  }
1704
- const xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1712
+ const Pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1705
1713
  __proto__: null,
1706
- createUrl: nt,
1707
- fetchCMS: Oe,
1708
- mergePreviewDocument: cr,
1709
- spreadStrapiData: lr
1714
+ createUrl: at,
1715
+ fetchCMS: Ae,
1716
+ mergePreviewDocument: pr,
1717
+ spreadStrapiData: sr
1710
1718
  }, Symbol.toStringTag, { value: "Module" }));
1711
- async function fr(t, e = {}, r) {
1712
- const n = !!(e != null && e.previewMode), o = await Oe(t, e, n);
1719
+ async function yr(t, e = {}, r) {
1720
+ const n = !!(e != null && e.previewMode), o = await Ae(t, e, n);
1713
1721
  if (!o.ok)
1714
1722
  return console.log(
1715
1723
  `Failed to fetch Strapi (url=${String(t)}, status=${o.status})`
@@ -1717,15 +1725,15 @@ async function fr(t, e = {}, r) {
1717
1725
  const { data: a } = await o.json();
1718
1726
  return a ? {
1719
1727
  status: 200,
1720
- data: r ? lr(a) : a
1728
+ data: r ? sr(a) : a
1721
1729
  } : { status: 404, data: [], error: "No data found" };
1722
1730
  }
1723
- async function ur(t, e, r = {}) {
1731
+ async function dr(t, e, r = {}) {
1724
1732
  const n = (r == null ? void 0 : r.previewId) ?? "", o = (r == null ? void 0 : r.previewMode) === "true", a = { ...r, versionId: n }, i = [];
1725
1733
  let c = 1, l = 0, s = !0;
1726
1734
  try {
1727
1735
  do {
1728
- const f = await Oe(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));
1736
+ const f = await Ae(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));
1729
1737
  c === 1 && (l = f.totalItems), Array.isArray(f == null ? void 0 : f.data) && i.push(...f.data), s = !!(f != null && f.hasNextPage), c++;
1730
1738
  } while (s && i.length < l);
1731
1739
  if (o && i.length > 0) {
@@ -1733,7 +1741,7 @@ async function ur(t, e, r = {}) {
1733
1741
  throw new Error(
1734
1742
  "contentType and previewId are required for preview mode in vtexCMSData"
1735
1743
  );
1736
- const f = await cr(
1744
+ const f = await pr(
1737
1745
  t,
1738
1746
  i,
1739
1747
  a
@@ -1755,12 +1763,12 @@ async function ur(t, e, r = {}) {
1755
1763
  };
1756
1764
  }
1757
1765
  }
1758
- const Oi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1766
+ const $i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1759
1767
  __proto__: null,
1760
- strapiCMSData: fr,
1761
- vtexCMSData: ur
1768
+ strapiCMSData: yr,
1769
+ vtexCMSData: dr
1762
1770
  }, Symbol.toStringTag, { value: "Module" }));
1763
- async function fi({
1771
+ async function yi({
1764
1772
  contentType: t,
1765
1773
  documentId: e,
1766
1774
  versionId: r,
@@ -1773,50 +1781,50 @@ async function fi({
1773
1781
  { cache: "no-cache" }
1774
1782
  );
1775
1783
  }
1776
- async function ui(t, e = {}, r) {
1784
+ async function di(t, e = {}, r) {
1777
1785
  const { cms: n = "vtex" } = e ?? {};
1778
1786
  try {
1779
- const o = new URL(nt(t, e));
1780
- return n !== "vtex" ? fr(o, e, r) : ur(t, o, e);
1787
+ const o = new URL(at(t, e));
1788
+ return n !== "vtex" ? yr(o, e, r) : dr(t, o, e);
1781
1789
  } catch (o) {
1782
1790
  return console.error(`[Fetch ContentType Error CMS ${n}]`, o), r ? { status: 400, data: null } : { status: 200, data: [] };
1783
1791
  }
1784
1792
  }
1785
- const Ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1793
+ const Ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1786
1794
  __proto__: null,
1787
- fetchContentType: ui,
1788
- getCMSContentType: fi
1795
+ fetchContentType: di,
1796
+ getCMSContentType: yi
1789
1797
  }, Symbol.toStringTag, { value: "Module" }));
1790
1798
  export {
1791
- _i as A,
1792
- Ai as B,
1793
- xi as C,
1794
- Oi as D,
1795
- wi as S,
1796
- br as a,
1797
- xr as b,
1798
- gr as c,
1799
- Sr as d,
1800
- yi as e,
1801
- qe as f,
1802
- mr as g,
1803
- dr as h,
1804
- wr as i,
1805
- Fr as j,
1806
- vr as k,
1807
- Er as l,
1808
- $r as m,
1809
- hr as n,
1810
- Si as o,
1811
- hi as p,
1812
- Or as q,
1799
+ xi as A,
1800
+ Ii as B,
1801
+ Pi as C,
1802
+ $i as D,
1803
+ Ei as S,
1804
+ Ar as a,
1805
+ Pr as b,
1806
+ Sr as c,
1807
+ Or as d,
1808
+ gi as e,
1809
+ He as f,
1810
+ br as g,
1811
+ hr as h,
1812
+ Er as i,
1813
+ Lr as j,
1814
+ _r as k,
1815
+ Rr as l,
1816
+ Dr as m,
1817
+ wr as n,
1818
+ Oi as o,
1819
+ wi as p,
1820
+ $r as q,
1813
1821
  ue as r,
1814
- Nt as s,
1815
- gi as t,
1816
- Ar as u,
1817
- di as v,
1818
- bi as w,
1819
- ui as x,
1820
- mi as y,
1821
- vi as z
1822
+ jt as s,
1823
+ Si as t,
1824
+ Ir as u,
1825
+ hi as v,
1826
+ Ai as w,
1827
+ di as x,
1828
+ bi as y,
1829
+ _i as z
1822
1830
  };