@haus-storefront-react/vendure-plugin-configs 0.0.31 → 0.0.32-2

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