xmlui 0.10.7 → 0.10.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +1,16 @@
1
1
  import { delay as D, HttpResponse as g, matchRequestUrl as E } from "msw";
2
- import { isArray as N, isObject as U, mapValues as T } from "lodash-es";
3
- import { r as M, g as $, d as F, m as O, a as B, o as A, T as x } from "./index-CTri_fRG.mjs";
2
+ import { isArray as N, isObject as U, mapValues as B } from "lodash-es";
3
+ import { r as T, g as M, d as $, m as F, a as O, o as p, T as x } from "./index-CqzCWOUw.mjs";
4
4
  import q from "dexie";
5
- var k = /* @__PURE__ */ ((e) => (e[e.Continue = 100] = "Continue", e[e.SwitchingProtocols = 101] = "SwitchingProtocols", e[e.Processing = 102] = "Processing", e[e.EarlyHints = 103] = "EarlyHints", e[e.Ok = 200] = "Ok", e[e.Created = 201] = "Created", e[e.Accepted = 202] = "Accepted", e[e.NonAuthoritativeInformation = 203] = "NonAuthoritativeInformation", e[e.NoContent = 204] = "NoContent", e[e.ResetContent = 205] = "ResetContent", e[e.PartialContent = 206] = "PartialContent", e[e.MultiStatus = 207] = "MultiStatus", e[e.AlreadyReported = 208] = "AlreadyReported", e[e.ImUsed = 226] = "ImUsed", e[e.MultipleChoices = 300] = "MultipleChoices", e[e.MovedPermanently = 301] = "MovedPermanently", e[e.Found = 302] = "Found", e[e.SeeOther = 303] = "SeeOther", e[e.NotModified = 304] = "NotModified", e[e.UseProxy = 305] = "UseProxy", e[e.Unused = 306] = "Unused", e[e.TemporaryRedirect = 307] = "TemporaryRedirect", e[e.PermanentRedirect = 308] = "PermanentRedirect", e[e.BadRequest = 400] = "BadRequest", e[e.Unauthorized = 401] = "Unauthorized", e[e.PaymentRequired = 402] = "PaymentRequired", e[e.Forbidden = 403] = "Forbidden", e[e.NotFound = 404] = "NotFound", e[e.MethodNotAllowed = 405] = "MethodNotAllowed", e[e.NotAcceptable = 406] = "NotAcceptable", e[e.ProxyAuthenticationRequired = 407] = "ProxyAuthenticationRequired", e[e.RequestTimeout = 408] = "RequestTimeout", e[e.Conflict = 409] = "Conflict", e[e.Gone = 410] = "Gone", e[e.LengthRequired = 411] = "LengthRequired", e[e.PreconditionFailed = 412] = "PreconditionFailed", e[e.PayloadTooLarge = 413] = "PayloadTooLarge", e[e.UriTooLong = 414] = "UriTooLong", e[e.UnsupportedMediaType = 415] = "UnsupportedMediaType", e[e.RangeNotSatisfiable = 416] = "RangeNotSatisfiable", e[e.ExpectationFailed = 417] = "ExpectationFailed", e[e.ImATeapot = 418] = "ImATeapot", e[e.MisdirectedRequest = 421] = "MisdirectedRequest", e[e.UnprocessableEntity = 422] = "UnprocessableEntity", e[e.Locked = 423] = "Locked", e[e.FailedDependency = 424] = "FailedDependency", e[e.TooEarly = 425] = "TooEarly", e[e.UpgradeRequired = 426] = "UpgradeRequired", e[e.PreconditionRequired = 428] = "PreconditionRequired", e[e.TooManyRequests = 429] = "TooManyRequests", e[e.RequestHeaderFieldsTooLarge = 431] = "RequestHeaderFieldsTooLarge", e[e.UnavailableForLegalReasons = 451] = "UnavailableForLegalReasons", e[e.InternalServerError = 500] = "InternalServerError", e[e.NotImplemented = 501] = "NotImplemented", e[e.BadGateway = 502] = "BadGateway", e[e.ServiceUnavailable = 503] = "ServiceUnavailable", e[e.GatewayTimeout = 504] = "GatewayTimeout", e[e.HttpVersionNotSupported = 505] = "HttpVersionNotSupported", e[e.VariantAlsoNegotiates = 506] = "VariantAlsoNegotiates", e[e.InsufficientStorage = 507] = "InsufficientStorage", e[e.LoopDetected = 508] = "LoopDetected", e[e.NotExtended = 510] = "NotExtended", e[e.NetworkAuthenticationRequired = 511] = "NetworkAuthenticationRequired", e))(k || {});
5
+ var A = /* @__PURE__ */ ((e) => (e[e.Continue = 100] = "Continue", e[e.SwitchingProtocols = 101] = "SwitchingProtocols", e[e.Processing = 102] = "Processing", e[e.EarlyHints = 103] = "EarlyHints", e[e.Ok = 200] = "Ok", e[e.Created = 201] = "Created", e[e.Accepted = 202] = "Accepted", e[e.NonAuthoritativeInformation = 203] = "NonAuthoritativeInformation", e[e.NoContent = 204] = "NoContent", e[e.ResetContent = 205] = "ResetContent", e[e.PartialContent = 206] = "PartialContent", e[e.MultiStatus = 207] = "MultiStatus", e[e.AlreadyReported = 208] = "AlreadyReported", e[e.ImUsed = 226] = "ImUsed", e[e.MultipleChoices = 300] = "MultipleChoices", e[e.MovedPermanently = 301] = "MovedPermanently", e[e.Found = 302] = "Found", e[e.SeeOther = 303] = "SeeOther", e[e.NotModified = 304] = "NotModified", e[e.UseProxy = 305] = "UseProxy", e[e.Unused = 306] = "Unused", e[e.TemporaryRedirect = 307] = "TemporaryRedirect", e[e.PermanentRedirect = 308] = "PermanentRedirect", e[e.BadRequest = 400] = "BadRequest", e[e.Unauthorized = 401] = "Unauthorized", e[e.PaymentRequired = 402] = "PaymentRequired", e[e.Forbidden = 403] = "Forbidden", e[e.NotFound = 404] = "NotFound", e[e.MethodNotAllowed = 405] = "MethodNotAllowed", e[e.NotAcceptable = 406] = "NotAcceptable", e[e.ProxyAuthenticationRequired = 407] = "ProxyAuthenticationRequired", e[e.RequestTimeout = 408] = "RequestTimeout", e[e.Conflict = 409] = "Conflict", e[e.Gone = 410] = "Gone", e[e.LengthRequired = 411] = "LengthRequired", e[e.PreconditionFailed = 412] = "PreconditionFailed", e[e.PayloadTooLarge = 413] = "PayloadTooLarge", e[e.UriTooLong = 414] = "UriTooLong", e[e.UnsupportedMediaType = 415] = "UnsupportedMediaType", e[e.RangeNotSatisfiable = 416] = "RangeNotSatisfiable", e[e.ExpectationFailed = 417] = "ExpectationFailed", e[e.ImATeapot = 418] = "ImATeapot", e[e.MisdirectedRequest = 421] = "MisdirectedRequest", e[e.UnprocessableEntity = 422] = "UnprocessableEntity", e[e.Locked = 423] = "Locked", e[e.FailedDependency = 424] = "FailedDependency", e[e.TooEarly = 425] = "TooEarly", e[e.UpgradeRequired = 426] = "UpgradeRequired", e[e.PreconditionRequired = 428] = "PreconditionRequired", e[e.TooManyRequests = 429] = "TooManyRequests", e[e.RequestHeaderFieldsTooLarge = 431] = "RequestHeaderFieldsTooLarge", e[e.UnavailableForLegalReasons = 451] = "UnavailableForLegalReasons", e[e.InternalServerError = 500] = "InternalServerError", e[e.NotImplemented = 501] = "NotImplemented", e[e.BadGateway = 502] = "BadGateway", e[e.ServiceUnavailable = 503] = "ServiceUnavailable", e[e.GatewayTimeout = 504] = "GatewayTimeout", e[e.HttpVersionNotSupported = 505] = "HttpVersionNotSupported", e[e.VariantAlsoNegotiates = 506] = "VariantAlsoNegotiates", e[e.InsufficientStorage = 507] = "InsufficientStorage", e[e.LoopDetected = 508] = "LoopDetected", e[e.NotExtended = 510] = "NotExtended", e[e.NetworkAuthenticationRequired = 511] = "NetworkAuthenticationRequired", e))(A || {});
6
6
  class m extends Error {
7
7
  constructor(r, n) {
8
8
  super((n == null ? void 0 : n.message) || "Not found"), this.details = n, this.status = r, Object.setPrototypeOf(this, m.prototype);
9
9
  }
10
10
  }
