- 拆分:tools/split.js 重切新版(1347 模块 / 126 代码模块),主文件 main.7cfa4058.js,语法验证通过 - 修复 split.js 内自动刷新拦截的 \\n 转义:它在模板字符串里,必须写 \\\\n,否则生成的主文件字符串断行、语法报错 - 符号映射:map_symbols.js 对齐旧→新(qyr→ryz、w187→c18o、z4t→jtn、vgt→rkt、Bmt→Ezt、Qjt→Fjt、txt→Gjt、k15b→s15n、azi_1→vzr_1…) - 移植 7 处针对性修改:炮塔摆头不回弹(vSt.ryz)、摆头不过冲(case 0)、精准跟手(case 1/2)、悬浮底盘 raw 两级(Ezt.n36 + Zmt 实际速度)、电磁炮蓄力时长(jtn.c18o) - 重新打包 unpacked.pack.json(127 文件 / 版本 96833eb2b0cf8909)
366 lines
12 KiB
JavaScript
366 lines
12 KiB
JavaScript
// ============================================================
|
|
// Module ID: 1901
|
|
// ============================================================
|
|
;(window.__modules__ = window.__modules__ || {})[1901] = (t, n, i) => {
|
|
"use strict";
|
|
(i.r(n), i.d(n, { ReCAPTCHA: () => h, default: () => k }));
|
|
var r = i(7552),
|
|
e = i(15152),
|
|
u = i.n(e),
|
|
s = [
|
|
"sitekey",
|
|
"onChange",
|
|
"theme",
|
|
"type",
|
|
"tabindex",
|
|
"onExpired",
|
|
"onErrored",
|
|
"size",
|
|
"stoken",
|
|
"grecaptcha",
|
|
"badge",
|
|
"hl",
|
|
"isolated",
|
|
];
|
|
function o() {
|
|
return (
|
|
(o = Object.assign
|
|
? Object.assign.bind()
|
|
: function (t) {
|
|
for (var n = 1; n < arguments.length; n++) {
|
|
var i = arguments[n];
|
|
for (var r in i) Object.prototype.hasOwnProperty.call(i, r) && (t[r] = i[r]);
|
|
}
|
|
return t;
|
|
}),
|
|
o.apply(this, arguments)
|
|
);
|
|
}
|
|
function _(t) {
|
|
if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
return t;
|
|
}
|
|
function a(t, n) {
|
|
return (
|
|
(a = Object.setPrototypeOf
|
|
? Object.setPrototypeOf.bind()
|
|
: function (t, n) {
|
|
return ((t.__proto__ = n), t);
|
|
}),
|
|
a(t, n)
|
|
);
|
|
}
|
|
var h = (function (t) {
|
|
var n, i;
|
|
function e() {
|
|
var n;
|
|
return (
|
|
((n = t.call(this) || this).handleExpired = n.handleExpired.bind(_(n))),
|
|
(n.handleErrored = n.handleErrored.bind(_(n))),
|
|
(n.handleChange = n.handleChange.bind(_(n))),
|
|
(n.handleRecaptchaRef = n.handleRecaptchaRef.bind(_(n))),
|
|
n
|
|
);
|
|
}
|
|
((i = t), ((n = e).prototype = Object.create(i.prototype)), (n.prototype.constructor = n), a(n, i));
|
|
var u = e.prototype;
|
|
return (
|
|
(u.getCaptchaFunction = function (t) {
|
|
return this.props.grecaptcha
|
|
? this.props.grecaptcha.enterprise
|
|
? this.props.grecaptcha.enterprise[t]
|
|
: this.props.grecaptcha[t]
|
|
: null;
|
|
}),
|
|
(u.getValue = function () {
|
|
var t = this.getCaptchaFunction("getResponse");
|
|
return t && void 0 !== this._widgetId ? t(this._widgetId) : null;
|
|
}),
|
|
(u.getWidgetId = function () {
|
|
return this.props.grecaptcha && void 0 !== this._widgetId ? this._widgetId : null;
|
|
}),
|
|
(u.execute = function () {
|
|
var t = this.getCaptchaFunction("execute");
|
|
if (t && void 0 !== this._widgetId) return t(this._widgetId);
|
|
this._executeRequested = !0;
|
|
}),
|
|
(u.executeAsync = function () {
|
|
var t = this;
|
|
return new Promise(function (n, i) {
|
|
((t.executionResolve = n), (t.executionReject = i), t.execute());
|
|
});
|
|
}),
|
|
(u.reset = function () {
|
|
var t = this.getCaptchaFunction("reset");
|
|
t && void 0 !== this._widgetId && t(this._widgetId);
|
|
}),
|
|
(u.forceReset = function () {
|
|
var t = this.getCaptchaFunction("reset");
|
|
t && t();
|
|
}),
|
|
(u.handleExpired = function () {
|
|
this.props.onExpired ? this.props.onExpired() : this.handleChange(null);
|
|
}),
|
|
(u.handleErrored = function () {
|
|
(this.props.onErrored && this.props.onErrored(),
|
|
this.executionReject &&
|
|
(this.executionReject(), delete this.executionResolve, delete this.executionReject));
|
|
}),
|
|
(u.handleChange = function (t) {
|
|
(this.props.onChange && this.props.onChange(t),
|
|
this.executionResolve &&
|
|
(this.executionResolve(t), delete this.executionReject, delete this.executionResolve));
|
|
}),
|
|
(u.explicitRender = function () {
|
|
var t = this.getCaptchaFunction("render");
|
|
if (t && void 0 === this._widgetId) {
|
|
var n = document.createElement("div");
|
|
((this._widgetId = t(n, {
|
|
sitekey: this.props.sitekey,
|
|
callback: this.handleChange,
|
|
theme: this.props.theme,
|
|
type: this.props.type,
|
|
tabindex: this.props.tabindex,
|
|
"expired-callback": this.handleExpired,
|
|
"error-callback": this.handleErrored,
|
|
size: this.props.size,
|
|
stoken: this.props.stoken,
|
|
hl: this.props.hl,
|
|
badge: this.props.badge,
|
|
isolated: this.props.isolated,
|
|
})),
|
|
this.captcha.appendChild(n));
|
|
}
|
|
this._executeRequested &&
|
|
this.props.grecaptcha &&
|
|
void 0 !== this._widgetId &&
|
|
((this._executeRequested = !1), this.execute());
|
|
}),
|
|
(u.componentDidMount = function () {
|
|
this.explicitRender();
|
|
}),
|
|
(u.componentDidUpdate = function () {
|
|
this.explicitRender();
|
|
}),
|
|
(u.handleRecaptchaRef = function (t) {
|
|
this.captcha = t;
|
|
}),
|
|
(u.render = function () {
|
|
var t = this.props,
|
|
n =
|
|
(t.sitekey,
|
|
t.onChange,
|
|
t.theme,
|
|
t.type,
|
|
t.tabindex,
|
|
t.onExpired,
|
|
t.onErrored,
|
|
t.size,
|
|
t.stoken,
|
|
t.grecaptcha,
|
|
t.badge,
|
|
t.hl,
|
|
t.isolated,
|
|
(function (t, n) {
|
|
if (null == t) return {};
|
|
var i,
|
|
r,
|
|
e = {},
|
|
u = Object.keys(t);
|
|
for (r = 0; r < u.length; r++) ((i = u[r]), n.indexOf(i) >= 0 || (e[i] = t[i]));
|
|
return e;
|
|
})(t, s));
|
|
return r.createElement("div", o({}, n, { ref: this.handleRecaptchaRef }));
|
|
}),
|
|
e
|
|
);
|
|
})(r.Component);
|
|
((h.displayName = "ReCAPTCHA"),
|
|
(h.propTypes = {
|
|
sitekey: u().string.isRequired,
|
|
onChange: u().func,
|
|
grecaptcha: u().object,
|
|
theme: u().oneOf(["dark", "light"]),
|
|
type: u().oneOf(["image", "audio"]),
|
|
tabindex: u().number,
|
|
onExpired: u().func,
|
|
onErrored: u().func,
|
|
size: u().oneOf(["compact", "normal", "invisible"]),
|
|
stoken: u().string,
|
|
hl: u().string,
|
|
badge: u().oneOf(["bottomright", "bottomleft", "inline"]),
|
|
isolated: u().bool,
|
|
}),
|
|
(h.defaultProps = {
|
|
onChange: function () {},
|
|
theme: "light",
|
|
type: "image",
|
|
tabindex: 0,
|
|
size: "normal",
|
|
badge: "bottomright",
|
|
}));
|
|
var c = i(806),
|
|
l = i.n(c);
|
|
function f() {
|
|
return (
|
|
(f =
|
|
Object.assign ||
|
|
function (t) {
|
|
for (var n = 1; n < arguments.length; n++) {
|
|
var i = arguments[n];
|
|
for (var r in i) Object.prototype.hasOwnProperty.call(i, r) && (t[r] = i[r]);
|
|
}
|
|
return t;
|
|
}),
|
|
f.apply(this, arguments)
|
|
);
|
|
}
|
|
var v = {},
|
|
w = 0,
|
|
p = "onloadcallback";
|
|
function d() {
|
|
return ("undefined" != typeof window && window.recaptchaOptions) || {};
|
|
}
|
|
const g = ((m = function () {
|
|
var t = d(),
|
|
n = t.useRecaptchaNet ? "recaptcha.net" : "www.google.com";
|
|
return t.enterprise
|
|
? "https://" + n + "/recaptcha/enterprise.js?onload=" + p + "&render=explicit"
|
|
: "https://" + n + "/recaptcha/api.js?onload=" + p + "&render=explicit";
|
|
}),
|
|
(y =
|
|
(y = { callbackName: p, globalName: "grecaptcha", attributes: d().nonce ? { nonce: d().nonce } : {} }) ||
|
|
{}),
|
|
function (t) {
|
|
var n = t.displayName || t.name || "Component",
|
|
i = (function (n) {
|
|
var i, e;
|
|
function u(t, i) {
|
|
var r;
|
|
return (((r = n.call(this, t, i) || this).state = {}), (r.__scriptURL = ""), r);
|
|
}
|
|
((e = n),
|
|
((i = u).prototype = Object.create(e.prototype)),
|
|
(i.prototype.constructor = i),
|
|
(i.__proto__ = e));
|
|
var s = u.prototype;
|
|
return (
|
|
(s.asyncScriptLoaderGetScriptLoaderID = function () {
|
|
return (
|
|
this.__scriptLoaderID || (this.__scriptLoaderID = "async-script-loader-" + w++),
|
|
this.__scriptLoaderID
|
|
);
|
|
}),
|
|
(s.setupScriptURL = function () {
|
|
return ((this.__scriptURL = m()), this.__scriptURL);
|
|
}),
|
|
(s.asyncScriptLoaderHandleLoad = function (t) {
|
|
var n = this;
|
|
this.setState(t, function () {
|
|
return n.props.asyncScriptOnLoad && n.props.asyncScriptOnLoad(n.state);
|
|
});
|
|
}),
|
|
(s.asyncScriptLoaderTriggerOnScriptLoaded = function () {
|
|
var t = v[this.__scriptURL];
|
|
if (!t || !t.loaded) throw new Error("Script is not loaded.");
|
|
for (var n in t.observers) t.observers[n](t);
|
|
delete window[y.callbackName];
|
|
}),
|
|
(s.componentDidMount = function () {
|
|
var t = this,
|
|
n = this.setupScriptURL(),
|
|
i = this.asyncScriptLoaderGetScriptLoaderID(),
|
|
r = y,
|
|
e = r.globalName,
|
|
u = r.callbackName,
|
|
s = r.scriptId;
|
|
if ((e && void 0 !== window[e] && (v[n] = { loaded: !0, observers: {} }), v[n])) {
|
|
var o = v[n];
|
|
return o && (o.loaded || o.errored)
|
|
? void this.asyncScriptLoaderHandleLoad(o)
|
|
: void (o.observers[i] = function (n) {
|
|
return t.asyncScriptLoaderHandleLoad(n);
|
|
});
|
|
}
|
|
var _ = {};
|
|
((_[i] = function (n) {
|
|
return t.asyncScriptLoaderHandleLoad(n);
|
|
}),
|
|
(v[n] = { loaded: !1, observers: _ }));
|
|
var a = document.createElement("script");
|
|
for (var h in ((a.src = n), (a.async = !0), y.attributes)) a.setAttribute(h, y.attributes[h]);
|
|
s && (a.id = s);
|
|
var c = function (t) {
|
|
if (v[n]) {
|
|
var i = v[n].observers;
|
|
for (var r in i) t(i[r]) && delete i[r];
|
|
}
|
|
};
|
|
(u &&
|
|
"undefined" != typeof window &&
|
|
(window[u] = function () {
|
|
return t.asyncScriptLoaderTriggerOnScriptLoaded();
|
|
}),
|
|
(a.onload = function () {
|
|
var t = v[n];
|
|
t &&
|
|
((t.loaded = !0),
|
|
c(function (n) {
|
|
return !u && (n(t), !0);
|
|
}));
|
|
}),
|
|
(a.onerror = function () {
|
|
var t = v[n];
|
|
t &&
|
|
((t.errored = !0),
|
|
c(function (n) {
|
|
return (n(t), !0);
|
|
}));
|
|
}),
|
|
document.body.appendChild(a));
|
|
}),
|
|
(s.componentWillUnmount = function () {
|
|
var t = this.__scriptURL;
|
|
if (!0 === y.removeOnUnmount)
|
|
for (var n = document.getElementsByTagName("script"), i = 0; i < n.length; i += 1)
|
|
n[i].src.indexOf(t) > -1 && n[i].parentNode && n[i].parentNode.removeChild(n[i]);
|
|
var r = v[t];
|
|
r &&
|
|
(delete r.observers[this.asyncScriptLoaderGetScriptLoaderID()],
|
|
!0 === y.removeOnUnmount && delete v[t]);
|
|
}),
|
|
(s.render = function () {
|
|
var n = y.globalName,
|
|
i = this.props,
|
|
e = (i.asyncScriptOnLoad, i.forwardedRef),
|
|
u = (function (t, n) {
|
|
if (null == t) return {};
|
|
var i,
|
|
r,
|
|
e = {},
|
|
u = Object.keys(t);
|
|
for (r = 0; r < u.length; r++) ((i = u[r]), n.indexOf(i) >= 0 || (e[i] = t[i]));
|
|
return e;
|
|
})(i, ["asyncScriptOnLoad", "forwardedRef"]);
|
|
return (
|
|
n && "undefined" != typeof window && (u[n] = void 0 !== window[n] ? window[n] : void 0),
|
|
(u.ref = e),
|
|
(0, r.createElement)(t, u)
|
|
);
|
|
}),
|
|
u
|
|
);
|
|
})(r.Component),
|
|
e = (0, r.forwardRef)(function (t, n) {
|
|
return (0, r.createElement)(i, f({}, t, { forwardedRef: n }));
|
|
});
|
|
return (
|
|
(e.displayName = "AsyncScriptLoader(" + n + ")"),
|
|
(e.propTypes = { asyncScriptOnLoad: u().func }),
|
|
l()(e, t)
|
|
);
|
|
})(h);
|
|
var m, y;
|
|
const k = g;
|
|
};
|