lulichat 1.0.17 → 1.0.18

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.
@@ -525,7 +525,7 @@ const ml = (e) => (t) => {
525
525
  a.delete(v);
526
526
  })
527
527
  }, i.skipHydration || w(), k || d;
528
- }, _m = Sm, We = Wf(
528
+ }, _m = Sm, $e = Wf(
529
529
  _m(
530
530
  (e, t) => ({
531
531
  open: !1,
@@ -550,18 +550,34 @@ const ml = (e) => (t) => {
550
550
  allowAnonymous: !0,
551
551
  tags: [],
552
552
  options: [],
553
- guestId: ""
553
+ guestId: "",
554
+ clearSession: () => {
555
+ e({
556
+ session: void 0,
557
+ contact: void 0,
558
+ messages: [],
559
+ tags: [],
560
+ options: []
561
+ });
562
+ }
554
563
  }),
555
564
  {
556
- name: "lulichat",
557
- storage: Gf(() => localStorage)
565
+ name: "lulichat-widget",
566
+ storage: Gf(() => localStorage),
567
+ partialize: (e) => {
568
+ const { company: t, config: n, ...r } = e;
569
+ return r;
570
+ }
558
571
  }
559
572
  )
560
573
  );
561
574
  function jn(e) {
562
- return We(
575
+ return $e(
563
576
  Qf(
564
- (t) => e.reduce((n, r) => (n[r] = t[r], n), {})
577
+ (t) => e.reduce(
578
+ (n, r) => (n[r] = t[r], n),
579
+ {}
580
+ )
565
581
  )
566
582
  );
567
583
  }
@@ -636,7 +652,8 @@ class Ca {
636
652
  const { body: r, headers: s, key: i } = n;
637
653
  try {
638
654
  const o = new AbortController();
639
- return i && (this.abortControllers[i] = o), await (await fetch(`${this.baseUrl}${t}`, {
655
+ i && (this.abortControllers[i] = o);
656
+ const l = await fetch(`${this.baseUrl}${t}`, {
640
657
  body: r ? JSON.stringify(r) : void 0,
641
658
  method: r ? "POST" : "GET",
642
659
  headers: {
@@ -646,7 +663,8 @@ class Ca {
646
663
  },
647
664
  signal: o.signal,
648
665
  cache: "reload"
649
- })).json();
666
+ });
667
+ return l.status === 401 && $e.getState().clearSession(), await l.json();
650
668
  } catch (o) {
651
669
  return console.error("Failed to fetch company info:", o), o;
652
670
  }
@@ -674,7 +692,7 @@ class Ca {
674
692
  return this.request(`${t}/rating`, { body: n });
675
693
  }
676
694
  async getHistory(t = 1, n) {
677
- const r = We.getState().guestId;
695
+ const r = $e.getState().guestId;
678
696
  return this.request(`${r}/history?pageNumber=${t}`, {
679
697
  key: n
680
698
  });
@@ -2983,7 +3001,7 @@ Object.assign(di, {
2983
3001
  connect: di
2984
3002
  });
2985
3003
  class yg {
2986
- constructor(t, n = "wss://ws.lulichat.com", r) {
3004
+ constructor(t, n = "https://api.lulichat.com", r) {
2987
3005
  $(this, "socket", null);
2988
3006
  $(this, "token");
2989
3007
  $(this, "ticket");
@@ -3009,7 +3027,7 @@ class yg {
3009
3027
  var i, o;
3010
3028
  console.log("Socket connected"), this.reconnectAttempts = 0, (i = this.socket) == null || i.emit("joinChatBox", this.ticket.id), (o = this.onStatusCallback) == null || o.call(this, "connected");
3011
3029
  });
3012
- const s = (n = We.getState().company) == null ? void 0 : n.id;
3030
+ const s = (n = $e.getState().company) == null ? void 0 : n.id;
3013
3031
  this.socket.onAny((i, ...o) => {
3014
3032
  var l;
3015
3033
  switch (i) {
@@ -3017,8 +3035,8 @@ class yg {
3017
3035
  (l = this.onMessageCallback) == null || l.call(this, ...o);
3018
3036
  break;
3019
3037
  case `company-${s}-ticket`:
3020
- const a = o[0], u = We.getState();
3021
- u.session && We.setState({
3038
+ const a = o[0], u = $e.getState();
3039
+ u.session && $e.setState({
3022
3040
  session: { ...u.session, ticket: a.ticket }
3023
3041
  });
3024
3042
  break;
@@ -3928,11 +3946,11 @@ const bg = [
3928
3946
  delete g[H];
3929
3947
  });
3930
3948
  const h = z.useRef(d), m = z.useRef(null), x = z.useRef(), T = z.useRef(), _ = z.useRef(Object.assign(Object.assign({}, Dg), r)), N = typeof window < "u", L = z.useRef(N && window.matchMedia ? window.matchMedia("(prefers-reduced-motion)").matches : !1), W = L.current ? 0 : a, M = L.current ? 0 : f;
3931
- let V = d, Ue = "visible";
3932
- typeof d == "number" ? (V = d < 0 ? 0 : d, Ue = "hidden") : ac(V) && (V = d === "0%" ? 0 : d, Ue = "hidden");
3933
- const [He, mt] = z.useState(V), [xr, At] = z.useState(Ue), [mn, R] = z.useState(!1), [D, b] = z.useState(uc(_.current, d));
3949
+ let V = d, He = "visible";
3950
+ typeof d == "number" ? (V = d < 0 ? 0 : d, He = "hidden") : ac(V) && (V = d === "0%" ? 0 : d, He = "hidden");
3951
+ const [qe, mt] = z.useState(V), [xr, At] = z.useState(He), [mn, R] = z.useState(!1), [D, b] = z.useState(uc(_.current, d));
3934
3952
  z.useEffect(() => {
3935
- Io(m.current, He, u);
3953
+ Io(m.current, qe, u);
3936
3954
  }, []), z.useEffect(() => {
3937
3955
  if (d !== h.current && m.current) {
3938
3956
  zg(m.current, h.current), m.current.style.overflow = "hidden";
@@ -3962,10 +3980,10 @@ const bg = [
3962
3980
  clearTimeout(T.current), clearTimeout(x.current);
3963
3981
  };
3964
3982
  }, [d]);
3965
- const I = Object.assign(Object.assign({}, v), { height: He, overflow: xr || (v == null ? void 0 : v.overflow) });
3983
+ const I = Object.assign(Object.assign({}, v), { height: qe, overflow: xr || (v == null ? void 0 : v.overflow) });
3966
3984
  mn && s && (I.transition = `height ${M}ms ${p} ${W}ms`, v != null && v.transition && (I.transition = `${v.transition}, ${I.transition}`), I.WebkitTransition = I.transition);
3967
3985
  const K = {};
3968
- n && (K.transition = `opacity ${M}ms ${p} ${W}ms`, K.WebkitTransition = K.transition, He === 0 && (K.opacity = 0));
3986
+ n && (K.transition = `opacity ${M}ms ${p} ${W}ms`, K.WebkitTransition = K.transition, qe === 0 && (K.opacity = 0));
3969
3987
  const Xe = typeof g["aria-hidden"] < "u" ? g["aria-hidden"] : d === 0;
3970
3988
  return S.createElement(
3971
3989
  "div",
@@ -4064,7 +4082,7 @@ const Fg = S.forwardRef((e, t) => {
4064
4082
  );
4065
4083
  const p = l[l.length - 1], d = (p == null ? void 0 : p.message) || (p == null ? void 0 : p.greetingMessage) || (r == null ? void 0 : r.welcomeMessage) || "";
4066
4084
  return S.useEffect(() => {
4067
- We.getState().messages.length || i(
4085
+ $e.getState().messages.length || i(
4068
4086
  tr({
4069
4087
  body: d,
4070
4088
  sender: "auto-respond",
@@ -4281,22 +4299,14 @@ const Sl = ({
4281
4299
  "div",
4282
4300
  {
4283
4301
  style: {
4284
- marginBottom: "20px",
4302
+ marginBottom: "10px",
4285
4303
  display: "flex",
4286
4304
  alignItems: "end",
4287
4305
  columnGap: 8,
4288
4306
  marginLeft: "-0.55rem"
4289
4307
  },
4290
4308
  children: [
4291
- /* @__PURE__ */ c.jsx(
4292
- Ag,
4293
- {
4294
- style: { display: "block" },
4295
- color: "#DEDEDE6A",
4296
- height: 40,
4297
- width: 50
4298
- }
4299
- ),
4309
+ /* @__PURE__ */ c.jsx(Ag, { style: { display: "block" }, height: 40, width: 50 }),
4300
4310
  /* @__PURE__ */ c.jsxs("p", { style: { fontWeight: 500, fontSize: "1.2rem" }, children: [
4301
4311
  "Hello, ",
4302
4312
  /* @__PURE__ */ c.jsxs("small", { children: [
@@ -5585,8 +5595,8 @@ function Nd() {
5585
5595
  let V = _c();
5586
5596
  t.isSupported = typeof _d == "function" && typeof m == "function" && _ && _.createHTMLDocument !== void 0;
5587
5597
  const {
5588
- MUSTACHE_EXPR: Ue,
5589
- ERB_EXPR: He,
5598
+ MUSTACHE_EXPR: He,
5599
+ ERB_EXPR: qe,
5590
5600
  TMPLIT_EXPR: mt,
5591
5601
  DATA_ATTR: xr,
5592
5602
  ARIA_ATTR: At,
@@ -5757,7 +5767,7 @@ function Nd() {
5757
5767
  }
5758
5768
  return gt(y), !0;
5759
5769
  }
5760
- return y instanceof a && !Hp(y) || (O === "noscript" || O === "noembed" || O === "noframes") && Re(/<\/no(script|embed|frames)/i, y.innerHTML) ? (gt(y), !0) : (Vt && y.nodeType === Pr.text && (C = y.textContent, Us([Ue, He, mt], (ee) => {
5770
+ return y instanceof a && !Hp(y) || (O === "noscript" || O === "noembed" || O === "noframes") && Re(/<\/no(script|embed|frames)/i, y.innerHTML) ? (gt(y), !0) : (Vt && y.nodeType === Pr.text && (C = y.textContent, Us([He, qe, mt], (ee) => {
5761
5771
  C = Lr(C, ee, " ");
5762
5772
  }), y.textContent !== C && (Ar(t.removed, {
5763
5773
  element: y.cloneNode()
@@ -5827,7 +5837,7 @@ function Nd() {
5827
5837
  Fn(fe, y);
5828
5838
  continue;
5829
5839
  }
5830
- Vt && Us([Ue, He, mt], (Qu) => {
5840
+ Vt && Us([He, qe, mt], (Qu) => {
5831
5841
  _e = Lr(_e, Qu, " ");
5832
5842
  });
5833
5843
  const Wu = pe(y.nodeName);
@@ -5902,7 +5912,7 @@ function Nd() {
5902
5912
  }
5903
5913
  let ze = Lt ? C.outerHTML : C.innerHTML;
5904
5914
  return Lt && I["!doctype"] && C.ownerDocument && C.ownerDocument.doctype && C.ownerDocument.doctype.name && Re(Cd, C.ownerDocument.doctype.name) && (ze = "<!DOCTYPE " + C.ownerDocument.doctype.name + `>
5905
- ` + ze), Vt && Us([Ue, He, mt], (Pt) => {
5915
+ ` + ze), Vt && Us([He, qe, mt], (Pt) => {
5906
5916
  ze = Lr(ze, Pt, " ");
5907
5917
  }), x && Ps ? x.createHTML(ze) : ze;
5908
5918
  }, t.setConfig = function() {
@@ -5950,7 +5960,7 @@ function Rd(e) {
5950
5960
  return o;
5951
5961
  }
5952
5962
  const t0 = ["tag", "agent", "system"], n0 = (e) => {
5953
- const { adjust: t, animate: n } = e, r = S.useRef(null), s = We(Qf((f) => f.messages[e.index])), i = s.sender == "auto-respond", o = s.fromMe || t0.includes(s.sender), l = Ei((f) => f.socket);
5963
+ const { adjust: t, animate: n } = e, r = S.useRef(null), s = $e(Qf((f) => f.messages[e.index])), i = s.sender == "auto-respond", o = s.fromMe || t0.includes(s.sender), l = Ei((f) => f.socket);
5954
5964
  console.log({ rendered: !0 }), S.useEffect(() => {
5955
5965
  setTimeout(() => {
5956
5966
  var f;
@@ -6099,7 +6109,7 @@ function s0() {
6099
6109
  }
6100
6110
  const i0 = (e) => {
6101
6111
  var p;
6102
- const { api: t, ratingRef: n } = Rt(), [r, s] = z.useState(!1), i = z.useRef(null), o = Ei((d) => d.setSocket), l = Ei((d) => d.setStatus), a = We((d) => d), { session: u, config: f } = a;
6112
+ const { api: t, ratingRef: n } = Rt(), [r, s] = z.useState(!1), i = z.useRef(null), o = Ei((d) => d.setSocket), l = Ei((d) => d.setStatus), a = $e((d) => d), { session: u, config: f } = a;
6103
6113
  return S.useCallback(async () => {
6104
6114
  if (u) {
6105
6115
  const d = await t.current.getTicketMessages(
@@ -6519,7 +6529,7 @@ const p0 = S.forwardRef(
6519
6529
  name: "",
6520
6530
  email: "",
6521
6531
  message: ""
6522
- }), { api: p } = Rt(), [d, k] = z.useState(null), w = We((_) => _.set), v = We((_) => _.setMessages), [A, g] = z.useState({}), h = () => {
6532
+ }), { api: p } = Rt(), [d, k] = z.useState(null), w = $e((_) => _.set), v = $e((_) => _.setMessages), [A, g] = z.useState({}), h = () => {
6523
6533
  var N, L;
6524
6534
  const _ = {};
6525
6535
  return !n && !((N = u.name) != null && N.trim()) && (_.name = "Name is required"), n || ((L = u.email) != null && L.trim() ? /\S+@\S+\.\S+/.test(u.email) || (_.email = "Email is invalid") : _.email = "Email is required"), g(_), Object.keys(_).length === 0;
@@ -6863,7 +6873,7 @@ const p0 = S.forwardRef(
6863
6873
  r.error && /* @__PURE__ */ c.jsx("p", { style: { color: "red" }, children: r.error })
6864
6874
  ] }) });
6865
6875
  }), k0 = ({ config: e }) => {
6866
- const [t, n] = z.useState(null), r = localStorage.getItem(Ad), [s, i] = S.useState("chat"), o = We((m) => m.set), { company: l, open: a } = jn(["open", "company"]), u = S.useRef(new Ca(e)), f = S.useRef(null), p = S.useRef(null), d = S.useRef(null), k = S.useRef(!1), w = S.useRef(!1);
6876
+ const [t, n] = z.useState(null), r = localStorage.getItem(Ad), [s, i] = S.useState("chat"), o = $e((m) => m.set), { company: l, open: a } = jn(["open", "company"]), u = S.useRef(new Ca(e)), f = S.useRef(null), p = S.useRef(null), d = S.useRef(null), k = S.useRef(!1), w = S.useRef(!1);
6867
6877
  S.useLayoutEffect(() => {
6868
6878
  s == "faqs" && (k.current = !0), s == "history" && (w.current = !0);
6869
6879
  }, [s]), z.useEffect(() => {
@@ -6871,7 +6881,7 @@ const p0 = S.forwardRef(
6871
6881
  }, [e]);
6872
6882
  const v = async () => {
6873
6883
  try {
6874
- const m = await u.current.getCompanyInfo(), x = We.getState();
6884
+ const m = await u.current.getCompanyInfo(), x = $e.getState();
6875
6885
  o({
6876
6886
  messages: x.session ? x.messages : [
6877
6887
  tr({
@@ -6915,7 +6925,7 @@ const p0 = S.forwardRef(
6915
6925
  }, []);
6916
6926
  S.useLayoutEffect(() => {
6917
6927
  const m = (x) => {
6918
- x.key === "lulichat" && document.visibilityState == "hidden" && We.persist.rehydrate();
6928
+ x.key === "lulichat" && document.visibilityState == "hidden" && $e.persist.rehydrate();
6919
6929
  };
6920
6930
  return window.addEventListener("storage", m), () => {
6921
6931
  window.removeEventListener("storage", m);
@@ -6948,13 +6958,17 @@ const p0 = S.forwardRef(
6948
6958
  };
6949
6959
  });
6950
6960
  const g = S.useMemo(() => ({
6951
- "--primary-color": e.primaryColor || "#755ae2"
6952
- }), [e.primaryColor]), h = S.useMemo(() => ({
6953
- api: u,
6954
- FAQViewerRef: f,
6955
- startChatRef: p,
6956
- ratingRef: d
6957
- }), [u, f, p, d]);
6961
+ "--primary-color": e.primaryColor || "#755ae2",
6962
+ "--primary": e.primaryColor || "#755ae2"
6963
+ }), [e.primaryColor]), h = S.useMemo(
6964
+ () => ({
6965
+ api: u,
6966
+ FAQViewerRef: f,
6967
+ startChatRef: p,
6968
+ ratingRef: d
6969
+ }),
6970
+ [u, f, p, d]
6971
+ );
6958
6972
  return l ? /* @__PURE__ */ c.jsx(ud.Provider, { value: h, children: /* @__PURE__ */ c.jsxs("div", { style: g, className: "lulichat", children: [
6959
6973
  /* @__PURE__ */ c.jsxs(
6960
6974
  "div",
@@ -7031,7 +7045,8 @@ const p0 = S.forwardRef(
7031
7045
  width: "4rem",
7032
7046
  padding: 0,
7033
7047
  color: "#fff",
7034
- alignSelf: "end"
7048
+ alignSelf: "end",
7049
+ pointerEvents: "auto"
7035
7050
  },
7036
7051
  disabled: !l && !t,
7037
7052
  children: !l && !t ? /* @__PURE__ */ c.jsx(Ts, {}) : /* @__PURE__ */ c.jsx(Pg, { height: 40, width: 40 })
@@ -7154,7 +7169,7 @@ var Od = { exports: {} }, Ye = {}, Pd = { exports: {} }, Md = {};
7154
7169
  function V() {
7155
7170
  return !(e.unstable_now() - M < W);
7156
7171
  }
7157
- function Ue() {
7172
+ function He() {
7158
7173
  if (N !== null) {
7159
7174
  var R = e.unstable_now();
7160
7175
  M = R;
@@ -7162,24 +7177,24 @@ var Od = { exports: {} }, Ye = {}, Pd = { exports: {} }, Md = {};
7162
7177
  try {
7163
7178
  D = N(!0, R);
7164
7179
  } finally {
7165
- D ? He() : (_ = !1, N = null);
7180
+ D ? qe() : (_ = !1, N = null);
7166
7181
  }
7167
7182
  } else _ = !1;
7168
7183
  }
7169
- var He;
7170
- if (typeof h == "function") He = function() {
7171
- h(Ue);
7184
+ var qe;
7185
+ if (typeof h == "function") qe = function() {
7186
+ h(He);
7172
7187
  };
7173
7188
  else if (typeof MessageChannel < "u") {
7174
7189
  var mt = new MessageChannel(), xr = mt.port2;
7175
- mt.port1.onmessage = Ue, He = function() {
7190
+ mt.port1.onmessage = He, qe = function() {
7176
7191
  xr.postMessage(null);
7177
7192
  };
7178
- } else He = function() {
7179
- A(Ue, 0);
7193
+ } else qe = function() {
7194
+ A(He, 0);
7180
7195
  };
7181
7196
  function At(R) {
7182
- N = R, _ || (_ = !0, He());
7197
+ N = R, _ || (_ = !0, qe());
7183
7198
  }
7184
7199
  function mn(R, D) {
7185
7200
  L = A(function() {
@@ -9111,7 +9126,7 @@ function J(e) {
9111
9126
  function X(e, t) {
9112
9127
  Yn++, ta[Yn] = e.current, e.current = t;
9113
9128
  }
9114
- var cn = {}, Ne = hn(cn), $e = hn(!1), Cn = cn;
9129
+ var cn = {}, Ne = hn(cn), Fe = hn(!1), Cn = cn;
9115
9130
  function cr(e, t) {
9116
9131
  var n = e.type.contextTypes;
9117
9132
  if (!n) return cn;
@@ -9121,15 +9136,15 @@ function cr(e, t) {
9121
9136
  for (i in n) s[i] = t[i];
9122
9137
  return r && (e = e.stateNode, e.__reactInternalMemoizedUnmaskedChildContext = t, e.__reactInternalMemoizedMaskedChildContext = s), s;
9123
9138
  }
9124
- function Fe(e) {
9139
+ function Be(e) {
9125
9140
  return e = e.childContextTypes, e != null;
9126
9141
  }
9127
9142
  function Ii() {
9128
- J($e), J(Ne);
9143
+ J(Fe), J(Ne);
9129
9144
  }
9130
9145
  function nf(e, t, n) {
9131
9146
  if (Ne.current !== cn) throw Error(E(168));
9132
- X(Ne, t), X($e, n);
9147
+ X(Ne, t), X(Fe, n);
9133
9148
  }
9134
9149
  function Ah(e, t, n) {
9135
9150
  var r = e.stateNode;
@@ -9139,12 +9154,12 @@ function Ah(e, t, n) {
9139
9154
  return ie({}, n, r);
9140
9155
  }
9141
9156
  function zi(e) {
9142
- return e = (e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext || cn, Cn = Ne.current, X(Ne, e), X($e, $e.current), !0;
9157
+ return e = (e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext || cn, Cn = Ne.current, X(Ne, e), X(Fe, Fe.current), !0;
9143
9158
  }
9144
9159
  function rf(e, t, n) {
9145
9160
  var r = e.stateNode;
9146
9161
  if (!r) throw Error(E(169));
9147
- n ? (e = Ah(e, t, Cn), r.__reactInternalMemoizedMergedChildContext = e, J($e), J(Ne), X(Ne, e)) : J($e), X($e, n);
9162
+ n ? (e = Ah(e, t, Cn), r.__reactInternalMemoizedMergedChildContext = e, J(Fe), J(Ne), X(Ne, e)) : J(Fe), X(Fe, n);
9148
9163
  }
9149
9164
  var zt = null, co = !1, sl = !1;
9150
9165
  function Lh(e) {
@@ -9197,7 +9212,7 @@ function nu(e) {
9197
9212
  for (; e === Di; ) Di = Kn[--Xn], Kn[Xn] = null, bi = Kn[--Xn], Kn[Xn] = null;
9198
9213
  for (; e === Nn; ) Nn = Je[--et], Je[et] = null, bt = Je[--et], Je[et] = null, Dt = Je[--et], Je[et] = null;
9199
9214
  }
9200
- var Qe = null, Ve = null, te = !1, ft = null;
9215
+ var Qe = null, We = null, te = !1, ft = null;
9201
9216
  function Oh(e, t) {
9202
9217
  var n = tt(5, null, null, 0);
9203
9218
  n.elementType = "DELETED", n.stateNode = t, n.return = e, t = e.deletions, t === null ? (e.deletions = [n], e.flags |= 16) : t.push(n);
@@ -9206,11 +9221,11 @@ function sf(e, t) {
9206
9221
  switch (e.tag) {
9207
9222
  case 5:
9208
9223
  var n = e.type;
9209
- return t = t.nodeType !== 1 || n.toLowerCase() !== t.nodeName.toLowerCase() ? null : t, t !== null ? (e.stateNode = t, Qe = e, Ve = rn(t.firstChild), !0) : !1;
9224
+ return t = t.nodeType !== 1 || n.toLowerCase() !== t.nodeName.toLowerCase() ? null : t, t !== null ? (e.stateNode = t, Qe = e, We = rn(t.firstChild), !0) : !1;
9210
9225
  case 6:
9211
- return t = e.pendingProps === "" || t.nodeType !== 3 ? null : t, t !== null ? (e.stateNode = t, Qe = e, Ve = null, !0) : !1;
9226
+ return t = e.pendingProps === "" || t.nodeType !== 3 ? null : t, t !== null ? (e.stateNode = t, Qe = e, We = null, !0) : !1;
9212
9227
  case 13:
9213
- return t = t.nodeType !== 8 ? null : t, t !== null ? (n = Nn !== null ? { id: Dt, overflow: bt } : null, e.memoizedState = { dehydrated: t, treeContext: n, retryLane: 1073741824 }, n = tt(18, null, null, 0), n.stateNode = t, n.return = e, e.child = n, Qe = e, Ve = null, !0) : !1;
9228
+ return t = t.nodeType !== 8 ? null : t, t !== null ? (n = Nn !== null ? { id: Dt, overflow: bt } : null, e.memoizedState = { dehydrated: t, treeContext: n, retryLane: 1073741824 }, n = tt(18, null, null, 0), n.stateNode = t, n.return = e, e.child = n, Qe = e, We = null, !0) : !1;
9214
9229
  default:
9215
9230
  return !1;
9216
9231
  }
@@ -9220,7 +9235,7 @@ function na(e) {
9220
9235
  }
9221
9236
  function ra(e) {
9222
9237
  if (te) {
9223
- var t = Ve;
9238
+ var t = We;
9224
9239
  if (t) {
9225
9240
  var n = t;
9226
9241
  if (!sf(e, t)) {
@@ -9243,7 +9258,7 @@ function ei(e) {
9243
9258
  if (e !== Qe) return !1;
9244
9259
  if (!te) return of(e), te = !0, !1;
9245
9260
  var t;
9246
- if ((t = e.tag !== 3) && !(t = e.tag !== 5) && (t = e.type, t = t !== "head" && t !== "body" && !Zl(e.type, e.memoizedProps)), t && (t = Ve)) {
9261
+ if ((t = e.tag !== 3) && !(t = e.tag !== 5) && (t = e.type, t = t !== "head" && t !== "body" && !Zl(e.type, e.memoizedProps)), t && (t = We)) {
9247
9262
  if (na(e)) throw Ph(), Error(E(418));
9248
9263
  for (; t; ) Oh(e, t), t = rn(t.nextSibling);
9249
9264
  }
@@ -9255,7 +9270,7 @@ function ei(e) {
9255
9270
  var n = e.data;
9256
9271
  if (n === "/$") {
9257
9272
  if (t === 0) {
9258
- Ve = rn(e.nextSibling);
9273
+ We = rn(e.nextSibling);
9259
9274
  break e;
9260
9275
  }
9261
9276
  t--;
@@ -9263,16 +9278,16 @@ function ei(e) {
9263
9278
  }
9264
9279
  e = e.nextSibling;
9265
9280
  }
9266
- Ve = null;
9281
+ We = null;
9267
9282
  }
9268
- } else Ve = Qe ? rn(e.stateNode.nextSibling) : null;
9283
+ } else We = Qe ? rn(e.stateNode.nextSibling) : null;
9269
9284
  return !0;
9270
9285
  }
9271
9286
  function Ph() {
9272
- for (var e = Ve; e; ) e = rn(e.nextSibling);
9287
+ for (var e = We; e; ) e = rn(e.nextSibling);
9273
9288
  }
9274
9289
  function fr() {
9275
- Ve = Qe = null, te = !1;
9290
+ We = Qe = null, te = !1;
9276
9291
  }
9277
9292
  function ru(e) {
9278
9293
  ft === null ? ft = [e] : ft.push(e);
@@ -9440,8 +9455,8 @@ function Mh(e) {
9440
9455
  return te && vn(g, L), T;
9441
9456
  }
9442
9457
  for (N = r(g, N); !M.done; L++, M = m.next()) M = k(N, g, L, M.value, x), M !== null && (e && M.alternate !== null && N.delete(M.key === null ? L : M.key), h = i(M, h, L), _ === null ? T = M : _.sibling = M, _ = M);
9443
- return e && N.forEach(function(Ue) {
9444
- return t(g, Ue);
9458
+ return e && N.forEach(function(He) {
9459
+ return t(g, He);
9445
9460
  }), te && vn(g, L), T;
9446
9461
  }
9447
9462
  function A(g, h, m, x) {
@@ -10074,7 +10089,7 @@ function df(e, t, n, r, s, i, o) {
10074
10089
  }
10075
10090
  function sp(e, t, n) {
10076
10091
  var r = !1, s = cn, i = t.contextType;
10077
- return typeof i == "object" && i !== null ? i = st(i) : (s = Fe(t) ? Cn : Ne.current, r = t.contextTypes, i = (r = r != null) ? cr(e, s) : cn), t = new t(n, i), e.memoizedState = t.state !== null && t.state !== void 0 ? t.state : null, t.updater = ho, e.stateNode = t, t._reactInternals = e, r && (e = e.stateNode, e.__reactInternalMemoizedUnmaskedChildContext = s, e.__reactInternalMemoizedMaskedChildContext = i), t;
10092
+ return typeof i == "object" && i !== null ? i = st(i) : (s = Be(t) ? Cn : Ne.current, r = t.contextTypes, i = (r = r != null) ? cr(e, s) : cn), t = new t(n, i), e.memoizedState = t.state !== null && t.state !== void 0 ? t.state : null, t.updater = ho, e.stateNode = t, t._reactInternals = e, r && (e = e.stateNode, e.__reactInternalMemoizedUnmaskedChildContext = s, e.__reactInternalMemoizedMaskedChildContext = i), t;
10078
10093
  }
10079
10094
  function hf(e, t, n, r) {
10080
10095
  e = t.state, typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && ho.enqueueReplaceState(t, t.state, null);
@@ -10083,7 +10098,7 @@ function oa(e, t, n, r) {
10083
10098
  var s = e.stateNode;
10084
10099
  s.props = n, s.state = e.memoizedState, s.refs = {}, au(e);
10085
10100
  var i = t.contextType;
10086
- typeof i == "object" && i !== null ? s.context = st(i) : (i = Fe(t) ? Cn : Ne.current, s.context = cr(e, i)), s.state = e.memoizedState, i = t.getDerivedStateFromProps, typeof i == "function" && (ia(e, t, i, n), s.state = e.memoizedState), typeof t.getDerivedStateFromProps == "function" || typeof s.getSnapshotBeforeUpdate == "function" || typeof s.UNSAFE_componentWillMount != "function" && typeof s.componentWillMount != "function" || (t = s.state, typeof s.componentWillMount == "function" && s.componentWillMount(), typeof s.UNSAFE_componentWillMount == "function" && s.UNSAFE_componentWillMount(), t !== s.state && ho.enqueueReplaceState(s, s.state, null), Bi(e, n, s, r), s.state = e.memoizedState), typeof s.componentDidMount == "function" && (e.flags |= 4194308);
10101
+ typeof i == "object" && i !== null ? s.context = st(i) : (i = Be(t) ? Cn : Ne.current, s.context = cr(e, i)), s.state = e.memoizedState, i = t.getDerivedStateFromProps, typeof i == "function" && (ia(e, t, i, n), s.state = e.memoizedState), typeof t.getDerivedStateFromProps == "function" || typeof s.getSnapshotBeforeUpdate == "function" || typeof s.UNSAFE_componentWillMount != "function" && typeof s.componentWillMount != "function" || (t = s.state, typeof s.componentWillMount == "function" && s.componentWillMount(), typeof s.UNSAFE_componentWillMount == "function" && s.UNSAFE_componentWillMount(), t !== s.state && ho.enqueueReplaceState(s, s.state, null), Bi(e, n, s, r), s.state = e.memoizedState), typeof s.componentDidMount == "function" && (e.flags |= 4194308);
10087
10102
  }
10088
10103
  function pr(e, t) {
10089
10104
  try {
@@ -10187,12 +10202,12 @@ function lp(e, t, n, r, s) {
10187
10202
  }
10188
10203
  function ap(e, t, n) {
10189
10204
  var r = t.pendingProps, s = r.children, i = e !== null ? e.memoizedState : null;
10190
- if (r.mode === "hidden") if (!(t.mode & 1)) t.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, X(er, qe), qe |= n;
10205
+ if (r.mode === "hidden") if (!(t.mode & 1)) t.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, X(er, Ve), Ve |= n;
10191
10206
  else {
10192
- if (!(n & 1073741824)) return e = i !== null ? i.baseLanes | n : n, t.lanes = t.childLanes = 1073741824, t.memoizedState = { baseLanes: e, cachePool: null, transitions: null }, t.updateQueue = null, X(er, qe), qe |= e, null;
10193
- t.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, r = i !== null ? i.baseLanes : n, X(er, qe), qe |= r;
10207
+ if (!(n & 1073741824)) return e = i !== null ? i.baseLanes | n : n, t.lanes = t.childLanes = 1073741824, t.memoizedState = { baseLanes: e, cachePool: null, transitions: null }, t.updateQueue = null, X(er, Ve), Ve |= e, null;
10208
+ t.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, r = i !== null ? i.baseLanes : n, X(er, Ve), Ve |= r;
10194
10209
  }
10195
- else i !== null ? (r = i.baseLanes | n, t.memoizedState = null) : r = n, X(er, qe), qe |= r;
10210
+ else i !== null ? (r = i.baseLanes | n, t.memoizedState = null) : r = n, X(er, Ve), Ve |= r;
10196
10211
  return Ae(e, t, s, n), t.child;
10197
10212
  }
10198
10213
  function up(e, t) {
@@ -10200,11 +10215,11 @@ function up(e, t) {
10200
10215
  (e === null && n !== null || e !== null && e.ref !== n) && (t.flags |= 512, t.flags |= 2097152);
10201
10216
  }
10202
10217
  function aa(e, t, n, r, s) {
10203
- var i = Fe(n) ? Cn : Ne.current;
10218
+ var i = Be(n) ? Cn : Ne.current;
10204
10219
  return i = cr(t, i), lr(t, s), n = hu(e, t, n, r, i, s), r = pu(), e !== null && !be ? (t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~s, Ht(e, t, s)) : (te && r && tu(t), t.flags |= 1, Ae(e, t, n, s), t.child);
10205
10220
  }
10206
10221
  function wf(e, t, n, r, s) {
10207
- if (Fe(n)) {
10222
+ if (Be(n)) {
10208
10223
  var i = !0;
10209
10224
  zi(t);
10210
10225
  } else i = !1;
@@ -10213,17 +10228,17 @@ function wf(e, t, n, r, s) {
10213
10228
  var o = t.stateNode, l = t.memoizedProps;
10214
10229
  o.props = l;
10215
10230
  var a = o.context, u = n.contextType;
10216
- typeof u == "object" && u !== null ? u = st(u) : (u = Fe(n) ? Cn : Ne.current, u = cr(t, u));
10231
+ typeof u == "object" && u !== null ? u = st(u) : (u = Be(n) ? Cn : Ne.current, u = cr(t, u));
10217
10232
  var f = n.getDerivedStateFromProps, p = typeof f == "function" || typeof o.getSnapshotBeforeUpdate == "function";
10218
10233
  p || typeof o.UNSAFE_componentWillReceiveProps != "function" && typeof o.componentWillReceiveProps != "function" || (l !== r || a !== u) && hf(t, o, r, u), Gt = !1;
10219
10234
  var d = t.memoizedState;
10220
- o.state = d, Bi(t, r, o, s), a = t.memoizedState, l !== r || d !== a || $e.current || Gt ? (typeof f == "function" && (ia(t, n, f, r), a = t.memoizedState), (l = Gt || df(t, n, l, r, d, a, u)) ? (p || typeof o.UNSAFE_componentWillMount != "function" && typeof o.componentWillMount != "function" || (typeof o.componentWillMount == "function" && o.componentWillMount(), typeof o.UNSAFE_componentWillMount == "function" && o.UNSAFE_componentWillMount()), typeof o.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof o.componentDidMount == "function" && (t.flags |= 4194308), t.memoizedProps = r, t.memoizedState = a), o.props = r, o.state = a, o.context = u, r = l) : (typeof o.componentDidMount == "function" && (t.flags |= 4194308), r = !1);
10235
+ o.state = d, Bi(t, r, o, s), a = t.memoizedState, l !== r || d !== a || Fe.current || Gt ? (typeof f == "function" && (ia(t, n, f, r), a = t.memoizedState), (l = Gt || df(t, n, l, r, d, a, u)) ? (p || typeof o.UNSAFE_componentWillMount != "function" && typeof o.componentWillMount != "function" || (typeof o.componentWillMount == "function" && o.componentWillMount(), typeof o.UNSAFE_componentWillMount == "function" && o.UNSAFE_componentWillMount()), typeof o.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof o.componentDidMount == "function" && (t.flags |= 4194308), t.memoizedProps = r, t.memoizedState = a), o.props = r, o.state = a, o.context = u, r = l) : (typeof o.componentDidMount == "function" && (t.flags |= 4194308), r = !1);
10221
10236
  } else {
10222
- o = t.stateNode, Dh(e, t), l = t.memoizedProps, u = t.type === t.elementType ? l : at(t.type, l), o.props = u, p = t.pendingProps, d = o.context, a = n.contextType, typeof a == "object" && a !== null ? a = st(a) : (a = Fe(n) ? Cn : Ne.current, a = cr(t, a));
10237
+ o = t.stateNode, Dh(e, t), l = t.memoizedProps, u = t.type === t.elementType ? l : at(t.type, l), o.props = u, p = t.pendingProps, d = o.context, a = n.contextType, typeof a == "object" && a !== null ? a = st(a) : (a = Be(n) ? Cn : Ne.current, a = cr(t, a));
10223
10238
  var k = n.getDerivedStateFromProps;
10224
10239
  (f = typeof k == "function" || typeof o.getSnapshotBeforeUpdate == "function") || typeof o.UNSAFE_componentWillReceiveProps != "function" && typeof o.componentWillReceiveProps != "function" || (l !== p || d !== a) && hf(t, o, r, a), Gt = !1, d = t.memoizedState, o.state = d, Bi(t, r, o, s);
10225
10240
  var w = t.memoizedState;
10226
- l !== p || d !== w || $e.current || Gt ? (typeof k == "function" && (ia(t, n, k, r), w = t.memoizedState), (u = Gt || df(t, n, u, r, d, w, a) || !1) ? (f || typeof o.UNSAFE_componentWillUpdate != "function" && typeof o.componentWillUpdate != "function" || (typeof o.componentWillUpdate == "function" && o.componentWillUpdate(r, w, a), typeof o.UNSAFE_componentWillUpdate == "function" && o.UNSAFE_componentWillUpdate(r, w, a)), typeof o.componentDidUpdate == "function" && (t.flags |= 4), typeof o.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof o.componentDidUpdate != "function" || l === e.memoizedProps && d === e.memoizedState || (t.flags |= 4), typeof o.getSnapshotBeforeUpdate != "function" || l === e.memoizedProps && d === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = w), o.props = r, o.state = w, o.context = a, r = u) : (typeof o.componentDidUpdate != "function" || l === e.memoizedProps && d === e.memoizedState || (t.flags |= 4), typeof o.getSnapshotBeforeUpdate != "function" || l === e.memoizedProps && d === e.memoizedState || (t.flags |= 1024), r = !1);
10241
+ l !== p || d !== w || Fe.current || Gt ? (typeof k == "function" && (ia(t, n, k, r), w = t.memoizedState), (u = Gt || df(t, n, u, r, d, w, a) || !1) ? (f || typeof o.UNSAFE_componentWillUpdate != "function" && typeof o.componentWillUpdate != "function" || (typeof o.componentWillUpdate == "function" && o.componentWillUpdate(r, w, a), typeof o.UNSAFE_componentWillUpdate == "function" && o.UNSAFE_componentWillUpdate(r, w, a)), typeof o.componentDidUpdate == "function" && (t.flags |= 4), typeof o.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof o.componentDidUpdate != "function" || l === e.memoizedProps && d === e.memoizedState || (t.flags |= 4), typeof o.getSnapshotBeforeUpdate != "function" || l === e.memoizedProps && d === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = w), o.props = r, o.state = w, o.context = a, r = u) : (typeof o.componentDidUpdate != "function" || l === e.memoizedProps && d === e.memoizedState || (t.flags |= 4), typeof o.getSnapshotBeforeUpdate != "function" || l === e.memoizedProps && d === e.memoizedState || (t.flags |= 1024), r = !1);
10227
10242
  }
10228
10243
  return ua(e, t, n, r, i, s);
10229
10244
  }
@@ -10314,7 +10329,7 @@ function n1(e, t, n, r, s, i, o) {
10314
10329
  }
10315
10330
  return _u(), r = ul(Error(E(421))), ni(e, t, o, r);
10316
10331
  }
10317
- return s.data === "$?" ? (t.flags |= 128, t.child = e.child, t = m1.bind(null, e), s._reactRetry = t, null) : (e = i.treeContext, Ve = rn(s.nextSibling), Qe = t, te = !0, ft = null, e !== null && (Je[et++] = Dt, Je[et++] = bt, Je[et++] = Nn, Dt = e.id, bt = e.overflow, Nn = t), t = yu(t, r.children), t.flags |= 4096, t);
10332
+ return s.data === "$?" ? (t.flags |= 128, t.child = e.child, t = m1.bind(null, e), s._reactRetry = t, null) : (e = i.treeContext, We = rn(s.nextSibling), Qe = t, te = !0, ft = null, e !== null && (Je[et++] = Dt, Je[et++] = bt, Je[et++] = Nn, Dt = e.id, bt = e.overflow, Nn = t), t = yu(t, r.children), t.flags |= 4096, t);
10318
10333
  }
10319
10334
  function xf(e, t, n) {
10320
10335
  e.lanes |= t;
@@ -10390,7 +10405,7 @@ function r1(e, t, n) {
10390
10405
  bh(t);
10391
10406
  break;
10392
10407
  case 1:
10393
- Fe(t.type) && zi(t);
10408
+ Be(t.type) && zi(t);
10394
10409
  break;
10395
10410
  case 4:
10396
10411
  uu(t, t.stateNode.containerInfo);
@@ -10513,9 +10528,9 @@ function s1(e, t, n) {
10513
10528
  case 14:
10514
10529
  return Te(t), null;
10515
10530
  case 1:
10516
- return Fe(t.type) && Ii(), Te(t), null;
10531
+ return Be(t.type) && Ii(), Te(t), null;
10517
10532
  case 3:
10518
- return r = t.stateNode, hr(), J($e), J(Ne), fu(), r.pendingContext && (r.context = r.pendingContext, r.pendingContext = null), (e === null || e.child === null) && (ei(t) ? t.flags |= 4 : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, ft !== null && (ka(ft), ft = null))), da(e, t), Te(t), null;
10533
+ return r = t.stateNode, hr(), J(Fe), J(Ne), fu(), r.pendingContext && (r.context = r.pendingContext, r.pendingContext = null), (e === null || e.child === null) && (ei(t) ? t.flags |= 4 : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, ft !== null && (ka(ft), ft = null))), da(e, t), Te(t), null;
10519
10534
  case 5:
10520
10535
  cu(t);
10521
10536
  var s = Sn(ws.current);
@@ -10696,7 +10711,7 @@ function s1(e, t, n) {
10696
10711
  return Te(t), null;
10697
10712
  case 13:
10698
10713
  if (J(re), r = t.memoizedState, e === null || e.memoizedState !== null && e.memoizedState.dehydrated !== null) {
10699
- if (te && Ve !== null && t.mode & 1 && !(t.flags & 128)) Ph(), fr(), t.flags |= 98560, i = !1;
10714
+ if (te && We !== null && t.mode & 1 && !(t.flags & 128)) Ph(), fr(), t.flags |= 98560, i = !1;
10700
10715
  else if (i = ei(t), r !== null && r.dehydrated !== null) {
10701
10716
  if (e === null) {
10702
10717
  if (!i) throw Error(E(318));
@@ -10713,7 +10728,7 @@ function s1(e, t, n) {
10713
10728
  case 10:
10714
10729
  return ou(t.type._context), Te(t), null;
10715
10730
  case 17:
10716
- return Fe(t.type) && Ii(), Te(t), null;
10731
+ return Be(t.type) && Ii(), Te(t), null;
10717
10732
  case 19:
10718
10733
  if (J(re), i = t.memoizedState, i === null) return Te(t), null;
10719
10734
  if (r = (t.flags & 128) !== 0, o = i.rendering, o === null) if (r) Fr(i, !1);
@@ -10736,7 +10751,7 @@ function s1(e, t, n) {
10736
10751
  return i.tail !== null ? (t = i.tail, i.rendering = t, i.tail = t.sibling, i.renderingStartTime = le(), t.sibling = null, n = re.current, X(re, r ? n & 1 | 2 : n & 1), t) : (Te(t), null);
10737
10752
  case 22:
10738
10753
  case 23:
10739
- return Su(), r = t.memoizedState !== null, e !== null && e.memoizedState !== null !== r && (t.flags |= 8192), r && t.mode & 1 ? qe & 1073741824 && (Te(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : Te(t), null;
10754
+ return Su(), r = t.memoizedState !== null, e !== null && e.memoizedState !== null !== r && (t.flags |= 8192), r && t.mode & 1 ? Ve & 1073741824 && (Te(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : Te(t), null;
10740
10755
  case 24:
10741
10756
  return null;
10742
10757
  case 25:
@@ -10747,9 +10762,9 @@ function s1(e, t, n) {
10747
10762
  function i1(e, t) {
10748
10763
  switch (nu(t), t.tag) {
10749
10764
  case 1:
10750
- return Fe(t.type) && Ii(), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
10765
+ return Be(t.type) && Ii(), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
10751
10766
  case 3:
10752
- return hr(), J($e), J(Ne), fu(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;
10767
+ return hr(), J(Fe), J(Ne), fu(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;
10753
10768
  case 5:
10754
10769
  return cu(t), null;
10755
10770
  case 13:
@@ -11413,7 +11428,7 @@ function Nf(e) {
11413
11428
  j = t.return;
11414
11429
  }
11415
11430
  }
11416
- var u1 = Math.ceil, Vi = qt.ReactCurrentDispatcher, vu = qt.ReactCurrentOwner, nt = qt.ReactCurrentBatchConfig, q = 0, ge = null, ue = null, we = 0, qe = 0, er = hn(0), he = 0, _s = null, An = 0, mo = 0, wu = 0, rs = null, De = null, ku = 0, mr = 1 / 0, It = null, Wi = !1, ya = null, on = null, si = !1, Zt = null, Qi = 0, ss = 0, va = null, xi = -1, Si = 0;
11431
+ var u1 = Math.ceil, Vi = qt.ReactCurrentDispatcher, vu = qt.ReactCurrentOwner, nt = qt.ReactCurrentBatchConfig, q = 0, ge = null, ue = null, we = 0, Ve = 0, er = hn(0), he = 0, _s = null, An = 0, mo = 0, wu = 0, rs = null, De = null, ku = 0, mr = 1 / 0, It = null, Wi = !1, ya = null, on = null, si = !1, Zt = null, Qi = 0, ss = 0, va = null, xi = -1, Si = 0;
11417
11432
  function je() {
11418
11433
  return q & 6 ? le() : xi !== -1 ? xi : xi = le();
11419
11434
  }
@@ -11422,9 +11437,9 @@ function ln(e) {
11422
11437
  }
11423
11438
  function ht(e, t, n, r) {
11424
11439
  if (50 < ss) throw ss = 0, va = null, Error(E(185));
11425
- Rs(e, n, r), (!(q & 2) || e !== ge) && (e === ge && (!(q & 2) && (mo |= n), he === 4 && Kt(e, we)), Be(e, r), n === 1 && q === 0 && !(t.mode & 1) && (mr = le() + 500, co && pn()));
11440
+ Rs(e, n, r), (!(q & 2) || e !== ge) && (e === ge && (!(q & 2) && (mo |= n), he === 4 && Kt(e, we)), Ue(e, r), n === 1 && q === 0 && !(t.mode & 1) && (mr = le() + 500, co && pn()));
11426
11441
  }
11427
- function Be(e, t) {
11442
+ function Ue(e, t) {
11428
11443
  var n = e.callbackNode;
11429
11444
  W0(e, t);
11430
11445
  var r = Li(e, e === ge ? we : 0);
@@ -11479,10 +11494,10 @@ function xp(e, t) {
11479
11494
  iu(), Vi.current = i, q = s, ue !== null ? t = 0 : (ge = null, we = 0, t = he);
11480
11495
  }
11481
11496
  if (t !== 0) {
11482
- if (t === 2 && (s = Vl(e), s !== 0 && (r = s, t = wa(e, s))), t === 1) throw n = _s, _n(e, 0), Kt(e, r), Be(e, le()), n;
11497
+ if (t === 2 && (s = Vl(e), s !== 0 && (r = s, t = wa(e, s))), t === 1) throw n = _s, _n(e, 0), Kt(e, r), Ue(e, le()), n;
11483
11498
  if (t === 6) Kt(e, r);
11484
11499
  else {
11485
- if (s = e.current.alternate, !(r & 30) && !c1(s) && (t = Gi(e, r), t === 2 && (i = Vl(e), i !== 0 && (r = i, t = wa(e, i))), t === 1)) throw n = _s, _n(e, 0), Kt(e, r), Be(e, le()), n;
11500
+ if (s = e.current.alternate, !(r & 30) && !c1(s) && (t = Gi(e, r), t === 2 && (i = Vl(e), i !== 0 && (r = i, t = wa(e, i))), t === 1)) throw n = _s, _n(e, 0), Kt(e, r), Ue(e, le()), n;
11486
11501
  switch (e.finishedWork = s, e.finishedLanes = r, t) {
11487
11502
  case 0:
11488
11503
  case 1:
@@ -11522,7 +11537,7 @@ function xp(e, t) {
11522
11537
  }
11523
11538
  }
11524
11539
  }
11525
- return Be(e, le()), e.callbackNode === n ? xp.bind(null, e) : null;
11540
+ return Ue(e, le()), e.callbackNode === n ? xp.bind(null, e) : null;
11526
11541
  }
11527
11542
  function wa(e, t) {
11528
11543
  var n = rs;
@@ -11567,15 +11582,15 @@ function Rf(e) {
11567
11582
  if (q & 6) throw Error(E(327));
11568
11583
  ar();
11569
11584
  var t = Li(e, 0);
11570
- if (!(t & 1)) return Be(e, le()), null;
11585
+ if (!(t & 1)) return Ue(e, le()), null;
11571
11586
  var n = Gi(e, t);
11572
11587
  if (e.tag !== 0 && n === 2) {
11573
11588
  var r = Vl(e);
11574
11589
  r !== 0 && (t = r, n = wa(e, r));
11575
11590
  }
11576
- if (n === 1) throw n = _s, _n(e, 0), Kt(e, t), Be(e, le()), n;
11591
+ if (n === 1) throw n = _s, _n(e, 0), Kt(e, t), Ue(e, le()), n;
11577
11592
  if (n === 6) throw Error(E(345));
11578
- return e.finishedWork = e.current.alternate, e.finishedLanes = t, wn(e, De, It), Be(e, le()), null;
11593
+ return e.finishedWork = e.current.alternate, e.finishedLanes = t, wn(e, De, It), Ue(e, le()), null;
11579
11594
  }
11580
11595
  function xu(e, t) {
11581
11596
  var n = q;
@@ -11598,7 +11613,7 @@ function Ln(e) {
11598
11613
  }
11599
11614
  }
11600
11615
  function Su() {
11601
- qe = er.current, J(er);
11616
+ Ve = er.current, J(er);
11602
11617
  }
11603
11618
  function _n(e, t) {
11604
11619
  e.finishedWork = null, e.finishedLanes = 0;
@@ -11610,7 +11625,7 @@ function _n(e, t) {
11610
11625
  r = r.type.childContextTypes, r != null && Ii();
11611
11626
  break;
11612
11627
  case 3:
11613
- hr(), J($e), J(Ne), fu();
11628
+ hr(), J(Fe), J(Ne), fu();
11614
11629
  break;
11615
11630
  case 5:
11616
11631
  cu(r);
@@ -11633,7 +11648,7 @@ function _n(e, t) {
11633
11648
  }
11634
11649
  n = n.return;
11635
11650
  }
11636
- if (ge = e, ue = e = an(e.current, null), we = qe = t, he = 0, _s = null, wu = mo = An = 0, De = rs = null, xn !== null) {
11651
+ if (ge = e, ue = e = an(e.current, null), we = Ve = t, he = 0, _s = null, wu = mo = An = 0, De = rs = null, xn !== null) {
11637
11652
  for (t = 0; t < xn.length; t++) if (n = xn[t], r = n.interleaved, r !== null) {
11638
11653
  n.interleaved = null;
11639
11654
  var s = r.next, i = n.pending;
@@ -11752,7 +11767,7 @@ function d1() {
11752
11767
  for (; ue !== null && !D0(); ) Ep(ue);
11753
11768
  }
11754
11769
  function Ep(e) {
11755
- var t = Np(e.alternate, e, qe);
11770
+ var t = Np(e.alternate, e, Ve);
11756
11771
  e.memoizedProps = e.pendingProps, t === null ? Tp(e) : ue = t, vu.current = null;
11757
11772
  }
11758
11773
  function Tp(e) {
@@ -11769,7 +11784,7 @@ function Tp(e) {
11769
11784
  he = 6, ue = null;
11770
11785
  return;
11771
11786
  }
11772
- } else if (n = s1(n, t, qe), n !== null) {
11787
+ } else if (n = s1(n, t, Ve), n !== null) {
11773
11788
  ue = n;
11774
11789
  return;
11775
11790
  }
@@ -11810,7 +11825,7 @@ function h1(e, t, n, r) {
11810
11825
  var l = q;
11811
11826
  q |= 4, vu.current = null, l1(e, n), wp(n, e), Pv(Xl), ji = !!Kl, Xl = Kl = null, e.current = n, a1(n), b0(), q = l, Y = o, nt.transition = i;
11812
11827
  } else e.current = n;
11813
- if (si && (si = !1, Zt = e, Qi = s), i = e.pendingLanes, i === 0 && (on = null), B0(n.stateNode), Be(e, le()), t !== null) for (r = e.onRecoverableError, n = 0; n < t.length; n++) s = t[n], r(s.value, { componentStack: s.stack, digest: s.digest });
11828
+ if (si && (si = !1, Zt = e, Qi = s), i = e.pendingLanes, i === 0 && (on = null), B0(n.stateNode), Ue(e, le()), t !== null) for (r = e.onRecoverableError, n = 0; n < t.length; n++) s = t[n], r(s.value, { componentStack: s.stack, digest: s.digest });
11814
11829
  if (Wi) throw Wi = !1, e = ya, ya = null, e;
11815
11830
  return Qi & 1 && e.tag !== 0 && ar(), i = e.pendingLanes, i & 1 ? e === va ? ss++ : (ss = 0, va = e) : ss = 0, pn(), null;
11816
11831
  }
@@ -11926,7 +11941,7 @@ function ar() {
11926
11941
  return !1;
11927
11942
  }
11928
11943
  function Af(e, t, n) {
11929
- t = pr(n, t), t = ip(e, t, 1), e = sn(e, t, 1), t = je(), e !== null && (Rs(e, 1, t), Be(e, t));
11944
+ t = pr(n, t), t = ip(e, t, 1), e = sn(e, t, 1), t = je(), e !== null && (Rs(e, 1, t), Ue(e, t));
11930
11945
  }
11931
11946
  function oe(e, t, n) {
11932
11947
  if (e.tag === 3) Af(e, e, n);
@@ -11937,7 +11952,7 @@ function oe(e, t, n) {
11937
11952
  } else if (t.tag === 1) {
11938
11953
  var r = t.stateNode;
11939
11954
  if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (on === null || !on.has(r))) {
11940
- e = pr(n, e), e = op(t, e, 1), t = sn(t, e, 1), e = je(), t !== null && (Rs(t, 1, e), Be(t, e));
11955
+ e = pr(n, e), e = op(t, e, 1), t = sn(t, e, 1), e = je(), t !== null && (Rs(t, 1, e), Ue(t, e));
11941
11956
  break;
11942
11957
  }
11943
11958
  }
@@ -11946,12 +11961,12 @@ function oe(e, t, n) {
11946
11961
  }
11947
11962
  function p1(e, t, n) {
11948
11963
  var r = e.pingCache;
11949
- r !== null && r.delete(t), t = je(), e.pingedLanes |= e.suspendedLanes & n, ge === e && (we & n) === n && (he === 4 || he === 3 && (we & 130023424) === we && 500 > le() - ku ? _n(e, 0) : wu |= n), Be(e, t);
11964
+ r !== null && r.delete(t), t = je(), e.pingedLanes |= e.suspendedLanes & n, ge === e && (we & n) === n && (he === 4 || he === 3 && (we & 130023424) === we && 500 > le() - ku ? _n(e, 0) : wu |= n), Ue(e, t);
11950
11965
  }
11951
11966
  function Cp(e, t) {
11952
11967
  t === 0 && (e.mode & 1 ? (t = Gs, Gs <<= 1, !(Gs & 130023424) && (Gs = 4194304)) : t = 1);
11953
11968
  var n = je();
11954
- e = Ut(e, t), e !== null && (Rs(e, t, n), Be(e, n));
11969
+ e = Ut(e, t), e !== null && (Rs(e, t, n), Ue(e, n));
11955
11970
  }
11956
11971
  function m1(e) {
11957
11972
  var t = e.memoizedState, n = 0;
@@ -11974,7 +11989,7 @@ function g1(e, t) {
11974
11989
  }
11975
11990
  var Np;
11976
11991
  Np = function(e, t, n) {
11977
- if (e !== null) if (e.memoizedProps !== t.pendingProps || $e.current) be = !0;
11992
+ if (e !== null) if (e.memoizedProps !== t.pendingProps || Fe.current) be = !0;
11978
11993
  else {
11979
11994
  if (!(e.lanes & n) && !(t.flags & 128)) return be = !1, r1(e, t, n);
11980
11995
  be = !!(e.flags & 131072);
@@ -11987,7 +12002,7 @@ Np = function(e, t, n) {
11987
12002
  var s = cr(t, Ne.current);
11988
12003
  lr(t, n), s = hu(null, t, r, e, s, n);
11989
12004
  var i = pu();
11990
- return t.flags |= 1, typeof s == "object" && s !== null && typeof s.render == "function" && s.$$typeof === void 0 ? (t.tag = 1, t.memoizedState = null, t.updateQueue = null, Fe(r) ? (i = !0, zi(t)) : i = !1, t.memoizedState = s.state !== null && s.state !== void 0 ? s.state : null, au(t), s.updater = ho, t.stateNode = s, s._reactInternals = t, oa(t, r, e, n), t = ua(null, t, r, !0, i, n)) : (t.tag = 0, te && i && tu(t), Ae(null, t, s, n), t = t.child), t;
12005
+ return t.flags |= 1, typeof s == "object" && s !== null && typeof s.render == "function" && s.$$typeof === void 0 ? (t.tag = 1, t.memoizedState = null, t.updateQueue = null, Be(r) ? (i = !0, zi(t)) : i = !1, t.memoizedState = s.state !== null && s.state !== void 0 ? s.state : null, au(t), s.updater = ho, t.stateNode = s, s._reactInternals = t, oa(t, r, e, n), t = ua(null, t, r, !0, i, n)) : (t.tag = 0, te && i && tu(t), Ae(null, t, s, n), t = t.child), t;
11991
12006
  case 16:
11992
12007
  r = t.elementType;
11993
12008
  e: {
@@ -12027,7 +12042,7 @@ Np = function(e, t, n) {
12027
12042
  } else if (r !== s) {
12028
12043
  s = pr(Error(E(424)), t), t = kf(e, t, r, n, s);
12029
12044
  break e;
12030
- } else for (Ve = rn(t.stateNode.containerInfo.firstChild), Qe = t, te = !0, ft = null, n = Ih(t, null, r, n), t.child = n; n; ) n.flags = n.flags & -3 | 4096, n = n.sibling;
12045
+ } else for (We = rn(t.stateNode.containerInfo.firstChild), Qe = t, te = !0, ft = null, n = Ih(t, null, r, n), t.child = n; n; ) n.flags = n.flags & -3 | 4096, n = n.sibling;
12031
12046
  else {
12032
12047
  if (fr(), r === s) {
12033
12048
  t = Ht(e, t, n);
@@ -12057,7 +12072,7 @@ Np = function(e, t, n) {
12057
12072
  case 10:
12058
12073
  e: {
12059
12074
  if (r = t.type._context, s = t.pendingProps, i = t.memoizedProps, o = s.value, X($i, r._currentValue), r._currentValue = o, i !== null) if (pt(i.value, o)) {
12060
- if (i.children === s.children && !$e.current) {
12075
+ if (i.children === s.children && !Fe.current) {
12061
12076
  t = Ht(e, t, n);
12062
12077
  break e;
12063
12078
  }
@@ -12114,7 +12129,7 @@ Np = function(e, t, n) {
12114
12129
  case 15:
12115
12130
  return lp(e, t, t.type, t.pendingProps, n);
12116
12131
  case 17:
12117
- return r = t.type, s = t.pendingProps, s = t.elementType === r ? s : at(r, s), ki(e, t), t.tag = 1, Fe(r) ? (e = !0, zi(t)) : e = !1, lr(t, n), sp(t, r, s), oa(t, r, s, n), ua(null, t, r, !0, e, n);
12132
+ return r = t.type, s = t.pendingProps, s = t.elementType === r ? s : at(r, s), ki(e, t), t.tag = 1, Be(r) ? (e = !0, zi(t)) : e = !1, lr(t, n), sp(t, r, s), oa(t, r, s, n), ua(null, t, r, !0, e, n);
12118
12133
  case 19:
12119
12134
  return dp(e, t, n);
12120
12135
  case 22:
@@ -12220,7 +12235,7 @@ function Ap(e) {
12220
12235
  t = t.stateNode.context;
12221
12236
  break e;
12222
12237
  case 1:
12223
- if (Fe(t.type)) {
12238
+ if (Be(t.type)) {
12224
12239
  t = t.stateNode.__reactInternalMemoizedMergedChildContext;
12225
12240
  break e;
12226
12241
  }
@@ -12231,12 +12246,12 @@ function Ap(e) {
12231
12246
  }
12232
12247
  if (e.tag === 1) {
12233
12248
  var n = e.type;
12234
- if (Fe(n)) return Ah(e, n, t);
12249
+ if (Be(n)) return Ah(e, n, t);
12235
12250
  }
12236
12251
  return t;
12237
12252
  }
12238
12253
  function Lp(e, t, n, r, s, i, o, l, a) {
12239
- return e = Tu(n, r, !0, e, s, i, o, l, a), e.context = Ap(null), n = e.current, r = je(), s = ln(n), i = $t(r, s), i.callback = t ?? null, sn(n, i, s), e.current.lanes = s, Rs(e, s, r), Be(e, r), e;
12254
+ return e = Tu(n, r, !0, e, s, i, o, l, a), e.context = Ap(null), n = e.current, r = je(), s = ln(n), i = $t(r, s), i.callback = t ?? null, sn(n, i, s), e.current.lanes = s, Rs(e, s, r), Ue(e, r), e;
12240
12255
  }
12241
12256
  function yo(e, t, n, r) {
12242
12257
  var s = t.current, i = je(), o = ln(s);
@@ -12349,7 +12364,7 @@ oh = function(e) {
12349
12364
  var t = e.stateNode;
12350
12365
  if (t.current.memoizedState.isDehydrated) {
12351
12366
  var n = Vr(t.pendingLanes);
12352
- n !== 0 && (Qa(t, n | 1), Be(t, le()), !(q & 6) && (mr = le() + 500, pn()));
12367
+ n !== 0 && (Qa(t, n | 1), Ue(t, le()), !(q & 6) && (mr = le() + 500, pn()));
12353
12368
  }
12354
12369
  break;
12355
12370
  case 13:
@@ -12528,7 +12543,7 @@ function Ip(e = document, t, n = 5e3) {
12528
12543
  try {
12529
12544
  if (l) {
12530
12545
  const u = new URL(l, ((s = e.location) == null ? void 0 : s.href) || void 0);
12531
- u.searchParams.has("v") || u.searchParams.set("v", "1.0.17"), l = u.toString();
12546
+ u.searchParams.has("v") || u.searchParams.set("v", "1.0.18"), l = u.toString();
12532
12547
  }
12533
12548
  } catch {
12534
12549
  }
@@ -12632,7 +12647,6 @@ typeof window < "u" && (window.LuliChatSupport = window.LuliChatSupport ?? {
12632
12647
  initFromScript: R1
12633
12648
  });
12634
12649
  export {
12635
- Tc as LuliChat,
12636
12650
  Tc as default,
12637
12651
  R1 as initFromScript,
12638
12652
  zp as mount,