form-imagining 0.0.92-beta4 → 0.0.92-beta6

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.
Files changed (89) hide show
  1. package/dist/App-DtMf3n_F.js +30 -0
  2. package/dist/Area-gYvfwS2L.js +4 -0
  3. package/dist/Bar-ODGClNe0.js +4 -0
  4. package/dist/ChartsArea-CQwwd2lJ.js +4 -0
  5. package/dist/ChartsBar-BKMAI52E.js +4 -0
  6. package/dist/ChartsPie-BBp_ag4Y.js +4 -0
  7. package/dist/CheckBoxModel-CAtOkaZl.js +4 -0
  8. package/dist/Col-BjOWCaAV.js +4 -0
  9. package/dist/Collapse-xi1XYSvh.js +4 -0
  10. package/dist/{CommonText copy-CKk09DIB.js → CommonText copy-B643btsR.js } +38 -38
  11. package/dist/{Demo copy-CubdSIKo.js → Demo copy-Bux2O9AZ.js } +2 -2
  12. package/dist/{Demo-DoJw6Kxw.js → Demo-CimZDSZD.js} +2 -2
  13. package/dist/{Demo-DkVz30H9.js → Demo-DD_E8Ai0.js} +33 -33
  14. package/dist/FView-lgPHPdpT.js +4 -0
  15. package/dist/FX-DITkqQ2E.js +4 -0
  16. package/dist/{Form-CsKlmwSd.js → Form-CE0VVIWD.js} +4 -4
  17. package/dist/{FormGridCopy-DD0tZow8.js → FormGridCopy-QMd-e6gZ.js} +36 -36
  18. package/dist/FormImagining-DMMX4UTU.js +9 -0
  19. package/dist/GenerateForm-CbTFj_A8.js +4 -0
  20. package/dist/GenerateReport-DTLeuaUN.js +4 -0
  21. package/dist/HelloWorld-BfnT0WhV.js +9 -0
  22. package/dist/Input-/345/210/240/351/231/{244-C6fJ-Tc5.js → 244-B-UBNSP7.js} +3 -3
  23. package/dist/Label-/345/210/240/351/231/{244-dTqFCfXK.js → 244-hylaZnyv.js} +5 -5
  24. package/dist/LabelModel-DPw6ImbD.js +4 -0
  25. package/dist/Login-BdZxDvKs.js +9 -0
  26. package/dist/Pie-KAdq-zq0.js +4 -0
  27. package/dist/PropertyIndex-B5sPOPGF.js +4 -0
  28. package/dist/RView-Dti2PztB.js +4 -0
  29. package/dist/SqlModule-Bs93rJS9.js +4 -0
  30. package/dist/{SvgIconCopy-BT7ntjzB.js → SvgIconCopy-CC9UpEw1.js} +7 -7
  31. package/dist/TableBtnModal-CP8poyU5.js +4 -0
  32. package/dist/TextModel-BxnsH9j1.js +9 -0
  33. package/dist/childForm-2suLJZtu.js +4 -0
  34. package/dist/{cssMode-jo0NhwDf.js → cssMode-BevUSJIs.js} +1 -1
  35. package/dist/form-imagining.js +9 -9
  36. package/dist/form-imagining.umd.cjs +294 -295
  37. package/dist/formTest-DdkaJBmv.js +19 -0
  38. package/dist/{freemarker2-Fnfdnkfh.js → freemarker2-RntfmZOW.js} +1 -1
  39. package/dist/{handlebars-Bx4_KQwu.js → handlebars-Cos4lZca.js} +1 -1
  40. package/dist/{html-CFRm4XEL.js → html-Uag4N1dQ.js} +1 -1
  41. package/dist/{htmlMode-Dxqn6jaD.js → htmlMode-BhOweWtW.js} +1 -1
  42. package/dist/index - /345/211/257/346/234/{254-dqPD2ASv.js" → 254-dGB_y2eB.js" } +38 -38
  43. package/dist/{index-DEvoU-iM.js → index-Bnry2ZnT.js} +5 -5
  44. package/dist/index-Bu9AKZLX.js +3658 -0
  45. package/dist/index-DhqC9JWs.js +11 -0
  46. package/dist/{index-jBZEirwC.js → index-Djxsz7aX.js} +20643 -19235
  47. package/dist/{javascript-Y02rG_nt.js → javascript-inEC7YCz.js} +1 -1
  48. package/dist/json/scope_type.json +6 -6
  49. package/dist/{jsonMode-CFhVzwTy.js → jsonMode-Buplw_74.js} +1 -1
  50. package/dist/{liquid-DLAO7uHR.js → liquid-CXCXl0KK.js} +1 -1
  51. package/dist/{mdx-Dyn2_O6a.js → mdx-C8oAZz3N.js} +1 -1
  52. package/dist/{python-DgxEwzX3.js → python-ISYPt2bG.js} +1 -1
  53. package/dist/{razor-BewTJaSe.js → razor-BoONAPbT.js} +1 -1
  54. package/dist/setting.json +3 -3
  55. package/dist/style.css +1 -1
  56. package/dist/{tableSelectDemo-DLpvpcEl.js → tableSelectDemo-l99YI8J9.js} +18 -18
  57. package/dist/{tableSelectDemo2-BFr-yfOb.js → tableSelectDemo2-OfOWLB-I.js} +6 -6
  58. package/dist/{tsMode-DzFy8JCn.js → tsMode-qM4H6_33.js} +7 -7
  59. package/dist/{typescript-Dj_oSxOW.js → typescript-CQq3LImM.js} +1 -1
  60. package/dist/{xml-DkbBETGq.js → xml-DSo44BnU.js} +1 -1
  61. package/dist/{yaml-ja_epl0n.js → yaml-BocXdDT1.js} +1 -1
  62. package/package.json +68 -68
  63. package/dist/App-D9SgyIHg.js +0 -32
  64. package/dist/Area-DHZeIGT0.js +0 -4
  65. package/dist/Bar-C94rw-BH.js +0 -4
  66. package/dist/ChartsArea-ZH5kpRfE.js +0 -4
  67. package/dist/ChartsBar-CPzCF_2s.js +0 -4
  68. package/dist/ChartsPie-DUb1fiG9.js +0 -4
  69. package/dist/CheckBoxModel-N9aBAGoV.js +0 -4
  70. package/dist/Col-Ksz7IORK.js +0 -4
  71. package/dist/Collapse-Brm7RGbc.js +0 -4
  72. package/dist/FView-CZKalnPv.js +0 -4
  73. package/dist/FX-C6CgdV8T.js +0 -4
  74. package/dist/FormImagining-CNU7k8Lg.js +0 -9
  75. package/dist/GenerateForm-Da0KQGvi.js +0 -4
  76. package/dist/GenerateReport-CrEu_AIM.js +0 -4
  77. package/dist/HelloWorld-Yv03AZwK.js +0 -9
  78. package/dist/LabelModel-DfV1K5Mb.js +0 -4
  79. package/dist/Login-Bqr02U9-.js +0 -9
  80. package/dist/Pie-HIuDPYoJ.js +0 -4
  81. package/dist/PropertyIndex-Ceb7ttJb.js +0 -4
  82. package/dist/RView-J6jBBnLX.js +0 -4
  83. package/dist/SqlModule-Dn36HdIj.js +0 -4
  84. package/dist/TableBtnModal-Dyzy6THf.js +0 -4
  85. package/dist/TextModel-C-tBbutJ.js +0 -9
  86. package/dist/childForm-DyROPkP7.js +0 -4
  87. package/dist/formTest-D1OjhM8p.js +0 -19
  88. package/dist/index-BVXyjg-q.js +0 -11
  89. package/dist/index-CVgQIdpz.js +0 -3323
