@haus-storefront-react/vendure-plugin-configs 1.0.4-next.7 → 1.0.4-next.9
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/CHANGELOG.md +824 -793
- package/badge.js +1 -1
- package/badge.mjs +439 -424
- package/campaign.js +1 -1
- package/campaign.mjs +50 -106
- package/elastic.js +1 -1
- package/elastic.mjs +10 -26
- package/index.js +1 -1
- package/index.mjs +2 -4
- package/lib/configs/vendure-badge-plugin.d.ts +2 -2
- package/lib/configs/vendure-related-products-plugin.d.ts +39 -0
- package/lib/configs/vendure-related-products-plugin.types.d.ts +16 -0
- package/lib/exports/related-products.d.ts +3 -0
- package/lib/hooks/use-related-products.d.ts +2 -0
- package/package.json +13 -7
- package/packagesize.js +1 -1
- package/packagesize.mjs +15 -59
- package/plugin-config-DrQQb9Ry.js +1 -0
- package/plugin-config-DywohMgp.mjs +903 -0
- package/product-popularity.js +1 -1
- package/product-popularity.mjs +12 -22
- package/product-variant-specifications.js +1 -1
- package/product-variant-specifications.mjs +8 -18
- package/products-by-sku.d.ts +2 -0
- package/products-by-sku.js +1 -0
- package/products-by-sku.mjs +54 -0
- package/purchase-order-payment.js +5 -5
- package/purchase-order-payment.mjs +207 -631
- package/related-products.d.ts +2 -0
- package/related-products.js +1 -0
- package/related-products.mjs +36 -0
- package/src-BCHcjT-q.mjs +455 -0
- package/src-BqcrcEUL.mjs +2718 -0
- package/src-Cj3iGasO.js +6 -0
- package/src-CvZOxNaX.js +21 -0
- package/compiler-runtime-oPPev21o.js +0 -10
- package/compiler-runtime-qHgugrLy.mjs +0 -296
- package/index-BRlTlK6a.mjs +0 -3768
- package/index-BgBC_k8M.js +0 -1
- package/index-C0E-40z0.mjs +0 -19
- package/index-CgxqXyHf.js +0 -20
- package/useSdk-DOrZRSHz.mjs +0 -2634
- package/useSdk-YXpk8Wsi.js +0 -21
package/src-BqcrcEUL.mjs
ADDED
|
@@ -0,0 +1,2718 @@
|
|
|
1
|
+
import { c as e, d as t, f as n, i as r, p as i } from "./src-BCHcjT-q.mjs";
|
|
2
|
+
import { createContext as a, useContext as o } from "react";
|
|
3
|
+
import { QueryClient as s, useMutation as c, useQueryClient as l, useQueryClient as u } from "@tanstack/react-query";
|
|
4
|
+
//#region ../../../node_modules/lodash-es/head.js
|
|
5
|
+
function d(e) {
|
|
6
|
+
return e && e.length ? e[0] : void 0;
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region ../../../node_modules/mitt/dist/mitt.mjs
|
|
10
|
+
function f(e) {
|
|
11
|
+
return {
|
|
12
|
+
all: e ||= /* @__PURE__ */ new Map(),
|
|
13
|
+
on: function(t, n) {
|
|
14
|
+
var r = e.get(t);
|
|
15
|
+
r ? r.push(n) : e.set(t, [n]);
|
|
16
|
+
},
|
|
17
|
+
off: function(t, n) {
|
|
18
|
+
var r = e.get(t);
|
|
19
|
+
r && (n ? r.splice(r.indexOf(n) >>> 0, 1) : e.set(t, []));
|
|
20
|
+
},
|
|
21
|
+
emit: function(t, n) {
|
|
22
|
+
var r = e.get(t);
|
|
23
|
+
r && r.slice().map(function(e) {
|
|
24
|
+
e(n);
|
|
25
|
+
}), (r = e.get("*")) && r.slice().map(function(e) {
|
|
26
|
+
e(t, n);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region __vite-browser-external
|
|
33
|
+
var p = /* @__PURE__ */ t(((e, t) => {
|
|
34
|
+
t.exports = {};
|
|
35
|
+
})), m;
|
|
36
|
+
try {
|
|
37
|
+
m = i("@react-native-async-storage/async-storage").default;
|
|
38
|
+
} catch {
|
|
39
|
+
m = null;
|
|
40
|
+
}
|
|
41
|
+
var h = null;
|
|
42
|
+
try {
|
|
43
|
+
let { AsyncLocalStorage: e } = p();
|
|
44
|
+
h = new e();
|
|
45
|
+
} catch {
|
|
46
|
+
h = null;
|
|
47
|
+
}
|
|
48
|
+
var g = typeof window < "u" && window.localStorage !== void 0, _ = !!m, v = {}, y = {
|
|
49
|
+
getItem: async () => null,
|
|
50
|
+
setItem: async () => void 0,
|
|
51
|
+
removeItem: async () => void 0
|
|
52
|
+
}, b = () => {
|
|
53
|
+
try {
|
|
54
|
+
return h?.getStore?.() ?? null;
|
|
55
|
+
} catch {
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
}, x = {
|
|
59
|
+
getItem: async (e) => {
|
|
60
|
+
let t = !g && !_ ? b() : null;
|
|
61
|
+
return t ? t.getItem(e) : _ ? m.getItem(e) : g ? new Promise((t) => {
|
|
62
|
+
Promise.resolve().then(() => {
|
|
63
|
+
let n = window.localStorage.getItem(e);
|
|
64
|
+
n !== v[e] && (v[e] = n || ""), t(n);
|
|
65
|
+
});
|
|
66
|
+
}) : y.getItem(e);
|
|
67
|
+
},
|
|
68
|
+
setItem: async (e, t) => {
|
|
69
|
+
let n = !g && !_ ? b() : null;
|
|
70
|
+
return n ? n.setItem(e, t) : _ ? m.setItem(e, t) : g ? new Promise((n, r) => {
|
|
71
|
+
Promise.resolve().then(() => {
|
|
72
|
+
try {
|
|
73
|
+
window.localStorage.setItem(e, t);
|
|
74
|
+
let i = window.localStorage.getItem(e);
|
|
75
|
+
i === t ? (v[e] = t, n()) : r(/* @__PURE__ */ Error(`Failed to set localStorage item: expected "${t}", got "${i}"`));
|
|
76
|
+
} catch (e) {
|
|
77
|
+
r(e);
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
}) : y.setItem(e, t);
|
|
81
|
+
},
|
|
82
|
+
removeItem: async (e) => {
|
|
83
|
+
let t = !g && !_ ? b() : null;
|
|
84
|
+
return t ? t.removeItem(e) : _ ? m.removeItem(e) : g ? new Promise((t, n) => {
|
|
85
|
+
Promise.resolve().then(() => {
|
|
86
|
+
try {
|
|
87
|
+
window.localStorage.removeItem(e);
|
|
88
|
+
let r = window.localStorage.getItem(e);
|
|
89
|
+
r === null ? (delete v[e], t()) : n(/* @__PURE__ */ Error(`Failed to remove localStorage item: key "${e}" still exists with value "${r}"`));
|
|
90
|
+
} catch (e) {
|
|
91
|
+
n(e);
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
}) : y.removeItem(e);
|
|
95
|
+
}
|
|
96
|
+
}, S = 50, C = {
|
|
97
|
+
get: async () => {
|
|
98
|
+
try {
|
|
99
|
+
let e = await x.getItem("eventHistory");
|
|
100
|
+
return e ? JSON.parse(e) : [];
|
|
101
|
+
} catch (e) {
|
|
102
|
+
return console.error("Error getting event history", e), [];
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
set: async (e) => {
|
|
106
|
+
try {
|
|
107
|
+
await x.setItem("eventHistory", JSON.stringify(e.slice(-S)));
|
|
108
|
+
} catch (e) {
|
|
109
|
+
console.error("Error setting event history", e);
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
clear: async () => {
|
|
113
|
+
try {
|
|
114
|
+
await x.removeItem("eventHistory");
|
|
115
|
+
} catch (e) {
|
|
116
|
+
console.error("Error clearing event history", e);
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
push: async (e) => {
|
|
120
|
+
let t = await C.get();
|
|
121
|
+
await C.set([{
|
|
122
|
+
...e,
|
|
123
|
+
timestamp: Date.now()
|
|
124
|
+
}, ...t].slice(-S));
|
|
125
|
+
},
|
|
126
|
+
find: async (e) => (await C.get()).find((t) => t.key === e.key && t.identifier === e.identifier),
|
|
127
|
+
filter: async (e, t) => {
|
|
128
|
+
let n = await C.get();
|
|
129
|
+
return t ? n.filter(t) : n.filter(({ key: t, identifier: n }) => (!t || e.key === t) && (!n || e.identifier === n));
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
//#endregion
|
|
133
|
+
//#region ../../core/src/lib/eventbus/eventbus.ts
|
|
134
|
+
function w() {
|
|
135
|
+
let e = globalThis;
|
|
136
|
+
return e.__HAUS_EVENT_EMITTER__ ||= f(), e.__HAUS_EVENT_EMITTER__;
|
|
137
|
+
}
|
|
138
|
+
function T(e) {
|
|
139
|
+
let t = w(), n = e?.onError ?? ((...e) => console.error(...e));
|
|
140
|
+
C.get().then((e) => {
|
|
141
|
+
let t = d(e)?.timestamp;
|
|
142
|
+
t && t < Date.now() - 1e3 * 60 * 60 && (r.info("Clearing event history since it is older than 1 hour:", "eventBus", t), C.clear());
|
|
143
|
+
});
|
|
144
|
+
let i = (e, r, i) => (t.on(e, (e) => {
|
|
145
|
+
try {
|
|
146
|
+
if (typeof e == "object" && e) {
|
|
147
|
+
let { identifier: t, data: n } = e;
|
|
148
|
+
(!t || t === i) && r(n);
|
|
149
|
+
} else r(e);
|
|
150
|
+
} catch (e) {
|
|
151
|
+
n(e);
|
|
152
|
+
}
|
|
153
|
+
}), () => {
|
|
154
|
+
a(e, r, i);
|
|
155
|
+
}), a = (e, n, r) => {
|
|
156
|
+
t.off(e, (i) => {
|
|
157
|
+
if (typeof i == "object" && i) {
|
|
158
|
+
let { identifier: a } = i;
|
|
159
|
+
(!a || a === r) && t.off(e, n);
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
};
|
|
163
|
+
return {
|
|
164
|
+
on: i,
|
|
165
|
+
off: a,
|
|
166
|
+
once: (e, n, r) => {
|
|
167
|
+
let i = (t) => {
|
|
168
|
+
try {
|
|
169
|
+
if (typeof t == "object" && t) {
|
|
170
|
+
let { identifier: e, data: i } = t;
|
|
171
|
+
(!e || e === r) && n(i);
|
|
172
|
+
} else n(t);
|
|
173
|
+
} finally {
|
|
174
|
+
a(e, i, r);
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
t.on(e, i);
|
|
178
|
+
},
|
|
179
|
+
emit: (e, n, ...r) => {
|
|
180
|
+
let i = {
|
|
181
|
+
identifier: n,
|
|
182
|
+
data: r.length === 1 ? r[0] : r
|
|
183
|
+
};
|
|
184
|
+
C.push({
|
|
185
|
+
key: e,
|
|
186
|
+
identifier: n,
|
|
187
|
+
payload: i.data
|
|
188
|
+
}), t.emit(e, i);
|
|
189
|
+
},
|
|
190
|
+
getEventHistory: (e, t) => C.filter({
|
|
191
|
+
key: e,
|
|
192
|
+
identifier: t
|
|
193
|
+
})
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
T(), T(), T(), T(), T(), T(), T();
|
|
197
|
+
//#endregion
|
|
198
|
+
//#region ../../core/src/lib/providers/SDKContext.tsx
|
|
199
|
+
var ee = globalThis.__STORE_SDK_CONTEXT__ ||= a(void 0);
|
|
200
|
+
//#endregion
|
|
201
|
+
//#region ../../../node_modules/axios/lib/helpers/bind.js
|
|
202
|
+
function te(e, t) {
|
|
203
|
+
return function() {
|
|
204
|
+
return e.apply(t, arguments);
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
//#endregion
|
|
208
|
+
//#region ../../../node_modules/axios/lib/utils.js
|
|
209
|
+
var { toString: ne } = Object.prototype, { getPrototypeOf: re } = Object, { iterator: ie, toStringTag: ae } = Symbol, oe = ((e) => (t) => {
|
|
210
|
+
let n = ne.call(t);
|
|
211
|
+
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
212
|
+
})(Object.create(null)), E = (e) => (e = e.toLowerCase(), (t) => oe(t) === e), D = (e) => (t) => typeof t === e, { isArray: O } = Array, k = D("undefined");
|
|
213
|
+
function A(e) {
|
|
214
|
+
return e !== null && !k(e) && e.constructor !== null && !k(e.constructor) && j(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
215
|
+
}
|
|
216
|
+
var se = E("ArrayBuffer");
|
|
217
|
+
function ce(e) {
|
|
218
|
+
let t;
|
|
219
|
+
return t = typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer && se(e.buffer), t;
|
|
220
|
+
}
|
|
221
|
+
var le = D("string"), j = D("function"), ue = D("number"), M = (e) => typeof e == "object" && !!e, de = (e) => e === !0 || e === !1, fe = (e) => {
|
|
222
|
+
if (oe(e) !== "object") return !1;
|
|
223
|
+
let t = re(e);
|
|
224
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ae in e) && !(ie in e);
|
|
225
|
+
}, pe = (e) => {
|
|
226
|
+
if (!M(e) || A(e)) return !1;
|
|
227
|
+
try {
|
|
228
|
+
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
229
|
+
} catch {
|
|
230
|
+
return !1;
|
|
231
|
+
}
|
|
232
|
+
}, me = E("Date"), he = E("File"), ge = E("Blob"), _e = E("FileList"), ve = (e) => M(e) && j(e.pipe), ye = (e) => {
|
|
233
|
+
let t;
|
|
234
|
+
return e && (typeof FormData == "function" && e instanceof FormData || j(e.append) && ((t = oe(e)) === "formdata" || t === "object" && j(e.toString) && e.toString() === "[object FormData]"));
|
|
235
|
+
}, be = E("URLSearchParams"), [xe, Se, Ce, we] = [
|
|
236
|
+
"ReadableStream",
|
|
237
|
+
"Request",
|
|
238
|
+
"Response",
|
|
239
|
+
"Headers"
|
|
240
|
+
].map(E), Te = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
241
|
+
function N(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
242
|
+
if (e == null) return;
|
|
243
|
+
let r, i;
|
|
244
|
+
if (typeof e != "object" && (e = [e]), O(e)) for (r = 0, i = e.length; r < i; r++) t.call(null, e[r], r, e);
|
|
245
|
+
else {
|
|
246
|
+
if (A(e)) return;
|
|
247
|
+
let i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), a = i.length, o;
|
|
248
|
+
for (r = 0; r < a; r++) o = i[r], t.call(null, e[o], o, e);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
function Ee(e, t) {
|
|
252
|
+
if (A(e)) return null;
|
|
253
|
+
t = t.toLowerCase();
|
|
254
|
+
let n = Object.keys(e), r = n.length, i;
|
|
255
|
+
for (; r-- > 0;) if (i = n[r], t === i.toLowerCase()) return i;
|
|
256
|
+
return null;
|
|
257
|
+
}
|
|
258
|
+
var P = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, De = (e) => !k(e) && e !== P;
|
|
259
|
+
function Oe() {
|
|
260
|
+
let { caseless: e, skipUndefined: t } = De(this) && this || {}, n = {}, r = (r, i) => {
|
|
261
|
+
let a = e && Ee(n, i) || i;
|
|
262
|
+
fe(n[a]) && fe(r) ? n[a] = Oe(n[a], r) : fe(r) ? n[a] = Oe({}, r) : O(r) ? n[a] = r.slice() : (!t || !k(r)) && (n[a] = r);
|
|
263
|
+
};
|
|
264
|
+
for (let e = 0, t = arguments.length; e < t; e++) arguments[e] && N(arguments[e], r);
|
|
265
|
+
return n;
|
|
266
|
+
}
|
|
267
|
+
var ke = (e, t, n, { allOwnKeys: r } = {}) => (N(t, (t, r) => {
|
|
268
|
+
n && j(t) ? e[r] = te(t, n) : e[r] = t;
|
|
269
|
+
}, { allOwnKeys: r }), e), Ae = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), je = (e, t, n, r) => {
|
|
270
|
+
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", { value: t.prototype }), n && Object.assign(e.prototype, n);
|
|
271
|
+
}, Me = (e, t, n, r) => {
|
|
272
|
+
let i, a, o, s = {};
|
|
273
|
+
if (t ||= {}, e == null) return t;
|
|
274
|
+
do {
|
|
275
|
+
for (i = Object.getOwnPropertyNames(e), a = i.length; a-- > 0;) o = i[a], (!r || r(o, e, t)) && !s[o] && (t[o] = e[o], s[o] = !0);
|
|
276
|
+
e = n !== !1 && re(e);
|
|
277
|
+
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
278
|
+
return t;
|
|
279
|
+
}, Ne = (e, t, n) => {
|
|
280
|
+
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
281
|
+
let r = e.indexOf(t, n);
|
|
282
|
+
return r !== -1 && r === n;
|
|
283
|
+
}, Pe = (e) => {
|
|
284
|
+
if (!e) return null;
|
|
285
|
+
if (O(e)) return e;
|
|
286
|
+
let t = e.length;
|
|
287
|
+
if (!ue(t)) return null;
|
|
288
|
+
let n = Array(t);
|
|
289
|
+
for (; t-- > 0;) n[t] = e[t];
|
|
290
|
+
return n;
|
|
291
|
+
}, Fe = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && re(Uint8Array)), Ie = (e, t) => {
|
|
292
|
+
let n = (e && e[ie]).call(e), r;
|
|
293
|
+
for (; (r = n.next()) && !r.done;) {
|
|
294
|
+
let n = r.value;
|
|
295
|
+
t.call(e, n[0], n[1]);
|
|
296
|
+
}
|
|
297
|
+
}, Le = (e, t) => {
|
|
298
|
+
let n, r = [];
|
|
299
|
+
for (; (n = e.exec(t)) !== null;) r.push(n);
|
|
300
|
+
return r;
|
|
301
|
+
}, Re = E("HTMLFormElement"), ze = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(e, t, n) {
|
|
302
|
+
return t.toUpperCase() + n;
|
|
303
|
+
}), Be = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Ve = E("RegExp"), He = (e, t) => {
|
|
304
|
+
let n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
305
|
+
N(n, (n, i) => {
|
|
306
|
+
let a;
|
|
307
|
+
(a = t(n, i, e)) !== !1 && (r[i] = a || n);
|
|
308
|
+
}), Object.defineProperties(e, r);
|
|
309
|
+
}, Ue = (e) => {
|
|
310
|
+
He(e, (t, n) => {
|
|
311
|
+
if (j(e) && [
|
|
312
|
+
"arguments",
|
|
313
|
+
"caller",
|
|
314
|
+
"callee"
|
|
315
|
+
].indexOf(n) !== -1) return !1;
|
|
316
|
+
let r = e[n];
|
|
317
|
+
if (j(r)) {
|
|
318
|
+
if (t.enumerable = !1, "writable" in t) {
|
|
319
|
+
t.writable = !1;
|
|
320
|
+
return;
|
|
321
|
+
}
|
|
322
|
+
t.set ||= () => {
|
|
323
|
+
throw Error("Can not rewrite read-only method '" + n + "'");
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
});
|
|
327
|
+
}, We = (e, t) => {
|
|
328
|
+
let n = {}, r = (e) => {
|
|
329
|
+
e.forEach((e) => {
|
|
330
|
+
n[e] = !0;
|
|
331
|
+
});
|
|
332
|
+
};
|
|
333
|
+
return O(e) ? r(e) : r(String(e).split(t)), n;
|
|
334
|
+
}, Ge = () => {}, Ke = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
335
|
+
function qe(e) {
|
|
336
|
+
return !!(e && j(e.append) && e[ae] === "FormData" && e[ie]);
|
|
337
|
+
}
|
|
338
|
+
var Je = (e) => {
|
|
339
|
+
let t = Array(10), n = (e, r) => {
|
|
340
|
+
if (M(e)) {
|
|
341
|
+
if (t.indexOf(e) >= 0) return;
|
|
342
|
+
if (A(e)) return e;
|
|
343
|
+
if (!("toJSON" in e)) {
|
|
344
|
+
t[r] = e;
|
|
345
|
+
let i = O(e) ? [] : {};
|
|
346
|
+
return N(e, (e, t) => {
|
|
347
|
+
let a = n(e, r + 1);
|
|
348
|
+
!k(a) && (i[t] = a);
|
|
349
|
+
}), t[r] = void 0, i;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
return e;
|
|
353
|
+
};
|
|
354
|
+
return n(e, 0);
|
|
355
|
+
}, Ye = E("AsyncFunction"), Xe = (e) => e && (M(e) || j(e)) && j(e.then) && j(e.catch), Ze = ((e, t) => e ? setImmediate : t ? ((e, t) => (P.addEventListener("message", ({ source: n, data: r }) => {
|
|
356
|
+
n === P && r === e && t.length && t.shift()();
|
|
357
|
+
}, !1), (n) => {
|
|
358
|
+
t.push(n), P.postMessage(e, "*");
|
|
359
|
+
}))(`axios@${Math.random()}`, []) : (e) => setTimeout(e))(typeof setImmediate == "function", j(P.postMessage)), F = {
|
|
360
|
+
isArray: O,
|
|
361
|
+
isArrayBuffer: se,
|
|
362
|
+
isBuffer: A,
|
|
363
|
+
isFormData: ye,
|
|
364
|
+
isArrayBufferView: ce,
|
|
365
|
+
isString: le,
|
|
366
|
+
isNumber: ue,
|
|
367
|
+
isBoolean: de,
|
|
368
|
+
isObject: M,
|
|
369
|
+
isPlainObject: fe,
|
|
370
|
+
isEmptyObject: pe,
|
|
371
|
+
isReadableStream: xe,
|
|
372
|
+
isRequest: Se,
|
|
373
|
+
isResponse: Ce,
|
|
374
|
+
isHeaders: we,
|
|
375
|
+
isUndefined: k,
|
|
376
|
+
isDate: me,
|
|
377
|
+
isFile: he,
|
|
378
|
+
isBlob: ge,
|
|
379
|
+
isRegExp: Ve,
|
|
380
|
+
isFunction: j,
|
|
381
|
+
isStream: ve,
|
|
382
|
+
isURLSearchParams: be,
|
|
383
|
+
isTypedArray: Fe,
|
|
384
|
+
isFileList: _e,
|
|
385
|
+
forEach: N,
|
|
386
|
+
merge: Oe,
|
|
387
|
+
extend: ke,
|
|
388
|
+
trim: Te,
|
|
389
|
+
stripBOM: Ae,
|
|
390
|
+
inherits: je,
|
|
391
|
+
toFlatObject: Me,
|
|
392
|
+
kindOf: oe,
|
|
393
|
+
kindOfTest: E,
|
|
394
|
+
endsWith: Ne,
|
|
395
|
+
toArray: Pe,
|
|
396
|
+
forEachEntry: Ie,
|
|
397
|
+
matchAll: Le,
|
|
398
|
+
isHTMLForm: Re,
|
|
399
|
+
hasOwnProperty: Be,
|
|
400
|
+
hasOwnProp: Be,
|
|
401
|
+
reduceDescriptors: He,
|
|
402
|
+
freezeMethods: Ue,
|
|
403
|
+
toObjectSet: We,
|
|
404
|
+
toCamelCase: ze,
|
|
405
|
+
noop: Ge,
|
|
406
|
+
toFiniteNumber: Ke,
|
|
407
|
+
findKey: Ee,
|
|
408
|
+
global: P,
|
|
409
|
+
isContextDefined: De,
|
|
410
|
+
isSpecCompliantForm: qe,
|
|
411
|
+
toJSONObject: Je,
|
|
412
|
+
isAsyncFn: Ye,
|
|
413
|
+
isThenable: Xe,
|
|
414
|
+
setImmediate: Ze,
|
|
415
|
+
asap: typeof queueMicrotask < "u" ? queueMicrotask.bind(P) : typeof process < "u" && process.nextTick || Ze,
|
|
416
|
+
isIterable: (e) => e != null && j(e[ie])
|
|
417
|
+
};
|
|
418
|
+
//#endregion
|
|
419
|
+
//#region ../../../node_modules/axios/lib/core/AxiosError.js
|
|
420
|
+
function I(e, t, n, r, i) {
|
|
421
|
+
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = (/* @__PURE__ */ Error()).stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), i && (this.response = i, this.status = i.status ? i.status : null);
|
|
422
|
+
}
|
|
423
|
+
F.inherits(I, Error, { toJSON: function() {
|
|
424
|
+
return {
|
|
425
|
+
message: this.message,
|
|
426
|
+
name: this.name,
|
|
427
|
+
description: this.description,
|
|
428
|
+
number: this.number,
|
|
429
|
+
fileName: this.fileName,
|
|
430
|
+
lineNumber: this.lineNumber,
|
|
431
|
+
columnNumber: this.columnNumber,
|
|
432
|
+
stack: this.stack,
|
|
433
|
+
config: F.toJSONObject(this.config),
|
|
434
|
+
code: this.code,
|
|
435
|
+
status: this.status
|
|
436
|
+
};
|
|
437
|
+
} });
|
|
438
|
+
var Qe = I.prototype, $e = {};
|
|
439
|
+
[
|
|
440
|
+
"ERR_BAD_OPTION_VALUE",
|
|
441
|
+
"ERR_BAD_OPTION",
|
|
442
|
+
"ECONNABORTED",
|
|
443
|
+
"ETIMEDOUT",
|
|
444
|
+
"ERR_NETWORK",
|
|
445
|
+
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
446
|
+
"ERR_DEPRECATED",
|
|
447
|
+
"ERR_BAD_RESPONSE",
|
|
448
|
+
"ERR_BAD_REQUEST",
|
|
449
|
+
"ERR_CANCELED",
|
|
450
|
+
"ERR_NOT_SUPPORT",
|
|
451
|
+
"ERR_INVALID_URL"
|
|
452
|
+
].forEach((e) => {
|
|
453
|
+
$e[e] = { value: e };
|
|
454
|
+
}), Object.defineProperties(I, $e), Object.defineProperty(Qe, "isAxiosError", { value: !0 }), I.from = (e, t, n, r, i, a) => {
|
|
455
|
+
let o = Object.create(Qe);
|
|
456
|
+
F.toFlatObject(e, o, function(e) {
|
|
457
|
+
return e !== Error.prototype;
|
|
458
|
+
}, (e) => e !== "isAxiosError");
|
|
459
|
+
let s = e && e.message ? e.message : "Error", c = t == null && e ? e.code : t;
|
|
460
|
+
return I.call(o, s, c, n, r, i), e && o.cause == null && Object.defineProperty(o, "cause", {
|
|
461
|
+
value: e,
|
|
462
|
+
configurable: !0
|
|
463
|
+
}), o.name = e && e.name || "Error", a && Object.assign(o, a), o;
|
|
464
|
+
};
|
|
465
|
+
//#endregion
|
|
466
|
+
//#region ../../../node_modules/axios/lib/helpers/toFormData.js
|
|
467
|
+
function et(e) {
|
|
468
|
+
return F.isPlainObject(e) || F.isArray(e);
|
|
469
|
+
}
|
|
470
|
+
function tt(e) {
|
|
471
|
+
return F.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
472
|
+
}
|
|
473
|
+
function nt(e, t, n) {
|
|
474
|
+
return e ? e.concat(t).map(function(e, t) {
|
|
475
|
+
return e = tt(e), !n && t ? "[" + e + "]" : e;
|
|
476
|
+
}).join(n ? "." : "") : t;
|
|
477
|
+
}
|
|
478
|
+
function rt(e) {
|
|
479
|
+
return F.isArray(e) && !e.some(et);
|
|
480
|
+
}
|
|
481
|
+
var it = F.toFlatObject(F, {}, null, function(e) {
|
|
482
|
+
return /^is[A-Z]/.test(e);
|
|
483
|
+
});
|
|
484
|
+
function L(e, t, n) {
|
|
485
|
+
if (!F.isObject(e)) throw TypeError("target must be an object");
|
|
486
|
+
t ||= new FormData(), n = F.toFlatObject(n, {
|
|
487
|
+
metaTokens: !0,
|
|
488
|
+
dots: !1,
|
|
489
|
+
indexes: !1
|
|
490
|
+
}, !1, function(e, t) {
|
|
491
|
+
return !F.isUndefined(t[e]);
|
|
492
|
+
});
|
|
493
|
+
let r = n.metaTokens, i = n.visitor || l, a = n.dots, o = n.indexes, s = (n.Blob || typeof Blob < "u" && Blob) && F.isSpecCompliantForm(t);
|
|
494
|
+
if (!F.isFunction(i)) throw TypeError("visitor must be a function");
|
|
495
|
+
function c(e) {
|
|
496
|
+
if (e === null) return "";
|
|
497
|
+
if (F.isDate(e)) return e.toISOString();
|
|
498
|
+
if (F.isBoolean(e)) return e.toString();
|
|
499
|
+
if (!s && F.isBlob(e)) throw new I("Blob is not supported. Use a Buffer instead.");
|
|
500
|
+
return F.isArrayBuffer(e) || F.isTypedArray(e) ? s && typeof Blob == "function" ? new Blob([e]) : Buffer.from(e) : e;
|
|
501
|
+
}
|
|
502
|
+
function l(e, n, i) {
|
|
503
|
+
let s = e;
|
|
504
|
+
if (e && !i && typeof e == "object") {
|
|
505
|
+
if (F.endsWith(n, "{}")) n = r ? n : n.slice(0, -2), e = JSON.stringify(e);
|
|
506
|
+
else if (F.isArray(e) && rt(e) || (F.isFileList(e) || F.endsWith(n, "[]")) && (s = F.toArray(e))) return n = tt(n), s.forEach(function(e, r) {
|
|
507
|
+
!(F.isUndefined(e) || e === null) && t.append(o === !0 ? nt([n], r, a) : o === null ? n : n + "[]", c(e));
|
|
508
|
+
}), !1;
|
|
509
|
+
}
|
|
510
|
+
return et(e) ? !0 : (t.append(nt(i, n, a), c(e)), !1);
|
|
511
|
+
}
|
|
512
|
+
let u = [], d = Object.assign(it, {
|
|
513
|
+
defaultVisitor: l,
|
|
514
|
+
convertValue: c,
|
|
515
|
+
isVisitable: et
|
|
516
|
+
});
|
|
517
|
+
function f(e, n) {
|
|
518
|
+
if (!F.isUndefined(e)) {
|
|
519
|
+
if (u.indexOf(e) !== -1) throw Error("Circular reference detected in " + n.join("."));
|
|
520
|
+
u.push(e), F.forEach(e, function(e, r) {
|
|
521
|
+
(!(F.isUndefined(e) || e === null) && i.call(t, e, F.isString(r) ? r.trim() : r, n, d)) === !0 && f(e, n ? n.concat(r) : [r]);
|
|
522
|
+
}), u.pop();
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
if (!F.isObject(e)) throw TypeError("data must be an object");
|
|
526
|
+
return f(e), t;
|
|
527
|
+
}
|
|
528
|
+
//#endregion
|
|
529
|
+
//#region ../../../node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
530
|
+
function at(e) {
|
|
531
|
+
let t = {
|
|
532
|
+
"!": "%21",
|
|
533
|
+
"'": "%27",
|
|
534
|
+
"(": "%28",
|
|
535
|
+
")": "%29",
|
|
536
|
+
"~": "%7E",
|
|
537
|
+
"%20": "+",
|
|
538
|
+
"%00": "\0"
|
|
539
|
+
};
|
|
540
|
+
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(e) {
|
|
541
|
+
return t[e];
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
function ot(e, t) {
|
|
545
|
+
this._pairs = [], e && L(e, this, t);
|
|
546
|
+
}
|
|
547
|
+
var st = ot.prototype;
|
|
548
|
+
st.append = function(e, t) {
|
|
549
|
+
this._pairs.push([e, t]);
|
|
550
|
+
}, st.toString = function(e) {
|
|
551
|
+
let t = e ? function(t) {
|
|
552
|
+
return e.call(this, t, at);
|
|
553
|
+
} : at;
|
|
554
|
+
return this._pairs.map(function(e) {
|
|
555
|
+
return t(e[0]) + "=" + t(e[1]);
|
|
556
|
+
}, "").join("&");
|
|
557
|
+
};
|
|
558
|
+
//#endregion
|
|
559
|
+
//#region ../../../node_modules/axios/lib/helpers/buildURL.js
|
|
560
|
+
function ct(e) {
|
|
561
|
+
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
562
|
+
}
|
|
563
|
+
function lt(e, t, n) {
|
|
564
|
+
if (!t) return e;
|
|
565
|
+
let r = n && n.encode || ct;
|
|
566
|
+
F.isFunction(n) && (n = { serialize: n });
|
|
567
|
+
let i = n && n.serialize, a;
|
|
568
|
+
if (a = i ? i(t, n) : F.isURLSearchParams(t) ? t.toString() : new ot(t, n).toString(r), a) {
|
|
569
|
+
let t = e.indexOf("#");
|
|
570
|
+
t !== -1 && (e = e.slice(0, t)), e += (e.indexOf("?") === -1 ? "?" : "&") + a;
|
|
571
|
+
}
|
|
572
|
+
return e;
|
|
573
|
+
}
|
|
574
|
+
//#endregion
|
|
575
|
+
//#region ../../../node_modules/axios/lib/core/InterceptorManager.js
|
|
576
|
+
var ut = class {
|
|
577
|
+
constructor() {
|
|
578
|
+
this.handlers = [];
|
|
579
|
+
}
|
|
580
|
+
use(e, t, n) {
|
|
581
|
+
return this.handlers.push({
|
|
582
|
+
fulfilled: e,
|
|
583
|
+
rejected: t,
|
|
584
|
+
synchronous: n ? n.synchronous : !1,
|
|
585
|
+
runWhen: n ? n.runWhen : null
|
|
586
|
+
}), this.handlers.length - 1;
|
|
587
|
+
}
|
|
588
|
+
eject(e) {
|
|
589
|
+
this.handlers[e] && (this.handlers[e] = null);
|
|
590
|
+
}
|
|
591
|
+
clear() {
|
|
592
|
+
this.handlers &&= [];
|
|
593
|
+
}
|
|
594
|
+
forEach(e) {
|
|
595
|
+
F.forEach(this.handlers, function(t) {
|
|
596
|
+
t !== null && e(t);
|
|
597
|
+
});
|
|
598
|
+
}
|
|
599
|
+
}, dt = {
|
|
600
|
+
silentJSONParsing: !0,
|
|
601
|
+
forcedJSONParsing: !0,
|
|
602
|
+
clarifyTimeoutError: !1
|
|
603
|
+
}, ft = {
|
|
604
|
+
isBrowser: !0,
|
|
605
|
+
classes: {
|
|
606
|
+
URLSearchParams: typeof URLSearchParams < "u" ? URLSearchParams : ot,
|
|
607
|
+
FormData: typeof FormData < "u" ? FormData : null,
|
|
608
|
+
Blob: typeof Blob < "u" ? Blob : null
|
|
609
|
+
},
|
|
610
|
+
protocols: [
|
|
611
|
+
"http",
|
|
612
|
+
"https",
|
|
613
|
+
"file",
|
|
614
|
+
"blob",
|
|
615
|
+
"url",
|
|
616
|
+
"data"
|
|
617
|
+
]
|
|
618
|
+
}, pt = /* @__PURE__ */ n({
|
|
619
|
+
hasBrowserEnv: () => mt,
|
|
620
|
+
hasStandardBrowserEnv: () => gt,
|
|
621
|
+
hasStandardBrowserWebWorkerEnv: () => _t,
|
|
622
|
+
navigator: () => ht,
|
|
623
|
+
origin: () => vt
|
|
624
|
+
}), mt = typeof window < "u" && typeof document < "u", ht = typeof navigator == "object" && navigator || void 0, gt = mt && (!ht || [
|
|
625
|
+
"ReactNative",
|
|
626
|
+
"NativeScript",
|
|
627
|
+
"NS"
|
|
628
|
+
].indexOf(ht.product) < 0), _t = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function", vt = mt && window.location.href || "http://localhost", R = {
|
|
629
|
+
...pt,
|
|
630
|
+
...ft
|
|
631
|
+
};
|
|
632
|
+
//#endregion
|
|
633
|
+
//#region ../../../node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
634
|
+
function yt(e, t) {
|
|
635
|
+
return L(e, new R.classes.URLSearchParams(), {
|
|
636
|
+
visitor: function(e, t, n, r) {
|
|
637
|
+
return R.isNode && F.isBuffer(e) ? (this.append(t, e.toString("base64")), !1) : r.defaultVisitor.apply(this, arguments);
|
|
638
|
+
},
|
|
639
|
+
...t
|
|
640
|
+
});
|
|
641
|
+
}
|
|
642
|
+
//#endregion
|
|
643
|
+
//#region ../../../node_modules/axios/lib/helpers/formDataToJSON.js
|
|
644
|
+
function bt(e) {
|
|
645
|
+
return F.matchAll(/\w+|\[(\w*)]/g, e).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
646
|
+
}
|
|
647
|
+
function xt(e) {
|
|
648
|
+
let t = {}, n = Object.keys(e), r, i = n.length, a;
|
|
649
|
+
for (r = 0; r < i; r++) a = n[r], t[a] = e[a];
|
|
650
|
+
return t;
|
|
651
|
+
}
|
|
652
|
+
function St(e) {
|
|
653
|
+
function t(e, n, r, i) {
|
|
654
|
+
let a = e[i++];
|
|
655
|
+
if (a === "__proto__") return !0;
|
|
656
|
+
let o = Number.isFinite(+a), s = i >= e.length;
|
|
657
|
+
return a = !a && F.isArray(r) ? r.length : a, s ? (F.hasOwnProp(r, a) ? r[a] = [r[a], n] : r[a] = n, !o) : ((!r[a] || !F.isObject(r[a])) && (r[a] = []), t(e, n, r[a], i) && F.isArray(r[a]) && (r[a] = xt(r[a])), !o);
|
|
658
|
+
}
|
|
659
|
+
if (F.isFormData(e) && F.isFunction(e.entries)) {
|
|
660
|
+
let n = {};
|
|
661
|
+
return F.forEachEntry(e, (e, r) => {
|
|
662
|
+
t(bt(e), r, n, 0);
|
|
663
|
+
}), n;
|
|
664
|
+
}
|
|
665
|
+
return null;
|
|
666
|
+
}
|
|
667
|
+
//#endregion
|
|
668
|
+
//#region ../../../node_modules/axios/lib/defaults/index.js
|
|
669
|
+
function Ct(e, t, n) {
|
|
670
|
+
if (F.isString(e)) try {
|
|
671
|
+
return (t || JSON.parse)(e), F.trim(e);
|
|
672
|
+
} catch (e) {
|
|
673
|
+
if (e.name !== "SyntaxError") throw e;
|
|
674
|
+
}
|
|
675
|
+
return (n || JSON.stringify)(e);
|
|
676
|
+
}
|
|
677
|
+
var z = {
|
|
678
|
+
transitional: dt,
|
|
679
|
+
adapter: [
|
|
680
|
+
"xhr",
|
|
681
|
+
"http",
|
|
682
|
+
"fetch"
|
|
683
|
+
],
|
|
684
|
+
transformRequest: [function(e, t) {
|
|
685
|
+
let n = t.getContentType() || "", r = n.indexOf("application/json") > -1, i = F.isObject(e);
|
|
686
|
+
if (i && F.isHTMLForm(e) && (e = new FormData(e)), F.isFormData(e)) return r ? JSON.stringify(St(e)) : e;
|
|
687
|
+
if (F.isArrayBuffer(e) || F.isBuffer(e) || F.isStream(e) || F.isFile(e) || F.isBlob(e) || F.isReadableStream(e)) return e;
|
|
688
|
+
if (F.isArrayBufferView(e)) return e.buffer;
|
|
689
|
+
if (F.isURLSearchParams(e)) return t.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
|
|
690
|
+
let a;
|
|
691
|
+
if (i) {
|
|
692
|
+
if (n.indexOf("application/x-www-form-urlencoded") > -1) return yt(e, this.formSerializer).toString();
|
|
693
|
+
if ((a = F.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
|
|
694
|
+
let t = this.env && this.env.FormData;
|
|
695
|
+
return L(a ? { "files[]": e } : e, t && new t(), this.formSerializer);
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
return i || r ? (t.setContentType("application/json", !1), Ct(e)) : e;
|
|
699
|
+
}],
|
|
700
|
+
transformResponse: [function(e) {
|
|
701
|
+
let t = this.transitional || z.transitional, n = t && t.forcedJSONParsing, r = this.responseType === "json";
|
|
702
|
+
if (F.isResponse(e) || F.isReadableStream(e)) return e;
|
|
703
|
+
if (e && F.isString(e) && (n && !this.responseType || r)) {
|
|
704
|
+
let n = !(t && t.silentJSONParsing) && r;
|
|
705
|
+
try {
|
|
706
|
+
return JSON.parse(e, this.parseReviver);
|
|
707
|
+
} catch (e) {
|
|
708
|
+
if (n) throw e.name === "SyntaxError" ? I.from(e, I.ERR_BAD_RESPONSE, this, null, this.response) : e;
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
return e;
|
|
712
|
+
}],
|
|
713
|
+
timeout: 0,
|
|
714
|
+
xsrfCookieName: "XSRF-TOKEN",
|
|
715
|
+
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
716
|
+
maxContentLength: -1,
|
|
717
|
+
maxBodyLength: -1,
|
|
718
|
+
env: {
|
|
719
|
+
FormData: R.classes.FormData,
|
|
720
|
+
Blob: R.classes.Blob
|
|
721
|
+
},
|
|
722
|
+
validateStatus: function(e) {
|
|
723
|
+
return e >= 200 && e < 300;
|
|
724
|
+
},
|
|
725
|
+
headers: { common: {
|
|
726
|
+
Accept: "application/json, text/plain, */*",
|
|
727
|
+
"Content-Type": void 0
|
|
728
|
+
} }
|
|
729
|
+
};
|
|
730
|
+
F.forEach([
|
|
731
|
+
"delete",
|
|
732
|
+
"get",
|
|
733
|
+
"head",
|
|
734
|
+
"post",
|
|
735
|
+
"put",
|
|
736
|
+
"patch"
|
|
737
|
+
], (e) => {
|
|
738
|
+
z.headers[e] = {};
|
|
739
|
+
});
|
|
740
|
+
//#endregion
|
|
741
|
+
//#region ../../../node_modules/axios/lib/helpers/parseHeaders.js
|
|
742
|
+
var wt = F.toObjectSet([
|
|
743
|
+
"age",
|
|
744
|
+
"authorization",
|
|
745
|
+
"content-length",
|
|
746
|
+
"content-type",
|
|
747
|
+
"etag",
|
|
748
|
+
"expires",
|
|
749
|
+
"from",
|
|
750
|
+
"host",
|
|
751
|
+
"if-modified-since",
|
|
752
|
+
"if-unmodified-since",
|
|
753
|
+
"last-modified",
|
|
754
|
+
"location",
|
|
755
|
+
"max-forwards",
|
|
756
|
+
"proxy-authorization",
|
|
757
|
+
"referer",
|
|
758
|
+
"retry-after",
|
|
759
|
+
"user-agent"
|
|
760
|
+
]), Tt = (e) => {
|
|
761
|
+
let t = {}, n, r, i;
|
|
762
|
+
return e && e.split("\n").forEach(function(e) {
|
|
763
|
+
i = e.indexOf(":"), n = e.substring(0, i).trim().toLowerCase(), r = e.substring(i + 1).trim(), !(!n || t[n] && wt[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
764
|
+
}), t;
|
|
765
|
+
}, Et = Symbol("internals");
|
|
766
|
+
function B(e) {
|
|
767
|
+
return e && String(e).trim().toLowerCase();
|
|
768
|
+
}
|
|
769
|
+
function V(e) {
|
|
770
|
+
return e === !1 || e == null ? e : F.isArray(e) ? e.map(V) : String(e);
|
|
771
|
+
}
|
|
772
|
+
function Dt(e) {
|
|
773
|
+
let t = Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g, r;
|
|
774
|
+
for (; r = n.exec(e);) t[r[1]] = r[2];
|
|
775
|
+
return t;
|
|
776
|
+
}
|
|
777
|
+
var Ot = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
778
|
+
function kt(e, t, n, r, i) {
|
|
779
|
+
if (F.isFunction(r)) return r.call(this, t, n);
|
|
780
|
+
if (i && (t = n), F.isString(t)) {
|
|
781
|
+
if (F.isString(r)) return t.indexOf(r) !== -1;
|
|
782
|
+
if (F.isRegExp(r)) return r.test(t);
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
function At(e) {
|
|
786
|
+
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, t, n) => t.toUpperCase() + n);
|
|
787
|
+
}
|
|
788
|
+
function jt(e, t) {
|
|
789
|
+
let n = F.toCamelCase(" " + t);
|
|
790
|
+
[
|
|
791
|
+
"get",
|
|
792
|
+
"set",
|
|
793
|
+
"has"
|
|
794
|
+
].forEach((r) => {
|
|
795
|
+
Object.defineProperty(e, r + n, {
|
|
796
|
+
value: function(e, n, i) {
|
|
797
|
+
return this[r].call(this, t, e, n, i);
|
|
798
|
+
},
|
|
799
|
+
configurable: !0
|
|
800
|
+
});
|
|
801
|
+
});
|
|
802
|
+
}
|
|
803
|
+
var H = class {
|
|
804
|
+
constructor(e) {
|
|
805
|
+
e && this.set(e);
|
|
806
|
+
}
|
|
807
|
+
set(e, t, n) {
|
|
808
|
+
let r = this;
|
|
809
|
+
function i(e, t, n) {
|
|
810
|
+
let i = B(t);
|
|
811
|
+
if (!i) throw Error("header name must be a non-empty string");
|
|
812
|
+
let a = F.findKey(r, i);
|
|
813
|
+
(!a || r[a] === void 0 || n === !0 || n === void 0 && r[a] !== !1) && (r[a || t] = V(e));
|
|
814
|
+
}
|
|
815
|
+
let a = (e, t) => F.forEach(e, (e, n) => i(e, n, t));
|
|
816
|
+
if (F.isPlainObject(e) || e instanceof this.constructor) a(e, t);
|
|
817
|
+
else if (F.isString(e) && (e = e.trim()) && !Ot(e)) a(Tt(e), t);
|
|
818
|
+
else if (F.isObject(e) && F.isIterable(e)) {
|
|
819
|
+
let n = {}, r, i;
|
|
820
|
+
for (let t of e) {
|
|
821
|
+
if (!F.isArray(t)) throw TypeError("Object iterator must return a key-value pair");
|
|
822
|
+
n[i = t[0]] = (r = n[i]) ? F.isArray(r) ? [...r, t[1]] : [r, t[1]] : t[1];
|
|
823
|
+
}
|
|
824
|
+
a(n, t);
|
|
825
|
+
} else e != null && i(t, e, n);
|
|
826
|
+
return this;
|
|
827
|
+
}
|
|
828
|
+
get(e, t) {
|
|
829
|
+
if (e = B(e), e) {
|
|
830
|
+
let n = F.findKey(this, e);
|
|
831
|
+
if (n) {
|
|
832
|
+
let e = this[n];
|
|
833
|
+
if (!t) return e;
|
|
834
|
+
if (t === !0) return Dt(e);
|
|
835
|
+
if (F.isFunction(t)) return t.call(this, e, n);
|
|
836
|
+
if (F.isRegExp(t)) return t.exec(e);
|
|
837
|
+
throw TypeError("parser must be boolean|regexp|function");
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
has(e, t) {
|
|
842
|
+
if (e = B(e), e) {
|
|
843
|
+
let n = F.findKey(this, e);
|
|
844
|
+
return !!(n && this[n] !== void 0 && (!t || kt(this, this[n], n, t)));
|
|
845
|
+
}
|
|
846
|
+
return !1;
|
|
847
|
+
}
|
|
848
|
+
delete(e, t) {
|
|
849
|
+
let n = this, r = !1;
|
|
850
|
+
function i(e) {
|
|
851
|
+
if (e = B(e), e) {
|
|
852
|
+
let i = F.findKey(n, e);
|
|
853
|
+
i && (!t || kt(n, n[i], i, t)) && (delete n[i], r = !0);
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
return F.isArray(e) ? e.forEach(i) : i(e), r;
|
|
857
|
+
}
|
|
858
|
+
clear(e) {
|
|
859
|
+
let t = Object.keys(this), n = t.length, r = !1;
|
|
860
|
+
for (; n--;) {
|
|
861
|
+
let i = t[n];
|
|
862
|
+
(!e || kt(this, this[i], i, e, !0)) && (delete this[i], r = !0);
|
|
863
|
+
}
|
|
864
|
+
return r;
|
|
865
|
+
}
|
|
866
|
+
normalize(e) {
|
|
867
|
+
let t = this, n = {};
|
|
868
|
+
return F.forEach(this, (r, i) => {
|
|
869
|
+
let a = F.findKey(n, i);
|
|
870
|
+
if (a) {
|
|
871
|
+
t[a] = V(r), delete t[i];
|
|
872
|
+
return;
|
|
873
|
+
}
|
|
874
|
+
let o = e ? At(i) : String(i).trim();
|
|
875
|
+
o !== i && delete t[i], t[o] = V(r), n[o] = !0;
|
|
876
|
+
}), this;
|
|
877
|
+
}
|
|
878
|
+
concat(...e) {
|
|
879
|
+
return this.constructor.concat(this, ...e);
|
|
880
|
+
}
|
|
881
|
+
toJSON(e) {
|
|
882
|
+
let t = Object.create(null);
|
|
883
|
+
return F.forEach(this, (n, r) => {
|
|
884
|
+
n != null && n !== !1 && (t[r] = e && F.isArray(n) ? n.join(", ") : n);
|
|
885
|
+
}), t;
|
|
886
|
+
}
|
|
887
|
+
[Symbol.iterator]() {
|
|
888
|
+
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
889
|
+
}
|
|
890
|
+
toString() {
|
|
891
|
+
return Object.entries(this.toJSON()).map(([e, t]) => e + ": " + t).join("\n");
|
|
892
|
+
}
|
|
893
|
+
getSetCookie() {
|
|
894
|
+
return this.get("set-cookie") || [];
|
|
895
|
+
}
|
|
896
|
+
get [Symbol.toStringTag]() {
|
|
897
|
+
return "AxiosHeaders";
|
|
898
|
+
}
|
|
899
|
+
static from(e) {
|
|
900
|
+
return e instanceof this ? e : new this(e);
|
|
901
|
+
}
|
|
902
|
+
static concat(e, ...t) {
|
|
903
|
+
let n = new this(e);
|
|
904
|
+
return t.forEach((e) => n.set(e)), n;
|
|
905
|
+
}
|
|
906
|
+
static accessor(e) {
|
|
907
|
+
let t = (this[Et] = this[Et] = { accessors: {} }).accessors, n = this.prototype;
|
|
908
|
+
function r(e) {
|
|
909
|
+
let r = B(e);
|
|
910
|
+
t[r] || (jt(n, e), t[r] = !0);
|
|
911
|
+
}
|
|
912
|
+
return F.isArray(e) ? e.forEach(r) : r(e), this;
|
|
913
|
+
}
|
|
914
|
+
};
|
|
915
|
+
H.accessor([
|
|
916
|
+
"Content-Type",
|
|
917
|
+
"Content-Length",
|
|
918
|
+
"Accept",
|
|
919
|
+
"Accept-Encoding",
|
|
920
|
+
"User-Agent",
|
|
921
|
+
"Authorization"
|
|
922
|
+
]), F.reduceDescriptors(H.prototype, ({ value: e }, t) => {
|
|
923
|
+
let n = t[0].toUpperCase() + t.slice(1);
|
|
924
|
+
return {
|
|
925
|
+
get: () => e,
|
|
926
|
+
set(e) {
|
|
927
|
+
this[n] = e;
|
|
928
|
+
}
|
|
929
|
+
};
|
|
930
|
+
}), F.freezeMethods(H);
|
|
931
|
+
//#endregion
|
|
932
|
+
//#region ../../../node_modules/axios/lib/core/transformData.js
|
|
933
|
+
function Mt(e, t) {
|
|
934
|
+
let n = this || z, r = t || n, i = H.from(r.headers), a = r.data;
|
|
935
|
+
return F.forEach(e, function(e) {
|
|
936
|
+
a = e.call(n, a, i.normalize(), t ? t.status : void 0);
|
|
937
|
+
}), i.normalize(), a;
|
|
938
|
+
}
|
|
939
|
+
//#endregion
|
|
940
|
+
//#region ../../../node_modules/axios/lib/cancel/isCancel.js
|
|
941
|
+
function Nt(e) {
|
|
942
|
+
return !!(e && e.__CANCEL__);
|
|
943
|
+
}
|
|
944
|
+
//#endregion
|
|
945
|
+
//#region ../../../node_modules/axios/lib/cancel/CanceledError.js
|
|
946
|
+
function U(e, t, n) {
|
|
947
|
+
I.call(this, e ?? "canceled", I.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
948
|
+
}
|
|
949
|
+
F.inherits(U, I, { __CANCEL__: !0 });
|
|
950
|
+
//#endregion
|
|
951
|
+
//#region ../../../node_modules/axios/lib/core/settle.js
|
|
952
|
+
function Pt(e, t, n) {
|
|
953
|
+
let r = n.config.validateStatus;
|
|
954
|
+
!n.status || !r || r(n.status) ? e(n) : t(new I("Request failed with status code " + n.status, [I.ERR_BAD_REQUEST, I.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4], n.config, n.request, n));
|
|
955
|
+
}
|
|
956
|
+
//#endregion
|
|
957
|
+
//#region ../../../node_modules/axios/lib/helpers/parseProtocol.js
|
|
958
|
+
function Ft(e) {
|
|
959
|
+
let t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
960
|
+
return t && t[1] || "";
|
|
961
|
+
}
|
|
962
|
+
//#endregion
|
|
963
|
+
//#region ../../../node_modules/axios/lib/helpers/speedometer.js
|
|
964
|
+
function It(e, t) {
|
|
965
|
+
e ||= 10;
|
|
966
|
+
let n = Array(e), r = Array(e), i = 0, a = 0, o;
|
|
967
|
+
return t = t === void 0 ? 1e3 : t, function(s) {
|
|
968
|
+
let c = Date.now(), l = r[a];
|
|
969
|
+
o ||= c, n[i] = s, r[i] = c;
|
|
970
|
+
let u = a, d = 0;
|
|
971
|
+
for (; u !== i;) d += n[u++], u %= e;
|
|
972
|
+
if (i = (i + 1) % e, i === a && (a = (a + 1) % e), c - o < t) return;
|
|
973
|
+
let f = l && c - l;
|
|
974
|
+
return f ? Math.round(d * 1e3 / f) : void 0;
|
|
975
|
+
};
|
|
976
|
+
}
|
|
977
|
+
//#endregion
|
|
978
|
+
//#region ../../../node_modules/axios/lib/helpers/throttle.js
|
|
979
|
+
function Lt(e, t) {
|
|
980
|
+
let n = 0, r = 1e3 / t, i, a, o = (t, r = Date.now()) => {
|
|
981
|
+
n = r, i = null, a &&= (clearTimeout(a), null), e(...t);
|
|
982
|
+
};
|
|
983
|
+
return [(...e) => {
|
|
984
|
+
let t = Date.now(), s = t - n;
|
|
985
|
+
s >= r ? o(e, t) : (i = e, a ||= setTimeout(() => {
|
|
986
|
+
a = null, o(i);
|
|
987
|
+
}, r - s));
|
|
988
|
+
}, () => i && o(i)];
|
|
989
|
+
}
|
|
990
|
+
//#endregion
|
|
991
|
+
//#region ../../../node_modules/axios/lib/helpers/progressEventReducer.js
|
|
992
|
+
var W = (e, t, n = 3) => {
|
|
993
|
+
let r = 0, i = It(50, 250);
|
|
994
|
+
return Lt((n) => {
|
|
995
|
+
let a = n.loaded, o = n.lengthComputable ? n.total : void 0, s = a - r, c = i(s), l = a <= o;
|
|
996
|
+
r = a, e({
|
|
997
|
+
loaded: a,
|
|
998
|
+
total: o,
|
|
999
|
+
progress: o ? a / o : void 0,
|
|
1000
|
+
bytes: s,
|
|
1001
|
+
rate: c || void 0,
|
|
1002
|
+
estimated: c && o && l ? (o - a) / c : void 0,
|
|
1003
|
+
event: n,
|
|
1004
|
+
lengthComputable: o != null,
|
|
1005
|
+
[t ? "download" : "upload"]: !0
|
|
1006
|
+
});
|
|
1007
|
+
}, n);
|
|
1008
|
+
}, Rt = (e, t) => {
|
|
1009
|
+
let n = e != null;
|
|
1010
|
+
return [(r) => t[0]({
|
|
1011
|
+
lengthComputable: n,
|
|
1012
|
+
total: e,
|
|
1013
|
+
loaded: r
|
|
1014
|
+
}), t[1]];
|
|
1015
|
+
}, zt = (e) => (...t) => F.asap(() => e(...t)), Bt = R.hasStandardBrowserEnv ? ((e, t) => (n) => (n = new URL(n, R.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(new URL(R.origin), R.navigator && /(msie|trident)/i.test(R.navigator.userAgent)) : () => !0, Vt = R.hasStandardBrowserEnv ? {
|
|
1016
|
+
write(e, t, n, r, i, a, o) {
|
|
1017
|
+
if (typeof document > "u") return;
|
|
1018
|
+
let s = [`${e}=${encodeURIComponent(t)}`];
|
|
1019
|
+
F.isNumber(n) && s.push(`expires=${new Date(n).toUTCString()}`), F.isString(r) && s.push(`path=${r}`), F.isString(i) && s.push(`domain=${i}`), a === !0 && s.push("secure"), F.isString(o) && s.push(`SameSite=${o}`), document.cookie = s.join("; ");
|
|
1020
|
+
},
|
|
1021
|
+
read(e) {
|
|
1022
|
+
if (typeof document > "u") return null;
|
|
1023
|
+
let t = document.cookie.match(RegExp("(?:^|; )" + e + "=([^;]*)"));
|
|
1024
|
+
return t ? decodeURIComponent(t[1]) : null;
|
|
1025
|
+
},
|
|
1026
|
+
remove(e) {
|
|
1027
|
+
this.write(e, "", Date.now() - 864e5, "/");
|
|
1028
|
+
}
|
|
1029
|
+
} : {
|
|
1030
|
+
write() {},
|
|
1031
|
+
read() {
|
|
1032
|
+
return null;
|
|
1033
|
+
},
|
|
1034
|
+
remove() {}
|
|
1035
|
+
};
|
|
1036
|
+
//#endregion
|
|
1037
|
+
//#region ../../../node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
1038
|
+
function Ht(e) {
|
|
1039
|
+
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
1040
|
+
}
|
|
1041
|
+
//#endregion
|
|
1042
|
+
//#region ../../../node_modules/axios/lib/helpers/combineURLs.js
|
|
1043
|
+
function Ut(e, t) {
|
|
1044
|
+
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
1045
|
+
}
|
|
1046
|
+
//#endregion
|
|
1047
|
+
//#region ../../../node_modules/axios/lib/core/buildFullPath.js
|
|
1048
|
+
function Wt(e, t, n) {
|
|
1049
|
+
let r = !Ht(t);
|
|
1050
|
+
return e && (r || n == 0) ? Ut(e, t) : t;
|
|
1051
|
+
}
|
|
1052
|
+
//#endregion
|
|
1053
|
+
//#region ../../../node_modules/axios/lib/core/mergeConfig.js
|
|
1054
|
+
var Gt = (e) => e instanceof H ? { ...e } : e;
|
|
1055
|
+
function G(e, t) {
|
|
1056
|
+
t ||= {};
|
|
1057
|
+
let n = {};
|
|
1058
|
+
function r(e, t, n, r) {
|
|
1059
|
+
return F.isPlainObject(e) && F.isPlainObject(t) ? F.merge.call({ caseless: r }, e, t) : F.isPlainObject(t) ? F.merge({}, t) : F.isArray(t) ? t.slice() : t;
|
|
1060
|
+
}
|
|
1061
|
+
function i(e, t, n, i) {
|
|
1062
|
+
if (!F.isUndefined(t)) return r(e, t, n, i);
|
|
1063
|
+
if (!F.isUndefined(e)) return r(void 0, e, n, i);
|
|
1064
|
+
}
|
|
1065
|
+
function a(e, t) {
|
|
1066
|
+
if (!F.isUndefined(t)) return r(void 0, t);
|
|
1067
|
+
}
|
|
1068
|
+
function o(e, t) {
|
|
1069
|
+
if (!F.isUndefined(t)) return r(void 0, t);
|
|
1070
|
+
if (!F.isUndefined(e)) return r(void 0, e);
|
|
1071
|
+
}
|
|
1072
|
+
function s(n, i, a) {
|
|
1073
|
+
if (a in t) return r(n, i);
|
|
1074
|
+
if (a in e) return r(void 0, n);
|
|
1075
|
+
}
|
|
1076
|
+
let c = {
|
|
1077
|
+
url: a,
|
|
1078
|
+
method: a,
|
|
1079
|
+
data: a,
|
|
1080
|
+
baseURL: o,
|
|
1081
|
+
transformRequest: o,
|
|
1082
|
+
transformResponse: o,
|
|
1083
|
+
paramsSerializer: o,
|
|
1084
|
+
timeout: o,
|
|
1085
|
+
timeoutMessage: o,
|
|
1086
|
+
withCredentials: o,
|
|
1087
|
+
withXSRFToken: o,
|
|
1088
|
+
adapter: o,
|
|
1089
|
+
responseType: o,
|
|
1090
|
+
xsrfCookieName: o,
|
|
1091
|
+
xsrfHeaderName: o,
|
|
1092
|
+
onUploadProgress: o,
|
|
1093
|
+
onDownloadProgress: o,
|
|
1094
|
+
decompress: o,
|
|
1095
|
+
maxContentLength: o,
|
|
1096
|
+
maxBodyLength: o,
|
|
1097
|
+
beforeRedirect: o,
|
|
1098
|
+
transport: o,
|
|
1099
|
+
httpAgent: o,
|
|
1100
|
+
httpsAgent: o,
|
|
1101
|
+
cancelToken: o,
|
|
1102
|
+
socketPath: o,
|
|
1103
|
+
responseEncoding: o,
|
|
1104
|
+
validateStatus: s,
|
|
1105
|
+
headers: (e, t, n) => i(Gt(e), Gt(t), n, !0)
|
|
1106
|
+
};
|
|
1107
|
+
return F.forEach(Object.keys({
|
|
1108
|
+
...e,
|
|
1109
|
+
...t
|
|
1110
|
+
}), function(r) {
|
|
1111
|
+
let a = c[r] || i, o = a(e[r], t[r], r);
|
|
1112
|
+
F.isUndefined(o) && a !== s || (n[r] = o);
|
|
1113
|
+
}), n;
|
|
1114
|
+
}
|
|
1115
|
+
//#endregion
|
|
1116
|
+
//#region ../../../node_modules/axios/lib/helpers/resolveConfig.js
|
|
1117
|
+
var Kt = (e) => {
|
|
1118
|
+
let t = G({}, e), { data: n, withXSRFToken: r, xsrfHeaderName: i, xsrfCookieName: a, headers: o, auth: s } = t;
|
|
1119
|
+
if (t.headers = o = H.from(o), t.url = lt(Wt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), s && o.set("Authorization", "Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))), F.isFormData(n)) {
|
|
1120
|
+
if (R.hasStandardBrowserEnv || R.hasStandardBrowserWebWorkerEnv) o.setContentType(void 0);
|
|
1121
|
+
else if (F.isFunction(n.getHeaders)) {
|
|
1122
|
+
let e = n.getHeaders(), t = ["content-type", "content-length"];
|
|
1123
|
+
Object.entries(e).forEach(([e, n]) => {
|
|
1124
|
+
t.includes(e.toLowerCase()) && o.set(e, n);
|
|
1125
|
+
});
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
if (R.hasStandardBrowserEnv && (r && F.isFunction(r) && (r = r(t)), r || r !== !1 && Bt(t.url))) {
|
|
1129
|
+
let e = i && a && Vt.read(a);
|
|
1130
|
+
e && o.set(i, e);
|
|
1131
|
+
}
|
|
1132
|
+
return t;
|
|
1133
|
+
}, qt = typeof XMLHttpRequest < "u" && function(e) {
|
|
1134
|
+
return new Promise(function(t, n) {
|
|
1135
|
+
let r = Kt(e), i = r.data, a = H.from(r.headers).normalize(), { responseType: o, onUploadProgress: s, onDownloadProgress: c } = r, l, u, d, f, p;
|
|
1136
|
+
function m() {
|
|
1137
|
+
f && f(), p && p(), r.cancelToken && r.cancelToken.unsubscribe(l), r.signal && r.signal.removeEventListener("abort", l);
|
|
1138
|
+
}
|
|
1139
|
+
let h = new XMLHttpRequest();
|
|
1140
|
+
h.open(r.method.toUpperCase(), r.url, !0), h.timeout = r.timeout;
|
|
1141
|
+
function g() {
|
|
1142
|
+
if (!h) return;
|
|
1143
|
+
let r = H.from("getAllResponseHeaders" in h && h.getAllResponseHeaders());
|
|
1144
|
+
Pt(function(e) {
|
|
1145
|
+
t(e), m();
|
|
1146
|
+
}, function(e) {
|
|
1147
|
+
n(e), m();
|
|
1148
|
+
}, {
|
|
1149
|
+
data: !o || o === "text" || o === "json" ? h.responseText : h.response,
|
|
1150
|
+
status: h.status,
|
|
1151
|
+
statusText: h.statusText,
|
|
1152
|
+
headers: r,
|
|
1153
|
+
config: e,
|
|
1154
|
+
request: h
|
|
1155
|
+
}), h = null;
|
|
1156
|
+
}
|
|
1157
|
+
"onloadend" in h ? h.onloadend = g : h.onreadystatechange = function() {
|
|
1158
|
+
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(g);
|
|
1159
|
+
}, h.onabort = function() {
|
|
1160
|
+
h &&= (n(new I("Request aborted", I.ECONNABORTED, e, h)), null);
|
|
1161
|
+
}, h.onerror = function(t) {
|
|
1162
|
+
let r = new I(t && t.message ? t.message : "Network Error", I.ERR_NETWORK, e, h);
|
|
1163
|
+
r.event = t || null, n(r), h = null;
|
|
1164
|
+
}, h.ontimeout = function() {
|
|
1165
|
+
let t = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded", i = r.transitional || dt;
|
|
1166
|
+
r.timeoutErrorMessage && (t = r.timeoutErrorMessage), n(new I(t, i.clarifyTimeoutError ? I.ETIMEDOUT : I.ECONNABORTED, e, h)), h = null;
|
|
1167
|
+
}, i === void 0 && a.setContentType(null), "setRequestHeader" in h && F.forEach(a.toJSON(), function(e, t) {
|
|
1168
|
+
h.setRequestHeader(t, e);
|
|
1169
|
+
}), F.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), o && o !== "json" && (h.responseType = r.responseType), c && ([d, p] = W(c, !0), h.addEventListener("progress", d)), s && h.upload && ([u, f] = W(s), h.upload.addEventListener("progress", u), h.upload.addEventListener("loadend", f)), (r.cancelToken || r.signal) && (l = (t) => {
|
|
1170
|
+
h &&= (n(!t || t.type ? new U(null, e, h) : t), h.abort(), null);
|
|
1171
|
+
}, r.cancelToken && r.cancelToken.subscribe(l), r.signal && (r.signal.aborted ? l() : r.signal.addEventListener("abort", l)));
|
|
1172
|
+
let _ = Ft(r.url);
|
|
1173
|
+
if (_ && R.protocols.indexOf(_) === -1) {
|
|
1174
|
+
n(new I("Unsupported protocol " + _ + ":", I.ERR_BAD_REQUEST, e));
|
|
1175
|
+
return;
|
|
1176
|
+
}
|
|
1177
|
+
h.send(i || null);
|
|
1178
|
+
});
|
|
1179
|
+
}, Jt = (e, t) => {
|
|
1180
|
+
let { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1181
|
+
if (t || n) {
|
|
1182
|
+
let n = new AbortController(), r, i = function(e) {
|
|
1183
|
+
if (!r) {
|
|
1184
|
+
r = !0, o();
|
|
1185
|
+
let t = e instanceof Error ? e : this.reason;
|
|
1186
|
+
n.abort(t instanceof I ? t : new U(t instanceof Error ? t.message : t));
|
|
1187
|
+
}
|
|
1188
|
+
}, a = t && setTimeout(() => {
|
|
1189
|
+
a = null, i(new I(`timeout ${t} of ms exceeded`, I.ETIMEDOUT));
|
|
1190
|
+
}, t), o = () => {
|
|
1191
|
+
e &&= (a && clearTimeout(a), a = null, e.forEach((e) => {
|
|
1192
|
+
e.unsubscribe ? e.unsubscribe(i) : e.removeEventListener("abort", i);
|
|
1193
|
+
}), null);
|
|
1194
|
+
};
|
|
1195
|
+
e.forEach((e) => e.addEventListener("abort", i));
|
|
1196
|
+
let { signal: s } = n;
|
|
1197
|
+
return s.unsubscribe = () => F.asap(o), s;
|
|
1198
|
+
}
|
|
1199
|
+
}, Yt = function* (e, t) {
|
|
1200
|
+
let n = e.byteLength;
|
|
1201
|
+
if (!t || n < t) {
|
|
1202
|
+
yield e;
|
|
1203
|
+
return;
|
|
1204
|
+
}
|
|
1205
|
+
let r = 0, i;
|
|
1206
|
+
for (; r < n;) i = r + t, yield e.slice(r, i), r = i;
|
|
1207
|
+
}, Xt = async function* (e, t) {
|
|
1208
|
+
for await (let n of Zt(e)) yield* Yt(n, t);
|
|
1209
|
+
}, Zt = async function* (e) {
|
|
1210
|
+
if (e[Symbol.asyncIterator]) {
|
|
1211
|
+
yield* e;
|
|
1212
|
+
return;
|
|
1213
|
+
}
|
|
1214
|
+
let t = e.getReader();
|
|
1215
|
+
try {
|
|
1216
|
+
for (;;) {
|
|
1217
|
+
let { done: e, value: n } = await t.read();
|
|
1218
|
+
if (e) break;
|
|
1219
|
+
yield n;
|
|
1220
|
+
}
|
|
1221
|
+
} finally {
|
|
1222
|
+
await t.cancel();
|
|
1223
|
+
}
|
|
1224
|
+
}, Qt = (e, t, n, r) => {
|
|
1225
|
+
let i = Xt(e, t), a = 0, o, s = (e) => {
|
|
1226
|
+
o || (o = !0, r && r(e));
|
|
1227
|
+
};
|
|
1228
|
+
return new ReadableStream({
|
|
1229
|
+
async pull(e) {
|
|
1230
|
+
try {
|
|
1231
|
+
let { done: t, value: r } = await i.next();
|
|
1232
|
+
if (t) {
|
|
1233
|
+
s(), e.close();
|
|
1234
|
+
return;
|
|
1235
|
+
}
|
|
1236
|
+
let o = r.byteLength;
|
|
1237
|
+
n && n(a += o), e.enqueue(new Uint8Array(r));
|
|
1238
|
+
} catch (e) {
|
|
1239
|
+
throw s(e), e;
|
|
1240
|
+
}
|
|
1241
|
+
},
|
|
1242
|
+
cancel(e) {
|
|
1243
|
+
return s(e), i.return();
|
|
1244
|
+
}
|
|
1245
|
+
}, { highWaterMark: 2 });
|
|
1246
|
+
}, $t = 64 * 1024, { isFunction: K } = F, en = (({ Request: e, Response: t }) => ({
|
|
1247
|
+
Request: e,
|
|
1248
|
+
Response: t
|
|
1249
|
+
}))(F.global), { ReadableStream: tn, TextEncoder: nn } = F.global, rn = (e, ...t) => {
|
|
1250
|
+
try {
|
|
1251
|
+
return !!e(...t);
|
|
1252
|
+
} catch {
|
|
1253
|
+
return !1;
|
|
1254
|
+
}
|
|
1255
|
+
}, an = (e) => {
|
|
1256
|
+
e = F.merge.call({ skipUndefined: !0 }, en, e);
|
|
1257
|
+
let { fetch: t, Request: n, Response: r } = e, i = t ? K(t) : typeof fetch == "function", a = K(n), o = K(r);
|
|
1258
|
+
if (!i) return !1;
|
|
1259
|
+
let s = i && K(tn), c = i && (typeof nn == "function" ? ((e) => (t) => e.encode(t))(new nn()) : async (e) => new Uint8Array(await new n(e).arrayBuffer())), l = a && s && rn(() => {
|
|
1260
|
+
let e = !1, t = new n(R.origin, {
|
|
1261
|
+
body: new tn(),
|
|
1262
|
+
method: "POST",
|
|
1263
|
+
get duplex() {
|
|
1264
|
+
return e = !0, "half";
|
|
1265
|
+
}
|
|
1266
|
+
}).headers.has("Content-Type");
|
|
1267
|
+
return e && !t;
|
|
1268
|
+
}), u = o && s && rn(() => F.isReadableStream(new r("").body)), d = { stream: u && ((e) => e.body) };
|
|
1269
|
+
i && [
|
|
1270
|
+
"text",
|
|
1271
|
+
"arrayBuffer",
|
|
1272
|
+
"blob",
|
|
1273
|
+
"formData",
|
|
1274
|
+
"stream"
|
|
1275
|
+
].forEach((e) => {
|
|
1276
|
+
!d[e] && (d[e] = (t, n) => {
|
|
1277
|
+
let r = t && t[e];
|
|
1278
|
+
if (r) return r.call(t);
|
|
1279
|
+
throw new I(`Response type '${e}' is not supported`, I.ERR_NOT_SUPPORT, n);
|
|
1280
|
+
});
|
|
1281
|
+
});
|
|
1282
|
+
let f = async (e) => {
|
|
1283
|
+
if (e == null) return 0;
|
|
1284
|
+
if (F.isBlob(e)) return e.size;
|
|
1285
|
+
if (F.isSpecCompliantForm(e)) return (await new n(R.origin, {
|
|
1286
|
+
method: "POST",
|
|
1287
|
+
body: e
|
|
1288
|
+
}).arrayBuffer()).byteLength;
|
|
1289
|
+
if (F.isArrayBufferView(e) || F.isArrayBuffer(e)) return e.byteLength;
|
|
1290
|
+
if (F.isURLSearchParams(e) && (e += ""), F.isString(e)) return (await c(e)).byteLength;
|
|
1291
|
+
}, p = async (e, t) => F.toFiniteNumber(e.getContentLength()) ?? f(t);
|
|
1292
|
+
return async (e) => {
|
|
1293
|
+
let { url: i, method: o, data: s, signal: c, cancelToken: f, timeout: m, onDownloadProgress: h, onUploadProgress: g, responseType: _, headers: v, withCredentials: y = "same-origin", fetchOptions: b } = Kt(e), x = t || fetch;
|
|
1294
|
+
_ = _ ? (_ + "").toLowerCase() : "text";
|
|
1295
|
+
let S = Jt([c, f && f.toAbortSignal()], m), C = null, w = S && S.unsubscribe && (() => {
|
|
1296
|
+
S.unsubscribe();
|
|
1297
|
+
}), T;
|
|
1298
|
+
try {
|
|
1299
|
+
if (g && l && o !== "get" && o !== "head" && (T = await p(v, s)) !== 0) {
|
|
1300
|
+
let e = new n(i, {
|
|
1301
|
+
method: "POST",
|
|
1302
|
+
body: s,
|
|
1303
|
+
duplex: "half"
|
|
1304
|
+
}), t;
|
|
1305
|
+
if (F.isFormData(s) && (t = e.headers.get("content-type")) && v.setContentType(t), e.body) {
|
|
1306
|
+
let [t, n] = Rt(T, W(zt(g)));
|
|
1307
|
+
s = Qt(e.body, $t, t, n);
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
F.isString(y) || (y = y ? "include" : "omit");
|
|
1311
|
+
let t = a && "credentials" in n.prototype, c = {
|
|
1312
|
+
...b,
|
|
1313
|
+
signal: S,
|
|
1314
|
+
method: o.toUpperCase(),
|
|
1315
|
+
headers: v.normalize().toJSON(),
|
|
1316
|
+
body: s,
|
|
1317
|
+
duplex: "half",
|
|
1318
|
+
credentials: t ? y : void 0
|
|
1319
|
+
};
|
|
1320
|
+
C = a && new n(i, c);
|
|
1321
|
+
let f = await (a ? x(C, b) : x(i, c)), m = u && (_ === "stream" || _ === "response");
|
|
1322
|
+
if (u && (h || m && w)) {
|
|
1323
|
+
let e = {};
|
|
1324
|
+
[
|
|
1325
|
+
"status",
|
|
1326
|
+
"statusText",
|
|
1327
|
+
"headers"
|
|
1328
|
+
].forEach((t) => {
|
|
1329
|
+
e[t] = f[t];
|
|
1330
|
+
});
|
|
1331
|
+
let t = F.toFiniteNumber(f.headers.get("content-length")), [n, i] = h && Rt(t, W(zt(h), !0)) || [];
|
|
1332
|
+
f = new r(Qt(f.body, $t, n, () => {
|
|
1333
|
+
i && i(), w && w();
|
|
1334
|
+
}), e);
|
|
1335
|
+
}
|
|
1336
|
+
_ ||= "text";
|
|
1337
|
+
let ee = await d[F.findKey(d, _) || "text"](f, e);
|
|
1338
|
+
return !m && w && w(), await new Promise((t, n) => {
|
|
1339
|
+
Pt(t, n, {
|
|
1340
|
+
data: ee,
|
|
1341
|
+
headers: H.from(f.headers),
|
|
1342
|
+
status: f.status,
|
|
1343
|
+
statusText: f.statusText,
|
|
1344
|
+
config: e,
|
|
1345
|
+
request: C
|
|
1346
|
+
});
|
|
1347
|
+
});
|
|
1348
|
+
} catch (t) {
|
|
1349
|
+
throw w && w(), t && t.name === "TypeError" && /Load failed|fetch/i.test(t.message) ? Object.assign(new I("Network Error", I.ERR_NETWORK, e, C), { cause: t.cause || t }) : I.from(t, t && t.code, e, C);
|
|
1350
|
+
}
|
|
1351
|
+
};
|
|
1352
|
+
}, on = /* @__PURE__ */ new Map(), sn = (e) => {
|
|
1353
|
+
let t = e && e.env || {}, { fetch: n, Request: r, Response: i } = t, a = [
|
|
1354
|
+
r,
|
|
1355
|
+
i,
|
|
1356
|
+
n
|
|
1357
|
+
], o = a.length, s, c, l = on;
|
|
1358
|
+
for (; o--;) s = a[o], c = l.get(s), c === void 0 && l.set(s, c = o ? /* @__PURE__ */ new Map() : an(t)), l = c;
|
|
1359
|
+
return c;
|
|
1360
|
+
};
|
|
1361
|
+
sn();
|
|
1362
|
+
//#endregion
|
|
1363
|
+
//#region ../../../node_modules/axios/lib/adapters/adapters.js
|
|
1364
|
+
var cn = {
|
|
1365
|
+
http: null,
|
|
1366
|
+
xhr: qt,
|
|
1367
|
+
fetch: { get: sn }
|
|
1368
|
+
};
|
|
1369
|
+
F.forEach(cn, (e, t) => {
|
|
1370
|
+
if (e) {
|
|
1371
|
+
try {
|
|
1372
|
+
Object.defineProperty(e, "name", { value: t });
|
|
1373
|
+
} catch {}
|
|
1374
|
+
Object.defineProperty(e, "adapterName", { value: t });
|
|
1375
|
+
}
|
|
1376
|
+
});
|
|
1377
|
+
var ln = (e) => `- ${e}`, un = (e) => F.isFunction(e) || e === null || e === !1;
|
|
1378
|
+
function dn(e, t) {
|
|
1379
|
+
e = F.isArray(e) ? e : [e];
|
|
1380
|
+
let { length: n } = e, r, i, a = {};
|
|
1381
|
+
for (let o = 0; o < n; o++) {
|
|
1382
|
+
r = e[o];
|
|
1383
|
+
let n;
|
|
1384
|
+
if (i = r, !un(r) && (i = cn[(n = String(r)).toLowerCase()], i === void 0)) throw new I(`Unknown adapter '${n}'`);
|
|
1385
|
+
if (i && (F.isFunction(i) || (i = i.get(t)))) break;
|
|
1386
|
+
a[n || "#" + o] = i;
|
|
1387
|
+
}
|
|
1388
|
+
if (!i) {
|
|
1389
|
+
let e = Object.entries(a).map(([e, t]) => `adapter ${e} ` + (t === !1 ? "is not supported by the environment" : "is not available in the build"));
|
|
1390
|
+
throw new I("There is no suitable adapter to dispatch the request " + (n ? e.length > 1 ? "since :\n" + e.map(ln).join("\n") : " " + ln(e[0]) : "as no adapter specified"), "ERR_NOT_SUPPORT");
|
|
1391
|
+
}
|
|
1392
|
+
return i;
|
|
1393
|
+
}
|
|
1394
|
+
var fn = {
|
|
1395
|
+
getAdapter: dn,
|
|
1396
|
+
adapters: cn
|
|
1397
|
+
};
|
|
1398
|
+
//#endregion
|
|
1399
|
+
//#region ../../../node_modules/axios/lib/core/dispatchRequest.js
|
|
1400
|
+
function pn(e) {
|
|
1401
|
+
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new U(null, e);
|
|
1402
|
+
}
|
|
1403
|
+
function mn(e) {
|
|
1404
|
+
return pn(e), e.headers = H.from(e.headers), e.data = Mt.call(e, e.transformRequest), [
|
|
1405
|
+
"post",
|
|
1406
|
+
"put",
|
|
1407
|
+
"patch"
|
|
1408
|
+
].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), fn.getAdapter(e.adapter || z.adapter, e)(e).then(function(t) {
|
|
1409
|
+
return pn(e), t.data = Mt.call(e, e.transformResponse, t), t.headers = H.from(t.headers), t;
|
|
1410
|
+
}, function(t) {
|
|
1411
|
+
return Nt(t) || (pn(e), t && t.response && (t.response.data = Mt.call(e, e.transformResponse, t.response), t.response.headers = H.from(t.response.headers))), Promise.reject(t);
|
|
1412
|
+
});
|
|
1413
|
+
}
|
|
1414
|
+
//#endregion
|
|
1415
|
+
//#region ../../../node_modules/axios/lib/env/data.js
|
|
1416
|
+
var hn = "1.13.2", q = {};
|
|
1417
|
+
[
|
|
1418
|
+
"object",
|
|
1419
|
+
"boolean",
|
|
1420
|
+
"number",
|
|
1421
|
+
"function",
|
|
1422
|
+
"string",
|
|
1423
|
+
"symbol"
|
|
1424
|
+
].forEach((e, t) => {
|
|
1425
|
+
q[e] = function(n) {
|
|
1426
|
+
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1427
|
+
};
|
|
1428
|
+
});
|
|
1429
|
+
var gn = {};
|
|
1430
|
+
q.transitional = function(e, t, n) {
|
|
1431
|
+
function r(e, t) {
|
|
1432
|
+
return "[Axios v" + hn + "] Transitional option '" + e + "'" + t + (n ? ". " + n : "");
|
|
1433
|
+
}
|
|
1434
|
+
return (n, i, a) => {
|
|
1435
|
+
if (e === !1) throw new I(r(i, " has been removed" + (t ? " in " + t : "")), I.ERR_DEPRECATED);
|
|
1436
|
+
return t && !gn[i] && (gn[i] = !0, console.warn(r(i, " has been deprecated since v" + t + " and will be removed in the near future"))), e ? e(n, i, a) : !0;
|
|
1437
|
+
};
|
|
1438
|
+
}, q.spelling = function(e) {
|
|
1439
|
+
return (t, n) => (console.warn(`${n} is likely a misspelling of ${e}`), !0);
|
|
1440
|
+
};
|
|
1441
|
+
function _n(e, t, n) {
|
|
1442
|
+
if (typeof e != "object") throw new I("options must be an object", I.ERR_BAD_OPTION_VALUE);
|
|
1443
|
+
let r = Object.keys(e), i = r.length;
|
|
1444
|
+
for (; i-- > 0;) {
|
|
1445
|
+
let a = r[i], o = t[a];
|
|
1446
|
+
if (o) {
|
|
1447
|
+
let t = e[a], n = t === void 0 || o(t, a, e);
|
|
1448
|
+
if (n !== !0) throw new I("option " + a + " must be " + n, I.ERR_BAD_OPTION_VALUE);
|
|
1449
|
+
continue;
|
|
1450
|
+
}
|
|
1451
|
+
if (n !== !0) throw new I("Unknown option " + a, I.ERR_BAD_OPTION);
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
var J = {
|
|
1455
|
+
assertOptions: _n,
|
|
1456
|
+
validators: q
|
|
1457
|
+
}, Y = J.validators, X = class {
|
|
1458
|
+
constructor(e) {
|
|
1459
|
+
this.defaults = e || {}, this.interceptors = {
|
|
1460
|
+
request: new ut(),
|
|
1461
|
+
response: new ut()
|
|
1462
|
+
};
|
|
1463
|
+
}
|
|
1464
|
+
async request(e, t) {
|
|
1465
|
+
try {
|
|
1466
|
+
return await this._request(e, t);
|
|
1467
|
+
} catch (e) {
|
|
1468
|
+
if (e instanceof Error) {
|
|
1469
|
+
let t = {};
|
|
1470
|
+
Error.captureStackTrace ? Error.captureStackTrace(t) : t = /* @__PURE__ */ Error();
|
|
1471
|
+
let n = t.stack ? t.stack.replace(/^.+\n/, "") : "";
|
|
1472
|
+
try {
|
|
1473
|
+
e.stack ? n && !String(e.stack).endsWith(n.replace(/^.+\n.+\n/, "")) && (e.stack += "\n" + n) : e.stack = n;
|
|
1474
|
+
} catch {}
|
|
1475
|
+
}
|
|
1476
|
+
throw e;
|
|
1477
|
+
}
|
|
1478
|
+
}
|
|
1479
|
+
_request(e, t) {
|
|
1480
|
+
typeof e == "string" ? (t ||= {}, t.url = e) : t = e || {}, t = G(this.defaults, t);
|
|
1481
|
+
let { transitional: n, paramsSerializer: r, headers: i } = t;
|
|
1482
|
+
n !== void 0 && J.assertOptions(n, {
|
|
1483
|
+
silentJSONParsing: Y.transitional(Y.boolean),
|
|
1484
|
+
forcedJSONParsing: Y.transitional(Y.boolean),
|
|
1485
|
+
clarifyTimeoutError: Y.transitional(Y.boolean)
|
|
1486
|
+
}, !1), r != null && (F.isFunction(r) ? t.paramsSerializer = { serialize: r } : J.assertOptions(r, {
|
|
1487
|
+
encode: Y.function,
|
|
1488
|
+
serialize: Y.function
|
|
1489
|
+
}, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls === void 0 ? t.allowAbsoluteUrls = !0 : t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls), J.assertOptions(t, {
|
|
1490
|
+
baseUrl: Y.spelling("baseURL"),
|
|
1491
|
+
withXsrfToken: Y.spelling("withXSRFToken")
|
|
1492
|
+
}, !0), t.method = (t.method || this.defaults.method || "get").toLowerCase();
|
|
1493
|
+
let a = i && F.merge(i.common, i[t.method]);
|
|
1494
|
+
i && F.forEach([
|
|
1495
|
+
"delete",
|
|
1496
|
+
"get",
|
|
1497
|
+
"head",
|
|
1498
|
+
"post",
|
|
1499
|
+
"put",
|
|
1500
|
+
"patch",
|
|
1501
|
+
"common"
|
|
1502
|
+
], (e) => {
|
|
1503
|
+
delete i[e];
|
|
1504
|
+
}), t.headers = H.concat(a, i);
|
|
1505
|
+
let o = [], s = !0;
|
|
1506
|
+
this.interceptors.request.forEach(function(e) {
|
|
1507
|
+
typeof e.runWhen == "function" && e.runWhen(t) === !1 || (s &&= e.synchronous, o.unshift(e.fulfilled, e.rejected));
|
|
1508
|
+
});
|
|
1509
|
+
let c = [];
|
|
1510
|
+
this.interceptors.response.forEach(function(e) {
|
|
1511
|
+
c.push(e.fulfilled, e.rejected);
|
|
1512
|
+
});
|
|
1513
|
+
let l, u = 0, d;
|
|
1514
|
+
if (!s) {
|
|
1515
|
+
let e = [mn.bind(this), void 0];
|
|
1516
|
+
for (e.unshift(...o), e.push(...c), d = e.length, l = Promise.resolve(t); u < d;) l = l.then(e[u++], e[u++]);
|
|
1517
|
+
return l;
|
|
1518
|
+
}
|
|
1519
|
+
d = o.length;
|
|
1520
|
+
let f = t;
|
|
1521
|
+
for (; u < d;) {
|
|
1522
|
+
let e = o[u++], t = o[u++];
|
|
1523
|
+
try {
|
|
1524
|
+
f = e(f);
|
|
1525
|
+
} catch (e) {
|
|
1526
|
+
t.call(this, e);
|
|
1527
|
+
break;
|
|
1528
|
+
}
|
|
1529
|
+
}
|
|
1530
|
+
try {
|
|
1531
|
+
l = mn.call(this, f);
|
|
1532
|
+
} catch (e) {
|
|
1533
|
+
return Promise.reject(e);
|
|
1534
|
+
}
|
|
1535
|
+
for (u = 0, d = c.length; u < d;) l = l.then(c[u++], c[u++]);
|
|
1536
|
+
return l;
|
|
1537
|
+
}
|
|
1538
|
+
getUri(e) {
|
|
1539
|
+
return e = G(this.defaults, e), lt(Wt(e.baseURL, e.url, e.allowAbsoluteUrls), e.params, e.paramsSerializer);
|
|
1540
|
+
}
|
|
1541
|
+
};
|
|
1542
|
+
F.forEach([
|
|
1543
|
+
"delete",
|
|
1544
|
+
"get",
|
|
1545
|
+
"head",
|
|
1546
|
+
"options"
|
|
1547
|
+
], function(e) {
|
|
1548
|
+
X.prototype[e] = function(t, n) {
|
|
1549
|
+
return this.request(G(n || {}, {
|
|
1550
|
+
method: e,
|
|
1551
|
+
url: t,
|
|
1552
|
+
data: (n || {}).data
|
|
1553
|
+
}));
|
|
1554
|
+
};
|
|
1555
|
+
}), F.forEach([
|
|
1556
|
+
"post",
|
|
1557
|
+
"put",
|
|
1558
|
+
"patch"
|
|
1559
|
+
], function(e) {
|
|
1560
|
+
function t(t) {
|
|
1561
|
+
return function(n, r, i) {
|
|
1562
|
+
return this.request(G(i || {}, {
|
|
1563
|
+
method: e,
|
|
1564
|
+
headers: t ? { "Content-Type": "multipart/form-data" } : {},
|
|
1565
|
+
url: n,
|
|
1566
|
+
data: r
|
|
1567
|
+
}));
|
|
1568
|
+
};
|
|
1569
|
+
}
|
|
1570
|
+
X.prototype[e] = t(), X.prototype[e + "Form"] = t(!0);
|
|
1571
|
+
});
|
|
1572
|
+
//#endregion
|
|
1573
|
+
//#region ../../../node_modules/axios/lib/cancel/CancelToken.js
|
|
1574
|
+
var vn = class e {
|
|
1575
|
+
constructor(e) {
|
|
1576
|
+
if (typeof e != "function") throw TypeError("executor must be a function.");
|
|
1577
|
+
let t;
|
|
1578
|
+
this.promise = new Promise(function(e) {
|
|
1579
|
+
t = e;
|
|
1580
|
+
});
|
|
1581
|
+
let n = this;
|
|
1582
|
+
this.promise.then((e) => {
|
|
1583
|
+
if (!n._listeners) return;
|
|
1584
|
+
let t = n._listeners.length;
|
|
1585
|
+
for (; t-- > 0;) n._listeners[t](e);
|
|
1586
|
+
n._listeners = null;
|
|
1587
|
+
}), this.promise.then = (e) => {
|
|
1588
|
+
let t, r = new Promise((e) => {
|
|
1589
|
+
n.subscribe(e), t = e;
|
|
1590
|
+
}).then(e);
|
|
1591
|
+
return r.cancel = function() {
|
|
1592
|
+
n.unsubscribe(t);
|
|
1593
|
+
}, r;
|
|
1594
|
+
}, e(function(e, r, i) {
|
|
1595
|
+
n.reason || (n.reason = new U(e, r, i), t(n.reason));
|
|
1596
|
+
});
|
|
1597
|
+
}
|
|
1598
|
+
throwIfRequested() {
|
|
1599
|
+
if (this.reason) throw this.reason;
|
|
1600
|
+
}
|
|
1601
|
+
subscribe(e) {
|
|
1602
|
+
if (this.reason) {
|
|
1603
|
+
e(this.reason);
|
|
1604
|
+
return;
|
|
1605
|
+
}
|
|
1606
|
+
this._listeners ? this._listeners.push(e) : this._listeners = [e];
|
|
1607
|
+
}
|
|
1608
|
+
unsubscribe(e) {
|
|
1609
|
+
if (!this._listeners) return;
|
|
1610
|
+
let t = this._listeners.indexOf(e);
|
|
1611
|
+
t !== -1 && this._listeners.splice(t, 1);
|
|
1612
|
+
}
|
|
1613
|
+
toAbortSignal() {
|
|
1614
|
+
let e = new AbortController(), t = (t) => {
|
|
1615
|
+
e.abort(t);
|
|
1616
|
+
};
|
|
1617
|
+
return this.subscribe(t), e.signal.unsubscribe = () => this.unsubscribe(t), e.signal;
|
|
1618
|
+
}
|
|
1619
|
+
static source() {
|
|
1620
|
+
let t;
|
|
1621
|
+
return {
|
|
1622
|
+
token: new e(function(e) {
|
|
1623
|
+
t = e;
|
|
1624
|
+
}),
|
|
1625
|
+
cancel: t
|
|
1626
|
+
};
|
|
1627
|
+
}
|
|
1628
|
+
};
|
|
1629
|
+
//#endregion
|
|
1630
|
+
//#region ../../../node_modules/axios/lib/helpers/spread.js
|
|
1631
|
+
function yn(e) {
|
|
1632
|
+
return function(t) {
|
|
1633
|
+
return e.apply(null, t);
|
|
1634
|
+
};
|
|
1635
|
+
}
|
|
1636
|
+
//#endregion
|
|
1637
|
+
//#region ../../../node_modules/axios/lib/helpers/isAxiosError.js
|
|
1638
|
+
function bn(e) {
|
|
1639
|
+
return F.isObject(e) && e.isAxiosError === !0;
|
|
1640
|
+
}
|
|
1641
|
+
//#endregion
|
|
1642
|
+
//#region ../../../node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
1643
|
+
var xn = {
|
|
1644
|
+
Continue: 100,
|
|
1645
|
+
SwitchingProtocols: 101,
|
|
1646
|
+
Processing: 102,
|
|
1647
|
+
EarlyHints: 103,
|
|
1648
|
+
Ok: 200,
|
|
1649
|
+
Created: 201,
|
|
1650
|
+
Accepted: 202,
|
|
1651
|
+
NonAuthoritativeInformation: 203,
|
|
1652
|
+
NoContent: 204,
|
|
1653
|
+
ResetContent: 205,
|
|
1654
|
+
PartialContent: 206,
|
|
1655
|
+
MultiStatus: 207,
|
|
1656
|
+
AlreadyReported: 208,
|
|
1657
|
+
ImUsed: 226,
|
|
1658
|
+
MultipleChoices: 300,
|
|
1659
|
+
MovedPermanently: 301,
|
|
1660
|
+
Found: 302,
|
|
1661
|
+
SeeOther: 303,
|
|
1662
|
+
NotModified: 304,
|
|
1663
|
+
UseProxy: 305,
|
|
1664
|
+
Unused: 306,
|
|
1665
|
+
TemporaryRedirect: 307,
|
|
1666
|
+
PermanentRedirect: 308,
|
|
1667
|
+
BadRequest: 400,
|
|
1668
|
+
Unauthorized: 401,
|
|
1669
|
+
PaymentRequired: 402,
|
|
1670
|
+
Forbidden: 403,
|
|
1671
|
+
NotFound: 404,
|
|
1672
|
+
MethodNotAllowed: 405,
|
|
1673
|
+
NotAcceptable: 406,
|
|
1674
|
+
ProxyAuthenticationRequired: 407,
|
|
1675
|
+
RequestTimeout: 408,
|
|
1676
|
+
Conflict: 409,
|
|
1677
|
+
Gone: 410,
|
|
1678
|
+
LengthRequired: 411,
|
|
1679
|
+
PreconditionFailed: 412,
|
|
1680
|
+
PayloadTooLarge: 413,
|
|
1681
|
+
UriTooLong: 414,
|
|
1682
|
+
UnsupportedMediaType: 415,
|
|
1683
|
+
RangeNotSatisfiable: 416,
|
|
1684
|
+
ExpectationFailed: 417,
|
|
1685
|
+
ImATeapot: 418,
|
|
1686
|
+
MisdirectedRequest: 421,
|
|
1687
|
+
UnprocessableEntity: 422,
|
|
1688
|
+
Locked: 423,
|
|
1689
|
+
FailedDependency: 424,
|
|
1690
|
+
TooEarly: 425,
|
|
1691
|
+
UpgradeRequired: 426,
|
|
1692
|
+
PreconditionRequired: 428,
|
|
1693
|
+
TooManyRequests: 429,
|
|
1694
|
+
RequestHeaderFieldsTooLarge: 431,
|
|
1695
|
+
UnavailableForLegalReasons: 451,
|
|
1696
|
+
InternalServerError: 500,
|
|
1697
|
+
NotImplemented: 501,
|
|
1698
|
+
BadGateway: 502,
|
|
1699
|
+
ServiceUnavailable: 503,
|
|
1700
|
+
GatewayTimeout: 504,
|
|
1701
|
+
HttpVersionNotSupported: 505,
|
|
1702
|
+
VariantAlsoNegotiates: 506,
|
|
1703
|
+
InsufficientStorage: 507,
|
|
1704
|
+
LoopDetected: 508,
|
|
1705
|
+
NotExtended: 510,
|
|
1706
|
+
NetworkAuthenticationRequired: 511,
|
|
1707
|
+
WebServerIsDown: 521,
|
|
1708
|
+
ConnectionTimedOut: 522,
|
|
1709
|
+
OriginIsUnreachable: 523,
|
|
1710
|
+
TimeoutOccurred: 524,
|
|
1711
|
+
SslHandshakeFailed: 525,
|
|
1712
|
+
InvalidSslCertificate: 526
|
|
1713
|
+
};
|
|
1714
|
+
Object.entries(xn).forEach(([e, t]) => {
|
|
1715
|
+
xn[t] = e;
|
|
1716
|
+
});
|
|
1717
|
+
//#endregion
|
|
1718
|
+
//#region ../../../node_modules/axios/lib/axios.js
|
|
1719
|
+
function Sn(e) {
|
|
1720
|
+
let t = new X(e), n = te(X.prototype.request, t);
|
|
1721
|
+
return F.extend(n, X.prototype, t, { allOwnKeys: !0 }), F.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(t) {
|
|
1722
|
+
return Sn(G(e, t));
|
|
1723
|
+
}, n;
|
|
1724
|
+
}
|
|
1725
|
+
var Z = Sn(z);
|
|
1726
|
+
Z.Axios = X, Z.CanceledError = U, Z.CancelToken = vn, Z.isCancel = Nt, Z.VERSION = hn, Z.toFormData = L, Z.AxiosError = I, Z.Cancel = Z.CanceledError, Z.all = function(e) {
|
|
1727
|
+
return Promise.all(e);
|
|
1728
|
+
}, Z.spread = yn, Z.isAxiosError = bn, Z.mergeConfig = G, Z.AxiosHeaders = H, Z.formToJSON = (e) => St(F.isHTMLForm(e) ? new FormData(e) : e), Z.getAdapter = fn.getAdapter, Z.HttpStatusCode = xn, Z.default = Z;
|
|
1729
|
+
//#endregion
|
|
1730
|
+
//#region ../../core/src/lib/providers/http/HttpClient.ts
|
|
1731
|
+
var Cn = typeof window < "u", wn = class {
|
|
1732
|
+
constructor(e = {}) {
|
|
1733
|
+
this.requestStrategy = async (e, t) => {
|
|
1734
|
+
await t(e);
|
|
1735
|
+
}, this.responseStrategy = async (e, t) => {
|
|
1736
|
+
await t(e);
|
|
1737
|
+
}, this.defaultBaseUrl = e.defaultBaseUrl, this.useGlobalSingletons = e.useGlobalSingletons ?? !1, this.globalQueryClientKey = e.globalQueryClientKey || "__STORE_QUERY_CLIENT__", this.globalAxiosKey = e.globalAxiosKey || "__STORE_API_CLIENT__", this.createQueryClientImpl = e.createQueryClient || (() => new s({ defaultOptions: { queries: {
|
|
1738
|
+
refetchOnWindowFocus: !0,
|
|
1739
|
+
refetchOnMount: !1,
|
|
1740
|
+
retry: 3,
|
|
1741
|
+
staleTime: 1e3 * 60 * 5
|
|
1742
|
+
} } })), this.createAxiosImpl = e.createAxios || ((e) => {
|
|
1743
|
+
let t = Z.create({
|
|
1744
|
+
baseURL: e || this.defaultBaseUrl,
|
|
1745
|
+
withCredentials: !0
|
|
1746
|
+
});
|
|
1747
|
+
return this.configureAxios(t);
|
|
1748
|
+
});
|
|
1749
|
+
}
|
|
1750
|
+
getQueryClient(e) {
|
|
1751
|
+
if (Cn) {
|
|
1752
|
+
if (e?.client) return e.client;
|
|
1753
|
+
if (this.useGlobalSingletons) {
|
|
1754
|
+
let e = globalThis, t = e[this.globalQueryClientKey];
|
|
1755
|
+
if (t) return t;
|
|
1756
|
+
let n = this.createQueryClientImpl();
|
|
1757
|
+
return e[this.globalQueryClientKey] = n, n;
|
|
1758
|
+
}
|
|
1759
|
+
return this.queryClientSingleton ||= this.createQueryClientImpl(), this.queryClientSingleton;
|
|
1760
|
+
}
|
|
1761
|
+
return this.createQueryClientImpl();
|
|
1762
|
+
}
|
|
1763
|
+
getAxiosInstance() {
|
|
1764
|
+
if (Cn) {
|
|
1765
|
+
if (this.useGlobalSingletons) {
|
|
1766
|
+
let e = globalThis, t = e[this.globalAxiosKey];
|
|
1767
|
+
if (t) return t;
|
|
1768
|
+
let n = this.configureAxios(this.createAxiosImpl());
|
|
1769
|
+
return e[this.globalAxiosKey] = n, n;
|
|
1770
|
+
}
|
|
1771
|
+
return this.axiosSingleton ||= this.configureAxios(this.createAxiosImpl()), this.axiosSingleton;
|
|
1772
|
+
}
|
|
1773
|
+
return this.configureAxios(this.createAxiosImpl());
|
|
1774
|
+
}
|
|
1775
|
+
setDefaultApiBaseUrl(e) {
|
|
1776
|
+
this.defaultBaseUrl = e;
|
|
1777
|
+
}
|
|
1778
|
+
async setApiUrl(e) {
|
|
1779
|
+
let t = this.getAxiosInstance();
|
|
1780
|
+
t.defaults.baseURL = e;
|
|
1781
|
+
}
|
|
1782
|
+
setRequestInterceptorStrategy(e) {
|
|
1783
|
+
this.requestStrategy = e, this.axiosSingleton &&= this.configureAxios(this.axiosSingleton);
|
|
1784
|
+
}
|
|
1785
|
+
setResponseInterceptorStrategy(e) {
|
|
1786
|
+
this.responseStrategy = e, this.axiosSingleton &&= this.configureAxios(this.axiosSingleton);
|
|
1787
|
+
}
|
|
1788
|
+
getAxiosProxy() {
|
|
1789
|
+
return new Proxy({}, {
|
|
1790
|
+
get: (e, t) => {
|
|
1791
|
+
let n = this.getAxiosInstance(), r = Reflect.get(n, t);
|
|
1792
|
+
return typeof r == "function" ? r.bind(n) : r;
|
|
1793
|
+
},
|
|
1794
|
+
set: (e, t, n) => Reflect.set(this.getAxiosInstance(), t, n)
|
|
1795
|
+
});
|
|
1796
|
+
}
|
|
1797
|
+
getQueryClientProxy() {
|
|
1798
|
+
return new Proxy({}, {
|
|
1799
|
+
get: (e, t) => {
|
|
1800
|
+
let n = this.getQueryClient(), r = Reflect.get(n, t);
|
|
1801
|
+
return typeof r == "function" ? r.bind(n) : r;
|
|
1802
|
+
},
|
|
1803
|
+
set: (e, t, n) => Reflect.set(this.getQueryClient(), t, n)
|
|
1804
|
+
});
|
|
1805
|
+
}
|
|
1806
|
+
configureAxios(e) {
|
|
1807
|
+
return e.interceptors.request.clear(), e.interceptors.response.clear(), e.interceptors.request.use(async (e) => (await this.requestStrategy(e, async (e) => {}), e)), e.interceptors.response.use(async (e) => (await this.responseStrategy(e, async (e) => {}), e)), e;
|
|
1808
|
+
}
|
|
1809
|
+
}, Tn = "__HAUS_NAMED_HTTP_CLIENTS__", En = typeof window < "u", Dn = "default";
|
|
1810
|
+
function On() {
|
|
1811
|
+
if (En) {
|
|
1812
|
+
let e = globalThis, t = e[Tn];
|
|
1813
|
+
if (t) return t;
|
|
1814
|
+
let n = {};
|
|
1815
|
+
return e[Tn] = n, n;
|
|
1816
|
+
}
|
|
1817
|
+
let e = On;
|
|
1818
|
+
return e._ssr ||= {}, e._ssr;
|
|
1819
|
+
}
|
|
1820
|
+
function kn(e = {}) {
|
|
1821
|
+
return new wn({
|
|
1822
|
+
createQueryClient: e.createQueryClient || (() => new s({ defaultOptions: { queries: {
|
|
1823
|
+
refetchOnWindowFocus: !0,
|
|
1824
|
+
refetchOnMount: !1,
|
|
1825
|
+
retry: 3,
|
|
1826
|
+
staleTime: 1e3 * 60 * 5
|
|
1827
|
+
} } })),
|
|
1828
|
+
createAxios: e.createAxios || ((t) => Z.create({
|
|
1829
|
+
baseURL: t ?? e.defaultBaseUrl,
|
|
1830
|
+
withCredentials: !0
|
|
1831
|
+
})),
|
|
1832
|
+
defaultBaseUrl: e.defaultBaseUrl,
|
|
1833
|
+
useGlobalSingletons: e.useGlobalSingletons,
|
|
1834
|
+
globalQueryClientKey: e.globalQueryClientKey,
|
|
1835
|
+
globalAxiosKey: e.globalAxiosKey
|
|
1836
|
+
});
|
|
1837
|
+
}
|
|
1838
|
+
function An(e, t = {}, n = {}) {
|
|
1839
|
+
let r = On();
|
|
1840
|
+
if (r[e] && !n.overwrite) return r[e];
|
|
1841
|
+
let i = kn(t);
|
|
1842
|
+
return r[e] = i, i;
|
|
1843
|
+
}
|
|
1844
|
+
function jn(e, t = {}) {
|
|
1845
|
+
let n = On();
|
|
1846
|
+
return n[e] || (n[e] = kn(t)), n[e];
|
|
1847
|
+
}
|
|
1848
|
+
An(Dn, {
|
|
1849
|
+
useGlobalSingletons: !0,
|
|
1850
|
+
globalQueryClientKey: "__STORE_QUERY_CLIENT__",
|
|
1851
|
+
globalAxiosKey: "__STORE_API_CLIENT__"
|
|
1852
|
+
}, { overwrite: !1 });
|
|
1853
|
+
//#endregion
|
|
1854
|
+
//#region ../../core/src/lib/providers/http/genericClient.ts
|
|
1855
|
+
var Mn = jn(Dn, {
|
|
1856
|
+
createQueryClient: () => new s({ defaultOptions: { queries: {
|
|
1857
|
+
refetchOnWindowFocus: !0,
|
|
1858
|
+
refetchOnMount: !1,
|
|
1859
|
+
retry: 3,
|
|
1860
|
+
staleTime: 1e3 * 60 * 5
|
|
1861
|
+
} } }),
|
|
1862
|
+
createAxios: (e) => Z.create({
|
|
1863
|
+
baseURL: e,
|
|
1864
|
+
withCredentials: !0
|
|
1865
|
+
})
|
|
1866
|
+
});
|
|
1867
|
+
Mn.getAxiosProxy(), Mn.getQueryClientProxy(), e(), typeof navigator < "u" && navigator.product;
|
|
1868
|
+
//#endregion
|
|
1869
|
+
//#region ../../../node_modules/gql-query-builder/build/OperationType.js
|
|
1870
|
+
var Q = /* @__PURE__ */ t(((e) => {
|
|
1871
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
1872
|
+
var t;
|
|
1873
|
+
(function(e) {
|
|
1874
|
+
e.Mutation = "mutation", e.Query = "query", e.Subscription = "subscription";
|
|
1875
|
+
})(t ||= {}), e.default = t;
|
|
1876
|
+
})), Nn = /* @__PURE__ */ t(((e) => {
|
|
1877
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.isNestedField = void 0;
|
|
1878
|
+
function t(e) {
|
|
1879
|
+
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");
|
|
1880
|
+
}
|
|
1881
|
+
e.isNestedField = t;
|
|
1882
|
+
})), $ = /* @__PURE__ */ t(((e) => {
|
|
1883
|
+
var t = e && e.__assign || function() {
|
|
1884
|
+
return t = Object.assign || function(e) {
|
|
1885
|
+
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
1886
|
+
return e;
|
|
1887
|
+
}, t.apply(this, arguments);
|
|
1888
|
+
};
|
|
1889
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
1890
|
+
var n = Nn();
|
|
1891
|
+
e.default = function() {
|
|
1892
|
+
function e() {}
|
|
1893
|
+
return e.resolveVariables = function(n) {
|
|
1894
|
+
for (var r = {}, i = 0, a = n; i < a.length; i++) {
|
|
1895
|
+
var o = a[i], s = o.variables, c = o.fields;
|
|
1896
|
+
r = t(t(t({}, r), s), c && e.getNestedVariables(c) || {});
|
|
1897
|
+
}
|
|
1898
|
+
return r;
|
|
1899
|
+
}, e.queryDataNameAndArgumentMap = function(e) {
|
|
1900
|
+
return e && Object.keys(e).length ? `(${Object.entries(e).reduce(function(e, t, n) {
|
|
1901
|
+
var r = t[0], i = t[1];
|
|
1902
|
+
return `${e}${n === 0 ? "" : ", "}${i && i.name ? i.name : r}: \$${r}`;
|
|
1903
|
+
}, "")})` : "";
|
|
1904
|
+
}, e.queryFieldsMap = function(t) {
|
|
1905
|
+
var r = this;
|
|
1906
|
+
return t ? t.map(function(t) {
|
|
1907
|
+
if ((0, n.isNestedField)(t)) return e.queryNestedFieldMap(t);
|
|
1908
|
+
if (typeof t == "object") {
|
|
1909
|
+
var i = "";
|
|
1910
|
+
return Object.entries(t).forEach(function(e, t, n) {
|
|
1911
|
+
var a = e[0], o = e[1];
|
|
1912
|
+
i += `${a} ${o.length > 0 ? "{ " + r.queryFieldsMap(o) + " }" : ""}`, t < n.length - 1 && (i += ", ");
|
|
1913
|
+
}), i;
|
|
1914
|
+
} else return `${t}`;
|
|
1915
|
+
}).join(", ") : "";
|
|
1916
|
+
}, e.operationOrAlias = function(e) {
|
|
1917
|
+
return typeof e == "string" ? e : `${e.alias}: ${e.name}`;
|
|
1918
|
+
}, e.isFragment = function(e) {
|
|
1919
|
+
return e?.fragment === !0;
|
|
1920
|
+
}, e.operationOrFragment = function(t) {
|
|
1921
|
+
return e.isFragment(t) ? t.operation : e.operationOrAlias(t.operation);
|
|
1922
|
+
}, e.getFragment = function(t) {
|
|
1923
|
+
return e.isFragment(t) ? "... on " : "";
|
|
1924
|
+
}, e.queryNestedFieldMap = function(t) {
|
|
1925
|
+
return `${e.getFragment(t)}${e.operationOrFragment(t)} ${this.isFragment(t) ? "" : this.queryDataNameAndArgumentMap(t.variables)} ${t.fields.length > 0 ? "{ " + this.queryFieldsMap(t.fields) + " }" : ""}`;
|
|
1926
|
+
}, e.queryVariablesMap = function(t, n) {
|
|
1927
|
+
var r = {}, i = function(e) {
|
|
1928
|
+
e && Object.keys(e).map(function(t) {
|
|
1929
|
+
r[t] = typeof e[t] == "object" ? e[t].value : e[t];
|
|
1930
|
+
});
|
|
1931
|
+
};
|
|
1932
|
+
return i(t), n && typeof n == "object" && i(e.getNestedVariables(n)), r;
|
|
1933
|
+
}, e.getNestedVariables = function(e) {
|
|
1934
|
+
var r = {};
|
|
1935
|
+
function i(e) {
|
|
1936
|
+
return e?.forEach(function(e) {
|
|
1937
|
+
if ((0, n.isNestedField)(e)) r = t(t(t({}, e.variables), r), e.fields && i(e.fields));
|
|
1938
|
+
else if (typeof e == "object") for (var a = 0, o = Object.entries(e); a < o.length; a++) {
|
|
1939
|
+
var s = o[a][1];
|
|
1940
|
+
i(s);
|
|
1941
|
+
}
|
|
1942
|
+
}), r;
|
|
1943
|
+
}
|
|
1944
|
+
return i(e), r;
|
|
1945
|
+
}, e.queryDataType = function(e) {
|
|
1946
|
+
var t = "String", n = typeof e == "object" ? e.value : e;
|
|
1947
|
+
if (e?.type != null) t = e.type;
|
|
1948
|
+
else {
|
|
1949
|
+
var r = Array.isArray(n) ? n[0] : n;
|
|
1950
|
+
switch (typeof r) {
|
|
1951
|
+
case "object":
|
|
1952
|
+
t = "Object";
|
|
1953
|
+
break;
|
|
1954
|
+
case "boolean":
|
|
1955
|
+
t = "Boolean";
|
|
1956
|
+
break;
|
|
1957
|
+
case "number":
|
|
1958
|
+
t = r % 1 == 0 ? "Int" : "Float";
|
|
1959
|
+
break;
|
|
1960
|
+
}
|
|
1961
|
+
}
|
|
1962
|
+
return typeof e == "object" && (e.list === !0 ? t = `[${t}]` : Array.isArray(e.list) && (t = `[${t}${e.list[0] ? "!" : ""}]`), e.required && (t += "!")), t;
|
|
1963
|
+
}, e;
|
|
1964
|
+
}();
|
|
1965
|
+
})), Pn = /* @__PURE__ */ t(((e) => {
|
|
1966
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
1967
|
+
var t = Q(), n = $();
|
|
1968
|
+
e.default = function() {
|
|
1969
|
+
function e(e) {
|
|
1970
|
+
Array.isArray(e) ? this.variables = n.default.resolveVariables(e) : (this.variables = e.variables, this.fields = e.fields, this.operation = e.operation);
|
|
1971
|
+
}
|
|
1972
|
+
return e.prototype.mutationBuilder = function() {
|
|
1973
|
+
return this.operationWrapperTemplate(this.variables, this.operationTemplate(this.operation));
|
|
1974
|
+
}, e.prototype.mutationsBuilder = function(e) {
|
|
1975
|
+
var t = this, r = e.map(function(e) {
|
|
1976
|
+
return t.operation = e.operation, t.variables = e.variables, t.fields = e.fields, t.operationTemplate(e.operation);
|
|
1977
|
+
});
|
|
1978
|
+
return this.operationWrapperTemplate(n.default.resolveVariables(e), r.join("\n "));
|
|
1979
|
+
}, e.prototype.queryDataNameAndArgumentMap = function() {
|
|
1980
|
+
return this.variables && Object.keys(this.variables).length ? `(${Object.keys(this.variables).reduce(function(e, t, n) {
|
|
1981
|
+
return `${e}${n === 0 ? "" : ", "}${t}: \$${t}`;
|
|
1982
|
+
}, "")})` : "";
|
|
1983
|
+
}, e.prototype.queryDataArgumentAndTypeMap = function(e) {
|
|
1984
|
+
return Object.keys(e).length ? `(${Object.keys(e).reduce(function(t, r, i) {
|
|
1985
|
+
return `${t}${i === 0 ? "" : ", "}\$${r}: ${n.default.queryDataType(e[r])}`;
|
|
1986
|
+
}, "")})` : "";
|
|
1987
|
+
}, e.prototype.operationWrapperTemplate = function(e, r) {
|
|
1988
|
+
var i = typeof this.operation == "string" ? this.operation : this.operation.name;
|
|
1989
|
+
return {
|
|
1990
|
+
query: `${t.default.Mutation} ${i.charAt(0).toUpperCase() + i.slice(1)} ${this.queryDataArgumentAndTypeMap(e)} {
|
|
1991
|
+
${r}
|
|
1992
|
+
}`,
|
|
1993
|
+
variables: n.default.queryVariablesMap(e)
|
|
1994
|
+
};
|
|
1995
|
+
}, e.prototype.operationTemplate = function(e) {
|
|
1996
|
+
return `${typeof e == "string" ? e : `${e.alias}: ${e.name}`} ${this.queryDataNameAndArgumentMap()} {
|
|
1997
|
+
${this.queryFieldsMap(this.fields)}
|
|
1998
|
+
}`;
|
|
1999
|
+
}, e.prototype.queryFieldsMap = function(e) {
|
|
2000
|
+
var t = this;
|
|
2001
|
+
return Array.isArray(e) ? e.map(function(e) {
|
|
2002
|
+
return typeof e == "object" ? `${Object.keys(e)[0]} { ${t.queryFieldsMap(Object.values(e)[0])} }` : `${e}`;
|
|
2003
|
+
}).join(", ") : "";
|
|
2004
|
+
}, e;
|
|
2005
|
+
}();
|
|
2006
|
+
})), Fn = /* @__PURE__ */ t(((e) => {
|
|
2007
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2008
|
+
var t = Q(), n = $();
|
|
2009
|
+
e.default = function() {
|
|
2010
|
+
function e(e) {
|
|
2011
|
+
this.queryDataType = function(e) {
|
|
2012
|
+
var t = "String", n = typeof e == "object" ? e.value : e;
|
|
2013
|
+
if (e.type !== void 0) t = e.type;
|
|
2014
|
+
else switch (typeof n) {
|
|
2015
|
+
case "object":
|
|
2016
|
+
t = "Object";
|
|
2017
|
+
break;
|
|
2018
|
+
case "boolean":
|
|
2019
|
+
t = "Boolean";
|
|
2020
|
+
break;
|
|
2021
|
+
case "number":
|
|
2022
|
+
t = n % 1 == 0 ? "Int" : "Float";
|
|
2023
|
+
break;
|
|
2024
|
+
}
|
|
2025
|
+
return typeof e == "object" && e.required && (t += "!"), t;
|
|
2026
|
+
}, Array.isArray(e) ? this.variables = n.default.resolveVariables(e) : (this.variables = e.variables, this.fields = e.fields || [], this.operation = e.operation);
|
|
2027
|
+
}
|
|
2028
|
+
return e.prototype.queryBuilder = function() {
|
|
2029
|
+
return this.operationWrapperTemplate(this.operationTemplate());
|
|
2030
|
+
}, e.prototype.queriesBuilder = function(e) {
|
|
2031
|
+
var t = this;
|
|
2032
|
+
return this.operationWrapperTemplate(function() {
|
|
2033
|
+
var n = [];
|
|
2034
|
+
return e.forEach(function(e) {
|
|
2035
|
+
e && (t.operation = e.operation, t.fields = e.fields, t.variables = e.variables, n.push(t.operationTemplate()));
|
|
2036
|
+
}), n.join(" ");
|
|
2037
|
+
}());
|
|
2038
|
+
}, e.prototype.queryDataNameAndArgumentMap = function() {
|
|
2039
|
+
return this.variables && Object.keys(this.variables).length ? `(${Object.keys(this.variables).reduce(function(e, t, n) {
|
|
2040
|
+
return `${e}${n === 0 ? "" : ", "}${t}: \$${t}`;
|
|
2041
|
+
}, "")})` : "";
|
|
2042
|
+
}, e.prototype.queryDataArgumentAndTypeMap = function() {
|
|
2043
|
+
var e = this;
|
|
2044
|
+
return this.variables && Object.keys(this.variables).length ? `(${Object.keys(this.variables).reduce(function(t, n, r) {
|
|
2045
|
+
return `${t}${r === 0 ? "" : ", "}\$${n}: ${e.queryDataType(e.variables[n])}`;
|
|
2046
|
+
}, "")})` : "";
|
|
2047
|
+
}, e.prototype.operationWrapperTemplate = function(e) {
|
|
2048
|
+
var r = typeof this.operation == "string" ? this.operation : this.operation.name;
|
|
2049
|
+
return {
|
|
2050
|
+
query: `${t.default.Query} ${r.charAt(0).toUpperCase()}${r.slice(1)} ${this.queryDataArgumentAndTypeMap()} { ${e} }`,
|
|
2051
|
+
variables: n.default.queryVariablesMap(this.variables)
|
|
2052
|
+
};
|
|
2053
|
+
}, e.prototype.operationTemplate = function() {
|
|
2054
|
+
return `${typeof this.operation == "string" ? this.operation : `${this.operation.alias}: ${this.operation.name}`} ${this.queryDataNameAndArgumentMap()} { nodes { ${n.default.queryFieldsMap(this.fields)} } }`;
|
|
2055
|
+
}, e;
|
|
2056
|
+
}();
|
|
2057
|
+
})), In = /* @__PURE__ */ t(((e) => {
|
|
2058
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2059
|
+
var t = Pn();
|
|
2060
|
+
e.default = {
|
|
2061
|
+
DefaultAppSyncQueryAdapter: Fn().default,
|
|
2062
|
+
DefaultAppSyncMutationAdapter: t.default
|
|
2063
|
+
};
|
|
2064
|
+
})), Ln = /* @__PURE__ */ t(((e) => {
|
|
2065
|
+
var t = e && e.__assign || function() {
|
|
2066
|
+
return t = Object.assign || function(e) {
|
|
2067
|
+
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
2068
|
+
return e;
|
|
2069
|
+
}, t.apply(this, arguments);
|
|
2070
|
+
};
|
|
2071
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2072
|
+
var n = Q(), r = $();
|
|
2073
|
+
e.default = function() {
|
|
2074
|
+
function e(e, t) {
|
|
2075
|
+
var n = this;
|
|
2076
|
+
Array.isArray(e) ? this.variables = r.default.resolveVariables(e) : (this.variables = e.variables, this.fields = e.fields, this.operation = e.operation), this.config = { operationName: "" }, t && Object.entries(t).forEach(function(e) {
|
|
2077
|
+
var t = e[0], r = e[1];
|
|
2078
|
+
n.config[t] = r;
|
|
2079
|
+
});
|
|
2080
|
+
}
|
|
2081
|
+
return e.prototype.mutationBuilder = function() {
|
|
2082
|
+
return this.operationWrapperTemplate(n.default.Mutation, this.variables, this.operationTemplate(this.operation));
|
|
2083
|
+
}, e.prototype.mutationsBuilder = function(e) {
|
|
2084
|
+
var t = this, i = e.map(function(e) {
|
|
2085
|
+
return t.operation = e.operation, t.variables = e.variables, t.fields = e.fields, t.operationTemplate(e.operation);
|
|
2086
|
+
});
|
|
2087
|
+
return this.operationWrapperTemplate(n.default.Mutation, r.default.resolveVariables(e), i.join("\n "));
|
|
2088
|
+
}, e.prototype.queryDataArgumentAndTypeMap = function(e) {
|
|
2089
|
+
return this.fields && typeof this.fields == "object" && (e = t(t({}, r.default.getNestedVariables(this.fields)), e)), e && Object.keys(e).length > 0 ? `(${Object.keys(e).reduce(function(t, n, i) {
|
|
2090
|
+
return `${t}${i === 0 ? "" : ", "}\$${n}: ${r.default.queryDataType(e[n])}`;
|
|
2091
|
+
}, "")})` : "";
|
|
2092
|
+
}, e.prototype.operationWrapperTemplate = function(e, t, n) {
|
|
2093
|
+
var i = `${e} ${this.queryDataArgumentAndTypeMap(t)} {
|
|
2094
|
+
${n}
|
|
2095
|
+
}`;
|
|
2096
|
+
return this.config.operationName && (i = i.replace("mutation", `mutation ${this.config.operationName}`)), {
|
|
2097
|
+
query: i,
|
|
2098
|
+
variables: r.default.queryVariablesMap(t, this.fields)
|
|
2099
|
+
};
|
|
2100
|
+
}, e.prototype.operationTemplate = function(e) {
|
|
2101
|
+
return `${typeof e == "string" ? e : `${e.alias}: ${e.name}`} ${r.default.queryDataNameAndArgumentMap(this.variables)} ${this.fields && this.fields.length > 0 ? `{
|
|
2102
|
+
${r.default.queryFieldsMap(this.fields)}
|
|
2103
|
+
}` : ""}`;
|
|
2104
|
+
}, e;
|
|
2105
|
+
}();
|
|
2106
|
+
})), Rn = /* @__PURE__ */ t(((e) => {
|
|
2107
|
+
var t = e && e.__assign || function() {
|
|
2108
|
+
return t = Object.assign || function(e) {
|
|
2109
|
+
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
2110
|
+
return e;
|
|
2111
|
+
}, t.apply(this, arguments);
|
|
2112
|
+
};
|
|
2113
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2114
|
+
var n = Q(), r = $();
|
|
2115
|
+
e.default = function() {
|
|
2116
|
+
function e(e, t) {
|
|
2117
|
+
var n = this;
|
|
2118
|
+
this.config = { operationName: "" }, t && Object.entries(t).forEach(function(e) {
|
|
2119
|
+
var t = e[0], r = e[1];
|
|
2120
|
+
n.config[t] = r;
|
|
2121
|
+
}), Array.isArray(e) ? this.variables = r.default.resolveVariables(e) : (this.variables = e.variables, this.fields = e.fields || [], this.operation = e.operation);
|
|
2122
|
+
}
|
|
2123
|
+
return e.prototype.queryBuilder = function() {
|
|
2124
|
+
return this.operationWrapperTemplate(this.operationTemplate(this.variables));
|
|
2125
|
+
}, e.prototype.queriesBuilder = function(e) {
|
|
2126
|
+
var t = this;
|
|
2127
|
+
return this.operationWrapperTemplate(function() {
|
|
2128
|
+
var n = [];
|
|
2129
|
+
return e.forEach(function(e) {
|
|
2130
|
+
e && (t.operation = e.operation, t.fields = e.fields, n.push(t.operationTemplate(e.variables)));
|
|
2131
|
+
}), n.join(" ");
|
|
2132
|
+
}());
|
|
2133
|
+
}, e.prototype.queryDataArgumentAndTypeMap = function() {
|
|
2134
|
+
var e = this.variables;
|
|
2135
|
+
return this.fields && typeof this.fields == "object" && (e = t(t({}, r.default.getNestedVariables(this.fields)), e)), e && Object.keys(e).length > 0 ? `(${Object.keys(e).reduce(function(t, n, i) {
|
|
2136
|
+
return `${t}${i === 0 ? "" : ", "}\$${n}: ${r.default.queryDataType(e[n])}`;
|
|
2137
|
+
}, "")})` : "";
|
|
2138
|
+
}, e.prototype.operationWrapperTemplate = function(e) {
|
|
2139
|
+
var t = `${n.default.Query} ${this.queryDataArgumentAndTypeMap()} { ${e} }`;
|
|
2140
|
+
return t = t.replace("query", `query${this.config.operationName === "" ? "" : " " + this.config.operationName}`), {
|
|
2141
|
+
query: t,
|
|
2142
|
+
variables: r.default.queryVariablesMap(this.variables, this.fields)
|
|
2143
|
+
};
|
|
2144
|
+
}, e.prototype.operationTemplate = function(e) {
|
|
2145
|
+
return `${typeof this.operation == "string" ? this.operation : `${this.operation.alias}: ${this.operation.name}`} ${e ? r.default.queryDataNameAndArgumentMap(e) : ""} ${this.fields && this.fields.length > 0 ? "{ " + r.default.queryFieldsMap(this.fields) + " }" : ""}`;
|
|
2146
|
+
}, e;
|
|
2147
|
+
}();
|
|
2148
|
+
})), zn = /* @__PURE__ */ t(((e) => {
|
|
2149
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2150
|
+
var t = Q(), n = $();
|
|
2151
|
+
e.default = function() {
|
|
2152
|
+
function e(e) {
|
|
2153
|
+
Array.isArray(e) ? this.variables = n.default.resolveVariables(e) : (this.variables = e.variables, this.fields = e.fields, this.operation = e.operation);
|
|
2154
|
+
}
|
|
2155
|
+
return e.prototype.subscriptionBuilder = function() {
|
|
2156
|
+
return this.operationWrapperTemplate(t.default.Subscription, this.variables, this.operationTemplate(this.operation));
|
|
2157
|
+
}, e.prototype.subscriptionsBuilder = function(e) {
|
|
2158
|
+
var r = this, i = e.map(function(e) {
|
|
2159
|
+
return r.operation = e.operation, r.variables = e.variables, r.fields = e.fields, r.operationTemplate(e.operation);
|
|
2160
|
+
});
|
|
2161
|
+
return this.operationWrapperTemplate(t.default.Subscription, n.default.resolveVariables(e), i.join("\n "));
|
|
2162
|
+
}, e.prototype.queryDataNameAndArgumentMap = function() {
|
|
2163
|
+
return this.variables && Object.keys(this.variables).length ? `(${Object.keys(this.variables).reduce(function(e, t, n) {
|
|
2164
|
+
return `${e}${n === 0 ? "" : ", "}${t}: \$${t}`;
|
|
2165
|
+
}, "")})` : "";
|
|
2166
|
+
}, e.prototype.queryDataArgumentAndTypeMap = function(e) {
|
|
2167
|
+
return Object.keys(e).length ? `(${Object.keys(e).reduce(function(t, r, i) {
|
|
2168
|
+
return `${t}${i === 0 ? "" : ", "}\$${r}: ${n.default.queryDataType(e[r])}`;
|
|
2169
|
+
}, "")})` : "";
|
|
2170
|
+
}, e.prototype.operationWrapperTemplate = function(e, t, r) {
|
|
2171
|
+
return {
|
|
2172
|
+
query: `${e} ${this.queryDataArgumentAndTypeMap(t)} {
|
|
2173
|
+
${r}
|
|
2174
|
+
}`,
|
|
2175
|
+
variables: n.default.queryVariablesMap(t)
|
|
2176
|
+
};
|
|
2177
|
+
}, e.prototype.operationTemplate = function(e) {
|
|
2178
|
+
return `${typeof this.operation == "string" ? this.operation : `${this.operation.alias}: ${this.operation.name}`} ${this.queryDataNameAndArgumentMap()} {
|
|
2179
|
+
${this.queryFieldsMap(this.fields)}
|
|
2180
|
+
}`;
|
|
2181
|
+
}, e.prototype.queryFieldsMap = function(e) {
|
|
2182
|
+
var t = this;
|
|
2183
|
+
return e ? e.map(function(e) {
|
|
2184
|
+
return typeof e == "object" ? `${Object.keys(e)[0]} { ${t.queryFieldsMap(Object.values(e)[0])} }` : `${e}`;
|
|
2185
|
+
}).join(", ") : "";
|
|
2186
|
+
}, e;
|
|
2187
|
+
}();
|
|
2188
|
+
}));
|
|
2189
|
+
(/* @__PURE__ */ t(((e) => {
|
|
2190
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.adapters = e.query = e.mutation = e.subscription = void 0, e.adapters = In().default;
|
|
2191
|
+
var t = Ln(), n = Rn(), r = zn();
|
|
2192
|
+
function i(e, t, r) {
|
|
2193
|
+
var i;
|
|
2194
|
+
if (Array.isArray(e)) {
|
|
2195
|
+
if (t) {
|
|
2196
|
+
var a = new t(e, r);
|
|
2197
|
+
return a.queriesBuilder(e);
|
|
2198
|
+
}
|
|
2199
|
+
return i = new n.default(e, r), i.queriesBuilder(e);
|
|
2200
|
+
}
|
|
2201
|
+
if (t) {
|
|
2202
|
+
var a = new t(e, r);
|
|
2203
|
+
return a.queryBuilder();
|
|
2204
|
+
}
|
|
2205
|
+
return i = new n.default(e, r), i.queryBuilder();
|
|
2206
|
+
}
|
|
2207
|
+
e.query = i;
|
|
2208
|
+
function a(e, n, r) {
|
|
2209
|
+
var i, a;
|
|
2210
|
+
return Array.isArray(e) ? n ? (i = new n(e, r), i.mutationsBuilder(e)) : (a = new t.default(e, r), a.mutationsBuilder(e)) : n ? (i = new n(e, r), i.mutationBuilder()) : (a = new t.default(e, r), a.mutationBuilder());
|
|
2211
|
+
}
|
|
2212
|
+
e.mutation = a;
|
|
2213
|
+
function o(e, t) {
|
|
2214
|
+
var n, i;
|
|
2215
|
+
return Array.isArray(e) ? t ? (n = new t(e), n.subscriptionsBuilder(e)) : (i = new r.default(e), i.subscriptionsBuilder(e)) : t ? (n = new t(e), n.subscriptionBuilder()) : (i = new r.default(e), i.subscriptionBuilder());
|
|
2216
|
+
}
|
|
2217
|
+
e.subscription = o;
|
|
2218
|
+
})))();
|
|
2219
|
+
//#endregion
|
|
2220
|
+
//#region ../../core/src/lib/providers/hooks/useSdk.ts
|
|
2221
|
+
var Bn = () => {
|
|
2222
|
+
let e = o(ee)?.sdk;
|
|
2223
|
+
return e || console.error("You must wrap your component in a <DataProvider>"), e?.sdkType === "dummy" || e?.sdkType, e;
|
|
2224
|
+
}, Vn = () => {
|
|
2225
|
+
let { getPlatform: e } = Bn();
|
|
2226
|
+
return e();
|
|
2227
|
+
}, Hn = (e, t) => {
|
|
2228
|
+
let n = l();
|
|
2229
|
+
return c(e, t || n);
|
|
2230
|
+
}, Un = {
|
|
2231
|
+
kind: "Document",
|
|
2232
|
+
definitions: [{
|
|
2233
|
+
kind: "FragmentDefinition",
|
|
2234
|
+
name: {
|
|
2235
|
+
kind: "Name",
|
|
2236
|
+
value: "EligiblePaymentMethods"
|
|
2237
|
+
},
|
|
2238
|
+
typeCondition: {
|
|
2239
|
+
kind: "NamedType",
|
|
2240
|
+
name: {
|
|
2241
|
+
kind: "Name",
|
|
2242
|
+
value: "PaymentMethodQuote"
|
|
2243
|
+
}
|
|
2244
|
+
},
|
|
2245
|
+
selectionSet: {
|
|
2246
|
+
kind: "SelectionSet",
|
|
2247
|
+
selections: [
|
|
2248
|
+
{
|
|
2249
|
+
kind: "Field",
|
|
2250
|
+
name: {
|
|
2251
|
+
kind: "Name",
|
|
2252
|
+
value: "id"
|
|
2253
|
+
}
|
|
2254
|
+
},
|
|
2255
|
+
{
|
|
2256
|
+
kind: "Field",
|
|
2257
|
+
name: {
|
|
2258
|
+
kind: "Name",
|
|
2259
|
+
value: "name"
|
|
2260
|
+
}
|
|
2261
|
+
},
|
|
2262
|
+
{
|
|
2263
|
+
kind: "Field",
|
|
2264
|
+
name: {
|
|
2265
|
+
kind: "Name",
|
|
2266
|
+
value: "description"
|
|
2267
|
+
}
|
|
2268
|
+
},
|
|
2269
|
+
{
|
|
2270
|
+
kind: "Field",
|
|
2271
|
+
name: {
|
|
2272
|
+
kind: "Name",
|
|
2273
|
+
value: "code"
|
|
2274
|
+
}
|
|
2275
|
+
}
|
|
2276
|
+
]
|
|
2277
|
+
}
|
|
2278
|
+
}]
|
|
2279
|
+
}, Wn = {
|
|
2280
|
+
kind: "Document",
|
|
2281
|
+
definitions: [{
|
|
2282
|
+
kind: "OperationDefinition",
|
|
2283
|
+
operation: "mutation",
|
|
2284
|
+
name: {
|
|
2285
|
+
kind: "Name",
|
|
2286
|
+
value: "login"
|
|
2287
|
+
},
|
|
2288
|
+
variableDefinitions: [
|
|
2289
|
+
{
|
|
2290
|
+
kind: "VariableDefinition",
|
|
2291
|
+
variable: {
|
|
2292
|
+
kind: "Variable",
|
|
2293
|
+
name: {
|
|
2294
|
+
kind: "Name",
|
|
2295
|
+
value: "email"
|
|
2296
|
+
}
|
|
2297
|
+
},
|
|
2298
|
+
type: {
|
|
2299
|
+
kind: "NonNullType",
|
|
2300
|
+
type: {
|
|
2301
|
+
kind: "NamedType",
|
|
2302
|
+
name: {
|
|
2303
|
+
kind: "Name",
|
|
2304
|
+
value: "String"
|
|
2305
|
+
}
|
|
2306
|
+
}
|
|
2307
|
+
}
|
|
2308
|
+
},
|
|
2309
|
+
{
|
|
2310
|
+
kind: "VariableDefinition",
|
|
2311
|
+
variable: {
|
|
2312
|
+
kind: "Variable",
|
|
2313
|
+
name: {
|
|
2314
|
+
kind: "Name",
|
|
2315
|
+
value: "password"
|
|
2316
|
+
}
|
|
2317
|
+
},
|
|
2318
|
+
type: {
|
|
2319
|
+
kind: "NonNullType",
|
|
2320
|
+
type: {
|
|
2321
|
+
kind: "NamedType",
|
|
2322
|
+
name: {
|
|
2323
|
+
kind: "Name",
|
|
2324
|
+
value: "String"
|
|
2325
|
+
}
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2328
|
+
},
|
|
2329
|
+
{
|
|
2330
|
+
kind: "VariableDefinition",
|
|
2331
|
+
variable: {
|
|
2332
|
+
kind: "Variable",
|
|
2333
|
+
name: {
|
|
2334
|
+
kind: "Name",
|
|
2335
|
+
value: "rememberMe"
|
|
2336
|
+
}
|
|
2337
|
+
},
|
|
2338
|
+
type: {
|
|
2339
|
+
kind: "NamedType",
|
|
2340
|
+
name: {
|
|
2341
|
+
kind: "Name",
|
|
2342
|
+
value: "Boolean"
|
|
2343
|
+
}
|
|
2344
|
+
}
|
|
2345
|
+
}
|
|
2346
|
+
],
|
|
2347
|
+
selectionSet: {
|
|
2348
|
+
kind: "SelectionSet",
|
|
2349
|
+
selections: [{
|
|
2350
|
+
kind: "Field",
|
|
2351
|
+
name: {
|
|
2352
|
+
kind: "Name",
|
|
2353
|
+
value: "login"
|
|
2354
|
+
},
|
|
2355
|
+
arguments: [
|
|
2356
|
+
{
|
|
2357
|
+
kind: "Argument",
|
|
2358
|
+
name: {
|
|
2359
|
+
kind: "Name",
|
|
2360
|
+
value: "username"
|
|
2361
|
+
},
|
|
2362
|
+
value: {
|
|
2363
|
+
kind: "Variable",
|
|
2364
|
+
name: {
|
|
2365
|
+
kind: "Name",
|
|
2366
|
+
value: "email"
|
|
2367
|
+
}
|
|
2368
|
+
}
|
|
2369
|
+
},
|
|
2370
|
+
{
|
|
2371
|
+
kind: "Argument",
|
|
2372
|
+
name: {
|
|
2373
|
+
kind: "Name",
|
|
2374
|
+
value: "password"
|
|
2375
|
+
},
|
|
2376
|
+
value: {
|
|
2377
|
+
kind: "Variable",
|
|
2378
|
+
name: {
|
|
2379
|
+
kind: "Name",
|
|
2380
|
+
value: "password"
|
|
2381
|
+
}
|
|
2382
|
+
}
|
|
2383
|
+
},
|
|
2384
|
+
{
|
|
2385
|
+
kind: "Argument",
|
|
2386
|
+
name: {
|
|
2387
|
+
kind: "Name",
|
|
2388
|
+
value: "rememberMe"
|
|
2389
|
+
},
|
|
2390
|
+
value: {
|
|
2391
|
+
kind: "Variable",
|
|
2392
|
+
name: {
|
|
2393
|
+
kind: "Name",
|
|
2394
|
+
value: "rememberMe"
|
|
2395
|
+
}
|
|
2396
|
+
}
|
|
2397
|
+
}
|
|
2398
|
+
],
|
|
2399
|
+
selectionSet: {
|
|
2400
|
+
kind: "SelectionSet",
|
|
2401
|
+
selections: [
|
|
2402
|
+
{
|
|
2403
|
+
kind: "Field",
|
|
2404
|
+
name: {
|
|
2405
|
+
kind: "Name",
|
|
2406
|
+
value: "__typename"
|
|
2407
|
+
}
|
|
2408
|
+
},
|
|
2409
|
+
{
|
|
2410
|
+
kind: "InlineFragment",
|
|
2411
|
+
typeCondition: {
|
|
2412
|
+
kind: "NamedType",
|
|
2413
|
+
name: {
|
|
2414
|
+
kind: "Name",
|
|
2415
|
+
value: "CurrentUser"
|
|
2416
|
+
}
|
|
2417
|
+
},
|
|
2418
|
+
selectionSet: {
|
|
2419
|
+
kind: "SelectionSet",
|
|
2420
|
+
selections: [{
|
|
2421
|
+
kind: "Field",
|
|
2422
|
+
name: {
|
|
2423
|
+
kind: "Name",
|
|
2424
|
+
value: "id"
|
|
2425
|
+
}
|
|
2426
|
+
}, {
|
|
2427
|
+
kind: "Field",
|
|
2428
|
+
name: {
|
|
2429
|
+
kind: "Name",
|
|
2430
|
+
value: "identifier"
|
|
2431
|
+
}
|
|
2432
|
+
}]
|
|
2433
|
+
}
|
|
2434
|
+
},
|
|
2435
|
+
{
|
|
2436
|
+
kind: "InlineFragment",
|
|
2437
|
+
typeCondition: {
|
|
2438
|
+
kind: "NamedType",
|
|
2439
|
+
name: {
|
|
2440
|
+
kind: "Name",
|
|
2441
|
+
value: "ErrorResult"
|
|
2442
|
+
}
|
|
2443
|
+
},
|
|
2444
|
+
selectionSet: {
|
|
2445
|
+
kind: "SelectionSet",
|
|
2446
|
+
selections: [{
|
|
2447
|
+
kind: "Field",
|
|
2448
|
+
name: {
|
|
2449
|
+
kind: "Name",
|
|
2450
|
+
value: "errorCode"
|
|
2451
|
+
}
|
|
2452
|
+
}, {
|
|
2453
|
+
kind: "Field",
|
|
2454
|
+
name: {
|
|
2455
|
+
kind: "Name",
|
|
2456
|
+
value: "message"
|
|
2457
|
+
}
|
|
2458
|
+
}]
|
|
2459
|
+
}
|
|
2460
|
+
}
|
|
2461
|
+
]
|
|
2462
|
+
}
|
|
2463
|
+
}]
|
|
2464
|
+
}
|
|
2465
|
+
}]
|
|
2466
|
+
}, Gn = {
|
|
2467
|
+
kind: "Document",
|
|
2468
|
+
definitions: [{
|
|
2469
|
+
kind: "OperationDefinition",
|
|
2470
|
+
operation: "mutation",
|
|
2471
|
+
name: {
|
|
2472
|
+
kind: "Name",
|
|
2473
|
+
value: "logout"
|
|
2474
|
+
},
|
|
2475
|
+
selectionSet: {
|
|
2476
|
+
kind: "SelectionSet",
|
|
2477
|
+
selections: [{
|
|
2478
|
+
kind: "Field",
|
|
2479
|
+
name: {
|
|
2480
|
+
kind: "Name",
|
|
2481
|
+
value: "logout"
|
|
2482
|
+
},
|
|
2483
|
+
selectionSet: {
|
|
2484
|
+
kind: "SelectionSet",
|
|
2485
|
+
selections: [{
|
|
2486
|
+
kind: "Field",
|
|
2487
|
+
name: {
|
|
2488
|
+
kind: "Name",
|
|
2489
|
+
value: "success"
|
|
2490
|
+
}
|
|
2491
|
+
}]
|
|
2492
|
+
}
|
|
2493
|
+
}]
|
|
2494
|
+
}
|
|
2495
|
+
}]
|
|
2496
|
+
}, Kn = {
|
|
2497
|
+
kind: "Document",
|
|
2498
|
+
definitions: [{
|
|
2499
|
+
kind: "OperationDefinition",
|
|
2500
|
+
operation: "query",
|
|
2501
|
+
name: {
|
|
2502
|
+
kind: "Name",
|
|
2503
|
+
value: "me"
|
|
2504
|
+
},
|
|
2505
|
+
selectionSet: {
|
|
2506
|
+
kind: "SelectionSet",
|
|
2507
|
+
selections: [{
|
|
2508
|
+
kind: "Field",
|
|
2509
|
+
name: {
|
|
2510
|
+
kind: "Name",
|
|
2511
|
+
value: "me"
|
|
2512
|
+
},
|
|
2513
|
+
selectionSet: {
|
|
2514
|
+
kind: "SelectionSet",
|
|
2515
|
+
selections: [{
|
|
2516
|
+
kind: "Field",
|
|
2517
|
+
name: {
|
|
2518
|
+
kind: "Name",
|
|
2519
|
+
value: "id"
|
|
2520
|
+
}
|
|
2521
|
+
}]
|
|
2522
|
+
}
|
|
2523
|
+
}]
|
|
2524
|
+
}
|
|
2525
|
+
}]
|
|
2526
|
+
}, qn = {
|
|
2527
|
+
kind: "Document",
|
|
2528
|
+
definitions: [{
|
|
2529
|
+
kind: "OperationDefinition",
|
|
2530
|
+
operation: "mutation",
|
|
2531
|
+
name: {
|
|
2532
|
+
kind: "Name",
|
|
2533
|
+
value: "transitionOrderToState"
|
|
2534
|
+
},
|
|
2535
|
+
variableDefinitions: [{
|
|
2536
|
+
kind: "VariableDefinition",
|
|
2537
|
+
variable: {
|
|
2538
|
+
kind: "Variable",
|
|
2539
|
+
name: {
|
|
2540
|
+
kind: "Name",
|
|
2541
|
+
value: "input"
|
|
2542
|
+
}
|
|
2543
|
+
},
|
|
2544
|
+
type: {
|
|
2545
|
+
kind: "NonNullType",
|
|
2546
|
+
type: {
|
|
2547
|
+
kind: "NamedType",
|
|
2548
|
+
name: {
|
|
2549
|
+
kind: "Name",
|
|
2550
|
+
value: "String"
|
|
2551
|
+
}
|
|
2552
|
+
}
|
|
2553
|
+
}
|
|
2554
|
+
}],
|
|
2555
|
+
selectionSet: {
|
|
2556
|
+
kind: "SelectionSet",
|
|
2557
|
+
selections: [{
|
|
2558
|
+
kind: "Field",
|
|
2559
|
+
name: {
|
|
2560
|
+
kind: "Name",
|
|
2561
|
+
value: "transitionOrderToState"
|
|
2562
|
+
},
|
|
2563
|
+
arguments: [{
|
|
2564
|
+
kind: "Argument",
|
|
2565
|
+
name: {
|
|
2566
|
+
kind: "Name",
|
|
2567
|
+
value: "state"
|
|
2568
|
+
},
|
|
2569
|
+
value: {
|
|
2570
|
+
kind: "Variable",
|
|
2571
|
+
name: {
|
|
2572
|
+
kind: "Name",
|
|
2573
|
+
value: "input"
|
|
2574
|
+
}
|
|
2575
|
+
}
|
|
2576
|
+
}],
|
|
2577
|
+
selectionSet: {
|
|
2578
|
+
kind: "SelectionSet",
|
|
2579
|
+
selections: [{
|
|
2580
|
+
kind: "InlineFragment",
|
|
2581
|
+
typeCondition: {
|
|
2582
|
+
kind: "NamedType",
|
|
2583
|
+
name: {
|
|
2584
|
+
kind: "Name",
|
|
2585
|
+
value: "ErrorResult"
|
|
2586
|
+
}
|
|
2587
|
+
},
|
|
2588
|
+
selectionSet: {
|
|
2589
|
+
kind: "SelectionSet",
|
|
2590
|
+
selections: [{
|
|
2591
|
+
kind: "Field",
|
|
2592
|
+
name: {
|
|
2593
|
+
kind: "Name",
|
|
2594
|
+
value: "errorCode"
|
|
2595
|
+
}
|
|
2596
|
+
}, {
|
|
2597
|
+
kind: "Field",
|
|
2598
|
+
name: {
|
|
2599
|
+
kind: "Name",
|
|
2600
|
+
value: "message"
|
|
2601
|
+
}
|
|
2602
|
+
}]
|
|
2603
|
+
}
|
|
2604
|
+
}]
|
|
2605
|
+
}
|
|
2606
|
+
}]
|
|
2607
|
+
}
|
|
2608
|
+
}]
|
|
2609
|
+
}, Jn = {
|
|
2610
|
+
kind: "Document",
|
|
2611
|
+
definitions: [{
|
|
2612
|
+
kind: "OperationDefinition",
|
|
2613
|
+
operation: "query",
|
|
2614
|
+
name: {
|
|
2615
|
+
kind: "Name",
|
|
2616
|
+
value: "nextOrderStates"
|
|
2617
|
+
},
|
|
2618
|
+
selectionSet: {
|
|
2619
|
+
kind: "SelectionSet",
|
|
2620
|
+
selections: [{
|
|
2621
|
+
kind: "Field",
|
|
2622
|
+
name: {
|
|
2623
|
+
kind: "Name",
|
|
2624
|
+
value: "nextOrderStates"
|
|
2625
|
+
}
|
|
2626
|
+
}]
|
|
2627
|
+
}
|
|
2628
|
+
}]
|
|
2629
|
+
}, Yn = {
|
|
2630
|
+
kind: "Document",
|
|
2631
|
+
definitions: [{
|
|
2632
|
+
kind: "OperationDefinition",
|
|
2633
|
+
operation: "query",
|
|
2634
|
+
name: {
|
|
2635
|
+
kind: "Name",
|
|
2636
|
+
value: "EligiblePaymentMethods"
|
|
2637
|
+
},
|
|
2638
|
+
selectionSet: {
|
|
2639
|
+
kind: "SelectionSet",
|
|
2640
|
+
selections: [{
|
|
2641
|
+
kind: "Field",
|
|
2642
|
+
name: {
|
|
2643
|
+
kind: "Name",
|
|
2644
|
+
value: "eligiblePaymentMethods"
|
|
2645
|
+
},
|
|
2646
|
+
selectionSet: {
|
|
2647
|
+
kind: "SelectionSet",
|
|
2648
|
+
selections: [{
|
|
2649
|
+
kind: "FragmentSpread",
|
|
2650
|
+
name: {
|
|
2651
|
+
kind: "Name",
|
|
2652
|
+
value: "EligiblePaymentMethods"
|
|
2653
|
+
}
|
|
2654
|
+
}]
|
|
2655
|
+
}
|
|
2656
|
+
}]
|
|
2657
|
+
}
|
|
2658
|
+
}, {
|
|
2659
|
+
kind: "FragmentDefinition",
|
|
2660
|
+
name: {
|
|
2661
|
+
kind: "Name",
|
|
2662
|
+
value: "EligiblePaymentMethods"
|
|
2663
|
+
},
|
|
2664
|
+
typeCondition: {
|
|
2665
|
+
kind: "NamedType",
|
|
2666
|
+
name: {
|
|
2667
|
+
kind: "Name",
|
|
2668
|
+
value: "PaymentMethodQuote"
|
|
2669
|
+
}
|
|
2670
|
+
},
|
|
2671
|
+
selectionSet: {
|
|
2672
|
+
kind: "SelectionSet",
|
|
2673
|
+
selections: [
|
|
2674
|
+
{
|
|
2675
|
+
kind: "Field",
|
|
2676
|
+
name: {
|
|
2677
|
+
kind: "Name",
|
|
2678
|
+
value: "id"
|
|
2679
|
+
}
|
|
2680
|
+
},
|
|
2681
|
+
{
|
|
2682
|
+
kind: "Field",
|
|
2683
|
+
name: {
|
|
2684
|
+
kind: "Name",
|
|
2685
|
+
value: "name"
|
|
2686
|
+
}
|
|
2687
|
+
},
|
|
2688
|
+
{
|
|
2689
|
+
kind: "Field",
|
|
2690
|
+
name: {
|
|
2691
|
+
kind: "Name",
|
|
2692
|
+
value: "description"
|
|
2693
|
+
}
|
|
2694
|
+
},
|
|
2695
|
+
{
|
|
2696
|
+
kind: "Field",
|
|
2697
|
+
name: {
|
|
2698
|
+
kind: "Name",
|
|
2699
|
+
value: "code"
|
|
2700
|
+
}
|
|
2701
|
+
}
|
|
2702
|
+
]
|
|
2703
|
+
}
|
|
2704
|
+
}]
|
|
2705
|
+
}, Xn = {
|
|
2706
|
+
"\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": Wn,
|
|
2707
|
+
"\n mutation logout {\n logout {\n success\n }\n }\n": Gn,
|
|
2708
|
+
"\n query me {\n me {\n id\n }\n }\n": Kn,
|
|
2709
|
+
"\n mutation transitionOrderToState($input: String!) {\n transitionOrderToState(state: $input) {\n ... on ErrorResult {\n errorCode\n message\n }\n }\n }\n": qn,
|
|
2710
|
+
"\n query nextOrderStates {\n nextOrderStates\n }\n": Jn,
|
|
2711
|
+
"\n fragment EligiblePaymentMethods on PaymentMethodQuote {\n id\n name\n description\n code\n }\n": Un,
|
|
2712
|
+
"\n query EligiblePaymentMethods {\n eligiblePaymentMethods {\n ...EligiblePaymentMethods\n }\n }\n": Yn
|
|
2713
|
+
};
|
|
2714
|
+
function Zn(e) {
|
|
2715
|
+
return Xn[e] ?? {};
|
|
2716
|
+
}
|
|
2717
|
+
//#endregion
|
|
2718
|
+
export { Bn as a, Vn as i, Zn as n, Hn as r, u as t };
|