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

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 +22 -0
  2. package/badge.js +13 -13
  3. package/badge.mjs +1338 -1274
  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 hn, l as Dt } from "./index-Wcc0o6jA.mjs";
2
+ import { c as J, j, b as yn, t as bn, r as jt } from "./index-DlwdCtNm.mjs";
3
+ import * as E from "react";
4
+ import { createContext as be, useContext as gn, useRef as wn } from "react";
5
+ import { initReactI18next as tt } from "react-i18next";
6
+ import nt from "i18next";
7
+ import { QueryClient as Ue } from "@tanstack/react-query";
8
+ import { StyleSheet as ae } from "react-native";
9
+ const X = new hn({
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 ? X.getSettings().availablePositions[e] : X.getSettings().defaultPositions;
17
17
  return {
18
- badges: kt.filter(t, (i) => r ? r.includes(i.position) : !0),
18
+ badges: Dt.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
+ X.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
+ X.setRequests({
78
+ getBadges: async () => X.getSdk().createRequest({
79
79
  operation: "badges",
80
80
  fields: ["totalItems", {
81
81
  items: ["id", "createdAt", "updatedAt", "collectionId", "position", "assetId", {
@@ -93,268 +93,327 @@ 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 = J.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
- const v = h;
113
- let w;
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;
112
+ const w = h;
113
+ let v;
114
+ return d[4] !== b.Provider || d[5] !== m || d[6] !== w ? (v = /* @__PURE__ */ j.jsx(b.Provider, { value: w, children: m }), d[4] = b.Provider, d[5] = m, d[6] = w, d[7] = v) : v = d[7], v;
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 Sn = Symbol("radix.slottable");
142
+ function On(...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 En(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] = An(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 An(t, e) {
164
+ return typeof t == "function" && typeof e == "function" ? (r) => ae.flatten([t(r), e(r)]) : typeof t == "function" ? (r) => e ? ae.flatten([t(r), e]) : t(r) : typeof e == "function" ? (r) => t ? ae.flatten([t, e(r)]) : e(r) : ae.flatten([t, e].filter(Boolean));
165
165
  }
166
- function An(t) {
167
- return A.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === vn;
166
+ function Tn(t) {
167
+ return E.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === Sn;
168
168
  }
169
- function En(t) {
169
+ function _n(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 Rn(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 = _n(i), u = En(s, i.props);
181
+ return i.type !== E.Fragment && (u.ref = o ? On(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 Oe(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 yn(r, t);
190
+ const n = Rn("Slot"), o = E.forwardRef((i, s) => {
191
+ const a = J.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(Tn);
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;
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;
203
+ const p = y.props.children, b = m.map((v) => v === y ? E.Children.count(p) > 1 ? E.Children.only(null) : E.isValidElement(p) ? p.props.children : null : v), h = E.isValidElement(p) ? E.cloneElement(p, void 0, b) : null;
204
+ let w;
205
+ a[7] !== s || a[8] !== c || a[9] !== h ? (w = /* @__PURE__ */ j.jsx(n, { ...c, ref: s, children: h }), a[7] = s, a[8] = c, a[9] = h, a[10] = w) : w = a[10], l = w;
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 Nn = "debug", N = () => {
220
+ try {
221
+ if (typeof window > "u" || typeof localStorage > "u")
222
+ return !1;
223
+ const t = localStorage.getItem(Nn);
224
+ return t === "true" || t === "1";
225
+ } catch {
226
+ return !1;
227
+ }
228
+ }, Pn = () => {
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
+ }, M = Pn();
278
+ let W;
220
279
  try {
221
- H = require("@react-native-async-storage/async-storage").default;
280
+ W = require("@react-native-async-storage/async-storage").default;
222
281
  } catch {
223
- H = null;
282
+ W = 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 De = typeof window < "u" && typeof window.localStorage < "u", je = !!W, xe = {}, ue = {}, Z = {
285
+ getItem: async (t) => je ? W.getItem(t) : De ? new Promise((e) => {
227
286
  Promise.resolve().then(() => {
228
- const r = window.localStorage.getItem(t), n = ae[t];
229
- r !== n && (ae[t] = r || ""), e(r);
287
+ const r = window.localStorage.getItem(t), n = ue[t];
288
+ r !== n && (ue[t] = r || ""), e(r);
230
289
  });
231
- }) : qe[t] || null,
290
+ }) : xe[t] || null,
232
291
  setItem: async (t, e) => {
233
- if (Ce)
234
- return H.setItem(t, e);
235
- if (ke)
292
+ if (je)
293
+ return W.setItem(t, e);
294
+ if (De)
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 ? (ue[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
+ xe[t] = e;
248
307
  },
249
308
  removeItem: async (t) => {
250
- if (Ce)
251
- return H.removeItem(t);
252
- if (ke)
309
+ if (je)
310
+ return W.removeItem(t);
311
+ if (De)
253
312
  return new Promise((e, r) => {
254
313
  Promise.resolve().then(() => {
255
314
  try {
256
315
  window.localStorage.removeItem(t);
257
316
  const n = window.localStorage.getItem(t);
258
- n === null ? (delete ae[t], e()) : r(new Error(`Failed to remove localStorage item: key "${t}" still exists with value "${n}"`));
317
+ n === null ? (delete ue[t], e()) : r(new Error(`Failed to remove localStorage item: key "${t}" still exists with value "${n}"`));
259
318
  } catch (n) {
260
319
  r(n);
261
320
  }
262
321
  });
263
322
  });
264
- delete qe[t];
323
+ delete xe[t];
265
324
  }
266
325
  };
267
- 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) {
326
+ let Fe;
327
+ typeof window < "u" ? (window.__STORE_I18N_INSTANCE__ || (window.__STORE_I18N_INSTANCE__ = nt.createInstance()), window.__STORE_I18N_INSTANCE__.use(tt), Fe = window.__STORE_I18N_INSTANCE__) : (Fe = nt.createInstance(), Fe.use(tt));
328
+ function $e(t) {
270
329
  "@babel/helpers - typeof";
271
- return Ue = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
330
+ return $e = 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
+ }, $e(t);
276
335
  }
277
- function qt() {
278
- return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" : Ue(XMLHttpRequest)) === "object";
336
+ function xt() {
337
+ return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" : $e(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 rt(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 ot(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 ? rt(Object(r), !0).forEach(function(n) {
359
+ qn(t, n, r[n]);
360
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : rt(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 L(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 (L(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 (L(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 L(t) {
325
384
  "@babel/helpers - typeof";
326
- return B = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
385
+ return L = 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
+ }, L(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 ee;
394
+ xt() && (typeof global < "u" && global.XMLHttpRequest ? ee = global.XMLHttpRequest : typeof window < "u" && window.XMLHttpRequest && (ee = window.XMLHttpRequest));
395
+ var ge;
396
+ typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObject ? ge = global.ActiveXObject : typeof window < "u" && window.ActiveXObject && (ge = window.ActiveXObject));
397
+ typeof x != "function" && (x = void 0);
398
+ if (!x && !ee && !ge)
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 He = function(e, r) {
407
+ if (r && L(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
+ }, it = 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,121 +424,121 @@ 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
+ }, st = !1, xn = function(e, r, n, o) {
436
+ e.queryStringParams && (r = He(r, e.queryStringParams));
437
+ var i = ot({}, 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 = ot({
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
+ }, st ? {} : s), u = typeof e.alternateFetch == "function" && e.alternateFetch.length >= 1 ? e.alternateFetch : void 0;
385
444
  try {
386
- nt(r, s, i, u);
445
+ it(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
+ }), it(r, a, o, u), st = !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 && L(n) === "object" && (n = He("", n).slice(1)), e.queryStringParams && (r = He(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 = ee ? new ee() : new ge("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 (xt() || 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 z(t) {
425
484
  "@babel/helpers - typeof";
426
- return W = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
485
+ return z = 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
+ }, z(t);
431
490
  }
432
- function it(t, e) {
491
+ function at(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 Me(t) {
443
502
  for (var e = 1; e < arguments.length; e++) {
444
503
  var r = arguments[e] != null ? arguments[e] : {};
445
- e % 2 ? it(Object(r), !0).forEach(function(n) {
446
- jt(t, n, r[n]);
447
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : it(Object(r)).forEach(function(n) {
504
+ e % 2 ? at(Object(r), !0).forEach(function(n) {
505
+ Ft(t, n, r[n]);
506
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : at(Object(r)).forEach(function(n) {
448
507
  Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
449
508
  });
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 In(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, Mt(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 Ln(t, e, r) {
522
+ return e && In(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
464
523
  }
465
- 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;
524
+ function Ft(t, e, r) {
525
+ return (e = Mt(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 Mt(t) {
528
+ var e = Un(t, "string");
529
+ return z(e) == "symbol" ? e : e + "";
471
530
  }
472
- function Mn(t, e) {
473
- if (W(t) != "object" || !t) return t;
531
+ function Un(t, e) {
532
+ if (z(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 (z(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 Ft({}, 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 Ln(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 = Me(Me(Me({}, $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
+ z(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 Ve;
677
+ typeof window < "u" ? (window.__STORE_SDK_CONTEXT__ || (window.__STORE_SDK_CONTEXT__ = be(void 0)), Ve = window.__STORE_SDK_CONTEXT__) : Ve = be(void 0);
678
+ const Vn = () => {
679
+ const t = gn(Ve);
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();
624
- function Ft(t, e) {
682
+ new Ue();
683
+ function Bt(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: Ge } = Object, { iterator: Ee, toStringTag: It } = Symbol, Ae = /* @__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) => Ae(e) === t), Te = (t) => (e) => typeof e === t, { isArray: Q } = Array, te = Te("undefined");
692
+ function Xn(t) {
693
+ return t !== null && !te(t) && t.constructor !== null && !te(t.constructor) && _(t.constructor.isBuffer) && t.constructor.isBuffer(t);
635
694
  }
636
- const Mt = P("ArrayBuffer");
637
- function Hn(t) {
695
+ const Lt = 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 && Lt(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 = Te("string"), _ = Te("function"), Ut = Te("number"), _e = (t) => t !== null && typeof t == "object", Qn = (t) => t === !0 || t === !1, me = (t) => {
701
+ if (Ae(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 = Ge(t);
704
+ return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(It in t) && !(Ee in t);
705
+ }, Kn = k("Date"), Gn = k("File"), Yn = k("Blob"), Zn = k("FileList"), er = (t) => _e(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 = Ae(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 ne(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]), Q(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 $t(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 B = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ht = (t) => !te(t) && t !== B;
734
+ function We() {
735
+ const { caseless: t } = Ht(this) && this || {}, e = {}, r = (n, o) => {
736
+ const i = t && $t(e, o) || o;
737
+ me(e[i]) && me(n) ? e[i] = We(e[i], n) : me(n) ? e[i] = We({}, n) : Q(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] && ne(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 } = {}) => (ne(e, (o, i) => {
744
+ r && _(o) ? t[i] = Bt(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 && Ge(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 (Q(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" && Ge(Uint8Array)), hr = (t, e) => {
773
+ const n = (t && t[Ee]).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
+ ), ut = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), wr = k("RegExp"), Vt = (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
+ ne(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
+ }, vr = (t) => {
797
+ Vt(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) => {
766
- if (Ae(n)) {
817
+ return Q(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[It] === "FormData" && t[Ee]);
822
+ }
823
+ const Tr = (t) => {
824
+ const e = new Array(10), r = (n, o) => {
825
+ if (_e(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 = Q(n) ? [] : {};
831
+ return ne(n, (s, a) => {
832
+ const u = r(s, o + 1);
833
+ !te(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 && (_e(t) || _(t)) && _(t.then) && _(t.catch), Wt = ((t, e) => t ? setImmediate : e ? ((r, n) => (B.addEventListener("message", ({ source: o, data: i }) => {
841
+ o === B && i === r && n.length && n.shift()();
842
+ }, !1), (o) => {
843
+ n.push(o), B.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,
797
- 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,
846
+ _(B.postMessage)
847
+ ), Nr = typeof queueMicrotask < "u" ? queueMicrotask.bind(B) : typeof process < "u" && process.nextTick || Wt, Pr = (t) => t != null && _(t[Ee]), f = {
848
+ isArray: Q,
849
+ isArrayBuffer: Lt,
850
+ isBuffer: Xn,
851
+ isFormData: tr,
852
+ isArrayBufferView: zn,
853
+ isString: Jn,
854
+ isNumber: Ut,
855
+ isBoolean: Qn,
856
+ isObject: _e,
857
+ isPlainObject: me,
858
+ isReadableStream: rr,
859
+ isRequest: or,
860
+ isResponse: ir,
861
+ isHeaders: sr,
862
+ isUndefined: te,
863
+ isDate: Kn,
864
+ isFile: Gn,
865
+ isBlob: Yn,
866
+ isRegExp: wr,
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: ne,
873
+ merge: We,
874
+ extend: ur,
875
+ trim: ar,
876
+ stripBOM: cr,
877
+ inherits: lr,
878
+ toFlatObject: fr,
879
+ kindOf: Ae,
880
+ kindOfTest: k,
881
+ endsWith: dr,
882
+ toArray: pr,
883
+ forEachEntry: hr,
884
+ matchAll: yr,
885
+ isHTMLForm: br,
886
+ hasOwnProperty: ut,
887
+ hasOwnProp: ut,
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: Vt,
890
+ freezeMethods: vr,
891
+ toObjectSet: Sr,
892
+ toCamelCase: gr,
893
+ noop: Or,
894
+ toFiniteNumber: Er,
895
+ findKey: $t,
896
+ global: B,
897
+ isContextDefined: Ht,
898
+ isSpecCompliantForm: Ar,
899
+ toJSONObject: Tr,
900
+ isAsyncFn: _r,
901
+ isThenable: Rr,
902
+ setImmediate: Wt,
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 Xt = g.prototype, zt = {};
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
+ zt[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, zt);
949
+ Object.defineProperty(Xt, "isAxiosError", { value: !0 });
950
+ g.from = (t, e, r, n, o, i) => {
951
+ const s = Object.create(Xt);
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 Xe(t) {
899
958
  return f.isPlainObject(t) || f.isArray(t);
900
959
  }
901
- function Wt(t) {
960
+ function Jt(t) {
902
961
  return f.endsWith(t, "[]") ? t.slice(0, -2) : t;
903
962
  }
904
- function at(t, e, r) {
905
- return t ? t.concat(e).map(function(i, o) {
906
- return i = Wt(i), !r && o ? "[" + i + "]" : i;
963
+ function ct(t, e, r) {
964
+ return t ? t.concat(e).map(function(o, i) {
965
+ return o = Jt(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(Xe);
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 Re(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 "";
@@ -936,38 +995,38 @@ function Ee(t, e, r) {
936
995
  return f.isArrayBuffer(p) || f.isTypedArray(p) ? u && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
937
996
  }
938
997
  function l(p, b, h) {
939
- let v = p;
998
+ let w = p;
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, "[]")) && (w = f.toArray(p)))
1003
+ return b = Jt(b), w.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 ? ct([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 Xe(p) ? !0 : (e.append(ct(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: Xe
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
- d.push(p), f.forEach(p, function(v, w) {
964
- (!(f.isUndefined(v) || v === null) && i.call(
1022
+ d.push(p), f.forEach(p, function(w, v) {
1023
+ (!(f.isUndefined(w) || w === null) && o.call(
965
1024
  e,
966
- v,
967
- f.isString(w) ? w.trim() : w,
1025
+ w,
1026
+ f.isString(v) ? v.trim() : v,
968
1027
  b,
969
1028
  m
970
- )) === !0 && y(v, b ? b.concat(w) : [w]);
1029
+ )) === !0 && y(w, b ? b.concat(v) : [v]);
971
1030
  }), d.pop();
972
1031
  }
973
1032
  }
@@ -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 lt(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 Ye(t, e) {
1052
+ this._pairs = [], t && Re(t, this, e);
994
1053
  }
995
- const Xt = Ke.prototype;
996
- Xt.append = function(e, r) {
1054
+ const Qt = Ye.prototype;
1055
+ Qt.append = function(e, r) {
997
1056
  this._pairs.push([e, r]);
998
1057
  };
999
- Xt.toString = function(e) {
1058
+ Qt.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, lt);
1061
+ } : lt;
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 Kt(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 Ye(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 ft {
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 Gt = {
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 : Ye, 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
+ }, Ze = typeof window < "u" && typeof document < "u", ze = typeof navigator == "object" && navigator || void 0, Br = Ze && (!ze || ["ReactNative", "NativeScript", "NS"].indexOf(ze.product) < 0), Ir = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
1151
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Lr = Ze && window.location.href || "http://localhost", Ur = /* @__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: Ze,
1154
+ hasStandardBrowserEnv: Br,
1155
+ hasStandardBrowserWebWorkerEnv: Ir,
1156
+ navigator: ze,
1157
+ origin: Lr
1158
+ }, Symbol.toStringTag, { value: "Module" })), A = {
1159
+ ...Ur,
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 Re(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 Yt(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 re = {
1207
+ transitional: Gt,
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(Yt(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 Re(
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 || re.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
+ re.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
+ }, dt = Symbol("internals");
1301
+ function G(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 he(t) {
1305
+ return t === !1 || t == null ? t : f.isArray(t) ? t.map(he) : 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 Qr = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
1315
+ function Be(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 Kr(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,85 +1341,85 @@ 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 = G(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] = he(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()) && !Qr(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 = G(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 = G(e), e) {
1329
1388
  const n = f.findKey(this, e);
1330
- return !!(n && this[n] !== void 0 && (!r || Fe(this, this[n], n, r)));
1389
+ return !!(n && this[n] !== void 0 && (!r || Be(this, this[n], n, r)));
1331
1390
  }
1332
1391
  return !1;
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 = G(s), s) {
1398
+ const a = f.findKey(n, s);
1399
+ a && (!r || Be(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 || Be(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] = he(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 ? Kr(i) : String(i).trim();
1422
+ a !== i && delete r[i], r[a] = he(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[dt] = this[dt] = {
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 = G(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 Ie(t, e) {
1477
+ const r = this || re, 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 Zt(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 en(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 we = (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
+ }, pt = (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
+ }, mt = (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,195 +1587,195 @@ 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 tn(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;
1600
+ const ht = (t) => t instanceof R ? { ...t } : t;
1542
1601
  function U(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(ht(c), ht(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) => {
1665
+ const nn = (t) => {
1607
1666
  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(
1667
+ let { data: r, withXSRFToken: n, xsrfHeaderName: o, xsrfCookieName: i, headers: s, auth: a } = e;
1668
+ e.headers = s = R.from(s), e.url = Kt(tn(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 = nn(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;
1638
- function v() {
1696
+ h.open(o.method.toUpperCase(), o.url, !0), h.timeout = o.timeout;
1697
+ function w() {
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
+ en(function(F) {
1652
1711
  r(F), b();
1653
1712
  }, function(F) {
1654
1713
  n(F), b();
1655
1714
  }, T), h = null;
1656
1715
  }
1657
- "onloadend" in h ? h.onloadend = v : h.onreadystatechange = function() {
1658
- !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(v);
1716
+ "onloadend" in h ? h.onloadend = w : h.onreadystatechange = function() {
1717
+ !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(w);
1659
1718
  }, h.onabort = function() {
1660
1719
  h && (n(new g("Request aborted", g.ECONNABORTED, t, h)), h = null);
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 || Gt;
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) {
1679
- n(new g("Unsupported protocol " + w + ":", g.ERR_BAD_REQUEST, t));
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] = we(c, !0), h.addEventListener("progress", m)), u && h.upload && ([d, y] = we(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 v = Yr(o.url);
1737
+ if (v && A.protocols.indexOf(v) === -1) {
1738
+ n(new g("Unsupported protocol " + v + ":", 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
+ }, yt = (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
+ }, Ne = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", rn = Ne && typeof ReadableStream == "function", fo = Ne && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())), on = (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 = rn && on(() => {
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,71 +1836,71 @@ 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
+ }), bt = 64 * 1024, Je = rn && on(() => f.isReadableStream(new Response("").body)), ve = {
1840
+ stream: Je && ((t) => t.body)
1782
1841
  };
1783
- Te && ((t) => {
1842
+ Ne && ((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 = Ne && (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
+ } = nn(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, se] = pt(
1837
1896
  h,
1838
- be(ft(u))
1897
+ we(mt(u))
1839
1898
  );
1840
- n = pt(T.body, mt, F, ie);
1899
+ n = yt(T.body, bt, F, se);
1841
1900
  }
1842
1901
  }
1843
1902
  f.isString(d) || (d = d ? "include" : "omit");
1844
- const v = "credentials" in Request.prototype;
1903
+ const w = "credentials" in Request.prototype;
1845
1904
  p = new Request(e, {
1846
1905
  ...m,
1847
1906
  signal: y,
@@ -1849,52 +1908,52 @@ const ci = async (t) => {
1849
1908
  headers: l.normalize().toJSON(),
1850
1909
  body: n,
1851
1910
  duplex: "half",
1852
- credentials: v ? d : void 0
1911
+ credentials: w ? d : void 0
1853
1912
  });
1854
- let w = await fetch(p, m);
1855
- const O = We && (c === "stream" || c === "response");
1856
- if (We && (s || O && b)) {
1913
+ let v = await fetch(p, m);
1914
+ const O = Je && (c === "stream" || c === "response");
1915
+ if (Je && (a || O && b)) {
1857
1916
  const T = {};
1858
- ["status", "statusText", "headers"].forEach((Ge) => {
1859
- T[Ge] = w[Ge];
1917
+ ["status", "statusText", "headers"].forEach((et) => {
1918
+ T[et] = v[et];
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(v.headers.get("content-length")), [F, se] = a && pt(
1921
+ D,
1922
+ we(mt(a), !0)
1864
1923
  ) || [];
1865
- w = new Response(
1866
- pt(w.body, mt, F, () => {
1867
- ie && ie(), b && b();
1924
+ v = new Response(
1925
+ yt(v.body, bt, F, () => {
1926
+ se && se(), 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,
1877
- headers: R.from(w.headers),
1878
- status: w.status,
1879
- statusText: w.statusText,
1932
+ let q = await ve[f.findKey(ve, c) || "text"](v, t);
1933
+ return !O && b && b(), await new Promise((T, D) => {
1934
+ en(T, D, {
1935
+ data: q,
1936
+ headers: R.from(v.headers),
1937
+ status: v.status,
1938
+ statusText: v.statusText,
1880
1939
  config: t,
1881
1940
  request: p
1882
1941
  });
1883
1942
  });
1884
- } catch (v) {
1885
- throw b && b(), v && v.name === "TypeError" && /Load failed|fetch/i.test(v.message) ? Object.assign(
1943
+ } catch (w) {
1944
+ throw b && b(), w && w.name === "TypeError" && /Load failed|fetch/i.test(w.message) ? Object.assign(
1886
1945
  new g("Network Error", g.ERR_NETWORK, t, p),
1887
1946
  {
1888
- cause: v.cause || v
1947
+ cause: w.cause || w
1889
1948
  }
1890
- ) : g.from(v, v && v.code, t, p);
1949
+ ) : g.from(w, w && w.code, t, p);
1891
1950
  }
1892
- }), Xe = {
1893
- http: _r,
1894
- xhr: ni,
1895
- fetch: fi
1951
+ }), Qe = {
1952
+ http: kr,
1953
+ xhr: so,
1954
+ fetch: yo
1896
1955
  };
1897
- f.forEach(Xe, (t, e) => {
1956
+ f.forEach(Qe, (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 gt = (t) => `- ${t}`, bo = (t) => f.isFunction(t) || t === null || t === !1, sn = {
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 = Qe[(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(gt).join(`
1986
+ `) : " " + gt(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: Qe
1936
1995
  };
1937
- function Me(t) {
1996
+ function Le(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 wt(t) {
2001
+ return Le(t), t.headers = R.from(t.headers), t.data = Ie.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), sn.getAdapter(t.adapter || re.adapter)(t).then(function(n) {
2005
+ return Le(t), n.data = Ie.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 Zt(n) || (Le(t), n && n.response && (n.response.data = Ie.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 an = "1.10.0", Pe = {};
1960
2019
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
1961
- _e[t] = function(n) {
2020
+ Pe[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 vt = {};
2025
+ Pe.transitional = function(e, r, n) {
2026
+ function o(i, s) {
2027
+ return "[Axios v" + an + "] 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 && !vt[s] && (vt[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
+ Pe.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 ye = {
2064
+ assertOptions: go,
2065
+ validators: Pe
2066
+ }, C = ye.validators;
2067
+ let I = class {
2009
2068
  constructor(e) {
2010
2069
  this.defaults = e || {}, this.interceptors = {
2011
- request: new ut(),
2012
- response: new ut()
2070
+ request: new ft(),
2071
+ response: new ft()
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
  }
@@ -2039,34 +2098,34 @@ let M = class {
2039
2098
  }
2040
2099
  _request(e, r) {
2041
2100
  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")
2101
+ const { transitional: n, paramsSerializer: o, headers: i } = r;
2102
+ n !== void 0 && ye.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
+ } : ye.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), ye.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 = [wt.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 = wt.call(this, y);
2095
2154
  } catch (p) {
2096
2155
  return Promise.reject(p);
2097
2156
  }
@@ -2101,12 +2160,12 @@ let M = class {
2101
2160
  }
2102
2161
  getUri(e) {
2103
2162
  e = U(this.defaults, e);
2104
- const r = Yt(e.baseURL, e.url, e.allowAbsoluteUrls);
2105
- return zt(r, e.params, e.paramsSerializer);
2163
+ const r = tn(e.baseURL, e.url, e.allowAbsoluteUrls);
2164
+ return Kt(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) {
2168
+ I.prototype[e] = function(r, n) {
2110
2169
  return this.request(U(n || {}, {
2111
2170
  method: e,
2112
2171
  url: r,
@@ -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(U(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
+ I.prototype[e] = r(), I.prototype[e + "Form"] = r(!0);
2131
2190
  });
2132
- let mi = class on {
2191
+ let wo = class un {
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 un(function(o) {
2258
+ e = o;
2200
2259
  }),
2201
2260
  cancel: e
2202
2261
  };
2203
2262
  }
2204
2263
  };
2205
- function hi(t) {
2264
+ function vo(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 Ke = {
2214
2273
  Continue: 100,
2215
2274
  SwitchingProtocols: 101,
2216
2275
  Processing: 102,
@@ -2275,54 +2334,55 @@ 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(Ke).forEach(([t, e]) => {
2338
+ Ke[e] = t;
2280
2339
  });
2281
- 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));
2340
+ function cn(t) {
2341
+ const e = new I(t), r = Bt(I.prototype.request, e);
2342
+ return f.extend(r, I.prototype, e, { allOwnKeys: !0 }), f.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(o) {
2343
+ return cn(U(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 = cn(re);
2347
+ S.Axios = I;
2348
+ S.CanceledError = K;
2349
+ S.CancelToken = wo;
2350
+ S.isCancel = Zt;
2351
+ S.VERSION = an;
2352
+ S.toFormData = Re;
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;
2358
+ S.spread = vo;
2359
+ S.isAxiosError = So;
2301
2360
  S.mergeConfig = U;
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) => Yt(f.isHTMLForm(t) ? new FormData(t) : t);
2363
+ S.getAdapter = sn.getAdapter;
2364
+ S.HttpStatusCode = Ke;
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: ei,
2368
+ AxiosError: St,
2369
+ CanceledError: ti,
2370
+ isCancel: ni,
2371
+ CancelToken: ri,
2372
+ VERSION: oi,
2373
+ all: ii,
2374
+ Cancel: si,
2375
+ isAxiosError: ai,
2376
+ spread: ui,
2377
+ toFormData: ci,
2378
+ AxiosHeaders: li,
2379
+ HttpStatusCode: fi,
2380
+ formToJSON: di,
2381
+ getAdapter: pi,
2382
+ mergeConfig: mi
2383
+ } = S, Oo = (t) => Dt.some(t, (e) => e && e.errorCode !== void 0) || t?.errorCode !== void 0;
2384
+ let Se;
2385
+ typeof window < "u" ? (window.__STORE_QUERY_CLIENT__ ? M.log("Query client already exists in window", "vendure/axiosClient", window.__STORE_QUERY_CLIENT__) : (M.log("Creating query client in window", "vendure/axiosClient"), window.__STORE_QUERY_CLIENT__ = new Ue({
2326
2386
  defaultOptions: {
2327
2387
  queries: {
2328
2388
  refetchOnWindowFocus: !0,
@@ -2331,7 +2391,13 @@ typeof window < "u" ? window.__STORE_QUERY_CLIENT__ || (window.__STORE_QUERY_CLI
2331
2391
  staleTime: 1e3 * 60 * 5
2332
2392
  }
2333
2393
  }
2334
- })) : new Be({
2394
+ })), window.__STORE_API_CLIENT__ ? M.log("Axios instance already exists in window", "vendure/axiosClient", window.__STORE_API_CLIENT__) : (M.log("Creating axios instance in window", "vendure/axiosClient"), window.__STORE_API_CLIENT__ = S.create({
2395
+ baseURL: "https://localhost:3000/shop-api",
2396
+ withCredentials: !0,
2397
+ headers: {
2398
+ "vendure-token": ""
2399
+ }
2400
+ })), Se = window.__STORE_API_CLIENT__) : (M.log("Creating query client", "vendure/axiosClient"), new Ue({
2335
2401
  defaultOptions: {
2336
2402
  queries: {
2337
2403
  refetchOnWindowFocus: !0,
@@ -2340,464 +2406,462 @@ typeof window < "u" ? window.__STORE_QUERY_CLIENT__ || (window.__STORE_QUERY_CLI
2340
2406
  staleTime: 1e3 * 60 * 5
2341
2407
  }
2342
2408
  }
2343
- });
2344
- const sn = "auth_token", gi = "https://localhost:3000/shop-api", vi = "lang", wi = "currencyCode", un = S.create({
2345
- baseURL: gi,
2409
+ }), M.log("Creating axios instance", "vendure/axiosClient"), Se = S.create({
2410
+ baseURL: "https://localhost:3000/shop-api",
2346
2411
  withCredentials: !0,
2347
- // Required for cookie-based sessions
2348
2412
  headers: {
2349
2413
  "vendure-token": ""
2350
- // We'll set this in the request interceptor
2351
2414
  }
2352
- });
2353
- let Si = async (t, e) => {
2415
+ }));
2416
+ const ln = "auth_token", Eo = "lang", Ao = "currencyCode";
2417
+ let To = async (t, e) => {
2354
2418
  await e(t);
2355
2419
  };
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);
2420
+ Se.interceptors.request.use(async (t) => (await To(t, async (r) => {
2421
+ const n = await Z.getItem(ln), o = await Z.getItem("channelToken"), i = await Z.getItem(Ao), s = await Z.getItem(Eo);
2422
+ 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
2423
  }), t));
2360
- un.interceptors.response.use((t) => {
2424
+ Se.interceptors.response.use((t) => {
2361
2425
  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);
2426
+ if (e && Z.setItem(ln, e), Oo(t.data.data)) {
2427
+ const r = Object.values(t.data.data)[0], n = new St(r.errorCode);
2364
2428
  return n.response = t, n.request = t.request, n.config = t.config, Promise.reject(n);
2365
2429
  }
2366
2430
  if (t.data.errors?.length > 0) {
2367
- const r = t.data.errors[0], n = new gt(r.message);
2431
+ const r = t.data.errors[0], n = new St(r.message);
2368
2432
  return n.response = t, n.request = t.request, n.config = t.config, Promise.reject(n);
2369
2433
  }
2370
2434
  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 });
2435
+ }, (t) => (M.error("Axios error", "vendure/axiosClient", t), Promise.reject(t)));
2436
+ var P = {}, ce = {}, le = {}, fe = {}, Ot;
2437
+ function oe() {
2438
+ if (Ot) return fe;
2439
+ Ot = 1, Object.defineProperty(fe, "__esModule", { value: !0 });
2376
2440
  var t;
2377
2441
  return function(e) {
2378
2442
  e.Mutation = "mutation", e.Query = "query", e.Subscription = "subscription";
2379
- }(t || (t = {})), ce.default = t, ce;
2443
+ }(t || (t = {})), fe.default = t, fe;
2380
2444
  }
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;
2445
+ var $ = {}, Y = {}, Et;
2446
+ function _o() {
2447
+ if (Et) return Y;
2448
+ Et = 1, Object.defineProperty(Y, "__esModule", { value: !0 }), Y.isNestedField = void 0;
2385
2449
  function t(e) {
2386
2450
  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
2451
  }
2388
- return Q.isNestedField = t, Q;
2452
+ return Y.isNestedField = t, Y;
2389
2453
  }
2390
- var St;
2391
- function re() {
2392
- if (St) return I;
2393
- St = 1;
2394
- var t = I && I.__assign || function() {
2454
+ var At;
2455
+ function ie() {
2456
+ if (At) return $;
2457
+ At = 1;
2458
+ var t = $ && $.__assign || function() {
2395
2459
  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]);
2460
+ for (var o, i = 1, s = arguments.length; i < s; i++) {
2461
+ o = arguments[i];
2462
+ for (var a in o) Object.prototype.hasOwnProperty.call(o, a) && (n[a] = o[a]);
2399
2463
  }
2400
2464
  return n;
2401
2465
  }, t.apply(this, arguments);
2402
2466
  };
2403
- Object.defineProperty(I, "__esModule", { value: !0 });
2404
- var e = Oi(), r = (
2467
+ Object.defineProperty($, "__esModule", { value: !0 });
2468
+ var e = _o(), r = (
2405
2469
  /** @class */
2406
2470
  function() {
2407
2471
  function n() {
2408
2472
  }
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) || {});
2473
+ return n.resolveVariables = function(o) {
2474
+ for (var i = {}, s = 0, a = o; s < a.length; s++) {
2475
+ var u = a[s], c = u.variables, l = u.fields;
2476
+ i = t(t(t({}, i), c), l && n.getNestedVariables(l) || {});
2413
2477
  }
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);
2478
+ return i;
2479
+ }, n.queryDataNameAndArgumentMap = function(o) {
2480
+ return o && Object.keys(o).length ? "(".concat(Object.entries(o).reduce(function(i, s, a) {
2481
+ var u = s[0], c = s[1];
2482
+ return "".concat(i).concat(a !== 0 ? ", " : "").concat(c && c.name ? c.name : u, ": $").concat(u);
2419
2483
  }, ""), ")") : "";
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) {
2484
+ }, n.queryFieldsMap = function(o) {
2485
+ var i = this;
2486
+ return o ? o.map(function(s) {
2487
+ if ((0, e.isNestedField)(s))
2488
+ return n.queryNestedFieldMap(s);
2489
+ if (typeof s == "object") {
2490
+ var a = "";
2491
+ return Object.entries(s).forEach(function(u, c, l) {
2428
2492
  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;
2493
+ a += "".concat(d, " ").concat(m.length > 0 ? "{ " + i.queryFieldsMap(m) + " }" : ""), c < l.length - 1 && (a += ", ");
2494
+ }), a;
2431
2495
  } else
2432
- return "".concat(a);
2496
+ return "".concat(s);
2433
2497
  }).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) {
2498
+ }, n.operationOrAlias = function(o) {
2499
+ return typeof o == "string" ? o : "".concat(o.alias, ": ").concat(o.name);
2500
+ }, n.isFragment = function(o) {
2501
+ var i;
2502
+ return (i = o?.fragment === !0) !== null && i !== void 0 ? i : !1;
2503
+ }, n.operationOrFragment = function(o) {
2504
+ return n.isFragment(o) ? o.operation : n.operationOrAlias(o.operation);
2505
+ }, n.getFragment = function(o) {
2506
+ return n.isFragment(o) ? "... on " : "";
2507
+ }, n.queryNestedFieldMap = function(o) {
2508
+ 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) + " }" : "");
2509
+ }, n.queryVariablesMap = function(o, i) {
2510
+ var s = {}, a = function(u) {
2447
2511
  u && Object.keys(u).map(function(c) {
2448
- a[c] = typeof u[c] == "object" ? u[c].value : u[c];
2512
+ s[c] = typeof u[c] == "object" ? u[c].value : u[c];
2449
2513
  });
2450
2514
  };
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) {
2515
+ return a(o), i && typeof i == "object" && a(n.getNestedVariables(i)), s;
2516
+ }, n.getNestedVariables = function(o) {
2517
+ var i = {};
2518
+ function s(a) {
2519
+ return a?.forEach(function(u) {
2456
2520
  if ((0, e.isNestedField)(u))
2457
- o = t(t(t({}, u.variables), o), u.fields && a(u.fields));
2521
+ i = t(t(t({}, u.variables), i), u.fields && s(u.fields));
2458
2522
  else if (typeof u == "object")
2459
2523
  for (var c = 0, l = Object.entries(u); c < l.length; c++) {
2460
2524
  var d = l[c], m = d[1];
2461
- a(m);
2525
+ s(m);
2462
2526
  }
2463
- }), o;
2527
+ }), i;
2464
2528
  }
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;
2529
+ return s(o), i;
2530
+ }, n.queryDataType = function(o) {
2531
+ var i = "String", s = typeof o == "object" ? o.value : o;
2532
+ if (o?.type != null)
2533
+ i = o.type;
2470
2534
  else {
2471
- var s = Array.isArray(a) ? a[0] : a;
2472
- switch (typeof s) {
2535
+ var a = Array.isArray(s) ? s[0] : s;
2536
+ switch (typeof a) {
2473
2537
  case "object":
2474
- o = "Object";
2538
+ i = "Object";
2475
2539
  break;
2476
2540
  case "boolean":
2477
- o = "Boolean";
2541
+ i = "Boolean";
2478
2542
  break;
2479
2543
  case "number":
2480
- o = s % 1 === 0 ? "Int" : "Float";
2544
+ i = a % 1 === 0 ? "Int" : "Float";
2481
2545
  break;
2482
2546
  }
2483
2547
  }
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;
2548
+ 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
2549
  }, n;
2486
2550
  }()
2487
2551
  );
2488
- return I.default = r, I;
2552
+ return $.default = r, $;
2489
2553
  }
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 = (
2554
+ var Tt;
2555
+ function Ro() {
2556
+ if (Tt) return le;
2557
+ Tt = 1, Object.defineProperty(le, "__esModule", { value: !0 });
2558
+ var t = oe(), e = ie(), r = (
2495
2559
  /** @class */
2496
2560
  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);
2561
+ function n(o) {
2562
+ Array.isArray(o) ? this.variables = e.default.resolveVariables(o) : (this.variables = o.variables, this.fields = o.fields, this.operation = o.operation);
2499
2563
  }
2500
2564
  return n.prototype.mutationBuilder = function() {
2501
2565
  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);
2566
+ }, n.prototype.mutationsBuilder = function(o) {
2567
+ var i = this, s = o.map(function(a) {
2568
+ return i.operation = a.operation, i.variables = a.variables, i.fields = a.fields, i.operationTemplate(a.operation);
2505
2569
  });
2506
- return this.operationWrapperTemplate(e.default.resolveVariables(i), a.join(`
2570
+ return this.operationWrapperTemplate(e.default.resolveVariables(o), s.join(`
2507
2571
  `));
2508
2572
  }, 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);
2573
+ return this.variables && Object.keys(this.variables).length ? "(".concat(Object.keys(this.variables).reduce(function(o, i, s) {
2574
+ return "".concat(o).concat(s !== 0 ? ", " : "").concat(i, ": $").concat(i);
2511
2575
  }, ""), ")") : "";
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]));
2576
+ }, n.prototype.queryDataArgumentAndTypeMap = function(o) {
2577
+ return Object.keys(o).length ? "(".concat(Object.keys(o).reduce(function(i, s, a) {
2578
+ return "".concat(i).concat(a !== 0 ? ", " : "", "$").concat(s, ": ").concat(e.default.queryDataType(o[s]));
2515
2579
  }, ""), ")") : "";
2516
- }, n.prototype.operationWrapperTemplate = function(i, o) {
2517
- var a = typeof this.operation == "string" ? this.operation : this.operation.name;
2580
+ }, n.prototype.operationWrapperTemplate = function(o, i) {
2581
+ var s = typeof this.operation == "string" ? this.operation : this.operation.name;
2518
2582
  return {
2519
- query: "".concat(t.default.Mutation, " ").concat(a.charAt(0).toUpperCase() + a.slice(1), " ").concat(this.queryDataArgumentAndTypeMap(i), ` {
2520
- `).concat(o, `
2583
+ query: "".concat(t.default.Mutation, " ").concat(s.charAt(0).toUpperCase() + s.slice(1), " ").concat(this.queryDataArgumentAndTypeMap(o), ` {
2584
+ `).concat(i, `
2521
2585
  }`),
2522
- variables: e.default.queryVariablesMap(i)
2586
+ variables: e.default.queryVariablesMap(o)
2523
2587
  };
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(), ` {
2588
+ }, n.prototype.operationTemplate = function(o) {
2589
+ var i = typeof o == "string" ? o : "".concat(o.alias, ": ").concat(o.name);
2590
+ return "".concat(i, " ").concat(this.queryDataNameAndArgumentMap(), ` {
2527
2591
  `).concat(this.queryFieldsMap(this.fields), `
2528
2592
  }`);
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);
2593
+ }, n.prototype.queryFieldsMap = function(o) {
2594
+ var i = this;
2595
+ return Array.isArray(o) ? o.map(function(s) {
2596
+ return typeof s == "object" ? "".concat(Object.keys(s)[0], " { ").concat(i.queryFieldsMap(Object.values(s)[0]), " }") : "".concat(s);
2533
2597
  }).join(", ") : "";
2534
2598
  }, n;
2535
2599
  }()
2536
2600
  );
2537
- return ue.default = r, ue;
2601
+ return le.default = r, le;
2538
2602
  }
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 = (
2603
+ var de = {}, _t;
2604
+ function No() {
2605
+ if (_t) return de;
2606
+ _t = 1, Object.defineProperty(de, "__esModule", { value: !0 });
2607
+ var t = oe(), e = ie(), r = (
2544
2608
  /** @class */
2545
2609
  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;
2610
+ function n(o) {
2611
+ this.queryDataType = function(i) {
2612
+ var s = "String", a = typeof i == "object" ? i.value : i;
2613
+ if (i.type !== void 0)
2614
+ s = i.type;
2551
2615
  else
2552
- switch (typeof s) {
2616
+ switch (typeof a) {
2553
2617
  case "object":
2554
- a = "Object";
2618
+ s = "Object";
2555
2619
  break;
2556
2620
  case "boolean":
2557
- a = "Boolean";
2621
+ s = "Boolean";
2558
2622
  break;
2559
2623
  case "number":
2560
- a = s % 1 === 0 ? "Int" : "Float";
2624
+ s = a % 1 === 0 ? "Int" : "Float";
2561
2625
  break;
2562
2626
  }
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);
2627
+ return typeof i == "object" && i.required && (s += "!"), s;
2628
+ }, Array.isArray(o) ? this.variables = e.default.resolveVariables(o) : (this.variables = o.variables, this.fields = o.fields || [], this.operation = o.operation);
2565
2629
  }
2566
2630
  return n.prototype.queryBuilder = function() {
2567
2631
  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(" ");
2632
+ }, n.prototype.queriesBuilder = function(o) {
2633
+ var i = this, s = function() {
2634
+ var a = [];
2635
+ return o.forEach(function(u) {
2636
+ u && (i.operation = u.operation, i.fields = u.fields, i.variables = u.variables, a.push(i.operationTemplate()));
2637
+ }), a.join(" ");
2574
2638
  };
2575
- return this.operationWrapperTemplate(a());
2639
+ return this.operationWrapperTemplate(s());
2576
2640
  }, 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);
2641
+ return this.variables && Object.keys(this.variables).length ? "(".concat(Object.keys(this.variables).reduce(function(o, i, s) {
2642
+ return "".concat(o).concat(s !== 0 ? ", " : "").concat(i, ": $").concat(i);
2579
2643
  }, ""), ")") : "";
2580
2644
  }, 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]));
2645
+ var o = this;
2646
+ return this.variables && Object.keys(this.variables).length ? "(".concat(Object.keys(this.variables).reduce(function(i, s, a) {
2647
+ return "".concat(i).concat(a !== 0 ? ", " : "", "$").concat(s, ": ").concat(o.queryDataType(o.variables[s]));
2584
2648
  }, ""), ")") : "";
2585
- }, n.prototype.operationWrapperTemplate = function(i) {
2586
- var o = typeof this.operation == "string" ? this.operation : this.operation.name;
2649
+ }, n.prototype.operationWrapperTemplate = function(o) {
2650
+ var i = typeof this.operation == "string" ? this.operation : this.operation.name;
2587
2651
  return {
2588
- query: "".concat(t.default.Query, " ").concat(o.charAt(0).toUpperCase()).concat(o.slice(1), " ").concat(this.queryDataArgumentAndTypeMap(), " { ").concat(i, " }"),
2652
+ query: "".concat(t.default.Query, " ").concat(i.charAt(0).toUpperCase()).concat(i.slice(1), " ").concat(this.queryDataArgumentAndTypeMap(), " { ").concat(o, " }"),
2589
2653
  variables: e.default.queryVariablesMap(this.variables)
2590
2654
  };
2591
2655
  }, 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), " } }");
2656
+ var o = typeof this.operation == "string" ? this.operation : "".concat(this.operation.alias, ": ").concat(this.operation.name);
2657
+ return "".concat(o, " ").concat(this.queryDataNameAndArgumentMap(), " { nodes { ").concat(e.default.queryFieldsMap(this.fields), " } }");
2594
2658
  }, n;
2595
2659
  }()
2596
2660
  );
2597
- return le.default = r, le;
2598
- }
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]);
2661
+ return de.default = r, de;
2662
+ }
2663
+ var Rt;
2664
+ function Po() {
2665
+ if (Rt) return ce;
2666
+ Rt = 1, Object.defineProperty(ce, "__esModule", { value: !0 });
2667
+ var t = Ro(), e = No();
2668
+ return ce.default = { DefaultAppSyncQueryAdapter: e.default, DefaultAppSyncMutationAdapter: t.default }, ce;
2669
+ }
2670
+ var H = {}, Nt;
2671
+ function ko() {
2672
+ if (Nt) return H;
2673
+ Nt = 1;
2674
+ var t = H && H.__assign || function() {
2675
+ return t = Object.assign || function(o) {
2676
+ for (var i, s = 1, a = arguments.length; s < a; s++) {
2677
+ i = arguments[s];
2678
+ for (var u in i) Object.prototype.hasOwnProperty.call(i, u) && (o[u] = i[u]);
2615
2679
  }
2616
- return i;
2680
+ return o;
2617
2681
  }, t.apply(this, arguments);
2618
2682
  };
2619
- Object.defineProperty(L, "__esModule", { value: !0 });
2620
- var e = ne(), r = re(), n = (
2683
+ Object.defineProperty(H, "__esModule", { value: !0 });
2684
+ var e = oe(), r = ie(), n = (
2621
2685
  /** @class */
2622
2686
  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 = {
2687
+ function o(i, s) {
2688
+ var a = this;
2689
+ Array.isArray(i) ? this.variables = r.default.resolveVariables(i) : (this.variables = i.variables, this.fields = i.fields, this.operation = i.operation), this.config = {
2626
2690
  operationName: ""
2627
- }, a && Object.entries(a).forEach(function(u) {
2691
+ }, s && Object.entries(s).forEach(function(u) {
2628
2692
  var c = u[0], l = u[1];
2629
- s.config[c] = l;
2693
+ a.config[c] = l;
2630
2694
  });
2631
2695
  }
2632
- return i.prototype.mutationBuilder = function() {
2696
+ return o.prototype.mutationBuilder = function() {
2633
2697
  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);
2698
+ }, o.prototype.mutationsBuilder = function(i) {
2699
+ var s = this, a = i.map(function(u) {
2700
+ return s.operation = u.operation, s.variables = u.variables, s.fields = u.fields, s.operationTemplate(u.operation);
2637
2701
  });
2638
- return this.operationWrapperTemplate(e.default.Mutation, r.default.resolveVariables(o), s.join(`
2702
+ return this.operationWrapperTemplate(e.default.Mutation, r.default.resolveVariables(i), a.join(`
2639
2703
  `));
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]));
2704
+ }, o.prototype.queryDataArgumentAndTypeMap = function(i) {
2705
+ 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) {
2706
+ return "".concat(s).concat(u !== 0 ? ", " : "", "$").concat(a, ": ").concat(r.default.queryDataType(i[a]));
2643
2707
  }, ""), ")") : "";
2644
- }, i.prototype.operationWrapperTemplate = function(o, a, s) {
2645
- var u = "".concat(o, " ").concat(this.queryDataArgumentAndTypeMap(a), ` {
2646
- `).concat(s, `
2708
+ }, o.prototype.operationWrapperTemplate = function(i, s, a) {
2709
+ var u = "".concat(i, " ").concat(this.queryDataArgumentAndTypeMap(s), ` {
2710
+ `).concat(a, `
2647
2711
  }`);
2648
2712
  return this.config.operationName && (u = u.replace("mutation", "mutation ".concat(this.config.operationName))), {
2649
2713
  query: u,
2650
- variables: r.default.queryVariablesMap(a, this.fields)
2714
+ variables: r.default.queryVariablesMap(s, this.fields)
2651
2715
  };
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 ? `{
2716
+ }, o.prototype.operationTemplate = function(i) {
2717
+ var s = typeof i == "string" ? i : "".concat(i.alias, ": ").concat(i.name);
2718
+ return "".concat(s, " ").concat(r.default.queryDataNameAndArgumentMap(this.variables), " ").concat(this.fields && this.fields.length > 0 ? `{
2655
2719
  `.concat(r.default.queryFieldsMap(this.fields), `
2656
2720
  }`) : "");
2657
- }, i;
2721
+ }, o;
2658
2722
  }()
2659
2723
  );
2660
- return L.default = n, L;
2661
- }
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]);
2724
+ return H.default = n, H;
2725
+ }
2726
+ var V = {}, Pt;
2727
+ function Co() {
2728
+ if (Pt) return V;
2729
+ Pt = 1;
2730
+ var t = V && V.__assign || function() {
2731
+ return t = Object.assign || function(o) {
2732
+ for (var i, s = 1, a = arguments.length; s < a; s++) {
2733
+ i = arguments[s];
2734
+ for (var u in i) Object.prototype.hasOwnProperty.call(i, u) && (o[u] = i[u]);
2671
2735
  }
2672
- return i;
2736
+ return o;
2673
2737
  }, t.apply(this, arguments);
2674
2738
  };
2675
- Object.defineProperty($, "__esModule", { value: !0 });
2676
- var e = ne(), r = re(), n = (
2739
+ Object.defineProperty(V, "__esModule", { value: !0 });
2740
+ var e = oe(), r = ie(), n = (
2677
2741
  /** @class */
2678
2742
  function() {
2679
- function i(o, a) {
2680
- var s = this;
2743
+ function o(i, s) {
2744
+ var a = this;
2681
2745
  this.config = {
2682
2746
  operationName: ""
2683
- }, a && Object.entries(a).forEach(function(u) {
2747
+ }, s && Object.entries(s).forEach(function(u) {
2684
2748
  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);
2749
+ a.config[c] = l;
2750
+ }), Array.isArray(i) ? this.variables = r.default.resolveVariables(i) : (this.variables = i.variables, this.fields = i.fields || [], this.operation = i.operation);
2687
2751
  }
2688
- return i.prototype.queryBuilder = function() {
2752
+ return o.prototype.queryBuilder = function() {
2689
2753
  return this.operationWrapperTemplate(this.operationTemplate(this.variables));
2690
- }, i.prototype.queriesBuilder = function(o) {
2691
- var a = this, s = function() {
2754
+ }, o.prototype.queriesBuilder = function(i) {
2755
+ var s = this, a = function() {
2692
2756
  var u = [];
2693
- return o.forEach(function(c) {
2694
- c && (a.operation = c.operation, a.fields = c.fields, u.push(a.operationTemplate(c.variables)));
2757
+ return i.forEach(function(c) {
2758
+ c && (s.operation = c.operation, s.fields = c.fields, u.push(s.operationTemplate(c.variables)));
2695
2759
  }), u.join(" ");
2696
2760
  };
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]));
2761
+ return this.operationWrapperTemplate(a());
2762
+ }, o.prototype.queryDataArgumentAndTypeMap = function() {
2763
+ var i = this.variables;
2764
+ 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) {
2765
+ return "".concat(s).concat(u !== 0 ? ", " : "", "$").concat(a, ": ").concat(r.default.queryDataType(i[a]));
2702
2766
  }, ""), ")") : "";
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,
2767
+ }, o.prototype.operationWrapperTemplate = function(i) {
2768
+ var s = "".concat(e.default.Query, " ").concat(this.queryDataArgumentAndTypeMap(), " { ").concat(i, " }");
2769
+ return s = s.replace("query", "query".concat(this.config.operationName !== "" ? " " + this.config.operationName : "")), {
2770
+ query: s,
2707
2771
  variables: r.default.queryVariablesMap(this.variables, this.fields)
2708
2772
  };
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;
2773
+ }, o.prototype.operationTemplate = function(i) {
2774
+ var s = typeof this.operation == "string" ? this.operation : "".concat(this.operation.alias, ": ").concat(this.operation.name);
2775
+ return "".concat(s, " ").concat(i ? r.default.queryDataNameAndArgumentMap(i) : "", " ").concat(this.fields && this.fields.length > 0 ? "{ " + r.default.queryFieldsMap(this.fields) + " }" : "");
2776
+ }, o;
2713
2777
  }()
2714
2778
  );
2715
- return $.default = n, $;
2779
+ return V.default = n, V;
2716
2780
  }
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 = (
2781
+ var pe = {}, kt;
2782
+ function qo() {
2783
+ if (kt) return pe;
2784
+ kt = 1, Object.defineProperty(pe, "__esModule", { value: !0 });
2785
+ var t = oe(), e = ie(), r = (
2722
2786
  /** @class */
2723
2787
  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);
2788
+ function n(o) {
2789
+ Array.isArray(o) ? this.variables = e.default.resolveVariables(o) : (this.variables = o.variables, this.fields = o.fields, this.operation = o.operation);
2726
2790
  }
2727
2791
  return n.prototype.subscriptionBuilder = function() {
2728
2792
  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);
2793
+ }, n.prototype.subscriptionsBuilder = function(o) {
2794
+ var i = this, s = o.map(function(a) {
2795
+ return i.operation = a.operation, i.variables = a.variables, i.fields = a.fields, i.operationTemplate(a.operation);
2732
2796
  });
2733
- return this.operationWrapperTemplate(t.default.Subscription, e.default.resolveVariables(i), a.join(`
2797
+ return this.operationWrapperTemplate(t.default.Subscription, e.default.resolveVariables(o), s.join(`
2734
2798
  `));
2735
2799
  }, 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);
2800
+ return this.variables && Object.keys(this.variables).length ? "(".concat(Object.keys(this.variables).reduce(function(o, i, s) {
2801
+ return "".concat(o).concat(s !== 0 ? ", " : "").concat(i, ": $").concat(i);
2738
2802
  }, ""), ")") : "";
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]));
2803
+ }, n.prototype.queryDataArgumentAndTypeMap = function(o) {
2804
+ return Object.keys(o).length ? "(".concat(Object.keys(o).reduce(function(i, s, a) {
2805
+ return "".concat(i).concat(a !== 0 ? ", " : "", "$").concat(s, ": ").concat(e.default.queryDataType(o[s]));
2742
2806
  }, ""), ")") : "";
2743
- }, n.prototype.operationWrapperTemplate = function(i, o, a) {
2807
+ }, n.prototype.operationWrapperTemplate = function(o, i, s) {
2744
2808
  return {
2745
- query: "".concat(i, " ").concat(this.queryDataArgumentAndTypeMap(o), ` {
2746
- `).concat(a, `
2809
+ query: "".concat(o, " ").concat(this.queryDataArgumentAndTypeMap(i), ` {
2810
+ `).concat(s, `
2747
2811
  }`),
2748
- variables: e.default.queryVariablesMap(o)
2812
+ variables: e.default.queryVariablesMap(i)
2749
2813
  };
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(), ` {
2814
+ }, n.prototype.operationTemplate = function(o) {
2815
+ var i = typeof this.operation == "string" ? this.operation : "".concat(this.operation.alias, ": ").concat(this.operation.name);
2816
+ return "".concat(i, " ").concat(this.queryDataNameAndArgumentMap(), ` {
2753
2817
  `).concat(this.queryFieldsMap(this.fields), `
2754
2818
  }`);
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);
2819
+ }, n.prototype.queryFieldsMap = function(o) {
2820
+ var i = this;
2821
+ return o ? o.map(function(s) {
2822
+ return typeof s == "object" ? "".concat(Object.keys(s)[0], " { ").concat(i.queryFieldsMap(Object.values(s)[0]), " }") : "".concat(s);
2759
2823
  }).join(", ") : "";
2760
2824
  }, n;
2761
2825
  }()
2762
2826
  );
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) {
2827
+ return pe.default = r, pe;
2828
+ }
2829
+ var Ct;
2830
+ function Do() {
2831
+ if (Ct) return P;
2832
+ Ct = 1, Object.defineProperty(P, "__esModule", { value: !0 }), P.adapters = P.query = P.mutation = P.subscription = void 0;
2833
+ var t = Po();
2834
+ P.adapters = t.default;
2835
+ var e = ko(), r = Co(), n = qo();
2836
+ function o(a, u, c) {
2773
2837
  var l;
2774
- if (Array.isArray(s)) {
2838
+ if (Array.isArray(a)) {
2775
2839
  if (u) {
2776
- var d = new u(s, c);
2777
- return d.queriesBuilder(s);
2840
+ var d = new u(a, c);
2841
+ return d.queriesBuilder(a);
2778
2842
  }
2779
- return l = new r.default(s, c), l.queriesBuilder(s);
2843
+ return l = new r.default(a, c), l.queriesBuilder(a);
2780
2844
  }
2781
2845
  if (u) {
2782
- var d = new u(s, c);
2846
+ var d = new u(a, c);
2783
2847
  return d.queryBuilder();
2784
2848
  }
2785
- return l = new r.default(s, c), l.queryBuilder();
2849
+ return l = new r.default(a, c), l.queryBuilder();
2786
2850
  }
2787
- N.query = i;
2788
- function o(s, u, c) {
2851
+ P.query = o;
2852
+ function i(a, u, c) {
2789
2853
  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());
2854
+ 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
2855
  }
2792
- N.mutation = o;
2793
- function a(s, u) {
2856
+ P.mutation = i;
2857
+ function s(a, u) {
2794
2858
  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());
2859
+ 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
2860
  }
2797
- return N.subscription = a, N;
2861
+ return P.subscription = s, P;
2798
2862
  }
2799
- Pi();
2800
- const ki = {
2863
+ Do();
2864
+ const jo = {
2801
2865
  kind: "Document",
2802
2866
  definitions: [{
2803
2867
  kind: "FragmentDefinition",
@@ -2841,7 +2905,7 @@ const ki = {
2841
2905
  }]
2842
2906
  }
2843
2907
  }]
2844
- }, Ci = {
2908
+ }, xo = {
2845
2909
  kind: "Document",
2846
2910
  definitions: [{
2847
2911
  kind: "OperationDefinition",
@@ -3016,7 +3080,7 @@ const ki = {
3016
3080
  }]
3017
3081
  }
3018
3082
  }]
3019
- }, qi = {
3083
+ }, Fo = {
3020
3084
  kind: "Document",
3021
3085
  definitions: [{
3022
3086
  kind: "OperationDefinition",
@@ -3046,7 +3110,7 @@ const ki = {
3046
3110
  }]
3047
3111
  }
3048
3112
  }]
3049
- }, ji = {
3113
+ }, Mo = {
3050
3114
  kind: "Document",
3051
3115
  definitions: [{
3052
3116
  kind: "OperationDefinition",
@@ -3076,7 +3140,7 @@ const ki = {
3076
3140
  }]
3077
3141
  }
3078
3142
  }]
3079
- }, Di = {
3143
+ }, Bo = {
3080
3144
  kind: "Document",
3081
3145
  definitions: [{
3082
3146
  kind: "OperationDefinition",
@@ -3159,7 +3223,7 @@ const ki = {
3159
3223
  }]
3160
3224
  }
3161
3225
  }]
3162
- }, Fi = {
3226
+ }, Io = {
3163
3227
  kind: "Document",
3164
3228
  definitions: [{
3165
3229
  kind: "OperationDefinition",
@@ -3179,7 +3243,7 @@ const ki = {
3179
3243
  }]
3180
3244
  }
3181
3245
  }]
3182
- }, xi = {
3246
+ }, Lo = {
3183
3247
  kind: "Document",
3184
3248
  definitions: [{
3185
3249
  kind: "OperationDefinition",
@@ -3250,19 +3314,19 @@ const ki = {
3250
3314
  }]
3251
3315
  }
3252
3316
  }]
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
3317
+ }, Uo = {
3318
+ "\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": xo,
3319
+ "\n mutation logout {\n logout {\n success\n }\n }\n": Fo,
3320
+ "\n query me {\n me {\n id\n }\n }\n": Mo,
3321
+ "\n mutation transitionOrderToState($input: String!) {\n transitionOrderToState(state: $input) {\n ... on ErrorResult {\n errorCode\n message\n }\n }\n }\n": Bo,
3322
+ "\n query nextOrderStates {\n nextOrderStates\n }\n": Io,
3323
+ "\n fragment EligiblePaymentMethods on PaymentMethodQuote {\n id\n name\n description\n code\n }\n": jo,
3324
+ "\n query EligiblePaymentMethods {\n eligiblePaymentMethods {\n ...EligiblePaymentMethods\n }\n }\n": Lo
3261
3325
  };
3262
- function Re(t) {
3263
- return Mi[t] ?? {};
3326
+ function ke(t) {
3327
+ return Uo[t] ?? {};
3264
3328
  }
3265
- Re(
3329
+ ke(
3266
3330
  /* GraphQL */
3267
3331
  `
3268
3332
  mutation transitionOrderToState($input: String!) {
@@ -3275,7 +3339,7 @@ Re(
3275
3339
  }
3276
3340
  `
3277
3341
  );
3278
- Re(
3342
+ ke(
3279
3343
  /* GraphQL */
3280
3344
  `
3281
3345
  query nextOrderStates {
@@ -3283,7 +3347,7 @@ Re(
3283
3347
  }
3284
3348
  `
3285
3349
  );
3286
- Re(
3350
+ ke(
3287
3351
  /* GraphQL */
3288
3352
  `
3289
3353
  fragment EligiblePaymentMethods on PaymentMethodQuote {
@@ -3294,7 +3358,7 @@ Re(
3294
3358
  }
3295
3359
  `
3296
3360
  );
3297
- Re(
3361
+ ke(
3298
3362
  /* GraphQL */
3299
3363
  `
3300
3364
  query EligiblePaymentMethods {
@@ -3304,32 +3368,32 @@ Re(
3304
3368
  }
3305
3369
  `
3306
3370
  );
3307
- let Pt = "web";
3371
+ let qt = "web";
3308
3372
  try {
3309
3373
  const {
3310
3374
  Platform: t
3311
3375
  } = require("react-native");
3312
- Pt = t.OS === "web" ? "web" : "native";
3376
+ qt = t.OS === "web" ? "web" : "native";
3313
3377
  } catch {
3314
- Pt = "web";
3378
+ qt = "web";
3315
3379
  }
3316
- const Ne = () => {
3317
- const t = X.c(2), {
3380
+ const Ce = () => {
3381
+ const t = J.c(2), {
3318
3382
  getPlatform: e
3319
- } = In();
3383
+ } = Vn();
3320
3384
  let r;
3321
3385
  return t[0] !== e ? (r = e(), t[0] = e, t[1] = r) : r = t[1], r;
3322
3386
  };
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 = ({
3387
+ typeof window < "u" ? window.__STORE_COMPONENT_PROVIDER_CONTEXT__ || (window.__STORE_COMPONENT_PROVIDER_CONTEXT__ = be(void 0)) : be(void 0);
3388
+ const qe = "ProductBadge", [$o] = vn(qe), [Ho, Vo] = $o(qe), fn = ({
3325
3389
  children: t,
3326
3390
  product: e,
3327
3391
  __scopeProductBadge: r,
3328
3392
  style: n,
3329
- ...i
3393
+ ...o
3330
3394
  }) => {
3331
- const o = bn(null), a = Ne(), s = ve(a);
3332
- if (!V.getEnabled())
3395
+ const i = wn(null), s = Ce(), a = Oe(s);
3396
+ if (!X.getEnabled())
3333
3397
  return null;
3334
3398
  const {
3335
3399
  badges: u
@@ -3339,78 +3403,78 @@ const Pe = "ProductBadge", [Bi] = gn(Pe), [Ui, Ii] = Bi(Pe), cn = ({
3339
3403
  const c = u.reduce((m, y) => (m[y.position] || (m[y.position] = []), m[y.position].push(y), m), {}), l = Object.keys(c), d = {
3340
3404
  groupedBadges: c,
3341
3405
  badges: u,
3342
- badgesRef: o,
3406
+ badgesRef: i,
3343
3407
  positions: l
3344
3408
  };
3345
- return /* @__PURE__ */ j.jsx(Ui, { scope: r, ...d, children: /* @__PURE__ */ j.jsx(s, { ...i, style: n, children: Ct(t, d) }) });
3409
+ return /* @__PURE__ */ j.jsx(Ho, { scope: r, ...d, children: /* @__PURE__ */ j.jsx(a, { ...o, style: n, children: jt(t, d) }) });
3346
3410
  };
3347
- cn.displayName = Pe;
3348
- const ln = (t) => {
3349
- const e = X.c(18);
3350
- let r, n, i, o, a;
3411
+ fn.displayName = qe;
3412
+ const dn = (t) => {
3413
+ const e = J.c(18);
3414
+ let r, n, o, i, s;
3351
3415
  e[0] !== t ? ({
3352
- children: i,
3353
- position: o,
3416
+ children: o,
3417
+ position: i,
3354
3418
  asChild: n,
3355
3419
  __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();
3420
+ ...s
3421
+ } = 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]);
3422
+ const a = Ce();
3359
3423
  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];
3424
+ e[6] !== n || e[7] !== a ? (u = Oe(a, n, "div"), e[6] = n, e[7] = a, e[8] = u) : u = e[8];
3361
3425
  const c = u, {
3362
3426
  groupedBadges: l
3363
- } = Ii(Pe, r), d = l[o];
3427
+ } = Vo(qe, r), d = l[i];
3364
3428
  let m;
3365
- e[9] !== d || e[10] !== i || e[11] !== o ? (m = Ct(i, {
3429
+ e[9] !== d || e[10] !== o || e[11] !== i ? (m = jt(o, {
3366
3430
  badges: d,
3367
- position: o
3368
- }), e[9] = d, e[10] = i, e[11] = o, e[12] = m) : m = e[12];
3431
+ position: i
3432
+ }), e[9] = d, e[10] = o, e[11] = i, e[12] = m) : m = e[12];
3369
3433
  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;
3434
+ 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;
3435
+ }, pn = (t) => {
3436
+ const e = J.c(13);
3437
+ let r, n, o, i;
3374
3438
  e[0] !== t ? ({
3375
- children: i,
3439
+ children: o,
3376
3440
  asChild: r,
3377
3441
  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;
3442
+ ...i
3443
+ } = 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]);
3444
+ const s = Ce();
3445
+ let a;
3446
+ e[5] !== r || e[6] !== s ? (a = Oe(s, r, "div"), e[5] = r, e[6] = s, e[7] = a) : a = e[7];
3447
+ const u = a, c = n?.id;
3384
3448
  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;
3449
+ 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;
3450
+ }, mn = (t) => {
3451
+ const e = J.c(15);
3452
+ let r, n, o;
3389
3453
  e[0] !== t ? ({
3390
3454
  badge: n,
3391
3455
  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;
3456
+ ...o
3457
+ } = t, e[0] = t, e[1] = r, e[2] = n, e[3] = o) : (r = e[1], n = e[2], o = e[3]);
3458
+ const i = Ce();
3459
+ let s;
3460
+ e[4] !== r || e[5] !== i ? (s = Oe(i, r, "img"), e[4] = r, e[5] = i, e[6] = s) : s = e[6];
3461
+ const a = s;
3398
3462
  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];
3463
+ e[7] !== i || e[8] !== o ? (u = bn(o, i), e[7] = i, e[8] = o, e[9] = u) : u = e[9];
3400
3464
  const c = u, l = n.asset?.preview;
3401
3465
  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;
3466
+ 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
3467
  };
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
3468
+ dn.displayName = "ProductBadgeGroup";
3469
+ pn.displayName = "ProductBadgeItem";
3470
+ mn.displayName = "ProductBadgeImage";
3471
+ const hi = {
3472
+ Root: fn,
3473
+ Group: dn,
3474
+ Item: pn,
3475
+ Image: mn
3412
3476
  };
3413
3477
  export {
3414
- fo as ProductBadge,
3415
- V as VendureBadgePlugin
3478
+ hi as ProductBadge,
3479
+ X as VendureBadgePlugin
3416
3480
  };