frappe-react-sdk 1.3.4 → 1.3.6

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
  var Qs = Object.defineProperty;
2
2
  var Zs = (n, e, t) => e in n ? Qs(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var Ae = (n, e, t) => (Zs(n, typeof e != "symbol" ? e + "" : e, t), t);
4
- import Ie, { createContext as zr, useContext as ee, useEffect as Xe, useLayoutEffect as ei, useRef as Fe, useMemo as Kr, useCallback as M, useDebugValue as ti, useState as P } from "react";
5
- var B = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, zt = {}, rt = {}, ft = {}, le = B && B.__assign || function() {
6
- return le = Object.assign || function(n) {
3
+ var xe = (n, e, t) => (Zs(n, typeof e != "symbol" ? e + "" : e, t), t);
4
+ import qe, { createContext as zr, useContext as ee, useEffect as Ge, useLayoutEffect as ei, useRef as Be, useMemo as Kr, useCallback as $, useDebugValue as ti, useState as P } from "react";
5
+ var B = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, zt = {}, rt = {}, ft = {}, fe = B && B.__assign || function() {
6
+ return fe = Object.assign || function(n) {
7
7
  for (var e, t = 1, r = arguments.length; t < r; t++) {
8
8
  e = arguments[t];
9
9
  for (var s in e)
10
10
  Object.prototype.hasOwnProperty.call(e, s) && (n[s] = e[s]);
11
11
  }
12
12
  return n;
13
- }, le.apply(this, arguments);
13
+ }, fe.apply(this, arguments);
14
14
  }, wt = B && B.__awaiter || function(n, e, t, r) {
15
15
  function s(i) {
16
16
  return i instanceof t ? i : new t(function(o) {
@@ -18,7 +18,7 @@ var B = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
18
18
  });
19
19
  }
20
20
  return new (t || (t = Promise))(function(i, o) {
21
- function c(h) {
21
+ function u(h) {
22
22
  try {
23
23
  a(r.next(h));
24
24
  } catch (f) {
@@ -33,7 +33,7 @@ var B = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
33
33
  }
34
34
  }
35
35
  function a(h) {
36
- h.done ? i(h.value) : s(h.value).then(c, l);
36
+ h.done ? i(h.value) : s(h.value).then(u, l);
37
37
  }
38
38
  a((r = r.apply(n, e || [])).next());
39
39
  });
@@ -43,10 +43,10 @@ var B = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
43
43
  throw i[1];
44
44
  return i[1];
45
45
  }, trys: [], ops: [] }, r, s, i, o;
46
- return o = { next: c(0), throw: c(1), return: c(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
46
+ return o = { next: u(0), throw: u(1), return: u(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
47
47
  return this;
48
48
  }), o;
49
- function c(a) {
49
+ function u(a) {
50
50
  return function(h) {
51
51
  return l([a, h]);
52
52
  };
@@ -115,29 +115,29 @@ var ni = function() {
115
115
  return s.data;
116
116
  }).catch(function(s) {
117
117
  var i, o;
118
- throw le(le({}, s.response.data), { httpStatus: s.response.status, httpStatusText: s.response.statusText, message: (i = s.response.data.message) !== null && i !== void 0 ? i : "There was an error.", exception: (o = s.response.data.exception) !== null && o !== void 0 ? o : "" });
118
+ throw fe(fe({}, s.response.data), { httpStatus: s.response.status, httpStatusText: s.response.statusText, message: (i = s.response.data.message) !== null && i !== void 0 ? i : "There was an error.", exception: (o = s.response.data.exception) !== null && o !== void 0 ? o : "" });
119
119
  })];
120
120
  });
121
121
  });
122
122
  }, n.prototype.post = function(e, t) {
123
123
  return wt(this, void 0, void 0, function() {
124
124
  return Et(this, function(r) {
125
- return [2, this.axios.post("/api/method/".concat(e), le({}, t)).then(function(s) {
125
+ return [2, this.axios.post("/api/method/".concat(e), fe({}, t)).then(function(s) {
126
126
  return s.data;
127
127
  }).catch(function(s) {
128
128
  var i, o;
129
- throw le(le({}, s.response.data), { httpStatus: s.response.status, httpStatusText: s.response.statusText, message: (i = s.response.data.message) !== null && i !== void 0 ? i : "There was an error.", exception: (o = s.response.data.exception) !== null && o !== void 0 ? o : "" });
129
+ throw fe(fe({}, s.response.data), { httpStatus: s.response.status, httpStatusText: s.response.statusText, message: (i = s.response.data.message) !== null && i !== void 0 ? i : "There was an error.", exception: (o = s.response.data.exception) !== null && o !== void 0 ? o : "" });
130
130
  })];
131
131
  });
132
132
  });
133
133
  }, n.prototype.put = function(e, t) {
134
134
  return wt(this, void 0, void 0, function() {
135
135
  return Et(this, function(r) {
136
- return [2, this.axios.put("/api/method/".concat(e), le({}, t)).then(function(s) {
136
+ return [2, this.axios.put("/api/method/".concat(e), fe({}, t)).then(function(s) {
137
137
  return s.data;
138
138
  }).catch(function(s) {
139
139
  var i, o;
140
- throw le(le({}, s.response.data), { httpStatus: s.response.status, httpStatusText: s.response.statusText, message: (i = s.response.data.message) !== null && i !== void 0 ? i : "There was an error.", exception: (o = s.response.data.exception) !== null && o !== void 0 ? o : "" });
140
+ throw fe(fe({}, s.response.data), { httpStatus: s.response.status, httpStatusText: s.response.statusText, message: (i = s.response.data.message) !== null && i !== void 0 ? i : "There was an error.", exception: (o = s.response.data.exception) !== null && o !== void 0 ? o : "" });
141
141
  })];
142
142
  });
143
143
  });
@@ -148,7 +148,7 @@ var ni = function() {
148
148
  return s.data;
149
149
  }).catch(function(s) {
150
150
  var i, o;
151
- throw le(le({}, s.response.data), { httpStatus: s.response.status, httpStatusText: s.response.statusText, message: (i = s.response.data.message) !== null && i !== void 0 ? i : "There was an error.", exception: (o = s.response.data.exception) !== null && o !== void 0 ? o : "" });
151
+ throw fe(fe({}, s.response.data), { httpStatus: s.response.status, httpStatusText: s.response.statusText, message: (i = s.response.data.message) !== null && i !== void 0 ? i : "There was an error.", exception: (o = s.response.data.exception) !== null && o !== void 0 ? o : "" });
152
152
  })];
153
153
  });
154
154
  });
@@ -164,14 +164,14 @@ var ht = {}, z = B && B.__assign || function() {
164
164
  }
165
165
  return n;
166
166
  }, z.apply(this, arguments);
