@harbour-enterprises/superdoc 0.9.39 → 0.9.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{super-editor.es-DCbnxyYl.es.js → super-editor.es-BMGaeJBV.es.js} +2507 -2507
- package/dist/chunks/{super-editor.es-TG5bwOai.cjs → super-editor.es-BPWmPyPV.cjs} +43 -43
- package/dist/super-editor/chunks/{converter-DXuU2GGe.js → converter-3lmRyrJr.js} +339 -339
- package/dist/super-editor/chunks/{docx-zipper-BuYva3j1.js → docx-zipper-pzhEkORK.js} +1 -1
- package/dist/super-editor/chunks/{editor-Dqrro-7d.js → editor-B7eTfGQw.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-DHjcVYGZ.js → toolbar-BfM-mqT5.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/listImporter.d.ts.map +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/super-editor.es.js +6 -6
- package/dist/super-editor/tests/e2e/test-app/dist/assets/{index-DX0vnkoa.d.ts → index-BTMvkUyI.d.ts} +1 -1
- package/dist/super-editor/tests/e2e/test-app/dist/assets/index-BTMvkUyI.d.ts.map +1 -0
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +3 -3
- package/dist/superdoc.umd.js +341 -341
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/super-editor/tests/e2e/test-app/dist/assets/index-DX0vnkoa.d.ts.map +0 -1
|
@@ -437,7 +437,7 @@ wi.write = function(r, e, t, n, i, s) {
|
|
|
437
437
|
}
|
|
438
438
|
return G < me ? -1 : me < G ? 1 : 0;
|
|
439
439
|
};
|
|
440
|
-
function
|
|
440
|
+
function E(y, l, d, v, O) {
|
|
441
441
|
if (y.length === 0) return -1;
|
|
442
442
|
if (typeof d == "string" ? (v = d, d = 0) : d > 2147483647 ? d = 2147483647 : d < -2147483648 && (d = -2147483648), d = +d, st(d) && (d = O ? 0 : y.length - 1), d < 0 && (d = y.length + d), d >= y.length) {
|
|
443
443
|
if (O) return -1;
|
|
@@ -484,9 +484,9 @@ wi.write = function(r, e, t, n, i, s) {
|
|
|
484
484
|
c.prototype.includes = function(l, d, v) {
|
|
485
485
|
return this.indexOf(l, d, v) !== -1;
|
|
486
486
|
}, c.prototype.indexOf = function(l, d, v) {
|
|
487
|
-
return
|
|
487
|
+
return E(this, l, d, v, !0);
|
|
488
488
|
}, c.prototype.lastIndexOf = function(l, d, v) {
|
|
489
|
-
return
|
|
489
|
+
return E(this, l, d, v, !1);
|
|
490
490
|
};
|
|
491
491
|
function oe(y, l, d, v) {
|
|
492
492
|
d = Number(d) || 0;
|
|
@@ -819,13 +819,13 @@ wi.write = function(r, e, t, n, i, s) {
|
|
|
819
819
|
}, c.prototype.writeFloatBE = function(l, d, v) {
|
|
820
820
|
return R(this, l, d, !1, v);
|
|
821
821
|
};
|
|
822
|
-
function
|
|
822
|
+
function D(y, l, d, v, O) {
|
|
823
823
|
return l = +l, d = d >>> 0, O || m(y, l, d, 8), t.write(y, l, d, v, 52, 8), d + 8;
|
|
824
824
|
}
|
|
825
825
|
c.prototype.writeDoubleLE = function(l, d, v) {
|
|
826
|
-
return
|
|
826
|
+
return D(this, l, d, !0, v);
|
|
827
827
|
}, c.prototype.writeDoubleBE = function(l, d, v) {
|
|
828
|
-
return
|
|
828
|
+
return D(this, l, d, !1, v);
|
|
829
829
|
}, c.prototype.copy = function(l, d, v, O) {
|
|
830
830
|
if (!c.isBuffer(l)) throw new TypeError("argument should be a Buffer");
|
|
831
831
|
if (v || (v = 0), !O && O !== 0 && (O = this.length), d >= l.length && (d = l.length), d || (d = 0), O > 0 && O < v && (O = v), O === v || l.length === 0 || this.length === 0) return 0;
|
|
@@ -1121,9 +1121,9 @@ function yi() {
|
|
|
1121
1121
|
return u(this);
|
|
1122
1122
|
}, s.prototype.emit = function(F) {
|
|
1123
1123
|
for (var N = [], q = 1; q < arguments.length; q++) N.push(arguments[q]);
|
|
1124
|
-
var H = F === "error",
|
|
1125
|
-
if (
|
|
1126
|
-
H = H &&
|
|
1124
|
+
var H = F === "error", E = this._events;
|
|
1125
|
+
if (E !== void 0)
|
|
1126
|
+
H = H && E.error === void 0;
|
|
1127
1127
|
else if (!H)
|
|
1128
1128
|
return !1;
|
|
1129
1129
|
if (H) {
|
|
@@ -1133,7 +1133,7 @@ function yi() {
|
|
|
1133
1133
|
var oe = new Error("Unhandled error." + (K ? " (" + K.message + ")" : ""));
|
|
1134
1134
|
throw oe.context = K, oe;
|
|
1135
1135
|
}
|
|
1136
|
-
var ee =
|
|
1136
|
+
var ee = E[F];
|
|
1137
1137
|
if (ee === void 0)
|
|
1138
1138
|
return !1;
|
|
1139
1139
|
if (typeof ee == "function")
|
|
@@ -1144,14 +1144,14 @@ function yi() {
|
|
|
1144
1144
|
return !0;
|
|
1145
1145
|
};
|
|
1146
1146
|
function f(C, F, N, q) {
|
|
1147
|
-
var H,
|
|
1148
|
-
if (a(N),
|
|
1147
|
+
var H, E, K;
|
|
1148
|
+
if (a(N), E = C._events, E === void 0 ? (E = C._events = /* @__PURE__ */ Object.create(null), C._eventsCount = 0) : (E.newListener !== void 0 && (C.emit(
|
|
1149
1149
|
"newListener",
|
|
1150
1150
|
F,
|
|
1151
1151
|
N.listener ? N.listener : N
|
|
1152
|
-
),
|
|
1153
|
-
K =
|
|
1154
|
-
else if (typeof K == "function" ? K =
|
|
1152
|
+
), E = C._events), K = E[F]), K === void 0)
|
|
1153
|
+
K = E[F] = N, ++C._eventsCount;
|
|
1154
|
+
else if (typeof K == "function" ? K = E[F] = q ? [N, K] : [K, N] : q ? K.unshift(N) : K.push(N), H = u(C), H > 0 && K.length > H && !K.warned) {
|
|
1155
1155
|
K.warned = !0;
|
|
1156
1156
|
var oe = new Error("Possible EventEmitter memory leak detected. " + K.length + " " + String(F) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
1157
1157
|
oe.name = "MaxListenersExceededWarning", oe.emitter = C, oe.type = F, oe.count = K.length, n(oe);
|
|
@@ -1176,7 +1176,7 @@ function yi() {
|
|
|
1176
1176
|
}, s.prototype.prependOnceListener = function(F, N) {
|
|
1177
1177
|
return a(N), this.prependListener(F, h(this, F, N)), this;
|
|
1178
1178
|
}, s.prototype.removeListener = function(F, N) {
|
|
1179
|
-
var q, H,
|
|
1179
|
+
var q, H, E, K, oe;
|
|
1180
1180
|
if (a(N), H = this._events, H === void 0)
|
|
1181
1181
|
return this;
|
|
1182
1182
|
if (q = H[F], q === void 0)
|
|
@@ -1184,14 +1184,14 @@ function yi() {
|
|
|
1184
1184
|
if (q === N || q.listener === N)
|
|
1185
1185
|
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete H[F], H.removeListener && this.emit("removeListener", F, q.listener || N));
|
|
1186
1186
|
else if (typeof q != "function") {
|
|
1187
|
-
for (
|
|
1187
|
+
for (E = -1, K = q.length - 1; K >= 0; K--)
|
|
1188
1188
|
if (q[K] === N || q[K].listener === N) {
|
|
1189
|
-
oe = q[K].listener,
|
|
1189
|
+
oe = q[K].listener, E = K;
|
|
1190
1190
|
break;
|
|
1191
1191
|
}
|
|
1192
|
-
if (
|
|
1192
|
+
if (E < 0)
|
|
1193
1193
|
return this;
|
|
1194
|
-
|
|
1194
|
+
E === 0 ? q.shift() : A(q, E), q.length === 1 && (H[F] = q[0]), H.removeListener !== void 0 && this.emit("removeListener", F, oe || N);
|
|
1195
1195
|
}
|
|
1196
1196
|
return this;
|
|
1197
1197
|
}, s.prototype.off = s.prototype.removeListener, s.prototype.removeAllListeners = function(F) {
|
|
@@ -1201,9 +1201,9 @@ function yi() {
|
|
|
1201
1201
|
if (q.removeListener === void 0)
|
|
1202
1202
|
return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : q[F] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete q[F]), this;
|
|
1203
1203
|
if (arguments.length === 0) {
|
|
1204
|
-
var
|
|
1205
|
-
for (H = 0; H <
|
|
1206
|
-
K =
|
|
1204
|
+
var E = Object.keys(q), K;
|
|
1205
|
+
for (H = 0; H < E.length; ++H)
|
|
1206
|
+
K = E[H], K !== "removeListener" && this.removeAllListeners(K);
|
|
1207
1207
|
return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
|
|
1208
1208
|
}
|
|
1209
1209
|
if (N = q[F], typeof N == "function")
|
|
@@ -1259,12 +1259,12 @@ function yi() {
|
|
|
1259
1259
|
function w(C, F) {
|
|
1260
1260
|
return new Promise(function(N, q) {
|
|
1261
1261
|
function H(K) {
|
|
1262
|
-
C.removeListener(F,
|
|
1262
|
+
C.removeListener(F, E), q(K);
|
|
1263
1263
|
}
|
|
1264
|
-
function
|
|
1264
|
+
function E() {
|
|
1265
1265
|
typeof C.removeListener == "function" && C.removeListener("error", H), N([].slice.call(arguments));
|
|
1266
1266
|
}
|
|
1267
|
-
I(C, F,
|
|
1267
|
+
I(C, F, E, { once: !0 }), F !== "error" && k(C, H, { once: !0 });
|
|
1268
1268
|
});
|
|
1269
1269
|
}
|
|
1270
1270
|
function k(C, F, N) {
|
|
@@ -1274,8 +1274,8 @@ function yi() {
|
|
|
1274
1274
|
if (typeof C.on == "function")
|
|
1275
1275
|
q.once ? C.once(F, N) : C.on(F, N);
|
|
1276
1276
|
else if (typeof C.addEventListener == "function")
|
|
1277
|
-
C.addEventListener(F, function H(
|
|
1278
|
-
q.once && C.removeEventListener(F, H), N(
|
|
1277
|
+
C.addEventListener(F, function H(E) {
|
|
1278
|
+
q.once && C.removeEventListener(F, H), N(E);
|
|
1279
1279
|
});
|
|
1280
1280
|
else
|
|
1281
1281
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof C);
|
|
@@ -1731,7 +1731,7 @@ function Qo() {
|
|
|
1731
1731
|
return C;
|
|
1732
1732
|
}
|
|
1733
1733
|
}
|
|
1734
|
-
}() : C, N = vl()(), q = Di(), H = $o(),
|
|
1734
|
+
}() : C, N = vl()(), q = Di(), H = $o(), E = Ko(), K = xi(), oe = bi(), ee = {}, Q = typeof Uint8Array > "u" || !q ? r : q(Uint8Array), ce = {
|
|
1735
1735
|
__proto__: null,
|
|
1736
1736
|
"%AggregateError%": typeof AggregateError > "u" ? r : AggregateError,
|
|
1737
1737
|
"%Array%": Array,
|
|
@@ -1813,7 +1813,7 @@ function Qo() {
|
|
|
1813
1813
|
"%Math.pow%": S,
|
|
1814
1814
|
"%Math.round%": T,
|
|
1815
1815
|
"%Math.sign%": A,
|
|
1816
|
-
"%Reflect.getPrototypeOf%":
|
|
1816
|
+
"%Reflect.getPrototypeOf%": E
|
|
1817
1817
|
};
|
|
1818
1818
|
if (q)
|
|
1819
1819
|
try {
|
|
@@ -1822,22 +1822,22 @@ function Qo() {
|
|
|
1822
1822
|
var ae = q(q(R));
|
|
1823
1823
|
ce["%Error.prototype%"] = ae;
|
|
1824
1824
|
}
|
|
1825
|
-
var se = function R(
|
|
1825
|
+
var se = function R(D) {
|
|
1826
1826
|
var b;
|
|
1827
|
-
if (
|
|
1827
|
+
if (D === "%AsyncFunction%")
|
|
1828
1828
|
b = w("async function () {}");
|
|
1829
|
-
else if (
|
|
1829
|
+
else if (D === "%GeneratorFunction%")
|
|
1830
1830
|
b = w("function* () {}");
|
|
1831
|
-
else if (
|
|
1831
|
+
else if (D === "%AsyncGeneratorFunction%")
|
|
1832
1832
|
b = w("async function* () {}");
|
|
1833
|
-
else if (
|
|
1833
|
+
else if (D === "%AsyncGenerator%") {
|
|
1834
1834
|
var x = R("%AsyncGeneratorFunction%");
|
|
1835
1835
|
x && (b = x.prototype);
|
|
1836
|
-
} else if (
|
|
1836
|
+
} else if (D === "%AsyncIteratorPrototype%") {
|
|
1837
1837
|
var _ = R("%AsyncGenerator%");
|
|
1838
1838
|
_ && q && (b = q(_.prototype));
|
|
1839
1839
|
}
|
|
1840
|
-
return ce[
|
|
1840
|
+
return ce[D] = b, b;
|
|
1841
1841
|
}, Y = {
|
|
1842
1842
|
__proto__: null,
|
|
1843
1843
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
@@ -1891,38 +1891,38 @@ function Qo() {
|
|
|
1891
1891
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
1892
1892
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
1893
1893
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
1894
|
-
}, de = Kt(), J = Yo(), te = de.call(oe, Array.prototype.concat), ie = de.call(K, Array.prototype.splice), L = de.call(oe, String.prototype.replace), j = de.call(oe, String.prototype.slice), V = de.call(oe, RegExp.prototype.exec), $ = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, P = /\\(\\)?/g, p = function(
|
|
1895
|
-
var b = j(
|
|
1894
|
+
}, de = Kt(), J = Yo(), te = de.call(oe, Array.prototype.concat), ie = de.call(K, Array.prototype.splice), L = de.call(oe, String.prototype.replace), j = de.call(oe, String.prototype.slice), V = de.call(oe, RegExp.prototype.exec), $ = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, P = /\\(\\)?/g, p = function(D) {
|
|
1895
|
+
var b = j(D, 0, 1), x = j(D, -1);
|
|
1896
1896
|
if (b === "%" && x !== "%")
|
|
1897
1897
|
throw new o("invalid intrinsic syntax, expected closing `%`");
|
|
1898
1898
|
if (x === "%" && b !== "%")
|
|
1899
1899
|
throw new o("invalid intrinsic syntax, expected opening `%`");
|
|
1900
1900
|
var _ = [];
|
|
1901
|
-
return L(
|
|
1901
|
+
return L(D, $, function(W, re, X, ne) {
|
|
1902
1902
|
_[_.length] = X ? L(ne, P, "$1") : re || W;
|
|
1903
1903
|
}), _;
|
|
1904
|
-
}, m = function(
|
|
1905
|
-
var x =
|
|
1904
|
+
}, m = function(D, b) {
|
|
1905
|
+
var x = D, _;
|
|
1906
1906
|
if (J(Y, x) && (_ = Y[x], x = "%" + _[0] + "%"), J(ce, x)) {
|
|
1907
1907
|
var W = ce[x];
|
|
1908
1908
|
if (W === ee && (W = se(x)), typeof W > "u" && !b)
|
|
1909
|
-
throw new a("intrinsic " +
|
|
1909
|
+
throw new a("intrinsic " + D + " exists, but is not available. Please file an issue!");
|
|
1910
1910
|
return {
|
|
1911
1911
|
alias: _,
|
|
1912
1912
|
name: x,
|
|
1913
1913
|
value: W
|
|
1914
1914
|
};
|
|
1915
1915
|
}
|
|
1916
|
-
throw new o("intrinsic " +
|
|
1916
|
+
throw new o("intrinsic " + D + " does not exist!");
|
|
1917
1917
|
};
|
|
1918
|
-
return wn = function(
|
|
1919
|
-
if (typeof
|
|
1918
|
+
return wn = function(D, b) {
|
|
1919
|
+
if (typeof D != "string" || D.length === 0)
|
|
1920
1920
|
throw new a("intrinsic name must be a non-empty string");
|
|
1921
1921
|
if (arguments.length > 1 && typeof b != "boolean")
|
|
1922
1922
|
throw new a('"allowMissing" argument must be a boolean');
|
|
1923
|
-
if (V(/^%?[^%]*%?$/,
|
|
1923
|
+
if (V(/^%?[^%]*%?$/, D) === null)
|
|
1924
1924
|
throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
1925
|
-
var x = p(
|
|
1925
|
+
var x = p(D), _ = x.length > 0 ? x[0] : "", W = m("%" + _ + "%", b), re = W.name, X = W.value, ne = !1, ye = W.alias;
|
|
1926
1926
|
ye && (_ = ye[0], ie(x, te([0, 1], ye)));
|
|
1927
1927
|
for (var z = 1, Be = !0; z < x.length; z += 1) {
|
|
1928
1928
|
var Fe = x[z], He = j(Fe, 0, 1), ze = j(Fe, -1);
|
|
@@ -1933,7 +1933,7 @@ function Qo() {
|
|
|
1933
1933
|
else if (X != null) {
|
|
1934
1934
|
if (!(Fe in X)) {
|
|
1935
1935
|
if (!b)
|
|
1936
|
-
throw new a("base intrinsic for " +
|
|
1936
|
+
throw new a("base intrinsic for " + D + " exists, but the property is not available.");
|
|
1937
1937
|
return;
|
|
1938
1938
|
}
|
|
1939
1939
|
if (k && z + 1 >= x.length) {
|
|
@@ -2433,10 +2433,10 @@ function Hl() {
|
|
|
2433
2433
|
return n(z) === "Float32Array";
|
|
2434
2434
|
}
|
|
2435
2435
|
r.isFloat32Array = H;
|
|
2436
|
-
function
|
|
2436
|
+
function E(z) {
|
|
2437
2437
|
return n(z) === "Float64Array";
|
|
2438
2438
|
}
|
|
2439
|
-
r.isFloat64Array =
|
|
2439
|
+
r.isFloat64Array = E;
|
|
2440
2440
|
function K(z) {
|
|
2441
2441
|
return n(z) === "BigInt64Array";
|
|
2442
2442
|
}
|
|
@@ -2513,10 +2513,10 @@ function Hl() {
|
|
|
2513
2513
|
return u(z) === "[object Set Iterator]";
|
|
2514
2514
|
}
|
|
2515
2515
|
r.isSetIterator = R;
|
|
2516
|
-
function
|
|
2516
|
+
function D(z) {
|
|
2517
2517
|
return u(z) === "[object Generator]";
|
|
2518
2518
|
}
|
|
2519
|
-
r.isGeneratorObject =
|
|
2519
|
+
r.isGeneratorObject = D;
|
|
2520
2520
|
function b(z) {
|
|
2521
2521
|
return u(z) === "[object WebAssembly.Module]";
|
|
2522
2522
|
}
|
|
@@ -2596,7 +2596,7 @@ function ea() {
|
|
|
2596
2596
|
return R;
|
|
2597
2597
|
}
|
|
2598
2598
|
}), m = $[V]; V < P; m = $[++V])
|
|
2599
|
-
k(m) || !
|
|
2599
|
+
k(m) || !E(m) ? p += " " + m : p += " " + o(m);
|
|
2600
2600
|
return p;
|
|
2601
2601
|
}, r.deprecate = function(L, j) {
|
|
2602
2602
|
if (typeof he < "u" && he.noDeprecation === !0)
|
|
@@ -2704,20 +2704,20 @@ function ea() {
|
|
|
2704
2704
|
if (oe(j))
|
|
2705
2705
|
return g(j);
|
|
2706
2706
|
}
|
|
2707
|
-
var
|
|
2707
|
+
var D = "", b = !1, x = ["{", "}"];
|
|
2708
2708
|
if (B(j) && (b = !0, x = ["[", "]"]), ee(j)) {
|
|
2709
2709
|
var _ = j.name ? ": " + j.name : "";
|
|
2710
|
-
|
|
2710
|
+
D = " [Function" + _ + "]";
|
|
2711
2711
|
}
|
|
2712
|
-
if (H(j) && (
|
|
2713
|
-
return x[0] +
|
|
2712
|
+
if (H(j) && (D = " " + RegExp.prototype.toString.call(j)), K(j) && (D = " " + Date.prototype.toUTCString.call(j)), oe(j) && (D = " " + g(j)), p.length === 0 && (!b || j.length == 0))
|
|
2713
|
+
return x[0] + D + x[1];
|
|
2714
2714
|
if (V < 0)
|
|
2715
2715
|
return H(j) ? L.stylize(RegExp.prototype.toString.call(j), "regexp") : L.stylize("[Object]", "special");
|
|
2716
2716
|
L.seen.push(j);
|
|
2717
2717
|
var W;
|
|
2718
2718
|
return b ? W = S(L, j, V, m, p) : W = p.map(function(re) {
|
|
2719
2719
|
return T(L, j, V, m, re, b);
|
|
2720
|
-
}), L.seen.pop(), A(W,
|
|
2720
|
+
}), L.seen.pop(), A(W, D, x);
|
|
2721
2721
|
}
|
|
2722
2722
|
function h(L, j) {
|
|
2723
2723
|
if (q(j))
|
|
@@ -2746,20 +2746,20 @@ function ea() {
|
|
|
2746
2746
|
String(m),
|
|
2747
2747
|
!0
|
|
2748
2748
|
)) : p.push("");
|
|
2749
|
-
return P.forEach(function(
|
|
2750
|
-
|
|
2749
|
+
return P.forEach(function(D) {
|
|
2750
|
+
D.match(/^\d+$/) || p.push(T(
|
|
2751
2751
|
L,
|
|
2752
2752
|
j,
|
|
2753
2753
|
V,
|
|
2754
2754
|
$,
|
|
2755
|
-
|
|
2755
|
+
D,
|
|
2756
2756
|
!0
|
|
2757
2757
|
));
|
|
2758
2758
|
}), p;
|
|
2759
2759
|
}
|
|
2760
2760
|
function T(L, j, V, $, P, p) {
|
|
2761
|
-
var m, R,
|
|
2762
|
-
if (
|
|
2761
|
+
var m, R, D;
|
|
2762
|
+
if (D = Object.getOwnPropertyDescriptor(j, P) || { value: j[P] }, D.get ? D.set ? R = L.stylize("[Getter/Setter]", "special") : R = L.stylize("[Getter]", "special") : D.set && (R = L.stylize("[Setter]", "special")), de($, P) || (m = "[" + P + "]"), R || (L.seen.indexOf(D.value) < 0 ? (k(V) ? R = c(L, D.value, null) : R = c(L, D.value, V - 1), R.indexOf(`
|
|
2763
2763
|
`) > -1 && (p ? R = R.split(`
|
|
2764
2764
|
`).map(function(b) {
|
|
2765
2765
|
return " " + b;
|
|
@@ -2819,19 +2819,19 @@ function ea() {
|
|
|
2819
2819
|
}
|
|
2820
2820
|
r.isUndefined = q;
|
|
2821
2821
|
function H(L) {
|
|
2822
|
-
return
|
|
2822
|
+
return E(L) && ce(L) === "[object RegExp]";
|
|
2823
2823
|
}
|
|
2824
2824
|
r.isRegExp = H, r.types.isRegExp = H;
|
|
2825
|
-
function
|
|
2825
|
+
function E(L) {
|
|
2826
2826
|
return typeof L == "object" && L !== null;
|
|
2827
2827
|
}
|
|
2828
|
-
r.isObject =
|
|
2828
|
+
r.isObject = E;
|
|
2829
2829
|
function K(L) {
|
|
2830
|
-
return
|
|
2830
|
+
return E(L) && ce(L) === "[object Date]";
|
|
2831
2831
|
}
|
|
2832
2832
|
r.isDate = K, r.types.isDate = K;
|
|
2833
2833
|
function oe(L) {
|
|
2834
|
-
return
|
|
2834
|
+
return E(L) && (ce(L) === "[object Error]" || L instanceof Error);
|
|
2835
2835
|
}
|
|
2836
2836
|
r.isError = oe, r.types.isNativeError = oe;
|
|
2837
2837
|
function ee(L) {
|
|
@@ -2874,7 +2874,7 @@ function ea() {
|
|
|
2874
2874
|
r.log = function() {
|
|
2875
2875
|
console.log("%s - %s", Y(), r.format.apply(r, arguments));
|
|
2876
2876
|
}, r.inherits = wt(), r._extend = function(L, j) {
|
|
2877
|
-
if (!j || !
|
|
2877
|
+
if (!j || !E(j)) return L;
|
|
2878
2878
|
for (var V = Object.keys(j), $ = V.length; $--; )
|
|
2879
2879
|
L[V[$]] = j[V[$]];
|
|
2880
2880
|
return L;
|
|
@@ -2898,17 +2898,17 @@ function ea() {
|
|
|
2898
2898
|
}), V;
|
|
2899
2899
|
}
|
|
2900
2900
|
function V() {
|
|
2901
|
-
for (var $, P, p = new Promise(function(
|
|
2902
|
-
$ =
|
|
2901
|
+
for (var $, P, p = new Promise(function(D, b) {
|
|
2902
|
+
$ = D, P = b;
|
|
2903
2903
|
}), m = [], R = 0; R < arguments.length; R++)
|
|
2904
2904
|
m.push(arguments[R]);
|
|
2905
|
-
m.push(function(
|
|
2906
|
-
|
|
2905
|
+
m.push(function(D, b) {
|
|
2906
|
+
D ? P(D) : $(b);
|
|
2907
2907
|
});
|
|
2908
2908
|
try {
|
|
2909
2909
|
j.apply(this, m);
|
|
2910
|
-
} catch (
|
|
2911
|
-
P(
|
|
2910
|
+
} catch (D) {
|
|
2911
|
+
P(D);
|
|
2912
2912
|
}
|
|
2913
2913
|
return p;
|
|
2914
2914
|
}
|
|
@@ -3297,8 +3297,8 @@ function na() {
|
|
|
3297
3297
|
function N(P, p, m) {
|
|
3298
3298
|
e = e || Ct(), P = P || {}, typeof m != "boolean" && (m = p instanceof e), this.objectMode = !!P.objectMode, m && (this.objectMode = this.objectMode || !!P.writableObjectMode), this.highWaterMark = c(this, P, "writableHighWaterMark", m), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
|
|
3299
3299
|
var R = P.decodeStrings === !1;
|
|
3300
|
-
this.decodeStrings = !R, this.defaultEncoding = P.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(
|
|
3301
|
-
se(p,
|
|
3300
|
+
this.decodeStrings = !R, this.defaultEncoding = P.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(D) {
|
|
3301
|
+
se(p, D);
|
|
3302
3302
|
}, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = P.emitClose !== !1, this.autoDestroy = !!P.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new r(this);
|
|
3303
3303
|
}
|
|
3304
3304
|
N.prototype.getBuffer = function() {
|
|
@@ -3332,17 +3332,17 @@ function na() {
|
|
|
3332
3332
|
H.prototype.pipe = function() {
|
|
3333
3333
|
C(this, new A());
|
|
3334
3334
|
};
|
|
3335
|
-
function
|
|
3335
|
+
function E(P, p) {
|
|
3336
3336
|
var m = new k();
|
|
3337
3337
|
C(P, m), he.nextTick(p, m);
|
|
3338
3338
|
}
|
|
3339
3339
|
function K(P, p, m, R) {
|
|
3340
|
-
var
|
|
3341
|
-
return m === null ?
|
|
3340
|
+
var D;
|
|
3341
|
+
return m === null ? D = new w() : typeof m != "string" && !p.objectMode && (D = new g("chunk", ["string", "Buffer"], m)), D ? (C(P, D), he.nextTick(R, D), !1) : !0;
|
|
3342
3342
|
}
|
|
3343
3343
|
H.prototype.write = function(P, p, m) {
|
|
3344
|
-
var R = this._writableState,
|
|
3345
|
-
return b && !i.isBuffer(P) && (P = o(P)), typeof p == "function" && (m = p, p = null), b ? p = "buffer" : p || (p = R.defaultEncoding), typeof m != "function" && (m = F), R.ending ?
|
|
3344
|
+
var R = this._writableState, D = !1, b = !R.objectMode && a(P);
|
|
3345
|
+
return b && !i.isBuffer(P) && (P = o(P)), typeof p == "function" && (m = p, p = null), b ? p = "buffer" : p || (p = R.defaultEncoding), typeof m != "function" && (m = F), R.ending ? E(this, m) : (b || K(this, R, P, m)) && (R.pendingcb++, D = ee(this, R, b, P, p, m)), D;
|
|
3346
3346
|
}, H.prototype.cork = function() {
|
|
3347
3347
|
this._writableState.corked++;
|
|
3348
3348
|
}, H.prototype.uncork = function() {
|
|
@@ -3372,10 +3372,10 @@ function na() {
|
|
|
3372
3372
|
return this._writableState.highWaterMark;
|
|
3373
3373
|
}
|
|
3374
3374
|
});
|
|
3375
|
-
function ee(P, p, m, R,
|
|
3375
|
+
function ee(P, p, m, R, D, b) {
|
|
3376
3376
|
if (!m) {
|
|
3377
|
-
var x = oe(p, R,
|
|
3378
|
-
R !== x && (m = !0,
|
|
3377
|
+
var x = oe(p, R, D);
|
|
3378
|
+
R !== x && (m = !0, D = "buffer", R = x);
|
|
3379
3379
|
}
|
|
3380
3380
|
var _ = p.objectMode ? 1 : R.length;
|
|
3381
3381
|
p.length += _;
|
|
@@ -3384,31 +3384,31 @@ function na() {
|
|
|
3384
3384
|
var re = p.lastBufferedRequest;
|
|
3385
3385
|
p.lastBufferedRequest = {
|
|
3386
3386
|
chunk: R,
|
|
3387
|
-
encoding:
|
|
3387
|
+
encoding: D,
|
|
3388
3388
|
isBuf: m,
|
|
3389
3389
|
callback: b,
|
|
3390
3390
|
next: null
|
|
3391
3391
|
}, re ? re.next = p.lastBufferedRequest : p.bufferedRequest = p.lastBufferedRequest, p.bufferedRequestCount += 1;
|
|
3392
3392
|
} else
|
|
3393
|
-
Q(P, p, !1, _, R,
|
|
3393
|
+
Q(P, p, !1, _, R, D, b);
|
|
3394
3394
|
return W;
|
|
3395
3395
|
}
|
|
3396
|
-
function Q(P, p, m, R,
|
|
3397
|
-
p.writelen = R, p.writecb = x, p.writing = !0, p.sync = !0, p.destroyed ? p.onwrite(new B("write")) : m ? P._writev(
|
|
3396
|
+
function Q(P, p, m, R, D, b, x) {
|
|
3397
|
+
p.writelen = R, p.writecb = x, p.writing = !0, p.sync = !0, p.destroyed ? p.onwrite(new B("write")) : m ? P._writev(D, p.onwrite) : P._write(D, b, p.onwrite), p.sync = !1;
|
|
3398
3398
|
}
|
|
3399
|
-
function ce(P, p, m, R,
|
|
3400
|
-
--p.pendingcb, m ? (he.nextTick(
|
|
3399
|
+
function ce(P, p, m, R, D) {
|
|
3400
|
+
--p.pendingcb, m ? (he.nextTick(D, R), he.nextTick(j, P, p), P._writableState.errorEmitted = !0, C(P, R)) : (D(R), P._writableState.errorEmitted = !0, C(P, R), j(P, p));
|
|
3401
3401
|
}
|
|
3402
3402
|
function ae(P) {
|
|
3403
3403
|
P.writing = !1, P.writecb = null, P.length -= P.writelen, P.writelen = 0;
|
|
3404
3404
|
}
|
|
3405
3405
|
function se(P, p) {
|
|
3406
|
-
var m = P._writableState, R = m.sync,
|
|
3407
|
-
if (typeof
|
|
3408
|
-
if (ae(m), p) ce(P, m, R, p,
|
|
3406
|
+
var m = P._writableState, R = m.sync, D = m.writecb;
|
|
3407
|
+
if (typeof D != "function") throw new T();
|
|
3408
|
+
if (ae(m), p) ce(P, m, R, p, D);
|
|
3409
3409
|
else {
|
|
3410
3410
|
var b = te(m) || P.destroyed;
|
|
3411
|
-
!b && !m.corked && !m.bufferProcessing && m.bufferedRequest && J(P, m), R ? he.nextTick(Y, P, m, b,
|
|
3411
|
+
!b && !m.corked && !m.bufferProcessing && m.bufferedRequest && J(P, m), R ? he.nextTick(Y, P, m, b, D) : Y(P, m, b, D);
|
|
3412
3412
|
}
|
|
3413
3413
|
}
|
|
3414
3414
|
function Y(P, p, m, R) {
|
|
@@ -3421,11 +3421,11 @@ function na() {
|
|
|
3421
3421
|
p.bufferProcessing = !0;
|
|
3422
3422
|
var m = p.bufferedRequest;
|
|
3423
3423
|
if (P._writev && m && m.next) {
|
|
3424
|
-
var R = p.bufferedRequestCount,
|
|
3424
|
+
var R = p.bufferedRequestCount, D = new Array(R), b = p.corkedRequestsFree;
|
|
3425
3425
|
b.entry = m;
|
|
3426
3426
|
for (var x = 0, _ = !0; m; )
|
|
3427
|
-
|
|
3428
|
-
|
|
3427
|
+
D[x] = m, m.isBuf || (_ = !1), m = m.next, x += 1;
|
|
3428
|
+
D.allBuffers = _, Q(P, p, !0, p.length, D, "", b.finish), p.pendingcb++, p.lastBufferedRequest = null, b.next ? (p.corkedRequestsFree = b.next, b.next = null) : p.corkedRequestsFree = new r(p), p.bufferedRequestCount = 0;
|
|
3429
3429
|
} else {
|
|
3430
3430
|
for (; m; ) {
|
|
3431
3431
|
var W = m.chunk, re = m.encoding, X = m.callback, ne = p.objectMode ? 1 : W.length;
|
|
@@ -3475,8 +3475,8 @@ function na() {
|
|
|
3475
3475
|
function $(P, p, m) {
|
|
3476
3476
|
var R = P.entry;
|
|
3477
3477
|
for (P.entry = null; R; ) {
|
|
3478
|
-
var
|
|
3479
|
-
p.pendingcb--,
|
|
3478
|
+
var D = R.callback;
|
|
3479
|
+
p.pendingcb--, D(m), R = R.next;
|
|
3480
3480
|
}
|
|
3481
3481
|
p.corkedRequestsFree.next = P;
|
|
3482
3482
|
}
|
|
@@ -3858,9 +3858,9 @@ function Jl() {
|
|
|
3858
3858
|
if (this[u])
|
|
3859
3859
|
return Promise.resolve(g(void 0, !0));
|
|
3860
3860
|
if (this[h].destroyed)
|
|
3861
|
-
return new Promise(function(
|
|
3861
|
+
return new Promise(function(E, K) {
|
|
3862
3862
|
he.nextTick(function() {
|
|
3863
|
-
C[a] ? K(C[a]) :
|
|
3863
|
+
C[a] ? K(C[a]) : E(g(void 0, !0));
|
|
3864
3864
|
});
|
|
3865
3865
|
});
|
|
3866
3866
|
var N = this[f], q;
|
|
@@ -3904,9 +3904,9 @@ function Jl() {
|
|
|
3904
3904
|
value: C._readableState.endEmitted,
|
|
3905
3905
|
writable: !0
|
|
3906
3906
|
}), e(F, c, {
|
|
3907
|
-
value: function(H,
|
|
3907
|
+
value: function(H, E) {
|
|
3908
3908
|
var K = N[h].read();
|
|
3909
|
-
K ? (N[f] = null, N[s] = null, N[o] = null, H(g(K, !1))) : (N[s] = H, N[o] =
|
|
3909
|
+
K ? (N[f] = null, N[s] = null, N[o] = null, H(g(K, !1))) : (N[s] = H, N[o] = E);
|
|
3910
3910
|
},
|
|
3911
3911
|
writable: !0
|
|
3912
3912
|
}), F));
|
|
@@ -3916,8 +3916,8 @@ function Jl() {
|
|
|
3916
3916
|
H !== null && (N[f] = null, N[s] = null, N[o] = null, H(q)), N[a] = q;
|
|
3917
3917
|
return;
|
|
3918
3918
|
}
|
|
3919
|
-
var
|
|
3920
|
-
|
|
3919
|
+
var E = N[s];
|
|
3920
|
+
E !== null && (N[f] = null, N[s] = null, N[o] = null, E(g(void 0, !0))), N[u] = !0;
|
|
3921
3921
|
}), C.on("readable", T.bind(null, N)), N;
|
|
3922
3922
|
};
|
|
3923
3923
|
return zn = k, zn;
|
|
@@ -3931,9 +3931,9 @@ function Kl() {
|
|
|
3931
3931
|
var Wn, Ys;
|
|
3932
3932
|
function ia() {
|
|
3933
3933
|
if (Ys) return Wn;
|
|
3934
|
-
Ys = 1, Wn =
|
|
3934
|
+
Ys = 1, Wn = E;
|
|
3935
3935
|
var r;
|
|
3936
|
-
|
|
3936
|
+
E.ReadableState = H, yi().EventEmitter;
|
|
3937
3937
|
var e = function(x, _) {
|
|
3938
3938
|
return x.listeners(_).length;
|
|
3939
3939
|
}, t = zo(), n = Dr.Buffer, i = (typeof We < "u" ? We : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
|
|
@@ -3948,7 +3948,7 @@ function ia() {
|
|
|
3948
3948
|
a && a.debuglog ? u = a.debuglog("stream") : u = function() {
|
|
3949
3949
|
};
|
|
3950
3950
|
var f = zl(), c = ta(), h = ra(), g = h.getHighWaterMark, S = Rt().codes, T = S.ERR_INVALID_ARG_TYPE, A = S.ERR_STREAM_PUSH_AFTER_EOF, B = S.ERR_METHOD_NOT_IMPLEMENTED, w = S.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, k, I, C;
|
|
3951
|
-
wt()(
|
|
3951
|
+
wt()(E, t);
|
|
3952
3952
|
var F = c.errorOrDestroy, N = ["error", "close", "destroy", "pause", "resume"];
|
|
3953
3953
|
function q(b, x, _) {
|
|
3954
3954
|
if (typeof b.prependListener == "function") return b.prependListener(x, _);
|
|
@@ -3957,12 +3957,12 @@ function ia() {
|
|
|
3957
3957
|
function H(b, x, _) {
|
|
3958
3958
|
r = r || Ct(), b = b || {}, typeof _ != "boolean" && (_ = x instanceof r), this.objectMode = !!b.objectMode, _ && (this.objectMode = this.objectMode || !!b.readableObjectMode), this.highWaterMark = g(this, b, "readableHighWaterMark", _), this.buffer = new f(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = b.emitClose !== !1, this.autoDestroy = !!b.autoDestroy, this.destroyed = !1, this.defaultEncoding = b.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, b.encoding && (k || (k = ui().StringDecoder), this.decoder = new k(b.encoding), this.encoding = b.encoding);
|
|
3959
3959
|
}
|
|
3960
|
-
function
|
|
3961
|
-
if (r = r || Ct(), !(this instanceof
|
|
3960
|
+
function E(b) {
|
|
3961
|
+
if (r = r || Ct(), !(this instanceof E)) return new E(b);
|
|
3962
3962
|
var x = this instanceof r;
|
|
3963
3963
|
this._readableState = new H(b, this, x), this.readable = !0, b && (typeof b.read == "function" && (this._read = b.read), typeof b.destroy == "function" && (this._destroy = b.destroy)), t.call(this);
|
|
3964
3964
|
}
|
|
3965
|
-
Object.defineProperty(
|
|
3965
|
+
Object.defineProperty(E.prototype, "destroyed", {
|
|
3966
3966
|
// making it explicit this property is not enumerable
|
|
3967
3967
|
// because otherwise some prototype manipulation in
|
|
3968
3968
|
// userland will fail
|
|
@@ -3973,12 +3973,12 @@ function ia() {
|
|
|
3973
3973
|
set: function(x) {
|
|
3974
3974
|
this._readableState && (this._readableState.destroyed = x);
|
|
3975
3975
|
}
|
|
3976
|
-
}),
|
|
3976
|
+
}), E.prototype.destroy = c.destroy, E.prototype._undestroy = c.undestroy, E.prototype._destroy = function(b, x) {
|
|
3977
3977
|
x(b);
|
|
3978
|
-
},
|
|
3978
|
+
}, E.prototype.push = function(b, x) {
|
|
3979
3979
|
var _ = this._readableState, W;
|
|
3980
3980
|
return _.objectMode ? W = !0 : typeof b == "string" && (x = x || _.defaultEncoding, x !== _.encoding && (b = n.from(b, x), x = ""), W = !0), K(this, b, x, !1, W);
|
|
3981
|
-
},
|
|
3981
|
+
}, E.prototype.unshift = function(b) {
|
|
3982
3982
|
return K(this, b, null, !0, !1);
|
|
3983
3983
|
};
|
|
3984
3984
|
function K(b, x, _, W, re) {
|
|
@@ -4011,9 +4011,9 @@ function ia() {
|
|
|
4011
4011
|
var _;
|
|
4012
4012
|
return !o(x) && typeof x != "string" && x !== void 0 && !b.objectMode && (_ = new T("chunk", ["string", "Buffer", "Uint8Array"], x)), _;
|
|
4013
4013
|
}
|
|
4014
|
-
|
|
4014
|
+
E.prototype.isPaused = function() {
|
|
4015
4015
|
return this._readableState.flowing === !1;
|
|
4016
|
-
},
|
|
4016
|
+
}, E.prototype.setEncoding = function(b) {
|
|
4017
4017
|
k || (k = ui().StringDecoder);
|
|
4018
4018
|
var x = new k(b);
|
|
4019
4019
|
this._readableState.decoder = x, this._readableState.encoding = this._readableState.decoder.encoding;
|
|
@@ -4028,7 +4028,7 @@ function ia() {
|
|
|
4028
4028
|
function ae(b, x) {
|
|
4029
4029
|
return b <= 0 || x.length === 0 && x.ended ? 0 : x.objectMode ? 1 : b !== b ? x.flowing && x.length ? x.buffer.head.data.length : x.length : (b > x.highWaterMark && (x.highWaterMark = ce(b)), b <= x.length ? b : x.ended ? x.length : (x.needReadable = !0, 0));
|
|
4030
4030
|
}
|
|
4031
|
-
|
|
4031
|
+
E.prototype.read = function(b) {
|
|
4032
4032
|
u("read", b), b = parseInt(b, 10);
|
|
4033
4033
|
var x = this._readableState, _ = b;
|
|
4034
4034
|
if (b !== 0 && (x.emittedReadable = !1), b === 0 && x.needReadable && ((x.highWaterMark !== 0 ? x.length >= x.highWaterMark : x.length > 0) || x.ended))
|
|
@@ -4068,9 +4068,9 @@ function ia() {
|
|
|
4068
4068
|
}
|
|
4069
4069
|
x.readingMore = !1;
|
|
4070
4070
|
}
|
|
4071
|
-
|
|
4071
|
+
E.prototype._read = function(b) {
|
|
4072
4072
|
F(this, new B("_read()"));
|
|
4073
|
-
},
|
|
4073
|
+
}, E.prototype.pipe = function(b, x) {
|
|
4074
4074
|
var _ = this, W = this._readableState;
|
|
4075
4075
|
switch (W.pipesCount) {
|
|
4076
4076
|
case 0:
|
|
@@ -4102,7 +4102,7 @@ function ia() {
|
|
|
4102
4102
|
function He(lt) {
|
|
4103
4103
|
u("ondata");
|
|
4104
4104
|
var Le = b.write(lt);
|
|
4105
|
-
u("dest.write", Le), Le === !1 && ((W.pipesCount === 1 && W.pipes === b || W.pipesCount > 1 &&
|
|
4105
|
+
u("dest.write", Le), Le === !1 && ((W.pipesCount === 1 && W.pipes === b || W.pipesCount > 1 && D(W.pipes, b) !== -1) && !Be && (u("false write response, pause", W.awaitDrain), W.awaitDrain++), _.pause());
|
|
4106
4106
|
}
|
|
4107
4107
|
function ze(lt) {
|
|
4108
4108
|
u("onerror", lt), st(), b.removeListener("error", ze), e(b, "error") === 0 && F(b, lt);
|
|
@@ -4127,7 +4127,7 @@ function ia() {
|
|
|
4127
4127
|
u("pipeOnDrain", _.awaitDrain), _.awaitDrain && _.awaitDrain--, _.awaitDrain === 0 && e(b, "data") && (_.flowing = !0, P(b));
|
|
4128
4128
|
};
|
|
4129
4129
|
}
|
|
4130
|
-
|
|
4130
|
+
E.prototype.unpipe = function(b) {
|
|
4131
4131
|
var x = this._readableState, _ = {
|
|
4132
4132
|
hasUnpiped: !1
|
|
4133
4133
|
};
|
|
@@ -4142,15 +4142,15 @@ function ia() {
|
|
|
4142
4142
|
});
|
|
4143
4143
|
return this;
|
|
4144
4144
|
}
|
|
4145
|
-
var ne =
|
|
4145
|
+
var ne = D(x.pipes, b);
|
|
4146
4146
|
return ne === -1 ? this : (x.pipes.splice(ne, 1), x.pipesCount -= 1, x.pipesCount === 1 && (x.pipes = x.pipes[0]), b.emit("unpipe", this, _), this);
|
|
4147
|
-
},
|
|
4147
|
+
}, E.prototype.on = function(b, x) {
|
|
4148
4148
|
var _ = t.prototype.on.call(this, b, x), W = this._readableState;
|
|
4149
4149
|
return b === "data" ? (W.readableListening = this.listenerCount("readable") > 0, W.flowing !== !1 && this.resume()) : b === "readable" && !W.endEmitted && !W.readableListening && (W.readableListening = W.needReadable = !0, W.flowing = !1, W.emittedReadable = !1, u("on readable", W.length, W.reading), W.length ? Y(this) : W.reading || he.nextTick(j, this)), _;
|
|
4150
|
-
},
|
|
4150
|
+
}, E.prototype.addListener = E.prototype.on, E.prototype.removeListener = function(b, x) {
|
|
4151
4151
|
var _ = t.prototype.removeListener.call(this, b, x);
|
|
4152
4152
|
return b === "readable" && he.nextTick(L, this), _;
|
|
4153
|
-
},
|
|
4153
|
+
}, E.prototype.removeAllListeners = function(b) {
|
|
4154
4154
|
var x = t.prototype.removeAllListeners.apply(this, arguments);
|
|
4155
4155
|
return (b === "readable" || b === void 0) && he.nextTick(L, this), x;
|
|
4156
4156
|
};
|
|
@@ -4161,7 +4161,7 @@ function ia() {
|
|
|
4161
4161
|
function j(b) {
|
|
4162
4162
|
u("readable nexttick read 0"), b.read(0);
|
|
4163
4163
|
}
|
|
4164
|
-
|
|
4164
|
+
E.prototype.resume = function() {
|
|
4165
4165
|
var b = this._readableState;
|
|
4166
4166
|
return b.flowing || (u("resume"), b.flowing = !b.readableListening, V(this, b)), b.paused = !1, this;
|
|
4167
4167
|
};
|
|
@@ -4171,14 +4171,14 @@ function ia() {
|
|
|
4171
4171
|
function $(b, x) {
|
|
4172
4172
|
u("resume", x.reading), x.reading || b.read(0), x.resumeScheduled = !1, b.emit("resume"), P(b), x.flowing && !x.reading && b.read(0);
|
|
4173
4173
|
}
|
|
4174
|
-
|
|
4174
|
+
E.prototype.pause = function() {
|
|
4175
4175
|
return u("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (u("pause"), this._readableState.flowing = !1, this.emit("pause")), this._readableState.paused = !0, this;
|
|
4176
4176
|
};
|
|
4177
4177
|
function P(b) {
|
|
4178
4178
|
var x = b._readableState;
|
|
4179
4179
|
for (u("flow", x.flowing); x.flowing && b.read() !== null; ) ;
|
|
4180
4180
|
}
|
|
4181
|
-
|
|
4181
|
+
E.prototype.wrap = function(b) {
|
|
4182
4182
|
var x = this, _ = this._readableState, W = !1;
|
|
4183
4183
|
b.on("end", function() {
|
|
4184
4184
|
if (u("wrapped end"), _.decoder && !_.ended) {
|
|
@@ -4203,9 +4203,9 @@ function ia() {
|
|
|
4203
4203
|
return this._read = function(ne) {
|
|
4204
4204
|
u("wrapped _read", ne), W && (W = !1, b.resume());
|
|
4205
4205
|
}, this;
|
|
4206
|
-
}, typeof Symbol == "function" && (
|
|
4206
|
+
}, typeof Symbol == "function" && (E.prototype[Symbol.asyncIterator] = function() {
|
|
4207
4207
|
return I === void 0 && (I = Jl()), I(this);
|
|
4208
|
-
}), Object.defineProperty(
|
|
4208
|
+
}), Object.defineProperty(E.prototype, "readableHighWaterMark", {
|
|
4209
4209
|
// making it explicit this property is not enumerable
|
|
4210
4210
|
// because otherwise some prototype manipulation in
|
|
4211
4211
|
// userland will fail
|
|
@@ -4213,7 +4213,7 @@ function ia() {
|
|
|
4213
4213
|
get: function() {
|
|
4214
4214
|
return this._readableState.highWaterMark;
|
|
4215
4215
|
}
|
|
4216
|
-
}), Object.defineProperty(
|
|
4216
|
+
}), Object.defineProperty(E.prototype, "readableBuffer", {
|
|
4217
4217
|
// making it explicit this property is not enumerable
|
|
4218
4218
|
// because otherwise some prototype manipulation in
|
|
4219
4219
|
// userland will fail
|
|
@@ -4221,7 +4221,7 @@ function ia() {
|
|
|
4221
4221
|
get: function() {
|
|
4222
4222
|
return this._readableState && this._readableState.buffer;
|
|
4223
4223
|
}
|
|
4224
|
-
}), Object.defineProperty(
|
|
4224
|
+
}), Object.defineProperty(E.prototype, "readableFlowing", {
|
|
4225
4225
|
// making it explicit this property is not enumerable
|
|
4226
4226
|
// because otherwise some prototype manipulation in
|
|
4227
4227
|
// userland will fail
|
|
@@ -4232,7 +4232,7 @@ function ia() {
|
|
|
4232
4232
|
set: function(x) {
|
|
4233
4233
|
this._readableState && (this._readableState.flowing = x);
|
|
4234
4234
|
}
|
|
4235
|
-
}),
|
|
4235
|
+
}), E._fromList = p, Object.defineProperty(E.prototype, "readableLength", {
|
|
4236
4236
|
// making it explicit this property is not enumerable
|
|
4237
4237
|
// because otherwise some prototype manipulation in
|
|
4238
4238
|
// userland will fail
|
|
@@ -4256,10 +4256,10 @@ function ia() {
|
|
|
4256
4256
|
(!_ || _.autoDestroy && _.finished) && x.destroy();
|
|
4257
4257
|
}
|
|
4258
4258
|
}
|
|
4259
|
-
typeof Symbol == "function" && (
|
|
4260
|
-
return C === void 0 && (C = Kl()), C(
|
|
4259
|
+
typeof Symbol == "function" && (E.from = function(b, x) {
|
|
4260
|
+
return C === void 0 && (C = Kl()), C(E, b, x);
|
|
4261
4261
|
});
|
|
4262
|
-
function
|
|
4262
|
+
function D(b, x) {
|
|
4263
4263
|
for (var _ = 0, W = b.length; _ < W; _++)
|
|
4264
4264
|
if (b[_] === x) return _;
|
|
4265
4265
|
return -1;
|
|
@@ -4483,7 +4483,7 @@ function Yl() {
|
|
|
4483
4483
|
if (!(this instanceof n))
|
|
4484
4484
|
return new n(p, m);
|
|
4485
4485
|
var R = this;
|
|
4486
|
-
s(R), R.q = R.c = "", R.bufferCheckPosition = e.MAX_BUFFER_LENGTH, R.opt = m || {}, R.opt.lowercase = R.opt.lowercase || R.opt.lowercasetags, R.looseCase = R.opt.lowercase ? "toLowerCase" : "toUpperCase", R.tags = [], R.closed = R.closedRoot = R.sawRoot = !1, R.tag = R.error = null, R.strict = !!p, R.noscript = !!(p || R.opt.noscript), R.state =
|
|
4486
|
+
s(R), R.q = R.c = "", R.bufferCheckPosition = e.MAX_BUFFER_LENGTH, R.opt = m || {}, R.opt.lowercase = R.opt.lowercase || R.opt.lowercasetags, R.looseCase = R.opt.lowercase ? "toLowerCase" : "toUpperCase", R.tags = [], R.closed = R.closedRoot = R.sawRoot = !1, R.tag = R.error = null, R.strict = !!p, R.noscript = !!(p || R.opt.noscript), R.state = E.BEGIN, R.strictEntities = R.opt.strictEntities, R.ENTITIES = R.strictEntities ? Object.create(e.XML_ENTITIES) : Object.create(e.ENTITIES), R.attribList = [], R.opt.xmlns && (R.ns = Object.create(A)), R.opt.unquotedAttributeValues === void 0 && (R.opt.unquotedAttributeValues = !p), R.trackPosition = R.opt.position !== !1, R.trackPosition && (R.position = R.line = R.column = 0), oe(R, "onready");
|
|
4487
4487
|
}
|
|
4488
4488
|
Object.create || (Object.create = function(p) {
|
|
4489
4489
|
function m() {
|
|
@@ -4497,10 +4497,10 @@ function Yl() {
|
|
|
4497
4497
|
return m;
|
|
4498
4498
|
});
|
|
4499
4499
|
function i(p) {
|
|
4500
|
-
for (var m = Math.max(e.MAX_BUFFER_LENGTH, 10), R = 0,
|
|
4501
|
-
var x = p[t[
|
|
4500
|
+
for (var m = Math.max(e.MAX_BUFFER_LENGTH, 10), R = 0, D = 0, b = t.length; D < b; D++) {
|
|
4501
|
+
var x = p[t[D]].length;
|
|
4502
4502
|
if (x > m)
|
|
4503
|
-
switch (t[
|
|
4503
|
+
switch (t[D]) {
|
|
4504
4504
|
case "textNode":
|
|
4505
4505
|
Q(p);
|
|
4506
4506
|
break;
|
|
@@ -4511,7 +4511,7 @@ function Yl() {
|
|
|
4511
4511
|
ee(p, "onscript", p.script), p.script = "";
|
|
4512
4512
|
break;
|
|
4513
4513
|
default:
|
|
4514
|
-
ae(p, "Max buffer length exceeded: " + t[
|
|
4514
|
+
ae(p, "Max buffer length exceeded: " + t[D]);
|
|
4515
4515
|
}
|
|
4516
4516
|
R = Math.max(R, x);
|
|
4517
4517
|
}
|
|
@@ -4562,17 +4562,17 @@ function Yl() {
|
|
|
4562
4562
|
var R = this;
|
|
4563
4563
|
this._parser.onend = function() {
|
|
4564
4564
|
R.emit("end");
|
|
4565
|
-
}, this._parser.onerror = function(
|
|
4566
|
-
R.emit("error",
|
|
4567
|
-
}, this._decoder = null, u.forEach(function(
|
|
4568
|
-
Object.defineProperty(R, "on" +
|
|
4565
|
+
}, this._parser.onerror = function(D) {
|
|
4566
|
+
R.emit("error", D), R._parser.error = null;
|
|
4567
|
+
}, this._decoder = null, u.forEach(function(D) {
|
|
4568
|
+
Object.defineProperty(R, "on" + D, {
|
|
4569
4569
|
get: function() {
|
|
4570
|
-
return R._parser["on" +
|
|
4570
|
+
return R._parser["on" + D];
|
|
4571
4571
|
},
|
|
4572
4572
|
set: function(b) {
|
|
4573
4573
|
if (!b)
|
|
4574
|
-
return R.removeAllListeners(
|
|
4575
|
-
R.on(
|
|
4574
|
+
return R.removeAllListeners(D), R._parser["on" + D] = b, b;
|
|
4575
|
+
R.on(D, b);
|
|
4576
4576
|
},
|
|
4577
4577
|
enumerable: !0,
|
|
4578
4578
|
configurable: !1
|
|
@@ -4597,8 +4597,8 @@ function Yl() {
|
|
|
4597
4597
|
}, c.prototype.on = function(p, m) {
|
|
4598
4598
|
var R = this;
|
|
4599
4599
|
return !R._parser["on" + p] && u.indexOf(p) !== -1 && (R._parser["on" + p] = function() {
|
|
4600
|
-
var
|
|
4601
|
-
|
|
4600
|
+
var D = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
|
|
4601
|
+
D.splice(0, 0, p), R.emit.apply(R, D);
|
|
4602
4602
|
}), a.prototype.on.call(R, p, m);
|
|
4603
4603
|
};
|
|
4604
4604
|
var h = "[CDATA[", g = "DOCTYPE", S = "http://www.w3.org/XML/1998/namespace", T = "http://www.w3.org/2000/xmlns/", A = { xml: S, xmlns: T }, B = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, w = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/, k = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, I = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;
|
|
@@ -4618,79 +4618,79 @@ function Yl() {
|
|
|
4618
4618
|
function H(p, m) {
|
|
4619
4619
|
return !q(p, m);
|
|
4620
4620
|
}
|
|
4621
|
-
var
|
|
4621
|
+
var E = 0;
|
|
4622
4622
|
e.STATE = {
|
|
4623
|
-
BEGIN:
|
|
4623
|
+
BEGIN: E++,
|
|
4624
4624
|
// leading byte order mark or whitespace
|
|
4625
|
-
BEGIN_WHITESPACE:
|
|
4625
|
+
BEGIN_WHITESPACE: E++,
|
|
4626
4626
|
// leading whitespace
|
|
4627
|
-
TEXT:
|
|
4627
|
+
TEXT: E++,
|
|
4628
4628
|
// general stuff
|
|
4629
|
-
TEXT_ENTITY:
|
|
4629
|
+
TEXT_ENTITY: E++,
|
|
4630
4630
|
// & and such.
|
|
4631
|
-
OPEN_WAKA:
|
|
4631
|
+
OPEN_WAKA: E++,
|
|
4632
4632
|
// <
|
|
4633
|
-
SGML_DECL:
|
|
4633
|
+
SGML_DECL: E++,
|
|
4634
4634
|
// <!BLARG
|
|
4635
|
-
SGML_DECL_QUOTED:
|
|
4635
|
+
SGML_DECL_QUOTED: E++,
|
|
4636
4636
|
// <!BLARG foo "bar
|
|
4637
|
-
DOCTYPE:
|
|
4637
|
+
DOCTYPE: E++,
|
|
4638
4638
|
// <!DOCTYPE
|
|
4639
|
-
DOCTYPE_QUOTED:
|
|
4639
|
+
DOCTYPE_QUOTED: E++,
|
|
4640
4640
|
// <!DOCTYPE "//blah
|
|
4641
|
-
DOCTYPE_DTD:
|
|
4641
|
+
DOCTYPE_DTD: E++,
|
|
4642
4642
|
// <!DOCTYPE "//blah" [ ...
|
|
4643
|
-
DOCTYPE_DTD_QUOTED:
|
|
4643
|
+
DOCTYPE_DTD_QUOTED: E++,
|
|
4644
4644
|
// <!DOCTYPE "//blah" [ "foo
|
|
4645
|
-
COMMENT_STARTING:
|
|
4645
|
+
COMMENT_STARTING: E++,
|
|
4646
4646
|
// <!-
|
|
4647
|
-
COMMENT:
|
|
4647
|
+
COMMENT: E++,
|
|
4648
4648
|
// <!--
|
|
4649
|
-
COMMENT_ENDING:
|
|
4649
|
+
COMMENT_ENDING: E++,
|
|
4650
4650
|
// <!-- blah -
|
|
4651
|
-
COMMENT_ENDED:
|
|
4651
|
+
COMMENT_ENDED: E++,
|
|
4652
4652
|
// <!-- blah --
|
|
4653
|
-
CDATA:
|
|
4653
|
+
CDATA: E++,
|
|
4654
4654
|
// <![CDATA[ something
|
|
4655
|
-
CDATA_ENDING:
|
|
4655
|
+
CDATA_ENDING: E++,
|
|
4656
4656
|
// ]
|
|
4657
|
-
CDATA_ENDING_2:
|
|
4657
|
+
CDATA_ENDING_2: E++,
|
|
4658
4658
|
// ]]
|
|
4659
|
-
PROC_INST:
|
|
4659
|
+
PROC_INST: E++,
|
|
4660
4660
|
// <?hi
|
|
4661
|
-
PROC_INST_BODY:
|
|
4661
|
+
PROC_INST_BODY: E++,
|
|
4662
4662
|
// <?hi there
|
|
4663
|
-
PROC_INST_ENDING:
|
|
4663
|
+
PROC_INST_ENDING: E++,
|
|
4664
4664
|
// <?hi "there" ?
|
|
4665
|
-
OPEN_TAG:
|
|
4665
|
+
OPEN_TAG: E++,
|
|
4666
4666
|
// <strong
|
|
4667
|
-
OPEN_TAG_SLASH:
|
|
4667
|
+
OPEN_TAG_SLASH: E++,
|
|
4668
4668
|
// <strong /
|
|
4669
|
-
ATTRIB:
|
|
4669
|
+
ATTRIB: E++,
|
|
4670
4670
|
// <a
|
|
4671
|
-
ATTRIB_NAME:
|
|
4671
|
+
ATTRIB_NAME: E++,
|
|
4672
4672
|
// <a foo
|
|
4673
|
-
ATTRIB_NAME_SAW_WHITE:
|
|
4673
|
+
ATTRIB_NAME_SAW_WHITE: E++,
|
|
4674
4674
|
// <a foo _
|
|
4675
|
-
ATTRIB_VALUE:
|
|
4675
|
+
ATTRIB_VALUE: E++,
|
|
4676
4676
|
// <a foo=
|
|
4677
|
-
ATTRIB_VALUE_QUOTED:
|
|
4677
|
+
ATTRIB_VALUE_QUOTED: E++,
|
|
4678
4678
|
// <a foo="bar
|
|
4679
|
-
ATTRIB_VALUE_CLOSED:
|
|
4679
|
+
ATTRIB_VALUE_CLOSED: E++,
|
|
4680
4680
|
// <a foo="bar"
|
|
4681
|
-
ATTRIB_VALUE_UNQUOTED:
|
|
4681
|
+
ATTRIB_VALUE_UNQUOTED: E++,
|
|
4682
4682
|
// <a foo=bar
|
|
4683
|
-
ATTRIB_VALUE_ENTITY_Q:
|
|
4683
|
+
ATTRIB_VALUE_ENTITY_Q: E++,
|
|
4684
4684
|
// <foo bar="""
|
|
4685
|
-
ATTRIB_VALUE_ENTITY_U:
|
|
4685
|
+
ATTRIB_VALUE_ENTITY_U: E++,
|
|
4686
4686
|
// <foo bar="
|
|
4687
|
-
CLOSE_TAG:
|
|
4687
|
+
CLOSE_TAG: E++,
|
|
4688
4688
|
// </a
|
|
4689
|
-
CLOSE_TAG_SAW_WHITE:
|
|
4689
|
+
CLOSE_TAG_SAW_WHITE: E++,
|
|
4690
4690
|
// </a >
|
|
4691
|
-
SCRIPT:
|
|
4691
|
+
SCRIPT: E++,
|
|
4692
4692
|
// <script> ...
|
|
4693
|
-
SCRIPT_ENDING:
|
|
4693
|
+
SCRIPT_ENDING: E++
|
|
4694
4694
|
// <script> ... <
|
|
4695
4695
|
}, e.XML_ENTITIES = {
|
|
4696
4696
|
amp: "&",
|
|
@@ -4958,7 +4958,7 @@ function Yl() {
|
|
|
4958
4958
|
});
|
|
4959
4959
|
for (var K in e.STATE)
|
|
4960
4960
|
e.STATE[e.STATE[K]] = K;
|
|
4961
|
-
|
|
4961
|
+
E = e.STATE;
|
|
4962
4962
|
function oe(p, m, R) {
|
|
4963
4963
|
p[m] && p[m](R);
|
|
4964
4964
|
}
|
|
@@ -4978,7 +4978,7 @@ Column: ` + p.column + `
|
|
|
4978
4978
|
Char: ` + p.c), m = new Error(m), p.error = m, oe(p, "onerror", m), p;
|
|
4979
4979
|
}
|
|
4980
4980
|
function se(p) {
|
|
4981
|
-
return p.sawRoot && !p.closedRoot && Y(p, "Unclosed root tag"), p.state !==
|
|
4981
|
+
return p.sawRoot && !p.closedRoot && Y(p, "Unclosed root tag"), p.state !== E.BEGIN && p.state !== E.BEGIN_WHITESPACE && p.state !== E.TEXT && ae(p, "Unexpected end"), Q(p), p.c = "", p.closed = !0, oe(p, "onend"), n.call(p, p.strict, p.opt), p;
|
|
4982
4982
|
}
|
|
4983
4983
|
function Y(p, m) {
|
|
4984
4984
|
if (typeof p != "object" || !(p instanceof n))
|
|
@@ -4991,7 +4991,7 @@ Char: ` + p.c), m = new Error(m), p.error = m, oe(p, "onerror", m), p;
|
|
|
4991
4991
|
p.opt.xmlns && (R.ns = m.ns), p.attribList.length = 0, ee(p, "onopentagstart", R);
|
|
4992
4992
|
}
|
|
4993
4993
|
function J(p, m) {
|
|
4994
|
-
var R = p.indexOf(":"),
|
|
4994
|
+
var R = p.indexOf(":"), D = R < 0 ? ["", p] : p.split(":"), b = D[0], x = D[1];
|
|
4995
4995
|
return m && p === "xmlns" && (b = "xmlns", x = ""), { prefix: b, local: x };
|
|
4996
4996
|
}
|
|
4997
4997
|
function te(p) {
|
|
@@ -5000,15 +5000,15 @@ Char: ` + p.c), m = new Error(m), p.error = m, oe(p, "onerror", m), p;
|
|
|
5000
5000
|
return;
|
|
5001
5001
|
}
|
|
5002
5002
|
if (p.opt.xmlns) {
|
|
5003
|
-
var m = J(p.attribName, !0), R = m.prefix,
|
|
5003
|
+
var m = J(p.attribName, !0), R = m.prefix, D = m.local;
|
|
5004
5004
|
if (R === "xmlns")
|
|
5005
|
-
if (
|
|
5005
|
+
if (D === "xml" && p.attribValue !== S)
|
|
5006
5006
|
Y(
|
|
5007
5007
|
p,
|
|
5008
5008
|
"xml: prefix must be bound to " + S + `
|
|
5009
5009
|
Actual: ` + p.attribValue
|
|
5010
5010
|
);
|
|
5011
|
-
else if (
|
|
5011
|
+
else if (D === "xmlns" && p.attribValue !== T)
|
|
5012
5012
|
Y(
|
|
5013
5013
|
p,
|
|
5014
5014
|
"xmlns: prefix must be bound to " + T + `
|
|
@@ -5016,7 +5016,7 @@ Actual: ` + p.attribValue
|
|
|
5016
5016
|
);
|
|
5017
5017
|
else {
|
|
5018
5018
|
var b = p.tag, x = p.tags[p.tags.length - 1] || p;
|
|
5019
|
-
b.ns === x.ns && (b.ns = Object.create(x.ns)), b.ns[
|
|
5019
|
+
b.ns === x.ns && (b.ns = Object.create(x.ns)), b.ns[D] = p.attribValue;
|
|
5020
5020
|
}
|
|
5021
5021
|
p.attribList.push([p.attribName, p.attribValue]);
|
|
5022
5022
|
} else
|
|
@@ -5028,8 +5028,8 @@ Actual: ` + p.attribValue
|
|
|
5028
5028
|
}
|
|
5029
5029
|
function ie(p, m) {
|
|
5030
5030
|
if (p.opt.xmlns) {
|
|
5031
|
-
var R = p.tag,
|
|
5032
|
-
R.prefix =
|
|
5031
|
+
var R = p.tag, D = J(p.tagName);
|
|
5032
|
+
R.prefix = D.prefix, R.local = D.local, R.uri = R.ns[D.prefix] || "", R.prefix && !R.uri && (Y(p, "Unbound namespace prefix: " + JSON.stringify(p.tagName)), R.uri = D.prefix);
|
|
5033
5033
|
var b = p.tags[p.tags.length - 1] || p;
|
|
5034
5034
|
R.ns && b.ns !== R.ns && Object.keys(R.ns).forEach(function(He) {
|
|
5035
5035
|
ee(p, "onopennamespace", {
|
|
@@ -5049,31 +5049,31 @@ Actual: ` + p.attribValue
|
|
|
5049
5049
|
}
|
|
5050
5050
|
p.attribList.length = 0;
|
|
5051
5051
|
}
|
|
5052
|
-
p.tag.isSelfClosing = !!m, p.sawRoot = !0, p.tags.push(p.tag), ee(p, "onopentag", p.tag), m || (!p.noscript && p.tagName.toLowerCase() === "script" ? p.state =
|
|
5052
|
+
p.tag.isSelfClosing = !!m, p.sawRoot = !0, p.tags.push(p.tag), ee(p, "onopentag", p.tag), m || (!p.noscript && p.tagName.toLowerCase() === "script" ? p.state = E.SCRIPT : p.state = E.TEXT, p.tag = null, p.tagName = ""), p.attribName = p.attribValue = "", p.attribList.length = 0;
|
|
5053
5053
|
}
|
|
5054
5054
|
function L(p) {
|
|
5055
5055
|
if (!p.tagName) {
|
|
5056
|
-
Y(p, "Weird empty close tag."), p.textNode += "</>", p.state =
|
|
5056
|
+
Y(p, "Weird empty close tag."), p.textNode += "</>", p.state = E.TEXT;
|
|
5057
5057
|
return;
|
|
5058
5058
|
}
|
|
5059
5059
|
if (p.script) {
|
|
5060
5060
|
if (p.tagName !== "script") {
|
|
5061
|
-
p.script += "</" + p.tagName + ">", p.tagName = "", p.state =
|
|
5061
|
+
p.script += "</" + p.tagName + ">", p.tagName = "", p.state = E.SCRIPT;
|
|
5062
5062
|
return;
|
|
5063
5063
|
}
|
|
5064
5064
|
ee(p, "onscript", p.script), p.script = "";
|
|
5065
5065
|
}
|
|
5066
5066
|
var m = p.tags.length, R = p.tagName;
|
|
5067
5067
|
p.strict || (R = R[p.looseCase]());
|
|
5068
|
-
for (var
|
|
5068
|
+
for (var D = R; m--; ) {
|
|
5069
5069
|
var b = p.tags[m];
|
|
5070
|
-
if (b.name !==
|
|
5070
|
+
if (b.name !== D)
|
|
5071
5071
|
Y(p, "Unexpected close tag");
|
|
5072
5072
|
else
|
|
5073
5073
|
break;
|
|
5074
5074
|
}
|
|
5075
5075
|
if (m < 0) {
|
|
5076
|
-
Y(p, "Unmatched closing tag: " + p.tagName), p.textNode += "</" + p.tagName + ">", p.state =
|
|
5076
|
+
Y(p, "Unmatched closing tag: " + p.tagName), p.textNode += "</" + p.tagName + ">", p.state = E.TEXT;
|
|
5077
5077
|
return;
|
|
5078
5078
|
}
|
|
5079
5079
|
p.tagName = R;
|
|
@@ -5089,14 +5089,14 @@ Actual: ` + p.attribValue
|
|
|
5089
5089
|
ee(p, "onclosenamespace", { prefix: ne, uri: ye });
|
|
5090
5090
|
});
|
|
5091
5091
|
}
|
|
5092
|
-
m === 0 && (p.closedRoot = !0), p.tagName = p.attribValue = p.attribName = "", p.attribList.length = 0, p.state =
|
|
5092
|
+
m === 0 && (p.closedRoot = !0), p.tagName = p.attribValue = p.attribName = "", p.attribList.length = 0, p.state = E.TEXT;
|
|
5093
5093
|
}
|
|
5094
5094
|
function j(p) {
|
|
5095
|
-
var m = p.entity, R = m.toLowerCase(),
|
|
5096
|
-
return p.ENTITIES[m] ? p.ENTITIES[m] : p.ENTITIES[R] ? p.ENTITIES[R] : (m = R, m.charAt(0) === "#" && (m.charAt(1) === "x" ? (m = m.slice(2),
|
|
5095
|
+
var m = p.entity, R = m.toLowerCase(), D, b = "";
|
|
5096
|
+
return p.ENTITIES[m] ? p.ENTITIES[m] : p.ENTITIES[R] ? p.ENTITIES[R] : (m = R, m.charAt(0) === "#" && (m.charAt(1) === "x" ? (m = m.slice(2), D = parseInt(m, 16), b = D.toString(16)) : (m = m.slice(1), D = parseInt(m, 10), b = D.toString(10))), m = m.replace(/^0+/, ""), isNaN(D) || b.toLowerCase() !== m ? (Y(p, "Invalid character entity"), "&" + p.entity + ";") : String.fromCodePoint(D));
|
|
5097
5097
|
}
|
|
5098
5098
|
function V(p, m) {
|
|
5099
|
-
m === "<" ? (p.state =
|
|
5099
|
+
m === "<" ? (p.state = E.OPEN_WAKA, p.startTagPosition = p.position) : C(m) || (Y(p, "Non-whitespace before first tag."), p.textNode = m, p.state = E.TEXT);
|
|
5100
5100
|
}
|
|
5101
5101
|
function $(p, m) {
|
|
5102
5102
|
var R = "";
|
|
@@ -5114,187 +5114,187 @@ Actual: ` + p.attribValue
|
|
|
5114
5114
|
if (p === null)
|
|
5115
5115
|
return se(m);
|
|
5116
5116
|
typeof p == "object" && (p = p.toString());
|
|
5117
|
-
for (var R = 0,
|
|
5118
|
-
switch (m.trackPosition && (m.position++,
|
|
5117
|
+
for (var R = 0, D = ""; D = $(p, R++), m.c = D, !!D; )
|
|
5118
|
+
switch (m.trackPosition && (m.position++, D === `
|
|
5119
5119
|
` ? (m.line++, m.column = 0) : m.column++), m.state) {
|
|
5120
|
-
case
|
|
5121
|
-
if (m.state =
|
|
5120
|
+
case E.BEGIN:
|
|
5121
|
+
if (m.state = E.BEGIN_WHITESPACE, D === "\uFEFF")
|
|
5122
5122
|
continue;
|
|
5123
|
-
V(m,
|
|
5123
|
+
V(m, D);
|
|
5124
5124
|
continue;
|
|
5125
|
-
case
|
|
5126
|
-
V(m,
|
|
5125
|
+
case E.BEGIN_WHITESPACE:
|
|
5126
|
+
V(m, D);
|
|
5127
5127
|
continue;
|
|
5128
|
-
case
|
|
5128
|
+
case E.TEXT:
|
|
5129
5129
|
if (m.sawRoot && !m.closedRoot) {
|
|
5130
|
-
for (var b = R - 1;
|
|
5131
|
-
|
|
5130
|
+
for (var b = R - 1; D && D !== "<" && D !== "&"; )
|
|
5131
|
+
D = $(p, R++), D && m.trackPosition && (m.position++, D === `
|
|
5132
5132
|
` ? (m.line++, m.column = 0) : m.column++);
|
|
5133
5133
|
m.textNode += p.substring(b, R - 1);
|
|
5134
5134
|
}
|
|
5135
|
-
|
|
5135
|
+
D === "<" && !(m.sawRoot && m.closedRoot && !m.strict) ? (m.state = E.OPEN_WAKA, m.startTagPosition = m.position) : (!C(D) && (!m.sawRoot || m.closedRoot) && Y(m, "Text data outside of root node."), D === "&" ? m.state = E.TEXT_ENTITY : m.textNode += D);
|
|
5136
5136
|
continue;
|
|
5137
|
-
case
|
|
5138
|
-
|
|
5137
|
+
case E.SCRIPT:
|
|
5138
|
+
D === "<" ? m.state = E.SCRIPT_ENDING : m.script += D;
|
|
5139
5139
|
continue;
|
|
5140
|
-
case
|
|
5141
|
-
|
|
5140
|
+
case E.SCRIPT_ENDING:
|
|
5141
|
+
D === "/" ? m.state = E.CLOSE_TAG : (m.script += "<" + D, m.state = E.SCRIPT);
|
|
5142
5142
|
continue;
|
|
5143
|
-
case
|
|
5144
|
-
if (
|
|
5145
|
-
m.state =
|
|
5146
|
-
else if (!C(
|
|
5147
|
-
m.state =
|
|
5148
|
-
else if (
|
|
5149
|
-
m.state =
|
|
5150
|
-
else if (
|
|
5151
|
-
m.state =
|
|
5143
|
+
case E.OPEN_WAKA:
|
|
5144
|
+
if (D === "!")
|
|
5145
|
+
m.state = E.SGML_DECL, m.sgmlDecl = "";
|
|
5146
|
+
else if (!C(D)) if (q(B, D))
|
|
5147
|
+
m.state = E.OPEN_TAG, m.tagName = D;
|
|
5148
|
+
else if (D === "/")
|
|
5149
|
+
m.state = E.CLOSE_TAG, m.tagName = "";
|
|
5150
|
+
else if (D === "?")
|
|
5151
|
+
m.state = E.PROC_INST, m.procInstName = m.procInstBody = "";
|
|
5152
5152
|
else {
|
|
5153
5153
|
if (Y(m, "Unencoded <"), m.startTagPosition + 1 < m.position) {
|
|
5154
5154
|
var x = m.position - m.startTagPosition;
|
|
5155
|
-
|
|
5155
|
+
D = new Array(x).join(" ") + D;
|
|
5156
5156
|
}
|
|
5157
|
-
m.textNode += "<" +
|
|
5157
|
+
m.textNode += "<" + D, m.state = E.TEXT;
|
|
5158
5158
|
}
|
|
5159
5159
|
continue;
|
|
5160
|
-
case
|
|
5161
|
-
if (m.sgmlDecl +
|
|
5162
|
-
m.state =
|
|
5160
|
+
case E.SGML_DECL:
|
|
5161
|
+
if (m.sgmlDecl + D === "--") {
|
|
5162
|
+
m.state = E.COMMENT, m.comment = "", m.sgmlDecl = "";
|
|
5163
5163
|
continue;
|
|
5164
5164
|
}
|
|
5165
|
-
m.doctype && m.doctype !== !0 && m.sgmlDecl ? (m.state =
|
|
5165
|
+
m.doctype && m.doctype !== !0 && m.sgmlDecl ? (m.state = E.DOCTYPE_DTD, m.doctype += "<!" + m.sgmlDecl + D, m.sgmlDecl = "") : (m.sgmlDecl + D).toUpperCase() === h ? (ee(m, "onopencdata"), m.state = E.CDATA, m.sgmlDecl = "", m.cdata = "") : (m.sgmlDecl + D).toUpperCase() === g ? (m.state = E.DOCTYPE, (m.doctype || m.sawRoot) && Y(
|
|
5166
5166
|
m,
|
|
5167
5167
|
"Inappropriately located doctype declaration"
|
|
5168
|
-
), m.doctype = "", m.sgmlDecl = "") :
|
|
5168
|
+
), m.doctype = "", m.sgmlDecl = "") : D === ">" ? (ee(m, "onsgmldeclaration", m.sgmlDecl), m.sgmlDecl = "", m.state = E.TEXT) : (F(D) && (m.state = E.SGML_DECL_QUOTED), m.sgmlDecl += D);
|
|
5169
5169
|
continue;
|
|
5170
|
-
case
|
|
5171
|
-
|
|
5170
|
+
case E.SGML_DECL_QUOTED:
|
|
5171
|
+
D === m.q && (m.state = E.SGML_DECL, m.q = ""), m.sgmlDecl += D;
|
|
5172
5172
|
continue;
|
|
5173
|
-
case
|
|
5174
|
-
|
|
5173
|
+
case E.DOCTYPE:
|
|
5174
|
+
D === ">" ? (m.state = E.TEXT, ee(m, "ondoctype", m.doctype), m.doctype = !0) : (m.doctype += D, D === "[" ? m.state = E.DOCTYPE_DTD : F(D) && (m.state = E.DOCTYPE_QUOTED, m.q = D));
|
|
5175
5175
|
continue;
|
|
5176
|
-
case
|
|
5177
|
-
m.doctype +=
|
|
5176
|
+
case E.DOCTYPE_QUOTED:
|
|
5177
|
+
m.doctype += D, D === m.q && (m.q = "", m.state = E.DOCTYPE);
|
|
5178
5178
|
continue;
|
|
5179
|
-
case
|
|
5180
|
-
|
|
5179
|
+
case E.DOCTYPE_DTD:
|
|
5180
|
+
D === "]" ? (m.doctype += D, m.state = E.DOCTYPE) : D === "<" ? (m.state = E.OPEN_WAKA, m.startTagPosition = m.position) : F(D) ? (m.doctype += D, m.state = E.DOCTYPE_DTD_QUOTED, m.q = D) : m.doctype += D;
|
|
5181
5181
|
continue;
|
|
5182
|
-
case
|
|
5183
|
-
m.doctype +=
|
|
5182
|
+
case E.DOCTYPE_DTD_QUOTED:
|
|
5183
|
+
m.doctype += D, D === m.q && (m.state = E.DOCTYPE_DTD, m.q = "");
|
|
5184
5184
|
continue;
|
|
5185
|
-
case
|
|
5186
|
-
|
|
5185
|
+
case E.COMMENT:
|
|
5186
|
+
D === "-" ? m.state = E.COMMENT_ENDING : m.comment += D;
|
|
5187
5187
|
continue;
|
|
5188
|
-
case
|
|
5189
|
-
|
|
5188
|
+
case E.COMMENT_ENDING:
|
|
5189
|
+
D === "-" ? (m.state = E.COMMENT_ENDED, m.comment = ce(m.opt, m.comment), m.comment && ee(m, "oncomment", m.comment), m.comment = "") : (m.comment += "-" + D, m.state = E.COMMENT);
|
|
5190
5190
|
continue;
|
|
5191
|
-
case
|
|
5192
|
-
|
|
5191
|
+
case E.COMMENT_ENDED:
|
|
5192
|
+
D !== ">" ? (Y(m, "Malformed comment"), m.comment += "--" + D, m.state = E.COMMENT) : m.doctype && m.doctype !== !0 ? m.state = E.DOCTYPE_DTD : m.state = E.TEXT;
|
|
5193
5193
|
continue;
|
|
5194
|
-
case
|
|
5195
|
-
|
|
5194
|
+
case E.CDATA:
|
|
5195
|
+
D === "]" ? m.state = E.CDATA_ENDING : m.cdata += D;
|
|
5196
5196
|
continue;
|
|
5197
|
-
case
|
|
5198
|
-
|
|
5197
|
+
case E.CDATA_ENDING:
|
|
5198
|
+
D === "]" ? m.state = E.CDATA_ENDING_2 : (m.cdata += "]" + D, m.state = E.CDATA);
|
|
5199
5199
|
continue;
|
|
5200
|
-
case
|
|
5201
|
-
|
|
5200
|
+
case E.CDATA_ENDING_2:
|
|
5201
|
+
D === ">" ? (m.cdata && ee(m, "oncdata", m.cdata), ee(m, "onclosecdata"), m.cdata = "", m.state = E.TEXT) : D === "]" ? m.cdata += "]" : (m.cdata += "]]" + D, m.state = E.CDATA);
|
|
5202
5202
|
continue;
|
|
5203
|
-
case
|
|
5204
|
-
|
|
5203
|
+
case E.PROC_INST:
|
|
5204
|
+
D === "?" ? m.state = E.PROC_INST_ENDING : C(D) ? m.state = E.PROC_INST_BODY : m.procInstName += D;
|
|
5205
5205
|
continue;
|
|
5206
|
-
case
|
|
5207
|
-
if (!m.procInstBody && C(
|
|
5206
|
+
case E.PROC_INST_BODY:
|
|
5207
|
+
if (!m.procInstBody && C(D))
|
|
5208
5208
|
continue;
|
|
5209
|
-
|
|
5209
|
+
D === "?" ? m.state = E.PROC_INST_ENDING : m.procInstBody += D;
|
|
5210
5210
|
continue;
|
|
5211
|
-
case
|
|
5212
|
-
|
|
5211
|
+
case E.PROC_INST_ENDING:
|
|
5212
|
+
D === ">" ? (ee(m, "onprocessinginstruction", {
|
|
5213
5213
|
name: m.procInstName,
|
|
5214
5214
|
body: m.procInstBody
|
|
5215
|
-
}), m.procInstName = m.procInstBody = "", m.state =
|
|
5215
|
+
}), m.procInstName = m.procInstBody = "", m.state = E.TEXT) : (m.procInstBody += "?" + D, m.state = E.PROC_INST_BODY);
|
|
5216
5216
|
continue;
|
|
5217
|
-
case
|
|
5218
|
-
q(w,
|
|
5217
|
+
case E.OPEN_TAG:
|
|
5218
|
+
q(w, D) ? m.tagName += D : (de(m), D === ">" ? ie(m) : D === "/" ? m.state = E.OPEN_TAG_SLASH : (C(D) || Y(m, "Invalid character in tag name"), m.state = E.ATTRIB));
|
|
5219
5219
|
continue;
|
|
5220
|
-
case
|
|
5221
|
-
|
|
5220
|
+
case E.OPEN_TAG_SLASH:
|
|
5221
|
+
D === ">" ? (ie(m, !0), L(m)) : (Y(m, "Forward-slash in opening tag not followed by >"), m.state = E.ATTRIB);
|
|
5222
5222
|
continue;
|
|
5223
|
-
case
|
|
5224
|
-
if (C(
|
|
5223
|
+
case E.ATTRIB:
|
|
5224
|
+
if (C(D))
|
|
5225
5225
|
continue;
|
|
5226
|
-
|
|
5226
|
+
D === ">" ? ie(m) : D === "/" ? m.state = E.OPEN_TAG_SLASH : q(B, D) ? (m.attribName = D, m.attribValue = "", m.state = E.ATTRIB_NAME) : Y(m, "Invalid attribute name");
|
|
5227
5227
|
continue;
|
|
5228
|
-
case
|
|
5229
|
-
|
|
5228
|
+
case E.ATTRIB_NAME:
|
|
5229
|
+
D === "=" ? m.state = E.ATTRIB_VALUE : D === ">" ? (Y(m, "Attribute without value"), m.attribValue = m.attribName, te(m), ie(m)) : C(D) ? m.state = E.ATTRIB_NAME_SAW_WHITE : q(w, D) ? m.attribName += D : Y(m, "Invalid attribute name");
|
|
5230
5230
|
continue;
|
|
5231
|
-
case
|
|
5232
|
-
if (
|
|
5233
|
-
m.state =
|
|
5231
|
+
case E.ATTRIB_NAME_SAW_WHITE:
|
|
5232
|
+
if (D === "=")
|
|
5233
|
+
m.state = E.ATTRIB_VALUE;
|
|
5234
5234
|
else {
|
|
5235
|
-
if (C(
|
|
5235
|
+
if (C(D))
|
|
5236
5236
|
continue;
|
|
5237
5237
|
Y(m, "Attribute without value"), m.tag.attributes[m.attribName] = "", m.attribValue = "", ee(m, "onattribute", {
|
|
5238
5238
|
name: m.attribName,
|
|
5239
5239
|
value: ""
|
|
5240
|
-
}), m.attribName = "",
|
|
5240
|
+
}), m.attribName = "", D === ">" ? ie(m) : q(B, D) ? (m.attribName = D, m.state = E.ATTRIB_NAME) : (Y(m, "Invalid attribute name"), m.state = E.ATTRIB);
|
|
5241
5241
|
}
|
|
5242
5242
|
continue;
|
|
5243
|
-
case
|
|
5244
|
-
if (C(
|
|
5243
|
+
case E.ATTRIB_VALUE:
|
|
5244
|
+
if (C(D))
|
|
5245
5245
|
continue;
|
|
5246
|
-
F(
|
|
5246
|
+
F(D) ? (m.q = D, m.state = E.ATTRIB_VALUE_QUOTED) : (m.opt.unquotedAttributeValues || ae(m, "Unquoted attribute value"), m.state = E.ATTRIB_VALUE_UNQUOTED, m.attribValue = D);
|
|
5247
5247
|
continue;
|
|
5248
|
-
case
|
|
5249
|
-
if (
|
|
5250
|
-
|
|
5248
|
+
case E.ATTRIB_VALUE_QUOTED:
|
|
5249
|
+
if (D !== m.q) {
|
|
5250
|
+
D === "&" ? m.state = E.ATTRIB_VALUE_ENTITY_Q : m.attribValue += D;
|
|
5251
5251
|
continue;
|
|
5252
5252
|
}
|
|
5253
|
-
te(m), m.q = "", m.state =
|
|
5253
|
+
te(m), m.q = "", m.state = E.ATTRIB_VALUE_CLOSED;
|
|
5254
5254
|
continue;
|
|
5255
|
-
case
|
|
5256
|
-
C(
|
|
5255
|
+
case E.ATTRIB_VALUE_CLOSED:
|
|
5256
|
+
C(D) ? m.state = E.ATTRIB : D === ">" ? ie(m) : D === "/" ? m.state = E.OPEN_TAG_SLASH : q(B, D) ? (Y(m, "No whitespace between attributes"), m.attribName = D, m.attribValue = "", m.state = E.ATTRIB_NAME) : Y(m, "Invalid attribute name");
|
|
5257
5257
|
continue;
|
|
5258
|
-
case
|
|
5259
|
-
if (!N(
|
|
5260
|
-
|
|
5258
|
+
case E.ATTRIB_VALUE_UNQUOTED:
|
|
5259
|
+
if (!N(D)) {
|
|
5260
|
+
D === "&" ? m.state = E.ATTRIB_VALUE_ENTITY_U : m.attribValue += D;
|
|
5261
5261
|
continue;
|
|
5262
5262
|
}
|
|
5263
|
-
te(m),
|
|
5263
|
+
te(m), D === ">" ? ie(m) : m.state = E.ATTRIB;
|
|
5264
5264
|
continue;
|
|
5265
|
-
case
|
|
5265
|
+
case E.CLOSE_TAG:
|
|
5266
5266
|
if (m.tagName)
|
|
5267
|
-
|
|
5267
|
+
D === ">" ? L(m) : q(w, D) ? m.tagName += D : m.script ? (m.script += "</" + m.tagName, m.tagName = "", m.state = E.SCRIPT) : (C(D) || Y(m, "Invalid tagname in closing tag"), m.state = E.CLOSE_TAG_SAW_WHITE);
|
|
5268
5268
|
else {
|
|
5269
|
-
if (C(
|
|
5269
|
+
if (C(D))
|
|
5270
5270
|
continue;
|
|
5271
|
-
H(B,
|
|
5271
|
+
H(B, D) ? m.script ? (m.script += "</" + D, m.state = E.SCRIPT) : Y(m, "Invalid tagname in closing tag.") : m.tagName = D;
|
|
5272
5272
|
}
|
|
5273
5273
|
continue;
|
|
5274
|
-
case
|
|
5275
|
-
if (C(
|
|
5274
|
+
case E.CLOSE_TAG_SAW_WHITE:
|
|
5275
|
+
if (C(D))
|
|
5276
5276
|
continue;
|
|
5277
|
-
|
|
5277
|
+
D === ">" ? L(m) : Y(m, "Invalid characters in closing tag");
|
|
5278
5278
|
continue;
|
|
5279
|
-
case
|
|
5280
|
-
case
|
|
5281
|
-
case
|
|
5279
|
+
case E.TEXT_ENTITY:
|
|
5280
|
+
case E.ATTRIB_VALUE_ENTITY_Q:
|
|
5281
|
+
case E.ATTRIB_VALUE_ENTITY_U:
|
|
5282
5282
|
var _, W;
|
|
5283
5283
|
switch (m.state) {
|
|
5284
|
-
case
|
|
5285
|
-
_ =
|
|
5284
|
+
case E.TEXT_ENTITY:
|
|
5285
|
+
_ = E.TEXT, W = "textNode";
|
|
5286
5286
|
break;
|
|
5287
|
-
case
|
|
5288
|
-
_ =
|
|
5287
|
+
case E.ATTRIB_VALUE_ENTITY_Q:
|
|
5288
|
+
_ = E.ATTRIB_VALUE_QUOTED, W = "attribValue";
|
|
5289
5289
|
break;
|
|
5290
|
-
case
|
|
5291
|
-
_ =
|
|
5290
|
+
case E.ATTRIB_VALUE_ENTITY_U:
|
|
5291
|
+
_ = E.ATTRIB_VALUE_UNQUOTED, W = "attribValue";
|
|
5292
5292
|
break;
|
|
5293
5293
|
}
|
|
5294
|
-
if (
|
|
5294
|
+
if (D === ";") {
|
|
5295
5295
|
var re = j(m);
|
|
5296
5296
|
m.opt.unparsedEntities && !Object.values(e.XML_ENTITIES).includes(re) ? (m.entity = "", m.state = _, m.write(re)) : (m[W] += re, m.entity = "", m.state = _);
|
|
5297
|
-
} else q(m.entity.length ? I : k,
|
|
5297
|
+
} else q(m.entity.length ? I : k, D) ? m.entity += D : (Y(m, "Invalid character in entity name"), m[W] += "&" + m.entity + D, m.entity = "", m.state = _);
|
|
5298
5298
|
continue;
|
|
5299
5299
|
default:
|
|
5300
5300
|
throw new Error(m, "Unknown state: " + m.state);
|
|
@@ -5304,7 +5304,7 @@ Actual: ` + p.attribValue
|
|
|
5304
5304
|
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */
|
|
5305
5305
|
String.fromCodePoint || function() {
|
|
5306
5306
|
var p = String.fromCharCode, m = Math.floor, R = function() {
|
|
5307
|
-
var
|
|
5307
|
+
var D = 16384, b = [], x, _, W = -1, re = arguments.length;
|
|
5308
5308
|
if (!re)
|
|
5309
5309
|
return "";
|
|
5310
5310
|
for (var X = ""; ++W < re; ) {
|
|
@@ -5314,7 +5314,7 @@ Actual: ` + p.attribValue
|
|
|
5314
5314
|
ne > 1114111 || // not a valid Unicode code point
|
|
5315
5315
|
m(ne) !== ne)
|
|
5316
5316
|
throw RangeError("Invalid code point: " + ne);
|
|
5317
|
-
ne <= 65535 ? b.push(ne) : (ne -= 65536, x = (ne >> 10) + 55296, _ = ne % 1024 + 56320, b.push(x, _)), (W + 1 === re || b.length >
|
|
5317
|
+
ne <= 65535 ? b.push(ne) : (ne -= 65536, x = (ne >> 10) + 55296, _ = ne % 1024 + 56320, b.push(x, _)), (W + 1 === re || b.length > D) && (X += p.apply(null, b), b.length = 0);
|
|
5318
5318
|
}
|
|
5319
5319
|
return X;
|
|
5320
5320
|
};
|
|
@@ -5727,7 +5727,7 @@ cr.exports;
|
|
|
5727
5727
|
if (J[ie] == te)
|
|
5728
5728
|
return !0;
|
|
5729
5729
|
return !1;
|
|
5730
|
-
},
|
|
5730
|
+
}, E = function(J, te) {
|
|
5731
5731
|
if (!J)
|
|
5732
5732
|
return te;
|
|
5733
5733
|
var ie = {}, L;
|
|
@@ -5744,7 +5744,7 @@ cr.exports;
|
|
|
5744
5744
|
}, Q = function(J) {
|
|
5745
5745
|
throw Error("Parse error: " + J);
|
|
5746
5746
|
}, ce = function(J, te) {
|
|
5747
|
-
te =
|
|
5747
|
+
te = E(te, ce.options);
|
|
5748
5748
|
var ie = te.strict;
|
|
5749
5749
|
ie && T.test(J) && Q("forbidden code point");
|
|
5750
5750
|
var L = te.encodeEverything, j = te.useNamedReferences, V = te.allowUnsafeSymbols, $ = te.decimal ? ee : oe, P = function(p) {
|
|
@@ -5759,8 +5759,8 @@ cr.exports;
|
|
|
5759
5759
|
})), J = J.replace(/>\u20D2/g, ">⃒").replace(/<\u20D2/g, "<⃒"), J = J.replace(f, function(p) {
|
|
5760
5760
|
return "&" + c[p] + ";";
|
|
5761
5761
|
})) : V || (J = J.replace(h, P)), J.replace(o, function(p) {
|
|
5762
|
-
var m = p.charCodeAt(0), R = p.charCodeAt(1),
|
|
5763
|
-
return $(
|
|
5762
|
+
var m = p.charCodeAt(0), R = p.charCodeAt(1), D = (m - 55296) * 1024 + R - 56320 + 65536;
|
|
5763
|
+
return $(D);
|
|
5764
5764
|
}).replace(u, P);
|
|
5765
5765
|
};
|
|
5766
5766
|
ce.options = {
|
|
@@ -5771,9 +5771,9 @@ cr.exports;
|
|
|
5771
5771
|
decimal: !1
|
|
5772
5772
|
};
|
|
5773
5773
|
var ae = function(J, te) {
|
|
5774
|
-
te =
|
|
5774
|
+
te = E(te, ae.options);
|
|
5775
5775
|
var ie = te.strict;
|
|
5776
|
-
return ie && S.test(J) && Q("malformed character reference"), J.replace(A, function(L, j, V, $, P, p, m, R,
|
|
5776
|
+
return ie && S.test(J) && Q("malformed character reference"), J.replace(A, function(L, j, V, $, P, p, m, R, D) {
|
|
5777
5777
|
var b, x, _, W, re, X;
|
|
5778
5778
|
return j ? (re = j, B[re]) : V ? (re = V, X = $, X && te.isAttributeValue ? (ie && X == "=" && Q("`&` did not start a character reference"), L) : (ie && Q(
|
|
5779
5779
|
"named character reference was not terminated by a semicolon"
|
|
@@ -13913,7 +13913,7 @@ function So(r) {
|
|
|
13913
13913
|
w.elements || (w.elements = []);
|
|
13914
13914
|
const k = w.elements.findIndex((N) => N.name === "w:pPr");
|
|
13915
13915
|
if (!w.elements.filter((N) => N.name !== "w:pPr").length) {
|
|
13916
|
-
const N = w.elements[k]?.elements.find((
|
|
13916
|
+
const N = w.elements[k]?.elements.find((E) => E.name === "w:spacing"), H = {
|
|
13917
13917
|
name: "w:p",
|
|
13918
13918
|
type: "element",
|
|
13919
13919
|
elements: N ? [{
|
|
@@ -14749,7 +14749,7 @@ function Wd(r, e, t, n, i = null, s, o, a) {
|
|
|
14749
14749
|
!A && i && (A = i);
|
|
14750
14750
|
const w = ko(r), { attributes: k } = w || {}, C = {
|
|
14751
14751
|
color: c?.elements?.find((ae) => ae.name === "w:shd")?.attributes["w:fill"]
|
|
14752
|
-
}, N = c?.elements?.find((ae) => ae.name === "w:gridSpan")?.attributes["w:val"], q = c?.elements?.find((ae) => ae.name === "w:tcMar"),
|
|
14752
|
+
}, N = c?.elements?.find((ae) => ae.name === "w:gridSpan")?.attributes["w:val"], q = c?.elements?.find((ae) => ae.name === "w:tcMar"), E = c?.elements?.find((ae) => ae.name === "w:vAlign")?.attributes["w:val"] || "top", K = {}, oe = cu(s, u) || {};
|
|
14753
14753
|
K.cellMargins = $d(q, oe);
|
|
14754
14754
|
const { fontSize: ee, fonts: Q = {} } = oe, ce = Q.ascii;
|
|
14755
14755
|
if (A) {
|
|
@@ -14764,7 +14764,7 @@ function Wd(r, e, t, n, i = null, s, o, a) {
|
|
|
14764
14764
|
de.length && (K.colwidth = [...de]);
|
|
14765
14765
|
}
|
|
14766
14766
|
}
|
|
14767
|
-
if (B && (K.widthType = B), N && (K.colspan = parseInt(N, 10)), C && (K.background = C), K.verticalAlign =
|
|
14767
|
+
if (B && (K.widthType = B), N && (K.colspan = parseInt(N, 10)), C && (K.background = C), K.verticalAlign = E, ee && (K.fontSize = ee), ce && (K.fontFamily = ce.ascii), n && (K.borders = { ...n }), g && (K.borders = Object.assign(K.borders || {}, g)), k && k["w:val"] === "restart") {
|
|
14768
14768
|
const ae = t.elements.filter((ie) => ie.name === "w:tr"), se = ae.findIndex((ie) => ie === e), Y = ae.slice(se + 1);
|
|
14769
14769
|
let J = e.elements.filter((ie) => ie.name === "w:tc").findIndex((ie) => ie === r), te = 1;
|
|
14770
14770
|
for (let ie of Y) {
|
|
@@ -14920,7 +14920,7 @@ function No(r, e, t) {
|
|
|
14920
14920
|
}, { attributes: C } = g, F = C["r:embed"];
|
|
14921
14921
|
let q = n[`word/_rels/${e || "document.xml"}.rels`];
|
|
14922
14922
|
q || (q = n["word/_rels/document.xml.rels"]);
|
|
14923
|
-
const H = q.elements.find((Q) => Q.name === "Relationships"), { elements:
|
|
14923
|
+
const H = q.elements.find((Q) => Q.name === "Relationships"), { elements: E } = H, K = E.find((Q) => Q.attributes.Id === F), { attributes: oe } = K;
|
|
14924
14924
|
return {
|
|
14925
14925
|
type: "image",
|
|
14926
14926
|
attrs: {
|
|
@@ -15090,7 +15090,7 @@ const om = (r) => {
|
|
|
15090
15090
|
w.marks || (w.marks = []), w.marks.push(A);
|
|
15091
15091
|
const k = w.elements.find((I) => I.name === "w:rPr");
|
|
15092
15092
|
if (k && k.elements.find((C) => C.name === "w:rStyle")) {
|
|
15093
|
-
const C = t["word/styles.xml"], { elements: F } = C.elements[0], H = F.filter((
|
|
15093
|
+
const C = t["word/styles.xml"], { elements: F } = C.elements[0], H = F.filter((E) => E.name === "w:style").find((E) => E.attributes["w:styleId"] === "Hyperlink")?.elements?.find((E) => E.name === "w:rPr");
|
|
15094
15094
|
H && w.elements.unshift(H);
|
|
15095
15095
|
}
|
|
15096
15096
|
}
|
|
@@ -15224,7 +15224,7 @@ function gu({
|
|
|
15224
15224
|
P && h[h.length - 1]?.content.push(P), N.seen = !0;
|
|
15225
15225
|
continue;
|
|
15226
15226
|
}
|
|
15227
|
-
const { attributes: q, elements: H, marks:
|
|
15227
|
+
const { attributes: q, elements: H, marks: E = [] } = Lt(N), K = E.find((P) => P.type === "textStyle"), {
|
|
15228
15228
|
listType: oe,
|
|
15229
15229
|
listOrderingType: ee,
|
|
15230
15230
|
ilvl: Q,
|
|
@@ -15270,10 +15270,10 @@ function gu({
|
|
|
15270
15270
|
}), m = W;
|
|
15271
15271
|
}
|
|
15272
15272
|
}
|
|
15273
|
-
const
|
|
15274
|
-
if (
|
|
15273
|
+
const D = N.elements.find((_) => _.name === "w:pPr")?.elements.find((_) => _.name === "w:ind");
|
|
15274
|
+
if (D) {
|
|
15275
15275
|
const _ = {};
|
|
15276
|
-
|
|
15276
|
+
D.attributes || (D.attributes = {}), D.attributes["w:left"] !== void 0 && (_.left = xe(D.attributes["w:left"])), D.attributes["w:right"] !== void 0 && (_.right = xe(D.attributes["w:right"])), D.attributes["w:firstLine"] !== void 0 && (_.firstLine = xe(D.attributes["w:firstLine"])), D.attributes["w:hanging"] !== void 0 && (_.hanging = xe(D.attributes["w:hanging"])), $.indent = _;
|
|
15277
15277
|
}
|
|
15278
15278
|
ae && ($.listParagraphProperties = ae), ce && ($.listRunProperties = ce), $.textStyle = K, $.order = se, $.lvlText = Y, $.lvlJc = K?.attrs.textAlign, $.listLevel = m, $.listNumberingType = ee, $.attributes = {
|
|
15279
15279
|
parentAttributes: N?.attributes || null
|
|
@@ -15431,9 +15431,9 @@ const Am = [
|
|
|
15431
15431
|
};
|
|
15432
15432
|
function vm(r, e, t) {
|
|
15433
15433
|
if (!r) return;
|
|
15434
|
-
const { attributes: n = {} } = r, { paragraphProperties: i = {} } = n, { elements: s = [] } = i, u = r.elements.find((
|
|
15434
|
+
const { attributes: n = {} } = r, { paragraphProperties: i = {} } = n, { elements: s = [] } = i, u = r.elements.find((E) => E.name === "w:pPr")?.elements?.find((E) => E.name === "w:pStyle")?.attributes["w:val"], f = kr({ node: r, styleId: u, docx: t });
|
|
15435
15435
|
if (!f) return {};
|
|
15436
|
-
const h = f?.elements.find((
|
|
15436
|
+
const h = f?.elements.find((E) => E.name === "w:numId")?.attributes["w:val"], S = f?.elements.find((E) => E.name === "w:ilvl")?.attributes["w:val"] || wu(u, t), A = s.find((E) => E.name === "w:pStyle")?.attributes["w:val"], {
|
|
15437
15437
|
start: B,
|
|
15438
15438
|
numFmt: w,
|
|
15439
15439
|
lvlText: k,
|
|
@@ -15600,8 +15600,8 @@ function Nm(r, e) {
|
|
|
15600
15600
|
let B, w, k, I;
|
|
15601
15601
|
g && (B = h?.attributes["w:val"], w = xe(g?.attributes["w:left"]), k = xe(g?.attributes["w:right"]), I = xe(g?.attributes["w:firstLine"]));
|
|
15602
15602
|
const C = f?.elements?.find((se) => se.name === "w:keepNext"), F = f?.elements?.find((se) => se.name === "w:keepLines"), N = f?.elements?.find((se) => se.name === "w:outlineLvl"), q = N?.attributes["w:val"], H = f?.elements?.find((se) => se.name === "w:pageBreakBefore");
|
|
15603
|
-
let
|
|
15604
|
-
H && (H.attributes?.["w:val"] ?
|
|
15603
|
+
let E = 0;
|
|
15604
|
+
H && (H.attributes?.["w:val"] ? E = Number(H?.attributes?.["w:val"]) : E = 1);
|
|
15605
15605
|
const K = f?.elements?.find((se) => se.name === "w:pageBreakAfter");
|
|
15606
15606
|
let oe;
|
|
15607
15607
|
K && (K.attributes?.["w:val"] ? oe = Number(K?.attributes?.["w:val"]) : oe = 1);
|
|
@@ -15611,7 +15611,7 @@ function Nm(r, e) {
|
|
|
15611
15611
|
keepNext: !!C,
|
|
15612
15612
|
keepLines: !!F,
|
|
15613
15613
|
outlineLevel: N ? parseInt(q) : null,
|
|
15614
|
-
pageBreakBefore: !!
|
|
15614
|
+
pageBreakBefore: !!E,
|
|
15615
15615
|
pageBreakAfter: !!oe
|
|
15616
15616
|
}, Q = o.elements.find((se) => se.name === "w:rPr"), ce = Bt(Q, [], e) || {}, ae = {
|
|
15617
15617
|
spacing: { lineSpaceAfter: T, lineSpaceBefore: S, line: A },
|
|
@@ -15874,7 +15874,7 @@ function Xm({ docx: r }) {
|
|
|
15874
15874
|
nodes: a.elements,
|
|
15875
15875
|
nodeListHandler: e,
|
|
15876
15876
|
docx: r
|
|
15877
|
-
}), { attrs:
|
|
15877
|
+
}), { attrs: E } = H[0], K = E["w14:paraId"];
|
|
15878
15878
|
return {
|
|
15879
15879
|
commentId: T || ba(),
|
|
15880
15880
|
importedId: f,
|
|
@@ -16228,7 +16228,7 @@ const dt = class dt {
|
|
|
16228
16228
|
return;
|
|
16229
16229
|
}
|
|
16230
16230
|
}
|
|
16231
|
-
static updateDocumentVersion(e = this.convertedXml, t = "0.9.
|
|
16231
|
+
static updateDocumentVersion(e = this.convertedXml, t = "0.9.40") {
|
|
16232
16232
|
const n = "docProps/custom.xml";
|
|
16233
16233
|
e[n] || (e[n] = Tu());
|
|
16234
16234
|
const i = e["docProps/custom.xml"];
|
|
@@ -16453,7 +16453,7 @@ function ap(r) {
|
|
|
16453
16453
|
function Tu() {
|
|
16454
16454
|
return _f;
|
|
16455
16455
|
}
|
|
16456
|
-
function Fu(r = 2, e = "0.9.
|
|
16456
|
+
function Fu(r = 2, e = "0.9.40") {
|
|
16457
16457
|
return {
|
|
16458
16458
|
type: "element",
|
|
16459
16459
|
name: "property",
|