PageSourceSearch

https://samorzad.gov.pl/scripts/polyfills/polyfills.js

js samorzad.gov.pl collected 2026-10-09 22:41:29 UTC 2,983 bytes, 90 lines download raw bytes

1"use strict";
2
3Array.prototype.findIndex || Object.defineProperty(Array.prototype, "findIndex", {
4  value: function value(r) {
5    if (null == this) throw new TypeError('"this" is null or not defined');
6    var t = Object(this),
7        e = t.length >>> 0;
8    if ("function" != typeof r) throw new TypeError("predicate must be a function");
9
10    for (var n = arguments[1], i = 0; i < e;) {
11      var o = t[i];
12      if (r.call(n, o, i, t)) return i;
13      i++;
14    }
15
16    return -1;
17  },
18  configurable: !0,
19  writable: !0
20}), String.prototype.padStart || (String.prototype.padStart = function (r, t) {
21  return r >>= 0, t = String(void 0 !== t ? t : " "), this.length > r ? String(this) : ((r -= this.length) > t.length && (t += t.repeat(r / t.length)), t.slice(0, r) + String(this));
22}), Array.from || (Array.from = function () {
23  var r = Object.prototype.toString,
24      t = function t(_t) {
25    return "function" == typeof _t || "[object Function]" === r.call(_t);
26  },
27      e = Math.pow(2, 53) - 1,
28      n = function n(r) {
29    var t = function (r) {
30      var t = Number(r);
31      return isNaN(t) ? 0 : 0 !== t && isFinite(t) ? (t > 0 ? 1 : -1) * Math.floor(Math.abs(t)) : t;
32    }(r);
33
34    return Math.min(Math.max(t, 0), e);
35  };
36
37  return function (r) {
38    var e = Object(r);
39    if (null == r) throw new TypeError("Array.from requires an array-like object - not null or undefined");
40    var i,
41        o = arguments.length > 1 ? arguments[1] : void 0;
42
43    if (void 0 !== o) {
44      if (!t(o)) throw new TypeError("Array.from: when provided, the second argument must be a function");
45      arguments.length > 2 && (i = arguments[2]);
46    }
47
48    for (var a, u = n(e.length), f = t(this) ? Object(new this(u)) : new Array(u), p = 0; p < u;) {
49      a = e[p], f[p] = o ? void 0 === i ? o(a, p) : o.call(i, a, p) : a, p += 1;
50    }
51
52    return f.length = u, f;
53  };
54}()), Array.prototype.find || Object.defineProperty(Array.prototype, "find", {
55  value: function value(r) {
56    if (null == this) throw TypeError('"this" is null or not defined');
57    var t = Object(this),
58        e = t.length >>> 0;
59    if ("function" != typeof r) throw TypeError("predicate must be a function");
60
61    for (var n = arguments[1], i = 0; i < e;) {
62      var o = t[i];
63      if (r.call(n, o, i, t)) return o;
64      i++;
65    }
66  },
67  configurable: !0,
68  writable: !0
69}), String.prototype.includes || (String.prototype.includes = function (r, t) {
70  "use strict";
71
72  if (r instanceof RegExp) throw TypeError("first argument must not be a RegExp");
73  return void 0 === t && (t = 0), -1 !== this.indexOf(r, t);
74}), Array.prototype.includes || (Array.prototype.includes = function (r) {
75  "use strict";
76
77  var t = Object(this),
78      e = parseInt(t.length) || 0;
79  if (0 === e) return !1;
80  var n,
81      i,
82      o = parseInt(arguments[1]) || 0;
83
84  for (o >= 0 ? n = o : (n = e + o) < 0 && (n = 0); n < e;) {
85    if (r === (i = t[n]) || r != r && i != i) return !0;
86    n++;
87  }
88
89  return !1;
90});

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.