@chatsystem/client 1.1.42 → 1.1.43

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
@@ -41,41 +41,41 @@ function jl() {
41
41
  function O(C) {
42
42
  if (C === null || typeof C != "object")
43
43
  return null;
44
- var V = _ && C[_] || C[S];
45
- return typeof V == "function" ? V : null;
44
+ var j = _ && C[_] || C[S];
45
+ return typeof j == "function" ? j : null;
46
46
  }
47
47
  var v = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
48
48
  function L(C) {
49
49
  {
50
- for (var V = arguments.length, X = new Array(V > 1 ? V - 1 : 0), de = 1; de < V; de++)
50
+ for (var j = arguments.length, X = new Array(j > 1 ? j - 1 : 0), de = 1; de < j; de++)
51
51
  X[de - 1] = arguments[de];
52
52
  P("error", C, X);
53
53
  }
54
54
  }
55
- function P(C, V, X) {
55
+ function P(C, j, X) {
56
56
  {
57
57
  var de = v.ReactDebugCurrentFrame, Re = de.getStackAddendum();
58
- Re !== "" && (V += "%s", X = X.concat([Re]));
58
+ Re !== "" && (j += "%s", X = X.concat([Re]));
59
59
  var Pe = X.map(function(_e) {
60
60
  return String(_e);
61
61
  });
62
- Pe.unshift("Warning: " + V), Function.prototype.apply.call(console[C], console, Pe);
62
+ Pe.unshift("Warning: " + j), Function.prototype.apply.call(console[C], console, Pe);
63
63
  }
64
64
  }
65
- var j = !1, R = !1, D = !1, re = !1, be = !1, oe;
65
+ var $ = !1, I = !1, D = !1, re = !1, be = !1, oe;
66
66
  oe = Symbol.for("react.module.reference");
67
67
  function q(C) {
68
- return !!(typeof C == "string" || typeof C == "function" || C === r || C === i || be || C === a || C === l || C === d || re || C === m || j || R || D || typeof C == "object" && C !== null && (C.$$typeof === h || C.$$typeof === f || C.$$typeof === s || C.$$typeof === u || C.$$typeof === c || // This needs to include all possible module reference object
68
+ return !!(typeof C == "string" || typeof C == "function" || C === r || C === i || be || C === a || C === l || C === d || re || C === m || $ || I || D || typeof C == "object" && C !== null && (C.$$typeof === h || C.$$typeof === f || C.$$typeof === s || C.$$typeof === u || C.$$typeof === c || // This needs to include all possible module reference object
69
69
  // types supported by any Flight configuration anywhere since
70
70
  // we don't know which Flight build this will end up being used
71
71
  // with.
72
72
  C.$$typeof === oe || C.getModuleId !== void 0));
73
73
  }
74
- function Te(C, V, X) {
74
+ function Te(C, j, X) {
75
75
  var de = C.displayName;
76
76
  if (de)
77
77
  return de;
78
- var Re = V.displayName || V.name || "";
78
+ var Re = j.displayName || j.name || "";
79
79
  return Re !== "" ? X + "(" + Re + ")" : X;
80
80
  }
81
81
  function ee(C) {
@@ -105,8 +105,8 @@ function jl() {
105
105
  if (typeof C == "object")
106
106
  switch (C.$$typeof) {
107
107
  case u:
108
- var V = C;
109
- return ee(V) + ".Consumer";
108
+ var j = C;
109
+ return ee(j) + ".Consumer";
110
110
  case s:
111
111
  var X = C;
112
112
  return ee(X._context) + ".Provider";
@@ -189,7 +189,7 @@ function jl() {
189
189
  }
190
190
  }
191
191
  var se = v.ReactCurrentDispatcher, ie;
192
- function Q(C, V, X) {
192
+ function Q(C, j, X) {
193
193
  {
194
194
  if (ie === void 0)
195
195
  try {
@@ -207,7 +207,7 @@ function jl() {
207
207
  var ke = typeof WeakMap == "function" ? WeakMap : Map;
208
208
  ue = new ke();
209
209
  }
210
- function $(C, V) {
210
+ function z(C, j) {
211
211
  if (!C || ce)
212
212
  return "";
213
213
  {
@@ -222,7 +222,7 @@ function jl() {
222
222
  var Pe;
223
223
  Pe = se.current, se.current = null, Z();
224
224
  try {
225
- if (V) {
225
+ if (j) {
226
226
  var _e = function() {
227
227
  throw Error();
228
228
  };
@@ -278,18 +278,18 @@ function jl() {
278
278
  var gn = C ? C.displayName || C.name : "", es = gn ? Q(gn) : "";
279
279
  return typeof C == "function" && ue.set(C, es), es;
280
280
  }
281
- function Ue(C, V, X) {
282
- return $(C, !1);
281
+ function Ue(C, j, X) {
282
+ return z(C, !1);
283
283
  }
284
284
  function We(C) {
285
- var V = C.prototype;
286
- return !!(V && V.isReactComponent);
285
+ var j = C.prototype;
286
+ return !!(j && j.isReactComponent);
287
287
  }
288
- function Je(C, V, X) {
288
+ function Je(C, j, X) {
289
289
  if (C == null)
290
290
  return "";
291
291
  if (typeof C == "function")
292
- return $(C, We(C));
292
+ return z(C, We(C));
293
293
  if (typeof C == "string")
294
294
  return Q(C);
295
295
  switch (C) {
@@ -303,11 +303,11 @@ function jl() {
303
303
  case c:
304
304
  return Ue(C.render);
305
305
  case f:
306
- return Je(C.type, V, X);
306
+ return Je(C.type, j, X);
307
307
  case h: {
308
308
  var de = C, Re = de._payload, Pe = de._init;
309
309
  try {
310
- return Je(Pe(Re), V, X);
310
+ return Je(Pe(Re), j, X);
311
311
  } catch {
312
312
  }
313
313
  }
@@ -317,12 +317,12 @@ function jl() {
317
317
  var mt = Object.prototype.hasOwnProperty, Ze = {}, wt = v.ReactDebugCurrentFrame;
318
318
  function pt(C) {
319
319
  if (C) {
320
- var V = C._owner, X = Je(C.type, C._source, V ? V.type : null);
320
+ var j = C._owner, X = Je(C.type, C._source, j ? j.type : null);
321
321
  wt.setExtraStackFrame(X);
322
322
  } else
323
323
  wt.setExtraStackFrame(null);
324
324
  }
325
- function he(C, V, X, de, Re) {
325
+ function he(C, j, X, de, Re) {
326
326
  {
327
327
  var Pe = Function.call.bind(mt);
328
328
  for (var _e in C)
@@ -333,7 +333,7 @@ function jl() {
333
333
  var st = Error((de || "React class") + ": " + X + " type `" + _e + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof C[_e] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
334
334
  throw st.name = "Invariant Violation", st;
335
335
  }
336
- Ce = C[_e](V, _e, de, X, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
336
+ Ce = C[_e](j, _e, de, X, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
337
337
  } catch (Ge) {
338
338
  Ce = Ge;
339
339
  }
@@ -347,23 +347,23 @@ function jl() {
347
347
  }
348
348
  function Ie(C) {
349
349
  {
350
- var V = typeof Symbol == "function" && Symbol.toStringTag, X = V && C[Symbol.toStringTag] || C.constructor.name || "Object";
350
+ var j = typeof Symbol == "function" && Symbol.toStringTag, X = j && C[Symbol.toStringTag] || C.constructor.name || "Object";
351
351
  return X;
352
352
  }
353
353
  }
354
354
  function je(C) {
355
355
  try {
356
- return I(C), !1;
356
+ return w(C), !1;
357
357
  } catch {
358
358
  return !0;
359
359
  }
360
360
  }
361
- function I(C) {
361
+ function w(C) {
362
362
  return "" + C;
363
363
  }
364
- function w(C) {
364
+ function R(C) {
365
365
  if (je(C))
366
- return L("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ie(C)), I(C);
366
+ return L("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ie(C)), w(C);
367
367
  }
368
368
  var G = v.ReactCurrentOwner, me = {
369
369
  key: !0,
@@ -374,30 +374,30 @@ function jl() {
374
374
  _t = {};
375
375
  function vt(C) {
376
376
  if (mt.call(C, "ref")) {
377
- var V = Object.getOwnPropertyDescriptor(C, "ref").get;
378
- if (V && V.isReactWarning)
377
+ var j = Object.getOwnPropertyDescriptor(C, "ref").get;
378
+ if (j && j.isReactWarning)
379
379
  return !1;
380
380
  }
381
381
  return C.ref !== void 0;
382
382
  }
383
383
  function Zt(C) {
384
384
  if (mt.call(C, "key")) {
385
- var V = Object.getOwnPropertyDescriptor(C, "key").get;
386
- if (V && V.isReactWarning)
385
+ var j = Object.getOwnPropertyDescriptor(C, "key").get;
386
+ if (j && j.isReactWarning)
387
387
  return !1;
388
388
  }
389
389
  return C.key !== void 0;
390
390
  }
391
- function en(C, V) {
392
- if (typeof C.ref == "string" && G.current && V && G.current.stateNode !== V) {
391
+ function en(C, j) {
392
+ if (typeof C.ref == "string" && G.current && j && G.current.stateNode !== j) {
393
393
  var X = B(G.current.type);
394
394
  _t[X] || (L('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', B(G.current.type), C.ref), _t[X] = !0);
395
395
  }
396
396
  }
397
- function it(C, V) {
397
+ function it(C, j) {
398
398
  {
399
399
  var X = function() {
400
- Se || (Se = !0, L("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", V));
400
+ Se || (Se = !0, L("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", j));
401
401
  };
402
402
  X.isReactWarning = !0, Object.defineProperty(C, "key", {
403
403
  get: X,
@@ -405,10 +405,10 @@ function jl() {
405
405
  });
406
406
  }
407
407
  }
408
- function zt(C, V) {
408
+ function zt(C, j) {
409
409
  {
410
410
  var X = function() {
411
- nt || (nt = !0, L("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", V));
411
+ nt || (nt = !0, L("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", j));
412
412
  };
413
413
  X.isReactWarning = !0, Object.defineProperty(C, "ref", {
414
414
  get: X,
@@ -416,13 +416,13 @@ function jl() {
416
416
  });
417
417
  }
418
418
  }
419
- var Nt = function(C, V, X, de, Re, Pe, _e) {
419
+ var Nt = function(C, j, X, de, Re, Pe, _e) {
420
420
  var Ce = {
421
421
  // This tag allows us to uniquely identify this as a React Element
422
422
  $$typeof: t,
423
423
  // Built-in properties that belong on the element
424
424
  type: C,
425
- key: V,
425
+ key: j,
426
426
  ref: X,
427
427
  props: _e,
428
428
  // Record the component responsible for creating this element.
@@ -445,12 +445,12 @@ function jl() {
445
445
  value: Re
446
446
  }), Object.freeze && (Object.freeze(Ce.props), Object.freeze(Ce)), Ce;
447
447
  };
448
- function _l(C, V, X, de, Re) {
448
+ function _l(C, j, X, de, Re) {
449
449
  {
450
450
  var Pe, _e = {}, Ce = null, st = null;
451
- X !== void 0 && (w(X), Ce = "" + X), Zt(V) && (w(V.key), Ce = "" + V.key), vt(V) && (st = V.ref, en(V, Re));
452
- for (Pe in V)
453
- mt.call(V, Pe) && !me.hasOwnProperty(Pe) && (_e[Pe] = V[Pe]);
451
+ X !== void 0 && (R(X), Ce = "" + X), Zt(j) && (R(j.key), Ce = "" + j.key), vt(j) && (st = j.ref, en(j, Re));
452
+ for (Pe in j)
453
+ mt.call(j, Pe) && !me.hasOwnProperty(Pe) && (_e[Pe] = j[Pe]);
454
454
  if (C && C.defaultProps) {
455
455
  var Ge = C.defaultProps;
456
456
  for (Pe in Ge)
@@ -466,7 +466,7 @@ function jl() {
466
466
  var oa = v.ReactCurrentOwner, Xi = v.ReactDebugCurrentFrame;
467
467
  function bn(C) {
468
468
  if (C) {
469
- var V = C._owner, X = Je(C.type, C._source, V ? V.type : null);
469
+ var j = C._owner, X = Je(C.type, C._source, j ? j.type : null);
470
470
  Xi.setExtraStackFrame(X);
471
471
  } else
472
472
  Xi.setExtraStackFrame(null);
@@ -491,10 +491,10 @@ Check the render method of \`` + C + "`.";
491
491
  function vl(C) {
492
492
  {
493
493
  if (C !== void 0) {
494
- var V = C.fileName.replace(/^.*[\\\/]/, ""), X = C.lineNumber;
494
+ var j = C.fileName.replace(/^.*[\\\/]/, ""), X = C.lineNumber;
495
495
  return `
496
496
 
497
- Check your code at ` + V + ":" + X + ".";
497
+ Check your code at ` + j + ":" + X + ".";
498
498
  }
499
499
  return "";
500
500
  }
@@ -502,22 +502,22 @@ Check your code at ` + V + ":" + X + ".";
502
502
  var Ki = {};
503
503
  function Nl(C) {
504
504
  {
505
- var V = Qi();
506
- if (!V) {
505
+ var j = Qi();
506
+ if (!j) {
507
507
  var X = typeof C == "string" ? C : C.displayName || C.name;
508
- X && (V = `
508
+ X && (j = `
509
509
 
510
510
  Check the top-level render call using <` + X + ">.");
511
511
  }
512
- return V;
512
+ return j;
513
513
  }
514
514
  }
515
- function Ji(C, V) {
515
+ function Ji(C, j) {
516
516
  {
517
517
  if (!C._store || C._store.validated || C.key != null)
518
518
  return;
519
519
  C._store.validated = !0;
520
- var X = Nl(V);
520
+ var X = Nl(j);
521
521
  if (Ki[X])
522
522
  return;
523
523
  Ki[X] = !0;
@@ -525,14 +525,14 @@ Check the top-level render call using <` + X + ">.");
525
525
  C && C._owner && C._owner !== oa.current && (de = " It was passed a child from " + B(C._owner.type) + "."), bn(C), L('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', X, de), bn(null);
526
526
  }
527
527
  }
528
- function Zi(C, V) {
528
+ function Zi(C, j) {
529
529
  {
530
530
  if (typeof C != "object")
531
531
  return;
532
532
  if (Ne(C))
533
533
  for (var X = 0; X < C.length; X++) {
534
534
  var de = C[X];
535
- ca(de) && Ji(de, V);
535
+ ca(de) && Ji(de, j);
536
536
  }
537
537
  else if (ca(C))
538
538
  C._store && (C._store.validated = !0);
@@ -540,39 +540,39 @@ Check the top-level render call using <` + X + ">.");
540
540
  var Re = O(C);
541
541
  if (typeof Re == "function" && Re !== C.entries)
542
542
  for (var Pe = Re.call(C), _e; !(_e = Pe.next()).done; )
543
- ca(_e.value) && Ji(_e.value, V);
543
+ ca(_e.value) && Ji(_e.value, j);
544
544
  }
545
545
  }
546
546
  }
547
547
  function Il(C) {
548
548
  {
549
- var V = C.type;
550
- if (V == null || typeof V == "string")
549
+ var j = C.type;
550
+ if (j == null || typeof j == "string")
551
551
  return;
552
552
  var X;
553
- if (typeof V == "function")
554
- X = V.propTypes;
555
- else if (typeof V == "object" && (V.$$typeof === c || // Note: Memo only checks outer props here.
553
+ if (typeof j == "function")
554
+ X = j.propTypes;
555
+ else if (typeof j == "object" && (j.$$typeof === c || // Note: Memo only checks outer props here.
556
556
  // Inner props are checked in the reconciler.
557
- V.$$typeof === f))
558
- X = V.propTypes;
557
+ j.$$typeof === f))
558
+ X = j.propTypes;
559
559
  else
560
560
  return;
561
561
  if (X) {
562
- var de = B(V);
562
+ var de = B(j);
563
563
  he(X, C.props, "prop", de, C);
564
- } else if (V.PropTypes !== void 0 && !ua) {
564
+ } else if (j.PropTypes !== void 0 && !ua) {
565
565
  ua = !0;
566
- var Re = B(V);
566
+ var Re = B(j);
567
567
  L("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Re || "Unknown");
568
568
  }
569
- typeof V.getDefaultProps == "function" && !V.getDefaultProps.isReactClassApproved && L("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
569
+ typeof j.getDefaultProps == "function" && !j.getDefaultProps.isReactClassApproved && L("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
570
570
  }
571
571
  }
572
572
  function wl(C) {
573
573
  {
574
- for (var V = Object.keys(C.props), X = 0; X < V.length; X++) {
575
- var de = V[X];
574
+ for (var j = Object.keys(C.props), X = 0; X < j.length; X++) {
575
+ var de = j[X];
576
576
  if (de !== "children" && de !== "key") {
577
577
  bn(C), L("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", de), bn(null);
578
578
  break;
@@ -581,7 +581,7 @@ Check the top-level render call using <` + X + ">.");
581
581
  C.ref !== null && (bn(C), L("Invalid attribute `ref` supplied to `React.Fragment`."), bn(null));
582
582
  }
583
583
  }
584
- function Rl(C, V, X, de, Re, Pe) {
584
+ function Rl(C, j, X, de, Re, Pe) {
585
585
  {
586
586
  var _e = q(C);
587
587
  if (!_e) {
@@ -592,11 +592,11 @@ Check the top-level render call using <` + X + ">.");
592
592
  var Ge;
593
593
  C === null ? Ge = "null" : Ne(C) ? Ge = "array" : C !== void 0 && C.$$typeof === t ? (Ge = "<" + (B(C.type) || "Unknown") + " />", Ce = " Did you accidentally export a JSX literal instead of a component?") : Ge = typeof C, L("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ge, Ce);
594
594
  }
595
- var Xe = _l(C, V, X, Re, Pe);
595
+ var Xe = _l(C, j, X, Re, Pe);
596
596
  if (Xe == null)
597
597
  return Xe;
598
598
  if (_e) {
599
- var bt = V.children;
599
+ var bt = j.children;
600
600
  if (bt !== void 0)
601
601
  if (de)
602
602
  if (Ne(bt)) {
@@ -972,8 +972,8 @@ async function ed(e, t = {}) {
972
972
  _,
973
973
  O,
974
974
  a
975
- ), P = ss(m, S, v, a), j = Math.max(1, _ - L), R = Math.max(1, S - P);
976
- if (j * O > l + 2 || R * v > d + 2)
975
+ ), P = ss(m, S, v, a), $ = Math.max(1, _ - L), I = Math.max(1, S - P);
976
+ if ($ * O > l + 2 || I * v > d + 2)
977
977
  return i && console.warn("detectGrid: sanity check failed"), null;
978
978
  const D = Ya(h, 60), re = Ya(m, 60), be = Math.max(0, os(h, D)), oe = Math.max(0, os(m, re));
979
979
  return i && console.log({
@@ -983,15 +983,15 @@ async function ed(e, t = {}) {
983
983
  rows: v,
984
984
  gutterX: L,
985
985
  gutterY: P,
986
- frameWidth: j,
987
- frameHeight: R,
986
+ frameWidth: $,
987
+ frameHeight: I,
988
988
  originX: be,
989
989
  originY: oe
990
990
  }), {
991
991
  columns: O,
992
992
  rows: v,
993
- frameWidth: j,
994
- frameHeight: R,
993
+ frameWidth: $,
994
+ frameHeight: I,
995
995
  gutterX: L,
996
996
  gutterY: P,
997
997
  originX: be,
@@ -1089,8 +1089,8 @@ const nd = Jo(function({
1089
1089
  className: v,
1090
1090
  style: L,
1091
1091
  pauseWhenHidden: P = !1,
1092
- originX: j,
1093
- originY: R,
1092
+ originX: $,
1093
+ originY: I,
1094
1094
  onLoad: D,
1095
1095
  onEnd: re,
1096
1096
  onFrame: be
@@ -1134,11 +1134,11 @@ const nd = Jo(function({
1134
1134
  he = !0;
1135
1135
  };
1136
1136
  }, [ee, l, n, r, a, i]);
1137
- const Q = ae?.frameWidth ?? n, ce = ae?.frameHeight ?? r, ue = ae?.columns ?? a, ke = ae?.rows ?? i, $ = ae?.gutterX ?? s, Ue = ae?.gutterY ?? u, We = ae?.originX ?? j ?? 0, Je = ae?.originY ?? R ?? 0, mt = _n(() => {
1137
+ const Q = ae?.frameWidth ?? n, ce = ae?.frameHeight ?? r, ue = ae?.columns ?? a, ke = ae?.rows ?? i, z = ae?.gutterX ?? s, Ue = ae?.gutterY ?? u, We = ae?.originX ?? $ ?? 0, Je = ae?.originY ?? I ?? 0, mt = _n(() => {
1138
1138
  if (l && l.length > 0) return { cols: 0, rows: 0 };
1139
1139
  if (!fe || !Q || !ce)
1140
1140
  return { cols: 0, rows: 0 };
1141
- const he = ue ?? Math.floor((fe.w + $) / (Q + $)), Ee = ke ?? Math.floor((fe.h + Ue) / (ce + Ue));
1141
+ const he = ue ?? Math.floor((fe.w + z) / (Q + z)), Ee = ke ?? Math.floor((fe.h + Ue) / (ce + Ue));
1142
1142
  return { cols: Math.max(0, he), rows: Math.max(0, Ee) };
1143
1143
  }, [
1144
1144
  l,
@@ -1147,7 +1147,7 @@ const nd = Jo(function({
1147
1147
  ce,
1148
1148
  ue,
1149
1149
  ke,
1150
- $,
1150
+ z,
1151
1151
  Ue
1152
1152
  ]), Ze = _n(() => {
1153
1153
  if (l?.length) return l;
@@ -1156,25 +1156,25 @@ const nd = Jo(function({
1156
1156
  if (!he || !Ee) return [];
1157
1157
  const Ne = Math.min(c ?? he * Ee, he * Ee), Ie = [];
1158
1158
  for (let je = 0; je < Ne; je++) {
1159
- const I = je % he, w = Math.floor(je / he), G = We + I * (Q + $), me = Je + w * (ce + Ue);
1159
+ const w = je % he, R = Math.floor(je / he), G = We + w * (Q + z), me = Je + R * (ce + Ue);
1160
1160
  Ie.push({ x: G, y: me, w: Q, h: ce });
1161
1161
  }
1162
1162
  if (ee && Ie.length) {
1163
1163
  const je = document.createElement("canvas");
1164
1164
  je.width = ee.naturalWidth, je.height = ee.naturalHeight;
1165
- const I = je.getContext("2d");
1166
- if (I) {
1167
- I.drawImage(ee, 0, 0);
1168
- let w = Ie.length;
1169
- for (; w > 0 && td(
1170
- I,
1171
- Ie[w - 1].x,
1172
- Ie[w - 1].y,
1173
- Ie[w - 1].w,
1174
- Ie[w - 1].h
1165
+ const w = je.getContext("2d");
1166
+ if (w) {
1167
+ w.drawImage(ee, 0, 0);
1168
+ let R = Ie.length;
1169
+ for (; R > 0 && td(
1170
+ w,
1171
+ Ie[R - 1].x,
1172
+ Ie[R - 1].y,
1173
+ Ie[R - 1].w,
1174
+ Ie[R - 1].h
1175
1175
  ); )
1176
- w--;
1177
- return Ie.slice(0, w);
1176
+ R--;
1177
+ return Ie.slice(0, R);
1178
1178
  }
1179
1179
  }
1180
1180
  return Ie;
@@ -1184,7 +1184,7 @@ const nd = Jo(function({
1184
1184
  c,
1185
1185
  Q,
1186
1186
  ce,
1187
- $,
1187
+ z,
1188
1188
  Ue,
1189
1189
  ee,
1190
1190
  We,
@@ -1230,10 +1230,10 @@ const nd = Jo(function({
1230
1230
  pt(W);
1231
1231
  return;
1232
1232
  }
1233
- he = Ie - je % Ee, x((I) => {
1234
- const w = Ze.length - 1;
1235
- let G = I;
1236
- return _ === "forward" ? G = I + 1 : _ === "backward" ? G = I - 1 : ((I >= w && Z.current === 1 || I <= 0 && Z.current === -1) && (Z.current *= -1), G = I + Z.current), (G > w || G < 0) && (h ? G = _ === "backward" ? w : 0 : (G = Math.max(0, Math.min(G, w)), Y(!1), re?.())), G;
1233
+ he = Ie - je % Ee, x((w) => {
1234
+ const R = Ze.length - 1;
1235
+ let G = w;
1236
+ return _ === "forward" ? G = w + 1 : _ === "backward" ? G = w - 1 : ((w >= R && Z.current === 1 || w <= 0 && Z.current === -1) && (Z.current *= -1), G = w + Z.current), (G > R || G < 0) && (h ? G = _ === "backward" ? R : 0 : (G = Math.max(0, Math.min(G, R)), Y(!1), re?.())), G;
1237
1237
  });
1238
1238
  };
1239
1239
  return Te.current = requestAnimationFrame(Ne), () => {
@@ -1481,27 +1481,27 @@ function id() {
1481
1481
  if (us) return Le;
1482
1482
  us = 1;
1483
1483
  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, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, _ = e ? Symbol.for("react.lazy") : 60116, S = e ? Symbol.for("react.block") : 60121, O = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, L = e ? Symbol.for("react.scope") : 60119;
1484
- function P(R) {
1485
- if (typeof R == "object" && R !== null) {
1486
- var D = R.$$typeof;
1484
+ function P(I) {
1485
+ if (typeof I == "object" && I !== null) {
1486
+ var D = I.$$typeof;
1487
1487
  switch (D) {
1488
1488
  case t:
1489
- switch (R = R.type, R) {
1489
+ switch (I = I.type, I) {
1490
1490
  case c:
1491
1491
  case l:
1492
1492
  case r:
1493
1493
  case i:
1494
1494
  case a:
1495
1495
  case f:
1496
- return R;
1496
+ return I;
1497
1497
  default:
1498
- switch (R = R && R.$$typeof, R) {
1498
+ switch (I = I && I.$$typeof, I) {
1499
1499
  case u:
1500
1500
  case d:
1501
1501
  case _:
1502
1502
  case m:
1503
1503
  case s:
1504
- return R;
1504
+ return I;
1505
1505
  default:
1506
1506
  return D;
1507
1507
  }
@@ -1511,35 +1511,35 @@ function id() {
1511
1511
  }
1512
1512
  }
1513
1513
  }
1514
- function j(R) {
1515
- return P(R) === l;
1516
- }
1517
- return Le.AsyncMode = c, Le.ConcurrentMode = l, Le.ContextConsumer = u, Le.ContextProvider = s, Le.Element = t, Le.ForwardRef = d, Le.Fragment = r, Le.Lazy = _, Le.Memo = m, Le.Portal = n, Le.Profiler = i, Le.StrictMode = a, Le.Suspense = f, Le.isAsyncMode = function(R) {
1518
- return j(R) || P(R) === c;
1519
- }, Le.isConcurrentMode = j, Le.isContextConsumer = function(R) {
1520
- return P(R) === u;
1521
- }, Le.isContextProvider = function(R) {
1522
- return P(R) === s;
1523
- }, Le.isElement = function(R) {
1524
- return typeof R == "object" && R !== null && R.$$typeof === t;
1525
- }, Le.isForwardRef = function(R) {
1526
- return P(R) === d;
1527
- }, Le.isFragment = function(R) {
1528
- return P(R) === r;
1529
- }, Le.isLazy = function(R) {
1530
- return P(R) === _;
1531
- }, Le.isMemo = function(R) {
1532
- return P(R) === m;
1533
- }, Le.isPortal = function(R) {
1534
- return P(R) === n;
1535
- }, Le.isProfiler = function(R) {
1536
- return P(R) === i;
1537
- }, Le.isStrictMode = function(R) {
1538
- return P(R) === a;
1539
- }, Le.isSuspense = function(R) {
1540
- return P(R) === f;
1541
- }, Le.isValidElementType = function(R) {
1542
- return typeof R == "string" || typeof R == "function" || R === r || R === l || R === i || R === a || R === f || R === h || typeof R == "object" && R !== null && (R.$$typeof === _ || R.$$typeof === m || R.$$typeof === s || R.$$typeof === u || R.$$typeof === d || R.$$typeof === O || R.$$typeof === v || R.$$typeof === L || R.$$typeof === S);
1514
+ function $(I) {
1515
+ return P(I) === l;
1516
+ }
1517
+ return Le.AsyncMode = c, Le.ConcurrentMode = l, Le.ContextConsumer = u, Le.ContextProvider = s, Le.Element = t, Le.ForwardRef = d, Le.Fragment = r, Le.Lazy = _, Le.Memo = m, Le.Portal = n, Le.Profiler = i, Le.StrictMode = a, Le.Suspense = f, Le.isAsyncMode = function(I) {
1518
+ return $(I) || P(I) === c;
1519
+ }, Le.isConcurrentMode = $, Le.isContextConsumer = function(I) {
1520
+ return P(I) === u;
1521
+ }, Le.isContextProvider = function(I) {
1522
+ return P(I) === s;
1523
+ }, Le.isElement = function(I) {
1524
+ return typeof I == "object" && I !== null && I.$$typeof === t;
1525
+ }, Le.isForwardRef = function(I) {
1526
+ return P(I) === d;
1527
+ }, Le.isFragment = function(I) {
1528
+ return P(I) === r;
1529
+ }, Le.isLazy = function(I) {
1530
+ return P(I) === _;
1531
+ }, Le.isMemo = function(I) {
1532
+ return P(I) === m;
1533
+ }, Le.isPortal = function(I) {
1534
+ return P(I) === n;
1535
+ }, Le.isProfiler = function(I) {
1536
+ return P(I) === i;
1537
+ }, Le.isStrictMode = function(I) {
1538
+ return P(I) === a;
1539
+ }, Le.isSuspense = function(I) {
1540
+ return P(I) === f;
1541
+ }, Le.isValidElementType = function(I) {
1542
+ return typeof I == "string" || typeof I == "function" || I === r || I === l || I === i || I === a || I === f || I === h || typeof I == "object" && I !== null && (I.$$typeof === _ || I.$$typeof === m || I.$$typeof === s || I.$$typeof === u || I.$$typeof === d || I.$$typeof === O || I.$$typeof === v || I.$$typeof === L || I.$$typeof === S);
1543
1543
  }, Le.typeOf = P, Le;
1544
1544
  }
1545
1545
  var De = {};
@@ -1555,16 +1555,16 @@ var cs;
1555
1555
  function sd() {
1556
1556
  return cs || (cs = 1, process.env.NODE_ENV !== "production" && (function() {
1557
1557
  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, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, _ = e ? Symbol.for("react.lazy") : 60116, S = e ? Symbol.for("react.block") : 60121, O = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, L = e ? Symbol.for("react.scope") : 60119;
1558
- function P($) {
1559
- return typeof $ == "string" || typeof $ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1560
- $ === r || $ === l || $ === i || $ === a || $ === f || $ === h || typeof $ == "object" && $ !== null && ($.$$typeof === _ || $.$$typeof === m || $.$$typeof === s || $.$$typeof === u || $.$$typeof === d || $.$$typeof === O || $.$$typeof === v || $.$$typeof === L || $.$$typeof === S);
1558
+ function P(z) {
1559
+ return typeof z == "string" || typeof z == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1560
+ z === r || z === l || z === i || z === a || z === f || z === h || typeof z == "object" && z !== null && (z.$$typeof === _ || z.$$typeof === m || z.$$typeof === s || z.$$typeof === u || z.$$typeof === d || z.$$typeof === O || z.$$typeof === v || z.$$typeof === L || z.$$typeof === S);
1561
1561
  }
1562
- function j($) {
1563
- if (typeof $ == "object" && $ !== null) {
1564
- var Ue = $.$$typeof;
1562
+ function $(z) {
1563
+ if (typeof z == "object" && z !== null) {
1564
+ var Ue = z.$$typeof;
1565
1565
  switch (Ue) {
1566
1566
  case t:
1567
- var We = $.type;
1567
+ var We = z.type;
1568
1568
  switch (We) {
1569
1569
  case c:
1570
1570
  case l:
@@ -1591,47 +1591,47 @@ function sd() {
1591
1591
  }
1592
1592
  }
1593
1593
  }
1594
- var R = c, D = l, re = u, be = s, oe = t, q = d, Te = r, ee = _, B = m, F = n, J = i, fe = a, le = f, ye = !1;
1595
- function He($) {
1596
- return ye || (ye = !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.")), g($) || j($) === c;
1594
+ var I = c, D = l, re = u, be = s, oe = t, q = d, Te = r, ee = _, B = m, F = n, J = i, fe = a, le = f, ye = !1;
1595
+ function He(z) {
1596
+ return ye || (ye = !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.")), g(z) || $(z) === c;
1597
1597
  }
1598
- function g($) {
1599
- return j($) === l;
1598
+ function g(z) {
1599
+ return $(z) === l;
1600
1600
  }
1601
- function Y($) {
1602
- return j($) === u;
1601
+ function Y(z) {
1602
+ return $(z) === u;
1603
1603
  }
1604
- function W($) {
1605
- return j($) === s;
1604
+ function W(z) {
1605
+ return $(z) === s;
1606
1606
  }
1607
- function x($) {
1608
- return typeof $ == "object" && $ !== null && $.$$typeof === t;
1607
+ function x(z) {
1608
+ return typeof z == "object" && z !== null && z.$$typeof === t;
1609
1609
  }
1610
- function Z($) {
1611
- return j($) === d;
1610
+ function Z(z) {
1611
+ return $(z) === d;
1612
1612
  }
1613
- function ae($) {
1614
- return j($) === r;
1613
+ function ae(z) {
1614
+ return $(z) === r;
1615
1615
  }
1616
- function se($) {
1617
- return j($) === _;
1616
+ function se(z) {
1617
+ return $(z) === _;
1618
1618
  }
1619
- function ie($) {
1620
- return j($) === m;
1619
+ function ie(z) {
1620
+ return $(z) === m;
1621
1621
  }
1622
- function Q($) {
1623
- return j($) === n;
1622
+ function Q(z) {
1623
+ return $(z) === n;
1624
1624
  }
1625
- function ce($) {
1626
- return j($) === i;
1625
+ function ce(z) {
1626
+ return $(z) === i;
1627
1627
  }
1628
- function ue($) {
1629
- return j($) === a;
1628
+ function ue(z) {
1629
+ return $(z) === a;
1630
1630
  }
1631
- function ke($) {
1632
- return j($) === f;
1631
+ function ke(z) {
1632
+ return $(z) === f;
1633
1633
  }
1634
- De.AsyncMode = R, De.ConcurrentMode = D, De.ContextConsumer = re, De.ContextProvider = be, De.Element = oe, De.ForwardRef = q, De.Fragment = Te, De.Lazy = ee, De.Memo = B, De.Portal = F, De.Profiler = J, De.StrictMode = fe, De.Suspense = le, De.isAsyncMode = He, De.isConcurrentMode = g, De.isContextConsumer = Y, De.isContextProvider = W, De.isElement = x, De.isForwardRef = Z, De.isFragment = ae, De.isLazy = se, De.isMemo = ie, De.isPortal = Q, De.isProfiler = ce, De.isStrictMode = ue, De.isSuspense = ke, De.isValidElementType = P, De.typeOf = j;
1634
+ De.AsyncMode = I, De.ConcurrentMode = D, De.ContextConsumer = re, De.ContextProvider = be, De.Element = oe, De.ForwardRef = q, De.Fragment = Te, De.Lazy = ee, De.Memo = B, De.Portal = F, De.Profiler = J, De.StrictMode = fe, De.Suspense = le, De.isAsyncMode = He, De.isConcurrentMode = g, De.isContextConsumer = Y, De.isContextProvider = W, De.isElement = x, De.isForwardRef = Z, De.isFragment = ae, De.isLazy = se, De.isMemo = ie, De.isPortal = Q, De.isProfiler = ce, De.isStrictMode = ue, De.isSuspense = ke, De.isValidElementType = P, De.typeOf = $;
1635
1635
  })()), De;
1636
1636
  }
1637
1637
  var ls;
@@ -1689,9 +1689,9 @@ function od() {
1689
1689
  }
1690
1690
  var L = c(S);
1691
1691
  l && (L = L.concat(l(S)));
1692
- for (var P = s(_), j = s(S), R = 0; R < L.length; ++R) {
1693
- var D = L[R];
1694
- if (!n[D] && !(O && O[D]) && !(j && j[D]) && !(P && P[D])) {
1692
+ for (var P = s(_), $ = s(S), I = 0; I < L.length; ++I) {
1693
+ var D = L[I];
1694
+ if (!n[D] && !(O && O[D]) && !($ && $[D]) && !(P && P[D])) {
1695
1695
  var re = d(S, D);
1696
1696
  try {
1697
1697
  u(_, D, re);
@@ -3879,17 +3879,17 @@ var Dd = (
3879
3879
  if (this.bumpSpace(), !this.bumpIf(","))
3880
3880
  return this.error(Ae.EXPECT_SELECT_ARGUMENT_OPTIONS, ve(P, ne({}, P)));
3881
3881
  this.bumpSpace();
3882
- var j = this.parseIdentifierIfPossible(), R = 0;
3883
- if (u !== "select" && j.value === "offset") {
3882
+ var $ = this.parseIdentifierIfPossible(), I = 0;
3883
+ if (u !== "select" && $.value === "offset") {
3884
3884
  if (!this.bumpIf(":"))
3885
3885
  return this.error(Ae.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, ve(this.clonePosition(), this.clonePosition()));
3886
3886
  this.bumpSpace();
3887
3887
  var f = this.tryParseDecimalInteger(Ae.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, Ae.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3888
3888
  if (f.err)
3889
3889
  return f;
3890
- this.bumpSpace(), j = this.parseIdentifierIfPossible(), R = f.val;
3890
+ this.bumpSpace(), $ = this.parseIdentifierIfPossible(), I = f.val;
3891
3891
  }
3892
- var D = this.tryParsePluralOrSelectOptions(t, u, n, j);
3892
+ var D = this.tryParsePluralOrSelectOptions(t, u, n, $);
3893
3893
  if (D.err)
3894
3894
  return D;
3895
3895
  var _ = this.tryParseArgumentClose(a);
@@ -3909,7 +3909,7 @@ var Dd = (
3909
3909
  type: Ve.plural,
3910
3910
  value: r,
3911
3911
  options: gs(D.val),
3912
- offset: R,
3912
+ offset: I,
3913
3913
  pluralType: u === "plural" ? "cardinal" : "ordinal",
3914
3914
  location: re
3915
3915
  },
@@ -4279,13 +4279,13 @@ function Rr(e, t, n, r, a, i, s) {
4279
4279
  var _ = d.children, S = d.value, O = a[S];
4280
4280
  if (!Au(O))
4281
4281
  throw new $d(S, "function", s);
4282
- var v = Rr(_, t, n, r, a, i), L = O(v.map(function(R) {
4283
- return R.value;
4282
+ var v = Rr(_, t, n, r, a, i), L = O(v.map(function(I) {
4283
+ return I.value;
4284
4284
  }));
4285
- Array.isArray(L) || (L = [L]), u.push.apply(u, L.map(function(R) {
4285
+ Array.isArray(L) || (L = [L]), u.push.apply(u, L.map(function(I) {
4286
4286
  return {
4287
- type: typeof R == "string" ? ot.literal : ot.object,
4288
- value: R
4287
+ type: typeof I == "string" ? ot.literal : ot.object,
4288
+ value: I
4289
4289
  };
4290
4290
  }));
4291
4291
  }
@@ -4303,8 +4303,8 @@ function Rr(e, t, n, r, a, i, s) {
4303
4303
  throw new Qt(`Intl.PluralRules is not available in this environment.
4304
4304
  Try polyfilling it using "@formatjs/intl-pluralrules"
4305
4305
  `, Bt.MISSING_INTL_API, s);
4306
- var j = n.getPluralRules(t, { type: d.pluralType }).select(h - (d.offset || 0));
4307
- P = d.options[j] || d.options.other;
4306
+ var $ = n.getPluralRules(t, { type: d.pluralType }).select(h - (d.offset || 0));
4307
+ P = d.options[$] || d.options.other;
4308
4308
  }
4309
4309
  if (!P)
4310
4310
  throw new Ts(d.value, h, Object.keys(d.options), s);
@@ -5299,7 +5299,7 @@ St.prototype.commaOrSpaceSeparated = !1;
5299
5299
  St.prototype.mustUseProperty = !1;
5300
5300
  St.prototype.defined = !1;
5301
5301
  let Bf = 0;
5302
- const ge = hn(), Qe = hn(), Bu = hn(), z = hn(), Me = hn(), vn = hn(), ft = hn();
5302
+ const ge = hn(), Qe = hn(), Bu = hn(), V = hn(), Me = hn(), vn = hn(), ft = hn();
5303
5303
  function hn() {
5304
5304
  return 2 ** ++Bf;
5305
5305
  }
@@ -5309,7 +5309,7 @@ const ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5309
5309
  booleanish: Qe,
5310
5310
  commaOrSpaceSeparated: ft,
5311
5311
  commaSeparated: vn,
5312
- number: z,
5312
+ number: V,
5313
5313
  overloadedBoolean: Bu,
5314
5314
  spaceSeparated: Me
5315
5315
  }, Symbol.toStringTag, { value: "Module" })), Ea = Object.keys(ni);
@@ -5392,9 +5392,9 @@ const Vu = Dn({
5392
5392
  ariaAutoComplete: null,
5393
5393
  ariaBusy: Qe,
5394
5394
  ariaChecked: Qe,
5395
- ariaColCount: z,
5396
- ariaColIndex: z,
5397
- ariaColSpan: z,
5395
+ ariaColCount: V,
5396
+ ariaColIndex: V,
5397
+ ariaColSpan: V,
5398
5398
  ariaControls: Me,
5399
5399
  ariaCurrent: null,
5400
5400
  ariaDescribedBy: Me,
@@ -5411,7 +5411,7 @@ const Vu = Dn({
5411
5411
  ariaKeyShortcuts: null,
5412
5412
  ariaLabel: null,
5413
5413
  ariaLabelledBy: Me,
5414
- ariaLevel: z,
5414
+ ariaLevel: V,
5415
5415
  ariaLive: null,
5416
5416
  ariaModal: Qe,
5417
5417
  ariaMultiLine: Qe,
@@ -5419,21 +5419,21 @@ const Vu = Dn({
5419
5419
  ariaOrientation: null,
5420
5420
  ariaOwns: Me,
5421
5421
  ariaPlaceholder: null,
5422
- ariaPosInSet: z,
5422
+ ariaPosInSet: V,
5423
5423
  ariaPressed: Qe,
5424
5424
  ariaReadOnly: Qe,
5425
5425
  ariaRelevant: null,
5426
5426
  ariaRequired: Qe,
5427
5427
  ariaRoleDescription: Me,
5428
- ariaRowCount: z,
5429
- ariaRowIndex: z,
5430
- ariaRowSpan: z,
5428
+ ariaRowCount: V,
5429
+ ariaRowIndex: V,
5430
+ ariaRowSpan: V,
5431
5431
  ariaSelected: Qe,
5432
- ariaSetSize: z,
5432
+ ariaSetSize: V,
5433
5433
  ariaSort: null,
5434
- ariaValueMax: z,
5435
- ariaValueMin: z,
5436
- ariaValueNow: z,
5434
+ ariaValueMax: V,
5435
+ ariaValueMin: V,
5436
+ ariaValueNow: V,
5437
5437
  ariaValueText: null,
5438
5438
  role: null
5439
5439
  }
@@ -5471,13 +5471,13 @@ const Vu = Dn({
5471
5471
  checked: ge,
5472
5472
  cite: null,
5473
5473
  className: Me,
5474
- cols: z,
5474
+ cols: V,
5475
5475
  colSpan: null,
5476
5476
  content: null,
5477
5477
  contentEditable: Qe,
5478
5478
  controls: ge,
5479
5479
  controlsList: Me,
5480
- coords: z | vn,
5480
+ coords: V | vn,
5481
5481
  crossOrigin: null,
5482
5482
  data: null,
5483
5483
  dateTime: null,
@@ -5499,9 +5499,9 @@ const Vu = Dn({
5499
5499
  formNoValidate: ge,
5500
5500
  formTarget: null,
5501
5501
  headers: Me,
5502
- height: z,
5502
+ height: V,
5503
5503
  hidden: ge,
5504
- high: z,
5504
+ high: V,
5505
5505
  href: null,
5506
5506
  hrefLang: null,
5507
5507
  htmlFor: Me,
@@ -5526,14 +5526,14 @@ const Vu = Dn({
5526
5526
  list: null,
5527
5527
  loading: null,
5528
5528
  loop: ge,
5529
- low: z,
5529
+ low: V,
5530
5530
  manifest: null,
5531
5531
  max: null,
5532
- maxLength: z,
5532
+ maxLength: V,
5533
5533
  media: null,
5534
5534
  method: null,
5535
5535
  min: null,
5536
- minLength: z,
5536
+ minLength: V,
5537
5537
  multiple: ge,
5538
5538
  muted: ge,
5539
5539
  name: null,
@@ -5629,7 +5629,7 @@ const Vu = Dn({
5629
5629
  onWaiting: null,
5630
5630
  onWheel: null,
5631
5631
  open: ge,
5632
- optimum: z,
5632
+ optimum: V,
5633
5633
  pattern: null,
5634
5634
  ping: Me,
5635
5635
  placeholder: null,
@@ -5644,8 +5644,8 @@ const Vu = Dn({
5644
5644
  rel: Me,
5645
5645
  required: ge,
5646
5646
  reversed: ge,
5647
- rows: z,
5648
- rowSpan: z,
5647
+ rows: V,
5648
+ rowSpan: V,
5649
5649
  sandbox: Me,
5650
5650
  scope: null,
5651
5651
  scoped: ge,
@@ -5654,19 +5654,19 @@ const Vu = Dn({
5654
5654
  shadowRootDelegatesFocus: ge,
5655
5655
  shadowRootMode: null,
5656
5656
  shape: null,
5657
- size: z,
5657
+ size: V,
5658
5658
  sizes: null,
5659
5659
  slot: null,
5660
- span: z,
5660
+ span: V,
5661
5661
  spellCheck: Qe,
5662
5662
  src: null,
5663
5663
  srcDoc: null,
5664
5664
  srcLang: null,
5665
5665
  srcSet: null,
5666
- start: z,
5666
+ start: V,
5667
5667
  step: null,
5668
5668
  style: null,
5669
- tabIndex: z,
5669
+ tabIndex: V,
5670
5670
  target: null,
5671
5671
  title: null,
5672
5672
  translate: null,
@@ -5674,7 +5674,7 @@ const Vu = Dn({
5674
5674
  typeMustMatch: ge,
5675
5675
  useMap: null,
5676
5676
  value: Qe,
5677
- width: z,
5677
+ width: V,
5678
5678
  wrap: null,
5679
5679
  // Legacy.
5680
5680
  // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis
@@ -5690,11 +5690,11 @@ const Vu = Dn({
5690
5690
  // `<body>`. Use CSS `background-image` instead
5691
5691
  bgColor: null,
5692
5692
  // `<body>` and table elements. Use CSS `background-color` instead
5693
- border: z,
5693
+ border: V,
5694
5694
  // `<table>`. Use CSS `border-width` instead,
5695
5695
  borderColor: null,
5696
5696
  // `<table>`. Use CSS `border-color` instead,
5697
- bottomMargin: z,
5697
+ bottomMargin: V,
5698
5698
  // `<body>`
5699
5699
  cellPadding: null,
5700
5700
  // `<table>`
@@ -5728,9 +5728,9 @@ const Vu = Dn({
5728
5728
  // `<table>`
5729
5729
  frameBorder: null,
5730
5730
  // `<iframe>`. Use CSS `border` instead
5731
- hSpace: z,
5731
+ hSpace: V,
5732
5732
  // `<img>` and `<object>`
5733
- leftMargin: z,
5733
+ leftMargin: V,
5734
5734
  // `<body>`
5735
5735
  link: null,
5736
5736
  // `<body>`. Use CSS `a:link {color: *}` instead
@@ -5738,9 +5738,9 @@ const Vu = Dn({
5738
5738
  // `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
5739
5739
  lowSrc: null,
5740
5740
  // `<img>`. Use a `<picture>`
5741
- marginHeight: z,
5741
+ marginHeight: V,
5742
5742
  // `<body>`
5743
- marginWidth: z,
5743
+ marginWidth: V,
5744
5744
  // `<body>`
5745
5745
  noResize: ge,
5746
5746
  // `<frame>`
@@ -5758,7 +5758,7 @@ const Vu = Dn({
5758
5758
  // `<isindex>`
5759
5759
  rev: null,
5760
5760
  // `<link>`
5761
- rightMargin: z,
5761
+ rightMargin: V,
5762
5762
  // `<body>`
5763
5763
  rules: null,
5764
5764
  // `<table>`
@@ -5772,7 +5772,7 @@ const Vu = Dn({
5772
5772
  // `<table>`
5773
5773
  text: null,
5774
5774
  // `<body>`. Use CSS `color` instead
5775
- topMargin: z,
5775
+ topMargin: V,
5776
5776
  // `<body>`
5777
5777
  valueType: null,
5778
5778
  // `<param>`
@@ -5782,7 +5782,7 @@ const Vu = Dn({
5782
5782
  // Several. Use CSS `vertical-align` instead
5783
5783
  vLink: null,
5784
5784
  // `<body>`. Use CSS `a:visited {color}` instead
5785
- vSpace: z,
5785
+ vSpace: V,
5786
5786
  // `<img>` and `<object>`
5787
5787
  // Non-standard Properties.
5788
5788
  allowTransparency: null,
@@ -5792,7 +5792,7 @@ const Vu = Dn({
5792
5792
  disableRemotePlayback: ge,
5793
5793
  prefix: null,
5794
5794
  property: null,
5795
- results: z,
5795
+ results: V,
5796
5796
  security: null,
5797
5797
  unselectable: null
5798
5798
  }
@@ -5976,27 +5976,27 @@ const Vu = Dn({
5976
5976
  transform: Uu,
5977
5977
  properties: {
5978
5978
  about: ft,
5979
- accentHeight: z,
5979
+ accentHeight: V,
5980
5980
  accumulate: null,
5981
5981
  additive: null,
5982
5982
  alignmentBaseline: null,
5983
- alphabetic: z,
5984
- amplitude: z,
5983
+ alphabetic: V,
5984
+ amplitude: V,
5985
5985
  arabicForm: null,
5986
- ascent: z,
5986
+ ascent: V,
5987
5987
  attributeName: null,
5988
5988
  attributeType: null,
5989
- azimuth: z,
5989
+ azimuth: V,
5990
5990
  bandwidth: null,
5991
5991
  baselineShift: null,
5992
5992
  baseFrequency: null,
5993
5993
  baseProfile: null,
5994
5994
  bbox: null,
5995
5995
  begin: null,
5996
- bias: z,
5996
+ bias: V,
5997
5997
  by: null,
5998
5998
  calcMode: null,
5999
- capHeight: z,
5999
+ capHeight: V,
6000
6000
  className: Me,
6001
6001
  clip: null,
6002
6002
  clipPath: null,
@@ -6017,26 +6017,26 @@ const Vu = Dn({
6017
6017
  d: null,
6018
6018
  dataType: null,
6019
6019
  defaultAction: null,
6020
- descent: z,
6021
- diffuseConstant: z,
6020
+ descent: V,
6021
+ diffuseConstant: V,
6022
6022
  direction: null,
6023
6023
  display: null,
6024
6024
  dur: null,
6025
- divisor: z,
6025
+ divisor: V,
6026
6026
  dominantBaseline: null,
6027
6027
  download: ge,
6028
6028
  dx: null,
6029
6029
  dy: null,
6030
6030
  edgeMode: null,
6031
6031
  editable: null,
6032
- elevation: z,
6032
+ elevation: V,
6033
6033
  enableBackground: null,
6034
6034
  end: null,
6035
6035
  event: null,
6036
- exponent: z,
6036
+ exponent: V,
6037
6037
  externalResourcesRequired: null,
6038
6038
  fill: null,
6039
- fillOpacity: z,
6039
+ fillOpacity: V,
6040
6040
  fillRule: null,
6041
6041
  filter: null,
6042
6042
  filterRes: null,
@@ -6066,27 +6066,27 @@ const Vu = Dn({
6066
6066
  gradientTransform: null,
6067
6067
  gradientUnits: null,
6068
6068
  handler: null,
6069
- hanging: z,
6069
+ hanging: V,
6070
6070
  hatchContentUnits: null,
6071
6071
  hatchUnits: null,
6072
6072
  height: null,
6073
6073
  href: null,
6074
6074
  hrefLang: null,
6075
- horizAdvX: z,
6076
- horizOriginX: z,
6077
- horizOriginY: z,
6075
+ horizAdvX: V,
6076
+ horizOriginX: V,
6077
+ horizOriginY: V,
6078
6078
  id: null,
6079
- ideographic: z,
6079
+ ideographic: V,
6080
6080
  imageRendering: null,
6081
6081
  initialVisibility: null,
6082
6082
  in: null,
6083
6083
  in2: null,
6084
- intercept: z,
6085
- k: z,
6086
- k1: z,
6087
- k2: z,
6088
- k3: z,
6089
- k4: z,
6084
+ intercept: V,
6085
+ k: V,
6086
+ k1: V,
6087
+ k2: V,
6088
+ k3: V,
6089
+ k4: V,
6090
6090
  kernelMatrix: ft,
6091
6091
  kernelUnitLength: null,
6092
6092
  keyPoints: null,
@@ -6100,7 +6100,7 @@ const Vu = Dn({
6100
6100
  lengthAdjust: null,
6101
6101
  letterSpacing: null,
6102
6102
  lightingColor: null,
6103
- limitingConeAngle: z,
6103
+ limitingConeAngle: V,
6104
6104
  local: null,
6105
6105
  markerEnd: null,
6106
6106
  markerMid: null,
@@ -6116,7 +6116,7 @@ const Vu = Dn({
6116
6116
  media: null,
6117
6117
  mediaCharacterEncoding: null,
6118
6118
  mediaContentEncodings: null,
6119
- mediaSize: z,
6119
+ mediaSize: V,
6120
6120
  mediaTime: null,
6121
6121
  method: null,
6122
6122
  min: null,
@@ -6222,12 +6222,12 @@ const Vu = Dn({
6222
6222
  origin: null,
6223
6223
  overflow: null,
6224
6224
  overlay: null,
6225
- overlinePosition: z,
6226
- overlineThickness: z,
6225
+ overlinePosition: V,
6226
+ overlineThickness: V,
6227
6227
  paintOrder: null,
6228
6228
  panose1: null,
6229
6229
  path: null,
6230
- pathLength: z,
6230
+ pathLength: V,
6231
6231
  patternContentUnits: null,
6232
6232
  patternTransform: null,
6233
6233
  patternUnits: null,
@@ -6237,9 +6237,9 @@ const Vu = Dn({
6237
6237
  playbackOrder: null,
6238
6238
  pointerEvents: null,
6239
6239
  points: null,
6240
- pointsAtX: z,
6241
- pointsAtY: z,
6242
- pointsAtZ: z,
6240
+ pointsAtX: V,
6241
+ pointsAtY: V,
6242
+ pointsAtZ: V,
6243
6243
  preserveAlpha: null,
6244
6244
  preserveAspectRatio: null,
6245
6245
  primitiveUnits: null,
@@ -6271,8 +6271,8 @@ const Vu = Dn({
6271
6271
  side: null,
6272
6272
  slope: null,
6273
6273
  snapshotTime: null,
6274
- specularConstant: z,
6275
- specularExponent: z,
6274
+ specularConstant: V,
6275
+ specularExponent: V,
6276
6276
  spreadMethod: null,
6277
6277
  spacing: null,
6278
6278
  startOffset: null,
@@ -6282,30 +6282,30 @@ const Vu = Dn({
6282
6282
  stitchTiles: null,
6283
6283
  stopColor: null,
6284
6284
  stopOpacity: null,
6285
- strikethroughPosition: z,
6286
- strikethroughThickness: z,
6285
+ strikethroughPosition: V,
6286
+ strikethroughThickness: V,
6287
6287
  string: null,
6288
6288
  stroke: null,
6289
6289
  strokeDashArray: ft,
6290
6290
  strokeDashOffset: null,
6291
6291
  strokeLineCap: null,
6292
6292
  strokeLineJoin: null,
6293
- strokeMiterLimit: z,
6294
- strokeOpacity: z,
6293
+ strokeMiterLimit: V,
6294
+ strokeOpacity: V,
6295
6295
  strokeWidth: null,
6296
6296
  style: null,
6297
- surfaceScale: z,
6297
+ surfaceScale: V,
6298
6298
  syncBehavior: null,
6299
6299
  syncBehaviorDefault: null,
6300
6300
  syncMaster: null,
6301
6301
  syncTolerance: null,
6302
6302
  syncToleranceDefault: null,
6303
6303
  systemLanguage: ft,
6304
- tabIndex: z,
6304
+ tabIndex: V,
6305
6305
  tableValues: null,
6306
6306
  target: null,
6307
- targetX: z,
6308
- targetY: z,
6307
+ targetX: V,
6308
+ targetY: V,
6309
6309
  textAnchor: null,
6310
6310
  textDecoration: null,
6311
6311
  textRendering: null,
@@ -6320,22 +6320,22 @@ const Vu = Dn({
6320
6320
  transformOrigin: null,
6321
6321
  u1: null,
6322
6322
  u2: null,
6323
- underlinePosition: z,
6324
- underlineThickness: z,
6323
+ underlinePosition: V,
6324
+ underlineThickness: V,
6325
6325
  unicode: null,
6326
6326
  unicodeBidi: null,
6327
6327
  unicodeRange: null,
6328
- unitsPerEm: z,
6328
+ unitsPerEm: V,
6329
6329
  values: null,
6330
- vAlphabetic: z,
6331
- vMathematical: z,
6330
+ vAlphabetic: V,
6331
+ vMathematical: V,
6332
6332
  vectorEffect: null,
6333
- vHanging: z,
6334
- vIdeographic: z,
6333
+ vHanging: V,
6334
+ vIdeographic: V,
6335
6335
  version: null,
6336
- vertAdvY: z,
6337
- vertOriginX: z,
6338
- vertOriginY: z,
6336
+ vertAdvY: V,
6337
+ vertOriginX: V,
6338
+ vertOriginY: V,
6339
6339
  viewBox: null,
6340
6340
  viewTarget: null,
6341
6341
  visibility: null,
@@ -6347,7 +6347,7 @@ const Vu = Dn({
6347
6347
  x1: null,
6348
6348
  x2: null,
6349
6349
  xChannelSelector: null,
6350
- xHeight: z,
6350
+ xHeight: V,
6351
6351
  y: null,
6352
6352
  y1: null,
6353
6353
  y2: null,
@@ -6426,16 +6426,16 @@ function Gf() {
6426
6426
  var J = B.lastIndexOf(c);
6427
6427
  L = ~J ? B.length - J : L + B.length;
6428
6428
  }
6429
- function j() {
6429
+ function $() {
6430
6430
  var B = { line: v, column: L };
6431
6431
  return function(F) {
6432
- return F.position = new R(B), be(), F;
6432
+ return F.position = new I(B), be(), F;
6433
6433
  };
6434
6434
  }
6435
- function R(B) {
6435
+ function I(B) {
6436
6436
  this.start = B, this.end = { line: v, column: L }, this.source = O.source;
6437
6437
  }
6438
- R.prototype.content = S;
6438
+ I.prototype.content = S;
6439
6439
  function D(B) {
6440
6440
  var F = new Error(
6441
6441
  O.source + ":" + v + ":" + L + ": " + B
@@ -6459,7 +6459,7 @@ function Gf() {
6459
6459
  return B;
6460
6460
  }
6461
6461
  function q() {
6462
- var B = j();
6462
+ var B = $();
6463
6463
  if (!(l != S.charAt(0) || d != S.charAt(1))) {
6464
6464
  for (var F = 2; f != S.charAt(F) && (d != S.charAt(F) || l != S.charAt(F + 1)); )
6465
6465
  ++F;
@@ -6473,7 +6473,7 @@ function Gf() {
6473
6473
  }
6474
6474
  }
6475
6475
  function Te() {
6476
- var B = j(), F = re(r);
6476
+ var B = $(), F = re(r);
6477
6477
  if (F) {
6478
6478
  if (q(), !re(a)) return D("property missing ':'");
6479
6479
  var J = re(i), fe = B({
@@ -7677,12 +7677,12 @@ function Dh(e) {
7677
7677
  return u;
7678
7678
  function u(P) {
7679
7679
  if (r < n.length) {
7680
- const j = n[r];
7681
- return t.containerState = j[1], A(
7682
- j[0].continuation,
7680
+ const $ = n[r];
7681
+ return t.containerState = $[1], A(
7682
+ $[0].continuation,
7683
7683
  "expected `continuation` to be defined on container construct"
7684
7684
  ), e.attempt(
7685
- j[0].continuation,
7685
+ $[0].continuation,
7686
7686
  c,
7687
7687
  l
7688
7688
  )(P);
@@ -7695,22 +7695,22 @@ function Dh(e) {
7695
7695
  "expected `containerState` to be defined after continuation"
7696
7696
  ), r++, t.containerState._closeFlow) {
7697
7697
  t.containerState._closeFlow = void 0, a && L();
7698
- const j = t.events.length;
7699
- let R = j, D;
7700
- for (; R--; )
7701
- if (t.events[R][0] === "exit" && t.events[R][1].type === p.chunkFlow) {
7702
- D = t.events[R][1].end;
7698
+ const $ = t.events.length;
7699
+ let I = $, D;
7700
+ for (; I--; )
7701
+ if (t.events[I][0] === "exit" && t.events[I][1].type === p.chunkFlow) {
7702
+ D = t.events[I][1].end;
7703
7703
  break;
7704
7704
  }
7705
7705
  A(D, "could not find previous flow chunk"), v(r);
7706
- let re = j;
7706
+ let re = $;
7707
7707
  for (; re < t.events.length; )
7708
7708
  t.events[re][1].end = Object.assign({}, D), re++;
7709
7709
  return Ft(
7710
7710
  t.events,
7711
- R + 1,
7711
+ I + 1,
7712
7712
  0,
7713
- t.events.slice(j)
7713
+ t.events.slice($)
7714
7714
  ), t.events.length = re, l(P);
7715
7715
  }
7716
7716
  return u(P);
@@ -7769,10 +7769,10 @@ function Dh(e) {
7769
7769
  }
7770
7770
  return te(P) ? (e.consume(P), O(e.exit(p.chunkFlow)), r = 0, t.interrupt = void 0, u) : (e.consume(P), S);
7771
7771
  }
7772
- function O(P, j) {
7772
+ function O(P, $) {
7773
7773
  A(a, "expected `childFlow` to be defined when continuing");
7774
- const R = t.sliceStream(P);
7775
- if (j && R.push(null), P.previous = i, i && (i.next = P), i = P, a.defineSkip(P.start), a.write(R), t.parser.lazy[P.start.line]) {
7774
+ const I = t.sliceStream(P);
7775
+ if ($ && I.push(null), P.previous = i, i && (i.next = P), i = P, a.defineSkip(P.start), a.write(I), t.parser.lazy[P.start.line]) {
7776
7776
  let D = a.events.length;
7777
7777
  for (; D--; )
7778
7778
  if (
@@ -7803,13 +7803,13 @@ function Dh(e) {
7803
7803
  }
7804
7804
  }
7805
7805
  function v(P) {
7806
- let j = n.length;
7807
- for (; j-- > P; ) {
7808
- const R = n[j];
7809
- t.containerState = R[1], A(
7810
- R[0].exit,
7806
+ let $ = n.length;
7807
+ for (; $-- > P; ) {
7808
+ const I = n[$];
7809
+ t.containerState = I[1], A(
7810
+ I[0].exit,
7811
7811
  "expected `exit` to be defined on container construct"
7812
- ), R[0].exit.call(t, e);
7812
+ ), I[0].exit.call(t, e);
7813
7813
  }
7814
7814
  n.length = P;
7815
7815
  }
@@ -8068,7 +8068,7 @@ const zs = {
8068
8068
  concrete: !0
8069
8069
  };
8070
8070
  function Yh(e, t, n) {
8071
- const r = this, a = { tokenize: R, partial: !0 };
8071
+ const r = this, a = { tokenize: I, partial: !0 };
8072
8072
  let i = 0, s = 0, u;
8073
8073
  return c;
8074
8074
  function c(D) {
@@ -8086,7 +8086,7 @@ function Yh(e, t, n) {
8086
8086
  return D === u ? (s++, e.consume(D), d) : s < K.codeFencedSequenceSizeMin ? n(D) : (e.exit(p.codeFencedFenceSequence), we(D) ? Be(e, f, p.whitespace)(D) : f(D));
8087
8087
  }
8088
8088
  function f(D) {
8089
- return D === b.eof || te(D) ? (e.exit(p.codeFencedFence), r.interrupt ? t(D) : e.check(zs, S, j)(D)) : (e.enter(p.codeFencedFenceInfo), e.enter(p.chunkString, { contentType: K.contentTypeString }), h(D));
8089
+ return D === b.eof || te(D) ? (e.exit(p.codeFencedFence), r.interrupt ? t(D) : e.check(zs, S, $)(D)) : (e.enter(p.codeFencedFenceInfo), e.enter(p.chunkString, { contentType: K.contentTypeString }), h(D));
8090
8090
  }
8091
8091
  function h(D) {
8092
8092
  return D === b.eof || te(D) ? (e.exit(p.chunkString), e.exit(p.codeFencedFenceInfo), f(D)) : we(D) ? (e.exit(p.chunkString), e.exit(p.codeFencedFenceInfo), Be(e, m, p.whitespace)(D)) : D === b.graveAccent && D === u ? n(D) : (e.consume(D), h);
@@ -8098,7 +8098,7 @@ function Yh(e, t, n) {
8098
8098
  return D === b.eof || te(D) ? (e.exit(p.chunkString), e.exit(p.codeFencedFenceMeta), f(D)) : D === b.graveAccent && D === u ? n(D) : (e.consume(D), _);
8099
8099
  }
8100
8100
  function S(D) {
8101
- return A(te(D), "expected eol"), e.attempt(a, j, O)(D);
8101
+ return A(te(D), "expected eol"), e.attempt(a, $, O)(D);
8102
8102
  }
8103
8103
  function O(D) {
8104
8104
  return A(te(D), "expected eol"), e.enter(p.lineEnding), e.consume(D), e.exit(p.lineEnding), v;
@@ -8112,15 +8112,15 @@ function Yh(e, t, n) {
8112
8112
  )(D) : L(D);
8113
8113
  }
8114
8114
  function L(D) {
8115
- return D === b.eof || te(D) ? e.check(zs, S, j)(D) : (e.enter(p.codeFlowValue), P(D));
8115
+ return D === b.eof || te(D) ? e.check(zs, S, $)(D) : (e.enter(p.codeFlowValue), P(D));
8116
8116
  }
8117
8117
  function P(D) {
8118
8118
  return D === b.eof || te(D) ? (e.exit(p.codeFlowValue), L(D)) : (e.consume(D), P);
8119
8119
  }
8120
- function j(D) {
8120
+ function $(D) {
8121
8121
  return e.exit(p.codeFenced), t(D);
8122
8122
  }
8123
- function R(D, re, be) {
8123
+ function I(D, re, be) {
8124
8124
  let oe = 0;
8125
8125
  return q;
8126
8126
  function q(J) {
@@ -8668,13 +8668,13 @@ function T0(e, t, n) {
8668
8668
  return we(x) ? (e.consume(x), L) : q(x);
8669
8669
  }
8670
8670
  function P(x) {
8671
- return x === b.slash ? (e.consume(x), q) : x === b.colon || x === b.underscore || Mt(x) ? (e.consume(x), j) : we(x) ? (e.consume(x), P) : q(x);
8671
+ return x === b.slash ? (e.consume(x), q) : x === b.colon || x === b.underscore || Mt(x) ? (e.consume(x), $) : we(x) ? (e.consume(x), P) : q(x);
8672
8672
  }
8673
- function j(x) {
8674
- return x === b.dash || x === b.dot || x === b.colon || x === b.underscore || ht(x) ? (e.consume(x), j) : R(x);
8673
+ function $(x) {
8674
+ return x === b.dash || x === b.dot || x === b.colon || x === b.underscore || ht(x) ? (e.consume(x), $) : I(x);
8675
8675
  }
8676
- function R(x) {
8677
- return x === b.equalsTo ? (e.consume(x), D) : we(x) ? (e.consume(x), R) : P(x);
8676
+ function I(x) {
8677
+ return x === b.equalsTo ? (e.consume(x), D) : we(x) ? (e.consume(x), I) : P(x);
8678
8678
  }
8679
8679
  function D(x) {
8680
8680
  return x === b.eof || x === b.lessThan || x === b.equalsTo || x === b.greaterThan || x === b.graveAccent ? n(x) : x === b.quotationMark || x === b.apostrophe ? (e.consume(x), c = x, re) : we(x) ? (e.consume(x), D) : be(x);
@@ -8683,7 +8683,7 @@ function T0(e, t, n) {
8683
8683
  return x === c ? (e.consume(x), c = null, oe) : x === b.eof || te(x) ? n(x) : (e.consume(x), re);
8684
8684
  }
8685
8685
  function be(x) {
8686
- return x === b.eof || x === b.quotationMark || x === b.apostrophe || x === b.slash || x === b.lessThan || x === b.equalsTo || x === b.greaterThan || x === b.graveAccent || dt(x) ? R(x) : (e.consume(x), be);
8686
+ return x === b.eof || x === b.quotationMark || x === b.apostrophe || x === b.slash || x === b.lessThan || x === b.equalsTo || x === b.greaterThan || x === b.graveAccent || dt(x) ? I(x) : (e.consume(x), be);
8687
8687
  }
8688
8688
  function oe(x) {
8689
8689
  return x === b.slash || x === b.greaterThan || we(x) ? P(x) : n(x);
@@ -8765,7 +8765,7 @@ function A0(e, t, n) {
8765
8765
  return A(g === b.lessThan, "expected `<`"), e.enter(p.htmlText), e.enter(p.htmlTextData), e.consume(g), c;
8766
8766
  }
8767
8767
  function c(g) {
8768
- return g === b.exclamationMark ? (e.consume(g), l) : g === b.slash ? (e.consume(g), R) : g === b.questionMark ? (e.consume(g), P) : Mt(g) ? (e.consume(g), be) : n(g);
8768
+ return g === b.exclamationMark ? (e.consume(g), l) : g === b.slash ? (e.consume(g), I) : g === b.questionMark ? (e.consume(g), P) : Mt(g) ? (e.consume(g), be) : n(g);
8769
8769
  }
8770
8770
  function l(g) {
8771
8771
  return g === b.dash ? (e.consume(g), d) : g === b.leftSquareBracket ? (e.consume(g), i = 0, _) : Mt(g) ? (e.consume(g), L) : n(g);
@@ -8799,12 +8799,12 @@ function A0(e, t, n) {
8799
8799
  return g === b.eof || g === b.greaterThan ? fe(g) : te(g) ? (s = L, le(g)) : (e.consume(g), L);
8800
8800
  }
8801
8801
  function P(g) {
8802
- return g === b.eof ? n(g) : g === b.questionMark ? (e.consume(g), j) : te(g) ? (s = P, le(g)) : (e.consume(g), P);
8802
+ return g === b.eof ? n(g) : g === b.questionMark ? (e.consume(g), $) : te(g) ? (s = P, le(g)) : (e.consume(g), P);
8803
8803
  }
8804
- function j(g) {
8804
+ function $(g) {
8805
8805
  return g === b.greaterThan ? fe(g) : P(g);
8806
8806
  }
8807
- function R(g) {
8807
+ function I(g) {
8808
8808
  return Mt(g) ? (e.consume(g), D) : n(g);
8809
8809
  }
8810
8810
  function D(g) {
@@ -9495,17 +9495,17 @@ function tm() {
9495
9495
  function O(...v) {
9496
9496
  if (!O.enabled)
9497
9497
  return;
9498
- const L = O, P = Number(/* @__PURE__ */ new Date()), j = P - (h || P);
9499
- L.diff = j, L.prev = h, L.curr = P, h = P, v[0] = r.coerce(v[0]), typeof v[0] != "string" && v.unshift("%O");
9500
- let R = 0;
9498
+ const L = O, P = Number(/* @__PURE__ */ new Date()), $ = P - (h || P);
9499
+ L.diff = $, L.prev = h, L.curr = P, h = P, v[0] = r.coerce(v[0]), typeof v[0] != "string" && v.unshift("%O");
9500
+ let I = 0;
9501
9501
  v[0] = v[0].replace(/%([a-zA-Z%])/g, (re, be) => {
9502
9502
  if (re === "%%")
9503
9503
  return "%";
9504
- R++;
9504
+ I++;
9505
9505
  const oe = r.formatters[be];
9506
9506
  if (typeof oe == "function") {
9507
- const q = v[R];
9508
- re = oe.call(L, q), v.splice(R, 1), R--;
9507
+ const q = v[I];
9508
+ re = oe.call(L, q), v.splice(I, 1), I--;
9509
9509
  }
9510
9510
  return re;
9511
9511
  }), r.formatArgs.call(L, v), (L.log || r.log).apply(L, v);
@@ -9719,8 +9719,8 @@ function im(e, t, n) {
9719
9719
  const a = {}, i = [];
9720
9720
  let s = [], u = [], c = !0;
9721
9721
  const l = {
9722
- consume: j,
9723
- enter: R,
9722
+ consume: $,
9723
+ enter: I,
9724
9724
  exit: D,
9725
9725
  attempt: oe(re),
9726
9726
  check: oe(be),
@@ -9769,7 +9769,7 @@ function im(e, t, n) {
9769
9769
  function P(B) {
9770
9770
  A(c === !0, "expected character to be consumed"), c = void 0, rn("main: passing `%s` to %s", B, f && f.name), h = B, A(typeof f == "function", "expected state"), f = f(B);
9771
9771
  }
9772
- function j(B) {
9772
+ function $(B) {
9773
9773
  A(B === h, "expected given code to equal expected code"), rn("consume: `%s`", B), A(
9774
9774
  c === void 0,
9775
9775
  "expected code to not have been consumed: this might be because `return x(code)` instead of `return x` was used"
@@ -9778,7 +9778,7 @@ function im(e, t, n) {
9778
9778
  "expected last token to be open"
9779
9779
  ), te(B) ? (r.line++, r.column = 1, r.offset += B === b.carriageReturnLineFeed ? 2 : 1, ee(), rn("position: after eol: `%j`", r)) : B !== b.virtualSpace && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === s[r._index].length && (r._bufferIndex = -1, r._index++)), d.previous = B, c = !0;
9780
9780
  }
9781
- function R(B, F) {
9781
+ function I(B, F) {
9782
9782
  const J = F || {};
9783
9783
  return J.type = B, J.start = O(), A(typeof B == "string", "expected string type"), A(B.length > 0, "expected non-empty string"), rn("enter: `%s`", B), d.events.push(["enter", J, d]), u.push(J), J;
9784
9784
  }
@@ -9810,11 +9810,11 @@ function im(e, t, n) {
9810
9810
  function x(Q) {
9811
9811
  return ce;
9812
9812
  function ce(ue) {
9813
- const ke = ue !== null && Q[ue], $ = ue !== null && Q.null, Ue = [
9813
+ const ke = ue !== null && Q[ue], z = ue !== null && Q.null, Ue = [
9814
9814
  // To do: add more extension tests.
9815
9815
  /* c8 ignore next 2 */
9816
9816
  ...Array.isArray(ke) ? ke : ke ? [ke] : [],
9817
- ...Array.isArray($) ? $ : $ ? [$] : []
9817
+ ...Array.isArray(z) ? z : z ? [z] : []
9818
9818
  ];
9819
9819
  return Z(Ue)(ue);
9820
9820
  }
@@ -10087,7 +10087,7 @@ function _m(e) {
10087
10087
  codeTextData: oe,
10088
10088
  data: oe,
10089
10089
  codeFlowValue: oe,
10090
- definition: i($),
10090
+ definition: i(z),
10091
10091
  definitionDestinationString: s,
10092
10092
  definitionLabelString: s,
10093
10093
  definitionTitleString: s,
@@ -10116,7 +10116,7 @@ function _m(e) {
10116
10116
  },
10117
10117
  exit: {
10118
10118
  atxHeading: c(),
10119
- atxHeadingSequence: R,
10119
+ atxHeadingSequence: I,
10120
10120
  autolink: c(),
10121
10121
  autolinkEmail: Q,
10122
10122
  autolinkProtocol: ie,
@@ -10135,7 +10135,7 @@ function _m(e) {
10135
10135
  codeTextData: q,
10136
10136
  data: q,
10137
10137
  definition: c(),
10138
- definitionDestinationString: j,
10138
+ definitionDestinationString: $,
10139
10139
  definitionLabelString: L,
10140
10140
  definitionTitleString: P,
10141
10141
  emphasis: c(),
@@ -10168,10 +10168,10 @@ function _m(e) {
10168
10168
  cc(t, (e || {}).mdastExtensions || []);
10169
10169
  const n = {};
10170
10170
  return r;
10171
- function r(I) {
10172
- let w = { type: "root", children: [] };
10171
+ function r(w) {
10172
+ let R = { type: "root", children: [] };
10173
10173
  const G = {
10174
- stack: [w],
10174
+ stack: [R],
10175
10175
  tokenStack: [],
10176
10176
  config: t,
10177
10177
  enter: u,
@@ -10181,43 +10181,43 @@ function _m(e) {
10181
10181
  data: n
10182
10182
  }, me = [];
10183
10183
  let Se = -1;
10184
- for (; ++Se < I.length; )
10185
- if (I[Se][1].type === p.listOrdered || I[Se][1].type === p.listUnordered)
10186
- if (I[Se][0] === "enter")
10184
+ for (; ++Se < w.length; )
10185
+ if (w[Se][1].type === p.listOrdered || w[Se][1].type === p.listUnordered)
10186
+ if (w[Se][0] === "enter")
10187
10187
  me.push(Se);
10188
10188
  else {
10189
10189
  const nt = me.pop();
10190
- A(typeof nt == "number", "expected list ot be open"), Se = a(I, nt, Se);
10190
+ A(typeof nt == "number", "expected list ot be open"), Se = a(w, nt, Se);
10191
10191
  }
10192
- for (Se = -1; ++Se < I.length; ) {
10193
- const nt = t[I[Se][0]];
10194
- uc.call(nt, I[Se][1].type) && nt[I[Se][1].type].call(
10192
+ for (Se = -1; ++Se < w.length; ) {
10193
+ const nt = t[w[Se][0]];
10194
+ uc.call(nt, w[Se][1].type) && nt[w[Se][1].type].call(
10195
10195
  Object.assign(
10196
- { sliceSerialize: I[Se][2].sliceSerialize },
10196
+ { sliceSerialize: w[Se][2].sliceSerialize },
10197
10197
  G
10198
10198
  ),
10199
- I[Se][1]
10199
+ w[Se][1]
10200
10200
  );
10201
10201
  }
10202
10202
  if (G.tokenStack.length > 0) {
10203
10203
  const nt = G.tokenStack[G.tokenStack.length - 1];
10204
10204
  (nt[1] || Ks).call(G, void 0, nt[0]);
10205
10205
  }
10206
- for (w.position = {
10206
+ for (R.position = {
10207
10207
  start: $t(
10208
- I.length > 0 ? I[0][1].start : { line: 1, column: 1, offset: 0 }
10208
+ w.length > 0 ? w[0][1].start : { line: 1, column: 1, offset: 0 }
10209
10209
  ),
10210
10210
  end: $t(
10211
- I.length > 0 ? I[I.length - 2][1].end : { line: 1, column: 1, offset: 0 }
10211
+ w.length > 0 ? w[w.length - 2][1].end : { line: 1, column: 1, offset: 0 }
10212
10212
  )
10213
10213
  }, Se = -1; ++Se < t.transforms.length; )
10214
- w = t.transforms[Se](w) || w;
10215
- return w;
10214
+ R = t.transforms[Se](R) || R;
10215
+ return R;
10216
10216
  }
10217
- function a(I, w, G) {
10218
- let me = w - 1, Se = -1, nt = !1, _t, vt, Zt, en;
10217
+ function a(w, R, G) {
10218
+ let me = R - 1, Se = -1, nt = !1, _t, vt, Zt, en;
10219
10219
  for (; ++me <= G; ) {
10220
- const it = I[me];
10220
+ const it = w[me];
10221
10221
  switch (it[1].type) {
10222
10222
  case p.listUnordered:
10223
10223
  case p.listOrdered:
@@ -10242,16 +10242,16 @@ function _m(e) {
10242
10242
  if (_t) {
10243
10243
  let zt = me;
10244
10244
  for (vt = void 0; zt--; ) {
10245
- const Nt = I[zt];
10245
+ const Nt = w[zt];
10246
10246
  if (Nt[1].type === p.lineEnding || Nt[1].type === p.lineEndingBlank) {
10247
10247
  if (Nt[0] === "exit") continue;
10248
- vt && (I[vt][1].type = p.lineEndingBlank, nt = !0), Nt[1].type = p.lineEnding, vt = zt;
10248
+ vt && (w[vt][1].type = p.lineEndingBlank, nt = !0), Nt[1].type = p.lineEnding, vt = zt;
10249
10249
  } else if (!(Nt[1].type === p.linePrefix || Nt[1].type === p.blockQuotePrefix || Nt[1].type === p.blockQuotePrefixWhitespace || Nt[1].type === p.blockQuoteMarker || Nt[1].type === p.listItemIndent)) break;
10250
10250
  }
10251
10251
  Zt && (!vt || Zt < vt) && (_t._spread = !0), _t.end = Object.assign(
10252
10252
  {},
10253
- vt ? I[vt][1].start : it[1].end
10254
- ), I.splice(vt || me, 0, ["exit", _t, it[2]]), me++, G++;
10253
+ vt ? w[vt][1].start : it[1].end
10254
+ ), w.splice(vt || me, 0, ["exit", _t, it[2]]), me++, G++;
10255
10255
  }
10256
10256
  if (it[1].type === p.listItemPrefix) {
10257
10257
  const zt = {
@@ -10261,45 +10261,45 @@ function _m(e) {
10261
10261
  // @ts-expect-error: we’ll add `end` in a second.
10262
10262
  end: void 0
10263
10263
  };
10264
- _t = zt, I.splice(me, 0, ["enter", zt, it[2]]), me++, G++, Zt = void 0, en = !0;
10264
+ _t = zt, w.splice(me, 0, ["enter", zt, it[2]]), me++, G++, Zt = void 0, en = !0;
10265
10265
  }
10266
10266
  }
10267
10267
  }
10268
- return I[w][1]._spread = nt, G;
10268
+ return w[R][1]._spread = nt, G;
10269
10269
  }
10270
- function i(I, w) {
10270
+ function i(w, R) {
10271
10271
  return G;
10272
10272
  function G(me) {
10273
- u.call(this, I(me), me), w && w.call(this, me);
10273
+ u.call(this, w(me), me), R && R.call(this, me);
10274
10274
  }
10275
10275
  }
10276
10276
  function s() {
10277
10277
  this.stack.push({ type: "fragment", children: [] });
10278
10278
  }
10279
- function u(I, w, G) {
10279
+ function u(w, R, G) {
10280
10280
  const me = this.stack[this.stack.length - 1];
10281
- A(me, "expected `parent`"), A("children" in me, "expected `parent`"), me.children.push(I), this.stack.push(I), this.tokenStack.push([w, G]), I.position = {
10282
- start: $t(w.start),
10281
+ A(me, "expected `parent`"), A("children" in me, "expected `parent`"), me.children.push(w), this.stack.push(w), this.tokenStack.push([R, G]), w.position = {
10282
+ start: $t(R.start),
10283
10283
  // @ts-expect-error: `end` will be patched later.
10284
10284
  end: void 0
10285
10285
  };
10286
10286
  }
10287
- function c(I) {
10288
- return w;
10289
- function w(G) {
10290
- I && I.call(this, G), l.call(this, G);
10287
+ function c(w) {
10288
+ return R;
10289
+ function R(G) {
10290
+ w && w.call(this, G), l.call(this, G);
10291
10291
  }
10292
10292
  }
10293
- function l(I, w) {
10293
+ function l(w, R) {
10294
10294
  const G = this.stack.pop();
10295
10295
  A(G, "expected `node`");
10296
10296
  const me = this.tokenStack.pop();
10297
10297
  if (me)
10298
- me[0].type !== I.type && (w ? w.call(this, I, me[0]) : (me[1] || Ks).call(this, I, me[0]));
10298
+ me[0].type !== w.type && (R ? R.call(this, w, me[0]) : (me[1] || Ks).call(this, w, me[0]));
10299
10299
  else throw new Error(
10300
- "Cannot close `" + I.type + "` (" + Gn({ start: I.start, end: I.end }) + "): it’s not open"
10300
+ "Cannot close `" + w.type + "` (" + Gn({ start: w.start, end: w.end }) + "): it’s not open"
10301
10301
  );
10302
- A(G.type !== "fragment", "unexpected fragment `exit`ed"), A(G.position, "expected `position` to be defined"), G.position.end = $t(I.end);
10302
+ A(G.type !== "fragment", "unexpected fragment `exit`ed"), A(G.position, "expected `position` to be defined"), G.position.end = $t(w.end);
10303
10303
  }
10304
10304
  function d() {
10305
10305
  return xh(this.stack.pop());
@@ -10307,159 +10307,159 @@ function _m(e) {
10307
10307
  function f() {
10308
10308
  this.data.expectingFirstListItemValue = !0;
10309
10309
  }
10310
- function h(I) {
10310
+ function h(w) {
10311
10311
  if (this.data.expectingFirstListItemValue) {
10312
- const w = this.stack[this.stack.length - 2];
10313
- A(w, "expected nodes on stack"), A(w.type === "list", "expected list on stack"), w.start = Number.parseInt(
10314
- this.sliceSerialize(I),
10312
+ const R = this.stack[this.stack.length - 2];
10313
+ A(R, "expected nodes on stack"), A(R.type === "list", "expected list on stack"), R.start = Number.parseInt(
10314
+ this.sliceSerialize(w),
10315
10315
  K.numericBaseDecimal
10316
10316
  ), this.data.expectingFirstListItemValue = void 0;
10317
10317
  }
10318
10318
  }
10319
10319
  function m() {
10320
- const I = this.resume(), w = this.stack[this.stack.length - 1];
10321
- A(w, "expected node on stack"), A(w.type === "code", "expected code on stack"), w.lang = I;
10320
+ const w = this.resume(), R = this.stack[this.stack.length - 1];
10321
+ A(R, "expected node on stack"), A(R.type === "code", "expected code on stack"), R.lang = w;
10322
10322
  }
10323
10323
  function _() {
10324
- const I = this.resume(), w = this.stack[this.stack.length - 1];
10325
- A(w, "expected node on stack"), A(w.type === "code", "expected code on stack"), w.meta = I;
10324
+ const w = this.resume(), R = this.stack[this.stack.length - 1];
10325
+ A(R, "expected node on stack"), A(R.type === "code", "expected code on stack"), R.meta = w;
10326
10326
  }
10327
10327
  function S() {
10328
10328
  this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
10329
10329
  }
10330
10330
  function O() {
10331
- const I = this.resume(), w = this.stack[this.stack.length - 1];
10332
- A(w, "expected node on stack"), A(w.type === "code", "expected code on stack"), w.value = I.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
10331
+ const w = this.resume(), R = this.stack[this.stack.length - 1];
10332
+ A(R, "expected node on stack"), A(R.type === "code", "expected code on stack"), R.value = w.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
10333
10333
  }
10334
10334
  function v() {
10335
- const I = this.resume(), w = this.stack[this.stack.length - 1];
10336
- A(w, "expected node on stack"), A(w.type === "code", "expected code on stack"), w.value = I.replace(/(\r?\n|\r)$/g, "");
10335
+ const w = this.resume(), R = this.stack[this.stack.length - 1];
10336
+ A(R, "expected node on stack"), A(R.type === "code", "expected code on stack"), R.value = w.replace(/(\r?\n|\r)$/g, "");
10337
10337
  }
10338
- function L(I) {
10339
- const w = this.resume(), G = this.stack[this.stack.length - 1];
10340
- A(G, "expected node on stack"), A(G.type === "definition", "expected definition on stack"), G.label = w, G.identifier = Nn(
10341
- this.sliceSerialize(I)
10338
+ function L(w) {
10339
+ const R = this.resume(), G = this.stack[this.stack.length - 1];
10340
+ A(G, "expected node on stack"), A(G.type === "definition", "expected definition on stack"), G.label = R, G.identifier = Nn(
10341
+ this.sliceSerialize(w)
10342
10342
  ).toLowerCase();
10343
10343
  }
10344
10344
  function P() {
10345
- const I = this.resume(), w = this.stack[this.stack.length - 1];
10346
- A(w, "expected node on stack"), A(w.type === "definition", "expected definition on stack"), w.title = I;
10345
+ const w = this.resume(), R = this.stack[this.stack.length - 1];
10346
+ A(R, "expected node on stack"), A(R.type === "definition", "expected definition on stack"), R.title = w;
10347
10347
  }
10348
- function j() {
10349
- const I = this.resume(), w = this.stack[this.stack.length - 1];
10350
- A(w, "expected node on stack"), A(w.type === "definition", "expected definition on stack"), w.url = I;
10348
+ function $() {
10349
+ const w = this.resume(), R = this.stack[this.stack.length - 1];
10350
+ A(R, "expected node on stack"), A(R.type === "definition", "expected definition on stack"), R.url = w;
10351
10351
  }
10352
- function R(I) {
10353
- const w = this.stack[this.stack.length - 1];
10354
- if (A(w, "expected node on stack"), A(w.type === "heading", "expected heading on stack"), !w.depth) {
10355
- const G = this.sliceSerialize(I).length;
10352
+ function I(w) {
10353
+ const R = this.stack[this.stack.length - 1];
10354
+ if (A(R, "expected node on stack"), A(R.type === "heading", "expected heading on stack"), !R.depth) {
10355
+ const G = this.sliceSerialize(w).length;
10356
10356
  A(
10357
10357
  G === 1 || G === 2 || G === 3 || G === 4 || G === 5 || G === 6,
10358
10358
  "expected `depth` between `1` and `6`"
10359
- ), w.depth = G;
10359
+ ), R.depth = G;
10360
10360
  }
10361
10361
  }
10362
10362
  function D() {
10363
10363
  this.data.setextHeadingSlurpLineEnding = !0;
10364
10364
  }
10365
- function re(I) {
10366
- const w = this.stack[this.stack.length - 1];
10367
- A(w, "expected node on stack"), A(w.type === "heading", "expected heading on stack"), w.depth = this.sliceSerialize(I).codePointAt(0) === b.equalsTo ? 1 : 2;
10365
+ function re(w) {
10366
+ const R = this.stack[this.stack.length - 1];
10367
+ A(R, "expected node on stack"), A(R.type === "heading", "expected heading on stack"), R.depth = this.sliceSerialize(w).codePointAt(0) === b.equalsTo ? 1 : 2;
10368
10368
  }
10369
10369
  function be() {
10370
10370
  this.data.setextHeadingSlurpLineEnding = void 0;
10371
10371
  }
10372
- function oe(I) {
10373
- const w = this.stack[this.stack.length - 1];
10374
- A(w, "expected node on stack"), A("children" in w, "expected parent on stack");
10375
- const G = w.children;
10372
+ function oe(w) {
10373
+ const R = this.stack[this.stack.length - 1];
10374
+ A(R, "expected node on stack"), A("children" in R, "expected parent on stack");
10375
+ const G = R.children;
10376
10376
  let me = G[G.length - 1];
10377
10377
  (!me || me.type !== "text") && (me = Ie(), me.position = {
10378
- start: $t(I.start),
10378
+ start: $t(w.start),
10379
10379
  // @ts-expect-error: we’ll add `end` later.
10380
10380
  end: void 0
10381
10381
  }, G.push(me)), this.stack.push(me);
10382
10382
  }
10383
- function q(I) {
10384
- const w = this.stack.pop();
10385
- A(w, "expected a `node` to be on the stack"), A("value" in w, "expected a `literal` to be on the stack"), A(w.position, "expected `node` to have an open position"), w.value += this.sliceSerialize(I), w.position.end = $t(I.end);
10383
+ function q(w) {
10384
+ const R = this.stack.pop();
10385
+ A(R, "expected a `node` to be on the stack"), A("value" in R, "expected a `literal` to be on the stack"), A(R.position, "expected `node` to have an open position"), R.value += this.sliceSerialize(w), R.position.end = $t(w.end);
10386
10386
  }
10387
- function Te(I) {
10388
- const w = this.stack[this.stack.length - 1];
10389
- if (A(w, "expected `node`"), this.data.atHardBreak) {
10390
- A("children" in w, "expected `parent`");
10391
- const G = w.children[w.children.length - 1];
10392
- A(G.position, "expected tail to have a starting position"), G.position.end = $t(I.end), this.data.atHardBreak = void 0;
10387
+ function Te(w) {
10388
+ const R = this.stack[this.stack.length - 1];
10389
+ if (A(R, "expected `node`"), this.data.atHardBreak) {
10390
+ A("children" in R, "expected `parent`");
10391
+ const G = R.children[R.children.length - 1];
10392
+ A(G.position, "expected tail to have a starting position"), G.position.end = $t(w.end), this.data.atHardBreak = void 0;
10393
10393
  return;
10394
10394
  }
10395
- !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(w.type) && (oe.call(this, I), q.call(this, I));
10395
+ !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(R.type) && (oe.call(this, w), q.call(this, w));
10396
10396
  }
10397
10397
  function ee() {
10398
10398
  this.data.atHardBreak = !0;
10399
10399
  }
10400
10400
  function B() {
10401
- const I = this.resume(), w = this.stack[this.stack.length - 1];
10402
- A(w, "expected node on stack"), A(w.type === "html", "expected html on stack"), w.value = I;
10401
+ const w = this.resume(), R = this.stack[this.stack.length - 1];
10402
+ A(R, "expected node on stack"), A(R.type === "html", "expected html on stack"), R.value = w;
10403
10403
  }
10404
10404
  function F() {
10405
- const I = this.resume(), w = this.stack[this.stack.length - 1];
10406
- A(w, "expected node on stack"), A(w.type === "html", "expected html on stack"), w.value = I;
10405
+ const w = this.resume(), R = this.stack[this.stack.length - 1];
10406
+ A(R, "expected node on stack"), A(R.type === "html", "expected html on stack"), R.value = w;
10407
10407
  }
10408
10408
  function J() {
10409
- const I = this.resume(), w = this.stack[this.stack.length - 1];
10410
- A(w, "expected node on stack"), A(w.type === "inlineCode", "expected inline code on stack"), w.value = I;
10409
+ const w = this.resume(), R = this.stack[this.stack.length - 1];
10410
+ A(R, "expected node on stack"), A(R.type === "inlineCode", "expected inline code on stack"), R.value = w;
10411
10411
  }
10412
10412
  function fe() {
10413
- const I = this.stack[this.stack.length - 1];
10414
- if (A(I, "expected node on stack"), A(I.type === "link", "expected link on stack"), this.data.inReference) {
10415
- const w = this.data.referenceType || "shortcut";
10416
- I.type += "Reference", I.referenceType = w, delete I.url, delete I.title;
10413
+ const w = this.stack[this.stack.length - 1];
10414
+ if (A(w, "expected node on stack"), A(w.type === "link", "expected link on stack"), this.data.inReference) {
10415
+ const R = this.data.referenceType || "shortcut";
10416
+ w.type += "Reference", w.referenceType = R, delete w.url, delete w.title;
10417
10417
  } else
10418
- delete I.identifier, delete I.label;
10418
+ delete w.identifier, delete w.label;
10419
10419
  this.data.referenceType = void 0;
10420
10420
  }
10421
10421
  function le() {
10422
- const I = this.stack[this.stack.length - 1];
10423
- if (A(I, "expected node on stack"), A(I.type === "image", "expected image on stack"), this.data.inReference) {
10424
- const w = this.data.referenceType || "shortcut";
10425
- I.type += "Reference", I.referenceType = w, delete I.url, delete I.title;
10422
+ const w = this.stack[this.stack.length - 1];
10423
+ if (A(w, "expected node on stack"), A(w.type === "image", "expected image on stack"), this.data.inReference) {
10424
+ const R = this.data.referenceType || "shortcut";
10425
+ w.type += "Reference", w.referenceType = R, delete w.url, delete w.title;
10426
10426
  } else
10427
- delete I.identifier, delete I.label;
10427
+ delete w.identifier, delete w.label;
10428
10428
  this.data.referenceType = void 0;
10429
10429
  }
10430
- function ye(I) {
10431
- const w = this.sliceSerialize(I), G = this.stack[this.stack.length - 2];
10430
+ function ye(w) {
10431
+ const R = this.sliceSerialize(w), G = this.stack[this.stack.length - 2];
10432
10432
  A(G, "expected ancestor on stack"), A(
10433
10433
  G.type === "image" || G.type === "link",
10434
10434
  "expected image or link on stack"
10435
- ), G.label = Cm(w), G.identifier = Nn(w).toLowerCase();
10435
+ ), G.label = Cm(R), G.identifier = Nn(R).toLowerCase();
10436
10436
  }
10437
10437
  function He() {
10438
- const I = this.stack[this.stack.length - 1];
10439
- A(I, "expected node on stack"), A(I.type === "fragment", "expected fragment on stack");
10440
- const w = this.resume(), G = this.stack[this.stack.length - 1];
10438
+ const w = this.stack[this.stack.length - 1];
10439
+ A(w, "expected node on stack"), A(w.type === "fragment", "expected fragment on stack");
10440
+ const R = this.resume(), G = this.stack[this.stack.length - 1];
10441
10441
  if (A(G, "expected node on stack"), A(
10442
10442
  G.type === "image" || G.type === "link",
10443
10443
  "expected image or link on stack"
10444
10444
  ), this.data.inReference = !0, G.type === "link") {
10445
- const me = I.children;
10445
+ const me = w.children;
10446
10446
  G.children = me;
10447
10447
  } else
10448
- G.alt = w;
10448
+ G.alt = R;
10449
10449
  }
10450
10450
  function g() {
10451
- const I = this.resume(), w = this.stack[this.stack.length - 1];
10452
- A(w, "expected node on stack"), A(
10453
- w.type === "image" || w.type === "link",
10451
+ const w = this.resume(), R = this.stack[this.stack.length - 1];
10452
+ A(R, "expected node on stack"), A(
10453
+ R.type === "image" || R.type === "link",
10454
10454
  "expected image or link on stack"
10455
- ), w.url = I;
10455
+ ), R.url = w;
10456
10456
  }
10457
10457
  function Y() {
10458
- const I = this.resume(), w = this.stack[this.stack.length - 1];
10459
- A(w, "expected node on stack"), A(
10460
- w.type === "image" || w.type === "link",
10458
+ const w = this.resume(), R = this.stack[this.stack.length - 1];
10459
+ A(R, "expected node on stack"), A(
10460
+ R.type === "image" || R.type === "link",
10461
10461
  "expected image or link on stack"
10462
- ), w.title = I;
10462
+ ), R.title = w;
10463
10463
  }
10464
10464
  function W() {
10465
10465
  this.data.inReference = void 0;
@@ -10467,44 +10467,44 @@ function _m(e) {
10467
10467
  function x() {
10468
10468
  this.data.referenceType = "collapsed";
10469
10469
  }
10470
- function Z(I) {
10471
- const w = this.resume(), G = this.stack[this.stack.length - 1];
10470
+ function Z(w) {
10471
+ const R = this.resume(), G = this.stack[this.stack.length - 1];
10472
10472
  A(G, "expected node on stack"), A(
10473
10473
  G.type === "image" || G.type === "link",
10474
10474
  "expected image reference or link reference on stack"
10475
- ), G.label = w, G.identifier = Nn(
10476
- this.sliceSerialize(I)
10475
+ ), G.label = R, G.identifier = Nn(
10476
+ this.sliceSerialize(w)
10477
10477
  ).toLowerCase(), this.data.referenceType = "full";
10478
10478
  }
10479
- function ae(I) {
10479
+ function ae(w) {
10480
10480
  A(
10481
- I.type === "characterReferenceMarkerNumeric" || I.type === "characterReferenceMarkerHexadecimal"
10482
- ), this.data.characterReferenceType = I.type;
10481
+ w.type === "characterReferenceMarkerNumeric" || w.type === "characterReferenceMarkerHexadecimal"
10482
+ ), this.data.characterReferenceType = w.type;
10483
10483
  }
10484
- function se(I) {
10485
- const w = this.sliceSerialize(I), G = this.data.characterReferenceType;
10484
+ function se(w) {
10485
+ const R = this.sliceSerialize(w), G = this.data.characterReferenceType;
10486
10486
  let me;
10487
10487
  if (G)
10488
10488
  me = Ku(
10489
- w,
10489
+ R,
10490
10490
  G === p.characterReferenceMarkerNumeric ? K.numericBaseDecimal : K.numericBaseHexadecimal
10491
10491
  ), this.data.characterReferenceType = void 0;
10492
10492
  else {
10493
- const nt = Oi(w);
10493
+ const nt = Oi(R);
10494
10494
  A(nt !== !1, "expected reference to decode"), me = nt;
10495
10495
  }
10496
10496
  const Se = this.stack.pop();
10497
- A(Se, "expected `node`"), A(Se.position, "expected `node.position`"), A("value" in Se, "expected `node.value`"), Se.value += me, Se.position.end = $t(I.end);
10497
+ A(Se, "expected `node`"), A(Se.position, "expected `node.position`"), A("value" in Se, "expected `node.value`"), Se.value += me, Se.position.end = $t(w.end);
10498
10498
  }
10499
- function ie(I) {
10500
- q.call(this, I);
10501
- const w = this.stack[this.stack.length - 1];
10502
- A(w, "expected node on stack"), A(w.type === "link", "expected link on stack"), w.url = this.sliceSerialize(I);
10499
+ function ie(w) {
10500
+ q.call(this, w);
10501
+ const R = this.stack[this.stack.length - 1];
10502
+ A(R, "expected node on stack"), A(R.type === "link", "expected link on stack"), R.url = this.sliceSerialize(w);
10503
10503
  }
10504
- function Q(I) {
10505
- q.call(this, I);
10506
- const w = this.stack[this.stack.length - 1];
10507
- A(w, "expected node on stack"), A(w.type === "link", "expected link on stack"), w.url = "mailto:" + this.sliceSerialize(I);
10504
+ function Q(w) {
10505
+ q.call(this, w);
10506
+ const R = this.stack[this.stack.length - 1];
10507
+ A(R, "expected node on stack"), A(R.type === "link", "expected link on stack"), R.url = "mailto:" + this.sliceSerialize(w);
10508
10508
  }
10509
10509
  function ce() {
10510
10510
  return { type: "blockquote", children: [] };
@@ -10515,7 +10515,7 @@ function _m(e) {
10515
10515
  function ke() {
10516
10516
  return { type: "inlineCode", value: "" };
10517
10517
  }
10518
- function $() {
10518
+ function z() {
10519
10519
  return {
10520
10520
  type: "definition",
10521
10521
  identifier: "",
@@ -10547,19 +10547,19 @@ function _m(e) {
10547
10547
  function wt() {
10548
10548
  return { type: "link", title: null, url: "", children: [] };
10549
10549
  }
10550
- function pt(I) {
10550
+ function pt(w) {
10551
10551
  return {
10552
10552
  type: "list",
10553
- ordered: I.type === "listOrdered",
10553
+ ordered: w.type === "listOrdered",
10554
10554
  start: null,
10555
- spread: I._spread,
10555
+ spread: w._spread,
10556
10556
  children: []
10557
10557
  };
10558
10558
  }
10559
- function he(I) {
10559
+ function he(w) {
10560
10560
  return {
10561
10561
  type: "listItem",
10562
- spread: I._spread,
10562
+ spread: w._spread,
10563
10563
  checked: null,
10564
10564
  children: []
10565
10565
  };
@@ -12740,21 +12740,21 @@ function Ec(e) {
12740
12740
  passKeys: !0,
12741
12741
  passNode: !0
12742
12742
  });
12743
- function v(L, P, j) {
12744
- if (L.type === "raw" && j && typeof P == "number")
12745
- return d ? j.children.splice(P, 1) : j.children[P] = { type: "text", value: L.value }, P;
12743
+ function v(L, P, $) {
12744
+ if (L.type === "raw" && $ && typeof P == "number")
12745
+ return d ? $.children.splice(P, 1) : $.children[P] = { type: "text", value: L.value }, P;
12746
12746
  if (L.type === "element") {
12747
- let R;
12748
- for (R in xa)
12749
- if (Object.hasOwn(xa, R) && Object.hasOwn(L.properties, R)) {
12750
- const D = L.properties[R], re = xa[R];
12751
- (re === null || re.includes(L.tagName)) && (L.properties[R] = h(String(D || ""), R, L));
12747
+ let I;
12748
+ for (I in xa)
12749
+ if (Object.hasOwn(xa, I) && Object.hasOwn(L.properties, I)) {
12750
+ const D = L.properties[I], re = xa[I];
12751
+ (re === null || re.includes(L.tagName)) && (L.properties[I] = h(String(D || ""), I, L));
12752
12752
  }
12753
12753
  }
12754
12754
  if (L.type === "element") {
12755
- let R = t ? !t.includes(L.tagName) : s ? s.includes(L.tagName) : !1;
12756
- if (!R && n && typeof P == "number" && (R = !n(L, P, j)), R && j && typeof P == "number")
12757
- return f && L.children ? j.children.splice(P, 1, ...L.children) : j.children.splice(P, 1), P;
12755
+ let I = t ? !t.includes(L.tagName) : s ? s.includes(L.tagName) : !1;
12756
+ if (!I && n && typeof P == "number" && (I = !n(L, P, $)), I && $ && typeof P == "number")
12757
+ return f && L.children ? $.children.splice(P, 1, ...L.children) : $.children.splice(P, 1), P;
12758
12758
  }
12759
12759
  }
12760
12760
  }
@@ -20190,13 +20190,13 @@ function hT(e) {
20190
20190
  let O = _n(() => jo(_ ? [] : f), [
20191
20191
  _,
20192
20192
  f
20193
- ]), v = Fe(Vn), [L, P] = Oe(Vn), j = Fe(Vn), R = () => {
20193
+ ]), v = Fe(Vn), [L, P] = Oe(Vn), $ = Fe(Vn), I = () => {
20194
20194
  if (!D) return;
20195
20195
  re(!1);
20196
20196
  let q = l || i || v.current;
20197
- Ba(q, j.current) || (j.current = q, P(q));
20197
+ Ba(q, $.current) || ($.current = q, P(q));
20198
20198
  }, [D, re] = Oe(!1);
20199
- return Ye(R), {
20199
+ return Ye(I), {
20200
20200
  realtimeValidation: c || O || l || i || Vn,
20201
20201
  displayValidation: u === "native" ? c || O || L : c || O || l || i || L,
20202
20202
  updateValidation(q) {
@@ -20204,7 +20204,7 @@ function hT(e) {
20204
20204
  },
20205
20205
  resetValidation() {
20206
20206
  let q = Vn;
20207
- Ba(q, j.current) || (j.current = q, P(q)), u === "native" && re(!1), S(!0);
20207
+ Ba(q, $.current) || ($.current = q, P(q)), u === "native" && re(!1), S(!0);
20208
20208
  },
20209
20209
  commitValidation() {
20210
20210
  u === "native" && re(!0), S(!0);
@@ -20292,15 +20292,15 @@ function gT(e, t) {
20292
20292
  }), P = DE(e, {
20293
20293
  labelable: !0
20294
20294
  });
20295
- const j = {
20295
+ const $ = {
20296
20296
  type: s,
20297
20297
  pattern: e.pattern
20298
20298
  };
20299
20299
  return YE(t, c, l), oT(e, f, t), Ye(() => {
20300
20300
  if (t.current instanceof Vr(t.current).HTMLTextAreaElement) {
20301
- let R = t.current;
20302
- Object.defineProperty(R, "defaultValue", {
20303
- get: () => R.value,
20301
+ let I = t.current;
20302
+ Object.defineProperty(I, "defaultValue", {
20303
+ get: () => I.value,
20304
20304
  set: () => {
20305
20305
  },
20306
20306
  configurable: !0
@@ -20310,7 +20310,7 @@ function gT(e, t) {
20310
20310
  t
20311
20311
  ]), {
20312
20312
  labelProps: S,
20313
- inputProps: zr(P, n === "input" && j, {
20313
+ inputProps: zr(P, n === "input" && $, {
20314
20314
  disabled: r,
20315
20315
  readOnly: i,
20316
20316
  required: a && u === "native",
@@ -20321,7 +20321,7 @@ function gT(e, t) {
20321
20321
  "aria-autocomplete": e["aria-autocomplete"],
20322
20322
  "aria-haspopup": e["aria-haspopup"],
20323
20323
  value: c,
20324
- onChange: (R) => l(R.target.value),
20324
+ onChange: (I) => l(I.target.value),
20325
20325
  autoComplete: e.autoComplete,
20326
20326
  autoCapitalize: e.autoCapitalize,
20327
20327
  maxLength: e.maxLength,
@@ -20357,8 +20357,8 @@ const ET = (e) => e.charCodeAt(e.length - 1) === 10, TT = (e) => {
20357
20357
  h.current && (h.current.style.height = h.current.scrollHeight + "px");
20358
20358
  }, a = () => {
20359
20359
  h.current && (h.current.style.height = "48px");
20360
- }, i = (j) => {
20361
- n(j);
20360
+ }, i = (I) => {
20361
+ n(I);
20362
20362
  };
20363
20363
  Ye(r, [t]);
20364
20364
  let {
@@ -20375,17 +20375,26 @@ const ET = (e) => e.charCodeAt(e.length - 1) === 10, TT = (e) => {
20375
20375
  },
20376
20376
  h
20377
20377
  );
20378
- const S = (j) => {
20379
- ET(j.target.value) || i(j.target.value);
20380
- }, O = (j) => {
20381
- (j.code === "Enter" || j.code === "NumpadEnter") && (j.shiftKey ? i(t + `
20382
- `) : L());
20378
+ const S = (I) => {
20379
+ ET(I.target.value) || i(I.target.value);
20380
+ }, O = (I) => {
20381
+ if (I.key === "Enter" || I.code === "Enter" || I.keyCode === 13 || I.code === "NumpadEnter") {
20382
+ if (I.shiftKey)
20383
+ i(t + `
20384
+ `);
20385
+ else if (!I.shiftKey) {
20386
+ I.preventDefault(), I.stopPropagation(), l || P();
20387
+ return;
20388
+ }
20389
+ }
20390
+ }, v = (I) => {
20391
+ (I.key === "Enter" || I.code === "Enter" || I.keyCode === 13 || I.code === "NumpadEnter") && (I.preventDefault(), I.stopPropagation());
20383
20392
  };
20384
- let v = e.isDisabled;
20385
- e.shouldDisableIfInputIsEmpty && (v = e.isDisabled || t.length === 0);
20386
- const L = () => {
20393
+ let L = e.isDisabled;
20394
+ e.shouldDisableIfInputIsEmpty && (L = e.isDisabled || t.length === 0);
20395
+ const P = () => {
20387
20396
  a(), c && c(t), i("");
20388
- }, P = () => {
20397
+ }, $ = () => {
20389
20398
  f && f();
20390
20399
  };
20391
20400
  return /* @__PURE__ */ M.jsxDEV(
@@ -20397,7 +20406,7 @@ const ET = (e) => e.charCodeAt(e.length - 1) === 10, TT = (e) => {
20397
20406
  /* @__PURE__ */ M.jsxDEV("div", { style: { display: "flex", flexDirection: "column" }, children: [
20398
20407
  /* @__PURE__ */ M.jsxDEV("label", { ...m, className: e.classNameLabel, children: s }, void 0, !1, {
20399
20408
  fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/Textarea.tsx",
20400
- lineNumber: 111,
20409
+ lineNumber: 131,
20401
20410
  columnNumber: 9
20402
20411
  }, void 0),
20403
20412
  /* @__PURE__ */ M.jsxDEV(
@@ -20417,48 +20426,49 @@ const ET = (e) => e.charCodeAt(e.length - 1) === 10, TT = (e) => {
20417
20426
  width: "calc(100% - 30px)",
20418
20427
  resize: "none"
20419
20428
  },
20420
- onKeyDown: O
20429
+ onKeyDown: O,
20430
+ onKeyUp: v
20421
20431
  },
20422
20432
  void 0,
20423
20433
  !1,
20424
20434
  {
20425
20435
  fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/Textarea.tsx",
20426
- lineNumber: 114,
20436
+ lineNumber: 134,
20427
20437
  columnNumber: 9
20428
20438
  },
20429
20439
  void 0
20430
20440
  )
20431
20441
  ] }, void 0, !0, {
20432
20442
  fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/Textarea.tsx",
20433
- lineNumber: 110,
20443
+ lineNumber: 130,
20434
20444
  columnNumber: 7
20435
20445
  }, void 0),
20436
20446
  !l && u && /* @__PURE__ */ M.jsxDEV("div", { className: "relative", children: /* @__PURE__ */ M.jsxDEV(
20437
20447
  u,
20438
20448
  {
20439
- onSubmitButton: L,
20440
- isDisabled: v
20449
+ onSubmitButton: P,
20450
+ isDisabled: L
20441
20451
  },
20442
20452
  void 0,
20443
20453
  !1,
20444
20454
  {
20445
20455
  fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/Textarea.tsx",
20446
- lineNumber: 134,
20456
+ lineNumber: 155,
20447
20457
  columnNumber: 11
20448
20458
  },
20449
20459
  void 0
20450
20460
  ) }, void 0, !1, {
20451
20461
  fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/Textarea.tsx",
20452
- lineNumber: 133,
20462
+ lineNumber: 154,
20453
20463
  columnNumber: 9
20454
20464
  }, void 0),
20455
- l && d && /* @__PURE__ */ M.jsxDEV("div", { className: "relative", children: /* @__PURE__ */ M.jsxDEV(d, { onPressLoadingButton: P }, void 0, !1, {
20465
+ l && d && /* @__PURE__ */ M.jsxDEV("div", { className: "relative", children: /* @__PURE__ */ M.jsxDEV(d, { onPressLoadingButton: $ }, void 0, !1, {
20456
20466
  fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/Textarea.tsx",
20457
- lineNumber: 142,
20467
+ lineNumber: 163,
20458
20468
  columnNumber: 11
20459
20469
  }, void 0) }, void 0, !1, {
20460
20470
  fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/Textarea.tsx",
20461
- lineNumber: 141,
20471
+ lineNumber: 162,
20462
20472
  columnNumber: 9
20463
20473
  }, void 0)
20464
20474
  ]
@@ -20467,7 +20477,7 @@ const ET = (e) => e.charCodeAt(e.length - 1) === 10, TT = (e) => {
20467
20477
  !0,
20468
20478
  {
20469
20479
  fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/Textarea.tsx",
20470
- lineNumber: 106,
20480
+ lineNumber: 126,
20471
20481
  columnNumber: 5
20472
20482
  },
20473
20483
  void 0
@@ -20498,6 +20508,7 @@ const ET = (e) => e.charCodeAt(e.length - 1) === 10, TT = (e) => {
20498
20508
  "data-testid": "send-button",
20499
20509
  onClick: e,
20500
20510
  disabled: t,
20511
+ type: "button",
20501
20512
  children: /* @__PURE__ */ M.jsxDEV("span", { className: "", "data-state": "closed", children: /* @__PURE__ */ M.jsxDEV(
20502
20513
  "svg",
20503
20514
  {
@@ -20519,7 +20530,7 @@ const ET = (e) => e.charCodeAt(e.length - 1) === 10, TT = (e) => {
20519
20530
  !1,
20520
20531
  {
20521
20532
  fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/ArrowButton.tsx",
20522
- lineNumber: 42,
20533
+ lineNumber: 43,
20523
20534
  columnNumber: 13
20524
20535
  },
20525
20536
  void 0
@@ -20529,13 +20540,13 @@ const ET = (e) => e.charCodeAt(e.length - 1) === 10, TT = (e) => {
20529
20540
  !1,
20530
20541
  {
20531
20542
  fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/ArrowButton.tsx",
20532
- lineNumber: 35,
20543
+ lineNumber: 36,
20533
20544
  columnNumber: 11
20534
20545
  },
20535
20546
  void 0
20536
20547
  ) }, void 0, !1, {
20537
20548
  fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/ArrowButton.tsx",
20538
- lineNumber: 34,
20549
+ lineNumber: 35,
20539
20550
  columnNumber: 9
20540
20551
  }, void 0)
20541
20552
  },
@@ -20925,6 +20936,7 @@ const pl = () => {
20925
20936
  className: "absolute bg-white md:bottom-2 md:right-3 dark:hover:bg-white right-2 bottom-1.5 disabled:opacity-10 disabled:text-gray-400 enabled:bg-white text-white p-0.5 border border-white rounded-lg dark:border-white dark:bg-white transition-colors",
20926
20937
  "data-testid": "send-button",
20927
20938
  onClick: e,
20939
+ type: "button",
20928
20940
  children: /* @__PURE__ */ M.jsxDEV("span", { className: "", "data-state": "closed", children: /* @__PURE__ */ M.jsxDEV(
20929
20941
  "svg",
20930
20942
  {
@@ -20938,7 +20950,7 @@ const pl = () => {
20938
20950
  children: [
20939
20951
  /* @__PURE__ */ M.jsxDEV("g", { id: "SVGRepo_bgCarrier", "stroke-width": "0" }, void 0, !1, {
20940
20952
  fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/StopButton.tsx",
20941
- lineNumber: 26,
20953
+ lineNumber: 27,
20942
20954
  columnNumber: 13
20943
20955
  }, void 0),
20944
20956
  /* @__PURE__ */ M.jsxDEV(
@@ -20952,7 +20964,7 @@ const pl = () => {
20952
20964
  !1,
20953
20965
  {
20954
20966
  fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/StopButton.tsx",
20955
- lineNumber: 28,
20967
+ lineNumber: 29,
20956
20968
  columnNumber: 13
20957
20969
  },
20958
20970
  void 0
@@ -20961,13 +20973,13 @@ const pl = () => {
20961
20973
  " ",
20962
20974
  /* @__PURE__ */ M.jsxDEV("path", { d: "M148.5,0C66.486,0,0,66.486,0,148.5S66.486,297,148.5,297S297,230.514,297,148.5S230.514,0,148.5,0z M213.292,190.121 c0,12.912-10.467,23.379-23.378,23.379H106.67c-12.911,0-23.378-10.467-23.378-23.379v-83.242c0-12.912,10.467-23.379,23.378-23.379 h83.244c12.911,0,23.378,10.467,23.378,23.379V190.121z" }, void 0, !1, {
20963
20975
  fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/StopButton.tsx",
20964
- lineNumber: 36,
20976
+ lineNumber: 37,
20965
20977
  columnNumber: 15
20966
20978
  }, void 0),
20967
20979
  " "
20968
20980
  ] }, void 0, !0, {
20969
20981
  fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/StopButton.tsx",
20970
- lineNumber: 34,
20982
+ lineNumber: 35,
20971
20983
  columnNumber: 13
20972
20984
  }, void 0)
20973
20985
  ]
@@ -20976,13 +20988,13 @@ const pl = () => {
20976
20988
  !0,
20977
20989
  {
20978
20990
  fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/StopButton.tsx",
20979
- lineNumber: 17,
20991
+ lineNumber: 18,
20980
20992
  columnNumber: 11
20981
20993
  },
20982
20994
  void 0
20983
20995
  ) }, void 0, !1, {
20984
20996
  fileName: "/home/yoann/dev/aibot-client/lib/src/components/BaseComponents/Textarea/StopButton.tsx",
20985
- lineNumber: 16,
20997
+ lineNumber: 17,
20986
20998
  columnNumber: 9
20987
20999
  }, void 0)
20988
21000
  },
@@ -21217,7 +21229,7 @@ const gl = ({
21217
21229
  m
21218
21230
  ), [L, P] = Oe(
21219
21231
  null
21220
- ), { companySettings: j } = yt(ar), { appCurrentLang: R } = yt(hl), re = {
21232
+ ), { companySettings: $ } = yt(ar), { appCurrentLang: I } = yt(hl), re = {
21221
21233
  ...f !== "notLoading" || (u?.length ?? 0) > 0 ? {
21222
21234
  maxHeight: "100vh"
21223
21235
  //TODO overridable with custom css
@@ -21225,7 +21237,7 @@ const gl = ({
21225
21237
  height: "250px"
21226
21238
  //TODO overridable with custom css
21227
21239
  }
21228
- }, be = NT(u) >= j?.api?.settings?.maxUserMessagesPerDiscussion, {
21240
+ }, be = NT(u) >= $?.api?.settings?.maxUserMessagesPerDiscussion, {
21229
21241
  scrollToBottom: oe,
21230
21242
  showScrollButton: q,
21231
21243
  messagesContainerRef: Te,
@@ -21236,20 +21248,20 @@ const gl = ({
21236
21248
  { content: le, userType: ye, metaData: He }
21237
21249
  ]);
21238
21250
  }, F = () => {
21239
- Ir.abort("cancelling"), console.log("Stream request aborted"), h("notLoading"), c(
21251
+ Ir.abort("Cancelling stream on purpose."), console.log("Stream request aborted"), h("notLoading"), c(
21240
21252
  (le) => le.filter(
21241
21253
  (ye) => !(ye.content?.length === 0 && ye.userType === "assistant")
21242
21254
  )
21243
21255
  );
21244
21256
  }, { resetDiscussion: J } = Rf({
21245
- companySettings: j,
21257
+ companySettings: $,
21246
21258
  setConversation: c,
21247
21259
  setDiscussionId: d
21248
21260
  }), fe = async (le) => {
21249
21261
  h("loadingIntermediaryStates");
21250
21262
  const ye = rr.getApiUrl(), He = {
21251
21263
  query: le,
21252
- language: R.locale
21264
+ language: I.locale
21253
21265
  };
21254
21266
  c((W) => [
21255
21267
  ...W,
@@ -21273,7 +21285,7 @@ const gl = ({
21273
21285
  let ae = "", se = "", ie = !1, Q = !1, ce = null;
21274
21286
  const ue = W.headers.get("discussionId");
21275
21287
  d(parseInt(ue, 10)), await new ReadableStream({
21276
- start($) {
21288
+ start(z) {
21277
21289
  return Ue();
21278
21290
  async function Ue() {
21279
21291
  if (!W.ok) {
@@ -21297,35 +21309,35 @@ const gl = ({
21297
21309
  streamSourceUuid: Ie,
21298
21310
  shouldStopStream: je
21299
21311
  } = he;
21300
- ce && ce !== Ie && (ae += '<span style="display:block;height:1rem;"></span>'), ce = Ie, (Ne || je) && (Q = !0), $.enqueue(Ee), vT(Ee) ? (se += Ee, ae += se, se = "", ie = !1) : ie || _T(Ee) ? (se += Ee, ie = !0) : ae += Ee, c((I) => {
21301
- const w = [...I], G = w.length - 1, me = w[G];
21302
- return w[G] = {
21312
+ ce && ce !== Ie && (ae += '<span style="display:block;height:1rem;"></span>'), ce = Ie, (Ne || je) && (Q = !0), z.enqueue(Ee), vT(Ee) ? (se += Ee, ae += se, se = "", ie = !1) : ie || _T(Ee) ? (se += Ee, ie = !0) : ae += Ee, c((w) => {
21313
+ const R = [...w], G = R.length - 1, me = R[G];
21314
+ return R[G] = {
21303
21315
  ...me,
21304
21316
  content: me.content = ae,
21305
21317
  metaData: {
21306
21318
  isErrorMessage: je
21307
21319
  }
21308
- }, [...w];
21320
+ }, [...R];
21309
21321
  });
21310
21322
  } else if (xn.isObjectOutputstreamLoadingCurrentStepNumberDTO(
21311
21323
  he
21312
21324
  )) {
21313
21325
  const { content: Ee } = he;
21314
- $.enqueue(Ee), P(Ee);
21326
+ z.enqueue(Ee), P(Ee);
21315
21327
  } else if (xn.isObjectOutputstreamLoadingCurrentStepNameDTO(
21316
21328
  he
21317
21329
  )) {
21318
21330
  const { content: Ee } = he;
21319
- $.enqueue(Ee), v(Ee);
21331
+ z.enqueue(Ee), v(Ee);
21320
21332
  } else if (xn.isObjectOutputstreamLoadingNumberOfStepsDTO(
21321
21333
  he
21322
21334
  )) {
21323
21335
  const { content: Ee } = he;
21324
- $.enqueue(Ee), S(Ee);
21336
+ z.enqueue(Ee), S(Ee);
21325
21337
  } else
21326
21338
  console.warn(`Object not handled - ${he}`);
21327
21339
  if (Je && Q) {
21328
- $.close(), h("notLoading"), v(m), P(null);
21340
+ z.close(), h("notLoading"), v(m), P(null);
21329
21341
  return;
21330
21342
  }
21331
21343
  return Ue();
@@ -21692,8 +21704,8 @@ function HT() {
21692
21704
  symbol: v("symbol"),
21693
21705
  any: L(),
21694
21706
  arrayOf: P,
21695
- element: j(),
21696
- elementType: R(),
21707
+ element: $(),
21708
+ elementType: I(),
21697
21709
  instanceOf: D,
21698
21710
  node: q(),
21699
21711
  objectOf: be,
@@ -21715,10 +21727,10 @@ function HT() {
21715
21727
  function x(ae, se, ie, Q, ce, ue, ke) {
21716
21728
  if (Q = Q || h, ue = ue || ie, ke !== n) {
21717
21729
  if (c) {
21718
- var $ = new Error(
21730
+ var z = new Error(
21719
21731
  "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"
21720
21732
  );
21721
- throw $.name = "Invariant Violation", $;
21733
+ throw z.name = "Invariant Violation", z;
21722
21734
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
21723
21735
  var Ue = Q + ":" + ie;
21724
21736
  !Y[Ue] && // Avoid spamming the console because they are often not actionable except for lib authors
@@ -21767,7 +21779,7 @@ function HT() {
21767
21779
  }
21768
21780
  return O(Y);
21769
21781
  }
21770
- function j() {
21782
+ function $() {
21771
21783
  function g(Y, W, x, Z, ae) {
21772
21784
  var se = Y[W];
21773
21785
  if (!u(se)) {
@@ -21778,7 +21790,7 @@ function HT() {
21778
21790
  }
21779
21791
  return O(g);
21780
21792
  }
21781
- function R() {
21793
+ function I() {
21782
21794
  function g(Y, W, x, Z, ae) {
21783
21795
  var se = Y[W];
21784
21796
  if (!e.isValidElementType(se)) {
@@ -21808,9 +21820,9 @@ function HT() {
21808
21820
  for (var ie = W[x], Q = 0; Q < g.length; Q++)
21809
21821
  if (_(ie, g[Q]))
21810
21822
  return null;
21811
- var ce = JSON.stringify(g, function(ke, $) {
21812
- var Ue = le($);
21813
- return Ue === "symbol" ? String($) : $;
21823
+ var ce = JSON.stringify(g, function(ke, z) {
21824
+ var Ue = le(z);
21825
+ return Ue === "symbol" ? String(z) : z;
21814
21826
  });
21815
21827
  return new S("Invalid " + ae + " `" + se + "` of value `" + String(ie) + "` " + ("supplied to `" + Z + "`, expected one of " + ce + "."));
21816
21828
  }
@@ -21845,10 +21857,10 @@ function HT() {
21845
21857
  }
21846
21858
  function x(Z, ae, se, ie, Q) {
21847
21859
  for (var ce = [], ue = 0; ue < g.length; ue++) {
21848
- var ke = g[ue], $ = ke(Z, ae, se, ie, Q, n);
21849
- if ($ == null)
21860
+ var ke = g[ue], z = ke(Z, ae, se, ie, Q, n);
21861
+ if (z == null)
21850
21862
  return null;
21851
- $.data && r($.data, "expectedType") && ce.push($.data.expectedType);
21863
+ z.data && r(z.data, "expectedType") && ce.push(z.data.expectedType);
21852
21864
  }
21853
21865
  var Ue = ce.length > 0 ? ", expected one of type [" + ce.join(", ") + "]" : "";
21854
21866
  return new S("Invalid " + ie + " `" + Q + "` supplied to " + ("`" + se + "`" + Ue + "."));
@@ -21898,9 +21910,9 @@ function HT() {
21898
21910
  "Invalid " + ae + " `" + se + "` key `" + ue + "` supplied to `" + Z + "`.\nBad object: " + JSON.stringify(W[x], null, " ") + `
21899
21911
  Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
21900
21912
  );
21901
- var $ = ke(ie, ue, Z, ae, se + "." + ue, n);
21902
- if ($)
21903
- return $;
21913
+ var z = ke(ie, ue, Z, ae, se + "." + ue, n);
21914
+ if (z)
21915
+ return z;
21904
21916
  }
21905
21917
  return null;
21906
21918
  }
@@ -22980,7 +22992,7 @@ function h2({
22980
22992
  "appToken not defined in ai-client. Please see the documentation at URL_ERROR_IN_DOC"
22981
22993
  );
22982
22994
  const r = e2(t);
22983
- return console.log(`App boot in ${r} mode.`), /* @__PURE__ */ M.jsxDEV("div", { className: "chatSystemWidget", id: "chatSystemWidget", children: /* @__PURE__ */ M.jsxDEV(f2, { appToken: e, agentId: n, children: /* @__PURE__ */ M.jsxDEV(JT, { displayMode: r, appToken: e }, void 0, !1, {
22995
+ return console.log(`App boot in ${r} mode.`), /* @__PURE__ */ M.jsxDEV("div", { className: "chatSystemWidget app-root", id: "chatSystemWidget", children: /* @__PURE__ */ M.jsxDEV(f2, { appToken: e, agentId: n, children: /* @__PURE__ */ M.jsxDEV(JT, { displayMode: r, appToken: e }, void 0, !1, {
22984
22996
  fileName: "/home/yoann/dev/aibot-client/lib/src/modules/app/AppContent.tsx",
22985
22997
  lineNumber: 49,
22986
22998
  columnNumber: 9
@@ -24491,10 +24503,27 @@ textarea::placeholder {
24491
24503
 
24492
24504
  .assistant .assetContainer svg {
24493
24505
  fill: #32cf56;
24494
- }`, Ko = `${m2}
24506
+ }
24507
+
24508
+ .messagesContainer {
24509
+ outline:none
24510
+ }`, g2 = `/* 1) Remove UA outline on the shadow host */
24511
+ :host(:focus),
24512
+ :host(:focus-visible) { outline: none; }
24513
+
24514
+ /* 2) Replace with your own visible focus ring on the inner root */
24515
+ :host(:focus-within) .app-root {
24516
+ border-radius: 12px; /* match your widget corners */
24517
+ outline: none;
24518
+ }
24519
+
24520
+ /* Ensure the wrapper itself doesn't get a default outline either */
24521
+ .app-root:focus { outline: none; }
24522
+ `, Ko = `${m2}
24495
24523
  ${p2}
24496
- ${b2}`;
24497
- function C2({
24524
+ ${b2}
24525
+ ${g2}`;
24526
+ function A2({
24498
24527
  cssHref: e,
24499
24528
  appToken: t,
24500
24529
  agentId: n,
@@ -24535,7 +24564,7 @@ function C2({
24535
24564
  }, [i, e]), /* @__PURE__ */ M.jsxDEV(M.Fragment, { children: [
24536
24565
  i === "inline" && /* @__PURE__ */ M.jsxDEV("div", { ref: s }, void 0, !1, {
24537
24566
  fileName: "/home/yoann/dev/aibot-client/lib/src/modules/app/App.tsx",
24538
- lineNumber: 87,
24567
+ lineNumber: 88,
24539
24568
  columnNumber: 30
24540
24569
  }, this),
24541
24570
  " ",
@@ -24552,7 +24581,7 @@ function C2({
24552
24581
  !1,
24553
24582
  {
24554
24583
  fileName: "/home/yoann/dev/aibot-client/lib/src/modules/app/App.tsx",
24555
- lineNumber: 90,
24584
+ lineNumber: 91,
24556
24585
  columnNumber: 11
24557
24586
  },
24558
24587
  this
@@ -24561,11 +24590,11 @@ function C2({
24561
24590
  )
24562
24591
  ] }, void 0, !0, {
24563
24592
  fileName: "/home/yoann/dev/aibot-client/lib/src/modules/app/App.tsx",
24564
- lineNumber: 86,
24593
+ lineNumber: 87,
24565
24594
  columnNumber: 5
24566
24595
  }, this);
24567
24596
  }
24568
24597
  export {
24569
- C2 as App
24598
+ A2 as App
24570
24599
  };
24571
24600
  //# sourceMappingURL=index.mjs.map