MediaWiki:Gadget-Wikiplus.js:修订间差异

来自兽耳维基
跳到导航 跳到搜索
无编辑摘要
标签已被回退
(撤销一位史蒂夫讨论)的版本200)
标签替换 撤销
第1行: 第1行:
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
"use strict";
// @ts-nocheck
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
(function Wikiplus() {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
/*! Wikiplus - 4.0.11 | Eridanus Sora (妹空酱) | CC-BY-SA-4.0 <qwbk.cc/H:CC-BY-SA-4.0> */
    return new (P || (P = Promise))(function (resolve, reject) {
var t = {
        function fulfilled(value) { try { step(generator
509: function (t, e, r) {
var n = r(9985),
o = r(3691),
i = TypeError;
t.exports = function (t) {
if (n(t)) return t;
throw new i(o(t) + ' is not a function');
};
},
2655: function (t, e, r) {
var n = r(9429),
o = r(3691),
i = TypeError;
t.exports = function (t) {
if (n(t)) return t;
throw new i(o(t) + ' is not a constructor');
};
},
9945: function (t, e, r) {
var n = r(3914).has;
t.exports = function (t) {
return n(t), t;
};
},
3550: function (t, e, r) {
var n = r(9985),
o = String,
i = TypeError;
t.exports = function (t) {
if ('object' == typeof t || n(t)) return t;
throw new i("Can't set " + o(t) + ' as a prototype');
};
},
7370: function (t, e, r) {
var n = r(4201),
o = r(5391),
i = r(2560).f,
a = n('unscopables'),
u = Array.prototype;
void 0 === u[a] && i(u, a, {configurable: !0, value: o(null)}),
(t.exports = function (t) {
u[a][t] = !0;
});
},
1514: function (t, e, r) {
var n = r(730).charAt;
t.exports = function (t, e, r) {
return e + (r ? n(t, e).length : 1);
};
},
767: function (t, e, r) {
var n = r(3622),
o = TypeError;
t.exports = function (t, e) {
if (n(e, t)) return t;
throw new o('Incorrect invocation');
};
},
5027: function (t, e, r) {
var n = r(8999),
o = String,
i = TypeError;
t.exports = function (t) {
if (n(t)) return t;
throw new i(o(t) + ' is not an object');
};
},
1655: function (t, e, r) {
var n = r(3689);
t.exports = n(function () {
if ('function' == typeof ArrayBuffer) {
var t = new ArrayBuffer(8);
Object.isExtensible(t) && Object.defineProperty(t, 'a', {value: 8});
}
});
},
7612: function (t, e, r) {
var n = r(2960).forEach,
o = r(6834)('forEach');
t.exports = o
? [].forEach
: function (t) {
return n(this, t, arguments.length > 1 ? arguments[1] : void 0);
};
},
1055: function (t, e, r) {
var n = r(4071),
o = r(2615),
i = r(690),
a = r(1228),
u = r(3292),
c = r(9429),
s = r(6310),
f = r(6522),
l = r(5185),
p = r(1664),
h = Array;
t.exports = function (t) {
var e = i(t),
r = c(this),
v = arguments.length,
d = v > 1 ? arguments[1] : void 0,
y = void 0 !== d;
y && (d = n(d, v > 2 ? arguments[2] : void 0));
var g,
m,
b,
w,
x,
k,
S = p(e),
E = 0;
if (!S || (this === h && u(S)))
for (g = s(e), m = r ? new this(g) : h(g); g > E; E++) (k = y ? d(e[E], E) : e[E]), f(m, E, k);
else
for (x = (w = l(e, S)).next, m = r ? new this() : []; !(b = o(x, w)).done; E++)
(k = y ? a(w, d, [b.value, E], !0) : b.value), f(m, E, k);
return (m.length = E), m;
};
},
4328: function (t, e, r) {
var n = r(5290),
o = r(7578),
i = r(6310),
a = function (t) {
return function (e, r, a) {
var u,
c = n(e),
s = i(c),
f = o(a, s);
if (t && r != r) {
for (; s > f; ) if ((u = c[f++]) != u) return !0;
} else for (; s > f; f++) if ((t || f in c) && c[f] === r) return t || f || 0;
return !t && -1;
};
};
t.exports = {
includes: a(!0),
indexOf: a(!1),
};
},
2960: function (t, e, r) {
var n = r(4071),
o = r(8844),
i = r(4413),
a = r(690),
u = r(6310),
c = r(7120),
s = o([].push),
f = function (t) {
var e = 1 === t,
r = 2 === t,
o = 3 === t,
f = 4 === t,
l = 6 === t,
p = 7 === t,
h = 5 === t || l;
return function (v, d, y, g) {
for (
var m,
b,
w = a(v),
x = i(w),
k = n(d, y),
S = u(x),
E = 0,
O = g || c,
P = e ? O(v, S) : r || p ? O(v, 0) : void 0;
S > E;
E++
)
if ((h || E in x) && ((b = k((m = x[E]), E, w)), t))
if (e) P[E] = b;
else if (b)
switch (t) {
case 3:
return !0;
case 5:
return m;
case 6:
return E;
case 2:
s(P, m);
}
else
switch (t) {
case 4:
return !1;
case 7:
s(P, m);
}
return l ? -1 : o || f ? f : P;
};
};
t.exports = {
forEach: f(0),
map: f(1),
filter: f(2),
some: f(3),
every: f(4),
find: f(5),
findIndex: f(6),
filterReject: f(7),
};
},
9042: function (t, e, r) {
var n = r(3689),
o = r(4201),
i = r(3615),
a = o('species');
t.exports = function (t) {
return (
i >= 51 ||
!n(function () {
var e = [];
return (
((e.constructor = {})[a] = function () {
return {
foo: 1,
};
}),
1 !== e[t](Boolean).foo
);
})
);
};
},
6834: function (t, e, r) {
var n = r(3689);
t.exports = function (t, e) {
var r = [][t];
return (
!!r &&
n(function () {
r.call(
null,
e ||
function () {
return 1;
},
1
);
})
);
};
},
5649: function (t, e, r) {
var n = r(7697),
o = r(2297),
i = TypeError,
a = Object.getOwnPropertyDescriptor,
u =
n &&
!(function () {
if (void 0 !== this) return !0;
try {
Object.defineProperty([], 'length', {writable: !1}).length = 1;
} catch (t) {
return t instanceof TypeError;
}
})();
t.exports = u
? function (t, e) {
if (o(t) && !a(t, 'length').writable) throw new i('Cannot set read only .length');
return (t.length = e);
}
: function (t, e) {
return (t.length = e);
};
},
9015: function (t, e, r) {
var n = r(7578),
o = r(6310),
i = r(6522),
a = Array,
u = Math.max;
t.exports = function (t, e, r) {
for (
var c = o(t), s = n(e, c), f = n(void 0 === r ? c : r, c), l = a(u(f - s, 0)), p = 0;
s < f;
s++, p++
)
i(l, p, t[s]);
return (l.length = p), l;
};
},
6004: function (t, e, r) {
var n = r(8844);
t.exports = n([].slice);
},
382: function (t, e, r) {
var n = r(9015),
o = Math.floor,
i = function (t, e) {
var r = t.length,
c = o(r / 2);
return r < 8 ? a(t, e) : u(t, i(n(t, 0, c), e), i(n(t, c), e), e);
},
a = function (t, e) {
for (var r, n, o = t.length, i = 1; i < o; ) {
for (n = i, r = t[i]; n && e(t[n - 1], r) > 0; ) t[n] = t[--n];
n !== i++ && (t[n] = r);
}
return t;
},
u = function (t, e, r, n) {
for (var o = e.length, i = r.length, a = 0, u = 0; a < o || u < i; )
t[a + u] =
a < o && u < i ? (n(e[a], r[u]) <= 0 ? e[a++] : r[u++]) : a < o ? e[a++] : r[u++];
return t;
};
t.exports = i;
},
5271: function (t, e, r) {
var n = r(2297),
o = r(9429),
i = r(8999),
a = r(4201)('species'),
u = Array;
t.exports = function (t) {
var e;
return (
n(t) &&
((e = t.constructor),
((o(e) && (e === u || n(e.prototype))) || (i(e) && null === (e = e[a]))) && (e = void 0)),
void 0 === e ? u : e
);
};
},
7120: function (t, e, r) {
var n = r(5271);
t.exports = function (t, e) {
return new (n(t))(0 === e ? 0 : e);
};
},
2399: function (t, e, r) {
var n = r(2615),
o = r(6058),
i = r(4849);
t.exports = function (t, e, r, a) {
try {
var u = i(t, 'return');
if (u)
return o('Promise')
.resolve(n(u, t))
.then(
function () {
e(r);
},
function (t) {
a(t);
}
);
} catch (t) {
return a(t);
}
e(r);
};
},
7394: function (t, e, r) {
var n = r(2615),
o = r(9302),
i = r(5027),
a = r(5391),
u = r(5773),
c = r(6045),
s = r(4201),
f = r(618),
l = r(6058),
p = r(4849),
h = r(3070),
v = r(7807),
d = r(2125),
y = l('Promise'),
g = s('toStringTag'),
m = 'AsyncIteratorHelper',
b = 'WrapForValidAsyncIterator',
w = f.set,
x = function (t) {
var e = !t,
r = f.getterFor(t ? b : m),
u = function (t) {
var n = o(function () {
return r(t);
}),
i = n.error,
a = n.value;
return i || (e && a.done)
? {exit: !0, value: i ? y.reject(a) : y.resolve(v(void 0, !0))}
: {exit: !1, value: a};
};
return c(a(h), {
next: function () {
var t = u(this),
e = t.value;
if (t.exit) return e;
var r = o(function () {
return i(e.nextHandler(y));
}),
n = r.error,
a = r.value;
return n && (e.done = !0), n ? y.reject(a) : y.resolve(a);
},
return: function () {
var e = u(this),
r = e.value;
if (e.exit) return r;
r.done = !0;
var a,
c,
s = r.iterator,
f = o(function () {
if (r.inner)
try {
d(r.inner.iterator, 'normal');
} catch (t) {
return d(s, 'throw', t);
}
return p(s, 'return');
});
return (
(a = c = f.value),
f.error
? y.reject(c)
: void 0 === a
? y.resolve(v(void 0, !0))
: ((c = (f = o(function () {
return n(a, s);
})).value),
f.error
? y.reject(c)
: t
? y.resolve(c)
: y.resolve(c).then(function (t) {
return i(t), v(void 0, !0);
}))
);
},
});
},
k = x(!0),
S = x(!1);
u(S, g, 'Async Iterator Helper'),
(t.exports = function (t, e) {
var r = function (r, n) {
n ? ((n.iterator = r.iterator), (n.next = r.next)) : (n = r),
(n.type = e ? b : m),
(n.nextHandler = t),
(n.counter = 0),
(n.done = !1),
w(this, n);
};
return (r.prototype = e ? k : S), r;
});
},
2489: function (t, e, r) {
var n = r(2615),
o = r(509),
i = r(5027),
a = r(8999),
u = r(5565),
c = r(6058),
s = r(2302),
f = r(2399),
l = function (t) {
var e = 0 === t,
r = 1 === t,
l = 2 === t,
p = 3 === t;
return function (t, h, v) {
i(t);
var d = void 0 !== h;
(!d && e) || o(h);
var y = s(t),
g = c('Promise'),
m = y.iterator,
b = y.next,
w = 0;
return new g(function (t, o) {
var c = function (t) {
f(m, o, t, o);
},
s = function () {
try {
if (d)
try {
u(w);
} catch (t) {
c(t);
}
g.resolve(i(n(b, m))).then(function (n) {
try {
if (i(n).done) e ? ((v.length = w), t(v)) : t(!p && (l || void 0));
else {
var u = n.value;
try {
if (d) {
var y = h(u, w),
b = function (n) {
if (r) s();
else if (l) n ? s() : f(m, t, !1, o);
else if (e)
try {
(v[w++] = n), s();
} catch (t) {
c(t);
}
else n ? f(m, t, p || u, o) : s();
};
a(y) ? g.resolve(y).then(b, c) : b(y);
} else (v[w++] = u), s();
} catch (t) {
c(t);
}
}
} catch (t) {
o(t);
}
}, o);
} catch (t) {
o(t);
}
};
s();
});
};
};
t.exports = {
toArray: l(0),
forEach: l(1),
every: l(2),
some: l(3),
find: l(4),
};
},
3070: function (t, e, r) {
var n,
o,
i = r(9037),
a = r(4091),
u = r(9985),
c = r(5391),
s = r(1868),
f = r(1880),
l = r(4201),
p = r(3931),
h = 'USE_FUNCTION_CONSTRUCTOR',
v = l('asyncIterator'),
d = i.AsyncIterator,
y = a.AsyncIteratorPrototype;
if (y) n = y;
else if (u(d)) n = d.prototype;
else if (a[h] || i[h])
try {
(o = s(s(s(Function('return async function*(){}()')())))), s(o) === Object.prototype && (n = o);
} catch (t) {}
n ? p && (n = c(n)) : (n = {}),
u(n[v]) ||
f(n, v, function () {
return this;
}),
(t.exports = n);
},
1228: function (t, e, r) {
var n = r(5027),
o = r(2125);
t.exports = function (t, e, r, i) {
try {
return i ? e(n(r)[0], r[1]) : e(r);
} catch (e) {
o(t, 'throw', e);
}
};
},
6431: function (t, e, r) {
var n = r(4201)('iterator'),
o = !1;
try {
var i = 0,
a = {
next: function () {
return {
done: !!i++,
};
},
return: function () {
o = !0;
},
};
(a[n] = function () {
return this;
}),
Array.from(a, function () {
throw 2;
});
} catch (t) {}
t.exports = function (t, e) {
try {
if (!e && !o) return !1;
} catch (t) {
return !1;
}
var r = !1;
try {
var i = {};
(i[n] = function () {
return {
next: function () {
return {
done: (r = !0),
};
},
};
}),
t(i);
} catch (t) {}
return r;
};
},
6648: function (t, e, r) {
var n = r(8844),
o = n({}.toString),
i = n(''.slice);
t.exports = function (t) {
return i(o(t), 8, -1);
};
},
926: function (t, e, r) {
var n = r(3043),
o = r(9985),
i = r(6648),
a = r(4201)('toStringTag'),
u = Object,
c =
'Arguments' ===
i(
(function () {
return arguments;
})()
);
t.exports = n
? i
: function (t) {
var e, r, n;
return void 0 === t
? 'Undefined'
: null === t
? 'Null'
: 'string' ==
  typeof (r = (function (t, e) {
try {
return t[e];
} catch (t) {}
  })((e = u(t)), a))
? r
: c
? i(e)
: 'Object' === (n = i(e)) && o(e.callee)
? 'Arguments'
: n;
};
},
800: function (t, e, r) {
var n = r(5391),
o = r(2148),
i = r(6045),
a = r(4071),
u = r(767),
c = r(981),
s = r(8734),
f = r(1934),
l = r(7807),
p = r(4241),
h = r(7697),
v = r(5375).fastKey,
d = r(618),
y = d.set,
g = d.getterFor;
t.exports = {
getConstructor: function (t, e, r, f) {
var l = t(function (t, o) {
u(t, p),
y(t, {type: e, index: n(null), first: void 0, last: void 0, size: 0}),
h || (t.size = 0),
c(o) || s(o, t[f], {that: t, AS_ENTRIES: r});
}),
p = l.prototype,
d = g(e),
m = function (t, e, r) {
var n,
o,
i = d(t),
a = b(t, e);
return (
a
? (a.value = r)
: ((i.last = a =
{
index: (o = v(e, !0)),
key: e,
value: r,
previous: (n = i.last),
next: void 0,
removed: !1,
}),
i.first || (i.first = a),
n && (n.next = a),
h ? i.size++ : t.size++,
'F' !== o && (i.index[o] = a)),
t
);
},
b = function (t, e) {
var r,
n = d(t),
o = v(e);
if ('F' !== o) return n.index[o];
for (r = n.first; r; r = r.next) if (r.key === e) return r;
};
return (
i(p, {
clear: function () {
for (var t = d(this), e = t.index, r = t.first; r; )
(r.removed = !0),
r.previous && (r.previous = r.previous.next = void 0),
delete e[r.index],
(r = r.next);
(t.first = t.last = void 0), h ? (t.size = 0) : (this.size = 0);
},
delete: function (t) {
var e = this,
r = d(e),
n = b(e, t);
if (n) {
var o = n.next,
i = n.previous;
delete r.index[n.index],
(n.removed = !0),
i && (i.next = o),
o && (o.previous = i),
r.first === n && (r.first = o),
r.last === n && (r.last = i),
h ? r.size-- : e.size--;
}
return !!n;
},
forEach: function (t) {
for (
var e, r = d(this), n = a(t, arguments.length > 1 ? arguments[1] : void 0);
(e = e ? e.next : r.first);
 
)
for (n(e.value, e.key, this); e && e.removed; ) e = e.previous;
},
has: function (t) {
return !!b(this, t);
},
}),
i(
p,
r
? {
get: function (t) {
var e = b(this, t);
return e && e.value;
},
set: function (t, e) {
return m(this, 0 === t ? 0 : t, e);
},
}
: {
add: function (t) {
return m(this, (t = 0 === t ? 0 : t), t);
},
}
),
h &&
o(p, 'size', {
configurable: !0,
get: function () {
return d(this).size;
},
}),
l
);
},
setStrong: function (t, e, r) {
var n = e + ' Iterator',
o = g(e),
i = g(n);
f(
t,
e,
function (t, e) {
y(this, {type: n, target: t, state: o(t), kind: e, last: void 0});
},
function () {
for (var t = i(this), e = t.kind, r = t.last; r && r.removed; ) r = r.previous;
return t.target && (t.last = r = r ? r.next : t.state.first)
? l('keys' === e ? r.key : 'values' === e ? r.value : [r.key, r.value], !1)
: ((t.target = void 0), l(void 0, !0));
},
r ? 'entries' : 'values',
!r,
!0
),
p(e);
},
};
},
319: function (t, e, r) {
var n = r(9989),
o = r(9037),
i = r(8844),
a = r(5266),
u = r(1880),
c = r(5375),
s = r(8734),
f = r(767),
l = r(9985),
p = r(981),
h = r(8999),
v = r(3689),
d = r(6431),
y = r(5997),
g = r(3457);
t.exports = function (t, e, r) {
var m = -1 !== t.indexOf('Map'),
b = -1 !== t.indexOf('Weak'),
w = m ? 'set' : 'add',
x = o[t],
k = x && x.prototype,
S = x,
E = {},
O = function (t) {
var e = i(k[t]);
u(
k,
t,
'add' === t
? function (t) {
return e(this, 0 === t ? 0 : t), this;
}
: 'delete' === t
? function (t) {
return !(b && !h(t)) && e(this, 0 === t ? 0 : t);
}
: 'get' === t
? function (t) {
return b && !h(t) ? void 0 : e(this, 0 === t ? 0 : t);
}
: 'has' === t
? function (t) {
return !(b && !h(t)) && e(this, 0 === t ? 0 : t);
}
: function (t, r) {
return e(this, 0 === t ? 0 : t, r), this;
}
);
};
if (
a(
t,
!l(x) ||
!(
b ||
(k.forEach &&
!v(function () {
new x().entries().next();
}))
)
)
)
(S = r.getConstructor(e, t, m, w)), c.enable();
else if (a(t, !0)) {
var P = new S(),
j = P[w](b ? {} : -0, 1) !== P,
L = v(function () {
P.has(1);
}),
_ = d(function (t) {
new x(t);
}),
I =
!b &&
v(function () {
for (var t = new x(), e = 5; e--; ) t[w](e, e);
return !t.has(-0);
});
_ ||
(((S = e(function (t, e) {
f(t, k);
var r = g(new x(), t, S);
return p(e) || s(e, r[w], {that: r, AS_ENTRIES: m}), r;
})).prototype = k),
(k.constructor = S)),
(L || I) && (O('delete'), O('has'), m && O('get')),
(I || j) && O(w),
b && k.clear && delete k.clear;
}
return (
(E[t] = S),
n(
{
global: !0,
constructor: !0,
forced: S !== x,
},
E
),
y(S, t),
b || r.setStrong(S, t, m),
S
);
};
},
8758: function (t, e, r) {
var n = r(6812),
o = r(9152),
i = r(2474),
a = r(2560);
t.exports = function (t, e, r) {
for (var u = o(e), c = a.f, s = i.f, f = 0; f < u.length; f++) {
var l = u[f];
n(t, l) || (r && n(r, l)) || c(t, l, s(e, l));
}
};
},
7413: function (t, e, r) {
var n = r(4201)('match');
t.exports = function (t) {
var e = /./;
try {
'/./'[t](e);
} catch (r) {
try {
return (e[n] = !1), '/./'[t](e);
} catch (t) {}
}
return !1;
};
},
1748: function (t, e, r) {
var n = r(3689);
t.exports = !n(function () {
function t() {}
return (t.prototype.constructor = null), Object.getPrototypeOf(new t()) !== t.prototype;
});
},
7807: function (t) {
t.exports = function (t, e) {
return {
value: t,
done: e,
};
};
},
5773: function (t, e, r) {
var n = r(7697),
o = r(2560),
i = r(5684);
t.exports = n
? function (t, e, r) {
return o.f(t, e, i(1, r));
}
: function (t, e, r) {
return (t[e] = r), t;
};
},
5684: function (t) {
t.exports = function (t, e) {
return {
enumerable: !(1 & t),
configurable: !(2 & t),
writable: !(4 & t),
value: e,
};
};
},
6522: function (t, e, r) {
var n = r(8360),
o = r(2560),
i = r(5684);
t.exports = function (t, e, r) {
var a = n(e);
a in t ? o.f(t, a, i(0, r)) : (t[a] = r);
};
},
1797: function (t, e, r) {
var n = r(5027),
o = r(5899),
i = TypeError;
t.exports = function (t) {
if ((n(this), 'string' === t || 'default' === t)) t = 'string';
else if ('number' !== t) throw new i('Incorrect hint');
return o(this, t);
};
},
2148: function (t, e, r) {
var n = r(8702),
o = r(2560);
t.exports = function (t, e, r) {
return r.get && n(r.get, e, {getter: !0}), r.set && n(r.set, e, {setter: !0}), o.f(t, e, r);
};
},
1880: function (t, e, r) {
var n = r(9985),
o = r(2560),
i = r(8702),
a = r(5014);
t.exports = function (t, e, r, u) {
u || (u = {});
var c = u.enumerable,
s = void 0 !== u.name ? u.name : e;
if ((n(r) && i(r, s, u), u.global)) c ? (t[e] = r) : a(e, r);
else {
try {
u.unsafe ? t[e] && (c = !0) : delete t[e];
} catch (t) {}
c
? (t[e] = r)
: o.f(t, e, {
value: r,
enumerable: !1,
configurable: !u.nonConfigurable,
writable: !u.nonWritable,
});
}
return t;
};
},
6045: function (t, e, r) {
var n = r(1880);
t.exports = function (t, e, r) {
for (var o in e) n(t, o, e[o], r);
return t;
};
},
5014: function (t, e, r) {
var n = r(9037),
o = Object.defineProperty;
t.exports = function (t, e) {
try {
o(n, t, {value: e, configurable: !0, writable: !0});
} catch (r) {
n[t] = e;
}
return e;
};
},
7697: function (t, e, r) {
var n = r(3689);
t.exports = !n(function () {
return (
7 !==
Object.defineProperty({}, 1, {
get: function () {
return 7;
},
})[1]
);
});
},
2659: function (t) {
var e = 'object' == typeof document && document.all,
r = void 0 === e && void 0 !== e;
t.exports = {
all: e,
IS_HTMLDDA: r,
};
},
6420: function (t, e, r) {
var n = r(9037),
o = r(8999),
i = n.document,
a = o(i) && o(i.createElement);
t.exports = function (t) {
return a ? i.createElement(t) : {};
};
},
5565: function (t) {
var e = TypeError;
t.exports = function (t) {
if (t > 9007199254740991) throw e('Maximum allowed index exceeded');
return t;
};
},
6338: function (t) {
t.exports = {
CSSRuleList: 0,
CSSStyleDeclaration: 0,
CSSValueList: 0,
ClientRectList: 0,
DOMRectList: 0,
DOMStringList: 0,
DOMTokenList: 1,
DataTransferItemList: 0,
FileList: 0,
HTMLAllCollection: 0,
HTMLCollection: 0,
HTMLFormElement: 0,
HTMLSelectElement: 0,
MediaList: 0,
MimeTypeArray: 0,
NamedNodeMap: 0,
NodeList: 1,
PaintRequestList: 0,
Plugin: 0,
PluginArray: 0,
SVGLengthList: 0,
SVGNumberList: 0,
SVGPathSegList: 0,
SVGPointList: 0,
SVGStringList: 0,
SVGTransformList: 0,
SourceBufferList: 0,
StyleSheetList: 0,
TextTrackCueList: 0,
TextTrackList: 0,
TouchList: 0,
};
},
3265: function (t, e, r) {
var n = r(6420)('span').classList,
o = n && n.constructor && n.constructor.prototype;
t.exports = o === Object.prototype ? void 0 : o;
},
2532: function (t, e, r) {
var n = r(8563),
o = r(806);
t.exports = !n && !o && 'object' == typeof window && 'object' == typeof document;
},
8563: function (t) {
t.exports = 'object' == typeof Deno && Deno && 'object' == typeof Deno.version;
},
3221: function (t, e, r) {
var n = r(71);
t.exports = /ipad|iphone|ipod/i.test(n) && 'undefined' != typeof Pebble;
},
4764: function (t, e, r) {
var n = r(71);
t.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(n);
},
806: function (t, e, r) {
var n = r(9037),
o = r(6648);
t.exports = 'process' === o(n.process);
},
7486: function (t, e, r) {
var n = r(71);
t.exports = /web0s(?!.*chrome)/i.test(n);
},
71: function (t) {
t.exports = ('undefined' != typeof navigator && String(navigator.userAgent)) || '';
},
3615: function (t, e, r) {
var n,
o,
i = r(9037),
a = r(71),
u = i.process,
c = i.Deno,
s = (u && u.versions) || (c && c.version),
f = s && s.v8;
f && (o = (n = f.split('.'))[0] > 0 && n[0] < 4 ? 1 : +(n[0] + n[1])),
!o &&
a &&
(!(n = a.match(/Edge\/(\d+)/)) || n[1] >= 74) &&
(n = a.match(/Chrome\/(\d+)/)) &&
(o = +n[1]),
(t.exports = o);
},
2739: function (t) {
t.exports = [
'constructor',
'hasOwnProperty',
'isPrototypeOf',
'propertyIsEnumerable',
'toLocaleString',
'toString',
'valueOf',
];
},
6610: function (t, e, r) {
var n = r(8844),
o = Error,
i = n(''.replace),
a = String(new o('zxcasd').stack),
u = /\n\s*at [^:]*:[^\n]*/,
c = u.test(a);
t.exports = function (t, e) {
if (c && 'string' == typeof t && !o.prepareStackTrace) for (; e--; ) t = i(t, u, '');
return t;
};
},
5411: function (t, e, r) {
var n = r(5773),
o = r(6610),
i = r(9599),
a = Error.captureStackTrace;
t.exports = function (t, e, r, u) {
i && (a ? a(t, e) : n(t, 'stack', o(r, u)));
};
},
9599: function (t, e, r) {
var n = r(3689),
o = r(5684);
t.exports = !n(function () {
var t = new Error('a');
return !('stack' in t) || (Object.defineProperty(t, 'stack', o(1, 7)), 7 !== t.stack);
});
},
9989: function (t, e, r) {
var n = r(9037),
o = r(2474).f,
i = r(5773),
a = r(1880),
u = r(5014),
c = r(8758),
s = r(5266);
t.exports = function (t, e) {
var r,
f,
l,
p,
h,
v = t.target,
d = t.global,
y = t.stat;
if ((r = d ? n : y ? n[v] || u(v, {}) : (n[v] || {}).prototype))
for (f in e) {
if (
((p = e[f]),
(l = t.dontCallGetSet ? (h = o(r, f)) && h.value : r[f]),
!s(d ? f : v + (y ? '.' : '#') + f, t.forced) && void 0 !== l)
) {
if (typeof p == typeof l) continue;
c(p, l);
}
(t.sham || (l && l.sham)) && i(p, 'sham', !0), a(r, f, p, t);
}
};
},
3689: function (t) {
t.exports = function (t) {
try {
return !!t();
} catch (t) {
return !0;
}
};
},
8678: function (t, e, r) {
r(4043);
var n = r(6576),
o = r(1880),
i = r(6308),
a = r(3689),
u = r(4201),
c = r(5773),
s = u('species'),
f = RegExp.prototype;
t.exports = function (t, e, r, l) {
var p = u(t),
h = !a(function () {
var e = {};
return (
(e[p] = function () {
return 7;
}),
7 !== ''[t](e)
);
}),
v =
h &&
!a(function () {
var e = !1,
r = /a/;
return (
'split' === t &&
(((r = {}).constructor = {}),
(r.constructor[s] = function () {
return r;
}),
(r.flags = ''),
(r[p] = /./[p])),
(r.exec = function () {
return (e = !0), null;
}),
r[p](''),
!e
);
});
if (!h || !v || r) {
var d = n(/./[p]),
y = e(p, ''[t], function (t, e, r, o, a) {
var u = n(t),
c = e.exec;
return c === i || c === f.exec
? h && !a
? {done: !0, value: d(e, r, o)}
: {done: !0, value: u(r, e, o)}
: {done: !1};
});
o(String.prototype, t, y[0]), o(f, p, y[1]);
}
l && c(f[p], 'sham', !0);
};
},
1594: function (t, e, r) {
var n = r(3689);
t.exports = !n(function () {
return Object.isExtensible(Object.preventExtensions({}));
});
},
1735: function (t, e, r) {
var n = r(7215),
o = Function.prototype,
i = o.apply,
a = o.call;
t.exports =
('object' == typeof Reflect && Reflect.apply) ||
(n
? a.bind(i)
: function () {
return a.apply(i, arguments);
});
},
4071: function (t, e, r) {
var n = r(6576),
o = r(509),
i = r(7215),
a = n(n.bind);
t.exports = function (t, e) {
return (
o(t),
void 0 === e
? t
: i
? a(t, e)
: function () {
return t.apply(e, arguments);
}
);
};
},
7215: function (t, e, r) {
var n = r(3689);
t.exports = !n(function () {
var t = function () {}.bind();
return 'function' != typeof t || t.hasOwnProperty('prototype');
});
},
6761: function (t, e, r) {
var n = r(8844),
o = r(509),
i = r(8999),
a = r(6812),
u = r(6004),
c = r(

2024年1月3日 (三) 02:42的版本

"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (this && this.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
(function () { return __awaiter(void 0, void 0, void 0, function () {
    var sleep, i;
    return __generator(this, function (_a) {
        switch (_a.label) {
            case 0: return [4, $.ajax({
                    url: "https://wikiplus-app.com/Main.js?ver=20210321",
                    dataType: "script",
                    crossDomain: true,
                    cache: true
                })];
            case 1:
                _a.sent();
                console.info("Wikiplus load done.");
                sleep = function (ms) { return new Promise(function (res) { return setTimeout(res, ms); }); };
                i = 0;
                _a.label = 2;
            case 2:
                if (!(i < Number.MAX_SAFE_INTEGER)) return [3, 7];
                return [4, sleep(100)];
            case 3:
                _a.sent();
                if (!window.Wikiplus) {
                    if (i++ % 20 === 0) {
                        console.info("Wikiplus init running.");
                    }
                    return [3, 6];
                }
                if (!(window.Wikiplus.kotori && window.Wikiplus.kotori.inited)) return [3, 5];
                console.info("Wikiplus init done.");
                return [4, sleep(1000)];
            case 4:
                _a.sent();
                if (!document.querySelector("#Wikiplus-Edit-TopBtn")) {
                    console.info("Wikiplus init incomplete.");
                    window.Wikiplus.initQuickEdit();
                    if (!window.Wikiplus.getSetting("disableEditEveryWhere")) {
                        window.Wikiplus.editEveryWhere();
                    }
                }
                return [2];
            case 5:
                if (window.Wikiplus.kotori) {
                    if (i++ % 20 === 0) {
                        console.info("Wikiplus init still.");
                    }
                    return [3, 6];
                }
                if (window.Wikiplus.inValidNameSpaces.includes(mw.config.get("wgNamespaceNumber")) || !mw.config.get("wgIsArticle") || mw.config.get("wgAction") !== "view" || !mw.config.get("wgIsProbablyEditable") || !mw.config.get("wgUserGroups").includes("autoconfirmed") && !mw.config.get("wgUserGroups").includes("confirmed")) {
                    console.info("Wikiplus init exit.");
                    return [2];
                }
                console.info("Wikiplus init await.");
                _a.label = 6;
            case 6:
                i++;
                return [3, 2];
            case 7: return [2];
        }
    });
}); })();