PageSourceSearch

https://epmg.netlify.app/assets/web-vitals-7dd1f587.js

js epmg.netlify.app collected 2026-10-03 10:42:21 UTC 9,932 bytes, 249 lines download raw bytes

1var e, n, t, r, i, a = -1, o = function(e3) {
2  addEventListener("pageshow", function(n2) {
3    n2.persisted && (a = n2.timeStamp, e3(n2));
4  }, true);
5}, c = function() {
6  return window.performance && performance.getEntriesByType && performance.getEntriesByType("navigation")[0];
7}, u = function() {
8  var e3 = c();
9  return e3 && e3.activationStart || 0;
10}, f = function(e3, n2) {
11  var t2 = c(), r2 = "navigate";
12  a >= 0 ? r2 = "back-forward-cache" : t2 && (document.prerendering || u() > 0 ? r2 = "prerender" : document.wasDiscarded ? r2 = "restore" : t2.type && (r2 = t2.type.replace(/_/g, "-")));
13  return { name: e3, value: void 0 === n2 ? -1 : n2, rating: "good", delta: 0, entries: [], id: "v3-".concat(Date.now(), "-").concat(Math.floor(8999999999999 * Math.random()) + 1e12), navigationType: r2 };
14}, s = function(e3, n2, t2) {
15  try {
16    if (PerformanceObserver.supportedEntryTypes.includes(e3)) {
17      var r2 = new PerformanceObserver(function(e4) {
18        Promise.resolve().then(function() {
19          n2(e4.getEntries());
20        });
21      });
22      return r2.observe(Object.assign({ type: e3, buffered: true }, t2 || {})), r2;
23    }
24  } catch (e4) {
25  }
26}, d = function(e3, n2, t2, r2) {
27  var i2, a2;
28  return function(o2) {
29    n2.value >= 0 && (o2 || r2) && ((a2 = n2.value - (i2 || 0)) || void 0 === i2) && (i2 = n2.value, n2.delta = a2, n2.rating = function(e4, n3) {
30      return e4 > n3[1] ? "poor" : e4 > n3[0] ? "needs-improvement" : "good";
31    }(n2.value, t2), e3(n2));
32  };
33}, l = function(e3) {
34  requestAnimationFrame(function() {
35    return requestAnimationFrame(function() {
36      return e3();
37    });
38  });
39}, p = function(e3) {
40  var n2 = function(n3) {
41    "pagehide" !== n3.type && "hidden" !== document.visibilityState || e3(n3);
42  };
43  addEventListener("visibilitychange", n2, true), addEventListener("pagehide", n2, true);
44}, v = function(e3) {
45  var n2 = false;
46  return function(t2) {
47    n2 || (e3(t2), n2 = true);
48  };
49}, m = -1, h = function() {
50  return "hidden" !== document.visibilityState || document.prerendering ? 1 / 0 : 0;
51}, g = function(e3) {
52  "hidden" === document.visibilityState && m > -1 && (m = "visibilitychange" === e3.type ? e3.timeStamp : 0, T());
53}, y = function() {
54  addEventListener("visibilitychange", g, true), addEventListener("prerenderingchange", g, true);
55}, T = function() {
56  removeEventListener("visibilitychange", g, true), removeEventListener("prerenderingchange", g, true);
57}, E = function() {
58  return m < 0 && (m = h(), y(), o(function() {
59    setTimeout(function() {
60      m = h(), y();
61    }, 0);
62  })), { get firstHiddenTime() {
63    return m;
64  } };
65}, C = function(e3) {
66  document.prerendering ? addEventListener("prerenderingchange", function() {
67    return e3();
68  }, true) : e3();
69}, L = [1800, 3e3], b = function(e3, n2) {
70  n2 = n2 || {}, C(function() {
71    var t2, r2 = E(), i2 = f("FCP"), a2 = s("paint", function(e4) {
72      e4.forEach(function(e5) {
73        "first-contentful-paint" === e5.name && (a2.disconnect(), e5.startTime < r2.firstHiddenTime && (i2.value = Math.max(e5.startTime - u(), 0), i2.entries.push(e5), t2(true)));
74      });
75    });
76    a2 && (t2 = d(e3, i2, L, n2.reportAllChanges), o(function(r3) {
77      i2 = f("FCP"), t2 = d(e3, i2, L, n2.reportAllChanges), l(function() {
78        i2.value = performance.now() - r3.timeStamp, t2(true);
79      });
80    }));
81  });
82}, w = [0.1, 0.25], S = function(e3, n2) {
83  n2 = n2 || {}, b(v(function() {
84    var t2, r2 = f("CLS", 0), i2 = 0, a2 = [], c2 = function(e4) {
85      e4.forEach(function(e5) {
86        if (!e5.hadRecentInput) {
87          var n3 = a2[0], t3 = a2[a2.length - 1];
88          i2 && e5.startTime - t3.startTime < 1e3 && e5.startTime - n3.startTime < 5e3 ? (i2 += e5.value, a2.push(e5)) : (i2 = e5.value, a2 = [e5]);
89        }
90      }), i2 > r2.value && (r2.value = i2, r2.entries = a2, t2());
91    }, u2 = s("layout-shift", c2);
92    u2 && (t2 = d(e3, r2, w, n2.reportAllChanges), p(function() {
93      c2(u2.takeRecords()), t2(true);
94    }), o(function() {
95      i2 = 0, r2 = f("CLS", 0), t2 = d(e3, r2, w, n2.reportAllChanges), l(function() {
96        return t2();
97      });
98    }), setTimeout(t2, 0));
99  }));
100}, A = { passive: true, capture: true }, I = /* @__PURE__ */ new Date(), P = function(r2, i2) {
101  e || (e = i2, n = r2, t = /* @__PURE__ */ new Date(), k(removeEventListener), F());
102}, F = function() {
103  if (n >= 0 && n < t - I) {
104    var i2 = { entryType: "first-input", name: e.type, target: e.target, cancelable: e.cancelable, startTime: e.timeStamp, processingStart: e.timeStamp + n };
105    r.forEach(function(e3) {
106      e3(i2);
107    }), r = [];
108  }
109}, M = function(e3) {
110  if (e3.cancelable) {
111    var n2 = (e3.timeStamp >
111 1e12 ? /* @__PURE__ */ new Date() : performance.now()) - e3.timeStamp;
112    "pointerdown" == e3.type ? function(e4, n3) {
113      var t2 = function() {
114        P(e4, n3), i2();
115      }, r2 = function() {
116        i2();
117      }, i2 = function() {
118        removeEventListener("pointerup", t2, A), removeEventListener("pointercancel", r2, A);
119      };
120      addEventListener("pointerup", t2, A), addEventListener("pointercancel", r2, A);
121    }(n2, e3) : P(n2, e3);
122  }
123}, k = function(e3) {
124  ["mousedown", "keydown", "touchstart", "pointerdown"].forEach(function(n2) {
125    return e3(n2, M, A);
126  });
127}, D = [100, 300], x = function(t2, i2) {
128  i2 = i2 || {}, C(function() {
129    var a2, c2 = E(), u2 = f("FID"), l2 = function(e3) {
130      e3.startTime < c2.firstHiddenTime && (u2.value = e3.processingStart - e3.startTime, u2.entries.push(e3), a2(true));
131    }, m2 = function(e3) {
132      e3.forEach(l2);
133    }, h2 = s("first-input", m2);
134    a2 = d(t2, u2, D, i2.reportAllChanges), h2 && p(v(function() {
135      m2(h2.takeRecords()), h2.disconnect();
136    })), h2 && o(function() {
137      var o2;
138      u2 = f("FID"), a2 = d(t2, u2, D, i2.reportAllChanges), r = [], n = -1, e = null, k(addEventListener), o2 = l2, r.push(o2), F();
139    });
140  });
141}, B = 0, R = 1 / 0, H = 0, N = function(e3) {
142  e3.forEach(function(e4) {
143    e4.interactionId && (R = Math.min(R, e4.interactionId), H = Math.max(H, e4.interactionId), B = H ? (H - R) / 7 + 1 : 0);
144  });
145}, O = function() {
146  return i ? B : performance.interactionCount || 0;
147}, q = function() {
148  "interactionCount" in performance || i || (i = s("event", N, { type: "event", buffered: true, durationThreshold: 0 }));
149}, j = [200, 500], _ = 0, z = function() {
150  return O() - _;
151}, G = [], J = {}, K = function(e3) {
152  var n2 = G[G.length - 1], t2 = J[e3.interactionId];
153  if (t2 || G.length < 10 || e3.duration > n2.latency) {
154    if (t2)
155      t2.entries.push(e3), t2.latency = Math.max(t2.latency, e3.duration);
156    else {
157      var r2 = { id: e3.interactionId, latency: e3.duration, entries: [e3] };
158      J[r2.id] = r2, G.push(r2);
159    }
160    G.sort(function(e4, n3) {
161      return n3.latency - e4.latency;
162    }), G.splice(10).forEach(function(e4) {
163      delete J[e4.id];
164    });
165  }
166}, Q = function(e3, n2) {
167  n2 = n2 || {}, C(function() {
168    var t2;
169    q();
170    var r2, i2 = f("INP"), a2 = function(e4) {
171      e4.forEach(function(e5) {
172        (e5.interactionId && K(e5), "first-input" === e5.entryType) && (!G.some(function(n4) {
173          return n4.entries.some(function(n5) {
174            return e5.duration === n5.duration && e5.startTime === n5.startTime;
175          });
176        }) && K(e5));
177      });
178      var n3, t3 = (n3 = Math.min(G.length - 1, Math.floor(z() / 50)), G[n3]);
179      t3 && t3.latency !== i2.value && (i2.value = t3.latency, i2.entries = t3.entries, r2());
180    }, c2 = s("event", a2, { durationThreshold: null !== (t2 = n2.durationThreshold) && void 0 !== t2 ? t2 : 40 });
181    r2 = d(e3, i2, j, n2.reportAllChanges), c2 && ("interactionId" in PerformanceEventTiming.prototype && c2.observe({ type: "first-input", buffered: true }), p(function() {
182      a2(c2.takeRecords()), i2.value < 0 && z() > 0 && (i2.value = 0, i2.entries = []), r2(true);
183    }), o(function() {
184      G = [], _ = O(), i2 = f("INP"), r2 = d(e3, i2, j, n2.reportAllChanges);
185    }));
186  });
187}, U = [2500, 4e3], V = {}, W = function(e3, n2) {
188  n2 = n2 || {}, C(function() {
189    var t2, r2 = E(), i2 = f("LCP"), a2 = function(e4) {
190      var n3 = e4[e4.length - 1];
191      n3 && n3.startTime < r2.firstHiddenTime && (i2.value = Math.max(n3.startTime - u(), 0), i2.entries = [n3], t2());
192    }, c2 = s("largest-contentful-paint", a2);
193    if (c2) {
194      t2 = d(e3, i2, U, n2.reportAllChanges);
195      var m2 = v(function() {
196        V[i2.id] || (a2(c2.takeRecords()), c2.disconnect(), V[i2.id] = true, t2(true));
197      });
198      ["keydown", "click"].forEach(function(e4) {
199        addEventListener(e4, function() {
200          return setTimeout(m2, 0);
201        }, true);
202      }), p(m2), o(function(r3) {
203        i2 = f("LCP"), t2 = d(e3, i2, U, n2.reportAllChanges), l(function() {
204          i2.value = performance.now() - r3.timeStamp, V[i2.id] = true, t2(true);
205        });
206      });
207    }
208  });
209}, X = [800, 1800], Y = function e2(n2) {
210  document.prerendering ? C(function() {
211    return e2(n2);
212  }) : "complete" !== document.readyState ? addEventListener("load", function() {
213    return e2(n2);
214  }, true) : setTimeout(n2, 0);
215}, Z = function(e3, n2) {
216  n2 = n2 || {};
217  var t2 = f("TTFB"), r2 = d(e3, t2, X, n2.reportAllChanges);
218  Y(function() {
219    var i2 = c();
220    if (i2) {
221      var a2 = i2.responseStart;
222      if (a2 <= 0 || a2 > performance.now())
223        return;
224      t2.value = Math.max(a2 - u(), 0), t2.entries = [i2], r2(true), o(function() {
225        t2 = f("TTFB", 0), (r2 = d(e3, t2, X, n2.reportAllChanges))(true);
226      });
227    }
228  });
229};
230export {
231  w as CLSThresholds,
232  L as FCPThresholds,
233  D as FIDThresholds,
234  j as INPThresholds,
235  U as LCPThresholds,
236  X as TTFBThresholds,
237  S as getCLS,
238  b as getFCP,
239  x as getFID,
240  Q as getINP,
241  W as getLCP,
242  Z as getTTFB,
243  S as onCLS,
244  b as onFCP,
245  x as onFID,
246  Q as onINP,
247  W as onLCP,
248  Z as onTTFB
249};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.