@schmitech/chatbot-widget 0.4.11 → 0.4.12

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.
@@ -69,41 +69,41 @@ function TI() {
69
69
  function b(S) {
70
70
  if (S === null || typeof S != "object")
71
71
  return null;
72
- var N = x && S[x] || S[A];
73
- return typeof N == "function" ? N : null;
72
+ var V = x && S[x] || S[A];
73
+ return typeof V == "function" ? V : null;
74
74
  }
75
75
  var C = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
76
76
  function q(S) {
77
77
  {
78
- for (var N = arguments.length, J = new Array(N > 1 ? N - 1 : 0), ce = 1; ce < N; ce++)
78
+ for (var V = arguments.length, J = new Array(V > 1 ? V - 1 : 0), ce = 1; ce < V; ce++)
79
79
  J[ce - 1] = arguments[ce];
80
80
  j("error", S, J);
81
81
  }
82
82
  }
83
- function j(S, N, J) {
83
+ function j(S, V, J) {
84
84
  {
85
85
  var ce = C.ReactDebugCurrentFrame, Me = ce.getStackAddendum();
86
- Me !== "" && (N += "%s", J = J.concat([Me]));
86
+ Me !== "" && (V += "%s", J = J.concat([Me]));
87
87
  var Le = J.map(function(fe) {
88
88
  return String(fe);
89
89
  });
90
- Le.unshift("Warning: " + N), Function.prototype.apply.call(console[S], console, Le);
90
+ Le.unshift("Warning: " + V), Function.prototype.apply.call(console[S], console, Le);
91
91
  }
92
92
  }
93
- var F = !1, T = !1, O = !1, Y = !1, G = !1, B;
93
+ var F = !1, T = !1, R = !1, X = !1, G = !1, B;
94
94
  B = Symbol.for("react.module.reference");
95
95
  function Z(S) {
96
- return !!(typeof S == "string" || typeof S == "function" || S === a || S === l || G || S === o || S === u || S === d || Y || S === g || F || T || O || typeof S == "object" && S !== null && (S.$$typeof === k || S.$$typeof === m || S.$$typeof === c || S.$$typeof === s || S.$$typeof === h || // This needs to include all possible module reference object
96
+ return !!(typeof S == "string" || typeof S == "function" || S === a || S === l || G || S === o || S === u || S === d || X || S === g || F || T || R || typeof S == "object" && S !== null && (S.$$typeof === k || S.$$typeof === m || S.$$typeof === c || S.$$typeof === s || S.$$typeof === h || // This needs to include all possible module reference object
97
97
  // types supported by any Flight configuration anywhere since
98
98
  // we don't know which Flight build this will end up being used
99
99
  // with.
100
100
  S.$$typeof === B || S.getModuleId !== void 0));
101
101
  }
102
- function D(S, N, J) {
102
+ function D(S, V, J) {
103
103
  var ce = S.displayName;
104
104
  if (ce)
105
105
  return ce;
106
- var Me = N.displayName || N.name || "";
106
+ var Me = V.displayName || V.name || "";
107
107
  return Me !== "" ? J + "(" + Me + ")" : J;
108
108
  }
109
109
  function ie(S) {
@@ -133,8 +133,8 @@ function TI() {
133
133
  if (typeof S == "object")
134
134
  switch (S.$$typeof) {
135
135
  case s:
136
- var N = S;
137
- return ie(N) + ".Consumer";
136
+ var V = S;
137
+ return ie(V) + ".Consumer";
138
138
  case c:
139
139
  var J = S;
140
140
  return ie(J._context) + ".Provider";
@@ -154,7 +154,7 @@ function TI() {
154
154
  }
155
155
  return null;
156
156
  }
157
- var X = Object.assign, ue = 0, me, be, De, L, ze, we, I;
157
+ var K = Object.assign, ue = 0, me, be, De, L, ze, we, I;
158
158
  function je() {
159
159
  }
160
160
  je.__reactDisabledLog = !0;
@@ -190,25 +190,25 @@ function TI() {
190
190
  writable: !0
191
191
  };
192
192
  Object.defineProperties(console, {
193
- log: X({}, S, {
193
+ log: K({}, S, {
194
194
  value: me
195
195
  }),
196
- info: X({}, S, {
196
+ info: K({}, S, {
197
197
  value: be
198
198
  }),
199
- warn: X({}, S, {
199
+ warn: K({}, S, {
200
200
  value: De
201
201
  }),
202
- error: X({}, S, {
202
+ error: K({}, S, {
203
203
  value: L
204
204
  }),
205
- group: X({}, S, {
205
+ group: K({}, S, {
206
206
  value: ze
207
207
  }),
208
- groupCollapsed: X({}, S, {
208
+ groupCollapsed: K({}, S, {
209
209
  value: we
210
210
  }),
211
- groupEnd: X({}, S, {
211
+ groupEnd: K({}, S, {
212
212
  value: I
213
213
  })
214
214
  });
@@ -217,7 +217,7 @@ function TI() {
217
217
  }
218
218
  }
219
219
  var Ze = C.ReactCurrentDispatcher, Pe;
220
- function Ge(S, N, J) {
220
+ function Ge(S, V, J) {
221
221
  {
222
222
  if (Pe === void 0)
223
223
  try {
@@ -235,7 +235,7 @@ function TI() {
235
235
  var g1 = typeof WeakMap == "function" ? WeakMap : Map;
236
236
  kt = new g1();
237
237
  }
238
- function o1(S, N) {
238
+ function o1(S, V) {
239
239
  if (!S || We)
240
240
  return "";
241
241
  {
@@ -250,7 +250,7 @@ function TI() {
250
250
  var Le;
251
251
  Le = Ze.current, Ze.current = null, _e();
252
252
  try {
253
- if (N) {
253
+ if (V) {
254
254
  var fe = function() {
255
255
  throw Error();
256
256
  };
@@ -306,14 +306,14 @@ function TI() {
306
306
  var X0 = S ? S.displayName || S.name : "", M1 = X0 ? Ge(X0) : "";
307
307
  return typeof S == "function" && kt.set(S, M1), M1;
308
308
  }
309
- function $t(S, N, J) {
309
+ function $t(S, V, J) {
310
310
  return o1(S, !1);
311
311
  }
312
312
  function Dt(S) {
313
- var N = S.prototype;
314
- return !!(N && N.isReactComponent);
313
+ var V = S.prototype;
314
+ return !!(V && V.isReactComponent);
315
315
  }
316
- function mt(S, N, J) {
316
+ function mt(S, V, J) {
317
317
  if (S == null)
318
318
  return "";
319
319
  if (typeof S == "function")
@@ -331,11 +331,11 @@ function TI() {
331
331
  case h:
332
332
  return $t(S.render);
333
333
  case m:
334
- return mt(S.type, N, J);
334
+ return mt(S.type, V, J);
335
335
  case k: {
336
336
  var ce = S, Me = ce._payload, Le = ce._init;
337
337
  try {
338
- return mt(Le(Me), N, J);
338
+ return mt(Le(Me), V, J);
339
339
  } catch {
340
340
  }
341
341
  }
@@ -345,12 +345,12 @@ function TI() {
345
345
  var Ye = Object.prototype.hasOwnProperty, Lt = {}, ft = C.ReactDebugCurrentFrame;
346
346
  function Rt(S) {
347
347
  if (S) {
348
- var N = S._owner, J = mt(S.type, S._source, N ? N.type : null);
348
+ var V = S._owner, J = mt(S.type, S._source, V ? V.type : null);
349
349
  ft.setExtraStackFrame(J);
350
350
  } else
351
351
  ft.setExtraStackFrame(null);
352
352
  }
353
- function G0(S, N, J, ce, Me) {
353
+ function G0(S, V, J, ce, Me) {
354
354
  {
355
355
  var Le = Function.call.bind(Ye);
356
356
  for (var fe in S)
@@ -361,7 +361,7 @@ function TI() {
361
361
  var Je = Error((ce || "React class") + ": " + J + " type `" + fe + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof S[fe] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
362
362
  throw Je.name = "Invariant Violation", Je;
363
363
  }
364
- ke = S[fe](N, fe, ce, J, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
364
+ ke = S[fe](V, fe, ce, J, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
365
365
  } catch (Re) {
366
366
  ke = Re;
367
367
  }
@@ -375,7 +375,7 @@ function TI() {
375
375
  }
376
376
  function Xt(S) {
377
377
  {
378
- var N = typeof Symbol == "function" && Symbol.toStringTag, J = N && S[Symbol.toStringTag] || S.constructor.name || "Object";
378
+ var V = typeof Symbol == "function" && Symbol.toStringTag, J = V && S[Symbol.toStringTag] || S.constructor.name || "Object";
379
379
  return J;
380
380
  }
381
381
  }
@@ -401,27 +401,27 @@ function TI() {
401
401
  }, xe, lt;
402
402
  function Kt(S) {
403
403
  if (Ye.call(S, "ref")) {
404
- var N = Object.getOwnPropertyDescriptor(S, "ref").get;
405
- if (N && N.isReactWarning)
404
+ var V = Object.getOwnPropertyDescriptor(S, "ref").get;
405
+ if (V && V.isReactWarning)
406
406
  return !1;
407
407
  }
408
408
  return S.ref !== void 0;
409
409
  }
410
410
  function Ht(S) {
411
411
  if (Ye.call(S, "key")) {
412
- var N = Object.getOwnPropertyDescriptor(S, "key").get;
413
- if (N && N.isReactWarning)
412
+ var V = Object.getOwnPropertyDescriptor(S, "key").get;
413
+ if (V && V.isReactWarning)
414
414
  return !1;
415
415
  }
416
416
  return S.key !== void 0;
417
417
  }
418
- function v1(S, N) {
418
+ function v1(S, V) {
419
419
  typeof S.ref == "string" && le.current;
420
420
  }
421
- function x1(S, N) {
421
+ function x1(S, V) {
422
422
  {
423
423
  var J = function() {
424
- xe || (xe = !0, q("%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)", N));
424
+ xe || (xe = !0, q("%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));
425
425
  };
426
426
  J.isReactWarning = !0, Object.defineProperty(S, "key", {
427
427
  get: J,
@@ -429,10 +429,10 @@ function TI() {
429
429
  });
430
430
  }
431
431
  }
432
- function Qe(S, N) {
432
+ function Qe(S, V) {
433
433
  {
434
434
  var J = function() {
435
- lt || (lt = !0, q("%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)", N));
435
+ lt || (lt = !0, q("%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));
436
436
  };
437
437
  J.isReactWarning = !0, Object.defineProperty(S, "ref", {
438
438
  get: J,
@@ -440,13 +440,13 @@ function TI() {
440
440
  });
441
441
  }
442
442
  }
443
- var l1 = function(S, N, J, ce, Me, Le, fe) {
443
+ var l1 = function(S, V, J, ce, Me, Le, fe) {
444
444
  var ke = {
445
445
  // This tag allows us to uniquely identify this as a React Element
446
446
  $$typeof: r,
447
447
  // Built-in properties that belong on the element
448
448
  type: S,
449
- key: N,
449
+ key: V,
450
450
  ref: J,
451
451
  props: fe,
452
452
  // Record the component responsible for creating this element.
@@ -469,12 +469,12 @@ function TI() {
469
469
  value: Me
470
470
  }), Object.freeze && (Object.freeze(ke.props), Object.freeze(ke)), ke;
471
471
  };
472
- function Bt(S, N, J, ce, Me) {
472
+ function Bt(S, V, J, ce, Me) {
473
473
  {
474
474
  var Le, fe = {}, ke = null, Je = null;
475
- J !== void 0 && ($(J), ke = "" + J), Ht(N) && ($(N.key), ke = "" + N.key), Kt(N) && (Je = N.ref, v1(N, Me));
476
- for (Le in N)
477
- Ye.call(N, Le) && !pe.hasOwnProperty(Le) && (fe[Le] = N[Le]);
475
+ J !== void 0 && ($(J), ke = "" + J), Ht(V) && ($(V.key), ke = "" + V.key), Kt(V) && (Je = V.ref, v1(V, Me));
476
+ for (Le in V)
477
+ Ye.call(V, Le) && !pe.hasOwnProperty(Le) && (fe[Le] = V[Le]);
478
478
  if (S && S.defaultProps) {
479
479
  var Re = S.defaultProps;
480
480
  for (Le in Re)
@@ -490,7 +490,7 @@ function TI() {
490
490
  var jx = C.ReactCurrentOwner, _w = C.ReactDebugCurrentFrame;
491
491
  function $0(S) {
492
492
  if (S) {
493
- var N = S._owner, J = mt(S.type, S._source, N ? N.type : null);
493
+ var V = S._owner, J = mt(S.type, S._source, V ? V.type : null);
494
494
  _w.setExtraStackFrame(J);
495
495
  } else
496
496
  _w.setExtraStackFrame(null);
@@ -518,22 +518,22 @@ Check the render method of \`` + S + "`.";
518
518
  var Gw = {};
519
519
  function fI(S) {
520
520
  {
521
- var N = Zw();
522
- if (!N) {
521
+ var V = Zw();
522
+ if (!V) {
523
523
  var J = typeof S == "string" ? S : S.displayName || S.name;
524
- J && (N = `
524
+ J && (V = `
525
525
 
526
526
  Check the top-level render call using <` + J + ">.");
527
527
  }
528
- return N;
528
+ return V;
529
529
  }
530
530
  }
531
- function Ww(S, N) {
531
+ function Ww(S, V) {
532
532
  {
533
533
  if (!S._store || S._store.validated || S.key != null)
534
534
  return;
535
535
  S._store.validated = !0;
536
- var J = fI(N);
536
+ var J = fI(V);
537
537
  if (Gw[J])
538
538
  return;
539
539
  Gw[J] = !0;
@@ -541,14 +541,14 @@ Check the top-level render call using <` + J + ">.");
541
541
  S && S._owner && S._owner !== jx.current && (ce = " It was passed a child from " + te(S._owner.type) + "."), $0(S), q('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', J, ce), $0(null);
542
542
  }
543
543
  }
544
- function $w(S, N) {
544
+ function $w(S, V) {
545
545
  {
546
546
  if (typeof S != "object")
547
547
  return;
548
548
  if (qt(S))
549
549
  for (var J = 0; J < S.length; J++) {
550
550
  var ce = S[J];
551
- Vx(ce) && Ww(ce, N);
551
+ Vx(ce) && Ww(ce, V);
552
552
  }
553
553
  else if (Vx(S))
554
554
  S._store && (S._store.validated = !0);
@@ -556,39 +556,39 @@ Check the top-level render call using <` + J + ">.");
556
556
  var Me = b(S);
557
557
  if (typeof Me == "function" && Me !== S.entries)
558
558
  for (var Le = Me.call(S), fe; !(fe = Le.next()).done; )
559
- Vx(fe.value) && Ww(fe.value, N);
559
+ Vx(fe.value) && Ww(fe.value, V);
560
560
  }
561
561
  }
562
562
  }
563
563
  function gI(S) {
564
564
  {
565
- var N = S.type;
566
- if (N == null || typeof N == "string")
565
+ var V = S.type;
566
+ if (V == null || typeof V == "string")
567
567
  return;
568
568
  var J;
569
- if (typeof N == "function")
570
- J = N.propTypes;
571
- else if (typeof N == "object" && (N.$$typeof === h || // Note: Memo only checks outer props here.
569
+ if (typeof V == "function")
570
+ J = V.propTypes;
571
+ else if (typeof V == "object" && (V.$$typeof === h || // Note: Memo only checks outer props here.
572
572
  // Inner props are checked in the reconciler.
573
- N.$$typeof === m))
574
- J = N.propTypes;
573
+ V.$$typeof === m))
574
+ J = V.propTypes;
575
575
  else
576
576
  return;
577
577
  if (J) {
578
- var ce = te(N);
578
+ var ce = te(V);
579
579
  G0(J, S.props, "prop", ce, S);
580
- } else if (N.PropTypes !== void 0 && !Ox) {
580
+ } else if (V.PropTypes !== void 0 && !Ox) {
581
581
  Ox = !0;
582
- var Me = te(N);
582
+ var Me = te(V);
583
583
  q("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Me || "Unknown");
584
584
  }
585
- typeof N.getDefaultProps == "function" && !N.getDefaultProps.isReactClassApproved && q("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
585
+ typeof V.getDefaultProps == "function" && !V.getDefaultProps.isReactClassApproved && q("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
586
586
  }
587
587
  }
588
588
  function vI(S) {
589
589
  {
590
- for (var N = Object.keys(S.props), J = 0; J < N.length; J++) {
591
- var ce = N[J];
590
+ for (var V = Object.keys(S.props), J = 0; J < V.length; J++) {
591
+ var ce = V[J];
592
592
  if (ce !== "children" && ce !== "key") {
593
593
  $0(S), q("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", ce), $0(null);
594
594
  break;
@@ -598,7 +598,7 @@ Check the top-level render call using <` + J + ">.");
598
598
  }
599
599
  }
600
600
  var Xw = {};
601
- function Kw(S, N, J, ce, Me, Le) {
601
+ function Kw(S, V, J, ce, Me, Le) {
602
602
  {
603
603
  var fe = Z(S);
604
604
  if (!fe) {
@@ -609,11 +609,11 @@ Check the top-level render call using <` + J + ">.");
609
609
  var Re;
610
610
  S === null ? Re = "null" : qt(S) ? Re = "array" : S !== void 0 && S.$$typeof === r ? (Re = "<" + (te(S.type) || "Unknown") + " />", ke = " Did you accidentally export a JSX literal instead of a component?") : Re = typeof S, q("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Re, ke);
611
611
  }
612
- var Oe = Bt(S, N, J, Me, Le);
612
+ var Oe = Bt(S, V, J, Me, Le);
613
613
  if (Oe == null)
614
614
  return Oe;
615
615
  if (fe) {
616
- var St = N.children;
616
+ var St = V.children;
617
617
  if (St !== void 0)
618
618
  if (ce)
619
619
  if (qt(St)) {
@@ -625,8 +625,8 @@ Check the top-level render call using <` + J + ">.");
625
625
  else
626
626
  $w(St, S);
627
627
  }
628
- if (Ye.call(N, "key")) {
629
- var M1 = te(S), ct = Object.keys(N).filter(function(SI) {
628
+ if (Ye.call(V, "key")) {
629
+ var M1 = te(S), ct = Object.keys(V).filter(function(SI) {
630
630
  return SI !== "key";
631
631
  }), Nx = ct.length > 0 ? "{key: someKey, " + ct.join(": ..., ") + ": ...}" : "{key: someKey}";
632
632
  if (!Xw[M1 + Nx]) {
@@ -642,11 +642,11 @@ React keys must be passed directly to JSX without using spread:
642
642
  return S === a ? vI(Oe) : gI(Oe), Oe;
643
643
  }
644
644
  }
645
- function xI(S, N, J) {
646
- return Kw(S, N, J, !0);
645
+ function xI(S, V, J) {
646
+ return Kw(S, V, J, !0);
647
647
  }
648
- function MI(S, N, J) {
649
- return Kw(S, N, J, !1);
648
+ function MI(S, V, J) {
649
+ return Kw(S, V, J, !1);
650
650
  }
651
651
  var wI = MI, bI = xI;
652
652
  mr.Fragment = a, mr.jsx = wI, mr.jsxs = bI;
@@ -654,7 +654,7 @@ React keys must be passed directly to JSX without using spread:
654
654
  }
655
655
  var qI = {};
656
656
  qI.NODE_ENV === "production" ? CM.exports = zI() : CM.exports = TI();
657
- var R = CM.exports;
657
+ var _ = CM.exports;
658
658
  /**
659
659
  * @license lucide-react v0.344.0 - ISC
660
660
  *
@@ -26637,15 +26637,15 @@ function OI() {
26637
26637
  function b(T) {
26638
26638
  if (!C) {
26639
26639
  if (C = !0, q = T, T = m(T), k !== void 0 && x.hasValue) {
26640
- var O = x.value;
26641
- if (k(O, T))
26642
- return j = O;
26640
+ var R = x.value;
26641
+ if (k(R, T))
26642
+ return j = R;
26643
26643
  }
26644
26644
  return j = T;
26645
26645
  }
26646
- if (O = j, n(q, T)) return O;
26647
- var Y = m(T);
26648
- return k !== void 0 && k(O, Y) ? (q = T, O) : (q = T, j = Y);
26646
+ if (R = j, n(q, T)) return R;
26647
+ var X = m(T);
26648
+ return k !== void 0 && k(R, X) ? (q = T, R) : (q = T, j = X);
26649
26649
  }
26650
26650
  var C = !1, q, j, F = d === void 0 ? null : d;
26651
26651
  return [
@@ -26696,19 +26696,19 @@ function VI() {
26696
26696
  } else A = x.current;
26697
26697
  x = s(
26698
26698
  function() {
26699
- function C(O) {
26699
+ function C(R) {
26700
26700
  if (!q) {
26701
- if (q = !0, j = O, O = k(O), g !== void 0 && A.hasValue) {
26702
- var Y = A.value;
26703
- if (g(Y, O))
26704
- return F = Y;
26701
+ if (q = !0, j = R, R = k(R), g !== void 0 && A.hasValue) {
26702
+ var X = A.value;
26703
+ if (g(X, R))
26704
+ return F = X;
26705
26705
  }
26706
- return F = O;
26706
+ return F = R;
26707
26707
  }
26708
- if (Y = F, a(j, O))
26709
- return Y;
26710
- var G = k(O);
26711
- return g !== void 0 && g(Y, G) ? (j = O, Y) : (j = O, F = G);
26708
+ if (X = F, a(j, R))
26709
+ return X;
26710
+ var G = k(R);
26711
+ return g !== void 0 && g(X, G) ? (j = R, X) : (j = R, F = G);
26712
26712
  }
26713
26713
  var q = !1, j, F, T = m === void 0 ? null : m;
26714
26714
  return [
@@ -26873,13 +26873,13 @@ class QI {
26873
26873
  const { done: F, value: T } = await b.read();
26874
26874
  if (F)
26875
26875
  break;
26876
- const O = C.decode(T, { stream: !0 });
26877
- q += O;
26878
- let Y = 0, G;
26876
+ const R = C.decode(T, { stream: !0 });
26877
+ q += R;
26878
+ let X = 0, G;
26879
26879
  for (; (G = q.indexOf(`
26880
- `, Y)) !== -1; ) {
26881
- const B = q.slice(Y, G).trim();
26882
- if (Y = G + 1, B && B.startsWith("data: ")) {
26880
+ `, X)) !== -1; ) {
26881
+ const B = q.slice(X, G).trim();
26882
+ if (X = G + 1, B && B.startsWith("data: ")) {
26883
26883
  const Z = B.slice(6).trim();
26884
26884
  if (!Z || Z === "[DONE]") {
26885
26885
  yield { text: "", done: !0 };
@@ -26906,7 +26906,7 @@ class QI {
26906
26906
  }
26907
26907
  }
26908
26908
  }
26909
- q = q.slice(Y), q.length > 1e6 && (console.warn("Buffer too large, truncating..."), q = q.slice(-5e5));
26909
+ q = q.slice(X), q.length > 1e6 && (console.warn("Buffer too large, truncating..."), q = q.slice(-5e5));
26910
26910
  }
26911
26911
  j && (yield { text: "", done: !0 });
26912
26912
  } finally {
@@ -27425,13 +27425,13 @@ const eS = XI((e, t) => ({
27425
27425
  }), sA = (e) => {
27426
27426
  const [t, r] = ut(!1), [n, a] = ut(!1), [o, l] = ut(!1), c = nt(null), s = nt(null), h = nt(!0), u = nt(), d = dt((g = !1) => {
27427
27427
  if (c.current) {
27428
- const { scrollHeight: x } = c.current;
27429
- c.current.scrollTo({
27430
- top: x,
27428
+ const { scrollTop: x, scrollHeight: A, clientHeight: b } = c.current;
27429
+ (Math.abs(A - x - b) < 100 || h.current) && (c.current.scrollTo({
27430
+ top: A,
27431
27431
  behavior: g ? "auto" : "smooth"
27432
27432
  }), setTimeout(() => {
27433
27433
  m();
27434
- }, g ? 0 : ve.ANIMATIONS.SCROLL_TIMEOUT);
27434
+ }, g ? 0 : ve.ANIMATIONS.SCROLL_TIMEOUT));
27435
27435
  }
27436
27436
  }, []), m = dt(() => {
27437
27437
  if (c.current && !e) {
@@ -27616,7 +27616,7 @@ pt.prototype.property = "";
27616
27616
  pt.prototype.spaceSeparated = !1;
27617
27617
  pt.prototype.space = void 0;
27618
27618
  let gA = 0;
27619
- const se = U0(), Ve = U0(), HM = U0(), _ = U0(), Ie = U0(), rr = U0(), vt = U0();
27619
+ const se = U0(), Ve = U0(), HM = U0(), U = U0(), Ie = U0(), rr = U0(), vt = U0();
27620
27620
  function U0() {
27621
27621
  return 2 ** ++gA;
27622
27622
  }
@@ -27626,7 +27626,7 @@ const BM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
27626
27626
  booleanish: Ve,
27627
27627
  commaOrSpaceSeparated: vt,
27628
27628
  commaSeparated: rr,
27629
- number: _,
27629
+ number: U,
27630
27630
  overloadedBoolean: HM,
27631
27631
  spaceSeparated: Ie
27632
27632
  }, Symbol.toStringTag, { value: "Module" })), $x = (
@@ -27680,9 +27680,9 @@ const aS = hr({
27680
27680
  ariaAutoComplete: null,
27681
27681
  ariaBusy: Ve,
27682
27682
  ariaChecked: Ve,
27683
- ariaColCount: _,
27684
- ariaColIndex: _,
27685
- ariaColSpan: _,
27683
+ ariaColCount: U,
27684
+ ariaColIndex: U,
27685
+ ariaColSpan: U,
27686
27686
  ariaControls: Ie,
27687
27687
  ariaCurrent: null,
27688
27688
  ariaDescribedBy: Ie,
@@ -27699,7 +27699,7 @@ const aS = hr({
27699
27699
  ariaKeyShortcuts: null,
27700
27700
  ariaLabel: null,
27701
27701
  ariaLabelledBy: Ie,
27702
- ariaLevel: _,
27702
+ ariaLevel: U,
27703
27703
  ariaLive: null,
27704
27704
  ariaModal: Ve,
27705
27705
  ariaMultiLine: Ve,
@@ -27707,21 +27707,21 @@ const aS = hr({
27707
27707
  ariaOrientation: null,
27708
27708
  ariaOwns: Ie,
27709
27709
  ariaPlaceholder: null,
27710
- ariaPosInSet: _,
27710
+ ariaPosInSet: U,
27711
27711
  ariaPressed: Ve,
27712
27712
  ariaReadOnly: Ve,
27713
27713
  ariaRelevant: null,
27714
27714
  ariaRequired: Ve,
27715
27715
  ariaRoleDescription: Ie,
27716
- ariaRowCount: _,
27717
- ariaRowIndex: _,
27718
- ariaRowSpan: _,
27716
+ ariaRowCount: U,
27717
+ ariaRowIndex: U,
27718
+ ariaRowSpan: U,
27719
27719
  ariaSelected: Ve,
27720
- ariaSetSize: _,
27720
+ ariaSetSize: U,
27721
27721
  ariaSort: null,
27722
- ariaValueMax: _,
27723
- ariaValueMin: _,
27724
- ariaValueNow: _,
27722
+ ariaValueMax: U,
27723
+ ariaValueMin: U,
27724
+ ariaValueNow: U,
27725
27725
  ariaValueText: null,
27726
27726
  role: null
27727
27727
  },
@@ -27767,13 +27767,13 @@ const vA = hr({
27767
27767
  checked: se,
27768
27768
  cite: null,
27769
27769
  className: Ie,
27770
- cols: _,
27770
+ cols: U,
27771
27771
  colSpan: null,
27772
27772
  content: null,
27773
27773
  contentEditable: Ve,
27774
27774
  controls: se,
27775
27775
  controlsList: Ie,
27776
- coords: _ | rr,
27776
+ coords: U | rr,
27777
27777
  crossOrigin: null,
27778
27778
  data: null,
27779
27779
  dateTime: null,
@@ -27795,9 +27795,9 @@ const vA = hr({
27795
27795
  formNoValidate: se,
27796
27796
  formTarget: null,
27797
27797
  headers: Ie,
27798
- height: _,
27798
+ height: U,
27799
27799
  hidden: HM,
27800
- high: _,
27800
+ high: U,
27801
27801
  href: null,
27802
27802
  hrefLang: null,
27803
27803
  htmlFor: Ie,
@@ -27822,14 +27822,14 @@ const vA = hr({
27822
27822
  list: null,
27823
27823
  loading: null,
27824
27824
  loop: se,
27825
- low: _,
27825
+ low: U,
27826
27826
  manifest: null,
27827
27827
  max: null,
27828
- maxLength: _,
27828
+ maxLength: U,
27829
27829
  media: null,
27830
27830
  method: null,
27831
27831
  min: null,
27832
- minLength: _,
27832
+ minLength: U,
27833
27833
  multiple: se,
27834
27834
  muted: se,
27835
27835
  name: null,
@@ -27925,7 +27925,7 @@ const vA = hr({
27925
27925
  onWaiting: null,
27926
27926
  onWheel: null,
27927
27927
  open: se,
27928
- optimum: _,
27928
+ optimum: U,
27929
27929
  pattern: null,
27930
27930
  ping: Ie,
27931
27931
  placeholder: null,
@@ -27940,8 +27940,8 @@ const vA = hr({
27940
27940
  rel: Ie,
27941
27941
  required: se,
27942
27942
  reversed: se,
27943
- rows: _,
27944
- rowSpan: _,
27943
+ rows: U,
27944
+ rowSpan: U,
27945
27945
  sandbox: Ie,
27946
27946
  scope: null,
27947
27947
  scoped: se,
@@ -27951,19 +27951,19 @@ const vA = hr({
27951
27951
  shadowRootDelegatesFocus: se,
27952
27952
  shadowRootMode: null,
27953
27953
  shape: null,
27954
- size: _,
27954
+ size: U,
27955
27955
  sizes: null,
27956
27956
  slot: null,
27957
- span: _,
27957
+ span: U,
27958
27958
  spellCheck: Ve,
27959
27959
  src: null,
27960
27960
  srcDoc: null,
27961
27961
  srcLang: null,
27962
27962
  srcSet: null,
27963
- start: _,
27963
+ start: U,
27964
27964
  step: null,
27965
27965
  style: null,
27966
- tabIndex: _,
27966
+ tabIndex: U,
27967
27967
  target: null,
27968
27968
  title: null,
27969
27969
  translate: null,
@@ -27971,7 +27971,7 @@ const vA = hr({
27971
27971
  typeMustMatch: se,
27972
27972
  useMap: null,
27973
27973
  value: Ve,
27974
- width: _,
27974
+ width: U,
27975
27975
  wrap: null,
27976
27976
  writingSuggestions: null,
27977
27977
  // Legacy.
@@ -27988,11 +27988,11 @@ const vA = hr({
27988
27988
  // `<body>`. Use CSS `background-image` instead
27989
27989
  bgColor: null,
27990
27990
  // `<body>` and table elements. Use CSS `background-color` instead
27991
- border: _,
27991
+ border: U,
27992
27992
  // `<table>`. Use CSS `border-width` instead,
27993
27993
  borderColor: null,
27994
27994
  // `<table>`. Use CSS `border-color` instead,
27995
- bottomMargin: _,
27995
+ bottomMargin: U,
27996
27996
  // `<body>`
27997
27997
  cellPadding: null,
27998
27998
  // `<table>`
@@ -28026,9 +28026,9 @@ const vA = hr({
28026
28026
  // `<table>`
28027
28027
  frameBorder: null,
28028
28028
  // `<iframe>`. Use CSS `border` instead
28029
- hSpace: _,
28029
+ hSpace: U,
28030
28030
  // `<img>` and `<object>`
28031
- leftMargin: _,
28031
+ leftMargin: U,
28032
28032
  // `<body>`
28033
28033
  link: null,
28034
28034
  // `<body>`. Use CSS `a:link {color: *}` instead
@@ -28036,9 +28036,9 @@ const vA = hr({
28036
28036
  // `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
28037
28037
  lowSrc: null,
28038
28038
  // `<img>`. Use a `<picture>`
28039
- marginHeight: _,
28039
+ marginHeight: U,
28040
28040
  // `<body>`
28041
- marginWidth: _,
28041
+ marginWidth: U,
28042
28042
  // `<body>`
28043
28043
  noResize: se,
28044
28044
  // `<frame>`
@@ -28056,7 +28056,7 @@ const vA = hr({
28056
28056
  // `<isindex>`
28057
28057
  rev: null,
28058
28058
  // `<link>`
28059
- rightMargin: _,
28059
+ rightMargin: U,
28060
28060
  // `<body>`
28061
28061
  rules: null,
28062
28062
  // `<table>`
@@ -28070,7 +28070,7 @@ const vA = hr({
28070
28070
  // `<table>`
28071
28071
  text: null,
28072
28072
  // `<body>`. Use CSS `color` instead
28073
- topMargin: _,
28073
+ topMargin: U,
28074
28074
  // `<body>`
28075
28075
  valueType: null,
28076
28076
  // `<param>`
@@ -28080,7 +28080,7 @@ const vA = hr({
28080
28080
  // Several. Use CSS `vertical-align` instead
28081
28081
  vLink: null,
28082
28082
  // `<body>`. Use CSS `a:visited {color}` instead
28083
- vSpace: _,
28083
+ vSpace: U,
28084
28084
  // `<img>` and `<object>`
28085
28085
  // Non-standard Properties.
28086
28086
  allowTransparency: null,
@@ -28090,7 +28090,7 @@ const vA = hr({
28090
28090
  disableRemotePlayback: se,
28091
28091
  prefix: null,
28092
28092
  property: null,
28093
- results: _,
28093
+ results: U,
28094
28094
  security: null,
28095
28095
  unselectable: null
28096
28096
  },
@@ -28274,27 +28274,27 @@ const vA = hr({
28274
28274
  },
28275
28275
  properties: {
28276
28276
  about: vt,
28277
- accentHeight: _,
28277
+ accentHeight: U,
28278
28278
  accumulate: null,
28279
28279
  additive: null,
28280
28280
  alignmentBaseline: null,
28281
- alphabetic: _,
28282
- amplitude: _,
28281
+ alphabetic: U,
28282
+ amplitude: U,
28283
28283
  arabicForm: null,
28284
- ascent: _,
28284
+ ascent: U,
28285
28285
  attributeName: null,
28286
28286
  attributeType: null,
28287
- azimuth: _,
28287
+ azimuth: U,
28288
28288
  bandwidth: null,
28289
28289
  baselineShift: null,
28290
28290
  baseFrequency: null,
28291
28291
  baseProfile: null,
28292
28292
  bbox: null,
28293
28293
  begin: null,
28294
- bias: _,
28294
+ bias: U,
28295
28295
  by: null,
28296
28296
  calcMode: null,
28297
- capHeight: _,
28297
+ capHeight: U,
28298
28298
  className: Ie,
28299
28299
  clip: null,
28300
28300
  clipPath: null,
@@ -28315,26 +28315,26 @@ const vA = hr({
28315
28315
  d: null,
28316
28316
  dataType: null,
28317
28317
  defaultAction: null,
28318
- descent: _,
28319
- diffuseConstant: _,
28318
+ descent: U,
28319
+ diffuseConstant: U,
28320
28320
  direction: null,
28321
28321
  display: null,
28322
28322
  dur: null,
28323
- divisor: _,
28323
+ divisor: U,
28324
28324
  dominantBaseline: null,
28325
28325
  download: se,
28326
28326
  dx: null,
28327
28327
  dy: null,
28328
28328
  edgeMode: null,
28329
28329
  editable: null,
28330
- elevation: _,
28330
+ elevation: U,
28331
28331
  enableBackground: null,
28332
28332
  end: null,
28333
28333
  event: null,
28334
- exponent: _,
28334
+ exponent: U,
28335
28335
  externalResourcesRequired: null,
28336
28336
  fill: null,
28337
- fillOpacity: _,
28337
+ fillOpacity: U,
28338
28338
  fillRule: null,
28339
28339
  filter: null,
28340
28340
  filterRes: null,
@@ -28364,27 +28364,27 @@ const vA = hr({
28364
28364
  gradientTransform: null,
28365
28365
  gradientUnits: null,
28366
28366
  handler: null,
28367
- hanging: _,
28367
+ hanging: U,
28368
28368
  hatchContentUnits: null,
28369
28369
  hatchUnits: null,
28370
28370
  height: null,
28371
28371
  href: null,
28372
28372
  hrefLang: null,
28373
- horizAdvX: _,
28374
- horizOriginX: _,
28375
- horizOriginY: _,
28373
+ horizAdvX: U,
28374
+ horizOriginX: U,
28375
+ horizOriginY: U,
28376
28376
  id: null,
28377
- ideographic: _,
28377
+ ideographic: U,
28378
28378
  imageRendering: null,
28379
28379
  initialVisibility: null,
28380
28380
  in: null,
28381
28381
  in2: null,
28382
- intercept: _,
28383
- k: _,
28384
- k1: _,
28385
- k2: _,
28386
- k3: _,
28387
- k4: _,
28382
+ intercept: U,
28383
+ k: U,
28384
+ k1: U,
28385
+ k2: U,
28386
+ k3: U,
28387
+ k4: U,
28388
28388
  kernelMatrix: vt,
28389
28389
  kernelUnitLength: null,
28390
28390
  keyPoints: null,
@@ -28398,7 +28398,7 @@ const vA = hr({
28398
28398
  lengthAdjust: null,
28399
28399
  letterSpacing: null,
28400
28400
  lightingColor: null,
28401
- limitingConeAngle: _,
28401
+ limitingConeAngle: U,
28402
28402
  local: null,
28403
28403
  markerEnd: null,
28404
28404
  markerMid: null,
@@ -28414,7 +28414,7 @@ const vA = hr({
28414
28414
  media: null,
28415
28415
  mediaCharacterEncoding: null,
28416
28416
  mediaContentEncodings: null,
28417
- mediaSize: _,
28417
+ mediaSize: U,
28418
28418
  mediaTime: null,
28419
28419
  method: null,
28420
28420
  min: null,
@@ -28520,12 +28520,12 @@ const vA = hr({
28520
28520
  origin: null,
28521
28521
  overflow: null,
28522
28522
  overlay: null,
28523
- overlinePosition: _,
28524
- overlineThickness: _,
28523
+ overlinePosition: U,
28524
+ overlineThickness: U,
28525
28525
  paintOrder: null,
28526
28526
  panose1: null,
28527
28527
  path: null,
28528
- pathLength: _,
28528
+ pathLength: U,
28529
28529
  patternContentUnits: null,
28530
28530
  patternTransform: null,
28531
28531
  patternUnits: null,
@@ -28535,9 +28535,9 @@ const vA = hr({
28535
28535
  playbackOrder: null,
28536
28536
  pointerEvents: null,
28537
28537
  points: null,
28538
- pointsAtX: _,
28539
- pointsAtY: _,
28540
- pointsAtZ: _,
28538
+ pointsAtX: U,
28539
+ pointsAtY: U,
28540
+ pointsAtZ: U,
28541
28541
  preserveAlpha: null,
28542
28542
  preserveAspectRatio: null,
28543
28543
  primitiveUnits: null,
@@ -28569,8 +28569,8 @@ const vA = hr({
28569
28569
  side: null,
28570
28570
  slope: null,
28571
28571
  snapshotTime: null,
28572
- specularConstant: _,
28573
- specularExponent: _,
28572
+ specularConstant: U,
28573
+ specularExponent: U,
28574
28574
  spreadMethod: null,
28575
28575
  spacing: null,
28576
28576
  startOffset: null,
@@ -28580,30 +28580,30 @@ const vA = hr({
28580
28580
  stitchTiles: null,
28581
28581
  stopColor: null,
28582
28582
  stopOpacity: null,
28583
- strikethroughPosition: _,
28584
- strikethroughThickness: _,
28583
+ strikethroughPosition: U,
28584
+ strikethroughThickness: U,
28585
28585
  string: null,
28586
28586
  stroke: null,
28587
28587
  strokeDashArray: vt,
28588
28588
  strokeDashOffset: null,
28589
28589
  strokeLineCap: null,
28590
28590
  strokeLineJoin: null,
28591
- strokeMiterLimit: _,
28592
- strokeOpacity: _,
28591
+ strokeMiterLimit: U,
28592
+ strokeOpacity: U,
28593
28593
  strokeWidth: null,
28594
28594
  style: null,
28595
- surfaceScale: _,
28595
+ surfaceScale: U,
28596
28596
  syncBehavior: null,
28597
28597
  syncBehaviorDefault: null,
28598
28598
  syncMaster: null,
28599
28599
  syncTolerance: null,
28600
28600
  syncToleranceDefault: null,
28601
28601
  systemLanguage: vt,
28602
- tabIndex: _,
28602
+ tabIndex: U,
28603
28603
  tableValues: null,
28604
28604
  target: null,
28605
- targetX: _,
28606
- targetY: _,
28605
+ targetX: U,
28606
+ targetY: U,
28607
28607
  textAnchor: null,
28608
28608
  textDecoration: null,
28609
28609
  textRendering: null,
@@ -28618,22 +28618,22 @@ const vA = hr({
28618
28618
  transformOrigin: null,
28619
28619
  u1: null,
28620
28620
  u2: null,
28621
- underlinePosition: _,
28622
- underlineThickness: _,
28621
+ underlinePosition: U,
28622
+ underlineThickness: U,
28623
28623
  unicode: null,
28624
28624
  unicodeBidi: null,
28625
28625
  unicodeRange: null,
28626
- unitsPerEm: _,
28626
+ unitsPerEm: U,
28627
28627
  values: null,
28628
- vAlphabetic: _,
28629
- vMathematical: _,
28628
+ vAlphabetic: U,
28629
+ vMathematical: U,
28630
28630
  vectorEffect: null,
28631
- vHanging: _,
28632
- vIdeographic: _,
28631
+ vHanging: U,
28632
+ vIdeographic: U,
28633
28633
  version: null,
28634
- vertAdvY: _,
28635
- vertOriginX: _,
28636
- vertOriginY: _,
28634
+ vertAdvY: U,
28635
+ vertOriginX: U,
28636
+ vertOriginY: U,
28637
28637
  viewBox: null,
28638
28638
  viewTarget: null,
28639
28639
  visibility: null,
@@ -28645,7 +28645,7 @@ const vA = hr({
28645
28645
  x1: null,
28646
28646
  x2: null,
28647
28647
  xChannelSelector: null,
28648
- xHeight: _,
28648
+ xHeight: U,
28649
28649
  y: null,
28650
28650
  y1: null,
28651
28651
  y2: null,
@@ -28959,7 +28959,7 @@ class Ke extends Error {
28959
28959
  s && (o.place = s.position);
28960
28960
  }
28961
28961
  const c = o.place && "start" in o.place ? o.place.start : o.place;
28962
- this.ancestors = o.ancestors || void 0, this.cause = o.cause || void 0, this.column = c ? c.column : void 0, this.fatal = void 0, this.file, this.message = a, this.line = c ? c.line : void 0, this.name = Ar(o.place) || "1:1", this.place = o.place || void 0, this.reason = this.message, this.ruleId = o.ruleId || void 0, this.source = o.source || void 0, this.stack = l && o.cause && typeof o.cause.stack == "string" ? o.cause.stack : "", this.actual, this.expected, this.note, this.url;
28962
+ this.ancestors = o.ancestors || void 0, this.cause = o.cause || void 0, this.column = c ? c.column : void 0, this.fatal = void 0, this.file = "", this.message = a, this.line = c ? c.line : void 0, this.name = Ar(o.place) || "1:1", this.place = o.place || void 0, this.reason = this.message, this.ruleId = o.ruleId || void 0, this.source = o.source || void 0, this.stack = l && o.cause && typeof o.cause.stack == "string" ? o.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
28963
28963
  }
28964
28964
  }
28965
28965
  Ke.prototype.file = "";
@@ -29496,12 +29496,12 @@ function qz(e) {
29496
29496
  break;
29497
29497
  }
29498
29498
  b(n);
29499
- let O = j;
29500
- for (; O < t.events.length; )
29501
- t.events[O][1].end = {
29499
+ let R = j;
29500
+ for (; R < t.events.length; )
29501
+ t.events[R][1].end = {
29502
29502
  ...T
29503
- }, O++;
29504
- return wt(t.events, F + 1, 0, t.events.slice(j)), t.events.length = O, h(q);
29503
+ }, R++;
29504
+ return wt(t.events, F + 1, 0, t.events.slice(j)), t.events.length = R, h(q);
29505
29505
  }
29506
29506
  return c(q);
29507
29507
  }
@@ -29557,21 +29557,21 @@ function qz(e) {
29557
29557
  a.events[T][1].end.offset > l)
29558
29558
  )
29559
29559
  return;
29560
- const O = t.events.length;
29561
- let Y = O, G, B;
29562
- for (; Y--; )
29563
- if (t.events[Y][0] === "exit" && t.events[Y][1].type === "chunkFlow") {
29560
+ const R = t.events.length;
29561
+ let X = R, G, B;
29562
+ for (; X--; )
29563
+ if (t.events[X][0] === "exit" && t.events[X][1].type === "chunkFlow") {
29564
29564
  if (G) {
29565
- B = t.events[Y][1].end;
29565
+ B = t.events[X][1].end;
29566
29566
  break;
29567
29567
  }
29568
29568
  G = !0;
29569
29569
  }
29570
- for (b(n), T = O; T < t.events.length; )
29570
+ for (b(n), T = R; T < t.events.length; )
29571
29571
  t.events[T][1].end = {
29572
29572
  ...B
29573
29573
  }, T++;
29574
- wt(t.events, Y + 1, 0, t.events.slice(O)), t.events.length = T;
29574
+ wt(t.events, X + 1, 0, t.events.slice(R)), t.events.length = T;
29575
29575
  }
29576
29576
  }
29577
29577
  function b(q) {
@@ -29827,8 +29827,8 @@ function Uz(e, t, r) {
29827
29827
  return h(T);
29828
29828
  }
29829
29829
  function h(T) {
29830
- const O = n.events[n.events.length - 1];
29831
- return o = O && O[1].type === "linePrefix" ? O[2].sliceSerialize(O[1], !0).length : 0, c = T, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), u(T);
29830
+ const R = n.events[n.events.length - 1];
29831
+ return o = R && R[1].type === "linePrefix" ? R[2].sliceSerialize(R[1], !0).length : 0, c = T, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), u(T);
29832
29832
  }
29833
29833
  function u(T) {
29834
29834
  return T === c ? (l++, e.consume(T), u) : l < 3 ? r(T) : (e.exit("codeFencedFenceSequence"), ye(T) ? de(e, d, "whitespace")(T) : d(T));
@@ -29867,23 +29867,23 @@ function Uz(e, t, r) {
29867
29867
  function j(T) {
29868
29868
  return e.exit("codeFenced"), t(T);
29869
29869
  }
29870
- function F(T, O, Y) {
29870
+ function F(T, R, X) {
29871
29871
  let G = 0;
29872
29872
  return B;
29873
- function B(X) {
29874
- return T.enter("lineEnding"), T.consume(X), T.exit("lineEnding"), Z;
29873
+ function B(K) {
29874
+ return T.enter("lineEnding"), T.consume(K), T.exit("lineEnding"), Z;
29875
29875
  }
29876
- function Z(X) {
29877
- return T.enter("codeFencedFence"), ye(X) ? de(T, D, "linePrefix", n.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(X) : D(X);
29876
+ function Z(K) {
29877
+ return T.enter("codeFencedFence"), ye(K) ? de(T, D, "linePrefix", n.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(K) : D(K);
29878
29878
  }
29879
- function D(X) {
29880
- return X === c ? (T.enter("codeFencedFenceSequence"), ie(X)) : Y(X);
29879
+ function D(K) {
29880
+ return K === c ? (T.enter("codeFencedFenceSequence"), ie(K)) : X(K);
29881
29881
  }
29882
- function ie(X) {
29883
- return X === c ? (G++, T.consume(X), ie) : G >= l ? (T.exit("codeFencedFenceSequence"), ye(X) ? de(T, te, "whitespace")(X) : te(X)) : Y(X);
29882
+ function ie(K) {
29883
+ return K === c ? (G++, T.consume(K), ie) : G >= l ? (T.exit("codeFencedFenceSequence"), ye(K) ? de(T, te, "whitespace")(K) : te(K)) : X(K);
29884
29884
  }
29885
- function te(X) {
29886
- return X === null || ee(X) ? (T.exit("codeFencedFence"), O(X)) : Y(X);
29885
+ function te(K) {
29886
+ return K === null || ee(K) ? (T.exit("codeFencedFence"), R(K)) : X(K);
29887
29887
  }
29888
29888
  }
29889
29889
  }
@@ -30573,13 +30573,13 @@ function vT(e, t, r) {
30573
30573
  return I === 61 ? (e.consume(I), T) : ye(I) ? (e.consume(I), F) : q(I);
30574
30574
  }
30575
30575
  function T(I) {
30576
- return I === null || I === 60 || I === 61 || I === 62 || I === 96 ? r(I) : I === 34 || I === 39 ? (e.consume(I), s = I, O) : ye(I) ? (e.consume(I), T) : Y(I);
30576
+ return I === null || I === 60 || I === 61 || I === 62 || I === 96 ? r(I) : I === 34 || I === 39 ? (e.consume(I), s = I, R) : ye(I) ? (e.consume(I), T) : X(I);
30577
30577
  }
30578
- function O(I) {
30579
- return I === s ? (e.consume(I), s = null, G) : I === null || ee(I) ? r(I) : (e.consume(I), O);
30578
+ function R(I) {
30579
+ return I === s ? (e.consume(I), s = null, G) : I === null || ee(I) ? r(I) : (e.consume(I), R);
30580
30580
  }
30581
- function Y(I) {
30582
- return I === null || I === 34 || I === 39 || I === 47 || I === 60 || I === 61 || I === 62 || I === 96 || Se(I) ? F(I) : (e.consume(I), Y);
30581
+ function X(I) {
30582
+ return I === null || I === 34 || I === 39 || I === 47 || I === 60 || I === 61 || I === 62 || I === 96 || Se(I) ? F(I) : (e.consume(I), X);
30583
30583
  }
30584
30584
  function G(I) {
30585
30585
  return I === 47 || I === 62 || ye(I) ? q(I) : r(I);
@@ -30597,9 +30597,9 @@ function vT(e, t, r) {
30597
30597
  return e.check(fT, te, we)(I);
30598
30598
  }
30599
30599
  function te(I) {
30600
- return e.enter("lineEnding"), e.consume(I), e.exit("lineEnding"), X;
30600
+ return e.enter("lineEnding"), e.consume(I), e.exit("lineEnding"), K;
30601
30601
  }
30602
- function X(I) {
30602
+ function K(I) {
30603
30603
  return I === null || ee(I) ? ie(I) : (e.enter("htmlFlowData"), D(I));
30604
30604
  }
30605
30605
  function ue(I) {
@@ -30656,7 +30656,7 @@ function bT(e, t, r) {
30656
30656
  return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(L), s;
30657
30657
  }
30658
30658
  function s(L) {
30659
- return L === 33 ? (e.consume(L), h) : L === 47 ? (e.consume(L), F) : L === 63 ? (e.consume(L), q) : at(L) ? (e.consume(L), Y) : r(L);
30659
+ return L === 33 ? (e.consume(L), h) : L === 47 ? (e.consume(L), F) : L === 63 ? (e.consume(L), q) : at(L) ? (e.consume(L), X) : r(L);
30660
30660
  }
30661
30661
  function h(L) {
30662
30662
  return L === 45 ? (e.consume(L), u) : L === 91 ? (e.consume(L), o = 0, g) : at(L) ? (e.consume(L), C) : r(L);
@@ -30699,13 +30699,13 @@ function bT(e, t, r) {
30699
30699
  return at(L) ? (e.consume(L), T) : r(L);
30700
30700
  }
30701
30701
  function T(L) {
30702
- return L === 45 || Xe(L) ? (e.consume(L), T) : O(L);
30702
+ return L === 45 || Xe(L) ? (e.consume(L), T) : R(L);
30703
30703
  }
30704
- function O(L) {
30705
- return ee(L) ? (l = O, me(L)) : ye(L) ? (e.consume(L), O) : ue(L);
30704
+ function R(L) {
30705
+ return ee(L) ? (l = R, me(L)) : ye(L) ? (e.consume(L), R) : ue(L);
30706
30706
  }
30707
- function Y(L) {
30708
- return L === 45 || Xe(L) ? (e.consume(L), Y) : L === 47 || L === 62 || Se(L) ? G(L) : r(L);
30707
+ function X(L) {
30708
+ return L === 45 || Xe(L) ? (e.consume(L), X) : L === 47 || L === 62 || Se(L) ? G(L) : r(L);
30709
30709
  }
30710
30710
  function G(L) {
30711
30711
  return L === 47 ? (e.consume(L), ue) : L === 58 || L === 95 || at(L) ? (e.consume(L), B) : ee(L) ? (l = G, me(L)) : ye(L) ? (e.consume(L), G) : ue(L);
@@ -30720,12 +30720,12 @@ function bT(e, t, r) {
30720
30720
  return L === null || L === 60 || L === 61 || L === 62 || L === 96 ? r(L) : L === 34 || L === 39 ? (e.consume(L), a = L, ie) : ee(L) ? (l = D, me(L)) : ye(L) ? (e.consume(L), D) : (e.consume(L), te);
30721
30721
  }
30722
30722
  function ie(L) {
30723
- return L === a ? (e.consume(L), a = void 0, X) : L === null ? r(L) : ee(L) ? (l = ie, me(L)) : (e.consume(L), ie);
30723
+ return L === a ? (e.consume(L), a = void 0, K) : L === null ? r(L) : ee(L) ? (l = ie, me(L)) : (e.consume(L), ie);
30724
30724
  }
30725
30725
  function te(L) {
30726
30726
  return L === null || L === 34 || L === 39 || L === 60 || L === 61 || L === 96 ? r(L) : L === 47 || L === 62 || Se(L) ? G(L) : (e.consume(L), te);
30727
30727
  }
30728
- function X(L) {
30728
+ function K(L) {
30729
30729
  return L === 47 || L === 62 || Se(L) ? G(L) : r(L);
30730
30730
  }
30731
30731
  function ue(L) {
@@ -31272,12 +31272,12 @@ function hq(e, t, r) {
31272
31272
  const a = {}, o = [];
31273
31273
  let l = [], c = [];
31274
31274
  const s = {
31275
- attempt: O(F),
31276
- check: O(T),
31275
+ attempt: R(F),
31276
+ check: R(T),
31277
31277
  consume: C,
31278
31278
  enter: q,
31279
31279
  exit: j,
31280
- interrupt: O(T, {
31280
+ interrupt: R(T, {
31281
31281
  interrupt: !0
31282
31282
  })
31283
31283
  }, h = {
@@ -31295,7 +31295,7 @@ function hq(e, t, r) {
31295
31295
  let u = t.tokenize.call(h, s);
31296
31296
  return t.resolveAll && o.push(t), h;
31297
31297
  function d(Z) {
31298
- return l = Ct(l, Z), A(), l[l.length - 1] !== null ? [] : (Y(t, 0), h.events = zx(o, h.events, h), h.events);
31298
+ return l = Ct(l, Z), A(), l[l.length - 1] !== null ? [] : (X(t, 0), h.events = zx(o, h.events, h), h.events);
31299
31299
  }
31300
31300
  function m(Z, D) {
31301
31301
  return dq(k(Z), D);
@@ -31309,14 +31309,14 @@ function hq(e, t, r) {
31309
31309
  _index: D,
31310
31310
  line: ie,
31311
31311
  column: te,
31312
- offset: X
31312
+ offset: K
31313
31313
  } = n;
31314
31314
  return {
31315
31315
  _bufferIndex: Z,
31316
31316
  _index: D,
31317
31317
  line: ie,
31318
31318
  column: te,
31319
- offset: X
31319
+ offset: K
31320
31320
  };
31321
31321
  }
31322
31322
  function x(Z) {
@@ -31351,14 +31351,14 @@ function hq(e, t, r) {
31351
31351
  return D.end = g(), h.events.push(["exit", D, h]), D;
31352
31352
  }
31353
31353
  function F(Z, D) {
31354
- Y(Z, D.from);
31354
+ X(Z, D.from);
31355
31355
  }
31356
31356
  function T(Z, D) {
31357
31357
  D.restore();
31358
31358
  }
31359
- function O(Z, D) {
31359
+ function R(Z, D) {
31360
31360
  return ie;
31361
- function ie(te, X, ue) {
31361
+ function ie(te, K, ue) {
31362
31362
  let me, be, De, L;
31363
31363
  return Array.isArray(te) ? (
31364
31364
  /* c8 ignore next 1 */
@@ -31400,24 +31400,24 @@ function hq(e, t, r) {
31400
31400
  }
31401
31401
  }
31402
31402
  function je(Te) {
31403
- return Z(De, L), X;
31403
+ return Z(De, L), K;
31404
31404
  }
31405
31405
  function _e(Te) {
31406
31406
  return L.restore(), ++be < me.length ? I(me[be]) : ue;
31407
31407
  }
31408
31408
  }
31409
31409
  }
31410
- function Y(Z, D) {
31410
+ function X(Z, D) {
31411
31411
  Z.resolveAll && !o.includes(Z) && o.push(Z), Z.resolve && wt(h.events, D, h.events.length - D, Z.resolve(h.events.slice(D), h)), Z.resolveTo && (h.events = Z.resolveTo(h.events, h));
31412
31412
  }
31413
31413
  function G() {
31414
- const Z = g(), D = h.previous, ie = h.currentConstruct, te = h.events.length, X = Array.from(c);
31414
+ const Z = g(), D = h.previous, ie = h.currentConstruct, te = h.events.length, K = Array.from(c);
31415
31415
  return {
31416
31416
  from: te,
31417
31417
  restore: ue
31418
31418
  };
31419
31419
  function ue() {
31420
- n = Z, h.previous = D, h.currentConstruct = ie, h.events.length = te, c = X, B();
31420
+ n = Z, h.previous = D, h.currentConstruct = ie, h.events.length = te, c = K, B();
31421
31421
  }
31422
31422
  }
31423
31423
  function B() {
@@ -31623,7 +31623,7 @@ function xq(e) {
31623
31623
  codeFencedFenceMeta: g,
31624
31624
  codeFlowValue: B,
31625
31625
  codeIndented: s(b),
31626
- codeText: s(X),
31626
+ codeText: s(K),
31627
31627
  codeTextData: B,
31628
31628
  data: B,
31629
31629
  definition: s(),
@@ -31650,8 +31650,8 @@ function xq(e) {
31650
31650
  resourceDestinationString: L,
31651
31651
  resourceTitleString: ze,
31652
31652
  resource: we,
31653
- setextHeading: s(Y),
31654
- setextHeadingLineSequence: O,
31653
+ setextHeading: s(X),
31654
+ setextHeadingLineSequence: R,
31655
31655
  setextHeadingText: T,
31656
31656
  strong: s(),
31657
31657
  thematicBreak: s()
@@ -31847,11 +31847,11 @@ function xq(e) {
31847
31847
  function T() {
31848
31848
  this.data.setextHeadingSlurpLineEnding = !0;
31849
31849
  }
31850
- function O(P) {
31850
+ function R(P) {
31851
31851
  const $ = this.stack[this.stack.length - 1];
31852
31852
  $.depth = this.sliceSerialize(P).codePointAt(0) === 61 ? 1 : 2;
31853
31853
  }
31854
- function Y() {
31854
+ function X() {
31855
31855
  this.data.setextHeadingSlurpLineEnding = void 0;
31856
31856
  }
31857
31857
  function G(P) {
@@ -31887,7 +31887,7 @@ function xq(e) {
31887
31887
  const P = this.resume(), $ = this.stack[this.stack.length - 1];
31888
31888
  $.value = P;
31889
31889
  }
31890
- function X() {
31890
+ function K() {
31891
31891
  const P = this.resume(), $ = this.stack[this.stack.length - 1];
31892
31892
  $.value = P;
31893
31893
  }
@@ -34228,11 +34228,11 @@ function NH(e, t) {
34228
34228
  for (const u of EH)
34229
34229
  Object.hasOwn(t, u.from) && ("" + u.from + (u.to ? "use `" + u.to + "` instead" : "remove it") + DH + u.id, void 0);
34230
34230
  return gw(e, h), iz(e, {
34231
- Fragment: R.Fragment,
34231
+ Fragment: _.Fragment,
34232
34232
  components: a,
34233
34233
  ignoreInvalidStyle: !0,
34234
- jsx: R.jsx,
34235
- jsxs: R.jsxs,
34234
+ jsx: _.jsx,
34235
+ jsxs: _.jsxs,
34236
34236
  passKeys: !0,
34237
34237
  passNode: !0
34238
34238
  });
@@ -34461,12 +34461,12 @@ function WH(e, t, r) {
34461
34461
  let F = 0;
34462
34462
  return de(C, T, "linePrefix", n.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
34463
34463
  function T(G) {
34464
- return C.enter("mathFlowFence"), C.enter("mathFlowFenceSequence"), O(G);
34464
+ return C.enter("mathFlowFence"), C.enter("mathFlowFenceSequence"), R(G);
34465
34465
  }
34466
- function O(G) {
34467
- return G === 36 ? (F++, C.consume(G), O) : F < l ? j(G) : (C.exit("mathFlowFenceSequence"), de(C, Y, "whitespace")(G));
34466
+ function R(G) {
34467
+ return G === 36 ? (F++, C.consume(G), R) : F < l ? j(G) : (C.exit("mathFlowFenceSequence"), de(C, X, "whitespace")(G));
34468
34468
  }
34469
- function Y(G) {
34469
+ function X(G) {
34470
34470
  return G === null || ee(G) ? (C.exit("mathFlowFence"), q(G)) : j(G);
34471
34471
  }
34472
34472
  }
@@ -34569,7 +34569,7 @@ class At {
34569
34569
  return new At(r, xt.range(this, t));
34570
34570
  }
34571
34571
  }
34572
- class U {
34572
+ class N {
34573
34573
  // Error start position based on passed-in Token or ParseNode.
34574
34574
  // Length of affected text based on passed-in Token or ParseNode.
34575
34575
  // The underlying error message without any context added.
@@ -34585,10 +34585,10 @@ class U {
34585
34585
  o + 15 < c.length ? u = c.slice(o, o + 15) + "…" : u = c.slice(o), n += h + s + u;
34586
34586
  }
34587
34587
  var d = new Error(n);
34588
- return d.name = "ParseError", d.__proto__ = U.prototype, d.position = a, a != null && o != null && (d.length = o - a), d.rawMessage = t, d;
34588
+ return d.name = "ParseError", d.__proto__ = N.prototype, d.position = a, a != null && o != null && (d.length = o - a), d.rawMessage = t, d;
34589
34589
  }
34590
34590
  }
34591
- U.prototype.__proto__ = Error.prototype;
34591
+ N.prototype.__proto__ = Error.prototype;
34592
34592
  var JH = function(t, r) {
34593
34593
  return t.indexOf(r) !== -1;
34594
34594
  }, eB = function(t, r) {
@@ -34746,7 +34746,7 @@ class xw {
34746
34746
  var a = this.strict;
34747
34747
  if (typeof a == "function" && (a = a(t, r, n)), !(!a || a === "ignore")) {
34748
34748
  if (a === !0 || a === "error")
34749
- throw new U("LaTeX-incompatible input and strict mode is set to 'error': " + (r + " [" + t + "]"), n);
34749
+ throw new N("LaTeX-incompatible input and strict mode is set to 'error': " + (r + " [" + t + "]"), n);
34750
34750
  a === "warn" ? typeof console < "u" && console.warn("LaTeX-incompatible input and strict mode is set to 'warn': " + (r + " [" + t + "]")) : typeof console < "u" && console.warn("LaTeX-incompatible input and strict mode is set to " + ("unrecognized '" + a + "': " + r + " [" + t + "]"));
34751
34751
  }
34752
34752
  }
@@ -37890,7 +37890,7 @@ var UM = {
37890
37890
  else if (t.unit === "em")
37891
37891
  n = a.fontMetrics().quad;
37892
37892
  else
37893
- throw new U("Invalid unit: '" + t.unit + "'");
37893
+ throw new N("Invalid unit: '" + t.unit + "'");
37894
37894
  a !== r && (n *= a.sizeMultiplier / r.sizeMultiplier);
37895
37895
  }
37896
37896
  return Math.min(t.number * n, r.maxSize);
@@ -37924,7 +37924,7 @@ var UM = {
37924
37924
  for (var o in this.attributes)
37925
37925
  if (this.attributes.hasOwnProperty(o)) {
37926
37926
  if (qB.test(o))
37927
- throw new U("Invalid attribute name '" + o + "'");
37927
+ throw new N("Invalid attribute name '" + o + "'");
37928
37928
  r += " " + o + '="' + re.escape(this.attributes[o]) + '"';
37929
37929
  }
37930
37930
  r += ">";
@@ -38846,7 +38846,7 @@ var Qr = [
38846
38846
  return [Qr[0][2], Qr[0][l]];
38847
38847
  if (120486 < o && o < 120782)
38848
38848
  return ["", ""];
38849
- throw new U("Unsupported character: " + t);
38849
+ throw new N("Unsupported character: " + t);
38850
38850
  }
38851
38851
  }, Bx = function(t, r, n) {
38852
38852
  return Ae[n][t] && Ae[n][t].replace && (t = Ae[n][t].replace), {
@@ -39019,10 +39019,10 @@ var Qr = [
39019
39019
  j.style.height = W(m);
39020
39020
  var F;
39021
39021
  if (d < 0) {
39022
- var T = ht([], []), O = ht(["vlist"], [T]);
39023
- O.style.height = W(-d);
39024
- var Y = ht(["vlist-s"], [new zt("​")]);
39025
- F = [ht(["vlist-r"], [j, Y]), ht(["vlist-r"], [O])];
39022
+ var T = ht([], []), R = ht(["vlist"], [T]);
39023
+ R.style.height = W(-d);
39024
+ var X = ht(["vlist-s"], [new zt("​")]);
39025
+ F = [ht(["vlist-r"], [j, X]), ht(["vlist-r"], [R])];
39026
39026
  } else
39027
39027
  F = [ht(["vlist-r"], [j])];
39028
39028
  var G = ht(["vlist-t"], F);
@@ -39217,7 +39217,7 @@ var Qr = [
39217
39217
  mop: He
39218
39218
  }
39219
39219
  }, JS = {}, wx = {}, bx = {};
39220
- function K(e) {
39220
+ function Y(e) {
39221
39221
  for (var {
39222
39222
  type: t,
39223
39223
  names: r,
@@ -39246,7 +39246,7 @@ function _0(e) {
39246
39246
  htmlBuilder: r,
39247
39247
  mathmlBuilder: n
39248
39248
  } = e;
39249
- K({
39249
+ Y({
39250
39250
  type: t,
39251
39251
  names: [],
39252
39252
  props: {
@@ -39356,7 +39356,7 @@ var Lx = function(t) {
39356
39356
  }
39357
39357
  return a;
39358
39358
  } else
39359
- throw new U("Got group of unknown type: '" + t.type + "'");
39359
+ throw new N("Got group of unknown type: '" + t.type + "'");
39360
39360
  };
39361
39361
  function en(e, t) {
39362
39362
  var r = r1(["base"], e, t), n = r1(["strut"]);
@@ -39493,15 +39493,15 @@ class nP {
39493
39493
  return this.character ? this.character : " ";
39494
39494
  }
39495
39495
  }
39496
- var V = {
39496
+ var O = {
39497
39497
  MathNode: Mt,
39498
39498
  TextNode: Ut,
39499
39499
  SpaceNode: nP,
39500
39500
  newDocumentFragment: tC
39501
39501
  }, Tt = function(t, r, n) {
39502
- return Ae[r][t] && Ae[r][t].replace && t.charCodeAt(0) !== 55349 && !($S.hasOwnProperty(t) && n && (n.fontFamily && n.fontFamily.slice(4, 6) === "tt" || n.font && n.font.slice(4, 6) === "tt")) && (t = Ae[r][t].replace), new V.TextNode(t);
39502
+ return Ae[r][t] && Ae[r][t].replace && t.charCodeAt(0) !== 55349 && !($S.hasOwnProperty(t) && n && (n.fontFamily && n.fontFamily.slice(4, 6) === "tt" || n.font && n.font.slice(4, 6) === "tt")) && (t = Ae[r][t].replace), new O.TextNode(t);
39503
39503
  }, Sw = function(t) {
39504
- return t.length === 1 ? t[0] : new V.MathNode("mrow", t);
39504
+ return t.length === 1 ? t[0] : new O.MathNode("mrow", t);
39505
39505
  }, Cw = function(t, r) {
39506
39506
  if (r.fontFamily === "texttt")
39507
39507
  return "monospace";
@@ -39591,19 +39591,19 @@ var yt = function(t, r, n) {
39591
39591
  return Sw(yt(t, r, n));
39592
39592
  }, Ce = function(t, r) {
39593
39593
  if (!t)
39594
- return new V.MathNode("mrow");
39594
+ return new O.MathNode("mrow");
39595
39595
  if (bx[t.type]) {
39596
39596
  var n = bx[t.type](t, r);
39597
39597
  return n;
39598
39598
  } else
39599
- throw new U("Got group of unknown type: '" + t.type + "'");
39599
+ throw new N("Got group of unknown type: '" + t.type + "'");
39600
39600
  };
39601
39601
  function pL(e, t, r, n, a) {
39602
39602
  var o = yt(e, r), l;
39603
- o.length === 1 && o[0] instanceof Mt && re.contains(["mrow", "mtable"], o[0].type) ? l = o[0] : l = new V.MathNode("mrow", o);
39604
- var c = new V.MathNode("annotation", [new V.TextNode(t)]);
39603
+ o.length === 1 && o[0] instanceof Mt && re.contains(["mrow", "mtable"], o[0].type) ? l = o[0] : l = new O.MathNode("mrow", o);
39604
+ var c = new O.MathNode("annotation", [new O.TextNode(t)]);
39605
39605
  c.setAttribute("encoding", "application/x-tex");
39606
- var s = new V.MathNode("semantics", [l, c]), h = new V.MathNode("math", [s]);
39606
+ var s = new O.MathNode("semantics", [l, c]), h = new O.MathNode("math", [s]);
39607
39607
  h.setAttribute("xmlns", "http://www.w3.org/1998/Math/MathML"), n && h.setAttribute("display", "block");
39608
39608
  var u = a ? "katex" : "katex-mathml";
39609
39609
  return H.makeSpan([u], [h]);
@@ -39681,7 +39681,7 @@ var rC = function(t) {
39681
39681
  "\\cdleftarrow": "←",
39682
39682
  "\\cdlongequal": "="
39683
39683
  }, lP = function(t) {
39684
- var r = new V.MathNode("mo", [new V.TextNode(oP[t.replace(/^\\/, "")])]);
39684
+ var r = new O.MathNode("mo", [new O.TextNode(oP[t.replace(/^\\/, "")])]);
39685
39685
  return r.setAttribute("stretchy", "true"), r;
39686
39686
  }, cP = {
39687
39687
  // path(s), minWidth, height, align
@@ -39755,25 +39755,25 @@ var rC = function(t) {
39755
39755
  height: k
39756
39756
  };
39757
39757
  } else {
39758
- var b = [], C = cP[s], [q, j, F] = C, T = F / 1e3, O = q.length, Y, G;
39759
- if (O === 1) {
39758
+ var b = [], C = cP[s], [q, j, F] = C, T = F / 1e3, R = q.length, X, G;
39759
+ if (R === 1) {
39760
39760
  var B = C[3];
39761
- Y = ["hide-tail"], G = [B];
39762
- } else if (O === 2)
39763
- Y = ["halfarrow-left", "halfarrow-right"], G = ["xMinYMin", "xMaxYMin"];
39764
- else if (O === 3)
39765
- Y = ["brace-left", "brace-center", "brace-right"], G = ["xMinYMin", "xMidYMin", "xMaxYMin"];
39761
+ X = ["hide-tail"], G = [B];
39762
+ } else if (R === 2)
39763
+ X = ["halfarrow-left", "halfarrow-right"], G = ["xMinYMin", "xMaxYMin"];
39764
+ else if (R === 3)
39765
+ X = ["brace-left", "brace-center", "brace-right"], G = ["xMinYMin", "xMidYMin", "xMaxYMin"];
39766
39766
  else
39767
39767
  throw new Error(`Correct katexImagesData or update code here to support
39768
- ` + O + " children.");
39769
- for (var Z = 0; Z < O; Z++) {
39768
+ ` + R + " children.");
39769
+ for (var Z = 0; Z < R; Z++) {
39770
39770
  var D = new p1(q[Z]), ie = new t1([D], {
39771
39771
  width: "400em",
39772
39772
  height: W(T),
39773
39773
  viewBox: "0 0 " + c + " " + F,
39774
39774
  preserveAspectRatio: G[Z] + " slice"
39775
- }), te = H.makeSvgSpan([Y[Z]], [ie], r);
39776
- if (O === 1)
39775
+ }), te = H.makeSvgSpan([X[Z]], [ie], r);
39776
+ if (R === 1)
39777
39777
  return {
39778
39778
  span: te,
39779
39779
  minWidth: j,
@@ -39893,10 +39893,10 @@ var Aw = (e, t) => {
39893
39893
  var b = H.makeSpan(["mord", "accent"], [m], t);
39894
39894
  return a ? (a.children[0] = b, a.height = Math.max(b.height, a.height), a.classes[0] = "mord", a) : b;
39895
39895
  }, aC = (e, t) => {
39896
- var r = e.isStretchy ? n1.mathMLnode(e.label) : new V.MathNode("mo", [Tt(e.label, e.mode)]), n = new V.MathNode("mover", [Ce(e.base, t), r]);
39896
+ var r = e.isStretchy ? n1.mathMLnode(e.label) : new O.MathNode("mo", [Tt(e.label, e.mode)]), n = new O.MathNode("mover", [Ce(e.base, t), r]);
39897
39897
  return n.setAttribute("accent", "true"), n;
39898
39898
  }, dP = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((e) => "\\" + e).join("|"));
39899
- K({
39899
+ Y({
39900
39900
  type: "accent",
39901
39901
  names: ["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring", "\\widecheck", "\\widehat", "\\widetilde", "\\overrightarrow", "\\overleftarrow", "\\Overrightarrow", "\\overleftrightarrow", "\\overgroup", "\\overlinesegment", "\\overleftharpoon", "\\overrightharpoon"],
39902
39902
  props: {
@@ -39916,7 +39916,7 @@ K({
39916
39916
  htmlBuilder: Aw,
39917
39917
  mathmlBuilder: aC
39918
39918
  });
39919
- K({
39919
+ Y({
39920
39920
  type: "accent",
39921
39921
  names: ["\\'", "\\`", "\\^", "\\~", "\\=", "\\u", "\\.", '\\"', "\\c", "\\r", "\\H", "\\v", "\\textcircled"],
39922
39922
  props: {
@@ -39940,7 +39940,7 @@ K({
39940
39940
  htmlBuilder: Aw,
39941
39941
  mathmlBuilder: aC
39942
39942
  });
39943
- K({
39943
+ Y({
39944
39944
  type: "accentUnder",
39945
39945
  names: ["\\underleftarrow", "\\underrightarrow", "\\underleftrightarrow", "\\undergroup", "\\underlinesegment", "\\utilde"],
39946
39946
  props: {
@@ -39977,15 +39977,15 @@ K({
39977
39977
  return H.makeSpan(["mord", "accentunder"], [o], t);
39978
39978
  },
39979
39979
  mathmlBuilder: (e, t) => {
39980
- var r = n1.mathMLnode(e.label), n = new V.MathNode("munder", [Ce(e.base, t), r]);
39980
+ var r = n1.mathMLnode(e.label), n = new O.MathNode("munder", [Ce(e.base, t), r]);
39981
39981
  return n.setAttribute("accentunder", "true"), n;
39982
39982
  }
39983
39983
  });
39984
39984
  var tn = (e) => {
39985
- var t = new V.MathNode("mpadded", e ? [e] : []);
39985
+ var t = new O.MathNode("mpadded", e ? [e] : []);
39986
39986
  return t.setAttribute("width", "+0.6em"), t.setAttribute("lspace", "0.3em"), t;
39987
39987
  };
39988
- K({
39988
+ Y({
39989
39989
  type: "xArrow",
39990
39990
  names: [
39991
39991
  "\\xleftarrow",
@@ -40085,14 +40085,14 @@ K({
40085
40085
  var a = tn(Ce(e.body, t));
40086
40086
  if (e.below) {
40087
40087
  var o = tn(Ce(e.below, t));
40088
- n = new V.MathNode("munderover", [r, o, a]);
40088
+ n = new O.MathNode("munderover", [r, o, a]);
40089
40089
  } else
40090
- n = new V.MathNode("mover", [r, a]);
40090
+ n = new O.MathNode("mover", [r, a]);
40091
40091
  } else if (e.below) {
40092
40092
  var l = tn(Ce(e.below, t));
40093
- n = new V.MathNode("munder", [r, l]);
40093
+ n = new O.MathNode("munder", [r, l]);
40094
40094
  } else
40095
- n = tn(), n = new V.MathNode("mover", [r, n]);
40095
+ n = tn(), n = new O.MathNode("mover", [r, n]);
40096
40096
  return n;
40097
40097
  }
40098
40098
  });
@@ -40103,9 +40103,9 @@ function iC(e, t) {
40103
40103
  }
40104
40104
  function oC(e, t) {
40105
40105
  var r, n = yt(e.body, t);
40106
- return e.mclass === "minner" ? r = new V.MathNode("mpadded", n) : e.mclass === "mord" ? e.isCharacterBox ? (r = n[0], r.type = "mi") : r = new V.MathNode("mi", n) : (e.isCharacterBox ? (r = n[0], r.type = "mo") : r = new V.MathNode("mo", n), e.mclass === "mbin" ? (r.attributes.lspace = "0.22em", r.attributes.rspace = "0.22em") : e.mclass === "mpunct" ? (r.attributes.lspace = "0em", r.attributes.rspace = "0.17em") : e.mclass === "mopen" || e.mclass === "mclose" ? (r.attributes.lspace = "0em", r.attributes.rspace = "0em") : e.mclass === "minner" && (r.attributes.lspace = "0.0556em", r.attributes.width = "+0.1111em")), r;
40106
+ return e.mclass === "minner" ? r = new O.MathNode("mpadded", n) : e.mclass === "mord" ? e.isCharacterBox ? (r = n[0], r.type = "mi") : r = new O.MathNode("mi", n) : (e.isCharacterBox ? (r = n[0], r.type = "mo") : r = new O.MathNode("mo", n), e.mclass === "mbin" ? (r.attributes.lspace = "0.22em", r.attributes.rspace = "0.22em") : e.mclass === "mpunct" ? (r.attributes.lspace = "0em", r.attributes.rspace = "0.17em") : e.mclass === "mopen" || e.mclass === "mclose" ? (r.attributes.lspace = "0em", r.attributes.rspace = "0em") : e.mclass === "minner" && (r.attributes.lspace = "0.0556em", r.attributes.width = "+0.1111em")), r;
40107
40107
  }
40108
- K({
40108
+ Y({
40109
40109
  type: "mclass",
40110
40110
  names: ["\\mathord", "\\mathbin", "\\mathrel", "\\mathopen", "\\mathclose", "\\mathpunct", "\\mathinner"],
40111
40111
  props: {
@@ -40133,7 +40133,7 @@ var Fx = (e) => {
40133
40133
  var t = e.type === "ordgroup" && e.body.length ? e.body[0] : e;
40134
40134
  return t.type === "atom" && (t.family === "bin" || t.family === "rel") ? "m" + t.family : "mord";
40135
40135
  };
40136
- K({
40136
+ Y({
40137
40137
  type: "mclass",
40138
40138
  names: ["\\@binrel"],
40139
40139
  props: {
@@ -40152,7 +40152,7 @@ K({
40152
40152
  };
40153
40153
  }
40154
40154
  });
40155
- K({
40155
+ Y({
40156
40156
  type: "mclass",
40157
40157
  names: ["\\stackrel", "\\overset", "\\underset"],
40158
40158
  props: {
@@ -40191,7 +40191,7 @@ K({
40191
40191
  htmlBuilder: iC,
40192
40192
  mathmlBuilder: oC
40193
40193
  });
40194
- K({
40194
+ Y({
40195
40195
  type: "pmb",
40196
40196
  names: ["\\pmb"],
40197
40197
  props: {
@@ -40214,7 +40214,7 @@ K({
40214
40214
  return n.style.textShadow = "0.02em 0.01em 0.04px", n;
40215
40215
  },
40216
40216
  mathmlBuilder(e, t) {
40217
- var r = yt(e.body, t), n = new V.MathNode("mstyle", r);
40217
+ var r = yt(e.body, t), n = new O.MathNode("mstyle", r);
40218
40218
  return n.setAttribute("style", "text-shadow: 0.02em 0.01em 0.04px"), n;
40219
40219
  }
40220
40220
  });
@@ -40281,7 +40281,7 @@ function fP(e) {
40281
40281
  t[t.length - 1].length === 0 && t.pop();
40282
40282
  break;
40283
40283
  } else
40284
- throw new U("Expected \\\\ or \\cr or \\end", e.nextToken);
40284
+ throw new N("Expected \\\\ or \\cr or \\end", e.nextToken);
40285
40285
  }
40286
40286
  for (var n = [], a = [n], o = 0; o < t.length; o++) {
40287
40287
  for (var l = t[o], c = yL(), s = 0; s < l.length; s++)
@@ -40306,14 +40306,14 @@ function fP(e) {
40306
40306
  break;
40307
40307
  }
40308
40308
  if (kL(l[k]))
40309
- throw new U("Missing a " + h + " character to complete a CD arrow.", l[k]);
40309
+ throw new N("Missing a " + h + " character to complete a CD arrow.", l[k]);
40310
40310
  u[d].body.push(l[k]);
40311
40311
  }
40312
40312
  if (m)
40313
- throw new U("Missing a " + h + " character to complete a CD arrow.", l[s]);
40313
+ throw new N("Missing a " + h + " character to complete a CD arrow.", l[s]);
40314
40314
  }
40315
40315
  else
40316
- throw new U('Expected one of "<>AV=|." after @', l[s]);
40316
+ throw new N('Expected one of "<>AV=|." after @', l[s]);
40317
40317
  var g = mP(h, u, e), x = {
40318
40318
  type: "styling",
40319
40319
  body: [g],
@@ -40346,7 +40346,7 @@ function fP(e) {
40346
40346
  hLinesBeforeRow: new Array(a.length + 1).fill([])
40347
40347
  };
40348
40348
  }
40349
- K({
40349
+ Y({
40350
40350
  type: "cdlabel",
40351
40351
  names: ["\\\\cdleft", "\\\\cdright"],
40352
40352
  props: {
@@ -40369,11 +40369,11 @@ K({
40369
40369
  return n.classes.push("cd-label-" + e.side), n.style.bottom = W(0.8 - n.depth), n.height = 0, n.depth = 0, n;
40370
40370
  },
40371
40371
  mathmlBuilder(e, t) {
40372
- var r = new V.MathNode("mrow", [Ce(e.label, t)]);
40373
- return r = new V.MathNode("mpadded", [r]), r.setAttribute("width", "0"), e.side === "left" && r.setAttribute("lspace", "-1width"), r.setAttribute("voffset", "0.7em"), r = new V.MathNode("mstyle", [r]), r.setAttribute("displaystyle", "false"), r.setAttribute("scriptlevel", "1"), r;
40372
+ var r = new O.MathNode("mrow", [Ce(e.label, t)]);
40373
+ return r = new O.MathNode("mpadded", [r]), r.setAttribute("width", "0"), e.side === "left" && r.setAttribute("lspace", "-1width"), r.setAttribute("voffset", "0.7em"), r = new O.MathNode("mstyle", [r]), r.setAttribute("displaystyle", "false"), r.setAttribute("scriptlevel", "1"), r;
40374
40374
  }
40375
40375
  });
40376
- K({
40376
+ Y({
40377
40377
  type: "cdlabelparent",
40378
40378
  names: ["\\\\cdparent"],
40379
40379
  props: {
@@ -40394,10 +40394,10 @@ K({
40394
40394
  return r.classes.push("cd-vert-arrow"), r;
40395
40395
  },
40396
40396
  mathmlBuilder(e, t) {
40397
- return new V.MathNode("mrow", [Ce(e.fragment, t)]);
40397
+ return new O.MathNode("mrow", [Ce(e.fragment, t)]);
40398
40398
  }
40399
40399
  });
40400
- K({
40400
+ Y({
40401
40401
  type: "textord",
40402
40402
  names: ["\\@char"],
40403
40403
  props: {
@@ -40413,9 +40413,9 @@ K({
40413
40413
  }
40414
40414
  var s = parseInt(o), h;
40415
40415
  if (isNaN(s))
40416
- throw new U("\\@char has non-numeric argument " + o);
40416
+ throw new N("\\@char has non-numeric argument " + o);
40417
40417
  if (s < 0 || s >= 1114111)
40418
- throw new U("\\@char with invalid code point " + o);
40418
+ throw new N("\\@char with invalid code point " + o);
40419
40419
  return s <= 65535 ? h = String.fromCharCode(s) : (s -= 65536, h = String.fromCharCode((s >> 10) + 55296, (s & 1023) + 56320)), {
40420
40420
  type: "textord",
40421
40421
  mode: r.mode,
@@ -40427,10 +40427,10 @@ var lC = (e, t) => {
40427
40427
  var r = Ue(e.body, t.withColor(e.color), !1);
40428
40428
  return H.makeFragment(r);
40429
40429
  }, cC = (e, t) => {
40430
- var r = yt(e.body, t.withColor(e.color)), n = new V.MathNode("mstyle", r);
40430
+ var r = yt(e.body, t.withColor(e.color)), n = new O.MathNode("mstyle", r);
40431
40431
  return n.setAttribute("mathcolor", e.color), n;
40432
40432
  };
40433
- K({
40433
+ Y({
40434
40434
  type: "color",
40435
40435
  names: ["\\textcolor"],
40436
40436
  props: {
@@ -40452,7 +40452,7 @@ K({
40452
40452
  htmlBuilder: lC,
40453
40453
  mathmlBuilder: cC
40454
40454
  });
40455
- K({
40455
+ Y({
40456
40456
  type: "color",
40457
40457
  names: ["\\color"],
40458
40458
  props: {
@@ -40477,7 +40477,7 @@ K({
40477
40477
  htmlBuilder: lC,
40478
40478
  mathmlBuilder: cC
40479
40479
  });
40480
- K({
40480
+ Y({
40481
40481
  type: "cr",
40482
40482
  names: ["\\\\"],
40483
40483
  props: {
@@ -40503,7 +40503,7 @@ K({
40503
40503
  return e.newLine && (r.classes.push("newline"), e.size && (r.style.marginTop = W(Be(e.size, t)))), r;
40504
40504
  },
40505
40505
  mathmlBuilder(e, t) {
40506
- var r = new V.MathNode("mspace");
40506
+ var r = new O.MathNode("mspace");
40507
40507
  return e.newLine && (r.setAttribute("linebreak", "newline"), e.size && r.setAttribute("height", W(Be(e.size, t)))), r;
40508
40508
  }
40509
40509
  });
@@ -40520,7 +40520,7 @@ var $M = {
40520
40520
  }, sC = (e) => {
40521
40521
  var t = e.text;
40522
40522
  if (/^(?:[\\{}$&#^_]|EOF)$/.test(t))
40523
- throw new U("Expected a control sequence", e);
40523
+ throw new N("Expected a control sequence", e);
40524
40524
  return t;
40525
40525
  }, gP = (e) => {
40526
40526
  var t = e.gullet.popToken();
@@ -40534,7 +40534,7 @@ var $M = {
40534
40534
  unexpandable: !e.gullet.isExpandable(r.text)
40535
40535
  }), e.gullet.macros.set(t, a, n);
40536
40536
  };
40537
- K({
40537
+ Y({
40538
40538
  type: "internal",
40539
40539
  names: [
40540
40540
  "\\global",
@@ -40555,10 +40555,10 @@ K({
40555
40555
  var n = t.fetch();
40556
40556
  if ($M[n.text])
40557
40557
  return (r === "\\global" || r === "\\\\globallong") && (n.text = $M[n.text]), he(t.parseFunction(), "internal");
40558
- throw new U("Invalid token after macro prefix", n);
40558
+ throw new N("Invalid token after macro prefix", n);
40559
40559
  }
40560
40560
  });
40561
- K({
40561
+ Y({
40562
40562
  type: "internal",
40563
40563
  names: ["\\def", "\\gdef", "\\edef", "\\xdef"],
40564
40564
  props: {
@@ -40572,7 +40572,7 @@ K({
40572
40572
  funcName: r
40573
40573
  } = e, n = t.gullet.popToken(), a = n.text;
40574
40574
  if (/^(?:[\\{}$&#^_]|EOF)$/.test(a))
40575
- throw new U("Expected a control sequence", n);
40575
+ throw new N("Expected a control sequence", n);
40576
40576
  for (var o = 0, l, c = [[]]; t.gullet.future().text !== "{"; )
40577
40577
  if (n = t.gullet.popToken(), n.text === "#") {
40578
40578
  if (t.gullet.future().text === "{") {
@@ -40580,13 +40580,13 @@ K({
40580
40580
  break;
40581
40581
  }
40582
40582
  if (n = t.gullet.popToken(), !/^[1-9]$/.test(n.text))
40583
- throw new U('Invalid argument number "' + n.text + '"');
40583
+ throw new N('Invalid argument number "' + n.text + '"');
40584
40584
  if (parseInt(n.text) !== o + 1)
40585
- throw new U('Argument number "' + n.text + '" out of order');
40585
+ throw new N('Argument number "' + n.text + '" out of order');
40586
40586
  o++, c.push([]);
40587
40587
  } else {
40588
40588
  if (n.text === "EOF")
40589
- throw new U("Expected a macro definition");
40589
+ throw new N("Expected a macro definition");
40590
40590
  c[o].push(n.text);
40591
40591
  }
40592
40592
  var {
@@ -40602,7 +40602,7 @@ K({
40602
40602
  };
40603
40603
  }
40604
40604
  });
40605
- K({
40605
+ Y({
40606
40606
  type: "internal",
40607
40607
  names: [
40608
40608
  "\\let",
@@ -40627,7 +40627,7 @@ K({
40627
40627
  };
40628
40628
  }
40629
40629
  });
40630
- K({
40630
+ Y({
40631
40631
  type: "internal",
40632
40632
  names: [
40633
40633
  "\\futurelet",
@@ -40703,11 +40703,11 @@ var xr = function(t, r, n) {
40703
40703
  var T = xr(s, k, o);
40704
40704
  j = T.height + T.depth, F = 2;
40705
40705
  }
40706
- var O = x + q + j, Y = Math.max(0, Math.ceil((r - O) / (F * b))), G = O + Y * F * b, B = a.fontMetrics().axisHeight;
40706
+ var R = x + q + j, X = Math.max(0, Math.ceil((r - R) / (F * b))), G = R + X * F * b, B = a.fontMetrics().axisHeight;
40707
40707
  n && (B *= a.sizeMultiplier);
40708
40708
  var Z = G / 2 - B, D = [];
40709
40709
  if (d.length > 0) {
40710
- var ie = G - x - q, te = Math.round(G * 1e3), X = CB(d, Math.round(ie * 1e3)), ue = new p1(d, X), me = (m / 1e3).toFixed(3) + "em", be = (te / 1e3).toFixed(3) + "em", De = new t1([ue], {
40710
+ var ie = G - x - q, te = Math.round(G * 1e3), K = CB(d, Math.round(ie * 1e3)), ue = new p1(d, K), me = (m / 1e3).toFixed(3) + "em", be = (te / 1e3).toFixed(3) + "em", De = new t1([ue], {
40711
40711
  width: me,
40712
40712
  height: be,
40713
40713
  viewBox: "0 0 " + m + " " + te
@@ -40757,7 +40757,7 @@ var xr = function(t, r, n) {
40757
40757
  return dC(t, r, !1, n, a, o);
40758
40758
  if (re.contains(LP, t))
40759
40759
  return pC(t, qr[r], !1, n, a, o);
40760
- throw new U("Illegal delimiter: '" + t + "'");
40760
+ throw new N("Illegal delimiter: '" + t + "'");
40761
40761
  }, CP = [{
40762
40762
  type: "small",
40763
40763
  style: ae.SCRIPTSCRIPT
@@ -40929,9 +40929,9 @@ function Dx(e, t) {
40929
40929
  var r = Px(e);
40930
40930
  if (r && re.contains(TP, r.text))
40931
40931
  return r;
40932
- throw r ? new U("Invalid delimiter '" + r.text + "' after '" + t.funcName + "'", e) : new U("Invalid delimiter type '" + e.type + "'", e);
40932
+ throw r ? new N("Invalid delimiter '" + r.text + "' after '" + t.funcName + "'", e) : new N("Invalid delimiter type '" + e.type + "'", e);
40933
40933
  }
40934
- K({
40934
+ Y({
40935
40935
  type: "delimsizing",
40936
40936
  names: ["\\bigl", "\\Bigl", "\\biggl", "\\Biggl", "\\bigr", "\\Bigr", "\\biggr", "\\Biggr", "\\bigm", "\\Bigm", "\\biggm", "\\Biggm", "\\big", "\\Big", "\\bigg", "\\Bigg"],
40937
40937
  props: {
@@ -40952,7 +40952,7 @@ K({
40952
40952
  mathmlBuilder: (e) => {
40953
40953
  var t = [];
40954
40954
  e.delim !== "." && t.push(Tt(e.delim, e.mode));
40955
- var r = new V.MathNode("mo", t);
40955
+ var r = new O.MathNode("mo", t);
40956
40956
  e.mclass === "mopen" || e.mclass === "mclose" ? r.setAttribute("fence", "true") : r.setAttribute("fence", "false"), r.setAttribute("stretchy", "true");
40957
40957
  var n = W(e1.sizeToMaxHeight[e.size]);
40958
40958
  return r.setAttribute("minsize", n), r.setAttribute("maxsize", n), r;
@@ -40962,7 +40962,7 @@ function fL(e) {
40962
40962
  if (!e.body)
40963
40963
  throw new Error("Bug: The leftright ParseNode wasn't fully parsed.");
40964
40964
  }
40965
- K({
40965
+ Y({
40966
40966
  type: "leftright-right",
40967
40967
  names: ["\\right"],
40968
40968
  props: {
@@ -40972,7 +40972,7 @@ K({
40972
40972
  handler: (e, t) => {
40973
40973
  var r = e.parser.gullet.macros.get("\\current@color");
40974
40974
  if (r && typeof r != "string")
40975
- throw new U("\\current@color set to non-string in \\right");
40975
+ throw new N("\\current@color set to non-string in \\right");
40976
40976
  return {
40977
40977
  type: "leftright-right",
40978
40978
  mode: e.parser.mode,
@@ -40982,7 +40982,7 @@ K({
40982
40982
  };
40983
40983
  }
40984
40984
  });
40985
- K({
40985
+ Y({
40986
40986
  type: "leftright",
40987
40987
  names: ["\\left"],
40988
40988
  props: {
@@ -41028,17 +41028,17 @@ K({
41028
41028
  fL(e);
41029
41029
  var r = yt(e.body, t);
41030
41030
  if (e.left !== ".") {
41031
- var n = new V.MathNode("mo", [Tt(e.left, e.mode)]);
41031
+ var n = new O.MathNode("mo", [Tt(e.left, e.mode)]);
41032
41032
  n.setAttribute("fence", "true"), r.unshift(n);
41033
41033
  }
41034
41034
  if (e.right !== ".") {
41035
- var a = new V.MathNode("mo", [Tt(e.right, e.mode)]);
41035
+ var a = new O.MathNode("mo", [Tt(e.right, e.mode)]);
41036
41036
  a.setAttribute("fence", "true"), e.rightColor && a.setAttribute("mathcolor", e.rightColor), r.push(a);
41037
41037
  }
41038
41038
  return Sw(r);
41039
41039
  }
41040
41040
  });
41041
- K({
41041
+ Y({
41042
41042
  type: "middle",
41043
41043
  names: ["\\middle"],
41044
41044
  props: {
@@ -41048,7 +41048,7 @@ K({
41048
41048
  handler: (e, t) => {
41049
41049
  var r = Dx(t[0], e);
41050
41050
  if (!e.parser.leftrightDepth)
41051
- throw new U("\\middle without preceding \\left", r);
41051
+ throw new N("\\middle without preceding \\left", r);
41052
41052
  return {
41053
41053
  type: "middle",
41054
41054
  mode: e.parser.mode,
@@ -41070,7 +41070,7 @@ K({
41070
41070
  return r;
41071
41071
  },
41072
41072
  mathmlBuilder: (e, t) => {
41073
- var r = e.delim === "\\vert" || e.delim === "|" ? Tt("|", "text") : Tt(e.delim, e.mode), n = new V.MathNode("mo", [r]);
41073
+ var r = e.delim === "\\vert" || e.delim === "|" ? Tt("|", "text") : Tt(e.delim, e.mode), n = new O.MathNode("mo", [r]);
41074
41074
  return n.setAttribute("fence", "true"), n.setAttribute("lspace", "0.05em"), n.setAttribute("rspace", "0.05em"), n;
41075
41075
  }
41076
41076
  });
@@ -41146,7 +41146,7 @@ var Tw = (e, t) => {
41146
41146
  }
41147
41147
  return /cancel/.test(n) && (C.height = r.height, C.depth = r.depth), /cancel/.test(n) && !c ? H.makeSpan(["mord", "cancel-lap"], [C], t) : H.makeSpan(["mord"], [C], t);
41148
41148
  }, qw = (e, t) => {
41149
- var r = 0, n = new V.MathNode(e.label.indexOf("colorbox") > -1 ? "mpadded" : "menclose", [Ce(e.body, t)]);
41149
+ var r = 0, n = new O.MathNode(e.label.indexOf("colorbox") > -1 ? "mpadded" : "menclose", [Ce(e.body, t)]);
41150
41150
  switch (e.label) {
41151
41151
  case "\\cancel":
41152
41152
  n.setAttribute("notation", "updiagonalstrike");
@@ -41184,7 +41184,7 @@ var Tw = (e, t) => {
41184
41184
  }
41185
41185
  return e.backgroundColor && n.setAttribute("mathbackground", e.backgroundColor), n;
41186
41186
  };
41187
- K({
41187
+ Y({
41188
41188
  type: "enclose",
41189
41189
  names: ["\\colorbox"],
41190
41190
  props: {
@@ -41208,7 +41208,7 @@ K({
41208
41208
  htmlBuilder: Tw,
41209
41209
  mathmlBuilder: qw
41210
41210
  });
41211
- K({
41211
+ Y({
41212
41212
  type: "enclose",
41213
41213
  names: ["\\fcolorbox"],
41214
41214
  props: {
@@ -41233,7 +41233,7 @@ K({
41233
41233
  htmlBuilder: Tw,
41234
41234
  mathmlBuilder: qw
41235
41235
  });
41236
- K({
41236
+ Y({
41237
41237
  type: "enclose",
41238
41238
  names: ["\\fbox"],
41239
41239
  props: {
@@ -41253,7 +41253,7 @@ K({
41253
41253
  };
41254
41254
  }
41255
41255
  });
41256
- K({
41256
+ Y({
41257
41257
  type: "enclose",
41258
41258
  names: ["\\cancel", "\\bcancel", "\\xcancel", "\\sout", "\\phase"],
41259
41259
  props: {
@@ -41274,7 +41274,7 @@ K({
41274
41274
  htmlBuilder: Tw,
41275
41275
  mathmlBuilder: qw
41276
41276
  });
41277
- K({
41277
+ Y({
41278
41278
  type: "enclose",
41279
41279
  names: ["\\angl"],
41280
41280
  props: {
@@ -41328,7 +41328,7 @@ function gL(e) {
41328
41328
  var Rx = (e) => {
41329
41329
  var t = e.parser.settings;
41330
41330
  if (!t.displayMode)
41331
- throw new U("{" + e.envName + "} can be used only in display mode.");
41331
+ throw new N("{" + e.envName + "} can be used only in display mode.");
41332
41332
  };
41333
41333
  function Hw(e) {
41334
41334
  if (e.indexOf("ed") === -1)
@@ -41352,7 +41352,7 @@ function f1(e, t, r) {
41352
41352
  if (k == null)
41353
41353
  l = 1;
41354
41354
  else if (l = parseFloat(k), !l || l < 0)
41355
- throw new U("Invalid \\arraystretch: " + k);
41355
+ throw new N("Invalid \\arraystretch: " + k);
41356
41356
  }
41357
41357
  e.gullet.beginGroup();
41358
41358
  var g = [], x = [g], A = [], b = [], C = s != null ? [] : void 0;
@@ -41378,7 +41378,7 @@ function f1(e, t, r) {
41378
41378
  if (T === "&") {
41379
41379
  if (d && g.length === d) {
41380
41380
  if (h || c)
41381
- throw new U("Too many tab characters: &", e.nextToken);
41381
+ throw new N("Too many tab characters: &", e.nextToken);
41382
41382
  e.settings.reportNonstrict("textEnv", "Too few columns specified in the {array} column argument.");
41383
41383
  }
41384
41384
  e.consume();
@@ -41387,10 +41387,10 @@ function f1(e, t, r) {
41387
41387
  break;
41388
41388
  } else if (T === "\\\\") {
41389
41389
  e.consume();
41390
- var O = void 0;
41391
- e.gullet.future().text !== " " && (O = e.parseSizeGroup(!0)), A.push(O ? O.value : null), j(), b.push(gL(e)), g = [], x.push(g), q();
41390
+ var R = void 0;
41391
+ e.gullet.future().text !== " " && (R = e.parseSizeGroup(!0)), A.push(R ? R.value : null), j(), b.push(gL(e)), g = [], x.push(g), q();
41392
41392
  } else
41393
- throw new U("Expected & or \\\\ or \\cr or \\end", e.nextToken);
41393
+ throw new N("Expected & or \\\\ or \\cr or \\end", e.nextToken);
41394
41394
  }
41395
41395
  return e.gullet.endGroup(), e.gullet.endGroup(), {
41396
41396
  type: "array",
@@ -41433,17 +41433,17 @@ var Zt = function(t, r) {
41433
41433
  });
41434
41434
  }
41435
41435
  for (j(l[0]), n = 0; n < t.body.length; ++n) {
41436
- var F = t.body[n], T = b, O = C;
41436
+ var F = t.body[n], T = b, R = C;
41437
41437
  c < F.length && (c = F.length);
41438
- var Y = new Array(F.length);
41438
+ var X = new Array(F.length);
41439
41439
  for (a = 0; a < F.length; ++a) {
41440
41440
  var G = ge(F[a], r);
41441
- O < G.depth && (O = G.depth), T < G.height && (T = G.height), Y[a] = G;
41441
+ R < G.depth && (R = G.depth), T < G.height && (T = G.height), X[a] = G;
41442
41442
  }
41443
41443
  var B = t.rowGaps[n], Z = 0;
41444
- B && (Z = Be(B, r), Z > 0 && (Z += C, O < Z && (O = Z), Z = 0)), t.addJot && (O += x), Y.height = T, Y.depth = O, q += T, Y.pos = q, q += O + Z, s[n] = Y, j(l[n + 1]);
41444
+ B && (Z = Be(B, r), Z > 0 && (Z += C, R < Z && (R = Z), Z = 0)), t.addJot && (R += x), X.height = T, X.depth = R, q += T, X.pos = q, q += R + Z, s[n] = X, j(l[n + 1]);
41445
41445
  }
41446
- var D = q / 2 + r.fontMetrics().axisHeight, ie = t.cols || [], te = [], X, ue, me = [];
41446
+ var D = q / 2 + r.fontMetrics().axisHeight, ie = t.cols || [], te = [], K, ue, me = [];
41447
41447
  if (t.tags && t.tags.some((Lt) => Lt))
41448
41448
  for (n = 0; n < o; ++n) {
41449
41449
  var be = s[n], De = be.pos - D, L = t.tags[n], ze = void 0;
@@ -41461,18 +41461,18 @@ var Zt = function(t, r) {
41461
41461
  ++a, ++ue
41462
41462
  ) {
41463
41463
  for (var we = ie[ue] || {}, I = !0; we.type === "separator"; ) {
41464
- if (I || (X = H.makeSpan(["arraycolsep"], []), X.style.width = W(r.fontMetrics().doubleRuleSep), te.push(X)), we.separator === "|" || we.separator === ":") {
41464
+ if (I || (K = H.makeSpan(["arraycolsep"], []), K.style.width = W(r.fontMetrics().doubleRuleSep), te.push(K)), we.separator === "|" || we.separator === ":") {
41465
41465
  var je = we.separator === "|" ? "solid" : "dashed", _e = H.makeSpan(["vertical-separator"], [], r);
41466
41466
  _e.style.height = W(q), _e.style.borderRightWidth = W(u), _e.style.borderRightStyle = je, _e.style.margin = "0 " + W(-u / 2);
41467
41467
  var Te = q - D;
41468
41468
  Te && (_e.style.verticalAlign = W(-Te)), te.push(_e);
41469
41469
  } else
41470
- throw new U("Invalid separator type: " + we.separator);
41470
+ throw new N("Invalid separator type: " + we.separator);
41471
41471
  ue++, we = ie[ue] || {}, I = !1;
41472
41472
  }
41473
41473
  if (!(a >= c)) {
41474
41474
  var Ze = void 0;
41475
- (a > 0 || t.hskipBeforeAndAfter) && (Ze = re.deflt(we.pregap, m), Ze !== 0 && (X = H.makeSpan(["arraycolsep"], []), X.style.width = W(Ze), te.push(X)));
41475
+ (a > 0 || t.hskipBeforeAndAfter) && (Ze = re.deflt(we.pregap, m), Ze !== 0 && (K = H.makeSpan(["arraycolsep"], []), K.style.width = W(Ze), te.push(K)));
41476
41476
  var Pe = [];
41477
41477
  for (n = 0; n < o; ++n) {
41478
41478
  var Ge = s[n], We = Ge[a];
@@ -41488,7 +41488,7 @@ var Zt = function(t, r) {
41488
41488
  Pe = H.makeVList({
41489
41489
  positionType: "individualShift",
41490
41490
  children: Pe
41491
- }, r), Pe = H.makeSpan(["col-align-" + (we.align || "c")], [Pe]), te.push(Pe), (a < c - 1 || t.hskipBeforeAndAfter) && (Ze = re.deflt(we.postgap, m), Ze !== 0 && (X = H.makeSpan(["arraycolsep"], []), X.style.width = W(Ze), te.push(X)));
41491
+ }, r), Pe = H.makeSpan(["col-align-" + (we.align || "c")], [Pe]), te.push(Pe), (a < c - 1 || t.hskipBeforeAndAfter) && (Ze = re.deflt(we.postgap, m), Ze !== 0 && (K = H.makeSpan(["arraycolsep"], []), K.style.width = W(Ze), te.push(K)));
41492
41492
  }
41493
41493
  }
41494
41494
  if (s = H.makeSpan(["mtable"], te), h.length > 0) {
@@ -41525,12 +41525,12 @@ var Zt = function(t, r) {
41525
41525
  l: "left ",
41526
41526
  r: "right "
41527
41527
  }, Gt = function(t, r) {
41528
- for (var n = [], a = new V.MathNode("mtd", [], ["mtr-glue"]), o = new V.MathNode("mtd", [], ["mml-eqn-num"]), l = 0; l < t.body.length; l++) {
41528
+ for (var n = [], a = new O.MathNode("mtd", [], ["mtr-glue"]), o = new O.MathNode("mtd", [], ["mml-eqn-num"]), l = 0; l < t.body.length; l++) {
41529
41529
  for (var c = t.body[l], s = [], h = 0; h < c.length; h++)
41530
- s.push(new V.MathNode("mtd", [Ce(c[h], r)]));
41531
- t.tags && t.tags[l] && (s.unshift(a), s.push(a), t.leqno ? s.unshift(o) : s.push(o)), n.push(new V.MathNode("mtr", s));
41530
+ s.push(new O.MathNode("mtd", [Ce(c[h], r)]));
41531
+ t.tags && t.tags[l] && (s.unshift(a), s.push(a), t.leqno ? s.unshift(o) : s.push(o)), n.push(new O.MathNode("mtr", s));
41532
41532
  }
41533
- var u = new V.MathNode("mtable", n), d = t.arraystretch === 0.5 ? 0.1 : 0.16 + t.arraystretch - 1 + (t.addJot ? 0.09 : 0);
41533
+ var u = new O.MathNode("mtable", n), d = t.arraystretch === 0.5 ? 0.1 : 0.16 + t.arraystretch - 1 + (t.addJot ? 0.09 : 0);
41534
41534
  u.setAttribute("rowspacing", W(d));
41535
41535
  var m = "", k = "";
41536
41536
  if (t.cols && t.cols.length > 0) {
@@ -41545,11 +41545,11 @@ var Zt = function(t, r) {
41545
41545
  F += T % 2 ? "0em " : "1em ";
41546
41546
  u.setAttribute("columnspacing", F.trim());
41547
41547
  } else t.colSeparationType === "alignat" || t.colSeparationType === "gather" ? u.setAttribute("columnspacing", "0em") : t.colSeparationType === "small" ? u.setAttribute("columnspacing", "0.2778em") : t.colSeparationType === "CD" ? u.setAttribute("columnspacing", "0.5em") : u.setAttribute("columnspacing", "1em");
41548
- var O = "", Y = t.hLinesBeforeRow;
41549
- m += Y[0].length > 0 ? "left " : "", m += Y[Y.length - 1].length > 0 ? "right " : "";
41550
- for (var G = 1; G < Y.length - 1; G++)
41551
- O += Y[G].length === 0 ? "none " : Y[G][0] ? "dashed " : "solid ";
41552
- return /[sd]/.test(O) && u.setAttribute("rowlines", O.trim()), m !== "" && (u = new V.MathNode("menclose", [u]), u.setAttribute("notation", m.trim())), t.arraystretch && t.arraystretch < 1 && (u = new V.MathNode("mstyle", [u]), u.setAttribute("scriptlevel", "1")), u;
41548
+ var R = "", X = t.hLinesBeforeRow;
41549
+ m += X[0].length > 0 ? "left " : "", m += X[X.length - 1].length > 0 ? "right " : "";
41550
+ for (var G = 1; G < X.length - 1; G++)
41551
+ R += X[G].length === 0 ? "none " : X[G][0] ? "dashed " : "solid ";
41552
+ return /[sd]/.test(R) && u.setAttribute("rowlines", R.trim()), m !== "" && (u = new O.MathNode("menclose", [u]), u.setAttribute("notation", m.trim())), t.arraystretch && t.arraystretch < 1 && (u = new O.MathNode("mstyle", [u]), u.setAttribute("scriptlevel", "1")), u;
41553
41553
  }, MC = function(t, r) {
41554
41554
  t.envName.indexOf("ed") === -1 && Rx(t);
41555
41555
  var n = [], a = t.envName.indexOf("at") > -1 ? "alignat" : "align", o = t.envName === "split", l = f1(t.parser, {
@@ -41583,7 +41583,7 @@ var Zt = function(t, r) {
41583
41583
  else {
41584
41584
  var F = b.length / 2;
41585
41585
  if (c < F)
41586
- throw new U("Too many math in a row: " + ("expected " + c + ", but got " + F), b[0]);
41586
+ throw new N("Too many math in a row: " + ("expected " + c + ", but got " + F), b[0]);
41587
41587
  }
41588
41588
  });
41589
41589
  for (var g = 0; g < s; ++g) {
@@ -41621,7 +41621,7 @@ _t({
41621
41621
  type: "separator",
41622
41622
  separator: ":"
41623
41623
  };
41624
- throw new U("Unknown column alignment: " + s, l);
41624
+ throw new N("Unknown column alignment: " + s, l);
41625
41625
  }), o = {
41626
41626
  cols: a,
41627
41627
  hskipBeforeAndAfter: !0,
@@ -41658,7 +41658,7 @@ _t({
41658
41658
  var a = e.parser;
41659
41659
  if (a.consumeSpaces(), a.fetch().text === "[") {
41660
41660
  if (a.consume(), a.consumeSpaces(), r = a.fetch().text, "lcr".indexOf(r) === -1)
41661
- throw new U("Expected l or c or r", a.nextToken);
41661
+ throw new N("Expected l or c or r", a.nextToken);
41662
41662
  a.consume(), a.consumeSpaces(), a.expect("]"), a.consume(), n.cols = [{
41663
41663
  type: "align",
41664
41664
  align: r
@@ -41711,17 +41711,17 @@ _t({
41711
41711
  type: "align",
41712
41712
  align: s
41713
41713
  };
41714
- throw new U("Unknown column alignment: " + s, l);
41714
+ throw new N("Unknown column alignment: " + s, l);
41715
41715
  });
41716
41716
  if (a.length > 1)
41717
- throw new U("{subarray} can contain only one column");
41717
+ throw new N("{subarray} can contain only one column");
41718
41718
  var o = {
41719
41719
  cols: a,
41720
41720
  hskipBeforeAndAfter: !1,
41721
41721
  arraystretch: 0.5
41722
41722
  };
41723
41723
  if (o = f1(e.parser, o, "script"), o.body.length > 0 && o.body[0].length > 1)
41724
- throw new U("{subarray} can contain only one column");
41724
+ throw new N("{subarray} can contain only one column");
41725
41725
  return o;
41726
41726
  },
41727
41727
  htmlBuilder: Zt,
@@ -41843,7 +41843,7 @@ _t({
41843
41843
  });
41844
41844
  v("\\nonumber", "\\gdef\\@eqnsw{0}");
41845
41845
  v("\\notag", "\\nonumber");
41846
- K({
41846
+ Y({
41847
41847
  type: "text",
41848
41848
  // Doesn't matter what this is.
41849
41849
  names: ["\\hline", "\\hdashline"],
@@ -41853,11 +41853,11 @@ K({
41853
41853
  allowedInMath: !0
41854
41854
  },
41855
41855
  handler(e, t) {
41856
- throw new U(e.funcName + " valid only within array environment");
41856
+ throw new N(e.funcName + " valid only within array environment");
41857
41857
  }
41858
41858
  });
41859
41859
  var vL = vC;
41860
- K({
41860
+ Y({
41861
41861
  type: "environment",
41862
41862
  names: ["\\begin", "\\end"],
41863
41863
  props: {
@@ -41870,12 +41870,12 @@ K({
41870
41870
  funcName: n
41871
41871
  } = e, a = t[0];
41872
41872
  if (a.type !== "ordgroup")
41873
- throw new U("Invalid environment name", a);
41873
+ throw new N("Invalid environment name", a);
41874
41874
  for (var o = "", l = 0; l < a.body.length; ++l)
41875
41875
  o += he(a.body[l], "textord").text;
41876
41876
  if (n === "\\begin") {
41877
41877
  if (!vL.hasOwnProperty(o))
41878
- throw new U("No such environment: " + o, a);
41878
+ throw new N("No such environment: " + o, a);
41879
41879
  var c = vL[o], {
41880
41880
  args: s,
41881
41881
  optArgs: h
@@ -41887,7 +41887,7 @@ K({
41887
41887
  r.expect("\\end", !1);
41888
41888
  var m = r.nextToken, k = he(r.parseFunction(), "environment");
41889
41889
  if (k.name !== o)
41890
- throw new U("Mismatch: \\begin{" + o + "} matched by \\end{" + k.name + "}", m);
41890
+ throw new N("Mismatch: \\begin{" + o + "} matched by \\end{" + k.name + "}", m);
41891
41891
  return d;
41892
41892
  }
41893
41893
  return {
@@ -41910,7 +41910,7 @@ var wC = (e, t) => {
41910
41910
  "\\frak": "\\mathfrak",
41911
41911
  "\\bm": "\\boldsymbol"
41912
41912
  };
41913
- K({
41913
+ Y({
41914
41914
  type: "font",
41915
41915
  names: [
41916
41916
  // styles, except \boldsymbol defined below
@@ -41950,7 +41950,7 @@ K({
41950
41950
  htmlBuilder: wC,
41951
41951
  mathmlBuilder: bC
41952
41952
  });
41953
- K({
41953
+ Y({
41954
41954
  type: "mclass",
41955
41955
  names: ["\\boldsymbol", "\\bm"],
41956
41956
  props: {
@@ -41974,7 +41974,7 @@ K({
41974
41974
  };
41975
41975
  }
41976
41976
  });
41977
- K({
41977
+ Y({
41978
41978
  type: "font",
41979
41979
  names: ["\\rm", "\\sf", "\\tt", "\\bf", "\\it", "\\cal"],
41980
41980
  props: {
@@ -42061,7 +42061,7 @@ var LC = (e, t) => {
42061
42061
  var F, T;
42062
42062
  return e.leftDelim == null ? F = Fr(t, ["mopen"]) : F = e1.customSizedDelim(e.leftDelim, j, !0, t.havingStyle(r), e.mode, ["mopen"]), e.continued ? T = H.makeSpan([]) : e.rightDelim == null ? T = Fr(t, ["mclose"]) : T = e1.customSizedDelim(e.rightDelim, j, !0, t.havingStyle(r), e.mode, ["mclose"]), H.makeSpan(["mord"].concat(o.sizingClasses(t)), [F, H.makeSpan(["mfrac"], [A]), T], t);
42063
42063
  }, Fw = (e, t) => {
42064
- var r = new V.MathNode("mfrac", [Ce(e.numer, t), Ce(e.denom, t)]);
42064
+ var r = new O.MathNode("mfrac", [Ce(e.numer, t), Ce(e.denom, t)]);
42065
42065
  if (!e.hasBarLine)
42066
42066
  r.setAttribute("linethickness", "0px");
42067
42067
  else if (e.barSize) {
@@ -42070,25 +42070,25 @@ var LC = (e, t) => {
42070
42070
  }
42071
42071
  var a = LC(e.size, t.style);
42072
42072
  if (a.size !== t.style.size) {
42073
- r = new V.MathNode("mstyle", [r]);
42073
+ r = new O.MathNode("mstyle", [r]);
42074
42074
  var o = a.size === ae.DISPLAY.size ? "true" : "false";
42075
42075
  r.setAttribute("displaystyle", o), r.setAttribute("scriptlevel", "0");
42076
42076
  }
42077
42077
  if (e.leftDelim != null || e.rightDelim != null) {
42078
42078
  var l = [];
42079
42079
  if (e.leftDelim != null) {
42080
- var c = new V.MathNode("mo", [new V.TextNode(e.leftDelim.replace("\\", ""))]);
42080
+ var c = new O.MathNode("mo", [new O.TextNode(e.leftDelim.replace("\\", ""))]);
42081
42081
  c.setAttribute("fence", "true"), l.push(c);
42082
42082
  }
42083
42083
  if (l.push(r), e.rightDelim != null) {
42084
- var s = new V.MathNode("mo", [new V.TextNode(e.rightDelim.replace("\\", ""))]);
42084
+ var s = new O.MathNode("mo", [new O.TextNode(e.rightDelim.replace("\\", ""))]);
42085
42085
  s.setAttribute("fence", "true"), l.push(s);
42086
42086
  }
42087
42087
  return Sw(l);
42088
42088
  }
42089
42089
  return r;
42090
42090
  };
42091
- K({
42091
+ Y({
42092
42092
  type: "genfrac",
42093
42093
  names: [
42094
42094
  "\\dfrac",
@@ -42161,7 +42161,7 @@ K({
42161
42161
  htmlBuilder: Pw,
42162
42162
  mathmlBuilder: Fw
42163
42163
  });
42164
- K({
42164
+ Y({
42165
42165
  type: "genfrac",
42166
42166
  names: ["\\cfrac"],
42167
42167
  props: {
@@ -42186,7 +42186,7 @@ K({
42186
42186
  };
42187
42187
  }
42188
42188
  });
42189
- K({
42189
+ Y({
42190
42190
  type: "infix",
42191
42191
  names: ["\\over", "\\choose", "\\atop", "\\brace", "\\brack"],
42192
42192
  props: {
@@ -42230,7 +42230,7 @@ var ML = ["display", "text", "script", "scriptscript"], wL = function(t) {
42230
42230
  var r = null;
42231
42231
  return t.length > 0 && (r = t, r = r === "." ? null : r), r;
42232
42232
  };
42233
- K({
42233
+ Y({
42234
42234
  type: "genfrac",
42235
42235
  names: ["\\genfrac"],
42236
42236
  props: {
@@ -42267,7 +42267,7 @@ K({
42267
42267
  htmlBuilder: Pw,
42268
42268
  mathmlBuilder: Fw
42269
42269
  });
42270
- K({
42270
+ Y({
42271
42271
  type: "infix",
42272
42272
  names: ["\\above"],
42273
42273
  props: {
@@ -42290,7 +42290,7 @@ K({
42290
42290
  };
42291
42291
  }
42292
42292
  });
42293
- K({
42293
+ Y({
42294
42294
  type: "genfrac",
42295
42295
  names: ["\\\\abovefrac"],
42296
42296
  props: {
@@ -42379,9 +42379,9 @@ var SC = (e, t) => {
42379
42379
  return H.makeSpan(["mord", a.isOver ? "mover" : "munder"], [c], t);
42380
42380
  }, HP = (e, t) => {
42381
42381
  var r = n1.mathMLnode(e.label);
42382
- return new V.MathNode(e.isOver ? "mover" : "munder", [Ce(e.base, t), r]);
42382
+ return new O.MathNode(e.isOver ? "mover" : "munder", [Ce(e.base, t), r]);
42383
42383
  };
42384
- K({
42384
+ Y({
42385
42385
  type: "horizBrace",
42386
42386
  names: ["\\overbrace", "\\underbrace"],
42387
42387
  props: {
@@ -42403,7 +42403,7 @@ K({
42403
42403
  htmlBuilder: SC,
42404
42404
  mathmlBuilder: HP
42405
42405
  });
42406
- K({
42406
+ Y({
42407
42407
  type: "href",
42408
42408
  names: ["\\href"],
42409
42409
  props: {
@@ -42434,7 +42434,7 @@ K({
42434
42434
  return r instanceof Mt || (r = new Mt("mrow", [r])), r.setAttribute("href", e.href), r;
42435
42435
  }
42436
42436
  });
42437
- K({
42437
+ Y({
42438
42438
  type: "href",
42439
42439
  names: ["\\url"],
42440
42440
  props: {
@@ -42473,7 +42473,7 @@ K({
42473
42473
  };
42474
42474
  }
42475
42475
  });
42476
- K({
42476
+ Y({
42477
42477
  type: "hbox",
42478
42478
  names: ["\\hbox"],
42479
42479
  props: {
@@ -42497,10 +42497,10 @@ K({
42497
42497
  return H.makeFragment(r);
42498
42498
  },
42499
42499
  mathmlBuilder(e, t) {
42500
- return new V.MathNode("mrow", yt(e.body, t));
42500
+ return new O.MathNode("mrow", yt(e.body, t));
42501
42501
  }
42502
42502
  });
42503
- K({
42503
+ Y({
42504
42504
  type: "html",
42505
42505
  names: ["\\htmlClass", "\\htmlId", "\\htmlStyle", "\\htmlData"],
42506
42506
  props: {
@@ -42539,7 +42539,7 @@ K({
42539
42539
  for (var h = o.split(","), u = 0; u < h.length; u++) {
42540
42540
  var d = h[u].split("=");
42541
42541
  if (d.length !== 2)
42542
- throw new U("Error parsing key-value for \\htmlData");
42542
+ throw new N("Error parsing key-value for \\htmlData");
42543
42543
  s["data-" + d[0].trim()] = d[1].trim();
42544
42544
  }
42545
42545
  c = {
@@ -42568,7 +42568,7 @@ K({
42568
42568
  },
42569
42569
  mathmlBuilder: (e, t) => y1(e.body, t)
42570
42570
  });
42571
- K({
42571
+ Y({
42572
42572
  type: "htmlmathml",
42573
42573
  names: ["\\html@mathml"],
42574
42574
  props: {
@@ -42600,17 +42600,17 @@ var mM = function(t) {
42600
42600
  };
42601
42601
  var r = /([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);
42602
42602
  if (!r)
42603
- throw new U("Invalid size: '" + t + "' in \\includegraphics");
42603
+ throw new N("Invalid size: '" + t + "' in \\includegraphics");
42604
42604
  var n = {
42605
42605
  number: +(r[1] + r[2]),
42606
42606
  // sign + magnitude, cast to number
42607
42607
  unit: r[3]
42608
42608
  };
42609
42609
  if (!_S(n))
42610
- throw new U("Invalid unit: '" + n.unit + "' in \\includegraphics.");
42610
+ throw new N("Invalid unit: '" + n.unit + "' in \\includegraphics.");
42611
42611
  return n;
42612
42612
  };
42613
- K({
42613
+ Y({
42614
42614
  type: "includegraphics",
42615
42615
  names: ["\\includegraphics"],
42616
42616
  props: {
@@ -42651,7 +42651,7 @@ K({
42651
42651
  l = mM(m);
42652
42652
  break;
42653
42653
  default:
42654
- throw new U("Invalid key: '" + d[0] + "' in \\includegraphics.");
42654
+ throw new N("Invalid key: '" + d[0] + "' in \\includegraphics.");
42655
42655
  }
42656
42656
  }
42657
42657
  }
@@ -42682,7 +42682,7 @@ K({
42682
42682
  return l.height = r, l.depth = n, l;
42683
42683
  },
42684
42684
  mathmlBuilder: (e, t) => {
42685
- var r = new V.MathNode("mglyph", []);
42685
+ var r = new O.MathNode("mglyph", []);
42686
42686
  r.setAttribute("alt", e.alt);
42687
42687
  var n = Be(e.height, t), a = 0;
42688
42688
  if (e.totalheight.number > 0 && (a = Be(e.totalheight, t) - n, r.setAttribute("valign", W(-a))), r.setAttribute("height", W(n + a)), e.width.number > 0) {
@@ -42692,7 +42692,7 @@ K({
42692
42692
  return r.setAttribute("src", e.src), r;
42693
42693
  }
42694
42694
  });
42695
- K({
42695
+ Y({
42696
42696
  type: "kern",
42697
42697
  names: ["\\kern", "\\mkern", "\\hskip", "\\mskip"],
42698
42698
  props: {
@@ -42721,10 +42721,10 @@ K({
42721
42721
  },
42722
42722
  mathmlBuilder(e, t) {
42723
42723
  var r = Be(e.dimension, t);
42724
- return new V.SpaceNode(r);
42724
+ return new O.SpaceNode(r);
42725
42725
  }
42726
42726
  });
42727
- K({
42727
+ Y({
42728
42728
  type: "lap",
42729
42729
  names: ["\\mathllap", "\\mathrlap", "\\mathclap"],
42730
42730
  props: {
@@ -42750,7 +42750,7 @@ K({
42750
42750
  return o.style.height = W(a.height + a.depth), a.depth && (o.style.verticalAlign = W(-a.depth)), a.children.unshift(o), a = H.makeSpan(["thinbox"], [a], t), H.makeSpan(["mord", "vbox"], [a], t);
42751
42751
  },
42752
42752
  mathmlBuilder: (e, t) => {
42753
- var r = new V.MathNode("mpadded", [Ce(e.body, t)]);
42753
+ var r = new O.MathNode("mpadded", [Ce(e.body, t)]);
42754
42754
  if (e.alignment !== "rlap") {
42755
42755
  var n = e.alignment === "llap" ? "-1" : "-0.5";
42756
42756
  r.setAttribute("lspace", n + "width");
@@ -42758,7 +42758,7 @@ K({
42758
42758
  return r.setAttribute("width", "0px"), r;
42759
42759
  }
42760
42760
  });
42761
- K({
42761
+ Y({
42762
42762
  type: "styling",
42763
42763
  names: ["\\(", "$"],
42764
42764
  props: {
@@ -42781,7 +42781,7 @@ K({
42781
42781
  };
42782
42782
  }
42783
42783
  });
42784
- K({
42784
+ Y({
42785
42785
  type: "text",
42786
42786
  // Doesn't matter what this is.
42787
42787
  names: ["\\)", "\\]"],
@@ -42791,7 +42791,7 @@ K({
42791
42791
  allowedInMath: !1
42792
42792
  },
42793
42793
  handler(e, t) {
42794
- throw new U("Mismatched " + e.funcName);
42794
+ throw new N("Mismatched " + e.funcName);
42795
42795
  }
42796
42796
  });
42797
42797
  var bL = (e, t) => {
@@ -42808,7 +42808,7 @@ var bL = (e, t) => {
42808
42808
  return e.text;
42809
42809
  }
42810
42810
  };
42811
- K({
42811
+ Y({
42812
42812
  type: "mathchoice",
42813
42813
  names: ["\\mathchoice"],
42814
42814
  props: {
@@ -42992,7 +42992,7 @@ var CC = (e, t, r, n, a, o, l) => {
42992
42992
  "⨄": "\\biguplus",
42993
42993
  "⨆": "\\bigsqcup"
42994
42994
  };
42995
- K({
42995
+ Y({
42996
42996
  type: "op",
42997
42997
  names: ["\\coprod", "\\bigvee", "\\bigwedge", "\\biguplus", "\\bigcap", "\\bigcup", "\\intop", "\\prod", "\\sum", "\\bigotimes", "\\bigoplus", "\\bigodot", "\\bigsqcup", "\\smallint", "∏", "∐", "∑", "⋀", "⋁", "⋂", "⋃", "⨀", "⨁", "⨂", "⨄", "⨆"],
42998
42998
  props: {
@@ -43015,7 +43015,7 @@ K({
43015
43015
  htmlBuilder: pr,
43016
43016
  mathmlBuilder: Ur
43017
43017
  });
43018
- K({
43018
+ Y({
43019
43019
  type: "op",
43020
43020
  names: ["\\mathop"],
43021
43021
  props: {
@@ -43046,7 +43046,7 @@ var PP = {
43046
43046
  "∯": "\\oiint",
43047
43047
  "∰": "\\oiiint"
43048
43048
  };
43049
- K({
43049
+ Y({
43050
43050
  type: "op",
43051
43051
  names: ["\\arcsin", "\\arccos", "\\arctan", "\\arctg", "\\arcctg", "\\arg", "\\ch", "\\cos", "\\cosec", "\\cosh", "\\cot", "\\cotg", "\\coth", "\\csc", "\\ctg", "\\cth", "\\deg", "\\dim", "\\exp", "\\hom", "\\ker", "\\lg", "\\ln", "\\log", "\\sec", "\\sin", "\\sinh", "\\sh", "\\tan", "\\tanh", "\\tg", "\\th"],
43052
43052
  props: {
@@ -43069,7 +43069,7 @@ K({
43069
43069
  htmlBuilder: pr,
43070
43070
  mathmlBuilder: Ur
43071
43071
  });
43072
- K({
43072
+ Y({
43073
43073
  type: "op",
43074
43074
  names: ["\\det", "\\gcd", "\\inf", "\\lim", "\\max", "\\min", "\\Pr", "\\sup"],
43075
43075
  props: {
@@ -43092,7 +43092,7 @@ K({
43092
43092
  htmlBuilder: pr,
43093
43093
  mathmlBuilder: Ur
43094
43094
  });
43095
- K({
43095
+ Y({
43096
43096
  type: "op",
43097
43097
  names: ["\\int", "\\iint", "\\iiint", "\\oint", "\\oiint", "\\oiiint", "∫", "∬", "∭", "∮", "∯", "∰"],
43098
43098
  props: {
@@ -43138,7 +43138,7 @@ var AC = (e, t) => {
43138
43138
  }, FP = (e, t) => {
43139
43139
  for (var r = yt(e.body, t.withFont("mathrm")), n = !0, a = 0; a < r.length; a++) {
43140
43140
  var o = r[a];
43141
- if (!(o instanceof V.SpaceNode)) if (o instanceof V.MathNode)
43141
+ if (!(o instanceof O.SpaceNode)) if (o instanceof O.MathNode)
43142
43142
  switch (o.type) {
43143
43143
  case "mi":
43144
43144
  case "mn":
@@ -43148,7 +43148,7 @@ var AC = (e, t) => {
43148
43148
  break;
43149
43149
  case "mo": {
43150
43150
  var l = o.children[0];
43151
- o.children.length === 1 && l instanceof V.TextNode ? l.text = l.text.replace(/\u2212/, "-").replace(/\u2217/, "*") : n = !1;
43151
+ o.children.length === 1 && l instanceof O.TextNode ? l.text = l.text.replace(/\u2212/, "-").replace(/\u2217/, "*") : n = !1;
43152
43152
  break;
43153
43153
  }
43154
43154
  default:
@@ -43159,14 +43159,14 @@ var AC = (e, t) => {
43159
43159
  }
43160
43160
  if (n) {
43161
43161
  var c = r.map((u) => u.toText()).join("");
43162
- r = [new V.TextNode(c)];
43162
+ r = [new O.TextNode(c)];
43163
43163
  }
43164
- var s = new V.MathNode("mi", r);
43164
+ var s = new O.MathNode("mi", r);
43165
43165
  s.setAttribute("mathvariant", "normal");
43166
- var h = new V.MathNode("mo", [Tt("⁡", "text")]);
43167
- return e.parentIsSupSub ? new V.MathNode("mrow", [s, h]) : V.newDocumentFragment([s, h]);
43166
+ var h = new O.MathNode("mo", [Tt("⁡", "text")]);
43167
+ return e.parentIsSupSub ? new O.MathNode("mrow", [s, h]) : O.newDocumentFragment([s, h]);
43168
43168
  };
43169
- K({
43169
+ Y({
43170
43170
  type: "operatorname",
43171
43171
  names: ["\\operatorname@", "\\operatornamewithlimits"],
43172
43172
  props: {
@@ -43199,7 +43199,7 @@ _0({
43199
43199
  return y1(e.body, t, !0);
43200
43200
  }
43201
43201
  });
43202
- K({
43202
+ Y({
43203
43203
  type: "overline",
43204
43204
  names: ["\\overline"],
43205
43205
  props: {
@@ -43235,13 +43235,13 @@ K({
43235
43235
  return H.makeSpan(["mord", "overline"], [o], t);
43236
43236
  },
43237
43237
  mathmlBuilder(e, t) {
43238
- var r = new V.MathNode("mo", [new V.TextNode("‾")]);
43238
+ var r = new O.MathNode("mo", [new O.TextNode("‾")]);
43239
43239
  r.setAttribute("stretchy", "true");
43240
- var n = new V.MathNode("mover", [Ce(e.body, t), r]);
43240
+ var n = new O.MathNode("mover", [Ce(e.body, t), r]);
43241
43241
  return n.setAttribute("accent", "true"), n;
43242
43242
  }
43243
43243
  });
43244
- K({
43244
+ Y({
43245
43245
  type: "phantom",
43246
43246
  names: ["\\phantom"],
43247
43247
  props: {
@@ -43264,10 +43264,10 @@ K({
43264
43264
  },
43265
43265
  mathmlBuilder: (e, t) => {
43266
43266
  var r = yt(e.body, t);
43267
- return new V.MathNode("mphantom", r);
43267
+ return new O.MathNode("mphantom", r);
43268
43268
  }
43269
43269
  });
43270
- K({
43270
+ Y({
43271
43271
  type: "hphantom",
43272
43272
  names: ["\\hphantom"],
43273
43273
  props: {
@@ -43298,11 +43298,11 @@ K({
43298
43298
  }, t), H.makeSpan(["mord"], [r], t);
43299
43299
  },
43300
43300
  mathmlBuilder: (e, t) => {
43301
- var r = yt(Ee(e.body), t), n = new V.MathNode("mphantom", r), a = new V.MathNode("mpadded", [n]);
43301
+ var r = yt(Ee(e.body), t), n = new O.MathNode("mphantom", r), a = new O.MathNode("mpadded", [n]);
43302
43302
  return a.setAttribute("height", "0px"), a.setAttribute("depth", "0px"), a;
43303
43303
  }
43304
43304
  });
43305
- K({
43305
+ Y({
43306
43306
  type: "vphantom",
43307
43307
  names: ["\\vphantom"],
43308
43308
  props: {
@@ -43324,11 +43324,11 @@ K({
43324
43324
  return H.makeSpan(["mord", "rlap"], [r, n], t);
43325
43325
  },
43326
43326
  mathmlBuilder: (e, t) => {
43327
- var r = yt(Ee(e.body), t), n = new V.MathNode("mphantom", r), a = new V.MathNode("mpadded", [n]);
43327
+ var r = yt(Ee(e.body), t), n = new O.MathNode("mphantom", r), a = new O.MathNode("mpadded", [n]);
43328
43328
  return a.setAttribute("width", "0px"), a;
43329
43329
  }
43330
43330
  });
43331
- K({
43331
+ Y({
43332
43332
  type: "raisebox",
43333
43333
  names: ["\\raisebox"],
43334
43334
  props: {
@@ -43359,11 +43359,11 @@ K({
43359
43359
  }, t);
43360
43360
  },
43361
43361
  mathmlBuilder(e, t) {
43362
- var r = new V.MathNode("mpadded", [Ce(e.body, t)]), n = e.dy.number + e.dy.unit;
43362
+ var r = new O.MathNode("mpadded", [Ce(e.body, t)]), n = e.dy.number + e.dy.unit;
43363
43363
  return r.setAttribute("voffset", n), r;
43364
43364
  }
43365
43365
  });
43366
- K({
43366
+ Y({
43367
43367
  type: "internal",
43368
43368
  names: ["\\relax"],
43369
43369
  props: {
@@ -43381,7 +43381,7 @@ K({
43381
43381
  };
43382
43382
  }
43383
43383
  });
43384
- K({
43384
+ Y({
43385
43385
  type: "rule",
43386
43386
  names: ["\\rule"],
43387
43387
  props: {
@@ -43408,9 +43408,9 @@ K({
43408
43408
  return r.style.borderRightWidth = W(n), r.style.borderTopWidth = W(a), r.style.bottom = W(o), r.width = n, r.height = a + o, r.depth = -o, r.maxFontSize = a * 1.125 * t.sizeMultiplier, r;
43409
43409
  },
43410
43410
  mathmlBuilder(e, t) {
43411
- var r = Be(e.width, t), n = Be(e.height, t), a = e.shift ? Be(e.shift, t) : 0, o = t.color && t.getColor() || "black", l = new V.MathNode("mspace");
43411
+ var r = Be(e.width, t), n = Be(e.height, t), a = e.shift ? Be(e.shift, t) : 0, o = t.color && t.getColor() || "black", l = new O.MathNode("mspace");
43412
43412
  l.setAttribute("mathbackground", o), l.setAttribute("width", W(r)), l.setAttribute("height", W(n));
43413
- var c = new V.MathNode("mpadded", [l]);
43413
+ var c = new O.MathNode("mpadded", [l]);
43414
43414
  return a >= 0 ? c.setAttribute("height", W(a)) : (c.setAttribute("height", W(a)), c.setAttribute("depth", W(-a))), c.setAttribute("voffset", W(a)), c;
43415
43415
  }
43416
43416
  });
@@ -43425,7 +43425,7 @@ var LL = ["\\tiny", "\\sixptsize", "\\scriptsize", "\\footnotesize", "\\small",
43425
43425
  var r = t.havingSize(e.size);
43426
43426
  return zC(e.body, r, t);
43427
43427
  };
43428
- K({
43428
+ Y({
43429
43429
  type: "sizing",
43430
43430
  names: LL,
43431
43431
  props: {
@@ -43448,11 +43448,11 @@ K({
43448
43448
  },
43449
43449
  htmlBuilder: DP,
43450
43450
  mathmlBuilder: (e, t) => {
43451
- var r = t.havingSize(e.size), n = yt(e.body, r), a = new V.MathNode("mstyle", n);
43451
+ var r = t.havingSize(e.size), n = yt(e.body, r), a = new O.MathNode("mstyle", n);
43452
43452
  return a.setAttribute("mathsize", W(r.sizeMultiplier)), a;
43453
43453
  }
43454
43454
  });
43455
- K({
43455
+ Y({
43456
43456
  type: "smash",
43457
43457
  names: ["\\smash"],
43458
43458
  props: {
@@ -43507,11 +43507,11 @@ K({
43507
43507
  return H.makeSpan(["mord"], [o], t);
43508
43508
  },
43509
43509
  mathmlBuilder: (e, t) => {
43510
- var r = new V.MathNode("mpadded", [Ce(e.body, t)]);
43510
+ var r = new O.MathNode("mpadded", [Ce(e.body, t)]);
43511
43511
  return e.smashHeight && r.setAttribute("height", "0px"), e.smashDepth && r.setAttribute("depth", "0px"), r;
43512
43512
  }
43513
43513
  });
43514
- K({
43514
+ Y({
43515
43515
  type: "sqrt",
43516
43516
  names: ["\\sqrt"],
43517
43517
  props: {
@@ -43577,7 +43577,7 @@ K({
43577
43577
  body: r,
43578
43578
  index: n
43579
43579
  } = e;
43580
- return n ? new V.MathNode("mroot", [Ce(r, t), Ce(n, t)]) : new V.MathNode("msqrt", [Ce(r, t)]);
43580
+ return n ? new O.MathNode("mroot", [Ce(r, t), Ce(n, t)]) : new O.MathNode("msqrt", [Ce(r, t)]);
43581
43581
  }
43582
43582
  });
43583
43583
  var SL = {
@@ -43586,7 +43586,7 @@ var SL = {
43586
43586
  script: ae.SCRIPT,
43587
43587
  scriptscript: ae.SCRIPTSCRIPT
43588
43588
  };
43589
- K({
43589
+ Y({
43590
43590
  type: "styling",
43591
43591
  names: ["\\displaystyle", "\\textstyle", "\\scriptstyle", "\\scriptscriptstyle"],
43592
43592
  props: {
@@ -43614,7 +43614,7 @@ K({
43614
43614
  return zC(e.body, n, t);
43615
43615
  },
43616
43616
  mathmlBuilder(e, t) {
43617
- var r = SL[e.style], n = t.havingStyle(r), a = yt(e.body, n), o = new V.MathNode("mstyle", a), l = {
43617
+ var r = SL[e.style], n = t.havingStyle(r), a = yt(e.body, n), o = new O.MathNode("mstyle", a), l = {
43618
43618
  display: ["0", "true"],
43619
43619
  text: ["0", "false"],
43620
43620
  script: ["1", "false"],
@@ -43675,10 +43675,10 @@ _0({
43675
43675
  var F = h.defaultRuleThickness, T = 4 * F;
43676
43676
  if (u - c.depth - (s.height - d) < T) {
43677
43677
  d = T - (u - c.depth) + s.height;
43678
- var O = 0.8 * h.xHeight - (u - c.depth);
43679
- O > 0 && (u += O, d -= O);
43678
+ var R = 0.8 * h.xHeight - (u - c.depth);
43679
+ R > 0 && (u += R, d -= R);
43680
43680
  }
43681
- var Y = [{
43681
+ var X = [{
43682
43682
  type: "elem",
43683
43683
  elem: s,
43684
43684
  shift: d,
@@ -43692,7 +43692,7 @@ _0({
43692
43692
  }];
43693
43693
  j = H.makeVList({
43694
43694
  positionType: "individualShift",
43695
- children: Y
43695
+ children: X
43696
43696
  }, t);
43697
43697
  } else if (s) {
43698
43698
  d = Math.max(d, h.sub1, s.height - 0.8 * h.xHeight);
@@ -43742,7 +43742,7 @@ _0({
43742
43742
  var c = e.base;
43743
43743
  c && c.type === "op" && c.limits && (t.style === ae.DISPLAY || c.alwaysHandleSupSub) || c && c.type === "operatorname" && c.alwaysHandleSupSub && (c.limits || t.style === ae.DISPLAY) ? l = "mover" : l = "msup";
43744
43744
  }
43745
- return new V.MathNode(l, o);
43745
+ return new O.MathNode(l, o);
43746
43746
  }
43747
43747
  });
43748
43748
  _0({
@@ -43751,7 +43751,7 @@ _0({
43751
43751
  return H.mathsym(e.text, e.mode, t, ["m" + e.family]);
43752
43752
  },
43753
43753
  mathmlBuilder(e, t) {
43754
- var r = new V.MathNode("mo", [Tt(e.text, e.mode)]);
43754
+ var r = new O.MathNode("mo", [Tt(e.text, e.mode)]);
43755
43755
  if (e.family === "bin") {
43756
43756
  var n = Cw(e, t);
43757
43757
  n === "bold-italic" && r.setAttribute("mathvariant", n);
@@ -43770,7 +43770,7 @@ _0({
43770
43770
  return H.makeOrd(e, t, "mathord");
43771
43771
  },
43772
43772
  mathmlBuilder(e, t) {
43773
- var r = new V.MathNode("mi", [Tt(e.text, e.mode, t)]), n = Cw(e, t) || "italic";
43773
+ var r = new O.MathNode("mi", [Tt(e.text, e.mode, t)]), n = Cw(e, t) || "italic";
43774
43774
  return n !== TC[r.type] && r.setAttribute("mathvariant", n), r;
43775
43775
  }
43776
43776
  });
@@ -43781,7 +43781,7 @@ _0({
43781
43781
  },
43782
43782
  mathmlBuilder(e, t) {
43783
43783
  var r = Tt(e.text, e.mode, t), n = Cw(e, t) || "normal", a;
43784
- return e.mode === "text" ? a = new V.MathNode("mtext", [r]) : /[0-9]/.test(e.text) ? a = new V.MathNode("mn", [r]) : e.text === "\\prime" ? a = new V.MathNode("mo", [r]) : a = new V.MathNode("mi", [r]), n !== TC[a.type] && a.setAttribute("mathvariant", n), a;
43784
+ return e.mode === "text" ? a = new O.MathNode("mtext", [r]) : /[0-9]/.test(e.text) ? a = new O.MathNode("mn", [r]) : e.text === "\\prime" ? a = new O.MathNode("mo", [r]) : a = new O.MathNode("mi", [r]), n !== TC[a.type] && a.setAttribute("mathvariant", n), a;
43785
43785
  }
43786
43786
  });
43787
43787
  var fM = {
@@ -43811,29 +43811,29 @@ _0({
43811
43811
  } else {
43812
43812
  if (fM.hasOwnProperty(e.text))
43813
43813
  return H.makeSpan(["mspace", fM[e.text]], [], t);
43814
- throw new U('Unknown type of space "' + e.text + '"');
43814
+ throw new N('Unknown type of space "' + e.text + '"');
43815
43815
  }
43816
43816
  },
43817
43817
  mathmlBuilder(e, t) {
43818
43818
  var r;
43819
43819
  if (gM.hasOwnProperty(e.text))
43820
- r = new V.MathNode("mtext", [new V.TextNode(" ")]);
43820
+ r = new O.MathNode("mtext", [new O.TextNode(" ")]);
43821
43821
  else {
43822
43822
  if (fM.hasOwnProperty(e.text))
43823
- return new V.MathNode("mspace");
43824
- throw new U('Unknown type of space "' + e.text + '"');
43823
+ return new O.MathNode("mspace");
43824
+ throw new N('Unknown type of space "' + e.text + '"');
43825
43825
  }
43826
43826
  return r;
43827
43827
  }
43828
43828
  });
43829
43829
  var CL = () => {
43830
- var e = new V.MathNode("mtd", []);
43830
+ var e = new O.MathNode("mtd", []);
43831
43831
  return e.setAttribute("width", "50%"), e;
43832
43832
  };
43833
43833
  _0({
43834
43834
  type: "tag",
43835
43835
  mathmlBuilder(e, t) {
43836
- var r = new V.MathNode("mtable", [new V.MathNode("mtr", [CL(), new V.MathNode("mtd", [y1(e.body, t)]), CL(), new V.MathNode("mtd", [y1(e.tag, t)])])]);
43836
+ var r = new O.MathNode("mtable", [new O.MathNode("mtr", [CL(), new O.MathNode("mtd", [y1(e.body, t)]), CL(), new O.MathNode("mtd", [y1(e.tag, t)])])]);
43837
43837
  return r.setAttribute("width", "100%"), r;
43838
43838
  }
43839
43839
  });
@@ -43861,7 +43861,7 @@ var IL = {
43861
43861
  } else return t;
43862
43862
  return t.withTextFontShape(EP[r]);
43863
43863
  };
43864
- K({
43864
+ Y({
43865
43865
  type: "text",
43866
43866
  names: [
43867
43867
  // Font families
@@ -43905,7 +43905,7 @@ K({
43905
43905
  return y1(e.body, r);
43906
43906
  }
43907
43907
  });
43908
- K({
43908
+ Y({
43909
43909
  type: "underline",
43910
43910
  names: ["\\underline"],
43911
43911
  props: {
@@ -43943,13 +43943,13 @@ K({
43943
43943
  return H.makeSpan(["mord", "underline"], [o], t);
43944
43944
  },
43945
43945
  mathmlBuilder(e, t) {
43946
- var r = new V.MathNode("mo", [new V.TextNode("‾")]);
43946
+ var r = new O.MathNode("mo", [new O.TextNode("‾")]);
43947
43947
  r.setAttribute("stretchy", "true");
43948
- var n = new V.MathNode("munder", [Ce(e.body, t), r]);
43948
+ var n = new O.MathNode("munder", [Ce(e.body, t), r]);
43949
43949
  return n.setAttribute("accentunder", "true"), n;
43950
43950
  }
43951
43951
  });
43952
- K({
43952
+ Y({
43953
43953
  type: "vcenter",
43954
43954
  names: ["\\vcenter"],
43955
43955
  props: {
@@ -43980,10 +43980,10 @@ K({
43980
43980
  }, t);
43981
43981
  },
43982
43982
  mathmlBuilder(e, t) {
43983
- return new V.MathNode("mpadded", [Ce(e.body, t)], ["vcenter"]);
43983
+ return new O.MathNode("mpadded", [Ce(e.body, t)], ["vcenter"]);
43984
43984
  }
43985
43985
  });
43986
- K({
43986
+ Y({
43987
43987
  type: "verb",
43988
43988
  names: ["\\verb"],
43989
43989
  props: {
@@ -43991,7 +43991,7 @@ K({
43991
43991
  allowedInText: !0
43992
43992
  },
43993
43993
  handler(e, t, r) {
43994
- throw new U("\\verb ended by end of line instead of matching delimiter");
43994
+ throw new N("\\verb ended by end of line instead of matching delimiter");
43995
43995
  },
43996
43996
  htmlBuilder(e, t) {
43997
43997
  for (var r = TL(e), n = [], a = t.havingStyle(t.style.text()), o = 0; o < r.length; o++) {
@@ -44001,7 +44001,7 @@ K({
44001
44001
  return H.makeSpan(["mord", "text"].concat(a.sizingClasses(t)), H.tryCombineChars(n), a);
44002
44002
  },
44003
44003
  mathmlBuilder(e, t) {
44004
- var r = new V.TextNode(TL(e)), n = new V.MathNode("mtext", [r]);
44004
+ var r = new O.TextNode(TL(e)), n = new O.MathNode("mtext", [r]);
44005
44005
  return n.setAttribute("mathvariant", "monospace"), n;
44006
44006
  }
44007
44007
  });
@@ -44040,7 +44040,7 @@ class qL {
44040
44040
  return new At("EOF", new xt(this, r, r));
44041
44041
  var n = this.tokenRegex.exec(t);
44042
44042
  if (n === null || n.index !== r)
44043
- throw new U("Unexpected character: '" + t[r] + "'", new At(t[r], new xt(this, r, r + 1)));
44043
+ throw new N("Unexpected character: '" + t[r] + "'", new At(t[r], new xt(this, r, r + 1)));
44044
44044
  var a = n[6] || n[3] || (n[2] ? "\\ " : " ");
44045
44045
  if (this.catcodes[a] === 14) {
44046
44046
  var o = t.indexOf(`
@@ -44071,7 +44071,7 @@ class ZP {
44071
44071
  */
44072
44072
  endGroup() {
44073
44073
  if (this.undefStack.length === 0)
44074
- throw new U("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");
44074
+ throw new N("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");
44075
44075
  var t = this.undefStack.pop();
44076
44076
  for (var r in t)
44077
44077
  t.hasOwnProperty(r) && (t[r] == null ? delete this.current[r] : this.current[r] = t[r]);
@@ -44208,14 +44208,14 @@ v("\\char", function(e) {
44208
44208
  n = t.text.charCodeAt(1);
44209
44209
  else {
44210
44210
  if (t.text === "EOF")
44211
- throw new U("\\char` missing argument");
44211
+ throw new N("\\char` missing argument");
44212
44212
  n = t.text.charCodeAt(0);
44213
44213
  }
44214
44214
  else
44215
44215
  r = 10;
44216
44216
  if (r) {
44217
44217
  if (n = HL[t.text], n == null || n >= r)
44218
- throw new U("Invalid base-" + r + " digit " + t.text);
44218
+ throw new N("Invalid base-" + r + " digit " + t.text);
44219
44219
  for (var a; (a = HL[e.future().text]) != null && a < r; )
44220
44220
  n *= r, n += a, e.popToken();
44221
44221
  }
@@ -44224,18 +44224,18 @@ v("\\char", function(e) {
44224
44224
  var Dw = (e, t, r, n) => {
44225
44225
  var a = e.consumeArg().tokens;
44226
44226
  if (a.length !== 1)
44227
- throw new U("\\newcommand's first argument must be a macro name");
44227
+ throw new N("\\newcommand's first argument must be a macro name");
44228
44228
  var o = a[0].text, l = e.isDefined(o);
44229
44229
  if (l && !t)
44230
- throw new U("\\newcommand{" + o + "} attempting to redefine " + (o + "; use \\renewcommand"));
44230
+ throw new N("\\newcommand{" + o + "} attempting to redefine " + (o + "; use \\renewcommand"));
44231
44231
  if (!l && !r)
44232
- throw new U("\\renewcommand{" + o + "} when command " + o + " does not yet exist; use \\newcommand");
44232
+ throw new N("\\renewcommand{" + o + "} when command " + o + " does not yet exist; use \\newcommand");
44233
44233
  var c = 0;
44234
44234
  if (a = e.consumeArg().tokens, a.length === 1 && a[0].text === "[") {
44235
44235
  for (var s = "", h = e.expandNextToken(); h.text !== "]" && h.text !== "EOF"; )
44236
44236
  s += h.text, h = e.expandNextToken();
44237
44237
  if (!s.match(/^\s*[0-9]+\s*$/))
44238
- throw new U("Invalid number of arguments: " + s);
44238
+ throw new N("Invalid number of arguments: " + s);
44239
44239
  c = parseInt(s), a = e.consumeArg().tokens;
44240
44240
  }
44241
44241
  return l && n || e.macros.set(o, {
@@ -44456,7 +44456,7 @@ v("\\tag", "\\@ifstar\\tag@literal\\tag@paren");
44456
44456
  v("\\tag@paren", "\\tag@literal{({#1})}");
44457
44457
  v("\\tag@literal", (e) => {
44458
44458
  if (e.macros.get("\\df@tag"))
44459
- throw new U("Multiple \\tag");
44459
+ throw new N("Multiple \\tag");
44460
44460
  return "\\gdef\\df@tag{\\text{#1}}";
44461
44461
  });
44462
44462
  v("\\bmod", "\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");
@@ -44820,9 +44820,9 @@ class WP {
44820
44820
  ++l;
44821
44821
  else if (o.text === "}") {
44822
44822
  if (--l, l === -1)
44823
- throw new U("Extra }", o);
44823
+ throw new N("Extra }", o);
44824
44824
  } else if (o.text === "EOF")
44825
- throw new U("Unexpected end of input in a macro argument, expected '" + (t && n ? t[c] : "}") + "'", o);
44825
+ throw new N("Unexpected end of input in a macro argument, expected '" + (t && n ? t[c] : "}") + "'", o);
44826
44826
  if (t && n)
44827
44827
  if ((l === 0 || l === 1 && t[c] === "{") && o.text === t[c]) {
44828
44828
  if (++c, c === t.length) {
@@ -44845,11 +44845,11 @@ class WP {
44845
44845
  consumeArgs(t, r) {
44846
44846
  if (r) {
44847
44847
  if (r.length !== t + 1)
44848
- throw new U("The length of delimiters doesn't match the number of args!");
44848
+ throw new N("The length of delimiters doesn't match the number of args!");
44849
44849
  for (var n = r[0], a = 0; a < n.length; a++) {
44850
44850
  var o = this.popToken();
44851
44851
  if (n[a] !== o.text)
44852
- throw new U("Use of the macro doesn't match its definition", o);
44852
+ throw new N("Use of the macro doesn't match its definition", o);
44853
44853
  }
44854
44854
  }
44855
44855
  for (var l = [], c = 0; c < t; c++)
@@ -44862,7 +44862,7 @@ class WP {
44862
44862
  */
44863
44863
  countExpansion(t) {
44864
44864
  if (this.expansionCount += t, this.expansionCount > this.settings.maxExpand)
44865
- throw new U("Too many expansions: infinite loop or need to increase maxExpand setting");
44865
+ throw new N("Too many expansions: infinite loop or need to increase maxExpand setting");
44866
44866
  }
44867
44867
  /**
44868
44868
  * Expand the next token only once if possible.
@@ -44887,7 +44887,7 @@ class WP {
44887
44887
  var r = this.popToken(), n = r.text, a = r.noexpand ? null : this._getExpansion(n);
44888
44888
  if (a == null || t && a.unexpandable) {
44889
44889
  if (t && a == null && n[0] === "\\" && !this.isDefined(n))
44890
- throw new U("Undefined control sequence: " + n);
44890
+ throw new N("Undefined control sequence: " + n);
44891
44891
  return this.pushToken(r), !1;
44892
44892
  }
44893
44893
  this.countExpansion(1);
@@ -44898,13 +44898,13 @@ class WP {
44898
44898
  var s = o[c];
44899
44899
  if (s.text === "#") {
44900
44900
  if (c === 0)
44901
- throw new U("Incomplete placeholder at end of macro body", s);
44901
+ throw new N("Incomplete placeholder at end of macro body", s);
44902
44902
  if (s = o[--c], s.text === "#")
44903
44903
  o.splice(c + 1, 1);
44904
44904
  else if (/^[1-9]$/.test(s.text))
44905
44905
  o.splice(c, 2, ...l[+s.text - 1]);
44906
44906
  else
44907
- throw new U("Not a valid argument number", s);
44907
+ throw new N("Not a valid argument number", s);
44908
44908
  }
44909
44909
  }
44910
44910
  }
@@ -45512,7 +45512,7 @@ class Ex {
45512
45512
  */
45513
45513
  expect(t, r) {
45514
45514
  if (r === void 0 && (r = !0), this.fetch().text !== t)
45515
- throw new U("Expected '" + t + "', got '" + this.fetch().text + "'", this.fetch());
45515
+ throw new N("Expected '" + t + "', got '" + this.fetch().text + "'", this.fetch());
45516
45516
  r && this.consume();
45517
45517
  }
45518
45518
  /**
@@ -45594,7 +45594,7 @@ class Ex {
45594
45594
  for (var r = -1, n, a = 0; a < t.length; a++)
45595
45595
  if (t[a].type === "infix") {
45596
45596
  if (r !== -1)
45597
- throw new U("only one infix operator per group", t[a].token);
45597
+ throw new N("only one infix operator per group", t[a].token);
45598
45598
  r = a, n = t[a].replaceWith;
45599
45599
  }
45600
45600
  if (r !== -1 && n) {
@@ -45625,7 +45625,7 @@ class Ex {
45625
45625
  a = this.parseGroup(t);
45626
45626
  } while (((o = a) == null ? void 0 : o.type) === "internal");
45627
45627
  if (!a)
45628
- throw new U("Expected group after '" + n + "'", r);
45628
+ throw new N("Expected group after '" + n + "'", r);
45629
45629
  return a;
45630
45630
  }
45631
45631
  /**
@@ -45668,19 +45668,19 @@ class Ex {
45668
45668
  } else if (r && r.type === "operatorname")
45669
45669
  r.alwaysHandleSupSub && (r.limits = o.text === "\\limits");
45670
45670
  else
45671
- throw new U("Limit controls must follow a math operator", o);
45671
+ throw new N("Limit controls must follow a math operator", o);
45672
45672
  this.consume();
45673
45673
  } else if (o.text === "^") {
45674
45674
  if (n)
45675
- throw new U("Double superscript", o);
45675
+ throw new N("Double superscript", o);
45676
45676
  n = this.handleSupSubscript("superscript");
45677
45677
  } else if (o.text === "_") {
45678
45678
  if (a)
45679
- throw new U("Double subscript", o);
45679
+ throw new N("Double subscript", o);
45680
45680
  a = this.handleSupSubscript("subscript");
45681
45681
  } else if (o.text === "'") {
45682
45682
  if (n)
45683
- throw new U("Double superscript", o);
45683
+ throw new N("Double superscript", o);
45684
45684
  var c = {
45685
45685
  type: "textord",
45686
45686
  mode: this.mode,
@@ -45730,11 +45730,11 @@ class Ex {
45730
45730
  if (!o)
45731
45731
  return null;
45732
45732
  if (this.consume(), r && r !== "atom" && !o.allowedInArgument)
45733
- throw new U("Got function '" + a + "' with no arguments" + (r ? " as " + r : ""), n);
45733
+ throw new N("Got function '" + a + "' with no arguments" + (r ? " as " + r : ""), n);
45734
45734
  if (this.mode === "text" && !o.allowedInText)
45735
- throw new U("Can't use function '" + a + "' in text mode", n);
45735
+ throw new N("Can't use function '" + a + "' in text mode", n);
45736
45736
  if (this.mode === "math" && o.allowedInMath === !1)
45737
- throw new U("Can't use function '" + a + "' in math mode", n);
45737
+ throw new N("Can't use function '" + a + "' in math mode", n);
45738
45738
  var {
45739
45739
  args: l,
45740
45740
  optArgs: c
@@ -45753,7 +45753,7 @@ class Ex {
45753
45753
  }, c = u1[t];
45754
45754
  if (c && c.handler)
45755
45755
  return c.handler(l, r, n);
45756
- throw new U("No function handler for " + t);
45756
+ throw new N("No function handler for " + t);
45757
45757
  }
45758
45758
  /**
45759
45759
  * Parses the arguments of a function or environment
@@ -45775,7 +45775,7 @@ class Ex {
45775
45775
  else if (h != null)
45776
45776
  a.push(h);
45777
45777
  else
45778
- throw new U("Null argument, please report this as a bug");
45778
+ throw new N("Null argument, please report this as a bug");
45779
45779
  }
45780
45780
  return {
45781
45781
  args: a,
@@ -45816,10 +45816,10 @@ class Ex {
45816
45816
  }
45817
45817
  case "primitive": {
45818
45818
  if (n)
45819
- throw new U("A primitive argument cannot be optional");
45819
+ throw new N("A primitive argument cannot be optional");
45820
45820
  var l = this.parseGroup(t);
45821
45821
  if (l == null)
45822
- throw new U("Expected group as " + t, this.fetch());
45822
+ throw new N("Expected group as " + t, this.fetch());
45823
45823
  return l;
45824
45824
  }
45825
45825
  case "original":
@@ -45827,7 +45827,7 @@ class Ex {
45827
45827
  case void 0:
45828
45828
  return this.parseArgumentGroup(n);
45829
45829
  default:
45830
- throw new U("Unknown group type as " + t, this.fetch());
45830
+ throw new N("Unknown group type as " + t, this.fetch());
45831
45831
  }
45832
45832
  }
45833
45833
  /**
@@ -45858,7 +45858,7 @@ class Ex {
45858
45858
  for (var n = this.fetch(), a = n, o = "", l; (l = this.fetch()).text !== "EOF" && t.test(o + l.text); )
45859
45859
  a = l, o += a.text, this.consume();
45860
45860
  if (o === "")
45861
- throw new U("Invalid " + r + ": '" + n.text + "'", n);
45861
+ throw new N("Invalid " + r + ": '" + n.text + "'", n);
45862
45862
  return n.range(a, o);
45863
45863
  }
45864
45864
  /**
@@ -45870,7 +45870,7 @@ class Ex {
45870
45870
  return null;
45871
45871
  var n = /^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);
45872
45872
  if (!n)
45873
- throw new U("Invalid color: '" + r.text + "'", r);
45873
+ throw new N("Invalid color: '" + r.text + "'", r);
45874
45874
  var a = n[0];
45875
45875
  return /^[0-9a-f]{6}$/i.test(a) && (a = "#" + a), {
45876
45876
  type: "color-token",
@@ -45888,14 +45888,14 @@ class Ex {
45888
45888
  !t && r.text.length === 0 && (r.text = "0pt", n = !0);
45889
45889
  var a = /([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);
45890
45890
  if (!a)
45891
- throw new U("Invalid size: '" + r.text + "'", r);
45891
+ throw new N("Invalid size: '" + r.text + "'", r);
45892
45892
  var o = {
45893
45893
  number: +(a[1] + a[2]),
45894
45894
  // sign + magnitude, cast to number
45895
45895
  unit: a[3]
45896
45896
  };
45897
45897
  if (!_S(o))
45898
- throw new U("Invalid unit: '" + o.unit + "'", r);
45898
+ throw new N("Invalid unit: '" + o.unit + "'", r);
45899
45899
  return {
45900
45900
  type: "size",
45901
45901
  mode: this.mode,
@@ -45964,7 +45964,7 @@ class Ex {
45964
45964
  };
45965
45965
  } else if (o = this.parseFunction(r, t) || this.parseSymbol(), o == null && a[0] === "\\" && !PC.hasOwnProperty(a)) {
45966
45966
  if (this.settings.throwOnError)
45967
- throw new U("Undefined control sequence: " + a, n);
45967
+ throw new N("Undefined control sequence: " + a, n);
45968
45968
  o = this.formatUnsupportedCmd(a), this.consume();
45969
45969
  }
45970
45970
  return o;
@@ -46008,7 +46008,7 @@ class Ex {
46008
46008
  this.consume();
46009
46009
  var n = r.slice(5), a = n.charAt(0) === "*";
46010
46010
  if (a && (n = n.slice(1)), n.length < 2 || n.charAt(0) !== n.slice(-1))
46011
- throw new U(`\\verb assertion failed --
46011
+ throw new N(`\\verb assertion failed --
46012
46012
  please report what input caused this bug`);
46013
46013
  return n = n.slice(1, -1), {
46014
46014
  type: "verb",
@@ -46054,10 +46054,10 @@ class Ex {
46054
46054
  for (var d = 0; d < o[0].length; d++) {
46055
46055
  var m = o[0][d];
46056
46056
  if (!vM[m])
46057
- throw new U("Unknown accent ' " + m + "'", t);
46057
+ throw new N("Unknown accent ' " + m + "'", t);
46058
46058
  var k = vM[m][this.mode] || vM[m].text;
46059
46059
  if (!k)
46060
- throw new U("Accent " + m + " unsupported in " + this.mode + " mode", t);
46060
+ throw new N("Accent " + m + " unsupported in " + this.mode + " mode", t);
46061
46061
  l = {
46062
46062
  type: "accent",
46063
46063
  mode: this.mode,
@@ -46081,7 +46081,7 @@ var Ew = function(t, r) {
46081
46081
  var a = n.parse();
46082
46082
  if (delete n.gullet.macros.current["\\current@color"], delete n.gullet.macros.current["\\color"], n.gullet.macros.get("\\df@tag")) {
46083
46083
  if (!r.displayMode)
46084
- throw new U("\\tag works only in display equations");
46084
+ throw new N("\\tag works only in display equations");
46085
46085
  a = [{
46086
46086
  type: "tag",
46087
46087
  mode: "text",
@@ -46096,7 +46096,7 @@ var Ew = function(t, r) {
46096
46096
  r.appendChild(a);
46097
46097
  };
46098
46098
  typeof document < "u" && document.compatMode !== "CSS1Compat" && (typeof console < "u" && console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."), FC = function() {
46099
- throw new U("KaTeX doesn't work in quirks mode.");
46099
+ throw new N("KaTeX doesn't work in quirks mode.");
46100
46100
  });
46101
46101
  var $P = function(t, r) {
46102
46102
  var n = jw(t, r).toMarkup();
@@ -46105,7 +46105,7 @@ var $P = function(t, r) {
46105
46105
  var n = new xw(r);
46106
46106
  return Ew(t, n);
46107
46107
  }, DC = function(t, r, n) {
46108
- if (n.throwOnError || !(t instanceof U))
46108
+ if (n.throwOnError || !(t instanceof N))
46109
46109
  throw t;
46110
46110
  var a = H.makeSpan(["katex-error"], [new zt(r)]);
46111
46111
  return a.setAttribute("title", t.toString()), a.setAttribute("style", "color:" + n.errorColor), a;
@@ -46150,7 +46150,7 @@ var $P = function(t, r) {
46150
46150
  /**
46151
46151
  * KaTeX error, usually during parsing.
46152
46152
  */
46153
- ParseError: U,
46153
+ ParseError: N,
46154
46154
  /**
46155
46155
  * The schema of Settings
46156
46156
  */
@@ -46196,7 +46196,7 @@ var $P = function(t, r) {
46196
46196
  * which directly produce parse tree elements
46197
46197
  * and have their own html/mathml builders
46198
46198
  */
46199
- __defineFunction: K,
46199
+ __defineFunction: Y,
46200
46200
  /**
46201
46201
  * adds a new macro to builtin macro list
46202
46202
  */
@@ -48625,16 +48625,16 @@ function HR(e, t, r) {
48625
48625
  return r(B);
48626
48626
  }
48627
48627
  function T(B) {
48628
- return e.enter("tableRow"), O(B);
48628
+ return e.enter("tableRow"), R(B);
48629
48629
  }
48630
- function O(B) {
48631
- return B === 124 ? (e.enter("tableCellDivider"), e.consume(B), e.exit("tableCellDivider"), O) : B === null || ee(B) ? (e.exit("tableRow"), t(B)) : ye(B) ? de(e, O, "whitespace")(B) : (e.enter("data"), Y(B));
48630
+ function R(B) {
48631
+ return B === 124 ? (e.enter("tableCellDivider"), e.consume(B), e.exit("tableCellDivider"), R) : B === null || ee(B) ? (e.exit("tableRow"), t(B)) : ye(B) ? de(e, R, "whitespace")(B) : (e.enter("data"), X(B));
48632
48632
  }
48633
- function Y(B) {
48634
- return B === null || B === 124 || Se(B) ? (e.exit("data"), O(B)) : (e.consume(B), B === 92 ? G : Y);
48633
+ function X(B) {
48634
+ return B === null || B === 124 || Se(B) ? (e.exit("data"), R(B)) : (e.consume(B), B === 92 ? G : X);
48635
48635
  }
48636
48636
  function G(B) {
48637
- return B === 92 || B === 124 ? (e.consume(B), Y) : Y(B);
48637
+ return B === 92 || B === 124 ? (e.consume(B), X) : X(B);
48638
48638
  }
48639
48639
  }
48640
48640
  function BR(e, t) {
@@ -48754,53 +48754,29 @@ function OR(e) {
48754
48754
  const VR = (e) => {
48755
48755
  if (!e || typeof e != "string")
48756
48756
  return "";
48757
- let t = e;
48758
48757
  try {
48759
- t = t.replace(/\r\n/g, `
48758
+ let t = e;
48759
+ return t = t.replace(/\r\n/g, `
48760
48760
  `).replace(/\r/g, `
48761
- `), t = t.replace(/\\\[\s*([\s\S]*?)\s*\\\]/g, (n, a) => {
48762
- const o = a.trim();
48763
- return o ? `
48764
- $$${o}$$
48765
- ` : n;
48766
- }), t = t.replace(/\\\(\s*([\s\S]*?)\s*\\\)/g, (n, a) => {
48767
- const o = a.trim();
48768
- return o ? `$${o}$` : n;
48769
- }), t = t.replace(/\$\$\$+/g, "$$"), t = t.replace(/\$+([^$\n]+)\$+/g, "$$$1$$"), t = t.replace(/([^\n])\$\$([^$\n])/g, `$1
48770
- $$$$2`), t = t.replace(/([^$\n])\$\$([^\n])/g, `$$1$$
48771
- $2`), t = t.replace(/\n{3,}/g, `
48772
-
48773
- `), t = t.replace(/\n(\s*[-*+])\s*/g, `
48774
- $1 `), t = t.replace(/\n(\s*\d+\.)\s*/g, `
48775
- $1 `), t = t.replace(/\n(#{1,6})\s*([^\n]+)\n/g, `
48776
-
48777
- $1 $2
48778
-
48779
- `), t = t.replace(/\n```/g, "\n\n```"), t = t.replace(/```\n/g, "```\n\n"), t = t.replace(/[ \t]+$/gm, "");
48780
- const r = new RegExp("(?<!\\]\\()(?<!\\$)(https?:\\/\\/[^\\s)$]+)(?!\\))(?!\\$)", "g");
48781
- t = t.replace(r, "[$1]($1)"), t = t.trim(), t && !t.endsWith(`
48761
+ `), t = t.replace(/\\\[([\s\S]*?)\\\]/g, (r, n) => `
48762
+ $$${n}$$
48763
+ `), t = t.replace(/\\\(([\s\S]*?)\\\)/g, (r, n) => `$${n}$`), t = t.trim(), t && !t.endsWith(`
48782
48764
  `) && (t += `
48783
- `);
48784
- } catch (r) {
48785
- return console.warn("Error preprocessing markdown:", r), e;
48765
+ `), t;
48766
+ } catch (t) {
48767
+ return console.warn("Error preprocessing markdown:", t), e;
48786
48768
  }
48787
- return t;
48788
48769
  }, NR = ({
48789
48770
  children: e,
48790
48771
  href: t,
48791
48772
  ...r
48792
- }) => /* @__PURE__ */ R.jsx(
48773
+ }) => /* @__PURE__ */ _.jsx(
48793
48774
  "a",
48794
48775
  {
48795
48776
  ...r,
48796
48777
  href: t,
48797
48778
  target: "_blank",
48798
48779
  rel: "noopener noreferrer",
48799
- className: "text-blue-600 hover:text-blue-800 underline decoration-1 underline-offset-2 transition-colors duration-200",
48800
- style: {
48801
- wordBreak: "break-word",
48802
- overflowWrap: "break-word"
48803
- },
48804
48780
  children: e
48805
48781
  }
48806
48782
  ), pI = ({
@@ -48808,244 +48784,30 @@ $1 $2
48808
48784
  className: t = ""
48809
48785
  }) => {
48810
48786
  const r = VR(e);
48811
- return r ? /* @__PURE__ */ R.jsx(
48812
- "div",
48813
- {
48814
- className: `markdown-content ${t}`,
48815
- style: {
48816
- color: "inherit",
48817
- fontSize: "inherit",
48818
- lineHeight: "1.6",
48819
- wordBreak: "break-word",
48820
- overflowWrap: "break-word",
48821
- maxWidth: "100%"
48787
+ return r ? /* @__PURE__ */ _.jsx("div", { className: `markdown-content ${t}`, children: /* @__PURE__ */ _.jsx(
48788
+ jH,
48789
+ {
48790
+ remarkPlugins: [eF, OR],
48791
+ rehypePlugins: [HF],
48792
+ components: {
48793
+ // Links
48794
+ a: NR
48822
48795
  },
48823
- children: /* @__PURE__ */ R.jsx(
48824
- jH,
48825
- {
48826
- remarkPlugins: [eF, OR],
48827
- rehypePlugins: [HF],
48828
- components: {
48829
- // Links
48830
- a: NR,
48831
- // Paragraphs with proper spacing
48832
- p: ({ children: n, ...a }) => /* @__PURE__ */ R.jsx(
48833
- "p",
48834
- {
48835
- ...a,
48836
- style: {
48837
- color: "inherit",
48838
- margin: "0 0 12px 0",
48839
- lineHeight: "1.6",
48840
- wordBreak: "break-word",
48841
- overflowWrap: "break-word"
48842
- },
48843
- children: n
48844
- }
48845
- ),
48846
- // Headers with consistent spacing
48847
- h1: ({ children: n, ...a }) => /* @__PURE__ */ R.jsx("h1", { ...a, style: {
48848
- color: "inherit",
48849
- margin: "20px 0 12px 0",
48850
- fontSize: "1.5em",
48851
- fontWeight: "600",
48852
- lineHeight: "1.4"
48853
- }, children: n }),
48854
- h2: ({ children: n, ...a }) => /* @__PURE__ */ R.jsx("h2", { ...a, style: {
48855
- color: "inherit",
48856
- margin: "18px 0 10px 0",
48857
- fontSize: "1.3em",
48858
- fontWeight: "600",
48859
- lineHeight: "1.4"
48860
- }, children: n }),
48861
- h3: ({ children: n, ...a }) => /* @__PURE__ */ R.jsx("h3", { ...a, style: {
48862
- color: "inherit",
48863
- margin: "16px 0 8px 0",
48864
- fontSize: "1.2em",
48865
- fontWeight: "600",
48866
- lineHeight: "1.4"
48867
- }, children: n }),
48868
- h4: ({ children: n, ...a }) => /* @__PURE__ */ R.jsx("h4", { ...a, style: {
48869
- color: "inherit",
48870
- margin: "14px 0 6px 0",
48871
- fontSize: "1.1em",
48872
- fontWeight: "600",
48873
- lineHeight: "1.4"
48874
- }, children: n }),
48875
- h5: ({ children: n, ...a }) => /* @__PURE__ */ R.jsx("h5", { ...a, style: {
48876
- color: "inherit",
48877
- margin: "12px 0 6px 0",
48878
- fontSize: "1.05em",
48879
- fontWeight: "600",
48880
- lineHeight: "1.4"
48881
- }, children: n }),
48882
- h6: ({ children: n, ...a }) => /* @__PURE__ */ R.jsx("h6", { ...a, style: {
48883
- color: "inherit",
48884
- margin: "12px 0 6px 0",
48885
- fontSize: "1em",
48886
- fontWeight: "600",
48887
- lineHeight: "1.4"
48888
- }, children: n }),
48889
- // Lists with proper spacing
48890
- ul: ({ children: n, ...a }) => /* @__PURE__ */ R.jsx(
48891
- "ul",
48892
- {
48893
- ...a,
48894
- style: {
48895
- color: "inherit",
48896
- margin: "8px 0 12px 0",
48897
- paddingLeft: "20px",
48898
- listStyleType: "disc"
48899
- },
48900
- children: n
48901
- }
48902
- ),
48903
- ol: ({ children: n, ...a }) => /* @__PURE__ */ R.jsx(
48904
- "ol",
48905
- {
48906
- ...a,
48907
- style: {
48908
- color: "inherit",
48909
- margin: "8px 0 12px 0",
48910
- paddingLeft: "20px",
48911
- listStyleType: "decimal"
48912
- },
48913
- children: n
48914
- }
48915
- ),
48916
- li: ({ children: n, ...a }) => /* @__PURE__ */ R.jsx(
48917
- "li",
48918
- {
48919
- ...a,
48920
- style: {
48921
- color: "inherit",
48922
- marginBottom: "4px",
48923
- lineHeight: "1.6"
48924
- },
48925
- children: n
48926
- }
48927
- ),
48928
- // Code blocks with better styling
48929
- pre: ({ children: n, ...a }) => /* @__PURE__ */ R.jsx(
48930
- "pre",
48931
- {
48932
- ...a,
48933
- style: {
48934
- overflow: "auto",
48935
- padding: "12px 16px",
48936
- margin: "12px 0",
48937
- borderRadius: "6px",
48938
- backgroundColor: "rgba(0, 0, 0, 0.06)",
48939
- border: "1px solid rgba(0, 0, 0, 0.1)",
48940
- fontSize: "0.9em",
48941
- lineHeight: "1.4",
48942
- fontFamily: 'Monaco, Consolas, "Liberation Mono", "Courier New", monospace'
48943
- },
48944
- children: n
48945
- }
48946
- ),
48947
- // Inline code
48948
- code: ({ children: n, ...a }) => a.inline ? /* @__PURE__ */ R.jsx(
48949
- "code",
48950
- {
48951
- ...a,
48952
- style: {
48953
- padding: "2px 6px",
48954
- borderRadius: "4px",
48955
- backgroundColor: "rgba(0, 0, 0, 0.06)",
48956
- border: "1px solid rgba(0, 0, 0, 0.1)",
48957
- fontSize: "0.9em",
48958
- fontFamily: 'Monaco, Consolas, "Liberation Mono", "Courier New", monospace'
48959
- },
48960
- children: n
48961
- }
48962
- ) : /* @__PURE__ */ R.jsx(
48963
- "code",
48964
- {
48965
- ...a,
48966
- style: {
48967
- fontSize: "0.9em",
48968
- fontFamily: 'Monaco, Consolas, "Liberation Mono", "Courier New", monospace'
48969
- },
48970
- children: n
48971
- }
48972
- ),
48973
- // Blockquotes
48974
- blockquote: ({ children: n, ...a }) => /* @__PURE__ */ R.jsx(
48975
- "blockquote",
48976
- {
48977
- ...a,
48978
- style: {
48979
- margin: "12px 0",
48980
- paddingLeft: "16px",
48981
- borderLeft: "4px solid rgba(0, 0, 0, 0.2)",
48982
- fontStyle: "italic",
48983
- color: "inherit",
48984
- opacity: 0.8
48985
- },
48986
- children: n
48987
- }
48988
- ),
48989
- // Horizontal rules
48990
- hr: ({ ...n }) => /* @__PURE__ */ R.jsx(
48991
- "hr",
48992
- {
48993
- ...n,
48994
- style: {
48995
- margin: "20px 0",
48996
- border: "none",
48997
- borderTop: "1px solid rgba(0, 0, 0, 0.2)",
48998
- opacity: 0.5
48999
- }
49000
- }
49001
- ),
49002
- // Tables
49003
- table: ({ children: n, ...a }) => /* @__PURE__ */ R.jsx("div", { style: { overflowX: "auto", margin: "12px 0" }, children: /* @__PURE__ */ R.jsx(
49004
- "table",
49005
- {
49006
- ...a,
49007
- style: {
49008
- width: "100%",
49009
- borderCollapse: "collapse",
49010
- fontSize: "0.9em"
49011
- },
49012
- children: n
49013
- }
49014
- ) }),
49015
- thead: ({ children: n, ...a }) => /* @__PURE__ */ R.jsx("thead", { ...a, style: { backgroundColor: "rgba(0, 0, 0, 0.05)" }, children: n }),
49016
- th: ({ children: n, ...a }) => /* @__PURE__ */ R.jsx(
49017
- "th",
49018
- {
49019
- ...a,
49020
- style: {
49021
- padding: "8px 12px",
49022
- border: "1px solid rgba(0, 0, 0, 0.2)",
49023
- fontWeight: "600",
49024
- textAlign: "left"
49025
- },
49026
- children: n
49027
- }
49028
- ),
49029
- td: ({ children: n, ...a }) => /* @__PURE__ */ R.jsx(
49030
- "td",
49031
- {
49032
- ...a,
49033
- style: {
49034
- padding: "8px 12px",
49035
- border: "1px solid rgba(0, 0, 0, 0.2)"
49036
- },
49037
- children: n
49038
- }
49039
- ),
49040
- // Line breaks
49041
- br: ({ ...n }) => /* @__PURE__ */ R.jsx("br", { ...n })
49042
- },
49043
- children: r
49044
- }
49045
- )
49046
- }
49047
- ) : null;
49048
- }, UR = ({
48796
+ children: r
48797
+ }
48798
+ ) }) : null;
48799
+ }, UR = (e) => {
48800
+ if (!e) return !1;
48801
+ if ((e.match(/`/g) || []).length % 2 !== 0 || (e.match(/```/g) || []).length % 2 !== 0) return !0;
48802
+ if (e.endsWith("*") || e.endsWith("_")) {
48803
+ const a = e[e.length - 1];
48804
+ let o = 0;
48805
+ for (let l = e.length - 1; l >= 0 && e[l] === a; l--)
48806
+ o++;
48807
+ if (o <= 2) return !0;
48808
+ }
48809
+ return !!(e.match(/\n[-*+]\s*$/) || e.match(/^\s*[-*+]\s*$/) || e.endsWith("[") || e.includes("[") && !e.includes("](") || (e.match(/\$/g) || []).length % 2 !== 0 || e.endsWith("\\") || e.endsWith("\\(") || e.endsWith("\\[") || e.match(/(^|\n)#{1,6}\s*$/));
48810
+ }, _R = ({
49049
48811
  content: e,
49050
48812
  onComplete: t,
49051
48813
  messageIndex: r,
@@ -49069,10 +48831,19 @@ $1 $2
49069
48831
  if (!x.current || A.current)
49070
48832
  return;
49071
48833
  const F = e, T = F.length;
49072
- k.current === 0 && T > 0 && m(!1), k.current < T ? (k.current++, u(F.slice(0, k.current)), o.current.set(r, k.current), g.current = requestAnimationFrame(() => {
49073
- setTimeout(() => C(), 15);
49074
- })) : T > 0 && k.current === T && q();
49075
- }, [e, r, o]), q = dt(() => {
48834
+ if (k.current === 0 && T > 0 && m(!1), k.current < T) {
48835
+ let R = k.current + 1, X = F.slice(0, R);
48836
+ for (; R < T && UR(X); )
48837
+ R++, X = F.slice(0, R);
48838
+ k.current = R, u(X), o.current.set(r, k.current);
48839
+ const G = X.includes(`
48840
+ `) && X.lastIndexOf(`
48841
+ `) > X.length - 10;
48842
+ (k.current % 10 === 0 || G) && s(), g.current = requestAnimationFrame(() => {
48843
+ setTimeout(() => C(), 5);
48844
+ });
48845
+ } else T > 0 && k.current === T && q();
48846
+ }, [e, r, o, s]), q = dt(() => {
49076
48847
  A.current || (A.current = !0, x.current = !1, l.current = !1, c(!1), u(e), o.current.set(r, e.length), t(), s());
49077
48848
  }, [e, r, t, s, c, l, o]), j = dt(() => {
49078
48849
  x.current && !A.current && (g.current && cancelAnimationFrame(g.current), k.current = e.length, q());
@@ -49102,15 +48873,15 @@ $1 $2
49102
48873
  document.hidden ? (g.current && cancelAnimationFrame(g.current), F = Date.now()) : F && !A.current && (Date.now() - F > ve.ANIMATIONS.VISIBILITY_SKIP_THRESHOLD ? j() : x.current && C(), F = null);
49103
48874
  };
49104
48875
  return document.addEventListener("visibilitychange", T), () => document.removeEventListener("visibilitychange", T);
49105
- }, [C, j]), d && e.length === 0 ? /* @__PURE__ */ R.jsxs("div", { className: "text-gray-500", children: [
49106
- /* @__PURE__ */ R.jsx("span", { className: "font-medium", children: "Thinking" }),
49107
- /* @__PURE__ */ R.jsxs("span", { className: "animate-dots ml-1", children: [
49108
- /* @__PURE__ */ R.jsx("span", { className: "dot", children: "." }),
49109
- /* @__PURE__ */ R.jsx("span", { className: "dot", children: "." }),
49110
- /* @__PURE__ */ R.jsx("span", { className: "dot", children: "." })
48876
+ }, [C, j]), d && e.length === 0 ? /* @__PURE__ */ _.jsxs("div", { className: "text-gray-500", children: [
48877
+ /* @__PURE__ */ _.jsx("span", { className: "font-medium", children: "Thinking" }),
48878
+ /* @__PURE__ */ _.jsxs("span", { className: "animate-dots ml-1", children: [
48879
+ /* @__PURE__ */ _.jsx("span", { className: "dot", children: "." }),
48880
+ /* @__PURE__ */ _.jsx("span", { className: "dot", children: "." }),
48881
+ /* @__PURE__ */ _.jsx("span", { className: "dot", children: "." })
49111
48882
  ] })
49112
- ] }) : /* @__PURE__ */ R.jsx(pI, { content: h });
49113
- }, _R = ({
48883
+ ] }) : /* @__PURE__ */ _.jsx(pI, { content: h });
48884
+ }, ZR = ({
49114
48885
  message: e,
49115
48886
  index: t,
49116
48887
  isLatestAssistantMessage: r,
@@ -49130,7 +48901,7 @@ $1 $2
49130
48901
  lastMessageRef: A
49131
48902
  }) => {
49132
48903
  const b = /* @__PURE__ */ new Date();
49133
- return b.setMinutes(b.getMinutes() - (s - t)), /* @__PURE__ */ R.jsx(
48904
+ return b.setMinutes(b.getMinutes() - (s - t)), /* @__PURE__ */ _.jsx(
49134
48905
  "div",
49135
48906
  {
49136
48907
  className: tr(
@@ -49138,7 +48909,7 @@ $1 $2
49138
48909
  e.role === "user" ? "justify-end" : "justify-start"
49139
48910
  ),
49140
48911
  ref: t === s - 1 ? A : null,
49141
- children: /* @__PURE__ */ R.jsxs(
48912
+ children: /* @__PURE__ */ _.jsxs(
49142
48913
  "div",
49143
48914
  {
49144
48915
  className: tr(
@@ -49155,8 +48926,8 @@ $1 $2
49155
48926
  borderRadius: e.role === "assistant" ? "0.75rem" : void 0
49156
48927
  },
49157
48928
  children: [
49158
- e.role === "assistant" ? e.content ? !d(t) && r ? /* @__PURE__ */ R.jsx(
49159
- UR,
48929
+ e.role === "assistant" ? e.content ? !d(t) && r ? /* @__PURE__ */ _.jsx(
48930
+ _R,
49160
48931
  {
49161
48932
  content: e.content,
49162
48933
  onComplete: () => c(t, s, h),
@@ -49168,26 +48939,26 @@ $1 $2
49168
48939
  setIsAnimating: g,
49169
48940
  scrollToBottom: h
49170
48941
  }
49171
- ) : /* @__PURE__ */ R.jsx(pI, { content: e.content }) : /* @__PURE__ */ R.jsxs("div", { className: "text-gray-500", children: [
49172
- /* @__PURE__ */ R.jsx("span", { className: "font-medium", children: "Thinking" }),
49173
- /* @__PURE__ */ R.jsxs("span", { className: "animate-dots ml-1", children: [
49174
- /* @__PURE__ */ R.jsx("span", { className: "dot", children: "." }),
49175
- /* @__PURE__ */ R.jsx("span", { className: "dot", children: "." }),
49176
- /* @__PURE__ */ R.jsx("span", { className: "dot", children: "." })
48942
+ ) : /* @__PURE__ */ _.jsx(pI, { content: e.content }) : /* @__PURE__ */ _.jsxs("div", { className: "text-gray-500", children: [
48943
+ /* @__PURE__ */ _.jsx("span", { className: "font-medium", children: "Thinking" }),
48944
+ /* @__PURE__ */ _.jsxs("span", { className: "animate-dots ml-1", children: [
48945
+ /* @__PURE__ */ _.jsx("span", { className: "dot", children: "." }),
48946
+ /* @__PURE__ */ _.jsx("span", { className: "dot", children: "." }),
48947
+ /* @__PURE__ */ _.jsx("span", { className: "dot", children: "." })
49177
48948
  ] })
49178
- ] }) : /* @__PURE__ */ R.jsx("p", { className: "text-base", style: {
48949
+ ] }) : /* @__PURE__ */ _.jsx("p", { className: "text-base", style: {
49179
48950
  overflowWrap: "anywhere",
49180
48951
  wordBreak: "break-word",
49181
48952
  whiteSpace: "pre-wrap",
49182
48953
  width: "100%"
49183
48954
  }, children: e.content }),
49184
- /* @__PURE__ */ R.jsxs("div", { className: tr(
48955
+ /* @__PURE__ */ _.jsxs("div", { className: tr(
49185
48956
  "flex text-xs mt-2",
49186
48957
  e.role === "user" ? "justify-start text-white/70" : "justify-between text-gray-400"
49187
48958
  ), children: [
49188
- /* @__PURE__ */ R.jsx("span", { children: x(b) }),
49189
- e.role === "assistant" && !n && /* @__PURE__ */ R.jsxs("div", { className: "relative", children: [
49190
- /* @__PURE__ */ R.jsx(
48959
+ /* @__PURE__ */ _.jsx("span", { children: x(b) }),
48960
+ e.role === "assistant" && !n && /* @__PURE__ */ _.jsxs("div", { className: "relative", children: [
48961
+ /* @__PURE__ */ _.jsx(
49191
48962
  "button",
49192
48963
  {
49193
48964
  onClick: () => l(e.content, t),
@@ -49212,10 +48983,10 @@ $1 $2
49212
48983
  C.currentTarget.style.setProperty("color", a.text.primary, "important"), C.currentTarget.style.setProperty("background", "transparent", "important");
49213
48984
  },
49214
48985
  "aria-label": "Copy to clipboard",
49215
- children: o === t ? /* @__PURE__ */ R.jsx(Mr, { size: 16 }) : /* @__PURE__ */ R.jsx(Lr, { size: 16 })
48986
+ children: o === t ? /* @__PURE__ */ _.jsx(Mr, { size: 16 }) : /* @__PURE__ */ _.jsx(Lr, { size: 16 })
49216
48987
  }
49217
48988
  ),
49218
- o === t && /* @__PURE__ */ R.jsx(
48989
+ o === t && /* @__PURE__ */ _.jsx(
49219
48990
  "div",
49220
48991
  {
49221
48992
  className: "absolute bottom-full right-0 mb-1 px-2 py-1 text-xs rounded-md shadow-sm animate-fade-in-out whitespace-nowrap",
@@ -49233,7 +49004,7 @@ $1 $2
49233
49004
  )
49234
49005
  }
49235
49006
  );
49236
- }, ZR = ({
49007
+ }, GR = ({
49237
49008
  messages: e,
49238
49009
  isLoading: t,
49239
49010
  theme: r,
@@ -49257,15 +49028,15 @@ $1 $2
49257
49028
  isTypingRef: j,
49258
49029
  setIsAnimating: F,
49259
49030
  formatTime: T,
49260
- lastMessageRef: O,
49261
- maxSuggestedQuestionLength: Y,
49031
+ lastMessageRef: R,
49032
+ maxSuggestedQuestionLength: X,
49262
49033
  maxSuggestedQuestionQueryLength: G
49263
49034
  }) => {
49264
49035
  const Z = (() => {
49265
49036
  const D = r.input.background;
49266
49037
  return !D || D === "transparent" || D.includes("rgba") || D.includes("hsla") ? "#ffffff" : D.match(/^#[0-9A-Fa-f]{8}$/) ? D.substring(0, 7) : D;
49267
49038
  })();
49268
- return /* @__PURE__ */ R.jsxs(
49039
+ return /* @__PURE__ */ _.jsxs(
49269
49040
  "div",
49270
49041
  {
49271
49042
  className: "flex-1 overflow-hidden relative",
@@ -49275,7 +49046,7 @@ $1 $2
49275
49046
  isolation: "isolate"
49276
49047
  },
49277
49048
  children: [
49278
- /* @__PURE__ */ R.jsx(
49049
+ /* @__PURE__ */ _.jsx(
49279
49050
  "div",
49280
49051
  {
49281
49052
  className: "absolute inset-0",
@@ -49287,7 +49058,7 @@ $1 $2
49287
49058
  }
49288
49059
  }
49289
49060
  ),
49290
- /* @__PURE__ */ R.jsxs(
49061
+ /* @__PURE__ */ _.jsxs(
49291
49062
  "div",
49292
49063
  {
49293
49064
  ref: c,
@@ -49309,7 +49080,7 @@ $1 $2
49309
49080
  },
49310
49081
  onScroll: d,
49311
49082
  children: [
49312
- a && /* @__PURE__ */ R.jsx(
49083
+ a && /* @__PURE__ */ _.jsx(
49313
49084
  "button",
49314
49085
  {
49315
49086
  onClick: h,
@@ -49320,10 +49091,10 @@ $1 $2
49320
49091
  },
49321
49092
  "aria-label": "Scroll to top",
49322
49093
  title: "Scroll to top",
49323
- children: /* @__PURE__ */ R.jsx(br, { size: ve.BUTTON_SIZES.ICON_SIZES.BUTTON })
49094
+ children: /* @__PURE__ */ _.jsx(br, { size: ve.BUTTON_SIZES.ICON_SIZES.BUTTON })
49324
49095
  }
49325
49096
  ),
49326
- o && !l && /* @__PURE__ */ R.jsx(
49097
+ o && !l && /* @__PURE__ */ _.jsx(
49327
49098
  "button",
49328
49099
  {
49329
49100
  onClick: () => u(),
@@ -49334,18 +49105,18 @@ $1 $2
49334
49105
  },
49335
49106
  "aria-label": "Scroll to bottom",
49336
49107
  title: "Scroll to bottom",
49337
- children: /* @__PURE__ */ R.jsx(wr, { size: ve.BUTTON_SIZES.ICON_SIZES.BUTTON })
49108
+ children: /* @__PURE__ */ _.jsx(wr, { size: ve.BUTTON_SIZES.ICON_SIZES.BUTTON })
49338
49109
  }
49339
49110
  ),
49340
- e.length === 0 ? /* @__PURE__ */ R.jsxs("div", { className: "py-4", children: [
49341
- /* @__PURE__ */ R.jsx("div", { className: "w-full px-3 mb-6", children: /* @__PURE__ */ R.jsxs("div", { className: "max-w-lg mx-auto sm:max-w-2xl", children: [
49342
- /* @__PURE__ */ R.jsx("h4", { className: "font-bold text-xl mb-4 px-1", style: { color: r.text.primary }, children: n.welcome.title }),
49343
- /* @__PURE__ */ R.jsx("p", { className: "text-lg px-1 py-2", style: { color: r.text.secondary }, children: n.welcome.description })
49111
+ e.length === 0 ? /* @__PURE__ */ _.jsxs("div", { className: "py-4", children: [
49112
+ /* @__PURE__ */ _.jsx("div", { className: "w-full px-3 mb-6", children: /* @__PURE__ */ _.jsxs("div", { className: "max-w-lg mx-auto sm:max-w-2xl", children: [
49113
+ /* @__PURE__ */ _.jsx("h4", { className: "font-bold text-xl mb-4 px-1", style: { color: r.text.primary }, children: n.welcome.title }),
49114
+ /* @__PURE__ */ _.jsx("p", { className: "text-lg px-1 py-2", style: { color: r.text.secondary }, children: n.welcome.description })
49344
49115
  ] }) }),
49345
- /* @__PURE__ */ R.jsx("div", { className: "w-full px-3", children: /* @__PURE__ */ R.jsx("div", { className: "flex flex-col gap-2 max-w-lg mx-auto sm:max-w-2xl", children: n.suggestedQuestions.slice(0, 6).map((D, ie) => {
49116
+ /* @__PURE__ */ _.jsx("div", { className: "w-full px-3", children: /* @__PURE__ */ _.jsx("div", { className: "flex flex-col gap-2 max-w-lg mx-auto sm:max-w-2xl", children: n.suggestedQuestions.slice(0, 6).map((D, ie) => {
49346
49117
  var be, De;
49347
- const te = G ?? ve.MAX_SUGGESTED_QUESTION_QUERY_LENGTH, X = Y ?? ve.MAX_SUGGESTED_QUESTION_LENGTH, ue = ((be = D.query) == null ? void 0 : be.length) > te ? D.query.substring(0, te) : D.query, me = ((De = D.text) == null ? void 0 : De.length) > X ? `${D.text.substring(0, X)}...` : D.text;
49348
- return /* @__PURE__ */ R.jsx(
49118
+ const te = G ?? ve.MAX_SUGGESTED_QUESTION_QUERY_LENGTH, K = X ?? ve.MAX_SUGGESTED_QUESTION_LENGTH, ue = ((be = D.query) == null ? void 0 : be.length) > te ? D.query.substring(0, te) : D.query, me = ((De = D.text) == null ? void 0 : De.length) > K ? `${D.text.substring(0, K)}...` : D.text;
49119
+ return /* @__PURE__ */ _.jsx(
49349
49120
  "div",
49350
49121
  {
49351
49122
  className: "flex items-center w-full px-1 py-1.5 text-lg rounded-xl",
@@ -49353,7 +49124,7 @@ $1 $2
49353
49124
  minHeight: "36px",
49354
49125
  background: "transparent"
49355
49126
  },
49356
- children: /* @__PURE__ */ R.jsx(
49127
+ children: /* @__PURE__ */ _.jsx(
49357
49128
  "span",
49358
49129
  {
49359
49130
  onClick: () => {
@@ -49376,16 +49147,16 @@ $1 $2
49376
49147
  }) }) })
49377
49148
  ] }) : (
49378
49149
  /* Messages List */
49379
- /* @__PURE__ */ R.jsxs("div", { className: "space-y-3", children: [
49150
+ /* @__PURE__ */ _.jsxs("div", { className: "space-y-3", children: [
49380
49151
  e.map((D, ie) => {
49381
- const te = D.role === "assistant" && ie === e.length - 1, X = te && t;
49382
- return /* @__PURE__ */ R.jsx(
49383
- _R,
49152
+ const te = D.role === "assistant" && ie === e.length - 1, K = te && t;
49153
+ return /* @__PURE__ */ _.jsx(
49154
+ ZR,
49384
49155
  {
49385
49156
  message: D,
49386
49157
  index: ie,
49387
49158
  isLatestAssistantMessage: te,
49388
- showTypingAnimation: X,
49159
+ showTypingAnimation: K,
49389
49160
  theme: r,
49390
49161
  copiedMessageId: g,
49391
49162
  onCopyToClipboard: x,
@@ -49398,20 +49169,20 @@ $1 $2
49398
49169
  isTypingRef: j,
49399
49170
  setIsAnimating: F,
49400
49171
  formatTime: T,
49401
- lastMessageRef: O
49172
+ lastMessageRef: R
49402
49173
  },
49403
49174
  ie
49404
49175
  );
49405
49176
  }),
49406
- t && e.length === 0 && /* @__PURE__ */ R.jsx("div", { className: "flex justify-start", children: /* @__PURE__ */ R.jsx("div", { className: "bg-white border border-gray-200 rounded-xl rounded-tl-none max-w-[85%] p-4 shadow-sm", children: /* @__PURE__ */ R.jsxs("div", { className: "text-gray-500", children: [
49407
- /* @__PURE__ */ R.jsx("span", { className: "font-medium text-lg", children: "Thinking" }),
49408
- /* @__PURE__ */ R.jsxs("span", { className: "animate-dots ml-1", children: [
49409
- /* @__PURE__ */ R.jsx("span", { className: "dot", children: "." }),
49410
- /* @__PURE__ */ R.jsx("span", { className: "dot", children: "." }),
49411
- /* @__PURE__ */ R.jsx("span", { className: "dot", children: "." })
49177
+ t && e.length === 0 && /* @__PURE__ */ _.jsx("div", { className: "flex justify-start", children: /* @__PURE__ */ _.jsx("div", { className: "bg-white border border-gray-200 rounded-xl rounded-tl-none max-w-[85%] p-4 shadow-sm", children: /* @__PURE__ */ _.jsxs("div", { className: "text-gray-500", children: [
49178
+ /* @__PURE__ */ _.jsx("span", { className: "font-medium text-lg", children: "Thinking" }),
49179
+ /* @__PURE__ */ _.jsxs("span", { className: "animate-dots ml-1", children: [
49180
+ /* @__PURE__ */ _.jsx("span", { className: "dot", children: "." }),
49181
+ /* @__PURE__ */ _.jsx("span", { className: "dot", children: "." }),
49182
+ /* @__PURE__ */ _.jsx("span", { className: "dot", children: "." })
49412
49183
  ] })
49413
49184
  ] }) }) }),
49414
- /* @__PURE__ */ R.jsx("div", { ref: s })
49185
+ /* @__PURE__ */ _.jsx("div", { ref: s })
49415
49186
  ] })
49416
49187
  )
49417
49188
  ]
@@ -49420,7 +49191,7 @@ $1 $2
49420
49191
  ]
49421
49192
  }
49422
49193
  );
49423
- }, GR = ({
49194
+ }, WR = ({
49424
49195
  message: e,
49425
49196
  isFocused: t,
49426
49197
  isLoading: r,
@@ -49435,7 +49206,7 @@ $1 $2
49435
49206
  const d = n.input.background;
49436
49207
  return !d || d === "transparent" || d.includes("rgba") || d.includes("hsla") ? "#ffffff" : d.match(/^#[0-9A-Fa-f]{8}$/) ? d.substring(0, 7) : d;
49437
49208
  })();
49438
- return /* @__PURE__ */ R.jsxs(
49209
+ return /* @__PURE__ */ _.jsxs(
49439
49210
  "div",
49440
49211
  {
49441
49212
  className: "border-t-0 shrink-0 relative",
@@ -49455,7 +49226,7 @@ $1 $2
49455
49226
  isolation: "isolate"
49456
49227
  },
49457
49228
  children: [
49458
- /* @__PURE__ */ R.jsx(
49229
+ /* @__PURE__ */ _.jsx(
49459
49230
  "div",
49460
49231
  {
49461
49232
  className: "absolute inset-0",
@@ -49467,7 +49238,7 @@ $1 $2
49467
49238
  }
49468
49239
  }
49469
49240
  ),
49470
- /* @__PURE__ */ R.jsx(
49241
+ /* @__PURE__ */ _.jsx(
49471
49242
  "div",
49472
49243
  {
49473
49244
  className: "absolute inset-0",
@@ -49479,7 +49250,7 @@ $1 $2
49479
49250
  }
49480
49251
  }
49481
49252
  ),
49482
- /* @__PURE__ */ R.jsxs(
49253
+ /* @__PURE__ */ _.jsxs(
49483
49254
  "div",
49484
49255
  {
49485
49256
  className: "relative rounded-2xl transition-all duration-300 overflow-hidden input-modern shadow-soft",
@@ -49496,7 +49267,7 @@ $1 $2
49496
49267
  outlineOffset: "0px"
49497
49268
  },
49498
49269
  children: [
49499
- /* @__PURE__ */ R.jsx(
49270
+ /* @__PURE__ */ _.jsx(
49500
49271
  "div",
49501
49272
  {
49502
49273
  className: "absolute inset-0 rounded-2xl",
@@ -49508,7 +49279,7 @@ $1 $2
49508
49279
  }
49509
49280
  }
49510
49281
  ),
49511
- /* @__PURE__ */ R.jsx(
49282
+ /* @__PURE__ */ _.jsx(
49512
49283
  "textarea",
49513
49284
  {
49514
49285
  ref: a,
@@ -49548,7 +49319,7 @@ $1 $2
49548
49319
  }
49549
49320
  }
49550
49321
  ),
49551
- /* @__PURE__ */ R.jsxs(
49322
+ /* @__PURE__ */ _.jsxs(
49552
49323
  "button",
49553
49324
  {
49554
49325
  onClick: c,
@@ -49576,7 +49347,7 @@ $1 $2
49576
49347
  },
49577
49348
  "aria-label": "Send message",
49578
49349
  children: [
49579
- /* @__PURE__ */ R.jsx(
49350
+ /* @__PURE__ */ _.jsx(
49580
49351
  "div",
49581
49352
  {
49582
49353
  className: "absolute inset-0 opacity-0 transition-opacity duration-300 group-hover:opacity-100",
@@ -49585,7 +49356,7 @@ $1 $2
49585
49356
  }
49586
49357
  }
49587
49358
  ),
49588
- /* @__PURE__ */ R.jsx(
49359
+ /* @__PURE__ */ _.jsx(
49589
49360
  Cr,
49590
49361
  {
49591
49362
  size: ve.BUTTON_SIZES.ICON_SIZES.SEND,
@@ -49622,8 +49393,8 @@ $1 $2
49622
49393
  messagesEndRef: j,
49623
49394
  shouldScrollRef: F,
49624
49395
  scrollTimeoutRef: T,
49625
- scrollToBottom: O,
49626
- scrollToTop: Y,
49396
+ scrollToBottom: R,
49397
+ scrollToTop: X,
49627
49398
  handleScroll: G
49628
49399
  } = sA(h), [B, Z] = ut(window.innerWidth);
49629
49400
  rt(() => {
@@ -49633,7 +49404,7 @@ $1 $2
49633
49404
  const D = Q0(), [ie, te] = ut({
49634
49405
  ...D,
49635
49406
  ...e
49636
- }), X = ie.theme || tS;
49407
+ }), K = ie.theme || tS;
49637
49408
  rt(() => {
49638
49409
  e.apiUrl && e.apiKey && e.sessionId && cr(e.apiUrl, e.apiKey, e.sessionId);
49639
49410
  }, [e.apiUrl, e.apiKey, e.sessionId]), rt(() => {
@@ -49684,7 +49455,7 @@ $1 $2
49684
49455
  focusInput: Ze
49685
49456
  } = uA({
49686
49457
  onSendMessage: ($e) => {
49687
- F.current = !0, be($e), setTimeout(() => O(!0), ve.ANIMATIONS.TOGGLE_DELAY);
49458
+ F.current = !0, be($e), setTimeout(() => R(!0), ve.ANIMATIONS.TOGGLE_DELAY);
49688
49459
  },
49689
49460
  isLoading: me,
49690
49461
  isOpen: t
@@ -49693,7 +49464,7 @@ $1 $2
49693
49464
  ue.length === 0 && x();
49694
49465
  }, [ue.length, x]);
49695
49466
  const Pe = () => {
49696
- r(!t), t || (a(!1), setTimeout(() => O(!0), ve.ANIMATIONS.TOGGLE_DELAY));
49467
+ r(!t), t || (a(!1), setTimeout(() => R(!0), ve.ANIMATIONS.TOGGLE_DELAY));
49697
49468
  }, Ge = async ($e, qt) => {
49698
49469
  try {
49699
49470
  await navigator.clipboard.writeText($e), s(qt), setTimeout(() => {
@@ -49704,8 +49475,8 @@ $1 $2
49704
49475
  }
49705
49476
  }, We = ($e) => $e.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" });
49706
49477
  rt(() => {
49707
- (me || ue.length === 0) && O(!0);
49708
- }, [ue, me, O]), rt(() => () => {
49478
+ (me || ue.length === 0) && R(!0);
49479
+ }, [ue, me, R]), rt(() => () => {
49709
49480
  T.current && clearTimeout(T.current);
49710
49481
  }, [T]);
49711
49482
  const kt = {
@@ -49819,14 +49590,14 @@ $1 $2
49819
49590
  Tablet: "Tablet",
49820
49591
  Laptop: "Laptop",
49821
49592
  Activity: "Activity"
49822
- }, g1 = ((Dt = X.chatButton) == null ? void 0 : Dt.iconName) || "MessageSquare", o1 = kt[g1] || "MessageSquare", $t = FI[o1] || Sr;
49823
- return /* @__PURE__ */ R.jsxs("div", { className: "fixed bottom-8 right-8 z-50 flex flex-col items-end font-sans", style: { fontFamily: oA }, children: [
49824
- t && /* @__PURE__ */ R.jsxs(
49593
+ }, g1 = ((Dt = K.chatButton) == null ? void 0 : Dt.iconName) || "MessageSquare", o1 = kt[g1] || "MessageSquare", $t = FI[o1] || Sr;
49594
+ return /* @__PURE__ */ _.jsxs("div", { className: "fixed bottom-8 right-8 z-50 flex flex-col items-end font-sans", style: { fontFamily: oA }, children: [
49595
+ t && /* @__PURE__ */ _.jsxs(
49825
49596
  "div",
49826
49597
  {
49827
49598
  className: "mb-4 w-full rounded-2xl shadow-elegant flex flex-col overflow-hidden border-0 transition-all duration-300 ease-in-out animate-slide-in-up backdrop-blur-lg",
49828
49599
  style: {
49829
- background: X.input.background,
49600
+ background: K.input.background,
49830
49601
  height: ve.WINDOW_DIMENSIONS.HEIGHT,
49831
49602
  maxHeight: ve.WINDOW_DIMENSIONS.MAX_HEIGHT,
49832
49603
  width: aA(B),
@@ -49841,16 +49612,16 @@ $1 $2
49841
49612
  `
49842
49613
  },
49843
49614
  children: [
49844
- /* @__PURE__ */ R.jsxs(
49615
+ /* @__PURE__ */ _.jsxs(
49845
49616
  "div",
49846
49617
  {
49847
49618
  className: "p-2.5 flex justify-between items-center shrink-0 relative overflow-hidden",
49848
49619
  style: {
49849
- background: `linear-gradient(135deg, ${X.primary}, ${X.primary}e6)`,
49850
- color: X.text.inverse
49620
+ background: `linear-gradient(135deg, ${K.primary}, ${K.primary}e6)`,
49621
+ color: K.text.inverse
49851
49622
  },
49852
49623
  children: [
49853
- /* @__PURE__ */ R.jsx(
49624
+ /* @__PURE__ */ _.jsx(
49854
49625
  "div",
49855
49626
  {
49856
49627
  className: "absolute inset-0 opacity-20",
@@ -49859,49 +49630,49 @@ $1 $2
49859
49630
  }
49860
49631
  }
49861
49632
  ),
49862
- /* @__PURE__ */ R.jsx("div", { className: "flex items-center relative z-10 w-full px-3", children: /* @__PURE__ */ R.jsx("div", { className: "max-w-lg mx-auto sm:max-w-2xl w-full", children: /* @__PURE__ */ R.jsx("h3", { className: "text-xl font-semibold tracking-tight text-left px-1", children: ie.header.title }) }) }),
49863
- /* @__PURE__ */ R.jsxs("div", { className: "flex items-center space-x-2 relative z-10", children: [
49864
- /* @__PURE__ */ R.jsx(
49633
+ /* @__PURE__ */ _.jsx("div", { className: "flex items-center relative z-10 w-full px-3", children: /* @__PURE__ */ _.jsx("div", { className: "max-w-lg mx-auto sm:max-w-2xl w-full", children: /* @__PURE__ */ _.jsx("h3", { className: "text-xl font-semibold tracking-tight text-left px-1", children: ie.header.title }) }) }),
49634
+ /* @__PURE__ */ _.jsxs("div", { className: "flex items-center space-x-2 relative z-10", children: [
49635
+ /* @__PURE__ */ _.jsx(
49865
49636
  "button",
49866
49637
  {
49867
49638
  onClick: () => {
49868
49639
  De(), x();
49869
49640
  },
49870
49641
  className: "btn-modern transition-all duration-200 p-2 rounded-xl hover:bg-white hover:bg-opacity-20 animate-button-hover",
49871
- style: { color: X.text.inverse },
49642
+ style: { color: K.text.inverse },
49872
49643
  "aria-label": "Clear conversation",
49873
49644
  title: "Clear conversation",
49874
- children: /* @__PURE__ */ R.jsx(Ir, { size: ve.BUTTON_SIZES.ICON_SIZES.SEND, className: "drop-shadow-sm" })
49645
+ children: /* @__PURE__ */ _.jsx(Ir, { size: ve.BUTTON_SIZES.ICON_SIZES.SEND, className: "drop-shadow-sm" })
49875
49646
  }
49876
49647
  ),
49877
- /* @__PURE__ */ R.jsx(
49648
+ /* @__PURE__ */ _.jsx(
49878
49649
  "button",
49879
49650
  {
49880
49651
  onClick: Pe,
49881
49652
  className: "btn-modern transition-all duration-200 p-2 rounded-xl hover:bg-white hover:bg-opacity-20 animate-button-hover",
49882
- style: { color: X.text.inverse },
49653
+ style: { color: K.text.inverse },
49883
49654
  "aria-label": "Minimize chat",
49884
- children: /* @__PURE__ */ R.jsx(er, { size: ve.BUTTON_SIZES.ICON_SIZES.MINIMIZE, className: "text-white opacity-90 drop-shadow-sm" })
49655
+ children: /* @__PURE__ */ _.jsx(er, { size: ve.BUTTON_SIZES.ICON_SIZES.MINIMIZE, className: "text-white opacity-90 drop-shadow-sm" })
49885
49656
  }
49886
49657
  )
49887
49658
  ] })
49888
49659
  ]
49889
49660
  }
49890
49661
  ),
49891
- /* @__PURE__ */ R.jsx(
49892
- ZR,
49662
+ /* @__PURE__ */ _.jsx(
49663
+ GR,
49893
49664
  {
49894
49665
  messages: ue,
49895
49666
  isLoading: me,
49896
- theme: X,
49667
+ theme: K,
49897
49668
  currentConfig: ie,
49898
49669
  showScrollTop: b,
49899
49670
  showScrollBottom: C,
49900
49671
  isAnimating: h,
49901
49672
  messagesContainerRef: q,
49902
49673
  messagesEndRef: j,
49903
- scrollToTop: Y,
49904
- scrollToBottom: O,
49674
+ scrollToTop: X,
49675
+ scrollToBottom: R,
49905
49676
  handleScroll: G,
49906
49677
  sendMessage: be,
49907
49678
  focusInput: Ze,
@@ -49919,13 +49690,13 @@ $1 $2
49919
49690
  maxSuggestedQuestionQueryLength: e.maxSuggestedQuestionQueryLength
49920
49691
  }
49921
49692
  ),
49922
- /* @__PURE__ */ R.jsx(
49923
- GR,
49693
+ /* @__PURE__ */ _.jsx(
49694
+ WR,
49924
49695
  {
49925
49696
  message: L,
49926
49697
  isFocused: ze,
49927
49698
  isLoading: me,
49928
- theme: X,
49699
+ theme: K,
49929
49700
  inputRef: we,
49930
49701
  handleMessageChange: I,
49931
49702
  handleKeyDown: je,
@@ -49936,9 +49707,9 @@ $1 $2
49936
49707
  ]
49937
49708
  }
49938
49709
  ),
49939
- /* @__PURE__ */ R.jsxs("div", { className: "relative", children: [
49940
- n && !t && /* @__PURE__ */ R.jsx("span", { className: "absolute -top-2 -right-2 h-5 w-5 bg-gradient-to-r from-orange-500 to-red-500 rounded-full animate-pulse-glow z-10 shadow-lg", children: /* @__PURE__ */ R.jsx("span", { className: "absolute inset-0 rounded-full bg-white opacity-30" }) }),
49941
- /* @__PURE__ */ R.jsxs(
49710
+ /* @__PURE__ */ _.jsxs("div", { className: "relative", children: [
49711
+ n && !t && /* @__PURE__ */ _.jsx("span", { className: "absolute -top-2 -right-2 h-5 w-5 bg-gradient-to-r from-orange-500 to-red-500 rounded-full animate-pulse-glow z-10 shadow-lg", children: /* @__PURE__ */ _.jsx("span", { className: "absolute inset-0 rounded-full bg-white opacity-30" }) }),
49712
+ /* @__PURE__ */ _.jsxs(
49942
49713
  "button",
49943
49714
  {
49944
49715
  onClick: Pe,
@@ -49950,9 +49721,9 @@ $1 $2
49950
49721
  !t && "animate-float"
49951
49722
  ),
49952
49723
  style: {
49953
- background: t ? `linear-gradient(135deg, ${X.primary}, ${X.primary}e6)` : o ? ((mt = X.chatButton) == null ? void 0 : mt.hoverBackground) || ((Ye = X.chatButton) == null ? void 0 : Ye.background) || "#ffffff" : ((Lt = X.chatButton) == null ? void 0 : Lt.background) || "#ffffff",
49954
- color: t ? void 0 : X.text.primary,
49955
- border: t ? "none" : `1px solid ${((ft = X.chatButton) == null ? void 0 : ft.borderColor) || "#e5e7eb"}`,
49724
+ background: t ? `linear-gradient(135deg, ${K.primary}, ${K.primary}e6)` : o ? ((mt = K.chatButton) == null ? void 0 : mt.hoverBackground) || ((Ye = K.chatButton) == null ? void 0 : Ye.background) || "#ffffff" : ((Lt = K.chatButton) == null ? void 0 : Lt.background) || "#ffffff",
49725
+ color: t ? void 0 : K.text.primary,
49726
+ border: t ? "none" : `1px solid ${((ft = K.chatButton) == null ? void 0 : ft.borderColor) || "#e5e7eb"}`,
49956
49727
  width: ve.BUTTON_SIZES.CHAT_BUTTON.width,
49957
49728
  height: ve.BUTTON_SIZES.CHAT_BUTTON.height,
49958
49729
  transform: o ? "translateY(-2px) scale(1.05)" : "translateY(0) scale(1)",
@@ -49960,7 +49731,7 @@ $1 $2
49960
49731
  },
49961
49732
  "aria-label": t ? "Close chat" : "Open chat",
49962
49733
  children: [
49963
- /* @__PURE__ */ R.jsx(
49734
+ /* @__PURE__ */ _.jsx(
49964
49735
  "div",
49965
49736
  {
49966
49737
  className: tr(
@@ -49972,13 +49743,13 @@ $1 $2
49972
49743
  }
49973
49744
  }
49974
49745
  ),
49975
- t ? /* @__PURE__ */ R.jsx(
49746
+ t ? /* @__PURE__ */ _.jsx(
49976
49747
  er,
49977
49748
  {
49978
49749
  size: ve.BUTTON_SIZES.ICON_SIZES.MINIMIZE,
49979
49750
  className: "text-white opacity-90 drop-shadow-sm relative z-10"
49980
49751
  }
49981
- ) : /* @__PURE__ */ R.jsx(
49752
+ ) : /* @__PURE__ */ _.jsx(
49982
49753
  $t,
49983
49754
  {
49984
49755
  width: 48,
@@ -49986,8 +49757,8 @@ $1 $2
49986
49757
  className: "relative z-10 transition-transform duration-300 group-hover:scale-110 drop-shadow-sm",
49987
49758
  style: {
49988
49759
  filter: "drop-shadow(0 2px 4px rgba(0,0,0,0.1))",
49989
- fill: ((Rt = X.chatButton) == null ? void 0 : Rt.iconColor) || "#f97316",
49990
- stroke: ((G0 = X.chatButton) == null ? void 0 : G0.iconBorderColor) || "#111",
49760
+ fill: ((Rt = K.chatButton) == null ? void 0 : Rt.iconColor) || "#f97316",
49761
+ stroke: ((G0 = K.chatButton) == null ? void 0 : G0.iconBorderColor) || "#111",
49991
49762
  strokeWidth: 1
49992
49763
  }
49993
49764
  }
@@ -49996,7 +49767,7 @@ $1 $2
49996
49767
  }
49997
49768
  )
49998
49769
  ] }),
49999
- /* @__PURE__ */ R.jsx("style", { children: nA })
49770
+ /* @__PURE__ */ _.jsx("style", { children: nA })
50000
49771
  ] });
50001
49772
  };
50002
49773
  let ar = null, ir = null, tt = null;
@@ -50016,13 +49787,13 @@ function tw() {
50016
49787
  throw new Error("API key not set. Call setApiKey or use injectChatWidget to configure the API key.");
50017
49788
  return ir;
50018
49789
  }
50019
- function WR(e) {
49790
+ function $R(e) {
50020
49791
  if (ar = e, typeof window < "u" && (window.CHATBOT_API_URL = e, ir)) {
50021
49792
  const t = sr();
50022
49793
  cr(e, ir, t);
50023
49794
  }
50024
49795
  }
50025
- function $R(e) {
49796
+ function XR(e) {
50026
49797
  if (ir = e, typeof window < "u" && (window.CHATBOT_API_KEY = e, ar)) {
50027
49798
  const t = sr();
50028
49799
  cr(ar, e, t);
@@ -50093,9 +49864,9 @@ typeof window < "u" && (window.initChatbotWidget = (e) => {
50093
49864
  ChatWidget: yI,
50094
49865
  useChatStore: eS,
50095
49866
  injectChatWidget: SM,
50096
- setApiUrl: WR,
49867
+ setApiUrl: $R,
50097
49868
  getApiUrl: ew,
50098
- setApiKey: $R,
49869
+ setApiKey: XR,
50099
49870
  getApiKey: tw,
50100
49871
  updateWidgetConfig: kI,
50101
49872
  configureApi: (e, t, r) => {
@@ -50110,8 +49881,8 @@ export {
50110
49881
  ew as getApiUrl,
50111
49882
  Q0 as getChatConfig,
50112
49883
  SM as injectChatWidget,
50113
- $R as setApiKey,
50114
- WR as setApiUrl,
49884
+ XR as setApiKey,
49885
+ $R as setApiUrl,
50115
49886
  kI as updateWidgetConfig,
50116
49887
  eS as useChatStore
50117
49888
  };