167
- }, Ue = B && B.__awaiter || function(n, e, t, r) {
167
+ }, Fe = B && B.__awaiter || function(n, e, t, r) {
168
168
  function s(i) {
169
169
  return i instanceof t ? i : new t(function(o) {
170
170
  o(i);
171
171
  });
172
172
  }
173
173
  return new (t || (t = Promise))(function(i, o) {
174
- function c(h) {
174
+ function u(h) {
175
175
  try {
176
176
  a(r.next(h));
177
177
  } catch (f) {
@@ -186,20 +186,20 @@ var ht = {}, z = B && B.__assign || function() {
186
186
  }
187
187
  }
188
188
  function a(h) {
189
- h.done ? i(h.value) : s(h.value).then(c, l);
189
+ h.done ? i(h.value) : s(h.value).then(u, l);
190
190
  }
191
191
  a((r = r.apply(n, e || [])).next());
192
192
  });
193
- }, qe = B && B.__generator || function(n, e) {
193
+ }, Ue = B && B.__generator || function(n, e) {
194
194
  var t = { label: 0, sent: function() {
195
195
  if (i[0] & 1)
196
196
  throw i[1];
197
197
  return i[1];
198
198
  }, trys: [], ops: [] }, r, s, i, o;
199
- return o = { next: c(0), throw: c(1), return: c(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
199
+ return o = { next: u(0), throw: u(1), return: u(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
200
200
  return this;
201
201
  }), o;
202
- function c(a) {
202
+ function u(a) {
203
203
  return function(h) {
204
204
  return l([a, h]);
205
205
  };
@@ -262,8 +262,8 @@ var ri = function() {
262
262
  this.appURL = e, this.axios = t, this.useToken = r != null ? r : !1, this.token = s, this.tokenType = i;
263
263
  }
264
264
  return n.prototype.getDoc = function(e, t) {
265
- return t === void 0 && (t = ""), Ue(this, void 0, void 0, function() {
266
- return qe(this, function(r) {
265
+ return t === void 0 && (t = ""), Fe(this, void 0, void 0, function() {
266
+ return Ue(this, function(r) {
267
267
  return [2, this.axios.get("/api/resource/".concat(e, "/").concat(t)).then(function(s) {
268
268
  return s.data.data;
269
269
  }).catch(function(s) {
@@ -274,51 +274,51 @@ var ri = function() {
274
274
  });
275
275
  }, n.prototype.getDocList = function(e, t) {
276
276
  var r;
277
- return Ue(this, void 0, void 0, function() {
278
- var s, i, o, c, l, a, h, f, p, v, b;
279
- return qe(this, function(w) {
280
- return s = {}, t && (i = t.fields, o = t.filters, c = t.orFilters, l = t.orderBy, a = t.limit, h = t.limit_start, f = t.groupBy, p = t.asDict, v = p === void 0 ? !0 : p, b = l ? "".concat(String(l == null ? void 0 : l.field), " ").concat((r = l == null ? void 0 : l.order) !== null && r !== void 0 ? r : "asc") : "", s = {
277
+ return Fe(this, void 0, void 0, function() {
278
+ var s, i, o, u, l, a, h, f, p, v, b;
279
+ return Ue(this, function(w) {
280
+ return s = {}, t && (i = t.fields, o = t.filters, u = t.orFilters, l = t.orderBy, a = t.limit, h = t.limit_start, f = t.groupBy, p = t.asDict, v = p === void 0 ? !0 : p, b = l ? "".concat(String(l == null ? void 0 : l.field), " ").concat((r = l == null ? void 0 : l.order) !== null && r !== void 0 ? r : "asc") : "", s = {
281
281
  fields: i ? JSON.stringify(i) : void 0,
282
282
  filters: o ? JSON.stringify(o) : void 0,
283
- or_filters: c ? JSON.stringify(c) : void 0,
283
+ or_filters: u ? JSON.stringify(u) : void 0,
284
284
  order_by: b,
285
285
  group_by: f,
286
286
  limit: a,
287
287
  limit_start: h,
288
288
  as_dict: v
289
- }), [2, this.axios.get("/api/resource/".concat(e), { params: s }).then(function(x) {
290
- return x.data.data;
291
- }).catch(function(x) {
292
- var g, S;
293
- throw z(z({}, x.response.data), { httpStatus: x.response.status, httpStatusText: x.response.statusText, message: "There was an error while fetching the documents.", exception: (S = (g = x.response.data.exception) !== null && g !== void 0 ? g : x.response.data.exc_type) !== null && S !== void 0 ? S : "" });
289
+ }), [2, this.axios.get("/api/resource/".concat(e), { params: s }).then(function(O) {
290
+ return O.data.data;
291
+ }).catch(function(O) {
292
+ var g, R;
293
+ throw z(z({}, O.response.data), { httpStatus: O.response.status, httpStatusText: O.response.statusText, message: "There was an error while fetching the documents.", exception: (R = (g = O.response.data.exception) !== null && g !== void 0 ? g : O.response.data.exc_type) !== null && R !== void 0 ? R : "" });
294
294
  })];
295
295
  });
296
296
  });
297
297
  }, n.prototype.createDoc = function(e, t) {
298
- return Ue(this, void 0, void 0, function() {
299
- return qe(this, function(r) {
298
+ return Fe(this, void 0, void 0, function() {
299
+ return Ue(this, function(r) {
300
300
  return [2, this.axios.post("/api/resource/".concat(e), z({}, t)).then(function(s) {
301
301
  return s.data.data;
302
302
  }).catch(function(s) {
303
- var i, o, c;
304
- throw z(z({}, s.response.data), { httpStatus: s.response.status, httpStatusText: s.response.statusText, message: (i = s.response.data.message) !== null && i !== void 0 ? i : "There was an error while creating the document.", exception: (c = (o = s.response.data.exception) !== null && o !== void 0 ? o : s.response.data.exc_type) !== null && c !== void 0 ? c : "" });
303
+ var i, o, u;
304
+ throw z(z({}, s.response.data), { httpStatus: s.response.status, httpStatusText: s.response.statusText, message: (i = s.response.data.message) !== null && i !== void 0 ? i : "There was an error while creating the document.", exception: (u = (o = s.response.data.exception) !== null && o !== void 0 ? o : s.response.data.exc_type) !== null && u !== void 0 ? u : "" });
305
305
  })];
306
306
  });
307
307
  });
308
308
  }, n.prototype.updateDoc = function(e, t, r) {
309
- return Ue(this, void 0, void 0, function() {
310
- return qe(this, function(s) {
309
+ return Fe(this, void 0, void 0, function() {
310
+ return Ue(this, function(s) {
311
311
  return [2, this.axios.put("/api/resource/".concat(e, "/").concat(t), z({}, r)).then(function(i) {
312
312
  return i.data.data;
313
313
  }).catch(function(i) {
314
- var o, c, l;
315
- throw z(z({}, i.response.data), { httpStatus: i.response.status, httpStatusText: i.response.statusText, message: (o = i.response.data.message) !== null && o !== void 0 ? o : "There was an error while updating the document.", exception: (l = (c = i.response.data.exception) !== null && c !== void 0 ? c : i.response.data.exc_type) !== null && l !== void 0 ? l : "" });
314
+ var o, u, l;
315
+ throw z(z({}, i.response.data), { httpStatus: i.response.status, httpStatusText: i.response.statusText, message: (o = i.response.data.message) !== null && o !== void 0 ? o : "There was an error while updating the document.", exception: (l = (u = i.response.data.exception) !== null && u !== void 0 ? u : i.response.data.exc_type) !== null && l !== void 0 ? l : "" });
316
316
  })];
317
317
  });
318
318
  });
319
319
  }, n.prototype.deleteDoc = function(e, t) {
320
- return Ue(this, void 0, void 0, function() {
321
- return qe(this, function(r) {
320
+ return Fe(this, void 0, void 0, function() {
321
+ return Ue(this, function(r) {
322
322
  return [2, this.axios.delete("/api/resource/".concat(e, "/").concat(t)).then(function(s) {
323
323
  return s.data;
324
324
  }).catch(function(s) {
@@ -328,24 +328,24 @@ var ri = function() {
328
328
  });
329
329
  });
330
330
  }, n.prototype.getCount = function(e, t, r, s) {
331
- return r === void 0 && (r = !1), s === void 0 && (s = !1), Ue(this, void 0, void 0, function() {
331
+ return r === void 0 && (r = !1), s === void 0 && (s = !1), Fe(this, void 0, void 0, function() {
332
332
  var i;
333
- return qe(this, function(o) {
333
+ return Ue(this, function(o) {
334
334
  return i = {
335
335
  doctype: e,
336
336
  filters: []
337
- }, r && (i.cache = r), s && (i.debug = s), t && (i.filters = t ? JSON.stringify(t) : void 0), [2, this.axios.get("/api/method/frappe.client.get_count", { params: i }).then(function(c) {
338
- return c.data.message;
339
- }).catch(function(c) {
337
+ }, r && (i.cache = r), s && (i.debug = s), t && (i.filters = t ? JSON.stringify(t) : void 0), [2, this.axios.get("/api/method/frappe.client.get_count", { params: i }).then(function(u) {
338
+ return u.data.message;
339
+ }).catch(function(u) {
340
340
  var l, a;
341
- throw z(z({}, c.response.data), { httpStatus: c.response.status, httpStatusText: c.response.statusText, message: "There was an error while getting the count.", exception: (a = (l = c.response.data.exception) !== null && l !== void 0 ? l : c.response.data.exc_type) !== null && a !== void 0 ? a : "" });
341
+ throw z(z({}, u.response.data), { httpStatus: u.response.status, httpStatusText: u.response.statusText, message: "There was an error while getting the count.", exception: (a = (l = u.response.data.exception) !== null && l !== void 0 ? l : u.response.data.exc_type) !== null && a !== void 0 ? a : "" });
342
342
  })];
343
343
  });
344
344
  });
345
345
  }, n.prototype.getLastDoc = function(e, t) {
346
- return Ue(this, void 0, void 0, function() {
346
+ return Fe(this, void 0, void 0, function() {
347
347
  var r, s;
348
- return qe(this, function(i) {
348
+ return Ue(this, function(i) {
349
349
  switch (i.label) {
350
350
  case 0:
351
351
  return r = {
@@ -378,7 +378,7 @@ var dt = {}, Ft = B && B.__assign || function() {
378
378
  });
379
379
  }
380
380
  return new (t || (t = Promise))(function(i, o) {
381
- function c(h) {
381
+ function u(h) {
382
382
  try {
383
383
  a(r.next(h));
384
384
  } catch (f) {
@@ -393,7 +393,7 @@ var dt = {}, Ft = B && B.__assign || function() {
393
393
  }
394
394
  }
395
395
  function a(h) {
396
- h.done ? i(h.value) : s(h.value).then(c, l);
396
+ h.done ? i(h.value) : s(h.value).then(u, l);
397
397
  }
398
398
  a((r = r.apply(n, e || [])).next());
399
399
  });
@@ -403,10 +403,10 @@ var dt = {}, Ft = B && B.__assign || function() {
403
403
  throw i[1];
404
404
  return i[1];
405
405
  }, trys: [], ops: [] }, r, s, i, o;
406
- return o = { next: c(0), throw: c(1), return: c(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
406
+ return o = { next: u(0), throw: u(1), return: u(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
407
407
  return this;
408
408
  }), o;
409
- function c(a) {
409
+ function u(a) {
410
410
  return function(h) {
411
411
  return l([a, h]);
412
412
  };
@@ -470,9 +470,9 @@ var oi = function() {
470
470
  }
471
471
  return n.prototype.uploadFile = function(e, t, r) {
472
472
  return si(this, void 0, void 0, function() {
473
- var s, i, o, c, l, a, h;
473
+ var s, i, o, u, l, a, h;
474
474
  return ii(this, function(f) {
475
- return s = new FormData(), e && s.append("file", e, e.name), i = t.isPrivate, o = t.folder, c = t.file_url, l = t.doctype, a = t.docname, h = t.fieldname, i && s.append("is_private", "1"), o && s.append("folder", o), c && s.append("file_url", c), l && a && (s.append("doctype", l), s.append("docname", a), h && s.append("fieldname", h)), [2, this.axios.post("/api/method/upload_file", s, {
475
+ return s = new FormData(), e && s.append("file", e, e.name), i = t.isPrivate, o = t.folder, u = t.file_url, l = t.doctype, a = t.docname, h = t.fieldname, i && s.append("is_private", "1"), o && s.append("folder", o), u && s.append("file_url", u), l && a && (s.append("doctype", l), s.append("docname", a), h && s.append("fieldname", h)), [2, this.axios.post("/api/method/upload_file", s, {
476
476
  onUploadProgress: function(p) {
477
477
  r && r(p.loaded, p.total);
478
478
  }
@@ -485,13 +485,13 @@ var oi = function() {
485
485
  }, n;
486
486
  }();
487
487
  dt.FrappeFileUpload = oi;
488
- var Ge = {}, Gr = { exports: {} }, Fn = { exports: {} }, Xr = function(e, t) {
488
+ var Ke = {}, Gr = { exports: {} }, Fn = { exports: {} }, Xr = function(e, t) {
489
489
  return function() {
490
490
  for (var s = new Array(arguments.length), i = 0; i < s.length; i++)
491
491
  s[i] = arguments[i];
492
492
  return e.apply(t, s);
493
493
  };
494
- }, ai = Xr, Ne = Object.prototype.toString;
494
+ }, ai = Xr, ke = Object.prototype.toString;
495
495
  function Un(n) {
496
496
  return Array.isArray(n);
497
497
  }
@@ -502,10 +502,10 @@ function ui(n) {
502
502
  return n !== null && !En(n) && n.constructor !== null && !En(n.constructor) && typeof n.constructor.isBuffer == "function" && n.constructor.isBuffer(n);
503
503
  }
504
504
  function Qr(n) {
505
- return Ne.call(n) === "[object ArrayBuffer]";
505
+ return ke.call(n) === "[object ArrayBuffer]";
506
506
  }
507
507
  function ci(n) {
508
- return Ne.call(n) === "[object FormData]";
508
+ return ke.call(n) === "[object FormData]";
509
509
  }
510
510
  function li(n) {
511
511
  var e;
@@ -520,29 +520,29 @@ function hi(n) {
520
520
  function Zr(n) {
521
521
  return n !== null && typeof n == "object";
522
522
  }
523
- function Dt(n) {
524
- if (Ne.call(n) !== "[object Object]")
523
+ function kt(n) {
524
+ if (ke.call(n) !== "[object Object]")
525
525
  return !1;
526
526
  var e = Object.getPrototypeOf(n);
527
527
  return e === null || e === Object.prototype;
528
528
  }
529
529
  function di(n) {
530
- return Ne.call(n) === "[object Date]";
530
+ return ke.call(n) === "[object Date]";
531
531
  }
532
532
  function pi(n) {
533
- return Ne.call(n) === "[object File]";
533
+ return ke.call(n) === "[object File]";
534
534
  }
535
535
  function vi(n) {
536
- return Ne.call(n) === "[object Blob]";
536
+ return ke.call(n) === "[object Blob]";
537
537
  }
538
538
  function es(n) {
539
- return Ne.call(n) === "[object Function]";
539
+ return ke.call(n) === "[object Function]";
540
540
  }
541
541
  function yi(n) {
542
542
  return Zr(n) && es(n.pipe);
543
543
  }
544
544
  function mi(n) {
545
- return Ne.call(n) === "[object URLSearchParams]";
545
+ return ke.call(n) === "[object URLSearchParams]";
546
546
  }
547
547
  function gi(n) {
548
548
  return n.trim ? n.trim() : n.replace(/^\s+|\s+$/g, "");
@@ -562,7 +562,7 @@ function qn(n, e) {
562
562
  function Rn() {
563
563
  var n = {};
564
564
  function e(s, i) {
565
- Dt(n[i]) && Dt(s) ? n[i] = Rn(n[i], s) : Dt(s) ? n[i] = Rn({}, s) : Un(s) ? n[i] = s.slice() : n[i] = s;
565
+ kt(n[i]) && kt(s) ? n[i] = Rn(n[i], s) : kt(s) ? n[i] = Rn({}, s) : Un(s) ? n[i] = s.slice() : n[i] = s;
566
566
  }
567
567
  for (var t = 0, r = arguments.length; t < r; t++)
568
568
  qn(arguments[t], e);
@@ -576,7 +576,7 @@ function bi(n, e, t) {
576
576
  function wi(n) {
577
577
  return n.charCodeAt(0) === 65279 && (n = n.slice(1)), n;
578
578
  }
579
- var oe = {
579
+ var ae = {
580
580
  isArray: Un,
581
581
  isArrayBuffer: Qr,
582
582
  isBuffer: ui,
@@ -585,7 +585,7 @@ var oe = {
585
585
  isString: fi,
586
586
  isNumber: hi,
587
587
  isObject: Zr,
588
- isPlainObject: Dt,
588
+ isPlainObject: kt,
589
589
  isUndefined: En,
590
590
  isDate: di,
591
591
  isFile: pi,
@@ -599,7 +599,7 @@ var oe = {
599
599
  extend: bi,
600
600
  trim: gi,
601
601
  stripBOM: wi
602
- }, ze = oe;
602
+ }, Ye = ae;
603
603
  function sr(n) {
604
604
  return encodeURIComponent(n).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
605
605
  }
@@ -609,13 +609,13 @@ var ts = function(e, t, r) {
609
609
  var s;
610
610
  if (r)
611
611
  s = r(t);
612
- else if (ze.isURLSearchParams(t))
612
+ else if (Ye.isURLSearchParams(t))
613
613
  s = t.toString();
614
614
  else {
615
615
  var i = [];
616
- ze.forEach(t, function(l, a) {
617
- l === null || typeof l > "u" || (ze.isArray(l) ? a = a + "[]" : l = [l], ze.forEach(l, function(f) {
618
- ze.isDate(f) ? f = f.toISOString() : ze.isObject(f) && (f = JSON.stringify(f)), i.push(sr(a) + "=" + sr(f));
616
+ Ye.forEach(t, function(l, a) {
617
+ l === null || typeof l > "u" || (Ye.isArray(l) ? a = a + "[]" : l = [l], Ye.forEach(l, function(f) {
618
+ Ye.isDate(f) ? f = f.toISOString() : Ye.isObject(f) && (f = JSON.stringify(f)), i.push(sr(a) + "=" + sr(f));
619
619
  }));
620
620
  }), s = i.join("&");
621
621
  }
@@ -624,7 +624,7 @@ var ts = function(e, t, r) {
624
624
  o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + s;
625
625
  }
626
626
  return e;
627
- }, Ei = oe;
627
+ }, Ei = ae;
628
628
  function Ut() {
629
629
  this.handlers = [];
630
630
  }
@@ -644,7 +644,7 @@ Ut.prototype.forEach = function(e) {
644
644
  r !== null && e(r);
645
645
  });
646
646
  };
647
- var Ri = Ut, Si = oe, Ti = function(e, t) {
647
+ var Ri = Ut, Si = ae, Ti = function(e, t) {
648
648
  Si.forEach(e, function(s, i) {
649
649
  i !== t && i.toUpperCase() === t.toUpperCase() && (e[t] = s, delete e[i]);
650
650
  });
@@ -675,8 +675,8 @@ function ss() {
675
675
  ir = 1;
676
676
  var n = ns;
677
677
  return Kt = function(t, r, s, i, o) {
678
- var c = new Error(t);
679
- return n(c, r, s, i, o);
678
+ var u = new Error(t);
679
+ return n(u, r, s, i, o);
680
680
  }, Kt;
681
681
  }
682
682
  var Gt, or;
@@ -701,12 +701,12 @@ function xi() {
701
701
  if (ar)
702
702
  return Xt;
703
703
  ar = 1;
704
- var n = oe;
704
+ var n = ae;
705
705
  return Xt = n.isStandardBrowserEnv() ? function() {
706
706
  return {
707
- write: function(r, s, i, o, c, l) {
707
+ write: function(r, s, i, o, u, l) {
708
708
  var a = [];
709
- a.push(r + "=" + encodeURIComponent(s)), n.isNumber(i) && a.push("expires=" + new Date(i).toGMTString()), n.isString(o) && a.push("path=" + o), n.isString(c) && a.push("domain=" + c), l === !0 && a.push("secure"), document.cookie = a.join("; ");
709
+ a.push(r + "=" + encodeURIComponent(s)), n.isNumber(i) && a.push("expires=" + new Date(i).toGMTString()), n.isString(o) && a.push("path=" + o), n.isString(u) && a.push("domain=" + u), l === !0 && a.push("secure"), document.cookie = a.join("; ");
710
710
  },
711
711
  read: function(r) {
712
712
  var s = document.cookie.match(new RegExp("(^|;\\s*)(" + r + ")=([^;]*)"));
@@ -741,7 +741,7 @@ function Ai() {
741
741
  }), Zt;
742
742
  }
743
743
  var en, lr;
744
- function ki() {
744
+ function Di() {
745
745
  if (lr)
746
746
  return en;
747
747
  lr = 1;
@@ -751,11 +751,11 @@ function ki() {
751
751
  }, en;
752
752
  }
753
753
  var tn, fr;
754
- function Di() {
754
+ function ki() {
755
755
  if (fr)
756
756
  return tn;
757
757
  fr = 1;
758
- var n = oe, e = [
758
+ var n = ae, e = [
759
759
  "age",
760
760
  "authorization",
761
761
  "content-length",
@@ -775,10 +775,10 @@ function Di() {
775
775
  "user-agent"
776
776
  ];
777
777
  return tn = function(r) {
778
- var s = {}, i, o, c;
778
+ var s = {}, i, o, u;
779
779
  return r && n.forEach(r.split(`
780
780
  `), function(a) {
781
- if (c = a.indexOf(":"), i = n.trim(a.substr(0, c)).toLowerCase(), o = n.trim(a.substr(c + 1)), i) {
781
+ if (u = a.indexOf(":"), i = n.trim(a.substr(0, u)).toLowerCase(), o = n.trim(a.substr(u + 1)), i) {
782
782
  if (s[i] && e.indexOf(i) >= 0)
783
783
  return;
784
784
  i === "set-cookie" ? s[i] = (s[i] ? s[i] : []).concat([o]) : s[i] = s[i] ? s[i] + ", " + o : o;
@@ -791,12 +791,12 @@ function Li() {
791
791
  if (hr)
792
792
  return nn;
793
793
  hr = 1;
794
- var n = oe;
794
+ var n = ae;
795
795
  return nn = n.isStandardBrowserEnv() ? function() {
796
796
  var t = /(msie|trident)/i.test(navigator.userAgent), r = document.createElement("a"), s;
797
797
  function i(o) {
798
- var c = o;
799
- return t && (r.setAttribute("href", c), c = r.href), r.setAttribute("href", c), {
798
+ var u = o;
799
+ return t && (r.setAttribute("href", u), u = r.href), r.setAttribute("href", u), {
800
800
  href: r.href,
801
801
  protocol: r.protocol ? r.protocol.replace(/:$/, "") : "",
802
802
  host: r.host,
@@ -807,8 +807,8 @@ function Li() {
807
807
  pathname: r.pathname.charAt(0) === "/" ? r.pathname : "/" + r.pathname
808
808
  };
809
809
  }
810
- return s = i(window.location.href), function(c) {
811
- var l = n.isString(c) ? i(c) : c;
810
+ return s = i(window.location.href), function(u) {
811
+ var l = n.isString(u) ? i(u) : u;
812
812
  return l.protocol === s.protocol && l.host === s.host;
813
813
  };
814
814
  }() : function() {
@@ -834,78 +834,78 @@ function vr() {
834
834
  if (pr)
835
835
  return sn;
836
836
  pr = 1;
837
- var n = oe, e = Oi(), t = xi(), r = ts, s = ki(), i = Di(), o = Li(), c = ss(), l = rs, a = qt();
837
+ var n = ae, e = Oi(), t = xi(), r = ts, s = Di(), i = ki(), o = Li(), u = ss(), l = rs, a = qt();
838
838
  return sn = function(f) {
839
839
  return new Promise(function(v, b) {
840
- var w = f.data, x = f.headers, g = f.responseType, S;
841
- function D() {
842
- f.cancelToken && f.cancelToken.unsubscribe(S), f.signal && f.signal.removeEventListener("abort", S);
840
+ var w = f.data, O = f.headers, g = f.responseType, R;
841
+ function k() {
842
+ f.cancelToken && f.cancelToken.unsubscribe(R), f.signal && f.signal.removeEventListener("abort", R);
843
843
  }
844
- n.isFormData(w) && delete x["Content-Type"];
844
+ n.isFormData(w) && delete O["Content-Type"];
845
845
  var m = new XMLHttpRequest();
846
846
  if (f.auth) {
847
- var V = f.auth.username || "", q = f.auth.password ? unescape(encodeURIComponent(f.auth.password)) : "";
848
- x.Authorization = "Basic " + btoa(V + ":" + q);
847
+ var M = f.auth.username || "", S = f.auth.password ? unescape(encodeURIComponent(f.auth.password)) : "";
848
+ O.Authorization = "Basic " + btoa(M + ":" + S);
849
849
  }
850
- var k = s(f.baseURL, f.url);
851
- m.open(f.method.toUpperCase(), r(k, f.params, f.paramsSerializer), !0), m.timeout = f.timeout;
852
- function E() {
850
+ var V = s(f.baseURL, f.url);
851
+ m.open(f.method.toUpperCase(), r(V, f.params, f.paramsSerializer), !0), m.timeout = f.timeout;
852
+ function D() {
853
853
  if (!!m) {
854
- var L = "getAllResponseHeaders" in m ? i(m.getAllResponseHeaders()) : null, X = !g || g === "text" || g === "json" ? m.responseText : m.response, ne = {
855
- data: X,
854
+ var L = "getAllResponseHeaders" in m ? i(m.getAllResponseHeaders()) : null, Q = !g || g === "text" || g === "json" ? m.responseText : m.response, ne = {
855
+ data: Q,
856
856
  status: m.status,
857
857
  statusText: m.statusText,
858
858
  headers: L,
859
859
  config: f,
860
860
  request: m
861
861
  };
862
- e(function($) {
863
- v($), D();
864
- }, function($) {
865
- b($), D();
862
+ e(function(F) {
863
+ v(F), k();
864
+ }, function(F) {
865
+ b(F), k();
866
866
  }, ne), m = null;
867
867
  }
868
868
  }
869
- if ("onloadend" in m ? m.onloadend = E : m.onreadystatechange = function() {
870
- !m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(E);
869
+ if ("onloadend" in m ? m.onloadend = D : m.onreadystatechange = function() {
870
+ !m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(D);
871
871
  }, m.onabort = function() {
872
- !m || (b(c("Request aborted", f, "ECONNABORTED", m)), m = null);
872
+ !m || (b(u("Request aborted", f, "ECONNABORTED", m)), m = null);
873
873
  }, m.onerror = function() {
874
- b(c("Network Error", f, null, m)), m = null;
874
+ b(u("Network Error", f, null, m)), m = null;
875
875
  }, m.ontimeout = function() {
876
- var X = f.timeout ? "timeout of " + f.timeout + "ms exceeded" : "timeout exceeded", ne = f.transitional || l;
877
- f.timeoutErrorMessage && (X = f.timeoutErrorMessage), b(c(
878
- X,
876
+ var Q = f.timeout ? "timeout of " + f.timeout + "ms exceeded" : "timeout exceeded", ne = f.transitional || l;
877
+ f.timeoutErrorMessage && (Q = f.timeoutErrorMessage), b(u(
878
+ Q,
879
879
  f,
880
880
  ne.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
881
881
  m
882
882
  )), m = null;
883
883
  }, n.isStandardBrowserEnv()) {
884
- var j = (f.withCredentials || o(k)) && f.xsrfCookieName ? t.read(f.xsrfCookieName) : void 0;
885
- j && (x[f.xsrfHeaderName] = j);
884
+ var j = (f.withCredentials || o(V)) && f.xsrfCookieName ? t.read(f.xsrfCookieName) : void 0;
885
+ j && (O[f.xsrfHeaderName] = j);
886
886
  }
887
- "setRequestHeader" in m && n.forEach(x, function(X, ne) {
888
- typeof w > "u" && ne.toLowerCase() === "content-type" ? delete x[ne] : m.setRequestHeader(ne, X);
889
- }), n.isUndefined(f.withCredentials) || (m.withCredentials = !!f.withCredentials), g && g !== "json" && (m.responseType = f.responseType), typeof f.onDownloadProgress == "function" && m.addEventListener("progress", f.onDownloadProgress), typeof f.onUploadProgress == "function" && m.upload && m.upload.addEventListener("progress", f.onUploadProgress), (f.cancelToken || f.signal) && (S = function(L) {
887
+ "setRequestHeader" in m && n.forEach(O, function(Q, ne) {
888
+ typeof w > "u" && ne.toLowerCase() === "content-type" ? delete O[ne] : m.setRequestHeader(ne, Q);
889
+ }), n.isUndefined(f.withCredentials) || (m.withCredentials = !!f.withCredentials), g && g !== "json" && (m.responseType = f.responseType), typeof f.onDownloadProgress == "function" && m.addEventListener("progress", f.onDownloadProgress), typeof f.onUploadProgress == "function" && m.upload && m.upload.addEventListener("progress", f.onUploadProgress), (f.cancelToken || f.signal) && (R = function(L) {
890
890
  !m || (b(!L || L && L.type ? new a("canceled") : L), m.abort(), m = null);
891
- }, f.cancelToken && f.cancelToken.subscribe(S), f.signal && (f.signal.aborted ? S() : f.signal.addEventListener("abort", S))), w || (w = null), m.send(w);
891
+ }, f.cancelToken && f.cancelToken.subscribe(R), f.signal && (f.signal.aborted ? R() : f.signal.addEventListener("abort", R))), w || (w = null), m.send(w);
892
892
  });
893
893
  }, sn;
894
894
  }
895
- var Q = oe, yr = Ti, Ni = ns, Pi = rs, Bi = {
895
+ var Z = ae, yr = Ti, Ni = ns, Pi = rs, Bi = {
896
896
  "Content-Type": "application/x-www-form-urlencoded"
897
897
  };
898
898
  function mr(n, e) {
899
- !Q.isUndefined(n) && Q.isUndefined(n["Content-Type"]) && (n["Content-Type"] = e);
899
+ !Z.isUndefined(n) && Z.isUndefined(n["Content-Type"]) && (n["Content-Type"] = e);
900
900
  }
901
901
  function Fi() {
902
902
  var n;
903
903
  return (typeof XMLHttpRequest < "u" || typeof process < "u" && Object.prototype.toString.call(process) === "[object process]") && (n = vr()), n;
904
904
  }
905
905
  function Ui(n, e, t) {
906
- if (Q.isString(n))
906
+ if (Z.isString(n))
907
907
  try {
908
- return (e || JSON.parse)(n), Q.trim(n);
908
+ return (e || JSON.parse)(n), Z.trim(n);
909
909
  } catch (r) {
910
910
  if (r.name !== "SyntaxError")
911
911
  throw r;
@@ -916,11 +916,11 @@ var It = {
916
916
  transitional: Pi,
917
917
  adapter: Fi(),
918
918
  transformRequest: [function(e, t) {
919
- return yr(t, "Accept"), yr(t, "Content-Type"), Q.isFormData(e) || Q.isArrayBuffer(e) || Q.isBuffer(e) || Q.isStream(e) || Q.isFile(e) || Q.isBlob(e) ? e : Q.isArrayBufferView(e) ? e.buffer : Q.isURLSearchParams(e) ? (mr(t, "application/x-www-form-urlencoded;charset=utf-8"), e.toString()) : Q.isObject(e) || t && t["Content-Type"] === "application/json" ? (mr(t, "application/json"), Ui(e)) : e;
919
+ return yr(t, "Accept"), yr(t, "Content-Type"), Z.isFormData(e) || Z.isArrayBuffer(e) || Z.isBuffer(e) || Z.isStream(e) || Z.isFile(e) || Z.isBlob(e) ? e : Z.isArrayBufferView(e) ? e.buffer : Z.isURLSearchParams(e) ? (mr(t, "application/x-www-form-urlencoded;charset=utf-8"), e.toString()) : Z.isObject(e) || t && t["Content-Type"] === "application/json" ? (mr(t, "application/json"), Ui(e)) : e;
920
920
  }],
921
921
  transformResponse: [function(e) {
922
922
  var t = this.transitional || It.transitional, r = t && t.silentJSONParsing, s = t && t.forcedJSONParsing, i = !r && this.responseType === "json";
923
- if (i || s && Q.isString(e) && e.length)
923
+ if (i || s && Z.isString(e) && e.length)
924
924
  try {
925
925
  return JSON.parse(e);
926
926
  } catch (o) {
@@ -943,13 +943,13 @@ var It = {
943
943
  }
944
944
  }
945
945
  };
946
- Q.forEach(["delete", "get", "head"], function(e) {
946
+ Z.forEach(["delete", "get", "head"], function(e) {
947
947
  It.headers[e] = {};
948
948
  });
949
- Q.forEach(["post", "put", "patch"], function(e) {
950
- It.headers[e] = Q.merge(Bi);
949
+ Z.forEach(["post", "put", "patch"], function(e) {
950
+ It.headers[e] = Z.merge(Bi);
951
951
  });
952
- var In = It, qi = oe, Ii = In, Vi = function(e, t, r) {
952
+ var In = It, qi = ae, Ii = In, Vi = function(e, t, r) {
953
953
  var s = this || Ii;
954
954
  return qi.forEach(r, function(o) {
955
955
  e = o.call(s, e, t);
@@ -960,7 +960,7 @@ function is() {
960
960
  return !!(e && e.__CANCEL__);
961
961
  }), on;
962
962
  }
963
- var _r = oe, an = Vi, ji = is(), $i = In, Mi = qt();
963
+ var _r = ae, an = Vi, ji = is(), $i = In, Mi = qt();
964
964
  function un(n) {
965
965
  if (n.cancelToken && n.cancelToken.throwIfRequested(), n.signal && n.signal.aborted)
966
966
  throw new Mi("canceled");
@@ -997,26 +997,26 @@ var Wi = function(e) {
997
997
  e.transformResponse
998
998
  ))), Promise.reject(s);
999
999
  });
1000
- }, ae = oe, os = function(e, t) {
1000
+ }, ue = ae, os = function(e, t) {
1001
1001
  t = t || {};
1002
1002
  var r = {};
1003
1003
  function s(h, f) {
1004
- return ae.isPlainObject(h) && ae.isPlainObject(f) ? ae.merge(h, f) : ae.isPlainObject(f) ? ae.merge({}, f) : ae.isArray(f) ? f.slice() : f;
1004
+ return ue.isPlainObject(h) && ue.isPlainObject(f) ? ue.merge(h, f) : ue.isPlainObject(f) ? ue.merge({}, f) : ue.isArray(f) ? f.slice() : f;
1005
1005
  }
1006
1006
  function i(h) {
1007
- if (ae.isUndefined(t[h])) {
1008
- if (!ae.isUndefined(e[h]))
1007
+ if (ue.isUndefined(t[h])) {
1008
+ if (!ue.isUndefined(e[h]))
1009
1009
  return s(void 0, e[h]);
1010
1010
  } else
1011
1011
  return s(e[h], t[h]);
1012
1012
  }
1013
1013
  function o(h) {
1014
- if (!ae.isUndefined(t[h]))
1014
+ if (!ue.isUndefined(t[h]))
1015
1015
  return s(void 0, t[h]);
1016
1016
  }
1017
- function c(h) {
1018
- if (ae.isUndefined(t[h])) {
1019
- if (!ae.isUndefined(e[h]))
1017
+ function u(h) {
1018
+ if (ue.isUndefined(t[h])) {
1019
+ if (!ue.isUndefined(e[h]))
1020
1020
  return s(void 0, e[h]);
1021
1021
  } else
1022
1022
  return s(void 0, t[h]);
@@ -1031,33 +1031,33 @@ var Wi = function(e) {
1031
1031
  url: o,
1032
1032
  method: o,
1033
1033
  data: o,
1034
- baseURL: c,
1035
- transformRequest: c,
1036
- transformResponse: c,
1037
- paramsSerializer: c,
1038
- timeout: c,
1039
- timeoutMessage: c,
1040
- withCredentials: c,
1041
- adapter: c,
1042
- responseType: c,
1043
- xsrfCookieName: c,
1044
- xsrfHeaderName: c,
1045
- onUploadProgress: c,
1046
- onDownloadProgress: c,
1047
- decompress: c,
1048
- maxContentLength: c,
1049
- maxBodyLength: c,
1050
- transport: c,
1051
- httpAgent: c,
1052
- httpsAgent: c,
1053
- cancelToken: c,
1054
- socketPath: c,
1055
- responseEncoding: c,
1034
+ baseURL: u,
1035
+ transformRequest: u,
1036
+ transformResponse: u,
1037
+ paramsSerializer: u,
1038
+ timeout: u,
1039
+ timeoutMessage: u,
1040
+ withCredentials: u,
1041
+ adapter: u,
1042
+ responseType: u,
1043
+ xsrfCookieName: u,
1044
+ xsrfHeaderName: u,
1045
+ onUploadProgress: u,
1046
+ onDownloadProgress: u,
1047
+ decompress: u,
1048
+ maxContentLength: u,
1049
+ maxBodyLength: u,
1050
+ transport: u,
1051
+ httpAgent: u,
1052
+ httpsAgent: u,
1053
+ cancelToken: u,
1054
+ socketPath: u,
1055
+ responseEncoding: u,
1056
1056
  validateStatus: l
1057
1057
  };
1058
- return ae.forEach(Object.keys(e).concat(Object.keys(t)), function(f) {
1058
+ return ue.forEach(Object.keys(e).concat(Object.keys(t)), function(f) {
1059
1059
  var p = a[f] || i, v = p(f);
1060
- ae.isUndefined(v) && p !== l || (r[f] = v);
1060
+ ue.isUndefined(v) && p !== l || (r[f] = v);
1061
1061
  }), r;
1062
1062
  }, cn, br;
1063
1063
  function as() {
@@ -1076,7 +1076,7 @@ Vn.transitional = function(e, t, r) {
1076
1076
  function s(i, o) {
1077
1077
  return "[Axios v" + Hi + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
1078
1078
  }
1079
- return function(i, o, c) {
1079
+ return function(i, o, u) {
1080
1080
  if (e === !1)
1081
1081
  throw new Error(s(o, " has been removed" + (t ? " in " + t : "")));
1082
1082
  return t && !wr[o] && (wr[o] = !0, console.warn(
@@ -1084,7 +1084,7 @@ Vn.transitional = function(e, t, r) {
1084
1084
  o,
1085
1085
  " has been deprecated since v" + t + " and will be removed in the near future"
1086
1086
  )
1087
- )), e ? e(i, o, c) : !0;
1087
+ )), e ? e(i, o, u) : !0;
1088
1088
  };
1089
1089
  };
1090
1090
  function Ji(n, e, t) {
@@ -1093,7 +1093,7 @@ function Ji(n, e, t) {
1093
1093
  for (var r = Object.keys(n), s = r.length; s-- > 0; ) {
1094
1094
  var i = r[s], o = e[i];
1095
1095
  if (o) {
1096
- var c = n[i], l = c === void 0 || o(c, i, n);
1096
+ var u = n[i], l = u === void 0 || o(u, i, n);
1097
1097
  if (l !== !0)
1098
1098
  throw new TypeError("option " + i + " must be " + l);
1099
1099
  continue;
@@ -1105,7 +1105,7 @@ function Ji(n, e, t) {
1105
1105
  var Yi = {
1106
1106
  assertOptions: Ji,
1107
1107
  validators: Vn
1108
- }, us = oe, zi = ts, Er = Ri, Rr = Wi, Vt = os, cs = Yi, Ke = cs.validators;
1108
+ }, us = ae, zi = ts, Er = Ri, Rr = Wi, Vt = os, cs = Yi, ze = cs.validators;
1109
1109
  function pt(n) {
1110
1110
  this.defaults = n, this.interceptors = {
1111
1111
  request: new Er(),
@@ -1116,9 +1116,9 @@ pt.prototype.request = function(e, t) {
1116
1116
  typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t = Vt(this.defaults, t), t.method ? t.method = t.method.toLowerCase() : this.defaults.method ? t.method = this.defaults.method.toLowerCase() : t.method = "get";
1117
1117
  var r = t.transitional;
1118
1118
  r !== void 0 && cs.assertOptions(r, {
1119
- silentJSONParsing: Ke.transitional(Ke.boolean),
1120
- forcedJSONParsing: Ke.transitional(Ke.boolean),
1121
- clarifyTimeoutError: Ke.transitional(Ke.boolean)
1119
+ silentJSONParsing: ze.transitional(ze.boolean),
1120
+ forcedJSONParsing: ze.transitional(ze.boolean),
1121
+ clarifyTimeoutError: ze.transitional(ze.boolean)
1122
1122
  }, !1);
1123
1123
  var s = [], i = !0;
1124
1124
  this.interceptors.request.forEach(function(v) {
@@ -1128,12 +1128,12 @@ pt.prototype.request = function(e, t) {
1128
1128
  this.interceptors.response.forEach(function(v) {
1129
1129
  o.push(v.fulfilled, v.rejected);
1130
1130
  });
1131
- var c;
1131
+ var u;
1132
1132
  if (!i) {
1133
1133
  var l = [Rr, void 0];
1134
- for (Array.prototype.unshift.apply(l, s), l = l.concat(o), c = Promise.resolve(t); l.length; )
1135
- c = c.then(l.shift(), l.shift());
1136
- return c;
1134
+ for (Array.prototype.unshift.apply(l, s), l = l.concat(o), u = Promise.resolve(t); l.length; )
1135
+ u = u.then(l.shift(), l.shift());
1136
+ return u;
1137
1137
  }
1138
1138
  for (var a = t; s.length; ) {
1139
1139
  var h = s.shift(), f = s.shift();
@@ -1145,13 +1145,13 @@ pt.prototype.request = function(e, t) {
1145
1145
  }
1146
1146
  }
1147
1147
  try {
1148
- c = Rr(a);
1148
+ u = Rr(a);
1149
1149
  } catch (p) {
1150
1150
  return Promise.reject(p);
1151
1151
  }
1152
1152
  for (; o.length; )
1153
- c = c.then(o.shift(), o.shift());
1154
- return c;
1153
+ u = u.then(o.shift(), o.shift());
1154
+ return u;
1155
1155
  };
1156
1156
  pt.prototype.getUri = function(e) {
1157
1157
  return e = Vt(this.defaults, e), zi(e.url, e.params, e.paramsSerializer).replace(/^\?/, "");
@@ -1190,18 +1190,18 @@ function Gi() {
1190
1190
  var s = this;
1191
1191
  this.promise.then(function(i) {
1192
1192
  if (!!s._listeners) {
1193
- var o, c = s._listeners.length;
1194
- for (o = 0; o < c; o++)
1193
+ var o, u = s._listeners.length;
1194
+ for (o = 0; o < u; o++)
1195
1195
  s._listeners[o](i);
1196
1196
  s._listeners = null;
1197
1197
  }
1198
1198
  }), this.promise.then = function(i) {
1199
- var o, c = new Promise(function(l) {
1199
+ var o, u = new Promise(function(l) {
1200
1200
  s.subscribe(l), o = l;
1201
1201
  }).then(i);
1202
- return c.cancel = function() {
1202
+ return u.cancel = function() {
1203
1203
  s.unsubscribe(o);
1204
- }, c;
1204
+ }, u;
1205
1205
  }, t(function(o) {
1206
1206
  s.reason || (s.reason = new n(o), r(s.reason));
1207
1207
  });
@@ -1243,12 +1243,12 @@ function Qi() {
1243
1243
  if (Or)
1244
1244
  return hn;
1245
1245
  Or = 1;
1246
- var n = oe;
1246
+ var n = ae;
1247
1247
  return hn = function(t) {
1248
1248
  return n.isObject(t) && t.isAxiosError === !0;
1249
1249
  }, hn;
1250
1250
  }
1251
- var xr = oe, Zi = Xr, Lt = Ki, eo = os, to = In;
1251
+ var xr = ae, Zi = Xr, Lt = Ki, eo = os, to = In;
1252
1252
  function ls(n) {
1253
1253
  var e = new Lt(n), t = Zi(Lt.prototype.request, e);
1254
1254
  return xr.extend(t, Lt.prototype, e), xr.extend(t, e), t.create = function(s) {
@@ -1271,8 +1271,8 @@ Fn.exports.default = _e;
1271
1271
  (function(n) {
1272
1272
  n.exports = Fn.exports;
1273
1273
  })(Gr);
1274
- Object.defineProperty(Ge, "__esModule", { value: !0 });
1275
- Ge.getRequestHeaders = Ge.getAxiosClient = void 0;
1274
+ Object.defineProperty(Ke, "__esModule", { value: !0 });
1275
+ Ke.getRequestHeaders = Ke.getAxiosClient = void 0;
1276
1276
  var no = Gr.exports;
1277
1277
  function ro(n, e, t, r) {
1278
1278
  return no.default.create({
@@ -1281,7 +1281,7 @@ function ro(n, e, t, r) {
1281
1281
  withCredentials: !0
1282
1282
  });
1283
1283
  }
1284
- Ge.getAxiosClient = ro;
1284
+ Ke.getAxiosClient = ro;
1285
1285
  function fs(n, e, t) {
1286
1286
  n === void 0 && (n = !1);
1287
1287
  var r = {
@@ -1290,16 +1290,16 @@ function fs(n, e, t) {
1290
1290
  };
1291
1291
  return n && e && t && (r.Authorization = "".concat(e, " ").concat(t())), typeof window < "u" && typeof document < "u" && (window.location && (r["X-Frappe-Site-Name"] = window.location.hostname), window.csrf_token && window.csrf_token !== "{{ csrf_token }}" && (r["X-Frappe-CSRF-Token"] = window.csrf_token)), r;
1292
1292
  }
1293
- Ge.getRequestHeaders = fs;
1293
+ Ke.getRequestHeaders = fs;
1294
1294
  var Cr;
1295
1295
  function so() {
1296
1296
  if (Cr)
1297
1297
  return rt;
1298
1298
  Cr = 1, Object.defineProperty(rt, "__esModule", { value: !0 }), rt.FrappeApp = void 0;
1299
- var n = hs(), e = ft, t = ht, r = dt, s = Ge, i = function() {
1300
- function o(c, l, a) {
1299
+ var n = hs(), e = ft, t = ht, r = dt, s = Ke, i = function() {
1300
+ function o(u, l, a) {
1301
1301
  var h, f;
1302
- this.url = c, this.name = a != null ? a : "FrappeApp", this.useToken = (h = l == null ? void 0 : l.useToken) !== null && h !== void 0 ? h : !1, this.token = l == null ? void 0 : l.token, this.tokenType = (f = l == null ? void 0 : l.type) !== null && f !== void 0 ? f : "Bearer", this.axios = (0, s.getAxiosClient)(this.url, this.useToken, this.token, this.tokenType);
1302
+ this.url = u, this.name = a != null ? a : "FrappeApp", this.useToken = (h = l == null ? void 0 : l.useToken) !== null && h !== void 0 ? h : !1, this.token = l == null ? void 0 : l.token, this.tokenType = (f = l == null ? void 0 : l.type) !== null && f !== void 0 ? f : "Bearer", this.axios = (0, s.getAxiosClient)(this.url, this.useToken, this.token, this.tokenType);
1303
1303
  }
1304
1304
  return o.prototype.auth = function() {
1305
1305
  return new n.FrappeAuth(this.url, this.axios, this.useToken, this.token, this.tokenType);
@@ -1329,7 +1329,7 @@ var jt = {}, ye = B && B.__assign || function() {
1329
1329
  });
1330
1330
  }
1331
1331
  return new (t || (t = Promise))(function(i, o) {
1332
- function c(h) {
1332
+ function u(h) {
1333
1333
  try {
1334
1334
  a(r.next(h));
1335
1335
  } catch (f) {
@@ -1344,7 +1344,7 @@ var jt = {}, ye = B && B.__assign || function() {
1344
1344
  }
1345
1345
  }
1346
1346
  function a(h) {
1347
- h.done ? i(h.value) : s(h.value).then(c, l);
1347
+ h.done ? i(h.value) : s(h.value).then(u, l);
1348
1348
  }
1349
1349
  a((r = r.apply(n, e || [])).next());
1350
1350
  });
@@ -1354,10 +1354,10 @@ var jt = {}, ye = B && B.__assign || function() {
1354
1354
  throw i[1];
1355
1355
  return i[1];
1356
1356
  }, trys: [], ops: [] }, r, s, i, o;
1357
- return o = { next: c(0), throw: c(1), return: c(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
1357
+ return o = { next: u(0), throw: u(1), return: u(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
1358
1358
  return this;
1359
1359
  }), o;
1360
- function c(a) {
1360
+ function u(a) {
1361
1361
  return function(h) {
1362
1362
  return l([a, h]);
1363
1363
  };
@@ -1430,8 +1430,8 @@ var io = function() {
1430
1430
  }).then(function(o) {
1431
1431
  return o.data;
1432
1432
  }).catch(function(o) {
1433
- var c, l;
1434
- throw ye(ye({}, o.response.data), { httpStatus: o.response.status, httpStatusText: o.response.statusText, message: (c = o.response.data.message) !== null && c !== void 0 ? c : "There was an error while logging in", exception: (l = o.response.data.exception) !== null && l !== void 0 ? l : "" });
1433
+ var u, l;
1434
+ throw ye(ye({}, o.response.data), { httpStatus: o.response.status, httpStatusText: o.response.statusText, message: (u = o.response.data.message) !== null && u !== void 0 ? u : "There was an error while logging in", exception: (l = o.response.data.exception) !== null && l !== void 0 ? l : "" });
1435
1435
  })];
1436
1436
  });
1437
1437
  });
@@ -1477,10 +1477,10 @@ function hs() {
1477
1477
  return Ar || (Ar = 1, function(n) {
1478
1478
  var e = B && B.__createBinding || (Object.create ? function(r, s, i, o) {
1479
1479
  o === void 0 && (o = i);
1480
- var c = Object.getOwnPropertyDescriptor(s, i);
1481
- (!c || ("get" in c ? !s.__esModule : c.writable || c.configurable)) && (c = { enumerable: !0, get: function() {
1480
+ var u = Object.getOwnPropertyDescriptor(s, i);
1481
+ (!u || ("get" in u ? !s.__esModule : u.writable || u.configurable)) && (u = { enumerable: !0, get: function() {
1482
1482
  return s[i];
1483
- } }), Object.defineProperty(r, o, c);
1483
+ } }), Object.defineProperty(r, o, u);
1484
1484
  } : function(r, s, i, o) {
1485
1485
  o === void 0 && (o = i), r[o] = s[i];
1486
1486
  }), t = B && B.__exportStar || function(r, s) {
@@ -1500,23 +1500,23 @@ var oo = hs(), ds = { exports: {} }, dn = {};
1500
1500
  * This source code is licensed under the MIT license found in the
1501
1501
  * LICENSE file in the root directory of this source tree.
1502
1502
  */
1503
- var kr;
1503
+ var Dr;
1504
1504
  function ao() {
1505
- if (kr)
1505
+ if (Dr)
1506
1506
  return dn;
1507
- kr = 1;
1508
- var n = Ie;
1507
+ Dr = 1;
1508
+ var n = qe;
1509
1509
  function e(f, p) {
1510
1510
  return f === p && (f !== 0 || 1 / f === 1 / p) || f !== f && p !== p;
1511
1511
  }
1512
1512
  var t = typeof Object.is == "function" ? Object.is : e, r = n.useState, s = n.useEffect, i = n.useLayoutEffect, o = n.useDebugValue;
1513
- function c(f, p) {
1514
- var v = p(), b = r({ inst: { value: v, getSnapshot: p } }), w = b[0].inst, x = b[1];
1513
+ function u(f, p) {
1514
+ var v = p(), b = r({ inst: { value: v, getSnapshot: p } }), w = b[0].inst, O = b[1];
1515
1515
  return i(function() {
1516
- w.value = v, w.getSnapshot = p, l(w) && x({ inst: w });
1516
+ w.value = v, w.getSnapshot = p, l(w) && O({ inst: w });
1517
1517
  }, [f, v, p]), s(function() {
1518
- return l(w) && x({ inst: w }), f(function() {
1519
- l(w) && x({ inst: w });
1518
+ return l(w) && O({ inst: w }), f(function() {
1519
+ l(w) && O({ inst: w });
1520
1520
  });
1521
1521
  }, [f]), o(v), v;
1522
1522
  }
@@ -1533,7 +1533,7 @@ function ao() {
1533
1533
  function a(f, p) {
1534
1534
  return p();
1535
1535
  }
1536
- var h = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? a : c;
1536
+ var h = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? a : u;
1537
1537
  return dn.useSyncExternalStore = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore : h, dn;
1538
1538
  }
1539
1539
  var pn = {};
@@ -1546,85 +1546,85 @@ var pn = {};
1546
1546
  * This source code is licensed under the MIT license found in the
1547
1547
  * LICENSE file in the root directory of this source tree.
1548
1548
  */
1549
- var Dr;
1549
+ var kr;
1550
1550
  function uo() {
1551
- return Dr || (Dr = 1, process.env.NODE_ENV !== "production" && function() {
1551
+ return kr || (kr = 1, process.env.NODE_ENV !== "production" && function() {
1552
1552
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
1553
- var n = Ie, e = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1554
- function t(D) {
1553
+ var n = qe, e = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1554
+ function t(k) {
1555
1555
  {
1556
- for (var m = arguments.length, V = new Array(m > 1 ? m - 1 : 0), q = 1; q < m; q++)
1557
- V[q - 1] = arguments[q];
1558
- r("error", D, V);
1556
+ for (var m = arguments.length, M = new Array(m > 1 ? m - 1 : 0), S = 1; S < m; S++)
1557
+ M[S - 1] = arguments[S];
1558
+ r("error", k, M);
1559
1559
  }
1560
1560
  }
1561
- function r(D, m, V) {
1561
+ function r(k, m, M) {
1562
1562
  {
1563
- var q = e.ReactDebugCurrentFrame, k = q.getStackAddendum();
1564
- k !== "" && (m += "%s", V = V.concat([k]));
1565
- var E = V.map(function(j) {
1563
+ var S = e.ReactDebugCurrentFrame, V = S.getStackAddendum();
1564
+ V !== "" && (m += "%s", M = M.concat([V]));
1565
+ var D = M.map(function(j) {
1566
1566
  return String(j);
1567
1567
  });
1568
- E.unshift("Warning: " + m), Function.prototype.apply.call(console[D], console, E);
1568
+ D.unshift("Warning: " + m), Function.prototype.apply.call(console[k], console, D);
1569
1569
  }
1570
1570
  }
1571
- function s(D, m) {
1572
- return D === m && (D !== 0 || 1 / D === 1 / m) || D !== D && m !== m;
1571
+ function s(k, m) {
1572
+ return k === m && (k !== 0 || 1 / k === 1 / m) || k !== k && m !== m;
1573
1573
  }
1574
- var i = typeof Object.is == "function" ? Object.is : s, o = n.useState, c = n.useEffect, l = n.useLayoutEffect, a = n.useDebugValue, h = !1, f = !1;
1575
- function p(D, m, V) {
1574
+ var i = typeof Object.is == "function" ? Object.is : s, o = n.useState, u = n.useEffect, l = n.useLayoutEffect, a = n.useDebugValue, h = !1, f = !1;
1575
+ function p(k, m, M) {
1576
1576
  h || n.startTransition !== void 0 && (h = !0, t("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
1577
- var q = m();
1577
+ var S = m();
1578
1578
  if (!f) {
1579
- var k = m();
1580
- i(q, k) || (t("The result of getSnapshot should be cached to avoid an infinite loop"), f = !0);
1579
+ var V = m();
1580
+ i(S, V) || (t("The result of getSnapshot should be cached to avoid an infinite loop"), f = !0);
1581
1581
  }
1582
- var E = o({
1582
+ var D = o({
1583
1583
  inst: {
1584
- value: q,
1584
+ value: S,
1585
1585
  getSnapshot: m
1586
1586
  }
1587
- }), j = E[0].inst, L = E[1];
1587
+ }), j = D[0].inst, L = D[1];
1588
1588
  return l(function() {
1589
- j.value = q, j.getSnapshot = m, v(j) && L({
1589
+ j.value = S, j.getSnapshot = m, v(j) && L({
1590
1590
  inst: j
1591
1591
  });
1592
- }, [D, q, m]), c(function() {
1592
+ }, [k, S, m]), u(function() {
1593
1593
  v(j) && L({
1594
1594
  inst: j
1595
1595
  });
1596
- var X = function() {
1596
+ var Q = function() {
1597
1597
  v(j) && L({
1598
1598
  inst: j
1599
1599
  });
1600
1600
  };
1601
- return D(X);
1602
- }, [D]), a(q), q;
1601
+ return k(Q);
1602
+ }, [k]), a(S), S;
1603
1603
  }
1604
- function v(D) {
1605
- var m = D.getSnapshot, V = D.value;
1604
+ function v(k) {
1605
+ var m = k.getSnapshot, M = k.value;
1606
1606
  try {
1607
- var q = m();
1608
- return !i(V, q);
1607
+ var S = m();
1608
+ return !i(M, S);
1609
1609
  } catch {
1610
1610
  return !0;
1611
1611
  }
1612
1612
  }
1613
- function b(D, m, V) {
1613
+ function b(k, m, M) {
1614
1614
  return m();
1615
1615
  }
1616
- var w = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", x = !w, g = x ? b : p, S = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore : g;
1617
- pn.useSyncExternalStore = S, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
1616
+ var w = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", O = !w, g = O ? b : p, R = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore : g;
1617
+ pn.useSyncExternalStore = R, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
1618
1618
  }()), pn;
1619
1619
  }
1620
1620
  (function(n) {
1621
1621
  process.env.NODE_ENV === "production" ? n.exports = ao() : n.exports = uo();
1622
1622
  })(ds);
1623
- const De = () => {
1624
- }, he = De(), vn = Object, C = (n) => n === he, Ce = (n) => typeof n == "function", Le = (n, e) => ({
1623
+ const Ae = () => {
1624
+ }, oe = Ae(), vn = Object, C = (n) => n === oe, Oe = (n) => typeof n == "function", De = (n, e) => ({
1625
1625
  ...n,
1626
1626
  ...e
1627
- }), co = (n) => Ce(n.then), Tt = /* @__PURE__ */ new WeakMap();
1627
+ }), co = (n) => Oe(n.then), Tt = /* @__PURE__ */ new WeakMap();
1628
1628
  let lo = 0;
1629
1629
  const ct = (n) => {
1630
1630
  const e = typeof n, t = n && n.constructor, r = t == Date;
@@ -1647,14 +1647,14 @@ const ct = (n) => {
1647
1647
  } else
1648
1648
  s = r ? n.toJSON() : e == "symbol" ? n.toString() : e == "string" ? JSON.stringify(n) : "" + n;
1649
1649
  return s;
1650
- }, xe = /* @__PURE__ */ new WeakMap(), yn = {}, Ot = {}, jn = "undefined", $t = typeof window != jn, Sn = typeof document != jn, fo = () => $t && typeof window.requestAnimationFrame != jn, ps = (n, e) => {
1651
- const t = xe.get(n);
1650
+ }, Te = /* @__PURE__ */ new WeakMap(), yn = {}, Ot = {}, jn = "undefined", $t = typeof window != jn, Sn = typeof document != jn, fo = () => $t && typeof window.requestAnimationFrame != jn, ps = (n, e) => {
1651
+ const t = Te.get(n);
1652
1652
  return [
1653
1653
  () => !C(e) && n.get(e) || yn,
1654
1654
  (r) => {
1655
1655
  if (!C(e)) {
1656
1656
  const s = n.get(e);
1657
- e in Ot || (Ot[e] = s), t[5](e, Le(s, r), s || yn);
1657
+ e in Ot || (Ot[e] = s), t[5](e, De(s, r), s || yn);
1658
1658
  }
1659
1659
  },
1660
1660
  t[6],
@@ -1666,8 +1666,8 @@ const ho = () => Tn, [On, xn] = $t && window.addEventListener ? [
1666
1666
  window.addEventListener.bind(window),
1667
1667
  window.removeEventListener.bind(window)
1668
1668
  ] : [
1669
- De,
1670
- De
1669
+ Ae,
1670
+ Ae
1671
1671
  ], po = () => {
1672
1672
  const n = Sn && document.visibilityState;
1673
1673
  return C(n) || n !== "hidden";
@@ -1688,11 +1688,11 @@ const ho = () => Tn, [On, xn] = $t && window.addEventListener ? [
1688
1688
  }, go = {
1689
1689
  initFocus: vo,
1690
1690
  initReconnect: yo
1691
- }, Lr = !Ie.useId, lt = !$t || "Deno" in window, _o = (n) => fo() ? window.requestAnimationFrame(n) : setTimeout(n, 1), mn = lt ? Xe : ei, gn = typeof navigator < "u" && navigator.connection, Nr = !lt && gn && ([
1691
+ }, Lr = !qe.useId, lt = !$t || "Deno" in window, _o = (n) => fo() ? window.requestAnimationFrame(n) : setTimeout(n, 1), mn = lt ? Ge : ei, gn = typeof navigator < "u" && navigator.connection, Nr = !lt && gn && ([
1692
1692
  "slow-2g",
1693
1693
  "2g"
1694
1694
  ].includes(gn.effectiveType) || gn.saveData), $n = (n) => {
1695
- if (Ce(n))
1695
+ if (Oe(n))
1696
1696
  try {
1697
1697
  n = n();
1698
1698
  } catch {
@@ -1714,20 +1714,20 @@ var st = {
1714
1714
  RECONNECT_EVENT: ys
1715
1715
  };
1716
1716
  async function gs(...n) {
1717
- const [e, t, r, s] = n, i = Le({
1717
+ const [e, t, r, s] = n, i = De({
1718
1718
  populateCache: !0,
1719
1719
  throwOnError: !0
1720
1720
  }, typeof s == "boolean" ? {
1721
1721
  revalidate: s
1722
1722
  } : s || {});
1723
1723
  let o = i.populateCache;
1724
- const c = i.rollbackOnError;
1724
+ const u = i.rollbackOnError;
1725
1725
  let l = i.optimisticData;
1726
- const a = i.revalidate !== !1, h = (v) => typeof c == "function" ? c(v) : c !== !1, f = i.throwOnError;
1727
- if (Ce(t)) {
1726
+ const a = i.revalidate !== !1, h = (v) => typeof u == "function" ? u(v) : u !== !1, f = i.throwOnError;
1727
+ if (Oe(t)) {
1728
1728
  const v = t, b = [], w = e.keys();
1729
- for (const x of w)
1730
- !/^\$(inf|sub)\$/.test(x) && v(e.get(x)._k) && b.push(x);
1729
+ for (const O of w)
1730
+ !/^\$(inf|sub)\$/.test(O) && v(e.get(O)._k) && b.push(O);
1731
1731
  return Promise.all(b.map(p));
1732
1732
  }
1733
1733
  return p(t);
@@ -1735,61 +1735,74 @@ async function gs(...n) {
1735
1735
  const [b] = $n(v);
1736
1736
  if (!b)
1737
1737
  return;
1738
- const [w, x] = ps(e, b), [g, S, D, m] = xe.get(e), V = g[b], q = () => a && (delete D[b], delete m[b], V && V[0]) ? V[0](ms).then(() => w().data) : w().data;
1738
+ const [w, O] = ps(e, b), [g, R, k, m] = Te.get(e), M = () => {
1739
+ const F = g[b];
1740
+ return a && (delete k[b], delete m[b], F && F[0]) ? F[0](ms).then(() => w().data) : w().data;
1741
+ };
1739
1742
  if (n.length < 3)
1740
- return q();
1741
- let k = r, E;
1742
- const j = Cn();
1743
- S[b] = [
1744
- j,
1743
+ return M();
1744
+ let S = r, V;
1745
+ const D = Cn();
1746
+ R[b] = [
1747
+ D,
1745
1748
  0
1746
1749
  ];
1747
- const L = !C(l), X = w(), ne = X.data, Z = X._c, $ = C(Z) ? ne : Z;
1748
- if (L && (l = Ce(l) ? l($, ne) : l, x({
1750
+ const j = !C(l), L = w(), Q = L.data, ne = L._c, G = C(ne) ? Q : ne;
1751
+ if (j && (l = Oe(l) ? l(G, Q) : l, O({
1749
1752
  data: l,
1750
- _c: $
1751
- })), Ce(k))
1753
+ _c: G
1754
+ })), Oe(S))
1752
1755
  try {
1753
- k = k($);
1754
- } catch (we) {
1755
- E = we;
1756
+ S = S(G);
1757
+ } catch (F) {
1758
+ V = F;
1756
1759
  }
1757
- if (k && co(k))
1758
- if (k = await k.catch((we) => {
1759
- E = we;
1760
- }), j !== S[b][0]) {
1761
- if (E)
1762
- throw E;
1763
- return k;
1760
+ if (S && co(S))
1761
+ if (S = await S.catch((F) => {
1762
+ V = F;
1763
+ }), D !== R[b][0]) {
1764
+ if (V)
1765
+ throw V;
1766
+ return S;
1764
1767
  } else
1765
- E && L && h(E) && (o = !0, k = $, x({
1766
- data: k,
1767
- _c: he
1768
+ V && j && h(V) && (o = !0, O({
1769
+ data: G,
1770
+ _c: oe
1768
1771
  }));
1769
- o && (E || (Ce(o) && (k = o(k, $)), x({
1770
- data: k,
1771
- error: he,
1772
- _c: he
1773
- }))), S[b][1] = Cn();
1774
- const be = await q();
1775
- if (x({
1776
- _c: he
1777
- }), E) {
1772
+ if (o && !V)
1773
+ if (Oe(o)) {
1774
+ const F = o(S, G);
1775
+ O({
1776
+ data: F,
1777
+ error: oe,
1778
+ _c: oe
1779
+ });
1780
+ } else
1781
+ O({
1782
+ data: S,
1783
+ error: oe,
1784
+ _c: oe
1785
+ });
1786
+ if (R[b][1] = Cn(), Promise.resolve(M()).then(() => {
1787
+ O({
1788
+ _c: oe
1789
+ });
1790
+ }), V) {
1778
1791
  if (f)
1779
- throw E;
1792
+ throw V;
1780
1793
  return;
1781
1794
  }
1782
- return o ? be : k;
1795
+ return S;
1783
1796
  }
1784
1797
  }
1785
1798
  const Pr = (n, e) => {
1786
1799
  for (const t in n)
1787
1800
  n[t][0] && n[t][0](e);
1788
1801
  }, Eo = (n, e) => {
1789
- if (!xe.has(n)) {
1790
- const t = Le(go, e), r = {}, s = gs.bind(he, n);
1791
- let i = De;
1792
- const o = {}, c = (h, f) => {
1802
+ if (!Te.has(n)) {
1803
+ const t = De(go, e), r = {}, s = gs.bind(oe, n);
1804
+ let i = Ae;
1805
+ const o = {}, u = (h, f) => {
1793
1806
  const p = o[h] || [];
1794
1807
  return o[h] = p, p.push(f), () => p.splice(p.indexOf(f), 1);
1795
1808
  }, l = (h, f, p) => {
@@ -1799,18 +1812,18 @@ const Pr = (n, e) => {
1799
1812
  for (const b of v)
1800
1813
  b(f, p);
1801
1814
  }, a = () => {
1802
- if (!xe.has(n) && (xe.set(n, [
1815
+ if (!Te.has(n) && (Te.set(n, [
1803
1816
  r,
1804
1817
  {},
1805
1818
  {},
1806
1819
  {},
1807
1820
  s,
1808
1821
  l,
1809
- c
1822
+ u
1810
1823
  ]), !lt)) {
1811
- const h = t.initFocus(setTimeout.bind(he, Pr.bind(he, r, vs))), f = t.initReconnect(setTimeout.bind(he, Pr.bind(he, r, ys)));
1824
+ const h = t.initFocus(setTimeout.bind(oe, Pr.bind(oe, r, vs))), f = t.initReconnect(setTimeout.bind(oe, Pr.bind(oe, r, ys)));
1812
1825
  i = () => {
1813
- h && h(), f && f(), xe.delete(n);
1826
+ h && h(), f && f(), Te.delete(n);
1814
1827
  };
1815
1828
  }
1816
1829
  };
@@ -1823,18 +1836,18 @@ const Pr = (n, e) => {
1823
1836
  }
1824
1837
  return [
1825
1838
  n,
1826
- xe.get(n)[4]
1839
+ Te.get(n)[4]
1827
1840
  ];
1828
1841
  }, Ro = (n, e, t, r, s) => {
1829
- const i = t.errorRetryCount, o = s.retryCount, c = ~~((Math.random() + 0.5) * (1 << (o < 8 ? o : 8))) * t.errorRetryInterval;
1830
- !C(i) && o > i || setTimeout(r, c, s);
1831
- }, So = (n, e) => ct(n) == ct(e), [_s, To] = Eo(/* @__PURE__ */ new Map()), Oo = Le(
1842
+ const i = t.errorRetryCount, o = s.retryCount, u = ~~((Math.random() + 0.5) * (1 << (o < 8 ? o : 8))) * t.errorRetryInterval;
1843
+ !C(i) && o > i || setTimeout(r, u, s);
1844
+ }, So = (n, e) => ct(n) == ct(e), [_s, To] = Eo(/* @__PURE__ */ new Map()), Oo = De(
1832
1845
  {
1833
- onLoadingSlow: De,
1834
- onSuccess: De,
1835
- onError: De,
1846
+ onLoadingSlow: Ae,
1847
+ onSuccess: Ae,
1848
+ onError: Ae,
1836
1849
  onErrorRetry: Ro,
1837
- onDiscarded: De,
1850
+ onDiscarded: Ae,
1838
1851
  revalidateOnFocus: !0,
1839
1852
  revalidateOnReconnect: !0,
1840
1853
  revalidateIfStale: !0,
@@ -1851,15 +1864,15 @@ const Pr = (n, e) => {
1851
1864
  },
1852
1865
  mo
1853
1866
  ), xo = (n, e) => {
1854
- const t = Le(n, e);
1867
+ const t = De(n, e);
1855
1868
  if (e) {
1856
1869
  const { use: r, fallback: s } = n, { use: i, fallback: o } = e;
1857
- r && i && (t.use = r.concat(i)), s && o && (t.fallback = Le(s, o));
1870
+ r && i && (t.use = r.concat(i)), s && o && (t.fallback = De(s, o));
1858
1871
  }
1859
1872
  return t;
1860
- }, Co = zr({}), bs = $t && window.__SWR_DEVTOOLS_USE__, Ao = bs ? window.__SWR_DEVTOOLS_USE__ : [], ko = () => {
1861
- bs && (window.__SWR_DEVTOOLS_REACT__ = Ie);
1862
- }, Do = (n) => Ce(n[1]) ? [
1873
+ }, Co = zr({}), Ao = "$inf$", bs = $t && window.__SWR_DEVTOOLS_USE__, Do = bs ? window.__SWR_DEVTOOLS_USE__ : [], ko = () => {
1874
+ bs && (window.__SWR_DEVTOOLS_REACT__ = qe);
1875
+ }, Lo = (n) => Oe(n[1]) ? [
1863
1876
  n[0],
1864
1877
  n[1],
1865
1878
  n[2] || {}
@@ -1867,17 +1880,20 @@ const Pr = (n, e) => {
1867
1880
  n[0],
1868
1881
  null,
1869
1882
  (n[1] === null ? n[2] : n[1]) || {}
1870
- ], Lo = () => Le(Oo, ee(Co)), No = (n) => (e, t, r) => n(e, t && ((...i) => {
1871
- const [o] = $n(e), [, , , c] = xe.get(_s), l = c[o];
1872
- return C(l) ? t(...i) : (delete c[o], l);
1873
- }), r), Po = Ao.concat(No), Bo = (n) => function(...t) {
1874
- const r = Lo(), [s, i, o] = Do(t), c = xo(r, o);
1883
+ ], No = () => De(Oo, ee(Co)), Po = (n) => (e, t, r) => n(e, t && ((...i) => {
1884
+ const [o] = $n(e), [, , , u] = Te.get(_s);
1885
+ if (o.startsWith(Ao))
1886
+ return t(...i);
1887
+ const l = u[o];
1888
+ return C(l) ? t(...i) : (delete u[o], l);
1889
+ }), r), Bo = Do.concat(Po), Fo = (n) => function(...t) {
1890
+ const r = No(), [s, i, o] = Lo(t), u = xo(r, o);
1875
1891
  let l = n;
1876
- const { use: a } = c, h = (a || []).concat(Po);
1892
+ const { use: a } = u, h = (a || []).concat(Bo);
1877
1893
  for (let f = h.length; f--; )
1878
1894
  l = h[f](l);
1879
- return l(s, i || c.fetcher || null, c);
1880
- }, Fo = (n, e, t) => {
1895
+ return l(s, i || u.fetcher || null, u);
1896
+ }, Uo = (n, e, t) => {
1881
1897
  const r = e[n] || (e[n] = []);
1882
1898
  return r.push(t), () => {
1883
1899
  const s = r.indexOf(t);
@@ -1885,7 +1901,7 @@ const Pr = (n, e) => {
1885
1901
  };
1886
1902
  };
1887
1903
  ko();
1888
- const Br = Ie.use || ((n) => {
1904
+ const Br = qe.use || ((n) => {
1889
1905
  if (n.status === "pending")
1890
1906
  throw n;
1891
1907
  if (n.status === "fulfilled")
@@ -1897,57 +1913,57 @@ const Br = Ie.use || ((n) => {
1897
1913
  }), n);
1898
1914
  }), _n = {
1899
1915
  dedupe: !0
1900
- }, Uo = (n, e, t) => {
1901
- const { cache: r, compare: s, suspense: i, fallbackData: o, revalidateOnMount: c, revalidateIfStale: l, refreshInterval: a, refreshWhenHidden: h, refreshWhenOffline: f, keepPreviousData: p } = t, [v, b, w, x] = xe.get(r), [g, S] = $n(n), D = Fe(!1), m = Fe(!1), V = Fe(g), q = Fe(e), k = Fe(t), E = () => k.current, j = () => E().isVisible() && E().isOnline(), [L, X, ne, Z] = ps(r, g), $ = Fe({}).current, be = C(o) ? t.fallback[g] : o, we = (N, F) => {
1902
- for (const G in $) {
1903
- const I = G;
1916
+ }, qo = (n, e, t) => {
1917
+ const { cache: r, compare: s, suspense: i, fallbackData: o, revalidateOnMount: u, revalidateIfStale: l, refreshInterval: a, refreshWhenHidden: h, refreshWhenOffline: f, keepPreviousData: p } = t, [v, b, w, O] = Te.get(r), [g, R] = $n(n), k = Be(!1), m = Be(!1), M = Be(g), S = Be(e), V = Be(t), D = () => V.current, j = () => D().isVisible() && D().isOnline(), [L, Q, ne, G] = ps(r, g), F = Be({}).current, Le = C(o) ? t.fallback[g] : o, Qe = (N, U) => {
1918
+ for (const X in F) {
1919
+ const I = X;
1904
1920
  if (I === "data") {
1905
- if (!s(N[I], F[I]) && (!C(N[I]) || !s(Ve, F[I])))
1921
+ if (!s(N[I], U[I]) && (!C(N[I]) || !s(Ie, U[I])))
1906
1922
  return !1;
1907
- } else if (F[I] !== N[I])
1923
+ } else if (U[I] !== N[I])
1908
1924
  return !1;
1909
1925
  }
1910
1926
  return !0;
1911
1927
  }, Ze = Kr(() => {
1912
- const N = (() => !g || !e ? !1 : C(c) ? E().isPaused() || i ? !1 : C(l) ? !0 : l : c)(), F = (J) => {
1913
- const de = Le(J);
1928
+ const N = (() => !g || !e ? !1 : C(u) ? D().isPaused() || i ? !1 : C(l) ? !0 : l : u)(), U = (J) => {
1929
+ const de = De(J);
1914
1930
  return delete de._k, N ? {
1915
1931
  isValidating: !0,
1916
1932
  isLoading: !0,
1917
1933
  ...de
1918
1934
  } : de;
1919
- }, G = L(), I = Z(), re = F(G), Te = G === I ? re : F(I);
1935
+ }, X = L(), I = G(), re = U(X), Re = X === I ? re : U(I);
1920
1936
  let H = re;
1921
1937
  return [
1922
1938
  () => {
1923
- const J = F(L());
1924
- return we(J, H) ? (H.data = J.data, H.isLoading = J.isLoading, H.isValidating = J.isValidating, H.error = J.error, H) : (H = J, J);
1939
+ const J = U(L());
1940
+ return Qe(J, H) ? (H.data = J.data, H.isLoading = J.isLoading, H.isValidating = J.isValidating, H.error = J.error, H) : (H = J, J);
1925
1941
  },
1926
- () => Te
1942
+ () => Re
1927
1943
  ];
1928
1944
  }, [
1929
1945
  r,
1930
1946
  g
1931
- ]), Ee = ds.exports.useSyncExternalStore(M(
1932
- (N) => ne(g, (F, G) => {
1933
- we(G, F) || N();
1947
+ ]), be = ds.exports.useSyncExternalStore($(
1948
+ (N) => ne(g, (U, X) => {
1949
+ Qe(X, U) || N();
1934
1950
  }),
1935
1951
  [
1936
1952
  r,
1937
1953
  g
1938
1954
  ]
1939
- ), Ze[0], Ze[1]), et = !D.current, yt = v[g] && v[g].length > 0, Re = Ee.data, Se = C(Re) ? be : Re, Pe = Ee.error, mt = Fe(Se), Ve = p ? C(Re) ? mt.current : Re : Se, je = (() => yt && !C(Pe) ? !1 : et && !C(c) ? c : E().isPaused() ? !1 : i ? C(Se) ? !1 : l : C(Se) || l)(), $e = !!(g && e && et && je), Me = C(Ee.isValidating) ? $e : Ee.isValidating, tt = C(Ee.isLoading) ? $e : Ee.isLoading, ve = M(
1955
+ ), Ze[0], Ze[1]), et = !k.current, yt = v[g] && v[g].length > 0, we = be.data, Ee = C(we) ? Le : we, Ne = be.error, mt = Be(Ee), Ie = p ? C(we) ? mt.current : we : Ee, Ve = (() => yt && !C(Ne) ? !1 : et && !C(u) ? u : D().isPaused() ? !1 : i ? C(Ee) ? !1 : l : C(Ee) || l)(), je = !!(g && e && et && Ve), $e = C(be.isValidating) ? je : be.isValidating, tt = C(be.isLoading) ? je : be.isLoading, ve = $(
1940
1956
  async (N) => {
1941
- const F = q.current;
1942
- if (!g || !F || m.current || E().isPaused())
1957
+ const U = S.current;
1958
+ if (!g || !U || m.current || D().isPaused())
1943
1959
  return !1;
1944
- let G, I, re = !0;
1945
- const Te = N || {}, H = !w[g] || !Te.dedupe, J = () => Lr ? !m.current && g === V.current && D.current : g === V.current, de = {
1960
+ let X, I, re = !0;
1961
+ const Re = N || {}, H = !w[g] || !Re.dedupe, J = () => Lr ? !m.current && g === M.current && k.current : g === M.current, de = {
1946
1962
  isValidating: !1,
1947
1963
  isLoading: !1
1948
1964
  }, _t = () => {
1949
- X(de);
1950
- }, We = () => {
1965
+ Q(de);
1966
+ }, Me = () => {
1951
1967
  const ie = w[g];
1952
1968
  ie && ie[1] === I && delete w[g];
1953
1969
  }, bt = {
@@ -1955,27 +1971,27 @@ const Br = Ie.use || ((n) => {
1955
1971
  };
1956
1972
  C(L().data) && (bt.isLoading = !0);
1957
1973
  try {
1958
- if (H && (X(bt), t.loadingTimeout && C(L().data) && setTimeout(() => {
1959
- re && J() && E().onLoadingSlow(g, t);
1974
+ if (H && (Q(bt), t.loadingTimeout && C(L().data) && setTimeout(() => {
1975
+ re && J() && D().onLoadingSlow(g, t);
1960
1976
  }, t.loadingTimeout), w[g] = [
1961
- F(S),
1977
+ U(R),
1962
1978
  Cn()
1963
- ]), [G, I] = w[g], G = await G, H && setTimeout(We, t.dedupingInterval), !w[g] || w[g][1] !== I)
1964
- return H && J() && E().onDiscarded(g), !1;
1965
- de.error = he;
1979
+ ]), [X, I] = w[g], X = await X, H && setTimeout(Me, t.dedupingInterval), !w[g] || w[g][1] !== I)
1980
+ return H && J() && D().onDiscarded(g), !1;
1981
+ de.error = oe;
1966
1982
  const ie = b[g];
1967
1983
  if (!C(ie) && (I <= ie[0] || I <= ie[1] || ie[1] === 0))
1968
- return _t(), H && J() && E().onDiscarded(g), !1;
1969
- const ue = L().data;
1970
- de.data = s(ue, G) ? ue : G, H && J() && E().onSuccess(G, g, t);
1984
+ return _t(), H && J() && D().onDiscarded(g), !1;
1985
+ const ce = L().data;
1986
+ de.data = s(ce, X) ? ce : X, H && J() && D().onSuccess(X, g, t);
1971
1987
  } catch (ie) {
1972
- We();
1973
- const ue = E(), { shouldRetryOnError: He } = ue;
1974
- ue.isPaused() || (de.error = ie, H && J() && (ue.onError(ie, g, ue), (He === !0 || Ce(He) && He(ie)) && j() && ue.onErrorRetry(ie, g, ue, (Be) => {
1988
+ Me();
1989
+ const ce = D(), { shouldRetryOnError: We } = ce;
1990
+ ce.isPaused() || (de.error = ie, H && J() && (ce.onError(ie, g, ce), (We === !0 || Oe(We) && We(ie)) && j() && ce.onErrorRetry(ie, g, ce, (Pe) => {
1975
1991
  const nt = v[g];
1976
- nt && nt[0] && nt[0](st.ERROR_REVALIDATE_EVENT, Be);
1992
+ nt && nt[0] && nt[0](st.ERROR_REVALIDATE_EVENT, Pe);
1977
1993
  }, {
1978
- retryCount: (Te.retryCount || 0) + 1,
1994
+ retryCount: (Re.retryCount || 0) + 1,
1979
1995
  dedupe: !0
1980
1996
  })));
1981
1997
  }
@@ -1985,47 +2001,47 @@ const Br = Ie.use || ((n) => {
1985
2001
  g,
1986
2002
  r
1987
2003
  ]
1988
- ), gt = M(
1989
- (...N) => gs(r, V.current, ...N),
2004
+ ), gt = $(
2005
+ (...N) => gs(r, M.current, ...N),
1990
2006
  []
1991
2007
  );
1992
2008
  if (mn(() => {
1993
- q.current = e, k.current = t, C(Re) || (mt.current = Re);
2009
+ S.current = e, V.current = t, C(we) || (mt.current = we);
1994
2010
  }), mn(() => {
1995
2011
  if (!g)
1996
2012
  return;
1997
- const N = ve.bind(he, _n);
1998
- let F = 0;
1999
- const I = Fo(g, v, (re, Te = {}) => {
2013
+ const N = ve.bind(oe, _n);
2014
+ let U = 0;
2015
+ const I = Uo(g, v, (re, Re = {}) => {
2000
2016
  if (re == st.FOCUS_EVENT) {
2001
2017
  const H = Date.now();
2002
- E().revalidateOnFocus && H > F && j() && (F = H + E().focusThrottleInterval, N());
2018
+ D().revalidateOnFocus && H > U && j() && (U = H + D().focusThrottleInterval, N());
2003
2019
  } else if (re == st.RECONNECT_EVENT)
2004
- E().revalidateOnReconnect && j() && N();
2020
+ D().revalidateOnReconnect && j() && N();
2005
2021
  else {
2006
2022
  if (re == st.MUTATE_EVENT)
2007
2023
  return ve();
2008
2024
  if (re == st.ERROR_REVALIDATE_EVENT)
2009
- return ve(Te);
2025
+ return ve(Re);
2010
2026
  }
2011
2027
  });
2012
- return m.current = !1, V.current = g, D.current = !0, X({
2013
- _k: S
2014
- }), je && (C(Se) || lt ? N() : _o(N)), () => {
2028
+ return m.current = !1, M.current = g, k.current = !0, Q({
2029
+ _k: R
2030
+ }), Ve && (C(Ee) || lt ? N() : _o(N)), () => {
2015
2031
  m.current = !0, I();
2016
2032
  };
2017
2033
  }, [
2018
2034
  g
2019
2035
  ]), mn(() => {
2020
2036
  let N;
2021
- function F() {
2022
- const I = Ce(a) ? a(L().data) : a;
2023
- I && N !== -1 && (N = setTimeout(G, I));
2037
+ function U() {
2038
+ const I = Oe(a) ? a(L().data) : a;
2039
+ I && N !== -1 && (N = setTimeout(X, I));
2024
2040
  }
2025
- function G() {
2026
- !L().error && (h || E().isVisible()) && (f || E().isOnline()) ? ve(_n).then(F) : F();
2041
+ function X() {
2042
+ !L().error && (h || D().isVisible()) && (f || D().isOnline()) ? ve(_n).then(U) : U();
2027
2043
  }
2028
- return F(), () => {
2044
+ return U(), () => {
2029
2045
  N && (clearTimeout(N), N = -1);
2030
2046
  };
2031
2047
  }, [
@@ -2033,37 +2049,37 @@ const Br = Ie.use || ((n) => {
2033
2049
  h,
2034
2050
  f,
2035
2051
  g
2036
- ]), ti(Ve), i && C(Se) && g) {
2052
+ ]), ti(Ie), i && C(Ee) && g) {
2037
2053
  if (!Lr && lt)
2038
2054
  throw new Error("Fallback data is required when using suspense in SSR.");
2039
- q.current = e, k.current = t, m.current = !1;
2040
- const N = x[g];
2055
+ S.current = e, V.current = t, m.current = !1;
2056
+ const N = O[g];
2041
2057
  if (!C(N)) {
2042
- const F = gt(N);
2043
- Br(F);
2058
+ const U = gt(N);
2059
+ Br(U);
2044
2060
  }
2045
- if (C(Pe)) {
2046
- const F = ve(_n);
2047
- C(Ve) || (F.status = "fulfilled", F.value = !0), Br(F);
2061
+ if (C(Ne)) {
2062
+ const U = ve(_n);
2063
+ C(Ie) || (U.status = "fulfilled", U.value = !0), Br(U);
2048
2064
  } else
2049
- throw Pe;
2065
+ throw Ne;
2050
2066
  }
2051
2067
  return {
2052
2068
  mutate: gt,
2053
2069
  get data() {
2054
- return $.data = !0, Ve;
2070
+ return F.data = !0, Ie;
2055
2071
  },
2056
2072
  get error() {
2057
- return $.error = !0, Pe;
2073
+ return F.error = !0, Ne;
2058
2074
  },
2059
2075
  get isValidating() {
2060
- return $.isValidating = !0, Me;
2076
+ return F.isValidating = !0, $e;
2061
2077
  },
2062
2078
  get isLoading() {
2063
- return $.isLoading = !0, tt;
2079
+ return F.isLoading = !0, tt;
2064
2080
  }
2065
2081
  };
2066
- }, vt = Bo(Uo), ge = /* @__PURE__ */ Object.create(null);
2082
+ }, vt = Fo(qo), ge = /* @__PURE__ */ Object.create(null);
2067
2083
  ge.open = "0";
2068
2084
  ge.close = "1";
2069
2085
  ge.ping = "2";
@@ -2086,7 +2102,7 @@ function Ur(n) {
2086
2102
  return n instanceof Uint8Array ? n : n instanceof ArrayBuffer ? new Uint8Array(n) : new Uint8Array(n.buffer, n.byteOffset, n.byteLength);
2087
2103
  }
2088
2104
  let bn;
2089
- function qo(n, e) {
2105
+ function Io(n, e) {
2090
2106
  if (ws && n.data instanceof Blob)
2091
2107
  return n.data.arrayBuffer().then(Ur).then(e);
2092
2108
  if (Es && (n.data instanceof ArrayBuffer || Rs(n.data)))
@@ -2098,14 +2114,14 @@ function qo(n, e) {
2098
2114
  const qr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", ut = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
2099
2115
  for (let n = 0; n < qr.length; n++)
2100
2116
  ut[qr.charCodeAt(n)] = n;
2101
- const Io = (n) => {
2102
- let e = n.length * 0.75, t = n.length, r, s = 0, i, o, c, l;
2117
+ const Vo = (n) => {
2118
+ let e = n.length * 0.75, t = n.length, r, s = 0, i, o, u, l;
2103
2119
  n[n.length - 1] === "=" && (e--, n[n.length - 2] === "=" && e--);
2104
2120
  const a = new ArrayBuffer(e), h = new Uint8Array(a);
2105
2121
  for (r = 0; r < t; r += 4)
2106
- i = ut[n.charCodeAt(r)], o = ut[n.charCodeAt(r + 1)], c = ut[n.charCodeAt(r + 2)], l = ut[n.charCodeAt(r + 3)], h[s++] = i << 2 | o >> 4, h[s++] = (o & 15) << 4 | c >> 2, h[s++] = (c & 3) << 6 | l & 63;
2122
+ i = ut[n.charCodeAt(r)], o = ut[n.charCodeAt(r + 1)], u = ut[n.charCodeAt(r + 2)], l = ut[n.charCodeAt(r + 3)], h[s++] = i << 2 | o >> 4, h[s++] = (o & 15) << 4 | u >> 2, h[s++] = (u & 3) << 6 | l & 63;
2107
2123
  return a;
2108
- }, Vo = typeof ArrayBuffer == "function", Wn = (n, e) => {
2124
+ }, jo = typeof ArrayBuffer == "function", Wn = (n, e) => {
2109
2125
  if (typeof n != "string")
2110
2126
  return {
2111
2127
  type: "message",
@@ -2114,16 +2130,16 @@ const Io = (n) => {
2114
2130
  const t = n.charAt(0);
2115
2131
  return t === "b" ? {
2116
2132
  type: "message",
2117
- data: jo(n.substring(1), e)
2133
+ data: $o(n.substring(1), e)
2118
2134
  } : Nt[t] ? n.length > 1 ? {
2119
2135
  type: Nt[t],
2120
2136
  data: n.substring(1)
2121
2137
  } : {
2122
2138
  type: Nt[t]
2123
2139
  } : An;
2124
- }, jo = (n, e) => {
2125
- if (Vo) {
2126
- const t = Io(n);
2140
+ }, $o = (n, e) => {
2141
+ if (jo) {
2142
+ const t = Vo(n);
2127
2143
  return Ss(t, e);
2128
2144
  } else
2129
2145
  return { base64: !0, data: n };
@@ -2135,15 +2151,15 @@ const Io = (n) => {
2135
2151
  default:
2136
2152
  return n instanceof ArrayBuffer ? n : n.buffer;
2137
2153
  }
2138
- }, Ts = String.fromCharCode(30), $o = (n, e) => {
2154
+ }, Ts = String.fromCharCode(30), Mo = (n, e) => {
2139
2155
  const t = n.length, r = new Array(t);
2140
2156
  let s = 0;
2141
2157
  n.forEach((i, o) => {
2142
- Mn(i, !1, (c) => {
2143
- r[o] = c, ++s === t && e(r.join(Ts));
2158
+ Mn(i, !1, (u) => {
2159
+ r[o] = u, ++s === t && e(r.join(Ts));
2144
2160
  });
2145
2161
  });
2146
- }, Mo = (n, e) => {
2162
+ }, Wo = (n, e) => {
2147
2163
  const t = n.split(Ts), r = [];
2148
2164
  for (let s = 0; s < t.length; s++) {
2149
2165
  const i = Wn(t[s], e);
@@ -2152,10 +2168,10 @@ const Io = (n) => {
2152
2168
  }
2153
2169
  return r;
2154
2170
  };
2155
- function Wo() {
2171
+ function Ho() {
2156
2172
  return new TransformStream({
2157
2173
  transform(n, e) {
2158
- qo(n, (t) => {
2174
+ Io(n, (t) => {
2159
2175
  const r = t.length;
2160
2176
  let s;
2161
2177
  if (r < 126)
@@ -2187,12 +2203,12 @@ function Ct(n, e) {
2187
2203
  t[s] = n[0][r++], r === n[0].length && (n.shift(), r = 0);
2188
2204
  return n.length && r < n[0].length && (n[0] = n[0].slice(r)), t;
2189
2205
  }
2190
- function Ho(n, e) {
2206
+ function Jo(n, e) {
2191
2207
  wn || (wn = new TextDecoder());
2192
2208
  const t = [];
2193
2209
  let r = 0, s = -1, i = !1;
2194
2210
  return new TransformStream({
2195
- transform(o, c) {
2211
+ transform(o, u) {
2196
2212
  for (t.push(o); ; ) {
2197
2213
  if (r === 0) {
2198
2214
  if (xt(t) < 1)
@@ -2209,7 +2225,7 @@ function Ho(n, e) {
2209
2225
  break;
2210
2226
  const l = Ct(t, 8), a = new DataView(l.buffer, l.byteOffset, l.length), h = a.getUint32(0);
2211
2227
  if (h > Math.pow(2, 53 - 32) - 1) {
2212
- c.enqueue(An);
2228
+ u.enqueue(An);
2213
2229
  break;
2214
2230
  }
2215
2231
  s = h * Math.pow(2, 32) + a.getUint32(4), r = 3;
@@ -2217,10 +2233,10 @@ function Ho(n, e) {
2217
2233
  if (xt(t) < s)
2218
2234
  break;
2219
2235
  const l = Ct(t, s);
2220
- c.enqueue(Wn(i ? l : wn.decode(l), e)), r = 0;
2236
+ u.enqueue(Wn(i ? l : wn.decode(l), e)), r = 0;
2221
2237
  }
2222
2238
  if (s === 0 || s > n) {
2223
- c.enqueue(An);
2239
+ u.enqueue(An);
2224
2240
  break;
2225
2241
  }
2226
2242
  }
@@ -2230,9 +2246,9 @@ function Ho(n, e) {
2230
2246
  const Os = 4;
2231
2247
  function K(n) {
2232
2248
  if (n)
2233
- return Jo(n);
2249
+ return Yo(n);
2234
2250
  }
2235
- function Jo(n) {
2251
+ function Yo(n) {
2236
2252
  for (var e in K.prototype)
2237
2253
  n[e] = K.prototype[e];
2238
2254
  return n;
@@ -2279,31 +2295,31 @@ K.prototype.listeners = function(n) {
2279
2295
  K.prototype.hasListeners = function(n) {
2280
2296
  return !!this.listeners(n).length;
2281
2297
  };
2282
- const fe = (() => typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")())();
2298
+ const he = (() => typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")())();
2283
2299
  function xs(n, ...e) {
2284
2300
  return e.reduce((t, r) => (n.hasOwnProperty(r) && (t[r] = n[r]), t), {});
2285
2301
  }
2286
- const Yo = fe.setTimeout, zo = fe.clearTimeout;
2302
+ const zo = he.setTimeout, Ko = he.clearTimeout;
2287
2303
  function Mt(n, e) {
2288
- e.useNativeTimers ? (n.setTimeoutFn = Yo.bind(fe), n.clearTimeoutFn = zo.bind(fe)) : (n.setTimeoutFn = fe.setTimeout.bind(fe), n.clearTimeoutFn = fe.clearTimeout.bind(fe));
2289
- }
2290
- const Ko = 1.33;
2291
- function Go(n) {
2292
- return typeof n == "string" ? Xo(n) : Math.ceil((n.byteLength || n.size) * Ko);
2304
+ e.useNativeTimers ? (n.setTimeoutFn = zo.bind(he), n.clearTimeoutFn = Ko.bind(he)) : (n.setTimeoutFn = he.setTimeout.bind(he), n.clearTimeoutFn = he.clearTimeout.bind(he));
2293
2305
  }
2306
+ const Go = 1.33;
2294
2307
  function Xo(n) {
2308
+ return typeof n == "string" ? Qo(n) : Math.ceil((n.byteLength || n.size) * Go);
2309
+ }
2310
+ function Qo(n) {
2295
2311
  let e = 0, t = 0;
2296
2312
  for (let r = 0, s = n.length; r < s; r++)
2297
2313
  e = n.charCodeAt(r), e < 128 ? t += 1 : e < 2048 ? t += 2 : e < 55296 || e >= 57344 ? t += 3 : (r++, t += 4);
2298
2314
  return t;
2299
2315
  }
2300
- function Qo(n) {
2316
+ function Zo(n) {
2301
2317
  let e = "";
2302
2318
  for (let t in n)
2303
2319
  n.hasOwnProperty(t) && (e.length && (e += "&"), e += encodeURIComponent(t) + "=" + encodeURIComponent(n[t]));
2304
2320
  return e;
2305
2321
  }
2306
- function Zo(n) {
2322
+ function ea(n) {
2307
2323
  let e = {}, t = n.split("&");
2308
2324
  for (let r = 0, s = t.length; r < s; r++) {
2309
2325
  let i = t[r].split("=");
@@ -2311,7 +2327,7 @@ function Zo(n) {
2311
2327
  }
2312
2328
  return e;
2313
2329
  }
2314
- class ea extends Error {
2330
+ class ta extends Error {
2315
2331
  constructor(e, t, r) {
2316
2332
  super(e), this.description = t, this.context = r, this.type = "TransportError";
2317
2333
  }
@@ -2321,7 +2337,7 @@ class Hn extends K {
2321
2337
  super(), this.writable = !1, Mt(this, e), this.opts = e, this.query = e.query, this.socket = e.socket;
2322
2338
  }
2323
2339
  onError(e, t, r) {
2324
- return super.emitReserved("error", new ea(e, t, r)), this;
2340
+ return super.emitReserved("error", new ta(e, t, r)), this;
2325
2341
  }
2326
2342
  open() {
2327
2343
  return this.readyState = "opening", this.doOpen(), this;
@@ -2358,16 +2374,16 @@ class Hn extends K {
2358
2374
  return this.opts.port && (this.opts.secure && Number(this.opts.port !== 443) || !this.opts.secure && Number(this.opts.port) !== 80) ? ":" + this.opts.port : "";
2359
2375
  }
2360
2376
  _query(e) {
2361
- const t = Qo(e);
2377
+ const t = Zo(e);
2362
2378
  return t.length ? "?" + t : "";
2363
2379
  }
2364
2380
  }
2365
- const Cs = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""), kn = 64, ta = {};
2381
+ const Cs = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""), Dn = 64, na = {};
2366
2382
  let Ir = 0, At = 0, Vr;
2367
2383
  function jr(n) {
2368
2384
  let e = "";
2369
2385
  do
2370
- e = Cs[n % kn] + e, n = Math.floor(n / kn);
2386
+ e = Cs[n % Dn] + e, n = Math.floor(n / Dn);
2371
2387
  while (n > 0);
2372
2388
  return e;
2373
2389
  }
@@ -2375,35 +2391,35 @@ function As() {
2375
2391
  const n = jr(+new Date());
2376
2392
  return n !== Vr ? (Ir = 0, Vr = n) : n + "." + jr(Ir++);
2377
2393
  }
2378
- for (; At < kn; At++)
2379
- ta[Cs[At]] = At;
2380
- let ks = !1;
2394
+ for (; At < Dn; At++)
2395
+ na[Cs[At]] = At;
2396
+ let Ds = !1;
2381
2397
  try {
2382
- ks = typeof XMLHttpRequest < "u" && "withCredentials" in new XMLHttpRequest();
2398
+ Ds = typeof XMLHttpRequest < "u" && "withCredentials" in new XMLHttpRequest();
2383
2399
  } catch {
2384
2400
  }
2385
- const na = ks;
2386
- function Ds(n) {
2401
+ const ra = Ds;
2402
+ function ks(n) {
2387
2403
  const e = n.xdomain;
2388
2404
  try {
2389
- if (typeof XMLHttpRequest < "u" && (!e || na))
2405
+ if (typeof XMLHttpRequest < "u" && (!e || ra))
2390
2406
  return new XMLHttpRequest();
2391
2407
  } catch {
2392
2408
  }
2393
2409
  if (!e)
2394
2410
  try {
2395
- return new fe[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP");
2411
+ return new he[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP");
2396
2412
  } catch {
2397
2413
  }
2398
2414
  }
2399
- function ra() {
2415
+ function sa() {
2400
2416
  }
2401
- const sa = function() {
2402
- return new Ds({
2417
+ const ia = function() {
2418
+ return new ks({
2403
2419
  xdomain: !1
2404
2420
  }).responseType != null;
2405
2421
  }();
2406
- class ia extends Hn {
2422
+ class oa extends Hn {
2407
2423
  constructor(e) {
2408
2424
  if (super(e), this.polling = !1, typeof location < "u") {
2409
2425
  const r = location.protocol === "https:";
@@ -2411,7 +2427,7 @@ class ia extends Hn {
2411
2427
  s || (s = r ? "443" : "80"), this.xd = typeof location < "u" && e.hostname !== location.hostname || s !== e.port;
2412
2428
  }
2413
2429
  const t = e && e.forceBase64;
2414
- this.supportsBinary = sa && !t, this.opts.withCredentials && (this.cookieJar = void 0);
2430
+ this.supportsBinary = ia && !t, this.opts.withCredentials && (this.cookieJar = void 0);
2415
2431
  }
2416
2432
  get name() {
2417
2433
  return "polling";
@@ -2443,7 +2459,7 @@ class ia extends Hn {
2443
2459
  return this.onClose({ description: "transport closed by the server" }), !1;
2444
2460
  this.onPacket(r);
2445
2461
  };
2446
- Mo(e, this.socket.binaryType).forEach(t), this.readyState !== "closed" && (this.polling = !1, this.emitReserved("pollComplete"), this.readyState === "open" && this.poll());
2462
+ Wo(e, this.socket.binaryType).forEach(t), this.readyState !== "closed" && (this.polling = !1, this.emitReserved("pollComplete"), this.readyState === "open" && this.poll());
2447
2463
  }
2448
2464
  doClose() {
2449
2465
  const e = () => {
@@ -2452,7 +2468,7 @@ class ia extends Hn {
2452
2468
  this.readyState === "open" ? e() : this.once("open", e);
2453
2469
  }
2454
2470
  write(e) {
2455
- this.writable = !1, $o(e, (t) => {
2471
+ this.writable = !1, Mo(e, (t) => {
2456
2472
  this.doWrite(t, () => {
2457
2473
  this.writable = !0, this.emitReserved("drain");
2458
2474
  });
@@ -2489,7 +2505,7 @@ class me extends K {
2489
2505
  var e;
2490
2506
  const t = xs(this.opts, "agent", "pfx", "key", "passphrase", "cert", "ca", "ciphers", "rejectUnauthorized", "autoUnref");
2491
2507
  t.xdomain = !!this.opts.xd;
2492
- const r = this.xhr = new Ds(t);
2508
+ const r = this.xhr = new ks(t);
2493
2509
  try {
2494
2510
  r.open(this.method, this.uri, !0);
2495
2511
  try {
@@ -2528,7 +2544,7 @@ class me extends K {
2528
2544
  }
2529
2545
  cleanup(e) {
2530
2546
  if (!(typeof this.xhr > "u" || this.xhr === null)) {
2531
- if (this.xhr.onreadystatechange = ra, e)
2547
+ if (this.xhr.onreadystatechange = sa, e)
2532
2548
  try {
2533
2549
  this.xhr.abort();
2534
2550
  } catch {
@@ -2550,7 +2566,7 @@ if (typeof document < "u") {
2550
2566
  if (typeof attachEvent == "function")
2551
2567
  attachEvent("onunload", $r);
2552
2568
  else if (typeof addEventListener == "function") {
2553
- const n = "onpagehide" in fe ? "pagehide" : "unload";
2569
+ const n = "onpagehide" in he ? "pagehide" : "unload";
2554
2570
  addEventListener(n, $r, !1);
2555
2571
  }
2556
2572
  }
@@ -2558,8 +2574,8 @@ function $r() {
2558
2574
  for (let n in me.requests)
2559
2575
  me.requests.hasOwnProperty(n) && me.requests[n].abort();
2560
2576
  }
2561
- const Jn = (() => typeof Promise == "function" && typeof Promise.resolve == "function" ? (e) => Promise.resolve().then(e) : (e, t) => t(e, 0))(), kt = fe.WebSocket || fe.MozWebSocket, Mr = !0, oa = "arraybuffer", Wr = typeof navigator < "u" && typeof navigator.product == "string" && navigator.product.toLowerCase() === "reactnative";
2562
- class aa extends Hn {
2577
+ const Jn = (() => typeof Promise == "function" && typeof Promise.resolve == "function" ? (e) => Promise.resolve().then(e) : (e, t) => t(e, 0))(), Dt = he.WebSocket || he.MozWebSocket, Mr = !0, aa = "arraybuffer", Wr = typeof navigator < "u" && typeof navigator.product == "string" && navigator.product.toLowerCase() === "reactnative";
2578
+ class ua extends Hn {
2563
2579
  constructor(e) {
2564
2580
  super(e), this.supportsBinary = !e.forceBase64;
2565
2581
  }
@@ -2572,7 +2588,7 @@ class aa extends Hn {
2572
2588
  const e = this.uri(), t = this.opts.protocols, r = Wr ? {} : xs(this.opts, "agent", "perMessageDeflate", "pfx", "key", "passphrase", "cert", "ca", "ciphers", "rejectUnauthorized", "localAddress", "protocolVersion", "origin", "maxPayload", "family", "checkServerIdentity");
2573
2589
  this.opts.extraHeaders && (r.headers = this.opts.extraHeaders);
2574
2590
  try {
2575
- this.ws = Mr && !Wr ? t ? new kt(e, t) : new kt(e) : new kt(e, t, r);
2591
+ this.ws = Mr && !Wr ? t ? new Dt(e, t) : new Dt(e) : new Dt(e, t, r);
2576
2592
  } catch (s) {
2577
2593
  return this.emitReserved("error", s);
2578
2594
  }
@@ -2610,10 +2626,10 @@ class aa extends Hn {
2610
2626
  return this.opts.timestampRequests && (t[this.opts.timestampParam] = As()), this.supportsBinary || (t.b64 = 1), this.createUri(e, t);
2611
2627
  }
2612
2628
  check() {
2613
- return !!kt;
2629
+ return !!Dt;
2614
2630
  }
2615
2631
  }
2616
- class ua extends Hn {
2632
+ class ca extends Hn {
2617
2633
  get name() {
2618
2634
  return "webtransport";
2619
2635
  }
@@ -2624,12 +2640,12 @@ class ua extends Hn {
2624
2640
  this.onError("webtransport error", e);
2625
2641
  }), this.transport.ready.then(() => {
2626
2642
  this.transport.createBidirectionalStream().then((e) => {
2627
- const t = Ho(Number.MAX_SAFE_INTEGER, this.socket.binaryType), r = e.readable.pipeThrough(t).getReader(), s = Wo();
2643
+ const t = Jo(Number.MAX_SAFE_INTEGER, this.socket.binaryType), r = e.readable.pipeThrough(t).getReader(), s = Ho();
2628
2644
  s.readable.pipeTo(e.writable), this.writer = s.writable.getWriter();
2629
2645
  const i = () => {
2630
- r.read().then(({ done: c, value: l }) => {
2631
- c || (this.onPacket(l), i());
2632
- }).catch((c) => {
2646
+ r.read().then(({ done: u, value: l }) => {
2647
+ u || (this.onPacket(l), i());
2648
+ }).catch((u) => {
2633
2649
  });
2634
2650
  };
2635
2651
  i();
@@ -2654,11 +2670,11 @@ class ua extends Hn {
2654
2670
  (e = this.transport) === null || e === void 0 || e.close();
2655
2671
  }
2656
2672
  }
2657
- const ca = {
2658
- websocket: aa,
2659
- webtransport: ua,
2660
- polling: ia
2661
- }, la = /^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/, fa = [
2673
+ const la = {
2674
+ websocket: ua,
2675
+ webtransport: ca,
2676
+ polling: oa
2677
+ }, fa = /^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/, ha = [
2662
2678
  "source",
2663
2679
  "protocol",
2664
2680
  "authority",
@@ -2674,27 +2690,27 @@ const ca = {
2674
2690
  "query",
2675
2691
  "anchor"
2676
2692
  ];
2677
- function Dn(n) {
2693
+ function kn(n) {
2678
2694
  const e = n, t = n.indexOf("["), r = n.indexOf("]");
2679
2695
  t != -1 && r != -1 && (n = n.substring(0, t) + n.substring(t, r).replace(/:/g, ";") + n.substring(r, n.length));
2680
- let s = la.exec(n || ""), i = {}, o = 14;
2696
+ let s = fa.exec(n || ""), i = {}, o = 14;
2681
2697
  for (; o--; )
2682
- i[fa[o]] = s[o] || "";
2683
- return t != -1 && r != -1 && (i.source = e, i.host = i.host.substring(1, i.host.length - 1).replace(/;/g, ":"), i.authority = i.authority.replace("[", "").replace("]", "").replace(/;/g, ":"), i.ipv6uri = !0), i.pathNames = ha(i, i.path), i.queryKey = da(i, i.query), i;
2698
+ i[ha[o]] = s[o] || "";
2699
+ return t != -1 && r != -1 && (i.source = e, i.host = i.host.substring(1, i.host.length - 1).replace(/;/g, ":"), i.authority = i.authority.replace("[", "").replace("]", "").replace(/;/g, ":"), i.ipv6uri = !0), i.pathNames = da(i, i.path), i.queryKey = pa(i, i.query), i;
2684
2700
  }
2685
- function ha(n, e) {
2701
+ function da(n, e) {
2686
2702
  const t = /\/{2,9}/g, r = e.replace(t, "/").split("/");
2687
2703
  return (e.slice(0, 1) == "/" || e.length === 0) && r.splice(0, 1), e.slice(-1) == "/" && r.splice(r.length - 1, 1), r;
2688
2704
  }
2689
- function da(n, e) {
2705
+ function pa(n, e) {
2690
2706
  const t = {};
2691
2707
  return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g, function(r, s, i) {
2692
2708
  s && (t[s] = i);
2693
2709
  }), t;
2694
2710
  }
2695
- class ke extends K {
2711
+ class Ce extends K {
2696
2712
  constructor(e, t = {}) {
2697
- super(), this.binaryType = oa, this.writeBuffer = [], e && typeof e == "object" && (t = e, e = null), e ? (e = Dn(e), t.hostname = e.host, t.secure = e.protocol === "https" || e.protocol === "wss", t.port = e.port, e.query && (t.query = e.query)) : t.host && (t.hostname = Dn(t.host).host), Mt(this, t), this.secure = t.secure != null ? t.secure : typeof location < "u" && location.protocol === "https:", t.hostname && !t.port && (t.port = this.secure ? "443" : "80"), this.hostname = t.hostname || (typeof location < "u" ? location.hostname : "localhost"), this.port = t.port || (typeof location < "u" && location.port ? location.port : this.secure ? "443" : "80"), this.transports = t.transports || [
2713
+ super(), this.binaryType = aa, this.writeBuffer = [], e && typeof e == "object" && (t = e, e = null), e ? (e = kn(e), t.hostname = e.host, t.secure = e.protocol === "https" || e.protocol === "wss", t.port = e.port, e.query && (t.query = e.query)) : t.host && (t.hostname = kn(t.host).host), Mt(this, t), this.secure = t.secure != null ? t.secure : typeof location < "u" && location.protocol === "https:", t.hostname && !t.port && (t.port = this.secure ? "443" : "80"), this.hostname = t.hostname || (typeof location < "u" ? location.hostname : "localhost"), this.port = t.port || (typeof location < "u" && location.port ? location.port : this.secure ? "443" : "80"), this.transports = t.transports || [
2698
2714
  "polling",
2699
2715
  "websocket",
2700
2716
  "webtransport"
@@ -2712,7 +2728,7 @@ class ke extends K {
2712
2728
  },
2713
2729
  transportOptions: {},
2714
2730
  closeOnBeforeunload: !1
2715
- }, t), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query = Zo(this.opts.query)), this.id = null, this.upgrades = null, this.pingInterval = null, this.pingTimeout = null, this.pingTimeoutTimer = null, typeof addEventListener == "function" && (this.opts.closeOnBeforeunload && (this.beforeunloadEventListener = () => {
2731
+ }, t), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query = ea(this.opts.query)), this.id = null, this.upgrades = null, this.pingInterval = null, this.pingTimeout = null, this.pingTimeoutTimer = null, typeof addEventListener == "function" && (this.opts.closeOnBeforeunload && (this.beforeunloadEventListener = () => {
2716
2732
  this.transport && (this.transport.removeAllListeners(), this.transport.close());
2717
2733
  }, addEventListener("beforeunload", this.beforeunloadEventListener, !1)), this.hostname !== "localhost" && (this.offlineEventListener = () => {
2718
2734
  this.onClose("transport close", {
@@ -2730,11 +2746,11 @@ class ke extends K {
2730
2746
  secure: this.secure,
2731
2747
  port: this.port
2732
2748
  }, this.opts.transportOptions[e]);
2733
- return new ca[e](r);
2749
+ return new la[e](r);
2734
2750
  }
2735
2751
  open() {
2736
2752
  let e;
2737
- if (this.opts.rememberUpgrade && ke.priorWebsocketSuccess && this.transports.indexOf("websocket") !== -1)
2753
+ if (this.opts.rememberUpgrade && Ce.priorWebsocketSuccess && this.transports.indexOf("websocket") !== -1)
2738
2754
  e = "websocket";
2739
2755
  else if (this.transports.length === 0) {
2740
2756
  this.setTimeoutFn(() => {
@@ -2757,14 +2773,14 @@ class ke extends K {
2757
2773
  }
2758
2774
  probe(e) {
2759
2775
  let t = this.createTransport(e), r = !1;
2760
- ke.priorWebsocketSuccess = !1;
2776
+ Ce.priorWebsocketSuccess = !1;
2761
2777
  const s = () => {
2762
2778
  r || (t.send([{ type: "ping", data: "probe" }]), t.once("packet", (f) => {
2763
2779
  if (!r)
2764
2780
  if (f.type === "pong" && f.data === "probe") {
2765
2781
  if (this.upgrading = !0, this.emitReserved("upgrading", t), !t)
2766
2782
  return;
2767
- ke.priorWebsocketSuccess = t.name === "websocket", this.transport.pause(() => {
2783
+ Ce.priorWebsocketSuccess = t.name === "websocket", this.transport.pause(() => {
2768
2784
  r || this.readyState !== "closed" && (h(), this.setTransport(t), t.send([{ type: "upgrade" }]), this.emitReserved("upgrade", t), t = null, this.upgrading = !1, this.flush());
2769
2785
  });
2770
2786
  } else {
@@ -2780,7 +2796,7 @@ class ke extends K {
2780
2796
  const p = new Error("probe error: " + f);
2781
2797
  p.transport = t.name, i(), this.emitReserved("upgradeError", p);
2782
2798
  };
2783
- function c() {
2799
+ function u() {
2784
2800
  o("transport closed");
2785
2801
  }
2786
2802
  function l() {
@@ -2790,14 +2806,14 @@ class ke extends K {
2790
2806
  t && f.name !== t.name && i();
2791
2807
  }
2792
2808
  const h = () => {
2793
- t.removeListener("open", s), t.removeListener("error", o), t.removeListener("close", c), this.off("close", l), this.off("upgrading", a);
2809
+ t.removeListener("open", s), t.removeListener("error", o), t.removeListener("close", u), this.off("close", l), this.off("upgrading", a);
2794
2810
  };
2795
- t.once("open", s), t.once("error", o), t.once("close", c), this.once("close", l), this.once("upgrading", a), this.upgrades.indexOf("webtransport") !== -1 && e !== "webtransport" ? this.setTimeoutFn(() => {
2811
+ t.once("open", s), t.once("error", o), t.once("close", u), this.once("close", l), this.once("upgrading", a), this.upgrades.indexOf("webtransport") !== -1 && e !== "webtransport" ? this.setTimeoutFn(() => {
2796
2812
  r || t.open();
2797
2813
  }, 200) : t.open();
2798
2814
  }
2799
2815
  onOpen() {
2800
- if (this.readyState = "open", ke.priorWebsocketSuccess = this.transport.name === "websocket", this.emitReserved("open"), this.flush(), this.readyState === "open" && this.opts.upgrade) {
2816
+ if (this.readyState = "open", Ce.priorWebsocketSuccess = this.transport.name === "websocket", this.emitReserved("open"), this.flush(), this.readyState === "open" && this.opts.upgrade) {
2801
2817
  let e = 0;
2802
2818
  const t = this.upgrades.length;
2803
2819
  for (; e < t; e++)
@@ -2845,7 +2861,7 @@ class ke extends K {
2845
2861
  let t = 1;
2846
2862
  for (let r = 0; r < this.writeBuffer.length; r++) {
2847
2863
  const s = this.writeBuffer[r].data;
2848
- if (s && (t += Go(s)), r > 0 && t > this.maxPayload)
2864
+ if (s && (t += Xo(s)), r > 0 && t > this.maxPayload)
2849
2865
  return this.writeBuffer.slice(0, r);
2850
2866
  t += 2;
2851
2867
  }
@@ -2881,7 +2897,7 @@ class ke extends K {
2881
2897
  }) : this.upgrading ? r() : e()), this;
2882
2898
  }
2883
2899
  onError(e) {
2884
- ke.priorWebsocketSuccess = !1, this.emitReserved("error", e), this.onClose("transport error", e);
2900
+ Ce.priorWebsocketSuccess = !1, this.emitReserved("error", e), this.onClose("transport error", e);
2885
2901
  }
2886
2902
  onClose(e, t) {
2887
2903
  (this.readyState === "opening" || this.readyState === "open" || this.readyState === "closing") && (this.clearTimeoutFn(this.pingTimeoutTimer), this.transport.removeAllListeners("close"), this.transport.close(), this.transport.removeAllListeners(), typeof removeEventListener == "function" && (removeEventListener("beforeunload", this.beforeunloadEventListener, !1), removeEventListener("offline", this.offlineEventListener, !1)), this.readyState = "closed", this.id = null, this.emitReserved("close", e, t), this.writeBuffer = [], this.prevBufferLen = 0);
@@ -2895,16 +2911,16 @@ class ke extends K {
2895
2911
  return t;
2896
2912
  }
2897
2913
  }
2898
- ke.protocol = Os;
2899
- function pa(n, e = "", t) {
2914
+ Ce.protocol = Os;
2915
+ function va(n, e = "", t) {
2900
2916
  let r = n;
2901
- t = t || typeof location < "u" && location, n == null && (n = t.protocol + "//" + t.host), typeof n == "string" && (n.charAt(0) === "/" && (n.charAt(1) === "/" ? n = t.protocol + n : n = t.host + n), /^(https?|wss?):\/\//.test(n) || (typeof t < "u" ? n = t.protocol + "//" + n : n = "https://" + n), r = Dn(n)), r.port || (/^(http|ws)$/.test(r.protocol) ? r.port = "80" : /^(http|ws)s$/.test(r.protocol) && (r.port = "443")), r.path = r.path || "/";
2917
+ t = t || typeof location < "u" && location, n == null && (n = t.protocol + "//" + t.host), typeof n == "string" && (n.charAt(0) === "/" && (n.charAt(1) === "/" ? n = t.protocol + n : n = t.host + n), /^(https?|wss?):\/\//.test(n) || (typeof t < "u" ? n = t.protocol + "//" + n : n = "https://" + n), r = kn(n)), r.port || (/^(http|ws)$/.test(r.protocol) ? r.port = "80" : /^(http|ws)s$/.test(r.protocol) && (r.port = "443")), r.path = r.path || "/";
2902
2918
  const i = r.host.indexOf(":") !== -1 ? "[" + r.host + "]" : r.host;
2903
2919
  return r.id = r.protocol + "://" + i + ":" + r.port + e, r.href = r.protocol + "://" + i + (t && t.port === r.port ? "" : ":" + r.port), r;
2904
2920
  }
2905
- const va = typeof ArrayBuffer == "function", ya = (n) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(n) : n.buffer instanceof ArrayBuffer, Ls = Object.prototype.toString, ma = typeof Blob == "function" || typeof Blob < "u" && Ls.call(Blob) === "[object BlobConstructor]", ga = typeof File == "function" || typeof File < "u" && Ls.call(File) === "[object FileConstructor]";
2921
+ const ya = typeof ArrayBuffer == "function", ma = (n) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(n) : n.buffer instanceof ArrayBuffer, Ls = Object.prototype.toString, ga = typeof Blob == "function" || typeof Blob < "u" && Ls.call(Blob) === "[object BlobConstructor]", _a = typeof File == "function" || typeof File < "u" && Ls.call(File) === "[object FileConstructor]";
2906
2922
  function Yn(n) {
2907
- return va && (n instanceof ArrayBuffer || ya(n)) || ma && n instanceof Blob || ga && n instanceof File;
2923
+ return ya && (n instanceof ArrayBuffer || ma(n)) || ga && n instanceof Blob || _a && n instanceof File;
2908
2924
  }
2909
2925
  function Pt(n, e) {
2910
2926
  if (!n || typeof n != "object")
@@ -2924,7 +2940,7 @@ function Pt(n, e) {
2924
2940
  return !0;
2925
2941
  return !1;
2926
2942
  }
2927
- function _a(n) {
2943
+ function ba(n) {
2928
2944
  const e = [], t = n.data, r = n;
2929
2945
  return r.data = Ln(t, e), r.attachments = e.length, { packet: r, buffers: e };
2930
2946
  }
@@ -2947,7 +2963,7 @@ function Ln(n, e) {
2947
2963
  }
2948
2964
  return n;
2949
2965
  }
2950
- function ba(n, e) {
2966
+ function wa(n, e) {
2951
2967
  return n.data = Nn(n.data, e), delete n.attachments, n;
2952
2968
  }
2953
2969
  function Nn(n, e) {
@@ -2965,19 +2981,19 @@ function Nn(n, e) {
2965
2981
  Object.prototype.hasOwnProperty.call(n, t) && (n[t] = Nn(n[t], e));
2966
2982
  return n;
2967
2983
  }
2968
- const wa = [
2984
+ const Ea = [
2969
2985
  "connect",
2970
2986
  "connect_error",
2971
2987
  "disconnect",
2972
2988
  "disconnecting",
2973
2989
  "newListener",
2974
2990
  "removeListener"
2975
- ], Ea = 5;
2991
+ ], Ra = 5;
2976
2992
  var T;
2977
2993
  (function(n) {
2978
2994
  n[n.CONNECT = 0] = "CONNECT", n[n.DISCONNECT = 1] = "DISCONNECT", n[n.EVENT = 2] = "EVENT", n[n.ACK = 3] = "ACK", n[n.CONNECT_ERROR = 4] = "CONNECT_ERROR", n[n.BINARY_EVENT = 5] = "BINARY_EVENT", n[n.BINARY_ACK = 6] = "BINARY_ACK";
2979
2995
  })(T || (T = {}));
2980
- class Ra {
2996
+ class Sa {
2981
2997
  constructor(e) {
2982
2998
  this.replacer = e;
2983
2999
  }
@@ -2994,7 +3010,7 @@ class Ra {
2994
3010
  return (e.type === T.BINARY_EVENT || e.type === T.BINARY_ACK) && (t += e.attachments + "-"), e.nsp && e.nsp !== "/" && (t += e.nsp + ","), e.id != null && (t += e.id), e.data != null && (t += JSON.stringify(e.data, this.replacer)), t;
2995
3011
  }
2996
3012
  encodeAsBinary(e) {
2997
- const t = _a(e), r = this.encodeAsString(t.packet), s = t.buffers;
3013
+ const t = ba(e), r = this.encodeAsString(t.packet), s = t.buffers;
2998
3014
  return s.unshift(r), s;
2999
3015
  }
3000
3016
  }
@@ -3012,7 +3028,7 @@ class zn extends K {
3012
3028
  throw new Error("got plaintext data when reconstructing a packet");
3013
3029
  t = this.decodeString(e);
3014
3030
  const r = t.type === T.BINARY_EVENT;
3015
- r || t.type === T.BINARY_ACK ? (t.type = r ? T.EVENT : T.ACK, this.reconstructor = new Sa(t), t.attachments === 0 && super.emitReserved("decoded", t)) : super.emitReserved("decoded", t);
3031
+ r || t.type === T.BINARY_ACK ? (t.type = r ? T.EVENT : T.ACK, this.reconstructor = new Ta(t), t.attachments === 0 && super.emitReserved("decoded", t)) : super.emitReserved("decoded", t);
3016
3032
  } else if (Yn(e) || e.base64)
3017
3033
  if (this.reconstructor)
3018
3034
  t = this.reconstructor.takeBinaryData(e), t && (this.reconstructor = null, super.emitReserved("decoded", t));
@@ -3084,7 +3100,7 @@ class zn extends K {
3084
3100
  return typeof t == "string" || Hr(t);
3085
3101
  case T.EVENT:
3086
3102
  case T.BINARY_EVENT:
3087
- return Array.isArray(t) && (typeof t[0] == "number" || typeof t[0] == "string" && wa.indexOf(t[0]) === -1);
3103
+ return Array.isArray(t) && (typeof t[0] == "number" || typeof t[0] == "string" && Ea.indexOf(t[0]) === -1);
3088
3104
  case T.ACK:
3089
3105
  case T.BINARY_ACK:
3090
3106
  return Array.isArray(t);
@@ -3094,13 +3110,13 @@ class zn extends K {
3094
3110
  this.reconstructor && (this.reconstructor.finishedReconstruction(), this.reconstructor = null);
3095
3111
  }
3096
3112
  }
3097
- class Sa {
3113
+ class Ta {
3098
3114
  constructor(e) {
3099
3115
  this.packet = e, this.buffers = [], this.reconPack = e;
3100
3116
  }
3101
3117
  takeBinaryData(e) {
3102
3118
  if (this.buffers.push(e), this.buffers.length === this.reconPack.attachments) {
3103
- const t = ba(this.reconPack, this.buffers);
3119
+ const t = wa(this.reconPack, this.buffers);
3104
3120
  return this.finishedReconstruction(), t;
3105
3121
  }
3106
3122
  return null;
@@ -3109,13 +3125,13 @@ class Sa {
3109
3125
  this.reconPack = null, this.buffers = [];
3110
3126
  }
3111
3127
  }
3112
- const Ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3128
+ const Oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3113
3129
  __proto__: null,
3114
- protocol: Ea,
3130
+ protocol: Ra,
3115
3131
  get PacketType() {
3116
3132
  return T;
3117
3133
  },
3118
- Encoder: Ra,
3134
+ Encoder: Sa,
3119
3135
  Decoder: zn
3120
3136
  }, Symbol.toStringTag, { value: "Module" }));
3121
3137
  function pe(n, e, t) {
@@ -3123,7 +3139,7 @@ function pe(n, e, t) {
3123
3139
  n.off(e, t);
3124
3140
  };
3125
3141
  }
3126
- const Oa = Object.freeze({
3142
+ const xa = Object.freeze({
3127
3143
  connect: 1,
3128
3144
  connect_error: 1,
3129
3145
  disconnect: 1,
@@ -3162,7 +3178,7 @@ class Ns extends K {
3162
3178
  return e.unshift("message"), this.emit.apply(this, e), this;
3163
3179
  }
3164
3180
  emit(e, ...t) {
3165
- if (Oa.hasOwnProperty(e))
3181
+ if (xa.hasOwnProperty(e))
3166
3182
  throw new Error('"' + e.toString() + '" is a reserved event name');
3167
3183
  if (t.unshift(e), this._opts.retries && !this.flags.fromQueue && !this.flags.volatile)
3168
3184
  return this._addToQueue(t), this;
@@ -3171,8 +3187,8 @@ class Ns extends K {
3171
3187
  data: t
3172
3188
  };
3173
3189
  if (r.options = {}, r.options.compress = this.flags.compress !== !1, typeof t[t.length - 1] == "function") {
3174
- const o = this.ids++, c = t.pop();
3175
- this._registerAckCallback(o, c), r.id = o;
3190
+ const o = this.ids++, u = t.pop();
3191
+ this._registerAckCallback(o, u), r.id = o;
3176
3192
  }
3177
3193
  const s = this.io.engine && this.io.engine.transport && this.io.engine.transport.writable;
3178
3194
  return this.flags.volatile && (!s || !this.connected) || (this.connected ? (this.notifyOutgoingListeners(r), this.packet(r)) : this.sendBuffer.push(r)), this.flags = {}, this;
@@ -3197,7 +3213,7 @@ class Ns extends K {
3197
3213
  emitWithAck(e, ...t) {
3198
3214
  const r = this.flags.timeout !== void 0 || this._opts.ackTimeout !== void 0;
3199
3215
  return new Promise((s, i) => {
3200
- t.push((o, c) => r ? o ? i(o) : s(c) : s(o)), this.emit(e, ...t);
3216
+ t.push((o, u) => r ? o ? i(o) : s(u) : s(o)), this.emit(e, ...t);
3201
3217
  });
3202
3218
  }
3203
3219
  _addToQueue(e) {
@@ -3368,10 +3384,10 @@ class Ns extends K {
3368
3384
  }
3369
3385
  }
3370
3386
  }
3371
- function Qe(n) {
3387
+ function Xe(n) {
3372
3388
  n = n || {}, this.ms = n.min || 100, this.max = n.max || 1e4, this.factor = n.factor || 2, this.jitter = n.jitter > 0 && n.jitter <= 1 ? n.jitter : 0, this.attempts = 0;
3373
3389
  }
3374
- Qe.prototype.duration = function() {
3390
+ Xe.prototype.duration = function() {
3375
3391
  var n = this.ms * Math.pow(this.factor, this.attempts++);
3376
3392
  if (this.jitter) {
3377
3393
  var e = Math.random(), t = Math.floor(e * this.jitter * n);
@@ -3379,27 +3395,27 @@ Qe.prototype.duration = function() {
3379
3395
  }
3380
3396
  return Math.min(n, this.max) | 0;
3381
3397
  };
3382
- Qe.prototype.reset = function() {
3398
+ Xe.prototype.reset = function() {
3383
3399
  this.attempts = 0;
3384
3400
  };
3385
- Qe.prototype.setMin = function(n) {
3401
+ Xe.prototype.setMin = function(n) {
3386
3402
  this.ms = n;
3387
3403
  };
3388
- Qe.prototype.setMax = function(n) {
3404
+ Xe.prototype.setMax = function(n) {
3389
3405
  this.max = n;
3390
3406
  };
3391
- Qe.prototype.setJitter = function(n) {
3407
+ Xe.prototype.setJitter = function(n) {
3392
3408
  this.jitter = n;
3393
3409
  };
3394
3410
  class Pn extends K {
3395
3411
  constructor(e, t) {
3396
3412
  var r;
3397
- super(), this.nsps = {}, this.subs = [], e && typeof e == "object" && (t = e, e = void 0), t = t || {}, t.path = t.path || "/socket.io", this.opts = t, Mt(this, t), this.reconnection(t.reconnection !== !1), this.reconnectionAttempts(t.reconnectionAttempts || 1 / 0), this.reconnectionDelay(t.reconnectionDelay || 1e3), this.reconnectionDelayMax(t.reconnectionDelayMax || 5e3), this.randomizationFactor((r = t.randomizationFactor) !== null && r !== void 0 ? r : 0.5), this.backoff = new Qe({
3413
+ super(), this.nsps = {}, this.subs = [], e && typeof e == "object" && (t = e, e = void 0), t = t || {}, t.path = t.path || "/socket.io", this.opts = t, Mt(this, t), this.reconnection(t.reconnection !== !1), this.reconnectionAttempts(t.reconnectionAttempts || 1 / 0), this.reconnectionDelay(t.reconnectionDelay || 1e3), this.reconnectionDelayMax(t.reconnectionDelayMax || 5e3), this.randomizationFactor((r = t.randomizationFactor) !== null && r !== void 0 ? r : 0.5), this.backoff = new Xe({
3398
3414
  min: this.reconnectionDelay(),
3399
3415
  max: this.reconnectionDelayMax(),
3400
3416
  jitter: this.randomizationFactor()
3401
3417
  }), this.timeout(t.timeout == null ? 2e4 : t.timeout), this._readyState = "closed", this.uri = e;
3402
- const s = t.parser || Ta;
3418
+ const s = t.parser || Oa;
3403
3419
  this.encoder = new s.Encoder(), this.decoder = new s.Decoder(), this._autoConnect = t.autoConnect !== !1, this._autoConnect && this.open();
3404
3420
  }
3405
3421
  reconnection(e) {
@@ -3429,18 +3445,18 @@ class Pn extends K {
3429
3445
  open(e) {
3430
3446
  if (~this._readyState.indexOf("open"))
3431
3447
  return this;
3432
- this.engine = new ke(this.uri, this.opts);
3448
+ this.engine = new Ce(this.uri, this.opts);
3433
3449
  const t = this.engine, r = this;
3434
3450
  this._readyState = "opening", this.skipReconnect = !1;
3435
3451
  const s = pe(t, "open", function() {
3436
3452
  r.onopen(), e && e();
3437
- }), i = (c) => {
3438
- this.cleanup(), this._readyState = "closed", this.emitReserved("error", c), e ? e(c) : this.maybeReconnectOnOpen();
3453
+ }), i = (u) => {
3454
+ this.cleanup(), this._readyState = "closed", this.emitReserved("error", u), e ? e(u) : this.maybeReconnectOnOpen();
3439
3455
  }, o = pe(t, "error", i);
3440
3456
  if (this._timeout !== !1) {
3441
- const c = this._timeout, l = this.setTimeoutFn(() => {
3457
+ const u = this._timeout, l = this.setTimeoutFn(() => {
3442
3458
  s(), i(new Error("timeout")), t.close();
3443
- }, c);
3459
+ }, u);
3444
3460
  this.opts.autoUnref && l.unref(), this.subs.push(() => {
3445
3461
  this.clearTimeoutFn(l);
3446
3462
  });
@@ -3528,9 +3544,9 @@ class Pn extends K {
3528
3544
  const it = {};
3529
3545
  function Bt(n, e) {
3530
3546
  typeof n == "object" && (e = n, n = void 0), e = e || {};
3531
- const t = pa(n, e.path || "/socket.io"), r = t.source, s = t.id, i = t.path, o = it[s] && i in it[s].nsps, c = e.forceNew || e["force new connection"] || e.multiplex === !1 || o;
3547
+ const t = va(n, e.path || "/socket.io"), r = t.source, s = t.id, i = t.path, o = it[s] && i in it[s].nsps, u = e.forceNew || e["force new connection"] || e.multiplex === !1 || o;
3532
3548
  let l;
3533
- return c ? l = new Pn(r, e) : (it[s] || (it[s] = new Pn(r, e)), l = it[s]), t.query && !e.query && (e.query = t.queryKey), l.socket(t.path, e);
3549
+ return u ? l = new Pn(r, e) : (it[s] || (it[s] = new Pn(r, e)), l = it[s]), t.query && !e.query && (e.query = t.queryKey), l.socket(t.path, e);
3534
3550
  }
3535
3551
  Object.assign(Bt, {
3536
3552
  Manager: Pn,
@@ -3538,17 +3554,22 @@ Object.assign(Bt, {
3538
3554
  io: Bt,
3539
3555
  connect: Bt
3540
3556
  });
3541
- class xa {
3557
+ class Ca {
3542
3558
  constructor(e, t, r, s) {
3543
- Ae(this, "socket_port");
3544
- Ae(this, "host");
3545
- Ae(this, "port");
3546
- Ae(this, "protocol");
3547
- Ae(this, "url");
3548
- Ae(this, "site_name");
3549
- Ae(this, "socket");
3559
+ xe(this, "socket_port");
3560
+ xe(this, "host");
3561
+ xe(this, "port");
3562
+ xe(this, "protocol");
3563
+ xe(this, "url");
3564
+ xe(this, "site_name");
3565
+ xe(this, "socket");
3550
3566
  var i, o;
3551
- this.socket_port = r != null ? r : "9000", this.host = (i = window.location) == null ? void 0 : i.hostname, this.port = (o = window.location) != null && o.port ? `:${this.socket_port}` : "", this.protocol = this.port ? "http" : "https", this.url = e || `${this.protocol}://${this.host}${this.port}`, this.site_name = t, this.socket = Bt(`${this.url}/${this.site_name}`, {
3567
+ if (this.socket_port = r != null ? r : "9000", this.host = (i = window.location) == null ? void 0 : i.hostname, this.port = (o = window.location) != null && o.port ? `:${this.socket_port}` : "", this.protocol = this.port ? "http" : "https", e) {
3568
+ let u = new URL(e);
3569
+ u.port = "", r ? (u.port = r, this.url = u.toString()) : this.url = u.toString();
3570
+ } else
3571
+ this.url = `${this.protocol}://${this.host}${this.port}/`;
3572
+ t && (this.url = `${this.url}${t}`), this.site_name = t, this.socket = Bt(`${this.url}`, {
3552
3573
  withCredentials: !0,
3553
3574
  secure: this.protocol === "https",
3554
3575
  extraHeaders: s && s.useToken === !0 ? {
@@ -3568,20 +3589,20 @@ var Ps = { exports: {} }, ot = {};
3568
3589
  * LICENSE file in the root directory of this source tree.
3569
3590
  */
3570
3591
  var Jr;
3571
- function Ca() {
3592
+ function Aa() {
3572
3593
  if (Jr)
3573
3594
  return ot;
3574
3595
  Jr = 1;
3575
- var n = Ie, e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
3576
- function o(c, l, a) {
3596
+ var n = qe, e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
3597
+ function o(u, l, a) {
3577
3598
  var h, f = {}, p = null, v = null;
3578
3599
  a !== void 0 && (p = "" + a), l.key !== void 0 && (p = "" + l.key), l.ref !== void 0 && (v = l.ref);
3579
3600
  for (h in l)
3580
3601
  r.call(l, h) && !i.hasOwnProperty(h) && (f[h] = l[h]);
3581
- if (c && c.defaultProps)
3582
- for (h in l = c.defaultProps, l)
3602
+ if (u && u.defaultProps)
3603
+ for (h in l = u.defaultProps, l)
3583
3604
  f[h] === void 0 && (f[h] = l[h]);
3584
- return { $$typeof: e, type: c, key: p, ref: v, props: f, _owner: s.current };
3605
+ return { $$typeof: e, type: u, key: p, ref: v, props: f, _owner: s.current };
3585
3606
  }
3586
3607
  return ot.Fragment = t, ot.jsx = o, ot.jsxs = o, ot;
3587
3608
  }
@@ -3596,56 +3617,56 @@ var at = {};
3596
3617
  * LICENSE file in the root directory of this source tree.
3597
3618
  */
3598
3619
  var Yr;
3599
- function Aa() {
3620
+ function Da() {
3600
3621
  return Yr || (Yr = 1, process.env.NODE_ENV !== "production" && function() {
3601
- var n = Ie, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), b = Symbol.iterator, w = "@@iterator";
3602
- function x(u) {
3603
- if (u === null || typeof u != "object")
3622
+ var n = qe, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), u = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), b = Symbol.iterator, w = "@@iterator";
3623
+ function O(c) {
3624
+ if (c === null || typeof c != "object")
3604
3625
  return null;
3605
- var d = b && u[b] || u[w];
3626
+ var d = b && c[b] || c[w];
3606
3627
  return typeof d == "function" ? d : null;
3607
3628
  }
3608
3629
  var g = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
3609
- function S(u) {
3630
+ function R(c) {
3610
3631
  {
3611
3632
  for (var d = arguments.length, y = new Array(d > 1 ? d - 1 : 0), _ = 1; _ < d; _++)
3612
3633
  y[_ - 1] = arguments[_];
3613
- D("error", u, y);
3634
+ k("error", c, y);
3614
3635
  }
3615
3636
  }
3616
- function D(u, d, y) {
3637
+ function k(c, d, y) {
3617
3638
  {
3618
3639
  var _ = g.ReactDebugCurrentFrame, A = _.getStackAddendum();
3619
3640
  A !== "" && (d += "%s", y = y.concat([A]));
3620
- var U = y.map(function(O) {
3621
- return String(O);
3641
+ var q = y.map(function(x) {
3642
+ return String(x);
3622
3643
  });
3623
- U.unshift("Warning: " + d), Function.prototype.apply.call(console[u], console, U);
3644
+ q.unshift("Warning: " + d), Function.prototype.apply.call(console[c], console, q);
3624
3645
  }
3625
3646
  }
3626
- var m = !1, V = !1, q = !1, k = !1, E = !1, j;
3647
+ var m = !1, M = !1, S = !1, V = !1, D = !1, j;
3627
3648
  j = Symbol.for("react.module.reference");
3628
- function L(u) {
3629
- return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || E || u === s || u === a || u === h || k || u === v || m || V || q || typeof u == "object" && u !== null && (u.$$typeof === p || u.$$typeof === f || u.$$typeof === o || u.$$typeof === c || u.$$typeof === l || u.$$typeof === j || u.getModuleId !== void 0));
3649
+ function L(c) {
3650
+ return !!(typeof c == "string" || typeof c == "function" || c === r || c === i || D || c === s || c === a || c === h || V || c === v || m || M || S || typeof c == "object" && c !== null && (c.$$typeof === p || c.$$typeof === f || c.$$typeof === o || c.$$typeof === u || c.$$typeof === l || c.$$typeof === j || c.getModuleId !== void 0));
3630
3651
  }
3631
- function X(u, d, y) {
3632
- var _ = u.displayName;
3652
+ function Q(c, d, y) {
3653
+ var _ = c.displayName;
3633
3654
  if (_)
3634
3655
  return _;
3635
3656
  var A = d.displayName || d.name || "";
3636
3657
  return A !== "" ? y + "(" + A + ")" : y;
3637
3658
  }
3638
- function ne(u) {
3639
- return u.displayName || "Context";
3659
+ function ne(c) {
3660
+ return c.displayName || "Context";
3640
3661
  }
3641
- function Z(u) {
3642
- if (u == null)
3662
+ function G(c) {
3663
+ if (c == null)
3643
3664
  return null;
3644
- if (typeof u.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof u == "function")
3645
- return u.displayName || u.name || null;
3646
- if (typeof u == "string")
3647
- return u;
3648
- switch (u) {
3665
+ if (typeof c.tag == "number" && R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof c == "function")
3666
+ return c.displayName || c.name || null;
3667
+ if (typeof c == "string")
3668
+ return c;
3669
+ switch (c) {
3649
3670
  case r:
3650
3671
  return "Fragment";
3651
3672
  case t:
@@ -3659,23 +3680,23 @@ function Aa() {
3659
3680
  case h:
3660
3681
  return "SuspenseList";
3661
3682
  }
3662
- if (typeof u == "object")
3663
- switch (u.$$typeof) {
3664
- case c:
3665
- var d = u;
3683
+ if (typeof c == "object")
3684
+ switch (c.$$typeof) {
3685
+ case u:
3686
+ var d = c;
3666
3687
  return ne(d) + ".Consumer";
3667
3688
  case o:
3668
- var y = u;
3689
+ var y = c;
3669
3690
  return ne(y._context) + ".Provider";
3670
3691
  case l:
3671
- return X(u, u.render, "ForwardRef");
3692
+ return Q(c, c.render, "ForwardRef");
3672
3693
  case f:
3673
- var _ = u.displayName || null;
3674
- return _ !== null ? _ : Z(u.type) || "Memo";
3694
+ var _ = c.displayName || null;
3695
+ return _ !== null ? _ : G(c.type) || "Memo";
3675
3696
  case p: {
3676
- var A = u, U = A._payload, O = A._init;
3697
+ var A = c, q = A._payload, x = A._init;
3677
3698
  try {
3678
- return Z(O(U));
3699
+ return G(x(q));
3679
3700
  } catch {
3680
3701
  return null;
3681
3702
  }
@@ -3683,80 +3704,80 @@ function Aa() {
3683
3704
  }
3684
3705
  return null;
3685
3706
  }
3686
- var $ = Object.assign, be = 0, we, Ze, Ee, et, yt, Re, Se;
3687
- function Pe() {
3707
+ var F = Object.assign, Le = 0, Qe, Ze, be, et, yt, we, Ee;
3708
+ function Ne() {
3688
3709
  }
3689
- Pe.__reactDisabledLog = !0;
3710
+ Ne.__reactDisabledLog = !0;
3690
3711
  function mt() {
3691
3712
  {
3692
- if (be === 0) {
3693
- we = console.log, Ze = console.info, Ee = console.warn, et = console.error, yt = console.group, Re = console.groupCollapsed, Se = console.groupEnd;
3694
- var u = {
3713
+ if (Le === 0) {
3714
+ Qe = console.log, Ze = console.info, be = console.warn, et = console.error, yt = console.group, we = console.groupCollapsed, Ee = console.groupEnd;
3715
+ var c = {
3695
3716
  configurable: !0,
3696
3717
  enumerable: !0,
3697
- value: Pe,
3718
+ value: Ne,
3698
3719
  writable: !0
3699
3720
  };
3700
3721
  Object.defineProperties(console, {
3701
- info: u,
3702
- log: u,
3703
- warn: u,
3704
- error: u,
3705
- group: u,
3706
- groupCollapsed: u,
3707
- groupEnd: u
3722
+ info: c,
3723
+ log: c,
3724
+ warn: c,
3725
+ error: c,
3726
+ group: c,
3727
+ groupCollapsed: c,
3728
+ groupEnd: c
3708
3729
  });
3709
3730
  }
3710
- be++;
3731
+ Le++;
3711
3732
  }
3712
3733
  }
3713
- function Ve() {
3734
+ function Ie() {
3714
3735
  {
3715
- if (be--, be === 0) {
3716
- var u = {
3736
+ if (Le--, Le === 0) {
3737
+ var c = {
3717
3738
  configurable: !0,
3718
3739
  enumerable: !0,
3719
3740
  writable: !0
3720
3741
  };
3721
3742
  Object.defineProperties(console, {
3722
- log: $({}, u, {
3723
- value: we
3743
+ log: F({}, c, {
3744
+ value: Qe
3724
3745
  }),
3725
- info: $({}, u, {
3746
+ info: F({}, c, {
3726
3747
  value: Ze
3727
3748
  }),
3728
- warn: $({}, u, {
3729
- value: Ee
3749
+ warn: F({}, c, {
3750
+ value: be
3730
3751
  }),
3731
- error: $({}, u, {
3752
+ error: F({}, c, {
3732
3753
  value: et
3733
3754
  }),
3734
- group: $({}, u, {
3755
+ group: F({}, c, {
3735
3756
  value: yt
3736
3757
  }),
3737
- groupCollapsed: $({}, u, {
3738
- value: Re
3758
+ groupCollapsed: F({}, c, {
3759
+ value: we
3739
3760
  }),
3740
- groupEnd: $({}, u, {
3741
- value: Se
3761
+ groupEnd: F({}, c, {
3762
+ value: Ee
3742
3763
  })
3743
3764
  });
3744
3765
  }
3745
- be < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
3766
+ Le < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
3746
3767
  }
3747
3768
  }
3748
- var je = g.ReactCurrentDispatcher, $e;
3749
- function Me(u, d, y) {
3769
+ var Ve = g.ReactCurrentDispatcher, je;
3770
+ function $e(c, d, y) {
3750
3771
  {
3751
- if ($e === void 0)
3772
+ if (je === void 0)
3752
3773
  try {
3753
3774
  throw Error();
3754
3775
  } catch (A) {
3755
3776
  var _ = A.stack.trim().match(/\n( *(at )?)/);
3756
- $e = _ && _[1] || "";
3777
+ je = _ && _[1] || "";
3757
3778
  }
3758
3779
  return `
3759
- ` + $e + u;
3780
+ ` + je + c;
3760
3781
  }
3761
3782
  }
3762
3783
  var tt = !1, ve;
@@ -3764,11 +3785,11 @@ function Aa() {
3764
3785
  var gt = typeof WeakMap == "function" ? WeakMap : Map;
3765
3786
  ve = new gt();
3766
3787
  }
3767
- function N(u, d) {
3768
- if (!u || tt)
3788
+ function N(c, d) {
3789
+ if (!c || tt)
3769
3790
  return "";
3770
3791
  {
3771
- var y = ve.get(u);
3792
+ var y = ve.get(c);
3772
3793
  if (y !== void 0)
3773
3794
  return y;
3774
3795
  }
@@ -3776,276 +3797,276 @@ function Aa() {
3776
3797
  tt = !0;
3777
3798
  var A = Error.prepareStackTrace;
3778
3799
  Error.prepareStackTrace = void 0;
3779
- var U;
3780
- U = je.current, je.current = null, mt();
3800
+ var q;
3801
+ q = Ve.current, Ve.current = null, mt();
3781
3802
  try {
3782
3803
  if (d) {
3783
- var O = function() {
3804
+ var x = function() {
3784
3805
  throw Error();
3785
3806
  };
3786
- if (Object.defineProperty(O.prototype, "props", {
3807
+ if (Object.defineProperty(x.prototype, "props", {
3787
3808
  set: function() {
3788
3809
  throw Error();
3789
3810
  }
3790
3811
  }), typeof Reflect == "object" && Reflect.construct) {
3791
3812
  try {
3792
- Reflect.construct(O, []);
3793
- } catch (Oe) {
3794
- _ = Oe;
3813
+ Reflect.construct(x, []);
3814
+ } catch (Se) {
3815
+ _ = Se;
3795
3816
  }
3796
- Reflect.construct(u, [], O);
3817
+ Reflect.construct(c, [], x);
3797
3818
  } else {
3798
3819
  try {
3799
- O.call();
3800
- } catch (Oe) {
3801
- _ = Oe;
3820
+ x.call();
3821
+ } catch (Se) {
3822
+ _ = Se;
3802
3823
  }
3803
- u.call(O.prototype);
3824
+ c.call(x.prototype);
3804
3825
  }
3805
3826
  } else {
3806
3827
  try {
3807
3828
  throw Error();
3808
- } catch (Oe) {
3809
- _ = Oe;
3829
+ } catch (Se) {
3830
+ _ = Se;
3810
3831
  }
3811
- u();
3832
+ c();
3812
3833
  }
3813
- } catch (Oe) {
3814
- if (Oe && _ && typeof Oe.stack == "string") {
3815
- for (var R = Oe.stack.split(`
3834
+ } catch (Se) {
3835
+ if (Se && _ && typeof Se.stack == "string") {
3836
+ for (var E = Se.stack.split(`
3816
3837
  `), se = _.stack.split(`
3817
- `), W = R.length - 1, Y = se.length - 1; W >= 1 && Y >= 0 && R[W] !== se[Y]; )
3838
+ `), W = E.length - 1, Y = se.length - 1; W >= 1 && Y >= 0 && E[W] !== se[Y]; )
3818
3839
  Y--;
3819
3840
  for (; W >= 1 && Y >= 0; W--, Y--)
3820
- if (R[W] !== se[Y]) {
3841
+ if (E[W] !== se[Y]) {
3821
3842
  if (W !== 1 || Y !== 1)
3822
3843
  do
3823
- if (W--, Y--, Y < 0 || R[W] !== se[Y]) {
3824
- var ce = `
3825
- ` + R[W].replace(" at new ", " at ");
3826
- return u.displayName && ce.includes("<anonymous>") && (ce = ce.replace("<anonymous>", u.displayName)), typeof u == "function" && ve.set(u, ce), ce;
3844
+ if (W--, Y--, Y < 0 || E[W] !== se[Y]) {
3845
+ var le = `
3846
+ ` + E[W].replace(" at new ", " at ");
3847
+ return c.displayName && le.includes("<anonymous>") && (le = le.replace("<anonymous>", c.displayName)), typeof c == "function" && ve.set(c, le), le;
3827
3848
  }
3828
3849
  while (W >= 1 && Y >= 0);
3829
3850
  break;
3830
3851
  }
3831
3852
  }
3832
3853
  } finally {
3833
- tt = !1, je.current = U, Ve(), Error.prepareStackTrace = A;
3854
+ tt = !1, Ve.current = q, Ie(), Error.prepareStackTrace = A;
3834
3855
  }
3835
- var Ye = u ? u.displayName || u.name : "", rr = Ye ? Me(Ye) : "";
3836
- return typeof u == "function" && ve.set(u, rr), rr;
3856
+ var Je = c ? c.displayName || c.name : "", rr = Je ? $e(Je) : "";
3857
+ return typeof c == "function" && ve.set(c, rr), rr;
3837
3858
  }
3838
- function F(u, d, y) {
3839
- return N(u, !1);
3859
+ function U(c, d, y) {
3860
+ return N(c, !1);
3840
3861
  }
3841
- function G(u) {
3842
- var d = u.prototype;
3862
+ function X(c) {
3863
+ var d = c.prototype;
3843
3864
  return !!(d && d.isReactComponent);
3844
3865
  }
3845
- function I(u, d, y) {
3846
- if (u == null)
3866
+ function I(c, d, y) {
3867
+ if (c == null)
3847
3868
  return "";
3848
- if (typeof u == "function")
3849
- return N(u, G(u));
3850
- if (typeof u == "string")
3851
- return Me(u);
3852
- switch (u) {
3869
+ if (typeof c == "function")
3870
+ return N(c, X(c));
3871
+ if (typeof c == "string")
3872
+ return $e(c);
3873
+ switch (c) {
3853
3874
  case a:
3854
- return Me("Suspense");
3875
+ return $e("Suspense");
3855
3876
  case h:
3856
- return Me("SuspenseList");
3877
+ return $e("SuspenseList");
3857
3878
  }
3858
- if (typeof u == "object")
3859
- switch (u.$$typeof) {
3879
+ if (typeof c == "object")
3880
+ switch (c.$$typeof) {
3860
3881
  case l:
3861
- return F(u.render);
3882
+ return U(c.render);
3862
3883
  case f:
3863
- return I(u.type, d, y);
3884
+ return I(c.type, d, y);
3864
3885
  case p: {
3865
- var _ = u, A = _._payload, U = _._init;
3886
+ var _ = c, A = _._payload, q = _._init;
3866
3887
  try {
3867
- return I(U(A), d, y);
3888
+ return I(q(A), d, y);
3868
3889
  } catch {
3869
3890
  }
3870
3891
  }
3871
3892
  }
3872
3893
  return "";
3873
3894
  }
3874
- var re = Object.prototype.hasOwnProperty, Te = {}, H = g.ReactDebugCurrentFrame;
3875
- function J(u) {
3876
- if (u) {
3877
- var d = u._owner, y = I(u.type, u._source, d ? d.type : null);
3895
+ var re = Object.prototype.hasOwnProperty, Re = {}, H = g.ReactDebugCurrentFrame;
3896
+ function J(c) {
3897
+ if (c) {
3898
+ var d = c._owner, y = I(c.type, c._source, d ? d.type : null);
3878
3899
  H.setExtraStackFrame(y);
3879
3900
  } else
3880
3901
  H.setExtraStackFrame(null);
3881
3902
  }
3882
- function de(u, d, y, _, A) {
3903
+ function de(c, d, y, _, A) {
3883
3904
  {
3884
- var U = Function.call.bind(re);
3885
- for (var O in u)
3886
- if (U(u, O)) {
3887
- var R = void 0;
3905
+ var q = Function.call.bind(re);
3906
+ for (var x in c)
3907
+ if (q(c, x)) {
3908
+ var E = void 0;
3888
3909
  try {
3889
- if (typeof u[O] != "function") {
3890
- var se = Error((_ || "React class") + ": " + y + " type `" + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[O] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
3910
+ if (typeof c[x] != "function") {
3911
+ var se = Error((_ || "React class") + ": " + y + " type `" + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof c[x] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
3891
3912
  throw se.name = "Invariant Violation", se;
3892
3913
  }
3893
- R = u[O](d, O, _, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
3914
+ E = c[x](d, x, _, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
3894
3915
  } catch (W) {
3895
- R = W;
3916
+ E = W;
3896
3917
  }
3897
- R && !(R instanceof Error) && (J(A), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", _ || "React class", y, O, typeof R), J(null)), R instanceof Error && !(R.message in Te) && (Te[R.message] = !0, J(A), S("Failed %s type: %s", y, R.message), J(null));
3918
+ E && !(E instanceof Error) && (J(A), R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", _ || "React class", y, x, typeof E), J(null)), E instanceof Error && !(E.message in Re) && (Re[E.message] = !0, J(A), R("Failed %s type: %s", y, E.message), J(null));
3898
3919
  }
3899
3920
  }
3900
3921
  }
3901
3922
  var _t = Array.isArray;
3902
- function We(u) {
3903
- return _t(u);
3923
+ function Me(c) {
3924
+ return _t(c);
3904
3925
  }
3905
- function bt(u) {
3926
+ function bt(c) {
3906
3927
  {
3907
- var d = typeof Symbol == "function" && Symbol.toStringTag, y = d && u[Symbol.toStringTag] || u.constructor.name || "Object";
3928
+ var d = typeof Symbol == "function" && Symbol.toStringTag, y = d && c[Symbol.toStringTag] || c.constructor.name || "Object";
3908
3929
  return y;
3909
3930
  }
3910
3931
  }
3911
- function ie(u) {
3932
+ function ie(c) {
3912
3933
  try {
3913
- return ue(u), !1;
3934
+ return ce(c), !1;
3914
3935
  } catch {
3915
3936
  return !0;
3916
3937
  }
3917
3938
  }
3918
- function ue(u) {
3919
- return "" + u;
3939
+ function ce(c) {
3940
+ return "" + c;
3920
3941
  }
3921
- function He(u) {
3922
- if (ie(u))
3923
- return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", bt(u)), ue(u);
3942
+ function We(c) {
3943
+ if (ie(c))
3944
+ return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", bt(c)), ce(c);
3924
3945
  }
3925
- var Be = g.ReactCurrentOwner, nt = {
3946
+ var Pe = g.ReactCurrentOwner, nt = {
3926
3947
  key: !0,
3927
3948
  ref: !0,
3928
3949
  __self: !0,
3929
3950
  __source: !0
3930
3951
  }, Kn, Gn, Wt;
3931
3952
  Wt = {};
3932
- function Us(u) {
3933
- if (re.call(u, "ref")) {
3934
- var d = Object.getOwnPropertyDescriptor(u, "ref").get;
3953
+ function Us(c) {
3954
+ if (re.call(c, "ref")) {
3955
+ var d = Object.getOwnPropertyDescriptor(c, "ref").get;
3935
3956
  if (d && d.isReactWarning)
3936
3957
  return !1;
3937
3958
  }
3938
- return u.ref !== void 0;
3959
+ return c.ref !== void 0;
3939
3960
  }
3940
- function qs(u) {
3941
- if (re.call(u, "key")) {
3942
- var d = Object.getOwnPropertyDescriptor(u, "key").get;
3961
+ function qs(c) {
3962
+ if (re.call(c, "key")) {
3963
+ var d = Object.getOwnPropertyDescriptor(c, "key").get;
3943
3964
  if (d && d.isReactWarning)
3944
3965
  return !1;
3945
3966
  }
3946
- return u.key !== void 0;
3967
+ return c.key !== void 0;
3947
3968
  }
3948
- function Is(u, d) {
3949
- if (typeof u.ref == "string" && Be.current && d && Be.current.stateNode !== d) {
3950
- var y = Z(Be.current.type);
3951
- Wt[y] || (S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Z(Be.current.type), u.ref), Wt[y] = !0);
3969
+ function Is(c, d) {
3970
+ if (typeof c.ref == "string" && Pe.current && d && Pe.current.stateNode !== d) {
3971
+ var y = G(Pe.current.type);
3972
+ Wt[y] || (R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', G(Pe.current.type), c.ref), Wt[y] = !0);
3952
3973
  }
3953
3974
  }
3954
- function Vs(u, d) {
3975
+ function Vs(c, d) {
3955
3976
  {
3956
3977
  var y = function() {
3957
- Kn || (Kn = !0, S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
3978
+ Kn || (Kn = !0, R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
3958
3979
  };
3959
- y.isReactWarning = !0, Object.defineProperty(u, "key", {
3980
+ y.isReactWarning = !0, Object.defineProperty(c, "key", {
3960
3981
  get: y,
3961
3982
  configurable: !0
3962
3983
  });
3963
3984
  }
3964
3985
  }
3965
- function js(u, d) {
3986
+ function js(c, d) {
3966
3987
  {
3967
3988
  var y = function() {
3968
- Gn || (Gn = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
3989
+ Gn || (Gn = !0, R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
3969
3990
  };
3970
- y.isReactWarning = !0, Object.defineProperty(u, "ref", {
3991
+ y.isReactWarning = !0, Object.defineProperty(c, "ref", {
3971
3992
  get: y,
3972
3993
  configurable: !0
3973
3994
  });
3974
3995
  }
3975
3996
  }
3976
- var $s = function(u, d, y, _, A, U, O) {
3977
- var R = {
3997
+ var $s = function(c, d, y, _, A, q, x) {
3998
+ var E = {
3978
3999
  $$typeof: e,
3979
- type: u,
4000
+ type: c,
3980
4001
  key: d,
3981
4002
  ref: y,
3982
- props: O,
3983
- _owner: U
4003
+ props: x,
4004
+ _owner: q
3984
4005
  };
3985
- return R._store = {}, Object.defineProperty(R._store, "validated", {
4006
+ return E._store = {}, Object.defineProperty(E._store, "validated", {
3986
4007
  configurable: !1,
3987
4008
  enumerable: !1,
3988
4009
  writable: !0,
3989
4010
  value: !1
3990
- }), Object.defineProperty(R, "_self", {
4011
+ }), Object.defineProperty(E, "_self", {
3991
4012
  configurable: !1,
3992
4013
  enumerable: !1,
3993
4014
  writable: !1,
3994
4015
  value: _
3995
- }), Object.defineProperty(R, "_source", {
4016
+ }), Object.defineProperty(E, "_source", {
3996
4017
  configurable: !1,
3997
4018
  enumerable: !1,
3998
4019
  writable: !1,
3999
4020
  value: A
4000
- }), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
4021
+ }), Object.freeze && (Object.freeze(E.props), Object.freeze(E)), E;
4001
4022
  };
4002
- function Ms(u, d, y, _, A) {
4023
+ function Ms(c, d, y, _, A) {
4003
4024
  {
4004
- var U, O = {}, R = null, se = null;
4005
- y !== void 0 && (He(y), R = "" + y), qs(d) && (He(d.key), R = "" + d.key), Us(d) && (se = d.ref, Is(d, A));
4006
- for (U in d)
4007
- re.call(d, U) && !nt.hasOwnProperty(U) && (O[U] = d[U]);
4008
- if (u && u.defaultProps) {
4009
- var W = u.defaultProps;
4010
- for (U in W)
4011
- O[U] === void 0 && (O[U] = W[U]);
4025
+ var q, x = {}, E = null, se = null;
4026
+ y !== void 0 && (We(y), E = "" + y), qs(d) && (We(d.key), E = "" + d.key), Us(d) && (se = d.ref, Is(d, A));
4027
+ for (q in d)
4028
+ re.call(d, q) && !nt.hasOwnProperty(q) && (x[q] = d[q]);
4029
+ if (c && c.defaultProps) {
4030
+ var W = c.defaultProps;
4031
+ for (q in W)
4032
+ x[q] === void 0 && (x[q] = W[q]);
4012
4033
  }
4013
- if (R || se) {
4014
- var Y = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
4015
- R && Vs(O, Y), se && js(O, Y);
4034
+ if (E || se) {
4035
+ var Y = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
4036
+ E && Vs(x, Y), se && js(x, Y);
4016
4037
  }
4017
- return $s(u, R, se, A, _, Be.current, O);
4038
+ return $s(c, E, se, A, _, Pe.current, x);
4018
4039
  }
4019
4040
  }
4020
4041
  var Ht = g.ReactCurrentOwner, Xn = g.ReactDebugCurrentFrame;
4021
- function Je(u) {
4022
- if (u) {
4023
- var d = u._owner, y = I(u.type, u._source, d ? d.type : null);
4042
+ function He(c) {
4043
+ if (c) {
4044
+ var d = c._owner, y = I(c.type, c._source, d ? d.type : null);
4024
4045
  Xn.setExtraStackFrame(y);
4025
4046
  } else
4026
4047
  Xn.setExtraStackFrame(null);
4027
4048
  }
4028
4049
  var Jt;
4029
4050
  Jt = !1;
4030
- function Yt(u) {
4031
- return typeof u == "object" && u !== null && u.$$typeof === e;
4051
+ function Yt(c) {
4052
+ return typeof c == "object" && c !== null && c.$$typeof === e;
4032
4053
  }
4033
4054
  function Qn() {
4034
4055
  {
4035
4056
  if (Ht.current) {
4036
- var u = Z(Ht.current.type);
4037
- if (u)
4057
+ var c = G(Ht.current.type);
4058
+ if (c)
4038
4059
  return `
4039
4060
 
4040
- Check the render method of \`` + u + "`.";
4061
+ Check the render method of \`` + c + "`.";
4041
4062
  }
4042
4063
  return "";
4043
4064
  }
4044
4065
  }
4045
- function Ws(u) {
4066
+ function Ws(c) {
4046
4067
  {
4047
- if (u !== void 0) {
4048
- var d = u.fileName.replace(/^.*[\\\/]/, ""), y = u.lineNumber;
4068
+ if (c !== void 0) {
4069
+ var d = c.fileName.replace(/^.*[\\\/]/, ""), y = c.lineNumber;
4049
4070
  return `
4050
4071
 
4051
4072
  Check your code at ` + d + ":" + y + ".";
@@ -4054,11 +4075,11 @@ Check your code at ` + d + ":" + y + ".";
4054
4075
  }
4055
4076
  }
4056
4077
  var Zn = {};
4057
- function Hs(u) {
4078
+ function Hs(c) {
4058
4079
  {
4059
4080
  var d = Qn();
4060
4081
  if (!d) {
4061
- var y = typeof u == "string" ? u : u.displayName || u.name;
4082
+ var y = typeof c == "string" ? c : c.displayName || c.name;
4062
4083
  y && (d = `
4063
4084
 
4064
4085
  Check the top-level render call using <` + y + ">.");
@@ -4066,41 +4087,41 @@ Check the top-level render call using <` + y + ">.");
4066
4087
  return d;
4067
4088
  }
4068
4089
  }
4069
- function er(u, d) {
4090
+ function er(c, d) {
4070
4091
  {
4071
- if (!u._store || u._store.validated || u.key != null)
4092
+ if (!c._store || c._store.validated || c.key != null)
4072
4093
  return;
4073
- u._store.validated = !0;
4094
+ c._store.validated = !0;
4074
4095
  var y = Hs(d);
4075
4096
  if (Zn[y])
4076
4097
  return;
4077
4098
  Zn[y] = !0;
4078
4099
  var _ = "";
4079
- u && u._owner && u._owner !== Ht.current && (_ = " It was passed a child from " + Z(u._owner.type) + "."), Je(u), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', y, _), Je(null);
4100
+ c && c._owner && c._owner !== Ht.current && (_ = " It was passed a child from " + G(c._owner.type) + "."), He(c), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', y, _), He(null);
4080
4101
  }
4081
4102
  }
4082
- function tr(u, d) {
4103
+ function tr(c, d) {
4083
4104
  {
4084
- if (typeof u != "object")
4105
+ if (typeof c != "object")
4085
4106
  return;
4086
- if (We(u))
4087
- for (var y = 0; y < u.length; y++) {
4088
- var _ = u[y];
4107
+ if (Me(c))
4108
+ for (var y = 0; y < c.length; y++) {
4109
+ var _ = c[y];
4089
4110
  Yt(_) && er(_, d);
4090
4111
  }
4091
- else if (Yt(u))
4092
- u._store && (u._store.validated = !0);
4093
- else if (u) {
4094
- var A = x(u);
4095
- if (typeof A == "function" && A !== u.entries)
4096
- for (var U = A.call(u), O; !(O = U.next()).done; )
4097
- Yt(O.value) && er(O.value, d);
4112
+ else if (Yt(c))
4113
+ c._store && (c._store.validated = !0);
4114
+ else if (c) {
4115
+ var A = O(c);
4116
+ if (typeof A == "function" && A !== c.entries)
4117
+ for (var q = A.call(c), x; !(x = q.next()).done; )
4118
+ Yt(x.value) && er(x.value, d);
4098
4119
  }
4099
4120
  }
4100
4121
  }
4101
- function Js(u) {
4122
+ function Js(c) {
4102
4123
  {
4103
- var d = u.type;
4124
+ var d = c.type;
4104
4125
  if (d == null || typeof d == "string")
4105
4126
  return;
4106
4127
  var y;
@@ -4111,72 +4132,72 @@ Check the top-level render call using <` + y + ">.");
4111
4132
  else
4112
4133
  return;
4113
4134
  if (y) {
4114
- var _ = Z(d);
4115
- de(y, u.props, "prop", _, u);
4135
+ var _ = G(d);
4136
+ de(y, c.props, "prop", _, c);
4116
4137
  } else if (d.PropTypes !== void 0 && !Jt) {
4117
4138
  Jt = !0;
4118
- var A = Z(d);
4119
- S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", A || "Unknown");
4139
+ var A = G(d);
4140
+ R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", A || "Unknown");
4120
4141
  }
4121
- typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
4142
+ typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
4122
4143
  }
4123
4144
  }
4124
- function Ys(u) {
4145
+ function Ys(c) {
4125
4146
  {
4126
- for (var d = Object.keys(u.props), y = 0; y < d.length; y++) {
4147
+ for (var d = Object.keys(c.props), y = 0; y < d.length; y++) {
4127
4148
  var _ = d[y];
4128
4149
  if (_ !== "children" && _ !== "key") {
4129
- Je(u), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", _), Je(null);
4150
+ He(c), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", _), He(null);
4130
4151
  break;
4131
4152
  }
4132
4153
  }
4133
- u.ref !== null && (Je(u), S("Invalid attribute `ref` supplied to `React.Fragment`."), Je(null));
4154
+ c.ref !== null && (He(c), R("Invalid attribute `ref` supplied to `React.Fragment`."), He(null));
4134
4155
  }
4135
4156
  }
4136
- function nr(u, d, y, _, A, U) {
4157
+ function nr(c, d, y, _, A, q) {
4137
4158
  {
4138
- var O = L(u);
4139
- if (!O) {
4140
- var R = "";
4141
- (u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (R += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
4159
+ var x = L(c);
4160
+ if (!x) {
4161
+ var E = "";
4162
+ (c === void 0 || typeof c == "object" && c !== null && Object.keys(c).length === 0) && (E += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
4142
4163
  var se = Ws(A);
4143
- se ? R += se : R += Qn();
4164
+ se ? E += se : E += Qn();
4144
4165
  var W;
4145
- u === null ? W = "null" : We(u) ? W = "array" : u !== void 0 && u.$$typeof === e ? (W = "<" + (Z(u.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : W = typeof u, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", W, R);
4166
+ c === null ? W = "null" : Me(c) ? W = "array" : c !== void 0 && c.$$typeof === e ? (W = "<" + (G(c.type) || "Unknown") + " />", E = " Did you accidentally export a JSX literal instead of a component?") : W = typeof c, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", W, E);
4146
4167
  }
4147
- var Y = Ms(u, d, y, A, U);
4168
+ var Y = Ms(c, d, y, A, q);
4148
4169
  if (Y == null)
4149
4170
  return Y;
4150
- if (O) {
4151
- var ce = d.children;
4152
- if (ce !== void 0)
4171
+ if (x) {
4172
+ var le = d.children;
4173
+ if (le !== void 0)
4153
4174
  if (_)
4154
- if (We(ce)) {
4155
- for (var Ye = 0; Ye < ce.length; Ye++)
4156
- tr(ce[Ye], u);
4157
- Object.freeze && Object.freeze(ce);
4175
+ if (Me(le)) {
4176
+ for (var Je = 0; Je < le.length; Je++)
4177
+ tr(le[Je], c);
4178
+ Object.freeze && Object.freeze(le);
4158
4179
  } else
4159
- S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
4180
+ R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
4160
4181
  else
4161
- tr(ce, u);
4182
+ tr(le, c);
4162
4183
  }
4163
- return u === r ? Ys(Y) : Js(Y), Y;
4184
+ return c === r ? Ys(Y) : Js(Y), Y;
4164
4185
  }
4165
4186
  }
4166
- function zs(u, d, y) {
4167
- return nr(u, d, y, !0);
4187
+ function zs(c, d, y) {
4188
+ return nr(c, d, y, !0);
4168
4189
  }
4169
- function Ks(u, d, y) {
4170
- return nr(u, d, y, !1);
4190
+ function Ks(c, d, y) {
4191
+ return nr(c, d, y, !1);
4171
4192
  }
4172
4193
  var Gs = Ks, Xs = zs;
4173
4194
  at.Fragment = r, at.jsx = Gs, at.jsxs = Xs;
4174
4195
  }()), at;
4175
4196
  }
4176
4197
  (function(n) {
4177
- process.env.NODE_ENV === "production" ? n.exports = Ca() : n.exports = Aa();
4198
+ process.env.NODE_ENV === "production" ? n.exports = Aa() : n.exports = Da();
4178
4199
  })(Ps);
4179
- const ka = Ps.exports.jsx, te = zr(null), Fa = ({
4200
+ const ka = Ps.exports.jsx, te = zr(null), Ua = ({
4180
4201
  url: n = "",
4181
4202
  tokenParams: e,
4182
4203
  socketPort: t,
@@ -4185,16 +4206,16 @@ const ka = Ps.exports.jsx, te = zr(null), Fa = ({
4185
4206
  children: i
4186
4207
  }) => {
4187
4208
  const o = Kr(() => {
4188
- const c = new oo.FrappeApp(n, e);
4209
+ const u = new oo.FrappeApp(n, e);
4189
4210
  return {
4190
4211
  url: n,
4191
4212
  tokenParams: e,
4192
- app: c,
4193
- auth: c.auth(),
4194
- db: c.db(),
4195
- call: c.call(),
4196
- file: c.file(),
4197
- socket: s ? new xa(n, r, t, e).socket : void 0,
4213
+ app: u,
4214
+ auth: u.auth(),
4215
+ db: u.db(),
4216
+ call: u.call(),
4217
+ file: u.file(),
4218
+ socket: s ? new Ca(n, r, t, e).socket : void 0,
4198
4219
  enableSocket: s,
4199
4220
  socketPort: t
4200
4221
  };
@@ -4203,12 +4224,12 @@ const ka = Ps.exports.jsx, te = zr(null), Fa = ({
4203
4224
  value: o,
4204
4225
  children: i
4205
4226
  });
4206
- }, Ua = (n) => {
4227
+ }, qa = (n) => {
4207
4228
  const {
4208
4229
  url: e,
4209
4230
  auth: t,
4210
4231
  tokenParams: r
4211
- } = ee(te), [s, i] = P(), o = M(() => {
4232
+ } = ee(te), [s, i] = P(), o = $(() => {
4212
4233
  const b = document.cookie.split(";").find((w) => w.trim().startsWith("user_id="));
4213
4234
  if (b) {
4214
4235
  const w = b.split("=")[1];
@@ -4216,11 +4237,11 @@ const ka = Ps.exports.jsx, te = zr(null), Fa = ({
4216
4237
  } else
4217
4238
  i(null);
4218
4239
  }, []);
4219
- Xe(() => {
4240
+ Ge(() => {
4220
4241
  r && r.useToken ? i(null) : o();
4221
4242
  }, []);
4222
4243
  const {
4223
- data: c,
4244
+ data: u,
4224
4245
  error: l,
4225
4246
  isLoading: a,
4226
4247
  isValidating: h,
@@ -4232,15 +4253,15 @@ const ka = Ps.exports.jsx, te = zr(null), Fa = ({
4232
4253
  shouldRetryOnError: !1,
4233
4254
  revalidateOnFocus: !1,
4234
4255
  ...n
4235
- }), p = M(async (b, w) => t.loginWithUsernamePassword({
4256
+ }), p = $(async (b, w) => t.loginWithUsernamePassword({
4236
4257
  username: b,
4237
4258
  password: w
4238
- }).then((x) => {
4259
+ }).then((O) => {
4239
4260
  o();
4240
- }), []), v = M(async () => t.logout().then(() => f(null)).then(() => i(null)), []);
4261
+ }), []), v = $(async () => t.logout().then(() => f(null)).then(() => i(null)), []);
4241
4262
  return {
4242
4263
  isLoading: s === void 0 || a,
4243
- currentUser: c,
4264
+ currentUser: u,
4244
4265
  isValidating: h,
4245
4266
  error: l,
4246
4267
  login: p,
@@ -4251,7 +4272,7 @@ const ka = Ps.exports.jsx, te = zr(null), Fa = ({
4251
4272
  }, Bs = (n, e, t) => {
4252
4273
  let r = `${e}/api/resource/`;
4253
4274
  return t ? r += `${n}/${t}` : r += `${n}`, r;
4254
- }, qa = (n, e, t, r) => {
4275
+ }, Ia = (n, e, t, r) => {
4255
4276
  const {
4256
4277
  url: s,
4257
4278
  db: i
@@ -4259,7 +4280,7 @@ const ka = Ps.exports.jsx, te = zr(null), Fa = ({
4259
4280
  return {
4260
4281
  ...vt(t === void 0 ? Bs(n, s, e) : t, () => i.getDoc(n, e), r)
4261
4282
  };
4262
- }, Da = (n) => {
4283
+ }, La = (n) => {
4263
4284
  var t, r, s;
4264
4285
  let e = "";
4265
4286
  if (n != null && n.fields && (e += "fields=" + JSON.stringify(n == null ? void 0 : n.fields) + "&"), n != null && n.filters && (e += "filters=" + JSON.stringify(n == null ? void 0 : n.filters) + "&"), n != null && n.orFilters && (e += "or_filters=" + JSON.stringify(n == null ? void 0 : n.orFilters) + "&"), n != null && n.limit_start && (e += "limit_start=" + JSON.stringify(n == null ? void 0 : n.limit_start) + "&"), n != null && n.limit && (e += "limit=" + JSON.stringify(n == null ? void 0 : n.limit) + "&"), n != null && n.groupBy && (e += "group_by=" + String(n.groupBy) + "&"), n != null && n.orderBy) {
@@ -4267,57 +4288,57 @@ const ka = Ps.exports.jsx, te = zr(null), Fa = ({
4267
4288
  e += "order_by=" + i + "&";
4268
4289
  }
4269
4290
  return n != null && n.asDict && (e += "as_dict=" + n.asDict), e;
4270
- }, Ia = (n, e, t, r) => {
4291
+ }, Va = (n, e, t, r) => {
4271
4292
  const {
4272
4293
  url: s,
4273
4294
  db: i
4274
4295
  } = ee(te);
4275
4296
  return {
4276
- ...vt(t === void 0 ? `${Bs(n, s)}?${Da(e)}` : t, () => i.getDocList(n, e), r)
4297
+ ...vt(t === void 0 ? `${Bs(n, s)}?${La(e)}` : t, () => i.getDocList(n, e), r)
4277
4298
  };
4278
- }, Va = () => {
4299
+ }, ja = () => {
4279
4300
  const {
4280
4301
  db: n
4281
- } = ee(te), [e, t] = P(!1), [r, s] = P(null), [i, o] = P(!1), c = M(() => {
4302
+ } = ee(te), [e, t] = P(!1), [r, s] = P(null), [i, o] = P(!1), u = $(() => {
4282
4303
  t(!1), s(null), o(!1);
4283
4304
  }, []);
4284
4305
  return {
4285
- createDoc: M(async (a, h) => (s(null), o(!1), t(!0), n.createDoc(a, h).then((f) => (t(!1), o(!0), f)).catch((f) => {
4306
+ createDoc: $(async (a, h) => (s(null), o(!1), t(!0), n.createDoc(a, h).then((f) => (t(!1), o(!0), f)).catch((f) => {
4286
4307
  throw t(!1), o(!1), s(f), f;
4287
4308
  })), []),
4288
4309
  loading: e,
4289
4310
  error: r,
4290
4311
  isCompleted: i,
4291
- reset: c
4312
+ reset: u
4292
4313
  };
4293
- }, ja = () => {
4314
+ }, $a = () => {
4294
4315
  const {
4295
4316
  db: n
4296
- } = ee(te), [e, t] = P(!1), [r, s] = P(null), [i, o] = P(!1), c = M(() => {
4317
+ } = ee(te), [e, t] = P(!1), [r, s] = P(null), [i, o] = P(!1), u = $(() => {
4297
4318
  t(!1), s(null), o(!1);
4298
4319
  }, []);
4299
4320
  return {
4300
- updateDoc: M(async (a, h, f) => (s(null), o(!1), t(!0), n.updateDoc(a, h, f).then((p) => (t(!1), o(!0), p)).catch((p) => {
4321
+ updateDoc: $(async (a, h, f) => (s(null), o(!1), t(!0), n.updateDoc(a, h, f).then((p) => (t(!1), o(!0), p)).catch((p) => {
4301
4322
  throw t(!1), o(!1), s(p), p;
4302
4323
  })), []),
4303
4324
  loading: e,
4304
4325
  error: r,
4305
- reset: c,
4326
+ reset: u,
4306
4327
  isCompleted: i
4307
4328
  };
4308
- }, $a = () => {
4329
+ }, Ma = () => {
4309
4330
  const {
4310
4331
  db: n
4311
- } = ee(te), [e, t] = P(!1), [r, s] = P(null), [i, o] = P(!1), c = M(() => {
4332
+ } = ee(te), [e, t] = P(!1), [r, s] = P(null), [i, o] = P(!1), u = $(() => {
4312
4333
  t(!1), s(null), o(!1);
4313
4334
  }, []);
4314
4335
  return {
4315
- deleteDoc: M(async (a, h) => (s(null), o(!1), t(!0), n.deleteDoc(a, h).then((f) => (t(!1), o(!0), f)).catch((f) => {
4336
+ deleteDoc: $(async (a, h) => (s(null), o(!1), t(!0), n.deleteDoc(a, h).then((f) => (t(!1), o(!0), f)).catch((f) => {
4316
4337
  throw t(!1), o(!1), s(f), f;
4317
4338
  })), []),
4318
4339
  loading: e,
4319
4340
  error: r,
4320
- reset: c,
4341
+ reset: u,
4321
4342
  isCompleted: i
4322
4343
  };
4323
4344
  };
@@ -4327,10 +4348,10 @@ function Fs(n) {
4327
4348
  e.push(encodeURIComponent(t) + "=" + encodeURIComponent(n[t]));
4328
4349
  return e.join("&");
4329
4350
  }
4330
- const Ma = (n, e, t = !1, r = !1, s, i) => {
4351
+ const Wa = (n, e, t = !1, r = !1, s, i) => {
4331
4352
  const {
4332
4353
  url: o,
4333
- db: c
4354
+ db: u
4334
4355
  } = ee(te);
4335
4356
  return {
4336
4357
  ...vt(s === void 0 ? (() => {
@@ -4345,24 +4366,24 @@ const Ma = (n, e, t = !1, r = !1, s, i) => {
4345
4366
  debug: r
4346
4367
  });
4347
4368
  return `${o}/api/method/frappe.client.get_count?${h}`;
4348
- })() : s, () => c.getCount(n, e, t, r), i)
4369
+ })() : s, () => u.getCount(n, e, t, r), i)
4349
4370
  };
4350
- }, La = (n, e, t, r) => {
4371
+ }, Na = (n, e, t, r) => {
4351
4372
  const {
4352
4373
  call: s
4353
4374
  } = ee(te), i = Fs(e != null ? e : {}), o = `${n}?${i}`;
4354
4375
  return {
4355
4376
  ...vt(t === void 0 ? o : t, () => s.get(n, e), r)
4356
4377
  };
4357
- }, Wa = (n) => {
4378
+ }, Ha = (n) => {
4358
4379
  const {
4359
4380
  call: e
4360
- } = ee(te), [t, r] = P(null), [s, i] = P(!1), [o, c] = P(null), [l, a] = P(!1), h = M(() => {
4361
- r(null), i(!1), c(null), a(!1);
4381
+ } = ee(te), [t, r] = P(null), [s, i] = P(!1), [o, u] = P(null), [l, a] = P(!1), h = $(() => {
4382
+ r(null), i(!1), u(null), a(!1);
4362
4383
  }, []);
4363
4384
  return {
4364
- call: M(async (p) => (c(null), a(!1), i(!0), r(null), e.post(n, p).then((v) => (r(v), i(!1), a(!0), v)).catch((v) => {
4365
- throw i(!1), a(!1), c(v), v;
4385
+ call: $(async (p) => (u(null), a(!1), i(!0), r(null), e.post(n, p).then((v) => (r(v), i(!1), a(!0), v)).catch((v) => {
4386
+ throw i(!1), a(!1), u(v), v;
4366
4387
  })), []),
4367
4388
  result: t,
4368
4389
  loading: s,
@@ -4370,15 +4391,15 @@ const Ma = (n, e, t = !1, r = !1, s, i) => {
4370
4391
  reset: h,
4371
4392
  isCompleted: l
4372
4393
  };
4373
- }, Ha = (n) => {
4394
+ }, Ja = (n) => {
4374
4395
  const {
4375
4396
  call: e
4376
- } = ee(te), [t, r] = P(null), [s, i] = P(!1), [o, c] = P(null), [l, a] = P(!1), h = M(() => {
4377
- r(null), i(!1), c(null), a(!1);
4397
+ } = ee(te), [t, r] = P(null), [s, i] = P(!1), [o, u] = P(null), [l, a] = P(!1), h = $(() => {
4398
+ r(null), i(!1), u(null), a(!1);
4378
4399
  }, []);
4379
4400
  return {
4380
- call: M(async (p) => (c(null), a(!1), i(!0), r(null), e.put(n, p).then((v) => (r(v), i(!1), a(!0), v)).catch((v) => {
4381
- throw i(!1), a(!1), c(v), v;
4401
+ call: $(async (p) => (u(null), a(!1), i(!0), r(null), e.put(n, p).then((v) => (r(v), i(!1), a(!0), v)).catch((v) => {
4402
+ throw i(!1), a(!1), u(v), v;
4382
4403
  })), []),
4383
4404
  result: t,
4384
4405
  loading: s,
@@ -4386,15 +4407,15 @@ const Ma = (n, e, t = !1, r = !1, s, i) => {
4386
4407
  reset: h,
4387
4408
  isCompleted: l
4388
4409
  };
4389
- }, Ja = (n) => {
4410
+ }, Ya = (n) => {
4390
4411
  const {
4391
4412
  call: e
4392
- } = ee(te), [t, r] = P(null), [s, i] = P(!1), [o, c] = P(null), [l, a] = P(!1), h = M(() => {
4393
- r(null), i(!1), c(null), a(!1);
4413
+ } = ee(te), [t, r] = P(null), [s, i] = P(!1), [o, u] = P(null), [l, a] = P(!1), h = $(() => {
4414
+ r(null), i(!1), u(null), a(!1);
4394
4415
  }, []);
4395
4416
  return {
4396
- call: M(async (p) => (c(null), a(!1), i(!0), r(null), e.delete(n, p).then((v) => (r(v), i(!1), a(!0), v)).catch((v) => {
4397
- throw i(!1), a(!1), c(v), v;
4417
+ call: $(async (p) => (u(null), a(!1), i(!0), r(null), e.delete(n, p).then((v) => (r(v), i(!1), a(!0), v)).catch((v) => {
4418
+ throw i(!1), a(!1), u(v), v;
4398
4419
  })), []),
4399
4420
  result: t,
4400
4421
  loading: s,
@@ -4402,33 +4423,33 @@ const Ma = (n, e, t = !1, r = !1, s, i) => {
4402
4423
  reset: h,
4403
4424
  isCompleted: l
4404
4425
  };
4405
- }, Ya = () => {
4426
+ }, za = () => {
4406
4427
  const {
4407
4428
  file: n
4408
- } = ee(te), [e, t] = P(0), [r, s] = P(!1), [i, o] = P(null), [c, l] = P(!1), a = M(async (f, p) => (h(), s(!0), n.uploadFile(f, p, (v, b) => t(Math.round(v / b * 100))).then((v) => (l(!0), t(100), s(!1), v.data.message)).catch((v) => {
4429
+ } = ee(te), [e, t] = P(0), [r, s] = P(!1), [i, o] = P(null), [u, l] = P(!1), a = $(async (f, p) => (h(), s(!0), n.uploadFile(f, p, (v, b) => t(Math.round(v / b * 100))).then((v) => (l(!0), t(100), s(!1), v.data.message)).catch((v) => {
4409
4430
  throw console.error(v), o(v), s(!1), v;
4410
- })), []), h = M(() => {
4431
+ })), []), h = $(() => {
4411
4432
  t(0), s(!1), o(null), l(!1);
4412
4433
  }, []);
4413
4434
  return {
4414
4435
  upload: a,
4415
4436
  progress: e,
4416
4437
  loading: r,
4417
- isCompleted: c,
4438
+ isCompleted: u,
4418
4439
  error: i,
4419
4440
  reset: h
4420
4441
  };
4421
- }, za = (n, e, t = [], r = 20, s = 250) => {
4422
- const i = Na(e, s);
4423
- return La("frappe.desk.search.search_link", {
4442
+ }, Ka = (n, e, t = [], r = 20, s = 250) => {
4443
+ const i = Pa(e, s);
4444
+ return Na("frappe.desk.search.search_link", {
4424
4445
  doctype: n,
4425
4446
  page_length: r,
4426
4447
  txt: i,
4427
4448
  filters: JSON.stringify(t != null ? t : [])
4428
4449
  });
4429
- }, Na = (n, e) => {
4450
+ }, Pa = (n, e) => {
4430
4451
  const [t, r] = P(n);
4431
- return Xe(() => {
4452
+ return Ge(() => {
4432
4453
  const s = setTimeout(() => {
4433
4454
  r(n);
4434
4455
  }, e);
@@ -4440,59 +4461,59 @@ const Ma = (n, e, t = !1, r = !1, s, i) => {
4440
4461
  const {
4441
4462
  socket: t
4442
4463
  } = ee(te);
4443
- Xe(() => {
4464
+ Ge(() => {
4444
4465
  t === void 0 && console.warn("Socket is not enabled. Please enable socket in FrappeProvider.");
4445
4466
  let r = t == null ? void 0 : t.on(n, e);
4446
4467
  return () => {
4447
4468
  r == null || r.off(n);
4448
4469
  };
4449
4470
  }, [n, e]);
4450
- }, Ka = (n, e, t, r = !0) => {
4471
+ }, Ga = (n, e, t, r = !0) => {
4451
4472
  const {
4452
4473
  socket: s
4453
4474
  } = ee(te), [i, o] = P([]);
4454
- Xe(() => (s === void 0 && console.warn("Socket is not enabled. Please enable socket in FrappeProvider."), s == null || s.emit("doc_subscribe", n, e), r && (s == null || s.emit("doc_open", n, e)), () => {
4475
+ Ge(() => (s === void 0 && console.warn("Socket is not enabled. Please enable socket in FrappeProvider."), s == null || s.emit("doc_subscribe", n, e), r && (s == null || s.emit("doc_open", n, e)), () => {
4455
4476
  s == null || s.emit("doc_unsubscribe", n, e), r && (s == null || s.emit("doc_close", n, e));
4456
4477
  }), [n, e, r]), Bn("doc_update", t);
4457
- const c = M(() => {
4478
+ const u = $(() => {
4458
4479
  s == null || s.emit("doc_open", n, e);
4459
- }, [n, e]), l = M(() => {
4480
+ }, [n, e]), l = $(() => {
4460
4481
  s == null || s.emit("doc_close", n, e);
4461
- }, [n, e]), a = M((h) => {
4482
+ }, [n, e]), a = $((h) => {
4462
4483
  h.doctype === n && h.docname === e && o(h.users);
4463
4484
  }, [n, e]);
4464
4485
  return Bn("doc_viewers", a), {
4465
4486
  viewers: i,
4466
- emitDocOpen: c,
4487
+ emitDocOpen: u,
4467
4488
  emitDocClose: l
4468
4489
  };
4469
- }, Ga = (n, e) => {
4490
+ }, Xa = (n, e) => {
4470
4491
  const {
4471
4492
  socket: t
4472
4493
  } = ee(te);
4473
- Xe(() => (t === void 0 && console.warn("Socket is not enabled. Please enable socket in FrappeProvider."), t == null || t.emit("doctype_subscribe", n), () => {
4494
+ Ge(() => (t === void 0 && console.warn("Socket is not enabled. Please enable socket in FrappeProvider."), t == null || t.emit("doctype_subscribe", n), () => {
4474
4495
  t == null || t.emit("doctype_unsubscribe", n);
4475
4496
  }), [n]), Bn("list_update", e);
4476
4497
  };
4477
4498
  export {
4478
4499
  te as FrappeContext,
4479
- Fa as FrappeProvider,
4480
- Da as getDocListQueryString,
4500
+ Ua as FrappeProvider,
4501
+ La as getDocListQueryString,
4481
4502
  Bs as getRequestURL,
4482
- Ua as useFrappeAuth,
4483
- Va as useFrappeCreateDoc,
4484
- Ja as useFrappeDeleteCall,
4485
- $a as useFrappeDeleteDoc,
4486
- Ga as useFrappeDocTypeEventListener,
4487
- Ka as useFrappeDocumentEventListener,
4503
+ qa as useFrappeAuth,
4504
+ ja as useFrappeCreateDoc,
4505
+ Ya as useFrappeDeleteCall,
4506
+ Ma as useFrappeDeleteDoc,
4507
+ Xa as useFrappeDocTypeEventListener,
4508
+ Ga as useFrappeDocumentEventListener,
4488
4509
  Bn as useFrappeEventListener,
4489
- Ya as useFrappeFileUpload,
4490
- La as useFrappeGetCall,
4491
- qa as useFrappeGetDoc,
4492
- Ma as useFrappeGetDocCount,
4493
- Ia as useFrappeGetDocList,
4494
- Wa as useFrappePostCall,
4495
- Ha as useFrappePutCall,
4496
- ja as useFrappeUpdateDoc,
4497
- za as useSearch
4510
+ za as useFrappeFileUpload,
4511
+ Na as useFrappeGetCall,
4512
+ Ia as useFrappeGetDoc,
4513
+ Wa as useFrappeGetDocCount,
4514
+ Va as useFrappeGetDocList,
4515
+ Ha as useFrappePostCall,
4516
+ Ja as useFrappePutCall,
4517
+ $a as useFrappeUpdateDoc,
4518
+ Ka as useSearch
4498
4519
  };