@streamlayer/react 1.21.3 → 1.22.1

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 (168) hide show
  1. package/lib/app/masters.d.ts +2 -5
  2. package/lib/app/pause-ad.d.ts +1 -10
  3. package/lib/app/useStreamLayerApp.d.ts +1 -23
  4. package/lib/cjs/Question.js +1 -0
  5. package/lib/cjs/advertisement.js +40 -40
  6. package/lib/cjs/analytics.js +1 -0
  7. package/lib/cjs/auth.js +1 -1
  8. package/lib/cjs/bet-pack.js +1 -1
  9. package/lib/cjs/gamification-feature.js +1 -1
  10. package/lib/cjs/hooks-B0Qttldg.js +1 -0
  11. package/lib/cjs/index-DSi8Qgfs.js +1 -0
  12. package/lib/cjs/index.js +1 -1
  13. package/lib/cjs/index10.js +1 -0
  14. package/lib/cjs/index11.js +4 -0
  15. package/lib/cjs/index12.js +1 -0
  16. package/lib/cjs/index13.js +1 -0
  17. package/lib/cjs/index14.js +1 -0
  18. package/lib/cjs/index15.js +1 -0
  19. package/lib/cjs/index16.js +5 -0
  20. package/lib/cjs/index2.js +1 -5
  21. package/lib/cjs/index3.js +1 -0
  22. package/lib/cjs/index4.js +5 -0
  23. package/lib/cjs/index5.js +1 -0
  24. package/lib/cjs/index6.js +1 -0
  25. package/lib/cjs/index7.js +5 -0
  26. package/lib/cjs/index8.js +1 -0
  27. package/lib/cjs/index9.js +1 -0
  28. package/lib/cjs/insight.js +1 -1
  29. package/lib/cjs/masters.js +1 -1
  30. package/lib/cjs/masters2.js +6 -6
  31. package/lib/cjs/notification.js +1 -1
  32. package/lib/cjs/pause-ad.js +1 -1
  33. package/lib/cjs/points.js +1 -1
  34. package/lib/cjs/sl-types.js +15 -0
  35. package/lib/cjs/storage.js +1 -0
  36. package/lib/cjs/theme.js +17 -0
  37. package/lib/cjs/useStreamLayerApp.js +1 -1
  38. package/lib/cjs/useStreamLayerApp2.js +17 -16
  39. package/lib/cjs/utils.js +47 -0
  40. package/lib/cjs/vast-client.min.js +1 -0
  41. package/lib/classic/app/masters.d.ts +2 -5
  42. package/lib/classic/app/pause-ad.d.ts +1 -10
  43. package/lib/classic/app/useStreamLayerApp.d.ts +1 -23
  44. package/lib/classic/cjs/Question.js +1 -0
  45. package/lib/classic/cjs/advertisement.js +40 -40
  46. package/lib/classic/cjs/analytics.js +1 -0
  47. package/lib/classic/cjs/auth.js +1 -1
  48. package/lib/classic/cjs/bet-pack.js +4 -4
  49. package/lib/classic/cjs/gamification-feature.js +1 -1
  50. package/lib/classic/cjs/hooks-B0Qttldg.js +1 -0
  51. package/lib/classic/cjs/index-DSi8Qgfs.js +1 -0
  52. package/lib/classic/cjs/index.js +1 -1
  53. package/lib/classic/cjs/index10.js +1 -0
  54. package/lib/classic/cjs/index11.js +1 -0
  55. package/lib/classic/cjs/index12.js +1 -0
  56. package/lib/classic/cjs/index13.js +4 -0
  57. package/lib/classic/cjs/index2.js +5 -0
  58. package/lib/classic/cjs/index3.js +1 -0
  59. package/lib/classic/cjs/index4.js +1 -0
  60. package/lib/classic/cjs/index5.js +1 -0
  61. package/lib/classic/cjs/index6.js +5 -0
  62. package/lib/classic/cjs/index7.js +1 -0
  63. package/lib/classic/cjs/index8.js +1 -0
  64. package/lib/classic/cjs/index9.js +1 -0
  65. package/lib/classic/cjs/insight.js +1 -1
  66. package/lib/classic/cjs/notification.js +1 -1
  67. package/lib/classic/cjs/notification2.js +1 -0
  68. package/lib/classic/cjs/pause-ad.js +1 -1
  69. package/lib/classic/cjs/points.js +1 -1
  70. package/lib/classic/cjs/sl-types.js +15 -0
  71. package/lib/classic/cjs/useStreamLayerApp.js +1 -1
  72. package/lib/classic/cjs/useStreamLayerApp2.js +17 -16
  73. package/lib/classic/cjs/utils.js +47 -0
  74. package/lib/classic/cjs/vast-client.min.js +1 -0
  75. package/lib/classic/es/Question.js +392 -0
  76. package/lib/classic/es/advertisement.js +10375 -10374
  77. package/lib/classic/es/analytics.js +28 -0
  78. package/lib/classic/es/auth.js +4 -4
  79. package/lib/classic/es/bet-pack.js +55 -51
  80. package/lib/classic/es/gamification-feature.js +1 -1
  81. package/lib/classic/es/hooks-B0Qttldg.js +98 -0
  82. package/lib/classic/es/index-DSi8Qgfs.js +65 -0
  83. package/lib/classic/es/index.js +14 -15
  84. package/lib/classic/es/index10.js +87 -0
  85. package/lib/classic/es/index11.js +2355 -0
  86. package/lib/classic/es/index12.js +183 -0
  87. package/lib/classic/es/index13.js +835 -0
  88. package/lib/classic/es/index2.js +2621 -0
  89. package/lib/classic/es/index3.js +64 -0
  90. package/lib/classic/es/index4.js +19 -0
  91. package/lib/classic/es/index5.js +285 -0
  92. package/lib/classic/es/{index-l-eyvmpL.js → index6.js} +937 -937
  93. package/lib/classic/es/index7.js +7 -0
  94. package/lib/classic/es/index8.js +11 -0
  95. package/lib/classic/es/index9.js +319 -0
  96. package/lib/classic/es/insight.js +31 -32
  97. package/lib/classic/es/notification.js +7 -1006
  98. package/lib/classic/es/notification2.js +1117 -0
  99. package/lib/classic/es/pause-ad.js +139 -138
  100. package/lib/classic/es/points.js +39 -38
  101. package/lib/classic/es/sl-types.js +258 -0
  102. package/lib/classic/es/useStreamLayerApp.js +1 -2
  103. package/lib/classic/es/useStreamLayerApp2.js +4798 -2735
  104. package/lib/classic/es/utils.js +76 -0
  105. package/lib/{es/vast-client.min-B0NUra1B.js → classic/es/vast-client.min.js} +338 -338
  106. package/lib/classic/index.d.ts +5 -13
  107. package/lib/classic/masters.d.ts +1 -1
  108. package/lib/dist/cjs/index.js +1 -1
  109. package/lib/dist/cjs/masters.js +34 -33
  110. package/lib/dist/es/index.js +2 -2
  111. package/lib/dist/es/masters.js +10563 -8870
  112. package/lib/dist/index.d.ts +1332 -0
  113. package/lib/dist/style.css +1 -1
  114. package/lib/es/Question.js +136 -0
  115. package/lib/es/advertisement.js +10375 -10374
  116. package/lib/es/analytics.js +28 -0
  117. package/lib/es/auth.js +4 -4
  118. package/lib/es/bet-pack.js +7 -6
  119. package/lib/es/gamification-feature.js +1 -1
  120. package/lib/es/hooks-B0Qttldg.js +98 -0
  121. package/lib/es/index-DSi8Qgfs.js +65 -0
  122. package/lib/es/index.js +13 -14
  123. package/lib/es/index10.js +267 -0
  124. package/lib/es/index11.js +835 -0
  125. package/lib/es/index12.js +183 -0
  126. package/lib/es/index13.js +319 -0
  127. package/lib/es/index14.js +87 -0
  128. package/lib/es/index15.js +2355 -0
  129. package/lib/es/index16.js +1254 -0
  130. package/lib/es/index2.js +1349 -3364
  131. package/lib/es/index3.js +64 -0
  132. package/lib/es/index4.js +3418 -0
  133. package/lib/es/index5.js +19 -0
  134. package/lib/es/index6.js +285 -0
  135. package/lib/es/{index-l-eyvmpL.js → index7.js} +937 -937
  136. package/lib/es/index8.js +7 -0
  137. package/lib/es/index9.js +11 -0
  138. package/lib/es/insight.js +31 -32
  139. package/lib/es/masters.js +6 -5
  140. package/lib/es/masters2.js +189 -176
  141. package/lib/es/notification.js +141 -136
  142. package/lib/es/pause-ad.js +140 -139
  143. package/lib/es/points.js +40 -38
  144. package/lib/es/sl-types.js +277 -0
  145. package/lib/es/storage.js +113 -0
  146. package/lib/es/theme.js +47 -0
  147. package/lib/es/useStreamLayerApp.js +1 -2
  148. package/lib/es/useStreamLayerApp2.js +4798 -2735
  149. package/lib/es/utils.js +76 -0
  150. package/lib/{classic/es/vast-client.min-B0NUra1B.js → es/vast-client.min.js} +338 -338
  151. package/lib/index.d.ts +5 -13
  152. package/lib/masters.d.ts +1 -1
  153. package/lib/style.css +1 -1
  154. package/package.json +16 -51
  155. package/lib/app/event.d.ts +0 -6
  156. package/lib/app/provider.d.ts +0 -49
  157. package/lib/cjs/index-l-eyvmpL.js +0 -5
  158. package/lib/cjs/provider.js +0 -84
  159. package/lib/cjs/vast-client.min-B0NUra1B.js +0 -1
  160. package/lib/classic/app/event.d.ts +0 -6
  161. package/lib/classic/app/provider.d.ts +0 -49
  162. package/lib/classic/cjs/index-l-eyvmpL.js +0 -5
  163. package/lib/classic/cjs/provider.js +0 -68
  164. package/lib/classic/cjs/vast-client.min-B0NUra1B.js +0 -1
  165. package/lib/classic/es/provider.js +0 -7619
  166. package/lib/dist/cjs/gamification-feature2.js +0 -1
  167. package/lib/dist/es/gamification-feature2.js +0 -285
  168. package/lib/es/provider.js +0 -7695
