@chatsystem/client 1.1.27 → 1.1.29

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.
package/dist/index.mjs CHANGED
@@ -59,7 +59,7 @@ var Ai;
59
59
  function Fl() {
60
60
  if (Ai) return be;
61
61
  Ai = 1;
62
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, u = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, A = e ? Symbol.for("react.block") : 60121, L = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, R = e ? Symbol.for("react.scope") : 60119;
62
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, u = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, A = e ? Symbol.for("react.block") : 60121, L = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, R = e ? Symbol.for("react.scope") : 60119;
63
63
  function N(x) {
64
64
  if (typeof x == "object" && x !== null) {
65
65
  var I = x.$$typeof;
@@ -78,7 +78,7 @@ function Fl() {
78
78
  case o:
79
79
  case f:
80
80
  case y:
81
- case h:
81
+ case m:
82
82
  case u:
83
83
  return x;
84
84
  default:
@@ -93,7 +93,7 @@ function Fl() {
93
93
  function D(x) {
94
94
  return N(x) === c;
95
95
  }
96
- return be.AsyncMode = l, be.ConcurrentMode = c, be.ContextConsumer = o, be.ContextProvider = u, be.Element = t, be.ForwardRef = f, be.Fragment = r, be.Lazy = y, be.Memo = h, be.Portal = n, be.Profiler = i, be.StrictMode = a, be.Suspense = d, be.isAsyncMode = function(x) {
96
+ return be.AsyncMode = l, be.ConcurrentMode = c, be.ContextConsumer = o, be.ContextProvider = u, be.Element = t, be.ForwardRef = f, be.Fragment = r, be.Lazy = y, be.Memo = m, be.Portal = n, be.Profiler = i, be.StrictMode = a, be.Suspense = d, be.isAsyncMode = function(x) {
97
97
  return D(x) || N(x) === l;
98
98
  }, be.isConcurrentMode = D, be.isContextConsumer = function(x) {
99
99
  return N(x) === o;
@@ -108,7 +108,7 @@ function Fl() {
108
108
  }, be.isLazy = function(x) {
109
109
  return N(x) === y;
110
110
  }, be.isMemo = function(x) {
111
- return N(x) === h;
111
+ return N(x) === m;
112
112
  }, be.isPortal = function(x) {
113
113
  return N(x) === n;
114
114
  }, be.isProfiler = function(x) {
@@ -118,7 +118,7 @@ function Fl() {
118
118
  }, be.isSuspense = function(x) {
119
119
  return N(x) === d;
120
120
  }, be.isValidElementType = function(x) {
121
- return typeof x == "string" || typeof x == "function" || x === r || x === c || x === i || x === a || x === d || x === m || typeof x == "object" && x !== null && (x.$$typeof === y || x.$$typeof === h || x.$$typeof === u || x.$$typeof === o || x.$$typeof === f || x.$$typeof === L || x.$$typeof === S || x.$$typeof === R || x.$$typeof === A);
121
+ return typeof x == "string" || typeof x == "function" || x === r || x === c || x === i || x === a || x === d || x === h || typeof x == "object" && x !== null && (x.$$typeof === y || x.$$typeof === m || x.$$typeof === u || x.$$typeof === o || x.$$typeof === f || x.$$typeof === L || x.$$typeof === S || x.$$typeof === R || x.$$typeof === A);
122
122
  }, be.typeOf = N, be;
123
123
  }
124
124
  var Te = {};
@@ -133,10 +133,10 @@ var Te = {};
133
133
  var _i;
134
134
  function Hl() {
135
135
  return _i || (_i = 1, process.env.NODE_ENV !== "production" && (function() {
136
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, u = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, A = e ? Symbol.for("react.block") : 60121, L = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, R = e ? Symbol.for("react.scope") : 60119;
136
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, u = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, A = e ? Symbol.for("react.block") : 60121, L = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, R = e ? Symbol.for("react.scope") : 60119;
137
137
  function N(U) {
138
138
  return typeof U == "string" || typeof U == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
139
- U === r || U === c || U === i || U === a || U === d || U === m || typeof U == "object" && U !== null && (U.$$typeof === y || U.$$typeof === h || U.$$typeof === u || U.$$typeof === o || U.$$typeof === f || U.$$typeof === L || U.$$typeof === S || U.$$typeof === R || U.$$typeof === A);
139
+ U === r || U === c || U === i || U === a || U === d || U === h || typeof U == "object" && U !== null && (U.$$typeof === y || U.$$typeof === m || U.$$typeof === u || U.$$typeof === o || U.$$typeof === f || U.$$typeof === L || U.$$typeof === S || U.$$typeof === R || U.$$typeof === A);
140
140
  }
141
141
  function D(U) {
142
142
  if (typeof U == "object" && U !== null) {
@@ -158,7 +158,7 @@ function Hl() {
158
158
  case o:
159
159
  case f:
160
160
  case y:
161
- case h:
161
+ case m:
162
162
  case u:
163
163
  return xe;
164
164
  default:
@@ -170,7 +170,7 @@ function Hl() {
170
170
  }
171
171
  }
172
172
  }
173
- var x = l, I = c, q = o, ue = u, te = t, Y = f, M = r, w = y, G = h, $ = n, W = i, se = a, me = d, ve = !1;
173
+ var x = l, I = c, q = o, ue = u, te = t, Y = f, M = r, w = y, G = m, $ = n, W = i, se = a, me = d, ve = !1;
174
174
  function Le(U) {
175
175
  return ve || (ve = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), p(U) || D(U) === l;
176
176
  }
@@ -196,7 +196,7 @@ function Hl() {
196
196
  return D(U) === y;
197
197
  }
198
198
  function Q(U) {
199
- return D(U) === h;
199
+ return D(U) === m;
200
200
  }
201
201
  function ee(U) {
202
202
  return D(U) === n;
@@ -259,12 +259,12 @@ function Ul() {
259
259
  function u(y) {
260
260
  return e.isMemo(y) ? a : i[y.$$typeof] || t;
261
261
  }
262
- var o = Object.defineProperty, l = Object.getOwnPropertyNames, c = Object.getOwnPropertySymbols, f = Object.getOwnPropertyDescriptor, d = Object.getPrototypeOf, m = Object.prototype;
263
- function h(y, A, L) {
262
+ var o = Object.defineProperty, l = Object.getOwnPropertyNames, c = Object.getOwnPropertySymbols, f = Object.getOwnPropertyDescriptor, d = Object.getPrototypeOf, h = Object.prototype;
263
+ function m(y, A, L) {
264
264
  if (typeof A != "string") {
265
- if (m) {
265
+ if (h) {
266
266
  var S = d(A);
267
- S && S !== m && h(y, S, L);
267
+ S && S !== h && m(y, S, L);
268
268
  }
269
269
  var R = l(A);
270
270
  c && (R = R.concat(c(A)));
@@ -281,7 +281,7 @@ function Ul() {
281
281
  }
282
282
  return y;
283
283
  }
284
- return Mr = h, Mr;
284
+ return Mr = m, Mr;
285
285
  }
286
286
  Ul();
287
287
  function ls(e, t, n) {
@@ -446,8 +446,8 @@ var jl = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
446
446
  function Vl(e) {
447
447
  if (e.length === 0)
448
448
  throw new Error("Number skeleton cannot be empty");
449
- for (var t = e.split(jl).filter(function(m) {
450
- return m.length > 0;
449
+ for (var t = e.split(jl).filter(function(h) {
450
+ return h.length > 0;
451
451
  }), n = [], r = 0, a = t; r < a.length; r++) {
452
452
  var i = a[r], u = i.split("/");
453
453
  if (u.length === 0)
@@ -617,13 +617,13 @@ function Ql(e) {
617
617
  case "integer-width":
618
618
  if (a.options.length > 1)
619
619
  throw new RangeError("integer-width stems only accept a single optional option");
620
- a.options[0].replace(Wl, function(l, c, f, d, m, h) {
620
+ a.options[0].replace(Wl, function(l, c, f, d, h, m) {
621
621
  if (c)
622
622
  t.minimumIntegerDigits = f.length;
623
623
  else {
624
- if (d && m)
624
+ if (d && h)
625
625
  throw new Error("We currently do not support maximum integer digits");
626
- if (h)
626
+ if (m)
627
627
  throw new Error("We currently do not support exact integer digits");
628
628
  }
629
629
  return "";
@@ -637,8 +637,8 @@ function Ql(e) {
637
637
  if (xi.test(a.stem)) {
638
638
  if (a.options.length > 1)
639
639
  throw new RangeError("Fraction-precision stems only accept a single optional option");
640
- a.stem.replace(xi, function(l, c, f, d, m, h) {
641
- return f === "*" ? t.minimumFractionDigits = c.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : m && h ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + h.length) : (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length), "";
640
+ a.stem.replace(xi, function(l, c, f, d, h, m) {
641
+ return f === "*" ? t.minimumFractionDigits = c.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : h && m ? (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length + m.length) : (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length), "";
642
642
  });
643
643
  var i = a.options[0];
644
644
  i === "w" ? t = j(j({}, t), { trailingZeroDisplay: "stripIfInteger" }) : i && (t = j(j({}, t), Ii(i)));
@@ -2406,11 +2406,11 @@ var dc = (
2406
2406
  var f = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
2407
2407
  if (d.err)
2408
2408
  return d;
2409
- var m = fc(d.val);
2410
- if (m.length === 0)
2409
+ var h = fc(d.val);
2410
+ if (h.length === 0)
2411
2411
  return this.error(fe.EXPECT_ARGUMENT_STYLE, de(this.clonePosition(), this.clonePosition()));
2412
- var h = de(f, this.clonePosition());
2413
- c = { style: m, styleLocation: h };
2412
+ var m = de(f, this.clonePosition());
2413
+ c = { style: h, styleLocation: m };
2414
2414
  }
2415
2415
  var y = this.tryParseArgumentClose(a);
2416
2416
  if (y.err)
@@ -2429,14 +2429,14 @@ var dc = (
2429
2429
  return this.error(fe.EXPECT_DATE_TIME_SKELETON, A);
2430
2430
  var S = L;
2431
2431
  this.locale && (S = Kl(L, this.locale));
2432
- var m = {
2432
+ var h = {
2433
2433
  type: an.dateTime,
2434
2434
  pattern: S,
2435
2435
  location: c.styleLocation,
2436
2436
  parsedOptions: this.shouldParseSkeletons ? zl(S) : {}
2437
2437
  }, R = o === "date" ? Oe.date : Oe.time;
2438
2438
  return {
2439
- val: { type: R, value: r, location: A, style: m },
2439
+ val: { type: R, value: r, location: A, style: h },
2440
2440
  err: null
2441
2441
  };
2442
2442
  }
@@ -2556,9 +2556,9 @@ var dc = (
2556
2556
  if (c.length === 0) {
2557
2557
  var d = this.clonePosition();
2558
2558
  if (n !== "select" && this.bumpIf("=")) {
2559
- var m = this.tryParseDecimalInteger(fe.EXPECT_PLURAL_ARGUMENT_SELECTOR, fe.INVALID_PLURAL_ARGUMENT_SELECTOR);
2560
- if (m.err)
2561
- return m;
2559
+ var h = this.tryParseDecimalInteger(fe.EXPECT_PLURAL_ARGUMENT_SELECTOR, fe.INVALID_PLURAL_ARGUMENT_SELECTOR);
2560
+ if (h.err)
2561
+ return h;
2562
2562
  f = de(d, this.clonePosition()), c = this.message.slice(d.offset, this.offset());
2563
2563
  } else
2564
2564
  break;
@@ -2566,20 +2566,20 @@ var dc = (
2566
2566
  if (l.has(c))
2567
2567
  return this.error(n === "select" ? fe.DUPLICATE_SELECT_ARGUMENT_SELECTOR : fe.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
2568
2568
  c === "other" && (u = !0), this.bumpSpace();
2569
- var h = this.clonePosition();
2569
+ var m = this.clonePosition();
2570
2570
  if (!this.bumpIf("{"))
2571
2571
  return this.error(n === "select" ? fe.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : fe.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, de(this.clonePosition(), this.clonePosition()));
2572
2572
  var y = this.parseMessage(t + 1, n, r);
2573
2573
  if (y.err)
2574
2574
  return y;
2575
- var A = this.tryParseArgumentClose(h);
2575
+ var A = this.tryParseArgumentClose(m);
2576
2576
  if (A.err)
2577
2577
  return A;
2578
2578
  o.push([
2579
2579
  c,
2580
2580
  {
2581
2581
  value: y.val,
2582
- location: de(h, this.clonePosition())
2582
+ location: de(m, this.clonePosition())
2583
2583
  }
2584
2584
  ]), l.add(c), this.bumpSpace(), i = this.parseIdentifierIfPossible(), c = i.value, f = i.location;
2585
2585
  }
@@ -2822,35 +2822,35 @@ function nr(e, t, n, r, a, i, u) {
2822
2822
  var d = f.value;
2823
2823
  if (!(a && d in a))
2824
2824
  throw new Cc(d, u);
2825
- var m = a[d];
2825
+ var h = a[d];
2826
2826
  if ($l(f)) {
2827
- (!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), o.push({
2828
- type: typeof m == "string" ? je.literal : je.object,
2829
- value: m
2827
+ (!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), o.push({
2828
+ type: typeof h == "string" ? je.literal : je.object,
2829
+ value: h
2830
2830
  });
2831
2831
  continue;
2832
2832
  }
2833
2833
  if (fs(f)) {
2834
- var h = typeof f.style == "string" ? r.date[f.style] : Ea(f.style) ? f.style.parsedOptions : void 0;
2834
+ var m = typeof f.style == "string" ? r.date[f.style] : Ea(f.style) ? f.style.parsedOptions : void 0;
2835
2835
  o.push({
2836
2836
  type: je.literal,
2837
- value: n.getDateTimeFormat(t, h).format(m)
2837
+ value: n.getDateTimeFormat(t, m).format(h)
2838
2838
  });
2839
2839
  continue;
2840
2840
  }
2841
2841
  if (ds(f)) {
2842
- var h = typeof f.style == "string" ? r.time[f.style] : Ea(f.style) ? f.style.parsedOptions : r.time.medium;
2842
+ var m = typeof f.style == "string" ? r.time[f.style] : Ea(f.style) ? f.style.parsedOptions : r.time.medium;
2843
2843
  o.push({
2844
2844
  type: je.literal,
2845
- value: n.getDateTimeFormat(t, h).format(m)
2845
+ value: n.getDateTimeFormat(t, m).format(h)
2846
2846
  });
2847
2847
  continue;
2848
2848
  }
2849
2849
  if (cs(f)) {
2850
- var h = typeof f.style == "string" ? r.number[f.style] : Es(f.style) ? f.style.parsedOptions : void 0;
2851
- h && h.scale && (m = m * (h.scale || 1)), o.push({
2850
+ var m = typeof f.style == "string" ? r.number[f.style] : Es(f.style) ? f.style.parsedOptions : void 0;
2851
+ m && m.scale && (h = h * (m.scale || 1)), o.push({
2852
2852
  type: je.literal,
2853
- value: n.getNumberFormat(t, h).format(m)
2853
+ value: n.getNumberFormat(t, m).format(h)
2854
2854
  });
2855
2855
  continue;
2856
2856
  }
@@ -2869,25 +2869,25 @@ function nr(e, t, n, r, a, i, u) {
2869
2869
  }));
2870
2870
  }
2871
2871
  if (hs(f)) {
2872
- var N = f.options[m] || f.options.other;
2872
+ var N = f.options[h] || f.options.other;
2873
2873
  if (!N)
2874
- throw new vi(f.value, m, Object.keys(f.options), u);
2874
+ throw new vi(f.value, h, Object.keys(f.options), u);
2875
2875
  o.push.apply(o, nr(N.value, t, n, r, a));
2876
2876
  continue;
2877
2877
  }
2878
2878
  if (ms(f)) {
2879
- var N = f.options["=".concat(m)];
2879
+ var N = f.options["=".concat(h)];
2880
2880
  if (!N) {
2881
2881
  if (!Intl.PluralRules)
2882
2882
  throw new Lt(`Intl.PluralRules is not available in this environment.
2883
2883
  Try polyfilling it using "@formatjs/intl-pluralrules"
2884
2884
  `, bt.MISSING_INTL_API, u);
2885
- var D = n.getPluralRules(t, { type: f.pluralType }).select(m - (f.offset || 0));
2885
+ var D = n.getPluralRules(t, { type: f.pluralType }).select(h - (f.offset || 0));
2886
2886
  N = f.options[D] || f.options.other;
2887
2887
  }
2888
2888
  if (!N)
2889
- throw new vi(f.value, m, Object.keys(f.options), u);
2890
- o.push.apply(o, nr(N.value, t, n, r, a, m - (f.offset || 0)));
2889
+ throw new vi(f.value, h, Object.keys(f.options), u);
2890
+ o.push.apply(o, nr(N.value, t, n, r, a, h - (f.offset || 0)));
2891
2891
  continue;
2892
2892
  }
2893
2893
  }
@@ -2962,8 +2962,8 @@ var Ns = (
2962
2962
  var c = i.formatToParts(l);
2963
2963
  if (c.length === 1)
2964
2964
  return c[0].value;
2965
- var f = c.reduce(function(d, m) {
2966
- return !d.length || m.type !== je.literal || typeof d[d.length - 1] != "string" ? d.push(m.value) : d[d.length - 1] += m.value, d;
2965
+ var f = c.reduce(function(d, h) {
2966
+ return !d.length || h.type !== je.literal || typeof d[d.length - 1] != "string" ? d.push(h.value) : d[d.length - 1] += h.value, d;
2967
2967
  }, []);
2968
2968
  return f.length <= 1 ? f[0] || "" : f;
2969
2969
  }, this.formatToParts = function(l) {
@@ -3275,7 +3275,7 @@ function ki(e, t) {
3275
3275
  return j(j(j({}, n), e), { date: Di(Wn(n.date, t), Wn(e.date || {}, t)), time: Di(Wn(n.time, t), Wn(e.time || {}, t)) });
3276
3276
  }
3277
3277
  var ya = function(e, t, n, r, a) {
3278
- var i = e.locale, u = e.formats, o = e.messages, l = e.defaultLocale, c = e.defaultFormats, f = e.fallbackOnEmptyString, d = e.onError, m = e.timeZone, h = e.defaultRichTextElements;
3278
+ var i = e.locale, u = e.formats, o = e.messages, l = e.defaultLocale, c = e.defaultFormats, f = e.fallbackOnEmptyString, d = e.onError, h = e.timeZone, m = e.defaultRichTextElements;
3279
3279
  n === void 0 && (n = { id: "" });
3280
3280
  var y = n.id, A = n.defaultMessage;
3281
3281
  ls(!!y, "[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");
@@ -3287,9 +3287,9 @@ var ya = function(e, t, n, r, a) {
3287
3287
  );
3288
3288
  if (Array.isArray(S) && S.length === 1 && S[0].type === Oe.literal)
3289
3289
  return S[0].value;
3290
- if (!r && S && typeof S == "string" && !h)
3290
+ if (!r && S && typeof S == "string" && !m)
3291
3291
  return S.replace(/'\{(.*?)\}'/gi, "{$1}");
3292
- if (r = j(j({}, h), r || {}), u = ki(u, m), c = ki(c, m), !S) {
3292
+ if (r = j(j({}, m), r || {}), u = ki(u, h), c = ki(c, h), !S) {
3293
3293
  if (f === !1 && S === "")
3294
3294
  return S;
3295
3295
  if ((!A || i && i.toLowerCase() !== l.toLowerCase()) && d(new vc(n, i)), A)
@@ -3370,8 +3370,8 @@ function Bc(e, t) {
3370
3370
  var a = n[0], i = n[1], u = n[2], o = u === void 0 ? {} : u, l = e.timeZone, c = e.locale, f = e.onError, d = Gt(o, Rs, l ? { timeZone: l } : {});
3371
3371
  try {
3372
3372
  return t(c, d).formatRange(a, i);
3373
- } catch (m) {
3374
- f(new ut("Error formatting date time range.", e.locale, m));
3373
+ } catch (h) {
3374
+ f(new ut("Error formatting date time range.", e.locale, h));
3375
3375
  }
3376
3376
  return String(a);
3377
3377
  }
@@ -3441,8 +3441,8 @@ Try polyfilling it using "@formatjs/intl-listformat"
3441
3441
  try {
3442
3442
  var l = {}, c = n.map(function(f, d) {
3443
3443
  if (typeof f == "object") {
3444
- var m = Gc(d);
3445
- return l[m] = f, m;
3444
+ var h = Gc(d);
3445
+ return l[h] = f, h;
3446
3446
  }
3447
3447
  return String(f);
3448
3448
  });
@@ -4028,41 +4028,43 @@ const Af = ({
4028
4028
  contentType: "application/json"
4029
4029
  });
4030
4030
  fetch(`${c}/company/settings/${t}/${e}`, f).then(async (d) => {
4031
- const m = await d.json();
4032
- a(m), o([
4031
+ const h = await d.json();
4032
+ a(h), o([
4033
4033
  {
4034
4034
  userType: "assistant",
4035
- content: m.agent.text.initialText
4035
+ content: h.agent.text.initialText
4036
4036
  }
4037
4037
  ]), n?.();
4038
4038
  }).catch((d) => console.log("error in fetch", d));
4039
4039
  }, [t, e]), { contextCompanySettings: i, contextInitialChatbotStartingText: l };
4040
4040
  };
4041
- function _f(e, t = {}, n) {
4042
- const { id: r, nonce: a, target: i, disableConstructable: u } = t, o = i ?? document.head, l = we(null), c = we(null);
4041
+ function _f(e, t = {}, n, r) {
4042
+ const { id: a, nonce: i, target: u, disableConstructable: o } = t, l = u ?? document.head, c = we(null), f = we(null);
4043
4043
  Pe(() => {
4044
- if (!e)
4044
+ if (!e) {
4045
+ n && (console.log("No custom css found."), r?.());
4045
4046
  return;
4046
- if (!u && "adoptedStyleSheets" in o && typeof CSSStyleSheet < "u" && "replaceSync" in CSSStyleSheet.prototype)
4047
- return l.current || (l.current = new CSSStyleSheet(), o.adoptedStyleSheets = [
4048
- ...o.adoptedStyleSheets,
4049
- l.current
4050
- ]), l.current.replaceSync(e), n?.(), () => {
4051
- const d = o.adoptedStyleSheets || [], m = d.indexOf(l.current);
4047
+ }
4048
+ if (!o && "adoptedStyleSheets" in l && typeof CSSStyleSheet < "u" && "replaceSync" in CSSStyleSheet.prototype)
4049
+ return c.current || (c.current = new CSSStyleSheet(), l.adoptedStyleSheets = [
4050
+ ...l.adoptedStyleSheets,
4051
+ c.current
4052
+ ]), c.current.replaceSync(e), console.log("Loading custom css via stylesheet."), r?.(), () => {
4053
+ const h = l.adoptedStyleSheets || [], m = h.indexOf(c.current);
4052
4054
  if (m >= 0) {
4053
- const h = d.slice();
4054
- h.splice(m, 1), o.adoptedStyleSheets = h;
4055
+ const y = h.slice();
4056
+ y.splice(m, 1), l.adoptedStyleSheets = y;
4055
4057
  }
4056
- l.current = null;
4058
+ c.current = null;
4057
4059
  };
4058
- if (!c.current) {
4059
- const d = document.createElement("style");
4060
- d.type = "text/css", r && (d.id = r), a && (d.nonce = a), (o instanceof Document && o.head || o).appendChild(d), c.current = d;
4060
+ if (!f.current) {
4061
+ const h = document.createElement("style");
4062
+ h.type = "text/css", a && (h.id = a), i && (h.nonce = i), (l instanceof Document && l.head || l).appendChild(h), f.current = h;
4061
4063
  }
4062
- return c.current.textContent = e, n?.(), () => {
4063
- c.current?.parentNode?.removeChild(c.current), c.current = null;
4064
+ return f.current.textContent = e, console.log("Loading custom css via style tag."), r?.(), () => {
4065
+ f.current?.parentNode?.removeChild(f.current), f.current = null;
4064
4066
  };
4065
- }, [e, r, a, i, u]);
4067
+ }, [e, a, i, u, o]);
4066
4068
  }
4067
4069
  const un = globalThis;
4068
4070
  un.__WIDGET_ASSET_CACHE__ || (un.__WIDGET_ASSET_CACHE__ = {
@@ -4143,13 +4145,13 @@ function zs(e) {
4143
4145
  i = null;
4144
4146
  }
4145
4147
  const { imgEl: u, width: o, height: l } = await new Promise((c, f) => {
4146
- const d = URL.createObjectURL(a), m = new Image();
4147
- m.crossOrigin = "anonymous", m.onload = () => {
4148
- const h = m.naturalWidth, y = m.naturalHeight;
4149
- c({ imgEl: m, width: h, height: y });
4150
- }, m.onerror = () => {
4148
+ const d = URL.createObjectURL(a), h = new Image();
4149
+ h.crossOrigin = "anonymous", h.onload = () => {
4150
+ const m = h.naturalWidth, y = h.naturalHeight;
4151
+ c({ imgEl: h, width: m, height: y });
4152
+ }, h.onerror = () => {
4151
4153
  URL.revokeObjectURL(d), f(new Error("Spritesheet image decode failed"));
4152
- }, m.src = d, m.decode?.().catch(() => {
4154
+ }, h.src = d, h.decode?.().catch(() => {
4153
4155
  });
4154
4156
  });
4155
4157
  return { imgEl: u, bitmap: i, width: o, height: l };
@@ -4295,10 +4297,8 @@ const Pf = ({
4295
4297
  return Nf(c.companySettings), _f(
4296
4298
  c.companySettings?.agent?.display?.CSSRules,
4297
4299
  { id: `${n}` },
4300
+ l.appInternalContext.hasFetchedSettings,
4298
4301
  l.setHasDisplayedCss
4299
- ), console.log(
4300
- "hasDIsplayedCss",
4301
- l.appInternalContext.hasDisplayedCSS
4302
4302
  ), /* @__PURE__ */ B(rn, { children: /* @__PURE__ */ B(
4303
4303
  of,
4304
4304
  {
@@ -4342,18 +4342,18 @@ function Ff({
4342
4342
  }) {
4343
4343
  const [c, f] = ke.useState({ kind: "loading" });
4344
4344
  return Pe(() => {
4345
- let d = null, m = !1;
4346
- return f({ kind: "loading" }), Gs(e).then(async (h) => {
4347
- if (!m)
4348
- if (h.kind === "zip") {
4349
- const y = Bf(h) ? h.blob : await (await fetch(h.blobUrl)).blob();
4345
+ let d = null, h = !1;
4346
+ return f({ kind: "loading" }), Gs(e).then(async (m) => {
4347
+ if (!h)
4348
+ if (m.kind === "zip") {
4349
+ const y = Bf(m) ? m.blob : await (await fetch(m.blobUrl)).blob();
4350
4350
  d = URL.createObjectURL(y), f({ kind: "lottieZip", blobUrl: d }), o?.(d);
4351
4351
  } else
4352
- f({ kind: "json", data: h.data }), o?.(h.data);
4352
+ f({ kind: "json", data: m.data }), o?.(m.data);
4353
4353
  }).catch(
4354
- (h) => !m && (f({ kind: "error", err: h }), l?.(h))
4354
+ (m) => !h && (f({ kind: "error", err: m }), l?.(m))
4355
4355
  ), () => {
4356
- m = !0, d && URL.revokeObjectURL(d);
4356
+ h = !0, d && URL.revokeObjectURL(d);
4357
4357
  };
4358
4358
  }, [e]), c.kind === "loading" ? /* @__PURE__ */ B(
4359
4359
  "div",
@@ -4412,14 +4412,14 @@ async function Hf(e, t = {}) {
4412
4412
  d[M + w] = 0.299 * l[G] + 0.587 * l[G + 1] + 0.114 * l[G + 2] | 0;
4413
4413
  }
4414
4414
  }
4415
- const m = new Float32Array(c), h = new Float32Array(f);
4415
+ const h = new Float32Array(c), m = new Float32Array(f);
4416
4416
  for (let Y = 1; Y < c - 1; Y++) {
4417
4417
  let M = 0;
4418
4418
  for (let w = 0; w < f; w++) {
4419
4419
  const G = w * c + Y, $ = d[G + 1] - d[G - 1];
4420
4420
  M += Math.abs($);
4421
4421
  }
4422
- m[Y] = M;
4422
+ h[Y] = M;
4423
4423
  }
4424
4424
  for (let Y = 1; Y < f - 1; Y++) {
4425
4425
  let M = 0;
@@ -4427,28 +4427,28 @@ async function Hf(e, t = {}) {
4427
4427
  const G = Y * c + w, $ = d[G + c] - d[G - c];
4428
4428
  M += Math.abs($);
4429
4429
  }
4430
- h[Y] = M;
4430
+ m[Y] = M;
4431
4431
  }
4432
4432
  const y = Hi(
4433
- m,
4433
+ h,
4434
4434
  n,
4435
4435
  Math.min(r, c / 2)
4436
4436
  ), A = Hi(
4437
- h,
4437
+ m,
4438
4438
  n,
4439
4439
  Math.min(r, f / 2)
4440
4440
  );
4441
4441
  if (!y || !A)
4442
4442
  return i && console.warn("detectGrid: could not find periods"), null;
4443
4443
  const L = Math.max(1, Math.round(c / y)), S = Math.max(1, Math.round(f / A)), R = Ui(
4444
- m,
4444
+ h,
4445
4445
  y,
4446
4446
  L,
4447
4447
  a
4448
- ), N = Ui(h, A, S, a), D = Math.max(1, y - R), x = Math.max(1, A - N);
4448
+ ), N = Ui(m, A, S, a), D = Math.max(1, y - R), x = Math.max(1, A - N);
4449
4449
  if (D * L > c + 2 || x * S > f + 2)
4450
4450
  return i && console.warn("detectGrid: sanity check failed"), null;
4451
- const I = xa(m, 60), q = xa(h, 60), ue = Math.max(0, $i(m, I)), te = Math.max(0, $i(h, q));
4451
+ const I = xa(h, 60), q = xa(m, 60), ue = Math.max(0, $i(h, I)), te = Math.max(0, $i(m, q));
4452
4452
  return i && console.log({
4453
4453
  periodX: y,
4454
4454
  periodY: A,
@@ -4474,23 +4474,23 @@ async function Hf(e, t = {}) {
4474
4474
  function Hi(e, t, n) {
4475
4475
  const r = Vs(e);
4476
4476
  let a = 0;
4477
- for (let h = 0; h < e.length; h++) {
4478
- const y = e[h] - r;
4477
+ for (let m = 0; m < e.length; m++) {
4478
+ const y = e[m] - r;
4479
4479
  a += y * y;
4480
4480
  }
4481
4481
  if (a === 0) return null;
4482
4482
  const i = new Float32Array(n + 1);
4483
4483
  let u = 0, o = -1 / 0;
4484
- for (let h = t; h <= n; h++) {
4484
+ for (let m = t; m <= n; m++) {
4485
4485
  let y = 0;
4486
- for (let L = 0; L + h < e.length; L++)
4487
- y += (e[L] - r) * (e[L + h] - r);
4486
+ for (let L = 0; L + m < e.length; L++)
4487
+ y += (e[L] - r) * (e[L + m] - r);
4488
4488
  const A = y / a;
4489
- i[h] = A, A > o && (o = A, u = h);
4489
+ i[m] = A, A > o && (o = A, u = m);
4490
4490
  }
4491
4491
  if (u <= t || u >= n) return u || null;
4492
- const l = i[u - 1], c = i[u], f = i[u + 1], d = l - 2 * c + f, m = d === 0 ? 0 : 0.5 * (l - f) / d;
4493
- return u + m;
4492
+ const l = i[u - 1], c = i[u], f = i[u + 1], d = l - 2 * c + f, h = d === 0 ? 0 : 0.5 * (l - f) / d;
4493
+ return u + h;
4494
4494
  }
4495
4495
  function Ui(e, t, n, r) {
4496
4496
  const a = [];
@@ -4498,10 +4498,10 @@ function Ui(e, t, n, r) {
4498
4498
  const l = o * t;
4499
4499
  let c = 1 / 0, f = l;
4500
4500
  for (let d = -r; d <= r; d++) {
4501
- const m = l + d;
4502
- if (m <= 0 || m >= e.length) continue;
4503
- const h = e[m];
4504
- h < c && (c = h, f = m);
4501
+ const h = l + d;
4502
+ if (h <= 0 || h >= e.length) continue;
4503
+ const m = e[h];
4504
+ m < c && (c = m, f = h);
4505
4505
  }
4506
4506
  a.push(f);
4507
4507
  }
@@ -4554,8 +4554,8 @@ const $f = os(function({
4554
4554
  atlasFrames: c,
4555
4555
  fps: f = 12,
4556
4556
  autoplay: d = !0,
4557
- loop: m = !0,
4558
- startFrame: h = 0,
4557
+ loop: h = !0,
4558
+ startFrame: m = 0,
4559
4559
  direction: y = "forward",
4560
4560
  scale: A = 1,
4561
4561
  backgroundColor: L,
@@ -4566,7 +4566,7 @@ const $f = os(function({
4566
4566
  onEnd: x,
4567
4567
  onFrame: I
4568
4568
  }, q) {
4569
- const ue = we(null), te = we(null), [Y, M] = ge(null), [w, G] = ge(null), [$, W] = ge(null), [se, me] = ge(!1), [ve, Le] = ge(!!d), [p, F] = ge(h), X = we(1), [T, V] = ge(null), K = Math.max(
4569
+ const ue = we(null), te = we(null), [Y, M] = ge(null), [w, G] = ge(null), [$, W] = ge(null), [se, me] = ge(!1), [ve, Le] = ge(!!d), [p, F] = ge(m), X = we(1), [T, V] = ge(null), K = Math.max(
4570
4570
  1,
4571
4571
  Math.floor(typeof window < "u" && window.devicePixelRatio || 1)
4572
4572
  );
@@ -4704,13 +4704,13 @@ const $f = os(function({
4704
4704
  le = Ee - Ne % Ie, F((Ye) => {
4705
4705
  const He = Ce.length - 1;
4706
4706
  let Ke = Ye;
4707
- return y === "forward" ? Ke = Ye + 1 : y === "backward" ? Ke = Ye - 1 : ((Ye >= He && X.current === 1 || Ye <= 0 && X.current === -1) && (X.current *= -1), Ke = Ye + X.current), (Ke > He || Ke < 0) && (m ? Ke = y === "backward" ? He : 0 : (Ke = Math.max(0, Math.min(Ke, He)), Le(!1), x?.())), Ke;
4707
+ return y === "forward" ? Ke = Ye + 1 : y === "backward" ? Ke = Ye - 1 : ((Ye >= He && X.current === 1 || Ye <= 0 && X.current === -1) && (X.current *= -1), Ke = Ye + X.current), (Ke > He || Ke < 0) && (h ? Ke = y === "backward" ? He : 0 : (Ke = Math.max(0, Math.min(Ke, He)), Le(!1), x?.())), Ke;
4708
4708
  });
4709
4709
  };
4710
4710
  return te.current = requestAnimationFrame(pe), () => {
4711
4711
  te.current && cancelAnimationFrame(te.current);
4712
4712
  };
4713
- }, [se, f, ve, m, y, Ce.length, p]), Pe(() => {
4713
+ }, [se, f, ve, h, y, Ce.length, p]), Pe(() => {
4714
4714
  xe(p), I?.(p);
4715
4715
  }, [p, se, A, K]), Pe(() => {
4716
4716
  if (!N) return;
@@ -6001,7 +6001,7 @@ function a0() {
6001
6001
  if (Wi) return zr;
6002
6002
  Wi = 1;
6003
6003
  var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, t = /\n/g, n = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, a = /^:\s*/, i = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, u = /^[;\s]*/, o = /^\s+|\s+$/g, l = `
6004
- `, c = "/", f = "*", d = "", m = "comment", h = "declaration";
6004
+ `, c = "/", f = "*", d = "", h = "comment", m = "declaration";
6005
6005
  zr = function(A, L) {
6006
6006
  if (typeof A != "string")
6007
6007
  throw new TypeError("First argument must be a string");
@@ -6055,7 +6055,7 @@ function a0() {
6055
6055
  return I("End of comment missing");
6056
6056
  var W = A.slice(2, $ - 2);
6057
6057
  return R += 2, N(W), A = A.slice($), R += 2, G({
6058
- type: m,
6058
+ type: h,
6059
6059
  comment: W
6060
6060
  });
6061
6061
  }
@@ -6065,7 +6065,7 @@ function a0() {
6065
6065
  if ($) {
6066
6066
  if (Y(), !q(a)) return I("property missing ':'");
6067
6067
  var W = q(i), se = G({
6068
- type: h,
6068
+ type: m,
6069
6069
  property: y($[0].replace(e, d)),
6070
6070
  value: W ? y(W[0].replace(e, d)) : d
6071
6071
  });
@@ -6776,7 +6776,7 @@ function j0(e) {
6776
6776
  function c(N) {
6777
6777
  if (r === n.length) {
6778
6778
  if (!a)
6779
- return m(N);
6779
+ return h(N);
6780
6780
  if (a.currentConstruct && a.currentConstruct.concrete)
6781
6781
  return y(N);
6782
6782
  t.interrupt = !!(a.currentConstruct && !a._gfmTableDynamicInterruptHack);
@@ -6788,20 +6788,20 @@ function j0(e) {
6788
6788
  )(N);
6789
6789
  }
6790
6790
  function f(N) {
6791
- return a && R(), S(r), m(N);
6791
+ return a && R(), S(r), h(N);
6792
6792
  }
6793
6793
  function d(N) {
6794
6794
  return t.parser.lazy[t.now().line] = r !== n.length, u = t.now().offset, y(N);
6795
6795
  }
6796
- function m(N) {
6796
+ function h(N) {
6797
6797
  return t.containerState = {}, e.attempt(
6798
6798
  nu,
6799
- h,
6799
+ m,
6800
6800
  y
6801
6801
  )(N);
6802
6802
  }
6803
- function h(N) {
6804
- return r++, n.push([t.currentConstruct, t.containerState]), m(N);
6803
+ function m(N) {
6804
+ return r++, n.push([t.currentConstruct, t.containerState]), h(N);
6805
6805
  }
6806
6806
  function y(N) {
6807
6807
  if (N === null) {
@@ -6903,15 +6903,15 @@ function q0(e, t) {
6903
6903
  if ((e[r][1]._close || e[n][1]._open) && (e[n][1].end.offset - e[n][1].start.offset) % 3 && !((e[r][1].end.offset - e[r][1].start.offset + e[n][1].end.offset - e[n][1].start.offset) % 3))
6904
6904
  continue;
6905
6905
  l = e[r][1].end.offset - e[r][1].start.offset > 1 && e[n][1].end.offset - e[n][1].start.offset > 1 ? 2 : 1;
6906
- const d = Object.assign({}, e[r][1].end), m = Object.assign({}, e[n][1].start);
6907
- au(d, -l), au(m, l), u = {
6906
+ const d = Object.assign({}, e[r][1].end), h = Object.assign({}, e[n][1].start);
6907
+ au(d, -l), au(h, l), u = {
6908
6908
  type: l > 1 ? "strongSequence" : "emphasisSequence",
6909
6909
  start: d,
6910
6910
  end: Object.assign({}, e[r][1].end)
6911
6911
  }, o = {
6912
6912
  type: l > 1 ? "strongSequence" : "emphasisSequence",
6913
6913
  start: Object.assign({}, e[n][1].start),
6914
- end: m
6914
+ end: h
6915
6915
  }, i = {
6916
6916
  type: l > 1 ? "strongText" : "emphasisText",
6917
6917
  start: Object.assign({}, e[r][1].end),
@@ -6961,8 +6961,8 @@ function W0(e, t) {
6961
6961
  function o(l) {
6962
6962
  if (l === i)
6963
6963
  return e.consume(l), o;
6964
- const c = e.exit("attentionSequence"), f = ru(l), d = !f || f === 2 && a || n.includes(l), m = !a || a === 2 && f || n.includes(r);
6965
- return c._open = !!(i === 42 ? d : d && (a || !m)), c._close = !!(i === 42 ? m : m && (f || !d)), t(l);
6964
+ const c = e.exit("attentionSequence"), f = ru(l), d = !f || f === 2 && a || n.includes(l), h = !a || a === 2 && f || n.includes(r);
6965
+ return c._open = !!(i === 42 ? d : d && (a || !h)), c._close = !!(i === 42 ? h : h && (f || !d)), t(l);
6966
6966
  }
6967
6967
  }
6968
6968
  function au(e, t) {
@@ -6975,36 +6975,36 @@ const X0 = {
6975
6975
  function Q0(e, t, n) {
6976
6976
  let r = 0;
6977
6977
  return a;
6978
- function a(h) {
6979
- return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.enter("autolinkProtocol"), i;
6978
+ function a(m) {
6979
+ return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(m), e.exit("autolinkMarker"), e.enter("autolinkProtocol"), i;
6980
6980
  }
6981
- function i(h) {
6982
- return Et(h) ? (e.consume(h), u) : c(h);
6981
+ function i(m) {
6982
+ return Et(m) ? (e.consume(m), u) : c(m);
6983
6983
  }
6984
- function u(h) {
6985
- return h === 43 || h === 45 || h === 46 || et(h) ? (r = 1, o(h)) : c(h);
6984
+ function u(m) {
6985
+ return m === 43 || m === 45 || m === 46 || et(m) ? (r = 1, o(m)) : c(m);
6986
6986
  }
6987
- function o(h) {
6988
- return h === 58 ? (e.consume(h), r = 0, l) : (h === 43 || h === 45 || h === 46 || et(h)) && r++ < 32 ? (e.consume(h), o) : (r = 0, c(h));
6987
+ function o(m) {
6988
+ return m === 58 ? (e.consume(m), r = 0, l) : (m === 43 || m === 45 || m === 46 || et(m)) && r++ < 32 ? (e.consume(m), o) : (r = 0, c(m));
6989
6989
  }
6990
- function l(h) {
6991
- return h === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.exit("autolink"), t) : h === null || h === 32 || h === 60 || Oa(h) ? n(h) : (e.consume(h), l);
6990
+ function l(m) {
6991
+ return m === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(m), e.exit("autolinkMarker"), e.exit("autolink"), t) : m === null || m === 32 || m === 60 || Oa(m) ? n(m) : (e.consume(m), l);
6992
6992
  }
6993
- function c(h) {
6994
- return h === 64 ? (e.consume(h), f) : B0(h) ? (e.consume(h), c) : n(h);
6993
+ function c(m) {
6994
+ return m === 64 ? (e.consume(m), f) : B0(m) ? (e.consume(m), c) : n(m);
6995
6995
  }
6996
- function f(h) {
6997
- return et(h) ? d(h) : n(h);
6996
+ function f(m) {
6997
+ return et(m) ? d(m) : n(m);
6998
6998
  }
6999
- function d(h) {
7000
- return h === 46 ? (e.consume(h), r = 0, f) : h === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.exit("autolink"), t) : m(h);
6999
+ function d(m) {
7000
+ return m === 46 ? (e.consume(m), r = 0, f) : m === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(m), e.exit("autolinkMarker"), e.exit("autolink"), t) : h(m);
7001
7001
  }
7002
- function m(h) {
7003
- if ((h === 45 || et(h)) && r++ < 63) {
7004
- const y = h === 45 ? m : d;
7005
- return e.consume(h), y;
7002
+ function h(m) {
7003
+ if ((m === 45 || et(m)) && r++ < 63) {
7004
+ const y = m === 45 ? h : d;
7005
+ return e.consume(m), y;
7006
7006
  }
7007
- return n(h);
7007
+ return n(m);
7008
7008
  }
7009
7009
  }
7010
7010
  const Nr = {
@@ -7094,8 +7094,8 @@ function nd(e, t, n) {
7094
7094
  }
7095
7095
  function f(d) {
7096
7096
  if (d === 59 && a) {
7097
- const m = e.exit("characterReferenceValue");
7098
- return u === et && !ni(r.sliceSerialize(m)) ? n(d) : (e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
7097
+ const h = e.exit("characterReferenceValue");
7098
+ return u === et && !ni(r.sliceSerialize(h)) ? n(d) : (e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
7099
7099
  }
7100
7100
  return u(d) && a++ < i ? (e.consume(d), f) : n(d);
7101
7101
  }
@@ -7128,12 +7128,12 @@ function rd(e, t, n) {
7128
7128
  function d(I) {
7129
7129
  return I === null || J(I) ? (e.exit("codeFencedFence"), r.interrupt ? t(I) : e.check(iu, A, D)(I)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
7130
7130
  contentType: "string"
7131
- }), m(I));
7132
- }
7133
- function m(I) {
7134
- return I === null || J(I) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(I)) : he(I) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), Se(e, h, "whitespace")(I)) : I === 96 && I === o ? n(I) : (e.consume(I), m);
7131
+ }), h(I));
7135
7132
  }
7136
7133
  function h(I) {
7134
+ return I === null || J(I) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(I)) : he(I) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), Se(e, m, "whitespace")(I)) : I === 96 && I === o ? n(I) : (e.consume(I), h);
7135
+ }
7136
+ function m(I) {
7137
7137
  return I === null || J(I) ? d(I) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
7138
7138
  contentType: "string"
7139
7139
  }), y(I));
@@ -7301,22 +7301,22 @@ function dd(e, t) {
7301
7301
  const n = e[t][1], r = e[t][2];
7302
7302
  let a = t - 1;
7303
7303
  const i = [], u = n._tokenizer || r.parser[n.contentType](n.start), o = u.events, l = [], c = {};
7304
- let f, d, m = -1, h = n, y = 0, A = 0;
7304
+ let f, d, h = -1, m = n, y = 0, A = 0;
7305
7305
  const L = [A];
7306
- for (; h; ) {
7307
- for (; e[++a][1] !== h; )
7306
+ for (; m; ) {
7307
+ for (; e[++a][1] !== m; )
7308
7308
  ;
7309
- i.push(a), h._tokenizer || (f = r.sliceStream(h), h.next || f.push(null), d && u.defineSkip(h.start), h._isInFirstContentOfListItem && (u._gfmTasklistFirstContentOfListItem = !0), u.write(f), h._isInFirstContentOfListItem && (u._gfmTasklistFirstContentOfListItem = void 0)), d = h, h = h.next;
7309
+ i.push(a), m._tokenizer || (f = r.sliceStream(m), m.next || f.push(null), d && u.defineSkip(m.start), m._isInFirstContentOfListItem && (u._gfmTasklistFirstContentOfListItem = !0), u.write(f), m._isInFirstContentOfListItem && (u._gfmTasklistFirstContentOfListItem = void 0)), d = m, m = m.next;
7310
7310
  }
7311
- for (h = n; ++m < o.length; )
7311
+ for (m = n; ++h < o.length; )
7312
7312
  // Find a void token that includes a break.
7313
- o[m][0] === "exit" && o[m - 1][0] === "enter" && o[m][1].type === o[m - 1][1].type && o[m][1].start.line !== o[m][1].end.line && (A = m + 1, L.push(A), h._tokenizer = void 0, h.previous = void 0, h = h.next);
7314
- for (u.events = [], h ? (h._tokenizer = void 0, h.previous = void 0) : L.pop(), m = L.length; m--; ) {
7315
- const S = o.slice(L[m], L[m + 1]), R = i.pop();
7313
+ o[h][0] === "exit" && o[h - 1][0] === "enter" && o[h][1].type === o[h - 1][1].type && o[h][1].start.line !== o[h][1].end.line && (A = h + 1, L.push(A), m._tokenizer = void 0, m.previous = void 0, m = m.next);
7314
+ for (u.events = [], m ? (m._tokenizer = void 0, m.previous = void 0) : L.pop(), h = L.length; h--; ) {
7315
+ const S = o.slice(L[h], L[h + 1]), R = i.pop();
7316
7316
  l.unshift([R, R + S.length - 1]), Tt(e, R, 2, S);
7317
7317
  }
7318
- for (m = -1; ++m < l.length; )
7319
- c[y + l[m][0]] = y + l[m][1], y += l[m][1] - l[m][0] - 1;
7318
+ for (h = -1; ++h < l.length; )
7319
+ c[y + l[h][0]] = y + l[h][1], y += l[h][1] - l[h][0] - 1;
7320
7320
  return c;
7321
7321
  }
7322
7322
  const hd = {
@@ -7372,20 +7372,20 @@ function po(e, t, n, r, a, i, u, o, l) {
7372
7372
  let f = 0;
7373
7373
  return d;
7374
7374
  function d(S) {
7375
- return S === 60 ? (e.enter(r), e.enter(a), e.enter(i), e.consume(S), e.exit(i), m) : S === null || S === 32 || S === 41 || Oa(S) ? n(S) : (e.enter(r), e.enter(u), e.enter(o), e.enter("chunkString", {
7375
+ return S === 60 ? (e.enter(r), e.enter(a), e.enter(i), e.consume(S), e.exit(i), h) : S === null || S === 32 || S === 41 || Oa(S) ? n(S) : (e.enter(r), e.enter(u), e.enter(o), e.enter("chunkString", {
7376
7376
  contentType: "string"
7377
7377
  }), A(S));
7378
7378
  }
7379
- function m(S) {
7379
+ function h(S) {
7380
7380
  return S === 62 ? (e.enter(i), e.consume(S), e.exit(i), e.exit(a), e.exit(r), t) : (e.enter(o), e.enter("chunkString", {
7381
7381
  contentType: "string"
7382
- }), h(S));
7382
+ }), m(S));
7383
7383
  }
7384
- function h(S) {
7385
- return S === 62 ? (e.exit("chunkString"), e.exit(o), m(S)) : S === null || S === 60 || J(S) ? n(S) : (e.consume(S), S === 92 ? y : h);
7384
+ function m(S) {
7385
+ return S === 62 ? (e.exit("chunkString"), e.exit(o), h(S)) : S === null || S === 60 || J(S) ? n(S) : (e.consume(S), S === 92 ? y : m);
7386
7386
  }
7387
7387
  function y(S) {
7388
- return S === 60 || S === 62 || S === 92 ? (e.consume(S), h) : h(S);
7388
+ return S === 60 || S === 62 || S === 92 ? (e.consume(S), m) : m(S);
7389
7389
  }
7390
7390
  function A(S) {
7391
7391
  return !f && (S === null || S === 41 || Xe(S)) ? (e.exit("chunkString"), e.exit(o), e.exit(u), e.exit(r), t(S)) : f < c && S === 40 ? (e.consume(S), f++, A) : S === 41 ? (e.consume(S), f--, A) : S === null || S === 32 || S === 40 || Oa(S) ? n(S) : (e.consume(S), S === 92 ? L : A);
@@ -7398,45 +7398,45 @@ function Eo(e, t, n, r, a, i) {
7398
7398
  const u = this;
7399
7399
  let o = 0, l;
7400
7400
  return c;
7401
- function c(h) {
7402
- return e.enter(r), e.enter(a), e.consume(h), e.exit(a), e.enter(i), f;
7401
+ function c(m) {
7402
+ return e.enter(r), e.enter(a), e.consume(m), e.exit(a), e.enter(i), f;
7403
7403
  }
7404
- function f(h) {
7405
- return o > 999 || h === null || h === 91 || h === 93 && !l || // To do: remove in the future once we’ve switched from
7404
+ function f(m) {
7405
+ return o > 999 || m === null || m === 91 || m === 93 && !l || // To do: remove in the future once we’ve switched from
7406
7406
  // `micromark-extension-footnote` to `micromark-extension-gfm-footnote`,
7407
7407
  // which doesn’t need this.
7408
7408
  // Hidden footnotes hook.
7409
7409
  /* c8 ignore next 3 */
7410
- h === 94 && !o && "_hiddenFootnoteSupport" in u.parser.constructs ? n(h) : h === 93 ? (e.exit(i), e.enter(a), e.consume(h), e.exit(a), e.exit(r), t) : J(h) ? (e.enter("lineEnding"), e.consume(h), e.exit("lineEnding"), f) : (e.enter("chunkString", {
7410
+ m === 94 && !o && "_hiddenFootnoteSupport" in u.parser.constructs ? n(m) : m === 93 ? (e.exit(i), e.enter(a), e.consume(m), e.exit(a), e.exit(r), t) : J(m) ? (e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), f) : (e.enter("chunkString", {
7411
7411
  contentType: "string"
7412
- }), d(h));
7412
+ }), d(m));
7413
7413
  }
7414
- function d(h) {
7415
- return h === null || h === 91 || h === 93 || J(h) || o++ > 999 ? (e.exit("chunkString"), f(h)) : (e.consume(h), l || (l = !he(h)), h === 92 ? m : d);
7414
+ function d(m) {
7415
+ return m === null || m === 91 || m === 93 || J(m) || o++ > 999 ? (e.exit("chunkString"), f(m)) : (e.consume(m), l || (l = !he(m)), m === 92 ? h : d);
7416
7416
  }
7417
- function m(h) {
7418
- return h === 91 || h === 92 || h === 93 ? (e.consume(h), o++, d) : d(h);
7417
+ function h(m) {
7418
+ return m === 91 || m === 92 || m === 93 ? (e.consume(m), o++, d) : d(m);
7419
7419
  }
7420
7420
  }
7421
7421
  function bo(e, t, n, r, a, i) {
7422
7422
  let u;
7423
7423
  return o;
7424
- function o(m) {
7425
- return m === 34 || m === 39 || m === 40 ? (e.enter(r), e.enter(a), e.consume(m), e.exit(a), u = m === 40 ? 41 : m, l) : n(m);
7424
+ function o(h) {
7425
+ return h === 34 || h === 39 || h === 40 ? (e.enter(r), e.enter(a), e.consume(h), e.exit(a), u = h === 40 ? 41 : h, l) : n(h);
7426
7426
  }
7427
- function l(m) {
7428
- return m === u ? (e.enter(a), e.consume(m), e.exit(a), e.exit(r), t) : (e.enter(i), c(m));
7427
+ function l(h) {
7428
+ return h === u ? (e.enter(a), e.consume(h), e.exit(a), e.exit(r), t) : (e.enter(i), c(h));
7429
7429
  }
7430
- function c(m) {
7431
- return m === u ? (e.exit(i), l(u)) : m === null ? n(m) : J(m) ? (e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), Se(e, c, "linePrefix")) : (e.enter("chunkString", {
7430
+ function c(h) {
7431
+ return h === u ? (e.exit(i), l(u)) : h === null ? n(h) : J(h) ? (e.enter("lineEnding"), e.consume(h), e.exit("lineEnding"), Se(e, c, "linePrefix")) : (e.enter("chunkString", {
7432
7432
  contentType: "string"
7433
- }), f(m));
7433
+ }), f(h));
7434
7434
  }
7435
- function f(m) {
7436
- return m === u || m === null || J(m) ? (e.exit("chunkString"), c(m)) : (e.consume(m), m === 92 ? d : f);
7435
+ function f(h) {
7436
+ return h === u || h === null || J(h) ? (e.exit("chunkString"), c(h)) : (e.consume(h), h === 92 ? d : f);
7437
7437
  }
7438
- function d(m) {
7439
- return m === u || m === 92 ? (e.consume(m), f) : f(m);
7438
+ function d(h) {
7439
+ return h === u || h === 92 ? (e.consume(h), f) : f(h);
7440
7440
  }
7441
7441
  }
7442
7442
  function Nn(e, t) {
@@ -7461,10 +7461,10 @@ function Ad(e, t, n) {
7461
7461
  const r = this;
7462
7462
  let a;
7463
7463
  return i;
7464
- function i(h) {
7465
- return e.enter("definition"), u(h);
7464
+ function i(m) {
7465
+ return e.enter("definition"), u(m);
7466
7466
  }
7467
- function u(h) {
7467
+ function u(m) {
7468
7468
  return Eo.call(
7469
7469
  r,
7470
7470
  e,
@@ -7474,17 +7474,17 @@ function Ad(e, t, n) {
7474
7474
  "definitionLabel",
7475
7475
  "definitionLabelMarker",
7476
7476
  "definitionLabelString"
7477
- )(h);
7477
+ )(m);
7478
7478
  }
7479
- function o(h) {
7479
+ function o(m) {
7480
7480
  return a = nn(
7481
7481
  r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)
7482
- ), h === 58 ? (e.enter("definitionMarker"), e.consume(h), e.exit("definitionMarker"), l) : n(h);
7482
+ ), m === 58 ? (e.enter("definitionMarker"), e.consume(m), e.exit("definitionMarker"), l) : n(m);
7483
7483
  }
7484
- function l(h) {
7485
- return Xe(h) ? Nn(e, c)(h) : c(h);
7484
+ function l(m) {
7485
+ return Xe(m) ? Nn(e, c)(m) : c(m);
7486
7486
  }
7487
- function c(h) {
7487
+ function c(m) {
7488
7488
  return po(
7489
7489
  e,
7490
7490
  f,
@@ -7495,16 +7495,16 @@ function Ad(e, t, n) {
7495
7495
  "definitionDestinationLiteralMarker",
7496
7496
  "definitionDestinationRaw",
7497
7497
  "definitionDestinationString"
7498
- )(h);
7498
+ )(m);
7499
7499
  }
7500
- function f(h) {
7501
- return e.attempt(gd, d, d)(h);
7500
+ function f(m) {
7501
+ return e.attempt(gd, d, d)(m);
7502
7502
  }
7503
- function d(h) {
7504
- return he(h) ? Se(e, m, "whitespace")(h) : m(h);
7503
+ function d(m) {
7504
+ return he(m) ? Se(e, h, "whitespace")(m) : h(m);
7505
7505
  }
7506
- function m(h) {
7507
- return h === null || J(h) ? (e.exit("definition"), r.parser.defined.push(a), t(h)) : n(h);
7506
+ function h(m) {
7507
+ return m === null || J(m) ? (e.exit("definition"), r.parser.defined.push(a), t(m)) : n(m);
7508
7508
  }
7509
7509
  }
7510
7510
  function _d(e, t, n) {
@@ -7679,12 +7679,12 @@ function Pd(e, t, n) {
7679
7679
  return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(T), d;
7680
7680
  }
7681
7681
  function d(T) {
7682
- return T === 33 ? (e.consume(T), m) : T === 47 ? (e.consume(T), i = !0, A) : T === 63 ? (e.consume(T), a = 3, r.interrupt ? t : p) : Et(T) ? (e.consume(T), u = String.fromCharCode(T), L) : n(T);
7683
- }
7684
- function m(T) {
7685
- return T === 45 ? (e.consume(T), a = 2, h) : T === 91 ? (e.consume(T), a = 5, o = 0, y) : Et(T) ? (e.consume(T), a = 4, r.interrupt ? t : p) : n(T);
7682
+ return T === 33 ? (e.consume(T), h) : T === 47 ? (e.consume(T), i = !0, A) : T === 63 ? (e.consume(T), a = 3, r.interrupt ? t : p) : Et(T) ? (e.consume(T), u = String.fromCharCode(T), L) : n(T);
7686
7683
  }
7687
7684
  function h(T) {
7685
+ return T === 45 ? (e.consume(T), a = 2, m) : T === 91 ? (e.consume(T), a = 5, o = 0, y) : Et(T) ? (e.consume(T), a = 4, r.interrupt ? t : p) : n(T);
7686
+ }
7687
+ function m(T) {
7688
7688
  return T === 45 ? (e.consume(T), r.interrupt ? t : p) : n(T);
7689
7689
  }
7690
7690
  function y(T) {
@@ -7814,16 +7814,16 @@ function Md(e, t, n) {
7814
7814
  return p === 45 ? (e.consume(p), f) : p === 91 ? (e.consume(p), i = 0, y) : Et(p) ? (e.consume(p), R) : n(p);
7815
7815
  }
7816
7816
  function f(p) {
7817
- return p === 45 ? (e.consume(p), h) : n(p);
7817
+ return p === 45 ? (e.consume(p), m) : n(p);
7818
7818
  }
7819
7819
  function d(p) {
7820
- return p === null ? n(p) : p === 45 ? (e.consume(p), m) : J(p) ? (u = d, me(p)) : (e.consume(p), d);
7821
- }
7822
- function m(p) {
7823
- return p === 45 ? (e.consume(p), h) : d(p);
7820
+ return p === null ? n(p) : p === 45 ? (e.consume(p), h) : J(p) ? (u = d, me(p)) : (e.consume(p), d);
7824
7821
  }
7825
7822
  function h(p) {
7826
- return p === 62 ? se(p) : p === 45 ? m(p) : d(p);
7823
+ return p === 45 ? (e.consume(p), m) : d(p);
7824
+ }
7825
+ function m(p) {
7826
+ return p === 62 ? se(p) : p === 45 ? h(p) : d(p);
7827
7827
  }
7828
7828
  function y(p) {
7829
7829
  const F = "CDATA[";
@@ -7970,39 +7970,39 @@ function Yd(e, t, n) {
7970
7970
  break;
7971
7971
  }
7972
7972
  return o;
7973
- function o(m) {
7974
- return i ? i._inactive ? d(m) : (u = r.parser.defined.includes(
7973
+ function o(h) {
7974
+ return i ? i._inactive ? d(h) : (u = r.parser.defined.includes(
7975
7975
  nn(
7976
7976
  r.sliceSerialize({
7977
7977
  start: i.end,
7978
7978
  end: r.now()
7979
7979
  })
7980
7980
  )
7981
- ), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(m), e.exit("labelMarker"), e.exit("labelEnd"), l) : n(m);
7981
+ ), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(h), e.exit("labelMarker"), e.exit("labelEnd"), l) : n(h);
7982
7982
  }
7983
- function l(m) {
7984
- return m === 40 ? e.attempt(
7983
+ function l(h) {
7984
+ return h === 40 ? e.attempt(
7985
7985
  Bd,
7986
7986
  f,
7987
7987
  u ? f : d
7988
- )(m) : m === 91 ? e.attempt(
7988
+ )(h) : h === 91 ? e.attempt(
7989
7989
  Fd,
7990
7990
  f,
7991
7991
  u ? c : d
7992
- )(m) : u ? f(m) : d(m);
7992
+ )(h) : u ? f(h) : d(h);
7993
7993
  }
7994
- function c(m) {
7994
+ function c(h) {
7995
7995
  return e.attempt(
7996
7996
  Hd,
7997
7997
  f,
7998
7998
  d
7999
- )(m);
7999
+ )(h);
8000
8000
  }
8001
- function f(m) {
8002
- return t(m);
8001
+ function f(h) {
8002
+ return t(h);
8003
8003
  }
8004
- function d(m) {
8005
- return i._balanced = !0, n(m);
8004
+ function d(h) {
8005
+ return i._balanced = !0, n(h);
8006
8006
  }
8007
8007
  }
8008
8008
  function Gd(e, t, n) {
@@ -8164,41 +8164,41 @@ function eh(e, t, n) {
8164
8164
  const r = this, a = r.events[r.events.length - 1];
8165
8165
  let i = a && a[1].type === "linePrefix" ? a[2].sliceSerialize(a[1], !0).length : 0, u = 0;
8166
8166
  return o;
8167
- function o(h) {
8168
- const y = r.containerState.type || (h === 42 || h === 43 || h === 45 ? "listUnordered" : "listOrdered");
8169
- if (y === "listUnordered" ? !r.containerState.marker || h === r.containerState.marker : La(h)) {
8167
+ function o(m) {
8168
+ const y = r.containerState.type || (m === 42 || m === 43 || m === 45 ? "listUnordered" : "listOrdered");
8169
+ if (y === "listUnordered" ? !r.containerState.marker || m === r.containerState.marker : La(m)) {
8170
8170
  if (r.containerState.type || (r.containerState.type = y, e.enter(y, {
8171
8171
  _container: !0
8172
8172
  })), y === "listUnordered")
8173
- return e.enter("listItemPrefix"), h === 42 || h === 45 ? e.check(rr, n, c)(h) : c(h);
8174
- if (!r.interrupt || h === 49)
8175
- return e.enter("listItemPrefix"), e.enter("listItemValue"), l(h);
8173
+ return e.enter("listItemPrefix"), m === 42 || m === 45 ? e.check(rr, n, c)(m) : c(m);
8174
+ if (!r.interrupt || m === 49)
8175
+ return e.enter("listItemPrefix"), e.enter("listItemValue"), l(m);
8176
8176
  }
8177
- return n(h);
8177
+ return n(m);
8178
8178
  }
8179
- function l(h) {
8180
- return La(h) && ++u < 10 ? (e.consume(h), l) : (!r.interrupt || u < 2) && (r.containerState.marker ? h === r.containerState.marker : h === 41 || h === 46) ? (e.exit("listItemValue"), c(h)) : n(h);
8179
+ function l(m) {
8180
+ return La(m) && ++u < 10 ? (e.consume(m), l) : (!r.interrupt || u < 2) && (r.containerState.marker ? m === r.containerState.marker : m === 41 || m === 46) ? (e.exit("listItemValue"), c(m)) : n(m);
8181
8181
  }
8182
- function c(h) {
8183
- return e.enter("listItemMarker"), e.consume(h), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || h, e.check(
8182
+ function c(m) {
8183
+ return e.enter("listItemMarker"), e.consume(m), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || m, e.check(
8184
8184
  Nr,
8185
8185
  // Can’t be empty when interrupting.
8186
8186
  r.interrupt ? n : f,
8187
8187
  e.attempt(
8188
8188
  Zd,
8189
- m,
8189
+ h,
8190
8190
  d
8191
8191
  )
8192
8192
  );
8193
8193
  }
8194
- function f(h) {
8195
- return r.containerState.initialBlankLine = !0, i++, m(h);
8194
+ function f(m) {
8195
+ return r.containerState.initialBlankLine = !0, i++, h(m);
8196
8196
  }
8197
- function d(h) {
8198
- return he(h) ? (e.enter("listItemPrefixWhitespace"), e.consume(h), e.exit("listItemPrefixWhitespace"), m) : n(h);
8197
+ function d(m) {
8198
+ return he(m) ? (e.enter("listItemPrefixWhitespace"), e.consume(m), e.exit("listItemPrefixWhitespace"), h) : n(m);
8199
8199
  }
8200
- function m(h) {
8201
- return r.containerState.size = i + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(h);
8200
+ function h(m) {
8201
+ return r.containerState.size = i + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(m);
8202
8202
  }
8203
8203
  }
8204
8204
  function th(e, t, n) {
@@ -8368,11 +8368,11 @@ function To(e) {
8368
8368
  if (f === null)
8369
8369
  return !0;
8370
8370
  const d = a[f];
8371
- let m = -1;
8371
+ let h = -1;
8372
8372
  if (d)
8373
- for (; ++m < d.length; ) {
8374
- const h = d[m];
8375
- if (!h.previous || h.previous.call(r, r.previous))
8373
+ for (; ++h < d.length; ) {
8374
+ const m = d[h];
8375
+ if (!m.previous || m.previous.call(r, r.previous))
8376
8376
  return !0;
8377
8377
  }
8378
8378
  return !1;
@@ -8460,8 +8460,8 @@ function hh(e, t, n) {
8460
8460
  containerState: {},
8461
8461
  events: [],
8462
8462
  parser: e,
8463
- sliceStream: h,
8464
- sliceSerialize: m,
8463
+ sliceStream: m,
8464
+ sliceSerialize: h,
8465
8465
  now: y,
8466
8466
  defineSkip: A,
8467
8467
  write: d
@@ -8471,10 +8471,10 @@ function hh(e, t, n) {
8471
8471
  function d(M) {
8472
8472
  return u = nt(u, M), L(), u[u.length - 1] !== null ? [] : (ue(t, 0), c.events = ri(i, c.events, c), c.events);
8473
8473
  }
8474
- function m(M, w) {
8475
- return ph(h(M), w);
8474
+ function h(M, w) {
8475
+ return ph(m(M), w);
8476
8476
  }
8477
- function h(M) {
8477
+ function m(M) {
8478
8478
  return mh(u, M);
8479
8479
  }
8480
8480
  function y() {
@@ -8740,16 +8740,16 @@ function Oh() {
8740
8740
  return a;
8741
8741
  function a(i, u, o) {
8742
8742
  const l = [];
8743
- let c, f, d, m, h;
8743
+ let c, f, d, h, m;
8744
8744
  for (i = t + (typeof i == "string" ? i.toString() : new TextDecoder(u || void 0).decode(i)), d = 0, t = "", n && (i.charCodeAt(0) === 65279 && d++, n = void 0); d < i.length; ) {
8745
- if (lu.lastIndex = d, c = lu.exec(i), m = c && c.index !== void 0 ? c.index : i.length, h = i.charCodeAt(m), !c) {
8745
+ if (lu.lastIndex = d, c = lu.exec(i), h = c && c.index !== void 0 ? c.index : i.length, m = i.charCodeAt(h), !c) {
8746
8746
  t = i.slice(d);
8747
8747
  break;
8748
8748
  }
8749
- if (h === 10 && d === m && r)
8749
+ if (m === 10 && d === h && r)
8750
8750
  l.push(-3), r = void 0;
8751
8751
  else
8752
- switch (r && (l.push(-5), r = void 0), d < m && (l.push(i.slice(d, m)), e += m - d), h) {
8752
+ switch (r && (l.push(-5), r = void 0), d < h && (l.push(i.slice(d, h)), e += h - d), m) {
8753
8753
  case 0: {
8754
8754
  l.push(65533), e++;
8755
8755
  break;
@@ -8765,7 +8765,7 @@ function Oh() {
8765
8765
  default:
8766
8766
  r = !0, e = 1;
8767
8767
  }
8768
- d = m + 1;
8768
+ d = h + 1;
8769
8769
  }
8770
8770
  return o && (r && l.push(-5), t && l.push(t), l.push(null)), l;
8771
8771
  }
@@ -8826,7 +8826,7 @@ function Dh(e) {
8826
8826
  label: u,
8827
8827
  link: i(pe),
8828
8828
  listItem: i(Ne),
8829
- listItemValue: m,
8829
+ listItemValue: h,
8830
8830
  listOrdered: i(Ee, d),
8831
8831
  listUnordered: i(Ee),
8832
8832
  paragraph: i(Ye),
@@ -8851,7 +8851,7 @@ function Dh(e) {
8851
8851
  characterReferenceValue: z,
8852
8852
  codeFenced: l(L),
8853
8853
  codeFencedFence: A,
8854
- codeFencedFenceInfo: h,
8854
+ codeFencedFenceInfo: m,
8855
8855
  codeFencedFenceMeta: y,
8856
8856
  codeFlowValue: Y,
8857
8857
  codeIndented: l(S),
@@ -9047,13 +9047,13 @@ function Dh(e) {
9047
9047
  function d() {
9048
9048
  this.data.expectingFirstListItemValue = !0;
9049
9049
  }
9050
- function m(O) {
9050
+ function h(O) {
9051
9051
  if (this.data.expectingFirstListItemValue) {
9052
9052
  const H = this.stack[this.stack.length - 2];
9053
9053
  H.start = Number.parseInt(this.sliceSerialize(O), 10), this.data.expectingFirstListItemValue = void 0;
9054
9054
  }
9055
9055
  }
9056
- function h() {
9056
+ function m() {
9057
9057
  const O = this.resume(), H = this.stack[this.stack.length - 1];
9058
9058
  H.lang = O;
9059
9059
  }
@@ -9648,9 +9648,9 @@ function nm(e, t, n) {
9648
9648
  let l = -1;
9649
9649
  const c = [];
9650
9650
  for (; ++l < o; ) {
9651
- const d = t.children[l], m = {}, h = u ? u[l] : void 0;
9652
- h && (m.align = h);
9653
- let y = { type: "element", tagName: i, properties: m, children: [] };
9651
+ const d = t.children[l], h = {}, m = u ? u[l] : void 0;
9652
+ m && (h.align = m);
9653
+ let y = { type: "element", tagName: i, properties: h, children: [] };
9654
9654
  d && (y.children = e.all(d), e.patch(d, y), y = e.applyData(d, y)), c.push(y);
9655
9655
  }
9656
9656
  const f = {
@@ -9843,8 +9843,8 @@ const Co = -1, Or = 0, sr = 1, or = 2, ii = 3, ui = 4, si = 5, oi = 6, xo = 7, I
9843
9843
  if (l)
9844
9844
  return a([l, [...u]], u);
9845
9845
  const f = [], d = a([o, f], u);
9846
- for (const m of u)
9847
- f.push(i(m));
9846
+ for (const h of u)
9847
+ f.push(i(h));
9848
9848
  return d;
9849
9849
  }
9850
9850
  case or: {
@@ -9860,8 +9860,8 @@ const Co = -1, Or = 0, sr = 1, or = 2, ii = 3, ui = 4, si = 5, oi = 6, xo = 7, I
9860
9860
  if (t && "toJSON" in u)
9861
9861
  return i(u.toJSON());
9862
9862
  const f = [], d = a([o, f], u);
9863
- for (const m of cm(u))
9864
- (e || !Kn(Tn(u[m]))) && f.push([i(m), i(u[m])]);
9863
+ for (const h of cm(u))
9864
+ (e || !Kn(Tn(u[h]))) && f.push([i(h), i(u[h])]);
9865
9865
  return d;
9866
9866
  }
9867
9867
  case ii:
@@ -9872,14 +9872,14 @@ const Co = -1, Or = 0, sr = 1, or = 2, ii = 3, ui = 4, si = 5, oi = 6, xo = 7, I
9872
9872
  }
9873
9873
  case si: {
9874
9874
  const f = [], d = a([o, f], u);
9875
- for (const [m, h] of u)
9876
- (e || !(Kn(Tn(m)) || Kn(Tn(h)))) && f.push([i(m), i(h)]);
9875
+ for (const [h, m] of u)
9876
+ (e || !(Kn(Tn(h)) || Kn(Tn(m)))) && f.push([i(h), i(m)]);
9877
9877
  return d;
9878
9878
  }
9879
9879
  case oi: {
9880
9880
  const f = [], d = a([o, f], u);
9881
- for (const m of u)
9882
- (e || !Kn(Tn(m))) && f.push(i(m));
9881
+ for (const h of u)
9882
+ (e || !Kn(Tn(h))) && f.push(i(h));
9883
9883
  return d;
9884
9884
  }
9885
9885
  }
@@ -9915,19 +9915,19 @@ function mm(e) {
9915
9915
  const c = e.footnoteById.get(e.footnoteOrder[l]);
9916
9916
  if (!c)
9917
9917
  continue;
9918
- const f = e.all(c), d = String(c.identifier).toUpperCase(), m = fn(d.toLowerCase());
9919
- let h = 0;
9918
+ const f = e.all(c), d = String(c.identifier).toUpperCase(), h = fn(d.toLowerCase());
9919
+ let m = 0;
9920
9920
  const y = [], A = e.footnoteCounts.get(d);
9921
- for (; A !== void 0 && ++h <= A; ) {
9921
+ for (; A !== void 0 && ++m <= A; ) {
9922
9922
  y.length > 0 && y.push({ type: "text", value: " " });
9923
- let R = typeof n == "string" ? n : n(l, h);
9923
+ let R = typeof n == "string" ? n : n(l, m);
9924
9924
  typeof R == "string" && (R = { type: "text", value: R }), y.push({
9925
9925
  type: "element",
9926
9926
  tagName: "a",
9927
9927
  properties: {
9928
- href: "#" + t + "fnref-" + m + (h > 1 ? "-" + h : ""),
9928
+ href: "#" + t + "fnref-" + h + (m > 1 ? "-" + m : ""),
9929
9929
  dataFootnoteBackref: "",
9930
- ariaLabel: typeof r == "string" ? r : r(l, h),
9930
+ ariaLabel: typeof r == "string" ? r : r(l, m),
9931
9931
  className: ["data-footnote-backref"]
9932
9932
  },
9933
9933
  children: Array.isArray(R) ? R : [R]
@@ -9942,7 +9942,7 @@ function mm(e) {
9942
9942
  const S = {
9943
9943
  type: "element",
9944
9944
  tagName: "li",
9945
- properties: { id: t + "fn-" + m },
9945
+ properties: { id: t + "fn-" + h },
9946
9946
  children: e.wrap(f, !0)
9947
9947
  };
9948
9948
  e.patch(c, S), o.push(S);
@@ -10068,28 +10068,28 @@ function ym(e, t, n, r) {
10068
10068
  l && typeof l == "object" ? l : {}
10069
10069
  );
10070
10070
  if (typeof d.type == "string") {
10071
- const h = (
10071
+ const m = (
10072
10072
  // `hast`
10073
10073
  typeof d.tagName == "string" ? d.tagName : (
10074
10074
  // `xast`
10075
10075
  typeof d.name == "string" ? d.name : void 0
10076
10076
  )
10077
10077
  );
10078
- Object.defineProperty(m, "name", {
10079
- value: "node (" + (l.type + (h ? "<" + h + ">" : "")) + ")"
10078
+ Object.defineProperty(h, "name", {
10079
+ value: "node (" + (l.type + (m ? "<" + m + ">" : "")) + ")"
10080
10080
  });
10081
10081
  }
10082
- return m;
10083
- function m() {
10084
- let h = Oo, y, A, L;
10085
- if ((!t || i(l, c, f[f.length - 1] || void 0)) && (h = Sm(n(l, f)), h[0] === bu))
10086
- return h;
10082
+ return h;
10083
+ function h() {
10084
+ let m = Oo, y, A, L;
10085
+ if ((!t || i(l, c, f[f.length - 1] || void 0)) && (m = Sm(n(l, f)), m[0] === bu))
10086
+ return m;
10087
10087
  if ("children" in l && l.children) {
10088
10088
  const S = (
10089
10089
  /** @type {UnistParent} */
10090
10090
  l
10091
10091
  );
10092
- if (S.children && h[0] !== _m)
10092
+ if (S.children && m[0] !== _m)
10093
10093
  for (A = (r ? S.children.length : -1) + u, L = f.concat(S); A > -1 && A < S.children.length; ) {
10094
10094
  const R = S.children[A];
10095
10095
  if (y = o(R, A, L)(), y[0] === bu)
@@ -10097,7 +10097,7 @@ function ym(e, t, n, r) {
10097
10097
  A = typeof y[1] == "number" ? y[1] : A + u;
10098
10098
  }
10099
10099
  }
10100
- return h;
10100
+ return m;
10101
10101
  }
10102
10102
  }
10103
10103
  }
@@ -10129,15 +10129,15 @@ function xm(e, t) {
10129
10129
  };
10130
10130
  return li(e, function(f) {
10131
10131
  if (f.type === "definition" || f.type === "footnoteDefinition") {
10132
- const d = f.type === "definition" ? r : a, m = String(f.identifier).toUpperCase();
10133
- d.has(m) || d.set(m, f);
10132
+ const d = f.type === "definition" ? r : a, h = String(f.identifier).toUpperCase();
10133
+ d.has(h) || d.set(h, f);
10134
10134
  }
10135
10135
  }), o;
10136
10136
  function l(f, d) {
10137
- const m = f.type, h = o.handlers[m];
10138
- if (va.call(o.handlers, m) && h)
10139
- return h(o, f, d);
10140
- if (o.options.passThrough && o.options.passThrough.includes(m)) {
10137
+ const h = f.type, m = o.handlers[h];
10138
+ if (va.call(o.handlers, h) && m)
10139
+ return m(o, f, d);
10140
+ if (o.options.passThrough && o.options.passThrough.includes(h)) {
10141
10141
  if ("children" in f) {
10142
10142
  const { children: A, ...L } = f, S = sn(L);
10143
10143
  return S.children = o.all(f), S;
@@ -10149,12 +10149,12 @@ function xm(e, t) {
10149
10149
  function c(f) {
10150
10150
  const d = [];
10151
10151
  if ("children" in f) {
10152
- const m = f.children;
10153
- let h = -1;
10154
- for (; ++h < m.length; ) {
10155
- const y = o.one(m[h], f);
10152
+ const h = f.children;
10153
+ let m = -1;
10154
+ for (; ++m < h.length; ) {
10155
+ const y = o.one(h[m], f);
10156
10156
  if (y) {
10157
- if (h && m[h - 1].type === "break" && (!Array.isArray(y) && y.type === "text" && (y.value = Tu(y.value)), !Array.isArray(y) && y.type === "element")) {
10157
+ if (m && h[m - 1].type === "break" && (!Array.isArray(y) && y.type === "text" && (y.value = Tu(y.value)), !Array.isArray(y) && y.type === "element")) {
10158
10158
  const A = y.children[0];
10159
10159
  A && A.type === "text" && (A.value = Tu(A.value));
10160
10160
  }
@@ -10243,10 +10243,10 @@ function vm() {
10243
10243
  var f = e.call(c, "constructor"), d = c.constructor && c.constructor.prototype && e.call(c.constructor.prototype, "isPrototypeOf");
10244
10244
  if (c.constructor && !f && !d)
10245
10245
  return !1;
10246
- var m;
10247
- for (m in c)
10246
+ var h;
10247
+ for (h in c)
10248
10248
  ;
10249
- return typeof m > "u" || e.call(c, m);
10249
+ return typeof h > "u" || e.call(c, h);
10250
10250
  }, u = function(c, f) {
10251
10251
  n && f.name === "__proto__" ? n(c, f.name, {
10252
10252
  enumerable: !0,
@@ -10263,11 +10263,11 @@ function vm() {
10263
10263
  return c[f];
10264
10264
  };
10265
10265
  return Wr = function l() {
10266
- var c, f, d, m, h, y, A = arguments[0], L = 1, S = arguments.length, R = !1;
10266
+ var c, f, d, h, m, y, A = arguments[0], L = 1, S = arguments.length, R = !1;
10267
10267
  for (typeof A == "boolean" && (R = A, A = arguments[1] || {}, L = 2), (A == null || typeof A != "object" && typeof A != "function") && (A = {}); L < S; ++L)
10268
10268
  if (c = arguments[L], c != null)
10269
10269
  for (f in c)
10270
- d = o(A, f), m = o(c, f), A !== m && (R && m && (i(m) || (h = a(m))) ? (h ? (h = !1, y = d && a(d) ? d : []) : y = d && i(d) ? d : {}, u(A, { name: f, newValue: l(R, y, m) })) : typeof m < "u" && u(A, { name: f, newValue: m }));
10270
+ d = o(A, f), h = o(c, f), A !== h && (R && h && (i(h) || (m = a(h))) ? (m ? (m = !1, y = d && a(d) ? d : []) : y = d && i(d) ? d : {}, u(A, { name: f, newValue: l(R, y, h) })) : typeof h < "u" && u(A, { name: f, newValue: h }));
10271
10271
  return A;
10272
10272
  }, Wr;
10273
10273
  }
@@ -11111,18 +11111,18 @@ class ci extends Vm {
11111
11111
  /** @type {unknown} */
11112
11112
  r.parse(o)
11113
11113
  );
11114
- r.run(l, o, function(f, d, m) {
11115
- if (f || !d || !m)
11114
+ r.run(l, o, function(f, d, h) {
11115
+ if (f || !d || !h)
11116
11116
  return c(f);
11117
- const h = (
11117
+ const m = (
11118
11118
  /** @type {CompileTree extends undefined ? Node : CompileTree} */
11119
11119
  /** @type {unknown} */
11120
11120
  d
11121
- ), y = r.stringify(h, m);
11122
- Qm(y) ? m.value = y : m.result = y, c(
11121
+ ), y = r.stringify(m, h);
11122
+ Qm(y) ? h.value = y : h.result = y, c(
11123
11123
  f,
11124
11124
  /** @type {VFileWithOutput<CompileResult>} */
11125
- m
11125
+ h
11126
11126
  );
11127
11127
  });
11128
11128
  function c(f, d) {
@@ -11213,12 +11213,12 @@ class ci extends Vm {
11213
11213
  function i(u, o) {
11214
11214
  const l = Zn(n);
11215
11215
  a.run(t, l, c);
11216
- function c(f, d, m) {
11217
- const h = (
11216
+ function c(f, d, h) {
11217
+ const m = (
11218
11218
  /** @type {TailTree extends undefined ? Node : TailTree} */
11219
11219
  d || t
11220
11220
  );
11221
- f ? o(f) : u ? u(h) : r(void 0, h, m);
11221
+ f ? o(f) : u ? u(m) : r(void 0, m, h);
11222
11222
  }
11223
11223
  }
11224
11224
  }
@@ -11379,18 +11379,18 @@ class ci extends Vm {
11379
11379
  throw new TypeError("Expected a list of plugins, not `" + c + "`");
11380
11380
  }
11381
11381
  function l(c, f) {
11382
- let d = -1, m = -1;
11382
+ let d = -1, h = -1;
11383
11383
  for (; ++d < r.length; )
11384
11384
  if (r[d][0] === c) {
11385
- m = d;
11385
+ h = d;
11386
11386
  break;
11387
11387
  }
11388
- if (m === -1)
11388
+ if (h === -1)
11389
11389
  r.push([c, ...f]);
11390
11390
  else if (f.length > 0) {
11391
- let [h, ...y] = f;
11392
- const A = r[m][1];
11393
- Pa(A) && Pa(h) && (h = Xr(!0, A, h)), r[m] = [c, h, ...y];
11391
+ let [m, ...y] = f;
11392
+ const A = r[h][1];
11393
+ Pa(A) && Pa(m) && (m = Xr(!0, A, m)), r[h] = [c, m, ...y];
11394
11394
  }
11395
11395
  }
11396
11396
  }
@@ -11466,12 +11466,12 @@ const Zm = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
11466
11466
  { from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
11467
11467
  ];
11468
11468
  function Ro(e) {
11469
- const t = e.allowedElements, n = e.allowElement, r = e.children || "", a = e.className, i = e.components, u = e.disallowedElements, o = e.rehypePlugins || xu, l = e.remarkPlugins || xu, c = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...Iu } : Iu, f = e.skipHtml, d = e.unwrapDisallowed, m = e.urlTransform || tp, h = Wm().use(wh).use(l).use(Rm, c).use(o), y = new Lo();
11469
+ const t = e.allowedElements, n = e.allowElement, r = e.children || "", a = e.className, i = e.components, u = e.disallowedElements, o = e.rehypePlugins || xu, l = e.remarkPlugins || xu, c = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...Iu } : Iu, f = e.skipHtml, d = e.unwrapDisallowed, h = e.urlTransform || tp, m = Wm().use(wh).use(l).use(Rm, c).use(o), y = new Lo();
11470
11470
  typeof r == "string" && (y.value = r);
11471
11471
  for (const R of ep)
11472
11472
  Object.hasOwn(e, R.from) && ("" + R.from + (R.to ? "use `" + R.to + "` instead" : "remove it") + Zm + R.id, void 0);
11473
- const A = h.parse(y);
11474
- let L = h.runSync(A, y);
11473
+ const A = m.parse(y);
11474
+ let L = m.runSync(A, y);
11475
11475
  return a && (L = {
11476
11476
  type: "element",
11477
11477
  tagName: "div",
@@ -11498,7 +11498,7 @@ function Ro(e) {
11498
11498
  for (x in jr)
11499
11499
  if (Object.hasOwn(jr, x) && Object.hasOwn(R.properties, x)) {
11500
11500
  const I = R.properties[x], q = jr[x];
11501
- (q === null || q.includes(R.tagName)) && (R.properties[x] = m(String(I || ""), x, R));
11501
+ (q === null || q.includes(R.tagName)) && (R.properties[x] = h(String(I || ""), x, R));
11502
11502
  }
11503
11503
  }
11504
11504
  if (R.type === "element") {
@@ -17932,12 +17932,12 @@ function Tb(e, t, n) {
17932
17932
  u
17933
17933
  ]);
17934
17934
  let o = u ? e : r, l = Ut((c, ...f) => {
17935
- let d = (m, ...h) => {
17936
- n && (Object.is(o, m) || n(m, ...h)), u || (o = m);
17935
+ let d = (h, ...m) => {
17936
+ n && (Object.is(o, h) || n(h, ...m)), u || (o = h);
17937
17937
  };
17938
- typeof c == "function" ? (console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"), a((h, ...y) => {
17939
- let A = c(u ? o : h, ...y);
17940
- return d(A, ...f), u ? h : A;
17938
+ typeof c == "function" ? (console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"), a((m, ...y) => {
17939
+ let A = c(u ? o : m, ...y);
17940
+ return d(A, ...f), u ? m : A;
17941
17941
  })) : (u || a(c), d(c, ...f));
17942
17942
  }, [
17943
17943
  u,
@@ -18630,8 +18630,8 @@ function TT(e) {
18630
18630
  let f = lt(ET), d = xn(() => r ? Array.isArray(r) ? r.flatMap((Y) => Ya(f[Y])) : Ya(f[r]) : [], [
18631
18631
  f,
18632
18632
  r
18633
- ]), [m, h] = ge(f), [y, A] = ge(!1);
18634
- f !== m && (h(f), A(!1));
18633
+ ]), [h, m] = ge(f), [y, A] = ge(!1);
18634
+ f !== h && (m(f), A(!1));
18635
18635
  let L = xn(() => Zu(y ? [] : d), [
18636
18636
  y,
18637
18637
  d
@@ -18730,10 +18730,10 @@ function yT(e, t) {
18730
18730
  let { inputElementType: n = "input", isDisabled: r = !1, isRequired: a = !1, isReadOnly: i = !1, type: u = "text", validationBehavior: o = "aria" } = e, [l, c] = Tb(e.value, e.defaultValue || "", e.onChange), { focusableProps: f } = fT(e, t), d = bT({
18731
18731
  ...e,
18732
18732
  value: l
18733
- }), { isInvalid: m, validationErrors: h, validationDetails: y } = d.displayValidation, { labelProps: A, fieldProps: L, descriptionProps: S, errorMessageProps: R } = _T({
18733
+ }), { isInvalid: h, validationErrors: m, validationDetails: y } = d.displayValidation, { labelProps: A, fieldProps: L, descriptionProps: S, errorMessageProps: R } = _T({
18734
18734
  ...e,
18735
- isInvalid: m,
18736
- errorMessage: e.errorMessage || h
18735
+ isInvalid: h,
18736
+ errorMessage: e.errorMessage || m
18737
18737
  }), N = Fb(e, {
18738
18738
  labelable: !0
18739
18739
  });
@@ -18760,7 +18760,7 @@ function yT(e, t) {
18760
18760
  readOnly: i,
18761
18761
  required: a && o === "native",
18762
18762
  "aria-required": a && o === "aria" || void 0,
18763
- "aria-invalid": m || void 0,
18763
+ "aria-invalid": h || void 0,
18764
18764
  "aria-errormessage": e["aria-errormessage"],
18765
18765
  "aria-activedescendant": e["aria-activedescendant"],
18766
18766
  "aria-autocomplete": e["aria-autocomplete"],
@@ -18792,16 +18792,16 @@ function yT(e, t) {
18792
18792
  }),
18793
18793
  descriptionProps: S,
18794
18794
  errorMessageProps: R,
18795
- isInvalid: m,
18796
- validationErrors: h,
18795
+ isInvalid: h,
18796
+ validationErrors: m,
18797
18797
  validationDetails: y
18798
18798
  };
18799
18799
  }
18800
18800
  const ST = (e) => e.charCodeAt(e.length - 1) === 10, CT = (e) => {
18801
18801
  const [t, n] = ge(""), r = () => {
18802
- m.current && (m.current.style.height = m.current.scrollHeight + "px");
18802
+ h.current && (h.current.style.height = h.current.scrollHeight + "px");
18803
18803
  }, a = () => {
18804
- m.current && (m.current.style.height = "48px");
18804
+ h.current && (h.current.style.height = "48px");
18805
18805
  }, i = (D) => {
18806
18806
  n(D);
18807
18807
  };
@@ -18813,12 +18813,12 @@ const ST = (e) => e.charCodeAt(e.length - 1) === 10, CT = (e) => {
18813
18813
  isLoadingStream: c,
18814
18814
  LoadingComponent: f,
18815
18815
  onPressLoadingButton: d
18816
- } = e, m = we(null), { labelProps: h, inputProps: y } = yT(
18816
+ } = e, h = we(null), { labelProps: m, inputProps: y } = yT(
18817
18817
  {
18818
18818
  ...e,
18819
18819
  inputElementType: "textarea"
18820
18820
  },
18821
- m
18821
+ h
18822
18822
  );
18823
18823
  const A = (D) => {
18824
18824
  ST(D.target.value) || i(D.target.value);
@@ -18840,12 +18840,12 @@ const ST = (e) => e.charCodeAt(e.length - 1) === 10, CT = (e) => {
18840
18840
  className: `${e.classNameContainer} w-fu`,
18841
18841
  children: [
18842
18842
  /* @__PURE__ */ De("div", { style: { display: "flex", flexDirection: "column" }, children: [
18843
- /* @__PURE__ */ B("label", { ...h, className: e.classNameLabel, children: u }),
18843
+ /* @__PURE__ */ B("label", { ...m, className: e.classNameLabel, children: u }),
18844
18844
  /* @__PURE__ */ B(
18845
18845
  "textarea",
18846
18846
  {
18847
18847
  ...y,
18848
- ref: m,
18848
+ ref: h,
18849
18849
  className: `${e.classNameTextarea} p-3`,
18850
18850
  onChange: A,
18851
18851
  value: t,
@@ -19081,19 +19081,19 @@ const Il = () => {
19081
19081
  const f = t.current, d = 4;
19082
19082
  if (f) {
19083
19083
  f.scrollTop < u.current - 1 && (i.current = !1);
19084
- const h = f.scrollHeight > f.clientHeight, y = f.scrollHeight - f.scrollTop <= f.clientHeight + d;
19085
- r(h && !y), a.current = y, u.current = f.scrollTop;
19084
+ const m = f.scrollHeight > f.clientHeight, y = f.scrollHeight - f.scrollTop <= f.clientHeight + d;
19085
+ r(m && !y), a.current = y, u.current = f.scrollTop;
19086
19086
  }
19087
19087
  }, l = ({
19088
19088
  smooth: f = !1,
19089
19089
  sticky: d = !1
19090
19090
  }) => {
19091
- const m = t.current;
19092
- d ? (i.current = !0, a.current = !0) : m && m.scrollTo({
19093
- top: m.scrollHeight,
19091
+ const h = t.current;
19092
+ d ? (i.current = !0, a.current = !0) : h && h.scrollTo({
19093
+ top: h.scrollHeight,
19094
19094
  behavior: f ? "smooth" : "auto"
19095
- }), m && i.current && m.scrollTo({
19096
- top: m.scrollHeight,
19095
+ }), h && i.current && h.scrollTo({
19096
+ top: h.scrollHeight,
19097
19097
  behavior: f ? "smooth" : "auto"
19098
19098
  });
19099
19099
  };
@@ -19124,9 +19124,9 @@ const Nl = ({
19124
19124
  e || console.log("Dev - Admin settings");
19125
19125
  const n = we(null), { placeholderTranslation: r } = Ka(), { conversation: a, setConversation: i } = lt(
19126
19126
  Fs
19127
- ), [u, o] = ge("notLoading"), [l, c] = ge(null), { defaultStartingStep: f } = Il(), [d, m] = ge(
19127
+ ), [u, o] = ge("notLoading"), [l, c] = ge(null), { defaultStartingStep: f } = Il(), [d, h] = ge(
19128
19128
  null
19129
- ), [h, y] = ge(
19129
+ ), [m, y] = ge(
19130
19130
  f
19131
19131
  ), [A, L] = ge(
19132
19132
  null
@@ -19221,7 +19221,7 @@ const Nl = ({
19221
19221
  Fe
19222
19222
  )) {
19223
19223
  const { content: xe } = Fe;
19224
- z.enqueue(xe), m(xe);
19224
+ z.enqueue(xe), h(xe);
19225
19225
  } else
19226
19226
  console.warn(`Object not handled - ${Fe}`);
19227
19227
  if (ae && X) {
@@ -19271,7 +19271,7 @@ const Nl = ({
19271
19271
  /* @__PURE__ */ B(
19272
19272
  vT,
19273
19273
  {
19274
- currentStepName: h,
19274
+ currentStepName: m,
19275
19275
  currentStepNumber: A,
19276
19276
  loadingStatus: u,
19277
19277
  numberOfSteps: d
@@ -19414,8 +19414,8 @@ function kT() {
19414
19414
  t.call(o, d) && (l[d] = o[d]);
19415
19415
  if (e) {
19416
19416
  c = e(o);
19417
- for (var m = 0; m < c.length; m++)
19418
- n.call(o, c[m]) && (l[c[m]] = o[c[m]]);
19417
+ for (var h = 0; h < c.length; h++)
19418
+ n.call(o, c[h]) && (l[c[h]] = o[c[h]]);
19419
19419
  }
19420
19420
  }
19421
19421
  return l;
@@ -19456,10 +19456,10 @@ function wT() {
19456
19456
  var d;
19457
19457
  try {
19458
19458
  if (typeof i[f] != "function") {
19459
- var m = Error(
19459
+ var h = Error(
19460
19460
  (l || "React class") + ": " + o + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
19461
19461
  );
19462
- throw m.name = "Invariant Violation", m;
19462
+ throw h.name = "Invariant Violation", h;
19463
19463
  }
19464
19464
  d = i[f](u, f, l, o, null, t);
19465
19465
  } catch (y) {
@@ -19469,9 +19469,9 @@ function wT() {
19469
19469
  (l || "React class") + ": type specification of " + o + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof d + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
19470
19470
  ), d instanceof Error && !(d.message in n)) {
19471
19471
  n[d.message] = !0;
19472
- var h = c ? c() : "";
19472
+ var m = c ? c() : "";
19473
19473
  e(
19474
- "Failed " + o + " type: " + d.message + (h ?? "")
19474
+ "Failed " + o + " type: " + d.message + (m ?? "")
19475
19475
  );
19476
19476
  }
19477
19477
  }
@@ -19505,7 +19505,7 @@ function MT() {
19505
19505
  if (typeof F == "function")
19506
19506
  return F;
19507
19507
  }
19508
- var m = "<<anonymous>>", h = {
19508
+ var h = "<<anonymous>>", m = {
19509
19509
  array: S("array"),
19510
19510
  bigint: S("bigint"),
19511
19511
  bool: S("boolean"),
@@ -19537,7 +19537,7 @@ function MT() {
19537
19537
  if (process.env.NODE_ENV !== "production")
19538
19538
  var F = {}, X = 0;
19539
19539
  function T(K, z, Q, ee, ae, Z, _e) {
19540
- if (ee = ee || m, Z = Z || Q, _e !== n) {
19540
+ if (ee = ee || h, Z = Z || Q, _e !== n) {
19541
19541
  if (l) {
19542
19542
  var U = new Error(
19543
19543
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
@@ -19616,7 +19616,7 @@ function MT() {
19616
19616
  function I(p) {
19617
19617
  function F(X, T, V, K, z) {
19618
19618
  if (!(X[T] instanceof p)) {
19619
- var Q = p.name || m, ee = Le(X[T]);
19619
+ var Q = p.name || h, ee = Le(X[T]);
19620
19620
  return new A("Invalid " + K + " `" + z + "` of type " + ("`" + ee + "` supplied to `" + V + "`, expected ") + ("instance of `" + Q + "`."));
19621
19621
  }
19622
19622
  return null;
@@ -19797,9 +19797,9 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
19797
19797
  }
19798
19798
  }
19799
19799
  function Le(p) {
19800
- return !p.constructor || !p.constructor.name ? m : p.constructor.name;
19800
+ return !p.constructor || !p.constructor.name ? h : p.constructor.name;
19801
19801
  }
19802
- return h.checkPropTypes = a, h.resetWarningCache = a.resetWarningCache, h.PropTypes = h, h;
19802
+ return m.checkPropTypes = a, m.resetWarningCache = a.resetWarningCache, m.PropTypes = m, m;
19803
19803
  }, da;
19804
19804
  }
19805
19805
  var ha, as;
@@ -19814,10 +19814,10 @@ function BT() {
19814
19814
  return n.resetWarningCache = t, ha = function() {
19815
19815
  function r(u, o, l, c, f, d) {
19816
19816
  if (d !== e) {
19817
- var m = new Error(
19817
+ var h = new Error(
19818
19818
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
19819
19819
  );
19820
- throw m.name = "Invariant Violation", m;
19820
+ throw h.name = "Invariant Violation", h;
19821
19821
  }
19822
19822
  }
19823
19823
  r.isRequired = r;
@@ -19945,7 +19945,7 @@ var Pl = function(t) {
19945
19945
  status: Cn
19946
19946
  });
19947
19947
  }, n.performEnter = function(a) {
19948
- var i = this, u = this.props.enter, o = this.context ? this.context.isMounting : a, l = this.props.nodeRef ? [o] : [jn.findDOMNode(this), o], c = l[0], f = l[1], d = this.getTimeouts(), m = o ? d.appear : d.enter;
19948
+ var i = this, u = this.props.enter, o = this.context ? this.context.isMounting : a, l = this.props.nodeRef ? [o] : [jn.findDOMNode(this), o], c = l[0], f = l[1], d = this.getTimeouts(), h = o ? d.appear : d.enter;
19949
19949
  if (!a && !u || ss.disabled) {
19950
19950
  this.safeSetState({
19951
19951
  status: Jt
@@ -19957,7 +19957,7 @@ var Pl = function(t) {
19957
19957
  this.props.onEnter(c, f), this.safeSetState({
19958
19958
  status: Mt
19959
19959
  }, function() {
19960
- i.props.onEntering(c, f), i.onTransitionEnd(m, function() {
19960
+ i.props.onEntering(c, f), i.onTransitionEnd(h, function() {
19961
19961
  i.safeSetState({
19962
19962
  status: Jt
19963
19963
  }, function() {
@@ -20236,11 +20236,11 @@ var jT = function(t, n) {
20236
20236
  var c = r.resolveArguments(o, l), f = c[0], d = c[1];
20237
20237
  r.removeClasses(f, "exit"), r.addClass(f, d ? "appear" : "enter", "base"), r.props.onEnter && r.props.onEnter(o, l);
20238
20238
  }, r.onEntering = function(o, l) {
20239
- var c = r.resolveArguments(o, l), f = c[0], d = c[1], m = d ? "appear" : "enter";
20240
- r.addClass(f, m, "active"), r.props.onEntering && r.props.onEntering(o, l);
20239
+ var c = r.resolveArguments(o, l), f = c[0], d = c[1], h = d ? "appear" : "enter";
20240
+ r.addClass(f, h, "active"), r.props.onEntering && r.props.onEntering(o, l);
20241
20241
  }, r.onEntered = function(o, l) {
20242
- var c = r.resolveArguments(o, l), f = c[0], d = c[1], m = d ? "appear" : "enter";
20243
- r.removeClasses(f, m), r.addClass(f, m, "done"), r.props.onEntered && r.props.onEntered(o, l);
20242
+ var c = r.resolveArguments(o, l), f = c[0], d = c[1], h = d ? "appear" : "enter";
20243
+ r.removeClasses(f, h), r.addClass(f, h, "done"), r.props.onEntered && r.props.onEntered(o, l);
20244
20244
  }, r.onExit = function(o) {
20245
20245
  var l = r.resolveArguments(o), c = l[0];
20246
20246
  r.removeClasses(c, "appear"), r.removeClasses(c, "enter"), r.addClass(c, "exit", "base"), r.props.onExit && r.props.onExit(o);
@@ -20253,11 +20253,11 @@ var jT = function(t, n) {
20253
20253
  }, r.resolveArguments = function(o, l) {
20254
20254
  return r.props.nodeRef ? [r.props.nodeRef.current, o] : [o, l];
20255
20255
  }, r.getClassNames = function(o) {
20256
- var l = r.props.classNames, c = typeof l == "string", f = c && l ? l + "-" : "", d = c ? "" + f + o : l[o], m = c ? d + "-active" : l[o + "Active"], h = c ? d + "-done" : l[o + "Done"];
20256
+ var l = r.props.classNames, c = typeof l == "string", f = c && l ? l + "-" : "", d = c ? "" + f + o : l[o], h = c ? d + "-active" : l[o + "Active"], m = c ? d + "-done" : l[o + "Done"];
20257
20257
  return {
20258
20258
  baseClassName: d,
20259
- activeClassName: m,
20260
- doneClassName: h
20259
+ activeClassName: h,
20260
+ doneClassName: m
20261
20261
  };
20262
20262
  }, r;
20263
20263
  }