@2uinc/frontend-component-xpert-chatbot 1.13.0-alpha.1 → 1.13.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/index.min.js +1101 -1089
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import ve, { createContext as es, useMemo as ts, useContext as Pe, useState as xe, useEffect as Ie, useCallback as Ht, useRef as Ge } from "react";
|
2
2
|
const ns = {
|
3
3
|
xpertKey: "edx",
|
4
4
|
chatApi: {
|
@@ -21,7 +21,7 @@ const ns = {
|
|
21
21
|
},
|
22
22
|
launchButton: {
|
23
23
|
message: null,
|
24
|
-
isAnimatedGraduateEnabled: !
|
24
|
+
isAnimatedGraduateEnabled: !1,
|
25
25
|
style: {
|
26
26
|
backgroundColor: "#0E3639",
|
27
27
|
padding: "15px 25px",
|
@@ -49,10 +49,20 @@ const ns = {
|
|
49
49
|
bottom: "6.75rem",
|
50
50
|
right: "1.75rem",
|
51
51
|
zIndex: "99999",
|
52
|
+
animatedGraduateExperiment: {
|
53
|
+
bottom: "7.5rem",
|
54
|
+
right: "2rem",
|
55
|
+
zIndex: "99999"
|
56
|
+
},
|
52
57
|
mobile: {
|
53
58
|
bottom: "10.75rem",
|
54
59
|
right: "1.75rem",
|
55
|
-
zIndex: "99999"
|
60
|
+
zIndex: "99999",
|
61
|
+
animatedGraduateExperiment: {
|
62
|
+
bottom: "11.5rem",
|
63
|
+
right: "2rem",
|
64
|
+
zIndex: "99999"
|
65
|
+
}
|
56
66
|
}
|
57
67
|
}
|
58
68
|
},
|
@@ -456,7 +466,7 @@ const ns = {
|
|
456
466
|
}
|
457
467
|
};
|
458
468
|
var en = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
459
|
-
function
|
469
|
+
function nt(e) {
|
460
470
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
461
471
|
}
|
462
472
|
function vo(e) {
|
@@ -523,7 +533,7 @@ cs();
|
|
523
533
|
* This source code is licensed under the MIT license found in the
|
524
534
|
* LICENSE file in the root directory of this source tree.
|
525
535
|
*/
|
526
|
-
var ps =
|
536
|
+
var ps = ve, Do = 60103;
|
527
537
|
Vt.Fragment = 60107;
|
528
538
|
if (typeof Symbol == "function" && Symbol.for) {
|
529
539
|
var hi = Symbol.for;
|
@@ -614,7 +624,7 @@ function ur(e, t) {
|
|
614
624
|
}
|
615
625
|
);
|
616
626
|
}
|
617
|
-
var
|
627
|
+
var qe = ur(gs, { path: "/" }), No = { exports: {} }, ms = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED", ys = ms, Ms = ys;
|
618
628
|
function ko() {
|
619
629
|
}
|
620
630
|
function Eo() {
|
@@ -660,20 +670,20 @@ var bs = function() {
|
|
660
670
|
};
|
661
671
|
No.exports = bs();
|
662
672
|
var Q = No.exports;
|
663
|
-
const D = /* @__PURE__ */
|
673
|
+
const D = /* @__PURE__ */ nt(Q);
|
664
674
|
var dn = { exports: {} };
|
665
675
|
dn.exports;
|
666
676
|
(function(e, t) {
|
667
|
-
var n = 200, r = "__lodash_hash_undefined__", i = 800, o = 16, a = 9007199254740991, l = "[object Arguments]", s = "[object Array]", u = "[object AsyncFunction]", c = "[object Boolean]", p = "[object Date]", m = "[object Error]", d = "[object Function]", I = "[object GeneratorFunction]", b = "[object Map]",
|
668
|
-
h[
|
669
|
-
var
|
677
|
+
var n = 200, r = "__lodash_hash_undefined__", i = 800, o = 16, a = 9007199254740991, l = "[object Arguments]", s = "[object Array]", u = "[object AsyncFunction]", c = "[object Boolean]", p = "[object Date]", m = "[object Error]", d = "[object Function]", I = "[object GeneratorFunction]", b = "[object Map]", A = "[object Number]", x = "[object Null]", E = "[object Object]", C = "[object Proxy]", Y = "[object RegExp]", $ = "[object Set]", M = "[object String]", _ = "[object Undefined]", q = "[object WeakMap]", G = "[object ArrayBuffer]", K = "[object DataView]", O = "[object Float32Array]", w = "[object Float64Array]", k = "[object Int8Array]", z = "[object Int16Array]", L = "[object Int32Array]", U = "[object Uint8Array]", P = "[object Uint8ClampedArray]", W = "[object Uint16Array]", ie = "[object Uint32Array]", g = /[\\^$.*+?()[\]{}|]/g, pe = /^\[object .+?Constructor\]$/, ye = /^(?:0|[1-9]\d*)$/, h = {};
|
678
|
+
h[O] = h[w] = h[k] = h[z] = h[L] = h[U] = h[P] = h[W] = h[ie] = !0, h[l] = h[s] = h[G] = h[c] = h[K] = h[p] = h[m] = h[d] = h[b] = h[A] = h[E] = h[Y] = h[$] = h[M] = h[q] = !1;
|
679
|
+
var ge = typeof en == "object" && en && en.Object === Object && en, Te = typeof self == "object" && self && self.Object === Object && self, ne = ge || Te || Function("return this")(), De = t && !t.nodeType && t, we = De && !0 && e && !e.nodeType && e, Ye = we && we.exports === De, ze = Ye && ge.process, Xe = function() {
|
670
680
|
try {
|
671
|
-
var f =
|
681
|
+
var f = we && we.require && we.require("util").types;
|
672
682
|
return f || ze && ze.binding && ze.binding("util");
|
673
683
|
} catch {
|
674
684
|
}
|
675
|
-
}(),
|
676
|
-
function
|
685
|
+
}(), ot = Xe && Xe.isTypedArray;
|
686
|
+
function Nt(f, y, v) {
|
677
687
|
switch (v.length) {
|
678
688
|
case 0:
|
679
689
|
return f.call(y);
|
@@ -686,49 +696,49 @@ dn.exports;
|
|
686
696
|
}
|
687
697
|
return f.apply(y, v);
|
688
698
|
}
|
689
|
-
function
|
699
|
+
function kt(f, y) {
|
690
700
|
for (var v = -1, F = Array(f); ++v < f; )
|
691
701
|
F[v] = y(v);
|
692
702
|
return F;
|
693
703
|
}
|
694
|
-
function
|
704
|
+
function at(f) {
|
695
705
|
return function(y) {
|
696
706
|
return f(y);
|
697
707
|
};
|
698
708
|
}
|
699
|
-
function
|
709
|
+
function yt(f, y) {
|
700
710
|
return f == null ? void 0 : f[y];
|
701
711
|
}
|
702
|
-
function
|
712
|
+
function lt(f, y) {
|
703
713
|
return function(v) {
|
704
714
|
return f(y(v));
|
705
715
|
};
|
706
716
|
}
|
707
|
-
var
|
708
|
-
var f = /[^.]+$/.exec(
|
717
|
+
var R = Array.prototype, oe = Function.prototype, me = Object.prototype, he = ne["__core-js_shared__"], je = oe.toString, be = me.hasOwnProperty, st = function() {
|
718
|
+
var f = /[^.]+$/.exec(he && he.keys && he.keys.IE_PROTO || "");
|
709
719
|
return f ? "Symbol(src)_1." + f : "";
|
710
|
-
}(),
|
711
|
-
"^" +
|
712
|
-
),
|
720
|
+
}(), Je = me.toString, Et = je.call(Object), N = RegExp(
|
721
|
+
"^" + je.call(be).replace(g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
722
|
+
), j = Ye ? ne.Buffer : void 0, H = ne.Symbol, ee = ne.Uint8Array, re = j ? j.allocUnsafe : void 0, Ne = lt(Object.getPrototypeOf, Object), He = Object.create, $e = me.propertyIsEnumerable, ut = R.splice, Ce = H ? H.toStringTag : void 0, se = function() {
|
713
723
|
try {
|
714
724
|
var f = Bn(Object, "defineProperty");
|
715
725
|
return f({}, "", {}), f;
|
716
726
|
} catch {
|
717
727
|
}
|
718
|
-
}(), jt =
|
728
|
+
}(), jt = j ? j.isBuffer : void 0, Le = Math.max, Ja = Date.now, ni = Bn(ne, "Map"), Ct = Bn(Object, "create"), el = function() {
|
719
729
|
function f() {
|
720
730
|
}
|
721
731
|
return function(y) {
|
722
|
-
if (!
|
732
|
+
if (!pt(y))
|
723
733
|
return {};
|
724
|
-
if (
|
725
|
-
return
|
734
|
+
if (He)
|
735
|
+
return He(y);
|
726
736
|
f.prototype = y;
|
727
737
|
var v = new f();
|
728
738
|
return f.prototype = void 0, v;
|
729
739
|
};
|
730
740
|
}();
|
731
|
-
function
|
741
|
+
function ct(f) {
|
732
742
|
var y = -1, v = f == null ? 0 : f.length;
|
733
743
|
for (this.clear(); ++y < v; ) {
|
734
744
|
var F = f[y];
|
@@ -748,18 +758,18 @@ dn.exports;
|
|
748
758
|
var v = y[f];
|
749
759
|
return v === r ? void 0 : v;
|
750
760
|
}
|
751
|
-
return
|
761
|
+
return be.call(y, f) ? y[f] : void 0;
|
752
762
|
}
|
753
763
|
function il(f) {
|
754
764
|
var y = this.__data__;
|
755
|
-
return Ct ? y[f] !== void 0 :
|
765
|
+
return Ct ? y[f] !== void 0 : be.call(y, f);
|
756
766
|
}
|
757
767
|
function ol(f, y) {
|
758
768
|
var v = this.__data__;
|
759
769
|
return this.size += this.has(f) ? 0 : 1, v[f] = Ct && y === void 0 ? r : y, this;
|
760
770
|
}
|
761
|
-
|
762
|
-
function
|
771
|
+
ct.prototype.clear = tl, ct.prototype.delete = nl, ct.prototype.get = rl, ct.prototype.has = il, ct.prototype.set = ol;
|
772
|
+
function Ke(f) {
|
763
773
|
var y = -1, v = f == null ? 0 : f.length;
|
764
774
|
for (this.clear(); ++y < v; ) {
|
765
775
|
var F = f[y];
|
@@ -774,7 +784,7 @@ dn.exports;
|
|
774
784
|
if (v < 0)
|
775
785
|
return !1;
|
776
786
|
var F = y.length - 1;
|
777
|
-
return v == F ? y.pop() :
|
787
|
+
return v == F ? y.pop() : ut.call(y, v, 1), --this.size, !0;
|
778
788
|
}
|
779
789
|
function sl(f) {
|
780
790
|
var y = this.__data__, v = Zt(y, f);
|
@@ -787,8 +797,8 @@ dn.exports;
|
|
787
797
|
var v = this.__data__, F = Zt(v, f);
|
788
798
|
return F < 0 ? (++this.size, v.push([f, y])) : v[F][1] = y, this;
|
789
799
|
}
|
790
|
-
|
791
|
-
function
|
800
|
+
Ke.prototype.clear = al, Ke.prototype.delete = ll, Ke.prototype.get = sl, Ke.prototype.has = ul, Ke.prototype.set = cl;
|
801
|
+
function Mt(f) {
|
792
802
|
var y = -1, v = f == null ? 0 : f.length;
|
793
803
|
for (this.clear(); ++y < v; ) {
|
794
804
|
var F = f[y];
|
@@ -797,9 +807,9 @@ dn.exports;
|
|
797
807
|
}
|
798
808
|
function pl() {
|
799
809
|
this.size = 0, this.__data__ = {
|
800
|
-
hash: new
|
801
|
-
map: new (ni ||
|
802
|
-
string: new
|
810
|
+
hash: new ct(),
|
811
|
+
map: new (ni || Ke)(),
|
812
|
+
string: new ct()
|
803
813
|
};
|
804
814
|
}
|
805
815
|
function fl(f) {
|
@@ -816,13 +826,13 @@ dn.exports;
|
|
816
826
|
var v = Xt(this, f), F = v.size;
|
817
827
|
return v.set(f, y), this.size += v.size == F ? 0 : 1, this;
|
818
828
|
}
|
819
|
-
|
820
|
-
function
|
821
|
-
var y = this.__data__ = new
|
829
|
+
Mt.prototype.clear = pl, Mt.prototype.delete = fl, Mt.prototype.get = dl, Mt.prototype.has = hl, Mt.prototype.set = gl;
|
830
|
+
function bt(f) {
|
831
|
+
var y = this.__data__ = new Ke(f);
|
822
832
|
this.size = y.size;
|
823
833
|
}
|
824
834
|
function ml() {
|
825
|
-
this.__data__ = new
|
835
|
+
this.__data__ = new Ke(), this.size = 0;
|
826
836
|
}
|
827
837
|
function yl(f) {
|
828
838
|
var y = this.__data__, v = y.delete(f);
|
@@ -836,23 +846,23 @@ dn.exports;
|
|
836
846
|
}
|
837
847
|
function xl(f, y) {
|
838
848
|
var v = this.__data__;
|
839
|
-
if (v instanceof
|
849
|
+
if (v instanceof Ke) {
|
840
850
|
var F = v.__data__;
|
841
851
|
if (!ni || F.length < n - 1)
|
842
852
|
return F.push([f, y]), this.size = ++v.size, this;
|
843
|
-
v = this.__data__ = new
|
853
|
+
v = this.__data__ = new Mt(F);
|
844
854
|
}
|
845
855
|
return v.set(f, y), this.size = v.size, this;
|
846
856
|
}
|
847
|
-
|
857
|
+
bt.prototype.clear = ml, bt.prototype.delete = yl, bt.prototype.get = Ml, bt.prototype.has = bl, bt.prototype.set = xl;
|
848
858
|
function wl(f, y) {
|
849
|
-
var v = Hn(f), F = !v && Yn(f), J = !v && !F && li(f), le = !v && !F && !J && ui(f), fe = v || F || J || le, X = fe ?
|
850
|
-
for (var
|
851
|
-
(y ||
|
852
|
-
(
|
853
|
-
J && (
|
854
|
-
le && (
|
855
|
-
oi(
|
859
|
+
var v = Hn(f), F = !v && Yn(f), J = !v && !F && li(f), le = !v && !F && !J && ui(f), fe = v || F || J || le, X = fe ? kt(f.length, String) : [], de = X.length;
|
860
|
+
for (var _e in f)
|
861
|
+
(y || be.call(f, _e)) && !(fe && // Safari 9 has enumerable `arguments.length` in strict mode.
|
862
|
+
(_e == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
863
|
+
J && (_e == "offset" || _e == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
864
|
+
le && (_e == "buffer" || _e == "byteLength" || _e == "byteOffset") || // Skip index properties.
|
865
|
+
oi(_e, de))) && X.push(_e);
|
856
866
|
return X;
|
857
867
|
}
|
858
868
|
function Rn(f, y, v) {
|
@@ -860,7 +870,7 @@ dn.exports;
|
|
860
870
|
}
|
861
871
|
function vl(f, y, v) {
|
862
872
|
var F = f[y];
|
863
|
-
(!(
|
873
|
+
(!(be.call(f, y) && Jt(F, v)) || v === void 0 && !(y in f)) && Un(f, y, v);
|
864
874
|
}
|
865
875
|
function Zt(f, y) {
|
866
876
|
for (var v = f.length; v--; )
|
@@ -869,7 +879,7 @@ dn.exports;
|
|
869
879
|
return -1;
|
870
880
|
}
|
871
881
|
function Un(f, y, v) {
|
872
|
-
y == "__proto__" &&
|
882
|
+
y == "__proto__" && se ? se(f, y, {
|
873
883
|
configurable: !0,
|
874
884
|
enumerable: !0,
|
875
885
|
value: v,
|
@@ -884,25 +894,25 @@ dn.exports;
|
|
884
894
|
return At(f) && Kt(f) == l;
|
885
895
|
}
|
886
896
|
function Dl(f) {
|
887
|
-
if (!
|
897
|
+
if (!pt(f) || Bl(f))
|
888
898
|
return !1;
|
889
|
-
var y = qn(f) ?
|
899
|
+
var y = qn(f) ? N : pe;
|
890
900
|
return y.test(Vl(f));
|
891
901
|
}
|
892
902
|
function Il(f) {
|
893
903
|
return At(f) && si(f.length) && !!h[Kt(f)];
|
894
904
|
}
|
895
905
|
function Nl(f) {
|
896
|
-
if (!
|
906
|
+
if (!pt(f))
|
897
907
|
return Ql(f);
|
898
908
|
var y = ai(f), v = [];
|
899
909
|
for (var F in f)
|
900
|
-
F == "constructor" && (y || !
|
910
|
+
F == "constructor" && (y || !be.call(f, F)) || v.push(F);
|
901
911
|
return v;
|
902
912
|
}
|
903
913
|
function ii(f, y, v, F, J) {
|
904
914
|
f !== y && Tl(y, function(le, fe) {
|
905
|
-
if (J || (J = new
|
915
|
+
if (J || (J = new bt()), pt(le))
|
906
916
|
kl(f, y, fe, v, ii, F, J);
|
907
917
|
else {
|
908
918
|
var X = F ? F(Qn(f, fe), le, fe + "", f, y, J) : void 0;
|
@@ -911,23 +921,23 @@ dn.exports;
|
|
911
921
|
}, ci);
|
912
922
|
}
|
913
923
|
function kl(f, y, v, F, J, le, fe) {
|
914
|
-
var X = Qn(f, v), de = Qn(y, v),
|
915
|
-
if (
|
916
|
-
Rn(f, v,
|
924
|
+
var X = Qn(f, v), de = Qn(y, v), _e = fe.get(de);
|
925
|
+
if (_e) {
|
926
|
+
Rn(f, v, _e);
|
917
927
|
return;
|
918
928
|
}
|
919
929
|
var Ae = le ? le(X, de, v + "", f, y, fe) : void 0, St = Ae === void 0;
|
920
930
|
if (St) {
|
921
931
|
var Vn = Hn(de), Wn = !Vn && li(de), fi = !Vn && !Wn && ui(de);
|
922
|
-
Ae = de, Vn || Wn || fi ? Hn(X) ? Ae = X : Wl(X) ? Ae = Ol(X) : Wn ? (St = !1, Ae = Cl(de, !0)) : fi ? (St = !1, Ae = Sl(de, !0)) : Ae = [] : Gl(de) || Yn(de) ? (Ae = X, Yn(X) ? Ae = Zl(X) : (!
|
932
|
+
Ae = de, Vn || Wn || fi ? Hn(X) ? Ae = X : Wl(X) ? Ae = Ol(X) : Wn ? (St = !1, Ae = Cl(de, !0)) : fi ? (St = !1, Ae = Sl(de, !0)) : Ae = [] : Gl(de) || Yn(de) ? (Ae = X, Yn(X) ? Ae = Zl(X) : (!pt(X) || qn(X)) && (Ae = Pl(de))) : St = !1;
|
923
933
|
}
|
924
934
|
St && (fe.set(de, Ae), J(Ae, de, F, le, fe), fe.delete(de)), Rn(f, v, Ae);
|
925
935
|
}
|
926
936
|
function El(f, y) {
|
927
937
|
return $l(Hl(f, y, pi), f + "");
|
928
938
|
}
|
929
|
-
var jl =
|
930
|
-
return
|
939
|
+
var jl = se ? function(f, y) {
|
940
|
+
return se(f, "toString", {
|
931
941
|
configurable: !0,
|
932
942
|
enumerable: !1,
|
933
943
|
value: Xl(y),
|
@@ -937,7 +947,7 @@ dn.exports;
|
|
937
947
|
function Cl(f, y) {
|
938
948
|
if (y)
|
939
949
|
return f.slice();
|
940
|
-
var v = f.length, F =
|
950
|
+
var v = f.length, F = re ? re(v) : new f.constructor(v);
|
941
951
|
return f.copy(F), F;
|
942
952
|
}
|
943
953
|
function Al(f) {
|
@@ -988,28 +998,28 @@ dn.exports;
|
|
988
998
|
return Ul(y) ? v[typeof y == "string" ? "string" : "hash"] : v.map;
|
989
999
|
}
|
990
1000
|
function Bn(f, y) {
|
991
|
-
var v =
|
1001
|
+
var v = yt(f, y);
|
992
1002
|
return Dl(v) ? v : void 0;
|
993
1003
|
}
|
994
1004
|
function Fl(f) {
|
995
|
-
var y =
|
1005
|
+
var y = be.call(f, Ce), v = f[Ce];
|
996
1006
|
try {
|
997
1007
|
f[Ce] = void 0;
|
998
1008
|
var F = !0;
|
999
1009
|
} catch {
|
1000
1010
|
}
|
1001
|
-
var J =
|
1011
|
+
var J = Je.call(f);
|
1002
1012
|
return F && (y ? f[Ce] = v : delete f[Ce]), J;
|
1003
1013
|
}
|
1004
1014
|
function Pl(f) {
|
1005
|
-
return typeof f.constructor == "function" && !ai(f) ? el(
|
1015
|
+
return typeof f.constructor == "function" && !ai(f) ? el(Ne(f)) : {};
|
1006
1016
|
}
|
1007
1017
|
function oi(f, y) {
|
1008
1018
|
var v = typeof f;
|
1009
|
-
return y = y ?? a, !!y && (v == "number" || v != "symbol" &&
|
1019
|
+
return y = y ?? a, !!y && (v == "number" || v != "symbol" && ye.test(f)) && f > -1 && f % 1 == 0 && f < y;
|
1010
1020
|
}
|
1011
1021
|
function Rl(f, y, v) {
|
1012
|
-
if (!
|
1022
|
+
if (!pt(v))
|
1013
1023
|
return !1;
|
1014
1024
|
var F = typeof y;
|
1015
1025
|
return (F == "number" ? $n(v) && oi(y, v.length) : F == "string" && y in v) ? Jt(v[y], f) : !1;
|
@@ -1019,10 +1029,10 @@ dn.exports;
|
|
1019
1029
|
return y == "string" || y == "number" || y == "symbol" || y == "boolean" ? f !== "__proto__" : f === null;
|
1020
1030
|
}
|
1021
1031
|
function Bl(f) {
|
1022
|
-
return !!
|
1032
|
+
return !!st && st in f;
|
1023
1033
|
}
|
1024
1034
|
function ai(f) {
|
1025
|
-
var y = f && f.constructor, v = typeof y == "function" && y.prototype ||
|
1035
|
+
var y = f && f.constructor, v = typeof y == "function" && y.prototype || me;
|
1026
1036
|
return f === v;
|
1027
1037
|
}
|
1028
1038
|
function Ql(f) {
|
@@ -1033,16 +1043,16 @@ dn.exports;
|
|
1033
1043
|
return y;
|
1034
1044
|
}
|
1035
1045
|
function Yl(f) {
|
1036
|
-
return
|
1046
|
+
return Je.call(f);
|
1037
1047
|
}
|
1038
1048
|
function Hl(f, y, v) {
|
1039
|
-
return y =
|
1040
|
-
for (var F = arguments, J = -1, le =
|
1049
|
+
return y = Le(y === void 0 ? f.length - 1 : y, 0), function() {
|
1050
|
+
for (var F = arguments, J = -1, le = Le(F.length - y, 0), fe = Array(le); ++J < le; )
|
1041
1051
|
fe[J] = F[y + J];
|
1042
1052
|
J = -1;
|
1043
1053
|
for (var X = Array(y + 1); ++J < y; )
|
1044
1054
|
X[J] = F[J];
|
1045
|
-
return X[y] = v(fe),
|
1055
|
+
return X[y] = v(fe), Nt(f, this, X);
|
1046
1056
|
};
|
1047
1057
|
}
|
1048
1058
|
function Qn(f, y) {
|
@@ -1065,7 +1075,7 @@ dn.exports;
|
|
1065
1075
|
function Vl(f) {
|
1066
1076
|
if (f != null) {
|
1067
1077
|
try {
|
1068
|
-
return
|
1078
|
+
return je.call(f);
|
1069
1079
|
} catch {
|
1070
1080
|
}
|
1071
1081
|
try {
|
@@ -1081,7 +1091,7 @@ dn.exports;
|
|
1081
1091
|
var Yn = ri(function() {
|
1082
1092
|
return arguments;
|
1083
1093
|
}()) ? ri : function(f) {
|
1084
|
-
return At(f) &&
|
1094
|
+
return At(f) && be.call(f, "callee") && !$e.call(f, "callee");
|
1085
1095
|
}, Hn = Array.isArray;
|
1086
1096
|
function $n(f) {
|
1087
1097
|
return f != null && si(f.length) && !qn(f);
|
@@ -1091,15 +1101,15 @@ dn.exports;
|
|
1091
1101
|
}
|
1092
1102
|
var li = jt || Jl;
|
1093
1103
|
function qn(f) {
|
1094
|
-
if (!
|
1104
|
+
if (!pt(f))
|
1095
1105
|
return !1;
|
1096
1106
|
var y = Kt(f);
|
1097
|
-
return y == d || y == I || y == u || y ==
|
1107
|
+
return y == d || y == I || y == u || y == C;
|
1098
1108
|
}
|
1099
1109
|
function si(f) {
|
1100
1110
|
return typeof f == "number" && f > -1 && f % 1 == 0 && f <= a;
|
1101
1111
|
}
|
1102
|
-
function
|
1112
|
+
function pt(f) {
|
1103
1113
|
var y = typeof f;
|
1104
1114
|
return f != null && (y == "object" || y == "function");
|
1105
1115
|
}
|
@@ -1109,13 +1119,13 @@ dn.exports;
|
|
1109
1119
|
function Gl(f) {
|
1110
1120
|
if (!At(f) || Kt(f) != E)
|
1111
1121
|
return !1;
|
1112
|
-
var y =
|
1122
|
+
var y = Ne(f);
|
1113
1123
|
if (y === null)
|
1114
1124
|
return !0;
|
1115
|
-
var v =
|
1116
|
-
return typeof v == "function" && v instanceof v &&
|
1125
|
+
var v = be.call(y, "constructor") && y.constructor;
|
1126
|
+
return typeof v == "function" && v instanceof v && je.call(v) == Et;
|
1117
1127
|
}
|
1118
|
-
var ui =
|
1128
|
+
var ui = ot ? at(ot) : Il;
|
1119
1129
|
function Zl(f) {
|
1120
1130
|
return zl(f, ci(f));
|
1121
1131
|
}
|
@@ -1139,7 +1149,7 @@ dn.exports;
|
|
1139
1149
|
e.exports = Kl;
|
1140
1150
|
})(dn, dn.exports);
|
1141
1151
|
var xs = dn.exports;
|
1142
|
-
const jo = /* @__PURE__ */
|
1152
|
+
const jo = /* @__PURE__ */ nt(xs), ws = {
|
1143
1153
|
xpertKey: "exec-ed-ss-olc-moodle",
|
1144
1154
|
chatApi: {
|
1145
1155
|
endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/omnichannel",
|
@@ -1336,7 +1346,7 @@ Ao.propTypes = {
|
|
1336
1346
|
}).isRequired
|
1337
1347
|
})
|
1338
1348
|
};
|
1339
|
-
const
|
1349
|
+
const Re = Co, Rt = /^[a-z0-9]+(-[a-z0-9]+)*$/, wn = (e, t, n, r = "") => {
|
1340
1350
|
const i = e.split(":");
|
1341
1351
|
if (e.slice(0, 1) === "@") {
|
1342
1352
|
if (i.length < 2 || i.length > 3)
|
@@ -1489,7 +1499,7 @@ function js(e, t) {
|
|
1489
1499
|
missing: /* @__PURE__ */ new Set()
|
1490
1500
|
};
|
1491
1501
|
}
|
1492
|
-
function
|
1502
|
+
function ht(e, t) {
|
1493
1503
|
const n = mi[e] || (mi[e] = /* @__PURE__ */ Object.create(null));
|
1494
1504
|
return n[t] || (n[t] = js(e, t));
|
1495
1505
|
}
|
@@ -1513,7 +1523,7 @@ function Lo(e) {
|
|
1513
1523
|
function As(e) {
|
1514
1524
|
const t = typeof e == "string" ? wn(e, !0, $t) : e;
|
1515
1525
|
if (t) {
|
1516
|
-
const n =
|
1526
|
+
const n = ht(t.provider, t.prefix), r = t.name;
|
1517
1527
|
return n.icons[r] || (n.missing.has(r) ? null : void 0);
|
1518
1528
|
}
|
1519
1529
|
}
|
@@ -1521,7 +1531,7 @@ function Ss(e, t) {
|
|
1521
1531
|
const n = wn(e, !0, $t);
|
1522
1532
|
if (!n)
|
1523
1533
|
return !1;
|
1524
|
-
const r =
|
1534
|
+
const r = ht(n.provider, n.prefix);
|
1525
1535
|
return Cs(r, n.name, t);
|
1526
1536
|
}
|
1527
1537
|
function Os(e, t) {
|
@@ -1540,7 +1550,7 @@ function Os(e, t) {
|
|
1540
1550
|
name: "a"
|
1541
1551
|
}))
|
1542
1552
|
return !1;
|
1543
|
-
const r =
|
1553
|
+
const r = ht(t, n);
|
1544
1554
|
return !!jr(r, e);
|
1545
1555
|
}
|
1546
1556
|
const _o = Object.freeze({
|
@@ -1591,18 +1601,18 @@ function Fs(e, t) {
|
|
1591
1601
|
};
|
1592
1602
|
let o = n.body;
|
1593
1603
|
[n, r].forEach((I) => {
|
1594
|
-
const b = [],
|
1604
|
+
const b = [], A = I.hFlip, x = I.vFlip;
|
1595
1605
|
let E = I.rotate;
|
1596
|
-
|
1606
|
+
A ? x ? E += 2 : (b.push(
|
1597
1607
|
"translate(" + (i.width + i.left).toString() + " " + (0 - i.top).toString() + ")"
|
1598
1608
|
), b.push("scale(-1 1)"), i.top = i.left = 0) : x && (b.push(
|
1599
1609
|
"translate(" + (0 - i.left).toString() + " " + (i.height + i.top).toString() + ")"
|
1600
1610
|
), b.push("scale(1 -1)"), i.top = i.left = 0);
|
1601
|
-
let
|
1611
|
+
let C;
|
1602
1612
|
switch (E < 0 && (E -= Math.floor(E / 4) * 4), E = E % 4, E) {
|
1603
1613
|
case 1:
|
1604
|
-
|
1605
|
-
"rotate(90 " +
|
1614
|
+
C = i.height / 2 + i.top, b.unshift(
|
1615
|
+
"rotate(90 " + C.toString() + " " + C.toString() + ")"
|
1606
1616
|
);
|
1607
1617
|
break;
|
1608
1618
|
case 2:
|
@@ -1611,12 +1621,12 @@ function Fs(e, t) {
|
|
1611
1621
|
);
|
1612
1622
|
break;
|
1613
1623
|
case 3:
|
1614
|
-
|
1615
|
-
"rotate(-90 " +
|
1624
|
+
C = i.width / 2 + i.left, b.unshift(
|
1625
|
+
"rotate(-90 " + C.toString() + " " + C.toString() + ")"
|
1616
1626
|
);
|
1617
1627
|
break;
|
1618
1628
|
}
|
1619
|
-
E % 2 === 1 && (i.left !== i.top && (
|
1629
|
+
E % 2 === 1 && (i.left !== i.top && (C = i.left, i.left = i.top, i.top = C), i.width !== i.height && (C = i.width, i.width = i.height, i.height = C)), b.length && (o = '<g transform="' + b.join(" ") + '">' + o + "</g>");
|
1620
1630
|
});
|
1621
1631
|
const a = r.width, l = r.height, s = i.width, u = i.height;
|
1622
1632
|
let c, p;
|
@@ -1817,7 +1827,7 @@ function Ks(e) {
|
|
1817
1827
|
if (r.name === i.name && r.prefix === i.prefix && r.provider === i.provider)
|
1818
1828
|
return;
|
1819
1829
|
r = i;
|
1820
|
-
const o = i.provider, a = i.prefix, l = i.name, s = n[o] || (n[o] = /* @__PURE__ */ Object.create(null)), u = s[a] || (s[a] =
|
1830
|
+
const o = i.provider, a = i.prefix, l = i.name, s = n[o] || (n[o] = /* @__PURE__ */ Object.create(null)), u = s[a] || (s[a] = ht(o, a));
|
1821
1831
|
let c;
|
1822
1832
|
l in u.icons ? c = t.loaded : a === "" || u.missing.has(l) ? c = t.missing : c = t.pending;
|
1823
1833
|
const p = {
|
@@ -1925,7 +1935,7 @@ function ru(e, t, n, r) {
|
|
1925
1935
|
M.status === "pending" && (M.status = "aborted");
|
1926
1936
|
}), m = [];
|
1927
1937
|
}
|
1928
|
-
function
|
1938
|
+
function A(M, _) {
|
1929
1939
|
_ && (d = []), typeof M == "function" && d.push(M);
|
1930
1940
|
}
|
1931
1941
|
function x() {
|
@@ -1935,7 +1945,7 @@ function ru(e, t, n, r) {
|
|
1935
1945
|
status: s,
|
1936
1946
|
queriesSent: u,
|
1937
1947
|
queriesPending: m.length,
|
1938
|
-
subscribe:
|
1948
|
+
subscribe: A,
|
1939
1949
|
abort: b
|
1940
1950
|
};
|
1941
1951
|
}
|
@@ -1944,7 +1954,7 @@ function ru(e, t, n, r) {
|
|
1944
1954
|
M(void 0, c);
|
1945
1955
|
});
|
1946
1956
|
}
|
1947
|
-
function
|
1957
|
+
function C() {
|
1948
1958
|
m.forEach((M) => {
|
1949
1959
|
M.status === "pending" && (M.status = "aborted");
|
1950
1960
|
}), m = [];
|
@@ -1969,7 +1979,7 @@ function ru(e, t, n, r) {
|
|
1969
1979
|
c = q, m.length || (a.length ? $() : E());
|
1970
1980
|
return;
|
1971
1981
|
}
|
1972
|
-
if (I(),
|
1982
|
+
if (I(), C(), !e.random) {
|
1973
1983
|
const K = e.resources.indexOf(M.resource);
|
1974
1984
|
K !== -1 && K !== e.index && (e.index = K);
|
1975
1985
|
}
|
@@ -1985,7 +1995,7 @@ function ru(e, t, n, r) {
|
|
1985
1995
|
if (M === void 0) {
|
1986
1996
|
if (m.length) {
|
1987
1997
|
p = setTimeout(() => {
|
1988
|
-
I(), s === "pending" && (
|
1998
|
+
I(), s === "pending" && (C(), E());
|
1989
1999
|
}, e.timeout);
|
1990
2000
|
return;
|
1991
2001
|
}
|
@@ -2153,7 +2163,7 @@ function $o() {
|
|
2153
2163
|
lu(!0);
|
2154
2164
|
for (const e in vn)
|
2155
2165
|
Ho(e, (t) => {
|
2156
|
-
const n = t.data, r = t.provider, i = n.prefix, o =
|
2166
|
+
const n = t.data, r = t.provider, i = n.prefix, o = ht(
|
2157
2167
|
r,
|
2158
2168
|
i
|
2159
2169
|
);
|
@@ -2266,11 +2276,11 @@ const fu = (e, t) => {
|
|
2266
2276
|
const { provider: u, prefix: c } = s;
|
2267
2277
|
if (c === l && u === a)
|
2268
2278
|
return;
|
2269
|
-
a = u, l = c, o.push(
|
2279
|
+
a = u, l = c, o.push(ht(u, c));
|
2270
2280
|
const p = i[u] || (i[u] = /* @__PURE__ */ Object.create(null));
|
2271
2281
|
p[c] || (p[c] = []);
|
2272
2282
|
}), r.pending.forEach((s) => {
|
2273
|
-
const { provider: u, prefix: c, name: p } = s, m =
|
2283
|
+
const { provider: u, prefix: c, name: p } = s, m = ht(u, c), d = m.pendingIcons || (m.pendingIcons = /* @__PURE__ */ new Set());
|
2274
2284
|
d.has(p) || (d.add(p), i[u][c].push(p));
|
2275
2285
|
}), o.forEach((s) => {
|
2276
2286
|
const { provider: u, prefix: c } = s;
|
@@ -2438,22 +2448,22 @@ const Nu = (e, t, n, r) => {
|
|
2438
2448
|
let x = 0, E = t.id;
|
2439
2449
|
return typeof E == "string" && (E = E.replace(/-/g, "_")), u.dangerouslySetInnerHTML = {
|
2440
2450
|
__html: vu(Bs(c.body, E ? () => E + "ID" + x++ : "iconifyReact"))
|
2441
|
-
},
|
2451
|
+
}, ve.createElement("svg", u);
|
2442
2452
|
}
|
2443
|
-
const { body: m, width: d, height: I } = e, b = a === "mask" || (a === "bg" ? !1 : m.indexOf("currentColor") !== -1),
|
2453
|
+
const { body: m, width: d, height: I } = e, b = a === "mask" || (a === "bg" ? !1 : m.indexOf("currentColor") !== -1), A = yu(m, {
|
2444
2454
|
...p,
|
2445
2455
|
width: d + "",
|
2446
2456
|
height: I + ""
|
2447
2457
|
});
|
2448
2458
|
return u.style = {
|
2449
2459
|
...l,
|
2450
|
-
"--svg": xu(
|
2460
|
+
"--svg": xu(A),
|
2451
2461
|
width: Ni(p.width),
|
2452
2462
|
height: Ni(p.height),
|
2453
2463
|
...Du,
|
2454
2464
|
...b ? mr : Vo,
|
2455
2465
|
...s
|
2456
|
-
},
|
2466
|
+
}, ve.createElement("span", u);
|
2457
2467
|
};
|
2458
2468
|
Lo(!0);
|
2459
2469
|
Qs("", Zs);
|
@@ -2489,7 +2499,7 @@ if (typeof document < "u" && typeof window < "u") {
|
|
2489
2499
|
}
|
2490
2500
|
}
|
2491
2501
|
}
|
2492
|
-
class Wo extends
|
2502
|
+
class Wo extends ve.Component {
|
2493
2503
|
constructor(t) {
|
2494
2504
|
super(t), this.state = {
|
2495
2505
|
// Render placeholder before component is mounted
|
@@ -2567,7 +2577,7 @@ class Wo extends we.Component {
|
|
2567
2577
|
render() {
|
2568
2578
|
const t = this.props, n = this.state.icon;
|
2569
2579
|
if (n === null)
|
2570
|
-
return t.children ? t.children :
|
2580
|
+
return t.children ? t.children : ve.createElement("span", {});
|
2571
2581
|
let r = t;
|
2572
2582
|
return n.classes && (r = {
|
2573
2583
|
...t,
|
@@ -2578,21 +2588,21 @@ class Wo extends we.Component {
|
|
2578
2588
|
}, r, t._inline, t._ref);
|
2579
2589
|
}
|
2580
2590
|
}
|
2581
|
-
const
|
2591
|
+
const vt = ve.forwardRef(function(t, n) {
|
2582
2592
|
const r = {
|
2583
2593
|
...t,
|
2584
2594
|
_ref: n,
|
2585
2595
|
_inline: !1
|
2586
2596
|
};
|
2587
|
-
return
|
2597
|
+
return ve.createElement(Wo, r);
|
2588
2598
|
});
|
2589
|
-
|
2599
|
+
ve.forwardRef(function(t, n) {
|
2590
2600
|
const r = {
|
2591
2601
|
...t,
|
2592
2602
|
_ref: n,
|
2593
2603
|
_inline: !0
|
2594
2604
|
};
|
2595
|
-
return
|
2605
|
+
return ve.createElement(Wo, r);
|
2596
2606
|
});
|
2597
2607
|
function Go({
|
2598
2608
|
children: e,
|
@@ -2603,12 +2613,12 @@ function Go({
|
|
2603
2613
|
style: o = {}
|
2604
2614
|
}) {
|
2605
2615
|
var I;
|
2606
|
-
const { proactiveMessage: a } = Re
|
2616
|
+
const { proactiveMessage: a } = Pe(Re), [l, s] = xe(!0), [u, c] = xe(!1), p = l && (!(window != null && window.OnetrustActiveGroups) || ((I = window == null ? void 0 : window.OnetrustActiveGroups) == null ? void 0 : I.includes("C0003"))) && qe.get(t) === void 0;
|
2607
2617
|
Ie(() => {
|
2608
2618
|
var b;
|
2609
2619
|
(b = window == null ? void 0 : window.OneTrust) == null || b.OnConsentChanged(() => {
|
2610
|
-
var
|
2611
|
-
!((
|
2620
|
+
var A;
|
2621
|
+
!((A = window == null ? void 0 : window.OnetrustActiveGroups) != null && A.includes("C0003")) && qe.get(t) !== void 0 && qe.remove(t);
|
2612
2622
|
});
|
2613
2623
|
}, [t]), Ie(() => {
|
2614
2624
|
var b;
|
@@ -2625,12 +2635,12 @@ function Go({
|
|
2625
2635
|
const m = () => {
|
2626
2636
|
var b;
|
2627
2637
|
s(!1), (!(window != null && window.OnetrustActiveGroups) || (b = window == null ? void 0 : window.OnetrustActiveGroups) != null && b.includes("C0003")) && d(t, 1, 1), r();
|
2628
|
-
}, d = (b,
|
2638
|
+
}, d = (b, A, x) => {
|
2629
2639
|
const E = {
|
2630
2640
|
expires: x,
|
2631
2641
|
path: "/"
|
2632
2642
|
};
|
2633
|
-
|
2643
|
+
qe.set(b, A, E);
|
2634
2644
|
};
|
2635
2645
|
return u ? /* @__PURE__ */ T.jsx("div", { children: p && /* @__PURE__ */ T.jsxs(
|
2636
2646
|
"div",
|
@@ -2652,7 +2662,7 @@ function Go({
|
|
2652
2662
|
"aria-label": "Close",
|
2653
2663
|
type: "button",
|
2654
2664
|
children: /* @__PURE__ */ T.jsx(
|
2655
|
-
|
2665
|
+
vt,
|
2656
2666
|
{
|
2657
2667
|
style: {
|
2658
2668
|
color: "#707070",
|
@@ -2725,8 +2735,8 @@ var Zo = { exports: {} };
|
|
2725
2735
|
})();
|
2726
2736
|
})(Zo);
|
2727
2737
|
var ku = Zo.exports;
|
2728
|
-
const Ko = /* @__PURE__ */
|
2729
|
-
const [t, n] =
|
2738
|
+
const Ko = /* @__PURE__ */ nt(ku), Eu = 576, ju = (e) => {
|
2739
|
+
const [t, n] = xe(), r = Ht(() => {
|
2730
2740
|
n(
|
2731
2741
|
window.matchMedia(
|
2732
2742
|
`(max-width: ${e || Eu}px)`
|
@@ -2734,7 +2744,7 @@ const Ko = /* @__PURE__ */ it(ku), Eu = 576, ju = (e) => {
|
|
2734
2744
|
);
|
2735
2745
|
}, [e]);
|
2736
2746
|
return Ie(() => (r(), window.addEventListener("resize", r), () => window.removeEventListener("resize", r)), [r]), t;
|
2737
|
-
},
|
2747
|
+
}, rt = ju, Cu = 991;
|
2738
2748
|
function Tn({
|
2739
2749
|
label: e,
|
2740
2750
|
className: t,
|
@@ -2743,7 +2753,7 @@ function Tn({
|
|
2743
2753
|
children: i,
|
2744
2754
|
...o
|
2745
2755
|
}) {
|
2746
|
-
const a =
|
2756
|
+
const a = rt(Cu);
|
2747
2757
|
return /* @__PURE__ */ T.jsx(
|
2748
2758
|
"button",
|
2749
2759
|
{
|
@@ -2783,7 +2793,7 @@ const zt = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
|
|
2783
2793
|
"degrees-moodle-support": zt
|
2784
2794
|
}, Lr = ({ handleFloatingActionButtonClick: e }) => {
|
2785
2795
|
var i, o;
|
2786
|
-
const { xpertKey: t, launchButton: n } = Re
|
2796
|
+
const { xpertKey: t, launchButton: n } = Pe(Re), r = rt(Au);
|
2787
2797
|
return /* @__PURE__ */ T.jsx("div", { children: /* @__PURE__ */ T.jsx(
|
2788
2798
|
Tn,
|
2789
2799
|
{
|
@@ -2840,7 +2850,7 @@ const Ou = Lr, zu = 991, Kn = {
|
|
2840
2850
|
handleFloatingActionButtonClick: e
|
2841
2851
|
}) => {
|
2842
2852
|
var u, c;
|
2843
|
-
const { proactiveMessage: t } = Re
|
2853
|
+
const { proactiveMessage: t } = Pe(Re), [n, r] = xe(!1), i = Ge(null), o = Ge(null), a = rt(zu);
|
2844
2854
|
Ie(() => {
|
2845
2855
|
let p;
|
2846
2856
|
return p = setTimeout(
|
@@ -2858,8 +2868,8 @@ const Ou = Lr, zu = 991, Kn = {
|
|
2858
2868
|
i.current.querySelectorAll(
|
2859
2869
|
".xpert_chatbot__animated_graduate__pupil"
|
2860
2870
|
).forEach((I) => {
|
2861
|
-
var b = I.getBoundingClientRect(),
|
2862
|
-
I.style.transform = "translate3d(" +
|
2871
|
+
var b = I.getBoundingClientRect(), A = (m.pageX - window.scrollX - b.left) / 30 + "px", x = (m.pageY - window.scrollY - b.top) / 30 + "px";
|
2872
|
+
I.style.transform = "translate3d(" + A + "," + x + ", 0px)";
|
2863
2873
|
});
|
2864
2874
|
};
|
2865
2875
|
if (!(o != null && o.current || !t.delayMs))
|
@@ -2893,7 +2903,9 @@ const Ou = Lr, zu = 991, Kn = {
|
|
2893
2903
|
children: /* @__PURE__ */ T.jsx("div", { ref: i, children: /* @__PURE__ */ T.jsxs(
|
2894
2904
|
"svg",
|
2895
2905
|
{
|
2896
|
-
style: {
|
2906
|
+
style: {
|
2907
|
+
width: (c = Kn.style) == null ? void 0 : c.iconWidth
|
2908
|
+
},
|
2897
2909
|
viewBox: "0 0 61 73",
|
2898
2910
|
fill: "none",
|
2899
2911
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -3037,7 +3049,7 @@ _r.defaultProps = {
|
|
3037
3049
|
const Lu = _r;
|
3038
3050
|
const _u = 991, Fu = () => {
|
3039
3051
|
var n;
|
3040
|
-
const e =
|
3052
|
+
const e = rt(_u), { launchButton: t } = Pe(Re);
|
3041
3053
|
return (n = t.message) != null && n.enabled ? /* @__PURE__ */ T.jsx(
|
3042
3054
|
"div",
|
3043
3055
|
{
|
@@ -3054,7 +3066,7 @@ const _u = 991, Fu = () => {
|
|
3054
3066
|
* tabbable 6.2.0
|
3055
3067
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
3056
3068
|
*/
|
3057
|
-
var Jo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], gn = /* @__PURE__ */ Jo.join(","), ea = typeof Element > "u",
|
3069
|
+
var Jo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], gn = /* @__PURE__ */ Jo.join(","), ea = typeof Element > "u", gt = ea ? function() {
|
3058
3070
|
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, mn = !ea && Element.prototype.getRootNode ? function(e) {
|
3059
3071
|
var t;
|
3060
3072
|
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
@@ -3072,7 +3084,7 @@ var Jo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
3072
3084
|
if (yn(t))
|
3073
3085
|
return [];
|
3074
3086
|
var i = Array.prototype.slice.apply(t.querySelectorAll(gn));
|
3075
|
-
return n &&
|
3087
|
+
return n && gt.call(t, gn) && i.unshift(t), i = i.filter(r), i;
|
3076
3088
|
}, na = function e(t, n, r) {
|
3077
3089
|
for (var i = [], o = Array.from(t); o.length; ) {
|
3078
3090
|
var a = o.shift();
|
@@ -3084,7 +3096,7 @@ var Jo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
3084
3096
|
candidates: u
|
3085
3097
|
});
|
3086
3098
|
} else {
|
3087
|
-
var c =
|
3099
|
+
var c = gt.call(a, gn);
|
3088
3100
|
c && r.filter(a) && (n || !t.includes(a)) && i.push(a);
|
3089
3101
|
var p = a.shadowRoot || // check for an undisclosed shadow
|
3090
3102
|
typeof r.getShadowRoot == "function" && r.getShadowRoot(a), m = !yn(p, !1) && (!r.shadowRootFilter || r.shadowRootFilter(a));
|
@@ -3101,12 +3113,12 @@ var Jo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
3101
3113
|
return i;
|
3102
3114
|
}, ra = function(t) {
|
3103
3115
|
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
3104
|
-
},
|
3116
|
+
}, tt = function(t) {
|
3105
3117
|
if (!t)
|
3106
3118
|
throw new Error("No node provided");
|
3107
3119
|
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Ru(t)) && !ra(t) ? 0 : t.tabIndex;
|
3108
3120
|
}, Uu = function(t, n) {
|
3109
|
-
var r =
|
3121
|
+
var r = tt(t);
|
3110
3122
|
return r < 0 && n && !ra(t) ? 0 : r;
|
3111
3123
|
}, Bu = function(t, n) {
|
3112
3124
|
return t.tabIndex === n.tabIndex ? t.documentOrder - n.documentOrder : t.tabIndex - n.tabIndex;
|
@@ -3160,8 +3172,8 @@ var Jo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
3160
3172
|
var r = n.displayCheck, i = n.getShadowRoot;
|
3161
3173
|
if (getComputedStyle(t).visibility === "hidden")
|
3162
3174
|
return !0;
|
3163
|
-
var o =
|
3164
|
-
if (
|
3175
|
+
var o = gt.call(t, "details>summary:first-of-type"), a = o ? t.parentElement : t;
|
3176
|
+
if (gt.call(a, "details:not([open]) *"))
|
3165
3177
|
return !0;
|
3166
3178
|
if (!r || r === "full" || r === "legacy-full") {
|
3167
3179
|
if (typeof i == "function") {
|
@@ -3187,7 +3199,7 @@ var Jo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
3187
3199
|
for (var r = 0; r < n.children.length; r++) {
|
3188
3200
|
var i = n.children.item(r);
|
3189
3201
|
if (i.tagName === "LEGEND")
|
3190
|
-
return
|
3202
|
+
return gt.call(n, "fieldset[disabled] *") ? !0 : !i.contains(t);
|
3191
3203
|
}
|
3192
3204
|
return !0;
|
3193
3205
|
}
|
@@ -3201,7 +3213,7 @@ var Jo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
3201
3213
|
yn(n) || Qu(n) || Gu(n, t) || // For a details element with a summary, the summary element gets the focus
|
3202
3214
|
Yu(n) || Zu(n));
|
3203
3215
|
}, yr = function(t, n) {
|
3204
|
-
return !(Vu(n) ||
|
3216
|
+
return !(Vu(n) || tt(n) < 0 || !Mn(t, n));
|
3205
3217
|
}, Ku = function(t) {
|
3206
3218
|
var n = parseInt(t.getAttribute("tabindex"), 10);
|
3207
3219
|
return !!(isNaN(n) || n >= 0);
|
@@ -3236,21 +3248,21 @@ var Jo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
3236
3248
|
flatten: !0,
|
3237
3249
|
getShadowRoot: n.getShadowRoot
|
3238
3250
|
}) : r = ta(t, n.includeContainer, Mn.bind(null, n)), r;
|
3239
|
-
},
|
3251
|
+
}, ft = function(t, n) {
|
3240
3252
|
if (n = n || {}, !t)
|
3241
3253
|
throw new Error("No node provided");
|
3242
|
-
return
|
3254
|
+
return gt.call(t, gn) === !1 ? !1 : yr(n, t);
|
3243
3255
|
}, Ju = /* @__PURE__ */ Jo.concat("iframe").join(","), cn = function(t, n) {
|
3244
3256
|
if (n = n || {}, !t)
|
3245
3257
|
throw new Error("No node provided");
|
3246
|
-
return
|
3258
|
+
return gt.call(t, Ju) === !1 ? !1 : Mn(n, t);
|
3247
3259
|
};
|
3248
3260
|
const ec = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
3249
3261
|
__proto__: null,
|
3250
3262
|
focusable: aa,
|
3251
|
-
getTabIndex:
|
3263
|
+
getTabIndex: tt,
|
3252
3264
|
isFocusable: cn,
|
3253
|
-
isTabbable:
|
3265
|
+
isTabbable: ft,
|
3254
3266
|
tabbable: oa
|
3255
3267
|
}, Symbol.toStringTag, { value: "Module" }));
|
3256
3268
|
/*!
|
@@ -3381,10 +3393,10 @@ var Ci = {
|
|
3381
3393
|
delayInitialFocusTimer: void 0,
|
3382
3394
|
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
3383
3395
|
recentNavEvent: void 0
|
3384
|
-
}, l, s = function(w,
|
3385
|
-
return w && w[
|
3386
|
-
}, u = function(w,
|
3387
|
-
var z = typeof (
|
3396
|
+
}, l, s = function(w, k, z) {
|
3397
|
+
return w && w[k] !== void 0 ? w[k] : o[z || k];
|
3398
|
+
}, u = function(w, k) {
|
3399
|
+
var z = typeof (k == null ? void 0 : k.composedPath) == "function" ? k.composedPath() : void 0;
|
3388
3400
|
return a.containerGroups.findIndex(function(L) {
|
3389
3401
|
var U = L.container, P = L.tabbableNodes;
|
3390
3402
|
return U.contains(w) || // fall back to explicit tabbable search which will take into consideration any
|
@@ -3396,19 +3408,19 @@ var Ci = {
|
|
3396
3408
|
});
|
3397
3409
|
});
|
3398
3410
|
}, c = function(w) {
|
3399
|
-
var
|
3400
|
-
if (typeof
|
3411
|
+
var k = o[w];
|
3412
|
+
if (typeof k == "function") {
|
3401
3413
|
for (var z = arguments.length, L = new Array(z > 1 ? z - 1 : 0), U = 1; U < z; U++)
|
3402
3414
|
L[U - 1] = arguments[U];
|
3403
|
-
|
3415
|
+
k = k.apply(void 0, L);
|
3404
3416
|
}
|
3405
|
-
if (
|
3406
|
-
if (
|
3407
|
-
return
|
3417
|
+
if (k === !0 && (k = void 0), !k) {
|
3418
|
+
if (k === void 0 || k === !1)
|
3419
|
+
return k;
|
3408
3420
|
throw new Error("`".concat(w, "` was specified but was not a node, or did not return a node"));
|
3409
3421
|
}
|
3410
|
-
var P =
|
3411
|
-
if (typeof
|
3422
|
+
var P = k;
|
3423
|
+
if (typeof k == "string" && (P = r.querySelector(k), !P))
|
3412
3424
|
throw new Error("`".concat(w, "` as selector refers to no known node"));
|
3413
3425
|
return P;
|
3414
3426
|
}, p = function() {
|
@@ -3419,7 +3431,7 @@ var Ci = {
|
|
3419
3431
|
if (u(r.activeElement) >= 0)
|
3420
3432
|
w = r.activeElement;
|
3421
3433
|
else {
|
3422
|
-
var
|
3434
|
+
var k = a.tabbableGroups[0], z = k && k.firstTabbableNode;
|
3423
3435
|
w = z || c("fallbackFocus");
|
3424
3436
|
}
|
3425
3437
|
if (!w)
|
@@ -3427,19 +3439,19 @@ var Ci = {
|
|
3427
3439
|
return w;
|
3428
3440
|
}, m = function() {
|
3429
3441
|
if (a.containerGroups = a.containers.map(function(w) {
|
3430
|
-
var
|
3431
|
-
return
|
3442
|
+
var k = oa(w, o.tabbableOptions), z = aa(w, o.tabbableOptions), L = k.length > 0 ? k[0] : void 0, U = k.length > 0 ? k[k.length - 1] : void 0, P = z.find(function(g) {
|
3443
|
+
return ft(g);
|
3432
3444
|
}), W = z.slice().reverse().find(function(g) {
|
3433
|
-
return
|
3434
|
-
}),
|
3435
|
-
return
|
3445
|
+
return ft(g);
|
3446
|
+
}), ie = !!k.find(function(g) {
|
3447
|
+
return tt(g) > 0;
|
3436
3448
|
});
|
3437
3449
|
return {
|
3438
3450
|
container: w,
|
3439
|
-
tabbableNodes:
|
3451
|
+
tabbableNodes: k,
|
3440
3452
|
focusableNodes: z,
|
3441
3453
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
3442
|
-
posTabIndexesFound:
|
3454
|
+
posTabIndexesFound: ie,
|
3443
3455
|
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
3444
3456
|
firstTabbableNode: L,
|
3445
3457
|
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
@@ -3463,13 +3475,13 @@ var Ci = {
|
|
3463
3475
|
* in reverse.
|
3464
3476
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
3465
3477
|
*/
|
3466
|
-
nextTabbableNode: function(
|
3467
|
-
var
|
3468
|
-
return h < 0 ?
|
3469
|
-
return
|
3470
|
-
}) : z.slice(0, z.indexOf(
|
3471
|
-
return
|
3472
|
-
}) :
|
3478
|
+
nextTabbableNode: function(pe) {
|
3479
|
+
var ye = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, h = k.indexOf(pe);
|
3480
|
+
return h < 0 ? ye ? z.slice(z.indexOf(pe) + 1).find(function(ge) {
|
3481
|
+
return ft(ge);
|
3482
|
+
}) : z.slice(0, z.indexOf(pe)).reverse().find(function(ge) {
|
3483
|
+
return ft(ge);
|
3484
|
+
}) : k[h + (ye ? 1 : -1)];
|
3473
3485
|
}
|
3474
3486
|
};
|
3475
3487
|
}), a.tabbableGroups = a.containerGroups.filter(function(w) {
|
@@ -3480,14 +3492,14 @@ var Ci = {
|
|
3480
3492
|
return w.posTabIndexesFound;
|
3481
3493
|
}) && a.containerGroups.length > 1)
|
3482
3494
|
throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
|
3483
|
-
}, d = function
|
3484
|
-
var
|
3485
|
-
if (
|
3486
|
-
return
|
3487
|
-
}, I = function
|
3495
|
+
}, d = function O(w) {
|
3496
|
+
var k = w.activeElement;
|
3497
|
+
if (k)
|
3498
|
+
return k.shadowRoot && k.shadowRoot.activeElement !== null ? O(k.shadowRoot) : k;
|
3499
|
+
}, I = function O(w) {
|
3488
3500
|
if (w !== !1 && w !== d(document)) {
|
3489
3501
|
if (!w || !w.focus) {
|
3490
|
-
|
3502
|
+
O(p());
|
3491
3503
|
return;
|
3492
3504
|
}
|
3493
3505
|
w.focus({
|
@@ -3495,43 +3507,43 @@ var Ci = {
|
|
3495
3507
|
}), a.mostRecentlyFocusedNode = w, ic(w) && w.select();
|
3496
3508
|
}
|
3497
3509
|
}, b = function(w) {
|
3498
|
-
var
|
3499
|
-
return
|
3500
|
-
},
|
3501
|
-
var
|
3502
|
-
|
3510
|
+
var k = c("setReturnFocus", w);
|
3511
|
+
return k || (k === !1 ? !1 : w);
|
3512
|
+
}, A = function(w) {
|
3513
|
+
var k = w.target, z = w.event, L = w.isBackward, U = L === void 0 ? !1 : L;
|
3514
|
+
k = k || rn(z), m();
|
3503
3515
|
var P = null;
|
3504
3516
|
if (a.tabbableGroups.length > 0) {
|
3505
|
-
var W = u(
|
3517
|
+
var W = u(k, z), ie = W >= 0 ? a.containerGroups[W] : void 0;
|
3506
3518
|
if (W < 0)
|
3507
3519
|
U ? P = a.tabbableGroups[a.tabbableGroups.length - 1].lastTabbableNode : P = a.tabbableGroups[0].firstTabbableNode;
|
3508
3520
|
else if (U) {
|
3509
3521
|
var g = Si(a.tabbableGroups, function(ne) {
|
3510
|
-
var
|
3511
|
-
return
|
3522
|
+
var De = ne.firstTabbableNode;
|
3523
|
+
return k === De;
|
3512
3524
|
});
|
3513
|
-
if (g < 0 && (
|
3514
|
-
var
|
3515
|
-
P =
|
3525
|
+
if (g < 0 && (ie.container === k || cn(k, o.tabbableOptions) && !ft(k, o.tabbableOptions) && !ie.nextTabbableNode(k, !1)) && (g = W), g >= 0) {
|
3526
|
+
var pe = g === 0 ? a.tabbableGroups.length - 1 : g - 1, ye = a.tabbableGroups[pe];
|
3527
|
+
P = tt(k) >= 0 ? ye.lastTabbableNode : ye.lastDomTabbableNode;
|
3516
3528
|
} else
|
3517
|
-
Bt(z) || (P =
|
3529
|
+
Bt(z) || (P = ie.nextTabbableNode(k, !1));
|
3518
3530
|
} else {
|
3519
3531
|
var h = Si(a.tabbableGroups, function(ne) {
|
3520
|
-
var
|
3521
|
-
return
|
3532
|
+
var De = ne.lastTabbableNode;
|
3533
|
+
return k === De;
|
3522
3534
|
});
|
3523
|
-
if (h < 0 && (
|
3524
|
-
var
|
3525
|
-
P =
|
3535
|
+
if (h < 0 && (ie.container === k || cn(k, o.tabbableOptions) && !ft(k, o.tabbableOptions) && !ie.nextTabbableNode(k)) && (h = W), h >= 0) {
|
3536
|
+
var ge = h === a.tabbableGroups.length - 1 ? 0 : h + 1, Te = a.tabbableGroups[ge];
|
3537
|
+
P = tt(k) >= 0 ? Te.firstTabbableNode : Te.firstDomTabbableNode;
|
3526
3538
|
} else
|
3527
|
-
Bt(z) || (P =
|
3539
|
+
Bt(z) || (P = ie.nextTabbableNode(k));
|
3528
3540
|
}
|
3529
3541
|
} else
|
3530
3542
|
P = c("fallbackFocus");
|
3531
3543
|
return P;
|
3532
3544
|
}, x = function(w) {
|
3533
|
-
var
|
3534
|
-
if (!(u(
|
3545
|
+
var k = rn(w);
|
3546
|
+
if (!(u(k, w) >= 0)) {
|
3535
3547
|
if (Lt(o.clickOutsideDeactivates, w)) {
|
3536
3548
|
l.deactivate({
|
3537
3549
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
@@ -3547,30 +3559,30 @@ var Ci = {
|
|
3547
3559
|
Lt(o.allowOutsideClick, w) || w.preventDefault();
|
3548
3560
|
}
|
3549
3561
|
}, E = function(w) {
|
3550
|
-
var
|
3551
|
-
if (z ||
|
3552
|
-
z && (a.mostRecentlyFocusedNode =
|
3562
|
+
var k = rn(w), z = u(k, w) >= 0;
|
3563
|
+
if (z || k instanceof Document)
|
3564
|
+
z && (a.mostRecentlyFocusedNode = k);
|
3553
3565
|
else {
|
3554
3566
|
w.stopImmediatePropagation();
|
3555
3567
|
var L, U = !0;
|
3556
3568
|
if (a.mostRecentlyFocusedNode)
|
3557
|
-
if (
|
3569
|
+
if (tt(a.mostRecentlyFocusedNode) > 0) {
|
3558
3570
|
var P = u(a.mostRecentlyFocusedNode), W = a.containerGroups[P].tabbableNodes;
|
3559
3571
|
if (W.length > 0) {
|
3560
|
-
var
|
3572
|
+
var ie = W.findIndex(function(g) {
|
3561
3573
|
return g === a.mostRecentlyFocusedNode;
|
3562
3574
|
});
|
3563
|
-
|
3575
|
+
ie >= 0 && (o.isKeyForward(a.recentNavEvent) ? ie + 1 < W.length && (L = W[ie + 1], U = !1) : ie - 1 >= 0 && (L = W[ie - 1], U = !1));
|
3564
3576
|
}
|
3565
3577
|
} else
|
3566
3578
|
a.containerGroups.some(function(g) {
|
3567
|
-
return g.tabbableNodes.some(function(
|
3568
|
-
return
|
3579
|
+
return g.tabbableNodes.some(function(pe) {
|
3580
|
+
return tt(pe) > 0;
|
3569
3581
|
});
|
3570
3582
|
}) || (U = !1);
|
3571
3583
|
else
|
3572
3584
|
U = !1;
|
3573
|
-
U && (L =
|
3585
|
+
U && (L = A({
|
3574
3586
|
// move FROM the MRU node, not event-related node (which will be the node that is
|
3575
3587
|
// outside the trap causing the focus escape we're trying to fix)
|
3576
3588
|
target: a.mostRecentlyFocusedNode,
|
@@ -3578,12 +3590,12 @@ var Ci = {
|
|
3578
3590
|
})), I(L || a.mostRecentlyFocusedNode || p());
|
3579
3591
|
}
|
3580
3592
|
a.recentNavEvent = void 0;
|
3581
|
-
},
|
3582
|
-
var
|
3593
|
+
}, C = function(w) {
|
3594
|
+
var k = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
3583
3595
|
a.recentNavEvent = w;
|
3584
|
-
var z =
|
3596
|
+
var z = A({
|
3585
3597
|
event: w,
|
3586
|
-
isBackward:
|
3598
|
+
isBackward: k
|
3587
3599
|
});
|
3588
3600
|
z && (Bt(w) && w.preventDefault(), I(z));
|
3589
3601
|
}, Y = function(w) {
|
@@ -3591,10 +3603,10 @@ var Ci = {
|
|
3591
3603
|
w.preventDefault(), l.deactivate();
|
3592
3604
|
return;
|
3593
3605
|
}
|
3594
|
-
(o.isKeyForward(w) || o.isKeyBackward(w)) &&
|
3606
|
+
(o.isKeyForward(w) || o.isKeyBackward(w)) && C(w, o.isKeyBackward(w));
|
3595
3607
|
}, $ = function(w) {
|
3596
|
-
var
|
3597
|
-
u(
|
3608
|
+
var k = rn(w);
|
3609
|
+
u(k, w) >= 0 || Lt(o.clickOutsideDeactivates, w) || Lt(o.allowOutsideClick, w) || (w.preventDefault(), w.stopImmediatePropagation());
|
3598
3610
|
}, M = function() {
|
3599
3611
|
if (a.active)
|
3600
3612
|
return Ci.activateTrap(i, l), a.delayInitialFocusTimer = o.delayInitialFocus ? Ai(function() {
|
@@ -3616,13 +3628,13 @@ var Ci = {
|
|
3616
3628
|
if (a.active)
|
3617
3629
|
return r.removeEventListener("focusin", E, !0), r.removeEventListener("mousedown", x, !0), r.removeEventListener("touchstart", x, !0), r.removeEventListener("click", $, !0), r.removeEventListener("keydown", Y, !0), l;
|
3618
3630
|
}, q = function(w) {
|
3619
|
-
var
|
3631
|
+
var k = w.some(function(z) {
|
3620
3632
|
var L = Array.from(z.removedNodes);
|
3621
3633
|
return L.some(function(U) {
|
3622
3634
|
return U === a.mostRecentlyFocusedNode;
|
3623
3635
|
});
|
3624
3636
|
});
|
3625
|
-
|
3637
|
+
k && I(p());
|
3626
3638
|
}, G = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(q) : void 0, K = function() {
|
3627
3639
|
G && (G.disconnect(), a.active && !a.paused && a.containers.map(function(w) {
|
3628
3640
|
G.observe(w, {
|
@@ -3641,8 +3653,8 @@ var Ci = {
|
|
3641
3653
|
activate: function(w) {
|
3642
3654
|
if (a.active)
|
3643
3655
|
return this;
|
3644
|
-
var
|
3645
|
-
L || m(), a.active = !0, a.paused = !1, a.nodeFocusedBeforeActivation = r.activeElement,
|
3656
|
+
var k = s(w, "onActivate"), z = s(w, "onPostActivate"), L = s(w, "checkCanFocusTrap");
|
3657
|
+
L || m(), a.active = !0, a.paused = !1, a.nodeFocusedBeforeActivation = r.activeElement, k == null || k();
|
3646
3658
|
var U = function() {
|
3647
3659
|
L && m(), M(), K(), z == null || z();
|
3648
3660
|
};
|
@@ -3651,13 +3663,13 @@ var Ci = {
|
|
3651
3663
|
deactivate: function(w) {
|
3652
3664
|
if (!a.active)
|
3653
3665
|
return this;
|
3654
|
-
var
|
3666
|
+
var k = ji({
|
3655
3667
|
onDeactivate: o.onDeactivate,
|
3656
3668
|
onPostDeactivate: o.onPostDeactivate,
|
3657
3669
|
checkCanReturnFocus: o.checkCanReturnFocus
|
3658
3670
|
}, w);
|
3659
3671
|
clearTimeout(a.delayInitialFocusTimer), a.delayInitialFocusTimer = void 0, _(), a.active = !1, a.paused = !1, K(), Ci.deactivateTrap(i, l);
|
3660
|
-
var z = s(
|
3672
|
+
var z = s(k, "onDeactivate"), L = s(k, "onPostDeactivate"), U = s(k, "checkCanReturnFocus"), P = s(k, "returnFocus", "returnFocusOnDeactivate");
|
3661
3673
|
z == null || z();
|
3662
3674
|
var W = function() {
|
3663
3675
|
Ai(function() {
|
@@ -3669,18 +3681,18 @@ var Ci = {
|
|
3669
3681
|
pause: function(w) {
|
3670
3682
|
if (a.paused || !a.active)
|
3671
3683
|
return this;
|
3672
|
-
var
|
3673
|
-
return a.paused = !0,
|
3684
|
+
var k = s(w, "onPause"), z = s(w, "onPostPause");
|
3685
|
+
return a.paused = !0, k == null || k(), _(), K(), z == null || z(), this;
|
3674
3686
|
},
|
3675
3687
|
unpause: function(w) {
|
3676
3688
|
if (!a.paused || !a.active)
|
3677
3689
|
return this;
|
3678
|
-
var
|
3679
|
-
return a.paused = !1,
|
3690
|
+
var k = s(w, "onUnpause"), z = s(w, "onPostUnpause");
|
3691
|
+
return a.paused = !1, k == null || k(), m(), M(), K(), z == null || z(), this;
|
3680
3692
|
},
|
3681
3693
|
updateContainerElements: function(w) {
|
3682
|
-
var
|
3683
|
-
return a.containers =
|
3694
|
+
var k = [].concat(w).filter(Boolean);
|
3695
|
+
return a.containers = k.map(function(z) {
|
3684
3696
|
return typeof z == "string" ? r.querySelector(z) : z;
|
3685
3697
|
}), a.active && m(), K(), this;
|
3686
3698
|
}
|
@@ -3690,13 +3702,13 @@ const cc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3690
3702
|
__proto__: null,
|
3691
3703
|
createFocusTrap: uc
|
3692
3704
|
}, Symbol.toStringTag, { value: "Module" })), pc = /* @__PURE__ */ vo(cc), fc = /* @__PURE__ */ vo(ec);
|
3693
|
-
function
|
3705
|
+
function Tt(e) {
|
3694
3706
|
"@babel/helpers - typeof";
|
3695
|
-
return
|
3707
|
+
return Tt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
3696
3708
|
return typeof t;
|
3697
3709
|
} : function(t) {
|
3698
3710
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
3699
|
-
},
|
3711
|
+
}, Tt(e);
|
3700
3712
|
}
|
3701
3713
|
function dc(e, t) {
|
3702
3714
|
if (!(e instanceof t))
|
@@ -3734,7 +3746,7 @@ function mc(e) {
|
|
3734
3746
|
};
|
3735
3747
|
}
|
3736
3748
|
function yc(e, t) {
|
3737
|
-
if (t && (
|
3749
|
+
if (t && (Tt(t) === "object" || typeof t == "function"))
|
3738
3750
|
return t;
|
3739
3751
|
if (t !== void 0)
|
3740
3752
|
throw new TypeError("Derived constructors may only return object or undefined");
|
@@ -3767,21 +3779,21 @@ function bc(e, t, n) {
|
|
3767
3779
|
}
|
3768
3780
|
function la(e) {
|
3769
3781
|
var t = xc(e, "string");
|
3770
|
-
return
|
3782
|
+
return Tt(t) === "symbol" ? t : String(t);
|
3771
3783
|
}
|
3772
3784
|
function xc(e, t) {
|
3773
|
-
if (
|
3785
|
+
if (Tt(e) !== "object" || e === null)
|
3774
3786
|
return e;
|
3775
3787
|
var n = e[Symbol.toPrimitive];
|
3776
3788
|
if (n !== void 0) {
|
3777
3789
|
var r = n.call(e, t || "default");
|
3778
|
-
if (
|
3790
|
+
if (Tt(r) !== "object")
|
3779
3791
|
return r;
|
3780
3792
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
3781
3793
|
}
|
3782
3794
|
return (t === "string" ? String : Number)(e);
|
3783
3795
|
}
|
3784
|
-
var on =
|
3796
|
+
var on = ve, B = Q, wc = pc, vc = wc.createFocusTrap, Tc = fc, Dc = Tc.isFocusable, Fr = /* @__PURE__ */ function(e) {
|
3785
3797
|
gc(n, e);
|
3786
3798
|
var t = mc(n);
|
3787
3799
|
function n(r) {
|
@@ -4024,7 +4036,7 @@ Fr.defaultProps = {
|
|
4024
4036
|
_createFocusTrap: vc
|
4025
4037
|
};
|
4026
4038
|
var Ic = Fr;
|
4027
|
-
const Nc = /* @__PURE__ */
|
4039
|
+
const Nc = /* @__PURE__ */ nt(Ic);
|
4028
4040
|
const kc = 991;
|
4029
4041
|
function Pr({
|
4030
4042
|
style: e,
|
@@ -4033,7 +4045,7 @@ function Pr({
|
|
4033
4045
|
isNormalSize: r,
|
4034
4046
|
isMounted: i
|
4035
4047
|
}) {
|
4036
|
-
const o =
|
4048
|
+
const o = rt(kc), a = Ge(null);
|
4037
4049
|
return /* @__PURE__ */ T.jsx(
|
4038
4050
|
Nc,
|
4039
4051
|
{
|
@@ -4081,7 +4093,7 @@ Pr.defaultProps = {
|
|
4081
4093
|
};
|
4082
4094
|
const Ec = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiNmZmZmZmYiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iNDgiPjxwYXRoIGQ9Ik0xMjAtMTIwdi0zMDBoNjB2MTk4bDU1OC01NThINTQwdi02MGgzMDB2MzAwaC02MHYtMTk4TDIyMi0xODBoMTk4djYwSDEyMFoiLz48L3N2Zz4=", jc = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiNmZmZmZmYiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iNDgiPjxwYXRoIGQ9Ik0zNzAtMjg3aDM2MHYtOTBIMzcwdjkwWk0xODAtMTIwcS0yNCAwLTQyLTE4dC0xOC00MnYtNjAwcTAtMjQgMTgtNDJ0NDItMThoNjAwcTI0IDAgNDIgMTh0MTggNDJ2NjAwcTAgMjQtMTggNDJ0LTQyIDE4SDE4MFptMC02MGg2MDB2LTYwMEgxODB2NjAwWm0wLTYwMHY2MDAtNjAwWiIvPjwvc3ZnPg==", Cc = 991;
|
4083
4095
|
function sa({ isNormalSize: e, setIsMounted: t, setIsNormalSize: n }) {
|
4084
|
-
return
|
4096
|
+
return rt(Cc) ? null : e ? /* @__PURE__ */ T.jsx(
|
4085
4097
|
"button",
|
4086
4098
|
{
|
4087
4099
|
onClick: () => {
|
@@ -4185,7 +4197,7 @@ function ua({
|
|
4185
4197
|
"aria-label": "Close Xpert dialog",
|
4186
4198
|
type: "button",
|
4187
4199
|
children: /* @__PURE__ */ T.jsx(
|
4188
|
-
|
4200
|
+
vt,
|
4189
4201
|
{
|
4190
4202
|
icon: "material-symbols:close",
|
4191
4203
|
alt: "Close",
|
@@ -4244,8 +4256,8 @@ function ca({
|
|
4244
4256
|
setIsMounted: r,
|
4245
4257
|
onClose: i
|
4246
4258
|
}) {
|
4247
|
-
var s, u, c, p, m, d, I, b,
|
4248
|
-
const { primaryColor: o, conversationScreen: a } = Re
|
4259
|
+
var s, u, c, p, m, d, I, b, A;
|
4260
|
+
const { primaryColor: o, conversationScreen: a } = Pe(Re), l = rt(Sc);
|
4249
4261
|
return /* @__PURE__ */ T.jsxs(
|
4250
4262
|
"div",
|
4251
4263
|
{
|
@@ -4301,7 +4313,7 @@ function ca({
|
|
4301
4313
|
className: "xpert-chatbot-popup__header_container",
|
4302
4314
|
style: {
|
4303
4315
|
right: 0,
|
4304
|
-
background: ((
|
4316
|
+
background: ((A = (b = a.header.container) == null ? void 0 : b.style) == null ? void 0 : A.backgroun) || o
|
4305
4317
|
}
|
4306
4318
|
}
|
4307
4319
|
)
|
@@ -4328,7 +4340,7 @@ function Ur({
|
|
4328
4340
|
loading: s,
|
4329
4341
|
userInput: u
|
4330
4342
|
}) {
|
4331
|
-
const { primaryColor: c } = Re
|
4343
|
+
const { primaryColor: c } = Pe(Re);
|
4332
4344
|
return Ie(() => {
|
4333
4345
|
var p;
|
4334
4346
|
(o || a) && ((p = l.current) == null || p.focus());
|
@@ -4371,7 +4383,7 @@ function Ur({
|
|
4371
4383
|
p.preventDefault(), i(u);
|
4372
4384
|
},
|
4373
4385
|
"aria-label": "Send message",
|
4374
|
-
children: /* @__PURE__ */ T.jsx(
|
4386
|
+
children: /* @__PURE__ */ T.jsx(vt, { icon: "material-symbols:send", style: { fontSize: "1.75rem" } })
|
4375
4387
|
}
|
4376
4388
|
)
|
4377
4389
|
] });
|
@@ -4418,7 +4430,7 @@ function Oc(e) {
|
|
4418
4430
|
var zc = function(t) {
|
4419
4431
|
return t != null && t.constructor != null && typeof t.constructor.isBuffer == "function" && t.constructor.isBuffer(t);
|
4420
4432
|
};
|
4421
|
-
const pa = /* @__PURE__ */
|
4433
|
+
const pa = /* @__PURE__ */ nt(zc);
|
4422
4434
|
function Qt(e) {
|
4423
4435
|
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? Li(e.position) : "start" in e || "end" in e ? Li(e) : "line" in e || "column" in e ? br(e) : "";
|
4424
4436
|
}
|
@@ -4431,7 +4443,7 @@ function Li(e) {
|
|
4431
4443
|
function _i(e) {
|
4432
4444
|
return e && typeof e == "number" ? e : 1;
|
4433
4445
|
}
|
4434
|
-
class
|
4446
|
+
class Ue extends Error {
|
4435
4447
|
/**
|
4436
4448
|
* Create a message for `reason` at `place` from `origin`.
|
4437
4449
|
*
|
@@ -4465,18 +4477,18 @@ class Be extends Error {
|
|
4465
4477
|
n && ("type" in n || "position" in n ? n.position && (o = n.position) : "start" in n || "end" in n ? o = n : ("line" in n || "column" in n) && (o.start = n)), this.name = Qt(n) || "1:1", this.message = typeof t == "object" ? t.message : t, this.stack = "", typeof t == "object" && t.stack && (this.stack = t.stack), this.reason = this.message, this.fatal, this.line = o.start.line, this.column = o.start.column, this.position = o, this.source = i[0], this.ruleId = i[1], this.file, this.actual, this.expected, this.url, this.note;
|
4466
4478
|
}
|
4467
4479
|
}
|
4468
|
-
|
4469
|
-
|
4470
|
-
|
4471
|
-
|
4472
|
-
|
4473
|
-
|
4474
|
-
|
4475
|
-
|
4476
|
-
|
4477
|
-
|
4478
|
-
|
4479
|
-
const
|
4480
|
+
Ue.prototype.file = "";
|
4481
|
+
Ue.prototype.name = "";
|
4482
|
+
Ue.prototype.reason = "";
|
4483
|
+
Ue.prototype.message = "";
|
4484
|
+
Ue.prototype.stack = "";
|
4485
|
+
Ue.prototype.fatal = null;
|
4486
|
+
Ue.prototype.column = null;
|
4487
|
+
Ue.prototype.line = null;
|
4488
|
+
Ue.prototype.source = null;
|
4489
|
+
Ue.prototype.ruleId = null;
|
4490
|
+
Ue.prototype.position = null;
|
4491
|
+
const Ve = { basename: Lc, dirname: _c, extname: Fc, join: Pc, sep: "/" };
|
4480
4492
|
function Lc(e, t) {
|
4481
4493
|
if (t !== void 0 && typeof t != "string")
|
4482
4494
|
throw new TypeError('"ext" argument must be a string');
|
@@ -4694,7 +4706,7 @@ class fa {
|
|
4694
4706
|
* Get the parent path (example: `'~'`).
|
4695
4707
|
*/
|
4696
4708
|
get dirname() {
|
4697
|
-
return typeof this.path == "string" ?
|
4709
|
+
return typeof this.path == "string" ? Ve.dirname(this.path) : void 0;
|
4698
4710
|
}
|
4699
4711
|
/**
|
4700
4712
|
* Set the parent path (example: `'~'`).
|
@@ -4702,13 +4714,13 @@ class fa {
|
|
4702
4714
|
* Cannot be set if there’s no `path` yet.
|
4703
4715
|
*/
|
4704
4716
|
set dirname(t) {
|
4705
|
-
Fi(this.basename, "dirname"), this.path =
|
4717
|
+
Fi(this.basename, "dirname"), this.path = Ve.join(t || "", this.basename);
|
4706
4718
|
}
|
4707
4719
|
/**
|
4708
4720
|
* Get the basename (including extname) (example: `'index.min.js'`).
|
4709
4721
|
*/
|
4710
4722
|
get basename() {
|
4711
|
-
return typeof this.path == "string" ?
|
4723
|
+
return typeof this.path == "string" ? Ve.basename(this.path) : void 0;
|
4712
4724
|
}
|
4713
4725
|
/**
|
4714
4726
|
* Set basename (including extname) (`'index.min.js'`).
|
@@ -4718,13 +4730,13 @@ class fa {
|
|
4718
4730
|
* Cannot be nullified (use `file.path = file.dirname` instead).
|
4719
4731
|
*/
|
4720
4732
|
set basename(t) {
|
4721
|
-
er(t, "basename"), Jn(t, "basename"), this.path =
|
4733
|
+
er(t, "basename"), Jn(t, "basename"), this.path = Ve.join(this.dirname || "", t);
|
4722
4734
|
}
|
4723
4735
|
/**
|
4724
4736
|
* Get the extname (including dot) (example: `'.js'`).
|
4725
4737
|
*/
|
4726
4738
|
get extname() {
|
4727
|
-
return typeof this.path == "string" ?
|
4739
|
+
return typeof this.path == "string" ? Ve.extname(this.path) : void 0;
|
4728
4740
|
}
|
4729
4741
|
/**
|
4730
4742
|
* Set the extname (including dot) (example: `'.js'`).
|
@@ -4740,13 +4752,13 @@ class fa {
|
|
4740
4752
|
if (t.includes(".", 1))
|
4741
4753
|
throw new Error("`extname` cannot contain multiple dots");
|
4742
4754
|
}
|
4743
|
-
this.path =
|
4755
|
+
this.path = Ve.join(this.dirname, this.stem + (t || ""));
|
4744
4756
|
}
|
4745
4757
|
/**
|
4746
4758
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
4747
4759
|
*/
|
4748
4760
|
get stem() {
|
4749
|
-
return typeof this.path == "string" ?
|
4761
|
+
return typeof this.path == "string" ? Ve.basename(this.path, this.extname) : void 0;
|
4750
4762
|
}
|
4751
4763
|
/**
|
4752
4764
|
* Set the stem (basename w/o extname) (example: `'index.min'`).
|
@@ -4756,7 +4768,7 @@ class fa {
|
|
4756
4768
|
* Cannot be nullified (use `file.path = file.dirname` instead).
|
4757
4769
|
*/
|
4758
4770
|
set stem(t) {
|
4759
|
-
er(t, "stem"), Jn(t, "stem"), this.path =
|
4771
|
+
er(t, "stem"), Jn(t, "stem"), this.path = Ve.join(this.dirname || "", t + (this.extname || ""));
|
4760
4772
|
}
|
4761
4773
|
/**
|
4762
4774
|
* Serialize the file.
|
@@ -4787,7 +4799,7 @@ class fa {
|
|
4787
4799
|
* Message.
|
4788
4800
|
*/
|
4789
4801
|
message(t, n, r) {
|
4790
|
-
const i = new
|
4802
|
+
const i = new Ue(t, n, r);
|
4791
4803
|
return this.path && (i.name = this.path + ":" + i.name, i.file = this.path), i.fatal = !1, this.messages.push(i), i;
|
4792
4804
|
}
|
4793
4805
|
/**
|
@@ -4836,9 +4848,9 @@ class fa {
|
|
4836
4848
|
}
|
4837
4849
|
}
|
4838
4850
|
function Jn(e, t) {
|
4839
|
-
if (e && e.includes(
|
4851
|
+
if (e && e.includes(Ve.sep))
|
4840
4852
|
throw new Error(
|
4841
|
-
"`" + t + "` cannot be a path: did not expect `" +
|
4853
|
+
"`" + t + "` cannot be a path: did not expect `" + Ve.sep + "`"
|
4842
4854
|
);
|
4843
4855
|
}
|
4844
4856
|
function er(e, t) {
|
@@ -4891,7 +4903,7 @@ var pn = Object.prototype.hasOwnProperty, da = Object.prototype.toString, Ri = O
|
|
4891
4903
|
r = Hi(l, n), i = Hi(t, n), l !== i && (c && i && (Qi(i) || (o = Bi(i))) ? (o ? (o = !1, a = r && Bi(r) ? r : []) : a = r && Qi(r) ? r : {}, Yi(l, { name: n, newValue: e(c, a, i) })) : typeof i < "u" && Yi(l, { name: n, newValue: i }));
|
4892
4904
|
return l;
|
4893
4905
|
};
|
4894
|
-
const $i = /* @__PURE__ */
|
4906
|
+
const $i = /* @__PURE__ */ nt(qc);
|
4895
4907
|
function wr(e) {
|
4896
4908
|
if (typeof e != "object" || e === null)
|
4897
4909
|
return !1;
|
@@ -4961,34 +4973,34 @@ function ga() {
|
|
4961
4973
|
return o.data = a, o.Parser = void 0, o.Compiler = void 0, o.freeze = l, o.attachers = t, o.use = s, o.parse = u, o.stringify = c, o.run = p, o.runSync = m, o.process = d, o.processSync = I, o;
|
4962
4974
|
function o() {
|
4963
4975
|
const b = ga();
|
4964
|
-
let
|
4965
|
-
for (; ++
|
4966
|
-
b.use(...t[
|
4976
|
+
let A = -1;
|
4977
|
+
for (; ++A < t.length; )
|
4978
|
+
b.use(...t[A]);
|
4967
4979
|
return b.data($i(!0, {}, n)), b;
|
4968
4980
|
}
|
4969
|
-
function a(b,
|
4970
|
-
return typeof b == "string" ? arguments.length === 2 ? (rr("data", r), n[b] =
|
4981
|
+
function a(b, A) {
|
4982
|
+
return typeof b == "string" ? arguments.length === 2 ? (rr("data", r), n[b] = A, o) : ha.call(n, b) && n[b] || null : b ? (rr("data", r), n = b, o) : n;
|
4971
4983
|
}
|
4972
4984
|
function l() {
|
4973
4985
|
if (r)
|
4974
4986
|
return o;
|
4975
4987
|
for (; ++i < t.length; ) {
|
4976
|
-
const [b, ...
|
4977
|
-
if (
|
4988
|
+
const [b, ...A] = t[i];
|
4989
|
+
if (A[0] === !1)
|
4978
4990
|
continue;
|
4979
|
-
|
4980
|
-
const x = b.call(o, ...
|
4991
|
+
A[0] === !0 && (A[0] = void 0);
|
4992
|
+
const x = b.call(o, ...A);
|
4981
4993
|
typeof x == "function" && e.use(x);
|
4982
4994
|
}
|
4983
4995
|
return r = !0, i = Number.POSITIVE_INFINITY, o;
|
4984
4996
|
}
|
4985
|
-
function s(b, ...
|
4997
|
+
function s(b, ...A) {
|
4986
4998
|
let x;
|
4987
4999
|
if (rr("use", r), b != null)
|
4988
5000
|
if (typeof b == "function")
|
4989
|
-
$(b, ...
|
5001
|
+
$(b, ...A);
|
4990
5002
|
else if (typeof b == "object")
|
4991
|
-
Array.isArray(b) ? Y(b) :
|
5003
|
+
Array.isArray(b) ? Y(b) : C(b);
|
4992
5004
|
else
|
4993
5005
|
throw new TypeError("Expected usable value, not `" + b + "`");
|
4994
5006
|
return x && (n.settings = Object.assign(n.settings || {}, x)), o;
|
@@ -5000,11 +5012,11 @@ function ga() {
|
|
5000
5012
|
const [_, ...q] = M;
|
5001
5013
|
$(_, ...q);
|
5002
5014
|
} else
|
5003
|
-
|
5015
|
+
C(M);
|
5004
5016
|
else
|
5005
5017
|
throw new TypeError("Expected usable value, not `" + M + "`");
|
5006
5018
|
}
|
5007
|
-
function
|
5019
|
+
function C(M) {
|
5008
5020
|
Y(M.plugins), M.settings && (x = Object.assign(x || {}, M.settings));
|
5009
5021
|
}
|
5010
5022
|
function Y(M) {
|
@@ -5030,37 +5042,37 @@ function ga() {
|
|
5030
5042
|
}
|
5031
5043
|
function u(b) {
|
5032
5044
|
o.freeze();
|
5033
|
-
const
|
5034
|
-
return tr("parse", x), qi(x, "parse") ? new x(String(
|
5045
|
+
const A = Ft(b), x = o.Parser;
|
5046
|
+
return tr("parse", x), qi(x, "parse") ? new x(String(A), A).parse() : x(String(A), A);
|
5035
5047
|
}
|
5036
|
-
function c(b,
|
5048
|
+
function c(b, A) {
|
5037
5049
|
o.freeze();
|
5038
|
-
const x = Ft(
|
5050
|
+
const x = Ft(A), E = o.Compiler;
|
5039
5051
|
return nr("stringify", E), Vi(b), qi(E, "compile") ? new E(b, x).compile() : E(b, x);
|
5040
5052
|
}
|
5041
|
-
function p(b,
|
5042
|
-
if (Vi(b), o.freeze(), !x && typeof
|
5053
|
+
function p(b, A, x) {
|
5054
|
+
if (Vi(b), o.freeze(), !x && typeof A == "function" && (x = A, A = void 0), !x)
|
5043
5055
|
return new Promise(E);
|
5044
5056
|
E(null, x);
|
5045
|
-
function E(
|
5046
|
-
e.run(b, Ft(
|
5057
|
+
function E(C, Y) {
|
5058
|
+
e.run(b, Ft(A), $);
|
5047
5059
|
function $(M, _, q) {
|
5048
|
-
_ = _ || b, M ? Y(M) :
|
5060
|
+
_ = _ || b, M ? Y(M) : C ? C(_) : x(null, _, q);
|
5049
5061
|
}
|
5050
5062
|
}
|
5051
5063
|
}
|
5052
|
-
function m(b,
|
5064
|
+
function m(b, A) {
|
5053
5065
|
let x, E;
|
5054
|
-
return o.run(b,
|
5055
|
-
function
|
5066
|
+
return o.run(b, A, C), Wi("runSync", "run", E), x;
|
5067
|
+
function C(Y, $) {
|
5056
5068
|
Pi(Y), x = $, E = !0;
|
5057
5069
|
}
|
5058
5070
|
}
|
5059
|
-
function d(b,
|
5060
|
-
if (o.freeze(), tr("process", o.Parser), nr("process", o.Compiler), !
|
5071
|
+
function d(b, A) {
|
5072
|
+
if (o.freeze(), tr("process", o.Parser), nr("process", o.Compiler), !A)
|
5061
5073
|
return new Promise(x);
|
5062
|
-
x(null,
|
5063
|
-
function x(E,
|
5074
|
+
x(null, A);
|
5075
|
+
function x(E, C) {
|
5064
5076
|
const Y = Ft(b);
|
5065
5077
|
o.run(o.parse(Y), Y, (M, _, q) => {
|
5066
5078
|
if (M || !_ || !q)
|
@@ -5071,17 +5083,17 @@ function ga() {
|
|
5071
5083
|
}
|
5072
5084
|
});
|
5073
5085
|
function $(M, _) {
|
5074
|
-
M || !_ ?
|
5086
|
+
M || !_ ? C(M) : E ? E(_) : A(null, _);
|
5075
5087
|
}
|
5076
5088
|
}
|
5077
5089
|
}
|
5078
5090
|
function I(b) {
|
5079
|
-
let
|
5091
|
+
let A;
|
5080
5092
|
o.freeze(), tr("processSync", o.Parser), nr("processSync", o.Compiler);
|
5081
5093
|
const x = Ft(b);
|
5082
|
-
return o.process(x, E), Wi("processSync", "process",
|
5083
|
-
function E(
|
5084
|
-
|
5094
|
+
return o.process(x, E), Wi("processSync", "process", A), x;
|
5095
|
+
function E(C) {
|
5096
|
+
A = !0, Pi(C);
|
5085
5097
|
}
|
5086
5098
|
}
|
5087
5099
|
}
|
@@ -5160,7 +5172,7 @@ function Gi(e, t, n) {
|
|
5160
5172
|
function tp(e) {
|
5161
5173
|
return !!(e && typeof e == "object");
|
5162
5174
|
}
|
5163
|
-
function
|
5175
|
+
function Ze(e, t, n, r) {
|
5164
5176
|
const i = e.length;
|
5165
5177
|
let o = 0, a;
|
5166
5178
|
if (t < 0 ? t = -t > i ? 0 : i + t : t = t > i ? i : t, n = n > 0 ? n : 0, r.length < 1e4)
|
@@ -5169,8 +5181,8 @@ function Xe(e, t, n, r) {
|
|
5169
5181
|
for (n && e.splice(t, n); o < r.length; )
|
5170
5182
|
a = r.slice(o, o + 1e4), a.unshift(t, 0), e.splice(...a), o += 1e4, t += 1e4;
|
5171
5183
|
}
|
5172
|
-
function
|
5173
|
-
return e.length > 0 ? (
|
5184
|
+
function Fe(e, t) {
|
5185
|
+
return e.length > 0 ? (Ze(e, e.length, 0, t), e) : t;
|
5174
5186
|
}
|
5175
5187
|
const Zi = {}.hasOwnProperty;
|
5176
5188
|
function np(e) {
|
@@ -5202,9 +5214,9 @@ function ip(e, t) {
|
|
5202
5214
|
const r = [];
|
5203
5215
|
for (; ++n < t.length; )
|
5204
5216
|
(t[n].add === "after" ? e : r).push(t[n]);
|
5205
|
-
|
5217
|
+
Ze(e, 0, 0, r);
|
5206
5218
|
}
|
5207
|
-
const op = /[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,
|
5219
|
+
const op = /[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/, We = it(/[A-Za-z]/), Oe = it(/[\dA-Za-z]/), ap = it(/[#-'*+\--9=?A-Z^-~]/);
|
5208
5220
|
function vr(e) {
|
5209
5221
|
return (
|
5210
5222
|
// Special whitespace codes (which have negative values), C0 and Control
|
@@ -5212,24 +5224,24 @@ function vr(e) {
|
|
5212
5224
|
e !== null && (e < 32 || e === 127)
|
5213
5225
|
);
|
5214
5226
|
}
|
5215
|
-
const Tr =
|
5227
|
+
const Tr = it(/\d/), lp = it(/[\dA-Fa-f]/), sp = it(/[!-/:-@[-`{-~]/);
|
5216
5228
|
function V(e) {
|
5217
5229
|
return e !== null && e < -2;
|
5218
5230
|
}
|
5219
|
-
function
|
5231
|
+
function Ee(e) {
|
5220
5232
|
return e !== null && (e < 0 || e === 32);
|
5221
5233
|
}
|
5222
5234
|
function te(e) {
|
5223
5235
|
return e === -2 || e === -1 || e === 32;
|
5224
5236
|
}
|
5225
|
-
const up =
|
5226
|
-
function
|
5237
|
+
const up = it(op), cp = it(/\s/);
|
5238
|
+
function it(e) {
|
5227
5239
|
return t;
|
5228
5240
|
function t(n) {
|
5229
5241
|
return n !== null && e.test(String.fromCharCode(n));
|
5230
5242
|
}
|
5231
5243
|
}
|
5232
|
-
function
|
5244
|
+
function ce(e, t, n, r) {
|
5233
5245
|
const i = r ? r - 1 : Number.POSITIVE_INFINITY;
|
5234
5246
|
let o = 0;
|
5235
5247
|
return a;
|
@@ -5256,7 +5268,7 @@ function fp(e) {
|
|
5256
5268
|
e.consume(l);
|
5257
5269
|
return;
|
5258
5270
|
}
|
5259
|
-
return e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"),
|
5271
|
+
return e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), ce(e, t, "linePrefix");
|
5260
5272
|
}
|
5261
5273
|
function i(l) {
|
5262
5274
|
return e.enter("paragraph"), o(l);
|
@@ -5285,18 +5297,18 @@ function hp(e) {
|
|
5285
5297
|
const t = this, n = [];
|
5286
5298
|
let r = 0, i, o, a;
|
5287
5299
|
return l;
|
5288
|
-
function l(
|
5300
|
+
function l(C) {
|
5289
5301
|
if (r < n.length) {
|
5290
5302
|
const Y = n[r];
|
5291
5303
|
return t.containerState = Y[1], e.attempt(
|
5292
5304
|
Y[0].continuation,
|
5293
5305
|
s,
|
5294
5306
|
u
|
5295
|
-
)(
|
5307
|
+
)(C);
|
5296
5308
|
}
|
5297
|
-
return u(
|
5309
|
+
return u(C);
|
5298
5310
|
}
|
5299
|
-
function s(
|
5311
|
+
function s(C) {
|
5300
5312
|
if (r++, t.containerState._closeFlow) {
|
5301
5313
|
t.containerState._closeFlow = void 0, i && E();
|
5302
5314
|
const Y = t.events.length;
|
@@ -5310,66 +5322,66 @@ function hp(e) {
|
|
5310
5322
|
let _ = Y;
|
5311
5323
|
for (; _ < t.events.length; )
|
5312
5324
|
t.events[_][1].end = Object.assign({}, M), _++;
|
5313
|
-
return
|
5325
|
+
return Ze(
|
5314
5326
|
t.events,
|
5315
5327
|
$ + 1,
|
5316
5328
|
0,
|
5317
5329
|
t.events.slice(Y)
|
5318
|
-
), t.events.length = _, u(
|
5330
|
+
), t.events.length = _, u(C);
|
5319
5331
|
}
|
5320
|
-
return l(
|
5332
|
+
return l(C);
|
5321
5333
|
}
|
5322
|
-
function u(
|
5334
|
+
function u(C) {
|
5323
5335
|
if (r === n.length) {
|
5324
5336
|
if (!i)
|
5325
|
-
return m(
|
5337
|
+
return m(C);
|
5326
5338
|
if (i.currentConstruct && i.currentConstruct.concrete)
|
5327
|
-
return I(
|
5339
|
+
return I(C);
|
5328
5340
|
t.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
|
5329
5341
|
}
|
5330
5342
|
return t.containerState = {}, e.check(
|
5331
5343
|
Ki,
|
5332
5344
|
c,
|
5333
5345
|
p
|
5334
|
-
)(
|
5346
|
+
)(C);
|
5335
5347
|
}
|
5336
|
-
function c(
|
5337
|
-
return i && E(), x(r), m(
|
5348
|
+
function c(C) {
|
5349
|
+
return i && E(), x(r), m(C);
|
5338
5350
|
}
|
5339
|
-
function p(
|
5340
|
-
return t.parser.lazy[t.now().line] = r !== n.length, a = t.now().offset, I(
|
5351
|
+
function p(C) {
|
5352
|
+
return t.parser.lazy[t.now().line] = r !== n.length, a = t.now().offset, I(C);
|
5341
5353
|
}
|
5342
|
-
function m(
|
5354
|
+
function m(C) {
|
5343
5355
|
return t.containerState = {}, e.attempt(
|
5344
5356
|
Ki,
|
5345
5357
|
d,
|
5346
5358
|
I
|
5347
|
-
)(
|
5359
|
+
)(C);
|
5348
5360
|
}
|
5349
|
-
function d(
|
5350
|
-
return r++, n.push([t.currentConstruct, t.containerState]), m(
|
5361
|
+
function d(C) {
|
5362
|
+
return r++, n.push([t.currentConstruct, t.containerState]), m(C);
|
5351
5363
|
}
|
5352
|
-
function I(
|
5353
|
-
if (
|
5354
|
-
i && E(), x(0), e.consume(
|
5364
|
+
function I(C) {
|
5365
|
+
if (C === null) {
|
5366
|
+
i && E(), x(0), e.consume(C);
|
5355
5367
|
return;
|
5356
5368
|
}
|
5357
5369
|
return i = i || t.parser.flow(t.now()), e.enter("chunkFlow", {
|
5358
5370
|
contentType: "flow",
|
5359
5371
|
previous: o,
|
5360
5372
|
_tokenizer: i
|
5361
|
-
}), b(
|
5373
|
+
}), b(C);
|
5362
5374
|
}
|
5363
|
-
function b(
|
5364
|
-
if (
|
5365
|
-
|
5375
|
+
function b(C) {
|
5376
|
+
if (C === null) {
|
5377
|
+
A(e.exit("chunkFlow"), !0), x(0), e.consume(C);
|
5366
5378
|
return;
|
5367
5379
|
}
|
5368
|
-
return V(
|
5380
|
+
return V(C) ? (e.consume(C), A(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, l) : (e.consume(C), b);
|
5369
5381
|
}
|
5370
|
-
function C
|
5371
|
-
const $ = t.sliceStream(
|
5372
|
-
if (Y && $.push(null),
|
5382
|
+
function A(C, Y) {
|
5383
|
+
const $ = t.sliceStream(C);
|
5384
|
+
if (Y && $.push(null), C.previous = o, o && (o.next = C), o = C, i.defineSkip(C.start), i.write($), t.parser.lazy[C.start.line]) {
|
5373
5385
|
let M = i.events.length;
|
5374
5386
|
for (; M--; )
|
5375
5387
|
if (
|
@@ -5391,7 +5403,7 @@ function hp(e) {
|
|
5391
5403
|
}
|
5392
5404
|
for (x(r), M = _; M < t.events.length; )
|
5393
5405
|
t.events[M][1].end = Object.assign({}, K), M++;
|
5394
|
-
|
5406
|
+
Ze(
|
5395
5407
|
t.events,
|
5396
5408
|
q + 1,
|
5397
5409
|
0,
|
@@ -5399,20 +5411,20 @@ function hp(e) {
|
|
5399
5411
|
), t.events.length = M;
|
5400
5412
|
}
|
5401
5413
|
}
|
5402
|
-
function x(
|
5414
|
+
function x(C) {
|
5403
5415
|
let Y = n.length;
|
5404
|
-
for (; Y-- >
|
5416
|
+
for (; Y-- > C; ) {
|
5405
5417
|
const $ = n[Y];
|
5406
5418
|
t.containerState = $[1], $[0].exit.call(t, e);
|
5407
5419
|
}
|
5408
|
-
n.length =
|
5420
|
+
n.length = C;
|
5409
5421
|
}
|
5410
5422
|
function E() {
|
5411
5423
|
i.write([null]), o = void 0, i = void 0, t.containerState._closeFlow = void 0;
|
5412
5424
|
}
|
5413
5425
|
}
|
5414
5426
|
function gp(e, t, n) {
|
5415
|
-
return
|
5427
|
+
return ce(
|
5416
5428
|
e,
|
5417
5429
|
e.attempt(this.parser.constructs.document, t, n),
|
5418
5430
|
"linePrefix",
|
@@ -5420,7 +5432,7 @@ function gp(e, t, n) {
|
|
5420
5432
|
);
|
5421
5433
|
}
|
5422
5434
|
function Xi(e) {
|
5423
|
-
if (e === null ||
|
5435
|
+
if (e === null || Ee(e) || cp(e))
|
5424
5436
|
return 1;
|
5425
5437
|
if (up(e))
|
5426
5438
|
return 2;
|
@@ -5466,30 +5478,30 @@ function mp(e, t) {
|
|
5466
5478
|
type: s > 1 ? "strong" : "emphasis",
|
5467
5479
|
start: Object.assign({}, a.start),
|
5468
5480
|
end: Object.assign({}, l.end)
|
5469
|
-
}, e[r][1].end = Object.assign({}, a.start), e[n][1].start = Object.assign({}, l.end), u = [], e[r][1].end.offset - e[r][1].start.offset && (u =
|
5481
|
+
}, e[r][1].end = Object.assign({}, a.start), e[n][1].start = Object.assign({}, l.end), u = [], e[r][1].end.offset - e[r][1].start.offset && (u = Fe(u, [
|
5470
5482
|
["enter", e[r][1], t],
|
5471
5483
|
["exit", e[r][1], t]
|
5472
|
-
])), u =
|
5484
|
+
])), u = Fe(u, [
|
5473
5485
|
["enter", i, t],
|
5474
5486
|
["enter", a, t],
|
5475
5487
|
["exit", a, t],
|
5476
5488
|
["enter", o, t]
|
5477
|
-
]), u =
|
5489
|
+
]), u = Fe(
|
5478
5490
|
u,
|
5479
5491
|
Br(
|
5480
5492
|
t.parser.constructs.insideSpan.null,
|
5481
5493
|
e.slice(r + 1, n),
|
5482
5494
|
t
|
5483
5495
|
)
|
5484
|
-
), u =
|
5496
|
+
), u = Fe(u, [
|
5485
5497
|
["exit", o, t],
|
5486
5498
|
["enter", l, t],
|
5487
5499
|
["exit", l, t],
|
5488
5500
|
["exit", i, t]
|
5489
|
-
]), e[n][1].end.offset - e[n][1].start.offset ? (c = 2, u =
|
5501
|
+
]), e[n][1].end.offset - e[n][1].start.offset ? (c = 2, u = Fe(u, [
|
5490
5502
|
["enter", e[n][1], t],
|
5491
5503
|
["exit", e[n][1], t]
|
5492
|
-
])) : c = 0,
|
5504
|
+
])) : c = 0, Ze(e, r - 1, n - r + 3, u), n = r + u.length - c - 2;
|
5493
5505
|
break;
|
5494
5506
|
}
|
5495
5507
|
}
|
@@ -5525,7 +5537,7 @@ function bp(e, t, n) {
|
|
5525
5537
|
return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(d), e.exit("autolinkMarker"), e.enter("autolinkProtocol"), o;
|
5526
5538
|
}
|
5527
5539
|
function o(d) {
|
5528
|
-
return
|
5540
|
+
return We(d) ? (e.consume(d), a) : u(d);
|
5529
5541
|
}
|
5530
5542
|
function a(d) {
|
5531
5543
|
return d === 43 || d === 45 || d === 46 || Oe(d) ? (r = 1, l(d)) : u(d);
|
@@ -5560,7 +5572,7 @@ const Dn = {
|
|
5560
5572
|
function xp(e, t, n) {
|
5561
5573
|
return r;
|
5562
5574
|
function r(o) {
|
5563
|
-
return te(o) ?
|
5575
|
+
return te(o) ? ce(e, i, "linePrefix")(o) : i(o);
|
5564
5576
|
}
|
5565
5577
|
function i(o) {
|
5566
5578
|
return o === null || V(o) ? t(o) : n(o);
|
@@ -5594,7 +5606,7 @@ function vp(e, t, n) {
|
|
5594
5606
|
const r = this;
|
5595
5607
|
return i;
|
5596
5608
|
function i(a) {
|
5597
|
-
return te(a) ?
|
5609
|
+
return te(a) ? ce(
|
5598
5610
|
e,
|
5599
5611
|
o,
|
5600
5612
|
"linePrefix",
|
@@ -5676,7 +5688,7 @@ function Np(e, t, n) {
|
|
5676
5688
|
return o = _ && _[1].type === "linePrefix" ? _[2].sliceSerialize(_[1], !0).length : 0, l = M, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), c(M);
|
5677
5689
|
}
|
5678
5690
|
function c(M) {
|
5679
|
-
return M === l ? (a++, e.consume(M), c) : a < 3 ? n(M) : (e.exit("codeFencedFenceSequence"), te(M) ?
|
5691
|
+
return M === l ? (a++, e.consume(M), c) : a < 3 ? n(M) : (e.exit("codeFencedFenceSequence"), te(M) ? ce(e, p, "whitespace")(M) : p(M));
|
5680
5692
|
}
|
5681
5693
|
function p(M) {
|
5682
5694
|
return M === null || V(M) ? (e.exit("codeFencedFence"), r.interrupt ? t(M) : e.check(to, b, Y)(M)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
@@ -5684,7 +5696,7 @@ function Np(e, t, n) {
|
|
5684
5696
|
}), m(M));
|
5685
5697
|
}
|
5686
5698
|
function m(M) {
|
5687
|
-
return M === null || V(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), p(M)) : te(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"),
|
5699
|
+
return M === null || V(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), p(M)) : te(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), ce(e, d, "whitespace")(M)) : M === 96 && M === l ? n(M) : (e.consume(M), m);
|
5688
5700
|
}
|
5689
5701
|
function d(M) {
|
5690
5702
|
return M === null || V(M) ? p(M) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
@@ -5695,13 +5707,13 @@ function Np(e, t, n) {
|
|
5695
5707
|
return M === null || V(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), p(M)) : M === 96 && M === l ? n(M) : (e.consume(M), I);
|
5696
5708
|
}
|
5697
5709
|
function b(M) {
|
5698
|
-
return e.attempt(i, Y,
|
5710
|
+
return e.attempt(i, Y, A)(M);
|
5699
5711
|
}
|
5700
|
-
function
|
5712
|
+
function A(M) {
|
5701
5713
|
return e.enter("lineEnding"), e.consume(M), e.exit("lineEnding"), x;
|
5702
5714
|
}
|
5703
5715
|
function x(M) {
|
5704
|
-
return o > 0 && te(M) ?
|
5716
|
+
return o > 0 && te(M) ? ce(
|
5705
5717
|
e,
|
5706
5718
|
E,
|
5707
5719
|
"linePrefix",
|
@@ -5709,10 +5721,10 @@ function Np(e, t, n) {
|
|
5709
5721
|
)(M) : E(M);
|
5710
5722
|
}
|
5711
5723
|
function E(M) {
|
5712
|
-
return M === null || V(M) ? e.check(to, b, Y)(M) : (e.enter("codeFlowValue"),
|
5724
|
+
return M === null || V(M) ? e.check(to, b, Y)(M) : (e.enter("codeFlowValue"), C(M));
|
5713
5725
|
}
|
5714
|
-
function
|
5715
|
-
return M === null || V(M) ? (e.exit("codeFlowValue"), E(M)) : (e.consume(M),
|
5726
|
+
function C(M) {
|
5727
|
+
return M === null || V(M) ? (e.exit("codeFlowValue"), E(M)) : (e.consume(M), C);
|
5716
5728
|
}
|
5717
5729
|
function Y(M) {
|
5718
5730
|
return e.exit("codeFenced"), t(M);
|
@@ -5721,10 +5733,10 @@ function Np(e, t, n) {
|
|
5721
5733
|
let G = 0;
|
5722
5734
|
return K;
|
5723
5735
|
function K(L) {
|
5724
|
-
return M.enter("lineEnding"), M.consume(L), M.exit("lineEnding"),
|
5736
|
+
return M.enter("lineEnding"), M.consume(L), M.exit("lineEnding"), O;
|
5725
5737
|
}
|
5726
|
-
function
|
5727
|
-
return M.enter("codeFencedFence"), te(L) ?
|
5738
|
+
function O(L) {
|
5739
|
+
return M.enter("codeFencedFence"), te(L) ? ce(
|
5728
5740
|
M,
|
5729
5741
|
w,
|
5730
5742
|
"linePrefix",
|
@@ -5732,10 +5744,10 @@ function Np(e, t, n) {
|
|
5732
5744
|
)(L) : w(L);
|
5733
5745
|
}
|
5734
5746
|
function w(L) {
|
5735
|
-
return L === l ? (M.enter("codeFencedFenceSequence"),
|
5747
|
+
return L === l ? (M.enter("codeFencedFenceSequence"), k(L)) : q(L);
|
5736
5748
|
}
|
5737
|
-
function
|
5738
|
-
return L === l ? (G++, M.consume(L),
|
5749
|
+
function k(L) {
|
5750
|
+
return L === l ? (G++, M.consume(L), k) : G >= a ? (M.exit("codeFencedFenceSequence"), te(L) ? ce(M, z, "whitespace")(L) : z(L)) : q(L);
|
5739
5751
|
}
|
5740
5752
|
function z(L) {
|
5741
5753
|
return L === null || V(L) ? (M.exit("codeFencedFence"), _(L)) : q(L);
|
@@ -5763,7 +5775,7 @@ function jp(e, t, n) {
|
|
5763
5775
|
const r = this;
|
5764
5776
|
return i;
|
5765
5777
|
function i(u) {
|
5766
|
-
return e.enter("codeIndented"),
|
5778
|
+
return e.enter("codeIndented"), ce(e, o, "linePrefix", 4 + 1)(u);
|
5767
5779
|
}
|
5768
5780
|
function o(u) {
|
5769
5781
|
const c = r.events[r.events.length - 1];
|
@@ -5783,7 +5795,7 @@ function Cp(e, t, n) {
|
|
5783
5795
|
const r = this;
|
5784
5796
|
return i;
|
5785
5797
|
function i(a) {
|
5786
|
-
return r.parser.lazy[r.now().line] ? n(a) : V(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), i) :
|
5798
|
+
return r.parser.lazy[r.now().line] ? n(a) : V(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), i) : ce(e, o, "linePrefix", 4 + 1)(a);
|
5787
5799
|
}
|
5788
5800
|
function o(a) {
|
5789
5801
|
const l = r.events[r.events.length - 1];
|
@@ -5845,7 +5857,7 @@ function xa(e) {
|
|
5845
5857
|
else if (r[1]._container) {
|
5846
5858
|
for (o = n, i = void 0; o-- && (a = e[o], a[1].type === "lineEnding" || a[1].type === "lineEndingBlank"); )
|
5847
5859
|
a[0] === "enter" && (i && (e[i][1].type = "lineEndingBlank"), a[1].type = "lineEnding", i = o);
|
5848
|
-
i && (r[1].end = Object.assign({}, e[i][1].start), l = e.slice(i, n), l.unshift(r),
|
5860
|
+
i && (r[1].end = Object.assign({}, e[i][1].start), l = e.slice(i, n), l.unshift(r), Ze(e, i, n - i + 1, l));
|
5849
5861
|
}
|
5850
5862
|
}
|
5851
5863
|
return !u;
|
@@ -5855,7 +5867,7 @@ function Lp(e, t) {
|
|
5855
5867
|
let i = t - 1;
|
5856
5868
|
const o = [], a = n._tokenizer || r.parser[n.contentType](n.start), l = a.events, s = [], u = {};
|
5857
5869
|
let c, p, m = -1, d = n, I = 0, b = 0;
|
5858
|
-
const
|
5870
|
+
const A = [b];
|
5859
5871
|
for (; d; ) {
|
5860
5872
|
for (; e[++i][1] !== d; )
|
5861
5873
|
;
|
@@ -5863,10 +5875,10 @@ function Lp(e, t) {
|
|
5863
5875
|
}
|
5864
5876
|
for (d = n; ++m < l.length; )
|
5865
5877
|
// Find a void token that includes a break.
|
5866
|
-
l[m][0] === "exit" && l[m - 1][0] === "enter" && l[m][1].type === l[m - 1][1].type && l[m][1].start.line !== l[m][1].end.line && (b = m + 1,
|
5867
|
-
for (a.events = [], d ? (d._tokenizer = void 0, d.previous = void 0) :
|
5868
|
-
const x = l.slice(
|
5869
|
-
s.unshift([E, E + x.length - 1]),
|
5878
|
+
l[m][0] === "exit" && l[m - 1][0] === "enter" && l[m][1].type === l[m - 1][1].type && l[m][1].start.line !== l[m][1].end.line && (b = m + 1, A.push(b), d._tokenizer = void 0, d.previous = void 0, d = d.next);
|
5879
|
+
for (a.events = [], d ? (d._tokenizer = void 0, d.previous = void 0) : A.pop(), m = A.length; m--; ) {
|
5880
|
+
const x = l.slice(A[m], A[m + 1]), E = o.pop();
|
5881
|
+
s.unshift([E, E + x.length - 1]), Ze(e, E, 2, x);
|
5870
5882
|
}
|
5871
5883
|
for (m = -1; ++m < s.length; )
|
5872
5884
|
u[I + s[m][0]] = I + s[m][1], I += s[m][1] - s[m][0] - 1;
|
@@ -5911,7 +5923,7 @@ function Up(e, t, n) {
|
|
5911
5923
|
const r = this;
|
5912
5924
|
return i;
|
5913
5925
|
function i(a) {
|
5914
|
-
return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"),
|
5926
|
+
return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), ce(e, o, "linePrefix");
|
5915
5927
|
}
|
5916
5928
|
function o(a) {
|
5917
5929
|
if (a === null || V(a))
|
@@ -5941,9 +5953,9 @@ function wa(e, t, n, r, i, o, a, l, s) {
|
|
5941
5953
|
return x === 60 || x === 62 || x === 92 ? (e.consume(x), d) : d(x);
|
5942
5954
|
}
|
5943
5955
|
function b(x) {
|
5944
|
-
return !c && (x === null || x === 41 ||
|
5956
|
+
return !c && (x === null || x === 41 || Ee(x)) ? (e.exit("chunkString"), e.exit(l), e.exit(a), e.exit(r), t(x)) : c < u && x === 40 ? (e.consume(x), c++, b) : x === 41 ? (e.consume(x), c--, b) : x === null || x === 32 || x === 40 || vr(x) ? n(x) : (e.consume(x), x === 92 ? A : b);
|
5945
5957
|
}
|
5946
|
-
function
|
5958
|
+
function A(x) {
|
5947
5959
|
return x === 40 || x === 41 || x === 92 ? (e.consume(x), b) : b(x);
|
5948
5960
|
}
|
5949
5961
|
}
|
@@ -5981,7 +5993,7 @@ function Ta(e, t, n, r, i, o) {
|
|
5981
5993
|
return m === a ? (e.enter(i), e.consume(m), e.exit(i), e.exit(r), t) : (e.enter(o), u(m));
|
5982
5994
|
}
|
5983
5995
|
function u(m) {
|
5984
|
-
return m === a ? (e.exit(o), s(a)) : m === null ? n(m) : V(m) ? (e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"),
|
5996
|
+
return m === a ? (e.exit(o), s(a)) : m === null ? n(m) : V(m) ? (e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), ce(e, u, "linePrefix")) : (e.enter("chunkString", {
|
5985
5997
|
contentType: "string"
|
5986
5998
|
}), c(m));
|
5987
5999
|
}
|
@@ -5996,14 +6008,14 @@ function Yt(e, t) {
|
|
5996
6008
|
let n;
|
5997
6009
|
return r;
|
5998
6010
|
function r(i) {
|
5999
|
-
return V(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : te(i) ?
|
6011
|
+
return V(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : te(i) ? ce(
|
6000
6012
|
e,
|
6001
6013
|
r,
|
6002
6014
|
n ? "linePrefix" : "lineSuffix"
|
6003
6015
|
)(i) : t(i);
|
6004
6016
|
}
|
6005
6017
|
}
|
6006
|
-
function
|
6018
|
+
function xt(e) {
|
6007
6019
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
6008
6020
|
}
|
6009
6021
|
const Bp = {
|
@@ -6033,12 +6045,12 @@ function Yp(e, t, n) {
|
|
6033
6045
|
)(d);
|
6034
6046
|
}
|
6035
6047
|
function l(d) {
|
6036
|
-
return i =
|
6048
|
+
return i = xt(
|
6037
6049
|
r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)
|
6038
6050
|
), d === 58 ? (e.enter("definitionMarker"), e.consume(d), e.exit("definitionMarker"), s) : n(d);
|
6039
6051
|
}
|
6040
6052
|
function s(d) {
|
6041
|
-
return
|
6053
|
+
return Ee(d) ? Yt(e, u)(d) : u(d);
|
6042
6054
|
}
|
6043
6055
|
function u(d) {
|
6044
6056
|
return wa(
|
@@ -6057,7 +6069,7 @@ function Yp(e, t, n) {
|
|
6057
6069
|
return e.attempt(Qp, p, p)(d);
|
6058
6070
|
}
|
6059
6071
|
function p(d) {
|
6060
|
-
return te(d) ?
|
6072
|
+
return te(d) ? ce(e, m, "whitespace")(d) : m(d);
|
6061
6073
|
}
|
6062
6074
|
function m(d) {
|
6063
6075
|
return d === null || V(d) ? (e.exit("definition"), r.parser.defined.push(i), t(d)) : n(d);
|
@@ -6066,7 +6078,7 @@ function Yp(e, t, n) {
|
|
6066
6078
|
function Hp(e, t, n) {
|
6067
6079
|
return r;
|
6068
6080
|
function r(l) {
|
6069
|
-
return
|
6081
|
+
return Ee(l) ? Yt(e, i)(l) : n(l);
|
6070
6082
|
}
|
6071
6083
|
function i(l) {
|
6072
6084
|
return Ta(
|
@@ -6079,7 +6091,7 @@ function Hp(e, t, n) {
|
|
6079
6091
|
)(l);
|
6080
6092
|
}
|
6081
6093
|
function o(l) {
|
6082
|
-
return te(l) ?
|
6094
|
+
return te(l) ? ce(e, a, "whitespace")(l) : a(l);
|
6083
6095
|
}
|
6084
6096
|
function a(l) {
|
6085
6097
|
return l === null || V(l) ? t(l) : n(l);
|
@@ -6114,7 +6126,7 @@ function Wp(e, t) {
|
|
6114
6126
|
start: e[r][1].start,
|
6115
6127
|
end: e[n][1].end,
|
6116
6128
|
contentType: "text"
|
6117
|
-
},
|
6129
|
+
}, Ze(e, r, n - r + 1, [
|
6118
6130
|
["enter", i, t],
|
6119
6131
|
["enter", o, t],
|
6120
6132
|
["exit", o, t],
|
@@ -6131,16 +6143,16 @@ function Gp(e, t, n) {
|
|
6131
6143
|
return e.enter("atxHeadingSequence"), a(c);
|
6132
6144
|
}
|
6133
6145
|
function a(c) {
|
6134
|
-
return c === 35 && r++ < 6 ? (e.consume(c), a) : c === null ||
|
6146
|
+
return c === 35 && r++ < 6 ? (e.consume(c), a) : c === null || Ee(c) ? (e.exit("atxHeadingSequence"), l(c)) : n(c);
|
6135
6147
|
}
|
6136
6148
|
function l(c) {
|
6137
|
-
return c === 35 ? (e.enter("atxHeadingSequence"), s(c)) : c === null || V(c) ? (e.exit("atxHeading"), t(c)) : te(c) ?
|
6149
|
+
return c === 35 ? (e.enter("atxHeadingSequence"), s(c)) : c === null || V(c) ? (e.exit("atxHeading"), t(c)) : te(c) ? ce(e, l, "whitespace")(c) : (e.enter("atxHeadingText"), u(c));
|
6138
6150
|
}
|
6139
6151
|
function s(c) {
|
6140
6152
|
return c === 35 ? (e.consume(c), s) : (e.exit("atxHeadingSequence"), l(c));
|
6141
6153
|
}
|
6142
6154
|
function u(c) {
|
6143
|
-
return c === null || c === 35 ||
|
6155
|
+
return c === null || c === 35 || Ee(c) ? (e.exit("atxHeadingText"), l(c)) : (e.consume(c), u);
|
6144
6156
|
}
|
6145
6157
|
}
|
6146
6158
|
const Zp = [
|
@@ -6235,27 +6247,27 @@ function tf(e, t, n) {
|
|
6235
6247
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(h), p;
|
6236
6248
|
}
|
6237
6249
|
function p(h) {
|
6238
|
-
return h === 33 ? (e.consume(h), m) : h === 47 ? (e.consume(h), o = !0, b) : h === 63 ? (e.consume(h), i = 3, r.interrupt ? t : g) :
|
6250
|
+
return h === 33 ? (e.consume(h), m) : h === 47 ? (e.consume(h), o = !0, b) : h === 63 ? (e.consume(h), i = 3, r.interrupt ? t : g) : We(h) ? (e.consume(h), a = String.fromCharCode(h), A) : n(h);
|
6239
6251
|
}
|
6240
6252
|
function m(h) {
|
6241
|
-
return h === 45 ? (e.consume(h), i = 2, d) : h === 91 ? (e.consume(h), i = 5, l = 0, I) :
|
6253
|
+
return h === 45 ? (e.consume(h), i = 2, d) : h === 91 ? (e.consume(h), i = 5, l = 0, I) : We(h) ? (e.consume(h), i = 4, r.interrupt ? t : g) : n(h);
|
6242
6254
|
}
|
6243
6255
|
function d(h) {
|
6244
6256
|
return h === 45 ? (e.consume(h), r.interrupt ? t : g) : n(h);
|
6245
6257
|
}
|
6246
6258
|
function I(h) {
|
6247
|
-
const
|
6248
|
-
return h ===
|
6259
|
+
const ge = "CDATA[";
|
6260
|
+
return h === ge.charCodeAt(l++) ? (e.consume(h), l === ge.length ? r.interrupt ? t : w : I) : n(h);
|
6249
6261
|
}
|
6250
6262
|
function b(h) {
|
6251
|
-
return
|
6263
|
+
return We(h) ? (e.consume(h), a = String.fromCharCode(h), A) : n(h);
|
6252
6264
|
}
|
6253
|
-
function
|
6254
|
-
if (h === null || h === 47 || h === 62 ||
|
6255
|
-
const
|
6256
|
-
return !
|
6265
|
+
function A(h) {
|
6266
|
+
if (h === null || h === 47 || h === 62 || Ee(h)) {
|
6267
|
+
const ge = h === 47, Te = a.toLowerCase();
|
6268
|
+
return !ge && !o && ro.includes(Te) ? (i = 1, r.interrupt ? t(h) : w(h)) : Zp.includes(a.toLowerCase()) ? (i = 6, ge ? (e.consume(h), x) : r.interrupt ? t(h) : w(h)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(h) : o ? E(h) : C(h));
|
6257
6269
|
}
|
6258
|
-
return h === 45 || Oe(h) ? (e.consume(h), a += String.fromCharCode(h),
|
6270
|
+
return h === 45 || Oe(h) ? (e.consume(h), a += String.fromCharCode(h), A) : n(h);
|
6259
6271
|
}
|
6260
6272
|
function x(h) {
|
6261
6273
|
return h === 62 ? (e.consume(h), r.interrupt ? t : w) : n(h);
|
@@ -6263,14 +6275,14 @@ function tf(e, t, n) {
|
|
6263
6275
|
function E(h) {
|
6264
6276
|
return te(h) ? (e.consume(h), E) : K(h);
|
6265
6277
|
}
|
6266
|
-
function
|
6267
|
-
return h === 47 ? (e.consume(h), K) : h === 58 || h === 95 ||
|
6278
|
+
function C(h) {
|
6279
|
+
return h === 47 ? (e.consume(h), K) : h === 58 || h === 95 || We(h) ? (e.consume(h), Y) : te(h) ? (e.consume(h), C) : K(h);
|
6268
6280
|
}
|
6269
6281
|
function Y(h) {
|
6270
6282
|
return h === 45 || h === 46 || h === 58 || h === 95 || Oe(h) ? (e.consume(h), Y) : $(h);
|
6271
6283
|
}
|
6272
6284
|
function $(h) {
|
6273
|
-
return h === 61 ? (e.consume(h), M) : te(h) ? (e.consume(h), $) :
|
6285
|
+
return h === 61 ? (e.consume(h), M) : te(h) ? (e.consume(h), $) : C(h);
|
6274
6286
|
}
|
6275
6287
|
function M(h) {
|
6276
6288
|
return h === null || h === 60 || h === 61 || h === 62 || h === 96 ? n(h) : h === 34 || h === 39 ? (e.consume(h), s = h, _) : te(h) ? (e.consume(h), M) : q(h);
|
@@ -6279,36 +6291,36 @@ function tf(e, t, n) {
|
|
6279
6291
|
return h === s ? (e.consume(h), s = null, G) : h === null || V(h) ? n(h) : (e.consume(h), _);
|
6280
6292
|
}
|
6281
6293
|
function q(h) {
|
6282
|
-
return h === null || h === 34 || h === 39 || h === 47 || h === 60 || h === 61 || h === 62 || h === 96 ||
|
6294
|
+
return h === null || h === 34 || h === 39 || h === 47 || h === 60 || h === 61 || h === 62 || h === 96 || Ee(h) ? $(h) : (e.consume(h), q);
|
6283
6295
|
}
|
6284
6296
|
function G(h) {
|
6285
|
-
return h === 47 || h === 62 || te(h) ?
|
6297
|
+
return h === 47 || h === 62 || te(h) ? C(h) : n(h);
|
6286
6298
|
}
|
6287
6299
|
function K(h) {
|
6288
|
-
return h === 62 ? (e.consume(h),
|
6300
|
+
return h === 62 ? (e.consume(h), O) : n(h);
|
6289
6301
|
}
|
6290
|
-
function
|
6291
|
-
return h === null || V(h) ? w(h) : te(h) ? (e.consume(h),
|
6302
|
+
function O(h) {
|
6303
|
+
return h === null || V(h) ? w(h) : te(h) ? (e.consume(h), O) : n(h);
|
6292
6304
|
}
|
6293
6305
|
function w(h) {
|
6294
|
-
return h === 45 && i === 2 ? (e.consume(h), U) : h === 60 && i === 1 ? (e.consume(h), P) : h === 62 && i === 4 ? (e.consume(h),
|
6306
|
+
return h === 45 && i === 2 ? (e.consume(h), U) : h === 60 && i === 1 ? (e.consume(h), P) : h === 62 && i === 4 ? (e.consume(h), pe) : h === 63 && i === 3 ? (e.consume(h), g) : h === 93 && i === 5 ? (e.consume(h), ie) : V(h) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
|
6295
6307
|
Xp,
|
6296
|
-
|
6297
|
-
|
6298
|
-
)(h)) : h === null || V(h) ? (e.exit("htmlFlowData"),
|
6308
|
+
ye,
|
6309
|
+
k
|
6310
|
+
)(h)) : h === null || V(h) ? (e.exit("htmlFlowData"), k(h)) : (e.consume(h), w);
|
6299
6311
|
}
|
6300
|
-
function
|
6312
|
+
function k(h) {
|
6301
6313
|
return e.check(
|
6302
6314
|
Jp,
|
6303
6315
|
z,
|
6304
|
-
|
6316
|
+
ye
|
6305
6317
|
)(h);
|
6306
6318
|
}
|
6307
6319
|
function z(h) {
|
6308
6320
|
return e.enter("lineEnding"), e.consume(h), e.exit("lineEnding"), L;
|
6309
6321
|
}
|
6310
6322
|
function L(h) {
|
6311
|
-
return h === null || V(h) ?
|
6323
|
+
return h === null || V(h) ? k(h) : (e.enter("htmlFlowData"), w(h));
|
6312
6324
|
}
|
6313
6325
|
function U(h) {
|
6314
6326
|
return h === 45 ? (e.consume(h), g) : w(h);
|
@@ -6318,21 +6330,21 @@ function tf(e, t, n) {
|
|
6318
6330
|
}
|
6319
6331
|
function W(h) {
|
6320
6332
|
if (h === 62) {
|
6321
|
-
const
|
6322
|
-
return ro.includes(
|
6333
|
+
const ge = a.toLowerCase();
|
6334
|
+
return ro.includes(ge) ? (e.consume(h), pe) : w(h);
|
6323
6335
|
}
|
6324
|
-
return
|
6336
|
+
return We(h) && a.length < 8 ? (e.consume(h), a += String.fromCharCode(h), W) : w(h);
|
6325
6337
|
}
|
6326
|
-
function
|
6338
|
+
function ie(h) {
|
6327
6339
|
return h === 93 ? (e.consume(h), g) : w(h);
|
6328
6340
|
}
|
6329
6341
|
function g(h) {
|
6330
|
-
return h === 62 ? (e.consume(h),
|
6342
|
+
return h === 62 ? (e.consume(h), pe) : h === 45 && i === 2 ? (e.consume(h), g) : w(h);
|
6331
6343
|
}
|
6332
|
-
function
|
6333
|
-
return h === null || V(h) ? (e.exit("htmlFlowData"),
|
6344
|
+
function pe(h) {
|
6345
|
+
return h === null || V(h) ? (e.exit("htmlFlowData"), ye(h)) : (e.consume(h), pe);
|
6334
6346
|
}
|
6335
|
-
function
|
6347
|
+
function ye(h) {
|
6336
6348
|
return e.exit("htmlFlow"), t(h);
|
6337
6349
|
}
|
6338
6350
|
}
|
@@ -6364,10 +6376,10 @@ function af(e, t, n) {
|
|
6364
6376
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(g), s;
|
6365
6377
|
}
|
6366
6378
|
function s(g) {
|
6367
|
-
return g === 33 ? (e.consume(g), u) : g === 47 ? (e.consume(g), $) : g === 63 ? (e.consume(g),
|
6379
|
+
return g === 33 ? (e.consume(g), u) : g === 47 ? (e.consume(g), $) : g === 63 ? (e.consume(g), C) : We(g) ? (e.consume(g), q) : n(g);
|
6368
6380
|
}
|
6369
6381
|
function u(g) {
|
6370
|
-
return g === 45 ? (e.consume(g), c) : g === 91 ? (e.consume(g), o = 0, I) :
|
6382
|
+
return g === 45 ? (e.consume(g), c) : g === 91 ? (e.consume(g), o = 0, I) : We(g) ? (e.consume(g), E) : n(g);
|
6371
6383
|
}
|
6372
6384
|
function c(g) {
|
6373
6385
|
return g === 45 ? (e.consume(g), d) : n(g);
|
@@ -6382,13 +6394,13 @@ function af(e, t, n) {
|
|
6382
6394
|
return g === 62 ? U(g) : g === 45 ? m(g) : p(g);
|
6383
6395
|
}
|
6384
6396
|
function I(g) {
|
6385
|
-
const
|
6386
|
-
return g ===
|
6397
|
+
const pe = "CDATA[";
|
6398
|
+
return g === pe.charCodeAt(o++) ? (e.consume(g), o === pe.length ? b : I) : n(g);
|
6387
6399
|
}
|
6388
6400
|
function b(g) {
|
6389
|
-
return g === null ? n(g) : g === 93 ? (e.consume(g),
|
6401
|
+
return g === null ? n(g) : g === 93 ? (e.consume(g), A) : V(g) ? (a = b, P(g)) : (e.consume(g), b);
|
6390
6402
|
}
|
6391
|
-
function
|
6403
|
+
function A(g) {
|
6392
6404
|
return g === 93 ? (e.consume(g), x) : b(g);
|
6393
6405
|
}
|
6394
6406
|
function x(g) {
|
@@ -6397,14 +6409,14 @@ function af(e, t, n) {
|
|
6397
6409
|
function E(g) {
|
6398
6410
|
return g === null || g === 62 ? U(g) : V(g) ? (a = E, P(g)) : (e.consume(g), E);
|
6399
6411
|
}
|
6400
|
-
function
|
6401
|
-
return g === null ? n(g) : g === 63 ? (e.consume(g), Y) : V(g) ? (a =
|
6412
|
+
function C(g) {
|
6413
|
+
return g === null ? n(g) : g === 63 ? (e.consume(g), Y) : V(g) ? (a = C, P(g)) : (e.consume(g), C);
|
6402
6414
|
}
|
6403
6415
|
function Y(g) {
|
6404
|
-
return g === 62 ? U(g) :
|
6416
|
+
return g === 62 ? U(g) : C(g);
|
6405
6417
|
}
|
6406
6418
|
function $(g) {
|
6407
|
-
return
|
6419
|
+
return We(g) ? (e.consume(g), M) : n(g);
|
6408
6420
|
}
|
6409
6421
|
function M(g) {
|
6410
6422
|
return g === 45 || Oe(g) ? (e.consume(g), M) : _(g);
|
@@ -6413,28 +6425,28 @@ function af(e, t, n) {
|
|
6413
6425
|
return V(g) ? (a = _, P(g)) : te(g) ? (e.consume(g), _) : U(g);
|
6414
6426
|
}
|
6415
6427
|
function q(g) {
|
6416
|
-
return g === 45 || Oe(g) ? (e.consume(g), q) : g === 47 || g === 62 ||
|
6428
|
+
return g === 45 || Oe(g) ? (e.consume(g), q) : g === 47 || g === 62 || Ee(g) ? G(g) : n(g);
|
6417
6429
|
}
|
6418
6430
|
function G(g) {
|
6419
|
-
return g === 47 ? (e.consume(g), U) : g === 58 || g === 95 ||
|
6431
|
+
return g === 47 ? (e.consume(g), U) : g === 58 || g === 95 || We(g) ? (e.consume(g), K) : V(g) ? (a = G, P(g)) : te(g) ? (e.consume(g), G) : U(g);
|
6420
6432
|
}
|
6421
6433
|
function K(g) {
|
6422
|
-
return g === 45 || g === 46 || g === 58 || g === 95 || Oe(g) ? (e.consume(g), K) :
|
6434
|
+
return g === 45 || g === 46 || g === 58 || g === 95 || Oe(g) ? (e.consume(g), K) : O(g);
|
6423
6435
|
}
|
6424
|
-
function
|
6425
|
-
return g === 61 ? (e.consume(g), w) : V(g) ? (a =
|
6436
|
+
function O(g) {
|
6437
|
+
return g === 61 ? (e.consume(g), w) : V(g) ? (a = O, P(g)) : te(g) ? (e.consume(g), O) : G(g);
|
6426
6438
|
}
|
6427
6439
|
function w(g) {
|
6428
|
-
return g === null || g === 60 || g === 61 || g === 62 || g === 96 ? n(g) : g === 34 || g === 39 ? (e.consume(g), i = g,
|
6440
|
+
return g === null || g === 60 || g === 61 || g === 62 || g === 96 ? n(g) : g === 34 || g === 39 ? (e.consume(g), i = g, k) : V(g) ? (a = w, P(g)) : te(g) ? (e.consume(g), w) : (e.consume(g), z);
|
6429
6441
|
}
|
6430
|
-
function
|
6431
|
-
return g === i ? (e.consume(g), i = void 0, L) : g === null ? n(g) : V(g) ? (a =
|
6442
|
+
function k(g) {
|
6443
|
+
return g === i ? (e.consume(g), i = void 0, L) : g === null ? n(g) : V(g) ? (a = k, P(g)) : (e.consume(g), k);
|
6432
6444
|
}
|
6433
6445
|
function z(g) {
|
6434
|
-
return g === null || g === 34 || g === 39 || g === 60 || g === 61 || g === 96 ? n(g) : g === 47 || g === 62 ||
|
6446
|
+
return g === null || g === 34 || g === 39 || g === 60 || g === 61 || g === 96 ? n(g) : g === 47 || g === 62 || Ee(g) ? G(g) : (e.consume(g), z);
|
6435
6447
|
}
|
6436
6448
|
function L(g) {
|
6437
|
-
return g === 47 || g === 62 ||
|
6449
|
+
return g === 47 || g === 62 || Ee(g) ? G(g) : n(g);
|
6438
6450
|
}
|
6439
6451
|
function U(g) {
|
6440
6452
|
return g === 62 ? (e.consume(g), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(g);
|
@@ -6443,14 +6455,14 @@ function af(e, t, n) {
|
|
6443
6455
|
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(g), e.exit("lineEnding"), W;
|
6444
6456
|
}
|
6445
6457
|
function W(g) {
|
6446
|
-
return te(g) ?
|
6458
|
+
return te(g) ? ce(
|
6447
6459
|
e,
|
6448
|
-
|
6460
|
+
ie,
|
6449
6461
|
"linePrefix",
|
6450
6462
|
r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
|
6451
|
-
)(g) :
|
6463
|
+
)(g) : ie(g);
|
6452
6464
|
}
|
6453
|
-
function
|
6465
|
+
function ie(g) {
|
6454
6466
|
return e.enter("htmlTextData"), a(g);
|
6455
6467
|
}
|
6456
6468
|
}
|
@@ -6504,19 +6516,19 @@ function pf(e, t) {
|
|
6504
6516
|
return l = [
|
6505
6517
|
["enter", s, t],
|
6506
6518
|
["enter", u, t]
|
6507
|
-
], l =
|
6519
|
+
], l = Fe(l, e.slice(o + 1, o + r + 3)), l = Fe(l, [["enter", c, t]]), l = Fe(
|
6508
6520
|
l,
|
6509
6521
|
Br(
|
6510
6522
|
t.parser.constructs.insideSpan.null,
|
6511
6523
|
e.slice(o + r + 4, a - 3),
|
6512
6524
|
t
|
6513
6525
|
)
|
6514
|
-
), l =
|
6526
|
+
), l = Fe(l, [
|
6515
6527
|
["exit", c, t],
|
6516
6528
|
e[a - 2],
|
6517
6529
|
e[a - 1],
|
6518
6530
|
["exit", u, t]
|
6519
|
-
]), l =
|
6531
|
+
]), l = Fe(l, e.slice(a + 1)), l = Fe(l, [["exit", s, t]]), Ze(e, o, e.length, l), e;
|
6520
6532
|
}
|
6521
6533
|
function ff(e, t, n) {
|
6522
6534
|
const r = this;
|
@@ -6529,7 +6541,7 @@ function ff(e, t, n) {
|
|
6529
6541
|
return l;
|
6530
6542
|
function l(m) {
|
6531
6543
|
return o ? o._inactive ? p(m) : (a = r.parser.defined.includes(
|
6532
|
-
|
6544
|
+
xt(
|
6533
6545
|
r.sliceSerialize({
|
6534
6546
|
start: o.end,
|
6535
6547
|
end: r.now()
|
@@ -6568,7 +6580,7 @@ function df(e, t, n) {
|
|
6568
6580
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(p), e.exit("resourceMarker"), i;
|
6569
6581
|
}
|
6570
6582
|
function i(p) {
|
6571
|
-
return
|
6583
|
+
return Ee(p) ? Yt(e, o)(p) : o(p);
|
6572
6584
|
}
|
6573
6585
|
function o(p) {
|
6574
6586
|
return p === 41 ? c(p) : wa(
|
@@ -6584,7 +6596,7 @@ function df(e, t, n) {
|
|
6584
6596
|
)(p);
|
6585
6597
|
}
|
6586
6598
|
function a(p) {
|
6587
|
-
return
|
6599
|
+
return Ee(p) ? Yt(e, s)(p) : c(p);
|
6588
6600
|
}
|
6589
6601
|
function l(p) {
|
6590
6602
|
return n(p);
|
@@ -6600,7 +6612,7 @@ function df(e, t, n) {
|
|
6600
6612
|
)(p) : c(p);
|
6601
6613
|
}
|
6602
6614
|
function u(p) {
|
6603
|
-
return
|
6615
|
+
return Ee(p) ? Yt(e, c)(p) : c(p);
|
6604
6616
|
}
|
6605
6617
|
function c(p) {
|
6606
6618
|
return p === 41 ? (e.enter("resourceMarker"), e.consume(p), e.exit("resourceMarker"), e.exit("resource"), t) : n(p);
|
@@ -6622,7 +6634,7 @@ function hf(e, t, n) {
|
|
6622
6634
|
}
|
6623
6635
|
function o(l) {
|
6624
6636
|
return r.parser.defined.includes(
|
6625
|
-
|
6637
|
+
xt(
|
6626
6638
|
r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)
|
6627
6639
|
)
|
6628
6640
|
) ? t(l) : n(l);
|
@@ -6680,7 +6692,7 @@ const or = {
|
|
6680
6692
|
function xf(e, t) {
|
6681
6693
|
return n;
|
6682
6694
|
function n(r) {
|
6683
|
-
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"),
|
6695
|
+
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), ce(e, t, "linePrefix");
|
6684
6696
|
}
|
6685
6697
|
}
|
6686
6698
|
const fn = {
|
@@ -6700,10 +6712,10 @@ function wf(e, t, n) {
|
|
6700
6712
|
return u === i ? (e.enter("thematicBreakSequence"), s(u)) : r >= 3 && (u === null || V(u)) ? (e.exit("thematicBreak"), t(u)) : n(u);
|
6701
6713
|
}
|
6702
6714
|
function s(u) {
|
6703
|
-
return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"), te(u) ?
|
6715
|
+
return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"), te(u) ? ce(e, l, "whitespace")(u) : l(u));
|
6704
6716
|
}
|
6705
6717
|
}
|
6706
|
-
const
|
6718
|
+
const ke = {
|
6707
6719
|
name: "list",
|
6708
6720
|
tokenize: Df,
|
6709
6721
|
continuation: {
|
@@ -6762,7 +6774,7 @@ function If(e, t, n) {
|
|
6762
6774
|
const r = this;
|
6763
6775
|
return r.containerState._closeFlow = void 0, e.check(Dn, i, o);
|
6764
6776
|
function i(l) {
|
6765
|
-
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine,
|
6777
|
+
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, ce(
|
6766
6778
|
e,
|
6767
6779
|
t,
|
6768
6780
|
"listItemIndent",
|
@@ -6773,9 +6785,9 @@ function If(e, t, n) {
|
|
6773
6785
|
return r.containerState.furtherBlankLines || !te(l) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, a(l)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(Tf, t, a)(l));
|
6774
6786
|
}
|
6775
6787
|
function a(l) {
|
6776
|
-
return r.containerState._closeFlow = !0, r.interrupt = void 0,
|
6788
|
+
return r.containerState._closeFlow = !0, r.interrupt = void 0, ce(
|
6777
6789
|
e,
|
6778
|
-
e.attempt(
|
6790
|
+
e.attempt(ke, t, n),
|
6779
6791
|
"linePrefix",
|
6780
6792
|
r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
|
6781
6793
|
)(l);
|
@@ -6783,7 +6795,7 @@ function If(e, t, n) {
|
|
6783
6795
|
}
|
6784
6796
|
function Nf(e, t, n) {
|
6785
6797
|
const r = this;
|
6786
|
-
return
|
6798
|
+
return ce(
|
6787
6799
|
e,
|
6788
6800
|
i,
|
6789
6801
|
"listItemIndent",
|
@@ -6799,7 +6811,7 @@ function kf(e) {
|
|
6799
6811
|
}
|
6800
6812
|
function Ef(e, t, n) {
|
6801
6813
|
const r = this;
|
6802
|
-
return
|
6814
|
+
return ce(
|
6803
6815
|
e,
|
6804
6816
|
i,
|
6805
6817
|
"listItemPrefixWhitespace",
|
@@ -6850,7 +6862,7 @@ function Cf(e, t, n) {
|
|
6850
6862
|
return e.enter("setextHeadingLineSequence"), l(u);
|
6851
6863
|
}
|
6852
6864
|
function l(u) {
|
6853
|
-
return u === i ? (e.consume(u), l) : (e.exit("setextHeadingLineSequence"), te(u) ?
|
6865
|
+
return u === i ? (e.consume(u), l) : (e.exit("setextHeadingLineSequence"), te(u) ? ce(e, s, "lineSuffix")(u) : s(u));
|
6854
6866
|
}
|
6855
6867
|
function s(u) {
|
6856
6868
|
return u === null || V(u) ? (e.exit("setextHeadingLine"), t(u)) : n(u);
|
@@ -6868,7 +6880,7 @@ function Sf(e) {
|
|
6868
6880
|
e.attempt(
|
6869
6881
|
this.parser.constructs.flowInitial,
|
6870
6882
|
i,
|
6871
|
-
|
6883
|
+
ce(
|
6872
6884
|
e,
|
6873
6885
|
e.attempt(
|
6874
6886
|
this.parser.constructs.flow,
|
@@ -7005,7 +7017,7 @@ function Ff(e, t, n) {
|
|
7005
7017
|
let a = [], l = [];
|
7006
7018
|
const s = {
|
7007
7019
|
consume: E,
|
7008
|
-
enter:
|
7020
|
+
enter: C,
|
7009
7021
|
exit: Y,
|
7010
7022
|
attempt: _($),
|
7011
7023
|
check: _(M),
|
@@ -7026,120 +7038,120 @@ function Ff(e, t, n) {
|
|
7026
7038
|
};
|
7027
7039
|
let c = t.tokenize.call(u, s);
|
7028
7040
|
return t.resolveAll && o.push(t), u;
|
7029
|
-
function p(
|
7030
|
-
return a =
|
7041
|
+
function p(O) {
|
7042
|
+
return a = Fe(a, O), A(), a[a.length - 1] !== null ? [] : (q(t, 0), u.events = Br(o, u.events, u), u.events);
|
7031
7043
|
}
|
7032
|
-
function m(
|
7033
|
-
return Rf(d(
|
7044
|
+
function m(O, w) {
|
7045
|
+
return Rf(d(O), w);
|
7034
7046
|
}
|
7035
|
-
function d(
|
7036
|
-
return Pf(a,
|
7047
|
+
function d(O) {
|
7048
|
+
return Pf(a, O);
|
7037
7049
|
}
|
7038
7050
|
function I() {
|
7039
|
-
const { line:
|
7051
|
+
const { line: O, column: w, offset: k, _index: z, _bufferIndex: L } = r;
|
7040
7052
|
return {
|
7041
|
-
line:
|
7053
|
+
line: O,
|
7042
7054
|
column: w,
|
7043
|
-
offset:
|
7055
|
+
offset: k,
|
7044
7056
|
_index: z,
|
7045
7057
|
_bufferIndex: L
|
7046
7058
|
};
|
7047
7059
|
}
|
7048
|
-
function b(
|
7049
|
-
i[
|
7060
|
+
function b(O) {
|
7061
|
+
i[O.line] = O.column, K();
|
7050
7062
|
}
|
7051
|
-
function
|
7052
|
-
let
|
7063
|
+
function A() {
|
7064
|
+
let O;
|
7053
7065
|
for (; r._index < a.length; ) {
|
7054
7066
|
const w = a[r._index];
|
7055
7067
|
if (typeof w == "string")
|
7056
|
-
for (
|
7068
|
+
for (O = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === O && r._bufferIndex < w.length; )
|
7057
7069
|
x(w.charCodeAt(r._bufferIndex));
|
7058
7070
|
else
|
7059
7071
|
x(w);
|
7060
7072
|
}
|
7061
7073
|
}
|
7062
|
-
function x(
|
7063
|
-
c = c(
|
7074
|
+
function x(O) {
|
7075
|
+
c = c(O);
|
7064
7076
|
}
|
7065
|
-
function E(
|
7066
|
-
V(
|
7077
|
+
function E(O) {
|
7078
|
+
V(O) ? (r.line++, r.column = 1, r.offset += O === -3 ? 2 : 1, K()) : O !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === a[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = O;
|
7067
7079
|
}
|
7068
|
-
function
|
7069
|
-
const
|
7070
|
-
return
|
7080
|
+
function C(O, w) {
|
7081
|
+
const k = w || {};
|
7082
|
+
return k.type = O, k.start = I(), u.events.push(["enter", k, u]), l.push(k), k;
|
7071
7083
|
}
|
7072
|
-
function Y(
|
7084
|
+
function Y(O) {
|
7073
7085
|
const w = l.pop();
|
7074
7086
|
return w.end = I(), u.events.push(["exit", w, u]), w;
|
7075
7087
|
}
|
7076
|
-
function $(
|
7077
|
-
q(
|
7088
|
+
function $(O, w) {
|
7089
|
+
q(O, w.from);
|
7078
7090
|
}
|
7079
|
-
function M(
|
7091
|
+
function M(O, w) {
|
7080
7092
|
w.restore();
|
7081
7093
|
}
|
7082
|
-
function _(
|
7083
|
-
return
|
7084
|
-
function
|
7085
|
-
let P, W,
|
7086
|
-
return Array.isArray(z) ?
|
7094
|
+
function _(O, w) {
|
7095
|
+
return k;
|
7096
|
+
function k(z, L, U) {
|
7097
|
+
let P, W, ie, g;
|
7098
|
+
return Array.isArray(z) ? ye(z) : "tokenize" in z ? (
|
7087
7099
|
// @ts-expect-error Looks like a construct.
|
7088
|
-
|
7089
|
-
) :
|
7090
|
-
function
|
7091
|
-
return
|
7092
|
-
function
|
7093
|
-
const
|
7100
|
+
ye([z])
|
7101
|
+
) : pe(z);
|
7102
|
+
function pe(ne) {
|
7103
|
+
return De;
|
7104
|
+
function De(we) {
|
7105
|
+
const Ye = we !== null && ne[we], ze = we !== null && ne.null, Xe = [
|
7094
7106
|
// To do: add more extension tests.
|
7095
7107
|
/* c8 ignore next 2 */
|
7096
|
-
...Array.isArray(
|
7108
|
+
...Array.isArray(Ye) ? Ye : Ye ? [Ye] : [],
|
7097
7109
|
...Array.isArray(ze) ? ze : ze ? [ze] : []
|
7098
7110
|
];
|
7099
|
-
return
|
7111
|
+
return ye(Xe)(we);
|
7100
7112
|
}
|
7101
7113
|
}
|
7102
|
-
function
|
7114
|
+
function ye(ne) {
|
7103
7115
|
return P = ne, W = 0, ne.length === 0 ? U : h(ne[W]);
|
7104
7116
|
}
|
7105
7117
|
function h(ne) {
|
7106
|
-
return
|
7107
|
-
function
|
7108
|
-
return g = G(),
|
7118
|
+
return De;
|
7119
|
+
function De(we) {
|
7120
|
+
return g = G(), ie = ne, ne.partial || (u.currentConstruct = ne), ne.name && u.parser.constructs.disable.null.includes(ne.name) ? Te() : ne.tokenize.call(
|
7109
7121
|
// If we do have fields, create an object w/ `context` as its
|
7110
7122
|
// prototype.
|
7111
7123
|
// This allows a “live binding”, which is needed for `interrupt`.
|
7112
7124
|
w ? Object.assign(Object.create(u), w) : u,
|
7113
7125
|
s,
|
7114
|
-
|
7115
|
-
|
7116
|
-
)(
|
7126
|
+
ge,
|
7127
|
+
Te
|
7128
|
+
)(we);
|
7117
7129
|
}
|
7118
7130
|
}
|
7119
|
-
function
|
7120
|
-
return
|
7131
|
+
function ge(ne) {
|
7132
|
+
return O(ie, g), L;
|
7121
7133
|
}
|
7122
|
-
function
|
7134
|
+
function Te(ne) {
|
7123
7135
|
return g.restore(), ++W < P.length ? h(P[W]) : U;
|
7124
7136
|
}
|
7125
7137
|
}
|
7126
7138
|
}
|
7127
|
-
function q(
|
7128
|
-
|
7139
|
+
function q(O, w) {
|
7140
|
+
O.resolveAll && !o.includes(O) && o.push(O), O.resolve && Ze(
|
7129
7141
|
u.events,
|
7130
7142
|
w,
|
7131
7143
|
u.events.length - w,
|
7132
|
-
|
7133
|
-
),
|
7144
|
+
O.resolve(u.events.slice(w), u)
|
7145
|
+
), O.resolveTo && (u.events = O.resolveTo(u.events, u));
|
7134
7146
|
}
|
7135
7147
|
function G() {
|
7136
|
-
const
|
7148
|
+
const O = I(), w = u.previous, k = u.currentConstruct, z = u.events.length, L = Array.from(l);
|
7137
7149
|
return {
|
7138
7150
|
restore: U,
|
7139
7151
|
from: z
|
7140
7152
|
};
|
7141
7153
|
function U() {
|
7142
|
-
r =
|
7154
|
+
r = O, u.previous = w, u.currentConstruct = k, u.events.length = z, l = L, K();
|
7143
7155
|
}
|
7144
7156
|
}
|
7145
7157
|
function K() {
|
@@ -7203,19 +7215,19 @@ function Rf(e, t) {
|
|
7203
7215
|
return r.join("");
|
7204
7216
|
}
|
7205
7217
|
const Uf = {
|
7206
|
-
42:
|
7207
|
-
43:
|
7208
|
-
45:
|
7209
|
-
48:
|
7210
|
-
49:
|
7211
|
-
50:
|
7212
|
-
51:
|
7213
|
-
52:
|
7214
|
-
53:
|
7215
|
-
54:
|
7216
|
-
55:
|
7217
|
-
56:
|
7218
|
-
57:
|
7218
|
+
42: ke,
|
7219
|
+
43: ke,
|
7220
|
+
45: ke,
|
7221
|
+
48: ke,
|
7222
|
+
49: ke,
|
7223
|
+
50: ke,
|
7224
|
+
51: ke,
|
7225
|
+
52: ke,
|
7226
|
+
53: ke,
|
7227
|
+
54: ke,
|
7228
|
+
55: ke,
|
7229
|
+
56: ke,
|
7230
|
+
57: ke,
|
7219
7231
|
62: ya
|
7220
7232
|
}, Bf = {
|
7221
7233
|
91: Bp
|
@@ -7380,65 +7392,65 @@ function rd(e) {
|
|
7380
7392
|
transforms: [],
|
7381
7393
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
7382
7394
|
enter: {
|
7383
|
-
autolink: l(
|
7384
|
-
autolinkProtocol:
|
7385
|
-
autolinkEmail:
|
7386
|
-
atxHeading: l(
|
7387
|
-
blockQuote: l(
|
7388
|
-
characterEscape:
|
7389
|
-
characterReference:
|
7390
|
-
codeFenced: l(
|
7395
|
+
autolink: l(me),
|
7396
|
+
autolinkProtocol: O,
|
7397
|
+
autolinkEmail: O,
|
7398
|
+
atxHeading: l(yt),
|
7399
|
+
blockQuote: l(Xe),
|
7400
|
+
characterEscape: O,
|
7401
|
+
characterReference: O,
|
7402
|
+
codeFenced: l(ot),
|
7391
7403
|
codeFencedFenceInfo: s,
|
7392
7404
|
codeFencedFenceMeta: s,
|
7393
|
-
codeIndented: l(
|
7394
|
-
codeText: l(
|
7395
|
-
codeTextData:
|
7396
|
-
data:
|
7397
|
-
codeFlowValue:
|
7398
|
-
definition: l(
|
7405
|
+
codeIndented: l(ot, s),
|
7406
|
+
codeText: l(Nt, s),
|
7407
|
+
codeTextData: O,
|
7408
|
+
data: O,
|
7409
|
+
codeFlowValue: O,
|
7410
|
+
definition: l(kt),
|
7399
7411
|
definitionDestinationString: s,
|
7400
7412
|
definitionLabelString: s,
|
7401
7413
|
definitionTitleString: s,
|
7402
|
-
emphasis: l(
|
7403
|
-
hardBreakEscape: l(
|
7404
|
-
hardBreakTrailing: l(
|
7405
|
-
htmlFlow: l(
|
7406
|
-
htmlFlowData:
|
7407
|
-
htmlText: l(
|
7408
|
-
htmlTextData:
|
7409
|
-
image: l(
|
7414
|
+
emphasis: l(at),
|
7415
|
+
hardBreakEscape: l(lt),
|
7416
|
+
hardBreakTrailing: l(lt),
|
7417
|
+
htmlFlow: l(R, s),
|
7418
|
+
htmlFlowData: O,
|
7419
|
+
htmlText: l(R, s),
|
7420
|
+
htmlTextData: O,
|
7421
|
+
image: l(oe),
|
7410
7422
|
label: s,
|
7411
|
-
link: l(
|
7412
|
-
listItem: l(
|
7423
|
+
link: l(me),
|
7424
|
+
listItem: l(je),
|
7413
7425
|
listItemValue: I,
|
7414
|
-
listOrdered: l(
|
7415
|
-
listUnordered: l(
|
7416
|
-
paragraph: l(
|
7417
|
-
reference:
|
7426
|
+
listOrdered: l(he, d),
|
7427
|
+
listUnordered: l(he),
|
7428
|
+
paragraph: l(be),
|
7429
|
+
reference: Te,
|
7418
7430
|
referenceString: s,
|
7419
7431
|
resourceDestinationString: s,
|
7420
7432
|
resourceTitleString: s,
|
7421
|
-
setextHeading: l(
|
7422
|
-
strong: l(
|
7423
|
-
thematicBreak: l(
|
7433
|
+
setextHeading: l(yt),
|
7434
|
+
strong: l(st),
|
7435
|
+
thematicBreak: l(Et)
|
7424
7436
|
},
|
7425
7437
|
exit: {
|
7426
7438
|
atxHeading: c(),
|
7427
7439
|
atxHeadingSequence: _,
|
7428
7440
|
autolink: c(),
|
7429
7441
|
autolinkEmail: ze,
|
7430
|
-
autolinkProtocol:
|
7442
|
+
autolinkProtocol: Ye,
|
7431
7443
|
blockQuote: c(),
|
7432
7444
|
characterEscapeValue: w,
|
7433
|
-
characterReferenceMarkerHexadecimal:
|
7434
|
-
characterReferenceMarkerNumeric:
|
7435
|
-
characterReferenceValue:
|
7445
|
+
characterReferenceMarkerHexadecimal: De,
|
7446
|
+
characterReferenceMarkerNumeric: De,
|
7447
|
+
characterReferenceValue: we,
|
7436
7448
|
codeFenced: c(E),
|
7437
7449
|
codeFencedFence: x,
|
7438
7450
|
codeFencedFenceInfo: b,
|
7439
|
-
codeFencedFenceMeta:
|
7451
|
+
codeFencedFenceMeta: A,
|
7440
7452
|
codeFlowValue: w,
|
7441
|
-
codeIndented: c(
|
7453
|
+
codeIndented: c(C),
|
7442
7454
|
codeText: c(P),
|
7443
7455
|
codeTextData: w,
|
7444
7456
|
data: w,
|
@@ -7453,19 +7465,19 @@ function rd(e) {
|
|
7453
7465
|
htmlFlowData: w,
|
7454
7466
|
htmlText: c(U),
|
7455
7467
|
htmlTextData: w,
|
7456
|
-
image: c(
|
7457
|
-
label:
|
7468
|
+
image: c(ie),
|
7469
|
+
label: pe,
|
7458
7470
|
labelText: g,
|
7459
|
-
lineEnding:
|
7471
|
+
lineEnding: k,
|
7460
7472
|
link: c(W),
|
7461
7473
|
listItem: c(),
|
7462
7474
|
listOrdered: c(),
|
7463
7475
|
listUnordered: c(),
|
7464
7476
|
paragraph: c(),
|
7465
7477
|
referenceString: ne,
|
7466
|
-
resourceDestinationString:
|
7478
|
+
resourceDestinationString: ye,
|
7467
7479
|
resourceTitleString: h,
|
7468
|
-
resource:
|
7480
|
+
resource: ge,
|
7469
7481
|
setextHeading: c(K),
|
7470
7482
|
setextHeadingLineSequence: G,
|
7471
7483
|
setextHeadingText: q,
|
@@ -7476,13 +7488,13 @@ function rd(e) {
|
|
7476
7488
|
Ea(t, (e || {}).mdastExtensions || []);
|
7477
7489
|
const n = {};
|
7478
7490
|
return r;
|
7479
|
-
function r(
|
7480
|
-
let
|
7491
|
+
function r(N) {
|
7492
|
+
let j = {
|
7481
7493
|
type: "root",
|
7482
7494
|
children: []
|
7483
7495
|
};
|
7484
7496
|
const H = {
|
7485
|
-
stack: [
|
7497
|
+
stack: [j],
|
7486
7498
|
tokenStack: [],
|
7487
7499
|
config: t,
|
7488
7500
|
enter: u,
|
@@ -7492,92 +7504,92 @@ function rd(e) {
|
|
7492
7504
|
setData: o,
|
7493
7505
|
getData: a
|
7494
7506
|
}, ee = [];
|
7495
|
-
let
|
7496
|
-
for (; ++
|
7497
|
-
if (
|
7498
|
-
if (
|
7499
|
-
ee.push(
|
7507
|
+
let re = -1;
|
7508
|
+
for (; ++re < N.length; )
|
7509
|
+
if (N[re][1].type === "listOrdered" || N[re][1].type === "listUnordered")
|
7510
|
+
if (N[re][0] === "enter")
|
7511
|
+
ee.push(re);
|
7500
7512
|
else {
|
7501
|
-
const
|
7502
|
-
|
7513
|
+
const Ne = ee.pop();
|
7514
|
+
re = i(N, Ne, re);
|
7503
7515
|
}
|
7504
|
-
for (
|
7505
|
-
const
|
7506
|
-
ka.call(
|
7516
|
+
for (re = -1; ++re < N.length; ) {
|
7517
|
+
const Ne = t[N[re][0]];
|
7518
|
+
ka.call(Ne, N[re][1].type) && Ne[N[re][1].type].call(
|
7507
7519
|
Object.assign(
|
7508
7520
|
{
|
7509
|
-
sliceSerialize:
|
7521
|
+
sliceSerialize: N[re][2].sliceSerialize
|
7510
7522
|
},
|
7511
7523
|
H
|
7512
7524
|
),
|
7513
|
-
|
7525
|
+
N[re][1]
|
7514
7526
|
);
|
7515
7527
|
}
|
7516
7528
|
if (H.tokenStack.length > 0) {
|
7517
|
-
const
|
7518
|
-
(
|
7529
|
+
const Ne = H.tokenStack[H.tokenStack.length - 1];
|
7530
|
+
(Ne[1] || ao).call(H, void 0, Ne[0]);
|
7519
7531
|
}
|
7520
|
-
for (
|
7521
|
-
start:
|
7522
|
-
|
7532
|
+
for (j.position = {
|
7533
|
+
start: et(
|
7534
|
+
N.length > 0 ? N[0][1].start : {
|
7523
7535
|
line: 1,
|
7524
7536
|
column: 1,
|
7525
7537
|
offset: 0
|
7526
7538
|
}
|
7527
7539
|
),
|
7528
|
-
end:
|
7529
|
-
|
7540
|
+
end: et(
|
7541
|
+
N.length > 0 ? N[N.length - 2][1].end : {
|
7530
7542
|
line: 1,
|
7531
7543
|
column: 1,
|
7532
7544
|
offset: 0
|
7533
7545
|
}
|
7534
7546
|
)
|
7535
|
-
},
|
7536
|
-
|
7537
|
-
return
|
7547
|
+
}, re = -1; ++re < t.transforms.length; )
|
7548
|
+
j = t.transforms[re](j) || j;
|
7549
|
+
return j;
|
7538
7550
|
}
|
7539
|
-
function i(
|
7540
|
-
let ee =
|
7551
|
+
function i(N, j, H) {
|
7552
|
+
let ee = j - 1, re = -1, Ne = !1, He, $e, ut, Ce;
|
7541
7553
|
for (; ++ee <= H; ) {
|
7542
|
-
const
|
7543
|
-
if (
|
7544
|
-
if (
|
7554
|
+
const se = N[ee];
|
7555
|
+
if (se[1].type === "listUnordered" || se[1].type === "listOrdered" || se[1].type === "blockQuote" ? (se[0] === "enter" ? re++ : re--, Ce = void 0) : se[1].type === "lineEndingBlank" ? se[0] === "enter" && (He && !Ce && !re && !ut && (ut = ee), Ce = void 0) : se[1].type === "linePrefix" || se[1].type === "listItemValue" || se[1].type === "listItemMarker" || se[1].type === "listItemPrefix" || se[1].type === "listItemPrefixWhitespace" || (Ce = void 0), !re && se[0] === "enter" && se[1].type === "listItemPrefix" || re === -1 && se[0] === "exit" && (se[1].type === "listUnordered" || se[1].type === "listOrdered")) {
|
7556
|
+
if (He) {
|
7545
7557
|
let jt = ee;
|
7546
|
-
for (
|
7547
|
-
const
|
7548
|
-
if (
|
7549
|
-
if (
|
7558
|
+
for ($e = void 0; jt--; ) {
|
7559
|
+
const Le = N[jt];
|
7560
|
+
if (Le[1].type === "lineEnding" || Le[1].type === "lineEndingBlank") {
|
7561
|
+
if (Le[0] === "exit")
|
7550
7562
|
continue;
|
7551
|
-
|
7552
|
-
} else if (!(
|
7563
|
+
$e && (N[$e][1].type = "lineEndingBlank", Ne = !0), Le[1].type = "lineEnding", $e = jt;
|
7564
|
+
} else if (!(Le[1].type === "linePrefix" || Le[1].type === "blockQuotePrefix" || Le[1].type === "blockQuotePrefixWhitespace" || Le[1].type === "blockQuoteMarker" || Le[1].type === "listItemIndent"))
|
7553
7565
|
break;
|
7554
7566
|
}
|
7555
|
-
|
7567
|
+
ut && (!$e || ut < $e) && (He._spread = !0), He.end = Object.assign(
|
7556
7568
|
{},
|
7557
|
-
|
7558
|
-
),
|
7569
|
+
$e ? N[$e][1].start : se[1].end
|
7570
|
+
), N.splice($e || ee, 0, ["exit", He, se[2]]), ee++, H++;
|
7559
7571
|
}
|
7560
|
-
|
7572
|
+
se[1].type === "listItemPrefix" && (He = {
|
7561
7573
|
type: "listItem",
|
7562
7574
|
_spread: !1,
|
7563
|
-
start: Object.assign({},
|
7575
|
+
start: Object.assign({}, se[1].start),
|
7564
7576
|
// @ts-expect-error: we’ll add `end` in a second.
|
7565
7577
|
end: void 0
|
7566
|
-
},
|
7578
|
+
}, N.splice(ee, 0, ["enter", He, se[2]]), ee++, H++, ut = void 0, Ce = !0);
|
7567
7579
|
}
|
7568
7580
|
}
|
7569
|
-
return
|
7581
|
+
return N[j][1]._spread = Ne, H;
|
7570
7582
|
}
|
7571
|
-
function o(
|
7572
|
-
n[
|
7583
|
+
function o(N, j) {
|
7584
|
+
n[N] = j;
|
7573
7585
|
}
|
7574
|
-
function a(
|
7575
|
-
return n[
|
7586
|
+
function a(N) {
|
7587
|
+
return n[N];
|
7576
7588
|
}
|
7577
|
-
function l(
|
7589
|
+
function l(N, j) {
|
7578
7590
|
return H;
|
7579
7591
|
function H(ee) {
|
7580
|
-
u.call(this,
|
7592
|
+
u.call(this, N(ee), ee), j && j.call(this, ee);
|
7581
7593
|
}
|
7582
7594
|
}
|
7583
7595
|
function s() {
|
@@ -7586,29 +7598,29 @@ function rd(e) {
|
|
7586
7598
|
children: []
|
7587
7599
|
});
|
7588
7600
|
}
|
7589
|
-
function u(
|
7590
|
-
return this.stack[this.stack.length - 1].children.push(
|
7591
|
-
start:
|
7592
|
-
},
|
7601
|
+
function u(N, j, H) {
|
7602
|
+
return this.stack[this.stack.length - 1].children.push(N), this.stack.push(N), this.tokenStack.push([j, H]), N.position = {
|
7603
|
+
start: et(j.start)
|
7604
|
+
}, N;
|
7593
7605
|
}
|
7594
|
-
function c(
|
7595
|
-
return
|
7596
|
-
function
|
7597
|
-
|
7606
|
+
function c(N) {
|
7607
|
+
return j;
|
7608
|
+
function j(H) {
|
7609
|
+
N && N.call(this, H), p.call(this, H);
|
7598
7610
|
}
|
7599
7611
|
}
|
7600
|
-
function p(
|
7612
|
+
function p(N, j) {
|
7601
7613
|
const H = this.stack.pop(), ee = this.tokenStack.pop();
|
7602
7614
|
if (ee)
|
7603
|
-
ee[0].type !==
|
7615
|
+
ee[0].type !== N.type && (j ? j.call(this, N, ee[0]) : (ee[1] || ao).call(this, N, ee[0]));
|
7604
7616
|
else
|
7605
7617
|
throw new Error(
|
7606
|
-
"Cannot close `" +
|
7607
|
-
start:
|
7608
|
-
end:
|
7618
|
+
"Cannot close `" + N.type + "` (" + Qt({
|
7619
|
+
start: N.start,
|
7620
|
+
end: N.end
|
7609
7621
|
}) + "): it’s not open"
|
7610
7622
|
);
|
7611
|
-
return H.position.end =
|
7623
|
+
return H.position.end = et(N.end), H;
|
7612
7624
|
}
|
7613
7625
|
function m() {
|
7614
7626
|
return ep(this.stack.pop());
|
@@ -7616,177 +7628,177 @@ function rd(e) {
|
|
7616
7628
|
function d() {
|
7617
7629
|
o("expectingFirstListItemValue", !0);
|
7618
7630
|
}
|
7619
|
-
function I(
|
7631
|
+
function I(N) {
|
7620
7632
|
if (a("expectingFirstListItemValue")) {
|
7621
|
-
const
|
7622
|
-
|
7633
|
+
const j = this.stack[this.stack.length - 2];
|
7634
|
+
j.start = Number.parseInt(this.sliceSerialize(N), 10), o("expectingFirstListItemValue");
|
7623
7635
|
}
|
7624
7636
|
}
|
7625
7637
|
function b() {
|
7626
|
-
const
|
7627
|
-
|
7638
|
+
const N = this.resume(), j = this.stack[this.stack.length - 1];
|
7639
|
+
j.lang = N;
|
7628
7640
|
}
|
7629
|
-
function
|
7630
|
-
const
|
7631
|
-
|
7641
|
+
function A() {
|
7642
|
+
const N = this.resume(), j = this.stack[this.stack.length - 1];
|
7643
|
+
j.meta = N;
|
7632
7644
|
}
|
7633
7645
|
function x() {
|
7634
7646
|
a("flowCodeInside") || (this.buffer(), o("flowCodeInside", !0));
|
7635
7647
|
}
|
7636
7648
|
function E() {
|
7637
|
-
const
|
7638
|
-
|
7649
|
+
const N = this.resume(), j = this.stack[this.stack.length - 1];
|
7650
|
+
j.value = N.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), o("flowCodeInside");
|
7639
7651
|
}
|
7640
|
-
function
|
7641
|
-
const
|
7642
|
-
|
7652
|
+
function C() {
|
7653
|
+
const N = this.resume(), j = this.stack[this.stack.length - 1];
|
7654
|
+
j.value = N.replace(/(\r?\n|\r)$/g, "");
|
7643
7655
|
}
|
7644
|
-
function Y(
|
7645
|
-
const
|
7646
|
-
H.label =
|
7647
|
-
this.sliceSerialize(
|
7656
|
+
function Y(N) {
|
7657
|
+
const j = this.resume(), H = this.stack[this.stack.length - 1];
|
7658
|
+
H.label = j, H.identifier = xt(
|
7659
|
+
this.sliceSerialize(N)
|
7648
7660
|
).toLowerCase();
|
7649
7661
|
}
|
7650
7662
|
function $() {
|
7651
|
-
const
|
7652
|
-
|
7663
|
+
const N = this.resume(), j = this.stack[this.stack.length - 1];
|
7664
|
+
j.title = N;
|
7653
7665
|
}
|
7654
7666
|
function M() {
|
7655
|
-
const
|
7656
|
-
|
7667
|
+
const N = this.resume(), j = this.stack[this.stack.length - 1];
|
7668
|
+
j.url = N;
|
7657
7669
|
}
|
7658
|
-
function _(
|
7659
|
-
const
|
7660
|
-
if (!
|
7661
|
-
const H = this.sliceSerialize(
|
7662
|
-
|
7670
|
+
function _(N) {
|
7671
|
+
const j = this.stack[this.stack.length - 1];
|
7672
|
+
if (!j.depth) {
|
7673
|
+
const H = this.sliceSerialize(N).length;
|
7674
|
+
j.depth = H;
|
7663
7675
|
}
|
7664
7676
|
}
|
7665
7677
|
function q() {
|
7666
7678
|
o("setextHeadingSlurpLineEnding", !0);
|
7667
7679
|
}
|
7668
|
-
function G(
|
7669
|
-
const
|
7670
|
-
|
7680
|
+
function G(N) {
|
7681
|
+
const j = this.stack[this.stack.length - 1];
|
7682
|
+
j.depth = this.sliceSerialize(N).charCodeAt(0) === 61 ? 1 : 2;
|
7671
7683
|
}
|
7672
7684
|
function K() {
|
7673
7685
|
o("setextHeadingSlurpLineEnding");
|
7674
7686
|
}
|
7675
|
-
function
|
7676
|
-
const
|
7677
|
-
let H =
|
7678
|
-
(!H || H.type !== "text") && (H =
|
7679
|
-
start:
|
7680
|
-
},
|
7687
|
+
function O(N) {
|
7688
|
+
const j = this.stack[this.stack.length - 1];
|
7689
|
+
let H = j.children[j.children.length - 1];
|
7690
|
+
(!H || H.type !== "text") && (H = Je(), H.position = {
|
7691
|
+
start: et(N.start)
|
7692
|
+
}, j.children.push(H)), this.stack.push(H);
|
7681
7693
|
}
|
7682
|
-
function w(
|
7683
|
-
const
|
7684
|
-
|
7694
|
+
function w(N) {
|
7695
|
+
const j = this.stack.pop();
|
7696
|
+
j.value += this.sliceSerialize(N), j.position.end = et(N.end);
|
7685
7697
|
}
|
7686
|
-
function N
|
7687
|
-
const
|
7698
|
+
function k(N) {
|
7699
|
+
const j = this.stack[this.stack.length - 1];
|
7688
7700
|
if (a("atHardBreak")) {
|
7689
|
-
const H =
|
7690
|
-
H.position.end =
|
7701
|
+
const H = j.children[j.children.length - 1];
|
7702
|
+
H.position.end = et(N.end), o("atHardBreak");
|
7691
7703
|
return;
|
7692
7704
|
}
|
7693
|
-
!a("setextHeadingSlurpLineEnding") && t.canContainEols.includes(
|
7705
|
+
!a("setextHeadingSlurpLineEnding") && t.canContainEols.includes(j.type) && (O.call(this, N), w.call(this, N));
|
7694
7706
|
}
|
7695
7707
|
function z() {
|
7696
7708
|
o("atHardBreak", !0);
|
7697
7709
|
}
|
7698
7710
|
function L() {
|
7699
|
-
const
|
7700
|
-
|
7711
|
+
const N = this.resume(), j = this.stack[this.stack.length - 1];
|
7712
|
+
j.value = N;
|
7701
7713
|
}
|
7702
7714
|
function U() {
|
7703
|
-
const
|
7704
|
-
|
7715
|
+
const N = this.resume(), j = this.stack[this.stack.length - 1];
|
7716
|
+
j.value = N;
|
7705
7717
|
}
|
7706
7718
|
function P() {
|
7707
|
-
const
|
7708
|
-
|
7719
|
+
const N = this.resume(), j = this.stack[this.stack.length - 1];
|
7720
|
+
j.value = N;
|
7709
7721
|
}
|
7710
7722
|
function W() {
|
7711
|
-
const
|
7723
|
+
const N = this.stack[this.stack.length - 1];
|
7712
7724
|
if (a("inReference")) {
|
7713
|
-
const
|
7714
|
-
|
7725
|
+
const j = a("referenceType") || "shortcut";
|
7726
|
+
N.type += "Reference", N.referenceType = j, delete N.url, delete N.title;
|
7715
7727
|
} else
|
7716
|
-
delete
|
7728
|
+
delete N.identifier, delete N.label;
|
7717
7729
|
o("referenceType");
|
7718
7730
|
}
|
7719
|
-
function
|
7720
|
-
const
|
7731
|
+
function ie() {
|
7732
|
+
const N = this.stack[this.stack.length - 1];
|
7721
7733
|
if (a("inReference")) {
|
7722
|
-
const
|
7723
|
-
|
7734
|
+
const j = a("referenceType") || "shortcut";
|
7735
|
+
N.type += "Reference", N.referenceType = j, delete N.url, delete N.title;
|
7724
7736
|
} else
|
7725
|
-
delete
|
7737
|
+
delete N.identifier, delete N.label;
|
7726
7738
|
o("referenceType");
|
7727
7739
|
}
|
7728
|
-
function g(
|
7729
|
-
const
|
7730
|
-
H.label = ed(
|
7740
|
+
function g(N) {
|
7741
|
+
const j = this.sliceSerialize(N), H = this.stack[this.stack.length - 2];
|
7742
|
+
H.label = ed(j), H.identifier = xt(j).toLowerCase();
|
7731
7743
|
}
|
7732
|
-
function
|
7733
|
-
const
|
7744
|
+
function pe() {
|
7745
|
+
const N = this.stack[this.stack.length - 1], j = this.resume(), H = this.stack[this.stack.length - 1];
|
7734
7746
|
if (o("inReference", !0), H.type === "link") {
|
7735
|
-
const ee =
|
7747
|
+
const ee = N.children;
|
7736
7748
|
H.children = ee;
|
7737
7749
|
} else
|
7738
|
-
H.alt =
|
7750
|
+
H.alt = j;
|
7739
7751
|
}
|
7740
|
-
function
|
7741
|
-
const
|
7742
|
-
|
7752
|
+
function ye() {
|
7753
|
+
const N = this.resume(), j = this.stack[this.stack.length - 1];
|
7754
|
+
j.url = N;
|
7743
7755
|
}
|
7744
7756
|
function h() {
|
7745
|
-
const
|
7746
|
-
|
7757
|
+
const N = this.resume(), j = this.stack[this.stack.length - 1];
|
7758
|
+
j.title = N;
|
7747
7759
|
}
|
7748
|
-
function
|
7760
|
+
function ge() {
|
7749
7761
|
o("inReference");
|
7750
7762
|
}
|
7751
|
-
function
|
7763
|
+
function Te() {
|
7752
7764
|
o("referenceType", "collapsed");
|
7753
7765
|
}
|
7754
|
-
function ne(
|
7755
|
-
const
|
7756
|
-
H.label =
|
7757
|
-
this.sliceSerialize(
|
7766
|
+
function ne(N) {
|
7767
|
+
const j = this.resume(), H = this.stack[this.stack.length - 1];
|
7768
|
+
H.label = j, H.identifier = xt(
|
7769
|
+
this.sliceSerialize(N)
|
7758
7770
|
).toLowerCase(), o("referenceType", "full");
|
7759
7771
|
}
|
7760
|
-
function
|
7761
|
-
o("characterReferenceType",
|
7772
|
+
function De(N) {
|
7773
|
+
o("characterReferenceType", N.type);
|
7762
7774
|
}
|
7763
|
-
function
|
7764
|
-
const
|
7775
|
+
function we(N) {
|
7776
|
+
const j = this.sliceSerialize(N), H = a("characterReferenceType");
|
7765
7777
|
let ee;
|
7766
7778
|
H ? (ee = Na(
|
7767
|
-
|
7779
|
+
j,
|
7768
7780
|
H === "characterReferenceMarkerNumeric" ? 10 : 16
|
7769
|
-
), o("characterReferenceType")) : ee = Qr(
|
7770
|
-
const
|
7771
|
-
|
7781
|
+
), o("characterReferenceType")) : ee = Qr(j);
|
7782
|
+
const re = this.stack.pop();
|
7783
|
+
re.value += ee, re.position.end = et(N.end);
|
7772
7784
|
}
|
7773
|
-
function
|
7774
|
-
w.call(this,
|
7775
|
-
const
|
7776
|
-
|
7785
|
+
function Ye(N) {
|
7786
|
+
w.call(this, N);
|
7787
|
+
const j = this.stack[this.stack.length - 1];
|
7788
|
+
j.url = this.sliceSerialize(N);
|
7777
7789
|
}
|
7778
|
-
function ze(
|
7779
|
-
w.call(this,
|
7780
|
-
const
|
7781
|
-
|
7790
|
+
function ze(N) {
|
7791
|
+
w.call(this, N);
|
7792
|
+
const j = this.stack[this.stack.length - 1];
|
7793
|
+
j.url = "mailto:" + this.sliceSerialize(N);
|
7782
7794
|
}
|
7783
|
-
function
|
7795
|
+
function Xe() {
|
7784
7796
|
return {
|
7785
7797
|
type: "blockquote",
|
7786
7798
|
children: []
|
7787
7799
|
};
|
7788
7800
|
}
|
7789
|
-
function
|
7801
|
+
function ot() {
|
7790
7802
|
return {
|
7791
7803
|
type: "code",
|
7792
7804
|
lang: null,
|
@@ -7794,13 +7806,13 @@ function rd(e) {
|
|
7794
7806
|
value: ""
|
7795
7807
|
};
|
7796
7808
|
}
|
7797
|
-
function
|
7809
|
+
function Nt() {
|
7798
7810
|
return {
|
7799
7811
|
type: "inlineCode",
|
7800
7812
|
value: ""
|
7801
7813
|
};
|
7802
7814
|
}
|
7803
|
-
function
|
7815
|
+
function kt() {
|
7804
7816
|
return {
|
7805
7817
|
type: "definition",
|
7806
7818
|
identifier: "",
|
@@ -7809,31 +7821,31 @@ function rd(e) {
|
|
7809
7821
|
url: ""
|
7810
7822
|
};
|
7811
7823
|
}
|
7812
|
-
function
|
7824
|
+
function at() {
|
7813
7825
|
return {
|
7814
7826
|
type: "emphasis",
|
7815
7827
|
children: []
|
7816
7828
|
};
|
7817
7829
|
}
|
7818
|
-
function
|
7830
|
+
function yt() {
|
7819
7831
|
return {
|
7820
7832
|
type: "heading",
|
7821
7833
|
depth: void 0,
|
7822
7834
|
children: []
|
7823
7835
|
};
|
7824
7836
|
}
|
7825
|
-
function
|
7837
|
+
function lt() {
|
7826
7838
|
return {
|
7827
7839
|
type: "break"
|
7828
7840
|
};
|
7829
7841
|
}
|
7830
|
-
function
|
7842
|
+
function R() {
|
7831
7843
|
return {
|
7832
7844
|
type: "html",
|
7833
7845
|
value: ""
|
7834
7846
|
};
|
7835
7847
|
}
|
7836
|
-
function
|
7848
|
+
function oe() {
|
7837
7849
|
return {
|
7838
7850
|
type: "image",
|
7839
7851
|
title: null,
|
@@ -7841,7 +7853,7 @@ function rd(e) {
|
|
7841
7853
|
alt: null
|
7842
7854
|
};
|
7843
7855
|
}
|
7844
|
-
function
|
7856
|
+
function me() {
|
7845
7857
|
return {
|
7846
7858
|
type: "link",
|
7847
7859
|
title: null,
|
@@ -7849,48 +7861,48 @@ function rd(e) {
|
|
7849
7861
|
children: []
|
7850
7862
|
};
|
7851
7863
|
}
|
7852
|
-
function
|
7864
|
+
function he(N) {
|
7853
7865
|
return {
|
7854
7866
|
type: "list",
|
7855
|
-
ordered:
|
7867
|
+
ordered: N.type === "listOrdered",
|
7856
7868
|
start: null,
|
7857
|
-
spread:
|
7869
|
+
spread: N._spread,
|
7858
7870
|
children: []
|
7859
7871
|
};
|
7860
7872
|
}
|
7861
|
-
function
|
7873
|
+
function je(N) {
|
7862
7874
|
return {
|
7863
7875
|
type: "listItem",
|
7864
|
-
spread:
|
7876
|
+
spread: N._spread,
|
7865
7877
|
checked: null,
|
7866
7878
|
children: []
|
7867
7879
|
};
|
7868
7880
|
}
|
7869
|
-
function
|
7881
|
+
function be() {
|
7870
7882
|
return {
|
7871
7883
|
type: "paragraph",
|
7872
7884
|
children: []
|
7873
7885
|
};
|
7874
7886
|
}
|
7875
|
-
function
|
7887
|
+
function st() {
|
7876
7888
|
return {
|
7877
7889
|
type: "strong",
|
7878
7890
|
children: []
|
7879
7891
|
};
|
7880
7892
|
}
|
7881
|
-
function
|
7893
|
+
function Je() {
|
7882
7894
|
return {
|
7883
7895
|
type: "text",
|
7884
7896
|
value: ""
|
7885
7897
|
};
|
7886
7898
|
}
|
7887
|
-
function
|
7899
|
+
function Et() {
|
7888
7900
|
return {
|
7889
7901
|
type: "thematicBreak"
|
7890
7902
|
};
|
7891
7903
|
}
|
7892
7904
|
}
|
7893
|
-
function
|
7905
|
+
function et(e) {
|
7894
7906
|
return {
|
7895
7907
|
line: e.line,
|
7896
7908
|
column: e.column,
|
@@ -7998,7 +8010,7 @@ function cd(e, t) {
|
|
7998
8010
|
};
|
7999
8011
|
return e.patch(t, n), e.applyData(t, n);
|
8000
8012
|
}
|
8001
|
-
function
|
8013
|
+
function Dt(e) {
|
8002
8014
|
const t = [];
|
8003
8015
|
let n = -1, r = 0, i = 0;
|
8004
8016
|
for (; ++n < e.length; ) {
|
@@ -8018,7 +8030,7 @@ function It(e) {
|
|
8018
8030
|
return t.join("") + e.slice(r);
|
8019
8031
|
}
|
8020
8032
|
function ja(e, t) {
|
8021
|
-
const n = String(t.identifier).toUpperCase(), r =
|
8033
|
+
const n = String(t.identifier).toUpperCase(), r = Dt(n.toLowerCase()), i = e.footnoteOrder.indexOf(n);
|
8022
8034
|
let o;
|
8023
8035
|
i === -1 ? (e.footnoteOrder.push(n), e.footnoteCounts[n] = 1, o = e.footnoteOrder.length) : (e.footnoteCounts[n]++, o = i + 1);
|
8024
8036
|
const a = e.footnoteCounts[n], l = {
|
@@ -8088,13 +8100,13 @@ function hd(e, t) {
|
|
8088
8100
|
const n = e.definition(t.identifier);
|
8089
8101
|
if (!n)
|
8090
8102
|
return Ca(e, t);
|
8091
|
-
const r = { src:
|
8103
|
+
const r = { src: Dt(n.url || ""), alt: t.alt };
|
8092
8104
|
n.title !== null && n.title !== void 0 && (r.title = n.title);
|
8093
8105
|
const i = { type: "element", tagName: "img", properties: r, children: [] };
|
8094
8106
|
return e.patch(t, i), e.applyData(t, i);
|
8095
8107
|
}
|
8096
8108
|
function gd(e, t) {
|
8097
|
-
const n = { src:
|
8109
|
+
const n = { src: Dt(t.url) };
|
8098
8110
|
t.alt !== null && t.alt !== void 0 && (n.alt = t.alt), t.title !== null && t.title !== void 0 && (n.title = t.title);
|
8099
8111
|
const r = { type: "element", tagName: "img", properties: n, children: [] };
|
8100
8112
|
return e.patch(t, r), e.applyData(t, r);
|
@@ -8114,7 +8126,7 @@ function yd(e, t) {
|
|
8114
8126
|
const n = e.definition(t.identifier);
|
8115
8127
|
if (!n)
|
8116
8128
|
return Ca(e, t);
|
8117
|
-
const r = { href:
|
8129
|
+
const r = { href: Dt(n.url || "") };
|
8118
8130
|
n.title !== null && n.title !== void 0 && (r.title = n.title);
|
8119
8131
|
const i = {
|
8120
8132
|
type: "element",
|
@@ -8125,7 +8137,7 @@ function yd(e, t) {
|
|
8125
8137
|
return e.patch(t, i), e.applyData(t, i);
|
8126
8138
|
}
|
8127
8139
|
function Md(e, t) {
|
8128
|
-
const n = { href:
|
8140
|
+
const n = { href: Dt(t.url) };
|
8129
8141
|
t.title !== null && t.title !== void 0 && (n.title = t.title);
|
8130
8142
|
const r = {
|
8131
8143
|
type: "element",
|
@@ -8625,7 +8637,7 @@ function Wd(e) {
|
|
8625
8637
|
const r = e.footnoteById[e.footnoteOrder[n]];
|
8626
8638
|
if (!r)
|
8627
8639
|
continue;
|
8628
|
-
const i = e.all(r), o = String(r.identifier).toUpperCase(), a =
|
8640
|
+
const i = e.all(r), o = String(r.identifier).toUpperCase(), a = Dt(o.toLowerCase());
|
8629
8641
|
let l = 0;
|
8630
8642
|
const s = [];
|
8631
8643
|
for (; ++l <= e.footnoteCounts[o]; ) {
|
@@ -8734,7 +8746,7 @@ function _a(e, t) {
|
|
8734
8746
|
function Ir(e) {
|
8735
8747
|
return e.toLowerCase();
|
8736
8748
|
}
|
8737
|
-
class
|
8749
|
+
class Be {
|
8738
8750
|
/**
|
8739
8751
|
* @constructor
|
8740
8752
|
* @param {string} property
|
@@ -8744,32 +8756,32 @@ class Qe {
|
|
8744
8756
|
this.property = t, this.attribute = n;
|
8745
8757
|
}
|
8746
8758
|
}
|
8747
|
-
|
8748
|
-
|
8749
|
-
|
8750
|
-
|
8751
|
-
|
8752
|
-
|
8753
|
-
|
8754
|
-
|
8755
|
-
|
8756
|
-
|
8759
|
+
Be.prototype.space = null;
|
8760
|
+
Be.prototype.boolean = !1;
|
8761
|
+
Be.prototype.booleanish = !1;
|
8762
|
+
Be.prototype.overloadedBoolean = !1;
|
8763
|
+
Be.prototype.number = !1;
|
8764
|
+
Be.prototype.commaSeparated = !1;
|
8765
|
+
Be.prototype.spaceSeparated = !1;
|
8766
|
+
Be.prototype.commaOrSpaceSeparated = !1;
|
8767
|
+
Be.prototype.mustUseProperty = !1;
|
8768
|
+
Be.prototype.defined = !1;
|
8757
8769
|
let Jd = 0;
|
8758
|
-
const Z =
|
8759
|
-
function
|
8770
|
+
const Z = mt(), Me = mt(), Fa = mt(), S = mt(), ue = mt(), wt = mt(), Se = mt();
|
8771
|
+
function mt() {
|
8760
8772
|
return 2 ** ++Jd;
|
8761
8773
|
}
|
8762
8774
|
const Nr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
8763
8775
|
__proto__: null,
|
8764
8776
|
boolean: Z,
|
8765
|
-
booleanish:
|
8777
|
+
booleanish: Me,
|
8766
8778
|
commaOrSpaceSeparated: Se,
|
8767
|
-
commaSeparated:
|
8768
|
-
number:
|
8779
|
+
commaSeparated: wt,
|
8780
|
+
number: S,
|
8769
8781
|
overloadedBoolean: Fa,
|
8770
|
-
spaceSeparated:
|
8782
|
+
spaceSeparated: ue
|
8771
8783
|
}, Symbol.toStringTag, { value: "Module" })), ar = Object.keys(Nr);
|
8772
|
-
class Wr extends
|
8784
|
+
class Wr extends Be {
|
8773
8785
|
/**
|
8774
8786
|
* @constructor
|
8775
8787
|
* @param {string} property
|
@@ -8791,7 +8803,7 @@ function ho(e, t, n) {
|
|
8791
8803
|
n && (e[t] = n);
|
8792
8804
|
}
|
8793
8805
|
const eh = {}.hasOwnProperty;
|
8794
|
-
function
|
8806
|
+
function It(e) {
|
8795
8807
|
const t = {}, n = {};
|
8796
8808
|
let r;
|
8797
8809
|
for (r in e.properties)
|
@@ -8806,7 +8818,7 @@ function Nt(e) {
|
|
8806
8818
|
}
|
8807
8819
|
return new Gt(t, n, e.space);
|
8808
8820
|
}
|
8809
|
-
const Pa =
|
8821
|
+
const Pa = It({
|
8810
8822
|
space: "xlink",
|
8811
8823
|
transform(e, t) {
|
8812
8824
|
return "xlink:" + t.slice(5).toLowerCase();
|
@@ -8820,7 +8832,7 @@ const Pa = Nt({
|
|
8820
8832
|
xLinkTitle: null,
|
8821
8833
|
xLinkType: null
|
8822
8834
|
}
|
8823
|
-
}), Ra =
|
8835
|
+
}), Ra = It({
|
8824
8836
|
space: "xml",
|
8825
8837
|
transform(e, t) {
|
8826
8838
|
return "xml:" + t.slice(3).toLowerCase();
|
@@ -8833,67 +8845,67 @@ function Ua(e, t) {
|
|
8833
8845
|
function Ba(e, t) {
|
8834
8846
|
return Ua(e, t.toLowerCase());
|
8835
8847
|
}
|
8836
|
-
const Qa =
|
8848
|
+
const Qa = It({
|
8837
8849
|
space: "xmlns",
|
8838
8850
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
8839
8851
|
transform: Ba,
|
8840
8852
|
properties: { xmlns: null, xmlnsXLink: null }
|
8841
|
-
}), Ya =
|
8853
|
+
}), Ya = It({
|
8842
8854
|
transform(e, t) {
|
8843
8855
|
return t === "role" ? t : "aria-" + t.slice(4).toLowerCase();
|
8844
8856
|
},
|
8845
8857
|
properties: {
|
8846
8858
|
ariaActiveDescendant: null,
|
8847
|
-
ariaAtomic:
|
8859
|
+
ariaAtomic: Me,
|
8848
8860
|
ariaAutoComplete: null,
|
8849
|
-
ariaBusy:
|
8850
|
-
ariaChecked:
|
8851
|
-
ariaColCount:
|
8852
|
-
ariaColIndex:
|
8853
|
-
ariaColSpan:
|
8854
|
-
ariaControls:
|
8861
|
+
ariaBusy: Me,
|
8862
|
+
ariaChecked: Me,
|
8863
|
+
ariaColCount: S,
|
8864
|
+
ariaColIndex: S,
|
8865
|
+
ariaColSpan: S,
|
8866
|
+
ariaControls: ue,
|
8855
8867
|
ariaCurrent: null,
|
8856
|
-
ariaDescribedBy:
|
8868
|
+
ariaDescribedBy: ue,
|
8857
8869
|
ariaDetails: null,
|
8858
|
-
ariaDisabled:
|
8859
|
-
ariaDropEffect:
|
8870
|
+
ariaDisabled: Me,
|
8871
|
+
ariaDropEffect: ue,
|
8860
8872
|
ariaErrorMessage: null,
|
8861
|
-
ariaExpanded:
|
8862
|
-
ariaFlowTo:
|
8863
|
-
ariaGrabbed:
|
8873
|
+
ariaExpanded: Me,
|
8874
|
+
ariaFlowTo: ue,
|
8875
|
+
ariaGrabbed: Me,
|
8864
8876
|
ariaHasPopup: null,
|
8865
|
-
ariaHidden:
|
8877
|
+
ariaHidden: Me,
|
8866
8878
|
ariaInvalid: null,
|
8867
8879
|
ariaKeyShortcuts: null,
|
8868
8880
|
ariaLabel: null,
|
8869
|
-
ariaLabelledBy:
|
8870
|
-
ariaLevel:
|
8881
|
+
ariaLabelledBy: ue,
|
8882
|
+
ariaLevel: S,
|
8871
8883
|
ariaLive: null,
|
8872
|
-
ariaModal:
|
8873
|
-
ariaMultiLine:
|
8874
|
-
ariaMultiSelectable:
|
8884
|
+
ariaModal: Me,
|
8885
|
+
ariaMultiLine: Me,
|
8886
|
+
ariaMultiSelectable: Me,
|
8875
8887
|
ariaOrientation: null,
|
8876
|
-
ariaOwns:
|
8888
|
+
ariaOwns: ue,
|
8877
8889
|
ariaPlaceholder: null,
|
8878
|
-
ariaPosInSet:
|
8879
|
-
ariaPressed:
|
8880
|
-
ariaReadOnly:
|
8890
|
+
ariaPosInSet: S,
|
8891
|
+
ariaPressed: Me,
|
8892
|
+
ariaReadOnly: Me,
|
8881
8893
|
ariaRelevant: null,
|
8882
|
-
ariaRequired:
|
8883
|
-
ariaRoleDescription:
|
8884
|
-
ariaRowCount:
|
8885
|
-
ariaRowIndex:
|
8886
|
-
ariaRowSpan:
|
8887
|
-
ariaSelected:
|
8888
|
-
ariaSetSize:
|
8894
|
+
ariaRequired: Me,
|
8895
|
+
ariaRoleDescription: ue,
|
8896
|
+
ariaRowCount: S,
|
8897
|
+
ariaRowIndex: S,
|
8898
|
+
ariaRowSpan: S,
|
8899
|
+
ariaSelected: Me,
|
8900
|
+
ariaSetSize: S,
|
8889
8901
|
ariaSort: null,
|
8890
|
-
ariaValueMax:
|
8891
|
-
ariaValueMin:
|
8892
|
-
ariaValueNow:
|
8902
|
+
ariaValueMax: S,
|
8903
|
+
ariaValueMin: S,
|
8904
|
+
ariaValueNow: S,
|
8893
8905
|
ariaValueText: null,
|
8894
8906
|
role: null
|
8895
8907
|
}
|
8896
|
-
}), th =
|
8908
|
+
}), th = It({
|
8897
8909
|
space: "html",
|
8898
8910
|
attributes: {
|
8899
8911
|
acceptcharset: "accept-charset",
|
@@ -8906,9 +8918,9 @@ const Qa = Nt({
|
|
8906
8918
|
properties: {
|
8907
8919
|
// Standard Properties.
|
8908
8920
|
abbr: null,
|
8909
|
-
accept:
|
8910
|
-
acceptCharset:
|
8911
|
-
accessKey:
|
8921
|
+
accept: wt,
|
8922
|
+
acceptCharset: ue,
|
8923
|
+
accessKey: ue,
|
8912
8924
|
action: null,
|
8913
8925
|
allow: null,
|
8914
8926
|
allowFullScreen: Z,
|
@@ -8918,22 +8930,22 @@ const Qa = Nt({
|
|
8918
8930
|
as: null,
|
8919
8931
|
async: Z,
|
8920
8932
|
autoCapitalize: null,
|
8921
|
-
autoComplete:
|
8933
|
+
autoComplete: ue,
|
8922
8934
|
autoFocus: Z,
|
8923
8935
|
autoPlay: Z,
|
8924
|
-
blocking:
|
8936
|
+
blocking: ue,
|
8925
8937
|
capture: null,
|
8926
8938
|
charSet: null,
|
8927
8939
|
checked: Z,
|
8928
8940
|
cite: null,
|
8929
|
-
className:
|
8930
|
-
cols:
|
8941
|
+
className: ue,
|
8942
|
+
cols: S,
|
8931
8943
|
colSpan: null,
|
8932
8944
|
content: null,
|
8933
|
-
contentEditable:
|
8945
|
+
contentEditable: Me,
|
8934
8946
|
controls: Z,
|
8935
|
-
controlsList:
|
8936
|
-
coords:
|
8947
|
+
controlsList: ue,
|
8948
|
+
coords: S | wt,
|
8937
8949
|
crossOrigin: null,
|
8938
8950
|
data: null,
|
8939
8951
|
dateTime: null,
|
@@ -8944,7 +8956,7 @@ const Qa = Nt({
|
|
8944
8956
|
dirName: null,
|
8945
8957
|
disabled: Z,
|
8946
8958
|
download: Fa,
|
8947
|
-
draggable:
|
8959
|
+
draggable: Me,
|
8948
8960
|
encType: null,
|
8949
8961
|
enterKeyHint: null,
|
8950
8962
|
fetchPriority: null,
|
@@ -8954,14 +8966,14 @@ const Qa = Nt({
|
|
8954
8966
|
formMethod: null,
|
8955
8967
|
formNoValidate: Z,
|
8956
8968
|
formTarget: null,
|
8957
|
-
headers:
|
8958
|
-
height:
|
8969
|
+
headers: ue,
|
8970
|
+
height: S,
|
8959
8971
|
hidden: Z,
|
8960
|
-
high:
|
8972
|
+
high: S,
|
8961
8973
|
href: null,
|
8962
8974
|
hrefLang: null,
|
8963
|
-
htmlFor:
|
8964
|
-
httpEquiv:
|
8975
|
+
htmlFor: ue,
|
8976
|
+
httpEquiv: ue,
|
8965
8977
|
id: null,
|
8966
8978
|
imageSizes: null,
|
8967
8979
|
imageSrcSet: null,
|
@@ -8971,10 +8983,10 @@ const Qa = Nt({
|
|
8971
8983
|
is: null,
|
8972
8984
|
isMap: Z,
|
8973
8985
|
itemId: null,
|
8974
|
-
itemProp:
|
8975
|
-
itemRef:
|
8986
|
+
itemProp: ue,
|
8987
|
+
itemRef: ue,
|
8976
8988
|
itemScope: Z,
|
8977
|
-
itemType:
|
8989
|
+
itemType: ue,
|
8978
8990
|
kind: null,
|
8979
8991
|
label: null,
|
8980
8992
|
lang: null,
|
@@ -8982,14 +8994,14 @@ const Qa = Nt({
|
|
8982
8994
|
list: null,
|
8983
8995
|
loading: null,
|
8984
8996
|
loop: Z,
|
8985
|
-
low:
|
8997
|
+
low: S,
|
8986
8998
|
manifest: null,
|
8987
8999
|
max: null,
|
8988
|
-
maxLength:
|
9000
|
+
maxLength: S,
|
8989
9001
|
media: null,
|
8990
9002
|
method: null,
|
8991
9003
|
min: null,
|
8992
|
-
minLength:
|
9004
|
+
minLength: S,
|
8993
9005
|
multiple: Z,
|
8994
9006
|
muted: Z,
|
8995
9007
|
name: null,
|
@@ -9085,9 +9097,9 @@ const Qa = Nt({
|
|
9085
9097
|
onWaiting: null,
|
9086
9098
|
onWheel: null,
|
9087
9099
|
open: Z,
|
9088
|
-
optimum:
|
9100
|
+
optimum: S,
|
9089
9101
|
pattern: null,
|
9090
|
-
ping:
|
9102
|
+
ping: ue,
|
9091
9103
|
placeholder: null,
|
9092
9104
|
playsInline: Z,
|
9093
9105
|
popover: null,
|
@@ -9097,12 +9109,12 @@ const Qa = Nt({
|
|
9097
9109
|
preload: null,
|
9098
9110
|
readOnly: Z,
|
9099
9111
|
referrerPolicy: null,
|
9100
|
-
rel:
|
9112
|
+
rel: ue,
|
9101
9113
|
required: Z,
|
9102
9114
|
reversed: Z,
|
9103
|
-
rows:
|
9104
|
-
rowSpan:
|
9105
|
-
sandbox:
|
9115
|
+
rows: S,
|
9116
|
+
rowSpan: S,
|
9117
|
+
sandbox: ue,
|
9106
9118
|
scope: null,
|
9107
9119
|
scoped: Z,
|
9108
9120
|
seamless: Z,
|
@@ -9110,27 +9122,27 @@ const Qa = Nt({
|
|
9110
9122
|
shadowRootDelegatesFocus: Z,
|
9111
9123
|
shadowRootMode: null,
|
9112
9124
|
shape: null,
|
9113
|
-
size:
|
9125
|
+
size: S,
|
9114
9126
|
sizes: null,
|
9115
9127
|
slot: null,
|
9116
|
-
span:
|
9117
|
-
spellCheck:
|
9128
|
+
span: S,
|
9129
|
+
spellCheck: Me,
|
9118
9130
|
src: null,
|
9119
9131
|
srcDoc: null,
|
9120
9132
|
srcLang: null,
|
9121
9133
|
srcSet: null,
|
9122
|
-
start:
|
9134
|
+
start: S,
|
9123
9135
|
step: null,
|
9124
9136
|
style: null,
|
9125
|
-
tabIndex:
|
9137
|
+
tabIndex: S,
|
9126
9138
|
target: null,
|
9127
9139
|
title: null,
|
9128
9140
|
translate: null,
|
9129
9141
|
type: null,
|
9130
9142
|
typeMustMatch: Z,
|
9131
9143
|
useMap: null,
|
9132
|
-
value:
|
9133
|
-
width:
|
9144
|
+
value: Me,
|
9145
|
+
width: S,
|
9134
9146
|
wrap: null,
|
9135
9147
|
// Legacy.
|
9136
9148
|
// See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis
|
@@ -9138,7 +9150,7 @@ const Qa = Nt({
|
|
9138
9150
|
// Several. Use CSS `text-align` instead,
|
9139
9151
|
aLink: null,
|
9140
9152
|
// `<body>`. Use CSS `a:active {color}` instead
|
9141
|
-
archive:
|
9153
|
+
archive: ue,
|
9142
9154
|
// `<object>`. List of URIs to archives
|
9143
9155
|
axis: null,
|
9144
9156
|
// `<td>` and `<th>`. Use `scope` on `<th>`
|
@@ -9146,11 +9158,11 @@ const Qa = Nt({
|
|
9146
9158
|
// `<body>`. Use CSS `background-image` instead
|
9147
9159
|
bgColor: null,
|
9148
9160
|
// `<body>` and table elements. Use CSS `background-color` instead
|
9149
|
-
border:
|
9161
|
+
border: S,
|
9150
9162
|
// `<table>`. Use CSS `border-width` instead,
|
9151
9163
|
borderColor: null,
|
9152
9164
|
// `<table>`. Use CSS `border-color` instead,
|
9153
|
-
bottomMargin:
|
9165
|
+
bottomMargin: S,
|
9154
9166
|
// `<body>`
|
9155
9167
|
cellPadding: null,
|
9156
9168
|
// `<table>`
|
@@ -9184,9 +9196,9 @@ const Qa = Nt({
|
|
9184
9196
|
// `<table>`
|
9185
9197
|
frameBorder: null,
|
9186
9198
|
// `<iframe>`. Use CSS `border` instead
|
9187
|
-
hSpace:
|
9199
|
+
hSpace: S,
|
9188
9200
|
// `<img>` and `<object>`
|
9189
|
-
leftMargin:
|
9201
|
+
leftMargin: S,
|
9190
9202
|
// `<body>`
|
9191
9203
|
link: null,
|
9192
9204
|
// `<body>`. Use CSS `a:link {color: *}` instead
|
@@ -9194,9 +9206,9 @@ const Qa = Nt({
|
|
9194
9206
|
// `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
|
9195
9207
|
lowSrc: null,
|
9196
9208
|
// `<img>`. Use a `<picture>`
|
9197
|
-
marginHeight:
|
9209
|
+
marginHeight: S,
|
9198
9210
|
// `<body>`
|
9199
|
-
marginWidth:
|
9211
|
+
marginWidth: S,
|
9200
9212
|
// `<body>`
|
9201
9213
|
noResize: Z,
|
9202
9214
|
// `<frame>`
|
@@ -9214,13 +9226,13 @@ const Qa = Nt({
|
|
9214
9226
|
// `<isindex>`
|
9215
9227
|
rev: null,
|
9216
9228
|
// `<link>`
|
9217
|
-
rightMargin:
|
9229
|
+
rightMargin: S,
|
9218
9230
|
// `<body>`
|
9219
9231
|
rules: null,
|
9220
9232
|
// `<table>`
|
9221
9233
|
scheme: null,
|
9222
9234
|
// `<meta>`
|
9223
|
-
scrolling:
|
9235
|
+
scrolling: Me,
|
9224
9236
|
// `<frame>`. Use overflow in the child context
|
9225
9237
|
standby: null,
|
9226
9238
|
// `<object>`
|
@@ -9228,7 +9240,7 @@ const Qa = Nt({
|
|
9228
9240
|
// `<table>`
|
9229
9241
|
text: null,
|
9230
9242
|
// `<body>`. Use CSS `color` instead
|
9231
|
-
topMargin:
|
9243
|
+
topMargin: S,
|
9232
9244
|
// `<body>`
|
9233
9245
|
valueType: null,
|
9234
9246
|
// `<param>`
|
@@ -9238,7 +9250,7 @@ const Qa = Nt({
|
|
9238
9250
|
// Several. Use CSS `vertical-align` instead
|
9239
9251
|
vLink: null,
|
9240
9252
|
// `<body>`. Use CSS `a:visited {color}` instead
|
9241
|
-
vSpace:
|
9253
|
+
vSpace: S,
|
9242
9254
|
// `<img>` and `<object>`
|
9243
9255
|
// Non-standard Properties.
|
9244
9256
|
allowTransparency: null,
|
@@ -9248,11 +9260,11 @@ const Qa = Nt({
|
|
9248
9260
|
disableRemotePlayback: Z,
|
9249
9261
|
prefix: null,
|
9250
9262
|
property: null,
|
9251
|
-
results:
|
9263
|
+
results: S,
|
9252
9264
|
security: null,
|
9253
9265
|
unselectable: null
|
9254
9266
|
}
|
9255
|
-
}), nh =
|
9267
|
+
}), nh = It({
|
9256
9268
|
space: "svg",
|
9257
9269
|
attributes: {
|
9258
9270
|
accentHeight: "accent-height",
|
@@ -9432,28 +9444,28 @@ const Qa = Nt({
|
|
9432
9444
|
transform: Ua,
|
9433
9445
|
properties: {
|
9434
9446
|
about: Se,
|
9435
|
-
accentHeight:
|
9447
|
+
accentHeight: S,
|
9436
9448
|
accumulate: null,
|
9437
9449
|
additive: null,
|
9438
9450
|
alignmentBaseline: null,
|
9439
|
-
alphabetic:
|
9440
|
-
amplitude:
|
9451
|
+
alphabetic: S,
|
9452
|
+
amplitude: S,
|
9441
9453
|
arabicForm: null,
|
9442
|
-
ascent:
|
9454
|
+
ascent: S,
|
9443
9455
|
attributeName: null,
|
9444
9456
|
attributeType: null,
|
9445
|
-
azimuth:
|
9457
|
+
azimuth: S,
|
9446
9458
|
bandwidth: null,
|
9447
9459
|
baselineShift: null,
|
9448
9460
|
baseFrequency: null,
|
9449
9461
|
baseProfile: null,
|
9450
9462
|
bbox: null,
|
9451
9463
|
begin: null,
|
9452
|
-
bias:
|
9464
|
+
bias: S,
|
9453
9465
|
by: null,
|
9454
9466
|
calcMode: null,
|
9455
|
-
capHeight:
|
9456
|
-
className:
|
9467
|
+
capHeight: S,
|
9468
|
+
className: ue,
|
9457
9469
|
clip: null,
|
9458
9470
|
clipPath: null,
|
9459
9471
|
clipPathUnits: null,
|
@@ -9473,26 +9485,26 @@ const Qa = Nt({
|
|
9473
9485
|
d: null,
|
9474
9486
|
dataType: null,
|
9475
9487
|
defaultAction: null,
|
9476
|
-
descent:
|
9477
|
-
diffuseConstant:
|
9488
|
+
descent: S,
|
9489
|
+
diffuseConstant: S,
|
9478
9490
|
direction: null,
|
9479
9491
|
display: null,
|
9480
9492
|
dur: null,
|
9481
|
-
divisor:
|
9493
|
+
divisor: S,
|
9482
9494
|
dominantBaseline: null,
|
9483
9495
|
download: Z,
|
9484
9496
|
dx: null,
|
9485
9497
|
dy: null,
|
9486
9498
|
edgeMode: null,
|
9487
9499
|
editable: null,
|
9488
|
-
elevation:
|
9500
|
+
elevation: S,
|
9489
9501
|
enableBackground: null,
|
9490
9502
|
end: null,
|
9491
9503
|
event: null,
|
9492
|
-
exponent:
|
9504
|
+
exponent: S,
|
9493
9505
|
externalResourcesRequired: null,
|
9494
9506
|
fill: null,
|
9495
|
-
fillOpacity:
|
9507
|
+
fillOpacity: S,
|
9496
9508
|
fillRule: null,
|
9497
9509
|
filter: null,
|
9498
9510
|
filterRes: null,
|
@@ -9513,36 +9525,36 @@ const Qa = Nt({
|
|
9513
9525
|
from: null,
|
9514
9526
|
fx: null,
|
9515
9527
|
fy: null,
|
9516
|
-
g1:
|
9517
|
-
g2:
|
9518
|
-
glyphName:
|
9528
|
+
g1: wt,
|
9529
|
+
g2: wt,
|
9530
|
+
glyphName: wt,
|
9519
9531
|
glyphOrientationHorizontal: null,
|
9520
9532
|
glyphOrientationVertical: null,
|
9521
9533
|
glyphRef: null,
|
9522
9534
|
gradientTransform: null,
|
9523
9535
|
gradientUnits: null,
|
9524
9536
|
handler: null,
|
9525
|
-
hanging:
|
9537
|
+
hanging: S,
|
9526
9538
|
hatchContentUnits: null,
|
9527
9539
|
hatchUnits: null,
|
9528
9540
|
height: null,
|
9529
9541
|
href: null,
|
9530
9542
|
hrefLang: null,
|
9531
|
-
horizAdvX:
|
9532
|
-
horizOriginX:
|
9533
|
-
horizOriginY:
|
9543
|
+
horizAdvX: S,
|
9544
|
+
horizOriginX: S,
|
9545
|
+
horizOriginY: S,
|
9534
9546
|
id: null,
|
9535
|
-
ideographic:
|
9547
|
+
ideographic: S,
|
9536
9548
|
imageRendering: null,
|
9537
9549
|
initialVisibility: null,
|
9538
9550
|
in: null,
|
9539
9551
|
in2: null,
|
9540
|
-
intercept:
|
9541
|
-
k:
|
9542
|
-
k1:
|
9543
|
-
k2:
|
9544
|
-
k3:
|
9545
|
-
k4:
|
9552
|
+
intercept: S,
|
9553
|
+
k: S,
|
9554
|
+
k1: S,
|
9555
|
+
k2: S,
|
9556
|
+
k3: S,
|
9557
|
+
k4: S,
|
9546
9558
|
kernelMatrix: Se,
|
9547
9559
|
kernelUnitLength: null,
|
9548
9560
|
keyPoints: null,
|
@@ -9556,7 +9568,7 @@ const Qa = Nt({
|
|
9556
9568
|
lengthAdjust: null,
|
9557
9569
|
letterSpacing: null,
|
9558
9570
|
lightingColor: null,
|
9559
|
-
limitingConeAngle:
|
9571
|
+
limitingConeAngle: S,
|
9560
9572
|
local: null,
|
9561
9573
|
markerEnd: null,
|
9562
9574
|
markerMid: null,
|
@@ -9572,7 +9584,7 @@ const Qa = Nt({
|
|
9572
9584
|
media: null,
|
9573
9585
|
mediaCharacterEncoding: null,
|
9574
9586
|
mediaContentEncodings: null,
|
9575
|
-
mediaSize:
|
9587
|
+
mediaSize: S,
|
9576
9588
|
mediaTime: null,
|
9577
9589
|
method: null,
|
9578
9590
|
min: null,
|
@@ -9678,24 +9690,24 @@ const Qa = Nt({
|
|
9678
9690
|
origin: null,
|
9679
9691
|
overflow: null,
|
9680
9692
|
overlay: null,
|
9681
|
-
overlinePosition:
|
9682
|
-
overlineThickness:
|
9693
|
+
overlinePosition: S,
|
9694
|
+
overlineThickness: S,
|
9683
9695
|
paintOrder: null,
|
9684
9696
|
panose1: null,
|
9685
9697
|
path: null,
|
9686
|
-
pathLength:
|
9698
|
+
pathLength: S,
|
9687
9699
|
patternContentUnits: null,
|
9688
9700
|
patternTransform: null,
|
9689
9701
|
patternUnits: null,
|
9690
9702
|
phase: null,
|
9691
|
-
ping:
|
9703
|
+
ping: ue,
|
9692
9704
|
pitch: null,
|
9693
9705
|
playbackOrder: null,
|
9694
9706
|
pointerEvents: null,
|
9695
9707
|
points: null,
|
9696
|
-
pointsAtX:
|
9697
|
-
pointsAtY:
|
9698
|
-
pointsAtZ:
|
9708
|
+
pointsAtX: S,
|
9709
|
+
pointsAtY: S,
|
9710
|
+
pointsAtZ: S,
|
9699
9711
|
preserveAlpha: null,
|
9700
9712
|
preserveAspectRatio: null,
|
9701
9713
|
primitiveUnits: null,
|
@@ -9727,8 +9739,8 @@ const Qa = Nt({
|
|
9727
9739
|
side: null,
|
9728
9740
|
slope: null,
|
9729
9741
|
snapshotTime: null,
|
9730
|
-
specularConstant:
|
9731
|
-
specularExponent:
|
9742
|
+
specularConstant: S,
|
9743
|
+
specularExponent: S,
|
9732
9744
|
spreadMethod: null,
|
9733
9745
|
spacing: null,
|
9734
9746
|
startOffset: null,
|
@@ -9738,30 +9750,30 @@ const Qa = Nt({
|
|
9738
9750
|
stitchTiles: null,
|
9739
9751
|
stopColor: null,
|
9740
9752
|
stopOpacity: null,
|
9741
|
-
strikethroughPosition:
|
9742
|
-
strikethroughThickness:
|
9753
|
+
strikethroughPosition: S,
|
9754
|
+
strikethroughThickness: S,
|
9743
9755
|
string: null,
|
9744
9756
|
stroke: null,
|
9745
9757
|
strokeDashArray: Se,
|
9746
9758
|
strokeDashOffset: null,
|
9747
9759
|
strokeLineCap: null,
|
9748
9760
|
strokeLineJoin: null,
|
9749
|
-
strokeMiterLimit:
|
9750
|
-
strokeOpacity:
|
9761
|
+
strokeMiterLimit: S,
|
9762
|
+
strokeOpacity: S,
|
9751
9763
|
strokeWidth: null,
|
9752
9764
|
style: null,
|
9753
|
-
surfaceScale:
|
9765
|
+
surfaceScale: S,
|
9754
9766
|
syncBehavior: null,
|
9755
9767
|
syncBehaviorDefault: null,
|
9756
9768
|
syncMaster: null,
|
9757
9769
|
syncTolerance: null,
|
9758
9770
|
syncToleranceDefault: null,
|
9759
9771
|
systemLanguage: Se,
|
9760
|
-
tabIndex:
|
9772
|
+
tabIndex: S,
|
9761
9773
|
tableValues: null,
|
9762
9774
|
target: null,
|
9763
|
-
targetX:
|
9764
|
-
targetY:
|
9775
|
+
targetX: S,
|
9776
|
+
targetY: S,
|
9765
9777
|
textAnchor: null,
|
9766
9778
|
textDecoration: null,
|
9767
9779
|
textRendering: null,
|
@@ -9776,22 +9788,22 @@ const Qa = Nt({
|
|
9776
9788
|
transformOrigin: null,
|
9777
9789
|
u1: null,
|
9778
9790
|
u2: null,
|
9779
|
-
underlinePosition:
|
9780
|
-
underlineThickness:
|
9791
|
+
underlinePosition: S,
|
9792
|
+
underlineThickness: S,
|
9781
9793
|
unicode: null,
|
9782
9794
|
unicodeBidi: null,
|
9783
9795
|
unicodeRange: null,
|
9784
|
-
unitsPerEm:
|
9796
|
+
unitsPerEm: S,
|
9785
9797
|
values: null,
|
9786
|
-
vAlphabetic:
|
9787
|
-
vMathematical:
|
9798
|
+
vAlphabetic: S,
|
9799
|
+
vMathematical: S,
|
9788
9800
|
vectorEffect: null,
|
9789
|
-
vHanging:
|
9790
|
-
vIdeographic:
|
9801
|
+
vHanging: S,
|
9802
|
+
vIdeographic: S,
|
9791
9803
|
version: null,
|
9792
|
-
vertAdvY:
|
9793
|
-
vertOriginX:
|
9794
|
-
vertOriginY:
|
9804
|
+
vertAdvY: S,
|
9805
|
+
vertOriginX: S,
|
9806
|
+
vertOriginY: S,
|
9795
9807
|
viewBox: null,
|
9796
9808
|
viewTarget: null,
|
9797
9809
|
visibility: null,
|
@@ -9803,7 +9815,7 @@ const Qa = Nt({
|
|
9803
9815
|
x1: null,
|
9804
9816
|
x2: null,
|
9805
9817
|
xChannelSelector: null,
|
9806
|
-
xHeight:
|
9818
|
+
xHeight: S,
|
9807
9819
|
y: null,
|
9808
9820
|
y1: null,
|
9809
9821
|
y2: null,
|
@@ -9814,7 +9826,7 @@ const Qa = Nt({
|
|
9814
9826
|
}), rh = /^data[-\w.:]+$/i, go = /-[a-z]/g, ih = /[A-Z]/g;
|
9815
9827
|
function oh(e, t) {
|
9816
9828
|
const n = Ir(t);
|
9817
|
-
let r = t, i =
|
9829
|
+
let r = t, i = Be;
|
9818
9830
|
if (n in e.normal)
|
9819
9831
|
return e.property[e.normal[n]];
|
9820
9832
|
if (n.length > 4 && n.slice(0, 4) === "data" && rh.test(t)) {
|
@@ -9887,7 +9899,7 @@ var Ha = { exports: {} }, ae = {};
|
|
9887
9899
|
*/
|
9888
9900
|
var Gr = Symbol.for("react.element"), Zr = Symbol.for("react.portal"), Nn = Symbol.for("react.fragment"), kn = Symbol.for("react.strict_mode"), En = Symbol.for("react.profiler"), jn = Symbol.for("react.provider"), Cn = Symbol.for("react.context"), ph = Symbol.for("react.server_context"), An = Symbol.for("react.forward_ref"), Sn = Symbol.for("react.suspense"), On = Symbol.for("react.suspense_list"), zn = Symbol.for("react.memo"), Ln = Symbol.for("react.lazy"), fh = Symbol.for("react.offscreen"), $a;
|
9889
9901
|
$a = Symbol.for("react.module.reference");
|
9890
|
-
function
|
9902
|
+
function Qe(e) {
|
9891
9903
|
if (typeof e == "object" && e !== null) {
|
9892
9904
|
var t = e.$$typeof;
|
9893
9905
|
switch (t) {
|
@@ -9936,48 +9948,48 @@ ae.isConcurrentMode = function() {
|
|
9936
9948
|
return !1;
|
9937
9949
|
};
|
9938
9950
|
ae.isContextConsumer = function(e) {
|
9939
|
-
return
|
9951
|
+
return Qe(e) === Cn;
|
9940
9952
|
};
|
9941
9953
|
ae.isContextProvider = function(e) {
|
9942
|
-
return
|
9954
|
+
return Qe(e) === jn;
|
9943
9955
|
};
|
9944
9956
|
ae.isElement = function(e) {
|
9945
9957
|
return typeof e == "object" && e !== null && e.$$typeof === Gr;
|
9946
9958
|
};
|
9947
9959
|
ae.isForwardRef = function(e) {
|
9948
|
-
return
|
9960
|
+
return Qe(e) === An;
|
9949
9961
|
};
|
9950
9962
|
ae.isFragment = function(e) {
|
9951
|
-
return
|
9963
|
+
return Qe(e) === Nn;
|
9952
9964
|
};
|
9953
9965
|
ae.isLazy = function(e) {
|
9954
|
-
return
|
9966
|
+
return Qe(e) === Ln;
|
9955
9967
|
};
|
9956
9968
|
ae.isMemo = function(e) {
|
9957
|
-
return
|
9969
|
+
return Qe(e) === zn;
|
9958
9970
|
};
|
9959
9971
|
ae.isPortal = function(e) {
|
9960
|
-
return
|
9972
|
+
return Qe(e) === Zr;
|
9961
9973
|
};
|
9962
9974
|
ae.isProfiler = function(e) {
|
9963
|
-
return
|
9975
|
+
return Qe(e) === En;
|
9964
9976
|
};
|
9965
9977
|
ae.isStrictMode = function(e) {
|
9966
|
-
return
|
9978
|
+
return Qe(e) === kn;
|
9967
9979
|
};
|
9968
9980
|
ae.isSuspense = function(e) {
|
9969
|
-
return
|
9981
|
+
return Qe(e) === Sn;
|
9970
9982
|
};
|
9971
9983
|
ae.isSuspenseList = function(e) {
|
9972
|
-
return
|
9984
|
+
return Qe(e) === On;
|
9973
9985
|
};
|
9974
9986
|
ae.isValidElementType = function(e) {
|
9975
9987
|
return typeof e == "string" || typeof e == "function" || e === Nn || e === En || e === kn || e === Sn || e === On || e === fh || typeof e == "object" && e !== null && (e.$$typeof === Ln || e.$$typeof === zn || e.$$typeof === jn || e.$$typeof === Cn || e.$$typeof === An || e.$$typeof === $a || e.getModuleId !== void 0);
|
9976
9988
|
};
|
9977
|
-
ae.typeOf =
|
9989
|
+
ae.typeOf = Qe;
|
9978
9990
|
Ha.exports = ae;
|
9979
9991
|
var dh = Ha.exports;
|
9980
|
-
const hh = /* @__PURE__ */
|
9992
|
+
const hh = /* @__PURE__ */ nt(dh);
|
9981
9993
|
function gh(e) {
|
9982
9994
|
const t = (
|
9983
9995
|
// @ts-expect-error looks like a node.
|
@@ -9998,7 +10010,7 @@ function yh(e, t) {
|
|
9998
10010
|
).trim();
|
9999
10011
|
}
|
10000
10012
|
var Kr = { exports: {} }, yo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Mh = /\n/g, bh = /^\s*/, xh = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, wh = /^:\s*/, vh = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, Th = /^[;\s]*/, Dh = /^\s+|\s+$/g, Ih = `
|
10001
|
-
`, Mo = "/", bo = "*",
|
10013
|
+
`, Mo = "/", bo = "*", dt = "", Nh = "comment", kh = "declaration", Eh = function(e, t) {
|
10002
10014
|
if (typeof e != "string")
|
10003
10015
|
throw new TypeError("First argument must be a string");
|
10004
10016
|
if (!e)
|
@@ -10008,8 +10020,8 @@ var Kr = { exports: {} }, yo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Mh = /\n/g, bh
|
|
10008
10020
|
function i(I) {
|
10009
10021
|
var b = I.match(Mh);
|
10010
10022
|
b && (n += b.length);
|
10011
|
-
var
|
10012
|
-
r = ~
|
10023
|
+
var A = I.lastIndexOf(Ih);
|
10024
|
+
r = ~A ? I.length - A : r + I.length;
|
10013
10025
|
}
|
10014
10026
|
function o() {
|
10015
10027
|
var I = { line: n, column: r };
|
@@ -10031,8 +10043,8 @@ var Kr = { exports: {} }, yo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Mh = /\n/g, bh
|
|
10031
10043
|
function s(I) {
|
10032
10044
|
var b = I.exec(e);
|
10033
10045
|
if (b) {
|
10034
|
-
var
|
10035
|
-
return i(
|
10046
|
+
var A = b[0];
|
10047
|
+
return i(A), e = e.slice(A.length), b;
|
10036
10048
|
}
|
10037
10049
|
}
|
10038
10050
|
function u() {
|
@@ -10047,14 +10059,14 @@ var Kr = { exports: {} }, yo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Mh = /\n/g, bh
|
|
10047
10059
|
function p() {
|
10048
10060
|
var I = o();
|
10049
10061
|
if (!(Mo != e.charAt(0) || bo != e.charAt(1))) {
|
10050
|
-
for (var b = 2;
|
10062
|
+
for (var b = 2; dt != e.charAt(b) && (bo != e.charAt(b) || Mo != e.charAt(b + 1)); )
|
10051
10063
|
++b;
|
10052
|
-
if (b += 2,
|
10064
|
+
if (b += 2, dt === e.charAt(b - 1))
|
10053
10065
|
return l("End of comment missing");
|
10054
|
-
var
|
10055
|
-
return r += 2, i(
|
10066
|
+
var A = e.slice(2, b - 2);
|
10067
|
+
return r += 2, i(A), e = e.slice(b), r += 2, I({
|
10056
10068
|
type: Nh,
|
10057
|
-
comment:
|
10069
|
+
comment: A
|
10058
10070
|
});
|
10059
10071
|
}
|
10060
10072
|
}
|
@@ -10063,10 +10075,10 @@ var Kr = { exports: {} }, yo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Mh = /\n/g, bh
|
|
10063
10075
|
if (b) {
|
10064
10076
|
if (p(), !s(wh))
|
10065
10077
|
return l("property missing ':'");
|
10066
|
-
var
|
10078
|
+
var A = s(vh), x = I({
|
10067
10079
|
type: kh,
|
10068
|
-
property: xo(b[0].replace(yo,
|
10069
|
-
value:
|
10080
|
+
property: xo(b[0].replace(yo, dt)),
|
10081
|
+
value: A ? xo(A[0].replace(yo, dt)) : dt
|
10070
10082
|
});
|
10071
10083
|
return s(Th), x;
|
10072
10084
|
}
|
@@ -10081,7 +10093,7 @@ var Kr = { exports: {} }, yo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Mh = /\n/g, bh
|
|
10081
10093
|
return u(), d();
|
10082
10094
|
};
|
10083
10095
|
function xo(e) {
|
10084
|
-
return e ? e.replace(Dh,
|
10096
|
+
return e ? e.replace(Dh, dt) : dt;
|
10085
10097
|
}
|
10086
10098
|
var jh = Eh;
|
10087
10099
|
function qa(e, t) {
|
@@ -10095,7 +10107,7 @@ function qa(e, t) {
|
|
10095
10107
|
Kr.exports = qa;
|
10096
10108
|
Kr.exports.default = qa;
|
10097
10109
|
var Ch = Kr.exports;
|
10098
|
-
const Ah = /* @__PURE__ */
|
10110
|
+
const Ah = /* @__PURE__ */ nt(Ch), kr = {}.hasOwnProperty, Sh = /* @__PURE__ */ new Set(["table", "thead", "tbody", "tfoot", "tr"]);
|
10099
10111
|
function Va(e, t) {
|
10100
10112
|
const n = [];
|
10101
10113
|
let r = -1, i;
|
@@ -10115,7 +10127,7 @@ function Oh(e, t, n, r) {
|
|
10115
10127
|
const m = t.position || {
|
10116
10128
|
start: { line: null, column: null, offset: null },
|
10117
10129
|
end: { line: null, column: null, offset: null }
|
10118
|
-
}, d = i.components && kr.call(i.components, l) ? i.components[l] : l, I = typeof d == "string" || d ===
|
10130
|
+
}, d = i.components && kr.call(i.components, l) ? i.components[l] : l, I = typeof d == "string" || d === ve.Fragment;
|
10119
10131
|
if (!hh.isValidElementType(d))
|
10120
10132
|
throw new TypeError(
|
10121
10133
|
`Component for name \`${l}\` not defined or is not renderable`
|
@@ -10136,7 +10148,7 @@ function Oh(e, t, n, r) {
|
|
10136
10148
|
const b = zh(t);
|
10137
10149
|
s.checked = b && b.properties ? !!b.properties.checked : null, s.index = lr(r, t), s.ordered = r.tagName === "ol";
|
10138
10150
|
}
|
10139
|
-
return !I && (l === "ol" || l === "ul") && (s.ordered = l === "ol", s.depth = e.listDepth), (l === "td" || l === "th") && (s.align && (s.style || (s.style = {}), s.style.textAlign = s.align, delete s.align), I || (s.isHeader = l === "th")), !I && l === "tr" && r.type === "element" && (s.isHeader = r.tagName === "thead"), i.sourcePos && (s["data-sourcepos"] = Ph(m)), !I && i.rawSourcePos && (s.sourcePosition = t.position), !I && i.includeElementIndex && (s.index = lr(r, t), s.siblingCount = lr(r)), I || (s.node = t), p.length > 0 ?
|
10151
|
+
return !I && (l === "ol" || l === "ul") && (s.ordered = l === "ol", s.depth = e.listDepth), (l === "td" || l === "th") && (s.align && (s.style || (s.style = {}), s.style.textAlign = s.align, delete s.align), I || (s.isHeader = l === "th")), !I && l === "tr" && r.type === "element" && (s.isHeader = r.tagName === "thead"), i.sourcePos && (s["data-sourcepos"] = Ph(m)), !I && i.rawSourcePos && (s.sourcePosition = t.position), !I && i.includeElementIndex && (s.index = lr(r, t), s.siblingCount = lr(r)), I || (s.node = t), p.length > 0 ? ve.createElement(d, s, p) : ve.createElement(d, s);
|
10140
10152
|
}
|
10141
10153
|
function zh(e) {
|
10142
10154
|
let t = -1;
|
@@ -10226,12 +10238,12 @@ function Wa(e) {
|
|
10226
10238
|
const r = t.runSync(t.parse(n), n);
|
10227
10239
|
if (r.type !== "root")
|
10228
10240
|
throw new TypeError("Expected a `root` node");
|
10229
|
-
let i =
|
10230
|
-
|
10241
|
+
let i = ve.createElement(
|
10242
|
+
ve.Fragment,
|
10231
10243
|
{},
|
10232
10244
|
Va({ options: e, schema: sh, listDepth: 0 }, r)
|
10233
10245
|
);
|
10234
|
-
return e.className && (i =
|
10246
|
+
return e.className && (i = ve.createElement("div", { className: e.className }, i)), i;
|
10235
10247
|
}
|
10236
10248
|
Wa.propTypes = {
|
10237
10249
|
// Core options:
|
@@ -10302,7 +10314,7 @@ function Ga({ message: e, id: t, onFeedbackThumbSelection: n }) {
|
|
10302
10314
|
onClick: () => n(t, "UP"),
|
10303
10315
|
"aria-label": "I like this response",
|
10304
10316
|
children: /* @__PURE__ */ T.jsx(
|
10305
|
-
|
10317
|
+
vt,
|
10306
10318
|
{
|
10307
10319
|
className: "xpert-chatbot-popup__feedback--btn-up-icon",
|
10308
10320
|
icon: e.feedbackThumbType === "UP" ? "material-symbols:thumb-up" : "material-symbols:thumb-up-outline"
|
@@ -10319,7 +10331,7 @@ function Ga({ message: e, id: t, onFeedbackThumbSelection: n }) {
|
|
10319
10331
|
onClick: () => n(t, "DOWN"),
|
10320
10332
|
"aria-label": "I do not like this response",
|
10321
10333
|
children: /* @__PURE__ */ T.jsx(
|
10322
|
-
|
10334
|
+
vt,
|
10323
10335
|
{
|
10324
10336
|
className: "xpert-chatbot-popup__feedback--btn-down-icon",
|
10325
10337
|
icon: e.feedbackThumbType === "DOWN" ? "material-symbols:thumb-down" : "material-symbols:thumb-down-outline"
|
@@ -10361,19 +10373,19 @@ function _n({
|
|
10361
10373
|
text: a,
|
10362
10374
|
userTrackingName: l
|
10363
10375
|
}) {
|
10364
|
-
const [s, u] =
|
10376
|
+
const [s, u] = xe(!0), { primaryColor: c, xpertKey: p, userTracking: m, conversationScreen: d } = Pe(Re), I = Ht(
|
10365
10377
|
(x) => {
|
10366
|
-
var E,
|
10367
|
-
((E = x == null ? void 0 : x.data) == null ? void 0 : E.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (
|
10378
|
+
var E, C, Y, $;
|
10379
|
+
((E = x == null ? void 0 : x.data) == null ? void 0 : E.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (C = window == null ? void 0 : window.OnetrustActiveGroups) != null && C.includes("C0003")) && qe.set(`${p}-live-chat-open`, 1, {
|
10368
10380
|
expires: 1,
|
10369
10381
|
path: "/"
|
10370
|
-
}), ((Y = x == null ? void 0 : x.data) == null ? void 0 : Y.type) === "connection" && (($ = x == null ? void 0 : x.data) == null ? void 0 : $.state) === "disconnected" &&
|
10382
|
+
}), ((Y = x == null ? void 0 : x.data) == null ? void 0 : Y.type) === "connection" && (($ = x == null ? void 0 : x.data) == null ? void 0 : $.state) === "disconnected" && qe.remove(`${p}-live-chat-open`);
|
10371
10383
|
},
|
10372
10384
|
[p]
|
10373
10385
|
), b = Ht(
|
10374
10386
|
(x) => {
|
10375
|
-
var E,
|
10376
|
-
((E = x == null ? void 0 : x.data) == null ? void 0 : E.type) === "unhide" && ((
|
10387
|
+
var E, C, Y;
|
10388
|
+
((E = x == null ? void 0 : x.data) == null ? void 0 : E.type) === "unhide" && ((C = x == null ? void 0 : x.data) == null ? void 0 : C.reason) === "pop-out" && t(!0), ((Y = x == null ? void 0 : x.data) == null ? void 0 : Y.type) === "open" && t(!0);
|
10377
10389
|
},
|
10378
10390
|
[t]
|
10379
10391
|
);
|
@@ -10393,7 +10405,7 @@ function _n({
|
|
10393
10405
|
I,
|
10394
10406
|
b
|
10395
10407
|
]);
|
10396
|
-
const
|
10408
|
+
const A = () => {
|
10397
10409
|
e({
|
10398
10410
|
name: `${m.prefix}.bi.xpert.chatbot.popup.live.chat.${l}`,
|
10399
10411
|
payload: {
|
@@ -10418,7 +10430,7 @@ function _n({
|
|
10418
10430
|
"button",
|
10419
10431
|
{
|
10420
10432
|
type: "button",
|
10421
|
-
onClick:
|
10433
|
+
onClick: A,
|
10422
10434
|
"aria-label": "Open live chat window",
|
10423
10435
|
style: { position: "relative" },
|
10424
10436
|
className: o,
|
@@ -10549,7 +10561,7 @@ Fn.defaultProps = {
|
|
10549
10561
|
};
|
10550
10562
|
Fn.displayName = "AssistantMessageBubble";
|
10551
10563
|
const Hh = Fn, Za = () => {
|
10552
|
-
const { disclaimer: e } = Re
|
10564
|
+
const { disclaimer: e } = Pe(Re), t = Ge(null);
|
10553
10565
|
return Ie(() => {
|
10554
10566
|
var n;
|
10555
10567
|
(n = t == null ? void 0 : t.current) == null || n.focus();
|
@@ -10583,7 +10595,7 @@ const Hh = Fn, Za = () => {
|
|
10583
10595
|
Za.displayName = "ConversationScreenDisclaimer";
|
10584
10596
|
const $h = Za, Xr = ({ loading: e, onPromptClick: t }) => {
|
10585
10597
|
var i;
|
10586
|
-
const { primaryColor: n, conversationScreen: r } = Re
|
10598
|
+
const { primaryColor: n, conversationScreen: r } = Pe(Re);
|
10587
10599
|
return /* @__PURE__ */ T.jsxs(T.Fragment, { children: [
|
10588
10600
|
/* @__PURE__ */ T.jsx("div", { style: { fontWeight: 700, fontSize: "0.75rem" }, children: "Some things I can help you with" }),
|
10589
10601
|
(i = r.prompts) == null ? void 0 : i.map((o) => {
|
@@ -10628,7 +10640,7 @@ Jr.propTypes = {
|
|
10628
10640
|
Jr.displayName = "SystemMessageBubble";
|
10629
10641
|
const Vh = Jr, ei = ({ content: e, isNormalSize: t }) => {
|
10630
10642
|
var i;
|
10631
|
-
const { primaryColor: n, conversationScreen: r } = Re
|
10643
|
+
const { primaryColor: n, conversationScreen: r } = Pe(Re);
|
10632
10644
|
return /* @__PURE__ */ T.jsx(
|
10633
10645
|
"div",
|
10634
10646
|
{
|
@@ -10659,7 +10671,7 @@ const Wh = ei, Pn = ({
|
|
10659
10671
|
setLiveChatOpen: l,
|
10660
10672
|
isTestUser: s
|
10661
10673
|
}) => {
|
10662
|
-
const { conversationScreen: u } = Re
|
10674
|
+
const { conversationScreen: u } = Pe(Re), { prompts: c, systemMessage: p } = u, m = Ge(null);
|
10663
10675
|
return Ie(() => {
|
10664
10676
|
var d;
|
10665
10677
|
(d = m.current) == null || d.scrollIntoView({
|
@@ -10743,7 +10755,7 @@ Pn.defaultProps = {
|
|
10743
10755
|
Pn.displayName = "ConversationsMessages";
|
10744
10756
|
const Gh = Pn;
|
10745
10757
|
function Ka({ disableScroll: e }) {
|
10746
|
-
const t =
|
10758
|
+
const t = Ge(null);
|
10747
10759
|
return Ie(() => {
|
10748
10760
|
var n;
|
10749
10761
|
e || (n = t.current) == null || n.scrollIntoView({
|
@@ -10769,7 +10781,7 @@ Ka.propTypes = {
|
|
10769
10781
|
disableScroll: D.bool
|
10770
10782
|
};
|
10771
10783
|
const Zh = () => {
|
10772
|
-
const e =
|
10784
|
+
const e = Ge(null);
|
10773
10785
|
return Ie(() => {
|
10774
10786
|
var t;
|
10775
10787
|
(t = e.current) == null || t.scrollIntoView({
|
@@ -10793,7 +10805,7 @@ const Zh = () => {
|
|
10793
10805
|
ref: e,
|
10794
10806
|
children: [
|
10795
10807
|
/* @__PURE__ */ T.jsx(
|
10796
|
-
|
10808
|
+
vt,
|
10797
10809
|
{
|
10798
10810
|
icon: "material-symbols:thunderstorm",
|
10799
10811
|
style: {
|
@@ -10833,7 +10845,7 @@ const Zh = () => {
|
|
10833
10845
|
);
|
10834
10846
|
}, sr = Zh;
|
10835
10847
|
function Kh(e) {
|
10836
|
-
const [t, n] =
|
10848
|
+
const [t, n] = xe(null);
|
10837
10849
|
return Ie(() => {
|
10838
10850
|
console.log("Chatbot - optimizely mount");
|
10839
10851
|
try {
|
@@ -10888,7 +10900,7 @@ function tg(e) {
|
|
10888
10900
|
}
|
10889
10901
|
const ng = 991, rg = [];
|
10890
10902
|
function ti({ submitEventExternal: e }) {
|
10891
|
-
var
|
10903
|
+
var lt;
|
10892
10904
|
const {
|
10893
10905
|
xpertKey: t,
|
10894
10906
|
chatApi: n,
|
@@ -10897,26 +10909,26 @@ function ti({ submitEventExternal: e }) {
|
|
10897
10909
|
proactiveMessage: o,
|
10898
10910
|
launchButton: a,
|
10899
10911
|
conversationScreen: l
|
10900
|
-
} = Re
|
10901
|
-
({ name: R, payload:
|
10902
|
-
const
|
10903
|
-
e ? e({ name: R, payload:
|
10912
|
+
} = Pe(Re), s = rt(ng), [, u] = xe(!1), [c, p] = xe(rg), [m, d] = xe(!1), [I, b] = xe(!1), [A, x] = xe(!1), [E, C] = xe(""), [Y, $] = xe(!1), [M, _] = xe(!0), [q, G] = xe(!1), [K, O] = xe(!1), [w, k] = xe(!1), z = Ge(null), L = Ge(null), U = Ge(null), P = qe.get(`${t}-test`) === "1", W = Ht(
|
10913
|
+
({ name: R, payload: oe }) => {
|
10914
|
+
const me = jo(r == null ? void 0 : r.payloadParams, oe);
|
10915
|
+
e ? e({ name: R, payload: me }) : U.current.track(
|
10904
10916
|
// TODO: this is untestable - create a custom hook to get submit event function.
|
10905
10917
|
R,
|
10906
|
-
|
10918
|
+
me
|
10907
10919
|
);
|
10908
10920
|
},
|
10909
10921
|
[e, r.payloadParams]
|
10910
|
-
),
|
10922
|
+
), ie = Ht(async () => {
|
10911
10923
|
if (window != null && window.OnetrustActiveGroups && window.OnetrustActiveGroups.split(",").includes("C0003"))
|
10912
10924
|
try {
|
10913
|
-
const R =
|
10925
|
+
const R = qe.get(
|
10914
10926
|
`${t}-conversation-history-id`
|
10915
10927
|
);
|
10916
10928
|
if (!R)
|
10917
10929
|
return;
|
10918
10930
|
d(!0);
|
10919
|
-
const
|
10931
|
+
const oe = await fetch(
|
10920
10932
|
`${n.endpoint}/xpert-chat/${R}`,
|
10921
10933
|
{
|
10922
10934
|
method: "GET",
|
@@ -10925,35 +10937,35 @@ function ti({ submitEventExternal: e }) {
|
|
10925
10937
|
}
|
10926
10938
|
}
|
10927
10939
|
);
|
10928
|
-
if (
|
10929
|
-
|
10940
|
+
if (oe.status === 404) {
|
10941
|
+
qe.remove(`${t}-conversation-history-id`);
|
10930
10942
|
return;
|
10931
10943
|
}
|
10932
|
-
if (!
|
10933
|
-
throw new sr(`HTTPError: ${
|
10934
|
-
const
|
10944
|
+
if (!oe.ok)
|
10945
|
+
throw new sr(`HTTPError: ${oe.status} ${oe.statusText}`);
|
10946
|
+
const me = await oe.json();
|
10935
10947
|
p(
|
10936
|
-
|
10937
|
-
...
|
10948
|
+
me.map((he) => ({
|
10949
|
+
...he,
|
10938
10950
|
disableFeedback: !0
|
10939
10951
|
}))
|
10940
|
-
),
|
10952
|
+
), O(!0), k(!0);
|
10941
10953
|
} catch (R) {
|
10942
10954
|
console.error(R);
|
10943
10955
|
} finally {
|
10944
10956
|
d(!1);
|
10945
10957
|
}
|
10946
10958
|
}, [t, n.endpoint]);
|
10947
|
-
Xh(
|
10959
|
+
Xh(ie), Ie(() => {
|
10948
10960
|
console.log("Chatbot - mount");
|
10949
|
-
let R,
|
10961
|
+
let R, oe;
|
10950
10962
|
return r.enabled && (R = setInterval(() => {
|
10951
|
-
var
|
10952
|
-
console.log("Chatbot - intervalCheckForScripts"), (
|
10953
|
-
}, 1e3),
|
10963
|
+
var he;
|
10964
|
+
console.log("Chatbot - intervalCheckForScripts"), (he = window.analytics) != null && he.track && (!i.enabled || i.enabled && window.optimizely && window.experiments) && (console.log("Chatbot - intervalCheckForScripts all found"), U.current = window.analytics, clearInterval(R), clearTimeout(oe), u(!0));
|
10965
|
+
}, 1e3), oe = setTimeout(() => {
|
10954
10966
|
clearInterval(R);
|
10955
10967
|
}, 6e4)), () => {
|
10956
|
-
console.log("Chatbot - unmount"), clearInterval(R), clearTimeout(
|
10968
|
+
console.log("Chatbot - unmount"), clearInterval(R), clearTimeout(oe);
|
10957
10969
|
};
|
10958
10970
|
}, [
|
10959
10971
|
i.enabled,
|
@@ -10962,31 +10974,31 @@ function ti({ submitEventExternal: e }) {
|
|
10962
10974
|
r.prefix
|
10963
10975
|
]);
|
10964
10976
|
const g = (R) => {
|
10965
|
-
var
|
10966
|
-
(
|
10977
|
+
var oe, me;
|
10978
|
+
(oe = R == null ? void 0 : R.target) != null && oe.href && W({
|
10967
10979
|
name: `${r.prefix}.bi.xpert.chatbot.popup.chat.message.link.clicked`,
|
10968
10980
|
payload: {
|
10969
10981
|
category: "2u",
|
10970
10982
|
label: "xpert-chatbot",
|
10971
|
-
link: (
|
10983
|
+
link: (me = R == null ? void 0 : R.target) == null ? void 0 : me.href,
|
10972
10984
|
isTestUser: P
|
10973
10985
|
}
|
10974
10986
|
});
|
10975
|
-
},
|
10987
|
+
}, pe = Kh(
|
10976
10988
|
i.experimentName
|
10977
10989
|
);
|
10978
10990
|
if (i.enabled && !i.experimentName && !P)
|
10979
10991
|
return i.enabled && !i.experimentName && console.log(
|
10980
|
-
`Chatbot - Experiment not setup: ${t}, ${
|
10992
|
+
`Chatbot - Experiment not setup: ${t}, ${pe}, ${window.optimizely}`
|
10981
10993
|
), P || console.log(`Chatbot - Test user not setup: ${t}, ${P}`), null;
|
10982
|
-
if (r.prefix && !((
|
10994
|
+
if (r.prefix && !((lt = U == null ? void 0 : U.current) != null && lt.track) && !e)
|
10983
10995
|
return console.log(`Chatbot - Segment not setup: ${t}`), null;
|
10984
10996
|
console.log(
|
10985
|
-
`Chatbot - All things setup: ${t}, ${typeof window.analytics}, ${
|
10997
|
+
`Chatbot - All things setup: ${t}, ${typeof window.analytics}, ${pe}, ${typeof window.optimizely}, ${typeof window.experiments}`
|
10986
10998
|
);
|
10987
|
-
const
|
10988
|
-
|
10989
|
-
}, h = (R,
|
10999
|
+
const ye = () => {
|
11000
|
+
C(""), L.current.value = "", L.current.style.height = "auto";
|
11001
|
+
}, h = (R, oe) => {
|
10990
11002
|
W({
|
10991
11003
|
name: `${r.prefix}.bi.xpert.chatbot.popup.chat.message.response`,
|
10992
11004
|
payload: {
|
@@ -10995,15 +11007,15 @@ function ti({ submitEventExternal: e }) {
|
|
10995
11007
|
linkCount: eg(R),
|
10996
11008
|
apiResponseMessage: R,
|
10997
11009
|
isTestUser: P,
|
10998
|
-
conversationHistoryId:
|
11010
|
+
conversationHistoryId: oe
|
10999
11011
|
}
|
11000
11012
|
});
|
11001
|
-
},
|
11013
|
+
}, ge = ({
|
11002
11014
|
conversationSize: R,
|
11003
|
-
userInputMessage:
|
11004
|
-
apiResponseMessage:
|
11005
|
-
elapsedSeconds:
|
11006
|
-
conversationByteSize:
|
11015
|
+
userInputMessage: oe,
|
11016
|
+
apiResponseMessage: me,
|
11017
|
+
elapsedSeconds: he,
|
11018
|
+
conversationByteSize: je
|
11007
11019
|
}) => {
|
11008
11020
|
W({
|
11009
11021
|
name: `${r.prefix}.bi.xpert.chatbot.popup.chat.message.elapsed.seconds`,
|
@@ -11012,31 +11024,31 @@ function ti({ submitEventExternal: e }) {
|
|
11012
11024
|
label: "xpert-chatbot",
|
11013
11025
|
isTestUser: P,
|
11014
11026
|
conversationSize: R,
|
11015
|
-
userInputMessage:
|
11016
|
-
apiResponseMessage:
|
11017
|
-
elapsedSeconds:
|
11018
|
-
conversationByteSize:
|
11027
|
+
userInputMessage: oe,
|
11028
|
+
apiResponseMessage: me,
|
11029
|
+
elapsedSeconds: he,
|
11030
|
+
conversationByteSize: je
|
11019
11031
|
}
|
11020
11032
|
});
|
11021
|
-
},
|
11033
|
+
}, Te = async (R) => {
|
11022
11034
|
try {
|
11023
11035
|
if (R.trim().length === 0)
|
11024
11036
|
return;
|
11025
|
-
const
|
11026
|
-
|
11027
|
-
const
|
11037
|
+
const oe = /* @__PURE__ */ new Date();
|
11038
|
+
k(!1), $(!1);
|
11039
|
+
const me = c.filter((j) => j.role === "user").length + 1;
|
11028
11040
|
W({
|
11029
11041
|
name: `${r.prefix}.bi.xpert.chatbot.popup.chat.message.sent`,
|
11030
11042
|
payload: {
|
11031
11043
|
category: "2u",
|
11032
11044
|
label: "xpert-chatbot",
|
11033
|
-
totalUserInputMessagesSent:
|
11045
|
+
totalUserInputMessagesSent: me,
|
11034
11046
|
userInputMessage: R,
|
11035
11047
|
isTestUser: P
|
11036
11048
|
}
|
11037
|
-
}),
|
11038
|
-
let
|
11039
|
-
!
|
11049
|
+
}), ye();
|
11050
|
+
let he = qe.get(`${t}-conversation-history-id`) || "";
|
11051
|
+
!he && l.conversationHistory.enabled ? p([
|
11040
11052
|
{
|
11041
11053
|
role: "user",
|
11042
11054
|
content: R
|
@@ -11048,53 +11060,53 @@ function ti({ submitEventExternal: e }) {
|
|
11048
11060
|
content: R
|
11049
11061
|
}
|
11050
11062
|
]), d(!0);
|
11051
|
-
const
|
11063
|
+
const je = [
|
11052
11064
|
...c,
|
11053
11065
|
{
|
11054
11066
|
role: "user",
|
11055
11067
|
content: R
|
11056
11068
|
}
|
11057
|
-
].map((
|
11058
|
-
role:
|
11059
|
-
content:
|
11060
|
-
})),
|
11069
|
+
].map((j) => ({
|
11070
|
+
role: j.role,
|
11071
|
+
content: j.content
|
11072
|
+
})), be = await fetch(n.endpoint, {
|
11061
11073
|
method: "POST",
|
11062
11074
|
headers: {
|
11063
11075
|
"Content-Type": "application/json",
|
11064
|
-
"Conversation-History-Id":
|
11076
|
+
"Conversation-History-Id": he
|
11065
11077
|
},
|
11066
11078
|
body: JSON.stringify({
|
11067
|
-
message_list:
|
11079
|
+
message_list: je,
|
11068
11080
|
...n.payloadParams
|
11069
11081
|
})
|
11070
11082
|
});
|
11071
|
-
if (!
|
11072
|
-
throw new sr(`HTTPError: ${
|
11073
|
-
|
11083
|
+
if (!be.ok)
|
11084
|
+
throw new sr(`HTTPError: ${be.status} ${be.statusText}`);
|
11085
|
+
he = be.headers.get("Conversation-History-Id"), he && qe.set(
|
11074
11086
|
`${t}-conversation-history-id`,
|
11075
|
-
|
11087
|
+
he,
|
11076
11088
|
{ expires: 1 }
|
11077
11089
|
);
|
11078
|
-
const
|
11079
|
-
h(
|
11080
|
-
const
|
11081
|
-
|
11082
|
-
conversationByteSize: tg(JSON.stringify(
|
11090
|
+
const st = await be.json(), Je = st.content, Et = st.live_agent;
|
11091
|
+
h(Je, he);
|
11092
|
+
const N = /* @__PURE__ */ new Date();
|
11093
|
+
ge({
|
11094
|
+
conversationByteSize: tg(JSON.stringify(je)),
|
11083
11095
|
conversationSize: c.length + 2,
|
11084
11096
|
userInputMessage: R,
|
11085
|
-
apiResponseMessage:
|
11086
|
-
elapsedSeconds: Jh(
|
11087
|
-
}), p((
|
11088
|
-
...
|
11097
|
+
apiResponseMessage: Je,
|
11098
|
+
elapsedSeconds: Jh(oe, N)
|
11099
|
+
}), p((j) => [
|
11100
|
+
...j,
|
11089
11101
|
{
|
11090
11102
|
role: "assistant",
|
11091
|
-
content:
|
11092
|
-
liveAgent:
|
11103
|
+
content: Je,
|
11104
|
+
liveAgent: Et,
|
11093
11105
|
createdAt: /* @__PURE__ */ new Date()
|
11094
11106
|
}
|
11095
|
-
]),
|
11096
|
-
} catch (
|
11097
|
-
d(!1),
|
11107
|
+
]), O(!1), d(!1), ye(), k(!0);
|
11108
|
+
} catch (oe) {
|
11109
|
+
d(!1), ye(), $(!0), console.error(oe);
|
11098
11110
|
}
|
11099
11111
|
}, ne = () => {
|
11100
11112
|
x(!1), b(!0), W({
|
@@ -11105,7 +11117,7 @@ function ti({ submitEventExternal: e }) {
|
|
11105
11117
|
isTestUser: P
|
11106
11118
|
}
|
11107
11119
|
});
|
11108
|
-
},
|
11120
|
+
}, De = (R) => {
|
11109
11121
|
W({
|
11110
11122
|
name: `${r.prefix}.bi.xpert.chatbot.${R ? "normal" : "expand"}.size.button.clicked`,
|
11111
11123
|
payload: {
|
@@ -11114,7 +11126,7 @@ function ti({ submitEventExternal: e }) {
|
|
11114
11126
|
isTestUser: P
|
11115
11127
|
}
|
11116
11128
|
}), _(R);
|
11117
|
-
},
|
11129
|
+
}, we = () => {
|
11118
11130
|
b(!0), W({
|
11119
11131
|
name: `${r.prefix}.bi.xpert.chatbot.proactive.message.clicked`,
|
11120
11132
|
payload: {
|
@@ -11123,7 +11135,7 @@ function ti({ submitEventExternal: e }) {
|
|
11123
11135
|
isTestUser: P
|
11124
11136
|
}
|
11125
11137
|
});
|
11126
|
-
},
|
11138
|
+
}, Ye = () => {
|
11127
11139
|
W({
|
11128
11140
|
name: `${r.prefix}.bi.xpert.chatbot.proactive.message.closed`,
|
11129
11141
|
payload: {
|
@@ -11141,20 +11153,20 @@ function ti({ submitEventExternal: e }) {
|
|
11141
11153
|
isTestUser: P
|
11142
11154
|
}
|
11143
11155
|
});
|
11144
|
-
},
|
11156
|
+
}, Xe = () => {
|
11145
11157
|
var R;
|
11146
11158
|
/* istanbul ignore next @preserve */
|
11147
11159
|
L.current && (L.current.style.height = "auto", L.current.style.height = `${Math.min(
|
11148
11160
|
(R = L.current) == null ? void 0 : R.scrollHeight,
|
11149
11161
|
120
|
11150
11162
|
)}px`);
|
11151
|
-
},
|
11152
|
-
|
11153
|
-
},
|
11154
|
-
R.key === "Enter" && E.trim() === "" || R.key === "Enter" && !R.shiftKey && (R.preventDefault(),
|
11155
|
-
},
|
11156
|
-
const
|
11157
|
-
name: `${r.prefix}.bi.xpert.chatbot.feedback.thumbs.${
|
11163
|
+
}, ot = (R) => {
|
11164
|
+
C(R.target.value);
|
11165
|
+
}, Nt = (R) => {
|
11166
|
+
R.key === "Enter" && E.trim() === "" || R.key === "Enter" && !R.shiftKey && (R.preventDefault(), Te(E));
|
11167
|
+
}, kt = (R, oe = "") => {
|
11168
|
+
const me = c.map((he, je) => R === je ? (W({
|
11169
|
+
name: `${r.prefix}.bi.xpert.chatbot.feedback.thumbs.${oe.toLowerCase()}.clicked`,
|
11158
11170
|
payload: {
|
11159
11171
|
category: "2u",
|
11160
11172
|
label: "xpert-chatbot",
|
@@ -11164,11 +11176,11 @@ function ti({ submitEventExternal: e }) {
|
|
11164
11176
|
isTestUser: P
|
11165
11177
|
}
|
11166
11178
|
}), {
|
11167
|
-
...
|
11168
|
-
feedbackThumbType:
|
11169
|
-
}) :
|
11170
|
-
p(
|
11171
|
-
};
|
11179
|
+
...he,
|
11180
|
+
feedbackThumbType: oe
|
11181
|
+
}) : he);
|
11182
|
+
p(me), O(!1);
|
11183
|
+
}, at = a.isAnimatedGraduateEnabled && i.enabled && pe === "A", yt = at ? s ? o.style.mobile.animatedGraduateExperiment : o.style.animatedGraduateExperiment : s ? o.style.mobile : o.style;
|
11172
11184
|
return (
|
11173
11185
|
// do not remove this class as it's needed to turn off chatbot
|
11174
11186
|
/* @__PURE__ */ T.jsxs("div", { className: "xpert-chatbot-frontend-killswitch", children: [
|
@@ -11176,9 +11188,9 @@ function ti({ submitEventExternal: e }) {
|
|
11176
11188
|
Go,
|
11177
11189
|
{
|
11178
11190
|
showMessage: !I,
|
11179
|
-
style:
|
11180
|
-
onClose:
|
11181
|
-
onClick:
|
11191
|
+
style: yt,
|
11192
|
+
onClose: Ye,
|
11193
|
+
onClick: we,
|
11182
11194
|
cookieName: `${t}-proactive-message-xpert-chatbot`,
|
11183
11195
|
children: /* @__PURE__ */ T.jsx("div", { className: "xpert-chatbot-proactive-message", children: /* @__PURE__ */ T.jsxs("div", { className: "xpert-chatbot-proactive-message__text", children: [
|
11184
11196
|
o.prefix && /* @__PURE__ */ T.jsx("span", { children: o.prefix }),
|
@@ -11198,20 +11210,20 @@ function ti({ submitEventExternal: e }) {
|
|
11198
11210
|
] }) })
|
11199
11211
|
}
|
11200
11212
|
),
|
11201
|
-
|
11213
|
+
at && /* @__PURE__ */ T.jsx(
|
11202
11214
|
Lu,
|
11203
11215
|
{
|
11204
11216
|
handleFloatingActionButtonClick: ne
|
11205
11217
|
}
|
11206
11218
|
),
|
11207
|
-
|
11219
|
+
!at && /* @__PURE__ */ T.jsx(
|
11208
11220
|
Ou,
|
11209
11221
|
{
|
11210
11222
|
handleFloatingActionButtonClick: ne
|
11211
11223
|
}
|
11212
11224
|
),
|
11213
11225
|
/* @__PURE__ */ T.jsx(Pu, {}),
|
11214
|
-
I && !
|
11226
|
+
I && !A && /* @__PURE__ */ T.jsx(Pr, { isNormalSize: M, isMounted: q, children: /* @__PURE__ */ T.jsx(
|
11215
11227
|
"div",
|
11216
11228
|
{
|
11217
11229
|
ref: z,
|
@@ -11226,7 +11238,7 @@ function ti({ submitEventExternal: e }) {
|
|
11226
11238
|
isMounted: q,
|
11227
11239
|
isNormalSize: M,
|
11228
11240
|
setIsMounted: G,
|
11229
|
-
setIsNormalSize:
|
11241
|
+
setIsNormalSize: De
|
11230
11242
|
}
|
11231
11243
|
),
|
11232
11244
|
/* @__PURE__ */ T.jsxs(
|
@@ -11244,8 +11256,8 @@ function ti({ submitEventExternal: e }) {
|
|
11244
11256
|
messages: c,
|
11245
11257
|
loading: m,
|
11246
11258
|
isNormalSize: s || M,
|
11247
|
-
onFeedbackThumbSelection:
|
11248
|
-
onPromptClick:
|
11259
|
+
onFeedbackThumbSelection: kt,
|
11260
|
+
onPromptClick: Te,
|
11249
11261
|
handleMessageLinkClicked: g,
|
11250
11262
|
submitEvent: W,
|
11251
11263
|
setLiveChatOpen: x,
|
@@ -11276,10 +11288,10 @@ function ti({ submitEventExternal: e }) {
|
|
11276
11288
|
hasXpertMessages: w,
|
11277
11289
|
hasError: Y,
|
11278
11290
|
userInput: E,
|
11279
|
-
handleSend:
|
11280
|
-
handleInput:
|
11281
|
-
handleChange:
|
11282
|
-
handleKeyDown:
|
11291
|
+
handleSend: Te,
|
11292
|
+
handleInput: Xe,
|
11293
|
+
handleChange: ot,
|
11294
|
+
handleKeyDown: Nt
|
11283
11295
|
}
|
11284
11296
|
) })
|
11285
11297
|
] })
|