@@ -1,25 +1,25 @@
1
- var V = {}, M = {};
2
- function Lr(e, r, t) {
3
- if (t === void 0 && (t = Array.prototype), e && typeof t.find == "function")
4
- return t.find.call(e, r);
5
- for (var n = 0; n < e.length; n++)
6
- if (Object.prototype.hasOwnProperty.call(e, n)) {
7
- var a = e[n];
8
- if (r.call(void 0, a, n, e))
9
- return a;
1
+ var M = {}, k = {};
2
+ function xe(u, e, r) {
3
+ if (r === void 0 && (r = Array.prototype), u && typeof r.find == "function")
4
+ return r.find.call(u, e);
5
+ for (var t = 0; t < u.length; t++)
6
+ if (Object.prototype.hasOwnProperty.call(u, t)) {
7
+ var n = u[t];
8
+ if (e.call(void 0, n, t, u))
9
+ return n;
10
10
  }
11
11
  }
12
- function De(e, r) {
13
- return r === void 0 && (r = Object), r && typeof r.freeze == "function" ? r.freeze(e) : e;
12
+ function wu(u, e) {
13
+ return e === void 0 && (e = Object), e && typeof e.freeze == "function" ? e.freeze(u) : u;
14
14
  }
15
- function Or(e, r) {
16
- if (e === null || typeof e != "object")
15
+ function Se(u, e) {
16
+ if (u === null || typeof u != "object")
17
17
  throw new TypeError("target is not an object");
18
- for (var t in r)
19
- Object.prototype.hasOwnProperty.call(r, t) && (e[t] = r[t]);
20
- return e;
18
+ for (var r in e)
19
+ Object.prototype.hasOwnProperty.call(e, r) && (u[r] = e[r]);
20
+ return u;
21
21
  }
22
- var We = De({
22
+ var Ju = wu({
23
23
  /**
24
24
  * `text/html`, the only mime type that triggers treating an XML document as HTML.
25
25
  *
@@ -40,8 +40,8 @@ var We = De({
40
40
  * @see https://en.wikipedia.org/wiki/HTML Wikipedia
41
41
  * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString MDN
42
42
  * @see https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-domparser-parsefromstring */
43
- isHTML: function(e) {
44
- return e === We.HTML;
43
+ isHTML: function(u) {
44
+ return u === Ju.HTML;
45
45
  },
46
46
  /**
47
47
  * `application/xml`, the standard mime type for XML documents.
@@ -76,7 +76,7 @@ var We = De({
76
76
  * @see https://en.wikipedia.org/wiki/Scalable_Vector_Graphics Wikipedia
77
77
  */
78
78
  XML_SVG_IMAGE: "image/svg+xml"
79
- }), Ke = De({
79
+ }), Wu = wu({
80
80
  /**
81
81
  * The XHTML namespace.
82
82
  *
@@ -90,8 +90,8 @@ var We = De({
90
90
  *
91
91
  * @see NAMESPACE.HTML
92
92
  */
93
- isHTML: function(e) {
94
- return e === Ke.HTML;
93
+ isHTML: function(u) {
94
+ return u === Wu.HTML;
95
95
  },
96
96
  /**
97
97
  * The SVG namespace.
@@ -112,72 +112,72 @@ var We = De({
112
112
  */
113
113
  XMLNS: "http://www.w3.org/2000/xmlns/"
114
114
  });
115
- M.assign = Or;
116
- M.find = Lr;
117
- M.freeze = De;
118
- M.MIME_TYPE = We;
119
- M.NAMESPACE = Ke;
120
- var Qe = M, R = Qe.find, Q = Qe.NAMESPACE;
121
- function Rr(e) {
122
- return e !== "";
123
- }
124
- function Cr(e) {
125
- return e ? e.split(/[\t\n\f\r ]+/).filter(Rr) : [];
126
- }
127
- function Ir(e, r) {
128
- return e.hasOwnProperty(r) || (e[r] = !0), e;
129
- }
130
- function Ue(e) {
131
- if (!e) return [];
132
- var r = Cr(e);
133
- return Object.keys(r.reduce(Ir, {}));
134
- }
135
- function kr(e) {
136
- return function(r) {
137
- return e && e.indexOf(r) !== -1;
115
+ k.assign = Se;
116
+ k.find = xe;
117
+ k.freeze = wu;
118
+ k.MIME_TYPE = Ju;
119
+ k.NAMESPACE = Wu;
120
+ var Ku = k, O = Ku.find, K = Ku.NAMESPACE;
121
+ function qe(u) {
122
+ return u !== "";
123
+ }
124
+ function Oe(u) {
125
+ return u ? u.split(/[\t\n\f\r ]+/).filter(qe) : [];
126
+ }
127
+ function Re(u, e) {
128
+ return u.hasOwnProperty(e) || (u[e] = !0), u;
129
+ }
130
+ function ku(u) {
131
+ if (!u) return [];
132
+ var e = Oe(u);
133
+ return Object.keys(e.reduce(Re, {}));
134
+ }
135
+ function _e(u) {
136
+ return function(e) {
137
+ return u && u.indexOf(e) !== -1;
138
138
  };
139
139
  }
140
- function ne(e, r) {
141
- for (var t in e)
142
- Object.prototype.hasOwnProperty.call(e, t) && (r[t] = e[t]);
140
+ function tu(u, e) {
141
+ for (var r in u)
142
+ Object.prototype.hasOwnProperty.call(u, r) && (e[r] = u[r]);
143
143
  }
144
- function T(e, r) {
145
- var t = e.prototype;
146
- if (!(t instanceof r)) {
147
- let n = function() {
144
+ function y(u, e) {
145
+ var r = u.prototype;
146
+ if (!(r instanceof e)) {
147
+ let t = function() {
148
148
  };
149
- n.prototype = r.prototype, n = new n(), ne(t, n), e.prototype = t = n;
149
+ t.prototype = e.prototype, t = new t(), tu(r, t), u.prototype = r = t;
150
150
  }
151
- t.constructor != e && (typeof e != "function" && console.error("unknown Class:" + e), t.constructor = e);
152
- }
153
- var q = {}, L = q.ELEMENT_NODE = 1, X = q.ATTRIBUTE_NODE = 2, ce = q.TEXT_NODE = 3, er = q.CDATA_SECTION_NODE = 4, rr = q.ENTITY_REFERENCE_NODE = 5, _r = q.ENTITY_NODE = 6, tr = q.PROCESSING_INSTRUCTION_NODE = 7, nr = q.COMMENT_NODE = 8, ar = q.DOCUMENT_NODE = 9, or = q.DOCUMENT_TYPE_NODE = 10, k = q.DOCUMENT_FRAGMENT_NODE = 11, Mr = q.NOTATION_NODE = 12, y = {}, N = {};
154
- y.INDEX_SIZE_ERR = (N[1] = "Index size error", 1);
155
- y.DOMSTRING_SIZE_ERR = (N[2] = "DOMString size error", 2);
156
- var D = y.HIERARCHY_REQUEST_ERR = (N[3] = "Hierarchy request error", 3);
157
- y.WRONG_DOCUMENT_ERR = (N[4] = "Wrong document", 4);
158
- y.INVALID_CHARACTER_ERR = (N[5] = "Invalid character", 5);
159
- y.NO_DATA_ALLOWED_ERR = (N[6] = "No data allowed", 6);
160
- y.NO_MODIFICATION_ALLOWED_ERR = (N[7] = "No modification allowed", 7);
161
- var ir = y.NOT_FOUND_ERR = (N[8] = "Not found", 8);
162
- y.NOT_SUPPORTED_ERR = (N[9] = "Not supported", 9);
163
- var Pe = y.INUSE_ATTRIBUTE_ERR = (N[10] = "Attribute in use", 10);
164
- y.INVALID_STATE_ERR = (N[11] = "Invalid state", 11);
165
- y.SYNTAX_ERR = (N[12] = "Syntax error", 12);
166
- y.INVALID_MODIFICATION_ERR = (N[13] = "Invalid modification", 13);
167
- y.NAMESPACE_ERR = (N[14] = "Invalid namespace", 14);
168
- y.INVALID_ACCESS_ERR = (N[15] = "Invalid access", 15);
169
- function b(e, r) {
170
- if (r instanceof Error)
171
- var t = r;
151
+ r.constructor != u && (typeof u != "function" && console.error("unknown Class:" + u), r.constructor = u);
152
+ }
153
+ var T = {}, q = T.ELEMENT_NODE = 1, $ = T.ATTRIBUTE_NODE = 2, lu = T.TEXT_NODE = 3, ue = T.CDATA_SECTION_NODE = 4, ee = T.ENTITY_REFERENCE_NODE = 5, Le = T.ENTITY_NODE = 6, re = T.PROCESSING_INSTRUCTION_NODE = 7, te = T.COMMENT_NODE = 8, ne = T.DOCUMENT_NODE = 9, ae = T.DOCUMENT_TYPE_NODE = 10, L = T.DOCUMENT_FRAGMENT_NODE = 11, Ie = T.NOTATION_NODE = 12, b = {}, v = {};
154
+ b.INDEX_SIZE_ERR = (v[1] = "Index size error", 1);
155
+ b.DOMSTRING_SIZE_ERR = (v[2] = "DOMString size error", 2);
156
+ var N = b.HIERARCHY_REQUEST_ERR = (v[3] = "Hierarchy request error", 3);
157
+ b.WRONG_DOCUMENT_ERR = (v[4] = "Wrong document", 4);
158
+ b.INVALID_CHARACTER_ERR = (v[5] = "Invalid character", 5);
159
+ b.NO_DATA_ALLOWED_ERR = (v[6] = "No data allowed", 6);
160
+ b.NO_MODIFICATION_ALLOWED_ERR = (v[7] = "No modification allowed", 7);
161
+ var ie = b.NOT_FOUND_ERR = (v[8] = "Not found", 8);
162
+ b.NOT_SUPPORTED_ERR = (v[9] = "Not supported", 9);
163
+ var Uu = b.INUSE_ATTRIBUTE_ERR = (v[10] = "Attribute in use", 10);
164
+ b.INVALID_STATE_ERR = (v[11] = "Invalid state", 11);
165
+ b.SYNTAX_ERR = (v[12] = "Syntax error", 12);
166
+ b.INVALID_MODIFICATION_ERR = (v[13] = "Invalid modification", 13);
167
+ b.NAMESPACE_ERR = (v[14] = "Invalid namespace", 14);
168
+ b.INVALID_ACCESS_ERR = (v[15] = "Invalid access", 15);
169
+ function m(u, e) {
170
+ if (e instanceof Error)
171
+ var r = e;
172
172
  else
173
- t = this, Error.call(this, N[e]), this.message = N[e], Error.captureStackTrace && Error.captureStackTrace(this, b);
174
- return t.code = e, r && (this.message = this.message + ": " + r), t;
173
+ r = this, Error.call(this, v[u]), this.message = v[u], Error.captureStackTrace && Error.captureStackTrace(this, m);
174
+ return r.code = u, e && (this.message = this.message + ": " + e), r;
175
175
  }
176
- b.prototype = Error.prototype;
177
- ne(y, b);
178
- function I() {
176
+ m.prototype = Error.prototype;
177
+ tu(b, m);
178
+ function _() {
179
179
  }
180
- I.prototype = {
180
+ _.prototype = {
181
181
  /**
182
182
  * The number of nodes in the list. The range of valid child node indices is 0 to length-1 inclusive.
183
183
  * @standard level1
@@ -191,121 +191,121 @@ I.prototype = {
191
191
  * @return Node
192
192
  * The node at the indexth position in the NodeList, or null if that is not a valid index.
193
193
  */
194
- item: function(e) {
195
- return e >= 0 && e < this.length ? this[e] : null;
194
+ item: function(u) {
195
+ return u >= 0 && u < this.length ? this[u] : null;
196
196
  },
197
- toString: function(e, r) {
198
- for (var t = [], n = 0; n < this.length; n++)
199
- F(this[n], t, e, r);
200
- return t.join("");
197
+ toString: function(u, e) {
198
+ for (var r = [], t = 0; t < this.length; t++)
199
+ j(this[t], r, u, e);
200
+ return r.join("");
201
201
  },
202
202
  /**
203
203
  * @private
204
204
  * @param {function (Node):boolean} predicate
205
205
  * @returns {Node[]}
206
206
  */
207
- filter: function(e) {
208
- return Array.prototype.filter.call(this, e);
207
+ filter: function(u) {
208
+ return Array.prototype.filter.call(this, u);
209
209
  },
210
210
  /**
211
211
  * @private
212
212
  * @param {Node} item
213
213
  * @returns {number}
214
214
  */
215
- indexOf: function(e) {
216
- return Array.prototype.indexOf.call(this, e);
215
+ indexOf: function(u) {
216
+ return Array.prototype.indexOf.call(this, u);
217
217
  }
218
218
  };
219
- function $(e, r) {
220
- this._node = e, this._refresh = r, Te(this);
221
- }
222
- function Te(e) {
223
- var r = e._node._inc || e._node.ownerDocument._inc;
224
- if (e._inc !== r) {
225
- var t = e._refresh(e._node);
226
- if (vr(e, "length", t.length), !e.$$length || t.length < e.$$length)
227
- for (var n = t.length; n in e; n++)
228
- Object.prototype.hasOwnProperty.call(e, n) && delete e[n];
229
- ne(t, e), e._inc = r;
219
+ function X(u, e) {
220
+ this._node = u, this._refresh = e, Bu(this);
221
+ }
222
+ function Bu(u) {
223
+ var e = u._node._inc || u._node.ownerDocument._inc;
224
+ if (u._inc !== e) {
225
+ var r = u._refresh(u._node);
226
+ if (ge(u, "length", r.length), !u.$$length || r.length < u.$$length)
227
+ for (var t = r.length; t in u; t++)
228
+ Object.prototype.hasOwnProperty.call(u, t) && delete u[t];
229
+ tu(r, u), u._inc = e;
230
230
  }
231
231
  }
232
- $.prototype.item = function(e) {
233
- return Te(this), this[e] || null;
232
+ X.prototype.item = function(u) {
233
+ return Bu(this), this[u] || null;
234
234
  };
235
- T($, I);
236
- function ue() {
237
- }
238
- function sr(e, r) {
239
- for (var t = e.length; t--; )
240
- if (e[t] === r)
241
- return t;
242
- }
243
- function Ve(e, r, t, n) {
244
- if (n ? r[sr(r, n)] = t : r[r.length++] = t, e) {
245
- t.ownerElement = e;
246
- var a = e.ownerDocument;
247
- a && (n && ur(a, e, n), Ur(a, e, t));
235
+ y(X, _);
236
+ function cu() {
237
+ }
238
+ function oe(u, e) {
239
+ for (var r = u.length; r--; )
240
+ if (u[r] === e)
241
+ return r;
242
+ }
243
+ function Mu(u, e, r, t) {
244
+ if (t ? e[oe(e, t)] = r : e[e.length++] = r, u) {
245
+ r.ownerElement = u;
246
+ var n = u.ownerDocument;
247
+ n && (t && ce(n, u, t), ke(n, u, r));
248
248
  }
249
249
  }
250
- function Be(e, r, t) {
251
- var n = sr(r, t);
252
- if (n >= 0) {
253
- for (var a = r.length - 1; n < a; )
254
- r[n] = r[++n];
255
- if (r.length = a, e) {
256
- var o = e.ownerDocument;
257
- o && (ur(o, e, t), t.ownerElement = null);
250
+ function Pu(u, e, r) {
251
+ var t = oe(e, r);
252
+ if (t >= 0) {
253
+ for (var n = e.length - 1; t < n; )
254
+ e[t] = e[++t];
255
+ if (e.length = n, u) {
256
+ var a = u.ownerDocument;
257
+ a && (ce(a, u, r), r.ownerElement = null);
258
258
  }
259
259
  } else
260
- throw new b(ir, new Error(e.tagName + "@" + t));
260
+ throw new m(ie, new Error(u.tagName + "@" + r));
261
261
  }
262
- ue.prototype = {
262
+ cu.prototype = {
263
263
  length: 0,
264
- item: I.prototype.item,
265
- getNamedItem: function(e) {
266
- for (var r = this.length; r--; ) {
267
- var t = this[r];
268
- if (t.nodeName == e)
269
- return t;
264
+ item: _.prototype.item,
265
+ getNamedItem: function(u) {
266
+ for (var e = this.length; e--; ) {
267
+ var r = this[e];
268
+ if (r.nodeName == u)
269
+ return r;
270
270
  }
271
271
  },
272
- setNamedItem: function(e) {
273
- var r = e.ownerElement;
274
- if (r && r != this._ownerElement)
275
- throw new b(Pe);
276
- var t = this.getNamedItem(e.nodeName);
277
- return Ve(this._ownerElement, this, e, t), t;
272
+ setNamedItem: function(u) {
273
+ var e = u.ownerElement;
274
+ if (e && e != this._ownerElement)
275
+ throw new m(Uu);
276
+ var r = this.getNamedItem(u.nodeName);
277
+ return Mu(this._ownerElement, this, u, r), r;
278
278
  },
279
279
  /* returns Node */
280
- setNamedItemNS: function(e) {
281
- var r = e.ownerElement, t;
282
- if (r && r != this._ownerElement)
283
- throw new b(Pe);
284
- return t = this.getNamedItemNS(e.namespaceURI, e.localName), Ve(this._ownerElement, this, e, t), t;
280
+ setNamedItemNS: function(u) {
281
+ var e = u.ownerElement, r;
282
+ if (e && e != this._ownerElement)
283
+ throw new m(Uu);
284
+ return r = this.getNamedItemNS(u.namespaceURI, u.localName), Mu(this._ownerElement, this, u, r), r;
285
285
  },
286
286
  /* returns Node */
287
- removeNamedItem: function(e) {
288
- var r = this.getNamedItem(e);
289
- return Be(this._ownerElement, this, r), r;
287
+ removeNamedItem: function(u) {
288
+ var e = this.getNamedItem(u);
289
+ return Pu(this._ownerElement, this, e), e;
290
290
  },
291
291
  // raises: NOT_FOUND_ERR,NO_MODIFICATION_ALLOWED_ERR
292
292
  //for level2
293
- removeNamedItemNS: function(e, r) {
294
- var t = this.getNamedItemNS(e, r);
295
- return Be(this._ownerElement, this, t), t;
296
- },
297
- getNamedItemNS: function(e, r) {
298
- for (var t = this.length; t--; ) {
299
- var n = this[t];
300
- if (n.localName == r && n.namespaceURI == e)
301
- return n;
293
+ removeNamedItemNS: function(u, e) {
294
+ var r = this.getNamedItemNS(u, e);
295
+ return Pu(this._ownerElement, this, r), r;
296
+ },
297
+ getNamedItemNS: function(u, e) {
298
+ for (var r = this.length; r--; ) {
299
+ var t = this[r];
300
+ if (t.localName == e && t.namespaceURI == u)
301
+ return t;
302
302
  }
303
303
  return null;
304
304
  }
305
305
  };
306
- function lr() {
306
+ function se() {
307
307
  }
308
- lr.prototype = {
308
+ se.prototype = {
309
309
  /**
310
310
  * The DOMImplementation.hasFeature() method returns a Boolean flag indicating if a given feature is supported.
311
311
  * The different implementations fairly diverged in what kind of features were reported.
@@ -321,7 +321,7 @@ lr.prototype = {
321
321
  * @see https://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-5CED94D7 DOM Level 1 Core
322
322
  * @see https://dom.spec.whatwg.org/#dom-domimplementation-hasfeature DOM Living Standard
323
323
  */
324
- hasFeature: function(e, r) {
324
+ hasFeature: function(u, e) {
325
325
  return !0;
326
326
  },
327
327
  /**
@@ -346,13 +346,13 @@ lr.prototype = {
346
346
  * @see https://www.w3.org/TR/xml/#NT-NameStartChar XML Spec: Names
347
347
  * @see https://www.w3.org/TR/xml-names/#ns-qualnames XML Namespaces: Qualified names
348
348
  */
349
- createDocument: function(e, r, t) {
350
- var n = new ae();
351
- if (n.implementation = this, n.childNodes = new I(), n.doctype = t || null, t && n.appendChild(t), r) {
352
- var a = n.createElementNS(e, r);
353
- n.appendChild(a);
349
+ createDocument: function(u, e, r) {
350
+ var t = new nu();
351
+ if (t.implementation = this, t.childNodes = new _(), t.doctype = r || null, r && t.appendChild(r), e) {
352
+ var n = t.createElementNS(u, e);
353
+ t.appendChild(n);
354
354
  }
355
- return n;
355
+ return t;
356
356
  },
357
357
  /**
358
358
  * Returns a doctype, with the given `qualifiedName`, `publicId`, and `systemId`.
@@ -375,14 +375,14 @@ lr.prototype = {
375
375
  * @see https://www.w3.org/TR/xml/#NT-NameStartChar XML Spec: Names
376
376
  * @see https://www.w3.org/TR/xml-names/#ns-qualnames XML Namespaces: Qualified names
377
377
  */
378
- createDocumentType: function(e, r, t) {
379
- var n = new fe();
380
- return n.name = e, n.nodeName = e, n.publicId = r || "", n.systemId = t || "", n;
378
+ createDocumentType: function(u, e, r) {
379
+ var t = new fu();
380
+ return t.name = u, t.nodeName = u, t.publicId = e || "", t.systemId = r || "", t;
381
381
  }
382
382
  };
383
- function d() {
383
+ function D() {
384
384
  }
385
- d.prototype = {
385
+ D.prototype = {
386
386
  firstChild: null,
387
387
  lastChild: null,
388
388
  previousSibling: null,
@@ -396,34 +396,34 @@ d.prototype = {
396
396
  prefix: null,
397
397
  localName: null,
398
398
  // Modified in DOM Level 2:
399
- insertBefore: function(e, r) {
400
- return pe(this, e, r);
399
+ insertBefore: function(u, e) {
400
+ return pu(this, u, e);
401
401
  },
402
- replaceChild: function(e, r) {
403
- pe(this, e, r, dr), r && this.removeChild(r);
402
+ replaceChild: function(u, e) {
403
+ pu(this, u, e, De), e && this.removeChild(e);
404
404
  },
405
- removeChild: function(e) {
406
- return pr(this, e);
405
+ removeChild: function(u) {
406
+ return pe(this, u);
407
407
  },
408
- appendChild: function(e) {
409
- return this.insertBefore(e, null);
408
+ appendChild: function(u) {
409
+ return this.insertBefore(u, null);
410
410
  },
411
411
  hasChildNodes: function() {
412
412
  return this.firstChild != null;
413
413
  },
414
- cloneNode: function(e) {
415
- return Ne(this.ownerDocument || this, this, e);
414
+ cloneNode: function(u) {
415
+ return Cu(this.ownerDocument || this, this, u);
416
416
  },
417
417
  // Modified in DOM Level 2:
418
418
  normalize: function() {
419
- for (var e = this.firstChild; e; ) {
420
- var r = e.nextSibling;
421
- r && r.nodeType == ce && e.nodeType == ce ? (this.removeChild(r), e.appendData(r.data)) : (e.normalize(), e = r);
419
+ for (var u = this.firstChild; u; ) {
420
+ var e = u.nextSibling;
421
+ e && e.nodeType == lu && u.nodeType == lu ? (this.removeChild(e), u.appendData(e.data)) : (u.normalize(), u = e);
422
422
  }
423
423
  },
424
424
  // Introduced in DOM Level 2:
425
- isSupported: function(e, r) {
426
- return this.ownerDocument.implementation.hasFeature(e, r);
425
+ isSupported: function(u, e) {
426
+ return this.ownerDocument.implementation.hasFeature(u, e);
427
427
  },
428
428
  // Introduced in DOM Level 2:
429
429
  hasAttributes: function() {
@@ -443,209 +443,209 @@ d.prototype = {
443
443
  * @see https://dom.spec.whatwg.org/#dom-node-lookupprefix
444
444
  * @see https://github.com/xmldom/xmldom/issues/322
445
445
  */
446
- lookupPrefix: function(e) {
447
- for (var r = this; r; ) {
448
- var t = r._nsMap;
449
- if (t) {
450
- for (var n in t)
451
- if (Object.prototype.hasOwnProperty.call(t, n) && t[n] === e)
452
- return n;
446
+ lookupPrefix: function(u) {
447
+ for (var e = this; e; ) {
448
+ var r = e._nsMap;
449
+ if (r) {
450
+ for (var t in r)
451
+ if (Object.prototype.hasOwnProperty.call(r, t) && r[t] === u)
452
+ return t;
453
453
  }
454
- r = r.nodeType == X ? r.ownerDocument : r.parentNode;
454
+ e = e.nodeType == $ ? e.ownerDocument : e.parentNode;
455
455
  }
456
456
  return null;
457
457
  },
458
458
  // Introduced in DOM Level 3:
459
- lookupNamespaceURI: function(e) {
460
- for (var r = this; r; ) {
461
- var t = r._nsMap;
462
- if (t && Object.prototype.hasOwnProperty.call(t, e))
463
- return t[e];
464
- r = r.nodeType == X ? r.ownerDocument : r.parentNode;
459
+ lookupNamespaceURI: function(u) {
460
+ for (var e = this; e; ) {
461
+ var r = e._nsMap;
462
+ if (r && Object.prototype.hasOwnProperty.call(r, u))
463
+ return r[u];
464
+ e = e.nodeType == $ ? e.ownerDocument : e.parentNode;
465
465
  }
466
466
  return null;
467
467
  },
468
468
  // Introduced in DOM Level 3:
469
- isDefaultNamespace: function(e) {
470
- var r = this.lookupPrefix(e);
471
- return r == null;
469
+ isDefaultNamespace: function(u) {
470
+ var e = this.lookupPrefix(u);
471
+ return e == null;
472
472
  }
473
473
  };
474
- function cr(e) {
475
- return e == "<" && "&lt;" || e == ">" && "&gt;" || e == "&" && "&amp;" || e == '"' && "&quot;" || "&#" + e.charCodeAt() + ";";
474
+ function le(u) {
475
+ return u == "<" && "&lt;" || u == ">" && "&gt;" || u == "&" && "&amp;" || u == '"' && "&quot;" || "&#" + u.charCodeAt() + ";";
476
476
  }
477
- ne(q, d);
478
- ne(q, d.prototype);
479
- function ee(e, r) {
480
- if (r(e))
477
+ tu(T, D);
478
+ tu(T, D.prototype);
479
+ function uu(u, e) {
480
+ if (e(u))
481
481
  return !0;
482
- if (e = e.firstChild)
482
+ if (u = u.firstChild)
483
483
  do
484
- if (ee(e, r))
484
+ if (uu(u, e))
485
485
  return !0;
486
- while (e = e.nextSibling);
486
+ while (u = u.nextSibling);
487
487
  }
488
- function ae() {
488
+ function nu() {
489
489
  this.ownerDocument = this;
490
490
  }
491
- function Ur(e, r, t) {
492
- e && e._inc++;
493
- var n = t.namespaceURI;
494
- n === Q.XMLNS && (r._nsMap[t.prefix ? t.localName : ""] = t.value);
495
- }
496
- function ur(e, r, t, n) {
497
- e && e._inc++;
498
- var a = t.namespaceURI;
499
- a === Q.XMLNS && delete r._nsMap[t.prefix ? t.localName : ""];
500
- }
501
- function qe(e, r, t) {
502
- if (e && e._inc) {
503
- e._inc++;
504
- var n = r.childNodes;
505
- if (t)
506
- n[n.length++] = t;
491
+ function ke(u, e, r) {
492
+ u && u._inc++;
493
+ var t = r.namespaceURI;
494
+ t === K.XMLNS && (e._nsMap[r.prefix ? r.localName : ""] = r.value);
495
+ }
496
+ function ce(u, e, r, t) {
497
+ u && u._inc++;
498
+ var n = r.namespaceURI;
499
+ n === K.XMLNS && delete e._nsMap[r.prefix ? r.localName : ""];
500
+ }
501
+ function Nu(u, e, r) {
502
+ if (u && u._inc) {
503
+ u._inc++;
504
+ var t = e.childNodes;
505
+ if (r)
506
+ t[t.length++] = r;
507
507
  else {
508
- for (var a = r.firstChild, o = 0; a; )
509
- n[o++] = a, a = a.nextSibling;
510
- n.length = o, delete n[n.length];
508
+ for (var n = e.firstChild, a = 0; n; )
509
+ t[a++] = n, n = n.nextSibling;
510
+ t.length = a, delete t[t.length];
511
511
  }
512
512
  }
513
513
  }
514
- function pr(e, r) {
515
- var t = r.previousSibling, n = r.nextSibling;
516
- return t ? t.nextSibling = n : e.firstChild = n, n ? n.previousSibling = t : e.lastChild = t, r.parentNode = null, r.previousSibling = null, r.nextSibling = null, qe(e.ownerDocument, e), r;
514
+ function pe(u, e) {
515
+ var r = e.previousSibling, t = e.nextSibling;
516
+ return r ? r.nextSibling = t : u.firstChild = t, t ? t.previousSibling = r : u.lastChild = r, e.parentNode = null, e.previousSibling = null, e.nextSibling = null, Nu(u.ownerDocument, u), e;
517
517
  }
518
- function Pr(e) {
519
- return e && (e.nodeType === d.DOCUMENT_NODE || e.nodeType === d.DOCUMENT_FRAGMENT_NODE || e.nodeType === d.ELEMENT_NODE);
518
+ function Ue(u) {
519
+ return u && (u.nodeType === D.DOCUMENT_NODE || u.nodeType === D.DOCUMENT_FRAGMENT_NODE || u.nodeType === D.ELEMENT_NODE);
520
520
  }
521
- function Vr(e) {
522
- return e && (C(e) || xe(e) || _(e) || e.nodeType === d.DOCUMENT_FRAGMENT_NODE || e.nodeType === d.COMMENT_NODE || e.nodeType === d.PROCESSING_INSTRUCTION_NODE);
521
+ function Me(u) {
522
+ return u && (R(u) || yu(u) || I(u) || u.nodeType === D.DOCUMENT_FRAGMENT_NODE || u.nodeType === D.COMMENT_NODE || u.nodeType === D.PROCESSING_INSTRUCTION_NODE);
523
523
  }
524
- function _(e) {
525
- return e && e.nodeType === d.DOCUMENT_TYPE_NODE;
524
+ function I(u) {
525
+ return u && u.nodeType === D.DOCUMENT_TYPE_NODE;
526
526
  }
527
- function C(e) {
528
- return e && e.nodeType === d.ELEMENT_NODE;
527
+ function R(u) {
528
+ return u && u.nodeType === D.ELEMENT_NODE;
529
529
  }
530
- function xe(e) {
531
- return e && e.nodeType === d.TEXT_NODE;
530
+ function yu(u) {
531
+ return u && u.nodeType === D.TEXT_NODE;
532
532
  }
533
- function He(e, r) {
534
- var t = e.childNodes || [];
535
- if (R(t, C) || _(r))
533
+ function Vu(u, e) {
534
+ var r = u.childNodes || [];
535
+ if (O(r, R) || I(e))
536
536
  return !1;
537
- var n = R(t, _);
538
- return !(r && n && t.indexOf(n) > t.indexOf(r));
537
+ var t = O(r, I);
538
+ return !(e && t && r.indexOf(t) > r.indexOf(e));
539
539
  }
540
- function Ge(e, r) {
541
- var t = e.childNodes || [];
542
- function n(o) {
543
- return C(o) && o !== r;
540
+ function Gu(u, e) {
541
+ var r = u.childNodes || [];
542
+ function t(a) {
543
+ return R(a) && a !== e;
544
544
  }
545
- if (R(t, n))
545
+ if (O(r, t))
546
546
  return !1;
547
- var a = R(t, _);
548
- return !(r && a && t.indexOf(a) > t.indexOf(r));
549
- }
550
- function Br(e, r, t) {
551
- if (!Pr(e))
552
- throw new b(D, "Unexpected parent node type " + e.nodeType);
553
- if (t && t.parentNode !== e)
554
- throw new b(ir, "child not in parent");
547
+ var n = O(r, I);
548
+ return !(e && n && r.indexOf(n) > r.indexOf(e));
549
+ }
550
+ function Pe(u, e, r) {
551
+ if (!Ue(u))
552
+ throw new m(N, "Unexpected parent node type " + u.nodeType);
553
+ if (r && r.parentNode !== u)
554
+ throw new m(ie, "child not in parent");
555
555
  if (
556
556
  // 4. If `node` is not a DocumentFragment, DocumentType, Element, or CharacterData node, then throw a "HierarchyRequestError" DOMException.
557
- !Vr(r) || // 5. If either `node` is a Text node and `parent` is a document,
557
+ !Me(e) || // 5. If either `node` is a Text node and `parent` is a document,
558
558
  // the sax parser currently adds top level text nodes, this will be fixed in 0.9.0
559
559
  // || (node.nodeType === Node.TEXT_NODE && parent.nodeType === Node.DOCUMENT_NODE)
560
560
  // or `node` is a doctype and `parent` is not a document, then throw a "HierarchyRequestError" DOMException.
561
- _(r) && e.nodeType !== d.DOCUMENT_NODE
561
+ I(e) && u.nodeType !== D.DOCUMENT_NODE
562
562
  )
563
- throw new b(
564
- D,
565
- "Unexpected node type " + r.nodeType + " for parent node type " + e.nodeType
563
+ throw new m(
564
+ N,
565
+ "Unexpected node type " + e.nodeType + " for parent node type " + u.nodeType
566
566
  );
567
567
  }
568
- function Hr(e, r, t) {
569
- var n = e.childNodes || [], a = r.childNodes || [];
570
- if (r.nodeType === d.DOCUMENT_FRAGMENT_NODE) {
571
- var o = a.filter(C);
572
- if (o.length > 1 || R(a, xe))
573
- throw new b(D, "More than one element or text in fragment");
574
- if (o.length === 1 && !He(e, t))
575
- throw new b(D, "Element in fragment can not be inserted before doctype");
568
+ function Ve(u, e, r) {
569
+ var t = u.childNodes || [], n = e.childNodes || [];
570
+ if (e.nodeType === D.DOCUMENT_FRAGMENT_NODE) {
571
+ var a = n.filter(R);
572
+ if (a.length > 1 || O(n, yu))
573
+ throw new m(N, "More than one element or text in fragment");
574
+ if (a.length === 1 && !Vu(u, r))
575
+ throw new m(N, "Element in fragment can not be inserted before doctype");
576
576
  }
577
- if (C(r) && !He(e, t))
578
- throw new b(D, "Only one element can be added and only after doctype");
579
- if (_(r)) {
580
- if (R(n, _))
581
- throw new b(D, "Only one doctype is allowed");
582
- var i = R(n, C);
583
- if (t && n.indexOf(i) < n.indexOf(t))
584
- throw new b(D, "Doctype can only be inserted before an element");
585
- if (!t && i)
586
- throw new b(D, "Doctype can not be appended since element is present");
577
+ if (R(e) && !Vu(u, r))
578
+ throw new m(N, "Only one element can be added and only after doctype");
579
+ if (I(e)) {
580
+ if (O(t, I))
581
+ throw new m(N, "Only one doctype is allowed");
582
+ var i = O(t, R);
583
+ if (r && t.indexOf(i) < t.indexOf(r))
584
+ throw new m(N, "Doctype can only be inserted before an element");
585
+ if (!r && i)
586
+ throw new m(N, "Doctype can not be appended since element is present");
587
587
  }
588
588
  }
589
- function dr(e, r, t) {
590
- var n = e.childNodes || [], a = r.childNodes || [];
591
- if (r.nodeType === d.DOCUMENT_FRAGMENT_NODE) {
592
- var o = a.filter(C);
593
- if (o.length > 1 || R(a, xe))
594
- throw new b(D, "More than one element or text in fragment");
595
- if (o.length === 1 && !Ge(e, t))
596
- throw new b(D, "Element in fragment can not be inserted before doctype");
589
+ function De(u, e, r) {
590
+ var t = u.childNodes || [], n = e.childNodes || [];
591
+ if (e.nodeType === D.DOCUMENT_FRAGMENT_NODE) {
592
+ var a = n.filter(R);
593
+ if (a.length > 1 || O(n, yu))
594
+ throw new m(N, "More than one element or text in fragment");
595
+ if (a.length === 1 && !Gu(u, r))
596
+ throw new m(N, "Element in fragment can not be inserted before doctype");
597
597
  }
598
- if (C(r) && !Ge(e, t))
599
- throw new b(D, "Only one element can be added and only after doctype");
600
- if (_(r)) {
601
- if (R(n, function(s) {
602
- return _(s) && s !== t;
598
+ if (R(e) && !Gu(u, r))
599
+ throw new m(N, "Only one element can be added and only after doctype");
600
+ if (I(e)) {
601
+ if (O(t, function(o) {
602
+ return I(o) && o !== r;
603
603
  }))
604
- throw new b(D, "Only one doctype is allowed");
605
- var i = R(n, C);
606
- if (t && n.indexOf(i) < n.indexOf(t))
607
- throw new b(D, "Doctype can only be inserted before an element");
604
+ throw new m(N, "Only one doctype is allowed");
605
+ var i = O(t, R);
606
+ if (r && t.indexOf(i) < t.indexOf(r))
607
+ throw new m(N, "Doctype can only be inserted before an element");
608
608
  }
609
609
  }
610
- function pe(e, r, t, n) {
611
- Br(e, r, t), e.nodeType === d.DOCUMENT_NODE && (n || Hr)(e, r, t);
612
- var a = r.parentNode;
613
- if (a && a.removeChild(r), r.nodeType === k) {
614
- var o = r.firstChild;
615
- if (o == null)
616
- return r;
617
- var i = r.lastChild;
610
+ function pu(u, e, r, t) {
611
+ Pe(u, e, r), u.nodeType === D.DOCUMENT_NODE && (t || Ve)(u, e, r);
612
+ var n = e.parentNode;
613
+ if (n && n.removeChild(e), e.nodeType === L) {
614
+ var a = e.firstChild;
615
+ if (a == null)
616
+ return e;
617
+ var i = e.lastChild;
618
618
  } else
619
- o = i = r;
620
- var s = t ? t.previousSibling : e.lastChild;
621
- o.previousSibling = s, i.nextSibling = t, s ? s.nextSibling = o : e.firstChild = o, t == null ? e.lastChild = i : t.previousSibling = i;
619
+ a = i = e;
620
+ var s = r ? r.previousSibling : u.lastChild;
621
+ a.previousSibling = s, i.nextSibling = r, s ? s.nextSibling = a : u.firstChild = a, r == null ? u.lastChild = i : r.previousSibling = i;
622
622
  do {
623
- o.parentNode = e;
624
- var u = e.ownerDocument || e;
625
- re(o, u);
626
- } while (o !== i && (o = o.nextSibling));
627
- return qe(e.ownerDocument || e, e), r.nodeType == k && (r.firstChild = r.lastChild = null), r;
628
- }
629
- function re(e, r) {
630
- if (e.ownerDocument !== r) {
631
- if (e.ownerDocument = r, e.nodeType === L && e.attributes)
632
- for (var t = 0; t < e.attributes.length; t++) {
633
- var n = e.attributes.item(t);
634
- n && (n.ownerDocument = r);
623
+ a.parentNode = u;
624
+ var o = u.ownerDocument || u;
625
+ eu(a, o);
626
+ } while (a !== i && (a = a.nextSibling));
627
+ return Nu(u.ownerDocument || u, u), e.nodeType == L && (e.firstChild = e.lastChild = null), e;
628
+ }
629
+ function eu(u, e) {
630
+ if (u.ownerDocument !== e) {
631
+ if (u.ownerDocument = e, u.nodeType === q && u.attributes)
632
+ for (var r = 0; r < u.attributes.length; r++) {
633
+ var t = u.attributes.item(r);
634
+ t && (t.ownerDocument = e);
635
635
  }
636
- for (var a = e.firstChild; a; )
637
- re(a, r), a = a.nextSibling;
636
+ for (var n = u.firstChild; n; )
637
+ eu(n, e), n = n.nextSibling;
638
638
  }
639
639
  }
640
- function Gr(e, r) {
641
- r.parentNode && r.parentNode.removeChild(r), r.parentNode = e, r.previousSibling = e.lastChild, r.nextSibling = null, r.previousSibling ? r.previousSibling.nextSibling = r : e.firstChild = r, e.lastChild = r, qe(e.ownerDocument, e, r);
642
- var t = e.ownerDocument || e;
643
- return re(r, t), r;
640
+ function Ge(u, e) {
641
+ e.parentNode && e.parentNode.removeChild(e), e.parentNode = u, e.previousSibling = u.lastChild, e.nextSibling = null, e.previousSibling ? e.previousSibling.nextSibling = e : u.firstChild = e, u.lastChild = e, Nu(u.ownerDocument, u, e);
642
+ var r = u.ownerDocument || u;
643
+ return eu(e, r), e;
644
644
  }
645
- ae.prototype = {
645
+ nu.prototype = {
646
646
  //implementation : null,
647
647
  nodeName: "#document",
648
- nodeType: ar,
648
+ nodeType: ne,
649
649
  /**
650
650
  * The DocumentType node of the document.
651
651
  *
@@ -655,33 +655,33 @@ ae.prototype = {
655
655
  doctype: null,
656
656
  documentElement: null,
657
657
  _inc: 1,
658
- insertBefore: function(e, r) {
659
- if (e.nodeType == k) {
660
- for (var t = e.firstChild; t; ) {
661
- var n = t.nextSibling;
662
- this.insertBefore(t, r), t = n;
658
+ insertBefore: function(u, e) {
659
+ if (u.nodeType == L) {
660
+ for (var r = u.firstChild; r; ) {
661
+ var t = r.nextSibling;
662
+ this.insertBefore(r, e), r = t;
663
663
  }
664
- return e;
664
+ return u;
665
665
  }
666
- return pe(this, e, r), re(e, this), this.documentElement === null && e.nodeType === L && (this.documentElement = e), e;
666
+ return pu(this, u, e), eu(u, this), this.documentElement === null && u.nodeType === q && (this.documentElement = u), u;
667
667
  },
668
- removeChild: function(e) {
669
- return this.documentElement == e && (this.documentElement = null), pr(this, e);
668
+ removeChild: function(u) {
669
+ return this.documentElement == u && (this.documentElement = null), pe(this, u);
670
670
  },
671
- replaceChild: function(e, r) {
672
- pe(this, e, r, dr), re(e, this), r && this.removeChild(r), C(e) && (this.documentElement = e);
671
+ replaceChild: function(u, e) {
672
+ pu(this, u, e, De), eu(u, this), e && this.removeChild(e), R(u) && (this.documentElement = u);
673
673
  },
674
674
  // Introduced in DOM Level 2:
675
- importNode: function(e, r) {
676
- return br(this, e, r);
675
+ importNode: function(u, e) {
676
+ return Ee(this, u, e);
677
677
  },
678
678
  // Introduced in DOM Level 2:
679
- getElementById: function(e) {
680
- var r = null;
681
- return ee(this.documentElement, function(t) {
682
- if (t.nodeType == L && t.getAttribute("id") == e)
683
- return r = t, !0;
684
- }), r;
679
+ getElementById: function(u) {
680
+ var e = null;
681
+ return uu(this.documentElement, function(r) {
682
+ if (r.nodeType == q && r.getAttribute("id") == u)
683
+ return e = r, !0;
684
+ }), e;
685
685
  },
686
686
  /**
687
687
  * The `getElementsByClassName` method of `Document` interface returns an array-like object
@@ -700,457 +700,457 @@ ae.prototype = {
700
700
  * @see https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByClassName
701
701
  * @see https://dom.spec.whatwg.org/#concept-getelementsbyclassname
702
702
  */
703
- getElementsByClassName: function(e) {
704
- var r = Ue(e);
705
- return new $(this, function(t) {
706
- var n = [];
707
- return r.length > 0 && ee(t.documentElement, function(a) {
708
- if (a !== t && a.nodeType === L) {
709
- var o = a.getAttribute("class");
710
- if (o) {
711
- var i = e === o;
703
+ getElementsByClassName: function(u) {
704
+ var e = ku(u);
705
+ return new X(this, function(r) {
706
+ var t = [];
707
+ return e.length > 0 && uu(r.documentElement, function(n) {
708
+ if (n !== r && n.nodeType === q) {
709
+ var a = n.getAttribute("class");
710
+ if (a) {
711
+ var i = u === a;
712
712
  if (!i) {
713
- var s = Ue(o);
714
- i = r.every(kr(s));
713
+ var s = ku(a);
714
+ i = e.every(_e(s));
715
715
  }
716
- i && n.push(a);
716
+ i && t.push(n);
717
717
  }
718
718
  }
719
- }), n;
719
+ }), t;
720
720
  });
721
721
  },
722
722
  //document factory method:
723
- createElement: function(e) {
724
- var r = new B();
725
- r.ownerDocument = this, r.nodeName = e, r.tagName = e, r.localName = e, r.childNodes = new I();
726
- var t = r.attributes = new ue();
727
- return t._ownerElement = r, r;
723
+ createElement: function(u) {
724
+ var e = new P();
725
+ e.ownerDocument = this, e.nodeName = u, e.tagName = u, e.localName = u, e.childNodes = new _();
726
+ var r = e.attributes = new cu();
727
+ return r._ownerElement = e, e;
728
728
  },
729
729
  createDocumentFragment: function() {
730
- var e = new he();
731
- return e.ownerDocument = this, e.childNodes = new I(), e;
730
+ var u = new Au();
731
+ return u.ownerDocument = this, u.childNodes = new _(), u;
732
732
  },
733
- createTextNode: function(e) {
734
- var r = new Se();
735
- return r.ownerDocument = this, r.appendData(e), r;
733
+ createTextNode: function(u) {
734
+ var e = new Tu();
735
+ return e.ownerDocument = this, e.appendData(u), e;
736
736
  },
737
- createComment: function(e) {
738
- var r = new Ae();
739
- return r.ownerDocument = this, r.appendData(e), r;
737
+ createComment: function(u) {
738
+ var e = new Fu();
739
+ return e.ownerDocument = this, e.appendData(u), e;
740
740
  },
741
- createCDATASection: function(e) {
742
- var r = new Le();
743
- return r.ownerDocument = this, r.appendData(e), r;
741
+ createCDATASection: function(u) {
742
+ var e = new xu();
743
+ return e.ownerDocument = this, e.appendData(u), e;
744
744
  },
745
- createProcessingInstruction: function(e, r) {
746
- var t = new Re();
747
- return t.ownerDocument = this, t.tagName = t.nodeName = t.target = e, t.nodeValue = t.data = r, t;
745
+ createProcessingInstruction: function(u, e) {
746
+ var r = new qu();
747
+ return r.ownerDocument = this, r.tagName = r.nodeName = r.target = u, r.nodeValue = r.data = e, r;
748
748
  },
749
- createAttribute: function(e) {
750
- var r = new de();
751
- return r.ownerDocument = this, r.name = e, r.nodeName = e, r.localName = e, r.specified = !0, r;
749
+ createAttribute: function(u) {
750
+ var e = new Du();
751
+ return e.ownerDocument = this, e.name = u, e.nodeName = u, e.localName = u, e.specified = !0, e;
752
752
  },
753
- createEntityReference: function(e) {
754
- var r = new Oe();
755
- return r.ownerDocument = this, r.nodeName = e, r;
753
+ createEntityReference: function(u) {
754
+ var e = new Su();
755
+ return e.ownerDocument = this, e.nodeName = u, e;
756
756
  },
757
757
  // Introduced in DOM Level 2:
758
- createElementNS: function(e, r) {
759
- var t = new B(), n = r.split(":"), a = t.attributes = new ue();
760
- return t.childNodes = new I(), t.ownerDocument = this, t.nodeName = r, t.tagName = r, t.namespaceURI = e, n.length == 2 ? (t.prefix = n[0], t.localName = n[1]) : t.localName = r, a._ownerElement = t, t;
758
+ createElementNS: function(u, e) {
759
+ var r = new P(), t = e.split(":"), n = r.attributes = new cu();
760
+ return r.childNodes = new _(), r.ownerDocument = this, r.nodeName = e, r.tagName = e, r.namespaceURI = u, t.length == 2 ? (r.prefix = t[0], r.localName = t[1]) : r.localName = e, n._ownerElement = r, r;
761
761
  },
762
762
  // Introduced in DOM Level 2:
763
- createAttributeNS: function(e, r) {
764
- var t = new de(), n = r.split(":");
765
- return t.ownerDocument = this, t.nodeName = r, t.name = r, t.namespaceURI = e, t.specified = !0, n.length == 2 ? (t.prefix = n[0], t.localName = n[1]) : t.localName = r, t;
763
+ createAttributeNS: function(u, e) {
764
+ var r = new Du(), t = e.split(":");
765
+ return r.ownerDocument = this, r.nodeName = e, r.name = e, r.namespaceURI = u, r.specified = !0, t.length == 2 ? (r.prefix = t[0], r.localName = t[1]) : r.localName = e, r;
766
766
  }
767
767
  };
768
- T(ae, d);
769
- function B() {
768
+ y(nu, D);
769
+ function P() {
770
770
  this._nsMap = {};
771
771
  }
772
- B.prototype = {
773
- nodeType: L,
774
- hasAttribute: function(e) {
775
- return this.getAttributeNode(e) != null;
772
+ P.prototype = {
773
+ nodeType: q,
774
+ hasAttribute: function(u) {
775
+ return this.getAttributeNode(u) != null;
776
776
  },
777
- getAttribute: function(e) {
778
- var r = this.getAttributeNode(e);
779
- return r && r.value || "";
777
+ getAttribute: function(u) {
778
+ var e = this.getAttributeNode(u);
779
+ return e && e.value || "";
780
780
  },
781
- getAttributeNode: function(e) {
782
- return this.attributes.getNamedItem(e);
781
+ getAttributeNode: function(u) {
782
+ return this.attributes.getNamedItem(u);
783
783
  },
784
- setAttribute: function(e, r) {
785
- var t = this.ownerDocument.createAttribute(e);
786
- t.value = t.nodeValue = "" + r, this.setAttributeNode(t);
784
+ setAttribute: function(u, e) {
785
+ var r = this.ownerDocument.createAttribute(u);
786
+ r.value = r.nodeValue = "" + e, this.setAttributeNode(r);
787
787
  },
788
- removeAttribute: function(e) {
789
- var r = this.getAttributeNode(e);
790
- r && this.removeAttributeNode(r);
788
+ removeAttribute: function(u) {
789
+ var e = this.getAttributeNode(u);
790
+ e && this.removeAttributeNode(e);
791
791
  },
792
792
  //four real opeartion method
793
- appendChild: function(e) {
794
- return e.nodeType === k ? this.insertBefore(e, null) : Gr(this, e);
793
+ appendChild: function(u) {
794
+ return u.nodeType === L ? this.insertBefore(u, null) : Ge(this, u);
795
795
  },
796
- setAttributeNode: function(e) {
797
- return this.attributes.setNamedItem(e);
796
+ setAttributeNode: function(u) {
797
+ return this.attributes.setNamedItem(u);
798
798
  },
799
- setAttributeNodeNS: function(e) {
800
- return this.attributes.setNamedItemNS(e);
799
+ setAttributeNodeNS: function(u) {
800
+ return this.attributes.setNamedItemNS(u);
801
801
  },
802
- removeAttributeNode: function(e) {
803
- return this.attributes.removeNamedItem(e.nodeName);
802
+ removeAttributeNode: function(u) {
803
+ return this.attributes.removeNamedItem(u.nodeName);
804
804
  },
805
805
  //get real attribute name,and remove it by removeAttributeNode
806
- removeAttributeNS: function(e, r) {
807
- var t = this.getAttributeNodeNS(e, r);
808
- t && this.removeAttributeNode(t);
806
+ removeAttributeNS: function(u, e) {
807
+ var r = this.getAttributeNodeNS(u, e);
808
+ r && this.removeAttributeNode(r);
809
809
  },
810
- hasAttributeNS: function(e, r) {
811
- return this.getAttributeNodeNS(e, r) != null;
810
+ hasAttributeNS: function(u, e) {
811
+ return this.getAttributeNodeNS(u, e) != null;
812
812
  },
813
- getAttributeNS: function(e, r) {
814
- var t = this.getAttributeNodeNS(e, r);
815
- return t && t.value || "";
813
+ getAttributeNS: function(u, e) {
814
+ var r = this.getAttributeNodeNS(u, e);
815
+ return r && r.value || "";
816
816
  },
817
- setAttributeNS: function(e, r, t) {
818
- var n = this.ownerDocument.createAttributeNS(e, r);
819
- n.value = n.nodeValue = "" + t, this.setAttributeNode(n);
817
+ setAttributeNS: function(u, e, r) {
818
+ var t = this.ownerDocument.createAttributeNS(u, e);
819
+ t.value = t.nodeValue = "" + r, this.setAttributeNode(t);
820
820
  },
821
- getAttributeNodeNS: function(e, r) {
822
- return this.attributes.getNamedItemNS(e, r);
821
+ getAttributeNodeNS: function(u, e) {
822
+ return this.attributes.getNamedItemNS(u, e);
823
823
  },
824
- getElementsByTagName: function(e) {
825
- return new $(this, function(r) {
826
- var t = [];
827
- return ee(r, function(n) {
828
- n !== r && n.nodeType == L && (e === "*" || n.tagName == e) && t.push(n);
829
- }), t;
824
+ getElementsByTagName: function(u) {
825
+ return new X(this, function(e) {
826
+ var r = [];
827
+ return uu(e, function(t) {
828
+ t !== e && t.nodeType == q && (u === "*" || t.tagName == u) && r.push(t);
829
+ }), r;
830
830
  });
831
831
  },
832
- getElementsByTagNameNS: function(e, r) {
833
- return new $(this, function(t) {
834
- var n = [];
835
- return ee(t, function(a) {
836
- a !== t && a.nodeType === L && (e === "*" || a.namespaceURI === e) && (r === "*" || a.localName == r) && n.push(a);
837
- }), n;
832
+ getElementsByTagNameNS: function(u, e) {
833
+ return new X(this, function(r) {
834
+ var t = [];
835
+ return uu(r, function(n) {
836
+ n !== r && n.nodeType === q && (u === "*" || n.namespaceURI === u) && (e === "*" || n.localName == e) && t.push(n);
837
+ }), t;
838
838
  });
839
839
  }
840
840
  };
841
- ae.prototype.getElementsByTagName = B.prototype.getElementsByTagName;
842
- ae.prototype.getElementsByTagNameNS = B.prototype.getElementsByTagNameNS;
843
- T(B, d);
844
- function de() {
841
+ nu.prototype.getElementsByTagName = P.prototype.getElementsByTagName;
842
+ nu.prototype.getElementsByTagNameNS = P.prototype.getElementsByTagNameNS;
843
+ y(P, D);
844
+ function Du() {
845
845
  }
846
- de.prototype.nodeType = X;
847
- T(de, d);
848
- function oe() {
846
+ Du.prototype.nodeType = $;
847
+ y(Du, D);
848
+ function au() {
849
849
  }
850
- oe.prototype = {
850
+ au.prototype = {
851
851
  data: "",
852
- substringData: function(e, r) {
853
- return this.data.substring(e, e + r);
852
+ substringData: function(u, e) {
853
+ return this.data.substring(u, u + e);
854
854
  },
855
- appendData: function(e) {
856
- e = this.data + e, this.nodeValue = this.data = e, this.length = e.length;
855
+ appendData: function(u) {
856
+ u = this.data + u, this.nodeValue = this.data = u, this.length = u.length;
857
857
  },
858
- insertData: function(e, r) {
859
- this.replaceData(e, 0, r);
858
+ insertData: function(u, e) {
859
+ this.replaceData(u, 0, e);
860
860
  },
861
- appendChild: function(e) {
862
- throw new Error(N[D]);
861
+ appendChild: function(u) {
862
+ throw new Error(v[N]);
863
863
  },
864
- deleteData: function(e, r) {
865
- this.replaceData(e, r, "");
864
+ deleteData: function(u, e) {
865
+ this.replaceData(u, e, "");
866
866
  },
867
- replaceData: function(e, r, t) {
868
- var n = this.data.substring(0, e), a = this.data.substring(e + r);
869
- t = n + t + a, this.nodeValue = this.data = t, this.length = t.length;
867
+ replaceData: function(u, e, r) {
868
+ var t = this.data.substring(0, u), n = this.data.substring(u + e);
869
+ r = t + r + n, this.nodeValue = this.data = r, this.length = r.length;
870
870
  }
871
871
  };
872
- T(oe, d);
873
- function Se() {
872
+ y(au, D);
873
+ function Tu() {
874
874
  }
875
- Se.prototype = {
875
+ Tu.prototype = {
876
876
  nodeName: "#text",
877
- nodeType: ce,
878
- splitText: function(e) {
879
- var r = this.data, t = r.substring(e);
880
- r = r.substring(0, e), this.data = this.nodeValue = r, this.length = r.length;
881
- var n = this.ownerDocument.createTextNode(t);
882
- return this.parentNode && this.parentNode.insertBefore(n, this.nextSibling), n;
877
+ nodeType: lu,
878
+ splitText: function(u) {
879
+ var e = this.data, r = e.substring(u);
880
+ e = e.substring(0, u), this.data = this.nodeValue = e, this.length = e.length;
881
+ var t = this.ownerDocument.createTextNode(r);
882
+ return this.parentNode && this.parentNode.insertBefore(t, this.nextSibling), t;
883
883
  }
884
884
  };
885
- T(Se, oe);
886
- function Ae() {
885
+ y(Tu, au);
886
+ function Fu() {
887
887
  }
888
- Ae.prototype = {
888
+ Fu.prototype = {
889
889
  nodeName: "#comment",
890
- nodeType: nr
890
+ nodeType: te
891
891
  };
892
- T(Ae, oe);
893
- function Le() {
892
+ y(Fu, au);
893
+ function xu() {
894
894
  }
895
- Le.prototype = {
895
+ xu.prototype = {
896
896
  nodeName: "#cdata-section",
897
- nodeType: er
897
+ nodeType: ue
898
898
  };
899
- T(Le, oe);
900
- function fe() {
899
+ y(xu, au);
900
+ function fu() {
901
901
  }
902
- fe.prototype.nodeType = or;
903
- T(fe, d);
904
- function fr() {
902
+ fu.prototype.nodeType = ae;
903
+ y(fu, D);
904
+ function fe() {
905
905
  }
906
- fr.prototype.nodeType = Mr;
907
- T(fr, d);
908
- function hr() {
906
+ fe.prototype.nodeType = Ie;
907
+ y(fe, D);
908
+ function Ae() {
909
909
  }
910
- hr.prototype.nodeType = _r;
911
- T(hr, d);
912
- function Oe() {
910
+ Ae.prototype.nodeType = Le;
911
+ y(Ae, D);
912
+ function Su() {
913
913
  }
914
- Oe.prototype.nodeType = rr;
915
- T(Oe, d);
916
- function he() {
914
+ Su.prototype.nodeType = ee;
915
+ y(Su, D);
916
+ function Au() {
917
917
  }
918
- he.prototype.nodeName = "#document-fragment";
919
- he.prototype.nodeType = k;
920
- T(he, d);
921
- function Re() {
918
+ Au.prototype.nodeName = "#document-fragment";
919
+ Au.prototype.nodeType = L;
920
+ y(Au, D);
921
+ function qu() {
922
922
  }
923
- Re.prototype.nodeType = tr;
924
- T(Re, d);
925
- function mr() {
923
+ qu.prototype.nodeType = re;
924
+ y(qu, D);
925
+ function he() {
926
926
  }
927
- mr.prototype.serializeToString = function(e, r, t) {
928
- return gr.call(e, r, t);
927
+ he.prototype.serializeToString = function(u, e, r) {
928
+ return me.call(u, e, r);
929
929
  };
930
- d.prototype.toString = gr;
931
- function gr(e, r) {
932
- var t = [], n = this.nodeType == 9 && this.documentElement || this, a = n.prefix, o = n.namespaceURI;
933
- if (o && a == null) {
934
- var a = n.lookupPrefix(o);
935
- if (a == null)
930
+ D.prototype.toString = me;
931
+ function me(u, e) {
932
+ var r = [], t = this.nodeType == 9 && this.documentElement || this, n = t.prefix, a = t.namespaceURI;
933
+ if (a && n == null) {
934
+ var n = t.lookupPrefix(a);
935
+ if (n == null)
936
936
  var i = [
937
- { namespace: o, prefix: null }
937
+ { namespace: a, prefix: null }
938
938
  //{namespace:uri,prefix:''}
939
939
  ];
940
940
  }
941
- return F(this, t, e, r, i), t.join("");
941
+ return j(this, r, u, e, i), r.join("");
942
942
  }
943
- function je(e, r, t) {
944
- var n = e.prefix || "", a = e.namespaceURI;
945
- if (!a || n === "xml" && a === Q.XML || a === Q.XMLNS)
943
+ function zu(u, e, r) {
944
+ var t = u.prefix || "", n = u.namespaceURI;
945
+ if (!n || t === "xml" && n === K.XML || n === K.XMLNS)
946
946
  return !1;
947
- for (var o = t.length; o--; ) {
948
- var i = t[o];
949
- if (i.prefix === n)
950
- return i.namespace !== a;
947
+ for (var a = r.length; a--; ) {
948
+ var i = r[a];
949
+ if (i.prefix === t)
950
+ return i.namespace !== n;
951
951
  }
952
952
  return !0;
953
953
  }
954
- function we(e, r, t) {
955
- e.push(" ", r, '="', t.replace(/[<>&"\t\n\r]/g, cr), '"');
954
+ function du(u, e, r) {
955
+ u.push(" ", e, '="', r.replace(/[<>&"\t\n\r]/g, le), '"');
956
956
  }
957
- function F(e, r, t, n, a) {
958
- if (a || (a = []), n)
959
- if (e = n(e), e) {
960
- if (typeof e == "string") {
961
- r.push(e);
957
+ function j(u, e, r, t, n) {
958
+ if (n || (n = []), t)
959
+ if (u = t(u), u) {
960
+ if (typeof u == "string") {
961
+ e.push(u);
962
962
  return;
963
963
  }
964
964
  } else
965
965
  return;
966
- switch (e.nodeType) {
967
- case L:
968
- var o = e.attributes, i = o.length, s = e.firstChild, u = e.tagName;
969
- t = Q.isHTML(e.namespaceURI) || t;
970
- var l = u;
971
- if (!t && !e.prefix && e.namespaceURI) {
972
- for (var c, m = 0; m < o.length; m++)
973
- if (o.item(m).name === "xmlns") {
974
- c = o.item(m).value;
966
+ switch (u.nodeType) {
967
+ case q:
968
+ var a = u.attributes, i = a.length, d = u.firstChild, s = u.tagName;
969
+ r = K.isHTML(u.namespaceURI) || r;
970
+ var o = s;
971
+ if (!r && !u.prefix && u.namespaceURI) {
972
+ for (var l, c = 0; c < a.length; c++)
973
+ if (a.item(c).name === "xmlns") {
974
+ l = a.item(c).value;
975
975
  break;
976
976
  }
977
- if (!c)
978
- for (var p = a.length - 1; p >= 0; p--) {
979
- var v = a[p];
980
- if (v.prefix === "" && v.namespace === e.namespaceURI) {
981
- c = v.namespace;
977
+ if (!l)
978
+ for (var f = n.length - 1; f >= 0; f--) {
979
+ var p = n[f];
980
+ if (p.prefix === "" && p.namespace === u.namespaceURI) {
981
+ l = p.namespace;
982
982
  break;
983
983
  }
984
984
  }
985
- if (c !== e.namespaceURI)
986
- for (var p = a.length - 1; p >= 0; p--) {
987
- var v = a[p];
988
- if (v.namespace === e.namespaceURI) {
989
- v.prefix && (l = v.prefix + ":" + u);
985
+ if (l !== u.namespaceURI)
986
+ for (var f = n.length - 1; f >= 0; f--) {
987
+ var p = n[f];
988
+ if (p.namespace === u.namespaceURI) {
989
+ p.prefix && (o = p.prefix + ":" + s);
990
990
  break;
991
991
  }
992
992
  }
993
993
  }
994
- r.push("<", l);
995
- for (var O = 0; O < i; O++) {
996
- var h = o.item(O);
997
- h.prefix == "xmlns" ? a.push({ prefix: h.localName, namespace: h.value }) : h.nodeName == "xmlns" && a.push({ prefix: "", namespace: h.value });
994
+ e.push("<", o);
995
+ for (var g = 0; g < i; g++) {
996
+ var B = a.item(g);
997
+ B.prefix == "xmlns" ? n.push({ prefix: B.localName, namespace: B.value }) : B.nodeName == "xmlns" && n.push({ prefix: "", namespace: B.value });
998
998
  }
999
- for (var O = 0; O < i; O++) {
1000
- var h = o.item(O);
1001
- if (je(h, t, a)) {
1002
- var f = h.prefix || "", U = h.namespaceURI;
1003
- we(r, f ? "xmlns:" + f : "xmlns", U), a.push({ prefix: f, namespace: U });
999
+ for (var g = 0; g < i; g++) {
1000
+ var B = a.item(g);
1001
+ if (zu(B, r, n)) {
1002
+ var E = B.prefix || "", A = B.namespaceURI;
1003
+ du(e, E ? "xmlns:" + E : "xmlns", A), n.push({ prefix: E, namespace: A });
1004
1004
  }
1005
- F(h, r, t, n, a);
1005
+ j(B, e, r, t, n);
1006
1006
  }
1007
- if (u === l && je(e, t, a)) {
1008
- var f = e.prefix || "", U = e.namespaceURI;
1009
- we(r, f ? "xmlns:" + f : "xmlns", U), a.push({ prefix: f, namespace: U });
1007
+ if (s === o && zu(u, r, n)) {
1008
+ var E = u.prefix || "", A = u.namespaceURI;
1009
+ du(e, E ? "xmlns:" + E : "xmlns", A), n.push({ prefix: E, namespace: A });
1010
1010
  }
1011
- if (s || t && !/^(?:meta|link|img|br|hr|input)$/i.test(u)) {
1012
- if (r.push(">"), t && /^script$/i.test(u))
1013
- for (; s; )
1014
- s.data ? r.push(s.data) : F(s, r, t, n, a.slice()), s = s.nextSibling;
1011
+ if (d || r && !/^(?:meta|link|img|br|hr|input)$/i.test(s)) {
1012
+ if (e.push(">"), r && /^script$/i.test(s))
1013
+ for (; d; )
1014
+ d.data ? e.push(d.data) : j(d, e, r, t, n.slice()), d = d.nextSibling;
1015
1015
  else
1016
- for (; s; )
1017
- F(s, r, t, n, a.slice()), s = s.nextSibling;
1018
- r.push("</", l, ">");
1016
+ for (; d; )
1017
+ j(d, e, r, t, n.slice()), d = d.nextSibling;
1018
+ e.push("</", o, ">");
1019
1019
  } else
1020
- r.push("/>");
1020
+ e.push("/>");
1021
1021
  return;
1022
- case ar:
1023
- case k:
1024
- for (var s = e.firstChild; s; )
1025
- F(s, r, t, n, a.slice()), s = s.nextSibling;
1022
+ case ne:
1023
+ case L:
1024
+ for (var d = u.firstChild; d; )
1025
+ j(d, e, r, t, n.slice()), d = d.nextSibling;
1026
1026
  return;
1027
- case X:
1028
- return we(r, e.name, e.value);
1029
- case ce:
1030
- return r.push(
1031
- e.data.replace(/[<&>]/g, cr)
1027
+ case $:
1028
+ return du(e, u.name, u.value);
1029
+ case lu:
1030
+ return e.push(
1031
+ u.data.replace(/[<&>]/g, le)
1032
1032
  );
1033
- case er:
1034
- return r.push("<![CDATA[", e.data, "]]>");
1035
- case nr:
1036
- return r.push("<!--", e.data, "-->");
1037
- case or:
1038
- var Z = e.publicId, w = e.systemId;
1039
- if (r.push("<!DOCTYPE ", e.name), Z)
1040
- r.push(" PUBLIC ", Z), w && w != "." && r.push(" ", w), r.push(">");
1041
- else if (w && w != ".")
1042
- r.push(" SYSTEM ", w, ">");
1033
+ case ue:
1034
+ return e.push("<![CDATA[", u.data, "]]>");
1035
+ case te:
1036
+ return e.push("<!--", u.data, "-->");
1037
+ case ae:
1038
+ var Q = u.publicId, C = u.systemId;
1039
+ if (e.push("<!DOCTYPE ", u.name), Q)
1040
+ e.push(" PUBLIC ", Q), C && C != "." && e.push(" ", C), e.push(">");
1041
+ else if (C && C != ".")
1042
+ e.push(" SYSTEM ", C, ">");
1043
1043
  else {
1044
- var S = e.internalSubset;
1045
- S && r.push(" [", S, "]"), r.push(">");
1044
+ var x = u.internalSubset;
1045
+ x && e.push(" [", x, "]"), e.push(">");
1046
1046
  }
1047
1047
  return;
1048
- case tr:
1049
- return r.push("<?", e.target, " ", e.data, "?>");
1050
- case rr:
1051
- return r.push("&", e.nodeName, ";");
1048
+ case re:
1049
+ return e.push("<?", u.target, " ", u.data, "?>");
1050
+ case ee:
1051
+ return e.push("&", u.nodeName, ";");
1052
1052
  default:
1053
- r.push("??", e.nodeName);
1053
+ e.push("??", u.nodeName);
1054
1054
  }
1055
1055
  }
1056
- function br(e, r, t) {
1057
- var n;
1058
- switch (r.nodeType) {
1056
+ function Ee(u, e, r) {
1057
+ var t;
1058
+ switch (e.nodeType) {
1059
+ case q:
1060
+ t = e.cloneNode(!1), t.ownerDocument = u;
1059
1061
  case L:
1060
- n = r.cloneNode(!1), n.ownerDocument = e;
1061
- case k:
1062
1062
  break;
1063
- case X:
1064
- t = !0;
1063
+ case $:
1064
+ r = !0;
1065
1065
  break;
1066
1066
  }
1067
- if (n || (n = r.cloneNode(!1)), n.ownerDocument = e, n.parentNode = null, t)
1068
- for (var a = r.firstChild; a; )
1069
- n.appendChild(br(e, a, t)), a = a.nextSibling;
1070
- return n;
1071
- }
1072
- function Ne(e, r, t) {
1073
- var n = new r.constructor();
1074
- for (var a in r)
1075
- if (Object.prototype.hasOwnProperty.call(r, a)) {
1076
- var o = r[a];
1077
- typeof o != "object" && o != n[a] && (n[a] = o);
1067
+ if (t || (t = e.cloneNode(!1)), t.ownerDocument = u, t.parentNode = null, r)
1068
+ for (var n = e.firstChild; n; )
1069
+ t.appendChild(Ee(u, n, r)), n = n.nextSibling;
1070
+ return t;
1071
+ }
1072
+ function Cu(u, e, r) {
1073
+ var t = new e.constructor();
1074
+ for (var n in e)
1075
+ if (Object.prototype.hasOwnProperty.call(e, n)) {
1076
+ var a = e[n];
1077
+ typeof a != "object" && a != t[n] && (t[n] = a);
1078
1078
  }
1079
- switch (r.childNodes && (n.childNodes = new I()), n.ownerDocument = e, n.nodeType) {
1080
- case L:
1081
- var i = r.attributes, s = n.attributes = new ue(), u = i.length;
1082
- s._ownerElement = n;
1083
- for (var l = 0; l < u; l++)
1084
- n.setAttributeNode(Ne(e, i.item(l), !0));
1079
+ switch (e.childNodes && (t.childNodes = new _()), t.ownerDocument = u, t.nodeType) {
1080
+ case q:
1081
+ var i = e.attributes, s = t.attributes = new cu(), o = i.length;
1082
+ s._ownerElement = t;
1083
+ for (var l = 0; l < o; l++)
1084
+ t.setAttributeNode(Cu(u, i.item(l), !0));
1085
1085
  break;
1086
- case X:
1087
- t = !0;
1086
+ case $:
1087
+ r = !0;
1088
1088
  }
1089
- if (t)
1090
- for (var c = r.firstChild; c; )
1091
- n.appendChild(Ne(e, c, t)), c = c.nextSibling;
1092
- return n;
1089
+ if (r)
1090
+ for (var c = e.firstChild; c; )
1091
+ t.appendChild(Cu(u, c, r)), c = c.nextSibling;
1092
+ return t;
1093
1093
  }
1094
- function vr(e, r, t) {
1095
- e[r] = t;
1094
+ function ge(u, e, r) {
1095
+ u[e] = r;
1096
1096
  }
1097
1097
  try {
1098
1098
  if (Object.defineProperty) {
1099
- let e = function(r) {
1100
- switch (r.nodeType) {
1099
+ let u = function(e) {
1100
+ switch (e.nodeType) {
1101
+ case q:
1101
1102
  case L:
1102
- case k:
1103
- var t = [];
1104
- for (r = r.firstChild; r; )
1105
- r.nodeType !== 7 && r.nodeType !== 8 && t.push(e(r)), r = r.nextSibling;
1106
- return t.join("");
1103
+ var r = [];
1104
+ for (e = e.firstChild; e; )
1105
+ e.nodeType !== 7 && e.nodeType !== 8 && r.push(u(e)), e = e.nextSibling;
1106
+ return r.join("");
1107
1107
  default:
1108
- return r.nodeValue;
1108
+ return e.nodeValue;
1109
1109
  }
1110
1110
  };
1111
- Object.defineProperty($.prototype, "length", {
1111
+ Object.defineProperty(X.prototype, "length", {
1112
1112
  get: function() {
1113
- return Te(this), this.$$length;
1113
+ return Bu(this), this.$$length;
1114
1114
  }
1115
- }), Object.defineProperty(d.prototype, "textContent", {
1115
+ }), Object.defineProperty(D.prototype, "textContent", {
1116
1116
  get: function() {
1117
- return e(this);
1117
+ return u(this);
1118
1118
  },
1119
- set: function(r) {
1119
+ set: function(e) {
1120
1120
  switch (this.nodeType) {
1121
+ case q:
1121
1122
  case L:
1122
- case k:
1123
1123
  for (; this.firstChild; )
1124
1124
  this.removeChild(this.firstChild);
1125
- (r || String(r)) && this.appendChild(this.ownerDocument.createTextNode(r));
1125
+ (e || String(e)) && this.appendChild(this.ownerDocument.createTextNode(e));
1126
1126
  break;
1127
1127
  default:
1128
- this.data = r, this.value = r, this.nodeValue = r;
1128
+ this.data = e, this.value = e, this.nodeValue = e;
1129
1129
  }
1130
1130
  }
1131
- }), vr = function(r, t, n) {
1132
- r["$$" + t] = n;
1131
+ }), ge = function(e, r, t) {
1132
+ e["$$" + r] = t;
1133
1133
  };
1134
1134
  }
1135
1135
  } catch {
1136
1136
  }
1137
- V.DocumentType = fe;
1138
- V.DOMException = b;
1139
- V.DOMImplementation = lr;
1140
- V.Element = B;
1141
- V.Node = d;
1142
- V.NodeList = I;
1143
- V.XMLSerializer = mr;
1144
- var me = {}, wr = {};
1145
- (function(e) {
1146
- var r = M.freeze;
1147
- e.XML_ENTITIES = r({
1137
+ M.DocumentType = fu;
1138
+ M.DOMException = m;
1139
+ M.DOMImplementation = se;
1140
+ M.Element = P;
1141
+ M.Node = D;
1142
+ M.NodeList = _;
1143
+ M.XMLSerializer = he;
1144
+ var hu = {}, de = {};
1145
+ (function(u) {
1146
+ var e = k.freeze;
1147
+ u.XML_ENTITIES = e({
1148
1148
  amp: "&",
1149
1149
  apos: "'",
1150
1150
  gt: ">",
1151
1151
  lt: "<",
1152
1152
  quot: '"'
1153
- }), e.HTML_ENTITIES = r({
1153
+ }), u.HTML_ENTITIES = e({
1154
1154
  Aacute: "Á",
1155
1155
  aacute: "á",
1156
1156
  Abreve: "Ă",
@@ -3277,318 +3277,318 @@ var me = {}, wr = {};
3277
3277
  zscr: "𝓏",
3278
3278
  zwj: "‍",
3279
3279
  zwnj: "‌"
3280
- }), e.entityMap = e.HTML_ENTITIES;
3281
- })(wr);
3282
- var Ce = {}, te = M.NAMESPACE, ye = /[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, ze = new RegExp("[\\-\\.0-9" + ye.source.slice(1, -1) + "\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"), Fe = new RegExp("^" + ye.source + ze.source + "*(?::" + ye.source + ze.source + "*)?$"), J = 0, P = 1, H = 2, W = 3, G = 4, j = 5, K = 6, se = 7;
3283
- function Y(e, r) {
3284
- this.message = e, this.locator = r, Error.captureStackTrace && Error.captureStackTrace(this, Y);
3280
+ }), u.entityMap = u.HTML_ENTITIES;
3281
+ })(de);
3282
+ var Ou = {}, ru = k.NAMESPACE, vu = /[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, Hu = new RegExp("[\\-\\.0-9" + vu.source.slice(1, -1) + "\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"), ju = new RegExp("^" + vu.source + Hu.source + "*(?::" + vu.source + Hu.source + "*)?$"), Z = 0, U = 1, V = 2, J = 3, G = 4, z = 5, W = 6, ou = 7;
3283
+ function Y(u, e) {
3284
+ this.message = u, this.locator = e, Error.captureStackTrace && Error.captureStackTrace(this, Y);
3285
3285
  }
3286
3286
  Y.prototype = new Error();
3287
3287
  Y.prototype.name = Y.name;
3288
- function Nr() {
3288
+ function Ce() {
3289
3289
  }
3290
- Nr.prototype = {
3291
- parse: function(e, r, t) {
3292
- var n = this.domBuilder;
3293
- n.startDocument(), yr(r, r = {}), jr(
3290
+ Ce.prototype = {
3291
+ parse: function(u, e, r) {
3292
+ var t = this.domBuilder;
3293
+ t.startDocument(), ve(e, e = {}), ze(
3294
+ u,
3294
3295
  e,
3295
3296
  r,
3296
3297
  t,
3297
- n,
3298
3298
  this.errorHandler
3299
- ), n.endDocument();
3299
+ ), t.endDocument();
3300
3300
  }
3301
3301
  };
3302
- function jr(e, r, t, n, a) {
3303
- function o(g) {
3304
- if (g > 65535) {
3305
- g -= 65536;
3306
- var A = 55296 + (g >> 10), Ar = 56320 + (g & 1023);
3307
- return String.fromCharCode(A, Ar);
3302
+ function ze(u, e, r, t, n) {
3303
+ function a(h) {
3304
+ if (h > 65535) {
3305
+ h -= 65536;
3306
+ var S = 55296 + (h >> 10), Fe = 56320 + (h & 1023);
3307
+ return String.fromCharCode(S, Fe);
3308
3308
  } else
3309
- return String.fromCharCode(g);
3309
+ return String.fromCharCode(h);
3310
3310
  }
3311
- function i(g) {
3312
- var A = g.slice(1, -1);
3313
- return Object.hasOwnProperty.call(t, A) ? t[A] : A.charAt(0) === "#" ? o(parseInt(A.substr(1).replace("x", "0x"))) : (a.error("entity not found:" + g), g);
3311
+ function i(h) {
3312
+ var S = h.slice(1, -1);
3313
+ return Object.hasOwnProperty.call(r, S) ? r[S] : S.charAt(0) === "#" ? a(parseInt(S.substr(1).replace("x", "0x"))) : (n.error("entity not found:" + h), h);
3314
3314
  }
3315
- function s(g) {
3316
- if (g > h) {
3317
- var A = e.substring(h, g).replace(/&#?\w+;/g, i);
3318
- p && u(h), n.characters(A, 0, g - h), h = g;
3315
+ function s(h) {
3316
+ if (h > E) {
3317
+ var S = u.substring(E, h).replace(/&#?\w+;/g, i);
3318
+ p && o(E), t.characters(S, 0, h - E), E = h;
3319
3319
  }
3320
3320
  }
3321
- function u(g, A) {
3322
- for (; g >= c && (A = m.exec(e)); )
3323
- l = A.index, c = l + A[0].length, p.lineNumber++;
3324
- p.columnNumber = g - l + 1;
3321
+ function o(h, S) {
3322
+ for (; h >= c && (S = f.exec(u)); )
3323
+ l = S.index, c = l + S[0].length, p.lineNumber++;
3324
+ p.columnNumber = h - l + 1;
3325
3325
  }
3326
- for (var l = 0, c = 0, m = /.*(?:\r\n?|\n)|.*$/g, p = n.locator, v = [{ currentNSMap: r }], O = {}, h = 0; ; ) {
3326
+ for (var l = 0, c = 0, f = /.*(?:\r\n?|\n)|.*$/g, p = t.locator, g = [{ currentNSMap: e }], B = {}, E = 0; ; ) {
3327
3327
  try {
3328
- var f = e.indexOf("<", h);
3329
- if (f < 0) {
3330
- if (!e.substr(h).match(/^\s*$/)) {
3331
- var U = n.doc, Z = U.createTextNode(e.substr(h));
3332
- U.appendChild(Z), n.currentElement = Z;
3328
+ var A = u.indexOf("<", E);
3329
+ if (A < 0) {
3330
+ if (!u.substr(E).match(/^\s*$/)) {
3331
+ var d = t.doc, Q = d.createTextNode(u.substr(E));
3332
+ d.appendChild(Q), t.currentElement = Q;
3333
3333
  }
3334
3334
  return;
3335
3335
  }
3336
- switch (f > h && s(f), e.charAt(f + 1)) {
3336
+ switch (A > E && s(A), u.charAt(A + 1)) {
3337
3337
  case "/":
3338
- var E = e.indexOf(">", f + 3), w = e.substring(f + 2, E).replace(/[ \t\n\r]+$/g, ""), S = v.pop();
3339
- E < 0 ? (w = e.substring(f + 2).replace(/[\s<].*/, ""), a.error("end tag name: " + w + " is not complete:" + S.tagName), E = f + 1 + w.length) : w.match(/\s</) && (w = w.replace(/[\s<].*/, ""), a.error("end tag name: " + w + " maybe not complete"), E = f + 1 + w.length);
3340
- var ge = S.localNSMap, Ie = S.tagName == w, xr = Ie || S.tagName && S.tagName.toLowerCase() == w.toLowerCase();
3341
- if (xr) {
3342
- if (n.endElement(S.uri, S.localName, w), ge)
3343
- for (var ke in ge)
3344
- Object.prototype.hasOwnProperty.call(ge, ke) && n.endPrefixMapping(ke);
3345
- Ie || a.fatalError("end tag name: " + w + " is not match the current start tagName:" + S.tagName);
3338
+ var w = u.indexOf(">", A + 3), C = u.substring(A + 2, w).replace(/[ \t\n\r]+$/g, ""), x = g.pop();
3339
+ w < 0 ? (C = u.substring(A + 2).replace(/[\s<].*/, ""), n.error("end tag name: " + C + " is not complete:" + x.tagName), w = A + 1 + C.length) : C.match(/\s</) && (C = C.replace(/[\s<].*/, ""), n.error("end tag name: " + C + " maybe not complete"), w = A + 1 + C.length);
3340
+ var mu = x.localNSMap, Ru = x.tagName == C, ye = Ru || x.tagName && x.tagName.toLowerCase() == C.toLowerCase();
3341
+ if (ye) {
3342
+ if (t.endElement(x.uri, x.localName, C), mu)
3343
+ for (var _u in mu)
3344
+ Object.prototype.hasOwnProperty.call(mu, _u) && t.endPrefixMapping(_u);
3345
+ Ru || n.fatalError("end tag name: " + C + " is not match the current start tagName:" + x.tagName);
3346
3346
  } else
3347
- v.push(S);
3348
- E++;
3347
+ g.push(x);
3348
+ w++;
3349
3349
  break;
3350
3350
  case "?":
3351
- p && u(f), E = Yr(e, f, n);
3351
+ p && o(A), w = Ye(u, A, t);
3352
3352
  break;
3353
3353
  case "!":
3354
- p && u(f), E = $r(e, f, n, a);
3354
+ p && o(A), w = Xe(u, A, t, n);
3355
3355
  break;
3356
3356
  default:
3357
- p && u(f);
3358
- var x = new Er(), be = v[v.length - 1].currentNSMap, E = zr(e, f, x, be, i, a), _e = x.length;
3359
- if (!x.closed && Xr(e, E, x.tagName, O) && (x.closed = !0, t.nbsp || a.warning("unclosed xml attribute")), p && _e) {
3360
- for (var Sr = Xe(p, {}), ve = 0; ve < _e; ve++) {
3361
- var Me = x[ve];
3362
- u(Me.offset), Me.locator = Xe(p, {});
3357
+ p && o(A);
3358
+ var F = new be(), Eu = g[g.length - 1].currentNSMap, w = He(u, A, F, Eu, i, n), Lu = F.length;
3359
+ if (!F.closed && $e(u, w, F.tagName, B) && (F.closed = !0, r.nbsp || n.warning("unclosed xml attribute")), p && Lu) {
3360
+ for (var Te = $u(p, {}), gu = 0; gu < Lu; gu++) {
3361
+ var Iu = F[gu];
3362
+ o(Iu.offset), Iu.locator = $u(p, {});
3363
3363
  }
3364
- n.locator = Sr, $e(x, n, be) && v.push(x), n.locator = p;
3364
+ t.locator = Te, Xu(F, t, Eu) && g.push(F), t.locator = p;
3365
3365
  } else
3366
- $e(x, n, be) && v.push(x);
3367
- te.isHTML(x.uri) && !x.closed ? E = Fr(e, E, x.tagName, i, n) : E++;
3366
+ Xu(F, t, Eu) && g.push(F);
3367
+ ru.isHTML(F.uri) && !F.closed ? w = je(u, w, F.tagName, i, t) : w++;
3368
3368
  }
3369
- } catch (g) {
3370
- if (g instanceof Y)
3371
- throw g;
3372
- a.error("element parse error: " + g), E = -1;
3369
+ } catch (h) {
3370
+ if (h instanceof Y)
3371
+ throw h;
3372
+ n.error("element parse error: " + h), w = -1;
3373
3373
  }
3374
- E > h ? h = E : s(Math.max(f, h) + 1);
3374
+ w > E ? E = w : s(Math.max(A, E) + 1);
3375
3375
  }
3376
3376
  }
3377
- function Xe(e, r) {
3378
- return r.lineNumber = e.lineNumber, r.columnNumber = e.columnNumber, r;
3377
+ function $u(u, e) {
3378
+ return e.lineNumber = u.lineNumber, e.columnNumber = u.columnNumber, e;
3379
3379
  }
3380
- function zr(e, r, t, n, a, o) {
3381
- function i(p, v, O) {
3382
- t.attributeNames.hasOwnProperty(p) && o.fatalError("Attribute " + p + " redefined"), t.addValue(
3380
+ function He(u, e, r, t, n, a) {
3381
+ function i(p, g, B) {
3382
+ r.attributeNames.hasOwnProperty(p) && a.fatalError("Attribute " + p + " redefined"), r.addValue(
3383
3383
  p,
3384
3384
  // @see https://www.w3.org/TR/xml/#AVNormalize
3385
3385
  // since the xmldom sax parser does not "interpret" DTD the following is not implemented:
3386
3386
  // - recursive replacement of (DTD) entity references
3387
3387
  // - trimming and collapsing multiple spaces into a single one for attributes that are not of type CDATA
3388
- v.replace(/[\t\n\r]/g, " ").replace(/&#?\w+;/g, a),
3389
- O
3388
+ g.replace(/[\t\n\r]/g, " ").replace(/&#?\w+;/g, n),
3389
+ B
3390
3390
  );
3391
3391
  }
3392
- for (var s, u, l = ++r, c = J; ; ) {
3393
- var m = e.charAt(l);
3394
- switch (m) {
3392
+ for (var s, o, l = ++e, c = Z; ; ) {
3393
+ var f = u.charAt(l);
3394
+ switch (f) {
3395
3395
  case "=":
3396
- if (c === P)
3397
- s = e.slice(r, l), c = W;
3398
- else if (c === H)
3399
- c = W;
3396
+ if (c === U)
3397
+ s = u.slice(e, l), c = J;
3398
+ else if (c === V)
3399
+ c = J;
3400
3400
  else
3401
3401
  throw new Error("attribute equal must after attrName");
3402
3402
  break;
3403
3403
  case "'":
3404
3404
  case '"':
3405
- if (c === W || c === P)
3406
- if (c === P && (o.warning('attribute value must after "="'), s = e.slice(r, l)), r = l + 1, l = e.indexOf(m, r), l > 0)
3407
- u = e.slice(r, l), i(s, u, r - 1), c = j;
3405
+ if (c === J || c === U)
3406
+ if (c === U && (a.warning('attribute value must after "="'), s = u.slice(e, l)), e = l + 1, l = u.indexOf(f, e), l > 0)
3407
+ o = u.slice(e, l), i(s, o, e - 1), c = z;
3408
3408
  else
3409
- throw new Error("attribute value no end '" + m + "' match");
3409
+ throw new Error("attribute value no end '" + f + "' match");
3410
3410
  else if (c == G)
3411
- u = e.slice(r, l), i(s, u, r), o.warning('attribute "' + s + '" missed start quot(' + m + ")!!"), r = l + 1, c = j;
3411
+ o = u.slice(e, l), i(s, o, e), a.warning('attribute "' + s + '" missed start quot(' + f + ")!!"), e = l + 1, c = z;
3412
3412
  else
3413
3413
  throw new Error('attribute value must after "="');
3414
3414
  break;
3415
3415
  case "/":
3416
3416
  switch (c) {
3417
- case J:
3418
- t.setTagName(e.slice(r, l));
3419
- case j:
3420
- case K:
3421
- case se:
3422
- c = se, t.closed = !0;
3417
+ case Z:
3418
+ r.setTagName(u.slice(e, l));
3419
+ case z:
3420
+ case W:
3421
+ case ou:
3422
+ c = ou, r.closed = !0;
3423
3423
  case G:
3424
- case P:
3424
+ case U:
3425
3425
  break;
3426
- case H:
3427
- t.closed = !0;
3426
+ case V:
3427
+ r.closed = !0;
3428
3428
  break;
3429
3429
  default:
3430
3430
  throw new Error("attribute invalid close char('/')");
3431
3431
  }
3432
3432
  break;
3433
3433
  case "":
3434
- return o.error("unexpected end of input"), c == J && t.setTagName(e.slice(r, l)), l;
3434
+ return a.error("unexpected end of input"), c == Z && r.setTagName(u.slice(e, l)), l;
3435
3435
  case ">":
3436
3436
  switch (c) {
3437
- case J:
3438
- t.setTagName(e.slice(r, l));
3439
- case j:
3440
- case K:
3441
- case se:
3437
+ case Z:
3438
+ r.setTagName(u.slice(e, l));
3439
+ case z:
3440
+ case W:
3441
+ case ou:
3442
3442
  break;
3443
3443
  case G:
3444
- case P:
3445
- u = e.slice(r, l), u.slice(-1) === "/" && (t.closed = !0, u = u.slice(0, -1));
3446
- case H:
3447
- c === H && (u = s), c == G ? (o.warning('attribute "' + u + '" missed quot(")!'), i(s, u, r)) : ((!te.isHTML(n[""]) || !u.match(/^(?:disabled|checked|selected)$/i)) && o.warning('attribute "' + u + '" missed value!! "' + u + '" instead!!'), i(u, u, r));
3444
+ case U:
3445
+ o = u.slice(e, l), o.slice(-1) === "/" && (r.closed = !0, o = o.slice(0, -1));
3446
+ case V:
3447
+ c === V && (o = s), c == G ? (a.warning('attribute "' + o + '" missed quot(")!'), i(s, o, e)) : ((!ru.isHTML(t[""]) || !o.match(/^(?:disabled|checked|selected)$/i)) && a.warning('attribute "' + o + '" missed value!! "' + o + '" instead!!'), i(o, o, e));
3448
3448
  break;
3449
- case W:
3449
+ case J:
3450
3450
  throw new Error("attribute value missed!!");
3451
3451
  }
3452
3452
  return l;
3453
3453
  case "€":
3454
- m = " ";
3454
+ f = " ";
3455
3455
  default:
3456
- if (m <= " ")
3456
+ if (f <= " ")
3457
3457
  switch (c) {
3458
- case J:
3459
- t.setTagName(e.slice(r, l)), c = K;
3458
+ case Z:
3459
+ r.setTagName(u.slice(e, l)), c = W;
3460
3460
  break;
3461
- case P:
3462
- s = e.slice(r, l), c = H;
3461
+ case U:
3462
+ s = u.slice(e, l), c = V;
3463
3463
  break;
3464
3464
  case G:
3465
- var u = e.slice(r, l);
3466
- o.warning('attribute "' + u + '" missed quot(")!!'), i(s, u, r);
3467
- case j:
3468
- c = K;
3465
+ var o = u.slice(e, l);
3466
+ a.warning('attribute "' + o + '" missed quot(")!!'), i(s, o, e);
3467
+ case z:
3468
+ c = W;
3469
3469
  break;
3470
3470
  }
3471
3471
  else
3472
3472
  switch (c) {
3473
- case H:
3474
- t.tagName, (!te.isHTML(n[""]) || !s.match(/^(?:disabled|checked|selected)$/i)) && o.warning('attribute "' + s + '" missed value!! "' + s + '" instead2!!'), i(s, s, r), r = l, c = P;
3475
- break;
3476
- case j:
3477
- o.warning('attribute space is required"' + s + '"!!');
3478
- case K:
3479
- c = P, r = l;
3473
+ case V:
3474
+ r.tagName, (!ru.isHTML(t[""]) || !s.match(/^(?:disabled|checked|selected)$/i)) && a.warning('attribute "' + s + '" missed value!! "' + s + '" instead2!!'), i(s, s, e), e = l, c = U;
3480
3475
  break;
3476
+ case z:
3477
+ a.warning('attribute space is required"' + s + '"!!');
3481
3478
  case W:
3482
- c = G, r = l;
3479
+ c = U, e = l;
3483
3480
  break;
3484
- case se:
3481
+ case J:
3482
+ c = G, e = l;
3483
+ break;
3484
+ case ou:
3485
3485
  throw new Error("elements closed character '/' and '>' must be connected to");
3486
3486
  }
3487
3487
  }
3488
3488
  l++;
3489
3489
  }
3490
3490
  }
3491
- function $e(e, r, t) {
3492
- for (var n = e.tagName, a = null, o = e.length; o--; ) {
3493
- var i = e[o], s = i.qName, u = i.value, p = s.indexOf(":");
3491
+ function Xu(u, e, r) {
3492
+ for (var t = u.tagName, n = null, f = u.length; f--; ) {
3493
+ var a = u[f], i = a.qName, s = a.value, p = i.indexOf(":");
3494
3494
  if (p > 0)
3495
- var l = i.prefix = s.slice(0, p), c = s.slice(p + 1), m = l === "xmlns" && c;
3495
+ var o = a.prefix = i.slice(0, p), l = i.slice(p + 1), c = o === "xmlns" && l;
3496
3496
  else
3497
- c = s, l = null, m = s === "xmlns" && "";
3498
- i.localName = c, m !== !1 && (a == null && (a = {}, yr(t, t = {})), t[m] = a[m] = u, i.uri = te.XMLNS, r.startPrefixMapping(m, u));
3497
+ l = i, o = null, c = i === "xmlns" && "";
3498
+ a.localName = l, c !== !1 && (n == null && (n = {}, ve(r, r = {})), r[c] = n[c] = s, a.uri = ru.XMLNS, e.startPrefixMapping(c, s));
3499
3499
  }
3500
- for (var o = e.length; o--; ) {
3501
- i = e[o];
3502
- var l = i.prefix;
3503
- l && (l === "xml" && (i.uri = te.XML), l !== "xmlns" && (i.uri = t[l || ""]));
3500
+ for (var f = u.length; f--; ) {
3501
+ a = u[f];
3502
+ var o = a.prefix;
3503
+ o && (o === "xml" && (a.uri = ru.XML), o !== "xmlns" && (a.uri = r[o || ""]));
3504
3504
  }
3505
- var p = n.indexOf(":");
3506
- p > 0 ? (l = e.prefix = n.slice(0, p), c = e.localName = n.slice(p + 1)) : (l = null, c = e.localName = n);
3507
- var v = e.uri = t[l || ""];
3508
- if (r.startElement(v, c, n, e), e.closed) {
3509
- if (r.endElement(v, c, n), a)
3510
- for (l in a)
3511
- Object.prototype.hasOwnProperty.call(a, l) && r.endPrefixMapping(l);
3505
+ var p = t.indexOf(":");
3506
+ p > 0 ? (o = u.prefix = t.slice(0, p), l = u.localName = t.slice(p + 1)) : (o = null, l = u.localName = t);
3507
+ var g = u.uri = r[o || ""];
3508
+ if (e.startElement(g, l, t, u), u.closed) {
3509
+ if (e.endElement(g, l, t), n)
3510
+ for (o in n)
3511
+ Object.prototype.hasOwnProperty.call(n, o) && e.endPrefixMapping(o);
3512
3512
  } else
3513
- return e.currentNSMap = t, e.localNSMap = a, !0;
3513
+ return u.currentNSMap = r, u.localNSMap = n, !0;
3514
3514
  }
3515
- function Fr(e, r, t, n, a) {
3516
- if (/^(?:script|textarea)$/i.test(t)) {
3517
- var o = e.indexOf("</" + t + ">", r), i = e.substring(r + 1, o);
3515
+ function je(u, e, r, t, n) {
3516
+ if (/^(?:script|textarea)$/i.test(r)) {
3517
+ var a = u.indexOf("</" + r + ">", e), i = u.substring(e + 1, a);
3518
3518
  if (/[&<]/.test(i))
3519
- return /^script$/i.test(t) ? (a.characters(i, 0, i.length), o) : (i = i.replace(/&#?\w+;/g, n), a.characters(i, 0, i.length), o);
3519
+ return /^script$/i.test(r) ? (n.characters(i, 0, i.length), a) : (i = i.replace(/&#?\w+;/g, t), n.characters(i, 0, i.length), a);
3520
3520
  }
3521
- return r + 1;
3521
+ return e + 1;
3522
3522
  }
3523
- function Xr(e, r, t, n) {
3524
- var a = n[t];
3525
- return a == null && (a = e.lastIndexOf("</" + t + ">"), a < r && (a = e.lastIndexOf("</" + t)), n[t] = a), a < r;
3523
+ function $e(u, e, r, t) {
3524
+ var n = t[r];
3525
+ return n == null && (n = u.lastIndexOf("</" + r + ">"), n < e && (n = u.lastIndexOf("</" + r)), t[r] = n), n < e;
3526
3526
  }
3527
- function yr(e, r) {
3528
- for (var t in e)
3529
- Object.prototype.hasOwnProperty.call(e, t) && (r[t] = e[t]);
3527
+ function ve(u, e) {
3528
+ for (var r in u)
3529
+ Object.prototype.hasOwnProperty.call(u, r) && (e[r] = u[r]);
3530
3530
  }
3531
- function $r(e, r, t, n) {
3532
- var a = e.charAt(r + 2);
3533
- switch (a) {
3531
+ function Xe(u, e, r, t) {
3532
+ var n = u.charAt(e + 2);
3533
+ switch (n) {
3534
3534
  case "-":
3535
- if (e.charAt(r + 3) === "-") {
3536
- var o = e.indexOf("-->", r + 4);
3537
- return o > r ? (t.comment(e, r + 4, o - r - 4), o + 3) : (n.error("Unclosed comment"), -1);
3535
+ if (u.charAt(e + 3) === "-") {
3536
+ var a = u.indexOf("-->", e + 4);
3537
+ return a > e ? (r.comment(u, e + 4, a - e - 4), a + 3) : (t.error("Unclosed comment"), -1);
3538
3538
  } else
3539
3539
  return -1;
3540
3540
  default:
3541
- if (e.substr(r + 3, 6) == "CDATA[") {
3542
- var o = e.indexOf("]]>", r + 9);
3543
- return t.startCDATA(), t.characters(e, r + 9, o - r - 9), t.endCDATA(), o + 3;
3541
+ if (u.substr(e + 3, 6) == "CDATA[") {
3542
+ var a = u.indexOf("]]>", e + 9);
3543
+ return r.startCDATA(), r.characters(u, e + 9, a - e - 9), r.endCDATA(), a + 3;
3544
3544
  }
3545
- var i = Zr(e, r), s = i.length;
3545
+ var i = Qe(u, e), s = i.length;
3546
3546
  if (s > 1 && /!doctype/i.test(i[0][0])) {
3547
- var u = i[1][0], l = !1, c = !1;
3547
+ var o = i[1][0], l = !1, c = !1;
3548
3548
  s > 3 && (/^public$/i.test(i[2][0]) ? (l = i[3][0], c = s > 4 && i[4][0]) : /^system$/i.test(i[2][0]) && (c = i[3][0]));
3549
- var m = i[s - 1];
3550
- return t.startDTD(u, l, c), t.endDTD(), m.index + m[0].length;
3549
+ var f = i[s - 1];
3550
+ return r.startDTD(o, l, c), r.endDTD(), f.index + f[0].length;
3551
3551
  }
3552
3552
  }
3553
3553
  return -1;
3554
3554
  }
3555
- function Yr(e, r, t) {
3556
- var n = e.indexOf("?>", r);
3557
- if (n) {
3558
- var a = e.substring(r, n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);
3559
- return a ? (a[0].length, t.processingInstruction(a[1], a[2]), n + 2) : -1;
3555
+ function Ye(u, e, r) {
3556
+ var t = u.indexOf("?>", e);
3557
+ if (t) {
3558
+ var n = u.substring(e, t).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);
3559
+ return n ? (n[0].length, r.processingInstruction(n[1], n[2]), t + 2) : -1;
3560
3560
  }
3561
3561
  return -1;
3562
3562
  }
3563
- function Er() {
3563
+ function be() {
3564
3564
  this.attributeNames = {};
3565
3565
  }
3566
- Er.prototype = {
3567
- setTagName: function(e) {
3568
- if (!Fe.test(e))
3569
- throw new Error("invalid tagName:" + e);
3570
- this.tagName = e;
3566
+ be.prototype = {
3567
+ setTagName: function(u) {
3568
+ if (!ju.test(u))
3569
+ throw new Error("invalid tagName:" + u);
3570
+ this.tagName = u;
3571
3571
  },
3572
- addValue: function(e, r, t) {
3573
- if (!Fe.test(e))
3574
- throw new Error("invalid attribute:" + e);
3575
- this.attributeNames[e] = this.length, this[this.length++] = { qName: e, value: r, offset: t };
3572
+ addValue: function(u, e, r) {
3573
+ if (!ju.test(u))
3574
+ throw new Error("invalid attribute:" + u);
3575
+ this.attributeNames[u] = this.length, this[this.length++] = { qName: u, value: e, offset: r };
3576
3576
  },
3577
3577
  length: 0,
3578
- getLocalName: function(e) {
3579
- return this[e].localName;
3578
+ getLocalName: function(u) {
3579
+ return this[u].localName;
3580
3580
  },
3581
- getLocator: function(e) {
3582
- return this[e].locator;
3581
+ getLocator: function(u) {
3582
+ return this[u].locator;
3583
3583
  },
3584
- getQName: function(e) {
3585
- return this[e].qName;
3584
+ getQName: function(u) {
3585
+ return this[u].qName;
3586
3586
  },
3587
- getURI: function(e) {
3588
- return this[e].uri;
3587
+ getURI: function(u) {
3588
+ return this[u].uri;
3589
3589
  },
3590
- getValue: function(e) {
3591
- return this[e].value;
3590
+ getValue: function(u) {
3591
+ return this[u].value;
3592
3592
  }
3593
3593
  // ,getIndex:function(uri, localName)){
3594
3594
  // if(localName){
@@ -3601,105 +3601,105 @@ Er.prototype = {
3601
3601
  // getType:function(uri,localName){}
3602
3602
  // getType:function(i){},
3603
3603
  };
3604
- function Zr(e, r) {
3605
- var t, n = [], a = /'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;
3606
- for (a.lastIndex = r, a.exec(e); t = a.exec(e); )
3607
- if (n.push(t), t[1]) return n;
3608
- }
3609
- Ce.XMLReader = Nr;
3610
- Ce.ParseError = Y;
3611
- var Jr = M, Wr = V, Ye = wr, Dr = Ce, Kr = Wr.DOMImplementation, Ze = Jr.NAMESPACE, Qr = Dr.ParseError, et = Dr.XMLReader;
3612
- function Tr(e) {
3613
- return e.replace(/\r[\n\u0085]/g, `
3604
+ function Qe(u, e) {
3605
+ var r, t = [], n = /'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;
3606
+ for (n.lastIndex = e, n.exec(u); r = n.exec(u); )
3607
+ if (t.push(r), r[1]) return t;
3608
+ }
3609
+ Ou.XMLReader = Ce;
3610
+ Ou.ParseError = Y;
3611
+ var Ze = k, Je = M, Yu = de, we = Ou, We = Je.DOMImplementation, Qu = Ze.NAMESPACE, Ke = we.ParseError, ur = we.XMLReader;
3612
+ function Be(u) {
3613
+ return u.replace(/\r[\n\u0085]/g, `
3614
3614
  `).replace(/[\r\u0085\u2028]/g, `
3615
3615
  `);
3616
3616
  }
3617
- function qr(e) {
3618
- this.options = e || { locator: {} };
3617
+ function Ne(u) {
3618
+ this.options = u || { locator: {} };
3619
3619
  }
3620
- qr.prototype.parseFromString = function(e, r) {
3621
- var t = this.options, n = new et(), a = t.domBuilder || new ie(), o = t.errorHandler, i = t.locator, s = t.xmlns || {}, u = /\/x?html?$/.test(r), l = u ? Ye.HTML_ENTITIES : Ye.XML_ENTITIES;
3622
- i && a.setDocumentLocator(i), n.errorHandler = rt(o, a, i), n.domBuilder = t.domBuilder || a, u && (s[""] = Ze.HTML), s.xml = s.xml || Ze.XML;
3623
- var c = t.normalizeLineEndings || Tr;
3624
- return e && typeof e == "string" ? n.parse(
3625
- c(e),
3620
+ Ne.prototype.parseFromString = function(u, e) {
3621
+ var r = this.options, t = new ur(), n = r.domBuilder || new iu(), a = r.errorHandler, i = r.locator, s = r.xmlns || {}, o = /\/x?html?$/.test(e), l = o ? Yu.HTML_ENTITIES : Yu.XML_ENTITIES;
3622
+ i && n.setDocumentLocator(i), t.errorHandler = er(a, n, i), t.domBuilder = r.domBuilder || n, o && (s[""] = Qu.HTML), s.xml = s.xml || Qu.XML;
3623
+ var c = r.normalizeLineEndings || Be;
3624
+ return u && typeof u == "string" ? t.parse(
3625
+ c(u),
3626
3626
  s,
3627
3627
  l
3628
- ) : n.errorHandler.error("invalid doc source"), a.doc;
3628
+ ) : t.errorHandler.error("invalid doc source"), n.doc;
3629
3629
  };
3630
- function rt(e, r, t) {
3631
- if (!e) {
3632
- if (r instanceof ie)
3633
- return r;
3634
- e = r;
3630
+ function er(u, e, r) {
3631
+ if (!u) {
3632
+ if (e instanceof iu)
3633
+ return e;
3634
+ u = e;
3635
3635
  }
3636
- var n = {}, a = e instanceof Function;
3637
- t = t || {};
3638
- function o(i) {
3639
- var s = e[i];
3640
- !s && a && (s = e.length == 2 ? function(u) {
3641
- e(i, u);
3642
- } : e), n[i] = s && function(u) {
3643
- s("[xmldom " + i + "] " + u + Ee(t));
3636
+ var t = {}, n = u instanceof Function;
3637
+ r = r || {};
3638
+ function a(i) {
3639
+ var s = u[i];
3640
+ !s && n && (s = u.length == 2 ? function(o) {
3641
+ u(i, o);
3642
+ } : u), t[i] = s && function(o) {
3643
+ s("[xmldom " + i + "] " + o + bu(r));
3644
3644
  } || function() {
3645
3645
  };
3646
3646
  }
3647
- return o("warning"), o("error"), o("fatalError"), n;
3647
+ return a("warning"), a("error"), a("fatalError"), t;
3648
3648
  }
3649
- function ie() {
3649
+ function iu() {
3650
3650
  this.cdata = !1;
3651
3651
  }
3652
- function z(e, r) {
3653
- r.lineNumber = e.lineNumber, r.columnNumber = e.columnNumber;
3652
+ function H(u, e) {
3653
+ e.lineNumber = u.lineNumber, e.columnNumber = u.columnNumber;
3654
3654
  }
3655
- ie.prototype = {
3655
+ iu.prototype = {
3656
3656
  startDocument: function() {
3657
- this.doc = new Kr().createDocument(null, null, null), this.locator && (this.doc.documentURI = this.locator.systemId);
3657
+ this.doc = new We().createDocument(null, null, null), this.locator && (this.doc.documentURI = this.locator.systemId);
3658
3658
  },
3659
- startElement: function(e, r, t, n) {
3660
- var a = this.doc, o = a.createElementNS(e, t || r), i = n.length;
3661
- le(this, o), this.currentElement = o, this.locator && z(this.locator, o);
3659
+ startElement: function(u, e, r, t) {
3660
+ var n = this.doc, a = n.createElementNS(u, r || e), i = t.length;
3661
+ su(this, a), this.currentElement = a, this.locator && H(this.locator, a);
3662
3662
  for (var s = 0; s < i; s++) {
3663
- var e = n.getURI(s), u = n.getValue(s), t = n.getQName(s), l = a.createAttributeNS(e, t);
3664
- this.locator && z(n.getLocator(s), l), l.value = l.nodeValue = u, o.setAttributeNode(l);
3663
+ var u = t.getURI(s), o = t.getValue(s), r = t.getQName(s), l = n.createAttributeNS(u, r);
3664
+ this.locator && H(t.getLocator(s), l), l.value = l.nodeValue = o, a.setAttributeNode(l);
3665
3665
  }
3666
3666
  },
3667
- endElement: function(e, r, t) {
3668
- var n = this.currentElement;
3669
- n.tagName, this.currentElement = n.parentNode;
3667
+ endElement: function(u, e, r) {
3668
+ var t = this.currentElement;
3669
+ t.tagName, this.currentElement = t.parentNode;
3670
3670
  },
3671
- startPrefixMapping: function(e, r) {
3671
+ startPrefixMapping: function(u, e) {
3672
3672
  },
3673
- endPrefixMapping: function(e) {
3673
+ endPrefixMapping: function(u) {
3674
3674
  },
3675
- processingInstruction: function(e, r) {
3676
- var t = this.doc.createProcessingInstruction(e, r);
3677
- this.locator && z(this.locator, t), le(this, t);
3675
+ processingInstruction: function(u, e) {
3676
+ var r = this.doc.createProcessingInstruction(u, e);
3677
+ this.locator && H(this.locator, r), su(this, r);
3678
3678
  },
3679
- ignorableWhitespace: function(e, r, t) {
3679
+ ignorableWhitespace: function(u, e, r) {
3680
3680
  },
3681
- characters: function(e, r, t) {
3682
- if (e = Je.apply(this, arguments), e) {
3681
+ characters: function(u, e, r) {
3682
+ if (u = Zu.apply(this, arguments), u) {
3683
3683
  if (this.cdata)
3684
- var n = this.doc.createCDATASection(e);
3684
+ var t = this.doc.createCDATASection(u);
3685
3685
  else
3686
- var n = this.doc.createTextNode(e);
3687
- this.currentElement ? this.currentElement.appendChild(n) : /^\s*$/.test(e) && this.doc.appendChild(n), this.locator && z(this.locator, n);
3686
+ var t = this.doc.createTextNode(u);
3687
+ this.currentElement ? this.currentElement.appendChild(t) : /^\s*$/.test(u) && this.doc.appendChild(t), this.locator && H(this.locator, t);
3688
3688
  }
3689
3689
  },
3690
- skippedEntity: function(e) {
3690
+ skippedEntity: function(u) {
3691
3691
  },
3692
3692
  endDocument: function() {
3693
3693
  this.doc.normalize();
3694
3694
  },
3695
- setDocumentLocator: function(e) {
3696
- (this.locator = e) && (e.lineNumber = 0);
3695
+ setDocumentLocator: function(u) {
3696
+ (this.locator = u) && (u.lineNumber = 0);
3697
3697
  },
3698
3698
  //LexicalHandler
3699
- comment: function(e, r, t) {
3700
- e = Je.apply(this, arguments);
3701
- var n = this.doc.createComment(e);
3702
- this.locator && z(this.locator, n), le(this, n);
3699
+ comment: function(u, e, r) {
3700
+ u = Zu.apply(this, arguments);
3701
+ var t = this.doc.createComment(u);
3702
+ this.locator && H(this.locator, t), su(this, t);
3703
3703
  },
3704
3704
  startCDATA: function() {
3705
3705
  this.cdata = !0;
@@ -3707,52 +3707,52 @@ ie.prototype = {
3707
3707
  endCDATA: function() {
3708
3708
  this.cdata = !1;
3709
3709
  },
3710
- startDTD: function(e, r, t) {
3711
- var n = this.doc.implementation;
3712
- if (n && n.createDocumentType) {
3713
- var a = n.createDocumentType(e, r, t);
3714
- this.locator && z(this.locator, a), le(this, a), this.doc.doctype = a;
3710
+ startDTD: function(u, e, r) {
3711
+ var t = this.doc.implementation;
3712
+ if (t && t.createDocumentType) {
3713
+ var n = t.createDocumentType(u, e, r);
3714
+ this.locator && H(this.locator, n), su(this, n), this.doc.doctype = n;
3715
3715
  }
3716
3716
  },
3717
3717
  /**
3718
3718
  * @see org.xml.sax.ErrorHandler
3719
3719
  * @link http://www.saxproject.org/apidoc/org/xml/sax/ErrorHandler.html
3720
3720
  */
3721
- warning: function(e) {
3722
- console.warn("[xmldom warning] " + e, Ee(this.locator));
3721
+ warning: function(u) {
3722
+ console.warn("[xmldom warning] " + u, bu(this.locator));
3723
3723
  },
3724
- error: function(e) {
3725
- console.error("[xmldom error] " + e, Ee(this.locator));
3724
+ error: function(u) {
3725
+ console.error("[xmldom error] " + u, bu(this.locator));
3726
3726
  },
3727
- fatalError: function(e) {
3728
- throw new Qr(e, this.locator);
3727
+ fatalError: function(u) {
3728
+ throw new Ke(u, this.locator);
3729
3729
  }
3730
3730
  };
3731
- function Ee(e) {
3732
- if (e)
3731
+ function bu(u) {
3732
+ if (u)
3733
3733
  return `
3734
- @` + (e.systemId || "") + "#[line:" + e.lineNumber + ",col:" + e.columnNumber + "]";
3734
+ @` + (u.systemId || "") + "#[line:" + u.lineNumber + ",col:" + u.columnNumber + "]";
3735
3735
  }
3736
- function Je(e, r, t) {
3737
- return typeof e == "string" ? e.substr(r, t) : e.length >= r + t || r ? new java.lang.String(e, r, t) + "" : e;
3736
+ function Zu(u, e, r) {
3737
+ return typeof u == "string" ? u.substr(e, r) : u.length >= e + r || e ? new java.lang.String(u, e, r) + "" : u;
3738
3738
  }
3739
- "endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g, function(e) {
3740
- ie.prototype[e] = function() {
3739
+ "endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g, function(u) {
3740
+ iu.prototype[u] = function() {
3741
3741
  return null;
3742
3742
  };
3743
3743
  });
3744
- function le(e, r) {
3745
- e.currentElement ? e.currentElement.appendChild(r) : e.doc.appendChild(r);
3746
- }
3747
- me.__DOMHandler = ie;
3748
- me.normalizeLineEndings = Tr;
3749
- me.DOMParser = qr;
3750
- var tt = me.DOMParser;
3751
- const nt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3744
+ function su(u, e) {
3745
+ u.currentElement ? u.currentElement.appendChild(e) : u.doc.appendChild(e);
3746
+ }
3747
+ hu.__DOMHandler = iu;
3748
+ hu.normalizeLineEndings = Be;
3749
+ hu.DOMParser = Ne;
3750
+ var rr = hu.DOMParser;
3751
+ const tr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3752
3752
  __proto__: null,
3753
- DOMParser: tt
3753
+ DOMParser: rr
3754
3754
  }, Symbol.toStringTag, { value: "Module" }));
3755
3755
  export {
3756
- tt as D,
3757
- nt as i
3756
+ rr as D,
3757
+ tr as i
3758
3758
  };