oasis-chat 0.2.7 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -96,7 +96,7 @@ function Tt(e = {}) {
96
96
  function c(i) {
97
97
  t = i;
98
98
  }
99
- function f(i) {
99
+ function u(i) {
100
100
  n = i;
101
101
  }
102
102
  function d() {
@@ -245,7 +245,7 @@ function Tt(e = {}) {
245
245
  return {
246
246
  getState: d,
247
247
  setHttpClient: c,
248
- setPortalClient: f,
248
+ setPortalClient: u,
249
249
  clearAuth: o
250
250
  };
251
251
  }
@@ -254,10 +254,10 @@ function Qe(e, t) {
254
254
  return e.apply(t, arguments);
255
255
  };
256
256
  }
257
- const { toString: Yt } = Object.prototype, { getPrototypeOf: pe } = Object, { iterator: ue, toStringTag: _e } = Symbol, fe = /* @__PURE__ */ ((e) => (t) => {
257
+ const { toString: Yt } = Object.prototype, { getPrototypeOf: pe } = Object, { iterator: fe, toStringTag: _e } = Symbol, ue = /* @__PURE__ */ ((e) => (t) => {
258
258
  const n = Yt.call(t);
259
259
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
260
- })(/* @__PURE__ */ Object.create(null)), A = (e) => (e = e.toLowerCase(), (t) => fe(t) === e), oe = (e) => (t) => typeof t === e, { isArray: Z } = Array, C = oe("undefined");
260
+ })(/* @__PURE__ */ Object.create(null)), A = (e) => (e = e.toLowerCase(), (t) => ue(t) === e), oe = (e) => (t) => typeof t === e, { isArray: Z } = Array, C = oe("undefined");
261
261
  function K(e) {
262
262
  return e !== null && !C(e) && e.constructor !== null && !C(e.constructor) && p(e.constructor.isBuffer) && e.constructor.isBuffer(e);
263
263
  }
@@ -267,10 +267,10 @@ function Mt(e) {
267
267
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && $e(e.buffer), t;
268
268
  }
269
269
  const Gt = oe("string"), p = oe("function"), et = oe("number"), Q = (e) => e !== null && typeof e == "object", Wt = (e) => e === !0 || e === !1, se = (e) => {
270
- if (fe(e) !== "object")
270
+ if (ue(e) !== "object")
271
271
  return !1;
272
272
  const t = pe(e);
273
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(_e in e) && !(ue in e);
273
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(_e in e) && !(fe in e);
274
274
  }, gt = (e) => {
275
275
  if (!Q(e) || K(e))
276
276
  return !1;
@@ -281,7 +281,7 @@ const Gt = oe("string"), p = oe("function"), et = oe("number"), Q = (e) => e !==
281
281
  }
282
282
  }, Lt = A("Date"), Et = A("File"), Ft = A("Blob"), Bt = A("FileList"), Vt = (e) => Q(e) && p(e.pipe), Rt = (e) => {
283
283
  let t;
284
- return e && (typeof FormData == "function" && e instanceof FormData || p(e.append) && ((t = fe(e)) === "formdata" || // detect form-data instance
284
+ return e && (typeof FormData == "function" && e instanceof FormData || p(e.append) && ((t = ue(e)) === "formdata" || // detect form-data instance
285
285
  t === "object" && p(e.toString) && e.toString() === "[object FormData]"));
286
286
  }, qt = A("URLSearchParams"), [Ct, Zt, kt, Ut] = ["ReadableStream", "Request", "Response", "Headers"].map(A), St = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
287
287
  function _(e, t, { allOwnKeys: n = !1 } = {}) {
@@ -295,9 +295,9 @@ function _(e, t, { allOwnKeys: n = !1 } = {}) {
295
295
  if (K(e))
296
296
  return;
297
297
  const a = n ? Object.getOwnPropertyNames(e) : Object.keys(e), c = a.length;
298
- let f;
298
+ let u;
299
299
  for (r = 0; r < c; r++)
300
- f = a[r], t.call(null, e[f], f, e);
300
+ u = a[r], t.call(null, e[u], u, e);
301
301
  }
302
302
  }
303
303
  function tt(e, t) {
@@ -329,11 +329,11 @@ const It = (e, t, n, { allOwnKeys: r } = {}) => (_(t, (s, a) => {
329
329
  }), n && Object.assign(e.prototype, n);
330
330
  }, Qt = (e, t, n, r) => {
331
331
  let s, a, c;
332
- const f = {};
332
+ const u = {};
333
333
  if (t = t || {}, e == null) return t;
334
334
  do {
335
335
  for (s = Object.getOwnPropertyNames(e), a = s.length; a-- > 0; )
336
- c = s[a], (!r || r(c, e, t)) && !f[c] && (t[c] = e[c], f[c] = !0);
336
+ c = s[a], (!r || r(c, e, t)) && !u[c] && (t[c] = e[c], u[c] = !0);
337
337
  e = n !== !1 && pe(e);
338
338
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
339
339
  return t;
@@ -351,7 +351,7 @@ const It = (e, t, n, { allOwnKeys: r } = {}) => (_(t, (s, a) => {
351
351
  n[t] = e[t];
352
352
  return n;
353
353
  }, en = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && pe(Uint8Array)), tn = (e, t) => {
354
- const r = (e && e[ue]).call(e);
354
+ const r = (e && e[fe]).call(e);
355
355
  let s;
356
356
  for (; (s = r.next()) && !s.done; ) {
357
357
  const a = s.value;
@@ -389,17 +389,17 @@ const It = (e, t, n, { allOwnKeys: r } = {}) => (_(t, (s, a) => {
389
389
  });
390
390
  }
391
391
  });
392
- }, un = (e, t) => {
392
+ }, fn = (e, t) => {
393
393
  const n = {}, r = (s) => {
394
394
  s.forEach((a) => {
395
395
  n[a] = !0;
396
396
  });
397
397
  };
398
398
  return Z(e) ? r(e) : r(String(e).split(t)), n;
399
- }, fn = () => {
399
+ }, un = () => {
400
400
  }, on = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
401
401
  function ln(e) {
402
- return !!(e && p(e.append) && e[_e] === "FormData" && e[ue]);
402
+ return !!(e && p(e.append) && e[_e] === "FormData" && e[fe]);
403
403
  }
404
404
  const dn = (e) => {
405
405
  const t = new Array(10), n = (r, s) => {
@@ -411,9 +411,9 @@ const dn = (e) => {
411
411
  if (!("toJSON" in r)) {
412
412
  t[s] = r;
413
413
  const a = Z(r) ? [] : {};
414
- return _(r, (c, f) => {
414
+ return _(r, (c, u) => {
415
415
  const d = n(c, s + 1);
416
- !C(d) && (a[f] = d);
416
+ !C(d) && (a[u] = d);
417
417
  }), t[s] = void 0, a;
418
418
  }
419
419
  }
@@ -427,7 +427,7 @@ const dn = (e) => {
427
427
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
428
428
  typeof setImmediate == "function",
429
429
  p(F.postMessage)
430
- ), vn = typeof queueMicrotask < "u" ? queueMicrotask.bind(F) : typeof process < "u" && process.nextTick || st, Pn = (e) => e != null && p(e[ue]), u = {
430
+ ), vn = typeof queueMicrotask < "u" ? queueMicrotask.bind(F) : typeof process < "u" && process.nextTick || st, Pn = (e) => e != null && p(e[fe]), f = {
431
431
  isArray: Z,
432
432
  isArrayBuffer: $e,
433
433
  isBuffer: K,
@@ -460,7 +460,7 @@ const dn = (e) => {
460
460
  stripBOM: Jt,
461
461
  inherits: Kt,
462
462
  toFlatObject: Qt,
463
- kindOf: fe,
463
+ kindOf: ue,
464
464
  kindOfTest: A,
465
465
  endsWith: _t,
466
466
  toArray: $t,
@@ -472,9 +472,9 @@ const dn = (e) => {
472
472
  // an alias to avoid ESLint no-prototype-builtins detection
473
473
  reduceDescriptors: rt,
474
474
  freezeMethods: an,
475
- toObjectSet: un,
475
+ toObjectSet: fn,
476
476
  toCamelCase: sn,
477
- noop: fn,
477
+ noop: un,
478
478
  toFiniteNumber: on,
479
479
  findKey: tt,
480
480
  global: F,
@@ -490,7 +490,7 @@ const dn = (e) => {
490
490
  function P(e, t, n, r, s) {
491
491
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
492
492
  }
493
- u.inherits(P, Error, {
493
+ f.inherits(P, Error, {
494
494
  toJSON: function() {
495
495
  return {
496
496
  // Standard
@@ -505,7 +505,7 @@ u.inherits(P, Error, {
505
505
  columnNumber: this.columnNumber,
506
506
  stack: this.stack,
507
507
  // Axios
508
- config: u.toJSONObject(this.config),
508
+ config: f.toJSONObject(this.config),
509
509
  code: this.code,
510
510
  status: this.status
511
511
  };
@@ -533,18 +533,18 @@ Object.defineProperties(P, at);
533
533
  Object.defineProperty(ct, "isAxiosError", { value: !0 });
534
534
  P.from = (e, t, n, r, s, a) => {
535
535
  const c = Object.create(ct);
536
- u.toFlatObject(e, c, function(i) {
536
+ f.toFlatObject(e, c, function(i) {
537
537
  return i !== Error.prototype;
538
538
  }, (o) => o !== "isAxiosError");
539
- const f = e && e.message ? e.message : "Error", d = t == null && e ? e.code : t;
540
- return P.call(c, f, d, n, r, s), e && c.cause == null && Object.defineProperty(c, "cause", { value: e, configurable: !0 }), c.name = e && e.name || "Error", a && Object.assign(c, a), c;
539
+ const u = e && e.message ? e.message : "Error", d = t == null && e ? e.code : t;
540
+ return P.call(c, u, d, n, r, s), e && c.cause == null && Object.defineProperty(c, "cause", { value: e, configurable: !0 }), c.name = e && e.name || "Error", a && Object.assign(c, a), c;
541
541
  };
542
542
  const wn = null;
543
543
  function be(e) {
544
- return u.isPlainObject(e) || u.isArray(e);
544
+ return f.isPlainObject(e) || f.isArray(e);
545
545
  }
546
546
  function it(e) {
547
- return u.endsWith(e, "[]") ? e.slice(0, -2) : e;
547
+ return f.endsWith(e, "[]") ? e.slice(0, -2) : e;
548
548
  }
549
549
  function Le(e, t, n) {
550
550
  return e ? e.concat(t).map(function(s, a) {
@@ -552,42 +552,42 @@ function Le(e, t, n) {
552
552
  }).join(n ? "." : "") : t;
553
553
  }
554
554
  function Hn(e) {
555
- return u.isArray(e) && !e.some(be);
555
+ return f.isArray(e) && !e.some(be);
556
556
  }
557
- const mn = u.toFlatObject(u, {}, null, function(t) {
557
+ const mn = f.toFlatObject(f, {}, null, function(t) {
558
558
  return /^is[A-Z]/.test(t);
559
559
  });
560
560
  function le(e, t, n) {
561
- if (!u.isObject(e))
561
+ if (!f.isObject(e))
562
562
  throw new TypeError("target must be an object");
563
- t = t || new FormData(), n = u.toFlatObject(n, {
563
+ t = t || new FormData(), n = f.toFlatObject(n, {
564
564
  metaTokens: !0,
565
565
  dots: !1,
566
566
  indexes: !1
567
567
  }, !1, function(v, x) {
568
- return !u.isUndefined(x[v]);
568
+ return !f.isUndefined(x[v]);
569
569
  });
570
- const r = n.metaTokens, s = n.visitor || i, a = n.dots, c = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && u.isSpecCompliantForm(t);
571
- if (!u.isFunction(s))
570
+ const r = n.metaTokens, s = n.visitor || i, a = n.dots, c = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && f.isSpecCompliantForm(t);
571
+ if (!f.isFunction(s))
572
572
  throw new TypeError("visitor must be a function");
573
573
  function o(l) {
574
574
  if (l === null) return "";
575
- if (u.isDate(l))
575
+ if (f.isDate(l))
576
576
  return l.toISOString();
577
- if (u.isBoolean(l))
577
+ if (f.isBoolean(l))
578
578
  return l.toString();
579
- if (!d && u.isBlob(l))
579
+ if (!d && f.isBlob(l))
580
580
  throw new P("Blob is not supported. Use a Buffer instead.");
581
- return u.isArrayBuffer(l) || u.isTypedArray(l) ? d && typeof Blob == "function" ? new Blob([l]) : Buffer.from(l) : l;
581
+ return f.isArrayBuffer(l) || f.isTypedArray(l) ? d && typeof Blob == "function" ? new Blob([l]) : Buffer.from(l) : l;
582
582
  }
583
583
  function i(l, v, x) {
584
584
  let H = l;
585
585
  if (l && !x && typeof l == "object") {
586
- if (u.endsWith(v, "{}"))
586
+ if (f.endsWith(v, "{}"))
587
587
  v = r ? v : v.slice(0, -2), l = JSON.stringify(l);
588
- else if (u.isArray(l) && Hn(l) || (u.isFileList(l) || u.endsWith(v, "[]")) && (H = u.toArray(l)))
588
+ else if (f.isArray(l) && Hn(l) || (f.isFileList(l) || f.endsWith(v, "[]")) && (H = f.toArray(l)))
589
589
  return v = it(v), H.forEach(function(j, N) {
590
- !(u.isUndefined(j) || j === null) && t.append(
590
+ !(f.isUndefined(j) || j === null) && t.append(
591
591
  // eslint-disable-next-line no-nested-ternary
592
592
  c === !0 ? Le([v], N, a) : c === null ? v : v + "[]",
593
593
  o(j)
@@ -602,21 +602,21 @@ function le(e, t, n) {
602
602
  isVisitable: be
603
603
  });
604
604
  function m(l, v) {
605
- if (!u.isUndefined(l)) {
605
+ if (!f.isUndefined(l)) {
606
606
  if (z.indexOf(l) !== -1)
607
607
  throw Error("Circular reference detected in " + v.join("."));
608
- z.push(l), u.forEach(l, function(H, b) {
609
- (!(u.isUndefined(H) || H === null) && s.call(
608
+ z.push(l), f.forEach(l, function(H, b) {
609
+ (!(f.isUndefined(H) || H === null) && s.call(
610
610
  t,
611
611
  H,
612
- u.isString(b) ? b.trim() : b,
612
+ f.isString(b) ? b.trim() : b,
613
613
  v,
614
614
  w
615
615
  )) === !0 && m(H, v ? v.concat(b) : [b]);
616
616
  }), z.pop();
617
617
  }
618
618
  }
619
- if (!u.isObject(e))
619
+ if (!f.isObject(e))
620
620
  throw new TypeError("data must be an object");
621
621
  return m(e), t;
622
622
  }
@@ -637,11 +637,11 @@ function Ee(e) {
637
637
  function De(e, t) {
638
638
  this._pairs = [], e && le(e, this, t);
639
639
  }
640
- const ut = De.prototype;
641
- ut.append = function(t, n) {
640
+ const ft = De.prototype;
641
+ ft.append = function(t, n) {
642
642
  this._pairs.push([t, n]);
643
643
  };
644
- ut.toString = function(t) {
644
+ ft.toString = function(t) {
645
645
  const n = t ? function(r) {
646
646
  return t.call(this, r, Ee);
647
647
  } : Ee;
@@ -652,16 +652,16 @@ ut.toString = function(t) {
652
652
  function jn(e) {
653
653
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
654
654
  }
655
- function ft(e, t, n) {
655
+ function ut(e, t, n) {
656
656
  if (!t)
657
657
  return e;
658
658
  const r = n && n.encode || jn;
659
- u.isFunction(n) && (n = {
659
+ f.isFunction(n) && (n = {
660
660
  serialize: n
661
661
  });
662
662
  const s = n && n.serialize;
663
663
  let a;
664
- if (s ? a = s(t, n) : a = u.isURLSearchParams(t) ? t.toString() : new De(t, n).toString(r), a) {
664
+ if (s ? a = s(t, n) : a = f.isURLSearchParams(t) ? t.toString() : new De(t, n).toString(r), a) {
665
665
  const c = e.indexOf("#");
666
666
  c !== -1 && (e = e.slice(0, c)), e += (e.indexOf("?") === -1 ? "?" : "&") + a;
667
667
  }
@@ -716,7 +716,7 @@ class Fe {
716
716
  * @returns {void}
717
717
  */
718
718
  forEach(t) {
719
- u.forEach(this.handlers, function(r) {
719
+ f.forEach(this.handlers, function(r) {
720
720
  r !== null && t(r);
721
721
  });
722
722
  }
@@ -748,13 +748,13 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", hn
748
748
  function An(e, t) {
749
749
  return le(e, new X.classes.URLSearchParams(), {
750
750
  visitor: function(n, r, s, a) {
751
- return X.isNode && u.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
751
+ return X.isNode && f.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
752
752
  },
753
753
  ...t
754
754
  });
755
755
  }
756
756
  function Tn(e) {
757
- return u.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
757
+ return f.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
758
758
  }
759
759
  function Yn(e) {
760
760
  const t = {}, n = Object.keys(e);
@@ -769,21 +769,21 @@ function lt(e) {
769
769
  function t(n, r, s, a) {
770
770
  let c = n[a++];
771
771
  if (c === "__proto__") return !0;
772
- const f = Number.isFinite(+c), d = a >= n.length;
773
- return c = !c && u.isArray(s) ? s.length : c, d ? (u.hasOwnProp(s, c) ? s[c] = [s[c], r] : s[c] = r, !f) : ((!s[c] || !u.isObject(s[c])) && (s[c] = []), t(n, r, s[c], a) && u.isArray(s[c]) && (s[c] = Yn(s[c])), !f);
772
+ const u = Number.isFinite(+c), d = a >= n.length;
773
+ return c = !c && f.isArray(s) ? s.length : c, d ? (f.hasOwnProp(s, c) ? s[c] = [s[c], r] : s[c] = r, !u) : ((!s[c] || !f.isObject(s[c])) && (s[c] = []), t(n, r, s[c], a) && f.isArray(s[c]) && (s[c] = Yn(s[c])), !u);
774
774
  }
775
- if (u.isFormData(e) && u.isFunction(e.entries)) {
775
+ if (f.isFormData(e) && f.isFunction(e.entries)) {
776
776
  const n = {};
777
- return u.forEachEntry(e, (r, s) => {
777
+ return f.forEachEntry(e, (r, s) => {
778
778
  t(Tn(r), s, n, 0);
779
779
  }), n;
780
780
  }
781
781
  return null;
782
782
  }
783
783
  function Mn(e, t, n) {
784
- if (u.isString(e))
784
+ if (f.isString(e))
785
785
  try {
786
- return (t || JSON.parse)(e), u.trim(e);
786
+ return (t || JSON.parse)(e), f.trim(e);
787
787
  } catch (r) {
788
788
  if (r.name !== "SyntaxError")
789
789
  throw r;
@@ -794,23 +794,23 @@ const $ = {
794
794
  transitional: ot,
795
795
  adapter: ["xhr", "http", "fetch"],
796
796
  transformRequest: [function(t, n) {
797
- const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, a = u.isObject(t);
798
- if (a && u.isHTMLForm(t) && (t = new FormData(t)), u.isFormData(t))
797
+ const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, a = f.isObject(t);
798
+ if (a && f.isHTMLForm(t) && (t = new FormData(t)), f.isFormData(t))
799
799
  return s ? JSON.stringify(lt(t)) : t;
800
- if (u.isArrayBuffer(t) || u.isBuffer(t) || u.isStream(t) || u.isFile(t) || u.isBlob(t) || u.isReadableStream(t))
800
+ if (f.isArrayBuffer(t) || f.isBuffer(t) || f.isStream(t) || f.isFile(t) || f.isBlob(t) || f.isReadableStream(t))
801
801
  return t;
802
- if (u.isArrayBufferView(t))
802
+ if (f.isArrayBufferView(t))
803
803
  return t.buffer;
804
- if (u.isURLSearchParams(t))
804
+ if (f.isURLSearchParams(t))
805
805
  return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
806
- let f;
806
+ let u;
807
807
  if (a) {
808
808
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
809
809
  return An(t, this.formSerializer).toString();
810
- if ((f = u.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
810
+ if ((u = f.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
811
811
  const d = this.env && this.env.FormData;
812
812
  return le(
813
- f ? { "files[]": t } : t,
813
+ u ? { "files[]": t } : t,
814
814
  d && new d(),
815
815
  this.formSerializer
816
816
  );
@@ -820,15 +820,15 @@ const $ = {
820
820
  }],
821
821
  transformResponse: [function(t) {
822
822
  const n = this.transitional || $.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
823
- if (u.isResponse(t) || u.isReadableStream(t))
823
+ if (f.isResponse(t) || f.isReadableStream(t))
824
824
  return t;
825
- if (t && u.isString(t) && (r && !this.responseType || s)) {
825
+ if (t && f.isString(t) && (r && !this.responseType || s)) {
826
826
  const c = !(n && n.silentJSONParsing) && s;
827
827
  try {
828
828
  return JSON.parse(t, this.parseReviver);
829
- } catch (f) {
829
+ } catch (u) {
830
830
  if (c)
831
- throw f.name === "SyntaxError" ? P.from(f, P.ERR_BAD_RESPONSE, this, null, this.response) : f;
831
+ throw u.name === "SyntaxError" ? P.from(u, P.ERR_BAD_RESPONSE, this, null, this.response) : u;
832
832
  }
833
833
  }
834
834
  return t;
@@ -856,10 +856,10 @@ const $ = {
856
856
  }
857
857
  }
858
858
  };
859
- u.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
859
+ f.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
860
860
  $.headers[e] = {};
861
861
  });
862
- const Gn = u.toObjectSet([
862
+ const Gn = f.toObjectSet([
863
863
  "age",
864
864
  "authorization",
865
865
  "content-length",
@@ -889,7 +889,7 @@ function I(e) {
889
889
  return e && String(e).trim().toLowerCase();
890
890
  }
891
891
  function ce(e) {
892
- return e === !1 || e == null ? e : u.isArray(e) ? e.map(ce) : String(e);
892
+ return e === !1 || e == null ? e : f.isArray(e) ? e.map(ce) : String(e);
893
893
  }
894
894
  function gn(e) {
895
895
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
@@ -900,12 +900,12 @@ function gn(e) {
900
900
  }
901
901
  const Ln = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
902
902
  function ve(e, t, n, r, s) {
903
- if (u.isFunction(r))
903
+ if (f.isFunction(r))
904
904
  return r.call(this, t, n);
905
- if (s && (t = n), !!u.isString(t)) {
906
- if (u.isString(r))
905
+ if (s && (t = n), !!f.isString(t)) {
906
+ if (f.isString(r))
907
907
  return t.indexOf(r) !== -1;
908
- if (u.isRegExp(r))
908
+ if (f.isRegExp(r))
909
909
  return r.test(t);
910
910
  }
911
911
  }
@@ -913,7 +913,7 @@ function En(e) {
913
913
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
914
914
  }
915
915
  function Fn(e, t) {
916
- const n = u.toCamelCase(" " + t);
916
+ const n = f.toCamelCase(" " + t);
917
917
  ["get", "set", "has"].forEach((r) => {
918
918
  Object.defineProperty(e, r + n, {
919
919
  value: function(s, a, c) {
@@ -929,42 +929,42 @@ let D = class {
929
929
  }
930
930
  set(t, n, r) {
931
931
  const s = this;
932
- function a(f, d, o) {
932
+ function a(u, d, o) {
933
933
  const i = I(d);
934
934
  if (!i)
935
935
  throw new Error("header name must be a non-empty string");
936
- const z = u.findKey(s, i);
937
- (!z || s[z] === void 0 || o === !0 || o === void 0 && s[z] !== !1) && (s[z || d] = ce(f));
936
+ const z = f.findKey(s, i);
937
+ (!z || s[z] === void 0 || o === !0 || o === void 0 && s[z] !== !1) && (s[z || d] = ce(u));
938
938
  }
939
- const c = (f, d) => u.forEach(f, (o, i) => a(o, i, d));
940
- if (u.isPlainObject(t) || t instanceof this.constructor)
939
+ const c = (u, d) => f.forEach(u, (o, i) => a(o, i, d));
940
+ if (f.isPlainObject(t) || t instanceof this.constructor)
941
941
  c(t, n);
942
- else if (u.isString(t) && (t = t.trim()) && !Ln(t))
942
+ else if (f.isString(t) && (t = t.trim()) && !Ln(t))
943
943
  c(Wn(t), n);
944
- else if (u.isObject(t) && u.isIterable(t)) {
945
- let f = {}, d, o;
944
+ else if (f.isObject(t) && f.isIterable(t)) {
945
+ let u = {}, d, o;
946
946
  for (const i of t) {
947
- if (!u.isArray(i))
947
+ if (!f.isArray(i))
948
948
  throw TypeError("Object iterator must return a key-value pair");
949
- f[o = i[0]] = (d = f[o]) ? u.isArray(d) ? [...d, i[1]] : [d, i[1]] : i[1];
949
+ u[o = i[0]] = (d = u[o]) ? f.isArray(d) ? [...d, i[1]] : [d, i[1]] : i[1];
950
950
  }
951
- c(f, n);
951
+ c(u, n);
952
952
  } else
953
953
  t != null && a(n, t, r);
954
954
  return this;
955
955
  }
956
956
  get(t, n) {
957
957
  if (t = I(t), t) {
958
- const r = u.findKey(this, t);
958
+ const r = f.findKey(this, t);
959
959
  if (r) {
960
960
  const s = this[r];
961
961
  if (!n)
962
962
  return s;
963
963
  if (n === !0)
964
964
  return gn(s);
965
- if (u.isFunction(n))
965
+ if (f.isFunction(n))
966
966
  return n.call(this, s, r);
967
- if (u.isRegExp(n))
967
+ if (f.isRegExp(n))
968
968
  return n.exec(s);
969
969
  throw new TypeError("parser must be boolean|regexp|function");
970
970
  }
@@ -972,7 +972,7 @@ let D = class {
972
972
  }
973
973
  has(t, n) {
974
974
  if (t = I(t), t) {
975
- const r = u.findKey(this, t);
975
+ const r = f.findKey(this, t);
976
976
  return !!(r && this[r] !== void 0 && (!n || ve(this, this[r], r, n)));
977
977
  }
978
978
  return !1;
@@ -982,11 +982,11 @@ let D = class {
982
982
  let s = !1;
983
983
  function a(c) {
984
984
  if (c = I(c), c) {
985
- const f = u.findKey(r, c);
986
- f && (!n || ve(r, r[f], f, n)) && (delete r[f], s = !0);
985
+ const u = f.findKey(r, c);
986
+ u && (!n || ve(r, r[u], u, n)) && (delete r[u], s = !0);
987
987
  }
988
988
  }
989
- return u.isArray(t) ? t.forEach(a) : a(t), s;
989
+ return f.isArray(t) ? t.forEach(a) : a(t), s;
990
990
  }
991
991
  clear(t) {
992
992
  const n = Object.keys(this);
@@ -999,14 +999,14 @@ let D = class {
999
999
  }
1000
1000
  normalize(t) {
1001
1001
  const n = this, r = {};
1002
- return u.forEach(this, (s, a) => {
1003
- const c = u.findKey(r, a);
1002
+ return f.forEach(this, (s, a) => {
1003
+ const c = f.findKey(r, a);
1004
1004
  if (c) {
1005
1005
  n[c] = ce(s), delete n[a];
1006
1006
  return;
1007
1007
  }
1008
- const f = t ? En(a) : String(a).trim();
1009
- f !== a && delete n[a], n[f] = ce(s), r[f] = !0;
1008
+ const u = t ? En(a) : String(a).trim();
1009
+ u !== a && delete n[a], n[u] = ce(s), r[u] = !0;
1010
1010
  }), this;
1011
1011
  }
1012
1012
  concat(...t) {
@@ -1014,8 +1014,8 @@ let D = class {
1014
1014
  }
1015
1015
  toJSON(t) {
1016
1016
  const n = /* @__PURE__ */ Object.create(null);
1017
- return u.forEach(this, (r, s) => {
1018
- r != null && r !== !1 && (n[s] = t && u.isArray(r) ? r.join(", ") : r);
1017
+ return f.forEach(this, (r, s) => {
1018
+ r != null && r !== !1 && (n[s] = t && f.isArray(r) ? r.join(", ") : r);
1019
1019
  }), n;
1020
1020
  }
1021
1021
  [Symbol.iterator]() {
@@ -1043,14 +1043,14 @@ let D = class {
1043
1043
  accessors: {}
1044
1044
  }).accessors, s = this.prototype;
1045
1045
  function a(c) {
1046
- const f = I(c);
1047
- r[f] || (Fn(s, c), r[f] = !0);
1046
+ const u = I(c);
1047
+ r[u] || (Fn(s, c), r[u] = !0);
1048
1048
  }
1049
- return u.isArray(t) ? t.forEach(a) : a(t), this;
1049
+ return f.isArray(t) ? t.forEach(a) : a(t), this;
1050
1050
  }
1051
1051
  };
1052
1052
  D.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
1053
- u.reduceDescriptors(D.prototype, ({ value: e }, t) => {
1053
+ f.reduceDescriptors(D.prototype, ({ value: e }, t) => {
1054
1054
  let n = t[0].toUpperCase() + t.slice(1);
1055
1055
  return {
1056
1056
  get: () => e,
@@ -1059,12 +1059,12 @@ u.reduceDescriptors(D.prototype, ({ value: e }, t) => {
1059
1059
  }
1060
1060
  };
1061
1061
  });
1062
- u.freezeMethods(D);
1062
+ f.freezeMethods(D);
1063
1063
  function Pe(e, t) {
1064
1064
  const n = this || $, r = t || n, s = D.from(r.headers);
1065
1065
  let a = r.data;
1066
- return u.forEach(e, function(f) {
1067
- a = f.call(n, a, s.normalize(), t ? t.status : void 0);
1066
+ return f.forEach(e, function(u) {
1067
+ a = u.call(n, a, s.normalize(), t ? t.status : void 0);
1068
1068
  }), s.normalize(), a;
1069
1069
  }
1070
1070
  function dt(e) {
@@ -1073,7 +1073,7 @@ function dt(e) {
1073
1073
  function k(e, t, n) {
1074
1074
  P.call(this, e ?? "canceled", P.ERR_CANCELED, t, n), this.name = "CanceledError";
1075
1075
  }
1076
- u.inherits(k, P, {
1076
+ f.inherits(k, P, {
1077
1077
  __CANCEL__: !0
1078
1078
  });
1079
1079
  function zt(e, t, n) {
@@ -1122,17 +1122,17 @@ const ie = (e, t, n = 3) => {
1122
1122
  let r = 0;
1123
1123
  const s = Vn(50, 250);
1124
1124
  return Rn((a) => {
1125
- const c = a.loaded, f = a.lengthComputable ? a.total : void 0, d = c - r, o = s(d), i = c <= f;
1125
+ const c = a.loaded, u = a.lengthComputable ? a.total : void 0, d = c - r, o = s(d), i = c <= u;
1126
1126
  r = c;
1127
1127
  const z = {
1128
1128
  loaded: c,
1129
- total: f,
1130
- progress: f ? c / f : void 0,
1129
+ total: u,
1130
+ progress: u ? c / u : void 0,
1131
1131
  bytes: d,
1132
1132
  rate: o || void 0,
1133
- estimated: o && f && i ? (f - c) / o : void 0,
1133
+ estimated: o && u && i ? (u - c) / o : void 0,
1134
1134
  event: a,
1135
- lengthComputable: f != null,
1135
+ lengthComputable: u != null,
1136
1136
  [t ? "download" : "upload"]: !0
1137
1137
  };
1138
1138
  e(z);
@@ -1144,7 +1144,7 @@ const ie = (e, t, n = 3) => {
1144
1144
  total: e,
1145
1145
  loaded: r
1146
1146
  }), t[1]];
1147
- }, Re = (e) => (...t) => u.asap(() => e(...t)), qn = X.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, X.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
1147
+ }, Re = (e) => (...t) => f.asap(() => e(...t)), qn = X.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, X.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
1148
1148
  new URL(X.origin),
1149
1149
  X.navigator && /(msie|trident)/i.test(X.navigator.userAgent)
1150
1150
  ) : () => !0, Cn = X.hasStandardBrowserEnv ? (
@@ -1152,8 +1152,8 @@ const ie = (e, t, n = 3) => {
1152
1152
  {
1153
1153
  write(e, t, n, r, s, a, c) {
1154
1154
  if (typeof document > "u") return;
1155
- const f = [`${e}=${encodeURIComponent(t)}`];
1156
- u.isNumber(n) && f.push(`expires=${new Date(n).toUTCString()}`), u.isString(r) && f.push(`path=${r}`), u.isString(s) && f.push(`domain=${s}`), a === !0 && f.push("secure"), u.isString(c) && f.push(`SameSite=${c}`), document.cookie = f.join("; ");
1155
+ const u = [`${e}=${encodeURIComponent(t)}`];
1156
+ f.isNumber(n) && u.push(`expires=${new Date(n).toUTCString()}`), f.isString(r) && u.push(`path=${r}`), f.isString(s) && u.push(`domain=${s}`), a === !0 && u.push("secure"), f.isString(c) && u.push(`SameSite=${c}`), document.cookie = u.join("; ");
1157
1157
  },
1158
1158
  read(e) {
1159
1159
  if (typeof document > "u") return null;
@@ -1191,25 +1191,25 @@ function V(e, t) {
1191
1191
  t = t || {};
1192
1192
  const n = {};
1193
1193
  function r(o, i, z, w) {
1194
- return u.isPlainObject(o) && u.isPlainObject(i) ? u.merge.call({ caseless: w }, o, i) : u.isPlainObject(i) ? u.merge({}, i) : u.isArray(i) ? i.slice() : i;
1194
+ return f.isPlainObject(o) && f.isPlainObject(i) ? f.merge.call({ caseless: w }, o, i) : f.isPlainObject(i) ? f.merge({}, i) : f.isArray(i) ? i.slice() : i;
1195
1195
  }
1196
1196
  function s(o, i, z, w) {
1197
- if (u.isUndefined(i)) {
1198
- if (!u.isUndefined(o))
1197
+ if (f.isUndefined(i)) {
1198
+ if (!f.isUndefined(o))
1199
1199
  return r(void 0, o, z, w);
1200
1200
  } else return r(o, i, z, w);
1201
1201
  }
1202
1202
  function a(o, i) {
1203
- if (!u.isUndefined(i))
1203
+ if (!f.isUndefined(i))
1204
1204
  return r(void 0, i);
1205
1205
  }
1206
1206
  function c(o, i) {
1207
- if (u.isUndefined(i)) {
1208
- if (!u.isUndefined(o))
1207
+ if (f.isUndefined(i)) {
1208
+ if (!f.isUndefined(o))
1209
1209
  return r(void 0, o);
1210
1210
  } else return r(void 0, i);
1211
1211
  }
1212
- function f(o, i, z) {
1212
+ function u(o, i, z) {
1213
1213
  if (z in t)
1214
1214
  return r(o, i);
1215
1215
  if (z in e)
@@ -1243,31 +1243,31 @@ function V(e, t) {
1243
1243
  cancelToken: c,
1244
1244
  socketPath: c,
1245
1245
  responseEncoding: c,
1246
- validateStatus: f,
1246
+ validateStatus: u,
1247
1247
  headers: (o, i, z) => s(qe(o), qe(i), z, !0)
1248
1248
  };
1249
- return u.forEach(Object.keys({ ...e, ...t }), function(i) {
1249
+ return f.forEach(Object.keys({ ...e, ...t }), function(i) {
1250
1250
  const z = d[i] || s, w = z(e[i], t[i], i);
1251
- u.isUndefined(w) && z !== f || (n[i] = w);
1251
+ f.isUndefined(w) && z !== u || (n[i] = w);
1252
1252
  }), n;
1253
1253
  }
1254
1254
  const vt = (e) => {
1255
1255
  const t = V({}, e);
1256
- let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: a, headers: c, auth: f } = t;
1257
- if (t.headers = c = D.from(c), t.url = ft(xt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), f && c.set(
1256
+ let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: a, headers: c, auth: u } = t;
1257
+ if (t.headers = c = D.from(c), t.url = ut(xt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), u && c.set(
1258
1258
  "Authorization",
1259
- "Basic " + btoa((f.username || "") + ":" + (f.password ? unescape(encodeURIComponent(f.password)) : ""))
1260
- ), u.isFormData(n)) {
1259
+ "Basic " + btoa((u.username || "") + ":" + (u.password ? unescape(encodeURIComponent(u.password)) : ""))
1260
+ ), f.isFormData(n)) {
1261
1261
  if (X.hasStandardBrowserEnv || X.hasStandardBrowserWebWorkerEnv)
1262
1262
  c.setContentType(void 0);
1263
- else if (u.isFunction(n.getHeaders)) {
1263
+ else if (f.isFunction(n.getHeaders)) {
1264
1264
  const d = n.getHeaders(), o = ["content-type", "content-length"];
1265
1265
  Object.entries(d).forEach(([i, z]) => {
1266
1266
  o.includes(i.toLowerCase()) && c.set(i, z);
1267
1267
  });
1268
1268
  }
1269
1269
  }
1270
- if (X.hasStandardBrowserEnv && (r && u.isFunction(r) && (r = r(t)), r || r !== !1 && qn(t.url))) {
1270
+ if (X.hasStandardBrowserEnv && (r && f.isFunction(r) && (r = r(t)), r || r !== !1 && qn(t.url))) {
1271
1271
  const d = s && a && Cn.read(a);
1272
1272
  d && c.set(s, d);
1273
1273
  }
@@ -1277,7 +1277,7 @@ const vt = (e) => {
1277
1277
  const s = vt(e);
1278
1278
  let a = s.data;
1279
1279
  const c = D.from(s.headers).normalize();
1280
- let { responseType: f, onUploadProgress: d, onDownloadProgress: o } = s, i, z, w, m, l;
1280
+ let { responseType: u, onUploadProgress: d, onDownloadProgress: o } = s, i, z, w, m, l;
1281
1281
  function v() {
1282
1282
  m && m(), l && l(), s.cancelToken && s.cancelToken.unsubscribe(i), s.signal && s.signal.removeEventListener("abort", i);
1283
1283
  }
@@ -1289,7 +1289,7 @@ const vt = (e) => {
1289
1289
  const j = D.from(
1290
1290
  "getAllResponseHeaders" in x && x.getAllResponseHeaders()
1291
1291
  ), y = {
1292
- data: !f || f === "text" || f === "json" ? x.responseText : x.response,
1292
+ data: !u || u === "text" || u === "json" ? x.responseText : x.response,
1293
1293
  status: x.status,
1294
1294
  statusText: x.statusText,
1295
1295
  headers: j,
@@ -1318,9 +1318,9 @@ const vt = (e) => {
1318
1318
  e,
1319
1319
  x
1320
1320
  )), x = null;
1321
- }, a === void 0 && c.setContentType(null), "setRequestHeader" in x && u.forEach(c.toJSON(), function(N, y) {
1321
+ }, a === void 0 && c.setContentType(null), "setRequestHeader" in x && f.forEach(c.toJSON(), function(N, y) {
1322
1322
  x.setRequestHeader(y, N);
1323
- }), u.isUndefined(s.withCredentials) || (x.withCredentials = !!s.withCredentials), f && f !== "json" && (x.responseType = s.responseType), o && ([w, l] = ie(o, !0), x.addEventListener("progress", w)), d && x.upload && ([z, m] = ie(d), x.upload.addEventListener("progress", z), x.upload.addEventListener("loadend", m)), (s.cancelToken || s.signal) && (i = (j) => {
1323
+ }), f.isUndefined(s.withCredentials) || (x.withCredentials = !!s.withCredentials), u && u !== "json" && (x.responseType = s.responseType), o && ([w, l] = ie(o, !0), x.addEventListener("progress", w)), d && x.upload && ([z, m] = ie(d), x.upload.addEventListener("progress", z), x.upload.addEventListener("loadend", m)), (s.cancelToken || s.signal) && (i = (j) => {
1324
1324
  x && (r(!j || j.type ? new k(null, e, x) : j), x.abort(), x = null);
1325
1325
  }, s.cancelToken && s.cancelToken.subscribe(i), s.signal && (s.signal.aborted ? i() : s.signal.addEventListener("abort", i)));
1326
1326
  const b = Bn(s.url);
@@ -1336,7 +1336,7 @@ const vt = (e) => {
1336
1336
  let r = new AbortController(), s;
1337
1337
  const a = function(o) {
1338
1338
  if (!s) {
1339
- s = !0, f();
1339
+ s = !0, u();
1340
1340
  const i = o instanceof Error ? o : this.reason;
1341
1341
  r.abort(i instanceof P ? i : new k(i instanceof Error ? i.message : i));
1342
1342
  }
@@ -1344,14 +1344,14 @@ const vt = (e) => {
1344
1344
  let c = t && setTimeout(() => {
1345
1345
  c = null, a(new P(`timeout ${t} of ms exceeded`, P.ETIMEDOUT));
1346
1346
  }, t);
1347
- const f = () => {
1347
+ const u = () => {
1348
1348
  e && (c && clearTimeout(c), c = null, e.forEach((o) => {
1349
1349
  o.unsubscribe ? o.unsubscribe(a) : o.removeEventListener("abort", a);
1350
1350
  }), e = null);
1351
1351
  };
1352
1352
  e.forEach((o) => o.addEventListener("abort", a));
1353
1353
  const { signal: d } = r;
1354
- return d.unsubscribe = () => u.asap(f), d;
1354
+ return d.unsubscribe = () => f.asap(u), d;
1355
1355
  }
1356
1356
  }, Jn = function* (e, t) {
1357
1357
  let n = e.byteLength;
@@ -1383,7 +1383,7 @@ const vt = (e) => {
1383
1383
  }
1384
1384
  }, Ce = (e, t, n, r) => {
1385
1385
  const s = Kn(e, t);
1386
- let a = 0, c, f = (d) => {
1386
+ let a = 0, c, u = (d) => {
1387
1387
  c || (c = !0, r && r(d));
1388
1388
  };
1389
1389
  return new ReadableStream({
@@ -1391,7 +1391,7 @@ const vt = (e) => {
1391
1391
  try {
1392
1392
  const { done: o, value: i } = await s.next();
1393
1393
  if (o) {
1394
- f(), d.close();
1394
+ u(), d.close();
1395
1395
  return;
1396
1396
  }
1397
1397
  let z = i.byteLength;
@@ -1401,35 +1401,35 @@ const vt = (e) => {
1401
1401
  }
1402
1402
  d.enqueue(new Uint8Array(i));
1403
1403
  } catch (o) {
1404
- throw f(o), o;
1404
+ throw u(o), o;
1405
1405
  }
1406
1406
  },
1407
1407
  cancel(d) {
1408
- return f(d), s.return();
1408
+ return u(d), s.return();
1409
1409
  }
1410
1410
  }, {
1411
1411
  highWaterMark: 2
1412
1412
  });
1413
- }, Ze = 64 * 1024, { isFunction: re } = u, _n = (({ Request: e, Response: t }) => ({
1413
+ }, Ze = 64 * 1024, { isFunction: re } = f, _n = (({ Request: e, Response: t }) => ({
1414
1414
  Request: e,
1415
1415
  Response: t
1416
- }))(u.global), {
1416
+ }))(f.global), {
1417
1417
  ReadableStream: ke,
1418
1418
  TextEncoder: Ue
1419
- } = u.global, Se = (e, ...t) => {
1419
+ } = f.global, Se = (e, ...t) => {
1420
1420
  try {
1421
1421
  return !!e(...t);
1422
1422
  } catch {
1423
1423
  return !1;
1424
1424
  }
1425
1425
  }, $n = (e) => {
1426
- e = u.merge.call({
1426
+ e = f.merge.call({
1427
1427
  skipUndefined: !0
1428
1428
  }, _n, e);
1429
1429
  const { fetch: t, Request: n, Response: r } = e, s = t ? re(t) : typeof fetch == "function", a = re(n), c = re(r);
1430
1430
  if (!s)
1431
1431
  return !1;
1432
- const f = s && re(ke), d = s && (typeof Ue == "function" ? /* @__PURE__ */ ((l) => (v) => l.encode(v))(new Ue()) : async (l) => new Uint8Array(await new n(l).arrayBuffer())), o = a && f && Se(() => {
1432
+ const u = s && re(ke), d = s && (typeof Ue == "function" ? /* @__PURE__ */ ((l) => (v) => l.encode(v))(new Ue()) : async (l) => new Uint8Array(await new n(l).arrayBuffer())), o = a && u && Se(() => {
1433
1433
  let l = !1;
1434
1434
  const v = new n(X.origin, {
1435
1435
  body: new ke(),
@@ -1439,7 +1439,7 @@ const vt = (e) => {
1439
1439
  }
1440
1440
  }).headers.has("Content-Type");
1441
1441
  return l && !v;
1442
- }), i = c && f && Se(() => u.isReadableStream(new r("").body)), z = {
1442
+ }), i = c && u && Se(() => f.isReadableStream(new r("").body)), z = {
1443
1443
  stream: i && ((l) => l.body)
1444
1444
  };
1445
1445
  s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((l) => {
@@ -1453,19 +1453,19 @@ const vt = (e) => {
1453
1453
  const w = async (l) => {
1454
1454
  if (l == null)
1455
1455
  return 0;
1456
- if (u.isBlob(l))
1456
+ if (f.isBlob(l))
1457
1457
  return l.size;
1458
- if (u.isSpecCompliantForm(l))
1458
+ if (f.isSpecCompliantForm(l))
1459
1459
  return (await new n(X.origin, {
1460
1460
  method: "POST",
1461
1461
  body: l
1462
1462
  }).arrayBuffer()).byteLength;
1463
- if (u.isArrayBufferView(l) || u.isArrayBuffer(l))
1463
+ if (f.isArrayBufferView(l) || f.isArrayBuffer(l))
1464
1464
  return l.byteLength;
1465
- if (u.isURLSearchParams(l) && (l = l + ""), u.isString(l))
1465
+ if (f.isURLSearchParams(l) && (l = l + ""), f.isString(l))
1466
1466
  return (await d(l)).byteLength;
1467
1467
  }, m = async (l, v) => {
1468
- const x = u.toFiniteNumber(l.getContentLength());
1468
+ const x = f.toFiniteNumber(l.getContentLength());
1469
1469
  return x ?? w(v);
1470
1470
  };
1471
1471
  return async (l) => {
@@ -1496,7 +1496,7 @@ const vt = (e) => {
1496
1496
  body: H,
1497
1497
  duplex: "half"
1498
1498
  }), R;
1499
- if (u.isFormData(H) && (R = W.headers.get("content-type")) && ze.setContentType(R), W.body) {
1499
+ if (f.isFormData(H) && (R = W.headers.get("content-type")) && ze.setContentType(R), W.body) {
1500
1500
  const [xe, ne] = Ve(
1501
1501
  Ye,
1502
1502
  ie(Re(L))
@@ -1504,7 +1504,7 @@ const vt = (e) => {
1504
1504
  H = Ce(W.body, Ze, xe, ne);
1505
1505
  }
1506
1506
  }
1507
- u.isString(ee) || (ee = ee ? "include" : "omit");
1507
+ f.isString(ee) || (ee = ee ? "include" : "omit");
1508
1508
  const T = a && "credentials" in n.prototype, Me = {
1509
1509
  ...Ae,
1510
1510
  signal: te,
@@ -1522,7 +1522,7 @@ const vt = (e) => {
1522
1522
  ["status", "statusText", "headers"].forEach((We) => {
1523
1523
  W[We] = G[We];
1524
1524
  });
1525
- const R = u.toFiniteNumber(G.headers.get("content-length")), [xe, ne] = y && Ve(
1525
+ const R = f.toFiniteNumber(G.headers.get("content-length")), [xe, ne] = y && Ve(
1526
1526
  R,
1527
1527
  ie(Re(y), !0)
1528
1528
  ) || [];
@@ -1534,7 +1534,7 @@ const vt = (e) => {
1534
1534
  );
1535
1535
  }
1536
1536
  h = h || "text";
1537
- let Ot = await z[u.findKey(z, h) || "text"](G, l);
1537
+ let Ot = await z[f.findKey(z, h) || "text"](G, l);
1538
1538
  return !Ge && E && E(), await new Promise((W, R) => {
1539
1539
  zt(W, R, {
1540
1540
  data: Ot,
@@ -1561,9 +1561,9 @@ const vt = (e) => {
1561
1561
  s,
1562
1562
  n
1563
1563
  ];
1564
- let c = a.length, f = c, d, o, i = er;
1565
- for (; f--; )
1566
- d = a[f], o = i.get(d), o === void 0 && i.set(d, o = f ? /* @__PURE__ */ new Map() : $n(t)), i = o;
1564
+ let c = a.length, u = c, d, o, i = er;
1565
+ for (; u--; )
1566
+ d = a[u], o = i.get(d), o === void 0 && i.set(d, o = u ? /* @__PURE__ */ new Map() : $n(t)), i = o;
1567
1567
  return o;
1568
1568
  };
1569
1569
  Pt();
@@ -1574,7 +1574,7 @@ const ye = {
1574
1574
  get: Pt
1575
1575
  }
1576
1576
  };
1577
- u.forEach(ye, (e, t) => {
1577
+ f.forEach(ye, (e, t) => {
1578
1578
  if (e) {
1579
1579
  try {
1580
1580
  Object.defineProperty(e, "name", { value: t });
@@ -1583,30 +1583,30 @@ u.forEach(ye, (e, t) => {
1583
1583
  Object.defineProperty(e, "adapterName", { value: t });
1584
1584
  }
1585
1585
  });
1586
- const Ie = (e) => `- ${e}`, tr = (e) => u.isFunction(e) || e === null || e === !1;
1586
+ const Ie = (e) => `- ${e}`, tr = (e) => f.isFunction(e) || e === null || e === !1;
1587
1587
  function nr(e, t) {
1588
- e = u.isArray(e) ? e : [e];
1588
+ e = f.isArray(e) ? e : [e];
1589
1589
  const { length: n } = e;
1590
1590
  let r, s;
1591
1591
  const a = {};
1592
1592
  for (let c = 0; c < n; c++) {
1593
1593
  r = e[c];
1594
- let f;
1595
- if (s = r, !tr(r) && (s = ye[(f = String(r)).toLowerCase()], s === void 0))
1596
- throw new P(`Unknown adapter '${f}'`);
1597
- if (s && (u.isFunction(s) || (s = s.get(t))))
1594
+ let u;
1595
+ if (s = r, !tr(r) && (s = ye[(u = String(r)).toLowerCase()], s === void 0))
1596
+ throw new P(`Unknown adapter '${u}'`);
1597
+ if (s && (f.isFunction(s) || (s = s.get(t))))
1598
1598
  break;
1599
- a[f || "#" + c] = s;
1599
+ a[u || "#" + c] = s;
1600
1600
  }
1601
1601
  if (!s) {
1602
1602
  const c = Object.entries(a).map(
1603
1603
  ([d, o]) => `adapter ${d} ` + (o === !1 ? "is not supported by the environment" : "is not available in the build")
1604
1604
  );
1605
- let f = n ? c.length > 1 ? `since :
1605
+ let u = n ? c.length > 1 ? `since :
1606
1606
  ` + c.map(Ie).join(`
1607
1607
  `) : " " + Ie(c[0]) : "as no adapter specified";
1608
1608
  throw new P(
1609
- "There is no suitable adapter to dispatch the request " + f,
1609
+ "There is no suitable adapter to dispatch the request " + u,
1610
1610
  "ERR_NOT_SUPPORT"
1611
1611
  );
1612
1612
  }
@@ -1657,7 +1657,7 @@ de.transitional = function(t, n, r) {
1657
1657
  function s(a, c) {
1658
1658
  return "[Axios v" + Ht + "] Transitional option '" + a + "'" + c + (r ? ". " + r : "");
1659
1659
  }
1660
- return (a, c, f) => {
1660
+ return (a, c, u) => {
1661
1661
  if (t === !1)
1662
1662
  throw new P(
1663
1663
  s(c, " has been removed" + (n ? " in " + n : "")),
@@ -1668,7 +1668,7 @@ de.transitional = function(t, n, r) {
1668
1668
  c,
1669
1669
  " has been deprecated since v" + n + " and will be removed in the near future"
1670
1670
  )
1671
- )), t ? t(a, c, f) : !0;
1671
+ )), t ? t(a, c, u) : !0;
1672
1672
  };
1673
1673
  };
1674
1674
  de.spelling = function(t) {
@@ -1682,7 +1682,7 @@ function rr(e, t, n) {
1682
1682
  for (; s-- > 0; ) {
1683
1683
  const a = r[s], c = t[a];
1684
1684
  if (c) {
1685
- const f = e[a], d = f === void 0 || c(f, a, e);
1685
+ const u = e[a], d = u === void 0 || c(u, a, e);
1686
1686
  if (d !== !0)
1687
1687
  throw new P("option " + a + " must be " + d, P.ERR_BAD_OPTION_VALUE);
1688
1688
  continue;
@@ -1734,7 +1734,7 @@ let B = class {
1734
1734
  silentJSONParsing: Y.transitional(Y.boolean),
1735
1735
  forcedJSONParsing: Y.transitional(Y.boolean),
1736
1736
  clarifyTimeoutError: Y.transitional(Y.boolean)
1737
- }, !1), s != null && (u.isFunction(s) ? n.paramsSerializer = {
1737
+ }, !1), s != null && (f.isFunction(s) ? n.paramsSerializer = {
1738
1738
  serialize: s
1739
1739
  } : ae.assertOptions(s, {
1740
1740
  encode: Y.function,
@@ -1743,20 +1743,20 @@ let B = class {
1743
1743
  baseUrl: Y.spelling("baseURL"),
1744
1744
  withXsrfToken: Y.spelling("withXSRFToken")
1745
1745
  }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1746
- let c = a && u.merge(
1746
+ let c = a && f.merge(
1747
1747
  a.common,
1748
1748
  a[n.method]
1749
1749
  );
1750
- a && u.forEach(
1750
+ a && f.forEach(
1751
1751
  ["delete", "get", "head", "post", "put", "patch", "common"],
1752
1752
  (l) => {
1753
1753
  delete a[l];
1754
1754
  }
1755
1755
  ), n.headers = D.concat(c, a);
1756
- const f = [];
1756
+ const u = [];
1757
1757
  let d = !0;
1758
1758
  this.interceptors.request.forEach(function(v) {
1759
- typeof v.runWhen == "function" && v.runWhen(n) === !1 || (d = d && v.synchronous, f.unshift(v.fulfilled, v.rejected));
1759
+ typeof v.runWhen == "function" && v.runWhen(n) === !1 || (d = d && v.synchronous, u.unshift(v.fulfilled, v.rejected));
1760
1760
  });
1761
1761
  const o = [];
1762
1762
  this.interceptors.response.forEach(function(v) {
@@ -1765,14 +1765,14 @@ let B = class {
1765
1765
  let i, z = 0, w;
1766
1766
  if (!d) {
1767
1767
  const l = [Je.bind(this), void 0];
1768
- for (l.unshift(...f), l.push(...o), w = l.length, i = Promise.resolve(n); z < w; )
1768
+ for (l.unshift(...u), l.push(...o), w = l.length, i = Promise.resolve(n); z < w; )
1769
1769
  i = i.then(l[z++], l[z++]);
1770
1770
  return i;
1771
1771
  }
1772
- w = f.length;
1772
+ w = u.length;
1773
1773
  let m = n;
1774
1774
  for (; z < w; ) {
1775
- const l = f[z++], v = f[z++];
1775
+ const l = u[z++], v = u[z++];
1776
1776
  try {
1777
1777
  m = l(m);
1778
1778
  } catch (x) {
@@ -1792,10 +1792,10 @@ let B = class {
1792
1792
  getUri(t) {
1793
1793
  t = V(this.defaults, t);
1794
1794
  const n = xt(t.baseURL, t.url, t.allowAbsoluteUrls);
1795
- return ft(n, t.params, t.paramsSerializer);
1795
+ return ut(n, t.params, t.paramsSerializer);
1796
1796
  }
1797
1797
  };
1798
- u.forEach(["delete", "get", "head", "options"], function(t) {
1798
+ f.forEach(["delete", "get", "head", "options"], function(t) {
1799
1799
  B.prototype[t] = function(n, r) {
1800
1800
  return this.request(V(r || {}, {
1801
1801
  method: t,
@@ -1804,10 +1804,10 @@ u.forEach(["delete", "get", "head", "options"], function(t) {
1804
1804
  }));
1805
1805
  };
1806
1806
  });
1807
- u.forEach(["post", "put", "patch"], function(t) {
1807
+ f.forEach(["post", "put", "patch"], function(t) {
1808
1808
  function n(r) {
1809
- return function(a, c, f) {
1810
- return this.request(V(f || {}, {
1809
+ return function(a, c, u) {
1810
+ return this.request(V(u || {}, {
1811
1811
  method: t,
1812
1812
  headers: r ? {
1813
1813
  "Content-Type": "multipart/form-data"
@@ -1836,14 +1836,14 @@ let sr = class mt {
1836
1836
  r._listeners = null;
1837
1837
  }), this.promise.then = (s) => {
1838
1838
  let a;
1839
- const c = new Promise((f) => {
1840
- r.subscribe(f), a = f;
1839
+ const c = new Promise((u) => {
1840
+ r.subscribe(u), a = u;
1841
1841
  }).then(s);
1842
1842
  return c.cancel = function() {
1843
1843
  r.unsubscribe(a);
1844
1844
  }, c;
1845
- }, t(function(a, c, f) {
1846
- r.reason || (r.reason = new k(a, c, f), n(r.reason));
1845
+ }, t(function(a, c, u) {
1846
+ r.reason || (r.reason = new k(a, c, u), n(r.reason));
1847
1847
  });
1848
1848
  }
1849
1849
  /**
@@ -1898,7 +1898,7 @@ function cr(e) {
1898
1898
  };
1899
1899
  }
1900
1900
  function ar(e) {
1901
- return u.isObject(e) && e.isAxiosError === !0;
1901
+ return f.isObject(e) && e.isAxiosError === !0;
1902
1902
  }
1903
1903
  const Ne = {
1904
1904
  Continue: 100,
@@ -1976,7 +1976,7 @@ Object.entries(Ne).forEach(([e, t]) => {
1976
1976
  });
1977
1977
  function jt(e) {
1978
1978
  const t = new B(e), n = Qe(B.prototype.request, t);
1979
- return u.extend(n, B.prototype, t, { allOwnKeys: !0 }), u.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1979
+ return f.extend(n, B.prototype, t, { allOwnKeys: !0 }), f.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1980
1980
  return jt(V(e, s));
1981
1981
  }, n;
1982
1982
  }
@@ -1996,7 +1996,7 @@ O.spread = cr;
1996
1996
  O.isAxiosError = ar;
1997
1997
  O.mergeConfig = V;
1998
1998
  O.AxiosHeaders = D;
1999
- O.formToJSON = (e) => lt(u.isHTMLForm(e) ? new FormData(e) : e);
1999
+ O.formToJSON = (e) => lt(f.isHTMLForm(e) ? new FormData(e) : e);
2000
2000
  O.getAdapter = wt.getAdapter;
2001
2001
  O.HttpStatusCode = Ne;
2002
2002
  O.default = O;
@@ -2023,15 +2023,15 @@ const {
2023
2023
  const n = Math.floor(Date.now() / 1e3), r = t - n;
2024
2024
  return r <= 600 && r > 0;
2025
2025
  };
2026
- function ur(e, t) {
2026
+ function fr(e, t) {
2027
2027
  return e.interceptors.request.use(
2028
2028
  async (n) => {
2029
2029
  var s;
2030
2030
  if (!((s = n.url) != null && s.includes("/auth/user/refresh")) && ir(t)) {
2031
2031
  const { refreshToken: a } = t.getState();
2032
2032
  if (!await a()) {
2033
- const { logout: f } = t.getState();
2034
- return f(), Promise.reject(new Error("토큰 갱신 실패"));
2033
+ const { logout: u } = t.getState();
2034
+ return u(), Promise.reject(new Error("토큰 갱신 실패"));
2035
2035
  }
2036
2036
  }
2037
2037
  const { currentWorkspace: r } = t.getState();
@@ -2041,7 +2041,7 @@ function ur(e, t) {
2041
2041
  ), e.interceptors.response.use(
2042
2042
  (n) => n,
2043
2043
  (n) => {
2044
- var r, s, a, c, f, d, o;
2044
+ var r, s, a, c, u, d, o;
2045
2045
  if (n != null && n.config && Object.prototype.hasOwnProperty.call(n.config, "errorHandle") && !n.config.errorHandle)
2046
2046
  return Promise.reject(n);
2047
2047
  if (((r = n.response) == null ? void 0 : r.status) === 401 || ((s = n.response) == null ? void 0 : s.status) === 403) {
@@ -2049,13 +2049,13 @@ function ur(e, t) {
2049
2049
  i();
2050
2050
  } else if (n.code === "ECONNABORTED")
2051
2051
  n.config && n.config.withCredentials;
2052
- else if (((a = n.response) == null ? void 0 : a.status) === 400 || ((c = n.response) == null ? void 0 : c.status) === 402 || ((f = n.response) == null ? void 0 : f.status) === 412 || ((d = n.response) == null ? void 0 : d.status) === 500 || ((o = n.response) == null ? void 0 : o.status) === 503)
2052
+ else if (((a = n.response) == null ? void 0 : a.status) === 400 || ((c = n.response) == null ? void 0 : c.status) === 402 || ((u = n.response) == null ? void 0 : u.status) === 412 || ((d = n.response) == null ? void 0 : d.status) === 500 || ((o = n.response) == null ? void 0 : o.status) === 503)
2053
2053
  return Promise.reject(n);
2054
2054
  return Promise.reject(n);
2055
2055
  }
2056
2056
  ), e;
2057
2057
  }
2058
- function fr(e) {
2058
+ function ur(e) {
2059
2059
  let t = "";
2060
2060
  typeof window < "u" && window.location && (t = window.location.origin);
2061
2061
  const n = O.create({
@@ -2066,9 +2066,9 @@ function fr(e) {
2066
2066
  "Content-Type": "application/json"
2067
2067
  }
2068
2068
  });
2069
- ur(n, e);
2070
- async function r(f, d = {}) {
2071
- const o = await n.get(f, d);
2069
+ fr(n, e);
2070
+ async function r(u, d = {}) {
2071
+ const o = await n.get(u, d);
2072
2072
  return {
2073
2073
  data: o.data,
2074
2074
  status: o.status,
@@ -2076,8 +2076,8 @@ function fr(e) {
2076
2076
  headers: o.headers
2077
2077
  };
2078
2078
  }
2079
- async function s(f, d, o = {}) {
2080
- const i = await n.post(f, d, o);
2079
+ async function s(u, d, o = {}) {
2080
+ const i = await n.post(u, d, o);
2081
2081
  return {
2082
2082
  data: i.data,
2083
2083
  status: i.status,
@@ -2085,8 +2085,8 @@ function fr(e) {
2085
2085
  headers: i.headers
2086
2086
  };
2087
2087
  }
2088
- async function a(f, d, o = {}) {
2089
- const i = await n.put(f, d, o);
2088
+ async function a(u, d, o = {}) {
2089
+ const i = await n.put(u, d, o);
2090
2090
  return {
2091
2091
  data: i.data,
2092
2092
  status: i.status,
@@ -2094,8 +2094,8 @@ function fr(e) {
2094
2094
  headers: i.headers
2095
2095
  };
2096
2096
  }
2097
- async function c(f, d = {}) {
2098
- const o = await n.delete(f, d);
2097
+ async function c(u, d = {}) {
2098
+ const o = await n.delete(u, d);
2099
2099
  return {
2100
2100
  data: o.data,
2101
2101
  status: o.status,
@@ -2253,28 +2253,51 @@ async function dr(e, t, n) {
2253
2253
  const { authStore: r, portalClient: s } = n, a = await s.login({
2254
2254
  account_id: e,
2255
2255
  password: t
2256
- }), { login: c, authMe: f } = r.getState();
2256
+ }), { login: c, authMe: u } = r.getState();
2257
2257
  c(a);
2258
2258
  const d = await s.my();
2259
- return f(d), !0;
2259
+ return u(d), !0;
2260
2260
  } catch (r) {
2261
2261
  return console.error("로그인 실패:", r), !1;
2262
2262
  }
2263
2263
  }
2264
- async function zr() {
2265
- const e = await fetch("/src/app/components/organisms/ChatWindow.html");
2266
- if (!e.ok)
2267
- throw new Error(`Failed to load ChatWindow template: ${e.statusText}`);
2268
- return await e.text();
2269
- }
2264
+ const zr = `<div class="chat-window-root" style="z-index: 1000;">
2265
+ <!-- 헤더 -->
2266
+ <div class="chat-window-header">
2267
+ <h3 class="chat-window-title">채팅</h3>
2268
+ <button
2269
+ class="chat-close-btn"
2270
+ style="font-size: 24px;"
2271
+ >×</button>
2272
+ </div>
2273
+
2274
+ <!-- 메시지 영역 -->
2275
+ <div class="chat-messages"></div>
2276
+
2277
+ <!-- 입력 영역 -->
2278
+ <div class="chat-window-footer">
2279
+ <div class="chat-input-container">
2280
+ <input
2281
+ type="text"
2282
+ placeholder="메시지를 입력하세요..."
2283
+ class="chat-input"
2284
+ />
2285
+ <button class="chat-send-btn">전송</button>
2286
+ </div>
2287
+ </div>
2288
+ </div>
2289
+
2290
+ `;
2270
2291
  function M(e, t) {
2271
2292
  e.className = g(t);
2272
2293
  }
2273
- async function xr(e) {
2294
+ function xr(e) {
2274
2295
  let t = !1;
2275
- const n = await zr(), r = document.createElement("div");
2296
+ const n = zr, r = document.createElement("div");
2276
2297
  r.innerHTML = n.trim();
2277
2298
  const s = r.firstElementChild;
2299
+ if (!s)
2300
+ throw new Error("Failed to create chat window: template is empty");
2278
2301
  M(s, [
2279
2302
  "absolute bottom-full right-0 mb-2 bg-blue-200",
2280
2303
  "w-96 h-[500px]",
@@ -2283,15 +2306,15 @@ async function xr(e) {
2283
2306
  "hidden"
2284
2307
  ]);
2285
2308
  const a = s.querySelector(".chat-window-header");
2286
- M(a, [
2309
+ a && M(a, [
2287
2310
  "flex items-center justify-between",
2288
2311
  "p-4 border-b border-gray-200",
2289
2312
  "bg-gray-50 rounded-t-lg"
2290
2313
  ]);
2291
2314
  const c = s.querySelector(".chat-window-title");
2292
- M(c, "text-lg font-semibold text-gray-800");
2293
- const f = s.querySelector(".chat-close-btn");
2294
- M(f, [
2315
+ c && M(c, "text-lg font-semibold text-gray-800");
2316
+ const u = s.querySelector(".chat-close-btn");
2317
+ u && M(u, [
2295
2318
  "w-8 h-8",
2296
2319
  "flex items-center justify-center",
2297
2320
  "text-gray-500 hover:text-gray-700",
@@ -2299,30 +2322,32 @@ async function xr(e) {
2299
2322
  "chat-close-btn"
2300
2323
  ]);
2301
2324
  const d = s.querySelector(".chat-messages");
2302
- M(d, [
2325
+ d && M(d, [
2303
2326
  "flex-1 overflow-y-auto p-4 space-y-4",
2304
2327
  "bg-white",
2305
2328
  "chat-messages"
2306
2329
  ]);
2307
2330
  const o = s.querySelector(".chat-window-footer");
2308
- M(o, ["p-4 border-t border-gray-200", "bg-gray-50 rounded-b-lg"]);
2331
+ o && M(o, ["p-4 border-t border-gray-200", "bg-gray-50 rounded-b-lg"]);
2309
2332
  const i = s.querySelector(".chat-input-container");
2310
- M(i, "flex gap-2");
2333
+ i && M(i, "flex gap-2");
2311
2334
  const z = s.querySelector(".chat-input");
2312
- M(z, [
2335
+ z && M(z, [
2313
2336
  "flex-1 px-4 py-2",
2314
2337
  "border border-gray-300 rounded-lg",
2315
2338
  "focus:outline-none focus:ring-2 focus:ring-blue-500",
2316
2339
  "chat-input"
2317
2340
  ]);
2318
2341
  const w = s.querySelector(".chat-send-btn");
2319
- M(w, [
2342
+ if (w && M(w, [
2320
2343
  "px-4 py-2",
2321
2344
  "bg-blue-500 text-white rounded-lg",
2322
2345
  "hover:bg-blue-600",
2323
2346
  "disabled:bg-gray-300 disabled:cursor-not-allowed",
2324
2347
  "chat-send-btn"
2325
- ]), f.addEventListener("click", () => {
2348
+ ]), !u || !d || !z || !w)
2349
+ throw new Error("Failed to create chat window: required elements not found");
2350
+ u.addEventListener("click", () => {
2326
2351
  s.classList.add("hidden"), t = !1;
2327
2352
  });
2328
2353
  const m = () => {
@@ -2356,7 +2381,7 @@ async function xr(e) {
2356
2381
  }
2357
2382
  let J = null, He = null, me = null, je = null;
2358
2383
  function vr() {
2359
- return J || (J = Tt(), He = fr(J), me = lr(He), J.setPortalClient(me)), {
2384
+ return J || (J = Tt(), He = ur(J), me = lr(He), J.setPortalClient(me)), {
2360
2385
  authStore: J,
2361
2386
  httpClient: He,
2362
2387
  portalClient: me
@@ -2376,8 +2401,8 @@ function wr({ account_id: e, password: t, assistant_uuid: n } = {}) {
2376
2401
  const s = document.createElement("button");
2377
2402
  s.type = "button", s.className = g("relative bg-orange-200");
2378
2403
  const a = document.createElement("img");
2379
- return a.src = pt, a.alt = "Button", a.className = g("w-12 h-12", "rounded-full"), s.appendChild(a), r.appendChild(s), s.addEventListener("click", async (c) => {
2380
- c.preventDefault(), je || (je = await xr(r)), je.openChat();
2404
+ return a.src = pt, a.alt = "Button", a.className = g("w-12 h-12", "rounded-full"), s.appendChild(a), r.appendChild(s), s.addEventListener("click", (c) => {
2405
+ c.preventDefault(), je || (je = xr(r)), je.openChat();
2381
2406
  }), e && t && (async () => (s.disabled = !0, s.style.opacity = "0.5", s.style.cursor = "wait", Pr(e, t).then((c) => {
2382
2407
  c ? (s.disabled = !1, s.style.opacity = "", s.style.cursor = "") : (console.error("로그인 실패"), s.disabled = !0, s.style.opacity = "0.3", s.title = "로그인 실패");
2383
2408
  }).catch((c) => {