substack-feed-api 1.0.4 → 1.0.10
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 +766 -760
- package/dist/substackFeedApi.umd.cjs +8 -8
- package/index.d.ts +2 -2
- package/package.json +9 -1
package/dist/substackFeedApi.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
function
|
|
1
|
+
function cr(i) {
|
|
2
2
|
if (i.__esModule) return i;
|
|
3
|
-
var
|
|
4
|
-
if (typeof
|
|
5
|
-
var D = function
|
|
6
|
-
return this instanceof
|
|
3
|
+
var a = i.default;
|
|
4
|
+
if (typeof a == "function") {
|
|
5
|
+
var D = function p() {
|
|
6
|
+
return this instanceof p ? Reflect.construct(a, arguments, this.constructor) : a.apply(this, arguments);
|
|
7
7
|
};
|
|
8
|
-
D.prototype =
|
|
8
|
+
D.prototype = a.prototype;
|
|
9
9
|
} else D = {};
|
|
10
|
-
return Object.defineProperty(D, "__esModule", { value: !0 }), Object.keys(i).forEach(function(
|
|
11
|
-
var h = Object.getOwnPropertyDescriptor(i,
|
|
12
|
-
Object.defineProperty(D,
|
|
10
|
+
return Object.defineProperty(D, "__esModule", { value: !0 }), Object.keys(i).forEach(function(p) {
|
|
11
|
+
var h = Object.getOwnPropertyDescriptor(i, p);
|
|
12
|
+
Object.defineProperty(D, p, h.get ? h : {
|
|
13
13
|
enumerable: !0,
|
|
14
14
|
get: function() {
|
|
15
|
-
return i[
|
|
15
|
+
return i[p];
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
}), D;
|
|
19
19
|
}
|
|
20
|
-
var G = {}, tt = {},
|
|
21
|
-
function
|
|
22
|
-
return
|
|
20
|
+
var G = {}, tt = {}, le;
|
|
21
|
+
function Wt() {
|
|
22
|
+
return le || (le = 1, (function() {
|
|
23
23
|
tt.defaults = {
|
|
24
24
|
"0.1": {
|
|
25
25
|
explicitCharkey: !1,
|
|
@@ -91,10 +91,10 @@ function $t() {
|
|
|
91
91
|
};
|
|
92
92
|
}).call(tt)), tt;
|
|
93
93
|
}
|
|
94
|
-
var et = {}, Y = {}, K = {},
|
|
94
|
+
var et = {}, Y = {}, K = {}, fe;
|
|
95
95
|
function H() {
|
|
96
|
-
return
|
|
97
|
-
var i,
|
|
96
|
+
return fe || (fe = 1, (function() {
|
|
97
|
+
var i, a, D, p, h, t, e, o = [].slice, l = {}.hasOwnProperty;
|
|
98
98
|
i = function() {
|
|
99
99
|
var b, m, y, d, g, O;
|
|
100
100
|
if (O = arguments[0], g = 2 <= arguments.length ? o.call(arguments, 1) : [], h(Object.assign))
|
|
@@ -112,7 +112,7 @@ function H() {
|
|
|
112
112
|
return !!b && ((m = typeof b) == "function" || m === "object");
|
|
113
113
|
}, D = function(b) {
|
|
114
114
|
return h(Array.isArray) ? Array.isArray(b) : Object.prototype.toString.call(b) === "[object Array]";
|
|
115
|
-
},
|
|
115
|
+
}, p = function(b) {
|
|
116
116
|
var m;
|
|
117
117
|
if (D(b))
|
|
118
118
|
return !b.length;
|
|
@@ -123,67 +123,67 @@ function H() {
|
|
|
123
123
|
}, e = function(b) {
|
|
124
124
|
var m, y;
|
|
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 h(b.valueOf) ? b.valueOf() : b;
|
|
128
|
-
}, K.assign = i, K.isFunction = h, K.isObject = t, K.isArray = D, K.isEmpty =
|
|
128
|
+
}, K.assign = i, K.isFunction = h, K.isObject = t, K.isArray = D, K.isEmpty = p, K.isPlainObject = e, K.getValue = a;
|
|
129
129
|
}).call(K)), K;
|
|
130
130
|
}
|
|
131
|
-
var ot = { exports: {} },
|
|
132
|
-
function
|
|
133
|
-
return
|
|
131
|
+
var ot = { exports: {} }, lr = ot.exports, pe;
|
|
132
|
+
function Ze() {
|
|
133
|
+
return pe || (pe = 1, (function() {
|
|
134
134
|
ot.exports = function() {
|
|
135
135
|
function i() {
|
|
136
136
|
}
|
|
137
|
-
return i.prototype.hasFeature = function(
|
|
137
|
+
return i.prototype.hasFeature = function(a, D) {
|
|
138
138
|
return !0;
|
|
139
|
-
}, i.prototype.createDocumentType = function(
|
|
139
|
+
}, i.prototype.createDocumentType = function(a, D, p) {
|
|
140
140
|
throw new Error("This DOM method is not implemented.");
|
|
141
|
-
}, i.prototype.createDocument = function(
|
|
141
|
+
}, i.prototype.createDocument = function(a, D, p) {
|
|
142
142
|
throw new Error("This DOM method is not implemented.");
|
|
143
|
-
}, i.prototype.createHTMLDocument = function(
|
|
143
|
+
}, i.prototype.createHTMLDocument = function(a) {
|
|
144
144
|
throw new Error("This DOM method is not implemented.");
|
|
145
|
-
}, i.prototype.getFeature = function(
|
|
145
|
+
}, i.prototype.getFeature = function(a, D) {
|
|
146
146
|
throw new Error("This DOM method is not implemented.");
|
|
147
147
|
}, i;
|
|
148
148
|
}();
|
|
149
|
-
}).call(
|
|
149
|
+
}).call(lr)), ot.exports;
|
|
150
150
|
}
|
|
151
|
-
var st = { exports: {} }, ut = { exports: {} }, at = { exports: {} },
|
|
152
|
-
function
|
|
153
|
-
return
|
|
151
|
+
var st = { exports: {} }, ut = { exports: {} }, at = { exports: {} }, fr = at.exports, he;
|
|
152
|
+
function pr() {
|
|
153
|
+
return he || (he = 1, (function() {
|
|
154
154
|
at.exports = function() {
|
|
155
155
|
function i() {
|
|
156
156
|
}
|
|
157
|
-
return i.prototype.handleError = function(
|
|
158
|
-
throw new Error(
|
|
157
|
+
return i.prototype.handleError = function(a) {
|
|
158
|
+
throw new Error(a);
|
|
159
159
|
}, i;
|
|
160
160
|
}();
|
|
161
|
-
}).call(
|
|
161
|
+
}).call(fr)), at.exports;
|
|
162
162
|
}
|
|
163
|
-
var ct = { exports: {} },
|
|
164
|
-
function
|
|
165
|
-
return
|
|
163
|
+
var ct = { exports: {} }, hr = ct.exports, de;
|
|
164
|
+
function dr() {
|
|
165
|
+
return de || (de = 1, (function() {
|
|
166
166
|
ct.exports = function() {
|
|
167
|
-
function i(
|
|
168
|
-
this.arr =
|
|
167
|
+
function i(a) {
|
|
168
|
+
this.arr = a || [];
|
|
169
169
|
}
|
|
170
170
|
return Object.defineProperty(i.prototype, "length", {
|
|
171
171
|
get: function() {
|
|
172
172
|
return this.arr.length;
|
|
173
173
|
}
|
|
174
|
-
}), i.prototype.item = function(
|
|
175
|
-
return this.arr[
|
|
176
|
-
}, i.prototype.contains = function(
|
|
177
|
-
return this.arr.indexOf(
|
|
174
|
+
}), i.prototype.item = function(a) {
|
|
175
|
+
return this.arr[a] || null;
|
|
176
|
+
}, i.prototype.contains = function(a) {
|
|
177
|
+
return this.arr.indexOf(a) !== -1;
|
|
178
178
|
}, i;
|
|
179
179
|
}();
|
|
180
|
-
}).call(
|
|
180
|
+
}).call(hr)), ct.exports;
|
|
181
181
|
}
|
|
182
|
-
var
|
|
183
|
-
function
|
|
184
|
-
return
|
|
185
|
-
var i,
|
|
186
|
-
i =
|
|
182
|
+
var yr = ut.exports, ye;
|
|
183
|
+
function mr() {
|
|
184
|
+
return ye || (ye = 1, (function() {
|
|
185
|
+
var i, a;
|
|
186
|
+
i = pr(), a = dr(), ut.exports = function() {
|
|
187
187
|
function D() {
|
|
188
188
|
this.defaultParams = {
|
|
189
189
|
"canonical-form": !1,
|
|
@@ -207,21 +207,21 @@ function dr() {
|
|
|
207
207
|
}
|
|
208
208
|
return Object.defineProperty(D.prototype, "parameterNames", {
|
|
209
209
|
get: function() {
|
|
210
|
-
return new
|
|
210
|
+
return new a(Object.keys(this.defaultParams));
|
|
211
211
|
}
|
|
212
|
-
}), D.prototype.getParameter = function(
|
|
213
|
-
return this.params.hasOwnProperty(
|
|
214
|
-
}, D.prototype.canSetParameter = function(
|
|
212
|
+
}), D.prototype.getParameter = function(p) {
|
|
213
|
+
return this.params.hasOwnProperty(p) ? this.params[p] : null;
|
|
214
|
+
}, D.prototype.canSetParameter = function(p, h) {
|
|
215
215
|
return !0;
|
|
216
|
-
}, D.prototype.setParameter = function(
|
|
217
|
-
return h != null ? this.params[
|
|
216
|
+
}, D.prototype.setParameter = function(p, h) {
|
|
217
|
+
return h != null ? this.params[p] = h : delete this.params[p];
|
|
218
218
|
}, D;
|
|
219
219
|
}();
|
|
220
|
-
}).call(
|
|
220
|
+
}).call(yr)), ut.exports;
|
|
221
221
|
}
|
|
222
|
-
var lt = { exports: {} }, ft = { exports: {} }, pt = { exports: {} },
|
|
222
|
+
var lt = { exports: {} }, ft = { exports: {} }, pt = { exports: {} }, gr = pt.exports, me;
|
|
223
223
|
function B() {
|
|
224
|
-
return
|
|
224
|
+
return me || (me = 1, (function() {
|
|
225
225
|
pt.exports = {
|
|
226
226
|
Element: 1,
|
|
227
227
|
Attribute: 2,
|
|
@@ -241,67 +241,67 @@ function B() {
|
|
|
241
241
|
ElementDeclaration: 204,
|
|
242
242
|
Dummy: 205
|
|
243
243
|
};
|
|
244
|
-
}).call(
|
|
244
|
+
}).call(gr)), pt.exports;
|
|
245
245
|
}
|
|
246
|
-
var ht = { exports: {} },
|
|
247
|
-
function
|
|
248
|
-
return
|
|
246
|
+
var ht = { exports: {} }, wr = ht.exports, ge;
|
|
247
|
+
function Je() {
|
|
248
|
+
return ge || (ge = 1, (function() {
|
|
249
249
|
var i;
|
|
250
250
|
i = B(), W(), ht.exports = function() {
|
|
251
|
-
function
|
|
252
|
-
if (this.parent = D, 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(D, p, h) {
|
|
252
|
+
if (this.parent = D, this.parent && (this.options = this.parent.options, this.stringify = this.parent.stringify), p == null)
|
|
253
|
+
throw new Error("Missing attribute name. " + this.debugInfo(p));
|
|
254
|
+
this.name = this.stringify.name(p), this.value = this.stringify.attValue(h), this.type = i.Attribute, this.isId = !1, this.schemaTypeInfo = null;
|
|
255
255
|
}
|
|
256
|
-
return Object.defineProperty(
|
|
256
|
+
return Object.defineProperty(a.prototype, "nodeType", {
|
|
257
257
|
get: function() {
|
|
258
258
|
return this.type;
|
|
259
259
|
}
|
|
260
|
-
}), Object.defineProperty(
|
|
260
|
+
}), Object.defineProperty(a.prototype, "ownerElement", {
|
|
261
261
|
get: function() {
|
|
262
262
|
return this.parent;
|
|
263
263
|
}
|
|
264
|
-
}), Object.defineProperty(
|
|
264
|
+
}), Object.defineProperty(a.prototype, "textContent", {
|
|
265
265
|
get: function() {
|
|
266
266
|
return this.value;
|
|
267
267
|
},
|
|
268
268
|
set: function(D) {
|
|
269
269
|
return this.value = D || "";
|
|
270
270
|
}
|
|
271
|
-
}), Object.defineProperty(
|
|
271
|
+
}), Object.defineProperty(a.prototype, "namespaceURI", {
|
|
272
272
|
get: function() {
|
|
273
273
|
return "";
|
|
274
274
|
}
|
|
275
|
-
}), Object.defineProperty(
|
|
275
|
+
}), Object.defineProperty(a.prototype, "prefix", {
|
|
276
276
|
get: function() {
|
|
277
277
|
return "";
|
|
278
278
|
}
|
|
279
|
-
}), Object.defineProperty(
|
|
279
|
+
}), Object.defineProperty(a.prototype, "localName", {
|
|
280
280
|
get: function() {
|
|
281
281
|
return this.name;
|
|
282
282
|
}
|
|
283
|
-
}), Object.defineProperty(
|
|
283
|
+
}), Object.defineProperty(a.prototype, "specified", {
|
|
284
284
|
get: function() {
|
|
285
285
|
return !0;
|
|
286
286
|
}
|
|
287
|
-
}),
|
|
287
|
+
}), a.prototype.clone = function() {
|
|
288
288
|
return Object.create(this);
|
|
289
|
-
},
|
|
289
|
+
}, a.prototype.toString = function(D) {
|
|
290
290
|
return this.options.writer.attribute(this, this.options.writer.filterOptions(D));
|
|
291
|
-
},
|
|
291
|
+
}, a.prototype.debugInfo = function(D) {
|
|
292
292
|
return D = D || this.name, D == null ? "parent: <" + this.parent.name + ">" : "attribute: {" + D + "}, parent: <" + this.parent.name + ">";
|
|
293
|
-
},
|
|
293
|
+
}, a.prototype.isEqualNode = function(D) {
|
|
294
294
|
return !(D.namespaceURI !== this.namespaceURI || D.prefix !== this.prefix || D.localName !== this.localName || D.value !== this.value);
|
|
295
|
-
},
|
|
295
|
+
}, a;
|
|
296
296
|
}();
|
|
297
|
-
}).call(
|
|
297
|
+
}).call(wr)), ht.exports;
|
|
298
298
|
}
|
|
299
|
-
var dt = { exports: {} },
|
|
300
|
-
function
|
|
301
|
-
return
|
|
299
|
+
var dt = { exports: {} }, Tr = dt.exports, we;
|
|
300
|
+
function Gt() {
|
|
301
|
+
return we || (we = 1, (function() {
|
|
302
302
|
dt.exports = function() {
|
|
303
|
-
function i(
|
|
304
|
-
this.nodes =
|
|
303
|
+
function i(a) {
|
|
304
|
+
this.nodes = a;
|
|
305
305
|
}
|
|
306
306
|
return Object.defineProperty(i.prototype, "length", {
|
|
307
307
|
get: function() {
|
|
@@ -309,30 +309,30 @@ function Wt() {
|
|
|
309
309
|
}
|
|
310
310
|
}), i.prototype.clone = function() {
|
|
311
311
|
return this.nodes = null;
|
|
312
|
-
}, i.prototype.getNamedItem = function(
|
|
313
|
-
return this.nodes[
|
|
314
|
-
}, i.prototype.setNamedItem = function(
|
|
312
|
+
}, i.prototype.getNamedItem = function(a) {
|
|
313
|
+
return this.nodes[a];
|
|
314
|
+
}, i.prototype.setNamedItem = function(a) {
|
|
315
315
|
var D;
|
|
316
|
-
return D = this.nodes[
|
|
317
|
-
}, i.prototype.removeNamedItem = function(
|
|
316
|
+
return D = this.nodes[a.nodeName], this.nodes[a.nodeName] = a, D || null;
|
|
317
|
+
}, i.prototype.removeNamedItem = function(a) {
|
|
318
318
|
var D;
|
|
319
|
-
return D = this.nodes[
|
|
320
|
-
}, i.prototype.item = function(
|
|
321
|
-
return this.nodes[Object.keys(this.nodes)[
|
|
322
|
-
}, i.prototype.getNamedItemNS = function(
|
|
319
|
+
return D = this.nodes[a], delete this.nodes[a], D || null;
|
|
320
|
+
}, i.prototype.item = function(a) {
|
|
321
|
+
return this.nodes[Object.keys(this.nodes)[a]] || null;
|
|
322
|
+
}, i.prototype.getNamedItemNS = function(a, D) {
|
|
323
323
|
throw new Error("This DOM method is not implemented.");
|
|
324
|
-
}, i.prototype.setNamedItemNS = function(
|
|
324
|
+
}, i.prototype.setNamedItemNS = function(a) {
|
|
325
325
|
throw new Error("This DOM method is not implemented.");
|
|
326
|
-
}, i.prototype.removeNamedItemNS = function(
|
|
326
|
+
}, i.prototype.removeNamedItemNS = function(a, D) {
|
|
327
327
|
throw new Error("This DOM method is not implemented.");
|
|
328
328
|
}, i;
|
|
329
329
|
}();
|
|
330
|
-
}).call(
|
|
330
|
+
}).call(Tr)), dt.exports;
|
|
331
331
|
}
|
|
332
|
-
var
|
|
333
|
-
function
|
|
334
|
-
return
|
|
335
|
-
var i,
|
|
332
|
+
var Dr = ft.exports, Te;
|
|
333
|
+
function Yt() {
|
|
334
|
+
return Te || (Te = 1, (function() {
|
|
335
|
+
var i, a, D, p, h, 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 g() {
|
|
@@ -340,7 +340,7 @@ function Gt() {
|
|
|
340
340
|
}
|
|
341
341
|
return g.prototype = y.prototype, m.prototype = new g(), m.__super__ = y.prototype, m;
|
|
342
342
|
}, b = {}.hasOwnProperty;
|
|
343
|
-
o = H(), e = o.isObject, t = o.isFunction, h = o.getValue,
|
|
343
|
+
o = H(), e = o.isObject, t = o.isFunction, h = o.getValue, p = W(), i = B(), a = Je(), D = Gt(), ft.exports = function(m) {
|
|
344
344
|
l(y, m);
|
|
345
345
|
function y(d, g, O) {
|
|
346
346
|
var I, x, P, E;
|
|
@@ -401,7 +401,7 @@ function Gt() {
|
|
|
401
401
|
for (O in d)
|
|
402
402
|
b.call(d, O) && (I = d[O], this.attribute(O, I));
|
|
403
403
|
else
|
|
404
|
-
t(g) && (g = g.apply()), this.options.keepNullAttributes && g == null ? this.attribs[d] = new
|
|
404
|
+
t(g) && (g = g.apply()), this.options.keepNullAttributes && g == null ? this.attribs[d] = new a(this, d, "") : g != null && (this.attribs[d] = new a(this, d, g));
|
|
405
405
|
return this;
|
|
406
406
|
}, y.prototype.removeAttribute = function(d) {
|
|
407
407
|
var g, O, I;
|
|
@@ -468,22 +468,22 @@ function Gt() {
|
|
|
468
468
|
return !1;
|
|
469
469
|
return !0;
|
|
470
470
|
}, y;
|
|
471
|
-
}(
|
|
472
|
-
}).call(
|
|
471
|
+
}(p);
|
|
472
|
+
}).call(Dr)), ft.exports;
|
|
473
473
|
}
|
|
474
|
-
var yt = { exports: {} }, mt = { exports: {} },
|
|
474
|
+
var yt = { exports: {} }, mt = { exports: {} }, Er = mt.exports, De;
|
|
475
475
|
function Ft() {
|
|
476
|
-
return
|
|
477
|
-
var i,
|
|
476
|
+
return De || (De = 1, (function() {
|
|
477
|
+
var i, a = function(p, h) {
|
|
478
478
|
for (var t in h)
|
|
479
|
-
D.call(h, t) && (
|
|
479
|
+
D.call(h, t) && (p[t] = h[t]);
|
|
480
480
|
function e() {
|
|
481
|
-
this.constructor =
|
|
481
|
+
this.constructor = p;
|
|
482
482
|
}
|
|
483
|
-
return e.prototype = h.prototype,
|
|
483
|
+
return e.prototype = h.prototype, p.prototype = new e(), p.__super__ = h.prototype, p;
|
|
484
484
|
}, D = {}.hasOwnProperty;
|
|
485
|
-
i = W(), mt.exports = function(
|
|
486
|
-
|
|
485
|
+
i = W(), mt.exports = function(p) {
|
|
486
|
+
a(h, p);
|
|
487
487
|
function h(t) {
|
|
488
488
|
h.__super__.constructor.call(this, t), this.value = "";
|
|
489
489
|
}
|
|
@@ -521,20 +521,20 @@ function Ft() {
|
|
|
521
521
|
return !(!h.__super__.isEqualNode.apply(this, arguments).isEqualNode(t) || t.data !== this.data);
|
|
522
522
|
}, h;
|
|
523
523
|
}(i);
|
|
524
|
-
}).call(
|
|
524
|
+
}).call(Er)), mt.exports;
|
|
525
525
|
}
|
|
526
|
-
var
|
|
527
|
-
function
|
|
528
|
-
return
|
|
529
|
-
var i,
|
|
526
|
+
var br = yt.exports, Ee;
|
|
527
|
+
function Kt() {
|
|
528
|
+
return Ee || (Ee = 1, (function() {
|
|
529
|
+
var i, a, D = function(h, t) {
|
|
530
530
|
for (var e in t)
|
|
531
|
-
|
|
531
|
+
p.call(t, e) && (h[e] = t[e]);
|
|
532
532
|
function o() {
|
|
533
533
|
this.constructor = h;
|
|
534
534
|
}
|
|
535
535
|
return o.prototype = t.prototype, h.prototype = new o(), h.__super__ = t.prototype, h;
|
|
536
|
-
},
|
|
537
|
-
i = B(),
|
|
536
|
+
}, p = {}.hasOwnProperty;
|
|
537
|
+
i = B(), a = Ft(), yt.exports = function(h) {
|
|
538
538
|
D(t, h);
|
|
539
539
|
function t(e, o) {
|
|
540
540
|
if (t.__super__.constructor.call(this, e), o == null)
|
|
@@ -546,21 +546,21 @@ function Yt() {
|
|
|
546
546
|
}, t.prototype.toString = function(e) {
|
|
547
547
|
return this.options.writer.cdata(this, this.options.writer.filterOptions(e));
|
|
548
548
|
}, t;
|
|
549
|
-
}(
|
|
550
|
-
}).call(
|
|
549
|
+
}(a);
|
|
550
|
+
}).call(br)), yt.exports;
|
|
551
551
|
}
|
|
552
|
-
var gt = { exports: {} },
|
|
553
|
-
function
|
|
554
|
-
return
|
|
555
|
-
var i,
|
|
552
|
+
var gt = { exports: {} }, Or = gt.exports, be;
|
|
553
|
+
function zt() {
|
|
554
|
+
return be || (be = 1, (function() {
|
|
555
|
+
var i, a, D = function(h, t) {
|
|
556
556
|
for (var e in t)
|
|
557
|
-
|
|
557
|
+
p.call(t, e) && (h[e] = t[e]);
|
|
558
558
|
function o() {
|
|
559
559
|
this.constructor = h;
|
|
560
560
|
}
|
|
561
561
|
return o.prototype = t.prototype, h.prototype = new o(), h.__super__ = t.prototype, h;
|
|
562
|
-
},
|
|
563
|
-
i = B(),
|
|
562
|
+
}, p = {}.hasOwnProperty;
|
|
563
|
+
i = B(), a = Ft(), gt.exports = function(h) {
|
|
564
564
|
D(t, h);
|
|
565
565
|
function t(e, o) {
|
|
566
566
|
if (t.__super__.constructor.call(this, e), o == null)
|
|
@@ -572,13 +572,13 @@ function Kt() {
|
|
|
572
572
|
}, t.prototype.toString = function(e) {
|
|
573
573
|
return this.options.writer.comment(this, this.options.writer.filterOptions(e));
|
|
574
574
|
}, t;
|
|
575
|
-
}(
|
|
576
|
-
}).call(
|
|
575
|
+
}(a);
|
|
576
|
+
}).call(Or)), gt.exports;
|
|
577
577
|
}
|
|
578
|
-
var wt = { exports: {} },
|
|
579
|
-
function
|
|
580
|
-
return
|
|
581
|
-
var i,
|
|
578
|
+
var wt = { exports: {} }, Nr = wt.exports, Oe;
|
|
579
|
+
function Ht() {
|
|
580
|
+
return Oe || (Oe = 1, (function() {
|
|
581
|
+
var i, a, D, p = function(t, e) {
|
|
582
582
|
for (var o in e)
|
|
583
583
|
h.call(e, o) && (t[o] = e[o]);
|
|
584
584
|
function l() {
|
|
@@ -586,8 +586,8 @@ function zt() {
|
|
|
586
586
|
}
|
|
587
587
|
return l.prototype = e.prototype, t.prototype = new l(), t.__super__ = e.prototype, t;
|
|
588
588
|
}, h = {}.hasOwnProperty;
|
|
589
|
-
D = H().isObject,
|
|
590
|
-
|
|
589
|
+
D = H().isObject, a = W(), i = B(), wt.exports = function(t) {
|
|
590
|
+
p(e, t);
|
|
591
591
|
function e(o, l, b, m) {
|
|
592
592
|
var y;
|
|
593
593
|
e.__super__.constructor.call(this, o), D(l) && (y = l, l = y.version, b = y.encoding, m = y.standalone), l || (l = "1.0"), this.type = i.Declaration, this.version = this.stringify.xmlVersion(l), b != null && (this.encoding = this.stringify.xmlEncoding(b)), m != null && (this.standalone = this.stringify.xmlStandalone(m));
|
|
@@ -595,21 +595,21 @@ function zt() {
|
|
|
595
595
|
return e.prototype.toString = function(o) {
|
|
596
596
|
return this.options.writer.declaration(this, this.options.writer.filterOptions(o));
|
|
597
597
|
}, e;
|
|
598
|
-
}(
|
|
599
|
-
}).call(
|
|
598
|
+
}(a);
|
|
599
|
+
}).call(Nr)), wt.exports;
|
|
600
600
|
}
|
|
601
|
-
var Tt = { exports: {} }, Dt = { exports: {} },
|
|
602
|
-
function
|
|
603
|
-
return
|
|
604
|
-
var i,
|
|
601
|
+
var Tt = { exports: {} }, Dt = { exports: {} }, vr = Dt.exports, Ne;
|
|
602
|
+
function Qt() {
|
|
603
|
+
return Ne || (Ne = 1, (function() {
|
|
604
|
+
var i, a, D = function(h, t) {
|
|
605
605
|
for (var e in t)
|
|
606
|
-
|
|
606
|
+
p.call(t, e) && (h[e] = t[e]);
|
|
607
607
|
function o() {
|
|
608
608
|
this.constructor = h;
|
|
609
609
|
}
|
|
610
610
|
return o.prototype = t.prototype, h.prototype = new o(), h.__super__ = t.prototype, h;
|
|
611
|
-
},
|
|
612
|
-
|
|
611
|
+
}, p = {}.hasOwnProperty;
|
|
612
|
+
a = W(), i = B(), Dt.exports = function(h) {
|
|
613
613
|
D(t, h);
|
|
614
614
|
function t(e, o, l, b, m, y) {
|
|
615
615
|
if (t.__super__.constructor.call(this, e), o == null)
|
|
@@ -629,13 +629,13 @@ function Ht() {
|
|
|
629
629
|
return t.prototype.toString = function(e) {
|
|
630
630
|
return this.options.writer.dtdAttList(this, this.options.writer.filterOptions(e));
|
|
631
631
|
}, t;
|
|
632
|
-
}(
|
|
633
|
-
}).call(
|
|
632
|
+
}(a);
|
|
633
|
+
}).call(vr)), Dt.exports;
|
|
634
634
|
}
|
|
635
|
-
var Et = { exports: {} },
|
|
636
|
-
function
|
|
637
|
-
return
|
|
638
|
-
var i,
|
|
635
|
+
var Et = { exports: {} }, Lr = Et.exports, ve;
|
|
636
|
+
function Zt() {
|
|
637
|
+
return ve || (ve = 1, (function() {
|
|
638
|
+
var i, a, D, p = function(t, e) {
|
|
639
639
|
for (var o in e)
|
|
640
640
|
h.call(e, o) && (t[o] = e[o]);
|
|
641
641
|
function l() {
|
|
@@ -643,8 +643,8 @@ function Qt() {
|
|
|
643
643
|
}
|
|
644
644
|
return l.prototype = e.prototype, t.prototype = new l(), t.__super__ = e.prototype, t;
|
|
645
645
|
}, h = {}.hasOwnProperty;
|
|
646
|
-
D = H().isObject,
|
|
647
|
-
|
|
646
|
+
D = H().isObject, a = W(), i = B(), Et.exports = function(t) {
|
|
647
|
+
p(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));
|
|
@@ -688,21 +688,21 @@ function Qt() {
|
|
|
688
688
|
}), e.prototype.toString = function(o) {
|
|
689
689
|
return this.options.writer.dtdEntity(this, this.options.writer.filterOptions(o));
|
|
690
690
|
}, e;
|
|
691
|
-
}(
|
|
692
|
-
}).call(
|
|
691
|
+
}(a);
|
|
692
|
+
}).call(Lr)), Et.exports;
|
|
693
693
|
}
|
|
694
|
-
var bt = { exports: {} },
|
|
695
|
-
function
|
|
696
|
-
return
|
|
697
|
-
var i,
|
|
694
|
+
var bt = { exports: {} }, Ir = bt.exports, Le;
|
|
695
|
+
function Jt() {
|
|
696
|
+
return Le || (Le = 1, (function() {
|
|
697
|
+
var i, a, D = function(h, t) {
|
|
698
698
|
for (var e in t)
|
|
699
|
-
|
|
699
|
+
p.call(t, e) && (h[e] = t[e]);
|
|
700
700
|
function o() {
|
|
701
701
|
this.constructor = h;
|
|
702
702
|
}
|
|
703
703
|
return o.prototype = t.prototype, h.prototype = new o(), h.__super__ = t.prototype, h;
|
|
704
|
-
},
|
|
705
|
-
|
|
704
|
+
}, p = {}.hasOwnProperty;
|
|
705
|
+
a = W(), i = B(), bt.exports = function(h) {
|
|
706
706
|
D(t, h);
|
|
707
707
|
function t(e, o, l) {
|
|
708
708
|
if (t.__super__.constructor.call(this, e), o == null)
|
|
@@ -712,21 +712,21 @@ function Zt() {
|
|
|
712
712
|
return t.prototype.toString = function(e) {
|
|
713
713
|
return this.options.writer.dtdElement(this, this.options.writer.filterOptions(e));
|
|
714
714
|
}, t;
|
|
715
|
-
}(
|
|
716
|
-
}).call(
|
|
715
|
+
}(a);
|
|
716
|
+
}).call(Ir)), bt.exports;
|
|
717
717
|
}
|
|
718
|
-
var Ot = { exports: {} },
|
|
719
|
-
function
|
|
720
|
-
return
|
|
721
|
-
var i,
|
|
718
|
+
var Ot = { exports: {} }, xr = Ot.exports, Ie;
|
|
719
|
+
function te() {
|
|
720
|
+
return Ie || (Ie = 1, (function() {
|
|
721
|
+
var i, a, D = function(h, t) {
|
|
722
722
|
for (var e in t)
|
|
723
|
-
|
|
723
|
+
p.call(t, e) && (h[e] = t[e]);
|
|
724
724
|
function o() {
|
|
725
725
|
this.constructor = h;
|
|
726
726
|
}
|
|
727
727
|
return o.prototype = t.prototype, h.prototype = new o(), h.__super__ = t.prototype, h;
|
|
728
|
-
},
|
|
729
|
-
|
|
728
|
+
}, p = {}.hasOwnProperty;
|
|
729
|
+
a = W(), i = B(), Ot.exports = function(h) {
|
|
730
730
|
D(t, h);
|
|
731
731
|
function t(e, o, l) {
|
|
732
732
|
if (t.__super__.constructor.call(this, e), o == null)
|
|
@@ -746,13 +746,13 @@ function Jt() {
|
|
|
746
746
|
}), t.prototype.toString = function(e) {
|
|
747
747
|
return this.options.writer.dtdNotation(this, this.options.writer.filterOptions(e));
|
|
748
748
|
}, t;
|
|
749
|
-
}(
|
|
750
|
-
}).call(
|
|
749
|
+
}(a);
|
|
750
|
+
}).call(xr)), Ot.exports;
|
|
751
751
|
}
|
|
752
|
-
var
|
|
753
|
-
function
|
|
754
|
-
return
|
|
755
|
-
var i,
|
|
752
|
+
var Ar = Tt.exports, xe;
|
|
753
|
+
function ee() {
|
|
754
|
+
return xe || (xe = 1, (function() {
|
|
755
|
+
var i, a, D, p, h, 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 g() {
|
|
@@ -760,10 +760,10 @@ function te() {
|
|
|
760
760
|
}
|
|
761
761
|
return g.prototype = y.prototype, m.prototype = new g(), m.__super__ = y.prototype, m;
|
|
762
762
|
}, b = {}.hasOwnProperty;
|
|
763
|
-
o = H().isObject, e = W(), i = B(),
|
|
763
|
+
o = H().isObject, e = W(), i = B(), a = Qt(), p = Zt(), D = Jt(), h = te(), t = Gt(), Tt.exports = function(m) {
|
|
764
764
|
l(y, m);
|
|
765
765
|
function y(d, g, O) {
|
|
766
|
-
var I, x, P, E, s,
|
|
766
|
+
var I, x, P, E, s, c;
|
|
767
767
|
if (y.__super__.constructor.call(this, d), this.type = i.DocType, d.children) {
|
|
768
768
|
for (E = d.children, x = 0, P = E.length; x < P; x++)
|
|
769
769
|
if (I = E[x], I.type === i.Element) {
|
|
@@ -771,7 +771,7 @@ function te() {
|
|
|
771
771
|
break;
|
|
772
772
|
}
|
|
773
773
|
}
|
|
774
|
-
this.documentObject = d, o(g) && (s = g, g = s.pubID, O = s.sysID), O == null && (
|
|
774
|
+
this.documentObject = d, o(g) && (s = g, g = s.pubID, O = s.sysID), O == null && (c = [g, O], O = c[0], g = c[1]), g != null && (this.pubID = this.stringify.dtdPubID(g)), O != null && (this.sysID = this.stringify.dtdSysID(O));
|
|
775
775
|
}
|
|
776
776
|
return Object.defineProperty(y.prototype, "entities", {
|
|
777
777
|
get: function() {
|
|
@@ -804,13 +804,13 @@ function te() {
|
|
|
804
804
|
return O = new D(this, d, g), this.children.push(O), this;
|
|
805
805
|
}, y.prototype.attList = function(d, g, O, I, x) {
|
|
806
806
|
var P;
|
|
807
|
-
return P = new
|
|
807
|
+
return P = new a(this, d, g, O, I, x), this.children.push(P), this;
|
|
808
808
|
}, y.prototype.entity = function(d, g) {
|
|
809
809
|
var O;
|
|
810
|
-
return O = new
|
|
810
|
+
return O = new p(this, !1, d, g), this.children.push(O), this;
|
|
811
811
|
}, y.prototype.pEntity = function(d, g) {
|
|
812
812
|
var O;
|
|
813
|
-
return O = new
|
|
813
|
+
return O = new p(this, !0, d, g), this.children.push(O), this;
|
|
814
814
|
}, y.prototype.notation = function(d, g) {
|
|
815
815
|
var O;
|
|
816
816
|
return O = new h(this, d, g), this.children.push(O), this;
|
|
@@ -832,20 +832,20 @@ function te() {
|
|
|
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(Ar)), Tt.exports;
|
|
836
836
|
}
|
|
837
|
-
var Nt = { exports: {} },
|
|
838
|
-
function
|
|
839
|
-
return
|
|
840
|
-
var i,
|
|
837
|
+
var Nt = { exports: {} }, Mr = Nt.exports, Ae;
|
|
838
|
+
function re() {
|
|
839
|
+
return Ae || (Ae = 1, (function() {
|
|
840
|
+
var i, a, D = function(h, t) {
|
|
841
841
|
for (var e in t)
|
|
842
|
-
|
|
842
|
+
p.call(t, e) && (h[e] = t[e]);
|
|
843
843
|
function o() {
|
|
844
844
|
this.constructor = h;
|
|
845
845
|
}
|
|
846
846
|
return o.prototype = t.prototype, h.prototype = new o(), h.__super__ = t.prototype, h;
|
|
847
|
-
},
|
|
848
|
-
i = B(),
|
|
847
|
+
}, p = {}.hasOwnProperty;
|
|
848
|
+
i = B(), a = W(), Nt.exports = function(h) {
|
|
849
849
|
D(t, h);
|
|
850
850
|
function t(e, o) {
|
|
851
851
|
if (t.__super__.constructor.call(this, e), o == null)
|
|
@@ -857,21 +857,21 @@ function ee() {
|
|
|
857
857
|
}, t.prototype.toString = function(e) {
|
|
858
858
|
return this.options.writer.raw(this, this.options.writer.filterOptions(e));
|
|
859
859
|
}, t;
|
|
860
|
-
}(
|
|
861
|
-
}).call(
|
|
860
|
+
}(a);
|
|
861
|
+
}).call(Mr)), Nt.exports;
|
|
862
862
|
}
|
|
863
|
-
var vt = { exports: {} },
|
|
864
|
-
function
|
|
865
|
-
return
|
|
866
|
-
var i,
|
|
863
|
+
var vt = { exports: {} }, Pr = vt.exports, Me;
|
|
864
|
+
function ne() {
|
|
865
|
+
return Me || (Me = 1, (function() {
|
|
866
|
+
var i, a, D = function(h, t) {
|
|
867
867
|
for (var e in t)
|
|
868
|
-
|
|
868
|
+
p.call(t, e) && (h[e] = t[e]);
|
|
869
869
|
function o() {
|
|
870
870
|
this.constructor = h;
|
|
871
871
|
}
|
|
872
872
|
return o.prototype = t.prototype, h.prototype = new o(), h.__super__ = t.prototype, h;
|
|
873
|
-
},
|
|
874
|
-
i = B(),
|
|
873
|
+
}, p = {}.hasOwnProperty;
|
|
874
|
+
i = B(), a = Ft(), vt.exports = function(h) {
|
|
875
875
|
D(t, h);
|
|
876
876
|
function t(e, o) {
|
|
877
877
|
if (t.__super__.constructor.call(this, e), o == null)
|
|
@@ -900,21 +900,21 @@ function re() {
|
|
|
900
900
|
}, t.prototype.replaceWholeText = function(e) {
|
|
901
901
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
902
902
|
}, t;
|
|
903
|
-
}(
|
|
904
|
-
}).call(
|
|
903
|
+
}(a);
|
|
904
|
+
}).call(Pr)), vt.exports;
|
|
905
905
|
}
|
|
906
|
-
var Lt = { exports: {} },
|
|
907
|
-
function
|
|
908
|
-
return
|
|
909
|
-
var i,
|
|
906
|
+
var Lt = { exports: {} }, _r = Lt.exports, Pe;
|
|
907
|
+
function ie() {
|
|
908
|
+
return Pe || (Pe = 1, (function() {
|
|
909
|
+
var i, a, D = function(h, t) {
|
|
910
910
|
for (var e in t)
|
|
911
|
-
|
|
911
|
+
p.call(t, e) && (h[e] = t[e]);
|
|
912
912
|
function o() {
|
|
913
913
|
this.constructor = h;
|
|
914
914
|
}
|
|
915
915
|
return o.prototype = t.prototype, h.prototype = new o(), h.__super__ = t.prototype, h;
|
|
916
|
-
},
|
|
917
|
-
i = B(),
|
|
916
|
+
}, p = {}.hasOwnProperty;
|
|
917
|
+
i = B(), a = Ft(), Lt.exports = function(h) {
|
|
918
918
|
D(t, h);
|
|
919
919
|
function t(e, o, l) {
|
|
920
920
|
if (t.__super__.constructor.call(this, e), o == null)
|
|
@@ -928,21 +928,21 @@ function ne() {
|
|
|
928
928
|
}, t.prototype.isEqualNode = function(e) {
|
|
929
929
|
return !(!t.__super__.isEqualNode.apply(this, arguments).isEqualNode(e) || e.target !== this.target);
|
|
930
930
|
}, t;
|
|
931
|
-
}(
|
|
932
|
-
}).call(
|
|
931
|
+
}(a);
|
|
932
|
+
}).call(_r)), Lt.exports;
|
|
933
933
|
}
|
|
934
|
-
var It = { exports: {} },
|
|
935
|
-
function
|
|
936
|
-
return
|
|
937
|
-
var i,
|
|
934
|
+
var It = { exports: {} }, Cr = It.exports, _e;
|
|
935
|
+
function tr() {
|
|
936
|
+
return _e || (_e = 1, (function() {
|
|
937
|
+
var i, a, D = function(h, t) {
|
|
938
938
|
for (var e in t)
|
|
939
|
-
|
|
939
|
+
p.call(t, e) && (h[e] = t[e]);
|
|
940
940
|
function o() {
|
|
941
941
|
this.constructor = h;
|
|
942
942
|
}
|
|
943
943
|
return o.prototype = t.prototype, h.prototype = new o(), h.__super__ = t.prototype, h;
|
|
944
|
-
},
|
|
945
|
-
|
|
944
|
+
}, p = {}.hasOwnProperty;
|
|
945
|
+
a = W(), i = B(), It.exports = function(h) {
|
|
946
946
|
D(t, h);
|
|
947
947
|
function t(e) {
|
|
948
948
|
t.__super__.constructor.call(this, e), this.type = i.Dummy;
|
|
@@ -952,15 +952,15 @@ function Ze() {
|
|
|
952
952
|
}, t.prototype.toString = function(e) {
|
|
953
953
|
return "";
|
|
954
954
|
}, t;
|
|
955
|
-
}(
|
|
956
|
-
}).call(
|
|
955
|
+
}(a);
|
|
956
|
+
}).call(Cr)), It.exports;
|
|
957
957
|
}
|
|
958
|
-
var xt = { exports: {} },
|
|
959
|
-
function
|
|
960
|
-
return
|
|
958
|
+
var xt = { exports: {} }, Sr = xt.exports, Ce;
|
|
959
|
+
function Xr() {
|
|
960
|
+
return Ce || (Ce = 1, (function() {
|
|
961
961
|
xt.exports = function() {
|
|
962
|
-
function i(
|
|
963
|
-
this.nodes =
|
|
962
|
+
function i(a) {
|
|
963
|
+
this.nodes = a;
|
|
964
964
|
}
|
|
965
965
|
return Object.defineProperty(i.prototype, "length", {
|
|
966
966
|
get: function() {
|
|
@@ -968,15 +968,15 @@ function Cr() {
|
|
|
968
968
|
}
|
|
969
969
|
}), i.prototype.clone = function() {
|
|
970
970
|
return this.nodes = null;
|
|
971
|
-
}, i.prototype.item = function(
|
|
972
|
-
return this.nodes[
|
|
971
|
+
}, i.prototype.item = function(a) {
|
|
972
|
+
return this.nodes[a] || null;
|
|
973
973
|
}, i;
|
|
974
974
|
}();
|
|
975
|
-
}).call(
|
|
975
|
+
}).call(Sr)), xt.exports;
|
|
976
976
|
}
|
|
977
|
-
var At = { exports: {} },
|
|
978
|
-
function
|
|
979
|
-
return
|
|
977
|
+
var At = { exports: {} }, Fr = At.exports, Se;
|
|
978
|
+
function Rr() {
|
|
979
|
+
return Se || (Se = 1, (function() {
|
|
980
980
|
At.exports = {
|
|
981
981
|
Disconnected: 1,
|
|
982
982
|
Preceding: 2,
|
|
@@ -985,15 +985,15 @@ function Xr() {
|
|
|
985
985
|
ContainedBy: 16,
|
|
986
986
|
ImplementationSpecific: 32
|
|
987
987
|
};
|
|
988
|
-
}).call(
|
|
988
|
+
}).call(Fr)), At.exports;
|
|
989
989
|
}
|
|
990
|
-
var
|
|
990
|
+
var jr = lt.exports, Xe;
|
|
991
991
|
function W() {
|
|
992
|
-
return
|
|
993
|
-
var i,
|
|
994
|
-
x = H(), I = x.isObject, O = x.isFunction, g = x.isEmpty, d = x.getValue, o = null, D = null,
|
|
992
|
+
return Xe || (Xe = 1, (function() {
|
|
993
|
+
var i, a, D, p, h, t, e, o, l, b, m, y, d, g, O, I, x, P = {}.hasOwnProperty;
|
|
994
|
+
x = H(), I = x.isObject, O = x.isFunction, g = x.isEmpty, d = x.getValue, o = null, D = null, p = null, h = null, t = null, m = null, y = null, b = null, e = null, a = null, l = null, i = null, lt.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 =
|
|
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 = Yt(), D = Kt(), p = zt(), h = Ht(), t = ee(), m = re(), y = ne(), b = ie(), e = tr(), a = B(), l = Xr(), Gt(), i = Rr());
|
|
997
997
|
}
|
|
998
998
|
return Object.defineProperty(E.prototype, "nodeName", {
|
|
999
999
|
get: function() {
|
|
@@ -1039,10 +1039,10 @@ function W() {
|
|
|
1039
1039
|
}
|
|
1040
1040
|
}), Object.defineProperty(E.prototype, "textContent", {
|
|
1041
1041
|
get: function() {
|
|
1042
|
-
var s,
|
|
1043
|
-
if (this.nodeType ===
|
|
1044
|
-
for (L = "", T = this.children,
|
|
1045
|
-
s = T[
|
|
1042
|
+
var s, c, f, T, L;
|
|
1043
|
+
if (this.nodeType === a.Element || this.nodeType === a.DocumentFragment) {
|
|
1044
|
+
for (L = "", T = this.children, c = 0, f = T.length; c < f; c++)
|
|
1045
|
+
s = T[c], s.textContent && (L += s.textContent);
|
|
1046
1046
|
return L;
|
|
1047
1047
|
} else
|
|
1048
1048
|
return null;
|
|
@@ -1051,13 +1051,13 @@ function W() {
|
|
|
1051
1051
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
1052
1052
|
}
|
|
1053
1053
|
}), E.prototype.setParent = function(s) {
|
|
1054
|
-
var
|
|
1055
|
-
for (this.parent = s, s && (this.options = s.options, this.stringify = s.stringify), L = this.children, v = [],
|
|
1056
|
-
|
|
1054
|
+
var c, f, T, L, v;
|
|
1055
|
+
for (this.parent = s, s && (this.options = s.options, this.stringify = s.stringify), L = this.children, v = [], f = 0, T = L.length; f < T; f++)
|
|
1056
|
+
c = L[f], v.push(c.setParent(this));
|
|
1057
1057
|
return v;
|
|
1058
|
-
}, E.prototype.element = function(s,
|
|
1058
|
+
}, E.prototype.element = function(s, c, f) {
|
|
1059
1059
|
var T, L, v, r, N, A, _, C, X, j, F;
|
|
1060
|
-
if (A = null,
|
|
1060
|
+
if (A = null, c === null && f == null && (X = [{}, null], c = X[0], f = X[1]), c == null && (c = {}), c = d(c), I(c) || (j = [c, f], f = j[0], c = j[1]), s != null && (s = d(s)), Array.isArray(s))
|
|
1061
1061
|
for (v = 0, _ = s.length; v < _; v++)
|
|
1062
1062
|
L = s[v], A = this.element(L);
|
|
1063
1063
|
else if (O(s))
|
|
@@ -1077,78 +1077,78 @@ function W() {
|
|
|
1077
1077
|
for (r = 0, C = F.length; r < C; r++)
|
|
1078
1078
|
L = F[r], T = {}, T[N] = L, A = this.element(T);
|
|
1079
1079
|
else I(F) ? !this.options.ignoreDecorators && this.stringify.convertTextKey && N.indexOf(this.stringify.convertTextKey) === 0 ? A = this.element(F) : (A = this.element(N), A.element(F)) : A = this.element(N, F);
|
|
1080
|
-
} else !this.options.keepNullNodes &&
|
|
1080
|
+
} else !this.options.keepNullNodes && f === null ? A = this.dummy() : !this.options.ignoreDecorators && this.stringify.convertTextKey && s.indexOf(this.stringify.convertTextKey) === 0 ? A = this.text(f) : !this.options.ignoreDecorators && this.stringify.convertCDataKey && s.indexOf(this.stringify.convertCDataKey) === 0 ? A = this.cdata(f) : !this.options.ignoreDecorators && this.stringify.convertCommentKey && s.indexOf(this.stringify.convertCommentKey) === 0 ? A = this.comment(f) : !this.options.ignoreDecorators && this.stringify.convertRawKey && s.indexOf(this.stringify.convertRawKey) === 0 ? A = this.raw(f) : !this.options.ignoreDecorators && this.stringify.convertPIKey && s.indexOf(this.stringify.convertPIKey) === 0 ? A = this.instruction(s.substr(this.stringify.convertPIKey.length), f) : A = this.node(s, c, f);
|
|
1081
1081
|
if (A == null)
|
|
1082
1082
|
throw new Error("Could not create any elements with: " + s + ". " + this.debugInfo());
|
|
1083
1083
|
return A;
|
|
1084
|
-
}, E.prototype.insertBefore = function(s,
|
|
1084
|
+
}, E.prototype.insertBefore = function(s, c, f) {
|
|
1085
1085
|
var T, L, v, r, N;
|
|
1086
1086
|
if (s != null && s.type)
|
|
1087
|
-
return v = s, r =
|
|
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), T = this.parent.element(s,
|
|
1091
|
-
}, E.prototype.insertAfter = function(s,
|
|
1090
|
+
return L = this.parent.children.indexOf(this), N = this.parent.children.splice(L), T = this.parent.element(s, c, f), Array.prototype.push.apply(this.parent.children, N), T;
|
|
1091
|
+
}, E.prototype.insertAfter = function(s, c, f) {
|
|
1092
1092
|
var T, 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), T = this.parent.element(s,
|
|
1095
|
+
return L = this.parent.children.indexOf(this), v = this.parent.children.splice(L + 1), T = this.parent.element(s, c, f), Array.prototype.push.apply(this.parent.children, v), T;
|
|
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,
|
|
1101
|
+
}, E.prototype.node = function(s, c, f) {
|
|
1102
1102
|
var T, L;
|
|
1103
|
-
return s != null && (s = d(s)),
|
|
1103
|
+
return s != null && (s = d(s)), c || (c = {}), c = d(c), I(c) || (L = [c, f], f = L[0], c = L[1]), T = new o(this, s, c), f != null && T.text(f), this.children.push(T), T;
|
|
1104
1104
|
}, E.prototype.text = function(s) {
|
|
1105
|
-
var
|
|
1106
|
-
return I(s) && this.element(s),
|
|
1105
|
+
var c;
|
|
1106
|
+
return I(s) && this.element(s), c = new y(this, s), this.children.push(c), this;
|
|
1107
1107
|
}, E.prototype.cdata = function(s) {
|
|
1108
|
-
var
|
|
1109
|
-
return
|
|
1108
|
+
var c;
|
|
1109
|
+
return c = new D(this, s), this.children.push(c), this;
|
|
1110
1110
|
}, E.prototype.comment = function(s) {
|
|
1111
|
-
var
|
|
1112
|
-
return
|
|
1111
|
+
var c;
|
|
1112
|
+
return c = new p(this, s), this.children.push(c), this;
|
|
1113
1113
|
}, E.prototype.commentBefore = function(s) {
|
|
1114
|
-
var
|
|
1115
|
-
return
|
|
1114
|
+
var c, f;
|
|
1115
|
+
return c = this.parent.children.indexOf(this), f = this.parent.children.splice(c), this.parent.comment(s), Array.prototype.push.apply(this.parent.children, f), this;
|
|
1116
1116
|
}, E.prototype.commentAfter = function(s) {
|
|
1117
|
-
var
|
|
1118
|
-
return
|
|
1117
|
+
var c, f;
|
|
1118
|
+
return c = this.parent.children.indexOf(this), f = this.parent.children.splice(c + 1), this.parent.comment(s), Array.prototype.push.apply(this.parent.children, f), this;
|
|
1119
1119
|
}, E.prototype.raw = function(s) {
|
|
1120
|
-
var
|
|
1121
|
-
return
|
|
1120
|
+
var c;
|
|
1121
|
+
return c = new m(this, s), this.children.push(c), this;
|
|
1122
1122
|
}, E.prototype.dummy = function() {
|
|
1123
1123
|
var s;
|
|
1124
1124
|
return s = new e(this), s;
|
|
1125
|
-
}, E.prototype.instruction = function(s,
|
|
1126
|
-
var
|
|
1127
|
-
if (s != null && (s = d(s)),
|
|
1125
|
+
}, E.prototype.instruction = function(s, c) {
|
|
1126
|
+
var f, T, L, v, r;
|
|
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
|
+
f = s[v], this.instruction(f);
|
|
1130
1130
|
else if (I(s))
|
|
1131
|
-
for (
|
|
1132
|
-
P.call(s,
|
|
1131
|
+
for (f in s)
|
|
1132
|
+
P.call(s, f) && (T = s[f], this.instruction(f, T));
|
|
1133
1133
|
else
|
|
1134
|
-
O(
|
|
1134
|
+
O(c) && (c = c.apply()), L = new b(this, s, c), this.children.push(L);
|
|
1135
1135
|
return this;
|
|
1136
|
-
}, E.prototype.instructionBefore = function(s,
|
|
1137
|
-
var
|
|
1138
|
-
return
|
|
1139
|
-
}, E.prototype.instructionAfter = function(s,
|
|
1140
|
-
var
|
|
1141
|
-
return
|
|
1142
|
-
}, E.prototype.declaration = function(s,
|
|
1136
|
+
}, E.prototype.instructionBefore = function(s, c) {
|
|
1137
|
+
var f, T;
|
|
1138
|
+
return f = this.parent.children.indexOf(this), T = this.parent.children.splice(f), this.parent.instruction(s, c), Array.prototype.push.apply(this.parent.children, T), this;
|
|
1139
|
+
}, E.prototype.instructionAfter = function(s, c) {
|
|
1140
|
+
var f, T;
|
|
1141
|
+
return f = this.parent.children.indexOf(this), T = this.parent.children.splice(f + 1), this.parent.instruction(s, c), Array.prototype.push.apply(this.parent.children, T), this;
|
|
1142
|
+
}, E.prototype.declaration = function(s, c, f) {
|
|
1143
1143
|
var T, L;
|
|
1144
|
-
return T = this.document(), L = new h(T, s,
|
|
1145
|
-
}, E.prototype.dtd = function(s,
|
|
1146
|
-
var
|
|
1147
|
-
for (T = this.document(), L = new t(T, s,
|
|
1148
|
-
if (
|
|
1144
|
+
return T = this.document(), L = new h(T, s, c, f), T.children.length === 0 ? T.children.unshift(L) : T.children[0].type === a.Declaration ? T.children[0] = L : T.children.unshift(L), T.root() || T;
|
|
1145
|
+
}, E.prototype.dtd = function(s, c) {
|
|
1146
|
+
var f, T, L, v, r, N, A, _, C, X;
|
|
1147
|
+
for (T = this.document(), L = new t(T, s, c), C = T.children, v = r = 0, A = C.length; r < A; v = ++r)
|
|
1148
|
+
if (f = C[v], f.type === a.DocType)
|
|
1149
1149
|
return T.children[v] = L, L;
|
|
1150
1150
|
for (X = T.children, v = N = 0, _ = X.length; N < _; v = ++N)
|
|
1151
|
-
if (
|
|
1151
|
+
if (f = X[v], f.isRoot)
|
|
1152
1152
|
return T.children.splice(v, 0, L), L;
|
|
1153
1153
|
return T.children.push(L), L;
|
|
1154
1154
|
}, E.prototype.up = function() {
|
|
@@ -1158,7 +1158,7 @@ function W() {
|
|
|
1158
1158
|
}, E.prototype.root = function() {
|
|
1159
1159
|
var s;
|
|
1160
1160
|
for (s = this; s; ) {
|
|
1161
|
-
if (s.type ===
|
|
1161
|
+
if (s.type === a.Document)
|
|
1162
1162
|
return s.rootObject;
|
|
1163
1163
|
if (s.isRoot)
|
|
1164
1164
|
return s;
|
|
@@ -1167,7 +1167,7 @@ function W() {
|
|
|
1167
1167
|
}, E.prototype.document = function() {
|
|
1168
1168
|
var s;
|
|
1169
1169
|
for (s = this; s; ) {
|
|
1170
|
-
if (s.type ===
|
|
1170
|
+
if (s.type === a.Document)
|
|
1171
1171
|
return s;
|
|
1172
1172
|
s = s.parent;
|
|
1173
1173
|
}
|
|
@@ -1184,31 +1184,31 @@ function W() {
|
|
|
1184
1184
|
throw new Error("Already at the last node. " + this.debugInfo());
|
|
1185
1185
|
return this.parent.children[s + 1];
|
|
1186
1186
|
}, E.prototype.importDocument = function(s) {
|
|
1187
|
-
var
|
|
1188
|
-
return
|
|
1187
|
+
var c;
|
|
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
|
|
1191
|
-
return s = s || this.name, s == null && !((
|
|
1192
|
-
}, E.prototype.ele = function(s,
|
|
1193
|
-
return this.element(s,
|
|
1194
|
-
}, E.prototype.nod = function(s,
|
|
1195
|
-
return this.node(s,
|
|
1190
|
+
var c, f;
|
|
1191
|
+
return s = s || this.name, s == null && !((c = this.parent) != null && c.name) ? "" : s == null ? "parent: <" + this.parent.name + ">" : (f = this.parent) != null && f.name ? "node: <" + s + ">, parent: <" + this.parent.name + ">" : "node: <" + s + ">";
|
|
1192
|
+
}, E.prototype.ele = function(s, c, f) {
|
|
1193
|
+
return this.element(s, c, f);
|
|
1194
|
+
}, E.prototype.nod = function(s, c, f) {
|
|
1195
|
+
return this.node(s, c, f);
|
|
1196
1196
|
}, E.prototype.txt = function(s) {
|
|
1197
1197
|
return this.text(s);
|
|
1198
1198
|
}, E.prototype.dat = function(s) {
|
|
1199
1199
|
return this.cdata(s);
|
|
1200
1200
|
}, E.prototype.com = function(s) {
|
|
1201
1201
|
return this.comment(s);
|
|
1202
|
-
}, E.prototype.ins = function(s,
|
|
1203
|
-
return this.instruction(s,
|
|
1202
|
+
}, E.prototype.ins = function(s, c) {
|
|
1203
|
+
return this.instruction(s, c);
|
|
1204
1204
|
}, E.prototype.doc = function() {
|
|
1205
1205
|
return this.document();
|
|
1206
|
-
}, E.prototype.dec = function(s,
|
|
1207
|
-
return this.declaration(s,
|
|
1208
|
-
}, E.prototype.e = function(s,
|
|
1209
|
-
return this.element(s,
|
|
1210
|
-
}, E.prototype.n = function(s,
|
|
1211
|
-
return this.node(s,
|
|
1206
|
+
}, E.prototype.dec = function(s, c, f) {
|
|
1207
|
+
return this.declaration(s, c, f);
|
|
1208
|
+
}, E.prototype.e = function(s, c, f) {
|
|
1209
|
+
return this.element(s, c, f);
|
|
1210
|
+
}, E.prototype.n = function(s, c, f) {
|
|
1211
|
+
return this.node(s, c, f);
|
|
1212
1212
|
}, E.prototype.t = function(s) {
|
|
1213
1213
|
return this.text(s);
|
|
1214
1214
|
}, E.prototype.d = function(s) {
|
|
@@ -1217,13 +1217,13 @@ function W() {
|
|
|
1217
1217
|
return this.comment(s);
|
|
1218
1218
|
}, E.prototype.r = function(s) {
|
|
1219
1219
|
return this.raw(s);
|
|
1220
|
-
}, E.prototype.i = function(s,
|
|
1221
|
-
return this.instruction(s,
|
|
1220
|
+
}, E.prototype.i = function(s, c) {
|
|
1221
|
+
return this.instruction(s, c);
|
|
1222
1222
|
}, E.prototype.u = function() {
|
|
1223
1223
|
return this.up();
|
|
1224
1224
|
}, E.prototype.importXMLBuilder = function(s) {
|
|
1225
1225
|
return this.importDocument(s);
|
|
1226
|
-
}, E.prototype.replaceChild = function(s,
|
|
1226
|
+
}, E.prototype.replaceChild = function(s, c) {
|
|
1227
1227
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
1228
1228
|
}, E.prototype.removeChild = function(s) {
|
|
1229
1229
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
@@ -1235,13 +1235,13 @@ function W() {
|
|
|
1235
1235
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
1236
1236
|
}, E.prototype.normalize = function() {
|
|
1237
1237
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
1238
|
-
}, E.prototype.isSupported = function(s,
|
|
1238
|
+
}, E.prototype.isSupported = function(s, c) {
|
|
1239
1239
|
return !0;
|
|
1240
1240
|
}, E.prototype.hasAttributes = function() {
|
|
1241
1241
|
return this.attribs.length !== 0;
|
|
1242
1242
|
}, E.prototype.compareDocumentPosition = function(s) {
|
|
1243
|
-
var
|
|
1244
|
-
return
|
|
1243
|
+
var c, f;
|
|
1244
|
+
return c = this, c === s ? 0 : this.document() !== s.document() ? (f = i.Disconnected | i.ImplementationSpecific, Math.random() < 0.5 ? f |= i.Preceding : f |= i.Following, f) : c.isAncestor(s) ? i.Contains | i.Preceding : c.isDescendant(s) ? i.Contains | i.Following : c.isPreceding(s) ? i.Preceding : i.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,176 +1251,176 @@ function W() {
|
|
|
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
|
|
1254
|
+
var c, f, T;
|
|
1255
1255
|
if (s.nodeType !== this.nodeType || s.children.length !== this.children.length)
|
|
1256
1256
|
return !1;
|
|
1257
|
-
for (
|
|
1258
|
-
if (!this.children[
|
|
1257
|
+
for (c = f = 0, T = this.children.length - 1; 0 <= T ? f <= T : f >= T; c = 0 <= T ? ++f : --f)
|
|
1258
|
+
if (!this.children[c].isEqualNode(s.children[c]))
|
|
1259
1259
|
return !1;
|
|
1260
1260
|
return !0;
|
|
1261
|
-
}, E.prototype.getFeature = function(s,
|
|
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,
|
|
1263
|
+
}, E.prototype.setUserData = function(s, c, f) {
|
|
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
|
|
1270
|
+
var c, f, T, L, v;
|
|
1271
1271
|
for (v = this.children, T = 0, L = v.length; T < L; T++)
|
|
1272
|
-
if (
|
|
1272
|
+
if (c = v[T], s === c || (f = c.isDescendant(s), f))
|
|
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
|
|
1279
|
-
return
|
|
1278
|
+
var c, f;
|
|
1279
|
+
return c = this.treePosition(s), f = this.treePosition(this), c === -1 || f === -1 ? !1 : c < f;
|
|
1280
1280
|
}, E.prototype.isFollowing = function(s) {
|
|
1281
|
-
var
|
|
1282
|
-
return
|
|
1281
|
+
var c, f;
|
|
1282
|
+
return c = this.treePosition(s), f = this.treePosition(this), c === -1 || f === -1 ? !1 : c > f;
|
|
1283
1283
|
}, E.prototype.treePosition = function(s) {
|
|
1284
|
-
var
|
|
1285
|
-
return
|
|
1286
|
-
if (
|
|
1287
|
-
return
|
|
1288
|
-
}),
|
|
1289
|
-
}, E.prototype.foreachTreeNode = function(s,
|
|
1290
|
-
var
|
|
1284
|
+
var c, f;
|
|
1285
|
+
return f = 0, c = !1, this.foreachTreeNode(this.document(), function(T) {
|
|
1286
|
+
if (f++, !c && T === s)
|
|
1287
|
+
return c = !0;
|
|
1288
|
+
}), c ? f : -1;
|
|
1289
|
+
}, E.prototype.foreachTreeNode = function(s, c) {
|
|
1290
|
+
var f, T, L, v, r;
|
|
1291
1291
|
for (s || (s = this.document()), v = s.children, T = 0, L = v.length; T < L; T++) {
|
|
1292
|
-
if (
|
|
1292
|
+
if (f = v[T], r = c(f))
|
|
1293
1293
|
return r;
|
|
1294
|
-
if (r = this.foreachTreeNode(
|
|
1294
|
+
if (r = this.foreachTreeNode(f, c), r)
|
|
1295
1295
|
return r;
|
|
1296
1296
|
}
|
|
1297
1297
|
}, E;
|
|
1298
1298
|
}();
|
|
1299
|
-
}).call(
|
|
1299
|
+
}).call(jr)), lt.exports;
|
|
1300
1300
|
}
|
|
1301
|
-
var Mt = { exports: {} },
|
|
1302
|
-
function
|
|
1303
|
-
return
|
|
1304
|
-
var i = function(D,
|
|
1301
|
+
var Mt = { exports: {} }, Br = Mt.exports, Fe;
|
|
1302
|
+
function er() {
|
|
1303
|
+
return Fe || (Fe = 1, (function() {
|
|
1304
|
+
var i = function(D, p) {
|
|
1305
1305
|
return function() {
|
|
1306
|
-
return D.apply(
|
|
1306
|
+
return D.apply(p, arguments);
|
|
1307
1307
|
};
|
|
1308
|
-
},
|
|
1308
|
+
}, a = {}.hasOwnProperty;
|
|
1309
1309
|
Mt.exports = function() {
|
|
1310
|
-
function D(
|
|
1310
|
+
function D(p) {
|
|
1311
1311
|
this.assertLegalName = i(this.assertLegalName, this), this.assertLegalChar = i(this.assertLegalChar, this);
|
|
1312
1312
|
var h, t, e;
|
|
1313
|
-
|
|
1313
|
+
p || (p = {}), this.options = p, this.options.version || (this.options.version = "1.0"), t = p.stringify || {};
|
|
1314
1314
|
for (h in t)
|
|
1315
|
-
|
|
1316
|
-
}
|
|
1317
|
-
return D.prototype.name = function(
|
|
1318
|
-
return this.options.noValidation ?
|
|
1319
|
-
}, D.prototype.text = function(
|
|
1320
|
-
return this.options.noValidation ?
|
|
1321
|
-
}, D.prototype.cdata = function(
|
|
1322
|
-
return this.options.noValidation ?
|
|
1323
|
-
}, D.prototype.comment = function(
|
|
1315
|
+
a.call(t, h) && (e = t[h], this[h] = e);
|
|
1316
|
+
}
|
|
1317
|
+
return D.prototype.name = function(p) {
|
|
1318
|
+
return this.options.noValidation ? p : this.assertLegalName("" + p || "");
|
|
1319
|
+
}, D.prototype.text = function(p) {
|
|
1320
|
+
return this.options.noValidation ? p : this.assertLegalChar(this.textEscape("" + p || ""));
|
|
1321
|
+
}, D.prototype.cdata = function(p) {
|
|
1322
|
+
return this.options.noValidation ? p : (p = "" + p || "", p = p.replace("]]>", "]]]]><![CDATA[>"), this.assertLegalChar(p));
|
|
1323
|
+
}, D.prototype.comment = function(p) {
|
|
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
|
-
}, D.prototype.raw = function(
|
|
1330
|
-
return this.options.noValidation ?
|
|
1331
|
-
}, D.prototype.attValue = function(
|
|
1332
|
-
return this.options.noValidation ?
|
|
1333
|
-
}, D.prototype.insTarget = function(
|
|
1334
|
-
return this.options.noValidation ?
|
|
1335
|
-
}, D.prototype.insValue = function(
|
|
1325
|
+
return p;
|
|
1326
|
+
if (p = "" + p || "", p.match(/--/))
|
|
1327
|
+
throw new Error("Comment text cannot contain double-hypen: " + p);
|
|
1328
|
+
return this.assertLegalChar(p);
|
|
1329
|
+
}, D.prototype.raw = function(p) {
|
|
1330
|
+
return this.options.noValidation ? p : "" + p || "";
|
|
1331
|
+
}, D.prototype.attValue = function(p) {
|
|
1332
|
+
return this.options.noValidation ? p : this.assertLegalChar(this.attEscape(p = "" + p || ""));
|
|
1333
|
+
}, D.prototype.insTarget = function(p) {
|
|
1334
|
+
return this.options.noValidation ? p : this.assertLegalChar("" + p || "");
|
|
1335
|
+
}, D.prototype.insValue = function(p) {
|
|
1336
1336
|
if (this.options.noValidation)
|
|
1337
|
-
return
|
|
1338
|
-
if (
|
|
1339
|
-
throw new Error("Invalid processing instruction value: " +
|
|
1340
|
-
return this.assertLegalChar(
|
|
1341
|
-
}, D.prototype.xmlVersion = function(
|
|
1337
|
+
return p;
|
|
1338
|
+
if (p = "" + p || "", p.match(/\?>/))
|
|
1339
|
+
throw new Error("Invalid processing instruction value: " + p);
|
|
1340
|
+
return this.assertLegalChar(p);
|
|
1341
|
+
}, D.prototype.xmlVersion = function(p) {
|
|
1342
1342
|
if (this.options.noValidation)
|
|
1343
|
-
return
|
|
1344
|
-
if (
|
|
1345
|
-
throw new Error("Invalid version number: " +
|
|
1346
|
-
return
|
|
1347
|
-
}, D.prototype.xmlEncoding = function(
|
|
1343
|
+
return p;
|
|
1344
|
+
if (p = "" + p || "", !p.match(/1\.[0-9]+/))
|
|
1345
|
+
throw new Error("Invalid version number: " + p);
|
|
1346
|
+
return p;
|
|
1347
|
+
}, D.prototype.xmlEncoding = function(p) {
|
|
1348
1348
|
if (this.options.noValidation)
|
|
1349
|
-
return
|
|
1350
|
-
if (
|
|
1351
|
-
throw new Error("Invalid encoding: " +
|
|
1352
|
-
return this.assertLegalChar(
|
|
1353
|
-
}, D.prototype.xmlStandalone = function(
|
|
1354
|
-
return this.options.noValidation ?
|
|
1355
|
-
}, D.prototype.dtdPubID = function(
|
|
1356
|
-
return this.options.noValidation ?
|
|
1357
|
-
}, D.prototype.dtdSysID = function(
|
|
1358
|
-
return this.options.noValidation ?
|
|
1359
|
-
}, D.prototype.dtdElementValue = function(
|
|
1360
|
-
return this.options.noValidation ?
|
|
1361
|
-
}, D.prototype.dtdAttType = function(
|
|
1362
|
-
return this.options.noValidation ?
|
|
1363
|
-
}, D.prototype.dtdAttDefault = function(
|
|
1364
|
-
return this.options.noValidation ?
|
|
1365
|
-
}, D.prototype.dtdEntityValue = function(
|
|
1366
|
-
return this.options.noValidation ?
|
|
1367
|
-
}, D.prototype.dtdNData = function(
|
|
1368
|
-
return this.options.noValidation ?
|
|
1369
|
-
}, D.prototype.convertAttKey = "@", D.prototype.convertPIKey = "?", D.prototype.convertTextKey = "#text", D.prototype.convertCDataKey = "#cdata", D.prototype.convertCommentKey = "#comment", D.prototype.convertRawKey = "#raw", D.prototype.assertLegalChar = function(
|
|
1349
|
+
return p;
|
|
1350
|
+
if (p = "" + p || "", !p.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))
|
|
1351
|
+
throw new Error("Invalid encoding: " + p);
|
|
1352
|
+
return this.assertLegalChar(p);
|
|
1353
|
+
}, D.prototype.xmlStandalone = function(p) {
|
|
1354
|
+
return this.options.noValidation ? p : p ? "yes" : "no";
|
|
1355
|
+
}, D.prototype.dtdPubID = function(p) {
|
|
1356
|
+
return this.options.noValidation ? p : this.assertLegalChar("" + p || "");
|
|
1357
|
+
}, D.prototype.dtdSysID = function(p) {
|
|
1358
|
+
return this.options.noValidation ? p : this.assertLegalChar("" + p || "");
|
|
1359
|
+
}, D.prototype.dtdElementValue = function(p) {
|
|
1360
|
+
return this.options.noValidation ? p : this.assertLegalChar("" + p || "");
|
|
1361
|
+
}, D.prototype.dtdAttType = function(p) {
|
|
1362
|
+
return this.options.noValidation ? p : this.assertLegalChar("" + p || "");
|
|
1363
|
+
}, D.prototype.dtdAttDefault = function(p) {
|
|
1364
|
+
return this.options.noValidation ? p : this.assertLegalChar("" + p || "");
|
|
1365
|
+
}, D.prototype.dtdEntityValue = function(p) {
|
|
1366
|
+
return this.options.noValidation ? p : this.assertLegalChar("" + p || "");
|
|
1367
|
+
}, D.prototype.dtdNData = function(p) {
|
|
1368
|
+
return this.options.noValidation ? p : this.assertLegalChar("" + p || "");
|
|
1369
|
+
}, D.prototype.convertAttKey = "@", D.prototype.convertPIKey = "?", D.prototype.convertTextKey = "#text", D.prototype.convertCDataKey = "#cdata", D.prototype.convertCommentKey = "#comment", D.prototype.convertRawKey = "#raw", D.prototype.assertLegalChar = function(p) {
|
|
1370
1370
|
var h, t;
|
|
1371
1371
|
if (this.options.noValidation)
|
|
1372
|
-
return
|
|
1372
|
+
return p;
|
|
1373
1373
|
if (h = "", this.options.version === "1.0") {
|
|
1374
|
-
if (h = /[\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" && (h = /[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, t =
|
|
1377
|
-
throw new Error("Invalid character in string: " +
|
|
1378
|
-
return
|
|
1379
|
-
}, D.prototype.assertLegalName = function(
|
|
1374
|
+
if (h = /[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, t = p.match(h))
|
|
1375
|
+
throw new Error("Invalid character in string: " + p + " at index " + t.index);
|
|
1376
|
+
} else if (this.options.version === "1.1" && (h = /[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, t = p.match(h)))
|
|
1377
|
+
throw new Error("Invalid character in string: " + p + " at index " + t.index);
|
|
1378
|
+
return p;
|
|
1379
|
+
}, D.prototype.assertLegalName = function(p) {
|
|
1380
1380
|
var h;
|
|
1381
1381
|
if (this.options.noValidation)
|
|
1382
|
-
return
|
|
1383
|
-
if (this.assertLegalChar(
|
|
1382
|
+
return p;
|
|
1383
|
+
if (this.assertLegalChar(p), h = /^([: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])*$/, !p.match(h))
|
|
1384
1384
|
throw new Error("Invalid character in name");
|
|
1385
|
-
return
|
|
1386
|
-
}, D.prototype.textEscape = function(
|
|
1385
|
+
return p;
|
|
1386
|
+
}, D.prototype.textEscape = function(p) {
|
|
1387
1387
|
var h;
|
|
1388
|
-
return this.options.noValidation ?
|
|
1389
|
-
}, D.prototype.attEscape = function(
|
|
1388
|
+
return this.options.noValidation ? p : (h = this.options.noDoubleEncoding ? /(?!&\S+;)&/g : /&/g, p.replace(h, "&").replace(/</g, "<").replace(/>/g, ">").replace(/\r/g, "
"));
|
|
1389
|
+
}, D.prototype.attEscape = function(p) {
|
|
1390
1390
|
var h;
|
|
1391
|
-
return this.options.noValidation ?
|
|
1391
|
+
return this.options.noValidation ? p : (h = this.options.noDoubleEncoding ? /(?!&\S+;)&/g : /&/g, p.replace(h, "&").replace(/</g, "<").replace(/"/g, """).replace(/\t/g, "	").replace(/\n/g, "
").replace(/\r/g, "
"));
|
|
1392
1392
|
}, D;
|
|
1393
1393
|
}();
|
|
1394
|
-
}).call(
|
|
1394
|
+
}).call(Br)), Mt.exports;
|
|
1395
1395
|
}
|
|
1396
|
-
var Pt = { exports: {} }, _t = { exports: {} }, Ct = { exports: {} },
|
|
1396
|
+
var Pt = { exports: {} }, _t = { exports: {} }, Ct = { exports: {} }, qr = Ct.exports, Re;
|
|
1397
1397
|
function Rt() {
|
|
1398
|
-
return
|
|
1398
|
+
return Re || (Re = 1, (function() {
|
|
1399
1399
|
Ct.exports = {
|
|
1400
1400
|
None: 0,
|
|
1401
1401
|
OpenTag: 1,
|
|
1402
1402
|
InsideTag: 2,
|
|
1403
1403
|
CloseTag: 3
|
|
1404
1404
|
};
|
|
1405
|
-
}).call(
|
|
1405
|
+
}).call(qr)), Ct.exports;
|
|
1406
1406
|
}
|
|
1407
|
-
var
|
|
1408
|
-
function
|
|
1409
|
-
return
|
|
1410
|
-
var i,
|
|
1411
|
-
D = H().assign, i = B(),
|
|
1407
|
+
var Ur = _t.exports, je;
|
|
1408
|
+
function rr() {
|
|
1409
|
+
return je || (je = 1, (function() {
|
|
1410
|
+
var i, a, D, p = {}.hasOwnProperty;
|
|
1411
|
+
D = H().assign, i = B(), Ht(), ee(), Kt(), zt(), Yt(), re(), ne(), ie(), tr(), Qt(), Jt(), Zt(), te(), a = Rt(), _t.exports = function() {
|
|
1412
1412
|
function h(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
|
+
p.call(o, e) && (l = o[e], this["_" + e] = this[e], this[e] = l);
|
|
1417
1417
|
}
|
|
1418
1418
|
return h.prototype.filterOptions = function(t) {
|
|
1419
1419
|
var e, o, l, b, m, y, d, g;
|
|
1420
1420
|
return t || (t = {}), t = D({}, this.options, t), e = {
|
|
1421
1421
|
writer: this
|
|
1422
1422
|
}, e.pretty = t.pretty || !1, e.allowEmpty = t.allowEmpty || !1, e.indent = (o = t.indent) != null ? o : " ", e.newline = (l = t.newline) != null ? l : `
|
|
1423
|
-
`, e.offset = (b = t.offset) != null ? b : 0, e.dontPrettyTextNodes = (m = (y = t.dontPrettyTextNodes) != null ? y : t.dontprettytextnodes) != null ? m : 0, e.spaceBeforeSlash = (d = (g = t.spaceBeforeSlash) != null ? g : t.spacebeforeslash) != null ? d : "", e.spaceBeforeSlash === !0 && (e.spaceBeforeSlash = " "), e.suppressPrettyCount = 0, e.user = {}, e.state =
|
|
1423
|
+
`, e.offset = (b = t.offset) != null ? b : 0, e.dontPrettyTextNodes = (m = (y = t.dontPrettyTextNodes) != null ? y : t.dontprettytextnodes) != null ? m : 0, e.spaceBeforeSlash = (d = (g = t.spaceBeforeSlash) != null ? g : t.spacebeforeslash) != null ? d : "", e.spaceBeforeSlash === !0 && (e.spaceBeforeSlash = " "), e.suppressPrettyCount = 0, e.user = {}, e.state = a.None, e;
|
|
1424
1424
|
}, h.prototype.indent = function(t, e, o) {
|
|
1425
1425
|
var l;
|
|
1426
1426
|
return !e.pretty || e.suppressPrettyCount ? "" : e.pretty && (l = (o || 0) + e.offset + 1, l > 0) ? new Array(l).join(e.indent) : "";
|
|
@@ -1431,43 +1431,43 @@ function tr() {
|
|
|
1431
1431
|
return this.openAttribute(t, e, o), l = " " + t.name + '="' + t.value + '"', this.closeAttribute(t, e, o), l;
|
|
1432
1432
|
}, h.prototype.cdata = function(t, e, o) {
|
|
1433
1433
|
var l;
|
|
1434
|
-
return this.openNode(t, e, o), e.state =
|
|
1434
|
+
return this.openNode(t, e, o), e.state = a.OpenTag, l = this.indent(t, e, o) + "<![CDATA[", e.state = a.InsideTag, l += t.value, e.state = a.CloseTag, l += "]]>" + this.endline(t, e, o), e.state = a.None, this.closeNode(t, e, o), l;
|
|
1435
1435
|
}, h.prototype.comment = function(t, e, o) {
|
|
1436
1436
|
var l;
|
|
1437
|
-
return this.openNode(t, e, o), e.state =
|
|
1437
|
+
return this.openNode(t, e, o), e.state = a.OpenTag, l = this.indent(t, e, o) + "<!-- ", e.state = a.InsideTag, l += t.value, e.state = a.CloseTag, l += " -->" + this.endline(t, e, o), e.state = a.None, this.closeNode(t, e, o), l;
|
|
1438
1438
|
}, h.prototype.declaration = function(t, e, o) {
|
|
1439
1439
|
var l;
|
|
1440
|
-
return this.openNode(t, e, o), e.state =
|
|
1440
|
+
return this.openNode(t, e, o), e.state = a.OpenTag, l = this.indent(t, e, o) + "<?xml", e.state = a.InsideTag, l += ' version="' + t.version + '"', t.encoding != null && (l += ' encoding="' + t.encoding + '"'), t.standalone != null && (l += ' standalone="' + t.standalone + '"'), e.state = a.CloseTag, l += e.spaceBeforeSlash + "?>", l += this.endline(t, e, o), e.state = a.None, this.closeNode(t, e, o), l;
|
|
1441
1441
|
}, h.prototype.docType = function(t, e, o) {
|
|
1442
1442
|
var l, b, m, y, d;
|
|
1443
|
-
if (o || (o = 0), this.openNode(t, e, o), e.state =
|
|
1444
|
-
for (y += " [", y += this.endline(t, e, o), e.state =
|
|
1443
|
+
if (o || (o = 0), this.openNode(t, e, o), e.state = a.OpenTag, y = this.indent(t, e, o), y += "<!DOCTYPE " + t.root().name, t.pubID && t.sysID ? y += ' PUBLIC "' + t.pubID + '" "' + t.sysID + '"' : t.sysID && (y += ' SYSTEM "' + t.sysID + '"'), t.children.length > 0) {
|
|
1444
|
+
for (y += " [", y += this.endline(t, e, o), e.state = a.InsideTag, d = t.children, b = 0, m = d.length; b < m; b++)
|
|
1445
1445
|
l = d[b], y += this.writeChildNode(l, e, o + 1);
|
|
1446
|
-
e.state =
|
|
1446
|
+
e.state = a.CloseTag, y += "]";
|
|
1447
1447
|
}
|
|
1448
|
-
return e.state =
|
|
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
|
}, h.prototype.element = function(t, e, o) {
|
|
1450
|
-
var l, b, m, y, d, g, O, I, x, P, E, s,
|
|
1451
|
-
o || (o = 0), P = !1, E = "", this.openNode(t, e, o), e.state =
|
|
1450
|
+
var l, b, m, y, d, g, O, I, x, P, E, s, c, f;
|
|
1451
|
+
o || (o = 0), P = !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
|
+
p.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(T) {
|
|
1455
1455
|
return (T.type === i.Text || T.type === i.Raw) && T.value === "";
|
|
1456
1456
|
}))
|
|
1457
|
-
e.allowEmpty ? (E += ">", e.state =
|
|
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 === i.Text || y.type === i.Raw) && y.value != null)
|
|
1459
|
-
E += ">", e.state =
|
|
1459
|
+
E += ">", e.state = a.InsideTag, e.suppressPrettyCount++, P = !0, E += this.writeChildNode(y, e, o + 1), e.suppressPrettyCount--, P = !1, e.state = a.CloseTag, E += "</" + t.name + ">" + this.endline(t, e, o);
|
|
1460
1460
|
else {
|
|
1461
1461
|
if (e.dontPrettyTextNodes) {
|
|
1462
|
-
for (
|
|
1463
|
-
if (b =
|
|
1462
|
+
for (c = t.children, d = 0, O = c.length; d < O; d++)
|
|
1463
|
+
if (b = c[d], (b.type === i.Text || b.type === i.Raw) && b.value != null) {
|
|
1464
1464
|
e.suppressPrettyCount++, P = !0;
|
|
1465
1465
|
break;
|
|
1466
1466
|
}
|
|
1467
1467
|
}
|
|
1468
|
-
for (E += ">" + this.endline(t, e, o), e.state =
|
|
1469
|
-
b =
|
|
1470
|
-
e.state =
|
|
1468
|
+
for (E += ">" + this.endline(t, e, o), e.state = a.InsideTag, f = t.children, g = 0, I = f.length; g < I; g++)
|
|
1469
|
+
b = f[g], E += this.writeChildNode(b, e, o + 1);
|
|
1470
|
+
e.state = a.CloseTag, E += this.indent(t, e, o) + "</" + t.name + ">", P && 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
|
}, h.prototype.writeChildNode = function(t, e, o) {
|
|
@@ -1503,46 +1503,46 @@ function tr() {
|
|
|
1503
1503
|
}
|
|
1504
1504
|
}, h.prototype.processingInstruction = function(t, e, o) {
|
|
1505
1505
|
var l;
|
|
1506
|
-
return this.openNode(t, e, o), e.state =
|
|
1506
|
+
return this.openNode(t, e, o), e.state = a.OpenTag, l = this.indent(t, e, o) + "<?", e.state = a.InsideTag, l += t.target, t.value && (l += " " + t.value), e.state = a.CloseTag, l += e.spaceBeforeSlash + "?>", l += this.endline(t, e, o), e.state = a.None, this.closeNode(t, e, o), l;
|
|
1507
1507
|
}, h.prototype.raw = function(t, e, o) {
|
|
1508
1508
|
var l;
|
|
1509
|
-
return this.openNode(t, e, o), e.state =
|
|
1509
|
+
return this.openNode(t, e, o), e.state = a.OpenTag, l = this.indent(t, e, o), e.state = a.InsideTag, l += t.value, e.state = a.CloseTag, l += this.endline(t, e, o), e.state = a.None, this.closeNode(t, e, o), l;
|
|
1510
1510
|
}, h.prototype.text = function(t, e, o) {
|
|
1511
1511
|
var l;
|
|
1512
|
-
return this.openNode(t, e, o), e.state =
|
|
1512
|
+
return this.openNode(t, e, o), e.state = a.OpenTag, l = this.indent(t, e, o), e.state = a.InsideTag, l += t.value, e.state = a.CloseTag, l += this.endline(t, e, o), e.state = a.None, this.closeNode(t, e, o), l;
|
|
1513
1513
|
}, h.prototype.dtdAttList = function(t, e, o) {
|
|
1514
1514
|
var l;
|
|
1515
|
-
return this.openNode(t, e, o), e.state =
|
|
1515
|
+
return this.openNode(t, e, o), e.state = a.OpenTag, l = this.indent(t, e, o) + "<!ATTLIST", e.state = a.InsideTag, l += " " + t.elementName + " " + t.attributeName + " " + t.attributeType, t.defaultValueType !== "#DEFAULT" && (l += " " + t.defaultValueType), t.defaultValue && (l += ' "' + t.defaultValue + '"'), e.state = a.CloseTag, l += e.spaceBeforeSlash + ">" + this.endline(t, e, o), e.state = a.None, this.closeNode(t, e, o), l;
|
|
1516
1516
|
}, h.prototype.dtdElement = function(t, e, o) {
|
|
1517
1517
|
var l;
|
|
1518
|
-
return this.openNode(t, e, o), e.state =
|
|
1518
|
+
return this.openNode(t, e, o), e.state = a.OpenTag, l = this.indent(t, e, o) + "<!ELEMENT", e.state = a.InsideTag, l += " " + t.name + " " + t.value, e.state = a.CloseTag, l += e.spaceBeforeSlash + ">" + this.endline(t, e, o), e.state = a.None, this.closeNode(t, e, o), l;
|
|
1519
1519
|
}, h.prototype.dtdEntity = function(t, e, o) {
|
|
1520
1520
|
var l;
|
|
1521
|
-
return this.openNode(t, e, o), e.state =
|
|
1521
|
+
return this.openNode(t, e, o), e.state = a.OpenTag, l = this.indent(t, e, o) + "<!ENTITY", e.state = a.InsideTag, t.pe && (l += " %"), l += " " + t.name, t.value ? l += ' "' + t.value + '"' : (t.pubID && t.sysID ? l += ' PUBLIC "' + t.pubID + '" "' + t.sysID + '"' : t.sysID && (l += ' SYSTEM "' + t.sysID + '"'), t.nData && (l += " NDATA " + t.nData)), e.state = a.CloseTag, l += e.spaceBeforeSlash + ">" + this.endline(t, e, o), e.state = a.None, this.closeNode(t, e, o), l;
|
|
1522
1522
|
}, h.prototype.dtdNotation = function(t, e, o) {
|
|
1523
1523
|
var l;
|
|
1524
|
-
return this.openNode(t, e, o), e.state =
|
|
1524
|
+
return this.openNode(t, e, o), e.state = a.OpenTag, l = this.indent(t, e, o) + "<!NOTATION", e.state = a.InsideTag, l += " " + t.name, t.pubID && t.sysID ? l += ' PUBLIC "' + t.pubID + '" "' + t.sysID + '"' : t.pubID ? l += ' PUBLIC "' + t.pubID + '"' : t.sysID && (l += ' SYSTEM "' + t.sysID + '"'), e.state = a.CloseTag, l += e.spaceBeforeSlash + ">" + this.endline(t, e, o), e.state = a.None, this.closeNode(t, e, o), l;
|
|
1525
1525
|
}, h.prototype.openNode = function(t, e, o) {
|
|
1526
1526
|
}, h.prototype.closeNode = function(t, e, o) {
|
|
1527
1527
|
}, h.prototype.openAttribute = function(t, e, o) {
|
|
1528
1528
|
}, h.prototype.closeAttribute = function(t, e, o) {
|
|
1529
1529
|
}, h;
|
|
1530
1530
|
}();
|
|
1531
|
-
}).call(
|
|
1531
|
+
}).call(Ur)), _t.exports;
|
|
1532
1532
|
}
|
|
1533
|
-
var
|
|
1534
|
-
function
|
|
1535
|
-
return
|
|
1536
|
-
var i,
|
|
1533
|
+
var Vr = Pt.exports, Be;
|
|
1534
|
+
function oe() {
|
|
1535
|
+
return Be || (Be = 1, (function() {
|
|
1536
|
+
var i, a = function(p, h) {
|
|
1537
1537
|
for (var t in h)
|
|
1538
|
-
D.call(h, t) && (
|
|
1538
|
+
D.call(h, t) && (p[t] = h[t]);
|
|
1539
1539
|
function e() {
|
|
1540
|
-
this.constructor =
|
|
1540
|
+
this.constructor = p;
|
|
1541
1541
|
}
|
|
1542
|
-
return e.prototype = h.prototype,
|
|
1542
|
+
return e.prototype = h.prototype, p.prototype = new e(), p.__super__ = h.prototype, p;
|
|
1543
1543
|
}, D = {}.hasOwnProperty;
|
|
1544
|
-
i =
|
|
1545
|
-
|
|
1544
|
+
i = rr(), Pt.exports = function(p) {
|
|
1545
|
+
a(h, p);
|
|
1546
1546
|
function h(t) {
|
|
1547
1547
|
h.__super__.constructor.call(this, t);
|
|
1548
1548
|
}
|
|
@@ -1553,12 +1553,12 @@ function ie() {
|
|
|
1553
1553
|
return e.pretty && m.slice(-e.newline.length) === e.newline && (m = m.slice(0, -e.newline.length)), m;
|
|
1554
1554
|
}, h;
|
|
1555
1555
|
}(i);
|
|
1556
|
-
}).call(
|
|
1556
|
+
}).call(Vr)), Pt.exports;
|
|
1557
1557
|
}
|
|
1558
|
-
var
|
|
1559
|
-
function
|
|
1560
|
-
return
|
|
1561
|
-
var i,
|
|
1558
|
+
var kr = st.exports, qe;
|
|
1559
|
+
function nr() {
|
|
1560
|
+
return qe || (qe = 1, (function() {
|
|
1561
|
+
var i, a, D, p, h, 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,10 +1566,10 @@ function er() {
|
|
|
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, D =
|
|
1569
|
+
e = H().isPlainObject, D = Ze(), a = mr(), p = W(), i = B(), t = er(), h = oe(), st.exports = function(b) {
|
|
1570
1570
|
o(m, b);
|
|
1571
1571
|
function m(y) {
|
|
1572
|
-
m.__super__.constructor.call(this, null), this.name = "#document", this.type = i.Document, this.documentURI = null, this.domConfig = new
|
|
1572
|
+
m.__super__.constructor.call(this, null), this.name = "#document", this.type = i.Document, this.documentURI = null, this.domConfig = new a(), y || (y = {}), y.writer || (y.writer = new h()), this.options = y, this.stringify = new t(y);
|
|
1573
1573
|
}
|
|
1574
1574
|
return Object.defineProperty(m.prototype, "implementation", {
|
|
1575
1575
|
value: new D()
|
|
@@ -1675,17 +1675,17 @@ function er() {
|
|
|
1675
1675
|
}, m.prototype.createTreeWalker = function(y, d, g) {
|
|
1676
1676
|
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
1677
1677
|
}, m;
|
|
1678
|
-
}(
|
|
1679
|
-
}).call(
|
|
1678
|
+
}(p);
|
|
1679
|
+
}).call(kr)), st.exports;
|
|
1680
1680
|
}
|
|
1681
|
-
var St = { exports: {} },
|
|
1682
|
-
function
|
|
1683
|
-
return
|
|
1684
|
-
var i,
|
|
1685
|
-
T = H(),
|
|
1681
|
+
var St = { exports: {} }, $r = St.exports, Ue;
|
|
1682
|
+
function Wr() {
|
|
1683
|
+
return Ue || (Ue = 1, (function() {
|
|
1684
|
+
var i, a, D, p, h, t, e, o, l, b, m, y, d, g, O, I, x, P, E, s, c, f, T, L = {}.hasOwnProperty;
|
|
1685
|
+
T = H(), c = T.isObject, s = T.isFunction, f = T.isPlainObject, E = T.getValue, i = B(), y = nr(), d = Yt(), p = Kt(), h = zt(), O = re(), P = ne(), g = ie(), b = Ht(), m = ee(), t = Qt(), o = Zt(), e = Jt(), l = te(), D = Je(), x = er(), I = oe(), a = Rt(), St.exports = function() {
|
|
1686
1686
|
function v(r, N, A) {
|
|
1687
1687
|
var _;
|
|
1688
|
-
this.name = "?xml", this.type = i.Document, r || (r = {}), _ = {}, r.writer ?
|
|
1688
|
+
this.name = "?xml", this.type = i.Document, r || (r = {}), _ = {}, r.writer ? f(r.writer) && (_ = r.writer, r.writer = new I()) : r.writer = new I(), this.options = r, this.writer = r.writer, this.writerOptions = this.writer.filterOptions(_), this.stringify = new x(r), this.onDataCallback = N || function() {
|
|
1689
1689
|
}, this.onEndCallback = A || function() {
|
|
1690
1690
|
}, this.currentNode = null, this.currentLevel = -1, this.openTags = {}, this.documentStarted = !1, this.documentCompleted = !1, this.root = null;
|
|
1691
1691
|
}
|
|
@@ -1730,12 +1730,12 @@ function kr() {
|
|
|
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),
|
|
1733
|
+
return this.openCurrent(), r = E(r), N == null && (N = {}), N = E(N), c(N) || (_ = [N, A], A = _[0], N = _[1]), this.currentNode = new d(this, r, N), this.currentNode.children = !1, this.currentLevel++, this.openTags[this.currentLevel] = this.currentNode, A != null && this.text(A), this;
|
|
1734
1734
|
}, v.prototype.element = function(r, N, A) {
|
|
1735
1735
|
var _, C, X, j, F, S;
|
|
1736
1736
|
if (this.currentNode && this.currentNode.type === i.DocType)
|
|
1737
1737
|
this.dtdElement.apply(this, arguments);
|
|
1738
|
-
else if (Array.isArray(r) ||
|
|
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, F = S.children, C = 0, X = F.length; C < X; C++)
|
|
1740
1740
|
_ = F[C], this.createChildNode(_), _.type === i.Element && this.up();
|
|
1741
1741
|
else
|
|
@@ -1745,7 +1745,7 @@ function kr() {
|
|
|
1745
1745
|
var A, _;
|
|
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
|
-
if (r != null && (r = E(r)),
|
|
1748
|
+
if (r != null && (r = E(r)), c(r))
|
|
1749
1749
|
for (A in r)
|
|
1750
1750
|
L.call(r, A) && (_ = r[A], this.attribute(A, _));
|
|
1751
1751
|
else
|
|
@@ -1756,7 +1756,7 @@ function kr() {
|
|
|
1756
1756
|
return this.openCurrent(), N = new P(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 p(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 h(this, r), this.onData(this.writer.comment(N, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
|
|
@@ -1768,7 +1768,7 @@ function kr() {
|
|
|
1768
1768
|
if (this.openCurrent(), r != null && (r = E(r)), N != null && (N = E(N)), Array.isArray(r))
|
|
1769
1769
|
for (A = 0, X = r.length; A < X; A++)
|
|
1770
1770
|
_ = r[A], this.instruction(_);
|
|
1771
|
-
else if (
|
|
1771
|
+
else if (c(r))
|
|
1772
1772
|
for (_ in r)
|
|
1773
1773
|
L.call(r, _) && (C = r[_], this.instruction(_, C));
|
|
1774
1774
|
else
|
|
@@ -1815,18 +1815,18 @@ function kr() {
|
|
|
1815
1815
|
var N, A, _, C;
|
|
1816
1816
|
if (!r.isOpen) {
|
|
1817
1817
|
if (!this.root && this.currentLevel === 0 && r.type === i.Element && (this.root = r), A = "", r.type === i.Element) {
|
|
1818
|
-
this.writerOptions.state =
|
|
1818
|
+
this.writerOptions.state = a.OpenTag, A = this.writer.indent(r, this.writerOptions, this.currentLevel) + "<" + r.name, C = r.attribs;
|
|
1819
1819
|
for (_ in C)
|
|
1820
1820
|
L.call(C, _) && (N = C[_], A += this.writer.attribute(N, this.writerOptions, this.currentLevel));
|
|
1821
|
-
A += (r.children ? ">" : "/>") + this.writer.endline(r, this.writerOptions, this.currentLevel), this.writerOptions.state =
|
|
1821
|
+
A += (r.children ? ">" : "/>") + this.writer.endline(r, this.writerOptions, this.currentLevel), this.writerOptions.state = a.InsideTag;
|
|
1822
1822
|
} else
|
|
1823
|
-
this.writerOptions.state =
|
|
1823
|
+
this.writerOptions.state = a.OpenTag, A = this.writer.indent(r, this.writerOptions, this.currentLevel) + "<!DOCTYPE " + r.rootNodeName, r.pubID && r.sysID ? A += ' PUBLIC "' + r.pubID + '" "' + r.sysID + '"' : r.sysID && (A += ' SYSTEM "' + r.sysID + '"'), r.children ? (A += " [", this.writerOptions.state = a.InsideTag) : (this.writerOptions.state = a.CloseTag, A += ">"), A += this.writer.endline(r, this.writerOptions, this.currentLevel);
|
|
1824
1824
|
return this.onData(A, this.currentLevel), r.isOpen = !0;
|
|
1825
1825
|
}
|
|
1826
1826
|
}, v.prototype.closeNode = function(r) {
|
|
1827
1827
|
var N;
|
|
1828
1828
|
if (!r.isClosed)
|
|
1829
|
-
return N = "", this.writerOptions.state =
|
|
1829
|
+
return N = "", this.writerOptions.state = a.CloseTag, r.type === i.Element ? N = this.writer.indent(r, this.writerOptions, this.currentLevel) + "</" + r.name + ">" + this.writer.endline(r, this.writerOptions, this.currentLevel) : N = this.writer.indent(r, this.writerOptions, this.currentLevel) + "]>" + this.writer.endline(r, this.writerOptions, this.currentLevel), this.writerOptions.state = a.None, this.onData(N, this.currentLevel), r.isClosed = !0;
|
|
1830
1830
|
}, v.prototype.onData = function(r, N) {
|
|
1831
1831
|
return this.documentStarted = !0, this.onDataCallback(r, N + 1);
|
|
1832
1832
|
}, v.prototype.onEnd = function() {
|
|
@@ -1875,12 +1875,12 @@ function kr() {
|
|
|
1875
1875
|
return this.notation(r, N);
|
|
1876
1876
|
}, v;
|
|
1877
1877
|
}();
|
|
1878
|
-
}).call(
|
|
1878
|
+
}).call($r)), St.exports;
|
|
1879
1879
|
}
|
|
1880
|
-
var Xt = { exports: {} },
|
|
1881
|
-
function
|
|
1882
|
-
return
|
|
1883
|
-
var i,
|
|
1880
|
+
var Xt = { exports: {} }, Gr = Xt.exports, Ve;
|
|
1881
|
+
function Yr() {
|
|
1882
|
+
return Ve || (Ve = 1, (function() {
|
|
1883
|
+
var i, a, D, p = function(t, e) {
|
|
1884
1884
|
for (var o in e)
|
|
1885
1885
|
h.call(e, o) && (t[o] = e[o]);
|
|
1886
1886
|
function l() {
|
|
@@ -1888,13 +1888,13 @@ function Wr() {
|
|
|
1888
1888
|
}
|
|
1889
1889
|
return l.prototype = e.prototype, t.prototype = new l(), t.__super__ = e.prototype, t;
|
|
1890
1890
|
}, h = {}.hasOwnProperty;
|
|
1891
|
-
i = B(), D =
|
|
1892
|
-
|
|
1891
|
+
i = B(), D = rr(), a = Rt(), Xt.exports = function(t) {
|
|
1892
|
+
p(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
|
-
return o.isLastRootNode && l.state ===
|
|
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
1899
|
var b, m, y, d, g, O, I, x, P;
|
|
1900
1900
|
for (I = o.children, m = y = 0, g = I.length; y < g; m = ++y)
|
|
@@ -1912,29 +1912,29 @@ function Wr() {
|
|
|
1912
1912
|
return this.stream.write(e.__super__.declaration.call(this, o, l, b));
|
|
1913
1913
|
}, e.prototype.docType = function(o, l, b) {
|
|
1914
1914
|
var m, y, d, g;
|
|
1915
|
-
if (b || (b = 0), this.openNode(o, l, b), l.state =
|
|
1916
|
-
for (this.stream.write(" ["), this.stream.write(this.endline(o, l, b)), l.state =
|
|
1915
|
+
if (b || (b = 0), this.openNode(o, l, b), l.state = a.OpenTag, this.stream.write(this.indent(o, l, b)), this.stream.write("<!DOCTYPE " + o.root().name), o.pubID && o.sysID ? this.stream.write(' PUBLIC "' + o.pubID + '" "' + o.sysID + '"') : o.sysID && this.stream.write(' SYSTEM "' + o.sysID + '"'), o.children.length > 0) {
|
|
1916
|
+
for (this.stream.write(" ["), this.stream.write(this.endline(o, l, b)), l.state = a.InsideTag, g = o.children, y = 0, d = g.length; y < d; y++)
|
|
1917
1917
|
m = g[y], this.writeChildNode(m, l, b + 1);
|
|
1918
|
-
l.state =
|
|
1918
|
+
l.state = a.CloseTag, this.stream.write("]");
|
|
1919
1919
|
}
|
|
1920
|
-
return l.state =
|
|
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
1922
|
var m, y, d, g, O, I, x, P, E;
|
|
1923
|
-
b || (b = 0), this.openNode(o, l, b), l.state =
|
|
1923
|
+
b || (b = 0), this.openNode(o, l, b), l.state = a.OpenTag, this.stream.write(this.indent(o, l, b) + "<" + o.name), P = o.attribs;
|
|
1924
1924
|
for (x in P)
|
|
1925
1925
|
h.call(P, x) && (m = P[x], this.attribute(m, l, b));
|
|
1926
1926
|
if (d = o.children.length, g = d === 0 ? null : o.children[0], d === 0 || o.children.every(function(s) {
|
|
1927
1927
|
return (s.type === i.Text || s.type === i.Raw) && s.value === "";
|
|
1928
1928
|
}))
|
|
1929
|
-
l.allowEmpty ? (this.stream.write(">"), l.state =
|
|
1929
|
+
l.allowEmpty ? (this.stream.write(">"), l.state = a.CloseTag, this.stream.write("</" + o.name + ">")) : (l.state = a.CloseTag, this.stream.write(l.spaceBeforeSlash + "/>"));
|
|
1930
1930
|
else if (l.pretty && d === 1 && (g.type === i.Text || g.type === i.Raw) && g.value != null)
|
|
1931
|
-
this.stream.write(">"), l.state =
|
|
1931
|
+
this.stream.write(">"), l.state = a.InsideTag, l.suppressPrettyCount++, this.writeChildNode(g, l, b + 1), l.suppressPrettyCount--, l.state = a.CloseTag, this.stream.write("</" + o.name + ">");
|
|
1932
1932
|
else {
|
|
1933
|
-
for (this.stream.write(">" + this.endline(o, l, b)), l.state =
|
|
1933
|
+
for (this.stream.write(">" + this.endline(o, l, b)), l.state = a.InsideTag, E = o.children, O = 0, I = E.length; O < I; O++)
|
|
1934
1934
|
y = E[O], this.writeChildNode(y, l, b + 1);
|
|
1935
|
-
l.state =
|
|
1935
|
+
l.state = a.CloseTag, this.stream.write(this.indent(o, l, b) + "</" + o.name + ">");
|
|
1936
1936
|
}
|
|
1937
|
-
return this.stream.write(this.endline(o, l, b)), l.state =
|
|
1937
|
+
return this.stream.write(this.endline(o, l, b)), l.state = a.None, this.closeNode(o, l, b);
|
|
1938
1938
|
}, e.prototype.processingInstruction = function(o, l, b) {
|
|
1939
1939
|
return this.stream.write(e.__super__.processingInstruction.call(this, o, l, b));
|
|
1940
1940
|
}, e.prototype.raw = function(o, l, b) {
|
|
@@ -1951,32 +1951,32 @@ function Wr() {
|
|
|
1951
1951
|
return this.stream.write(e.__super__.dtdNotation.call(this, o, l, b));
|
|
1952
1952
|
}, e;
|
|
1953
1953
|
}(D);
|
|
1954
|
-
}).call(
|
|
1954
|
+
}).call(Gr)), Xt.exports;
|
|
1955
1955
|
}
|
|
1956
|
-
var
|
|
1957
|
-
function
|
|
1958
|
-
return
|
|
1959
|
-
var i,
|
|
1960
|
-
b = H(), o = b.assign, l = b.isFunction, D =
|
|
1956
|
+
var ke;
|
|
1957
|
+
function Kr() {
|
|
1958
|
+
return ke || (ke = 1, (function() {
|
|
1959
|
+
var i, a, D, p, h, t, e, o, l, b;
|
|
1960
|
+
b = H(), o = b.assign, l = b.isFunction, D = Ze(), p = nr(), h = Wr(), e = oe(), t = Yr(), i = B(), a = Rt(), Y.create = function(m, y, d, g) {
|
|
1961
1961
|
var O, I;
|
|
1962
1962
|
if (m == null)
|
|
1963
1963
|
throw new Error("Root element needs a name.");
|
|
1964
|
-
return g = o({}, y, d, g), O = new
|
|
1964
|
+
return g = o({}, y, d, g), O = new p(g), I = O.element(m), g.headless || (O.declaration(g), (g.pubID != null || g.sysID != null) && O.dtd(g)), I;
|
|
1965
1965
|
}, Y.begin = function(m, y, d) {
|
|
1966
1966
|
var g;
|
|
1967
|
-
return l(m) && (g = [m, y], y = g[0], d = g[1], m = {}), y ? new h(m, y, d) : new
|
|
1967
|
+
return l(m) && (g = [m, y], y = g[0], d = g[1], m = {}), y ? new h(m, y, d) : new p(m);
|
|
1968
1968
|
}, Y.stringWriter = function(m) {
|
|
1969
1969
|
return new e(m);
|
|
1970
1970
|
}, Y.streamWriter = function(m, y) {
|
|
1971
1971
|
return new t(m, y);
|
|
1972
|
-
}, Y.implementation = new D(), Y.nodeType = i, Y.writerState =
|
|
1972
|
+
}, Y.implementation = new D(), Y.nodeType = i, Y.writerState = a;
|
|
1973
1973
|
}).call(Y)), Y;
|
|
1974
1974
|
}
|
|
1975
|
-
var
|
|
1976
|
-
function
|
|
1977
|
-
return
|
|
1978
|
-
var i,
|
|
1979
|
-
i =
|
|
1975
|
+
var $e;
|
|
1976
|
+
function zr() {
|
|
1977
|
+
return $e || ($e = 1, (function() {
|
|
1978
|
+
var i, a, D, p, h, t = {}.hasOwnProperty;
|
|
1979
|
+
i = Kr(), a = Wt().defaults, p = function(e) {
|
|
1980
1980
|
return typeof e == "string" && (e.indexOf("&") >= 0 || e.indexOf(">") >= 0 || e.indexOf("<") >= 0);
|
|
1981
1981
|
}, h = function(e) {
|
|
1982
1982
|
return "<![CDATA[" + D(e) + "]]>";
|
|
@@ -1985,7 +1985,7 @@ function Yr() {
|
|
|
1985
1985
|
}, et.Builder = function() {
|
|
1986
1986
|
function e(o) {
|
|
1987
1987
|
var l, b, m;
|
|
1988
|
-
this.options = {}, b =
|
|
1988
|
+
this.options = {}, b = a["0.2"];
|
|
1989
1989
|
for (l in b)
|
|
1990
1990
|
t.call(b, l) && (m = b[l], this.options[l] = m);
|
|
1991
1991
|
for (l in o)
|
|
@@ -1993,31 +1993,31 @@ function Yr() {
|
|
|
1993
1993
|
}
|
|
1994
1994
|
return e.prototype.buildObject = function(o) {
|
|
1995
1995
|
var l, b, m, y, d;
|
|
1996
|
-
return l = this.options.attrkey, b = this.options.charkey, Object.keys(o).length === 1 && this.options.rootName ===
|
|
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(g) {
|
|
1997
1997
|
return function(O, I) {
|
|
1998
|
-
var x, P, E, s,
|
|
1998
|
+
var x, P, E, s, c, f;
|
|
1999
1999
|
if (typeof I != "object")
|
|
2000
|
-
g.options.cdata &&
|
|
2000
|
+
g.options.cdata && p(I) ? O.raw(h(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
2004
|
P = I[s];
|
|
2005
|
-
for (
|
|
2006
|
-
E = P[
|
|
2005
|
+
for (c in P)
|
|
2006
|
+
E = P[c], O = m(O.ele(c), E).up();
|
|
2007
2007
|
}
|
|
2008
2008
|
} else
|
|
2009
|
-
for (
|
|
2010
|
-
if (t.call(I,
|
|
2011
|
-
if (P = I[
|
|
2009
|
+
for (c in I)
|
|
2010
|
+
if (t.call(I, c))
|
|
2011
|
+
if (P = I[c], c === l) {
|
|
2012
2012
|
if (typeof P == "object")
|
|
2013
2013
|
for (x in P)
|
|
2014
|
-
|
|
2015
|
-
} else if (
|
|
2016
|
-
g.options.cdata &&
|
|
2014
|
+
f = P[x], O = O.att(x, f);
|
|
2015
|
+
} else if (c === b)
|
|
2016
|
+
g.options.cdata && p(P) ? O = O.raw(h(P)) : O = O.txt(P);
|
|
2017
2017
|
else if (Array.isArray(P))
|
|
2018
2018
|
for (s in P)
|
|
2019
|
-
t.call(P, s) && (E = P[s], typeof E == "string" ? g.options.cdata &&
|
|
2020
|
-
else typeof P == "object" ? O = m(O.ele(
|
|
2019
|
+
t.call(P, s) && (E = P[s], typeof E == "string" ? g.options.cdata && p(E) ? O = O.ele(c).raw(h(E)).up() : O = O.ele(c, E).up() : O = m(O.ele(c), E).up());
|
|
2020
|
+
else typeof P == "object" ? O = m(O.ele(c), P).up() : typeof P == "string" && g.options.cdata && p(P) ? O = O.ele(c).raw(h(P)).up() : (P == null && (P = ""), O = O.ele(c, P.toString()).up());
|
|
2021
2021
|
return O;
|
|
2022
2022
|
};
|
|
2023
2023
|
}(this), y = i.create(d, this.options.xmldec, this.options.doctype, {
|
|
@@ -2029,17 +2029,17 @@ function Yr() {
|
|
|
2029
2029
|
}).call(et)), et;
|
|
2030
2030
|
}
|
|
2031
2031
|
var rt = {}, Vt = {};
|
|
2032
|
-
const
|
|
2032
|
+
const Hr = {}, Qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2033
2033
|
__proto__: null,
|
|
2034
|
-
default:
|
|
2035
|
-
}, Symbol.toStringTag, { value: "Module" })), kt = /* @__PURE__ */
|
|
2036
|
-
var
|
|
2037
|
-
function
|
|
2038
|
-
return
|
|
2039
|
-
(function(
|
|
2040
|
-
|
|
2041
|
-
return new
|
|
2042
|
-
},
|
|
2034
|
+
default: Hr
|
|
2035
|
+
}, Symbol.toStringTag, { value: "Module" })), kt = /* @__PURE__ */ cr(Qr);
|
|
2036
|
+
var We;
|
|
2037
|
+
function Zr() {
|
|
2038
|
+
return We || (We = 1, function(i) {
|
|
2039
|
+
(function(a) {
|
|
2040
|
+
a.parser = function(u, n) {
|
|
2041
|
+
return new p(u, n);
|
|
2042
|
+
}, a.SAXParser = p, a.SAXStream = m, a.createStream = b, a.MAX_BUFFER_LENGTH = 64 * 1024;
|
|
2043
2043
|
var D = [
|
|
2044
2044
|
"comment",
|
|
2045
2045
|
"sgmlDecl",
|
|
@@ -2054,7 +2054,7 @@ function Hr() {
|
|
|
2054
2054
|
"cdata",
|
|
2055
2055
|
"script"
|
|
2056
2056
|
];
|
|
2057
|
-
|
|
2057
|
+
a.EVENTS = [
|
|
2058
2058
|
"text",
|
|
2059
2059
|
"processinginstruction",
|
|
2060
2060
|
"sgmldeclaration",
|
|
@@ -2074,11 +2074,11 @@ function Hr() {
|
|
|
2074
2074
|
"opennamespace",
|
|
2075
2075
|
"closenamespace"
|
|
2076
2076
|
];
|
|
2077
|
-
function
|
|
2078
|
-
if (!(this instanceof
|
|
2079
|
-
return new
|
|
2077
|
+
function p(u, n) {
|
|
2078
|
+
if (!(this instanceof p))
|
|
2079
|
+
return new p(u, n);
|
|
2080
2080
|
var M = this;
|
|
2081
|
-
t(M), M.q = M.c = "", M.bufferCheckPosition =
|
|
2081
|
+
t(M), M.q = M.c = "", M.bufferCheckPosition = a.MAX_BUFFER_LENGTH, M.opt = n || {}, M.opt.lowercase = M.opt.lowercase || M.opt.lowercasetags, M.looseCase = M.opt.lowercase ? "toLowerCase" : "toUpperCase", M.tags = [], M.closed = M.closedRoot = M.sawRoot = !1, M.tag = M.error = null, M.strict = !!u, M.noscript = !!(u || M.opt.noscript), M.state = r.BEGIN, M.strictEntities = M.opt.strictEntities, M.ENTITIES = M.strictEntities ? Object.create(a.XML_ENTITIES) : Object.create(a.ENTITIES), M.attribList = [], M.opt.xmlns && (M.ns = Object.create(I)), M.opt.unquotedAttributeValues === void 0 && (M.opt.unquotedAttributeValues = !u), M.trackPosition = M.opt.position !== !1, M.trackPosition && (M.position = M.line = M.column = 0), A(M, "onready");
|
|
2082
2082
|
}
|
|
2083
2083
|
Object.create || (Object.create = function(u) {
|
|
2084
2084
|
function n() {
|
|
@@ -2092,7 +2092,7 @@ function Hr() {
|
|
|
2092
2092
|
return n;
|
|
2093
2093
|
});
|
|
2094
2094
|
function h(u) {
|
|
2095
|
-
for (var n = Math.max(
|
|
2095
|
+
for (var n = Math.max(a.MAX_BUFFER_LENGTH, 10), M = 0, w = 0, R = D.length; w < R; w++) {
|
|
2096
2096
|
var q = u[D[w]].length;
|
|
2097
2097
|
if (q > n)
|
|
2098
2098
|
switch (D[w]) {
|
|
@@ -2110,7 +2110,7 @@ function Hr() {
|
|
|
2110
2110
|
}
|
|
2111
2111
|
M = Math.max(M, q);
|
|
2112
2112
|
}
|
|
2113
|
-
var U =
|
|
2113
|
+
var U = a.MAX_BUFFER_LENGTH - M;
|
|
2114
2114
|
u.bufferCheckPosition = U + u.position;
|
|
2115
2115
|
}
|
|
2116
2116
|
function t(u) {
|
|
@@ -2120,11 +2120,11 @@ function Hr() {
|
|
|
2120
2120
|
function e(u) {
|
|
2121
2121
|
C(u), u.cdata !== "" && (_(u, "oncdata", u.cdata), u.cdata = ""), u.script !== "" && (_(u, "onscript", u.script), u.script = "");
|
|
2122
2122
|
}
|
|
2123
|
-
|
|
2123
|
+
p.prototype = {
|
|
2124
2124
|
end: function() {
|
|
2125
2125
|
F(this);
|
|
2126
2126
|
},
|
|
2127
|
-
write:
|
|
2127
|
+
write: ur,
|
|
2128
2128
|
resume: function() {
|
|
2129
2129
|
return this.error = null, this;
|
|
2130
2130
|
},
|
|
@@ -2144,7 +2144,7 @@ function Hr() {
|
|
|
2144
2144
|
}
|
|
2145
2145
|
o || (o = function() {
|
|
2146
2146
|
});
|
|
2147
|
-
var l =
|
|
2147
|
+
var l = a.EVENTS.filter(function(u) {
|
|
2148
2148
|
return u !== "error" && u !== "end";
|
|
2149
2149
|
});
|
|
2150
2150
|
function b(u, n) {
|
|
@@ -2153,7 +2153,7 @@ function Hr() {
|
|
|
2153
2153
|
function m(u, n) {
|
|
2154
2154
|
if (!(this instanceof m))
|
|
2155
2155
|
return new m(u, n);
|
|
2156
|
-
o.apply(this), this._parser = new
|
|
2156
|
+
o.apply(this), this._parser = new p(u, n), this.writable = !0, this.readable = !0;
|
|
2157
2157
|
var M = this;
|
|
2158
2158
|
this._parser.onend = function() {
|
|
2159
2159
|
M.emit("end");
|
|
@@ -2197,15 +2197,15 @@ function Hr() {
|
|
|
2197
2197
|
}), o.prototype.on.call(M, u, n);
|
|
2198
2198
|
};
|
|
2199
2199
|
var y = "[CDATA[", d = "DOCTYPE", g = "http://www.w3.org/XML/1998/namespace", O = "http://www.w3.org/2000/xmlns/", I = { xml: g, 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]/, P = /[:_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
|
-
function
|
|
2200
|
+
function c(u) {
|
|
2201
2201
|
return u === " " || u === `
|
|
2202
2202
|
` || u === "\r" || u === " ";
|
|
2203
2203
|
}
|
|
2204
|
-
function
|
|
2204
|
+
function f(u) {
|
|
2205
2205
|
return u === '"' || u === "'";
|
|
2206
2206
|
}
|
|
2207
2207
|
function T(u) {
|
|
2208
|
-
return u === ">" ||
|
|
2208
|
+
return u === ">" || c(u);
|
|
2209
2209
|
}
|
|
2210
2210
|
function L(u, n) {
|
|
2211
2211
|
return u.test(n);
|
|
@@ -2214,7 +2214,7 @@ function Hr() {
|
|
|
2214
2214
|
return !L(u, n);
|
|
2215
2215
|
}
|
|
2216
2216
|
var r = 0;
|
|
2217
|
-
|
|
2217
|
+
a.STATE = {
|
|
2218
2218
|
BEGIN: r++,
|
|
2219
2219
|
// leading byte order mark or whitespace
|
|
2220
2220
|
BEGIN_WHITESPACE: r++,
|
|
@@ -2287,13 +2287,13 @@ function Hr() {
|
|
|
2287
2287
|
// <script> ...
|
|
2288
2288
|
SCRIPT_ENDING: r++
|
|
2289
2289
|
// <script> ... <
|
|
2290
|
-
},
|
|
2290
|
+
}, a.XML_ENTITIES = {
|
|
2291
2291
|
amp: "&",
|
|
2292
2292
|
gt: ">",
|
|
2293
2293
|
lt: "<",
|
|
2294
2294
|
quot: '"',
|
|
2295
2295
|
apos: "'"
|
|
2296
|
-
},
|
|
2296
|
+
}, a.ENTITIES = {
|
|
2297
2297
|
amp: "&",
|
|
2298
2298
|
gt: ">",
|
|
2299
2299
|
lt: "<",
|
|
@@ -2547,13 +2547,13 @@ function Hr() {
|
|
|
2547
2547
|
clubs: 9827,
|
|
2548
2548
|
hearts: 9829,
|
|
2549
2549
|
diams: 9830
|
|
2550
|
-
}, Object.keys(
|
|
2551
|
-
var n =
|
|
2552
|
-
|
|
2550
|
+
}, Object.keys(a.ENTITIES).forEach(function(u) {
|
|
2551
|
+
var n = a.ENTITIES[u], M = typeof n == "number" ? String.fromCharCode(n) : n;
|
|
2552
|
+
a.ENTITIES[u] = M;
|
|
2553
2553
|
});
|
|
2554
|
-
for (var N in
|
|
2555
|
-
|
|
2556
|
-
r =
|
|
2554
|
+
for (var N in a.STATE)
|
|
2555
|
+
a.STATE[a.STATE[N]] = N;
|
|
2556
|
+
r = a.STATE;
|
|
2557
2557
|
function A(u, n, M) {
|
|
2558
2558
|
u[n] && u[n](M);
|
|
2559
2559
|
}
|
|
@@ -2573,14 +2573,14 @@ Column: ` + u.column + `
|
|
|
2573
2573
|
Char: ` + u.c), n = new Error(n), u.error = n, A(u, "onerror", n), u;
|
|
2574
2574
|
}
|
|
2575
2575
|
function F(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, A(u, "onend"),
|
|
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, A(u, "onend"), p.call(u, u.strict, u.opt), u;
|
|
2577
2577
|
}
|
|
2578
2578
|
function S(u, n) {
|
|
2579
|
-
if (typeof u != "object" || !(u instanceof
|
|
2579
|
+
if (typeof u != "object" || !(u instanceof p))
|
|
2580
2580
|
throw new Error("bad call to strictFail");
|
|
2581
2581
|
u.strict && j(u, n);
|
|
2582
2582
|
}
|
|
2583
|
-
function
|
|
2583
|
+
function or(u) {
|
|
2584
2584
|
u.strict || (u.tagName = u.tagName[u.looseCase]());
|
|
2585
2585
|
var n = u.tags[u.tags.length - 1] || u, M = u.tag = { name: u.tagName, attributes: {} };
|
|
2586
2586
|
u.opt.xmlns && (M.ns = n.ns), u.attribList.length = 0, _(u, "onopentagstart", M);
|
|
@@ -2626,21 +2626,21 @@ Actual: ` + u.attribValue
|
|
|
2626
2626
|
var M = u.tag, w = jt(u.tagName);
|
|
2627
2627
|
M.prefix = w.prefix, M.local = w.local, M.uri = M.ns[w.prefix] || "", M.prefix && !M.uri && (S(u, "Unbound namespace prefix: " + JSON.stringify(u.tagName)), M.uri = w.prefix);
|
|
2628
2628
|
var R = u.tags[u.tags.length - 1] || u;
|
|
2629
|
-
M.ns && R.ns !== M.ns && Object.keys(M.ns).forEach(function(
|
|
2629
|
+
M.ns && R.ns !== M.ns && Object.keys(M.ns).forEach(function(ce) {
|
|
2630
2630
|
_(u, "onopennamespace", {
|
|
2631
|
-
prefix:
|
|
2632
|
-
uri: M.ns[
|
|
2631
|
+
prefix: ce,
|
|
2632
|
+
uri: M.ns[ce]
|
|
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 = jt($, !0), z = V.prefix,
|
|
2636
|
+
var k = u.attribList[q], $ = k[0], J = k[1], V = jt($, !0), z = V.prefix, ar = V.local, ae = z === "" ? "" : M.ns[z] || "", Ut = {
|
|
2637
2637
|
name: $,
|
|
2638
2638
|
value: J,
|
|
2639
2639
|
prefix: z,
|
|
2640
|
-
local:
|
|
2641
|
-
uri:
|
|
2640
|
+
local: ar,
|
|
2641
|
+
uri: ae
|
|
2642
2642
|
};
|
|
2643
|
-
z && z !== "xmlns" && !
|
|
2643
|
+
z && z !== "xmlns" && !ae && (S(u, "Unbound namespace prefix: " + JSON.stringify(z)), Ut.uri = z), u.tag.attributes[$] = Ut, _(u, "onattribute", Ut);
|
|
2644
2644
|
}
|
|
2645
2645
|
u.attribList.length = 0;
|
|
2646
2646
|
}
|
|
@@ -2686,18 +2686,18 @@ Actual: ` + u.attribValue
|
|
|
2686
2686
|
}
|
|
2687
2687
|
n === 0 && (u.closedRoot = !0), u.tagName = u.attribValue = u.attribName = "", u.attribList.length = 0, u.state = r.TEXT;
|
|
2688
2688
|
}
|
|
2689
|
-
function
|
|
2689
|
+
function sr(u) {
|
|
2690
2690
|
var n = u.entity, M = n.toLowerCase(), w, R = "";
|
|
2691
2691
|
return u.ENTITIES[n] ? u.ENTITIES[n] : u.ENTITIES[M] ? u.ENTITIES[M] : (n = M, n.charAt(0) === "#" && (n.charAt(1) === "x" ? (n = n.slice(2), w = parseInt(n, 16), R = w.toString(16)) : (n = n.slice(1), w = parseInt(n, 10), R = w.toString(10))), n = n.replace(/^0+/, ""), isNaN(w) || R.toLowerCase() !== n ? (S(u, "Invalid character entity"), "&" + u.entity + ";") : String.fromCodePoint(w));
|
|
2692
2692
|
}
|
|
2693
|
-
function oe(u, n) {
|
|
2694
|
-
n === "<" ? (u.state = r.OPEN_WAKA, u.startTagPosition = u.position) : a(n) || (S(u, "Non-whitespace before first tag."), u.textNode = n, u.state = r.TEXT);
|
|
2695
|
-
}
|
|
2696
2693
|
function se(u, n) {
|
|
2694
|
+
n === "<" ? (u.state = r.OPEN_WAKA, u.startTagPosition = u.position) : c(n) || (S(u, "Non-whitespace before first tag."), u.textNode = n, u.state = r.TEXT);
|
|
2695
|
+
}
|
|
2696
|
+
function ue(u, n) {
|
|
2697
2697
|
var M = "";
|
|
2698
2698
|
return n < u.length && (M = u.charAt(n)), M;
|
|
2699
2699
|
}
|
|
2700
|
-
function
|
|
2700
|
+
function ur(u) {
|
|
2701
2701
|
var n = this;
|
|
2702
2702
|
if (this.error)
|
|
2703
2703
|
throw this.error;
|
|
@@ -2709,25 +2709,25 @@ Actual: ` + u.attribValue
|
|
|
2709
2709
|
if (u === null)
|
|
2710
2710
|
return F(n);
|
|
2711
2711
|
typeof u == "object" && (u = u.toString());
|
|
2712
|
-
for (var M = 0, w = ""; w =
|
|
2712
|
+
for (var M = 0, w = ""; w = ue(u, M++), n.c = w, !!w; )
|
|
2713
2713
|
switch (n.trackPosition && (n.position++, w === `
|
|
2714
2714
|
` ? (n.line++, n.column = 0) : n.column++), n.state) {
|
|
2715
2715
|
case r.BEGIN:
|
|
2716
2716
|
if (n.state = r.BEGIN_WHITESPACE, w === "\uFEFF")
|
|
2717
2717
|
continue;
|
|
2718
|
-
|
|
2718
|
+
se(n, w);
|
|
2719
2719
|
continue;
|
|
2720
2720
|
case r.BEGIN_WHITESPACE:
|
|
2721
|
-
|
|
2721
|
+
se(n, w);
|
|
2722
2722
|
continue;
|
|
2723
2723
|
case r.TEXT:
|
|
2724
2724
|
if (n.sawRoot && !n.closedRoot) {
|
|
2725
2725
|
for (var R = M - 1; w && w !== "<" && w !== "&"; )
|
|
2726
|
-
w =
|
|
2726
|
+
w = ue(u, M++), w && n.trackPosition && (n.position++, w === `
|
|
2727
2727
|
` ? (n.line++, n.column = 0) : n.column++);
|
|
2728
2728
|
n.textNode += u.substring(R, M - 1);
|
|
2729
2729
|
}
|
|
2730
|
-
w === "<" && !(n.sawRoot && n.closedRoot && !n.strict) ? (n.state = r.OPEN_WAKA, n.startTagPosition = n.position) : (!
|
|
2730
|
+
w === "<" && !(n.sawRoot && n.closedRoot && !n.strict) ? (n.state = r.OPEN_WAKA, n.startTagPosition = n.position) : (!c(w) && (!n.sawRoot || n.closedRoot) && S(n, "Text data outside of root node."), w === "&" ? n.state = r.TEXT_ENTITY : n.textNode += w);
|
|
2731
2731
|
continue;
|
|
2732
2732
|
case r.SCRIPT:
|
|
2733
2733
|
w === "<" ? n.state = r.SCRIPT_ENDING : n.script += w;
|
|
@@ -2738,7 +2738,7 @@ Actual: ` + u.attribValue
|
|
|
2738
2738
|
case r.OPEN_WAKA:
|
|
2739
2739
|
if (w === "!")
|
|
2740
2740
|
n.state = r.SGML_DECL, n.sgmlDecl = "";
|
|
2741
|
-
else if (!
|
|
2741
|
+
else if (!c(w)) if (L(x, w))
|
|
2742
2742
|
n.state = r.OPEN_TAG, n.tagName = w;
|
|
2743
2743
|
else if (w === "/")
|
|
2744
2744
|
n.state = r.CLOSE_TAG, n.tagName = "";
|
|
@@ -2760,19 +2760,19 @@ Actual: ` + u.attribValue
|
|
|
2760
2760
|
n.doctype && n.doctype !== !0 && n.sgmlDecl ? (n.state = r.DOCTYPE_DTD, n.doctype += "<!" + n.sgmlDecl + w, n.sgmlDecl = "") : (n.sgmlDecl + w).toUpperCase() === y ? (_(n, "onopencdata"), n.state = r.CDATA, n.sgmlDecl = "", n.cdata = "") : (n.sgmlDecl + w).toUpperCase() === d ? (n.state = r.DOCTYPE, (n.doctype || n.sawRoot) && S(
|
|
2761
2761
|
n,
|
|
2762
2762
|
"Inappropriately located doctype declaration"
|
|
2763
|
-
), n.doctype = "", n.sgmlDecl = "") : w === ">" ? (_(n, "onsgmldeclaration", n.sgmlDecl), n.sgmlDecl = "", n.state = r.TEXT) : (
|
|
2763
|
+
), n.doctype = "", n.sgmlDecl = "") : w === ">" ? (_(n, "onsgmldeclaration", n.sgmlDecl), n.sgmlDecl = "", n.state = r.TEXT) : (f(w) && (n.state = r.SGML_DECL_QUOTED), n.sgmlDecl += w);
|
|
2764
2764
|
continue;
|
|
2765
2765
|
case r.SGML_DECL_QUOTED:
|
|
2766
2766
|
w === n.q && (n.state = r.SGML_DECL, n.q = ""), n.sgmlDecl += w;
|
|
2767
2767
|
continue;
|
|
2768
2768
|
case r.DOCTYPE:
|
|
2769
|
-
w === ">" ? (n.state = r.TEXT, _(n, "ondoctype", n.doctype), n.doctype = !0) : (n.doctype += w, w === "[" ? n.state = r.DOCTYPE_DTD :
|
|
2769
|
+
w === ">" ? (n.state = r.TEXT, _(n, "ondoctype", n.doctype), n.doctype = !0) : (n.doctype += w, w === "[" ? n.state = r.DOCTYPE_DTD : f(w) && (n.state = r.DOCTYPE_QUOTED, n.q = w));
|
|
2770
2770
|
continue;
|
|
2771
2771
|
case r.DOCTYPE_QUOTED:
|
|
2772
2772
|
n.doctype += w, w === n.q && (n.q = "", n.state = r.DOCTYPE);
|
|
2773
2773
|
continue;
|
|
2774
2774
|
case r.DOCTYPE_DTD:
|
|
2775
|
-
w === "]" ? (n.doctype += w, n.state = r.DOCTYPE) : w === "<" ? (n.state = r.OPEN_WAKA, n.startTagPosition = n.position) :
|
|
2775
|
+
w === "]" ? (n.doctype += w, n.state = r.DOCTYPE) : w === "<" ? (n.state = r.OPEN_WAKA, n.startTagPosition = n.position) : f(w) ? (n.doctype += w, n.state = r.DOCTYPE_DTD_QUOTED, n.q = w) : n.doctype += w;
|
|
2776
2776
|
continue;
|
|
2777
2777
|
case r.DOCTYPE_DTD_QUOTED:
|
|
2778
2778
|
n.doctype += w, w === n.q && (n.state = r.DOCTYPE_DTD, n.q = "");
|
|
@@ -2796,10 +2796,10 @@ Actual: ` + u.attribValue
|
|
|
2796
2796
|
w === ">" ? (n.cdata && _(n, "oncdata", n.cdata), _(n, "onclosecdata"), n.cdata = "", n.state = r.TEXT) : w === "]" ? n.cdata += "]" : (n.cdata += "]]" + w, n.state = r.CDATA);
|
|
2797
2797
|
continue;
|
|
2798
2798
|
case r.PROC_INST:
|
|
2799
|
-
w === "?" ? n.state = r.PROC_INST_ENDING :
|
|
2799
|
+
w === "?" ? n.state = r.PROC_INST_ENDING : c(w) ? n.state = r.PROC_INST_BODY : n.procInstName += w;
|
|
2800
2800
|
continue;
|
|
2801
2801
|
case r.PROC_INST_BODY:
|
|
2802
|
-
if (!n.procInstBody &&
|
|
2802
|
+
if (!n.procInstBody && c(w))
|
|
2803
2803
|
continue;
|
|
2804
2804
|
w === "?" ? n.state = r.PROC_INST_ENDING : n.procInstBody += w;
|
|
2805
2805
|
continue;
|
|
@@ -2810,24 +2810,24 @@ Actual: ` + u.attribValue
|
|
|
2810
2810
|
}), n.procInstName = n.procInstBody = "", n.state = r.TEXT) : (n.procInstBody += "?" + w, n.state = r.PROC_INST_BODY);
|
|
2811
2811
|
continue;
|
|
2812
2812
|
case r.OPEN_TAG:
|
|
2813
|
-
L(P, w) ? n.tagName += w : (
|
|
2813
|
+
L(P, w) ? n.tagName += w : (or(n), w === ">" ? Z(n) : w === "/" ? n.state = r.OPEN_TAG_SLASH : (c(w) || S(n, "Invalid character in tag name"), n.state = r.ATTRIB));
|
|
2814
2814
|
continue;
|
|
2815
2815
|
case r.OPEN_TAG_SLASH:
|
|
2816
2816
|
w === ">" ? (Z(n, !0), qt(n)) : (S(n, "Forward-slash in opening tag not followed by >"), n.state = r.ATTRIB);
|
|
2817
2817
|
continue;
|
|
2818
2818
|
case r.ATTRIB:
|
|
2819
|
-
if (
|
|
2819
|
+
if (c(w))
|
|
2820
2820
|
continue;
|
|
2821
2821
|
w === ">" ? Z(n) : w === "/" ? n.state = r.OPEN_TAG_SLASH : L(x, w) ? (n.attribName = w, n.attribValue = "", n.state = r.ATTRIB_NAME) : S(n, "Invalid attribute name");
|
|
2822
2822
|
continue;
|
|
2823
2823
|
case r.ATTRIB_NAME:
|
|
2824
|
-
w === "=" ? n.state = r.ATTRIB_VALUE : w === ">" ? (S(n, "Attribute without value"), n.attribValue = n.attribName, Bt(n), Z(n)) :
|
|
2824
|
+
w === "=" ? n.state = r.ATTRIB_VALUE : w === ">" ? (S(n, "Attribute without value"), n.attribValue = n.attribName, Bt(n), Z(n)) : c(w) ? n.state = r.ATTRIB_NAME_SAW_WHITE : L(P, w) ? n.attribName += w : S(n, "Invalid attribute name");
|
|
2825
2825
|
continue;
|
|
2826
2826
|
case r.ATTRIB_NAME_SAW_WHITE:
|
|
2827
2827
|
if (w === "=")
|
|
2828
2828
|
n.state = r.ATTRIB_VALUE;
|
|
2829
2829
|
else {
|
|
2830
|
-
if (
|
|
2830
|
+
if (c(w))
|
|
2831
2831
|
continue;
|
|
2832
2832
|
S(n, "Attribute without value"), n.tag.attributes[n.attribName] = "", n.attribValue = "", _(n, "onattribute", {
|
|
2833
2833
|
name: n.attribName,
|
|
@@ -2836,9 +2836,9 @@ Actual: ` + u.attribValue
|
|
|
2836
2836
|
}
|
|
2837
2837
|
continue;
|
|
2838
2838
|
case r.ATTRIB_VALUE:
|
|
2839
|
-
if (
|
|
2839
|
+
if (c(w))
|
|
2840
2840
|
continue;
|
|
2841
|
-
|
|
2841
|
+
f(w) ? (n.q = w, n.state = r.ATTRIB_VALUE_QUOTED) : (n.opt.unquotedAttributeValues || j(n, "Unquoted attribute value"), n.state = r.ATTRIB_VALUE_UNQUOTED, n.attribValue = w);
|
|
2842
2842
|
continue;
|
|
2843
2843
|
case r.ATTRIB_VALUE_QUOTED:
|
|
2844
2844
|
if (w !== n.q) {
|
|
@@ -2848,7 +2848,7 @@ Actual: ` + u.attribValue
|
|
|
2848
2848
|
Bt(n), n.q = "", n.state = r.ATTRIB_VALUE_CLOSED;
|
|
2849
2849
|
continue;
|
|
2850
2850
|
case r.ATTRIB_VALUE_CLOSED:
|
|
2851
|
-
|
|
2851
|
+
c(w) ? n.state = r.ATTRIB : w === ">" ? Z(n) : w === "/" ? n.state = r.OPEN_TAG_SLASH : L(x, w) ? (S(n, "No whitespace between attributes"), n.attribName = w, n.attribValue = "", n.state = r.ATTRIB_NAME) : S(n, "Invalid attribute name");
|
|
2852
2852
|
continue;
|
|
2853
2853
|
case r.ATTRIB_VALUE_UNQUOTED:
|
|
2854
2854
|
if (!T(w)) {
|
|
@@ -2859,15 +2859,15 @@ Actual: ` + u.attribValue
|
|
|
2859
2859
|
continue;
|
|
2860
2860
|
case r.CLOSE_TAG:
|
|
2861
2861
|
if (n.tagName)
|
|
2862
|
-
w === ">" ? qt(n) : L(P, w) ? n.tagName += w : n.script ? (n.script += "</" + n.tagName, n.tagName = "", n.state = r.SCRIPT) : (
|
|
2862
|
+
w === ">" ? qt(n) : L(P, w) ? n.tagName += w : n.script ? (n.script += "</" + n.tagName, n.tagName = "", n.state = r.SCRIPT) : (c(w) || S(n, "Invalid tagname in closing tag"), n.state = r.CLOSE_TAG_SAW_WHITE);
|
|
2863
2863
|
else {
|
|
2864
|
-
if (
|
|
2864
|
+
if (c(w))
|
|
2865
2865
|
continue;
|
|
2866
2866
|
v(x, w) ? n.script ? (n.script += "</" + w, n.state = r.SCRIPT) : S(n, "Invalid tagname in closing tag.") : n.tagName = w;
|
|
2867
2867
|
}
|
|
2868
2868
|
continue;
|
|
2869
2869
|
case r.CLOSE_TAG_SAW_WHITE:
|
|
2870
|
-
if (
|
|
2870
|
+
if (c(w))
|
|
2871
2871
|
continue;
|
|
2872
2872
|
w === ">" ? qt(n) : S(n, "Invalid characters in closing tag");
|
|
2873
2873
|
continue;
|
|
@@ -2887,8 +2887,8 @@ Actual: ` + u.attribValue
|
|
|
2887
2887
|
break;
|
|
2888
2888
|
}
|
|
2889
2889
|
if (w === ";") {
|
|
2890
|
-
var $ =
|
|
2891
|
-
n.opt.unparsedEntities && !Object.values(
|
|
2890
|
+
var $ = sr(n);
|
|
2891
|
+
n.opt.unparsedEntities && !Object.values(a.XML_ENTITIES).includes($) ? (n.entity = "", n.state = U, n.write($)) : (n[k] += $, n.entity = "", n.state = U);
|
|
2892
2892
|
} else L(n.entity.length ? s : E, w) ? n.entity += w : (S(n, "Invalid character in entity name"), n[k] += "&" + n.entity + w, n.entity = "", n.state = U);
|
|
2893
2893
|
continue;
|
|
2894
2894
|
default:
|
|
@@ -2922,58 +2922,58 @@ Actual: ` + u.attribValue
|
|
|
2922
2922
|
})(i);
|
|
2923
2923
|
}(Vt)), Vt;
|
|
2924
2924
|
}
|
|
2925
|
-
var nt = { exports: {} },
|
|
2926
|
-
function
|
|
2927
|
-
if (
|
|
2928
|
-
|
|
2929
|
-
var i = typeof Reflect == "object" ? Reflect : null,
|
|
2930
|
-
return Function.prototype.apply.call(
|
|
2925
|
+
var nt = { exports: {} }, Ge;
|
|
2926
|
+
function Jr() {
|
|
2927
|
+
if (Ge) return nt.exports;
|
|
2928
|
+
Ge = 1;
|
|
2929
|
+
var i = typeof Reflect == "object" ? Reflect : null, a = i && typeof i.apply == "function" ? i.apply : function(f, T, L) {
|
|
2930
|
+
return Function.prototype.apply.call(f, T, L);
|
|
2931
2931
|
}, D;
|
|
2932
|
-
i && typeof i.ownKeys == "function" ? D = i.ownKeys : Object.getOwnPropertySymbols ? D = function(
|
|
2933
|
-
return Object.getOwnPropertyNames(
|
|
2934
|
-
} : D = function(
|
|
2935
|
-
return Object.getOwnPropertyNames(
|
|
2932
|
+
i && typeof i.ownKeys == "function" ? D = i.ownKeys : Object.getOwnPropertySymbols ? D = function(f) {
|
|
2933
|
+
return Object.getOwnPropertyNames(f).concat(Object.getOwnPropertySymbols(f));
|
|
2934
|
+
} : D = function(f) {
|
|
2935
|
+
return Object.getOwnPropertyNames(f);
|
|
2936
2936
|
};
|
|
2937
|
-
function
|
|
2938
|
-
console && console.warn && console.warn(
|
|
2937
|
+
function p(c) {
|
|
2938
|
+
console && console.warn && console.warn(c);
|
|
2939
2939
|
}
|
|
2940
|
-
var h = Number.isNaN || function(
|
|
2941
|
-
return
|
|
2940
|
+
var h = Number.isNaN || function(f) {
|
|
2941
|
+
return f !== f;
|
|
2942
2942
|
};
|
|
2943
2943
|
function t() {
|
|
2944
2944
|
t.init.call(this);
|
|
2945
2945
|
}
|
|
2946
2946
|
nt.exports = t, nt.exports.once = P, t.EventEmitter = t, t.prototype._events = void 0, t.prototype._eventsCount = 0, t.prototype._maxListeners = void 0;
|
|
2947
2947
|
var e = 10;
|
|
2948
|
-
function o(
|
|
2949
|
-
if (typeof
|
|
2950
|
-
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof
|
|
2948
|
+
function o(c) {
|
|
2949
|
+
if (typeof c != "function")
|
|
2950
|
+
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof c);
|
|
2951
2951
|
}
|
|
2952
2952
|
Object.defineProperty(t, "defaultMaxListeners", {
|
|
2953
2953
|
enumerable: !0,
|
|
2954
2954
|
get: function() {
|
|
2955
2955
|
return e;
|
|
2956
2956
|
},
|
|
2957
|
-
set: function(
|
|
2958
|
-
if (typeof
|
|
2959
|
-
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' +
|
|
2960
|
-
e =
|
|
2957
|
+
set: function(c) {
|
|
2958
|
+
if (typeof c != "number" || c < 0 || h(c))
|
|
2959
|
+
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + c + ".");
|
|
2960
|
+
e = c;
|
|
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(f) {
|
|
2965
|
+
if (typeof f != "number" || f < 0 || h(f))
|
|
2966
|
+
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + f + ".");
|
|
2967
|
+
return this._maxListeners = f, this;
|
|
2968
2968
|
};
|
|
2969
|
-
function l(
|
|
2970
|
-
return
|
|
2969
|
+
function l(c) {
|
|
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(f) {
|
|
2975
2975
|
for (var T = [], L = 1; L < arguments.length; L++) T.push(arguments[L]);
|
|
2976
|
-
var v =
|
|
2976
|
+
var v = f === "error", r = this._events;
|
|
2977
2977
|
if (r !== void 0)
|
|
2978
2978
|
v = v && r.error === void 0;
|
|
2979
2979
|
else if (!v)
|
|
@@ -2985,56 +2985,56 @@ function Qr() {
|
|
|
2985
2985
|
var A = new Error("Unhandled error." + (N ? " (" + N.message + ")" : ""));
|
|
2986
2986
|
throw A.context = N, A;
|
|
2987
2987
|
}
|
|
2988
|
-
var _ = r[
|
|
2988
|
+
var _ = r[f];
|
|
2989
2989
|
if (_ === void 0)
|
|
2990
2990
|
return !1;
|
|
2991
2991
|
if (typeof _ == "function")
|
|
2992
|
-
|
|
2992
|
+
a(_, this, T);
|
|
2993
2993
|
else
|
|
2994
2994
|
for (var C = _.length, X = O(_, C), L = 0; L < C; ++L)
|
|
2995
|
-
|
|
2995
|
+
a(X[L], this, T);
|
|
2996
2996
|
return !0;
|
|
2997
2997
|
};
|
|
2998
|
-
function b(
|
|
2998
|
+
function b(c, f, T, L) {
|
|
2999
2999
|
var v, r, N;
|
|
3000
|
-
if (o(T), r =
|
|
3000
|
+
if (o(T), 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
|
+
f,
|
|
3003
3003
|
T.listener ? T.listener : T
|
|
3004
|
-
), r =
|
|
3005
|
-
N = r[
|
|
3006
|
-
else if (typeof N == "function" ? N = r[
|
|
3004
|
+
), r = c._events), N = r[f]), N === void 0)
|
|
3005
|
+
N = r[f] = T, ++c._eventsCount;
|
|
3006
|
+
else if (typeof N == "function" ? N = r[f] = L ? [T, N] : [N, T] : L ? N.unshift(T) : N.push(T), v = l(c), v > 0 && N.length > v && !N.warned) {
|
|
3007
3007
|
N.warned = !0;
|
|
3008
|
-
var A = new Error("Possible EventEmitter memory leak detected. " + N.length + " " + String(
|
|
3009
|
-
A.name = "MaxListenersExceededWarning", A.emitter =
|
|
3008
|
+
var A = new Error("Possible EventEmitter memory leak detected. " + N.length + " " + String(f) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
3009
|
+
A.name = "MaxListenersExceededWarning", A.emitter = c, A.type = f, A.count = N.length, p(A);
|
|
3010
3010
|
}
|
|
3011
|
-
return
|
|
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(f, T) {
|
|
3014
|
+
return b(this, f, T, !1);
|
|
3015
|
+
}, t.prototype.on = t.prototype.addListener, t.prototype.prependListener = function(f, T) {
|
|
3016
|
+
return b(this, f, T, !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(
|
|
3023
|
-
var L = { fired: !1, wrapFn: void 0, target:
|
|
3022
|
+
function y(c, f, T) {
|
|
3023
|
+
var L = { fired: !1, wrapFn: void 0, target: c, type: f, listener: T }, v = m.bind(L);
|
|
3024
3024
|
return v.listener = T, L.wrapFn = v, v;
|
|
3025
3025
|
}
|
|
3026
|
-
t.prototype.once = function(
|
|
3027
|
-
return o(T), this.on(
|
|
3028
|
-
}, t.prototype.prependOnceListener = function(
|
|
3029
|
-
return o(T), this.prependListener(
|
|
3030
|
-
}, t.prototype.removeListener = function(
|
|
3026
|
+
t.prototype.once = function(f, T) {
|
|
3027
|
+
return o(T), this.on(f, y(this, f, T)), this;
|
|
3028
|
+
}, t.prototype.prependOnceListener = function(f, T) {
|
|
3029
|
+
return o(T), this.prependListener(f, y(this, f, T)), this;
|
|
3030
|
+
}, t.prototype.removeListener = function(f, T) {
|
|
3031
3031
|
var L, v, r, N, A;
|
|
3032
3032
|
if (o(T), v = this._events, v === void 0)
|
|
3033
3033
|
return this;
|
|
3034
|
-
if (L = v[
|
|
3034
|
+
if (L = v[f], L === void 0)
|
|
3035
3035
|
return this;
|
|
3036
3036
|
if (L === T || L.listener === T)
|
|
3037
|
-
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete v[
|
|
3037
|
+
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete v[f], v.removeListener && this.emit("removeListener", f, L.listener || T));
|
|
3038
3038
|
else if (typeof L != "function") {
|
|
3039
3039
|
for (r = -1, N = L.length - 1; N >= 0; N--)
|
|
3040
3040
|
if (L[N] === T || L[N].listener === T) {
|
|
@@ -3043,46 +3043,46 @@ function Qr() {
|
|
|
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[f] = L[0]), v.removeListener !== void 0 && this.emit("removeListener", f, A || T);
|
|
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(f) {
|
|
3050
3050
|
var T, 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[f] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete L[f]), 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 (T = L[
|
|
3062
|
-
this.removeListener(
|
|
3061
|
+
if (T = L[f], typeof T == "function")
|
|
3062
|
+
this.removeListener(f, T);
|
|
3063
3063
|
else if (T !== void 0)
|
|
3064
3064
|
for (v = T.length - 1; v >= 0; v--)
|
|
3065
|
-
this.removeListener(
|
|
3065
|
+
this.removeListener(f, T[v]);
|
|
3066
3066
|
return this;
|
|
3067
3067
|
};
|
|
3068
|
-
function d(
|
|
3069
|
-
var L =
|
|
3068
|
+
function d(c, f, T) {
|
|
3069
|
+
var L = c._events;
|
|
3070
3070
|
if (L === void 0)
|
|
3071
3071
|
return [];
|
|
3072
|
-
var v = L[
|
|
3072
|
+
var v = L[f];
|
|
3073
3073
|
return v === void 0 ? [] : typeof v == "function" ? T ? [v.listener || v] : [v] : T ? 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(
|
|
3080
|
-
return typeof
|
|
3075
|
+
t.prototype.listeners = function(f) {
|
|
3076
|
+
return d(this, f, !0);
|
|
3077
|
+
}, t.prototype.rawListeners = function(f) {
|
|
3078
|
+
return d(this, f, !1);
|
|
3079
|
+
}, t.listenerCount = function(c, f) {
|
|
3080
|
+
return typeof c.listenerCount == "function" ? c.listenerCount(f) : g.call(c, f);
|
|
3081
3081
|
}, t.prototype.listenerCount = g;
|
|
3082
|
-
function g(
|
|
3083
|
-
var
|
|
3084
|
-
if (
|
|
3085
|
-
var T =
|
|
3082
|
+
function g(c) {
|
|
3083
|
+
var f = this._events;
|
|
3084
|
+
if (f !== void 0) {
|
|
3085
|
+
var T = f[c];
|
|
3086
3086
|
if (typeof T == "function")
|
|
3087
3087
|
return 1;
|
|
3088
3088
|
if (T !== void 0)
|
|
@@ -3093,77 +3093,77 @@ function Qr() {
|
|
|
3093
3093
|
t.prototype.eventNames = function() {
|
|
3094
3094
|
return this._eventsCount > 0 ? D(this._events) : [];
|
|
3095
3095
|
};
|
|
3096
|
-
function O(
|
|
3097
|
-
for (var T = new Array(
|
|
3098
|
-
T[L] =
|
|
3096
|
+
function O(c, f) {
|
|
3097
|
+
for (var T = new Array(f), L = 0; L < f; ++L)
|
|
3098
|
+
T[L] = c[L];
|
|
3099
3099
|
return T;
|
|
3100
3100
|
}
|
|
3101
|
-
function I(
|
|
3102
|
-
for (;
|
|
3103
|
-
|
|
3104
|
-
|
|
3101
|
+
function I(c, f) {
|
|
3102
|
+
for (; f + 1 < c.length; f++)
|
|
3103
|
+
c[f] = c[f + 1];
|
|
3104
|
+
c.pop();
|
|
3105
3105
|
}
|
|
3106
|
-
function x(
|
|
3107
|
-
for (var
|
|
3108
|
-
|
|
3109
|
-
return
|
|
3106
|
+
function x(c) {
|
|
3107
|
+
for (var f = new Array(c.length), T = 0; T < f.length; ++T)
|
|
3108
|
+
f[T] = c[T].listener || c[T];
|
|
3109
|
+
return f;
|
|
3110
3110
|
}
|
|
3111
|
-
function P(
|
|
3111
|
+
function P(c, f) {
|
|
3112
3112
|
return new Promise(function(T, L) {
|
|
3113
3113
|
function v(N) {
|
|
3114
|
-
|
|
3114
|
+
c.removeListener(f, r), L(N);
|
|
3115
3115
|
}
|
|
3116
3116
|
function r() {
|
|
3117
|
-
typeof
|
|
3117
|
+
typeof c.removeListener == "function" && c.removeListener("error", v), T([].slice.call(arguments));
|
|
3118
3118
|
}
|
|
3119
|
-
s(
|
|
3119
|
+
s(c, f, r, { once: !0 }), f !== "error" && E(c, v, { once: !0 });
|
|
3120
3120
|
});
|
|
3121
3121
|
}
|
|
3122
|
-
function E(
|
|
3123
|
-
typeof
|
|
3122
|
+
function E(c, f, T) {
|
|
3123
|
+
typeof c.on == "function" && s(c, "error", f, T);
|
|
3124
3124
|
}
|
|
3125
|
-
function s(
|
|
3126
|
-
if (typeof
|
|
3127
|
-
L.once ?
|
|
3128
|
-
else if (typeof
|
|
3129
|
-
|
|
3130
|
-
L.once &&
|
|
3125
|
+
function s(c, f, T, L) {
|
|
3126
|
+
if (typeof c.on == "function")
|
|
3127
|
+
L.once ? c.once(f, T) : c.on(f, T);
|
|
3128
|
+
else if (typeof c.addEventListener == "function")
|
|
3129
|
+
c.addEventListener(f, function v(r) {
|
|
3130
|
+
L.once && c.removeEventListener(f, v), T(r);
|
|
3131
3131
|
});
|
|
3132
3132
|
else
|
|
3133
|
-
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof
|
|
3133
|
+
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof c);
|
|
3134
3134
|
}
|
|
3135
3135
|
return nt.exports;
|
|
3136
3136
|
}
|
|
3137
|
-
var it = {},
|
|
3138
|
-
function
|
|
3139
|
-
return
|
|
3137
|
+
var it = {}, Ye;
|
|
3138
|
+
function tn() {
|
|
3139
|
+
return Ye || (Ye = 1, (function() {
|
|
3140
3140
|
it.stripBOM = function(i) {
|
|
3141
3141
|
return i[0] === "\uFEFF" ? i.substring(1) : i;
|
|
3142
3142
|
};
|
|
3143
3143
|
}).call(it)), it;
|
|
3144
3144
|
}
|
|
3145
|
-
var Q = {},
|
|
3146
|
-
function
|
|
3147
|
-
return
|
|
3145
|
+
var Q = {}, Ke;
|
|
3146
|
+
function ir() {
|
|
3147
|
+
return Ke || (Ke = 1, (function() {
|
|
3148
3148
|
var i;
|
|
3149
|
-
i = new RegExp(/(?!xmlns)^.*:/), Q.normalize = function(
|
|
3150
|
-
return
|
|
3151
|
-
}, Q.firstCharLowerCase = function(
|
|
3152
|
-
return
|
|
3153
|
-
}, Q.stripPrefix = function(
|
|
3154
|
-
return
|
|
3155
|
-
}, Q.parseNumbers = function(
|
|
3156
|
-
return isNaN(
|
|
3157
|
-
}, Q.parseBooleans = function(
|
|
3158
|
-
return /^(?:true|false)$/i.test(
|
|
3149
|
+
i = new RegExp(/(?!xmlns)^.*:/), Q.normalize = function(a) {
|
|
3150
|
+
return a.toLowerCase();
|
|
3151
|
+
}, Q.firstCharLowerCase = function(a) {
|
|
3152
|
+
return a.charAt(0).toLowerCase() + a.slice(1);
|
|
3153
|
+
}, Q.stripPrefix = function(a) {
|
|
3154
|
+
return a.replace(i, "");
|
|
3155
|
+
}, Q.parseNumbers = function(a) {
|
|
3156
|
+
return isNaN(a) || (a = a % 1 === 0 ? parseInt(a, 10) : parseFloat(a)), a;
|
|
3157
|
+
}, Q.parseBooleans = function(a) {
|
|
3158
|
+
return /^(?:true|false)$/i.test(a) && (a = a.toLowerCase() === "true"), a;
|
|
3159
3159
|
};
|
|
3160
3160
|
}).call(Q)), Q;
|
|
3161
3161
|
}
|
|
3162
|
-
var
|
|
3163
|
-
function
|
|
3164
|
-
return
|
|
3162
|
+
var ze;
|
|
3163
|
+
function en() {
|
|
3164
|
+
return ze || (ze = 1, function(i) {
|
|
3165
3165
|
(function() {
|
|
3166
|
-
var
|
|
3166
|
+
var a, D, p, h, t, e, o, l, b, m = function(g, O) {
|
|
3167
3167
|
return function() {
|
|
3168
3168
|
return g.apply(O, arguments);
|
|
3169
3169
|
};
|
|
@@ -3175,14 +3175,14 @@ function Jr() {
|
|
|
3175
3175
|
}
|
|
3176
3176
|
return x.prototype = O.prototype, g.prototype = new x(), g.__super__ = O.prototype, g;
|
|
3177
3177
|
}, d = {}.hasOwnProperty;
|
|
3178
|
-
l =
|
|
3178
|
+
l = Zr(), h = Jr(), a = tn(), o = ir(), b = kt.setImmediate, D = Wt().defaults, t = function(g) {
|
|
3179
3179
|
return typeof g == "object" && g != null && Object.keys(g).length === 0;
|
|
3180
3180
|
}, e = function(g, O, I) {
|
|
3181
3181
|
var x, P, E;
|
|
3182
3182
|
for (x = 0, P = g.length; x < P; x++)
|
|
3183
3183
|
E = g[x], O = E(O, I);
|
|
3184
3184
|
return O;
|
|
3185
|
-
},
|
|
3185
|
+
}, p = function(g, 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(g, O, x);
|
|
3188
3188
|
}, i.Parser = function(g) {
|
|
@@ -3208,7 +3208,7 @@ function Jr() {
|
|
|
3208
3208
|
return this.saxParser.errThrown = !0, this.emit(x);
|
|
3209
3209
|
}
|
|
3210
3210
|
}, O.prototype.assignOrPush = function(I, x, P) {
|
|
3211
|
-
return x in I ? (I[x] instanceof Array ||
|
|
3211
|
+
return x in I ? (I[x] instanceof Array || p(I, x, [I[x]]), I[x].push(P)) : this.options.explicitArray ? p(I, x, [P]) : p(I, x, P);
|
|
3212
3212
|
}, O.prototype.reset = function() {
|
|
3213
3213
|
var I, x, P, E;
|
|
3214
3214
|
return this.removeAllListeners(), this.saxParser = l.parser(this.options.strict, {
|
|
@@ -3216,9 +3216,9 @@ function Jr() {
|
|
|
3216
3216
|
normalize: !1,
|
|
3217
3217
|
xmlns: this.options.xmlns
|
|
3218
3218
|
}), this.saxParser.errThrown = !1, this.saxParser.onerror = /* @__PURE__ */ function(s) {
|
|
3219
|
-
return function(
|
|
3219
|
+
return function(c) {
|
|
3220
3220
|
if (s.saxParser.resume(), !s.saxParser.errThrown)
|
|
3221
|
-
return s.saxParser.errThrown = !0, s.emit("error",
|
|
3221
|
+
return s.saxParser.errThrown = !0, s.emit("error", c);
|
|
3222
3222
|
};
|
|
3223
3223
|
}(this), this.saxParser.onend = /* @__PURE__ */ function(s) {
|
|
3224
3224
|
return function() {
|
|
@@ -3226,22 +3226,22 @@ function Jr() {
|
|
|
3226
3226
|
return s.saxParser.ended = !0, s.emit("end", s.resultObject);
|
|
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
|
-
return function(
|
|
3230
|
-
var
|
|
3229
|
+
return function(c) {
|
|
3230
|
+
var f, T, L, v, r;
|
|
3231
3231
|
if (L = {}, L[x] = "", !s.options.ignoreAttrs) {
|
|
3232
|
-
r =
|
|
3233
|
-
for (
|
|
3234
|
-
d.call(r,
|
|
3232
|
+
r = c.attributes;
|
|
3233
|
+
for (f in r)
|
|
3234
|
+
d.call(r, f) && (!(I in L) && !s.options.mergeAttrs && (L[I] = {}), T = s.options.attrValueProcessors ? e(s.options.attrValueProcessors, c.attributes[f], f) : c.attributes[f], v = s.options.attrNameProcessors ? e(s.options.attrNameProcessors, f) : f, s.options.mergeAttrs ? s.assignOrPush(L, v, T) : p(L[I], v, T));
|
|
3235
3235
|
}
|
|
3236
|
-
return L["#name"] = s.options.tagNameProcessors ? e(s.options.tagNameProcessors,
|
|
3237
|
-
uri:
|
|
3238
|
-
local:
|
|
3236
|
+
return L["#name"] = s.options.tagNameProcessors ? e(s.options.tagNameProcessors, c.name) : c.name, s.options.xmlns && (L[s.options.xmlnskey] = {
|
|
3237
|
+
uri: c.uri,
|
|
3238
|
+
local: c.local
|
|
3239
3239
|
}), E.push(L);
|
|
3240
3240
|
};
|
|
3241
3241
|
}(this), this.saxParser.onclosetag = /* @__PURE__ */ function(s) {
|
|
3242
3242
|
return function() {
|
|
3243
|
-
var
|
|
3244
|
-
if (r = E.pop(), v = r["#name"], (!s.options.explicitChildren || !s.options.preserveChildrenOrder) && delete r["#name"], r.cdata === !0 && (
|
|
3243
|
+
var c, f, T, L, v, r, N, A, _, 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), _ = E[E.length - 1], r[x].match(/^\s*$/) && !c ? (f = 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 : f), s.options.validator != null && (C = "/" + function() {
|
|
3245
3245
|
var X, j, F;
|
|
3246
3246
|
for (F = [], X = 0, j = E.length; X < j; X++)
|
|
3247
3247
|
L = E[X], F.push(L["#name"]);
|
|
@@ -3259,25 +3259,25 @@ function Jr() {
|
|
|
3259
3259
|
else if (_) {
|
|
3260
3260
|
_[s.options.childkey] = _[s.options.childkey] || [], N = {};
|
|
3261
3261
|
for (T in r)
|
|
3262
|
-
d.call(r, T) &&
|
|
3262
|
+
d.call(r, T) && p(N, T, r[T]);
|
|
3263
3263
|
_[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(_, v, r) : (s.options.explicitRoot && (A = r, r = {},
|
|
3266
|
+
return E.length > 0 ? s.assignOrPush(_, v, r) : (s.options.explicitRoot && (A = r, r = {}, p(r, v, A)), s.resultObject = r, s.saxParser.ended = !0, s.emit("end", s.resultObject));
|
|
3267
3267
|
};
|
|
3268
3268
|
}(this), P = /* @__PURE__ */ function(s) {
|
|
3269
|
-
return function(
|
|
3270
|
-
var
|
|
3269
|
+
return function(c) {
|
|
3270
|
+
var f, T;
|
|
3271
3271
|
if (T = E[E.length - 1], T)
|
|
3272
|
-
return T[x] +=
|
|
3272
|
+
return T[x] += c, s.options.explicitChildren && s.options.preserveChildrenOrder && s.options.charsAsChildren && (s.options.includeWhiteChars || c.replace(/\\n/g, "").trim() !== "") && (T[s.options.childkey] = T[s.options.childkey] || [], f = {
|
|
3273
3273
|
"#name": "__text__"
|
|
3274
|
-
},
|
|
3274
|
+
}, f[x] = c, s.options.normalize && (f[x] = f[x].replace(/\s{2,}/g, " ").trim()), T[s.options.childkey].push(f)), T;
|
|
3275
3275
|
};
|
|
3276
3276
|
}(this), this.saxParser.ontext = P, this.saxParser.oncdata = /* @__PURE__ */ function(s) {
|
|
3277
|
-
return function(
|
|
3278
|
-
var
|
|
3279
|
-
if (
|
|
3280
|
-
return
|
|
3277
|
+
return function(c) {
|
|
3278
|
+
var f;
|
|
3279
|
+
if (f = P(c), f)
|
|
3280
|
+
return f.cdata = !0;
|
|
3281
3281
|
};
|
|
3282
3282
|
}();
|
|
3283
3283
|
}, O.prototype.parseString = function(I, x) {
|
|
@@ -3288,7 +3288,7 @@ function Jr() {
|
|
|
3288
3288
|
return this.reset(), x(E);
|
|
3289
3289
|
}));
|
|
3290
3290
|
try {
|
|
3291
|
-
return I = I.toString(), I.trim() === "" ? (this.emit("end", null), !0) : (I =
|
|
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
3293
|
if (P = E, this.saxParser.errThrown || this.saxParser.ended) {
|
|
3294
3294
|
if (this.saxParser.ended)
|
|
@@ -3298,8 +3298,8 @@ function Jr() {
|
|
|
3298
3298
|
}, O.prototype.parseStringPromise = function(I) {
|
|
3299
3299
|
return new Promise(/* @__PURE__ */ function(x) {
|
|
3300
3300
|
return function(P, E) {
|
|
3301
|
-
return x.parseString(I, function(s,
|
|
3302
|
-
return s ? E(s) : P(
|
|
3301
|
+
return x.parseString(I, function(s, c) {
|
|
3302
|
+
return s ? E(s) : P(c);
|
|
3303
3303
|
});
|
|
3304
3304
|
};
|
|
3305
3305
|
}(this));
|
|
@@ -3314,10 +3314,10 @@ function Jr() {
|
|
|
3314
3314
|
}).call(rt);
|
|
3315
3315
|
}(rt)), rt;
|
|
3316
3316
|
}
|
|
3317
|
-
var
|
|
3318
|
-
function
|
|
3319
|
-
return
|
|
3320
|
-
var i,
|
|
3317
|
+
var He;
|
|
3318
|
+
function rn() {
|
|
3319
|
+
return He || (He = 1, (function() {
|
|
3320
|
+
var i, a, D, p, h = 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 tn() {
|
|
|
3325
3325
|
}
|
|
3326
3326
|
return b.prototype = o.prototype, e.prototype = new b(), e.__super__ = o.prototype, e;
|
|
3327
3327
|
}, t = {}.hasOwnProperty;
|
|
3328
|
-
|
|
3328
|
+
a = Wt(), i = zr(), D = en(), p = ir(), G.defaults = a.defaults, G.processors = p, G.ValidationError = function(e) {
|
|
3329
3329
|
h(o, e);
|
|
3330
3330
|
function o(l) {
|
|
3331
3331
|
this.message = l;
|
|
@@ -3334,36 +3334,42 @@ function tn() {
|
|
|
3334
3334
|
}(Error), G.Builder = i.Builder, G.Parser = D.Parser, G.parseString = D.parseString, G.parseStringPromise = D.parseStringPromise;
|
|
3335
3335
|
}).call(G)), G;
|
|
3336
3336
|
}
|
|
3337
|
-
var
|
|
3338
|
-
const
|
|
3337
|
+
var nn = rn();
|
|
3338
|
+
const on = (i) => i !== null && typeof i == "object" && i.hasOwnProperty("rss") && typeof i.rss == "object" && i.rss !== null && i.rss.hasOwnProperty("channel") && Array.isArray(i.rss.channel), sn = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("title") && Array.isArray(i.title) && i.hasOwnProperty("description") && Array.isArray(i.description) && i.hasOwnProperty("link") && Array.isArray(i.link) && i.hasOwnProperty("image") && Array.isArray(i.image) && i.image.every(un) && i.hasOwnProperty("generator") && Array.isArray(i.generator) && i.hasOwnProperty("lastBuildDate") && Array.isArray(i.lastBuildDate) && i.hasOwnProperty("atom:link") && Array.isArray(i["atom:link"]) && i["atom:link"].every(an) && i.hasOwnProperty("copyright") && Array.isArray(i.copyright) && i.hasOwnProperty("language") && Array.isArray(i.language) && i.hasOwnProperty("webMaster") && Array.isArray(i.webMaster) && i.hasOwnProperty("itunes:owner") && Array.isArray(i["itunes:owner"]) && i["itunes:owner"].every(cn) && i.hasOwnProperty("itunes:author") && Array.isArray(i["itunes:author"]) && i.hasOwnProperty("googleplay:owner") && Array.isArray(i["googleplay:owner"]) && i.hasOwnProperty("googleplay:email") && Array.isArray(i["googleplay:email"]) && i.hasOwnProperty("googleplay:author") && Array.isArray(i["googleplay:author"]) && i.hasOwnProperty("item") && Array.isArray(i.item) && i.item.every(ln), un = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("url") && Array.isArray(i.url) && i.hasOwnProperty("title") && Array.isArray(i.title) && i.hasOwnProperty("link") && Array.isArray(i.link), an = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("$") && typeof i.$ == "object" && i.$ !== null && i.$.hasOwnProperty("href") && typeof i.$.href == "string" && i.$.hasOwnProperty("rel") && typeof i.$.rel == "string" && i.$.hasOwnProperty("type") && typeof i.$.type == "string", cn = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("itunes:email") && Array.isArray(i["itunes:email"]) && i.hasOwnProperty("itunes:name") && Array.isArray(i["itunes:name"]), ln = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("title") && Array.isArray(i.title) && i.hasOwnProperty("description") && Array.isArray(i.description) && i.hasOwnProperty("link") && Array.isArray(i.link) && i.hasOwnProperty("guid") && Array.isArray(i.guid) && i.guid.every(fn) && i.hasOwnProperty("dc:creator") && Array.isArray(i["dc:creator"]) && i.hasOwnProperty("pubDate") && Array.isArray(i.pubDate) && i.hasOwnProperty("enclosure") && Array.isArray(i.enclosure) && i.enclosure.every(pn) && i.hasOwnProperty("content:encoded") && Array.isArray(i["content:encoded"]), fn = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("_") && typeof i._ == "string" && i.hasOwnProperty("$") && typeof i.$ == "object" && i.$ !== null && i.$.hasOwnProperty("isPermaLink") && typeof i.$.isPermaLink == "string", pn = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("$") && typeof i.$ == "object" && i.$ !== null && i.$.hasOwnProperty("url") && typeof i.$.url == "string" && i.$.hasOwnProperty("length") && typeof i.$.length == "string" && i.$.hasOwnProperty("type") && typeof i.$.type == "string", hn = (i) => i && i.contents && i.status.http_code == 200, dn = "https://api.allorigins.win/get?url=", $t = typeof document < "u", yn = async (i) => {
|
|
3339
3339
|
try {
|
|
3340
|
-
const
|
|
3341
|
-
if (
|
|
3340
|
+
const a = $t ? `${dn}${encodeURIComponent(i)}` : i, D = await fetch(a);
|
|
3341
|
+
if (D.ok) return $t ? D.json() : D.text();
|
|
3342
3342
|
} catch {
|
|
3343
3343
|
throw new Error("Error occurred fetching Feed from Substack");
|
|
3344
3344
|
}
|
|
3345
|
-
},
|
|
3346
|
-
|
|
3347
|
-
},
|
|
3345
|
+
}, Qe = async (i = "", a) => {
|
|
3346
|
+
nn.parseString(i, a);
|
|
3347
|
+
}, mn = (i) => ({
|
|
3348
3348
|
title: i.title[0],
|
|
3349
3349
|
description: i.description[0],
|
|
3350
3350
|
link: i.link[0],
|
|
3351
3351
|
pubDate: i.pubDate[0],
|
|
3352
3352
|
content: i["content:encoded"][0]
|
|
3353
|
-
}),
|
|
3354
|
-
const
|
|
3355
|
-
if (!
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3353
|
+
}), gn = async (i, a) => {
|
|
3354
|
+
const D = await yn(i);
|
|
3355
|
+
if (!a) return D;
|
|
3356
|
+
if (!$t) {
|
|
3357
|
+
await Qe(D, a);
|
|
3358
|
+
return;
|
|
3359
|
+
}
|
|
3360
|
+
if (!hn(D))
|
|
3361
|
+
throw new Error("Error occurred fetching Feed from Substack");
|
|
3362
|
+
await Qe(D.contents, a);
|
|
3363
|
+
}, wn = (i, a) => {
|
|
3364
|
+
if (!on(i)) throw new Error("Feed is not in the correct format");
|
|
3359
3365
|
try {
|
|
3360
|
-
return i.rss.channel.filter(
|
|
3366
|
+
return i.rss.channel.filter(sn).filter((D) => D.link[0] === a);
|
|
3361
3367
|
} catch {
|
|
3362
|
-
throw new Error(`Error occurred fetching Feed by Link: ${
|
|
3368
|
+
throw new Error(`Error occurred fetching Feed by Link: ${a}`);
|
|
3363
3369
|
}
|
|
3364
|
-
},
|
|
3370
|
+
}, Tn = (i) => i[0].item.map(mn);
|
|
3365
3371
|
export {
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3372
|
+
wn as getFeedByLink,
|
|
3373
|
+
Tn as getPosts,
|
|
3374
|
+
gn as getSubstackFeed
|
|
3369
3375
|
};
|