11
- class p extends m {
11
+ class I extends m {
12
12
  constructor(r) {
13
- super(404, r), Object.setPrototypeOf(this, p.prototype);
13
+ super(404, r), Object.setPrototypeOf(this, I.prototype);
14
14
  }
15
15
  }
16
16
  class v extends m {
@@ -23,20 +23,20 @@ class P extends m {
23
23
  super(409, r), Object.setPrototypeOf(this, P.prototype);
24
24
  }
25
25
  }
26
- function b(e) {
26
+ function k(e) {
27
27
  let r;
28
28
  return e && (typeof e == "string" ? r = {
29
29
  message: e
30
30
  } : r = e), r;
31
31
  }
32
32
  const L = {
33
- NotFound404: (e) => new p(b(e)),
34
- Unauthorized401: (e) => new v(b(e)),
35
- HttpError: (e, r) => new m(e, b(r)),
36
- Conflict409: (e) => new P(b(e))
33
+ NotFound404: (e) => new I(k(e)),
34
+ Unauthorized401: (e) => new v(k(e)),
35
+ HttpError: (e, r) => new m(e, k(r)),
36
+ Conflict409: (e) => new P(k(e))
37
37
  }, j = {
38
38
  getDate: (e) => e ? new Date(e) : /* @__PURE__ */ new Date()
39
- }, I = (e, r) => N(e) ? e.map((n) => I(n, r)) : U(e) ? T(e, (n) => I(n, r)) : r(e);
39
+ }, b = (e, r) => N(e) ? e.map((n) => b(n, r)) : U(e) ? B(e, (n) => b(n, r)) : r(e);
40
40
  class z {
41
41
  constructor() {
42
42
  this.cookies = {};
@@ -67,7 +67,7 @@ class V {
67
67
  }
68
68
  class G {
69
69
  constructor(r, n, i) {
70
- this.definition = r, this.db = n, this.authService = i, this.apiStateHash = {}, this.resolvedHelpers = I(r.helpers, (s) => typeof s == "string" ? (...a) => this.runFn(s, ...a) : s), r.initialize && this.runFn(r.initialize);
70
+ this.definition = r, this.db = n, this.authService = i, this.apiStateHash = {}, this.resolvedHelpers = b(r.helpers, (s) => typeof s == "string" ? (...a) => this.runFn(s, ...a) : s), r.initialize && this.runFn(r.initialize);
71
71
  }
72
72
  async executeOperation(r, n, i, s) {
73
73
  var t;
@@ -77,7 +77,7 @@ class G {
77
77
  return await this.runFn(a, n, i, s);
78
78
  }
79
79
  async runFn(r, ...n) {
80
- var a, t, h, w, c, u, o;
80
+ var a, t, w, y, c, d, o;
81
81
  let i = {
82
82
  ...this.resolvedHelpers,
83
83
  $db: this.db,
@@ -87,8 +87,8 @@ class G {
87
87
  $loggedInUser: this.authService.getLoggedInUser(),
88
88
  $pathParams: (a = n[0]) == null ? void 0 : a.pathParams,
89
89
  $queryParams: (t = n[0]) == null ? void 0 : t.queryParams,
90
- $requestBody: (h = n[0]) == null ? void 0 : h.requestBody,
91
- $cookies: (w = n[0]) == null ? void 0 : w.cookies,
90
+ $requestBody: (w = n[0]) == null ? void 0 : w.requestBody,
91
+ $cookies: (y = n[0]) == null ? void 0 : y.cookies,
92
92
  $requestHeaders: (c = n[0]) == null ? void 0 : c.requestHeaders,
93
93
  $cookieService: n[1],
94
94
  //TODO really ugly, temporary solution
@@ -99,15 +99,18 @@ class G {
99
99
  localContext: i,
100
100
  eventArgs: n,
101
101
  appContext: {
102
- ...B,
103
102
  ...O,
104
- delay: F,
103
+ ...F,
104
+ delay: $,
105
105
  Errors: L,
106
- createFile: (...y) => new File(y[0], y[1], y[2]),
107
- getDate: $
106
+ createFile: (...l) => new File(l[0], l[1], l[2]),
107
+ appendBlob: (l, u) => !l && !u ? void 0 : new Blob([l, u], {
108
+ type: (l == null ? void 0 : l.type) || (u == null ? void 0 : u.type) || "application/octet-stream"
109
+ }),
110
+ getDate: M
108
111
  }
109
112
  });
110
- return await M(r, s), (o = (u = s.mainThread) == null ? void 0 : u.blocks) != null && o.length ? s.mainThread.blocks[s.mainThread.blocks.length - 1].returnValue : void 0;
113
+ return await T(r, s), (o = (d = s.mainThread) == null ? void 0 : d.blocks) != null && o.length ? s.mainThread.blocks[s.mainThread.blocks.length - 1].returnValue : void 0;
111
114
  }
112
115
  }
113
116
  function J(e) {
@@ -121,7 +124,7 @@ function J(e) {
121
124
  ...e
122
125
  };
123
126
  }
124
- class l {
127
+ class h {
125
128
  constructor(r) {
126
129
  this.list = [];
127
130
  for (const n of r)
@@ -139,7 +142,7 @@ class l {
139
142
  return this.list[r];
140
143
  }
141
144
  all() {
142
- return new l(this.list);
145
+ return new h(this.list);
143
146
  }
144
147
  async single(r) {
145
148
  const n = await this.where(r);
@@ -158,20 +161,20 @@ class l {
158
161
  return i.at(0);
159
162
  }
160
163
  async where(r) {
161
- return new l(await this.whereAsArray(r));
164
+ return new h(await this.whereAsArray(r));
162
165
  }
163
166
  async whereAsArray(r) {
164
167
  const n = await Promise.all(this.list.map(r ?? (async () => !0)));
165
168
  return this.list.filter((i, s) => n[s]);
166
169
  }
167
170
  async orderBy(...r) {
168
- return new l(await A(this.list, ...r));
171
+ return new h(await p(this.list, ...r));
169
172
  }
170
173
  async orderByAsArray(...r) {
171
- return await A(this.list, ...r);
174
+ return await p(this.list, ...r);
172
175
  }
173
176
  async groupBy(r) {
174
- return new l(await this.groupByAsArray(r));
177
+ return new h(await this.groupByAsArray(r));
175
178
  }
176
179
  async groupByAsArray(r) {
177
180
  const n = /* @__PURE__ */ new Map();
@@ -189,33 +192,33 @@ class l {
189
192
  const n = /* @__PURE__ */ new Set();
190
193
  for (const i of this.list)
191
194
  n.add(await r(i));
192
- return new l(n.values());
195
+ return new h(n.values());
193
196
  }
194
197
  async distinctAsArray(r) {
195
198
  return (await this.distinct(r)).toArray();
196
199
  }
197
200
  async maxValue(r = "id", n) {
198
- let i = n ? (await new l(this.list).where(n)).toArray() : this.list;
199
- return i = await A(i, (s) => s[r], !0), i.length === 0 ? void 0 : i[0][r];
201
+ let i = n ? (await new h(this.list).where(n)).toArray() : this.list;
202
+ return i = await p(i, (s) => s[r], !0), i.length === 0 ? void 0 : i[0][r];
200
203
  }
201
204
  async skip(r) {
202
- return new l(this.list.slice(r));
205
+ return new h(this.list.slice(r));
203
206
  }
204
207
  async take(r) {
205
- return new l(this.list.slice(0, r));
208
+ return new h(this.list.slice(0, r));
206
209
  }
207
210
  async skipTake(r, n) {
208
- return new l(this.list.slice(r, n + r));
211
+ return new h(this.list.slice(r, n + r));
209
212
  }
210
213
  }
211
214
  class K {
212
215
  constructor(r, n = {}, i) {
213
216
  this.tables = r, this.initialData = n, this.config = i, this.db = null, this.getItems = (s) => this.getDb().table(s).toArray(), this.findItems = async (s, a) => {
214
- const t = await this.getItems(s), h = await Promise.all(t.map(a));
215
- return t.filter((w, c) => h[c]);
217
+ const t = await this.getItems(s), w = await Promise.all(t.map(a));
218
+ return t.filter((y, c) => w[c]);
216
219
  }, this.getItem = async (s, a) => {
217
- const t = await this.getItems(s), h = await Promise.all(t.map(a));
218
- return t.find((w, c) => h[c]);
220
+ const t = await this.getItems(s), w = await Promise.all(t.map(a));
221
+ return t.find((y, c) => w[c]);
219
222
  }, this.getItemById = async (s, a) => await this.getItem(s, async (t) => t.id + "" == a + ""), this.deleteItems = async (s, a) => {
220
223
  }, this.insertItem = async (s, a) => {
221
224
  const t = await this.getDb().table(s).add(a);
@@ -228,19 +231,19 @@ class K {
228
231
  return this.db;
229
232
  }
230
233
  async initialize() {
231
- var t, h, w;
234
+ var t, w, y;
232
235
  const r = typeof this.initialData == "function" ? await this.initialData() : this.initialData, n = {}, i = /* @__PURE__ */ new Set();
233
236
  this.tables ? this.tables.forEach((c) => {
234
- const u = [];
235
- c.pk.length === 1 ? u.push(c.pk[0]) : u.push(`[${c.pk.join("+")}]`), c.indexes && u.push(...c.indexes), n[c.name] = u.join(", "), i.add(c.name);
237
+ const d = [];
238
+ c.pk.length === 1 ? d.push(c.pk[0]) : d.push(`[${c.pk.join("+")}]`), c.indexes && d.push(...c.indexes), n[c.name] = d.join(", "), i.add(c.name);
236
239
  }) : Object.entries(r).forEach(([c]) => {
237
240
  n[c] = "++id", i.add(c);
238
241
  });
239
- const s = ((t = this.config) == null ? void 0 : t.version) !== void 0 && typeof ((h = this.config) == null ? void 0 : h.version) == "number" ? (w = this.config) == null ? void 0 : w.version : 1, a = await this.dropDbOnVersionChange(s);
242
+ const s = ((t = this.config) == null ? void 0 : t.version) !== void 0 && typeof ((w = this.config) == null ? void 0 : w.version) == "number" ? (y = this.config) == null ? void 0 : y.version : 1, a = await this.dropDbOnVersionChange(s);
240
243
  this.db = this.createDbInstance(), this.db.version(s).stores(n), a && await Promise.all(
241
- Object.entries(r).map(async ([c, u]) => {
244
+ Object.entries(r).map(async ([c, d]) => {
242
245
  try {
243
- await this.getDb().table(c).bulkAdd(u);
246
+ await this.getDb().table(c).bulkAdd(d);
244
247
  } catch (o) {
245
248
  console.error(o);
246
249
  }
@@ -267,7 +270,7 @@ class K {
267
270
  async function W(e) {
268
271
  const r = () => e.db.table(e.name), n = async (i) => {
269
272
  const s = await e.toArray(), a = await Promise.all(s.map(i ?? (async () => !0)));
270
- return s.filter((t, h) => a[h]);
273
+ return s.filter((t, w) => a[w]);
271
274
  };
272
275
  return {
273
276
  native: r,
@@ -290,23 +293,23 @@ async function W(e) {
290
293
  return e.schema.primKey.src === "++id" && (s = Number(i)), e.get(s);
291
294
  },
292
295
  toArray: async () => await e.toArray(),
293
- single: async (i) => await new l(await e.toArray()).single(i),
294
- singleOrDefault: async (i, s) => await new l(await e.toArray()).singleOrDefault(
296
+ single: async (i) => await new h(await e.toArray()).single(i),
297
+ singleOrDefault: async (i, s) => await new h(await e.toArray()).singleOrDefault(
295
298
  i,
296
299
  s
297
300
  ),
298
- where: async (i) => new l(await n(i)),
301
+ where: async (i) => new h(await n(i)),
299
302
  whereAsArray: async (i) => await n(i),
300
- orderBy: async (...i) => await new l(await e.toArray()).orderBy(...i),
301
- orderByAsArray: async (...i) => await new l(await e.toArray()).orderByAsArray(...i),
302
- groupBy: async (i) => await new l(await e.toArray()).groupBy(i),
303
- groupByAsArray: async (i) => await new l(await e.toArray()).groupByAsArray(i),
304
- distinct: async (i) => await new l(await e.toArray()).distinct(i),
305
- distinctAsArray: async (i) => await new l(await e.toArray()).distinctAsArray(i),
306
- maxValue: async (i = "id", s) => await new l(await e.toArray()).maxValue(i, s),
307
- skip: async (i) => await new l(await e.toArray()).skip(i),
308
- take: async (i) => await new l(await e.toArray()).take(i),
309
- skipTake: async (i, s) => await new l(await e.toArray()).skipTake(i, s)
303
+ orderBy: async (...i) => await new h(await e.toArray()).orderBy(...i),
304
+ orderByAsArray: async (...i) => await new h(await e.toArray()).orderByAsArray(...i),
305
+ groupBy: async (i) => await new h(await e.toArray()).groupBy(i),
306
+ groupByAsArray: async (i) => await new h(await e.toArray()).groupByAsArray(i),
307
+ distinct: async (i) => await new h(await e.toArray()).distinct(i),
308
+ distinctAsArray: async (i) => await new h(await e.toArray()).distinctAsArray(i),
309
+ maxValue: async (i = "id", s) => await new h(await e.toArray()).maxValue(i, s),
310
+ skip: async (i) => await new h(await e.toArray()).skip(i),
311
+ take: async (i) => await new h(await e.toArray()).take(i),
312
+ skipTake: async (i, s) => await new h(await e.toArray()).skipTake(i, s)
310
313
  };
311
314
  }
312
315
  function R(e, r) {
@@ -464,25 +467,25 @@ class _ {
464
467
  }
465
468
  // Use the "msw" package to execute the interceptor operation
466
469
  async executeOperation(r, n, i, s) {
467
- var u;
470
+ var d;
468
471
  if (this.backend === null)
469
472
  throw new Error("Interceptor not initialized");
470
- const a = (u = this.apiDef.operations) == null ? void 0 : u[r];
473
+ const a = (d = this.apiDef.operations) == null ? void 0 : d[r];
471
474
  if (!a)
472
475
  throw new Error(`Unknown API interceptor operation: ${r}`);
473
476
  let t;
474
477
  try {
475
478
  if (a.requestShape === "formData") {
476
- const o = await n.formData(), y = {};
477
- for (const f of o.keys()) {
478
- const d = o.getAll(f);
479
- d.length === 1 ? y[f] = d[0] : y[f] = d;
479
+ const o = await n.formData(), l = {};
480
+ for (const u of o.keys()) {
481
+ const f = o.getAll(u);
482
+ f.length === 1 ? l[u] = f[0] : l[u] = f;
480
483
  }
481
- t = y;
484
+ t = l;
482
485
  } else a.requestShape === "blob" ? t = await n.blob() : t = await n.json();
483
486
  } catch {
484
487
  }
485
- const h = this.convertRequestParams(
488
+ const w = this.convertRequestParams(
486
489
  {
487
490
  pathParams: s,
488
491
  queryParams: Object.fromEntries(new URL(n.url).searchParams),
@@ -493,36 +496,36 @@ class _ {
493
496
  a
494
497
  );
495
498
  this.apiDef.artificialDelay === void 0 ? await D("real") : this.apiDef.artificialDelay !== 0 && await D(this.apiDef.artificialDelay);
496
- const w = new z(), c = new V();
499
+ const y = new z(), c = new V();
497
500
  try {
498
501
  const o = await this.backend.executeOperation(
499
502
  r,
500
- h,
501
503
  w,
504
+ y,
502
505
  c
503
- ), y = o == null, f = a.successStatusCode ?? (y ? k.NoContent : k.Ok), d = X(w.getCookieHeader(), c.getHeaders());
504
- return o instanceof File ? (d.append("Content-type", o.type), d.append("Content-Length", o.size + ""), d.append(
506
+ ), l = o == null, u = a.successStatusCode ?? (l ? A.NoContent : A.Ok), f = X(y.getCookieHeader(), c.getHeaders());
507
+ return o instanceof File ? (f.append("Content-type", o.type), f.append("Content-Length", o.size + ""), f.append(
505
508
  "Content-Disposition",
506
509
  `attachment; filename="${o.name}"; filename*=utf-8''${o.name}`
507
510
  ), g.arrayBuffer(await o.arrayBuffer(), {
508
- headers: d,
509
- status: f
510
- })) : y ? new g(null, {
511
- headers: d,
512
- status: f
511
+ headers: f,
512
+ status: u
513
+ })) : l ? new g(null, {
514
+ headers: f,
515
+ status: u
513
516
  }) : g.json(o, {
514
- headers: d,
515
- status: f
517
+ headers: f,
518
+ status: u
516
519
  });
517
520
  } catch (o) {
518
521
  return console.error(o), o instanceof x && o.errorObject instanceof m ? g.json(o.errorObject.details, {
519
- headers: w.getCookieHeader(),
522
+ headers: y.getCookieHeader(),
520
523
  status: o.errorObject.status
521
524
  }) : g.json(
522
525
  { message: o == null ? void 0 : o.message },
523
526
  {
524
- headers: w.getCookieHeader(),
525
- status: k.InternalServerError
527
+ headers: y.getCookieHeader(),
528
+ status: A.InternalServerError
526
529
  }
527
530
  );
528
531
  }
@@ -1,4 +1,4 @@
1
- import { z as e, A as t, B as o, E as n, I as r, L as p, K as l, N as u, C as i, j as m, i as C, S as d, W as S, b as x, P as T, Q as c, l as g, n as y, G as A, H as h, J as v, V as B, F as I, c as L, e as R, f as b, h as k, x as E, k as M, p as N, U as V, s as f, t as H, O as P, q as U, v as D, R as X, w as j, M as q, u as w, D as z, y as F } from "./index-CTri_fRG.mjs";
1
+ import { z as e, A as t, B as o, E as n, I as r, L as p, K as l, N as u, C as i, j as m, i as C, S as d, W as S, b as x, P as T, Q as c, l as g, n as y, G as A, H as h, J as v, V as B, F as I, c as L, e as R, f as b, h as k, x as E, k as M, p as N, U as V, s as f, t as H, O as P, q as U, v as D, R as X, w as j, M as q, u as w, D as z, y as F } from "./index-CqzCWOUw.mjs";
2
2
  import { X as J } from "./xmlui-serializer-a0O0jFY-.mjs";
3
3
  export {
4
4
  e as ApiInterceptorProvider,