substack-feed-api 1.1.1 → 1.1.4
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/substackFeedApi.js +572 -571
- package/dist/substackFeedApi.umd.cjs +6 -6
- package/package.json +8 -9
package/dist/substackFeedApi.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
function hr(n) {
|
|
2
|
-
if (n
|
|
2
|
+
if (Object.prototype.hasOwnProperty.call(n, "__esModule")) return n;
|
|
3
3
|
var a = n.default;
|
|
4
4
|
if (typeof a == "function") {
|
|
5
|
-
var g = function
|
|
6
|
-
return this instanceof
|
|
5
|
+
var g = function f() {
|
|
6
|
+
return this instanceof f ? Reflect.construct(a, arguments, this.constructor) : a.apply(this, arguments);
|
|
7
7
|
};
|
|
8
8
|
g.prototype = a.prototype;
|
|
9
9
|
} else g = {};
|
|
10
|
-
return Object.defineProperty(g, "__esModule", { value: !0 }), Object.keys(n).forEach(function(
|
|
11
|
-
var p = Object.getOwnPropertyDescriptor(n,
|
|
12
|
-
Object.defineProperty(g,
|
|
10
|
+
return Object.defineProperty(g, "__esModule", { value: !0 }), Object.keys(n).forEach(function(f) {
|
|
11
|
+
var p = Object.getOwnPropertyDescriptor(n, f);
|
|
12
|
+
Object.defineProperty(g, f, p.get ? p : {
|
|
13
13
|
enumerable: !0,
|
|
14
14
|
get: function() {
|
|
15
|
-
return n[
|
|
15
|
+
return n[f];
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
}), g;
|
|
@@ -94,7 +94,7 @@ function Wt() {
|
|
|
94
94
|
var rt = {}, Y = {}, K = {}, he;
|
|
95
95
|
function H() {
|
|
96
96
|
return he || (he = 1, (function() {
|
|
97
|
-
var n, a, g,
|
|
97
|
+
var n, a, g, f, p, t, e, o = [].slice, l = {}.hasOwnProperty;
|
|
98
98
|
n = function() {
|
|
99
99
|
var b, m, y, d, w, O;
|
|
100
100
|
if (O = arguments[0], w = 2 <= arguments.length ? o.call(arguments, 1) : [], p(Object.assign))
|
|
@@ -112,7 +112,7 @@ function H() {
|
|
|
112
112
|
return !!b && ((m = typeof b) == "function" || m === "object");
|
|
113
113
|
}, g = function(b) {
|
|
114
114
|
return p(Array.isArray) ? Array.isArray(b) : Object.prototype.toString.call(b) === "[object Array]";
|
|
115
|
-
},
|
|
115
|
+
}, f = function(b) {
|
|
116
116
|
var m;
|
|
117
117
|
if (g(b))
|
|
118
118
|
return !b.length;
|
|
@@ -125,7 +125,7 @@ function H() {
|
|
|
125
125
|
return t(b) && (y = Object.getPrototypeOf(b)) && (m = y.constructor) && typeof m == "function" && m instanceof m && Function.prototype.toString.call(m) === Function.prototype.toString.call(Object);
|
|
126
126
|
}, a = function(b) {
|
|
127
127
|
return p(b.valueOf) ? b.valueOf() : b;
|
|
128
|
-
}, K.assign = n, K.isFunction = p, K.isObject = t, K.isArray = g, K.isEmpty =
|
|
128
|
+
}, K.assign = n, K.isFunction = p, K.isObject = t, K.isArray = g, K.isEmpty = f, K.isPlainObject = e, K.getValue = a;
|
|
129
129
|
}).call(K)), K;
|
|
130
130
|
}
|
|
131
131
|
var st = { exports: {} }, pr = st.exports, pe;
|
|
@@ -136,9 +136,9 @@ function Je() {
|
|
|
136
136
|
}
|
|
137
137
|
return n.prototype.hasFeature = function(a, g) {
|
|
138
138
|
return !0;
|
|
139
|
-
}, n.prototype.createDocumentType = function(a, g,
|
|
139
|
+
}, n.prototype.createDocumentType = function(a, g, f) {
|
|
140
140
|
throw new Error("This DOM method is not implemented.");
|
|
141
|
-
}, n.prototype.createDocument = function(a, g,
|
|
141
|
+
}, n.prototype.createDocument = function(a, g, f) {
|
|
142
142
|
throw new Error("This DOM method is not implemented.");
|
|
143
143
|
}, n.prototype.createHTMLDocument = function(a) {
|
|
144
144
|
throw new Error("This DOM method is not implemented.");
|
|
@@ -209,12 +209,12 @@ function Tr() {
|
|
|
209
209
|
get: function() {
|
|
210
210
|
return new a(Object.keys(this.defaultParams));
|
|
211
211
|
}
|
|
212
|
-
}), g.prototype.getParameter = function(
|
|
213
|
-
return this.params.hasOwnProperty(
|
|
214
|
-
}, g.prototype.canSetParameter = function(
|
|
212
|
+
}), g.prototype.getParameter = function(f) {
|
|
213
|
+
return this.params.hasOwnProperty(f) ? this.params[f] : null;
|
|
214
|
+
}, g.prototype.canSetParameter = function(f, p) {
|
|
215
215
|
return !0;
|
|
216
|
-
}, g.prototype.setParameter = function(
|
|
217
|
-
return p != null ? this.params[
|
|
216
|
+
}, g.prototype.setParameter = function(f, p) {
|
|
217
|
+
return p != null ? this.params[f] = p : delete this.params[f];
|
|
218
218
|
}, g;
|
|
219
219
|
}();
|
|
220
220
|
}).call(wr)), at.exports;
|
|
@@ -248,10 +248,10 @@ function tr() {
|
|
|
248
248
|
return we || (we = 1, (function() {
|
|
249
249
|
var n;
|
|
250
250
|
n = B(), G(), dt.exports = function() {
|
|
251
|
-
function a(g,
|
|
252
|
-
if (this.parent = g, this.parent && (this.options = this.parent.options, this.stringify = this.parent.stringify),
|
|
253
|
-
throw new Error("Missing attribute name. " + this.debugInfo(
|
|
254
|
-
this.name = this.stringify.name(
|
|
251
|
+
function a(g, f, p) {
|
|
252
|
+
if (this.parent = g, this.parent && (this.options = this.parent.options, this.stringify = this.parent.stringify), f == null)
|
|
253
|
+
throw new Error("Missing attribute name. " + this.debugInfo(f));
|
|
254
|
+
this.name = this.stringify.name(f), this.value = this.stringify.attValue(p), this.type = n.Attribute, this.isId = !1, this.schemaTypeInfo = null;
|
|
255
255
|
}
|
|
256
256
|
return Object.defineProperty(a.prototype, "nodeType", {
|
|
257
257
|
get: function() {
|
|
@@ -332,7 +332,7 @@ function Yt() {
|
|
|
332
332
|
var Or = ht.exports, De;
|
|
333
333
|
function Kt() {
|
|
334
334
|
return De || (De = 1, (function() {
|
|
335
|
-
var n, a, g,
|
|
335
|
+
var n, a, g, f, p, t, e, o, l = function(m, y) {
|
|
336
336
|
for (var d in y)
|
|
337
337
|
b.call(y, d) && (m[d] = y[d]);
|
|
338
338
|
function w() {
|
|
@@ -340,14 +340,14 @@ function Kt() {
|
|
|
340
340
|
}
|
|
341
341
|
return w.prototype = y.prototype, m.prototype = new w(), m.__super__ = y.prototype, m;
|
|
342
342
|
}, b = {}.hasOwnProperty;
|
|
343
|
-
o = H(), e = o.isObject, t = o.isFunction, p = o.getValue,
|
|
343
|
+
o = H(), e = o.isObject, t = o.isFunction, p = o.getValue, f = G(), n = B(), a = tr(), g = Yt(), ht.exports = function(m) {
|
|
344
344
|
l(y, m);
|
|
345
345
|
function y(d, w, O) {
|
|
346
|
-
var I, x,
|
|
346
|
+
var I, x, _, E;
|
|
347
347
|
if (y.__super__.constructor.call(this, d), w == null)
|
|
348
348
|
throw new Error("Missing element name. " + this.debugInfo());
|
|
349
349
|
if (this.name = this.stringify.name(w), this.type = n.Element, this.attribs = {}, this.schemaTypeInfo = null, O != null && this.attribute(O), d.type === n.Document && (this.isRoot = !0, this.documentObject = d, d.rootObject = this, d.children)) {
|
|
350
|
-
for (E = d.children, x = 0,
|
|
350
|
+
for (E = d.children, x = 0, _ = E.length; x < _; x++)
|
|
351
351
|
if (I = E[x], I.type === n.DocType) {
|
|
352
352
|
I.name = this.name;
|
|
353
353
|
break;
|
|
@@ -392,8 +392,8 @@ function Kt() {
|
|
|
392
392
|
for (w in I)
|
|
393
393
|
b.call(I, w) && (d = I[w], O.attribs[w] = d.clone());
|
|
394
394
|
return O.children = [], this.children.forEach(function(x) {
|
|
395
|
-
var
|
|
396
|
-
return
|
|
395
|
+
var _;
|
|
396
|
+
return _ = x.clone(), _.parent = O, O.children.push(_);
|
|
397
397
|
}), O;
|
|
398
398
|
}, y.prototype.attribute = function(d, w) {
|
|
399
399
|
var O, I;
|
|
@@ -468,22 +468,22 @@ function Kt() {
|
|
|
468
468
|
return !1;
|
|
469
469
|
return !0;
|
|
470
470
|
}, y;
|
|
471
|
-
}(
|
|
471
|
+
}(f);
|
|
472
472
|
}).call(Or)), ht.exports;
|
|
473
473
|
}
|
|
474
474
|
var mt = { exports: {} }, gt = { exports: {} }, Nr = gt.exports, Ee;
|
|
475
475
|
function jt() {
|
|
476
476
|
return Ee || (Ee = 1, (function() {
|
|
477
|
-
var n, a = function(
|
|
477
|
+
var n, a = function(f, p) {
|
|
478
478
|
for (var t in p)
|
|
479
|
-
g.call(p, t) && (
|
|
479
|
+
g.call(p, t) && (f[t] = p[t]);
|
|
480
480
|
function e() {
|
|
481
|
-
this.constructor =
|
|
481
|
+
this.constructor = f;
|
|
482
482
|
}
|
|
483
|
-
return e.prototype = p.prototype,
|
|
483
|
+
return e.prototype = p.prototype, f.prototype = new e(), f.__super__ = p.prototype, f;
|
|
484
484
|
}, g = {}.hasOwnProperty;
|
|
485
|
-
n = G(), gt.exports = function(
|
|
486
|
-
a(p,
|
|
485
|
+
n = G(), gt.exports = function(f) {
|
|
486
|
+
a(p, f);
|
|
487
487
|
function p(t) {
|
|
488
488
|
p.__super__.constructor.call(this, t), this.value = "";
|
|
489
489
|
}
|
|
@@ -528,12 +528,12 @@ function zt() {
|
|
|
528
528
|
return be || (be = 1, (function() {
|
|
529
529
|
var n, a, g = function(p, t) {
|
|
530
530
|
for (var e in t)
|
|
531
|
-
|
|
531
|
+
f.call(t, e) && (p[e] = t[e]);
|
|
532
532
|
function o() {
|
|
533
533
|
this.constructor = p;
|
|
534
534
|
}
|
|
535
535
|
return o.prototype = t.prototype, p.prototype = new o(), p.__super__ = t.prototype, p;
|
|
536
|
-
},
|
|
536
|
+
}, f = {}.hasOwnProperty;
|
|
537
537
|
n = B(), a = jt(), mt.exports = function(p) {
|
|
538
538
|
g(t, p);
|
|
539
539
|
function t(e, o) {
|
|
@@ -554,12 +554,12 @@ function Ht() {
|
|
|
554
554
|
return Oe || (Oe = 1, (function() {
|
|
555
555
|
var n, a, g = function(p, t) {
|
|
556
556
|
for (var e in t)
|
|
557
|
-
|
|
557
|
+
f.call(t, e) && (p[e] = t[e]);
|
|
558
558
|
function o() {
|
|
559
559
|
this.constructor = p;
|
|
560
560
|
}
|
|
561
561
|
return o.prototype = t.prototype, p.prototype = new o(), p.__super__ = t.prototype, p;
|
|
562
|
-
},
|
|
562
|
+
}, f = {}.hasOwnProperty;
|
|
563
563
|
n = B(), a = jt(), wt.exports = function(p) {
|
|
564
564
|
g(t, p);
|
|
565
565
|
function t(e, o) {
|
|
@@ -578,7 +578,7 @@ function Ht() {
|
|
|
578
578
|
var Tt = { exports: {} }, Ir = Tt.exports, Ne;
|
|
579
579
|
function Qt() {
|
|
580
580
|
return Ne || (Ne = 1, (function() {
|
|
581
|
-
var n, a, g,
|
|
581
|
+
var n, a, g, f = function(t, e) {
|
|
582
582
|
for (var o in e)
|
|
583
583
|
p.call(e, o) && (t[o] = e[o]);
|
|
584
584
|
function l() {
|
|
@@ -587,7 +587,7 @@ function Qt() {
|
|
|
587
587
|
return l.prototype = e.prototype, t.prototype = new l(), t.__super__ = e.prototype, t;
|
|
588
588
|
}, p = {}.hasOwnProperty;
|
|
589
589
|
g = H().isObject, a = G(), n = B(), Tt.exports = function(t) {
|
|
590
|
-
|
|
590
|
+
f(e, t);
|
|
591
591
|
function e(o, l, b, m) {
|
|
592
592
|
var y;
|
|
593
593
|
e.__super__.constructor.call(this, o), g(l) && (y = l, l = y.version, b = y.encoding, m = y.standalone), l || (l = "1.0"), this.type = n.Declaration, this.version = this.stringify.xmlVersion(l), b != null && (this.encoding = this.stringify.xmlEncoding(b)), m != null && (this.standalone = this.stringify.xmlStandalone(m));
|
|
@@ -603,12 +603,12 @@ function Zt() {
|
|
|
603
603
|
return ve || (ve = 1, (function() {
|
|
604
604
|
var n, a, g = function(p, t) {
|
|
605
605
|
for (var e in t)
|
|
606
|
-
|
|
606
|
+
f.call(t, e) && (p[e] = t[e]);
|
|
607
607
|
function o() {
|
|
608
608
|
this.constructor = p;
|
|
609
609
|
}
|
|
610
610
|
return o.prototype = t.prototype, p.prototype = new o(), p.__super__ = t.prototype, p;
|
|
611
|
-
},
|
|
611
|
+
}, f = {}.hasOwnProperty;
|
|
612
612
|
a = G(), n = B(), Et.exports = function(p) {
|
|
613
613
|
g(t, p);
|
|
614
614
|
function t(e, o, l, b, m, y) {
|
|
@@ -632,10 +632,10 @@ function Zt() {
|
|
|
632
632
|
}(a);
|
|
633
633
|
}).call(xr)), Et.exports;
|
|
634
634
|
}
|
|
635
|
-
var bt = { exports: {} },
|
|
635
|
+
var bt = { exports: {} }, Pr = bt.exports, Le;
|
|
636
636
|
function Jt() {
|
|
637
637
|
return Le || (Le = 1, (function() {
|
|
638
|
-
var n, a, g,
|
|
638
|
+
var n, a, g, f = function(t, e) {
|
|
639
639
|
for (var o in e)
|
|
640
640
|
p.call(e, o) && (t[o] = e[o]);
|
|
641
641
|
function l() {
|
|
@@ -644,7 +644,7 @@ function Jt() {
|
|
|
644
644
|
return l.prototype = e.prototype, t.prototype = new l(), t.__super__ = e.prototype, t;
|
|
645
645
|
}, p = {}.hasOwnProperty;
|
|
646
646
|
g = H().isObject, a = G(), n = B(), bt.exports = function(t) {
|
|
647
|
-
|
|
647
|
+
f(e, t);
|
|
648
648
|
function e(o, l, b, m) {
|
|
649
649
|
if (e.__super__.constructor.call(this, o), b == null)
|
|
650
650
|
throw new Error("Missing DTD entity name. " + this.debugInfo(b));
|
|
@@ -689,19 +689,19 @@ function Jt() {
|
|
|
689
689
|
return this.options.writer.dtdEntity(this, this.options.writer.filterOptions(o));
|
|
690
690
|
}, e;
|
|
691
691
|
}(a);
|
|
692
|
-
}).call(
|
|
692
|
+
}).call(Pr)), bt.exports;
|
|
693
693
|
}
|
|
694
|
-
var Ot = { exports: {} },
|
|
694
|
+
var Ot = { exports: {} }, Ar = Ot.exports, Ie;
|
|
695
695
|
function te() {
|
|
696
696
|
return Ie || (Ie = 1, (function() {
|
|
697
697
|
var n, a, g = function(p, t) {
|
|
698
698
|
for (var e in t)
|
|
699
|
-
|
|
699
|
+
f.call(t, e) && (p[e] = t[e]);
|
|
700
700
|
function o() {
|
|
701
701
|
this.constructor = p;
|
|
702
702
|
}
|
|
703
703
|
return o.prototype = t.prototype, p.prototype = new o(), p.__super__ = t.prototype, p;
|
|
704
|
-
},
|
|
704
|
+
}, f = {}.hasOwnProperty;
|
|
705
705
|
a = G(), n = B(), Ot.exports = function(p) {
|
|
706
706
|
g(t, p);
|
|
707
707
|
function t(e, o, l) {
|
|
@@ -713,19 +713,19 @@ function te() {
|
|
|
713
713
|
return this.options.writer.dtdElement(this, this.options.writer.filterOptions(e));
|
|
714
714
|
}, t;
|
|
715
715
|
}(a);
|
|
716
|
-
}).call(
|
|
716
|
+
}).call(Ar)), Ot.exports;
|
|
717
717
|
}
|
|
718
|
-
var Nt = { exports: {} },
|
|
718
|
+
var Nt = { exports: {} }, _r = Nt.exports, xe;
|
|
719
719
|
function ee() {
|
|
720
720
|
return xe || (xe = 1, (function() {
|
|
721
721
|
var n, a, g = function(p, t) {
|
|
722
722
|
for (var e in t)
|
|
723
|
-
|
|
723
|
+
f.call(t, e) && (p[e] = t[e]);
|
|
724
724
|
function o() {
|
|
725
725
|
this.constructor = p;
|
|
726
726
|
}
|
|
727
727
|
return o.prototype = t.prototype, p.prototype = new o(), p.__super__ = t.prototype, p;
|
|
728
|
-
},
|
|
728
|
+
}, f = {}.hasOwnProperty;
|
|
729
729
|
a = G(), n = B(), Nt.exports = function(p) {
|
|
730
730
|
g(t, p);
|
|
731
731
|
function t(e, o, l) {
|
|
@@ -747,12 +747,12 @@ function ee() {
|
|
|
747
747
|
return this.options.writer.dtdNotation(this, this.options.writer.filterOptions(e));
|
|
748
748
|
}, t;
|
|
749
749
|
}(a);
|
|
750
|
-
}).call(
|
|
750
|
+
}).call(_r)), Nt.exports;
|
|
751
751
|
}
|
|
752
|
-
var
|
|
752
|
+
var Mr = Dt.exports, Pe;
|
|
753
753
|
function re() {
|
|
754
|
-
return
|
|
755
|
-
var n, a, g,
|
|
754
|
+
return Pe || (Pe = 1, (function() {
|
|
755
|
+
var n, a, g, f, p, t, e, o, l = function(m, y) {
|
|
756
756
|
for (var d in y)
|
|
757
757
|
b.call(y, d) && (m[d] = y[d]);
|
|
758
758
|
function w() {
|
|
@@ -760,12 +760,12 @@ function re() {
|
|
|
760
760
|
}
|
|
761
761
|
return w.prototype = y.prototype, m.prototype = new w(), m.__super__ = y.prototype, m;
|
|
762
762
|
}, b = {}.hasOwnProperty;
|
|
763
|
-
o = H().isObject, e = G(), n = B(), a = Zt(),
|
|
763
|
+
o = H().isObject, e = G(), n = B(), a = Zt(), f = Jt(), g = te(), p = ee(), t = Yt(), Dt.exports = function(m) {
|
|
764
764
|
l(y, m);
|
|
765
765
|
function y(d, w, O) {
|
|
766
|
-
var I, x,
|
|
766
|
+
var I, x, _, E, s, c;
|
|
767
767
|
if (y.__super__.constructor.call(this, d), this.type = n.DocType, d.children) {
|
|
768
|
-
for (E = d.children, x = 0,
|
|
768
|
+
for (E = d.children, x = 0, _ = E.length; x < _; x++)
|
|
769
769
|
if (I = E[x], I.type === n.Element) {
|
|
770
770
|
this.name = I.name;
|
|
771
771
|
break;
|
|
@@ -803,14 +803,14 @@ function re() {
|
|
|
803
803
|
var O;
|
|
804
804
|
return O = new g(this, d, w), this.children.push(O), this;
|
|
805
805
|
}, y.prototype.attList = function(d, w, O, I, x) {
|
|
806
|
-
var
|
|
807
|
-
return
|
|
806
|
+
var _;
|
|
807
|
+
return _ = new a(this, d, w, O, I, x), this.children.push(_), this;
|
|
808
808
|
}, y.prototype.entity = function(d, w) {
|
|
809
809
|
var O;
|
|
810
|
-
return O = new
|
|
810
|
+
return O = new f(this, !1, d, w), this.children.push(O), this;
|
|
811
811
|
}, y.prototype.pEntity = function(d, w) {
|
|
812
812
|
var O;
|
|
813
|
-
return O = new
|
|
813
|
+
return O = new f(this, !0, d, w), this.children.push(O), this;
|
|
814
814
|
}, y.prototype.notation = function(d, w) {
|
|
815
815
|
var O;
|
|
816
816
|
return O = new p(this, d, w), this.children.push(O), this;
|
|
@@ -832,19 +832,19 @@ function re() {
|
|
|
832
832
|
return !(!y.__super__.isEqualNode.apply(this, arguments).isEqualNode(d) || d.name !== this.name || d.publicId !== this.publicId || d.systemId !== this.systemId);
|
|
833
833
|
}, y;
|
|
834
834
|
}(e);
|
|
835
|
-
}).call(
|
|
835
|
+
}).call(Mr)), Dt.exports;
|
|
836
836
|
}
|
|
837
|
-
var vt = { exports: {} }, Cr = vt.exports,
|
|
837
|
+
var vt = { exports: {} }, Cr = vt.exports, Ae;
|
|
838
838
|
function ne() {
|
|
839
|
-
return
|
|
839
|
+
return Ae || (Ae = 1, (function() {
|
|
840
840
|
var n, a, g = function(p, t) {
|
|
841
841
|
for (var e in t)
|
|
842
|
-
|
|
842
|
+
f.call(t, e) && (p[e] = t[e]);
|
|
843
843
|
function o() {
|
|
844
844
|
this.constructor = p;
|
|
845
845
|
}
|
|
846
846
|
return o.prototype = t.prototype, p.prototype = new o(), p.__super__ = t.prototype, p;
|
|
847
|
-
},
|
|
847
|
+
}, f = {}.hasOwnProperty;
|
|
848
848
|
n = B(), a = G(), vt.exports = function(p) {
|
|
849
849
|
g(t, p);
|
|
850
850
|
function t(e, o) {
|
|
@@ -860,17 +860,17 @@ function ne() {
|
|
|
860
860
|
}(a);
|
|
861
861
|
}).call(Cr)), vt.exports;
|
|
862
862
|
}
|
|
863
|
-
var Lt = { exports: {} }, Sr = Lt.exports,
|
|
863
|
+
var Lt = { exports: {} }, Sr = Lt.exports, _e;
|
|
864
864
|
function ie() {
|
|
865
|
-
return
|
|
865
|
+
return _e || (_e = 1, (function() {
|
|
866
866
|
var n, a, g = function(p, t) {
|
|
867
867
|
for (var e in t)
|
|
868
|
-
|
|
868
|
+
f.call(t, e) && (p[e] = t[e]);
|
|
869
869
|
function o() {
|
|
870
870
|
this.constructor = p;
|
|
871
871
|
}
|
|
872
872
|
return o.prototype = t.prototype, p.prototype = new o(), p.__super__ = t.prototype, p;
|
|
873
|
-
},
|
|
873
|
+
}, f = {}.hasOwnProperty;
|
|
874
874
|
n = B(), a = jt(), Lt.exports = function(p) {
|
|
875
875
|
g(t, p);
|
|
876
876
|
function t(e, o) {
|
|
@@ -903,17 +903,17 @@ function ie() {
|
|
|
903
903
|
}(a);
|
|
904
904
|
}).call(Sr)), Lt.exports;
|
|
905
905
|
}
|
|
906
|
-
var It = { exports: {} }, Fr = It.exports,
|
|
906
|
+
var It = { exports: {} }, Fr = It.exports, Me;
|
|
907
907
|
function oe() {
|
|
908
|
-
return
|
|
908
|
+
return Me || (Me = 1, (function() {
|
|
909
909
|
var n, a, g = function(p, t) {
|
|
910
910
|
for (var e in t)
|
|
911
|
-
|
|
911
|
+
f.call(t, e) && (p[e] = t[e]);
|
|
912
912
|
function o() {
|
|
913
913
|
this.constructor = p;
|
|
914
914
|
}
|
|
915
915
|
return o.prototype = t.prototype, p.prototype = new o(), p.__super__ = t.prototype, p;
|
|
916
|
-
},
|
|
916
|
+
}, f = {}.hasOwnProperty;
|
|
917
917
|
n = B(), a = jt(), It.exports = function(p) {
|
|
918
918
|
g(t, p);
|
|
919
919
|
function t(e, o, l) {
|
|
@@ -936,12 +936,12 @@ function er() {
|
|
|
936
936
|
return Ce || (Ce = 1, (function() {
|
|
937
937
|
var n, a, g = function(p, t) {
|
|
938
938
|
for (var e in t)
|
|
939
|
-
|
|
939
|
+
f.call(t, e) && (p[e] = t[e]);
|
|
940
940
|
function o() {
|
|
941
941
|
this.constructor = p;
|
|
942
942
|
}
|
|
943
943
|
return o.prototype = t.prototype, p.prototype = new o(), p.__super__ = t.prototype, p;
|
|
944
|
-
},
|
|
944
|
+
}, f = {}.hasOwnProperty;
|
|
945
945
|
a = G(), n = B(), xt.exports = function(p) {
|
|
946
946
|
g(t, p);
|
|
947
947
|
function t(e) {
|
|
@@ -955,10 +955,10 @@ function er() {
|
|
|
955
955
|
}(a);
|
|
956
956
|
}).call(Xr)), xt.exports;
|
|
957
957
|
}
|
|
958
|
-
var
|
|
958
|
+
var Pt = { exports: {} }, Rr = Pt.exports, Se;
|
|
959
959
|
function jr() {
|
|
960
960
|
return Se || (Se = 1, (function() {
|
|
961
|
-
|
|
961
|
+
Pt.exports = function() {
|
|
962
962
|
function n(a) {
|
|
963
963
|
this.nodes = a;
|
|
964
964
|
}
|
|
@@ -972,12 +972,12 @@ function jr() {
|
|
|
972
972
|
return this.nodes[a] || null;
|
|
973
973
|
}, n;
|
|
974
974
|
}();
|
|
975
|
-
}).call(Rr)),
|
|
975
|
+
}).call(Rr)), Pt.exports;
|
|
976
976
|
}
|
|
977
|
-
var
|
|
977
|
+
var At = { exports: {} }, Br = At.exports, Fe;
|
|
978
978
|
function qr() {
|
|
979
979
|
return Fe || (Fe = 1, (function() {
|
|
980
|
-
|
|
980
|
+
At.exports = {
|
|
981
981
|
Disconnected: 1,
|
|
982
982
|
Preceding: 2,
|
|
983
983
|
Following: 4,
|
|
@@ -985,15 +985,15 @@ function qr() {
|
|
|
985
985
|
ContainedBy: 16,
|
|
986
986
|
ImplementationSpecific: 32
|
|
987
987
|
};
|
|
988
|
-
}).call(Br)),
|
|
988
|
+
}).call(Br)), At.exports;
|
|
989
989
|
}
|
|
990
990
|
var Ur = ft.exports, Xe;
|
|
991
991
|
function G() {
|
|
992
992
|
return Xe || (Xe = 1, (function() {
|
|
993
|
-
var n, a, g,
|
|
994
|
-
x = H(), I = x.isObject, O = x.isFunction, w = x.isEmpty, d = x.getValue, o = null, g = null,
|
|
993
|
+
var n, a, g, f, p, t, e, o, l, b, m, y, d, w, O, I, x, _ = {}.hasOwnProperty;
|
|
994
|
+
x = H(), I = x.isObject, O = x.isFunction, w = x.isEmpty, d = x.getValue, o = null, g = null, f = null, p = null, t = null, m = null, y = null, b = null, e = null, a = null, l = null, n = null, ft.exports = function() {
|
|
995
995
|
function E(s) {
|
|
996
|
-
this.parent = s, this.parent && (this.options = this.parent.options, this.stringify = this.parent.stringify), this.value = null, this.children = [], this.baseURI = null, o || (o = Kt(), g = zt(),
|
|
996
|
+
this.parent = s, this.parent && (this.options = this.parent.options, this.stringify = this.parent.stringify), this.value = null, this.children = [], this.baseURI = null, o || (o = Kt(), g = zt(), f = Ht(), p = Qt(), t = re(), m = ne(), y = ie(), b = oe(), e = er(), a = B(), l = jr(), Yt(), n = qr());
|
|
997
997
|
}
|
|
998
998
|
return Object.defineProperty(E.prototype, "nodeName", {
|
|
999
999
|
get: function() {
|
|
@@ -1039,9 +1039,9 @@ function G() {
|
|
|
1039
1039
|
}
|
|
1040
1040
|
}), Object.defineProperty(E.prototype, "textContent", {
|
|
1041
1041
|
get: function() {
|
|
1042
|
-
var s, c,
|
|
1042
|
+
var s, c, h, D, L;
|
|
1043
1043
|
if (this.nodeType === a.Element || this.nodeType === a.DocumentFragment) {
|
|
1044
|
-
for (L = "", D = this.children, c = 0,
|
|
1044
|
+
for (L = "", D = this.children, c = 0, h = D.length; c < h; c++)
|
|
1045
1045
|
s = D[c], s.textContent && (L += s.textContent);
|
|
1046
1046
|
return L;
|
|
1047
1047
|
} else
|
|
@@ -1051,56 +1051,56 @@ function G() {
|
|
|
1051
1051
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
1052
1052
|
}
|
|
1053
1053
|
}), E.prototype.setParent = function(s) {
|
|
1054
|
-
var c,
|
|
1055
|
-
for (this.parent = s, s && (this.options = s.options, this.stringify = s.stringify), L = this.children, v = [],
|
|
1056
|
-
c = L[
|
|
1054
|
+
var c, h, D, L, v;
|
|
1055
|
+
for (this.parent = s, s && (this.options = s.options, this.stringify = s.stringify), L = this.children, v = [], h = 0, D = L.length; h < D; h++)
|
|
1056
|
+
c = L[h], v.push(c.setParent(this));
|
|
1057
1057
|
return v;
|
|
1058
|
-
}, E.prototype.element = function(s, c,
|
|
1059
|
-
var D, L, v, r, N,
|
|
1060
|
-
if (
|
|
1061
|
-
for (v = 0,
|
|
1062
|
-
L = s[v],
|
|
1058
|
+
}, E.prototype.element = function(s, c, h) {
|
|
1059
|
+
var D, L, v, r, N, P, M, C, F, j, X;
|
|
1060
|
+
if (P = null, c === null && h == null && (F = [{}, null], c = F[0], h = F[1]), c == null && (c = {}), c = d(c), I(c) || (j = [c, h], h = j[0], c = j[1]), s != null && (s = d(s)), Array.isArray(s))
|
|
1061
|
+
for (v = 0, M = s.length; v < M; v++)
|
|
1062
|
+
L = s[v], P = this.element(L);
|
|
1063
1063
|
else if (O(s))
|
|
1064
|
-
|
|
1064
|
+
P = this.element(s.apply());
|
|
1065
1065
|
else if (I(s)) {
|
|
1066
1066
|
for (N in s)
|
|
1067
|
-
if (
|
|
1067
|
+
if (_.call(s, N))
|
|
1068
1068
|
if (X = s[N], O(X) && (X = X.apply()), !this.options.ignoreDecorators && this.stringify.convertAttKey && N.indexOf(this.stringify.convertAttKey) === 0)
|
|
1069
|
-
|
|
1069
|
+
P = this.attribute(N.substr(this.stringify.convertAttKey.length), X);
|
|
1070
1070
|
else if (!this.options.separateArrayItems && Array.isArray(X) && w(X))
|
|
1071
|
-
|
|
1071
|
+
P = this.dummy();
|
|
1072
1072
|
else if (I(X) && w(X))
|
|
1073
|
-
|
|
1073
|
+
P = this.element(N);
|
|
1074
1074
|
else if (!this.options.keepNullNodes && X == null)
|
|
1075
|
-
|
|
1075
|
+
P = this.dummy();
|
|
1076
1076
|
else if (!this.options.separateArrayItems && Array.isArray(X))
|
|
1077
1077
|
for (r = 0, C = X.length; r < C; r++)
|
|
1078
|
-
L = X[r], D = {}, D[N] = L,
|
|
1079
|
-
else I(X) ? !this.options.ignoreDecorators && this.stringify.convertTextKey && N.indexOf(this.stringify.convertTextKey) === 0 ?
|
|
1080
|
-
} else !this.options.keepNullNodes &&
|
|
1081
|
-
if (
|
|
1078
|
+
L = X[r], D = {}, D[N] = L, P = this.element(D);
|
|
1079
|
+
else I(X) ? !this.options.ignoreDecorators && this.stringify.convertTextKey && N.indexOf(this.stringify.convertTextKey) === 0 ? P = this.element(X) : (P = this.element(N), P.element(X)) : P = this.element(N, X);
|
|
1080
|
+
} else !this.options.keepNullNodes && h === null ? P = this.dummy() : !this.options.ignoreDecorators && this.stringify.convertTextKey && s.indexOf(this.stringify.convertTextKey) === 0 ? P = this.text(h) : !this.options.ignoreDecorators && this.stringify.convertCDataKey && s.indexOf(this.stringify.convertCDataKey) === 0 ? P = this.cdata(h) : !this.options.ignoreDecorators && this.stringify.convertCommentKey && s.indexOf(this.stringify.convertCommentKey) === 0 ? P = this.comment(h) : !this.options.ignoreDecorators && this.stringify.convertRawKey && s.indexOf(this.stringify.convertRawKey) === 0 ? P = this.raw(h) : !this.options.ignoreDecorators && this.stringify.convertPIKey && s.indexOf(this.stringify.convertPIKey) === 0 ? P = this.instruction(s.substr(this.stringify.convertPIKey.length), h) : P = this.node(s, c, h);
|
|
1081
|
+
if (P == null)
|
|
1082
1082
|
throw new Error("Could not create any elements with: " + s + ". " + this.debugInfo());
|
|
1083
|
-
return
|
|
1084
|
-
}, E.prototype.insertBefore = function(s, c,
|
|
1083
|
+
return P;
|
|
1084
|
+
}, E.prototype.insertBefore = function(s, c, h) {
|
|
1085
1085
|
var D, L, v, r, N;
|
|
1086
1086
|
if (s != null && s.type)
|
|
1087
1087
|
return v = s, r = c, v.setParent(this), r ? (L = children.indexOf(r), N = children.splice(L), children.push(v), Array.prototype.push.apply(children, N)) : children.push(v), v;
|
|
1088
1088
|
if (this.isRoot)
|
|
1089
1089
|
throw new Error("Cannot insert elements at root level. " + this.debugInfo(s));
|
|
1090
|
-
return L = this.parent.children.indexOf(this), N = this.parent.children.splice(L), D = this.parent.element(s, c,
|
|
1091
|
-
}, E.prototype.insertAfter = function(s, c,
|
|
1090
|
+
return L = this.parent.children.indexOf(this), N = this.parent.children.splice(L), D = this.parent.element(s, c, h), Array.prototype.push.apply(this.parent.children, N), D;
|
|
1091
|
+
}, E.prototype.insertAfter = function(s, c, h) {
|
|
1092
1092
|
var D, L, v;
|
|
1093
1093
|
if (this.isRoot)
|
|
1094
1094
|
throw new Error("Cannot insert elements at root level. " + this.debugInfo(s));
|
|
1095
|
-
return L = this.parent.children.indexOf(this), v = this.parent.children.splice(L + 1), D = this.parent.element(s, c,
|
|
1095
|
+
return L = this.parent.children.indexOf(this), v = this.parent.children.splice(L + 1), D = this.parent.element(s, c, h), Array.prototype.push.apply(this.parent.children, v), D;
|
|
1096
1096
|
}, E.prototype.remove = function() {
|
|
1097
1097
|
var s;
|
|
1098
1098
|
if (this.isRoot)
|
|
1099
1099
|
throw new Error("Cannot remove the root element. " + this.debugInfo());
|
|
1100
1100
|
return s = this.parent.children.indexOf(this), [].splice.apply(this.parent.children, [s, s - s + 1].concat([])), this.parent;
|
|
1101
|
-
}, E.prototype.node = function(s, c,
|
|
1101
|
+
}, E.prototype.node = function(s, c, h) {
|
|
1102
1102
|
var D, L;
|
|
1103
|
-
return s != null && (s = d(s)), c || (c = {}), c = d(c), I(c) || (L = [c,
|
|
1103
|
+
return s != null && (s = d(s)), c || (c = {}), c = d(c), I(c) || (L = [c, h], h = L[0], c = L[1]), D = new o(this, s, c), h != null && D.text(h), this.children.push(D), D;
|
|
1104
1104
|
}, E.prototype.text = function(s) {
|
|
1105
1105
|
var c;
|
|
1106
1106
|
return I(s) && this.element(s), c = new y(this, s), this.children.push(c), this;
|
|
@@ -1109,13 +1109,13 @@ function G() {
|
|
|
1109
1109
|
return c = new g(this, s), this.children.push(c), this;
|
|
1110
1110
|
}, E.prototype.comment = function(s) {
|
|
1111
1111
|
var c;
|
|
1112
|
-
return c = new
|
|
1112
|
+
return c = new f(this, s), this.children.push(c), this;
|
|
1113
1113
|
}, E.prototype.commentBefore = function(s) {
|
|
1114
|
-
var c,
|
|
1115
|
-
return c = this.parent.children.indexOf(this),
|
|
1114
|
+
var c, h;
|
|
1115
|
+
return c = this.parent.children.indexOf(this), h = this.parent.children.splice(c), this.parent.comment(s), Array.prototype.push.apply(this.parent.children, h), this;
|
|
1116
1116
|
}, E.prototype.commentAfter = function(s) {
|
|
1117
|
-
var c,
|
|
1118
|
-
return c = this.parent.children.indexOf(this),
|
|
1117
|
+
var c, h;
|
|
1118
|
+
return c = this.parent.children.indexOf(this), h = this.parent.children.splice(c + 1), this.parent.comment(s), Array.prototype.push.apply(this.parent.children, h), this;
|
|
1119
1119
|
}, E.prototype.raw = function(s) {
|
|
1120
1120
|
var c;
|
|
1121
1121
|
return c = new m(this, s), this.children.push(c), this;
|
|
@@ -1123,32 +1123,32 @@ function G() {
|
|
|
1123
1123
|
var s;
|
|
1124
1124
|
return s = new e(this), s;
|
|
1125
1125
|
}, E.prototype.instruction = function(s, c) {
|
|
1126
|
-
var
|
|
1126
|
+
var h, D, L, v, r;
|
|
1127
1127
|
if (s != null && (s = d(s)), c != null && (c = d(c)), Array.isArray(s))
|
|
1128
1128
|
for (v = 0, r = s.length; v < r; v++)
|
|
1129
|
-
|
|
1129
|
+
h = s[v], this.instruction(h);
|
|
1130
1130
|
else if (I(s))
|
|
1131
|
-
for (
|
|
1132
|
-
|
|
1131
|
+
for (h in s)
|
|
1132
|
+
_.call(s, h) && (D = s[h], this.instruction(h, D));
|
|
1133
1133
|
else
|
|
1134
1134
|
O(c) && (c = c.apply()), L = new b(this, s, c), this.children.push(L);
|
|
1135
1135
|
return this;
|
|
1136
1136
|
}, E.prototype.instructionBefore = function(s, c) {
|
|
1137
|
-
var
|
|
1138
|
-
return
|
|
1137
|
+
var h, D;
|
|
1138
|
+
return h = this.parent.children.indexOf(this), D = this.parent.children.splice(h), this.parent.instruction(s, c), Array.prototype.push.apply(this.parent.children, D), this;
|
|
1139
1139
|
}, E.prototype.instructionAfter = function(s, c) {
|
|
1140
|
-
var
|
|
1141
|
-
return
|
|
1142
|
-
}, E.prototype.declaration = function(s, c,
|
|
1140
|
+
var h, D;
|
|
1141
|
+
return h = this.parent.children.indexOf(this), D = this.parent.children.splice(h + 1), this.parent.instruction(s, c), Array.prototype.push.apply(this.parent.children, D), this;
|
|
1142
|
+
}, E.prototype.declaration = function(s, c, h) {
|
|
1143
1143
|
var D, L;
|
|
1144
|
-
return D = this.document(), L = new p(D, s, c,
|
|
1144
|
+
return D = this.document(), L = new p(D, s, c, h), D.children.length === 0 ? D.children.unshift(L) : D.children[0].type === a.Declaration ? D.children[0] = L : D.children.unshift(L), D.root() || D;
|
|
1145
1145
|
}, E.prototype.dtd = function(s, c) {
|
|
1146
|
-
var
|
|
1147
|
-
for (D = this.document(), L = new t(D, s, c), C = D.children, v = r = 0,
|
|
1148
|
-
if (
|
|
1146
|
+
var h, D, L, v, r, N, P, M, C, F;
|
|
1147
|
+
for (D = this.document(), L = new t(D, s, c), C = D.children, v = r = 0, P = C.length; r < P; v = ++r)
|
|
1148
|
+
if (h = C[v], h.type === a.DocType)
|
|
1149
1149
|
return D.children[v] = L, L;
|
|
1150
|
-
for (F = D.children, v = N = 0,
|
|
1151
|
-
if (
|
|
1150
|
+
for (F = D.children, v = N = 0, M = F.length; N < M; v = ++N)
|
|
1151
|
+
if (h = F[v], h.isRoot)
|
|
1152
1152
|
return D.children.splice(v, 0, L), L;
|
|
1153
1153
|
return D.children.push(L), L;
|
|
1154
1154
|
}, E.prototype.up = function() {
|
|
@@ -1187,12 +1187,12 @@ function G() {
|
|
|
1187
1187
|
var c;
|
|
1188
1188
|
return c = s.root().clone(), c.parent = this, c.isRoot = !1, this.children.push(c), this;
|
|
1189
1189
|
}, E.prototype.debugInfo = function(s) {
|
|
1190
|
-
var c,
|
|
1191
|
-
return s = s || this.name, s == null && !((c = this.parent) != null && c.name) ? "" : s == null ? "parent: <" + this.parent.name + ">" : (
|
|
1192
|
-
}, E.prototype.ele = function(s, c,
|
|
1193
|
-
return this.element(s, c,
|
|
1194
|
-
}, E.prototype.nod = function(s, c,
|
|
1195
|
-
return this.node(s, c,
|
|
1190
|
+
var c, h;
|
|
1191
|
+
return s = s || this.name, s == null && !((c = this.parent) != null && c.name) ? "" : s == null ? "parent: <" + this.parent.name + ">" : (h = this.parent) != null && h.name ? "node: <" + s + ">, parent: <" + this.parent.name + ">" : "node: <" + s + ">";
|
|
1192
|
+
}, E.prototype.ele = function(s, c, h) {
|
|
1193
|
+
return this.element(s, c, h);
|
|
1194
|
+
}, E.prototype.nod = function(s, c, h) {
|
|
1195
|
+
return this.node(s, c, h);
|
|
1196
1196
|
}, E.prototype.txt = function(s) {
|
|
1197
1197
|
return this.text(s);
|
|
1198
1198
|
}, E.prototype.dat = function(s) {
|
|
@@ -1203,12 +1203,12 @@ function G() {
|
|
|
1203
1203
|
return this.instruction(s, c);
|
|
1204
1204
|
}, E.prototype.doc = function() {
|
|
1205
1205
|
return this.document();
|
|
1206
|
-
}, E.prototype.dec = function(s, c,
|
|
1207
|
-
return this.declaration(s, c,
|
|
1208
|
-
}, E.prototype.e = function(s, c,
|
|
1209
|
-
return this.element(s, c,
|
|
1210
|
-
}, E.prototype.n = function(s, c,
|
|
1211
|
-
return this.node(s, c,
|
|
1206
|
+
}, E.prototype.dec = function(s, c, h) {
|
|
1207
|
+
return this.declaration(s, c, h);
|
|
1208
|
+
}, E.prototype.e = function(s, c, h) {
|
|
1209
|
+
return this.element(s, c, h);
|
|
1210
|
+
}, E.prototype.n = function(s, c, h) {
|
|
1211
|
+
return this.node(s, c, h);
|
|
1212
1212
|
}, E.prototype.t = function(s) {
|
|
1213
1213
|
return this.text(s);
|
|
1214
1214
|
}, E.prototype.d = function(s) {
|
|
@@ -1240,8 +1240,8 @@ function G() {
|
|
|
1240
1240
|
}, E.prototype.hasAttributes = function() {
|
|
1241
1241
|
return this.attribs.length !== 0;
|
|
1242
1242
|
}, E.prototype.compareDocumentPosition = function(s) {
|
|
1243
|
-
var c,
|
|
1244
|
-
return c = this, c === s ? 0 : this.document() !== s.document() ? (
|
|
1243
|
+
var c, h;
|
|
1244
|
+
return c = this, c === s ? 0 : this.document() !== s.document() ? (h = n.Disconnected | n.ImplementationSpecific, Math.random() < 0.5 ? h |= n.Preceding : h |= n.Following, h) : c.isAncestor(s) ? n.Contains | n.Preceding : c.isDescendant(s) ? n.Contains | n.Following : c.isPreceding(s) ? n.Preceding : n.Following;
|
|
1245
1245
|
}, E.prototype.isSameNode = function(s) {
|
|
1246
1246
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
1247
1247
|
}, E.prototype.lookupPrefix = function(s) {
|
|
@@ -1251,149 +1251,149 @@ function G() {
|
|
|
1251
1251
|
}, E.prototype.lookupNamespaceURI = function(s) {
|
|
1252
1252
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
1253
1253
|
}, E.prototype.isEqualNode = function(s) {
|
|
1254
|
-
var c,
|
|
1254
|
+
var c, h, D;
|
|
1255
1255
|
if (s.nodeType !== this.nodeType || s.children.length !== this.children.length)
|
|
1256
1256
|
return !1;
|
|
1257
|
-
for (c =
|
|
1257
|
+
for (c = h = 0, D = this.children.length - 1; 0 <= D ? h <= D : h >= D; c = 0 <= D ? ++h : --h)
|
|
1258
1258
|
if (!this.children[c].isEqualNode(s.children[c]))
|
|
1259
1259
|
return !1;
|
|
1260
1260
|
return !0;
|
|
1261
1261
|
}, E.prototype.getFeature = function(s, c) {
|
|
1262
1262
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
1263
|
-
}, E.prototype.setUserData = function(s, c,
|
|
1263
|
+
}, E.prototype.setUserData = function(s, c, h) {
|
|
1264
1264
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
1265
1265
|
}, E.prototype.getUserData = function(s) {
|
|
1266
1266
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
1267
1267
|
}, E.prototype.contains = function(s) {
|
|
1268
1268
|
return s ? s === this || this.isDescendant(s) : !1;
|
|
1269
1269
|
}, E.prototype.isDescendant = function(s) {
|
|
1270
|
-
var c,
|
|
1270
|
+
var c, h, D, L, v;
|
|
1271
1271
|
for (v = this.children, D = 0, L = v.length; D < L; D++)
|
|
1272
|
-
if (c = v[D], s === c || (
|
|
1272
|
+
if (c = v[D], s === c || (h = c.isDescendant(s), h))
|
|
1273
1273
|
return !0;
|
|
1274
1274
|
return !1;
|
|
1275
1275
|
}, E.prototype.isAncestor = function(s) {
|
|
1276
1276
|
return s.isDescendant(this);
|
|
1277
1277
|
}, E.prototype.isPreceding = function(s) {
|
|
1278
|
-
var c,
|
|
1279
|
-
return c = this.treePosition(s),
|
|
1278
|
+
var c, h;
|
|
1279
|
+
return c = this.treePosition(s), h = this.treePosition(this), c === -1 || h === -1 ? !1 : c < h;
|
|
1280
1280
|
}, E.prototype.isFollowing = function(s) {
|
|
1281
|
-
var c,
|
|
1282
|
-
return c = this.treePosition(s),
|
|
1281
|
+
var c, h;
|
|
1282
|
+
return c = this.treePosition(s), h = this.treePosition(this), c === -1 || h === -1 ? !1 : c > h;
|
|
1283
1283
|
}, E.prototype.treePosition = function(s) {
|
|
1284
|
-
var c,
|
|
1285
|
-
return
|
|
1286
|
-
if (
|
|
1284
|
+
var c, h;
|
|
1285
|
+
return h = 0, c = !1, this.foreachTreeNode(this.document(), function(D) {
|
|
1286
|
+
if (h++, !c && D === s)
|
|
1287
1287
|
return c = !0;
|
|
1288
|
-
}), c ?
|
|
1288
|
+
}), c ? h : -1;
|
|
1289
1289
|
}, E.prototype.foreachTreeNode = function(s, c) {
|
|
1290
|
-
var
|
|
1290
|
+
var h, D, L, v, r;
|
|
1291
1291
|
for (s || (s = this.document()), v = s.children, D = 0, L = v.length; D < L; D++) {
|
|
1292
|
-
if (
|
|
1292
|
+
if (h = v[D], r = c(h))
|
|
1293
1293
|
return r;
|
|
1294
|
-
if (r = this.foreachTreeNode(
|
|
1294
|
+
if (r = this.foreachTreeNode(h, c), r)
|
|
1295
1295
|
return r;
|
|
1296
1296
|
}
|
|
1297
1297
|
}, E;
|
|
1298
1298
|
}();
|
|
1299
1299
|
}).call(Ur)), ft.exports;
|
|
1300
1300
|
}
|
|
1301
|
-
var
|
|
1301
|
+
var _t = { exports: {} }, Vr = _t.exports, Re;
|
|
1302
1302
|
function rr() {
|
|
1303
1303
|
return Re || (Re = 1, (function() {
|
|
1304
|
-
var n = function(g,
|
|
1304
|
+
var n = function(g, f) {
|
|
1305
1305
|
return function() {
|
|
1306
|
-
return g.apply(
|
|
1306
|
+
return g.apply(f, arguments);
|
|
1307
1307
|
};
|
|
1308
1308
|
}, a = {}.hasOwnProperty;
|
|
1309
|
-
|
|
1310
|
-
function g(
|
|
1309
|
+
_t.exports = function() {
|
|
1310
|
+
function g(f) {
|
|
1311
1311
|
this.assertLegalName = n(this.assertLegalName, this), this.assertLegalChar = n(this.assertLegalChar, this);
|
|
1312
1312
|
var p, t, e;
|
|
1313
|
-
|
|
1313
|
+
f || (f = {}), this.options = f, this.options.version || (this.options.version = "1.0"), t = f.stringify || {};
|
|
1314
1314
|
for (p in t)
|
|
1315
1315
|
a.call(t, p) && (e = t[p], this[p] = e);
|
|
1316
1316
|
}
|
|
1317
|
-
return g.prototype.name = function(
|
|
1318
|
-
return this.options.noValidation ?
|
|
1319
|
-
}, g.prototype.text = function(
|
|
1320
|
-
return this.options.noValidation ?
|
|
1321
|
-
}, g.prototype.cdata = function(
|
|
1322
|
-
return this.options.noValidation ?
|
|
1323
|
-
}, g.prototype.comment = function(
|
|
1317
|
+
return g.prototype.name = function(f) {
|
|
1318
|
+
return this.options.noValidation ? f : this.assertLegalName("" + f || "");
|
|
1319
|
+
}, g.prototype.text = function(f) {
|
|
1320
|
+
return this.options.noValidation ? f : this.assertLegalChar(this.textEscape("" + f || ""));
|
|
1321
|
+
}, g.prototype.cdata = function(f) {
|
|
1322
|
+
return this.options.noValidation ? f : (f = "" + f || "", f = f.replace("]]>", "]]]]><![CDATA[>"), this.assertLegalChar(f));
|
|
1323
|
+
}, g.prototype.comment = function(f) {
|
|
1324
1324
|
if (this.options.noValidation)
|
|
1325
|
-
return
|
|
1326
|
-
if (
|
|
1327
|
-
throw new Error("Comment text cannot contain double-hypen: " +
|
|
1328
|
-
return this.assertLegalChar(
|
|
1329
|
-
}, g.prototype.raw = function(
|
|
1330
|
-
return this.options.noValidation ?
|
|
1331
|
-
}, g.prototype.attValue = function(
|
|
1332
|
-
return this.options.noValidation ?
|
|
1333
|
-
}, g.prototype.insTarget = function(
|
|
1334
|
-
return this.options.noValidation ?
|
|
1335
|
-
}, g.prototype.insValue = function(
|
|
1325
|
+
return f;
|
|
1326
|
+
if (f = "" + f || "", f.match(/--/))
|
|
1327
|
+
throw new Error("Comment text cannot contain double-hypen: " + f);
|
|
1328
|
+
return this.assertLegalChar(f);
|
|
1329
|
+
}, g.prototype.raw = function(f) {
|
|
1330
|
+
return this.options.noValidation ? f : "" + f || "";
|
|
1331
|
+
}, g.prototype.attValue = function(f) {
|
|
1332
|
+
return this.options.noValidation ? f : this.assertLegalChar(this.attEscape(f = "" + f || ""));
|
|
1333
|
+
}, g.prototype.insTarget = function(f) {
|
|
1334
|
+
return this.options.noValidation ? f : this.assertLegalChar("" + f || "");
|
|
1335
|
+
}, g.prototype.insValue = function(f) {
|
|
1336
1336
|
if (this.options.noValidation)
|
|
1337
|
-
return
|
|
1338
|
-
if (
|
|
1339
|
-
throw new Error("Invalid processing instruction value: " +
|
|
1340
|
-
return this.assertLegalChar(
|
|
1341
|
-
}, g.prototype.xmlVersion = function(
|
|
1337
|
+
return f;
|
|
1338
|
+
if (f = "" + f || "", f.match(/\?>/))
|
|
1339
|
+
throw new Error("Invalid processing instruction value: " + f);
|
|
1340
|
+
return this.assertLegalChar(f);
|
|
1341
|
+
}, g.prototype.xmlVersion = function(f) {
|
|
1342
1342
|
if (this.options.noValidation)
|
|
1343
|
-
return
|
|
1344
|
-
if (
|
|
1345
|
-
throw new Error("Invalid version number: " +
|
|
1346
|
-
return
|
|
1347
|
-
}, g.prototype.xmlEncoding = function(
|
|
1343
|
+
return f;
|
|
1344
|
+
if (f = "" + f || "", !f.match(/1\.[0-9]+/))
|
|
1345
|
+
throw new Error("Invalid version number: " + f);
|
|
1346
|
+
return f;
|
|
1347
|
+
}, g.prototype.xmlEncoding = function(f) {
|
|
1348
1348
|
if (this.options.noValidation)
|
|
1349
|
-
return
|
|
1350
|
-
if (
|
|
1351
|
-
throw new Error("Invalid encoding: " +
|
|
1352
|
-
return this.assertLegalChar(
|
|
1353
|
-
}, g.prototype.xmlStandalone = function(
|
|
1354
|
-
return this.options.noValidation ?
|
|
1355
|
-
}, g.prototype.dtdPubID = function(
|
|
1356
|
-
return this.options.noValidation ?
|
|
1357
|
-
}, g.prototype.dtdSysID = function(
|
|
1358
|
-
return this.options.noValidation ?
|
|
1359
|
-
}, g.prototype.dtdElementValue = function(
|
|
1360
|
-
return this.options.noValidation ?
|
|
1361
|
-
}, g.prototype.dtdAttType = function(
|
|
1362
|
-
return this.options.noValidation ?
|
|
1363
|
-
}, g.prototype.dtdAttDefault = function(
|
|
1364
|
-
return this.options.noValidation ?
|
|
1365
|
-
}, g.prototype.dtdEntityValue = function(
|
|
1366
|
-
return this.options.noValidation ?
|
|
1367
|
-
}, g.prototype.dtdNData = function(
|
|
1368
|
-
return this.options.noValidation ?
|
|
1369
|
-
}, g.prototype.convertAttKey = "@", g.prototype.convertPIKey = "?", g.prototype.convertTextKey = "#text", g.prototype.convertCDataKey = "#cdata", g.prototype.convertCommentKey = "#comment", g.prototype.convertRawKey = "#raw", g.prototype.assertLegalChar = function(
|
|
1349
|
+
return f;
|
|
1350
|
+
if (f = "" + f || "", !f.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))
|
|
1351
|
+
throw new Error("Invalid encoding: " + f);
|
|
1352
|
+
return this.assertLegalChar(f);
|
|
1353
|
+
}, g.prototype.xmlStandalone = function(f) {
|
|
1354
|
+
return this.options.noValidation ? f : f ? "yes" : "no";
|
|
1355
|
+
}, g.prototype.dtdPubID = function(f) {
|
|
1356
|
+
return this.options.noValidation ? f : this.assertLegalChar("" + f || "");
|
|
1357
|
+
}, g.prototype.dtdSysID = function(f) {
|
|
1358
|
+
return this.options.noValidation ? f : this.assertLegalChar("" + f || "");
|
|
1359
|
+
}, g.prototype.dtdElementValue = function(f) {
|
|
1360
|
+
return this.options.noValidation ? f : this.assertLegalChar("" + f || "");
|
|
1361
|
+
}, g.prototype.dtdAttType = function(f) {
|
|
1362
|
+
return this.options.noValidation ? f : this.assertLegalChar("" + f || "");
|
|
1363
|
+
}, g.prototype.dtdAttDefault = function(f) {
|
|
1364
|
+
return this.options.noValidation ? f : this.assertLegalChar("" + f || "");
|
|
1365
|
+
}, g.prototype.dtdEntityValue = function(f) {
|
|
1366
|
+
return this.options.noValidation ? f : this.assertLegalChar("" + f || "");
|
|
1367
|
+
}, g.prototype.dtdNData = function(f) {
|
|
1368
|
+
return this.options.noValidation ? f : this.assertLegalChar("" + f || "");
|
|
1369
|
+
}, g.prototype.convertAttKey = "@", g.prototype.convertPIKey = "?", g.prototype.convertTextKey = "#text", g.prototype.convertCDataKey = "#cdata", g.prototype.convertCommentKey = "#comment", g.prototype.convertRawKey = "#raw", g.prototype.assertLegalChar = function(f) {
|
|
1370
1370
|
var p, t;
|
|
1371
1371
|
if (this.options.noValidation)
|
|
1372
|
-
return
|
|
1372
|
+
return f;
|
|
1373
1373
|
if (p = "", this.options.version === "1.0") {
|
|
1374
|
-
if (p = /[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, t =
|
|
1375
|
-
throw new Error("Invalid character in string: " +
|
|
1376
|
-
} else if (this.options.version === "1.1" && (p = /[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, t =
|
|
1377
|
-
throw new Error("Invalid character in string: " +
|
|
1378
|
-
return
|
|
1379
|
-
}, g.prototype.assertLegalName = function(
|
|
1374
|
+
if (p = /[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, t = f.match(p))
|
|
1375
|
+
throw new Error("Invalid character in string: " + f + " at index " + t.index);
|
|
1376
|
+
} else if (this.options.version === "1.1" && (p = /[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, t = f.match(p)))
|
|
1377
|
+
throw new Error("Invalid character in string: " + f + " at index " + t.index);
|
|
1378
|
+
return f;
|
|
1379
|
+
}, g.prototype.assertLegalName = function(f) {
|
|
1380
1380
|
var p;
|
|
1381
1381
|
if (this.options.noValidation)
|
|
1382
|
-
return
|
|
1383
|
-
if (this.assertLegalChar(
|
|
1382
|
+
return f;
|
|
1383
|
+
if (this.assertLegalChar(f), p = /^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/, !f.match(p))
|
|
1384
1384
|
throw new Error("Invalid character in name");
|
|
1385
|
-
return
|
|
1386
|
-
}, g.prototype.textEscape = function(
|
|
1385
|
+
return f;
|
|
1386
|
+
}, g.prototype.textEscape = function(f) {
|
|
1387
1387
|
var p;
|
|
1388
|
-
return this.options.noValidation ?
|
|
1389
|
-
}, g.prototype.attEscape = function(
|
|
1388
|
+
return this.options.noValidation ? f : (p = this.options.noDoubleEncoding ? /(?!&\S+;)&/g : /&/g, f.replace(p, "&").replace(/</g, "<").replace(/>/g, ">").replace(/\r/g, "
"));
|
|
1389
|
+
}, g.prototype.attEscape = function(f) {
|
|
1390
1390
|
var p;
|
|
1391
|
-
return this.options.noValidation ?
|
|
1391
|
+
return this.options.noValidation ? f : (p = this.options.noDoubleEncoding ? /(?!&\S+;)&/g : /&/g, f.replace(p, "&").replace(/</g, "<").replace(/"/g, """).replace(/\t/g, "	").replace(/\n/g, "
").replace(/\r/g, "
"));
|
|
1392
1392
|
}, g;
|
|
1393
1393
|
}();
|
|
1394
|
-
}).call(Vr)),
|
|
1394
|
+
}).call(Vr)), _t.exports;
|
|
1395
1395
|
}
|
|
1396
|
-
var
|
|
1396
|
+
var Mt = { exports: {} }, Ct = { exports: {} }, St = { exports: {} }, kr = St.exports, je;
|
|
1397
1397
|
function Bt() {
|
|
1398
1398
|
return je || (je = 1, (function() {
|
|
1399
1399
|
St.exports = {
|
|
@@ -1407,13 +1407,13 @@ function Bt() {
|
|
|
1407
1407
|
var $r = Ct.exports, Be;
|
|
1408
1408
|
function nr() {
|
|
1409
1409
|
return Be || (Be = 1, (function() {
|
|
1410
|
-
var n, a, g,
|
|
1410
|
+
var n, a, g, f = {}.hasOwnProperty;
|
|
1411
1411
|
g = H().assign, n = B(), Qt(), re(), zt(), Ht(), Kt(), ne(), ie(), oe(), er(), Zt(), te(), Jt(), ee(), a = Bt(), Ct.exports = function() {
|
|
1412
1412
|
function p(t) {
|
|
1413
1413
|
var e, o, l;
|
|
1414
1414
|
t || (t = {}), this.options = t, o = t.writer || {};
|
|
1415
1415
|
for (e in o)
|
|
1416
|
-
|
|
1416
|
+
f.call(o, e) && (l = o[e], this["_" + e] = this[e], this[e] = l);
|
|
1417
1417
|
}
|
|
1418
1418
|
return p.prototype.filterOptions = function(t) {
|
|
1419
1419
|
var e, o, l, b, m, y, d, w;
|
|
@@ -1447,27 +1447,27 @@ function nr() {
|
|
|
1447
1447
|
}
|
|
1448
1448
|
return e.state = a.CloseTag, y += e.spaceBeforeSlash + ">", y += this.endline(t, e, o), e.state = a.None, this.closeNode(t, e, o), y;
|
|
1449
1449
|
}, p.prototype.element = function(t, e, o) {
|
|
1450
|
-
var l, b, m, y, d, w, O, I, x,
|
|
1451
|
-
o || (o = 0),
|
|
1450
|
+
var l, b, m, y, d, w, O, I, x, _, E, s, c, h;
|
|
1451
|
+
o || (o = 0), _ = !1, E = "", this.openNode(t, e, o), e.state = a.OpenTag, E += this.indent(t, e, o) + "<" + t.name, s = t.attribs;
|
|
1452
1452
|
for (x in s)
|
|
1453
|
-
|
|
1453
|
+
f.call(s, x) && (l = s[x], E += this.attribute(l, e, o));
|
|
1454
1454
|
if (m = t.children.length, y = m === 0 ? null : t.children[0], m === 0 || t.children.every(function(D) {
|
|
1455
1455
|
return (D.type === n.Text || D.type === n.Raw) && D.value === "";
|
|
1456
1456
|
}))
|
|
1457
1457
|
e.allowEmpty ? (E += ">", e.state = a.CloseTag, E += "</" + t.name + ">" + this.endline(t, e, o)) : (e.state = a.CloseTag, E += e.spaceBeforeSlash + "/>" + this.endline(t, e, o));
|
|
1458
1458
|
else if (e.pretty && m === 1 && (y.type === n.Text || y.type === n.Raw) && y.value != null)
|
|
1459
|
-
E += ">", e.state = a.InsideTag, e.suppressPrettyCount++,
|
|
1459
|
+
E += ">", e.state = a.InsideTag, e.suppressPrettyCount++, _ = !0, E += this.writeChildNode(y, e, o + 1), e.suppressPrettyCount--, _ = !1, e.state = a.CloseTag, E += "</" + t.name + ">" + this.endline(t, e, o);
|
|
1460
1460
|
else {
|
|
1461
1461
|
if (e.dontPrettyTextNodes) {
|
|
1462
1462
|
for (c = t.children, d = 0, O = c.length; d < O; d++)
|
|
1463
1463
|
if (b = c[d], (b.type === n.Text || b.type === n.Raw) && b.value != null) {
|
|
1464
|
-
e.suppressPrettyCount++,
|
|
1464
|
+
e.suppressPrettyCount++, _ = !0;
|
|
1465
1465
|
break;
|
|
1466
1466
|
}
|
|
1467
1467
|
}
|
|
1468
|
-
for (E += ">" + this.endline(t, e, o), e.state = a.InsideTag,
|
|
1469
|
-
b =
|
|
1470
|
-
e.state = a.CloseTag, E += this.indent(t, e, o) + "</" + t.name + ">",
|
|
1468
|
+
for (E += ">" + this.endline(t, e, o), e.state = a.InsideTag, h = t.children, w = 0, I = h.length; w < I; w++)
|
|
1469
|
+
b = h[w], E += this.writeChildNode(b, e, o + 1);
|
|
1470
|
+
e.state = a.CloseTag, E += this.indent(t, e, o) + "</" + t.name + ">", _ && e.suppressPrettyCount--, E += this.endline(t, e, o), e.state = a.None;
|
|
1471
1471
|
}
|
|
1472
1472
|
return this.closeNode(t, e, o), E;
|
|
1473
1473
|
}, p.prototype.writeChildNode = function(t, e, o) {
|
|
@@ -1530,19 +1530,19 @@ function nr() {
|
|
|
1530
1530
|
}();
|
|
1531
1531
|
}).call($r)), Ct.exports;
|
|
1532
1532
|
}
|
|
1533
|
-
var Gr =
|
|
1533
|
+
var Gr = Mt.exports, qe;
|
|
1534
1534
|
function se() {
|
|
1535
1535
|
return qe || (qe = 1, (function() {
|
|
1536
|
-
var n, a = function(
|
|
1536
|
+
var n, a = function(f, p) {
|
|
1537
1537
|
for (var t in p)
|
|
1538
|
-
g.call(p, t) && (
|
|
1538
|
+
g.call(p, t) && (f[t] = p[t]);
|
|
1539
1539
|
function e() {
|
|
1540
|
-
this.constructor =
|
|
1540
|
+
this.constructor = f;
|
|
1541
1541
|
}
|
|
1542
|
-
return e.prototype = p.prototype,
|
|
1542
|
+
return e.prototype = p.prototype, f.prototype = new e(), f.__super__ = p.prototype, f;
|
|
1543
1543
|
}, g = {}.hasOwnProperty;
|
|
1544
|
-
n = nr(),
|
|
1545
|
-
a(p,
|
|
1544
|
+
n = nr(), Mt.exports = function(f) {
|
|
1545
|
+
a(p, f);
|
|
1546
1546
|
function p(t) {
|
|
1547
1547
|
p.__super__.constructor.call(this, t);
|
|
1548
1548
|
}
|
|
@@ -1553,12 +1553,12 @@ function se() {
|
|
|
1553
1553
|
return e.pretty && m.slice(-e.newline.length) === e.newline && (m = m.slice(0, -e.newline.length)), m;
|
|
1554
1554
|
}, p;
|
|
1555
1555
|
}(n);
|
|
1556
|
-
}).call(Gr)),
|
|
1556
|
+
}).call(Gr)), Mt.exports;
|
|
1557
1557
|
}
|
|
1558
1558
|
var Wr = ut.exports, Ue;
|
|
1559
1559
|
function ir() {
|
|
1560
1560
|
return Ue || (Ue = 1, (function() {
|
|
1561
|
-
var n, a, g,
|
|
1561
|
+
var n, a, g, f, p, t, e, o = function(b, m) {
|
|
1562
1562
|
for (var y in m)
|
|
1563
1563
|
l.call(m, y) && (b[y] = m[y]);
|
|
1564
1564
|
function d() {
|
|
@@ -1566,7 +1566,7 @@ function ir() {
|
|
|
1566
1566
|
}
|
|
1567
1567
|
return d.prototype = m.prototype, b.prototype = new d(), b.__super__ = m.prototype, b;
|
|
1568
1568
|
}, l = {}.hasOwnProperty;
|
|
1569
|
-
e = H().isPlainObject, g = Je(), a = Tr(),
|
|
1569
|
+
e = H().isPlainObject, g = Je(), a = Tr(), f = G(), n = B(), t = rr(), p = se(), ut.exports = function(b) {
|
|
1570
1570
|
o(m, b);
|
|
1571
1571
|
function m(y) {
|
|
1572
1572
|
m.__super__.constructor.call(this, null), this.name = "#document", this.type = n.Document, this.documentURI = null, this.domConfig = new a(), y || (y = {}), y.writer || (y.writer = new p()), this.options = y, this.stringify = new t(y);
|
|
@@ -1675,22 +1675,22 @@ function ir() {
|
|
|
1675
1675
|
}, m.prototype.createTreeWalker = function(y, d, w) {
|
|
1676
1676
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
1677
1677
|
}, m;
|
|
1678
|
-
}(
|
|
1678
|
+
}(f);
|
|
1679
1679
|
}).call(Wr)), ut.exports;
|
|
1680
1680
|
}
|
|
1681
1681
|
var Ft = { exports: {} }, Yr = Ft.exports, Ve;
|
|
1682
1682
|
function Kr() {
|
|
1683
1683
|
return Ve || (Ve = 1, (function() {
|
|
1684
|
-
var n, a, g,
|
|
1685
|
-
D = H(), c = D.isObject, s = D.isFunction,
|
|
1686
|
-
function v(r, N,
|
|
1687
|
-
var
|
|
1688
|
-
this.name = "?xml", this.type = n.Document, r || (r = {}),
|
|
1689
|
-
}, this.onEndCallback =
|
|
1684
|
+
var n, a, g, f, p, t, e, o, l, b, m, y, d, w, O, I, x, _, E, s, c, h, D, L = {}.hasOwnProperty;
|
|
1685
|
+
D = H(), c = D.isObject, s = D.isFunction, h = D.isPlainObject, E = D.getValue, n = B(), y = ir(), d = Kt(), f = zt(), p = Ht(), O = ne(), _ = ie(), w = oe(), b = Qt(), m = re(), t = Zt(), o = Jt(), e = te(), l = ee(), g = tr(), x = rr(), I = se(), a = Bt(), Ft.exports = function() {
|
|
1686
|
+
function v(r, N, P) {
|
|
1687
|
+
var M;
|
|
1688
|
+
this.name = "?xml", this.type = n.Document, r || (r = {}), M = {}, r.writer ? h(r.writer) && (M = r.writer, r.writer = new I()) : r.writer = new I(), this.options = r, this.writer = r.writer, this.writerOptions = this.writer.filterOptions(M), this.stringify = new x(r), this.onDataCallback = N || function() {
|
|
1689
|
+
}, this.onEndCallback = P || function() {
|
|
1690
1690
|
}, this.currentNode = null, this.currentLevel = -1, this.openTags = {}, this.documentStarted = !1, this.documentCompleted = !1, this.root = null;
|
|
1691
1691
|
}
|
|
1692
1692
|
return v.prototype.createChildNode = function(r) {
|
|
1693
|
-
var N,
|
|
1693
|
+
var N, P, M, C, F, j, X, S;
|
|
1694
1694
|
switch (r.type) {
|
|
1695
1695
|
case n.CData:
|
|
1696
1696
|
this.cdata(r.value);
|
|
@@ -1699,10 +1699,10 @@ function Kr() {
|
|
|
1699
1699
|
this.comment(r.value);
|
|
1700
1700
|
break;
|
|
1701
1701
|
case n.Element:
|
|
1702
|
-
|
|
1703
|
-
for (
|
|
1704
|
-
L.call(X,
|
|
1705
|
-
this.node(r.name,
|
|
1702
|
+
M = {}, X = r.attribs;
|
|
1703
|
+
for (P in X)
|
|
1704
|
+
L.call(X, P) && (N = X[P], M[P] = N.value);
|
|
1705
|
+
this.node(r.name, M);
|
|
1706
1706
|
break;
|
|
1707
1707
|
case n.Dummy:
|
|
1708
1708
|
this.dummy();
|
|
@@ -1724,39 +1724,39 @@ function Kr() {
|
|
|
1724
1724
|
return this;
|
|
1725
1725
|
}, v.prototype.dummy = function() {
|
|
1726
1726
|
return this;
|
|
1727
|
-
}, v.prototype.node = function(r, N,
|
|
1728
|
-
var
|
|
1727
|
+
}, v.prototype.node = function(r, N, P) {
|
|
1728
|
+
var M;
|
|
1729
1729
|
if (r == null)
|
|
1730
1730
|
throw new Error("Missing node name.");
|
|
1731
1731
|
if (this.root && this.currentLevel === -1)
|
|
1732
1732
|
throw new Error("Document can only have one root node. " + this.debugInfo(r));
|
|
1733
|
-
return this.openCurrent(), r = E(r), N == null && (N = {}), N = E(N), c(N) || (
|
|
1734
|
-
}, v.prototype.element = function(r, N,
|
|
1735
|
-
var
|
|
1733
|
+
return this.openCurrent(), r = E(r), N == null && (N = {}), N = E(N), c(N) || (M = [N, P], P = M[0], N = M[1]), this.currentNode = new d(this, r, N), this.currentNode.children = !1, this.currentLevel++, this.openTags[this.currentLevel] = this.currentNode, P != null && this.text(P), this;
|
|
1734
|
+
}, v.prototype.element = function(r, N, P) {
|
|
1735
|
+
var M, C, F, j, X, S;
|
|
1736
1736
|
if (this.currentNode && this.currentNode.type === n.DocType)
|
|
1737
1737
|
this.dtdElement.apply(this, arguments);
|
|
1738
1738
|
else if (Array.isArray(r) || c(r) || s(r))
|
|
1739
1739
|
for (j = this.options.noValidation, this.options.noValidation = !0, S = new y(this.options).element("TEMP_ROOT"), S.element(r), this.options.noValidation = j, X = S.children, C = 0, F = X.length; C < F; C++)
|
|
1740
|
-
|
|
1740
|
+
M = X[C], this.createChildNode(M), M.type === n.Element && this.up();
|
|
1741
1741
|
else
|
|
1742
|
-
this.node(r, N,
|
|
1742
|
+
this.node(r, N, P);
|
|
1743
1743
|
return this;
|
|
1744
1744
|
}, v.prototype.attribute = function(r, N) {
|
|
1745
|
-
var
|
|
1745
|
+
var P, M;
|
|
1746
1746
|
if (!this.currentNode || this.currentNode.children)
|
|
1747
1747
|
throw new Error("att() can only be used immediately after an ele() call in callback mode. " + this.debugInfo(r));
|
|
1748
1748
|
if (r != null && (r = E(r)), c(r))
|
|
1749
|
-
for (
|
|
1750
|
-
L.call(r,
|
|
1749
|
+
for (P in r)
|
|
1750
|
+
L.call(r, P) && (M = r[P], this.attribute(P, M));
|
|
1751
1751
|
else
|
|
1752
1752
|
s(N) && (N = N.apply()), this.options.keepNullAttributes && N == null ? this.currentNode.attribs[r] = new g(this, r, "") : N != null && (this.currentNode.attribs[r] = new g(this, r, N));
|
|
1753
1753
|
return this;
|
|
1754
1754
|
}, v.prototype.text = function(r) {
|
|
1755
1755
|
var N;
|
|
1756
|
-
return this.openCurrent(), N = new
|
|
1756
|
+
return this.openCurrent(), N = new _(this, r), this.onData(this.writer.text(N, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
|
|
1757
1757
|
}, v.prototype.cdata = function(r) {
|
|
1758
1758
|
var N;
|
|
1759
|
-
return this.openCurrent(), N = new
|
|
1759
|
+
return this.openCurrent(), N = new f(this, r), this.onData(this.writer.cdata(N, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
|
|
1760
1760
|
}, v.prototype.comment = function(r) {
|
|
1761
1761
|
var N;
|
|
1762
1762
|
return this.openCurrent(), N = new p(this, r), this.onData(this.writer.comment(N, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
|
|
@@ -1764,42 +1764,42 @@ function Kr() {
|
|
|
1764
1764
|
var N;
|
|
1765
1765
|
return this.openCurrent(), N = new O(this, r), this.onData(this.writer.raw(N, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
|
|
1766
1766
|
}, v.prototype.instruction = function(r, N) {
|
|
1767
|
-
var
|
|
1767
|
+
var P, M, C, F, j;
|
|
1768
1768
|
if (this.openCurrent(), r != null && (r = E(r)), N != null && (N = E(N)), Array.isArray(r))
|
|
1769
|
-
for (
|
|
1770
|
-
|
|
1769
|
+
for (P = 0, F = r.length; P < F; P++)
|
|
1770
|
+
M = r[P], this.instruction(M);
|
|
1771
1771
|
else if (c(r))
|
|
1772
|
-
for (
|
|
1773
|
-
L.call(r,
|
|
1772
|
+
for (M in r)
|
|
1773
|
+
L.call(r, M) && (C = r[M], this.instruction(M, C));
|
|
1774
1774
|
else
|
|
1775
1775
|
s(N) && (N = N.apply()), j = new w(this, r, N), this.onData(this.writer.processingInstruction(j, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);
|
|
1776
1776
|
return this;
|
|
1777
|
-
}, v.prototype.declaration = function(r, N,
|
|
1778
|
-
var
|
|
1777
|
+
}, v.prototype.declaration = function(r, N, P) {
|
|
1778
|
+
var M;
|
|
1779
1779
|
if (this.openCurrent(), this.documentStarted)
|
|
1780
1780
|
throw new Error("declaration() must be the first node.");
|
|
1781
|
-
return
|
|
1782
|
-
}, v.prototype.doctype = function(r, N,
|
|
1781
|
+
return M = new b(this, r, N, P), this.onData(this.writer.declaration(M, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
|
|
1782
|
+
}, v.prototype.doctype = function(r, N, P) {
|
|
1783
1783
|
if (this.openCurrent(), r == null)
|
|
1784
1784
|
throw new Error("Missing root node name.");
|
|
1785
1785
|
if (this.root)
|
|
1786
1786
|
throw new Error("dtd() must come before the root node.");
|
|
1787
|
-
return this.currentNode = new m(this, N,
|
|
1787
|
+
return this.currentNode = new m(this, N, P), this.currentNode.rootNodeName = r, this.currentNode.children = !1, this.currentLevel++, this.openTags[this.currentLevel] = this.currentNode, this;
|
|
1788
1788
|
}, v.prototype.dtdElement = function(r, N) {
|
|
1789
|
-
var
|
|
1790
|
-
return this.openCurrent(),
|
|
1791
|
-
}, v.prototype.attList = function(r, N,
|
|
1789
|
+
var P;
|
|
1790
|
+
return this.openCurrent(), P = new e(this, r, N), this.onData(this.writer.dtdElement(P, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
|
|
1791
|
+
}, v.prototype.attList = function(r, N, P, M, C) {
|
|
1792
1792
|
var F;
|
|
1793
|
-
return this.openCurrent(), F = new t(this, r, N,
|
|
1793
|
+
return this.openCurrent(), F = new t(this, r, N, P, M, C), this.onData(this.writer.dtdAttList(F, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
|
|
1794
1794
|
}, v.prototype.entity = function(r, N) {
|
|
1795
|
-
var
|
|
1796
|
-
return this.openCurrent(),
|
|
1795
|
+
var P;
|
|
1796
|
+
return this.openCurrent(), P = new o(this, !1, r, N), this.onData(this.writer.dtdEntity(P, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
|
|
1797
1797
|
}, v.prototype.pEntity = function(r, N) {
|
|
1798
|
-
var
|
|
1799
|
-
return this.openCurrent(),
|
|
1798
|
+
var P;
|
|
1799
|
+
return this.openCurrent(), P = new o(this, !0, r, N), this.onData(this.writer.dtdEntity(P, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
|
|
1800
1800
|
}, v.prototype.notation = function(r, N) {
|
|
1801
|
-
var
|
|
1802
|
-
return this.openCurrent(),
|
|
1801
|
+
var P;
|
|
1802
|
+
return this.openCurrent(), P = new l(this, r, N), this.onData(this.writer.dtdNotation(P, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
|
|
1803
1803
|
}, v.prototype.up = function() {
|
|
1804
1804
|
if (this.currentLevel < 0)
|
|
1805
1805
|
throw new Error("The document node has no parent.");
|
|
@@ -1812,16 +1812,16 @@ function Kr() {
|
|
|
1812
1812
|
if (this.currentNode)
|
|
1813
1813
|
return this.currentNode.children = !0, this.openNode(this.currentNode);
|
|
1814
1814
|
}, v.prototype.openNode = function(r) {
|
|
1815
|
-
var N,
|
|
1815
|
+
var N, P, M, C;
|
|
1816
1816
|
if (!r.isOpen) {
|
|
1817
|
-
if (!this.root && this.currentLevel === 0 && r.type === n.Element && (this.root = r),
|
|
1818
|
-
this.writerOptions.state = a.OpenTag,
|
|
1819
|
-
for (
|
|
1820
|
-
L.call(C,
|
|
1821
|
-
|
|
1817
|
+
if (!this.root && this.currentLevel === 0 && r.type === n.Element && (this.root = r), P = "", r.type === n.Element) {
|
|
1818
|
+
this.writerOptions.state = a.OpenTag, P = this.writer.indent(r, this.writerOptions, this.currentLevel) + "<" + r.name, C = r.attribs;
|
|
1819
|
+
for (M in C)
|
|
1820
|
+
L.call(C, M) && (N = C[M], P += this.writer.attribute(N, this.writerOptions, this.currentLevel));
|
|
1821
|
+
P += (r.children ? ">" : "/>") + this.writer.endline(r, this.writerOptions, this.currentLevel), this.writerOptions.state = a.InsideTag;
|
|
1822
1822
|
} else
|
|
1823
|
-
this.writerOptions.state = a.OpenTag,
|
|
1824
|
-
return this.onData(
|
|
1823
|
+
this.writerOptions.state = a.OpenTag, P = this.writer.indent(r, this.writerOptions, this.currentLevel) + "<!DOCTYPE " + r.rootNodeName, r.pubID && r.sysID ? P += ' PUBLIC "' + r.pubID + '" "' + r.sysID + '"' : r.sysID && (P += ' SYSTEM "' + r.sysID + '"'), r.children ? (P += " [", this.writerOptions.state = a.InsideTag) : (this.writerOptions.state = a.CloseTag, P += ">"), P += this.writer.endline(r, this.writerOptions, this.currentLevel);
|
|
1824
|
+
return this.onData(P, this.currentLevel), r.isOpen = !0;
|
|
1825
1825
|
}
|
|
1826
1826
|
}, v.prototype.closeNode = function(r) {
|
|
1827
1827
|
var N;
|
|
@@ -1835,8 +1835,8 @@ function Kr() {
|
|
|
1835
1835
|
return r == null ? "" : "node: <" + r + ">";
|
|
1836
1836
|
}, v.prototype.ele = function() {
|
|
1837
1837
|
return this.element.apply(this, arguments);
|
|
1838
|
-
}, v.prototype.nod = function(r, N,
|
|
1839
|
-
return this.node(r, N,
|
|
1838
|
+
}, v.prototype.nod = function(r, N, P) {
|
|
1839
|
+
return this.node(r, N, P);
|
|
1840
1840
|
}, v.prototype.txt = function(r) {
|
|
1841
1841
|
return this.text(r);
|
|
1842
1842
|
}, v.prototype.dat = function(r) {
|
|
@@ -1845,14 +1845,14 @@ function Kr() {
|
|
|
1845
1845
|
return this.comment(r);
|
|
1846
1846
|
}, v.prototype.ins = function(r, N) {
|
|
1847
1847
|
return this.instruction(r, N);
|
|
1848
|
-
}, v.prototype.dec = function(r, N,
|
|
1849
|
-
return this.declaration(r, N,
|
|
1850
|
-
}, v.prototype.dtd = function(r, N,
|
|
1851
|
-
return this.doctype(r, N,
|
|
1852
|
-
}, v.prototype.e = function(r, N,
|
|
1853
|
-
return this.element(r, N,
|
|
1854
|
-
}, v.prototype.n = function(r, N,
|
|
1855
|
-
return this.node(r, N,
|
|
1848
|
+
}, v.prototype.dec = function(r, N, P) {
|
|
1849
|
+
return this.declaration(r, N, P);
|
|
1850
|
+
}, v.prototype.dtd = function(r, N, P) {
|
|
1851
|
+
return this.doctype(r, N, P);
|
|
1852
|
+
}, v.prototype.e = function(r, N, P) {
|
|
1853
|
+
return this.element(r, N, P);
|
|
1854
|
+
}, v.prototype.n = function(r, N, P) {
|
|
1855
|
+
return this.node(r, N, P);
|
|
1856
1856
|
}, v.prototype.t = function(r) {
|
|
1857
1857
|
return this.text(r);
|
|
1858
1858
|
}, v.prototype.d = function(r) {
|
|
@@ -1880,7 +1880,7 @@ function Kr() {
|
|
|
1880
1880
|
var Xt = { exports: {} }, zr = Xt.exports, ke;
|
|
1881
1881
|
function Hr() {
|
|
1882
1882
|
return ke || (ke = 1, (function() {
|
|
1883
|
-
var n, a, g,
|
|
1883
|
+
var n, a, g, f = function(t, e) {
|
|
1884
1884
|
for (var o in e)
|
|
1885
1885
|
p.call(e, o) && (t[o] = e[o]);
|
|
1886
1886
|
function l() {
|
|
@@ -1889,19 +1889,19 @@ function Hr() {
|
|
|
1889
1889
|
return l.prototype = e.prototype, t.prototype = new l(), t.__super__ = e.prototype, t;
|
|
1890
1890
|
}, p = {}.hasOwnProperty;
|
|
1891
1891
|
n = B(), g = nr(), a = Bt(), Xt.exports = function(t) {
|
|
1892
|
-
|
|
1892
|
+
f(e, t);
|
|
1893
1893
|
function e(o, l) {
|
|
1894
1894
|
this.stream = o, e.__super__.constructor.call(this, l);
|
|
1895
1895
|
}
|
|
1896
1896
|
return e.prototype.endline = function(o, l, b) {
|
|
1897
1897
|
return o.isLastRootNode && l.state === a.CloseTag ? "" : e.__super__.endline.call(this, o, l, b);
|
|
1898
1898
|
}, e.prototype.document = function(o, l) {
|
|
1899
|
-
var b, m, y, d, w, O, I, x,
|
|
1899
|
+
var b, m, y, d, w, O, I, x, _;
|
|
1900
1900
|
for (I = o.children, m = y = 0, w = I.length; y < w; m = ++y)
|
|
1901
1901
|
b = I[m], b.isLastRootNode = m === o.children.length - 1;
|
|
1902
|
-
for (l = this.filterOptions(l), x = o.children,
|
|
1903
|
-
b = x[d],
|
|
1904
|
-
return
|
|
1902
|
+
for (l = this.filterOptions(l), x = o.children, _ = [], d = 0, O = x.length; d < O; d++)
|
|
1903
|
+
b = x[d], _.push(this.writeChildNode(b, l, 0));
|
|
1904
|
+
return _;
|
|
1905
1905
|
}, e.prototype.attribute = function(o, l, b) {
|
|
1906
1906
|
return this.stream.write(e.__super__.attribute.call(this, o, l, b));
|
|
1907
1907
|
}, e.prototype.cdata = function(o, l, b) {
|
|
@@ -1919,10 +1919,10 @@ function Hr() {
|
|
|
1919
1919
|
}
|
|
1920
1920
|
return l.state = a.CloseTag, this.stream.write(l.spaceBeforeSlash + ">"), this.stream.write(this.endline(o, l, b)), l.state = a.None, this.closeNode(o, l, b);
|
|
1921
1921
|
}, e.prototype.element = function(o, l, b) {
|
|
1922
|
-
var m, y, d, w, O, I, x,
|
|
1923
|
-
b || (b = 0), this.openNode(o, l, b), l.state = a.OpenTag, this.stream.write(this.indent(o, l, b) + "<" + o.name),
|
|
1924
|
-
for (x in
|
|
1925
|
-
p.call(
|
|
1922
|
+
var m, y, d, w, O, I, x, _, E;
|
|
1923
|
+
b || (b = 0), this.openNode(o, l, b), l.state = a.OpenTag, this.stream.write(this.indent(o, l, b) + "<" + o.name), _ = o.attribs;
|
|
1924
|
+
for (x in _)
|
|
1925
|
+
p.call(_, x) && (m = _[x], this.attribute(m, l, b));
|
|
1926
1926
|
if (d = o.children.length, w = d === 0 ? null : o.children[0], d === 0 || o.children.every(function(s) {
|
|
1927
1927
|
return (s.type === n.Text || s.type === n.Raw) && s.value === "";
|
|
1928
1928
|
}))
|
|
@@ -1956,15 +1956,15 @@ function Hr() {
|
|
|
1956
1956
|
var $e;
|
|
1957
1957
|
function Qr() {
|
|
1958
1958
|
return $e || ($e = 1, (function() {
|
|
1959
|
-
var n, a, g,
|
|
1960
|
-
b = H(), o = b.assign, l = b.isFunction, g = Je(),
|
|
1959
|
+
var n, a, g, f, p, t, e, o, l, b;
|
|
1960
|
+
b = H(), o = b.assign, l = b.isFunction, g = Je(), f = ir(), p = Kr(), e = se(), t = Hr(), n = B(), a = Bt(), Y.create = function(m, y, d, w) {
|
|
1961
1961
|
var O, I;
|
|
1962
1962
|
if (m == null)
|
|
1963
1963
|
throw new Error("Root element needs a name.");
|
|
1964
|
-
return w = o({}, y, d, w), O = new
|
|
1964
|
+
return w = o({}, y, d, w), O = new f(w), I = O.element(m), w.headless || (O.declaration(w), (w.pubID != null || w.sysID != null) && O.dtd(w)), I;
|
|
1965
1965
|
}, Y.begin = function(m, y, d) {
|
|
1966
1966
|
var w;
|
|
1967
|
-
return l(m) && (w = [m, y], y = w[0], d = w[1], m = {}), y ? new p(m, y, d) : new
|
|
1967
|
+
return l(m) && (w = [m, y], y = w[0], d = w[1], m = {}), y ? new p(m, y, d) : new f(m);
|
|
1968
1968
|
}, Y.stringWriter = function(m) {
|
|
1969
1969
|
return new e(m);
|
|
1970
1970
|
}, Y.streamWriter = function(m, y) {
|
|
@@ -1975,8 +1975,8 @@ function Qr() {
|
|
|
1975
1975
|
var Ge;
|
|
1976
1976
|
function Zr() {
|
|
1977
1977
|
return Ge || (Ge = 1, (function() {
|
|
1978
|
-
var n, a, g,
|
|
1979
|
-
n = Qr(), a = Wt().defaults,
|
|
1978
|
+
var n, a, g, f, p, t = {}.hasOwnProperty;
|
|
1979
|
+
n = Qr(), a = Wt().defaults, f = function(e) {
|
|
1980
1980
|
return typeof e == "string" && (e.indexOf("&") >= 0 || e.indexOf(">") >= 0 || e.indexOf("<") >= 0);
|
|
1981
1981
|
}, p = function(e) {
|
|
1982
1982
|
return "<![CDATA[" + g(e) + "]]>";
|
|
@@ -1995,29 +1995,29 @@ function Zr() {
|
|
|
1995
1995
|
var l, b, m, y, d;
|
|
1996
1996
|
return l = this.options.attrkey, b = this.options.charkey, Object.keys(o).length === 1 && this.options.rootName === a["0.2"].rootName ? (d = Object.keys(o)[0], o = o[d]) : d = this.options.rootName, m = /* @__PURE__ */ function(w) {
|
|
1997
1997
|
return function(O, I) {
|
|
1998
|
-
var x,
|
|
1998
|
+
var x, _, E, s, c, h;
|
|
1999
1999
|
if (typeof I != "object")
|
|
2000
|
-
w.options.cdata &&
|
|
2000
|
+
w.options.cdata && f(I) ? O.raw(p(I)) : O.txt(I);
|
|
2001
2001
|
else if (Array.isArray(I)) {
|
|
2002
2002
|
for (s in I)
|
|
2003
2003
|
if (t.call(I, s)) {
|
|
2004
|
-
|
|
2005
|
-
for (c in
|
|
2006
|
-
E =
|
|
2004
|
+
_ = I[s];
|
|
2005
|
+
for (c in _)
|
|
2006
|
+
E = _[c], O = m(O.ele(c), E).up();
|
|
2007
2007
|
}
|
|
2008
2008
|
} else
|
|
2009
2009
|
for (c in I)
|
|
2010
2010
|
if (t.call(I, c))
|
|
2011
|
-
if (
|
|
2012
|
-
if (typeof
|
|
2013
|
-
for (x in
|
|
2014
|
-
|
|
2011
|
+
if (_ = I[c], c === l) {
|
|
2012
|
+
if (typeof _ == "object")
|
|
2013
|
+
for (x in _)
|
|
2014
|
+
h = _[x], O = O.att(x, h);
|
|
2015
2015
|
} else if (c === b)
|
|
2016
|
-
w.options.cdata &&
|
|
2017
|
-
else if (Array.isArray(
|
|
2018
|
-
for (s in
|
|
2019
|
-
t.call(
|
|
2020
|
-
else typeof
|
|
2016
|
+
w.options.cdata && f(_) ? O = O.raw(p(_)) : O = O.txt(_);
|
|
2017
|
+
else if (Array.isArray(_))
|
|
2018
|
+
for (s in _)
|
|
2019
|
+
t.call(_, s) && (E = _[s], typeof E == "string" ? w.options.cdata && f(E) ? O = O.ele(c).raw(p(E)).up() : O = O.ele(c, E).up() : O = m(O.ele(c), E).up());
|
|
2020
|
+
else typeof _ == "object" ? O = m(O.ele(c), _).up() : typeof _ == "string" && w.options.cdata && f(_) ? O = O.ele(c).raw(p(_)).up() : (_ == null && (_ = ""), O = O.ele(c, _.toString()).up());
|
|
2021
2021
|
return O;
|
|
2022
2022
|
};
|
|
2023
2023
|
}(this), y = n.create(d, this.options.xmldec, this.options.doctype, {
|
|
@@ -2038,8 +2038,8 @@ function en() {
|
|
|
2038
2038
|
return We || (We = 1, function(n) {
|
|
2039
2039
|
(function(a) {
|
|
2040
2040
|
a.parser = function(u, i) {
|
|
2041
|
-
return new
|
|
2042
|
-
}, a.SAXParser =
|
|
2041
|
+
return new f(u, i);
|
|
2042
|
+
}, a.SAXParser = f, a.SAXStream = m, a.createStream = b, a.MAX_BUFFER_LENGTH = 64 * 1024;
|
|
2043
2043
|
var g = [
|
|
2044
2044
|
"comment",
|
|
2045
2045
|
"sgmlDecl",
|
|
@@ -2074,25 +2074,25 @@ function en() {
|
|
|
2074
2074
|
"opennamespace",
|
|
2075
2075
|
"closenamespace"
|
|
2076
2076
|
];
|
|
2077
|
-
function
|
|
2078
|
-
if (!(this instanceof
|
|
2079
|
-
return new
|
|
2080
|
-
var
|
|
2081
|
-
t(
|
|
2077
|
+
function f(u, i) {
|
|
2078
|
+
if (!(this instanceof f))
|
|
2079
|
+
return new f(u, i);
|
|
2080
|
+
var A = this;
|
|
2081
|
+
t(A), A.q = A.c = "", A.bufferCheckPosition = a.MAX_BUFFER_LENGTH, A.opt = i || {}, A.opt.lowercase = A.opt.lowercase || A.opt.lowercasetags, A.looseCase = A.opt.lowercase ? "toLowerCase" : "toUpperCase", A.tags = [], A.closed = A.closedRoot = A.sawRoot = !1, A.tag = A.error = null, A.strict = !!u, A.noscript = !!(u || A.opt.noscript), A.state = r.BEGIN, A.strictEntities = A.opt.strictEntities, A.ENTITIES = A.strictEntities ? Object.create(a.XML_ENTITIES) : Object.create(a.ENTITIES), A.attribList = [], A.opt.xmlns && (A.ns = Object.create(I)), A.opt.unquotedAttributeValues === void 0 && (A.opt.unquotedAttributeValues = !u), A.trackPosition = A.opt.position !== !1, A.trackPosition && (A.position = A.line = A.column = 0), P(A, "onready");
|
|
2082
2082
|
}
|
|
2083
2083
|
Object.create || (Object.create = function(u) {
|
|
2084
2084
|
function i() {
|
|
2085
2085
|
}
|
|
2086
2086
|
i.prototype = u;
|
|
2087
|
-
var
|
|
2088
|
-
return
|
|
2087
|
+
var A = new i();
|
|
2088
|
+
return A;
|
|
2089
2089
|
}), Object.keys || (Object.keys = function(u) {
|
|
2090
2090
|
var i = [];
|
|
2091
|
-
for (var
|
|
2091
|
+
for (var A in u) u.hasOwnProperty(A) && i.push(A);
|
|
2092
2092
|
return i;
|
|
2093
2093
|
});
|
|
2094
2094
|
function p(u) {
|
|
2095
|
-
for (var i = Math.max(a.MAX_BUFFER_LENGTH, 10),
|
|
2095
|
+
for (var i = Math.max(a.MAX_BUFFER_LENGTH, 10), A = 0, T = 0, R = g.length; T < R; T++) {
|
|
2096
2096
|
var q = u[g[T]].length;
|
|
2097
2097
|
if (q > i)
|
|
2098
2098
|
switch (g[T]) {
|
|
@@ -2100,27 +2100,27 @@ function en() {
|
|
|
2100
2100
|
C(u);
|
|
2101
2101
|
break;
|
|
2102
2102
|
case "cdata":
|
|
2103
|
-
|
|
2103
|
+
M(u, "oncdata", u.cdata), u.cdata = "";
|
|
2104
2104
|
break;
|
|
2105
2105
|
case "script":
|
|
2106
|
-
|
|
2106
|
+
M(u, "onscript", u.script), u.script = "";
|
|
2107
2107
|
break;
|
|
2108
2108
|
default:
|
|
2109
2109
|
j(u, "Max buffer length exceeded: " + g[T]);
|
|
2110
2110
|
}
|
|
2111
|
-
|
|
2111
|
+
A = Math.max(A, q);
|
|
2112
2112
|
}
|
|
2113
|
-
var U = a.MAX_BUFFER_LENGTH -
|
|
2113
|
+
var U = a.MAX_BUFFER_LENGTH - A;
|
|
2114
2114
|
u.bufferCheckPosition = U + u.position;
|
|
2115
2115
|
}
|
|
2116
2116
|
function t(u) {
|
|
2117
|
-
for (var i = 0,
|
|
2117
|
+
for (var i = 0, A = g.length; i < A; i++)
|
|
2118
2118
|
u[g[i]] = "";
|
|
2119
2119
|
}
|
|
2120
2120
|
function e(u) {
|
|
2121
|
-
C(u), u.cdata !== "" && (
|
|
2121
|
+
C(u), u.cdata !== "" && (M(u, "oncdata", u.cdata), u.cdata = ""), u.script !== "" && (M(u, "onscript", u.script), u.script = "");
|
|
2122
2122
|
}
|
|
2123
|
-
|
|
2123
|
+
f.prototype = {
|
|
2124
2124
|
end: function() {
|
|
2125
2125
|
X(this);
|
|
2126
2126
|
},
|
|
@@ -2153,21 +2153,21 @@ function en() {
|
|
|
2153
2153
|
function m(u, i) {
|
|
2154
2154
|
if (!(this instanceof m))
|
|
2155
2155
|
return new m(u, i);
|
|
2156
|
-
o.apply(this), this._parser = new
|
|
2157
|
-
var
|
|
2156
|
+
o.apply(this), this._parser = new f(u, i), this.writable = !0, this.readable = !0;
|
|
2157
|
+
var A = this;
|
|
2158
2158
|
this._parser.onend = function() {
|
|
2159
|
-
|
|
2159
|
+
A.emit("end");
|
|
2160
2160
|
}, this._parser.onerror = function(T) {
|
|
2161
|
-
|
|
2161
|
+
A.emit("error", T), A._parser.error = null;
|
|
2162
2162
|
}, this._decoder = null, l.forEach(function(T) {
|
|
2163
|
-
Object.defineProperty(
|
|
2163
|
+
Object.defineProperty(A, "on" + T, {
|
|
2164
2164
|
get: function() {
|
|
2165
|
-
return
|
|
2165
|
+
return A._parser["on" + T];
|
|
2166
2166
|
},
|
|
2167
2167
|
set: function(R) {
|
|
2168
2168
|
if (!R)
|
|
2169
|
-
return
|
|
2170
|
-
|
|
2169
|
+
return A.removeAllListeners(T), A._parser["on" + T] = R, R;
|
|
2170
|
+
A.on(T, R);
|
|
2171
2171
|
},
|
|
2172
2172
|
enumerable: !0,
|
|
2173
2173
|
configurable: !1
|
|
@@ -2190,18 +2190,18 @@ function en() {
|
|
|
2190
2190
|
}, m.prototype.end = function(u) {
|
|
2191
2191
|
return u && u.length && this.write(u), this._parser.end(), !0;
|
|
2192
2192
|
}, m.prototype.on = function(u, i) {
|
|
2193
|
-
var
|
|
2194
|
-
return !
|
|
2193
|
+
var A = this;
|
|
2194
|
+
return !A._parser["on" + u] && l.indexOf(u) !== -1 && (A._parser["on" + u] = function() {
|
|
2195
2195
|
var T = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
|
|
2196
|
-
T.splice(0, 0, u),
|
|
2197
|
-
}), o.prototype.on.call(
|
|
2196
|
+
T.splice(0, 0, u), A.emit.apply(A, T);
|
|
2197
|
+
}), o.prototype.on.call(A, u, i);
|
|
2198
2198
|
};
|
|
2199
|
-
var y = "[CDATA[", d = "DOCTYPE", w = "http://www.w3.org/XML/1998/namespace", O = "http://www.w3.org/2000/xmlns/", I = { xml: w, xmlns: O }, x = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,
|
|
2199
|
+
var y = "[CDATA[", d = "DOCTYPE", w = "http://www.w3.org/XML/1998/namespace", O = "http://www.w3.org/2000/xmlns/", I = { xml: w, xmlns: O }, x = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, _ = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/, E = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, s = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;
|
|
2200
2200
|
function c(u) {
|
|
2201
2201
|
return u === " " || u === `
|
|
2202
2202
|
` || u === "\r" || u === " ";
|
|
2203
2203
|
}
|
|
2204
|
-
function
|
|
2204
|
+
function h(u) {
|
|
2205
2205
|
return u === '"' || u === "'";
|
|
2206
2206
|
}
|
|
2207
2207
|
function D(u) {
|
|
@@ -2548,20 +2548,20 @@ function en() {
|
|
|
2548
2548
|
hearts: 9829,
|
|
2549
2549
|
diams: 9830
|
|
2550
2550
|
}, Object.keys(a.ENTITIES).forEach(function(u) {
|
|
2551
|
-
var i = a.ENTITIES[u],
|
|
2552
|
-
a.ENTITIES[u] =
|
|
2551
|
+
var i = a.ENTITIES[u], A = typeof i == "number" ? String.fromCharCode(i) : i;
|
|
2552
|
+
a.ENTITIES[u] = A;
|
|
2553
2553
|
});
|
|
2554
2554
|
for (var N in a.STATE)
|
|
2555
2555
|
a.STATE[a.STATE[N]] = N;
|
|
2556
2556
|
r = a.STATE;
|
|
2557
|
-
function
|
|
2558
|
-
u[i] && u[i](
|
|
2557
|
+
function P(u, i, A) {
|
|
2558
|
+
u[i] && u[i](A);
|
|
2559
2559
|
}
|
|
2560
|
-
function
|
|
2561
|
-
u.textNode && C(u),
|
|
2560
|
+
function M(u, i, A) {
|
|
2561
|
+
u.textNode && C(u), P(u, i, A);
|
|
2562
2562
|
}
|
|
2563
2563
|
function C(u) {
|
|
2564
|
-
u.textNode = F(u.opt, u.textNode), u.textNode &&
|
|
2564
|
+
u.textNode = F(u.opt, u.textNode), u.textNode && P(u, "ontext", u.textNode), u.textNode = "";
|
|
2565
2565
|
}
|
|
2566
2566
|
function F(u, i) {
|
|
2567
2567
|
return u.trim && (i = i.trim()), u.normalize && (i = i.replace(/\s+/g, " ")), i;
|
|
@@ -2570,23 +2570,23 @@ function en() {
|
|
|
2570
2570
|
return C(u), u.trackPosition && (i += `
|
|
2571
2571
|
Line: ` + u.line + `
|
|
2572
2572
|
Column: ` + u.column + `
|
|
2573
|
-
Char: ` + u.c), i = new Error(i), u.error = i,
|
|
2573
|
+
Char: ` + u.c), i = new Error(i), u.error = i, P(u, "onerror", i), u;
|
|
2574
2574
|
}
|
|
2575
2575
|
function X(u) {
|
|
2576
|
-
return u.sawRoot && !u.closedRoot && S(u, "Unclosed root tag"), u.state !== r.BEGIN && u.state !== r.BEGIN_WHITESPACE && u.state !== r.TEXT && j(u, "Unexpected end"), C(u), u.c = "", u.closed = !0,
|
|
2576
|
+
return u.sawRoot && !u.closedRoot && S(u, "Unclosed root tag"), u.state !== r.BEGIN && u.state !== r.BEGIN_WHITESPACE && u.state !== r.TEXT && j(u, "Unexpected end"), C(u), u.c = "", u.closed = !0, P(u, "onend"), f.call(u, u.strict, u.opt), u;
|
|
2577
2577
|
}
|
|
2578
2578
|
function S(u, i) {
|
|
2579
|
-
if (typeof u != "object" || !(u instanceof
|
|
2579
|
+
if (typeof u != "object" || !(u instanceof f))
|
|
2580
2580
|
throw new Error("bad call to strictFail");
|
|
2581
2581
|
u.strict && j(u, i);
|
|
2582
2582
|
}
|
|
2583
2583
|
function ar(u) {
|
|
2584
2584
|
u.strict || (u.tagName = u.tagName[u.looseCase]());
|
|
2585
|
-
var i = u.tags[u.tags.length - 1] || u,
|
|
2586
|
-
u.opt.xmlns && (
|
|
2585
|
+
var i = u.tags[u.tags.length - 1] || u, A = u.tag = { name: u.tagName, attributes: {} };
|
|
2586
|
+
u.opt.xmlns && (A.ns = i.ns), u.attribList.length = 0, M(u, "onopentagstart", A);
|
|
2587
2587
|
}
|
|
2588
2588
|
function qt(u, i) {
|
|
2589
|
-
var
|
|
2589
|
+
var A = u.indexOf(":"), T = A < 0 ? ["", u] : u.split(":"), R = T[0], q = T[1];
|
|
2590
2590
|
return i && u === "xmlns" && (R = "xmlns", q = ""), { prefix: R, local: q };
|
|
2591
2591
|
}
|
|
2592
2592
|
function Ut(u) {
|
|
@@ -2595,8 +2595,8 @@ Char: ` + u.c), i = new Error(i), u.error = i, A(u, "onerror", i), u;
|
|
|
2595
2595
|
return;
|
|
2596
2596
|
}
|
|
2597
2597
|
if (u.opt.xmlns) {
|
|
2598
|
-
var i = qt(u.attribName, !0),
|
|
2599
|
-
if (
|
|
2598
|
+
var i = qt(u.attribName, !0), A = i.prefix, T = i.local;
|
|
2599
|
+
if (A === "xmlns")
|
|
2600
2600
|
if (T === "xml" && u.attribValue !== w)
|
|
2601
2601
|
S(
|
|
2602
2602
|
u,
|
|
@@ -2615,7 +2615,7 @@ Actual: ` + u.attribValue
|
|
|
2615
2615
|
}
|
|
2616
2616
|
u.attribList.push([u.attribName, u.attribValue]);
|
|
2617
2617
|
} else
|
|
2618
|
-
u.tag.attributes[u.attribName] = u.attribValue,
|
|
2618
|
+
u.tag.attributes[u.attribName] = u.attribValue, M(u, "onattribute", {
|
|
2619
2619
|
name: u.attribName,
|
|
2620
2620
|
value: u.attribValue
|
|
2621
2621
|
});
|
|
@@ -2623,28 +2623,28 @@ Actual: ` + u.attribValue
|
|
|
2623
2623
|
}
|
|
2624
2624
|
function Z(u, i) {
|
|
2625
2625
|
if (u.opt.xmlns) {
|
|
2626
|
-
var
|
|
2627
|
-
|
|
2626
|
+
var A = u.tag, T = qt(u.tagName);
|
|
2627
|
+
A.prefix = T.prefix, A.local = T.local, A.uri = A.ns[T.prefix] || "", A.prefix && !A.uri && (S(u, "Unbound namespace prefix: " + JSON.stringify(u.tagName)), A.uri = T.prefix);
|
|
2628
2628
|
var R = u.tags[u.tags.length - 1] || u;
|
|
2629
|
-
|
|
2630
|
-
|
|
2629
|
+
A.ns && R.ns !== A.ns && Object.keys(A.ns).forEach(function(le) {
|
|
2630
|
+
M(u, "onopennamespace", {
|
|
2631
2631
|
prefix: le,
|
|
2632
|
-
uri:
|
|
2632
|
+
uri: A.ns[le]
|
|
2633
2633
|
});
|
|
2634
2634
|
});
|
|
2635
2635
|
for (var q = 0, U = u.attribList.length; q < U; q++) {
|
|
2636
|
-
var k = u.attribList[q], $ = k[0], J = k[1], V = qt($, !0), z = V.prefix, fr = V.local, ce = z === "" ? "" :
|
|
2636
|
+
var k = u.attribList[q], $ = k[0], J = k[1], V = qt($, !0), z = V.prefix, fr = V.local, ce = z === "" ? "" : A.ns[z] || "", kt = {
|
|
2637
2637
|
name: $,
|
|
2638
2638
|
value: J,
|
|
2639
2639
|
prefix: z,
|
|
2640
2640
|
local: fr,
|
|
2641
2641
|
uri: ce
|
|
2642
2642
|
};
|
|
2643
|
-
z && z !== "xmlns" && !ce && (S(u, "Unbound namespace prefix: " + JSON.stringify(z)), kt.uri = z), u.tag.attributes[$] = kt,
|
|
2643
|
+
z && z !== "xmlns" && !ce && (S(u, "Unbound namespace prefix: " + JSON.stringify(z)), kt.uri = z), u.tag.attributes[$] = kt, M(u, "onattribute", kt);
|
|
2644
2644
|
}
|
|
2645
2645
|
u.attribList.length = 0;
|
|
2646
2646
|
}
|
|
2647
|
-
u.tag.isSelfClosing = !!i, u.sawRoot = !0, u.tags.push(u.tag),
|
|
2647
|
+
u.tag.isSelfClosing = !!i, u.sawRoot = !0, u.tags.push(u.tag), M(u, "onopentag", u.tag), i || (!u.noscript && u.tagName.toLowerCase() === "script" ? u.state = r.SCRIPT : u.state = r.TEXT, u.tag = null, u.tagName = ""), u.attribName = u.attribValue = "", u.attribList.length = 0;
|
|
2648
2648
|
}
|
|
2649
2649
|
function Vt(u) {
|
|
2650
2650
|
if (!u.tagName) {
|
|
@@ -2656,11 +2656,11 @@ Actual: ` + u.attribValue
|
|
|
2656
2656
|
u.script += "</" + u.tagName + ">", u.tagName = "", u.state = r.SCRIPT;
|
|
2657
2657
|
return;
|
|
2658
2658
|
}
|
|
2659
|
-
|
|
2659
|
+
M(u, "onscript", u.script), u.script = "";
|
|
2660
2660
|
}
|
|
2661
|
-
var i = u.tags.length,
|
|
2662
|
-
u.strict || (
|
|
2663
|
-
for (var T =
|
|
2661
|
+
var i = u.tags.length, A = u.tagName;
|
|
2662
|
+
u.strict || (A = A[u.looseCase]());
|
|
2663
|
+
for (var T = A; i--; ) {
|
|
2664
2664
|
var R = u.tags[i];
|
|
2665
2665
|
if (R.name !== T)
|
|
2666
2666
|
S(u, "Unexpected close tag");
|
|
@@ -2671,31 +2671,31 @@ Actual: ` + u.attribValue
|
|
|
2671
2671
|
S(u, "Unmatched closing tag: " + u.tagName), u.textNode += "</" + u.tagName + ">", u.state = r.TEXT;
|
|
2672
2672
|
return;
|
|
2673
2673
|
}
|
|
2674
|
-
u.tagName =
|
|
2674
|
+
u.tagName = A;
|
|
2675
2675
|
for (var q = u.tags.length; q-- > i; ) {
|
|
2676
2676
|
var U = u.tag = u.tags.pop();
|
|
2677
|
-
u.tagName = u.tag.name,
|
|
2677
|
+
u.tagName = u.tag.name, M(u, "onclosetag", u.tagName);
|
|
2678
2678
|
var k = {};
|
|
2679
2679
|
for (var $ in U.ns)
|
|
2680
2680
|
k[$] = U.ns[$];
|
|
2681
2681
|
var J = u.tags[u.tags.length - 1] || u;
|
|
2682
2682
|
u.opt.xmlns && U.ns !== J.ns && Object.keys(U.ns).forEach(function(V) {
|
|
2683
2683
|
var z = U.ns[V];
|
|
2684
|
-
|
|
2684
|
+
M(u, "onclosenamespace", { prefix: V, uri: z });
|
|
2685
2685
|
});
|
|
2686
2686
|
}
|
|
2687
2687
|
i === 0 && (u.closedRoot = !0), u.tagName = u.attribValue = u.attribName = "", u.attribList.length = 0, u.state = r.TEXT;
|
|
2688
2688
|
}
|
|
2689
2689
|
function cr(u) {
|
|
2690
|
-
var i = u.entity,
|
|
2691
|
-
return u.ENTITIES[i] ? u.ENTITIES[i] : u.ENTITIES[
|
|
2690
|
+
var i = u.entity, A = i.toLowerCase(), T, R = "";
|
|
2691
|
+
return u.ENTITIES[i] ? u.ENTITIES[i] : u.ENTITIES[A] ? u.ENTITIES[A] : (i = A, i.charAt(0) === "#" && (i.charAt(1) === "x" ? (i = i.slice(2), T = parseInt(i, 16), R = T.toString(16)) : (i = i.slice(1), T = parseInt(i, 10), R = T.toString(10))), i = i.replace(/^0+/, ""), isNaN(T) || R.toLowerCase() !== i ? (S(u, "Invalid character entity"), "&" + u.entity + ";") : String.fromCodePoint(T));
|
|
2692
2692
|
}
|
|
2693
2693
|
function ue(u, i) {
|
|
2694
2694
|
i === "<" ? (u.state = r.OPEN_WAKA, u.startTagPosition = u.position) : c(i) || (S(u, "Non-whitespace before first tag."), u.textNode = i, u.state = r.TEXT);
|
|
2695
2695
|
}
|
|
2696
2696
|
function ae(u, i) {
|
|
2697
|
-
var
|
|
2698
|
-
return i < u.length && (
|
|
2697
|
+
var A = "";
|
|
2698
|
+
return i < u.length && (A = u.charAt(i)), A;
|
|
2699
2699
|
}
|
|
2700
2700
|
function lr(u) {
|
|
2701
2701
|
var i = this;
|
|
@@ -2709,7 +2709,7 @@ Actual: ` + u.attribValue
|
|
|
2709
2709
|
if (u === null)
|
|
2710
2710
|
return X(i);
|
|
2711
2711
|
typeof u == "object" && (u = u.toString());
|
|
2712
|
-
for (var
|
|
2712
|
+
for (var A = 0, T = ""; T = ae(u, A++), i.c = T, !!T; )
|
|
2713
2713
|
switch (i.trackPosition && (i.position++, T === `
|
|
2714
2714
|
` ? (i.line++, i.column = 0) : i.column++), i.state) {
|
|
2715
2715
|
case r.BEGIN:
|
|
@@ -2722,10 +2722,10 @@ Actual: ` + u.attribValue
|
|
|
2722
2722
|
continue;
|
|
2723
2723
|
case r.TEXT:
|
|
2724
2724
|
if (i.sawRoot && !i.closedRoot) {
|
|
2725
|
-
for (var R =
|
|
2726
|
-
T = ae(u,
|
|
2725
|
+
for (var R = A - 1; T && T !== "<" && T !== "&"; )
|
|
2726
|
+
T = ae(u, A++), T && i.trackPosition && (i.position++, T === `
|
|
2727
2727
|
` ? (i.line++, i.column = 0) : i.column++);
|
|
2728
|
-
i.textNode += u.substring(R,
|
|
2728
|
+
i.textNode += u.substring(R, A - 1);
|
|
2729
2729
|
}
|
|
2730
2730
|
T === "<" && !(i.sawRoot && i.closedRoot && !i.strict) ? (i.state = r.OPEN_WAKA, i.startTagPosition = i.position) : (!c(T) && (!i.sawRoot || i.closedRoot) && S(i, "Text data outside of root node."), T === "&" ? i.state = r.TEXT_ENTITY : i.textNode += T);
|
|
2731
2731
|
continue;
|
|
@@ -2757,22 +2757,22 @@ Actual: ` + u.attribValue
|
|
|
2757
2757
|
i.state = r.COMMENT, i.comment = "", i.sgmlDecl = "";
|
|
2758
2758
|
continue;
|
|
2759
2759
|
}
|
|
2760
|
-
i.doctype && i.doctype !== !0 && i.sgmlDecl ? (i.state = r.DOCTYPE_DTD, i.doctype += "<!" + i.sgmlDecl + T, i.sgmlDecl = "") : (i.sgmlDecl + T).toUpperCase() === y ? (
|
|
2760
|
+
i.doctype && i.doctype !== !0 && i.sgmlDecl ? (i.state = r.DOCTYPE_DTD, i.doctype += "<!" + i.sgmlDecl + T, i.sgmlDecl = "") : (i.sgmlDecl + T).toUpperCase() === y ? (M(i, "onopencdata"), i.state = r.CDATA, i.sgmlDecl = "", i.cdata = "") : (i.sgmlDecl + T).toUpperCase() === d ? (i.state = r.DOCTYPE, (i.doctype || i.sawRoot) && S(
|
|
2761
2761
|
i,
|
|
2762
2762
|
"Inappropriately located doctype declaration"
|
|
2763
|
-
), i.doctype = "", i.sgmlDecl = "") : T === ">" ? (
|
|
2763
|
+
), i.doctype = "", i.sgmlDecl = "") : T === ">" ? (M(i, "onsgmldeclaration", i.sgmlDecl), i.sgmlDecl = "", i.state = r.TEXT) : (h(T) && (i.state = r.SGML_DECL_QUOTED), i.sgmlDecl += T);
|
|
2764
2764
|
continue;
|
|
2765
2765
|
case r.SGML_DECL_QUOTED:
|
|
2766
2766
|
T === i.q && (i.state = r.SGML_DECL, i.q = ""), i.sgmlDecl += T;
|
|
2767
2767
|
continue;
|
|
2768
2768
|
case r.DOCTYPE:
|
|
2769
|
-
T === ">" ? (i.state = r.TEXT,
|
|
2769
|
+
T === ">" ? (i.state = r.TEXT, M(i, "ondoctype", i.doctype), i.doctype = !0) : (i.doctype += T, T === "[" ? i.state = r.DOCTYPE_DTD : h(T) && (i.state = r.DOCTYPE_QUOTED, i.q = T));
|
|
2770
2770
|
continue;
|
|
2771
2771
|
case r.DOCTYPE_QUOTED:
|
|
2772
2772
|
i.doctype += T, T === i.q && (i.q = "", i.state = r.DOCTYPE);
|
|
2773
2773
|
continue;
|
|
2774
2774
|
case r.DOCTYPE_DTD:
|
|
2775
|
-
T === "]" ? (i.doctype += T, i.state = r.DOCTYPE) : T === "<" ? (i.state = r.OPEN_WAKA, i.startTagPosition = i.position) :
|
|
2775
|
+
T === "]" ? (i.doctype += T, i.state = r.DOCTYPE) : T === "<" ? (i.state = r.OPEN_WAKA, i.startTagPosition = i.position) : h(T) ? (i.doctype += T, i.state = r.DOCTYPE_DTD_QUOTED, i.q = T) : i.doctype += T;
|
|
2776
2776
|
continue;
|
|
2777
2777
|
case r.DOCTYPE_DTD_QUOTED:
|
|
2778
2778
|
i.doctype += T, T === i.q && (i.state = r.DOCTYPE_DTD, i.q = "");
|
|
@@ -2781,7 +2781,7 @@ Actual: ` + u.attribValue
|
|
|
2781
2781
|
T === "-" ? i.state = r.COMMENT_ENDING : i.comment += T;
|
|
2782
2782
|
continue;
|
|
2783
2783
|
case r.COMMENT_ENDING:
|
|
2784
|
-
T === "-" ? (i.state = r.COMMENT_ENDED, i.comment = F(i.opt, i.comment), i.comment &&
|
|
2784
|
+
T === "-" ? (i.state = r.COMMENT_ENDED, i.comment = F(i.opt, i.comment), i.comment && M(i, "oncomment", i.comment), i.comment = "") : (i.comment += "-" + T, i.state = r.COMMENT);
|
|
2785
2785
|
continue;
|
|
2786
2786
|
case r.COMMENT_ENDED:
|
|
2787
2787
|
T !== ">" ? (S(i, "Malformed comment"), i.comment += "--" + T, i.state = r.COMMENT) : i.doctype && i.doctype !== !0 ? i.state = r.DOCTYPE_DTD : i.state = r.TEXT;
|
|
@@ -2793,7 +2793,7 @@ Actual: ` + u.attribValue
|
|
|
2793
2793
|
T === "]" ? i.state = r.CDATA_ENDING_2 : (i.cdata += "]" + T, i.state = r.CDATA);
|
|
2794
2794
|
continue;
|
|
2795
2795
|
case r.CDATA_ENDING_2:
|
|
2796
|
-
T === ">" ? (i.cdata &&
|
|
2796
|
+
T === ">" ? (i.cdata && M(i, "oncdata", i.cdata), M(i, "onclosecdata"), i.cdata = "", i.state = r.TEXT) : T === "]" ? i.cdata += "]" : (i.cdata += "]]" + T, i.state = r.CDATA);
|
|
2797
2797
|
continue;
|
|
2798
2798
|
case r.PROC_INST:
|
|
2799
2799
|
T === "?" ? i.state = r.PROC_INST_ENDING : c(T) ? i.state = r.PROC_INST_BODY : i.procInstName += T;
|
|
@@ -2804,13 +2804,13 @@ Actual: ` + u.attribValue
|
|
|
2804
2804
|
T === "?" ? i.state = r.PROC_INST_ENDING : i.procInstBody += T;
|
|
2805
2805
|
continue;
|
|
2806
2806
|
case r.PROC_INST_ENDING:
|
|
2807
|
-
T === ">" ? (
|
|
2807
|
+
T === ">" ? (M(i, "onprocessinginstruction", {
|
|
2808
2808
|
name: i.procInstName,
|
|
2809
2809
|
body: i.procInstBody
|
|
2810
2810
|
}), i.procInstName = i.procInstBody = "", i.state = r.TEXT) : (i.procInstBody += "?" + T, i.state = r.PROC_INST_BODY);
|
|
2811
2811
|
continue;
|
|
2812
2812
|
case r.OPEN_TAG:
|
|
2813
|
-
L(
|
|
2813
|
+
L(_, T) ? i.tagName += T : (ar(i), T === ">" ? Z(i) : T === "/" ? i.state = r.OPEN_TAG_SLASH : (c(T) || S(i, "Invalid character in tag name"), i.state = r.ATTRIB));
|
|
2814
2814
|
continue;
|
|
2815
2815
|
case r.OPEN_TAG_SLASH:
|
|
2816
2816
|
T === ">" ? (Z(i, !0), Vt(i)) : (S(i, "Forward-slash in opening tag not followed by >"), i.state = r.ATTRIB);
|
|
@@ -2821,7 +2821,7 @@ Actual: ` + u.attribValue
|
|
|
2821
2821
|
T === ">" ? Z(i) : T === "/" ? i.state = r.OPEN_TAG_SLASH : L(x, T) ? (i.attribName = T, i.attribValue = "", i.state = r.ATTRIB_NAME) : S(i, "Invalid attribute name");
|
|
2822
2822
|
continue;
|
|
2823
2823
|
case r.ATTRIB_NAME:
|
|
2824
|
-
T === "=" ? i.state = r.ATTRIB_VALUE : T === ">" ? (S(i, "Attribute without value"), i.attribValue = i.attribName, Ut(i), Z(i)) : c(T) ? i.state = r.ATTRIB_NAME_SAW_WHITE : L(
|
|
2824
|
+
T === "=" ? i.state = r.ATTRIB_VALUE : T === ">" ? (S(i, "Attribute without value"), i.attribValue = i.attribName, Ut(i), Z(i)) : c(T) ? i.state = r.ATTRIB_NAME_SAW_WHITE : L(_, T) ? i.attribName += T : S(i, "Invalid attribute name");
|
|
2825
2825
|
continue;
|
|
2826
2826
|
case r.ATTRIB_NAME_SAW_WHITE:
|
|
2827
2827
|
if (T === "=")
|
|
@@ -2829,7 +2829,7 @@ Actual: ` + u.attribValue
|
|
|
2829
2829
|
else {
|
|
2830
2830
|
if (c(T))
|
|
2831
2831
|
continue;
|
|
2832
|
-
S(i, "Attribute without value"), i.tag.attributes[i.attribName] = "", i.attribValue = "",
|
|
2832
|
+
S(i, "Attribute without value"), i.tag.attributes[i.attribName] = "", i.attribValue = "", M(i, "onattribute", {
|
|
2833
2833
|
name: i.attribName,
|
|
2834
2834
|
value: ""
|
|
2835
2835
|
}), i.attribName = "", T === ">" ? Z(i) : L(x, T) ? (i.attribName = T, i.state = r.ATTRIB_NAME) : (S(i, "Invalid attribute name"), i.state = r.ATTRIB);
|
|
@@ -2838,7 +2838,7 @@ Actual: ` + u.attribValue
|
|
|
2838
2838
|
case r.ATTRIB_VALUE:
|
|
2839
2839
|
if (c(T))
|
|
2840
2840
|
continue;
|
|
2841
|
-
|
|
2841
|
+
h(T) ? (i.q = T, i.state = r.ATTRIB_VALUE_QUOTED) : (i.opt.unquotedAttributeValues || j(i, "Unquoted attribute value"), i.state = r.ATTRIB_VALUE_UNQUOTED, i.attribValue = T);
|
|
2842
2842
|
continue;
|
|
2843
2843
|
case r.ATTRIB_VALUE_QUOTED:
|
|
2844
2844
|
if (T !== i.q) {
|
|
@@ -2859,7 +2859,7 @@ Actual: ` + u.attribValue
|
|
|
2859
2859
|
continue;
|
|
2860
2860
|
case r.CLOSE_TAG:
|
|
2861
2861
|
if (i.tagName)
|
|
2862
|
-
T === ">" ? Vt(i) : L(
|
|
2862
|
+
T === ">" ? Vt(i) : L(_, T) ? i.tagName += T : i.script ? (i.script += "</" + i.tagName, i.tagName = "", i.state = r.SCRIPT) : (c(T) || S(i, "Invalid tagname in closing tag"), i.state = r.CLOSE_TAG_SAW_WHITE);
|
|
2863
2863
|
else {
|
|
2864
2864
|
if (c(T))
|
|
2865
2865
|
continue;
|
|
@@ -2898,7 +2898,7 @@ Actual: ` + u.attribValue
|
|
|
2898
2898
|
}
|
|
2899
2899
|
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */
|
|
2900
2900
|
String.fromCodePoint || function() {
|
|
2901
|
-
var u = String.fromCharCode, i = Math.floor,
|
|
2901
|
+
var u = String.fromCharCode, i = Math.floor, A = function() {
|
|
2902
2902
|
var T = 16384, R = [], q, U, k = -1, $ = arguments.length;
|
|
2903
2903
|
if (!$)
|
|
2904
2904
|
return "";
|
|
@@ -2914,10 +2914,10 @@ Actual: ` + u.attribValue
|
|
|
2914
2914
|
return J;
|
|
2915
2915
|
};
|
|
2916
2916
|
Object.defineProperty ? Object.defineProperty(String, "fromCodePoint", {
|
|
2917
|
-
value:
|
|
2917
|
+
value: A,
|
|
2918
2918
|
configurable: !0,
|
|
2919
2919
|
writable: !0
|
|
2920
|
-
}) : String.fromCodePoint =
|
|
2920
|
+
}) : String.fromCodePoint = A;
|
|
2921
2921
|
}();
|
|
2922
2922
|
})(n);
|
|
2923
2923
|
}($t)), $t;
|
|
@@ -2926,24 +2926,24 @@ var it = { exports: {} }, Ye;
|
|
|
2926
2926
|
function rn() {
|
|
2927
2927
|
if (Ye) return it.exports;
|
|
2928
2928
|
Ye = 1;
|
|
2929
|
-
var n = typeof Reflect == "object" ? Reflect : null, a = n && typeof n.apply == "function" ? n.apply : function(
|
|
2930
|
-
return Function.prototype.apply.call(
|
|
2929
|
+
var n = typeof Reflect == "object" ? Reflect : null, a = n && typeof n.apply == "function" ? n.apply : function(h, D, L) {
|
|
2930
|
+
return Function.prototype.apply.call(h, D, L);
|
|
2931
2931
|
}, g;
|
|
2932
|
-
n && typeof n.ownKeys == "function" ? g = n.ownKeys : Object.getOwnPropertySymbols ? g = function(
|
|
2933
|
-
return Object.getOwnPropertyNames(
|
|
2934
|
-
} : g = function(
|
|
2935
|
-
return Object.getOwnPropertyNames(
|
|
2932
|
+
n && typeof n.ownKeys == "function" ? g = n.ownKeys : Object.getOwnPropertySymbols ? g = function(h) {
|
|
2933
|
+
return Object.getOwnPropertyNames(h).concat(Object.getOwnPropertySymbols(h));
|
|
2934
|
+
} : g = function(h) {
|
|
2935
|
+
return Object.getOwnPropertyNames(h);
|
|
2936
2936
|
};
|
|
2937
|
-
function
|
|
2937
|
+
function f(c) {
|
|
2938
2938
|
console && console.warn && console.warn(c);
|
|
2939
2939
|
}
|
|
2940
|
-
var p = Number.isNaN || function(
|
|
2941
|
-
return
|
|
2940
|
+
var p = Number.isNaN || function(h) {
|
|
2941
|
+
return h !== h;
|
|
2942
2942
|
};
|
|
2943
2943
|
function t() {
|
|
2944
2944
|
t.init.call(this);
|
|
2945
2945
|
}
|
|
2946
|
-
it.exports = t, it.exports.once =
|
|
2946
|
+
it.exports = t, it.exports.once = _, t.EventEmitter = t, t.prototype._events = void 0, t.prototype._eventsCount = 0, t.prototype._maxListeners = void 0;
|
|
2947
2947
|
var e = 10;
|
|
2948
2948
|
function o(c) {
|
|
2949
2949
|
if (typeof c != "function")
|
|
@@ -2961,19 +2961,19 @@ function rn() {
|
|
|
2961
2961
|
}
|
|
2962
2962
|
}), t.init = function() {
|
|
2963
2963
|
(this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
|
|
2964
|
-
}, t.prototype.setMaxListeners = function(
|
|
2965
|
-
if (typeof
|
|
2966
|
-
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' +
|
|
2967
|
-
return this._maxListeners =
|
|
2964
|
+
}, t.prototype.setMaxListeners = function(h) {
|
|
2965
|
+
if (typeof h != "number" || h < 0 || p(h))
|
|
2966
|
+
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + h + ".");
|
|
2967
|
+
return this._maxListeners = h, this;
|
|
2968
2968
|
};
|
|
2969
2969
|
function l(c) {
|
|
2970
2970
|
return c._maxListeners === void 0 ? t.defaultMaxListeners : c._maxListeners;
|
|
2971
2971
|
}
|
|
2972
2972
|
t.prototype.getMaxListeners = function() {
|
|
2973
2973
|
return l(this);
|
|
2974
|
-
}, t.prototype.emit = function(
|
|
2974
|
+
}, t.prototype.emit = function(h) {
|
|
2975
2975
|
for (var D = [], L = 1; L < arguments.length; L++) D.push(arguments[L]);
|
|
2976
|
-
var v =
|
|
2976
|
+
var v = h === "error", r = this._events;
|
|
2977
2977
|
if (r !== void 0)
|
|
2978
2978
|
v = v && r.error === void 0;
|
|
2979
2979
|
else if (!v)
|
|
@@ -2982,107 +2982,107 @@ function rn() {
|
|
|
2982
2982
|
var N;
|
|
2983
2983
|
if (D.length > 0 && (N = D[0]), N instanceof Error)
|
|
2984
2984
|
throw N;
|
|
2985
|
-
var
|
|
2986
|
-
throw
|
|
2985
|
+
var P = new Error("Unhandled error." + (N ? " (" + N.message + ")" : ""));
|
|
2986
|
+
throw P.context = N, P;
|
|
2987
2987
|
}
|
|
2988
|
-
var
|
|
2989
|
-
if (
|
|
2988
|
+
var M = r[h];
|
|
2989
|
+
if (M === void 0)
|
|
2990
2990
|
return !1;
|
|
2991
|
-
if (typeof
|
|
2992
|
-
a(
|
|
2991
|
+
if (typeof M == "function")
|
|
2992
|
+
a(M, this, D);
|
|
2993
2993
|
else
|
|
2994
|
-
for (var C =
|
|
2994
|
+
for (var C = M.length, F = O(M, C), L = 0; L < C; ++L)
|
|
2995
2995
|
a(F[L], this, D);
|
|
2996
2996
|
return !0;
|
|
2997
2997
|
};
|
|
2998
|
-
function b(c,
|
|
2998
|
+
function b(c, h, D, L) {
|
|
2999
2999
|
var v, r, N;
|
|
3000
3000
|
if (o(D), r = c._events, r === void 0 ? (r = c._events = /* @__PURE__ */ Object.create(null), c._eventsCount = 0) : (r.newListener !== void 0 && (c.emit(
|
|
3001
3001
|
"newListener",
|
|
3002
|
-
|
|
3002
|
+
h,
|
|
3003
3003
|
D.listener ? D.listener : D
|
|
3004
|
-
), r = c._events), N = r[
|
|
3005
|
-
N = r[
|
|
3006
|
-
else if (typeof N == "function" ? N = r[
|
|
3004
|
+
), r = c._events), N = r[h]), N === void 0)
|
|
3005
|
+
N = r[h] = D, ++c._eventsCount;
|
|
3006
|
+
else if (typeof N == "function" ? N = r[h] = L ? [D, N] : [N, D] : L ? N.unshift(D) : N.push(D), v = l(c), v > 0 && N.length > v && !N.warned) {
|
|
3007
3007
|
N.warned = !0;
|
|
3008
|
-
var
|
|
3009
|
-
|
|
3008
|
+
var P = new Error("Possible EventEmitter memory leak detected. " + N.length + " " + String(h) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
3009
|
+
P.name = "MaxListenersExceededWarning", P.emitter = c, P.type = h, P.count = N.length, f(P);
|
|
3010
3010
|
}
|
|
3011
3011
|
return c;
|
|
3012
3012
|
}
|
|
3013
|
-
t.prototype.addListener = function(
|
|
3014
|
-
return b(this,
|
|
3015
|
-
}, t.prototype.on = t.prototype.addListener, t.prototype.prependListener = function(
|
|
3016
|
-
return b(this,
|
|
3013
|
+
t.prototype.addListener = function(h, D) {
|
|
3014
|
+
return b(this, h, D, !1);
|
|
3015
|
+
}, t.prototype.on = t.prototype.addListener, t.prototype.prependListener = function(h, D) {
|
|
3016
|
+
return b(this, h, D, !0);
|
|
3017
3017
|
};
|
|
3018
3018
|
function m() {
|
|
3019
3019
|
if (!this.fired)
|
|
3020
3020
|
return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
|
|
3021
3021
|
}
|
|
3022
|
-
function y(c,
|
|
3023
|
-
var L = { fired: !1, wrapFn: void 0, target: c, type:
|
|
3022
|
+
function y(c, h, D) {
|
|
3023
|
+
var L = { fired: !1, wrapFn: void 0, target: c, type: h, listener: D }, v = m.bind(L);
|
|
3024
3024
|
return v.listener = D, L.wrapFn = v, v;
|
|
3025
3025
|
}
|
|
3026
|
-
t.prototype.once = function(
|
|
3027
|
-
return o(D), this.on(
|
|
3028
|
-
}, t.prototype.prependOnceListener = function(
|
|
3029
|
-
return o(D), this.prependListener(
|
|
3030
|
-
}, t.prototype.removeListener = function(
|
|
3031
|
-
var L, v, r, N,
|
|
3026
|
+
t.prototype.once = function(h, D) {
|
|
3027
|
+
return o(D), this.on(h, y(this, h, D)), this;
|
|
3028
|
+
}, t.prototype.prependOnceListener = function(h, D) {
|
|
3029
|
+
return o(D), this.prependListener(h, y(this, h, D)), this;
|
|
3030
|
+
}, t.prototype.removeListener = function(h, D) {
|
|
3031
|
+
var L, v, r, N, P;
|
|
3032
3032
|
if (o(D), v = this._events, v === void 0)
|
|
3033
3033
|
return this;
|
|
3034
|
-
if (L = v[
|
|
3034
|
+
if (L = v[h], L === void 0)
|
|
3035
3035
|
return this;
|
|
3036
3036
|
if (L === D || L.listener === D)
|
|
3037
|
-
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete v[
|
|
3037
|
+
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete v[h], v.removeListener && this.emit("removeListener", h, L.listener || D));
|
|
3038
3038
|
else if (typeof L != "function") {
|
|
3039
3039
|
for (r = -1, N = L.length - 1; N >= 0; N--)
|
|
3040
3040
|
if (L[N] === D || L[N].listener === D) {
|
|
3041
|
-
|
|
3041
|
+
P = L[N].listener, r = N;
|
|
3042
3042
|
break;
|
|
3043
3043
|
}
|
|
3044
3044
|
if (r < 0)
|
|
3045
3045
|
return this;
|
|
3046
|
-
r === 0 ? L.shift() : I(L, r), L.length === 1 && (v[
|
|
3046
|
+
r === 0 ? L.shift() : I(L, r), L.length === 1 && (v[h] = L[0]), v.removeListener !== void 0 && this.emit("removeListener", h, P || D);
|
|
3047
3047
|
}
|
|
3048
3048
|
return this;
|
|
3049
|
-
}, t.prototype.off = t.prototype.removeListener, t.prototype.removeAllListeners = function(
|
|
3049
|
+
}, t.prototype.off = t.prototype.removeListener, t.prototype.removeAllListeners = function(h) {
|
|
3050
3050
|
var D, L, v;
|
|
3051
3051
|
if (L = this._events, L === void 0)
|
|
3052
3052
|
return this;
|
|
3053
3053
|
if (L.removeListener === void 0)
|
|
3054
|
-
return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : L[
|
|
3054
|
+
return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : L[h] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete L[h]), this;
|
|
3055
3055
|
if (arguments.length === 0) {
|
|
3056
3056
|
var r = Object.keys(L), N;
|
|
3057
3057
|
for (v = 0; v < r.length; ++v)
|
|
3058
3058
|
N = r[v], N !== "removeListener" && this.removeAllListeners(N);
|
|
3059
3059
|
return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
|
|
3060
3060
|
}
|
|
3061
|
-
if (D = L[
|
|
3062
|
-
this.removeListener(
|
|
3061
|
+
if (D = L[h], typeof D == "function")
|
|
3062
|
+
this.removeListener(h, D);
|
|
3063
3063
|
else if (D !== void 0)
|
|
3064
3064
|
for (v = D.length - 1; v >= 0; v--)
|
|
3065
|
-
this.removeListener(
|
|
3065
|
+
this.removeListener(h, D[v]);
|
|
3066
3066
|
return this;
|
|
3067
3067
|
};
|
|
3068
|
-
function d(c,
|
|
3068
|
+
function d(c, h, D) {
|
|
3069
3069
|
var L = c._events;
|
|
3070
3070
|
if (L === void 0)
|
|
3071
3071
|
return [];
|
|
3072
|
-
var v = L[
|
|
3072
|
+
var v = L[h];
|
|
3073
3073
|
return v === void 0 ? [] : typeof v == "function" ? D ? [v.listener || v] : [v] : D ? x(v) : O(v, v.length);
|
|
3074
3074
|
}
|
|
3075
|
-
t.prototype.listeners = function(
|
|
3076
|
-
return d(this,
|
|
3077
|
-
}, t.prototype.rawListeners = function(
|
|
3078
|
-
return d(this,
|
|
3079
|
-
}, t.listenerCount = function(c,
|
|
3080
|
-
return typeof c.listenerCount == "function" ? c.listenerCount(
|
|
3075
|
+
t.prototype.listeners = function(h) {
|
|
3076
|
+
return d(this, h, !0);
|
|
3077
|
+
}, t.prototype.rawListeners = function(h) {
|
|
3078
|
+
return d(this, h, !1);
|
|
3079
|
+
}, t.listenerCount = function(c, h) {
|
|
3080
|
+
return typeof c.listenerCount == "function" ? c.listenerCount(h) : w.call(c, h);
|
|
3081
3081
|
}, t.prototype.listenerCount = w;
|
|
3082
3082
|
function w(c) {
|
|
3083
|
-
var
|
|
3084
|
-
if (
|
|
3085
|
-
var D =
|
|
3083
|
+
var h = this._events;
|
|
3084
|
+
if (h !== void 0) {
|
|
3085
|
+
var D = h[c];
|
|
3086
3086
|
if (typeof D == "function")
|
|
3087
3087
|
return 1;
|
|
3088
3088
|
if (D !== void 0)
|
|
@@ -3093,41 +3093,41 @@ function rn() {
|
|
|
3093
3093
|
t.prototype.eventNames = function() {
|
|
3094
3094
|
return this._eventsCount > 0 ? g(this._events) : [];
|
|
3095
3095
|
};
|
|
3096
|
-
function O(c,
|
|
3097
|
-
for (var D = new Array(
|
|
3096
|
+
function O(c, h) {
|
|
3097
|
+
for (var D = new Array(h), L = 0; L < h; ++L)
|
|
3098
3098
|
D[L] = c[L];
|
|
3099
3099
|
return D;
|
|
3100
3100
|
}
|
|
3101
|
-
function I(c,
|
|
3102
|
-
for (;
|
|
3103
|
-
c[
|
|
3101
|
+
function I(c, h) {
|
|
3102
|
+
for (; h + 1 < c.length; h++)
|
|
3103
|
+
c[h] = c[h + 1];
|
|
3104
3104
|
c.pop();
|
|
3105
3105
|
}
|
|
3106
3106
|
function x(c) {
|
|
3107
|
-
for (var
|
|
3108
|
-
|
|
3109
|
-
return
|
|
3107
|
+
for (var h = new Array(c.length), D = 0; D < h.length; ++D)
|
|
3108
|
+
h[D] = c[D].listener || c[D];
|
|
3109
|
+
return h;
|
|
3110
3110
|
}
|
|
3111
|
-
function
|
|
3111
|
+
function _(c, h) {
|
|
3112
3112
|
return new Promise(function(D, L) {
|
|
3113
3113
|
function v(N) {
|
|
3114
|
-
c.removeListener(
|
|
3114
|
+
c.removeListener(h, r), L(N);
|
|
3115
3115
|
}
|
|
3116
3116
|
function r() {
|
|
3117
3117
|
typeof c.removeListener == "function" && c.removeListener("error", v), D([].slice.call(arguments));
|
|
3118
3118
|
}
|
|
3119
|
-
s(c,
|
|
3119
|
+
s(c, h, r, { once: !0 }), h !== "error" && E(c, v, { once: !0 });
|
|
3120
3120
|
});
|
|
3121
3121
|
}
|
|
3122
|
-
function E(c,
|
|
3123
|
-
typeof c.on == "function" && s(c, "error",
|
|
3122
|
+
function E(c, h, D) {
|
|
3123
|
+
typeof c.on == "function" && s(c, "error", h, D);
|
|
3124
3124
|
}
|
|
3125
|
-
function s(c,
|
|
3125
|
+
function s(c, h, D, L) {
|
|
3126
3126
|
if (typeof c.on == "function")
|
|
3127
|
-
L.once ? c.once(
|
|
3127
|
+
L.once ? c.once(h, D) : c.on(h, D);
|
|
3128
3128
|
else if (typeof c.addEventListener == "function")
|
|
3129
|
-
c.addEventListener(
|
|
3130
|
-
L.once && c.removeEventListener(
|
|
3129
|
+
c.addEventListener(h, function v(r) {
|
|
3130
|
+
L.once && c.removeEventListener(h, v), D(r);
|
|
3131
3131
|
});
|
|
3132
3132
|
else
|
|
3133
3133
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof c);
|
|
@@ -3163,7 +3163,7 @@ var He;
|
|
|
3163
3163
|
function on() {
|
|
3164
3164
|
return He || (He = 1, function(n) {
|
|
3165
3165
|
(function() {
|
|
3166
|
-
var a, g,
|
|
3166
|
+
var a, g, f, p, t, e, o, l, b, m = function(w, O) {
|
|
3167
3167
|
return function() {
|
|
3168
3168
|
return w.apply(O, arguments);
|
|
3169
3169
|
};
|
|
@@ -3178,23 +3178,23 @@ function on() {
|
|
|
3178
3178
|
l = en(), p = rn(), a = nn(), o = or(), b = Gt.setImmediate, g = Wt().defaults, t = function(w) {
|
|
3179
3179
|
return typeof w == "object" && w != null && Object.keys(w).length === 0;
|
|
3180
3180
|
}, e = function(w, O, I) {
|
|
3181
|
-
var x,
|
|
3182
|
-
for (x = 0,
|
|
3181
|
+
var x, _, E;
|
|
3182
|
+
for (x = 0, _ = w.length; x < _; x++)
|
|
3183
3183
|
E = w[x], O = E(O, I);
|
|
3184
3184
|
return O;
|
|
3185
|
-
},
|
|
3185
|
+
}, f = function(w, O, I) {
|
|
3186
3186
|
var x;
|
|
3187
3187
|
return x = /* @__PURE__ */ Object.create(null), x.value = I, x.writable = !0, x.enumerable = !0, x.configurable = !0, Object.defineProperty(w, O, x);
|
|
3188
3188
|
}, n.Parser = function(w) {
|
|
3189
3189
|
y(O, w);
|
|
3190
3190
|
function O(I) {
|
|
3191
3191
|
this.parseStringPromise = m(this.parseStringPromise, this), this.parseString = m(this.parseString, this), this.reset = m(this.reset, this), this.assignOrPush = m(this.assignOrPush, this), this.processAsync = m(this.processAsync, this);
|
|
3192
|
-
var x,
|
|
3192
|
+
var x, _, E;
|
|
3193
3193
|
if (!(this instanceof n.Parser))
|
|
3194
3194
|
return new n.Parser(I);
|
|
3195
|
-
this.options = {},
|
|
3196
|
-
for (x in
|
|
3197
|
-
d.call(
|
|
3195
|
+
this.options = {}, _ = g["0.2"];
|
|
3196
|
+
for (x in _)
|
|
3197
|
+
d.call(_, x) && (E = _[x], this.options[x] = E);
|
|
3198
3198
|
for (x in I)
|
|
3199
3199
|
d.call(I, x) && (E = I[x], this.options[x] = E);
|
|
3200
3200
|
this.options.xmlns && (this.options.xmlnskey = this.options.attrkey + "ns"), this.options.normalizeTags && (this.options.tagNameProcessors || (this.options.tagNameProcessors = []), this.options.tagNameProcessors.unshift(o.normalize)), this.reset();
|
|
@@ -3203,14 +3203,14 @@ function on() {
|
|
|
3203
3203
|
var I, x;
|
|
3204
3204
|
try {
|
|
3205
3205
|
return this.remaining.length <= this.options.chunkSize ? (I = this.remaining, this.remaining = "", this.saxParser = this.saxParser.write(I), this.saxParser.close()) : (I = this.remaining.substr(0, this.options.chunkSize), this.remaining = this.remaining.substr(this.options.chunkSize, this.remaining.length), this.saxParser = this.saxParser.write(I), b(this.processAsync));
|
|
3206
|
-
} catch (
|
|
3207
|
-
if (x =
|
|
3206
|
+
} catch (_) {
|
|
3207
|
+
if (x = _, !this.saxParser.errThrown)
|
|
3208
3208
|
return this.saxParser.errThrown = !0, this.emit(x);
|
|
3209
3209
|
}
|
|
3210
|
-
}, O.prototype.assignOrPush = function(I, x,
|
|
3211
|
-
return x in I ? (I[x] instanceof Array ||
|
|
3210
|
+
}, O.prototype.assignOrPush = function(I, x, _) {
|
|
3211
|
+
return x in I ? (I[x] instanceof Array || f(I, x, [I[x]]), I[x].push(_)) : this.options.explicitArray ? f(I, x, [_]) : f(I, x, _);
|
|
3212
3212
|
}, O.prototype.reset = function() {
|
|
3213
|
-
var I, x,
|
|
3213
|
+
var I, x, _, E;
|
|
3214
3214
|
return this.removeAllListeners(), this.saxParser = l.parser(this.options.strict, {
|
|
3215
3215
|
trim: !1,
|
|
3216
3216
|
normalize: !1,
|
|
@@ -3227,11 +3227,11 @@ function on() {
|
|
|
3227
3227
|
};
|
|
3228
3228
|
}(this), this.saxParser.ended = !1, this.EXPLICIT_CHARKEY = this.options.explicitCharkey, this.resultObject = null, E = [], I = this.options.attrkey, x = this.options.charkey, this.saxParser.onopentag = /* @__PURE__ */ function(s) {
|
|
3229
3229
|
return function(c) {
|
|
3230
|
-
var
|
|
3230
|
+
var h, D, L, v, r;
|
|
3231
3231
|
if (L = {}, L[x] = "", !s.options.ignoreAttrs) {
|
|
3232
3232
|
r = c.attributes;
|
|
3233
|
-
for (
|
|
3234
|
-
d.call(r,
|
|
3233
|
+
for (h in r)
|
|
3234
|
+
d.call(r, h) && (!(I in L) && !s.options.mergeAttrs && (L[I] = {}), D = s.options.attrValueProcessors ? e(s.options.attrValueProcessors, c.attributes[h], h) : c.attributes[h], v = s.options.attrNameProcessors ? e(s.options.attrNameProcessors, h) : h, s.options.mergeAttrs ? s.assignOrPush(L, v, D) : f(L[I], v, D));
|
|
3235
3235
|
}
|
|
3236
3236
|
return L["#name"] = s.options.tagNameProcessors ? e(s.options.tagNameProcessors, c.name) : c.name, s.options.xmlns && (L[s.options.xmlnskey] = {
|
|
3237
3237
|
uri: c.uri,
|
|
@@ -3240,8 +3240,8 @@ function on() {
|
|
|
3240
3240
|
};
|
|
3241
3241
|
}(this), this.saxParser.onclosetag = /* @__PURE__ */ function(s) {
|
|
3242
3242
|
return function() {
|
|
3243
|
-
var c,
|
|
3244
|
-
if (r = E.pop(), v = r["#name"], (!s.options.explicitChildren || !s.options.preserveChildrenOrder) && delete r["#name"], r.cdata === !0 && (c = r.cdata, delete r.cdata),
|
|
3243
|
+
var c, h, D, L, v, r, N, P, M, C;
|
|
3244
|
+
if (r = E.pop(), v = r["#name"], (!s.options.explicitChildren || !s.options.preserveChildrenOrder) && delete r["#name"], r.cdata === !0 && (c = r.cdata, delete r.cdata), M = E[E.length - 1], r[x].match(/^\s*$/) && !c ? (h = r[x], delete r[x]) : (s.options.trim && (r[x] = r[x].trim()), s.options.normalize && (r[x] = r[x].replace(/\s{2,}/g, " ").trim()), r[x] = s.options.valueProcessors ? e(s.options.valueProcessors, r[x], v) : r[x], Object.keys(r).length === 1 && x in r && !s.EXPLICIT_CHARKEY && (r = r[x])), t(r) && (typeof s.options.emptyTag == "function" ? r = s.options.emptyTag() : r = s.options.emptyTag !== "" ? s.options.emptyTag : h), s.options.validator != null && (C = "/" + function() {
|
|
3245
3245
|
var F, j, X;
|
|
3246
3246
|
for (X = [], F = 0, j = E.length; F < j; F++)
|
|
3247
3247
|
L = E[F], X.push(L["#name"]);
|
|
@@ -3249,39 +3249,39 @@ function on() {
|
|
|
3249
3249
|
}().concat(v).join("/"), function() {
|
|
3250
3250
|
var F;
|
|
3251
3251
|
try {
|
|
3252
|
-
return r = s.options.validator(C,
|
|
3252
|
+
return r = s.options.validator(C, M && M[v], r);
|
|
3253
3253
|
} catch (j) {
|
|
3254
3254
|
return F = j, s.emit("error", F);
|
|
3255
3255
|
}
|
|
3256
3256
|
}()), s.options.explicitChildren && !s.options.mergeAttrs && typeof r == "object") {
|
|
3257
3257
|
if (!s.options.preserveChildrenOrder)
|
|
3258
3258
|
L = {}, s.options.attrkey in r && (L[s.options.attrkey] = r[s.options.attrkey], delete r[s.options.attrkey]), !s.options.charsAsChildren && s.options.charkey in r && (L[s.options.charkey] = r[s.options.charkey], delete r[s.options.charkey]), Object.getOwnPropertyNames(r).length > 0 && (L[s.options.childkey] = r), r = L;
|
|
3259
|
-
else if (
|
|
3260
|
-
|
|
3259
|
+
else if (M) {
|
|
3260
|
+
M[s.options.childkey] = M[s.options.childkey] || [], N = {};
|
|
3261
3261
|
for (D in r)
|
|
3262
|
-
d.call(r, D) &&
|
|
3263
|
-
|
|
3262
|
+
d.call(r, D) && f(N, D, r[D]);
|
|
3263
|
+
M[s.options.childkey].push(N), delete r["#name"], Object.keys(r).length === 1 && x in r && !s.EXPLICIT_CHARKEY && (r = r[x]);
|
|
3264
3264
|
}
|
|
3265
3265
|
}
|
|
3266
|
-
return E.length > 0 ? s.assignOrPush(
|
|
3266
|
+
return E.length > 0 ? s.assignOrPush(M, v, r) : (s.options.explicitRoot && (P = r, r = {}, f(r, v, P)), s.resultObject = r, s.saxParser.ended = !0, s.emit("end", s.resultObject));
|
|
3267
3267
|
};
|
|
3268
|
-
}(this),
|
|
3268
|
+
}(this), _ = /* @__PURE__ */ function(s) {
|
|
3269
3269
|
return function(c) {
|
|
3270
|
-
var
|
|
3270
|
+
var h, D;
|
|
3271
3271
|
if (D = E[E.length - 1], D)
|
|
3272
|
-
return D[x] += c, s.options.explicitChildren && s.options.preserveChildrenOrder && s.options.charsAsChildren && (s.options.includeWhiteChars || c.replace(/\\n/g, "").trim() !== "") && (D[s.options.childkey] = D[s.options.childkey] || [],
|
|
3272
|
+
return D[x] += c, s.options.explicitChildren && s.options.preserveChildrenOrder && s.options.charsAsChildren && (s.options.includeWhiteChars || c.replace(/\\n/g, "").trim() !== "") && (D[s.options.childkey] = D[s.options.childkey] || [], h = {
|
|
3273
3273
|
"#name": "__text__"
|
|
3274
|
-
},
|
|
3274
|
+
}, h[x] = c, s.options.normalize && (h[x] = h[x].replace(/\s{2,}/g, " ").trim()), D[s.options.childkey].push(h)), D;
|
|
3275
3275
|
};
|
|
3276
|
-
}(this), this.saxParser.ontext =
|
|
3276
|
+
}(this), this.saxParser.ontext = _, this.saxParser.oncdata = /* @__PURE__ */ function(s) {
|
|
3277
3277
|
return function(c) {
|
|
3278
|
-
var
|
|
3279
|
-
if (
|
|
3280
|
-
return
|
|
3278
|
+
var h;
|
|
3279
|
+
if (h = _(c), h)
|
|
3280
|
+
return h.cdata = !0;
|
|
3281
3281
|
};
|
|
3282
3282
|
}();
|
|
3283
3283
|
}, O.prototype.parseString = function(I, x) {
|
|
3284
|
-
var
|
|
3284
|
+
var _;
|
|
3285
3285
|
x != null && typeof x == "function" && (this.on("end", function(E) {
|
|
3286
3286
|
return this.reset(), x(null, E);
|
|
3287
3287
|
}), this.on("error", function(E) {
|
|
@@ -3290,23 +3290,23 @@ function on() {
|
|
|
3290
3290
|
try {
|
|
3291
3291
|
return I = I.toString(), I.trim() === "" ? (this.emit("end", null), !0) : (I = a.stripBOM(I), this.options.async ? (this.remaining = I, b(this.processAsync), this.saxParser) : this.saxParser.write(I).close());
|
|
3292
3292
|
} catch (E) {
|
|
3293
|
-
if (
|
|
3293
|
+
if (_ = E, this.saxParser.errThrown || this.saxParser.ended) {
|
|
3294
3294
|
if (this.saxParser.ended)
|
|
3295
|
-
throw
|
|
3296
|
-
} else return this.emit("error",
|
|
3295
|
+
throw _;
|
|
3296
|
+
} else return this.emit("error", _), this.saxParser.errThrown = !0;
|
|
3297
3297
|
}
|
|
3298
3298
|
}, O.prototype.parseStringPromise = function(I) {
|
|
3299
3299
|
return new Promise(/* @__PURE__ */ function(x) {
|
|
3300
|
-
return function(
|
|
3300
|
+
return function(_, E) {
|
|
3301
3301
|
return x.parseString(I, function(s, c) {
|
|
3302
|
-
return s ? E(s) :
|
|
3302
|
+
return s ? E(s) : _(c);
|
|
3303
3303
|
});
|
|
3304
3304
|
};
|
|
3305
3305
|
}(this));
|
|
3306
3306
|
}, O;
|
|
3307
3307
|
}(p), n.parseString = function(w, O, I) {
|
|
3308
|
-
var x,
|
|
3309
|
-
return I != null ? (typeof I == "function" && (x = I), typeof O == "object" && (
|
|
3308
|
+
var x, _, E;
|
|
3309
|
+
return I != null ? (typeof I == "function" && (x = I), typeof O == "object" && (_ = O)) : (typeof O == "function" && (x = O), _ = {}), E = new n.Parser(_), E.parseString(w, x);
|
|
3310
3310
|
}, n.parseStringPromise = function(w, O) {
|
|
3311
3311
|
var I, x;
|
|
3312
3312
|
return typeof O == "object" && (I = O), x = new n.Parser(I), x.parseStringPromise(w);
|
|
@@ -3317,7 +3317,7 @@ function on() {
|
|
|
3317
3317
|
var Qe;
|
|
3318
3318
|
function sn() {
|
|
3319
3319
|
return Qe || (Qe = 1, (function() {
|
|
3320
|
-
var n, a, g,
|
|
3320
|
+
var n, a, g, f, p = function(e, o) {
|
|
3321
3321
|
for (var l in o)
|
|
3322
3322
|
t.call(o, l) && (e[l] = o[l]);
|
|
3323
3323
|
function b() {
|
|
@@ -3325,7 +3325,7 @@ function sn() {
|
|
|
3325
3325
|
}
|
|
3326
3326
|
return b.prototype = o.prototype, e.prototype = new b(), e.__super__ = o.prototype, e;
|
|
3327
3327
|
}, t = {}.hasOwnProperty;
|
|
3328
|
-
a = Wt(), n = Zr(), g = on(),
|
|
3328
|
+
a = Wt(), n = Zr(), g = on(), f = or(), W.defaults = a.defaults, W.processors = f, W.ValidationError = function(e) {
|
|
3329
3329
|
p(o, e);
|
|
3330
3330
|
function o(l) {
|
|
3331
3331
|
this.message = l;
|
|
@@ -3335,12 +3335,12 @@ function sn() {
|
|
|
3335
3335
|
}).call(W)), W;
|
|
3336
3336
|
}
|
|
3337
3337
|
var Ze = sn();
|
|
3338
|
-
const un = (n) => n !== null && typeof n == "object" && n.hasOwnProperty("rss") && typeof n.rss == "object" && n.rss !== null && n.rss.hasOwnProperty("channel") && Array.isArray(n.rss.channel), an = (n) => typeof n == "object" && n !== null && n.hasOwnProperty("title") && Array.isArray(n.title) && n.hasOwnProperty("description") && Array.isArray(n.description) && n.hasOwnProperty("link") && Array.isArray(n.link) && n.hasOwnProperty("image") && Array.isArray(n.image) && n.image.every(cn) && n.hasOwnProperty("generator") && Array.isArray(n.generator) && n.hasOwnProperty("lastBuildDate") && Array.isArray(n.lastBuildDate) && n.hasOwnProperty("atom:link") && Array.isArray(n["atom:link"]) && n["atom:link"].every(ln) && n.hasOwnProperty("copyright") && Array.isArray(n.copyright) && n.hasOwnProperty("language") && Array.isArray(n.language) && n.hasOwnProperty("webMaster") && Array.isArray(n.webMaster) && n.hasOwnProperty("itunes:owner") && Array.isArray(n["itunes:owner"]) && n["itunes:owner"].every(fn) && n.hasOwnProperty("itunes:author") && Array.isArray(n["itunes:author"]) && n.hasOwnProperty("googleplay:owner") && Array.isArray(n["googleplay:owner"]) && n.hasOwnProperty("googleplay:email") && Array.isArray(n["googleplay:email"]) && n.hasOwnProperty("googleplay:author") && Array.isArray(n["googleplay:author"]) && n.hasOwnProperty("item") && Array.isArray(n.item) && n.item.every(hn), cn = (n) => typeof n == "object" && n !== null && n.hasOwnProperty("url") && Array.isArray(n.url) && n.hasOwnProperty("title") && Array.isArray(n.title) && n.hasOwnProperty("link") && Array.isArray(n.link), ln = (n) => typeof n == "object" && n !== null && n.hasOwnProperty("$") && typeof n.$ == "object" && n.$ !== null && n.$.hasOwnProperty("href") && typeof n.$.href == "string" && n.$.hasOwnProperty("rel") && typeof n.$.rel == "string" && n.$.hasOwnProperty("type") && typeof n.$.type == "string", fn = (n) => typeof n == "object" && n !== null && n.hasOwnProperty("itunes:email") && Array.isArray(n["itunes:email"]) && n.hasOwnProperty("itunes:name") && Array.isArray(n["itunes:name"]), hn = (n) => typeof n == "object" && n !== null && n.hasOwnProperty("title") && Array.isArray(n.title) && n.hasOwnProperty("description") && Array.isArray(n.description) && n.hasOwnProperty("link") && Array.isArray(n.link) && n.hasOwnProperty("guid") && Array.isArray(n.guid) && n.guid.every(pn) && n.hasOwnProperty("dc:creator") && Array.isArray(n["dc:creator"]) && n.hasOwnProperty("pubDate") && Array.isArray(n.pubDate) && n.hasOwnProperty("enclosure") && Array.isArray(n.enclosure) && n.enclosure.every(dn) && n.hasOwnProperty("content:encoded") && Array.isArray(n["content:encoded"]), pn = (n) => typeof n == "object" && n !== null && n.hasOwnProperty("_") && typeof n._ == "string" && n.hasOwnProperty("$") && typeof n.$ == "object" && n.$ !== null && n.$.hasOwnProperty("isPermaLink") && typeof n.$.isPermaLink == "string", dn = (n) => typeof n == "object" && n !== null && n.hasOwnProperty("$") && typeof n.$ == "object" && n.$ !== null && n.$.hasOwnProperty("url") && typeof n.$.url == "string" && n.$.hasOwnProperty("length") && typeof n.$.length == "string" && n.$.hasOwnProperty("type") && typeof n.$.type == "string", yn = (n) => n && n.contents && n.status.http_code == 200, mn = (n) => n !== null && typeof n == "object" && n.hasOwnProperty("rss"), gn = (n) => typeof n == "object" && n !== null && n.hasOwnProperty("channel"), wn = (n) => typeof n == "object" && n !== null && n.hasOwnProperty("title") && n.hasOwnProperty("item"), sr = (n) => typeof n == "object" && n !== null && n.hasOwnProperty("title") && n.hasOwnProperty("link") && n.hasOwnProperty("book_image_url") && n.hasOwnProperty("author_name") && n.hasOwnProperty("book_description"), Tn = (n) => typeof n == "object" && n !== null && n.hasOwnProperty("contents") && n.hasOwnProperty("status"), ur = "https://
|
|
3338
|
+
const un = (n) => n !== null && typeof n == "object" && n.hasOwnProperty("rss") && typeof n.rss == "object" && n.rss !== null && n.rss.hasOwnProperty("channel") && Array.isArray(n.rss.channel), an = (n) => typeof n == "object" && n !== null && n.hasOwnProperty("title") && Array.isArray(n.title) && n.hasOwnProperty("description") && Array.isArray(n.description) && n.hasOwnProperty("link") && Array.isArray(n.link) && n.hasOwnProperty("image") && Array.isArray(n.image) && n.image.every(cn) && n.hasOwnProperty("generator") && Array.isArray(n.generator) && n.hasOwnProperty("lastBuildDate") && Array.isArray(n.lastBuildDate) && n.hasOwnProperty("atom:link") && Array.isArray(n["atom:link"]) && n["atom:link"].every(ln) && n.hasOwnProperty("copyright") && Array.isArray(n.copyright) && n.hasOwnProperty("language") && Array.isArray(n.language) && n.hasOwnProperty("webMaster") && Array.isArray(n.webMaster) && n.hasOwnProperty("itunes:owner") && Array.isArray(n["itunes:owner"]) && n["itunes:owner"].every(fn) && n.hasOwnProperty("itunes:author") && Array.isArray(n["itunes:author"]) && n.hasOwnProperty("googleplay:owner") && Array.isArray(n["googleplay:owner"]) && n.hasOwnProperty("googleplay:email") && Array.isArray(n["googleplay:email"]) && n.hasOwnProperty("googleplay:author") && Array.isArray(n["googleplay:author"]) && n.hasOwnProperty("item") && Array.isArray(n.item) && n.item.every(hn), cn = (n) => typeof n == "object" && n !== null && n.hasOwnProperty("url") && Array.isArray(n.url) && n.hasOwnProperty("title") && Array.isArray(n.title) && n.hasOwnProperty("link") && Array.isArray(n.link), ln = (n) => typeof n == "object" && n !== null && n.hasOwnProperty("$") && typeof n.$ == "object" && n.$ !== null && n.$.hasOwnProperty("href") && typeof n.$.href == "string" && n.$.hasOwnProperty("rel") && typeof n.$.rel == "string" && n.$.hasOwnProperty("type") && typeof n.$.type == "string", fn = (n) => typeof n == "object" && n !== null && n.hasOwnProperty("itunes:email") && Array.isArray(n["itunes:email"]) && n.hasOwnProperty("itunes:name") && Array.isArray(n["itunes:name"]), hn = (n) => typeof n == "object" && n !== null && n.hasOwnProperty("title") && Array.isArray(n.title) && n.hasOwnProperty("description") && Array.isArray(n.description) && n.hasOwnProperty("link") && Array.isArray(n.link) && n.hasOwnProperty("guid") && Array.isArray(n.guid) && n.guid.every(pn) && n.hasOwnProperty("dc:creator") && Array.isArray(n["dc:creator"]) && n.hasOwnProperty("pubDate") && Array.isArray(n.pubDate) && n.hasOwnProperty("enclosure") && Array.isArray(n.enclosure) && n.enclosure.every(dn) && n.hasOwnProperty("content:encoded") && Array.isArray(n["content:encoded"]), pn = (n) => typeof n == "object" && n !== null && n.hasOwnProperty("_") && typeof n._ == "string" && n.hasOwnProperty("$") && typeof n.$ == "object" && n.$ !== null && n.$.hasOwnProperty("isPermaLink") && typeof n.$.isPermaLink == "string", dn = (n) => typeof n == "object" && n !== null && n.hasOwnProperty("$") && typeof n.$ == "object" && n.$ !== null && n.$.hasOwnProperty("url") && typeof n.$.url == "string" && n.$.hasOwnProperty("length") && typeof n.$.length == "string" && n.$.hasOwnProperty("type") && typeof n.$.type == "string", yn = (n) => n && n.contents && n.status.http_code == 200, mn = (n) => n !== null && typeof n == "object" && n.hasOwnProperty("rss"), gn = (n) => typeof n == "object" && n !== null && n.hasOwnProperty("channel"), wn = (n) => typeof n == "object" && n !== null && n.hasOwnProperty("title") && n.hasOwnProperty("item"), sr = (n) => typeof n == "object" && n !== null && n.hasOwnProperty("title") && n.hasOwnProperty("link") && n.hasOwnProperty("book_image_url") && n.hasOwnProperty("book_large_image_url") && n.hasOwnProperty("author_name") && n.hasOwnProperty("book_description"), Tn = (n) => typeof n == "object" && n !== null && n.hasOwnProperty("contents") && n.hasOwnProperty("status"), ur = "https://lol-origin-84f24d4beb26.herokuapp.com/get?url=", tt = typeof document < "u", Dn = async (n) => {
|
|
3339
3339
|
try {
|
|
3340
3340
|
const a = tt ? `${ur}${encodeURIComponent(n)}` : n, g = await fetch(a);
|
|
3341
3341
|
if (g.ok) return tt ? g.json() : g.text();
|
|
3342
|
-
} catch {
|
|
3343
|
-
throw new Error("Error occurred fetching Feed from Substack");
|
|
3342
|
+
} catch (a) {
|
|
3343
|
+
throw console.error(a), new Error("Error occurred fetching Feed from Substack");
|
|
3344
3344
|
}
|
|
3345
3345
|
}, Rt = async (n = "", a) => {
|
|
3346
3346
|
if (!a) return Ze.parseStringPromise(n);
|
|
@@ -3362,8 +3362,9 @@ const un = (n) => n !== null && typeof n == "object" && n.hasOwnProperty("rss")
|
|
|
3362
3362
|
if (!un(n)) throw new Error("Feed is not in the correct format");
|
|
3363
3363
|
try {
|
|
3364
3364
|
return n.rss.channel.filter(an).filter((g) => g.link[0] === a);
|
|
3365
|
-
} catch {
|
|
3366
|
-
|
|
3365
|
+
} catch (g) {
|
|
3366
|
+
const f = new Error(`Error occurred fetching Feed by Link: ${a}`);
|
|
3367
|
+
throw f.cause = g, f;
|
|
3367
3368
|
}
|
|
3368
3369
|
}, Ln = (n) => n[0].item.map(En), bn = (n) => {
|
|
3369
3370
|
if (!sr(n))
|
|
@@ -3371,24 +3372,24 @@ const un = (n) => n !== null && typeof n == "object" && n.hasOwnProperty("rss")
|
|
|
3371
3372
|
return {
|
|
3372
3373
|
title: n.title[0],
|
|
3373
3374
|
link: n.link[0],
|
|
3374
|
-
book_image_url: n.
|
|
3375
|
+
book_image_url: n.book_large_image_url[0],
|
|
3375
3376
|
author_name: n.author_name[0],
|
|
3376
3377
|
book_description: n.book_description[0]
|
|
3377
3378
|
};
|
|
3378
|
-
}, On = async (n) => {
|
|
3379
|
+
}, On = async (n, a) => {
|
|
3379
3380
|
try {
|
|
3380
|
-
const
|
|
3381
|
-
if (
|
|
3382
|
-
} catch {
|
|
3383
|
-
throw new Error("Error occurred fetching Feed from Goodreads");
|
|
3381
|
+
const g = tt ? `${a ?? ur}${encodeURIComponent(n)}` : n, f = await fetch(g);
|
|
3382
|
+
if (f.ok) return tt ? f.json() : f.text();
|
|
3383
|
+
} catch (g) {
|
|
3384
|
+
throw console.error(g), new Error("Error occurred fetching Feed from Goodreads");
|
|
3384
3385
|
}
|
|
3385
|
-
}, In = async (n, a) => {
|
|
3386
|
-
const
|
|
3386
|
+
}, In = async (n, a, g) => {
|
|
3387
|
+
const f = await On(n, g);
|
|
3387
3388
|
if (!tt)
|
|
3388
|
-
return Rt(
|
|
3389
|
-
if (!Tn(
|
|
3389
|
+
return Rt(f, a);
|
|
3390
|
+
if (!Tn(f))
|
|
3390
3391
|
throw new Error("Error occurred fetching Feed from Goodreads");
|
|
3391
|
-
await Rt(
|
|
3392
|
+
await Rt(f.contents, a);
|
|
3392
3393
|
}, xn = (n) => {
|
|
3393
3394
|
if (!mn(n))
|
|
3394
3395
|
throw new Error("Goodreads feed is not in the correct format");
|