@haus-storefront-react/vendure-plugin-configs 0.0.20 → 0.0.21

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.
Files changed (4) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/badge.js +20 -20
  3. package/badge.mjs +1290 -1231
  4. package/package.json +4 -4
package/badge.mjs CHANGED
@@ -1,21 +1,21 @@
1
- import { V as pn, l as kt } from "./index-Wcc0o6jA.mjs";
2
- import { c as X, j, b as mn, t as hn, r as Ct } from "./index-DlwdCtNm.mjs";
3
- import * as A from "react";
4
- import { createContext as he, useContext as yn, useRef as bn } from "react";
5
- import { initReactI18next as Ye } from "react-i18next";
6
- import Ze from "i18next";
7
- import { QueryClient as Be } from "@tanstack/react-query";
8
- import { StyleSheet as oe } from "react-native";
9
- const V = new pn({
1
+ import { V as mn, l as Ct } from "./index-Wcc0o6jA.mjs";
2
+ import { c as z, j, b as hn, t as yn, r as qt } from "./index-DlwdCtNm.mjs";
3
+ import * as E from "react";
4
+ import { createContext as ye, useContext as bn, useRef as gn } from "react";
5
+ import { initReactI18next as Ze } from "react-i18next";
6
+ import et from "i18next";
7
+ import { QueryClient as Ue } from "@tanstack/react-query";
8
+ import { StyleSheet as se } from "react-native";
9
+ const W = new mn({
10
10
  name: "badges",
11
11
  enableFeatures: {
12
12
  showBadges: ({
13
13
  badges: t = [],
14
14
  parentComponent: e
15
15
  }) => {
16
- const r = e ? V.getSettings().availablePositions[e] : V.getSettings().defaultPositions;
16
+ const r = e ? W.getSettings().availablePositions[e] : W.getSettings().defaultPositions;
17
17
  return {
18
- badges: kt.filter(t, (i) => r ? r.includes(i.position) : !0),
18
+ badges: Ct.filter(t, (o) => r ? r.includes(o.position) : !0),
19
19
  availablePositions: r
20
20
  };
21
21
  }
@@ -30,7 +30,7 @@ const V = new pn({
30
30
  }
31
31
  }
32
32
  });
33
- V.setQueryUpdates({
33
+ W.setQueryUpdates({
34
34
  product: {
35
35
  fields: [{
36
36
  badges: ["id", "position", "assetId", {
@@ -74,8 +74,8 @@ V.setQueryUpdates({
74
74
  }]
75
75
  }
76
76
  });
77
- V.setRequests({
78
- getBadges: async () => V.getSdk().createRequest({
77
+ W.setRequests({
78
+ getBadges: async () => W.getSdk().createRequest({
79
79
  operation: "badges",
80
80
  fields: ["totalItems", {
81
81
  items: ["id", "createdAt", "updatedAt", "collectionId", "position", "assetId", {
@@ -93,163 +93,222 @@ V.setRequests({
93
93
  errorCode: t.code || "unknown"
94
94
  }))
95
95
  });
96
- function gn(t) {
96
+ function vn(t) {
97
97
  const e = [];
98
- function r(i, o) {
99
- const a = A.createContext(o), s = e.length;
100
- e.push(a);
98
+ function r(o, i) {
99
+ const s = E.createContext(i), a = e.length;
100
+ e.push(s);
101
101
  const u = (l) => {
102
- const d = X.c(8);
102
+ const d = z.c(8);
103
103
  let m, y, p;
104
104
  d[0] !== l ? ({
105
105
  scope: p,
106
106
  children: m,
107
107
  ...y
108
108
  } = l, d[0] = l, d[1] = m, d[2] = y, d[3] = p) : (m = d[1], y = d[2], p = d[3]);
109
- const b = p?.[t]?.[s] || a;
109
+ const b = p?.[t]?.[a] || s;
110
110
  let h;
111
111
  h = y;
112
112
  const v = h;
113
113
  let w;
114
114
  return d[4] !== b.Provider || d[5] !== m || d[6] !== v ? (w = /* @__PURE__ */ j.jsx(b.Provider, { value: v, children: m }), d[4] = b.Provider, d[5] = m, d[6] = v, d[7] = w) : w = d[7], w;
115
115
  };
116
- u.displayName = i + "Provider";
116
+ u.displayName = o + "Provider";
117
117
  function c(l, d) {
118
- const m = d?.[t]?.[s] || a, y = A.useContext(m);
118
+ const m = d?.[t]?.[a] || s, y = E.useContext(m);
119
119
  if (y)
120
120
  return y;
121
- if (o !== void 0)
122
- return o;
123
- throw new Error(`\`${l}\` must be used within \`${i}\``);
121
+ if (i !== void 0)
122
+ return i;
123
+ throw new Error(`\`${l}\` must be used within \`${o}\``);
124
124
  }
125
125
  return [u, c];
126
126
  }
127
127
  function n() {
128
- const i = e.map((o) => A.createContext(o));
129
- return function(a) {
130
- const s = a?.[t] || i;
131
- return A.useMemo(() => ({
128
+ const o = e.map((i) => E.createContext(i));
129
+ return function(s) {
130
+ const a = s?.[t] || o;
131
+ return E.useMemo(() => ({
132
132
  [`__scope${t}`]: {
133
- ...a,
134
- [t]: s
133
+ ...s,
134
+ [t]: a
135
135
  }
136
- }), [a, s]);
136
+ }), [s, a]);
137
137
  };
138
138
  }
139
139
  return n.scopeName = t, [r, n];
140
140
  }
141
- const vn = Symbol("radix.slottable");
142
- function wn(...t) {
141
+ const wn = Symbol("radix.slottable");
142
+ function Sn(...t) {
143
143
  return (e) => t.forEach((r) => {
144
144
  typeof r == "function" ? r(e) : r != null && (r.current = e);
145
145
  });
146
146
  }
147
- function Sn(t, e) {
147
+ function On(t, e) {
148
148
  const r = {
149
149
  ...e
150
150
  };
151
151
  for (const n in e) {
152
- const i = t[n], o = e[n];
153
- /^on[A-Z]/.test(n) ? i && o ? r[n] = (...s) => {
154
- const u = o(...s);
155
- return i(...s), u;
156
- } : i && (r[n] = i) : n === "style" ? r[n] = On(i, o) : n === "className" && (r[n] = [i, o].filter(Boolean).join(" "));
152
+ const o = t[n], i = e[n];
153
+ /^on[A-Z]/.test(n) ? o && i ? r[n] = (...a) => {
154
+ const u = i(...a);
155
+ return o(...a), u;
156
+ } : o && (r[n] = o) : n === "style" ? r[n] = En(o, i) : n === "className" && (r[n] = [o, i].filter(Boolean).join(" "));
157
157
  }
158
158
  return {
159
159
  ...t,
160
160
  ...r
161
161
  };
162
162
  }
163
- function On(t, e) {
164
- return typeof t == "function" && typeof e == "function" ? (r) => oe.flatten([t(r), e(r)]) : typeof t == "function" ? (r) => e ? oe.flatten([t(r), e]) : t(r) : typeof e == "function" ? (r) => t ? oe.flatten([t, e(r)]) : e(r) : oe.flatten([t, e].filter(Boolean));
163
+ function En(t, e) {
164
+ return typeof t == "function" && typeof e == "function" ? (r) => se.flatten([t(r), e(r)]) : typeof t == "function" ? (r) => e ? se.flatten([t(r), e]) : t(r) : typeof e == "function" ? (r) => t ? se.flatten([t, e(r)]) : e(r) : se.flatten([t, e].filter(Boolean));
165
165
  }
166
166
  function An(t) {
167
- return A.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === vn;
167
+ return E.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === wn;
168
168
  }
169
- function En(t) {
169
+ function Tn(t) {
170
170
  let e = Object.getOwnPropertyDescriptor(t.props, "ref")?.get, r = e && "isReactWarning" in e && e.isReactWarning;
171
171
  return r ? t.ref : (e = Object.getOwnPropertyDescriptor(t, "ref")?.get, r = e && "isReactWarning" in e && e.isReactWarning, r ? t.props.ref : t.props.ref || t.ref);
172
172
  }
173
- function Tn(t, e) {
174
- const r = A.forwardRef((n, i) => {
173
+ function _n(t, e) {
174
+ const r = E.forwardRef((n, o) => {
175
175
  const {
176
- children: o,
177
- ...a
176
+ children: i,
177
+ ...s
178
178
  } = n;
179
- if (A.isValidElement(o)) {
180
- const s = En(o), u = Sn(a, o.props);
181
- return o.type !== A.Fragment && (u.ref = i ? wn(i, s) : s), A.cloneElement(o, u);
179
+ if (E.isValidElement(i)) {
180
+ const a = Tn(i), u = On(s, i.props);
181
+ return i.type !== E.Fragment && (u.ref = o ? Sn(o, a) : a), E.cloneElement(i, u);
182
182
  }
183
- return A.Children.count(o) > 1 ? A.Children.only(null) : null;
183
+ return E.Children.count(i) > 1 ? E.Children.only(null) : null;
184
184
  });
185
185
  return r.displayName = `${t}.SlotClone`, r;
186
186
  }
187
- function ve(t, e = !1, r = "div") {
187
+ function we(t, e = !1, r = "div") {
188
188
  if (!e)
189
- return mn(r, t);
190
- const n = Tn("Slot"), i = A.forwardRef((o, a) => {
191
- const s = X.c(15);
189
+ return hn(r, t);
190
+ const n = _n("Slot"), o = E.forwardRef((i, s) => {
191
+ const a = z.c(15);
192
192
  let u, c;
193
- s[0] !== o ? ({
193
+ a[0] !== i ? ({
194
194
  children: u,
195
195
  ...c
196
- } = o, s[0] = o, s[1] = u, s[2] = c) : (u = s[1], c = s[2]);
196
+ } = i, a[0] = i, a[1] = u, a[2] = c) : (u = a[1], c = a[2]);
197
197
  let l;
198
- if (s[3] !== u || s[4] !== a || s[5] !== c) {
198
+ if (a[3] !== u || a[4] !== s || a[5] !== c) {
199
199
  l = Symbol.for("react.early_return_sentinel");
200
200
  e: {
201
- const m = A.Children.toArray(u), y = m.find(An);
201
+ const m = E.Children.toArray(u), y = m.find(An);
202
202
  if (y) {
203
- const p = y.props.children, b = m.map((w) => w === y ? A.Children.count(p) > 1 ? A.Children.only(null) : A.isValidElement(p) ? p.props.children : null : w), h = A.isValidElement(p) ? A.cloneElement(p, void 0, b) : null;
203
+ const p = y.props.children, b = m.map((w) => w === y ? E.Children.count(p) > 1 ? E.Children.only(null) : E.isValidElement(p) ? p.props.children : null : w), h = E.isValidElement(p) ? E.cloneElement(p, void 0, b) : null;
204
204
  let v;
205
- s[7] !== a || s[8] !== c || s[9] !== h ? (v = /* @__PURE__ */ j.jsx(n, { ...c, ref: a, children: h }), s[7] = a, s[8] = c, s[9] = h, s[10] = v) : v = s[10], l = v;
205
+ a[7] !== s || a[8] !== c || a[9] !== h ? (v = /* @__PURE__ */ j.jsx(n, { ...c, ref: s, children: h }), a[7] = s, a[8] = c, a[9] = h, a[10] = v) : v = a[10], l = v;
206
206
  break e;
207
207
  }
208
208
  }
209
- s[3] = u, s[4] = a, s[5] = c, s[6] = l;
209
+ a[3] = u, a[4] = s, a[5] = c, a[6] = l;
210
210
  } else
211
- l = s[6];
211
+ l = a[6];
212
212
  if (l !== Symbol.for("react.early_return_sentinel"))
213
213
  return l;
214
214
  let d;
215
- return s[11] !== u || s[12] !== a || s[13] !== c ? (d = /* @__PURE__ */ j.jsx(n, { ...c, ref: a, children: u }), s[11] = u, s[12] = a, s[13] = c, s[14] = d) : d = s[14], d;
215
+ return a[11] !== u || a[12] !== s || a[13] !== c ? (d = /* @__PURE__ */ j.jsx(n, { ...c, ref: s, children: u }), a[11] = u, a[12] = s, a[13] = c, a[14] = d) : d = a[14], d;
216
216
  });
217
- return i.displayName = "Slot", i;
217
+ return o.displayName = "Slot", o;
218
218
  }
219
- let H;
219
+ const Rn = "debug", N = () => {
220
+ try {
221
+ if (typeof window > "u" || typeof localStorage > "u")
222
+ return !1;
223
+ const t = localStorage.getItem(Rn);
224
+ return t === "true" || t === "1";
225
+ } catch {
226
+ return !1;
227
+ }
228
+ }, Nn = () => {
229
+ const t = (e, r, n = []) => r ? typeof e == "string" ? [`<${r}> ${e}`, ...n] : [`<${r}>`, e, ...n] : Array.isArray(e) ? [...e, ...n] : [e, ...n];
230
+ return {
231
+ log: (e, r, ...n) => {
232
+ N() && console.log(...t(e, r, n));
233
+ },
234
+ info: (e, r, ...n) => {
235
+ N() && console.info(...t(e, r, n));
236
+ },
237
+ warn: (e, r, ...n) => {
238
+ N() && console.warn(...t(e, r, n));
239
+ },
240
+ error: (e, r, ...n) => {
241
+ N() && console.error(...t(e, r, n));
242
+ },
243
+ debug: (e, r, ...n) => {
244
+ N() && console.debug(...t(e, r, n));
245
+ },
246
+ group: (e, r) => {
247
+ if (N()) {
248
+ const n = typeof e == "string" ? e : void 0;
249
+ console.group(r ? n ? `<${r}> ${n}` : `<${r}>` : n);
250
+ }
251
+ },
252
+ groupCollapsed: (e, r) => {
253
+ if (N()) {
254
+ const n = typeof e == "string" ? e : void 0;
255
+ console.groupCollapsed(r ? n ? `<${r}> ${n}` : `<${r}>` : n);
256
+ }
257
+ },
258
+ groupEnd: () => {
259
+ N() && console.groupEnd();
260
+ },
261
+ table: (e, r, n) => {
262
+ N() && (r && console.log(`<${r}>`), console.table(e, n));
263
+ },
264
+ time: (e, r) => {
265
+ if (N()) {
266
+ const n = typeof e == "string" ? e : void 0;
267
+ console.time(r ? n ? `<${r}> ${n}` : `<${r}>` : n);
268
+ }
269
+ },
270
+ timeEnd: (e, r) => {
271
+ if (N()) {
272
+ const n = typeof e == "string" ? e : void 0;
273
+ console.timeEnd(r ? n ? `<${r}> ${n}` : `<${r}>` : n);
274
+ }
275
+ }
276
+ };
277
+ }, Pn = Nn();
278
+ let V;
220
279
  try {
221
- H = require("@react-native-async-storage/async-storage").default;
280
+ V = require("@react-native-async-storage/async-storage").default;
222
281
  } catch {
223
- H = null;
282
+ V = null;
224
283
  }
225
- const ke = typeof window < "u" && typeof window.localStorage < "u", Ce = !!H, qe = {}, ae = {}, G = {
226
- getItem: async (t) => Ce ? H.getItem(t) : ke ? new Promise((e) => {
284
+ const Ce = typeof window < "u" && typeof window.localStorage < "u", qe = !!V, De = {}, ae = {}, Y = {
285
+ getItem: async (t) => qe ? V.getItem(t) : Ce ? new Promise((e) => {
227
286
  Promise.resolve().then(() => {
228
287
  const r = window.localStorage.getItem(t), n = ae[t];
229
288
  r !== n && (ae[t] = r || ""), e(r);
230
289
  });
231
- }) : qe[t] || null,
290
+ }) : De[t] || null,
232
291
  setItem: async (t, e) => {
292
+ if (qe)
293
+ return V.setItem(t, e);
233
294
  if (Ce)
234
- return H.setItem(t, e);
235
- if (ke)
236
295
  return new Promise((r, n) => {
237
296
  Promise.resolve().then(() => {
238
297
  try {
239
298
  window.localStorage.setItem(t, e);
240
- const i = window.localStorage.getItem(t);
241
- i === e ? (ae[t] = e, r()) : n(new Error(`Failed to set localStorage item: expected "${e}", got "${i}"`));
242
- } catch (i) {
243
- n(i);
299
+ const o = window.localStorage.getItem(t);
300
+ o === e ? (ae[t] = e, r()) : n(new Error(`Failed to set localStorage item: expected "${e}", got "${o}"`));
301
+ } catch (o) {
302
+ n(o);
244
303
  }
245
304
  });
246
305
  });
247
- qe[t] = e;
306
+ De[t] = e;
248
307
  },
249
308
  removeItem: async (t) => {
309
+ if (qe)
310
+ return V.removeItem(t);
250
311
  if (Ce)
251
- return H.removeItem(t);
252
- if (ke)
253
312
  return new Promise((e, r) => {
254
313
  Promise.resolve().then(() => {
255
314
  try {
@@ -261,100 +320,100 @@ const ke = typeof window < "u" && typeof window.localStorage < "u", Ce = !!H, qe
261
320
  }
262
321
  });
263
322
  });
264
- delete qe[t];
323
+ delete De[t];
265
324
  }
266
325
  };
267
326
  let je;
268
- typeof window < "u" ? (window.__STORE_I18N_INSTANCE__ || (window.__STORE_I18N_INSTANCE__ = Ze.createInstance()), window.__STORE_I18N_INSTANCE__.use(Ye), je = window.__STORE_I18N_INSTANCE__) : (je = Ze.createInstance(), je.use(Ye));
269
- function Ue(t) {
327
+ typeof window < "u" ? (window.__STORE_I18N_INSTANCE__ || (window.__STORE_I18N_INSTANCE__ = et.createInstance()), window.__STORE_I18N_INSTANCE__.use(Ze), je = window.__STORE_I18N_INSTANCE__) : (je = et.createInstance(), je.use(Ze));
328
+ function Ie(t) {
270
329
  "@babel/helpers - typeof";
271
- return Ue = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
330
+ return Ie = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
272
331
  return typeof e;
273
332
  } : function(e) {
274
333
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
275
- }, Ue(t);
334
+ }, Ie(t);
276
335
  }
277
- function qt() {
278
- return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" : Ue(XMLHttpRequest)) === "object";
336
+ function Dt() {
337
+ return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" : Ie(XMLHttpRequest)) === "object";
279
338
  }
280
- function _n(t) {
339
+ function kn(t) {
281
340
  return !!t && typeof t.then == "function";
282
341
  }
283
- function Rn(t) {
284
- return _n(t) ? t : Promise.resolve(t);
342
+ function Cn(t) {
343
+ return kn(t) ? t : Promise.resolve(t);
285
344
  }
286
- function et(t, e) {
345
+ function tt(t, e) {
287
346
  var r = Object.keys(t);
288
347
  if (Object.getOwnPropertySymbols) {
289
348
  var n = Object.getOwnPropertySymbols(t);
290
- e && (n = n.filter(function(i) {
291
- return Object.getOwnPropertyDescriptor(t, i).enumerable;
349
+ e && (n = n.filter(function(o) {
350
+ return Object.getOwnPropertyDescriptor(t, o).enumerable;
292
351
  })), r.push.apply(r, n);
293
352
  }
294
353
  return r;
295
354
  }
296
- function tt(t) {
355
+ function nt(t) {
297
356
  for (var e = 1; e < arguments.length; e++) {
298
357
  var r = arguments[e] != null ? arguments[e] : {};
299
- e % 2 ? et(Object(r), !0).forEach(function(n) {
300
- Nn(t, n, r[n]);
301
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : et(Object(r)).forEach(function(n) {
358
+ e % 2 ? tt(Object(r), !0).forEach(function(n) {
359
+ qn(t, n, r[n]);
360
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : tt(Object(r)).forEach(function(n) {
302
361
  Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
303
362
  });
304
363
  }
305
364
  return t;
306
365
  }
307
- function Nn(t, e, r) {
308
- return (e = Pn(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
366
+ function qn(t, e, r) {
367
+ return (e = Dn(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
309
368
  }
310
- function Pn(t) {
311
- var e = kn(t, "string");
312
- return B(e) == "symbol" ? e : e + "";
369
+ function Dn(t) {
370
+ var e = jn(t, "string");
371
+ return U(e) == "symbol" ? e : e + "";
313
372
  }
314
- function kn(t, e) {
315
- if (B(t) != "object" || !t) return t;
373
+ function jn(t, e) {
374
+ if (U(t) != "object" || !t) return t;
316
375
  var r = t[Symbol.toPrimitive];
317
376
  if (r !== void 0) {
318
377
  var n = r.call(t, e);
319
- if (B(n) != "object") return n;
378
+ if (U(n) != "object") return n;
320
379
  throw new TypeError("@@toPrimitive must return a primitive value.");
321
380
  }
322
381
  return (e === "string" ? String : Number)(t);
323
382
  }
324
- function B(t) {
383
+ function U(t) {
325
384
  "@babel/helpers - typeof";
326
- return B = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
385
+ return U = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
327
386
  return typeof e;
328
387
  } : function(e) {
329
388
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
330
- }, B(t);
331
- }
332
- var D = typeof fetch == "function" ? fetch : void 0;
333
- typeof global < "u" && global.fetch ? D = global.fetch : typeof window < "u" && window.fetch && (D = window.fetch);
334
- var Y;
335
- qt() && (typeof global < "u" && global.XMLHttpRequest ? Y = global.XMLHttpRequest : typeof window < "u" && window.XMLHttpRequest && (Y = window.XMLHttpRequest));
336
- var ye;
337
- typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObject ? ye = global.ActiveXObject : typeof window < "u" && window.ActiveXObject && (ye = window.ActiveXObject));
338
- typeof D != "function" && (D = void 0);
339
- if (!D && !Y && !ye)
389
+ }, U(t);
390
+ }
391
+ var x = typeof fetch == "function" ? fetch : void 0;
392
+ typeof global < "u" && global.fetch ? x = global.fetch : typeof window < "u" && window.fetch && (x = window.fetch);
393
+ var Z;
394
+ Dt() && (typeof global < "u" && global.XMLHttpRequest ? Z = global.XMLHttpRequest : typeof window < "u" && window.XMLHttpRequest && (Z = window.XMLHttpRequest));
395
+ var be;
396
+ typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObject ? be = global.ActiveXObject : typeof window < "u" && window.ActiveXObject && (be = window.ActiveXObject));
397
+ typeof x != "function" && (x = void 0);
398
+ if (!x && !Z && !be)
340
399
  try {
341
400
  import("./browser-ponyfill-DYgay_ta.mjs").then((t) => t.b).then(function(t) {
342
- D = t.default;
401
+ x = t.default;
343
402
  }).catch(function() {
344
403
  });
345
404
  } catch {
346
405
  }
347
- var Ie = function(e, r) {
348
- if (r && B(r) === "object") {
406
+ var Le = function(e, r) {
407
+ if (r && U(r) === "object") {
349
408
  var n = "";
350
- for (var i in r)
351
- n += "&" + encodeURIComponent(i) + "=" + encodeURIComponent(r[i]);
409
+ for (var o in r)
410
+ n += "&" + encodeURIComponent(o) + "=" + encodeURIComponent(r[o]);
352
411
  if (!n) return e;
353
412
  e = e + (e.indexOf("?") !== -1 ? "&" : "?") + n.slice(1);
354
413
  }
355
414
  return e;
356
- }, nt = function(e, r, n, i) {
357
- var o = function(u) {
415
+ }, rt = function(e, r, n, o) {
416
+ var i = function(u) {
358
417
  if (!u.ok) return n(u.statusText || "Error", {
359
418
  status: u.status
360
419
  });
@@ -365,81 +424,81 @@ var Ie = function(e, r) {
365
424
  });
366
425
  }).catch(n);
367
426
  };
368
- if (i) {
369
- var a = i(e, r);
370
- if (a instanceof Promise) {
371
- a.then(o).catch(n);
427
+ if (o) {
428
+ var s = o(e, r);
429
+ if (s instanceof Promise) {
430
+ s.then(i).catch(n);
372
431
  return;
373
432
  }
374
433
  }
375
- typeof fetch == "function" ? fetch(e, r).then(o).catch(n) : D(e, r).then(o).catch(n);
376
- }, rt = !1, Cn = function(e, r, n, i) {
377
- e.queryStringParams && (r = Ie(r, e.queryStringParams));
378
- var o = tt({}, typeof e.customHeaders == "function" ? e.customHeaders() : e.customHeaders);
379
- typeof window > "u" && typeof global < "u" && typeof global.process < "u" && global.process.versions && global.process.versions.node && (o["User-Agent"] = "i18next-http-backend (node/".concat(global.process.version, "; ").concat(global.process.platform, " ").concat(global.process.arch, ")")), n && (o["Content-Type"] = "application/json");
380
- var a = typeof e.requestOptions == "function" ? e.requestOptions(n) : e.requestOptions, s = tt({
434
+ typeof fetch == "function" ? fetch(e, r).then(i).catch(n) : x(e, r).then(i).catch(n);
435
+ }, ot = !1, xn = function(e, r, n, o) {
436
+ e.queryStringParams && (r = Le(r, e.queryStringParams));
437
+ var i = nt({}, typeof e.customHeaders == "function" ? e.customHeaders() : e.customHeaders);
438
+ typeof window > "u" && typeof global < "u" && typeof global.process < "u" && global.process.versions && global.process.versions.node && (i["User-Agent"] = "i18next-http-backend (node/".concat(global.process.version, "; ").concat(global.process.platform, " ").concat(global.process.arch, ")")), n && (i["Content-Type"] = "application/json");
439
+ var s = typeof e.requestOptions == "function" ? e.requestOptions(n) : e.requestOptions, a = nt({
381
440
  method: n ? "POST" : "GET",
382
441
  body: n ? e.stringify(n) : void 0,
383
- headers: o
384
- }, rt ? {} : a), u = typeof e.alternateFetch == "function" && e.alternateFetch.length >= 1 ? e.alternateFetch : void 0;
442
+ headers: i
443
+ }, ot ? {} : s), u = typeof e.alternateFetch == "function" && e.alternateFetch.length >= 1 ? e.alternateFetch : void 0;
385
444
  try {
386
- nt(r, s, i, u);
445
+ rt(r, a, o, u);
387
446
  } catch (c) {
388
- if (!a || Object.keys(a).length === 0 || !c.message || c.message.indexOf("not implemented") < 0)
389
- return i(c);
447
+ if (!s || Object.keys(s).length === 0 || !c.message || c.message.indexOf("not implemented") < 0)
448
+ return o(c);
390
449
  try {
391
- Object.keys(a).forEach(function(l) {
392
- delete s[l];
393
- }), nt(r, s, i, u), rt = !0;
450
+ Object.keys(s).forEach(function(l) {
451
+ delete a[l];
452
+ }), rt(r, a, o, u), ot = !0;
394
453
  } catch (l) {
395
- i(l);
454
+ o(l);
396
455
  }
397
456
  }
398
- }, qn = function(e, r, n, i) {
399
- n && B(n) === "object" && (n = Ie("", n).slice(1)), e.queryStringParams && (r = Ie(r, e.queryStringParams));
457
+ }, Fn = function(e, r, n, o) {
458
+ n && U(n) === "object" && (n = Le("", n).slice(1)), e.queryStringParams && (r = Le(r, e.queryStringParams));
400
459
  try {
401
- var o = Y ? new Y() : new ye("MSXML2.XMLHTTP.3.0");
402
- o.open(n ? "POST" : "GET", r, 1), e.crossDomain || o.setRequestHeader("X-Requested-With", "XMLHttpRequest"), o.withCredentials = !!e.withCredentials, n && o.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), o.overrideMimeType && o.overrideMimeType("application/json");
403
- var a = e.customHeaders;
404
- if (a = typeof a == "function" ? a() : a, a)
405
- for (var s in a)
406
- o.setRequestHeader(s, a[s]);
407
- o.onreadystatechange = function() {
408
- o.readyState > 3 && i(o.status >= 400 ? o.statusText : null, {
409
- status: o.status,
410
- data: o.responseText
460
+ var i = Z ? new Z() : new be("MSXML2.XMLHTTP.3.0");
461
+ i.open(n ? "POST" : "GET", r, 1), e.crossDomain || i.setRequestHeader("X-Requested-With", "XMLHttpRequest"), i.withCredentials = !!e.withCredentials, n && i.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), i.overrideMimeType && i.overrideMimeType("application/json");
462
+ var s = e.customHeaders;
463
+ if (s = typeof s == "function" ? s() : s, s)
464
+ for (var a in s)
465
+ i.setRequestHeader(a, s[a]);
466
+ i.onreadystatechange = function() {
467
+ i.readyState > 3 && o(i.status >= 400 ? i.statusText : null, {
468
+ status: i.status,
469
+ data: i.responseText
411
470
  });
412
- }, o.send(n);
471
+ }, i.send(n);
413
472
  } catch (u) {
414
473
  console && console.log(u);
415
474
  }
416
- }, jn = function(e, r, n, i) {
417
- if (typeof n == "function" && (i = n, n = void 0), i = i || function() {
418
- }, D && r.indexOf("file:") !== 0)
419
- return Cn(e, r, n, i);
420
- if (qt() || typeof ActiveXObject == "function")
421
- return qn(e, r, n, i);
422
- i(new Error("No fetch and no xhr implementation found!"));
475
+ }, Mn = function(e, r, n, o) {
476
+ if (typeof n == "function" && (o = n, n = void 0), o = o || function() {
477
+ }, x && r.indexOf("file:") !== 0)
478
+ return xn(e, r, n, o);
479
+ if (Dt() || typeof ActiveXObject == "function")
480
+ return Fn(e, r, n, o);
481
+ o(new Error("No fetch and no xhr implementation found!"));
423
482
  };
424
- function W(t) {
483
+ function X(t) {
425
484
  "@babel/helpers - typeof";
426
- return W = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
485
+ return X = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
427
486
  return typeof e;
428
487
  } : function(e) {
429
488
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
430
- }, W(t);
489
+ }, X(t);
431
490
  }
432
491
  function it(t, e) {
433
492
  var r = Object.keys(t);
434
493
  if (Object.getOwnPropertySymbols) {
435
494
  var n = Object.getOwnPropertySymbols(t);
436
- e && (n = n.filter(function(i) {
437
- return Object.getOwnPropertyDescriptor(t, i).enumerable;
495
+ e && (n = n.filter(function(o) {
496
+ return Object.getOwnPropertyDescriptor(t, o).enumerable;
438
497
  })), r.push.apply(r, n);
439
498
  }
440
499
  return r;
441
500
  }
442
- function De(t) {
501
+ function xe(t) {
443
502
  for (var e = 1; e < arguments.length; e++) {
444
503
  var r = arguments[e] != null ? arguments[e] : {};
445
504
  e % 2 ? it(Object(r), !0).forEach(function(n) {
@@ -450,36 +509,36 @@ function De(t) {
450
509
  }
451
510
  return t;
452
511
  }
453
- function Dn(t, e) {
512
+ function Bn(t, e) {
454
513
  if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
455
514
  }
456
- function Fn(t, e) {
515
+ function Un(t, e) {
457
516
  for (var r = 0; r < e.length; r++) {
458
517
  var n = e[r];
459
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, Dt(n.key), n);
518
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, xt(n.key), n);
460
519
  }
461
520
  }
462
- function xn(t, e, r) {
463
- return e && Fn(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
521
+ function In(t, e, r) {
522
+ return e && Un(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
464
523
  }
465
524
  function jt(t, e, r) {
466
- return (e = Dt(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
525
+ return (e = xt(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
467
526
  }
468
- function Dt(t) {
469
- var e = Mn(t, "string");
470
- return W(e) == "symbol" ? e : e + "";
527
+ function xt(t) {
528
+ var e = Ln(t, "string");
529
+ return X(e) == "symbol" ? e : e + "";
471
530
  }
472
- function Mn(t, e) {
473
- if (W(t) != "object" || !t) return t;
531
+ function Ln(t, e) {
532
+ if (X(t) != "object" || !t) return t;
474
533
  var r = t[Symbol.toPrimitive];
475
534
  if (r !== void 0) {
476
535
  var n = r.call(t, e);
477
- if (W(n) != "object") return n;
536
+ if (X(n) != "object") return n;
478
537
  throw new TypeError("@@toPrimitive must return a primitive value.");
479
538
  }
480
539
  return String(t);
481
540
  }
482
- var Bn = function() {
541
+ var $n = function() {
483
542
  return {
484
543
  loadPath: "/locales/{{lng}}/{{ns}}.json",
485
544
  addPath: "/locales/add/{{lng}}/{{ns}}",
@@ -487,12 +546,12 @@ var Bn = function() {
487
546
  return JSON.parse(r);
488
547
  },
489
548
  stringify: JSON.stringify,
490
- parsePayload: function(r, n, i) {
491
- return jt({}, n, i || "");
549
+ parsePayload: function(r, n, o) {
550
+ return jt({}, n, o || "");
492
551
  },
493
552
  parseLoadPayload: function(r, n) {
494
553
  },
495
- request: jn,
554
+ request: Mn,
496
555
  reloadInterval: typeof window < "u" ? !1 : 60 * 60 * 1e3,
497
556
  customHeaders: {},
498
557
  queryStringParams: {},
@@ -505,49 +564,49 @@ var Bn = function() {
505
564
  cache: "default"
506
565
  }
507
566
  };
508
- }, Un = function() {
567
+ }, Hn = function() {
509
568
  function t(e) {
510
569
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
511
- Dn(this, t), this.services = e, this.options = r, this.allOptions = n, this.type = "backend", this.init(e, r, n);
570
+ Bn(this, t), this.services = e, this.options = r, this.allOptions = n, this.type = "backend", this.init(e, r, n);
512
571
  }
513
- return xn(t, [{
572
+ return In(t, [{
514
573
  key: "init",
515
574
  value: function(r) {
516
- var n = this, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
517
- if (this.services = r, this.options = De(De(De({}, Bn()), this.options || {}), i), this.allOptions = o, this.services && this.options.reloadInterval) {
518
- var a = setInterval(function() {
575
+ var n = this, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
576
+ if (this.services = r, this.options = xe(xe(xe({}, $n()), this.options || {}), o), this.allOptions = i, this.services && this.options.reloadInterval) {
577
+ var s = setInterval(function() {
519
578
  return n.reload();
520
579
  }, this.options.reloadInterval);
521
- W(a) === "object" && typeof a.unref == "function" && a.unref();
580
+ X(s) === "object" && typeof s.unref == "function" && s.unref();
522
581
  }
523
582
  }
524
583
  }, {
525
584
  key: "readMulti",
526
- value: function(r, n, i) {
527
- this._readAny(r, r, n, n, i);
585
+ value: function(r, n, o) {
586
+ this._readAny(r, r, n, n, o);
528
587
  }
529
588
  }, {
530
589
  key: "read",
531
- value: function(r, n, i) {
532
- this._readAny([r], r, [n], n, i);
590
+ value: function(r, n, o) {
591
+ this._readAny([r], r, [n], n, o);
533
592
  }
534
593
  }, {
535
594
  key: "_readAny",
536
- value: function(r, n, i, o, a) {
537
- var s = this, u = this.options.loadPath;
538
- typeof this.options.loadPath == "function" && (u = this.options.loadPath(r, i)), u = Rn(u), u.then(function(c) {
539
- if (!c) return a(null, {});
540
- var l = s.services.interpolator.interpolate(c, {
595
+ value: function(r, n, o, i, s) {
596
+ var a = this, u = this.options.loadPath;
597
+ typeof this.options.loadPath == "function" && (u = this.options.loadPath(r, o)), u = Cn(u), u.then(function(c) {
598
+ if (!c) return s(null, {});
599
+ var l = a.services.interpolator.interpolate(c, {
541
600
  lng: r.join("+"),
542
- ns: i.join("+")
601
+ ns: o.join("+")
543
602
  });
544
- s.loadUrl(l, a, n, o);
603
+ a.loadUrl(l, s, n, i);
545
604
  });
546
605
  }
547
606
  }, {
548
607
  key: "loadUrl",
549
- value: function(r, n, i, o) {
550
- var a = this, s = typeof i == "string" ? [i] : i, u = typeof o == "string" ? [o] : o, c = this.options.parseLoadPayload(s, u);
608
+ value: function(r, n, o, i) {
609
+ var s = this, a = typeof o == "string" ? [o] : o, u = typeof i == "string" ? [i] : i, c = this.options.parseLoadPayload(a, u);
551
610
  this.options.request(this.options, r, c, function(l, d) {
552
611
  if (d && (d.status >= 500 && d.status < 600 || !d.status)) return n("failed loading " + r + "; status code: " + d.status, !0);
553
612
  if (d && d.status >= 400 && d.status < 500) return n("failed loading " + r + "; status code: " + d.status, !1);
@@ -561,7 +620,7 @@ var Bn = function() {
561
620
  if (l) return n(l, !1);
562
621
  var p, b;
563
622
  try {
564
- typeof d.data == "string" ? p = a.options.parse(d.data, i, o) : p = d.data;
623
+ typeof d.data == "string" ? p = s.options.parse(d.data, o, i) : p = d.data;
565
624
  } catch {
566
625
  b = "failed parsing " + r + " to json";
567
626
  }
@@ -571,20 +630,20 @@ var Bn = function() {
571
630
  }
572
631
  }, {
573
632
  key: "create",
574
- value: function(r, n, i, o, a) {
575
- var s = this;
633
+ value: function(r, n, o, i, s) {
634
+ var a = this;
576
635
  if (this.options.addPath) {
577
636
  typeof r == "string" && (r = [r]);
578
- var u = this.options.parsePayload(n, i, o), c = 0, l = [], d = [];
637
+ var u = this.options.parsePayload(n, o, i), c = 0, l = [], d = [];
579
638
  r.forEach(function(m) {
580
- var y = s.options.addPath;
581
- typeof s.options.addPath == "function" && (y = s.options.addPath(m, n));
582
- var p = s.services.interpolator.interpolate(y, {
639
+ var y = a.options.addPath;
640
+ typeof a.options.addPath == "function" && (y = a.options.addPath(m, n));
641
+ var p = a.services.interpolator.interpolate(y, {
583
642
  lng: m,
584
643
  ns: n
585
644
  });
586
- s.options.request(s.options, p, u, function(b, h) {
587
- c += 1, l.push(b), d.push(h), c === r.length && typeof a == "function" && a(l, d);
645
+ a.options.request(a.options, p, u, function(b, h) {
646
+ c += 1, l.push(b), d.push(h), c === r.length && typeof s == "function" && s(l, d);
588
647
  });
589
648
  });
590
649
  }
@@ -592,20 +651,20 @@ var Bn = function() {
592
651
  }, {
593
652
  key: "reload",
594
653
  value: function() {
595
- var r = this, n = this.services, i = n.backendConnector, o = n.languageUtils, a = n.logger, s = i.language;
596
- if (!(s && s.toLowerCase() === "cimode")) {
654
+ var r = this, n = this.services, o = n.backendConnector, i = n.languageUtils, s = n.logger, a = o.language;
655
+ if (!(a && a.toLowerCase() === "cimode")) {
597
656
  var u = [], c = function(d) {
598
- var m = o.toResolveHierarchy(d);
657
+ var m = i.toResolveHierarchy(d);
599
658
  m.forEach(function(y) {
600
659
  u.indexOf(y) < 0 && u.push(y);
601
660
  });
602
661
  };
603
- c(s), this.allOptions.preload && this.allOptions.preload.forEach(function(l) {
662
+ c(a), this.allOptions.preload && this.allOptions.preload.forEach(function(l) {
604
663
  return c(l);
605
664
  }), u.forEach(function(l) {
606
665
  r.allOptions.ns.forEach(function(d) {
607
- i.read(l, d, "read", null, null, function(m, y) {
608
- m && a.warn("loading namespace ".concat(d, " for language ").concat(l, " failed"), m), !m && y && a.log("loaded namespace ".concat(d, " for language ").concat(l), y), i.loaded("".concat(l, "|").concat(d), m, y);
666
+ o.read(l, d, "read", null, null, function(m, y) {
667
+ m && s.warn("loading namespace ".concat(d, " for language ").concat(l, " failed"), m), !m && y && s.log("loaded namespace ".concat(d, " for language ").concat(l), y), o.loaded("".concat(l, "|").concat(d), m, y);
609
668
  });
610
669
  });
611
670
  });
@@ -613,129 +672,129 @@ var Bn = function() {
613
672
  }
614
673
  }]);
615
674
  }();
616
- Un.type = "backend";
617
- let Le;
618
- typeof window < "u" ? (window.__STORE_SDK_CONTEXT__ || (window.__STORE_SDK_CONTEXT__ = he(void 0)), Le = window.__STORE_SDK_CONTEXT__) : Le = he(void 0);
619
- const In = () => {
620
- const t = yn(Le);
675
+ Hn.type = "backend";
676
+ let $e;
677
+ typeof window < "u" ? (window.__STORE_SDK_CONTEXT__ || (window.__STORE_SDK_CONTEXT__ = ye(void 0)), $e = window.__STORE_SDK_CONTEXT__) : $e = ye(void 0);
678
+ const Vn = () => {
679
+ const t = bn($e);
621
680
  return t || console.error("You must wrap your component in a <DataProvider>"), t?.sdkType === "dummy" || t?.sdkType === "vendure", t;
622
681
  };
623
- new Be();
682
+ new Ue();
624
683
  function Ft(t, e) {
625
684
  return function() {
626
685
  return t.apply(e, arguments);
627
686
  };
628
687
  }
629
- const { toString: Ln } = Object.prototype, { getPrototypeOf: Je } = Object, { iterator: we, toStringTag: xt } = Symbol, Se = /* @__PURE__ */ ((t) => (e) => {
630
- const r = Ln.call(e);
688
+ const { toString: Wn } = Object.prototype, { getPrototypeOf: Ke } = Object, { iterator: Se, toStringTag: Mt } = Symbol, Oe = /* @__PURE__ */ ((t) => (e) => {
689
+ const r = Wn.call(e);
631
690
  return t[r] || (t[r] = r.slice(8, -1).toLowerCase());
632
- })(/* @__PURE__ */ Object.create(null)), P = (t) => (t = t.toLowerCase(), (e) => Se(e) === t), Oe = (t) => (e) => typeof e === t, { isArray: z } = Array, Z = Oe("undefined");
633
- function $n(t) {
634
- return t !== null && !Z(t) && t.constructor !== null && !Z(t.constructor) && _(t.constructor.isBuffer) && t.constructor.isBuffer(t);
691
+ })(/* @__PURE__ */ Object.create(null)), k = (t) => (t = t.toLowerCase(), (e) => Oe(e) === t), Ee = (t) => (e) => typeof e === t, { isArray: J } = Array, ee = Ee("undefined");
692
+ function Xn(t) {
693
+ return t !== null && !ee(t) && t.constructor !== null && !ee(t.constructor) && _(t.constructor.isBuffer) && t.constructor.isBuffer(t);
635
694
  }
636
- const Mt = P("ArrayBuffer");
637
- function Hn(t) {
695
+ const Bt = k("ArrayBuffer");
696
+ function zn(t) {
638
697
  let e;
639
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Mt(t.buffer), e;
698
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Bt(t.buffer), e;
640
699
  }
641
- const Vn = Oe("string"), _ = Oe("function"), Bt = Oe("number"), Ae = (t) => t !== null && typeof t == "object", Wn = (t) => t === !0 || t === !1, de = (t) => {
642
- if (Se(t) !== "object")
700
+ const Jn = Ee("string"), _ = Ee("function"), Ut = Ee("number"), Ae = (t) => t !== null && typeof t == "object", Kn = (t) => t === !0 || t === !1, pe = (t) => {
701
+ if (Oe(t) !== "object")
643
702
  return !1;
644
- const e = Je(t);
645
- return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(xt in t) && !(we in t);
646
- }, Xn = P("Date"), zn = P("File"), Jn = P("Blob"), Kn = P("FileList"), Qn = (t) => Ae(t) && _(t.pipe), Gn = (t) => {
703
+ const e = Ke(t);
704
+ return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Mt in t) && !(Se in t);
705
+ }, Qn = k("Date"), Gn = k("File"), Yn = k("Blob"), Zn = k("FileList"), er = (t) => Ae(t) && _(t.pipe), tr = (t) => {
647
706
  let e;
648
- return t && (typeof FormData == "function" && t instanceof FormData || _(t.append) && ((e = Se(t)) === "formdata" || // detect form-data instance
707
+ return t && (typeof FormData == "function" && t instanceof FormData || _(t.append) && ((e = Oe(t)) === "formdata" || // detect form-data instance
649
708
  e === "object" && _(t.toString) && t.toString() === "[object FormData]"));
650
- }, Yn = P("URLSearchParams"), [Zn, er, tr, nr] = ["ReadableStream", "Request", "Response", "Headers"].map(P), rr = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
651
- function ee(t, e, { allOwnKeys: r = !1 } = {}) {
709
+ }, nr = k("URLSearchParams"), [rr, or, ir, sr] = ["ReadableStream", "Request", "Response", "Headers"].map(k), ar = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
710
+ function te(t, e, { allOwnKeys: r = !1 } = {}) {
652
711
  if (t === null || typeof t > "u")
653
712
  return;
654
- let n, i;
655
- if (typeof t != "object" && (t = [t]), z(t))
656
- for (n = 0, i = t.length; n < i; n++)
713
+ let n, o;
714
+ if (typeof t != "object" && (t = [t]), J(t))
715
+ for (n = 0, o = t.length; n < o; n++)
657
716
  e.call(null, t[n], n, t);
658
717
  else {
659
- const o = r ? Object.getOwnPropertyNames(t) : Object.keys(t), a = o.length;
660
- let s;
661
- for (n = 0; n < a; n++)
662
- s = o[n], e.call(null, t[s], s, t);
718
+ const i = r ? Object.getOwnPropertyNames(t) : Object.keys(t), s = i.length;
719
+ let a;
720
+ for (n = 0; n < s; n++)
721
+ a = i[n], e.call(null, t[a], a, t);
663
722
  }
664
723
  }
665
- function Ut(t, e) {
724
+ function It(t, e) {
666
725
  e = e.toLowerCase();
667
726
  const r = Object.keys(t);
668
- let n = r.length, i;
727
+ let n = r.length, o;
669
728
  for (; n-- > 0; )
670
- if (i = r[n], e === i.toLowerCase())
671
- return i;
729
+ if (o = r[n], e === o.toLowerCase())
730
+ return o;
672
731
  return null;
673
732
  }
674
- const x = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, It = (t) => !Z(t) && t !== x;
675
- function $e() {
676
- const { caseless: t } = It(this) && this || {}, e = {}, r = (n, i) => {
677
- const o = t && Ut(e, i) || i;
678
- de(e[o]) && de(n) ? e[o] = $e(e[o], n) : de(n) ? e[o] = $e({}, n) : z(n) ? e[o] = n.slice() : e[o] = n;
733
+ const M = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Lt = (t) => !ee(t) && t !== M;
734
+ function He() {
735
+ const { caseless: t } = Lt(this) && this || {}, e = {}, r = (n, o) => {
736
+ const i = t && It(e, o) || o;
737
+ pe(e[i]) && pe(n) ? e[i] = He(e[i], n) : pe(n) ? e[i] = He({}, n) : J(n) ? e[i] = n.slice() : e[i] = n;
679
738
  };
680
- for (let n = 0, i = arguments.length; n < i; n++)
681
- arguments[n] && ee(arguments[n], r);
739
+ for (let n = 0, o = arguments.length; n < o; n++)
740
+ arguments[n] && te(arguments[n], r);
682
741
  return e;
683
742
  }
684
- const ir = (t, e, r, { allOwnKeys: n } = {}) => (ee(e, (i, o) => {
685
- r && _(i) ? t[o] = Ft(i, r) : t[o] = i;
686
- }, { allOwnKeys: n }), t), or = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), ar = (t, e, r, n) => {
743
+ const ur = (t, e, r, { allOwnKeys: n } = {}) => (te(e, (o, i) => {
744
+ r && _(o) ? t[i] = Ft(o, r) : t[i] = o;
745
+ }, { allOwnKeys: n }), t), cr = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), lr = (t, e, r, n) => {
687
746
  t.prototype = Object.create(e.prototype, n), t.prototype.constructor = t, Object.defineProperty(t, "super", {
688
747
  value: e.prototype
689
748
  }), r && Object.assign(t.prototype, r);
690
- }, sr = (t, e, r, n) => {
691
- let i, o, a;
692
- const s = {};
749
+ }, fr = (t, e, r, n) => {
750
+ let o, i, s;
751
+ const a = {};
693
752
  if (e = e || {}, t == null) return e;
694
753
  do {
695
- for (i = Object.getOwnPropertyNames(t), o = i.length; o-- > 0; )
696
- a = i[o], (!n || n(a, t, e)) && !s[a] && (e[a] = t[a], s[a] = !0);
697
- t = r !== !1 && Je(t);
754
+ for (o = Object.getOwnPropertyNames(t), i = o.length; i-- > 0; )
755
+ s = o[i], (!n || n(s, t, e)) && !a[s] && (e[s] = t[s], a[s] = !0);
756
+ t = r !== !1 && Ke(t);
698
757
  } while (t && (!r || r(t, e)) && t !== Object.prototype);
699
758
  return e;
700
- }, ur = (t, e, r) => {
759
+ }, dr = (t, e, r) => {
701
760
  t = String(t), (r === void 0 || r > t.length) && (r = t.length), r -= e.length;
702
761
  const n = t.indexOf(e, r);
703
762
  return n !== -1 && n === r;
704
- }, cr = (t) => {
763
+ }, pr = (t) => {
705
764
  if (!t) return null;
706
- if (z(t)) return t;
765
+ if (J(t)) return t;
707
766
  let e = t.length;
708
- if (!Bt(e)) return null;
767
+ if (!Ut(e)) return null;
709
768
  const r = new Array(e);
710
769
  for (; e-- > 0; )
711
770
  r[e] = t[e];
712
771
  return r;
713
- }, lr = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Je(Uint8Array)), fr = (t, e) => {
714
- const n = (t && t[we]).call(t);
715
- let i;
716
- for (; (i = n.next()) && !i.done; ) {
717
- const o = i.value;
718
- e.call(t, o[0], o[1]);
772
+ }, mr = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Ke(Uint8Array)), hr = (t, e) => {
773
+ const n = (t && t[Se]).call(t);
774
+ let o;
775
+ for (; (o = n.next()) && !o.done; ) {
776
+ const i = o.value;
777
+ e.call(t, i[0], i[1]);
719
778
  }
720
- }, dr = (t, e) => {
779
+ }, yr = (t, e) => {
721
780
  let r;
722
781
  const n = [];
723
782
  for (; (r = t.exec(e)) !== null; )
724
783
  n.push(r);
725
784
  return n;
726
- }, pr = P("HTMLFormElement"), mr = (t) => t.toLowerCase().replace(
785
+ }, br = k("HTMLFormElement"), gr = (t) => t.toLowerCase().replace(
727
786
  /[-_\s]([a-z\d])(\w*)/g,
728
- function(r, n, i) {
729
- return n.toUpperCase() + i;
787
+ function(r, n, o) {
788
+ return n.toUpperCase() + o;
730
789
  }
731
- ), ot = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), hr = P("RegExp"), Lt = (t, e) => {
790
+ ), st = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), vr = k("RegExp"), $t = (t, e) => {
732
791
  const r = Object.getOwnPropertyDescriptors(t), n = {};
733
- ee(r, (i, o) => {
734
- let a;
735
- (a = e(i, o, t)) !== !1 && (n[o] = a || i);
792
+ te(r, (o, i) => {
793
+ let s;
794
+ (s = e(o, i, t)) !== !1 && (n[i] = s || o);
736
795
  }), Object.defineProperties(t, n);
737
- }, yr = (t) => {
738
- Lt(t, (e, r) => {
796
+ }, wr = (t) => {
797
+ $t(t, (e, r) => {
739
798
  if (_(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
740
799
  return !1;
741
800
  const n = t[r];
@@ -749,103 +808,103 @@ const ir = (t, e, r, { allOwnKeys: n } = {}) => (ee(e, (i, o) => {
749
808
  });
750
809
  }
751
810
  });
752
- }, br = (t, e) => {
753
- const r = {}, n = (i) => {
754
- i.forEach((o) => {
755
- r[o] = !0;
811
+ }, Sr = (t, e) => {
812
+ const r = {}, n = (o) => {
813
+ o.forEach((i) => {
814
+ r[i] = !0;
756
815
  });
757
816
  };
758
- return z(t) ? n(t) : n(String(t).split(e)), r;
759
- }, gr = () => {
760
- }, vr = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
761
- function wr(t) {
762
- return !!(t && _(t.append) && t[xt] === "FormData" && t[we]);
763
- }
764
- const Sr = (t) => {
765
- const e = new Array(10), r = (n, i) => {
817
+ return J(t) ? n(t) : n(String(t).split(e)), r;
818
+ }, Or = () => {
819
+ }, Er = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
820
+ function Ar(t) {
821
+ return !!(t && _(t.append) && t[Mt] === "FormData" && t[Se]);
822
+ }
823
+ const Tr = (t) => {
824
+ const e = new Array(10), r = (n, o) => {
766
825
  if (Ae(n)) {
767
826
  if (e.indexOf(n) >= 0)
768
827
  return;
769
828
  if (!("toJSON" in n)) {
770
- e[i] = n;
771
- const o = z(n) ? [] : {};
772
- return ee(n, (a, s) => {
773
- const u = r(a, i + 1);
774
- !Z(u) && (o[s] = u);
775
- }), e[i] = void 0, o;
829
+ e[o] = n;
830
+ const i = J(n) ? [] : {};
831
+ return te(n, (s, a) => {
832
+ const u = r(s, o + 1);
833
+ !ee(u) && (i[a] = u);
834
+ }), e[o] = void 0, i;
776
835
  }
777
836
  }
778
837
  return n;
779
838
  };
780
839
  return r(t, 0);
781
- }, Or = P("AsyncFunction"), Ar = (t) => t && (Ae(t) || _(t)) && _(t.then) && _(t.catch), $t = ((t, e) => t ? setImmediate : e ? ((r, n) => (x.addEventListener("message", ({ source: i, data: o }) => {
782
- i === x && o === r && n.length && n.shift()();
783
- }, !1), (i) => {
784
- n.push(i), x.postMessage(r, "*");
840
+ }, _r = k("AsyncFunction"), Rr = (t) => t && (Ae(t) || _(t)) && _(t.then) && _(t.catch), Ht = ((t, e) => t ? setImmediate : e ? ((r, n) => (M.addEventListener("message", ({ source: o, data: i }) => {
841
+ o === M && i === r && n.length && n.shift()();
842
+ }, !1), (o) => {
843
+ n.push(o), M.postMessage(r, "*");
785
844
  }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
786
845
  typeof setImmediate == "function",
787
- _(x.postMessage)
788
- ), Er = typeof queueMicrotask < "u" ? queueMicrotask.bind(x) : typeof process < "u" && process.nextTick || $t, Tr = (t) => t != null && _(t[we]), f = {
789
- isArray: z,
790
- isArrayBuffer: Mt,
791
- isBuffer: $n,
792
- isFormData: Gn,
793
- isArrayBufferView: Hn,
794
- isString: Vn,
795
- isNumber: Bt,
796
- isBoolean: Wn,
846
+ _(M.postMessage)
847
+ ), Nr = typeof queueMicrotask < "u" ? queueMicrotask.bind(M) : typeof process < "u" && process.nextTick || Ht, Pr = (t) => t != null && _(t[Se]), f = {
848
+ isArray: J,
849
+ isArrayBuffer: Bt,
850
+ isBuffer: Xn,
851
+ isFormData: tr,
852
+ isArrayBufferView: zn,
853
+ isString: Jn,
854
+ isNumber: Ut,
855
+ isBoolean: Kn,
797
856
  isObject: Ae,
798
- isPlainObject: de,
799
- isReadableStream: Zn,
800
- isRequest: er,
801
- isResponse: tr,
802
- isHeaders: nr,
803
- isUndefined: Z,
804
- isDate: Xn,
805
- isFile: zn,
806
- isBlob: Jn,
807
- isRegExp: hr,
857
+ isPlainObject: pe,
858
+ isReadableStream: rr,
859
+ isRequest: or,
860
+ isResponse: ir,
861
+ isHeaders: sr,
862
+ isUndefined: ee,
863
+ isDate: Qn,
864
+ isFile: Gn,
865
+ isBlob: Yn,
866
+ isRegExp: vr,
808
867
  isFunction: _,
809
- isStream: Qn,
810
- isURLSearchParams: Yn,
811
- isTypedArray: lr,
812
- isFileList: Kn,
813
- forEach: ee,
814
- merge: $e,
815
- extend: ir,
816
- trim: rr,
817
- stripBOM: or,
818
- inherits: ar,
819
- toFlatObject: sr,
820
- kindOf: Se,
821
- kindOfTest: P,
822
- endsWith: ur,
823
- toArray: cr,
824
- forEachEntry: fr,
825
- matchAll: dr,
826
- isHTMLForm: pr,
827
- hasOwnProperty: ot,
828
- hasOwnProp: ot,
868
+ isStream: er,
869
+ isURLSearchParams: nr,
870
+ isTypedArray: mr,
871
+ isFileList: Zn,
872
+ forEach: te,
873
+ merge: He,
874
+ extend: ur,
875
+ trim: ar,
876
+ stripBOM: cr,
877
+ inherits: lr,
878
+ toFlatObject: fr,
879
+ kindOf: Oe,
880
+ kindOfTest: k,
881
+ endsWith: dr,
882
+ toArray: pr,
883
+ forEachEntry: hr,
884
+ matchAll: yr,
885
+ isHTMLForm: br,
886
+ hasOwnProperty: st,
887
+ hasOwnProp: st,
829
888
  // an alias to avoid ESLint no-prototype-builtins detection
830
- reduceDescriptors: Lt,
831
- freezeMethods: yr,
832
- toObjectSet: br,
833
- toCamelCase: mr,
834
- noop: gr,
835
- toFiniteNumber: vr,
836
- findKey: Ut,
837
- global: x,
838
- isContextDefined: It,
839
- isSpecCompliantForm: wr,
840
- toJSONObject: Sr,
841
- isAsyncFn: Or,
842
- isThenable: Ar,
843
- setImmediate: $t,
844
- asap: Er,
845
- isIterable: Tr
889
+ reduceDescriptors: $t,
890
+ freezeMethods: wr,
891
+ toObjectSet: Sr,
892
+ toCamelCase: gr,
893
+ noop: Or,
894
+ toFiniteNumber: Er,
895
+ findKey: It,
896
+ global: M,
897
+ isContextDefined: Lt,
898
+ isSpecCompliantForm: Ar,
899
+ toJSONObject: Tr,
900
+ isAsyncFn: _r,
901
+ isThenable: Rr,
902
+ setImmediate: Ht,
903
+ asap: Nr,
904
+ isIterable: Pr
846
905
  };
847
- function g(t, e, r, n, i) {
848
- Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), r && (this.config = r), n && (this.request = n), i && (this.response = i, this.status = i.status ? i.status : null);
906
+ function g(t, e, r, n, o) {
907
+ Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), r && (this.config = r), n && (this.request = n), o && (this.response = o, this.status = o.status ? o.status : null);
849
908
  }
850
909
  f.inherits(g, Error, {
851
910
  toJSON: function() {
@@ -868,7 +927,7 @@ f.inherits(g, Error, {
868
927
  };
869
928
  }
870
929
  });
871
- const Ht = g.prototype, Vt = {};
930
+ const Vt = g.prototype, Wt = {};
872
931
  [
873
932
  "ERR_BAD_OPTION_VALUE",
874
933
  "ERR_BAD_OPTION",
@@ -884,35 +943,35 @@ const Ht = g.prototype, Vt = {};
884
943
  "ERR_INVALID_URL"
885
944
  // eslint-disable-next-line func-names
886
945
  ].forEach((t) => {
887
- Vt[t] = { value: t };
946
+ Wt[t] = { value: t };
888
947
  });
889
- Object.defineProperties(g, Vt);
890
- Object.defineProperty(Ht, "isAxiosError", { value: !0 });
891
- g.from = (t, e, r, n, i, o) => {
892
- const a = Object.create(Ht);
893
- return f.toFlatObject(t, a, function(u) {
948
+ Object.defineProperties(g, Wt);
949
+ Object.defineProperty(Vt, "isAxiosError", { value: !0 });
950
+ g.from = (t, e, r, n, o, i) => {
951
+ const s = Object.create(Vt);
952
+ return f.toFlatObject(t, s, function(u) {
894
953
  return u !== Error.prototype;
895
- }, (s) => s !== "isAxiosError"), g.call(a, t.message, e, r, n, i), a.cause = t, a.name = t.name, o && Object.assign(a, o), a;
954
+ }, (a) => a !== "isAxiosError"), g.call(s, t.message, e, r, n, o), s.cause = t, s.name = t.name, i && Object.assign(s, i), s;
896
955
  };
897
- const _r = null;
898
- function He(t) {
956
+ const kr = null;
957
+ function Ve(t) {
899
958
  return f.isPlainObject(t) || f.isArray(t);
900
959
  }
901
- function Wt(t) {
960
+ function Xt(t) {
902
961
  return f.endsWith(t, "[]") ? t.slice(0, -2) : t;
903
962
  }
904
963
  function at(t, e, r) {
905
- return t ? t.concat(e).map(function(i, o) {
906
- return i = Wt(i), !r && o ? "[" + i + "]" : i;
964
+ return t ? t.concat(e).map(function(o, i) {
965
+ return o = Xt(o), !r && i ? "[" + o + "]" : o;
907
966
  }).join(r ? "." : "") : e;
908
967
  }
909
- function Rr(t) {
910
- return f.isArray(t) && !t.some(He);
968
+ function Cr(t) {
969
+ return f.isArray(t) && !t.some(Ve);
911
970
  }
912
- const Nr = f.toFlatObject(f, {}, null, function(e) {
971
+ const qr = f.toFlatObject(f, {}, null, function(e) {
913
972
  return /^is[A-Z]/.test(e);
914
973
  });
915
- function Ee(t, e, r) {
974
+ function Te(t, e, r) {
916
975
  if (!f.isObject(t))
917
976
  throw new TypeError("target must be an object");
918
977
  e = e || new FormData(), r = f.toFlatObject(r, {
@@ -922,8 +981,8 @@ function Ee(t, e, r) {
922
981
  }, !1, function(b, h) {
923
982
  return !f.isUndefined(h[b]);
924
983
  });
925
- const n = r.metaTokens, i = r.visitor || l, o = r.dots, a = r.indexes, u = (r.Blob || typeof Blob < "u" && Blob) && f.isSpecCompliantForm(e);
926
- if (!f.isFunction(i))
984
+ const n = r.metaTokens, o = r.visitor || l, i = r.dots, s = r.indexes, u = (r.Blob || typeof Blob < "u" && Blob) && f.isSpecCompliantForm(e);
985
+ if (!f.isFunction(o))
927
986
  throw new TypeError("visitor must be a function");
928
987
  function c(p) {
929
988
  if (p === null) return "";
@@ -940,28 +999,28 @@ function Ee(t, e, r) {
940
999
  if (p && !h && typeof p == "object") {
941
1000
  if (f.endsWith(b, "{}"))
942
1001
  b = n ? b : b.slice(0, -2), p = JSON.stringify(p);
943
- else if (f.isArray(p) && Rr(p) || (f.isFileList(p) || f.endsWith(b, "[]")) && (v = f.toArray(p)))
944
- return b = Wt(b), v.forEach(function(O, C) {
1002
+ else if (f.isArray(p) && Cr(p) || (f.isFileList(p) || f.endsWith(b, "[]")) && (v = f.toArray(p)))
1003
+ return b = Xt(b), v.forEach(function(O, q) {
945
1004
  !(f.isUndefined(O) || O === null) && e.append(
946
1005
  // eslint-disable-next-line no-nested-ternary
947
- a === !0 ? at([b], C, o) : a === null ? b : b + "[]",
1006
+ s === !0 ? at([b], q, i) : s === null ? b : b + "[]",
948
1007
  c(O)
949
1008
  );
950
1009
  }), !1;
951
1010
  }
952
- return He(p) ? !0 : (e.append(at(h, b, o), c(p)), !1);
1011
+ return Ve(p) ? !0 : (e.append(at(h, b, i), c(p)), !1);
953
1012
  }
954
- const d = [], m = Object.assign(Nr, {
1013
+ const d = [], m = Object.assign(qr, {
955
1014
  defaultVisitor: l,
956
1015
  convertValue: c,
957
- isVisitable: He
1016
+ isVisitable: Ve
958
1017
  });
959
1018
  function y(p, b) {
960
1019
  if (!f.isUndefined(p)) {
961
1020
  if (d.indexOf(p) !== -1)
962
1021
  throw Error("Circular reference detected in " + b.join("."));
963
1022
  d.push(p), f.forEach(p, function(v, w) {
964
- (!(f.isUndefined(v) || v === null) && i.call(
1023
+ (!(f.isUndefined(v) || v === null) && o.call(
965
1024
  e,
966
1025
  v,
967
1026
  f.isString(w) ? w.trim() : w,
@@ -975,7 +1034,7 @@ function Ee(t, e, r) {
975
1034
  throw new TypeError("data must be an object");
976
1035
  return y(t), e;
977
1036
  }
978
- function st(t) {
1037
+ function ut(t) {
979
1038
  const e = {
980
1039
  "!": "%21",
981
1040
  "'": "%27",
@@ -989,40 +1048,40 @@ function st(t) {
989
1048
  return e[n];
990
1049
  });
991
1050
  }
992
- function Ke(t, e) {
993
- this._pairs = [], t && Ee(t, this, e);
1051
+ function Qe(t, e) {
1052
+ this._pairs = [], t && Te(t, this, e);
994
1053
  }
995
- const Xt = Ke.prototype;
996
- Xt.append = function(e, r) {
1054
+ const zt = Qe.prototype;
1055
+ zt.append = function(e, r) {
997
1056
  this._pairs.push([e, r]);
998
1057
  };
999
- Xt.toString = function(e) {
1058
+ zt.toString = function(e) {
1000
1059
  const r = e ? function(n) {
1001
- return e.call(this, n, st);
1002
- } : st;
1003
- return this._pairs.map(function(i) {
1004
- return r(i[0]) + "=" + r(i[1]);
1060
+ return e.call(this, n, ut);
1061
+ } : ut;
1062
+ return this._pairs.map(function(o) {
1063
+ return r(o[0]) + "=" + r(o[1]);
1005
1064
  }, "").join("&");
1006
1065
  };
1007
- function Pr(t) {
1066
+ function Dr(t) {
1008
1067
  return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
1009
1068
  }
1010
- function zt(t, e, r) {
1069
+ function Jt(t, e, r) {
1011
1070
  if (!e)
1012
1071
  return t;
1013
- const n = r && r.encode || Pr;
1072
+ const n = r && r.encode || Dr;
1014
1073
  f.isFunction(r) && (r = {
1015
1074
  serialize: r
1016
1075
  });
1017
- const i = r && r.serialize;
1018
- let o;
1019
- if (i ? o = i(e, r) : o = f.isURLSearchParams(e) ? e.toString() : new Ke(e, r).toString(n), o) {
1020
- const a = t.indexOf("#");
1021
- a !== -1 && (t = t.slice(0, a)), t += (t.indexOf("?") === -1 ? "?" : "&") + o;
1076
+ const o = r && r.serialize;
1077
+ let i;
1078
+ if (o ? i = o(e, r) : i = f.isURLSearchParams(e) ? e.toString() : new Qe(e, r).toString(n), i) {
1079
+ const s = t.indexOf("#");
1080
+ s !== -1 && (t = t.slice(0, s)), t += (t.indexOf("?") === -1 ? "?" : "&") + i;
1022
1081
  }
1023
1082
  return t;
1024
1083
  }
1025
- class ut {
1084
+ class ct {
1026
1085
  constructor() {
1027
1086
  this.handlers = [];
1028
1087
  }
@@ -1076,65 +1135,65 @@ class ut {
1076
1135
  });
1077
1136
  }
1078
1137
  }
1079
- const Jt = {
1138
+ const Kt = {
1080
1139
  silentJSONParsing: !0,
1081
1140
  forcedJSONParsing: !0,
1082
1141
  clarifyTimeoutError: !1
1083
- }, kr = typeof URLSearchParams < "u" ? URLSearchParams : Ke, Cr = typeof FormData < "u" ? FormData : null, qr = typeof Blob < "u" ? Blob : null, jr = {
1142
+ }, jr = typeof URLSearchParams < "u" ? URLSearchParams : Qe, xr = typeof FormData < "u" ? FormData : null, Fr = typeof Blob < "u" ? Blob : null, Mr = {
1084
1143
  isBrowser: !0,
1085
1144
  classes: {
1086
- URLSearchParams: kr,
1087
- FormData: Cr,
1088
- Blob: qr
1145
+ URLSearchParams: jr,
1146
+ FormData: xr,
1147
+ Blob: Fr
1089
1148
  },
1090
1149
  protocols: ["http", "https", "file", "blob", "url", "data"]
1091
- }, Qe = typeof window < "u" && typeof document < "u", Ve = typeof navigator == "object" && navigator || void 0, Dr = Qe && (!Ve || ["ReactNative", "NativeScript", "NS"].indexOf(Ve.product) < 0), Fr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
1092
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", xr = Qe && window.location.href || "http://localhost", Mr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1150
+ }, Ge = typeof window < "u" && typeof document < "u", We = typeof navigator == "object" && navigator || void 0, Br = Ge && (!We || ["ReactNative", "NativeScript", "NS"].indexOf(We.product) < 0), Ur = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
1151
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ir = Ge && window.location.href || "http://localhost", Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1093
1152
  __proto__: null,
1094
- hasBrowserEnv: Qe,
1095
- hasStandardBrowserEnv: Dr,
1096
- hasStandardBrowserWebWorkerEnv: Fr,
1097
- navigator: Ve,
1098
- origin: xr
1099
- }, Symbol.toStringTag, { value: "Module" })), E = {
1100
- ...Mr,
1101
- ...jr
1153
+ hasBrowserEnv: Ge,
1154
+ hasStandardBrowserEnv: Br,
1155
+ hasStandardBrowserWebWorkerEnv: Ur,
1156
+ navigator: We,
1157
+ origin: Ir
1158
+ }, Symbol.toStringTag, { value: "Module" })), A = {
1159
+ ...Lr,
1160
+ ...Mr
1102
1161
  };
1103
- function Br(t, e) {
1104
- return Ee(t, new E.classes.URLSearchParams(), Object.assign({
1105
- visitor: function(r, n, i, o) {
1106
- return E.isNode && f.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
1162
+ function $r(t, e) {
1163
+ return Te(t, new A.classes.URLSearchParams(), Object.assign({
1164
+ visitor: function(r, n, o, i) {
1165
+ return A.isNode && f.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
1107
1166
  }
1108
1167
  }, e));
1109
1168
  }
1110
- function Ur(t) {
1169
+ function Hr(t) {
1111
1170
  return f.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
1112
1171
  }
1113
- function Ir(t) {
1172
+ function Vr(t) {
1114
1173
  const e = {}, r = Object.keys(t);
1115
1174
  let n;
1116
- const i = r.length;
1117
- let o;
1118
- for (n = 0; n < i; n++)
1119
- o = r[n], e[o] = t[o];
1175
+ const o = r.length;
1176
+ let i;
1177
+ for (n = 0; n < o; n++)
1178
+ i = r[n], e[i] = t[i];
1120
1179
  return e;
1121
1180
  }
1122
- function Kt(t) {
1123
- function e(r, n, i, o) {
1124
- let a = r[o++];
1125
- if (a === "__proto__") return !0;
1126
- const s = Number.isFinite(+a), u = o >= r.length;
1127
- return a = !a && f.isArray(i) ? i.length : a, u ? (f.hasOwnProp(i, a) ? i[a] = [i[a], n] : i[a] = n, !s) : ((!i[a] || !f.isObject(i[a])) && (i[a] = []), e(r, n, i[a], o) && f.isArray(i[a]) && (i[a] = Ir(i[a])), !s);
1181
+ function Qt(t) {
1182
+ function e(r, n, o, i) {
1183
+ let s = r[i++];
1184
+ if (s === "__proto__") return !0;
1185
+ const a = Number.isFinite(+s), u = i >= r.length;
1186
+ return s = !s && f.isArray(o) ? o.length : s, u ? (f.hasOwnProp(o, s) ? o[s] = [o[s], n] : o[s] = n, !a) : ((!o[s] || !f.isObject(o[s])) && (o[s] = []), e(r, n, o[s], i) && f.isArray(o[s]) && (o[s] = Vr(o[s])), !a);
1128
1187
  }
1129
1188
  if (f.isFormData(t) && f.isFunction(t.entries)) {
1130
1189
  const r = {};
1131
- return f.forEachEntry(t, (n, i) => {
1132
- e(Ur(n), i, r, 0);
1190
+ return f.forEachEntry(t, (n, o) => {
1191
+ e(Hr(n), o, r, 0);
1133
1192
  }), r;
1134
1193
  }
1135
1194
  return null;
1136
1195
  }
1137
- function Lr(t, e, r) {
1196
+ function Wr(t, e, r) {
1138
1197
  if (f.isString(t))
1139
1198
  try {
1140
1199
  return (e || JSON.parse)(t), f.trim(t);
@@ -1144,45 +1203,45 @@ function Lr(t, e, r) {
1144
1203
  }
1145
1204
  return (r || JSON.stringify)(t);
1146
1205
  }
1147
- const te = {
1148
- transitional: Jt,
1206
+ const ne = {
1207
+ transitional: Kt,
1149
1208
  adapter: ["xhr", "http", "fetch"],
1150
1209
  transformRequest: [function(e, r) {
1151
- const n = r.getContentType() || "", i = n.indexOf("application/json") > -1, o = f.isObject(e);
1152
- if (o && f.isHTMLForm(e) && (e = new FormData(e)), f.isFormData(e))
1153
- return i ? JSON.stringify(Kt(e)) : e;
1210
+ const n = r.getContentType() || "", o = n.indexOf("application/json") > -1, i = f.isObject(e);
1211
+ if (i && f.isHTMLForm(e) && (e = new FormData(e)), f.isFormData(e))
1212
+ return o ? JSON.stringify(Qt(e)) : e;
1154
1213
  if (f.isArrayBuffer(e) || f.isBuffer(e) || f.isStream(e) || f.isFile(e) || f.isBlob(e) || f.isReadableStream(e))
1155
1214
  return e;
1156
1215
  if (f.isArrayBufferView(e))
1157
1216
  return e.buffer;
1158
1217
  if (f.isURLSearchParams(e))
1159
1218
  return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
1160
- let s;
1161
- if (o) {
1219
+ let a;
1220
+ if (i) {
1162
1221
  if (n.indexOf("application/x-www-form-urlencoded") > -1)
1163
- return Br(e, this.formSerializer).toString();
1164
- if ((s = f.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
1222
+ return $r(e, this.formSerializer).toString();
1223
+ if ((a = f.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
1165
1224
  const u = this.env && this.env.FormData;
1166
- return Ee(
1167
- s ? { "files[]": e } : e,
1225
+ return Te(
1226
+ a ? { "files[]": e } : e,
1168
1227
  u && new u(),
1169
1228
  this.formSerializer
1170
1229
  );
1171
1230
  }
1172
1231
  }
1173
- return o || i ? (r.setContentType("application/json", !1), Lr(e)) : e;
1232
+ return i || o ? (r.setContentType("application/json", !1), Wr(e)) : e;
1174
1233
  }],
1175
1234
  transformResponse: [function(e) {
1176
- const r = this.transitional || te.transitional, n = r && r.forcedJSONParsing, i = this.responseType === "json";
1235
+ const r = this.transitional || ne.transitional, n = r && r.forcedJSONParsing, o = this.responseType === "json";
1177
1236
  if (f.isResponse(e) || f.isReadableStream(e))
1178
1237
  return e;
1179
- if (e && f.isString(e) && (n && !this.responseType || i)) {
1180
- const a = !(r && r.silentJSONParsing) && i;
1238
+ if (e && f.isString(e) && (n && !this.responseType || o)) {
1239
+ const s = !(r && r.silentJSONParsing) && o;
1181
1240
  try {
1182
1241
  return JSON.parse(e);
1183
- } catch (s) {
1184
- if (a)
1185
- throw s.name === "SyntaxError" ? g.from(s, g.ERR_BAD_RESPONSE, this, null, this.response) : s;
1242
+ } catch (a) {
1243
+ if (s)
1244
+ throw a.name === "SyntaxError" ? g.from(a, g.ERR_BAD_RESPONSE, this, null, this.response) : a;
1186
1245
  }
1187
1246
  }
1188
1247
  return e;
@@ -1197,8 +1256,8 @@ const te = {
1197
1256
  maxContentLength: -1,
1198
1257
  maxBodyLength: -1,
1199
1258
  env: {
1200
- FormData: E.classes.FormData,
1201
- Blob: E.classes.Blob
1259
+ FormData: A.classes.FormData,
1260
+ Blob: A.classes.Blob
1202
1261
  },
1203
1262
  validateStatus: function(e) {
1204
1263
  return e >= 200 && e < 300;
@@ -1211,9 +1270,9 @@ const te = {
1211
1270
  }
1212
1271
  };
1213
1272
  f.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
1214
- te.headers[t] = {};
1273
+ ne.headers[t] = {};
1215
1274
  });
1216
- const $r = f.toObjectSet([
1275
+ const Xr = f.toObjectSet([
1217
1276
  "age",
1218
1277
  "authorization",
1219
1278
  "content-length",
@@ -1231,47 +1290,47 @@ const $r = f.toObjectSet([
1231
1290
  "referer",
1232
1291
  "retry-after",
1233
1292
  "user-agent"
1234
- ]), Hr = (t) => {
1293
+ ]), zr = (t) => {
1235
1294
  const e = {};
1236
- let r, n, i;
1295
+ let r, n, o;
1237
1296
  return t && t.split(`
1238
- `).forEach(function(a) {
1239
- i = a.indexOf(":"), r = a.substring(0, i).trim().toLowerCase(), n = a.substring(i + 1).trim(), !(!r || e[r] && $r[r]) && (r === "set-cookie" ? e[r] ? e[r].push(n) : e[r] = [n] : e[r] = e[r] ? e[r] + ", " + n : n);
1297
+ `).forEach(function(s) {
1298
+ o = s.indexOf(":"), r = s.substring(0, o).trim().toLowerCase(), n = s.substring(o + 1).trim(), !(!r || e[r] && Xr[r]) && (r === "set-cookie" ? e[r] ? e[r].push(n) : e[r] = [n] : e[r] = e[r] ? e[r] + ", " + n : n);
1240
1299
  }), e;
1241
- }, ct = Symbol("internals");
1242
- function K(t) {
1300
+ }, lt = Symbol("internals");
1301
+ function Q(t) {
1243
1302
  return t && String(t).trim().toLowerCase();
1244
1303
  }
1245
- function pe(t) {
1246
- return t === !1 || t == null ? t : f.isArray(t) ? t.map(pe) : String(t);
1304
+ function me(t) {
1305
+ return t === !1 || t == null ? t : f.isArray(t) ? t.map(me) : String(t);
1247
1306
  }
1248
- function Vr(t) {
1307
+ function Jr(t) {
1249
1308
  const e = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
1250
1309
  let n;
1251
1310
  for (; n = r.exec(t); )
1252
1311
  e[n[1]] = n[2];
1253
1312
  return e;
1254
1313
  }
1255
- const Wr = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
1256
- function Fe(t, e, r, n, i) {
1314
+ const Kr = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
1315
+ function Fe(t, e, r, n, o) {
1257
1316
  if (f.isFunction(n))
1258
1317
  return n.call(this, e, r);
1259
- if (i && (e = r), !!f.isString(e)) {
1318
+ if (o && (e = r), !!f.isString(e)) {
1260
1319
  if (f.isString(n))
1261
1320
  return e.indexOf(n) !== -1;
1262
1321
  if (f.isRegExp(n))
1263
1322
  return n.test(e);
1264
1323
  }
1265
1324
  }
1266
- function Xr(t) {
1325
+ function Qr(t) {
1267
1326
  return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, r, n) => r.toUpperCase() + n);
1268
1327
  }
1269
- function zr(t, e) {
1328
+ function Gr(t, e) {
1270
1329
  const r = f.toCamelCase(" " + e);
1271
1330
  ["get", "set", "has"].forEach((n) => {
1272
1331
  Object.defineProperty(t, n + r, {
1273
- value: function(i, o, a) {
1274
- return this[n].call(this, e, i, o, a);
1332
+ value: function(o, i, s) {
1333
+ return this[n].call(this, e, o, i, s);
1275
1334
  },
1276
1335
  configurable: !0
1277
1336
  });
@@ -1282,50 +1341,50 @@ let R = class {
1282
1341
  e && this.set(e);
1283
1342
  }
1284
1343
  set(e, r, n) {
1285
- const i = this;
1286
- function o(s, u, c) {
1287
- const l = K(u);
1344
+ const o = this;
1345
+ function i(a, u, c) {
1346
+ const l = Q(u);
1288
1347
  if (!l)
1289
1348
  throw new Error("header name must be a non-empty string");
1290
- const d = f.findKey(i, l);
1291
- (!d || i[d] === void 0 || c === !0 || c === void 0 && i[d] !== !1) && (i[d || u] = pe(s));
1349
+ const d = f.findKey(o, l);
1350
+ (!d || o[d] === void 0 || c === !0 || c === void 0 && o[d] !== !1) && (o[d || u] = me(a));
1292
1351
  }
1293
- const a = (s, u) => f.forEach(s, (c, l) => o(c, l, u));
1352
+ const s = (a, u) => f.forEach(a, (c, l) => i(c, l, u));
1294
1353
  if (f.isPlainObject(e) || e instanceof this.constructor)
1295
- a(e, r);
1296
- else if (f.isString(e) && (e = e.trim()) && !Wr(e))
1297
- a(Hr(e), r);
1354
+ s(e, r);
1355
+ else if (f.isString(e) && (e = e.trim()) && !Kr(e))
1356
+ s(zr(e), r);
1298
1357
  else if (f.isObject(e) && f.isIterable(e)) {
1299
- let s = {}, u, c;
1358
+ let a = {}, u, c;
1300
1359
  for (const l of e) {
1301
1360
  if (!f.isArray(l))
1302
1361
  throw TypeError("Object iterator must return a key-value pair");
1303
- s[c = l[0]] = (u = s[c]) ? f.isArray(u) ? [...u, l[1]] : [u, l[1]] : l[1];
1362
+ a[c = l[0]] = (u = a[c]) ? f.isArray(u) ? [...u, l[1]] : [u, l[1]] : l[1];
1304
1363
  }
1305
- a(s, r);
1364
+ s(a, r);
1306
1365
  } else
1307
- e != null && o(r, e, n);
1366
+ e != null && i(r, e, n);
1308
1367
  return this;
1309
1368
  }
1310
1369
  get(e, r) {
1311
- if (e = K(e), e) {
1370
+ if (e = Q(e), e) {
1312
1371
  const n = f.findKey(this, e);
1313
1372
  if (n) {
1314
- const i = this[n];
1373
+ const o = this[n];
1315
1374
  if (!r)
1316
- return i;
1375
+ return o;
1317
1376
  if (r === !0)
1318
- return Vr(i);
1377
+ return Jr(o);
1319
1378
  if (f.isFunction(r))
1320
- return r.call(this, i, n);
1379
+ return r.call(this, o, n);
1321
1380
  if (f.isRegExp(r))
1322
- return r.exec(i);
1381
+ return r.exec(o);
1323
1382
  throw new TypeError("parser must be boolean|regexp|function");
1324
1383
  }
1325
1384
  }
1326
1385
  }
1327
1386
  has(e, r) {
1328
- if (e = K(e), e) {
1387
+ if (e = Q(e), e) {
1329
1388
  const n = f.findKey(this, e);
1330
1389
  return !!(n && this[n] !== void 0 && (!r || Fe(this, this[n], n, r)));
1331
1390
  }
@@ -1333,34 +1392,34 @@ let R = class {
1333
1392
  }
1334
1393
  delete(e, r) {
1335
1394
  const n = this;
1336
- let i = !1;
1337
- function o(a) {
1338
- if (a = K(a), a) {
1339
- const s = f.findKey(n, a);
1340
- s && (!r || Fe(n, n[s], s, r)) && (delete n[s], i = !0);
1395
+ let o = !1;
1396
+ function i(s) {
1397
+ if (s = Q(s), s) {
1398
+ const a = f.findKey(n, s);
1399
+ a && (!r || Fe(n, n[a], a, r)) && (delete n[a], o = !0);
1341
1400
  }
1342
1401
  }
1343
- return f.isArray(e) ? e.forEach(o) : o(e), i;
1402
+ return f.isArray(e) ? e.forEach(i) : i(e), o;
1344
1403
  }
1345
1404
  clear(e) {
1346
1405
  const r = Object.keys(this);
1347
- let n = r.length, i = !1;
1406
+ let n = r.length, o = !1;
1348
1407
  for (; n--; ) {
1349
- const o = r[n];
1350
- (!e || Fe(this, this[o], o, e, !0)) && (delete this[o], i = !0);
1408
+ const i = r[n];
1409
+ (!e || Fe(this, this[i], i, e, !0)) && (delete this[i], o = !0);
1351
1410
  }
1352
- return i;
1411
+ return o;
1353
1412
  }
1354
1413
  normalize(e) {
1355
1414
  const r = this, n = {};
1356
- return f.forEach(this, (i, o) => {
1357
- const a = f.findKey(n, o);
1358
- if (a) {
1359
- r[a] = pe(i), delete r[o];
1415
+ return f.forEach(this, (o, i) => {
1416
+ const s = f.findKey(n, i);
1417
+ if (s) {
1418
+ r[s] = me(o), delete r[i];
1360
1419
  return;
1361
1420
  }
1362
- const s = e ? Xr(o) : String(o).trim();
1363
- s !== o && delete r[o], r[s] = pe(i), n[s] = !0;
1421
+ const a = e ? Qr(i) : String(i).trim();
1422
+ a !== i && delete r[i], r[a] = me(o), n[a] = !0;
1364
1423
  }), this;
1365
1424
  }
1366
1425
  concat(...e) {
@@ -1368,8 +1427,8 @@ let R = class {
1368
1427
  }
1369
1428
  toJSON(e) {
1370
1429
  const r = /* @__PURE__ */ Object.create(null);
1371
- return f.forEach(this, (n, i) => {
1372
- n != null && n !== !1 && (r[i] = e && f.isArray(n) ? n.join(", ") : n);
1430
+ return f.forEach(this, (n, o) => {
1431
+ n != null && n !== !1 && (r[o] = e && f.isArray(n) ? n.join(", ") : n);
1373
1432
  }), r;
1374
1433
  }
1375
1434
  [Symbol.iterator]() {
@@ -1390,17 +1449,17 @@ let R = class {
1390
1449
  }
1391
1450
  static concat(e, ...r) {
1392
1451
  const n = new this(e);
1393
- return r.forEach((i) => n.set(i)), n;
1452
+ return r.forEach((o) => n.set(o)), n;
1394
1453
  }
1395
1454
  static accessor(e) {
1396
- const n = (this[ct] = this[ct] = {
1455
+ const n = (this[lt] = this[lt] = {
1397
1456
  accessors: {}
1398
- }).accessors, i = this.prototype;
1399
- function o(a) {
1400
- const s = K(a);
1401
- n[s] || (zr(i, a), n[s] = !0);
1457
+ }).accessors, o = this.prototype;
1458
+ function i(s) {
1459
+ const a = Q(s);
1460
+ n[a] || (Gr(o, s), n[a] = !0);
1402
1461
  }
1403
- return f.isArray(e) ? e.forEach(o) : o(e), this;
1462
+ return f.isArray(e) ? e.forEach(i) : i(e), this;
1404
1463
  }
1405
1464
  };
1406
1465
  R.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
@@ -1414,23 +1473,23 @@ f.reduceDescriptors(R.prototype, ({ value: t }, e) => {
1414
1473
  };
1415
1474
  });
1416
1475
  f.freezeMethods(R);
1417
- function xe(t, e) {
1418
- const r = this || te, n = e || r, i = R.from(n.headers);
1419
- let o = n.data;
1420
- return f.forEach(t, function(s) {
1421
- o = s.call(r, o, i.normalize(), e ? e.status : void 0);
1422
- }), i.normalize(), o;
1423
- }
1424
- function Qt(t) {
1476
+ function Me(t, e) {
1477
+ const r = this || ne, n = e || r, o = R.from(n.headers);
1478
+ let i = n.data;
1479
+ return f.forEach(t, function(a) {
1480
+ i = a.call(r, i, o.normalize(), e ? e.status : void 0);
1481
+ }), o.normalize(), i;
1482
+ }
1483
+ function Gt(t) {
1425
1484
  return !!(t && t.__CANCEL__);
1426
1485
  }
1427
- function J(t, e, r) {
1486
+ function K(t, e, r) {
1428
1487
  g.call(this, t ?? "canceled", g.ERR_CANCELED, e, r), this.name = "CanceledError";
1429
1488
  }
1430
- f.inherits(J, g, {
1489
+ f.inherits(K, g, {
1431
1490
  __CANCEL__: !0
1432
1491
  });
1433
- function Gt(t, e, r) {
1492
+ function Yt(t, e, r) {
1434
1493
  const n = r.config.validateStatus;
1435
1494
  !r.status || !n || n(r.status) ? t(r) : e(new g(
1436
1495
  "Request failed with status code " + r.status,
@@ -1440,73 +1499,73 @@ function Gt(t, e, r) {
1440
1499
  r
1441
1500
  ));
1442
1501
  }
1443
- function Jr(t) {
1502
+ function Yr(t) {
1444
1503
  const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
1445
1504
  return e && e[1] || "";
1446
1505
  }
1447
- function Kr(t, e) {
1506
+ function Zr(t, e) {
1448
1507
  t = t || 10;
1449
1508
  const r = new Array(t), n = new Array(t);
1450
- let i = 0, o = 0, a;
1509
+ let o = 0, i = 0, s;
1451
1510
  return e = e !== void 0 ? e : 1e3, function(u) {
1452
- const c = Date.now(), l = n[o];
1453
- a || (a = c), r[i] = u, n[i] = c;
1454
- let d = o, m = 0;
1455
- for (; d !== i; )
1511
+ const c = Date.now(), l = n[i];
1512
+ s || (s = c), r[o] = u, n[o] = c;
1513
+ let d = i, m = 0;
1514
+ for (; d !== o; )
1456
1515
  m += r[d++], d = d % t;
1457
- if (i = (i + 1) % t, i === o && (o = (o + 1) % t), c - a < e)
1516
+ if (o = (o + 1) % t, o === i && (i = (i + 1) % t), c - s < e)
1458
1517
  return;
1459
1518
  const y = l && c - l;
1460
1519
  return y ? Math.round(m * 1e3 / y) : void 0;
1461
1520
  };
1462
1521
  }
1463
- function Qr(t, e) {
1464
- let r = 0, n = 1e3 / e, i, o;
1465
- const a = (c, l = Date.now()) => {
1466
- r = l, i = null, o && (clearTimeout(o), o = null), t.apply(null, c);
1522
+ function eo(t, e) {
1523
+ let r = 0, n = 1e3 / e, o, i;
1524
+ const s = (c, l = Date.now()) => {
1525
+ r = l, o = null, i && (clearTimeout(i), i = null), t.apply(null, c);
1467
1526
  };
1468
1527
  return [(...c) => {
1469
1528
  const l = Date.now(), d = l - r;
1470
- d >= n ? a(c, l) : (i = c, o || (o = setTimeout(() => {
1471
- o = null, a(i);
1529
+ d >= n ? s(c, l) : (o = c, i || (i = setTimeout(() => {
1530
+ i = null, s(o);
1472
1531
  }, n - d)));
1473
- }, () => i && a(i)];
1532
+ }, () => o && s(o)];
1474
1533
  }
1475
- const be = (t, e, r = 3) => {
1534
+ const ge = (t, e, r = 3) => {
1476
1535
  let n = 0;
1477
- const i = Kr(50, 250);
1478
- return Qr((o) => {
1479
- const a = o.loaded, s = o.lengthComputable ? o.total : void 0, u = a - n, c = i(u), l = a <= s;
1480
- n = a;
1536
+ const o = Zr(50, 250);
1537
+ return eo((i) => {
1538
+ const s = i.loaded, a = i.lengthComputable ? i.total : void 0, u = s - n, c = o(u), l = s <= a;
1539
+ n = s;
1481
1540
  const d = {
1482
- loaded: a,
1483
- total: s,
1484
- progress: s ? a / s : void 0,
1541
+ loaded: s,
1542
+ total: a,
1543
+ progress: a ? s / a : void 0,
1485
1544
  bytes: u,
1486
1545
  rate: c || void 0,
1487
- estimated: c && s && l ? (s - a) / c : void 0,
1488
- event: o,
1489
- lengthComputable: s != null,
1546
+ estimated: c && a && l ? (a - s) / c : void 0,
1547
+ event: i,
1548
+ lengthComputable: a != null,
1490
1549
  [e ? "download" : "upload"]: !0
1491
1550
  };
1492
1551
  t(d);
1493
1552
  }, r);
1494
- }, lt = (t, e) => {
1553
+ }, ft = (t, e) => {
1495
1554
  const r = t != null;
1496
1555
  return [(n) => e[0]({
1497
1556
  lengthComputable: r,
1498
1557
  total: t,
1499
1558
  loaded: n
1500
1559
  }), e[1]];
1501
- }, ft = (t) => (...e) => f.asap(() => t(...e)), Gr = E.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (r) => (r = new URL(r, E.origin), t.protocol === r.protocol && t.host === r.host && (e || t.port === r.port)))(
1502
- new URL(E.origin),
1503
- E.navigator && /(msie|trident)/i.test(E.navigator.userAgent)
1504
- ) : () => !0, Yr = E.hasStandardBrowserEnv ? (
1560
+ }, dt = (t) => (...e) => f.asap(() => t(...e)), to = A.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (r) => (r = new URL(r, A.origin), t.protocol === r.protocol && t.host === r.host && (e || t.port === r.port)))(
1561
+ new URL(A.origin),
1562
+ A.navigator && /(msie|trident)/i.test(A.navigator.userAgent)
1563
+ ) : () => !0, no = A.hasStandardBrowserEnv ? (
1505
1564
  // Standard browser envs support document.cookie
1506
1565
  {
1507
- write(t, e, r, n, i, o) {
1508
- const a = [t + "=" + encodeURIComponent(e)];
1509
- f.isNumber(r) && a.push("expires=" + new Date(r).toGMTString()), f.isString(n) && a.push("path=" + n), f.isString(i) && a.push("domain=" + i), o === !0 && a.push("secure"), document.cookie = a.join("; ");
1566
+ write(t, e, r, n, o, i) {
1567
+ const s = [t + "=" + encodeURIComponent(e)];
1568
+ f.isNumber(r) && s.push("expires=" + new Date(r).toGMTString()), f.isString(n) && s.push("path=" + n), f.isString(o) && s.push("domain=" + o), i === !0 && s.push("secure"), document.cookie = s.join("; ");
1510
1569
  },
1511
1570
  read(t) {
1512
1571
  const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
@@ -1528,127 +1587,127 @@ const be = (t, e, r = 3) => {
1528
1587
  }
1529
1588
  }
1530
1589
  );
1531
- function Zr(t) {
1590
+ function ro(t) {
1532
1591
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
1533
1592
  }
1534
- function ei(t, e) {
1593
+ function oo(t, e) {
1535
1594
  return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
1536
1595
  }
1537
- function Yt(t, e, r) {
1538
- let n = !Zr(e);
1539
- return t && (n || r == !1) ? ei(t, e) : e;
1596
+ function Zt(t, e, r) {
1597
+ let n = !ro(e);
1598
+ return t && (n || r == !1) ? oo(t, e) : e;
1540
1599
  }
1541
- const dt = (t) => t instanceof R ? { ...t } : t;
1542
- function U(t, e) {
1600
+ const pt = (t) => t instanceof R ? { ...t } : t;
1601
+ function I(t, e) {
1543
1602
  e = e || {};
1544
1603
  const r = {};
1545
1604
  function n(c, l, d, m) {
1546
1605
  return f.isPlainObject(c) && f.isPlainObject(l) ? f.merge.call({ caseless: m }, c, l) : f.isPlainObject(l) ? f.merge({}, l) : f.isArray(l) ? l.slice() : l;
1547
1606
  }
1548
- function i(c, l, d, m) {
1607
+ function o(c, l, d, m) {
1549
1608
  if (f.isUndefined(l)) {
1550
1609
  if (!f.isUndefined(c))
1551
1610
  return n(void 0, c, d, m);
1552
1611
  } else return n(c, l, d, m);
1553
1612
  }
1554
- function o(c, l) {
1613
+ function i(c, l) {
1555
1614
  if (!f.isUndefined(l))
1556
1615
  return n(void 0, l);
1557
1616
  }
1558
- function a(c, l) {
1617
+ function s(c, l) {
1559
1618
  if (f.isUndefined(l)) {
1560
1619
  if (!f.isUndefined(c))
1561
1620
  return n(void 0, c);
1562
1621
  } else return n(void 0, l);
1563
1622
  }
1564
- function s(c, l, d) {
1623
+ function a(c, l, d) {
1565
1624
  if (d in e)
1566
1625
  return n(c, l);
1567
1626
  if (d in t)
1568
1627
  return n(void 0, c);
1569
1628
  }
1570
1629
  const u = {
1571
- url: o,
1572
- method: o,
1573
- data: o,
1574
- baseURL: a,
1575
- transformRequest: a,
1576
- transformResponse: a,
1577
- paramsSerializer: a,
1578
- timeout: a,
1579
- timeoutMessage: a,
1580
- withCredentials: a,
1581
- withXSRFToken: a,
1582
- adapter: a,
1583
- responseType: a,
1584
- xsrfCookieName: a,
1585
- xsrfHeaderName: a,
1586
- onUploadProgress: a,
1587
- onDownloadProgress: a,
1588
- decompress: a,
1589
- maxContentLength: a,
1590
- maxBodyLength: a,
1591
- beforeRedirect: a,
1592
- transport: a,
1593
- httpAgent: a,
1594
- httpsAgent: a,
1595
- cancelToken: a,
1596
- socketPath: a,
1597
- responseEncoding: a,
1598
- validateStatus: s,
1599
- headers: (c, l, d) => i(dt(c), dt(l), d, !0)
1630
+ url: i,
1631
+ method: i,
1632
+ data: i,
1633
+ baseURL: s,
1634
+ transformRequest: s,
1635
+ transformResponse: s,
1636
+ paramsSerializer: s,
1637
+ timeout: s,
1638
+ timeoutMessage: s,
1639
+ withCredentials: s,
1640
+ withXSRFToken: s,
1641
+ adapter: s,
1642
+ responseType: s,
1643
+ xsrfCookieName: s,
1644
+ xsrfHeaderName: s,
1645
+ onUploadProgress: s,
1646
+ onDownloadProgress: s,
1647
+ decompress: s,
1648
+ maxContentLength: s,
1649
+ maxBodyLength: s,
1650
+ beforeRedirect: s,
1651
+ transport: s,
1652
+ httpAgent: s,
1653
+ httpsAgent: s,
1654
+ cancelToken: s,
1655
+ socketPath: s,
1656
+ responseEncoding: s,
1657
+ validateStatus: a,
1658
+ headers: (c, l, d) => o(pt(c), pt(l), d, !0)
1600
1659
  };
1601
1660
  return f.forEach(Object.keys(Object.assign({}, t, e)), function(l) {
1602
- const d = u[l] || i, m = d(t[l], e[l], l);
1603
- f.isUndefined(m) && d !== s || (r[l] = m);
1661
+ const d = u[l] || o, m = d(t[l], e[l], l);
1662
+ f.isUndefined(m) && d !== a || (r[l] = m);
1604
1663
  }), r;
1605
1664
  }
1606
- const Zt = (t) => {
1607
- const e = U({}, t);
1608
- let { data: r, withXSRFToken: n, xsrfHeaderName: i, xsrfCookieName: o, headers: a, auth: s } = e;
1609
- e.headers = a = R.from(a), e.url = zt(Yt(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), s && a.set(
1665
+ const en = (t) => {
1666
+ const e = I({}, t);
1667
+ let { data: r, withXSRFToken: n, xsrfHeaderName: o, xsrfCookieName: i, headers: s, auth: a } = e;
1668
+ e.headers = s = R.from(s), e.url = Jt(Zt(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), a && s.set(
1610
1669
  "Authorization",
1611
- "Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))
1670
+ "Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
1612
1671
  );
1613
1672
  let u;
1614
1673
  if (f.isFormData(r)) {
1615
- if (E.hasStandardBrowserEnv || E.hasStandardBrowserWebWorkerEnv)
1616
- a.setContentType(void 0);
1617
- else if ((u = a.getContentType()) !== !1) {
1674
+ if (A.hasStandardBrowserEnv || A.hasStandardBrowserWebWorkerEnv)
1675
+ s.setContentType(void 0);
1676
+ else if ((u = s.getContentType()) !== !1) {
1618
1677
  const [c, ...l] = u ? u.split(";").map((d) => d.trim()).filter(Boolean) : [];
1619
- a.setContentType([c || "multipart/form-data", ...l].join("; "));
1678
+ s.setContentType([c || "multipart/form-data", ...l].join("; "));
1620
1679
  }
1621
1680
  }
1622
- if (E.hasStandardBrowserEnv && (n && f.isFunction(n) && (n = n(e)), n || n !== !1 && Gr(e.url))) {
1623
- const c = i && o && Yr.read(o);
1624
- c && a.set(i, c);
1681
+ if (A.hasStandardBrowserEnv && (n && f.isFunction(n) && (n = n(e)), n || n !== !1 && to(e.url))) {
1682
+ const c = o && i && no.read(i);
1683
+ c && s.set(o, c);
1625
1684
  }
1626
1685
  return e;
1627
- }, ti = typeof XMLHttpRequest < "u", ni = ti && function(t) {
1686
+ }, io = typeof XMLHttpRequest < "u", so = io && function(t) {
1628
1687
  return new Promise(function(r, n) {
1629
- const i = Zt(t);
1630
- let o = i.data;
1631
- const a = R.from(i.headers).normalize();
1632
- let { responseType: s, onUploadProgress: u, onDownloadProgress: c } = i, l, d, m, y, p;
1688
+ const o = en(t);
1689
+ let i = o.data;
1690
+ const s = R.from(o.headers).normalize();
1691
+ let { responseType: a, onUploadProgress: u, onDownloadProgress: c } = o, l, d, m, y, p;
1633
1692
  function b() {
1634
- y && y(), p && p(), i.cancelToken && i.cancelToken.unsubscribe(l), i.signal && i.signal.removeEventListener("abort", l);
1693
+ y && y(), p && p(), o.cancelToken && o.cancelToken.unsubscribe(l), o.signal && o.signal.removeEventListener("abort", l);
1635
1694
  }
1636
1695
  let h = new XMLHttpRequest();
1637
- h.open(i.method.toUpperCase(), i.url, !0), h.timeout = i.timeout;
1696
+ h.open(o.method.toUpperCase(), o.url, !0), h.timeout = o.timeout;
1638
1697
  function v() {
1639
1698
  if (!h)
1640
1699
  return;
1641
1700
  const O = R.from(
1642
1701
  "getAllResponseHeaders" in h && h.getAllResponseHeaders()
1643
1702
  ), T = {
1644
- data: !s || s === "text" || s === "json" ? h.responseText : h.response,
1703
+ data: !a || a === "text" || a === "json" ? h.responseText : h.response,
1645
1704
  status: h.status,
1646
1705
  statusText: h.statusText,
1647
1706
  headers: O,
1648
1707
  config: t,
1649
1708
  request: h
1650
1709
  };
1651
- Gt(function(F) {
1710
+ Yt(function(F) {
1652
1711
  r(F), b();
1653
1712
  }, function(F) {
1654
1713
  n(F), b();
@@ -1661,62 +1720,62 @@ const Zt = (t) => {
1661
1720
  }, h.onerror = function() {
1662
1721
  n(new g("Network Error", g.ERR_NETWORK, t, h)), h = null;
1663
1722
  }, h.ontimeout = function() {
1664
- let C = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded";
1665
- const T = i.transitional || Jt;
1666
- i.timeoutErrorMessage && (C = i.timeoutErrorMessage), n(new g(
1667
- C,
1723
+ let q = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1724
+ const T = o.transitional || Kt;
1725
+ o.timeoutErrorMessage && (q = o.timeoutErrorMessage), n(new g(
1726
+ q,
1668
1727
  T.clarifyTimeoutError ? g.ETIMEDOUT : g.ECONNABORTED,
1669
1728
  t,
1670
1729
  h
1671
1730
  )), h = null;
1672
- }, o === void 0 && a.setContentType(null), "setRequestHeader" in h && f.forEach(a.toJSON(), function(C, T) {
1673
- h.setRequestHeader(T, C);
1674
- }), f.isUndefined(i.withCredentials) || (h.withCredentials = !!i.withCredentials), s && s !== "json" && (h.responseType = i.responseType), c && ([m, p] = be(c, !0), h.addEventListener("progress", m)), u && h.upload && ([d, y] = be(u), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", y)), (i.cancelToken || i.signal) && (l = (O) => {
1675
- h && (n(!O || O.type ? new J(null, t, h) : O), h.abort(), h = null);
1676
- }, i.cancelToken && i.cancelToken.subscribe(l), i.signal && (i.signal.aborted ? l() : i.signal.addEventListener("abort", l)));
1677
- const w = Jr(i.url);
1678
- if (w && E.protocols.indexOf(w) === -1) {
1731
+ }, i === void 0 && s.setContentType(null), "setRequestHeader" in h && f.forEach(s.toJSON(), function(q, T) {
1732
+ h.setRequestHeader(T, q);
1733
+ }), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), a && a !== "json" && (h.responseType = o.responseType), c && ([m, p] = ge(c, !0), h.addEventListener("progress", m)), u && h.upload && ([d, y] = ge(u), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", y)), (o.cancelToken || o.signal) && (l = (O) => {
1734
+ h && (n(!O || O.type ? new K(null, t, h) : O), h.abort(), h = null);
1735
+ }, o.cancelToken && o.cancelToken.subscribe(l), o.signal && (o.signal.aborted ? l() : o.signal.addEventListener("abort", l)));
1736
+ const w = Yr(o.url);
1737
+ if (w && A.protocols.indexOf(w) === -1) {
1679
1738
  n(new g("Unsupported protocol " + w + ":", g.ERR_BAD_REQUEST, t));
1680
1739
  return;
1681
1740
  }
1682
- h.send(o || null);
1741
+ h.send(i || null);
1683
1742
  });
1684
- }, ri = (t, e) => {
1743
+ }, ao = (t, e) => {
1685
1744
  const { length: r } = t = t ? t.filter(Boolean) : [];
1686
1745
  if (e || r) {
1687
- let n = new AbortController(), i;
1688
- const o = function(c) {
1689
- if (!i) {
1690
- i = !0, s();
1746
+ let n = new AbortController(), o;
1747
+ const i = function(c) {
1748
+ if (!o) {
1749
+ o = !0, a();
1691
1750
  const l = c instanceof Error ? c : this.reason;
1692
- n.abort(l instanceof g ? l : new J(l instanceof Error ? l.message : l));
1751
+ n.abort(l instanceof g ? l : new K(l instanceof Error ? l.message : l));
1693
1752
  }
1694
1753
  };
1695
- let a = e && setTimeout(() => {
1696
- a = null, o(new g(`timeout ${e} of ms exceeded`, g.ETIMEDOUT));
1754
+ let s = e && setTimeout(() => {
1755
+ s = null, i(new g(`timeout ${e} of ms exceeded`, g.ETIMEDOUT));
1697
1756
  }, e);
1698
- const s = () => {
1699
- t && (a && clearTimeout(a), a = null, t.forEach((c) => {
1700
- c.unsubscribe ? c.unsubscribe(o) : c.removeEventListener("abort", o);
1757
+ const a = () => {
1758
+ t && (s && clearTimeout(s), s = null, t.forEach((c) => {
1759
+ c.unsubscribe ? c.unsubscribe(i) : c.removeEventListener("abort", i);
1701
1760
  }), t = null);
1702
1761
  };
1703
- t.forEach((c) => c.addEventListener("abort", o));
1762
+ t.forEach((c) => c.addEventListener("abort", i));
1704
1763
  const { signal: u } = n;
1705
- return u.unsubscribe = () => f.asap(s), u;
1764
+ return u.unsubscribe = () => f.asap(a), u;
1706
1765
  }
1707
- }, ii = function* (t, e) {
1766
+ }, uo = function* (t, e) {
1708
1767
  let r = t.byteLength;
1709
1768
  if (r < e) {
1710
1769
  yield t;
1711
1770
  return;
1712
1771
  }
1713
- let n = 0, i;
1772
+ let n = 0, o;
1714
1773
  for (; n < r; )
1715
- i = n + e, yield t.slice(n, i), n = i;
1716
- }, oi = async function* (t, e) {
1717
- for await (const r of ai(t))
1718
- yield* ii(r, e);
1719
- }, ai = async function* (t) {
1774
+ o = n + e, yield t.slice(n, o), n = o;
1775
+ }, co = async function* (t, e) {
1776
+ for await (const r of lo(t))
1777
+ yield* uo(r, e);
1778
+ }, lo = async function* (t) {
1720
1779
  if (t[Symbol.asyncIterator]) {
1721
1780
  yield* t;
1722
1781
  return;
@@ -1732,44 +1791,44 @@ const Zt = (t) => {
1732
1791
  } finally {
1733
1792
  await e.cancel();
1734
1793
  }
1735
- }, pt = (t, e, r, n) => {
1736
- const i = oi(t, e);
1737
- let o = 0, a, s = (u) => {
1738
- a || (a = !0, n && n(u));
1794
+ }, mt = (t, e, r, n) => {
1795
+ const o = co(t, e);
1796
+ let i = 0, s, a = (u) => {
1797
+ s || (s = !0, n && n(u));
1739
1798
  };
1740
1799
  return new ReadableStream({
1741
1800
  async pull(u) {
1742
1801
  try {
1743
- const { done: c, value: l } = await i.next();
1802
+ const { done: c, value: l } = await o.next();
1744
1803
  if (c) {
1745
- s(), u.close();
1804
+ a(), u.close();
1746
1805
  return;
1747
1806
  }
1748
1807
  let d = l.byteLength;
1749
1808
  if (r) {
1750
- let m = o += d;
1809
+ let m = i += d;
1751
1810
  r(m);
1752
1811
  }
1753
1812
  u.enqueue(new Uint8Array(l));
1754
1813
  } catch (c) {
1755
- throw s(c), c;
1814
+ throw a(c), c;
1756
1815
  }
1757
1816
  },
1758
1817
  cancel(u) {
1759
- return s(u), i.return();
1818
+ return a(u), o.return();
1760
1819
  }
1761
1820
  }, {
1762
1821
  highWaterMark: 2
1763
1822
  });
1764
- }, Te = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", en = Te && typeof ReadableStream == "function", si = Te && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())), tn = (t, ...e) => {
1823
+ }, _e = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", tn = _e && typeof ReadableStream == "function", fo = _e && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())), nn = (t, ...e) => {
1765
1824
  try {
1766
1825
  return !!t(...e);
1767
1826
  } catch {
1768
1827
  return !1;
1769
1828
  }
1770
- }, ui = en && tn(() => {
1829
+ }, po = tn && nn(() => {
1771
1830
  let t = !1;
1772
- const e = new Request(E.origin, {
1831
+ const e = new Request(A.origin, {
1773
1832
  body: new ReadableStream(),
1774
1833
  method: "POST",
1775
1834
  get duplex() {
@@ -1777,67 +1836,67 @@ const Zt = (t) => {
1777
1836
  }
1778
1837
  }).headers.has("Content-Type");
1779
1838
  return t && !e;
1780
- }), mt = 64 * 1024, We = en && tn(() => f.isReadableStream(new Response("").body)), ge = {
1781
- stream: We && ((t) => t.body)
1839
+ }), ht = 64 * 1024, Xe = tn && nn(() => f.isReadableStream(new Response("").body)), ve = {
1840
+ stream: Xe && ((t) => t.body)
1782
1841
  };
1783
- Te && ((t) => {
1842
+ _e && ((t) => {
1784
1843
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
1785
- !ge[e] && (ge[e] = f.isFunction(t[e]) ? (r) => r[e]() : (r, n) => {
1844
+ !ve[e] && (ve[e] = f.isFunction(t[e]) ? (r) => r[e]() : (r, n) => {
1786
1845
  throw new g(`Response type '${e}' is not supported`, g.ERR_NOT_SUPPORT, n);
1787
1846
  });
1788
1847
  });
1789
1848
  })(new Response());
1790
- const ci = async (t) => {
1849
+ const mo = async (t) => {
1791
1850
  if (t == null)
1792
1851
  return 0;
1793
1852
  if (f.isBlob(t))
1794
1853
  return t.size;
1795
1854
  if (f.isSpecCompliantForm(t))
1796
- return (await new Request(E.origin, {
1855
+ return (await new Request(A.origin, {
1797
1856
  method: "POST",
1798
1857
  body: t
1799
1858
  }).arrayBuffer()).byteLength;
1800
1859
  if (f.isArrayBufferView(t) || f.isArrayBuffer(t))
1801
1860
  return t.byteLength;
1802
1861
  if (f.isURLSearchParams(t) && (t = t + ""), f.isString(t))
1803
- return (await si(t)).byteLength;
1804
- }, li = async (t, e) => {
1862
+ return (await fo(t)).byteLength;
1863
+ }, ho = async (t, e) => {
1805
1864
  const r = f.toFiniteNumber(t.getContentLength());
1806
- return r ?? ci(e);
1807
- }, fi = Te && (async (t) => {
1865
+ return r ?? mo(e);
1866
+ }, yo = _e && (async (t) => {
1808
1867
  let {
1809
1868
  url: e,
1810
1869
  method: r,
1811
1870
  data: n,
1812
- signal: i,
1813
- cancelToken: o,
1814
- timeout: a,
1815
- onDownloadProgress: s,
1871
+ signal: o,
1872
+ cancelToken: i,
1873
+ timeout: s,
1874
+ onDownloadProgress: a,
1816
1875
  onUploadProgress: u,
1817
1876
  responseType: c,
1818
1877
  headers: l,
1819
1878
  withCredentials: d = "same-origin",
1820
1879
  fetchOptions: m
1821
- } = Zt(t);
1880
+ } = en(t);
1822
1881
  c = c ? (c + "").toLowerCase() : "text";
1823
- let y = ri([i, o && o.toAbortSignal()], a), p;
1882
+ let y = ao([o, i && i.toAbortSignal()], s), p;
1824
1883
  const b = y && y.unsubscribe && (() => {
1825
1884
  y.unsubscribe();
1826
1885
  });
1827
1886
  let h;
1828
1887
  try {
1829
- if (u && ui && r !== "get" && r !== "head" && (h = await li(l, n)) !== 0) {
1888
+ if (u && po && r !== "get" && r !== "head" && (h = await ho(l, n)) !== 0) {
1830
1889
  let T = new Request(e, {
1831
1890
  method: "POST",
1832
1891
  body: n,
1833
1892
  duplex: "half"
1834
- }), q;
1835
- if (f.isFormData(n) && (q = T.headers.get("content-type")) && l.setContentType(q), T.body) {
1836
- const [F, ie] = lt(
1893
+ }), D;
1894
+ if (f.isFormData(n) && (D = T.headers.get("content-type")) && l.setContentType(D), T.body) {
1895
+ const [F, ie] = ft(
1837
1896
  h,
1838
- be(ft(u))
1897
+ ge(dt(u))
1839
1898
  );
1840
- n = pt(T.body, mt, F, ie);
1899
+ n = mt(T.body, ht, F, ie);
1841
1900
  }
1842
1901
  }
1843
1902
  f.isString(d) || (d = d ? "include" : "omit");
@@ -1852,28 +1911,28 @@ const ci = async (t) => {
1852
1911
  credentials: v ? d : void 0
1853
1912
  });
1854
1913
  let w = await fetch(p, m);
1855
- const O = We && (c === "stream" || c === "response");
1856
- if (We && (s || O && b)) {
1914
+ const O = Xe && (c === "stream" || c === "response");
1915
+ if (Xe && (a || O && b)) {
1857
1916
  const T = {};
1858
- ["status", "statusText", "headers"].forEach((Ge) => {
1859
- T[Ge] = w[Ge];
1917
+ ["status", "statusText", "headers"].forEach((Ye) => {
1918
+ T[Ye] = w[Ye];
1860
1919
  });
1861
- const q = f.toFiniteNumber(w.headers.get("content-length")), [F, ie] = s && lt(
1862
- q,
1863
- be(ft(s), !0)
1920
+ const D = f.toFiniteNumber(w.headers.get("content-length")), [F, ie] = a && ft(
1921
+ D,
1922
+ ge(dt(a), !0)
1864
1923
  ) || [];
1865
1924
  w = new Response(
1866
- pt(w.body, mt, F, () => {
1925
+ mt(w.body, ht, F, () => {
1867
1926
  ie && ie(), b && b();
1868
1927
  }),
1869
1928
  T
1870
1929
  );
1871
1930
  }
1872
1931
  c = c || "text";
1873
- let C = await ge[f.findKey(ge, c) || "text"](w, t);
1874
- return !O && b && b(), await new Promise((T, q) => {
1875
- Gt(T, q, {
1876
- data: C,
1932
+ let q = await ve[f.findKey(ve, c) || "text"](w, t);
1933
+ return !O && b && b(), await new Promise((T, D) => {
1934
+ Yt(T, D, {
1935
+ data: q,
1877
1936
  headers: R.from(w.headers),
1878
1937
  status: w.status,
1879
1938
  statusText: w.statusText,
@@ -1889,12 +1948,12 @@ const ci = async (t) => {
1889
1948
  }
1890
1949
  ) : g.from(v, v && v.code, t, p);
1891
1950
  }
1892
- }), Xe = {
1893
- http: _r,
1894
- xhr: ni,
1895
- fetch: fi
1951
+ }), ze = {
1952
+ http: kr,
1953
+ xhr: so,
1954
+ fetch: yo
1896
1955
  };
1897
- f.forEach(Xe, (t, e) => {
1956
+ f.forEach(ze, (t, e) => {
1898
1957
  if (t) {
1899
1958
  try {
1900
1959
  Object.defineProperty(t, "name", { value: e });
@@ -1903,113 +1962,113 @@ f.forEach(Xe, (t, e) => {
1903
1962
  Object.defineProperty(t, "adapterName", { value: e });
1904
1963
  }
1905
1964
  });
1906
- const ht = (t) => `- ${t}`, di = (t) => f.isFunction(t) || t === null || t === !1, nn = {
1965
+ const yt = (t) => `- ${t}`, bo = (t) => f.isFunction(t) || t === null || t === !1, rn = {
1907
1966
  getAdapter: (t) => {
1908
1967
  t = f.isArray(t) ? t : [t];
1909
1968
  const { length: e } = t;
1910
1969
  let r, n;
1911
- const i = {};
1912
- for (let o = 0; o < e; o++) {
1913
- r = t[o];
1914
- let a;
1915
- if (n = r, !di(r) && (n = Xe[(a = String(r)).toLowerCase()], n === void 0))
1916
- throw new g(`Unknown adapter '${a}'`);
1970
+ const o = {};
1971
+ for (let i = 0; i < e; i++) {
1972
+ r = t[i];
1973
+ let s;
1974
+ if (n = r, !bo(r) && (n = ze[(s = String(r)).toLowerCase()], n === void 0))
1975
+ throw new g(`Unknown adapter '${s}'`);
1917
1976
  if (n)
1918
1977
  break;
1919
- i[a || "#" + o] = n;
1978
+ o[s || "#" + i] = n;
1920
1979
  }
1921
1980
  if (!n) {
1922
- const o = Object.entries(i).map(
1923
- ([s, u]) => `adapter ${s} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
1981
+ const i = Object.entries(o).map(
1982
+ ([a, u]) => `adapter ${a} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
1924
1983
  );
1925
- let a = e ? o.length > 1 ? `since :
1926
- ` + o.map(ht).join(`
1927
- `) : " " + ht(o[0]) : "as no adapter specified";
1984
+ let s = e ? i.length > 1 ? `since :
1985
+ ` + i.map(yt).join(`
1986
+ `) : " " + yt(i[0]) : "as no adapter specified";
1928
1987
  throw new g(
1929
- "There is no suitable adapter to dispatch the request " + a,
1988
+ "There is no suitable adapter to dispatch the request " + s,
1930
1989
  "ERR_NOT_SUPPORT"
1931
1990
  );
1932
1991
  }
1933
1992
  return n;
1934
1993
  },
1935
- adapters: Xe
1994
+ adapters: ze
1936
1995
  };
1937
- function Me(t) {
1996
+ function Be(t) {
1938
1997
  if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
1939
- throw new J(null, t);
1998
+ throw new K(null, t);
1940
1999
  }
1941
- function yt(t) {
1942
- return Me(t), t.headers = R.from(t.headers), t.data = xe.call(
2000
+ function bt(t) {
2001
+ return Be(t), t.headers = R.from(t.headers), t.data = Me.call(
1943
2002
  t,
1944
2003
  t.transformRequest
1945
- ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), nn.getAdapter(t.adapter || te.adapter)(t).then(function(n) {
1946
- return Me(t), n.data = xe.call(
2004
+ ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), rn.getAdapter(t.adapter || ne.adapter)(t).then(function(n) {
2005
+ return Be(t), n.data = Me.call(
1947
2006
  t,
1948
2007
  t.transformResponse,
1949
2008
  n
1950
2009
  ), n.headers = R.from(n.headers), n;
1951
2010
  }, function(n) {
1952
- return Qt(n) || (Me(t), n && n.response && (n.response.data = xe.call(
2011
+ return Gt(n) || (Be(t), n && n.response && (n.response.data = Me.call(
1953
2012
  t,
1954
2013
  t.transformResponse,
1955
2014
  n.response
1956
2015
  ), n.response.headers = R.from(n.response.headers))), Promise.reject(n);
1957
2016
  });
1958
2017
  }
1959
- const rn = "1.10.0", _e = {};
2018
+ const on = "1.10.0", Re = {};
1960
2019
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
1961
- _e[t] = function(n) {
2020
+ Re[t] = function(n) {
1962
2021
  return typeof n === t || "a" + (e < 1 ? "n " : " ") + t;
1963
2022
  };
1964
2023
  });
1965
- const bt = {};
1966
- _e.transitional = function(e, r, n) {
1967
- function i(o, a) {
1968
- return "[Axios v" + rn + "] Transitional option '" + o + "'" + a + (n ? ". " + n : "");
2024
+ const gt = {};
2025
+ Re.transitional = function(e, r, n) {
2026
+ function o(i, s) {
2027
+ return "[Axios v" + on + "] Transitional option '" + i + "'" + s + (n ? ". " + n : "");
1969
2028
  }
1970
- return (o, a, s) => {
2029
+ return (i, s, a) => {
1971
2030
  if (e === !1)
1972
2031
  throw new g(
1973
- i(a, " has been removed" + (r ? " in " + r : "")),
2032
+ o(s, " has been removed" + (r ? " in " + r : "")),
1974
2033
  g.ERR_DEPRECATED
1975
2034
  );
1976
- return r && !bt[a] && (bt[a] = !0, console.warn(
1977
- i(
1978
- a,
2035
+ return r && !gt[s] && (gt[s] = !0, console.warn(
2036
+ o(
2037
+ s,
1979
2038
  " has been deprecated since v" + r + " and will be removed in the near future"
1980
2039
  )
1981
- )), e ? e(o, a, s) : !0;
2040
+ )), e ? e(i, s, a) : !0;
1982
2041
  };
1983
2042
  };
1984
- _e.spelling = function(e) {
2043
+ Re.spelling = function(e) {
1985
2044
  return (r, n) => (console.warn(`${n} is likely a misspelling of ${e}`), !0);
1986
2045
  };
1987
- function pi(t, e, r) {
2046
+ function go(t, e, r) {
1988
2047
  if (typeof t != "object")
1989
2048
  throw new g("options must be an object", g.ERR_BAD_OPTION_VALUE);
1990
2049
  const n = Object.keys(t);
1991
- let i = n.length;
1992
- for (; i-- > 0; ) {
1993
- const o = n[i], a = e[o];
1994
- if (a) {
1995
- const s = t[o], u = s === void 0 || a(s, o, t);
2050
+ let o = n.length;
2051
+ for (; o-- > 0; ) {
2052
+ const i = n[o], s = e[i];
2053
+ if (s) {
2054
+ const a = t[i], u = a === void 0 || s(a, i, t);
1996
2055
  if (u !== !0)
1997
- throw new g("option " + o + " must be " + u, g.ERR_BAD_OPTION_VALUE);
2056
+ throw new g("option " + i + " must be " + u, g.ERR_BAD_OPTION_VALUE);
1998
2057
  continue;
1999
2058
  }
2000
2059
  if (r !== !0)
2001
- throw new g("Unknown option " + o, g.ERR_BAD_OPTION);
2060
+ throw new g("Unknown option " + i, g.ERR_BAD_OPTION);
2002
2061
  }
2003
2062
  }
2004
- const me = {
2005
- assertOptions: pi,
2006
- validators: _e
2007
- }, k = me.validators;
2008
- let M = class {
2063
+ const he = {
2064
+ assertOptions: go,
2065
+ validators: Re
2066
+ }, C = he.validators;
2067
+ let B = class {
2009
2068
  constructor(e) {
2010
2069
  this.defaults = e || {}, this.interceptors = {
2011
- request: new ut(),
2012
- response: new ut()
2070
+ request: new ct(),
2071
+ response: new ct()
2013
2072
  };
2014
2073
  }
2015
2074
  /**
@@ -2025,12 +2084,12 @@ let M = class {
2025
2084
  return await this._request(e, r);
2026
2085
  } catch (n) {
2027
2086
  if (n instanceof Error) {
2028
- let i = {};
2029
- Error.captureStackTrace ? Error.captureStackTrace(i) : i = new Error();
2030
- const o = i.stack ? i.stack.replace(/^.+\n/, "") : "";
2087
+ let o = {};
2088
+ Error.captureStackTrace ? Error.captureStackTrace(o) : o = new Error();
2089
+ const i = o.stack ? o.stack.replace(/^.+\n/, "") : "";
2031
2090
  try {
2032
- n.stack ? o && !String(n.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (n.stack += `
2033
- ` + o) : n.stack = o;
2091
+ n.stack ? i && !String(n.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (n.stack += `
2092
+ ` + i) : n.stack = i;
2034
2093
  } catch {
2035
2094
  }
2036
2095
  }
@@ -2038,35 +2097,35 @@ let M = class {
2038
2097
  }
2039
2098
  }
2040
2099
  _request(e, r) {
2041
- typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = U(this.defaults, r);
2042
- const { transitional: n, paramsSerializer: i, headers: o } = r;
2043
- n !== void 0 && me.assertOptions(n, {
2044
- silentJSONParsing: k.transitional(k.boolean),
2045
- forcedJSONParsing: k.transitional(k.boolean),
2046
- clarifyTimeoutError: k.transitional(k.boolean)
2047
- }, !1), i != null && (f.isFunction(i) ? r.paramsSerializer = {
2048
- serialize: i
2049
- } : me.assertOptions(i, {
2050
- encode: k.function,
2051
- serialize: k.function
2052
- }, !0)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), me.assertOptions(r, {
2053
- baseUrl: k.spelling("baseURL"),
2054
- withXsrfToken: k.spelling("withXSRFToken")
2100
+ typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = I(this.defaults, r);
2101
+ const { transitional: n, paramsSerializer: o, headers: i } = r;
2102
+ n !== void 0 && he.assertOptions(n, {
2103
+ silentJSONParsing: C.transitional(C.boolean),
2104
+ forcedJSONParsing: C.transitional(C.boolean),
2105
+ clarifyTimeoutError: C.transitional(C.boolean)
2106
+ }, !1), o != null && (f.isFunction(o) ? r.paramsSerializer = {
2107
+ serialize: o
2108
+ } : he.assertOptions(o, {
2109
+ encode: C.function,
2110
+ serialize: C.function
2111
+ }, !0)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), he.assertOptions(r, {
2112
+ baseUrl: C.spelling("baseURL"),
2113
+ withXsrfToken: C.spelling("withXSRFToken")
2055
2114
  }, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
2056
- let a = o && f.merge(
2057
- o.common,
2058
- o[r.method]
2115
+ let s = i && f.merge(
2116
+ i.common,
2117
+ i[r.method]
2059
2118
  );
2060
- o && f.forEach(
2119
+ i && f.forEach(
2061
2120
  ["delete", "get", "head", "post", "put", "patch", "common"],
2062
2121
  (p) => {
2063
- delete o[p];
2122
+ delete i[p];
2064
2123
  }
2065
- ), r.headers = R.concat(a, o);
2066
- const s = [];
2124
+ ), r.headers = R.concat(s, i);
2125
+ const a = [];
2067
2126
  let u = !0;
2068
2127
  this.interceptors.request.forEach(function(b) {
2069
- typeof b.runWhen == "function" && b.runWhen(r) === !1 || (u = u && b.synchronous, s.unshift(b.fulfilled, b.rejected));
2128
+ typeof b.runWhen == "function" && b.runWhen(r) === !1 || (u = u && b.synchronous, a.unshift(b.fulfilled, b.rejected));
2070
2129
  });
2071
2130
  const c = [];
2072
2131
  this.interceptors.response.forEach(function(b) {
@@ -2074,15 +2133,15 @@ let M = class {
2074
2133
  });
2075
2134
  let l, d = 0, m;
2076
2135
  if (!u) {
2077
- const p = [yt.bind(this), void 0];
2078
- for (p.unshift.apply(p, s), p.push.apply(p, c), m = p.length, l = Promise.resolve(r); d < m; )
2136
+ const p = [bt.bind(this), void 0];
2137
+ for (p.unshift.apply(p, a), p.push.apply(p, c), m = p.length, l = Promise.resolve(r); d < m; )
2079
2138
  l = l.then(p[d++], p[d++]);
2080
2139
  return l;
2081
2140
  }
2082
- m = s.length;
2141
+ m = a.length;
2083
2142
  let y = r;
2084
2143
  for (d = 0; d < m; ) {
2085
- const p = s[d++], b = s[d++];
2144
+ const p = a[d++], b = a[d++];
2086
2145
  try {
2087
2146
  y = p(y);
2088
2147
  } catch (h) {
@@ -2091,7 +2150,7 @@ let M = class {
2091
2150
  }
2092
2151
  }
2093
2152
  try {
2094
- l = yt.call(this, y);
2153
+ l = bt.call(this, y);
2095
2154
  } catch (p) {
2096
2155
  return Promise.reject(p);
2097
2156
  }
@@ -2100,14 +2159,14 @@ let M = class {
2100
2159
  return l;
2101
2160
  }
2102
2161
  getUri(e) {
2103
- e = U(this.defaults, e);
2104
- const r = Yt(e.baseURL, e.url, e.allowAbsoluteUrls);
2105
- return zt(r, e.params, e.paramsSerializer);
2162
+ e = I(this.defaults, e);
2163
+ const r = Zt(e.baseURL, e.url, e.allowAbsoluteUrls);
2164
+ return Jt(r, e.params, e.paramsSerializer);
2106
2165
  }
2107
2166
  };
2108
2167
  f.forEach(["delete", "get", "head", "options"], function(e) {
2109
- M.prototype[e] = function(r, n) {
2110
- return this.request(U(n || {}, {
2168
+ B.prototype[e] = function(r, n) {
2169
+ return this.request(I(n || {}, {
2111
2170
  method: e,
2112
2171
  url: r,
2113
2172
  data: (n || {}).data
@@ -2116,44 +2175,44 @@ f.forEach(["delete", "get", "head", "options"], function(e) {
2116
2175
  });
2117
2176
  f.forEach(["post", "put", "patch"], function(e) {
2118
2177
  function r(n) {
2119
- return function(o, a, s) {
2120
- return this.request(U(s || {}, {
2178
+ return function(i, s, a) {
2179
+ return this.request(I(a || {}, {
2121
2180
  method: e,
2122
2181
  headers: n ? {
2123
2182
  "Content-Type": "multipart/form-data"
2124
2183
  } : {},
2125
- url: o,
2126
- data: a
2184
+ url: i,
2185
+ data: s
2127
2186
  }));
2128
2187
  };
2129
2188
  }
2130
- M.prototype[e] = r(), M.prototype[e + "Form"] = r(!0);
2189
+ B.prototype[e] = r(), B.prototype[e + "Form"] = r(!0);
2131
2190
  });
2132
- let mi = class on {
2191
+ let vo = class sn {
2133
2192
  constructor(e) {
2134
2193
  if (typeof e != "function")
2135
2194
  throw new TypeError("executor must be a function.");
2136
2195
  let r;
2137
- this.promise = new Promise(function(o) {
2138
- r = o;
2196
+ this.promise = new Promise(function(i) {
2197
+ r = i;
2139
2198
  });
2140
2199
  const n = this;
2141
- this.promise.then((i) => {
2200
+ this.promise.then((o) => {
2142
2201
  if (!n._listeners) return;
2143
- let o = n._listeners.length;
2144
- for (; o-- > 0; )
2145
- n._listeners[o](i);
2202
+ let i = n._listeners.length;
2203
+ for (; i-- > 0; )
2204
+ n._listeners[i](o);
2146
2205
  n._listeners = null;
2147
- }), this.promise.then = (i) => {
2148
- let o;
2149
- const a = new Promise((s) => {
2150
- n.subscribe(s), o = s;
2151
- }).then(i);
2152
- return a.cancel = function() {
2153
- n.unsubscribe(o);
2154
- }, a;
2155
- }, e(function(o, a, s) {
2156
- n.reason || (n.reason = new J(o, a, s), r(n.reason));
2206
+ }), this.promise.then = (o) => {
2207
+ let i;
2208
+ const s = new Promise((a) => {
2209
+ n.subscribe(a), i = a;
2210
+ }).then(o);
2211
+ return s.cancel = function() {
2212
+ n.unsubscribe(i);
2213
+ }, s;
2214
+ }, e(function(i, s, a) {
2215
+ n.reason || (n.reason = new K(i, s, a), r(n.reason));
2157
2216
  });
2158
2217
  }
2159
2218
  /**
@@ -2195,22 +2254,22 @@ let mi = class on {
2195
2254
  static source() {
2196
2255
  let e;
2197
2256
  return {
2198
- token: new on(function(i) {
2199
- e = i;
2257
+ token: new sn(function(o) {
2258
+ e = o;
2200
2259
  }),
2201
2260
  cancel: e
2202
2261
  };
2203
2262
  }
2204
2263
  };
2205
- function hi(t) {
2264
+ function wo(t) {
2206
2265
  return function(r) {
2207
2266
  return t.apply(null, r);
2208
2267
  };
2209
2268
  }
2210
- function yi(t) {
2269
+ function So(t) {
2211
2270
  return f.isObject(t) && t.isAxiosError === !0;
2212
2271
  }
2213
- const ze = {
2272
+ const Je = {
2214
2273
  Continue: 100,
2215
2274
  SwitchingProtocols: 101,
2216
2275
  Processing: 102,
@@ -2275,54 +2334,54 @@ const ze = {
2275
2334
  NotExtended: 510,
2276
2335
  NetworkAuthenticationRequired: 511
2277
2336
  };
2278
- Object.entries(ze).forEach(([t, e]) => {
2279
- ze[e] = t;
2337
+ Object.entries(Je).forEach(([t, e]) => {
2338
+ Je[e] = t;
2280
2339
  });
2281
2340
  function an(t) {
2282
- const e = new M(t), r = Ft(M.prototype.request, e);
2283
- return f.extend(r, M.prototype, e, { allOwnKeys: !0 }), f.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(i) {
2284
- return an(U(t, i));
2341
+ const e = new B(t), r = Ft(B.prototype.request, e);
2342
+ return f.extend(r, B.prototype, e, { allOwnKeys: !0 }), f.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(o) {
2343
+ return an(I(t, o));
2285
2344
  }, r;
2286
2345
  }
2287
- const S = an(te);
2288
- S.Axios = M;
2289
- S.CanceledError = J;
2290
- S.CancelToken = mi;
2291
- S.isCancel = Qt;
2292
- S.VERSION = rn;
2293
- S.toFormData = Ee;
2346
+ const S = an(ne);
2347
+ S.Axios = B;
2348
+ S.CanceledError = K;
2349
+ S.CancelToken = vo;
2350
+ S.isCancel = Gt;
2351
+ S.VERSION = on;
2352
+ S.toFormData = Te;
2294
2353
  S.AxiosError = g;
2295
2354
  S.Cancel = S.CanceledError;
2296
2355
  S.all = function(e) {
2297
2356
  return Promise.all(e);
2298
2357
  };
2299
- S.spread = hi;
2300
- S.isAxiosError = yi;
2301
- S.mergeConfig = U;
2358
+ S.spread = wo;
2359
+ S.isAxiosError = So;
2360
+ S.mergeConfig = I;
2302
2361
  S.AxiosHeaders = R;
2303
- S.formToJSON = (t) => Kt(f.isHTMLForm(t) ? new FormData(t) : t);
2304
- S.getAdapter = nn.getAdapter;
2305
- S.HttpStatusCode = ze;
2362
+ S.formToJSON = (t) => Qt(f.isHTMLForm(t) ? new FormData(t) : t);
2363
+ S.getAdapter = rn.getAdapter;
2364
+ S.HttpStatusCode = Je;
2306
2365
  S.default = S;
2307
2366
  const {
2308
- Axios: Qi,
2309
- AxiosError: gt,
2310
- CanceledError: Gi,
2311
- isCancel: Yi,
2312
- CancelToken: Zi,
2313
- VERSION: eo,
2314
- all: to,
2315
- Cancel: no,
2316
- isAxiosError: ro,
2317
- spread: io,
2318
- toFormData: oo,
2319
- AxiosHeaders: ao,
2320
- HttpStatusCode: so,
2321
- formToJSON: uo,
2322
- getAdapter: co,
2323
- mergeConfig: lo
2324
- } = S, bi = (t) => kt.some(t, (e) => e && e.errorCode !== void 0) || t?.errorCode !== void 0;
2325
- typeof window < "u" ? window.__STORE_QUERY_CLIENT__ || (window.__STORE_QUERY_CLIENT__ = new Be({
2367
+ Axios: ti,
2368
+ AxiosError: vt,
2369
+ CanceledError: ni,
2370
+ isCancel: ri,
2371
+ CancelToken: oi,
2372
+ VERSION: ii,
2373
+ all: si,
2374
+ Cancel: ai,
2375
+ isAxiosError: ui,
2376
+ spread: ci,
2377
+ toFormData: li,
2378
+ AxiosHeaders: fi,
2379
+ HttpStatusCode: di,
2380
+ formToJSON: pi,
2381
+ getAdapter: mi,
2382
+ mergeConfig: hi
2383
+ } = S, Oo = (t) => Ct.some(t, (e) => e && e.errorCode !== void 0) || t?.errorCode !== void 0;
2384
+ typeof window < "u" ? window.__STORE_QUERY_CLIENT__ || (window.__STORE_QUERY_CLIENT__ = new Ue({
2326
2385
  defaultOptions: {
2327
2386
  queries: {
2328
2387
  refetchOnWindowFocus: !0,
@@ -2331,7 +2390,7 @@ typeof window < "u" ? window.__STORE_QUERY_CLIENT__ || (window.__STORE_QUERY_CLI
2331
2390
  staleTime: 1e3 * 60 * 5
2332
2391
  }
2333
2392
  }
2334
- })) : new Be({
2393
+ })) : new Ue({
2335
2394
  defaultOptions: {
2336
2395
  queries: {
2337
2396
  refetchOnWindowFocus: !0,
@@ -2341,8 +2400,8 @@ typeof window < "u" ? window.__STORE_QUERY_CLIENT__ || (window.__STORE_QUERY_CLI
2341
2400
  }
2342
2401
  }
2343
2402
  });
2344
- const sn = "auth_token", gi = "https://localhost:3000/shop-api", vi = "lang", wi = "currencyCode", un = S.create({
2345
- baseURL: gi,
2403
+ const un = "auth_token", Eo = "https://localhost:3000/shop-api", Ao = "lang", To = "currencyCode", cn = S.create({
2404
+ baseURL: Eo,
2346
2405
  withCredentials: !0,
2347
2406
  // Required for cookie-based sessions
2348
2407
  headers: {
@@ -2350,454 +2409,454 @@ const sn = "auth_token", gi = "https://localhost:3000/shop-api", vi = "lang", wi
2350
2409
  // We'll set this in the request interceptor
2351
2410
  }
2352
2411
  });
2353
- let Si = async (t, e) => {
2412
+ let _o = async (t, e) => {
2354
2413
  await e(t);
2355
2414
  };
2356
- un.interceptors.request.use(async (t) => (await Si(t, async (r) => {
2357
- const n = await G.getItem(sn), i = await G.getItem("channelToken"), o = await G.getItem(wi), a = await G.getItem(vi);
2358
- n && (r.headers.Authorization = `Bearer ${n}`), i && (r.headers["vendure-token"] = i), r.params = r.params || {}, o && (r.params.currencyCode = o), a && (r.params.languageCode = a);
2415
+ cn.interceptors.request.use(async (t) => (await _o(t, async (r) => {
2416
+ const n = await Y.getItem(un), o = await Y.getItem("channelToken"), i = await Y.getItem(To), s = await Y.getItem(Ao);
2417
+ n && (r.headers.Authorization = `Bearer ${n}`), o && (r.headers["vendure-token"] = o), r.params = r.params || {}, i && (r.params.currencyCode = i), s && (r.params.languageCode = s);
2359
2418
  }), t));
2360
- un.interceptors.response.use((t) => {
2419
+ cn.interceptors.response.use((t) => {
2361
2420
  const e = t.headers["vendure-auth-token"];
2362
- if (e && G.setItem(sn, e), bi(t.data.data)) {
2363
- const r = Object.values(t.data.data)[0], n = new gt(r.errorCode);
2421
+ if (e && Y.setItem(un, e), Oo(t.data.data)) {
2422
+ const r = Object.values(t.data.data)[0], n = new vt(r.errorCode);
2364
2423
  return n.response = t, n.request = t.request, n.config = t.config, Promise.reject(n);
2365
2424
  }
2366
2425
  if (t.data.errors?.length > 0) {
2367
- const r = t.data.errors[0], n = new gt(r.message);
2426
+ const r = t.data.errors[0], n = new vt(r.message);
2368
2427
  return n.response = t, n.request = t.request, n.config = t.config, Promise.reject(n);
2369
2428
  }
2370
2429
  return t;
2371
- }, (t) => Promise.reject(t));
2372
- var N = {}, se = {}, ue = {}, ce = {}, vt;
2373
- function ne() {
2374
- if (vt) return ce;
2375
- vt = 1, Object.defineProperty(ce, "__esModule", { value: !0 });
2430
+ }, (t) => (Pn.error("Axios error", "vendure/axiosClient", t), Promise.reject(t)));
2431
+ var P = {}, ue = {}, ce = {}, le = {}, wt;
2432
+ function re() {
2433
+ if (wt) return le;
2434
+ wt = 1, Object.defineProperty(le, "__esModule", { value: !0 });
2376
2435
  var t;
2377
2436
  return function(e) {
2378
2437
  e.Mutation = "mutation", e.Query = "query", e.Subscription = "subscription";
2379
- }(t || (t = {})), ce.default = t, ce;
2438
+ }(t || (t = {})), le.default = t, le;
2380
2439
  }
2381
- var I = {}, Q = {}, wt;
2382
- function Oi() {
2383
- if (wt) return Q;
2384
- wt = 1, Object.defineProperty(Q, "__esModule", { value: !0 }), Q.isNestedField = void 0;
2440
+ var L = {}, G = {}, St;
2441
+ function Ro() {
2442
+ if (St) return G;
2443
+ St = 1, Object.defineProperty(G, "__esModule", { value: !0 }), G.isNestedField = void 0;
2385
2444
  function t(e) {
2386
2445
  return typeof e == "object" && e.hasOwnProperty("operation") && e.hasOwnProperty("variables") && e.hasOwnProperty("fields") || typeof e == "object" && e.hasOwnProperty("operation") && e.hasOwnProperty("fragment") && e.hasOwnProperty("fields");
2387
2446
  }
2388
- return Q.isNestedField = t, Q;
2447
+ return G.isNestedField = t, G;
2389
2448
  }
2390
- var St;
2391
- function re() {
2392
- if (St) return I;
2393
- St = 1;
2394
- var t = I && I.__assign || function() {
2449
+ var Ot;
2450
+ function oe() {
2451
+ if (Ot) return L;
2452
+ Ot = 1;
2453
+ var t = L && L.__assign || function() {
2395
2454
  return t = Object.assign || function(n) {
2396
- for (var i, o = 1, a = arguments.length; o < a; o++) {
2397
- i = arguments[o];
2398
- for (var s in i) Object.prototype.hasOwnProperty.call(i, s) && (n[s] = i[s]);
2455
+ for (var o, i = 1, s = arguments.length; i < s; i++) {
2456
+ o = arguments[i];
2457
+ for (var a in o) Object.prototype.hasOwnProperty.call(o, a) && (n[a] = o[a]);
2399
2458
  }
2400
2459
  return n;
2401
2460
  }, t.apply(this, arguments);
2402
2461
  };
2403
- Object.defineProperty(I, "__esModule", { value: !0 });
2404
- var e = Oi(), r = (
2462
+ Object.defineProperty(L, "__esModule", { value: !0 });
2463
+ var e = Ro(), r = (
2405
2464
  /** @class */
2406
2465
  function() {
2407
2466
  function n() {
2408
2467
  }
2409
- return n.resolveVariables = function(i) {
2410
- for (var o = {}, a = 0, s = i; a < s.length; a++) {
2411
- var u = s[a], c = u.variables, l = u.fields;
2412
- o = t(t(t({}, o), c), l && n.getNestedVariables(l) || {});
2468
+ return n.resolveVariables = function(o) {
2469
+ for (var i = {}, s = 0, a = o; s < a.length; s++) {
2470
+ var u = a[s], c = u.variables, l = u.fields;
2471
+ i = t(t(t({}, i), c), l && n.getNestedVariables(l) || {});
2413
2472
  }
2414
- return o;
2415
- }, n.queryDataNameAndArgumentMap = function(i) {
2416
- return i && Object.keys(i).length ? "(".concat(Object.entries(i).reduce(function(o, a, s) {
2417
- var u = a[0], c = a[1];
2418
- return "".concat(o).concat(s !== 0 ? ", " : "").concat(c && c.name ? c.name : u, ": $").concat(u);
2473
+ return i;
2474
+ }, n.queryDataNameAndArgumentMap = function(o) {
2475
+ return o && Object.keys(o).length ? "(".concat(Object.entries(o).reduce(function(i, s, a) {
2476
+ var u = s[0], c = s[1];
2477
+ return "".concat(i).concat(a !== 0 ? ", " : "").concat(c && c.name ? c.name : u, ": $").concat(u);
2419
2478
  }, ""), ")") : "";
2420
- }, n.queryFieldsMap = function(i) {
2421
- var o = this;
2422
- return i ? i.map(function(a) {
2423
- if ((0, e.isNestedField)(a))
2424
- return n.queryNestedFieldMap(a);
2425
- if (typeof a == "object") {
2426
- var s = "";
2427
- return Object.entries(a).forEach(function(u, c, l) {
2479
+ }, n.queryFieldsMap = function(o) {
2480
+ var i = this;
2481
+ return o ? o.map(function(s) {
2482
+ if ((0, e.isNestedField)(s))
2483
+ return n.queryNestedFieldMap(s);
2484
+ if (typeof s == "object") {
2485
+ var a = "";
2486
+ return Object.entries(s).forEach(function(u, c, l) {
2428
2487
  var d = u[0], m = u[1];
2429
- s += "".concat(d, " ").concat(m.length > 0 ? "{ " + o.queryFieldsMap(m) + " }" : ""), c < l.length - 1 && (s += ", ");
2430
- }), s;
2488
+ a += "".concat(d, " ").concat(m.length > 0 ? "{ " + i.queryFieldsMap(m) + " }" : ""), c < l.length - 1 && (a += ", ");
2489
+ }), a;
2431
2490
  } else
2432
- return "".concat(a);
2491
+ return "".concat(s);
2433
2492
  }).join(", ") : "";
2434
- }, n.operationOrAlias = function(i) {
2435
- return typeof i == "string" ? i : "".concat(i.alias, ": ").concat(i.name);
2436
- }, n.isFragment = function(i) {
2437
- var o;
2438
- return (o = i?.fragment === !0) !== null && o !== void 0 ? o : !1;
2439
- }, n.operationOrFragment = function(i) {
2440
- return n.isFragment(i) ? i.operation : n.operationOrAlias(i.operation);
2441
- }, n.getFragment = function(i) {
2442
- return n.isFragment(i) ? "... on " : "";
2443
- }, n.queryNestedFieldMap = function(i) {
2444
- return "".concat(n.getFragment(i)).concat(n.operationOrFragment(i), " ").concat(this.isFragment(i) ? "" : this.queryDataNameAndArgumentMap(i.variables), " ").concat(i.fields.length > 0 ? "{ " + this.queryFieldsMap(i.fields) + " }" : "");
2445
- }, n.queryVariablesMap = function(i, o) {
2446
- var a = {}, s = function(u) {
2493
+ }, n.operationOrAlias = function(o) {
2494
+ return typeof o == "string" ? o : "".concat(o.alias, ": ").concat(o.name);
2495
+ }, n.isFragment = function(o) {
2496
+ var i;
2497
+ return (i = o?.fragment === !0) !== null && i !== void 0 ? i : !1;
2498
+ }, n.operationOrFragment = function(o) {
2499
+ return n.isFragment(o) ? o.operation : n.operationOrAlias(o.operation);
2500
+ }, n.getFragment = function(o) {
2501
+ return n.isFragment(o) ? "... on " : "";
2502
+ }, n.queryNestedFieldMap = function(o) {
2503
+ return "".concat(n.getFragment(o)).concat(n.operationOrFragment(o), " ").concat(this.isFragment(o) ? "" : this.queryDataNameAndArgumentMap(o.variables), " ").concat(o.fields.length > 0 ? "{ " + this.queryFieldsMap(o.fields) + " }" : "");
2504
+ }, n.queryVariablesMap = function(o, i) {
2505
+ var s = {}, a = function(u) {
2447
2506
  u && Object.keys(u).map(function(c) {
2448
- a[c] = typeof u[c] == "object" ? u[c].value : u[c];
2507
+ s[c] = typeof u[c] == "object" ? u[c].value : u[c];
2449
2508
  });
2450
2509
  };
2451
- return s(i), o && typeof o == "object" && s(n.getNestedVariables(o)), a;
2452
- }, n.getNestedVariables = function(i) {
2453
- var o = {};
2454
- function a(s) {
2455
- return s?.forEach(function(u) {
2510
+ return a(o), i && typeof i == "object" && a(n.getNestedVariables(i)), s;
2511
+ }, n.getNestedVariables = function(o) {
2512
+ var i = {};
2513
+ function s(a) {
2514
+ return a?.forEach(function(u) {
2456
2515
  if ((0, e.isNestedField)(u))
2457
- o = t(t(t({}, u.variables), o), u.fields && a(u.fields));
2516
+ i = t(t(t({}, u.variables), i), u.fields && s(u.fields));
2458
2517
  else if (typeof u == "object")
2459
2518
  for (var c = 0, l = Object.entries(u); c < l.length; c++) {
2460
2519
  var d = l[c], m = d[1];
2461
- a(m);
2520
+ s(m);
2462
2521
  }
2463
- }), o;
2522
+ }), i;
2464
2523
  }
2465
- return a(i), o;
2466
- }, n.queryDataType = function(i) {
2467
- var o = "String", a = typeof i == "object" ? i.value : i;
2468
- if (i?.type != null)
2469
- o = i.type;
2524
+ return s(o), i;
2525
+ }, n.queryDataType = function(o) {
2526
+ var i = "String", s = typeof o == "object" ? o.value : o;
2527
+ if (o?.type != null)
2528
+ i = o.type;
2470
2529
  else {
2471
- var s = Array.isArray(a) ? a[0] : a;
2472
- switch (typeof s) {
2530
+ var a = Array.isArray(s) ? s[0] : s;
2531
+ switch (typeof a) {
2473
2532
  case "object":
2474
- o = "Object";
2533
+ i = "Object";
2475
2534
  break;
2476
2535
  case "boolean":
2477
- o = "Boolean";
2536
+ i = "Boolean";
2478
2537
  break;
2479
2538
  case "number":
2480
- o = s % 1 === 0 ? "Int" : "Float";
2539
+ i = a % 1 === 0 ? "Int" : "Float";
2481
2540
  break;
2482
2541
  }
2483
2542
  }
2484
- return typeof i == "object" && (i.list === !0 ? o = "[".concat(o, "]") : Array.isArray(i.list) && (o = "[".concat(o).concat(i.list[0] ? "!" : "", "]")), i.required && (o += "!")), o;
2543
+ return typeof o == "object" && (o.list === !0 ? i = "[".concat(i, "]") : Array.isArray(o.list) && (i = "[".concat(i).concat(o.list[0] ? "!" : "", "]")), o.required && (i += "!")), i;
2485
2544
  }, n;
2486
2545
  }()
2487
2546
  );
2488
- return I.default = r, I;
2547
+ return L.default = r, L;
2489
2548
  }
2490
- var Ot;
2491
- function Ai() {
2492
- if (Ot) return ue;
2493
- Ot = 1, Object.defineProperty(ue, "__esModule", { value: !0 });
2494
- var t = ne(), e = re(), r = (
2549
+ var Et;
2550
+ function No() {
2551
+ if (Et) return ce;
2552
+ Et = 1, Object.defineProperty(ce, "__esModule", { value: !0 });
2553
+ var t = re(), e = oe(), r = (
2495
2554
  /** @class */
2496
2555
  function() {
2497
- function n(i) {
2498
- Array.isArray(i) ? this.variables = e.default.resolveVariables(i) : (this.variables = i.variables, this.fields = i.fields, this.operation = i.operation);
2556
+ function n(o) {
2557
+ Array.isArray(o) ? this.variables = e.default.resolveVariables(o) : (this.variables = o.variables, this.fields = o.fields, this.operation = o.operation);
2499
2558
  }
2500
2559
  return n.prototype.mutationBuilder = function() {
2501
2560
  return this.operationWrapperTemplate(this.variables, this.operationTemplate(this.operation));
2502
- }, n.prototype.mutationsBuilder = function(i) {
2503
- var o = this, a = i.map(function(s) {
2504
- return o.operation = s.operation, o.variables = s.variables, o.fields = s.fields, o.operationTemplate(s.operation);
2561
+ }, n.prototype.mutationsBuilder = function(o) {
2562
+ var i = this, s = o.map(function(a) {
2563
+ return i.operation = a.operation, i.variables = a.variables, i.fields = a.fields, i.operationTemplate(a.operation);
2505
2564
  });
2506
- return this.operationWrapperTemplate(e.default.resolveVariables(i), a.join(`
2565
+ return this.operationWrapperTemplate(e.default.resolveVariables(o), s.join(`
2507
2566
  `));
2508
2567
  }, n.prototype.queryDataNameAndArgumentMap = function() {
2509
- return this.variables && Object.keys(this.variables).length ? "(".concat(Object.keys(this.variables).reduce(function(i, o, a) {
2510
- return "".concat(i).concat(a !== 0 ? ", " : "").concat(o, ": $").concat(o);
2568
+ return this.variables && Object.keys(this.variables).length ? "(".concat(Object.keys(this.variables).reduce(function(o, i, s) {
2569
+ return "".concat(o).concat(s !== 0 ? ", " : "").concat(i, ": $").concat(i);
2511
2570
  }, ""), ")") : "";
2512
- }, n.prototype.queryDataArgumentAndTypeMap = function(i) {
2513
- return Object.keys(i).length ? "(".concat(Object.keys(i).reduce(function(o, a, s) {
2514
- return "".concat(o).concat(s !== 0 ? ", " : "", "$").concat(a, ": ").concat(e.default.queryDataType(i[a]));
2571
+ }, n.prototype.queryDataArgumentAndTypeMap = function(o) {
2572
+ return Object.keys(o).length ? "(".concat(Object.keys(o).reduce(function(i, s, a) {
2573
+ return "".concat(i).concat(a !== 0 ? ", " : "", "$").concat(s, ": ").concat(e.default.queryDataType(o[s]));
2515
2574
  }, ""), ")") : "";
2516
- }, n.prototype.operationWrapperTemplate = function(i, o) {
2517
- var a = typeof this.operation == "string" ? this.operation : this.operation.name;
2575
+ }, n.prototype.operationWrapperTemplate = function(o, i) {
2576
+ var s = typeof this.operation == "string" ? this.operation : this.operation.name;
2518
2577
  return {
2519
- query: "".concat(t.default.Mutation, " ").concat(a.charAt(0).toUpperCase() + a.slice(1), " ").concat(this.queryDataArgumentAndTypeMap(i), ` {
2520
- `).concat(o, `
2578
+ query: "".concat(t.default.Mutation, " ").concat(s.charAt(0).toUpperCase() + s.slice(1), " ").concat(this.queryDataArgumentAndTypeMap(o), ` {
2579
+ `).concat(i, `
2521
2580
  }`),
2522
- variables: e.default.queryVariablesMap(i)
2581
+ variables: e.default.queryVariablesMap(o)
2523
2582
  };
2524
- }, n.prototype.operationTemplate = function(i) {
2525
- var o = typeof i == "string" ? i : "".concat(i.alias, ": ").concat(i.name);
2526
- return "".concat(o, " ").concat(this.queryDataNameAndArgumentMap(), ` {
2583
+ }, n.prototype.operationTemplate = function(o) {
2584
+ var i = typeof o == "string" ? o : "".concat(o.alias, ": ").concat(o.name);
2585
+ return "".concat(i, " ").concat(this.queryDataNameAndArgumentMap(), ` {
2527
2586
  `).concat(this.queryFieldsMap(this.fields), `
2528
2587
  }`);
2529
- }, n.prototype.queryFieldsMap = function(i) {
2530
- var o = this;
2531
- return Array.isArray(i) ? i.map(function(a) {
2532
- return typeof a == "object" ? "".concat(Object.keys(a)[0], " { ").concat(o.queryFieldsMap(Object.values(a)[0]), " }") : "".concat(a);
2588
+ }, n.prototype.queryFieldsMap = function(o) {
2589
+ var i = this;
2590
+ return Array.isArray(o) ? o.map(function(s) {
2591
+ return typeof s == "object" ? "".concat(Object.keys(s)[0], " { ").concat(i.queryFieldsMap(Object.values(s)[0]), " }") : "".concat(s);
2533
2592
  }).join(", ") : "";
2534
2593
  }, n;
2535
2594
  }()
2536
2595
  );
2537
- return ue.default = r, ue;
2596
+ return ce.default = r, ce;
2538
2597
  }
2539
- var le = {}, At;
2540
- function Ei() {
2541
- if (At) return le;
2542
- At = 1, Object.defineProperty(le, "__esModule", { value: !0 });
2543
- var t = ne(), e = re(), r = (
2598
+ var fe = {}, At;
2599
+ function Po() {
2600
+ if (At) return fe;
2601
+ At = 1, Object.defineProperty(fe, "__esModule", { value: !0 });
2602
+ var t = re(), e = oe(), r = (
2544
2603
  /** @class */
2545
2604
  function() {
2546
- function n(i) {
2547
- this.queryDataType = function(o) {
2548
- var a = "String", s = typeof o == "object" ? o.value : o;
2549
- if (o.type !== void 0)
2550
- a = o.type;
2605
+ function n(o) {
2606
+ this.queryDataType = function(i) {
2607
+ var s = "String", a = typeof i == "object" ? i.value : i;
2608
+ if (i.type !== void 0)
2609
+ s = i.type;
2551
2610
  else
2552
- switch (typeof s) {
2611
+ switch (typeof a) {
2553
2612
  case "object":
2554
- a = "Object";
2613
+ s = "Object";
2555
2614
  break;
2556
2615
  case "boolean":
2557
- a = "Boolean";
2616
+ s = "Boolean";
2558
2617
  break;
2559
2618
  case "number":
2560
- a = s % 1 === 0 ? "Int" : "Float";
2619
+ s = a % 1 === 0 ? "Int" : "Float";
2561
2620
  break;
2562
2621
  }
2563
- return typeof o == "object" && o.required && (a += "!"), a;
2564
- }, Array.isArray(i) ? this.variables = e.default.resolveVariables(i) : (this.variables = i.variables, this.fields = i.fields || [], this.operation = i.operation);
2622
+ return typeof i == "object" && i.required && (s += "!"), s;
2623
+ }, Array.isArray(o) ? this.variables = e.default.resolveVariables(o) : (this.variables = o.variables, this.fields = o.fields || [], this.operation = o.operation);
2565
2624
  }
2566
2625
  return n.prototype.queryBuilder = function() {
2567
2626
  return this.operationWrapperTemplate(this.operationTemplate());
2568
- }, n.prototype.queriesBuilder = function(i) {
2569
- var o = this, a = function() {
2570
- var s = [];
2571
- return i.forEach(function(u) {
2572
- u && (o.operation = u.operation, o.fields = u.fields, o.variables = u.variables, s.push(o.operationTemplate()));
2573
- }), s.join(" ");
2627
+ }, n.prototype.queriesBuilder = function(o) {
2628
+ var i = this, s = function() {
2629
+ var a = [];
2630
+ return o.forEach(function(u) {
2631
+ u && (i.operation = u.operation, i.fields = u.fields, i.variables = u.variables, a.push(i.operationTemplate()));
2632
+ }), a.join(" ");
2574
2633
  };
2575
- return this.operationWrapperTemplate(a());
2634
+ return this.operationWrapperTemplate(s());
2576
2635
  }, n.prototype.queryDataNameAndArgumentMap = function() {
2577
- return this.variables && Object.keys(this.variables).length ? "(".concat(Object.keys(this.variables).reduce(function(i, o, a) {
2578
- return "".concat(i).concat(a !== 0 ? ", " : "").concat(o, ": $").concat(o);
2636
+ return this.variables && Object.keys(this.variables).length ? "(".concat(Object.keys(this.variables).reduce(function(o, i, s) {
2637
+ return "".concat(o).concat(s !== 0 ? ", " : "").concat(i, ": $").concat(i);
2579
2638
  }, ""), ")") : "";
2580
2639
  }, n.prototype.queryDataArgumentAndTypeMap = function() {
2581
- var i = this;
2582
- return this.variables && Object.keys(this.variables).length ? "(".concat(Object.keys(this.variables).reduce(function(o, a, s) {
2583
- return "".concat(o).concat(s !== 0 ? ", " : "", "$").concat(a, ": ").concat(i.queryDataType(i.variables[a]));
2640
+ var o = this;
2641
+ return this.variables && Object.keys(this.variables).length ? "(".concat(Object.keys(this.variables).reduce(function(i, s, a) {
2642
+ return "".concat(i).concat(a !== 0 ? ", " : "", "$").concat(s, ": ").concat(o.queryDataType(o.variables[s]));
2584
2643
  }, ""), ")") : "";
2585
- }, n.prototype.operationWrapperTemplate = function(i) {
2586
- var o = typeof this.operation == "string" ? this.operation : this.operation.name;
2644
+ }, n.prototype.operationWrapperTemplate = function(o) {
2645
+ var i = typeof this.operation == "string" ? this.operation : this.operation.name;
2587
2646
  return {
2588
- query: "".concat(t.default.Query, " ").concat(o.charAt(0).toUpperCase()).concat(o.slice(1), " ").concat(this.queryDataArgumentAndTypeMap(), " { ").concat(i, " }"),
2647
+ query: "".concat(t.default.Query, " ").concat(i.charAt(0).toUpperCase()).concat(i.slice(1), " ").concat(this.queryDataArgumentAndTypeMap(), " { ").concat(o, " }"),
2589
2648
  variables: e.default.queryVariablesMap(this.variables)
2590
2649
  };
2591
2650
  }, n.prototype.operationTemplate = function() {
2592
- var i = typeof this.operation == "string" ? this.operation : "".concat(this.operation.alias, ": ").concat(this.operation.name);
2593
- return "".concat(i, " ").concat(this.queryDataNameAndArgumentMap(), " { nodes { ").concat(e.default.queryFieldsMap(this.fields), " } }");
2651
+ var o = typeof this.operation == "string" ? this.operation : "".concat(this.operation.alias, ": ").concat(this.operation.name);
2652
+ return "".concat(o, " ").concat(this.queryDataNameAndArgumentMap(), " { nodes { ").concat(e.default.queryFieldsMap(this.fields), " } }");
2594
2653
  }, n;
2595
2654
  }()
2596
2655
  );
2597
- return le.default = r, le;
2656
+ return fe.default = r, fe;
2598
2657
  }
2599
- var Et;
2600
- function Ti() {
2601
- if (Et) return se;
2602
- Et = 1, Object.defineProperty(se, "__esModule", { value: !0 });
2603
- var t = Ai(), e = Ei();
2604
- return se.default = { DefaultAppSyncQueryAdapter: e.default, DefaultAppSyncMutationAdapter: t.default }, se;
2605
- }
2606
- var L = {}, Tt;
2607
- function _i() {
2608
- if (Tt) return L;
2609
- Tt = 1;
2610
- var t = L && L.__assign || function() {
2611
- return t = Object.assign || function(i) {
2612
- for (var o, a = 1, s = arguments.length; a < s; a++) {
2613
- o = arguments[a];
2614
- for (var u in o) Object.prototype.hasOwnProperty.call(o, u) && (i[u] = o[u]);
2658
+ var Tt;
2659
+ function ko() {
2660
+ if (Tt) return ue;
2661
+ Tt = 1, Object.defineProperty(ue, "__esModule", { value: !0 });
2662
+ var t = No(), e = Po();
2663
+ return ue.default = { DefaultAppSyncQueryAdapter: e.default, DefaultAppSyncMutationAdapter: t.default }, ue;
2664
+ }
2665
+ var $ = {}, _t;
2666
+ function Co() {
2667
+ if (_t) return $;
2668
+ _t = 1;
2669
+ var t = $ && $.__assign || function() {
2670
+ return t = Object.assign || function(o) {
2671
+ for (var i, s = 1, a = arguments.length; s < a; s++) {
2672
+ i = arguments[s];
2673
+ for (var u in i) Object.prototype.hasOwnProperty.call(i, u) && (o[u] = i[u]);
2615
2674
  }
2616
- return i;
2675
+ return o;
2617
2676
  }, t.apply(this, arguments);
2618
2677
  };
2619
- Object.defineProperty(L, "__esModule", { value: !0 });
2620
- var e = ne(), r = re(), n = (
2678
+ Object.defineProperty($, "__esModule", { value: !0 });
2679
+ var e = re(), r = oe(), n = (
2621
2680
  /** @class */
2622
2681
  function() {
2623
- function i(o, a) {
2624
- var s = this;
2625
- Array.isArray(o) ? this.variables = r.default.resolveVariables(o) : (this.variables = o.variables, this.fields = o.fields, this.operation = o.operation), this.config = {
2682
+ function o(i, s) {
2683
+ var a = this;
2684
+ Array.isArray(i) ? this.variables = r.default.resolveVariables(i) : (this.variables = i.variables, this.fields = i.fields, this.operation = i.operation), this.config = {
2626
2685
  operationName: ""
2627
- }, a && Object.entries(a).forEach(function(u) {
2686
+ }, s && Object.entries(s).forEach(function(u) {
2628
2687
  var c = u[0], l = u[1];
2629
- s.config[c] = l;
2688
+ a.config[c] = l;
2630
2689
  });
2631
2690
  }
2632
- return i.prototype.mutationBuilder = function() {
2691
+ return o.prototype.mutationBuilder = function() {
2633
2692
  return this.operationWrapperTemplate(e.default.Mutation, this.variables, this.operationTemplate(this.operation));
2634
- }, i.prototype.mutationsBuilder = function(o) {
2635
- var a = this, s = o.map(function(u) {
2636
- return a.operation = u.operation, a.variables = u.variables, a.fields = u.fields, a.operationTemplate(u.operation);
2693
+ }, o.prototype.mutationsBuilder = function(i) {
2694
+ var s = this, a = i.map(function(u) {
2695
+ return s.operation = u.operation, s.variables = u.variables, s.fields = u.fields, s.operationTemplate(u.operation);
2637
2696
  });
2638
- return this.operationWrapperTemplate(e.default.Mutation, r.default.resolveVariables(o), s.join(`
2697
+ return this.operationWrapperTemplate(e.default.Mutation, r.default.resolveVariables(i), a.join(`
2639
2698
  `));
2640
- }, i.prototype.queryDataArgumentAndTypeMap = function(o) {
2641
- return this.fields && typeof this.fields == "object" && (o = t(t({}, r.default.getNestedVariables(this.fields)), o)), o && Object.keys(o).length > 0 ? "(".concat(Object.keys(o).reduce(function(a, s, u) {
2642
- return "".concat(a).concat(u !== 0 ? ", " : "", "$").concat(s, ": ").concat(r.default.queryDataType(o[s]));
2699
+ }, o.prototype.queryDataArgumentAndTypeMap = function(i) {
2700
+ return this.fields && typeof this.fields == "object" && (i = t(t({}, r.default.getNestedVariables(this.fields)), i)), i && Object.keys(i).length > 0 ? "(".concat(Object.keys(i).reduce(function(s, a, u) {
2701
+ return "".concat(s).concat(u !== 0 ? ", " : "", "$").concat(a, ": ").concat(r.default.queryDataType(i[a]));
2643
2702
  }, ""), ")") : "";
2644
- }, i.prototype.operationWrapperTemplate = function(o, a, s) {
2645
- var u = "".concat(o, " ").concat(this.queryDataArgumentAndTypeMap(a), ` {
2646
- `).concat(s, `
2703
+ }, o.prototype.operationWrapperTemplate = function(i, s, a) {
2704
+ var u = "".concat(i, " ").concat(this.queryDataArgumentAndTypeMap(s), ` {
2705
+ `).concat(a, `
2647
2706
  }`);
2648
2707
  return this.config.operationName && (u = u.replace("mutation", "mutation ".concat(this.config.operationName))), {
2649
2708
  query: u,
2650
- variables: r.default.queryVariablesMap(a, this.fields)
2709
+ variables: r.default.queryVariablesMap(s, this.fields)
2651
2710
  };
2652
- }, i.prototype.operationTemplate = function(o) {
2653
- var a = typeof o == "string" ? o : "".concat(o.alias, ": ").concat(o.name);
2654
- return "".concat(a, " ").concat(r.default.queryDataNameAndArgumentMap(this.variables), " ").concat(this.fields && this.fields.length > 0 ? `{
2711
+ }, o.prototype.operationTemplate = function(i) {
2712
+ var s = typeof i == "string" ? i : "".concat(i.alias, ": ").concat(i.name);
2713
+ return "".concat(s, " ").concat(r.default.queryDataNameAndArgumentMap(this.variables), " ").concat(this.fields && this.fields.length > 0 ? `{
2655
2714
  `.concat(r.default.queryFieldsMap(this.fields), `
2656
2715
  }`) : "");
2657
- }, i;
2716
+ }, o;
2658
2717
  }()
2659
2718
  );
2660
- return L.default = n, L;
2719
+ return $.default = n, $;
2661
2720
  }
2662
- var $ = {}, _t;
2663
- function Ri() {
2664
- if (_t) return $;
2665
- _t = 1;
2666
- var t = $ && $.__assign || function() {
2667
- return t = Object.assign || function(i) {
2668
- for (var o, a = 1, s = arguments.length; a < s; a++) {
2669
- o = arguments[a];
2670
- for (var u in o) Object.prototype.hasOwnProperty.call(o, u) && (i[u] = o[u]);
2721
+ var H = {}, Rt;
2722
+ function qo() {
2723
+ if (Rt) return H;
2724
+ Rt = 1;
2725
+ var t = H && H.__assign || function() {
2726
+ return t = Object.assign || function(o) {
2727
+ for (var i, s = 1, a = arguments.length; s < a; s++) {
2728
+ i = arguments[s];
2729
+ for (var u in i) Object.prototype.hasOwnProperty.call(i, u) && (o[u] = i[u]);
2671
2730
  }
2672
- return i;
2731
+ return o;
2673
2732
  }, t.apply(this, arguments);
2674
2733
  };
2675
- Object.defineProperty($, "__esModule", { value: !0 });
2676
- var e = ne(), r = re(), n = (
2734
+ Object.defineProperty(H, "__esModule", { value: !0 });
2735
+ var e = re(), r = oe(), n = (
2677
2736
  /** @class */
2678
2737
  function() {
2679
- function i(o, a) {
2680
- var s = this;
2738
+ function o(i, s) {
2739
+ var a = this;
2681
2740
  this.config = {
2682
2741
  operationName: ""
2683
- }, a && Object.entries(a).forEach(function(u) {
2742
+ }, s && Object.entries(s).forEach(function(u) {
2684
2743
  var c = u[0], l = u[1];
2685
- s.config[c] = l;
2686
- }), Array.isArray(o) ? this.variables = r.default.resolveVariables(o) : (this.variables = o.variables, this.fields = o.fields || [], this.operation = o.operation);
2744
+ a.config[c] = l;
2745
+ }), Array.isArray(i) ? this.variables = r.default.resolveVariables(i) : (this.variables = i.variables, this.fields = i.fields || [], this.operation = i.operation);
2687
2746
  }
2688
- return i.prototype.queryBuilder = function() {
2747
+ return o.prototype.queryBuilder = function() {
2689
2748
  return this.operationWrapperTemplate(this.operationTemplate(this.variables));
2690
- }, i.prototype.queriesBuilder = function(o) {
2691
- var a = this, s = function() {
2749
+ }, o.prototype.queriesBuilder = function(i) {
2750
+ var s = this, a = function() {
2692
2751
  var u = [];
2693
- return o.forEach(function(c) {
2694
- c && (a.operation = c.operation, a.fields = c.fields, u.push(a.operationTemplate(c.variables)));
2752
+ return i.forEach(function(c) {
2753
+ c && (s.operation = c.operation, s.fields = c.fields, u.push(s.operationTemplate(c.variables)));
2695
2754
  }), u.join(" ");
2696
2755
  };
2697
- return this.operationWrapperTemplate(s());
2698
- }, i.prototype.queryDataArgumentAndTypeMap = function() {
2699
- var o = this.variables;
2700
- return this.fields && typeof this.fields == "object" && (o = t(t({}, r.default.getNestedVariables(this.fields)), o)), o && Object.keys(o).length > 0 ? "(".concat(Object.keys(o).reduce(function(a, s, u) {
2701
- return "".concat(a).concat(u !== 0 ? ", " : "", "$").concat(s, ": ").concat(r.default.queryDataType(o[s]));
2756
+ return this.operationWrapperTemplate(a());
2757
+ }, o.prototype.queryDataArgumentAndTypeMap = function() {
2758
+ var i = this.variables;
2759
+ return this.fields && typeof this.fields == "object" && (i = t(t({}, r.default.getNestedVariables(this.fields)), i)), i && Object.keys(i).length > 0 ? "(".concat(Object.keys(i).reduce(function(s, a, u) {
2760
+ return "".concat(s).concat(u !== 0 ? ", " : "", "$").concat(a, ": ").concat(r.default.queryDataType(i[a]));
2702
2761
  }, ""), ")") : "";
2703
- }, i.prototype.operationWrapperTemplate = function(o) {
2704
- var a = "".concat(e.default.Query, " ").concat(this.queryDataArgumentAndTypeMap(), " { ").concat(o, " }");
2705
- return a = a.replace("query", "query".concat(this.config.operationName !== "" ? " " + this.config.operationName : "")), {
2706
- query: a,
2762
+ }, o.prototype.operationWrapperTemplate = function(i) {
2763
+ var s = "".concat(e.default.Query, " ").concat(this.queryDataArgumentAndTypeMap(), " { ").concat(i, " }");
2764
+ return s = s.replace("query", "query".concat(this.config.operationName !== "" ? " " + this.config.operationName : "")), {
2765
+ query: s,
2707
2766
  variables: r.default.queryVariablesMap(this.variables, this.fields)
2708
2767
  };
2709
- }, i.prototype.operationTemplate = function(o) {
2710
- var a = typeof this.operation == "string" ? this.operation : "".concat(this.operation.alias, ": ").concat(this.operation.name);
2711
- return "".concat(a, " ").concat(o ? r.default.queryDataNameAndArgumentMap(o) : "", " ").concat(this.fields && this.fields.length > 0 ? "{ " + r.default.queryFieldsMap(this.fields) + " }" : "");
2712
- }, i;
2768
+ }, o.prototype.operationTemplate = function(i) {
2769
+ var s = typeof this.operation == "string" ? this.operation : "".concat(this.operation.alias, ": ").concat(this.operation.name);
2770
+ return "".concat(s, " ").concat(i ? r.default.queryDataNameAndArgumentMap(i) : "", " ").concat(this.fields && this.fields.length > 0 ? "{ " + r.default.queryFieldsMap(this.fields) + " }" : "");
2771
+ }, o;
2713
2772
  }()
2714
2773
  );
2715
- return $.default = n, $;
2774
+ return H.default = n, H;
2716
2775
  }
2717
- var fe = {}, Rt;
2718
- function Ni() {
2719
- if (Rt) return fe;
2720
- Rt = 1, Object.defineProperty(fe, "__esModule", { value: !0 });
2721
- var t = ne(), e = re(), r = (
2776
+ var de = {}, Nt;
2777
+ function Do() {
2778
+ if (Nt) return de;
2779
+ Nt = 1, Object.defineProperty(de, "__esModule", { value: !0 });
2780
+ var t = re(), e = oe(), r = (
2722
2781
  /** @class */
2723
2782
  function() {
2724
- function n(i) {
2725
- Array.isArray(i) ? this.variables = e.default.resolveVariables(i) : (this.variables = i.variables, this.fields = i.fields, this.operation = i.operation);
2783
+ function n(o) {
2784
+ Array.isArray(o) ? this.variables = e.default.resolveVariables(o) : (this.variables = o.variables, this.fields = o.fields, this.operation = o.operation);
2726
2785
  }
2727
2786
  return n.prototype.subscriptionBuilder = function() {
2728
2787
  return this.operationWrapperTemplate(t.default.Subscription, this.variables, this.operationTemplate(this.operation));
2729
- }, n.prototype.subscriptionsBuilder = function(i) {
2730
- var o = this, a = i.map(function(s) {
2731
- return o.operation = s.operation, o.variables = s.variables, o.fields = s.fields, o.operationTemplate(s.operation);
2788
+ }, n.prototype.subscriptionsBuilder = function(o) {
2789
+ var i = this, s = o.map(function(a) {
2790
+ return i.operation = a.operation, i.variables = a.variables, i.fields = a.fields, i.operationTemplate(a.operation);
2732
2791
  });
2733
- return this.operationWrapperTemplate(t.default.Subscription, e.default.resolveVariables(i), a.join(`
2792
+ return this.operationWrapperTemplate(t.default.Subscription, e.default.resolveVariables(o), s.join(`
2734
2793
  `));
2735
2794
  }, n.prototype.queryDataNameAndArgumentMap = function() {
2736
- return this.variables && Object.keys(this.variables).length ? "(".concat(Object.keys(this.variables).reduce(function(i, o, a) {
2737
- return "".concat(i).concat(a !== 0 ? ", " : "").concat(o, ": $").concat(o);
2795
+ return this.variables && Object.keys(this.variables).length ? "(".concat(Object.keys(this.variables).reduce(function(o, i, s) {
2796
+ return "".concat(o).concat(s !== 0 ? ", " : "").concat(i, ": $").concat(i);
2738
2797
  }, ""), ")") : "";
2739
- }, n.prototype.queryDataArgumentAndTypeMap = function(i) {
2740
- return Object.keys(i).length ? "(".concat(Object.keys(i).reduce(function(o, a, s) {
2741
- return "".concat(o).concat(s !== 0 ? ", " : "", "$").concat(a, ": ").concat(e.default.queryDataType(i[a]));
2798
+ }, n.prototype.queryDataArgumentAndTypeMap = function(o) {
2799
+ return Object.keys(o).length ? "(".concat(Object.keys(o).reduce(function(i, s, a) {
2800
+ return "".concat(i).concat(a !== 0 ? ", " : "", "$").concat(s, ": ").concat(e.default.queryDataType(o[s]));
2742
2801
  }, ""), ")") : "";
2743
- }, n.prototype.operationWrapperTemplate = function(i, o, a) {
2802
+ }, n.prototype.operationWrapperTemplate = function(o, i, s) {
2744
2803
  return {
2745
- query: "".concat(i, " ").concat(this.queryDataArgumentAndTypeMap(o), ` {
2746
- `).concat(a, `
2804
+ query: "".concat(o, " ").concat(this.queryDataArgumentAndTypeMap(i), ` {
2805
+ `).concat(s, `
2747
2806
  }`),
2748
- variables: e.default.queryVariablesMap(o)
2807
+ variables: e.default.queryVariablesMap(i)
2749
2808
  };
2750
- }, n.prototype.operationTemplate = function(i) {
2751
- var o = typeof this.operation == "string" ? this.operation : "".concat(this.operation.alias, ": ").concat(this.operation.name);
2752
- return "".concat(o, " ").concat(this.queryDataNameAndArgumentMap(), ` {
2809
+ }, n.prototype.operationTemplate = function(o) {
2810
+ var i = typeof this.operation == "string" ? this.operation : "".concat(this.operation.alias, ": ").concat(this.operation.name);
2811
+ return "".concat(i, " ").concat(this.queryDataNameAndArgumentMap(), ` {
2753
2812
  `).concat(this.queryFieldsMap(this.fields), `
2754
2813
  }`);
2755
- }, n.prototype.queryFieldsMap = function(i) {
2756
- var o = this;
2757
- return i ? i.map(function(a) {
2758
- return typeof a == "object" ? "".concat(Object.keys(a)[0], " { ").concat(o.queryFieldsMap(Object.values(a)[0]), " }") : "".concat(a);
2814
+ }, n.prototype.queryFieldsMap = function(o) {
2815
+ var i = this;
2816
+ return o ? o.map(function(s) {
2817
+ return typeof s == "object" ? "".concat(Object.keys(s)[0], " { ").concat(i.queryFieldsMap(Object.values(s)[0]), " }") : "".concat(s);
2759
2818
  }).join(", ") : "";
2760
2819
  }, n;
2761
2820
  }()
2762
2821
  );
2763
- return fe.default = r, fe;
2764
- }
2765
- var Nt;
2766
- function Pi() {
2767
- if (Nt) return N;
2768
- Nt = 1, Object.defineProperty(N, "__esModule", { value: !0 }), N.adapters = N.query = N.mutation = N.subscription = void 0;
2769
- var t = Ti();
2770
- N.adapters = t.default;
2771
- var e = _i(), r = Ri(), n = Ni();
2772
- function i(s, u, c) {
2822
+ return de.default = r, de;
2823
+ }
2824
+ var Pt;
2825
+ function jo() {
2826
+ if (Pt) return P;
2827
+ Pt = 1, Object.defineProperty(P, "__esModule", { value: !0 }), P.adapters = P.query = P.mutation = P.subscription = void 0;
2828
+ var t = ko();
2829
+ P.adapters = t.default;
2830
+ var e = Co(), r = qo(), n = Do();
2831
+ function o(a, u, c) {
2773
2832
  var l;
2774
- if (Array.isArray(s)) {
2833
+ if (Array.isArray(a)) {
2775
2834
  if (u) {
2776
- var d = new u(s, c);
2777
- return d.queriesBuilder(s);
2835
+ var d = new u(a, c);
2836
+ return d.queriesBuilder(a);
2778
2837
  }
2779
- return l = new r.default(s, c), l.queriesBuilder(s);
2838
+ return l = new r.default(a, c), l.queriesBuilder(a);
2780
2839
  }
2781
2840
  if (u) {
2782
- var d = new u(s, c);
2841
+ var d = new u(a, c);
2783
2842
  return d.queryBuilder();
2784
2843
  }
2785
- return l = new r.default(s, c), l.queryBuilder();
2844
+ return l = new r.default(a, c), l.queryBuilder();
2786
2845
  }
2787
- N.query = i;
2788
- function o(s, u, c) {
2846
+ P.query = o;
2847
+ function i(a, u, c) {
2789
2848
  var l, d;
2790
- return Array.isArray(s) ? u ? (l = new u(s, c), l.mutationsBuilder(s)) : (d = new e.default(s, c), d.mutationsBuilder(s)) : u ? (l = new u(s, c), l.mutationBuilder()) : (d = new e.default(s, c), d.mutationBuilder());
2849
+ return Array.isArray(a) ? u ? (l = new u(a, c), l.mutationsBuilder(a)) : (d = new e.default(a, c), d.mutationsBuilder(a)) : u ? (l = new u(a, c), l.mutationBuilder()) : (d = new e.default(a, c), d.mutationBuilder());
2791
2850
  }
2792
- N.mutation = o;
2793
- function a(s, u) {
2851
+ P.mutation = i;
2852
+ function s(a, u) {
2794
2853
  var c, l;
2795
- return Array.isArray(s) ? u ? (c = new u(s), c.subscriptionsBuilder(s)) : (l = new n.default(s), l.subscriptionsBuilder(s)) : u ? (c = new u(s), c.subscriptionBuilder()) : (l = new n.default(s), l.subscriptionBuilder());
2854
+ return Array.isArray(a) ? u ? (c = new u(a), c.subscriptionsBuilder(a)) : (l = new n.default(a), l.subscriptionsBuilder(a)) : u ? (c = new u(a), c.subscriptionBuilder()) : (l = new n.default(a), l.subscriptionBuilder());
2796
2855
  }
2797
- return N.subscription = a, N;
2856
+ return P.subscription = s, P;
2798
2857
  }
2799
- Pi();
2800
- const ki = {
2858
+ jo();
2859
+ const xo = {
2801
2860
  kind: "Document",
2802
2861
  definitions: [{
2803
2862
  kind: "FragmentDefinition",
@@ -2841,7 +2900,7 @@ const ki = {
2841
2900
  }]
2842
2901
  }
2843
2902
  }]
2844
- }, Ci = {
2903
+ }, Fo = {
2845
2904
  kind: "Document",
2846
2905
  definitions: [{
2847
2906
  kind: "OperationDefinition",
@@ -3016,7 +3075,7 @@ const ki = {
3016
3075
  }]
3017
3076
  }
3018
3077
  }]
3019
- }, qi = {
3078
+ }, Mo = {
3020
3079
  kind: "Document",
3021
3080
  definitions: [{
3022
3081
  kind: "OperationDefinition",
@@ -3046,7 +3105,7 @@ const ki = {
3046
3105
  }]
3047
3106
  }
3048
3107
  }]
3049
- }, ji = {
3108
+ }, Bo = {
3050
3109
  kind: "Document",
3051
3110
  definitions: [{
3052
3111
  kind: "OperationDefinition",
@@ -3076,7 +3135,7 @@ const ki = {
3076
3135
  }]
3077
3136
  }
3078
3137
  }]
3079
- }, Di = {
3138
+ }, Uo = {
3080
3139
  kind: "Document",
3081
3140
  definitions: [{
3082
3141
  kind: "OperationDefinition",
@@ -3159,7 +3218,7 @@ const ki = {
3159
3218
  }]
3160
3219
  }
3161
3220
  }]
3162
- }, Fi = {
3221
+ }, Io = {
3163
3222
  kind: "Document",
3164
3223
  definitions: [{
3165
3224
  kind: "OperationDefinition",
@@ -3179,7 +3238,7 @@ const ki = {
3179
3238
  }]
3180
3239
  }
3181
3240
  }]
3182
- }, xi = {
3241
+ }, Lo = {
3183
3242
  kind: "Document",
3184
3243
  definitions: [{
3185
3244
  kind: "OperationDefinition",
@@ -3250,19 +3309,19 @@ const ki = {
3250
3309
  }]
3251
3310
  }
3252
3311
  }]
3253
- }, Mi = {
3254
- "\n mutation login($email: String!, $password: String!, $rememberMe: Boolean) {\n login(username: $email, password: $password, rememberMe: $rememberMe) {\n __typename\n ... on CurrentUser {\n id\n identifier\n }\n ... on ErrorResult {\n errorCode\n message\n }\n }\n }\n": Ci,
3255
- "\n mutation logout {\n logout {\n success\n }\n }\n": qi,
3256
- "\n query me {\n me {\n id\n }\n }\n": ji,
3257
- "\n mutation transitionOrderToState($input: String!) {\n transitionOrderToState(state: $input) {\n ... on ErrorResult {\n errorCode\n message\n }\n }\n }\n": Di,
3258
- "\n query nextOrderStates {\n nextOrderStates\n }\n": Fi,
3259
- "\n fragment EligiblePaymentMethods on PaymentMethodQuote {\n id\n name\n description\n code\n }\n": ki,
3260
- "\n query EligiblePaymentMethods {\n eligiblePaymentMethods {\n ...EligiblePaymentMethods\n }\n }\n": xi
3312
+ }, $o = {
3313
+ "\n mutation login($email: String!, $password: String!, $rememberMe: Boolean) {\n login(username: $email, password: $password, rememberMe: $rememberMe) {\n __typename\n ... on CurrentUser {\n id\n identifier\n }\n ... on ErrorResult {\n errorCode\n message\n }\n }\n }\n": Fo,
3314
+ "\n mutation logout {\n logout {\n success\n }\n }\n": Mo,
3315
+ "\n query me {\n me {\n id\n }\n }\n": Bo,
3316
+ "\n mutation transitionOrderToState($input: String!) {\n transitionOrderToState(state: $input) {\n ... on ErrorResult {\n errorCode\n message\n }\n }\n }\n": Uo,
3317
+ "\n query nextOrderStates {\n nextOrderStates\n }\n": Io,
3318
+ "\n fragment EligiblePaymentMethods on PaymentMethodQuote {\n id\n name\n description\n code\n }\n": xo,
3319
+ "\n query EligiblePaymentMethods {\n eligiblePaymentMethods {\n ...EligiblePaymentMethods\n }\n }\n": Lo
3261
3320
  };
3262
- function Re(t) {
3263
- return Mi[t] ?? {};
3321
+ function Ne(t) {
3322
+ return $o[t] ?? {};
3264
3323
  }
3265
- Re(
3324
+ Ne(
3266
3325
  /* GraphQL */
3267
3326
  `
3268
3327
  mutation transitionOrderToState($input: String!) {
@@ -3275,7 +3334,7 @@ Re(
3275
3334
  }
3276
3335
  `
3277
3336
  );
3278
- Re(
3337
+ Ne(
3279
3338
  /* GraphQL */
3280
3339
  `
3281
3340
  query nextOrderStates {
@@ -3283,7 +3342,7 @@ Re(
3283
3342
  }
3284
3343
  `
3285
3344
  );
3286
- Re(
3345
+ Ne(
3287
3346
  /* GraphQL */
3288
3347
  `
3289
3348
  fragment EligiblePaymentMethods on PaymentMethodQuote {
@@ -3294,7 +3353,7 @@ Re(
3294
3353
  }
3295
3354
  `
3296
3355
  );
3297
- Re(
3356
+ Ne(
3298
3357
  /* GraphQL */
3299
3358
  `
3300
3359
  query EligiblePaymentMethods {
@@ -3304,32 +3363,32 @@ Re(
3304
3363
  }
3305
3364
  `
3306
3365
  );
3307
- let Pt = "web";
3366
+ let kt = "web";
3308
3367
  try {
3309
3368
  const {
3310
3369
  Platform: t
3311
3370
  } = require("react-native");
3312
- Pt = t.OS === "web" ? "web" : "native";
3371
+ kt = t.OS === "web" ? "web" : "native";
3313
3372
  } catch {
3314
- Pt = "web";
3373
+ kt = "web";
3315
3374
  }
3316
- const Ne = () => {
3317
- const t = X.c(2), {
3375
+ const Pe = () => {
3376
+ const t = z.c(2), {
3318
3377
  getPlatform: e
3319
- } = In();
3378
+ } = Vn();
3320
3379
  let r;
3321
3380
  return t[0] !== e ? (r = e(), t[0] = e, t[1] = r) : r = t[1], r;
3322
3381
  };
3323
- typeof window < "u" ? window.__STORE_COMPONENT_PROVIDER_CONTEXT__ || (window.__STORE_COMPONENT_PROVIDER_CONTEXT__ = he(void 0)) : he(void 0);
3324
- const Pe = "ProductBadge", [Bi] = gn(Pe), [Ui, Ii] = Bi(Pe), cn = ({
3382
+ typeof window < "u" ? window.__STORE_COMPONENT_PROVIDER_CONTEXT__ || (window.__STORE_COMPONENT_PROVIDER_CONTEXT__ = ye(void 0)) : ye(void 0);
3383
+ const ke = "ProductBadge", [Ho] = vn(ke), [Vo, Wo] = Ho(ke), ln = ({
3325
3384
  children: t,
3326
3385
  product: e,
3327
3386
  __scopeProductBadge: r,
3328
3387
  style: n,
3329
- ...i
3388
+ ...o
3330
3389
  }) => {
3331
- const o = bn(null), a = Ne(), s = ve(a);
3332
- if (!V.getEnabled())
3390
+ const i = gn(null), s = Pe(), a = we(s);
3391
+ if (!W.getEnabled())
3333
3392
  return null;
3334
3393
  const {
3335
3394
  badges: u
@@ -3339,78 +3398,78 @@ const Pe = "ProductBadge", [Bi] = gn(Pe), [Ui, Ii] = Bi(Pe), cn = ({
3339
3398
  const c = u.reduce((m, y) => (m[y.position] || (m[y.position] = []), m[y.position].push(y), m), {}), l = Object.keys(c), d = {
3340
3399
  groupedBadges: c,
3341
3400
  badges: u,
3342
- badgesRef: o,
3401
+ badgesRef: i,
3343
3402
  positions: l
3344
3403
  };
3345
- return /* @__PURE__ */ j.jsx(Ui, { scope: r, ...d, children: /* @__PURE__ */ j.jsx(s, { ...i, style: n, children: Ct(t, d) }) });
3404
+ return /* @__PURE__ */ j.jsx(Vo, { scope: r, ...d, children: /* @__PURE__ */ j.jsx(a, { ...o, style: n, children: qt(t, d) }) });
3346
3405
  };
3347
- cn.displayName = Pe;
3348
- const ln = (t) => {
3349
- const e = X.c(18);
3350
- let r, n, i, o, a;
3406
+ ln.displayName = ke;
3407
+ const fn = (t) => {
3408
+ const e = z.c(18);
3409
+ let r, n, o, i, s;
3351
3410
  e[0] !== t ? ({
3352
- children: i,
3353
- position: o,
3411
+ children: o,
3412
+ position: i,
3354
3413
  asChild: n,
3355
3414
  __scopeProductBadge: r,
3356
- ...a
3357
- } = t, e[0] = t, e[1] = r, e[2] = n, e[3] = i, e[4] = o, e[5] = a) : (r = e[1], n = e[2], i = e[3], o = e[4], a = e[5]);
3358
- const s = Ne();
3415
+ ...s
3416
+ } = t, e[0] = t, e[1] = r, e[2] = n, e[3] = o, e[4] = i, e[5] = s) : (r = e[1], n = e[2], o = e[3], i = e[4], s = e[5]);
3417
+ const a = Pe();
3359
3418
  let u;
3360
- e[6] !== n || e[7] !== s ? (u = ve(s, n, "div"), e[6] = n, e[7] = s, e[8] = u) : u = e[8];
3419
+ e[6] !== n || e[7] !== a ? (u = we(a, n, "div"), e[6] = n, e[7] = a, e[8] = u) : u = e[8];
3361
3420
  const c = u, {
3362
3421
  groupedBadges: l
3363
- } = Ii(Pe, r), d = l[o];
3422
+ } = Wo(ke, r), d = l[i];
3364
3423
  let m;
3365
- e[9] !== d || e[10] !== i || e[11] !== o ? (m = Ct(i, {
3424
+ e[9] !== d || e[10] !== o || e[11] !== i ? (m = qt(o, {
3366
3425
  badges: d,
3367
- position: o
3368
- }), e[9] = d, e[10] = i, e[11] = o, e[12] = m) : m = e[12];
3426
+ position: i
3427
+ }), e[9] = d, e[10] = o, e[11] = i, e[12] = m) : m = e[12];
3369
3428
  let y;
3370
- return e[13] !== c || e[14] !== o || e[15] !== a || e[16] !== m ? (y = /* @__PURE__ */ j.jsx(c, { ...a, "data-position": o, children: m }), e[13] = c, e[14] = o, e[15] = a, e[16] = m, e[17] = y) : y = e[17], y;
3371
- }, fn = (t) => {
3372
- const e = X.c(13);
3373
- let r, n, i, o;
3429
+ return e[13] !== c || e[14] !== i || e[15] !== s || e[16] !== m ? (y = /* @__PURE__ */ j.jsx(c, { ...s, "data-position": i, children: m }), e[13] = c, e[14] = i, e[15] = s, e[16] = m, e[17] = y) : y = e[17], y;
3430
+ }, dn = (t) => {
3431
+ const e = z.c(13);
3432
+ let r, n, o, i;
3374
3433
  e[0] !== t ? ({
3375
- children: i,
3434
+ children: o,
3376
3435
  asChild: r,
3377
3436
  badge: n,
3378
- ...o
3379
- } = t, e[0] = t, e[1] = r, e[2] = n, e[3] = i, e[4] = o) : (r = e[1], n = e[2], i = e[3], o = e[4]);
3380
- const a = Ne();
3381
- let s;
3382
- e[5] !== r || e[6] !== a ? (s = ve(a, r, "div"), e[5] = r, e[6] = a, e[7] = s) : s = e[7];
3383
- const u = s, c = n?.id;
3437
+ ...i
3438
+ } = t, e[0] = t, e[1] = r, e[2] = n, e[3] = o, e[4] = i) : (r = e[1], n = e[2], o = e[3], i = e[4]);
3439
+ const s = Pe();
3440
+ let a;
3441
+ e[5] !== r || e[6] !== s ? (a = we(s, r, "div"), e[5] = r, e[6] = s, e[7] = a) : a = e[7];
3442
+ const u = a, c = n?.id;
3384
3443
  let l;
3385
- return e[8] !== u || e[9] !== i || e[10] !== o || e[11] !== c ? (l = /* @__PURE__ */ j.jsx(u, { ...o, "data-badge-id": c, children: i }), e[8] = u, e[9] = i, e[10] = o, e[11] = c, e[12] = l) : l = e[12], l;
3386
- }, dn = (t) => {
3387
- const e = X.c(15);
3388
- let r, n, i;
3444
+ return e[8] !== u || e[9] !== o || e[10] !== i || e[11] !== c ? (l = /* @__PURE__ */ j.jsx(u, { ...i, "data-badge-id": c, children: o }), e[8] = u, e[9] = o, e[10] = i, e[11] = c, e[12] = l) : l = e[12], l;
3445
+ }, pn = (t) => {
3446
+ const e = z.c(15);
3447
+ let r, n, o;
3389
3448
  e[0] !== t ? ({
3390
3449
  badge: n,
3391
3450
  asChild: r,
3392
- ...i
3393
- } = t, e[0] = t, e[1] = r, e[2] = n, e[3] = i) : (r = e[1], n = e[2], i = e[3]);
3394
- const o = Ne();
3395
- let a;
3396
- e[4] !== r || e[5] !== o ? (a = ve(o, r, "img"), e[4] = r, e[5] = o, e[6] = a) : a = e[6];
3397
- const s = a;
3451
+ ...o
3452
+ } = t, e[0] = t, e[1] = r, e[2] = n, e[3] = o) : (r = e[1], n = e[2], o = e[3]);
3453
+ const i = Pe();
3454
+ let s;
3455
+ e[4] !== r || e[5] !== i ? (s = we(i, r, "img"), e[4] = r, e[5] = i, e[6] = s) : s = e[6];
3456
+ const a = s;
3398
3457
  let u;
3399
- e[7] !== o || e[8] !== i ? (u = hn(i, o), e[7] = o, e[8] = i, e[9] = u) : u = e[9];
3458
+ e[7] !== i || e[8] !== o ? (u = yn(o, i), e[7] = i, e[8] = o, e[9] = u) : u = e[9];
3400
3459
  const c = u, l = n.asset?.preview;
3401
3460
  let d;
3402
- return e[10] !== s || e[11] !== n.collection.name || e[12] !== l || e[13] !== c ? (d = /* @__PURE__ */ j.jsx(s, { src: l, alt: n.collection.name, "data-badge-name": n.collection.name, ...c }), e[10] = s, e[11] = n.collection.name, e[12] = l, e[13] = c, e[14] = d) : d = e[14], d;
3461
+ return e[10] !== a || e[11] !== n.collection.name || e[12] !== l || e[13] !== c ? (d = /* @__PURE__ */ j.jsx(a, { src: l, alt: n.collection.name, "data-badge-name": n.collection.name, ...c }), e[10] = a, e[11] = n.collection.name, e[12] = l, e[13] = c, e[14] = d) : d = e[14], d;
3403
3462
  };
3404
- ln.displayName = "ProductBadgeGroup";
3405
- fn.displayName = "ProductBadgeItem";
3406
- dn.displayName = "ProductBadgeImage";
3407
- const fo = {
3408
- Root: cn,
3409
- Group: ln,
3410
- Item: fn,
3411
- Image: dn
3463
+ fn.displayName = "ProductBadgeGroup";
3464
+ dn.displayName = "ProductBadgeItem";
3465
+ pn.displayName = "ProductBadgeImage";
3466
+ const yi = {
3467
+ Root: ln,
3468
+ Group: fn,
3469
+ Item: dn,
3470
+ Image: pn
3412
3471
  };
3413
3472
  export {
3414
- fo as ProductBadge,
3415
- V as VendureBadgePlugin
3473
+ yi as ProductBadge,
3474
+ W as VendureBadgePlugin
3416
3475
  };