frappe-react-sdk 1.4.2 → 1.4.3

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,8 +1,8 @@
1
- var Hs = Object.defineProperty;
2
- var Js = (n, e, t) => e in n ? Hs(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var De = (n, e, t) => (Js(n, typeof e != "symbol" ? e + "" : e, t), t);
4
- import Ve, { createContext as Pr, useContext as Z, useEffect as Qe, useLayoutEffect as zs, useRef as Ie, useMemo as Br, useCallback as V, useDebugValue as Ks, useState as U } from "react";
5
- var F = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, rn = {}, ot = {}, mt = {}, ue = F && F.__assign || function() {
1
+ var Ws = Object.defineProperty;
2
+ var Js = (n, e, t) => e in n ? Ws(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var ke = (n, e, t) => (Js(n, typeof e != "symbol" ? e + "" : e, t), t);
4
+ import Me, { createContext as Pr, useContext as Z, useEffect as Ze, useLayoutEffect as zs, useRef as Ie, useMemo as Br, useCallback as V, useDebugValue as Ks, useState as U } from "react";
5
+ var F = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, rn = {}, at = {}, gt = {}, ue = F && F.__assign || function() {
6
6
  return ue = Object.assign || function(n) {
7
7
  for (var e, t = 1, r = arguments.length; t < r; t++) {
8
8
  e = arguments[t];
@@ -11,7 +11,7 @@ var F = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
11
11
  }
12
12
  return n;
13
13
  }, ue.apply(this, arguments);
14
- }, xt = F && F.__awaiter || function(n, e, t, r) {
14
+ }, At = F && F.__awaiter || function(n, e, t, r) {
15
15
  function s(i) {
16
16
  return i instanceof t ? i : new t(function(o) {
17
17
  o(i);
@@ -37,7 +37,7 @@ var F = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
37
37
  }
38
38
  a((r = r.apply(n, e || [])).next());
39
39
  });
40
- }, At = F && F.__generator || function(n, e) {
40
+ }, Ct = F && F.__generator || function(n, e) {
41
41
  var t = { label: 0, sent: function() {
42
42
  if (i[0] & 1)
43
43
  throw i[1];
@@ -102,16 +102,16 @@ var F = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
102
102
  return { value: a[0] ? a[1] : void 0, done: !0 };
103
103
  }
104
104
  };
105
- Object.defineProperty(mt, "__esModule", { value: !0 });
106
- mt.FrappeCall = void 0;
105
+ Object.defineProperty(gt, "__esModule", { value: !0 });
106
+ gt.FrappeCall = void 0;
107
107
  var Ys = function() {
108
108
  function n(e, t, r, s, i) {
109
109
  this.appURL = e, this.axios = t, this.useToken = r != null ? r : !1, this.token = s, this.tokenType = i;
110
110
  }
111
111
  return n.prototype.get = function(e, t) {
112
- return xt(this, void 0, void 0, function() {
112
+ return At(this, void 0, void 0, function() {
113
113
  var r;
114
- return At(this, function(s) {
114
+ return Ct(this, function(s) {
115
115
  return r = new URLSearchParams(), t && Object.entries(t).forEach(function(i) {
116
116
  var o = i[0], c = i[1];
117
117
  if (c != null) {
@@ -129,8 +129,8 @@ var Ys = function() {
129
129
  });
130
130
  });
131
131
  }, n.prototype.post = function(e, t) {
132
- return xt(this, void 0, void 0, function() {
133
- return At(this, function(r) {
132
+ return At(this, void 0, void 0, function() {
133
+ return Ct(this, function(r) {
134
134
  return [2, this.axios.post("/api/method/".concat(e), ue({}, t)).then(function(s) {
135
135
  return s.data;
136
136
  }).catch(function(s) {
@@ -140,8 +140,8 @@ var Ys = function() {
140
140
  });
141
141
  });
142
142
  }, n.prototype.put = function(e, t) {
143
- return xt(this, void 0, void 0, function() {
144
- return At(this, function(r) {
143
+ return At(this, void 0, void 0, function() {
144
+ return Ct(this, function(r) {
145
145
  return [2, this.axios.put("/api/method/".concat(e), ue({}, t)).then(function(s) {
146
146
  return s.data;
147
147
  }).catch(function(s) {
@@ -151,8 +151,8 @@ var Ys = function() {
151
151
  });
152
152
  });
153
153
  }, n.prototype.delete = function(e, t) {
154
- return xt(this, void 0, void 0, function() {
155
- return At(this, function(r) {
154
+ return At(this, void 0, void 0, function() {
155
+ return Ct(this, function(r) {
156
156
  return [2, this.axios.delete("/api/method/".concat(e), { params: t }).then(function(s) {
157
157
  return s.data;
158
158
  }).catch(function(s) {
@@ -163,8 +163,8 @@ var Ys = function() {
163
163
  });
164
164
  }, n;
165
165
  }();
166
- mt.FrappeCall = Ys;
167
- var gt = {}, K = F && F.__assign || function() {
166
+ gt.FrappeCall = Ys;
167
+ var vt = {}, K = F && F.__assign || function() {
168
168
  return K = Object.assign || function(n) {
169
169
  for (var e, t = 1, r = arguments.length; t < r; t++) {
170
170
  e = arguments[t];
@@ -264,8 +264,8 @@ var gt = {}, K = F && F.__assign || function() {
264
264
  return { value: a[0] ? a[1] : void 0, done: !0 };
265
265
  }
266
266
  };
267
- Object.defineProperty(gt, "__esModule", { value: !0 });
268
- gt.FrappeDB = void 0;
267
+ Object.defineProperty(vt, "__esModule", { value: !0 });
268
+ vt.FrappeDB = void 0;
269
269
  var Gs = function() {
270
270
  function n(e, t, r, s, i) {
271
271
  this.appURL = e, this.axios = t, this.useToken = r != null ? r : !1, this.token = s, this.tokenType = i;
@@ -370,165 +370,39 @@ var Gs = function() {
370
370
  });
371
371
  }, n;
372
372
  }();
373
- gt.FrappeDB = Gs;
374
- var vt = {}, $t = F && F.__assign || function() {
375
- return $t = Object.assign || function(n) {
376
- for (var e, t = 1, r = arguments.length; t < r; t++) {
377
- e = arguments[t];
378
- for (var s in e)
379
- Object.prototype.hasOwnProperty.call(e, s) && (n[s] = e[s]);
380
- }
381
- return n;
382
- }, $t.apply(this, arguments);
383
- }, Xs = F && F.__awaiter || function(n, e, t, r) {
384
- function s(i) {
385
- return i instanceof t ? i : new t(function(o) {
386
- o(i);
387
- });
388
- }
389
- return new (t || (t = Promise))(function(i, o) {
390
- function c(f) {
391
- try {
392
- a(r.next(f));
393
- } catch (h) {
394
- o(h);
395
- }
396
- }
397
- function l(f) {
398
- try {
399
- a(r.throw(f));
400
- } catch (h) {
401
- o(h);
402
- }
403
- }
404
- function a(f) {
405
- f.done ? i(f.value) : s(f.value).then(c, l);
406
- }
407
- a((r = r.apply(n, e || [])).next());
408
- });
409
- }, Qs = F && F.__generator || function(n, e) {
410
- var t = { label: 0, sent: function() {
411
- if (i[0] & 1)
412
- throw i[1];
413
- return i[1];
414
- }, trys: [], ops: [] }, r, s, i, o;
415
- return o = { next: c(0), throw: c(1), return: c(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
416
- return this;
417
- }), o;
418
- function c(a) {
419
- return function(f) {
420
- return l([a, f]);
421
- };
422
- }
423
- function l(a) {
424
- if (r)
425
- throw new TypeError("Generator is already executing.");
426
- for (; o && (o = 0, a[0] && (t = 0)), t; )
427
- try {
428
- if (r = 1, s && (i = a[0] & 2 ? s.return : a[0] ? s.throw || ((i = s.return) && i.call(s), 0) : s.next) && !(i = i.call(s, a[1])).done)
429
- return i;
430
- switch (s = 0, i && (a = [a[0] & 2, i.value]), a[0]) {
431
- case 0:
432
- case 1:
433
- i = a;
434
- break;
435
- case 4:
436
- return t.label++, { value: a[1], done: !1 };
437
- case 5:
438
- t.label++, s = a[1], a = [0];
439
- continue;
440
- case 7:
441
- a = t.ops.pop(), t.trys.pop();
442
- continue;
443
- default:
444
- if (i = t.trys, !(i = i.length > 0 && i[i.length - 1]) && (a[0] === 6 || a[0] === 2)) {
445
- t = 0;
446
- continue;
447
- }
448
- if (a[0] === 3 && (!i || a[1] > i[0] && a[1] < i[3])) {
449
- t.label = a[1];
450
- break;
451
- }
452
- if (a[0] === 6 && t.label < i[1]) {
453
- t.label = i[1], i = a;
454
- break;
455
- }
456
- if (i && t.label < i[2]) {
457
- t.label = i[2], t.ops.push(a);
458
- break;
459
- }
460
- i[2] && t.ops.pop(), t.trys.pop();
461
- continue;
462
- }
463
- a = e.call(n, t);
464
- } catch (f) {
465
- a = [6, f], s = 0;
466
- } finally {
467
- r = i = 0;
468
- }
469
- if (a[0] & 5)
470
- throw a[1];
471
- return { value: a[0] ? a[1] : void 0, done: !0 };
472
- }
473
- };
474
- Object.defineProperty(vt, "__esModule", { value: !0 });
475
- vt.FrappeFileUpload = void 0;
476
- var Zs = function() {
477
- function n(e, t, r, s, i) {
478
- this.appURL = e, this.axios = t, this.useToken = r != null ? r : !1, this.token = s, this.tokenType = i;
479
- }
480
- return n.prototype.uploadFile = function(e, t, r, s) {
481
- return s === void 0 && (s = "upload_file"), Xs(this, void 0, void 0, function() {
482
- var i, o, c, l, a, f, h, g;
483
- return Qs(this, function(v) {
484
- return i = new FormData(), e && i.append("file", e, e.name), o = t.isPrivate, c = t.folder, l = t.file_url, a = t.doctype, f = t.docname, h = t.fieldname, g = t.otherData, o && i.append("is_private", "1"), c && i.append("folder", c), l && i.append("file_url", l), a && f && (i.append("doctype", a), i.append("docname", f), h && i.append("fieldname", h)), g && Object.keys(g).forEach(function(p) {
485
- var y = g[p];
486
- i.append(p, y);
487
- }), [2, this.axios.post("/api/method/".concat(s), i, {
488
- onUploadProgress: function(p) {
489
- r && r(p.loaded, p.total, p);
490
- }
491
- }).catch(function(p) {
492
- var y, E;
493
- throw $t($t({}, p.response.data), { httpStatus: p.response.status, httpStatusText: p.response.statusText, message: (y = p.response.data.message) !== null && y !== void 0 ? y : "There was an error while uploading the file.", exception: (E = p.response.data.exception) !== null && E !== void 0 ? E : "" });
494
- })];
495
- });
496
- });
497
- }, n;
498
- }();
499
- vt.FrappeFileUpload = Zs;
500
- var Ge = {};
373
+ vt.FrappeDB = Gs;
374
+ var wt = {}, Ve = {};
501
375
  function Ur(n, e) {
502
376
  return function() {
503
377
  return n.apply(e, arguments);
504
378
  };
505
379
  }
506
- const { toString: ei } = Object.prototype, { getPrototypeOf: Pn } = Object, Ht = ((n) => (e) => {
507
- const t = ei.call(e);
380
+ const { toString: Xs } = Object.prototype, { getPrototypeOf: Pn } = Object, Wt = ((n) => (e) => {
381
+ const t = Xs.call(e);
508
382
  return n[t] || (n[t] = t.slice(8, -1).toLowerCase());
509
- })(/* @__PURE__ */ Object.create(null)), Ee = (n) => (n = n.toLowerCase(), (e) => Ht(e) === n), Jt = (n) => (e) => typeof e === n, { isArray: Ze } = Array, dt = Jt("undefined");
510
- function ti(n) {
511
- return n !== null && !dt(n) && n.constructor !== null && !dt(n.constructor) && fe(n.constructor.isBuffer) && n.constructor.isBuffer(n);
383
+ })(/* @__PURE__ */ Object.create(null)), Ee = (n) => (n = n.toLowerCase(), (e) => Wt(e) === n), Jt = (n) => (e) => typeof e === n, { isArray: et } = Array, pt = Jt("undefined");
384
+ function Qs(n) {
385
+ return n !== null && !pt(n) && n.constructor !== null && !pt(n.constructor) && fe(n.constructor.isBuffer) && n.constructor.isBuffer(n);
512
386
  }
513
387
  const Ir = Ee("ArrayBuffer");
514
- function ni(n) {
388
+ function Zs(n) {
515
389
  let e;
516
390
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(n) : e = n && n.buffer && Ir(n.buffer), e;
517
391
  }
518
- const ri = Jt("string"), fe = Jt("function"), jr = Jt("number"), zt = (n) => n !== null && typeof n == "object", si = (n) => n === !0 || n === !1, Ut = (n) => {
519
- if (Ht(n) !== "object")
392
+ const ei = Jt("string"), fe = Jt("function"), jr = Jt("number"), zt = (n) => n !== null && typeof n == "object", ti = (n) => n === !0 || n === !1, It = (n) => {
393
+ if (Wt(n) !== "object")
520
394
  return !1;
521
395
  const e = Pn(n);
522
396
  return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in n) && !(Symbol.iterator in n);
523
- }, ii = Ee("Date"), oi = Ee("File"), ai = Ee("Blob"), ci = Ee("FileList"), ui = (n) => zt(n) && fe(n.pipe), li = (n) => {
397
+ }, ni = Ee("Date"), ri = Ee("File"), si = Ee("Blob"), ii = Ee("FileList"), oi = (n) => zt(n) && fe(n.pipe), ai = (n) => {
524
398
  let e;
525
- return n && (typeof FormData == "function" && n instanceof FormData || fe(n.append) && ((e = Ht(n)) === "formdata" || e === "object" && fe(n.toString) && n.toString() === "[object FormData]"));
526
- }, fi = Ee("URLSearchParams"), hi = (n) => n.trim ? n.trim() : n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
527
- function wt(n, e, { allOwnKeys: t = !1 } = {}) {
399
+ return n && (typeof FormData == "function" && n instanceof FormData || fe(n.append) && ((e = Wt(n)) === "formdata" || e === "object" && fe(n.toString) && n.toString() === "[object FormData]"));
400
+ }, ci = Ee("URLSearchParams"), ui = (n) => n.trim ? n.trim() : n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
401
+ function bt(n, e, { allOwnKeys: t = !1 } = {}) {
528
402
  if (n === null || typeof n > "u")
529
403
  return;
530
404
  let r, s;
531
- if (typeof n != "object" && (n = [n]), Ze(n))
405
+ if (typeof n != "object" && (n = [n]), et(n))
532
406
  for (r = 0, s = n.length; r < s; r++)
533
407
  e.call(null, n[r], r, n);
534
408
  else {
@@ -547,23 +421,23 @@ function qr(n, e) {
547
421
  return s;
548
422
  return null;
549
423
  }
550
- const Vr = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : F)(), Mr = (n) => !dt(n) && n !== Vr;
424
+ const Vr = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : F)(), Mr = (n) => !pt(n) && n !== Vr;
551
425
  function vn() {
552
426
  const { caseless: n } = Mr(this) && this || {}, e = {}, t = (r, s) => {
553
427
  const i = n && qr(e, s) || s;
554
- Ut(e[i]) && Ut(r) ? e[i] = vn(e[i], r) : Ut(r) ? e[i] = vn({}, r) : Ze(r) ? e[i] = r.slice() : e[i] = r;
428
+ It(e[i]) && It(r) ? e[i] = vn(e[i], r) : It(r) ? e[i] = vn({}, r) : et(r) ? e[i] = r.slice() : e[i] = r;
555
429
  };
556
430
  for (let r = 0, s = arguments.length; r < s; r++)
557
- arguments[r] && wt(arguments[r], t);
431
+ arguments[r] && bt(arguments[r], t);
558
432
  return e;
559
433
  }
560
- const di = (n, e, t, { allOwnKeys: r } = {}) => (wt(e, (s, i) => {
434
+ const li = (n, e, t, { allOwnKeys: r } = {}) => (bt(e, (s, i) => {
561
435
  t && fe(s) ? n[i] = Ur(s, t) : n[i] = s;
562
- }, { allOwnKeys: r }), n), pi = (n) => (n.charCodeAt(0) === 65279 && (n = n.slice(1)), n), yi = (n, e, t, r) => {
436
+ }, { allOwnKeys: r }), n), fi = (n) => (n.charCodeAt(0) === 65279 && (n = n.slice(1)), n), hi = (n, e, t, r) => {
563
437
  n.prototype = Object.create(e.prototype, r), n.prototype.constructor = n, Object.defineProperty(n, "super", {
564
438
  value: e.prototype
565
439
  }), t && Object.assign(n.prototype, t);
566
- }, mi = (n, e, t, r) => {
440
+ }, di = (n, e, t, r) => {
567
441
  let s, i, o;
568
442
  const c = {};
569
443
  if (e = e || {}, n == null)
@@ -574,14 +448,14 @@ const di = (n, e, t, { allOwnKeys: r } = {}) => (wt(e, (s, i) => {
574
448
  n = t !== !1 && Pn(n);
575
449
  } while (n && (!t || t(n, e)) && n !== Object.prototype);
576
450
  return e;
577
- }, gi = (n, e, t) => {
451
+ }, pi = (n, e, t) => {
578
452
  n = String(n), (t === void 0 || t > n.length) && (t = n.length), t -= e.length;
579
453
  const r = n.indexOf(e, t);
580
454
  return r !== -1 && r === t;
581
- }, vi = (n) => {
455
+ }, yi = (n) => {
582
456
  if (!n)
583
457
  return null;
584
- if (Ze(n))
458
+ if (et(n))
585
459
  return n;
586
460
  let e = n.length;
587
461
  if (!jr(e))
@@ -590,31 +464,31 @@ const di = (n, e, t, { allOwnKeys: r } = {}) => (wt(e, (s, i) => {
590
464
  for (; e-- > 0; )
591
465
  t[e] = n[e];
592
466
  return t;
593
- }, wi = ((n) => (e) => n && e instanceof n)(typeof Uint8Array < "u" && Pn(Uint8Array)), bi = (n, e) => {
467
+ }, mi = ((n) => (e) => n && e instanceof n)(typeof Uint8Array < "u" && Pn(Uint8Array)), gi = (n, e) => {
594
468
  const r = (n && n[Symbol.iterator]).call(n);
595
469
  let s;
596
470
  for (; (s = r.next()) && !s.done; ) {
597
471
  const i = s.value;
598
472
  e.call(n, i[0], i[1]);
599
473
  }
600
- }, _i = (n, e) => {
474
+ }, vi = (n, e) => {
601
475
  let t;
602
476
  const r = [];
603
477
  for (; (t = n.exec(e)) !== null; )
604
478
  r.push(t);
605
479
  return r;
606
- }, Ei = Ee("HTMLFormElement"), Si = (n) => n.toLowerCase().replace(
480
+ }, wi = Ee("HTMLFormElement"), bi = (n) => n.toLowerCase().replace(
607
481
  /[-_\s]([a-z\d])(\w*)/g,
608
482
  function(t, r, s) {
609
483
  return r.toUpperCase() + s;
610
484
  }
611
- ), sr = (({ hasOwnProperty: n }) => (e, t) => n.call(e, t))(Object.prototype), Ri = Ee("RegExp"), $r = (n, e) => {
485
+ ), sr = (({ hasOwnProperty: n }) => (e, t) => n.call(e, t))(Object.prototype), _i = Ee("RegExp"), $r = (n, e) => {
612
486
  const t = Object.getOwnPropertyDescriptors(n), r = {};
613
- wt(t, (s, i) => {
487
+ bt(t, (s, i) => {
614
488
  let o;
615
489
  (o = e(s, i, n)) !== !1 && (r[i] = o || s);
616
490
  }), Object.defineProperties(n, r);
617
- }, Ti = (n) => {
491
+ }, Ei = (n) => {
618
492
  $r(n, (e, t) => {
619
493
  if (fe(n) && ["arguments", "caller", "callee"].indexOf(t) !== -1)
620
494
  return !1;
@@ -629,98 +503,98 @@ const di = (n, e, t, { allOwnKeys: r } = {}) => (wt(e, (s, i) => {
629
503
  });
630
504
  }
631
505
  });
632
- }, Oi = (n, e) => {
506
+ }, Si = (n, e) => {
633
507
  const t = {}, r = (s) => {
634
508
  s.forEach((i) => {
635
509
  t[i] = !0;
636
510
  });
637
511
  };
638
- return Ze(n) ? r(n) : r(String(n).split(e)), t;
639
- }, xi = () => {
640
- }, Ai = (n, e) => (n = +n, Number.isFinite(n) ? n : e), sn = "abcdefghijklmnopqrstuvwxyz", ir = "0123456789", Wr = {
512
+ return et(n) ? r(n) : r(String(n).split(e)), t;
513
+ }, Ri = () => {
514
+ }, Ti = (n, e) => (n = +n, Number.isFinite(n) ? n : e), sn = "abcdefghijklmnopqrstuvwxyz", ir = "0123456789", Hr = {
641
515
  DIGIT: ir,
642
516
  ALPHA: sn,
643
517
  ALPHA_DIGIT: sn + sn.toUpperCase() + ir
644
- }, Ci = (n = 16, e = Wr.ALPHA_DIGIT) => {
518
+ }, Oi = (n = 16, e = Hr.ALPHA_DIGIT) => {
645
519
  let t = "";
646
520
  const { length: r } = e;
647
521
  for (; n--; )
648
522
  t += e[Math.random() * r | 0];
649
523
  return t;
650
524
  };
651
- function Di(n) {
525
+ function xi(n) {
652
526
  return !!(n && fe(n.append) && n[Symbol.toStringTag] === "FormData" && n[Symbol.iterator]);
653
527
  }
654
- const ki = (n) => {
528
+ const Ai = (n) => {
655
529
  const e = new Array(10), t = (r, s) => {
656
530
  if (zt(r)) {
657
531
  if (e.indexOf(r) >= 0)
658
532
  return;
659
533
  if (!("toJSON" in r)) {
660
534
  e[s] = r;
661
- const i = Ze(r) ? [] : {};
662
- return wt(r, (o, c) => {
535
+ const i = et(r) ? [] : {};
536
+ return bt(r, (o, c) => {
663
537
  const l = t(o, s + 1);
664
- !dt(l) && (i[c] = l);
538
+ !pt(l) && (i[c] = l);
665
539
  }), e[s] = void 0, i;
666
540
  }
667
541
  }
668
542
  return r;
669
543
  };
670
544
  return t(n, 0);
671
- }, Ni = Ee("AsyncFunction"), Li = (n) => n && (zt(n) || fe(n)) && fe(n.then) && fe(n.catch);
545
+ }, Ci = Ee("AsyncFunction"), ki = (n) => n && (zt(n) || fe(n)) && fe(n.then) && fe(n.catch);
672
546
  var d = {
673
- isArray: Ze,
547
+ isArray: et,
674
548
  isArrayBuffer: Ir,
675
- isBuffer: ti,
676
- isFormData: li,
677
- isArrayBufferView: ni,
678
- isString: ri,
549
+ isBuffer: Qs,
550
+ isFormData: ai,
551
+ isArrayBufferView: Zs,
552
+ isString: ei,
679
553
  isNumber: jr,
680
- isBoolean: si,
554
+ isBoolean: ti,
681
555
  isObject: zt,
682
- isPlainObject: Ut,
683
- isUndefined: dt,
684
- isDate: ii,
685
- isFile: oi,
686
- isBlob: ai,
687
- isRegExp: Ri,
556
+ isPlainObject: It,
557
+ isUndefined: pt,
558
+ isDate: ni,
559
+ isFile: ri,
560
+ isBlob: si,
561
+ isRegExp: _i,
688
562
  isFunction: fe,
689
- isStream: ui,
690
- isURLSearchParams: fi,
691
- isTypedArray: wi,
692
- isFileList: ci,
693
- forEach: wt,
563
+ isStream: oi,
564
+ isURLSearchParams: ci,
565
+ isTypedArray: mi,
566
+ isFileList: ii,
567
+ forEach: bt,
694
568
  merge: vn,
695
- extend: di,
696
- trim: hi,
697
- stripBOM: pi,
698
- inherits: yi,
699
- toFlatObject: mi,
700
- kindOf: Ht,
569
+ extend: li,
570
+ trim: ui,
571
+ stripBOM: fi,
572
+ inherits: hi,
573
+ toFlatObject: di,
574
+ kindOf: Wt,
701
575
  kindOfTest: Ee,
702
- endsWith: gi,
703
- toArray: vi,
704
- forEachEntry: bi,
705
- matchAll: _i,
706
- isHTMLForm: Ei,
576
+ endsWith: pi,
577
+ toArray: yi,
578
+ forEachEntry: gi,
579
+ matchAll: vi,
580
+ isHTMLForm: wi,
707
581
  hasOwnProperty: sr,
708
582
  hasOwnProp: sr,
709
583
  reduceDescriptors: $r,
710
- freezeMethods: Ti,
711
- toObjectSet: Oi,
712
- toCamelCase: Si,
713
- noop: xi,
714
- toFiniteNumber: Ai,
584
+ freezeMethods: Ei,
585
+ toObjectSet: Si,
586
+ toCamelCase: bi,
587
+ noop: Ri,
588
+ toFiniteNumber: Ti,
715
589
  findKey: qr,
716
590
  global: Vr,
717
591
  isContextDefined: Mr,
718
- ALPHABET: Wr,
719
- generateString: Ci,
720
- isSpecCompliantForm: Di,
721
- toJSONObject: ki,
722
- isAsyncFn: Ni,
723
- isThenable: Li
592
+ ALPHABET: Hr,
593
+ generateString: Oi,
594
+ isSpecCompliantForm: xi,
595
+ toJSONObject: Ai,
596
+ isAsyncFn: Ci,
597
+ isThenable: ki
724
598
  };
725
599
  function C(n, e, t, r, s) {
726
600
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = n, this.name = "AxiosError", e && (this.code = e), t && (this.config = t), r && (this.request = r), s && (this.response = s);
@@ -742,7 +616,7 @@ d.inherits(C, Error, {
742
616
  };
743
617
  }
744
618
  });
745
- const Hr = C.prototype, Jr = {};
619
+ const Wr = C.prototype, Jr = {};
746
620
  [
747
621
  "ERR_BAD_OPTION_VALUE",
748
622
  "ERR_BAD_OPTION",
@@ -760,14 +634,14 @@ const Hr = C.prototype, Jr = {};
760
634
  Jr[n] = { value: n };
761
635
  });
762
636
  Object.defineProperties(C, Jr);
763
- Object.defineProperty(Hr, "isAxiosError", { value: !0 });
637
+ Object.defineProperty(Wr, "isAxiosError", { value: !0 });
764
638
  C.from = (n, e, t, r, s, i) => {
765
- const o = Object.create(Hr);
639
+ const o = Object.create(Wr);
766
640
  return d.toFlatObject(n, o, function(l) {
767
641
  return l !== Error.prototype;
768
642
  }, (c) => c !== "isAxiosError"), C.call(o, n.message, e, t, r, s), o.cause = n, o.name = n.name, i && Object.assign(o, i), o;
769
643
  };
770
- var Fi = null;
644
+ var Di = null;
771
645
  function wn(n) {
772
646
  return d.isPlainObject(n) || d.isArray(n);
773
647
  }
@@ -779,10 +653,10 @@ function or(n, e, t) {
779
653
  return s = zr(s), !t && i ? "[" + s + "]" : s;
780
654
  }).join(t ? "." : "") : e;
781
655
  }
782
- function Pi(n) {
656
+ function Ni(n) {
783
657
  return d.isArray(n) && !n.some(wn);
784
658
  }
785
- const Bi = d.toFlatObject(d, {}, null, function(e) {
659
+ const Li = d.toFlatObject(d, {}, null, function(e) {
786
660
  return /^is[A-Z]/.test(e);
787
661
  });
788
662
  function Kt(n, e, t) {
@@ -812,7 +686,7 @@ function Kt(n, e, t) {
812
686
  if (p && !E && typeof p == "object") {
813
687
  if (d.endsWith(y, "{}"))
814
688
  y = r ? y : y.slice(0, -2), p = JSON.stringify(p);
815
- else if (d.isArray(p) && Pi(p) || (d.isFileList(p) || d.endsWith(y, "[]")) && (b = d.toArray(p)))
689
+ else if (d.isArray(p) && Ni(p) || (d.isFileList(p) || d.endsWith(y, "[]")) && (b = d.toArray(p)))
816
690
  return y = zr(y), b.forEach(function(O, x) {
817
691
  !(d.isUndefined(O) || O === null) && e.append(
818
692
  o === !0 ? or([y], x, i) : o === null ? y : y + "[]",
@@ -822,7 +696,7 @@ function Kt(n, e, t) {
822
696
  }
823
697
  return wn(p) ? !0 : (e.append(or(E, y, i), a(p)), !1);
824
698
  }
825
- const h = [], g = Object.assign(Bi, {
699
+ const h = [], g = Object.assign(Li, {
826
700
  defaultVisitor: f,
827
701
  convertValue: a,
828
702
  isVisitable: wn
@@ -875,13 +749,13 @@ Kr.toString = function(e) {
875
749
  return t(s[0]) + "=" + t(s[1]);
876
750
  }, "").join("&");
877
751
  };
878
- function Ui(n) {
752
+ function Fi(n) {
879
753
  return encodeURIComponent(n).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
880
754
  }
881
755
  function Yr(n, e, t) {
882
756
  if (!e)
883
757
  return n;
884
- const r = t && t.encode || Ui, s = t && t.serialize;
758
+ const r = t && t.encode || Fi, s = t && t.serialize;
885
759
  let i;
886
760
  if (s ? i = s(e, t) : i = d.isURLSearchParams(e) ? e.toString() : new Bn(e, t).toString(r), i) {
887
761
  const o = n.indexOf("#");
@@ -889,7 +763,7 @@ function Yr(n, e, t) {
889
763
  }
890
764
  return n;
891
765
  }
892
- class Ii {
766
+ class Pi {
893
767
  constructor() {
894
768
  this.handlers = [];
895
769
  }
@@ -913,40 +787,40 @@ class Ii {
913
787
  });
914
788
  }
915
789
  }
916
- var cr = Ii, Gr = {
790
+ var cr = Pi, Gr = {
917
791
  silentJSONParsing: !0,
918
792
  forcedJSONParsing: !0,
919
793
  clarifyTimeoutError: !1
920
- }, ji = typeof URLSearchParams < "u" ? URLSearchParams : Bn, qi = typeof FormData < "u" ? FormData : null, Vi = typeof Blob < "u" ? Blob : null, Mi = {
794
+ }, Bi = typeof URLSearchParams < "u" ? URLSearchParams : Bn, Ui = typeof FormData < "u" ? FormData : null, Ii = typeof Blob < "u" ? Blob : null, ji = {
921
795
  isBrowser: !0,
922
796
  classes: {
923
- URLSearchParams: ji,
924
- FormData: qi,
925
- Blob: Vi
797
+ URLSearchParams: Bi,
798
+ FormData: Ui,
799
+ Blob: Ii
926
800
  },
927
801
  protocols: ["http", "https", "file", "blob", "url", "data"]
928
802
  };
929
- const Xr = typeof window < "u" && typeof document < "u", $i = ((n) => Xr && ["ReactNative", "NativeScript", "NS"].indexOf(n) < 0)(typeof navigator < "u" && navigator.product), Wi = (() => typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function")();
930
- var Hi = /* @__PURE__ */ Object.freeze({
803
+ const Xr = typeof window < "u" && typeof document < "u", qi = ((n) => Xr && ["ReactNative", "NativeScript", "NS"].indexOf(n) < 0)(typeof navigator < "u" && navigator.product), Vi = (() => typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function")();
804
+ var Mi = /* @__PURE__ */ Object.freeze({
931
805
  __proto__: null,
932
806
  hasBrowserEnv: Xr,
933
- hasStandardBrowserWebWorkerEnv: Wi,
934
- hasStandardBrowserEnv: $i
807
+ hasStandardBrowserWebWorkerEnv: Vi,
808
+ hasStandardBrowserEnv: qi
935
809
  }), we = {
936
- ...Hi,
937
- ...Mi
810
+ ...Mi,
811
+ ...ji
938
812
  };
939
- function Ji(n, e) {
813
+ function $i(n, e) {
940
814
  return Kt(n, new we.classes.URLSearchParams(), Object.assign({
941
815
  visitor: function(t, r, s, i) {
942
816
  return we.isNode && d.isBuffer(t) ? (this.append(r, t.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
943
817
  }
944
818
  }, e));
945
819
  }
946
- function zi(n) {
820
+ function Hi(n) {
947
821
  return d.matchAll(/\w+|\[(\w*)]/g, n).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
948
822
  }
949
- function Ki(n) {
823
+ function Wi(n) {
950
824
  const e = {}, t = Object.keys(n);
951
825
  let r;
952
826
  const s = t.length;
@@ -961,17 +835,17 @@ function Qr(n) {
961
835
  if (o === "__proto__")
962
836
  return !0;
963
837
  const c = Number.isFinite(+o), l = i >= t.length;
964
- return o = !o && d.isArray(s) ? s.length : o, l ? (d.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !c) : ((!s[o] || !d.isObject(s[o])) && (s[o] = []), e(t, r, s[o], i) && d.isArray(s[o]) && (s[o] = Ki(s[o])), !c);
838
+ return o = !o && d.isArray(s) ? s.length : o, l ? (d.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !c) : ((!s[o] || !d.isObject(s[o])) && (s[o] = []), e(t, r, s[o], i) && d.isArray(s[o]) && (s[o] = Wi(s[o])), !c);
965
839
  }
966
840
  if (d.isFormData(n) && d.isFunction(n.entries)) {
967
841
  const t = {};
968
842
  return d.forEachEntry(n, (r, s) => {
969
- e(zi(r), s, t, 0);
843
+ e(Hi(r), s, t, 0);
970
844
  }), t;
971
845
  }
972
846
  return null;
973
847
  }
974
- function Yi(n, e, t) {
848
+ function Ji(n, e, t) {
975
849
  if (d.isString(n))
976
850
  try {
977
851
  return (e || JSON.parse)(n), d.trim(n);
@@ -997,7 +871,7 @@ const Un = {
997
871
  let c;
998
872
  if (i) {
999
873
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
1000
- return Ji(e, this.formSerializer).toString();
874
+ return $i(e, this.formSerializer).toString();
1001
875
  if ((c = d.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
1002
876
  const l = this.env && this.env.FormData;
1003
877
  return Kt(
@@ -1007,7 +881,7 @@ const Un = {
1007
881
  );
1008
882
  }
1009
883
  }
1010
- return i || s ? (t.setContentType("application/json", !1), Yi(e)) : e;
884
+ return i || s ? (t.setContentType("application/json", !1), Ji(e)) : e;
1011
885
  }],
1012
886
  transformResponse: [function(e) {
1013
887
  const t = this.transitional || Un.transitional, r = t && t.forcedJSONParsing, s = this.responseType === "json";
@@ -1045,7 +919,7 @@ d.forEach(["delete", "get", "head", "post", "put", "patch"], (n) => {
1045
919
  Un.headers[n] = {};
1046
920
  });
1047
921
  var In = Un;
1048
- const Gi = d.toObjectSet([
922
+ const zi = d.toObjectSet([
1049
923
  "age",
1050
924
  "authorization",
1051
925
  "content-length",
@@ -1064,29 +938,29 @@ const Gi = d.toObjectSet([
1064
938
  "retry-after",
1065
939
  "user-agent"
1066
940
  ]);
1067
- var Xi = (n) => {
941
+ var Ki = (n) => {
1068
942
  const e = {};
1069
943
  let t, r, s;
1070
944
  return n && n.split(`
1071
945
  `).forEach(function(o) {
1072
- s = o.indexOf(":"), t = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!t || e[t] && Gi[t]) && (t === "set-cookie" ? e[t] ? e[t].push(r) : e[t] = [r] : e[t] = e[t] ? e[t] + ", " + r : r);
946
+ s = o.indexOf(":"), t = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!t || e[t] && zi[t]) && (t === "set-cookie" ? e[t] ? e[t].push(r) : e[t] = [r] : e[t] = e[t] ? e[t] + ", " + r : r);
1073
947
  }), e;
1074
948
  };
1075
949
  const ur = Symbol("internals");
1076
- function at(n) {
950
+ function ct(n) {
1077
951
  return n && String(n).trim().toLowerCase();
1078
952
  }
1079
- function It(n) {
1080
- return n === !1 || n == null ? n : d.isArray(n) ? n.map(It) : String(n);
953
+ function jt(n) {
954
+ return n === !1 || n == null ? n : d.isArray(n) ? n.map(jt) : String(n);
1081
955
  }
1082
- function Qi(n) {
956
+ function Yi(n) {
1083
957
  const e = /* @__PURE__ */ Object.create(null), t = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
1084
958
  let r;
1085
959
  for (; r = t.exec(n); )
1086
960
  e[r[1]] = r[2];
1087
961
  return e;
1088
962
  }
1089
- const Zi = (n) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());
963
+ const Gi = (n) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());
1090
964
  function on(n, e, t, r, s) {
1091
965
  if (d.isFunction(r))
1092
966
  return r.call(this, e, t);
@@ -1097,10 +971,10 @@ function on(n, e, t, r, s) {
1097
971
  return r.test(e);
1098
972
  }
1099
973
  }
1100
- function eo(n) {
974
+ function Xi(n) {
1101
975
  return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, t, r) => t.toUpperCase() + r);
1102
976
  }
1103
- function to(n, e) {
977
+ function Qi(n, e) {
1104
978
  const t = d.toCamelCase(" " + e);
1105
979
  ["get", "set", "has"].forEach((r) => {
1106
980
  Object.defineProperty(n, r + t, {
@@ -1118,24 +992,24 @@ class Yt {
1118
992
  set(e, t, r) {
1119
993
  const s = this;
1120
994
  function i(c, l, a) {
1121
- const f = at(l);
995
+ const f = ct(l);
1122
996
  if (!f)
1123
997
  throw new Error("header name must be a non-empty string");
1124
998
  const h = d.findKey(s, f);
1125
- (!h || s[h] === void 0 || a === !0 || a === void 0 && s[h] !== !1) && (s[h || l] = It(c));
999
+ (!h || s[h] === void 0 || a === !0 || a === void 0 && s[h] !== !1) && (s[h || l] = jt(c));
1126
1000
  }
1127
1001
  const o = (c, l) => d.forEach(c, (a, f) => i(a, f, l));
1128
- return d.isPlainObject(e) || e instanceof this.constructor ? o(e, t) : d.isString(e) && (e = e.trim()) && !Zi(e) ? o(Xi(e), t) : e != null && i(t, e, r), this;
1002
+ return d.isPlainObject(e) || e instanceof this.constructor ? o(e, t) : d.isString(e) && (e = e.trim()) && !Gi(e) ? o(Ki(e), t) : e != null && i(t, e, r), this;
1129
1003
  }
1130
1004
  get(e, t) {
1131
- if (e = at(e), e) {
1005
+ if (e = ct(e), e) {
1132
1006
  const r = d.findKey(this, e);
1133
1007
  if (r) {
1134
1008
  const s = this[r];
1135
1009
  if (!t)
1136
1010
  return s;
1137
1011
  if (t === !0)
1138
- return Qi(s);
1012
+ return Yi(s);
1139
1013
  if (d.isFunction(t))
1140
1014
  return t.call(this, s, r);
1141
1015
  if (d.isRegExp(t))
@@ -1145,7 +1019,7 @@ class Yt {
1145
1019
  }
1146
1020
  }
1147
1021
  has(e, t) {
1148
- if (e = at(e), e) {
1022
+ if (e = ct(e), e) {
1149
1023
  const r = d.findKey(this, e);
1150
1024
  return !!(r && this[r] !== void 0 && (!t || on(this, this[r], r, t)));
1151
1025
  }
@@ -1155,7 +1029,7 @@ class Yt {
1155
1029
  const r = this;
1156
1030
  let s = !1;
1157
1031
  function i(o) {
1158
- if (o = at(o), o) {
1032
+ if (o = ct(o), o) {
1159
1033
  const c = d.findKey(r, o);
1160
1034
  c && (!t || on(r, r[c], c, t)) && (delete r[c], s = !0);
1161
1035
  }
@@ -1176,11 +1050,11 @@ class Yt {
1176
1050
  return d.forEach(this, (s, i) => {
1177
1051
  const o = d.findKey(r, i);
1178
1052
  if (o) {
1179
- t[o] = It(s), delete t[i];
1053
+ t[o] = jt(s), delete t[i];
1180
1054
  return;
1181
1055
  }
1182
- const c = e ? eo(i) : String(i).trim();
1183
- c !== i && delete t[i], t[c] = It(s), r[c] = !0;
1056
+ const c = e ? Xi(i) : String(i).trim();
1057
+ c !== i && delete t[i], t[c] = jt(s), r[c] = !0;
1184
1058
  }), this;
1185
1059
  }
1186
1060
  concat(...e) {
@@ -1214,8 +1088,8 @@ class Yt {
1214
1088
  accessors: {}
1215
1089
  }).accessors, s = this.prototype;
1216
1090
  function i(o) {
1217
- const c = at(o);
1218
- r[c] || (to(s, o), r[c] = !0);
1091
+ const c = ct(o);
1092
+ r[c] || (Qi(s, o), r[c] = !0);
1219
1093
  }
1220
1094
  return d.isArray(e) ? e.forEach(i) : i(e), this;
1221
1095
  }
@@ -1242,13 +1116,13 @@ function an(n, e) {
1242
1116
  function Zr(n) {
1243
1117
  return !!(n && n.__CANCEL__);
1244
1118
  }
1245
- function bt(n, e, t) {
1119
+ function _t(n, e, t) {
1246
1120
  C.call(this, n == null ? "canceled" : n, C.ERR_CANCELED, e, t), this.name = "CanceledError";
1247
1121
  }
1248
- d.inherits(bt, C, {
1122
+ d.inherits(_t, C, {
1249
1123
  __CANCEL__: !0
1250
1124
  });
1251
- function no(n, e, t) {
1125
+ function Zi(n, e, t) {
1252
1126
  const r = t.config.validateStatus;
1253
1127
  !t.status || !r || r(t.status) ? n(t) : e(new C(
1254
1128
  "Request failed with status code " + t.status,
@@ -1258,7 +1132,7 @@ function no(n, e, t) {
1258
1132
  t
1259
1133
  ));
1260
1134
  }
1261
- var ro = we.hasStandardBrowserEnv ? {
1135
+ var eo = we.hasStandardBrowserEnv ? {
1262
1136
  write(n, e, t, r, s, i) {
1263
1137
  const o = [n + "=" + encodeURIComponent(e)];
1264
1138
  d.isNumber(t) && o.push("expires=" + new Date(t).toGMTString()), d.isString(r) && o.push("path=" + r), d.isString(s) && o.push("domain=" + s), i === !0 && o.push("secure"), document.cookie = o.join("; ");
@@ -1279,16 +1153,16 @@ var ro = we.hasStandardBrowserEnv ? {
1279
1153
  remove() {
1280
1154
  }
1281
1155
  };
1282
- function so(n) {
1156
+ function to(n) {
1283
1157
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(n);
1284
1158
  }
1285
- function io(n, e) {
1159
+ function no(n, e) {
1286
1160
  return e ? n.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : n;
1287
1161
  }
1288
1162
  function es(n, e) {
1289
- return n && !so(e) ? io(n, e) : e;
1163
+ return n && !to(e) ? no(n, e) : e;
1290
1164
  }
1291
- var oo = we.hasStandardBrowserEnv ? function() {
1165
+ var ro = we.hasStandardBrowserEnv ? function() {
1292
1166
  const e = /(msie|trident)/i.test(navigator.userAgent), t = document.createElement("a");
1293
1167
  let r;
1294
1168
  function s(i) {
@@ -1313,11 +1187,11 @@ var oo = we.hasStandardBrowserEnv ? function() {
1313
1187
  return !0;
1314
1188
  };
1315
1189
  }();
1316
- function ao(n) {
1190
+ function so(n) {
1317
1191
  const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(n);
1318
1192
  return e && e[1] || "";
1319
1193
  }
1320
- function co(n, e) {
1194
+ function io(n, e) {
1321
1195
  n = n || 10;
1322
1196
  const t = new Array(n), r = new Array(n);
1323
1197
  let s = 0, i = 0, o;
@@ -1335,7 +1209,7 @@ function co(n, e) {
1335
1209
  }
1336
1210
  function lr(n, e) {
1337
1211
  let t = 0;
1338
- const r = co(50, 250);
1212
+ const r = io(50, 250);
1339
1213
  return (s) => {
1340
1214
  const i = s.loaded, o = s.lengthComputable ? s.total : void 0, c = i - t, l = r(c), a = i <= o;
1341
1215
  t = i;
@@ -1351,8 +1225,8 @@ function lr(n, e) {
1351
1225
  f[e ? "download" : "upload"] = !0, n(f);
1352
1226
  };
1353
1227
  }
1354
- const uo = typeof XMLHttpRequest < "u";
1355
- var lo = uo && function(n) {
1228
+ const oo = typeof XMLHttpRequest < "u";
1229
+ var ao = oo && function(n) {
1356
1230
  return new Promise(function(t, r) {
1357
1231
  let s = n.data;
1358
1232
  const i = Ce.from(n.headers).normalize();
@@ -1389,7 +1263,7 @@ var lo = uo && function(n) {
1389
1263
  config: n,
1390
1264
  request: h
1391
1265
  };
1392
- no(function(O) {
1266
+ Zi(function(O) {
1393
1267
  t(O), a();
1394
1268
  }, function(O) {
1395
1269
  r(O), a();
@@ -1410,16 +1284,16 @@ var lo = uo && function(n) {
1410
1284
  n,
1411
1285
  h
1412
1286
  )), h = null;
1413
- }, we.hasStandardBrowserEnv && (c && d.isFunction(c) && (c = c(n)), c || c !== !1 && oo(g))) {
1414
- const y = n.xsrfHeaderName && n.xsrfCookieName && ro.read(n.xsrfCookieName);
1287
+ }, we.hasStandardBrowserEnv && (c && d.isFunction(c) && (c = c(n)), c || c !== !1 && ro(g))) {
1288
+ const y = n.xsrfHeaderName && n.xsrfCookieName && eo.read(n.xsrfCookieName);
1415
1289
  y && i.set(n.xsrfHeaderName, y);
1416
1290
  }
1417
1291
  s === void 0 && i.setContentType(null), "setRequestHeader" in h && d.forEach(i.toJSON(), function(E, b) {
1418
1292
  h.setRequestHeader(b, E);
1419
1293
  }), d.isUndefined(n.withCredentials) || (h.withCredentials = !!n.withCredentials), o && o !== "json" && (h.responseType = n.responseType), typeof n.onDownloadProgress == "function" && h.addEventListener("progress", lr(n.onDownloadProgress, !0)), typeof n.onUploadProgress == "function" && h.upload && h.upload.addEventListener("progress", lr(n.onUploadProgress)), (n.cancelToken || n.signal) && (l = (y) => {
1420
- !h || (r(!y || y.type ? new bt(null, n, h) : y), h.abort(), h = null);
1294
+ !h || (r(!y || y.type ? new _t(null, n, h) : y), h.abort(), h = null);
1421
1295
  }, n.cancelToken && n.cancelToken.subscribe(l), n.signal && (n.signal.aborted ? l() : n.signal.addEventListener("abort", l)));
1422
- const p = ao(g);
1296
+ const p = so(g);
1423
1297
  if (p && we.protocols.indexOf(p) === -1) {
1424
1298
  r(new C("Unsupported protocol " + p + ":", C.ERR_BAD_REQUEST, n));
1425
1299
  return;
@@ -1428,8 +1302,8 @@ var lo = uo && function(n) {
1428
1302
  });
1429
1303
  };
1430
1304
  const bn = {
1431
- http: Fi,
1432
- xhr: lo
1305
+ http: Di,
1306
+ xhr: ao
1433
1307
  };
1434
1308
  d.forEach(bn, (n, e) => {
1435
1309
  if (n) {
@@ -1440,7 +1314,7 @@ d.forEach(bn, (n, e) => {
1440
1314
  Object.defineProperty(n, "adapterName", { value: e });
1441
1315
  }
1442
1316
  });
1443
- const fr = (n) => `- ${n}`, fo = (n) => d.isFunction(n) || n === null || n === !1;
1317
+ const fr = (n) => `- ${n}`, co = (n) => d.isFunction(n) || n === null || n === !1;
1444
1318
  var ts = {
1445
1319
  getAdapter: (n) => {
1446
1320
  n = d.isArray(n) ? n : [n];
@@ -1450,7 +1324,7 @@ var ts = {
1450
1324
  for (let i = 0; i < e; i++) {
1451
1325
  t = n[i];
1452
1326
  let o;
1453
- if (r = t, !fo(t) && (r = bn[(o = String(t)).toLowerCase()], r === void 0))
1327
+ if (r = t, !co(t) && (r = bn[(o = String(t)).toLowerCase()], r === void 0))
1454
1328
  throw new C(`Unknown adapter '${o}'`);
1455
1329
  if (r)
1456
1330
  break;
@@ -1474,7 +1348,7 @@ var ts = {
1474
1348
  };
1475
1349
  function cn(n) {
1476
1350
  if (n.cancelToken && n.cancelToken.throwIfRequested(), n.signal && n.signal.aborted)
1477
- throw new bt(null, n);
1351
+ throw new _t(null, n);
1478
1352
  }
1479
1353
  function hr(n) {
1480
1354
  return cn(n), n.headers = Ce.from(n.headers), n.data = an.call(
@@ -1495,7 +1369,7 @@ function hr(n) {
1495
1369
  });
1496
1370
  }
1497
1371
  const dr = (n) => n instanceof Ce ? n.toJSON() : n;
1498
- function Xe(n, e) {
1372
+ function Qe(n, e) {
1499
1373
  e = e || {};
1500
1374
  const t = {};
1501
1375
  function r(a, f, h) {
@@ -1586,7 +1460,7 @@ jn.transitional = function(e, t, r) {
1586
1460
  )), e ? e(i, o, c) : !0;
1587
1461
  };
1588
1462
  };
1589
- function ho(n, e, t) {
1463
+ function uo(n, e, t) {
1590
1464
  if (typeof n != "object")
1591
1465
  throw new C("options must be an object", C.ERR_BAD_OPTION_VALUE);
1592
1466
  const r = Object.keys(n);
@@ -1604,11 +1478,11 @@ function ho(n, e, t) {
1604
1478
  }
1605
1479
  }
1606
1480
  var _n = {
1607
- assertOptions: ho,
1481
+ assertOptions: uo,
1608
1482
  validators: jn
1609
1483
  };
1610
- const ke = _n.validators;
1611
- class Wt {
1484
+ const De = _n.validators;
1485
+ class Ht {
1612
1486
  constructor(e) {
1613
1487
  this.defaults = e, this.interceptors = {
1614
1488
  request: new cr(),
@@ -1630,17 +1504,17 @@ class Wt {
1630
1504
  }
1631
1505
  }
1632
1506
  _request(e, t) {
1633
- typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t = Xe(this.defaults, t);
1507
+ typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t = Qe(this.defaults, t);
1634
1508
  const { transitional: r, paramsSerializer: s, headers: i } = t;
1635
1509
  r !== void 0 && _n.assertOptions(r, {
1636
- silentJSONParsing: ke.transitional(ke.boolean),
1637
- forcedJSONParsing: ke.transitional(ke.boolean),
1638
- clarifyTimeoutError: ke.transitional(ke.boolean)
1510
+ silentJSONParsing: De.transitional(De.boolean),
1511
+ forcedJSONParsing: De.transitional(De.boolean),
1512
+ clarifyTimeoutError: De.transitional(De.boolean)
1639
1513
  }, !1), s != null && (d.isFunction(s) ? t.paramsSerializer = {
1640
1514
  serialize: s
1641
1515
  } : _n.assertOptions(s, {
1642
- encode: ke.function,
1643
- serialize: ke.function
1516
+ encode: De.function,
1517
+ serialize: De.function
1644
1518
  }, !0)), t.method = (t.method || this.defaults.method || "get").toLowerCase();
1645
1519
  let o = i && d.merge(
1646
1520
  i.common,
@@ -1689,14 +1563,14 @@ class Wt {
1689
1563
  return f;
1690
1564
  }
1691
1565
  getUri(e) {
1692
- e = Xe(this.defaults, e);
1566
+ e = Qe(this.defaults, e);
1693
1567
  const t = es(e.baseURL, e.url);
1694
1568
  return Yr(t, e.params, e.paramsSerializer);
1695
1569
  }
1696
1570
  }
1697
1571
  d.forEach(["delete", "get", "head", "options"], function(e) {
1698
- Wt.prototype[e] = function(t, r) {
1699
- return this.request(Xe(r || {}, {
1572
+ Ht.prototype[e] = function(t, r) {
1573
+ return this.request(Qe(r || {}, {
1700
1574
  method: e,
1701
1575
  url: t,
1702
1576
  data: (r || {}).data
@@ -1706,7 +1580,7 @@ d.forEach(["delete", "get", "head", "options"], function(e) {
1706
1580
  d.forEach(["post", "put", "patch"], function(e) {
1707
1581
  function t(r) {
1708
1582
  return function(i, o, c) {
1709
- return this.request(Xe(c || {}, {
1583
+ return this.request(Qe(c || {}, {
1710
1584
  method: e,
1711
1585
  headers: r ? {
1712
1586
  "Content-Type": "multipart/form-data"
@@ -1716,9 +1590,9 @@ d.forEach(["post", "put", "patch"], function(e) {
1716
1590
  }));
1717
1591
  };
1718
1592
  }
1719
- Wt.prototype[e] = t(), Wt.prototype[e + "Form"] = t(!0);
1593
+ Ht.prototype[e] = t(), Ht.prototype[e + "Form"] = t(!0);
1720
1594
  });
1721
- var jt = Wt;
1595
+ var qt = Ht;
1722
1596
  class qn {
1723
1597
  constructor(e) {
1724
1598
  if (typeof e != "function")
@@ -1744,7 +1618,7 @@ class qn {
1744
1618
  r.unsubscribe(i);
1745
1619
  }, o;
1746
1620
  }, e(function(i, o, c) {
1747
- r.reason || (r.reason = new bt(i, o, c), t(r.reason));
1621
+ r.reason || (r.reason = new _t(i, o, c), t(r.reason));
1748
1622
  });
1749
1623
  }
1750
1624
  throwIfRequested() {
@@ -1774,13 +1648,13 @@ class qn {
1774
1648
  };
1775
1649
  }
1776
1650
  }
1777
- var po = qn;
1778
- function yo(n) {
1651
+ var lo = qn;
1652
+ function fo(n) {
1779
1653
  return function(t) {
1780
1654
  return n.apply(null, t);
1781
1655
  };
1782
1656
  }
1783
- function mo(n) {
1657
+ function ho(n) {
1784
1658
  return d.isObject(n) && n.isAxiosError === !0;
1785
1659
  }
1786
1660
  const En = {
@@ -1851,17 +1725,17 @@ const En = {
1851
1725
  Object.entries(En).forEach(([n, e]) => {
1852
1726
  En[e] = n;
1853
1727
  });
1854
- var go = En;
1728
+ var po = En;
1855
1729
  function rs(n) {
1856
- const e = new jt(n), t = Ur(jt.prototype.request, e);
1857
- return d.extend(t, jt.prototype, e, { allOwnKeys: !0 }), d.extend(t, e, null, { allOwnKeys: !0 }), t.create = function(s) {
1858
- return rs(Xe(n, s));
1730
+ const e = new qt(n), t = Ur(qt.prototype.request, e);
1731
+ return d.extend(t, qt.prototype, e, { allOwnKeys: !0 }), d.extend(t, e, null, { allOwnKeys: !0 }), t.create = function(s) {
1732
+ return rs(Qe(n, s));
1859
1733
  }, t;
1860
1734
  }
1861
1735
  const G = rs(In);
1862
- G.Axios = jt;
1863
- G.CanceledError = bt;
1864
- G.CancelToken = po;
1736
+ G.Axios = qt;
1737
+ G.CanceledError = _t;
1738
+ G.CancelToken = lo;
1865
1739
  G.isCancel = Zr;
1866
1740
  G.VERSION = ns;
1867
1741
  G.toFormData = Kt;
@@ -1870,26 +1744,26 @@ G.Cancel = G.CanceledError;
1870
1744
  G.all = function(e) {
1871
1745
  return Promise.all(e);
1872
1746
  };
1873
- G.spread = yo;
1874
- G.isAxiosError = mo;
1875
- G.mergeConfig = Xe;
1747
+ G.spread = fo;
1748
+ G.isAxiosError = ho;
1749
+ G.mergeConfig = Qe;
1876
1750
  G.AxiosHeaders = Ce;
1877
1751
  G.formToJSON = (n) => Qr(d.isHTMLForm(n) ? new FormData(n) : n);
1878
1752
  G.getAdapter = ts.getAdapter;
1879
- G.HttpStatusCode = go;
1753
+ G.HttpStatusCode = po;
1880
1754
  G.default = G;
1881
- var vo = G;
1882
- Object.defineProperty(Ge, "__esModule", { value: !0 });
1883
- Ge.getRequestHeaders = Ge.getAxiosClient = void 0;
1884
- var wo = vo;
1885
- function bo(n, e, t, r) {
1886
- return wo.default.create({
1755
+ var yo = G;
1756
+ Object.defineProperty(Ve, "__esModule", { value: !0 });
1757
+ Ve.getRequestHeaders = Ve.getAxiosClient = void 0;
1758
+ var mo = yo;
1759
+ function go(n, e, t, r) {
1760
+ return mo.default.create({
1887
1761
  baseURL: n,
1888
1762
  headers: ss(e, r, t),
1889
1763
  withCredentials: !0
1890
1764
  });
1891
1765
  }
1892
- Ge.getAxiosClient = bo;
1766
+ Ve.getAxiosClient = go;
1893
1767
  function ss(n, e, t) {
1894
1768
  n === void 0 && (n = !1);
1895
1769
  var r = {
@@ -1898,13 +1772,140 @@ function ss(n, e, t) {
1898
1772
  };
1899
1773
  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;
1900
1774
  }
1901
- Ge.getRequestHeaders = ss;
1775
+ Ve.getRequestHeaders = ss;
1776
+ var Xe = F && F.__assign || function() {
1777
+ return Xe = Object.assign || function(n) {
1778
+ for (var e, t = 1, r = arguments.length; t < r; t++) {
1779
+ e = arguments[t];
1780
+ for (var s in e)
1781
+ Object.prototype.hasOwnProperty.call(e, s) && (n[s] = e[s]);
1782
+ }
1783
+ return n;
1784
+ }, Xe.apply(this, arguments);
1785
+ }, vo = F && F.__awaiter || function(n, e, t, r) {
1786
+ function s(i) {
1787
+ return i instanceof t ? i : new t(function(o) {
1788
+ o(i);
1789
+ });
1790
+ }
1791
+ return new (t || (t = Promise))(function(i, o) {
1792
+ function c(f) {
1793
+ try {
1794
+ a(r.next(f));
1795
+ } catch (h) {
1796
+ o(h);
1797
+ }
1798
+ }
1799
+ function l(f) {
1800
+ try {
1801
+ a(r.throw(f));
1802
+ } catch (h) {
1803
+ o(h);
1804
+ }
1805
+ }
1806
+ function a(f) {
1807
+ f.done ? i(f.value) : s(f.value).then(c, l);
1808
+ }
1809
+ a((r = r.apply(n, e || [])).next());
1810
+ });
1811
+ }, wo = F && F.__generator || function(n, e) {
1812
+ var t = { label: 0, sent: function() {
1813
+ if (i[0] & 1)
1814
+ throw i[1];
1815
+ return i[1];
1816
+ }, trys: [], ops: [] }, r, s, i, o;
1817
+ return o = { next: c(0), throw: c(1), return: c(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
1818
+ return this;
1819
+ }), o;
1820
+ function c(a) {
1821
+ return function(f) {
1822
+ return l([a, f]);
1823
+ };
1824
+ }
1825
+ function l(a) {
1826
+ if (r)
1827
+ throw new TypeError("Generator is already executing.");
1828
+ for (; o && (o = 0, a[0] && (t = 0)), t; )
1829
+ try {
1830
+ if (r = 1, s && (i = a[0] & 2 ? s.return : a[0] ? s.throw || ((i = s.return) && i.call(s), 0) : s.next) && !(i = i.call(s, a[1])).done)
1831
+ return i;
1832
+ switch (s = 0, i && (a = [a[0] & 2, i.value]), a[0]) {
1833
+ case 0:
1834
+ case 1:
1835
+ i = a;
1836
+ break;
1837
+ case 4:
1838
+ return t.label++, { value: a[1], done: !1 };
1839
+ case 5:
1840
+ t.label++, s = a[1], a = [0];
1841
+ continue;
1842
+ case 7:
1843
+ a = t.ops.pop(), t.trys.pop();
1844
+ continue;
1845
+ default:
1846
+ if (i = t.trys, !(i = i.length > 0 && i[i.length - 1]) && (a[0] === 6 || a[0] === 2)) {
1847
+ t = 0;
1848
+ continue;
1849
+ }
1850
+ if (a[0] === 3 && (!i || a[1] > i[0] && a[1] < i[3])) {
1851
+ t.label = a[1];
1852
+ break;
1853
+ }
1854
+ if (a[0] === 6 && t.label < i[1]) {
1855
+ t.label = i[1], i = a;
1856
+ break;
1857
+ }
1858
+ if (i && t.label < i[2]) {
1859
+ t.label = i[2], t.ops.push(a);
1860
+ break;
1861
+ }
1862
+ i[2] && t.ops.pop(), t.trys.pop();
1863
+ continue;
1864
+ }
1865
+ a = e.call(n, t);
1866
+ } catch (f) {
1867
+ a = [6, f], s = 0;
1868
+ } finally {
1869
+ r = i = 0;
1870
+ }
1871
+ if (a[0] & 5)
1872
+ throw a[1];
1873
+ return { value: a[0] ? a[1] : void 0, done: !0 };
1874
+ }
1875
+ };
1876
+ Object.defineProperty(wt, "__esModule", { value: !0 });
1877
+ wt.FrappeFileUpload = void 0;
1878
+ var bo = Ve, _o = function() {
1879
+ function n(e, t, r, s, i) {
1880
+ this.appURL = e, this.axios = t, this.useToken = r != null ? r : !1, this.token = s, this.tokenType = i;
1881
+ }
1882
+ return n.prototype.uploadFile = function(e, t, r, s) {
1883
+ return s === void 0 && (s = "upload_file"), vo(this, void 0, void 0, function() {
1884
+ var i, o, c, l, a, f, h, g;
1885
+ return wo(this, function(v) {
1886
+ return i = new FormData(), e && i.append("file", e, e.name), o = t.isPrivate, c = t.folder, l = t.file_url, a = t.doctype, f = t.docname, h = t.fieldname, g = t.otherData, o && i.append("is_private", "1"), c && i.append("folder", c), l && i.append("file_url", l), a && f && (i.append("doctype", a), i.append("docname", f), h && i.append("fieldname", h)), g && Object.keys(g).forEach(function(p) {
1887
+ var y = g[p];
1888
+ i.append(p, y);
1889
+ }), [2, this.axios.post("/api/method/".concat(s), i, {
1890
+ onUploadProgress: function(p) {
1891
+ r && r(p.loaded, p.total, p);
1892
+ },
1893
+ headers: Xe(Xe({}, (0, bo.getRequestHeaders)(this.useToken, this.tokenType, this.token)), { "Content-Type": "multipart/form-data" })
1894
+ }).catch(function(p) {
1895
+ var y, E;
1896
+ throw Xe(Xe({}, p.response.data), { httpStatus: p.response.status, httpStatusText: p.response.statusText, message: (y = p.response.data.message) !== null && y !== void 0 ? y : "There was an error while uploading the file.", exception: (E = p.response.data.exception) !== null && E !== void 0 ? E : "" });
1897
+ })];
1898
+ });
1899
+ });
1900
+ }, n;
1901
+ }();
1902
+ wt.FrappeFileUpload = _o;
1902
1903
  var yr;
1903
- function _o() {
1904
+ function Eo() {
1904
1905
  if (yr)
1905
- return ot;
1906
- yr = 1, Object.defineProperty(ot, "__esModule", { value: !0 }), ot.FrappeApp = void 0;
1907
- var n = is(), e = mt, t = gt, r = vt, s = Ge, i = function() {
1906
+ return at;
1907
+ yr = 1, Object.defineProperty(at, "__esModule", { value: !0 }), at.FrappeApp = void 0;
1908
+ var n = is(), e = gt, t = vt, r = wt, s = Ve, i = function() {
1908
1909
  function o(c, l, a) {
1909
1910
  var f, h;
1910
1911
  this.url = c, this.name = a != null ? a : "FrappeApp", this.useToken = (f = l == null ? void 0 : l.useToken) !== null && f !== void 0 ? f : !1, this.token = l == null ? void 0 : l.token, this.tokenType = (h = l == null ? void 0 : l.type) !== null && h !== void 0 ? h : "Bearer", this.axios = (0, s.getAxiosClient)(this.url, this.useToken, this.token, this.tokenType);
@@ -1919,7 +1920,7 @@ function _o() {
1919
1920
  return new e.FrappeCall(this.url, this.axios, this.useToken, this.token, this.tokenType);
1920
1921
  }, o;
1921
1922
  }();
1922
- return ot.FrappeApp = i, ot;
1923
+ return at.FrappeApp = i, at;
1923
1924
  }
1924
1925
  var Gt = {}, ge = F && F.__assign || function() {
1925
1926
  return ge = Object.assign || function(n) {
@@ -1930,7 +1931,7 @@ var Gt = {}, ge = F && F.__assign || function() {
1930
1931
  }
1931
1932
  return n;
1932
1933
  }, ge.apply(this, arguments);
1933
- }, Ct = F && F.__awaiter || function(n, e, t, r) {
1934
+ }, kt = F && F.__awaiter || function(n, e, t, r) {
1934
1935
  function s(i) {
1935
1936
  return i instanceof t ? i : new t(function(o) {
1936
1937
  o(i);
@@ -2023,12 +2024,12 @@ var Gt = {}, ge = F && F.__assign || function() {
2023
2024
  };
2024
2025
  Object.defineProperty(Gt, "__esModule", { value: !0 });
2025
2026
  Gt.FrappeAuth = void 0;
2026
- var Eo = function() {
2027
+ var So = function() {
2027
2028
  function n(e, t, r, s, i) {
2028
2029
  this.appURL = e, this.axios = t, this.useToken = r != null ? r : !1, this.token = s, this.tokenType = i;
2029
2030
  }
2030
2031
  return n.prototype.loginWithUsernamePassword = function(e) {
2031
- return Ct(this, void 0, void 0, function() {
2032
+ return kt(this, void 0, void 0, function() {
2032
2033
  return Dt(this, function(t) {
2033
2034
  return [2, this.axios.post("/api/method/login", {
2034
2035
  usr: e.username,
@@ -2045,7 +2046,7 @@ var Eo = function() {
2045
2046
  });
2046
2047
  });
2047
2048
  }, n.prototype.getLoggedInUser = function() {
2048
- return Ct(this, void 0, void 0, function() {
2049
+ return kt(this, void 0, void 0, function() {
2049
2050
  return Dt(this, function(e) {
2050
2051
  return [2, this.axios.get("/api/method/frappe.auth.get_logged_user").then(function(t) {
2051
2052
  return t.data.message;
@@ -2056,7 +2057,7 @@ var Eo = function() {
2056
2057
  });
2057
2058
  });
2058
2059
  }, n.prototype.logout = function() {
2059
- return Ct(this, void 0, void 0, function() {
2060
+ return kt(this, void 0, void 0, function() {
2060
2061
  return Dt(this, function(e) {
2061
2062
  return [2, this.axios.post("/api/method/logout", {}).then(function() {
2062
2063
  }).catch(function(t) {
@@ -2066,7 +2067,7 @@ var Eo = function() {
2066
2067
  });
2067
2068
  });
2068
2069
  }, n.prototype.forgetPassword = function(e) {
2069
- return Ct(this, void 0, void 0, function() {
2070
+ return kt(this, void 0, void 0, function() {
2070
2071
  return Dt(this, function(t) {
2071
2072
  return [2, this.axios.post("/", {
2072
2073
  cmd: "frappe.core.doctype.user.user.reset_password",
@@ -2080,7 +2081,7 @@ var Eo = function() {
2080
2081
  });
2081
2082
  }, n;
2082
2083
  }();
2083
- Gt.FrappeAuth = Eo;
2084
+ Gt.FrappeAuth = So;
2084
2085
  var mr;
2085
2086
  function is() {
2086
2087
  return mr || (mr = 1, function(n) {
@@ -2096,10 +2097,10 @@ function is() {
2096
2097
  for (var i in r)
2097
2098
  i !== "default" && !Object.prototype.hasOwnProperty.call(s, i) && e(s, r, i);
2098
2099
  };
2099
- Object.defineProperty(n, "__esModule", { value: !0 }), t(_o(), n), t(Gt, n), t(gt, n), t(vt, n), t(mt, n);
2100
+ Object.defineProperty(n, "__esModule", { value: !0 }), t(Eo(), n), t(Gt, n), t(vt, n), t(wt, n), t(gt, n);
2100
2101
  }(rn)), rn;
2101
2102
  }
2102
- var So = is(), os = { exports: {} }, un = {};
2103
+ var Ro = is(), os = { exports: {} }, un = {};
2103
2104
  /**
2104
2105
  * @license React
2105
2106
  * use-sync-external-store-shim.production.min.js
@@ -2110,11 +2111,11 @@ var So = is(), os = { exports: {} }, un = {};
2110
2111
  * LICENSE file in the root directory of this source tree.
2111
2112
  */
2112
2113
  var gr;
2113
- function Ro() {
2114
+ function To() {
2114
2115
  if (gr)
2115
2116
  return un;
2116
2117
  gr = 1;
2117
- var n = Ve;
2118
+ var n = Me;
2118
2119
  function e(h, g) {
2119
2120
  return h === g && (h !== 0 || 1 / h === 1 / g) || h !== h && g !== g;
2120
2121
  }
@@ -2156,23 +2157,23 @@ var ln = {};
2156
2157
  * LICENSE file in the root directory of this source tree.
2157
2158
  */
2158
2159
  var vr;
2159
- function To() {
2160
+ function Oo() {
2160
2161
  return vr || (vr = 1, process.env.NODE_ENV !== "production" && function() {
2161
2162
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
2162
- var n = Ve, e = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
2163
+ var n = Me, e = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
2163
2164
  function t(O) {
2164
2165
  {
2165
- for (var x = arguments.length, L = new Array(x > 1 ? x - 1 : 0), k = 1; k < x; k++)
2166
- L[k - 1] = arguments[k];
2166
+ for (var x = arguments.length, L = new Array(x > 1 ? x - 1 : 0), D = 1; D < x; D++)
2167
+ L[D - 1] = arguments[D];
2167
2168
  r("error", O, L);
2168
2169
  }
2169
2170
  }
2170
2171
  function r(O, x, L) {
2171
2172
  {
2172
- var k = e.ReactDebugCurrentFrame, re = k.getStackAddendum();
2173
+ var D = e.ReactDebugCurrentFrame, re = D.getStackAddendum();
2173
2174
  re !== "" && (x += "%s", L = L.concat([re]));
2174
- var P = L.map(function(W) {
2175
- return String(W);
2175
+ var P = L.map(function(H) {
2176
+ return String(H);
2176
2177
  });
2177
2178
  P.unshift("Warning: " + x), Function.prototype.apply.call(console[O], console, P);
2178
2179
  }
@@ -2183,38 +2184,38 @@ function To() {
2183
2184
  var i = typeof Object.is == "function" ? Object.is : s, o = n.useState, c = n.useEffect, l = n.useLayoutEffect, a = n.useDebugValue, f = !1, h = !1;
2184
2185
  function g(O, x, L) {
2185
2186
  f || n.startTransition !== void 0 && (f = !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."));
2186
- var k = x();
2187
+ var D = x();
2187
2188
  if (!h) {
2188
2189
  var re = x();
2189
- i(k, re) || (t("The result of getSnapshot should be cached to avoid an infinite loop"), h = !0);
2190
+ i(D, re) || (t("The result of getSnapshot should be cached to avoid an infinite loop"), h = !0);
2190
2191
  }
2191
2192
  var P = o({
2192
2193
  inst: {
2193
- value: k,
2194
+ value: D,
2194
2195
  getSnapshot: x
2195
2196
  }
2196
- }), W = P[0].inst, Q = P[1];
2197
+ }), H = P[0].inst, Q = P[1];
2197
2198
  return l(function() {
2198
- W.value = k, W.getSnapshot = x, v(W) && Q({
2199
- inst: W
2199
+ H.value = D, H.getSnapshot = x, v(H) && Q({
2200
+ inst: H
2200
2201
  });
2201
- }, [O, k, x]), c(function() {
2202
- v(W) && Q({
2203
- inst: W
2202
+ }, [O, D, x]), c(function() {
2203
+ v(H) && Q({
2204
+ inst: H
2204
2205
  });
2205
2206
  var pe = function() {
2206
- v(W) && Q({
2207
- inst: W
2207
+ v(H) && Q({
2208
+ inst: H
2208
2209
  });
2209
2210
  };
2210
2211
  return O(pe);
2211
- }, [O]), a(k), k;
2212
+ }, [O]), a(D), D;
2212
2213
  }
2213
2214
  function v(O) {
2214
2215
  var x = O.getSnapshot, L = O.value;
2215
2216
  try {
2216
- var k = x();
2217
- return !i(L, k);
2217
+ var D = x();
2218
+ return !i(L, D);
2218
2219
  } catch {
2219
2220
  return !0;
2220
2221
  }
@@ -2227,51 +2228,51 @@ function To() {
2227
2228
  }()), ln;
2228
2229
  }
2229
2230
  (function(n) {
2230
- process.env.NODE_ENV === "production" ? n.exports = Ro() : n.exports = To();
2231
+ process.env.NODE_ENV === "production" ? n.exports = To() : n.exports = Oo();
2231
2232
  })(os);
2232
2233
  const Le = () => {
2233
- }, oe = Le(), fn = Object, D = (n) => n === oe, ve = (n) => typeof n == "function", Fe = (n, e) => ({
2234
+ }, oe = Le(), fn = Object, k = (n) => n === oe, ve = (n) => typeof n == "function", Fe = (n, e) => ({
2234
2235
  ...n,
2235
2236
  ...e
2236
- }), Oo = (n) => ve(n.then), kt = /* @__PURE__ */ new WeakMap();
2237
- let xo = 0;
2238
- const pt = (n) => {
2237
+ }), xo = (n) => ve(n.then), Nt = /* @__PURE__ */ new WeakMap();
2238
+ let Ao = 0;
2239
+ const yt = (n) => {
2239
2240
  const e = typeof n, t = n && n.constructor, r = t == Date;
2240
2241
  let s, i;
2241
2242
  if (fn(n) === n && !r && t != RegExp) {
2242
- if (s = kt.get(n), s)
2243
+ if (s = Nt.get(n), s)
2243
2244
  return s;
2244
- if (s = ++xo + "~", kt.set(n, s), t == Array) {
2245
+ if (s = ++Ao + "~", Nt.set(n, s), t == Array) {
2245
2246
  for (s = "@", i = 0; i < n.length; i++)
2246
- s += pt(n[i]) + ",";
2247
- kt.set(n, s);
2247
+ s += yt(n[i]) + ",";
2248
+ Nt.set(n, s);
2248
2249
  }
2249
2250
  if (t == fn) {
2250
2251
  s = "#";
2251
2252
  const o = fn.keys(n).sort();
2252
- for (; !D(i = o.pop()); )
2253
- D(n[i]) || (s += i + ":" + pt(n[i]) + ",");
2254
- kt.set(n, s);
2253
+ for (; !k(i = o.pop()); )
2254
+ k(n[i]) || (s += i + ":" + yt(n[i]) + ",");
2255
+ Nt.set(n, s);
2255
2256
  }
2256
2257
  } else
2257
2258
  s = r ? n.toJSON() : e == "symbol" ? n.toString() : e == "string" ? JSON.stringify(n) : "" + n;
2258
2259
  return s;
2259
- }, Ae = /* @__PURE__ */ new WeakMap(), hn = {}, Nt = {}, Vn = "undefined", Xt = typeof window != Vn, Sn = typeof document != Vn, Ao = () => Xt && typeof window.requestAnimationFrame != Vn, as = (n, e) => {
2260
+ }, Ae = /* @__PURE__ */ new WeakMap(), hn = {}, Lt = {}, Vn = "undefined", Xt = typeof window != Vn, Sn = typeof document != Vn, Co = () => Xt && typeof window.requestAnimationFrame != Vn, as = (n, e) => {
2260
2261
  const t = Ae.get(n);
2261
2262
  return [
2262
- () => !D(e) && n.get(e) || hn,
2263
+ () => !k(e) && n.get(e) || hn,
2263
2264
  (r) => {
2264
- if (!D(e)) {
2265
+ if (!k(e)) {
2265
2266
  const s = n.get(e);
2266
- e in Nt || (Nt[e] = s), t[5](e, Fe(s, r), s || hn);
2267
+ e in Lt || (Lt[e] = s), t[5](e, Fe(s, r), s || hn);
2267
2268
  }
2268
2269
  },
2269
2270
  t[6],
2270
- () => !D(e) && e in Nt ? Nt[e] : !D(e) && n.get(e) || hn
2271
+ () => !k(e) && e in Lt ? Lt[e] : !k(e) && n.get(e) || hn
2271
2272
  ];
2272
2273
  };
2273
2274
  let Rn = !0;
2274
- const Co = () => Rn, [Tn, On] = Xt && window.addEventListener ? [
2275
+ const ko = () => Rn, [Tn, On] = Xt && window.addEventListener ? [
2275
2276
  window.addEventListener.bind(window),
2276
2277
  window.removeEventListener.bind(window)
2277
2278
  ] : [
@@ -2279,10 +2280,10 @@ const Co = () => Rn, [Tn, On] = Xt && window.addEventListener ? [
2279
2280
  Le
2280
2281
  ], Do = () => {
2281
2282
  const n = Sn && document.visibilityState;
2282
- return D(n) || n !== "hidden";
2283
- }, ko = (n) => (Sn && document.addEventListener("visibilitychange", n), Tn("focus", n), () => {
2283
+ return k(n) || n !== "hidden";
2284
+ }, No = (n) => (Sn && document.addEventListener("visibilitychange", n), Tn("focus", n), () => {
2284
2285
  Sn && document.removeEventListener("visibilitychange", n), On("focus", n);
2285
- }), No = (n) => {
2286
+ }), Lo = (n) => {
2286
2287
  const e = () => {
2287
2288
  Rn = !0, n();
2288
2289
  }, t = () => {
@@ -2291,13 +2292,13 @@ const Co = () => Rn, [Tn, On] = Xt && window.addEventListener ? [
2291
2292
  return Tn("online", e), Tn("offline", t), () => {
2292
2293
  On("online", e), On("offline", t);
2293
2294
  };
2294
- }, Lo = {
2295
- isOnline: Co,
2296
- isVisible: Do
2297
2295
  }, Fo = {
2298
- initFocus: ko,
2299
- initReconnect: No
2300
- }, wr = !Ve.useId, yt = !Xt || "Deno" in window, Po = (n) => Ao() ? window.requestAnimationFrame(n) : setTimeout(n, 1), dn = yt ? Qe : zs, pn = typeof navigator < "u" && navigator.connection, br = !yt && pn && ([
2296
+ isOnline: ko,
2297
+ isVisible: Do
2298
+ }, Po = {
2299
+ initFocus: No,
2300
+ initReconnect: Lo
2301
+ }, wr = !Me.useId, mt = !Xt || "Deno" in window, Bo = (n) => Co() ? window.requestAnimationFrame(n) : setTimeout(n, 1), dn = mt ? Ze : zs, pn = typeof navigator < "u" && navigator.connection, br = !mt && pn && ([
2301
2302
  "slow-2g",
2302
2303
  "2g"
2303
2304
  ].includes(pn.effectiveType) || pn.saveData), Mn = (n) => {
@@ -2308,16 +2309,16 @@ const Co = () => Rn, [Tn, On] = Xt && window.addEventListener ? [
2308
2309
  n = "";
2309
2310
  }
2310
2311
  const e = n;
2311
- return n = typeof n == "string" ? n : (Array.isArray(n) ? n.length : n) ? pt(n) : "", [
2312
+ return n = typeof n == "string" ? n : (Array.isArray(n) ? n.length : n) ? yt(n) : "", [
2312
2313
  n,
2313
2314
  e
2314
2315
  ];
2315
2316
  };
2316
- let Bo = 0;
2317
- const xn = () => ++Bo, cs = 0, us = 1, ls = 2, Uo = 3;
2318
- var ct = {
2317
+ let Uo = 0;
2318
+ const xn = () => ++Uo, cs = 0, us = 1, ls = 2, Io = 3;
2319
+ var ut = {
2319
2320
  __proto__: null,
2320
- ERROR_REVALIDATE_EVENT: Uo,
2321
+ ERROR_REVALIDATE_EVENT: Io,
2321
2322
  FOCUS_EVENT: cs,
2322
2323
  MUTATE_EVENT: ls,
2323
2324
  RECONNECT_EVENT: us
@@ -2350,13 +2351,13 @@ async function fs(...n) {
2350
2351
  };
2351
2352
  if (n.length < 3)
2352
2353
  return x();
2353
- let L = r, k;
2354
+ let L = r, D;
2354
2355
  const re = xn();
2355
2356
  b[v] = [
2356
2357
  re,
2357
2358
  0
2358
2359
  ];
2359
- const P = !D(l), W = p(), Q = W.data, pe = W._c, ye = D(pe) ? Q : pe;
2360
+ const P = !k(l), H = p(), Q = H.data, pe = H._c, ye = k(pe) ? Q : pe;
2360
2361
  if (P && (l = ve(l) ? l(ye, Q) : l, y({
2361
2362
  data: l,
2362
2363
  _c: ye
@@ -2364,21 +2365,21 @@ async function fs(...n) {
2364
2365
  try {
2365
2366
  L = L(ye);
2366
2367
  } catch (M) {
2367
- k = M;
2368
+ D = M;
2368
2369
  }
2369
- if (L && Oo(L))
2370
+ if (L && xo(L))
2370
2371
  if (L = await L.catch((M) => {
2371
- k = M;
2372
+ D = M;
2372
2373
  }), re !== b[v][0]) {
2373
- if (k)
2374
- throw k;
2374
+ if (D)
2375
+ throw D;
2375
2376
  return L;
2376
2377
  } else
2377
- k && P && a(k) && (o = !0, y({
2378
+ D && P && a(D) && (o = !0, y({
2378
2379
  data: ye,
2379
2380
  _c: oe
2380
2381
  }));
2381
- if (o && !k)
2382
+ if (o && !D)
2382
2383
  if (ve(o)) {
2383
2384
  const M = o(L, ye);
2384
2385
  y({
@@ -2396,9 +2397,9 @@ async function fs(...n) {
2396
2397
  y({
2397
2398
  _c: oe
2398
2399
  });
2399
- }), k) {
2400
+ }), D) {
2400
2401
  if (f)
2401
- throw k;
2402
+ throw D;
2402
2403
  return;
2403
2404
  }
2404
2405
  return L;
@@ -2407,9 +2408,9 @@ async function fs(...n) {
2407
2408
  const _r = (n, e) => {
2408
2409
  for (const t in n)
2409
2410
  n[t][0] && n[t][0](e);
2410
- }, Io = (n, e) => {
2411
+ }, jo = (n, e) => {
2411
2412
  if (!Ae.has(n)) {
2412
- const t = Fe(Fo, e), r = {}, s = fs.bind(oe, n);
2413
+ const t = Fe(Po, e), r = {}, s = fs.bind(oe, n);
2413
2414
  let i = Le;
2414
2415
  const o = {}, c = (f, h) => {
2415
2416
  const g = o[f] || [];
@@ -2429,7 +2430,7 @@ const _r = (n, e) => {
2429
2430
  s,
2430
2431
  l,
2431
2432
  c
2432
- ]), !yt)) {
2433
+ ]), !mt)) {
2433
2434
  const f = t.initFocus(setTimeout.bind(oe, _r.bind(oe, r, cs))), h = t.initReconnect(setTimeout.bind(oe, _r.bind(oe, r, us)));
2434
2435
  i = () => {
2435
2436
  f && f(), h && h(), Ae.delete(n);
@@ -2447,15 +2448,15 @@ const _r = (n, e) => {
2447
2448
  n,
2448
2449
  Ae.get(n)[4]
2449
2450
  ];
2450
- }, jo = (n, e, t, r, s) => {
2451
+ }, qo = (n, e, t, r, s) => {
2451
2452
  const i = t.errorRetryCount, o = s.retryCount, c = ~~((Math.random() + 0.5) * (1 << (o < 8 ? o : 8))) * t.errorRetryInterval;
2452
- !D(i) && o > i || setTimeout(r, c, s);
2453
- }, qo = (n, e) => pt(n) == pt(e), [hs, Vo] = Io(/* @__PURE__ */ new Map()), Mo = Fe(
2453
+ !k(i) && o > i || setTimeout(r, c, s);
2454
+ }, Vo = (n, e) => yt(n) == yt(e), [hs, Mo] = jo(/* @__PURE__ */ new Map()), $o = Fe(
2454
2455
  {
2455
2456
  onLoadingSlow: Le,
2456
2457
  onSuccess: Le,
2457
2458
  onError: Le,
2458
- onErrorRetry: jo,
2459
+ onErrorRetry: qo,
2459
2460
  onDiscarded: Le,
2460
2461
  revalidateOnFocus: !0,
2461
2462
  revalidateOnReconnect: !0,
@@ -2465,23 +2466,23 @@ const _r = (n, e) => {
2465
2466
  focusThrottleInterval: 5 * 1e3,
2466
2467
  dedupingInterval: 2 * 1e3,
2467
2468
  loadingTimeout: br ? 5e3 : 3e3,
2468
- compare: qo,
2469
+ compare: Vo,
2469
2470
  isPaused: () => !1,
2470
2471
  cache: hs,
2471
- mutate: Vo,
2472
+ mutate: Mo,
2472
2473
  fallback: {}
2473
2474
  },
2474
- Lo
2475
- ), $o = (n, e) => {
2475
+ Fo
2476
+ ), Ho = (n, e) => {
2476
2477
  const t = Fe(n, e);
2477
2478
  if (e) {
2478
2479
  const { use: r, fallback: s } = n, { use: i, fallback: o } = e;
2479
2480
  r && i && (t.use = r.concat(i)), s && o && (t.fallback = Fe(s, o));
2480
2481
  }
2481
2482
  return t;
2482
- }, Wo = Pr({}), Ho = "$inf$", ds = Xt && window.__SWR_DEVTOOLS_USE__, Jo = ds ? window.__SWR_DEVTOOLS_USE__ : [], zo = () => {
2483
- ds && (window.__SWR_DEVTOOLS_REACT__ = Ve);
2484
- }, Ko = (n) => ve(n[1]) ? [
2483
+ }, Wo = Pr({}), Jo = "$inf$", ds = Xt && window.__SWR_DEVTOOLS_USE__, zo = ds ? window.__SWR_DEVTOOLS_USE__ : [], Ko = () => {
2484
+ ds && (window.__SWR_DEVTOOLS_REACT__ = Me);
2485
+ }, Yo = (n) => ve(n[1]) ? [
2485
2486
  n[0],
2486
2487
  n[1],
2487
2488
  n[2] || {}
@@ -2489,28 +2490,28 @@ const _r = (n, e) => {
2489
2490
  n[0],
2490
2491
  null,
2491
2492
  (n[1] === null ? n[2] : n[1]) || {}
2492
- ], Yo = () => Fe(Mo, Z(Wo)), Go = (n) => (e, t, r) => n(e, t && ((...i) => {
2493
+ ], Go = () => Fe($o, Z(Wo)), Xo = (n) => (e, t, r) => n(e, t && ((...i) => {
2493
2494
  const [o] = Mn(e), [, , , c] = Ae.get(hs);
2494
- if (o.startsWith(Ho))
2495
+ if (o.startsWith(Jo))
2495
2496
  return t(...i);
2496
2497
  const l = c[o];
2497
- return D(l) ? t(...i) : (delete c[o], l);
2498
- }), r), Xo = Jo.concat(Go), Qo = (n) => function(...t) {
2499
- const r = Yo(), [s, i, o] = Ko(t), c = $o(r, o);
2498
+ return k(l) ? t(...i) : (delete c[o], l);
2499
+ }), r), Qo = zo.concat(Xo), Zo = (n) => function(...t) {
2500
+ const r = Go(), [s, i, o] = Yo(t), c = Ho(r, o);
2500
2501
  let l = n;
2501
- const { use: a } = c, f = (a || []).concat(Xo);
2502
+ const { use: a } = c, f = (a || []).concat(Qo);
2502
2503
  for (let h = f.length; h--; )
2503
2504
  l = f[h](l);
2504
2505
  return l(s, i || c.fetcher || null, c);
2505
- }, Zo = (n, e, t) => {
2506
+ }, ea = (n, e, t) => {
2506
2507
  const r = e[n] || (e[n] = []);
2507
2508
  return r.push(t), () => {
2508
2509
  const s = r.indexOf(t);
2509
2510
  s >= 0 && (r[s] = r[r.length - 1], r.pop());
2510
2511
  };
2511
2512
  };
2512
- zo();
2513
- const Er = Ve.use || ((n) => {
2513
+ Ko();
2514
+ const Er = Me.use || ((n) => {
2514
2515
  if (n.status === "pending")
2515
2516
  throw n;
2516
2517
  if (n.status === "fulfilled")
@@ -2522,19 +2523,19 @@ const Er = Ve.use || ((n) => {
2522
2523
  }), n);
2523
2524
  }), yn = {
2524
2525
  dedupe: !0
2525
- }, ea = (n, e, t) => {
2526
- const { cache: r, compare: s, suspense: i, fallbackData: o, revalidateOnMount: c, revalidateIfStale: l, refreshInterval: a, refreshWhenHidden: f, refreshWhenOffline: h, keepPreviousData: g } = t, [v, p, y, E] = Ae.get(r), [b, R] = Mn(n), O = Ie(!1), x = Ie(!1), L = Ie(b), k = Ie(e), re = Ie(t), P = () => re.current, W = () => P().isVisible() && P().isOnline(), [Q, pe, ye, M] = as(r, b), se = Ie({}).current, Pe = D(o) ? t.fallback[b] : o, tt = (B, I) => {
2526
+ }, ta = (n, e, t) => {
2527
+ const { cache: r, compare: s, suspense: i, fallbackData: o, revalidateOnMount: c, revalidateIfStale: l, refreshInterval: a, refreshWhenHidden: f, refreshWhenOffline: h, keepPreviousData: g } = t, [v, p, y, E] = Ae.get(r), [b, R] = Mn(n), O = Ie(!1), x = Ie(!1), L = Ie(b), D = Ie(e), re = Ie(t), P = () => re.current, H = () => P().isVisible() && P().isOnline(), [Q, pe, ye, M] = as(r, b), se = Ie({}).current, Pe = k(o) ? t.fallback[b] : o, nt = (B, I) => {
2527
2528
  for (const X in se) {
2528
2529
  const q = X;
2529
2530
  if (q === "data") {
2530
- if (!s(B[q], I[q]) && (!D(B[q]) || !s(Me, I[q])))
2531
+ if (!s(B[q], I[q]) && (!k(B[q]) || !s($e, I[q])))
2531
2532
  return !1;
2532
2533
  } else if (I[q] !== B[q])
2533
2534
  return !1;
2534
2535
  }
2535
2536
  return !0;
2536
- }, nt = Br(() => {
2537
- const B = (() => !b || !e ? !1 : D(c) ? P().isPaused() || i ? !1 : D(l) ? !0 : l : c)(), I = (J) => {
2537
+ }, rt = Br(() => {
2538
+ const B = (() => !b || !e ? !1 : k(c) ? P().isPaused() || i ? !1 : k(l) ? !0 : l : c)(), I = (J) => {
2538
2539
  const he = Fe(J);
2539
2540
  return delete he._k, B ? {
2540
2541
  isValidating: !0,
@@ -2542,11 +2543,11 @@ const Er = Ve.use || ((n) => {
2542
2543
  ...he
2543
2544
  } : he;
2544
2545
  }, X = Q(), q = M(), te = I(X), Oe = X === q ? te : I(q);
2545
- let H = te;
2546
+ let W = te;
2546
2547
  return [
2547
2548
  () => {
2548
2549
  const J = I(Q());
2549
- return tt(J, H) ? (H.data = J.data, H.isLoading = J.isLoading, H.isValidating = J.isValidating, H.error = J.error, H) : (H = J, J);
2550
+ return nt(J, W) ? (W.data = J.data, W.isLoading = J.isLoading, W.isValidating = J.isValidating, W.error = J.error, W) : (W = J, J);
2550
2551
  },
2551
2552
  () => Oe
2552
2553
  ];
@@ -2555,88 +2556,88 @@ const Er = Ve.use || ((n) => {
2555
2556
  b
2556
2557
  ]), Se = os.exports.useSyncExternalStore(V(
2557
2558
  (B) => ye(b, (I, X) => {
2558
- tt(X, I) || B();
2559
+ nt(X, I) || B();
2559
2560
  }),
2560
2561
  [
2561
2562
  r,
2562
2563
  b
2563
2564
  ]
2564
- ), nt[0], nt[1]), rt = !O.current, Et = v[b] && v[b].length > 0, Re = Se.data, Te = D(Re) ? Pe : Re, Be = Se.error, St = Ie(Te), Me = g ? D(Re) ? St.current : Re : Te, $e = (() => Et && !D(Be) ? !1 : rt && !D(c) ? c : P().isPaused() ? !1 : i ? D(Te) ? !1 : l : D(Te) || l)(), We = !!(b && e && rt && $e), He = D(Se.isValidating) ? We : Se.isValidating, st = D(Se.isLoading) ? We : Se.isLoading, me = V(
2565
+ ), rt[0], rt[1]), st = !O.current, St = v[b] && v[b].length > 0, Re = Se.data, Te = k(Re) ? Pe : Re, Be = Se.error, Rt = Ie(Te), $e = g ? k(Re) ? Rt.current : Re : Te, He = (() => St && !k(Be) ? !1 : st && !k(c) ? c : P().isPaused() ? !1 : i ? k(Te) ? !1 : l : k(Te) || l)(), We = !!(b && e && st && He), Je = k(Se.isValidating) ? We : Se.isValidating, it = k(Se.isLoading) ? We : Se.isLoading, me = V(
2565
2566
  async (B) => {
2566
- const I = k.current;
2567
+ const I = D.current;
2567
2568
  if (!b || !I || x.current || P().isPaused())
2568
2569
  return !1;
2569
2570
  let X, q, te = !0;
2570
- const Oe = B || {}, H = !y[b] || !Oe.dedupe, J = () => wr ? !x.current && b === L.current && O.current : b === L.current, he = {
2571
+ const Oe = B || {}, W = !y[b] || !Oe.dedupe, J = () => wr ? !x.current && b === L.current && O.current : b === L.current, he = {
2571
2572
  isValidating: !1,
2572
2573
  isLoading: !1
2573
- }, Tt = () => {
2574
+ }, Ot = () => {
2574
2575
  pe(he);
2575
- }, Je = () => {
2576
+ }, ze = () => {
2576
2577
  const ie = y[b];
2577
2578
  ie && ie[1] === q && delete y[b];
2578
- }, Ot = {
2579
+ }, xt = {
2579
2580
  isValidating: !0
2580
2581
  };
2581
- D(Q().data) && (Ot.isLoading = !0);
2582
+ k(Q().data) && (xt.isLoading = !0);
2582
2583
  try {
2583
- if (H && (pe(Ot), t.loadingTimeout && D(Q().data) && setTimeout(() => {
2584
+ if (W && (pe(xt), t.loadingTimeout && k(Q().data) && setTimeout(() => {
2584
2585
  te && J() && P().onLoadingSlow(b, t);
2585
2586
  }, t.loadingTimeout), y[b] = [
2586
2587
  I(R),
2587
2588
  xn()
2588
- ]), [X, q] = y[b], X = await X, H && setTimeout(Je, t.dedupingInterval), !y[b] || y[b][1] !== q)
2589
- return H && J() && P().onDiscarded(b), !1;
2589
+ ]), [X, q] = y[b], X = await X, W && setTimeout(ze, t.dedupingInterval), !y[b] || y[b][1] !== q)
2590
+ return W && J() && P().onDiscarded(b), !1;
2590
2591
  he.error = oe;
2591
2592
  const ie = p[b];
2592
- if (!D(ie) && (q <= ie[0] || q <= ie[1] || ie[1] === 0))
2593
- return Tt(), H && J() && P().onDiscarded(b), !1;
2593
+ if (!k(ie) && (q <= ie[0] || q <= ie[1] || ie[1] === 0))
2594
+ return Ot(), W && J() && P().onDiscarded(b), !1;
2594
2595
  const ae = Q().data;
2595
- he.data = s(ae, X) ? ae : X, H && J() && P().onSuccess(X, b, t);
2596
+ he.data = s(ae, X) ? ae : X, W && J() && P().onSuccess(X, b, t);
2596
2597
  } catch (ie) {
2597
- Je();
2598
- const ae = P(), { shouldRetryOnError: ze } = ae;
2599
- ae.isPaused() || (he.error = ie, H && J() && (ae.onError(ie, b, ae), (ze === !0 || ve(ze) && ze(ie)) && (!P().revalidateOnFocus || !P().revalidateOnReconnect || W()) && ae.onErrorRetry(ie, b, ae, (Ue) => {
2600
- const it = v[b];
2601
- it && it[0] && it[0](ct.ERROR_REVALIDATE_EVENT, Ue);
2598
+ ze();
2599
+ const ae = P(), { shouldRetryOnError: Ke } = ae;
2600
+ ae.isPaused() || (he.error = ie, W && J() && (ae.onError(ie, b, ae), (Ke === !0 || ve(Ke) && Ke(ie)) && (!P().revalidateOnFocus || !P().revalidateOnReconnect || H()) && ae.onErrorRetry(ie, b, ae, (Ue) => {
2601
+ const ot = v[b];
2602
+ ot && ot[0] && ot[0](ut.ERROR_REVALIDATE_EVENT, Ue);
2602
2603
  }, {
2603
2604
  retryCount: (Oe.retryCount || 0) + 1,
2604
2605
  dedupe: !0
2605
2606
  })));
2606
2607
  }
2607
- return te = !1, Tt(), !0;
2608
+ return te = !1, Ot(), !0;
2608
2609
  },
2609
2610
  [
2610
2611
  b,
2611
2612
  r
2612
2613
  ]
2613
- ), Rt = V(
2614
+ ), Tt = V(
2614
2615
  (...B) => fs(r, L.current, ...B),
2615
2616
  []
2616
2617
  );
2617
2618
  if (dn(() => {
2618
- k.current = e, re.current = t, D(Re) || (St.current = Re);
2619
+ D.current = e, re.current = t, k(Re) || (Rt.current = Re);
2619
2620
  }), dn(() => {
2620
2621
  if (!b)
2621
2622
  return;
2622
2623
  const B = me.bind(oe, yn);
2623
2624
  let I = 0;
2624
- const q = Zo(b, v, (te, Oe = {}) => {
2625
- if (te == ct.FOCUS_EVENT) {
2626
- const H = Date.now();
2627
- P().revalidateOnFocus && H > I && W() && (I = H + P().focusThrottleInterval, B());
2628
- } else if (te == ct.RECONNECT_EVENT)
2629
- P().revalidateOnReconnect && W() && B();
2625
+ const q = ea(b, v, (te, Oe = {}) => {
2626
+ if (te == ut.FOCUS_EVENT) {
2627
+ const W = Date.now();
2628
+ P().revalidateOnFocus && W > I && H() && (I = W + P().focusThrottleInterval, B());
2629
+ } else if (te == ut.RECONNECT_EVENT)
2630
+ P().revalidateOnReconnect && H() && B();
2630
2631
  else {
2631
- if (te == ct.MUTATE_EVENT)
2632
+ if (te == ut.MUTATE_EVENT)
2632
2633
  return me();
2633
- if (te == ct.ERROR_REVALIDATE_EVENT)
2634
+ if (te == ut.ERROR_REVALIDATE_EVENT)
2634
2635
  return me(Oe);
2635
2636
  }
2636
2637
  });
2637
2638
  return x.current = !1, L.current = b, O.current = !0, pe({
2638
2639
  _k: R
2639
- }), $e && (D(Te) || yt ? B() : Po(B)), () => {
2640
+ }), He && (k(Te) || mt ? B() : Bo(B)), () => {
2640
2641
  x.current = !0, q();
2641
2642
  };
2642
2643
  }, [
@@ -2658,37 +2659,37 @@ const Er = Ve.use || ((n) => {
2658
2659
  f,
2659
2660
  h,
2660
2661
  b
2661
- ]), Ks(Me), i && D(Te) && b) {
2662
- if (!wr && yt)
2662
+ ]), Ks($e), i && k(Te) && b) {
2663
+ if (!wr && mt)
2663
2664
  throw new Error("Fallback data is required when using suspense in SSR.");
2664
- k.current = e, re.current = t, x.current = !1;
2665
+ D.current = e, re.current = t, x.current = !1;
2665
2666
  const B = E[b];
2666
- if (!D(B)) {
2667
- const I = Rt(B);
2667
+ if (!k(B)) {
2668
+ const I = Tt(B);
2668
2669
  Er(I);
2669
2670
  }
2670
- if (D(Be)) {
2671
+ if (k(Be)) {
2671
2672
  const I = me(yn);
2672
- D(Me) || (I.status = "fulfilled", I.value = !0), Er(I);
2673
+ k($e) || (I.status = "fulfilled", I.value = !0), Er(I);
2673
2674
  } else
2674
2675
  throw Be;
2675
2676
  }
2676
2677
  return {
2677
- mutate: Rt,
2678
+ mutate: Tt,
2678
2679
  get data() {
2679
- return se.data = !0, Me;
2680
+ return se.data = !0, $e;
2680
2681
  },
2681
2682
  get error() {
2682
2683
  return se.error = !0, Be;
2683
2684
  },
2684
2685
  get isValidating() {
2685
- return se.isValidating = !0, He;
2686
+ return se.isValidating = !0, Je;
2686
2687
  },
2687
2688
  get isLoading() {
2688
- return se.isLoading = !0, st;
2689
+ return se.isLoading = !0, it;
2689
2690
  }
2690
2691
  };
2691
- }, _t = Qo(ea), _e = /* @__PURE__ */ Object.create(null);
2692
+ }, Et = Zo(ta), _e = /* @__PURE__ */ Object.create(null);
2692
2693
  _e.open = "0";
2693
2694
  _e.close = "1";
2694
2695
  _e.ping = "2";
@@ -2696,9 +2697,9 @@ _e.pong = "3";
2696
2697
  _e.message = "4";
2697
2698
  _e.upgrade = "5";
2698
2699
  _e.noop = "6";
2699
- const qt = /* @__PURE__ */ Object.create(null);
2700
+ const Vt = /* @__PURE__ */ Object.create(null);
2700
2701
  Object.keys(_e).forEach((n) => {
2701
- qt[_e[n]] = n;
2702
+ Vt[_e[n]] = n;
2702
2703
  });
2703
2704
  const An = { type: "error", data: "parser error" }, ps = typeof Blob == "function" || typeof Blob < "u" && Object.prototype.toString.call(Blob) === "[object BlobConstructor]", ys = typeof ArrayBuffer == "function", ms = (n) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(n) : n && n.buffer instanceof ArrayBuffer, $n = ({ type: n, data: e }, t, r) => ps && e instanceof Blob ? t ? r(e) : Sr(e, r) : ys && (e instanceof ArrayBuffer || ms(e)) ? t ? r(e) : Sr(new Blob([e]), r) : r(_e[n] + (e || "")), Sr = (n, e) => {
2704
2705
  const t = new FileReader();
@@ -2711,7 +2712,7 @@ function Rr(n) {
2711
2712
  return n instanceof Uint8Array ? n : n instanceof ArrayBuffer ? new Uint8Array(n) : new Uint8Array(n.buffer, n.byteOffset, n.byteLength);
2712
2713
  }
2713
2714
  let mn;
2714
- function ta(n, e) {
2715
+ function na(n, e) {
2715
2716
  if (ps && n.data instanceof Blob)
2716
2717
  return n.data.arrayBuffer().then(Rr).then(e);
2717
2718
  if (ys && (n.data instanceof ArrayBuffer || ms(n.data)))
@@ -2720,17 +2721,17 @@ function ta(n, e) {
2720
2721
  mn || (mn = new TextEncoder()), e(mn.encode(t));
2721
2722
  });
2722
2723
  }
2723
- const Tr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", ht = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
2724
+ const Tr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", dt = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
2724
2725
  for (let n = 0; n < Tr.length; n++)
2725
- ht[Tr.charCodeAt(n)] = n;
2726
- const na = (n) => {
2726
+ dt[Tr.charCodeAt(n)] = n;
2727
+ const ra = (n) => {
2727
2728
  let e = n.length * 0.75, t = n.length, r, s = 0, i, o, c, l;
2728
2729
  n[n.length - 1] === "=" && (e--, n[n.length - 2] === "=" && e--);
2729
2730
  const a = new ArrayBuffer(e), f = new Uint8Array(a);
2730
2731
  for (r = 0; r < t; r += 4)
2731
- i = ht[n.charCodeAt(r)], o = ht[n.charCodeAt(r + 1)], c = ht[n.charCodeAt(r + 2)], l = ht[n.charCodeAt(r + 3)], f[s++] = i << 2 | o >> 4, f[s++] = (o & 15) << 4 | c >> 2, f[s++] = (c & 3) << 6 | l & 63;
2732
+ i = dt[n.charCodeAt(r)], o = dt[n.charCodeAt(r + 1)], c = dt[n.charCodeAt(r + 2)], l = dt[n.charCodeAt(r + 3)], f[s++] = i << 2 | o >> 4, f[s++] = (o & 15) << 4 | c >> 2, f[s++] = (c & 3) << 6 | l & 63;
2732
2733
  return a;
2733
- }, ra = typeof ArrayBuffer == "function", Wn = (n, e) => {
2734
+ }, sa = typeof ArrayBuffer == "function", Hn = (n, e) => {
2734
2735
  if (typeof n != "string")
2735
2736
  return {
2736
2737
  type: "message",
@@ -2739,16 +2740,16 @@ const na = (n) => {
2739
2740
  const t = n.charAt(0);
2740
2741
  return t === "b" ? {
2741
2742
  type: "message",
2742
- data: sa(n.substring(1), e)
2743
- } : qt[t] ? n.length > 1 ? {
2744
- type: qt[t],
2743
+ data: ia(n.substring(1), e)
2744
+ } : Vt[t] ? n.length > 1 ? {
2745
+ type: Vt[t],
2745
2746
  data: n.substring(1)
2746
2747
  } : {
2747
- type: qt[t]
2748
+ type: Vt[t]
2748
2749
  } : An;
2749
- }, sa = (n, e) => {
2750
- if (ra) {
2751
- const t = na(n);
2750
+ }, ia = (n, e) => {
2751
+ if (sa) {
2752
+ const t = ra(n);
2752
2753
  return gs(t, e);
2753
2754
  } else
2754
2755
  return { base64: !0, data: n };
@@ -2760,7 +2761,7 @@ const na = (n) => {
2760
2761
  default:
2761
2762
  return n instanceof ArrayBuffer ? n : n.buffer;
2762
2763
  }
2763
- }, vs = String.fromCharCode(30), ia = (n, e) => {
2764
+ }, vs = String.fromCharCode(30), oa = (n, e) => {
2764
2765
  const t = n.length, r = new Array(t);
2765
2766
  let s = 0;
2766
2767
  n.forEach((i, o) => {
@@ -2768,19 +2769,19 @@ const na = (n) => {
2768
2769
  r[o] = c, ++s === t && e(r.join(vs));
2769
2770
  });
2770
2771
  });
2771
- }, oa = (n, e) => {
2772
+ }, aa = (n, e) => {
2772
2773
  const t = n.split(vs), r = [];
2773
2774
  for (let s = 0; s < t.length; s++) {
2774
- const i = Wn(t[s], e);
2775
+ const i = Hn(t[s], e);
2775
2776
  if (r.push(i), i.type === "error")
2776
2777
  break;
2777
2778
  }
2778
2779
  return r;
2779
2780
  };
2780
- function aa() {
2781
+ function ca() {
2781
2782
  return new TransformStream({
2782
2783
  transform(n, e) {
2783
- ta(n, (t) => {
2784
+ na(n, (t) => {
2784
2785
  const r = t.length;
2785
2786
  let s;
2786
2787
  if (r < 126)
@@ -2800,10 +2801,10 @@ function aa() {
2800
2801
  });
2801
2802
  }
2802
2803
  let gn;
2803
- function Lt(n) {
2804
+ function Ft(n) {
2804
2805
  return n.reduce((e, t) => e + t.length, 0);
2805
2806
  }
2806
- function Ft(n, e) {
2807
+ function Pt(n, e) {
2807
2808
  if (n[0].length === e)
2808
2809
  return n.shift();
2809
2810
  const t = new Uint8Array(e);
@@ -2812,7 +2813,7 @@ function Ft(n, e) {
2812
2813
  t[s] = n[0][r++], r === n[0].length && (n.shift(), r = 0);
2813
2814
  return n.length && r < n[0].length && (n[0] = n[0].slice(r)), t;
2814
2815
  }
2815
- function ca(n, e) {
2816
+ function ua(n, e) {
2816
2817
  gn || (gn = new TextDecoder());
2817
2818
  const t = [];
2818
2819
  let r = 0, s = -1, i = !1;
@@ -2820,29 +2821,29 @@ function ca(n, e) {
2820
2821
  transform(o, c) {
2821
2822
  for (t.push(o); ; ) {
2822
2823
  if (r === 0) {
2823
- if (Lt(t) < 1)
2824
+ if (Ft(t) < 1)
2824
2825
  break;
2825
- const l = Ft(t, 1);
2826
+ const l = Pt(t, 1);
2826
2827
  i = (l[0] & 128) === 128, s = l[0] & 127, s < 126 ? r = 3 : s === 126 ? r = 1 : r = 2;
2827
2828
  } else if (r === 1) {
2828
- if (Lt(t) < 2)
2829
+ if (Ft(t) < 2)
2829
2830
  break;
2830
- const l = Ft(t, 2);
2831
+ const l = Pt(t, 2);
2831
2832
  s = new DataView(l.buffer, l.byteOffset, l.length).getUint16(0), r = 3;
2832
2833
  } else if (r === 2) {
2833
- if (Lt(t) < 8)
2834
+ if (Ft(t) < 8)
2834
2835
  break;
2835
- const l = Ft(t, 8), a = new DataView(l.buffer, l.byteOffset, l.length), f = a.getUint32(0);
2836
+ const l = Pt(t, 8), a = new DataView(l.buffer, l.byteOffset, l.length), f = a.getUint32(0);
2836
2837
  if (f > Math.pow(2, 53 - 32) - 1) {
2837
2838
  c.enqueue(An);
2838
2839
  break;
2839
2840
  }
2840
2841
  s = f * Math.pow(2, 32) + a.getUint32(4), r = 3;
2841
2842
  } else {
2842
- if (Lt(t) < s)
2843
+ if (Ft(t) < s)
2843
2844
  break;
2844
- const l = Ft(t, s);
2845
- c.enqueue(Wn(i ? l : gn.decode(l), e)), r = 0;
2845
+ const l = Pt(t, s);
2846
+ c.enqueue(Hn(i ? l : gn.decode(l), e)), r = 0;
2846
2847
  }
2847
2848
  if (s === 0 || s > n) {
2848
2849
  c.enqueue(An);
@@ -2855,9 +2856,9 @@ function ca(n, e) {
2855
2856
  const ws = 4;
2856
2857
  function Y(n) {
2857
2858
  if (n)
2858
- return ua(n);
2859
+ return la(n);
2859
2860
  }
2860
- function ua(n) {
2861
+ function la(n) {
2861
2862
  for (var e in Y.prototype)
2862
2863
  n[e] = Y.prototype[e];
2863
2864
  return n;
@@ -2908,27 +2909,27 @@ const le = (() => typeof self < "u" ? self : typeof window < "u" ? window : Func
2908
2909
  function bs(n, ...e) {
2909
2910
  return e.reduce((t, r) => (n.hasOwnProperty(r) && (t[r] = n[r]), t), {});
2910
2911
  }
2911
- const la = le.setTimeout, fa = le.clearTimeout;
2912
+ const fa = le.setTimeout, ha = le.clearTimeout;
2912
2913
  function Qt(n, e) {
2913
- e.useNativeTimers ? (n.setTimeoutFn = la.bind(le), n.clearTimeoutFn = fa.bind(le)) : (n.setTimeoutFn = le.setTimeout.bind(le), n.clearTimeoutFn = le.clearTimeout.bind(le));
2914
- }
2915
- const ha = 1.33;
2916
- function da(n) {
2917
- return typeof n == "string" ? pa(n) : Math.ceil((n.byteLength || n.size) * ha);
2914
+ e.useNativeTimers ? (n.setTimeoutFn = fa.bind(le), n.clearTimeoutFn = ha.bind(le)) : (n.setTimeoutFn = le.setTimeout.bind(le), n.clearTimeoutFn = le.clearTimeout.bind(le));
2918
2915
  }
2916
+ const da = 1.33;
2919
2917
  function pa(n) {
2918
+ return typeof n == "string" ? ya(n) : Math.ceil((n.byteLength || n.size) * da);
2919
+ }
2920
+ function ya(n) {
2920
2921
  let e = 0, t = 0;
2921
2922
  for (let r = 0, s = n.length; r < s; r++)
2922
2923
  e = n.charCodeAt(r), e < 128 ? t += 1 : e < 2048 ? t += 2 : e < 55296 || e >= 57344 ? t += 3 : (r++, t += 4);
2923
2924
  return t;
2924
2925
  }
2925
- function ya(n) {
2926
+ function ma(n) {
2926
2927
  let e = "";
2927
2928
  for (let t in n)
2928
2929
  n.hasOwnProperty(t) && (e.length && (e += "&"), e += encodeURIComponent(t) + "=" + encodeURIComponent(n[t]));
2929
2930
  return e;
2930
2931
  }
2931
- function ma(n) {
2932
+ function ga(n) {
2932
2933
  let e = {}, t = n.split("&");
2933
2934
  for (let r = 0, s = t.length; r < s; r++) {
2934
2935
  let i = t[r].split("=");
@@ -2936,17 +2937,17 @@ function ma(n) {
2936
2937
  }
2937
2938
  return e;
2938
2939
  }
2939
- class ga extends Error {
2940
+ class va extends Error {
2940
2941
  constructor(e, t, r) {
2941
2942
  super(e), this.description = t, this.context = r, this.type = "TransportError";
2942
2943
  }
2943
2944
  }
2944
- class Hn extends Y {
2945
+ class Wn extends Y {
2945
2946
  constructor(e) {
2946
2947
  super(), this.writable = !1, Qt(this, e), this.opts = e, this.query = e.query, this.socket = e.socket;
2947
2948
  }
2948
2949
  onError(e, t, r) {
2949
- return super.emitReserved("error", new ga(e, t, r)), this;
2950
+ return super.emitReserved("error", new va(e, t, r)), this;
2950
2951
  }
2951
2952
  open() {
2952
2953
  return this.readyState = "opening", this.doOpen(), this;
@@ -2961,7 +2962,7 @@ class Hn extends Y {
2961
2962
  this.readyState = "open", this.writable = !0, super.emitReserved("open");
2962
2963
  }
2963
2964
  onData(e) {
2964
- const t = Wn(e, this.socket.binaryType);
2965
+ const t = Hn(e, this.socket.binaryType);
2965
2966
  this.onPacket(t);
2966
2967
  }
2967
2968
  onPacket(e) {
@@ -2983,12 +2984,12 @@ class Hn extends Y {
2983
2984
  return this.opts.port && (this.opts.secure && Number(this.opts.port !== 443) || !this.opts.secure && Number(this.opts.port) !== 80) ? ":" + this.opts.port : "";
2984
2985
  }
2985
2986
  _query(e) {
2986
- const t = ya(e);
2987
+ const t = ma(e);
2987
2988
  return t.length ? "?" + t : "";
2988
2989
  }
2989
2990
  }
2990
- const _s = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""), Cn = 64, va = {};
2991
- let Or = 0, Pt = 0, xr;
2991
+ const _s = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""), Cn = 64, wa = {};
2992
+ let Or = 0, Bt = 0, xr;
2992
2993
  function Ar(n) {
2993
2994
  let e = "";
2994
2995
  do
@@ -3000,18 +3001,18 @@ function Es() {
3000
3001
  const n = Ar(+new Date());
3001
3002
  return n !== xr ? (Or = 0, xr = n) : n + "." + Ar(Or++);
3002
3003
  }
3003
- for (; Pt < Cn; Pt++)
3004
- va[_s[Pt]] = Pt;
3004
+ for (; Bt < Cn; Bt++)
3005
+ wa[_s[Bt]] = Bt;
3005
3006
  let Ss = !1;
3006
3007
  try {
3007
3008
  Ss = typeof XMLHttpRequest < "u" && "withCredentials" in new XMLHttpRequest();
3008
3009
  } catch {
3009
3010
  }
3010
- const wa = Ss;
3011
+ const ba = Ss;
3011
3012
  function Rs(n) {
3012
3013
  const e = n.xdomain;
3013
3014
  try {
3014
- if (typeof XMLHttpRequest < "u" && (!e || wa))
3015
+ if (typeof XMLHttpRequest < "u" && (!e || ba))
3015
3016
  return new XMLHttpRequest();
3016
3017
  } catch {
3017
3018
  }
@@ -3021,14 +3022,14 @@ function Rs(n) {
3021
3022
  } catch {
3022
3023
  }
3023
3024
  }
3024
- function ba() {
3025
+ function _a() {
3025
3026
  }
3026
- const _a = function() {
3027
+ const Ea = function() {
3027
3028
  return new Rs({
3028
3029
  xdomain: !1
3029
3030
  }).responseType != null;
3030
3031
  }();
3031
- class Ea extends Hn {
3032
+ class Sa extends Wn {
3032
3033
  constructor(e) {
3033
3034
  if (super(e), this.polling = !1, typeof location < "u") {
3034
3035
  const r = location.protocol === "https:";
@@ -3036,7 +3037,7 @@ class Ea extends Hn {
3036
3037
  s || (s = r ? "443" : "80"), this.xd = typeof location < "u" && e.hostname !== location.hostname || s !== e.port;
3037
3038
  }
3038
3039
  const t = e && e.forceBase64;
3039
- this.supportsBinary = _a && !t, this.opts.withCredentials && (this.cookieJar = void 0);
3040
+ this.supportsBinary = Ea && !t, this.opts.withCredentials && (this.cookieJar = void 0);
3040
3041
  }
3041
3042
  get name() {
3042
3043
  return "polling";
@@ -3068,7 +3069,7 @@ class Ea extends Hn {
3068
3069
  return this.onClose({ description: "transport closed by the server" }), !1;
3069
3070
  this.onPacket(r);
3070
3071
  };
3071
- oa(e, this.socket.binaryType).forEach(t), this.readyState !== "closed" && (this.polling = !1, this.emitReserved("pollComplete"), this.readyState === "open" && this.poll());
3072
+ aa(e, this.socket.binaryType).forEach(t), this.readyState !== "closed" && (this.polling = !1, this.emitReserved("pollComplete"), this.readyState === "open" && this.poll());
3072
3073
  }
3073
3074
  doClose() {
3074
3075
  const e = () => {
@@ -3077,7 +3078,7 @@ class Ea extends Hn {
3077
3078
  this.readyState === "open" ? e() : this.once("open", e);
3078
3079
  }
3079
3080
  write(e) {
3080
- this.writable = !1, ia(e, (t) => {
3081
+ this.writable = !1, oa(e, (t) => {
3081
3082
  this.doWrite(t, () => {
3082
3083
  this.writable = !0, this.emitReserved("drain");
3083
3084
  });
@@ -3153,7 +3154,7 @@ class be extends Y {
3153
3154
  }
3154
3155
  cleanup(e) {
3155
3156
  if (!(typeof this.xhr > "u" || this.xhr === null)) {
3156
- if (this.xhr.onreadystatechange = ba, e)
3157
+ if (this.xhr.onreadystatechange = _a, e)
3157
3158
  try {
3158
3159
  this.xhr.abort();
3159
3160
  } catch {
@@ -3183,8 +3184,8 @@ function Cr() {
3183
3184
  for (let n in be.requests)
3184
3185
  be.requests.hasOwnProperty(n) && be.requests[n].abort();
3185
3186
  }
3186
- const Jn = (() => typeof Promise == "function" && typeof Promise.resolve == "function" ? (e) => Promise.resolve().then(e) : (e, t) => t(e, 0))(), Bt = le.WebSocket || le.MozWebSocket, Dr = !0, Sa = "arraybuffer", kr = typeof navigator < "u" && typeof navigator.product == "string" && navigator.product.toLowerCase() === "reactnative";
3187
- class Ra extends Hn {
3187
+ const Jn = (() => typeof Promise == "function" && typeof Promise.resolve == "function" ? (e) => Promise.resolve().then(e) : (e, t) => t(e, 0))(), Ut = le.WebSocket || le.MozWebSocket, kr = !0, Ra = "arraybuffer", Dr = typeof navigator < "u" && typeof navigator.product == "string" && navigator.product.toLowerCase() === "reactnative";
3188
+ class Ta extends Wn {
3188
3189
  constructor(e) {
3189
3190
  super(e), this.supportsBinary = !e.forceBase64;
3190
3191
  }
@@ -3194,10 +3195,10 @@ class Ra extends Hn {
3194
3195
  doOpen() {
3195
3196
  if (!this.check())
3196
3197
  return;
3197
- const e = this.uri(), t = this.opts.protocols, r = kr ? {} : bs(this.opts, "agent", "perMessageDeflate", "pfx", "key", "passphrase", "cert", "ca", "ciphers", "rejectUnauthorized", "localAddress", "protocolVersion", "origin", "maxPayload", "family", "checkServerIdentity");
3198
+ const e = this.uri(), t = this.opts.protocols, r = Dr ? {} : bs(this.opts, "agent", "perMessageDeflate", "pfx", "key", "passphrase", "cert", "ca", "ciphers", "rejectUnauthorized", "localAddress", "protocolVersion", "origin", "maxPayload", "family", "checkServerIdentity");
3198
3199
  this.opts.extraHeaders && (r.headers = this.opts.extraHeaders);
3199
3200
  try {
3200
- this.ws = Dr && !kr ? t ? new Bt(e, t) : new Bt(e) : new Bt(e, t, r);
3201
+ this.ws = kr && !Dr ? t ? new Ut(e, t) : new Ut(e) : new Ut(e, t, r);
3201
3202
  } catch (s) {
3202
3203
  return this.emitReserved("error", s);
3203
3204
  }
@@ -3218,7 +3219,7 @@ class Ra extends Hn {
3218
3219
  $n(r, this.supportsBinary, (i) => {
3219
3220
  const o = {};
3220
3221
  try {
3221
- Dr && this.ws.send(i);
3222
+ kr && this.ws.send(i);
3222
3223
  } catch {
3223
3224
  }
3224
3225
  s && Jn(() => {
@@ -3235,10 +3236,10 @@ class Ra extends Hn {
3235
3236
  return this.opts.timestampRequests && (t[this.opts.timestampParam] = Es()), this.supportsBinary || (t.b64 = 1), this.createUri(e, t);
3236
3237
  }
3237
3238
  check() {
3238
- return !!Bt;
3239
+ return !!Ut;
3239
3240
  }
3240
3241
  }
3241
- class Ta extends Hn {
3242
+ class Oa extends Wn {
3242
3243
  get name() {
3243
3244
  return "webtransport";
3244
3245
  }
@@ -3249,7 +3250,7 @@ class Ta extends Hn {
3249
3250
  this.onError("webtransport error", e);
3250
3251
  }), this.transport.ready.then(() => {
3251
3252
  this.transport.createBidirectionalStream().then((e) => {
3252
- const t = ca(Number.MAX_SAFE_INTEGER, this.socket.binaryType), r = e.readable.pipeThrough(t).getReader(), s = aa();
3253
+ const t = ua(Number.MAX_SAFE_INTEGER, this.socket.binaryType), r = e.readable.pipeThrough(t).getReader(), s = ca();
3253
3254
  s.readable.pipeTo(e.writable), this.writer = s.writable.getWriter();
3254
3255
  const i = () => {
3255
3256
  r.read().then(({ done: c, value: l }) => {
@@ -3279,11 +3280,11 @@ class Ta extends Hn {
3279
3280
  (e = this.transport) === null || e === void 0 || e.close();
3280
3281
  }
3281
3282
  }
3282
- const Oa = {
3283
- websocket: Ra,
3284
- webtransport: Ta,
3285
- polling: Ea
3286
- }, xa = /^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/, Aa = [
3283
+ const xa = {
3284
+ websocket: Ta,
3285
+ webtransport: Oa,
3286
+ polling: Sa
3287
+ }, Aa = /^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/, Ca = [
3287
3288
  "source",
3288
3289
  "protocol",
3289
3290
  "authority",
@@ -3299,15 +3300,15 @@ const Oa = {
3299
3300
  "query",
3300
3301
  "anchor"
3301
3302
  ];
3302
- function Dn(n) {
3303
+ function kn(n) {
3303
3304
  const e = n, t = n.indexOf("["), r = n.indexOf("]");
3304
3305
  t != -1 && r != -1 && (n = n.substring(0, t) + n.substring(t, r).replace(/:/g, ";") + n.substring(r, n.length));
3305
- let s = xa.exec(n || ""), i = {}, o = 14;
3306
+ let s = Aa.exec(n || ""), i = {}, o = 14;
3306
3307
  for (; o--; )
3307
- i[Aa[o]] = s[o] || "";
3308
- 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 = Ca(i, i.path), i.queryKey = Da(i, i.query), i;
3308
+ i[Ca[o]] = s[o] || "";
3309
+ 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 = ka(i, i.path), i.queryKey = Da(i, i.query), i;
3309
3310
  }
3310
- function Ca(n, e) {
3311
+ function ka(n, e) {
3311
3312
  const t = /\/{2,9}/g, r = e.replace(t, "/").split("/");
3312
3313
  return (e.slice(0, 1) == "/" || e.length === 0) && r.splice(0, 1), e.slice(-1) == "/" && r.splice(r.length - 1, 1), r;
3313
3314
  }
@@ -3319,7 +3320,7 @@ function Da(n, e) {
3319
3320
  }
3320
3321
  class Ne extends Y {
3321
3322
  constructor(e, t = {}) {
3322
- super(), this.binaryType = Sa, 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), Qt(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 || [
3323
+ super(), this.binaryType = Ra, 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), Qt(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 || [
3323
3324
  "polling",
3324
3325
  "websocket",
3325
3326
  "webtransport"
@@ -3337,7 +3338,7 @@ class Ne extends Y {
3337
3338
  },
3338
3339
  transportOptions: {},
3339
3340
  closeOnBeforeunload: !1
3340
- }, t), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query = ma(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 = () => {
3341
+ }, t), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query = ga(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 = () => {
3341
3342
  this.transport && (this.transport.removeAllListeners(), this.transport.close());
3342
3343
  }, addEventListener("beforeunload", this.beforeunloadEventListener, !1)), this.hostname !== "localhost" && (this.offlineEventListener = () => {
3343
3344
  this.onClose("transport close", {
@@ -3355,7 +3356,7 @@ class Ne extends Y {
3355
3356
  secure: this.secure,
3356
3357
  port: this.port
3357
3358
  }, this.opts.transportOptions[e]);
3358
- return new Oa[e](r);
3359
+ return new xa[e](r);
3359
3360
  }
3360
3361
  open() {
3361
3362
  let e;
@@ -3470,7 +3471,7 @@ class Ne extends Y {
3470
3471
  let t = 1;
3471
3472
  for (let r = 0; r < this.writeBuffer.length; r++) {
3472
3473
  const s = this.writeBuffer[r].data;
3473
- if (s && (t += da(s)), r > 0 && t > this.maxPayload)
3474
+ if (s && (t += pa(s)), r > 0 && t > this.maxPayload)
3474
3475
  return this.writeBuffer.slice(0, r);
3475
3476
  t += 2;
3476
3477
  }
@@ -3521,39 +3522,39 @@ class Ne extends Y {
3521
3522
  }
3522
3523
  }
3523
3524
  Ne.protocol = ws;
3524
- function ka(n, e = "", t) {
3525
+ function Na(n, e = "", t) {
3525
3526
  let r = n;
3526
- 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 || "/";
3527
+ 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 || "/";
3527
3528
  const i = r.host.indexOf(":") !== -1 ? "[" + r.host + "]" : r.host;
3528
3529
  return r.id = r.protocol + "://" + i + ":" + r.port + e, r.href = r.protocol + "://" + i + (t && t.port === r.port ? "" : ":" + r.port), r;
3529
3530
  }
3530
- const Na = typeof ArrayBuffer == "function", La = (n) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(n) : n.buffer instanceof ArrayBuffer, Ts = Object.prototype.toString, Fa = typeof Blob == "function" || typeof Blob < "u" && Ts.call(Blob) === "[object BlobConstructor]", Pa = typeof File == "function" || typeof File < "u" && Ts.call(File) === "[object FileConstructor]";
3531
+ const La = typeof ArrayBuffer == "function", Fa = (n) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(n) : n.buffer instanceof ArrayBuffer, Ts = Object.prototype.toString, Pa = typeof Blob == "function" || typeof Blob < "u" && Ts.call(Blob) === "[object BlobConstructor]", Ba = typeof File == "function" || typeof File < "u" && Ts.call(File) === "[object FileConstructor]";
3531
3532
  function zn(n) {
3532
- return Na && (n instanceof ArrayBuffer || La(n)) || Fa && n instanceof Blob || Pa && n instanceof File;
3533
+ return La && (n instanceof ArrayBuffer || Fa(n)) || Pa && n instanceof Blob || Ba && n instanceof File;
3533
3534
  }
3534
- function Vt(n, e) {
3535
+ function Mt(n, e) {
3535
3536
  if (!n || typeof n != "object")
3536
3537
  return !1;
3537
3538
  if (Array.isArray(n)) {
3538
3539
  for (let t = 0, r = n.length; t < r; t++)
3539
- if (Vt(n[t]))
3540
+ if (Mt(n[t]))
3540
3541
  return !0;
3541
3542
  return !1;
3542
3543
  }
3543
3544
  if (zn(n))
3544
3545
  return !0;
3545
3546
  if (n.toJSON && typeof n.toJSON == "function" && arguments.length === 1)
3546
- return Vt(n.toJSON(), !0);
3547
+ return Mt(n.toJSON(), !0);
3547
3548
  for (const t in n)
3548
- if (Object.prototype.hasOwnProperty.call(n, t) && Vt(n[t]))
3549
+ if (Object.prototype.hasOwnProperty.call(n, t) && Mt(n[t]))
3549
3550
  return !0;
3550
3551
  return !1;
3551
3552
  }
3552
- function Ba(n) {
3553
+ function Ua(n) {
3553
3554
  const e = [], t = n.data, r = n;
3554
- return r.data = kn(t, e), r.attachments = e.length, { packet: r, buffers: e };
3555
+ return r.data = Dn(t, e), r.attachments = e.length, { packet: r, buffers: e };
3555
3556
  }
3556
- function kn(n, e) {
3557
+ function Dn(n, e) {
3557
3558
  if (!n)
3558
3559
  return n;
3559
3560
  if (zn(n)) {
@@ -3562,17 +3563,17 @@ function kn(n, e) {
3562
3563
  } else if (Array.isArray(n)) {
3563
3564
  const t = new Array(n.length);
3564
3565
  for (let r = 0; r < n.length; r++)
3565
- t[r] = kn(n[r], e);
3566
+ t[r] = Dn(n[r], e);
3566
3567
  return t;
3567
3568
  } else if (typeof n == "object" && !(n instanceof Date)) {
3568
3569
  const t = {};
3569
3570
  for (const r in n)
3570
- Object.prototype.hasOwnProperty.call(n, r) && (t[r] = kn(n[r], e));
3571
+ Object.prototype.hasOwnProperty.call(n, r) && (t[r] = Dn(n[r], e));
3571
3572
  return t;
3572
3573
  }
3573
3574
  return n;
3574
3575
  }
3575
- function Ua(n, e) {
3576
+ function Ia(n, e) {
3576
3577
  return n.data = Nn(n.data, e), delete n.attachments, n;
3577
3578
  }
3578
3579
  function Nn(n, e) {
@@ -3590,24 +3591,24 @@ function Nn(n, e) {
3590
3591
  Object.prototype.hasOwnProperty.call(n, t) && (n[t] = Nn(n[t], e));
3591
3592
  return n;
3592
3593
  }
3593
- const Ia = [
3594
+ const ja = [
3594
3595
  "connect",
3595
3596
  "connect_error",
3596
3597
  "disconnect",
3597
3598
  "disconnecting",
3598
3599
  "newListener",
3599
3600
  "removeListener"
3600
- ], ja = 5;
3601
+ ], qa = 5;
3601
3602
  var T;
3602
3603
  (function(n) {
3603
3604
  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";
3604
3605
  })(T || (T = {}));
3605
- class qa {
3606
+ class Va {
3606
3607
  constructor(e) {
3607
3608
  this.replacer = e;
3608
3609
  }
3609
3610
  encode(e) {
3610
- return (e.type === T.EVENT || e.type === T.ACK) && Vt(e) ? this.encodeAsBinary({
3611
+ return (e.type === T.EVENT || e.type === T.ACK) && Mt(e) ? this.encodeAsBinary({
3611
3612
  type: e.type === T.EVENT ? T.BINARY_EVENT : T.BINARY_ACK,
3612
3613
  nsp: e.nsp,
3613
3614
  data: e.data,
@@ -3619,7 +3620,7 @@ class qa {
3619
3620
  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;
3620
3621
  }
3621
3622
  encodeAsBinary(e) {
3622
- const t = Ba(e), r = this.encodeAsString(t.packet), s = t.buffers;
3623
+ const t = Ua(e), r = this.encodeAsString(t.packet), s = t.buffers;
3623
3624
  return s.unshift(r), s;
3624
3625
  }
3625
3626
  }
@@ -3637,7 +3638,7 @@ class Kn extends Y {
3637
3638
  throw new Error("got plaintext data when reconstructing a packet");
3638
3639
  t = this.decodeString(e);
3639
3640
  const r = t.type === T.BINARY_EVENT;
3640
- r || t.type === T.BINARY_ACK ? (t.type = r ? T.EVENT : T.ACK, this.reconstructor = new Va(t), t.attachments === 0 && super.emitReserved("decoded", t)) : super.emitReserved("decoded", t);
3641
+ r || t.type === T.BINARY_ACK ? (t.type = r ? T.EVENT : T.ACK, this.reconstructor = new Ma(t), t.attachments === 0 && super.emitReserved("decoded", t)) : super.emitReserved("decoded", t);
3641
3642
  } else if (zn(e) || e.base64)
3642
3643
  if (this.reconstructor)
3643
3644
  t = this.reconstructor.takeBinaryData(e), t && (this.reconstructor = null, super.emitReserved("decoded", t));
@@ -3709,7 +3710,7 @@ class Kn extends Y {
3709
3710
  return typeof t == "string" || Nr(t);
3710
3711
  case T.EVENT:
3711
3712
  case T.BINARY_EVENT:
3712
- return Array.isArray(t) && (typeof t[0] == "number" || typeof t[0] == "string" && Ia.indexOf(t[0]) === -1);
3713
+ return Array.isArray(t) && (typeof t[0] == "number" || typeof t[0] == "string" && ja.indexOf(t[0]) === -1);
3713
3714
  case T.ACK:
3714
3715
  case T.BINARY_ACK:
3715
3716
  return Array.isArray(t);
@@ -3719,13 +3720,13 @@ class Kn extends Y {
3719
3720
  this.reconstructor && (this.reconstructor.finishedReconstruction(), this.reconstructor = null);
3720
3721
  }
3721
3722
  }
3722
- class Va {
3723
+ class Ma {
3723
3724
  constructor(e) {
3724
3725
  this.packet = e, this.buffers = [], this.reconPack = e;
3725
3726
  }
3726
3727
  takeBinaryData(e) {
3727
3728
  if (this.buffers.push(e), this.buffers.length === this.reconPack.attachments) {
3728
- const t = Ua(this.reconPack, this.buffers);
3729
+ const t = Ia(this.reconPack, this.buffers);
3729
3730
  return this.finishedReconstruction(), t;
3730
3731
  }
3731
3732
  return null;
@@ -3734,13 +3735,13 @@ class Va {
3734
3735
  this.reconPack = null, this.buffers = [];
3735
3736
  }
3736
3737
  }
3737
- const Ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3738
+ const $a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3738
3739
  __proto__: null,
3739
- protocol: ja,
3740
+ protocol: qa,
3740
3741
  get PacketType() {
3741
3742
  return T;
3742
3743
  },
3743
- Encoder: qa,
3744
+ Encoder: Va,
3744
3745
  Decoder: Kn
3745
3746
  }, Symbol.toStringTag, { value: "Module" }));
3746
3747
  function de(n, e, t) {
@@ -3748,7 +3749,7 @@ function de(n, e, t) {
3748
3749
  n.off(e, t);
3749
3750
  };
3750
3751
  }
3751
- const $a = Object.freeze({
3752
+ const Ha = Object.freeze({
3752
3753
  connect: 1,
3753
3754
  connect_error: 1,
3754
3755
  disconnect: 1,
@@ -3787,7 +3788,7 @@ class Os extends Y {
3787
3788
  return e.unshift("message"), this.emit.apply(this, e), this;
3788
3789
  }
3789
3790
  emit(e, ...t) {
3790
- if ($a.hasOwnProperty(e))
3791
+ if (Ha.hasOwnProperty(e))
3791
3792
  throw new Error('"' + e.toString() + '" is a reserved event name');
3792
3793
  if (t.unshift(e), this._opts.retries && !this.flags.fromQueue && !this.flags.volatile)
3793
3794
  return this._addToQueue(t), this;
@@ -3993,10 +3994,10 @@ class Os extends Y {
3993
3994
  }
3994
3995
  }
3995
3996
  }
3996
- function et(n) {
3997
+ function tt(n) {
3997
3998
  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;
3998
3999
  }
3999
- et.prototype.duration = function() {
4000
+ tt.prototype.duration = function() {
4000
4001
  var n = this.ms * Math.pow(this.factor, this.attempts++);
4001
4002
  if (this.jitter) {
4002
4003
  var e = Math.random(), t = Math.floor(e * this.jitter * n);
@@ -4004,27 +4005,27 @@ et.prototype.duration = function() {
4004
4005
  }
4005
4006
  return Math.min(n, this.max) | 0;
4006
4007
  };
4007
- et.prototype.reset = function() {
4008
+ tt.prototype.reset = function() {
4008
4009
  this.attempts = 0;
4009
4010
  };
4010
- et.prototype.setMin = function(n) {
4011
+ tt.prototype.setMin = function(n) {
4011
4012
  this.ms = n;
4012
4013
  };
4013
- et.prototype.setMax = function(n) {
4014
+ tt.prototype.setMax = function(n) {
4014
4015
  this.max = n;
4015
4016
  };
4016
- et.prototype.setJitter = function(n) {
4017
+ tt.prototype.setJitter = function(n) {
4017
4018
  this.jitter = n;
4018
4019
  };
4019
4020
  class Ln extends Y {
4020
4021
  constructor(e, t) {
4021
4022
  var r;
4022
- 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, Qt(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 et({
4023
+ 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, Qt(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 tt({
4023
4024
  min: this.reconnectionDelay(),
4024
4025
  max: this.reconnectionDelayMax(),
4025
4026
  jitter: this.randomizationFactor()
4026
4027
  }), this.timeout(t.timeout == null ? 2e4 : t.timeout), this._readyState = "closed", this.uri = e;
4027
- const s = t.parser || Ma;
4028
+ const s = t.parser || $a;
4028
4029
  this.encoder = new s.Encoder(), this.decoder = new s.Decoder(), this._autoConnect = t.autoConnect !== !1, this._autoConnect && this.open();
4029
4030
  }
4030
4031
  reconnection(e) {
@@ -4150,35 +4151,35 @@ class Ln extends Y {
4150
4151
  this._reconnecting = !1, this.backoff.reset(), this.emitReserved("reconnect", e);
4151
4152
  }
4152
4153
  }
4153
- const ut = {};
4154
- function Mt(n, e) {
4154
+ const lt = {};
4155
+ function $t(n, e) {
4155
4156
  typeof n == "object" && (e = n, n = void 0), e = e || {};
4156
- const t = ka(n, e.path || "/socket.io"), r = t.source, s = t.id, i = t.path, o = ut[s] && i in ut[s].nsps, c = e.forceNew || e["force new connection"] || e.multiplex === !1 || o;
4157
+ const t = Na(n, e.path || "/socket.io"), r = t.source, s = t.id, i = t.path, o = lt[s] && i in lt[s].nsps, c = e.forceNew || e["force new connection"] || e.multiplex === !1 || o;
4157
4158
  let l;
4158
- return c ? l = new Ln(r, e) : (ut[s] || (ut[s] = new Ln(r, e)), l = ut[s]), t.query && !e.query && (e.query = t.queryKey), l.socket(t.path, e);
4159
+ return c ? l = new Ln(r, e) : (lt[s] || (lt[s] = new Ln(r, e)), l = lt[s]), t.query && !e.query && (e.query = t.queryKey), l.socket(t.path, e);
4159
4160
  }
4160
- Object.assign(Mt, {
4161
+ Object.assign($t, {
4161
4162
  Manager: Ln,
4162
4163
  Socket: Os,
4163
- io: Mt,
4164
- connect: Mt
4164
+ io: $t,
4165
+ connect: $t
4165
4166
  });
4166
4167
  class Wa {
4167
4168
  constructor(e, t, r, s) {
4168
- De(this, "socket_port");
4169
- De(this, "host");
4170
- De(this, "port");
4171
- De(this, "protocol");
4172
- De(this, "url");
4173
- De(this, "site_name");
4174
- De(this, "socket");
4169
+ ke(this, "socket_port");
4170
+ ke(this, "host");
4171
+ ke(this, "port");
4172
+ ke(this, "protocol");
4173
+ ke(this, "url");
4174
+ ke(this, "site_name");
4175
+ ke(this, "socket");
4175
4176
  var i, o, c;
4176
4177
  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) {
4177
4178
  let l = new URL(e);
4178
4179
  l.port = "", r ? (l.port = r, this.url = l.toString()) : this.url = l.toString();
4179
4180
  } else
4180
4181
  this.url = `${this.protocol}://${this.host}${this.port}/`;
4181
- t && (this.url = `${this.url}${t}`), this.site_name = t, this.socket = Mt(`${this.url}`, {
4182
+ t && (this.url = `${this.url}${t}`), this.site_name = t, this.socket = $t(`${this.url}`, {
4182
4183
  withCredentials: !0,
4183
4184
  secure: this.protocol === "https",
4184
4185
  extraHeaders: s && s.useToken === !0 ? {
@@ -4187,7 +4188,7 @@ class Wa {
4187
4188
  });
4188
4189
  }
4189
4190
  }
4190
- var xs = { exports: {} }, lt = {};
4191
+ var xs = { exports: {} }, ft = {};
4191
4192
  /**
4192
4193
  * @license React
4193
4194
  * react-jsx-runtime.production.min.js
@@ -4198,11 +4199,11 @@ var xs = { exports: {} }, lt = {};
4198
4199
  * LICENSE file in the root directory of this source tree.
4199
4200
  */
4200
4201
  var Lr;
4201
- function Ha() {
4202
+ function Ja() {
4202
4203
  if (Lr)
4203
- return lt;
4204
+ return ft;
4204
4205
  Lr = 1;
4205
- var n = Ve, 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 };
4206
+ var n = Me, 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 };
4206
4207
  function o(c, l, a) {
4207
4208
  var f, h = {}, g = null, v = null;
4208
4209
  a !== void 0 && (g = "" + a), l.key !== void 0 && (g = "" + l.key), l.ref !== void 0 && (v = l.ref);
@@ -4213,9 +4214,9 @@ function Ha() {
4213
4214
  h[f] === void 0 && (h[f] = l[f]);
4214
4215
  return { $$typeof: e, type: c, key: g, ref: v, props: h, _owner: s.current };
4215
4216
  }
4216
- return lt.Fragment = t, lt.jsx = o, lt.jsxs = o, lt;
4217
+ return ft.Fragment = t, ft.jsx = o, ft.jsxs = o, ft;
4217
4218
  }
4218
- var ft = {};
4219
+ var ht = {};
4219
4220
  /**
4220
4221
  * @license React
4221
4222
  * react-jsx-runtime.development.js
@@ -4226,9 +4227,9 @@ var ft = {};
4226
4227
  * LICENSE file in the root directory of this source tree.
4227
4228
  */
4228
4229
  var Fr;
4229
- function Ja() {
4230
+ function za() {
4230
4231
  return Fr || (Fr = 1, process.env.NODE_ENV !== "production" && function() {
4231
- var n = Ve, 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"), f = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), p = Symbol.iterator, y = "@@iterator";
4232
+ var n = Me, 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"), f = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), p = Symbol.iterator, y = "@@iterator";
4232
4233
  function E(u) {
4233
4234
  if (u === null || typeof u != "object")
4234
4235
  return null;
@@ -4253,10 +4254,10 @@ function Ja() {
4253
4254
  j.unshift("Warning: " + m), Function.prototype.apply.call(console[u], console, j);
4254
4255
  }
4255
4256
  }
4256
- var x = !1, L = !1, k = !1, re = !1, P = !1, W;
4257
- W = Symbol.for("react.module.reference");
4257
+ var x = !1, L = !1, D = !1, re = !1, P = !1, H;
4258
+ H = Symbol.for("react.module.reference");
4258
4259
  function Q(u) {
4259
- return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || P || u === s || u === a || u === f || re || u === v || x || L || k || typeof u == "object" && u !== null && (u.$$typeof === g || u.$$typeof === h || u.$$typeof === o || u.$$typeof === c || u.$$typeof === l || u.$$typeof === W || u.getModuleId !== void 0));
4260
+ return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || P || u === s || u === a || u === f || re || u === v || x || L || D || typeof u == "object" && u !== null && (u.$$typeof === g || u.$$typeof === h || u.$$typeof === o || u.$$typeof === c || u.$$typeof === l || u.$$typeof === H || u.getModuleId !== void 0));
4260
4261
  }
4261
4262
  function pe(u, m, w) {
4262
4263
  var _ = u.displayName;
@@ -4313,14 +4314,14 @@ function Ja() {
4313
4314
  }
4314
4315
  return null;
4315
4316
  }
4316
- var se = Object.assign, Pe = 0, tt, nt, Se, rt, Et, Re, Te;
4317
+ var se = Object.assign, Pe = 0, nt, rt, Se, st, St, Re, Te;
4317
4318
  function Be() {
4318
4319
  }
4319
4320
  Be.__reactDisabledLog = !0;
4320
- function St() {
4321
+ function Rt() {
4321
4322
  {
4322
4323
  if (Pe === 0) {
4323
- tt = console.log, nt = console.info, Se = console.warn, rt = console.error, Et = console.group, Re = console.groupCollapsed, Te = console.groupEnd;
4324
+ nt = console.log, rt = console.info, Se = console.warn, st = console.error, St = console.group, Re = console.groupCollapsed, Te = console.groupEnd;
4324
4325
  var u = {
4325
4326
  configurable: !0,
4326
4327
  enumerable: !0,
@@ -4340,7 +4341,7 @@ function Ja() {
4340
4341
  Pe++;
4341
4342
  }
4342
4343
  }
4343
- function Me() {
4344
+ function $e() {
4344
4345
  {
4345
4346
  if (Pe--, Pe === 0) {
4346
4347
  var u = {
@@ -4350,19 +4351,19 @@ function Ja() {
4350
4351
  };
4351
4352
  Object.defineProperties(console, {
4352
4353
  log: se({}, u, {
4353
- value: tt
4354
+ value: nt
4354
4355
  }),
4355
4356
  info: se({}, u, {
4356
- value: nt
4357
+ value: rt
4357
4358
  }),
4358
4359
  warn: se({}, u, {
4359
4360
  value: Se
4360
4361
  }),
4361
4362
  error: se({}, u, {
4362
- value: rt
4363
+ value: st
4363
4364
  }),
4364
4365
  group: se({}, u, {
4365
- value: Et
4366
+ value: St
4366
4367
  }),
4367
4368
  groupCollapsed: se({}, u, {
4368
4369
  value: Re
@@ -4375,8 +4376,8 @@ function Ja() {
4375
4376
  Pe < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
4376
4377
  }
4377
4378
  }
4378
- var $e = b.ReactCurrentDispatcher, We;
4379
- function He(u, m, w) {
4379
+ var He = b.ReactCurrentDispatcher, We;
4380
+ function Je(u, m, w) {
4380
4381
  {
4381
4382
  if (We === void 0)
4382
4383
  try {
@@ -4389,13 +4390,13 @@ function Ja() {
4389
4390
  ` + We + u;
4390
4391
  }
4391
4392
  }
4392
- var st = !1, me;
4393
+ var it = !1, me;
4393
4394
  {
4394
- var Rt = typeof WeakMap == "function" ? WeakMap : Map;
4395
- me = new Rt();
4395
+ var Tt = typeof WeakMap == "function" ? WeakMap : Map;
4396
+ me = new Tt();
4396
4397
  }
4397
4398
  function B(u, m) {
4398
- if (!u || st)
4399
+ if (!u || it)
4399
4400
  return "";
4400
4401
  {
4401
4402
  var w = me.get(u);
@@ -4403,11 +4404,11 @@ function Ja() {
4403
4404
  return w;
4404
4405
  }
4405
4406
  var _;
4406
- st = !0;
4407
+ it = !0;
4407
4408
  var N = Error.prepareStackTrace;
4408
4409
  Error.prepareStackTrace = void 0;
4409
4410
  var j;
4410
- j = $e.current, $e.current = null, St();
4411
+ j = He.current, He.current = null, Rt();
4411
4412
  try {
4412
4413
  if (m) {
4413
4414
  var A = function() {
@@ -4460,9 +4461,9 @@ function Ja() {
4460
4461
  }
4461
4462
  }
4462
4463
  } finally {
4463
- st = !1, $e.current = j, Me(), Error.prepareStackTrace = N;
4464
+ it = !1, He.current = j, $e(), Error.prepareStackTrace = N;
4464
4465
  }
4465
- var Ye = u ? u.displayName || u.name : "", rr = Ye ? He(Ye) : "";
4466
+ var Ge = u ? u.displayName || u.name : "", rr = Ge ? Je(Ge) : "";
4466
4467
  return typeof u == "function" && me.set(u, rr), rr;
4467
4468
  }
4468
4469
  function I(u, m, w) {
@@ -4478,12 +4479,12 @@ function Ja() {
4478
4479
  if (typeof u == "function")
4479
4480
  return B(u, X(u));
4480
4481
  if (typeof u == "string")
4481
- return He(u);
4482
+ return Je(u);
4482
4483
  switch (u) {
4483
4484
  case a:
4484
- return He("Suspense");
4485
+ return Je("Suspense");
4485
4486
  case f:
4486
- return He("SuspenseList");
4487
+ return Je("SuspenseList");
4487
4488
  }
4488
4489
  if (typeof u == "object")
4489
4490
  switch (u.$$typeof) {
@@ -4501,13 +4502,13 @@ function Ja() {
4501
4502
  }
4502
4503
  return "";
4503
4504
  }
4504
- var te = Object.prototype.hasOwnProperty, Oe = {}, H = b.ReactDebugCurrentFrame;
4505
+ var te = Object.prototype.hasOwnProperty, Oe = {}, W = b.ReactDebugCurrentFrame;
4505
4506
  function J(u) {
4506
4507
  if (u) {
4507
4508
  var m = u._owner, w = q(u.type, u._source, m ? m.type : null);
4508
- H.setExtraStackFrame(w);
4509
+ W.setExtraStackFrame(w);
4509
4510
  } else
4510
- H.setExtraStackFrame(null);
4511
+ W.setExtraStackFrame(null);
4511
4512
  }
4512
4513
  function he(u, m, w, _, N) {
4513
4514
  {
@@ -4528,11 +4529,11 @@ function Ja() {
4528
4529
  }
4529
4530
  }
4530
4531
  }
4531
- var Tt = Array.isArray;
4532
- function Je(u) {
4533
- return Tt(u);
4532
+ var Ot = Array.isArray;
4533
+ function ze(u) {
4534
+ return Ot(u);
4534
4535
  }
4535
- function Ot(u) {
4536
+ function xt(u) {
4536
4537
  {
4537
4538
  var m = typeof Symbol == "function" && Symbol.toStringTag, w = m && u[Symbol.toStringTag] || u.constructor.name || "Object";
4538
4539
  return w;
@@ -4548,18 +4549,18 @@ function Ja() {
4548
4549
  function ae(u) {
4549
4550
  return "" + u;
4550
4551
  }
4551
- function ze(u) {
4552
+ function Ke(u) {
4552
4553
  if (ie(u))
4553
- return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ot(u)), ae(u);
4554
+ return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", xt(u)), ae(u);
4554
4555
  }
4555
- var Ue = b.ReactCurrentOwner, it = {
4556
+ var Ue = b.ReactCurrentOwner, ot = {
4556
4557
  key: !0,
4557
4558
  ref: !0,
4558
4559
  __self: !0,
4559
4560
  __source: !0
4560
4561
  }, Yn, Gn, Zt;
4561
4562
  Zt = {};
4562
- function Ds(u) {
4563
+ function ks(u) {
4563
4564
  if (te.call(u, "ref")) {
4564
4565
  var m = Object.getOwnPropertyDescriptor(u, "ref").get;
4565
4566
  if (m && m.isReactWarning)
@@ -4567,7 +4568,7 @@ function Ja() {
4567
4568
  }
4568
4569
  return u.ref !== void 0;
4569
4570
  }
4570
- function ks(u) {
4571
+ function Ds(u) {
4571
4572
  if (te.call(u, "key")) {
4572
4573
  var m = Object.getOwnPropertyDescriptor(u, "key").get;
4573
4574
  if (m && m.isReactWarning)
@@ -4632,9 +4633,9 @@ function Ja() {
4632
4633
  function Bs(u, m, w, _, N) {
4633
4634
  {
4634
4635
  var j, A = {}, S = null, ne = null;
4635
- w !== void 0 && (ze(w), S = "" + w), ks(m) && (ze(m.key), S = "" + m.key), Ds(m) && (ne = m.ref, Ns(m, N));
4636
+ w !== void 0 && (Ke(w), S = "" + w), Ds(m) && (Ke(m.key), S = "" + m.key), ks(m) && (ne = m.ref, Ns(m, N));
4636
4637
  for (j in m)
4637
- te.call(m, j) && !it.hasOwnProperty(j) && (A[j] = m[j]);
4638
+ te.call(m, j) && !ot.hasOwnProperty(j) && (A[j] = m[j]);
4638
4639
  if (u && u.defaultProps) {
4639
4640
  var $ = u.defaultProps;
4640
4641
  for (j in $)
@@ -4648,7 +4649,7 @@ function Ja() {
4648
4649
  }
4649
4650
  }
4650
4651
  var en = b.ReactCurrentOwner, Xn = b.ReactDebugCurrentFrame;
4651
- function Ke(u) {
4652
+ function Ye(u) {
4652
4653
  if (u) {
4653
4654
  var m = u._owner, w = q(u.type, u._source, m ? m.type : null);
4654
4655
  Xn.setExtraStackFrame(w);
@@ -4706,14 +4707,14 @@ Check the top-level render call using <` + w + ">.");
4706
4707
  return;
4707
4708
  Zn[w] = !0;
4708
4709
  var _ = "";
4709
- u && u._owner && u._owner !== en.current && (_ = " It was passed a child from " + M(u._owner.type) + "."), Ke(u), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', w, _), Ke(null);
4710
+ u && u._owner && u._owner !== en.current && (_ = " It was passed a child from " + M(u._owner.type) + "."), Ye(u), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', w, _), Ye(null);
4710
4711
  }
4711
4712
  }
4712
4713
  function tr(u, m) {
4713
4714
  {
4714
4715
  if (typeof u != "object")
4715
4716
  return;
4716
- if (Je(u))
4717
+ if (ze(u))
4717
4718
  for (var w = 0; w < u.length; w++) {
4718
4719
  var _ = u[w];
4719
4720
  nn(_) && er(_, m);
@@ -4756,11 +4757,11 @@ Check the top-level render call using <` + w + ">.");
4756
4757
  for (var m = Object.keys(u.props), w = 0; w < m.length; w++) {
4757
4758
  var _ = m[w];
4758
4759
  if (_ !== "children" && _ !== "key") {
4759
- Ke(u), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", _), Ke(null);
4760
+ Ye(u), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", _), Ye(null);
4760
4761
  break;
4761
4762
  }
4762
4763
  }
4763
- u.ref !== null && (Ke(u), R("Invalid attribute `ref` supplied to `React.Fragment`."), Ke(null));
4764
+ u.ref !== null && (Ye(u), R("Invalid attribute `ref` supplied to `React.Fragment`."), Ye(null));
4764
4765
  }
4765
4766
  }
4766
4767
  function nr(u, m, w, _, N, j) {
@@ -4772,7 +4773,7 @@ Check the top-level render call using <` + w + ">.");
4772
4773
  var ne = Us(N);
4773
4774
  ne ? S += ne : S += Qn();
4774
4775
  var $;
4775
- u === null ? $ = "null" : Je(u) ? $ = "array" : u !== void 0 && u.$$typeof === e ? ($ = "<" + (M(u.type) || "Unknown") + " />", S = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof u, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, S);
4776
+ u === null ? $ = "null" : ze(u) ? $ = "array" : u !== void 0 && u.$$typeof === e ? ($ = "<" + (M(u.type) || "Unknown") + " />", S = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof u, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, S);
4776
4777
  }
4777
4778
  var z = Bs(u, m, w, N, j);
4778
4779
  if (z == null)
@@ -4781,9 +4782,9 @@ Check the top-level render call using <` + w + ">.");
4781
4782
  var ce = m.children;
4782
4783
  if (ce !== void 0)
4783
4784
  if (_)
4784
- if (Je(ce)) {
4785
- for (var Ye = 0; Ye < ce.length; Ye++)
4786
- tr(ce[Ye], u);
4785
+ if (ze(ce)) {
4786
+ for (var Ge = 0; Ge < ce.length; Ge++)
4787
+ tr(ce[Ge], u);
4787
4788
  Object.freeze && Object.freeze(ce);
4788
4789
  } else
4789
4790
  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.");
@@ -4799,14 +4800,14 @@ Check the top-level render call using <` + w + ">.");
4799
4800
  function Ms(u, m, w) {
4800
4801
  return nr(u, m, w, !1);
4801
4802
  }
4802
- var $s = Ms, Ws = Vs;
4803
- ft.Fragment = r, ft.jsx = $s, ft.jsxs = Ws;
4804
- }()), ft;
4803
+ var $s = Ms, Hs = Vs;
4804
+ ht.Fragment = r, ht.jsx = $s, ht.jsxs = Hs;
4805
+ }()), ht;
4805
4806
  }
4806
4807
  (function(n) {
4807
- process.env.NODE_ENV === "production" ? n.exports = Ha() : n.exports = Ja();
4808
+ process.env.NODE_ENV === "production" ? n.exports = Ja() : n.exports = za();
4808
4809
  })(xs);
4809
- const za = xs.exports.jsx, ee = Pr(null), Za = ({
4810
+ const Ka = xs.exports.jsx, ee = Pr(null), ec = ({
4810
4811
  url: n = "",
4811
4812
  tokenParams: e,
4812
4813
  socketPort: t,
@@ -4815,7 +4816,7 @@ const za = xs.exports.jsx, ee = Pr(null), Za = ({
4815
4816
  children: i
4816
4817
  }) => {
4817
4818
  const o = Br(() => {
4818
- const c = new So.FrappeApp(n, e);
4819
+ const c = new Ro.FrappeApp(n, e);
4819
4820
  return {
4820
4821
  url: n,
4821
4822
  tokenParams: e,
@@ -4829,11 +4830,11 @@ const za = xs.exports.jsx, ee = Pr(null), Za = ({
4829
4830
  socketPort: t
4830
4831
  };
4831
4832
  }, [n, e, t, s]);
4832
- return /* @__PURE__ */ za(ee.Provider, {
4833
+ return /* @__PURE__ */ Ka(ee.Provider, {
4833
4834
  value: o,
4834
4835
  children: i
4835
4836
  });
4836
- }, ec = (n) => {
4837
+ }, tc = (n) => {
4837
4838
  const {
4838
4839
  url: e,
4839
4840
  auth: t,
@@ -4846,7 +4847,7 @@ const za = xs.exports.jsx, ee = Pr(null), Za = ({
4846
4847
  } else
4847
4848
  i(null);
4848
4849
  }, []);
4849
- Qe(() => {
4850
+ Ze(() => {
4850
4851
  r && r.useToken ? i(null) : o();
4851
4852
  }, []);
4852
4853
  const {
@@ -4855,7 +4856,7 @@ const za = xs.exports.jsx, ee = Pr(null), Za = ({
4855
4856
  isLoading: a,
4856
4857
  isValidating: f,
4857
4858
  mutate: h
4858
- } = _t(() => r && r.useToken || s ? `${e}/api/method/frappe.auth.get_logged_user` : null, () => t.getLoggedInUser(), {
4859
+ } = Et(() => r && r.useToken || s ? `${e}/api/method/frappe.auth.get_logged_user` : null, () => t.getLoggedInUser(), {
4859
4860
  onError: () => {
4860
4861
  i(null);
4861
4862
  },
@@ -4876,15 +4877,15 @@ const za = xs.exports.jsx, ee = Pr(null), Za = ({
4876
4877
  }, As = (n, e, t) => {
4877
4878
  let r = `${e}/api/resource/`;
4878
4879
  return t ? r += `${n}/${t}` : r += `${n}`, r;
4879
- }, tc = (n, e, t, r) => {
4880
+ }, nc = (n, e, t, r) => {
4880
4881
  const {
4881
4882
  url: s,
4882
4883
  db: i
4883
4884
  } = Z(ee);
4884
4885
  return {
4885
- ..._t(t === void 0 ? As(n, s, e) : t, () => i.getDoc(n, e), r)
4886
+ ...Et(t === void 0 ? As(n, s, e) : t, () => i.getDoc(n, e), r)
4886
4887
  };
4887
- }, Ka = (n) => {
4888
+ }, Ya = (n) => {
4888
4889
  var t, r, s;
4889
4890
  let e = "";
4890
4891
  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) {
@@ -4892,15 +4893,15 @@ const za = xs.exports.jsx, ee = Pr(null), Za = ({
4892
4893
  e += "order_by=" + i + "&";
4893
4894
  }
4894
4895
  return n != null && n.asDict && (e += "as_dict=" + n.asDict), e;
4895
- }, nc = (n, e, t, r) => {
4896
+ }, rc = (n, e, t, r) => {
4896
4897
  const {
4897
4898
  url: s,
4898
4899
  db: i
4899
4900
  } = Z(ee);
4900
4901
  return {
4901
- ..._t(t === void 0 ? `${As(n, s)}?${Ka(e)}` : t, () => i.getDocList(n, e), r)
4902
+ ...Et(t === void 0 ? `${As(n, s)}?${Ya(e)}` : t, () => i.getDocList(n, e), r)
4902
4903
  };
4903
- }, rc = () => {
4904
+ }, sc = () => {
4904
4905
  const {
4905
4906
  db: n
4906
4907
  } = Z(ee), [e, t] = U(!1), [r, s] = U(null), [i, o] = U(!1), c = V(() => {
@@ -4915,7 +4916,7 @@ const za = xs.exports.jsx, ee = Pr(null), Za = ({
4915
4916
  isCompleted: i,
4916
4917
  reset: c
4917
4918
  };
4918
- }, sc = () => {
4919
+ }, ic = () => {
4919
4920
  const {
4920
4921
  db: n
4921
4922
  } = Z(ee), [e, t] = U(!1), [r, s] = U(null), [i, o] = U(!1), c = V(() => {
@@ -4930,7 +4931,7 @@ const za = xs.exports.jsx, ee = Pr(null), Za = ({
4930
4931
  reset: c,
4931
4932
  isCompleted: i
4932
4933
  };
4933
- }, ic = () => {
4934
+ }, oc = () => {
4934
4935
  const {
4935
4936
  db: n
4936
4937
  } = Z(ee), [e, t] = U(!1), [r, s] = U(null), [i, o] = U(!1), c = V(() => {
@@ -4952,13 +4953,13 @@ function Cs(n) {
4952
4953
  e.push(encodeURIComponent(t) + "=" + encodeURIComponent(n[t]));
4953
4954
  return e.join("&");
4954
4955
  }
4955
- const oc = (n, e, t = !1, r = !1, s, i) => {
4956
+ const ac = (n, e, t = !1, r = !1, s, i) => {
4956
4957
  const {
4957
4958
  url: o,
4958
4959
  db: c
4959
4960
  } = Z(ee);
4960
4961
  return {
4961
- ..._t(s === void 0 ? (() => {
4962
+ ...Et(s === void 0 ? (() => {
4962
4963
  const f = Cs(t ? {
4963
4964
  doctype: n,
4964
4965
  filters: e != null ? e : [],
@@ -4972,14 +4973,14 @@ const oc = (n, e, t = !1, r = !1, s, i) => {
4972
4973
  return `${o}/api/method/frappe.client.get_count?${f}`;
4973
4974
  })() : s, () => c.getCount(n, e, t, r), i)
4974
4975
  };
4975
- }, Ya = (n, e, t, r) => {
4976
+ }, Ga = (n, e, t, r) => {
4976
4977
  const {
4977
4978
  call: s
4978
4979
  } = Z(ee), i = Cs(e != null ? e : {}), o = `${n}?${i}`;
4979
4980
  return {
4980
- ..._t(t === void 0 ? o : t, () => s.get(n, e), r)
4981
+ ...Et(t === void 0 ? o : t, () => s.get(n, e), r)
4981
4982
  };
4982
- }, ac = (n) => {
4983
+ }, cc = (n) => {
4983
4984
  const {
4984
4985
  call: e
4985
4986
  } = Z(ee), [t, r] = U(null), [s, i] = U(!1), [o, c] = U(null), [l, a] = U(!1), f = V(() => {
@@ -4995,7 +4996,7 @@ const oc = (n, e, t = !1, r = !1, s, i) => {
4995
4996
  reset: f,
4996
4997
  isCompleted: l
4997
4998
  };
4998
- }, cc = (n) => {
4999
+ }, uc = (n) => {
4999
5000
  const {
5000
5001
  call: e
5001
5002
  } = Z(ee), [t, r] = U(null), [s, i] = U(!1), [o, c] = U(null), [l, a] = U(!1), f = V(() => {
@@ -5011,7 +5012,7 @@ const oc = (n, e, t = !1, r = !1, s, i) => {
5011
5012
  reset: f,
5012
5013
  isCompleted: l
5013
5014
  };
5014
- }, uc = (n) => {
5015
+ }, lc = (n) => {
5015
5016
  const {
5016
5017
  call: e
5017
5018
  } = Z(ee), [t, r] = U(null), [s, i] = U(!1), [o, c] = U(null), [l, a] = U(!1), f = V(() => {
@@ -5027,7 +5028,7 @@ const oc = (n, e, t = !1, r = !1, s, i) => {
5027
5028
  reset: f,
5028
5029
  isCompleted: l
5029
5030
  };
5030
- }, lc = () => {
5031
+ }, fc = () => {
5031
5032
  const {
5032
5033
  file: n
5033
5034
  } = Z(ee), [e, t] = U(0), [r, s] = U(!1), [i, o] = U(null), [c, l] = U(!1), a = V(async (h, g, v) => (f(), s(!0), n.uploadFile(h, g, (p, y) => {
@@ -5045,17 +5046,17 @@ const oc = (n, e, t = !1, r = !1, s, i) => {
5045
5046
  error: i,
5046
5047
  reset: f
5047
5048
  };
5048
- }, fc = (n, e, t = [], r = 20, s = 250) => {
5049
- const i = Ga(e, s);
5050
- return Ya("frappe.desk.search.search_link", {
5049
+ }, hc = (n, e, t = [], r = 20, s = 250) => {
5050
+ const i = Xa(e, s);
5051
+ return Ga("frappe.desk.search.search_link", {
5051
5052
  doctype: n,
5052
5053
  page_length: r,
5053
5054
  txt: i,
5054
5055
  filters: JSON.stringify(t != null ? t : [])
5055
5056
  });
5056
- }, Ga = (n, e) => {
5057
+ }, Xa = (n, e) => {
5057
5058
  const [t, r] = U(n);
5058
- return Qe(() => {
5059
+ return Ze(() => {
5059
5060
  const s = setTimeout(() => {
5060
5061
  r(n);
5061
5062
  }, e);
@@ -5067,18 +5068,18 @@ const oc = (n, e, t = !1, r = !1, s, i) => {
5067
5068
  const {
5068
5069
  socket: t
5069
5070
  } = Z(ee);
5070
- Qe(() => {
5071
+ Ze(() => {
5071
5072
  t === void 0 && console.warn("Socket is not enabled. Please enable socket in FrappeProvider.");
5072
5073
  let r = t == null ? void 0 : t.on(n, e);
5073
5074
  return () => {
5074
5075
  r == null || r.off(n);
5075
5076
  };
5076
5077
  }, [n, e]);
5077
- }, hc = (n, e, t, r = !0) => {
5078
+ }, dc = (n, e, t, r = !0) => {
5078
5079
  const {
5079
5080
  socket: s
5080
5081
  } = Z(ee), [i, o] = U([]);
5081
- Qe(() => (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)), () => {
5082
+ Ze(() => (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)), () => {
5082
5083
  s == null || s.emit("doc_unsubscribe", n, e), r && (s == null || s.emit("doc_close", n, e));
5083
5084
  }), [n, e, r]), Fn("doc_update", t);
5084
5085
  const c = V(() => {
@@ -5093,35 +5094,35 @@ const oc = (n, e, t = !1, r = !1, s, i) => {
5093
5094
  emitDocOpen: c,
5094
5095
  emitDocClose: l
5095
5096
  };
5096
- }, dc = (n, e) => {
5097
+ }, pc = (n, e) => {
5097
5098
  const {
5098
5099
  socket: t
5099
5100
  } = Z(ee);
5100
- Qe(() => (t === void 0 && console.warn("Socket is not enabled. Please enable socket in FrappeProvider."), t == null || t.emit("doctype_subscribe", n), () => {
5101
+ Ze(() => (t === void 0 && console.warn("Socket is not enabled. Please enable socket in FrappeProvider."), t == null || t.emit("doctype_subscribe", n), () => {
5101
5102
  t == null || t.emit("doctype_unsubscribe", n);
5102
5103
  }), [n]), Fn("list_update", e);
5103
5104
  };
5104
5105
  export {
5105
5106
  ee as FrappeContext,
5106
- Za as FrappeProvider,
5107
- Ka as getDocListQueryString,
5107
+ ec as FrappeProvider,
5108
+ Ya as getDocListQueryString,
5108
5109
  As as getRequestURL,
5109
- ec as useFrappeAuth,
5110
- rc as useFrappeCreateDoc,
5111
- uc as useFrappeDeleteCall,
5112
- ic as useFrappeDeleteDoc,
5113
- dc as useFrappeDocTypeEventListener,
5114
- hc as useFrappeDocumentEventListener,
5110
+ tc as useFrappeAuth,
5111
+ sc as useFrappeCreateDoc,
5112
+ lc as useFrappeDeleteCall,
5113
+ oc as useFrappeDeleteDoc,
5114
+ pc as useFrappeDocTypeEventListener,
5115
+ dc as useFrappeDocumentEventListener,
5115
5116
  Fn as useFrappeEventListener,
5116
- lc as useFrappeFileUpload,
5117
- Ya as useFrappeGetCall,
5118
- tc as useFrappeGetDoc,
5119
- oc as useFrappeGetDocCount,
5120
- nc as useFrappeGetDocList,
5121
- ac as useFrappePostCall,
5122
- cc as useFrappePutCall,
5123
- sc as useFrappeUpdateDoc,
5124
- _t as useSWR,
5125
- Yo as useSWRConfig,
5126
- fc as useSearch
5117
+ fc as useFrappeFileUpload,
5118
+ Ga as useFrappeGetCall,
5119
+ nc as useFrappeGetDoc,
5120
+ ac as useFrappeGetDocCount,
5121
+ rc as useFrappeGetDocList,
5122
+ cc as useFrappePostCall,
5123
+ uc as useFrappePutCall,
5124
+ ic as useFrappeUpdateDoc,
5125
+ Et as useSWR,
5126
+ Go as useSWRConfig,
5127
+ hc as useSearch
5127
5128
  };