leesto-connect 0.3.0 → 0.4.0
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/README.md +1 -1
- package/dist/leesto-connect.js +873 -738
- package/dist/leesto-connect.js.map +1 -1
- package/package.json +1 -1
package/dist/leesto-connect.js
CHANGED
|
@@ -1,88 +1,82 @@
|
|
|
1
|
-
var
|
|
2
|
-
function
|
|
1
|
+
var nt = "login", rt = "rrweb-buffer", ot = 6e3;
|
|
2
|
+
function st(e) {
|
|
3
3
|
return typeof e == "object" && e !== null && typeof e.type == "string" && e.type.startsWith("leesto:");
|
|
4
4
|
}
|
|
5
|
-
var
|
|
5
|
+
var it = [
|
|
6
6
|
"mask_all",
|
|
7
7
|
"labels_visible",
|
|
8
8
|
"inputs_only"
|
|
9
|
-
],
|
|
10
|
-
function
|
|
11
|
-
return typeof e == "string" &&
|
|
12
|
-
}
|
|
13
|
-
var Pe = "leesto_diag", xe = "leesto_run", we = "X-Leesto-Run-Id", De = "leesto_mask", be = [
|
|
14
|
-
Pe,
|
|
15
|
-
xe,
|
|
16
|
-
De
|
|
17
|
-
], st = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
|
|
18
|
-
function Z(e) {
|
|
19
|
-
return typeof e == "string" && st.test(e);
|
|
9
|
+
], ae = "mask_all";
|
|
10
|
+
function at(e) {
|
|
11
|
+
return typeof e == "string" && it.includes(e);
|
|
20
12
|
}
|
|
21
|
-
|
|
13
|
+
var lt = "leesto_diag", ct = "leesto_run", _e = "X-Leesto-Run-Id", ut = "leesto_mask", ft = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
|
|
14
|
+
function ee(e) {
|
|
15
|
+
return typeof e == "string" && ft.test(e);
|
|
16
|
+
}
|
|
17
|
+
function dt() {
|
|
22
18
|
try {
|
|
23
19
|
const e = globalThis.crypto, t = e?.randomUUID?.();
|
|
24
|
-
if (
|
|
20
|
+
if (ee(t)) return t;
|
|
25
21
|
if (!e?.getRandomValues) return;
|
|
26
22
|
const n = e.getRandomValues(/* @__PURE__ */ new Uint8Array(16));
|
|
27
23
|
n[6] = (n[6] ?? 0) & 15 | 64, n[8] = (n[8] ?? 0) & 63 | 128;
|
|
28
|
-
const r = Array.from(n, (
|
|
29
|
-
return
|
|
24
|
+
const r = Array.from(n, (s) => s.toString(16).padStart(2, "0")).join(""), o = `${r.slice(0, 8)}-${r.slice(8, 12)}-${r.slice(12, 16)}-${r.slice(16, 20)}-${r.slice(20)}`;
|
|
25
|
+
return ee(o) ? o : void 0;
|
|
30
26
|
} catch {
|
|
31
27
|
return;
|
|
32
28
|
}
|
|
33
29
|
}
|
|
34
|
-
function
|
|
30
|
+
function pt(e) {
|
|
35
31
|
try {
|
|
36
|
-
const t = new URLSearchParams(e).getAll(
|
|
37
|
-
return t.some((r) => r !== n) ?
|
|
32
|
+
const t = new URLSearchParams(e).getAll(ut), [n] = t;
|
|
33
|
+
return t.some((r) => r !== n) ? ae : at(n) ? n : ae;
|
|
38
34
|
} catch {
|
|
39
|
-
return
|
|
35
|
+
return ae;
|
|
40
36
|
}
|
|
41
37
|
}
|
|
42
|
-
function
|
|
38
|
+
function ht(e) {
|
|
43
39
|
try {
|
|
44
|
-
const t = new URLSearchParams(e).get(
|
|
45
|
-
return
|
|
40
|
+
const t = new URLSearchParams(e).get(ct);
|
|
41
|
+
return ee(t) ? t : void 0;
|
|
46
42
|
} catch {
|
|
47
43
|
return;
|
|
48
44
|
}
|
|
49
45
|
}
|
|
50
|
-
function
|
|
46
|
+
function de(e) {
|
|
51
47
|
try {
|
|
52
|
-
return new URLSearchParams(e).get(
|
|
48
|
+
return new URLSearchParams(e).get(lt) === "1";
|
|
53
49
|
} catch {
|
|
54
50
|
return !1;
|
|
55
51
|
}
|
|
56
52
|
}
|
|
57
|
-
function
|
|
58
|
-
if (
|
|
53
|
+
function mt(e, t) {
|
|
54
|
+
if (de(e)) return e;
|
|
59
55
|
if (typeof t != "string" || !t.startsWith("leesto-arming?")) return "";
|
|
60
56
|
const n = `?${t.slice(14)}`;
|
|
61
|
-
return
|
|
57
|
+
return de(n) ? n : "";
|
|
62
58
|
}
|
|
63
|
-
function
|
|
59
|
+
function gt(e) {
|
|
64
60
|
try {
|
|
65
61
|
const t = new URL(e);
|
|
66
|
-
|
|
67
|
-
for (const n of be) t.searchParams.delete(n);
|
|
68
|
-
return t.href;
|
|
62
|
+
return `${t.origin}${t.pathname}`;
|
|
69
63
|
} catch {
|
|
70
|
-
return e;
|
|
64
|
+
return e.split(/[?#]/)[0] ?? e;
|
|
71
65
|
}
|
|
72
66
|
}
|
|
73
|
-
var
|
|
67
|
+
var Ae = "leesto/console", yt = "leesto/network", vt = "leesto/network-ring", bt = "leesto/console-ring", wt = {
|
|
74
68
|
primary: "#08783f",
|
|
75
69
|
hover: "#066633",
|
|
76
70
|
foreground: "#f3fff7"
|
|
77
|
-
},
|
|
71
|
+
}, Et = {
|
|
78
72
|
primary: "#46c383",
|
|
79
73
|
hover: "#65d49b",
|
|
80
74
|
foreground: "#082315"
|
|
81
|
-
},
|
|
82
|
-
light:
|
|
83
|
-
dark:
|
|
75
|
+
}, St = {
|
|
76
|
+
light: wt,
|
|
77
|
+
dark: Et
|
|
84
78
|
};
|
|
85
|
-
function
|
|
79
|
+
function Z(e) {
|
|
86
80
|
const t = [];
|
|
87
81
|
return {
|
|
88
82
|
push(n) {
|
|
@@ -93,126 +87,147 @@ function X(e) {
|
|
|
93
87
|
}
|
|
94
88
|
};
|
|
95
89
|
}
|
|
96
|
-
var
|
|
97
|
-
function
|
|
90
|
+
var Rt = /[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}/g, _t = /\b\d{3}-\d{2}-\d{4}\b/g, At = /\d(?:[ -]?\d){12,18}/g, Tt = /\b(Bearer|Basic|Token)\s+(?=[A-Za-z0-9._~+/=-]*\d)[A-Za-z0-9._~+/=-]{6,}/gi, Lt = /\b((?:proxy-)?authorization)\b(["']?\s*[:=]\s*["']?)(?:Digest\s+[^\r\n]*|(?:(?:Bearer|Basic|Token)\s+)?[^\s"'&,;}]+)/gi, kt = /(token|secret|passw(?:or)?d|api[-_]?key)\b(["']?\s*[:=]\s*["']?)[^\s"'&,;}]+/gi, Ot = /\b((?:set-)?cookie)\b(["']?\s*[:=]\s*["']?)[^"'\r\n]+/gi, It = /\b(session(?:[-_]?id)?)\b(["']?\s*[:=]\s*["']?)(?=[^\s"'&,;}]{0,256}\d)[^\s"'&,;}]+/gi, Ct = /\beyJ[A-Za-z0-9_-]{5,}\.[A-Za-z0-9_-]{5,}\.[A-Za-z0-9_-]{5,}\b/g, Nt = /\bhttps?:\/\/[^\s"'<>)]+/gi, xt = /(?::\d+){1,2}$/;
|
|
91
|
+
function Mt(e) {
|
|
92
|
+
const t = e.search(/[?#]/);
|
|
93
|
+
if (t < 0) return e;
|
|
94
|
+
const n = xt.exec(e.slice(t))?.[0] ?? "";
|
|
95
|
+
return e.slice(0, t) + n;
|
|
96
|
+
}
|
|
97
|
+
function Dt(e) {
|
|
98
98
|
let t = 0, n = !1;
|
|
99
99
|
for (let r = e.length - 1; r >= 0; r--) {
|
|
100
|
-
let
|
|
101
|
-
if (
|
|
102
|
-
n && (
|
|
100
|
+
let o = e.charCodeAt(r) - 48;
|
|
101
|
+
if (o < 0 || o > 9) return !1;
|
|
102
|
+
n && (o *= 2, o > 9 && (o -= 9)), t += o, n = !n;
|
|
103
103
|
}
|
|
104
104
|
return t % 10 === 0;
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function pe(e) {
|
|
107
107
|
if (!e) return e;
|
|
108
|
-
let t = e.replace(
|
|
109
|
-
return t = t.replace(
|
|
108
|
+
let t = e.replace(Nt, Mt).replace(Lt, "$1$2[secret masqué]").replace(Tt, "$1 [secret masqué]").replace(Ct, "[jeton masqué]").replace(Ot, "$1$2[secret masqué]").replace(kt, "$1$2[secret masqué]").replace(It, "$1$2[secret masqué]");
|
|
109
|
+
return t = t.replace(Rt, "[email masqué]"), t = t.replace(_t, "[id masqué]"), t = t.replace(At, (n) => {
|
|
110
110
|
const r = n.replace(/[ -]/g, "");
|
|
111
|
-
return r.length >= 13 && r.length <= 19 &&
|
|
111
|
+
return r.length >= 13 && r.length <= 19 && Dt(r) ? "[carte masquée]" : n;
|
|
112
112
|
}), t;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function W(e) {
|
|
115
115
|
const t = typeof e == "string" ? e : e instanceof URL ? e.href : e instanceof Request ? e.url : String(e);
|
|
116
116
|
try {
|
|
117
117
|
const n = new URL(t, typeof location < "u" ? location.href : void 0);
|
|
118
|
-
return n.origin +
|
|
118
|
+
return n.origin + pe(n.pathname);
|
|
119
119
|
} catch {
|
|
120
|
-
return
|
|
120
|
+
return pe(t.split("?")[0] ?? t);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
var
|
|
123
|
+
var $t = /* @__PURE__ */ new Set(["fetch", "xmlhttprequest"]), Pt = ["deprecation", "intervention"], qt = { teardown: () => {
|
|
124
124
|
} };
|
|
125
|
-
function
|
|
125
|
+
function Bt(e) {
|
|
126
126
|
const t = typeof performance < "u" ? performance.timeOrigin : 0;
|
|
127
127
|
return Math.round(t + e);
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function Ft(e) {
|
|
130
130
|
const t = e.responseStatus;
|
|
131
131
|
return typeof t == "number" && t > 0 ? t : void 0;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
if (
|
|
135
|
-
const t =
|
|
133
|
+
function Ut(e) {
|
|
134
|
+
if ($t.has(e.initiatorType)) return null;
|
|
135
|
+
const t = Ft(e), n = e.transferSize || e.encodedBodySize || void 0;
|
|
136
136
|
return {
|
|
137
137
|
method: "GET",
|
|
138
|
-
url:
|
|
138
|
+
url: W(e.name),
|
|
139
139
|
...t !== void 0 ? { status: t } : {},
|
|
140
140
|
durationMs: Math.round(e.duration),
|
|
141
141
|
...n ? { responseSize: n } : {},
|
|
142
|
-
startedAt:
|
|
142
|
+
startedAt: Bt(e.startTime),
|
|
143
143
|
...t !== void 0 && t >= 400 ? { failed: !0 } : {},
|
|
144
144
|
initiatorType: e.initiatorType
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
if (typeof window > "u") return
|
|
147
|
+
function Gt(e) {
|
|
148
|
+
if (typeof window > "u") return qt;
|
|
149
149
|
const t = [];
|
|
150
150
|
if (typeof PerformanceObserver < "u") try {
|
|
151
|
-
const
|
|
152
|
-
for (const
|
|
153
|
-
const i =
|
|
151
|
+
const s = new PerformanceObserver((u) => {
|
|
152
|
+
for (const l of u.getEntries()) try {
|
|
153
|
+
const i = Ut(l);
|
|
154
154
|
i && e.onResource(i);
|
|
155
155
|
} catch {
|
|
156
156
|
}
|
|
157
157
|
});
|
|
158
|
-
|
|
158
|
+
s.observe({
|
|
159
159
|
type: "resource",
|
|
160
160
|
buffered: !0
|
|
161
|
-
}), t.push(() =>
|
|
161
|
+
}), t.push(() => s.disconnect());
|
|
162
162
|
} catch {
|
|
163
163
|
}
|
|
164
164
|
const n = window.ReportingObserver;
|
|
165
165
|
if (n) try {
|
|
166
|
-
const
|
|
167
|
-
for (const
|
|
168
|
-
const i = typeof
|
|
169
|
-
e.onReport("warn", `Navigateur (${
|
|
166
|
+
const s = new n(((u) => {
|
|
167
|
+
for (const l of u) {
|
|
168
|
+
const i = typeof l.body?.message == "string" ? l.body.message : l.type;
|
|
169
|
+
e.onReport("warn", `Navigateur (${l.type}) : ${i}`);
|
|
170
170
|
}
|
|
171
171
|
}), {
|
|
172
|
-
types:
|
|
172
|
+
types: Pt,
|
|
173
173
|
buffered: !0
|
|
174
174
|
});
|
|
175
|
-
|
|
175
|
+
s.observe(), t.push(() => s.disconnect());
|
|
176
176
|
} catch {
|
|
177
177
|
}
|
|
178
|
-
const r = (
|
|
179
|
-
const
|
|
180
|
-
e.onReport("error", `CSP : ${
|
|
178
|
+
const r = (s) => {
|
|
179
|
+
const u = s;
|
|
180
|
+
e.onReport("error", `CSP : ${u.blockedURI || "ressource"} bloqué par « ${u.violatedDirective} »`);
|
|
181
181
|
};
|
|
182
182
|
window.addEventListener("securitypolicyviolation", r), t.push(() => window.removeEventListener("securitypolicyviolation", r));
|
|
183
|
-
let
|
|
183
|
+
let o = !1;
|
|
184
184
|
return { teardown: () => {
|
|
185
|
-
if (!
|
|
186
|
-
|
|
187
|
-
for (const
|
|
188
|
-
|
|
185
|
+
if (!o) {
|
|
186
|
+
o = !0;
|
|
187
|
+
for (const s of t) try {
|
|
188
|
+
s();
|
|
189
189
|
} catch {
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
} };
|
|
193
193
|
}
|
|
194
|
-
var
|
|
195
|
-
function
|
|
194
|
+
var Ht = 50, Wt = 30, jt = 100, zt = 50, K = 500, Pe = 8e3, Vt = K * 4, Xt = Pe * 2;
|
|
195
|
+
function qe(e, t, n) {
|
|
196
|
+
return pe(e.slice(0, n)).slice(0, t);
|
|
197
|
+
}
|
|
198
|
+
function V(e) {
|
|
199
|
+
return qe(e, K, Vt);
|
|
200
|
+
}
|
|
201
|
+
var Kt = /(token|secret|passw(or)?d|api[-_]?key|authorization|cookie)$/i;
|
|
202
|
+
function le(e) {
|
|
196
203
|
const t = e instanceof Error ? e.stack : void 0;
|
|
197
204
|
if (t)
|
|
198
|
-
return
|
|
205
|
+
return qe(t, Pe, Xt);
|
|
199
206
|
}
|
|
200
|
-
function
|
|
207
|
+
function ce(e) {
|
|
201
208
|
if (e instanceof Error) return `${e.name}: ${e.message}`;
|
|
202
209
|
if (typeof e == "string") return e;
|
|
203
|
-
if (typeof e == "object" && e !== null)
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
210
|
+
if (typeof e == "object" && e !== null) {
|
|
211
|
+
const t = /* @__PURE__ */ Symbol("overflow");
|
|
212
|
+
let n = K * 8;
|
|
213
|
+
try {
|
|
214
|
+
return JSON.stringify(e, (r, o) => {
|
|
215
|
+
if (Kt.test(r)) return "[masqué]";
|
|
216
|
+
if (n -= r.length + (typeof o == "string" ? o.length : 8), n < 0) throw t;
|
|
217
|
+
return o;
|
|
218
|
+
}).slice(0, K);
|
|
219
|
+
} catch (r) {
|
|
220
|
+
return r === t ? "[objet volumineux]" : "[objet]";
|
|
221
|
+
}
|
|
207
222
|
}
|
|
208
223
|
return String(e);
|
|
209
224
|
}
|
|
210
|
-
function
|
|
225
|
+
function Te(e) {
|
|
211
226
|
if (!e) return;
|
|
212
227
|
const t = Number(e);
|
|
213
228
|
return Number.isFinite(t) && t >= 0 ? t : void 0;
|
|
214
229
|
}
|
|
215
|
-
var
|
|
230
|
+
var Yt = {
|
|
216
231
|
snapshot: () => ({
|
|
217
232
|
errors: [],
|
|
218
233
|
logs: [],
|
|
@@ -225,10 +240,10 @@ var Nt = {
|
|
|
225
240
|
teardown: () => {
|
|
226
241
|
}
|
|
227
242
|
};
|
|
228
|
-
function
|
|
229
|
-
if (typeof window > "u") return
|
|
230
|
-
const t =
|
|
231
|
-
if (!
|
|
243
|
+
function Be(e) {
|
|
244
|
+
if (typeof window > "u") return Yt;
|
|
245
|
+
const t = Z(Ht), n = Z(Wt), r = Z(jt), o = Z(zt), s = ee(e.runId) ? e.runId : void 0, u = (f) => {
|
|
246
|
+
if (!s) return !1;
|
|
232
247
|
try {
|
|
233
248
|
const p = new URL(String(f), location.href);
|
|
234
249
|
return p.origin === location.origin || (e.runIdOrigins ?? []).includes(p.origin);
|
|
@@ -236,33 +251,35 @@ function qe(e) {
|
|
|
236
251
|
return !1;
|
|
237
252
|
}
|
|
238
253
|
};
|
|
239
|
-
let
|
|
254
|
+
let l = e.sink ?? null;
|
|
240
255
|
const i = (f, p) => {
|
|
241
|
-
|
|
242
|
-
},
|
|
256
|
+
l?.(f, p);
|
|
257
|
+
}, a = (f) => {
|
|
243
258
|
e.captureNetwork && t.push(f);
|
|
244
|
-
},
|
|
259
|
+
}, c = (f) => {
|
|
260
|
+
e.captureNetwork && i(yt, f);
|
|
261
|
+
}, d = (f, p, m, E = {}) => {
|
|
245
262
|
if (!p) return;
|
|
246
|
-
const
|
|
263
|
+
const L = {
|
|
247
264
|
level: f,
|
|
248
265
|
message: p,
|
|
249
266
|
...m ? { stack: m } : {},
|
|
250
267
|
...E,
|
|
251
268
|
at: Date.now()
|
|
252
269
|
};
|
|
253
|
-
|
|
254
|
-
},
|
|
270
|
+
o.push(L), i(Ae, L);
|
|
271
|
+
}, v = (f, p) => {
|
|
255
272
|
try {
|
|
256
|
-
const m =
|
|
257
|
-
|
|
273
|
+
const m = V(p.map(ce).join(" ")), E = p.find((L) => L instanceof Error);
|
|
274
|
+
d(f, m, le(E), {
|
|
258
275
|
mechanism: "console",
|
|
259
276
|
...E instanceof Error && E.name ? { name: E.name } : {}
|
|
260
277
|
});
|
|
261
278
|
} catch {
|
|
262
279
|
}
|
|
263
|
-
},
|
|
280
|
+
}, g = (f, p) => {
|
|
264
281
|
try {
|
|
265
|
-
const m =
|
|
282
|
+
const m = V(p.map(ce).join(" "));
|
|
266
283
|
m && r.push({
|
|
267
284
|
level: f,
|
|
268
285
|
message: m,
|
|
@@ -270,127 +287,127 @@ function qe(e) {
|
|
|
270
287
|
});
|
|
271
288
|
} catch {
|
|
272
289
|
}
|
|
273
|
-
},
|
|
274
|
-
console.error = (...f) => (
|
|
275
|
-
const
|
|
290
|
+
}, w = console.error, S = console.warn, R = console.log, _ = console.info;
|
|
291
|
+
console.error = (...f) => (v("error", f), w.apply(console, f)), console.warn = (...f) => (v("warn", f), S.apply(console, f)), console.log = (...f) => (g("log", f), R.apply(console, f)), console.info = (...f) => (g("info", f), _.apply(console, f));
|
|
292
|
+
const C = (f) => {
|
|
276
293
|
const p = f.target;
|
|
277
294
|
if (p instanceof Element) {
|
|
278
295
|
const E = p.src || p.href || "";
|
|
279
296
|
if (!E) return;
|
|
280
|
-
|
|
297
|
+
d("error", `Ressource non chargée : <${p.tagName.toLowerCase()}> ${W(E)}`.slice(0, K), void 0, {
|
|
281
298
|
mechanism: "resource",
|
|
282
|
-
sourceUrl:
|
|
299
|
+
sourceUrl: W(E)
|
|
283
300
|
});
|
|
284
301
|
return;
|
|
285
302
|
}
|
|
286
303
|
const m = f;
|
|
287
|
-
|
|
304
|
+
d("error", V(`Erreur non gérée : ${m.message}`), le(m.error), {
|
|
288
305
|
mechanism: "window.error",
|
|
289
306
|
...typeof m.error?.name == "string" ? { name: m.error.name } : {},
|
|
290
|
-
...typeof m.filename == "string" && m.filename ? { sourceUrl:
|
|
307
|
+
...typeof m.filename == "string" && m.filename ? { sourceUrl: W(m.filename) } : {},
|
|
291
308
|
...typeof m.lineno == "number" && m.lineno > 0 ? { line: m.lineno } : {},
|
|
292
309
|
...typeof m.colno == "number" && m.colno > 0 ? { column: m.colno } : {}
|
|
293
310
|
});
|
|
294
|
-
},
|
|
295
|
-
|
|
311
|
+
}, N = (f) => {
|
|
312
|
+
d("error", V(`Promesse rejetée : ${ce(f.reason)}`), le(f.reason), {
|
|
296
313
|
mechanism: "unhandledrejection",
|
|
297
314
|
...f.reason instanceof Error && f.reason.name ? { name: f.reason.name } : {}
|
|
298
315
|
});
|
|
299
316
|
};
|
|
300
|
-
window.addEventListener("error",
|
|
301
|
-
const
|
|
302
|
-
|
|
303
|
-
const m = Date.now(), E = (p?.method ?? (f instanceof Request ? f.method : "GET") ?? "GET").toUpperCase(),
|
|
304
|
-
let
|
|
305
|
-
if (
|
|
306
|
-
const
|
|
307
|
-
for (const [
|
|
308
|
-
|
|
317
|
+
window.addEventListener("error", C, !0), window.addEventListener("unhandledrejection", N);
|
|
318
|
+
const x = typeof window.fetch == "function" ? window.fetch.bind(window) : null;
|
|
319
|
+
x && (window.fetch = (async (f, p) => {
|
|
320
|
+
const m = Date.now(), E = (p?.method ?? (f instanceof Request ? f.method : "GET") ?? "GET").toUpperCase(), L = W(f);
|
|
321
|
+
let F = p;
|
|
322
|
+
if (s && u(f)) {
|
|
323
|
+
const A = new Headers(f instanceof Request ? f.headers : void 0);
|
|
324
|
+
for (const [T, G] of new Headers(p?.headers)) A.set(T, G);
|
|
325
|
+
A.set(_e, s), F = {
|
|
309
326
|
...p,
|
|
310
|
-
headers:
|
|
327
|
+
headers: A
|
|
311
328
|
};
|
|
312
329
|
}
|
|
313
330
|
try {
|
|
314
|
-
const
|
|
331
|
+
const A = await x(f, F);
|
|
315
332
|
try {
|
|
316
|
-
const
|
|
317
|
-
|
|
333
|
+
const T = A.headers.get("x-request-id"), G = A.headers.get("traceparent");
|
|
334
|
+
a({
|
|
318
335
|
method: E,
|
|
319
|
-
url:
|
|
320
|
-
status:
|
|
336
|
+
url: L,
|
|
337
|
+
status: A.status,
|
|
321
338
|
durationMs: Date.now() - m,
|
|
322
|
-
responseSize:
|
|
323
|
-
contentType:
|
|
339
|
+
responseSize: Te(A.headers.get("content-length")),
|
|
340
|
+
contentType: A.headers.get("content-type") ?? void 0,
|
|
324
341
|
startedAt: m,
|
|
325
|
-
...
|
|
326
|
-
...
|
|
327
|
-
...
|
|
328
|
-
}),
|
|
342
|
+
...T ? { requestId: T.slice(0, 200) } : {},
|
|
343
|
+
...G ? { traceparent: G.slice(0, 200) } : {},
|
|
344
|
+
...s ? { runId: s } : {}
|
|
345
|
+
}), A.ok || c({
|
|
329
346
|
method: E,
|
|
330
|
-
url:
|
|
331
|
-
status:
|
|
347
|
+
url: L,
|
|
348
|
+
status: A.status,
|
|
332
349
|
durationMs: Date.now() - m
|
|
333
350
|
});
|
|
334
351
|
} catch {
|
|
335
352
|
}
|
|
336
|
-
return
|
|
337
|
-
} catch (
|
|
353
|
+
return A;
|
|
354
|
+
} catch (A) {
|
|
338
355
|
try {
|
|
339
|
-
const
|
|
340
|
-
|
|
356
|
+
const T = Date.now() - m;
|
|
357
|
+
a({
|
|
341
358
|
method: E,
|
|
342
|
-
url:
|
|
359
|
+
url: L,
|
|
343
360
|
status: 0,
|
|
344
|
-
durationMs:
|
|
361
|
+
durationMs: T,
|
|
345
362
|
startedAt: m,
|
|
346
363
|
failed: !0,
|
|
347
|
-
...
|
|
348
|
-
}),
|
|
364
|
+
...s ? { runId: s } : {}
|
|
365
|
+
}), c({
|
|
349
366
|
method: E,
|
|
350
|
-
url:
|
|
367
|
+
url: L,
|
|
351
368
|
status: 0,
|
|
352
|
-
durationMs:
|
|
369
|
+
durationMs: T
|
|
353
370
|
});
|
|
354
371
|
} catch {
|
|
355
372
|
}
|
|
356
|
-
throw
|
|
373
|
+
throw A;
|
|
357
374
|
}
|
|
358
375
|
}));
|
|
359
|
-
const
|
|
376
|
+
const P = XMLHttpRequest.prototype.open, M = XMLHttpRequest.prototype.send, $ = "__echoNet";
|
|
360
377
|
XMLHttpRequest.prototype.open = function(f, p, ...m) {
|
|
361
|
-
return this[
|
|
378
|
+
return this[$] = {
|
|
362
379
|
method: (f || "GET").toUpperCase(),
|
|
363
|
-
url:
|
|
380
|
+
url: W(p),
|
|
364
381
|
start: 0,
|
|
365
|
-
propagate:
|
|
366
|
-
},
|
|
382
|
+
propagate: u(p)
|
|
383
|
+
}, P.apply(this, [
|
|
367
384
|
f,
|
|
368
385
|
p,
|
|
369
386
|
...m
|
|
370
387
|
]);
|
|
371
388
|
}, XMLHttpRequest.prototype.send = function(...f) {
|
|
372
|
-
const p = this[
|
|
389
|
+
const p = this[$];
|
|
373
390
|
if (p) {
|
|
374
|
-
if (p.start = Date.now(),
|
|
375
|
-
this.setRequestHeader(
|
|
391
|
+
if (p.start = Date.now(), s && p.propagate) try {
|
|
392
|
+
this.setRequestHeader(_e, s);
|
|
376
393
|
} catch {
|
|
377
394
|
}
|
|
378
395
|
this.addEventListener("loadend", () => {
|
|
379
396
|
try {
|
|
380
|
-
const m = Date.now() - p.start, E = this.status,
|
|
381
|
-
|
|
397
|
+
const m = Date.now() - p.start, E = this.status, L = E === 0, F = this.getResponseHeader("x-request-id"), A = this.getResponseHeader("traceparent");
|
|
398
|
+
a({
|
|
382
399
|
method: p.method,
|
|
383
400
|
url: p.url,
|
|
384
401
|
status: E,
|
|
385
402
|
durationMs: m,
|
|
386
|
-
responseSize:
|
|
403
|
+
responseSize: Te(this.getResponseHeader("content-length")),
|
|
387
404
|
contentType: this.getResponseHeader("content-type") ?? void 0,
|
|
388
405
|
startedAt: p.start,
|
|
389
|
-
...
|
|
390
|
-
...
|
|
391
|
-
...
|
|
392
|
-
...
|
|
393
|
-
}), (
|
|
406
|
+
...L ? { failed: !0 } : {},
|
|
407
|
+
...s ? { runId: s } : {},
|
|
408
|
+
...F ? { requestId: F.slice(0, 200) } : {},
|
|
409
|
+
...A ? { traceparent: A.slice(0, 200) } : {}
|
|
410
|
+
}), (L || E >= 400) && c({
|
|
394
411
|
method: p.method,
|
|
395
412
|
url: p.url,
|
|
396
413
|
status: E,
|
|
@@ -400,53 +417,252 @@ function qe(e) {
|
|
|
400
417
|
}
|
|
401
418
|
}, { once: !0 });
|
|
402
419
|
}
|
|
403
|
-
return
|
|
420
|
+
return M.apply(this, f);
|
|
404
421
|
};
|
|
405
|
-
const B =
|
|
422
|
+
const B = Gt({
|
|
406
423
|
onResource: (f) => {
|
|
407
|
-
e.captureNetwork && n.push(
|
|
424
|
+
e.captureNetwork && n.push(s ? {
|
|
408
425
|
...f,
|
|
409
|
-
runId:
|
|
426
|
+
runId: s
|
|
410
427
|
} : f);
|
|
411
428
|
},
|
|
412
|
-
onReport: (f, p) =>
|
|
413
|
-
}),
|
|
414
|
-
let
|
|
429
|
+
onReport: (f, p) => d(f, V(p), void 0, { mechanism: "report" })
|
|
430
|
+
}), D = () => e.captureNetwork ? [...t.snapshot(), ...n.snapshot()].sort((f, p) => f.startedAt - p.startedAt) : [];
|
|
431
|
+
let U = !1;
|
|
415
432
|
return {
|
|
416
433
|
snapshot: () => ({
|
|
417
|
-
errors:
|
|
434
|
+
errors: o.snapshot(),
|
|
418
435
|
logs: r.snapshot(),
|
|
419
|
-
network:
|
|
420
|
-
...
|
|
436
|
+
network: D(),
|
|
437
|
+
...s ? { runId: s } : {}
|
|
421
438
|
}),
|
|
422
439
|
setSink: (f) => {
|
|
423
|
-
|
|
440
|
+
l = f;
|
|
424
441
|
},
|
|
425
442
|
flushRings: () => {
|
|
426
|
-
const f =
|
|
427
|
-
f.length > 0 && i(
|
|
443
|
+
const f = D();
|
|
444
|
+
f.length > 0 && i(vt, { entries: f });
|
|
428
445
|
const p = r.snapshot();
|
|
429
|
-
p.length > 0 && i(
|
|
430
|
-
const m =
|
|
431
|
-
m.length > 0 && i(
|
|
446
|
+
p.length > 0 && i(bt, { entries: p });
|
|
447
|
+
const m = o.snapshot();
|
|
448
|
+
m.length > 0 && i(Ae, { entries: m });
|
|
432
449
|
},
|
|
433
450
|
teardown: () => {
|
|
434
|
-
|
|
451
|
+
U || (U = !0, l = null, B.teardown(), console.error = w, console.warn = S, console.log = R, console.info = _, window.removeEventListener("error", C, !0), window.removeEventListener("unhandledrejection", N), x && (window.fetch = x), XMLHttpRequest.prototype.open = P, XMLHttpRequest.prototype.send = M);
|
|
452
|
+
}
|
|
453
|
+
};
|
|
454
|
+
}
|
|
455
|
+
var ge = "leesto-mask", te = "[data-leesto-block]", Fe = "leesto-mask-text", Ue = "[data-private]", Ge = `.${Fe}, ${Ue}`, Zt = 'img, picture, video, canvas, object, embed, svg image, input[type="image"]', Jt = 'button, a, [role="button"], [role="link"], input[type="button"], input[type="submit"], input[type="reset"]';
|
|
456
|
+
var He = 'input:not([type="button"]):not([type="submit"]):not([type="reset"]), textarea, select';
|
|
457
|
+
function We(e) {
|
|
458
|
+
return e.replace(/\S/g, "*");
|
|
459
|
+
}
|
|
460
|
+
function Qt(e, t) {
|
|
461
|
+
try {
|
|
462
|
+
return e.closest(t);
|
|
463
|
+
} catch {
|
|
464
|
+
return null;
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
function je(e) {
|
|
468
|
+
return Qt(e, Ge) !== null;
|
|
469
|
+
}
|
|
470
|
+
var en = `.${ge}, ${te}, ${Ge}`;
|
|
471
|
+
function Y(e) {
|
|
472
|
+
try {
|
|
473
|
+
return e.closest(en) !== null;
|
|
474
|
+
} catch {
|
|
475
|
+
return !0;
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
function ze(e) {
|
|
479
|
+
if (!e || typeof e.closest != "function") return !1;
|
|
480
|
+
try {
|
|
481
|
+
if (je(e) || e.matches(He)) return !1;
|
|
482
|
+
const t = e.closest(Jt);
|
|
483
|
+
return t ? (t.textContent ?? "").trim().length <= 80 : !1;
|
|
484
|
+
} catch {
|
|
485
|
+
return !1;
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
var Le = {
|
|
489
|
+
maskAllInputs: !0,
|
|
490
|
+
maskInputOptions: {
|
|
491
|
+
password: !0,
|
|
492
|
+
email: !0,
|
|
493
|
+
tel: !0,
|
|
494
|
+
text: !0
|
|
495
|
+
},
|
|
496
|
+
blockClass: ge,
|
|
497
|
+
maskTextClass: Fe
|
|
498
|
+
};
|
|
499
|
+
function Ve(e) {
|
|
500
|
+
if (e === "inputs_only") return {
|
|
501
|
+
...Le,
|
|
502
|
+
blockSelector: te,
|
|
503
|
+
maskTextSelector: Ue
|
|
504
|
+
};
|
|
505
|
+
const t = {
|
|
506
|
+
...Le,
|
|
507
|
+
blockSelector: `${te}, ${Zt}`,
|
|
508
|
+
maskTextSelector: "*"
|
|
509
|
+
};
|
|
510
|
+
return e === "labels_visible" ? {
|
|
511
|
+
...t,
|
|
512
|
+
maskTextFn: (n, r) => ze(r) ? n : We(n)
|
|
513
|
+
} : t;
|
|
514
|
+
}
|
|
515
|
+
var ke = /* @__PURE__ */ new Set([
|
|
516
|
+
"placeholder",
|
|
517
|
+
"title",
|
|
518
|
+
"alt",
|
|
519
|
+
"label",
|
|
520
|
+
"aria-label",
|
|
521
|
+
"aria-description",
|
|
522
|
+
"aria-placeholder",
|
|
523
|
+
"aria-roledescription",
|
|
524
|
+
"aria-valuetext"
|
|
525
|
+
]), tn = 2, nn = 3, rn = 4, on = 0, sn = 2;
|
|
526
|
+
function an(e, t, n) {
|
|
527
|
+
if (e) try {
|
|
528
|
+
return e.matches(He);
|
|
529
|
+
} catch {
|
|
530
|
+
return !0;
|
|
531
|
+
}
|
|
532
|
+
const r = t.toLowerCase();
|
|
533
|
+
if (r === "textarea" || r === "select") return !0;
|
|
534
|
+
if (r !== "input") return !1;
|
|
535
|
+
const o = String(n.type ?? "").toLowerCase();
|
|
536
|
+
return o !== "button" && o !== "submit" && o !== "reset";
|
|
537
|
+
}
|
|
538
|
+
function Xe(e, t, n) {
|
|
539
|
+
const r = e;
|
|
540
|
+
if (!r || typeof r != "object" || !r.data) return e;
|
|
541
|
+
const o = (a) => {
|
|
542
|
+
if (typeof a != "number") return null;
|
|
543
|
+
try {
|
|
544
|
+
const c = n(a);
|
|
545
|
+
return c && c.nodeType === 1 ? c : null;
|
|
546
|
+
} catch {
|
|
547
|
+
return null;
|
|
548
|
+
}
|
|
549
|
+
}, s = (a, c, d, v) => {
|
|
550
|
+
if (c === "value") {
|
|
551
|
+
if (an(a, d, v)) return !1;
|
|
552
|
+
} else if (!ke.has(c)) return !0;
|
|
553
|
+
return !a || je(a) ? !1 : t === "inputs_only" ? !0 : t === "labels_visible" ? ze(a) : !1;
|
|
554
|
+
}, u = (a, c, d) => {
|
|
555
|
+
if (d)
|
|
556
|
+
for (const v of Object.keys(d)) {
|
|
557
|
+
const g = d[v];
|
|
558
|
+
typeof g != "string" || !g || v !== "value" && !ke.has(v) || s(a, v, c, d) || (d[v] = We(g));
|
|
559
|
+
}
|
|
560
|
+
}, l = (a) => {
|
|
561
|
+
const c = a ? [a] : [];
|
|
562
|
+
for (; c.length > 0; ) {
|
|
563
|
+
const d = c.pop();
|
|
564
|
+
d.type === sn && d.attributes && u(o(d.id), String(d.tagName ?? ""), d.attributes), Array.isArray(d.childNodes) && c.push(...d.childNodes);
|
|
565
|
+
}
|
|
566
|
+
}, i = r.data;
|
|
567
|
+
if (r.type === rn && typeof i.href == "string") i.href = gt(i.href);
|
|
568
|
+
else if (r.type === tn) l(i.node);
|
|
569
|
+
else if (r.type === nn && i.source === on) {
|
|
570
|
+
for (const a of i.adds ?? []) l(a.node);
|
|
571
|
+
for (const a of i.attributes ?? []) {
|
|
572
|
+
const c = o(a.id);
|
|
573
|
+
u(c, c?.tagName ?? "", a.attributes);
|
|
435
574
|
}
|
|
575
|
+
}
|
|
576
|
+
return e;
|
|
577
|
+
}
|
|
578
|
+
var ln = 80, cn = {
|
|
579
|
+
a: "link",
|
|
580
|
+
button: "button",
|
|
581
|
+
img: "img",
|
|
582
|
+
textarea: "textbox",
|
|
583
|
+
select: "combobox",
|
|
584
|
+
h1: "heading",
|
|
585
|
+
h2: "heading",
|
|
586
|
+
h3: "heading",
|
|
587
|
+
h4: "heading",
|
|
588
|
+
h5: "heading",
|
|
589
|
+
h6: "heading",
|
|
590
|
+
dialog: "dialog"
|
|
591
|
+
}, un = {
|
|
592
|
+
button: "button",
|
|
593
|
+
submit: "button",
|
|
594
|
+
reset: "button",
|
|
595
|
+
checkbox: "checkbox",
|
|
596
|
+
radio: "radio",
|
|
597
|
+
search: "searchbox"
|
|
598
|
+
}, H = (e) => {
|
|
599
|
+
const t = (e ?? "").replace(/\s+/g, " ").trim();
|
|
600
|
+
return t ? t.slice(0, ln) : null;
|
|
601
|
+
};
|
|
602
|
+
function fn(e) {
|
|
603
|
+
const t = [];
|
|
604
|
+
let n = 0;
|
|
605
|
+
const r = e.ownerDocument.createTreeWalker(e, NodeFilter.SHOW_TEXT);
|
|
606
|
+
for (let o = r.nextNode(); o && n < 320; o = r.nextNode()) {
|
|
607
|
+
const s = o.parentElement;
|
|
608
|
+
if (s && s !== e && Y(s)) continue;
|
|
609
|
+
const u = o.nodeValue ?? "";
|
|
610
|
+
u.trim() && (t.push(u), n += u.length);
|
|
611
|
+
}
|
|
612
|
+
return t.join(" ");
|
|
613
|
+
}
|
|
614
|
+
function dn(e, t) {
|
|
615
|
+
const n = e.getAttribute("role")?.trim().split(/\s+/)[0];
|
|
616
|
+
return n || (t === "input" ? un[e.type] ?? "textbox" : t === "a" && !e.hasAttribute("href") ? null : cn[t] ?? null);
|
|
617
|
+
}
|
|
618
|
+
function pn(e) {
|
|
619
|
+
const t = (e.getAttribute("aria-labelledby")?.split(/\s+/).filter(Boolean) ?? []).map((n) => {
|
|
620
|
+
const r = e.ownerDocument.getElementById(n);
|
|
621
|
+
return r && !Y(r) ? r.textContent ?? "" : "";
|
|
622
|
+
});
|
|
623
|
+
return H(t.join(" "));
|
|
624
|
+
}
|
|
625
|
+
function hn(e, t) {
|
|
626
|
+
const n = H(e.getAttribute("aria-label")) ?? pn(e) ?? (t === "img" ? H(e.getAttribute("alt")) : null) ?? H(e.getAttribute("title"));
|
|
627
|
+
if (n) return n;
|
|
628
|
+
if (t === "input" || t === "textarea" || t === "select") {
|
|
629
|
+
const r = e.getAttribute("id"), o = r ? e.ownerDocument.querySelector(`label[for="${CSS.escape(r)}"]`) : null, s = o && !Y(o) ? o.textContent : null;
|
|
630
|
+
return H(s) ?? H(e.getAttribute("placeholder"));
|
|
631
|
+
}
|
|
632
|
+
return H(fn(e));
|
|
633
|
+
}
|
|
634
|
+
function mn(e) {
|
|
635
|
+
if (!e) return null;
|
|
636
|
+
try {
|
|
637
|
+
const t = new URL(e, document.baseURI);
|
|
638
|
+
return t.protocol === "data:" || t.protocol === "blob:" ? `${t.protocol}…` : `${t.origin}${t.pathname}`;
|
|
639
|
+
} catch {
|
|
640
|
+
return null;
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
function gn(e) {
|
|
644
|
+
const t = e.tagName.toLowerCase(), n = Y(e), r = {
|
|
645
|
+
tag: t,
|
|
646
|
+
role: dn(e, t),
|
|
647
|
+
name: n ? null : hn(e, t)
|
|
436
648
|
};
|
|
649
|
+
return e instanceof HTMLImageElement && (r.image = {
|
|
650
|
+
src: n ? null : mn(e.currentSrc || e.getAttribute("src") || ""),
|
|
651
|
+
loaded: e.complete && e.naturalWidth > 0
|
|
652
|
+
}), r;
|
|
437
653
|
}
|
|
438
|
-
var
|
|
654
|
+
var yn = 100, vn = [
|
|
439
655
|
"hidden",
|
|
440
656
|
"class",
|
|
441
657
|
"style",
|
|
442
658
|
"type",
|
|
443
659
|
"disabled",
|
|
444
660
|
"aria-hidden"
|
|
445
|
-
],
|
|
446
|
-
function
|
|
661
|
+
], oe = 'input[type="password"]', Ke = 'input[autocomplete="username"], input[autocomplete="email"], input[type="email"]', se = `${oe}, ${Ke}`, ne = /\b(connexion|se connecter|connectez[- ]vous|s'identifier|identifiez[- ]vous|login|log ?in|sign ?in)\b/, he = /\b(inscription|s'inscrire|inscrivez|creer (un|votre|mon) compte|sign ?up|register|create (an |your )?account|mot de passe oublie|oublie|reinitialiser|forgot|reset|lien de connexion|magic link|envoyer (un|le) lien|send (me )?(a |the )?link|code|newsletter|abonner|subscribe|enregistrer|sauvegarder|mettre a jour|save|update|confirmer|confirm|supprimer mon compte|delete account|payer|pay)\b/, bn = /\b(inscription|s'inscrire|inscrivez|creer (un|votre|mon) compte|sign ?up|create (an |your )?account|mot de passe oublie|reinitialiser|forgot|lien de connexion|magic link|envoyer (un|le) lien|send (me )?(a |the )?link|newsletter|abonner|subscribe)\b/, wn = /\b(afficher|masquer|voir|show|hide|toggle)\b/, En = /\b(effacer|vider|supprimer|clear|reset)\b/, Sn = /[\u{1F441}\u{1F576}\u{1F440}]/u;
|
|
662
|
+
function X(e) {
|
|
447
663
|
return (e ?? "").normalize("NFD").replace(/[̀-ͯ]/g, "").replace(/[’‘]/g, "'").replace(/\s+/g, " ").trim().toLowerCase();
|
|
448
664
|
}
|
|
449
|
-
function
|
|
665
|
+
function ie(e) {
|
|
450
666
|
let t = e;
|
|
451
667
|
for (; t; ) {
|
|
452
668
|
if (t.hasAttribute("hidden") || t.getAttribute("aria-hidden") === "true" || t instanceof HTMLInputElement && t.type === "hidden") return !1;
|
|
@@ -456,43 +672,43 @@ function ne(e) {
|
|
|
456
672
|
}
|
|
457
673
|
return !0;
|
|
458
674
|
}
|
|
459
|
-
function
|
|
460
|
-
return Array.from(e.querySelectorAll(t)).filter(
|
|
675
|
+
function j(e, t) {
|
|
676
|
+
return Array.from(e.querySelectorAll(t)).filter(ie);
|
|
461
677
|
}
|
|
462
|
-
function
|
|
678
|
+
function Rn(e) {
|
|
463
679
|
return e ? e instanceof HTMLInputElement ? e.value : e.textContent ?? "" : "";
|
|
464
680
|
}
|
|
465
|
-
function
|
|
681
|
+
function Ye(e, t) {
|
|
466
682
|
return !e.outsideForms || !t.closest("form");
|
|
467
683
|
}
|
|
468
|
-
function
|
|
469
|
-
return Array.from(e.scope.querySelectorAll(t)).filter((n) =>
|
|
684
|
+
function J(e, t) {
|
|
685
|
+
return Array.from(e.scope.querySelectorAll(t)).filter((n) => ie(n) && Ye(e, n));
|
|
470
686
|
}
|
|
471
|
-
function
|
|
472
|
-
return
|
|
687
|
+
function re(e) {
|
|
688
|
+
return X(e.getAttribute("aria-label") ?? e.getAttribute("title") ?? e.textContent);
|
|
473
689
|
}
|
|
474
|
-
function
|
|
475
|
-
const t =
|
|
476
|
-
return
|
|
690
|
+
function _n(e) {
|
|
691
|
+
const t = re(e);
|
|
692
|
+
return wn.test(t) || Sn.test(t);
|
|
477
693
|
}
|
|
478
|
-
function
|
|
694
|
+
function An(e, t) {
|
|
479
695
|
if (e.getAttribute("type") === "submit" || !t) return !1;
|
|
480
696
|
const n = e.parentElement;
|
|
481
|
-
return !n ||
|
|
697
|
+
return !n || j(n, se).length === 0 ? !1 : !n.contains(t);
|
|
482
698
|
}
|
|
483
|
-
var
|
|
484
|
-
function
|
|
485
|
-
return Array.from(e.querySelectorAll(
|
|
699
|
+
var Tn = 'button, input[type="submit"], input[type="button"], input[type="image"], a[href]';
|
|
700
|
+
function Ln(e) {
|
|
701
|
+
return Array.from(e.querySelectorAll(Tn)).some(ie);
|
|
486
702
|
}
|
|
487
|
-
function
|
|
703
|
+
function kn(e, t) {
|
|
488
704
|
let n = e.parentElement;
|
|
489
705
|
for (; n && !n.contains(t); ) {
|
|
490
|
-
if (
|
|
706
|
+
if (Ln(n)) return !0;
|
|
491
707
|
n = n.parentElement;
|
|
492
708
|
}
|
|
493
709
|
return !1;
|
|
494
710
|
}
|
|
495
|
-
function
|
|
711
|
+
function On(e) {
|
|
496
712
|
const t = [
|
|
497
713
|
e.getAttribute("name"),
|
|
498
714
|
e.getAttribute("id"),
|
|
@@ -504,173 +720,173 @@ function jt(e) {
|
|
|
504
720
|
const r = e.ownerDocument.querySelector(`label[for="${CSS.escape(n)}"]`);
|
|
505
721
|
r && t.push(r.textContent);
|
|
506
722
|
}
|
|
507
|
-
return
|
|
723
|
+
return X(t.filter(Boolean).join(" "));
|
|
508
724
|
}
|
|
509
|
-
function
|
|
725
|
+
function In(e, t) {
|
|
510
726
|
const n = e.parentElement;
|
|
511
727
|
if (!n) return null;
|
|
512
|
-
const r = e.ownerDocument.body,
|
|
513
|
-
scope:
|
|
728
|
+
const r = e.ownerDocument.body, o = (c) => t ? Ze({
|
|
729
|
+
scope: c,
|
|
514
730
|
outsideForms: !0
|
|
515
|
-
}, t) : e,
|
|
516
|
-
scope:
|
|
731
|
+
}, t) : e, s = (c) => me({
|
|
732
|
+
scope: c,
|
|
517
733
|
outsideForms: !0
|
|
518
|
-
}, e,
|
|
519
|
-
let
|
|
520
|
-
const
|
|
521
|
-
const d =
|
|
522
|
-
d && !i &&
|
|
734
|
+
}, e, o(c)), u = (c) => !!o(c) && !!s(c);
|
|
735
|
+
let l = n, i = null;
|
|
736
|
+
const a = (c) => {
|
|
737
|
+
const d = s(c);
|
|
738
|
+
d && !i && ne.test(re(d)) && (i = c);
|
|
523
739
|
};
|
|
524
|
-
for (
|
|
525
|
-
const
|
|
526
|
-
if (!
|
|
527
|
-
const d = [e],
|
|
528
|
-
|
|
529
|
-
const g = !!
|
|
530
|
-
if (
|
|
531
|
-
|
|
740
|
+
for (a(n); l !== r && !u(l); ) {
|
|
741
|
+
const c = l.parentElement;
|
|
742
|
+
if (!c || c.querySelector("form")) break;
|
|
743
|
+
const d = [e], v = o(l);
|
|
744
|
+
v && v !== e && d.push(v);
|
|
745
|
+
const g = !!v;
|
|
746
|
+
if (j(c, se).filter((w) => !w.closest("form") && !d.includes(w)).some((w) => w.matches(oe) || g || he.test(On(w)) ? !0 : kn(w, e))) break;
|
|
747
|
+
l = c, a(c);
|
|
532
748
|
}
|
|
533
749
|
return {
|
|
534
|
-
scope: l
|
|
750
|
+
scope: u(l) ? l : i ?? n,
|
|
535
751
|
outsideForms: !0
|
|
536
752
|
};
|
|
537
753
|
}
|
|
538
|
-
function
|
|
754
|
+
function Oe(e, t, n) {
|
|
539
755
|
return e ? {
|
|
540
756
|
scope: e,
|
|
541
757
|
outsideForms: !1
|
|
542
|
-
} :
|
|
758
|
+
} : In(t, n);
|
|
543
759
|
}
|
|
544
|
-
function
|
|
760
|
+
function Cn(e, t) {
|
|
545
761
|
let n = e.parentElement;
|
|
546
762
|
for (; n && n !== t.scope; ) {
|
|
547
|
-
if (
|
|
763
|
+
if (j(n, se).length === 1) return !0;
|
|
548
764
|
n = n.parentElement;
|
|
549
765
|
}
|
|
550
766
|
return !1;
|
|
551
767
|
}
|
|
552
|
-
function
|
|
553
|
-
const r = (i) => !!(t.compareDocumentPosition(i) & Node.DOCUMENT_POSITION_FOLLOWING),
|
|
554
|
-
if (
|
|
555
|
-
const
|
|
556
|
-
const
|
|
768
|
+
function me(e, t, n) {
|
|
769
|
+
const r = (i) => !!(t.compareDocumentPosition(i) & Node.DOCUMENT_POSITION_FOLLOWING), o = Array.from(e.scope.querySelectorAll('button, input[type="submit"]')).filter((i) => ie(i) && Ye(e, i) && (i.getAttribute("type") === "submit" || r(i)) && !_n(i) && !En.test(re(i)) && !An(i, n));
|
|
770
|
+
if (o.length === 0) return null;
|
|
771
|
+
const s = (i, a) => {
|
|
772
|
+
const c = r(i);
|
|
557
773
|
return [
|
|
558
|
-
|
|
559
|
-
|
|
774
|
+
Cn(i, e) ? 1 : 0,
|
|
775
|
+
ne.test(re(i)) ? 0 : 1,
|
|
560
776
|
i.getAttribute("type") === "submit" ? 0 : 1,
|
|
561
|
-
|
|
562
|
-
|
|
777
|
+
c ? 0 : 1,
|
|
778
|
+
c ? a : -a
|
|
563
779
|
];
|
|
564
780
|
};
|
|
565
|
-
let
|
|
566
|
-
return
|
|
567
|
-
const
|
|
568
|
-
for (let d = 0; d <
|
|
569
|
-
const
|
|
570
|
-
if (
|
|
571
|
-
|
|
781
|
+
let u = o[0], l = s(u, 0);
|
|
782
|
+
return o.forEach((i, a) => {
|
|
783
|
+
const c = s(i, a);
|
|
784
|
+
for (let d = 0; d < c.length; d++) {
|
|
785
|
+
const v = c[d], g = l[d];
|
|
786
|
+
if (v !== g) {
|
|
787
|
+
v < g && (u = i, l = c);
|
|
572
788
|
return;
|
|
573
789
|
}
|
|
574
790
|
}
|
|
575
|
-
}),
|
|
791
|
+
}), u;
|
|
576
792
|
}
|
|
577
|
-
function
|
|
578
|
-
return e.querySelectorAll("form").length + (
|
|
793
|
+
function Ie(e) {
|
|
794
|
+
return e.querySelectorAll("form").length + (j(e, se).some((t) => !t.closest("form")) ? 1 : 0) === 1;
|
|
579
795
|
}
|
|
580
|
-
function
|
|
796
|
+
function Nn(e, t) {
|
|
581
797
|
if (e) {
|
|
582
798
|
const n = e.getAttribute("aria-label");
|
|
583
799
|
if (n) return n;
|
|
584
800
|
const r = e.getAttribute("aria-labelledby");
|
|
585
801
|
if (r) {
|
|
586
|
-
const
|
|
587
|
-
if (
|
|
802
|
+
const l = e.ownerDocument.getElementById(r);
|
|
803
|
+
if (l) return l.textContent ?? "";
|
|
588
804
|
}
|
|
589
|
-
const
|
|
590
|
-
if (
|
|
591
|
-
let
|
|
592
|
-
for (;
|
|
593
|
-
const
|
|
594
|
-
if (
|
|
805
|
+
const o = e.querySelector("h1, h2, h3, legend");
|
|
806
|
+
if (o) return o.textContent ?? "";
|
|
807
|
+
let s = e.previousElementSibling;
|
|
808
|
+
for (; s; ) {
|
|
809
|
+
const l = /^(h1|h2|h3|legend)$/i.test(s.tagName) ? s : s.querySelector("h1, h2, h3, legend");
|
|
810
|
+
if (l) {
|
|
595
811
|
const i = e.parentElement;
|
|
596
|
-
return i &&
|
|
812
|
+
return i && Ie(i) ? l.textContent ?? "" : "";
|
|
597
813
|
}
|
|
598
|
-
|
|
814
|
+
s = s.previousElementSibling;
|
|
599
815
|
}
|
|
600
|
-
const
|
|
601
|
-
if (
|
|
602
|
-
const
|
|
603
|
-
if (
|
|
604
|
-
return
|
|
816
|
+
const u = e.closest("section, article, aside, dialog, fieldset, [role='dialog'], [role='region']");
|
|
817
|
+
if (u && u !== e) {
|
|
818
|
+
const l = u.querySelector("h1, h2, h3, legend");
|
|
819
|
+
if (l)
|
|
820
|
+
return Ie(u) ? l.textContent ?? "" : "";
|
|
605
821
|
}
|
|
606
822
|
return "";
|
|
607
823
|
}
|
|
608
824
|
return (t instanceof Document ? t.body : t)?.querySelector("h1, h2, h3")?.textContent ?? "";
|
|
609
825
|
}
|
|
610
|
-
function
|
|
611
|
-
const r =
|
|
826
|
+
function Ce(e, t, n) {
|
|
827
|
+
const r = X(Rn(n)), o = X(Nn(e, t)), s = (e?.getAttribute("action") ?? "").split("?")[0], u = X([
|
|
612
828
|
e?.id,
|
|
613
829
|
e?.getAttribute("name"),
|
|
614
830
|
e?.className,
|
|
615
|
-
|
|
831
|
+
s
|
|
616
832
|
].filter(Boolean).join(" "));
|
|
617
833
|
return {
|
|
618
|
-
positive:
|
|
619
|
-
negative:
|
|
834
|
+
positive: ne.test(r) || ne.test(o),
|
|
835
|
+
negative: he.test(r) || he.test(o) || bn.test(u)
|
|
620
836
|
};
|
|
621
837
|
}
|
|
622
|
-
function
|
|
623
|
-
const n =
|
|
838
|
+
function Ze(e, t) {
|
|
839
|
+
const n = J(e, 'input[autocomplete="username"]')[0] ?? J(e, 'input[autocomplete="email"]')[0] ?? J(e, 'input[type="email"]')[0];
|
|
624
840
|
if (n) return n;
|
|
625
841
|
if (!t) return null;
|
|
626
|
-
const r =
|
|
842
|
+
const r = J(e, 'input[type="text"], input:not([type])').filter((o) => o.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_FOLLOWING);
|
|
627
843
|
return r[r.length - 1] ?? null;
|
|
628
844
|
}
|
|
629
|
-
function
|
|
845
|
+
function ue(e, t) {
|
|
630
846
|
if (t.querySelector('input[autocomplete="new-password"]')) return null;
|
|
631
|
-
const n =
|
|
847
|
+
const n = j(t, oe);
|
|
632
848
|
if (n.length > 1) return null;
|
|
633
849
|
if (n.length === 1) {
|
|
634
|
-
const i = n[0],
|
|
635
|
-
if (!
|
|
636
|
-
const
|
|
637
|
-
return !(i.autocomplete === "current-password" ||
|
|
850
|
+
const i = n[0], a = Oe(e, i, i);
|
|
851
|
+
if (!a) return null;
|
|
852
|
+
const c = Ze(a, i), d = me(a, i, c), v = Ce(e, t, d);
|
|
853
|
+
return !(i.autocomplete === "current-password" || v.positive) || v.negative ? null : {
|
|
638
854
|
kind: "password",
|
|
639
855
|
form: e,
|
|
640
|
-
identifier:
|
|
856
|
+
identifier: c,
|
|
641
857
|
password: i,
|
|
642
858
|
submit: d
|
|
643
859
|
};
|
|
644
860
|
}
|
|
645
|
-
const r =
|
|
861
|
+
const r = j(t, Ke);
|
|
646
862
|
if (r.length !== 1) return null;
|
|
647
|
-
const
|
|
648
|
-
if (!
|
|
649
|
-
const
|
|
650
|
-
return !(
|
|
863
|
+
const o = r[0], s = Oe(e, o, null);
|
|
864
|
+
if (!s) return null;
|
|
865
|
+
const u = me(s, o, o), l = Ce(e, t, u);
|
|
866
|
+
return !(o.autocomplete === "username" || l.positive) || l.negative ? null : {
|
|
651
867
|
kind: "identifier",
|
|
652
868
|
form: e,
|
|
653
|
-
identifier:
|
|
869
|
+
identifier: o,
|
|
654
870
|
password: null,
|
|
655
|
-
submit:
|
|
871
|
+
submit: u
|
|
656
872
|
};
|
|
657
873
|
}
|
|
658
|
-
function
|
|
874
|
+
function Ne(e = document) {
|
|
659
875
|
const t = Array.from(e.querySelectorAll("form"));
|
|
660
876
|
for (const n of t) {
|
|
661
|
-
const r =
|
|
877
|
+
const r = ue(n, n);
|
|
662
878
|
if (r) return r;
|
|
663
879
|
}
|
|
664
|
-
return t.length === 0 ||
|
|
880
|
+
return t.length === 0 || j(e, oe).find((n) => !n.closest("form")) ? ue(null, e) : null;
|
|
665
881
|
}
|
|
666
|
-
function
|
|
882
|
+
function xe(e, t) {
|
|
667
883
|
const n = Object.getPrototypeOf(e), r = Object.getOwnPropertyDescriptor(n, "value")?.set ?? Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")?.set;
|
|
668
884
|
r ? r.call(e, t) : e.value = t, e.dispatchEvent(new Event("input", { bubbles: !0 })), e.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
669
885
|
}
|
|
670
|
-
function
|
|
886
|
+
function xn(e) {
|
|
671
887
|
return !!e.form || !!e.submit;
|
|
672
888
|
}
|
|
673
|
-
function
|
|
889
|
+
function Mn(e) {
|
|
674
890
|
const t = e.form, n = t?.noValidate;
|
|
675
891
|
t && (t.noValidate = !0);
|
|
676
892
|
try {
|
|
@@ -679,28 +895,28 @@ function Yt(e) {
|
|
|
679
895
|
t && (t.noValidate = n ?? !1);
|
|
680
896
|
}
|
|
681
897
|
}
|
|
682
|
-
var
|
|
898
|
+
var Dn = {
|
|
683
899
|
identifier: null,
|
|
684
900
|
password: null
|
|
685
901
|
};
|
|
686
|
-
function
|
|
902
|
+
function Me(e, t) {
|
|
687
903
|
return !e || e.disabled || e.readOnly ? !1 : e.value === "" || t !== null && e.value === t;
|
|
688
904
|
}
|
|
689
|
-
function
|
|
905
|
+
function Je(e, t, n) {
|
|
690
906
|
return {
|
|
691
|
-
identifier:
|
|
692
|
-
password:
|
|
907
|
+
identifier: Me(e.identifier, n.identifier) && !t.identifier,
|
|
908
|
+
password: Me(e.password, n.password) && !t.password
|
|
693
909
|
};
|
|
694
910
|
}
|
|
695
|
-
function
|
|
911
|
+
function $n(e, t, n) {
|
|
696
912
|
const r = e.identifier;
|
|
697
913
|
return !r || n.identifier ? !1 : r.value !== "" && r.value !== t.login;
|
|
698
914
|
}
|
|
699
|
-
function
|
|
700
|
-
const
|
|
701
|
-
return !
|
|
915
|
+
function Pn(e, t, n, r = Dn) {
|
|
916
|
+
const o = Je(e, n, r);
|
|
917
|
+
return !o.identifier && !o.password ? { error: "nothing-to-fill" } : $n(e, t, o) ? { error: "identifier-mismatch" } : xn(e) ? (o.identifier && xe(e.identifier, t.login), o.password && xe(e.password, t.password), Mn(e) ? { step: o.identifier && o.password ? "both" : o.password ? "password" : "identifier" } : { error: "no-submit" }) : { error: "no-submit" };
|
|
702
918
|
}
|
|
703
|
-
function
|
|
919
|
+
function qn(e) {
|
|
704
920
|
if (typeof window > "u" || typeof MutationObserver > "u") return {
|
|
705
921
|
watch() {
|
|
706
922
|
},
|
|
@@ -717,31 +933,31 @@ function en(e) {
|
|
|
717
933
|
}, r = {
|
|
718
934
|
identifier: null,
|
|
719
935
|
password: null
|
|
720
|
-
},
|
|
936
|
+
}, o = !1, s = null, u = null, l = null;
|
|
721
937
|
const i = () => {
|
|
722
|
-
|
|
723
|
-
}, c = () => {
|
|
724
|
-
o?.disconnect(), o = null, i(), l && clearTimeout(l), l = null;
|
|
938
|
+
l && clearTimeout(l), l = null;
|
|
725
939
|
}, a = () => {
|
|
726
|
-
|
|
940
|
+
s?.disconnect(), s = null, i(), u && clearTimeout(u), u = null;
|
|
941
|
+
}, c = () => {
|
|
942
|
+
const g = Ne(document);
|
|
727
943
|
if (!g) {
|
|
728
|
-
|
|
944
|
+
o = !1, r = {
|
|
729
945
|
identifier: null,
|
|
730
946
|
password: null
|
|
731
947
|
}, i();
|
|
732
948
|
return;
|
|
733
949
|
}
|
|
734
950
|
if (!t)
|
|
735
|
-
|
|
951
|
+
o || (o = !0, e.onDetected());
|
|
736
952
|
else {
|
|
737
|
-
const
|
|
738
|
-
if ("error" in S || (
|
|
953
|
+
const w = Je(g, n, r), S = Pn(g, t, n, r);
|
|
954
|
+
if ("error" in S || (w.identifier && (n = {
|
|
739
955
|
...n,
|
|
740
956
|
identifier: !0
|
|
741
957
|
}, r = {
|
|
742
958
|
...r,
|
|
743
959
|
identifier: t.login
|
|
744
|
-
}),
|
|
960
|
+
}), w.password && (n = {
|
|
745
961
|
...n,
|
|
746
962
|
password: !0
|
|
747
963
|
}, r = {
|
|
@@ -749,358 +965,243 @@ function en(e) {
|
|
|
749
965
|
password: t.password
|
|
750
966
|
})), "error" in S) {
|
|
751
967
|
const R = S.error !== "nothing-to-fill" ? S.error : !n.identifier && !n.password ? "already-filled" : null;
|
|
752
|
-
R && (e.onError(R), t = null,
|
|
968
|
+
R && (e.onError(R), t = null, a());
|
|
753
969
|
} else
|
|
754
|
-
e.onFilled(S.step), n.password && (t = null, i(),
|
|
755
|
-
|
|
756
|
-
},
|
|
970
|
+
e.onFilled(S.step), n.password && (t = null, i(), l = setTimeout(() => {
|
|
971
|
+
l = null, Ne(document) && (o = !0, e.onDetected());
|
|
972
|
+
}, ot));
|
|
757
973
|
}
|
|
758
974
|
}, d = () => {
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
},
|
|
762
|
-
},
|
|
763
|
-
|
|
975
|
+
u && clearTimeout(u), u = setTimeout(() => {
|
|
976
|
+
u = null, c();
|
|
977
|
+
}, yn);
|
|
978
|
+
}, v = () => {
|
|
979
|
+
s || (s = new MutationObserver(d), s.observe(document.body, {
|
|
764
980
|
childList: !0,
|
|
765
981
|
subtree: !0,
|
|
766
982
|
attributes: !0,
|
|
767
|
-
attributeFilter:
|
|
983
|
+
attributeFilter: vn
|
|
768
984
|
}));
|
|
769
985
|
};
|
|
770
986
|
return {
|
|
771
987
|
watch() {
|
|
772
|
-
|
|
988
|
+
s || (o = !1, v()), c();
|
|
773
989
|
},
|
|
774
990
|
fill(g) {
|
|
775
|
-
t = g,
|
|
991
|
+
t = g, v(), c();
|
|
776
992
|
},
|
|
777
993
|
cancel() {
|
|
778
994
|
t = null, n = {
|
|
779
995
|
identifier: !1,
|
|
780
996
|
password: !1
|
|
781
|
-
},
|
|
997
|
+
}, o = !1, a();
|
|
782
998
|
},
|
|
783
999
|
teardown() {
|
|
784
|
-
t = null,
|
|
1000
|
+
t = null, a();
|
|
785
1001
|
}
|
|
786
1002
|
};
|
|
787
1003
|
}
|
|
788
|
-
var
|
|
789
|
-
function
|
|
1004
|
+
var Bn = "leesto/navigation";
|
|
1005
|
+
function Fn(e) {
|
|
790
1006
|
const t = e?.timestamp;
|
|
791
1007
|
return typeof t == "number" ? t : void 0;
|
|
792
1008
|
}
|
|
793
|
-
function
|
|
1009
|
+
function Un(e) {
|
|
794
1010
|
return e?.type === 4;
|
|
795
1011
|
}
|
|
796
|
-
function
|
|
1012
|
+
function Gn(e) {
|
|
797
1013
|
try {
|
|
798
1014
|
return JSON.stringify(e)?.length ?? 0;
|
|
799
1015
|
} catch {
|
|
800
1016
|
return 0;
|
|
801
1017
|
}
|
|
802
1018
|
}
|
|
803
|
-
function
|
|
804
|
-
const t = e.now ?? Date.now, n = e.measure ??
|
|
805
|
-
let r = [],
|
|
806
|
-
const
|
|
807
|
-
const
|
|
808
|
-
|
|
1019
|
+
function Hn(e) {
|
|
1020
|
+
const t = e.now ?? Date.now, n = e.measure ?? Gn;
|
|
1021
|
+
let r = [], o = 0, s = !1, u = Number.NEGATIVE_INFINITY;
|
|
1022
|
+
const l = () => {
|
|
1023
|
+
const a = r.shift();
|
|
1024
|
+
a && (o -= a.bytes);
|
|
809
1025
|
}, i = () => {
|
|
810
|
-
if (!
|
|
1026
|
+
if (!s) {
|
|
811
1027
|
const d = t() - e.windowMs;
|
|
812
|
-
for (; r.length > 1 && (r[1]?.start ?? Number.POSITIVE_INFINITY) <= d; )
|
|
1028
|
+
for (; r.length > 1 && (r[1]?.start ?? Number.POSITIVE_INFINITY) <= d; ) l();
|
|
813
1029
|
}
|
|
814
|
-
const
|
|
815
|
-
for (;
|
|
816
|
-
const
|
|
817
|
-
if (
|
|
1030
|
+
const a = s ? e.heldMaxBytes : e.maxBytes;
|
|
1031
|
+
for (; o > a && r.length > 1; ) l();
|
|
1032
|
+
const c = r[r.length - 1];
|
|
1033
|
+
if (o > a && e.requestCheckout && (c?.events.length ?? 0) > 2) {
|
|
818
1034
|
const d = t();
|
|
819
|
-
d -
|
|
1035
|
+
d - u >= e.minCheckoutIntervalMs && (u = d, e.requestCheckout());
|
|
820
1036
|
}
|
|
821
1037
|
};
|
|
822
1038
|
return {
|
|
823
|
-
push(
|
|
824
|
-
const
|
|
825
|
-
if (
|
|
826
|
-
start:
|
|
827
|
-
events: [
|
|
828
|
-
bytes:
|
|
1039
|
+
push(a) {
|
|
1040
|
+
const c = n(a);
|
|
1041
|
+
if (Un(a)) r.push({
|
|
1042
|
+
start: Fn(a) ?? t(),
|
|
1043
|
+
events: [a],
|
|
1044
|
+
bytes: c
|
|
829
1045
|
});
|
|
830
1046
|
else {
|
|
831
1047
|
const d = r[r.length - 1];
|
|
832
1048
|
if (!d) return;
|
|
833
|
-
d.events.push(
|
|
1049
|
+
d.events.push(a), d.bytes += c;
|
|
834
1050
|
}
|
|
835
|
-
|
|
1051
|
+
o += c, i();
|
|
836
1052
|
},
|
|
837
1053
|
snapshot() {
|
|
838
|
-
const
|
|
839
|
-
for (const
|
|
840
|
-
return
|
|
1054
|
+
const a = [];
|
|
1055
|
+
for (const c of r) for (const d of c.events) a.push(d);
|
|
1056
|
+
return a;
|
|
841
1057
|
},
|
|
842
1058
|
hold() {
|
|
843
|
-
i(),
|
|
1059
|
+
i(), s = !0;
|
|
844
1060
|
},
|
|
845
1061
|
release() {
|
|
846
|
-
|
|
1062
|
+
s = !1, i();
|
|
847
1063
|
},
|
|
848
1064
|
stats() {
|
|
849
|
-
let
|
|
850
|
-
for (const
|
|
1065
|
+
let a = 0;
|
|
1066
|
+
for (const c of r) a += c.events.length;
|
|
851
1067
|
return {
|
|
852
1068
|
segments: r.length,
|
|
853
|
-
events:
|
|
854
|
-
bytes:
|
|
855
|
-
held:
|
|
1069
|
+
events: a,
|
|
1070
|
+
bytes: o,
|
|
1071
|
+
held: s
|
|
856
1072
|
};
|
|
857
1073
|
},
|
|
858
1074
|
clear() {
|
|
859
|
-
r = [],
|
|
1075
|
+
r = [], o = 0;
|
|
860
1076
|
}
|
|
861
1077
|
};
|
|
862
1078
|
}
|
|
863
|
-
var
|
|
864
|
-
var Ve = 'input:not([type="button"]):not([type="submit"]):not([type="reset"]), textarea, select';
|
|
865
|
-
function je(e) {
|
|
866
|
-
return e.replace(/\S/g, "*");
|
|
867
|
-
}
|
|
868
|
-
function fn(e, t) {
|
|
869
|
-
try {
|
|
870
|
-
return e.closest(t);
|
|
871
|
-
} catch {
|
|
872
|
-
return null;
|
|
873
|
-
}
|
|
874
|
-
}
|
|
875
|
-
function ze(e) {
|
|
876
|
-
return fn(e, ln) !== null;
|
|
877
|
-
}
|
|
878
|
-
function We(e) {
|
|
879
|
-
if (!e || typeof e.closest != "function") return !1;
|
|
880
|
-
try {
|
|
881
|
-
if (ze(e) || e.matches(Ve)) return !1;
|
|
882
|
-
const t = e.closest(un);
|
|
883
|
-
return t ? (t.textContent ?? "").trim().length <= 80 : !1;
|
|
884
|
-
} catch {
|
|
885
|
-
return !1;
|
|
886
|
-
}
|
|
887
|
-
}
|
|
888
|
-
var Ce = {
|
|
889
|
-
maskAllInputs: !0,
|
|
890
|
-
maskInputOptions: {
|
|
891
|
-
password: !0,
|
|
892
|
-
email: !0,
|
|
893
|
-
tel: !0,
|
|
894
|
-
text: !0
|
|
895
|
-
},
|
|
896
|
-
blockClass: an,
|
|
897
|
-
maskTextClass: Ue
|
|
898
|
-
};
|
|
899
|
-
function Xe(e) {
|
|
900
|
-
if (e === "inputs_only") return {
|
|
901
|
-
...Ce,
|
|
902
|
-
blockSelector: Te,
|
|
903
|
-
maskTextSelector: He
|
|
904
|
-
};
|
|
905
|
-
const t = {
|
|
906
|
-
...Ce,
|
|
907
|
-
blockSelector: `${Te}, ${cn}`,
|
|
908
|
-
maskTextSelector: "*"
|
|
909
|
-
};
|
|
910
|
-
return e === "labels_visible" ? {
|
|
911
|
-
...t,
|
|
912
|
-
maskTextFn: (n, r) => We(r) ? n : je(n)
|
|
913
|
-
} : t;
|
|
914
|
-
}
|
|
915
|
-
var Ie = /* @__PURE__ */ new Set([
|
|
916
|
-
"placeholder",
|
|
917
|
-
"title",
|
|
918
|
-
"alt",
|
|
919
|
-
"label",
|
|
920
|
-
"aria-label",
|
|
921
|
-
"aria-description",
|
|
922
|
-
"aria-placeholder",
|
|
923
|
-
"aria-roledescription",
|
|
924
|
-
"aria-valuetext"
|
|
925
|
-
]), dn = 2, pn = 3, hn = 4, mn = 0, gn = 2;
|
|
926
|
-
function yn(e, t, n) {
|
|
927
|
-
if (e) try {
|
|
928
|
-
return e.matches(Ve);
|
|
929
|
-
} catch {
|
|
930
|
-
return !0;
|
|
931
|
-
}
|
|
932
|
-
const r = t.toLowerCase();
|
|
933
|
-
if (r === "textarea" || r === "select") return !0;
|
|
934
|
-
if (r !== "input") return !1;
|
|
935
|
-
const s = String(n.type ?? "").toLowerCase();
|
|
936
|
-
return s !== "button" && s !== "submit" && s !== "reset";
|
|
937
|
-
}
|
|
938
|
-
function Ke(e, t, n) {
|
|
939
|
-
const r = e;
|
|
940
|
-
if (!r || typeof r != "object" || !r.data) return e;
|
|
941
|
-
const s = (c) => {
|
|
942
|
-
if (typeof c != "number") return null;
|
|
943
|
-
try {
|
|
944
|
-
const a = n(c);
|
|
945
|
-
return a && a.nodeType === 1 ? a : null;
|
|
946
|
-
} catch {
|
|
947
|
-
return null;
|
|
948
|
-
}
|
|
949
|
-
}, o = (c, a, d, y) => {
|
|
950
|
-
if (a === "value") {
|
|
951
|
-
if (yn(c, d, y)) return !1;
|
|
952
|
-
} else if (!Ie.has(a)) return !0;
|
|
953
|
-
return !c || ze(c) ? !1 : t === "inputs_only" ? !0 : t === "labels_visible" ? We(c) : !1;
|
|
954
|
-
}, l = (c, a, d) => {
|
|
955
|
-
if (d)
|
|
956
|
-
for (const y of Object.keys(d)) {
|
|
957
|
-
const g = d[y];
|
|
958
|
-
typeof g != "string" || !g || y !== "value" && !Ie.has(y) || o(c, y, a, d) || (d[y] = je(g));
|
|
959
|
-
}
|
|
960
|
-
}, u = (c) => {
|
|
961
|
-
const a = c ? [c] : [];
|
|
962
|
-
for (; a.length > 0; ) {
|
|
963
|
-
const d = a.pop();
|
|
964
|
-
d.type === gn && d.attributes && l(s(d.id), String(d.tagName ?? ""), d.attributes), Array.isArray(d.childNodes) && a.push(...d.childNodes);
|
|
965
|
-
}
|
|
966
|
-
}, i = r.data;
|
|
967
|
-
if (r.type === hn && typeof i.href == "string") i.href = ut(i.href);
|
|
968
|
-
else if (r.type === dn) u(i.node);
|
|
969
|
-
else if (r.type === pn && i.source === mn) {
|
|
970
|
-
for (const c of i.adds ?? []) u(c.node);
|
|
971
|
-
for (const c of i.attributes ?? []) {
|
|
972
|
-
const a = s(c.id);
|
|
973
|
-
l(a, a?.tagName ?? "", c.attributes);
|
|
974
|
-
}
|
|
975
|
-
}
|
|
976
|
-
return e;
|
|
977
|
-
}
|
|
978
|
-
var Ye = 6e5, Ze = 1e3, vn = {
|
|
1079
|
+
var Qe = 6e5, et = 1e3, Wn = {
|
|
979
1080
|
mousemove: 100,
|
|
980
1081
|
scroll: 150
|
|
981
|
-
},
|
|
1082
|
+
}, jn = {
|
|
982
1083
|
windowMs: 12e4,
|
|
983
1084
|
checkoutEveryNms: 6e4,
|
|
984
1085
|
maxBytes: 8388608,
|
|
985
1086
|
heldMaxBytes: 33554432,
|
|
986
1087
|
minCheckoutIntervalMs: 15e3,
|
|
987
|
-
sampling:
|
|
988
|
-
},
|
|
989
|
-
async function
|
|
990
|
-
const { record: t, addCustomEvent: n } = await import("./chunks/rrweb-qwppqH_c.js"), r = e.maskPolicy ?? "mask_all",
|
|
991
|
-
let
|
|
1088
|
+
sampling: Wn
|
|
1089
|
+
}, zn = 5;
|
|
1090
|
+
async function Vn(e) {
|
|
1091
|
+
const { record: t, addCustomEvent: n } = await import("./chunks/rrweb-qwppqH_c.js"), r = e.maskPolicy ?? "mask_all", o = Date.now();
|
|
1092
|
+
let s = [], u = !1, l = 0;
|
|
992
1093
|
const i = () => {
|
|
993
|
-
if (
|
|
994
|
-
const R =
|
|
995
|
-
|
|
996
|
-
},
|
|
1094
|
+
if (s.length === 0) return;
|
|
1095
|
+
const R = s;
|
|
1096
|
+
s = [], e.onBatch(R);
|
|
1097
|
+
}, a = t({
|
|
997
1098
|
emit(R) {
|
|
998
|
-
|
|
1099
|
+
s.push(Xe(R, r, (_) => t.mirror.getNode(_)));
|
|
999
1100
|
},
|
|
1000
|
-
...
|
|
1001
|
-
}),
|
|
1002
|
-
d?.setSink((R,
|
|
1101
|
+
...Ve(r)
|
|
1102
|
+
}), c = e.diagnostics ?? null, d = a ? c ?? Be({ captureNetwork: e.captureNetwork !== !1 }) : null, v = d !== null && c === null;
|
|
1103
|
+
d?.setSink((R, _) => {
|
|
1003
1104
|
try {
|
|
1004
|
-
n(R,
|
|
1105
|
+
n(R, _);
|
|
1005
1106
|
} catch {
|
|
1006
1107
|
}
|
|
1007
1108
|
});
|
|
1008
|
-
const g = setInterval(i,
|
|
1009
|
-
return
|
|
1109
|
+
const g = setInterval(i, et), w = { timer: null }, S = () => (u || (u = !0, clearInterval(g), clearTimeout(w.timer ?? void 0), d?.flushRings(), d?.setSink(null), v && d?.teardown(), a?.(), i(), l = Date.now() - o), l);
|
|
1110
|
+
return w.timer = setTimeout(() => {
|
|
1010
1111
|
S(), e.onCap();
|
|
1011
|
-
},
|
|
1112
|
+
}, Qe), { stop: S };
|
|
1012
1113
|
}
|
|
1013
|
-
async function
|
|
1114
|
+
async function Xn(e) {
|
|
1014
1115
|
const { record: t, addCustomEvent: n } = await import("./chunks/rrweb-qwppqH_c.js"), r = {
|
|
1015
|
-
...
|
|
1116
|
+
...jn,
|
|
1016
1117
|
...e.config
|
|
1017
|
-
}, { diagnostics:
|
|
1018
|
-
let
|
|
1019
|
-
const
|
|
1118
|
+
}, { diagnostics: o } = e, s = e.maskPolicy ?? "mask_all";
|
|
1119
|
+
let u = !1, l = null, i = null;
|
|
1120
|
+
const a = () => {
|
|
1020
1121
|
try {
|
|
1021
1122
|
t.takeFullSnapshot(!0);
|
|
1022
1123
|
} catch {
|
|
1023
1124
|
}
|
|
1024
|
-
},
|
|
1125
|
+
}, c = Hn({
|
|
1025
1126
|
windowMs: r.windowMs,
|
|
1026
1127
|
maxBytes: r.maxBytes,
|
|
1027
1128
|
heldMaxBytes: r.heldMaxBytes,
|
|
1028
1129
|
minCheckoutIntervalMs: r.minCheckoutIntervalMs,
|
|
1029
1130
|
requestCheckout: () => queueMicrotask(() => {
|
|
1030
|
-
|
|
1131
|
+
u || a();
|
|
1031
1132
|
})
|
|
1032
1133
|
}), d = t({
|
|
1033
1134
|
emit(g) {
|
|
1034
|
-
const
|
|
1035
|
-
|
|
1135
|
+
const w = Xe(g, s, (S) => t.mirror.getNode(S));
|
|
1136
|
+
c.push(w), l?.(w);
|
|
1036
1137
|
},
|
|
1037
1138
|
checkoutEveryNms: r.checkoutEveryNms,
|
|
1038
1139
|
sampling: r.sampling,
|
|
1039
|
-
...
|
|
1140
|
+
...Ve(s)
|
|
1040
1141
|
});
|
|
1041
1142
|
if (!d) return null;
|
|
1042
|
-
const
|
|
1143
|
+
const v = (g, w) => {
|
|
1043
1144
|
try {
|
|
1044
|
-
n(g,
|
|
1145
|
+
n(g, w);
|
|
1045
1146
|
} catch {
|
|
1046
1147
|
}
|
|
1047
1148
|
};
|
|
1048
|
-
return
|
|
1149
|
+
return o.setSink(v), {
|
|
1049
1150
|
snapshot() {
|
|
1050
|
-
const g =
|
|
1051
|
-
|
|
1151
|
+
const g = c.snapshot(), w = Date.now();
|
|
1152
|
+
o.setSink((R, _) => {
|
|
1052
1153
|
g.push({
|
|
1053
|
-
type:
|
|
1154
|
+
type: zn,
|
|
1054
1155
|
data: {
|
|
1055
1156
|
tag: R,
|
|
1056
|
-
payload:
|
|
1157
|
+
payload: _
|
|
1057
1158
|
},
|
|
1058
|
-
timestamp:
|
|
1159
|
+
timestamp: w
|
|
1059
1160
|
});
|
|
1060
1161
|
});
|
|
1061
1162
|
try {
|
|
1062
|
-
|
|
1163
|
+
o.flushRings();
|
|
1063
1164
|
} finally {
|
|
1064
|
-
|
|
1165
|
+
o.setSink(u ? null : v);
|
|
1065
1166
|
}
|
|
1066
1167
|
const S = g[0]?.timestamp;
|
|
1067
1168
|
return {
|
|
1068
1169
|
events: g,
|
|
1069
|
-
durationMs: typeof S == "number" ? Math.max(0,
|
|
1170
|
+
durationMs: typeof S == "number" ? Math.max(0, w - S) : 0
|
|
1070
1171
|
};
|
|
1071
1172
|
},
|
|
1072
|
-
hold: () =>
|
|
1073
|
-
release: () =>
|
|
1173
|
+
hold: () => c.hold(),
|
|
1174
|
+
release: () => c.release(),
|
|
1074
1175
|
markNavigation(g) {
|
|
1075
|
-
|
|
1176
|
+
u || v(Bn, { href: W(g) });
|
|
1076
1177
|
},
|
|
1077
|
-
stats: () =>
|
|
1078
|
-
stream({ onBatch: g, onCap:
|
|
1178
|
+
stats: () => c.stats(),
|
|
1179
|
+
stream({ onBatch: g, onCap: w }) {
|
|
1079
1180
|
i?.stop();
|
|
1080
1181
|
const S = Date.now();
|
|
1081
|
-
let R = [],
|
|
1082
|
-
const
|
|
1182
|
+
let R = [], _ = !1, C = 0;
|
|
1183
|
+
const N = () => {
|
|
1083
1184
|
if (R.length === 0) return;
|
|
1084
|
-
const
|
|
1085
|
-
R = [], g(
|
|
1086
|
-
},
|
|
1087
|
-
R.push(
|
|
1185
|
+
const B = R;
|
|
1186
|
+
R = [], g(B);
|
|
1187
|
+
}, x = (B) => {
|
|
1188
|
+
R.push(B);
|
|
1088
1189
|
};
|
|
1089
|
-
|
|
1090
|
-
const
|
|
1091
|
-
return
|
|
1190
|
+
l = x, a();
|
|
1191
|
+
const P = setInterval(N, et), M = { timer: null }, $ = { stop() {
|
|
1192
|
+
return _ || (_ = !0, clearInterval(P), clearTimeout(M.timer ?? void 0), o.flushRings(), l === x && (l = null), i === $ && (i = null), N(), C = Date.now() - S), C;
|
|
1092
1193
|
} };
|
|
1093
|
-
return
|
|
1094
|
-
|
|
1095
|
-
},
|
|
1194
|
+
return M.timer = setTimeout(() => {
|
|
1195
|
+
$.stop(), w();
|
|
1196
|
+
}, Qe), i = $, $;
|
|
1096
1197
|
},
|
|
1097
1198
|
stop() {
|
|
1098
|
-
|
|
1199
|
+
u || (u = !0, i?.stop(), o.setSink(null), d(), c.clear());
|
|
1099
1200
|
}
|
|
1100
1201
|
};
|
|
1101
1202
|
}
|
|
1102
|
-
var
|
|
1103
|
-
function
|
|
1203
|
+
var Kn = ["https://lab.leesto.app", "https://lab-dev.leesto.app"], Yn = ["http://localhost:3505", "http://127.0.0.1:3505"];
|
|
1204
|
+
function Zn(e) {
|
|
1104
1205
|
try {
|
|
1105
1206
|
const t = new URL(e).hostname;
|
|
1106
1207
|
return t === "localhost" || t.endsWith(".localhost") || t === "127.0.0.1" || t === "[::1]";
|
|
@@ -1108,7 +1209,7 @@ function _n(e) {
|
|
|
1108
1209
|
return !1;
|
|
1109
1210
|
}
|
|
1110
1211
|
}
|
|
1111
|
-
function
|
|
1212
|
+
function Jn(e) {
|
|
1112
1213
|
const t = e.trim();
|
|
1113
1214
|
if (!t) return null;
|
|
1114
1215
|
try {
|
|
@@ -1118,33 +1219,33 @@ function kn(e) {
|
|
|
1118
1219
|
return null;
|
|
1119
1220
|
}
|
|
1120
1221
|
}
|
|
1121
|
-
function
|
|
1122
|
-
const t = (e.explicit ?? []).map(
|
|
1222
|
+
function Qn(e) {
|
|
1223
|
+
const t = (e.explicit ?? []).map(Jn).filter((r) => r !== null);
|
|
1123
1224
|
if (t.length > 0) return [...new Set(t)];
|
|
1124
|
-
const n = [...
|
|
1125
|
-
return
|
|
1225
|
+
const n = [...Kn];
|
|
1226
|
+
return Zn(e.pageOrigin) && n.push(...Yn), [...new Set(n)];
|
|
1126
1227
|
}
|
|
1127
|
-
function
|
|
1228
|
+
function fe(e, t) {
|
|
1128
1229
|
return !e || e === "*" || e === "null" ? !1 : t.includes(e);
|
|
1129
1230
|
}
|
|
1130
|
-
function
|
|
1231
|
+
function Q() {
|
|
1131
1232
|
return typeof navigator < "u" && navigator.globalPrivacyControl === !0;
|
|
1132
1233
|
}
|
|
1133
|
-
function
|
|
1134
|
-
const t = (
|
|
1135
|
-
const
|
|
1136
|
-
return
|
|
1137
|
-
}, n = (
|
|
1234
|
+
function er(e) {
|
|
1235
|
+
const t = (u) => {
|
|
1236
|
+
const l = typeof u == "string" ? u.trim() : "";
|
|
1237
|
+
return l.length > 0 ? l : void 0;
|
|
1238
|
+
}, n = (u) => {
|
|
1138
1239
|
if (!(typeof document > "u"))
|
|
1139
|
-
return t(document.querySelector(`meta[name="${
|
|
1140
|
-
}, r = typeof window < "u" ? window.__LEESTO_APP_BUILD__ : void 0,
|
|
1141
|
-
if (!(!
|
|
1240
|
+
return t(document.querySelector(`meta[name="${u}"]`)?.getAttribute("content"));
|
|
1241
|
+
}, r = typeof window < "u" ? window.__LEESTO_APP_BUILD__ : void 0, o = t(e?.version) ?? t(r?.version) ?? n("app-version"), s = t(e?.environment) ?? t(r?.environment) ?? n("app-environment");
|
|
1242
|
+
if (!(!o && !s))
|
|
1142
1243
|
return {
|
|
1143
|
-
...
|
|
1144
|
-
...
|
|
1244
|
+
...o ? { version: o } : {},
|
|
1245
|
+
...s ? { environment: s } : {}
|
|
1145
1246
|
};
|
|
1146
1247
|
}
|
|
1147
|
-
function
|
|
1248
|
+
function tr() {
|
|
1148
1249
|
if (typeof document > "u") return;
|
|
1149
1250
|
const e = document.querySelector('link[rel~="icon"], link[rel="shortcut icon"], link[rel="apple-touch-icon"]');
|
|
1150
1251
|
if (e?.href)
|
|
@@ -1154,43 +1255,59 @@ function Tn() {
|
|
|
1154
1255
|
return;
|
|
1155
1256
|
}
|
|
1156
1257
|
}
|
|
1157
|
-
function
|
|
1258
|
+
function nr() {
|
|
1158
1259
|
const e = (r) => !!r && r !== "transparent" && !/^rgba\(\s*0,\s*0,\s*0,\s*0\s*\)$/.test(r), t = getComputedStyle(document.body).backgroundColor;
|
|
1159
1260
|
if (e(t)) return t;
|
|
1160
1261
|
const n = getComputedStyle(document.documentElement).backgroundColor;
|
|
1161
1262
|
return e(n) ? n : "#ffffff";
|
|
1162
1263
|
}
|
|
1163
|
-
async function
|
|
1264
|
+
async function De(e) {
|
|
1164
1265
|
const { domToPng: t } = await import("./chunks/dist-BTlWkbvW.js");
|
|
1165
1266
|
if (e) {
|
|
1166
1267
|
const l = document.querySelector(e);
|
|
1167
1268
|
if (!l) throw new Error("element_not_found");
|
|
1168
1269
|
return t(l, { quality: 0.92 });
|
|
1169
1270
|
}
|
|
1170
|
-
const n = document.documentElement, r = window.scrollX,
|
|
1171
|
-
for (const l of n.querySelectorAll("*")) {
|
|
1172
|
-
const u = getComputedStyle(l).position;
|
|
1173
|
-
if (u === "fixed" || u === "sticky") {
|
|
1174
|
-
const i = l.style.transform;
|
|
1175
|
-
o.push([l, i]), l.style.transform = `translate(${r}px, ${s}px)${i ? ` ${i}` : ""}`;
|
|
1176
|
-
}
|
|
1177
|
-
}
|
|
1271
|
+
const n = document.documentElement, r = window.scrollX, o = window.scrollY, s = [], u = [];
|
|
1178
1272
|
try {
|
|
1273
|
+
for (const l of n.querySelectorAll(`.${ge}, ${te}`)) {
|
|
1274
|
+
const i = l.getBoundingClientRect();
|
|
1275
|
+
if (i.width <= 0 || i.height <= 0) continue;
|
|
1276
|
+
const a = document.createElement("div");
|
|
1277
|
+
a.dataset.leestoCaptureCover = "", Object.assign(a.style, {
|
|
1278
|
+
position: "fixed",
|
|
1279
|
+
left: `${i.x}px`,
|
|
1280
|
+
top: `${i.y}px`,
|
|
1281
|
+
width: `${i.width}px`,
|
|
1282
|
+
height: `${i.height}px`,
|
|
1283
|
+
background: "#a1a1aa",
|
|
1284
|
+
zIndex: "2147483647",
|
|
1285
|
+
pointerEvents: "none"
|
|
1286
|
+
}), n.append(a), s.push(a);
|
|
1287
|
+
}
|
|
1288
|
+
for (const l of n.querySelectorAll("*")) {
|
|
1289
|
+
const i = getComputedStyle(l).position;
|
|
1290
|
+
if (i === "fixed" || i === "sticky") {
|
|
1291
|
+
const a = l.style.transform;
|
|
1292
|
+
u.push([l, a]), l.style.transform = `translate(${r}px, ${o}px)${a ? ` ${a}` : ""}`;
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1179
1295
|
return await t(n, {
|
|
1180
1296
|
quality: 0.92,
|
|
1181
|
-
backgroundColor:
|
|
1297
|
+
backgroundColor: nr(),
|
|
1182
1298
|
width: n.clientWidth,
|
|
1183
1299
|
height: n.clientHeight,
|
|
1184
1300
|
style: {
|
|
1185
|
-
transform: `translate(${-r}px, ${-
|
|
1301
|
+
transform: `translate(${-r}px, ${-o}px)`,
|
|
1186
1302
|
transformOrigin: "top left"
|
|
1187
1303
|
}
|
|
1188
1304
|
});
|
|
1189
1305
|
} finally {
|
|
1190
|
-
for (const
|
|
1306
|
+
for (const l of s) l.remove();
|
|
1307
|
+
for (const [l, i] of u) l.style.transform = i;
|
|
1191
1308
|
}
|
|
1192
1309
|
}
|
|
1193
|
-
function
|
|
1310
|
+
function rr(e) {
|
|
1194
1311
|
if (e.id) return `#${CSS.escape(e.id)}`;
|
|
1195
1312
|
const t = [];
|
|
1196
1313
|
let n = e;
|
|
@@ -1200,73 +1317,75 @@ function In(e) {
|
|
|
1200
1317
|
break;
|
|
1201
1318
|
}
|
|
1202
1319
|
let r = n.tagName.toLowerCase();
|
|
1203
|
-
const
|
|
1204
|
-
|
|
1205
|
-
const
|
|
1206
|
-
if (
|
|
1207
|
-
const
|
|
1208
|
-
|
|
1320
|
+
const o = typeof n.className == "string" ? n.className.trim().split(/\s+/).filter(Boolean)[0] : null;
|
|
1321
|
+
o && (r += `.${CSS.escape(o)}`);
|
|
1322
|
+
const s = n.parentElement;
|
|
1323
|
+
if (s) {
|
|
1324
|
+
const u = Array.from(s.children).filter((l) => l.tagName === n?.tagName);
|
|
1325
|
+
u.length > 1 && (r += `:nth-of-type(${u.indexOf(n) + 1})`);
|
|
1209
1326
|
}
|
|
1210
|
-
t.unshift(r), n =
|
|
1327
|
+
t.unshift(r), n = s;
|
|
1211
1328
|
}
|
|
1212
1329
|
return t.join(" > ");
|
|
1213
1330
|
}
|
|
1214
|
-
function
|
|
1215
|
-
const t = e.tagName.toLowerCase()
|
|
1331
|
+
function or(e) {
|
|
1332
|
+
const t = e.tagName.toLowerCase();
|
|
1333
|
+
if (Y(e)) return t;
|
|
1334
|
+
const n = (e.textContent ?? "").replace(/\s+/g, " ").trim().slice(0, 40);
|
|
1216
1335
|
return n ? `${t} · ${n}` : t;
|
|
1217
1336
|
}
|
|
1218
|
-
var
|
|
1219
|
-
function
|
|
1337
|
+
var tt = "leesto:shell-origin";
|
|
1338
|
+
function sr() {
|
|
1220
1339
|
try {
|
|
1221
|
-
return sessionStorage.getItem(
|
|
1340
|
+
return sessionStorage.getItem(tt);
|
|
1222
1341
|
} catch {
|
|
1223
1342
|
return null;
|
|
1224
1343
|
}
|
|
1225
1344
|
}
|
|
1226
|
-
function
|
|
1345
|
+
function ir(e) {
|
|
1227
1346
|
try {
|
|
1228
|
-
sessionStorage.setItem(
|
|
1347
|
+
sessionStorage.setItem(tt, e);
|
|
1229
1348
|
} catch {
|
|
1230
1349
|
}
|
|
1231
1350
|
}
|
|
1232
|
-
function
|
|
1351
|
+
function ar() {
|
|
1233
1352
|
try {
|
|
1234
1353
|
return typeof window.name == "string" ? window.name : "";
|
|
1235
1354
|
} catch {
|
|
1236
1355
|
return "";
|
|
1237
1356
|
}
|
|
1238
1357
|
}
|
|
1239
|
-
function
|
|
1358
|
+
function $e(e = {}) {
|
|
1240
1359
|
if (typeof window > "u" || window.parent === window) return () => {
|
|
1241
1360
|
};
|
|
1242
|
-
const t = window.parent, n = e.highlightColor ??
|
|
1361
|
+
const t = window.parent, n = e.highlightColor ?? St.light.primary, r = Qn({
|
|
1243
1362
|
explicit: e.shellOrigins,
|
|
1244
1363
|
pageOrigin: location.origin
|
|
1245
1364
|
});
|
|
1246
|
-
let
|
|
1365
|
+
let o = null;
|
|
1247
1366
|
try {
|
|
1248
1367
|
const h = document.referrer ? new URL(document.referrer).origin : "";
|
|
1249
|
-
|
|
1368
|
+
fe(h, r) && (o = h);
|
|
1250
1369
|
} catch {
|
|
1251
1370
|
}
|
|
1252
|
-
if (!
|
|
1253
|
-
const h =
|
|
1254
|
-
h &&
|
|
1371
|
+
if (!o) {
|
|
1372
|
+
const h = sr();
|
|
1373
|
+
h && fe(h, r) && (o = h);
|
|
1255
1374
|
}
|
|
1256
|
-
const
|
|
1257
|
-
if (
|
|
1258
|
-
t.postMessage(h,
|
|
1375
|
+
const s = (h) => {
|
|
1376
|
+
if (o) {
|
|
1377
|
+
t.postMessage(h, o);
|
|
1259
1378
|
return;
|
|
1260
1379
|
}
|
|
1261
|
-
for (const
|
|
1380
|
+
for (const b of r) t.postMessage(h, b);
|
|
1262
1381
|
};
|
|
1263
|
-
let
|
|
1382
|
+
let u = null, l = "";
|
|
1264
1383
|
const i = () => {
|
|
1265
|
-
|
|
1384
|
+
u && (u.style.outline = l), u = null;
|
|
1266
1385
|
};
|
|
1267
|
-
let
|
|
1268
|
-
const
|
|
1269
|
-
|
|
1386
|
+
let a = null;
|
|
1387
|
+
const c = () => {
|
|
1388
|
+
a?.(), i(), document.querySelector("[data-leesto-picker-outline]")?.remove();
|
|
1270
1389
|
const h = document.createElement("div");
|
|
1271
1390
|
h.dataset.leestoPickerOutline = "", h.setAttribute("aria-hidden", "true"), Object.assign(h.style, {
|
|
1272
1391
|
position: "fixed",
|
|
@@ -1277,176 +1396,192 @@ function Me(e = {}) {
|
|
|
1277
1396
|
borderRadius: "4px",
|
|
1278
1397
|
display: "none"
|
|
1279
1398
|
}), document.documentElement.append(h);
|
|
1280
|
-
let
|
|
1281
|
-
const
|
|
1282
|
-
const
|
|
1283
|
-
if (!
|
|
1284
|
-
const
|
|
1285
|
-
|
|
1399
|
+
let b = null, y = null, q = null;
|
|
1400
|
+
const z = document.body.style.cursor, O = () => {
|
|
1401
|
+
const k = y ?? b;
|
|
1402
|
+
if (!k) return;
|
|
1403
|
+
const I = k.getBoundingClientRect();
|
|
1404
|
+
y ? s({
|
|
1286
1405
|
type: "leesto:element-picked",
|
|
1287
|
-
selector:
|
|
1288
|
-
label:
|
|
1406
|
+
selector: rr(k),
|
|
1407
|
+
label: or(k),
|
|
1289
1408
|
rect: {
|
|
1290
|
-
x:
|
|
1291
|
-
y:
|
|
1292
|
-
width:
|
|
1293
|
-
height:
|
|
1294
|
-
}
|
|
1409
|
+
x: I.x,
|
|
1410
|
+
y: I.y,
|
|
1411
|
+
width: I.width,
|
|
1412
|
+
height: I.height
|
|
1413
|
+
},
|
|
1414
|
+
...q ? { point: {
|
|
1415
|
+
x: I.x + q.x,
|
|
1416
|
+
y: I.y + q.y
|
|
1417
|
+
} } : {},
|
|
1418
|
+
viewport: {
|
|
1419
|
+
width: document.documentElement.clientWidth,
|
|
1420
|
+
height: document.documentElement.clientHeight
|
|
1421
|
+
},
|
|
1422
|
+
context: gn(k)
|
|
1295
1423
|
}) : Object.assign(h.style, {
|
|
1296
1424
|
display: "block",
|
|
1297
|
-
left: `${
|
|
1298
|
-
top: `${
|
|
1299
|
-
width: `${
|
|
1300
|
-
height: `${
|
|
1425
|
+
left: `${I.x}px`,
|
|
1426
|
+
top: `${I.y}px`,
|
|
1427
|
+
width: `${I.width}px`,
|
|
1428
|
+
height: `${I.height}px`
|
|
1301
1429
|
});
|
|
1302
|
-
},
|
|
1303
|
-
|
|
1304
|
-
},
|
|
1305
|
-
h.remove(), document.removeEventListener("mousemove",
|
|
1306
|
-
},
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1430
|
+
}, we = (k) => {
|
|
1431
|
+
b = k.target instanceof Element ? k.target : null, O();
|
|
1432
|
+
}, Ee = () => {
|
|
1433
|
+
h.remove(), document.removeEventListener("mousemove", we, !0), document.removeEventListener("click", Se, !0), document.body.style.cursor = z;
|
|
1434
|
+
}, Se = (k) => {
|
|
1435
|
+
if (k.preventDefault(), k.stopPropagation(), y = k.target instanceof Element ? k.target : null, y) {
|
|
1436
|
+
const I = y.getBoundingClientRect();
|
|
1437
|
+
q = {
|
|
1438
|
+
x: k.clientX - I.x,
|
|
1439
|
+
y: k.clientY - I.y
|
|
1440
|
+
};
|
|
1441
|
+
}
|
|
1442
|
+
Ee(), O();
|
|
1443
|
+
}, Re = (k) => {
|
|
1444
|
+
k.key === "Escape" && (a?.(), s({ type: "leesto:pick-cancelled" }));
|
|
1310
1445
|
};
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
}, document.body.style.cursor = "crosshair", document.addEventListener("mousemove",
|
|
1314
|
-
}, d =
|
|
1446
|
+
a = () => {
|
|
1447
|
+
Ee(), document.removeEventListener("keydown", Re, !0), document.removeEventListener("scroll", O, !0), window.removeEventListener("resize", O), a = null;
|
|
1448
|
+
}, document.body.style.cursor = "crosshair", document.addEventListener("mousemove", we, !0), document.addEventListener("click", Se, !0), document.addEventListener("keydown", Re, !0), document.addEventListener("scroll", O, !0), window.addEventListener("resize", O);
|
|
1449
|
+
}, d = mt(location.search, ar()), v = de(d) && !Q(), g = pt(d), w = v ? ht(d) ?? dt() : void 0, S = v ? Be({
|
|
1315
1450
|
captureNetwork: e.captureNetwork !== !1,
|
|
1316
|
-
runId:
|
|
1451
|
+
runId: w,
|
|
1317
1452
|
runIdOrigins: e.runIdOrigins
|
|
1318
1453
|
}) : null;
|
|
1319
1454
|
let R = !1;
|
|
1320
|
-
const
|
|
1455
|
+
const _ = S ? Xn({
|
|
1321
1456
|
diagnostics: S,
|
|
1322
1457
|
maskPolicy: g
|
|
1323
1458
|
}).then((h) => h && R ? (h.stop(), null) : h).catch(() => null) : null;
|
|
1324
|
-
let C = null,
|
|
1325
|
-
const
|
|
1459
|
+
let C = null, N = !1, x = !1;
|
|
1460
|
+
const P = () => {
|
|
1326
1461
|
if (C) {
|
|
1327
1462
|
const h = C.stop();
|
|
1328
|
-
C = null,
|
|
1463
|
+
C = null, s({
|
|
1329
1464
|
type: "leesto:rec-stopped",
|
|
1330
1465
|
durationMs: h
|
|
1331
1466
|
});
|
|
1332
|
-
} else
|
|
1333
|
-
},
|
|
1334
|
-
onDetected: () =>
|
|
1335
|
-
onFilled: (h) =>
|
|
1467
|
+
} else N && (x = !0);
|
|
1468
|
+
}, M = qn({
|
|
1469
|
+
onDetected: () => s({ type: "leesto:login-form-detected" }),
|
|
1470
|
+
onFilled: (h) => s({
|
|
1336
1471
|
type: "leesto:login-filled",
|
|
1337
1472
|
step: h
|
|
1338
1473
|
}),
|
|
1339
|
-
onError: (h) =>
|
|
1474
|
+
onError: (h) => s({
|
|
1340
1475
|
type: "leesto:login-error",
|
|
1341
1476
|
reason: h
|
|
1342
1477
|
})
|
|
1343
|
-
}),
|
|
1344
|
-
window.addEventListener("pagehide",
|
|
1345
|
-
const
|
|
1346
|
-
let
|
|
1347
|
-
const
|
|
1348
|
-
let
|
|
1349
|
-
const
|
|
1350
|
-
|
|
1351
|
-
const h =
|
|
1352
|
-
|
|
1478
|
+
}), $ = () => M.cancel();
|
|
1479
|
+
window.addEventListener("pagehide", $);
|
|
1480
|
+
const B = er(e.build), D = window.navigation;
|
|
1481
|
+
let U = !1;
|
|
1482
|
+
const f = () => !U && D?.canGoBack === !0, p = () => !U && D?.canGoForward === !0;
|
|
1483
|
+
let m = p(), E = f(), L = location.href;
|
|
1484
|
+
const F = () => {
|
|
1485
|
+
L = location.href, E = f(), m = p();
|
|
1486
|
+
const h = tr();
|
|
1487
|
+
s({
|
|
1353
1488
|
type: "leesto:ready",
|
|
1354
1489
|
url: location.href,
|
|
1355
1490
|
bridgeVersion: 1,
|
|
1356
1491
|
capabilities: [
|
|
1357
|
-
|
|
1358
|
-
...
|
|
1359
|
-
...
|
|
1492
|
+
nt,
|
|
1493
|
+
...D ? ["navigation", "navigation-forward"] : [],
|
|
1494
|
+
..._ ? [rt] : []
|
|
1360
1495
|
],
|
|
1361
|
-
canGoBack:
|
|
1362
|
-
canGoForward:
|
|
1496
|
+
canGoBack: E,
|
|
1497
|
+
canGoForward: m,
|
|
1363
1498
|
...h ? { favicon: h } : {},
|
|
1364
|
-
|
|
1365
|
-
...
|
|
1366
|
-
...
|
|
1499
|
+
...B ? { build: B } : {},
|
|
1500
|
+
...w ? { diagnosticRunId: w } : {},
|
|
1501
|
+
...Q() ? { gpc: !0 } : {}
|
|
1367
1502
|
});
|
|
1368
|
-
},
|
|
1369
|
-
if (h.source !== t || !
|
|
1370
|
-
|
|
1371
|
-
const
|
|
1372
|
-
if (
|
|
1373
|
-
|
|
1374
|
-
else if (
|
|
1375
|
-
const
|
|
1376
|
-
if (!
|
|
1377
|
-
|
|
1503
|
+
}, A = (h) => {
|
|
1504
|
+
if (h.source !== t || !fe(h.origin, r) || !st(h.data)) return;
|
|
1505
|
+
o !== h.origin && (o = h.origin, ir(h.origin));
|
|
1506
|
+
const b = h.data;
|
|
1507
|
+
if (b.type === "leesto:ping")
|
|
1508
|
+
s({ type: "leesto:pong" }), F();
|
|
1509
|
+
else if (b.type === "leesto:navigate-back" || b.type === "leesto:navigate-forward") {
|
|
1510
|
+
const y = b.type === "leesto:navigate-forward";
|
|
1511
|
+
if (!D || !(y ? p() : f())) return;
|
|
1512
|
+
U = !0, T(), Promise.resolve((y ? D.forward() : D.back()).finished).catch(() => {
|
|
1378
1513
|
}).finally(() => {
|
|
1379
|
-
|
|
1514
|
+
U = !1, R || T();
|
|
1380
1515
|
});
|
|
1381
|
-
} else if (
|
|
1382
|
-
if (i(),
|
|
1383
|
-
let
|
|
1516
|
+
} else if (b.type === "leesto:highlight") {
|
|
1517
|
+
if (i(), b.selector) {
|
|
1518
|
+
let y = null;
|
|
1384
1519
|
try {
|
|
1385
|
-
|
|
1520
|
+
y = document.querySelector(b.selector);
|
|
1386
1521
|
} catch {
|
|
1387
|
-
|
|
1522
|
+
y = null;
|
|
1388
1523
|
}
|
|
1389
|
-
|
|
1524
|
+
y && (u = y, l = y.style.outline, y.style.outline = `2px solid ${n}`, y.style.outlineOffset = "2px", y.scrollIntoView({
|
|
1390
1525
|
block: "center",
|
|
1391
1526
|
behavior: "smooth"
|
|
1392
1527
|
}));
|
|
1393
1528
|
}
|
|
1394
|
-
} else if (
|
|
1395
|
-
else if (
|
|
1396
|
-
else if (
|
|
1529
|
+
} else if (b.type === "leesto:pick-start") c();
|
|
1530
|
+
else if (b.type === "leesto:pick-stop") a?.();
|
|
1531
|
+
else if (b.type === "leesto:capture-request") (b.selector ? De(b.selector) : (e.capture ?? De)()).then((y) => s({
|
|
1397
1532
|
type: "leesto:screenshot",
|
|
1398
|
-
dataUrl:
|
|
1399
|
-
...
|
|
1400
|
-
})).catch((
|
|
1533
|
+
dataUrl: y,
|
|
1534
|
+
...b.selector ? { selector: b.selector } : {}
|
|
1535
|
+
})).catch((y) => s({
|
|
1401
1536
|
type: "leesto:capture-failed",
|
|
1402
|
-
reason:
|
|
1537
|
+
reason: y instanceof Error ? y.message : "capture_error"
|
|
1403
1538
|
}));
|
|
1404
|
-
else if (
|
|
1405
|
-
if (C ||
|
|
1406
|
-
if (
|
|
1407
|
-
|
|
1539
|
+
else if (b.type === "leesto:rec-start") {
|
|
1540
|
+
if (C || N) return;
|
|
1541
|
+
if (Q()) {
|
|
1542
|
+
s({
|
|
1408
1543
|
type: "leesto:rec-blocked",
|
|
1409
1544
|
reason: "gpc"
|
|
1410
1545
|
});
|
|
1411
1546
|
return;
|
|
1412
1547
|
}
|
|
1413
|
-
|
|
1414
|
-
const
|
|
1548
|
+
N = !0, x = !1;
|
|
1549
|
+
const y = (O) => s({
|
|
1415
1550
|
type: "leesto:rec-batch",
|
|
1416
|
-
events:
|
|
1417
|
-
}),
|
|
1418
|
-
onBatch:
|
|
1419
|
-
onCap:
|
|
1551
|
+
events: O
|
|
1552
|
+
}), q = () => P(), z = () => Vn({
|
|
1553
|
+
onBatch: y,
|
|
1554
|
+
onCap: q,
|
|
1420
1555
|
captureNetwork: e.captureNetwork,
|
|
1421
1556
|
maskPolicy: g,
|
|
1422
1557
|
diagnostics: S
|
|
1423
1558
|
});
|
|
1424
|
-
(
|
|
1425
|
-
onBatch:
|
|
1426
|
-
onCap:
|
|
1427
|
-
}) :
|
|
1428
|
-
|
|
1429
|
-
}).catch((
|
|
1430
|
-
|
|
1559
|
+
(_ ? _.then((O) => O ? O.stream({
|
|
1560
|
+
onBatch: y,
|
|
1561
|
+
onCap: q
|
|
1562
|
+
}) : z()) : z()).then((O) => {
|
|
1563
|
+
N = !1, C = O, x && P();
|
|
1564
|
+
}).catch((O) => {
|
|
1565
|
+
N = !1, s({
|
|
1431
1566
|
type: "leesto:rec-error",
|
|
1432
|
-
reason:
|
|
1567
|
+
reason: O instanceof Error ? O.message : "rec_error"
|
|
1433
1568
|
});
|
|
1434
1569
|
});
|
|
1435
|
-
} else if (
|
|
1436
|
-
else if (
|
|
1437
|
-
if (!
|
|
1438
|
-
|
|
1570
|
+
} else if (b.type === "leesto:rec-stop") P();
|
|
1571
|
+
else if (b.type === "leesto:rec-buffer-request") {
|
|
1572
|
+
if (!_) {
|
|
1573
|
+
s({
|
|
1439
1574
|
type: "leesto:rec-buffer",
|
|
1440
1575
|
events: [],
|
|
1441
1576
|
durationMs: 0,
|
|
1442
|
-
unavailable:
|
|
1577
|
+
unavailable: Q() ? "gpc" : "not-armed"
|
|
1443
1578
|
});
|
|
1444
1579
|
return;
|
|
1445
1580
|
}
|
|
1446
|
-
|
|
1581
|
+
_.then((y) => {
|
|
1447
1582
|
if (R) return;
|
|
1448
|
-
if (!
|
|
1449
|
-
|
|
1583
|
+
if (!y) {
|
|
1584
|
+
s({
|
|
1450
1585
|
type: "leesto:rec-buffer",
|
|
1451
1586
|
events: [],
|
|
1452
1587
|
durationMs: 0,
|
|
@@ -1454,62 +1589,62 @@ function Me(e = {}) {
|
|
|
1454
1589
|
});
|
|
1455
1590
|
return;
|
|
1456
1591
|
}
|
|
1457
|
-
const { events:
|
|
1458
|
-
|
|
1592
|
+
const { events: q, durationMs: z } = y.snapshot();
|
|
1593
|
+
s({
|
|
1459
1594
|
type: "leesto:rec-buffer",
|
|
1460
|
-
events:
|
|
1461
|
-
durationMs:
|
|
1595
|
+
events: q,
|
|
1596
|
+
durationMs: z
|
|
1462
1597
|
});
|
|
1463
1598
|
});
|
|
1464
|
-
} else
|
|
1599
|
+
} else b.type === "leesto:rec-buffer-hold" ? _?.then((y) => y?.hold()) : b.type === "leesto:rec-buffer-release" ? _?.then((y) => y?.release()) : b.type === "leesto:diagnostics-request" ? s({
|
|
1465
1600
|
type: "leesto:diagnostics",
|
|
1466
1601
|
snapshot: S?.snapshot() ?? {
|
|
1467
1602
|
errors: [],
|
|
1468
1603
|
logs: [],
|
|
1469
1604
|
network: []
|
|
1470
1605
|
}
|
|
1471
|
-
}) :
|
|
1472
|
-
login:
|
|
1473
|
-
password:
|
|
1474
|
-
}) :
|
|
1606
|
+
}) : b.type === "leesto:login-watch" ? M.watch() : b.type === "leesto:login-fill" ? M.fill({
|
|
1607
|
+
login: b.login,
|
|
1608
|
+
password: b.password
|
|
1609
|
+
}) : b.type === "leesto:login-cancel" && M.cancel();
|
|
1475
1610
|
};
|
|
1476
|
-
window.addEventListener("message",
|
|
1477
|
-
const
|
|
1478
|
-
if (!(location.href ===
|
|
1479
|
-
if (location.href !==
|
|
1480
|
-
const
|
|
1481
|
-
|
|
1611
|
+
window.addEventListener("message", A), F();
|
|
1612
|
+
const T = (h) => {
|
|
1613
|
+
if (!(location.href === L && f() === E && p() === m)) {
|
|
1614
|
+
if (location.href !== L) {
|
|
1615
|
+
const b = location.href;
|
|
1616
|
+
_?.then((y) => y?.markNavigation(b));
|
|
1482
1617
|
}
|
|
1483
|
-
|
|
1618
|
+
L = location.href, E = f(), m = p(), s({
|
|
1484
1619
|
type: "leesto:location",
|
|
1485
1620
|
url: location.href,
|
|
1486
|
-
canGoBack:
|
|
1487
|
-
canGoForward:
|
|
1621
|
+
canGoBack: E,
|
|
1622
|
+
canGoForward: m,
|
|
1488
1623
|
navigationType: typeof h == "string" ? h : "traverse"
|
|
1489
1624
|
});
|
|
1490
1625
|
}
|
|
1491
|
-
},
|
|
1492
|
-
|
|
1493
|
-
},
|
|
1494
|
-
|
|
1626
|
+
}, G = history.pushState, ye = history.replaceState, ve = (...h) => {
|
|
1627
|
+
G.apply(history, h), T("push");
|
|
1628
|
+
}, be = (...h) => {
|
|
1629
|
+
ye.apply(history, h), T("replace");
|
|
1495
1630
|
};
|
|
1496
|
-
return history.pushState =
|
|
1497
|
-
R = !0,
|
|
1631
|
+
return history.pushState = ve, history.replaceState = be, D?.addEventListener("currententrychange", T), window.addEventListener("popstate", T), window.addEventListener("hashchange", T), () => {
|
|
1632
|
+
R = !0, D?.removeEventListener("currententrychange", T), P(), _?.then((h) => h?.stop()), S?.teardown(), i(), a?.(), M.teardown(), window.removeEventListener("pagehide", $), window.removeEventListener("message", A), window.removeEventListener("popstate", T), window.removeEventListener("hashchange", T), history.pushState === ve && (history.pushState = G), history.replaceState === be && (history.replaceState = ye);
|
|
1498
1633
|
};
|
|
1499
1634
|
}
|
|
1500
|
-
function
|
|
1635
|
+
function lr() {
|
|
1501
1636
|
return typeof document > "u" ? null : document.currentScript ?? document.querySelector("script[data-leesto-connect]");
|
|
1502
1637
|
}
|
|
1503
|
-
function
|
|
1638
|
+
function cr(e) {
|
|
1504
1639
|
const t = {}, n = e?.dataset.highlightColor;
|
|
1505
1640
|
n && (t.highlightColor = n);
|
|
1506
|
-
const r = (e?.dataset.shellOrigin ?? "").split(",").map((
|
|
1641
|
+
const r = (e?.dataset.shellOrigin ?? "").split(",").map((o) => o.trim()).filter(Boolean);
|
|
1507
1642
|
return r.length > 0 && (t.shellOrigins = r), t;
|
|
1508
1643
|
}
|
|
1509
1644
|
if (typeof window < "u") {
|
|
1510
|
-
window.LeestoConnect = { connect: (t) =>
|
|
1511
|
-
const e =
|
|
1512
|
-
(!e || e.dataset.leestoManual === void 0) &&
|
|
1645
|
+
window.LeestoConnect = { connect: (t) => $e(t) };
|
|
1646
|
+
const e = lr();
|
|
1647
|
+
(!e || e.dataset.leestoManual === void 0) && $e(cr(e));
|
|
1513
1648
|
}
|
|
1514
1649
|
|
|
1515
1650
|
//# sourceMappingURL=leesto-connect.js.map
|