@@ -1,3323 +0,0 @@
1
- import { defineComponent as wr, ref as Tr } from "vue";
2
- import { a6 as X, av as Qt, a8 as Dr } from "./index-jBZEirwC.js";
3
- var yt = {}, Te;
4
- function $t() {
5
- return Te || (Te = 1, (function() {
6
- yt.defaults = {
7
- "0.1": {
8
- explicitCharkey: !1,
9
- trim: !0,
10
- normalize: !0,
11
- normalizeTags: !1,
12
- attrkey: "@",
13
- charkey: "#",
14
- explicitArray: !1,
15
- ignoreAttrs: !1,
16
- mergeAttrs: !1,
17
- explicitRoot: !1,
18
- validator: null,
19
- xmlns: !1,
20
- explicitChildren: !1,
21
- childkey: "@@",
22
- charsAsChildren: !1,
23
- includeWhiteChars: !1,
24
- async: !1,
25
- strict: !0,
26
- attrNameProcessors: null,
27
- attrValueProcessors: null,
28
- tagNameProcessors: null,
29
- valueProcessors: null,
30
- emptyTag: ""
31
- },
32
- "0.2": {
33
- explicitCharkey: !1,
34
- trim: !1,
35
- normalize: !1,
36
- normalizeTags: !1,
37
- attrkey: "$",
38
- charkey: "_",
39
- explicitArray: !0,
40
- ignoreAttrs: !1,
41
- mergeAttrs: !1,
42
- explicitRoot: !0,
43
- validator: null,
44
- xmlns: !1,
45
- explicitChildren: !1,
46
- preserveChildrenOrder: !1,
47
- childkey: "$$",
48
- charsAsChildren: !1,
49
- includeWhiteChars: !1,
50
- async: !1,
51
- strict: !0,
52
- attrNameProcessors: null,
53
- attrValueProcessors: null,
54
- tagNameProcessors: null,
55
- valueProcessors: null,
56
- rootName: "root",
57
- xmldec: {
58
- version: "1.0",
59
- encoding: "UTF-8",
60
- standalone: !0
61
- },
62
- doctype: null,
63
- renderOpts: {
64
- pretty: !0,
65
- indent: " ",
66
- newline: `
67
- `
68
- },
69
- headless: !1,
70
- chunkSize: 1e4,
71
- emptyTag: "",
72
- cdata: !1
73
- }
74
- };
75
- }).call(X)), yt;
76
- }
77
- var mt = {}, J = {}, tt = {}, De;
78
- function et() {
79
- return De || (De = 1, (function() {
80
- var o, n, p, l, h, e, t, s = [].slice, c = {}.hasOwnProperty;
81
- o = function() {
82
- var N, w, d, y, T, E;
83
- if (E = arguments[0], T = 2 <= arguments.length ? s.call(arguments, 1) : [], h(Object.assign))
84
- Object.assign.apply(null, arguments);
85
- else
86
- for (N = 0, d = T.length; N < d; N++)
87
- if (y = T[N], y != null)
88
- for (w in y)
89
- c.call(y, w) && (E[w] = y[w]);
90
- return E;
91
- }, h = function(N) {
92
- return !!N && Object.prototype.toString.call(N) === "[object Function]";
93
- }, e = function(N) {
94
- var w;
95
- return !!N && ((w = typeof N) == "function" || w === "object");
96
- }, p = function(N) {
97
- return h(Array.isArray) ? Array.isArray(N) : Object.prototype.toString.call(N) === "[object Array]";
98
- }, l = function(N) {
99
- var w;
100
- if (p(N))
101
- return !N.length;
102
- for (w in N)
103
- if (c.call(N, w))
104
- return !1;
105
- return !0;
106
- }, t = function(N) {
107
- var w, d;
108
- return e(N) && (d = Object.getPrototypeOf(N)) && (w = d.constructor) && typeof w == "function" && w instanceof w && Function.prototype.toString.call(w) === Function.prototype.toString.call(Object);
109
- }, n = function(N) {
110
- return h(N.valueOf) ? N.valueOf() : N;
111
- }, tt.assign = o, tt.isFunction = h, tt.isObject = e, tt.isArray = p, tt.isEmpty = l, tt.isPlainObject = t, tt.getValue = n;
112
- }).call(X)), tt;
113
- }
114
- var gt = { exports: {} }, Ee;
115
- function ir() {
116
- return Ee || (Ee = 1, (function() {
117
- gt.exports = function() {
118
- function o() {
119
- }
120
- return o.prototype.hasFeature = function(n, p) {
121
- return !0;
122
- }, o.prototype.createDocumentType = function(n, p, l) {
123
- throw new Error("This DOM method is not implemented.");
124
- }, o.prototype.createDocument = function(n, p, l) {
125
- throw new Error("This DOM method is not implemented.");
126
- }, o.prototype.createHTMLDocument = function(n) {
127
- throw new Error("This DOM method is not implemented.");
128
- }, o.prototype.getFeature = function(n, p) {
129
- throw new Error("This DOM method is not implemented.");
130
- }, o;
131
- }();
132
- }).call(X)), gt.exports;
133
- }
134
- var wt = { exports: {} }, Tt = { exports: {} }, Dt = { exports: {} }, Ne;
135
- function Er() {
136
- return Ne || (Ne = 1, (function() {
137
- Dt.exports = function() {
138
- function o() {
139
- }
140
- return o.prototype.handleError = function(n) {
141
- throw new Error(n);
142
- }, o;
143
- }();
144
- }).call(X)), Dt.exports;
145
- }
146
- var Et = { exports: {} }, be;
147
- function Nr() {
148
- return be || (be = 1, (function() {
149
- Et.exports = function() {
150
- function o(n) {
151
- this.arr = n || [];
152
- }
153
- return Object.defineProperty(o.prototype, "length", {
154
- get: function() {
155
- return this.arr.length;
156
- }
157
- }), o.prototype.item = function(n) {
158
- return this.arr[n] || null;
159
- }, o.prototype.contains = function(n) {
160
- return this.arr.indexOf(n) !== -1;
161
- }, o;
162
- }();
163
- }).call(X)), Et.exports;
164
- }
165
- var Oe;
166
- function br() {
167
- return Oe || (Oe = 1, (function() {
168
- var o, n;
169
- o = Er(), n = Nr(), Tt.exports = function() {
170
- function p() {
171
- this.defaultParams = {
172
- "canonical-form": !1,
173
- "cdata-sections": !1,
174
- comments: !1,
175
- "datatype-normalization": !1,
176
- "element-content-whitespace": !0,
177
- entities: !0,
178
- "error-handler": new o(),
179
- infoset: !0,
180
- "validate-if-schema": !1,
181
- namespaces: !0,
182
- "namespace-declarations": !0,
183
- "normalize-characters": !1,
184
- "schema-location": "",
185
- "schema-type": "",
186
- "split-cdata-sections": !0,
187
- validate: !1,
188
- "well-formed": !0
189
- }, this.params = Object.create(this.defaultParams);
190
- }
191
- return Object.defineProperty(p.prototype, "parameterNames", {
192
- get: function() {
193
- return new n(Object.keys(this.defaultParams));
194
- }
195
- }), p.prototype.getParameter = function(l) {
196
- return this.params.hasOwnProperty(l) ? this.params[l] : null;
197
- }, p.prototype.canSetParameter = function(l, h) {
198
- return !0;
199
- }, p.prototype.setParameter = function(l, h) {
200
- return h != null ? this.params[l] = h : delete this.params[l];
201
- }, p;
202
- }();
203
- }).call(X)), Tt.exports;
204
- }
205
- var Nt = { exports: {} }, bt = { exports: {} }, Ot = { exports: {} }, Ie;
206
- function W() {
207
- return Ie || (Ie = 1, (function() {
208
- Ot.exports = {
209
- Element: 1,
210
- Attribute: 2,
211
- Text: 3,
212
- CData: 4,
213
- EntityReference: 5,
214
- EntityDeclaration: 6,
215
- ProcessingInstruction: 7,
216
- Comment: 8,
217
- Document: 9,
218
- DocType: 10,
219
- DocumentFragment: 11,
220
- NotationDeclaration: 12,
221
- Declaration: 201,
222
- Raw: 202,
223
- AttributeDeclaration: 203,
224
- ElementDeclaration: 204,
225
- Dummy: 205
226
- };
227
- }).call(X)), Ot.exports;
228
- }
229
- var It = { exports: {} }, xe;
230
- function or() {
231
- return xe || (xe = 1, (function() {
232
- var o;
233
- o = W(), Q(), It.exports = function() {
234
- function n(p, l, h) {
235
- if (this.parent = p, this.parent && (this.options = this.parent.options, this.stringify = this.parent.stringify), l == null)
236
- throw new Error("Missing attribute name. " + this.debugInfo(l));
237
- this.name = this.stringify.name(l), this.value = this.stringify.attValue(h), this.type = o.Attribute, this.isId = !1, this.schemaTypeInfo = null;
238
- }
239
- return Object.defineProperty(n.prototype, "nodeType", {
240
- get: function() {
241
- return this.type;
242
- }
243
- }), Object.defineProperty(n.prototype, "ownerElement", {
244
- get: function() {
245
- return this.parent;
246
- }
247
- }), Object.defineProperty(n.prototype, "textContent", {
248
- get: function() {
249
- return this.value;
250
- },
251
- set: function(p) {
252
- return this.value = p || "";
253
- }
254
- }), Object.defineProperty(n.prototype, "namespaceURI", {
255
- get: function() {
256
- return "";
257
- }
258
- }), Object.defineProperty(n.prototype, "prefix", {
259
- get: function() {
260
- return "";
261
- }
262
- }), Object.defineProperty(n.prototype, "localName", {
263
- get: function() {
264
- return this.name;
265
- }
266
- }), Object.defineProperty(n.prototype, "specified", {
267
- get: function() {
268
- return !0;
269
- }
270
- }), n.prototype.clone = function() {
271
- return Object.create(this);
272
- }, n.prototype.toString = function(p) {
273
- return this.options.writer.attribute(this, this.options.writer.filterOptions(p));
274
- }, n.prototype.debugInfo = function(p) {
275
- return p = p || this.name, p == null ? "parent: <" + this.parent.name + ">" : "attribute: {" + p + "}, parent: <" + this.parent.name + ">";
276
- }, n.prototype.isEqualNode = function(p) {
277
- return !(p.namespaceURI !== this.namespaceURI || p.prefix !== this.prefix || p.localName !== this.localName || p.value !== this.value);
278
- }, n;
279
- }();
280
- }).call(X)), It.exports;
281
- }
282
- var xt = { exports: {} }, ve;
283
- function Zt() {
284
- return ve || (ve = 1, (function() {
285
- xt.exports = function() {
286
- function o(n) {
287
- this.nodes = n;
288
- }
289
- return Object.defineProperty(o.prototype, "length", {
290
- get: function() {
291
- return Object.keys(this.nodes).length || 0;
292
- }
293
- }), o.prototype.clone = function() {
294
- return this.nodes = null;
295
- }, o.prototype.getNamedItem = function(n) {
296
- return this.nodes[n];
297
- }, o.prototype.setNamedItem = function(n) {
298
- var p;
299
- return p = this.nodes[n.nodeName], this.nodes[n.nodeName] = n, p || null;
300
- }, o.prototype.removeNamedItem = function(n) {
301
- var p;
302
- return p = this.nodes[n], delete this.nodes[n], p || null;
303
- }, o.prototype.item = function(n) {
304
- return this.nodes[Object.keys(this.nodes)[n]] || null;
305
- }, o.prototype.getNamedItemNS = function(n, p) {
306
- throw new Error("This DOM method is not implemented.");
307
- }, o.prototype.setNamedItemNS = function(n) {
308
- throw new Error("This DOM method is not implemented.");
309
- }, o.prototype.removeNamedItemNS = function(n, p) {
310
- throw new Error("This DOM method is not implemented.");
311
- }, o;
312
- }();
313
- }).call(X)), xt.exports;
314
- }
315
- var Le;
316
- function Jt() {
317
- return Le || (Le = 1, (function() {
318
- var o, n, p, l, h, e, t, s, c = function(w, d) {
319
- for (var y in d)
320
- N.call(d, y) && (w[y] = d[y]);
321
- function T() {
322
- this.constructor = w;
323
- }
324
- return T.prototype = d.prototype, w.prototype = new T(), w.__super__ = d.prototype, w;
325
- }, N = {}.hasOwnProperty;
326
- s = et(), t = s.isObject, e = s.isFunction, h = s.getValue, l = Q(), o = W(), n = or(), p = Zt(), bt.exports = function(w) {
327
- c(d, w);
328
- function d(y, T, E) {
329
- var x, v, _, D;
330
- if (d.__super__.constructor.call(this, y), T == null)
331
- throw new Error("Missing element name. " + this.debugInfo());
332
- if (this.name = this.stringify.name(T), this.type = o.Element, this.attribs = {}, this.schemaTypeInfo = null, E != null && this.attribute(E), y.type === o.Document && (this.isRoot = !0, this.documentObject = y, y.rootObject = this, y.children)) {
333
- for (D = y.children, v = 0, _ = D.length; v < _; v++)
334
- if (x = D[v], x.type === o.DocType) {
335
- x.name = this.name;
336
- break;
337
- }
338
- }
339
- }
340
- return Object.defineProperty(d.prototype, "tagName", {
341
- get: function() {
342
- return this.name;
343
- }
344
- }), Object.defineProperty(d.prototype, "namespaceURI", {
345
- get: function() {
346
- return "";
347
- }
348
- }), Object.defineProperty(d.prototype, "prefix", {
349
- get: function() {
350
- return "";
351
- }
352
- }), Object.defineProperty(d.prototype, "localName", {
353
- get: function() {
354
- return this.name;
355
- }
356
- }), Object.defineProperty(d.prototype, "id", {
357
- get: function() {
358
- throw new Error("This DOM method is not implemented." + this.debugInfo());
359
- }
360
- }), Object.defineProperty(d.prototype, "className", {
361
- get: function() {
362
- throw new Error("This DOM method is not implemented." + this.debugInfo());
363
- }
364
- }), Object.defineProperty(d.prototype, "classList", {
365
- get: function() {
366
- throw new Error("This DOM method is not implemented." + this.debugInfo());
367
- }
368
- }), Object.defineProperty(d.prototype, "attributes", {
369
- get: function() {
370
- return (!this.attributeMap || !this.attributeMap.nodes) && (this.attributeMap = new p(this.attribs)), this.attributeMap;
371
- }
372
- }), d.prototype.clone = function() {
373
- var y, T, E, x;
374
- E = Object.create(this), E.isRoot && (E.documentObject = null), E.attribs = {}, x = this.attribs;
375
- for (T in x)
376
- N.call(x, T) && (y = x[T], E.attribs[T] = y.clone());
377
- return E.children = [], this.children.forEach(function(v) {
378
- var _;
379
- return _ = v.clone(), _.parent = E, E.children.push(_);
380
- }), E;
381
- }, d.prototype.attribute = function(y, T) {
382
- var E, x;
383
- if (y != null && (y = h(y)), t(y))
384
- for (E in y)
385
- N.call(y, E) && (x = y[E], this.attribute(E, x));
386
- else
387
- e(T) && (T = T.apply()), this.options.keepNullAttributes && T == null ? this.attribs[y] = new n(this, y, "") : T != null && (this.attribs[y] = new n(this, y, T));
388
- return this;
389
- }, d.prototype.removeAttribute = function(y) {
390
- var T, E, x;
391
- if (y == null)
392
- throw new Error("Missing attribute name. " + this.debugInfo());
393
- if (y = h(y), Array.isArray(y))
394
- for (E = 0, x = y.length; E < x; E++)
395
- T = y[E], delete this.attribs[T];
396
- else
397
- delete this.attribs[y];
398
- return this;
399
- }, d.prototype.toString = function(y) {
400
- return this.options.writer.element(this, this.options.writer.filterOptions(y));
401
- }, d.prototype.att = function(y, T) {
402
- return this.attribute(y, T);
403
- }, d.prototype.a = function(y, T) {
404
- return this.attribute(y, T);
405
- }, d.prototype.getAttribute = function(y) {
406
- return this.attribs.hasOwnProperty(y) ? this.attribs[y].value : null;
407
- }, d.prototype.setAttribute = function(y, T) {
408
- throw new Error("This DOM method is not implemented." + this.debugInfo());
409
- }, d.prototype.getAttributeNode = function(y) {
410
- return this.attribs.hasOwnProperty(y) ? this.attribs[y] : null;
411
- }, d.prototype.setAttributeNode = function(y) {
412
- throw new Error("This DOM method is not implemented." + this.debugInfo());
413
- }, d.prototype.removeAttributeNode = function(y) {
414
- throw new Error("This DOM method is not implemented." + this.debugInfo());
415
- }, d.prototype.getElementsByTagName = function(y) {
416
- throw new Error("This DOM method is not implemented." + this.debugInfo());
417
- }, d.prototype.getAttributeNS = function(y, T) {
418
- throw new Error("This DOM method is not implemented." + this.debugInfo());
419
- }, d.prototype.setAttributeNS = function(y, T, E) {
420
- throw new Error("This DOM method is not implemented." + this.debugInfo());
421
- }, d.prototype.removeAttributeNS = function(y, T) {
422
- throw new Error("This DOM method is not implemented." + this.debugInfo());
423
- }, d.prototype.getAttributeNodeNS = function(y, T) {
424
- throw new Error("This DOM method is not implemented." + this.debugInfo());
425
- }, d.prototype.setAttributeNodeNS = function(y) {
426
- throw new Error("This DOM method is not implemented." + this.debugInfo());
427
- }, d.prototype.getElementsByTagNameNS = function(y, T) {
428
- throw new Error("This DOM method is not implemented." + this.debugInfo());
429
- }, d.prototype.hasAttribute = function(y) {
430
- return this.attribs.hasOwnProperty(y);
431
- }, d.prototype.hasAttributeNS = function(y, T) {
432
- throw new Error("This DOM method is not implemented." + this.debugInfo());
433
- }, d.prototype.setIdAttribute = function(y, T) {
434
- return this.attribs.hasOwnProperty(y) ? this.attribs[y].isId : T;
435
- }, d.prototype.setIdAttributeNS = function(y, T, E) {
436
- throw new Error("This DOM method is not implemented." + this.debugInfo());
437
- }, d.prototype.setIdAttributeNode = function(y, T) {
438
- throw new Error("This DOM method is not implemented." + this.debugInfo());
439
- }, d.prototype.getElementsByTagName = function(y) {
440
- throw new Error("This DOM method is not implemented." + this.debugInfo());
441
- }, d.prototype.getElementsByTagNameNS = function(y, T) {
442
- throw new Error("This DOM method is not implemented." + this.debugInfo());
443
- }, d.prototype.getElementsByClassName = function(y) {
444
- throw new Error("This DOM method is not implemented." + this.debugInfo());
445
- }, d.prototype.isEqualNode = function(y) {
446
- var T, E, x;
447
- if (!d.__super__.isEqualNode.apply(this, arguments).isEqualNode(y) || y.namespaceURI !== this.namespaceURI || y.prefix !== this.prefix || y.localName !== this.localName || y.attribs.length !== this.attribs.length)
448
- return !1;
449
- for (T = E = 0, x = this.attribs.length - 1; 0 <= x ? E <= x : E >= x; T = 0 <= x ? ++E : --E)
450
- if (!this.attribs[T].isEqualNode(y.attribs[T]))
451
- return !1;
452
- return !0;
453
- }, d;
454
- }(l);
455
- }).call(X)), bt.exports;
456
- }
457
- var vt = { exports: {} }, Lt = { exports: {} }, Ce;
458
- function ut() {
459
- return Ce || (Ce = 1, (function() {
460
- var o, n = function(l, h) {
461
- for (var e in h)
462
- p.call(h, e) && (l[e] = h[e]);
463
- function t() {
464
- this.constructor = l;
465
- }
466
- return t.prototype = h.prototype, l.prototype = new t(), l.__super__ = h.prototype, l;
467
- }, p = {}.hasOwnProperty;
468
- o = Q(), Lt.exports = function(l) {
469
- n(h, l);
470
- function h(e) {
471
- h.__super__.constructor.call(this, e), this.value = "";
472
- }
473
- return Object.defineProperty(h.prototype, "data", {
474
- get: function() {
475
- return this.value;
476
- },
477
- set: function(e) {
478
- return this.value = e || "";
479
- }
480
- }), Object.defineProperty(h.prototype, "length", {
481
- get: function() {
482
- return this.value.length;
483
- }
484
- }), Object.defineProperty(h.prototype, "textContent", {
485
- get: function() {
486
- return this.value;
487
- },
488
- set: function(e) {
489
- return this.value = e || "";
490
- }
491
- }), h.prototype.clone = function() {
492
- return Object.create(this);
493
- }, h.prototype.substringData = function(e, t) {
494
- throw new Error("This DOM method is not implemented." + this.debugInfo());
495
- }, h.prototype.appendData = function(e) {
496
- throw new Error("This DOM method is not implemented." + this.debugInfo());
497
- }, h.prototype.insertData = function(e, t) {
498
- throw new Error("This DOM method is not implemented." + this.debugInfo());
499
- }, h.prototype.deleteData = function(e, t) {
500
- throw new Error("This DOM method is not implemented." + this.debugInfo());
501
- }, h.prototype.replaceData = function(e, t, s) {
502
- throw new Error("This DOM method is not implemented." + this.debugInfo());
503
- }, h.prototype.isEqualNode = function(e) {
504
- return !(!h.__super__.isEqualNode.apply(this, arguments).isEqualNode(e) || e.data !== this.data);
505
- }, h;
506
- }(o);
507
- }).call(X)), Lt.exports;
508
- }
509
- var Ae;
510
- function te() {
511
- return Ae || (Ae = 1, (function() {
512
- var o, n, p = function(h, e) {
513
- for (var t in e)
514
- l.call(e, t) && (h[t] = e[t]);
515
- function s() {
516
- this.constructor = h;
517
- }
518
- return s.prototype = e.prototype, h.prototype = new s(), h.__super__ = e.prototype, h;
519
- }, l = {}.hasOwnProperty;
520
- o = W(), n = ut(), vt.exports = function(h) {
521
- p(e, h);
522
- function e(t, s) {
523
- if (e.__super__.constructor.call(this, t), s == null)
524
- throw new Error("Missing CDATA text. " + this.debugInfo());
525
- this.name = "#cdata-section", this.type = o.CData, this.value = this.stringify.cdata(s);
526
- }
527
- return e.prototype.clone = function() {
528
- return Object.create(this);
529
- }, e.prototype.toString = function(t) {
530
- return this.options.writer.cdata(this, this.options.writer.filterOptions(t));
531
- }, e;
532
- }(n);
533
- }).call(X)), vt.exports;
534
- }
535
- var Ct = { exports: {} }, _e;
536
- function ee() {
537
- return _e || (_e = 1, (function() {
538
- var o, n, p = function(h, e) {
539
- for (var t in e)
540
- l.call(e, t) && (h[t] = e[t]);
541
- function s() {
542
- this.constructor = h;
543
- }
544
- return s.prototype = e.prototype, h.prototype = new s(), h.__super__ = e.prototype, h;
545
- }, l = {}.hasOwnProperty;
546
- o = W(), n = ut(), Ct.exports = function(h) {
547
- p(e, h);
548
- function e(t, s) {
549
- if (e.__super__.constructor.call(this, t), s == null)
550
- throw new Error("Missing comment text. " + this.debugInfo());
551
- this.name = "#comment", this.type = o.Comment, this.value = this.stringify.comment(s);
552
- }
553
- return e.prototype.clone = function() {
554
- return Object.create(this);
555
- }, e.prototype.toString = function(t) {
556
- return this.options.writer.comment(this, this.options.writer.filterOptions(t));
557
- }, e;
558
- }(n);
559
- }).call(X)), Ct.exports;
560
- }
561
- var At = { exports: {} }, Me;
562
- function re() {
563
- return Me || (Me = 1, (function() {
564
- var o, n, p, l = function(e, t) {
565
- for (var s in t)
566
- h.call(t, s) && (e[s] = t[s]);
567
- function c() {
568
- this.constructor = e;
569
- }
570
- return c.prototype = t.prototype, e.prototype = new c(), e.__super__ = t.prototype, e;
571
- }, h = {}.hasOwnProperty;
572
- p = et().isObject, n = Q(), o = W(), At.exports = function(e) {
573
- l(t, e);
574
- function t(s, c, N, w) {
575
- var d;
576
- t.__super__.constructor.call(this, s), p(c) && (d = c, c = d.version, N = d.encoding, w = d.standalone), c || (c = "1.0"), this.type = o.Declaration, this.version = this.stringify.xmlVersion(c), N != null && (this.encoding = this.stringify.xmlEncoding(N)), w != null && (this.standalone = this.stringify.xmlStandalone(w));
577
- }
578
- return t.prototype.toString = function(s) {
579
- return this.options.writer.declaration(this, this.options.writer.filterOptions(s));
580
- }, t;
581
- }(n);
582
- }).call(X)), At.exports;
583
- }
584
- var _t = { exports: {} }, Mt = { exports: {} }, Pe;
585
- function ne() {
586
- return Pe || (Pe = 1, (function() {
587
- var o, n, p = function(h, e) {
588
- for (var t in e)
589
- l.call(e, t) && (h[t] = e[t]);
590
- function s() {
591
- this.constructor = h;
592
- }
593
- return s.prototype = e.prototype, h.prototype = new s(), h.__super__ = e.prototype, h;
594
- }, l = {}.hasOwnProperty;
595
- n = Q(), o = W(), Mt.exports = function(h) {
596
- p(e, h);
597
- function e(t, s, c, N, w, d) {
598
- if (e.__super__.constructor.call(this, t), s == null)
599
- throw new Error("Missing DTD element name. " + this.debugInfo());
600
- if (c == null)
601
- throw new Error("Missing DTD attribute name. " + this.debugInfo(s));
602
- if (!N)
603
- throw new Error("Missing DTD attribute type. " + this.debugInfo(s));
604
- if (!w)
605
- throw new Error("Missing DTD attribute default. " + this.debugInfo(s));
606
- if (w.indexOf("#") !== 0 && (w = "#" + w), !w.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))
607
- throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. " + this.debugInfo(s));
608
- if (d && !w.match(/^(#FIXED|#DEFAULT)$/))
609
- throw new Error("Default value only applies to #FIXED or #DEFAULT. " + this.debugInfo(s));
610
- this.elementName = this.stringify.name(s), this.type = o.AttributeDeclaration, this.attributeName = this.stringify.name(c), this.attributeType = this.stringify.dtdAttType(N), d && (this.defaultValue = this.stringify.dtdAttDefault(d)), this.defaultValueType = w;
611
- }
612
- return e.prototype.toString = function(t) {
613
- return this.options.writer.dtdAttList(this, this.options.writer.filterOptions(t));
614
- }, e;
615
- }(n);
616
- }).call(X)), Mt.exports;
617
- }
618
- var Pt = { exports: {} }, Fe;
619
- function ie() {
620
- return Fe || (Fe = 1, (function() {
621
- var o, n, p, l = function(e, t) {
622
- for (var s in t)
623
- h.call(t, s) && (e[s] = t[s]);
624
- function c() {
625
- this.constructor = e;
626
- }
627
- return c.prototype = t.prototype, e.prototype = new c(), e.__super__ = t.prototype, e;
628
- }, h = {}.hasOwnProperty;
629
- p = et().isObject, n = Q(), o = W(), Pt.exports = function(e) {
630
- l(t, e);
631
- function t(s, c, N, w) {
632
- if (t.__super__.constructor.call(this, s), N == null)
633
- throw new Error("Missing DTD entity name. " + this.debugInfo(N));
634
- if (w == null)
635
- throw new Error("Missing DTD entity value. " + this.debugInfo(N));
636
- if (this.pe = !!c, this.name = this.stringify.name(N), this.type = o.EntityDeclaration, !p(w))
637
- this.value = this.stringify.dtdEntityValue(w), this.internal = !0;
638
- else {
639
- if (!w.pubID && !w.sysID)
640
- throw new Error("Public and/or system identifiers are required for an external entity. " + this.debugInfo(N));
641
- if (w.pubID && !w.sysID)
642
- throw new Error("System identifier is required for a public external entity. " + this.debugInfo(N));
643
- if (this.internal = !1, w.pubID != null && (this.pubID = this.stringify.dtdPubID(w.pubID)), w.sysID != null && (this.sysID = this.stringify.dtdSysID(w.sysID)), w.nData != null && (this.nData = this.stringify.dtdNData(w.nData)), this.pe && this.nData)
644
- throw new Error("Notation declaration is not allowed in a parameter entity. " + this.debugInfo(N));
645
- }
646
- }
647
- return Object.defineProperty(t.prototype, "publicId", {
648
- get: function() {
649
- return this.pubID;
650
- }
651
- }), Object.defineProperty(t.prototype, "systemId", {
652
- get: function() {
653
- return this.sysID;
654
- }
655
- }), Object.defineProperty(t.prototype, "notationName", {
656
- get: function() {
657
- return this.nData || null;
658
- }
659
- }), Object.defineProperty(t.prototype, "inputEncoding", {
660
- get: function() {
661
- return null;
662
- }
663
- }), Object.defineProperty(t.prototype, "xmlEncoding", {
664
- get: function() {
665
- return null;
666
- }
667
- }), Object.defineProperty(t.prototype, "xmlVersion", {
668
- get: function() {
669
- return null;
670
- }
671
- }), t.prototype.toString = function(s) {
672
- return this.options.writer.dtdEntity(this, this.options.writer.filterOptions(s));
673
- }, t;
674
- }(n);
675
- }).call(X)), Pt.exports;
676
- }
677
- var Ft = { exports: {} }, Se;
678
- function oe() {
679
- return Se || (Se = 1, (function() {
680
- var o, n, p = function(h, e) {
681
- for (var t in e)
682
- l.call(e, t) && (h[t] = e[t]);
683
- function s() {
684
- this.constructor = h;
685
- }
686
- return s.prototype = e.prototype, h.prototype = new s(), h.__super__ = e.prototype, h;
687
- }, l = {}.hasOwnProperty;
688
- n = Q(), o = W(), Ft.exports = function(h) {
689
- p(e, h);
690
- function e(t, s, c) {
691
- if (e.__super__.constructor.call(this, t), s == null)
692
- throw new Error("Missing DTD element name. " + this.debugInfo());
693
- c || (c = "(#PCDATA)"), Array.isArray(c) && (c = "(" + c.join(",") + ")"), this.name = this.stringify.name(s), this.type = o.ElementDeclaration, this.value = this.stringify.dtdElementValue(c);
694
- }
695
- return e.prototype.toString = function(t) {
696
- return this.options.writer.dtdElement(this, this.options.writer.filterOptions(t));
697
- }, e;
698
- }(n);
699
- }).call(X)), Ft.exports;
700
- }
701
- var St = { exports: {} }, Xe;
702
- function se() {
703
- return Xe || (Xe = 1, (function() {
704
- var o, n, p = function(h, e) {
705
- for (var t in e)
706
- l.call(e, t) && (h[t] = e[t]);
707
- function s() {
708
- this.constructor = h;
709
- }
710
- return s.prototype = e.prototype, h.prototype = new s(), h.__super__ = e.prototype, h;
711
- }, l = {}.hasOwnProperty;
712
- n = Q(), o = W(), St.exports = function(h) {
713
- p(e, h);
714
- function e(t, s, c) {
715
- if (e.__super__.constructor.call(this, t), s == null)
716
- throw new Error("Missing DTD notation name. " + this.debugInfo(s));
717
- if (!c.pubID && !c.sysID)
718
- throw new Error("Public or system identifiers are required for an external entity. " + this.debugInfo(s));
719
- this.name = this.stringify.name(s), this.type = o.NotationDeclaration, c.pubID != null && (this.pubID = this.stringify.dtdPubID(c.pubID)), c.sysID != null && (this.sysID = this.stringify.dtdSysID(c.sysID));
720
- }
721
- return Object.defineProperty(e.prototype, "publicId", {
722
- get: function() {
723
- return this.pubID;
724
- }
725
- }), Object.defineProperty(e.prototype, "systemId", {
726
- get: function() {
727
- return this.sysID;
728
- }
729
- }), e.prototype.toString = function(t) {
730
- return this.options.writer.dtdNotation(this, this.options.writer.filterOptions(t));
731
- }, e;
732
- }(n);
733
- }).call(X)), St.exports;
734
- }
735
- var Re;
736
- function ae() {
737
- return Re || (Re = 1, (function() {
738
- var o, n, p, l, h, e, t, s, c = function(w, d) {
739
- for (var y in d)
740
- N.call(d, y) && (w[y] = d[y]);
741
- function T() {
742
- this.constructor = w;
743
- }
744
- return T.prototype = d.prototype, w.prototype = new T(), w.__super__ = d.prototype, w;
745
- }, N = {}.hasOwnProperty;
746
- s = et().isObject, t = Q(), o = W(), n = ne(), l = ie(), p = oe(), h = se(), e = Zt(), _t.exports = function(w) {
747
- c(d, w);
748
- function d(y, T, E) {
749
- var x, v, _, D, a, g;
750
- if (d.__super__.constructor.call(this, y), this.type = o.DocType, y.children) {
751
- for (D = y.children, v = 0, _ = D.length; v < _; v++)
752
- if (x = D[v], x.type === o.Element) {
753
- this.name = x.name;
754
- break;
755
- }
756
- }
757
- this.documentObject = y, s(T) && (a = T, T = a.pubID, E = a.sysID), E == null && (g = [T, E], E = g[0], T = g[1]), T != null && (this.pubID = this.stringify.dtdPubID(T)), E != null && (this.sysID = this.stringify.dtdSysID(E));
758
- }
759
- return Object.defineProperty(d.prototype, "entities", {
760
- get: function() {
761
- var y, T, E, x, v;
762
- for (x = {}, v = this.children, T = 0, E = v.length; T < E; T++)
763
- y = v[T], y.type === o.EntityDeclaration && !y.pe && (x[y.name] = y);
764
- return new e(x);
765
- }
766
- }), Object.defineProperty(d.prototype, "notations", {
767
- get: function() {
768
- var y, T, E, x, v;
769
- for (x = {}, v = this.children, T = 0, E = v.length; T < E; T++)
770
- y = v[T], y.type === o.NotationDeclaration && (x[y.name] = y);
771
- return new e(x);
772
- }
773
- }), Object.defineProperty(d.prototype, "publicId", {
774
- get: function() {
775
- return this.pubID;
776
- }
777
- }), Object.defineProperty(d.prototype, "systemId", {
778
- get: function() {
779
- return this.sysID;
780
- }
781
- }), Object.defineProperty(d.prototype, "internalSubset", {
782
- get: function() {
783
- throw new Error("This DOM method is not implemented." + this.debugInfo());
784
- }
785
- }), d.prototype.element = function(y, T) {
786
- var E;
787
- return E = new p(this, y, T), this.children.push(E), this;
788
- }, d.prototype.attList = function(y, T, E, x, v) {
789
- var _;
790
- return _ = new n(this, y, T, E, x, v), this.children.push(_), this;
791
- }, d.prototype.entity = function(y, T) {
792
- var E;
793
- return E = new l(this, !1, y, T), this.children.push(E), this;
794
- }, d.prototype.pEntity = function(y, T) {
795
- var E;
796
- return E = new l(this, !0, y, T), this.children.push(E), this;
797
- }, d.prototype.notation = function(y, T) {
798
- var E;
799
- return E = new h(this, y, T), this.children.push(E), this;
800
- }, d.prototype.toString = function(y) {
801
- return this.options.writer.docType(this, this.options.writer.filterOptions(y));
802
- }, d.prototype.ele = function(y, T) {
803
- return this.element(y, T);
804
- }, d.prototype.att = function(y, T, E, x, v) {
805
- return this.attList(y, T, E, x, v);
806
- }, d.prototype.ent = function(y, T) {
807
- return this.entity(y, T);
808
- }, d.prototype.pent = function(y, T) {
809
- return this.pEntity(y, T);
810
- }, d.prototype.not = function(y, T) {
811
- return this.notation(y, T);
812
- }, d.prototype.up = function() {
813
- return this.root() || this.documentObject;
814
- }, d.prototype.isEqualNode = function(y) {
815
- return !(!d.__super__.isEqualNode.apply(this, arguments).isEqualNode(y) || y.name !== this.name || y.publicId !== this.publicId || y.systemId !== this.systemId);
816
- }, d;
817
- }(t);
818
- }).call(X)), _t.exports;
819
- }
820
- var Xt = { exports: {} }, je;
821
- function ue() {
822
- return je || (je = 1, (function() {
823
- var o, n, p = function(h, e) {
824
- for (var t in e)
825
- l.call(e, t) && (h[t] = e[t]);
826
- function s() {
827
- this.constructor = h;
828
- }
829
- return s.prototype = e.prototype, h.prototype = new s(), h.__super__ = e.prototype, h;
830
- }, l = {}.hasOwnProperty;
831
- o = W(), n = Q(), Xt.exports = function(h) {
832
- p(e, h);
833
- function e(t, s) {
834
- if (e.__super__.constructor.call(this, t), s == null)
835
- throw new Error("Missing raw text. " + this.debugInfo());
836
- this.type = o.Raw, this.value = this.stringify.raw(s);
837
- }
838
- return e.prototype.clone = function() {
839
- return Object.create(this);
840
- }, e.prototype.toString = function(t) {
841
- return this.options.writer.raw(this, this.options.writer.filterOptions(t));
842
- }, e;
843
- }(n);
844
- }).call(X)), Xt.exports;
845
- }
846
- var Rt = { exports: {} }, Be;
847
- function ce() {
848
- return Be || (Be = 1, (function() {
849
- var o, n, p = function(h, e) {
850
- for (var t in e)
851
- l.call(e, t) && (h[t] = e[t]);
852
- function s() {
853
- this.constructor = h;
854
- }
855
- return s.prototype = e.prototype, h.prototype = new s(), h.__super__ = e.prototype, h;
856
- }, l = {}.hasOwnProperty;
857
- o = W(), n = ut(), Rt.exports = function(h) {
858
- p(e, h);
859
- function e(t, s) {
860
- if (e.__super__.constructor.call(this, t), s == null)
861
- throw new Error("Missing element text. " + this.debugInfo());
862
- this.name = "#text", this.type = o.Text, this.value = this.stringify.text(s);
863
- }
864
- return Object.defineProperty(e.prototype, "isElementContentWhitespace", {
865
- get: function() {
866
- throw new Error("This DOM method is not implemented." + this.debugInfo());
867
- }
868
- }), Object.defineProperty(e.prototype, "wholeText", {
869
- get: function() {
870
- var t, s, c;
871
- for (c = "", s = this.previousSibling; s; )
872
- c = s.data + c, s = s.previousSibling;
873
- for (c += this.data, t = this.nextSibling; t; )
874
- c = c + t.data, t = t.nextSibling;
875
- return c;
876
- }
877
- }), e.prototype.clone = function() {
878
- return Object.create(this);
879
- }, e.prototype.toString = function(t) {
880
- return this.options.writer.text(this, this.options.writer.filterOptions(t));
881
- }, e.prototype.splitText = function(t) {
882
- throw new Error("This DOM method is not implemented." + this.debugInfo());
883
- }, e.prototype.replaceWholeText = function(t) {
884
- throw new Error("This DOM method is not implemented." + this.debugInfo());
885
- }, e;
886
- }(n);
887
- }).call(X)), Rt.exports;
888
- }
889
- var jt = { exports: {} }, qe;
890
- function le() {
891
- return qe || (qe = 1, (function() {
892
- var o, n, p = function(h, e) {
893
- for (var t in e)
894
- l.call(e, t) && (h[t] = e[t]);
895
- function s() {
896
- this.constructor = h;
897
- }
898
- return s.prototype = e.prototype, h.prototype = new s(), h.__super__ = e.prototype, h;
899
- }, l = {}.hasOwnProperty;
900
- o = W(), n = ut(), jt.exports = function(h) {
901
- p(e, h);
902
- function e(t, s, c) {
903
- if (e.__super__.constructor.call(this, t), s == null)
904
- throw new Error("Missing instruction target. " + this.debugInfo());
905
- this.type = o.ProcessingInstruction, this.target = this.stringify.insTarget(s), this.name = this.target, c && (this.value = this.stringify.insValue(c));
906
- }
907
- return e.prototype.clone = function() {
908
- return Object.create(this);
909
- }, e.prototype.toString = function(t) {
910
- return this.options.writer.processingInstruction(this, this.options.writer.filterOptions(t));
911
- }, e.prototype.isEqualNode = function(t) {
912
- return !(!e.__super__.isEqualNode.apply(this, arguments).isEqualNode(t) || t.target !== this.target);
913
- }, e;
914
- }(n);
915
- }).call(X)), jt.exports;
916
- }
917
- var Bt = { exports: {} }, Ue;
918
- function sr() {
919
- return Ue || (Ue = 1, (function() {
920
- var o, n, p = function(h, e) {
921
- for (var t in e)
922
- l.call(e, t) && (h[t] = e[t]);
923
- function s() {
924
- this.constructor = h;
925
- }
926
- return s.prototype = e.prototype, h.prototype = new s(), h.__super__ = e.prototype, h;
927
- }, l = {}.hasOwnProperty;
928
- n = Q(), o = W(), Bt.exports = function(h) {
929
- p(e, h);
930
- function e(t) {
931
- e.__super__.constructor.call(this, t), this.type = o.Dummy;
932
- }
933
- return e.prototype.clone = function() {
934
- return Object.create(this);
935
- }, e.prototype.toString = function(t) {
936
- return "";
937
- }, e;
938
- }(n);
939
- }).call(X)), Bt.exports;
940
- }
941
- var qt = { exports: {} }, Ve;
942
- function Or() {
943
- return Ve || (Ve = 1, (function() {
944
- qt.exports = function() {
945
- function o(n) {
946
- this.nodes = n;
947
- }
948
- return Object.defineProperty(o.prototype, "length", {
949
- get: function() {
950
- return this.nodes.length || 0;
951
- }
952
- }), o.prototype.clone = function() {
953
- return this.nodes = null;
954
- }, o.prototype.item = function(n) {
955
- return this.nodes[n] || null;
956
- }, o;
957
- }();
958
- }).call(X)), qt.exports;
959
- }
960
- var Ut = { exports: {} }, Ke;
961
- function Ir() {
962
- return Ke || (Ke = 1, (function() {
963
- Ut.exports = {
964
- Disconnected: 1,
965
- Preceding: 2,
966
- Following: 4,
967
- Contains: 8,
968
- ContainedBy: 16,
969
- ImplementationSpecific: 32
970
- };
971
- }).call(X)), Ut.exports;
972
- }
973
- var We;
974
- function Q() {
975
- return We || (We = 1, (function() {
976
- var o, n, p, l, h, e, t, s, c, N, w, d, y, T, E, x, v, _ = {}.hasOwnProperty;
977
- v = et(), x = v.isObject, E = v.isFunction, T = v.isEmpty, y = v.getValue, s = null, p = null, l = null, h = null, e = null, w = null, d = null, N = null, t = null, n = null, c = null, o = null, Nt.exports = function() {
978
- function D(a) {
979
- this.parent = a, this.parent && (this.options = this.parent.options, this.stringify = this.parent.stringify), this.value = null, this.children = [], this.baseURI = null, s || (s = Jt(), p = te(), l = ee(), h = re(), e = ae(), w = ue(), d = ce(), N = le(), t = sr(), n = W(), c = Or(), Zt(), o = Ir());
980
- }
981
- return Object.defineProperty(D.prototype, "nodeName", {
982
- get: function() {
983
- return this.name;
984
- }
985
- }), Object.defineProperty(D.prototype, "nodeType", {
986
- get: function() {
987
- return this.type;
988
- }
989
- }), Object.defineProperty(D.prototype, "nodeValue", {
990
- get: function() {
991
- return this.value;
992
- }
993
- }), Object.defineProperty(D.prototype, "parentNode", {
994
- get: function() {
995
- return this.parent;
996
- }
997
- }), Object.defineProperty(D.prototype, "childNodes", {
998
- get: function() {
999
- return (!this.childNodeList || !this.childNodeList.nodes) && (this.childNodeList = new c(this.children)), this.childNodeList;
1000
- }
1001
- }), Object.defineProperty(D.prototype, "firstChild", {
1002
- get: function() {
1003
- return this.children[0] || null;
1004
- }
1005
- }), Object.defineProperty(D.prototype, "lastChild", {
1006
- get: function() {
1007
- return this.children[this.children.length - 1] || null;
1008
- }
1009
- }), Object.defineProperty(D.prototype, "previousSibling", {
1010
- get: function() {
1011
- var a;
1012
- return a = this.parent.children.indexOf(this), this.parent.children[a - 1] || null;
1013
- }
1014
- }), Object.defineProperty(D.prototype, "nextSibling", {
1015
- get: function() {
1016
- var a;
1017
- return a = this.parent.children.indexOf(this), this.parent.children[a + 1] || null;
1018
- }
1019
- }), Object.defineProperty(D.prototype, "ownerDocument", {
1020
- get: function() {
1021
- return this.document() || null;
1022
- }
1023
- }), Object.defineProperty(D.prototype, "textContent", {
1024
- get: function() {
1025
- var a, g, b, C, M;
1026
- if (this.nodeType === n.Element || this.nodeType === n.DocumentFragment) {
1027
- for (M = "", C = this.children, g = 0, b = C.length; g < b; g++)
1028
- a = C[g], a.textContent && (M += a.textContent);
1029
- return M;
1030
- } else
1031
- return null;
1032
- },
1033
- set: function(a) {
1034
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1035
- }
1036
- }), D.prototype.setParent = function(a) {
1037
- var g, b, C, M, L;
1038
- for (this.parent = a, a && (this.options = a.options, this.stringify = a.stringify), M = this.children, L = [], b = 0, C = M.length; b < C; b++)
1039
- g = M[b], L.push(g.setParent(this));
1040
- return L;
1041
- }, D.prototype.element = function(a, g, b) {
1042
- var C, M, L, f, u, A, P, B, R, k, j;
1043
- if (A = null, g === null && b == null && (R = [{}, null], g = R[0], b = R[1]), g == null && (g = {}), g = y(g), x(g) || (k = [g, b], b = k[0], g = k[1]), a != null && (a = y(a)), Array.isArray(a))
1044
- for (L = 0, P = a.length; L < P; L++)
1045
- M = a[L], A = this.element(M);
1046
- else if (E(a))
1047
- A = this.element(a.apply());
1048
- else if (x(a)) {
1049
- for (u in a)
1050
- if (_.call(a, u))
1051
- if (j = a[u], E(j) && (j = j.apply()), !this.options.ignoreDecorators && this.stringify.convertAttKey && u.indexOf(this.stringify.convertAttKey) === 0)
1052
- A = this.attribute(u.substr(this.stringify.convertAttKey.length), j);
1053
- else if (!this.options.separateArrayItems && Array.isArray(j) && T(j))
1054
- A = this.dummy();
1055
- else if (x(j) && T(j))
1056
- A = this.element(u);
1057
- else if (!this.options.keepNullNodes && j == null)
1058
- A = this.dummy();
1059
- else if (!this.options.separateArrayItems && Array.isArray(j))
1060
- for (f = 0, B = j.length; f < B; f++)
1061
- M = j[f], C = {}, C[u] = M, A = this.element(C);
1062
- else x(j) ? !this.options.ignoreDecorators && this.stringify.convertTextKey && u.indexOf(this.stringify.convertTextKey) === 0 ? A = this.element(j) : (A = this.element(u), A.element(j)) : A = this.element(u, j);
1063
- } else !this.options.keepNullNodes && b === null ? A = this.dummy() : !this.options.ignoreDecorators && this.stringify.convertTextKey && a.indexOf(this.stringify.convertTextKey) === 0 ? A = this.text(b) : !this.options.ignoreDecorators && this.stringify.convertCDataKey && a.indexOf(this.stringify.convertCDataKey) === 0 ? A = this.cdata(b) : !this.options.ignoreDecorators && this.stringify.convertCommentKey && a.indexOf(this.stringify.convertCommentKey) === 0 ? A = this.comment(b) : !this.options.ignoreDecorators && this.stringify.convertRawKey && a.indexOf(this.stringify.convertRawKey) === 0 ? A = this.raw(b) : !this.options.ignoreDecorators && this.stringify.convertPIKey && a.indexOf(this.stringify.convertPIKey) === 0 ? A = this.instruction(a.substr(this.stringify.convertPIKey.length), b) : A = this.node(a, g, b);
1064
- if (A == null)
1065
- throw new Error("Could not create any elements with: " + a + ". " + this.debugInfo());
1066
- return A;
1067
- }, D.prototype.insertBefore = function(a, g, b) {
1068
- var C, M, L, f, u;
1069
- if (a != null && a.type)
1070
- return L = a, f = g, L.setParent(this), f ? (M = children.indexOf(f), u = children.splice(M), children.push(L), Array.prototype.push.apply(children, u)) : children.push(L), L;
1071
- if (this.isRoot)
1072
- throw new Error("Cannot insert elements at root level. " + this.debugInfo(a));
1073
- return M = this.parent.children.indexOf(this), u = this.parent.children.splice(M), C = this.parent.element(a, g, b), Array.prototype.push.apply(this.parent.children, u), C;
1074
- }, D.prototype.insertAfter = function(a, g, b) {
1075
- var C, M, L;
1076
- if (this.isRoot)
1077
- throw new Error("Cannot insert elements at root level. " + this.debugInfo(a));
1078
- return M = this.parent.children.indexOf(this), L = this.parent.children.splice(M + 1), C = this.parent.element(a, g, b), Array.prototype.push.apply(this.parent.children, L), C;
1079
- }, D.prototype.remove = function() {
1080
- var a;
1081
- if (this.isRoot)
1082
- throw new Error("Cannot remove the root element. " + this.debugInfo());
1083
- return a = this.parent.children.indexOf(this), [].splice.apply(this.parent.children, [a, a - a + 1].concat([])), this.parent;
1084
- }, D.prototype.node = function(a, g, b) {
1085
- var C, M;
1086
- return a != null && (a = y(a)), g || (g = {}), g = y(g), x(g) || (M = [g, b], b = M[0], g = M[1]), C = new s(this, a, g), b != null && C.text(b), this.children.push(C), C;
1087
- }, D.prototype.text = function(a) {
1088
- var g;
1089
- return x(a) && this.element(a), g = new d(this, a), this.children.push(g), this;
1090
- }, D.prototype.cdata = function(a) {
1091
- var g;
1092
- return g = new p(this, a), this.children.push(g), this;
1093
- }, D.prototype.comment = function(a) {
1094
- var g;
1095
- return g = new l(this, a), this.children.push(g), this;
1096
- }, D.prototype.commentBefore = function(a) {
1097
- var g, b;
1098
- return g = this.parent.children.indexOf(this), b = this.parent.children.splice(g), this.parent.comment(a), Array.prototype.push.apply(this.parent.children, b), this;
1099
- }, D.prototype.commentAfter = function(a) {
1100
- var g, b;
1101
- return g = this.parent.children.indexOf(this), b = this.parent.children.splice(g + 1), this.parent.comment(a), Array.prototype.push.apply(this.parent.children, b), this;
1102
- }, D.prototype.raw = function(a) {
1103
- var g;
1104
- return g = new w(this, a), this.children.push(g), this;
1105
- }, D.prototype.dummy = function() {
1106
- var a;
1107
- return a = new t(this), a;
1108
- }, D.prototype.instruction = function(a, g) {
1109
- var b, C, M, L, f;
1110
- if (a != null && (a = y(a)), g != null && (g = y(g)), Array.isArray(a))
1111
- for (L = 0, f = a.length; L < f; L++)
1112
- b = a[L], this.instruction(b);
1113
- else if (x(a))
1114
- for (b in a)
1115
- _.call(a, b) && (C = a[b], this.instruction(b, C));
1116
- else
1117
- E(g) && (g = g.apply()), M = new N(this, a, g), this.children.push(M);
1118
- return this;
1119
- }, D.prototype.instructionBefore = function(a, g) {
1120
- var b, C;
1121
- return b = this.parent.children.indexOf(this), C = this.parent.children.splice(b), this.parent.instruction(a, g), Array.prototype.push.apply(this.parent.children, C), this;
1122
- }, D.prototype.instructionAfter = function(a, g) {
1123
- var b, C;
1124
- return b = this.parent.children.indexOf(this), C = this.parent.children.splice(b + 1), this.parent.instruction(a, g), Array.prototype.push.apply(this.parent.children, C), this;
1125
- }, D.prototype.declaration = function(a, g, b) {
1126
- var C, M;
1127
- return C = this.document(), M = new h(C, a, g, b), C.children.length === 0 ? C.children.unshift(M) : C.children[0].type === n.Declaration ? C.children[0] = M : C.children.unshift(M), C.root() || C;
1128
- }, D.prototype.dtd = function(a, g) {
1129
- var b, C, M, L, f, u, A, P, B, R;
1130
- for (C = this.document(), M = new e(C, a, g), B = C.children, L = f = 0, A = B.length; f < A; L = ++f)
1131
- if (b = B[L], b.type === n.DocType)
1132
- return C.children[L] = M, M;
1133
- for (R = C.children, L = u = 0, P = R.length; u < P; L = ++u)
1134
- if (b = R[L], b.isRoot)
1135
- return C.children.splice(L, 0, M), M;
1136
- return C.children.push(M), M;
1137
- }, D.prototype.up = function() {
1138
- if (this.isRoot)
1139
- throw new Error("The root node has no parent. Use doc() if you need to get the document object.");
1140
- return this.parent;
1141
- }, D.prototype.root = function() {
1142
- var a;
1143
- for (a = this; a; ) {
1144
- if (a.type === n.Document)
1145
- return a.rootObject;
1146
- if (a.isRoot)
1147
- return a;
1148
- a = a.parent;
1149
- }
1150
- }, D.prototype.document = function() {
1151
- var a;
1152
- for (a = this; a; ) {
1153
- if (a.type === n.Document)
1154
- return a;
1155
- a = a.parent;
1156
- }
1157
- }, D.prototype.end = function(a) {
1158
- return this.document().end(a);
1159
- }, D.prototype.prev = function() {
1160
- var a;
1161
- if (a = this.parent.children.indexOf(this), a < 1)
1162
- throw new Error("Already at the first node. " + this.debugInfo());
1163
- return this.parent.children[a - 1];
1164
- }, D.prototype.next = function() {
1165
- var a;
1166
- if (a = this.parent.children.indexOf(this), a === -1 || a === this.parent.children.length - 1)
1167
- throw new Error("Already at the last node. " + this.debugInfo());
1168
- return this.parent.children[a + 1];
1169
- }, D.prototype.importDocument = function(a) {
1170
- var g;
1171
- return g = a.root().clone(), g.parent = this, g.isRoot = !1, this.children.push(g), this;
1172
- }, D.prototype.debugInfo = function(a) {
1173
- var g, b;
1174
- return a = a || this.name, a == null && !((g = this.parent) != null && g.name) ? "" : a == null ? "parent: <" + this.parent.name + ">" : (b = this.parent) != null && b.name ? "node: <" + a + ">, parent: <" + this.parent.name + ">" : "node: <" + a + ">";
1175
- }, D.prototype.ele = function(a, g, b) {
1176
- return this.element(a, g, b);
1177
- }, D.prototype.nod = function(a, g, b) {
1178
- return this.node(a, g, b);
1179
- }, D.prototype.txt = function(a) {
1180
- return this.text(a);
1181
- }, D.prototype.dat = function(a) {
1182
- return this.cdata(a);
1183
- }, D.prototype.com = function(a) {
1184
- return this.comment(a);
1185
- }, D.prototype.ins = function(a, g) {
1186
- return this.instruction(a, g);
1187
- }, D.prototype.doc = function() {
1188
- return this.document();
1189
- }, D.prototype.dec = function(a, g, b) {
1190
- return this.declaration(a, g, b);
1191
- }, D.prototype.e = function(a, g, b) {
1192
- return this.element(a, g, b);
1193
- }, D.prototype.n = function(a, g, b) {
1194
- return this.node(a, g, b);
1195
- }, D.prototype.t = function(a) {
1196
- return this.text(a);
1197
- }, D.prototype.d = function(a) {
1198
- return this.cdata(a);
1199
- }, D.prototype.c = function(a) {
1200
- return this.comment(a);
1201
- }, D.prototype.r = function(a) {
1202
- return this.raw(a);
1203
- }, D.prototype.i = function(a, g) {
1204
- return this.instruction(a, g);
1205
- }, D.prototype.u = function() {
1206
- return this.up();
1207
- }, D.prototype.importXMLBuilder = function(a) {
1208
- return this.importDocument(a);
1209
- }, D.prototype.replaceChild = function(a, g) {
1210
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1211
- }, D.prototype.removeChild = function(a) {
1212
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1213
- }, D.prototype.appendChild = function(a) {
1214
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1215
- }, D.prototype.hasChildNodes = function() {
1216
- return this.children.length !== 0;
1217
- }, D.prototype.cloneNode = function(a) {
1218
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1219
- }, D.prototype.normalize = function() {
1220
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1221
- }, D.prototype.isSupported = function(a, g) {
1222
- return !0;
1223
- }, D.prototype.hasAttributes = function() {
1224
- return this.attribs.length !== 0;
1225
- }, D.prototype.compareDocumentPosition = function(a) {
1226
- var g, b;
1227
- return g = this, g === a ? 0 : this.document() !== a.document() ? (b = o.Disconnected | o.ImplementationSpecific, Math.random() < 0.5 ? b |= o.Preceding : b |= o.Following, b) : g.isAncestor(a) ? o.Contains | o.Preceding : g.isDescendant(a) ? o.Contains | o.Following : g.isPreceding(a) ? o.Preceding : o.Following;
1228
- }, D.prototype.isSameNode = function(a) {
1229
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1230
- }, D.prototype.lookupPrefix = function(a) {
1231
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1232
- }, D.prototype.isDefaultNamespace = function(a) {
1233
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1234
- }, D.prototype.lookupNamespaceURI = function(a) {
1235
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1236
- }, D.prototype.isEqualNode = function(a) {
1237
- var g, b, C;
1238
- if (a.nodeType !== this.nodeType || a.children.length !== this.children.length)
1239
- return !1;
1240
- for (g = b = 0, C = this.children.length - 1; 0 <= C ? b <= C : b >= C; g = 0 <= C ? ++b : --b)
1241
- if (!this.children[g].isEqualNode(a.children[g]))
1242
- return !1;
1243
- return !0;
1244
- }, D.prototype.getFeature = function(a, g) {
1245
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1246
- }, D.prototype.setUserData = function(a, g, b) {
1247
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1248
- }, D.prototype.getUserData = function(a) {
1249
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1250
- }, D.prototype.contains = function(a) {
1251
- return a ? a === this || this.isDescendant(a) : !1;
1252
- }, D.prototype.isDescendant = function(a) {
1253
- var g, b, C, M, L;
1254
- for (L = this.children, C = 0, M = L.length; C < M; C++)
1255
- if (g = L[C], a === g || (b = g.isDescendant(a), b))
1256
- return !0;
1257
- return !1;
1258
- }, D.prototype.isAncestor = function(a) {
1259
- return a.isDescendant(this);
1260
- }, D.prototype.isPreceding = function(a) {
1261
- var g, b;
1262
- return g = this.treePosition(a), b = this.treePosition(this), g === -1 || b === -1 ? !1 : g < b;
1263
- }, D.prototype.isFollowing = function(a) {
1264
- var g, b;
1265
- return g = this.treePosition(a), b = this.treePosition(this), g === -1 || b === -1 ? !1 : g > b;
1266
- }, D.prototype.treePosition = function(a) {
1267
- var g, b;
1268
- return b = 0, g = !1, this.foreachTreeNode(this.document(), function(C) {
1269
- if (b++, !g && C === a)
1270
- return g = !0;
1271
- }), g ? b : -1;
1272
- }, D.prototype.foreachTreeNode = function(a, g) {
1273
- var b, C, M, L, f;
1274
- for (a || (a = this.document()), L = a.children, C = 0, M = L.length; C < M; C++) {
1275
- if (b = L[C], f = g(b))
1276
- return f;
1277
- if (f = this.foreachTreeNode(b, g), f)
1278
- return f;
1279
- }
1280
- }, D;
1281
- }();
1282
- }).call(X)), Nt.exports;
1283
- }
1284
- var Vt = { exports: {} }, ke;
1285
- function ar() {
1286
- return ke || (ke = 1, (function() {
1287
- var o = function(p, l) {
1288
- return function() {
1289
- return p.apply(l, arguments);
1290
- };
1291
- }, n = {}.hasOwnProperty;
1292
- Vt.exports = function() {
1293
- function p(l) {
1294
- this.assertLegalName = o(this.assertLegalName, this), this.assertLegalChar = o(this.assertLegalChar, this);
1295
- var h, e, t;
1296
- l || (l = {}), this.options = l, this.options.version || (this.options.version = "1.0"), e = l.stringify || {};
1297
- for (h in e)
1298
- n.call(e, h) && (t = e[h], this[h] = t);
1299
- }
1300
- return p.prototype.name = function(l) {
1301
- return this.options.noValidation ? l : this.assertLegalName("" + l || "");
1302
- }, p.prototype.text = function(l) {
1303
- return this.options.noValidation ? l : this.assertLegalChar(this.textEscape("" + l || ""));
1304
- }, p.prototype.cdata = function(l) {
1305
- return this.options.noValidation ? l : (l = "" + l || "", l = l.replace("]]>", "]]]]><![CDATA[>"), this.assertLegalChar(l));
1306
- }, p.prototype.comment = function(l) {
1307
- if (this.options.noValidation)
1308
- return l;
1309
- if (l = "" + l || "", l.match(/--/))
1310
- throw new Error("Comment text cannot contain double-hypen: " + l);
1311
- return this.assertLegalChar(l);
1312
- }, p.prototype.raw = function(l) {
1313
- return this.options.noValidation ? l : "" + l || "";
1314
- }, p.prototype.attValue = function(l) {
1315
- return this.options.noValidation ? l : this.assertLegalChar(this.attEscape(l = "" + l || ""));
1316
- }, p.prototype.insTarget = function(l) {
1317
- return this.options.noValidation ? l : this.assertLegalChar("" + l || "");
1318
- }, p.prototype.insValue = function(l) {
1319
- if (this.options.noValidation)
1320
- return l;
1321
- if (l = "" + l || "", l.match(/\?>/))
1322
- throw new Error("Invalid processing instruction value: " + l);
1323
- return this.assertLegalChar(l);
1324
- }, p.prototype.xmlVersion = function(l) {
1325
- if (this.options.noValidation)
1326
- return l;
1327
- if (l = "" + l || "", !l.match(/1\.[0-9]+/))
1328
- throw new Error("Invalid version number: " + l);
1329
- return l;
1330
- }, p.prototype.xmlEncoding = function(l) {
1331
- if (this.options.noValidation)
1332
- return l;
1333
- if (l = "" + l || "", !l.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))
1334
- throw new Error("Invalid encoding: " + l);
1335
- return this.assertLegalChar(l);
1336
- }, p.prototype.xmlStandalone = function(l) {
1337
- return this.options.noValidation ? l : l ? "yes" : "no";
1338
- }, p.prototype.dtdPubID = function(l) {
1339
- return this.options.noValidation ? l : this.assertLegalChar("" + l || "");
1340
- }, p.prototype.dtdSysID = function(l) {
1341
- return this.options.noValidation ? l : this.assertLegalChar("" + l || "");
1342
- }, p.prototype.dtdElementValue = function(l) {
1343
- return this.options.noValidation ? l : this.assertLegalChar("" + l || "");
1344
- }, p.prototype.dtdAttType = function(l) {
1345
- return this.options.noValidation ? l : this.assertLegalChar("" + l || "");
1346
- }, p.prototype.dtdAttDefault = function(l) {
1347
- return this.options.noValidation ? l : this.assertLegalChar("" + l || "");
1348
- }, p.prototype.dtdEntityValue = function(l) {
1349
- return this.options.noValidation ? l : this.assertLegalChar("" + l || "");
1350
- }, p.prototype.dtdNData = function(l) {
1351
- return this.options.noValidation ? l : this.assertLegalChar("" + l || "");
1352
- }, p.prototype.convertAttKey = "@", p.prototype.convertPIKey = "?", p.prototype.convertTextKey = "#text", p.prototype.convertCDataKey = "#cdata", p.prototype.convertCommentKey = "#comment", p.prototype.convertRawKey = "#raw", p.prototype.assertLegalChar = function(l) {
1353
- var h, e;
1354
- if (this.options.noValidation)
1355
- return l;
1356
- if (h = "", this.options.version === "1.0") {
1357
- if (h = /[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, e = l.match(h))
1358
- throw new Error("Invalid character in string: " + l + " at index " + e.index);
1359
- } else if (this.options.version === "1.1" && (h = /[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, e = l.match(h)))
1360
- throw new Error("Invalid character in string: " + l + " at index " + e.index);
1361
- return l;
1362
- }, p.prototype.assertLegalName = function(l) {
1363
- var h;
1364
- if (this.options.noValidation)
1365
- return l;
1366
- if (this.assertLegalChar(l), 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])*$/, !l.match(h))
1367
- throw new Error("Invalid character in name");
1368
- return l;
1369
- }, p.prototype.textEscape = function(l) {
1370
- var h;
1371
- return this.options.noValidation ? l : (h = this.options.noDoubleEncoding ? /(?!&\S+;)&/g : /&/g, l.replace(h, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/\r/g, "&#xD;"));
1372
- }, p.prototype.attEscape = function(l) {
1373
- var h;
1374
- return this.options.noValidation ? l : (h = this.options.noDoubleEncoding ? /(?!&\S+;)&/g : /&/g, l.replace(h, "&amp;").replace(/</g, "&lt;").replace(/"/g, "&quot;").replace(/\t/g, "&#x9;").replace(/\n/g, "&#xA;").replace(/\r/g, "&#xD;"));
1375
- }, p;
1376
- }();
1377
- }).call(X)), Vt.exports;
1378
- }
1379
- var Kt = { exports: {} }, Wt = { exports: {} }, kt = { exports: {} }, Ge;
1380
- function ct() {
1381
- return Ge || (Ge = 1, (function() {
1382
- kt.exports = {
1383
- None: 0,
1384
- OpenTag: 1,
1385
- InsideTag: 2,
1386
- CloseTag: 3
1387
- };
1388
- }).call(X)), kt.exports;
1389
- }
1390
- var Ye;
1391
- function ur() {
1392
- return Ye || (Ye = 1, (function() {
1393
- var o, n, p, l = {}.hasOwnProperty;
1394
- p = et().assign, o = W(), re(), ae(), te(), ee(), Jt(), ue(), ce(), le(), sr(), ne(), oe(), ie(), se(), n = ct(), Wt.exports = function() {
1395
- function h(e) {
1396
- var t, s, c;
1397
- e || (e = {}), this.options = e, s = e.writer || {};
1398
- for (t in s)
1399
- l.call(s, t) && (c = s[t], this["_" + t] = this[t], this[t] = c);
1400
- }
1401
- return h.prototype.filterOptions = function(e) {
1402
- var t, s, c, N, w, d, y, T;
1403
- return e || (e = {}), e = p({}, this.options, e), t = {
1404
- writer: this
1405
- }, t.pretty = e.pretty || !1, t.allowEmpty = e.allowEmpty || !1, t.indent = (s = e.indent) != null ? s : " ", t.newline = (c = e.newline) != null ? c : `
1406
- `, t.offset = (N = e.offset) != null ? N : 0, t.dontPrettyTextNodes = (w = (d = e.dontPrettyTextNodes) != null ? d : e.dontprettytextnodes) != null ? w : 0, t.spaceBeforeSlash = (y = (T = e.spaceBeforeSlash) != null ? T : e.spacebeforeslash) != null ? y : "", t.spaceBeforeSlash === !0 && (t.spaceBeforeSlash = " "), t.suppressPrettyCount = 0, t.user = {}, t.state = n.None, t;
1407
- }, h.prototype.indent = function(e, t, s) {
1408
- var c;
1409
- return !t.pretty || t.suppressPrettyCount ? "" : t.pretty && (c = (s || 0) + t.offset + 1, c > 0) ? new Array(c).join(t.indent) : "";
1410
- }, h.prototype.endline = function(e, t, s) {
1411
- return !t.pretty || t.suppressPrettyCount ? "" : t.newline;
1412
- }, h.prototype.attribute = function(e, t, s) {
1413
- var c;
1414
- return this.openAttribute(e, t, s), c = " " + e.name + '="' + e.value + '"', this.closeAttribute(e, t, s), c;
1415
- }, h.prototype.cdata = function(e, t, s) {
1416
- var c;
1417
- return this.openNode(e, t, s), t.state = n.OpenTag, c = this.indent(e, t, s) + "<![CDATA[", t.state = n.InsideTag, c += e.value, t.state = n.CloseTag, c += "]]>" + this.endline(e, t, s), t.state = n.None, this.closeNode(e, t, s), c;
1418
- }, h.prototype.comment = function(e, t, s) {
1419
- var c;
1420
- return this.openNode(e, t, s), t.state = n.OpenTag, c = this.indent(e, t, s) + "<!-- ", t.state = n.InsideTag, c += e.value, t.state = n.CloseTag, c += " -->" + this.endline(e, t, s), t.state = n.None, this.closeNode(e, t, s), c;
1421
- }, h.prototype.declaration = function(e, t, s) {
1422
- var c;
1423
- return this.openNode(e, t, s), t.state = n.OpenTag, c = this.indent(e, t, s) + "<?xml", t.state = n.InsideTag, c += ' version="' + e.version + '"', e.encoding != null && (c += ' encoding="' + e.encoding + '"'), e.standalone != null && (c += ' standalone="' + e.standalone + '"'), t.state = n.CloseTag, c += t.spaceBeforeSlash + "?>", c += this.endline(e, t, s), t.state = n.None, this.closeNode(e, t, s), c;
1424
- }, h.prototype.docType = function(e, t, s) {
1425
- var c, N, w, d, y;
1426
- if (s || (s = 0), this.openNode(e, t, s), t.state = n.OpenTag, d = this.indent(e, t, s), d += "<!DOCTYPE " + e.root().name, e.pubID && e.sysID ? d += ' PUBLIC "' + e.pubID + '" "' + e.sysID + '"' : e.sysID && (d += ' SYSTEM "' + e.sysID + '"'), e.children.length > 0) {
1427
- for (d += " [", d += this.endline(e, t, s), t.state = n.InsideTag, y = e.children, N = 0, w = y.length; N < w; N++)
1428
- c = y[N], d += this.writeChildNode(c, t, s + 1);
1429
- t.state = n.CloseTag, d += "]";
1430
- }
1431
- return t.state = n.CloseTag, d += t.spaceBeforeSlash + ">", d += this.endline(e, t, s), t.state = n.None, this.closeNode(e, t, s), d;
1432
- }, h.prototype.element = function(e, t, s) {
1433
- var c, N, w, d, y, T, E, x, v, _, D, a, g, b;
1434
- s || (s = 0), _ = !1, D = "", this.openNode(e, t, s), t.state = n.OpenTag, D += this.indent(e, t, s) + "<" + e.name, a = e.attribs;
1435
- for (v in a)
1436
- l.call(a, v) && (c = a[v], D += this.attribute(c, t, s));
1437
- if (w = e.children.length, d = w === 0 ? null : e.children[0], w === 0 || e.children.every(function(C) {
1438
- return (C.type === o.Text || C.type === o.Raw) && C.value === "";
1439
- }))
1440
- t.allowEmpty ? (D += ">", t.state = n.CloseTag, D += "</" + e.name + ">" + this.endline(e, t, s)) : (t.state = n.CloseTag, D += t.spaceBeforeSlash + "/>" + this.endline(e, t, s));
1441
- else if (t.pretty && w === 1 && (d.type === o.Text || d.type === o.Raw) && d.value != null)
1442
- D += ">", t.state = n.InsideTag, t.suppressPrettyCount++, _ = !0, D += this.writeChildNode(d, t, s + 1), t.suppressPrettyCount--, _ = !1, t.state = n.CloseTag, D += "</" + e.name + ">" + this.endline(e, t, s);
1443
- else {
1444
- if (t.dontPrettyTextNodes) {
1445
- for (g = e.children, y = 0, E = g.length; y < E; y++)
1446
- if (N = g[y], (N.type === o.Text || N.type === o.Raw) && N.value != null) {
1447
- t.suppressPrettyCount++, _ = !0;
1448
- break;
1449
- }
1450
- }
1451
- for (D += ">" + this.endline(e, t, s), t.state = n.InsideTag, b = e.children, T = 0, x = b.length; T < x; T++)
1452
- N = b[T], D += this.writeChildNode(N, t, s + 1);
1453
- t.state = n.CloseTag, D += this.indent(e, t, s) + "</" + e.name + ">", _ && t.suppressPrettyCount--, D += this.endline(e, t, s), t.state = n.None;
1454
- }
1455
- return this.closeNode(e, t, s), D;
1456
- }, h.prototype.writeChildNode = function(e, t, s) {
1457
- switch (e.type) {
1458
- case o.CData:
1459
- return this.cdata(e, t, s);
1460
- case o.Comment:
1461
- return this.comment(e, t, s);
1462
- case o.Element:
1463
- return this.element(e, t, s);
1464
- case o.Raw:
1465
- return this.raw(e, t, s);
1466
- case o.Text:
1467
- return this.text(e, t, s);
1468
- case o.ProcessingInstruction:
1469
- return this.processingInstruction(e, t, s);
1470
- case o.Dummy:
1471
- return "";
1472
- case o.Declaration:
1473
- return this.declaration(e, t, s);
1474
- case o.DocType:
1475
- return this.docType(e, t, s);
1476
- case o.AttributeDeclaration:
1477
- return this.dtdAttList(e, t, s);
1478
- case o.ElementDeclaration:
1479
- return this.dtdElement(e, t, s);
1480
- case o.EntityDeclaration:
1481
- return this.dtdEntity(e, t, s);
1482
- case o.NotationDeclaration:
1483
- return this.dtdNotation(e, t, s);
1484
- default:
1485
- throw new Error("Unknown XML node type: " + e.constructor.name);
1486
- }
1487
- }, h.prototype.processingInstruction = function(e, t, s) {
1488
- var c;
1489
- return this.openNode(e, t, s), t.state = n.OpenTag, c = this.indent(e, t, s) + "<?", t.state = n.InsideTag, c += e.target, e.value && (c += " " + e.value), t.state = n.CloseTag, c += t.spaceBeforeSlash + "?>", c += this.endline(e, t, s), t.state = n.None, this.closeNode(e, t, s), c;
1490
- }, h.prototype.raw = function(e, t, s) {
1491
- var c;
1492
- return this.openNode(e, t, s), t.state = n.OpenTag, c = this.indent(e, t, s), t.state = n.InsideTag, c += e.value, t.state = n.CloseTag, c += this.endline(e, t, s), t.state = n.None, this.closeNode(e, t, s), c;
1493
- }, h.prototype.text = function(e, t, s) {
1494
- var c;
1495
- return this.openNode(e, t, s), t.state = n.OpenTag, c = this.indent(e, t, s), t.state = n.InsideTag, c += e.value, t.state = n.CloseTag, c += this.endline(e, t, s), t.state = n.None, this.closeNode(e, t, s), c;
1496
- }, h.prototype.dtdAttList = function(e, t, s) {
1497
- var c;
1498
- return this.openNode(e, t, s), t.state = n.OpenTag, c = this.indent(e, t, s) + "<!ATTLIST", t.state = n.InsideTag, c += " " + e.elementName + " " + e.attributeName + " " + e.attributeType, e.defaultValueType !== "#DEFAULT" && (c += " " + e.defaultValueType), e.defaultValue && (c += ' "' + e.defaultValue + '"'), t.state = n.CloseTag, c += t.spaceBeforeSlash + ">" + this.endline(e, t, s), t.state = n.None, this.closeNode(e, t, s), c;
1499
- }, h.prototype.dtdElement = function(e, t, s) {
1500
- var c;
1501
- return this.openNode(e, t, s), t.state = n.OpenTag, c = this.indent(e, t, s) + "<!ELEMENT", t.state = n.InsideTag, c += " " + e.name + " " + e.value, t.state = n.CloseTag, c += t.spaceBeforeSlash + ">" + this.endline(e, t, s), t.state = n.None, this.closeNode(e, t, s), c;
1502
- }, h.prototype.dtdEntity = function(e, t, s) {
1503
- var c;
1504
- return this.openNode(e, t, s), t.state = n.OpenTag, c = this.indent(e, t, s) + "<!ENTITY", t.state = n.InsideTag, e.pe && (c += " %"), c += " " + e.name, e.value ? c += ' "' + e.value + '"' : (e.pubID && e.sysID ? c += ' PUBLIC "' + e.pubID + '" "' + e.sysID + '"' : e.sysID && (c += ' SYSTEM "' + e.sysID + '"'), e.nData && (c += " NDATA " + e.nData)), t.state = n.CloseTag, c += t.spaceBeforeSlash + ">" + this.endline(e, t, s), t.state = n.None, this.closeNode(e, t, s), c;
1505
- }, h.prototype.dtdNotation = function(e, t, s) {
1506
- var c;
1507
- return this.openNode(e, t, s), t.state = n.OpenTag, c = this.indent(e, t, s) + "<!NOTATION", t.state = n.InsideTag, c += " " + e.name, e.pubID && e.sysID ? c += ' PUBLIC "' + e.pubID + '" "' + e.sysID + '"' : e.pubID ? c += ' PUBLIC "' + e.pubID + '"' : e.sysID && (c += ' SYSTEM "' + e.sysID + '"'), t.state = n.CloseTag, c += t.spaceBeforeSlash + ">" + this.endline(e, t, s), t.state = n.None, this.closeNode(e, t, s), c;
1508
- }, h.prototype.openNode = function(e, t, s) {
1509
- }, h.prototype.closeNode = function(e, t, s) {
1510
- }, h.prototype.openAttribute = function(e, t, s) {
1511
- }, h.prototype.closeAttribute = function(e, t, s) {
1512
- }, h;
1513
- }();
1514
- }).call(X)), Wt.exports;
1515
- }
1516
- var He;
1517
- function fe() {
1518
- return He || (He = 1, (function() {
1519
- var o, n = function(l, h) {
1520
- for (var e in h)
1521
- p.call(h, e) && (l[e] = h[e]);
1522
- function t() {
1523
- this.constructor = l;
1524
- }
1525
- return t.prototype = h.prototype, l.prototype = new t(), l.__super__ = h.prototype, l;
1526
- }, p = {}.hasOwnProperty;
1527
- o = ur(), Kt.exports = function(l) {
1528
- n(h, l);
1529
- function h(e) {
1530
- h.__super__.constructor.call(this, e);
1531
- }
1532
- return h.prototype.document = function(e, t) {
1533
- var s, c, N, w, d;
1534
- for (t = this.filterOptions(t), w = "", d = e.children, c = 0, N = d.length; c < N; c++)
1535
- s = d[c], w += this.writeChildNode(s, t, 0);
1536
- return t.pretty && w.slice(-t.newline.length) === t.newline && (w = w.slice(0, -t.newline.length)), w;
1537
- }, h;
1538
- }(o);
1539
- }).call(X)), Kt.exports;
1540
- }
1541
- var ze;
1542
- function cr() {
1543
- return ze || (ze = 1, (function() {
1544
- var o, n, p, l, h, e, t, s = function(N, w) {
1545
- for (var d in w)
1546
- c.call(w, d) && (N[d] = w[d]);
1547
- function y() {
1548
- this.constructor = N;
1549
- }
1550
- return y.prototype = w.prototype, N.prototype = new y(), N.__super__ = w.prototype, N;
1551
- }, c = {}.hasOwnProperty;
1552
- t = et().isPlainObject, p = ir(), n = br(), l = Q(), o = W(), e = ar(), h = fe(), wt.exports = function(N) {
1553
- s(w, N);
1554
- function w(d) {
1555
- w.__super__.constructor.call(this, null), this.name = "#document", this.type = o.Document, this.documentURI = null, this.domConfig = new n(), d || (d = {}), d.writer || (d.writer = new h()), this.options = d, this.stringify = new e(d);
1556
- }
1557
- return Object.defineProperty(w.prototype, "implementation", {
1558
- value: new p()
1559
- }), Object.defineProperty(w.prototype, "doctype", {
1560
- get: function() {
1561
- var d, y, T, E;
1562
- for (E = this.children, y = 0, T = E.length; y < T; y++)
1563
- if (d = E[y], d.type === o.DocType)
1564
- return d;
1565
- return null;
1566
- }
1567
- }), Object.defineProperty(w.prototype, "documentElement", {
1568
- get: function() {
1569
- return this.rootObject || null;
1570
- }
1571
- }), Object.defineProperty(w.prototype, "inputEncoding", {
1572
- get: function() {
1573
- return null;
1574
- }
1575
- }), Object.defineProperty(w.prototype, "strictErrorChecking", {
1576
- get: function() {
1577
- return !1;
1578
- }
1579
- }), Object.defineProperty(w.prototype, "xmlEncoding", {
1580
- get: function() {
1581
- return this.children.length !== 0 && this.children[0].type === o.Declaration ? this.children[0].encoding : null;
1582
- }
1583
- }), Object.defineProperty(w.prototype, "xmlStandalone", {
1584
- get: function() {
1585
- return this.children.length !== 0 && this.children[0].type === o.Declaration ? this.children[0].standalone === "yes" : !1;
1586
- }
1587
- }), Object.defineProperty(w.prototype, "xmlVersion", {
1588
- get: function() {
1589
- return this.children.length !== 0 && this.children[0].type === o.Declaration ? this.children[0].version : "1.0";
1590
- }
1591
- }), Object.defineProperty(w.prototype, "URL", {
1592
- get: function() {
1593
- return this.documentURI;
1594
- }
1595
- }), Object.defineProperty(w.prototype, "origin", {
1596
- get: function() {
1597
- return null;
1598
- }
1599
- }), Object.defineProperty(w.prototype, "compatMode", {
1600
- get: function() {
1601
- return null;
1602
- }
1603
- }), Object.defineProperty(w.prototype, "characterSet", {
1604
- get: function() {
1605
- return null;
1606
- }
1607
- }), Object.defineProperty(w.prototype, "contentType", {
1608
- get: function() {
1609
- return null;
1610
- }
1611
- }), w.prototype.end = function(d) {
1612
- var y;
1613
- return y = {}, d ? t(d) && (y = d, d = this.options.writer) : d = this.options.writer, d.document(this, d.filterOptions(y));
1614
- }, w.prototype.toString = function(d) {
1615
- return this.options.writer.document(this, this.options.writer.filterOptions(d));
1616
- }, w.prototype.createElement = function(d) {
1617
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1618
- }, w.prototype.createDocumentFragment = function() {
1619
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1620
- }, w.prototype.createTextNode = function(d) {
1621
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1622
- }, w.prototype.createComment = function(d) {
1623
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1624
- }, w.prototype.createCDATASection = function(d) {
1625
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1626
- }, w.prototype.createProcessingInstruction = function(d, y) {
1627
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1628
- }, w.prototype.createAttribute = function(d) {
1629
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1630
- }, w.prototype.createEntityReference = function(d) {
1631
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1632
- }, w.prototype.getElementsByTagName = function(d) {
1633
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1634
- }, w.prototype.importNode = function(d, y) {
1635
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1636
- }, w.prototype.createElementNS = function(d, y) {
1637
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1638
- }, w.prototype.createAttributeNS = function(d, y) {
1639
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1640
- }, w.prototype.getElementsByTagNameNS = function(d, y) {
1641
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1642
- }, w.prototype.getElementById = function(d) {
1643
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1644
- }, w.prototype.adoptNode = function(d) {
1645
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1646
- }, w.prototype.normalizeDocument = function() {
1647
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1648
- }, w.prototype.renameNode = function(d, y, T) {
1649
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1650
- }, w.prototype.getElementsByClassName = function(d) {
1651
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1652
- }, w.prototype.createEvent = function(d) {
1653
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1654
- }, w.prototype.createRange = function() {
1655
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1656
- }, w.prototype.createNodeIterator = function(d, y, T) {
1657
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1658
- }, w.prototype.createTreeWalker = function(d, y, T) {
1659
- throw new Error("This DOM method is not implemented." + this.debugInfo());
1660
- }, w;
1661
- }(l);
1662
- }).call(X)), wt.exports;
1663
- }
1664
- var Gt = { exports: {} }, Qe;
1665
- function xr() {
1666
- return Qe || (Qe = 1, (function() {
1667
- var o, n, p, l, h, e, t, s, c, N, w, d, y, T, E, x, v, _, D, a, g, b, C, M = {}.hasOwnProperty;
1668
- C = et(), g = C.isObject, a = C.isFunction, b = C.isPlainObject, D = C.getValue, o = W(), d = cr(), y = Jt(), l = te(), h = ee(), E = ue(), _ = ce(), T = le(), N = re(), w = ae(), e = ne(), s = ie(), t = oe(), c = se(), p = or(), v = ar(), x = fe(), n = ct(), Gt.exports = function() {
1669
- function L(f, u, A) {
1670
- var P;
1671
- this.name = "?xml", this.type = o.Document, f || (f = {}), P = {}, f.writer ? b(f.writer) && (P = f.writer, f.writer = new x()) : f.writer = new x(), this.options = f, this.writer = f.writer, this.writerOptions = this.writer.filterOptions(P), this.stringify = new v(f), this.onDataCallback = u || function() {
1672
- }, this.onEndCallback = A || function() {
1673
- }, this.currentNode = null, this.currentLevel = -1, this.openTags = {}, this.documentStarted = !1, this.documentCompleted = !1, this.root = null;
1674
- }
1675
- return L.prototype.createChildNode = function(f) {
1676
- var u, A, P, B, R, k, j, U;
1677
- switch (f.type) {
1678
- case o.CData:
1679
- this.cdata(f.value);
1680
- break;
1681
- case o.Comment:
1682
- this.comment(f.value);
1683
- break;
1684
- case o.Element:
1685
- P = {}, j = f.attribs;
1686
- for (A in j)
1687
- M.call(j, A) && (u = j[A], P[A] = u.value);
1688
- this.node(f.name, P);
1689
- break;
1690
- case o.Dummy:
1691
- this.dummy();
1692
- break;
1693
- case o.Raw:
1694
- this.raw(f.value);
1695
- break;
1696
- case o.Text:
1697
- this.text(f.value);
1698
- break;
1699
- case o.ProcessingInstruction:
1700
- this.instruction(f.target, f.value);
1701
- break;
1702
- default:
1703
- throw new Error("This XML node type is not supported in a JS object: " + f.constructor.name);
1704
- }
1705
- for (U = f.children, R = 0, k = U.length; R < k; R++)
1706
- B = U[R], this.createChildNode(B), B.type === o.Element && this.up();
1707
- return this;
1708
- }, L.prototype.dummy = function() {
1709
- return this;
1710
- }, L.prototype.node = function(f, u, A) {
1711
- var P;
1712
- if (f == null)
1713
- throw new Error("Missing node name.");
1714
- if (this.root && this.currentLevel === -1)
1715
- throw new Error("Document can only have one root node. " + this.debugInfo(f));
1716
- return this.openCurrent(), f = D(f), u == null && (u = {}), u = D(u), g(u) || (P = [u, A], A = P[0], u = P[1]), this.currentNode = new y(this, f, u), this.currentNode.children = !1, this.currentLevel++, this.openTags[this.currentLevel] = this.currentNode, A != null && this.text(A), this;
1717
- }, L.prototype.element = function(f, u, A) {
1718
- var P, B, R, k, j, U;
1719
- if (this.currentNode && this.currentNode.type === o.DocType)
1720
- this.dtdElement.apply(this, arguments);
1721
- else if (Array.isArray(f) || g(f) || a(f))
1722
- for (k = this.options.noValidation, this.options.noValidation = !0, U = new d(this.options).element("TEMP_ROOT"), U.element(f), this.options.noValidation = k, j = U.children, B = 0, R = j.length; B < R; B++)
1723
- P = j[B], this.createChildNode(P), P.type === o.Element && this.up();
1724
- else
1725
- this.node(f, u, A);
1726
- return this;
1727
- }, L.prototype.attribute = function(f, u) {
1728
- var A, P;
1729
- if (!this.currentNode || this.currentNode.children)
1730
- throw new Error("att() can only be used immediately after an ele() call in callback mode. " + this.debugInfo(f));
1731
- if (f != null && (f = D(f)), g(f))
1732
- for (A in f)
1733
- M.call(f, A) && (P = f[A], this.attribute(A, P));
1734
- else
1735
- a(u) && (u = u.apply()), this.options.keepNullAttributes && u == null ? this.currentNode.attribs[f] = new p(this, f, "") : u != null && (this.currentNode.attribs[f] = new p(this, f, u));
1736
- return this;
1737
- }, L.prototype.text = function(f) {
1738
- var u;
1739
- return this.openCurrent(), u = new _(this, f), this.onData(this.writer.text(u, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
1740
- }, L.prototype.cdata = function(f) {
1741
- var u;
1742
- return this.openCurrent(), u = new l(this, f), this.onData(this.writer.cdata(u, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
1743
- }, L.prototype.comment = function(f) {
1744
- var u;
1745
- return this.openCurrent(), u = new h(this, f), this.onData(this.writer.comment(u, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
1746
- }, L.prototype.raw = function(f) {
1747
- var u;
1748
- return this.openCurrent(), u = new E(this, f), this.onData(this.writer.raw(u, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
1749
- }, L.prototype.instruction = function(f, u) {
1750
- var A, P, B, R, k;
1751
- if (this.openCurrent(), f != null && (f = D(f)), u != null && (u = D(u)), Array.isArray(f))
1752
- for (A = 0, R = f.length; A < R; A++)
1753
- P = f[A], this.instruction(P);
1754
- else if (g(f))
1755
- for (P in f)
1756
- M.call(f, P) && (B = f[P], this.instruction(P, B));
1757
- else
1758
- a(u) && (u = u.apply()), k = new T(this, f, u), this.onData(this.writer.processingInstruction(k, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);
1759
- return this;
1760
- }, L.prototype.declaration = function(f, u, A) {
1761
- var P;
1762
- if (this.openCurrent(), this.documentStarted)
1763
- throw new Error("declaration() must be the first node.");
1764
- return P = new N(this, f, u, A), this.onData(this.writer.declaration(P, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
1765
- }, L.prototype.doctype = function(f, u, A) {
1766
- if (this.openCurrent(), f == null)
1767
- throw new Error("Missing root node name.");
1768
- if (this.root)
1769
- throw new Error("dtd() must come before the root node.");
1770
- return this.currentNode = new w(this, u, A), this.currentNode.rootNodeName = f, this.currentNode.children = !1, this.currentLevel++, this.openTags[this.currentLevel] = this.currentNode, this;
1771
- }, L.prototype.dtdElement = function(f, u) {
1772
- var A;
1773
- return this.openCurrent(), A = new t(this, f, u), this.onData(this.writer.dtdElement(A, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
1774
- }, L.prototype.attList = function(f, u, A, P, B) {
1775
- var R;
1776
- return this.openCurrent(), R = new e(this, f, u, A, P, B), this.onData(this.writer.dtdAttList(R, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
1777
- }, L.prototype.entity = function(f, u) {
1778
- var A;
1779
- return this.openCurrent(), A = new s(this, !1, f, u), this.onData(this.writer.dtdEntity(A, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
1780
- }, L.prototype.pEntity = function(f, u) {
1781
- var A;
1782
- return this.openCurrent(), A = new s(this, !0, f, u), this.onData(this.writer.dtdEntity(A, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
1783
- }, L.prototype.notation = function(f, u) {
1784
- var A;
1785
- return this.openCurrent(), A = new c(this, f, u), this.onData(this.writer.dtdNotation(A, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
1786
- }, L.prototype.up = function() {
1787
- if (this.currentLevel < 0)
1788
- throw new Error("The document node has no parent.");
1789
- return this.currentNode ? (this.currentNode.children ? this.closeNode(this.currentNode) : this.openNode(this.currentNode), this.currentNode = null) : this.closeNode(this.openTags[this.currentLevel]), delete this.openTags[this.currentLevel], this.currentLevel--, this;
1790
- }, L.prototype.end = function() {
1791
- for (; this.currentLevel >= 0; )
1792
- this.up();
1793
- return this.onEnd();
1794
- }, L.prototype.openCurrent = function() {
1795
- if (this.currentNode)
1796
- return this.currentNode.children = !0, this.openNode(this.currentNode);
1797
- }, L.prototype.openNode = function(f) {
1798
- var u, A, P, B;
1799
- if (!f.isOpen) {
1800
- if (!this.root && this.currentLevel === 0 && f.type === o.Element && (this.root = f), A = "", f.type === o.Element) {
1801
- this.writerOptions.state = n.OpenTag, A = this.writer.indent(f, this.writerOptions, this.currentLevel) + "<" + f.name, B = f.attribs;
1802
- for (P in B)
1803
- M.call(B, P) && (u = B[P], A += this.writer.attribute(u, this.writerOptions, this.currentLevel));
1804
- A += (f.children ? ">" : "/>") + this.writer.endline(f, this.writerOptions, this.currentLevel), this.writerOptions.state = n.InsideTag;
1805
- } else
1806
- this.writerOptions.state = n.OpenTag, A = this.writer.indent(f, this.writerOptions, this.currentLevel) + "<!DOCTYPE " + f.rootNodeName, f.pubID && f.sysID ? A += ' PUBLIC "' + f.pubID + '" "' + f.sysID + '"' : f.sysID && (A += ' SYSTEM "' + f.sysID + '"'), f.children ? (A += " [", this.writerOptions.state = n.InsideTag) : (this.writerOptions.state = n.CloseTag, A += ">"), A += this.writer.endline(f, this.writerOptions, this.currentLevel);
1807
- return this.onData(A, this.currentLevel), f.isOpen = !0;
1808
- }
1809
- }, L.prototype.closeNode = function(f) {
1810
- var u;
1811
- if (!f.isClosed)
1812
- return u = "", this.writerOptions.state = n.CloseTag, f.type === o.Element ? u = this.writer.indent(f, this.writerOptions, this.currentLevel) + "</" + f.name + ">" + this.writer.endline(f, this.writerOptions, this.currentLevel) : u = this.writer.indent(f, this.writerOptions, this.currentLevel) + "]>" + this.writer.endline(f, this.writerOptions, this.currentLevel), this.writerOptions.state = n.None, this.onData(u, this.currentLevel), f.isClosed = !0;
1813
- }, L.prototype.onData = function(f, u) {
1814
- return this.documentStarted = !0, this.onDataCallback(f, u + 1);
1815
- }, L.prototype.onEnd = function() {
1816
- return this.documentCompleted = !0, this.onEndCallback();
1817
- }, L.prototype.debugInfo = function(f) {
1818
- return f == null ? "" : "node: <" + f + ">";
1819
- }, L.prototype.ele = function() {
1820
- return this.element.apply(this, arguments);
1821
- }, L.prototype.nod = function(f, u, A) {
1822
- return this.node(f, u, A);
1823
- }, L.prototype.txt = function(f) {
1824
- return this.text(f);
1825
- }, L.prototype.dat = function(f) {
1826
- return this.cdata(f);
1827
- }, L.prototype.com = function(f) {
1828
- return this.comment(f);
1829
- }, L.prototype.ins = function(f, u) {
1830
- return this.instruction(f, u);
1831
- }, L.prototype.dec = function(f, u, A) {
1832
- return this.declaration(f, u, A);
1833
- }, L.prototype.dtd = function(f, u, A) {
1834
- return this.doctype(f, u, A);
1835
- }, L.prototype.e = function(f, u, A) {
1836
- return this.element(f, u, A);
1837
- }, L.prototype.n = function(f, u, A) {
1838
- return this.node(f, u, A);
1839
- }, L.prototype.t = function(f) {
1840
- return this.text(f);
1841
- }, L.prototype.d = function(f) {
1842
- return this.cdata(f);
1843
- }, L.prototype.c = function(f) {
1844
- return this.comment(f);
1845
- }, L.prototype.r = function(f) {
1846
- return this.raw(f);
1847
- }, L.prototype.i = function(f, u) {
1848
- return this.instruction(f, u);
1849
- }, L.prototype.att = function() {
1850
- return this.currentNode && this.currentNode.type === o.DocType ? this.attList.apply(this, arguments) : this.attribute.apply(this, arguments);
1851
- }, L.prototype.a = function() {
1852
- return this.currentNode && this.currentNode.type === o.DocType ? this.attList.apply(this, arguments) : this.attribute.apply(this, arguments);
1853
- }, L.prototype.ent = function(f, u) {
1854
- return this.entity(f, u);
1855
- }, L.prototype.pent = function(f, u) {
1856
- return this.pEntity(f, u);
1857
- }, L.prototype.not = function(f, u) {
1858
- return this.notation(f, u);
1859
- }, L;
1860
- }();
1861
- }).call(X)), Gt.exports;
1862
- }
1863
- var Yt = { exports: {} }, $e;
1864
- function vr() {
1865
- return $e || ($e = 1, (function() {
1866
- var o, n, p, l = function(e, t) {
1867
- for (var s in t)
1868
- h.call(t, s) && (e[s] = t[s]);
1869
- function c() {
1870
- this.constructor = e;
1871
- }
1872
- return c.prototype = t.prototype, e.prototype = new c(), e.__super__ = t.prototype, e;
1873
- }, h = {}.hasOwnProperty;
1874
- o = W(), p = ur(), n = ct(), Yt.exports = function(e) {
1875
- l(t, e);
1876
- function t(s, c) {
1877
- this.stream = s, t.__super__.constructor.call(this, c);
1878
- }
1879
- return t.prototype.endline = function(s, c, N) {
1880
- return s.isLastRootNode && c.state === n.CloseTag ? "" : t.__super__.endline.call(this, s, c, N);
1881
- }, t.prototype.document = function(s, c) {
1882
- var N, w, d, y, T, E, x, v, _;
1883
- for (x = s.children, w = d = 0, T = x.length; d < T; w = ++d)
1884
- N = x[w], N.isLastRootNode = w === s.children.length - 1;
1885
- for (c = this.filterOptions(c), v = s.children, _ = [], y = 0, E = v.length; y < E; y++)
1886
- N = v[y], _.push(this.writeChildNode(N, c, 0));
1887
- return _;
1888
- }, t.prototype.attribute = function(s, c, N) {
1889
- return this.stream.write(t.__super__.attribute.call(this, s, c, N));
1890
- }, t.prototype.cdata = function(s, c, N) {
1891
- return this.stream.write(t.__super__.cdata.call(this, s, c, N));
1892
- }, t.prototype.comment = function(s, c, N) {
1893
- return this.stream.write(t.__super__.comment.call(this, s, c, N));
1894
- }, t.prototype.declaration = function(s, c, N) {
1895
- return this.stream.write(t.__super__.declaration.call(this, s, c, N));
1896
- }, t.prototype.docType = function(s, c, N) {
1897
- var w, d, y, T;
1898
- if (N || (N = 0), this.openNode(s, c, N), c.state = n.OpenTag, this.stream.write(this.indent(s, c, N)), this.stream.write("<!DOCTYPE " + s.root().name), s.pubID && s.sysID ? this.stream.write(' PUBLIC "' + s.pubID + '" "' + s.sysID + '"') : s.sysID && this.stream.write(' SYSTEM "' + s.sysID + '"'), s.children.length > 0) {
1899
- for (this.stream.write(" ["), this.stream.write(this.endline(s, c, N)), c.state = n.InsideTag, T = s.children, d = 0, y = T.length; d < y; d++)
1900
- w = T[d], this.writeChildNode(w, c, N + 1);
1901
- c.state = n.CloseTag, this.stream.write("]");
1902
- }
1903
- return c.state = n.CloseTag, this.stream.write(c.spaceBeforeSlash + ">"), this.stream.write(this.endline(s, c, N)), c.state = n.None, this.closeNode(s, c, N);
1904
- }, t.prototype.element = function(s, c, N) {
1905
- var w, d, y, T, E, x, v, _, D;
1906
- N || (N = 0), this.openNode(s, c, N), c.state = n.OpenTag, this.stream.write(this.indent(s, c, N) + "<" + s.name), _ = s.attribs;
1907
- for (v in _)
1908
- h.call(_, v) && (w = _[v], this.attribute(w, c, N));
1909
- if (y = s.children.length, T = y === 0 ? null : s.children[0], y === 0 || s.children.every(function(a) {
1910
- return (a.type === o.Text || a.type === o.Raw) && a.value === "";
1911
- }))
1912
- c.allowEmpty ? (this.stream.write(">"), c.state = n.CloseTag, this.stream.write("</" + s.name + ">")) : (c.state = n.CloseTag, this.stream.write(c.spaceBeforeSlash + "/>"));
1913
- else if (c.pretty && y === 1 && (T.type === o.Text || T.type === o.Raw) && T.value != null)
1914
- this.stream.write(">"), c.state = n.InsideTag, c.suppressPrettyCount++, this.writeChildNode(T, c, N + 1), c.suppressPrettyCount--, c.state = n.CloseTag, this.stream.write("</" + s.name + ">");
1915
- else {
1916
- for (this.stream.write(">" + this.endline(s, c, N)), c.state = n.InsideTag, D = s.children, E = 0, x = D.length; E < x; E++)
1917
- d = D[E], this.writeChildNode(d, c, N + 1);
1918
- c.state = n.CloseTag, this.stream.write(this.indent(s, c, N) + "</" + s.name + ">");
1919
- }
1920
- return this.stream.write(this.endline(s, c, N)), c.state = n.None, this.closeNode(s, c, N);
1921
- }, t.prototype.processingInstruction = function(s, c, N) {
1922
- return this.stream.write(t.__super__.processingInstruction.call(this, s, c, N));
1923
- }, t.prototype.raw = function(s, c, N) {
1924
- return this.stream.write(t.__super__.raw.call(this, s, c, N));
1925
- }, t.prototype.text = function(s, c, N) {
1926
- return this.stream.write(t.__super__.text.call(this, s, c, N));
1927
- }, t.prototype.dtdAttList = function(s, c, N) {
1928
- return this.stream.write(t.__super__.dtdAttList.call(this, s, c, N));
1929
- }, t.prototype.dtdElement = function(s, c, N) {
1930
- return this.stream.write(t.__super__.dtdElement.call(this, s, c, N));
1931
- }, t.prototype.dtdEntity = function(s, c, N) {
1932
- return this.stream.write(t.__super__.dtdEntity.call(this, s, c, N));
1933
- }, t.prototype.dtdNotation = function(s, c, N) {
1934
- return this.stream.write(t.__super__.dtdNotation.call(this, s, c, N));
1935
- }, t;
1936
- }(p);
1937
- }).call(X)), Yt.exports;
1938
- }
1939
- var Ze;
1940
- function Lr() {
1941
- return Ze || (Ze = 1, (function() {
1942
- var o, n, p, l, h, e, t, s, c, N;
1943
- N = et(), s = N.assign, c = N.isFunction, p = ir(), l = cr(), h = xr(), t = fe(), e = vr(), o = W(), n = ct(), J.create = function(w, d, y, T) {
1944
- var E, x;
1945
- if (w == null)
1946
- throw new Error("Root element needs a name.");
1947
- return T = s({}, d, y, T), E = new l(T), x = E.element(w), T.headless || (E.declaration(T), (T.pubID != null || T.sysID != null) && E.dtd(T)), x;
1948
- }, J.begin = function(w, d, y) {
1949
- var T;
1950
- return c(w) && (T = [w, d], d = T[0], y = T[1], w = {}), d ? new h(w, d, y) : new l(w);
1951
- }, J.stringWriter = function(w) {
1952
- return new t(w);
1953
- }, J.streamWriter = function(w, d) {
1954
- return new e(w, d);
1955
- }, J.implementation = new p(), J.nodeType = o, J.writerState = n;
1956
- }).call(X)), J;
1957
- }
1958
- var Je;
1959
- function Cr() {
1960
- return Je || (Je = 1, (function() {
1961
- var o, n, p, l, h, e = {}.hasOwnProperty;
1962
- o = Lr(), n = $t().defaults, l = function(t) {
1963
- return typeof t == "string" && (t.indexOf("&") >= 0 || t.indexOf(">") >= 0 || t.indexOf("<") >= 0);
1964
- }, h = function(t) {
1965
- return "<![CDATA[" + p(t) + "]]>";
1966
- }, p = function(t) {
1967
- return t.replace("]]>", "]]]]><![CDATA[>");
1968
- }, mt.Builder = function() {
1969
- function t(s) {
1970
- var c, N, w;
1971
- this.options = {}, N = n["0.2"];
1972
- for (c in N)
1973
- e.call(N, c) && (w = N[c], this.options[c] = w);
1974
- for (c in s)
1975
- e.call(s, c) && (w = s[c], this.options[c] = w);
1976
- }
1977
- return t.prototype.buildObject = function(s) {
1978
- var c, N, w, d, y;
1979
- return c = this.options.attrkey, N = this.options.charkey, Object.keys(s).length === 1 && this.options.rootName === n["0.2"].rootName ? (y = Object.keys(s)[0], s = s[y]) : y = this.options.rootName, w = /* @__PURE__ */ function(T) {
1980
- return function(E, x) {
1981
- var v, _, D, a, g, b;
1982
- if (typeof x != "object")
1983
- T.options.cdata && l(x) ? E.raw(h(x)) : E.txt(x);
1984
- else if (Array.isArray(x)) {
1985
- for (a in x)
1986
- if (e.call(x, a)) {
1987
- _ = x[a];
1988
- for (g in _)
1989
- D = _[g], E = w(E.ele(g), D).up();
1990
- }
1991
- } else
1992
- for (g in x)
1993
- if (e.call(x, g))
1994
- if (_ = x[g], g === c) {
1995
- if (typeof _ == "object")
1996
- for (v in _)
1997
- b = _[v], E = E.att(v, b);
1998
- } else if (g === N)
1999
- T.options.cdata && l(_) ? E = E.raw(h(_)) : E = E.txt(_);
2000
- else if (Array.isArray(_))
2001
- for (a in _)
2002
- e.call(_, a) && (D = _[a], typeof D == "string" ? T.options.cdata && l(D) ? E = E.ele(g).raw(h(D)).up() : E = E.ele(g, D).up() : E = w(E.ele(g), D).up());
2003
- else typeof _ == "object" ? E = w(E.ele(g), _).up() : typeof _ == "string" && T.options.cdata && l(_) ? E = E.ele(g).raw(h(_)).up() : (_ == null && (_ = ""), E = E.ele(g, _.toString()).up());
2004
- return E;
2005
- };
2006
- }(this), d = o.create(y, this.options.xmldec, this.options.doctype, {
2007
- headless: this.options.headless,
2008
- allowSurrogateChars: this.options.allowSurrogateChars
2009
- }), w(d, s).end(this.options.renderOpts);
2010
- }, t;
2011
- }();
2012
- }).call(X)), mt;
2013
- }
2014
- var Ht = {}, he = {};
2015
- (function(o) {
2016
- (function(n) {
2017
- n.parser = function(i, r) {
2018
- return new l(i, r);
2019
- }, n.SAXParser = l, n.SAXStream = d, n.createStream = N, n.MAX_BUFFER_LENGTH = 64 * 1024;
2020
- var p = [
2021
- "comment",
2022
- "sgmlDecl",
2023
- "textNode",
2024
- "tagName",
2025
- "doctype",
2026
- "procInstName",
2027
- "procInstBody",
2028
- "entity",
2029
- "attribName",
2030
- "attribValue",
2031
- "cdata",
2032
- "script"
2033
- ];
2034
- n.EVENTS = [
2035
- "text",
2036
- "processinginstruction",
2037
- "sgmldeclaration",
2038
- "doctype",
2039
- "comment",
2040
- "opentagstart",
2041
- "attribute",
2042
- "opentag",
2043
- "closetag",
2044
- "opencdata",
2045
- "cdata",
2046
- "closecdata",
2047
- "error",
2048
- "end",
2049
- "ready",
2050
- "script",
2051
- "opennamespace",
2052
- "closenamespace"
2053
- ];
2054
- function l(i, r) {
2055
- if (!(this instanceof l))
2056
- return new l(i, r);
2057
- var I = this;
2058
- e(I), I.q = I.c = "", I.bufferCheckPosition = n.MAX_BUFFER_LENGTH, I.encoding = null, I.opt = r || {}, I.opt.lowercase = I.opt.lowercase || I.opt.lowercasetags, I.looseCase = I.opt.lowercase ? "toLowerCase" : "toUpperCase", I.opt.maxEntityCount = I.opt.maxEntityCount || 512, I.opt.maxEntityDepth = I.opt.maxEntityDepth || 4, I.entityCount = I.entityDepth = 0, I.tags = [], I.closed = I.closedRoot = I.sawRoot = !1, I.tag = I.error = null, I.strict = !!i, I.noscript = !!(i || I.opt.noscript), I.state = u.BEGIN, I.strictEntities = I.opt.strictEntities, I.ENTITIES = I.strictEntities ? Object.create(n.XML_ENTITIES) : Object.create(n.ENTITIES), I.attribList = [], I.opt.xmlns && (I.ns = Object.create(v)), I.opt.unquotedAttributeValues === void 0 && (I.opt.unquotedAttributeValues = !i), I.trackPosition = I.opt.position !== !1, I.trackPosition && (I.position = I.line = I.column = 0), P(I, "onready");
2059
- }
2060
- Object.create || (Object.create = function(i) {
2061
- function r() {
2062
- }
2063
- r.prototype = i;
2064
- var I = new r();
2065
- return I;
2066
- }), Object.keys || (Object.keys = function(i) {
2067
- var r = [];
2068
- for (var I in i) i.hasOwnProperty(I) && r.push(I);
2069
- return r;
2070
- });
2071
- function h(i) {
2072
- for (var r = Math.max(n.MAX_BUFFER_LENGTH, 10), I = 0, m = 0, q = p.length; m < q; m++) {
2073
- var K = i[p[m]].length;
2074
- if (K > r)
2075
- switch (p[m]) {
2076
- case "textNode":
2077
- st(i);
2078
- break;
2079
- case "cdata":
2080
- U(i, "oncdata", i.cdata), i.cdata = "";
2081
- break;
2082
- case "script":
2083
- U(i, "onscript", i.script), i.script = "";
2084
- break;
2085
- default:
2086
- rt(i, "Max buffer length exceeded: " + p[m]);
2087
- }
2088
- I = Math.max(I, K);
2089
- }
2090
- var G = n.MAX_BUFFER_LENGTH - I;
2091
- i.bufferCheckPosition = G + i.position;
2092
- }
2093
- function e(i) {
2094
- for (var r = 0, I = p.length; r < I; r++)
2095
- i[p[r]] = "";
2096
- }
2097
- function t(i) {
2098
- st(i), i.cdata !== "" && (U(i, "oncdata", i.cdata), i.cdata = ""), i.script !== "" && (U(i, "onscript", i.script), i.script = "");
2099
- }
2100
- l.prototype = {
2101
- end: function() {
2102
- ye(this);
2103
- },
2104
- write: mr,
2105
- resume: function() {
2106
- return this.error = null, this;
2107
- },
2108
- close: function() {
2109
- return this.write(null);
2110
- },
2111
- flush: function() {
2112
- t(this);
2113
- }
2114
- };
2115
- var s;
2116
- try {
2117
- s = Qt.Stream;
2118
- } catch {
2119
- s = function() {
2120
- };
2121
- }
2122
- s || (s = function() {
2123
- });
2124
- var c = n.EVENTS.filter(function(i) {
2125
- return i !== "error" && i !== "end";
2126
- });
2127
- function N(i, r) {
2128
- return new d(i, r);
2129
- }
2130
- function w(i, r) {
2131
- if (i.length >= 2) {
2132
- if (i[0] === 255 && i[1] === 254)
2133
- return "utf-16le";
2134
- if (i[0] === 254 && i[1] === 255)
2135
- return "utf-16be";
2136
- }
2137
- return i.length >= 3 && i[0] === 239 && i[1] === 187 && i[2] === 191 ? "utf8" : i.length >= 4 ? i[0] === 60 && i[1] === 0 && i[2] === 63 && i[3] === 0 ? "utf-16le" : i[0] === 0 && i[1] === 60 && i[2] === 0 && i[3] === 63 ? "utf-16be" : "utf8" : r ? "utf8" : null;
2138
- }
2139
- function d(i, r) {
2140
- if (!(this instanceof d))
2141
- return new d(i, r);
2142
- s.apply(this), this._parser = new l(i, r), this.writable = !0, this.readable = !0;
2143
- var I = this;
2144
- this._parser.onend = function() {
2145
- I.emit("end");
2146
- }, this._parser.onerror = function(m) {
2147
- I.emit("error", m), I._parser.error = null;
2148
- }, this._decoder = null, this._decoderBuffer = null, c.forEach(function(m) {
2149
- Object.defineProperty(I, "on" + m, {
2150
- get: function() {
2151
- return I._parser["on" + m];
2152
- },
2153
- set: function(q) {
2154
- if (!q)
2155
- return I.removeAllListeners(m), I._parser["on" + m] = q, q;
2156
- I.on(m, q);
2157
- },
2158
- enumerable: !0,
2159
- configurable: !1
2160
- });
2161
- });
2162
- }
2163
- d.prototype = Object.create(s.prototype, {
2164
- constructor: {
2165
- value: d
2166
- }
2167
- }), d.prototype._decodeBuffer = function(i, r) {
2168
- if (this._decoderBuffer && (i = Buffer.concat([this._decoderBuffer, i]), this._decoderBuffer = null), !this._decoder) {
2169
- var I = w(i, r);
2170
- if (!I)
2171
- return this._decoderBuffer = i, "";
2172
- this._parser.encoding = I, this._decoder = new TextDecoder(I);
2173
- }
2174
- return this._decoder.decode(i, { stream: !r });
2175
- }, d.prototype.write = function(i) {
2176
- if (typeof Buffer == "function" && typeof Buffer.isBuffer == "function" && Buffer.isBuffer(i))
2177
- i = this._decodeBuffer(i, !1);
2178
- else if (this._decoderBuffer) {
2179
- var r = this._decodeBuffer(Buffer.alloc(0), !0);
2180
- r && (this._parser.write(r), this.emit("data", r));
2181
- }
2182
- return this._parser.write(i.toString()), this.emit("data", i), !0;
2183
- }, d.prototype.end = function(i) {
2184
- if (i && i.length && this.write(i), this._decoderBuffer) {
2185
- var r = this._decodeBuffer(Buffer.alloc(0), !0);
2186
- r && (this._parser.write(r), this.emit("data", r));
2187
- } else if (this._decoder) {
2188
- var I = this._decoder.decode();
2189
- I && (this._parser.write(I), this.emit("data", I));
2190
- }
2191
- return this._parser.end(), !0;
2192
- }, d.prototype.on = function(i, r) {
2193
- var I = this;
2194
- return !I._parser["on" + i] && c.indexOf(i) !== -1 && (I._parser["on" + i] = function() {
2195
- var m = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
2196
- m.splice(0, 0, i), I.emit.apply(I, m);
2197
- }), s.prototype.on.call(I, i, r);
2198
- };
2199
- var y = "[CDATA[", T = "DOCTYPE", E = "http://www.w3.org/XML/1998/namespace", x = "http://www.w3.org/2000/xmlns/", v = { xml: E, xmlns: 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]/, D = /[:_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-]/, a = /[#:_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]/, g = /[#:_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 b(i) {
2201
- return i === " " || i === `
2202
- ` || i === "\r" || i === " ";
2203
- }
2204
- function C(i) {
2205
- return i === '"' || i === "'";
2206
- }
2207
- function M(i) {
2208
- return i === ">" || b(i);
2209
- }
2210
- function L(i, r) {
2211
- return i.test(r);
2212
- }
2213
- function f(i, r) {
2214
- return !L(i, r);
2215
- }
2216
- var u = 0;
2217
- n.STATE = {
2218
- BEGIN: u++,
2219
- // leading byte order mark or whitespace
2220
- BEGIN_WHITESPACE: u++,
2221
- // leading whitespace
2222
- TEXT: u++,
2223
- // general stuff
2224
- TEXT_ENTITY: u++,
2225
- // &amp and such.
2226
- OPEN_WAKA: u++,
2227
- // <
2228
- SGML_DECL: u++,
2229
- // <!BLARG
2230
- SGML_DECL_QUOTED: u++,
2231
- // <!BLARG foo "bar
2232
- DOCTYPE: u++,
2233
- // <!DOCTYPE
2234
- DOCTYPE_QUOTED: u++,
2235
- // <!DOCTYPE "//blah
2236
- DOCTYPE_DTD: u++,
2237
- // <!DOCTYPE "//blah" [ ...
2238
- DOCTYPE_DTD_QUOTED: u++,
2239
- // <!DOCTYPE "//blah" [ "foo
2240
- COMMENT_STARTING: u++,
2241
- // <!-
2242
- COMMENT: u++,
2243
- // <!--
2244
- COMMENT_ENDING: u++,
2245
- // <!-- blah -
2246
- COMMENT_ENDED: u++,
2247
- // <!-- blah --
2248
- CDATA: u++,
2249
- // <![CDATA[ something
2250
- CDATA_ENDING: u++,
2251
- // ]
2252
- CDATA_ENDING_2: u++,
2253
- // ]]
2254
- PROC_INST: u++,
2255
- // <?hi
2256
- PROC_INST_BODY: u++,
2257
- // <?hi there
2258
- PROC_INST_ENDING: u++,
2259
- // <?hi "there" ?
2260
- OPEN_TAG: u++,
2261
- // <strong
2262
- OPEN_TAG_SLASH: u++,
2263
- // <strong /
2264
- ATTRIB: u++,
2265
- // <a
2266
- ATTRIB_NAME: u++,
2267
- // <a foo
2268
- ATTRIB_NAME_SAW_WHITE: u++,
2269
- // <a foo _
2270
- ATTRIB_VALUE: u++,
2271
- // <a foo=
2272
- ATTRIB_VALUE_QUOTED: u++,
2273
- // <a foo="bar
2274
- ATTRIB_VALUE_CLOSED: u++,
2275
- // <a foo="bar"
2276
- ATTRIB_VALUE_UNQUOTED: u++,
2277
- // <a foo=bar
2278
- ATTRIB_VALUE_ENTITY_Q: u++,
2279
- // <foo bar="&quot;"
2280
- ATTRIB_VALUE_ENTITY_U: u++,
2281
- // <foo bar=&quot
2282
- CLOSE_TAG: u++,
2283
- // </a
2284
- CLOSE_TAG_SAW_WHITE: u++,
2285
- // </a >
2286
- SCRIPT: u++,
2287
- // <script> ...
2288
- SCRIPT_ENDING: u++
2289
- // <script> ... <
2290
- }, n.XML_ENTITIES = {
2291
- amp: "&",
2292
- gt: ">",
2293
- lt: "<",
2294
- quot: '"',
2295
- apos: "'"
2296
- }, n.ENTITIES = {
2297
- amp: "&",
2298
- gt: ">",
2299
- lt: "<",
2300
- quot: '"',
2301
- apos: "'",
2302
- AElig: 198,
2303
- Aacute: 193,
2304
- Acirc: 194,
2305
- Agrave: 192,
2306
- Aring: 197,
2307
- Atilde: 195,
2308
- Auml: 196,
2309
- Ccedil: 199,
2310
- ETH: 208,
2311
- Eacute: 201,
2312
- Ecirc: 202,
2313
- Egrave: 200,
2314
- Euml: 203,
2315
- Iacute: 205,
2316
- Icirc: 206,
2317
- Igrave: 204,
2318
- Iuml: 207,
2319
- Ntilde: 209,
2320
- Oacute: 211,
2321
- Ocirc: 212,
2322
- Ograve: 210,
2323
- Oslash: 216,
2324
- Otilde: 213,
2325
- Ouml: 214,
2326
- THORN: 222,
2327
- Uacute: 218,
2328
- Ucirc: 219,
2329
- Ugrave: 217,
2330
- Uuml: 220,
2331
- Yacute: 221,
2332
- aacute: 225,
2333
- acirc: 226,
2334
- aelig: 230,
2335
- agrave: 224,
2336
- aring: 229,
2337
- atilde: 227,
2338
- auml: 228,
2339
- ccedil: 231,
2340
- eacute: 233,
2341
- ecirc: 234,
2342
- egrave: 232,
2343
- eth: 240,
2344
- euml: 235,
2345
- iacute: 237,
2346
- icirc: 238,
2347
- igrave: 236,
2348
- iuml: 239,
2349
- ntilde: 241,
2350
- oacute: 243,
2351
- ocirc: 244,
2352
- ograve: 242,
2353
- oslash: 248,
2354
- otilde: 245,
2355
- ouml: 246,
2356
- szlig: 223,
2357
- thorn: 254,
2358
- uacute: 250,
2359
- ucirc: 251,
2360
- ugrave: 249,
2361
- uuml: 252,
2362
- yacute: 253,
2363
- yuml: 255,
2364
- copy: 169,
2365
- reg: 174,
2366
- nbsp: 160,
2367
- iexcl: 161,
2368
- cent: 162,
2369
- pound: 163,
2370
- curren: 164,
2371
- yen: 165,
2372
- brvbar: 166,
2373
- sect: 167,
2374
- uml: 168,
2375
- ordf: 170,
2376
- laquo: 171,
2377
- not: 172,
2378
- shy: 173,
2379
- macr: 175,
2380
- deg: 176,
2381
- plusmn: 177,
2382
- sup1: 185,
2383
- sup2: 178,
2384
- sup3: 179,
2385
- acute: 180,
2386
- micro: 181,
2387
- para: 182,
2388
- middot: 183,
2389
- cedil: 184,
2390
- ordm: 186,
2391
- raquo: 187,
2392
- frac14: 188,
2393
- frac12: 189,
2394
- frac34: 190,
2395
- iquest: 191,
2396
- times: 215,
2397
- divide: 247,
2398
- OElig: 338,
2399
- oelig: 339,
2400
- Scaron: 352,
2401
- scaron: 353,
2402
- Yuml: 376,
2403
- fnof: 402,
2404
- circ: 710,
2405
- tilde: 732,
2406
- Alpha: 913,
2407
- Beta: 914,
2408
- Gamma: 915,
2409
- Delta: 916,
2410
- Epsilon: 917,
2411
- Zeta: 918,
2412
- Eta: 919,
2413
- Theta: 920,
2414
- Iota: 921,
2415
- Kappa: 922,
2416
- Lambda: 923,
2417
- Mu: 924,
2418
- Nu: 925,
2419
- Xi: 926,
2420
- Omicron: 927,
2421
- Pi: 928,
2422
- Rho: 929,
2423
- Sigma: 931,
2424
- Tau: 932,
2425
- Upsilon: 933,
2426
- Phi: 934,
2427
- Chi: 935,
2428
- Psi: 936,
2429
- Omega: 937,
2430
- alpha: 945,
2431
- beta: 946,
2432
- gamma: 947,
2433
- delta: 948,
2434
- epsilon: 949,
2435
- zeta: 950,
2436
- eta: 951,
2437
- theta: 952,
2438
- iota: 953,
2439
- kappa: 954,
2440
- lambda: 955,
2441
- mu: 956,
2442
- nu: 957,
2443
- xi: 958,
2444
- omicron: 959,
2445
- pi: 960,
2446
- rho: 961,
2447
- sigmaf: 962,
2448
- sigma: 963,
2449
- tau: 964,
2450
- upsilon: 965,
2451
- phi: 966,
2452
- chi: 967,
2453
- psi: 968,
2454
- omega: 969,
2455
- thetasym: 977,
2456
- upsih: 978,
2457
- piv: 982,
2458
- ensp: 8194,
2459
- emsp: 8195,
2460
- thinsp: 8201,
2461
- zwnj: 8204,
2462
- zwj: 8205,
2463
- lrm: 8206,
2464
- rlm: 8207,
2465
- ndash: 8211,
2466
- mdash: 8212,
2467
- lsquo: 8216,
2468
- rsquo: 8217,
2469
- sbquo: 8218,
2470
- ldquo: 8220,
2471
- rdquo: 8221,
2472
- bdquo: 8222,
2473
- dagger: 8224,
2474
- Dagger: 8225,
2475
- bull: 8226,
2476
- hellip: 8230,
2477
- permil: 8240,
2478
- prime: 8242,
2479
- Prime: 8243,
2480
- lsaquo: 8249,
2481
- rsaquo: 8250,
2482
- oline: 8254,
2483
- frasl: 8260,
2484
- euro: 8364,
2485
- image: 8465,
2486
- weierp: 8472,
2487
- real: 8476,
2488
- trade: 8482,
2489
- alefsym: 8501,
2490
- larr: 8592,
2491
- uarr: 8593,
2492
- rarr: 8594,
2493
- darr: 8595,
2494
- harr: 8596,
2495
- crarr: 8629,
2496
- lArr: 8656,
2497
- uArr: 8657,
2498
- rArr: 8658,
2499
- dArr: 8659,
2500
- hArr: 8660,
2501
- forall: 8704,
2502
- part: 8706,
2503
- exist: 8707,
2504
- empty: 8709,
2505
- nabla: 8711,
2506
- isin: 8712,
2507
- notin: 8713,
2508
- ni: 8715,
2509
- prod: 8719,
2510
- sum: 8721,
2511
- minus: 8722,
2512
- lowast: 8727,
2513
- radic: 8730,
2514
- prop: 8733,
2515
- infin: 8734,
2516
- ang: 8736,
2517
- and: 8743,
2518
- or: 8744,
2519
- cap: 8745,
2520
- cup: 8746,
2521
- int: 8747,
2522
- there4: 8756,
2523
- sim: 8764,
2524
- cong: 8773,
2525
- asymp: 8776,
2526
- ne: 8800,
2527
- equiv: 8801,
2528
- le: 8804,
2529
- ge: 8805,
2530
- sub: 8834,
2531
- sup: 8835,
2532
- nsub: 8836,
2533
- sube: 8838,
2534
- supe: 8839,
2535
- oplus: 8853,
2536
- otimes: 8855,
2537
- perp: 8869,
2538
- sdot: 8901,
2539
- lceil: 8968,
2540
- rceil: 8969,
2541
- lfloor: 8970,
2542
- rfloor: 8971,
2543
- lang: 9001,
2544
- rang: 9002,
2545
- loz: 9674,
2546
- spades: 9824,
2547
- clubs: 9827,
2548
- hearts: 9829,
2549
- diams: 9830
2550
- }, Object.keys(n.ENTITIES).forEach(function(i) {
2551
- var r = n.ENTITIES[i], I = typeof r == "number" ? String.fromCharCode(r) : r;
2552
- n.ENTITIES[i] = I;
2553
- });
2554
- for (var A in n.STATE)
2555
- n.STATE[n.STATE[A]] = A;
2556
- u = n.STATE;
2557
- function P(i, r, I) {
2558
- i[r] && i[r](I);
2559
- }
2560
- function B(i) {
2561
- var r = i && i.match(/(?:^|\s)encoding\s*=\s*(['"])([^'"]+)\1/i);
2562
- return r ? r[2] : null;
2563
- }
2564
- function R(i) {
2565
- return i ? i.toLowerCase().replace(/[^a-z0-9]/g, "") : null;
2566
- }
2567
- function k(i, r) {
2568
- const I = R(i), m = R(r);
2569
- return !I || !m ? !0 : m === "utf16" ? I === "utf16le" || I === "utf16be" : I === m;
2570
- }
2571
- function j(i, r) {
2572
- if (!(!i.strict || !i.encoding || !r || r.name !== "xml")) {
2573
- var I = B(r.body);
2574
- I && !k(i.encoding, I) && V(
2575
- i,
2576
- "XML declaration encoding " + I + " does not match detected stream encoding " + i.encoding.toUpperCase()
2577
- );
2578
- }
2579
- }
2580
- function U(i, r, I) {
2581
- i.textNode && st(i), P(i, r, I);
2582
- }
2583
- function st(i) {
2584
- i.textNode = de(i.opt, i.textNode), i.textNode && P(i, "ontext", i.textNode), i.textNode = "";
2585
- }
2586
- function de(i, r) {
2587
- return i.trim && (r = r.trim()), i.normalize && (r = r.replace(/\s+/g, " ")), r;
2588
- }
2589
- function rt(i, r) {
2590
- return st(i), i.trackPosition && (r += `
2591
- Line: ` + i.line + `
2592
- Column: ` + i.column + `
2593
- Char: ` + i.c), r = new Error(r), i.error = r, P(i, "onerror", r), i;
2594
- }
2595
- function ye(i) {
2596
- return i.sawRoot && !i.closedRoot && V(i, "Unclosed root tag"), i.state !== u.BEGIN && i.state !== u.BEGIN_WHITESPACE && i.state !== u.TEXT && rt(i, "Unexpected end"), st(i), i.c = "", i.closed = !0, P(i, "onend"), l.call(i, i.strict, i.opt), i;
2597
- }
2598
- function V(i, r) {
2599
- if (typeof i != "object" || !(i instanceof l))
2600
- throw new Error("bad call to strictFail");
2601
- i.strict && rt(i, r);
2602
- }
2603
- function dr(i) {
2604
- i.strict || (i.tagName = i.tagName[i.looseCase]());
2605
- var r = i.tags[i.tags.length - 1] || i, I = i.tag = { name: i.tagName, attributes: {} };
2606
- i.opt.xmlns && (I.ns = r.ns), i.attribList.length = 0, U(i, "onopentagstart", I);
2607
- }
2608
- function lt(i, r) {
2609
- var I = i.indexOf(":"), m = I < 0 ? ["", i] : i.split(":"), q = m[0], K = m[1];
2610
- return r && i === "xmlns" && (q = "xmlns", K = ""), { prefix: q, local: K };
2611
- }
2612
- function ft(i) {
2613
- if (i.strict || (i.attribName = i.attribName[i.looseCase]()), i.attribList.indexOf(i.attribName) !== -1 || i.tag.attributes.hasOwnProperty(i.attribName)) {
2614
- i.attribName = i.attribValue = "";
2615
- return;
2616
- }
2617
- if (i.opt.xmlns) {
2618
- var r = lt(i.attribName, !0), I = r.prefix, m = r.local;
2619
- if (I === "xmlns")
2620
- if (m === "xml" && i.attribValue !== E)
2621
- V(
2622
- i,
2623
- "xml: prefix must be bound to " + E + `
2624
- Actual: ` + i.attribValue
2625
- );
2626
- else if (m === "xmlns" && i.attribValue !== x)
2627
- V(
2628
- i,
2629
- "xmlns: prefix must be bound to " + x + `
2630
- Actual: ` + i.attribValue
2631
- );
2632
- else {
2633
- var q = i.tag, K = i.tags[i.tags.length - 1] || i;
2634
- q.ns === K.ns && (q.ns = Object.create(K.ns)), q.ns[m] = i.attribValue;
2635
- }
2636
- i.attribList.push([i.attribName, i.attribValue]);
2637
- } else
2638
- i.tag.attributes[i.attribName] = i.attribValue, U(i, "onattribute", {
2639
- name: i.attribName,
2640
- value: i.attribValue
2641
- });
2642
- i.attribName = i.attribValue = "";
2643
- }
2644
- function nt(i, r) {
2645
- if (i.opt.xmlns) {
2646
- var I = i.tag, m = lt(i.tagName);
2647
- I.prefix = m.prefix, I.local = m.local, I.uri = I.ns[m.prefix] || "", I.prefix && !I.uri && (V(
2648
- i,
2649
- "Unbound namespace prefix: " + JSON.stringify(i.tagName)
2650
- ), I.uri = m.prefix);
2651
- var q = i.tags[i.tags.length - 1] || i;
2652
- I.ns && q.ns !== I.ns && Object.keys(I.ns).forEach(function(we) {
2653
- U(i, "onopennamespace", {
2654
- prefix: we,
2655
- uri: I.ns[we]
2656
- });
2657
- });
2658
- for (var K = 0, G = i.attribList.length; K < G; K++) {
2659
- var H = i.attribList[K], z = H[0], $ = H[1], Y = lt(z, !0), Z = Y.prefix, gr = Y.local, ge = Z === "" ? "" : I.ns[Z] || "", dt = {
2660
- name: z,
2661
- value: $,
2662
- prefix: Z,
2663
- local: gr,
2664
- uri: ge
2665
- };
2666
- Z && Z !== "xmlns" && !ge && (V(
2667
- i,
2668
- "Unbound namespace prefix: " + JSON.stringify(Z)
2669
- ), dt.uri = Z), i.tag.attributes[z] = dt, U(i, "onattribute", dt);
2670
- }
2671
- i.attribList.length = 0;
2672
- }
2673
- i.tag.isSelfClosing = !!r, i.sawRoot = !0, i.tags.push(i.tag), U(i, "onopentag", i.tag), r || (!i.noscript && i.tagName.toLowerCase() === "script" ? i.state = u.SCRIPT : i.state = u.TEXT, i.tag = null, i.tagName = ""), i.attribName = i.attribValue = "", i.attribList.length = 0;
2674
- }
2675
- function ht(i) {
2676
- if (!i.tagName) {
2677
- V(i, "Weird empty close tag."), i.textNode += "</>", i.state = u.TEXT;
2678
- return;
2679
- }
2680
- if (i.script) {
2681
- if (i.tagName !== "script") {
2682
- i.script += "</" + i.tagName + ">", i.tagName = "", i.state = u.SCRIPT;
2683
- return;
2684
- }
2685
- U(i, "onscript", i.script), i.script = "";
2686
- }
2687
- var r = i.tags.length, I = i.tagName;
2688
- i.strict || (I = I[i.looseCase]());
2689
- for (var m = I; r--; ) {
2690
- var q = i.tags[r];
2691
- if (q.name !== m)
2692
- V(i, "Unexpected close tag");
2693
- else
2694
- break;
2695
- }
2696
- if (r < 0) {
2697
- V(i, "Unmatched closing tag: " + i.tagName), i.textNode += "</" + i.tagName + ">", i.state = u.TEXT;
2698
- return;
2699
- }
2700
- i.tagName = I;
2701
- for (var K = i.tags.length; K-- > r; ) {
2702
- var G = i.tag = i.tags.pop();
2703
- i.tagName = i.tag.name, U(i, "onclosetag", i.tagName);
2704
- var H = {};
2705
- for (var z in G.ns)
2706
- H[z] = G.ns[z];
2707
- var $ = i.tags[i.tags.length - 1] || i;
2708
- i.opt.xmlns && G.ns !== $.ns && Object.keys(G.ns).forEach(function(Y) {
2709
- var Z = G.ns[Y];
2710
- U(i, "onclosenamespace", { prefix: Y, uri: Z });
2711
- });
2712
- }
2713
- r === 0 && (i.closedRoot = !0), i.tagName = i.attribValue = i.attribName = "", i.attribList.length = 0, i.state = u.TEXT;
2714
- }
2715
- function yr(i) {
2716
- var r = i.entity, I = r.toLowerCase(), m, q = "";
2717
- return i.ENTITIES[r] ? i.ENTITIES[r] : i.ENTITIES[I] ? i.ENTITIES[I] : (r = I, r.charAt(0) === "#" && (r.charAt(1) === "x" ? (r = r.slice(2), m = parseInt(r, 16), q = m.toString(16)) : (r = r.slice(1), m = parseInt(r, 10), q = m.toString(10))), r = r.replace(/^0+/, ""), isNaN(m) || q.toLowerCase() !== r || m < 0 || m > 1114111 ? (V(i, "Invalid character entity"), "&" + i.entity + ";") : String.fromCodePoint(m));
2718
- }
2719
- function me(i, r) {
2720
- r === "<" ? (i.state = u.OPEN_WAKA, i.startTagPosition = i.position) : b(r) || (V(i, "Non-whitespace before first tag."), i.textNode = r, i.state = u.TEXT);
2721
- }
2722
- function pt(i, r) {
2723
- var I = "";
2724
- return r < i.length && (I = i.charAt(r)), I;
2725
- }
2726
- function mr(i) {
2727
- var r = this;
2728
- if (this.error)
2729
- throw this.error;
2730
- if (r.closed)
2731
- return rt(
2732
- r,
2733
- "Cannot write after close. Assign an onready handler."
2734
- );
2735
- if (i === null)
2736
- return ye(r);
2737
- typeof i == "object" && (i = i.toString());
2738
- for (var I = 0, m = ""; m = pt(i, I++), r.c = m, !!m; )
2739
- switch (r.trackPosition && (r.position++, m === `
2740
- ` ? (r.line++, r.column = 0) : r.column++), r.state) {
2741
- case u.BEGIN:
2742
- if (r.state = u.BEGIN_WHITESPACE, m === "\uFEFF")
2743
- continue;
2744
- me(r, m);
2745
- continue;
2746
- case u.BEGIN_WHITESPACE:
2747
- me(r, m);
2748
- continue;
2749
- case u.TEXT:
2750
- if (r.sawRoot && !r.closedRoot) {
2751
- for (var K = I - 1; m && m !== "<" && m !== "&"; )
2752
- m = pt(i, I++), m && r.trackPosition && (r.position++, m === `
2753
- ` ? (r.line++, r.column = 0) : r.column++);
2754
- r.textNode += i.substring(K, I - 1);
2755
- }
2756
- m === "<" && !(r.sawRoot && r.closedRoot && !r.strict) ? (r.state = u.OPEN_WAKA, r.startTagPosition = r.position) : (!b(m) && (!r.sawRoot || r.closedRoot) && V(r, "Text data outside of root node."), m === "&" ? r.state = u.TEXT_ENTITY : r.textNode += m);
2757
- continue;
2758
- case u.SCRIPT:
2759
- m === "<" ? r.state = u.SCRIPT_ENDING : r.script += m;
2760
- continue;
2761
- case u.SCRIPT_ENDING:
2762
- m === "/" ? r.state = u.CLOSE_TAG : (r.script += "<" + m, r.state = u.SCRIPT);
2763
- continue;
2764
- case u.OPEN_WAKA:
2765
- if (m === "!")
2766
- r.state = u.SGML_DECL, r.sgmlDecl = "";
2767
- else if (!b(m)) if (L(_, m))
2768
- r.state = u.OPEN_TAG, r.tagName = m;
2769
- else if (m === "/")
2770
- r.state = u.CLOSE_TAG, r.tagName = "";
2771
- else if (m === "?")
2772
- r.state = u.PROC_INST, r.procInstName = r.procInstBody = "";
2773
- else {
2774
- if (V(r, "Unencoded <"), r.startTagPosition + 1 < r.position) {
2775
- var q = r.position - r.startTagPosition;
2776
- m = new Array(q).join(" ") + m;
2777
- }
2778
- r.textNode += "<" + m, r.state = u.TEXT;
2779
- }
2780
- continue;
2781
- case u.SGML_DECL:
2782
- if (r.sgmlDecl + m === "--") {
2783
- r.state = u.COMMENT, r.comment = "", r.sgmlDecl = "";
2784
- continue;
2785
- }
2786
- r.doctype && r.doctype !== !0 && r.sgmlDecl ? (r.state = u.DOCTYPE_DTD, r.doctype += "<!" + r.sgmlDecl + m, r.sgmlDecl = "") : (r.sgmlDecl + m).toUpperCase() === y ? (U(r, "onopencdata"), r.state = u.CDATA, r.sgmlDecl = "", r.cdata = "") : (r.sgmlDecl + m).toUpperCase() === T ? (r.state = u.DOCTYPE, (r.doctype || r.sawRoot) && V(
2787
- r,
2788
- "Inappropriately located doctype declaration"
2789
- ), r.doctype = "", r.sgmlDecl = "") : m === ">" ? (U(r, "onsgmldeclaration", r.sgmlDecl), r.sgmlDecl = "", r.state = u.TEXT) : (C(m) && (r.state = u.SGML_DECL_QUOTED), r.sgmlDecl += m);
2790
- continue;
2791
- case u.SGML_DECL_QUOTED:
2792
- m === r.q && (r.state = u.SGML_DECL, r.q = ""), r.sgmlDecl += m;
2793
- continue;
2794
- case u.DOCTYPE:
2795
- m === ">" ? (r.state = u.TEXT, U(r, "ondoctype", r.doctype), r.doctype = !0) : (r.doctype += m, m === "[" ? r.state = u.DOCTYPE_DTD : C(m) && (r.state = u.DOCTYPE_QUOTED, r.q = m));
2796
- continue;
2797
- case u.DOCTYPE_QUOTED:
2798
- r.doctype += m, m === r.q && (r.q = "", r.state = u.DOCTYPE);
2799
- continue;
2800
- case u.DOCTYPE_DTD:
2801
- m === "]" ? (r.doctype += m, r.state = u.DOCTYPE) : m === "<" ? (r.state = u.OPEN_WAKA, r.startTagPosition = r.position) : C(m) ? (r.doctype += m, r.state = u.DOCTYPE_DTD_QUOTED, r.q = m) : r.doctype += m;
2802
- continue;
2803
- case u.DOCTYPE_DTD_QUOTED:
2804
- r.doctype += m, m === r.q && (r.state = u.DOCTYPE_DTD, r.q = "");
2805
- continue;
2806
- case u.COMMENT:
2807
- m === "-" ? r.state = u.COMMENT_ENDING : r.comment += m;
2808
- continue;
2809
- case u.COMMENT_ENDING:
2810
- m === "-" ? (r.state = u.COMMENT_ENDED, r.comment = de(r.opt, r.comment), r.comment && U(r, "oncomment", r.comment), r.comment = "") : (r.comment += "-" + m, r.state = u.COMMENT);
2811
- continue;
2812
- case u.COMMENT_ENDED:
2813
- m !== ">" ? (V(r, "Malformed comment"), r.comment += "--" + m, r.state = u.COMMENT) : r.doctype && r.doctype !== !0 ? r.state = u.DOCTYPE_DTD : r.state = u.TEXT;
2814
- continue;
2815
- case u.CDATA:
2816
- for (var K = I - 1; m && m !== "]"; )
2817
- m = pt(i, I++), m && r.trackPosition && (r.position++, m === `
2818
- ` ? (r.line++, r.column = 0) : r.column++);
2819
- r.cdata += i.substring(K, I - 1), m === "]" && (r.state = u.CDATA_ENDING);
2820
- continue;
2821
- case u.CDATA_ENDING:
2822
- m === "]" ? r.state = u.CDATA_ENDING_2 : (r.cdata += "]" + m, r.state = u.CDATA);
2823
- continue;
2824
- case u.CDATA_ENDING_2:
2825
- m === ">" ? (r.cdata && U(r, "oncdata", r.cdata), U(r, "onclosecdata"), r.cdata = "", r.state = u.TEXT) : m === "]" ? r.cdata += "]" : (r.cdata += "]]" + m, r.state = u.CDATA);
2826
- continue;
2827
- case u.PROC_INST:
2828
- m === "?" ? r.state = u.PROC_INST_ENDING : b(m) ? r.state = u.PROC_INST_BODY : r.procInstName += m;
2829
- continue;
2830
- case u.PROC_INST_BODY:
2831
- if (!r.procInstBody && b(m))
2832
- continue;
2833
- m === "?" ? r.state = u.PROC_INST_ENDING : r.procInstBody += m;
2834
- continue;
2835
- case u.PROC_INST_ENDING:
2836
- if (m === ">") {
2837
- const $ = {
2838
- name: r.procInstName,
2839
- body: r.procInstBody
2840
- };
2841
- j(r, $), U(r, "onprocessinginstruction", $), r.procInstName = r.procInstBody = "", r.state = u.TEXT;
2842
- } else
2843
- r.procInstBody += "?" + m, r.state = u.PROC_INST_BODY;
2844
- continue;
2845
- case u.OPEN_TAG:
2846
- L(D, m) ? r.tagName += m : (dr(r), m === ">" ? nt(r) : m === "/" ? r.state = u.OPEN_TAG_SLASH : (b(m) || V(r, "Invalid character in tag name"), r.state = u.ATTRIB));
2847
- continue;
2848
- case u.OPEN_TAG_SLASH:
2849
- m === ">" ? (nt(r, !0), ht(r)) : (V(
2850
- r,
2851
- "Forward-slash in opening tag not followed by >"
2852
- ), r.state = u.ATTRIB);
2853
- continue;
2854
- case u.ATTRIB:
2855
- if (b(m))
2856
- continue;
2857
- m === ">" ? nt(r) : m === "/" ? r.state = u.OPEN_TAG_SLASH : L(_, m) ? (r.attribName = m, r.attribValue = "", r.state = u.ATTRIB_NAME) : V(r, "Invalid attribute name");
2858
- continue;
2859
- case u.ATTRIB_NAME:
2860
- m === "=" ? r.state = u.ATTRIB_VALUE : m === ">" ? (V(r, "Attribute without value"), r.attribValue = r.attribName, ft(r), nt(r)) : b(m) ? r.state = u.ATTRIB_NAME_SAW_WHITE : L(D, m) ? r.attribName += m : V(r, "Invalid attribute name");
2861
- continue;
2862
- case u.ATTRIB_NAME_SAW_WHITE:
2863
- if (m === "=")
2864
- r.state = u.ATTRIB_VALUE;
2865
- else {
2866
- if (b(m))
2867
- continue;
2868
- V(r, "Attribute without value"), r.tag.attributes[r.attribName] = "", r.attribValue = "", U(r, "onattribute", {
2869
- name: r.attribName,
2870
- value: ""
2871
- }), r.attribName = "", m === ">" ? nt(r) : L(_, m) ? (r.attribName = m, r.state = u.ATTRIB_NAME) : (V(r, "Invalid attribute name"), r.state = u.ATTRIB);
2872
- }
2873
- continue;
2874
- case u.ATTRIB_VALUE:
2875
- if (b(m))
2876
- continue;
2877
- C(m) ? (r.q = m, r.state = u.ATTRIB_VALUE_QUOTED) : (r.opt.unquotedAttributeValues || rt(r, "Unquoted attribute value"), r.state = u.ATTRIB_VALUE_UNQUOTED, r.attribValue = m);
2878
- continue;
2879
- case u.ATTRIB_VALUE_QUOTED:
2880
- if (m !== r.q) {
2881
- m === "&" ? r.state = u.ATTRIB_VALUE_ENTITY_Q : r.attribValue += m;
2882
- continue;
2883
- }
2884
- ft(r), r.q = "", r.state = u.ATTRIB_VALUE_CLOSED;
2885
- continue;
2886
- case u.ATTRIB_VALUE_CLOSED:
2887
- b(m) ? r.state = u.ATTRIB : m === ">" ? nt(r) : m === "/" ? r.state = u.OPEN_TAG_SLASH : L(_, m) ? (V(r, "No whitespace between attributes"), r.attribName = m, r.attribValue = "", r.state = u.ATTRIB_NAME) : V(r, "Invalid attribute name");
2888
- continue;
2889
- case u.ATTRIB_VALUE_UNQUOTED:
2890
- if (!M(m)) {
2891
- m === "&" ? r.state = u.ATTRIB_VALUE_ENTITY_U : r.attribValue += m;
2892
- continue;
2893
- }
2894
- ft(r), m === ">" ? nt(r) : r.state = u.ATTRIB;
2895
- continue;
2896
- case u.CLOSE_TAG:
2897
- if (r.tagName)
2898
- m === ">" ? ht(r) : L(D, m) ? r.tagName += m : r.script ? (r.script += "</" + r.tagName + m, r.tagName = "", r.state = u.SCRIPT) : (b(m) || V(r, "Invalid tagname in closing tag"), r.state = u.CLOSE_TAG_SAW_WHITE);
2899
- else {
2900
- if (b(m))
2901
- continue;
2902
- f(_, m) ? r.script ? (r.script += "</" + m, r.state = u.SCRIPT) : V(r, "Invalid tagname in closing tag.") : r.tagName = m;
2903
- }
2904
- continue;
2905
- case u.CLOSE_TAG_SAW_WHITE:
2906
- if (b(m))
2907
- continue;
2908
- m === ">" ? ht(r) : V(r, "Invalid characters in closing tag");
2909
- continue;
2910
- case u.TEXT_ENTITY:
2911
- case u.ATTRIB_VALUE_ENTITY_Q:
2912
- case u.ATTRIB_VALUE_ENTITY_U:
2913
- var G, H;
2914
- switch (r.state) {
2915
- case u.TEXT_ENTITY:
2916
- G = u.TEXT, H = "textNode";
2917
- break;
2918
- case u.ATTRIB_VALUE_ENTITY_Q:
2919
- G = u.ATTRIB_VALUE_QUOTED, H = "attribValue";
2920
- break;
2921
- case u.ATTRIB_VALUE_ENTITY_U:
2922
- G = u.ATTRIB_VALUE_UNQUOTED, H = "attribValue";
2923
- break;
2924
- }
2925
- if (m === ";") {
2926
- var z = yr(r);
2927
- r.opt.unparsedEntities && !Object.values(n.XML_ENTITIES).includes(z) ? ((r.entityCount += 1) > r.opt.maxEntityCount && rt(
2928
- r,
2929
- "Parsed entity count exceeds max entity count"
2930
- ), (r.entityDepth += 1) > r.opt.maxEntityDepth && rt(
2931
- r,
2932
- "Parsed entity depth exceeds max entity depth"
2933
- ), r.entity = "", r.state = G, r.write(z), r.entityDepth -= 1) : (r[H] += z, r.entity = "", r.state = G);
2934
- } else L(r.entity.length ? g : a, m) ? r.entity += m : (V(r, "Invalid character in entity name"), r[H] += "&" + r.entity + m, r.entity = "", r.state = G);
2935
- continue;
2936
- default:
2937
- throw new Error(r, "Unknown state: " + r.state);
2938
- }
2939
- return r.position >= r.bufferCheckPosition && h(r), r;
2940
- }
2941
- /*! http://mths.be/fromcodepoint v0.1.0 by @mathias */
2942
- String.fromCodePoint || function() {
2943
- var i = String.fromCharCode, r = Math.floor, I = function() {
2944
- var m = 16384, q = [], K, G, H = -1, z = arguments.length;
2945
- if (!z)
2946
- return "";
2947
- for (var $ = ""; ++H < z; ) {
2948
- var Y = Number(arguments[H]);
2949
- if (!isFinite(Y) || // `NaN`, `+Infinity`, or `-Infinity`
2950
- Y < 0 || // not a valid Unicode code point
2951
- Y > 1114111 || // not a valid Unicode code point
2952
- r(Y) !== Y)
2953
- throw RangeError("Invalid code point: " + Y);
2954
- Y <= 65535 ? q.push(Y) : (Y -= 65536, K = (Y >> 10) + 55296, G = Y % 1024 + 56320, q.push(K, G)), (H + 1 === z || q.length > m) && ($ += i.apply(null, q), q.length = 0);
2955
- }
2956
- return $;
2957
- };
2958
- Object.defineProperty ? Object.defineProperty(String, "fromCodePoint", {
2959
- value: I,
2960
- configurable: !0,
2961
- writable: !0
2962
- }) : String.fromCodePoint = I;
2963
- }();
2964
- })(o);
2965
- })(he);
2966
- var zt = {}, tr;
2967
- function Ar() {
2968
- return tr || (tr = 1, (function() {
2969
- zt.stripBOM = function(o) {
2970
- return o[0] === "\uFEFF" ? o.substring(1) : o;
2971
- };
2972
- }).call(X)), zt;
2973
- }
2974
- var it = {}, er;
2975
- function lr() {
2976
- return er || (er = 1, (function() {
2977
- var o;
2978
- o = new RegExp(/(?!xmlns)^.*:/), it.normalize = function(n) {
2979
- return n.toLowerCase();
2980
- }, it.firstCharLowerCase = function(n) {
2981
- return n.charAt(0).toLowerCase() + n.slice(1);
2982
- }, it.stripPrefix = function(n) {
2983
- return n.replace(o, "");
2984
- }, it.parseNumbers = function(n) {
2985
- return isNaN(n) || (n = n % 1 === 0 ? parseInt(n, 10) : parseFloat(n)), n;
2986
- }, it.parseBooleans = function(n) {
2987
- return /^(?:true|false)$/i.test(n) && (n = n.toLowerCase() === "true"), n;
2988
- };
2989
- }).call(X)), it;
2990
- }
2991
- var rr;
2992
- function _r() {
2993
- return rr || (rr = 1, function(o) {
2994
- (function() {
2995
- var n, p, l, h, e, t, s, c, N, w = function(T, E) {
2996
- return function() {
2997
- return T.apply(E, arguments);
2998
- };
2999
- }, d = function(T, E) {
3000
- for (var x in E)
3001
- y.call(E, x) && (T[x] = E[x]);
3002
- function v() {
3003
- this.constructor = T;
3004
- }
3005
- return v.prototype = E.prototype, T.prototype = new v(), T.__super__ = E.prototype, T;
3006
- }, y = {}.hasOwnProperty;
3007
- c = he, h = Qt, n = Ar(), s = lr(), N = Qt.setImmediate, p = $t().defaults, e = function(T) {
3008
- return typeof T == "object" && T != null && Object.keys(T).length === 0;
3009
- }, t = function(T, E, x) {
3010
- var v, _, D;
3011
- for (v = 0, _ = T.length; v < _; v++)
3012
- D = T[v], E = D(E, x);
3013
- return E;
3014
- }, l = function(T, E, x) {
3015
- var v;
3016
- return v = /* @__PURE__ */ Object.create(null), v.value = x, v.writable = !0, v.enumerable = !0, v.configurable = !0, Object.defineProperty(T, E, v);
3017
- }, o.Parser = function(T) {
3018
- d(E, T);
3019
- function E(x) {
3020
- this.parseStringPromise = w(this.parseStringPromise, this), this.parseString = w(this.parseString, this), this.reset = w(this.reset, this), this.assignOrPush = w(this.assignOrPush, this), this.processAsync = w(this.processAsync, this);
3021
- var v, _, D;
3022
- if (!(this instanceof o.Parser))
3023
- return new o.Parser(x);
3024
- this.options = {}, _ = p["0.2"];
3025
- for (v in _)
3026
- y.call(_, v) && (D = _[v], this.options[v] = D);
3027
- for (v in x)
3028
- y.call(x, v) && (D = x[v], this.options[v] = D);
3029
- this.options.xmlns && (this.options.xmlnskey = this.options.attrkey + "ns"), this.options.normalizeTags && (this.options.tagNameProcessors || (this.options.tagNameProcessors = []), this.options.tagNameProcessors.unshift(s.normalize)), this.reset();
3030
- }
3031
- return E.prototype.processAsync = function() {
3032
- var x, v;
3033
- try {
3034
- return this.remaining.length <= this.options.chunkSize ? (x = this.remaining, this.remaining = "", this.saxParser = this.saxParser.write(x), this.saxParser.close()) : (x = this.remaining.substr(0, this.options.chunkSize), this.remaining = this.remaining.substr(this.options.chunkSize, this.remaining.length), this.saxParser = this.saxParser.write(x), N(this.processAsync));
3035
- } catch (_) {
3036
- if (v = _, !this.saxParser.errThrown)
3037
- return this.saxParser.errThrown = !0, this.emit(v);
3038
- }
3039
- }, E.prototype.assignOrPush = function(x, v, _) {
3040
- return v in x ? (x[v] instanceof Array || l(x, v, [x[v]]), x[v].push(_)) : this.options.explicitArray ? l(x, v, [_]) : l(x, v, _);
3041
- }, E.prototype.reset = function() {
3042
- var x, v, _, D;
3043
- return this.removeAllListeners(), this.saxParser = c.parser(this.options.strict, {
3044
- trim: !1,
3045
- normalize: !1,
3046
- xmlns: this.options.xmlns
3047
- }), this.saxParser.errThrown = !1, this.saxParser.onerror = /* @__PURE__ */ function(a) {
3048
- return function(g) {
3049
- if (a.saxParser.resume(), !a.saxParser.errThrown)
3050
- return a.saxParser.errThrown = !0, a.emit("error", g);
3051
- };
3052
- }(this), this.saxParser.onend = /* @__PURE__ */ function(a) {
3053
- return function() {
3054
- if (!a.saxParser.ended)
3055
- return a.saxParser.ended = !0, a.emit("end", a.resultObject);
3056
- };
3057
- }(this), this.saxParser.ended = !1, this.EXPLICIT_CHARKEY = this.options.explicitCharkey, this.resultObject = null, D = [], x = this.options.attrkey, v = this.options.charkey, this.saxParser.onopentag = /* @__PURE__ */ function(a) {
3058
- return function(g) {
3059
- var b, C, M, L, f;
3060
- if (M = {}, M[v] = "", !a.options.ignoreAttrs) {
3061
- f = g.attributes;
3062
- for (b in f)
3063
- y.call(f, b) && (!(x in M) && !a.options.mergeAttrs && (M[x] = {}), C = a.options.attrValueProcessors ? t(a.options.attrValueProcessors, g.attributes[b], b) : g.attributes[b], L = a.options.attrNameProcessors ? t(a.options.attrNameProcessors, b) : b, a.options.mergeAttrs ? a.assignOrPush(M, L, C) : l(M[x], L, C));
3064
- }
3065
- return M["#name"] = a.options.tagNameProcessors ? t(a.options.tagNameProcessors, g.name) : g.name, a.options.xmlns && (M[a.options.xmlnskey] = {
3066
- uri: g.uri,
3067
- local: g.local
3068
- }), D.push(M);
3069
- };
3070
- }(this), this.saxParser.onclosetag = /* @__PURE__ */ function(a) {
3071
- return function() {
3072
- var g, b, C, M, L, f, u, A, P, B;
3073
- if (f = D.pop(), L = f["#name"], (!a.options.explicitChildren || !a.options.preserveChildrenOrder) && delete f["#name"], f.cdata === !0 && (g = f.cdata, delete f.cdata), P = D[D.length - 1], f[v].match(/^\s*$/) && !g ? (b = f[v], delete f[v]) : (a.options.trim && (f[v] = f[v].trim()), a.options.normalize && (f[v] = f[v].replace(/\s{2,}/g, " ").trim()), f[v] = a.options.valueProcessors ? t(a.options.valueProcessors, f[v], L) : f[v], Object.keys(f).length === 1 && v in f && !a.EXPLICIT_CHARKEY && (f = f[v])), e(f) && (typeof a.options.emptyTag == "function" ? f = a.options.emptyTag() : f = a.options.emptyTag !== "" ? a.options.emptyTag : b), a.options.validator != null && (B = "/" + function() {
3074
- var R, k, j;
3075
- for (j = [], R = 0, k = D.length; R < k; R++)
3076
- M = D[R], j.push(M["#name"]);
3077
- return j;
3078
- }().concat(L).join("/"), function() {
3079
- var R;
3080
- try {
3081
- return f = a.options.validator(B, P && P[L], f);
3082
- } catch (k) {
3083
- return R = k, a.emit("error", R);
3084
- }
3085
- }()), a.options.explicitChildren && !a.options.mergeAttrs && typeof f == "object") {
3086
- if (!a.options.preserveChildrenOrder)
3087
- M = {}, a.options.attrkey in f && (M[a.options.attrkey] = f[a.options.attrkey], delete f[a.options.attrkey]), !a.options.charsAsChildren && a.options.charkey in f && (M[a.options.charkey] = f[a.options.charkey], delete f[a.options.charkey]), Object.getOwnPropertyNames(f).length > 0 && (M[a.options.childkey] = f), f = M;
3088
- else if (P) {
3089
- P[a.options.childkey] = P[a.options.childkey] || [], u = {};
3090
- for (C in f)
3091
- y.call(f, C) && l(u, C, f[C]);
3092
- P[a.options.childkey].push(u), delete f["#name"], Object.keys(f).length === 1 && v in f && !a.EXPLICIT_CHARKEY && (f = f[v]);
3093
- }
3094
- }
3095
- return D.length > 0 ? a.assignOrPush(P, L, f) : (a.options.explicitRoot && (A = f, f = {}, l(f, L, A)), a.resultObject = f, a.saxParser.ended = !0, a.emit("end", a.resultObject));
3096
- };
3097
- }(this), _ = /* @__PURE__ */ function(a) {
3098
- return function(g) {
3099
- var b, C;
3100
- if (C = D[D.length - 1], C)
3101
- return C[v] += g, a.options.explicitChildren && a.options.preserveChildrenOrder && a.options.charsAsChildren && (a.options.includeWhiteChars || g.replace(/\\n/g, "").trim() !== "") && (C[a.options.childkey] = C[a.options.childkey] || [], b = {
3102
- "#name": "__text__"
3103
- }, b[v] = g, a.options.normalize && (b[v] = b[v].replace(/\s{2,}/g, " ").trim()), C[a.options.childkey].push(b)), C;
3104
- };
3105
- }(this), this.saxParser.ontext = _, this.saxParser.oncdata = /* @__PURE__ */ function(a) {
3106
- return function(g) {
3107
- var b;
3108
- if (b = _(g), b)
3109
- return b.cdata = !0;
3110
- };
3111
- }();
3112
- }, E.prototype.parseString = function(x, v) {
3113
- var _;
3114
- v != null && typeof v == "function" && (this.on("end", function(D) {
3115
- return this.reset(), v(null, D);
3116
- }), this.on("error", function(D) {
3117
- return this.reset(), v(D);
3118
- }));
3119
- try {
3120
- return x = x.toString(), x.trim() === "" ? (this.emit("end", null), !0) : (x = n.stripBOM(x), this.options.async ? (this.remaining = x, N(this.processAsync), this.saxParser) : this.saxParser.write(x).close());
3121
- } catch (D) {
3122
- if (_ = D, this.saxParser.errThrown || this.saxParser.ended) {
3123
- if (this.saxParser.ended)
3124
- throw _;
3125
- } else return this.emit("error", _), this.saxParser.errThrown = !0;
3126
- }
3127
- }, E.prototype.parseStringPromise = function(x) {
3128
- return new Promise(/* @__PURE__ */ function(v) {
3129
- return function(_, D) {
3130
- return v.parseString(x, function(a, g) {
3131
- return a ? D(a) : _(g);
3132
- });
3133
- };
3134
- }(this));
3135
- }, E;
3136
- }(h), o.parseString = function(T, E, x) {
3137
- var v, _, D;
3138
- return x != null ? (typeof x == "function" && (v = x), typeof E == "object" && (_ = E)) : (typeof E == "function" && (v = E), _ = {}), D = new o.Parser(_), D.parseString(T, v);
3139
- }, o.parseStringPromise = function(T, E) {
3140
- var x, v;
3141
- return typeof E == "object" && (x = E), v = new o.Parser(x), v.parseStringPromise(T);
3142
- };
3143
- }).call(X);
3144
- }(Ht)), Ht;
3145
- }
3146
- (function() {
3147
- var o, n, p, l = function(e, t) {
3148
- for (var s in t)
3149
- h.call(t, s) && (e[s] = t[s]);
3150
- function c() {
3151
- this.constructor = e;
3152
- }
3153
- return c.prototype = t.prototype, e.prototype = new c(), e.__super__ = t.prototype, e;
3154
- }, h = {}.hasOwnProperty;
3155
- n = $t(), o = Cr(), p = _r(), lr(), n.defaults, function(e) {
3156
- l(t, e);
3157
- function t(s) {
3158
- this.message = s;
3159
- }
3160
- return t;
3161
- }(Error), o.Builder, p.Parser, p.parseString, p.parseStringPromise;
3162
- }).call(X);
3163
- var pe = {
3164
- isArray: function(o) {
3165
- return Array.isArray ? Array.isArray(o) : Object.prototype.toString.call(o) === "[object Array]";
3166
- }
3167
- }, Mr = pe.isArray, fr = {
3168
- copyOptions: function(o) {
3169
- var n, p = {};
3170
- for (n in o)
3171
- o.hasOwnProperty(n) && (p[n] = o[n]);
3172
- return p;
3173
- },
3174
- ensureFlagExists: function(o, n) {
3175
- (!(o in n) || typeof n[o] != "boolean") && (n[o] = !1);
3176
- },
3177
- ensureSpacesExists: function(o) {
3178
- (!("spaces" in o) || typeof o.spaces != "number" && typeof o.spaces != "string") && (o.spaces = 0);
3179
- },
3180
- ensureAlwaysArrayExists: function(o) {
3181
- (!("alwaysArray" in o) || typeof o.alwaysArray != "boolean" && !Mr(o.alwaysArray)) && (o.alwaysArray = !1);
3182
- },
3183
- ensureKeyExists: function(o, n) {
3184
- (!(o + "Key" in n) || typeof n[o + "Key"] != "string") && (n[o + "Key"] = n.compact ? "_" + o : o);
3185
- },
3186
- checkFnExists: function(o, n) {
3187
- return o + "Fn" in n;
3188
- }
3189
- }, Pr = he, S = fr, ot = pe.isArray, O, F;
3190
- function Fr(o) {
3191
- return O = S.copyOptions(o), S.ensureFlagExists("ignoreDeclaration", O), S.ensureFlagExists("ignoreInstruction", O), S.ensureFlagExists("ignoreAttributes", O), S.ensureFlagExists("ignoreText", O), S.ensureFlagExists("ignoreComment", O), S.ensureFlagExists("ignoreCdata", O), S.ensureFlagExists("ignoreDoctype", O), S.ensureFlagExists("compact", O), S.ensureFlagExists("alwaysChildren", O), S.ensureFlagExists("addParent", O), S.ensureFlagExists("trim", O), S.ensureFlagExists("nativeType", O), S.ensureFlagExists("nativeTypeAttributes", O), S.ensureFlagExists("sanitize", O), S.ensureFlagExists("instructionHasAttributes", O), S.ensureFlagExists("captureSpacesBetweenElements", O), S.ensureAlwaysArrayExists(O), S.ensureKeyExists("declaration", O), S.ensureKeyExists("instruction", O), S.ensureKeyExists("attributes", O), S.ensureKeyExists("text", O), S.ensureKeyExists("comment", O), S.ensureKeyExists("cdata", O), S.ensureKeyExists("doctype", O), S.ensureKeyExists("type", O), S.ensureKeyExists("name", O), S.ensureKeyExists("elements", O), S.ensureKeyExists("parent", O), S.checkFnExists("doctype", O), S.checkFnExists("instruction", O), S.checkFnExists("cdata", O), S.checkFnExists("comment", O), S.checkFnExists("text", O), S.checkFnExists("instructionName", O), S.checkFnExists("elementName", O), S.checkFnExists("attributeName", O), S.checkFnExists("attributeValue", O), S.checkFnExists("attributes", O), O;
3192
- }
3193
- function hr(o) {
3194
- var n = Number(o);
3195
- if (!isNaN(n))
3196
- return n;
3197
- var p = o.toLowerCase();
3198
- return p === "true" ? !0 : p === "false" ? !1 : o;
3199
- }
3200
- function at(o, n) {
3201
- var p;
3202
- if (O.compact) {
3203
- if (!F[O[o + "Key"]] && (ot(O.alwaysArray) ? O.alwaysArray.indexOf(O[o + "Key"]) !== -1 : O.alwaysArray) && (F[O[o + "Key"]] = []), F[O[o + "Key"]] && !ot(F[O[o + "Key"]]) && (F[O[o + "Key"]] = [F[O[o + "Key"]]]), o + "Fn" in O && typeof n == "string" && (n = O[o + "Fn"](n, F)), o === "instruction" && ("instructionFn" in O || "instructionNameFn" in O)) {
3204
- for (p in n)
3205
- if (n.hasOwnProperty(p))
3206
- if ("instructionFn" in O)
3207
- n[p] = O.instructionFn(n[p], p, F);
3208
- else {
3209
- var l = n[p];
3210
- delete n[p], n[O.instructionNameFn(p, l, F)] = l;
3211
- }
3212
- }
3213
- ot(F[O[o + "Key"]]) ? F[O[o + "Key"]].push(n) : F[O[o + "Key"]] = n;
3214
- } else {
3215
- F[O.elementsKey] || (F[O.elementsKey] = []);
3216
- var h = {};
3217
- if (h[O.typeKey] = o, o === "instruction") {
3218
- for (p in n)
3219
- if (n.hasOwnProperty(p))
3220
- break;
3221
- h[O.nameKey] = "instructionNameFn" in O ? O.instructionNameFn(p, n, F) : p, O.instructionHasAttributes ? (h[O.attributesKey] = n[p][O.attributesKey], "instructionFn" in O && (h[O.attributesKey] = O.instructionFn(h[O.attributesKey], p, F))) : ("instructionFn" in O && (n[p] = O.instructionFn(n[p], p, F)), h[O.instructionKey] = n[p]);
3222
- } else
3223
- o + "Fn" in O && (n = O[o + "Fn"](n, F)), h[O[o + "Key"]] = n;
3224
- O.addParent && (h[O.parentKey] = F), F[O.elementsKey].push(h);
3225
- }
3226
- }
3227
- function pr(o) {
3228
- if ("attributesFn" in O && o && (o = O.attributesFn(o, F)), (O.trim || "attributeValueFn" in O || "attributeNameFn" in O || O.nativeTypeAttributes) && o) {
3229
- var n;
3230
- for (n in o)
3231
- if (o.hasOwnProperty(n) && (O.trim && (o[n] = o[n].trim()), O.nativeTypeAttributes && (o[n] = hr(o[n])), "attributeValueFn" in O && (o[n] = O.attributeValueFn(o[n], n, F)), "attributeNameFn" in O)) {
3232
- var p = o[n];
3233
- delete o[n], o[O.attributeNameFn(n, o[n], F)] = p;
3234
- }
3235
- }
3236
- return o;
3237
- }
3238
- function Sr(o) {
3239
- var n = {};
3240
- if (o.body && (o.name.toLowerCase() === "xml" || O.instructionHasAttributes)) {
3241
- for (var p = /([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g, l; (l = p.exec(o.body)) !== null; )
3242
- n[l[1]] = l[2] || l[3] || l[4];
3243
- n = pr(n);
3244
- }
3245
- if (o.name.toLowerCase() === "xml") {
3246
- if (O.ignoreDeclaration)
3247
- return;
3248
- F[O.declarationKey] = {}, Object.keys(n).length && (F[O.declarationKey][O.attributesKey] = n), O.addParent && (F[O.declarationKey][O.parentKey] = F);
3249
- } else {
3250
- if (O.ignoreInstruction)
3251
- return;
3252
- O.trim && (o.body = o.body.trim());
3253
- var h = {};
3254
- O.instructionHasAttributes && Object.keys(n).length ? (h[o.name] = {}, h[o.name][O.attributesKey] = n) : h[o.name] = o.body, at("instruction", h);
3255
- }
3256
- }
3257
- function Xr(o, n) {
3258
- var p;
3259
- if (typeof o == "object" && (n = o.attributes, o = o.name), n = pr(n), "elementNameFn" in O && (o = O.elementNameFn(o, F)), O.compact) {
3260
- if (p = {}, !O.ignoreAttributes && n && Object.keys(n).length) {
3261
- p[O.attributesKey] = {};
3262
- var l;
3263
- for (l in n)
3264
- n.hasOwnProperty(l) && (p[O.attributesKey][l] = n[l]);
3265
- }
3266
- !(o in F) && (ot(O.alwaysArray) ? O.alwaysArray.indexOf(o) !== -1 : O.alwaysArray) && (F[o] = []), F[o] && !ot(F[o]) && (F[o] = [F[o]]), ot(F[o]) ? F[o].push(p) : F[o] = p;
3267
- } else
3268
- F[O.elementsKey] || (F[O.elementsKey] = []), p = {}, p[O.typeKey] = "element", p[O.nameKey] = o, !O.ignoreAttributes && n && Object.keys(n).length && (p[O.attributesKey] = n), O.alwaysChildren && (p[O.elementsKey] = []), F[O.elementsKey].push(p);
3269
- p[O.parentKey] = F, F = p;
3270
- }
3271
- function Rr(o) {
3272
- O.ignoreText || !o.trim() && !O.captureSpacesBetweenElements || (O.trim && (o = o.trim()), O.nativeType && (o = hr(o)), O.sanitize && (o = o.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;")), at("text", o));
3273
- }
3274
- function jr(o) {
3275
- O.ignoreComment || (O.trim && (o = o.trim()), at("comment", o));
3276
- }
3277
- function Br(o) {
3278
- var n = F[O.parentKey];
3279
- O.addParent || delete F[O.parentKey], F = n;
3280
- }
3281
- function qr(o) {
3282
- O.ignoreCdata || (O.trim && (o = o.trim()), at("cdata", o));
3283
- }
3284
- function Ur(o) {
3285
- O.ignoreDoctype || (o = o.replace(/^ /, ""), O.trim && (o = o.trim()), at("doctype", o));
3286
- }
3287
- function Vr(o) {
3288
- o.note = o;
3289
- }
3290
- var Kr = function(o, n) {
3291
- var p = Pr.parser(!0, {}), l = {};
3292
- if (F = l, O = Fr(n), p.opt = { strictEntities: !0 }, p.onopentag = Xr, p.ontext = Rr, p.oncomment = jr, p.onclosetag = Br, p.onerror = Vr, p.oncdata = qr, p.ondoctype = Ur, p.onprocessinginstruction = Sr, p.write(o).close(), l[O.elementsKey]) {
3293
- var h = l[O.elementsKey];
3294
- delete l[O.elementsKey], l[O.elementsKey] = h, delete l.text;
3295
- }
3296
- return l;
3297
- }, nr = fr, Wr = Kr;
3298
- function kr(o) {
3299
- var n = nr.copyOptions(o);
3300
- return nr.ensureSpacesExists(n), n;
3301
- }
3302
- var Gr = function(o, n) {
3303
- var p, l, h, e;
3304
- return p = kr(n), l = Wr(o, p), e = "compact" in p && p.compact ? "_parent" : "parent", "addParent" in p && p.addParent ? h = JSON.stringify(l, function(t, s) {
3305
- return t === e ? "_" : s;
3306
- }, p.spaces) : h = JSON.stringify(l, null, p.spaces), h.replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
3307
- };
3308
- pe.isArray;
3309
- var Yr = Gr, Hr = {
3310
- xml2json: Yr
3311
- };
3312
- const zr = "/public/vfd/FDXX.vfdx", Zr = /* @__PURE__ */ wr({
3313
- __name: "index",
3314
- setup(o) {
3315
- return Tr({}), Dr.post({ url: zr }, { withToken: !0 }).then((n) => {
3316
- const p = n, l = Hr.xml2json(p, { compact: !0, spaces: 4 }), h = JSON.parse(l), { MySelect: e, MyUpdate: t, MyDelete: s, PageParamaterList: c, SingleControlList: N, Table: w } = h.WebFormConfig;
3317
- debugger;
3318
- }), (n, p) => " hahahha ";
3319
- }
3320
- });
3321
- export {
3322
- Zr as default
3323
- };