@sailfish-rrweb/replay 0.5.7 → 0.5.8
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/replay.cjs +26 -26
- package/dist/replay.cjs.map +1 -1
- package/dist/replay.js +634 -634
- package/dist/replay.js.br +0 -0
- package/dist/replay.js.gz +0 -0
- package/dist/replay.js.map +1 -1
- package/dist/replay.umd.cjs +24 -24
- package/dist/replay.umd.cjs.map +1 -1
- package/dist/replay.umd.min.cjs +1 -1
- package/dist/replay.umd.min.cjs.map +3 -3
- package/dist/replay.umd.umd.cjs +1 -1
- package/dist/replay.umd.umd.cjs.map +3 -3
- package/dist/replay.umd.umd.min.cjs +1 -1
- package/dist/replay.umd.umd.min.cjs.map +3 -3
- package/package.json +3 -3
package/dist/replay.js
CHANGED
|
@@ -101,28 +101,28 @@ let Zs = Xn, Xs = j, Bt = class Qr extends Error {
|
|
|
101
101
|
if (!this.source) return "";
|
|
102
102
|
let s = this.source;
|
|
103
103
|
e == null && (e = Zs.isColorSupported);
|
|
104
|
-
let r = (
|
|
104
|
+
let r = (h) => h, i = (h) => h, o = (h) => h;
|
|
105
105
|
if (e) {
|
|
106
|
-
let { bold:
|
|
107
|
-
i = (m) =>
|
|
106
|
+
let { bold: h, gray: c, red: p } = Zs.createColors(!0);
|
|
107
|
+
i = (m) => h(p(m)), r = (m) => c(m), Xs && (o = (m) => Xs(m));
|
|
108
108
|
}
|
|
109
|
-
let a = s.split(/\r?\n/), n = Math.max(this.line - 3, 0),
|
|
110
|
-
return a.slice(n,
|
|
111
|
-
let p = n + 1 +
|
|
109
|
+
let a = s.split(/\r?\n/), n = Math.max(this.line - 3, 0), u = Math.min(this.line + 2, a.length), l = String(u).length;
|
|
110
|
+
return a.slice(n, u).map((h, c) => {
|
|
111
|
+
let p = n + 1 + c, m = " " + (" " + p).slice(-l) + " | ";
|
|
112
112
|
if (p === this.line) {
|
|
113
|
-
if (
|
|
113
|
+
if (h.length > 160) {
|
|
114
114
|
let d = 20, S = Math.max(0, this.column - d), f = Math.max(
|
|
115
115
|
this.column + d,
|
|
116
116
|
this.endColumn + d
|
|
117
|
-
), w =
|
|
117
|
+
), w = h.slice(S, f), g = r(m.replace(/\d/g, " ")) + h.slice(0, Math.min(this.column - 1, d - 1)).replace(/[^\t]/g, " ");
|
|
118
118
|
return i(">") + r(m) + o(w) + `
|
|
119
119
|
` + g + i("^");
|
|
120
120
|
}
|
|
121
|
-
let v = r(m.replace(/\d/g, " ")) +
|
|
122
|
-
return i(">") + r(m) + o(
|
|
121
|
+
let v = r(m.replace(/\d/g, " ")) + h.slice(0, this.column - 1).replace(/[^\t]/g, " ");
|
|
122
|
+
return i(">") + r(m) + o(h) + `
|
|
123
123
|
` + v + i("^");
|
|
124
124
|
}
|
|
125
|
-
return " " + r(m) + o(
|
|
125
|
+
return " " + r(m) + o(h);
|
|
126
126
|
}).join(`
|
|
127
127
|
`);
|
|
128
128
|
}
|
|
@@ -830,19 +830,19 @@ let li = q, st = class extends li {
|
|
|
830
830
|
var Ss = st;
|
|
831
831
|
st.default = st;
|
|
832
832
|
li.registerAtRule(st);
|
|
833
|
-
let no = q,
|
|
833
|
+
let no = q, ui, hi, xe = class extends no {
|
|
834
834
|
constructor(t) {
|
|
835
835
|
super({ type: "document", ...t }), this.nodes || (this.nodes = []);
|
|
836
836
|
}
|
|
837
837
|
toResult(t = {}) {
|
|
838
|
-
return new
|
|
838
|
+
return new ui(new hi(), this, t).stringify();
|
|
839
839
|
}
|
|
840
840
|
};
|
|
841
841
|
xe.registerLazyResult = (t) => {
|
|
842
|
-
|
|
842
|
+
ui = t;
|
|
843
843
|
};
|
|
844
844
|
xe.registerProcessor = (t) => {
|
|
845
|
-
|
|
845
|
+
hi = t;
|
|
846
846
|
};
|
|
847
847
|
var xs = xe;
|
|
848
848
|
xe.default = xe;
|
|
@@ -853,7 +853,7 @@ let oo = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", ao
|
|
|
853
853
|
return e;
|
|
854
854
|
};
|
|
855
855
|
var lo = { nanoid: ao };
|
|
856
|
-
let { existsSync:
|
|
856
|
+
let { existsSync: uo, readFileSync: ho } = j, { dirname: Tt, join: co } = j, { SourceMapConsumer: Js, SourceMapGenerator: $s } = j;
|
|
857
857
|
function po(t) {
|
|
858
858
|
return Buffer ? Buffer.from(t, "base64").toString() : window.atob(t);
|
|
859
859
|
}
|
|
@@ -890,8 +890,8 @@ let Gt = class {
|
|
|
890
890
|
s > -1 && r > -1 && (this.annotation = this.getAnnotationURL(t.substring(s, r)));
|
|
891
891
|
}
|
|
892
892
|
loadFile(t) {
|
|
893
|
-
if (this.root = Tt(t),
|
|
894
|
-
return this.mapFile = t,
|
|
893
|
+
if (this.root = Tt(t), uo(t))
|
|
894
|
+
return this.mapFile = t, ho(t, "utf-8").toString().trim();
|
|
895
895
|
}
|
|
896
896
|
loadMap(t, e) {
|
|
897
897
|
if (e === !1) return !1;
|
|
@@ -924,7 +924,7 @@ let Gt = class {
|
|
|
924
924
|
return this.decodeInline(this.annotation);
|
|
925
925
|
if (this.annotation) {
|
|
926
926
|
let s = this.annotation;
|
|
927
|
-
return t && (s =
|
|
927
|
+
return t && (s = co(Tt(t), s)), this.loadFile(s);
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
930
|
}
|
|
@@ -935,9 +935,9 @@ let Gt = class {
|
|
|
935
935
|
return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
|
|
936
936
|
}
|
|
937
937
|
};
|
|
938
|
-
var
|
|
938
|
+
var ci = Gt;
|
|
939
939
|
Gt.default = Gt;
|
|
940
|
-
let { nanoid: fo } = lo, { isAbsolute: Zt, resolve: Xt } = j, { SourceMapConsumer: mo, SourceMapGenerator: go } = j, { fileURLToPath: Qs, pathToFileURL: Pe } = j, Ks = ws, yo =
|
|
940
|
+
let { nanoid: fo } = lo, { isAbsolute: Zt, resolve: Xt } = j, { SourceMapConsumer: mo, SourceMapGenerator: go } = j, { fileURLToPath: Qs, pathToFileURL: Pe } = j, Ks = ws, yo = ci, kt = j, Dt = Symbol("lineToIndexCache"), wo = !!(mo && go), qs = !!(Xt && Zt);
|
|
941
941
|
function er(t) {
|
|
942
942
|
if (t[Dt]) return t[Dt];
|
|
943
943
|
let e = t.css.split(`
|
|
@@ -964,44 +964,44 @@ let rt = class {
|
|
|
964
964
|
this.file || (this.id = "<input css " + fo(6) + ">"), this.map && (this.map.file = this.from);
|
|
965
965
|
}
|
|
966
966
|
error(t, e, s, r = {}) {
|
|
967
|
-
let i, o, a, n,
|
|
967
|
+
let i, o, a, n, u;
|
|
968
968
|
if (e && typeof e == "object") {
|
|
969
|
-
let
|
|
970
|
-
if (typeof
|
|
971
|
-
n =
|
|
969
|
+
let h = e, c = s;
|
|
970
|
+
if (typeof h.offset == "number") {
|
|
971
|
+
n = h.offset;
|
|
972
972
|
let p = this.fromOffset(n);
|
|
973
973
|
e = p.line, s = p.col;
|
|
974
974
|
} else
|
|
975
|
-
e =
|
|
976
|
-
if (typeof
|
|
977
|
-
a =
|
|
975
|
+
e = h.line, s = h.column, n = this.fromLineAndColumn(e, s);
|
|
976
|
+
if (typeof c.offset == "number") {
|
|
977
|
+
a = c.offset;
|
|
978
978
|
let p = this.fromOffset(a);
|
|
979
979
|
o = p.line, i = p.col;
|
|
980
980
|
} else
|
|
981
|
-
o =
|
|
981
|
+
o = c.line, i = c.column, a = this.fromLineAndColumn(c.line, c.column);
|
|
982
982
|
} else if (s)
|
|
983
983
|
n = this.fromLineAndColumn(e, s);
|
|
984
984
|
else {
|
|
985
985
|
n = e;
|
|
986
|
-
let
|
|
987
|
-
e =
|
|
986
|
+
let h = this.fromOffset(n);
|
|
987
|
+
e = h.line, s = h.col;
|
|
988
988
|
}
|
|
989
989
|
let l = this.origin(e, s, o, i);
|
|
990
|
-
return l ?
|
|
990
|
+
return l ? u = new Ks(
|
|
991
991
|
t,
|
|
992
992
|
l.endLine === void 0 ? l.line : { column: l.column, line: l.line },
|
|
993
993
|
l.endLine === void 0 ? l.column : { column: l.endColumn, line: l.endLine },
|
|
994
994
|
l.source,
|
|
995
995
|
l.file,
|
|
996
996
|
r.plugin
|
|
997
|
-
) :
|
|
997
|
+
) : u = new Ks(
|
|
998
998
|
t,
|
|
999
999
|
o === void 0 ? e : { column: s, line: e },
|
|
1000
1000
|
o === void 0 ? s : { column: i, line: o },
|
|
1001
1001
|
this.css,
|
|
1002
1002
|
this.file,
|
|
1003
1003
|
r.plugin
|
|
1004
|
-
),
|
|
1004
|
+
), u.input = { column: s, endColumn: i, endLine: o, endOffset: a, line: e, offset: n, source: this.css }, this.file && (Pe && (u.input.url = Pe(this.file).toString()), u.input.file = this.file), u;
|
|
1005
1005
|
}
|
|
1006
1006
|
fromLineAndColumn(t, e) {
|
|
1007
1007
|
return er(this)[t - 1] + e - 1;
|
|
@@ -1041,7 +1041,7 @@ let rt = class {
|
|
|
1041
1041
|
o.source,
|
|
1042
1042
|
this.map.consumer().sourceRoot || Pe(this.map.mapFile)
|
|
1043
1043
|
);
|
|
1044
|
-
let
|
|
1044
|
+
let u = {
|
|
1045
1045
|
column: o.column,
|
|
1046
1046
|
endColumn: a && a.column,
|
|
1047
1047
|
endLine: a && a.line,
|
|
@@ -1050,11 +1050,11 @@ let rt = class {
|
|
|
1050
1050
|
};
|
|
1051
1051
|
if (n.protocol === "file:")
|
|
1052
1052
|
if (Qs)
|
|
1053
|
-
|
|
1053
|
+
u.file = Qs(n);
|
|
1054
1054
|
else
|
|
1055
1055
|
throw new Error("file: protocol is not available in this PostCSS build");
|
|
1056
1056
|
let l = i.sourceContentFor(o.source);
|
|
1057
|
-
return l && (
|
|
1057
|
+
return l && (u.source = l), u;
|
|
1058
1058
|
}
|
|
1059
1059
|
toJSON() {
|
|
1060
1060
|
let t = {};
|
|
@@ -1108,9 +1108,9 @@ let Ce = {
|
|
|
1108
1108
|
return Ce.split(t, e);
|
|
1109
1109
|
},
|
|
1110
1110
|
split(t, e, s) {
|
|
1111
|
-
let r = [], i = "", o = !1, a = 0, n = !1,
|
|
1112
|
-
for (let
|
|
1113
|
-
l ? l = !1 :
|
|
1111
|
+
let r = [], i = "", o = !1, a = 0, n = !1, u = "", l = !1;
|
|
1112
|
+
for (let h of t)
|
|
1113
|
+
l ? l = !1 : h === "\\" ? l = !0 : n ? h === u && (n = !1) : h === '"' || h === "'" ? (n = !0, u = h) : h === "(" ? a += 1 : h === ")" ? a > 0 && (a -= 1) : a === 0 && e.includes(h) && (o = !0), o ? (i !== "" && r.push(i.trim()), i = "", o = !1) : i += h;
|
|
1114
1114
|
return (s || i !== "") && r.push(i.trim()), r;
|
|
1115
1115
|
}
|
|
1116
1116
|
};
|
|
@@ -1131,7 +1131,7 @@ let gi = q, bo = mi, it = class extends gi {
|
|
|
1131
1131
|
var Cs = it;
|
|
1132
1132
|
it.default = it;
|
|
1133
1133
|
gi.registerRule(it);
|
|
1134
|
-
let vo = Ss, So = gt, xo = yt, Co = wt, Eo =
|
|
1134
|
+
let vo = Ss, So = gt, xo = yt, Co = wt, Eo = ci, Mo = Oe, No = Cs;
|
|
1135
1135
|
function Ee(t, e) {
|
|
1136
1136
|
if (Array.isArray(t)) return t.map((i) => Ee(i));
|
|
1137
1137
|
let { inputs: s, ...r } = t;
|
|
@@ -1229,9 +1229,9 @@ let { dirname: Ke, relative: yi, resolve: wi, sep: bi } = j, { SourceMapConsumer
|
|
|
1229
1229
|
original: { column: 0, line: 0 },
|
|
1230
1230
|
source: ""
|
|
1231
1231
|
}, i, o;
|
|
1232
|
-
this.stringify(this.root, (a, n,
|
|
1233
|
-
if (this.css += a, n &&
|
|
1234
|
-
`), e = a.length - i) : e += a.length, n &&
|
|
1232
|
+
this.stringify(this.root, (a, n, u) => {
|
|
1233
|
+
if (this.css += a, n && u !== "end" && (r.generated.line = t, r.generated.column = e - 1, n.source && n.source.start ? (r.source = this.sourcePath(n), r.original.line = n.source.start.line, r.original.column = n.source.start.column - 1, this.map.addMapping(r)) : (r.source = s, r.original.line = 1, r.original.column = 0, this.map.addMapping(r))), o = a.match(/\n/g), o ? (t += o.length, i = a.lastIndexOf(`
|
|
1234
|
+
`), e = a.length - i) : e += a.length, n && u !== "start") {
|
|
1235
1235
|
let l = n.parent || { raws: {} };
|
|
1236
1236
|
(!(n.type === "decl" || n.type === "atrule" && !n.nodes) || n !== l.last || l.raws.semicolon) && (n.source && n.source.end ? (r.source = this.sourcePath(n), r.original.line = n.source.end.line, r.original.column = n.source.end.column - 1, r.generated.line = t, r.generated.column = e - 2, this.map.addMapping(r)) : (r.source = s, r.original.line = 1, r.original.column = 0, r.generated.line = t, r.generated.column = e - 1, this.map.addMapping(r)));
|
|
1237
1237
|
}
|
|
@@ -1325,7 +1325,7 @@ let { dirname: Ke, relative: yi, resolve: wi, sep: bi } = j, { SourceMapConsumer
|
|
|
1325
1325
|
var Si = Oo;
|
|
1326
1326
|
const Rt = 39, sr = 34, Le = 92, rr = 47, Fe = 10, de = 32, _e = 12, Be = 9, Ue = 13, Ao = 91, Io = 93, Po = 40, Lo = 41, Fo = 123, _o = 125, Bo = 59, Uo = 42, Wo = 58, jo = 64, We = /[\t\n\f\r "#'()/;[\\\]{}]/g, je = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, Vo = /.[\r\n"'(/\\]/, ir = /[\da-f]/i;
|
|
1327
1327
|
var zo = function(t, e = {}) {
|
|
1328
|
-
let s = t.css.valueOf(), r = e.ignoreErrors, i, o, a, n,
|
|
1328
|
+
let s = t.css.valueOf(), r = e.ignoreErrors, i, o, a, n, u, l, h, c, p, m, v = s.length, d = 0, S = [], f = [];
|
|
1329
1329
|
function w() {
|
|
1330
1330
|
return d;
|
|
1331
1331
|
}
|
|
@@ -1367,15 +1367,15 @@ var zo = function(t, e = {}) {
|
|
|
1367
1367
|
if (m = S.length ? S.pop()[1] : "", p = s.charCodeAt(d + 1), m === "url" && p !== Rt && p !== sr && p !== de && p !== Fe && p !== Be && p !== _e && p !== Ue) {
|
|
1368
1368
|
n = d;
|
|
1369
1369
|
do {
|
|
1370
|
-
if (
|
|
1370
|
+
if (h = !1, n = s.indexOf(")", n + 1), n === -1)
|
|
1371
1371
|
if (r || W) {
|
|
1372
1372
|
n = d;
|
|
1373
1373
|
break;
|
|
1374
1374
|
} else
|
|
1375
1375
|
g("bracket");
|
|
1376
|
-
for (
|
|
1377
|
-
|
|
1378
|
-
} while (
|
|
1376
|
+
for (c = n; s.charCodeAt(c - 1) === Le; )
|
|
1377
|
+
c -= 1, h = !h;
|
|
1378
|
+
} while (h);
|
|
1379
1379
|
l = ["brackets", s.slice(d, n + 1), d, n], d = n;
|
|
1380
1380
|
} else
|
|
1381
1381
|
n = s.indexOf(")", d + 1), o = s.slice(d, n + 1), n === -1 || Vo.test(o) ? l = ["(", "(", d] : (l = ["brackets", o, d, n], d = n);
|
|
@@ -1383,17 +1383,17 @@ var zo = function(t, e = {}) {
|
|
|
1383
1383
|
}
|
|
1384
1384
|
case Rt:
|
|
1385
1385
|
case sr: {
|
|
1386
|
-
|
|
1386
|
+
u = i === Rt ? "'" : '"', n = d;
|
|
1387
1387
|
do {
|
|
1388
|
-
if (
|
|
1388
|
+
if (h = !1, n = s.indexOf(u, n + 1), n === -1)
|
|
1389
1389
|
if (r || W) {
|
|
1390
1390
|
n = d + 1;
|
|
1391
1391
|
break;
|
|
1392
1392
|
} else
|
|
1393
1393
|
g("string");
|
|
1394
|
-
for (
|
|
1395
|
-
|
|
1396
|
-
} while (
|
|
1394
|
+
for (c = n; s.charCodeAt(c - 1) === Le; )
|
|
1395
|
+
c -= 1, h = !h;
|
|
1396
|
+
} while (h);
|
|
1397
1397
|
l = ["string", s.slice(d, n + 1), d, n], d = n;
|
|
1398
1398
|
break;
|
|
1399
1399
|
}
|
|
@@ -1447,9 +1447,9 @@ let $o = class {
|
|
|
1447
1447
|
atrule(t) {
|
|
1448
1448
|
let e = new Yo();
|
|
1449
1449
|
e.name = t[1].slice(1), e.name === "" && this.unnamedAtrule(e, t), this.init(e, t[2]);
|
|
1450
|
-
let s, r, i, o = !1, a = !1, n = [],
|
|
1450
|
+
let s, r, i, o = !1, a = !1, n = [], u = [];
|
|
1451
1451
|
for (; !this.tokenizer.endOfFile(); ) {
|
|
1452
|
-
if (t = this.tokenizer.nextToken(), s = t[0], s === "(" || s === "[" ?
|
|
1452
|
+
if (t = this.tokenizer.nextToken(), s = t[0], s === "(" || s === "[" ? u.push(s === "(" ? ")" : "]") : s === "{" && u.length > 0 ? u.push("}") : s === u[u.length - 1] && u.pop(), u.length === 0)
|
|
1453
1453
|
if (s === ";") {
|
|
1454
1454
|
e.source.end = this.getPosition(t[2]), e.source.end.offset++, this.semicolon = !0;
|
|
1455
1455
|
break;
|
|
@@ -1545,18 +1545,18 @@ let $o = class {
|
|
|
1545
1545
|
for (let n = t.length - 1; n >= 0; n--) {
|
|
1546
1546
|
if (i = t[n], i[1].toLowerCase() === "!important") {
|
|
1547
1547
|
s.important = !0;
|
|
1548
|
-
let
|
|
1549
|
-
|
|
1548
|
+
let u = this.stringFrom(t, n);
|
|
1549
|
+
u = this.spacesFromEnd(t) + u, u !== " !important" && (s.raws.important = u);
|
|
1550
1550
|
break;
|
|
1551
1551
|
} else if (i[1].toLowerCase() === "important") {
|
|
1552
|
-
let
|
|
1553
|
-
for (let
|
|
1554
|
-
let
|
|
1555
|
-
if (l.trim().startsWith("!") &&
|
|
1552
|
+
let u = t.slice(0), l = "";
|
|
1553
|
+
for (let h = n; h > 0; h--) {
|
|
1554
|
+
let c = u[h][0];
|
|
1555
|
+
if (l.trim().startsWith("!") && c !== "space")
|
|
1556
1556
|
break;
|
|
1557
|
-
l =
|
|
1557
|
+
l = u.pop()[1] + l;
|
|
1558
1558
|
}
|
|
1559
|
-
l.trim().startsWith("!") && (s.important = !0, s.raws.important = l, t =
|
|
1559
|
+
l.trim().startsWith("!") && (s.important = !0, s.raws.important = l, t = u);
|
|
1560
1560
|
}
|
|
1561
1561
|
if (i[0] !== "space" && i[0] !== "comment")
|
|
1562
1562
|
break;
|
|
@@ -1602,12 +1602,12 @@ let $o = class {
|
|
|
1602
1602
|
}, t.raws.before = this.spaces, this.spaces = "", t.type !== "comment" && (this.semicolon = !1);
|
|
1603
1603
|
}
|
|
1604
1604
|
other(t) {
|
|
1605
|
-
let e = !1, s = null, r = !1, i = null, o = [], a = t[1].startsWith("--"), n = [],
|
|
1606
|
-
for (;
|
|
1607
|
-
if (s =
|
|
1608
|
-
i || (i =
|
|
1605
|
+
let e = !1, s = null, r = !1, i = null, o = [], a = t[1].startsWith("--"), n = [], u = t;
|
|
1606
|
+
for (; u; ) {
|
|
1607
|
+
if (s = u[0], n.push(u), s === "(" || s === "[")
|
|
1608
|
+
i || (i = u), o.push(s === "(" ? ")" : "]");
|
|
1609
1609
|
else if (a && r && s === "{")
|
|
1610
|
-
i || (i =
|
|
1610
|
+
i || (i = u), o.push("}");
|
|
1611
1611
|
else if (o.length === 0)
|
|
1612
1612
|
if (s === ";")
|
|
1613
1613
|
if (r) {
|
|
@@ -1623,11 +1623,11 @@ let $o = class {
|
|
|
1623
1623
|
break;
|
|
1624
1624
|
} else s === ":" && (r = !0);
|
|
1625
1625
|
else s === o[o.length - 1] && (o.pop(), o.length === 0 && (i = null));
|
|
1626
|
-
|
|
1626
|
+
u = this.tokenizer.nextToken();
|
|
1627
1627
|
}
|
|
1628
1628
|
if (this.tokenizer.endOfFile() && (e = !0), o.length > 0 && this.unclosedBracket(i), e && r) {
|
|
1629
1629
|
if (!a)
|
|
1630
|
-
for (; n.length && (
|
|
1630
|
+
for (; n.length && (u = n[n.length - 1][0], !(u !== "space" && u !== "comment")); )
|
|
1631
1631
|
this.tokenizer.back(n.pop());
|
|
1632
1632
|
this.decl(n, a);
|
|
1633
1633
|
} else
|
|
@@ -1664,12 +1664,12 @@ let $o = class {
|
|
|
1664
1664
|
precheckMissedSemicolon() {
|
|
1665
1665
|
}
|
|
1666
1666
|
raw(t, e, s, r) {
|
|
1667
|
-
let i, o, a = s.length, n = "",
|
|
1668
|
-
for (let
|
|
1669
|
-
i = s[
|
|
1670
|
-
if (!
|
|
1671
|
-
let
|
|
1672
|
-
t.raws[e] = { raw:
|
|
1667
|
+
let i, o, a = s.length, n = "", u = !0, l, h;
|
|
1668
|
+
for (let c = 0; c < a; c += 1)
|
|
1669
|
+
i = s[c], o = i[0], o === "space" && c === a - 1 && !r ? u = !1 : o === "comment" ? (h = s[c - 1] ? s[c - 1][0] : "empty", l = s[c + 1] ? s[c + 1][0] : "empty", !or[h] && !or[l] ? n.slice(-1) === "," ? u = !1 : n += i[1] : u = !1) : n += i[1];
|
|
1670
|
+
if (!u) {
|
|
1671
|
+
let c = s.reduce((p, m) => p + m[1], "");
|
|
1672
|
+
t.raws[e] = { raw: c, value: n };
|
|
1673
1673
|
}
|
|
1674
1674
|
t[e] = n;
|
|
1675
1675
|
}
|
|
@@ -1796,15 +1796,15 @@ let ar = {};
|
|
|
1796
1796
|
var Ci = function(t) {
|
|
1797
1797
|
ar[t] || (ar[t] = !0, typeof console < "u" && console.warn && console.warn(t));
|
|
1798
1798
|
};
|
|
1799
|
-
let sa = q, ra = xs, ia = Si, na = Es, lr = Ms, oa = Oe, aa = ft, { isClean: z, my: la } = Re,
|
|
1800
|
-
const
|
|
1799
|
+
let sa = q, ra = xs, ia = Si, na = Es, lr = Ms, oa = Oe, aa = ft, { isClean: z, my: la } = Re, ua = Ci;
|
|
1800
|
+
const ha = {
|
|
1801
1801
|
atrule: "AtRule",
|
|
1802
1802
|
comment: "Comment",
|
|
1803
1803
|
decl: "Declaration",
|
|
1804
1804
|
document: "Document",
|
|
1805
1805
|
root: "Root",
|
|
1806
1806
|
rule: "Rule"
|
|
1807
|
-
},
|
|
1807
|
+
}, ca = {
|
|
1808
1808
|
AtRule: !0,
|
|
1809
1809
|
AtRuleExit: !0,
|
|
1810
1810
|
Comment: !0,
|
|
@@ -1830,7 +1830,7 @@ function fe(t) {
|
|
|
1830
1830
|
return typeof t == "object" && typeof t.then == "function";
|
|
1831
1831
|
}
|
|
1832
1832
|
function Ei(t) {
|
|
1833
|
-
let e = !1, s =
|
|
1833
|
+
let e = !1, s = ha[t.type];
|
|
1834
1834
|
return t.type === "decl" ? e = t.prop.toLowerCase() : t.type === "atrule" && (e = t.name.toLowerCase()), e && t.append ? [
|
|
1835
1835
|
s,
|
|
1836
1836
|
s + "-" + e,
|
|
@@ -1839,7 +1839,7 @@ function Ei(t) {
|
|
|
1839
1839
|
s + "Exit-" + e
|
|
1840
1840
|
] : e ? [s, s + "-" + e, s + "Exit", s + "Exit-" + e] : t.append ? [s, oe, s + "Exit"] : [s, s + "Exit"];
|
|
1841
1841
|
}
|
|
1842
|
-
function
|
|
1842
|
+
function ur(t) {
|
|
1843
1843
|
let e;
|
|
1844
1844
|
return t.type === "document" ? e = ["Document", oe, "DocumentExit"] : t.type === "root" ? e = ["Root", oe, "RootExit"] : e = Ei(t), {
|
|
1845
1845
|
eventIndex: 0,
|
|
@@ -1915,8 +1915,8 @@ let Qt = {}, ae = class Mi {
|
|
|
1915
1915
|
if (s && s.addToError(e), this.error = e, e.name === "CssSyntaxError" && !e.plugin)
|
|
1916
1916
|
e.plugin = r.postcssPlugin, e.setMessage();
|
|
1917
1917
|
else if (r.postcssVersion && process.env.NODE_ENV !== "production") {
|
|
1918
|
-
let i = r.postcssPlugin, o = r.postcssVersion, a = this.result.processor.version, n = o.split("."),
|
|
1919
|
-
(n[0] !==
|
|
1918
|
+
let i = r.postcssPlugin, o = r.postcssVersion, a = this.result.processor.version, n = o.split("."), u = a.split(".");
|
|
1919
|
+
(n[0] !== u[0] || parseInt(n[1]) > parseInt(u[1])) && console.error(
|
|
1920
1920
|
"Unknown error from PostCSS plugin. Your current PostCSS version is " + a + ", but " + i + " uses " + o + ". Perhaps this is the source of the error below."
|
|
1921
1921
|
);
|
|
1922
1922
|
}
|
|
@@ -1933,7 +1933,7 @@ let Qt = {}, ae = class Mi {
|
|
|
1933
1933
|
for (let s of this.plugins)
|
|
1934
1934
|
if (typeof s == "object")
|
|
1935
1935
|
for (let r in s) {
|
|
1936
|
-
if (!
|
|
1936
|
+
if (!ca[r] && /^[A-Z]/.test(r))
|
|
1937
1937
|
throw new Error(
|
|
1938
1938
|
`Unknown event ${r} in ${s.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`
|
|
1939
1939
|
);
|
|
@@ -1964,7 +1964,7 @@ let Qt = {}, ae = class Mi {
|
|
|
1964
1964
|
let e = this.result.root;
|
|
1965
1965
|
for (; !e[z]; ) {
|
|
1966
1966
|
e[z] = !0;
|
|
1967
|
-
let s = [
|
|
1967
|
+
let s = [ur(e)];
|
|
1968
1968
|
for (; s.length > 0; ) {
|
|
1969
1969
|
let r = this.visitTick(s);
|
|
1970
1970
|
if (fe(r))
|
|
@@ -2044,7 +2044,7 @@ let Qt = {}, ae = class Mi {
|
|
|
2044
2044
|
return this.result;
|
|
2045
2045
|
}
|
|
2046
2046
|
then(e, s) {
|
|
2047
|
-
return process.env.NODE_ENV !== "production" && ("from" in this.opts ||
|
|
2047
|
+
return process.env.NODE_ENV !== "production" && ("from" in this.opts || ua(
|
|
2048
2048
|
"Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."
|
|
2049
2049
|
)), this.async().then(e, s);
|
|
2050
2050
|
}
|
|
@@ -2077,15 +2077,15 @@ let Qt = {}, ae = class Mi {
|
|
|
2077
2077
|
s.visitorIndex += 1, s.visitorIndex === i.length && (s.visitors = [], s.visitorIndex = 0), this.result.lastPlugin = a;
|
|
2078
2078
|
try {
|
|
2079
2079
|
return n(r.toProxy(), this.helpers);
|
|
2080
|
-
} catch (
|
|
2081
|
-
throw this.handleError(
|
|
2080
|
+
} catch (u) {
|
|
2081
|
+
throw this.handleError(u, r);
|
|
2082
2082
|
}
|
|
2083
2083
|
}
|
|
2084
2084
|
if (s.iterator !== 0) {
|
|
2085
2085
|
let a = s.iterator, n;
|
|
2086
2086
|
for (; n = r.nodes[r.indexes[a]]; )
|
|
2087
2087
|
if (r.indexes[a] += 1, !n[z]) {
|
|
2088
|
-
n[z] = !0, e.push(
|
|
2088
|
+
n[z] = !0, e.push(ur(n));
|
|
2089
2089
|
return;
|
|
2090
2090
|
}
|
|
2091
2091
|
s.iterator = 0, delete r.indexes[a];
|
|
@@ -2177,8 +2177,8 @@ let ga = ft, ya = Ci, Kt = class {
|
|
|
2177
2177
|
});
|
|
2178
2178
|
let a = new da(i, r, this._opts, e);
|
|
2179
2179
|
if (a.isMap()) {
|
|
2180
|
-
let [n,
|
|
2181
|
-
n && (this.result.css = n),
|
|
2180
|
+
let [n, u] = a.generate();
|
|
2181
|
+
n && (this.result.css = n), u && (this.result.map = u);
|
|
2182
2182
|
} else
|
|
2183
2183
|
a.clearAnnotation(), this.result.css = a.css;
|
|
2184
2184
|
}
|
|
@@ -2319,13 +2319,13 @@ O.Input;
|
|
|
2319
2319
|
O.Rule;
|
|
2320
2320
|
O.Root;
|
|
2321
2321
|
O.Node;
|
|
2322
|
-
const Fa = /(max|min)-device-(width|height)/,
|
|
2322
|
+
const Fa = /(max|min)-device-(width|height)/, hr = new RegExp(Fa.source, "g"), _a = {
|
|
2323
2323
|
postcssPlugin: "postcss-custom-selectors",
|
|
2324
2324
|
prepare() {
|
|
2325
2325
|
return {
|
|
2326
2326
|
postcssPlugin: "postcss-custom-selectors",
|
|
2327
2327
|
AtRule: function(t) {
|
|
2328
|
-
t.params.match(
|
|
2328
|
+
t.params.match(hr) && (t.params = t.params.replace(hr, "$1-$2"));
|
|
2329
2329
|
}
|
|
2330
2330
|
};
|
|
2331
2331
|
}
|
|
@@ -2345,13 +2345,13 @@ const Fa = /(max|min)-device-(width|height)/, ur = new RegExp(Fa.source, "g"), _
|
|
|
2345
2345
|
i.push(a);
|
|
2346
2346
|
return;
|
|
2347
2347
|
}
|
|
2348
|
-
const
|
|
2348
|
+
const u = a.substr(
|
|
2349
2349
|
0,
|
|
2350
2350
|
a.length - n.join("").length
|
|
2351
|
-
), l = n.map(function(
|
|
2352
|
-
return
|
|
2351
|
+
), l = n.map(function(h) {
|
|
2352
|
+
return h.replace(/\(.*/g, "") !== ":hover" || h.match(/^::/) ? h : (h = h.substr(1), h = h.replace(/\(/g, "\\("), h = h.replace(/\)/g, "\\)"), ".\\:" + h);
|
|
2353
2353
|
});
|
|
2354
|
-
i.push(
|
|
2354
|
+
i.push(u + l.join(""));
|
|
2355
2355
|
}), o(i.join(" "));
|
|
2356
2356
|
function o(a) {
|
|
2357
2357
|
a && a !== s && (e.selector += `,
|
|
@@ -2361,7 +2361,7 @@ const Fa = /(max|min)-device-(width|height)/, ur = new RegExp(Fa.source, "g"), _
|
|
|
2361
2361
|
}
|
|
2362
2362
|
};
|
|
2363
2363
|
}
|
|
2364
|
-
},
|
|
2364
|
+
}, cr = {
|
|
2365
2365
|
script: "noscript",
|
|
2366
2366
|
// camel case svg element tag names
|
|
2367
2367
|
altglyph: "altGlyph",
|
|
@@ -2402,7 +2402,7 @@ const Fa = /(max|min)-device-(width|height)/, ur = new RegExp(Fa.source, "g"), _
|
|
|
2402
2402
|
radialgradient: "radialGradient"
|
|
2403
2403
|
};
|
|
2404
2404
|
function Ua(t) {
|
|
2405
|
-
let e =
|
|
2405
|
+
let e = cr[t.tagName] ? cr[t.tagName] : t.tagName;
|
|
2406
2406
|
return e === "link" && t.attributes._cssText && (e = "style"), e;
|
|
2407
2407
|
}
|
|
2408
2408
|
function pr(t, e) {
|
|
@@ -2444,20 +2444,20 @@ function Wa(t, e) {
|
|
|
2444
2444
|
}
|
|
2445
2445
|
), n = r.createElement(a))
|
|
2446
2446
|
);
|
|
2447
|
-
const
|
|
2447
|
+
const u = {};
|
|
2448
2448
|
for (const l in t.attributes) {
|
|
2449
2449
|
if (!Object.prototype.hasOwnProperty.call(t.attributes, l))
|
|
2450
2450
|
continue;
|
|
2451
|
-
let
|
|
2452
|
-
if (a === "option" && l === "selected" &&
|
|
2451
|
+
let h = t.attributes[l];
|
|
2452
|
+
if (a === "option" && l === "selected" && h === !1 || h === null)
|
|
2453
2453
|
continue;
|
|
2454
|
-
if (
|
|
2455
|
-
|
|
2454
|
+
if (h === !0 && (h = ""), l.startsWith("rr_")) {
|
|
2455
|
+
u[l] = h;
|
|
2456
2456
|
continue;
|
|
2457
2457
|
}
|
|
2458
|
-
const
|
|
2459
|
-
if (p && i && typeof
|
|
2460
|
-
n.appendChild(r.createTextNode(
|
|
2458
|
+
const c = a === "textarea" && l === "value", p = a === "style" && l === "_cssText";
|
|
2459
|
+
if (p && i && typeof h == "string" && (h = pr(h, o)), (c || p) && typeof h == "string") {
|
|
2460
|
+
n.appendChild(r.createTextNode(h)), t.childNodes = [];
|
|
2461
2461
|
continue;
|
|
2462
2462
|
}
|
|
2463
2463
|
try {
|
|
@@ -2465,45 +2465,45 @@ function Wa(t, e) {
|
|
|
2465
2465
|
n.setAttributeNS(
|
|
2466
2466
|
"http://www.w3.org/1999/xlink",
|
|
2467
2467
|
l,
|
|
2468
|
-
|
|
2468
|
+
h.toString()
|
|
2469
2469
|
);
|
|
2470
2470
|
else if (l === "onload" || l === "onclick" || l.substring(0, 7) === "onmouse")
|
|
2471
|
-
n.setAttribute("_" + l,
|
|
2471
|
+
n.setAttribute("_" + l, h.toString());
|
|
2472
2472
|
else if (a === "meta" && t.attributes["http-equiv"] === "Content-Security-Policy" && l === "content") {
|
|
2473
|
-
n.setAttribute("csp-content",
|
|
2473
|
+
n.setAttribute("csp-content", h.toString());
|
|
2474
2474
|
continue;
|
|
2475
|
-
} else a === "link" && (t.attributes.rel === "preload" || t.attributes.rel === "modulepreload") && t.attributes.as === "script" || a === "link" && t.attributes.rel === "prefetch" && typeof t.attributes.href == "string" && t.attributes.href.endsWith(".js") || (a === "img" && t.attributes.srcset && t.attributes.rr_dataURL ? n.setAttribute("original-srcset", t.attributes.srcset) : n.setAttribute(l,
|
|
2475
|
+
} else a === "link" && (t.attributes.rel === "preload" || t.attributes.rel === "modulepreload") && t.attributes.as === "script" || a === "link" && t.attributes.rel === "prefetch" && typeof t.attributes.href == "string" && t.attributes.href.endsWith(".js") || (a === "img" && t.attributes.srcset && t.attributes.rr_dataURL ? n.setAttribute("original-srcset", t.attributes.srcset) : n.setAttribute(l, h.toString()));
|
|
2476
2476
|
} catch {
|
|
2477
2477
|
}
|
|
2478
2478
|
}
|
|
2479
|
-
for (const l in
|
|
2480
|
-
const
|
|
2479
|
+
for (const l in u) {
|
|
2480
|
+
const h = u[l];
|
|
2481
2481
|
if (a === "canvas" && l === "rr_dataURL") {
|
|
2482
|
-
const
|
|
2483
|
-
|
|
2482
|
+
const c = r.createElement("img");
|
|
2483
|
+
c.onload = () => {
|
|
2484
2484
|
const p = n.getContext("2d");
|
|
2485
|
-
p && p.drawImage(
|
|
2486
|
-
},
|
|
2485
|
+
p && p.drawImage(c, 0, 0, c.width, c.height);
|
|
2486
|
+
}, c.src = h.toString(), n.RRNodeType && (n.rr_dataURL = h.toString());
|
|
2487
2487
|
} else if (a === "img" && l === "rr_dataURL") {
|
|
2488
|
-
const
|
|
2489
|
-
|
|
2488
|
+
const c = n;
|
|
2489
|
+
c.currentSrc.startsWith("data:") || (c.setAttribute("original-src", t.attributes.src), c.src = h.toString());
|
|
2490
2490
|
}
|
|
2491
2491
|
if (l === "rr_width")
|
|
2492
|
-
n.style.width =
|
|
2492
|
+
n.style.width = h.toString();
|
|
2493
2493
|
else if (l === "rr_height")
|
|
2494
|
-
n.style.height =
|
|
2495
|
-
else if (l === "rr_mediaCurrentTime" && typeof
|
|
2496
|
-
n.currentTime =
|
|
2494
|
+
n.style.height = h.toString();
|
|
2495
|
+
else if (l === "rr_mediaCurrentTime" && typeof h == "number")
|
|
2496
|
+
n.currentTime = h;
|
|
2497
2497
|
else if (l === "rr_mediaState")
|
|
2498
|
-
switch (
|
|
2498
|
+
switch (h) {
|
|
2499
2499
|
case "played":
|
|
2500
|
-
n.play().catch((
|
|
2500
|
+
n.play().catch((c) => console.warn("media playback error", c));
|
|
2501
2501
|
break;
|
|
2502
2502
|
case "paused":
|
|
2503
2503
|
n.pause();
|
|
2504
2504
|
break;
|
|
2505
2505
|
}
|
|
2506
|
-
else l === "rr_mediaPlaybackRate" && typeof
|
|
2506
|
+
else l === "rr_mediaPlaybackRate" && typeof h == "number" ? n.playbackRate = h : l === "rr_mediaMuted" && typeof h == "boolean" ? n.muted = h : l === "rr_mediaLoop" && typeof h == "boolean" ? n.loop = h : l === "rr_mediaVolume" && typeof h == "number" && (n.volume = h);
|
|
2507
2507
|
}
|
|
2508
2508
|
if (t.isShadowHost)
|
|
2509
2509
|
if (!n.shadowRoot)
|
|
@@ -2535,19 +2535,19 @@ function Se(t, e) {
|
|
|
2535
2535
|
cache: n
|
|
2536
2536
|
} = e;
|
|
2537
2537
|
if (r.has(t.id)) {
|
|
2538
|
-
const l = r.getNode(t.id),
|
|
2539
|
-
if (Yn(
|
|
2538
|
+
const l = r.getNode(t.id), h = r.getMeta(l);
|
|
2539
|
+
if (Yn(h, t)) return r.getNode(t.id);
|
|
2540
2540
|
}
|
|
2541
|
-
let
|
|
2542
|
-
if (!
|
|
2541
|
+
let u = Wa(t, { doc: s, hackCss: o, cache: n });
|
|
2542
|
+
if (!u)
|
|
2543
2543
|
return null;
|
|
2544
2544
|
if (t.rootId && r.getNode(t.rootId) !== s && r.replace(t.rootId, s), t.type === R.Document && (s.close(), s.open(), t.compatMode === "BackCompat" && t.childNodes && t.childNodes[0].type !== R.DocumentType && (t.childNodes[0].type === R.Element && "xmlns" in t.childNodes[0].attributes && t.childNodes[0].attributes.xmlns === "http://www.w3.org/1999/xhtml" ? s.write(
|
|
2545
2545
|
'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'
|
|
2546
2546
|
) : s.write(
|
|
2547
2547
|
'<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'
|
|
2548
|
-
)),
|
|
2548
|
+
)), u = s), r.add(u, t), (t.type === R.Document || t.type === R.Element) && !i)
|
|
2549
2549
|
for (const l of t.childNodes) {
|
|
2550
|
-
const
|
|
2550
|
+
const h = Se(l, {
|
|
2551
2551
|
doc: s,
|
|
2552
2552
|
mirror: r,
|
|
2553
2553
|
skipChild: !1,
|
|
@@ -2555,23 +2555,23 @@ function Se(t, e) {
|
|
|
2555
2555
|
afterAppend: a,
|
|
2556
2556
|
cache: n
|
|
2557
2557
|
});
|
|
2558
|
-
if (!
|
|
2558
|
+
if (!h) {
|
|
2559
2559
|
console.warn("Failed to rebuild", l);
|
|
2560
2560
|
continue;
|
|
2561
2561
|
}
|
|
2562
|
-
if (l.isShadow && Vn(
|
|
2563
|
-
|
|
2562
|
+
if (l.isShadow && Vn(u) && u.shadowRoot)
|
|
2563
|
+
u.shadowRoot.appendChild(h);
|
|
2564
2564
|
else if (t.type === R.Document && l.type == R.Element) {
|
|
2565
|
-
const
|
|
2565
|
+
const c = h;
|
|
2566
2566
|
let p = null;
|
|
2567
|
-
|
|
2567
|
+
c.childNodes.forEach((m) => {
|
|
2568
2568
|
m.nodeName === "BODY" && (p = m);
|
|
2569
|
-
}), p ? (
|
|
2569
|
+
}), p ? (c.removeChild(p), u.appendChild(h), c.appendChild(p)) : u.appendChild(h);
|
|
2570
2570
|
} else
|
|
2571
|
-
|
|
2572
|
-
a && a(
|
|
2571
|
+
u.appendChild(h);
|
|
2572
|
+
a && a(h, l.id);
|
|
2573
2573
|
}
|
|
2574
|
-
return
|
|
2574
|
+
return u;
|
|
2575
2575
|
}
|
|
2576
2576
|
function ja(t, e) {
|
|
2577
2577
|
function s(r) {
|
|
@@ -2600,7 +2600,7 @@ function za(t, e) {
|
|
|
2600
2600
|
afterAppend: o,
|
|
2601
2601
|
cache: a,
|
|
2602
2602
|
mirror: n = new Hr()
|
|
2603
|
-
} = e,
|
|
2603
|
+
} = e, u = Se(t, {
|
|
2604
2604
|
doc: s,
|
|
2605
2605
|
mirror: n,
|
|
2606
2606
|
skipChild: !1,
|
|
@@ -2610,7 +2610,7 @@ function za(t, e) {
|
|
|
2610
2610
|
});
|
|
2611
2611
|
return ja(n, (l) => {
|
|
2612
2612
|
r && r(l), Va(l, n);
|
|
2613
|
-
}),
|
|
2613
|
+
}), u;
|
|
2614
2614
|
}
|
|
2615
2615
|
var P = /* @__PURE__ */ ((t) => (t[t.DomContentLoaded = 0] = "DomContentLoaded", t[t.Load = 1] = "Load", t[t.FullSnapshot = 2] = "FullSnapshot", t[t.IncrementalSnapshot = 3] = "IncrementalSnapshot", t[t.Meta = 4] = "Meta", t[t.Custom = 5] = "Custom", t[t.Plugin = 6] = "Plugin", t[t.Device = 24] = "Device", t[t.SailfishCustom = 25] = "SailfishCustom", t))(P || {}), T = /* @__PURE__ */ ((t) => (t[t.Mutation = 0] = "Mutation", t[t.MouseMove = 1] = "MouseMove", t[t.MouseInteraction = 2] = "MouseInteraction", t[t.Scroll = 3] = "Scroll", t[t.ViewportResize = 4] = "ViewportResize", t[t.Input = 5] = "Input", t[t.TouchMove = 6] = "TouchMove", t[t.MediaInteraction = 7] = "MediaInteraction", t[t.StyleSheetRule = 8] = "StyleSheetRule", t[t.CanvasMutation = 9] = "CanvasMutation", t[t.Font = 10] = "Font", t[t.Log = 11] = "Log", t[t.Drag = 12] = "Drag", t[t.StyleDeclaration = 13] = "StyleDeclaration", t[t.Selection = 14] = "Selection", t[t.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", t[t.CustomElement = 16] = "CustomElement", t[t.Typing = 17] = "Typing", t))(T || {}), we = /* @__PURE__ */ ((t) => (t.Append = "append", t.Insert = "insert", t.Delete = "delete", t.Replace = "replace", t))(we || {}), F = /* @__PURE__ */ ((t) => (t[t.MouseUp = 0] = "MouseUp", t[t.MouseDown = 1] = "MouseDown", t[t.Click = 2] = "Click", t[t.ContextMenu = 3] = "ContextMenu", t[t.DblClick = 4] = "DblClick", t[t.Focus = 5] = "Focus", t[t.Blur = 6] = "Blur", t[t.TouchStart = 7] = "TouchStart", t[t.TouchMove_Departed = 8] = "TouchMove_Departed", t[t.TouchEnd = 9] = "TouchEnd", t[t.TouchCancel = 10] = "TouchCancel", t))(F || {}), ot = /* @__PURE__ */ ((t) => (t[t["2D"] = 0] = "2D", t[t.WebGL = 1] = "WebGL", t[t.WebGL2 = 2] = "WebGL2", t))(ot || {}), qt = /* @__PURE__ */ ((t) => (t[t.Play = 0] = "Play", t[t.Pause = 1] = "Pause", t[t.Seeked = 2] = "Seeked", t[t.VolumeChange = 3] = "VolumeChange", t[t.RateChange = 4] = "RateChange", t))(qt || {}), N = /* @__PURE__ */ ((t) => (t.Start = "start", t.Pause = "pause", t.Resume = "resume", t.Resize = "resize", t.Finish = "finish", t.FullsnapshotRebuilded = "fullsnapshot-rebuilded", t.LoadStylesheetStart = "load-stylesheet-start", t.LoadStylesheetEnd = "load-stylesheet-end", t.SkipStart = "skip-start", t.SkipEnd = "skip-end", t.MouseInteraction = "mouse-interaction", t.EventCast = "event-cast", t.CustomEvent = "custom-event", t.Flush = "flush", t.StateChange = "state-change", t.PlayBack = "play-back", t.Destroy = "destroy", t))(N || {});
|
|
2616
2616
|
const te = `Please stop import mirror directly. Instead of that,\r
|
|
@@ -2666,15 +2666,15 @@ function Ga(t) {
|
|
|
2666
2666
|
if (o && o in e) {
|
|
2667
2667
|
const n = e[o];
|
|
2668
2668
|
if (n.parent) {
|
|
2669
|
-
const
|
|
2669
|
+
const u = n.parent.children.indexOf(n);
|
|
2670
2670
|
n.parent.children.splice(
|
|
2671
|
-
|
|
2671
|
+
u,
|
|
2672
2672
|
0,
|
|
2673
2673
|
s(i, n.parent)
|
|
2674
2674
|
);
|
|
2675
2675
|
} else {
|
|
2676
|
-
const
|
|
2677
|
-
r.splice(
|
|
2676
|
+
const u = r.indexOf(n);
|
|
2677
|
+
r.splice(u, 0, s(i, null));
|
|
2678
2678
|
}
|
|
2679
2679
|
continue;
|
|
2680
2680
|
}
|
|
@@ -2784,11 +2784,11 @@ var gr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", ve
|
|
|
2784
2784
|
for (var ze = 0; ze < gr.length; ze++)
|
|
2785
2785
|
ve[gr.charCodeAt(ze)] = ze;
|
|
2786
2786
|
var Qa = function(t) {
|
|
2787
|
-
var e = t.length * 0.75, s = t.length, r, i = 0, o, a, n,
|
|
2787
|
+
var e = t.length * 0.75, s = t.length, r, i = 0, o, a, n, u;
|
|
2788
2788
|
t[t.length - 1] === "=" && (e--, t[t.length - 2] === "=" && e--);
|
|
2789
|
-
var l = new ArrayBuffer(e),
|
|
2789
|
+
var l = new ArrayBuffer(e), h = new Uint8Array(l);
|
|
2790
2790
|
for (r = 0; r < s; r += 4)
|
|
2791
|
-
o = ve[t.charCodeAt(r)], a = ve[t.charCodeAt(r + 1)], n = ve[t.charCodeAt(r + 2)],
|
|
2791
|
+
o = ve[t.charCodeAt(r)], a = ve[t.charCodeAt(r + 1)], n = ve[t.charCodeAt(r + 2)], u = ve[t.charCodeAt(r + 3)], h[i++] = o << 2 | a >> 4, h[i++] = (a & 15) << 4 | n >> 2, h[i++] = (n & 3) << 6 | u & 63;
|
|
2792
2792
|
return l;
|
|
2793
2793
|
}, yr;
|
|
2794
2794
|
try {
|
|
@@ -2894,28 +2894,28 @@ let br = ol, vr = V, es = class Fi extends Error {
|
|
|
2894
2894
|
if (!this.source) return "";
|
|
2895
2895
|
let s = this.source;
|
|
2896
2896
|
e == null && (e = br.isColorSupported);
|
|
2897
|
-
let r = (
|
|
2897
|
+
let r = (h) => h, i = (h) => h, o = (h) => h;
|
|
2898
2898
|
if (e) {
|
|
2899
|
-
let { bold:
|
|
2900
|
-
i = (m) =>
|
|
2899
|
+
let { bold: h, gray: c, red: p } = br.createColors(!0);
|
|
2900
|
+
i = (m) => h(p(m)), r = (m) => c(m), vr && (o = (m) => vr(m));
|
|
2901
2901
|
}
|
|
2902
|
-
let a = s.split(/\r?\n/), n = Math.max(this.line - 3, 0),
|
|
2903
|
-
return a.slice(n,
|
|
2904
|
-
let p = n + 1 +
|
|
2902
|
+
let a = s.split(/\r?\n/), n = Math.max(this.line - 3, 0), u = Math.min(this.line + 2, a.length), l = String(u).length;
|
|
2903
|
+
return a.slice(n, u).map((h, c) => {
|
|
2904
|
+
let p = n + 1 + c, m = " " + (" " + p).slice(-l) + " | ";
|
|
2905
2905
|
if (p === this.line) {
|
|
2906
|
-
if (
|
|
2906
|
+
if (h.length > 160) {
|
|
2907
2907
|
let d = 20, S = Math.max(0, this.column - d), f = Math.max(
|
|
2908
2908
|
this.column + d,
|
|
2909
2909
|
this.endColumn + d
|
|
2910
|
-
), w =
|
|
2910
|
+
), w = h.slice(S, f), g = r(m.replace(/\d/g, " ")) + h.slice(0, Math.min(this.column - 1, d - 1)).replace(/[^\t]/g, " ");
|
|
2911
2911
|
return i(">") + r(m) + o(w) + `
|
|
2912
2912
|
` + g + i("^");
|
|
2913
2913
|
}
|
|
2914
|
-
let v = r(m.replace(/\d/g, " ")) +
|
|
2915
|
-
return i(">") + r(m) + o(
|
|
2914
|
+
let v = r(m.replace(/\d/g, " ")) + h.slice(0, this.column - 1).replace(/[^\t]/g, " ");
|
|
2915
|
+
return i(">") + r(m) + o(h) + `
|
|
2916
2916
|
` + v + i("^");
|
|
2917
2917
|
}
|
|
2918
|
-
return " " + r(m) + o(
|
|
2918
|
+
return " " + r(m) + o(h);
|
|
2919
2919
|
}).join(`
|
|
2920
2920
|
`);
|
|
2921
2921
|
}
|
|
@@ -2948,7 +2948,7 @@ const Sr = {
|
|
|
2948
2948
|
indent: " ",
|
|
2949
2949
|
semicolon: !1
|
|
2950
2950
|
};
|
|
2951
|
-
function
|
|
2951
|
+
function ul(t) {
|
|
2952
2952
|
return t[0].toUpperCase() + t.slice(1);
|
|
2953
2953
|
}
|
|
2954
2954
|
let ts = class {
|
|
@@ -3019,7 +3019,7 @@ let ts = class {
|
|
|
3019
3019
|
if (s === "before" || s === "after")
|
|
3020
3020
|
return this.beforeAfter(t, s);
|
|
3021
3021
|
{
|
|
3022
|
-
let a = "raw" +
|
|
3022
|
+
let a = "raw" + ul(s);
|
|
3023
3023
|
this[a] ? r = this[a](o, t) : o.walk((n) => {
|
|
3024
3024
|
if (r = n.raws[e], typeof r < "u") return !1;
|
|
3025
3025
|
});
|
|
@@ -3118,16 +3118,16 @@ let ts = class {
|
|
|
3118
3118
|
};
|
|
3119
3119
|
var _i = ts;
|
|
3120
3120
|
ts.default = ts;
|
|
3121
|
-
let
|
|
3121
|
+
let hl = _i;
|
|
3122
3122
|
function ss(t, e) {
|
|
3123
|
-
new
|
|
3123
|
+
new hl(e).stringify(t);
|
|
3124
3124
|
}
|
|
3125
3125
|
var bt = ss;
|
|
3126
3126
|
ss.default = ss;
|
|
3127
3127
|
var Ae = {};
|
|
3128
3128
|
Ae.isClean = Symbol("isClean");
|
|
3129
3129
|
Ae.my = Symbol("my");
|
|
3130
|
-
let
|
|
3130
|
+
let cl = ks, pl = _i, dl = bt, { isClean: me, my: fl } = Ae;
|
|
3131
3131
|
function rs(t, e) {
|
|
3132
3132
|
let s = new t.constructor();
|
|
3133
3133
|
for (let r in t) {
|
|
@@ -3213,7 +3213,7 @@ let is = class {
|
|
|
3213
3213
|
e
|
|
3214
3214
|
);
|
|
3215
3215
|
}
|
|
3216
|
-
return new
|
|
3216
|
+
return new cl(t);
|
|
3217
3217
|
}
|
|
3218
3218
|
getProxyProcessor() {
|
|
3219
3219
|
return {
|
|
@@ -3730,7 +3730,7 @@ let as = class {
|
|
|
3730
3730
|
};
|
|
3731
3731
|
var $i = as;
|
|
3732
3732
|
as.default = as;
|
|
3733
|
-
let { nanoid: Nl } = Sl, { isAbsolute: ls, resolve:
|
|
3733
|
+
let { nanoid: Nl } = Sl, { isAbsolute: ls, resolve: us } = V, { SourceMapConsumer: Tl, SourceMapGenerator: kl } = V, { fileURLToPath: Er, pathToFileURL: Ye } = V, Mr = ks, Dl = $i, It = V, Pt = Symbol("lineToIndexCache"), Rl = !!(Tl && kl), Nr = !!(us && ls);
|
|
3734
3734
|
function Tr(t) {
|
|
3735
3735
|
if (t[Pt]) return t[Pt];
|
|
3736
3736
|
let e = t.css.split(`
|
|
@@ -3746,7 +3746,7 @@ let lt = class {
|
|
|
3746
3746
|
constructor(t, e = {}) {
|
|
3747
3747
|
if (t === null || typeof t > "u" || typeof t == "object" && !t.toString)
|
|
3748
3748
|
throw new Error(`PostCSS received ${t} instead of CSS string`);
|
|
3749
|
-
if (this.css = t.toString(), this.css[0] === "\uFEFF" || this.css[0] === "" ? (this.hasBOM = !0, this.css = this.css.slice(1)) : this.hasBOM = !1, this.document = this.css, e.document && (this.document = e.document.toString()), e.from && (!Nr || /^\w+:\/\//.test(e.from) || ls(e.from) ? this.file = e.from : this.file =
|
|
3749
|
+
if (this.css = t.toString(), this.css[0] === "\uFEFF" || this.css[0] === "" ? (this.hasBOM = !0, this.css = this.css.slice(1)) : this.hasBOM = !1, this.document = this.css, e.document && (this.document = e.document.toString()), e.from && (!Nr || /^\w+:\/\//.test(e.from) || ls(e.from) ? this.file = e.from : this.file = us(e.from)), Nr && Rl) {
|
|
3750
3750
|
let s = new Dl(this.css, e);
|
|
3751
3751
|
if (s.text) {
|
|
3752
3752
|
this.map = s;
|
|
@@ -3757,44 +3757,44 @@ let lt = class {
|
|
|
3757
3757
|
this.file || (this.id = "<input css " + Nl(6) + ">"), this.map && (this.map.file = this.from);
|
|
3758
3758
|
}
|
|
3759
3759
|
error(t, e, s, r = {}) {
|
|
3760
|
-
let i, o, a, n,
|
|
3760
|
+
let i, o, a, n, u;
|
|
3761
3761
|
if (e && typeof e == "object") {
|
|
3762
|
-
let
|
|
3763
|
-
if (typeof
|
|
3764
|
-
n =
|
|
3762
|
+
let h = e, c = s;
|
|
3763
|
+
if (typeof h.offset == "number") {
|
|
3764
|
+
n = h.offset;
|
|
3765
3765
|
let p = this.fromOffset(n);
|
|
3766
3766
|
e = p.line, s = p.col;
|
|
3767
3767
|
} else
|
|
3768
|
-
e =
|
|
3769
|
-
if (typeof
|
|
3770
|
-
a =
|
|
3768
|
+
e = h.line, s = h.column, n = this.fromLineAndColumn(e, s);
|
|
3769
|
+
if (typeof c.offset == "number") {
|
|
3770
|
+
a = c.offset;
|
|
3771
3771
|
let p = this.fromOffset(a);
|
|
3772
3772
|
o = p.line, i = p.col;
|
|
3773
3773
|
} else
|
|
3774
|
-
o =
|
|
3774
|
+
o = c.line, i = c.column, a = this.fromLineAndColumn(c.line, c.column);
|
|
3775
3775
|
} else if (s)
|
|
3776
3776
|
n = this.fromLineAndColumn(e, s);
|
|
3777
3777
|
else {
|
|
3778
3778
|
n = e;
|
|
3779
|
-
let
|
|
3780
|
-
e =
|
|
3779
|
+
let h = this.fromOffset(n);
|
|
3780
|
+
e = h.line, s = h.col;
|
|
3781
3781
|
}
|
|
3782
3782
|
let l = this.origin(e, s, o, i);
|
|
3783
|
-
return l ?
|
|
3783
|
+
return l ? u = new Mr(
|
|
3784
3784
|
t,
|
|
3785
3785
|
l.endLine === void 0 ? l.line : { column: l.column, line: l.line },
|
|
3786
3786
|
l.endLine === void 0 ? l.column : { column: l.endColumn, line: l.endLine },
|
|
3787
3787
|
l.source,
|
|
3788
3788
|
l.file,
|
|
3789
3789
|
r.plugin
|
|
3790
|
-
) :
|
|
3790
|
+
) : u = new Mr(
|
|
3791
3791
|
t,
|
|
3792
3792
|
o === void 0 ? e : { column: s, line: e },
|
|
3793
3793
|
o === void 0 ? s : { column: i, line: o },
|
|
3794
3794
|
this.css,
|
|
3795
3795
|
this.file,
|
|
3796
3796
|
r.plugin
|
|
3797
|
-
),
|
|
3797
|
+
), u.input = { column: s, endColumn: i, endLine: o, endOffset: a, line: e, offset: n, source: this.css }, this.file && (Ye && (u.input.url = Ye(this.file).toString()), u.input.file = this.file), u;
|
|
3798
3798
|
}
|
|
3799
3799
|
fromLineAndColumn(t, e) {
|
|
3800
3800
|
return Tr(this)[t - 1] + e - 1;
|
|
@@ -3821,7 +3821,7 @@ let lt = class {
|
|
|
3821
3821
|
};
|
|
3822
3822
|
}
|
|
3823
3823
|
mapResolve(t) {
|
|
3824
|
-
return /^\w+:\/\//.test(t) ? t :
|
|
3824
|
+
return /^\w+:\/\//.test(t) ? t : us(this.map.consumer().sourceRoot || this.map.root || ".", t);
|
|
3825
3825
|
}
|
|
3826
3826
|
origin(t, e, s, r) {
|
|
3827
3827
|
if (!this.map) return !1;
|
|
@@ -3834,7 +3834,7 @@ let lt = class {
|
|
|
3834
3834
|
o.source,
|
|
3835
3835
|
this.map.consumer().sourceRoot || Ye(this.map.mapFile)
|
|
3836
3836
|
);
|
|
3837
|
-
let
|
|
3837
|
+
let u = {
|
|
3838
3838
|
column: o.column,
|
|
3839
3839
|
endColumn: a && a.column,
|
|
3840
3840
|
endLine: a && a.line,
|
|
@@ -3843,11 +3843,11 @@ let lt = class {
|
|
|
3843
3843
|
};
|
|
3844
3844
|
if (n.protocol === "file:")
|
|
3845
3845
|
if (Er)
|
|
3846
|
-
|
|
3846
|
+
u.file = Er(n);
|
|
3847
3847
|
else
|
|
3848
3848
|
throw new Error("file: protocol is not available in this PostCSS build");
|
|
3849
3849
|
let l = i.sourceContentFor(o.source);
|
|
3850
|
-
return l && (
|
|
3850
|
+
return l && (u.source = l), u;
|
|
3851
3851
|
}
|
|
3852
3852
|
toJSON() {
|
|
3853
3853
|
let t = {};
|
|
@@ -3901,15 +3901,15 @@ let Te = {
|
|
|
3901
3901
|
return Te.split(t, e);
|
|
3902
3902
|
},
|
|
3903
3903
|
split(t, e, s) {
|
|
3904
|
-
let r = [], i = "", o = !1, a = 0, n = !1,
|
|
3905
|
-
for (let
|
|
3906
|
-
l ? l = !1 :
|
|
3904
|
+
let r = [], i = "", o = !1, a = 0, n = !1, u = "", l = !1;
|
|
3905
|
+
for (let h of t)
|
|
3906
|
+
l ? l = !1 : h === "\\" ? l = !0 : n ? h === u && (n = !1) : h === '"' || h === "'" ? (n = !0, u = h) : h === "(" ? a += 1 : h === ")" ? a > 0 && (a -= 1) : a === 0 && e.includes(h) && (o = !0), o ? (i !== "" && r.push(i.trim()), i = "", o = !1) : i += h;
|
|
3907
3907
|
return (s || i !== "") && r.push(i.trim()), r;
|
|
3908
3908
|
}
|
|
3909
3909
|
};
|
|
3910
3910
|
var en = Te;
|
|
3911
3911
|
Te.default = Te;
|
|
3912
|
-
let tn = ee, Ol = en,
|
|
3912
|
+
let tn = ee, Ol = en, ut = class extends tn {
|
|
3913
3913
|
get selectors() {
|
|
3914
3914
|
return Ol.comma(this.selector);
|
|
3915
3915
|
}
|
|
@@ -3921,9 +3921,9 @@ let tn = ee, Ol = en, ct = class extends tn {
|
|
|
3921
3921
|
super(t), this.type = "rule", this.nodes || (this.nodes = []);
|
|
3922
3922
|
}
|
|
3923
3923
|
};
|
|
3924
|
-
var Is =
|
|
3925
|
-
|
|
3926
|
-
tn.registerRule(
|
|
3924
|
+
var Is = ut;
|
|
3925
|
+
ut.default = ut;
|
|
3926
|
+
tn.registerRule(ut);
|
|
3927
3927
|
let Al = Os, Il = St, Pl = xt, Ll = Ct, Fl = $i, _l = Ie, Bl = Is;
|
|
3928
3928
|
function ke(t, e) {
|
|
3929
3929
|
if (Array.isArray(t)) return t.map((i) => ke(i));
|
|
@@ -4022,9 +4022,9 @@ let { dirname: et, relative: sn, resolve: rn, sep: nn } = V, { SourceMapConsumer
|
|
|
4022
4022
|
original: { column: 0, line: 0 },
|
|
4023
4023
|
source: ""
|
|
4024
4024
|
}, i, o;
|
|
4025
|
-
this.stringify(this.root, (a, n,
|
|
4026
|
-
if (this.css += a, n &&
|
|
4027
|
-
`), e = a.length - i) : e += a.length, n &&
|
|
4025
|
+
this.stringify(this.root, (a, n, u) => {
|
|
4026
|
+
if (this.css += a, n && u !== "end" && (r.generated.line = t, r.generated.column = e - 1, n.source && n.source.start ? (r.source = this.sourcePath(n), r.original.line = n.source.start.line, r.original.column = n.source.start.column - 1, this.map.addMapping(r)) : (r.source = s, r.original.line = 1, r.original.column = 0, this.map.addMapping(r))), o = a.match(/\n/g), o ? (t += o.length, i = a.lastIndexOf(`
|
|
4027
|
+
`), e = a.length - i) : e += a.length, n && u !== "start") {
|
|
4028
4028
|
let l = n.parent || { raws: {} };
|
|
4029
4029
|
(!(n.type === "decl" || n.type === "atrule" && !n.nodes) || n !== l.last || l.raws.semicolon) && (n.source && n.source.end ? (r.source = this.sourcePath(n), r.original.line = n.source.end.line, r.original.column = n.source.end.column - 1, r.generated.line = t, r.generated.column = e - 2, this.map.addMapping(r)) : (r.source = s, r.original.line = 1, r.original.column = 0, r.generated.line = t, r.generated.column = e - 1, this.map.addMapping(r)));
|
|
4030
4030
|
}
|
|
@@ -4116,9 +4116,9 @@ let { dirname: et, relative: sn, resolve: rn, sep: nn } = V, { SourceMapConsumer
|
|
|
4116
4116
|
}
|
|
4117
4117
|
};
|
|
4118
4118
|
var an = zl;
|
|
4119
|
-
const Lt = 39, Dr = 34, Ge = 92, Rr = 47, Ze = 10, ge = 32, Xe = 12, He = 9, Je = 13, Yl = 91, Gl = 93, Zl = 40, Xl = 41, Hl = 123, Jl = 125, $l = 59, Ql = 42, Kl = 58, ql = 64, $e = /[\t\n\f\r "#'()/;[\\\]{}]/g, Qe = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,
|
|
4120
|
-
var
|
|
4121
|
-
let s = t.css.valueOf(), r = e.ignoreErrors, i, o, a, n,
|
|
4119
|
+
const Lt = 39, Dr = 34, Ge = 92, Rr = 47, Ze = 10, ge = 32, Xe = 12, He = 9, Je = 13, Yl = 91, Gl = 93, Zl = 40, Xl = 41, Hl = 123, Jl = 125, $l = 59, Ql = 42, Kl = 58, ql = 64, $e = /[\t\n\f\r "#'()/;[\\\]{}]/g, Qe = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, eu = /.[\r\n"'(/\\]/, Or = /[\da-f]/i;
|
|
4120
|
+
var tu = function(t, e = {}) {
|
|
4121
|
+
let s = t.css.valueOf(), r = e.ignoreErrors, i, o, a, n, u, l, h, c, p, m, v = s.length, d = 0, S = [], f = [];
|
|
4122
4122
|
function w() {
|
|
4123
4123
|
return d;
|
|
4124
4124
|
}
|
|
@@ -4160,33 +4160,33 @@ var tc = function(t, e = {}) {
|
|
|
4160
4160
|
if (m = S.length ? S.pop()[1] : "", p = s.charCodeAt(d + 1), m === "url" && p !== Lt && p !== Dr && p !== ge && p !== Ze && p !== He && p !== Xe && p !== Je) {
|
|
4161
4161
|
n = d;
|
|
4162
4162
|
do {
|
|
4163
|
-
if (
|
|
4163
|
+
if (h = !1, n = s.indexOf(")", n + 1), n === -1)
|
|
4164
4164
|
if (r || W) {
|
|
4165
4165
|
n = d;
|
|
4166
4166
|
break;
|
|
4167
4167
|
} else
|
|
4168
4168
|
g("bracket");
|
|
4169
|
-
for (
|
|
4170
|
-
|
|
4171
|
-
} while (
|
|
4169
|
+
for (c = n; s.charCodeAt(c - 1) === Ge; )
|
|
4170
|
+
c -= 1, h = !h;
|
|
4171
|
+
} while (h);
|
|
4172
4172
|
l = ["brackets", s.slice(d, n + 1), d, n], d = n;
|
|
4173
4173
|
} else
|
|
4174
|
-
n = s.indexOf(")", d + 1), o = s.slice(d, n + 1), n === -1 ||
|
|
4174
|
+
n = s.indexOf(")", d + 1), o = s.slice(d, n + 1), n === -1 || eu.test(o) ? l = ["(", "(", d] : (l = ["brackets", o, d, n], d = n);
|
|
4175
4175
|
break;
|
|
4176
4176
|
}
|
|
4177
4177
|
case Lt:
|
|
4178
4178
|
case Dr: {
|
|
4179
|
-
|
|
4179
|
+
u = i === Lt ? "'" : '"', n = d;
|
|
4180
4180
|
do {
|
|
4181
|
-
if (
|
|
4181
|
+
if (h = !1, n = s.indexOf(u, n + 1), n === -1)
|
|
4182
4182
|
if (r || W) {
|
|
4183
4183
|
n = d + 1;
|
|
4184
4184
|
break;
|
|
4185
4185
|
} else
|
|
4186
4186
|
g("string");
|
|
4187
|
-
for (
|
|
4188
|
-
|
|
4189
|
-
} while (
|
|
4187
|
+
for (c = n; s.charCodeAt(c - 1) === Ge; )
|
|
4188
|
+
c -= 1, h = !h;
|
|
4189
|
+
} while (h);
|
|
4190
4190
|
l = ["string", s.slice(d, n + 1), d, n], d = n;
|
|
4191
4191
|
break;
|
|
4192
4192
|
}
|
|
@@ -4222,27 +4222,27 @@ var tc = function(t, e = {}) {
|
|
|
4222
4222
|
position: w
|
|
4223
4223
|
};
|
|
4224
4224
|
};
|
|
4225
|
-
let
|
|
4225
|
+
let su = Os, ru = St, iu = xt, nu = Ie, Ar = Is, ou = tu;
|
|
4226
4226
|
const Ir = {
|
|
4227
4227
|
empty: !0,
|
|
4228
4228
|
space: !0
|
|
4229
4229
|
};
|
|
4230
|
-
function
|
|
4230
|
+
function au(t) {
|
|
4231
4231
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
4232
4232
|
let s = t[e], r = s[3] || s[2];
|
|
4233
4233
|
if (r) return r;
|
|
4234
4234
|
}
|
|
4235
4235
|
}
|
|
4236
|
-
let
|
|
4236
|
+
let lu = class {
|
|
4237
4237
|
constructor(t) {
|
|
4238
|
-
this.input = t, this.root = new
|
|
4238
|
+
this.input = t, this.root = new nu(), this.current = this.root, this.spaces = "", this.semicolon = !1, this.createTokenizer(), this.root.source = { input: t, start: { column: 1, line: 1, offset: 0 } };
|
|
4239
4239
|
}
|
|
4240
4240
|
atrule(t) {
|
|
4241
|
-
let e = new
|
|
4241
|
+
let e = new su();
|
|
4242
4242
|
e.name = t[1].slice(1), e.name === "" && this.unnamedAtrule(e, t), this.init(e, t[2]);
|
|
4243
|
-
let s, r, i, o = !1, a = !1, n = [],
|
|
4243
|
+
let s, r, i, o = !1, a = !1, n = [], u = [];
|
|
4244
4244
|
for (; !this.tokenizer.endOfFile(); ) {
|
|
4245
|
-
if (t = this.tokenizer.nextToken(), s = t[0], s === "(" || s === "[" ?
|
|
4245
|
+
if (t = this.tokenizer.nextToken(), s = t[0], s === "(" || s === "[" ? u.push(s === "(" ? ")" : "]") : s === "{" && u.length > 0 ? u.push("}") : s === u[u.length - 1] && u.pop(), u.length === 0)
|
|
4246
4246
|
if (s === ";") {
|
|
4247
4247
|
e.source.end = this.getPosition(t[2]), e.source.end.offset++, this.semicolon = !0;
|
|
4248
4248
|
break;
|
|
@@ -4295,7 +4295,7 @@ let lc = class {
|
|
|
4295
4295
|
return !1;
|
|
4296
4296
|
}
|
|
4297
4297
|
comment(t) {
|
|
4298
|
-
let e = new
|
|
4298
|
+
let e = new ru();
|
|
4299
4299
|
this.init(e, t[2]), e.source.end = this.getPosition(t[3] || t[2]), e.source.end.offset++;
|
|
4300
4300
|
let s = t[1].slice(2, -2);
|
|
4301
4301
|
if (/^\s*$/.test(s))
|
|
@@ -4306,14 +4306,14 @@ let lc = class {
|
|
|
4306
4306
|
}
|
|
4307
4307
|
}
|
|
4308
4308
|
createTokenizer() {
|
|
4309
|
-
this.tokenizer =
|
|
4309
|
+
this.tokenizer = ou(this.input);
|
|
4310
4310
|
}
|
|
4311
4311
|
decl(t, e) {
|
|
4312
|
-
let s = new
|
|
4312
|
+
let s = new iu();
|
|
4313
4313
|
this.init(s, t[0][2]);
|
|
4314
4314
|
let r = t[t.length - 1];
|
|
4315
4315
|
for (r[0] === ";" && (this.semicolon = !0, t.pop()), s.source.end = this.getPosition(
|
|
4316
|
-
r[3] || r[2] ||
|
|
4316
|
+
r[3] || r[2] || au(t)
|
|
4317
4317
|
), s.source.end.offset++; t[0][0] !== "word"; )
|
|
4318
4318
|
t.length === 1 && this.unknownWord(t), s.raws.before += t.shift()[1];
|
|
4319
4319
|
for (s.source.start = this.getPosition(t[0][2]), s.prop = ""; t.length; ) {
|
|
@@ -4338,18 +4338,18 @@ let lc = class {
|
|
|
4338
4338
|
for (let n = t.length - 1; n >= 0; n--) {
|
|
4339
4339
|
if (i = t[n], i[1].toLowerCase() === "!important") {
|
|
4340
4340
|
s.important = !0;
|
|
4341
|
-
let
|
|
4342
|
-
|
|
4341
|
+
let u = this.stringFrom(t, n);
|
|
4342
|
+
u = this.spacesFromEnd(t) + u, u !== " !important" && (s.raws.important = u);
|
|
4343
4343
|
break;
|
|
4344
4344
|
} else if (i[1].toLowerCase() === "important") {
|
|
4345
|
-
let
|
|
4346
|
-
for (let
|
|
4347
|
-
let
|
|
4348
|
-
if (l.trim().startsWith("!") &&
|
|
4345
|
+
let u = t.slice(0), l = "";
|
|
4346
|
+
for (let h = n; h > 0; h--) {
|
|
4347
|
+
let c = u[h][0];
|
|
4348
|
+
if (l.trim().startsWith("!") && c !== "space")
|
|
4349
4349
|
break;
|
|
4350
|
-
l =
|
|
4350
|
+
l = u.pop()[1] + l;
|
|
4351
4351
|
}
|
|
4352
|
-
l.trim().startsWith("!") && (s.important = !0, s.raws.important = l, t =
|
|
4352
|
+
l.trim().startsWith("!") && (s.important = !0, s.raws.important = l, t = u);
|
|
4353
4353
|
}
|
|
4354
4354
|
if (i[0] !== "space" && i[0] !== "comment")
|
|
4355
4355
|
break;
|
|
@@ -4395,12 +4395,12 @@ let lc = class {
|
|
|
4395
4395
|
}, t.raws.before = this.spaces, this.spaces = "", t.type !== "comment" && (this.semicolon = !1);
|
|
4396
4396
|
}
|
|
4397
4397
|
other(t) {
|
|
4398
|
-
let e = !1, s = null, r = !1, i = null, o = [], a = t[1].startsWith("--"), n = [],
|
|
4399
|
-
for (;
|
|
4400
|
-
if (s =
|
|
4401
|
-
i || (i =
|
|
4398
|
+
let e = !1, s = null, r = !1, i = null, o = [], a = t[1].startsWith("--"), n = [], u = t;
|
|
4399
|
+
for (; u; ) {
|
|
4400
|
+
if (s = u[0], n.push(u), s === "(" || s === "[")
|
|
4401
|
+
i || (i = u), o.push(s === "(" ? ")" : "]");
|
|
4402
4402
|
else if (a && r && s === "{")
|
|
4403
|
-
i || (i =
|
|
4403
|
+
i || (i = u), o.push("}");
|
|
4404
4404
|
else if (o.length === 0)
|
|
4405
4405
|
if (s === ";")
|
|
4406
4406
|
if (r) {
|
|
@@ -4416,11 +4416,11 @@ let lc = class {
|
|
|
4416
4416
|
break;
|
|
4417
4417
|
} else s === ":" && (r = !0);
|
|
4418
4418
|
else s === o[o.length - 1] && (o.pop(), o.length === 0 && (i = null));
|
|
4419
|
-
|
|
4419
|
+
u = this.tokenizer.nextToken();
|
|
4420
4420
|
}
|
|
4421
4421
|
if (this.tokenizer.endOfFile() && (e = !0), o.length > 0 && this.unclosedBracket(i), e && r) {
|
|
4422
4422
|
if (!a)
|
|
4423
|
-
for (; n.length && (
|
|
4423
|
+
for (; n.length && (u = n[n.length - 1][0], !(u !== "space" && u !== "comment")); )
|
|
4424
4424
|
this.tokenizer.back(n.pop());
|
|
4425
4425
|
this.decl(n, a);
|
|
4426
4426
|
} else
|
|
@@ -4457,12 +4457,12 @@ let lc = class {
|
|
|
4457
4457
|
precheckMissedSemicolon() {
|
|
4458
4458
|
}
|
|
4459
4459
|
raw(t, e, s, r) {
|
|
4460
|
-
let i, o, a = s.length, n = "",
|
|
4461
|
-
for (let
|
|
4462
|
-
i = s[
|
|
4463
|
-
if (!
|
|
4464
|
-
let
|
|
4465
|
-
t.raws[e] = { raw:
|
|
4460
|
+
let i, o, a = s.length, n = "", u = !0, l, h;
|
|
4461
|
+
for (let c = 0; c < a; c += 1)
|
|
4462
|
+
i = s[c], o = i[0], o === "space" && c === a - 1 && !r ? u = !1 : o === "comment" ? (h = s[c - 1] ? s[c - 1][0] : "empty", l = s[c + 1] ? s[c + 1][0] : "empty", !Ir[h] && !Ir[l] ? n.slice(-1) === "," ? u = !1 : n += i[1] : u = !1) : n += i[1];
|
|
4463
|
+
if (!u) {
|
|
4464
|
+
let c = s.reduce((p, m) => p + m[1], "");
|
|
4465
|
+
t.raws[e] = { raw: c, value: n };
|
|
4466
4466
|
}
|
|
4467
4467
|
t[e] = n;
|
|
4468
4468
|
}
|
|
@@ -4529,10 +4529,10 @@ let lc = class {
|
|
|
4529
4529
|
);
|
|
4530
4530
|
}
|
|
4531
4531
|
};
|
|
4532
|
-
var
|
|
4533
|
-
let
|
|
4534
|
-
function
|
|
4535
|
-
let s = new
|
|
4532
|
+
var uu = lu;
|
|
4533
|
+
let hu = ee, cu = Ct, pu = uu;
|
|
4534
|
+
function ht(t, e) {
|
|
4535
|
+
let s = new cu(t, e), r = new pu(s);
|
|
4536
4536
|
try {
|
|
4537
4537
|
r.parse();
|
|
4538
4538
|
} catch (i) {
|
|
@@ -4543,10 +4543,10 @@ You tried to parse Less with the standard CSS parser; try again with the postcss
|
|
|
4543
4543
|
}
|
|
4544
4544
|
return r.root;
|
|
4545
4545
|
}
|
|
4546
|
-
var Ps =
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
let
|
|
4546
|
+
var Ps = ht;
|
|
4547
|
+
ht.default = ht;
|
|
4548
|
+
hu.registerParse(ht);
|
|
4549
|
+
let hs = class {
|
|
4550
4550
|
constructor(t, e = {}) {
|
|
4551
4551
|
if (this.type = "warning", this.text = t, e.node && e.node.source) {
|
|
4552
4552
|
let s = e.node.rangeBy(e);
|
|
@@ -4562,9 +4562,9 @@ let us = class {
|
|
|
4562
4562
|
}).message : this.plugin ? this.plugin + ": " + this.text : this.text;
|
|
4563
4563
|
}
|
|
4564
4564
|
};
|
|
4565
|
-
var ln =
|
|
4566
|
-
|
|
4567
|
-
let
|
|
4565
|
+
var ln = hs;
|
|
4566
|
+
hs.default = hs;
|
|
4567
|
+
let du = ln, cs = class {
|
|
4568
4568
|
get content() {
|
|
4569
4569
|
return this.css;
|
|
4570
4570
|
}
|
|
@@ -4576,28 +4576,28 @@ let dc = ln, hs = class {
|
|
|
4576
4576
|
}
|
|
4577
4577
|
warn(t, e = {}) {
|
|
4578
4578
|
e.plugin || this.lastPlugin && this.lastPlugin.postcssPlugin && (e.plugin = this.lastPlugin.postcssPlugin);
|
|
4579
|
-
let s = new
|
|
4579
|
+
let s = new du(t, e);
|
|
4580
4580
|
return this.messages.push(s), s;
|
|
4581
4581
|
}
|
|
4582
4582
|
warnings() {
|
|
4583
4583
|
return this.messages.filter((t) => t.type === "warning");
|
|
4584
4584
|
}
|
|
4585
4585
|
};
|
|
4586
|
-
var Ls =
|
|
4587
|
-
|
|
4586
|
+
var Ls = cs;
|
|
4587
|
+
cs.default = cs;
|
|
4588
4588
|
let Pr = {};
|
|
4589
|
-
var
|
|
4589
|
+
var un = function(t) {
|
|
4590
4590
|
Pr[t] || (Pr[t] = !0, typeof console < "u" && console.warn && console.warn(t));
|
|
4591
4591
|
};
|
|
4592
|
-
let
|
|
4593
|
-
const
|
|
4592
|
+
let fu = ee, mu = As, gu = an, yu = Ps, Lr = Ls, wu = Ie, bu = bt, { isClean: Y, my: vu } = Ae, Su = un;
|
|
4593
|
+
const xu = {
|
|
4594
4594
|
atrule: "AtRule",
|
|
4595
4595
|
comment: "Comment",
|
|
4596
4596
|
decl: "Declaration",
|
|
4597
4597
|
document: "Document",
|
|
4598
4598
|
root: "Root",
|
|
4599
4599
|
rule: "Rule"
|
|
4600
|
-
},
|
|
4600
|
+
}, Cu = {
|
|
4601
4601
|
AtRule: !0,
|
|
4602
4602
|
AtRuleExit: !0,
|
|
4603
4603
|
Comment: !0,
|
|
@@ -4614,27 +4614,27 @@ const xc = {
|
|
|
4614
4614
|
RootExit: !0,
|
|
4615
4615
|
Rule: !0,
|
|
4616
4616
|
RuleExit: !0
|
|
4617
|
-
},
|
|
4617
|
+
}, Eu = {
|
|
4618
4618
|
Once: !0,
|
|
4619
4619
|
postcssPlugin: !0,
|
|
4620
4620
|
prepare: !0
|
|
4621
|
-
},
|
|
4621
|
+
}, ue = 0;
|
|
4622
4622
|
function ye(t) {
|
|
4623
4623
|
return typeof t == "object" && typeof t.then == "function";
|
|
4624
4624
|
}
|
|
4625
|
-
function
|
|
4626
|
-
let e = !1, s =
|
|
4625
|
+
function hn(t) {
|
|
4626
|
+
let e = !1, s = xu[t.type];
|
|
4627
4627
|
return t.type === "decl" ? e = t.prop.toLowerCase() : t.type === "atrule" && (e = t.name.toLowerCase()), e && t.append ? [
|
|
4628
4628
|
s,
|
|
4629
4629
|
s + "-" + e,
|
|
4630
|
-
|
|
4630
|
+
ue,
|
|
4631
4631
|
s + "Exit",
|
|
4632
4632
|
s + "Exit-" + e
|
|
4633
|
-
] : e ? [s, s + "-" + e, s + "Exit", s + "Exit-" + e] : t.append ? [s,
|
|
4633
|
+
] : e ? [s, s + "-" + e, s + "Exit", s + "Exit-" + e] : t.append ? [s, ue, s + "Exit"] : [s, s + "Exit"];
|
|
4634
4634
|
}
|
|
4635
4635
|
function Fr(t) {
|
|
4636
4636
|
let e;
|
|
4637
|
-
return t.type === "document" ? e = ["Document",
|
|
4637
|
+
return t.type === "document" ? e = ["Document", ue, "DocumentExit"] : t.type === "root" ? e = ["Root", ue, "RootExit"] : e = hn(t), {
|
|
4638
4638
|
eventIndex: 0,
|
|
4639
4639
|
events: e,
|
|
4640
4640
|
iterator: 0,
|
|
@@ -4646,7 +4646,7 @@ function Fr(t) {
|
|
|
4646
4646
|
function ps(t) {
|
|
4647
4647
|
return t[Y] = !1, t.nodes && t.nodes.forEach((e) => ps(e)), t;
|
|
4648
4648
|
}
|
|
4649
|
-
let ds = {},
|
|
4649
|
+
let ds = {}, he = class cn {
|
|
4650
4650
|
get content() {
|
|
4651
4651
|
return this.stringify().content;
|
|
4652
4652
|
}
|
|
@@ -4676,17 +4676,17 @@ let ds = {}, ue = class hn {
|
|
|
4676
4676
|
let i;
|
|
4677
4677
|
if (typeof s == "object" && s !== null && (s.type === "root" || s.type === "document"))
|
|
4678
4678
|
i = ps(s);
|
|
4679
|
-
else if (s instanceof
|
|
4679
|
+
else if (s instanceof cn || s instanceof Lr)
|
|
4680
4680
|
i = ps(s.root), s.map && (typeof r.map > "u" && (r.map = {}), r.map.inline || (r.map.inline = !1), r.map.prev = s.map);
|
|
4681
4681
|
else {
|
|
4682
|
-
let o =
|
|
4682
|
+
let o = yu;
|
|
4683
4683
|
r.syntax && (o = r.syntax.parse), r.parser && (o = r.parser), o.parse && (o = o.parse);
|
|
4684
4684
|
try {
|
|
4685
4685
|
i = o(s, r);
|
|
4686
4686
|
} catch (a) {
|
|
4687
4687
|
this.processed = !0, this.error = a;
|
|
4688
4688
|
}
|
|
4689
|
-
i && !i[
|
|
4689
|
+
i && !i[vu] && fu.rebuild(i);
|
|
4690
4690
|
}
|
|
4691
4691
|
this.result = new Lr(e, i, r), this.helpers = { ...ds, postcss: ds, result: this.result }, this.plugins = this.processor.plugins.map((o) => typeof o == "object" && o.prepare ? { ...o, ...o.prepare(this.result) } : o);
|
|
4692
4692
|
}
|
|
@@ -4708,8 +4708,8 @@ let ds = {}, ue = class hn {
|
|
|
4708
4708
|
if (s && s.addToError(e), this.error = e, e.name === "CssSyntaxError" && !e.plugin)
|
|
4709
4709
|
e.plugin = r.postcssPlugin, e.setMessage();
|
|
4710
4710
|
else if (r.postcssVersion && process.env.NODE_ENV !== "production") {
|
|
4711
|
-
let i = r.postcssPlugin, o = r.postcssVersion, a = this.result.processor.version, n = o.split("."),
|
|
4712
|
-
(n[0] !==
|
|
4711
|
+
let i = r.postcssPlugin, o = r.postcssVersion, a = this.result.processor.version, n = o.split("."), u = a.split(".");
|
|
4712
|
+
(n[0] !== u[0] || parseInt(n[1]) > parseInt(u[1])) && console.error(
|
|
4713
4713
|
"Unknown error from PostCSS plugin. Your current PostCSS version is " + a + ", but " + i + " uses " + o + ". Perhaps this is the source of the error below."
|
|
4714
4714
|
);
|
|
4715
4715
|
}
|
|
@@ -4726,11 +4726,11 @@ let ds = {}, ue = class hn {
|
|
|
4726
4726
|
for (let s of this.plugins)
|
|
4727
4727
|
if (typeof s == "object")
|
|
4728
4728
|
for (let r in s) {
|
|
4729
|
-
if (!
|
|
4729
|
+
if (!Cu[r] && /^[A-Z]/.test(r))
|
|
4730
4730
|
throw new Error(
|
|
4731
4731
|
`Unknown event ${r} in ${s.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`
|
|
4732
4732
|
);
|
|
4733
|
-
if (!
|
|
4733
|
+
if (!Eu[r])
|
|
4734
4734
|
if (typeof s[r] == "object")
|
|
4735
4735
|
for (let i in s[r])
|
|
4736
4736
|
i === "*" ? e(s, r, s[r][i]) : e(
|
|
@@ -4808,9 +4808,9 @@ let ds = {}, ue = class hn {
|
|
|
4808
4808
|
if (this.error) throw this.error;
|
|
4809
4809
|
if (this.stringified) return this.result;
|
|
4810
4810
|
this.stringified = !0, this.sync();
|
|
4811
|
-
let e = this.result.opts, s =
|
|
4811
|
+
let e = this.result.opts, s = bu;
|
|
4812
4812
|
e.syntax && (s = e.syntax.stringify), e.stringifier && (s = e.stringifier), s.stringify && (s = s.stringify);
|
|
4813
|
-
let r = new
|
|
4813
|
+
let r = new gu(s, this.result.root, this.result.opts).generate();
|
|
4814
4814
|
return this.result.css = r[0], this.result.map = r[1], this.result;
|
|
4815
4815
|
}
|
|
4816
4816
|
sync() {
|
|
@@ -4837,7 +4837,7 @@ let ds = {}, ue = class hn {
|
|
|
4837
4837
|
return this.result;
|
|
4838
4838
|
}
|
|
4839
4839
|
then(e, s) {
|
|
4840
|
-
return process.env.NODE_ENV !== "production" && ("from" in this.opts ||
|
|
4840
|
+
return process.env.NODE_ENV !== "production" && ("from" in this.opts || Su(
|
|
4841
4841
|
"Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."
|
|
4842
4842
|
)), this.async().then(e, s);
|
|
4843
4843
|
}
|
|
@@ -4870,8 +4870,8 @@ let ds = {}, ue = class hn {
|
|
|
4870
4870
|
s.visitorIndex += 1, s.visitorIndex === i.length && (s.visitors = [], s.visitorIndex = 0), this.result.lastPlugin = a;
|
|
4871
4871
|
try {
|
|
4872
4872
|
return n(r.toProxy(), this.helpers);
|
|
4873
|
-
} catch (
|
|
4874
|
-
throw this.handleError(
|
|
4873
|
+
} catch (u) {
|
|
4874
|
+
throw this.handleError(u, r);
|
|
4875
4875
|
}
|
|
4876
4876
|
}
|
|
4877
4877
|
if (s.iterator !== 0) {
|
|
@@ -4886,7 +4886,7 @@ let ds = {}, ue = class hn {
|
|
|
4886
4886
|
let o = s.events;
|
|
4887
4887
|
for (; s.eventIndex < o.length; ) {
|
|
4888
4888
|
let a = o[s.eventIndex];
|
|
4889
|
-
if (s.eventIndex += 1, a ===
|
|
4889
|
+
if (s.eventIndex += 1, a === ue) {
|
|
4890
4890
|
r.nodes && r.nodes.length && (r[Y] = !0, s.iterator = r.getIterator());
|
|
4891
4891
|
return;
|
|
4892
4892
|
} else if (this.listeners[a]) {
|
|
@@ -4898,9 +4898,9 @@ let ds = {}, ue = class hn {
|
|
|
4898
4898
|
}
|
|
4899
4899
|
walkSync(e) {
|
|
4900
4900
|
e[Y] = !0;
|
|
4901
|
-
let s =
|
|
4901
|
+
let s = hn(e);
|
|
4902
4902
|
for (let r of s)
|
|
4903
|
-
if (r ===
|
|
4903
|
+
if (r === ue)
|
|
4904
4904
|
e.nodes && e.each((i) => {
|
|
4905
4905
|
i[Y] || this.walkSync(i);
|
|
4906
4906
|
});
|
|
@@ -4914,16 +4914,16 @@ let ds = {}, ue = class hn {
|
|
|
4914
4914
|
return this.sync().warnings();
|
|
4915
4915
|
}
|
|
4916
4916
|
};
|
|
4917
|
-
|
|
4917
|
+
he.registerPostcss = (t) => {
|
|
4918
4918
|
ds = t;
|
|
4919
4919
|
};
|
|
4920
|
-
var pn =
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
let
|
|
4925
|
-
const
|
|
4926
|
-
let
|
|
4920
|
+
var pn = he;
|
|
4921
|
+
he.default = he;
|
|
4922
|
+
wu.registerLazyResult(he);
|
|
4923
|
+
mu.registerLazyResult(he);
|
|
4924
|
+
let Mu = an, Nu = Ps;
|
|
4925
|
+
const Tu = Ls;
|
|
4926
|
+
let ku = bt, Du = un, fs = class {
|
|
4927
4927
|
get content() {
|
|
4928
4928
|
return this.result.css;
|
|
4929
4929
|
}
|
|
@@ -4945,7 +4945,7 @@ let kc = bt, Dc = cn, fs = class {
|
|
|
4945
4945
|
get root() {
|
|
4946
4946
|
if (this._root)
|
|
4947
4947
|
return this._root;
|
|
4948
|
-
let t, e =
|
|
4948
|
+
let t, e = Nu;
|
|
4949
4949
|
try {
|
|
4950
4950
|
t = e(this._css, this._opts);
|
|
4951
4951
|
} catch (s) {
|
|
@@ -4960,18 +4960,18 @@ let kc = bt, Dc = cn, fs = class {
|
|
|
4960
4960
|
}
|
|
4961
4961
|
constructor(t, e, s) {
|
|
4962
4962
|
e = e.toString(), this.stringified = !1, this._processor = t, this._css = e, this._opts = s, this._map = void 0;
|
|
4963
|
-
let r, i =
|
|
4964
|
-
this.result = new
|
|
4963
|
+
let r, i = ku;
|
|
4964
|
+
this.result = new Tu(this._processor, r, this._opts), this.result.css = e;
|
|
4965
4965
|
let o = this;
|
|
4966
4966
|
Object.defineProperty(this.result, "root", {
|
|
4967
4967
|
get() {
|
|
4968
4968
|
return o.root;
|
|
4969
4969
|
}
|
|
4970
4970
|
});
|
|
4971
|
-
let a = new
|
|
4971
|
+
let a = new Mu(i, r, this._opts, e);
|
|
4972
4972
|
if (a.isMap()) {
|
|
4973
|
-
let [n,
|
|
4974
|
-
n && (this.result.css = n),
|
|
4973
|
+
let [n, u] = a.generate();
|
|
4974
|
+
n && (this.result.css = n), u && (this.result.map = u);
|
|
4975
4975
|
} else
|
|
4976
4976
|
a.clearAnnotation(), this.result.css = a.css;
|
|
4977
4977
|
}
|
|
@@ -4989,7 +4989,7 @@ let kc = bt, Dc = cn, fs = class {
|
|
|
4989
4989
|
return this.result;
|
|
4990
4990
|
}
|
|
4991
4991
|
then(t, e) {
|
|
4992
|
-
return process.env.NODE_ENV !== "production" && ("from" in this._opts ||
|
|
4992
|
+
return process.env.NODE_ENV !== "production" && ("from" in this._opts || Du(
|
|
4993
4993
|
"Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."
|
|
4994
4994
|
)), this.async().then(t, e);
|
|
4995
4995
|
}
|
|
@@ -5000,9 +5000,9 @@ let kc = bt, Dc = cn, fs = class {
|
|
|
5000
5000
|
return [];
|
|
5001
5001
|
}
|
|
5002
5002
|
};
|
|
5003
|
-
var
|
|
5003
|
+
var Ru = fs;
|
|
5004
5004
|
fs.default = fs;
|
|
5005
|
-
let
|
|
5005
|
+
let Ou = As, Au = pn, Iu = Ru, Pu = Ie, De = class {
|
|
5006
5006
|
constructor(t = []) {
|
|
5007
5007
|
this.version = "8.5.6", this.plugins = this.normalize(t);
|
|
5008
5008
|
}
|
|
@@ -5025,17 +5025,17 @@ let Oc = As, Ac = pn, Ic = Rc, Pc = Ie, De = class {
|
|
|
5025
5025
|
return e;
|
|
5026
5026
|
}
|
|
5027
5027
|
process(t, e = {}) {
|
|
5028
|
-
return !this.plugins.length && !e.parser && !e.stringifier && !e.syntax ? new
|
|
5028
|
+
return !this.plugins.length && !e.parser && !e.stringifier && !e.syntax ? new Iu(this, t, e) : new Au(this, t, e);
|
|
5029
5029
|
}
|
|
5030
5030
|
use(t) {
|
|
5031
5031
|
return this.plugins = this.plugins.concat(this.normalize([t])), this;
|
|
5032
5032
|
}
|
|
5033
5033
|
};
|
|
5034
|
-
var
|
|
5034
|
+
var Lu = De;
|
|
5035
5035
|
De.default = De;
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
let dn = Os, fn = St,
|
|
5036
|
+
Pu.registerProcessor(De);
|
|
5037
|
+
Ou.registerProcessor(De);
|
|
5038
|
+
let dn = Os, fn = St, Fu = ee, _u = ks, mn = xt, gn = As, Bu = Ul, Uu = Ct, Wu = pn, ju = en, Vu = vt, zu = Ps, Fs = Lu, Yu = Ls, yn = Ie, wn = Is, Gu = bt, Zu = ln;
|
|
5039
5039
|
function D(...t) {
|
|
5040
5040
|
return t.length === 1 && Array.isArray(t[0]) && (t = t[0]), new Fs(t);
|
|
5041
5041
|
}
|
|
@@ -5061,33 +5061,33 @@ https://www.w3ctech.com/topic/2226`
|
|
|
5061
5061
|
return D([r(n)]).process(o, a);
|
|
5062
5062
|
}, r;
|
|
5063
5063
|
};
|
|
5064
|
-
D.stringify =
|
|
5065
|
-
D.parse =
|
|
5066
|
-
D.fromJSON =
|
|
5067
|
-
D.list =
|
|
5064
|
+
D.stringify = Gu;
|
|
5065
|
+
D.parse = zu;
|
|
5066
|
+
D.fromJSON = Bu;
|
|
5067
|
+
D.list = ju;
|
|
5068
5068
|
D.comment = (t) => new fn(t);
|
|
5069
5069
|
D.atRule = (t) => new dn(t);
|
|
5070
5070
|
D.decl = (t) => new mn(t);
|
|
5071
5071
|
D.rule = (t) => new wn(t);
|
|
5072
5072
|
D.root = (t) => new yn(t);
|
|
5073
5073
|
D.document = (t) => new gn(t);
|
|
5074
|
-
D.CssSyntaxError =
|
|
5074
|
+
D.CssSyntaxError = _u;
|
|
5075
5075
|
D.Declaration = mn;
|
|
5076
|
-
D.Container =
|
|
5076
|
+
D.Container = Fu;
|
|
5077
5077
|
D.Processor = Fs;
|
|
5078
5078
|
D.Document = gn;
|
|
5079
5079
|
D.Comment = fn;
|
|
5080
|
-
D.Warning =
|
|
5080
|
+
D.Warning = Zu;
|
|
5081
5081
|
D.AtRule = dn;
|
|
5082
|
-
D.Result =
|
|
5083
|
-
D.Input =
|
|
5082
|
+
D.Result = Yu;
|
|
5083
|
+
D.Input = Uu;
|
|
5084
5084
|
D.Rule = wn;
|
|
5085
5085
|
D.Root = yn;
|
|
5086
|
-
D.Node =
|
|
5087
|
-
|
|
5088
|
-
var
|
|
5086
|
+
D.Node = Vu;
|
|
5087
|
+
Wu.registerPostcss(D);
|
|
5088
|
+
var Xu = D;
|
|
5089
5089
|
D.default = D;
|
|
5090
|
-
const A = /* @__PURE__ */ il(
|
|
5090
|
+
const A = /* @__PURE__ */ il(Xu);
|
|
5091
5091
|
A.stringify;
|
|
5092
5092
|
A.fromJSON;
|
|
5093
5093
|
A.plugin;
|
|
@@ -5112,7 +5112,7 @@ A.Input;
|
|
|
5112
5112
|
A.Rule;
|
|
5113
5113
|
A.Root;
|
|
5114
5114
|
A.Node;
|
|
5115
|
-
function
|
|
5115
|
+
function Hu(t) {
|
|
5116
5116
|
const e = {}, s = /;(?![^(]*\))/g, r = /:(.+)/, i = /\/\*.*?\*\//g;
|
|
5117
5117
|
return t.replace(i, "").split(s).forEach(function(o) {
|
|
5118
5118
|
if (o) {
|
|
@@ -5126,12 +5126,12 @@ function _r(t) {
|
|
|
5126
5126
|
for (const s in t) {
|
|
5127
5127
|
const r = t[s];
|
|
5128
5128
|
if (typeof r != "string") continue;
|
|
5129
|
-
const i =
|
|
5129
|
+
const i = Ku(s);
|
|
5130
5130
|
e.push(`${i}: ${r};`);
|
|
5131
5131
|
}
|
|
5132
5132
|
return e.join(" ");
|
|
5133
5133
|
}
|
|
5134
|
-
const
|
|
5134
|
+
const Ju = /-([a-z])/g, $u = /^--[a-zA-Z0-9-]+$/, ms = (t) => $u.test(t) ? t : t.replace(Ju, (e, s) => s ? s.toUpperCase() : ""), Qu = /\B([A-Z])/g, Ku = (t) => t.replace(Qu, "-$1").toLowerCase();
|
|
5135
5135
|
class Q {
|
|
5136
5136
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any
|
|
5137
5137
|
constructor(...e) {
|
|
@@ -5294,7 +5294,7 @@ class Bs extends Q {
|
|
|
5294
5294
|
this.firstChild = null, this.lastChild = null, this.appendChild(this.ownerDocument.createTextNode(e));
|
|
5295
5295
|
}
|
|
5296
5296
|
get classList() {
|
|
5297
|
-
return new
|
|
5297
|
+
return new eh(
|
|
5298
5298
|
this.attributes.class,
|
|
5299
5299
|
(e) => {
|
|
5300
5300
|
this.attributes.class = e;
|
|
@@ -5308,7 +5308,7 @@ class Bs extends Q {
|
|
|
5308
5308
|
return this.attributes.class || "";
|
|
5309
5309
|
}
|
|
5310
5310
|
get style() {
|
|
5311
|
-
const e = this.attributes.style ?
|
|
5311
|
+
const e = this.attributes.style ? Hu(this.attributes.style) : {}, s = /\B([A-Z])/g;
|
|
5312
5312
|
return e.setProperty = (r, i, o) => {
|
|
5313
5313
|
if (s.test(r)) return;
|
|
5314
5314
|
const a = ms(r);
|
|
@@ -5356,7 +5356,7 @@ class Bs extends Q {
|
|
|
5356
5356
|
return `${this.tagName} ${e}`;
|
|
5357
5357
|
}
|
|
5358
5358
|
}
|
|
5359
|
-
class
|
|
5359
|
+
class qu extends Bs {
|
|
5360
5360
|
constructor() {
|
|
5361
5361
|
super(...arguments), y(this, "currentTime"), y(this, "volume"), y(this, "paused"), y(this, "muted"), y(this, "playbackRate"), y(this, "loop");
|
|
5362
5362
|
}
|
|
@@ -5415,7 +5415,7 @@ class xn extends Q {
|
|
|
5415
5415
|
return `RRCDATASection data=${JSON.stringify(this.data)}`;
|
|
5416
5416
|
}
|
|
5417
5417
|
}
|
|
5418
|
-
class
|
|
5418
|
+
class eh {
|
|
5419
5419
|
constructor(e, s) {
|
|
5420
5420
|
if (y(this, "onChange"), y(this, "classes", []), y(this, "add", (...r) => {
|
|
5421
5421
|
for (const i of r) {
|
|
@@ -5457,7 +5457,7 @@ const gs = {
|
|
|
5457
5457
|
svg: "http://www.w3.org/2000/svg",
|
|
5458
5458
|
"xlink:href": "http://www.w3.org/1999/xlink",
|
|
5459
5459
|
xmlns: "http://www.w3.org/2000/xmlns/"
|
|
5460
|
-
},
|
|
5460
|
+
}, th = {
|
|
5461
5461
|
altglyph: "altGlyph",
|
|
5462
5462
|
altglyphdef: "altGlyphDef",
|
|
5463
5463
|
altglyphitem: "altGlyphItem",
|
|
@@ -5496,15 +5496,15 @@ const gs = {
|
|
|
5496
5496
|
radialgradient: "radialGradient"
|
|
5497
5497
|
};
|
|
5498
5498
|
let G = null;
|
|
5499
|
-
function
|
|
5500
|
-
t =
|
|
5499
|
+
function ct(t, e, s, r = e.mirror || e.ownerDocument.mirror) {
|
|
5500
|
+
t = sh(
|
|
5501
5501
|
t,
|
|
5502
5502
|
e,
|
|
5503
5503
|
s,
|
|
5504
5504
|
r
|
|
5505
|
-
), Mn(t, e, s, r),
|
|
5505
|
+
), Mn(t, e, s, r), rh(t, e, s);
|
|
5506
5506
|
}
|
|
5507
|
-
function
|
|
5507
|
+
function sh(t, e, s, r) {
|
|
5508
5508
|
var i;
|
|
5509
5509
|
if (s.afterAppend && !G && (G = /* @__PURE__ */ new WeakSet(), setTimeout(() => {
|
|
5510
5510
|
G = null;
|
|
@@ -5530,7 +5530,7 @@ function su(t, e, s, r) {
|
|
|
5530
5530
|
case "IFRAME": {
|
|
5531
5531
|
const n = t.contentDocument;
|
|
5532
5532
|
if (!n) break;
|
|
5533
|
-
|
|
5533
|
+
ct(
|
|
5534
5534
|
n,
|
|
5535
5535
|
e.contentDocument,
|
|
5536
5536
|
s,
|
|
@@ -5545,13 +5545,13 @@ function su(t, e, s, r) {
|
|
|
5545
5545
|
a.shadowRoot,
|
|
5546
5546
|
s,
|
|
5547
5547
|
r
|
|
5548
|
-
)),
|
|
5548
|
+
)), ih(o, a, r);
|
|
5549
5549
|
break;
|
|
5550
5550
|
}
|
|
5551
5551
|
}
|
|
5552
5552
|
return t;
|
|
5553
5553
|
}
|
|
5554
|
-
function
|
|
5554
|
+
function rh(t, e, s) {
|
|
5555
5555
|
var r;
|
|
5556
5556
|
switch (e.RRNodeType) {
|
|
5557
5557
|
case M.Document: {
|
|
@@ -5573,8 +5573,8 @@ function ru(t, e, s) {
|
|
|
5573
5573
|
if (a.rr_dataURL !== null) {
|
|
5574
5574
|
const n = document.createElement("img");
|
|
5575
5575
|
n.onload = () => {
|
|
5576
|
-
const
|
|
5577
|
-
|
|
5576
|
+
const u = i.getContext("2d");
|
|
5577
|
+
u && u.drawImage(n, 0, 0, n.width, n.height);
|
|
5578
5578
|
}, n.src = a.rr_dataURL;
|
|
5579
5579
|
}
|
|
5580
5580
|
a.canvasMutations.forEach(
|
|
@@ -5605,17 +5605,17 @@ function ru(t, e, s) {
|
|
|
5605
5605
|
}
|
|
5606
5606
|
G != null && G.has(t) && (G.delete(t), (r = s.afterAppend) == null || r.call(s, t, s.mirror.getId(t)));
|
|
5607
5607
|
}
|
|
5608
|
-
function
|
|
5608
|
+
function ih(t, e, s) {
|
|
5609
5609
|
const r = t.attributes, i = e.attributes;
|
|
5610
5610
|
for (const o in i) {
|
|
5611
5611
|
const a = i[o], n = s.getMeta(e);
|
|
5612
5612
|
if (n != null && n.isSVG && gs[o])
|
|
5613
5613
|
t.setAttributeNS(gs[o], o, a);
|
|
5614
5614
|
else if (e.tagName === "CANVAS" && o === "rr_dataURL") {
|
|
5615
|
-
const
|
|
5616
|
-
|
|
5615
|
+
const u = document.createElement("img");
|
|
5616
|
+
u.src = a, u.onload = () => {
|
|
5617
5617
|
const l = t.getContext("2d");
|
|
5618
|
-
l && l.drawImage(
|
|
5618
|
+
l && l.drawImage(u, 0, 0, u.width, u.height);
|
|
5619
5619
|
};
|
|
5620
5620
|
} else {
|
|
5621
5621
|
if (e.tagName === "IFRAME" && o === "srcdoc") continue;
|
|
@@ -5629,42 +5629,42 @@ function iu(t, e, s) {
|
|
|
5629
5629
|
function Mn(t, e, s, r) {
|
|
5630
5630
|
const i = Array.from(t.childNodes), o = e.childNodes;
|
|
5631
5631
|
if (i.length === 0 && o.length === 0) return;
|
|
5632
|
-
let a = 0, n = i.length - 1,
|
|
5633
|
-
for (; a <= n &&
|
|
5634
|
-
if (
|
|
5635
|
-
|
|
5636
|
-
else if (
|
|
5637
|
-
|
|
5632
|
+
let a = 0, n = i.length - 1, u = 0, l = o.length - 1, h = i[a], c = i[n], p = o[u], m = o[l], v, d;
|
|
5633
|
+
for (; a <= n && u <= l; )
|
|
5634
|
+
if (h === void 0)
|
|
5635
|
+
h = i[++a];
|
|
5636
|
+
else if (c === void 0)
|
|
5637
|
+
c = i[--n];
|
|
5638
5638
|
else if (
|
|
5639
5639
|
// same first node?
|
|
5640
|
-
se(
|
|
5640
|
+
se(h, p, s.mirror, r)
|
|
5641
5641
|
)
|
|
5642
|
-
|
|
5642
|
+
h = i[++a], p = o[++u];
|
|
5643
5643
|
else if (
|
|
5644
5644
|
// same last node?
|
|
5645
|
-
se(
|
|
5645
|
+
se(c, m, s.mirror, r)
|
|
5646
5646
|
)
|
|
5647
|
-
|
|
5647
|
+
c = i[--n], m = o[--l];
|
|
5648
5648
|
else if (
|
|
5649
5649
|
// is the first old node the same as the last new node?
|
|
5650
|
-
se(
|
|
5650
|
+
se(h, m, s.mirror, r)
|
|
5651
5651
|
) {
|
|
5652
5652
|
try {
|
|
5653
|
-
t.insertBefore(
|
|
5653
|
+
t.insertBefore(h, c.nextSibling);
|
|
5654
5654
|
} catch (w) {
|
|
5655
5655
|
console.warn(w);
|
|
5656
5656
|
}
|
|
5657
|
-
|
|
5657
|
+
h = i[++a], m = o[--l];
|
|
5658
5658
|
} else if (
|
|
5659
5659
|
// is the last old node the same as the first new node?
|
|
5660
|
-
se(
|
|
5660
|
+
se(c, p, s.mirror, r)
|
|
5661
5661
|
) {
|
|
5662
5662
|
try {
|
|
5663
|
-
t.insertBefore(
|
|
5663
|
+
t.insertBefore(c, h);
|
|
5664
5664
|
} catch (w) {
|
|
5665
5665
|
console.warn(w);
|
|
5666
5666
|
}
|
|
5667
|
-
|
|
5667
|
+
c = i[--n], p = o[++u];
|
|
5668
5668
|
} else {
|
|
5669
5669
|
if (!v) {
|
|
5670
5670
|
v = {};
|
|
@@ -5677,7 +5677,7 @@ function Mn(t, e, s, r) {
|
|
|
5677
5677
|
const w = i[d];
|
|
5678
5678
|
if (d !== void 0 && w && se(w, p, s.mirror, r)) {
|
|
5679
5679
|
try {
|
|
5680
|
-
t.insertBefore(w,
|
|
5680
|
+
t.insertBefore(w, h);
|
|
5681
5681
|
} catch (g) {
|
|
5682
5682
|
console.warn(g);
|
|
5683
5683
|
}
|
|
@@ -5688,31 +5688,31 @@ function Mn(t, e, s, r) {
|
|
|
5688
5688
|
s.mirror,
|
|
5689
5689
|
r
|
|
5690
5690
|
);
|
|
5691
|
-
t.nodeName === "#document" &&
|
|
5691
|
+
t.nodeName === "#document" && h && /**
|
|
5692
5692
|
* Special case 1: one document isn't allowed to have two doctype nodes at the same time, so we need to remove the old one first before inserting the new one.
|
|
5693
5693
|
* How this case happens: A parent document in the old tree already has a doctype node with an id e.g. #1. A new full snapshot rebuilds the replayer with a new doctype node with another id #2. According to the algorithm, the new doctype node will be inserted before the old one, which is not allowed by the Document standard.
|
|
5694
5694
|
*/
|
|
5695
|
-
(g.nodeType === g.DOCUMENT_TYPE_NODE &&
|
|
5695
|
+
(g.nodeType === g.DOCUMENT_TYPE_NODE && h.nodeType === h.DOCUMENT_TYPE_NODE || /**
|
|
5696
5696
|
* Special case 2: one document isn't allowed to have two HTMLElements at the same time, so we need to remove the old one first before inserting the new one.
|
|
5697
5697
|
* How this case happens: A mounted iframe element has an automatically created HTML element. We should delete it before inserting a serialized one. Otherwise, an error 'Only one element on document allowed' will be thrown.
|
|
5698
5698
|
*/
|
|
5699
|
-
g.nodeType === g.ELEMENT_NODE &&
|
|
5699
|
+
g.nodeType === g.ELEMENT_NODE && h.nodeType === h.ELEMENT_NODE) && (t.removeChild(h), s.mirror.removeNodeFromMap(h), h = i[++a]);
|
|
5700
5700
|
try {
|
|
5701
|
-
t.insertBefore(g,
|
|
5701
|
+
t.insertBefore(g, h || null);
|
|
5702
5702
|
} catch (E) {
|
|
5703
5703
|
console.warn(E);
|
|
5704
5704
|
}
|
|
5705
5705
|
}
|
|
5706
|
-
p = o[++
|
|
5706
|
+
p = o[++u];
|
|
5707
5707
|
}
|
|
5708
5708
|
if (a > n) {
|
|
5709
5709
|
const w = o[l + 1];
|
|
5710
5710
|
let g = null;
|
|
5711
5711
|
for (w && (g = s.mirror.getNode(
|
|
5712
5712
|
r.getId(w)
|
|
5713
|
-
));
|
|
5713
|
+
)); u <= l; ++u) {
|
|
5714
5714
|
const E = pt(
|
|
5715
|
-
o[
|
|
5715
|
+
o[u],
|
|
5716
5716
|
s.mirror,
|
|
5717
5717
|
r
|
|
5718
5718
|
);
|
|
@@ -5722,7 +5722,7 @@ function Mn(t, e, s, r) {
|
|
|
5722
5722
|
console.warn(I);
|
|
5723
5723
|
}
|
|
5724
5724
|
}
|
|
5725
|
-
} else if (
|
|
5725
|
+
} else if (u > l)
|
|
5726
5726
|
for (; a <= n; a++) {
|
|
5727
5727
|
const w = i[a];
|
|
5728
5728
|
if (!(!w || w.parentNode !== t))
|
|
@@ -5734,7 +5734,7 @@ function Mn(t, e, s, r) {
|
|
|
5734
5734
|
}
|
|
5735
5735
|
let S = t.firstChild, f = e.firstChild;
|
|
5736
5736
|
for (; S !== null && f !== null; )
|
|
5737
|
-
|
|
5737
|
+
ct(S, f, s, r), S = S.nextSibling, f = f.nextSibling;
|
|
5738
5738
|
}
|
|
5739
5739
|
function pt(t, e, s) {
|
|
5740
5740
|
const r = s.getId(t), i = s.getMeta(t);
|
|
@@ -5753,7 +5753,7 @@ function pt(t, e, s) {
|
|
|
5753
5753
|
break;
|
|
5754
5754
|
case M.Element: {
|
|
5755
5755
|
let a = t.tagName.toLowerCase();
|
|
5756
|
-
a =
|
|
5756
|
+
a = th[a] || a, i && "isSVG" in i && i != null && i.isSVG ? o = document.createElementNS(gs.svg, a) : o = document.createElement(t.tagName);
|
|
5757
5757
|
break;
|
|
5758
5758
|
}
|
|
5759
5759
|
case M.Text:
|
|
@@ -5780,9 +5780,9 @@ function se(t, e, s, r) {
|
|
|
5780
5780
|
const i = s.getId(t), o = r.getId(e);
|
|
5781
5781
|
return i === -1 || i !== o ? !1 : Ws(t, e);
|
|
5782
5782
|
}
|
|
5783
|
-
class
|
|
5783
|
+
class ce extends _s {
|
|
5784
5784
|
constructor(e) {
|
|
5785
|
-
super(), y(this, "UNSERIALIZED_STARTING_ID", -2), y(this, "_unserializedId", this.UNSERIALIZED_STARTING_ID), y(this, "mirror",
|
|
5785
|
+
super(), y(this, "UNSERIALIZED_STARTING_ID", -2), y(this, "_unserializedId", this.UNSERIALIZED_STARTING_ID), y(this, "mirror", mh()), y(this, "scrollData", null), e && (this.mirror = e);
|
|
5786
5786
|
}
|
|
5787
5787
|
/**
|
|
5788
5788
|
* Every time the id is used, it will minus 1 automatically to avoid collisions.
|
|
@@ -5791,10 +5791,10 @@ class he extends _s {
|
|
|
5791
5791
|
return this._unserializedId--;
|
|
5792
5792
|
}
|
|
5793
5793
|
createDocument(e, s, r) {
|
|
5794
|
-
return new
|
|
5794
|
+
return new ce();
|
|
5795
5795
|
}
|
|
5796
5796
|
createDocumentType(e, s, r) {
|
|
5797
|
-
const i = new
|
|
5797
|
+
const i = new nh(
|
|
5798
5798
|
e,
|
|
5799
5799
|
s,
|
|
5800
5800
|
r
|
|
@@ -5807,16 +5807,16 @@ class he extends _s {
|
|
|
5807
5807
|
switch (s) {
|
|
5808
5808
|
case "AUDIO":
|
|
5809
5809
|
case "VIDEO":
|
|
5810
|
-
r = new
|
|
5810
|
+
r = new oh(s);
|
|
5811
5811
|
break;
|
|
5812
5812
|
case "IFRAME":
|
|
5813
|
-
r = new
|
|
5813
|
+
r = new uh(s, this.mirror);
|
|
5814
5814
|
break;
|
|
5815
5815
|
case "CANVAS":
|
|
5816
|
-
r = new
|
|
5816
|
+
r = new ah(s);
|
|
5817
5817
|
break;
|
|
5818
5818
|
case "STYLE":
|
|
5819
|
-
r = new
|
|
5819
|
+
r = new lh(s);
|
|
5820
5820
|
break;
|
|
5821
5821
|
default:
|
|
5822
5822
|
r = new Et(s);
|
|
@@ -5825,15 +5825,15 @@ class he extends _s {
|
|
|
5825
5825
|
return r.ownerDocument = this, r;
|
|
5826
5826
|
}
|
|
5827
5827
|
createComment(e) {
|
|
5828
|
-
const s = new
|
|
5828
|
+
const s = new ch(e);
|
|
5829
5829
|
return s.ownerDocument = this, s;
|
|
5830
5830
|
}
|
|
5831
5831
|
createCDATASection(e) {
|
|
5832
|
-
const s = new
|
|
5832
|
+
const s = new ph(e);
|
|
5833
5833
|
return s.ownerDocument = this, s;
|
|
5834
5834
|
}
|
|
5835
5835
|
createTextNode(e) {
|
|
5836
|
-
const s = new
|
|
5836
|
+
const s = new hh(e);
|
|
5837
5837
|
return s.ownerDocument = this, s;
|
|
5838
5838
|
}
|
|
5839
5839
|
destroyTree() {
|
|
@@ -5843,15 +5843,15 @@ class he extends _s {
|
|
|
5843
5843
|
super.open(), this._unserializedId = this.UNSERIALIZED_STARTING_ID;
|
|
5844
5844
|
}
|
|
5845
5845
|
}
|
|
5846
|
-
const
|
|
5846
|
+
const nh = bn;
|
|
5847
5847
|
class Et extends Bs {
|
|
5848
5848
|
constructor() {
|
|
5849
5849
|
super(...arguments), y(this, "inputData", null), y(this, "scrollData", null);
|
|
5850
5850
|
}
|
|
5851
5851
|
}
|
|
5852
|
-
class
|
|
5852
|
+
class oh extends qu {
|
|
5853
5853
|
}
|
|
5854
|
-
class
|
|
5854
|
+
class ah extends Et {
|
|
5855
5855
|
constructor() {
|
|
5856
5856
|
super(...arguments), y(this, "rr_dataURL", null), y(this, "canvasMutations", []);
|
|
5857
5857
|
}
|
|
@@ -5862,18 +5862,18 @@ class au extends Et {
|
|
|
5862
5862
|
return null;
|
|
5863
5863
|
}
|
|
5864
5864
|
}
|
|
5865
|
-
class
|
|
5865
|
+
class lh extends Et {
|
|
5866
5866
|
constructor() {
|
|
5867
5867
|
super(...arguments), y(this, "rules", []);
|
|
5868
5868
|
}
|
|
5869
5869
|
}
|
|
5870
|
-
class
|
|
5870
|
+
class uh extends Et {
|
|
5871
5871
|
constructor(e, s) {
|
|
5872
|
-
super(e), y(this, "contentDocument", new
|
|
5872
|
+
super(e), y(this, "contentDocument", new ce()), this.contentDocument.mirror = s;
|
|
5873
5873
|
}
|
|
5874
5874
|
}
|
|
5875
|
-
const
|
|
5876
|
-
function
|
|
5875
|
+
const hh = vn, ch = Sn, ph = xn;
|
|
5876
|
+
function dh(t) {
|
|
5877
5877
|
return t instanceof HTMLFormElement ? "FORM" : t.tagName.toUpperCase();
|
|
5878
5878
|
}
|
|
5879
5879
|
function Nn(t, e, s, r) {
|
|
@@ -5892,12 +5892,12 @@ function Nn(t, e, s, r) {
|
|
|
5892
5892
|
break;
|
|
5893
5893
|
}
|
|
5894
5894
|
case U.ELEMENT_NODE: {
|
|
5895
|
-
const a = t, n =
|
|
5895
|
+
const a = t, n = dh(a);
|
|
5896
5896
|
i = e.createElement(n);
|
|
5897
|
-
const
|
|
5898
|
-
for (const { name: l, value:
|
|
5899
|
-
|
|
5900
|
-
a.scrollLeft && (
|
|
5897
|
+
const u = i;
|
|
5898
|
+
for (const { name: l, value: h } of Array.from(a.attributes))
|
|
5899
|
+
u.attributes[l] = h;
|
|
5900
|
+
a.scrollLeft && (u.scrollLeft = a.scrollLeft), a.scrollTop && (u.scrollTop = a.scrollTop);
|
|
5901
5901
|
break;
|
|
5902
5902
|
}
|
|
5903
5903
|
case U.TEXT_NODE:
|
|
@@ -5916,9 +5916,9 @@ function Nn(t, e, s, r) {
|
|
|
5916
5916
|
return null;
|
|
5917
5917
|
}
|
|
5918
5918
|
let o = s.getMeta(t);
|
|
5919
|
-
return e instanceof
|
|
5919
|
+
return e instanceof ce && (o || (o = Tn(i, e.unserializedId), s.add(t, o)), e.mirror.add(i, { ...o })), i;
|
|
5920
5920
|
}
|
|
5921
|
-
function
|
|
5921
|
+
function fh(t, e = rl(), s = new ce()) {
|
|
5922
5922
|
function r(i, o) {
|
|
5923
5923
|
const a = Nn(i, s, e, o);
|
|
5924
5924
|
if (a !== null)
|
|
@@ -5933,10 +5933,10 @@ function fu(t, e = rl(), s = new he()) {
|
|
|
5933
5933
|
}
|
|
5934
5934
|
return r(t, null), s;
|
|
5935
5935
|
}
|
|
5936
|
-
function
|
|
5937
|
-
return new
|
|
5936
|
+
function mh() {
|
|
5937
|
+
return new gh();
|
|
5938
5938
|
}
|
|
5939
|
-
class
|
|
5939
|
+
class gh {
|
|
5940
5940
|
constructor() {
|
|
5941
5941
|
y(this, "idNodeMap", /* @__PURE__ */ new Map()), y(this, "nodeMetaMap", /* @__PURE__ */ new WeakMap());
|
|
5942
5942
|
}
|
|
@@ -6044,7 +6044,7 @@ function kn(t) {
|
|
|
6044
6044
|
});
|
|
6045
6045
|
} };
|
|
6046
6046
|
}
|
|
6047
|
-
const
|
|
6047
|
+
const yh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6048
6048
|
__proto__: null,
|
|
6049
6049
|
default: kn
|
|
6050
6050
|
}, Symbol.toStringTag, { value: "Module" })), Br = /* @__PURE__ */ new Map();
|
|
@@ -6096,7 +6096,7 @@ function $(t, e, s) {
|
|
|
6096
6096
|
return r;
|
|
6097
6097
|
};
|
|
6098
6098
|
}
|
|
6099
|
-
async function
|
|
6099
|
+
async function wh({
|
|
6100
6100
|
event: t,
|
|
6101
6101
|
mutations: e,
|
|
6102
6102
|
target: s,
|
|
@@ -6111,28 +6111,28 @@ async function wu({
|
|
|
6111
6111
|
const a = e.map(
|
|
6112
6112
|
async (n) => Promise.all(n.args.map($(r, o)))
|
|
6113
6113
|
);
|
|
6114
|
-
(await Promise.all(a)).forEach((n,
|
|
6115
|
-
const l = e[
|
|
6114
|
+
(await Promise.all(a)).forEach((n, u) => {
|
|
6115
|
+
const l = e[u];
|
|
6116
6116
|
try {
|
|
6117
6117
|
if (l.setter) {
|
|
6118
6118
|
o[l.property] = l.args[0];
|
|
6119
6119
|
return;
|
|
6120
6120
|
}
|
|
6121
|
-
const
|
|
6122
|
-
l.property === "drawImage" && typeof l.args[0] == "string" ? (r.get(t),
|
|
6123
|
-
} catch (
|
|
6124
|
-
i(l,
|
|
6121
|
+
const h = o[l.property];
|
|
6122
|
+
l.property === "drawImage" && typeof l.args[0] == "string" ? (r.get(t), h.apply(o, l.args)) : h.apply(o, n);
|
|
6123
|
+
} catch (h) {
|
|
6124
|
+
i(l, h);
|
|
6125
6125
|
}
|
|
6126
6126
|
});
|
|
6127
6127
|
}
|
|
6128
|
-
function
|
|
6128
|
+
function bh(t, e) {
|
|
6129
6129
|
try {
|
|
6130
6130
|
return e === ot.WebGL ? t.getContext("webgl") || t.getContext("experimental-webgl") : t.getContext("webgl2");
|
|
6131
6131
|
} catch {
|
|
6132
6132
|
return null;
|
|
6133
6133
|
}
|
|
6134
6134
|
}
|
|
6135
|
-
const
|
|
6135
|
+
const vh = [
|
|
6136
6136
|
"WebGLActiveInfo",
|
|
6137
6137
|
"WebGLBuffer",
|
|
6138
6138
|
"WebGLFramebuffer",
|
|
@@ -6144,14 +6144,14 @@ const vu = [
|
|
|
6144
6144
|
"WebGLUniformLocation",
|
|
6145
6145
|
"WebGLVertexArrayObject"
|
|
6146
6146
|
];
|
|
6147
|
-
function
|
|
6147
|
+
function Sh(t, e) {
|
|
6148
6148
|
if (!(e != null && e.constructor)) return;
|
|
6149
6149
|
const { name: s } = e.constructor;
|
|
6150
|
-
if (!
|
|
6150
|
+
if (!vh.includes(s)) return;
|
|
6151
6151
|
const r = Dn(t, s);
|
|
6152
6152
|
r.includes(e) || r.push(e);
|
|
6153
6153
|
}
|
|
6154
|
-
async function
|
|
6154
|
+
async function xh({
|
|
6155
6155
|
mutation: t,
|
|
6156
6156
|
target: e,
|
|
6157
6157
|
type: s,
|
|
@@ -6159,7 +6159,7 @@ async function xu({
|
|
|
6159
6159
|
errorHandler: i
|
|
6160
6160
|
}) {
|
|
6161
6161
|
try {
|
|
6162
|
-
const o =
|
|
6162
|
+
const o = bh(e, s);
|
|
6163
6163
|
if (!o) return;
|
|
6164
6164
|
if (t.setter) {
|
|
6165
6165
|
o[t.property] = t.args[0];
|
|
@@ -6167,8 +6167,8 @@ async function xu({
|
|
|
6167
6167
|
}
|
|
6168
6168
|
const a = o[t.property], n = await Promise.all(
|
|
6169
6169
|
t.args.map($(r, o))
|
|
6170
|
-
),
|
|
6171
|
-
|
|
6170
|
+
), u = a.apply(o, n);
|
|
6171
|
+
Sh(o, u);
|
|
6172
6172
|
const l = !1;
|
|
6173
6173
|
} catch (o) {
|
|
6174
6174
|
i(t, o);
|
|
@@ -6185,9 +6185,9 @@ async function Ur({
|
|
|
6185
6185
|
try {
|
|
6186
6186
|
const a = i.get(t) || e, n = "commands" in a ? a.commands : [a];
|
|
6187
6187
|
if ([ot.WebGL, ot.WebGL2].includes(e.type)) {
|
|
6188
|
-
for (let
|
|
6189
|
-
const l = n[
|
|
6190
|
-
await
|
|
6188
|
+
for (let u = 0; u < n.length; u++) {
|
|
6189
|
+
const l = n[u];
|
|
6190
|
+
await xh({
|
|
6191
6191
|
mutation: l,
|
|
6192
6192
|
type: e.type,
|
|
6193
6193
|
target: s,
|
|
@@ -6197,7 +6197,7 @@ async function Ur({
|
|
|
6197
6197
|
}
|
|
6198
6198
|
return;
|
|
6199
6199
|
}
|
|
6200
|
-
await
|
|
6200
|
+
await wh({
|
|
6201
6201
|
event: t,
|
|
6202
6202
|
mutations: n,
|
|
6203
6203
|
target: s,
|
|
@@ -6282,7 +6282,7 @@ function An(t, e) {
|
|
|
6282
6282
|
var s = Wr(zr(Ft(t.states[t.initial].entry).map(function(a) {
|
|
6283
6283
|
return jr(a, e.actions);
|
|
6284
6284
|
}), t.context, Rn), 2), r = s[0], i = s[1], o = { config: t, _options: e, initialState: { value: t.initial, actions: r, context: i, matches: dt(t.initial) }, transition: function(a, n) {
|
|
6285
|
-
var
|
|
6285
|
+
var u, l, h = typeof a == "string" ? { value: a, context: t.context } : a, c = h.value, p = h.context, m = On(n), v = t.states[c];
|
|
6286
6286
|
if (v.on) {
|
|
6287
6287
|
var d = Ft(v.on[m.type]);
|
|
6288
6288
|
try {
|
|
@@ -6295,30 +6295,30 @@ function An(t, e) {
|
|
|
6295
6295
|
throw new TypeError(Nt ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
6296
6296
|
}(d), f = S.next(); !f.done; f = S.next()) {
|
|
6297
6297
|
var w = f.value;
|
|
6298
|
-
if (w === void 0) return Vr(
|
|
6298
|
+
if (w === void 0) return Vr(c, p);
|
|
6299
6299
|
var g = typeof w == "string" ? { target: w } : w, E = g.target, I = g.actions, B = I === void 0 ? [] : I, L = g.cond, W = L === void 0 ? function() {
|
|
6300
6300
|
return !0;
|
|
6301
|
-
} : L, K = E === void 0, Pn = E ??
|
|
6301
|
+
} : L, K = E === void 0, Pn = E ?? c, Ln = t.states[Pn];
|
|
6302
6302
|
if (W(p, m)) {
|
|
6303
6303
|
var Mt = Wr(zr((K ? Ft(B) : [].concat(v.exit, B, Ln.entry).filter(function(_) {
|
|
6304
6304
|
return _;
|
|
6305
6305
|
})).map(function(_) {
|
|
6306
6306
|
return jr(_, o._options.actions);
|
|
6307
|
-
}), p, m), 3), js = Mt[0], Fn = Mt[1], _n = Mt[2], Vs = E ??
|
|
6308
|
-
return { value: Vs, context: Fn, actions: js, changed: E !==
|
|
6307
|
+
}), p, m), 3), js = Mt[0], Fn = Mt[1], _n = Mt[2], Vs = E ?? c;
|
|
6308
|
+
return { value: Vs, context: Fn, actions: js, changed: E !== c || js.length > 0 || _n, matches: dt(Vs) };
|
|
6309
6309
|
}
|
|
6310
6310
|
}
|
|
6311
6311
|
} catch (_) {
|
|
6312
|
-
|
|
6312
|
+
u = { error: _ };
|
|
6313
6313
|
} finally {
|
|
6314
6314
|
try {
|
|
6315
6315
|
f && !f.done && (l = S.return) && l.call(S);
|
|
6316
6316
|
} finally {
|
|
6317
|
-
if (
|
|
6317
|
+
if (u) throw u.error;
|
|
6318
6318
|
}
|
|
6319
6319
|
}
|
|
6320
6320
|
}
|
|
6321
|
-
return Vr(
|
|
6321
|
+
return Vr(c, p);
|
|
6322
6322
|
} };
|
|
6323
6323
|
return o;
|
|
6324
6324
|
}
|
|
@@ -6352,7 +6352,7 @@ function In(t) {
|
|
|
6352
6352
|
} };
|
|
6353
6353
|
return i;
|
|
6354
6354
|
}
|
|
6355
|
-
class
|
|
6355
|
+
class Ch {
|
|
6356
6356
|
constructor(e = [], s) {
|
|
6357
6357
|
b(this, "timeOffset", 0), b(this, "speed"), b(this, "actions"), b(this, "raf", null), b(this, "lastTimestamp"), this.actions = e, this.speed = s.speed;
|
|
6358
6358
|
}
|
|
@@ -6413,7 +6413,7 @@ function Gr(t, e) {
|
|
|
6413
6413
|
}
|
|
6414
6414
|
return t.delay = t.timestamp - e, t.delay;
|
|
6415
6415
|
}
|
|
6416
|
-
function
|
|
6416
|
+
function Eh(t, e) {
|
|
6417
6417
|
for (let s = t.length - 1; s >= 0; s--) {
|
|
6418
6418
|
const r = t[s];
|
|
6419
6419
|
if (r.type === P.Meta && r.timestamp <= e)
|
|
@@ -6421,7 +6421,7 @@ function Eu(t, e) {
|
|
|
6421
6421
|
}
|
|
6422
6422
|
return t;
|
|
6423
6423
|
}
|
|
6424
|
-
function
|
|
6424
|
+
function Mh(t, { getCastFn: e, applyEventsSynchronously: s, emitter: r }) {
|
|
6425
6425
|
const i = An(
|
|
6426
6426
|
{
|
|
6427
6427
|
id: "player",
|
|
@@ -6496,26 +6496,26 @@ function Mu(t, { getCastFn: e, applyEventsSynchronously: s, emitter: r }) {
|
|
|
6496
6496
|
};
|
|
6497
6497
|
}),
|
|
6498
6498
|
play(o) {
|
|
6499
|
-
const { timer: a, events: n, baselineTime:
|
|
6499
|
+
const { timer: a, events: n, baselineTime: u } = o;
|
|
6500
6500
|
a.clear();
|
|
6501
|
-
for (const
|
|
6502
|
-
Gr(
|
|
6503
|
-
const l =
|
|
6501
|
+
for (const c of n)
|
|
6502
|
+
Gr(c, u);
|
|
6503
|
+
const l = Eh(n, u);
|
|
6504
6504
|
r.emit(N.PlayBack);
|
|
6505
|
-
const
|
|
6506
|
-
for (const
|
|
6507
|
-
if (
|
|
6508
|
-
|
|
6505
|
+
const h = new Array();
|
|
6506
|
+
for (const c of l)
|
|
6507
|
+
if (c.timestamp < u)
|
|
6508
|
+
h.push(c);
|
|
6509
6509
|
else {
|
|
6510
|
-
const p = e(
|
|
6510
|
+
const p = e(c, !1);
|
|
6511
6511
|
a.addAction({
|
|
6512
6512
|
doAction: () => {
|
|
6513
6513
|
p();
|
|
6514
6514
|
},
|
|
6515
|
-
delay:
|
|
6515
|
+
delay: c.delay
|
|
6516
6516
|
});
|
|
6517
6517
|
}
|
|
6518
|
-
s(
|
|
6518
|
+
s(h), r.emit(N.Flush), a.start();
|
|
6519
6519
|
},
|
|
6520
6520
|
pause(o) {
|
|
6521
6521
|
o.timer.clear();
|
|
@@ -6528,27 +6528,27 @@ function Mu(t, { getCastFn: e, applyEventsSynchronously: s, emitter: r }) {
|
|
|
6528
6528
|
baselineTime: (o, a) => (o.timer.start(), a.type === "TO_LIVE" && a.payload.baselineTime ? a.payload.baselineTime : Date.now())
|
|
6529
6529
|
}),
|
|
6530
6530
|
addEvent: re((o, a) => {
|
|
6531
|
-
const { baselineTime: n, timer:
|
|
6531
|
+
const { baselineTime: n, timer: u, events: l } = o;
|
|
6532
6532
|
if (a.type === "ADD_EVENT") {
|
|
6533
|
-
const { event:
|
|
6534
|
-
Gr(
|
|
6535
|
-
let
|
|
6536
|
-
if (!l[
|
|
6537
|
-
l.push(
|
|
6533
|
+
const { event: h } = a.payload;
|
|
6534
|
+
Gr(h, n);
|
|
6535
|
+
let c = l.length - 1;
|
|
6536
|
+
if (!l[c] || l[c].timestamp <= h.timestamp)
|
|
6537
|
+
l.push(h);
|
|
6538
6538
|
else {
|
|
6539
6539
|
let v = -1, d = 0;
|
|
6540
|
-
for (; d <=
|
|
6541
|
-
const S = Math.floor((d +
|
|
6542
|
-
l[S].timestamp <=
|
|
6540
|
+
for (; d <= c; ) {
|
|
6541
|
+
const S = Math.floor((d + c) / 2);
|
|
6542
|
+
l[S].timestamp <= h.timestamp ? d = S + 1 : c = S - 1;
|
|
6543
6543
|
}
|
|
6544
|
-
v === -1 && (v = d), l.splice(v, 0,
|
|
6544
|
+
v === -1 && (v = d), l.splice(v, 0, h);
|
|
6545
6545
|
}
|
|
6546
|
-
const p =
|
|
6547
|
-
p ? m() :
|
|
6546
|
+
const p = h.timestamp < n, m = e(h, p);
|
|
6547
|
+
p ? m() : u.isActive() && u.addAction({
|
|
6548
6548
|
doAction: () => {
|
|
6549
6549
|
m();
|
|
6550
6550
|
},
|
|
6551
|
-
delay:
|
|
6551
|
+
delay: h.delay
|
|
6552
6552
|
});
|
|
6553
6553
|
}
|
|
6554
6554
|
return { ...o, events: l };
|
|
@@ -6558,7 +6558,7 @@ function Mu(t, { getCastFn: e, applyEventsSynchronously: s, emitter: r }) {
|
|
|
6558
6558
|
);
|
|
6559
6559
|
return In(i);
|
|
6560
6560
|
}
|
|
6561
|
-
function
|
|
6561
|
+
function Nh(t) {
|
|
6562
6562
|
const e = An(
|
|
6563
6563
|
{
|
|
6564
6564
|
id: "speed",
|
|
@@ -6607,7 +6607,7 @@ function Nu(t) {
|
|
|
6607
6607
|
);
|
|
6608
6608
|
return In(e);
|
|
6609
6609
|
}
|
|
6610
|
-
class
|
|
6610
|
+
class Th {
|
|
6611
6611
|
constructor(e) {
|
|
6612
6612
|
b(this, "mediaMap", /* @__PURE__ */ new Map()), b(this, "warn"), b(this, "service"), b(this, "speedService"), b(this, "emitter"), b(this, "getCurrentTime"), b(this, "metadataCallbackMap", /* @__PURE__ */ new Map()), this.warn = e.warn, this.service = e.service, this.speedService = e.speedService, this.emitter = e.emitter, this.getCurrentTime = e.getCurrentTime, this.emitter.on(N.Start, this.start.bind(this)), this.emitter.on(N.SkipStart, this.start.bind(this)), this.emitter.on(N.Pause, this.pause.bind(this)), this.emitter.on(N.Finish, this.pause.bind(this)), this.speedService.subscribe(() => {
|
|
6613
6613
|
this.syncAllMediaElements();
|
|
@@ -6661,27 +6661,27 @@ class Tu {
|
|
|
6661
6661
|
timeOffset: s,
|
|
6662
6662
|
mutation: r
|
|
6663
6663
|
}) {
|
|
6664
|
-
const i = this.mediaMap.get(e), { type: o, playbackRate: a, currentTime: n, muted:
|
|
6664
|
+
const i = this.mediaMap.get(e), { type: o, playbackRate: a, currentTime: n, muted: u, volume: l, loop: h } = r;
|
|
6665
6665
|
return {
|
|
6666
6666
|
isPlaying: o === qt.Play || o !== qt.Pause && ((i == null ? void 0 : i.isPlaying) || e.getAttribute("autoplay") !== null),
|
|
6667
6667
|
currentTimeAtLastInteraction: n ?? (i == null ? void 0 : i.currentTimeAtLastInteraction) ?? 0,
|
|
6668
6668
|
lastInteractionTimeOffset: s,
|
|
6669
6669
|
playbackRate: a ?? (i == null ? void 0 : i.playbackRate) ?? 1,
|
|
6670
6670
|
volume: l ?? (i == null ? void 0 : i.volume) ?? 1,
|
|
6671
|
-
muted:
|
|
6672
|
-
loop:
|
|
6671
|
+
muted: u ?? (i == null ? void 0 : i.muted) ?? e.getAttribute("muted") === null,
|
|
6672
|
+
loop: h ?? (i == null ? void 0 : i.loop) ?? e.getAttribute("loop") === null
|
|
6673
6673
|
};
|
|
6674
6674
|
}
|
|
6675
6675
|
syncTargetWithState(e) {
|
|
6676
6676
|
const s = this.mediaMap.get(e);
|
|
6677
6677
|
if (!s) return;
|
|
6678
|
-
const { muted: r, loop: i, volume: o, isPlaying: a } = s, n = this.service.state.matches("paused"),
|
|
6678
|
+
const { muted: r, loop: i, volume: o, isPlaying: a } = s, n = this.service.state.matches("paused"), u = s.playbackRate * this.speedService.state.context.timer.speed;
|
|
6679
6679
|
try {
|
|
6680
6680
|
this.seekTo({
|
|
6681
6681
|
time: this.getCurrentTime(),
|
|
6682
6682
|
target: e,
|
|
6683
6683
|
mediaState: s
|
|
6684
|
-
}), e.volume !== o && (e.volume = o), e.muted = r, e.loop = i, e.playbackRate !==
|
|
6684
|
+
}), e.volume !== o && (e.volume = o), e.muted = r, e.loop = i, e.playbackRate !== u && (e.playbackRate = u), a && !n ? e.play() : e.pause();
|
|
6685
6685
|
} catch (l) {
|
|
6686
6686
|
this.warn(
|
|
6687
6687
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/restrict-template-expressions
|
|
@@ -6694,25 +6694,25 @@ class Tu {
|
|
|
6694
6694
|
const i = e, o = r.getMeta(i);
|
|
6695
6695
|
if (!o || !("attributes" in o)) return;
|
|
6696
6696
|
const a = this.service.state.matches("paused"), n = o.attributes;
|
|
6697
|
-
let
|
|
6698
|
-
n.rr_mediaState ?
|
|
6697
|
+
let u = !1;
|
|
6698
|
+
n.rr_mediaState ? u = n.rr_mediaState === "played" : u = i.getAttribute("autoplay") !== null, u && a && i.pause();
|
|
6699
6699
|
let l = 1;
|
|
6700
6700
|
typeof n.rr_mediaPlaybackRate == "number" && (l = n.rr_mediaPlaybackRate);
|
|
6701
|
-
let u = !1;
|
|
6702
|
-
typeof n.rr_mediaMuted == "boolean" ? u = n.rr_mediaMuted : u = i.getAttribute("muted") !== null;
|
|
6703
6701
|
let h = !1;
|
|
6704
|
-
typeof n.
|
|
6702
|
+
typeof n.rr_mediaMuted == "boolean" ? h = n.rr_mediaMuted : h = i.getAttribute("muted") !== null;
|
|
6703
|
+
let c = !1;
|
|
6704
|
+
typeof n.rr_mediaLoop == "boolean" ? c = n.rr_mediaLoop : c = i.getAttribute("loop") !== null;
|
|
6705
6705
|
let p = 1;
|
|
6706
6706
|
typeof n.rr_mediaVolume == "number" && (p = n.rr_mediaVolume);
|
|
6707
6707
|
let m = 0;
|
|
6708
6708
|
typeof n.rr_mediaCurrentTime == "number" && (m = n.rr_mediaCurrentTime), this.mediaMap.set(i, {
|
|
6709
|
-
isPlaying:
|
|
6709
|
+
isPlaying: u,
|
|
6710
6710
|
currentTimeAtLastInteraction: m,
|
|
6711
6711
|
lastInteractionTimeOffset: s,
|
|
6712
6712
|
playbackRate: l,
|
|
6713
6713
|
volume: p,
|
|
6714
|
-
muted:
|
|
6715
|
-
loop:
|
|
6714
|
+
muted: h,
|
|
6715
|
+
loop: c
|
|
6716
6716
|
}), this.syncTargetWithState(i);
|
|
6717
6717
|
}
|
|
6718
6718
|
mediaMutation({
|
|
@@ -6736,13 +6736,13 @@ class Tu {
|
|
|
6736
6736
|
this.mediaMap.clear();
|
|
6737
6737
|
}
|
|
6738
6738
|
}
|
|
6739
|
-
function
|
|
6739
|
+
function kh(t = window, e = document) {
|
|
6740
6740
|
if ("scrollBehavior" in e.documentElement.style && t.__forceSmoothScrollPolyfill__ !== !0)
|
|
6741
6741
|
return;
|
|
6742
6742
|
const s = t.HTMLElement || t.Element, r = 468, i = {
|
|
6743
6743
|
scroll: t.scroll || t.scrollTo,
|
|
6744
6744
|
scrollBy: t.scrollBy,
|
|
6745
|
-
elementScroll: s.prototype.scroll ||
|
|
6745
|
+
elementScroll: s.prototype.scroll || u,
|
|
6746
6746
|
scrollIntoView: s.prototype.scrollIntoView
|
|
6747
6747
|
}, o = t.performance && t.performance.now ? t.performance.now.bind(t.performance) : Date.now;
|
|
6748
6748
|
function a(f) {
|
|
@@ -6750,13 +6750,13 @@ function ku(t = window, e = document) {
|
|
|
6750
6750
|
return new RegExp(w.join("|")).test(f);
|
|
6751
6751
|
}
|
|
6752
6752
|
const n = a(t.navigator.userAgent) ? 1 : 0;
|
|
6753
|
-
function
|
|
6753
|
+
function u(f, w) {
|
|
6754
6754
|
this.scrollLeft = f, this.scrollTop = w;
|
|
6755
6755
|
}
|
|
6756
6756
|
function l(f) {
|
|
6757
6757
|
return 0.5 * (1 - Math.cos(Math.PI * f));
|
|
6758
6758
|
}
|
|
6759
|
-
function
|
|
6759
|
+
function h(f) {
|
|
6760
6760
|
if (f === null || typeof f != "object" || f.behavior === void 0 || f.behavior === "auto" || f.behavior === "instant")
|
|
6761
6761
|
return !0;
|
|
6762
6762
|
if (typeof f == "object" && f.behavior === "smooth")
|
|
@@ -6765,7 +6765,7 @@ function ku(t = window, e = document) {
|
|
|
6765
6765
|
"behavior member of ScrollOptions " + f.behavior + " is not a valid value for enumeration ScrollBehavior."
|
|
6766
6766
|
);
|
|
6767
6767
|
}
|
|
6768
|
-
function
|
|
6768
|
+
function c(f, w) {
|
|
6769
6769
|
if (w === "Y")
|
|
6770
6770
|
return f.clientHeight + n < f.scrollHeight;
|
|
6771
6771
|
if (w === "X")
|
|
@@ -6776,7 +6776,7 @@ function ku(t = window, e = document) {
|
|
|
6776
6776
|
return g === "auto" || g === "scroll";
|
|
6777
6777
|
}
|
|
6778
6778
|
function m(f) {
|
|
6779
|
-
const w =
|
|
6779
|
+
const w = c(f, "Y") && p(f, "Y"), g = c(f, "X") && p(f, "X");
|
|
6780
6780
|
return w || g;
|
|
6781
6781
|
}
|
|
6782
6782
|
function v(f) {
|
|
@@ -6792,7 +6792,7 @@ function ku(t = window, e = document) {
|
|
|
6792
6792
|
function S(f, w, g) {
|
|
6793
6793
|
let E, I, B, L;
|
|
6794
6794
|
const W = o();
|
|
6795
|
-
f === e.body ? (E = t, I = t.scrollX || t.pageXOffset, B = t.scrollY || t.pageYOffset, L = i.scroll) : (E = f, I = f.scrollLeft, B = f.scrollTop, L =
|
|
6795
|
+
f === e.body ? (E = t, I = t.scrollX || t.pageXOffset, B = t.scrollY || t.pageYOffset, L = i.scroll) : (E = f, I = f.scrollLeft, B = f.scrollTop, L = u), d({
|
|
6796
6796
|
scrollable: E,
|
|
6797
6797
|
method: L,
|
|
6798
6798
|
startTime: W,
|
|
@@ -6804,7 +6804,7 @@ function ku(t = window, e = document) {
|
|
|
6804
6804
|
}
|
|
6805
6805
|
t.scroll = t.scrollTo = function() {
|
|
6806
6806
|
if (arguments[0] !== void 0) {
|
|
6807
|
-
if (
|
|
6807
|
+
if (h(arguments[0]) === !0) {
|
|
6808
6808
|
i.scroll.call(
|
|
6809
6809
|
t,
|
|
6810
6810
|
arguments[0].left !== void 0 ? arguments[0].left : typeof arguments[0] != "object" ? arguments[0] : t.scrollX || t.pageXOffset,
|
|
@@ -6822,7 +6822,7 @@ function ku(t = window, e = document) {
|
|
|
6822
6822
|
}
|
|
6823
6823
|
}, t.scrollBy = function() {
|
|
6824
6824
|
if (arguments[0] !== void 0) {
|
|
6825
|
-
if (
|
|
6825
|
+
if (h(arguments[0])) {
|
|
6826
6826
|
i.scrollBy.call(
|
|
6827
6827
|
t,
|
|
6828
6828
|
arguments[0].left !== void 0 ? arguments[0].left : typeof arguments[0] != "object" ? arguments[0] : 0,
|
|
@@ -6840,7 +6840,7 @@ function ku(t = window, e = document) {
|
|
|
6840
6840
|
}, s.prototype.scroll = s.prototype.scrollTo = function() {
|
|
6841
6841
|
if (arguments[0] === void 0)
|
|
6842
6842
|
return;
|
|
6843
|
-
if (
|
|
6843
|
+
if (h(arguments[0]) === !0) {
|
|
6844
6844
|
if (typeof arguments[0] == "number" && arguments[1] === void 0)
|
|
6845
6845
|
throw new SyntaxError("Value could not be converted");
|
|
6846
6846
|
i.elementScroll.call(
|
|
@@ -6861,7 +6861,7 @@ function ku(t = window, e = document) {
|
|
|
6861
6861
|
);
|
|
6862
6862
|
}, s.prototype.scrollBy = function() {
|
|
6863
6863
|
if (arguments[0] !== void 0) {
|
|
6864
|
-
if (
|
|
6864
|
+
if (h(arguments[0]) === !0) {
|
|
6865
6865
|
i.elementScroll.call(
|
|
6866
6866
|
this,
|
|
6867
6867
|
arguments[0].left !== void 0 ? ~~arguments[0].left + this.scrollLeft : ~~arguments[0] + this.scrollLeft,
|
|
@@ -6876,7 +6876,7 @@ function ku(t = window, e = document) {
|
|
|
6876
6876
|
});
|
|
6877
6877
|
}
|
|
6878
6878
|
}, s.prototype.scrollIntoView = function() {
|
|
6879
|
-
if (
|
|
6879
|
+
if (h(arguments[0]) === !0) {
|
|
6880
6880
|
i.scrollIntoView.call(
|
|
6881
6881
|
this,
|
|
6882
6882
|
arguments[0] === void 0 ? !0 : arguments[0]
|
|
@@ -6900,10 +6900,10 @@ function ku(t = window, e = document) {
|
|
|
6900
6900
|
});
|
|
6901
6901
|
};
|
|
6902
6902
|
}
|
|
6903
|
-
const
|
|
6903
|
+
const Dh = (t) => [
|
|
6904
6904
|
`.${t} { background: currentColor }`,
|
|
6905
6905
|
"noscript { display: none !important; }"
|
|
6906
|
-
],
|
|
6906
|
+
], Rh = 5 * 1e3, Oh = kn || yh, Zr = "[replayer]", _t = {
|
|
6907
6907
|
duration: 500,
|
|
6908
6908
|
lineCap: "round",
|
|
6909
6909
|
lineWidth: 3,
|
|
@@ -6912,15 +6912,15 @@ const Du = (t) => [
|
|
|
6912
6912
|
function Xr(t) {
|
|
6913
6913
|
return t.type == P.IncrementalSnapshot && (t.data.source == T.TouchMove || t.data.source == T.MouseInteraction && t.data.type == F.TouchStart);
|
|
6914
6914
|
}
|
|
6915
|
-
class
|
|
6915
|
+
class Ah {
|
|
6916
6916
|
constructor(e, s) {
|
|
6917
|
-
if (b(this, "wrapper"), b(this, "iframe"), b(this, "service"), b(this, "speedService"), b(this, "config"), b(this, "usingVirtualDom", !1), b(this, "virtualDom", new
|
|
6917
|
+
if (b(this, "wrapper"), b(this, "iframe"), b(this, "service"), b(this, "speedService"), b(this, "config"), b(this, "usingVirtualDom", !1), b(this, "virtualDom", new ce()), b(this, "mouse"), b(this, "mouseTail", null), b(this, "tailPositions", []), b(this, "emitter", Oh()), b(this, "nextUserInteractionEvent"), b(this, "legacy_missingNodeRetryMap", {}), b(this, "cache", dr()), b(this, "imageMap", /* @__PURE__ */ new Map()), b(this, "canvasEventMap", /* @__PURE__ */ new Map()), b(this, "mirror", Jr()), b(this, "styleMirror", new Xa()), b(this, "mediaManager"), b(this, "firstFullSnapshot", null), b(this, "newDocumentQueue", []), b(this, "mousePos", null), b(this, "touchActive", null), b(this, "lastMouseDownEvent", null), b(this, "lastHoveredRootNode"), b(this, "textValueMap", /* @__PURE__ */ new Map()), b(this, "lastSelectionData", null), b(this, "constructedStyleMutations", []), b(this, "adoptedStyleSheets", []), b(this, "handleResize", (n) => {
|
|
6918
6918
|
this.iframe.style.display = "inherit";
|
|
6919
|
-
for (const
|
|
6920
|
-
|
|
6919
|
+
for (const u of [this.mouseTail, this.iframe])
|
|
6920
|
+
u && (u.setAttribute("width", String(n.width)), u.setAttribute("height", String(n.height)));
|
|
6921
6921
|
}), b(this, "applyEventsSynchronously", (n) => {
|
|
6922
|
-
for (const
|
|
6923
|
-
switch (
|
|
6922
|
+
for (const u of n) {
|
|
6923
|
+
switch (u.type) {
|
|
6924
6924
|
case P.DomContentLoaded:
|
|
6925
6925
|
case P.Load:
|
|
6926
6926
|
case P.Custom:
|
|
@@ -6931,9 +6931,9 @@ class Au {
|
|
|
6931
6931
|
case P.IncrementalSnapshot:
|
|
6932
6932
|
break;
|
|
6933
6933
|
}
|
|
6934
|
-
this.getCastFn(
|
|
6934
|
+
this.getCastFn(u, !0)();
|
|
6935
6935
|
}
|
|
6936
|
-
}), b(this, "getCastFn", (n,
|
|
6936
|
+
}), b(this, "getCastFn", (n, u = !1) => {
|
|
6937
6937
|
let l;
|
|
6938
6938
|
switch (n.type) {
|
|
6939
6939
|
case P.DomContentLoaded:
|
|
@@ -6952,7 +6952,7 @@ class Au {
|
|
|
6952
6952
|
break;
|
|
6953
6953
|
case P.FullSnapshot:
|
|
6954
6954
|
l = () => {
|
|
6955
|
-
var
|
|
6955
|
+
var h;
|
|
6956
6956
|
if (this.firstFullSnapshot) {
|
|
6957
6957
|
if (this.firstFullSnapshot === n) {
|
|
6958
6958
|
this.firstFullSnapshot = !0;
|
|
@@ -6960,15 +6960,15 @@ class Au {
|
|
|
6960
6960
|
}
|
|
6961
6961
|
} else
|
|
6962
6962
|
this.firstFullSnapshot = !0;
|
|
6963
|
-
this.mediaManager.reset(), this.styleMirror.reset(), this.rebuildFullSnapshot(n,
|
|
6963
|
+
this.mediaManager.reset(), this.styleMirror.reset(), this.rebuildFullSnapshot(n, u), (h = this.iframe.contentWindow) == null || h.scrollTo(n.data.initialOffset);
|
|
6964
6964
|
};
|
|
6965
6965
|
break;
|
|
6966
6966
|
case P.IncrementalSnapshot:
|
|
6967
6967
|
l = () => {
|
|
6968
|
-
if (this.applyIncremental(n,
|
|
6969
|
-
for (const
|
|
6970
|
-
if (!(
|
|
6971
|
-
|
|
6968
|
+
if (this.applyIncremental(n, u), !u && (n === this.nextUserInteractionEvent && (this.nextUserInteractionEvent = null, this.backToNormal()), !this.nextUserInteractionEvent)) {
|
|
6969
|
+
for (const h of this.service.state.context.events)
|
|
6970
|
+
if (!(h.timestamp <= n.timestamp) && this.isUserInteraction(h)) {
|
|
6971
|
+
h.delay - n.delay > this.config.inactivePeriodThreshold * this.speedService.state.context.timer.speed && (this.nextUserInteractionEvent = h);
|
|
6972
6972
|
break;
|
|
6973
6973
|
}
|
|
6974
6974
|
if (this.nextUserInteractionEvent)
|
|
@@ -6977,16 +6977,16 @@ class Au {
|
|
|
6977
6977
|
this.nextUserInteractionEvent.timestamp - this.getMetaData().startTime - 1e3
|
|
6978
6978
|
);
|
|
6979
6979
|
else {
|
|
6980
|
-
const
|
|
6980
|
+
const h = (
|
|
6981
6981
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
6982
6982
|
this.nextUserInteractionEvent.delay - n.delay
|
|
6983
|
-
),
|
|
6983
|
+
), c = {
|
|
6984
6984
|
speed: Math.min(
|
|
6985
|
-
Math.round(
|
|
6985
|
+
Math.round(h / Rh),
|
|
6986
6986
|
this.config.maxSpeed
|
|
6987
6987
|
)
|
|
6988
6988
|
};
|
|
6989
|
-
this.speedService.send({ type: "FAST_FORWARD", payload:
|
|
6989
|
+
this.speedService.send({ type: "FAST_FORWARD", payload: c }), this.emitter.emit(N.SkipStart, c);
|
|
6990
6990
|
}
|
|
6991
6991
|
}
|
|
6992
6992
|
};
|
|
@@ -6994,16 +6994,16 @@ class Au {
|
|
|
6994
6994
|
}
|
|
6995
6995
|
return () => {
|
|
6996
6996
|
l && l();
|
|
6997
|
-
for (const
|
|
6998
|
-
|
|
6997
|
+
for (const c of this.config.plugins || [])
|
|
6998
|
+
c.handler && c.handler(n, u, { replayer: this });
|
|
6999
6999
|
this.service.send({ type: "CAST_EVENT", payload: { event: n } });
|
|
7000
|
-
const
|
|
7001
|
-
if (!this.config.liveMode && n === this.service.state.context.events[
|
|
7002
|
-
const
|
|
7003
|
-
|
|
7000
|
+
const h = this.service.state.context.events.length - 1;
|
|
7001
|
+
if (!this.config.liveMode && n === this.service.state.context.events[h]) {
|
|
7002
|
+
const c = () => {
|
|
7003
|
+
h < this.service.state.context.events.length - 1 || (this.backToNormal(), this.service.send("END"), this.emitter.emit(N.Finish));
|
|
7004
7004
|
};
|
|
7005
7005
|
let p = 50;
|
|
7006
|
-
n.type === P.IncrementalSnapshot && n.data.source === T.MouseMove && n.data.positions.length && (p += Math.max(0, -n.data.positions[0].timeOffset)), setTimeout(
|
|
7006
|
+
n.type === P.IncrementalSnapshot && n.data.source === T.MouseMove && n.data.positions.length && (p += Math.max(0, -n.data.positions[0].timeOffset)), setTimeout(c, p);
|
|
7007
7007
|
}
|
|
7008
7008
|
this.emitter.emit(N.EventCast, n);
|
|
7009
7009
|
};
|
|
@@ -7036,11 +7036,11 @@ class Au {
|
|
|
7036
7036
|
if (this.usingVirtualDom) {
|
|
7037
7037
|
const n = {
|
|
7038
7038
|
mirror: this.mirror,
|
|
7039
|
-
applyCanvas: (
|
|
7039
|
+
applyCanvas: (u, l, h) => {
|
|
7040
7040
|
Ur({
|
|
7041
|
-
event:
|
|
7041
|
+
event: u,
|
|
7042
7042
|
mutation: l,
|
|
7043
|
-
target:
|
|
7043
|
+
target: h,
|
|
7044
7044
|
imageMap: this.imageMap,
|
|
7045
7045
|
canvasEventMap: this.canvasEventMap,
|
|
7046
7046
|
errorHandler: this.warnCanvasMutationFailed.bind(this)
|
|
@@ -7048,46 +7048,46 @@ class Au {
|
|
|
7048
7048
|
},
|
|
7049
7049
|
applyInput: this.applyInput.bind(this),
|
|
7050
7050
|
applyScroll: this.applyScroll.bind(this),
|
|
7051
|
-
applyStyleSheetMutation: (
|
|
7052
|
-
|
|
7051
|
+
applyStyleSheetMutation: (u, l) => {
|
|
7052
|
+
u.source === T.StyleSheetRule ? this.applyStyleSheetRule(u, l) : u.source === T.StyleDeclaration && this.applyStyleDeclaration(u, l);
|
|
7053
7053
|
},
|
|
7054
|
-
afterAppend: (
|
|
7055
|
-
for (const
|
|
7056
|
-
|
|
7054
|
+
afterAppend: (u, l) => {
|
|
7055
|
+
for (const h of this.config.plugins || [])
|
|
7056
|
+
h.onBuild && h.onBuild(u, { id: l, replayer: this });
|
|
7057
7057
|
}
|
|
7058
7058
|
};
|
|
7059
7059
|
if (this.iframe.contentDocument)
|
|
7060
7060
|
try {
|
|
7061
|
-
|
|
7061
|
+
ct(
|
|
7062
7062
|
this.iframe.contentDocument,
|
|
7063
7063
|
this.virtualDom,
|
|
7064
7064
|
n,
|
|
7065
7065
|
this.virtualDom.mirror
|
|
7066
7066
|
);
|
|
7067
|
-
} catch (
|
|
7068
|
-
console.warn(
|
|
7067
|
+
} catch (u) {
|
|
7068
|
+
console.warn(u);
|
|
7069
7069
|
}
|
|
7070
7070
|
if (this.virtualDom.destroyTree(), this.usingVirtualDom = !1, Object.keys(this.legacy_missingNodeRetryMap).length)
|
|
7071
|
-
for (const
|
|
7071
|
+
for (const u in this.legacy_missingNodeRetryMap)
|
|
7072
7072
|
try {
|
|
7073
|
-
const l = this.legacy_missingNodeRetryMap[
|
|
7073
|
+
const l = this.legacy_missingNodeRetryMap[u], h = pt(
|
|
7074
7074
|
l.node,
|
|
7075
7075
|
this.mirror,
|
|
7076
7076
|
this.virtualDom.mirror
|
|
7077
7077
|
);
|
|
7078
|
-
|
|
7079
|
-
|
|
7078
|
+
ct(
|
|
7079
|
+
h,
|
|
7080
7080
|
l.node,
|
|
7081
7081
|
n,
|
|
7082
7082
|
this.virtualDom.mirror
|
|
7083
|
-
), l.node =
|
|
7083
|
+
), l.node = h;
|
|
7084
7084
|
} catch (l) {
|
|
7085
7085
|
this.warn(l);
|
|
7086
7086
|
}
|
|
7087
|
-
this.constructedStyleMutations.forEach((
|
|
7088
|
-
this.applyStyleSheetMutation(
|
|
7089
|
-
}), this.constructedStyleMutations = [], this.adoptedStyleSheets.forEach((
|
|
7090
|
-
this.applyAdoptedStyleSheet(
|
|
7087
|
+
this.constructedStyleMutations.forEach((u) => {
|
|
7088
|
+
this.applyStyleSheetMutation(u);
|
|
7089
|
+
}), this.constructedStyleMutations = [], this.adoptedStyleSheets.forEach((u) => {
|
|
7090
|
+
this.applyAdoptedStyleSheet(u);
|
|
7091
7091
|
}), this.adoptedStyleSheets = [];
|
|
7092
7092
|
}
|
|
7093
7093
|
if (this.mousePos && (this.moveAndHover(
|
|
@@ -7097,19 +7097,19 @@ class Au {
|
|
|
7097
7097
|
!0,
|
|
7098
7098
|
this.mousePos.debugData
|
|
7099
7099
|
), this.mousePos = null), this.touchActive === !0 ? this.mouse.classList.add("touch-active") : this.touchActive === !1 && this.mouse.classList.remove("touch-active"), this.touchActive = null, this.lastMouseDownEvent) {
|
|
7100
|
-
const [n,
|
|
7101
|
-
n.dispatchEvent(
|
|
7100
|
+
const [n, u] = this.lastMouseDownEvent;
|
|
7101
|
+
n.dispatchEvent(u);
|
|
7102
7102
|
}
|
|
7103
7103
|
this.lastMouseDownEvent = null, this.lastSelectionData && (this.applySelection(this.lastSelectionData), this.lastSelectionData = null);
|
|
7104
7104
|
}), this.emitter.on(N.PlayBack, () => {
|
|
7105
7105
|
this.firstFullSnapshot = null, this.mirror.reset(), this.styleMirror.reset(), this.mediaManager.reset(), this.textValueMap.clear();
|
|
7106
7106
|
});
|
|
7107
|
-
const i = new
|
|
7107
|
+
const i = new Ch([], {
|
|
7108
7108
|
speed: this.config.speed
|
|
7109
7109
|
});
|
|
7110
|
-
this.service =
|
|
7110
|
+
this.service = Mh(
|
|
7111
7111
|
{
|
|
7112
|
-
events: e.map((n) => s && s.unpackFn ? s.unpackFn(n) : n).sort((n,
|
|
7112
|
+
events: e.map((n) => s && s.unpackFn ? s.unpackFn(n) : n).sort((n, u) => n.timestamp - u.timestamp),
|
|
7113
7113
|
timer: i,
|
|
7114
7114
|
timeOffset: 0,
|
|
7115
7115
|
baselineTime: 0,
|
|
@@ -7124,14 +7124,14 @@ class Au {
|
|
|
7124
7124
|
this.emitter.emit(N.StateChange, {
|
|
7125
7125
|
player: n
|
|
7126
7126
|
});
|
|
7127
|
-
}), this.speedService =
|
|
7127
|
+
}), this.speedService = Nh({
|
|
7128
7128
|
normalSpeed: -1,
|
|
7129
7129
|
timer: i
|
|
7130
7130
|
}), this.speedService.start(), this.speedService.subscribe((n) => {
|
|
7131
7131
|
this.emitter.emit(N.StateChange, {
|
|
7132
7132
|
speed: n
|
|
7133
7133
|
});
|
|
7134
|
-
}), this.mediaManager = new
|
|
7134
|
+
}), this.mediaManager = new Th({
|
|
7135
7135
|
warn: this.warn.bind(this),
|
|
7136
7136
|
service: this.service,
|
|
7137
7137
|
speedService: this.speedService,
|
|
@@ -7144,11 +7144,11 @@ class Au {
|
|
|
7144
7144
|
(n) => n.type === P.FullSnapshot
|
|
7145
7145
|
);
|
|
7146
7146
|
if (o) {
|
|
7147
|
-
const { width: n, height:
|
|
7147
|
+
const { width: n, height: u } = o.data;
|
|
7148
7148
|
setTimeout(() => {
|
|
7149
7149
|
this.emitter.emit(N.Resize, {
|
|
7150
7150
|
width: n,
|
|
7151
|
-
height:
|
|
7151
|
+
height: u
|
|
7152
7152
|
});
|
|
7153
7153
|
}, 0);
|
|
7154
7154
|
}
|
|
@@ -7258,7 +7258,7 @@ class Au {
|
|
|
7258
7258
|
setupDom() {
|
|
7259
7259
|
this.wrapper = document.createElement("div"), this.wrapper.classList.add("replayer-wrapper"), this.config.root.appendChild(this.wrapper), this.mouse = document.createElement("div"), this.mouse.classList.add("replayer-mouse"), this.wrapper.appendChild(this.mouse), this.config.mouseTail !== !1 && (this.mouseTail = document.createElement("canvas"), this.mouseTail.classList.add("replayer-mouse-tail"), this.mouseTail.style.display = "inherit", this.wrapper.appendChild(this.mouseTail)), this.iframe = document.createElement("iframe");
|
|
7260
7260
|
const e = ["allow-same-origin"];
|
|
7261
|
-
this.config.UNSAFE_replayCanvas && e.push("allow-scripts"), this.iframe.style.display = "none", this.iframe.setAttribute("sandbox", e.join(" ")), this.disableInteract(), this.wrapper.appendChild(this.iframe), this.iframe.contentWindow && this.iframe.contentDocument && (
|
|
7261
|
+
this.config.UNSAFE_replayCanvas && e.push("allow-scripts"), this.iframe.style.display = "none", this.iframe.setAttribute("sandbox", e.join(" ")), this.disableInteract(), this.wrapper.appendChild(this.iframe), this.iframe.contentWindow && this.iframe.contentDocument && (kh(
|
|
7262
7262
|
this.iframe.contentWindow,
|
|
7263
7263
|
this.iframe.contentDocument
|
|
7264
7264
|
), Ya(this.iframe.contentWindow));
|
|
@@ -7270,7 +7270,7 @@ class Au {
|
|
|
7270
7270
|
"Found unresolved missing node map",
|
|
7271
7271
|
this.legacy_missingNodeRetryMap
|
|
7272
7272
|
), this.legacy_missingNodeRetryMap = {};
|
|
7273
|
-
const r = [], i = (n,
|
|
7273
|
+
const r = [], i = (n, u) => {
|
|
7274
7274
|
if (this.collectIframeAndAttachDocument(r, n), this.mediaManager.isSupportedMediaElement(n)) {
|
|
7275
7275
|
const { events: l } = this.service.state.context;
|
|
7276
7276
|
this.mediaManager.addMediaElements(
|
|
@@ -7281,7 +7281,7 @@ class Au {
|
|
|
7281
7281
|
}
|
|
7282
7282
|
for (const l of this.config.plugins || [])
|
|
7283
7283
|
l.onBuild && l.onBuild(n, {
|
|
7284
|
-
id:
|
|
7284
|
+
id: u,
|
|
7285
7285
|
replayer: this
|
|
7286
7286
|
});
|
|
7287
7287
|
};
|
|
@@ -7291,8 +7291,8 @@ class Au {
|
|
|
7291
7291
|
cache: this.cache,
|
|
7292
7292
|
mirror: this.mirror
|
|
7293
7293
|
}), i(this.iframe.contentDocument, e.data.node.id);
|
|
7294
|
-
for (const { mutationInQueue: n, builtNode:
|
|
7295
|
-
this.attachDocumentToIframe(n,
|
|
7294
|
+
for (const { mutationInQueue: n, builtNode: u } of r)
|
|
7295
|
+
this.attachDocumentToIframe(n, u), this.newDocumentQueue = this.newDocumentQueue.filter(
|
|
7296
7296
|
(l) => l !== n
|
|
7297
7297
|
);
|
|
7298
7298
|
const { documentElement: o, head: a } = this.iframe.contentDocument;
|
|
@@ -7300,7 +7300,7 @@ class Au {
|
|
|
7300
7300
|
}
|
|
7301
7301
|
insertStyleRules(e, s) {
|
|
7302
7302
|
var r;
|
|
7303
|
-
const i =
|
|
7303
|
+
const i = Dh(
|
|
7304
7304
|
this.config.blockClass
|
|
7305
7305
|
).concat(this.config.insertStyleRules);
|
|
7306
7306
|
if (this.config.pauseAnimation && i.push(
|
|
@@ -7330,12 +7330,12 @@ class Au {
|
|
|
7330
7330
|
attachDocumentToIframe(e, s) {
|
|
7331
7331
|
const r = this.usingVirtualDom ? this.virtualDom.mirror : this.mirror, i = [], o = (a, n) => {
|
|
7332
7332
|
this.collectIframeAndAttachDocument(i, a);
|
|
7333
|
-
const
|
|
7334
|
-
if ((
|
|
7335
|
-
const { documentElement: l, head:
|
|
7333
|
+
const u = r.getMeta(a);
|
|
7334
|
+
if ((u == null ? void 0 : u.type) === R.Element && (u == null ? void 0 : u.tagName.toUpperCase()) === "HTML") {
|
|
7335
|
+
const { documentElement: l, head: h } = s.contentDocument;
|
|
7336
7336
|
this.insertStyleRules(
|
|
7337
7337
|
l,
|
|
7338
|
-
|
|
7338
|
+
h
|
|
7339
7339
|
);
|
|
7340
7340
|
}
|
|
7341
7341
|
if (!this.usingVirtualDom)
|
|
@@ -7355,7 +7355,7 @@ class Au {
|
|
|
7355
7355
|
}), o(s.contentDocument, e.node.id);
|
|
7356
7356
|
for (const { mutationInQueue: a, builtNode: n } of i)
|
|
7357
7357
|
this.attachDocumentToIframe(a, n), this.newDocumentQueue = this.newDocumentQueue.filter(
|
|
7358
|
-
(
|
|
7358
|
+
(u) => u !== a
|
|
7359
7359
|
);
|
|
7360
7360
|
}
|
|
7361
7361
|
collectIframeAndAttachDocument(e, s) {
|
|
@@ -7385,9 +7385,9 @@ class Au {
|
|
|
7385
7385
|
const n = () => {
|
|
7386
7386
|
this.emitter.off(N.Start, a), this.emitter.off(N.Pause, a);
|
|
7387
7387
|
};
|
|
7388
|
-
s.querySelectorAll('link[rel="stylesheet"]').forEach((
|
|
7389
|
-
|
|
7390
|
-
r.delete(
|
|
7388
|
+
s.querySelectorAll('link[rel="stylesheet"]').forEach((u) => {
|
|
7389
|
+
u.sheet || (r.add(u), u.addEventListener("load", () => {
|
|
7390
|
+
r.delete(u), r.size === 0 && i !== -1 && (o.matches("playing") && this.play(this.getCurrentTime()), this.emitter.emit(N.LoadStylesheetEnd), i && clearTimeout(i), n());
|
|
7391
7391
|
}));
|
|
7392
7392
|
}), r.size > 0 && (this.service.send({ type: "PAUSE" }), this.emitter.emit(N.LoadStylesheetStart), i = setTimeout(() => {
|
|
7393
7393
|
o.matches("playing") && this.play(this.getCurrentTime()), i = -1, n();
|
|
@@ -7461,13 +7461,13 @@ class Au {
|
|
|
7461
7461
|
};
|
|
7462
7462
|
} else
|
|
7463
7463
|
a.positions.forEach((n) => {
|
|
7464
|
-
const
|
|
7464
|
+
const u = {
|
|
7465
7465
|
doAction: () => {
|
|
7466
7466
|
this.moveAndHover(n.x, n.y, n.id, s, a);
|
|
7467
7467
|
},
|
|
7468
7468
|
delay: n.timeOffset + e.timestamp - this.service.state.context.baselineTime
|
|
7469
7469
|
};
|
|
7470
|
-
this.timer.addAction(
|
|
7470
|
+
this.timer.addAction(u);
|
|
7471
7471
|
}), this.timer.addAction({
|
|
7472
7472
|
doAction() {
|
|
7473
7473
|
},
|
|
@@ -7478,20 +7478,20 @@ class Au {
|
|
|
7478
7478
|
case T.MouseInteraction: {
|
|
7479
7479
|
if (a.id === -1)
|
|
7480
7480
|
break;
|
|
7481
|
-
const n = new Event(zn(F[a.type])),
|
|
7482
|
-
if (!
|
|
7481
|
+
const n = new Event(zn(F[a.type])), u = this.mirror.getNode(a.id);
|
|
7482
|
+
if (!u)
|
|
7483
7483
|
return this.debugNodeNotFound(a, a.id);
|
|
7484
7484
|
this.emitter.emit(N.MouseInteraction, {
|
|
7485
7485
|
type: a.type,
|
|
7486
|
-
target:
|
|
7486
|
+
target: u
|
|
7487
7487
|
});
|
|
7488
7488
|
const { triggerFocus: l } = this.config;
|
|
7489
7489
|
switch (a.type) {
|
|
7490
7490
|
case F.Blur:
|
|
7491
|
-
"blur" in
|
|
7491
|
+
"blur" in u && u.blur();
|
|
7492
7492
|
break;
|
|
7493
7493
|
case F.Focus:
|
|
7494
|
-
l &&
|
|
7494
|
+
l && u.focus && u.focus({
|
|
7495
7495
|
preventScroll: !0
|
|
7496
7496
|
});
|
|
7497
7497
|
break;
|
|
@@ -7500,18 +7500,18 @@ class Au {
|
|
|
7500
7500
|
case F.TouchEnd:
|
|
7501
7501
|
case F.MouseDown:
|
|
7502
7502
|
case F.MouseUp:
|
|
7503
|
-
s ? (a.type === F.TouchStart ? this.touchActive = !0 : a.type === F.TouchEnd && (this.touchActive = !1), a.type === F.MouseDown ? this.lastMouseDownEvent = [
|
|
7503
|
+
s ? (a.type === F.TouchStart ? this.touchActive = !0 : a.type === F.TouchEnd && (this.touchActive = !1), a.type === F.MouseDown ? this.lastMouseDownEvent = [u, n] : a.type === F.MouseUp && (this.lastMouseDownEvent = null), this.mousePos = {
|
|
7504
7504
|
x: a.x || 0,
|
|
7505
7505
|
y: a.y || 0,
|
|
7506
7506
|
id: a.id,
|
|
7507
7507
|
debugData: a
|
|
7508
|
-
}) : (a.type === F.TouchStart && (this.tailPositions.length = 0), this.moveAndHover(a.x || 0, a.y || 0, a.id, s, a), a.type === F.Click ? (this.mouse.classList.remove("active"), this.mouse.offsetWidth, this.mouse.classList.add("active")) : a.type === F.TouchStart ? (this.mouse.offsetWidth, this.mouse.classList.add("touch-active")) : a.type === F.TouchEnd ? this.mouse.classList.remove("touch-active") :
|
|
7508
|
+
}) : (a.type === F.TouchStart && (this.tailPositions.length = 0), this.moveAndHover(a.x || 0, a.y || 0, a.id, s, a), a.type === F.Click ? (this.mouse.classList.remove("active"), this.mouse.offsetWidth, this.mouse.classList.add("active")) : a.type === F.TouchStart ? (this.mouse.offsetWidth, this.mouse.classList.add("touch-active")) : a.type === F.TouchEnd ? this.mouse.classList.remove("touch-active") : u.dispatchEvent(n));
|
|
7509
7509
|
break;
|
|
7510
7510
|
case F.TouchCancel:
|
|
7511
7511
|
s ? this.touchActive = !1 : this.mouse.classList.remove("touch-active");
|
|
7512
7512
|
break;
|
|
7513
7513
|
default:
|
|
7514
|
-
|
|
7514
|
+
u.dispatchEvent(n);
|
|
7515
7515
|
}
|
|
7516
7516
|
break;
|
|
7517
7517
|
}
|
|
@@ -7551,9 +7551,9 @@ class Au {
|
|
|
7551
7551
|
const n = this.usingVirtualDom ? this.virtualDom.mirror.getNode(a.id) : this.mirror.getNode(a.id);
|
|
7552
7552
|
if (!n)
|
|
7553
7553
|
return this.debugNodeNotFound(a, a.id);
|
|
7554
|
-
const
|
|
7554
|
+
const u = n, { events: l } = this.service.state.context;
|
|
7555
7555
|
this.mediaManager.mediaMutation({
|
|
7556
|
-
target:
|
|
7556
|
+
target: u,
|
|
7557
7557
|
timeOffset: e.timestamp - l[0].timestamp,
|
|
7558
7558
|
mutation: a
|
|
7559
7559
|
});
|
|
@@ -7625,38 +7625,38 @@ class Au {
|
|
|
7625
7625
|
* @param isSync - Whether the mutation should be applied synchronously (while fast-forwarding).
|
|
7626
7626
|
*/
|
|
7627
7627
|
applyMutation(e, s) {
|
|
7628
|
-
if (this.config.useVirtualDom && !this.usingVirtualDom && s && (this.usingVirtualDom = !0,
|
|
7628
|
+
if (this.config.useVirtualDom && !this.usingVirtualDom && s && (this.usingVirtualDom = !0, fh(this.iframe.contentDocument, this.mirror, this.virtualDom), Object.keys(this.legacy_missingNodeRetryMap).length))
|
|
7629
7629
|
for (const l in this.legacy_missingNodeRetryMap)
|
|
7630
7630
|
try {
|
|
7631
|
-
const
|
|
7632
|
-
|
|
7631
|
+
const h = this.legacy_missingNodeRetryMap[l], c = Nn(
|
|
7632
|
+
h.node,
|
|
7633
7633
|
this.virtualDom,
|
|
7634
7634
|
this.mirror
|
|
7635
7635
|
);
|
|
7636
|
-
|
|
7637
|
-
} catch (
|
|
7638
|
-
this.warn(
|
|
7636
|
+
c && (h.node = c);
|
|
7637
|
+
} catch (h) {
|
|
7638
|
+
this.warn(h);
|
|
7639
7639
|
}
|
|
7640
7640
|
const r = this.usingVirtualDom ? this.virtualDom.mirror : this.mirror;
|
|
7641
|
-
e.removes
|
|
7642
|
-
var
|
|
7643
|
-
const
|
|
7644
|
-
if (!
|
|
7641
|
+
e.removes.filter((l) => r.getNode(l.id) ? !0 : (this.warnNodeNotFound(e, l.id), !1)).forEach((l) => {
|
|
7642
|
+
var h;
|
|
7643
|
+
const c = r.getNode(l.id);
|
|
7644
|
+
if (!c)
|
|
7645
7645
|
return;
|
|
7646
7646
|
let p = r.getNode(
|
|
7647
7647
|
l.parentId
|
|
7648
7648
|
);
|
|
7649
7649
|
if (!p)
|
|
7650
7650
|
return this.warnNodeNotFound(e, l.parentId);
|
|
7651
|
-
if (l.isShadow && Ve(p) && (p = p.shadowRoot), r.removeNodeFromMap(
|
|
7651
|
+
if (l.isShadow && Ve(p) && (p = p.shadowRoot), r.removeNodeFromMap(c), p)
|
|
7652
7652
|
try {
|
|
7653
|
-
p.removeChild(
|
|
7653
|
+
p.removeChild(c), this.usingVirtualDom && c.nodeName === "#text" && p.nodeName === "STYLE" && ((h = p.rules) == null ? void 0 : h.length) > 0 && (p.rules = []);
|
|
7654
7654
|
} catch (m) {
|
|
7655
7655
|
if (m instanceof DOMException)
|
|
7656
7656
|
this.warn(
|
|
7657
7657
|
"parent could not remove child in mutation",
|
|
7658
7658
|
p,
|
|
7659
|
-
|
|
7659
|
+
c,
|
|
7660
7660
|
e
|
|
7661
7661
|
);
|
|
7662
7662
|
else
|
|
@@ -7666,10 +7666,10 @@ class Au {
|
|
|
7666
7666
|
const i = {
|
|
7667
7667
|
...this.legacy_missingNodeRetryMap
|
|
7668
7668
|
}, o = [], a = (l) => {
|
|
7669
|
-
let
|
|
7670
|
-
return l.nextId && (
|
|
7669
|
+
let h = null;
|
|
7670
|
+
return l.nextId && (h = r.getNode(l.nextId)), l.nextId !== null && l.nextId !== void 0 && l.nextId !== -1 && !h;
|
|
7671
7671
|
}, n = (l) => {
|
|
7672
|
-
var
|
|
7672
|
+
var h, c;
|
|
7673
7673
|
if (!this.iframe.contentDocument)
|
|
7674
7674
|
return this.warn("Looks like your replayer has been destroyed.");
|
|
7675
7675
|
let p = r.getNode(
|
|
@@ -7727,14 +7727,14 @@ class Au {
|
|
|
7727
7727
|
E.nodeType === p.TEXT_NODE && !r.hasNode(E) && (f.textContent = E.textContent, p.removeChild(E));
|
|
7728
7728
|
} else if ((w == null ? void 0 : w.type) === R.Document) {
|
|
7729
7729
|
const g = p;
|
|
7730
|
-
l.node.type === R.DocumentType && ((
|
|
7730
|
+
l.node.type === R.DocumentType && ((h = g.childNodes[0]) == null ? void 0 : h.nodeType) === Node.DOCUMENT_TYPE_NODE && g.removeChild(g.childNodes[0]), f.nodeName === "HTML" && g.documentElement && g.removeChild(
|
|
7731
7731
|
g.documentElement
|
|
7732
7732
|
);
|
|
7733
7733
|
}
|
|
7734
7734
|
if (m && m.nextSibling && m.nextSibling.parentNode ? p.insertBefore(
|
|
7735
7735
|
f,
|
|
7736
7736
|
m.nextSibling
|
|
7737
|
-
) : v && v.parentNode ? p.contains(v) ? p.insertBefore(f, v) : p.insertBefore(f, null) : p.appendChild(f), S(f, l.node.id), this.usingVirtualDom && f.nodeName === "#text" && p.nodeName === "STYLE" && ((
|
|
7737
|
+
) : v && v.parentNode ? p.contains(v) ? p.insertBefore(f, v) : p.insertBefore(f, null) : p.appendChild(f), S(f, l.node.id), this.usingVirtualDom && f.nodeName === "#text" && p.nodeName === "STYLE" && ((c = p.rules) == null ? void 0 : c.length) > 0 && (p.rules = []), Ot(f, this.mirror)) {
|
|
7738
7738
|
const g = this.mirror.getId(f), E = this.newDocumentQueue.find(
|
|
7739
7739
|
(I) => I.parentId === g
|
|
7740
7740
|
);
|
|
@@ -7755,28 +7755,28 @@ class Au {
|
|
|
7755
7755
|
e.adds.forEach((l) => {
|
|
7756
7756
|
n(l);
|
|
7757
7757
|
});
|
|
7758
|
-
const
|
|
7758
|
+
const u = Date.now();
|
|
7759
7759
|
for (; o.length; ) {
|
|
7760
7760
|
const l = Ga(o);
|
|
7761
|
-
if (o.length = 0, Date.now() -
|
|
7761
|
+
if (o.length = 0, Date.now() - u > 500) {
|
|
7762
7762
|
this.warn(
|
|
7763
7763
|
"Timeout in the loop, please check the resolve tree data:",
|
|
7764
7764
|
l
|
|
7765
7765
|
);
|
|
7766
7766
|
break;
|
|
7767
7767
|
}
|
|
7768
|
-
for (const
|
|
7769
|
-
r.getNode(
|
|
7770
|
-
n(
|
|
7768
|
+
for (const h of l)
|
|
7769
|
+
r.getNode(h.value.parentId) ? Ii(h, (c) => {
|
|
7770
|
+
n(c);
|
|
7771
7771
|
}) : this.debug(
|
|
7772
7772
|
"Drop resolve tree since there is no parent for the root node.",
|
|
7773
|
-
|
|
7773
|
+
h
|
|
7774
7774
|
);
|
|
7775
7775
|
}
|
|
7776
7776
|
Object.keys(i).length && Object.assign(this.legacy_missingNodeRetryMap, i), Za(e.texts).forEach((l) => {
|
|
7777
|
-
var
|
|
7778
|
-
const
|
|
7779
|
-
if (!
|
|
7777
|
+
var h;
|
|
7778
|
+
const c = r.getNode(l.id);
|
|
7779
|
+
if (!c)
|
|
7780
7780
|
return e.removes.find((m) => m.id === l.id) ? void 0 : this.warnNodeNotFound(e, l.id);
|
|
7781
7781
|
let p;
|
|
7782
7782
|
if (l.delta) {
|
|
@@ -7784,41 +7784,41 @@ class Au {
|
|
|
7784
7784
|
p = Ha(m, l.delta);
|
|
7785
7785
|
} else
|
|
7786
7786
|
p = l.value ?? null;
|
|
7787
|
-
if (
|
|
7788
|
-
const m =
|
|
7789
|
-
((
|
|
7787
|
+
if (c.textContent = p, p !== null && this.textValueMap.set(l.id, p), this.usingVirtualDom) {
|
|
7788
|
+
const m = c.parentNode;
|
|
7789
|
+
((h = m == null ? void 0 : m.rules) == null ? void 0 : h.length) > 0 && (m.rules = []);
|
|
7790
7790
|
}
|
|
7791
7791
|
}), e.attributes.forEach((l) => {
|
|
7792
|
-
var
|
|
7793
|
-
const
|
|
7794
|
-
if (!
|
|
7792
|
+
var h;
|
|
7793
|
+
const c = r.getNode(l.id);
|
|
7794
|
+
if (!c)
|
|
7795
7795
|
return e.removes.find((p) => p.id === l.id) ? void 0 : this.warnNodeNotFound(e, l.id);
|
|
7796
7796
|
for (const p in l.attributes)
|
|
7797
7797
|
if (typeof p == "string") {
|
|
7798
7798
|
const m = l.attributes[p];
|
|
7799
7799
|
if (m === null)
|
|
7800
|
-
|
|
7800
|
+
c.removeAttribute(p);
|
|
7801
7801
|
else if (typeof m == "string")
|
|
7802
7802
|
try {
|
|
7803
|
-
if (p === "_cssText" && (
|
|
7803
|
+
if (p === "_cssText" && (c.nodeName === "LINK" || c.nodeName === "STYLE"))
|
|
7804
7804
|
try {
|
|
7805
7805
|
const v = r.getMeta(
|
|
7806
|
-
|
|
7806
|
+
c
|
|
7807
7807
|
);
|
|
7808
7808
|
Object.assign(
|
|
7809
7809
|
v.attributes,
|
|
7810
7810
|
l.attributes
|
|
7811
7811
|
);
|
|
7812
7812
|
const d = Se(v, {
|
|
7813
|
-
doc:
|
|
7813
|
+
doc: c.ownerDocument,
|
|
7814
7814
|
// can be Document or RRDocument
|
|
7815
7815
|
mirror: r,
|
|
7816
7816
|
skipChild: !0,
|
|
7817
7817
|
hackCss: !0,
|
|
7818
7818
|
cache: this.cache
|
|
7819
|
-
}), S =
|
|
7819
|
+
}), S = c.nextSibling, f = c.parentNode;
|
|
7820
7820
|
if (d && f) {
|
|
7821
|
-
f.removeChild(
|
|
7821
|
+
f.removeChild(c), f.insertBefore(
|
|
7822
7822
|
d,
|
|
7823
7823
|
S
|
|
7824
7824
|
), r.replace(l.id, d);
|
|
@@ -7826,15 +7826,15 @@ class Au {
|
|
|
7826
7826
|
}
|
|
7827
7827
|
} catch {
|
|
7828
7828
|
}
|
|
7829
|
-
if (p === "value" &&
|
|
7830
|
-
const v =
|
|
7829
|
+
if (p === "value" && c.nodeName === "TEXTAREA") {
|
|
7830
|
+
const v = c;
|
|
7831
7831
|
v.childNodes.forEach(
|
|
7832
7832
|
(S) => v.removeChild(S)
|
|
7833
7833
|
);
|
|
7834
|
-
const d = (
|
|
7834
|
+
const d = (h = c.ownerDocument) == null ? void 0 : h.createTextNode(m);
|
|
7835
7835
|
d && v.appendChild(d);
|
|
7836
7836
|
} else
|
|
7837
|
-
|
|
7837
|
+
c.setAttribute(
|
|
7838
7838
|
p,
|
|
7839
7839
|
m
|
|
7840
7840
|
);
|
|
@@ -7845,7 +7845,7 @@ class Au {
|
|
|
7845
7845
|
);
|
|
7846
7846
|
}
|
|
7847
7847
|
else if (p === "style") {
|
|
7848
|
-
const v = m, d =
|
|
7848
|
+
const v = m, d = c;
|
|
7849
7849
|
for (const S in v)
|
|
7850
7850
|
if (v[S] === !1)
|
|
7851
7851
|
d.style.removeProperty(S);
|
|
@@ -7906,13 +7906,13 @@ class Au {
|
|
|
7906
7906
|
applySelection(e) {
|
|
7907
7907
|
try {
|
|
7908
7908
|
const s = /* @__PURE__ */ new Set(), r = e.ranges.map(({ start: i, startOffset: o, end: a, endOffset: n }) => {
|
|
7909
|
-
const
|
|
7910
|
-
if (!
|
|
7911
|
-
const
|
|
7912
|
-
|
|
7913
|
-
const
|
|
7909
|
+
const u = this.mirror.getNode(i), l = this.mirror.getNode(a);
|
|
7910
|
+
if (!u || !l) return;
|
|
7911
|
+
const h = new Range();
|
|
7912
|
+
h.setStart(u, o), h.setEnd(l, n);
|
|
7913
|
+
const c = u.ownerDocument, p = c == null ? void 0 : c.getSelection();
|
|
7914
7914
|
return p && s.add(p), {
|
|
7915
|
-
range:
|
|
7915
|
+
range: h,
|
|
7916
7916
|
selection: p
|
|
7917
7917
|
};
|
|
7918
7918
|
});
|
|
@@ -7930,13 +7930,13 @@ class Au {
|
|
|
7930
7930
|
}
|
|
7931
7931
|
applyStyleSheetRule(e, s) {
|
|
7932
7932
|
var r, i, o, a;
|
|
7933
|
-
if ((r = e.adds) == null || r.forEach(({ rule: n, index:
|
|
7933
|
+
if ((r = e.adds) == null || r.forEach(({ rule: n, index: u }) => {
|
|
7934
7934
|
try {
|
|
7935
|
-
if (Array.isArray(
|
|
7936
|
-
const { positions: l, index:
|
|
7937
|
-
be(s.cssRules, l).insertRule(n,
|
|
7935
|
+
if (Array.isArray(u)) {
|
|
7936
|
+
const { positions: l, index: h } = mr(u);
|
|
7937
|
+
be(s.cssRules, l).insertRule(n, h);
|
|
7938
7938
|
} else {
|
|
7939
|
-
const l =
|
|
7939
|
+
const l = u === void 0 ? void 0 : Math.min(u, s.cssRules.length);
|
|
7940
7940
|
s == null || s.insertRule(n, l);
|
|
7941
7941
|
}
|
|
7942
7942
|
} catch {
|
|
@@ -7944,8 +7944,8 @@ class Au {
|
|
|
7944
7944
|
}), (i = e.removes) == null || i.forEach(({ index: n }) => {
|
|
7945
7945
|
try {
|
|
7946
7946
|
if (Array.isArray(n)) {
|
|
7947
|
-
const { positions:
|
|
7948
|
-
be(s.cssRules,
|
|
7947
|
+
const { positions: u, index: l } = mr(n);
|
|
7948
|
+
be(s.cssRules, u).deleteRule(l || 0);
|
|
7949
7949
|
} else
|
|
7950
7950
|
s == null || s.deleteRule(n);
|
|
7951
7951
|
} catch {
|
|
@@ -7979,11 +7979,11 @@ class Au {
|
|
|
7979
7979
|
const r = this.mirror.getNode(e.id);
|
|
7980
7980
|
if (!r) return;
|
|
7981
7981
|
(s = e.styles) == null || s.forEach((n) => {
|
|
7982
|
-
var
|
|
7983
|
-
let l = null,
|
|
7984
|
-
if (Ve(r) ?
|
|
7982
|
+
var u;
|
|
7983
|
+
let l = null, h = null;
|
|
7984
|
+
if (Ve(r) ? h = ((u = r.ownerDocument) == null ? void 0 : u.defaultView) || null : r.nodeName === "#document" && (h = r.defaultView), !!h)
|
|
7985
7985
|
try {
|
|
7986
|
-
l = new
|
|
7986
|
+
l = new h.CSSStyleSheet(), this.styleMirror.add(l, n.styleId), this.applyStyleSheetRule(
|
|
7987
7987
|
{
|
|
7988
7988
|
source: T.StyleSheetRule,
|
|
7989
7989
|
adds: n.rules
|
|
@@ -7995,35 +7995,35 @@ class Au {
|
|
|
7995
7995
|
});
|
|
7996
7996
|
const i = 10;
|
|
7997
7997
|
let o = 0;
|
|
7998
|
-
const a = (n,
|
|
7999
|
-
const l =
|
|
8000
|
-
Ve(n) ? n.shadowRoot.adoptedStyleSheets = l : n.nodeName === "#document" && (n.adoptedStyleSheets = l), l.length !==
|
|
8001
|
-
() => a(n,
|
|
7998
|
+
const a = (n, u) => {
|
|
7999
|
+
const l = u.map((h) => this.styleMirror.getStyle(h)).filter((h) => h !== null);
|
|
8000
|
+
Ve(n) ? n.shadowRoot.adoptedStyleSheets = l : n.nodeName === "#document" && (n.adoptedStyleSheets = l), l.length !== u.length && o < i && (setTimeout(
|
|
8001
|
+
() => a(n, u),
|
|
8002
8002
|
0 + 100 * o
|
|
8003
8003
|
), o++);
|
|
8004
8004
|
};
|
|
8005
8005
|
a(r, e.styleIds);
|
|
8006
8006
|
}
|
|
8007
8007
|
legacy_resolveMissingNode(e, s, r, i) {
|
|
8008
|
-
const { previousId: o, nextId: a } = i, n = o && e[o],
|
|
8008
|
+
const { previousId: o, nextId: a } = i, n = o && e[o], u = a && e[a];
|
|
8009
8009
|
if (n) {
|
|
8010
|
-
const { node: l, mutation:
|
|
8011
|
-
s.insertBefore(l, r), delete e[
|
|
8010
|
+
const { node: l, mutation: h } = n;
|
|
8011
|
+
s.insertBefore(l, r), delete e[h.node.id], delete this.legacy_missingNodeRetryMap[h.node.id], (h.previousId || h.nextId) && this.legacy_resolveMissingNode(e, s, l, h);
|
|
8012
8012
|
}
|
|
8013
|
-
if (
|
|
8014
|
-
const { node: l, mutation:
|
|
8013
|
+
if (u) {
|
|
8014
|
+
const { node: l, mutation: h } = u;
|
|
8015
8015
|
s.insertBefore(
|
|
8016
8016
|
l,
|
|
8017
8017
|
r.nextSibling
|
|
8018
|
-
), delete e[
|
|
8018
|
+
), delete e[h.node.id], delete this.legacy_missingNodeRetryMap[h.node.id], (h.previousId || h.nextId) && this.legacy_resolveMissingNode(e, s, l, h);
|
|
8019
8019
|
}
|
|
8020
8020
|
}
|
|
8021
8021
|
moveAndHover(e, s, r, i, o) {
|
|
8022
8022
|
const a = this.mirror.getNode(r);
|
|
8023
8023
|
if (!a)
|
|
8024
8024
|
return this.debugNodeNotFound(o, r);
|
|
8025
|
-
const n = Pi(a, this.iframe),
|
|
8026
|
-
this.mouse.style.left = `${
|
|
8025
|
+
const n = Pi(a, this.iframe), u = e * n.absoluteScale + n.x, l = s * n.absoluteScale + n.y;
|
|
8026
|
+
this.mouse.style.left = `${u}px`, this.mouse.style.top = `${l}px`, i || this.drawMouseTail({ x: u, y: l }), this.hoverElements(a);
|
|
8027
8027
|
}
|
|
8028
8028
|
drawMouseTail(e) {
|
|
8029
8029
|
if (!this.mouseTail)
|
|
@@ -8032,7 +8032,7 @@ class Au {
|
|
|
8032
8032
|
if (!this.mouseTail)
|
|
8033
8033
|
return;
|
|
8034
8034
|
const n = this.mouseTail.getContext("2d");
|
|
8035
|
-
!n || !this.tailPositions.length || (n.clearRect(0, 0, this.mouseTail.width, this.mouseTail.height), n.beginPath(), n.lineWidth = r, n.lineCap = s, n.strokeStyle = i, n.moveTo(this.tailPositions[0].x, this.tailPositions[0].y), this.tailPositions.forEach((
|
|
8035
|
+
!n || !this.tailPositions.length || (n.clearRect(0, 0, this.mouseTail.width, this.mouseTail.height), n.beginPath(), n.lineWidth = r, n.lineCap = s, n.strokeStyle = i, n.moveTo(this.tailPositions[0].x, this.tailPositions[0].y), this.tailPositions.forEach((u) => n.lineTo(u.x, u.y)), n.stroke());
|
|
8036
8036
|
};
|
|
8037
8037
|
this.tailPositions.push(e), a(), setTimeout(() => {
|
|
8038
8038
|
this.tailPositions = this.tailPositions.filter((n) => n !== e), a();
|
|
@@ -8072,6 +8072,6 @@ class Au {
|
|
|
8072
8072
|
}
|
|
8073
8073
|
}
|
|
8074
8074
|
export {
|
|
8075
|
-
|
|
8075
|
+
Ah as Replayer
|
|
8076
8076
|
};
|
|
8077
8077
|
//# sourceMappingURL=replay.js.map
|