/*! Extracted from https://cdn.staticfile.org/twikoo/1.6.44/twikoo.all.min.js */
/*! For license information please see twikoo.all.min.js.LICENSE.txt */
var e, t;
((e = this),
(t = function () {
return (function () {
var e = {
6885: function (e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", { value: !0 });
var r = n(3692);
Object.keys(r).forEach(function (e) {
"default" !== e &&
"__esModule" !== e &&
((e in t && t[e] === r[e]) ||
Object.defineProperty(t, e, {
enumerable: !0,
get: function () {
return r[e];
},
}));
});
var i = n(2912);
Object.keys(i).forEach(function (e) {
"default" !== e &&
"__esModule" !== e &&
((e in t && t[e] === i[e]) ||
Object.defineProperty(t, e, {
enumerable: !0,
get: function () {
return i[e];
},
}));
});
},
3692: function (e, t) {
"use strict";
var n;
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.StorageType =
t.AbstractStorage =
t.AbstractSDKRequest =
void 0),
(function (e) {
((e.local = "local"),
(e.none = "none"),
(e.session = "session"));
})(n || (t.StorageType = n = {})),
(t.AbstractSDKRequest = function () {}),
(t.AbstractStorage = function () {}));
},
2912: function (e, t) {
"use strict";
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.formatUrl = function (e, t, n) {
void 0 === n && (n = {});
var r = /\?/.test(t),
i = "";
for (var o in n)
("" === i ? !r && (t += "?") : (i += "&"),
(i += o + "=" + encodeURIComponent(n[o])));
return /^http(s)?\:\/\//.test((t += i)) ? t : "" + e + t;
}));
},
3052: function (e, t, n) {
"use strict";
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.LOGINTYPE = t.DATA_VERSION = void 0),
(t.getEndPoint = function () {
return { BASE_URL: l, PROTOCOL: c };
}),
(t.getSdkName = function () {
return s;
}),
(t.getSdkVersion = function () {
return a;
}),
(t.setEndPoint = d),
(t.setRegionLevelEndpoint = function (e, t, n) {
d(
t
? "//" + e + "." + t + ".tcb-api.tencentcloudapi.com/web"
: "//" + e + ".ap-shanghai.tcb-api.tencentcloudapi.com/web",
n,
);
}),
(t.setSdkName = function (e) {
((s = e), i(e));
}),
(t.setSdkVersion = function (e) {
a = e;
}));
var r = n(2566),
i = r.constants.setSdkName,
o = r.constants.setProtocol,
a = "",
s = "@cloudbase/js-sdk";
t.DATA_VERSION = "2020-01-10";
var u,
c =
"undefined" != typeof location && "http:" === location.protocol
? "http:"
: "https:",
l = "//tcb-api.tencentcloudapi.com/web";
function d(e, t) {
((l = e), t && ((c = t), o(t)));
}
!(function (e) {
((e.ANONYMOUS = "ANONYMOUS"),
(e.WECHAT = "WECHAT"),
(e.CUSTOM = "CUSTOM"),
(e.NULL = "NULL"));
})(u || (t.LOGINTYPE = u = {}));
},
7696: function (e, t) {
"use strict";
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.EVENTS = void 0),
(t.EVENTS = {
LOGIN_STATE_CHANGED: "loginStateChanged",
LOGIN_STATE_EXPIRED: "loginStateExpire",
LOGIN_TYPE_CHANGED: "loginTypeChanged",
ANONYMOUS_CONVERTED: "anonymousConverted",
ACCESS_TOKEN_REFRESHD: "refreshAccessToken",
}));
},
4283: function (e, t, n) {
"use strict";
var r = n(477);
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t["default"] = t.cloudbase = void 0));
var i = r(n(9367)),
o = n(2566),
a = r(n(2473)),
s = n(3219),
u = n(4319),
c = n(1706),
l = n(6153),
d = n(3052),
f = function () {
return (
(f =
Object.assign ||
function (e) {
for (var t, n = 1, r = arguments.length; n < r; n++)
for (var i in (t = arguments[n]))
Object.prototype.hasOwnProperty.call(t, i) &&
(e[i] = t[i]);
return e;
}),
f.apply(this, arguments)
);
},
p = function (e, t, n, r) {
var o,
a = arguments.length,
s =
a < 3
? t
: null === r
? (r = Object.getOwnPropertyDescriptor(t, n))
: r;
if (
"object" ===
("undefined" == typeof Reflect
? "undefined"
: (0, i["default"])(Reflect)) &&
"function" == typeof Reflect.decorate
)
s = Reflect.decorate(e, t, n, r);
else
for (var u = e.length - 1; u >= 0; u--)
(o = e[u]) &&
(s = (a < 3 ? o(s) : a > 3 ? o(t, n, s) : o(t, n)) || s);
return (a > 3 && s && Object.defineProperty(t, n, s), s);
},
h = function (e, t) {
if (
"object" ===
("undefined" == typeof Reflect
? "undefined"
: (0, i["default"])(Reflect)) &&
"function" == typeof Reflect.metadata
)
return Reflect.metadata(e, t);
},
m = function (e, t, n, r) {
return new (n || (n = Promise))(function (i, o) {
function a(e) {
try {
u(r.next(e));
} catch (t) {
o(t);
}
}
function s(e) {
try {
u(r["throw"](e));
} catch (t) {
o(t);
}
}
function u(e) {
var t;
e.done
? i(e.value)
: ((t = e.value),
t instanceof n
? t
: new n(function (e) {
e(t);
})).then(a, s);
}
u((r = r.apply(e, t || [])).next());
});
},
g = function (e, t) {
var n,
r,
i,
o,
a = {
label: 0,
sent: function () {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: [],
};
return (
(o = { next: s(0), throw: s(1), return: s(2) }),
"function" == typeof Symbol &&
(o[Symbol.iterator] = function () {
return this;
}),
o
);
function s(o) {
return function (s) {
return (function (o) {
if (n)
throw new TypeError("Generator is already executing.");
for (; a; )
try {
if (
((n = 1),
r &&
(i =
2 & o[0]
? r["return"]
: o[0]
? r["throw"] ||
((i = r["return"]) && i.call(r), 0)
: r.next) &&
!(i = i.call(r, o[1])).done)
)
return i;
switch (
((r = 0), i && (o = [2 & o[0], i.value]), o[0])
) {
case 0:
case 1:
i = o;
break;
case 4:
return (a.label++, { value: o[1], done: !1 });
case 5:
(a.label++, (r = o[1]), (o = [0]));
continue;
case 7:
((o = a.ops.pop()), a.trys.pop());
continue;
default:
if (
!(
(i =
(i = a.trys).length > 0 &&
i[i.length - 1]) ||
(6 !== o[0] && 2 !== o[0])
)
) {
a = 0;
continue;
}
if (
3 === o[0] &&
(!i || (o[1] > i[0] && o[1] < i[3]))
) {
a.label = o[1];
break;
}
if (6 === o[0] && a.label < i[1]) {
((a.label = i[1]), (i = o));
break;
}
if (i && a.label < i[2]) {
((a.label = i[2]), a.ops.push(o));
break;
}
(i[2] && a.ops.pop(), a.trys.pop());
continue;
}
o = t.call(e, a);
} catch (s) {
((o = [6, s]), (r = 0));
} finally {
n = i = 0;
}
if (5 & o[0]) throw o[1];
return { value: o[0] ? o[1] : void 0, done: !0 };
})([o, s]);
};
}
},
v = o.adapters.useAdapters,
_ = o.adapters.useDefaultAdapter,
y = o.adapters.RUNTIME,
b = o.constants.ERRORS,
k = o.constants.COMMUNITY_SITE_URL,
w = o.utils.printWarn,
E = o.helpers.catchErrorsDecorator,
A = { timeout: 15e3, persistence: "local" },
C = 6e5,
x = {},
I = (function () {
function e(e) {
((this._config = e || this._config),
(this.authInstance = null));
}
return (
Object.defineProperty(e.prototype, "config", {
get: function () {
return this._config;
},
enumerable: !1,
configurable: !0,
}),
Object.defineProperty(e.prototype, "platform", {
get: function () {
return u.Platform;
},
enumerable: !1,
configurable: !0,
}),
Object.defineProperty(e.prototype, "cache", {
get: function () {
return (0, c.getCacheByEnvId)(this._config.env);
},
enumerable: !1,
configurable: !0,
}),
Object.defineProperty(e.prototype, "localCache", {
get: function () {
return (0, c.getLocalCache)(this._config.env);
},
enumerable: !1,
configurable: !0,
}),
Object.defineProperty(e.prototype, "request", {
get: function () {
return (0, l.getRequestByEnvId)(this._config.env);
},
enumerable: !1,
configurable: !0,
}),
(e.prototype.init = function (t) {
if (!t.env)
throw new Error(
JSON.stringify({
code: b.INVALID_PARAMS,
msg: "env must not be specified",
}),
);
if (
(u.Platform.adapter || this._useDefaultAdapter(),
(this.requestClient = new u.Platform.adapter.reqClass({
timeout: t.timeout || 5e3,
timeoutMsg:
"[" +
(0, d.getSdkName)() +
"][REQUEST TIMEOUT] request had been abort since didn't finished within" +
t.timeout / 1e3 +
"s",
})),
u.Platform.runtime !== y.WEB)
) {
if (!t.appSecret)
throw new Error(
JSON.stringify({
code: b.INVALID_PARAMS,
msg: "invalid appSecret",
}),
);
var n = u.Platform.adapter.getAppSign
? u.Platform.adapter.getAppSign()
: "";
if (t.appSign && n && t.appSign !== n)
throw new Error(
JSON.stringify({
code: b.INVALID_PARAMS,
msg: "invalid appSign",
}),
);
if ((n && (t.appSign = n), !t.appSign))
throw new Error(
JSON.stringify({
code: b.INVALID_PARAMS,
msg: "invalid appSign",
}),
);
}
((this._config = f(f({}, A), t)),
(this._config.timeout = this._formatTimeout(
this._config.timeout,
)));
var r = this._config,
i = r.env,
o = r.persistence,
a = r.debug,
s = r.timeout,
p = r.appSecret,
h = r.appSign;
((0, c.initCache)({
env: i,
persistence: o,
debug: a,
platformInfo: this.platform,
}),
(0, l.initRequest)({
env: i,
region: t.region || "",
timeout: s,
appSecret: p,
appSign: h,
}),
t.region &&
(0, d.setRegionLevelEndpoint)(i, t.region || ""));
var m = new e(this._config);
return ((m.requestClient = this.requestClient), m);
}),
(e.prototype.updateConfig = function (e) {
var t = e.persistence,
n = e.debug;
((this._config.persistence = t),
(this._config.debug = n),
(0, c.initCache)({
env: this._config.env,
persistence: t,
debug: n,
platformInfo: this.platform,
}));
}),
(e.prototype.registerExtension = function (e) {
x[e.name] = e;
}),
(e.prototype.invokeExtension = function (e, t) {
return m(this, void 0, void 0, function () {
var n;
return g(this, function (r) {
switch (r.label) {
case 0:
if (!(n = x[e]))
throw new Error(
JSON.stringify({
code: b.INVALID_PARAMS,
msg:
"extension:" +
e +
" must be registered before invoke",
}),
);
return [4, n.invoke(t, this)];
case 1:
return [2, r.sent()];
}
});
});
}),
(e.prototype.useAdapters = function (e) {
var t = v(e) || {},
n = t.adapter,
r = t.runtime;
(n && (u.Platform.adapter = n),
r && (u.Platform.runtime = r));
}),
(e.prototype.registerHook = function (t) {
(0, s.registerHook)(e, t);
}),
(e.prototype.registerComponent = function (t) {
(0, s.registerComponent)(e, t);
}),
(e.prototype.registerVersion = function (e) {
(0, d.setSdkVersion)(e);
}),
(e.prototype.registerSdkName = function (e) {
(0, d.setSdkName)(e);
}),
(e.prototype.registerEndPoint = function (e, t) {
(0, d.setEndPoint)(e, t);
}),
(e.prototype._useDefaultAdapter = function () {
var e = _(),
t = e.adapter,
n = e.runtime;
((u.Platform.adapter = t), (u.Platform.runtime = n));
}),
(e.prototype._formatTimeout = function (e) {
switch (!0) {
case e > C:
return (
w(
b.INVALID_PARAMS,
"timeout is greater than maximum value[10min]",
),
C
);
case e < 100:
return (
w(
b.INVALID_PARAMS,
"timeout is less than maximum value[100ms]",
),
100
);
default:
return e;
}
}),
p(
[
E({
mode: "sync",
title: "Cloudbase 初始化失败",
messages: [
"请确认以下各项:",
" 1 - 调用 cloudbase.init() 的语法或参数是否正确",
" 2 - 如果是非浏览器环境,是否配置了安全应用来源(https://docs.cloudbase.net/api-reference/webv2/adapter.html#jie-ru-liu-cheng)",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
k,
],
}),
h("design:type", Function),
h("design:paramtypes", [Object]),
h("design:returntype", e),
],
e.prototype,
"init",
null,
),
p(
[
E({
title: "调用扩展能力失败",
messages: [
"请确认以下各项:",
" 1 - 调用 invokeExtension() 的语法或参数是否正确",
" 2 - 被调用的扩展能力是否已经安装并通过 registerExtension() 注册",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
k,
],
}),
h("design:type", Function),
h("design:paramtypes", [String, Object]),
h("design:returntype", Promise),
],
e.prototype,
"invokeExtension",
null,
),
e
);
})(),
D = (t.cloudbase = new I());
(D.useAdapters(a["default"]), (t["default"] = D));
},
4319: function (e, t) {
"use strict";
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.Platform = void 0),
(t.Platform = {}));
},
1706: function (e, t, n) {
"use strict";
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.getCacheByEnvId = function (e) {
return f[e];
}),
(t.getLocalCache = function (e) {
return p[e];
}),
(t.initCache = function (e) {
var t = e.env,
n = e.persistence,
r = e.platformInfo,
h = {
accessTokenKey: o + "_" + t,
accessTokenExpireKey: a + "_" + t,
refreshTokenKey: s + "_" + t,
anonymousUuidKey: u + "_" + t,
loginTypeKey: c + "_" + t,
userInfoKey: l + "_" + t,
};
(f[t]
? f[t].updatePersistence(n)
: (f[t] = new d(
i(i({}, e), {
keys: h,
platformInfo: r,
alwaysLocalKeys: ["anonymousUuidKey"],
}),
)),
(p[t] =
p[t] ||
new d(
i(i({}, e), {
keys: h,
platformInfo: r,
persistence: "local",
}),
)));
}));
var r = n(2566),
i = function () {
return (
(i =
Object.assign ||
function (e) {
for (var t, n = 1, r = arguments.length; n < r; n++)
for (var i in (t = arguments[n]))
Object.prototype.hasOwnProperty.call(t, i) &&
(e[i] = t[i]);
return e;
}),
i.apply(this, arguments)
);
},
o = "access_token",
a = "access_token_expire",
s = "refresh_token",
u = "anonymous_uuid",
c = "login_type",
l = "user_info",
d = r.cache.CloudbaseCache,
f = {},
p = {};
},
3219: function (e, t, n) {
"use strict";
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.registerComponent = function (e, t) {
var n = t.name,
r = t.namespace,
u = t.entity,
c = t.injectEvents,
l = t.IIFE,
d = void 0 !== l && l;
if (a[n] || (r && e[r]))
throw new Error(
JSON.stringify({
code: o.INVALID_OPERATION,
msg: "Duplicate component " + n,
}),
);
if (d) {
if (!u || "function" != typeof u)
throw new Error(
JSON.stringify({
code: o.INVALID_PARAMS,
msg: "IIFE component's entity must be a function",
}),
);
u.call(e);
}
if (
((a[n] = t), r ? (e.prototype[r] = u) : s(e.prototype, u), c)
) {
var f = c.bus,
p = c.events;
if (!f || !p || 0 === p.length) return;
var h = e.prototype.fire || function () {};
(e.prototype.events || (e.prototype.events = {}),
(e.prototype.events || {})[n]
? (e.prototype.events[n].events = i(
e.prototype.events[n].events,
p,
))
: (e.prototype.events[n] = { bus: f, events: p }),
(e.prototype.fire = function (e, t) {
for (var n in (h(e, t), this.events)) {
var r = this.events[n],
i = r.bus;
if (r.events.includes(e)) {
i.fire(e, t);
break;
}
}
}));
}
}),
(t.registerHook = function (e, t) {
var n = t.entity,
r = t.target;
if (!e.prototype.hasOwnProperty(r))
throw new Error(
JSON.stringify({
code: o.INVALID_OPERATION,
msg: "target:" + r + " is not exist",
}),
);
var a = e.prototype[r];
if ("function" != typeof a)
throw new Error(
JSON.stringify({
code: o.INVALID_OPERATION,
msg:
"target:" +
r +
" is not a function which is the only type supports hook",
}),
);
e.prototype[r] = function () {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
return (
n.call.apply(n, i([this], e)),
a.call.apply(a, i([this], e))
);
};
}));
var r = n(2566),
i = function () {
for (var e = 0, t = 0, n = arguments.length; t < n; t++)
e += arguments[t].length;
var r = Array(e),
i = 0;
for (t = 0; t < n; t++)
for (
var o = arguments[t], a = 0, s = o.length;
a < s;
a++, i++
)
r[i] = o[a];
return r;
},
o = r.constants.ERRORS,
a = {};
function s(e, t) {
if (!(t instanceof Object)) return t;
switch (t.constructor) {
case Date:
return new Date(t.getTime());
case Object:
e === undefined && (e = {});
break;
case Array:
e = [];
break;
default:
return t;
}
for (var n in t) t.hasOwnProperty(n) && (e[n] = s(e[n], t[n]));
return e;
}
},
6153: function (e, t, n) {
"use strict";
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.CloudbaseRequest = void 0),
(t.getRequestByEnvId = function (e) {
return w[e];
}),
(t.initRequest = function (e) {
w[e.env] = new k(c(c({}, e), { throw: !0 }));
}));
var r = n(3052),
i = n(2566),
o = n(4283),
a = n(1706),
s = n(7696),
u = n(4319),
c = function () {
return (
(c =
Object.assign ||
function (e) {
for (var t, n = 1, r = arguments.length; n < r; n++)
for (var i in (t = arguments[n]))
Object.prototype.hasOwnProperty.call(t, i) &&
(e[i] = t[i]);
return e;
}),
c.apply(this, arguments)
);
},
l = function (e, t, n, r) {
return new (n || (n = Promise))(function (i, o) {
function a(e) {
try {
u(r.next(e));
} catch (t) {
o(t);
}
}
function s(e) {
try {
u(r["throw"](e));
} catch (t) {
o(t);
}
}
function u(e) {
var t;
e.done
? i(e.value)
: ((t = e.value),
t instanceof n
? t
: new n(function (e) {
e(t);
})).then(a, s);
}
u((r = r.apply(e, t || [])).next());
});
},
d = function (e, t) {
var n,
r,
i,
o,
a = {
label: 0,
sent: function () {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: [],
};
return (
(o = { next: s(0), throw: s(1), return: s(2) }),
"function" == typeof Symbol &&
(o[Symbol.iterator] = function () {
return this;
}),
o
);
function s(o) {
return function (s) {
return (function (o) {
if (n)
throw new TypeError("Generator is already executing.");
for (; a; )
try {
if (
((n = 1),
r &&
(i =
2 & o[0]
? r["return"]
: o[0]
? r["throw"] ||
((i = r["return"]) && i.call(r), 0)
: r.next) &&
!(i = i.call(r, o[1])).done)
)
return i;
switch (
((r = 0), i && (o = [2 & o[0], i.value]), o[0])
) {
case 0:
case 1:
i = o;
break;
case 4:
return (a.label++, { value: o[1], done: !1 });
case 5:
(a.label++, (r = o[1]), (o = [0]));
continue;
case 7:
((o = a.ops.pop()), a.trys.pop());
continue;
default:
if (
!(
(i =
(i = a.trys).length > 0 &&
i[i.length - 1]) ||
(6 !== o[0] && 2 !== o[0])
)
) {
a = 0;
continue;
}
if (
3 === o[0] &&
(!i || (o[1] > i[0] && o[1] < i[3]))
) {
a.label = o[1];
break;
}
if (6 === o[0] && a.label < i[1]) {
((a.label = i[1]), (i = o));
break;
}
if (i && a.label < i[2]) {
((a.label = i[2]), a.ops.push(o));
break;
}
(i[2] && a.ops.pop(), a.trys.pop());
continue;
}
o = t.call(e, a);
} catch (s) {
((o = [6, s]), (r = 0));
} finally {
n = i = 0;
}
if (5 & o[0]) throw o[1];
return { value: o[0] ? o[1] : void 0, done: !0 };
})([o, s]);
};
}
},
f = i.constants.ERRORS,
p = i.utils.genSeqId,
h = i.utils.isFormData,
m = i.utils.formatUrl,
g = i.utils.createSign,
v = i.adapters.RUNTIME,
_ = [
"auth.getJwt",
"auth.logout",
"auth.signInWithTicket",
"auth.signInAnonymously",
"auth.signIn",
"auth.fetchAccessTokenWithRefreshToken",
"auth.signUpWithEmailAndPassword",
"auth.activateEndUserMail",
"auth.sendPasswordResetEmail",
"auth.resetPasswordWithToken",
"auth.isUsernameRegistered",
];
function y(e, t, n) {
var r = e[t];
e[t] = function (t) {
var i = {},
o = {};
n.forEach(function (n) {
var r = n.call(e, t),
a = r.data,
s = r.headers;
(Object.assign(i, a), Object.assign(o, s));
});
var a = t.data;
return (
a &&
(function () {
if (h(a)) for (var e in i) a.append(e, i[e]);
else t.data = c(c({}, a), i);
})(),
(t.headers = c(c({}, t.headers || {}), o)),
r.call(e, t)
);
};
}
function b() {
var e = p();
return {
data: { seqId: e },
headers: {
"X-SDK-Version":
"@cloudbase/js-sdk/" + (0, r.getSdkVersion)(),
"x-seqid": e,
},
};
}
var k = (t.CloudbaseRequest = (function () {
function e(e) {
((this._throwWhenRequestFail = !1),
(this.config = e),
(this._reqClass = new u.Platform.adapter.reqClass({
timeout: this.config.timeout,
timeoutMsg:
"[@cloudbase/js-sdk] 请求在" +
this.config.timeout / 1e3 +
"s内未完成,已中断",
restrictedMethods: ["post"],
})),
(this._throwWhenRequestFail = e["throw"] || !1),
(this._cache = (0, a.getCacheByEnvId)(this.config.env)),
(this._localCache = (0, a.getLocalCache)(this.config.env)),
y(this._reqClass, "post", [b]),
y(this._reqClass, "upload", [b]),
y(this._reqClass, "download", [b]));
}
return (
(e.prototype.post = function (e) {
return l(this, void 0, void 0, function () {
return d(this, function (t) {
switch (t.label) {
case 0:
return [4, this._reqClass.post(e)];
case 1:
return [2, t.sent()];
}
});
});
}),
(e.prototype.upload = function (e) {
return l(this, void 0, void 0, function () {
return d(this, function (t) {
switch (t.label) {
case 0:
return [4, this._reqClass.upload(e)];
case 1:
return [2, t.sent()];
}
});
});
}),
(e.prototype.download = function (e) {
return l(this, void 0, void 0, function () {
return d(this, function (t) {
switch (t.label) {
case 0:
return [4, this._reqClass.download(e)];
case 1:
return [2, t.sent()];
}
});
});
}),
(e.prototype.refreshAccessToken = function () {
return l(this, void 0, void 0, function () {
var e, t, n;
return d(this, function (r) {
switch (r.label) {
case 0:
(this._refreshAccessTokenPromise ||
(this._refreshAccessTokenPromise =
this._refreshAccessToken()),
(r.label = 1));
case 1:
return (
r.trys.push([1, 3, , 4]),
[4, this._refreshAccessTokenPromise]
);
case 2:
return ((e = r.sent()), [3, 4]);
case 3:
return ((n = r.sent()), (t = n), [3, 4]);
case 4:
if (
((this._refreshAccessTokenPromise = null),
(this._shouldRefreshAccessTokenHook = null),
t)
)
throw t;
return [2, e];
}
});
});
}),
(e.prototype.getAccessToken = function () {
return l(this, void 0, void 0, function () {
var e, t, n, r, i, o, a, s, u;
return d(this, function (c) {
switch (c.label) {
case 0:
return (
(e = this._cache.keys),
(t = e.accessTokenKey),
(n = e.accessTokenExpireKey),
(r = e.refreshTokenKey),
[4, this._cache.getStoreAsync(r)]
);
case 1:
if (!c.sent())
throw new Error(
JSON.stringify({
code: f.OPERATION_FAIL,
msg: "refresh token is not exist, your local data might be messed up, please retry after clear localStorage or sessionStorage",
}),
);
return [4, this._cache.getStoreAsync(t)];
case 2:
return (
(i = c.sent()),
(a = Number),
[4, this._cache.getStoreAsync(n)]
);
case 3:
return (
(o = a.apply(void 0, [c.sent()])),
(s = !0),
(u = this._shouldRefreshAccessTokenHook)
? [4, this._shouldRefreshAccessTokenHook(i, o)]
: [3, 5]
);
case 4:
((u = !c.sent()), (c.label = 5));
case 5:
return (
u && (s = !1),
(i && o && !(o < Date.now())) || !s
? [3, 7]
: [4, this.refreshAccessToken()]
);
case 6:
return [2, c.sent()];
case 7:
return [
2,
{ accessToken: i, accessTokenExpire: o },
];
}
});
});
}),
(e.prototype.request = function (e, t, n) {
return l(this, void 0, void 0, function () {
var i,
o,
a,
s,
l,
f,
p,
h,
y,
b,
k,
w,
E,
A,
C,
x,
I,
D,
S,
O,
T,
M,
N,
P,
F,
L;
return d(this, function (d) {
switch (d.label) {
case 0:
return (
(i = "x-tcb-trace_" + this.config.env),
(o = "application/x-www-form-urlencoded"),
(a = c(
{
action: e,
dataVersion: r.DATA_VERSION,
env: this.config.env,
},
t,
)),
-1 !== _.indexOf(e)
? [3, 3]
: ((s = this._cache.keys.refreshTokenKey),
[4, this._cache.getStoreAsync(s)])
);
case 1:
return d.sent()
? ((l = a), [4, this.getAccessToken()])
: [3, 3];
case 2:
((l.access_token = d.sent().accessToken),
(d.label = 3));
case 3:
if ("storage.uploadFile" === e) {
for (p in (f = new FormData()))
f.hasOwnProperty(p) &&
f[p] !== undefined &&
f.append(p, a[p]);
o = "multipart/form-data";
} else
for (p in ((o = "application/json;charset=UTF-8"),
(f = {}),
a))
a[p] !== undefined && (f[p] = a[p]);
return (
(h = { headers: { "content-type": o } }),
(null == n ? void 0 : n.onUploadProgress) &&
(h.onUploadProgress = n.onUploadProgress),
this.config.region &&
(h.headers["X-TCB-Region"] =
this.config.region),
(y = this._localCache.getStore(i)) &&
(h.headers["X-TCB-Trace"] = y),
u.Platform.runtime !== v.WEB &&
((b = this.config),
(k = b.appSign),
(w = b.appSecret),
(E = Date.now()),
(A = w.appAccessKey),
(C = w.appAccessKeyId),
(x = g(
{
data: {},
timestamp: E,
appAccessKeyId: C,
appSign: k,
},
A,
)),
(h.headers["X-TCB-App-Source"] =
"timestamp=" +
E +
";appAccessKeyId=" +
C +
";appSign=" +
k +
";sign=" +
x)),
(I = t.parse),
(D = t.inQuery),
(S = t.search),
(O = { env: this.config.env }),
I && (O.parse = !0),
D && (O = c(c({}, D), O)),
(T = (0, r.getEndPoint)()),
(M = T.BASE_URL),
(N = T.PROTOCOL),
(P = m(N, M, O)),
S && (P += S),
[4, this.post(c({ url: P, data: f }, h))]
);
case 4:
if (
((F = d.sent()),
(L = F.header && F.header["x-tcb-trace"]) &&
this._localCache.setStore(i, L),
(200 !== Number(F.status) &&
200 !== Number(F.statusCode)) ||
!F.data)
)
throw new Error("network request error");
return [2, F];
}
});
});
}),
(e.prototype.send = function (e, t) {
return (
void 0 === t && (t = {}),
l(this, void 0, void 0, function () {
var n;
return d(this, function (r) {
switch (r.label) {
case 0:
return [
4,
this.request(e, t, {
onUploadProgress: t.onUploadProgress,
}),
];
case 1:
return "ACCESS_TOKEN_EXPIRED" !==
(n = r.sent()).data.code || -1 !== _.indexOf(e)
? [3, 4]
: [4, this.refreshAccessToken()];
case 2:
return (
r.sent(),
[
4,
this.request(e, t, {
onUploadProgress: t.onUploadProgress,
}),
]
);
case 3:
((n = r.sent()), (r.label = 4));
case 4:
if (n.data.code && this._throwWhenRequestFail)
throw new Error(
JSON.stringify({
code: f.OPERATION_FAIL,
msg:
"[" + n.data.code + "] " + n.data.message,
}),
);
return [2, n.data];
}
});
})
);
}),
(e.prototype._refreshAccessToken = function (e) {
return (
void 0 === e && (e = 1),
l(this, void 0, void 0, function () {
var t, n, i, a, u, c, l, p, h, m, g, v, _;
return d(this, function (d) {
switch (d.label) {
case 0:
return (
(t = this._cache.keys),
(n = t.accessTokenKey),
(i = t.accessTokenExpireKey),
(a = t.refreshTokenKey),
(u = t.loginTypeKey),
(c = t.anonymousUuidKey),
[4, this._cache.removeStoreAsync(n)]
);
case 1:
return (
d.sent(),
[4, this._cache.removeStoreAsync(i)]
);
case 2:
return (
d.sent(),
[4, this._cache.getStoreAsync(a)]
);
case 3:
if (!(l = d.sent()))
throw new Error(
JSON.stringify({
code: f.INVALID_OPERATION,
msg: "not login",
}),
);
return (
(p = { refresh_token: l }),
[
4,
this.request(
"auth.fetchAccessTokenWithRefreshToken",
p,
),
]
);
case 4:
return (h = d.sent()).data.code
? "SIGN_PARAM_INVALID" !== (m = h.data.code) &&
"REFRESH_TOKEN_EXPIRED" !== m &&
"INVALID_REFRESH_TOKEN" !== m
? [3, 11]
: [4, this._cache.getStoreAsync(u)]
: [3, 12];
case 5:
return d.sent() === r.LOGINTYPE.ANONYMOUS &&
"INVALID_REFRESH_TOKEN" === m
? [4, this._cache.getStoreAsync(c)]
: [3, 9];
case 6:
return (
(g = d.sent()),
[4, this._cache.getStoreAsync(a)]
);
case 7:
return (
(v = d.sent()),
[
4,
this.send("auth.signInAnonymously", {
anonymous_uuid: g,
refresh_token: v,
}),
]
);
case 8:
if (
((_ = d.sent()),
this._setRefreshToken(_.refresh_token),
e >= 1)
)
return [2, this._refreshAccessToken(--e)];
throw new Error(
JSON.stringify({
code: f.OPERATION_FAIL,
message: "重试获取 refresh token 失败",
}),
);
case 9:
return (
o.cloudbase.fire(s.EVENTS.LOGIN_STATE_EXPIRED),
[4, this._cache.removeStoreAsync(a)]
);
case 10:
(d.sent(), (d.label = 11));
case 11:
throw new Error(
JSON.stringify({
code: f.NETWORK_ERROR,
msg:
"refresh access_token failed:" +
h.data.code,
}),
);
case 12:
return h.data.access_token
? (o.cloudbase.fire(
s.EVENTS.ACCESS_TOKEN_REFRESHD,
),
[
4,
this._cache.setStoreAsync(
n,
h.data.access_token,
),
])
: [3, 15];
case 13:
return (
d.sent(),
[
4,
this._cache.setStoreAsync(
i,
h.data.access_token_expire + Date.now(),
),
]
);
case 14:
return (
d.sent(),
[
2,
{
accessToken: h.data.access_token,
accessTokenExpire:
h.data.access_token_expire,
},
]
);
case 15:
return h.data.refresh_token
? [4, this._cache.removeStoreAsync(a)]
: [3, 19];
case 16:
return (
d.sent(),
[
4,
this._cache.setStoreAsync(
a,
h.data.refresh_token,
),
]
);
case 17:
return (
d.sent(),
[4, this._refreshAccessToken()]
);
case 18:
(d.sent(), (d.label = 19));
case 19:
return [2];
}
});
})
);
}),
(e.prototype._setRefreshToken = function (e) {
return l(this, void 0, void 0, function () {
var t, n, r, i;
return d(this, function (o) {
switch (o.label) {
case 0:
return (
(t = this._cache.keys),
(n = t.accessTokenKey),
(r = t.accessTokenExpireKey),
(i = t.refreshTokenKey),
[4, this._cache.removeStoreAsync(n)]
);
case 1:
return (
o.sent(),
[4, this._cache.removeStoreAsync(r)]
);
case 2:
return (
o.sent(),
[4, this._cache.setStoreAsync(i, e)]
);
case 3:
return (o.sent(), [2]);
}
});
});
}),
e
);
})()),
w = {};
},
1235: function (e, t) {
"use strict";
var n;
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.LOGINTYPE = void 0),
(function (e) {
((e.ANONYMOUS = "ANONYMOUS"),
(e.WECHAT = "WECHAT"),
(e.WECHAT_PUBLIC = "WECHAT-PUBLIC"),
(e.WECHAT_OPEN = "WECHAT-OPEN"),
(e.CUSTOM = "CUSTOM"),
(e.EMAIL = "EMAIL"),
(e.USERNAME = "USERNAME"),
(e.NULL = "NULL"),
(e.PHONE = "PHONE"));
})(n || (t.LOGINTYPE = n = {})));
},
3442: function (e, t, n) {
"use strict";
var r = n(477);
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.Auth = void 0),
Object.defineProperty(t, "AuthProvider", {
enumerable: !0,
get: function () {
return l.AuthProvider;
},
}),
(t.eventBus = t.LoginState = t.EVENTS = void 0),
(t.registerAuth = function (e) {
try {
e.registerComponent(M);
} catch (t) {
console.warn(t);
}
}),
(t.registerProvider = function (e, t) {
O.prototype[e] = function (n) {
var r = "_" + e;
return (
this[r] || (this[r] = new t(h(h({}, n), this._config))),
this[r]
);
};
}));
var i = r(n(9367)),
o = n(2566),
a = n(9250),
s = n(4325),
u = n(2007),
c = n(1235),
l = n(4522),
d = n(7036),
f = n(9676),
p = n(2424),
h = function () {
return (
(h =
Object.assign ||
function (e) {
for (var t, n = 1, r = arguments.length; n < r; n++)
for (var i in (t = arguments[n]))
Object.prototype.hasOwnProperty.call(t, i) &&
(e[i] = t[i]);
return e;
}),
h.apply(this, arguments)
);
},
m = function (e, t, n, r) {
var o,
a = arguments.length,
s =
a < 3
? t
: null === r
? (r = Object.getOwnPropertyDescriptor(t, n))
: r;
if (
"object" ===
("undefined" == typeof Reflect
? "undefined"
: (0, i["default"])(Reflect)) &&
"function" == typeof Reflect.decorate
)
s = Reflect.decorate(e, t, n, r);
else
for (var u = e.length - 1; u >= 0; u--)
(o = e[u]) &&
(s = (a < 3 ? o(s) : a > 3 ? o(t, n, s) : o(t, n)) || s);
return (a > 3 && s && Object.defineProperty(t, n, s), s);
},
g = function (e, t) {
if (
"object" ===
("undefined" == typeof Reflect
? "undefined"
: (0, i["default"])(Reflect)) &&
"function" == typeof Reflect.metadata
)
return Reflect.metadata(e, t);
},
v = function (e, t, n, r) {
return new (n || (n = Promise))(function (i, o) {
function a(e) {
try {
u(r.next(e));
} catch (t) {
o(t);
}
}
function s(e) {
try {
u(r["throw"](e));
} catch (t) {
o(t);
}
}
function u(e) {
var t;
e.done
? i(e.value)
: ((t = e.value),
t instanceof n
? t
: new n(function (e) {
e(t);
})).then(a, s);
}
u((r = r.apply(e, t || [])).next());
});
},
_ = function (e, t) {
var n,
r,
i,
o,
a = {
label: 0,
sent: function () {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: [],
};
return (
(o = { next: s(0), throw: s(1), return: s(2) }),
"function" == typeof Symbol &&
(o[Symbol.iterator] = function () {
return this;
}),
o
);
function s(o) {
return function (s) {
return (function (o) {
if (n)
throw new TypeError("Generator is already executing.");
for (; a; )
try {
if (
((n = 1),
r &&
(i =
2 & o[0]
? r["return"]
: o[0]
? r["throw"] ||
((i = r["return"]) && i.call(r), 0)
: r.next) &&
!(i = i.call(r, o[1])).done)
)
return i;
switch (
((r = 0), i && (o = [2 & o[0], i.value]), o[0])
) {
case 0:
case 1:
i = o;
break;
case 4:
return (a.label++, { value: o[1], done: !1 });
case 5:
(a.label++, (r = o[1]), (o = [0]));
continue;
case 7:
((o = a.ops.pop()), a.trys.pop());
continue;
default:
if (
!(
(i =
(i = a.trys).length > 0 &&
i[i.length - 1]) ||
(6 !== o[0] && 2 !== o[0])
)
) {
a = 0;
continue;
}
if (
3 === o[0] &&
(!i || (o[1] > i[0] && o[1] < i[3]))
) {
a.label = o[1];
break;
}
if (6 === o[0] && a.label < i[1]) {
((a.label = i[1]), (i = o));
break;
}
if (i && a.label < i[2]) {
((a.label = i[2]), a.ops.push(o));
break;
}
(i[2] && a.ops.pop(), a.trys.pop());
continue;
}
o = t.call(e, a);
} catch (s) {
((o = [6, s]), (r = 0));
} finally {
n = i = 0;
}
if (5 & o[0]) throw o[1];
return { value: o[0] ? o[1] : void 0, done: !0 };
})([o, s]);
};
}
},
y = o.events.CloudbaseEventEmitter,
b = o.adapters.RUNTIME,
k = o.utils.printWarn,
w = o.utils.throwError,
E = o.utils.transformPhone,
A = o.constants.ERRORS,
C = o.constants.COMMUNITY_SITE_URL,
x = o.helpers.catchErrorsDecorator,
I = (t.eventBus = new y()),
D = (function () {
function e(e) {
var t = e.cache,
n = e.request;
((this._cache = t), (this._request = n), this._setUserInfo());
}
return (
(e.prototype.checkLocalInfo = function () {
return v(this, void 0, void 0, function () {
return _(this, function (e) {
return (
(this.uid = this._getLocalUserInfo("uid")),
(this.loginType =
this._getLocalUserInfo("loginType")),
(this.openid = this._getLocalUserInfo("wxOpenId")),
(this.wxOpenId = this._getLocalUserInfo("wxOpenId")),
(this.wxPublicId =
this._getLocalUserInfo("wxPublicId")),
(this.unionId = this._getLocalUserInfo("wxUnionId")),
(this.qqMiniOpenId =
this._getLocalUserInfo("qqMiniOpenId")),
(this.customUserId =
this._getLocalUserInfo("customUserId")),
(this.nickName = this._getLocalUserInfo("nickName")),
(this.gender = this._getLocalUserInfo("gender")),
(this.avatarUrl =
this._getLocalUserInfo("avatarUrl")),
(this.email = this._getLocalUserInfo("email")),
(this.hasPassword = Boolean(
this._getLocalUserInfo("hasPassword"),
)),
(this.phone = this._getLocalUserInfo("phone")),
(this.username = this._getLocalUserInfo("username")),
(this.location = {
country: this._getLocalUserInfo("country"),
province: this._getLocalUserInfo("province"),
city: this._getLocalUserInfo("city"),
}),
[2]
);
});
});
}),
(e.prototype.checkLocalInfoAsync = function () {
return v(this, void 0, void 0, function () {
var e, t, n, r, i, o, a, s, u, c, l, d, f, p, h, m, g, v;
return _(this, function (_) {
switch (_.label) {
case 0:
return (
(e = this),
[4, this._getLocalUserInfoAsync("uid")]
);
case 1:
return (
(e.uid = _.sent()),
(t = this),
[4, this._getLocalUserInfoAsync("loginType")]
);
case 2:
return (
(t.loginType = _.sent()),
(n = this),
[4, this._getLocalUserInfoAsync("wxOpenId")]
);
case 3:
return (
(n.openid = _.sent()),
(r = this),
[4, this._getLocalUserInfoAsync("wxOpenId")]
);
case 4:
return (
(r.wxOpenId = _.sent()),
(i = this),
[4, this._getLocalUserInfoAsync("wxPublicId")]
);
case 5:
return (
(i.wxPublicId = _.sent()),
(o = this),
[4, this._getLocalUserInfoAsync("wxUnionId")]
);
case 6:
return (
(o.unionId = _.sent()),
(a = this),
[4, this._getLocalUserInfoAsync("qqMiniOpenId")]
);
case 7:
return (
(a.qqMiniOpenId = _.sent()),
(s = this),
[4, this._getLocalUserInfoAsync("customUserId")]
);
case 8:
return (
(s.customUserId = _.sent()),
(u = this),
[4, this._getLocalUserInfoAsync("nickName")]
);
case 9:
return (
(u.nickName = _.sent()),
(c = this),
[4, this._getLocalUserInfoAsync("gender")]
);
case 10:
return (
(c.gender = _.sent()),
(l = this),
[4, this._getLocalUserInfoAsync("avatarUrl")]
);
case 11:
return (
(l.avatarUrl = _.sent()),
(d = this),
[4, this._getLocalUserInfoAsync("email")]
);
case 12:
return (
(d.email = _.sent()),
(f = this),
(p = Boolean),
[4, this._getLocalUserInfoAsync("hasPassword")]
);
case 13:
return (
(f.hasPassword = p.apply(void 0, [_.sent()])),
(h = this),
[4, this._getLocalUserInfoAsync("phone")]
);
case 14:
return (
(h.phone = _.sent()),
(m = this),
[4, this._getLocalUserInfoAsync("username")]
);
case 15:
return (
(m.username = _.sent()),
(g = this),
(v = {}),
[4, this._getLocalUserInfoAsync("country")]
);
case 16:
return (
(v.country = _.sent()),
[4, this._getLocalUserInfoAsync("province")]
);
case 17:
return (
(v.province = _.sent()),
[4, this._getLocalUserInfoAsync("city")]
);
case 18:
return (
(g.location = ((v.city = _.sent()), v)),
[2]
);
}
});
});
}),
(e.prototype.linkWithTicket = function (e) {
if ("string" != typeof e)
throw new Error("ticket must be string");
return this._request.send("auth.linkWithTicket", {
ticket: e,
});
}),
(e.prototype.linkWithRedirect = function (e) {
e.signInWithRedirect();
}),
(e.prototype.getLinkedUidList = function () {
return v(this, void 0, void 0, function () {
var e, t, n, r, i, o;
return _(this, function (a) {
switch (a.label) {
case 0:
return [
4,
this._request.send("auth.getLinkedUidList", {}),
];
case 1:
for (
e = a.sent().data,
t = !1,
n = e.users,
r = 0,
i = n;
r < i.length;
r++
)
if ((o = i[r]).wxOpenId && o.wxPublicId) {
t = !0;
break;
}
return [2, { users: n, hasPrimaryUid: t }];
}
});
});
}),
(e.prototype.setPrimaryUid = function (e) {
return this._request.send("auth.setPrimaryUid", { uid: e });
}),
(e.prototype.unlink = function (e) {
return this._request.send("auth.unlink", { platform: e });
}),
(e.prototype.update = function (e) {
return v(this, void 0, void 0, function () {
var t, n, r, i, o, a, s;
return _(this, function (u) {
switch (u.label) {
case 0:
return (
(t = e.nickName),
(n = e.gender),
(r = e.avatarUrl),
(i = e.province),
(o = e.country),
(a = e.city),
[
4,
this._request.send("auth.updateUserInfo", {
nickName: t,
gender: n,
avatarUrl: r,
province: i,
country: o,
city: a,
}),
]
);
case 1:
return (
(s = u.sent().data),
this._setLocalUserInfo(s),
[2]
);
}
});
});
}),
(e.prototype.updatePassword = function (e, t) {
return this._request.send("auth.updatePassword", {
oldPassword: t,
newPassword: e,
});
}),
(e.prototype.updateEmail = function (e, t) {
return this._request.send("auth.updateEmail", {
newEmail: e,
password: t,
});
}),
(e.prototype.updateUsername = function (e) {
return (
"string" != typeof e &&
w(A.INVALID_PARAMS, "username must be a string"),
this._request.send("auth.updateUsername", { username: e })
);
}),
(e.prototype.refresh = function () {
return v(this, void 0, void 0, function () {
var e;
return _(this, function (t) {
switch (t.label) {
case 0:
return [
4,
this._request.send("auth.getUserInfo", {}),
];
case 1:
return (
(e = t.sent().data),
this._setLocalUserInfo(e),
[2, e]
);
}
});
});
}),
(e.prototype.linkWithPhoneNumber = function (e, t) {
return v(this, void 0, void 0, function () {
return _(this, function (n) {
return [
2,
this._request.send("auth.linkOrUpdatePhoneNumber", {
phoneNumber: E(e),
phoneCode: t,
}),
];
});
});
}),
(e.prototype.updatePhoneNumber = function (e, t) {
return v(this, void 0, void 0, function () {
return _(this, function (n) {
return [
2,
this._request.send("auth.linkOrUpdatePhoneNumber", {
phoneNumber: E(e),
phoneCode: t,
}),
];
});
});
}),
(e.prototype._getLocalUserInfo = function (e) {
var t = this._cache.keys.userInfoKey;
return this._cache.getStore(t)[e];
}),
(e.prototype._getLocalUserInfoAsync = function (e) {
return v(this, void 0, void 0, function () {
var t;
return _(this, function (n) {
switch (n.label) {
case 0:
return (
(t = this._cache.keys.userInfoKey),
[4, this._cache.getStoreAsync(t)]
);
case 1:
return [2, n.sent()[e]];
}
});
});
}),
(e.prototype._setUserInfo = function () {
var e = this,
t = this._cache.keys.userInfoKey,
n = this._cache.getStore(t);
([
"uid",
"loginType",
"openid",
"wxOpenId",
"wxPublicId",
"unionId",
"qqMiniOpenId",
"email",
"hasPassword",
"customUserId",
"nickName",
"gender",
"avatarUrl",
"phone",
"username",
].forEach(function (t) {
e[t] = n[t];
}),
(this.location = {
country: n.country,
province: n.province,
city: n.city,
}));
}),
(e.prototype._setLocalUserInfo = function (e) {
var t = this._cache.keys.userInfoKey;
(this._cache.setStore(t, e), this._setUserInfo());
}),
m(
[
x({
title: "绑定自定义登录失败",
messages: [
"请确认以下各项:",
" 1 - 调用 User.linkWithTicket() 的语法或参数是否正确",
" 2 - 此账户是否已经绑定自定义登录",
" 3 - ticket 参数是否归属当前环境",
" 4 - 创建 ticket 的自定义登录私钥是否过期",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
C,
],
}),
g("design:type", Function),
g("design:paramtypes", [String]),
g("design:returntype", Promise),
],
e.prototype,
"linkWithTicket",
null,
),
m(
[
x({
title: "绑定第三方登录方式失败",
messages: [
"请确认以下各项:",
" 1 - 调用 User.linkWithRedirect() 的语法或参数是否正确",
" 2 - 此账户是否已经绑定此第三方",
" 3 - 此第三方是否已经授权",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
C,
],
}),
g("design:type", Function),
g("design:paramtypes", [Object]),
g("design:returntype", void 0),
],
e.prototype,
"linkWithRedirect",
null,
),
m(
[
x({
title: "获取账户列表失败",
messages: [
"请确认以下各项:",
" 1 - 调用 User.getLinkedUidList() 的语法或参数是否正确",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
C,
],
}),
g("design:type", Function),
g("design:paramtypes", []),
g("design:returntype", Promise),
],
e.prototype,
"getLinkedUidList",
null,
),
m(
[
x({
title: "设置微信主账号失败",
messages: [
"请确认以下各项:",
" 1 - 调用 User.setPrimaryUid() 的语法或参数是否正确",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
C,
],
}),
g("design:type", Function),
g("design:paramtypes", [String]),
g("design:returntype", void 0),
],
e.prototype,
"setPrimaryUid",
null,
),
m(
[
x({
title: "接触绑定失败",
messages: [
"请确认以下各项:",
" 1 - 调用 User.unlink() 的语法或参数是否正确",
" 2 - 当前账户是否已经与此登录方式解绑",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
C,
],
}),
g("design:type", Function),
g("design:paramtypes", [String]),
g("design:returntype", void 0),
],
e.prototype,
"unlink",
null,
),
m(
[
x({
title: "更新用户信息失败",
messages: [
"请确认以下各项:",
" 1 - 调用 User.update() 的语法或参数是否正确",
" 2 - 用户信息中是否包含非法值",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
C,
],
}),
g("design:type", Function),
g("design:paramtypes", [Object]),
g("design:returntype", Promise),
],
e.prototype,
"update",
null,
),
m(
[
x({
title: "更新密码失败",
messages: [
"请确认以下各项:",
" 1 - 调用 User.updatePassword() 的语法或参数是否正确",
" 3 - 新密码中是否包含非法字符",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
C,
],
}),
g("design:type", Function),
g("design:paramtypes", [String, String]),
g("design:returntype", void 0),
],
e.prototype,
"updatePassword",
null,
),
m(
[
x({
title: "更新邮箱地址失败",
messages: [
"请确认以下各项:",
" 1 - 调用 User.updateEmail() 的语法或参数是否正确",
" 2 - 当前环境是否开通了邮箱密码登录",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
C,
],
}),
g("design:type", Function),
g("design:paramtypes", [String, String]),
g("design:returntype", void 0),
],
e.prototype,
"updateEmail",
null,
),
m(
[
x({
title: "更新用户名失败",
messages: [
"请确认以下各项:",
" 1 - 调用 User.updateUsername() 的语法或参数是否正确",
" 2 - 当前环境是否开通了用户名密码登录",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
C,
],
}),
g("design:type", Function),
g("design:paramtypes", [String]),
g("design:returntype", void 0),
],
e.prototype,
"updateUsername",
null,
),
m(
[
x({
title: "刷新本地用户信息失败",
messages: [
"请确认以下各项:",
" 1 - 调用 User.refresh() 的语法或参数是否正确",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
C,
],
}),
g("design:type", Function),
g("design:paramtypes", []),
g("design:returntype", Promise),
],
e.prototype,
"refresh",
null,
),
m(
[
x({
title: "绑定手机号失败",
messages: [
"请确认以下各项:",
" 1 - 调用 auth().linkWithPhoneNumber() 的语法或参数是否正确",
" 2 - 当前环境是否开通了短信验证码登录",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
C,
],
}),
g("design:type", Function),
g("design:paramtypes", [String, String]),
g("design:returntype", Promise),
],
e.prototype,
"linkWithPhoneNumber",
null,
),
m(
[
x({
title: "更新手机号失败",
messages: [
"请确认以下各项:",
" 1 - 调用语法或参数是否正确",
" 2 - 当前环境是否开通了短信验证码登录",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
C,
],
}),
g("design:type", Function),
g("design:paramtypes", [String, String]),
g("design:returntype", Promise),
],
e.prototype,
"updatePhoneNumber",
null,
),
e
);
})(),
S = (t.LoginState = (function () {
function e(e) {
var t = e.envId,
n = e.cache,
r = e.request;
(t || w(A.INVALID_PARAMS, "envId is not defined"),
(this._cache = n),
(this.user = new D({ cache: n, request: r })));
}
return (
(e.prototype.checkLocalState = function () {
return v(this, void 0, void 0, function () {
var e, t, n, r, i, o, a;
return _(this, function (s) {
return (
(e = this._cache.keys),
(t = e.refreshTokenKey),
(n = e.accessTokenKey),
(r = e.accessTokenExpireKey),
(i = this._cache.getStore(t)),
(o = this._cache.getStore(n)),
(a = this._cache.getStore(r)),
(this.credential = {
refreshToken: i,
accessToken: o,
accessTokenExpire: a,
}),
(this._loginType = this._cache.getStore(
this._cache.keys.loginTypeKey,
)),
this.user.checkLocalInfo(),
[2]
);
});
});
}),
(e.prototype.checkLocalStateAsync = function () {
return v(this, void 0, void 0, function () {
var e, t, n, r, i, o, a, s;
return _(this, function (u) {
switch (u.label) {
case 0:
return (
(e = this._cache.keys),
(t = e.refreshTokenKey),
(n = e.accessTokenKey),
(r = e.accessTokenExpireKey),
[4, this._cache.getStoreAsync(t)]
);
case 1:
return (
(i = u.sent()),
[4, this._cache.getStoreAsync(n)]
);
case 2:
return (
(o = u.sent()),
[4, this._cache.getStoreAsync(r)]
);
case 3:
return (
(a = u.sent()),
(this.credential = {
refreshToken: i,
accessToken: o,
accessTokenExpire: a,
}),
(s = this),
[
4,
this._cache.getStoreAsync(
this._cache.keys.loginTypeKey,
),
]
);
case 4:
return (
(s._loginType = u.sent()),
[4, this.user.checkLocalInfoAsync()]
);
case 5:
return (u.sent(), [2]);
}
});
});
}),
Object.defineProperty(e.prototype, "isAnonymousAuth", {
get: function () {
return this.loginType === c.LOGINTYPE.ANONYMOUS;
},
enumerable: !1,
configurable: !0,
}),
Object.defineProperty(e.prototype, "isCustomAuth", {
get: function () {
return this.loginType === c.LOGINTYPE.CUSTOM;
},
enumerable: !1,
configurable: !0,
}),
Object.defineProperty(e.prototype, "isWeixinAuth", {
get: function () {
return (
this.loginType === c.LOGINTYPE.WECHAT ||
this.loginType === c.LOGINTYPE.WECHAT_OPEN ||
this.loginType === c.LOGINTYPE.WECHAT_PUBLIC
);
},
enumerable: !1,
configurable: !0,
}),
Object.defineProperty(e.prototype, "isUsernameAuth", {
get: function () {
return this.loginType === c.LOGINTYPE.USERNAME;
},
enumerable: !1,
configurable: !0,
}),
Object.defineProperty(e.prototype, "loginType", {
get: function () {
return this._loginType;
},
enumerable: !1,
configurable: !0,
}),
Object.defineProperty(e.prototype, "isPhoneAuth", {
get: function () {
return this.loginType === c.LOGINTYPE.PHONE;
},
enumerable: !1,
configurable: !0,
}),
e
);
})()),
O = (t.Auth = (function () {
function e(e) {
((this._config = e),
(this._cache = e.cache),
(this._request = e.request),
(this._runtime = e.runtime || b.WEB),
I.on(
T.LOGIN_TYPE_CHANGED,
this._onLoginTypeChanged.bind(this),
));
}
return (
Object.defineProperty(e.prototype, "currentUser", {
get: function () {
if ("async" !== this._cache.mode) {
var e = this.hasLoginState();
return (e && e.user) || null;
}
k(
A.INVALID_OPERATION,
"current platform's storage is asynchronous, please use getCurrenUser insteed",
);
},
enumerable: !1,
configurable: !0,
}),
Object.defineProperty(e.prototype, "loginType", {
get: function () {
return this._cache.getStore(
this._cache.keys.loginTypeKey,
);
},
enumerable: !1,
configurable: !0,
}),
(e.prototype.getCurrenUser = function () {
return v(this, void 0, void 0, function () {
var e;
return _(this, function (t) {
switch (t.label) {
case 0:
return [4, this.getLoginState()];
case 1:
return (e = t.sent())
? [4, e.user.checkLocalInfoAsync()]
: [3, 3];
case 2:
return (t.sent(), [2, e.user || null]);
case 3:
return [2, null];
}
});
});
}),
(e.prototype.getLoginType = function () {
return v(this, void 0, void 0, function () {
return _(this, function (e) {
switch (e.label) {
case 0:
return [
4,
this._cache.getStoreAsync(
this._cache.keys.loginTypeKey,
),
];
case 1:
return [2, e.sent()];
}
});
});
}),
(e.prototype.getAccessToken = function () {
return v(this, void 0, void 0, function () {
var e;
return _(this, function (t) {
switch (t.label) {
case 0:
return (
(e = {}),
[4, this._request.getAccessToken()]
);
case 1:
return [
2,
((e.accessToken = t.sent().accessToken),
(e.env = this._config.env),
e),
];
}
});
});
}),
(e.prototype.weixinAuthProvider = function (e) {
var t = e.appid,
n = e.scope,
r = e.state;
return (
this._weixinAuthProvider ||
(this._weixinAuthProvider = new a.WeixinAuthProvider(
h(h({}, this._config), {
cache: this._cache,
request: this._request,
runtime: this._runtime,
}),
t,
n,
r,
)),
this._weixinAuthProvider
);
}),
(e.prototype.anonymousAuthProvider = function () {
return (
this._anonymousAuthProvider ||
(this._anonymousAuthProvider =
new s.AnonymousAuthProvider(
h(h({}, this._config), {
cache: this._cache,
request: this._request,
}),
)),
this._anonymousAuthProvider
);
}),
(e.prototype.customAuthProvider = function () {
return (
this._customAuthProvider ||
(this._customAuthProvider = new u.CustomAuthProvider(
h(h({}, this._config), {
cache: this._cache,
request: this._request,
}),
)),
this._customAuthProvider
);
}),
(e.prototype.emailAuthProvider = function () {
return (
this._emailAuthProvider ||
(this._emailAuthProvider = new d.EmailAuthProvider(
h(h({}, this._config), {
cache: this._cache,
request: this._request,
}),
)),
this._emailAuthProvider
);
}),
(e.prototype.usernameAuthProvider = function () {
return (
this._usernameAuthProvider ||
(this._usernameAuthProvider =
new f.UsernameAuthProvider(
h(h({}, this._config), {
cache: this._cache,
request: this._request,
}),
)),
this._usernameAuthProvider
);
}),
(e.prototype.phoneAuthProvider = function () {
return (
this._phoneAuthProvider ||
(this._phoneAuthProvider = new p.PhoneAuthProvider(
h(h({}, this._config), {
cache: this._cache,
request: this._request,
}),
)),
this._phoneAuthProvider
);
}),
(e.prototype.signInWithUsernameAndPassword = function (e, t) {
return v(this, void 0, void 0, function () {
return _(this, function (n) {
return [2, this.usernameAuthProvider().signIn(e, t)];
});
});
}),
(e.prototype.isUsernameRegistered = function (e) {
return v(this, void 0, void 0, function () {
var t;
return _(this, function (n) {
switch (n.label) {
case 0:
return (
"string" != typeof e &&
w(
A.INVALID_PARAMS,
"username must be a string",
),
[
4,
this._request.send(
"auth.isUsernameRegistered",
{ username: e },
),
]
);
case 1:
return [
2,
null == (t = n.sent().data)
? void 0
: t.isRegistered,
];
}
});
});
}),
(e.prototype.signInWithEmailAndPassword = function (e, t) {
return v(this, void 0, void 0, function () {
return _(this, function (n) {
return [2, this.emailAuthProvider().signIn(e, t)];
});
});
}),
(e.prototype.signUpWithEmailAndPassword = function (e, t) {
return v(this, void 0, void 0, function () {
return _(this, function (n) {
return [2, this.emailAuthProvider().signUp(e, t)];
});
});
}),
(e.prototype.sendPasswordResetEmail = function (e) {
return v(this, void 0, void 0, function () {
return _(this, function (t) {
return [2, this.emailAuthProvider().resetPassword(e)];
});
});
}),
(e.prototype.signOut = function () {
return v(this, void 0, void 0, function () {
var e, t, n, r, i, o, a;
return _(this, function (s) {
switch (s.label) {
case 0:
return (
(e = this._cache.keys),
(t = e.refreshTokenKey),
(n = e.accessTokenKey),
(r = e.accessTokenExpireKey),
(i = "auth.logout"),
[4, this._cache.getStoreAsync(t)]
);
case 1:
return (o = s.sent())
? [4, this._request.send(i, { refresh_token: o })]
: [2];
case 2:
return (
(a = s.sent()),
this._cache.removeStoreAsync(t),
this._cache.removeStoreAsync(n),
this._cache.removeStoreAsync(r),
I.fire(T.LOGIN_STATE_CHANGED),
I.fire(T.LOGIN_TYPE_CHANGED, {
env: this._config.env,
loginType: c.LOGINTYPE.NULL,
persistence: this._config.persistence,
}),
[2, a]
);
}
});
});
}),
(e.prototype.onLoginStateChanged = function (e) {
return v(this, void 0, void 0, function () {
var t,
n = this;
return _(this, function (r) {
switch (r.label) {
case 0:
return (
I.on(T.LOGIN_STATE_CHANGED, function () {
return v(n, void 0, void 0, function () {
var t;
return _(this, function (n) {
switch (n.label) {
case 0:
return [4, this.getLoginState()];
case 1:
return (
(t = n.sent()),
e.call(this, t),
[2]
);
}
});
});
}),
[4, this.getLoginState()]
);
case 1:
return ((t = r.sent()), e.call(this, t), [2]);
}
});
});
}),
(e.prototype.onLoginStateExpired = function (e) {
I.on(T.LOGIN_STATE_EXPIRED, e.bind(this));
}),
(e.prototype.onAccessTokenRefreshed = function (e) {
I.on(T.ACCESS_TOKEN_REFRESHD, e.bind(this));
}),
(e.prototype.onAnonymousConverted = function (e) {
I.on(T.ANONYMOUS_CONVERTED, e.bind(this));
}),
(e.prototype.onLoginTypeChanged = function (e) {
var t = this;
I.on(T.LOGIN_TYPE_CHANGED, function () {
return v(t, void 0, void 0, function () {
var t;
return _(this, function (n) {
switch (n.label) {
case 0:
return [4, this.getLoginState()];
case 1:
return ((t = n.sent()), e.call(this, t), [2]);
}
});
});
});
}),
(e.prototype.hasLoginState = function () {
if ("async" !== this._cache.mode) {
var e = this._cache.keys.refreshTokenKey;
if (this._cache.getStore(e)) {
var t = new S({
envId: this._config.env,
cache: this._cache,
request: this._request,
});
return (t.checkLocalState(), t);
}
return null;
}
k(
A.INVALID_OPERATION,
"current platform's storage is asynchronous, please use getLoginState insteed",
);
}),
(e.prototype.getLoginState = function () {
return v(this, void 0, void 0, function () {
var e, t;
return _(this, function (n) {
switch (n.label) {
case 0:
return (
(e = this._cache.keys.refreshTokenKey),
[4, this._cache.getStoreAsync(e)]
);
case 1:
return n.sent()
? [
4,
(t = new S({
envId: this._config.env,
cache: this._cache,
request: this._request,
})).checkLocalStateAsync(),
]
: [3, 3];
case 2:
return (n.sent(), [2, t]);
case 3:
return [2, null];
}
});
});
}),
(e.prototype.shouldRefreshAccessToken = function (e) {
this._request._shouldRefreshAccessTokenHook = e.bind(this);
}),
(e.prototype.getUserInfo = function () {
return v(this, void 0, void 0, function () {
var e;
return _(this, function (t) {
switch (t.label) {
case 0:
return [
4,
this._request.send("auth.getUserInfo", {}),
];
case 1:
return (e = t.sent()).code
? [2, e]
: [2, h(h({}, e.data), { requestId: e.seqId })];
}
});
});
}),
(e.prototype.getAuthHeader = function () {
var e = this._cache.keys,
t = e.refreshTokenKey,
n = e.accessTokenKey,
r = this._cache.getStore(t);
return {
"x-cloudbase-credentials":
this._cache.getStore(n) + "/@@/" + r,
};
}),
(e.prototype.getAuthHeaderAsync = function () {
return v(this, void 0, void 0, function () {
var e, t, n, r;
return _(this, function (i) {
switch (i.label) {
case 0:
return [4, this._request.refreshAccessToken()];
case 1:
return (
i.sent(),
(e = this._cache.keys),
(t = e.refreshTokenKey),
(n = e.accessTokenKey),
[4, this._cache.getStoreAsync(t)]
);
case 2:
return (
(r = i.sent()),
[4, this._cache.getStoreAsync(n)]
);
case 3:
return [
2,
{
"x-cloudbase-credentials":
i.sent() + "/@@/" + r,
},
];
}
});
});
}),
(e.prototype.sendPhoneCode = function (e) {
return v(this, void 0, void 0, function () {
return _(this, function (t) {
switch (t.label) {
case 0:
return [
4,
this._request.send("auth.sendPhoneCode", {
phoneNumber: E(e),
}),
];
case 1:
return [2, "Ok" === t.sent().data.SendStatus];
}
});
});
}),
(e.prototype.signUpWithPhoneCode = function (e, t, n) {
return v(this, void 0, void 0, function () {
return _(this, function (r) {
return [2, this.phoneAuthProvider().signUp(e, t, n)];
});
});
}),
(e.prototype.signInWithPhoneCodeOrPassword = function (e) {
return v(this, void 0, void 0, function () {
return _(this, function (t) {
return [2, this.phoneAuthProvider().signIn(e)];
});
});
}),
(e.prototype.forceResetPwdByPhoneCode = function (e) {
return v(this, void 0, void 0, function () {
return _(this, function (t) {
return [
2,
this.phoneAuthProvider().signIn(
h(h({}, e), {
signMethod: p.SIGN_METHOD.FORCERESETPWD,
}),
),
];
});
});
}),
(e.prototype._onLoginTypeChanged = function (e) {
return v(this, void 0, void 0, function () {
var t, n, r;
return _(this, function (i) {
switch (i.label) {
case 0:
return (
(t = e.data),
(n = t.loginType),
(r = t.persistence),
t.env !== this._config.env
? [2]
: [4, this._cache.updatePersistenceAsync(r)]
);
case 1:
return (
i.sent(),
[
4,
this._cache.setStoreAsync(
this._cache.keys.loginTypeKey,
n,
),
]
);
case 2:
return (i.sent(), [2]);
}
});
});
}),
m(
[
x({
title: "获取用户信息失败",
messages: [
"请确认以下各项:",
" 1 - 调用 auth().getCurrenUser() 的语法或参数是否正确",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
C,
],
}),
g("design:type", Function),
g("design:paramtypes", []),
g("design:returntype", Promise),
],
e.prototype,
"getCurrenUser",
null,
),
m(
[
x({
title: "获取用户是否被占用失败",
messages: [
"请确认以下各项:",
" 1 - 调用 auth().isUsernameRegistered() 的语法或参数是否正确",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
C,
],
}),
g("design:type", Function),
g("design:paramtypes", [String]),
g("design:returntype", Promise),
],
e.prototype,
"isUsernameRegistered",
null,
),
m(
[
x({
title: "用户登出失败",
messages: [
"请确认以下各项:",
" 1 - 调用 auth().signOut() 的语法或参数是否正确",
" 2 - 当前用户是否为匿名登录(匿名登录不支持signOut)",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
C,
],
}),
g("design:type", Function),
g("design:paramtypes", []),
g("design:returntype", Promise),
],
e.prototype,
"signOut",
null,
),
m(
[
x({
title: "获取本地登录态失败",
messages: [
"请确认以下各项:",
" 1 - 调用 auth().getLoginState() 的语法或参数是否正确",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
C,
],
}),
g("design:type", Function),
g("design:paramtypes", []),
g("design:returntype", Promise),
],
e.prototype,
"getLoginState",
null,
),
m(
[
x({
title: "获取用户信息失败",
messages: [
"请确认以下各项:",
" 1 - 是否已登录",
" 2 - 调用 auth().getUserInfo() 的语法或参数是否正确",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
C,
],
}),
g("design:type", Function),
g("design:paramtypes", []),
g("design:returntype", Promise),
],
e.prototype,
"getUserInfo",
null,
),
m(
[
x({
title: "发送短信验证码失败",
messages: [
"请确认以下各项:",
" 1 - 调用语法或参数是否正确",
" 2 - 当前环境是否开通了短信验证码登录",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
C,
],
}),
g("design:type", Function),
g("design:paramtypes", [String]),
g("design:returntype", Promise),
],
e.prototype,
"sendPhoneCode",
null,
),
e
);
})()),
T = (t.EVENTS = {
LOGIN_STATE_CHANGED: "loginStateChanged",
LOGIN_STATE_EXPIRED: "loginStateExpire",
LOGIN_TYPE_CHANGED: "loginTypeChanged",
ANONYMOUS_CONVERTED: "anonymousConverted",
ACCESS_TOKEN_REFRESHD: "refreshAccessToken",
}),
M = {
name: "auth",
namespace: "auth",
injectEvents: {
bus: I,
events: [
T.LOGIN_TYPE_CHANGED,
T.LOGIN_STATE_EXPIRED,
T.LOGIN_STATE_CHANGED,
T.ACCESS_TOKEN_REFRESHD,
T.ANONYMOUS_CONVERTED,
],
},
entity: function (e) {
if (
(void 0 === e && (e = { region: "", persistence: "local" }),
this.authInstance)
)
return (
k(
A.INVALID_OPERATION,
"every cloudbase instance should has only one auth object",
),
this.authInstance
);
var t = this.platform,
n = t.adapter,
r = t.runtime,
i = e.persistence || n.primaryStorage;
i &&
i !== this.config.persistence &&
this.updateConfig({ persistence: i });
var o = this.config,
a = o.env,
s = o.persistence,
u = o.debug;
return (
(this.authInstance = new O({
env: a,
region: e.region,
persistence: s,
debug: u,
cache: this.cache,
request: this.request,
runtime: r,
})),
this.authInstance
);
},
};
try {
cloudbase.registerComponent(M);
} catch (N) {}
},
4325: function (e, t, n) {
"use strict";
var r = n(477);
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.AnonymousAuthProvider = void 0));
var i,
o = r(n(9367)),
a = n(4522),
s = n(2566),
u = n(1235),
c = n(3442),
l =
((i = function (e, t) {
return (
(i =
Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array &&
function (e, t) {
e.__proto__ = t;
}) ||
function (e, t) {
for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
}),
i(e, t)
);
}),
function (e, t) {
function n() {
this.constructor = e;
}
(i(e, t),
(e.prototype =
null === t
? Object.create(t)
: ((n.prototype = t.prototype), new n())));
}),
d = function (e, t, n, r) {
var i,
a = arguments.length,
s =
a < 3
? t
: null === r
? (r = Object.getOwnPropertyDescriptor(t, n))
: r;
if (
"object" ===
("undefined" == typeof Reflect
? "undefined"
: (0, o["default"])(Reflect)) &&
"function" == typeof Reflect.decorate
)
s = Reflect.decorate(e, t, n, r);
else
for (var u = e.length - 1; u >= 0; u--)
(i = e[u]) &&
(s = (a < 3 ? i(s) : a > 3 ? i(t, n, s) : i(t, n)) || s);
return (a > 3 && s && Object.defineProperty(t, n, s), s);
},
f = function (e, t) {
if (
"object" ===
("undefined" == typeof Reflect
? "undefined"
: (0, o["default"])(Reflect)) &&
"function" == typeof Reflect.metadata
)
return Reflect.metadata(e, t);
},
p = function (e, t, n, r) {
return new (n || (n = Promise))(function (i, o) {
function a(e) {
try {
u(r.next(e));
} catch (t) {
o(t);
}
}
function s(e) {
try {
u(r["throw"](e));
} catch (t) {
o(t);
}
}
function u(e) {
var t;
e.done
? i(e.value)
: ((t = e.value),
t instanceof n
? t
: new n(function (e) {
e(t);
})).then(a, s);
}
u((r = r.apply(e, t || [])).next());
});
},
h = function (e, t) {
var n,
r,
i,
o,
a = {
label: 0,
sent: function () {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: [],
};
return (
(o = { next: s(0), throw: s(1), return: s(2) }),
"function" == typeof Symbol &&
(o[Symbol.iterator] = function () {
return this;
}),
o
);
function s(o) {
return function (s) {
return (function (o) {
if (n)
throw new TypeError("Generator is already executing.");
for (; a; )
try {
if (
((n = 1),
r &&
(i =
2 & o[0]
? r["return"]
: o[0]
? r["throw"] ||
((i = r["return"]) && i.call(r), 0)
: r.next) &&
!(i = i.call(r, o[1])).done)
)
return i;
switch (
((r = 0), i && (o = [2 & o[0], i.value]), o[0])
) {
case 0:
case 1:
i = o;
break;
case 4:
return (a.label++, { value: o[1], done: !1 });
case 5:
(a.label++, (r = o[1]), (o = [0]));
continue;
case 7:
((o = a.ops.pop()), a.trys.pop());
continue;
default:
if (
!(
(i =
(i = a.trys).length > 0 &&
i[i.length - 1]) ||
(6 !== o[0] && 2 !== o[0])
)
) {
a = 0;
continue;
}
if (
3 === o[0] &&
(!i || (o[1] > i[0] && o[1] < i[3]))
) {
a.label = o[1];
break;
}
if (6 === o[0] && a.label < i[1]) {
((a.label = i[1]), (i = o));
break;
}
if (i && a.label < i[2]) {
((a.label = i[2]), a.ops.push(o));
break;
}
(i[2] && a.ops.pop(), a.trys.pop());
continue;
}
o = t.call(e, a);
} catch (s) {
((o = [6, s]), (r = 0));
} finally {
n = i = 0;
}
if (5 & o[0]) throw o[1];
return { value: o[0] ? o[1] : void 0, done: !0 };
})([o, s]);
};
}
},
m = s.constants.ERRORS,
g = s.constants.COMMUNITY_SITE_URL,
v = s.utils.throwError,
_ = s.utils.isString,
y = s.events.addEventListener,
b = s.helpers.catchErrorsDecorator;
t.AnonymousAuthProvider = (function (e) {
function t(t) {
var n = e.call(this, t) || this;
return (
(n._onConverted = n._onConverted.bind(n)),
y(c.EVENTS.ANONYMOUS_CONVERTED, n._onConverted),
n
);
}
return (
l(t, e),
(t.prototype.signIn = function () {
return p(this, void 0, void 0, function () {
var e, t, n, r, i, o, a;
return h(this, function (s) {
switch (s.label) {
case 0:
return [
4,
this._cache.updatePersistenceAsync("local"),
];
case 1:
return (
s.sent(),
(e = this._cache.keys),
(t = e.anonymousUuidKey),
(n = e.refreshTokenKey),
[4, this._cache.getStoreAsync(t)]
);
case 2:
return (
(r = s.sent()),
[4, this._cache.getStoreAsync(n)]
);
case 3:
return (
(i = s.sent()),
[
4,
this._request.send("auth.signInAnonymously", {
anonymous_uuid: r,
refresh_token: i,
}),
]
);
case 4:
return (o = s.sent()).uuid && o.refresh_token
? [4, this._setAnonymousUUID(o.uuid)]
: [3, 10];
case 5:
return (
s.sent(),
[4, this.setRefreshToken(o.refresh_token)]
);
case 6:
return (
s.sent(),
[4, this._request.refreshAccessToken()]
);
case 7:
return (
s.sent(),
c.eventBus.fire(c.EVENTS.LOGIN_TYPE_CHANGED, {
env: this._config.env,
loginType: u.LOGINTYPE.ANONYMOUS,
persistence: "local",
}),
c.eventBus.fire(c.EVENTS.LOGIN_STATE_CHANGED),
[
4,
(a = new c.LoginState({
envId: this._config.env,
cache: this._cache,
request: this._request,
})).checkLocalStateAsync(),
]
);
case 8:
return (s.sent(), [4, a.user.refresh()]);
case 9:
return (s.sent(), [2, a]);
case 10:
throw new Error(
JSON.stringify({
code: m.OPERATION_FAIL,
msg:
JSON.stringify(o) || "anonymous signIn failed",
}),
);
}
});
});
}),
(t.prototype.linkAndRetrieveDataWithTicket = function (e) {
return p(this, void 0, void 0, function () {
var t, n, r, i, o, a, s;
return h(this, function (l) {
switch (l.label) {
case 0:
return (
_(e) ||
v(m.INVALID_PARAMS, "ticket must be a string"),
(t = this._cache.keys),
(n = t.anonymousUuidKey),
(r = t.refreshTokenKey),
[4, this._cache.getStoreAsync(n)]
);
case 1:
return (
(i = l.sent()),
[4, this._cache.getStoreAsync(r)]
);
case 2:
return (
(o = l.sent()),
[
4,
this._request.send(
"auth.linkAndRetrieveDataWithTicket",
{
anonymous_uuid: i,
refresh_token: o,
ticket: e,
},
),
]
);
case 3:
return (a = l.sent()).refresh_token
? [4, this._clearAnonymousUUID()]
: [3, 8];
case 4:
return (
l.sent(),
[4, this.setRefreshToken(a.refresh_token)]
);
case 5:
return (
l.sent(),
[4, this._request.refreshAccessToken()]
);
case 6:
return (
l.sent(),
c.eventBus.fire(c.EVENTS.ANONYMOUS_CONVERTED, {
env: this._config.env,
}),
c.eventBus.fire(c.EVENTS.LOGIN_TYPE_CHANGED, {
loginType: u.LOGINTYPE.CUSTOM,
persistence: "local",
}),
[
4,
(s = new c.LoginState({
envId: this._config.env,
cache: this._cache,
request: this._request,
})).checkLocalStateAsync(),
]
);
case 7:
return (l.sent(), [2, s]);
case 8:
(v(
m.OPERATION_FAIL,
JSON.stringify(a) ||
"linkAndRetrieveDataWithTicket failed",
),
(l.label = 9));
case 9:
return [2];
}
});
});
}),
(t.prototype._setAnonymousUUID = function (e) {
return p(this, void 0, void 0, function () {
var t, n, r;
return h(this, function (i) {
switch (i.label) {
case 0:
return (
(t = this._cache.keys),
(n = t.anonymousUuidKey),
(r = t.loginTypeKey),
[4, this._cache.removeStoreAsync(n)]
);
case 1:
return (
i.sent(),
[4, this._cache.setStoreAsync(n, e)]
);
case 2:
return (
i.sent(),
[
4,
this._cache.setStoreAsync(
r,
u.LOGINTYPE.ANONYMOUS,
),
]
);
case 3:
return (i.sent(), [2]);
}
});
});
}),
(t.prototype._clearAnonymousUUID = function () {
return p(this, void 0, void 0, function () {
return h(this, function (e) {
switch (e.label) {
case 0:
return [
4,
this._cache.removeStoreAsync(
this._cache.keys.anonymousUuidKey,
),
];
case 1:
return (e.sent(), [2]);
}
});
});
}),
(t.prototype._onConverted = function (e) {
return p(this, void 0, void 0, function () {
return h(this, function (t) {
switch (t.label) {
case 0:
return e.data.env !== this._config.env
? [2]
: [
4,
this._cache.updatePersistenceAsync(
this._config.persistence,
),
];
case 1:
return (t.sent(), [2]);
}
});
});
}),
d(
[
b({
title: "匿名登录失败",
messages: [
"请确认以下各项:",
" 1 - 当前环境是否开启了匿名登录",
" 2 - 调用 auth().anonymouseProvider().signIn() 的语法或参数是否正确",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
g,
],
}),
f("design:type", Function),
f("design:paramtypes", []),
f("design:returntype", Promise),
],
t.prototype,
"signIn",
null,
),
t
);
})(a.AuthProvider);
},
4522: function (e, t, n) {
"use strict";
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.AuthProvider = void 0));
var r = n(3442),
i = function (e, t, n, r) {
return new (n || (n = Promise))(function (i, o) {
function a(e) {
try {
u(r.next(e));
} catch (t) {
o(t);
}
}
function s(e) {
try {
u(r["throw"](e));
} catch (t) {
o(t);
}
}
function u(e) {
var t;
e.done
? i(e.value)
: ((t = e.value),
t instanceof n
? t
: new n(function (e) {
e(t);
})).then(a, s);
}
u((r = r.apply(e, t || [])).next());
});
},
o = function (e, t) {
var n,
r,
i,
o,
a = {
label: 0,
sent: function () {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: [],
};
return (
(o = { next: s(0), throw: s(1), return: s(2) }),
"function" == typeof Symbol &&
(o[Symbol.iterator] = function () {
return this;
}),
o
);
function s(o) {
return function (s) {
return (function (o) {
if (n)
throw new TypeError("Generator is already executing.");
for (; a; )
try {
if (
((n = 1),
r &&
(i =
2 & o[0]
? r["return"]
: o[0]
? r["throw"] ||
((i = r["return"]) && i.call(r), 0)
: r.next) &&
!(i = i.call(r, o[1])).done)
)
return i;
switch (
((r = 0), i && (o = [2 & o[0], i.value]), o[0])
) {
case 0:
case 1:
i = o;
break;
case 4:
return (a.label++, { value: o[1], done: !1 });
case 5:
(a.label++, (r = o[1]), (o = [0]));
continue;
case 7:
((o = a.ops.pop()), a.trys.pop());
continue;
default:
if (
!(
(i =
(i = a.trys).length > 0 &&
i[i.length - 1]) ||
(6 !== o[0] && 2 !== o[0])
)
) {
a = 0;
continue;
}
if (
3 === o[0] &&
(!i || (o[1] > i[0] && o[1] < i[3]))
) {
a.label = o[1];
break;
}
if (6 === o[0] && a.label < i[1]) {
((a.label = i[1]), (i = o));
break;
}
if (i && a.label < i[2]) {
((a.label = i[2]), a.ops.push(o));
break;
}
(i[2] && a.ops.pop(), a.trys.pop());
continue;
}
o = t.call(e, a);
} catch (s) {
((o = [6, s]), (r = 0));
} finally {
n = i = 0;
}
if (5 & o[0]) throw o[1];
return { value: o[0] ? o[1] : void 0, done: !0 };
})([o, s]);
};
}
};
t.AuthProvider = (function () {
function e(e) {
((this._config = e),
(this._cache = e.cache),
(this._request = e.request));
}
return (
(e.prototype.checkLocalLoginState = function () {
return i(this, void 0, void 0, function () {
var e, t, n, i, a, s;
return o(this, function (o) {
switch (o.label) {
case 0:
return (
(e = this._cache.keys),
(t = e.accessTokenKey),
(n = e.accessTokenExpireKey),
[4, this._cache.getStoreAsync(t)]
);
case 1:
return (
(i = o.sent()),
[4, this._cache.getStoreAsync(n)]
);
case 2:
return (
(a = o.sent()),
i
? a && a > Date.now()
? [
4,
(s = new r.LoginState({
envId: this._config.env,
cache: this._cache,
request: this._request,
})).checkLocalStateAsync(),
]
: [3, 4]
: [3, 7]
);
case 3:
return (o.sent(), [2, s]);
case 4:
return [4, this._cache.removeStoreAsync(t)];
case 5:
return (
o.sent(),
[4, this._cache.removeStoreAsync(n)]
);
case 6:
(o.sent(), (o.label = 7));
case 7:
return [2];
}
});
});
}),
(e.prototype.setRefreshToken = function (e) {
return i(this, void 0, void 0, function () {
var t, n, r, i;
return o(this, function (o) {
switch (o.label) {
case 0:
return (
(t = this._cache.keys),
(n = t.accessTokenKey),
(r = t.accessTokenExpireKey),
(i = t.refreshTokenKey),
[4, this._cache.removeStoreAsync(n)]
);
case 1:
return (
o.sent(),
[4, this._cache.removeStoreAsync(r)]
);
case 2:
return (
o.sent(),
[4, this._cache.setStoreAsync(i, e)]
);
case 3:
return (o.sent(), [2]);
}
});
});
}),
(e.prototype.setAccessToken = function (e, t) {
return i(this, void 0, void 0, function () {
var n, r, i;
return o(this, function (o) {
switch (o.label) {
case 0:
return (
(n = this._cache.keys),
(r = n.accessTokenKey),
(i = n.accessTokenExpireKey),
[4, this._cache.setStoreAsync(r, e)]
);
case 1:
return (
o.sent(),
[4, this._cache.setStoreAsync(i, t)]
);
case 2:
return (o.sent(), [2]);
}
});
});
}),
(e.prototype.refreshUserInfo = function () {
return i(this, void 0, void 0, function () {
var e;
return o(this, function (t) {
switch (t.label) {
case 0:
return [
4,
this._request.send("auth.getUserInfo", {}),
];
case 1:
return (
(e = t.sent().data),
[4, this.setLocalUserInfo(e)]
);
case 2:
return (t.sent(), [2, e]);
}
});
});
}),
(e.prototype.setLocalUserInfo = function (e) {
return i(this, void 0, void 0, function () {
var t;
return o(this, function (n) {
switch (n.label) {
case 0:
return (
(t = this._cache.keys.userInfoKey),
[4, this._cache.setStoreAsync(t, e)]
);
case 1:
return (n.sent(), [2]);
}
});
});
}),
e
);
})();
},
2007: function (e, t, n) {
"use strict";
var r = n(477);
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.CustomAuthProvider = void 0));
var i,
o = r(n(9367)),
a = n(2566),
s = n(4522),
u = n(1235),
c = n(3442),
l =
((i = function (e, t) {
return (
(i =
Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array &&
function (e, t) {
e.__proto__ = t;
}) ||
function (e, t) {
for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
}),
i(e, t)
);
}),
function (e, t) {
function n() {
this.constructor = e;
}
(i(e, t),
(e.prototype =
null === t
? Object.create(t)
: ((n.prototype = t.prototype), new n())));
}),
d = function (e, t, n, r) {
var i,
a = arguments.length,
s =
a < 3
? t
: null === r
? (r = Object.getOwnPropertyDescriptor(t, n))
: r;
if (
"object" ===
("undefined" == typeof Reflect
? "undefined"
: (0, o["default"])(Reflect)) &&
"function" == typeof Reflect.decorate
)
s = Reflect.decorate(e, t, n, r);
else
for (var u = e.length - 1; u >= 0; u--)
(i = e[u]) &&
(s = (a < 3 ? i(s) : a > 3 ? i(t, n, s) : i(t, n)) || s);
return (a > 3 && s && Object.defineProperty(t, n, s), s);
},
f = function (e, t) {
if (
"object" ===
("undefined" == typeof Reflect
? "undefined"
: (0, o["default"])(Reflect)) &&
"function" == typeof Reflect.metadata
)
return Reflect.metadata(e, t);
},
p = function (e, t, n, r) {
return new (n || (n = Promise))(function (i, o) {
function a(e) {
try {
u(r.next(e));
} catch (t) {
o(t);
}
}
function s(e) {
try {
u(r["throw"](e));
} catch (t) {
o(t);
}
}
function u(e) {
var t;
e.done
? i(e.value)
: ((t = e.value),
t instanceof n
? t
: new n(function (e) {
e(t);
})).then(a, s);
}
u((r = r.apply(e, t || [])).next());
});
},
h = function (e, t) {
var n,
r,
i,
o,
a = {
label: 0,
sent: function () {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: [],
};
return (
(o = { next: s(0), throw: s(1), return: s(2) }),
"function" == typeof Symbol &&
(o[Symbol.iterator] = function () {
return this;
}),
o
);
function s(o) {
return function (s) {
return (function (o) {
if (n)
throw new TypeError("Generator is already executing.");
for (; a; )
try {
if (
((n = 1),
r &&
(i =
2 & o[0]
? r["return"]
: o[0]
? r["throw"] ||
((i = r["return"]) && i.call(r), 0)
: r.next) &&
!(i = i.call(r, o[1])).done)
)
return i;
switch (
((r = 0), i && (o = [2 & o[0], i.value]), o[0])
) {
case 0:
case 1:
i = o;
break;
case 4:
return (a.label++, { value: o[1], done: !1 });
case 5:
(a.label++, (r = o[1]), (o = [0]));
continue;
case 7:
((o = a.ops.pop()), a.trys.pop());
continue;
default:
if (
!(
(i =
(i = a.trys).length > 0 &&
i[i.length - 1]) ||
(6 !== o[0] && 2 !== o[0])
)
) {
a = 0;
continue;
}
if (
3 === o[0] &&
(!i || (o[1] > i[0] && o[1] < i[3]))
) {
a.label = o[1];
break;
}
if (6 === o[0] && a.label < i[1]) {
((a.label = i[1]), (i = o));
break;
}
if (i && a.label < i[2]) {
((a.label = i[2]), a.ops.push(o));
break;
}
(i[2] && a.ops.pop(), a.trys.pop());
continue;
}
o = t.call(e, a);
} catch (s) {
((o = [6, s]), (r = 0));
} finally {
n = i = 0;
}
if (5 & o[0]) throw o[1];
return { value: o[0] ? o[1] : void 0, done: !0 };
})([o, s]);
};
}
},
m = a.constants.ERRORS,
g = a.constants.COMMUNITY_SITE_URL,
v = a.utils.isString,
_ = a.helpers.catchErrorsDecorator;
t.CustomAuthProvider = (function (e) {
function t() {
return (null !== e && e.apply(this, arguments)) || this;
}
return (
l(t, e),
(t.prototype.signIn = function (e) {
return p(this, void 0, void 0, function () {
var t, n, r, i, o, a, s;
return h(this, function (l) {
switch (l.label) {
case 0:
if (!v(e))
throw new Error(
JSON.stringify({
code: m.INVALID_PARAMS,
msg: "ticket must be a string",
}),
);
return (
(t = this._cache.keys.refreshTokenKey),
(i = (r = this._request).send),
(o = ["auth.signInWithTicket"]),
(a = { ticket: e }),
[4, this._cache.getStoreAsync(t)]
);
case 1:
return [
4,
i.apply(
r,
o.concat([
((a.refresh_token = l.sent() || ""), a),
]),
),
];
case 2:
return (n = l.sent()).refresh_token
? [4, this.setRefreshToken(n.refresh_token)]
: [3, 7];
case 3:
return (
l.sent(),
[4, this._request.refreshAccessToken()]
);
case 4:
return (
l.sent(),
c.eventBus.fire(c.EVENTS.LOGIN_TYPE_CHANGED, {
env: this._config.env,
loginType: u.LOGINTYPE.CUSTOM,
persistence: this._config.persistence,
}),
c.eventBus.fire(c.EVENTS.LOGIN_STATE_CHANGED),
[4, this.refreshUserInfo()]
);
case 5:
return (
l.sent(),
[
4,
(s = new c.LoginState({
envId: this._config.env,
cache: this._cache,
request: this._request,
})).checkLocalStateAsync(),
]
);
case 6:
return (l.sent(), [2, s]);
case 7:
throw new Error(
JSON.stringify({
code: m.OPERATION_FAIL,
msg: "custom signIn failed",
}),
);
}
});
});
}),
d(
[
_({
title: "自定义登录失败",
messages: [
"请确认以下各项:",
" 1 - 当前环境是否开启了自定义登录",
" 2 - 调用 auth().customAuthProvider().signIn() 的语法或参数是否正确",
" 3 - ticket 是否归属于当前环境",
" 4 - 创建 ticket 的自定义登录私钥是否过期",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
g,
],
}),
f("design:type", Function),
f("design:paramtypes", [String]),
f("design:returntype", Promise),
],
t.prototype,
"signIn",
null,
),
t
);
})(s.AuthProvider);
},
7036: function (e, t, n) {
"use strict";
var r = n(477);
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.EmailAuthProvider = void 0));
var i,
o = r(n(9367)),
a = n(2566),
s = n(4522),
u = n(1235),
c = n(3442),
l =
((i = function (e, t) {
return (
(i =
Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array &&
function (e, t) {
e.__proto__ = t;
}) ||
function (e, t) {
for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
}),
i(e, t)
);
}),
function (e, t) {
function n() {
this.constructor = e;
}
(i(e, t),
(e.prototype =
null === t
? Object.create(t)
: ((n.prototype = t.prototype), new n())));
}),
d = function (e, t, n, r) {
var i,
a = arguments.length,
s =
a < 3
? t
: null === r
? (r = Object.getOwnPropertyDescriptor(t, n))
: r;
if (
"object" ===
("undefined" == typeof Reflect
? "undefined"
: (0, o["default"])(Reflect)) &&
"function" == typeof Reflect.decorate
)
s = Reflect.decorate(e, t, n, r);
else
for (var u = e.length - 1; u >= 0; u--)
(i = e[u]) &&
(s = (a < 3 ? i(s) : a > 3 ? i(t, n, s) : i(t, n)) || s);
return (a > 3 && s && Object.defineProperty(t, n, s), s);
},
f = function (e, t) {
if (
"object" ===
("undefined" == typeof Reflect
? "undefined"
: (0, o["default"])(Reflect)) &&
"function" == typeof Reflect.metadata
)
return Reflect.metadata(e, t);
},
p = function (e, t, n, r) {
return new (n || (n = Promise))(function (i, o) {
function a(e) {
try {
u(r.next(e));
} catch (t) {
o(t);
}
}
function s(e) {
try {
u(r["throw"](e));
} catch (t) {
o(t);
}
}
function u(e) {
var t;
e.done
? i(e.value)
: ((t = e.value),
t instanceof n
? t
: new n(function (e) {
e(t);
})).then(a, s);
}
u((r = r.apply(e, t || [])).next());
});
},
h = function (e, t) {
var n,
r,
i,
o,
a = {
label: 0,
sent: function () {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: [],
};
return (
(o = { next: s(0), throw: s(1), return: s(2) }),
"function" == typeof Symbol &&
(o[Symbol.iterator] = function () {
return this;
}),
o
);
function s(o) {
return function (s) {
return (function (o) {
if (n)
throw new TypeError("Generator is already executing.");
for (; a; )
try {
if (
((n = 1),
r &&
(i =
2 & o[0]
? r["return"]
: o[0]
? r["throw"] ||
((i = r["return"]) && i.call(r), 0)
: r.next) &&
!(i = i.call(r, o[1])).done)
)
return i;
switch (
((r = 0), i && (o = [2 & o[0], i.value]), o[0])
) {
case 0:
case 1:
i = o;
break;
case 4:
return (a.label++, { value: o[1], done: !1 });
case 5:
(a.label++, (r = o[1]), (o = [0]));
continue;
case 7:
((o = a.ops.pop()), a.trys.pop());
continue;
default:
if (
!(
(i =
(i = a.trys).length > 0 &&
i[i.length - 1]) ||
(6 !== o[0] && 2 !== o[0])
)
) {
a = 0;
continue;
}
if (
3 === o[0] &&
(!i || (o[1] > i[0] && o[1] < i[3]))
) {
a.label = o[1];
break;
}
if (6 === o[0] && a.label < i[1]) {
((a.label = i[1]), (i = o));
break;
}
if (i && a.label < i[2]) {
((a.label = i[2]), a.ops.push(o));
break;
}
(i[2] && a.ops.pop(), a.trys.pop());
continue;
}
o = t.call(e, a);
} catch (s) {
((o = [6, s]), (r = 0));
} finally {
n = i = 0;
}
if (5 & o[0]) throw o[1];
return { value: o[0] ? o[1] : void 0, done: !0 };
})([o, s]);
};
}
},
m = a.utils.throwError,
g = a.utils.isString,
v = a.constants.ERRORS,
_ = a.constants.COMMUNITY_SITE_URL,
y = a.helpers.catchErrorsDecorator;
t.EmailAuthProvider = (function (e) {
function t() {
return (null !== e && e.apply(this, arguments)) || this;
}
return (
l(t, e),
(t.prototype.signIn = function (e, t) {
return p(this, void 0, void 0, function () {
var n, r, i, o, a;
return h(this, function (s) {
switch (s.label) {
case 0:
return (
g(e) ||
m(v.INVALID_PARAMS, "email must be a string"),
(n = this._cache.keys.refreshTokenKey),
[
4,
this._request.send("auth.signIn", {
loginType: "EMAIL",
email: e,
password: t,
refresh_token: this._cache.getStore(n) || "",
}),
]
);
case 1:
return (
(r = s.sent()),
(i = r.refresh_token),
(o = r.access_token),
(a = r.access_token_expire),
i ? [4, this.setRefreshToken(i)] : [3, 8]
);
case 2:
return (
s.sent(),
o && a ? [4, this.setAccessToken(o, a)] : [3, 4]
);
case 3:
return (s.sent(), [3, 6]);
case 4:
return [4, this._request.refreshAccessToken()];
case 5:
(s.sent(), (s.label = 6));
case 6:
return [4, this.refreshUserInfo()];
case 7:
return (
s.sent(),
c.eventBus.fire(c.EVENTS.LOGIN_STATE_CHANGED),
c.eventBus.fire(c.EVENTS.LOGIN_TYPE_CHANGED, {
env: this._config.env,
loginType: u.LOGINTYPE.EMAIL,
persistence: this._config.persistence,
}),
[
2,
new c.LoginState({
envId: this._config.env,
cache: this._cache,
request: this._request,
}),
]
);
case 8:
(r.code
? m(
v.OPERATION_FAIL,
"Email login fail[" + r.code + "] " + r.message,
)
: m(v.OPERATION_FAIL, "Email login fail"),
(s.label = 9));
case 9:
return [2];
}
});
});
}),
(t.prototype.signUp = function (e, t) {
return p(this, void 0, void 0, function () {
return h(this, function (n) {
return [
2,
this._request.send("auth.signUpWithEmailAndPassword", {
email: e,
password: t,
}),
];
});
});
}),
(t.prototype.resetPassword = function (e) {
return p(this, void 0, void 0, function () {
return h(this, function (t) {
return [
2,
this._request.send("auth.sendPasswordResetEmail", {
email: e,
}),
];
});
});
}),
(t.prototype.resetPasswordWithToken = function (e, t) {
return p(this, void 0, void 0, function () {
return h(this, function (n) {
return [
2,
this._request.send("auth.resetPasswordWithToken", {
token: e,
newPassword: t,
}),
];
});
});
}),
(t.prototype.activate = function (e) {
return p(this, void 0, void 0, function () {
return h(this, function (t) {
return [
2,
this._request.send("auth.activateEndUserMail", {
token: e,
}),
];
});
});
}),
d(
[
y({
title: "邮箱密码登录失败",
messages: [
"请确认以下各项:",
" 1 - 调用 auth().emailAuthProvider() 的语法或参数是否正确",
" 2 - 当前环境是否开通了邮箱登录",
" 3 - 邮箱地址与密码是否匹配",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
_,
],
}),
f("design:type", Function),
f("design:paramtypes", [String, String]),
f("design:returntype", Promise),
],
t.prototype,
"signIn",
null,
),
d(
[
y({
title: "邮箱注册失败",
messages: [
"请确认以下各项:",
" 1 - 调用 auth().signUpWithEmailAndPassword() 的语法或参数是否正确",
" 2 - 当前环境是否开通了邮箱登录",
" 3 - 此邮箱地址是否已经被其他用户占用",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
_,
],
}),
f("design:type", Function),
f("design:paramtypes", [String, String]),
f("design:returntype", Promise),
],
t.prototype,
"signUp",
null,
),
d(
[
y({
title: "重置密码失败",
messages: [
"请确认以下各项:",
" 1 - 调用 auth().sendPasswordResetEmail() 的语法或参数是否正确",
" 2 - 当前环境是否开通了邮箱登录",
" 3 - 此邮箱地址是否已经与当前用户绑定",
" 4 - 此邮箱地址是否已经被其他用户占用",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
_,
],
}),
f("design:type", Function),
f("design:paramtypes", [String]),
f("design:returntype", Promise),
],
t.prototype,
"resetPassword",
null,
),
d(
[
y({
title: "重置密码失败",
messages: [
"请确认以下各项:",
" 1 - 调用语法或参数是否正确",
" 2 - 当前环境是否开通了邮箱登录",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
_,
],
}),
f("design:type", Function),
f("design:paramtypes", [String, String]),
f("design:returntype", Promise),
],
t.prototype,
"resetPasswordWithToken",
null,
),
d(
[
y({
title: "邮箱激活失败",
messages: [
"请确认以下各项:",
" 1 - 调用语法或参数是否正确",
" 2 - 当前环境是否开通了邮箱登录",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
_,
],
}),
f("design:type", Function),
f("design:paramtypes", [String]),
f("design:returntype", Promise),
],
t.prototype,
"activate",
null,
),
t
);
})(s.AuthProvider);
},
2424: function (e, t, n) {
"use strict";
var r = n(477);
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.SIGN_METHOD = t.PhoneAuthProvider = void 0));
var i,
o = r(n(9367)),
a = n(2566),
s = n(4522),
u = n(1235),
c = n(3442),
l =
((i = function (e, t) {
return (
(i =
Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array &&
function (e, t) {
e.__proto__ = t;
}) ||
function (e, t) {
for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
}),
i(e, t)
);
}),
function (e, t) {
function n() {
this.constructor = e;
}
(i(e, t),
(e.prototype =
null === t
? Object.create(t)
: ((n.prototype = t.prototype), new n())));
}),
d = function (e, t, n, r) {
var i,
a = arguments.length,
s =
a < 3
? t
: null === r
? (r = Object.getOwnPropertyDescriptor(t, n))
: r;
if (
"object" ===
("undefined" == typeof Reflect
? "undefined"
: (0, o["default"])(Reflect)) &&
"function" == typeof Reflect.decorate
)
s = Reflect.decorate(e, t, n, r);
else
for (var u = e.length - 1; u >= 0; u--)
(i = e[u]) &&
(s = (a < 3 ? i(s) : a > 3 ? i(t, n, s) : i(t, n)) || s);
return (a > 3 && s && Object.defineProperty(t, n, s), s);
},
f = function (e, t) {
if (
"object" ===
("undefined" == typeof Reflect
? "undefined"
: (0, o["default"])(Reflect)) &&
"function" == typeof Reflect.metadata
)
return Reflect.metadata(e, t);
},
p = function (e, t, n, r) {
return new (n || (n = Promise))(function (i, o) {
function a(e) {
try {
u(r.next(e));
} catch (t) {
o(t);
}
}
function s(e) {
try {
u(r["throw"](e));
} catch (t) {
o(t);
}
}
function u(e) {
var t;
e.done
? i(e.value)
: ((t = e.value),
t instanceof n
? t
: new n(function (e) {
e(t);
})).then(a, s);
}
u((r = r.apply(e, t || [])).next());
});
},
h = function (e, t) {
var n,
r,
i,
o,
a = {
label: 0,
sent: function () {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: [],
};
return (
(o = { next: s(0), throw: s(1), return: s(2) }),
"function" == typeof Symbol &&
(o[Symbol.iterator] = function () {
return this;
}),
o
);
function s(o) {
return function (s) {
return (function (o) {
if (n)
throw new TypeError("Generator is already executing.");
for (; a; )
try {
if (
((n = 1),
r &&
(i =
2 & o[0]
? r["return"]
: o[0]
? r["throw"] ||
((i = r["return"]) && i.call(r), 0)
: r.next) &&
!(i = i.call(r, o[1])).done)
)
return i;
switch (
((r = 0), i && (o = [2 & o[0], i.value]), o[0])
) {
case 0:
case 1:
i = o;
break;
case 4:
return (a.label++, { value: o[1], done: !1 });
case 5:
(a.label++, (r = o[1]), (o = [0]));
continue;
case 7:
((o = a.ops.pop()), a.trys.pop());
continue;
default:
if (
!(
(i =
(i = a.trys).length > 0 &&
i[i.length - 1]) ||
(6 !== o[0] && 2 !== o[0])
)
) {
a = 0;
continue;
}
if (
3 === o[0] &&
(!i || (o[1] > i[0] && o[1] < i[3]))
) {
a.label = o[1];
break;
}
if (6 === o[0] && a.label < i[1]) {
((a.label = i[1]), (i = o));
break;
}
if (i && a.label < i[2]) {
((a.label = i[2]), a.ops.push(o));
break;
}
(i[2] && a.ops.pop(), a.trys.pop());
continue;
}
o = t.call(e, a);
} catch (s) {
((o = [6, s]), (r = 0));
} finally {
n = i = 0;
}
if (5 & o[0]) throw o[1];
return { value: o[0] ? o[1] : void 0, done: !0 };
})([o, s]);
};
}
},
m = a.utils.throwError,
g = a.utils.isString,
v = a.utils.transformPhone,
_ = a.constants.ERRORS,
y = a.constants.COMMUNITY_SITE_URL,
b = a.helpers.catchErrorsDecorator,
k = (t.SIGN_METHOD = {
SIGNIN: "SIGNIN",
SIGNUP: "SIGNUP",
FORCERESETPWD: "FORCERESETPWD",
});
t.PhoneAuthProvider = (function (e) {
function t() {
return (null !== e && e.apply(this, arguments)) || this;
}
return (
l(t, e),
(t.prototype.signIn = function (e) {
return p(this, void 0, void 0, function () {
var t, n, r, i, o, a, s, l, d;
return h(this, function (f) {
switch (f.label) {
case 0:
return (
(t = e.phoneNumber),
(n = e.phoneCode),
(r = e.password),
(i = e.signMethod),
g(t) ||
m(
_.INVALID_PARAMS,
"phoneNumber must be a string",
),
g(n) ||
g(r) ||
m(
_.INVALID_PARAMS,
"phoneCode or password must be a string",
),
i || (i = k.SIGNIN),
(o = this._cache.keys.refreshTokenKey),
[
4,
this._request.send("auth.signIn", {
loginType: u.LOGINTYPE.PHONE,
phoneNumber: v(t),
phoneCode: n,
password: r,
refresh_token: this._cache.getStore(o) || "",
signMethod: i,
}),
]
);
case 1:
return (
(a = f.sent()),
(s = a.refresh_token),
(l = a.access_token),
(d = a.access_token_expire),
s ? [4, this.setRefreshToken(s)] : [3, 8]
);
case 2:
return (
f.sent(),
l && d ? [4, this.setAccessToken(l, d)] : [3, 4]
);
case 3:
return (f.sent(), [3, 6]);
case 4:
return [4, this._request.refreshAccessToken()];
case 5:
(f.sent(), (f.label = 6));
case 6:
return [4, this.refreshUserInfo()];
case 7:
return (
f.sent(),
c.eventBus.fire(c.EVENTS.LOGIN_STATE_CHANGED),
c.eventBus.fire(c.EVENTS.LOGIN_TYPE_CHANGED, {
env: this._config.env,
loginType: u.LOGINTYPE.PHONE,
persistence: this._config.persistence,
}),
[
2,
new c.LoginState({
envId: this._config.env,
cache: this._cache,
request: this._request,
}),
]
);
case 8:
(a.code
? m(
_.OPERATION_FAIL,
"Phone login fail[" + a.code + "] " + a.message,
)
: m(_.OPERATION_FAIL, "Phone login fail"),
(f.label = 9));
case 9:
return [2];
}
});
});
}),
(t.prototype.signUp = function (e, t, n) {
return p(this, void 0, void 0, function () {
return h(this, function (r) {
return [
2,
this.signIn({
phoneNumber: e,
phoneCode: t,
password: n,
signMethod: k.SIGNUP,
}),
];
});
});
}),
(t.prototype.forceResetPwd = function (e, t, n) {
return p(this, void 0, void 0, function () {
return h(this, function (r) {
return [
2,
this.signIn({
phoneNumber: e,
phoneCode: t,
password: n,
signMethod: k.FORCERESETPWD,
}),
];
});
});
}),
d(
[
b({
title: "手机号登录失败",
messages: [
"请确认以下各项:",
" 1 - 调用 auth().SmsAuthProvider() 的语法或参数是否正确",
" 2 - 当前环境是否开通了短信验证码登录",
" 3 - 短信验证码/密码是否正确",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
y,
],
}),
f("design:type", Function),
f("design:paramtypes", [Object]),
f("design:returntype", Promise),
],
t.prototype,
"signIn",
null,
),
d(
[
b({
title: "手机短信注册失败",
messages: [
"请确认以下各项:",
" 1 - 调用 auth().signUpWithPhoneCode() 的语法或参数是否正确",
" 2 - 当前环境是否开通了短信验证码登录",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
y,
],
}),
f("design:type", Function),
f("design:paramtypes", [String, String, String]),
f("design:returntype", Promise),
],
t.prototype,
"signUp",
null,
),
d(
[
b({
title: "手机密码重置失败",
messages: [
"请确认以下各项:",
" 1 - 调用 auth().forceResetPwd() 的语法或参数是否正确",
" 2 - 当前环境是否开通了短信验证码登录",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
y,
],
}),
f("design:type", Function),
f("design:paramtypes", [String, String, String]),
f("design:returntype", Promise),
],
t.prototype,
"forceResetPwd",
null,
),
t
);
})(s.AuthProvider);
},
9676: function (e, t, n) {
"use strict";
var r = n(477);
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.UsernameAuthProvider = void 0));
var i,
o = r(n(9367)),
a = n(4522),
s = n(3442),
u = n(1235),
c = n(2566),
l =
((i = function (e, t) {
return (
(i =
Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array &&
function (e, t) {
e.__proto__ = t;
}) ||
function (e, t) {
for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
}),
i(e, t)
);
}),
function (e, t) {
function n() {
this.constructor = e;
}
(i(e, t),
(e.prototype =
null === t
? Object.create(t)
: ((n.prototype = t.prototype), new n())));
}),
d = function (e, t, n, r) {
var i,
a = arguments.length,
s =
a < 3
? t
: null === r
? (r = Object.getOwnPropertyDescriptor(t, n))
: r;
if (
"object" ===
("undefined" == typeof Reflect
? "undefined"
: (0, o["default"])(Reflect)) &&
"function" == typeof Reflect.decorate
)
s = Reflect.decorate(e, t, n, r);
else
for (var u = e.length - 1; u >= 0; u--)
(i = e[u]) &&
(s = (a < 3 ? i(s) : a > 3 ? i(t, n, s) : i(t, n)) || s);
return (a > 3 && s && Object.defineProperty(t, n, s), s);
},
f = function (e, t) {
if (
"object" ===
("undefined" == typeof Reflect
? "undefined"
: (0, o["default"])(Reflect)) &&
"function" == typeof Reflect.metadata
)
return Reflect.metadata(e, t);
},
p = function (e, t, n, r) {
return new (n || (n = Promise))(function (i, o) {
function a(e) {
try {
u(r.next(e));
} catch (t) {
o(t);
}
}
function s(e) {
try {
u(r["throw"](e));
} catch (t) {
o(t);
}
}
function u(e) {
var t;
e.done
? i(e.value)
: ((t = e.value),
t instanceof n
? t
: new n(function (e) {
e(t);
})).then(a, s);
}
u((r = r.apply(e, t || [])).next());
});
},
h = function (e, t) {
var n,
r,
i,
o,
a = {
label: 0,
sent: function () {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: [],
};
return (
(o = { next: s(0), throw: s(1), return: s(2) }),
"function" == typeof Symbol &&
(o[Symbol.iterator] = function () {
return this;
}),
o
);
function s(o) {
return function (s) {
return (function (o) {
if (n)
throw new TypeError("Generator is already executing.");
for (; a; )
try {
if (
((n = 1),
r &&
(i =
2 & o[0]
? r["return"]
: o[0]
? r["throw"] ||
((i = r["return"]) && i.call(r), 0)
: r.next) &&
!(i = i.call(r, o[1])).done)
)
return i;
switch (
((r = 0), i && (o = [2 & o[0], i.value]), o[0])
) {
case 0:
case 1:
i = o;
break;
case 4:
return (a.label++, { value: o[1], done: !1 });
case 5:
(a.label++, (r = o[1]), (o = [0]));
continue;
case 7:
((o = a.ops.pop()), a.trys.pop());
continue;
default:
if (
!(
(i =
(i = a.trys).length > 0 &&
i[i.length - 1]) ||
(6 !== o[0] && 2 !== o[0])
)
) {
a = 0;
continue;
}
if (
3 === o[0] &&
(!i || (o[1] > i[0] && o[1] < i[3]))
) {
a.label = o[1];
break;
}
if (6 === o[0] && a.label < i[1]) {
((a.label = i[1]), (i = o));
break;
}
if (i && a.label < i[2]) {
((a.label = i[2]), a.ops.push(o));
break;
}
(i[2] && a.ops.pop(), a.trys.pop());
continue;
}
o = t.call(e, a);
} catch (s) {
((o = [6, s]), (r = 0));
} finally {
n = i = 0;
}
if (5 & o[0]) throw o[1];
return { value: o[0] ? o[1] : void 0, done: !0 };
})([o, s]);
};
}
},
m = c.utils.printWarn,
g = c.constants.ERRORS,
v = c.constants.COMMUNITY_SITE_URL,
_ = c.helpers.catchErrorsDecorator;
t.UsernameAuthProvider = (function (e) {
function t() {
return (null !== e && e.apply(this, arguments)) || this;
}
return (
l(t, e),
(t.prototype.signIn = function (e, t) {
return p(this, void 0, void 0, function () {
var n, r, i, o, a, c, l, d, f;
return h(this, function (p) {
switch (p.label) {
case 0:
if ("string" != typeof e)
throw new Error(
JSON.stringify({
code: g.INVALID_PARAMS,
msg: "username must be a string",
}),
);
return (
"string" != typeof t &&
((t = ""),
m(g.INVALID_PARAMS, "password is empty")),
(n = this._cache.keys.refreshTokenKey),
(o = (i = this._request).send),
(a = ["auth.signIn"]),
(c = {
loginType: u.LOGINTYPE.USERNAME,
username: e,
password: t,
}),
[4, this._cache.getStoreAsync(n)]
);
case 1:
return [
4,
o.apply(
i,
a.concat([
((c.refresh_token = p.sent() || ""), c),
]),
),
];
case 2:
return (
(r = p.sent()),
(l = r.refresh_token),
(d = r.access_token_expire),
(f = r.access_token),
l ? [4, this.setRefreshToken(l)] : [3, 9]
);
case 3:
return (
p.sent(),
f && d ? [4, this.setAccessToken(f, d)] : [3, 5]
);
case 4:
return (p.sent(), [3, 7]);
case 5:
return [4, this._request.refreshAccessToken()];
case 6:
(p.sent(), (p.label = 7));
case 7:
return [4, this.refreshUserInfo()];
case 8:
return (
p.sent(),
s.eventBus.fire(s.EVENTS.LOGIN_STATE_CHANGED),
s.eventBus.fire(s.EVENTS.LOGIN_TYPE_CHANGED, {
env: this._config.env,
loginType: u.LOGINTYPE.USERNAME,
persistence: this._config.persistence,
}),
[
2,
new s.LoginState({
envId: this._config.env,
cache: this._cache,
request: this._request,
}),
]
);
case 9:
throw r.code
? new Error(
JSON.stringify({
code: g.OPERATION_FAIL,
msg:
"login by username failed:[" +
r.code +
"] " +
r.message,
}),
)
: new Error(
JSON.stringify({
code: g.OPERATION_FAIL,
msg: "login by username failed",
}),
);
case 10:
return [2];
}
});
});
}),
d(
[
_({
title: "用户名密码登录失败",
messages: [
"请确认以下各项:",
" 1 - 调用 auth().signInWithUsernameAndPassword() 的语法或参数是否正确",
" 2 - 当前环境是否开通了用户名密码登录",
" 3 - 用户名密码是否匹配",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
v,
],
}),
f("design:type", Function),
f("design:paramtypes", [String, String]),
f("design:returntype", Promise),
],
t.prototype,
"signIn",
null,
),
t
);
})(a.AuthProvider);
},
9250: function (e, t, n) {
"use strict";
var r = n(477);
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.WeixinAuthProvider = void 0));
var i,
o = r(n(9367)),
a = n(4522),
s = n(2566),
u = n(3442),
c = n(1235),
l =
((i = function (e, t) {
return (
(i =
Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array &&
function (e, t) {
e.__proto__ = t;
}) ||
function (e, t) {
for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
}),
i(e, t)
);
}),
function (e, t) {
function n() {
this.constructor = e;
}
(i(e, t),
(e.prototype =
null === t
? Object.create(t)
: ((n.prototype = t.prototype), new n())));
}),
d = function (e, t, n, r) {
var i,
a = arguments.length,
s =
a < 3
? t
: null === r
? (r = Object.getOwnPropertyDescriptor(t, n))
: r;
if (
"object" ===
("undefined" == typeof Reflect
? "undefined"
: (0, o["default"])(Reflect)) &&
"function" == typeof Reflect.decorate
)
s = Reflect.decorate(e, t, n, r);
else
for (var u = e.length - 1; u >= 0; u--)
(i = e[u]) &&
(s = (a < 3 ? i(s) : a > 3 ? i(t, n, s) : i(t, n)) || s);
return (a > 3 && s && Object.defineProperty(t, n, s), s);
},
f = function (e, t) {
if (
"object" ===
("undefined" == typeof Reflect
? "undefined"
: (0, o["default"])(Reflect)) &&
"function" == typeof Reflect.metadata
)
return Reflect.metadata(e, t);
},
p = function (e, t, n, r) {
return new (n || (n = Promise))(function (i, o) {
function a(e) {
try {
u(r.next(e));
} catch (t) {
o(t);
}
}
function s(e) {
try {
u(r["throw"](e));
} catch (t) {
o(t);
}
}
function u(e) {
var t;
e.done
? i(e.value)
: ((t = e.value),
t instanceof n
? t
: new n(function (e) {
e(t);
})).then(a, s);
}
u((r = r.apply(e, t || [])).next());
});
},
h = function (e, t) {
var n,
r,
i,
o,
a = {
label: 0,
sent: function () {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: [],
};
return (
(o = { next: s(0), throw: s(1), return: s(2) }),
"function" == typeof Symbol &&
(o[Symbol.iterator] = function () {
return this;
}),
o
);
function s(o) {
return function (s) {
return (function (o) {
if (n)
throw new TypeError("Generator is already executing.");
for (; a; )
try {
if (
((n = 1),
r &&
(i =
2 & o[0]
? r["return"]
: o[0]
? r["throw"] ||
((i = r["return"]) && i.call(r), 0)
: r.next) &&
!(i = i.call(r, o[1])).done)
)
return i;
switch (
((r = 0), i && (o = [2 & o[0], i.value]), o[0])
) {
case 0:
case 1:
i = o;
break;
case 4:
return (a.label++, { value: o[1], done: !1 });
case 5:
(a.label++, (r = o[1]), (o = [0]));
continue;
case 7:
((o = a.ops.pop()), a.trys.pop());
continue;
default:
if (
!(
(i =
(i = a.trys).length > 0 &&
i[i.length - 1]) ||
(6 !== o[0] && 2 !== o[0])
)
) {
a = 0;
continue;
}
if (
3 === o[0] &&
(!i || (o[1] > i[0] && o[1] < i[3]))
) {
a.label = o[1];
break;
}
if (6 === o[0] && a.label < i[1]) {
((a.label = i[1]), (i = o));
break;
}
if (i && a.label < i[2]) {
((a.label = i[2]), a.ops.push(o));
break;
}
(i[2] && a.ops.pop(), a.trys.pop());
continue;
}
o = t.call(e, a);
} catch (s) {
((o = [6, s]), (r = 0));
} finally {
n = i = 0;
}
if (5 & o[0]) throw o[1];
return { value: o[0] ? o[1] : void 0, done: !0 };
})([o, s]);
};
}
},
m = s.constants.getSdkName,
g = s.constants.ERRORS,
v = s.constants.COMMUNITY_SITE_URL,
_ = s.adapters.RUNTIME,
y = s.utils.getQuery,
b = s.utils.getHash,
k = s.utils.removeParam,
w = s.utils.printWarn,
E = s.helpers.catchErrorsDecorator;
function A() {
return y("code") || b("code");
}
t.WeixinAuthProvider = (function (e) {
function t(t, n, r, i) {
var o = e.call(this, t) || this;
return (
(o._runtime = t.runtime),
(o._appid = n),
(o._scope = r),
(o._state = i || "weixin"),
o
);
}
return (
l(t, e),
(t.prototype.signIn = function () {
return p(this, void 0, void 0, function () {
return h(this, function (e) {
return [
2,
w(
g.OPERATION_FAIL,
"API signIn has been deprecated, please use signInWithRedirect insteed",
),
];
});
});
}),
(t.prototype.signInWithRedirect = function () {
return p(this, void 0, void 0, function () {
return h(this, function (e) {
return [2, this._redirect()];
});
});
}),
(t.prototype.getRedirectResult = function (e) {
return p(this, void 0, void 0, function () {
var t;
return h(this, function (n) {
return (t = A())
? [2, this._signInWithCode(t, e)]
: [2, null];
});
});
}),
(t.prototype.getLinkRedirectResult = function (e) {
return (
void 0 === e && (e = {}),
p(this, void 0, void 0, function () {
var t, n, r, i, o, a;
return h(this, function (s) {
return (
(t = e.withUnionId),
(n = void 0 !== t && t),
(r = A())
? ((i = this._appid),
(u = this._scope),
(o =
"snsapi_login" === u
? "WECHAT-OPEN"
: "WECHAT-PUBLIC"),
(a = this._runtime === _.WX_MP ? "1" : "0"),
[
2,
this._request.send("auth.linkWithWeixinCode", {
payload: {
appid: i,
loginType: o,
code: r,
hybridMiniapp: a,
withUnionId: n,
},
}),
])
: [2, null]
);
var u;
});
})
);
}),
(t.prototype._redirect = function () {
var e = k("code", location.href);
((e = k("state", e)), (e = encodeURIComponent(e)));
var t = "//open.weixin.qq.com/connect/oauth2/authorize";
"snsapi_login" === this._scope &&
(t = "//open.weixin.qq.com/connect/qrconnect");
try {
location.href =
t +
"?appid=" +
this._appid +
"&redirect_uri=" +
e +
"&response_type=code&scope=" +
this._scope +
"&state=" +
this._state +
"#wechat_redirect";
} catch (n) {
throw new Error(
"[" + m() + "][" + g.UNKOWN_ERROR + "]" + n,
);
}
}),
(t.prototype._signInWithCode = function (e, t) {
return p(this, void 0, void 0, function () {
var n, r, i, o, a, s, l, d;
return h(this, function (f) {
switch (f.label) {
case 0:
return (
(n = this._cache.keys),
(r = n.accessTokenKey),
(i = n.accessTokenExpireKey),
(o = n.refreshTokenKey),
(p = this._scope),
(a =
"snsapi_login" === p
? "WECHAT-OPEN"
: "WECHAT-PUBLIC"),
[
4,
this._getRefreshTokenByWXCode(
this._appid,
a,
e,
t,
),
]
);
case 1:
return (
(s = f.sent()),
(l = s.refreshToken),
[4, this._cache.setStoreAsync(o, l)]
);
case 2:
return (
f.sent(),
s.accessToken
? [4, this._cache.setStoreAsync(r, s.accessToken)]
: [3, 4]
);
case 3:
(f.sent(), (f.label = 4));
case 4:
return s.accessTokenExpire
? [
4,
this._cache.setStoreAsync(
i,
String(s.accessTokenExpire + Date.now()),
),
]
: [3, 6];
case 5:
(f.sent(), (f.label = 6));
case 6:
return (
u.eventBus.fire(u.EVENTS.LOGIN_STATE_CHANGED),
u.eventBus.fire(u.EVENTS.LOGIN_TYPE_CHANGED, {
env: this._config.env,
loginType: c.LOGINTYPE.WECHAT,
persistence: this._config.persistence,
}),
[4, this.refreshUserInfo()]
);
case 7:
return (
f.sent(),
[
4,
(d = new u.LoginState({
envId: this._config.env,
cache: this._cache,
request: this._request,
})).checkLocalStateAsync(),
]
);
case 8:
return (f.sent(), [2, d]);
}
var p;
});
});
}),
(t.prototype._getRefreshTokenByWXCode = function (e, t, n, r) {
return (
void 0 === r && (r = {}),
p(this, void 0, void 0, function () {
var i, o, a, s, u, c;
return h(this, function (l) {
return (
(i = r.withUnionId),
(o = void 0 !== i && i),
(a = r.createUser),
(s = void 0 === a || a),
(u =
"snsapi_base" !== this._scope &&
(r.syncUserInfo || !1)),
(c = this._runtime === _.WX_MP ? "1" : "0"),
[
2,
this._request
.send("auth.signIn", {
appid: e,
loginType: t,
hybridMiniapp: c,
syncUserInfo: u,
loginCredential: n,
withUnionId: o,
createUser: s,
})
.then(function (e) {
if (e.code)
throw new Error(
"[" +
m() +
"][" +
g.OPERATION_FAIL +
"] failed login via wechat: " +
e.code,
);
if (e.refresh_token)
return {
refreshToken: e.refresh_token,
accessToken: e.access_token,
accessTokenExpire: e.access_token_expire,
};
throw new Error(
"[" +
m() +
"][" +
g.OPERATION_FAIL +
"] action:getJwt not return refreshToken",
);
}),
]
);
});
})
);
}),
d(
[
E({
title: "跳转微信公众号授权失败",
messages: [
"请确认以下各项:",
" 1 - 调用 auth().weixinAuthProvider().signInWithRedirect() 的语法或参数是否正确",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
v,
],
}),
f("design:type", Function),
f("design:paramtypes", []),
f("design:returntype", Promise),
],
t.prototype,
"signInWithRedirect",
null,
),
d(
[
E({
title: "微信公众号登录失败",
messages: [
"请确认以下各项:",
" 1 - 调用 auth().weixinAuthProvider().getRedirectResult() 的语法或参数是否正确",
" 2 - 当前环境是否开通了微信公众号登录授权",
" 3 - 微信公众号的 AppId 与 AppSecret 配置是否正确",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
v,
],
}),
f("design:type", Function),
f("design:paramtypes", [Object]),
f("design:returntype", Promise),
],
t.prototype,
"getRedirectResult",
null,
),
d(
[
E({
title: "获取微信重定向绑定结果",
messages: [
"请确认以下各项:",
" 1 - 调用 auth().weixinAuthProvider().getLinkRedirectResult() 的语法或参数是否正确",
" 2 - 当前环境是否开通了微信公众号登录授权",
" 3 - 微信公众号的 AppId 与 AppSecret 配置是否正确",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
v,
],
}),
f("design:type", Function),
f("design:paramtypes", [Object]),
f("design:returntype", Promise),
],
t.prototype,
"getLinkRedirectResult",
null,
),
t
);
})(a.AuthProvider);
},
5293: function (e, t, n) {
"use strict";
var r = n(477);
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.registerFunctions = function (e) {
try {
e.registerComponent(v);
} catch (t) {
console.warn(t);
}
}));
var i = r(n(9367)),
o = n(2566),
a = function (e, t, n, r) {
var o,
a = arguments.length,
s =
a < 3
? t
: null === r
? (r = Object.getOwnPropertyDescriptor(t, n))
: r;
if (
"object" ===
("undefined" == typeof Reflect
? "undefined"
: (0, i["default"])(Reflect)) &&
"function" == typeof Reflect.decorate
)
s = Reflect.decorate(e, t, n, r);
else
for (var u = e.length - 1; u >= 0; u--)
(o = e[u]) &&
(s = (a < 3 ? o(s) : a > 3 ? o(t, n, s) : o(t, n)) || s);
return (a > 3 && s && Object.defineProperty(t, n, s), s);
},
s = function (e, t) {
if (
"object" ===
("undefined" == typeof Reflect
? "undefined"
: (0, i["default"])(Reflect)) &&
"function" == typeof Reflect.metadata
)
return Reflect.metadata(e, t);
},
u = function (e, t, n, r) {
return new (n || (n = Promise))(function (i, o) {
function a(e) {
try {
u(r.next(e));
} catch (t) {
o(t);
}
}
function s(e) {
try {
u(r["throw"](e));
} catch (t) {
o(t);
}
}
function u(e) {
var t;
e.done
? i(e.value)
: ((t = e.value),
t instanceof n
? t
: new n(function (e) {
e(t);
})).then(a, s);
}
u((r = r.apply(e, t || [])).next());
});
},
c = function (e, t) {
var n,
r,
i,
o,
a = {
label: 0,
sent: function () {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: [],
};
return (
(o = { next: s(0), throw: s(1), return: s(2) }),
"function" == typeof Symbol &&
(o[Symbol.iterator] = function () {
return this;
}),
o
);
function s(o) {
return function (s) {
return (function (o) {
if (n)
throw new TypeError("Generator is already executing.");
for (; a; )
try {
if (
((n = 1),
r &&
(i =
2 & o[0]
? r["return"]
: o[0]
? r["throw"] ||
((i = r["return"]) && i.call(r), 0)
: r.next) &&
!(i = i.call(r, o[1])).done)
)
return i;
switch (
((r = 0), i && (o = [2 & o[0], i.value]), o[0])
) {
case 0:
case 1:
i = o;
break;
case 4:
return (a.label++, { value: o[1], done: !1 });
case 5:
(a.label++, (r = o[1]), (o = [0]));
continue;
case 7:
((o = a.ops.pop()), a.trys.pop());
continue;
default:
if (
!(
(i =
(i = a.trys).length > 0 &&
i[i.length - 1]) ||
(6 !== o[0] && 2 !== o[0])
)
) {
a = 0;
continue;
}
if (
3 === o[0] &&
(!i || (o[1] > i[0] && o[1] < i[3]))
) {
a.label = o[1];
break;
}
if (6 === o[0] && a.label < i[1]) {
((a.label = i[1]), (i = o));
break;
}
if (i && a.label < i[2]) {
((a.label = i[2]), a.ops.push(o));
break;
}
(i[2] && a.ops.pop(), a.trys.pop());
continue;
}
o = t.call(e, a);
} catch (s) {
((o = [6, s]), (r = 0));
} finally {
n = i = 0;
}
if (5 & o[0]) throw o[1];
return { value: o[0] ? o[1] : void 0, done: !0 };
})([o, s]);
};
}
},
l = o.constants.getSdkName,
d = o.constants.ERRORS,
f = o.constants.COMMUNITY_SITE_URL,
p = o.utils.execCallback,
h = o.helpers.catchErrorsDecorator,
m = "functions",
g = new ((function () {
function e() {}
return (
(e.prototype.callFunction = function (e, t) {
return u(this, void 0, void 0, function () {
var n, r, i, o, a, s, u, f, h, g, v, _;
return c(this, function (c) {
switch (c.label) {
case 0:
if (
((n = e.name),
(r = e.data),
(i = e.query),
(o = e.parse),
(a = e.search),
!n)
)
throw new Error(
JSON.stringify({
code: d.INVALID_PARAMS,
msg:
"[" +
m +
".callFunction] invalid function name",
}),
);
try {
s = r ? JSON.stringify(r) : "";
} catch (y) {
throw new Error(
JSON.stringify({
code: d.INVALID_PARAMS,
msg: "[" + m + ".callFunction] invalid data",
}),
);
}
((u = "functions.invokeFunction"),
(f = {
inQuery: i,
parse: o,
search: a,
function_name: n,
request_data: s,
}),
(h = this.request),
(c.label = 1));
case 1:
return (
c.trys.push([1, 3, , 4]),
[4, h.send(u, f)]
);
case 2:
if ((g = c.sent()).code) return [2, p(t, null, g)];
if (((v = g.data.response_data), o))
return [
2,
p(t, null, {
result: v,
requestId: g.requestId,
}),
];
try {
return (
(v = JSON.parse(g.data.response_data)),
[
2,
p(t, null, {
result: v,
requestId: g.requestId,
}),
]
);
} catch (y) {
p(
t,
new Error(
"[" +
l() +
"][" +
d.INVALID_PARAMS +
"][" +
m +
".callFunction] response data must be json",
),
);
}
return [3, 4];
case 3:
return ((_ = c.sent()), p(t, _), [3, 4]);
case 4:
return [2];
}
});
});
}),
a(
[
h({
customInfo: {
className: "Cloudbase",
methodName: "callFunction",
},
title: "函数调用失败",
messages: [
"请确认以下各项:",
" 1 - 调用 callFunction() 的语法或参数是否正确",
" 2 - 当前环境下是否存在此函数",
" 3 - 函数安全规则是否限制了当前登录状态访问",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
f,
],
}),
s("design:type", Function),
s("design:paramtypes", [Object, Function]),
s("design:returntype", Promise),
],
e.prototype,
"callFunction",
null,
),
e
);
})())(),
v = { name: m, entity: { callFunction: g.callFunction } };
try {
cloudbase.registerComponent(v);
} catch (_) {}
},
9459: function (e, t, n) {
"use strict";
var r = n(477);
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t["default"] = void 0));
var i = r(n(4283)),
o = r(n(5707))["default"].version;
i["default"].registerVersion(o);
try {
window.cloudbase = i["default"];
} catch (a) {}
t["default"] = i["default"];
},
9744: function (e, t, n) {
"use strict";
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.registerProvider = t.registerAuth = void 0));
var r = n(3442);
((t.registerAuth = r.registerAuth),
(t.registerProvider = r.registerProvider));
},
7441: function (e, t, n) {
"use strict";
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.registerFunctions = void 0));
var r = n(5293);
t.registerFunctions = r.registerFunctions;
},
5417: function (e, t, n) {
"use strict";
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.registerStorage = void 0));
var r = n(9549);
t.registerStorage = r.registerStorage;
},
9549: function (e, t, n) {
"use strict";
var r = n(477);
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.registerStorage = function (e) {
try {
e.registerComponent(b);
} catch (t) {
console.warn(t);
}
}));
var i = r(n(9367)),
o = n(2566),
a = function (e, t, n, r) {
var o,
a = arguments.length,
s =
a < 3
? t
: null === r
? (r = Object.getOwnPropertyDescriptor(t, n))
: r;
if (
"object" ===
("undefined" == typeof Reflect
? "undefined"
: (0, i["default"])(Reflect)) &&
"function" == typeof Reflect.decorate
)
s = Reflect.decorate(e, t, n, r);
else
for (var u = e.length - 1; u >= 0; u--)
(o = e[u]) &&
(s = (a < 3 ? o(s) : a > 3 ? o(t, n, s) : o(t, n)) || s);
return (a > 3 && s && Object.defineProperty(t, n, s), s);
},
s = function (e, t) {
if (
"object" ===
("undefined" == typeof Reflect
? "undefined"
: (0, i["default"])(Reflect)) &&
"function" == typeof Reflect.metadata
)
return Reflect.metadata(e, t);
},
u = function (e, t, n, r) {
return new (n || (n = Promise))(function (i, o) {
function a(e) {
try {
u(r.next(e));
} catch (t) {
o(t);
}
}
function s(e) {
try {
u(r["throw"](e));
} catch (t) {
o(t);
}
}
function u(e) {
var t;
e.done
? i(e.value)
: ((t = e.value),
t instanceof n
? t
: new n(function (e) {
e(t);
})).then(a, s);
}
u((r = r.apply(e, t || [])).next());
});
},
c = function (e, t) {
var n,
r,
i,
o,
a = {
label: 0,
sent: function () {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: [],
};
return (
(o = { next: s(0), throw: s(1), return: s(2) }),
"function" == typeof Symbol &&
(o[Symbol.iterator] = function () {
return this;
}),
o
);
function s(o) {
return function (s) {
return (function (o) {
if (n)
throw new TypeError("Generator is already executing.");
for (; a; )
try {
if (
((n = 1),
r &&
(i =
2 & o[0]
? r["return"]
: o[0]
? r["throw"] ||
((i = r["return"]) && i.call(r), 0)
: r.next) &&
!(i = i.call(r, o[1])).done)
)
return i;
switch (
((r = 0), i && (o = [2 & o[0], i.value]), o[0])
) {
case 0:
case 1:
i = o;
break;
case 4:
return (a.label++, { value: o[1], done: !1 });
case 5:
(a.label++, (r = o[1]), (o = [0]));
continue;
case 7:
((o = a.ops.pop()), a.trys.pop());
continue;
default:
if (
!(
(i =
(i = a.trys).length > 0 &&
i[i.length - 1]) ||
(6 !== o[0] && 2 !== o[0])
)
) {
a = 0;
continue;
}
if (
3 === o[0] &&
(!i || (o[1] > i[0] && o[1] < i[3]))
) {
a.label = o[1];
break;
}
if (6 === o[0] && a.label < i[1]) {
((a.label = i[1]), (i = o));
break;
}
if (i && a.label < i[2]) {
((a.label = i[2]), a.ops.push(o));
break;
}
(i[2] && a.ops.pop(), a.trys.pop());
continue;
}
o = t.call(e, a);
} catch (s) {
((o = [6, s]), (r = 0));
} finally {
n = i = 0;
}
if (5 & o[0]) throw o[1];
return { value: o[0] ? o[1] : void 0, done: !0 };
})([o, s]);
};
}
},
l = o.constants.getSdkName,
d = o.constants.ERRORS,
f = o.constants.COMMUNITY_SITE_URL,
p = o.utils.isArray,
h = o.utils.isString,
m = o.utils.isPalinObject,
g = o.utils.execCallback,
v = o.helpers.catchErrorsDecorator,
_ = "storage",
y = new ((function () {
function e() {}
return (
(e.prototype.uploadFile = function (e, t) {
return u(this, void 0, void 0, function () {
var n, r, i, o, a, s, u, f, p, m, v, y, b, k, w;
return c(this, function (c) {
switch (c.label) {
case 0:
if (
((n = e.cloudPath),
(r = e.filePath),
(i = e.onUploadProgress),
!h(n) || !r)
)
throw new Error(
JSON.stringify({
code: d.INVALID_PARAMS,
msg: "[" + _ + ".uploadFile] invalid params",
}),
);
return [
4,
(o = this.request).send(
"storage.getUploadMetadata",
{ path: n },
),
];
case 1:
return (
(a = c.sent()),
(s = a.data),
(u = s.url),
(f = s.authorization),
(p = s.token),
(m = s.fileId),
(v = s.cosFileId),
(y = s.download_url),
(b = a.requestId),
(k = {
key: n,
signature: f,
"x-cos-meta-fileid": v,
success_action_status: "201",
"x-cos-security-token": p,
}),
[
4,
o.upload({
url: u,
data: k,
file: r,
name: n,
onUploadProgress: i,
}),
]
);
case 2:
return 201 === (w = c.sent()).statusCode
? [
2,
g(t, null, {
fileID: m,
download_url: y,
requestId: b,
}),
]
: [
2,
g(
t,
new Error(
"[" +
l() +
"][" +
d.OPERATION_FAIL +
"][" +
_ +
"]:" +
w.data,
),
),
];
}
});
});
}),
(e.prototype.getUploadMetadata = function (e, t) {
return u(this, void 0, void 0, function () {
var n, r, i, o, a;
return c(this, function (s) {
switch (s.label) {
case 0:
if (((n = e.cloudPath), !h(n)))
throw new Error(
JSON.stringify({
code: d.INVALID_PARAMS,
msg:
"[" +
_ +
".getUploadMetadata] invalid cloudPath",
}),
);
((r = this.request),
(i = "storage.getUploadMetadata"),
(s.label = 1));
case 1:
return (
s.trys.push([1, 3, , 4]),
[4, r.send(i, { path: n })]
);
case 2:
return ((o = s.sent()), [2, g(t, null, o)]);
case 3:
return ((a = s.sent()), [2, g(t, a)]);
case 4:
return [2];
}
});
});
}),
(e.prototype.deleteFile = function (e, t) {
return u(this, void 0, void 0, function () {
var n, r, i, o, a, s;
return c(this, function (u) {
switch (u.label) {
case 0:
if (!(n = e.fileList) || !p(n) || 0 === n.length)
throw new Error(
JSON.stringify({
code: d.INVALID_PARAMS,
msg:
"[" +
_ +
".deleteFile] fileList must not be empty",
}),
);
for (r = 0, i = n; r < i.length; r++)
if (!(o = i[r]) || !h(o))
throw new Error(
JSON.stringify({
code: d.INVALID_PARAMS,
msg:
"[" +
_ +
".deleteFile] fileID must be string",
}),
);
return [
4,
this.request.send("storage.batchDeleteFile", {
fileid_list: n,
}),
];
case 1:
return (a = u.sent()).code
? [2, g(t, null, a)]
: ((s = {
fileList: a.data.delete_list,
requestId: a.requestId,
}),
[2, g(t, null, s)]);
}
});
});
}),
(e.prototype.getTempFileURL = function (e, t) {
return u(this, void 0, void 0, function () {
var n, r, i, o, a, s;
return c(this, function (u) {
switch (u.label) {
case 0:
if (!(n = e.fileList) || !p(n) || 0 === n.length)
throw new Error(
JSON.stringify({
code: d.INVALID_PARAMS,
msg:
"[" +
_ +
".getTempFileURL] fileList must not be empty",
}),
);
for (r = [], i = 0, o = n; i < o.length; i++)
if (((a = o[i]), m(a))) {
if (
!a.hasOwnProperty("fileID") ||
!a.hasOwnProperty("maxAge")
)
throw new Error(
JSON.stringify({
code: d.INVALID_PARAMS,
msg:
"[" +
_ +
".getTempFileURL] file info must include fileID and maxAge",
}),
);
r.push({ fileid: a.fileID, max_age: a.maxAge });
} else {
if (!h(a))
throw new Error(
JSON.stringify({
code: d.INVALID_PARAMS,
msg:
"[" +
_ +
".getTempFileURL] invalid fileList",
}),
);
r.push({ fileid: a });
}
return [
4,
this.request.send("storage.batchGetDownloadUrl", {
file_list: r,
}),
];
case 1:
return (s = u.sent()).code
? [2, g(t, null, s)]
: [
2,
g(t, null, {
fileList: s.data.download_list,
requestId: s.requestId,
}),
];
}
});
});
}),
(e.prototype.downloadFile = function (e, t) {
return u(this, void 0, void 0, function () {
var n, r, i, o, a, s;
return c(this, function (u) {
switch (u.label) {
case 0:
if (((n = e.fileID), !h(n)))
throw new Error(
JSON.stringify({
code: d.INVALID_PARAMS,
msg:
"[" +
_ +
".getTempFileURL] fileID must be string",
}),
);
return [
4,
this.getTempFileURL.call(this, {
fileList: [{ fileID: n, maxAge: 600 }],
}),
];
case 1:
return (
(r = u.sent()),
"SUCCESS" !== (i = r.fileList[0]).code
? [2, g(t, i)]
: ((o = this.request),
(a = encodeURI(i.download_url)),
[4, o.download({ url: a })])
);
case 2:
return ((s = u.sent()), [2, g(t, null, s)]);
}
});
});
}),
a(
[
v({
customInfo: {
className: "Cloudbase",
methodName: "uploadFile",
},
title: "上传文件失败",
messages: [
"请确认以下各项:",
" 1 - 调用 uploadFile() 的语法或参数是否正确",
" 2 - 当前域名是否在安全域名列表中:https://console.cloud.tencent.com/tcb/env/safety",
" 3 - 云存储安全规则是否限制了当前登录状态访问",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
f,
],
}),
s("design:type", Function),
s("design:paramtypes", [Object, Function]),
s("design:returntype", Promise),
],
e.prototype,
"uploadFile",
null,
),
a(
[
v({
customInfo: {
className: "Cloudbase",
methodName: "getUploadMetadata",
},
title: "获取上传元信息失败",
messages: [
"请确认以下各项:",
" 1 - 调用 getUploadMetadata() 的语法或参数是否正确",
" 2 - 当前域名是否在安全域名列表中:https://console.cloud.tencent.com/tcb/env/safety",
" 3 - 云存储安全规则是否限制了当前登录状态访问",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
f,
],
}),
s("design:type", Function),
s("design:paramtypes", [Object, Function]),
s("design:returntype", Promise),
],
e.prototype,
"getUploadMetadata",
null,
),
a(
[
v({
customInfo: {
className: "Cloudbase",
methodName: "deleteFile",
},
title: "删除文件失败",
messages: [
"请确认以下各项:",
" 1 - 调用 deleteFile() 的语法或参数是否正确",
" 2 - 当前域名是否在安全域名列表中:https://console.cloud.tencent.com/tcb/env/safety",
" 3 - 云存储安全规则是否限制了当前登录状态访问",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
f,
],
}),
s("design:type", Function),
s("design:paramtypes", [Object, Function]),
s("design:returntype", Promise),
],
e.prototype,
"deleteFile",
null,
),
a(
[
v({
customInfo: {
className: "Cloudbase",
methodName: "getTempFileURL",
},
title: "获取文件下载链接",
messages: [
"请确认以下各项:",
" 1 - 调用 getTempFileURL() 的语法或参数是否正确",
" 2 - 当前域名是否在安全域名列表中:https://console.cloud.tencent.com/tcb/env/safety",
" 3 - 云存储安全规则是否限制了当前登录状态访问",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
f,
],
}),
s("design:type", Function),
s("design:paramtypes", [Object, Function]),
s("design:returntype", Promise),
],
e.prototype,
"getTempFileURL",
null,
),
a(
[
v({
customInfo: {
className: "Cloudbase",
methodName: "downloadFile",
},
title: "下载文件失败",
messages: [
"请确认以下各项:",
" 1 - 调用 downloadFile() 的语法或参数是否正确",
" 2 - 当前域名是否在安全域名列表中:https://console.cloud.tencent.com/tcb/env/safety",
" 3 - 云存储安全规则是否限制了当前登录状态访问",
"如果问题依然存在,建议到官方问答社区提问或寻找帮助:" +
f,
],
}),
s("design:type", Function),
s("design:paramtypes", [Object, Function]),
s("design:returntype", Promise),
],
e.prototype,
"downloadFile",
null,
),
e
);
})())(),
b = {
name: _,
entity: {
uploadFile: y.uploadFile,
deleteFile: y.deleteFile,
getTempFileURL: y.getTempFileURL,
downloadFile: y.downloadFile,
getUploadMetadata: y.getUploadMetadata,
},
};
try {
cloudbase.registerComponent(b);
} catch (k) {}
},
1259: function (e, t, n) {
"use strict";
var r = Object.create
? function (e, t, n, r) {
(r === undefined && (r = n),
Object.defineProperty(e, r, {
enumerable: !0,
get: function () {
return t[n];
},
}));
}
: function (e, t, n, r) {
(r === undefined && (r = n), (e[r] = t[n]));
},
i = Object.create
? function (e, t) {
Object.defineProperty(e, "default", {
enumerable: !0,
value: t,
});
}
: function (e, t) {
e["default"] = t;
},
o = function (e) {
if (e && e.__esModule) return e;
var t = {};
if (null != e)
for (var n in e)
"default" !== n &&
Object.hasOwnProperty.call(e, n) &&
r(t, e, n);
return (i(t, e), t);
};
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.useDefaultAdapter = t.useAdapters = t.RUNTIME = void 0));
var a,
s = o(n(9882)),
u = n(5939);
(!(function (e) {
((e.WEB = "web"), (e.WX_MP = "wx_mp"));
})((a = t.RUNTIME || (t.RUNTIME = {}))),
(t.useAdapters = function (e) {
for (var t = 0, n = u.isArray(e) ? e : [e]; t < n.length; t++) {
var r = n[t],
i = r.isMatch,
o = r.genAdapter,
a = r.runtime;
if (i()) return { adapter: o(), runtime: a };
}
}),
(t.useDefaultAdapter = function () {
return { adapter: s.genAdapter(), runtime: a.WEB };
}));
},
9882: function (e, t, n) {
"use strict";
var r,
i =
((r = function (e, t) {
return (
(r =
Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array &&
function (e, t) {
e.__proto__ = t;
}) ||
function (e, t) {
for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
}),
r(e, t)
);
}),
function (e, t) {
function n() {
this.constructor = e;
}
(r(e, t),
(e.prototype =
null === t
? Object.create(t)
: ((n.prototype = t.prototype), new n())));
}),
o = function () {
return (
(o =
Object.assign ||
function (e) {
for (var t, n = 1, r = arguments.length; n < r; n++)
for (var i in (t = arguments[n]))
Object.prototype.hasOwnProperty.call(t, i) &&
(e[i] = t[i]);
return e;
}),
o.apply(this, arguments)
);
},
a = function (e, t, n, r) {
return new (n || (n = Promise))(function (i, o) {
function a(e) {
try {
u(r.next(e));
} catch (t) {
o(t);
}
}
function s(e) {
try {
u(r["throw"](e));
} catch (t) {
o(t);
}
}
function u(e) {
var t;
e.done
? i(e.value)
: ((t = e.value),
t instanceof n
? t
: new n(function (e) {
e(t);
})).then(a, s);
}
u((r = r.apply(e, t || [])).next());
});
},
s = function (e, t) {
var n,
r,
i,
o,
a = {
label: 0,
sent: function () {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: [],
};
return (
(o = { next: s(0), throw: s(1), return: s(2) }),
"function" == typeof Symbol &&
(o[Symbol.iterator] = function () {
return this;
}),
o
);
function s(o) {
return function (s) {
return (function (o) {
if (n)
throw new TypeError("Generator is already executing.");
for (; a; )
try {
if (
((n = 1),
r &&
(i =
2 & o[0]
? r["return"]
: o[0]
? r["throw"] ||
((i = r["return"]) && i.call(r), 0)
: r.next) &&
!(i = i.call(r, o[1])).done)
)
return i;
switch (
((r = 0), i && (o = [2 & o[0], i.value]), o[0])
) {
case 0:
case 1:
i = o;
break;
case 4:
return (a.label++, { value: o[1], done: !1 });
case 5:
(a.label++, (r = o[1]), (o = [0]));
continue;
case 7:
((o = a.ops.pop()), a.trys.pop());
continue;
default:
if (
!(
(i =
(i = a.trys).length > 0 &&
i[i.length - 1]) ||
(6 !== o[0] && 2 !== o[0])
)
) {
a = 0;
continue;
}
if (
3 === o[0] &&
(!i || (o[1] > i[0] && o[1] < i[3]))
) {
a.label = o[1];
break;
}
if (6 === o[0] && a.label < i[1]) {
((a.label = i[1]), (i = o));
break;
}
if (i && a.label < i[2]) {
((a.label = i[2]), a.ops.push(o));
break;
}
(i[2] && a.ops.pop(), a.trys.pop());
continue;
}
o = t.call(e, a);
} catch (s) {
((o = [6, s]), (r = 0));
} finally {
n = i = 0;
}
if (5 & o[0]) throw o[1];
return { value: o[0] ? o[1] : void 0, done: !0 };
})([o, s]);
};
}
};
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.WebRequest = t.genAdapter = void 0));
var u = n(6885),
c = n(5939),
l = n(6531),
d = (function (e) {
function t(t) {
var n = e.call(this) || this,
r = t.timeout,
i = t.timeoutMsg,
o = t.restrictedMethods;
return (
(n._timeout = r || 0),
(n._timeoutMsg = i || "请求超时"),
(n._restrictedMethods = o || [
"get",
"post",
"upload",
"download",
]),
n
);
}
return (
i(t, e),
(t.prototype.get = function (e) {
return this._request(
o(o({}, e), { method: "get" }),
this._restrictedMethods.includes("get"),
);
}),
(t.prototype.post = function (e) {
return this._request(
o(o({}, e), { method: "post" }),
this._restrictedMethods.includes("post"),
);
}),
(t.prototype.put = function (e) {
return this._request(o(o({}, e), { method: "put" }));
}),
(t.prototype.upload = function (e) {
var t = e.data,
n = e.file,
r = e.name,
i = new FormData();
for (var a in t) i.append(a, t[a]);
return (
i.append("key", r),
i.append("file", n),
this._request(
o(o({}, e), { data: i, method: "post" }),
this._restrictedMethods.includes("upload"),
)
);
}),
(t.prototype.download = function (e) {
return a(this, void 0, void 0, function () {
var t, n, r, i;
return s(this, function (a) {
switch (a.label) {
case 0:
return (
a.trys.push([0, 2, , 3]),
[
4,
this.get(
o(o({}, e), {
headers: {},
responseType: "blob",
}),
),
]
);
case 1:
return (
(t = a.sent().data),
(n = window.URL.createObjectURL(new Blob([t]))),
(r = decodeURIComponent(
new URL(e.url).pathname.split("/").pop() || "",
)),
((i = document.createElement("a")).href = n),
i.setAttribute("download", r),
(i.style.display = "none"),
document.body.appendChild(i),
i.click(),
window.URL.revokeObjectURL(n),
document.body.removeChild(i),
[3, 3]
);
case 2:
return (a.sent(), [3, 3]);
case 3:
return [
2,
new Promise(function (t) {
t({ statusCode: 200, tempFilePath: e.url });
}),
];
}
});
});
}),
(t.prototype._request = function (e, t) {
var n = this;
void 0 === t && (t = !1);
var r = String(e.method).toLowerCase() || "get";
return new Promise(function (i) {
var o,
a,
s = e.url,
u = e.headers,
d = void 0 === u ? {} : u,
f = e.data,
p = e.responseType,
h = e.withCredentials,
m = e.body,
g = e.onUploadProgress,
v = c.formatUrl(
l.getProtocol(),
s,
"get" === r ? f : {},
),
_ = new XMLHttpRequest();
for (var y in (_.open(r, v),
p && (_.responseType = p),
d))
_.setRequestHeader(y, d[y]);
(g && _.upload.addEventListener("progress", g),
(_.onreadystatechange = function () {
var e = {};
if (4 === _.readyState) {
var t = _.getAllResponseHeaders()
.trim()
.split(/[\r\n]+/),
n = {};
(t.forEach(function (e) {
var t = e.split(": "),
r = t.shift().toLowerCase(),
i = t.join(": ");
n[r] = i;
}),
(e.header = n),
(e.statusCode = _.status));
try {
e.data =
"blob" === p
? _.response
: JSON.parse(_.responseText);
} catch (r) {
e.data =
"blob" === p ? _.response : _.responseText;
}
(clearTimeout(o), i(e));
}
}),
t &&
n._timeout &&
(o = setTimeout(function () {
(console.warn(n._timeoutMsg), _.abort());
}, n._timeout)),
(a = c.isFormData(f)
? f
: "application/x-www-form-urlencoded" ===
d["content-type"]
? c.toQueryString(f)
: m || (f ? JSON.stringify(f) : undefined)),
h && (_.withCredentials = !0),
_.send(a));
});
}),
t
);
})(u.AbstractSDKRequest);
((t.WebRequest = d),
(t.genAdapter = function () {
return {
root: window,
reqClass: d,
wsClass: WebSocket,
localStorage: localStorage,
sessionStorage: sessionStorage,
};
}));
},
6531: function (e, t) {
"use strict";
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.COMMUNITY_SITE_URL =
t.IS_DEBUG_MODE =
t.getProtocol =
t.setProtocol =
t.getSdkName =
t.setSdkName =
void 0));
var n = "@cloudbase/js-sdk";
((t.setSdkName = function (e) {
n = e;
}),
(t.getSdkName = function () {
return n;
}));
var r =
"undefined" != typeof location && "http:" === location.protocol
? "http:"
: "https:";
((t.setProtocol = function (e) {
r = e;
}),
(t.getProtocol = function () {
return r;
}),
(t.IS_DEBUG_MODE = !1),
(t.COMMUNITY_SITE_URL =
"https://support.qq.com/products/148793"));
},
4769: function (e, t) {
"use strict";
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.ERRORS = void 0),
(t.ERRORS = {
INVALID_PARAMS: "INVALID_PARAMS",
INVALID_SYNTAX: "INVALID_SYNTAX",
INVALID_OPERATION: "INVALID_OPERATION",
OPERATION_FAIL: "OPERATION_FAIL",
NETWORK_ERROR: "NETWORK_ERROR",
UNKOWN_ERROR: "UNKOWN_ERROR",
}));
},
3440: function (e, t, n) {
"use strict";
var r = Object.create
? function (e, t, n, r) {
(r === undefined && (r = n),
Object.defineProperty(e, r, {
enumerable: !0,
get: function () {
return t[n];
},
}));
}
: function (e, t, n, r) {
(r === undefined && (r = n), (e[r] = t[n]));
},
i = function (e, t) {
for (var n in e)
"default" === n || t.hasOwnProperty(n) || r(t, e, n);
};
(Object.defineProperty(t, "__esModule", { value: !0 }),
i(n(6531), t),
i(n(4769), t));
},
8220: function (e, t, n) {
"use strict";
var r = function (e, t, n, r) {
return new (n || (n = Promise))(function (i, o) {
function a(e) {
try {
u(r.next(e));
} catch (t) {
o(t);
}
}
function s(e) {
try {
u(r["throw"](e));
} catch (t) {
o(t);
}
}
function u(e) {
var t;
e.done
? i(e.value)
: ((t = e.value),
t instanceof n
? t
: new n(function (e) {
e(t);
})).then(a, s);
}
u((r = r.apply(e, t || [])).next());
});
},
i = function (e, t) {
var n,
r,
i,
o,
a = {
label: 0,
sent: function () {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: [],
};
return (
(o = { next: s(0), throw: s(1), return: s(2) }),
"function" == typeof Symbol &&
(o[Symbol.iterator] = function () {
return this;
}),
o
);
function s(o) {
return function (s) {
return (function (o) {
if (n)
throw new TypeError("Generator is already executing.");
for (; a; )
try {
if (
((n = 1),
r &&
(i =
2 & o[0]
? r["return"]
: o[0]
? r["throw"] ||
((i = r["return"]) && i.call(r), 0)
: r.next) &&
!(i = i.call(r, o[1])).done)
)
return i;
switch (
((r = 0), i && (o = [2 & o[0], i.value]), o[0])
) {
case 0:
case 1:
i = o;
break;
case 4:
return (a.label++, { value: o[1], done: !1 });
case 5:
(a.label++, (r = o[1]), (o = [0]));
continue;
case 7:
((o = a.ops.pop()), a.trys.pop());
continue;
default:
if (
!(
(i =
(i = a.trys).length > 0 &&
i[i.length - 1]) ||
(6 !== o[0] && 2 !== o[0])
)
) {
a = 0;
continue;
}
if (
3 === o[0] &&
(!i || (o[1] > i[0] && o[1] < i[3]))
) {
a.label = o[1];
break;
}
if (6 === o[0] && a.label < i[1]) {
((a.label = i[1]), (i = o));
break;
}
if (i && a.label < i[2]) {
((a.label = i[2]), a.ops.push(o));
break;
}
(i[2] && a.ops.pop(), a.trys.pop());
continue;
}
o = t.call(e, a);
} catch (s) {
((o = [6, s]), (r = 0));
} finally {
n = i = 0;
}
if (5 & o[0]) throw o[1];
return { value: o[0] ? o[1] : void 0, done: !0 };
})([o, s]);
};
}
};
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.catchErrorsDecorator = void 0));
var o = n(5939),
a = n(3440),
s = !1;
"undefined" != typeof navigator &&
navigator.userAgent &&
(s = -1 !== navigator.userAgent.indexOf("Firefox"));
var u = s
? /(\.js\/)?__decorate(\$\d+)?<@.*\d$/
: /(\/\w+\.js\.)?__decorate(\$\d+)?\s*\(.*\)$/,
c = /https?\:\/\/.+\:\d*\/.*\.js\:\d+\:\d+/;
function l(e) {
var t = e.err,
n = e.className,
r = e.methodName,
i = e.sourceLink;
if (!i) return null;
var o,
a = t.stack.split("\n"),
u = s
? /^catchErrorsDecorator\/<\/descriptor.value@.*\d$/
: new RegExp(
n +
"\\.descriptor.value\\s*\\[as\\s" +
r +
"\\]\\s*\\(.*\\)$",
),
l = s
? /^catchErrorsDecorator\/<\/descriptor.value/
: new RegExp(
n + "\\.descriptor.value\\s*\\[as\\s" + r + "\\]",
),
d = a.findIndex(function (e) {
return u.test(e);
});
if (-1 !== d) {
var f = a.filter(function (e, t) {
return t > d;
});
(f.unshift(a[d].replace(l, n + "." + r).replace(c, i)),
((o = new Error()).stack =
(s ? "@debugger" : "Error") + "\n" + f.join("\n")));
}
return o;
}
t.catchErrorsDecorator = function (e) {
var t = e.mode,
n = void 0 === t ? "async" : t,
s = e.customInfo,
d = void 0 === s ? {} : s,
f = e.title,
p = e.messages,
h = void 0 === p ? [] : p;
return function (e, t, s) {
if (a.IS_DEBUG_MODE) {
var p = d.className || e.constructor.name,
m = d.methodName || t,
g = s.value,
v = (function (e) {
var t = "",
n = e.stack.split("\n"),
r = n.findIndex(function (e) {
return u.test(e);
});
if (-1 !== r) {
var i = c.exec(n[r + 1] || "");
t = i ? i[0] : "";
}
return t;
})(new Error());
s.value =
"sync" === n
? function () {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
var n = l({
err: new Error(),
className: p,
methodName: m,
sourceLink: v,
});
try {
return g.apply(this, e);
} catch (u) {
var r = u,
i = u.message,
a = {
title: f || p + "." + m + " failed",
content: [{ type: "error", body: u }],
};
if (i && /^\{.*\}$/.test(i)) {
var s = JSON.parse(i);
((a.subtitle = i),
s.code &&
(n
? ((n.code = s.code), (n.msg = s.msg))
: ((u.code = s.code), (u.message = s.msg)),
(r = n || u),
(a.content = h.map(function (e) {
return { type: "info", body: e };
}))));
}
throw (o.printGroupLog(a), r);
}
}
: function () {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
return r(this, void 0, void 0, function () {
var t, n, r, a, s, u;
return i(this, function (i) {
switch (i.label) {
case 0:
((t = l({
err: new Error(),
className: p,
methodName: m,
sourceLink: v,
})),
(i.label = 1));
case 1:
return (
i.trys.push([1, 3, , 4]),
[4, g.apply(this, e)]
);
case 2:
return [2, i.sent()];
case 3:
throw (
(n = i.sent()),
(r = n),
(a = n.message),
(s = {
title: f || p + "." + m + " failed",
content: [{ type: "error", body: n }],
}),
a &&
/^\{.*\}$/.test(a) &&
((u = JSON.parse(a)),
(s.subtitle = u),
u.code &&
(t
? ((t.code = u.code),
(t.message = u.msg))
: ((n.code = u.code),
(n.message = u.msg)),
(r = t || n),
(s.content = h.map(function (e) {
return { type: "info", body: e };
})))),
o.printGroupLog(s),
r
);
case 4:
return [2];
}
});
});
};
}
};
};
},
1008: function (e, t, n) {
"use strict";
var r = Object.create
? function (e, t, n, r) {
(r === undefined && (r = n),
Object.defineProperty(e, r, {
enumerable: !0,
get: function () {
return t[n];
},
}));
}
: function (e, t, n, r) {
(r === undefined && (r = n), (e[r] = t[n]));
},
i = function (e, t) {
for (var n in e)
"default" === n || t.hasOwnProperty(n) || r(t, e, n);
};
(Object.defineProperty(t, "__esModule", { value: !0 }),
i(n(8220), t));
},
2566: function (e, t, n) {
"use strict";
var r = Object.create
? function (e, t, n, r) {
(r === undefined && (r = n),
Object.defineProperty(e, r, {
enumerable: !0,
get: function () {
return t[n];
},
}));
}
: function (e, t, n, r) {
(r === undefined && (r = n), (e[r] = t[n]));
},
i = Object.create
? function (e, t) {
Object.defineProperty(e, "default", {
enumerable: !0,
value: t,
});
}
: function (e, t) {
e["default"] = t;
},
o = function (e) {
if (e && e.__esModule) return e;
var t = {};
if (null != e)
for (var n in e)
"default" !== n &&
Object.hasOwnProperty.call(e, n) &&
r(t, e, n);
return (i(t, e), t);
};
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.helpers =
t.utils =
t.events =
t.cache =
t.adapters =
t.constants =
void 0));
var a = o(n(3440));
t.constants = a;
var s = o(n(1259));
t.adapters = s;
var u = o(n(5861));
t.cache = u;
var c = o(n(9978));
t.events = c;
var l = o(n(5939));
t.utils = l;
var d = o(n(1008));
t.helpers = d;
},
5861: function (e, t, n) {
"use strict";
var r,
i =
((r = function (e, t) {
return (
(r =
Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array &&
function (e, t) {
e.__proto__ = t;
}) ||
function (e, t) {
for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
}),
r(e, t)
);
}),
function (e, t) {
function n() {
this.constructor = e;
}
(r(e, t),
(e.prototype =
null === t
? Object.create(t)
: ((n.prototype = t.prototype), new n())));
}),
o = function (e, t, n, r) {
return new (n || (n = Promise))(function (i, o) {
function a(e) {
try {
u(r.next(e));
} catch (t) {
o(t);
}
}
function s(e) {
try {
u(r["throw"](e));
} catch (t) {
o(t);
}
}
function u(e) {
var t;
e.done
? i(e.value)
: ((t = e.value),
t instanceof n
? t
: new n(function (e) {
e(t);
})).then(a, s);
}
u((r = r.apply(e, t || [])).next());
});
},
a = function (e, t) {
var n,
r,
i,
o,
a = {
label: 0,
sent: function () {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: [],
};
return (
(o = { next: s(0), throw: s(1), return: s(2) }),
"function" == typeof Symbol &&
(o[Symbol.iterator] = function () {
return this;
}),
o
);
function s(o) {
return function (s) {
return (function (o) {
if (n)
throw new TypeError("Generator is already executing.");
for (; a; )
try {
if (
((n = 1),
r &&
(i =
2 & o[0]
? r["return"]
: o[0]
? r["throw"] ||
((i = r["return"]) && i.call(r), 0)
: r.next) &&
!(i = i.call(r, o[1])).done)
)
return i;
switch (
((r = 0), i && (o = [2 & o[0], i.value]), o[0])
) {
case 0:
case 1:
i = o;
break;
case 4:
return (a.label++, { value: o[1], done: !1 });
case 5:
(a.label++, (r = o[1]), (o = [0]));
continue;
case 7:
((o = a.ops.pop()), a.trys.pop());
continue;
default:
if (
!(
(i =
(i = a.trys).length > 0 &&
i[i.length - 1]) ||
(6 !== o[0] && 2 !== o[0])
)
) {
a = 0;
continue;
}
if (
3 === o[0] &&
(!i || (o[1] > i[0] && o[1] < i[3]))
) {
a.label = o[1];
break;
}
if (6 === o[0] && a.label < i[1]) {
((a.label = i[1]), (i = o));
break;
}
if (i && a.label < i[2]) {
((a.label = i[2]), a.ops.push(o));
break;
}
(i[2] && a.ops.pop(), a.trys.pop());
continue;
}
o = t.call(e, a);
} catch (s) {
((o = [6, s]), (r = 0));
} finally {
n = i = 0;
}
if (5 & o[0]) throw o[1];
return { value: o[0] ? o[1] : void 0, done: !0 };
})([o, s]);
};
}
};
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.CloudbaseCache = void 0));
var s = n(6885),
u = n(5939),
c = n(3440),
l = (function (e) {
function t(t) {
var n = e.call(this) || this;
return (
(n._root = t),
t.tcbCacheObject || (t.tcbCacheObject = {}),
n
);
}
return (
i(t, e),
(t.prototype.setItem = function (e, t) {
this._root.tcbCacheObject[e] = t;
}),
(t.prototype.getItem = function (e) {
return this._root.tcbCacheObject[e];
}),
(t.prototype.removeItem = function (e) {
delete this._root.tcbCacheObject[e];
}),
(t.prototype.clear = function () {
delete this._root.tcbCacheObject;
}),
t
);
})(s.AbstractStorage);
function d(e, t) {
switch (e) {
case "local":
default:
return t.localStorage
? t.localStorage
: (u.printWarn(
c.ERRORS.INVALID_PARAMS,
"localStorage is not supported on current platform",
),
new l(t.root));
case "none":
return new l(t.root);
case "session":
return t.sessionStorage
? t.sessionStorage
: (u.printWarn(
c.ERRORS.INVALID_PARAMS,
"sessionStorage is not supported on current platform",
),
new l(t.root));
}
}
var f = (function () {
function e(e) {
this.keys = {};
var t = e.persistence,
n = e.platformInfo,
r = void 0 === n ? {} : n,
i = e.keys,
o = void 0 === i ? {} : i,
a = e.alwaysLocalKeys,
s = void 0 === a ? [] : a;
((this._platformInfo = r),
(this._alwaysLocalKeys = s),
this._storage ||
((this._persistence = r.adapter.primaryStorage || t),
(this._storage = d(this._persistence, r.adapter)),
(this.keys = o)));
}
return (
Object.defineProperty(e.prototype, "mode", {
get: function () {
return this._storage.mode || "sync";
},
enumerable: !1,
configurable: !0,
}),
Object.defineProperty(e.prototype, "persistence", {
get: function () {
return this._persistence;
},
enumerable: !1,
configurable: !0,
}),
(e.prototype.updatePersistence = function (e) {
if ("async" !== this.mode) {
if (e !== this._persistence) {
var t = "local" === this._persistence;
this._persistence = e;
var n = d(e, this._platformInfo.adapter);
for (var r in this.keys) {
var i = this.keys[r];
if (!t || !this._alwaysLocalKeys.includes(r)) {
var o = this._storage.getItem(i);
u.isUndefined(o) ||
u.isNull(o) ||
(n.setItem(i, o), this._storage.removeItem(i));
}
}
this._storage = n;
}
} else
u.printWarn(
c.ERRORS.INVALID_OPERATION,
"current platform's storage is asynchronous, please use updatePersistenceAsync insteed",
);
}),
(e.prototype.updatePersistenceAsync = function (e) {
return o(this, void 0, void 0, function () {
var t, n, r, i, o, s, c, l;
return a(this, function (a) {
switch (a.label) {
case 0:
if (e === this._persistence) return [2];
for (i in ((t = "local" === this._persistence),
(this._persistence = e),
(n = d(e, this._platformInfo.adapter)),
(r = []),
this.keys))
r.push(i);
((o = 0), (a.label = 1));
case 1:
return o < r.length
? ((s = r[o]),
(c = this.keys[s]),
t && this._alwaysLocalKeys.includes(s)
? [3, 4]
: [4, this._storage.getItem(c)])
: [3, 5];
case 2:
return (
(l = a.sent()),
u.isUndefined(l) || u.isNull(l)
? [3, 4]
: (n.setItem(c, l),
[4, this._storage.removeItem(c)])
);
case 3:
(a.sent(), (a.label = 4));
case 4:
return (o++, [3, 1]);
case 5:
return ((this._storage = n), [2]);
}
});
});
}),
(e.prototype.setStore = function (e, t, n) {
if ("async" !== this.mode) {
if (this._storage)
try {
var r = { version: n || "localCachev1", content: t };
this._storage.setItem(e, JSON.stringify(r));
} catch (i) {
throw new Error(
JSON.stringify({
code: c.ERRORS.OPERATION_FAIL,
msg:
"[" +
c.getSdkName() +
"][" +
c.ERRORS.OPERATION_FAIL +
"]setStore failed",
info: i,
}),
);
}
} else
u.printWarn(
c.ERRORS.INVALID_OPERATION,
"current platform's storage is asynchronous, please use setStoreAsync insteed",
);
}),
(e.prototype.setStoreAsync = function (e, t, n) {
return o(this, void 0, void 0, function () {
var r;
return a(this, function (i) {
switch (i.label) {
case 0:
if (!this._storage) return [2];
i.label = 1;
case 1:
return (
i.trys.push([1, 3, , 4]),
(r = { version: n || "localCachev1", content: t }),
[4, this._storage.setItem(e, JSON.stringify(r))]
);
case 2:
return (i.sent(), [3, 4]);
case 3:
return (i.sent(), [2]);
case 4:
return [2];
}
});
});
}),
(e.prototype.getStore = function (e, t) {
var n;
if ("async" !== this.mode) {
try {
if (
"undefined" != typeof process &&
(null === (n = process.env) || void 0 === n
? void 0
: n.tcb_token)
)
return process.env.tcb_token;
if (!this._storage) return "";
} catch (i) {
return "";
}
t = t || "localCachev1";
var r = this._storage.getItem(e);
return r && r.indexOf(t) >= 0 ? JSON.parse(r).content : "";
}
u.printWarn(
c.ERRORS.INVALID_OPERATION,
"current platform's storage is asynchronous, please use getStoreAsync insteed",
);
}),
(e.prototype.getStoreAsync = function (e, t) {
var n;
return o(this, void 0, void 0, function () {
var r;
return a(this, function (i) {
switch (i.label) {
case 0:
try {
if (
"undefined" != typeof process &&
(null === (n = process.env) || void 0 === n
? void 0
: n.tcb_token)
)
return [2, process.env.tcb_token];
if (!this._storage) return [2, ""];
} catch (o) {
return [2, ""];
}
return (
(t = t || "localCachev1"),
[4, this._storage.getItem(e)]
);
case 1:
return (r = i.sent()) && r.indexOf(t) >= 0
? [2, JSON.parse(r).content]
: [2, ""];
}
});
});
}),
(e.prototype.removeStore = function (e) {
"async" !== this.mode
? this._storage.removeItem(e)
: u.printWarn(
c.ERRORS.INVALID_OPERATION,
"current platform's storage is asynchronous, please use removeStoreAsync insteed",
);
}),
(e.prototype.removeStoreAsync = function (e) {
return o(this, void 0, void 0, function () {
return a(this, function (t) {
switch (t.label) {
case 0:
return [4, this._storage.removeItem(e)];
case 1:
return (t.sent(), [2]);
}
});
});
}),
e
);
})();
t.CloudbaseCache = f;
},
9978: function (e, t, n) {
"use strict";
var r,
i =
((r = function (e, t) {
return (
(r =
Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array &&
function (e, t) {
e.__proto__ = t;
}) ||
function (e, t) {
for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
}),
r(e, t)
);
}),
function (e, t) {
function n() {
this.constructor = e;
}
(r(e, t),
(e.prototype =
null === t
? Object.create(t)
: ((n.prototype = t.prototype), new n())));
}),
o = function () {
for (var e = 0, t = 0, n = arguments.length; t < n; t++)
e += arguments[t].length;
var r = Array(e),
i = 0;
for (t = 0; t < n; t++)
for (
var o = arguments[t], a = 0, s = o.length;
a < s;
a++, i++
)
r[i] = o[a];
return r;
};
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.removeEventListener =
t.activateEvent =
t.addEventListener =
t.CloudbaseEventEmitter =
t.IErrorEvent =
t.CloudbaseEvent =
void 0));
var a = n(5939),
s = function (e, t) {
((this.data = t || null), (this.name = e));
};
t.CloudbaseEvent = s;
var u = (function (e) {
function t(t, n) {
var r = e.call(this, "error", { error: t, data: n }) || this;
return ((r.error = t), r);
}
return (i(t, e), t);
})(s);
t.IErrorEvent = u;
var c = (function () {
function e() {
this._listeners = {};
}
return (
(e.prototype.on = function (e, t) {
return (
(function (e, t, n) {
((n[e] = n[e] || []), n[e].push(t));
})(e, t, this._listeners),
this
);
}),
(e.prototype.off = function (e, t) {
return (
(function (e, t, n) {
if (null == n ? void 0 : n[e]) {
var r = n[e].indexOf(t);
-1 !== r && n[e].splice(r, 1);
}
})(e, t, this._listeners),
this
);
}),
(e.prototype.fire = function (e, t) {
if (a.isInstanceOf(e, u))
return (console.error(e.error), this);
var n = a.isString(e) ? new s(e, t || {}) : e,
r = n.name;
if (this._listens(r)) {
n.target = this;
for (
var i = 0,
c = this._listeners[r] ? o(this._listeners[r]) : [];
i < c.length;
i++
)
c[i].call(this, n);
}
return this;
}),
(e.prototype._listens = function (e) {
return this._listeners[e] && this._listeners[e].length > 0;
}),
e
);
})();
t.CloudbaseEventEmitter = c;
var l = new c();
((t.addEventListener = function (e, t) {
l.on(e, t);
}),
(t.activateEvent = function (e, t) {
(void 0 === t && (t = {}), l.fire(e, t));
}),
(t.removeEventListener = function (e, t) {
l.off(e, t);
}));
},
5939: function (e, t, n) {
"use strict";
var r = function (e) {
return e && e.__esModule ? e : { default: e };
};
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.transformPhone =
t.sleep =
t.printGroupLog =
t.throwError =
t.printInfo =
t.printError =
t.printWarn =
t.execCallback =
t.createPromiseCallback =
t.removeParam =
t.getHash =
t.getQuery =
t.toQueryString =
t.createSign =
t.formatUrl =
t.genSeqId =
t.isFormData =
t.isInstanceOf =
t.isNull =
t.isPalinObject =
t.isUndefined =
t.isString =
t.isArray =
void 0));
var i = r(n(4180)),
o = r(n(6253)),
a = r(n(1717)),
s = n(3440);
function u(e) {
var t = o["default"].stringify(e);
return (t = (t = (t = t.replace(/=+$/, "")).replace(
/\+/g,
"-",
)).replace(/\//g, "_"));
}
((t.isArray = function (e) {
return "[object Array]" === Object.prototype.toString.call(e);
}),
(t.isString = function (e) {
return "string" == typeof e;
}),
(t.isUndefined = function (e) {
return void 0 === e;
}),
(t.isPalinObject = function (e) {
return "[object Object]" === Object.prototype.toString.call(e);
}),
(t.isNull = function (e) {
return "[object Null]" === Object.prototype.toString.call(e);
}),
(t.isInstanceOf = function (e, t) {
return e instanceof t;
}),
(t.isFormData = function (e) {
return (
"[object FormData]" === Object.prototype.toString.call(e)
);
}),
(t.genSeqId = function () {
return Math.random().toString(16).slice(2);
}),
(t.formatUrl = function (e, t, n) {
void 0 === n && (n = {});
var r = /\?/.test(t),
i = "";
for (var o in n)
("" === i ? !r && (t += "?") : (i += "&"),
(i += o + "=" + encodeURIComponent(n[o])));
return /^http(s)?\:\/\//.test((t += i)) ? t : "" + e + t;
}),
(t.createSign = function (e, t) {
var n =
u(
a["default"].parse(
JSON.stringify({ alg: "HS256", typ: "JWT" }),
),
) +
"." +
u(a["default"].parse(JSON.stringify(e)));
return n + "." + u(i["default"](n, t));
}),
(t.toQueryString = function (e) {
void 0 === e && (e = {});
var t = [];
for (var n in e) t.push(n + "=" + encodeURIComponent(e[n]));
return t.join("&");
}),
(t.getQuery = function (e, t) {
if ("undefined" == typeof window) return !1;
var n = t || window.location.search,
r = new RegExp("(^|&)" + e + "=([^&]*)(&|$)"),
i = n.substr(n.indexOf("?") + 1).match(r);
return null != i ? i[2] : "";
}),
(t.getHash = function (e) {
if ("undefined" == typeof window) return "";
var t = window.location.hash.match(
new RegExp("[#?&/]" + e + "=([^]*)"),
);
return t ? t[1] : "";
}),
(t.removeParam = function (e, t) {
var n = t.split("?")[0],
r = [],
i = -1 !== t.indexOf("?") ? t.split("?")[1] : "";
if ("" !== i) {
for (var o = (r = i.split("&")).length - 1; o >= 0; o -= 1)
r[o].split("=")[0] === e && r.splice(o, 1);
n = n + "?" + r.join("&");
}
return n;
}),
(t.createPromiseCallback = function () {
var e;
if (!Promise) {
(e = function () {}).promise = {};
var t = function () {
throw new Error(
'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.',
);
};
return (
Object.defineProperty(e.promise, "then", { get: t }),
Object.defineProperty(e.promise, "catch", { get: t }),
e
);
}
var n = new Promise(function (t, n) {
e = function (e, r) {
return e ? n(e) : t(r);
};
});
return ((e.promise = n), e);
}),
(t.execCallback = function (e, t, n) {
if ((void 0 === n && (n = null), e && "function" == typeof e))
return e(t, n);
if (t) throw t;
return n;
}),
(t.printWarn = function (e, t) {
console.warn("[" + s.getSdkName() + "][" + e + "]:" + t);
}),
(t.printError = function (e, t) {
console.error({
code: e,
msg: "[" + s.getSdkName() + "][" + e + "]:" + t,
});
}),
(t.printInfo = function (e, t) {
console.log("[" + s.getSdkName() + "][" + e + "]:" + t);
}),
(t.throwError = function (e, t) {
throw new Error(
JSON.stringify({
code: e,
msg: "[" + s.getSdkName() + "][" + e + "]:" + t,
}),
);
}),
(t.printGroupLog = function (e) {
var t = e.title,
n = e.subtitle,
r = void 0 === n ? "" : n,
i = e.content,
o = void 0 === i ? [] : i,
a = e.printTrace,
s = void 0 !== a && a,
u = e.collapsed;
void 0 !== u && u
? console.groupCollapsed(t, r)
: console.group(t, r);
for (var c = 0, l = o; c < l.length; c++) {
var d = l[c],
f = d.type,
p = d.body;
switch (f) {
case "info":
console.log(p);
break;
case "warn":
console.warn(p);
break;
case "error":
console.error(p);
}
}
(s && console.trace("stack trace:"), console.groupEnd());
}),
(t.sleep = function (e) {
return (
void 0 === e && (e = 0),
new Promise(function (t) {
return setTimeout(t, e);
})
);
}),
(t.transformPhone = function (e) {
return "+86" + e;
}));
},
2889: function (e, t, n) {
"use strict";
var r;
(n(477)(n(9367)),
(function (i) {
function o(e, t) {
var n = (65535 & e) + (65535 & t);
return (
(((e >> 16) + (t >> 16) + (n >> 16)) << 16) | (65535 & n)
);
}
function a(e, t, n, r, i, a) {
return o(
((s = o(o(t, e), o(r, a))) << (u = i)) | (s >>> (32 - u)),
n,
);
var s, u;
}
function s(e, t, n, r, i, o, s) {
return a((t & n) | (~t & r), e, t, i, o, s);
}
function u(e, t, n, r, i, o, s) {
return a((t & r) | (n & ~r), e, t, i, o, s);
}
function c(e, t, n, r, i, o, s) {
return a(t ^ n ^ r, e, t, i, o, s);
}
function l(e, t, n, r, i, o, s) {
return a(n ^ (t | ~r), e, t, i, o, s);
}
function d(e, t) {
var n, r, i, a, d;
((e[t >> 5] |= 128 << (t % 32)),
(e[14 + (((t + 64) >>> 9) << 4)] = t));
var f = 1732584193,
p = -271733879,
h = -1732584194,
m = 271733878;
for (n = 0; n < e.length; n += 16)
((r = f),
(i = p),
(a = h),
(d = m),
(f = s(f, p, h, m, e[n], 7, -680876936)),
(m = s(m, f, p, h, e[n + 1], 12, -389564586)),
(h = s(h, m, f, p, e[n + 2], 17, 606105819)),
(p = s(p, h, m, f, e[n + 3], 22, -1044525330)),
(f = s(f, p, h, m, e[n + 4], 7, -176418897)),
(m = s(m, f, p, h, e[n + 5], 12, 1200080426)),
(h = s(h, m, f, p, e[n + 6], 17, -1473231341)),
(p = s(p, h, m, f, e[n + 7], 22, -45705983)),
(f = s(f, p, h, m, e[n + 8], 7, 1770035416)),
(m = s(m, f, p, h, e[n + 9], 12, -1958414417)),
(h = s(h, m, f, p, e[n + 10], 17, -42063)),
(p = s(p, h, m, f, e[n + 11], 22, -1990404162)),
(f = s(f, p, h, m, e[n + 12], 7, 1804603682)),
(m = s(m, f, p, h, e[n + 13], 12, -40341101)),
(h = s(h, m, f, p, e[n + 14], 17, -1502002290)),
(f = u(
f,
(p = s(p, h, m, f, e[n + 15], 22, 1236535329)),
h,
m,
e[n + 1],
5,
-165796510,
)),
(m = u(m, f, p, h, e[n + 6], 9, -1069501632)),
(h = u(h, m, f, p, e[n + 11], 14, 643717713)),
(p = u(p, h, m, f, e[n], 20, -373897302)),
(f = u(f, p, h, m, e[n + 5], 5, -701558691)),
(m = u(m, f, p, h, e[n + 10], 9, 38016083)),
(h = u(h, m, f, p, e[n + 15], 14, -660478335)),
(p = u(p, h, m, f, e[n + 4], 20, -405537848)),
(f = u(f, p, h, m, e[n + 9], 5, 568446438)),
(m = u(m, f, p, h, e[n + 14], 9, -1019803690)),
(h = u(h, m, f, p, e[n + 3], 14, -187363961)),
(p = u(p, h, m, f, e[n + 8], 20, 1163531501)),
(f = u(f, p, h, m, e[n + 13], 5, -1444681467)),
(m = u(m, f, p, h, e[n + 2], 9, -51403784)),
(h = u(h, m, f, p, e[n + 7], 14, 1735328473)),
(f = c(
f,
(p = u(p, h, m, f, e[n + 12], 20, -1926607734)),
h,
m,
e[n + 5],
4,
-378558,
)),
(m = c(m, f, p, h, e[n + 8], 11, -2022574463)),
(h = c(h, m, f, p, e[n + 11], 16, 1839030562)),
(p = c(p, h, m, f, e[n + 14], 23, -35309556)),
(f = c(f, p, h, m, e[n + 1], 4, -1530992060)),
(m = c(m, f, p, h, e[n + 4], 11, 1272893353)),
(h = c(h, m, f, p, e[n + 7], 16, -155497632)),
(p = c(p, h, m, f, e[n + 10], 23, -1094730640)),
(f = c(f, p, h, m, e[n + 13], 4, 681279174)),
(m = c(m, f, p, h, e[n], 11, -358537222)),
(h = c(h, m, f, p, e[n + 3], 16, -722521979)),
(p = c(p, h, m, f, e[n + 6], 23, 76029189)),
(f = c(f, p, h, m, e[n + 9], 4, -640364487)),
(m = c(m, f, p, h, e[n + 12], 11, -421815835)),
(h = c(h, m, f, p, e[n + 15], 16, 530742520)),
(f = l(
f,
(p = c(p, h, m, f, e[n + 2], 23, -995338651)),
h,
m,
e[n],
6,
-198630844,
)),
(m = l(m, f, p, h, e[n + 7], 10, 1126891415)),
(h = l(h, m, f, p, e[n + 14], 15, -1416354905)),
(p = l(p, h, m, f, e[n + 5], 21, -57434055)),
(f = l(f, p, h, m, e[n + 12], 6, 1700485571)),
(m = l(m, f, p, h, e[n + 3], 10, -1894986606)),
(h = l(h, m, f, p, e[n + 10], 15, -1051523)),
(p = l(p, h, m, f, e[n + 1], 21, -2054922799)),
(f = l(f, p, h, m, e[n + 8], 6, 1873313359)),
(m = l(m, f, p, h, e[n + 15], 10, -30611744)),
(h = l(h, m, f, p, e[n + 6], 15, -1560198380)),
(p = l(p, h, m, f, e[n + 13], 21, 1309151649)),
(f = l(f, p, h, m, e[n + 4], 6, -145523070)),
(m = l(m, f, p, h, e[n + 11], 10, -1120210379)),
(h = l(h, m, f, p, e[n + 2], 15, 718787259)),
(p = l(p, h, m, f, e[n + 9], 21, -343485551)),
(f = o(f, r)),
(p = o(p, i)),
(h = o(h, a)),
(m = o(m, d)));
return [f, p, h, m];
}
function f(e) {
var t,
n = "",
r = 32 * e.length;
for (t = 0; t < r; t += 8)
n += String.fromCharCode((e[t >> 5] >>> (t % 32)) & 255);
return n;
}
function p(e) {
var t,
n = [];
for (
n[(e.length >> 2) - 1] = undefined, t = 0;
t < n.length;
t += 1
)
n[t] = 0;
var r = 8 * e.length;
for (t = 0; t < r; t += 8)
n[t >> 5] |= (255 & e.charCodeAt(t / 8)) << (t % 32);
return n;
}
function h(e) {
var t,
n,
r = "0123456789abcdef",
i = "";
for (n = 0; n < e.length; n += 1)
((t = e.charCodeAt(n)),
(i += r.charAt((t >>> 4) & 15) + r.charAt(15 & t)));
return i;
}
function m(e) {
return unescape(encodeURIComponent(e));
}
function g(e) {
return (function (e) {
return f(d(p(e), 8 * e.length));
})(m(e));
}
function v(e, t) {
return (function (e, t) {
var n,
r,
i = p(e),
o = [],
a = [];
for (
o[15] = a[15] = undefined,
i.length > 16 && (i = d(i, 8 * e.length)),
n = 0;
n < 16;
n += 1
)
((o[n] = 909522486 ^ i[n]), (a[n] = 1549556828 ^ i[n]));
return (
(r = d(o.concat(p(t)), 512 + 8 * t.length)),
f(d(a.concat(r), 640))
);
})(m(e), m(t));
}
function _(e, t, n) {
return t ? (n ? v(t, e) : h(v(t, e))) : n ? g(e) : h(g(e));
}
(r = function () {
return _;
}.call(t, n, t, e)) === undefined || (e.exports = r);
})());
},
2473: function (e, t, n) {
"use strict";
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.wxMpStorage =
t["default"] =
t.WxRequest =
t.WxMpWebSocket =
void 0));
var r,
i = n(6885),
o =
((r = function (e, t) {
return (
(r =
Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array &&
function (e, t) {
e.__proto__ = t;
}) ||
function (e, t) {
for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
}),
r(e, t)
);
}),
function (e, t) {
function n() {
this.constructor = e;
}
(r(e, t),
(e.prototype =
null === t
? Object.create(t)
: ((n.prototype = t.prototype), new n())));
}),
a = function () {
return (
(a =
Object.assign ||
function (e) {
for (var t, n = 1, r = arguments.length; n < r; n++)
for (var i in (t = arguments[n]))
Object.prototype.hasOwnProperty.call(t, i) &&
(e[i] = t[i]);
return e;
}),
a.apply(this, arguments)
);
},
s = function (e, t, n, r) {
return new (n || (n = Promise))(function (i, o) {
function a(e) {
try {
u(r.next(e));
} catch (t) {
o(t);
}
}
function s(e) {
try {
u(r["throw"](e));
} catch (t) {
o(t);
}
}
function u(e) {
var t;
e.done
? i(e.value)
: ((t = e.value),
t instanceof n
? t
: new n(function (e) {
e(t);
})).then(a, s);
}
u((r = r.apply(e, t || [])).next());
});
},
u = function (e, t) {
var n,
r,
i,
o,
a = {
label: 0,
sent: function () {
if (1 & i[0]) throw i[1];
return i[1];
},
trys: [],
ops: [],
};
return (
(o = { next: s(0), throw: s(1), return: s(2) }),
"function" == typeof Symbol &&
(o[Symbol.iterator] = function () {
return this;
}),
o
);
function s(o) {
return function (s) {
return (function (o) {
if (n)
throw new TypeError("Generator is already executing.");
for (; a; )
try {
if (
((n = 1),
r &&
(i =
2 & o[0]
? r["return"]
: o[0]
? r["throw"] ||
((i = r["return"]) && i.call(r), 0)
: r.next) &&
!(i = i.call(r, o[1])).done)
)
return i;
switch (
((r = 0), i && (o = [2 & o[0], i.value]), o[0])
) {
case 0:
case 1:
i = o;
break;
case 4:
return (a.label++, { value: o[1], done: !1 });
case 5:
(a.label++, (r = o[1]), (o = [0]));
continue;
case 7:
((o = a.ops.pop()), a.trys.pop());
continue;
default:
if (
!(
(i =
(i = a.trys).length > 0 &&
i[i.length - 1]) ||
(6 !== o[0] && 2 !== o[0])
)
) {
a = 0;
continue;
}
if (
3 === o[0] &&
(!i || (o[1] > i[0] && o[1] < i[3]))
) {
a.label = o[1];
break;
}
if (6 === o[0] && a.label < i[1]) {
((a.label = i[1]), (i = o));
break;
}
if (i && a.label < i[2]) {
((a.label = i[2]), a.ops.push(o));
break;
}
(i[2] && a.ops.pop(), a.trys.pop());
continue;
}
o = t.call(e, a);
} catch (s) {
((o = [6, s]), (r = 0));
} finally {
n = i = 0;
}
if (5 & o[0]) throw o[1];
return { value: o[0] ? o[1] : void 0, done: !0 };
})([o, s]);
};
}
},
c = (t.WxRequest = (function (e) {
function t(t) {
void 0 === t && (t = {});
var n = e.call(this) || this,
r = t.timeout,
i = t.timeoutMsg,
o = t.restrictedMethods;
return (
(n._timeout = r || 0),
(n._timeoutMsg = i || "请求超时"),
(n._restrictedMethods = o || [
"get",
"post",
"upload",
"download",
]),
n
);
}
return (
o(t, e),
(t.prototype.post = function (e) {
var t = this;
return new Promise(function (n, r) {
var o = e.url,
a = e.data,
s = e.headers,
u = wx.request({
url: (0, i.formatUrl)("https:", o),
data: a,
timeout: t._timeout,
method: "POST",
header: s,
success: function (e) {
n(e);
},
fail: function (e) {
r(e);
},
complete: function (e) {
if (
e &&
e.errMsg &&
t._timeout &&
-1 !== t._restrictedMethods.indexOf("post") &&
"request:fail timeout" === e.errMsg
) {
console.warn(t._timeoutMsg);
try {
u.abort();
} catch (n) {}
}
},
});
});
}),
(t.prototype.upload = function (e) {
var t = this,
n = this;
return new Promise(function (r) {
return s(t, void 0, void 0, function () {
var t, i, o, s, c, l;
return u(this, function (u) {
return (
(t = e.url),
(i = e.file),
(o = e.data),
(s = e.headers),
(c = e.onUploadProgress),
(l = wx.uploadFile({
url: t,
filePath: i,
name: "file",
formData: a({}, o),
header: s,
timeout: this._timeout,
success: function (e) {
var t = {
statusCode: e.statusCode,
data: e.data || {},
};
(200 === e.statusCode &&
o.success_action_status &&
(t.statusCode = parseInt(
o.success_action_status,
10,
)),
r(t));
},
fail: function (e) {
r(e);
},
complete: function (e) {
if (
e &&
e.errMsg &&
n._timeout &&
-1 !==
n._restrictedMethods.indexOf("upload") &&
"request:fail timeout" === e.errMsg
) {
console.warn(n._timeoutMsg);
try {
l.abort();
} catch (t) {}
}
},
})),
c &&
l.onProgressUpdate(function (e) {
c(e);
}),
[2]
);
});
});
});
}),
(t.prototype.download = function (e) {
var t = this,
n = this;
return new Promise(function (r, o) {
var a = e.url,
s = e.headers,
u = wx.downloadFile({
url: (0, i.formatUrl)("https:", a),
header: s,
timeout: t._timeout,
success: function (e) {
200 === e.statusCode && e.tempFilePath
? r({
statusCode: 200,
tempFilePath: e.tempFilePath,
})
: r(e);
},
fail: function (e) {
o(e);
},
complete: function (e) {
if (
e &&
e.errMsg &&
n._timeout &&
-1 !== n._restrictedMethods.indexOf("download") &&
"request:fail timeout" === e.errMsg
) {
console.warn(n._timeoutMsg);
try {
u.abort();
} catch (t) {}
}
},
});
});
}),
t
);
})(i.AbstractSDKRequest)),
l = (t.wxMpStorage = {
setItem: function (e, t) {
wx.setStorageSync(e, t);
},
getItem: function (e) {
return wx.getStorageSync(e);
},
removeItem: function (e) {
wx.removeStorageSync(e);
},
clear: function () {
wx.clearStorageSync();
},
}),
d = (t.WxMpWebSocket = function (e, t) {
void 0 === t && (t = {});
var n = wx.connectSocket(a({ url: e }, t));
return {
set onopen(e) {
n.onOpen(e);
},
set onmessage(e) {
n.onMessage(e);
},
set onclose(e) {
n.onClose(e);
},
set onerror(e) {
n.onError(e);
},
send: function (e) {
return n.send({ data: e });
},
close: function (e, t) {
return n.close({ code: e, reason: t });
},
get readyState() {
return n.readyState;
},
CONNECTING: 0,
OPEN: 1,
CLOSING: 2,
CLOSED: 3,
};
}),
f = {
genAdapter: function () {
return {
root: {},
reqClass: c,
wsClass: d,
localStorage: l,
primaryStorage: i.StorageType.local,
getAppSign: function () {
var e = wx.getAccountInfoSync();
return "undefined" != typeof App ||
"undefined" != typeof getApp ||
wx.onAppHide ||
wx.offAppHide ||
wx.onAppShow ||
wx.offAppShow
? e && e.miniProgram
? e.miniProgram.appId
: ""
: e && e.plugin
? e.plugin.appId
: "";
},
};
},
isMatch: function () {
if ("undefined" == typeof wx) return !1;
if ("undefined" == typeof Page) return !1;
if (!wx.getSystemInfoSync) return !1;
if (!wx.getStorageSync) return !1;
if (!wx.setStorageSync) return !1;
if (!wx.connectSocket) return !1;
if (!wx.request) return !1;
try {
if (!wx.getSystemInfoSync()) return !1;
if ("qq" === wx.getSystemInfoSync().AppPlatform) return !1;
} catch (e) {
return !1;
}
return !0;
},
runtime: "wx_mp",
};
t["default"] = f;
},
4794: function (e, t, n) {
"use strict";
var r,
i,
o,
a,
s = n(477)(n(9367));
((a = function () {
var e =
e ||
(function (e, t) {
var n =
Object.create ||
(function () {
function e() {}
return function (t) {
var n;
return (
(e.prototype = t),
(n = new e()),
(e.prototype = null),
n
);
};
})(),
r = {},
i = (r.lib = {}),
o = (i.Base = {
extend: function (e) {
var t = n(this);
return (
e && t.mixIn(e),
(t.hasOwnProperty("init") && this.init !== t.init) ||
(t.init = function () {
t.$super.init.apply(this, arguments);
}),
(t.init.prototype = t),
(t.$super = this),
t
);
},
create: function () {
var e = this.extend();
return (e.init.apply(e, arguments), e);
},
init: function () {},
mixIn: function (e) {
for (var t in e)
e.hasOwnProperty(t) && (this[t] = e[t]);
e.hasOwnProperty("toString") &&
(this.toString = e.toString);
},
clone: function () {
return this.init.prototype.extend(this);
},
}),
a = (i.WordArray = o.extend({
init: function (e, t) {
((e = this.words = e || []),
(this.sigBytes = null != t ? t : 4 * e.length));
},
toString: function (e) {
return (e || u).stringify(this);
},
concat: function (e) {
var t = this.words,
n = e.words,
r = this.sigBytes,
i = e.sigBytes;
if ((this.clamp(), r % 4))
for (var o = 0; o < i; o++) {
var a = (n[o >>> 2] >>> (24 - (o % 4) * 8)) & 255;
t[(r + o) >>> 2] |= a << (24 - ((r + o) % 4) * 8);
}
else
for (o = 0; o < i; o += 4)
t[(r + o) >>> 2] = n[o >>> 2];
return ((this.sigBytes += i), this);
},
clamp: function () {
var t = this.words,
n = this.sigBytes;
((t[n >>> 2] &= 4294967295 << (32 - (n % 4) * 8)),
(t.length = e.ceil(n / 4)));
},
clone: function () {
var e = o.clone.call(this);
return ((e.words = this.words.slice(0)), e);
},
random: function (t) {
for (
var n,
r = [],
i = function (t) {
var n = 987654321,
r = 4294967295;
return function () {
var i =
(((n =
(36969 * (65535 & n) + (n >> 16)) & r) <<
16) +
(t =
(18e3 * (65535 & t) + (t >> 16)) & r)) &
r;
return (
(i /= 4294967296),
(i += 0.5) * (e.random() > 0.5 ? 1 : -1)
);
};
},
o = 0;
o < t;
o += 4
) {
var s = i(4294967296 * (n || e.random()));
((n = 987654071 * s()),
r.push((4294967296 * s()) | 0));
}
return new a.init(r, t);
},
})),
s = (r.enc = {}),
u = (s.Hex = {
stringify: function (e) {
for (
var t = e.words, n = e.sigBytes, r = [], i = 0;
i < n;
i++
) {
var o = (t[i >>> 2] >>> (24 - (i % 4) * 8)) & 255;
(r.push((o >>> 4).toString(16)),
r.push((15 & o).toString(16)));
}
return r.join("");
},
parse: function (e) {
for (var t = e.length, n = [], r = 0; r < t; r += 2)
n[r >>> 3] |=
parseInt(e.substr(r, 2), 16) << (24 - (r % 8) * 4);
return new a.init(n, t / 2);
},
}),
c = (s.Latin1 = {
stringify: function (e) {
for (
var t = e.words, n = e.sigBytes, r = [], i = 0;
i < n;
i++
) {
var o = (t[i >>> 2] >>> (24 - (i % 4) * 8)) & 255;
r.push(String.fromCharCode(o));
}
return r.join("");
},
parse: function (e) {
for (var t = e.length, n = [], r = 0; r < t; r++)
n[r >>> 2] |=
(255 & e.charCodeAt(r)) << (24 - (r % 4) * 8);
return new a.init(n, t);
},
}),
l = (s.Utf8 = {
stringify: function (e) {
try {
return decodeURIComponent(escape(c.stringify(e)));
} catch (t) {
throw new Error("Malformed UTF-8 data");
}
},
parse: function (e) {
return c.parse(unescape(encodeURIComponent(e)));
},
}),
d = (i.BufferedBlockAlgorithm = o.extend({
reset: function () {
((this._data = new a.init()), (this._nDataBytes = 0));
},
_append: function (e) {
("string" == typeof e && (e = l.parse(e)),
this._data.concat(e),
(this._nDataBytes += e.sigBytes));
},
_process: function (t) {
var n = this._data,
r = n.words,
i = n.sigBytes,
o = this.blockSize,
s = i / (4 * o),
u =
(s = t
? e.ceil(s)
: e.max((0 | s) - this._minBufferSize, 0)) * o,
c = e.min(4 * u, i);
if (u) {
for (var l = 0; l < u; l += o)
this._doProcessBlock(r, l);
var d = r.splice(0, u);
n.sigBytes -= c;
}
return new a.init(d, c);
},
clone: function () {
var e = o.clone.call(this);
return ((e._data = this._data.clone()), e);
},
_minBufferSize: 0,
})),
f =
((i.Hasher = d.extend({
cfg: o.extend(),
init: function (e) {
((this.cfg = this.cfg.extend(e)), this.reset());
},
reset: function () {
(d.reset.call(this), this._doReset());
},
update: function (e) {
return (this._append(e), this._process(), this);
},
finalize: function (e) {
return (e && this._append(e), this._doFinalize());
},
blockSize: 16,
_createHelper: function (e) {
return function (t, n) {
return new e.init(n).finalize(t);
};
},
_createHmacHelper: function (e) {
return function (t, n) {
return new f.HMAC.init(e, n).finalize(t);
};
},
})),
(r.algo = {}));
return r;
})(Math);
return e;
}),
"object" === (0, s["default"])(t)
? (e.exports = t = a())
: ((i = []),
(o = "function" == typeof (r = a) ? r.apply(t, i) : r) ===
undefined || (e.exports = o)));
},
6253: function (e, t, n) {
"use strict";
var r,
i,
o,
a,
s = n(477)(n(9367));
((a = function (e) {
var t, n;
return (
(n = (t = e).lib.WordArray),
(t.enc.Base64 = {
stringify: function (e) {
var t = e.words,
n = e.sigBytes,
r = this._map;
e.clamp();
for (var i = [], o = 0; o < n; o += 3)
for (
var a =
(((t[o >>> 2] >>> (24 - (o % 4) * 8)) & 255) <<
16) |
(((t[(o + 1) >>> 2] >>> (24 - ((o + 1) % 4) * 8)) &
255) <<
8) |
((t[(o + 2) >>> 2] >>> (24 - ((o + 2) % 4) * 8)) &
255),
s = 0;
s < 4 && o + 0.75 * s < n;
s++
)
i.push(r.charAt((a >>> (6 * (3 - s))) & 63));
var u = r.charAt(64);
if (u) for (; i.length % 4; ) i.push(u);
return i.join("");
},
parse: function (e) {
var t = e.length,
r = this._map,
i = this._reverseMap;
if (!i) {
i = this._reverseMap = [];
for (var o = 0; o < r.length; o++) i[r.charCodeAt(o)] = o;
}
var a = r.charAt(64);
if (a) {
var s = e.indexOf(a);
-1 !== s && (t = s);
}
return (function (e, t, r) {
for (var i = [], o = 0, a = 0; a < t; a++)
if (a % 4) {
var s = r[e.charCodeAt(a - 1)] << ((a % 4) * 2),
u = r[e.charCodeAt(a)] >>> (6 - (a % 4) * 2);
((i[o >>> 2] |= (s | u) << (24 - (o % 4) * 8)), o++);
}
return n.create(i, o);
})(e, t, i);
},
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
}),
e.enc.Base64
);
}),
"object" === (0, s["default"])(t)
? (e.exports = t = a(n(4794)))
: ((i = [n(4794)]),
(o = "function" == typeof (r = a) ? r.apply(t, i) : r) ===
undefined || (e.exports = o)));
},
1717: function (e, t, n) {
"use strict";
var r,
i,
o,
a,
s = n(477)(n(9367));
((a = function (e) {
return e.enc.Utf8;
}),
"object" === (0, s["default"])(t)
? (e.exports = t = a(n(4794)))
: ((i = [n(4794)]),
(o = "function" == typeof (r = a) ? r.apply(t, i) : r) ===
undefined || (e.exports = o)));
},
4180: function (e, t, n) {
"use strict";
var r,
i,
o,
a,
s = n(477)(n(9367));
((a = function (e) {
return e.HmacSHA256;
}),
"object" === (0, s["default"])(t)
? (e.exports = t = a(n(4794), n(5794), n(2910)))
: ((i = [n(4794), n(5794), n(2910)]),
(o = "function" == typeof (r = a) ? r.apply(t, i) : r) ===
undefined || (e.exports = o)));
},
2910: function (e, t, n) {
"use strict";
var r,
i,
o,
a,
s = n(477)(n(9367));
((a = function (e) {
var t, n, r;
((n = (t = e).lib.Base),
(r = t.enc.Utf8),
(t.algo.HMAC = n.extend({
init: function (e, t) {
((e = this._hasher = new e.init()),
"string" == typeof t && (t = r.parse(t)));
var n = e.blockSize,
i = 4 * n;
(t.sigBytes > i && (t = e.finalize(t)), t.clamp());
for (
var o = (this._oKey = t.clone()),
a = (this._iKey = t.clone()),
s = o.words,
u = a.words,
c = 0;
c < n;
c++
)
((s[c] ^= 1549556828), (u[c] ^= 909522486));
((o.sigBytes = a.sigBytes = i), this.reset());
},
reset: function () {
var e = this._hasher;
(e.reset(), e.update(this._iKey));
},
update: function (e) {
return (this._hasher.update(e), this);
},
finalize: function (e) {
var t = this._hasher,
n = t.finalize(e);
return (
t.reset(),
t.finalize(this._oKey.clone().concat(n))
);
},
})));
}),
"object" === (0, s["default"])(t)
? (e.exports = t = a(n(4794)))
: ((i = [n(4794)]),
(o = "function" == typeof (r = a) ? r.apply(t, i) : r) ===
undefined || (e.exports = o)));
},
5794: function (e, t, n) {
"use strict";
var r,
i,
o,
a,
s = n(477)(n(9367));
((a = function (e) {
return (
(function (t) {
var n = e,
r = n.lib,
i = r.WordArray,
o = r.Hasher,
a = n.algo,
s = [],
u = [];
!(function () {
function e(e) {
for (var n = t.sqrt(e), r = 2; r <= n; r++)
if (!(e % r)) return !1;
return !0;
}
function n(e) {
return (4294967296 * (e - (0 | e))) | 0;
}
for (var r = 2, i = 0; i < 64; )
(e(r) &&
(i < 8 && (s[i] = n(t.pow(r, 0.5))),
(u[i] = n(t.pow(r, 1 / 3))),
i++),
r++);
})();
var c = [],
l = (a.SHA256 = o.extend({
_doReset: function () {
this._hash = new i.init(s.slice(0));
},
_doProcessBlock: function (e, t) {
for (
var n = this._hash.words,
r = n[0],
i = n[1],
o = n[2],
a = n[3],
s = n[4],
l = n[5],
d = n[6],
f = n[7],
p = 0;
p < 64;
p++
) {
if (p < 16) c[p] = 0 | e[t + p];
else {
var h = c[p - 15],
m =
((h << 25) | (h >>> 7)) ^
((h << 14) | (h >>> 18)) ^
(h >>> 3),
g = c[p - 2],
v =
((g << 15) | (g >>> 17)) ^
((g << 13) | (g >>> 19)) ^
(g >>> 10);
c[p] = m + c[p - 7] + v + c[p - 16];
}
var _ = (r & i) ^ (r & o) ^ (i & o),
y =
((r << 30) | (r >>> 2)) ^
((r << 19) | (r >>> 13)) ^
((r << 10) | (r >>> 22)),
b =
f +
(((s << 26) | (s >>> 6)) ^
((s << 21) | (s >>> 11)) ^
((s << 7) | (s >>> 25))) +
((s & l) ^ (~s & d)) +
u[p] +
c[p];
((f = d),
(d = l),
(l = s),
(s = (a + b) | 0),
(a = o),
(o = i),
(i = r),
(r = (b + (y + _)) | 0));
}
((n[0] = (n[0] + r) | 0),
(n[1] = (n[1] + i) | 0),
(n[2] = (n[2] + o) | 0),
(n[3] = (n[3] + a) | 0),
(n[4] = (n[4] + s) | 0),
(n[5] = (n[5] + l) | 0),
(n[6] = (n[6] + d) | 0),
(n[7] = (n[7] + f) | 0));
},
_doFinalize: function () {
var e = this._data,
n = e.words,
r = 8 * this._nDataBytes,
i = 8 * e.sigBytes;
return (
(n[i >>> 5] |= 128 << (24 - (i % 32))),
(n[14 + (((i + 64) >>> 9) << 4)] = t.floor(
r / 4294967296,
)),
(n[15 + (((i + 64) >>> 9) << 4)] = r),
(e.sigBytes = 4 * n.length),
this._process(),
this._hash
);
},
clone: function () {
var e = o.clone.call(this);
return ((e._hash = this._hash.clone()), e);
},
}));
((n.SHA256 = o._createHelper(l)),
(n.HmacSHA256 = o._createHmacHelper(l)));
})(Math),
e.SHA256
);
}),
"object" === (0, s["default"])(t)
? (e.exports = t = a(n(4794)))
: ((i = [n(4794)]),
(o = "function" == typeof (r = a) ? r.apply(t, i) : r) ===
undefined || (e.exports = o)));
},
9067: function (e) {
"use strict";
e.exports = function (e) {
var t = [];
return (
(t.toString = function () {
return this.map(function (t) {
var n = "",
r = "undefined" != typeof t[5];
return (
t[4] && (n += "@supports (".concat(t[4], ") {")),
t[2] && (n += "@media ".concat(t[2], " {")),
r &&
(n += "@layer".concat(
t[5].length > 0 ? " ".concat(t[5]) : "",
" {",
)),
(n += e(t)),
r && (n += "}"),
t[2] && (n += "}"),
t[4] && (n += "}"),
n
);
}).join("");
}),
(t.i = function (e, n, r, i, o) {
"string" == typeof e && (e = [[null, e, undefined]]);
var a = {};
if (r)
for (var s = 0; s < this.length; s++) {
var u = this[s][0];
null != u && (a[u] = !0);
}
for (var c = 0; c < e.length; c++) {
var l = [].concat(e[c]);
(r && a[l[0]]) ||
(void 0 !== o &&
("undefined" == typeof l[5] ||
(l[1] = "@layer"
.concat(
l[5].length > 0 ? " ".concat(l[5]) : "",
" {",
)
.concat(l[1], "}")),
(l[5] = o)),
n &&
(l[2]
? ((l[1] = "@media "
.concat(l[2], " {")
.concat(l[1], "}")),
(l[2] = n))
: (l[2] = n)),
i &&
(l[4]
? ((l[1] = "@supports ("
.concat(l[4], ") {")
.concat(l[1], "}")),
(l[4] = i))
: (l[4] = "".concat(i))),
t.push(l));
}
}),
t
);
};
},
5346: function (e) {
"use strict";
e.exports = function (e) {
return e[1];
};
},
1463: function (e, t, n) {
"use strict";
var r = n(477)(n(9367));
e.exports = (function (e) {
var t = {};
function n(r) {
if (t[r]) return t[r].exports;
var i = (t[r] = { i: r, l: !1, exports: {} });
return (
e[r].call(i.exports, i, i.exports, n),
(i.l = !0),
i.exports
);
}
return (
(n.m = e),
(n.c = t),
(n.d = function (e, t, r) {
n.o(e, t) ||
Object.defineProperty(e, t, { enumerable: !0, get: r });
}),
(n.r = function (e) {
("undefined" != typeof Symbol &&
Symbol.toStringTag &&
Object.defineProperty(e, Symbol.toStringTag, {
value: "Module",
}),
Object.defineProperty(e, "__esModule", { value: !0 }));
}),
(n.t = function (e, t) {
if ((1 & t && (e = n(e)), 8 & t)) return e;
if (
4 & t &&
"object" === (0, r["default"])(e) &&
e &&
e.__esModule
)
return e;
var i = Object.create(null);
if (
(n.r(i),
Object.defineProperty(i, "default", {
enumerable: !0,
value: e,
}),
2 & t && "string" != typeof e)
)
for (var o in e)
n.d(
i,
o,
function (t) {
return e[t];
}.bind(null, o),
);
return i;
}),
(n.n = function (e) {
var t =
e && e.__esModule
? function () {
return e["default"];
}
: function () {
return e;
};
return (n.d(t, "a", t), t);
}),
(n.o = function (e, t) {
return Object.prototype.hasOwnProperty.call(e, t);
}),
(n.p = "/dist/"),
n((n.s = 96))
);
})({
0: function (e, t, n) {
function r(e, t, n, r, i, o, a, s) {
var u,
c = "function" == typeof e ? e.options : e;
if (
(t &&
((c.render = t),
(c.staticRenderFns = n),
(c._compiled = !0)),
r && (c.functional = !0),
o && (c._scopeId = "data-v-" + o),
a
? ((u = function (e) {
((e =
e ||
(this.$vnode && this.$vnode.ssrContext) ||
(this.parent &&
this.parent.$vnode &&
this.parent.$vnode.ssrContext)) ||
"undefined" == typeof __VUE_SSR_CONTEXT__ ||
(e = __VUE_SSR_CONTEXT__),
i && i.call(this, e),
e &&
e._registeredComponents &&
e._registeredComponents.add(a));
}),
(c._ssrRegister = u))
: i &&
(u = s
? function () {
i.call(this, this.$root.$options.shadowRoot);
}
: i),
u)
)
if (c.functional) {
c._injectStyles = u;
var l = c.render;
c.render = function (e, t) {
return (u.call(t), l(e, t));
};
} else {
var d = c.beforeCreate;
c.beforeCreate = d ? [].concat(d, u) : [u];
}
return { exports: e, options: c };
}
n.d(t, "a", function () {
return r;
});
},
96: function (e, t, n) {
n.r(t);
var r = function () {
var e = this,
t = e.$createElement,
n = e._self._c || t;
return n(
"button",
{
staticClass: "el-button",
class: [
e.type ? "el-button--" + e.type : "",
e.buttonSize ? "el-button--" + e.buttonSize : "",
{
"is-disabled": e.buttonDisabled,
"is-loading": e.loading,
"is-plain": e.plain,
"is-round": e.round,
"is-circle": e.circle,
},
],
attrs: {
disabled: e.buttonDisabled || e.loading,
autofocus: e.autofocus,
type: e.nativeType,
},
on: { click: e.handleClick },
},
[
e.loading
? n("i", { staticClass: "el-icon-loading" })
: e._e(),
e.icon && !e.loading ? n("i", { class: e.icon }) : e._e(),
e.$slots["default"]
? n("span", [e._t("default")], 2)
: e._e(),
],
);
};
r._withStripped = !0;
var i = {
name: "ElButton",
inject: {
elForm: { default: "" },
elFormItem: { default: "" },
},
props: {
type: { type: String, default: "default" },
size: String,
icon: { type: String, default: "" },
nativeType: { type: String, default: "button" },
loading: Boolean,
disabled: Boolean,
plain: Boolean,
autofocus: Boolean,
round: Boolean,
circle: Boolean,
},
computed: {
_elFormItemSize: function () {
return (this.elFormItem || {}).elFormItemSize;
},
buttonSize: function () {
return (
this.size ||
this._elFormItemSize ||
(this.$ELEMENT || {}).size
);
},
buttonDisabled: function () {
return this.$options.propsData.hasOwnProperty(
"disabled",
)
? this.disabled
: (this.elForm || {}).disabled;
},
},
methods: {
handleClick: function (e) {
this.$emit("click", e);
},
},
},
o = n(0),
a = Object(o.a)(i, r, [], !1, null, null, null);
a.options.__file = "packages/button/src/button.vue";
var s = a.exports;
((s.install = function (e) {
e.component(s.name, s);
}),
(t["default"] = s));
},
});
},
5735: function (e, t, n) {
"use strict";
var r = n(477)(n(9367));
e.exports = (function (e) {
var t = {};
function n(r) {
if (t[r]) return t[r].exports;
var i = (t[r] = { i: r, l: !1, exports: {} });
return (
e[r].call(i.exports, i, i.exports, n),
(i.l = !0),
i.exports
);
}
return (
(n.m = e),
(n.c = t),
(n.d = function (e, t, r) {
n.o(e, t) ||
Object.defineProperty(e, t, { enumerable: !0, get: r });
}),
(n.r = function (e) {
("undefined" != typeof Symbol &&
Symbol.toStringTag &&
Object.defineProperty(e, Symbol.toStringTag, {
value: "Module",
}),
Object.defineProperty(e, "__esModule", { value: !0 }));
}),
(n.t = function (e, t) {
if ((1 & t && (e = n(e)), 8 & t)) return e;
if (
4 & t &&
"object" === (0, r["default"])(e) &&
e &&
e.__esModule
)
return e;
var i = Object.create(null);
if (
(n.r(i),
Object.defineProperty(i, "default", {
enumerable: !0,
value: e,
}),
2 & t && "string" != typeof e)
)
for (var o in e)
n.d(
i,
o,
function (t) {
return e[t];
}.bind(null, o),
);
return i;
}),
(n.n = function (e) {
var t =
e && e.__esModule
? function () {
return e["default"];
}
: function () {
return e;
};
return (n.d(t, "a", t), t);
}),
(n.o = function (e, t) {
return Object.prototype.hasOwnProperty.call(e, t);
}),
(n.p = "/dist/"),
n((n.s = 75))
);
})({
0: function (e, t, n) {
function r(e, t, n, r, i, o, a, s) {
var u,
c = "function" == typeof e ? e.options : e;
if (
(t &&
((c.render = t),
(c.staticRenderFns = n),
(c._compiled = !0)),
r && (c.functional = !0),
o && (c._scopeId = "data-v-" + o),
a
? ((u = function (e) {
((e =
e ||
(this.$vnode && this.$vnode.ssrContext) ||
(this.parent &&
this.parent.$vnode &&
this.parent.$vnode.ssrContext)) ||
"undefined" == typeof __VUE_SSR_CONTEXT__ ||
(e = __VUE_SSR_CONTEXT__),
i && i.call(this, e),
e &&
e._registeredComponents &&
e._registeredComponents.add(a));
}),
(c._ssrRegister = u))
: i &&
(u = s
? function () {
i.call(this, this.$root.$options.shadowRoot);
}
: i),
u)
)
if (c.functional) {
c._injectStyles = u;
var l = c.render;
c.render = function (e, t) {
return (u.call(t), l(e, t));
};
} else {
var d = c.beforeCreate;
c.beforeCreate = d ? [].concat(d, u) : [u];
}
return { exports: e, options: c };
}
n.d(t, "a", function () {
return r;
});
},
11: function (e, t) {
e.exports = n(2036);
},
21: function (e, t) {
e.exports = n(4524);
},
4: function (e, t) {
e.exports = n(5956);
},
75: function (e, t, n) {
n.r(t);
var r = function () {
var e = this,
t = e.$createElement,
n = e._self._c || t;
return n(
"div",
{
class: [
"textarea" === e.type ? "el-textarea" : "el-input",
e.inputSize ? "el-input--" + e.inputSize : "",
{
"is-disabled": e.inputDisabled,
"is-exceed": e.inputExceed,
"el-input-group": e.$slots.prepend || e.$slots.append,
"el-input-group--append": e.$slots.append,
"el-input-group--prepend": e.$slots.prepend,
"el-input--prefix": e.$slots.prefix || e.prefixIcon,
"el-input--suffix":
e.$slots.suffix ||
e.suffixIcon ||
e.clearable ||
e.showPassword,
},
],
on: {
mouseenter: function (t) {
e.hovering = !0;
},
mouseleave: function (t) {
e.hovering = !1;
},
},
},
[
"textarea" !== e.type
? [
e.$slots.prepend
? n(
"div",
{ staticClass: "el-input-group__prepend" },
[e._t("prepend")],
2,
)
: e._e(),
"textarea" !== e.type
? n(
"input",
e._b(
{
ref: "input",
staticClass: "el-input__inner",
attrs: {
tabindex: e.tabindex,
type: e.showPassword
? e.passwordVisible
? "text"
: "password"
: e.type,
disabled: e.inputDisabled,
readonly: e.readonly,
autocomplete:
e.autoComplete || e.autocomplete,
"aria-label": e.label,
},
on: {
compositionstart:
e.handleCompositionStart,
compositionupdate:
e.handleCompositionUpdate,
compositionend: e.handleCompositionEnd,
input: e.handleInput,
focus: e.handleFocus,
blur: e.handleBlur,
change: e.handleChange,
},
},
"input",
e.$attrs,
!1,
),
)
: e._e(),
e.$slots.prefix || e.prefixIcon
? n(
"span",
{ staticClass: "el-input__prefix" },
[
e._t("prefix"),
e.prefixIcon
? n("i", {
staticClass: "el-input__icon",
class: e.prefixIcon,
})
: e._e(),
],
2,
)
: e._e(),
e.getSuffixVisible()
? n("span", { staticClass: "el-input__suffix" }, [
n(
"span",
{ staticClass: "el-input__suffix-inner" },
[
e.showClear &&
e.showPwdVisible &&
e.isWordLimitVisible
? e._e()
: [
e._t("suffix"),
e.suffixIcon
? n("i", {
staticClass: "el-input__icon",
class: e.suffixIcon,
})
: e._e(),
],
e.showClear
? n("i", {
staticClass:
"el-input__icon el-icon-circle-close el-input__clear",
on: {
mousedown: function (e) {
e.preventDefault();
},
click: e.clear,
},
})
: e._e(),
e.showPwdVisible
? n("i", {
staticClass:
"el-input__icon el-icon-view el-input__clear",
on: {
click: e.handlePasswordVisible,
},
})
: e._e(),
e.isWordLimitVisible
? n(
"span",
{ staticClass: "el-input__count" },
[
n(
"span",
{
staticClass:
"el-input__count-inner",
},
[
e._v(
"\n " +
e._s(e.textLength) +
"/" +
e._s(e.upperLimit) +
"\n ",
),
],
),
],
)
: e._e(),
],
2,
),
e.validateState
? n("i", {
staticClass: "el-input__icon",
class: [
"el-input__validateIcon",
e.validateIcon,
],
})
: e._e(),
])
: e._e(),
e.$slots.append
? n(
"div",
{ staticClass: "el-input-group__append" },
[e._t("append")],
2,
)
: e._e(),
]
: n(
"textarea",
e._b(
{
ref: "textarea",
staticClass: "el-textarea__inner",
style: e.textareaStyle,
attrs: {
tabindex: e.tabindex,
disabled: e.inputDisabled,
readonly: e.readonly,
autocomplete:
e.autoComplete || e.autocomplete,
"aria-label": e.label,
},
on: {
compositionstart: e.handleCompositionStart,
compositionupdate: e.handleCompositionUpdate,
compositionend: e.handleCompositionEnd,
input: e.handleInput,
focus: e.handleFocus,
blur: e.handleBlur,
change: e.handleChange,
},
},
"textarea",
e.$attrs,
!1,
),
),
e.isWordLimitVisible && "textarea" === e.type
? n("span", { staticClass: "el-input__count" }, [
e._v(e._s(e.textLength) + "/" + e._s(e.upperLimit)),
])
: e._e(),
],
2,
);
};
r._withStripped = !0;
var i = n(4),
o = n.n(i),
a = n(11),
s = n.n(a),
u = void 0,
c = [
"letter-spacing",
"line-height",
"padding-top",
"padding-bottom",
"font-family",
"font-weight",
"font-size",
"text-rendering",
"text-transform",
"width",
"text-indent",
"padding-left",
"padding-right",
"border-width",
"box-sizing",
];
function l(e) {
var t =
arguments.length > 1 && arguments[1] !== undefined
? arguments[1]
: 1,
n =
arguments.length > 2 && arguments[2] !== undefined
? arguments[2]
: null;
u ||
((u = document.createElement("textarea")),
document.body.appendChild(u));
var r = (function (e) {
var t = window.getComputedStyle(e),
n = t.getPropertyValue("box-sizing"),
r =
parseFloat(t.getPropertyValue("padding-bottom")) +
parseFloat(t.getPropertyValue("padding-top")),
i =
parseFloat(
t.getPropertyValue("border-bottom-width"),
) +
parseFloat(t.getPropertyValue("border-top-width"));
return {
contextStyle: c
.map(function (e) {
return e + ":" + t.getPropertyValue(e);
})
.join(";"),
paddingSize: r,
borderSize: i,
boxSizing: n,
};
})(e),
i = r.paddingSize,
o = r.borderSize,
a = r.boxSizing,
s = r.contextStyle;
(u.setAttribute(
"style",
s +
";\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",
),
(u.value = e.value || e.placeholder || ""));
var l = u.scrollHeight,
d = {};
("border-box" === a
? (l += o)
: "content-box" === a && (l -= i),
(u.value = ""));
var f = u.scrollHeight - i;
if (null !== t) {
var p = f * t;
("border-box" === a && (p = p + i + o),
(l = Math.max(p, l)),
(d.minHeight = p + "px"));
}
if (null !== n) {
var h = f * n;
("border-box" === a && (h = h + i + o),
(l = Math.min(h, l)));
}
return (
(d.height = l + "px"),
u.parentNode && u.parentNode.removeChild(u),
(u = null),
d
);
}
var d = n(9),
f = n.n(d),
p = n(21),
h = {
name: "ElInput",
componentName: "ElInput",
mixins: [o.a, s.a],
inheritAttrs: !1,
inject: {
elForm: { default: "" },
elFormItem: { default: "" },
},
data: function () {
return {
textareaCalcStyle: {},
hovering: !1,
focused: !1,
isComposing: !1,
passwordVisible: !1,
};
},
props: {
value: [String, Number],
size: String,
resize: String,
form: String,
disabled: Boolean,
readonly: Boolean,
type: { type: String, default: "text" },
autosize: { type: [Boolean, Object], default: !1 },
autocomplete: { type: String, default: "off" },
autoComplete: {
type: String,
validator: function (e) {
return !0;
},
},
validateEvent: { type: Boolean, default: !0 },
suffixIcon: String,
prefixIcon: String,
label: String,
clearable: { type: Boolean, default: !1 },
showPassword: { type: Boolean, default: !1 },
showWordLimit: { type: Boolean, default: !1 },
tabindex: String,
},
computed: {
_elFormItemSize: function () {
return (this.elFormItem || {}).elFormItemSize;
},
validateState: function () {
return this.elFormItem
? this.elFormItem.validateState
: "";
},
needStatusIcon: function () {
return !!this.elForm && this.elForm.statusIcon;
},
validateIcon: function () {
return {
validating: "el-icon-loading",
success: "el-icon-circle-check",
error: "el-icon-circle-close",
}[this.validateState];
},
textareaStyle: function () {
return f()({}, this.textareaCalcStyle, {
resize: this.resize,
});
},
inputSize: function () {
return (
this.size ||
this._elFormItemSize ||
(this.$ELEMENT || {}).size
);
},
inputDisabled: function () {
return this.disabled || (this.elForm || {}).disabled;
},
nativeInputValue: function () {
return null === this.value || this.value === undefined
? ""
: String(this.value);
},
showClear: function () {
return (
this.clearable &&
!this.inputDisabled &&
!this.readonly &&
this.nativeInputValue &&
(this.focused || this.hovering)
);
},
showPwdVisible: function () {
return (
this.showPassword &&
!this.inputDisabled &&
!this.readonly &&
(!!this.nativeInputValue || this.focused)
);
},
isWordLimitVisible: function () {
return (
this.showWordLimit &&
this.$attrs.maxlength &&
("text" === this.type || "textarea" === this.type) &&
!this.inputDisabled &&
!this.readonly &&
!this.showPassword
);
},
upperLimit: function () {
return this.$attrs.maxlength;
},
textLength: function () {
return "number" == typeof this.value
? String(this.value).length
: (this.value || "").length;
},
inputExceed: function () {
return (
this.isWordLimitVisible &&
this.textLength > this.upperLimit
);
},
},
watch: {
value: function (e) {
(this.$nextTick(this.resizeTextarea),
this.validateEvent &&
this.dispatch("ElFormItem", "el.form.change", [e]));
},
nativeInputValue: function () {
this.setNativeInputValue();
},
type: function () {
var e = this;
this.$nextTick(function () {
(e.setNativeInputValue(),
e.resizeTextarea(),
e.updateIconOffset());
});
},
},
methods: {
focus: function () {
this.getInput().focus();
},
blur: function () {
this.getInput().blur();
},
getMigratingConfig: function () {
return {
props: {
icon: "icon is removed, use suffix-icon / prefix-icon instead.",
"on-icon-click": "on-icon-click is removed.",
},
events: { click: "click is removed." },
};
},
handleBlur: function (e) {
((this.focused = !1),
this.$emit("blur", e),
this.validateEvent &&
this.dispatch("ElFormItem", "el.form.blur", [
this.value,
]));
},
select: function () {
this.getInput().select();
},
resizeTextarea: function () {
if (!this.$isServer) {
var e = this.autosize;
if ("textarea" === this.type)
if (e) {
var t = e.minRows,
n = e.maxRows;
this.textareaCalcStyle = l(
this.$refs.textarea,
t,
n,
);
} else
this.textareaCalcStyle = {
minHeight: l(this.$refs.textarea).minHeight,
};
}
},
setNativeInputValue: function () {
var e = this.getInput();
e &&
e.value !== this.nativeInputValue &&
(e.value = this.nativeInputValue);
},
handleFocus: function (e) {
((this.focused = !0), this.$emit("focus", e));
},
handleCompositionStart: function (e) {
(this.$emit("compositionstart", e),
(this.isComposing = !0));
},
handleCompositionUpdate: function (e) {
this.$emit("compositionupdate", e);
var t = e.target.value,
n = t[t.length - 1] || "";
this.isComposing = !Object(p.isKorean)(n);
},
handleCompositionEnd: function (e) {
(this.$emit("compositionend", e),
this.isComposing &&
((this.isComposing = !1), this.handleInput(e)));
},
handleInput: function (e) {
this.isComposing ||
(e.target.value !== this.nativeInputValue &&
(this.$emit("input", e.target.value),
this.$nextTick(this.setNativeInputValue)));
},
handleChange: function (e) {
this.$emit("change", e.target.value);
},
calcIconOffset: function (e) {
var t = [].slice.call(
this.$el.querySelectorAll(".el-input__" + e) || [],
);
if (t.length) {
for (var n = null, r = 0; r < t.length; r++)
if (t[r].parentNode === this.$el) {
n = t[r];
break;
}
if (n) {
var i = { suffix: "append", prefix: "prepend" }[e];
this.$slots[i]
? (n.style.transform =
"translateX(" +
("suffix" === e ? "-" : "") +
this.$el.querySelector(
".el-input-group__" + i,
).offsetWidth +
"px)")
: n.removeAttribute("style");
}
}
},
updateIconOffset: function () {
(this.calcIconOffset("prefix"),
this.calcIconOffset("suffix"));
},
clear: function () {
(this.$emit("input", ""),
this.$emit("change", ""),
this.$emit("clear"));
},
handlePasswordVisible: function () {
var e = this;
((this.passwordVisible = !this.passwordVisible),
this.$nextTick(function () {
e.focus();
}));
},
getInput: function () {
return this.$refs.input || this.$refs.textarea;
},
getSuffixVisible: function () {
return (
this.$slots.suffix ||
this.suffixIcon ||
this.showClear ||
this.showPassword ||
this.isWordLimitVisible ||
(this.validateState && this.needStatusIcon)
);
},
},
created: function () {
this.$on("inputSelect", this.select);
},
mounted: function () {
(this.setNativeInputValue(),
this.resizeTextarea(),
this.updateIconOffset());
},
updated: function () {
this.$nextTick(this.updateIconOffset);
},
},
m = h,
g = n(0),
v = Object(g.a)(m, r, [], !1, null, null, null);
v.options.__file = "packages/input/src/input.vue";
var _ = v.exports;
((_.install = function (e) {
e.component(_.name, _);
}),
(t["default"] = _));
},
9: function (e, t) {
e.exports = n(8589);
},
});
},
4511: function (e, t, n) {
"use strict";
var r = n(477)(n(9367));
e.exports = (function (e) {
var t = {};
function n(r) {
if (t[r]) return t[r].exports;
var i = (t[r] = { i: r, l: !1, exports: {} });
return (
e[r].call(i.exports, i, i.exports, n),
(i.l = !0),
i.exports
);
}
return (
(n.m = e),
(n.c = t),
(n.d = function (e, t, r) {
n.o(e, t) ||
Object.defineProperty(e, t, { enumerable: !0, get: r });
}),
(n.r = function (e) {
("undefined" != typeof Symbol &&
Symbol.toStringTag &&
Object.defineProperty(e, Symbol.toStringTag, {
value: "Module",
}),
Object.defineProperty(e, "__esModule", { value: !0 }));
}),
(n.t = function (e, t) {
if ((1 & t && (e = n(e)), 8 & t)) return e;
if (
4 & t &&
"object" === (0, r["default"])(e) &&
e &&
e.__esModule
)
return e;
var i = Object.create(null);
if (
(n.r(i),
Object.defineProperty(i, "default", {
enumerable: !0,
value: e,
}),
2 & t && "string" != typeof e)
)
for (var o in e)
n.d(
i,
o,
function (t) {
return e[t];
}.bind(null, o),
);
return i;
}),
(n.n = function (e) {
var t =
e && e.__esModule
? function () {
return e["default"];
}
: function () {
return e;
};
return (n.d(t, "a", t), t);
}),
(n.o = function (e, t) {
return Object.prototype.hasOwnProperty.call(e, t);
}),
(n.p = "/dist/"),
n((n.s = 73))
);
})({
0: function (e, t, n) {
function r(e, t, n, r, i, o, a, s) {
var u,
c = "function" == typeof e ? e.options : e;
if (
(t &&
((c.render = t),
(c.staticRenderFns = n),
(c._compiled = !0)),
r && (c.functional = !0),
o && (c._scopeId = "data-v-" + o),
a
? ((u = function (e) {
((e =
e ||
(this.$vnode && this.$vnode.ssrContext) ||
(this.parent &&
this.parent.$vnode &&
this.parent.$vnode.ssrContext)) ||
"undefined" == typeof __VUE_SSR_CONTEXT__ ||
(e = __VUE_SSR_CONTEXT__),
i && i.call(this, e),
e &&
e._registeredComponents &&
e._registeredComponents.add(a));
}),
(c._ssrRegister = u))
: i &&
(u = s
? function () {
i.call(this, this.$root.$options.shadowRoot);
}
: i),
u)
)
if (c.functional) {
c._injectStyles = u;
var l = c.render;
c.render = function (e, t) {
return (u.call(t), l(e, t));
};
} else {
var d = c.beforeCreate;
c.beforeCreate = d ? [].concat(d, u) : [u];
}
return { exports: e, options: c };
}
n.d(t, "a", function () {
return r;
});
},
13: function (e, t) {
e.exports = n(9668);
},
2: function (e, t) {
e.exports = n(2865);
},
42: function (e, t) {
e.exports = n(3725);
},
7: function (e, t) {
e.exports = n(4478);
},
73: function (e, t, n) {
n.r(t);
var r = n(7),
i = n.n(r),
o = function () {
var e = this,
t = e.$createElement,
n = e._self._c || t;
return n(
"transition",
{
attrs: { name: "el-loading-fade" },
on: { "after-leave": e.handleAfterLeave },
},
[
n(
"div",
{
directives: [
{
name: "show",
rawName: "v-show",
value: e.visible,
expression: "visible",
},
],
staticClass: "el-loading-mask",
class: [
e.customClass,
{ "is-fullscreen": e.fullscreen },
],
style: { backgroundColor: e.background || "" },
},
[
n("div", { staticClass: "el-loading-spinner" }, [
e.spinner
? n("i", { class: e.spinner })
: n(
"svg",
{
staticClass: "circular",
attrs: { viewBox: "25 25 50 50" },
},
[
n("circle", {
staticClass: "path",
attrs: {
cx: "50",
cy: "50",
r: "20",
fill: "none",
},
}),
],
),
e.text
? n("p", { staticClass: "el-loading-text" }, [
e._v(e._s(e.text)),
])
: e._e(),
]),
],
),
],
);
};
o._withStripped = !0;
var a = {
data: function () {
return {
text: null,
spinner: null,
background: null,
fullscreen: !0,
visible: !1,
customClass: "",
};
},
methods: {
handleAfterLeave: function () {
this.$emit("after-leave");
},
setText: function (e) {
this.text = e;
},
},
},
s = n(0),
u = Object(s.a)(a, o, [], !1, null, null, null);
u.options.__file = "packages/loading/src/loading.vue";
var c = u.exports,
l = n(2),
d = n(13),
f = n(42),
p = n.n(f),
h = i.a.extend(c),
m = {
install: function (e) {
if (!e.prototype.$isServer) {
var t = function (t, r) {
r.value
? e.nextTick(function () {
r.modifiers.fullscreen
? ((t.originalPosition = Object(l.getStyle)(
document.body,
"position",
)),
(t.originalOverflow = Object(l.getStyle)(
document.body,
"overflow",
)),
(t.maskStyle.zIndex =
d.PopupManager.nextZIndex()),
Object(l.addClass)(
t.mask,
"is-fullscreen",
),
n(document.body, t, r))
: (Object(l.removeClass)(
t.mask,
"is-fullscreen",
),
r.modifiers.body
? ((t.originalPosition = Object(
l.getStyle,
)(document.body, "position")),
["top", "left"].forEach(function (e) {
var n =
"top" === e
? "scrollTop"
: "scrollLeft";
t.maskStyle[e] =
t.getBoundingClientRect()[e] +
document.body[n] +
document.documentElement[n] -
parseInt(
Object(l.getStyle)(
document.body,
"margin-" + e,
),
10,
) +
"px";
}),
["height", "width"].forEach(
function (e) {
t.maskStyle[e] =
t.getBoundingClientRect()[e] +
"px";
},
),
n(document.body, t, r))
: ((t.originalPosition = Object(
l.getStyle,
)(t, "position")),
n(t, t, r)));
})
: (p()(
t.instance,
function (e) {
if (t.instance.hiding) {
t.domVisible = !1;
var n =
r.modifiers.fullscreen ||
r.modifiers.body
? document.body
: t;
(Object(l.removeClass)(
n,
"el-loading-parent--relative",
),
Object(l.removeClass)(
n,
"el-loading-parent--hidden",
),
(t.instance.hiding = !1));
}
},
300,
!0,
),
(t.instance.visible = !1),
(t.instance.hiding = !0));
},
n = function (t, n, r) {
n.domVisible ||
"none" === Object(l.getStyle)(n, "display") ||
"hidden" === Object(l.getStyle)(n, "visibility")
? n.domVisible &&
!0 === n.instance.hiding &&
((n.instance.visible = !0),
(n.instance.hiding = !1))
: (Object.keys(n.maskStyle).forEach(function (e) {
n.mask.style[e] = n.maskStyle[e];
}),
"absolute" !== n.originalPosition &&
"fixed" !== n.originalPosition &&
"sticky" !== n.originalPosition &&
Object(l.addClass)(
t,
"el-loading-parent--relative",
),
r.modifiers.fullscreen &&
r.modifiers.lock &&
Object(l.addClass)(
t,
"el-loading-parent--hidden",
),
(n.domVisible = !0),
t.appendChild(n.mask),
e.nextTick(function () {
n.instance.hiding
? n.instance.$emit("after-leave")
: (n.instance.visible = !0);
}),
(n.domInserted = !0));
};
e.directive("loading", {
bind: function (e, n, r) {
var i = e.getAttribute("element-loading-text"),
o = e.getAttribute("element-loading-spinner"),
a = e.getAttribute("element-loading-background"),
s = e.getAttribute(
"element-loading-custom-class",
),
u = r.context,
c = new h({
el: document.createElement("div"),
data: {
text: (u && u[i]) || i,
spinner: (u && u[o]) || o,
background: (u && u[a]) || a,
customClass: (u && u[s]) || s,
fullscreen: !!n.modifiers.fullscreen,
},
});
((e.instance = c),
(e.mask = c.$el),
(e.maskStyle = {}),
n.value && t(e, n));
},
update: function (e, n) {
(e.instance.setText(
e.getAttribute("element-loading-text"),
),
n.oldValue !== n.value && t(e, n));
},
unbind: function (e, n) {
(e.domInserted &&
(e.mask &&
e.mask.parentNode &&
e.mask.parentNode.removeChild(e.mask),
t(e, { value: !1, modifiers: n.modifiers })),
e.instance && e.instance.$destroy());
},
});
}
},
},
g = m,
v = n(9),
_ = n.n(v),
y = i.a.extend(c),
b = {
text: null,
fullscreen: !0,
body: !1,
lock: !1,
customClass: "",
},
k = void 0;
((y.prototype.originalPosition = ""),
(y.prototype.originalOverflow = ""),
(y.prototype.close = function () {
var e = this;
(this.fullscreen && (k = undefined),
p()(
this,
function (t) {
var n =
e.fullscreen || e.body ? document.body : e.target;
(Object(l.removeClass)(
n,
"el-loading-parent--relative",
),
Object(l.removeClass)(
n,
"el-loading-parent--hidden",
),
e.$el &&
e.$el.parentNode &&
e.$el.parentNode.removeChild(e.$el),
e.$destroy());
},
300,
),
(this.visible = !1));
}));
var w = function () {
var e =
arguments.length > 0 && arguments[0] !== undefined
? arguments[0]
: {};
if (!i.a.prototype.$isServer) {
if (
("string" == typeof (e = _()({}, b, e)).target &&
(e.target = document.querySelector(e.target)),
(e.target = e.target || document.body),
e.target !== document.body
? (e.fullscreen = !1)
: (e.body = !0),
e.fullscreen && k)
)
return k;
var t = e.body ? document.body : e.target,
n = new y({ el: document.createElement("div"), data: e });
return (
(function (e, t, n) {
var r = {};
(e.fullscreen
? ((n.originalPosition = Object(l.getStyle)(
document.body,
"position",
)),
(n.originalOverflow = Object(l.getStyle)(
document.body,
"overflow",
)),
(r.zIndex = d.PopupManager.nextZIndex()))
: e.body
? ((n.originalPosition = Object(l.getStyle)(
document.body,
"position",
)),
["top", "left"].forEach(function (t) {
var n =
"top" === t ? "scrollTop" : "scrollLeft";
r[t] =
e.target.getBoundingClientRect()[t] +
document.body[n] +
document.documentElement[n] +
"px";
}),
["height", "width"].forEach(function (t) {
r[t] =
e.target.getBoundingClientRect()[t] + "px";
}))
: (n.originalPosition = Object(l.getStyle)(
t,
"position",
)),
Object.keys(r).forEach(function (e) {
n.$el.style[e] = r[e];
}));
})(e, t, n),
"absolute" !== n.originalPosition &&
"fixed" !== n.originalPosition &&
"sticky" !== n.originalPosition &&
Object(l.addClass)(t, "el-loading-parent--relative"),
e.fullscreen &&
e.lock &&
Object(l.addClass)(t, "el-loading-parent--hidden"),
t.appendChild(n.$el),
i.a.nextTick(function () {
n.visible = !0;
}),
e.fullscreen && (k = n),
n
);
}
};
t["default"] = {
install: function (e) {
(e.use(g), (e.prototype.$loading = w));
},
directive: g,
service: w,
};
},
9: function (e, t) {
e.exports = n(8589);
},
});
},
5956: function (e, t) {
"use strict";
function n(e, t, r) {
this.$children.forEach(function (i) {
i.$options.componentName === e
? i.$emit.apply(i, [t].concat(r))
: n.apply(i, [e, t].concat([r]));
});
}
((t.__esModule = !0),
(t["default"] = {
methods: {
dispatch: function (e, t, n) {
for (
var r = this.$parent || this.$root,
i = r.$options.componentName;
r && (!i || i !== e);
)
(r = r.$parent) && (i = r.$options.componentName);
r && r.$emit.apply(r, [t].concat(n));
},
broadcast: function (e, t, r) {
n.call(this, e, t, r);
},
},
}));
},
2036: function (e, t, n) {
"use strict";
((t.__esModule = !0),
n(2417),
(t["default"] = {
mounted: function () {},
methods: {
getMigratingConfig: function () {
return { props: {}, events: {} };
},
},
}));
},
3725: function (e, t) {
"use strict";
((t.__esModule = !0),
(t["default"] = function (e, t) {
var n =
arguments.length > 2 && arguments[2] !== undefined
? arguments[2]
: 300,
r =
arguments.length > 3 &&
arguments[3] !== undefined &&
arguments[3];
if (!e || !t)
throw new Error("instance & callback is required");
var i = !1,
o = function () {
i || ((i = !0), t && t.apply(null, arguments));
};
(r ? e.$once("after-leave", o) : e.$on("after-leave", o),
setTimeout(function () {
o();
}, n + 100));
}));
},
2865: function (e, t, n) {
"use strict";
var r = n(477)(n(9367));
((t.__esModule = !0),
(t.isInContainer =
t.getScrollContainer =
t.isScroll =
t.getStyle =
t.once =
t.off =
t.on =
undefined));
var i =
"function" == typeof Symbol &&
"symbol" === (0, r["default"])(Symbol.iterator)
? function (e) {
return (0, r["default"])(e);
}
: function (e) {
return e &&
"function" == typeof Symbol &&
e.constructor === Symbol &&
e !== Symbol.prototype
? "symbol"
: (0, r["default"])(e);
};
((t.hasClass = m),
(t.addClass = function (e, t) {
if (e) {
for (
var n = e.className,
r = (t || "").split(" "),
i = 0,
o = r.length;
i < o;
i++
) {
var a = r[i];
a &&
(e.classList
? e.classList.add(a)
: m(e, a) || (n += " " + a));
}
e.classList || e.setAttribute("class", n);
}
}),
(t.removeClass = function (e, t) {
if (e && t) {
for (
var n = t.split(" "),
r = " " + e.className + " ",
i = 0,
o = n.length;
i < o;
i++
) {
var a = n[i];
a &&
(e.classList
? e.classList.remove(a)
: m(e, a) && (r = r.replace(" " + a + " ", " ")));
}
e.classList || e.setAttribute("class", d(r));
}
}),
(t.setStyle = function _(e, t, n) {
if (e && t)
if ("object" === (void 0 === t ? "undefined" : i(t)))
for (var r in t) t.hasOwnProperty(r) && _(e, r, t[r]);
else
"opacity" === (t = f(t)) && l < 9
? (e.style.filter = isNaN(n)
? ""
: "alpha(opacity=" + 100 * n + ")")
: (e.style[t] = n);
}));
var o,
a = n(4478),
s = ((o = a) && o.__esModule ? o : { default: o })["default"]
.prototype.$isServer,
u = /([\:\-\_]+(.))/g,
c = /^moz([A-Z])/,
l = s ? 0 : Number(document.documentMode),
d = function (e) {
return (e || "").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, "");
},
f = function (e) {
return e
.replace(u, function (e, t, n, r) {
return r ? n.toUpperCase() : n;
})
.replace(c, "Moz$1");
},
p = (t.on =
!s && document.addEventListener
? function (e, t, n) {
e && t && n && e.addEventListener(t, n, !1);
}
: function (e, t, n) {
e && t && n && e.attachEvent("on" + t, n);
}),
h = (t.off =
!s && document.removeEventListener
? function (e, t, n) {
e && t && e.removeEventListener(t, n, !1);
}
: function (e, t, n) {
e && t && e.detachEvent("on" + t, n);
});
function m(e, t) {
if (!e || !t) return !1;
if (-1 !== t.indexOf(" "))
throw new Error("className should not contain space.");
return e.classList
? e.classList.contains(t)
: (" " + e.className + " ").indexOf(" " + t + " ") > -1;
}
t.once = function (e, t, n) {
p(e, t, function r() {
(n && n.apply(this, arguments), h(e, t, r));
});
};
var g = (t.getStyle =
l < 9
? function (e, t) {
if (!s) {
if (!e || !t) return null;
"float" === (t = f(t)) && (t = "styleFloat");
try {
if ("opacity" === t)
try {
return e.filters.item("alpha").opacity / 100;
} catch (n) {
return 1;
}
return e.style[t] || e.currentStyle
? e.currentStyle[t]
: null;
} catch (n) {
return e.style[t];
}
}
}
: function (e, t) {
if (!s) {
if (!e || !t) return null;
"float" === (t = f(t)) && (t = "cssFloat");
try {
var n = document.defaultView.getComputedStyle(e, "");
return e.style[t] || n ? n[t] : null;
} catch (r) {
return e.style[t];
}
}
}),
v = (t.isScroll = function (e, t) {
if (!s) {
var n = null !== t && t !== undefined;
return g(
e,
n ? (t ? "overflow-y" : "overflow-x") : "overflow",
).match(/(scroll|auto|overlay)/);
}
});
((t.getScrollContainer = function (e, t) {
if (!s) {
for (var n = e; n; ) {
if ([window, document, document.documentElement].includes(n))
return window;
if (v(n, t)) return n;
n = n.parentNode;
}
return n;
}
}),
(t.isInContainer = function (e, t) {
if (s || !e || !t) return !1;
var n = e.getBoundingClientRect(),
r = void 0;
return (
(r = [
window,
document,
document.documentElement,
null,
undefined,
].includes(t)
? {
top: 0,
right: window.innerWidth,
bottom: window.innerHeight,
left: 0,
}
: t.getBoundingClientRect()),
n.top < r.bottom &&
n.bottom > r.top &&
n.right > r.left &&
n.left < r.right
);
}));
},
8589: function (e, t) {
"use strict";
((t.__esModule = !0),
(t["default"] = function (e) {
for (var t = 1, n = arguments.length; t < n; t++) {
var r = arguments[t] || {};
for (var i in r)
if (r.hasOwnProperty(i)) {
var o = r[i];
o !== undefined && (e[i] = o);
}
}
return e;
}));
},
9668: function (e, t, n) {
"use strict";
((t.__esModule = !0), (t.PopupManager = undefined));
var r = u(n(4478)),
i = u(n(8589)),
o = u(n(8432)),
a = u(n(9686)),
s = n(2865);
function u(e) {
return e && e.__esModule ? e : { default: e };
}
var c = 1,
l = void 0;
((t["default"] = {
props: {
visible: { type: Boolean, default: !1 },
openDelay: {},
closeDelay: {},
zIndex: {},
modal: { type: Boolean, default: !1 },
modalFade: { type: Boolean, default: !0 },
modalClass: {},
modalAppendToBody: { type: Boolean, default: !1 },
lockScroll: { type: Boolean, default: !0 },
closeOnPressEscape: { type: Boolean, default: !1 },
closeOnClickModal: { type: Boolean, default: !1 },
},
beforeMount: function () {
((this._popupId = "popup-" + c++),
o["default"].register(this._popupId, this));
},
beforeDestroy: function () {
(o["default"].deregister(this._popupId),
o["default"].closeModal(this._popupId),
this.restoreBodyStyle());
},
data: function () {
return {
opened: !1,
bodyPaddingRight: null,
computedBodyPaddingRight: 0,
withoutHiddenClass: !0,
rendered: !1,
};
},
watch: {
visible: function (e) {
var t = this;
if (e) {
if (this._opening) return;
this.rendered
? this.open()
: ((this.rendered = !0),
r["default"].nextTick(function () {
t.open();
}));
} else this.close();
},
},
methods: {
open: function (e) {
var t = this;
this.rendered || (this.rendered = !0);
var n = (0, i["default"])({}, this.$props || this, e);
(this._closeTimer &&
(clearTimeout(this._closeTimer), (this._closeTimer = null)),
clearTimeout(this._openTimer));
var r = Number(n.openDelay);
r > 0
? (this._openTimer = setTimeout(function () {
((t._openTimer = null), t.doOpen(n));
}, r))
: this.doOpen(n);
},
doOpen: function (e) {
if (
!this.$isServer &&
(!this.willOpen || this.willOpen()) &&
!this.opened
) {
this._opening = !0;
var t = this.$el,
n = e.modal,
r = e.zIndex;
if (
(r && (o["default"].zIndex = r),
n &&
(this._closing &&
(o["default"].closeModal(this._popupId),
(this._closing = !1)),
o["default"].openModal(
this._popupId,
o["default"].nextZIndex(),
this.modalAppendToBody ? undefined : t,
e.modalClass,
e.modalFade,
),
e.lockScroll))
) {
((this.withoutHiddenClass = !(0, s.hasClass)(
document.body,
"el-popup-parent--hidden",
)),
this.withoutHiddenClass &&
((this.bodyPaddingRight =
document.body.style.paddingRight),
(this.computedBodyPaddingRight = parseInt(
(0, s.getStyle)(document.body, "paddingRight"),
10,
))),
(l = (0, a["default"])()));
var i =
document.documentElement.clientHeight <
document.body.scrollHeight,
u = (0, s.getStyle)(document.body, "overflowY");
(l > 0 &&
(i || "scroll" === u) &&
this.withoutHiddenClass &&
(document.body.style.paddingRight =
this.computedBodyPaddingRight + l + "px"),
(0, s.addClass)(
document.body,
"el-popup-parent--hidden",
));
}
("static" === getComputedStyle(t).position &&
(t.style.position = "absolute"),
(t.style.zIndex = o["default"].nextZIndex()),
(this.opened = !0),
this.onOpen && this.onOpen(),
this.doAfterOpen());
}
},
doAfterOpen: function () {
this._opening = !1;
},
close: function () {
var e = this;
if (!this.willClose || this.willClose()) {
(null !== this._openTimer &&
(clearTimeout(this._openTimer), (this._openTimer = null)),
clearTimeout(this._closeTimer));
var t = Number(this.closeDelay);
t > 0
? (this._closeTimer = setTimeout(function () {
((e._closeTimer = null), e.doClose());
}, t))
: this.doClose();
}
},
doClose: function () {
((this._closing = !0),
this.onClose && this.onClose(),
this.lockScroll && setTimeout(this.restoreBodyStyle, 200),
(this.opened = !1),
this.doAfterClose());
},
doAfterClose: function () {
(o["default"].closeModal(this._popupId),
(this._closing = !1));
},
restoreBodyStyle: function () {
(this.modal &&
this.withoutHiddenClass &&
((document.body.style.paddingRight = this.bodyPaddingRight),
(0, s.removeClass)(
document.body,
"el-popup-parent--hidden",
)),
(this.withoutHiddenClass = !0));
},
},
}),
(t.PopupManager = o["default"]));
},
8432: function (e, t, n) {
"use strict";
t.__esModule = !0;
var r,
i = n(4478),
o = (r = i) && r.__esModule ? r : { default: r },
a = n(2865),
s = !1,
u = !1,
c = void 0,
l = function () {
if (!o["default"].prototype.$isServer) {
var e = f.modalDom;
return (
e
? (s = !0)
: ((s = !1),
(e = document.createElement("div")),
(f.modalDom = e),
e.addEventListener("touchmove", function (e) {
(e.preventDefault(), e.stopPropagation());
}),
e.addEventListener("click", function () {
f.doOnModalClick && f.doOnModalClick();
})),
e
);
}
},
d = {},
f = {
modalFade: !0,
getInstance: function (e) {
return d[e];
},
register: function (e, t) {
e && t && (d[e] = t);
},
deregister: function (e) {
e && ((d[e] = null), delete d[e]);
},
nextZIndex: function () {
return f.zIndex++;
},
modalStack: [],
doOnModalClick: function () {
var e = f.modalStack[f.modalStack.length - 1];
if (e) {
var t = f.getInstance(e.id);
t && t.closeOnClickModal && t.close();
}
},
openModal: function (e, t, n, r, i) {
if (
!o["default"].prototype.$isServer &&
e &&
t !== undefined
) {
this.modalFade = i;
for (
var u = this.modalStack, c = 0, d = u.length;
c < d;
c++
)
if (u[c].id === e) return;
var f = l();
((0, a.addClass)(f, "v-modal"),
this.modalFade &&
!s &&
(0, a.addClass)(f, "v-modal-enter"),
r &&
r
.trim()
.split(/\s+/)
.forEach(function (e) {
return (0, a.addClass)(f, e);
}),
setTimeout(function () {
(0, a.removeClass)(f, "v-modal-enter");
}, 200),
n && n.parentNode && 11 !== n.parentNode.nodeType
? n.parentNode.appendChild(f)
: document.body.appendChild(f),
t && (f.style.zIndex = t),
(f.tabIndex = 0),
(f.style.display = ""),
this.modalStack.push({
id: e,
zIndex: t,
modalClass: r,
}));
}
},
closeModal: function (e) {
var t = this.modalStack,
n = l();
if (t.length > 0) {
var r = t[t.length - 1];
if (r.id === e)
(r.modalClass &&
r.modalClass
.trim()
.split(/\s+/)
.forEach(function (e) {
return (0, a.removeClass)(n, e);
}),
t.pop(),
t.length > 0 &&
(n.style.zIndex = t[t.length - 1].zIndex));
else
for (var i = t.length - 1; i >= 0; i--)
if (t[i].id === e) {
t.splice(i, 1);
break;
}
}
0 === t.length &&
(this.modalFade && (0, a.addClass)(n, "v-modal-leave"),
setTimeout(function () {
(0 === t.length &&
(n.parentNode && n.parentNode.removeChild(n),
(n.style.display = "none"),
(f.modalDom = undefined)),
(0, a.removeClass)(n, "v-modal-leave"));
}, 200));
},
};
(Object.defineProperty(f, "zIndex", {
configurable: !0,
get: function () {
return (
u ||
((c =
c ||
(o["default"].prototype.$ELEMENT || {}).zIndex ||
2e3),
(u = !0)),
c
);
},
set: function (e) {
c = e;
},
}),
o["default"].prototype.$isServer ||
window.addEventListener("keydown", function (e) {
if (27 === e.keyCode) {
var t = (function () {
if (
!o["default"].prototype.$isServer &&
f.modalStack.length > 0
) {
var e = f.modalStack[f.modalStack.length - 1];
if (!e) return;
return f.getInstance(e.id);
}
})();
t &&
t.closeOnPressEscape &&
(t.handleClose
? t.handleClose()
: t.handleAction
? t.handleAction("cancel")
: t.close());
}
}),
(t["default"] = f));
},
9686: function (e, t, n) {
"use strict";
((t.__esModule = !0),
(t["default"] = function () {
if (o["default"].prototype.$isServer) return 0;
if (a !== undefined) return a;
var e = document.createElement("div");
((e.className = "el-scrollbar__wrap"),
(e.style.visibility = "hidden"),
(e.style.width = "100px"),
(e.style.position = "absolute"),
(e.style.top = "-9999px"),
document.body.appendChild(e));
var t = e.offsetWidth;
e.style.overflow = "scroll";
var n = document.createElement("div");
((n.style.width = "100%"), e.appendChild(n));
var r = n.offsetWidth;
return (e.parentNode.removeChild(e), (a = t - r));
}));
var r,
i = n(4478),
o = (r = i) && r.__esModule ? r : { default: r },
a = void 0;
},
4524: function (e, t) {
"use strict";
((t.__esModule = !0),
(t.isDef = function (e) {
return e !== undefined && null !== e;
}),
(t.isKorean = function (e) {
return /([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e);
}));
},
6200: function (e, t, n) {
"use strict";
var r = n(477)(n(9367));
((t.__esModule = !0),
(t.isDefined = t.isUndefined = t.isFunction = undefined));
var i =
"function" == typeof Symbol &&
"symbol" === (0, r["default"])(Symbol.iterator)
? function (e) {
return (0, r["default"])(e);
}
: function (e) {
return e &&
"function" == typeof Symbol &&
e.constructor === Symbol &&
e !== Symbol.prototype
? "symbol"
: (0, r["default"])(e);
};
((t.isString = function (e) {
return "[object String]" === Object.prototype.toString.call(e);
}),
(t.isObject = function (e) {
return "[object Object]" === Object.prototype.toString.call(e);
}),
(t.isHtmlElement = function (e) {
return e && e.nodeType === Node.ELEMENT_NODE;
}));
var o,
a = n(4478),
s = (o = a) && o.__esModule ? o : { default: o },
u = function (e) {
return e && "[object Function]" === {}.toString.call(e);
};
("object" ===
("undefined" == typeof Int8Array ? "undefined" : i(Int8Array)) ||
(!s["default"].prototype.$isServer &&
"function" == typeof document.childNodes) ||
(t.isFunction = u =
function (e) {
return "function" == typeof e || !1;
}),
(t.isFunction = u),
(t.isUndefined = function (e) {
return void 0 === e;
}),
(t.isDefined = function (e) {
return e !== undefined && null !== e;
}));
},
2417: function (e, t, n) {
"use strict";
var r = n(477)(n(9367));
((t.__esModule = !0),
(t.isMac =
t.isEmpty =
t.isEqual =
t.arrayEquals =
t.looseEqual =
t.capitalize =
t.kebabCase =
t.autoprefixer =
t.isFirefox =
t.isEdge =
t.isIE =
t.coerceTruthyValueToArray =
t.arrayFind =
t.arrayFindIndex =
t.escapeRegexpString =
t.valueEquals =
t.generateId =
t.getValueByPath =
undefined));
var i =
"function" == typeof Symbol &&
"symbol" === (0, r["default"])(Symbol.iterator)
? function (e) {
return (0, r["default"])(e);
}
: function (e) {
return e &&
"function" == typeof Symbol &&
e.constructor === Symbol &&
e !== Symbol.prototype
? "symbol"
: (0, r["default"])(e);
};
((t.noop = function () {}),
(t.hasOwn = function (e, t) {
return c.call(e, t);
}),
(t.toObject = function (e) {
for (var t = {}, n = 0; n < e.length; n++) e[n] && l(t, e[n]);
return t;
}),
(t.getPropByPath = function (e, t, n) {
for (
var r = e,
i = (t = (t = t.replace(/\[(\w+)\]/g, ".$1")).replace(
/^\./,
"",
)).split("."),
o = 0,
a = i.length;
o < a - 1 && (r || n);
++o
) {
var s = i[o];
if (!(s in r)) {
if (n)
throw new Error(
"please transfer a valid prop path to form item!",
);
break;
}
r = r[s];
}
return { o: r, k: i[o], v: r ? r[i[o]] : null };
}),
(t.rafThrottle = function (e) {
var t = !1;
return function () {
for (
var n = this, r = arguments.length, i = Array(r), o = 0;
o < r;
o++
)
i[o] = arguments[o];
t ||
((t = !0),
window.requestAnimationFrame(function (r) {
(e.apply(n, i), (t = !1));
}));
};
}),
(t.objToArray = function (e) {
return Array.isArray(e) ? e : h(e) ? [] : [e];
}));
var o,
a = n(4478),
s = (o = a) && o.__esModule ? o : { default: o },
u = n(6200),
c = Object.prototype.hasOwnProperty;
function l(e, t) {
for (var n in t) e[n] = t[n];
return e;
}
((t.getValueByPath = function (e, t) {
for (
var n = (t = t || "").split("."),
r = e,
i = null,
o = 0,
a = n.length;
o < a;
o++
) {
var s = n[o];
if (!r) break;
if (o === a - 1) {
i = r[s];
break;
}
r = r[s];
}
return i;
}),
(t.generateId = function () {
return Math.floor(1e4 * Math.random());
}),
(t.valueEquals = function (e, t) {
if (e === t) return !0;
if (!(e instanceof Array)) return !1;
if (!(t instanceof Array)) return !1;
if (e.length !== t.length) return !1;
for (var n = 0; n !== e.length; ++n)
if (e[n] !== t[n]) return !1;
return !0;
}),
(t.escapeRegexpString = function () {
var e =
arguments.length > 0 && arguments[0] !== undefined
? arguments[0]
: "";
return String(e).replace(/[|\\{}()[\]^$+*?.]/g, "\\$&");
}));
var d = (t.arrayFindIndex = function (e, t) {
for (var n = 0; n !== e.length; ++n) if (t(e[n])) return n;
return -1;
}),
f =
((t.arrayFind = function (e, t) {
var n = d(e, t);
return -1 !== n ? e[n] : undefined;
}),
(t.coerceTruthyValueToArray = function (e) {
return Array.isArray(e) ? e : e ? [e] : [];
}),
(t.isIE = function () {
return (
!s["default"].prototype.$isServer &&
!isNaN(Number(document.documentMode))
);
}),
(t.isEdge = function () {
return (
!s["default"].prototype.$isServer &&
navigator.userAgent.indexOf("Edge") > -1
);
}),
(t.isFirefox = function () {
return (
!s["default"].prototype.$isServer &&
!!window.navigator.userAgent.match(/firefox/i)
);
}),
(t.autoprefixer = function (e) {
if ("object" !== (void 0 === e ? "undefined" : i(e)))
return e;
var t = ["ms-", "webkit-"];
return (
["transform", "transition", "animation"].forEach(
function (n) {
var r = e[n];
n &&
r &&
t.forEach(function (t) {
e[t + n] = r;
});
},
),
e
);
}),
(t.kebabCase = function (e) {
var t = /([^-])([A-Z])/g;
return e
.replace(t, "$1-$2")
.replace(t, "$1-$2")
.toLowerCase();
}),
(t.capitalize = function (e) {
return (0, u.isString)(e)
? e.charAt(0).toUpperCase() + e.slice(1)
: e;
}),
(t.looseEqual = function (e, t) {
var n = (0, u.isObject)(e),
r = (0, u.isObject)(t);
return n && r
? JSON.stringify(e) === JSON.stringify(t)
: !n && !r && String(e) === String(t);
})),
p = (t.arrayEquals = function (e, t) {
if (((t = t || []), (e = e || []).length !== t.length))
return !1;
for (var n = 0; n < e.length; n++)
if (!f(e[n], t[n])) return !1;
return !0;
}),
h =
((t.isEqual = function (e, t) {
return Array.isArray(e) && Array.isArray(t)
? p(e, t)
: f(e, t);
}),
(t.isEmpty = function (e) {
if (null == e) return !0;
if ("boolean" == typeof e) return !1;
if ("number" == typeof e) return !e;
if (e instanceof Error) return "" === e.message;
switch (Object.prototype.toString.call(e)) {
case "[object String]":
case "[object Array]":
return !e.length;
case "[object File]":
case "[object Map]":
case "[object Set]":
return !e.size;
case "[object Object]":
return !Object.keys(e).length;
}
return !1;
}));
t.isMac = function () {
return (
!s["default"].prototype.$isServer &&
/macintosh|mac os x/i.test(navigator.userAgent)
);
};
},
2573: function (e, t, n) {
"use strict";
var r = n(477);
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t["default"] = void 0));
var i,
o = r(n(4478)),
a = n(8784),
s = [],
u = "@@clickoutsideContext",
c = 0;
function l(e, t, n) {
return function () {
var r =
arguments.length > 0 && arguments[0] !== undefined
? arguments[0]
: {},
i =
arguments.length > 1 && arguments[1] !== undefined
? arguments[1]
: {};
!(n && n.context && r.target && i.target) ||
e.contains(r.target) ||
e.contains(i.target) ||
e === r.target ||
(n.context.popperElm &&
(n.context.popperElm.contains(r.target) ||
n.context.popperElm.contains(i.target))) ||
(t.expression && e[u].methodName && n.context[e[u].methodName]
? n.context[e[u].methodName]()
: e[u].bindingFn && e[u].bindingFn());
};
}
(!o["default"].prototype.$isServer &&
(0, a.on)(document, "mousedown", function (e) {
return (i = e);
}),
!o["default"].prototype.$isServer &&
(0, a.on)(document, "mouseup", function (e) {
s.forEach(function (t) {
return t[u].documentHandler(e, i);
});
}),
(t["default"] = {
bind: function (e, t, n) {
s.push(e);
var r = c++;
e[u] = {
id: r,
documentHandler: l(e, t, n),
methodName: t.expression,
bindingFn: t.value,
};
},
update: function (e, t, n) {
((e[u].documentHandler = l(e, t, n)),
(e[u].methodName = t.expression),
(e[u].bindingFn = t.value));
},
unbind: function (e) {
for (var t = s.length, n = 0; n < t; n++)
if (s[n][u].id === e[u].id) {
s.splice(n, 1);
break;
}
delete e[u];
},
}));
},
8784: function (e, t, n) {
"use strict";
var r = n(477);
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.addClass = function (e, t) {
if (e) {
for (
var n = e.className,
r = (t || "").split(" "),
i = 0,
o = r.length;
i < o;
i++
) {
var a = r[i];
a &&
(e.classList
? e.classList.add(a)
: p(e, a) || (n += " " + a));
}
e.classList || e.setAttribute("class", n);
}
}),
(t.getStyle = t.getScrollContainer = void 0),
(t.hasClass = p),
(t.once = t.on = t.off = t.isScroll = t.isInContainer = void 0),
(t.removeClass = function (e, t) {
if (e && t) {
for (
var n = t.split(" "),
r = " " + e.className + " ",
i = 0,
o = n.length;
i < o;
i++
) {
var a = n[i];
a &&
(e.classList
? e.classList.remove(a)
: p(e, a) && (r = r.replace(" " + a + " ", " ")));
}
e.classList || e.setAttribute("class", c(r));
}
}),
(t.setStyle = function g(e, t, n) {
if (e && t)
if ("object" === (0, i["default"])(t))
for (var r in t) t.hasOwnProperty(r) && g(e, r, t[r]);
else
"opacity" === (t = l(t)) && u < 9
? (e.style.filter = isNaN(n)
? ""
: "alpha(opacity=" + 100 * n + ")")
: (e.style[t] = n);
}));
var i = r(n(9367)),
o = r(n(4478))["default"].prototype.$isServer,
a = /([\:\-\_]+(.))/g,
s = /^moz([A-Z])/,
u = o ? 0 : Number(document.documentMode),
c = function (e) {
return (e || "").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, "");
},
l = function (e) {
return e
.replace(a, function (e, t, n, r) {
return r ? n.toUpperCase() : n;
})
.replace(s, "Moz$1");
},
d = (t.on =
!o && document.addEventListener
? function (e, t, n) {
e && t && n && e.addEventListener(t, n, !1);
}
: function (e, t, n) {
e && t && n && e.attachEvent("on" + t, n);
}),
f = (t.off =
!o && document.removeEventListener
? function (e, t, n) {
e && t && e.removeEventListener(t, n, !1);
}
: function (e, t, n) {
e && t && e.detachEvent("on" + t, n);
});
function p(e, t) {
if (!e || !t) return !1;
if (-1 !== t.indexOf(" "))
throw new Error("className should not contain space.");
return e.classList
? e.classList.contains(t)
: (" " + e.className + " ").indexOf(" " + t + " ") > -1;
}
t.once = function (e, t, n) {
d(e, t, function r() {
(n && n.apply(this, arguments), f(e, t, r));
});
};
var h = (t.getStyle =
u < 9
? function (e, t) {
if (!o) {
if (!e || !t) return null;
"float" === (t = l(t)) && (t = "styleFloat");
try {
if ("opacity" === t)
try {
return e.filters.item("alpha").opacity / 100;
} catch (n) {
return 1;
}
return e.style[t] || e.currentStyle
? e.currentStyle[t]
: null;
} catch (n) {
return e.style[t];
}
}
}
: function (e, t) {
if (!o) {
if (!e || !t) return null;
"float" === (t = l(t)) && (t = "cssFloat");
try {
var n = document.defaultView.getComputedStyle(e, "");
return e.style[t] || n ? n[t] : null;
} catch (r) {
return e.style[t];
}
}
}),
m = (t.isScroll = function (e, t) {
if (!o) {
var n = null !== t && t !== undefined;
return h(
e,
n ? (t ? "overflow-y" : "overflow-x") : "overflow",
).match(/(scroll|auto|overlay)/);
}
});
((t.getScrollContainer = function (e, t) {
if (!o) {
for (var n = e; n; ) {
if ([window, document, document.documentElement].includes(n))
return window;
if (m(n, t)) return n;
n = n.parentNode;
}
return n;
}
}),
(t.isInContainer = function (e, t) {
if (o || !e || !t) return !1;
var n,
r = e.getBoundingClientRect();
return (
(n = [
window,
document,
document.documentElement,
null,
undefined,
].includes(t)
? {
top: 0,
right: window.innerWidth,
bottom: window.innerHeight,
left: 0,
}
: t.getBoundingClientRect()),
r.top < n.bottom &&
r.bottom > n.top &&
r.right > n.left &&
r.left < n.right
);
}));
},
823: function (e, t, n) {
"use strict";
var r;
e = n.nmd(e);
var i = n(477)(n(9367));
!(function () {
var t = "input is invalid type",
o =
"object" ===
("undefined" == typeof window
? "undefined"
: (0, i["default"])(window)),
a = o ? window : {};
a.JS_SHA256_NO_WINDOW && (o = !1);
var s =
!o &&
"object" ===
("undefined" == typeof self
? "undefined"
: (0, i["default"])(self)),
u =
!a.JS_SHA256_NO_NODE_JS &&
"object" ===
("undefined" == typeof process
? "undefined"
: (0, i["default"])(process)) &&
process.versions &&
process.versions.node;
u ? (a = n.g) : s && (a = self);
var c =
!a.JS_SHA256_NO_COMMON_JS &&
"object" === (0, i["default"])(e) &&
e.exports,
l = n.amdO,
d =
!a.JS_SHA256_NO_ARRAY_BUFFER &&
"undefined" != typeof ArrayBuffer,
f = "0123456789abcdef".split(""),
p = [-2147483648, 8388608, 32768, 128],
h = [24, 16, 8, 0],
m = [
1116352408, 1899447441, 3049323471, 3921009573, 961987163,
1508970993, 2453635748, 2870763221, 3624381080, 310598401,
607225278, 1426881987, 1925078388, 2162078206, 2614888103,
3248222580, 3835390401, 4022224774, 264347078, 604807628,
770255983, 1249150122, 1555081692, 1996064986, 2554220882,
2821834349, 2952996808, 3210313671, 3336571891, 3584528711,
113926993, 338241895, 666307205, 773529912, 1294757372,
1396182291, 1695183700, 1986661051, 2177026350, 2456956037,
2730485921, 2820302411, 3259730800, 3345764771, 3516065817,
3600352804, 4094571909, 275423344, 430227734, 506948616,
659060556, 883997877, 958139571, 1322822218, 1537002063,
1747873779, 1955562222, 2024104815, 2227730452, 2361852424,
2428436474, 2756734187, 3204031479, 3329325298,
],
g = ["hex", "array", "digest", "arrayBuffer"],
v = [];
((!a.JS_SHA256_NO_NODE_JS && Array.isArray) ||
(Array.isArray = function (e) {
return "[object Array]" === Object.prototype.toString.call(e);
}),
!d ||
(!a.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW &&
ArrayBuffer.isView) ||
(ArrayBuffer.isView = function (e) {
return (
"object" === (0, i["default"])(e) &&
e.buffer &&
e.buffer.constructor === ArrayBuffer
);
}));
var _ = function (e, t) {
return function (n) {
return new E(t, !0).update(n)[e]();
};
},
y = function (e) {
var t = _("hex", e);
(u && (t = b(t, e)),
(t.create = function () {
return new E(e);
}),
(t.update = function (e) {
return t.create().update(e);
}));
for (var n = 0; n < g.length; ++n) {
var r = g[n];
t[r] = _(r, e);
}
return t;
},
b = function (e, r) {
var i,
o = n(4394),
s = n(1903).Buffer,
u = r ? "sha224" : "sha256";
return (
(i =
s.from && !a.JS_SHA256_NO_BUFFER_FROM
? s.from
: function (e) {
return new s(e);
}),
function (n) {
if ("string" == typeof n)
return o.createHash(u).update(n, "utf8").digest("hex");
if (null === n || n === undefined) throw new Error(t);
return (
n.constructor === ArrayBuffer &&
(n = new Uint8Array(n)),
Array.isArray(n) ||
ArrayBuffer.isView(n) ||
n.constructor === s
? o.createHash(u).update(i(n)).digest("hex")
: e(n)
);
}
);
},
k = function (e, t) {
return function (n, r) {
return new A(n, t, !0).update(r)[e]();
};
},
w = function (e) {
var t = k("hex", e);
((t.create = function (t) {
return new A(t, e);
}),
(t.update = function (e, n) {
return t.create(e).update(n);
}));
for (var n = 0; n < g.length; ++n) {
var r = g[n];
t[r] = k(r, e);
}
return t;
};
function E(e, t) {
(t
? ((v[0] =
v[16] =
v[1] =
v[2] =
v[3] =
v[4] =
v[5] =
v[6] =
v[7] =
v[8] =
v[9] =
v[10] =
v[11] =
v[12] =
v[13] =
v[14] =
v[15] =
0),
(this.blocks = v))
: (this.blocks = [
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
]),
e
? ((this.h0 = 3238371032),
(this.h1 = 914150663),
(this.h2 = 812702999),
(this.h3 = 4144912697),
(this.h4 = 4290775857),
(this.h5 = 1750603025),
(this.h6 = 1694076839),
(this.h7 = 3204075428))
: ((this.h0 = 1779033703),
(this.h1 = 3144134277),
(this.h2 = 1013904242),
(this.h3 = 2773480762),
(this.h4 = 1359893119),
(this.h5 = 2600822924),
(this.h6 = 528734635),
(this.h7 = 1541459225)),
(this.block = this.start = this.bytes = this.hBytes = 0),
(this.finalized = this.hashed = !1),
(this.first = !0),
(this.is224 = e));
}
function A(e, n, r) {
var o,
a = (0, i["default"])(e);
if ("string" === a) {
var s,
u = [],
c = e.length,
l = 0;
for (o = 0; o < c; ++o)
(s = e.charCodeAt(o)) < 128
? (u[l++] = s)
: s < 2048
? ((u[l++] = 192 | (s >>> 6)),
(u[l++] = 128 | (63 & s)))
: s < 55296 || s >= 57344
? ((u[l++] = 224 | (s >>> 12)),
(u[l++] = 128 | ((s >>> 6) & 63)),
(u[l++] = 128 | (63 & s)))
: ((s =
65536 +
(((1023 & s) << 10) |
(1023 & e.charCodeAt(++o)))),
(u[l++] = 240 | (s >>> 18)),
(u[l++] = 128 | ((s >>> 12) & 63)),
(u[l++] = 128 | ((s >>> 6) & 63)),
(u[l++] = 128 | (63 & s)));
e = u;
} else {
if ("object" !== a) throw new Error(t);
if (null === e) throw new Error(t);
if (d && e.constructor === ArrayBuffer) e = new Uint8Array(e);
else if (!(Array.isArray(e) || (d && ArrayBuffer.isView(e))))
throw new Error(t);
}
e.length > 64 && (e = new E(n, !0).update(e).array());
var f = [],
p = [];
for (o = 0; o < 64; ++o) {
var h = e[o] || 0;
((f[o] = 92 ^ h), (p[o] = 54 ^ h));
}
(E.call(this, n, r),
this.update(p),
(this.oKeyPad = f),
(this.inner = !0),
(this.sharedMemory = r));
}
((E.prototype.update = function (e) {
if (!this.finalized) {
var n,
r = (0, i["default"])(e);
if ("string" !== r) {
if ("object" !== r) throw new Error(t);
if (null === e) throw new Error(t);
if (d && e.constructor === ArrayBuffer)
e = new Uint8Array(e);
else if (
!(Array.isArray(e) || (d && ArrayBuffer.isView(e)))
)
throw new Error(t);
n = !0;
}
for (
var o, a, s = 0, u = e.length, c = this.blocks;
s < u;
) {
if (
(this.hashed &&
((this.hashed = !1),
(c[0] = this.block),
(this.block =
c[16] =
c[1] =
c[2] =
c[3] =
c[4] =
c[5] =
c[6] =
c[7] =
c[8] =
c[9] =
c[10] =
c[11] =
c[12] =
c[13] =
c[14] =
c[15] =
0)),
n)
)
for (a = this.start; s < u && a < 64; ++s)
c[a >>> 2] |= e[s] << h[3 & a++];
else
for (a = this.start; s < u && a < 64; ++s)
(o = e.charCodeAt(s)) < 128
? (c[a >>> 2] |= o << h[3 & a++])
: o < 2048
? ((c[a >>> 2] |= (192 | (o >>> 6)) << h[3 & a++]),
(c[a >>> 2] |= (128 | (63 & o)) << h[3 & a++]))
: o < 55296 || o >= 57344
? ((c[a >>> 2] |=
(224 | (o >>> 12)) << h[3 & a++]),
(c[a >>> 2] |=
(128 | ((o >>> 6) & 63)) << h[3 & a++]),
(c[a >>> 2] |= (128 | (63 & o)) << h[3 & a++]))
: ((o =
65536 +
(((1023 & o) << 10) |
(1023 & e.charCodeAt(++s)))),
(c[a >>> 2] |=
(240 | (o >>> 18)) << h[3 & a++]),
(c[a >>> 2] |=
(128 | ((o >>> 12) & 63)) << h[3 & a++]),
(c[a >>> 2] |=
(128 | ((o >>> 6) & 63)) << h[3 & a++]),
(c[a >>> 2] |= (128 | (63 & o)) << h[3 & a++]));
((this.lastByteIndex = a),
(this.bytes += a - this.start),
a >= 64
? ((this.block = c[16]),
(this.start = a - 64),
this.hash(),
(this.hashed = !0))
: (this.start = a));
}
return (
this.bytes > 4294967295 &&
((this.hBytes += (this.bytes / 4294967296) | 0),
(this.bytes = this.bytes % 4294967296)),
this
);
}
}),
(E.prototype.finalize = function () {
if (!this.finalized) {
this.finalized = !0;
var e = this.blocks,
t = this.lastByteIndex;
((e[16] = this.block),
(e[t >>> 2] |= p[3 & t]),
(this.block = e[16]),
t >= 56 &&
(this.hashed || this.hash(),
(e[0] = this.block),
(e[16] =
e[1] =
e[2] =
e[3] =
e[4] =
e[5] =
e[6] =
e[7] =
e[8] =
e[9] =
e[10] =
e[11] =
e[12] =
e[13] =
e[14] =
e[15] =
0)),
(e[14] = (this.hBytes << 3) | (this.bytes >>> 29)),
(e[15] = this.bytes << 3),
this.hash());
}
}),
(E.prototype.hash = function () {
var e,
t,
n,
r,
i,
o,
a,
s,
u,
c = this.h0,
l = this.h1,
d = this.h2,
f = this.h3,
p = this.h4,
h = this.h5,
g = this.h6,
v = this.h7,
_ = this.blocks;
for (e = 16; e < 64; ++e)
((t =
(((i = _[e - 15]) >>> 7) | (i << 25)) ^
((i >>> 18) | (i << 14)) ^
(i >>> 3)),
(n =
(((i = _[e - 2]) >>> 17) | (i << 15)) ^
((i >>> 19) | (i << 13)) ^
(i >>> 10)),
(_[e] = (_[e - 16] + t + _[e - 7] + n) | 0));
for (u = l & d, e = 0; e < 64; e += 4)
(this.first
? (this.is224
? ((o = 300032),
(v = ((i = _[0] - 1413257819) - 150054599) | 0),
(f = (i + 24177077) | 0))
: ((o = 704751109),
(v = ((i = _[0] - 210244248) - 1521486534) | 0),
(f = (i + 143694565) | 0)),
(this.first = !1))
: ((t =
((c >>> 2) | (c << 30)) ^
((c >>> 13) | (c << 19)) ^
((c >>> 22) | (c << 10))),
(r = (o = c & l) ^ (c & d) ^ u),
(v =
(f +
(i =
v +
(n =
((p >>> 6) | (p << 26)) ^
((p >>> 11) | (p << 21)) ^
((p >>> 25) | (p << 7))) +
((p & h) ^ (~p & g)) +
m[e] +
_[e])) |
0),
(f = (i + (t + r)) | 0)),
(t =
((f >>> 2) | (f << 30)) ^
((f >>> 13) | (f << 19)) ^
((f >>> 22) | (f << 10))),
(r = (a = f & c) ^ (f & l) ^ o),
(g =
(d +
(i =
g +
(n =
((v >>> 6) | (v << 26)) ^
((v >>> 11) | (v << 21)) ^
((v >>> 25) | (v << 7))) +
((v & p) ^ (~v & h)) +
m[e + 1] +
_[e + 1])) |
0),
(t =
(((d = (i + (t + r)) | 0) >>> 2) | (d << 30)) ^
((d >>> 13) | (d << 19)) ^
((d >>> 22) | (d << 10))),
(r = (s = d & f) ^ (d & c) ^ a),
(h =
(l +
(i =
h +
(n =
((g >>> 6) | (g << 26)) ^
((g >>> 11) | (g << 21)) ^
((g >>> 25) | (g << 7))) +
((g & v) ^ (~g & p)) +
m[e + 2] +
_[e + 2])) |
0),
(t =
(((l = (i + (t + r)) | 0) >>> 2) | (l << 30)) ^
((l >>> 13) | (l << 19)) ^
((l >>> 22) | (l << 10))),
(r = (u = l & d) ^ (l & f) ^ s),
(p =
(c +
(i =
p +
(n =
((h >>> 6) | (h << 26)) ^
((h >>> 11) | (h << 21)) ^
((h >>> 25) | (h << 7))) +
((h & g) ^ (~h & v)) +
m[e + 3] +
_[e + 3])) |
0),
(c = (i + (t + r)) | 0),
(this.chromeBugWorkAround = !0));
((this.h0 = (this.h0 + c) | 0),
(this.h1 = (this.h1 + l) | 0),
(this.h2 = (this.h2 + d) | 0),
(this.h3 = (this.h3 + f) | 0),
(this.h4 = (this.h4 + p) | 0),
(this.h5 = (this.h5 + h) | 0),
(this.h6 = (this.h6 + g) | 0),
(this.h7 = (this.h7 + v) | 0));
}),
(E.prototype.hex = function () {
this.finalize();
var e = this.h0,
t = this.h1,
n = this.h2,
r = this.h3,
i = this.h4,
o = this.h5,
a = this.h6,
s = this.h7,
u =
f[(e >>> 28) & 15] +
f[(e >>> 24) & 15] +
f[(e >>> 20) & 15] +
f[(e >>> 16) & 15] +
f[(e >>> 12) & 15] +
f[(e >>> 8) & 15] +
f[(e >>> 4) & 15] +
f[15 & e] +
f[(t >>> 28) & 15] +
f[(t >>> 24) & 15] +
f[(t >>> 20) & 15] +
f[(t >>> 16) & 15] +
f[(t >>> 12) & 15] +
f[(t >>> 8) & 15] +
f[(t >>> 4) & 15] +
f[15 & t] +
f[(n >>> 28) & 15] +
f[(n >>> 24) & 15] +
f[(n >>> 20) & 15] +
f[(n >>> 16) & 15] +
f[(n >>> 12) & 15] +
f[(n >>> 8) & 15] +
f[(n >>> 4) & 15] +
f[15 & n] +
f[(r >>> 28) & 15] +
f[(r >>> 24) & 15] +
f[(r >>> 20) & 15] +
f[(r >>> 16) & 15] +
f[(r >>> 12) & 15] +
f[(r >>> 8) & 15] +
f[(r >>> 4) & 15] +
f[15 & r] +
f[(i >>> 28) & 15] +
f[(i >>> 24) & 15] +
f[(i >>> 20) & 15] +
f[(i >>> 16) & 15] +
f[(i >>> 12) & 15] +
f[(i >>> 8) & 15] +
f[(i >>> 4) & 15] +
f[15 & i] +
f[(o >>> 28) & 15] +
f[(o >>> 24) & 15] +
f[(o >>> 20) & 15] +
f[(o >>> 16) & 15] +
f[(o >>> 12) & 15] +
f[(o >>> 8) & 15] +
f[(o >>> 4) & 15] +
f[15 & o] +
f[(a >>> 28) & 15] +
f[(a >>> 24) & 15] +
f[(a >>> 20) & 15] +
f[(a >>> 16) & 15] +
f[(a >>> 12) & 15] +
f[(a >>> 8) & 15] +
f[(a >>> 4) & 15] +
f[15 & a];
return (
this.is224 ||
(u +=
f[(s >>> 28) & 15] +
f[(s >>> 24) & 15] +
f[(s >>> 20) & 15] +
f[(s >>> 16) & 15] +
f[(s >>> 12) & 15] +
f[(s >>> 8) & 15] +
f[(s >>> 4) & 15] +
f[15 & s]),
u
);
}),
(E.prototype.toString = E.prototype.hex),
(E.prototype.digest = function () {
this.finalize();
var e = this.h0,
t = this.h1,
n = this.h2,
r = this.h3,
i = this.h4,
o = this.h5,
a = this.h6,
s = this.h7,
u = [
(e >>> 24) & 255,
(e >>> 16) & 255,
(e >>> 8) & 255,
255 & e,
(t >>> 24) & 255,
(t >>> 16) & 255,
(t >>> 8) & 255,
255 & t,
(n >>> 24) & 255,
(n >>> 16) & 255,
(n >>> 8) & 255,
255 & n,
(r >>> 24) & 255,
(r >>> 16) & 255,
(r >>> 8) & 255,
255 & r,
(i >>> 24) & 255,
(i >>> 16) & 255,
(i >>> 8) & 255,
255 & i,
(o >>> 24) & 255,
(o >>> 16) & 255,
(o >>> 8) & 255,
255 & o,
(a >>> 24) & 255,
(a >>> 16) & 255,
(a >>> 8) & 255,
255 & a,
];
return (
this.is224 ||
u.push(
(s >>> 24) & 255,
(s >>> 16) & 255,
(s >>> 8) & 255,
255 & s,
),
u
);
}),
(E.prototype.array = E.prototype.digest),
(E.prototype.arrayBuffer = function () {
this.finalize();
var e = new ArrayBuffer(this.is224 ? 28 : 32),
t = new DataView(e);
return (
t.setUint32(0, this.h0),
t.setUint32(4, this.h1),
t.setUint32(8, this.h2),
t.setUint32(12, this.h3),
t.setUint32(16, this.h4),
t.setUint32(20, this.h5),
t.setUint32(24, this.h6),
this.is224 || t.setUint32(28, this.h7),
e
);
}),
(A.prototype = new E()),
(A.prototype.finalize = function () {
if ((E.prototype.finalize.call(this), this.inner)) {
this.inner = !1;
var e = this.array();
(E.call(this, this.is224, this.sharedMemory),
this.update(this.oKeyPad),
this.update(e),
E.prototype.finalize.call(this));
}
}));
var C = y();
((C.sha256 = C),
(C.sha224 = y(!0)),
(C.sha256.hmac = w()),
(C.sha224.hmac = w(!0)),
c
? (e.exports = C)
: ((a.sha256 = C.sha256),
(a.sha224 = C.sha224),
l &&
((r = function () {
return C;
}.call(C, n, C, e)) === undefined ||
(e.exports = r))));
})();
},
210: function () {
"use strict";
!(function () {
if (
"undefined" != typeof Prism &&
"undefined" != typeof document
) {
var e = {
javascript: "clike",
actionscript: "javascript",
apex: ["clike", "sql"],
arduino: "cpp",
aspnet: ["markup", "csharp"],
birb: "clike",
bison: "c",
c: "clike",
csharp: "clike",
cpp: "c",
cfscript: "clike",
chaiscript: ["clike", "cpp"],
cilkc: "c",
cilkcpp: "cpp",
coffeescript: "javascript",
crystal: "ruby",
"css-extras": "css",
d: "clike",
dart: "clike",
django: "markup-templating",
ejs: ["javascript", "markup-templating"],
etlua: ["lua", "markup-templating"],
erb: ["ruby", "markup-templating"],
fsharp: "clike",
"firestore-security-rules": "clike",
flow: "javascript",
ftl: "markup-templating",
gml: "clike",
glsl: "c",
go: "clike",
gradle: "clike",
groovy: "clike",
haml: "ruby",
handlebars: "markup-templating",
haxe: "clike",
hlsl: "c",
idris: "haskell",
java: "clike",
javadoc: ["markup", "java", "javadoclike"],
jolie: "clike",
jsdoc: ["javascript", "javadoclike", "typescript"],
"js-extras": "javascript",
json5: "json",
jsonp: "json",
"js-templates": "javascript",
kotlin: "clike",
latte: ["clike", "markup-templating", "php"],
less: "css",
lilypond: "scheme",
liquid: "markup-templating",
markdown: "markup",
"markup-templating": "markup",
mongodb: "javascript",
n4js: "javascript",
objectivec: "c",
opencl: "c",
parser: "markup",
php: "markup-templating",
phpdoc: ["php", "javadoclike"],
"php-extras": "php",
plsql: "sql",
processing: "clike",
protobuf: "clike",
pug: ["markup", "javascript"],
purebasic: "clike",
purescript: "haskell",
qsharp: "clike",
qml: "javascript",
qore: "clike",
racket: "scheme",
cshtml: ["markup", "csharp"],
jsx: ["markup", "javascript"],
tsx: ["jsx", "typescript"],
reason: "clike",
ruby: "clike",
sass: "css",
scss: "css",
scala: "java",
"shell-session": "bash",
smarty: "markup-templating",
solidity: "clike",
soy: "markup-templating",
sparql: "turtle",
sqf: "clike",
squirrel: "clike",
stata: ["mata", "java", "python"],
"t4-cs": ["t4-templating", "csharp"],
"t4-vb": ["t4-templating", "vbnet"],
tap: "yaml",
tt2: ["clike", "markup-templating"],
textile: "markup",
twig: "markup-templating",
typescript: "javascript",
v: "clike",
vala: "clike",
vbnet: "basic",
velocity: "markup",
wiki: "markup",
xeora: "markup",
"xml-doc": "markup",
xquery: "markup",
},
t = {
html: "markup",
xml: "markup",
svg: "markup",
mathml: "markup",
ssml: "markup",
atom: "markup",
rss: "markup",
js: "javascript",
g4: "antlr4",
ino: "arduino",
"arm-asm": "armasm",
art: "arturo",
adoc: "asciidoc",
avs: "avisynth",
avdl: "avro-idl",
gawk: "awk",
sh: "bash",
shell: "bash",
shortcode: "bbcode",
rbnf: "bnf",
oscript: "bsl",
cs: "csharp",
dotnet: "csharp",
cfc: "cfscript",
"cilk-c": "cilkc",
"cilk-cpp": "cilkcpp",
cilk: "cilkcpp",
coffee: "coffeescript",
conc: "concurnas",
jinja2: "django",
"dns-zone": "dns-zone-file",
dockerfile: "docker",
gv: "dot",
eta: "ejs",
xlsx: "excel-formula",
xls: "excel-formula",
gamemakerlanguage: "gml",
po: "gettext",
gni: "gn",
ld: "linker-script",
"go-mod": "go-module",
hbs: "handlebars",
mustache: "handlebars",
hs: "haskell",
idr: "idris",
gitignore: "ignore",
hgignore: "ignore",
npmignore: "ignore",
webmanifest: "json",
kt: "kotlin",
kts: "kotlin",
kum: "kumir",
tex: "latex",
context: "latex",
ly: "lilypond",
emacs: "lisp",
elisp: "lisp",
"emacs-lisp": "lisp",
md: "markdown",
moon: "moonscript",
n4jsd: "n4js",
nani: "naniscript",
objc: "objectivec",
qasm: "openqasm",
objectpascal: "pascal",
px: "pcaxis",
pcode: "peoplecode",
plantuml: "plant-uml",
pq: "powerquery",
mscript: "powerquery",
pbfasm: "purebasic",
purs: "purescript",
py: "python",
qs: "qsharp",
rkt: "racket",
razor: "cshtml",
rpy: "renpy",
res: "rescript",
robot: "robotframework",
rb: "ruby",
"sh-session": "shell-session",
shellsession: "shell-session",
smlnj: "sml",
sol: "solidity",
sln: "solution-file",
rq: "sparql",
sclang: "supercollider",
t4: "t4-cs",
trickle: "tremor",
troy: "tremor",
trig: "turtle",
ts: "typescript",
tsconfig: "typoscript",
uscript: "unrealscript",
uc: "unrealscript",
url: "uri",
vb: "visual-basic",
vba: "visual-basic",
webidl: "web-idl",
mathematica: "wolfram",
nb: "wolfram",
wl: "wolfram",
xeoracube: "xeora",
yml: "yaml",
},
n = {},
r = "components/",
i = Prism.util.currentScript();
if (i) {
var o =
/\bplugins\/autoloader\/prism-autoloader\.(?:min\.)?js(?:\?[^\r\n/]*)?$/i,
a = /(^|\/)[\w-]+\.(?:min\.)?js(?:\?[^\r\n/]*)?$/i,
s = i.getAttribute("data-autoloader-path");
if (null != s) r = s.trim().replace(/\/?$/, "/");
else {
var u = i.src;
o.test(u)
? (r = u.replace(o, "components/"))
: a.test(u) && (r = u.replace(a, "$1components/"));
}
}
var c = (Prism.plugins.autoloader = {
languages_path: r,
use_minified: !0,
loadLanguages: d,
});
Prism.hooks.add("complete", function (e) {
var t = e.element,
n = e.language;
if (t && n && "none" !== n) {
var r = (function (e) {
var t = (
e.getAttribute("data-dependencies") || ""
).trim();
if (!t) {
var n = e.parentElement;
n &&
"pre" === n.tagName.toLowerCase() &&
(t = (
n.getAttribute("data-dependencies") || ""
).trim());
}
return t ? t.split(/\s*,\s*/g) : [];
})(t);
(/^diff-./i.test(n)
? (r.push("diff"), r.push(n.substr(5)))
: r.push(n),
r.every(l) ||
d(r, function () {
Prism.highlightElement(t);
}));
}
});
}
function l(e) {
if (e.indexOf("!") >= 0) return !1;
if ((e = t[e] || e) in Prism.languages) return !0;
var r = n[e];
return r && !r.error && !1 === r.loading;
}
function d(r, i, o) {
"string" == typeof r && (r = [r]);
var a = r.length,
s = 0,
u = !1;
function p() {
u || (++s === a && i && i(r));
}
0 !== a
? r.forEach(function (r) {
!(function (r, i, o) {
var a = r.indexOf("!") >= 0;
function s() {
var e = n[r];
(e || (e = n[r] = { callbacks: [] }),
e.callbacks.push({ success: i, error: o }),
!a && l(r)
? f(r, "success")
: !a && e.error
? f(r, "error")
: (!a && e.loading) ||
((e.loading = !0),
(e.error = !1),
(function (e, t, n) {
var r = document.createElement("script");
((r.src = e),
(r.async = !0),
(r.onload = function () {
(document.body.removeChild(r),
t && t());
}),
(r.onerror = function () {
(document.body.removeChild(r),
n && n());
}),
document.body.appendChild(r));
})(
(function (e) {
return (
c.languages_path +
"prism-" +
e +
(c.use_minified ? ".min" : "") +
".js"
);
})(r),
function () {
((e.loading = !1), f(r, "success"));
},
function () {
((e.loading = !1),
(e.error = !0),
f(r, "error"));
},
)));
}
((r = r.replace("!", "")), (r = t[r] || r));
var u = e[r];
u && u.length ? d(u, s, o) : s();
})(r, p, function () {
u || ((u = !0), o && o(r));
});
})
: i && setTimeout(i, 0);
}
function f(e, t) {
if (n[e]) {
for (
var r = n[e].callbacks, i = 0, o = r.length;
i < o;
i++
) {
var a = r[i][t];
a && setTimeout(a, 0);
}
r.length = 0;
}
}
})();
},
5472: function () {
"use strict";
!(function () {
function e(e, n) {
e.addEventListener("click", function () {
!(function (e) {
navigator.clipboard
? navigator.clipboard
.writeText(e.getText())
.then(e.success, function () {
t(e);
})
: t(e);
})(n);
});
}
function t(e) {
var t = document.createElement("textarea");
((t.value = e.getText()),
(t.style.top = "0"),
(t.style.left = "0"),
(t.style.position = "fixed"),
document.body.appendChild(t),
t.focus(),
t.select());
try {
var n = document.execCommand("copy");
setTimeout(function () {
n ? e.success() : e.error();
}, 1);
} catch (r) {
setTimeout(function () {
e.error(r);
}, 1);
}
document.body.removeChild(t);
}
"undefined" != typeof Prism &&
"undefined" != typeof document &&
(Prism.plugins.toolbar
? Prism.plugins.toolbar.registerButton(
"copy-to-clipboard",
function (t) {
var n = t.element,
r = (function (e) {
var t = {
copy: "Copy",
"copy-error": "Press Ctrl+C to copy",
"copy-success": "Copied!",
"copy-timeout": 5e3,
};
for (var n in t) {
for (
var r = "data-prismjs-" + n, i = e;
i && !i.hasAttribute(r);
)
i = i.parentElement;
i && (t[n] = i.getAttribute(r));
}
return t;
})(n),
i = document.createElement("button");
((i.className = "copy-to-clipboard-button"),
i.setAttribute("type", "button"));
var o = document.createElement("span");
return (
i.appendChild(o),
s("copy"),
e(i, {
getText: function () {
return n.textContent;
},
success: function () {
(s("copy-success"), a());
},
error: function () {
(s("copy-error"),
setTimeout(function () {
!(function (e) {
window.getSelection().selectAllChildren(e);
})(n);
}, 1),
a());
},
}),
i
);
function a() {
setTimeout(function () {
s("copy");
}, r["copy-timeout"]);
}
function s(e) {
((o.textContent = r[e]),
i.setAttribute("data-copy-state", e));
}
},
)
: console.warn(
"Copy to Clipboard plugin loaded before Toolbar plugin.",
));
})();
},
4296: function () {
"use strict";
!(function () {
if ("undefined" != typeof Prism && "undefined" != typeof document)
if (Prism.plugins.toolbar) {
var e = {
none: "Plain text",
plain: "Plain text",
plaintext: "Plain text",
text: "Plain text",
txt: "Plain text",
html: "HTML",
xml: "XML",
svg: "SVG",
mathml: "MathML",
ssml: "SSML",
rss: "RSS",
css: "CSS",
clike: "C-like",
js: "JavaScript",
abap: "ABAP",
abnf: "ABNF",
al: "AL",
antlr4: "ANTLR4",
g4: "ANTLR4",
apacheconf: "Apache Configuration",
apl: "APL",
aql: "AQL",
ino: "Arduino",
arff: "ARFF",
armasm: "ARM Assembly",
"arm-asm": "ARM Assembly",
art: "Arturo",
asciidoc: "AsciiDoc",
adoc: "AsciiDoc",
aspnet: "ASP.NET (C#)",
asm6502: "6502 Assembly",
asmatmel: "Atmel AVR Assembly",
autohotkey: "AutoHotkey",
autoit: "AutoIt",
avisynth: "AviSynth",
avs: "AviSynth",
"avro-idl": "Avro IDL",
avdl: "Avro IDL",
awk: "AWK",
gawk: "GAWK",
sh: "Shell",
basic: "BASIC",
bbcode: "BBcode",
bbj: "BBj",
bnf: "BNF",
rbnf: "RBNF",
bqn: "BQN",
bsl: "BSL (1C:Enterprise)",
oscript: "OneScript",
csharp: "C#",
cs: "C#",
dotnet: "C#",
cpp: "C++",
cfscript: "CFScript",
cfc: "CFScript",
cil: "CIL",
cilkc: "Cilk/C",
"cilk-c": "Cilk/C",
cilkcpp: "Cilk/C++",
"cilk-cpp": "Cilk/C++",
cilk: "Cilk/C++",
cmake: "CMake",
cobol: "COBOL",
coffee: "CoffeeScript",
conc: "Concurnas",
csp: "Content-Security-Policy",
"css-extras": "CSS Extras",
csv: "CSV",
cue: "CUE",
dataweave: "DataWeave",
dax: "DAX",
django: "Django/Jinja2",
jinja2: "Django/Jinja2",
"dns-zone-file": "DNS zone file",
"dns-zone": "DNS zone file",
dockerfile: "Docker",
dot: "DOT (Graphviz)",
gv: "DOT (Graphviz)",
ebnf: "EBNF",
editorconfig: "EditorConfig",
ejs: "EJS",
etlua: "Embedded Lua templating",
erb: "ERB",
"excel-formula": "Excel Formula",
xlsx: "Excel Formula",
xls: "Excel Formula",
fsharp: "F#",
"firestore-security-rules": "Firestore security rules",
ftl: "FreeMarker Template Language",
gml: "GameMaker Language",
gamemakerlanguage: "GameMaker Language",
gap: "GAP (CAS)",
gcode: "G-code",
gdscript: "GDScript",
gedcom: "GEDCOM",
gettext: "gettext",
po: "gettext",
glsl: "GLSL",
gn: "GN",
gni: "GN",
"linker-script": "GNU Linker Script",
ld: "GNU Linker Script",
"go-module": "Go module",
"go-mod": "Go module",
graphql: "GraphQL",
hbs: "Handlebars",
hs: "Haskell",
hcl: "HCL",
hlsl: "HLSL",
http: "HTTP",
hpkp: "HTTP Public-Key-Pins",
hsts: "HTTP Strict-Transport-Security",
ichigojam: "IchigoJam",
"icu-message-format": "ICU Message Format",
idr: "Idris",
ignore: ".ignore",
gitignore: ".gitignore",
hgignore: ".hgignore",
npmignore: ".npmignore",
inform7: "Inform 7",
javadoc: "JavaDoc",
javadoclike: "JavaDoc-like",
javastacktrace: "Java stack trace",
jq: "JQ",
jsdoc: "JSDoc",
"js-extras": "JS Extras",
json: "JSON",
webmanifest: "Web App Manifest",
json5: "JSON5",
jsonp: "JSONP",
jsstacktrace: "JS stack trace",
"js-templates": "JS Templates",
keepalived: "Keepalived Configure",
kts: "Kotlin Script",
kt: "Kotlin",
kumir: "KuMir (КуМир)",
kum: "KuMir (КуМир)",
latex: "LaTeX",
tex: "TeX",
context: "ConTeXt",
lilypond: "LilyPond",
ly: "LilyPond",
emacs: "Lisp",
elisp: "Lisp",
"emacs-lisp": "Lisp",
llvm: "LLVM IR",
log: "Log file",
lolcode: "LOLCODE",
magma: "Magma (CAS)",
md: "Markdown",
"markup-templating": "Markup templating",
matlab: "MATLAB",
maxscript: "MAXScript",
mel: "MEL",
metafont: "METAFONT",
mongodb: "MongoDB",
moon: "MoonScript",
n1ql: "N1QL",
n4js: "N4JS",
n4jsd: "N4JS",
"nand2tetris-hdl": "Nand To Tetris HDL",
naniscript: "Naninovel Script",
nani: "Naninovel Script",
nasm: "NASM",
neon: "NEON",
nginx: "nginx",
nsis: "NSIS",
objectivec: "Objective-C",
objc: "Objective-C",
ocaml: "OCaml",
opencl: "OpenCL",
openqasm: "OpenQasm",
qasm: "OpenQasm",
parigp: "PARI/GP",
objectpascal: "Object Pascal",
psl: "PATROL Scripting Language",
pcaxis: "PC-Axis",
px: "PC-Axis",
peoplecode: "PeopleCode",
pcode: "PeopleCode",
php: "PHP",
phpdoc: "PHPDoc",
"php-extras": "PHP Extras",
"plant-uml": "PlantUML",
plantuml: "PlantUML",
plsql: "PL/SQL",
powerquery: "PowerQuery",
pq: "PowerQuery",
mscript: "PowerQuery",
powershell: "PowerShell",
promql: "PromQL",
properties: ".properties",
protobuf: "Protocol Buffers",
purebasic: "PureBasic",
pbfasm: "PureBasic",
purs: "PureScript",
py: "Python",
qsharp: "Q#",
qs: "Q#",
q: "Q (kdb+ database)",
qml: "QML",
rkt: "Racket",
cshtml: "Razor C#",
razor: "Razor C#",
jsx: "React JSX",
tsx: "React TSX",
renpy: "Ren'py",
rpy: "Ren'py",
res: "ReScript",
rest: "reST (reStructuredText)",
robotframework: "Robot Framework",
robot: "Robot Framework",
rb: "Ruby",
sas: "SAS",
sass: "Sass (Sass)",
scss: "Sass (SCSS)",
"shell-session": "Shell session",
"sh-session": "Shell session",
shellsession: "Shell session",
sml: "SML",
smlnj: "SML/NJ",
solidity: "Solidity (Ethereum)",
sol: "Solidity (Ethereum)",
"solution-file": "Solution file",
sln: "Solution file",
soy: "Soy (Closure Template)",
sparql: "SPARQL",
rq: "SPARQL",
"splunk-spl": "Splunk SPL",
sqf: "SQF: Status Quo Function (Arma 3)",
sql: "SQL",
stata: "Stata Ado",
iecst: "Structured Text (IEC 61131-3)",
supercollider: "SuperCollider",
sclang: "SuperCollider",
systemd: "Systemd configuration file",
"t4-templating": "T4 templating",
"t4-cs": "T4 Text Templates (C#)",
t4: "T4 Text Templates (C#)",
"t4-vb": "T4 Text Templates (VB)",
tap: "TAP",
tt2: "Template Toolkit 2",
toml: "TOML",
trickle: "trickle",
troy: "troy",
trig: "TriG",
ts: "TypeScript",
tsconfig: "TSConfig",
uscript: "UnrealScript",
uc: "UnrealScript",
uorazor: "UO Razor Script",
uri: "URI",
url: "URL",
vbnet: "VB.Net",
vhdl: "VHDL",
vim: "vim",
"visual-basic": "Visual Basic",
vba: "VBA",
vb: "Visual Basic",
wasm: "WebAssembly",
"web-idl": "Web IDL",
webidl: "Web IDL",
wgsl: "WGSL",
wiki: "Wiki markup",
wolfram: "Wolfram language",
nb: "Mathematica Notebook",
wl: "Wolfram language",
xeoracube: "XeoraCube",
"xml-doc": "XML doc (.net)",
xojo: "Xojo (REALbasic)",
xquery: "XQuery",
yaml: "YAML",
yml: "YAML",
yang: "YANG",
};
Prism.plugins.toolbar.registerButton(
"show-language",
function (t) {
var n = t.element.parentNode;
if (n && /pre/i.test(n.nodeName)) {
var r,
i =
n.getAttribute("data-language") ||
e[t.language] ||
((r = t.language)
? (
r.substring(0, 1).toUpperCase() +
r.substring(1)
).replace(/s(?=cript)/, "S")
: r);
if (i) {
var o = document.createElement("span");
return ((o.textContent = i), o);
}
}
},
);
} else
console.warn(
"Show Languages plugin loaded before Toolbar plugin.",
);
})();
},
8072: function () {
"use strict";
!(function () {
if (
"undefined" != typeof Prism &&
"undefined" != typeof document
) {
var e = [],
t = {},
n = function () {};
Prism.plugins.toolbar = {};
var r = (Prism.plugins.toolbar.registerButton = function (
n,
r,
) {
var i;
((i =
"function" == typeof r
? r
: function (e) {
var t;
return (
"function" == typeof r.onClick
? (((t =
document.createElement("button")).type =
"button"),
t.addEventListener("click", function () {
r.onClick.call(this, e);
}))
: "string" == typeof r.url
? ((t = document.createElement("a")).href =
r.url)
: (t = document.createElement("span")),
r.className && t.classList.add(r.className),
(t.textContent = r.text),
t
);
}),
n in t
? console.warn(
'There is a button with the key "' +
n +
'" registered already.',
)
: e.push((t[n] = i)));
}),
i = (Prism.plugins.toolbar.hook = function (r) {
var i = r.element.parentNode;
if (
i &&
/pre/i.test(i.nodeName) &&
!i.parentNode.classList.contains("code-toolbar")
) {
var o = document.createElement("div");
(o.classList.add("code-toolbar"),
i.parentNode.insertBefore(o, i),
o.appendChild(i));
var a = document.createElement("div");
a.classList.add("toolbar");
var s = e,
u = (function (e) {
for (; e; ) {
var t = e.getAttribute("data-toolbar-order");
if (null != t)
return (t = t.trim()).length
? t.split(/\s*,\s*/g)
: [];
e = e.parentElement;
}
})(r.element);
(u &&
(s = u.map(function (e) {
return t[e] || n;
})),
s.forEach(function (e) {
var t = e(r);
if (t) {
var n = document.createElement("div");
(n.classList.add("toolbar-item"),
n.appendChild(t),
a.appendChild(n));
}
}),
o.appendChild(a));
}
});
(r("label", function (e) {
var t = e.element.parentNode;
if (
t &&
/pre/i.test(t.nodeName) &&
t.hasAttribute("data-label")
) {
var n,
r,
i = t.getAttribute("data-label");
try {
r = document.querySelector("template#" + i);
} catch (o) {}
return (
r
? (n = r.content)
: (t.hasAttribute("data-url")
? ((n = document.createElement("a")).href =
t.getAttribute("data-url"))
: (n = document.createElement("span")),
(n.textContent = i)),
n
);
}
}),
Prism.hooks.add("complete", i));
}
})();
},
1965: function (e, t, n) {
"use strict";
var r = (function (e) {
var t = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,
n = 0,
r = {},
i = {
manual: e.Prism && e.Prism.manual,
disableWorkerMessageHandler:
e.Prism && e.Prism.disableWorkerMessageHandler,
util: {
encode: function h(e) {
return e instanceof o
? new o(e.type, h(e.content), e.alias)
: Array.isArray(e)
? e.map(h)
: e
.replace(/&/g, "&")
.replace(/= d.reach);
E += w.value.length, w = w.next
) {
var A = w.value;
if (t.length > e.length) return;
if (!(A instanceof o)) {
var C,
x = 1;
if (_) {
if (!(C = a(k, E, e, v)) || C.index >= e.length)
break;
var I = C.index,
D = C.index + C[0].length,
S = E;
for (S += w.value.length; I >= S; )
S += (w = w.next).value.length;
if (
((E = S -= w.value.length), w.value instanceof o)
)
continue;
for (
var O = w;
O !== t.tail &&
(S < D || "string" == typeof O.value);
O = O.next
)
(x++, (S += O.value.length));
(x--, (A = e.slice(E, S)), (C.index -= E));
} else if (!(C = a(k, 0, A, v))) continue;
I = C.index;
var T = C[0],
M = A.slice(0, I),
N = A.slice(I + T.length),
P = E + A.length;
d && P > d.reach && (d.reach = P);
var F = w.prev;
if (
(M && ((F = c(t, F, M)), (E += M.length)),
l(t, F, x),
(w = c(
t,
F,
new o(f, g ? i.tokenize(T, g) : T, y, T),
)),
N && c(t, w, N),
x > 1)
) {
var L = { cause: f + "," + h, reach: P };
(s(e, t, n, w.prev, E, L),
d && L.reach > d.reach && (d.reach = L.reach));
}
}
}
}
}
}
function u() {
var e = { value: null, prev: null, next: null },
t = { value: null, prev: e, next: null };
((e.next = t),
(this.head = e),
(this.tail = t),
(this.length = 0));
}
function c(e, t, n) {
var r = t.next,
i = { value: n, prev: t, next: r };
return ((t.next = i), (r.prev = i), e.length++, i);
}
function l(e, t, n) {
for (var r = t.next, i = 0; i < n && r !== e.tail; i++)
r = r.next;
((t.next = r), (r.prev = t), (e.length -= i));
}
if (
((e.Prism = i),
(o.stringify = function v(e, t) {
if ("string" == typeof e) return e;
if (Array.isArray(e)) {
var n = "";
return (
e.forEach(function (e) {
n += v(e, t);
}),
n
);
}
var r = {
type: e.type,
content: v(e.content, t),
tag: "span",
classes: ["token", e.type],
attributes: {},
language: t,
},
o = e.alias;
(o &&
(Array.isArray(o)
? Array.prototype.push.apply(r.classes, o)
: r.classes.push(o)),
i.hooks.run("wrap", r));
var a = "";
for (var s in r.attributes)
a +=
" " +
s +
'="' +
(r.attributes[s] || "").replace(/"/g, """) +
'"';
return (
"<" +
r.tag +
' class="' +
r.classes.join(" ") +
'"' +
a +
">" +
r.content +
"" +
r.tag +
">"
);
}),
!e.document)
)
return e.addEventListener
? (i.disableWorkerMessageHandler ||
e.addEventListener(
"message",
function (t) {
var n = JSON.parse(t.data),
r = n.language,
o = n.code,
a = n.immediateClose;
(e.postMessage(i.highlight(o, i.languages[r], r)),
a && e.close());
},
!1,
),
i)
: i;
var d = i.util.currentScript();
function f() {
i.manual || i.highlightAll();
}
if (
(d &&
((i.filename = d.src),
d.hasAttribute("data-manual") && (i.manual = !0)),
!i.manual)
) {
var p = document.readyState;
"loading" === p || ("interactive" === p && d && d.defer)
? document.addEventListener("DOMContentLoaded", f)
: window.requestAnimationFrame
? window.requestAnimationFrame(f)
: window.setTimeout(f, 16);
}
return i;
})(
"undefined" != typeof window
? window
: "undefined" != typeof WorkerGlobalScope &&
self instanceof WorkerGlobalScope
? self
: {},
);
(e.exports && (e.exports = r),
"undefined" != typeof n.g && (n.g.Prism = r),
(r.languages.markup = {
comment: { pattern: //, greedy: !0 },
prolog: { pattern: /<\?[\s\S]+?\?>/, greedy: !0 },
doctype: {
pattern:
/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,
greedy: !0,
inside: {
"internal-subset": {
pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/,
lookbehind: !0,
greedy: !0,
inside: null,
},
string: { pattern: /"[^"]*"|'[^']*'/, greedy: !0 },
punctuation: /^$|[[\]]/,
"doctype-tag": /^DOCTYPE/i,
name: /[^\s<>'"]+/,
},
},
cdata: { pattern: //i, greedy: !0 },
tag: {
pattern:
/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,
greedy: !0,
inside: {
tag: {
pattern: /^<\/?[^\s>\/]+/,
inside: {
punctuation: /^<\/?/,
namespace: /^[^\s>\/:]+:/,
},
},
"special-attr": [],
"attr-value": {
pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
inside: {
punctuation: [
{ pattern: /^=/, alias: "attr-equals" },
{ pattern: /^(\s*)["']|["']$/, lookbehind: !0 },
],
},
},
punctuation: /\/?>/,
"attr-name": {
pattern: /[^\s>\/]+/,
inside: { namespace: /^[^\s>\/:]+:/ },
},
},
},
entity: [
{ pattern: /&[\da-z]{1,8};/i, alias: "named-entity" },
/?[\da-f]{1,8};/i,
],
}),
(r.languages.markup.tag.inside["attr-value"].inside.entity =
r.languages.markup.entity),
(r.languages.markup.doctype.inside["internal-subset"].inside =
r.languages.markup),
r.hooks.add("wrap", function (e) {
"entity" === e.type &&
(e.attributes.title = e.content.replace(/&/, "&"));
}),
Object.defineProperty(r.languages.markup.tag, "addInlined", {
value: function (e, t) {
var n = {};
((n["language-" + t] = {
pattern: /(^$)/i,
lookbehind: !0,
inside: r.languages[t],
}),
(n.cdata = /^$/i));
var i = {
"included-cdata": {
pattern: //i,
inside: n,
},
};
i["language-" + t] = {
pattern: /[\s\S]+/,
inside: r.languages[t],
};
var o = {};
((o[e] = {
pattern: RegExp(
/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(
/__/g,
function () {
return e;
},
),
"i",
),
lookbehind: !0,
greedy: !0,
inside: i,
}),
r.languages.insertBefore("markup", "cdata", o));
},
}),
Object.defineProperty(r.languages.markup.tag, "addAttribute", {
value: function (e, t) {
r.languages.markup.tag.inside["special-attr"].push({
pattern: RegExp(
/(^|["'\s])/.source +
"(?:" +
e +
")" +
/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
"i",
),
lookbehind: !0,
inside: {
"attr-name": /^[^\s=]+/,
"attr-value": {
pattern: /=[\s\S]+/,
inside: {
value: {
pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
lookbehind: !0,
alias: [t, "language-" + t],
inside: r.languages[t],
},
punctuation: [
{ pattern: /^=/, alias: "attr-equals" },
/"|'/,
],
},
},
},
});
},
}),
(r.languages.html = r.languages.markup),
(r.languages.mathml = r.languages.markup),
(r.languages.svg = r.languages.markup),
(r.languages.xml = r.languages.extend("markup", {})),
(r.languages.ssml = r.languages.xml),
(r.languages.atom = r.languages.xml),
(r.languages.rss = r.languages.xml),
(function (e) {
var t =
/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
((e.languages.css = {
comment: /\/\*[\s\S]*?\*\//,
atrule: {
pattern: RegExp(
"@[\\w-](?:" +
/[^;{\s"']|\s+(?!\s)/.source +
"|" +
t.source +
")*?" +
/(?:;|(?=\s*\{))/.source,
),
inside: {
rule: /^@[\w-]+/,
"selector-function-argument": {
pattern:
/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,
lookbehind: !0,
alias: "selector",
},
keyword: {
pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/,
lookbehind: !0,
},
},
},
url: {
pattern: RegExp(
"\\burl\\((?:" +
t.source +
"|" +
/(?:[^\\\r\n()"']|\\[\s\S])*/.source +
")\\)",
"i",
),
greedy: !0,
inside: {
function: /^url/i,
punctuation: /^\(|\)$/,
string: {
pattern: RegExp("^" + t.source + "$"),
alias: "url",
},
},
},
selector: {
pattern: RegExp(
"(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|" +
t.source +
")*(?=\\s*\\{)",
),
lookbehind: !0,
},
string: { pattern: t, greedy: !0 },
property: {
pattern:
/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,
lookbehind: !0,
},
important: /!important\b/i,
function: {
pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,
lookbehind: !0,
},
punctuation: /[(){};:,]/,
}),
(e.languages.css.atrule.inside.rest = e.languages.css));
var n = e.languages.markup;
n &&
(n.tag.addInlined("style", "css"),
n.tag.addAttribute("style", "css"));
})(r),
(r.languages.clike = {
comment: [
{
pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
lookbehind: !0,
greedy: !0,
},
{ pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 },
],
string: {
pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
greedy: !0,
},
"class-name": {
pattern:
/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,
lookbehind: !0,
inside: { punctuation: /[.\\]/ },
},
keyword:
/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,
boolean: /\b(?:false|true)\b/,
function: /\b\w+(?=\()/,
number:
/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,
operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
punctuation: /[{}[\];(),.:]/,
}),
(r.languages.javascript = r.languages.extend("clike", {
"class-name": [
r.languages.clike["class-name"],
{
pattern:
/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,
lookbehind: !0,
},
],
keyword: [
{ pattern: /((?:^|\})\s*)catch\b/, lookbehind: !0 },
{
pattern:
/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,
lookbehind: !0,
},
],
function:
/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
number: {
pattern: RegExp(
/(^|[^\w$])/.source +
"(?:" +
/NaN|Infinity/.source +
"|" +
/0[bB][01]+(?:_[01]+)*n?/.source +
"|" +
/0[oO][0-7]+(?:_[0-7]+)*n?/.source +
"|" +
/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source +
"|" +
/\d+(?:_\d+)*n/.source +
"|" +
/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/
.source +
")" +
/(?![\w$])/.source,
),
lookbehind: !0,
},
operator:
/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,
})),
(r.languages.javascript["class-name"][0].pattern =
/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/),
r.languages.insertBefore("javascript", "keyword", {
regex: {
pattern: RegExp(
/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/
.source +
/\//.source +
"(?:" +
/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/
.source +
"|" +
/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/
.source +
")" +
/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/
.source,
),
lookbehind: !0,
greedy: !0,
inside: {
"regex-source": {
pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/,
lookbehind: !0,
alias: "language-regex",
inside: r.languages.regex,
},
"regex-delimiter": /^\/|\/$/,
"regex-flags": /^[a-z]+$/,
},
},
"function-variable": {
pattern:
/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,
alias: "function",
},
parameter: [
{
pattern:
/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
lookbehind: !0,
inside: r.languages.javascript,
},
{
pattern:
/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
lookbehind: !0,
inside: r.languages.javascript,
},
{
pattern:
/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,
lookbehind: !0,
inside: r.languages.javascript,
},
{
pattern:
/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,
lookbehind: !0,
inside: r.languages.javascript,
},
],
constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/,
}),
r.languages.insertBefore("javascript", "string", {
hashbang: { pattern: /^#!.*/, greedy: !0, alias: "comment" },
"template-string": {
pattern:
/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,
greedy: !0,
inside: {
"template-punctuation": {
pattern: /^`|`$/,
alias: "string",
},
interpolation: {
pattern:
/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,
lookbehind: !0,
inside: {
"interpolation-punctuation": {
pattern: /^\$\{|\}$/,
alias: "punctuation",
},
rest: r.languages.javascript,
},
},
string: /[\s\S]+/,
},
},
"string-property": {
pattern:
/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,
lookbehind: !0,
greedy: !0,
alias: "property",
},
}),
r.languages.insertBefore("javascript", "operator", {
"literal-property": {
pattern:
/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,
lookbehind: !0,
alias: "property",
},
}),
r.languages.markup &&
(r.languages.markup.tag.addInlined("script", "javascript"),
r.languages.markup.tag.addAttribute(
/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/
.source,
"javascript",
)),
(r.languages.js = r.languages.javascript),
(function () {
if (void 0 !== r && "undefined" != typeof document) {
Element.prototype.matches ||
(Element.prototype.matches =
Element.prototype.msMatchesSelector ||
Element.prototype.webkitMatchesSelector);
var e = {
js: "javascript",
py: "python",
rb: "ruby",
ps1: "powershell",
psm1: "powershell",
sh: "bash",
bat: "batch",
h: "c",
tex: "latex",
},
t = "data-src-status",
n = "loading",
i = "loaded",
o =
"pre[data-src]:not([" +
t +
'="' +
i +
'"]):not([' +
t +
'="' +
n +
'"])';
(r.hooks.add("before-highlightall", function (e) {
e.selector += ", " + o;
}),
r.hooks.add("before-sanity-check", function (a) {
var s = a.element;
if (s.matches(o)) {
((a.code = ""), s.setAttribute(t, n));
var u = s.appendChild(document.createElement("CODE"));
u.textContent = "Loading…";
var c = s.getAttribute("data-src"),
l = a.language;
if ("none" === l) {
var d = (/\.(\w+)$/.exec(c) || [, "none"])[1];
l = e[d] || d;
}
(r.util.setLanguage(u, l), r.util.setLanguage(s, l));
var f = r.plugins.autoloader;
(f && f.loadLanguages(l),
(function (e, t, n) {
var r = new XMLHttpRequest();
(r.open("GET", e, !0),
(r.onreadystatechange = function () {
4 == r.readyState &&
(r.status < 400 && r.responseText
? t(r.responseText)
: r.status >= 400
? n(
"✖ Error " +
r.status +
" while fetching file: " +
r.statusText,
)
: n(
"✖ Error: File does not exist or is empty",
));
}),
r.send(null));
})(
c,
function (e) {
s.setAttribute(t, i);
var n = (function (e) {
var t =
/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(
e || "",
);
if (t) {
var n = Number(t[1]),
r = t[2],
i = t[3];
return r
? i
? [n, Number(i)]
: [n, undefined]
: [n, n];
}
return undefined;
})(s.getAttribute("data-range"));
if (n) {
var o = e.split(/\r\n?|\n/g),
a = n[0],
c = null == n[1] ? o.length : n[1];
(a < 0 && (a += o.length),
(a = Math.max(0, Math.min(a - 1, o.length))),
c < 0 && (c += o.length),
(c = Math.max(0, Math.min(c, o.length))),
(e = o.slice(a, c).join("\n")),
s.hasAttribute("data-start") ||
s.setAttribute(
"data-start",
String(a + 1),
));
}
((u.textContent = e), r.highlightElement(u));
},
function (e) {
(s.setAttribute(t, "failed"),
(u.textContent = e));
},
));
}
}),
(r.plugins.fileHighlight = {
highlight: function (e) {
for (
var t, n = (e || document).querySelectorAll(o), i = 0;
(t = n[i++]);
)
r.highlightElement(t);
},
}));
var a = !1;
r.fileHighlight = function () {
(a ||
(console.warn(
"Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead.",
),
(a = !0)),
r.plugins.fileHighlight.highlight.apply(this, arguments));
};
}
})());
},
8926: function (e, t, n) {
"use strict";
var r = n(477);
(Object.defineProperty(t, "B", { value: !0 }), (t.A = void 0));
var i = r(n(8323)),
o = r(n(1452)),
a = r(n(2053));
t.A = {
components: {
TkComments: i["default"],
TkFooter: o["default"],
TkAdmin: a["default"],
},
data: function () {
return { showAdmin: !1, showAdminEntry: !1 };
},
methods: {
onShowAdminEntry: function (e) {
this.showAdminEntry = e;
},
},
};
},
3397: function (e, t, n) {
"use strict";
var r = n(477);
(Object.defineProperty(t, "B", { value: !0 }), (t.A = void 0));
var i = r(n(3491)),
o = r(n(6370)),
a = r(n(6359)),
s = r(n(5910));
t.A = {
data: function () {
return {
iconComment: i["default"],
iconCommentSolid: o["default"],
iconLike: a["default"],
iconLikeSolid: s["default"],
};
},
props: {
liked: Boolean,
likeCount: Number,
repliesCount: Number,
},
computed: {
likeCountStr: function () {
return this.likeCount > 0 ? "".concat(this.likeCount) : "";
},
repliesCountStr: function () {
return this.repliesCount > 0
? "".concat(this.repliesCount)
: "";
},
},
methods: {
onLike: function (e) {
(e.preventDefault(), this.$emit("like"));
},
onReply: function (e) {
(e.preventDefault(), this.$emit("reply"));
},
},
};
},
4238: function (e, t, n) {
"use strict";
var r = n(477);
(Object.defineProperty(t, "B", { value: !0 }), (t.A = void 0));
var i = r(n(479)),
o = r(n(4964)),
a = r(n(2889)),
s = r(n(8559)),
u = r(n(1140)),
c = r(n(9985)),
l = r(n(9097)),
d = n(8129),
f = r(n(9671));
t.A = {
components: {
TkAdminComment: s["default"],
TkAdminConfig: u["default"],
TkAdminImport: c["default"],
TkAdminExport: l["default"],
},
props: { show: Boolean },
data: function () {
return {
iconClose: f["default"],
loading: !0,
version: "",
needUpdate: !1,
isLogin: !1,
isSetPassword: !0,
isSetCredentials: !1,
credentials: "",
password: "",
passwordConfirm: "",
loginErrorMessage: "",
activeTabName: "comment",
};
},
computed: {
canRegist: function () {
return (
!this.isSetPassword &&
!!this.password &&
this.password === this.passwordConfirm &&
(this.isSetCredentials || this.credentials)
);
},
},
methods: {
t: d.t,
onLogin: function () {
var e = this;
return (0, o["default"])(
i["default"].mark(function t() {
var n, r;
return i["default"].wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
if (e.password) {
t.next = 3;
break;
}
return (
(e.loginErrorMessage = (0, d.t)(
"ADMIN_PASSWORD_REQUIRED",
)),
t.abrupt("return")
);
case 3:
return (
(e.loading = !0),
(e.loginErrorMessage = ""),
(n = (0, a["default"])(e.password)),
(t.next = 8),
(0, d.call)(e.$tcb, "LOGIN", { password: n })
);
case 8:
if (!(r = t.sent).result.message) {
t.next = 13;
break;
}
((e.loginErrorMessage = r.result.message),
(t.next = 28));
break;
case 13:
if (!r.result.ticket) {
t.next = 27;
break;
}
return (
(t.prev = 14),
(t.next = 17),
e.$tcb.auth
.customAuthProvider()
.signIn(r.result.ticket)
);
case 17:
(d.logger.log("登录成功"),
(e.password = ""),
e.checkAuth(),
(t.next = 25));
break;
case 22:
((t.prev = 22),
(t.t0 = t["catch"](14)),
d.logger.error("登录失败", t.t0));
case 25:
t.next = 28;
break;
case 27:
0 === r.result.code &&
(d.logger.log("登录成功"),
localStorage.setItem(
"twikoo-access-token",
n,
),
(e.password = ""),
e.checkAuth());
case 28:
e.loading = !1;
case 29:
case "end":
return t.stop();
}
},
t,
null,
[[14, 22]],
);
}),
)();
},
onLogout: function (e) {
var t = this;
return (0, o["default"])(
i["default"].mark(function n() {
return i["default"].wrap(function (n) {
for (;;)
switch ((n.prev = n.next)) {
case 0:
if (
(e.preventDefault(), (t.loading = !0), !t.$tcb)
) {
n.next = 9;
break;
}
return ((n.next = 5), t.$tcb.auth.signOut());
case 5:
return (
(n.next = 7),
t.$tcb.auth.anonymousAuthProvider().signIn()
);
case 7:
n.next = 10;
break;
case 9:
localStorage.removeItem("twikoo-access-token");
case 10:
((t.isLogin = !1), (t.loading = !1));
case 12:
case "end":
return n.stop();
}
}, n);
}),
)();
},
onRegist: function () {
var e = this;
return (0, o["default"])(
i["default"].mark(function t() {
var n, r;
return i["default"].wrap(function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(e.loading = !0),
(n = (0, a["default"])(e.password)),
(t.next = 4),
(0, d.call)(e.$tcb, "SET_PASSWORD", {
password: n,
credentials: e.credentials,
})
);
case 4:
((r = t.sent).result.code
? ((e.loginErrorMessage = (0, d.t)(
"ADMIN_REGIST_FAILED",
)),
r.result.message &&
(e.loginErrorMessage +=
"," + r.result.message),
d.logger.warn("Twikoo 注册失败", r))
: ((e.passwordMd5 = ""),
(e.isSetPassword = !0),
e.onLogin()),
(e.loading = !1));
case 7:
case "end":
return t.stop();
}
}, t);
}),
)();
},
onShow: function () {
var e = this;
return (0, o["default"])(
i["default"].mark(function t() {
return i["default"].wrap(function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(e.loading = !0),
(t.next = 3),
e.checkAuth()
);
case 3:
if (e.isLogin) {
t.next = 7;
break;
}
return ((t.next = 6), e.checkIfPasswordSet());
case 6:
e.focusPassword();
case 7:
e.loading = !1;
case 8:
case "end":
return t.stop();
}
}, t);
}),
)();
},
focusPassword: function () {
var e = this;
setTimeout(function () {
e.$refs.focusme && e.$refs.focusme.focus();
}, 500);
},
checkAuth: function () {
var e = this;
return (0, o["default"])(
i["default"].mark(function t() {
var n, r;
return i["default"].wrap(function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
if (!e.$tcb) {
t.next = 7;
break;
}
return (
(t.next = 3),
e.$tcb.auth.getCurrenUser()
);
case 3:
((n = t.sent),
(e.isLogin = "CUSTOM" === n.loginType),
(t.next = 11));
break;
case 7:
return (
(t.next = 9),
(0, d.call)(e.$tcb, "GET_CONFIG")
);
case 9:
(r = t.sent) &&
r.result &&
r.result.config &&
(e.isLogin = r.result.config.IS_ADMIN);
case 11:
case "end":
return t.stop();
}
}, t);
}),
)();
},
checkIfPasswordSet: function () {
var e = this;
return (0, o["default"])(
i["default"].mark(function t() {
var n;
return i["default"].wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.prev = 0),
(t.next = 3),
(0, d.call)(e.$tcb, "GET_PASSWORD_STATUS")
);
case 3:
((n = t.sent),
(e.version = n.result.version),
(e.isSetPassword = n.result.status),
(e.isSetCredentials = !e.$tcb),
(t.next = 14));
break;
case 9:
throw (
(t.prev = 9),
(t.t0 = t["catch"](0)),
(e.needUpdate = !0),
(e.loading = !1),
t.t0
);
case 14:
case "end":
return t.stop();
}
},
t,
null,
[[0, 9]],
);
}),
)();
},
onClose: function (e) {
(e.preventDefault(), this.$emit("close"));
},
},
watch: {
show: function (e) {
e && this.onShow();
},
},
};
},
4555: function (e, t, n) {
"use strict";
var r = n(477);
(Object.defineProperty(t, "B", { value: !0 }), (t.A = void 0));
var i = r(n(479)),
o = r(n(4964)),
a = n(1085),
s = n(8129),
u = n(2199),
c = r(n(4785)),
l = r(n(6431));
t.A = {
components: {
TkAvatar: c["default"],
TkPagination: l["default"],
},
data: function () {
return {
loading: !0,
comments: [],
serverConfig: {},
serverVersion: this.$twikoo.serverConfig.VERSION,
clientVersion: u.version,
count: 0,
pageSize: 5,
currentPage: 1,
filter: { keyword: "", type: "" },
};
},
methods: {
t: s.t,
displayCreated: function (e) {
return (0, s.timeago)(e.created);
},
convertLink: function (e) {
return (0, s.convertLink)(e);
},
getComments: function () {
var e = this;
return (0, o["default"])(
i["default"].mark(function t() {
var n;
return i["default"].wrap(function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(e.loading = !0),
(t.next = 3),
(0, s.call)(e.$tcb, "COMMENT_GET_FOR_ADMIN", {
per: e.pageSize,
page: e.currentPage,
keyword: e.filter.keyword,
type: e.filter.type,
})
);
case 3:
((n = t.sent).result &&
!n.result.code &&
((e.count = n.result.count),
(e.comments = n.result.data)),
e.$nextTick(function () {
((0, s.renderLinks)(e.$refs.comments),
(0, s.renderMath)(
e.$refs["comment-list"],
e.$twikoo.katex,
),
e.highlightCode());
}),
(e.loading = !1));
case 7:
case "end":
return t.stop();
}
}, t);
}),
)();
},
getConfig: function () {
var e = this;
return (0, o["default"])(
i["default"].mark(function t() {
var n;
return i["default"].wrap(function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
(0, s.call)(e.$tcb, "GET_CONFIG_FOR_ADMIN")
);
case 2:
(n = t.sent).result &&
!n.result.code &&
((e.serverConfig = n.result.config),
e.checkConfig());
case 4:
case "end":
return t.stop();
}
}, t);
}),
)();
},
checkConfig: function () {
var e = this;
this.serverConfig.HIGHLIGHT ||
(this.serverConfig.HIGHLIGHT = "true");
var t = {},
n = localStorage.getItem("twikoo");
(n && (t = JSON.parse(n)),
["nick", "mail", "avatar"].forEach(function (n) {
t[n]
? (e.serverConfig[n] = t[n])
: (e.serverConfig[n] = "");
}),
!t.nick &&
this.serverConfig.BLOGGER_NICK &&
(t.nick = this.serverConfig.BLOGGER_NICK),
!t.mail &&
this.serverConfig.BLOGGER_EMAIL &&
(t.mail = this.serverConfig.BLOGGER_EMAIL),
!t.link &&
this.serverConfig.SITE_URL &&
(t.link = this.serverConfig.SITE_URL),
localStorage.setItem("twikoo", JSON.stringify(t)),
a.app.$emit("initMeta"));
},
onPageSizeChange: function (e) {
((this.pageSize = e), this.getComments());
},
switchPage: function (e) {
((this.currentPage = e), this.getComments());
},
handleView: function (e) {
window.open("".concat(e.url, "#").concat(e._id));
},
handleDelete: function (e) {
var t = this;
return (0, o["default"])(
i["default"].mark(function n() {
return i["default"].wrap(function (n) {
for (;;)
switch ((n.prev = n.next)) {
case 0:
if (
confirm(
(0, s.t)("ADMIN_COMMENT_DELETE_CONFIRM"),
)
) {
n.next = 2;
break;
}
return n.abrupt("return");
case 2:
return (
(t.loading = !0),
(n.next = 5),
(0, s.call)(
t.$tcb,
"COMMENT_DELETE_FOR_ADMIN",
{ id: e._id },
)
);
case 5:
return ((n.next = 7), t.getComments());
case 7:
t.loading = !1;
case 8:
case "end":
return n.stop();
}
}, n);
}),
)();
},
handleSpam: function (e, t) {
this.setComment(e, { isSpam: t });
},
handleTop: function (e, t) {
this.setComment(e, { top: t });
},
setComment: function (e, t) {
var n = this;
return (0, o["default"])(
i["default"].mark(function r() {
return i["default"].wrap(function (r) {
for (;;)
switch ((r.prev = r.next)) {
case 0:
return (
(n.loading = !0),
(r.next = 3),
(0, s.call)(n.$tcb, "COMMENT_SET_FOR_ADMIN", {
id: e._id,
set: t,
})
);
case 3:
return ((r.next = 5), n.getComments());
case 5:
n.loading = !1;
case 6:
case "end":
return r.stop();
}
}, r);
}),
)();
},
highlightCode: function () {
"true" === this.serverConfig.HIGHLIGHT &&
(0, s.renderCode)(
this.$refs["comment-list"],
this.serverConfig.HIGHLIGHT_THEME,
this.serverConfig.HIGHLIGHT_PLUGIN,
);
},
},
mounted: function () {
var e = this;
return (0, o["default"])(
i["default"].mark(function t() {
return i["default"].wrap(function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
Promise.all([e.getConfig(), e.getComments()])
);
case 2:
e.highlightCode();
case 3:
case "end":
return t.stop();
}
}, t);
}),
)();
},
};
},
4868: function (e, t, n) {
"use strict";
var r = n(477);
(Object.defineProperty(t, "B", { value: !0 }), (t.A = void 0));
var i = r(n(479)),
o = r(n(4964)),
a = n(8129),
s = n(2199);
function u(e, t) {
var n =
("undefined" != typeof Symbol && e[Symbol.iterator]) ||
e["@@iterator"];
if (!n) {
if (
Array.isArray(e) ||
(n = (function (e, t) {
if (e) {
if ("string" == typeof e) return c(e, t);
var n = Object.prototype.toString.call(e).slice(8, -1);
return (
"Object" === n &&
e.constructor &&
(n = e.constructor.name),
"Map" === n || "Set" === n
? Array.from(e)
: "Arguments" === n ||
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
? c(e, t)
: void 0
);
}
})(e)) ||
(t && e && "number" == typeof e.length)
) {
n && (e = n);
var r = 0,
i = function () {};
return {
s: i,
n: function () {
return r >= e.length
? { done: !0 }
: { done: !1, value: e[r++] };
},
e: function (e) {
throw e;
},
f: i,
};
}
throw new TypeError(
"Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.",
);
}
var o,
a = !0,
s = !1;
return {
s: function () {
n = n.call(e);
},
n: function () {
var e = n.next();
return ((a = e.done), e);
},
e: function (e) {
((s = !0), (o = e));
},
f: function () {
try {
a || null == n["return"] || n["return"]();
} finally {
if (s) throw o;
}
},
};
}
function c(e, t) {
(null == t || t > e.length) && (t = e.length);
for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
return r;
}
t.A = {
data: function () {
return {
loading: !0,
settings: [
{
name: (0, a.t)("ADMIN_CONFIG_CATEGORY_COMMON"),
items: [
{
key: "SITE_NAME",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_SITE_NAME"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"虹墨空间站",
),
value: "",
},
{
key: "SITE_URL",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_SITE_URL"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"https://www.imaegoo.com",
),
value: "",
},
{
key: "CORS_ALLOW_ORIGIN",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_CORS_ALLOW_ORIGIN"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"https://www.imaegoo.com",
),
value: "",
},
{
key: "BLOGGER_NICK",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_BLOGGER_NICK"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"iMaeGoo",
),
value: "",
},
{
key: "BLOGGER_EMAIL",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_BLOGGER_EMAIL"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"12345@qq.com",
),
value: "",
},
{
key: "COMMENT_PAGE_SIZE",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_COMMENT_PAGE_SIZE"),
ph: "".concat((0, a.t)("ADMIN_CONFIG_EXAMPLE"), "8"),
value: "",
},
{
key: "MASTER_TAG",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_MASTER_TAG"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"站长",
),
value: "",
},
{
key: "COMMENT_BG_IMG",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_COMMENT_BG_IMG"),
ph: "",
value: "",
},
{
key: "GRAVATAR_CDN",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_GRAVATAR_CDN"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"sdn.geekzu.org",
),
value: "",
},
{
key: "DEFAULT_GRAVATAR",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_DEFAULT_GRAVATAR"),
ph: "".concat((0, a.t)("ADMIN_CONFIG_EXAMPLE"), "mp"),
value: "",
},
{
key: "COMMENT_PLACEHOLDER",
desc: (0, a.t)(
"ADMIN_CONFIG_ITEM_COMMENT_PLACEHOLDER",
),
ph: "".concat((0, a.t)("ADMIN_CONFIG_EXAMPLE")),
value: "",
},
{
key: "DISPLAYED_FIELDS",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_DISPLAYED_FIELDS"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"nick,mail,link",
),
value: "",
},
{
key: "REQUIRED_FIELDS",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_REQUIRED_FIELDS"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"nick,mail,link",
),
value: "",
},
{
key: "HIDE_ADMIN_CRYPT",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_HIDE_ADMIN_CRYPT"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"admin",
),
value: "",
},
],
},
{
name: (0, a.t)("ADMIN_CONFIG_CATEGORY_PLUGIN"),
items: [
{
key: "SHOW_IMAGE",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_SHOW_IMAGE"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"false",
),
value: "",
},
{
key: "IMAGE_CDN",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_IMAGE_CDN"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"qcloud",
),
value: "",
},
{
key: "IMAGE_CDN_URL",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_IMAGE_CDN_URL"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"https://piclist.example.com",
),
value: "",
},
{
key: "IMAGE_CDN_TOKEN",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_IMAGE_CDN_TOKEN"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"example",
),
value: "",
},
{
key: "SHOW_EMOTION",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_SHOW_EMOTION"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"false",
),
value: "",
},
{
key: "EMOTION_CDN",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_EMOTION_CDN"),
ph: "",
value: "",
},
{
key: "HIGHLIGHT",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_HIGHLIGHT"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"false",
),
value: "",
},
{
key: "HIGHLIGHT_THEME",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_HIGHLIGHT_THEME"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"tomorrow",
),
value: "",
},
{
key: "HIGHLIGHT_PLUGIN",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_HIGHLIGHT_PLUGIN"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"showLanguage",
),
value: "",
},
{
key: "LIGHTBOX",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_LIGHTBOX"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"true",
),
value: "",
},
],
},
{
name: (0, a.t)("ADMIN_CONFIG_CATEGORY_PRIVACY"),
items: [
{
key: "SHOW_UA",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_SHOW_UA"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"false",
),
value: "",
},
{
key: "SHOW_REGION",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_SHOW_REGION"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"true",
),
value: "",
},
],
},
{
name: (0, a.t)("ADMIN_CONFIG_CATEGORY_SPAM"),
items: [
{
key: "AKISMET_KEY",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_AKISMET_KEY"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"8651783edxxx",
),
value: "",
},
{
key: "QCLOUD_SECRET_ID",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_QCLOUD_SECRET_ID"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"AKI******************************IHw",
),
value: "",
},
{
key: "QCLOUD_SECRET_KEY",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_QCLOUD_SECRET_KEY"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"Xrk**************************3D7",
),
value: "",
secret: !0,
},
{
key: "QCLOUD_CMS_BIZTYPE",
desc: (0, a.t)(
"ADMIN_CONFIG_ITEM_QCLOUD_CMS_BIZTYPE",
),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"1787728329856520192",
),
value: "",
},
{
key: "LIMIT_PER_MINUTE",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_LIMIT_PER_MINUTE"),
ph: "".concat((0, a.t)("ADMIN_CONFIG_EXAMPLE"), "5"),
value: "",
},
{
key: "LIMIT_PER_MINUTE_ALL",
desc: (0, a.t)(
"ADMIN_CONFIG_ITEM_LIMIT_PER_MINUTE_ALL",
),
ph: "".concat((0, a.t)("ADMIN_CONFIG_EXAMPLE"), "5"),
value: "",
},
{
key: "LIMIT_LENGTH",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_LIMIT_LENGTH"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"100",
),
value: "",
},
{
key: "FORBIDDEN_WORDS",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_FORBIDDEN_WORDS"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"快递,空包",
),
value: "",
},
{
key: "BLOCKED_WORDS",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_BLOCKED_WORDS"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"快递,空包",
),
value: "",
},
{
key: "NOTIFY_SPAM",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_NOTIFY_SPAM"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"false",
),
value: "",
},
{
key: "TURNSTILE_SITE_KEY",
desc: (0, a.t)(
"ADMIN_CONFIG_ITEM_TURNSTILE_SITE_KEY",
),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"0x4AAAAAAAPLTtpBr_T12345",
),
value: "",
},
{
key: "TURNSTILE_SECRET_KEY",
desc: (0, a.t)(
"ADMIN_CONFIG_ITEM_TURNSTILE_SECRET_KEY",
),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"0x4AAAAAAAPLTmBm6gHmOnOqC1iwmU12345",
),
value: "",
secret: !0,
},
],
},
{
name: (0, a.t)("ADMIN_CONFIG_CATEGORY_IM"),
items: [
{
key: "PUSHOO_CHANNEL",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_PUSHOO_CHANNEL"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"pushdeer",
),
value: "",
},
{
key: "PUSHOO_TOKEN",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_PUSHOO_TOKEN"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"PDU431TfFHZICvR6lJrFBswSRN1cJ*****zzFvR",
),
value: "",
},
{
key: "SC_MAIL_NOTIFY",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_SC_MAIL_NOTIFY"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"true",
),
value: "",
},
],
},
{
name: (0, a.t)("ADMIN_CONFIG_CATEGORY_MAIL"),
items: [
{
key: "SENDER_EMAIL",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_SENDER_EMAIL"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"blog@imaegoo.com",
),
value: "",
},
{
key: "SENDER_NAME",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_SENDER_NAME"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"虹墨空间站评论提醒",
),
value: "",
},
{
key: "SMTP_SERVICE",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_SMTP_SERVICE"),
ph: "".concat((0, a.t)("ADMIN_CONFIG_EXAMPLE"), "QQ"),
value: "",
},
{
key: "SMTP_HOST",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_SMTP_HOST"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"smtp.qq.com",
),
value: "",
},
{
key: "SMTP_PORT",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_SMTP_PORT"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"465",
),
value: "",
},
{
key: "SMTP_SECURE",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_SMTP_SECURE"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"true",
),
value: "",
},
{
key: "SMTP_USER",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_SMTP_USER"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"blog@imaegoo.com",
),
value: "",
},
{
key: "SMTP_PASS",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_SMTP_PASS"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"password",
),
value: "",
secret: !0,
},
{
key: "MAIL_SUBJECT",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_MAIL_SUBJECT"),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"您在虹墨空间站上的评论收到了回复",
),
value: "",
},
{
key: "MAIL_TEMPLATE",
desc: (0, a.t)("ADMIN_CONFIG_ITEM_MAIL_TEMPLATE"),
ph: "",
value: "",
},
{
key: "MAIL_SUBJECT_ADMIN",
desc: (0, a.t)(
"ADMIN_CONFIG_ITEM_MAIL_SUBJECT_ADMIN",
),
ph: "".concat(
(0, a.t)("ADMIN_CONFIG_EXAMPLE"),
"虹墨空间站上有新评论了",
),
value: "",
},
{
key: "MAIL_TEMPLATE_ADMIN",
desc: (0, a.t)(
"ADMIN_CONFIG_ITEM_MAIL_TEMPLATE_ADMIN",
),
ph: "",
value: "",
},
],
},
],
serverConfig: {},
serverVersion: this.$twikoo.serverConfig.VERSION,
clientVersion: s.version,
message: "",
emailTestAddress: "",
emailTestResult: "",
};
},
methods: {
t: a.t,
readConfig: function () {
var e = this;
return (0, o["default"])(
i["default"].mark(function t() {
var n;
return i["default"].wrap(function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(e.loading = !0),
(t.next = 3),
(0, a.call)(e.$tcb, "GET_CONFIG_FOR_ADMIN")
);
case 3:
((n = t.sent).result &&
!n.result.code &&
((e.serverConfig = n.result.config),
e.resetConfig()),
(e.loading = !1));
case 6:
case "end":
return t.stop();
}
}, t);
}),
)();
},
resetConfig: function () {
var e,
t = u(this.settings);
try {
for (t.s(); !(e = t.n()).done; ) {
var n,
r = u(e.value.items);
try {
for (r.s(); !(n = r.n()).done; ) {
var i = n.value;
this.serverConfig[i.key] &&
(i.value = this.serverConfig[i.key]);
}
} catch (o) {
r.e(o);
} finally {
r.f();
}
}
} catch (o) {
t.e(o);
} finally {
t.f();
}
},
saveConfig: function () {
var e = this;
return (0, o["default"])(
i["default"].mark(function t() {
var n, r, o, s, c, l, d, f, p;
return i["default"].wrap(function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
((e.loading = !0),
(e.message = "正在保存"),
(n = {}),
(r = u(e.settings)));
try {
for (r.s(); !(o = r.n()).done; ) {
((s = o.value), (c = u(s.items)));
try {
for (c.s(); !(l = c.n()).done; )
((d = l.value),
(f = e.serverConfig[d.key]),
(p = d.value),
f !== p && (n[d.key] = d.value));
} catch (i) {
c.e(i);
} finally {
c.f();
}
}
} catch (i) {
r.e(i);
} finally {
r.f();
}
return (
a.logger.log("保存配置", n),
(t.next = 8),
(0, a.call)(e.$tcb, "SET_CONFIG", { config: n })
);
case 8:
return ((t.next = 10), e.readConfig());
case 10:
((e.message = "保存成功"), (e.loading = !1));
case 12:
case "end":
return t.stop();
}
}, t);
}),
)();
},
testEmail: function () {
var e = this;
return (0, o["default"])(
i["default"].mark(function t() {
var n;
return i["default"].wrap(function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(e.loading = !0),
(t.next = 3),
(0, a.call)(e.$tcb, "EMAIL_TEST", {
mail: e.emailTestAddress,
})
);
case 3:
((n = t.sent),
a.logger.log("邮件测试", n),
(e.emailTestResult = JSON.stringify(n)),
(e.loading = !1));
case 7:
case "end":
return t.stop();
}
}, t);
}),
)();
},
},
mounted: function () {
this.readConfig();
},
};
},
3396: function (e, t, n) {
"use strict";
var r = n(477);
(Object.defineProperty(t, "B", { value: !0 }), (t.A = void 0));
var i = r(n(479)),
o = r(n(4964)),
a = n(8129);
t.A = {
data: function () {
return { loading: !1 };
},
methods: {
t: a.t,
doExport: function (e) {
var t = this;
return (0, o["default"])(
i["default"].mark(function n() {
var r;
return i["default"].wrap(
function (n) {
for (;;)
switch ((n.prev = n.next)) {
case 0:
return (
(t.loading = !0),
(n.prev = 1),
(n.next = 4),
(0, a.call)(
t.$tcb,
"COMMENT_EXPORT_FOR_ADMIN",
{ collection: e },
)
);
case 4:
(r = n.sent).result.data &&
t.downloadJson(
"twikoo-".concat(e, ".json"),
r.result.data,
);
case 6:
return (
(n.prev = 6),
(t.loading = !1),
n.finish(6)
);
case 9:
case "end":
return n.stop();
}
},
n,
null,
[[1, , 6, 9]],
);
}),
)();
},
downloadJson: function (e, t) {
var n = t instanceof Object ? JSON.stringify(t, null, 2) : t,
r = window.URL || window.webkitURL || window,
i = new Blob([n]),
o = document.createElementNS(
"http://www.w3.org/1999/xhtml",
"a",
);
((o.href = r.createObjectURL(i)),
(o.download = e),
o.click());
},
},
};
},
9865: function (e, t, n) {
"use strict";
var r = n(477);
(Object.defineProperty(t, "B", { value: !0 }), (t.A = void 0));
var i = r(n(479)),
o = r(n(4964)),
a = n(8129);
t.A = {
data: function () {
return {
loading: !1,
source: "",
logText: "",
warnText: {
valine: (0, a.t)("ADMIN_IMPORT_TIP_VALINE"),
disqus: (0, a.t)("ADMIN_IMPORT_TIP_DISQUS"),
artalk: (0, a.t)("ADMIN_IMPORT_TIP_ARTALK"),
artalk2: "",
twikoo: "",
},
};
},
methods: {
t: a.t,
uploadFile: function () {
var e = this;
return (0, o["default"])(
i["default"].mark(function t() {
var n, r;
return i["default"].wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
if (e.source) {
t.next = 3;
break;
}
return (
e.log(
(0, a.t)("ADMIN_IMPORT_SOURCE_REQUIRED"),
),
t.abrupt("return")
);
case 3:
if ((n = e.$refs.inputFile.files[0])) {
t.next = 7;
break;
}
return (
e.log((0, a.t)("ADMIN_IMPORT_FILE_REQUIRED")),
t.abrupt("return")
);
case 7:
if (
(e.log((0, a.t)("ADMIN_IMPORT_START")),
(e.loading = !0),
(t.prev = 9),
!e.$tcb)
) {
t.next = 19;
break;
}
return (
(t.next = 13),
e.$tcb.app.uploadFile({
cloudPath: "import/".concat(Date.now()),
filePath: n,
onUploadProgress: function (t) {
var n = Math.round(
(100 * t.loaded) / t.total,
);
e.log(
""
.concat(
(0, a.t)("ADMIN_IMPORT_UPLOADING"),
)
.concat(n, "%"),
);
},
})
);
case 13:
return (
(r = t.sent),
e.log(
""
.concat((0, a.t)("ADMIN_IMPORT_UPLOADED"))
.concat(r.fileID),
),
(t.next = 17),
e.importFile(r.fileID)
);
case 17:
t.next = 21;
break;
case 19:
return ((t.next = 21), e.importFileToVercel(n));
case 21:
t.next = 27;
break;
case 23:
((t.prev = 23),
(t.t0 = t["catch"](9)),
console.error(t.t0),
e.log(t.t0.message));
case 27:
e.loading = !1;
case 28:
case "end":
return t.stop();
}
},
t,
null,
[[9, 23]],
);
}),
)();
},
importFile: function (e) {
var t = this;
return (0, o["default"])(
i["default"].mark(function n() {
var r;
return i["default"].wrap(function (n) {
for (;;)
switch ((n.prev = n.next)) {
case 0:
return (
t.log(
""
.concat((0, a.t)("ADMIN_IMPORT_IMPORTING"))
.concat(t.source),
),
(n.next = 3),
(0, a.call)(
t.$tcb,
"COMMENT_IMPORT_FOR_ADMIN",
{ fileId: e, source: t.source },
)
);
case 3:
((r = n.sent),
(t.logText += r.result.log),
t.log(
""
.concat((0, a.t)("ADMIN_IMPORT_IMPORTED"))
.concat(t.source),
));
case 6:
case "end":
return n.stop();
}
}, n);
}),
)();
},
importFileToVercel: function (e) {
var t = this;
return (0, o["default"])(
i["default"].mark(function n() {
var r;
return i["default"].wrap(function (n) {
for (;;)
switch ((n.prev = n.next)) {
case 0:
return (
t.log(
""
.concat((0, a.t)("ADMIN_IMPORT_IMPORTING"))
.concat(t.source),
),
(n.t0 = a.call),
(n.t1 = t.$tcb),
(n.next = 5),
(0, a.readAsText)(e)
);
case 5:
return (
(n.t2 = n.sent),
(n.t3 = t.source),
(n.t4 = { file: n.t2, source: n.t3 }),
(n.next = 10),
(0, n.t0)(
n.t1,
"COMMENT_IMPORT_FOR_ADMIN",
n.t4,
)
);
case 10:
((r = n.sent),
(t.logText += r.result.log),
t.log(
""
.concat((0, a.t)("ADMIN_IMPORT_IMPORTED"))
.concat(t.source),
));
case 13:
case "end":
return n.stop();
}
}, n);
}),
)();
},
log: function (e) {
((this.logText += ""
.concat(new Date().toLocaleString(), " ")
.concat(e, "\n")),
this.$nextTick(this.scrollLogToBottom));
},
scrollLogToBottom: function () {
if (this.$refs.logTextArea) {
var e = this.$refs.logTextArea.$refs.textarea;
e.scrollTop = e.scrollHeight;
}
},
},
};
},
4064: function (e, t, n) {
"use strict";
var r = n(477);
(Object.defineProperty(t, "B", { value: !0 }), (t.A = void 0));
var i = r(n(2889)),
o = n(823),
a = n(8129),
s = r(n(9587));
t.A = {
props: {
config: Object,
avatar: String,
nick: String,
mail: String,
mailMd5: String,
link: String,
},
data: function () {
return { iconUser: s["default"] };
},
computed: {
gravatarCdn: function () {
return this.config && this.config.GRAVATAR_CDN
? this.config.GRAVATAR_CDN
: "weavatar.com";
},
defaultGravatar: function () {
return this.config && this.config.DEFAULT_GRAVATAR
? this.config.DEFAULT_GRAVATAR
: "initials&name=".concat(this.nick);
},
avatarInner: function () {
if (this.avatar) return this.avatar;
if (this.mailMd5)
return "https://"
.concat(this.gravatarCdn, "/avatar/")
.concat(this.mailMd5, "?d=")
.concat(this.defaultGravatar);
if (this.mail && (0, a.isQQ)(this.mail))
return (0, a.getQQAvatar)(this.mail);
if (this.mail) {
var e =
"cravatar.cn" === this.gravatarCdn
? i["default"]
: o.sha256;
return "https://"
.concat(this.gravatarCdn, "/avatar/")
.concat(e((0, a.normalizeMail)(this.mail)), "?d=")
.concat(this.defaultGravatar);
}
return "";
},
},
methods: {
onClick: function () {
(this.$emit("click"),
this.link &&
(window.open(
(0, a.convertLink)(this.link),
"_blank",
).opener = null));
},
},
};
},
3572: function (e, t, n) {
"use strict";
var r = n(477);
(Object.defineProperty(t, "B", { value: !0 }), (t.A = void 0));
var i = r(n(479)),
o = r(n(4964)),
a = n(8129),
s = r(n(7454)),
u = r(n(4785)),
c = r(n(5438)),
l = r(n(2531)),
d = r(n(9396)),
f = r(n(6937)),
p = r(n(8974)),
h = r(n(7397)),
m = r(n(58)),
g = r(n(8443)),
v = r(n(740)),
_ = r(n(3793)),
y = r(n(7051)),
b = r(n(9039)),
k = r(n(3982)),
w = {
win: l["default"],
mac: d["default"],
ipad: d["default"],
iphone: d["default"],
ios: d["default"],
android: f["default"],
ubuntu: h["default"],
linux: p["default"],
},
E = {
edge: y["default"],
chrome: m["default"],
firefox: g["default"],
safari: v["default"],
explorer: _["default"],
ie: _["default"],
};
t.A = {
name: "tk-comment",
components: {
TkAction: s["default"],
TkAvatar: u["default"],
TkSubmit: c["default"],
},
data: function () {
return {
pid: "",
like: 0,
liked: !1,
likeLoading: !1,
isExpanded: !1,
hasExpand: !1,
isContentExpanded: !1,
hasContentExpand: !1,
isLogin: !1,
};
},
props: {
comment: Object,
replyId: String,
replying: Boolean,
config: Object,
},
computed: {
displayCreated: function () {
return (0, a.timeago)(this.comment.created);
},
jsonTimestamp: function () {
return new Date(this.comment.created).toJSON();
},
localeTime: function () {
return new Date(this.comment.created).toLocaleString();
},
iconOs: function () {
return this.getIconBy(this.comment.os, w);
},
iconBrowser: function () {
return this.getIconBy(this.comment.browser, E);
},
iconLocation: function () {
return k["default"];
},
showExpand: function () {
return this.hasExpand && !this.isExpanded;
},
showCollapse: function () {
return this.hasExpand && this.isExpanded;
},
showContentExpand: function () {
return this.hasContentExpand && !this.isContentExpanded;
},
showContentCollapse: function () {
return this.hasContentExpand && this.isContentExpanded;
},
convertedLink: function () {
return (0, a.convertLink)(this.comment.link);
},
},
methods: {
t: a.t,
getIconBy: function (e, t) {
var n = e.toLowerCase();
for (var r in t) if (-1 !== n.indexOf(r)) return t[r];
return b["default"];
},
showExpandIfNeed: function () {
this.comment.replies &&
this.comment.replies.length > 0 &&
this.$refs["tk-replies"] &&
(this.hasExpand =
this.$refs["tk-replies"].scrollHeight > 236);
},
showContentExpandIfNeed: function () {
this.hasContentExpand =
this.hasContentExpand ||
this.$refs["tk-content"].scrollHeight > 500;
},
showContentExpandIfNeedAfterImagesLoaded: function () {
var e = this;
this.$refs["tk-content"]
.querySelectorAll("img")
.forEach(function (t) {
t.onload = e.showContentExpandIfNeed;
});
},
scrollToComment: function () {
-1 !== window.location.hash.indexOf(this.comment.id) &&
(this.$refs["tk-comment"].scrollIntoView({
behavior: "smooth",
}),
this.$emit("expand"));
},
onLike: function () {
var e = this;
return (0, o["default"])(
i["default"].mark(function t() {
return i["default"].wrap(function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
if (!e.likeLoading) {
t.next = 2;
break;
}
return t.abrupt("return");
case 2:
return (
(e.likeLoading = !0),
(t.next = 5),
(0, a.call)(e.$tcb, "COMMENT_LIKE", {
id: e.comment.id,
})
);
case 5:
(e.liked ? e.like-- : e.like++,
(e.liked = !e.liked),
(e.likeLoading = !1));
case 8:
case "end":
return t.stop();
}
}, t);
}),
)();
},
onReply: function (e) {
((this.pid = e), this.$emit("reply", this.comment.id));
},
onReplyReply: function (e) {
((this.pid = e),
e
? this.$emit("reply", this.comment.id)
: this.$emit("reply", ""));
},
onCancel: function () {
((this.pid = ""), this.$emit("reply", ""));
},
onLoad: function () {
(this.comment.replies.length > 0 &&
this.$refs["tk-replies"].lastElementChild.scrollIntoView({
behavior: "smooth",
block: "center",
}),
(this.pid = ""),
this.$emit("reply", ""),
this.$emit("load"),
this.onExpand());
},
onExpand: function () {
this.isExpanded = !0;
},
onCollapse: function () {
this.isExpanded = !1;
},
onContentExpand: function () {
this.isContentExpanded = !0;
},
onContentCollapse: function () {
this.isContentExpanded = !1;
},
checkAuth: function () {
var e = this;
return (0, o["default"])(
i["default"].mark(function t() {
var n;
return i["default"].wrap(function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
if (!e.$tcb) {
t.next = 7;
break;
}
return (
(t.next = 3),
e.$tcb.auth.getCurrenUser()
);
case 3:
((n = t.sent),
(e.isLogin = "CUSTOM" === n.loginType),
(t.next = 8));
break;
case 7:
e.isLogin =
e.$twikoo.serverConfig &&
e.$twikoo.serverConfig.IS_ADMIN;
case 8:
case "end":
return t.stop();
}
}, t);
}),
)();
},
handleSpam: function (e, t) {
(t.preventDefault(), this.setComment({ isSpam: e }));
},
handleTop: function (e, t) {
(t.preventDefault(), this.setComment({ top: e }));
},
popupLightbox: function (e) {
if ("true" === this.$twikoo.serverConfig.LIGHTBOX) {
var t = e.target;
if (
"IMG" === t.tagName &&
!t.classList.contains("tk-owo-emotion")
) {
var n = document.createElement("div");
n.className = "tk-lightbox";
var r = document.createElement("img");
((r.className = "tk-lightbox-image"),
(r.src = t.src),
n.appendChild(r),
n.addEventListener("click", function () {
document.body.removeChild(n);
}),
document.body.appendChild(n));
}
}
},
setComment: function (e) {
var t = this;
return (0, o["default"])(
i["default"].mark(function n() {
return i["default"].wrap(function (n) {
for (;;)
switch ((n.prev = n.next)) {
case 0:
return (
(t.loading = !0),
(n.next = 3),
(0, a.call)(t.$tcb, "COMMENT_SET_FOR_ADMIN", {
id: t.comment.id,
set: e,
})
);
case 3:
((t.loading = !1), t.$emit("load"));
case 5:
case "end":
return n.stop();
}
}, n);
}),
)();
},
},
mounted: function () {
var e = this;
(this.$nextTick(this.showContentExpandIfNeed),
this.$nextTick(this.showContentExpandIfNeedAfterImagesLoaded),
this.$nextTick(this.showExpandIfNeed),
this.$nextTick(this.scrollToComment),
this.$nextTick(function () {
((0, a.renderLinks)(e.$refs.comment),
(0, a.renderMath)(e.$refs.comment, e.$twikoo.katex));
}),
this.checkAuth());
},
watch: {
"comment.like": {
handler: function (e) {
((this.like = this.comment.like),
(this.liked = this.comment.liked));
},
immediate: !0,
},
"config.HIGHLIGHT": {
handler: function (e) {
var t = this;
"true" === e &&
this.$nextTick(function () {
(0, a.renderCode)(
t.$refs.comment,
t.config.HIGHLIGHT_THEME,
t.config.HIGHLIGHT_PLUGIN,
);
});
},
immediate: !0,
},
},
};
},
4333: function (e, t, n) {
"use strict";
var r = n(477);
(Object.defineProperty(t, "B", { value: !0 }), (t.A = void 0));
var i = r(n(479)),
o = r(n(4964)),
a = n(8129),
s = r(n(5438)),
u = r(n(9078)),
c = r(n(504)),
l = r(n(9966)),
d = r(n(4478));
t.A = {
components: { TkSubmit: s["default"], TkComment: u["default"] },
props: { showAdminEntry: Boolean },
data: function () {
return {
loading: !0,
loadingMore: !1,
errorMessage: "",
config: {},
comments: [],
showExpand: !0,
count: 0,
replyId: "",
iconSetting: c["default"],
iconRefresh: l["default"],
};
},
methods: {
t: a.t,
initConfig: function () {
var e = this;
return (0, o["default"])(
i["default"].mark(function t() {
var n;
return i["default"].wrap(function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(t.next = 2),
(0, a.call)(e.$tcb, "GET_CONFIG")
);
case 2:
(n = t.sent) &&
n.result &&
n.result.config &&
((e.config = n.result.config),
(d["default"].prototype.$twikoo.serverConfig =
n.result.config));
case 4:
case "end":
return t.stop();
}
}, t);
}),
)();
},
initComments: function () {
var e = this;
return (0, o["default"])(
i["default"].mark(function t() {
var n;
return i["default"].wrap(function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
return (
(e.loading = !0),
(n = (0, a.getUrl)(e.$twikoo.path)),
(t.next = 4),
e.getComments({ url: n })
);
case 4:
e.loading = !1;
case 5:
case "end":
return t.stop();
}
}, t);
}),
)();
},
refresh: function () {
((this.comments = []), this.initComments());
},
onExpand: function () {
var e = this;
return (0, o["default"])(
i["default"].mark(function t() {
var n, r;
return i["default"].wrap(function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
if (!e.loadingMore) {
t.next = 2;
break;
}
return t.abrupt("return");
case 2:
return (
(e.loadingMore = !0),
(n = (0, a.getUrl)(e.$twikoo.path)),
(r = e.comments
.filter(function (e) {
return !e.top;
})
.map(function (e) {
return e.created;
})
.sort(function (e, t) {
return e - t;
})[0]),
(t.next = 7),
e.getComments({ url: n, before: r })
);
case 7:
e.loadingMore = !1;
case 8:
case "end":
return t.stop();
}
}, t);
}),
)();
},
onCommentLoaded: function () {
"function" == typeof this.$twikoo.onCommentLoaded &&
this.$twikoo.onCommentLoaded();
},
getComments: function (e) {
var t = this;
return (0, o["default"])(
i["default"].mark(function n() {
var r;
return i["default"].wrap(
function (n) {
for (;;)
switch ((n.prev = n.next)) {
case 0:
return (
(n.prev = 0),
(n.next = 3),
(0, a.call)(t.$tcb, "COMMENT_GET", e)
);
case 3:
((r = n.sent) &&
r.result &&
r.result.data &&
((t.comments = e.before
? t.comments.concat(r.result.data)
: r.result.data),
(t.showExpand = r.result.more),
(t.count =
r.result.count || t.comments.length || 0),
t.$nextTick(t.onCommentLoaded)),
(n.next = 10));
break;
case 7:
((n.prev = 7),
(n.t0 = n["catch"](0)),
(t.errorMessage = n.t0.message));
case 10:
case "end":
return n.stop();
}
},
n,
null,
[[0, 7]],
);
}),
)();
},
onReply: function (e) {
this.replyId = e;
},
openAdmin: function () {
this.$emit("admin");
},
},
mounted: function () {
(this.initConfig(), this.initComments());
},
};
},
418: function (e, t, n) {
"use strict";
var r = n(477);
(Object.defineProperty(t, "B", { value: !0 }), (t.A = void 0));
var i = r(n(479)),
o = r(n(4964)),
a = n(2199),
s = n(8129);
t.A = {
data: function () {
return { version: a.version, counter: {} };
},
methods: {
getCounter: function () {
var e = this;
return (0, o["default"])(
i["default"].mark(function t() {
var n, r, o, a;
return i["default"].wrap(function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
if (
(n = document.getElementById("twikoo_visitors"))
) {
t.next = 3;
break;
}
return t.abrupt("return");
case 3:
if (
-1 ===
["localhost", "127.0.0.1", "0.0.0.0"].indexOf(
window.location.hostname,
)
) {
t.next = 5;
break;
}
return t.abrupt("return");
case 5:
return (
(r = (0, s.getUrl)(e.$twikoo.path)),
(o = (0, s.getHref)(e.$twikoo.href)),
(t.next = 9),
(0, s.call)(e.$tcb, "COUNTER_GET", {
url: r,
href: o,
title: document.title,
})
);
case 9:
((a = t.sent),
(e.counter = a.result),
(e.counter.time || 0 === e.counter.time) &&
(n.innerHTML = e.counter.time));
case 12:
case "end":
return t.stop();
}
}, t);
}),
)();
},
},
mounted: function () {
this.getCounter();
},
};
},
2362: function (e, t, n) {
"use strict";
(Object.defineProperty(t, "B", { value: !0 }), (t.A = void 0));
var r = n(1085),
i = n(8129),
o =
/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
t.A = {
props: {
nick: String,
mail: String,
link: String,
config: Object,
},
data: function () {
return {
metaInputs: [
{
key: "nick",
locale: (0, i.t)("META_INPUT_NICK"),
name: "nick",
type: "text",
},
{
key: "mail",
locale: (0, i.t)("META_INPUT_MAIL"),
name: "mail",
type: "email",
},
{
key: "link",
locale: (0, i.t)("META_INPUT_LINK"),
name: "link",
type: "text",
},
],
metaData: { nick: "", mail: "", link: "" },
};
},
computed: {
displayedFields: function () {
var e = this.config.DISPLAYED_FIELDS;
return {
nick: !e || -1 !== e.indexOf("nick"),
mail: !e || -1 !== e.indexOf("mail"),
link: !e || -1 !== e.indexOf("link"),
};
},
displayedInputs: function () {
var e = this;
return this.metaInputs.filter(function (t) {
return !!e.displayedFields[t.key];
});
},
requiredFields: function () {
var e = this.config.REQUIRED_FIELDS;
return {
nick: !e || -1 !== e.indexOf("nick"),
mail: !e || -1 !== e.indexOf("mail"),
link: !!e && -1 !== e.indexOf("link"),
};
},
},
methods: {
t: i.t,
initMeta: function () {
var e = localStorage.getItem("twikoo");
if (e) {
var t = JSON.parse(e);
((this.metaData.nick = t.nick),
(this.metaData.mail = t.mail),
(this.metaData.link = t.link));
}
this.updateMeta();
},
updateMeta: function () {
(localStorage.setItem(
"twikoo",
JSON.stringify(this.metaData),
),
this.$emit("update", {
meta: this.metaData,
valid: this.checkValid(),
}));
},
checkValid: function () {
var e = o.test(this.metaData.mail);
return (
(this.metaData.nick || !this.requiredFields.nick) &&
(e || !this.requiredFields.mail) &&
(this.metaData.link || !this.requiredFields.link)
);
},
checkQQ: function () {
if ((0, i.isQQ)(this.metaData.nick)) {
var e = this.metaData.nick.replace(/@qq.com/gi, ""),
t = "".concat(e, "@qq.com");
((this.metaData.mail = t), this.getQQNick(e));
}
},
getQQNick: function (e) {
var t = this,
n = "https://api.qjqq.cn/api/qqinfo?qq=".concat(e),
r = new XMLHttpRequest();
((r.onreadystatechange = function () {
if (4 === r.readyState && 200 === r.status) {
var e = JSON.parse(r.responseText);
((t.metaData.nick = e.name), t.updateMeta());
}
}),
r.open("GET", n),
r.send());
},
checkAdminCrypt: function () {
var e = this.$root.$children[0],
t =
!this.config.HIDE_ADMIN_CRYPT ||
this.config.HIDE_ADMIN_CRYPT === this.metaData.nick;
e.onShowAdminEntry(t);
},
onMetaChange: function () {
(this.checkQQ(), this.updateMeta(), this.checkAdminCrypt());
},
},
watch: {
nick: function (e) {
this.metaData.nick = e;
},
mail: function (e) {
this.metaData.mail = e;
},
link: function (e) {
this.metaData.link = e;
},
requiredFields: {
handler: function (e, t) {
this.$emit("update", {
meta: this.metaData,
valid: this.checkValid(),
});
},
deep: !0,
},
"config.VERSION": function () {
this.checkAdminCrypt();
},
},
mounted: function () {
(r.app.$on("initMeta", this.initMeta), this.initMeta());
},
};
},
9171: function (e, t, n) {
"use strict";
(Object.defineProperty(t, "B", { value: !0 }), (t.A = void 0));
var r = n(8129);
t.A = {
props: {
pageSize: { type: Number, default: 10 },
total: { type: Number, default: 0 },
},
data: function () {
return {
currentPage: 1,
userInput: 0,
userPageSize: 0,
pagers: [],
};
},
computed: {
pageCount: function () {
return Math.ceil(this.total / this.pageSize);
},
},
methods: {
t: r.t,
generatePager: function () {
for (var e = [], t = 1; t <= this.pageCount; t++)
Math.abs(this.currentPage - t) < 3 ||
1 === t ||
t === this.pageCount
? e.push({ title: "".concat(t), page: t })
: Math.abs(this.currentPage - t) < 4 &&
e.push({ title: "...", page: t });
this.pagers = e;
},
currentChange: function (e) {
((this.currentPage = parseInt(e)),
this.currentPage > this.pageCount &&
(this.currentPage = this.pageCount),
(this.userInput = 0),
this.$emit("current-change", this.currentPage),
this.generatePager());
},
pageSizeChamge: function (e) {
((this.userPageSize = 0),
this.$emit("page-size-change", parseInt(e)));
},
handleInput: function (e) {
this.userInput = parseInt(e);
},
handleInputPageSize: function (e) {
this.userPageSize = parseInt(e);
},
},
watch: {
total: {
handler: function () {
this.generatePager();
},
immediate: !0,
},
pageSize: {
handler: function () {
this.generatePager();
},
},
},
};
},
147: function (e, t, n) {
"use strict";
var r = n(477);
(Object.defineProperty(t, "B", { value: !0 }), (t.A = void 0));
var i = r(n(479)),
o = r(n(4964)),
a = r(n(1423)),
s = r(n(6639)),
u = r(n(5171)),
c = r(n(2573)),
l = r(n(4785)),
d = r(n(3415)),
f = n(8129),
p = r(n(1628)),
h = [
"apng",
"bmp",
"gif",
"jpeg",
"jpg",
"png",
"svg",
"tif",
"tiff",
"webp",
];
t.A = {
components: { TkAvatar: l["default"], TkMetaInput: d["default"] },
directives: { Clickoutside: c["default"] },
props: { replyId: String, pid: String, config: Object },
data: function () {
return {
isSending: !1,
isPreviewing: !1,
isMetaValid: !1,
errorMessage: "",
owo: null,
comment: "",
commentHtml: "",
nick: "",
mail: "",
link: "",
turnstileLoad: null,
iconMarkdown: a["default"],
iconEmotion: s["default"],
iconImage: u["default"],
};
},
computed: {
canSend: function () {
return (
!this.isSending &&
!!this.isMetaValid &&
!!this.comment.trim()
);
},
textarea: function () {
return this.$refs.textarea
? this.$refs.textarea.$refs.textarea
: null;
},
commentPlaceholder: function () {
var e =
this.$twikoo.placeholder ||
this.config.COMMENT_PLACEHOLDER ||
"";
return (e = e.replace(/
/g, "\n"));
},
maxLength: function () {
var e = parseInt(this.config.LIMIT_LENGTH);
return (Number.isNaN(e) && (e = 500), e > 0 ? e : null);
},
},
methods: {
t: f.t,
initDraft: function () {
var e = localStorage.getItem("twikoo-draft");
!this.comment && e && (this.comment = e);
},
saveDraft: function () {
localStorage.setItem("twikoo-draft", this.comment);
},
initOwo: function () {
var e = this;
return (0, o["default"])(
i["default"].mark(function t() {
var n;
return i["default"].wrap(function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
if ("true" !== e.config.SHOW_EMOTION) {
t.next = 6;
break;
}
return (
(t.next = 3),
(0, f.initOwoEmotions)(
e.config.EMOTION_CDN ||
"https://owo.imaegoo.com/owo.json",
)
);
case 3:
((n = t.sent),
(e.owo = new p["default"]({
logo: s["default"],
container: e.$refs.owo,
target: e.textarea,
odata: n,
position: "down",
maxHeight: "250px",
})),
f.marked.setOptions({
odata: (0, f.initMarkedOwo)(n),
}));
case 6:
case "end":
return t.stop();
}
}, t);
}),
)();
},
initTurnstile: function () {
var e = this;
this.config.TURNSTILE_SITE_KEY &&
(window.turnstile
? (this.turnstileLoad = Promise.resolve())
: (this.turnstileLoad = new Promise(function (t, n) {
var r = document.createElement("script");
((r.src =
"https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit"),
(r.onload = t),
(r.onerror = n),
e.$refs["turnstile-container"].appendChild(r));
})));
},
getTurnstileToken: function () {
var e = this;
return new Promise(function (t, n) {
e.turnstileLoad.then(function () {
var r = window.turnstile.render(e.$refs.turnstile, {
sitekey: e.config.TURNSTILE_SITE_KEY,
callback: function (e) {
(t(e),
setTimeout(function () {
window.turnstile.remove(r);
}, 5e3));
},
"error-callback": n,
});
});
});
},
onMetaUpdate: function (e) {
((this.nick = e.meta.nick),
(this.mail = e.meta.mail),
(this.link = e.meta.link),
(this.isMetaValid = e.valid));
},
cancel: function () {
this.$emit("cancel");
},
onCommentInput: function () {
(this.saveDraft(), this.updatePreview());
},
preview: function () {
((this.isPreviewing = !this.isPreviewing),
this.updatePreview());
},
updatePreview: function () {
var e = this;
this.isPreviewing &&
((this.commentHtml = (0, f.marked)(this.comment)),
this.$nextTick(function () {
((0, f.renderLinks)(e.$refs["comment-preview"]),
(0, f.renderMath)(
e.$refs["comment-preview"],
e.$twikoo.katex,
),
"true" === e.config.HIGHLIGHT &&
(0, f.renderCode)(
e.$refs["comment-preview"],
e.config.HIGHLIGHT_THEME,
e.config.HIGHLIGHT_PLUGIN,
));
}));
},
send: function () {
var e = this;
return (0, o["default"])(
i["default"].mark(function t() {
var n, r;
return i["default"].wrap(
function (t) {
for (;;)
switch ((t.prev = t.next)) {
case 0:
if (
((e.isSending = !0),
(t.prev = 1),
!e.comment.match(
new RegExp(
"!\\[".concat(
(0, f.t)("IMAGE_UPLOAD_PLACEHOLDER"),
".+\\]\\(\\)",
),
),
))
) {
t.next = 4;
break;
}
throw new Error(
(0, f.t)("IMAGE_UPLOAD_PLEASE_WAIT"),
);
case 4:
return (
(t.t0 = e.nick),
(t.t1 = e.mail),
(t.t2 = e.link),
(t.next = 9),
(0, f.getUserAgent)()
);
case 9:
if (
((t.t3 = t.sent),
(t.t4 = (0, f.getUrl)(e.$twikoo.path)),
(t.t5 = (0, f.getHref)(e.$twikoo.href)),
(t.t6 = (0, f.marked)(e.comment)),
(t.t7 = e.pid ? e.pid : e.replyId),
(t.t8 = e.replyId),
(n = {
nick: t.t0,
mail: t.t1,
link: t.t2,
ua: t.t3,
url: t.t4,
href: t.t5,
comment: t.t6,
pid: t.t7,
rid: t.t8,
}),
!e.config.TURNSTILE_SITE_KEY)
) {
t.next = 20;
break;
}
return ((t.next = 19), e.getTurnstileToken());
case 19:
n.turnstileToken = t.sent;
case 20:
return (
(t.next = 22),
(0, f.call)(e.$tcb, "COMMENT_SUBMIT", n)
);
case 22:
if (
!((r = t.sent) && r.result && r.result.id)
) {
t.next = 30;
break;
}
((e.comment = ""),
(e.errorMessage = ""),
e.$emit("load"),
e.saveDraft(),
(t.next = 31));
break;
case 30:
throw new Error(r.result.message);
case 31:
t.next = 37;
break;
case 33:
((t.prev = 33),
(t.t9 = t["catch"](1)),
f.logger.error("评论失败", t.t9),
(e.errorMessage = ""
.concat((0, f.t)("COMMENT_FAILED"), ": ")
.concat(t.t9 && t.t9.message)));
case 37:
return (
(t.prev = 37),
(e.isSending = !1),
t.finish(37)
);
case 40:
case "end":
return t.stop();
}
},
t,
null,
[[1, 33, 37, 40]],
);
}),
)();
},
addEventListener: function () {
this.textarea &&
this.textarea.addEventListener("paste", this.onPaste);
},
onBgImgChange: function () {
this.config.COMMENT_BG_IMG &&
this.textarea &&
(this.textarea.style["background-image"] = 'url("'.concat(
this.config.COMMENT_BG_IMG,
'")',
));
},
onEnterKeyUp: function (e) {
(e.ctrlKey || e.metaKey) &&
this.canSend &&
(this.send(), e.preventDefault());
},
closeOwo: function () {
this.owo &&
this.owo.container.classList.contains("OwO-open") &&
this.owo.toggle();
},
openSelectImage: function () {
this.$refs.inputFile.click();
},
onSelectImage: function () {
var e = this.$refs.inputFile.files[0];
this.parseAndUploadPhoto(e);
},
onPaste: function (e) {
var t;
e.clipboardData &&
(e.clipboardData.files[0]
? (t = e.clipboardData.files[0])
: e.clipboardData.items[0] &&
e.clipboardData.items[0].getAsFile() &&
(t = e.clipboardData.items[0].getAsFile()),
this.parseAndUploadPhoto(t));
},
parseAndUploadPhoto: function (e) {
if (e && "true" === this.config.SHOW_IMAGE) {
var t = e.name.split("."),
n = t.length > 1 ? t.pop() : "";
if (-1 !== h.indexOf(n.toLowerCase())) {
var r = this.getUserId(),
i = "".concat(Date.now(), "-").concat(r),
o = t.join(".");
this.paste(this.getImagePlaceholder(i, n));
var a = this.config.IMAGE_CDN;
!this.$tcb || (a && "qcloud" !== a)
? a
? this.uploadPhotoToThirdParty(i, o, n, e)
: this.uploadFailed(
i,
n,
(0, f.t)("IMAGE_UPLOAD_FAILED_NO_CONF"),
)
: this.uploadPhotoToQcloud(i, o, n, e);
}
}
},
getUserId: function () {
return this.$tcb
? this.$tcb.auth.currentUser.uid
: localStorage.getItem("twikoo-access-token");
},
uploadPhotoToQcloud: function (e, t, n, r) {
var a = this;
return (0, o["default"])(
i["default"].mark(function s() {
var o, u, c;
return i["default"].wrap(
function (i) {
for (;;)
switch ((i.prev = i.next)) {
case 0:
return (
(i.prev = 0),
(i.next = 3),
a.$tcb.app.uploadFile({
cloudPath: "tk-img/"
.concat(e, ".")
.concat(n),
filePath: r,
})
);
case 3:
if (!(o = i.sent).fileID) {
i.next = 10;
break;
}
return (
(i.next = 7),
a.$tcb.app.getTempFileURL({
fileList: [o.fileID],
})
);
case 7:
((u = i.sent),
(c = u.fileList[0].tempFileURL),
a.uploadCompleted(e, t, n, c));
case 10:
i.next = 16;
break;
case 12:
((i.prev = 12),
(i.t0 = i["catch"](0)),
console.error(i.t0),
a.uploadFailed(e, n, i.t0.message));
case 16:
case "end":
return i.stop();
}
},
s,
null,
[[0, 12]],
);
}),
)();
},
uploadPhotoToThirdParty: function (e, t, n, r) {
var a = this;
return (0, o["default"])(
i["default"].mark(function s() {
var o, u, c;
return i["default"].wrap(
function (i) {
for (;;)
switch ((i.prev = i.next)) {
case 0:
return (
(i.prev = 0),
(i.t0 = f.call),
(i.t1 = a.$tcb),
(i.t2 = "".concat(e, ".").concat(n)),
(i.next = 6),
(0, f.blobToDataURL)(r)
);
case 6:
return (
(i.t3 = i.sent),
(i.t4 = { fileName: i.t2, photo: i.t3 }),
(i.next = 10),
(0, i.t0)(i.t1, "UPLOAD_IMAGE", i.t4)
);
case 10:
((u = i.sent),
(c = u.result).data
? a.uploadCompleted(e, t, n, c.data.url)
: 1040 === c.code &&
c.err &&
(o = c.err.match(
/this image exists at: (http[^ ]+)/,
))
? (console.warn(c),
a.uploadCompleted(e, t, n, o[1]))
: (console.error(c),
a.uploadFailed(e, n, c.err)),
(i.next = 19));
break;
case 15:
((i.prev = 15),
(i.t5 = i["catch"](0)),
console.error(i.t5),
a.uploadFailed(e, n, i.t5.message));
case 19:
case "end":
return i.stop();
}
},
s,
null,
[[0, 15]],
);
}),
)();
},
uploadCompleted: function (e, t, n, r) {
((t = t.replace(/[[\]]/g, "_")),
(this.comment = this.comment.replace(
this.getImagePlaceholder(e, n),
".concat(r, ")"),
)),
(this.$refs.inputFile.value = ""));
},
uploadFailed: function (e, t, n) {
((this.comment = this.comment.replace(
this.getImagePlaceholder(e, t),
"_"
.concat((0, f.t)("IMAGE_UPLOAD_FAILED"), ": ")
.concat(n, "_"),
)),
(this.$refs.inputFile.value = ""));
},
paste: function (e) {
if (document.selection)
document.selection.createRange().text = e;
else if (
this.textarea.selectionStart ||
0 === this.textarea.selectionStart
) {
var t = this.textarea.selectionStart,
n = this.textarea.selectionEnd;
((this.comment =
this.comment.substring(0, t) +
e +
this.comment.substring(n, this.comment.length)),
(this.textarea.selectionStart = t + e.length),
(this.textarea.selectionEnd = t + e.length));
} else this.comment += e;
},
getImagePlaceholder: function (e, t) {
return "!["
.concat((0, f.t)("IMAGE_UPLOAD_PLACEHOLDER"), " ")
.concat(e, ".")
.concat(t, "]()");
},
},
mounted: function () {
(this.pid &&
this.$refs["tk-submit"].scrollIntoView({
behavior: "instant",
block: "center",
}),
this.initDraft(),
this.initOwo(),
this.addEventListener(),
this.onBgImgChange(),
this.initTurnstile());
},
watch: {
"config.SHOW_EMOTION": function () {
this.initOwo();
},
"config.COMMENT_BG_IMG": function () {
this.onBgImgChange();
},
"config.TURNSTILE_SITE_KEY": function () {
this.initTurnstile();
},
},
};
},
1573: function (e, t) {
"use strict";
((t.Yp = t.XX = void 0),
(t.XX = function () {
var e = this,
t = e._self._c;
return t(
"div",
{ staticClass: "twikoo", attrs: { id: "twikoo" } },
[
t("tk-comments", {
attrs: { "show-admin-entry": e.showAdminEntry },
on: {
admin: function (t) {
e.showAdmin = !0;
},
},
}),
e._v(" "),
t("tk-footer"),
e._v(" "),
t("tk-admin", {
attrs: { show: e.showAdmin },
on: {
close: function (t) {
e.showAdmin = !1;
},
},
}),
],
1,
);
}),
(t.Yp = []));
},
8114: function (e, t) {
"use strict";
((t.Yp = t.XX = void 0),
(t.XX = function () {
var e = this,
t = e._self._c;
return t("div", { staticClass: "tk-action" }, [
t(
"a",
{
staticClass: "tk-action-link",
class: { "tk-liked": e.liked },
attrs: { href: "#" },
on: { click: e.onLike },
},
[
t("span", {
staticClass: "tk-action-icon",
domProps: { innerHTML: e._s(e.iconLike) },
}),
e._v(" "),
t("span", {
staticClass: "tk-action-icon tk-action-icon-solid",
domProps: { innerHTML: e._s(e.iconLikeSolid) },
}),
e._v(" "),
t("span", { staticClass: "tk-action-count" }, [
e._v(e._s(e.likeCountStr)),
]),
],
),
e._v(" "),
t(
"a",
{
staticClass: "tk-action-link",
attrs: { href: "#" },
on: { click: e.onReply },
},
[
t("span", {
staticClass: "tk-action-icon",
domProps: { innerHTML: e._s(e.iconComment) },
}),
e._v(" "),
t("span", {
staticClass: "tk-action-icon tk-action-icon-solid",
domProps: { innerHTML: e._s(e.iconCommentSolid) },
}),
e._v(" "),
t("span", { staticClass: "tk-action-count" }, [
e._v(e._s(e.repliesCountStr)),
]),
],
),
]);
}),
(t.Yp = []));
},
4576: function (e, t) {
"use strict";
((t.Yp = t.XX = void 0),
(t.XX = function () {
var e = this,
t = e._self._c;
return t("div", { staticClass: "tk-admin-container" }, [
t(
"div",
{
directives: [
{
name: "loading",
rawName: "v-loading",
value: e.loading,
expression: "loading",
},
],
staticClass: "tk-admin",
class: { __show: e.show },
},
[
t("a", {
staticClass: "tk-admin-close",
attrs: { href: "#" },
domProps: { innerHTML: e._s(e.iconClose) },
on: { click: e.onClose },
}),
e._v(" "),
e.needUpdate
? t("div", { staticClass: "tk-login-title" }, [
t("div", [e._v(e._s(e.t("ADMIN_NEED_UPDATE")))]),
e._v(" "),
t(
"a",
{
attrs: {
href: "https://twikoo.js.org/update.html",
target: "_blank",
},
},
[e._v("https://twikoo.js.org/update.html")],
),
])
: e._e(),
e._v(" "),
e.needUpdate
? e._e()
: t("div", [
!e.isLogin && e.isSetPassword
? t("div", { staticClass: "tk-login" }, [
t("div", { staticClass: "tk-login-title" }, [
e._v(e._s(e.t("ADMIN_LOGIN_TITLE"))),
]),
e._v(" "),
t(
"form",
[
t("input", { attrs: { type: "hidden" } }),
e._v(" "),
t(
"el-input",
{
ref: "focusme",
staticClass: "tk-password",
attrs: {
placeholder: e.t(
"ADMIN_PASSWORD_PLACEHOLDER",
),
"show-password": "",
},
nativeOn: {
keyup: function (t) {
return !t.type.indexOf("key") &&
e._k(
t.keyCode,
"enter",
13,
t.key,
"Enter",
)
? null
: e.onLogin.apply(
null,
arguments,
);
},
},
model: {
value: e.password,
callback: function (t) {
e.password = t;
},
expression: "password",
},
},
[
t("template", { slot: "prepend" }, [
e._v(e._s(e.t("ADMIN_PASSWORD"))),
]),
e._v(" "),
t(
"el-button",
{
attrs: { slot: "append" },
on: { click: e.onLogin },
slot: "append",
},
[e._v(e._s(e.t("ADMIN_LOGIN")))],
),
],
2,
),
],
1,
),
e._v(" "),
e.loginErrorMessage
? t(
"div",
{ staticClass: "tk-login-msg" },
[
e._v(
"\n " +
e._s(e.loginErrorMessage) +
"\n ",
),
t(
"a",
{
attrs: {
href: "https://twikoo.js.org/faq.html",
rel: "noopener noreferrer",
target: "_blank",
},
},
[e._v(e._s(e.t("ADMIN_FORGOT")))],
),
],
)
: e._e(),
])
: e._e(),
e._v(" "),
e.isLogin || e.isSetPassword
? e._e()
: t(
"div",
{ staticClass: "tk-regist" },
[
t(
"div",
{ staticClass: "tk-login-title" },
[e._v(e._s(e.t("ADMIN_LOGIN_TITLE")))],
),
e._v(" "),
t(
"form",
[
e.isSetCredentials
? e._e()
: t(
"el-input",
{
ref: "focusme",
staticClass: "tk-password",
attrs: {
placeholder: e.t(
"ADMIN_CREDENTIALS_PLACEHOLDER",
),
},
model: {
value: e.credentials,
callback: function (t) {
e.credentials = t;
},
expression: "credentials",
},
},
[
t(
"template",
{ slot: "prepend" },
[
e._v(
e._s(
e.t(
"ADMIN_CREDENTIALS",
),
),
),
],
),
],
2,
),
e._v(" "),
t(
"el-input",
{
staticClass: "tk-password",
attrs: {
placeholder: e.t(
"ADMIN_SET_PASSWORD_PLACEHOLDER",
),
"show-password": "",
},
model: {
value: e.password,
callback: function (t) {
e.password = t;
},
expression: "password",
},
},
[
t("template", { slot: "prepend" }, [
e._v(
e._s(e.t("ADMIN_SET_PASSWORD")),
),
]),
],
2,
),
e._v(" "),
t(
"el-input",
{
staticClass: "tk-password",
attrs: {
placeholder: e.t(
"ADMIN_SET_PASSWORD_CONFIRM_PLACEHOLDER",
),
"show-password": "",
},
model: {
value: e.passwordConfirm,
callback: function (t) {
e.passwordConfirm = t;
},
expression: "passwordConfirm",
},
},
[
t("template", { slot: "prepend" }, [
e._v(
e._s(
e.t(
"ADMIN_SET_PASSWORD_CONFIRM",
),
),
),
]),
],
2,
),
],
1,
),
e._v(" "),
t(
"el-button",
{
staticClass: "tk-regist-button",
attrs: { disabled: !e.canRegist },
on: { click: e.onRegist },
},
[e._v(e._s(e.t("ADMIN_REGIST")))],
),
e._v(" "),
e.loginErrorMessage
? t(
"div",
{ staticClass: "tk-login-msg" },
[e._v(e._s(e.loginErrorMessage))],
)
: e._e(),
e._v(" "),
e.isSetCredentials
? e._e()
: t(
"div",
{ staticClass: "tk-login-msg" },
[
t(
"a",
{
attrs: {
href: "https://twikoo.js.org/faq.html",
rel: "noopener noreferrer",
target: "_blank",
},
},
[
e._v(
e._s(
e.t(
"ADMIN_CREDENTIALS_FAQ",
),
),
),
],
),
],
),
],
1,
),
e._v(" "),
e.isLogin
? t(
"div",
{ staticClass: "tk-panel" },
[
t(
"div",
{ staticClass: "tk-panel-title" },
[
t("div", [
e._v(e._s(e.t("ADMIN_TITLE"))),
]),
e._v(" "),
t(
"a",
{
staticClass: "tk-panel-logout",
attrs: { href: "#" },
on: { click: e.onLogout },
},
[e._v(e._s(e.t("ADMIN_LOGOUT")))],
),
],
),
e._v(" "),
t("div", { staticClass: "tk-tabs" }, [
t(
"div",
{
staticClass: "tk-tab",
class: {
__active:
"comment" === e.activeTabName,
},
on: {
click: function (t) {
e.activeTabName = "comment";
},
},
},
[e._v(e._s(e.t("ADMIN_COMMENT")))],
),
e._v(" "),
t(
"div",
{
staticClass: "tk-tab",
class: {
__active:
"config" === e.activeTabName,
},
on: {
click: function (t) {
e.activeTabName = "config";
},
},
},
[e._v(e._s(e.t("ADMIN_CONFIG")))],
),
e._v(" "),
t(
"div",
{
staticClass: "tk-tab",
class: {
__active:
"import" === e.activeTabName,
},
on: {
click: function (t) {
e.activeTabName = "import";
},
},
},
[e._v(e._s(e.t("ADMIN_IMPORT")))],
),
e._v(" "),
t(
"div",
{
staticClass: "tk-tab",
class: {
__active:
"export" === e.activeTabName,
},
on: {
click: function (t) {
e.activeTabName = "export";
},
},
},
[e._v(e._s(e.t("ADMIN_EXPORT")))],
),
]),
e._v(" "),
t("tk-admin-comment", {
directives: [
{
name: "show",
rawName: "v-show",
value: "comment" === e.activeTabName,
expression:
"activeTabName === 'comment'",
},
],
}),
e._v(" "),
t("tk-admin-config", {
directives: [
{
name: "show",
rawName: "v-show",
value: "config" === e.activeTabName,
expression:
"activeTabName === 'config'",
},
],
}),
e._v(" "),
t("tk-admin-import", {
directives: [
{
name: "show",
rawName: "v-show",
value: "import" === e.activeTabName,
expression:
"activeTabName === 'import'",
},
],
}),
e._v(" "),
t("tk-admin-export", {
directives: [
{
name: "show",
rawName: "v-show",
value: "export" === e.activeTabName,
expression:
"activeTabName === 'export'",
},
],
}),
],
1,
)
: e._e(),
]),
],
),
]);
}),
(t.Yp = []));
},
3227: function (e, t) {
"use strict";
((t.Yp = t.XX = void 0),
(t.XX = function () {
var e = this,
t = e._self._c;
return t(
"div",
{
directives: [
{
name: "loading",
rawName: "v-loading",
value: e.loading,
expression: "loading",
},
],
staticClass: "tk-admin-comment",
},
[
e.clientVersion !== e.serverVersion
? t("div", { staticClass: "tk-admin-warn" }, [
t("span", [
e._v(
e._s(e.t("ADMIN_CLIENT_VERSION")) +
e._s(e.clientVersion) +
",",
),
]),
e._v(" "),
t("span", [
e._v(
e._s(e.t("ADMIN_SERVER_VERSION")) +
e._s(e.serverVersion) +
",",
),
]),
e._v(" "),
e._m(0),
])
: e._e(),
e._v(" "),
t(
"div",
{ staticClass: "tk-admin-comment-filter" },
[
t("el-input", {
staticClass: "tk-admin-comment-filter-keyword",
attrs: {
size: "small",
placeholder: e.t(
"ADMIN_COMMENT_SEARCH_PLACEHOLDER",
),
},
nativeOn: {
keyup: function (t) {
return !t.type.indexOf("key") &&
e._k(t.keyCode, "enter", 13, t.key, "Enter")
? null
: e.getComments.apply(null, arguments);
},
},
model: {
value: e.filter.keyword,
callback: function (t) {
e.$set(e.filter, "keyword", t);
},
expression: "filter.keyword",
},
}),
e._v(" "),
t(
"select",
{
directives: [
{
name: "model",
rawName: "v-model",
value: e.filter.type,
expression: "filter.type",
},
],
staticClass: "tk-admin-comment-filter-type",
on: {
change: function (t) {
var n = Array.prototype.filter
.call(t.target.options, function (e) {
return e.selected;
})
.map(function (e) {
return "_value" in e ? e._value : e.value;
});
e.$set(
e.filter,
"type",
t.target.multiple ? n : n[0],
);
},
},
},
[
t("option", { attrs: { value: "" } }, [
e._v(e._s(e.t("ADMIN_COMMENT_FILTER_ALL"))),
]),
e._v(" "),
t("option", { attrs: { value: "VISIBLE" } }, [
e._v(e._s(e.t("ADMIN_COMMENT_FILTER_VISIBLE"))),
]),
e._v(" "),
t("option", { attrs: { value: "HIDDEN" } }, [
e._v(e._s(e.t("ADMIN_COMMENT_FILTER_HIDDEN"))),
]),
],
),
e._v(" "),
t(
"el-button",
{
attrs: { size: "small", type: "primary" },
on: { click: e.getComments },
},
[e._v(e._s(e.t("ADMIN_COMMENT_SEARCH")))],
),
],
1,
),
e._v(" "),
t(
"div",
{
ref: "comment-list",
staticClass: "tk-admin-comment-list",
},
e._l(e.comments, function (n) {
return t(
"div",
{ key: n._id, staticClass: "tk-admin-comment-item" },
[
t(
"div",
{ staticClass: "tk-admin-comment-meta" },
[
t("tk-avatar", {
attrs: {
config: e.serverConfig,
avatar: n.avatar,
nick: n.nick,
mail: n.mail,
link: n.link,
},
}),
e._v(" "),
n.link
? e._e()
: t("span", [e._v(e._s(n.nick) + " ")]),
e._v(" "),
n.link
? t(
"a",
{
attrs: {
href: e.convertLink(n.link),
target: "_blank",
},
},
[e._v(e._s(n.nick) + " ")],
)
: e._e(),
e._v(" "),
n.mail
? t("span", [
e._v("("),
t(
"a",
{
attrs: {
href: "mailto:".concat(n.mail),
},
},
[e._v(e._s(n.mail))],
),
e._v(") "),
])
: e._e(),
e._v(" "),
n.isSpam
? t("span", [
e._v(
e._s(
e.t("ADMIN_COMMENT_IS_SPAM_SUFFIX"),
) + " ",
),
])
: e._e(),
e._v(" "),
t("span", { staticClass: "tk-time" }, [
e._v(e._s(e.displayCreated(n)) + " "),
]),
e._v(" "),
t("span", { attrs: { title: n.ua } }, [
e._v(e._s(n.ipRegion)),
]),
],
1,
),
e._v(" "),
t("div", {
ref: "comments",
refInFor: !0,
staticClass: "tk-content",
domProps: { innerHTML: e._s(n.comment) },
}),
e._v(" "),
t(
"div",
{ staticClass: "tk-admin-actions" },
[
t(
"el-button",
{
attrs: { size: "mini", type: "text" },
on: {
click: function (t) {
return e.handleView(n);
},
},
},
[e._v(e._s(e.t("ADMIN_COMMENT_VIEW")))],
),
e._v(" "),
n.isSpam
? t(
"el-button",
{
attrs: { size: "mini", type: "text" },
on: {
click: function (t) {
return e.handleSpam(n, !1);
},
},
},
[e._v(e._s(e.t("ADMIN_COMMENT_SHOW")))],
)
: e._e(),
e._v(" "),
n.isSpam
? e._e()
: t(
"el-button",
{
attrs: { size: "mini", type: "text" },
on: {
click: function (t) {
return e.handleSpam(n, !0);
},
},
},
[e._v(e._s(e.t("ADMIN_COMMENT_HIDE")))],
),
e._v(" "),
!n.rid && n.top
? t(
"el-button",
{
attrs: { size: "mini", type: "text" },
on: {
click: function (t) {
return e.handleTop(n, !1);
},
},
},
[e._v(e._s(e.t("ADMIN_COMMENT_UNTOP")))],
)
: e._e(),
e._v(" "),
n.rid || n.top
? e._e()
: t(
"el-button",
{
attrs: { size: "mini", type: "text" },
on: {
click: function (t) {
return e.handleTop(n, !0);
},
},
},
[e._v(e._s(e.t("ADMIN_COMMENT_TOP")))],
),
e._v(" "),
t(
"el-button",
{
attrs: { size: "mini", type: "text" },
on: {
click: function (t) {
return e.handleDelete(n);
},
},
},
[e._v(e._s(e.t("ADMIN_COMMENT_DELETE")))],
),
],
1,
),
],
);
}),
0,
),
e._v(" "),
t("tk-pagination", {
attrs: { "page-size": e.pageSize, total: e.count },
on: {
"page-size-change": e.onPageSizeChange,
"current-change": e.switchPage,
},
}),
],
1,
);
}),
(t.Yp = [
function () {
var e = this,
t = e._self._c;
return t("span", [
e._v("请参考 "),
t(
"a",
{
attrs: {
href: "https://twikoo.js.org/update.html",
target: "_blank",
},
},
[e._v("版本更新")],
),
e._v(" 进行升级"),
]);
},
]));
},
74: function (e, t) {
"use strict";
((t.Yp = t.XX = void 0),
(t.XX = function () {
var e = this,
t = e._self._c;
return t(
"div",
{
directives: [
{
name: "loading",
rawName: "v-loading",
value: e.loading,
expression: "loading",
},
],
staticClass: "tk-admin-config",
},
[
e.clientVersion !== e.serverVersion
? t("div", { staticClass: "tk-admin-warn" }, [
t("span", [
e._v(
e._s(e.t("ADMIN_CLIENT_VERSION")) +
e._s(e.clientVersion) +
",",
),
]),
e._v(" "),
t("span", [
e._v(
e._s(e.t("ADMIN_SERVER_VERSION")) +
e._s(e.serverVersion) +
",",
),
]),
e._v(" "),
e._m(0),
])
: e._e(),
e._v(" "),
t(
"div",
{ staticClass: "tk-admin-config-groups" },
[
e._l(e.settings, function (n) {
return t(
"details",
{
key: n.name,
staticClass: "tk-admin-config-group",
},
[
t(
"summary",
{ staticClass: "tk-admin-config-group-title" },
[e._v(e._s(n.name))],
),
e._v(" "),
e._l(n.items, function (n) {
return t(
"div",
{
key: n.key,
staticClass: "tk-admin-config-item",
},
[
t(
"div",
{
staticClass: "tk-admin-config-title",
attrs: { title: n.key },
},
[e._v(e._s(n.key))],
),
e._v(" "),
t(
"div",
{ staticClass: "tk-admin-config-input" },
[
t("el-input", {
attrs: {
placeholder: n.ph,
size: "small",
"show-password": n.secret,
},
model: {
value: n.value,
callback: function (t) {
e.$set(n, "value", t);
},
expression: "setting.value",
},
}),
],
1,
),
e._v(" "),
t("div"),
e._v(" "),
t(
"div",
{ staticClass: "tk-admin-config-desc" },
[e._v(e._s(n.desc))],
),
],
);
}),
],
2,
);
}),
e._v(" "),
t("details", { staticClass: "tk-admin-config-group" }, [
t(
"summary",
{ staticClass: "tk-admin-config-group-title" },
[e._v(e._s(e.t("ADMIN_CONFIG_EMAIL_TEST")))],
),
e._v(" "),
t(
"div",
{ staticClass: "tk-admin-config-email-test" },
[
t(
"div",
{
staticClass:
"tk-admin-config-email-test-desc",
},
[
e._v(
e._s(e.t("ADMIN_CONFIG_EMAIL_TEST_HELP")),
),
],
),
e._v(" "),
t(
"div",
{ staticClass: "tk-admin-config-input" },
[
t(
"el-input",
{
attrs: { size: "small" },
model: {
value: e.emailTestAddress,
callback: function (t) {
e.emailTestAddress = t;
},
expression: "emailTestAddress",
},
},
[
t(
"el-button",
{
attrs: {
slot: "append",
type: "info",
},
on: { click: e.testEmail },
slot: "append",
},
[
e._v(
e._s(
e.t(
"ADMIN_CONFIG_EMAIL_TEST_BTN",
),
),
),
],
),
],
1,
),
],
1,
),
e._v(" "),
t(
"div",
{
staticClass:
"tk-admin-config-email-test-desc",
},
[
e._v(
e._s(
e.t("ADMIN_CONFIG_EMAIL_TEST_RESULT"),
) + e._s(e.emailTestResult),
),
],
),
],
),
]),
],
2,
),
e._v(" "),
t(
"div",
{ staticClass: "tk-admin-config-actions" },
[
t(
"el-button",
{
attrs: { size: "small", type: "primary" },
on: { click: e.saveConfig },
},
[e._v(e._s(e.t("ADMIN_CONFIG_SAVE")))],
),
e._v(" "),
t(
"el-button",
{
attrs: { size: "small", type: "info" },
on: { click: e.resetConfig },
},
[e._v(e._s(e.t("ADMIN_CONFIG_RESET")))],
),
],
1,
),
e._v(" "),
t("div", { staticClass: "tk-admin-config-message" }, [
e._v(e._s(e.message)),
]),
],
);
}),
(t.Yp = [
function () {
var e = this,
t = e._self._c;
return t("span", [
e._v("请参考 "),
t(
"a",
{
attrs: {
href: "https://twikoo.js.org/update.html",
target: "_blank",
},
},
[e._v("版本更新")],
),
e._v(" 进行升级"),
]);
},
]));
},
9976: function (e, t) {
"use strict";
((t.Yp = t.XX = void 0),
(t.XX = function () {
var e = this,
t = e._self._c;
return t(
"div",
{ staticClass: "tk-admin-export" },
[
t(
"div",
{ staticClass: "tk-admin-warn tk-admin-import-warn" },
[t("p", [e._v(e._s(e.t("ADMIN_EXPORT_WARN")))])],
),
e._v(" "),
t(
"el-button",
{
attrs: { size: "small", disabled: e.loading },
on: {
click: function (t) {
return e.doExport("comment");
},
},
},
[e._v(e._s(e.t("ADMIN_EXPORT_COMMENT")))],
),
e._v(" "),
t(
"el-button",
{
attrs: { size: "small", disabled: e.loading },
on: {
click: function (t) {
return e.doExport("counter");
},
},
},
[e._v(e._s(e.t("ADMIN_EXPORT_COUNTER")))],
),
],
1,
);
}),
(t.Yp = []));
},
872: function (e, t) {
"use strict";
((t.Yp = t.XX = void 0),
(t.XX = function () {
var e = this,
t = e._self._c;
return t(
"div",
{ staticClass: "tk-admin-import" },
[
t(
"div",
{ staticClass: "tk-admin-warn tk-admin-import-warn" },
[
t("p", [e._v(e._s(e.t("ADMIN_IMPORT_WARN")))]),
e._v(" "),
t("p", [e._v(e._s(e.warnText[e.source]))]),
],
),
e._v(" "),
t("div", { staticClass: "tk-admin-import-label" }, [
e._v(e._s(e.t("ADMIN_IMPORT_SELECT_SOURCE"))),
]),
e._v(" "),
t(
"select",
{
directives: [
{
name: "model",
rawName: "v-model",
value: e.source,
expression: "source",
},
],
on: {
change: function (t) {
var n = Array.prototype.filter
.call(t.target.options, function (e) {
return e.selected;
})
.map(function (e) {
return "_value" in e ? e._value : e.value;
});
e.source = t.target.multiple ? n : n[0];
},
},
},
[
t("option", { attrs: { disabled: "", value: "" } }, [
e._v(e._s(e.t("ADMIN_IMPORT_SELECT"))),
]),
e._v(" "),
t("option", { attrs: { value: "valine" } }, [
e._v("Valine (JSON)"),
]),
e._v(" "),
t("option", { attrs: { value: "disqus" } }, [
e._v("Disqus (XML)"),
]),
e._v(" "),
t("option", { attrs: { value: "artalk" } }, [
e._v("Artalk v1 (JSON)"),
]),
e._v(" "),
t("option", { attrs: { value: "artalk2" } }, [
e._v("Artalk v2 (Artrans)"),
]),
e._v(" "),
t("option", { attrs: { value: "twikoo" } }, [
e._v("Twikoo (JSON)"),
]),
],
),
e._v(" "),
t("div", { staticClass: "tk-admin-import-label" }, [
e._v(e._s(e.t("ADMIN_IMPORT_SELECT_FILE"))),
]),
e._v(" "),
t("input", {
ref: "inputFile",
attrs: { type: "file", value: "" },
}),
e._v(" "),
t(
"el-button",
{
attrs: { size: "small", disabled: e.loading },
on: { click: e.uploadFile },
},
[e._v(e._s(e.t("ADMIN_IMPORT_START")))],
),
e._v(" "),
t("el-input", {
ref: "logTextArea",
attrs: {
type: "textarea",
rows: 10,
placeholder: e.t("ADMIN_IMPORT_LOG"),
readonly: "",
},
model: {
value: e.logText,
callback: function (t) {
e.logText = t;
},
expression: "logText",
},
}),
],
1,
);
}),
(t.Yp = []));
},
5897: function (e, t) {
"use strict";
((t.Yp = t.XX = void 0),
(t.XX = function () {
var e = this,
t = e._self._c;
return t(
"div",
{
staticClass: "tk-avatar",
class: {
"tk-clickable": !!e.link,
"tk-has-avatar": !!e.avatarInner,
},
on: { click: e.onClick },
},
[
e.avatarInner
? e._e()
: t("div", {
staticClass: "tk-avatar-img",
domProps: { innerHTML: e._s(e.iconUser) },
}),
e._v(" "),
e.avatarInner
? t("img", {
staticClass: "tk-avatar-img",
attrs: { src: e.avatarInner, alt: "" },
})
: e._e(),
],
);
}),
(t.Yp = []));
},
3072: function (e, t) {
"use strict";
((t.Yp = t.XX = void 0),
(t.XX = function () {
var e = this,
t = e._self._c;
return t(
"div",
{
ref: "tk-comment",
staticClass: "tk-comment",
class: { "tk-master": e.comment.master },
attrs: { id: e.comment.id },
},
[
t("tk-avatar", {
attrs: {
config: e.config,
nick: e.comment.nick,
avatar: e.comment.avatar,
"mail-md5": e.comment.mailMd5,
link: e.convertedLink,
},
}),
e._v(" "),
t(
"div",
{ staticClass: "tk-main" },
[
t(
"div",
{ staticClass: "tk-row" },
[
t("div", { staticClass: "tk-meta" }, [
e.convertedLink
? e._e()
: t("strong", { staticClass: "tk-nick" }, [
e._v(e._s(e.comment.nick)),
]),
e._v(" "),
e.convertedLink
? t(
"a",
{
staticClass: "tk-nick tk-nick-link",
attrs: {
href: e.convertedLink,
target: "_blank",
rel: "noopener noreferrer",
},
},
[t("strong", [e._v(e._s(e.comment.nick))])],
)
: e._e(),
e._v(" "),
e.comment.master
? t(
"span",
{ staticClass: "tk-tag tk-tag-green" },
[
e._v(
e._s(
e.config.MASTER_TAG ||
e.t("COMMENT_MASTER_TAG"),
),
),
],
)
: e._e(),
e._v(" "),
e.comment.top
? t(
"span",
{ staticClass: "tk-tag tk-tag-red" },
[e._v(e._s(e.t("COMMENT_TOP_TAG")))],
)
: e._e(),
e._v(" "),
e.comment.isSpam
? t(
"span",
{ staticClass: "tk-tag tk-tag-yellow" },
[e._v(e._s(e.t("COMMENT_REVIEWING_TAG")))],
)
: e._e(),
e._v(" "),
t("small", { staticClass: "tk-time" }, [
t(
"time",
{
attrs: {
datetime: e.jsonTimestamp,
title: e.localeTime,
},
},
[e._v(e._s(e.displayCreated))],
),
]),
e._v(" "),
e.isLogin
? t("small", { staticClass: "tk-actions" }, [
e.comment.isSpam
? t(
"a",
{
attrs: { href: "#" },
on: {
click: function (t) {
return e.handleSpam(!1, t);
},
},
},
[
e._v(
e._s(e.t("ADMIN_COMMENT_SHOW")),
),
],
)
: e._e(),
e._v(" "),
e.comment.isSpam
? e._e()
: t(
"a",
{
attrs: { href: "#" },
on: {
click: function (t) {
return e.handleSpam(!0, t);
},
},
},
[
e._v(
e._s(e.t("ADMIN_COMMENT_HIDE")),
),
],
),
e._v(" "),
!e.comment.rid && e.comment.top
? t(
"a",
{
attrs: { href: "#" },
on: {
click: function (t) {
return e.handleTop(!1, t);
},
},
},
[
e._v(
e._s(e.t("ADMIN_COMMENT_UNTOP")),
),
],
)
: e._e(),
e._v(" "),
e.comment.rid || e.comment.top
? e._e()
: t(
"a",
{
attrs: { href: "#" },
on: {
click: function (t) {
return e.handleTop(!0, t);
},
},
},
[
e._v(
e._s(e.t("ADMIN_COMMENT_TOP")),
),
],
),
])
: e._e(),
]),
e._v(" "),
t("tk-action", {
attrs: {
liked: e.liked,
"like-count": e.like,
"replies-count": e.comment.replies.length,
},
on: { like: e.onLike, reply: e.onReply },
}),
],
1,
),
e._v(" "),
t(
"div",
{
ref: "tk-content",
staticClass: "tk-content",
class: {
"tk-content-expand":
e.isContentExpanded || !e.showContentExpand,
},
},
[
e.comment.pid
? t("span", [
e._v(e._s(e.t("COMMENT_REPLIED")) + " "),
t(
"a",
{
staticClass: "tk-ruser",
attrs: {
href: "#".concat(e.comment.pid),
},
},
[e._v("@" + e._s(e.comment.ruser))],
),
e._v(" :"),
])
: e._e(),
e._v(" "),
t("span", {
ref: "comment",
domProps: { innerHTML: e._s(e.comment.comment) },
on: { click: e.popupLightbox },
}),
],
),
e._v(" "),
e.showContentExpand
? t("div", { staticClass: "tk-expand-wrap" }, [
t(
"div",
{
staticClass: "tk-expand",
on: { click: e.onContentExpand },
},
[e._v(e._s(e.t("COMMENT_EXPAND")))],
),
])
: e._e(),
e._v(" "),
e.showContentCollapse
? t("div", { staticClass: "tk-collapse-wrap" }, [
t(
"div",
{
staticClass: "tk-expand _collapse",
on: { click: e.onContentCollapse },
},
[e._v(e._s(e.t("COMMENT_COLLAPSE")))],
),
])
: e._e(),
e._v(" "),
e.comment.ipRegion || e.comment.os || e.comment.browser
? t("div", { staticClass: "tk-extras" }, [
e.comment.ipRegion
? t("div", { staticClass: "tk-extra" }, [
t("span", {
staticClass: "tk-icon __comment",
domProps: {
innerHTML: e._s(e.iconLocation),
},
}),
e._v(" "),
t(
"span",
{ staticClass: "tk-extra-text" },
[e._v(" " + e._s(e.comment.ipRegion))],
),
])
: e._e(),
e._v(" "),
e.comment.os
? t("div", { staticClass: "tk-extra" }, [
t("span", {
staticClass: "tk-icon __comment",
domProps: { innerHTML: e._s(e.iconOs) },
}),
e._v(" "),
t(
"span",
{ staticClass: "tk-extra-text" },
[e._v(" " + e._s(e.comment.os))],
),
])
: e._e(),
e._v(" "),
e.comment.browser
? t("div", { staticClass: "tk-extra" }, [
t("span", {
staticClass: "tk-icon __comment",
domProps: {
innerHTML: e._s(e.iconBrowser),
},
}),
e._v(" "),
t(
"span",
{ staticClass: "tk-extra-text" },
[e._v(" " + e._s(e.comment.browser))],
),
])
: e._e(),
])
: e._e(),
e._v(" "),
e.replying && !e.pid
? t("tk-submit", {
attrs: {
"reply-id": e.replyId
? e.replyId
: e.comment.id,
pid: e.comment.id,
config: e.config,
},
on: { load: e.onLoad, cancel: e.onCancel },
})
: e._e(),
e._v(" "),
t(
"div",
{
ref: "tk-replies",
staticClass: "tk-replies",
class: {
"tk-replies-expand":
e.isExpanded || !e.showExpand || e.replying,
},
},
e._l(e.comment.replies, function (n) {
return t("tk-comment", {
key: n.id,
attrs: {
comment: n,
replyId: e.comment.id,
replying: e.replying && e.pid === n.id,
config: e.config,
},
on: {
expand: e.onExpand,
load: e.onLoad,
reply: e.onReplyReply,
},
});
}),
1,
),
e._v(" "),
e.showExpand && !e.replying
? t("div", { staticClass: "tk-expand-wrap" }, [
t(
"div",
{
staticClass: "tk-expand",
on: { click: e.onExpand },
},
[e._v(e._s(e.t("COMMENT_EXPAND")))],
),
])
: e._e(),
e._v(" "),
e.showCollapse && !e.replying
? t("div", { staticClass: "tk-collapse-wrap" }, [
t(
"div",
{
staticClass: "tk-expand _collapse",
on: { click: e.onCollapse },
},
[e._v(e._s(e.t("COMMENT_COLLAPSE")))],
),
])
: e._e(),
],
1,
),
],
1,
);
}),
(t.Yp = []));
},
2048: function (e, t) {
"use strict";
((t.Yp = t.XX = void 0),
(t.XX = function () {
var e = this,
t = e._self._c;
return t(
"div",
{ staticClass: "tk-comments" },
[
t("tk-submit", {
attrs: { config: e.config },
on: { load: e.initComments },
}),
e._v(" "),
t(
"div",
{
directives: [
{
name: "loading",
rawName: "v-loading",
value: e.loading,
expression: "loading",
},
],
staticClass: "tk-comments-container",
},
[
t("div", { staticClass: "tk-comments-title" }, [
t(
"span",
{
staticClass: "tk-comments-count",
class: { __hidden: !e.comments.length },
},
[
t("span", [e._v(e._s(e.count))]),
e._v(" "),
t("span", [
e._v(e._s(e.t("COMMENTS_COUNT_SUFFIX"))),
]),
],
),
e._v(" "),
t("span", [
e.loading || e.loadingMore
? e._e()
: t("span", {
staticClass: "tk-icon __comments",
domProps: { innerHTML: e._s(e.iconRefresh) },
on: { click: e.refresh },
}),
e.showAdminEntry
? t("span", {
staticClass: "tk-icon __comments",
domProps: { innerHTML: e._s(e.iconSetting) },
on: { click: e.openAdmin },
})
: e._e(),
]),
]),
e._v(" "),
e.loading || e.comments.length
? e._e()
: t("div", { staticClass: "tk-comments-no" }, [
e.errorMessage
? e._e()
: t("span", [
e._v(e._s(e.t("COMMENTS_NO_COMMENTS"))),
]),
e._v(" "),
e.errorMessage
? t(
"span",
{ staticClass: "tk-comments-error" },
[e._v(e._s(e.errorMessage))],
)
: e._e(),
]),
e._v(" "),
e._l(e.comments, function (n) {
return t("tk-comment", {
key: n.id,
attrs: {
comment: n,
replying: e.replyId === n.id,
config: e.config,
},
on: { reply: e.onReply, load: e.initComments },
});
}),
e._v(" "),
e.showExpand && !e.loading
? t("div", { staticClass: "tk-expand-wrap" }, [
t(
"div",
{
directives: [
{
name: "loading",
rawName: "v-loading",
value: e.loadingMore,
expression: "loadingMore",
},
],
staticClass: "tk-expand",
on: { click: e.onExpand },
},
[e._v(e._s(e.t("COMMENTS_EXPAND")))],
),
])
: e._e(),
],
2,
),
],
1,
);
}),
(t.Yp = []));
},
2080: function (e, t) {
"use strict";
((t.Yp = t.XX = void 0),
(t.XX = function () {
var e = this,
t = e._self._c;
return t("div", { staticClass: "tk-footer" }, [
e._v("\n Powered by "),
t(
"a",
{
attrs: {
href: "https://twikoo.js.org",
target: "_blank",
},
},
[e._v("Twikoo")],
),
e._v("\n v" + e._s(e.version) + "\n"),
]);
}),
(t.Yp = []));
},
1412: function (e, t) {
"use strict";
((t.Yp = t.XX = void 0),
(t.XX = function () {
var e = this,
t = e._self._c;
return t(
"div",
{ staticClass: "tk-meta-input" },
e._l(e.displayedInputs, function (n) {
return t(
"el-input",
{
key: n.key,
attrs: {
name: n.name,
type: n.type,
placeholder: e.requiredFields[n.key]
? e.t("META_INPUT_REQUIRED")
: e.t("META_INPUT_NOT_REQUIRED"),
size: "small",
},
on: { change: e.onMetaChange },
model: {
value: e.metaData[n.key],
callback: function (t) {
e.$set(e.metaData, n.key, t);
},
expression: "metaData[metaInput.key]",
},
},
[
t("template", { slot: "prepend" }, [
e._v(e._s(n.locale)),
]),
],
2,
);
}),
1,
);
}),
(t.Yp = []));
},
8675: function (e, t) {
"use strict";
((t.Yp = t.XX = void 0),
(t.XX = function () {
var e = this,
t = e._self._c;
return t("div", { staticClass: "tk-pagination" }, [
e.pageCount
? t(
"div",
{ staticClass: "tk-pagination-options" },
[
t("div", [
t("span", [
e._v(e._s(e.t("PAGINATION_COUNT_PREFIX"))),
]),
e._v(" "),
t("span", [e._v(e._s(e.total))]),
e._v(" "),
t("span", [
e._v(e._s(e.t("PAGINATION_COUNT_SUFFIX"))),
]),
]),
e._v(" "),
t("el-input", {
attrs: {
type: "number",
min: "1",
max: "100",
value: e.userPageSize
? e.userPageSize
: e.pageSize,
},
on: {
input: e.handleInputPageSize,
change: e.pageSizeChamge,
},
}),
e._v(" "),
t("span", [e._v(e._s(e.t("PAGINATION_PAGESIZE")))]),
],
1,
)
: e._e(),
e._v(" "),
t(
"div",
{ staticClass: "tk-pagination-pagers" },
e._l(e.pagers, function (n) {
return t(
"div",
{
key: n.page,
staticClass: "tk-pagination-pager",
class: { __current: n.page === e.currentPage },
on: {
click: function (t) {
return e.currentChange(n.page);
},
},
},
[e._v(e._s(n.title))],
);
}),
0,
),
e._v(" "),
e.pageCount
? t(
"div",
{ staticClass: "tk-pagination-options" },
[
t("span", [
e._v(e._s(e.t("PAGINATION_GOTO_PREFIX"))),
]),
e._v(" "),
t("el-input", {
attrs: {
type: "number",
min: "1",
max: e.pageCount,
value: e.userInput ? e.userInput : e.currentPage,
},
on: {
input: e.handleInput,
change: e.currentChange,
},
}),
e._v(" "),
t("span", [
e._v(e._s(e.t("PAGINATION_GOTO_SUFFIX"))),
]),
],
1,
)
: e._e(),
]);
}),
(t.Yp = []));
},
9564: function (e, t) {
"use strict";
((t.Yp = t.XX = void 0),
(t.XX = function () {
var e = this,
t = e._self._c;
return t(
"div",
{ ref: "tk-submit", staticClass: "tk-submit tk-fade-in" },
[
t(
"div",
{ staticClass: "tk-row" },
[
t("tk-avatar", {
attrs: {
config: e.config,
mail: e.mail,
nick: e.nick,
},
}),
e._v(" "),
t(
"div",
{ staticClass: "tk-col" },
[
t("tk-meta-input", {
attrs: {
nick: e.nick,
mail: e.mail,
link: e.link,
config: e.config,
},
on: { update: e.onMetaUpdate },
}),
e._v(" "),
t("el-input", {
ref: "textarea",
staticClass: "tk-input",
attrs: {
type: "textarea",
"show-word-limit": "",
placeholder: e.commentPlaceholder,
autosize: { minRows: 3 },
maxlength: e.maxLength,
},
on: { input: e.onCommentInput },
nativeOn: {
keyup: function (t) {
return !t.type.indexOf("key") &&
e._k(t.keyCode, "enter", 13, t.key, "Enter")
? null
: e.onEnterKeyUp(t);
},
},
model: {
value: e.comment,
callback: function (t) {
e.comment = t;
},
expression: "comment",
},
}),
],
1,
),
],
1,
),
e._v(" "),
t(
"div",
{ staticClass: "tk-row actions" },
[
t("div", { staticClass: "tk-row-actions-start" }, [
t("div", {
directives: [
{
name: "show",
rawName: "v-show",
value: "true" === e.config.SHOW_EMOTION,
expression: "config.SHOW_EMOTION === 'true'",
},
{
name: "clickoutside",
rawName: "v-clickoutside",
value: e.closeOwo,
expression: "closeOwo",
},
],
ref: "owo",
staticClass: "tk-submit-action-icon OwO",
domProps: { innerHTML: e._s(e.iconEmotion) },
}),
e._v(" "),
t("div", {
directives: [
{
name: "show",
rawName: "v-show",
value: "true" === e.config.SHOW_IMAGE,
expression: "config.SHOW_IMAGE === 'true'",
},
],
staticClass: "tk-submit-action-icon",
domProps: { innerHTML: e._s(e.iconImage) },
on: { click: e.openSelectImage },
}),
e._v(" "),
t("input", {
ref: "inputFile",
staticClass: "tk-input-image",
attrs: {
type: "file",
accept: "image/*",
value: "",
},
on: { change: e.onSelectImage },
}),
e._v(" "),
t("div", { staticClass: "tk-error-message" }, [
e._v(e._s(e.errorMessage)),
]),
]),
e._v(" "),
t("a", {
staticClass: "tk-submit-action-icon __markdown",
attrs: {
alt: "Markdown is supported",
href: "https://guides.github.com/features/mastering-markdown/",
target: "_blank",
rel: "noopener noreferrer",
},
domProps: { innerHTML: e._s(e.iconMarkdown) },
}),
e._v(" "),
e.replyId
? t(
"el-button",
{
staticClass: "tk-cancel",
attrs: { size: "small" },
on: { click: e.cancel },
},
[e._v(e._s(e.t("SUBMIT_CANCEL")))],
)
: e._e(),
e._v(" "),
t(
"el-button",
{
staticClass: "tk-preview",
attrs: { size: "small" },
on: { click: e.preview },
},
[e._v(e._s(e.t("SUBMIT_PREVIEW")))],
),
e._v(" "),
t(
"el-button",
{
staticClass: "tk-send",
attrs: {
type: "primary",
size: "small",
disabled: !e.canSend,
},
on: { click: e.send },
},
[
e._v(
e._s(
e.isSending
? e.t("SUBMIT_SENDING")
: e.t("SUBMIT_SEND"),
),
),
],
),
e._v(" "),
t(
"div",
{
ref: "turnstile-container",
staticClass: "tk-turnstile-container",
},
[
t("div", {
ref: "turnstile",
staticClass: "tk-turnstile",
}),
],
),
],
1,
),
e._v(" "),
e.isPreviewing
? t("div", {
ref: "comment-preview",
staticClass: "tk-preview-container",
domProps: { innerHTML: e._s(e.commentHtml) },
})
: e._e(),
],
);
}),
(t.Yp = []));
},
5547: function (e, t) {
"use strict";
t.A = function (e, t) {
for (var n = [], r = {}, i = 0; i < t.length; i++) {
var o = t[i],
a = o[0],
s = {
id: e + ":" + i,
css: o[1],
media: o[2],
sourceMap: o[3],
};
r[a]
? r[a].parts.push(s)
: n.push((r[a] = { id: a, parts: [s] }));
}
return n;
};
},
4478: function (e, t, n) {
"use strict";
e.exports = n(6615);
},
6615: function (e, t, n) {
"use strict";
var r = n(477),
i = r(n(8850)),
o = r(n(1332)),
a = r(n(9367)),
s = Object.freeze({}),
u = Array.isArray;
function c(e) {
return null == e;
}
function l(e) {
return null != e;
}
function d(e) {
return !0 === e;
}
function f(e) {
return (
"string" == typeof e ||
"number" == typeof e ||
"symbol" == (0, a["default"])(e) ||
"boolean" == typeof e
);
}
function p(e) {
return "function" == typeof e;
}
function h(e) {
return null !== e && "object" == (0, a["default"])(e);
}
var m = Object.prototype.toString;
function g(e) {
return "[object Object]" === m.call(e);
}
function v(e) {
var t = parseFloat(String(e));
return t >= 0 && Math.floor(t) === t && isFinite(e);
}
function _(e) {
return (
l(e) &&
"function" == typeof e.then &&
"function" == typeof e["catch"]
);
}
function y(e) {
return null == e
? ""
: Array.isArray(e) || (g(e) && e.toString === m)
? JSON.stringify(e, b, 2)
: String(e);
}
function b(e, t) {
return t && t.__v_isRef ? t.value : t;
}
function k(e) {
var t = parseFloat(e);
return isNaN(t) ? e : t;
}
function w(e, t) {
for (
var n = Object.create(null), r = e.split(","), i = 0;
i < r.length;
i++
)
n[r[i]] = !0;
return t
? function (e) {
return n[e.toLowerCase()];
}
: function (e) {
return n[e];
};
}
var E = w("key,ref,slot,slot-scope,is");
function A(e, t) {
var n = e.length;
if (n) {
if (t === e[n - 1]) return void (e.length = n - 1);
var r = e.indexOf(t);
if (r > -1) return e.splice(r, 1);
}
}
var C = Object.prototype.hasOwnProperty;
function x(e, t) {
return C.call(e, t);
}
function I(e) {
var t = Object.create(null);
return function (n) {
return t[n] || (t[n] = e(n));
};
}
var D = /-(\w)/g,
S = I(function (e) {
return e.replace(D, function (e, t) {
return t ? t.toUpperCase() : "";
});
}),
O = I(function (e) {
return e.charAt(0).toUpperCase() + e.slice(1);
}),
T = /\B([A-Z])/g,
M = I(function (e) {
return e.replace(T, "-$1").toLowerCase();
}),
N = Function.prototype.bind
? function (e, t) {
return e.bind(t);
}
: function (e, t) {
function n(n) {
var r = arguments.length;
return r
? r > 1
? e.apply(t, arguments)
: e.call(t, n)
: e.call(t);
}
return ((n._length = e.length), n);
};
function P(e, t) {
t = t || 0;
for (var n = e.length - t, r = new Array(n); n--; )
r[n] = e[n + t];
return r;
}
function F(e, t) {
for (var n in t) e[n] = t[n];
return e;
}
function L(e) {
for (var t = {}, n = 0; n < e.length; n++) e[n] && F(t, e[n]);
return t;
}
function R(e, t, n) {}
var j = function (e, t, n) {
return !1;
},
$ = function (e) {
return e;
};
function U(e, t) {
if (e === t) return !0;
var n = h(e),
r = h(t);
if (!n || !r) return !n && !r && String(e) === String(t);
try {
var i = Array.isArray(e),
o = Array.isArray(t);
if (i && o)
return (
e.length === t.length &&
e.every(function (e, n) {
return U(e, t[n]);
})
);
if (e instanceof Date && t instanceof Date)
return e.getTime() === t.getTime();
if (i || o) return !1;
var a = Object.keys(e),
s = Object.keys(t);
return (
a.length === s.length &&
a.every(function (n) {
return U(e[n], t[n]);
})
);
} catch (e) {
return !1;
}
}
function B(e, t) {
for (var n = 0; n < e.length; n++) if (U(e[n], t)) return n;
return -1;
}
function G(e) {
var t = !1;
return function () {
t || ((t = !0), e.apply(this, arguments));
};
}
function z(e, t) {
return e === t ? 0 === e && 1 / e != 1 / t : e == e || t == t;
}
var H = "data-server-rendered",
q = ["component", "directive", "filter"],
V = [
"beforeCreate",
"created",
"beforeMount",
"mounted",
"beforeUpdate",
"updated",
"beforeDestroy",
"destroyed",
"activated",
"deactivated",
"errorCaptured",
"serverPrefetch",
"renderTracked",
"renderTriggered",
],
W = {
optionMergeStrategies: Object.create(null),
silent: !1,
productionTip: !1,
devtools: !1,
performance: !1,
errorHandler: null,
warnHandler: null,
ignoredElements: [],
keyCodes: Object.create(null),
isReservedTag: j,
isReservedAttr: j,
isUnknownElement: j,
getTagNamespace: R,
parsePlatformTagName: $,
mustUseProp: j,
async: !0,
_lifecycleHooks: V,
};
function X(e) {
var t = (e + "").charCodeAt(0);
return 36 === t || 95 === t;
}
function K(e, t, n, r) {
Object.defineProperty(e, t, {
value: n,
enumerable: !!r,
writable: !0,
configurable: !0,
});
}
var Y = new RegExp(
"[^".concat(
/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/
.source,
".$_\\d]",
),
),
J = "__proto__" in {},
Q = "undefined" != typeof window,
Z = Q && window.navigator.userAgent.toLowerCase(),
ee = Z && /msie|trident/.test(Z),
te = Z && Z.indexOf("msie 9.0") > 0,
ne = Z && Z.indexOf("edge/") > 0;
Z && Z.indexOf("android");
var re = Z && /iphone|ipad|ipod|ios/.test(Z);
(Z && /chrome\/\d+/.test(Z), Z && /phantomjs/.test(Z));
var ie,
oe = Z && Z.match(/firefox\/(\d+)/),
ae = {}.watch,
se = !1;
if (Q)
try {
var ue = {};
(Object.defineProperty(ue, "passive", {
get: function () {
se = !0;
},
}),
window.addEventListener("test-passive", null, ue));
} catch (s) {}
var ce = function () {
return (
void 0 === ie &&
(ie =
!Q &&
"undefined" != typeof n.g &&
n.g.process &&
"server" === n.g.process.env.VUE_ENV),
ie
);
},
le = Q && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
function de(e) {
return "function" == typeof e && /native code/.test(e.toString());
}
var fe,
pe =
"undefined" != typeof Symbol &&
de(Symbol) &&
"undefined" != typeof Reflect &&
de(Reflect.ownKeys);
fe =
"undefined" != typeof Set && de(Set)
? Set
: (function () {
function e() {
((0, i["default"])(this, e),
(this.set = Object.create(null)));
}
return (
(0, o["default"])(e, [
{
key: "has",
value: function (e) {
return !0 === this.set[e];
},
},
{
key: "add",
value: function (e) {
this.set[e] = !0;
},
},
{
key: "clear",
value: function () {
this.set = Object.create(null);
},
},
]),
e
);
})();
var he = null;
function me() {
var e =
arguments.length > 0 && arguments[0] !== undefined
? arguments[0]
: null;
(e || (he && he._scope.off()), (he = e), e && e._scope.on());
}
var ge = (function () {
function e(t, n, r, o, a, s, u, c) {
((0, i["default"])(this, e),
(this.tag = t),
(this.data = n),
(this.children = r),
(this.text = o),
(this.elm = a),
(this.ns = void 0),
(this.context = s),
(this.fnContext = void 0),
(this.fnOptions = void 0),
(this.fnScopeId = void 0),
(this.key = n && n.key),
(this.componentOptions = u),
(this.componentInstance = void 0),
(this.parent = void 0),
(this.raw = !1),
(this.isStatic = !1),
(this.isRootInsert = !0),
(this.isComment = !1),
(this.isCloned = !1),
(this.isOnce = !1),
(this.asyncFactory = c),
(this.asyncMeta = void 0),
(this.isAsyncPlaceholder = !1));
}
return (
(0, o["default"])(e, [
{
key: "child",
get: function () {
return this.componentInstance;
},
},
]),
e
);
})(),
ve = function () {
var e =
arguments.length > 0 && arguments[0] !== undefined
? arguments[0]
: "",
t = new ge();
return ((t.text = e), (t.isComment = !0), t);
};
function _e(e) {
return new ge(void 0, void 0, void 0, String(e));
}
function ye(e) {
var t = new ge(
e.tag,
e.data,
e.children && e.children.slice(),
e.text,
e.elm,
e.context,
e.componentOptions,
e.asyncFactory,
);
return (
(t.ns = e.ns),
(t.isStatic = e.isStatic),
(t.key = e.key),
(t.isComment = e.isComment),
(t.fnContext = e.fnContext),
(t.fnOptions = e.fnOptions),
(t.fnScopeId = e.fnScopeId),
(t.asyncMeta = e.asyncMeta),
(t.isCloned = !0),
t
);
}
var be = 0,
ke = [],
we = function () {
for (var e = 0; e < ke.length; e++) {
var t = ke[e];
((t.subs = t.subs.filter(function (e) {
return e;
})),
(t._pending = !1));
}
ke.length = 0;
},
Ee = (function () {
function e() {
((0, i["default"])(this, e),
(this._pending = !1),
(this.id = be++),
(this.subs = []));
}
return (
(0, o["default"])(e, [
{
key: "addSub",
value: function (e) {
this.subs.push(e);
},
},
{
key: "removeSub",
value: function (e) {
((this.subs[this.subs.indexOf(e)] = null),
this._pending ||
((this._pending = !0), ke.push(this)));
},
},
{
key: "depend",
value: function (t) {
e.target && e.target.addDep(this);
},
},
{
key: "notify",
value: function (e) {
for (
var t = this.subs.filter(function (e) {
return e;
}),
n = 0,
r = t.length;
n < r;
n++
)
t[n].update();
},
},
]),
e
);
})();
Ee.target = null;
var Ae = [];
function Ce(e) {
(Ae.push(e), (Ee.target = e));
}
function xe() {
(Ae.pop(), (Ee.target = Ae[Ae.length - 1]));
}
var Ie = Array.prototype,
De = Object.create(Ie);
[
"push",
"pop",
"shift",
"unshift",
"splice",
"sort",
"reverse",
].forEach(function (e) {
var t = Ie[e];
K(De, e, function () {
for (
var n = arguments.length, r = new Array(n), i = 0;
i < n;
i++
)
r[i] = arguments[i];
var o,
a = t.apply(this, r),
s = this.__ob__;
switch (e) {
case "push":
case "unshift":
o = r;
break;
case "splice":
o = r.slice(2);
}
return (o && s.observeArray(o), s.dep.notify(), a);
});
});
var Se = Object.getOwnPropertyNames(De),
Oe = {},
Te = !0;
function Me(e) {
Te = e;
}
var Ne = { notify: R, depend: R, addSub: R, removeSub: R },
Pe = (function () {
function e(t) {
var n =
arguments.length > 1 &&
arguments[1] !== undefined &&
arguments[1],
r =
arguments.length > 2 &&
arguments[2] !== undefined &&
arguments[2];
if (
((0, i["default"])(this, e),
(this.value = t),
(this.shallow = n),
(this.mock = r),
(this.dep = r ? Ne : new Ee()),
(this.vmCount = 0),
K(t, "__ob__", this),
u(t))
) {
if (!r)
if (J) t.__proto__ = De;
else
for (var o = 0, a = Se.length; o < a; o++) {
var s = Se[o];
K(t, s, De[s]);
}
n || this.observeArray(t);
} else
for (var c = Object.keys(t), l = 0; l < c.length; l++)
Le(t, c[l], Oe, void 0, n, r);
}
return (
(0, o["default"])(e, [
{
key: "observeArray",
value: function (e) {
for (var t = 0, n = e.length; t < n; t++)
Fe(e[t], !1, this.mock);
},
},
]),
e
);
})();
function Fe(e, t, n) {
return e && x(e, "__ob__") && e.__ob__ instanceof Pe
? e.__ob__
: !Te ||
(!n && ce()) ||
(!u(e) && !g(e)) ||
!Object.isExtensible(e) ||
e.__v_skip ||
Ve(e) ||
e instanceof ge
? void 0
: new Pe(e, t, n);
}
function Le(e, t, n, r, i, o) {
arguments.length > 6 && undefined;
var a = new Ee(),
s = Object.getOwnPropertyDescriptor(e, t);
if (!s || !1 !== s.configurable) {
var c = s && s.get,
l = s && s.set;
(c && !l) || (n !== Oe && 2 !== arguments.length) || (n = e[t]);
var d = i ? n && n.__ob__ : Fe(n, !1, o);
return (
Object.defineProperty(e, t, {
enumerable: !0,
configurable: !0,
get: function () {
var t = c ? c.call(e) : n;
return (
Ee.target &&
(a.depend(), d && (d.dep.depend(), u(t) && $e(t))),
Ve(t) && !i ? t.value : t
);
},
set: function (t) {
var r = c ? c.call(e) : n;
if (z(r, t)) {
if (l) l.call(e, t);
else {
if (c) return;
if (!i && Ve(r) && !Ve(t)) return void (r.value = t);
n = t;
}
((d = i ? t && t.__ob__ : Fe(t, !1, o)), a.notify());
}
},
}),
a
);
}
}
function Re(e, t, n) {
if (!He(e)) {
var r = e.__ob__;
return u(e) && v(t)
? ((e.length = Math.max(e.length, t)),
e.splice(t, 1, n),
r && !r.shallow && r.mock && Fe(n, !1, !0),
n)
: t in e && !(t in Object.prototype)
? ((e[t] = n), n)
: e._isVue || (r && r.vmCount)
? n
: r
? (Le(r.value, t, n, void 0, r.shallow, r.mock),
r.dep.notify(),
n)
: ((e[t] = n), n);
}
}
function je(e, t) {
if (u(e) && v(t)) e.splice(t, 1);
else {
var n = e.__ob__;
e._isVue ||
(n && n.vmCount) ||
He(e) ||
(x(e, t) && (delete e[t], n && n.dep.notify()));
}
}
function $e(e) {
for (var t, n = 0, r = e.length; n < r; n++)
((t = e[n]) && t.__ob__ && t.__ob__.dep.depend(),
u(t) && $e(t));
}
function Ue(e) {
return (Be(e, !0), K(e, "__v_isShallow", !0), e);
}
function Be(e, t) {
He(e) || Fe(e, t, ce());
}
function Ge(e) {
return He(e) ? Ge(e.__v_raw) : !(!e || !e.__ob__);
}
function ze(e) {
return !(!e || !e.__v_isShallow);
}
function He(e) {
return !(!e || !e.__v_isReadonly);
}
var qe = "__v_isRef";
function Ve(e) {
return !(!e || !0 !== e.__v_isRef);
}
function We(e, t) {
if (Ve(e)) return e;
var n = {};
return (
K(n, qe, !0),
K(n, "__v_isShallow", t),
K(n, "dep", Le(n, "value", e, null, t, ce())),
n
);
}
function Xe(e, t, n) {
Object.defineProperty(e, n, {
enumerable: !0,
configurable: !0,
get: function () {
var e = t[n];
if (Ve(e)) return e.value;
var r = e && e.__ob__;
return (r && r.dep.depend(), e);
},
set: function (e) {
var r = t[n];
Ve(r) && !Ve(e) ? (r.value = e) : (t[n] = e);
},
});
}
function Ke(e, t, n) {
var r = e[t];
if (Ve(r)) return r;
var i = {
get value() {
var r = e[t];
return void 0 === r ? n : r;
},
set value(n) {
e[t] = n;
},
};
return (K(i, qe, !0), i);
}
var Ye = "__v_rawToReadonly",
Je = "__v_rawToShallowReadonly";
function Qe(e) {
return Ze(e, !1);
}
function Ze(e, t) {
if (!g(e)) return e;
if (He(e)) return e;
var n = t ? Je : Ye,
r = e[n];
if (r) return r;
var i = Object.create(Object.getPrototypeOf(e));
(K(e, n, i),
K(i, "__v_isReadonly", !0),
K(i, "__v_raw", e),
Ve(e) && K(i, qe, !0),
(t || ze(e)) && K(i, "__v_isShallow", !0));
for (var o = Object.keys(e), a = 0; a < o.length; a++)
et(i, e, o[a], t);
return i;
}
function et(e, t, n, r) {
Object.defineProperty(e, n, {
enumerable: !0,
configurable: !0,
get: function () {
var e = t[n];
return r || !g(e) ? e : Qe(e);
},
set: function () {},
});
}
var tt = "watcher",
nt = "".concat(tt, " callback"),
rt = "".concat(tt, " getter"),
it = "".concat(tt, " cleanup");
function ot(e, t) {
return ut(e, null, { flush: "post" });
}
var at,
st = {};
function ut(e, t) {
var n,
r,
i =
arguments.length > 2 && arguments[2] !== undefined
? arguments[2]
: s,
o = i.immediate,
a = i.deep,
c = i.flush,
l = void 0 === c ? "pre" : c,
d = (i.onTrack, i.onTrigger, he),
f = function (e, t) {
var n = en(
e,
null,
arguments.length > 2 && arguments[2] !== undefined
? arguments[2]
: null,
d,
t,
);
return (a && n && n.__ob__ && n.__ob__.dep.depend(), n);
},
h = !1,
m = !1;
if (
(Ve(e)
? ((n = function () {
return e.value;
}),
(h = ze(e)))
: Ge(e)
? ((n = function () {
return (e.__ob__.dep.depend(), e);
}),
(a = !0))
: u(e)
? ((m = !0),
(h = e.some(function (e) {
return Ge(e) || ze(e);
})),
(n = function () {
return e.map(function (e) {
return Ve(e)
? e.value
: Ge(e)
? (e.__ob__.dep.depend(), On(e))
: p(e)
? f(e, rt)
: void 0;
});
}))
: (n = p(e)
? t
? function () {
return f(e, rt);
}
: function () {
if (!d || !d._isDestroyed)
return (r && r(), f(e, tt, [v]));
}
: R),
t && a)
) {
var g = n;
n = function () {
return On(g());
};
}
var v = function (e) {
r = _.onStop = function () {
f(e, it);
};
};
if (ce())
return (
(v = R),
t ? o && f(t, nt, [n(), m ? [] : void 0, v]) : n(),
R
);
var _ = new Pn(he, n, R, { lazy: !0 });
_.noRecurse = !t;
var y = m ? [] : st;
return (
(_.run = function () {
if (_.active)
if (t) {
var e = _.get();
(a ||
h ||
(m
? e.some(function (e, t) {
return z(e, y[t]);
})
: z(e, y))) &&
(r && r(),
f(t, nt, [e, y === st ? void 0 : y, v]),
(y = e));
} else _.get();
}),
"sync" === l
? (_.update = _.run)
: "post" === l
? ((_.post = !0),
(_.update = function () {
return nr(_);
}))
: (_.update = function () {
if (d && d === he && !d._isMounted) {
var e = d._preWatchers || (d._preWatchers = []);
e.indexOf(_) < 0 && e.push(_);
} else nr(_);
}),
t
? o
? _.run()
: (y = _.get())
: "post" === l && d
? d.$once("hook:mounted", function () {
return _.get();
})
: _.get(),
function () {
_.teardown();
}
);
}
var ct = (function () {
function e() {
var t =
arguments.length > 0 &&
arguments[0] !== undefined &&
arguments[0];
((0, i["default"])(this, e),
(this.detached = t),
(this.active = !0),
(this.effects = []),
(this.cleanups = []),
(this.parent = at),
!t &&
at &&
(this.index =
(at.scopes || (at.scopes = [])).push(this) - 1));
}
return (
(0, o["default"])(e, [
{
key: "run",
value: function (e) {
if (this.active) {
var t = at;
try {
return ((at = this), e());
} finally {
at = t;
}
}
},
},
{
key: "on",
value: function () {
at = this;
},
},
{
key: "off",
value: function () {
at = this.parent;
},
},
{
key: "stop",
value: function (e) {
if (this.active) {
var t, n;
for (t = 0, n = this.effects.length; t < n; t++)
this.effects[t].teardown();
for (t = 0, n = this.cleanups.length; t < n; t++)
this.cleanups[t]();
if (this.scopes)
for (t = 0, n = this.scopes.length; t < n; t++)
this.scopes[t].stop(!0);
if (!this.detached && this.parent && !e) {
var r = this.parent.scopes.pop();
r &&
r !== this &&
((this.parent.scopes[this.index] = r),
(r.index = this.index));
}
((this.parent = void 0), (this.active = !1));
}
},
},
]),
e
);
})();
function lt() {
return at;
}
function dt(e) {
var t = e._provided,
n = e.$parent && e.$parent._provided;
return n === t ? (e._provided = Object.create(n)) : t;
}
var ft = I(function (e) {
var t = "&" === e.charAt(0),
n = "~" === (e = t ? e.slice(1) : e).charAt(0),
r = "!" === (e = n ? e.slice(1) : e).charAt(0);
return {
name: (e = r ? e.slice(1) : e),
once: n,
capture: r,
passive: t,
};
});
function pt(e, t) {
function n() {
var e = n.fns;
if (!u(e)) return en(e, null, arguments, t, "v-on handler");
for (var r = e.slice(), i = 0; i < r.length; i++)
en(r[i], null, arguments, t, "v-on handler");
}
return ((n.fns = e), n);
}
function ht(e, t, n, r, i, o) {
var a, s, u, l;
for (a in e)
((s = e[a]),
(u = t[a]),
(l = ft(a)),
c(s) ||
(c(u)
? (c(s.fns) && (s = e[a] = pt(s, o)),
d(l.once) && (s = e[a] = i(l.name, s, l.capture)),
n(l.name, s, l.capture, l.passive, l.params))
: s !== u && ((u.fns = s), (e[a] = u))));
for (a in t) c(e[a]) && r((l = ft(a)).name, t[a], l.capture);
}
function mt(e, t, n) {
var r;
e instanceof ge && (e = e.data.hook || (e.data.hook = {}));
var i = e[t];
function o() {
(n.apply(this, arguments), A(r.fns, o));
}
(c(i)
? (r = pt([o]))
: l(i.fns) && d(i.merged)
? (r = i).fns.push(o)
: (r = pt([i, o])),
(r.merged = !0),
(e[t] = r));
}
function gt(e, t, n, r, i) {
if (l(t)) {
if (x(t, n)) return ((e[n] = t[n]), i || delete t[n], !0);
if (x(t, r)) return ((e[n] = t[r]), i || delete t[r], !0);
}
return !1;
}
function vt(e) {
return f(e) ? [_e(e)] : u(e) ? yt(e) : void 0;
}
function _t(e) {
return l(e) && l(e.text) && !1 === e.isComment;
}
function yt(e, t) {
var n,
r,
i,
o,
a = [];
for (n = 0; n < e.length; n++)
c((r = e[n])) ||
"boolean" == typeof r ||
((o = a[(i = a.length - 1)]),
u(r)
? r.length > 0 &&
(_t((r = yt(r, "".concat(t || "", "_").concat(n)))[0]) &&
_t(o) &&
((a[i] = _e(o.text + r[0].text)), r.shift()),
a.push.apply(a, r))
: f(r)
? _t(o)
? (a[i] = _e(o.text + r))
: "" !== r && a.push(_e(r))
: _t(r) && _t(o)
? (a[i] = _e(o.text + r.text))
: (d(e._isVList) &&
l(r.tag) &&
c(r.key) &&
l(t) &&
(r.key = "__vlist".concat(t, "_").concat(n, "__")),
a.push(r)));
return a;
}
function bt(e, t) {
var n,
r,
i,
o,
a = null;
if (u(e) || "string" == typeof e)
for (a = new Array(e.length), n = 0, r = e.length; n < r; n++)
a[n] = t(e[n], n);
else if ("number" == typeof e)
for (a = new Array(e), n = 0; n < e; n++) a[n] = t(n + 1, n);
else if (h(e))
if (pe && e[Symbol.iterator]) {
a = [];
for (var s = e[Symbol.iterator](), c = s.next(); !c.done; )
(a.push(t(c.value, a.length)), (c = s.next()));
} else
for (
i = Object.keys(e),
a = new Array(i.length),
n = 0,
r = i.length;
n < r;
n++
)
((o = i[n]), (a[n] = t(e[o], o, n)));
return (l(a) || (a = []), (a._isVList = !0), a);
}
function kt(e, t, n, r) {
var i,
o = this.$scopedSlots[e];
o
? ((n = n || {}),
r && (n = F(F({}, r), n)),
(i = o(n) || (p(t) ? t() : t)))
: (i = this.$slots[e] || (p(t) ? t() : t));
var a = n && n.slot;
return a ? this.$createElement("template", { slot: a }, i) : i;
}
function wt(e) {
return br(this.$options, "filters", e) || $;
}
function Et(e, t) {
return u(e) ? -1 === e.indexOf(t) : e !== t;
}
function At(e, t, n, r, i) {
var o = W.keyCodes[t] || n;
return i && r && !W.keyCodes[t]
? Et(i, r)
: o
? Et(o, e)
: r
? M(r) !== t
: void 0 === e;
}
function Ct(e, t, n, r, i) {
if (n && h(n)) {
var o;
u(n) && (n = L(n));
var a = function (a) {
if ("class" === a || "style" === a || E(a)) o = e;
else {
var s = e.attrs && e.attrs.type;
o =
r || W.mustUseProp(t, s, a)
? e.domProps || (e.domProps = {})
: e.attrs || (e.attrs = {});
}
var u = S(a),
c = M(a);
u in o ||
c in o ||
((o[a] = n[a]), !i) ||
((e.on || (e.on = {}))["update:".concat(a)] = function (e) {
n[a] = e;
});
};
for (var s in n) a(s);
}
return e;
}
function xt(e, t) {
var n = this._staticTrees || (this._staticTrees = []),
r = n[e];
return (
(r && !t) ||
Dt(
(r = n[e] =
this.$options.staticRenderFns[e].call(
this._renderProxy,
this._c,
this,
)),
"__static__".concat(e),
!1,
),
r
);
}
function It(e, t, n) {
return (
Dt(e, "__once__".concat(t).concat(n ? "_".concat(n) : ""), !0),
e
);
}
function Dt(e, t, n) {
if (u(e))
for (var r = 0; r < e.length; r++)
e[r] &&
"string" != typeof e[r] &&
St(e[r], "".concat(t, "_").concat(r), n);
else St(e, t, n);
}
function St(e, t, n) {
((e.isStatic = !0), (e.key = t), (e.isOnce = n));
}
function Ot(e, t) {
if (t && g(t)) {
var n = (e.on = e.on ? F({}, e.on) : {});
for (var r in t) {
var i = n[r],
o = t[r];
n[r] = i ? [].concat(i, o) : o;
}
}
return e;
}
function Tt(e, t, n, r) {
t = t || { $stable: !n };
for (var i = 0; i < e.length; i++) {
var o = e[i];
u(o)
? Tt(o, t, n)
: o && (o.proxy && (o.fn.proxy = !0), (t[o.key] = o.fn));
}
return (r && (t.$key = r), t);
}
function Mt(e, t) {
for (var n = 0; n < t.length; n += 2) {
var r = t[n];
"string" == typeof r && r && (e[t[n]] = t[n + 1]);
}
return e;
}
function Nt(e, t) {
return "string" == typeof e ? t + e : e;
}
function Pt(e) {
((e._o = It),
(e._n = k),
(e._s = y),
(e._l = bt),
(e._t = kt),
(e._q = U),
(e._i = B),
(e._m = xt),
(e._f = wt),
(e._k = At),
(e._b = Ct),
(e._v = _e),
(e._e = ve),
(e._u = Tt),
(e._g = Ot),
(e._d = Mt),
(e._p = Nt));
}
function Ft(e, t) {
if (!e || !e.length) return {};
for (var n = {}, r = 0, i = e.length; r < i; r++) {
var o = e[r],
a = o.data;
if (
(a && a.attrs && a.attrs.slot && delete a.attrs.slot,
(o.context !== t && o.fnContext !== t) ||
!a ||
null == a.slot)
)
(n["default"] || (n["default"] = [])).push(o);
else {
var s = a.slot,
u = n[s] || (n[s] = []);
"template" === o.tag
? u.push.apply(u, o.children || [])
: u.push(o);
}
}
for (var c in n) n[c].every(Lt) && delete n[c];
return n;
}
function Lt(e) {
return (e.isComment && !e.asyncFactory) || " " === e.text;
}
function Rt(e) {
return e.isComment && e.asyncFactory;
}
function jt(e, t, n, r) {
var i,
o = Object.keys(n).length > 0,
a = t ? !!t.$stable : !o,
u = t && t.$key;
if (t) {
if (t._normalized) return t._normalized;
if (a && r && r !== s && u === r.$key && !o && !r.$hasNormal)
return r;
for (var c in ((i = {}), t))
t[c] && "$" !== c[0] && (i[c] = $t(e, n, c, t[c]));
} else i = {};
for (var l in n) l in i || (i[l] = Ut(n, l));
return (
t && Object.isExtensible(t) && (t._normalized = i),
K(i, "$stable", a),
K(i, "$key", u),
K(i, "$hasNormal", o),
i
);
}
function $t(e, t, n, r) {
var i = function () {
var t = he;
me(e);
var n = arguments.length ? r.apply(null, arguments) : r({}),
i =
(n =
n && "object" == (0, a["default"])(n) && !u(n)
? [n]
: vt(n)) && n[0];
return (
me(t),
n && (!i || (1 === n.length && i.isComment && !Rt(i)))
? void 0
: n
);
};
return (
r.proxy &&
Object.defineProperty(t, n, {
get: i,
enumerable: !0,
configurable: !0,
}),
i
);
}
function Ut(e, t) {
return function () {
return e[t];
};
}
function Bt(e) {
return {
get attrs() {
if (!e._attrsProxy) {
var t = (e._attrsProxy = {});
(K(t, "_v_attr_proxy", !0),
Gt(t, e.$attrs, s, e, "$attrs"));
}
return e._attrsProxy;
},
get listeners() {
return (
e._listenersProxy ||
Gt(
(e._listenersProxy = {}),
e.$listeners,
s,
e,
"$listeners",
),
e._listenersProxy
);
},
get slots() {
return (function (e) {
return (
e._slotsProxy || Ht((e._slotsProxy = {}), e.$scopedSlots),
e._slotsProxy
);
})(e);
},
emit: N(e.$emit, e),
expose: function (t) {
t &&
Object.keys(t).forEach(function (n) {
return Xe(e, t, n);
});
},
};
}
function Gt(e, t, n, r, i) {
var o = !1;
for (var a in t)
a in e ? t[a] !== n[a] && (o = !0) : ((o = !0), zt(e, a, r, i));
for (var s in e) s in t || ((o = !0), delete e[s]);
return o;
}
function zt(e, t, n, r) {
Object.defineProperty(e, t, {
enumerable: !0,
configurable: !0,
get: function () {
return n[r][t];
},
});
}
function Ht(e, t) {
for (var n in t) e[n] = t[n];
for (var r in e) r in t || delete e[r];
}
function qt() {
var e = he;
return e._setupContext || (e._setupContext = Bt(e));
}
var Vt = null;
function Wt(e, t) {
return (
(e.__esModule || (pe && "Module" === e[Symbol.toStringTag])) &&
(e = e["default"]),
h(e) ? t.extend(e) : e
);
}
function Xt(e) {
if (u(e))
for (var t = 0; t < e.length; t++) {
var n = e[t];
if (l(n) && (l(n.componentOptions) || Rt(n))) return n;
}
}
var Kt = 1,
Yt = 2;
function Jt(e, t, n, r, i, o) {
return (
(u(n) || f(n)) && ((i = r), (r = n), (n = void 0)),
d(o) && (i = Yt),
(function (e, t, n, r, i) {
return l(n) && l(n.__ob__)
? ve()
: (l(n) && l(n.is) && (t = n.is),
t
? (u(r) &&
p(r[0]) &&
(((n = n || {}).scopedSlots = { default: r[0] }),
(r.length = 0)),
i === Yt
? (r = vt(r))
: i === Kt &&
(r = (function (e) {
for (var t = 0; t < e.length; t++)
if (u(e[t]))
return Array.prototype.concat.apply([], e);
return e;
})(r)),
"string" == typeof t
? ((a =
(e.$vnode && e.$vnode.ns) ||
W.getTagNamespace(t)),
(o = W.isReservedTag(t)
? new ge(
W.parsePlatformTagName(t),
n,
r,
void 0,
void 0,
e,
)
: (n && n.pre) ||
!l((s = br(e.$options, "components", t)))
? new ge(t, n, r, void 0, void 0, e)
: lr(s, n, e, r, t)))
: (o = lr(t, n, e, r)),
u(o)
? o
: l(o)
? (l(a) && Qt(o, a),
l(n) &&
(function (e) {
(h(e.style) && On(e.style),
h(e["class"]) && On(e["class"]));
})(n),
o)
: ve())
: ve());
var o, a, s;
})(e, t, n, r, i)
);
}
function Qt(e, t, n) {
if (
((e.ns = t),
"foreignObject" === e.tag && ((t = void 0), (n = !0)),
l(e.children))
)
for (var r = 0, i = e.children.length; r < i; r++) {
var o = e.children[r];
l(o.tag) &&
(c(o.ns) || (d(n) && "svg" !== o.tag)) &&
Qt(o, t, n);
}
}
function Zt(e, t, n) {
Ce();
try {
if (t)
for (var r = t; (r = r.$parent); ) {
var i = r.$options.errorCaptured;
if (i)
for (var o = 0; o < i.length; o++)
try {
if (!1 === i[o].call(r, e, t, n)) return;
} catch (e) {
tn(e, r, "errorCaptured hook");
}
}
tn(e, t, n);
} finally {
xe();
}
}
function en(e, t, n, r, i) {
var o;
try {
(o = n ? e.apply(t, n) : e.call(t)) &&
!o._isVue &&
_(o) &&
!o._handled &&
(o["catch"](function (e) {
return Zt(e, r, i + " (Promise/async)");
}),
(o._handled = !0));
} catch (e) {
Zt(e, r, i);
}
return o;
}
function tn(e, t, n) {
if (W.errorHandler)
try {
return W.errorHandler.call(null, e, t, n);
} catch (t) {
t !== e && nn(t);
}
nn(e);
}
function nn(e, t, n) {
if (!Q || "undefined" == typeof console) throw e;
console.error(e);
}
var rn,
on = !1,
an = [],
sn = !1;
function un() {
sn = !1;
var e = an.slice(0);
an.length = 0;
for (var t = 0; t < e.length; t++) e[t]();
}
if ("undefined" != typeof Promise && de(Promise)) {
var cn = Promise.resolve();
((rn = function () {
(cn.then(un), re && setTimeout(R));
}),
(on = !0));
} else if (
ee ||
"undefined" == typeof MutationObserver ||
(!de(MutationObserver) &&
"[object MutationObserverConstructor]" !==
MutationObserver.toString())
)
rn =
"undefined" != typeof setImmediate && de(setImmediate)
? function () {
setImmediate(un);
}
: function () {
setTimeout(un, 0);
};
else {
var ln = 1,
dn = new MutationObserver(un),
fn = document.createTextNode(String(ln));
(dn.observe(fn, { characterData: !0 }),
(rn = function () {
((ln = (ln + 1) % 2), (fn.data = String(ln)));
}),
(on = !0));
}
function pn(e, t) {
var n;
if (
(an.push(function () {
if (e)
try {
e.call(t);
} catch (e) {
Zt(e, t, "nextTick");
}
else n && n(t);
}),
sn || ((sn = !0), rn()),
!e && "undefined" != typeof Promise)
)
return new Promise(function (e) {
n = e;
});
}
function hn(e) {
return function (t) {
var n =
arguments.length > 1 && arguments[1] !== undefined
? arguments[1]
: he;
if (n)
return (function (e, t, n) {
var r = e.$options;
r[t] = gr(r[t], n);
})(n, e, t);
};
}
var mn = hn("beforeMount"),
gn = hn("mounted"),
vn = hn("beforeUpdate"),
_n = hn("updated"),
yn = hn("beforeDestroy"),
bn = hn("destroyed"),
kn = hn("activated"),
wn = hn("deactivated"),
En = hn("serverPrefetch"),
An = hn("renderTracked"),
Cn = hn("renderTriggered"),
xn = hn("errorCaptured"),
In = "2.7.16",
Dn = Object.freeze({
__proto__: null,
version: In,
defineComponent: function (e) {
return e;
},
ref: function (e) {
return We(e, !1);
},
shallowRef: function (e) {
return We(e, !0);
},
isRef: Ve,
toRef: Ke,
toRefs: function (e) {
var t = u(e) ? new Array(e.length) : {};
for (var n in e) t[n] = Ke(e, n);
return t;
},
unref: function (e) {
return Ve(e) ? e.value : e;
},
proxyRefs: function (e) {
if (Ge(e)) return e;
for (var t = {}, n = Object.keys(e), r = 0; r < n.length; r++)
Xe(t, e, n[r]);
return t;
},
customRef: function (e) {
var t = new Ee(),
n = e(
function () {
t.depend();
},
function () {
t.notify();
},
),
r = n.get,
i = n.set,
o = {
get value() {
return r();
},
set value(e) {
i(e);
},
};
return (K(o, qe, !0), o);
},
triggerRef: function (e) {
e.dep && e.dep.notify();
},
reactive: function (e) {
return (Be(e, !1), e);
},
isReactive: Ge,
isReadonly: He,
isShallow: ze,
isProxy: function (e) {
return Ge(e) || He(e);
},
shallowReactive: Ue,
markRaw: function (e) {
return (Object.isExtensible(e) && K(e, "__v_skip", !0), e);
},
toRaw: function Jo(e) {
var t = e && e.__v_raw;
return t ? Jo(t) : e;
},
readonly: Qe,
shallowReadonly: function (e) {
return Ze(e, !0);
},
computed: function (e, t) {
var n,
r,
i = p(e);
i ? ((n = e), (r = R)) : ((n = e.get), (r = e.set));
var o = ce() ? null : new Pn(he, n, R, { lazy: !0 }),
a = {
effect: o,
get value() {
return o
? (o.dirty && o.evaluate(),
Ee.target && o.depend(),
o.value)
: n();
},
set value(e) {
r(e);
},
};
return (K(a, qe, !0), K(a, "__v_isReadonly", i), a);
},
watch: function (e, t, n) {
return ut(e, t, n);
},
watchEffect: function (e, t) {
return ut(e, null, t);
},
watchPostEffect: ot,
watchSyncEffect: function (e, t) {
return ut(e, null, { flush: "sync" });
},
EffectScope: ct,
effectScope: function (e) {
return new ct(e);
},
onScopeDispose: function (e) {
at && at.cleanups.push(e);
},
getCurrentScope: lt,
provide: function (e, t) {
he && (dt(he)[e] = t);
},
inject: function (e, t) {
var n =
arguments.length > 2 &&
arguments[2] !== undefined &&
arguments[2],
r = he;
if (r) {
var i = r.$parent && r.$parent._provided;
if (i && e in i) return i[e];
if (arguments.length > 1) return n && p(t) ? t.call(r) : t;
}
},
h: function (e, t, n) {
return Jt(he, e, t, n, 2, !0);
},
getCurrentInstance: function () {
return he && { proxy: he };
},
useSlots: function () {
return qt().slots;
},
useAttrs: function () {
return qt().attrs;
},
useListeners: function () {
return qt().listeners;
},
mergeDefaults: function (e, t) {
var n = u(e)
? e.reduce(function (e, t) {
return ((e[t] = {}), e);
}, {})
: e;
for (var r in t) {
var i = n[r];
i
? u(i) || p(i)
? (n[r] = { type: i, default: t[r] })
: (i["default"] = t[r])
: null === i && (n[r] = { default: t[r] });
}
return n;
},
nextTick: pn,
set: Re,
del: je,
useCssModule: function () {
var e =
arguments.length > 0 && arguments[0] !== undefined
? arguments[0]
: "$style";
return (he && he[e]) || s;
},
useCssVars: function (e) {
if (Q) {
var t = he;
t &&
ot(function () {
var n = t.$el,
r = e(t, t._setupProxy);
if (n && 1 === n.nodeType) {
var i = n.style;
for (var o in r) i.setProperty("--".concat(o), r[o]);
}
});
}
},
defineAsyncComponent: function (e) {
p(e) && (e = { loader: e });
var t = e,
n = t.loader,
r = t.loadingComponent,
i = t.errorComponent,
o = t.delay,
a = void 0 === o ? 200 : o,
s = t.timeout,
u = (t.suspensible, t.onError),
c = null,
l = 0,
d = function f() {
var e;
return (
c ||
(e = c =
n()
["catch"](function (e) {
if (
((e =
e instanceof Error
? e
: new Error(String(e))),
u)
)
return new Promise(function (t, n) {
u(
e,
function () {
return t((l++, (c = null), f()));
},
function () {
return n(e);
},
l + 1,
);
});
throw e;
})
.then(function (t) {
return e !== c && c
? c
: (t &&
(t.__esModule ||
"Module" === t[Symbol.toStringTag]) &&
(t = t["default"]),
t);
}))
);
};
return function () {
return {
component: d(),
delay: a,
timeout: s,
error: i,
loading: r,
};
};
},
onBeforeMount: mn,
onMounted: gn,
onBeforeUpdate: vn,
onUpdated: _n,
onBeforeUnmount: yn,
onUnmounted: bn,
onActivated: kn,
onDeactivated: wn,
onServerPrefetch: En,
onRenderTracked: An,
onRenderTriggered: Cn,
onErrorCaptured: function (e) {
var t =
arguments.length > 1 && arguments[1] !== undefined
? arguments[1]
: he;
xn(e, t);
},
}),
Sn = new fe();
function On(e) {
return (Tn(e, Sn), Sn.clear(), e);
}
function Tn(e, t) {
var n,
r,
i = u(e);
if (
!(
(!i && !h(e)) ||
e.__v_skip ||
Object.isFrozen(e) ||
e instanceof ge
)
) {
if (e.__ob__) {
var o = e.__ob__.dep.id;
if (t.has(o)) return;
t.add(o);
}
if (i) for (n = e.length; n--; ) Tn(e[n], t);
else if (Ve(e)) Tn(e.value, t);
else
for (n = (r = Object.keys(e)).length; n--; ) Tn(e[r[n]], t);
}
}
var Mn,
Nn = 0,
Pn = (function () {
function e(t, n, r, o, a) {
((0, i["default"])(this, e),
(function (e) {
var t =
arguments.length > 1 && arguments[1] !== undefined
? arguments[1]
: at;
t && t.active && t.effects.push(e);
})(this, at && !at._vm ? at : t ? t._scope : void 0),
(this.vm = t) && a && (t._watcher = this),
o
? ((this.deep = !!o.deep),
(this.user = !!o.user),
(this.lazy = !!o.lazy),
(this.sync = !!o.sync),
(this.before = o.before))
: (this.deep = this.user = this.lazy = this.sync = !1),
(this.cb = r),
(this.id = ++Nn),
(this.active = !0),
(this.post = !1),
(this.dirty = this.lazy),
(this.deps = []),
(this.newDeps = []),
(this.depIds = new fe()),
(this.newDepIds = new fe()),
(this.expression = ""),
p(n)
? (this.getter = n)
: ((this.getter = (function (e) {
if (!Y.test(e)) {
var t = e.split(".");
return function (e) {
for (var n = 0; n < t.length; n++) {
if (!e) return;
e = e[t[n]];
}
return e;
};
}
})(n)),
this.getter || (this.getter = R)),
(this.value = this.lazy ? void 0 : this.get()));
}
return (
(0, o["default"])(e, [
{
key: "get",
value: function () {
var e;
Ce(this);
var t = this.vm;
try {
e = this.getter.call(t, t);
} catch (e) {
if (!this.user) throw e;
Zt(
e,
t,
'getter for watcher "'.concat(this.expression, '"'),
);
} finally {
(this.deep && On(e), xe(), this.cleanupDeps());
}
return e;
},
},
{
key: "addDep",
value: function (e) {
var t = e.id;
this.newDepIds.has(t) ||
(this.newDepIds.add(t),
this.newDeps.push(e),
this.depIds.has(t) || e.addSub(this));
},
},
{
key: "cleanupDeps",
value: function () {
for (var e = this.deps.length; e--; ) {
var t = this.deps[e];
this.newDepIds.has(t.id) || t.removeSub(this);
}
var n = this.depIds;
((this.depIds = this.newDepIds),
(this.newDepIds = n),
this.newDepIds.clear(),
(n = this.deps),
(this.deps = this.newDeps),
(this.newDeps = n),
(this.newDeps.length = 0));
},
},
{
key: "update",
value: function () {
this.lazy
? (this.dirty = !0)
: this.sync
? this.run()
: nr(this);
},
},
{
key: "run",
value: function () {
if (this.active) {
var e = this.get();
if (e !== this.value || h(e) || this.deep) {
var t = this.value;
if (((this.value = e), this.user)) {
var n = 'callback for watcher "'.concat(
this.expression,
'"',
);
en(this.cb, this.vm, [e, t], this.vm, n);
} else this.cb.call(this.vm, e, t);
}
}
},
},
{
key: "evaluate",
value: function () {
((this.value = this.get()), (this.dirty = !1));
},
},
{
key: "depend",
value: function () {
for (var e = this.deps.length; e--; )
this.deps[e].depend();
},
},
{
key: "teardown",
value: function () {
if (
(this.vm &&
!this.vm._isBeingDestroyed &&
A(this.vm._scope.effects, this),
this.active)
) {
for (var e = this.deps.length; e--; )
this.deps[e].removeSub(this);
((this.active = !1), this.onStop && this.onStop());
}
},
},
]),
e
);
})();
function Fn(e, t) {
Mn.$on(e, t);
}
function Ln(e, t) {
Mn.$off(e, t);
}
function Rn(e, t) {
var n = Mn;
return function r() {
null !== t.apply(null, arguments) && n.$off(e, r);
};
}
function jn(e, t, n) {
((Mn = e), ht(t, n || {}, Fn, Ln, Rn, e), (Mn = void 0));
}
var $n = null;
function Un(e) {
var t = $n;
return (
($n = e),
function () {
$n = t;
}
);
}
function Bn(e) {
for (; e && (e = e.$parent); ) if (e._inactive) return !0;
return !1;
}
function Gn(e, t) {
if (t) {
if (((e._directInactive = !1), Bn(e))) return;
} else if (e._directInactive) return;
if (e._inactive || null === e._inactive) {
e._inactive = !1;
for (var n = 0; n < e.$children.length; n++) Gn(e.$children[n]);
Hn(e, "activated");
}
}
function zn(e, t) {
if (!((t && ((e._directInactive = !0), Bn(e))) || e._inactive)) {
e._inactive = !0;
for (var n = 0; n < e.$children.length; n++) zn(e.$children[n]);
Hn(e, "deactivated");
}
}
function Hn(e, t, n) {
var r =
!(arguments.length > 3 && arguments[3] !== undefined) ||
arguments[3];
Ce();
var i = he,
o = lt();
r && me(e);
var a = e.$options[t],
s = "".concat(t, " hook");
if (a)
for (var u = 0, c = a.length; u < c; u++)
en(a[u], e, n || null, e, s);
(e._hasHookEvent && e.$emit("hook:" + t),
r && (me(i), o && o.on()),
xe());
}
var qn = [],
Vn = [],
Wn = {},
Xn = !1,
Kn = !1,
Yn = 0,
Jn = 0,
Qn = Date.now;
if (Q && !ee) {
var Zn = window.performance;
Zn &&
"function" == typeof Zn.now &&
Qn() > document.createEvent("Event").timeStamp &&
(Qn = function () {
return Zn.now();
});
}
var er = function (e, t) {
if (e.post) {
if (!t.post) return 1;
} else if (t.post) return -1;
return e.id - t.id;
};
function tr() {
var e, t;
for (
Jn = Qn(), Kn = !0, qn.sort(er), Yn = 0;
Yn < qn.length;
Yn++
)
((e = qn[Yn]).before && e.before(),
(t = e.id),
(Wn[t] = null),
e.run());
var n = Vn.slice(),
r = qn.slice();
((Yn = qn.length = Vn.length = 0),
(Wn = {}),
(Xn = Kn = !1),
(function (e) {
for (var t = 0; t < e.length; t++)
((e[t]._inactive = !0), Gn(e[t], !0));
})(n),
(function (e) {
for (var t = e.length; t--; ) {
var n = e[t],
r = n.vm;
r &&
r._watcher === n &&
r._isMounted &&
!r._isDestroyed &&
Hn(r, "updated");
}
})(r),
we(),
le && W.devtools && le.emit("flush"));
}
function nr(e) {
var t = e.id;
if (null == Wn[t] && (e !== Ee.target || !e.noRecurse)) {
if (((Wn[t] = !0), Kn)) {
for (var n = qn.length - 1; n > Yn && qn[n].id > e.id; ) n--;
qn.splice(n + 1, 0, e);
} else qn.push(e);
Xn || ((Xn = !0), pn(tr));
}
}
function rr(e, t) {
if (e) {
for (
var n = Object.create(null),
r = pe ? Reflect.ownKeys(e) : Object.keys(e),
i = 0;
i < r.length;
i++
) {
var o = r[i];
if ("__ob__" !== o) {
var a = e[o].from;
if (a in t._provided) n[o] = t._provided[a];
else if ("default" in e[o]) {
var s = e[o]["default"];
n[o] = p(s) ? s.call(t) : s;
}
}
}
return n;
}
}
function ir(e, t, n, r, i) {
var o,
a = this,
c = i.options;
x(r, "_uid")
? ((o = Object.create(r))._original = r)
: ((o = r), (r = r._original));
var l = d(c._compiled),
f = !l;
((this.data = e),
(this.props = t),
(this.children = n),
(this.parent = r),
(this.listeners = e.on || s),
(this.injections = rr(c.inject, r)),
(this.slots = function () {
return (
a.$slots || jt(r, e.scopedSlots, (a.$slots = Ft(n, r))),
a.$slots
);
}),
Object.defineProperty(this, "scopedSlots", {
enumerable: !0,
get: function () {
return jt(r, e.scopedSlots, this.slots());
},
}),
l &&
((this.$options = c),
(this.$slots = this.slots()),
(this.$scopedSlots = jt(r, e.scopedSlots, this.$slots))),
c._scopeId
? (this._c = function (e, t, n, i) {
var a = Jt(o, e, t, n, i, f);
return (
a &&
!u(a) &&
((a.fnScopeId = c._scopeId), (a.fnContext = r)),
a
);
})
: (this._c = function (e, t, n, r) {
return Jt(o, e, t, n, r, f);
}));
}
function or(e, t, n, r, i) {
var o = ye(e);
return (
(o.fnContext = n),
(o.fnOptions = r),
t.slot && ((o.data || (o.data = {})).slot = t.slot),
o
);
}
function ar(e, t) {
for (var n in t) e[S(n)] = t[n];
}
function sr(e) {
return e.name || e.__name || e._componentTag;
}
Pt(ir.prototype);
var ur = {
init: function (e, t) {
if (
e.componentInstance &&
!e.componentInstance._isDestroyed &&
e.data.keepAlive
) {
var n = e;
ur.prepatch(n, n);
} else
(e.componentInstance = (function (e, t) {
var n = { _isComponent: !0, _parentVnode: e, parent: t },
r = e.data.inlineTemplate;
return (
l(r) &&
((n.render = r.render),
(n.staticRenderFns = r.staticRenderFns)),
new e.componentOptions.Ctor(n)
);
})(e, $n)).$mount(t ? e.elm : void 0, t);
},
prepatch: function (e, t) {
var n = t.componentOptions;
!(function (e, t, n, r, i) {
var o = r.data.scopedSlots,
a = e.$scopedSlots,
u = !!(
(o && !o.$stable) ||
(a !== s && !a.$stable) ||
(o && e.$scopedSlots.$key !== o.$key) ||
(!o && e.$scopedSlots.$key)
),
c = !!(i || e.$options._renderChildren || u),
l = e.$vnode;
((e.$options._parentVnode = r),
(e.$vnode = r),
e._vnode && (e._vnode.parent = r),
(e.$options._renderChildren = i));
var d = r.data.attrs || s;
(e._attrsProxy &&
Gt(
e._attrsProxy,
d,
(l.data && l.data.attrs) || s,
e,
"$attrs",
) &&
(c = !0),
(e.$attrs = d),
(n = n || s));
var f = e.$options._parentListeners;
if (
(e._listenersProxy &&
Gt(e._listenersProxy, n, f || s, e, "$listeners"),
(e.$listeners = e.$options._parentListeners = n),
jn(e, n, f),
t && e.$options.props)
) {
Me(!1);
for (
var p = e._props, h = e.$options._propKeys || [], m = 0;
m < h.length;
m++
) {
var g = h[m],
v = e.$options.props;
p[g] = kr(g, v, t, e);
}
(Me(!0), (e.$options.propsData = t));
}
c && ((e.$slots = Ft(i, r.context)), e.$forceUpdate());
})(
(t.componentInstance = e.componentInstance),
n.propsData,
n.listeners,
t,
n.children,
);
},
insert: function (e) {
var t,
n = e.context,
r = e.componentInstance;
(r._isMounted || ((r._isMounted = !0), Hn(r, "mounted")),
e.data.keepAlive &&
(n._isMounted
? (((t = r)._inactive = !1), Vn.push(t))
: Gn(r, !0)));
},
destroy: function (e) {
var t = e.componentInstance;
t._isDestroyed ||
(e.data.keepAlive ? zn(t, !0) : t.$destroy());
},
},
cr = Object.keys(ur);
function lr(e, t, n, r, i) {
if (!c(e)) {
var o = n.$options._base;
if ((h(e) && (e = o.extend(e)), "function" == typeof e)) {
var a;
if (
c(e.cid) &&
((e = (function (e, t) {
if (d(e.error) && l(e.errorComp)) return e.errorComp;
if (l(e.resolved)) return e.resolved;
var n = Vt;
if (
(n &&
l(e.owners) &&
-1 === e.owners.indexOf(n) &&
e.owners.push(n),
d(e.loading) && l(e.loadingComp))
)
return e.loadingComp;
if (n && !l(e.owners)) {
var r = (e.owners = [n]),
i = !0,
o = null,
a = null;
n.$on("hook:destroyed", function () {
return A(r, n);
});
var s = function (e) {
for (var t = 0, n = r.length; t < n; t++)
r[t].$forceUpdate();
e &&
((r.length = 0),
null !== o && (clearTimeout(o), (o = null)),
null !== a && (clearTimeout(a), (a = null)));
},
u = G(function (n) {
((e.resolved = Wt(n, t)),
i ? (r.length = 0) : s(!0));
}),
f = G(function (t) {
l(e.errorComp) && ((e.error = !0), s(!0));
}),
p = e(u, f);
return (
h(p) &&
(_(p)
? c(e.resolved) && p.then(u, f)
: _(p.component) &&
(p.component.then(u, f),
l(p.error) && (e.errorComp = Wt(p.error, t)),
l(p.loading) &&
((e.loadingComp = Wt(p.loading, t)),
0 === p.delay
? (e.loading = !0)
: (o = setTimeout(function () {
((o = null),
c(e.resolved) &&
c(e.error) &&
((e.loading = !0), s(!1)));
}, p.delay || 200))),
l(p.timeout) &&
(a = setTimeout(function () {
((a = null), c(e.resolved) && f(null));
}, p.timeout)))),
(i = !1),
e.loading ? e.loadingComp : e.resolved
);
}
})((a = e), o)),
void 0 === e)
)
return (function (e, t, n, r, i) {
var o = ve();
return (
(o.asyncFactory = e),
(o.asyncMeta = {
data: t,
context: n,
children: r,
tag: i,
}),
o
);
})(a, t, n, r, i);
((t = t || {}),
Fr(e),
l(t.model) &&
(function (e, t) {
var n = (e.model && e.model.prop) || "value",
r = (e.model && e.model.event) || "input";
(t.attrs || (t.attrs = {}))[n] = t.model.value;
var i = t.on || (t.on = {}),
o = i[r],
a = t.model.callback;
l(o)
? (u(o) ? -1 === o.indexOf(a) : o !== a) &&
(i[r] = [a].concat(o))
: (i[r] = a);
})(e.options, t));
var f = (function (e, t, n) {
var r = t.options.props;
if (!c(r)) {
var i = {},
o = e.attrs,
a = e.props;
if (l(o) || l(a))
for (var s in r) {
var u = M(s);
gt(i, a, s, u, !0) || gt(i, o, s, u, !1);
}
return i;
}
})(t, e);
if (d(e.options.functional))
return (function (e, t, n, r, i) {
var o = e.options,
a = {},
c = o.props;
if (l(c)) for (var d in c) a[d] = kr(d, c, t || s);
else
(l(n.attrs) && ar(a, n.attrs),
l(n.props) && ar(a, n.props));
var f = new ir(n, a, i, r, e),
p = o.render.call(null, f._c, f);
if (p instanceof ge) return or(p, n, f.parent, o);
if (u(p)) {
for (
var h = vt(p) || [], m = new Array(h.length), g = 0;
g < h.length;
g++
)
m[g] = or(h[g], n, f.parent, o);
return m;
}
})(e, f, t, n, r);
var p = t.on;
if (((t.on = t.nativeOn), d(e.options.abstract))) {
var m = t.slot;
((t = {}), m && (t.slot = m));
}
!(function (e) {
for (
var t = e.hook || (e.hook = {}), n = 0;
n < cr.length;
n++
) {
var r = cr[n],
i = t[r],
o = ur[r];
i === o || (i && i._merged) || (t[r] = i ? dr(o, i) : o);
}
})(t);
var g = sr(e.options) || i;
return new ge(
"vue-component-"
.concat(e.cid)
.concat(g ? "-".concat(g) : ""),
t,
void 0,
void 0,
void 0,
n,
{
Ctor: e,
propsData: f,
listeners: p,
tag: i,
children: r,
},
a,
);
}
}
}
function dr(e, t) {
var n = function (n, r) {
(e(n, r), t(n, r));
};
return ((n._merged = !0), n);
}
var fr = R,
pr = W.optionMergeStrategies;
function hr(e, t) {
var n,
r,
i,
o =
!(arguments.length > 2 && arguments[2] !== undefined) ||
arguments[2];
if (!t) return e;
for (
var a = pe ? Reflect.ownKeys(t) : Object.keys(t), s = 0;
s < a.length;
s++
)
"__ob__" !== (n = a[s]) &&
((r = e[n]),
(i = t[n]),
o && x(e, n)
? r !== i && g(r) && g(i) && hr(r, i)
: Re(e, n, i));
return e;
}
function mr(e, t, n) {
return n
? function () {
var r = p(t) ? t.call(n, n) : t,
i = p(e) ? e.call(n, n) : e;
return r ? hr(r, i) : i;
}
: t
? e
? function () {
return hr(
p(t) ? t.call(this, this) : t,
p(e) ? e.call(this, this) : e,
);
}
: t
: e;
}
function gr(e, t) {
var n = t ? (e ? e.concat(t) : u(t) ? t : [t]) : e;
return n
? (function (e) {
for (var t = [], n = 0; n < e.length; n++)
-1 === t.indexOf(e[n]) && t.push(e[n]);
return t;
})(n)
: n;
}
function vr(e, t, n, r) {
var i = Object.create(e || null);
return t ? F(i, t) : i;
}
((pr.data = function (e, t, n) {
return n
? mr(e, t, n)
: t && "function" != typeof t
? e
: mr(e, t);
}),
V.forEach(function (e) {
pr[e] = gr;
}),
q.forEach(function (e) {
pr[e + "s"] = vr;
}),
(pr.watch = function (e, t, n, r) {
if ((e === ae && (e = void 0), t === ae && (t = void 0), !t))
return Object.create(e || null);
if (!e) return t;
var i = {};
for (var o in (F(i, e), t)) {
var a = i[o],
s = t[o];
(a && !u(a) && (a = [a]),
(i[o] = a ? a.concat(s) : u(s) ? s : [s]));
}
return i;
}),
(pr.props =
pr.methods =
pr.inject =
pr.computed =
function (e, t, n, r) {
if (!e) return t;
var i = Object.create(null);
return (F(i, e), t && F(i, t), i);
}),
(pr.provide = function (e, t) {
return e
? function () {
var n = Object.create(null);
return (
hr(n, p(e) ? e.call(this) : e),
t && hr(n, p(t) ? t.call(this) : t, !1),
n
);
}
: t;
}));
var _r = function (e, t) {
return void 0 === t ? e : t;
};
function yr(e, t, n) {
if (
(p(t) && (t = t.options),
(function (e, t) {
var n = e.props;
if (n) {
var r,
i,
o = {};
if (u(n))
for (r = n.length; r--; )
"string" == typeof (i = n[r]) &&
(o[S(i)] = { type: null });
else if (g(n))
for (var a in n)
((i = n[a]), (o[S(a)] = g(i) ? i : { type: i }));
e.props = o;
}
})(t),
(function (e, t) {
var n = e.inject;
if (n) {
var r = (e.inject = {});
if (u(n))
for (var i = 0; i < n.length; i++)
r[n[i]] = { from: n[i] };
else if (g(n))
for (var o in n) {
var a = n[o];
r[o] = g(a) ? F({ from: o }, a) : { from: a };
}
}
})(t),
(function (e) {
var t = e.directives;
if (t)
for (var n in t) {
var r = t[n];
p(r) && (t[n] = { bind: r, update: r });
}
})(t),
!t._base &&
(t["extends"] && (e = yr(e, t["extends"], n)), t.mixins))
)
for (var r = 0, i = t.mixins.length; r < i; r++)
e = yr(e, t.mixins[r], n);
var o,
a = {};
for (o in e) s(o);
for (o in t) x(e, o) || s(o);
function s(r) {
var i = pr[r] || _r;
a[r] = i(e[r], t[r], n, r);
}
return a;
}
function br(e, t, n, r) {
if ("string" == typeof n) {
var i = e[t];
if (x(i, n)) return i[n];
var o = S(n);
if (x(i, o)) return i[o];
var a = O(o);
return x(i, a) ? i[a] : i[n] || i[o] || i[a];
}
}
function kr(e, t, n, r) {
var i = t[e],
o = !x(n, e),
a = n[e],
s = Cr(Boolean, i.type);
if (s > -1)
if (o && !x(i, "default")) a = !1;
else if ("" === a || a === M(e)) {
var u = Cr(String, i.type);
(u < 0 || s < u) && (a = !0);
}
if (void 0 === a) {
a = (function (e, t, n) {
if (x(t, "default")) {
var r = t["default"];
return e &&
e.$options.propsData &&
void 0 === e.$options.propsData[n] &&
void 0 !== e._props[n]
? e._props[n]
: p(r) && "Function" !== Er(t.type)
? r.call(e)
: r;
}
})(r, i, e);
var c = Te;
(Me(!0), Fe(a), Me(c));
}
return a;
}
var wr = /^\s*function (\w+)/;
function Er(e) {
var t = e && e.toString().match(wr);
return t ? t[1] : "";
}
function Ar(e, t) {
return Er(e) === Er(t);
}
function Cr(e, t) {
if (!u(t)) return Ar(t, e) ? 0 : -1;
for (var n = 0, r = t.length; n < r; n++)
if (Ar(t[n], e)) return n;
return -1;
}
var xr = { enumerable: !0, configurable: !0, get: R, set: R };
function Ir(e, t, n) {
((xr.get = function () {
return this[t][n];
}),
(xr.set = function (e) {
this[t][n] = e;
}),
Object.defineProperty(e, n, xr));
}
function Dr(e) {
var t = e.$options;
if (
(t.props &&
(function (e, t) {
var n = e.$options.propsData || {},
r = (e._props = Ue({})),
i = (e.$options._propKeys = []),
o = !e.$parent;
for (var a in (o || Me(!1), t))
(i.push(a),
Le(r, a, kr(a, t, n, e), void 0, !0),
a in e || Ir(e, "_props", a));
Me(!0);
})(e, t.props),
(function (e) {
var t = e.$options,
n = t.setup;
if (n) {
var r = (e._setupContext = Bt(e));
(me(e), Ce());
var i = en(n, null, [e._props || Ue({}), r], e, "setup");
if ((xe(), me(), p(i))) t.render = i;
else if (h(i))
if (((e._setupState = i), i.__sfc)) {
var o = (e._setupProxy = {});
for (var a in i) "__sfc" !== a && Xe(o, i, a);
} else for (var s in i) X(s) || Xe(e, i, s);
}
})(e),
t.methods &&
(function (e, t) {
for (var n in (e.$options.props, t))
e[n] = "function" != typeof t[n] ? R : N(t[n], e);
})(e, t.methods),
t.data)
)
!(function (e) {
var t = e.$options.data;
g(
(t = e._data =
p(t)
? (function (e, t) {
Ce();
try {
return e.call(t, t);
} catch (e) {
return (Zt(e, t, "data()"), {});
} finally {
xe();
}
})(t, e)
: t || {}),
) || (t = {});
var n = Object.keys(t),
r = e.$options.props;
e.$options.methods;
for (var i = n.length; i--; ) {
var o = n[i];
(r && x(r, o)) || X(o) || Ir(e, "_data", o);
}
var a = Fe(t);
a && a.vmCount++;
})(e);
else {
var n = Fe((e._data = {}));
n && n.vmCount++;
}
(t.computed &&
(function (e, t) {
var n = (e._computedWatchers = Object.create(null)),
r = ce();
for (var i in t) {
var o = t[i],
a = p(o) ? o : o.get;
(r || (n[i] = new Pn(e, a || R, R, Sr)),
i in e || Or(e, i, o));
}
})(e, t.computed),
t.watch &&
t.watch !== ae &&
(function (e, t) {
for (var n in t) {
var r = t[n];
if (u(r))
for (var i = 0; i < r.length; i++) Nr(e, n, r[i]);
else Nr(e, n, r);
}
})(e, t.watch));
}
var Sr = { lazy: !0 };
function Or(e, t, n) {
var r = !ce();
(p(n)
? ((xr.get = r ? Tr(t) : Mr(n)), (xr.set = R))
: ((xr.get = n.get
? r && !1 !== n.cache
? Tr(t)
: Mr(n.get)
: R),
(xr.set = n.set || R)),
Object.defineProperty(e, t, xr));
}
function Tr(e) {
return function () {
var t = this._computedWatchers && this._computedWatchers[e];
if (t)
return (
t.dirty && t.evaluate(),
Ee.target && t.depend(),
t.value
);
};
}
function Mr(e) {
return function () {
return e.call(this, this);
};
}
function Nr(e, t, n, r) {
return (
g(n) && ((r = n), (n = n.handler)),
"string" == typeof n && (n = e[n]),
e.$watch(t, n, r)
);
}
var Pr = 0;
function Fr(e) {
var t = e.options;
if (e["super"]) {
var n = Fr(e["super"]);
if (n !== e.superOptions) {
e.superOptions = n;
var r = (function (e) {
var t,
n = e.options,
r = e.sealedOptions;
for (var i in n)
n[i] !== r[i] && (t || (t = {}), (t[i] = n[i]));
return t;
})(e);
(r && F(e.extendOptions, r),
(t = e.options = yr(n, e.extendOptions)).name &&
(t.components[t.name] = e));
}
}
return t;
}
function Lr(e) {
this._init(e);
}
function Rr(e) {
return e && (sr(e.Ctor.options) || e.tag);
}
function jr(e, t) {
return u(e)
? e.indexOf(t) > -1
: "string" == typeof e
? e.split(",").indexOf(t) > -1
: ((n = e), "[object RegExp]" === m.call(n) && e.test(t));
var n;
}
function $r(e, t) {
var n = e.cache,
r = e.keys,
i = e._vnode,
o = e.$vnode;
for (var a in n) {
var s = n[a];
if (s) {
var u = s.name;
u && !t(u) && Ur(n, a, r, i);
}
}
o.componentOptions.children = void 0;
}
function Ur(e, t, n, r) {
var i = e[t];
(!i || (r && i.tag === r.tag) || i.componentInstance.$destroy(),
(e[t] = null),
A(n, t));
}
(!(function (e) {
e.prototype._init = function (e) {
var t = this;
((t._uid = Pr++),
(t._isVue = !0),
(t.__v_skip = !0),
(t._scope = new ct(!0)),
(t._scope.parent = void 0),
(t._scope._vm = !0),
e && e._isComponent
? (function (e, t) {
var n = (e.$options = Object.create(
e.constructor.options,
)),
r = t._parentVnode;
((n.parent = t.parent), (n._parentVnode = r));
var i = r.componentOptions;
((n.propsData = i.propsData),
(n._parentListeners = i.listeners),
(n._renderChildren = i.children),
(n._componentTag = i.tag),
t.render &&
((n.render = t.render),
(n.staticRenderFns = t.staticRenderFns)));
})(t, e)
: (t.$options = yr(Fr(t.constructor), e || {}, t)),
(t._renderProxy = t),
(t._self = t),
(function (e) {
var t = e.$options,
n = t.parent;
if (n && !t.abstract) {
for (; n.$options.abstract && n.$parent; ) n = n.$parent;
n.$children.push(e);
}
((e.$parent = n),
(e.$root = n ? n.$root : e),
(e.$children = []),
(e.$refs = {}),
(e._provided = n ? n._provided : Object.create(null)),
(e._watcher = null),
(e._inactive = null),
(e._directInactive = !1),
(e._isMounted = !1),
(e._isDestroyed = !1),
(e._isBeingDestroyed = !1));
})(t),
(function (e) {
((e._events = Object.create(null)), (e._hasHookEvent = !1));
var t = e.$options._parentListeners;
t && jn(e, t);
})(t),
(function (e) {
((e._vnode = null), (e._staticTrees = null));
var t = e.$options,
n = (e.$vnode = t._parentVnode),
r = n && n.context;
((e.$slots = Ft(t._renderChildren, r)),
(e.$scopedSlots = n
? jt(e.$parent, n.data.scopedSlots, e.$slots)
: s),
(e._c = function (t, n, r, i) {
return Jt(e, t, n, r, i, !1);
}),
(e.$createElement = function (t, n, r, i) {
return Jt(e, t, n, r, i, !0);
}));
var i = n && n.data;
(Le(e, "$attrs", (i && i.attrs) || s, null, !0),
Le(e, "$listeners", t._parentListeners || s, null, !0));
})(t),
Hn(t, "beforeCreate", void 0, !1),
(function (e) {
var t = rr(e.$options.inject, e);
t &&
(Me(!1),
Object.keys(t).forEach(function (n) {
Le(e, n, t[n]);
}),
Me(!0));
})(t),
Dr(t),
(function (e) {
var t = e.$options.provide;
if (t) {
var n = p(t) ? t.call(e) : t;
if (!h(n)) return;
for (
var r = dt(e),
i = pe ? Reflect.ownKeys(n) : Object.keys(n),
o = 0;
o < i.length;
o++
) {
var a = i[o];
Object.defineProperty(
r,
a,
Object.getOwnPropertyDescriptor(n, a),
);
}
}
})(t),
Hn(t, "created"),
t.$options.el && t.$mount(t.$options.el));
};
})(Lr),
(function (e) {
(Object.defineProperty(e.prototype, "$data", {
get: function () {
return this._data;
},
}),
Object.defineProperty(e.prototype, "$props", {
get: function () {
return this._props;
},
}),
(e.prototype.$set = Re),
(e.prototype.$delete = je),
(e.prototype.$watch = function (e, t, n) {
var r = this;
if (g(t)) return Nr(r, e, t, n);
(n = n || {}).user = !0;
var i = new Pn(r, e, t, n);
if (n.immediate) {
var o = 'callback for immediate watcher "'.concat(
i.expression,
'"',
);
(Ce(), en(t, r, [i.value], r, o), xe());
}
return function () {
i.teardown();
};
}));
})(Lr),
(function (e) {
var t = /^hook:/;
((e.prototype.$on = function (e, n) {
var r = this;
if (u(e))
for (var i = 0, o = e.length; i < o; i++) r.$on(e[i], n);
else
((r._events[e] || (r._events[e] = [])).push(n),
t.test(e) && (r._hasHookEvent = !0));
return r;
}),
(e.prototype.$once = function (e, t) {
var n = this;
function r() {
(n.$off(e, r), t.apply(n, arguments));
}
return ((r.fn = t), n.$on(e, r), n);
}),
(e.prototype.$off = function (e, t) {
var n = this;
if (!arguments.length)
return ((n._events = Object.create(null)), n);
if (u(e)) {
for (var r = 0, i = e.length; r < i; r++) n.$off(e[r], t);
return n;
}
var o = n._events[e];
if (!o) return n;
if (!t) return ((n._events[e] = null), n);
for (var a, s = o.length; s--; )
if ((a = o[s]) === t || a.fn === t) {
o.splice(s, 1);
break;
}
return n;
}),
(e.prototype.$emit = function (e) {
var t = this,
n = t._events[e];
if (n) {
n = n.length > 1 ? P(n) : n;
for (
var r = P(arguments, 1),
i = 'event handler for "'.concat(e, '"'),
o = 0,
a = n.length;
o < a;
o++
)
en(n[o], t, r, t, i);
}
return t;
}));
})(Lr),
(function (e) {
((e.prototype._update = function (e, t) {
var n = this,
r = n.$el,
i = n._vnode,
o = Un(n);
((n._vnode = e),
(n.$el = i
? n.__patch__(i, e)
: n.__patch__(n.$el, e, t, !1)),
o(),
r && (r.__vue__ = null),
n.$el && (n.$el.__vue__ = n));
for (
var a = n;
a && a.$vnode && a.$parent && a.$vnode === a.$parent._vnode;
)
((a.$parent.$el = a.$el), (a = a.$parent));
}),
(e.prototype.$forceUpdate = function () {
this._watcher && this._watcher.update();
}),
(e.prototype.$destroy = function () {
var e = this;
if (!e._isBeingDestroyed) {
(Hn(e, "beforeDestroy"), (e._isBeingDestroyed = !0));
var t = e.$parent;
(!t ||
t._isBeingDestroyed ||
e.$options.abstract ||
A(t.$children, e),
e._scope.stop(),
e._data.__ob__ && e._data.__ob__.vmCount--,
(e._isDestroyed = !0),
e.__patch__(e._vnode, null),
Hn(e, "destroyed"),
e.$off(),
e.$el && (e.$el.__vue__ = null),
e.$vnode && (e.$vnode.parent = null));
}
}));
})(Lr),
(function (e) {
(Pt(e.prototype),
(e.prototype.$nextTick = function (e) {
return pn(e, this);
}),
(e.prototype._render = function () {
var e = this,
t = e.$options,
n = t.render,
r = t._parentVnode;
(r &&
e._isMounted &&
((e.$scopedSlots = jt(
e.$parent,
r.data.scopedSlots,
e.$slots,
e.$scopedSlots,
)),
e._slotsProxy && Ht(e._slotsProxy, e.$scopedSlots)),
(e.$vnode = r));
var i,
o = he,
a = Vt;
try {
(me(e),
(Vt = e),
(i = n.call(e._renderProxy, e.$createElement)));
} catch (u) {
(Zt(u, e, "render"), (i = e._vnode));
} finally {
((Vt = a), me(o));
}
return (
u(i) && 1 === i.length && (i = i[0]),
i instanceof ge || (i = ve()),
(i.parent = r),
i
);
}));
})(Lr));
var Br = [String, RegExp, Array],
Gr = {
KeepAlive: {
name: "keep-alive",
abstract: !0,
props: { include: Br, exclude: Br, max: [String, Number] },
methods: {
cacheVNode: function () {
var e = this.cache,
t = this.keys,
n = this.vnodeToCache,
r = this.keyToCache;
if (n) {
var i = n.tag,
o = n.componentInstance,
a = n.componentOptions;
((e[r] = { name: Rr(a), tag: i, componentInstance: o }),
t.push(r),
this.max &&
t.length > parseInt(this.max) &&
Ur(e, t[0], t, this._vnode),
(this.vnodeToCache = null));
}
},
},
created: function () {
((this.cache = Object.create(null)), (this.keys = []));
},
destroyed: function () {
for (var e in this.cache) Ur(this.cache, e, this.keys);
},
mounted: function () {
var e = this;
(this.cacheVNode(),
this.$watch("include", function (t) {
$r(e, function (e) {
return jr(t, e);
});
}),
this.$watch("exclude", function (t) {
$r(e, function (e) {
return !jr(t, e);
});
}));
},
updated: function () {
this.cacheVNode();
},
render: function () {
var e = this.$slots["default"],
t = Xt(e),
n = t && t.componentOptions;
if (n) {
var r = Rr(n),
i = this.include,
o = this.exclude;
if ((i && (!r || !jr(i, r))) || (o && r && jr(o, r)))
return t;
var a = this.cache,
s = this.keys,
u =
null == t.key
? n.Ctor.cid + (n.tag ? "::".concat(n.tag) : "")
: t.key;
(a[u]
? ((t.componentInstance = a[u].componentInstance),
A(s, u),
s.push(u))
: ((this.vnodeToCache = t), (this.keyToCache = u)),
(t.data.keepAlive = !0));
}
return t || (e && e[0]);
},
},
};
(!(function (e) {
var t = {
get: function () {
return W;
},
};
(Object.defineProperty(e, "config", t),
(e.util = {
warn: fr,
extend: F,
mergeOptions: yr,
defineReactive: Le,
}),
(e.set = Re),
(e["delete"] = je),
(e.nextTick = pn),
(e.observable = function (e) {
return (Fe(e), e);
}),
(e.options = Object.create(null)),
q.forEach(function (t) {
e.options[t + "s"] = Object.create(null);
}),
(e.options._base = e),
F(e.options.components, Gr),
(function (e) {
e.use = function (e) {
var t =
this._installedPlugins || (this._installedPlugins = []);
if (t.indexOf(e) > -1) return this;
var n = P(arguments, 1);
return (
n.unshift(this),
p(e.install)
? e.install.apply(e, n)
: p(e) && e.apply(null, n),
t.push(e),
this
);
};
})(e),
(function (e) {
e.mixin = function (e) {
return ((this.options = yr(this.options, e)), this);
};
})(e),
(function (e) {
e.cid = 0;
var t = 1;
e.extend = function (e) {
e = e || {};
var n = this,
r = n.cid,
i = e._Ctor || (e._Ctor = {});
if (i[r]) return i[r];
var o = sr(e) || sr(n.options),
a = function (e) {
this._init(e);
};
return (
((a.prototype = Object.create(n.prototype)).constructor =
a),
(a.cid = t++),
(a.options = yr(n.options, e)),
(a["super"] = n),
a.options.props &&
(function (e) {
var t = e.options.props;
for (var n in t) Ir(e.prototype, "_props", n);
})(a),
a.options.computed &&
(function (e) {
var t = e.options.computed;
for (var n in t) Or(e.prototype, n, t[n]);
})(a),
(a.extend = n.extend),
(a.mixin = n.mixin),
(a.use = n.use),
q.forEach(function (e) {
a[e] = n[e];
}),
o && (a.options.components[o] = a),
(a.superOptions = n.options),
(a.extendOptions = e),
(a.sealedOptions = F({}, a.options)),
(i[r] = a),
a
);
};
})(e),
(function (e) {
q.forEach(function (t) {
e[t] = function (e, n) {
return n
? ("component" === t &&
g(n) &&
((n.name = n.name || e),
(n = this.options._base.extend(n))),
"directive" === t &&
p(n) &&
(n = { bind: n, update: n }),
(this.options[t + "s"][e] = n),
n)
: this.options[t + "s"][e];
};
});
})(e));
})(Lr),
Object.defineProperty(Lr.prototype, "$isServer", { get: ce }),
Object.defineProperty(Lr.prototype, "$ssrContext", {
get: function () {
return this.$vnode && this.$vnode.ssrContext;
},
}),
Object.defineProperty(Lr, "FunctionalRenderContext", {
value: ir,
}),
(Lr.version = In));
var zr = w("style,class"),
Hr = w("input,textarea,option,select,progress"),
qr = w("contenteditable,draggable,spellcheck"),
Vr = w("events,caret,typing,plaintext-only"),
Wr = function (e, t) {
return Qr(t) || "false" === t
? "false"
: "contenteditable" === e && Vr(t)
? t
: "true";
},
Xr = w(
"allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible",
),
Kr = "http://www.w3.org/1999/xlink",
Yr = function (e) {
return ":" === e.charAt(5) && "xlink" === e.slice(0, 5);
},
Jr = function (e) {
return Yr(e) ? e.slice(6, e.length) : "";
},
Qr = function (e) {
return null == e || !1 === e;
};
function Zr(e, t) {
return {
staticClass: ei(e.staticClass, t.staticClass),
class: l(e["class"]) ? [e["class"], t["class"]] : t["class"],
};
}
function ei(e, t) {
return e ? (t ? e + " " + t : e) : t || "";
}
function ti(e) {
return Array.isArray(e)
? (function (e) {
for (var t, n = "", r = 0, i = e.length; r < i; r++)
l((t = ti(e[r]))) &&
"" !== t &&
(n && (n += " "), (n += t));
return n;
})(e)
: h(e)
? (function (e) {
var t = "";
for (var n in e) e[n] && (t && (t += " "), (t += n));
return t;
})(e)
: "string" == typeof e
? e
: "";
}
var ni = {
svg: "http://www.w3.org/2000/svg",
math: "http://www.w3.org/1998/Math/MathML",
},
ri = w(
"html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot",
),
ii = w(
"svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",
!0,
),
oi = function (e) {
return ri(e) || ii(e);
},
ai = Object.create(null),
si = w("text,number,password,search,email,tel,url"),
ui = Object.freeze({
__proto__: null,
createElement: function (e, t) {
var n = document.createElement(e);
return (
"select" !== e ||
(t.data &&
t.data.attrs &&
void 0 !== t.data.attrs.multiple &&
n.setAttribute("multiple", "multiple")),
n
);
},
createElementNS: function (e, t) {
return document.createElementNS(ni[e], t);
},
createTextNode: function (e) {
return document.createTextNode(e);
},
createComment: function (e) {
return document.createComment(e);
},
insertBefore: function (e, t, n) {
e.insertBefore(t, n);
},
removeChild: function (e, t) {
e.removeChild(t);
},
appendChild: function (e, t) {
e.appendChild(t);
},
parentNode: function (e) {
return e.parentNode;
},
nextSibling: function (e) {
return e.nextSibling;
},
tagName: function (e) {
return e.tagName;
},
setTextContent: function (e, t) {
e.textContent = t;
},
setStyleScope: function (e, t) {
e.setAttribute(t, "");
},
}),
ci = {
create: function (e, t) {
li(t);
},
update: function (e, t) {
e.data.ref !== t.data.ref && (li(e, !0), li(t));
},
destroy: function (e) {
li(e, !0);
},
};
function li(e, t) {
var n = e.data.ref;
if (l(n)) {
var r = e.context,
i = e.componentInstance || e.elm,
o = t ? null : i,
a = t ? void 0 : i;
if (p(n)) en(n, r, [o], r, "template ref function");
else {
var s = e.data.refInFor,
c = "string" == typeof n || "number" == typeof n,
d = Ve(n),
f = r.$refs;
if (c || d)
if (s) {
var h = c ? f[n] : n.value;
t
? u(h) && A(h, i)
: u(h)
? h.includes(i) || h.push(i)
: c
? ((f[n] = [i]), di(r, n, f[n]))
: (n.value = [i]);
} else if (c) {
if (t && f[n] !== i) return;
((f[n] = a), di(r, n, o));
} else if (d) {
if (t && n.value !== i) return;
n.value = o;
}
}
}
}
function di(e, t, n) {
var r = e._setupState;
r && x(r, t) && (Ve(r[t]) ? (r[t].value = n) : (r[t] = n));
}
var fi = new ge("", {}, []),
pi = ["create", "activate", "update", "remove", "destroy"];
function hi(e, t) {
return (
e.key === t.key &&
e.asyncFactory === t.asyncFactory &&
((e.tag === t.tag &&
e.isComment === t.isComment &&
l(e.data) === l(t.data) &&
(function (e, t) {
if ("input" !== e.tag) return !0;
var n,
r = l((n = e.data)) && l((n = n.attrs)) && n.type,
i = l((n = t.data)) && l((n = n.attrs)) && n.type;
return r === i || (si(r) && si(i));
})(e, t)) ||
(d(e.isAsyncPlaceholder) && c(t.asyncFactory.error)))
);
}
function mi(e, t, n) {
var r,
i,
o = {};
for (r = t; r <= n; ++r) l((i = e[r].key)) && (o[i] = r);
return o;
}
var gi = {
create: vi,
update: vi,
destroy: function (e) {
vi(e, fi);
},
};
function vi(e, t) {
(e.data.directives || t.data.directives) &&
(function (e, t) {
var n,
r,
i,
o = e === fi,
a = t === fi,
s = yi(e.data.directives, e.context),
u = yi(t.data.directives, t.context),
c = [],
l = [];
for (n in u)
((r = s[n]),
(i = u[n]),
r
? ((i.oldValue = r.value),
(i.oldArg = r.arg),
ki(i, "update", t, e),
i.def && i.def.componentUpdated && l.push(i))
: (ki(i, "bind", t, e),
i.def && i.def.inserted && c.push(i)));
if (c.length) {
var d = function () {
for (var n = 0; n < c.length; n++)
ki(c[n], "inserted", t, e);
};
o ? mt(t, "insert", d) : d();
}
if (
(l.length &&
mt(t, "postpatch", function () {
for (var n = 0; n < l.length; n++)
ki(l[n], "componentUpdated", t, e);
}),
!o)
)
for (n in s) u[n] || ki(s[n], "unbind", e, e, a);
})(e, t);
}
var _i = Object.create(null);
function yi(e, t) {
var n,
r,
i = Object.create(null);
if (!e) return i;
for (n = 0; n < e.length; n++) {
if (
((r = e[n]).modifiers || (r.modifiers = _i),
(i[bi(r)] = r),
t._setupState && t._setupState.__sfc)
) {
var o = r.def || br(t, "_setupState", "v-" + r.name);
r.def = "function" == typeof o ? { bind: o, update: o } : o;
}
r.def = r.def || br(t.$options, "directives", r.name);
}
return i;
}
function bi(e) {
return (
e.rawName ||
""
.concat(e.name, ".")
.concat(Object.keys(e.modifiers || {}).join("."))
);
}
function ki(e, t, n, r, i) {
var o = e.def && e.def[t];
if (o)
try {
o(n.elm, e, n, r, i);
} catch (r) {
Zt(
r,
n.context,
"directive ".concat(e.name, " ").concat(t, " hook"),
);
}
}
var wi = [ci, gi];
function Ei(e, t) {
var n = t.componentOptions;
if (
!(
(l(n) && !1 === n.Ctor.options.inheritAttrs) ||
(c(e.data.attrs) && c(t.data.attrs))
)
) {
var r,
i,
o = t.elm,
a = e.data.attrs || {},
s = t.data.attrs || {};
for (r in ((l(s.__ob__) || d(s._v_attr_proxy)) &&
(s = t.data.attrs = F({}, s)),
s))
((i = s[r]), a[r] !== i && Ai(o, r, i, t.data.pre));
for (r in ((ee || ne) &&
s.value !== a.value &&
Ai(o, "value", s.value),
a))
c(s[r]) &&
(Yr(r)
? o.removeAttributeNS(Kr, Jr(r))
: qr(r) || o.removeAttribute(r));
}
}
function Ai(e, t, n, r) {
r || e.tagName.indexOf("-") > -1
? Ci(e, t, n)
: Xr(t)
? Qr(n)
? e.removeAttribute(t)
: ((n =
"allowfullscreen" === t && "EMBED" === e.tagName
? "true"
: t),
e.setAttribute(t, n))
: qr(t)
? e.setAttribute(t, Wr(t, n))
: Yr(t)
? Qr(n)
? e.removeAttributeNS(Kr, Jr(t))
: e.setAttributeNS(Kr, t, n)
: Ci(e, t, n);
}
function Ci(e, t, n) {
Qr(n)
? e.removeAttribute(t)
: (!ee ||
te ||
"TEXTAREA" !== e.tagName ||
"placeholder" !== t ||
"" === n ||
e.__ieph ||
(e.addEventListener("input", function r(t) {
(t.stopImmediatePropagation(),
e.removeEventListener("input", r));
}),
(e.__ieph = !0)),
e.setAttribute(t, n));
}
var xi = { create: Ei, update: Ei };
function Ii(e, t) {
var n = t.elm,
r = t.data,
i = e.data;
if (
!(
c(r.staticClass) &&
c(r["class"]) &&
(c(i) || (c(i.staticClass) && c(i["class"])))
)
) {
var o = (function (e) {
for (var t = e.data, n = e, r = e; l(r.componentInstance); )
(r = r.componentInstance._vnode) &&
r.data &&
(t = Zr(r.data, t));
for (; l((n = n.parent)); )
n && n.data && (t = Zr(t, n.data));
return (function (e, t) {
return l(e) || l(t) ? ei(e, ti(t)) : "";
})(t.staticClass, t["class"]);
})(t),
a = n._transitionClasses;
(l(a) && (o = ei(o, ti(a))),
o !== n._prevClass &&
(n.setAttribute("class", o), (n._prevClass = o)));
}
}
var Di,
Si = { create: Ii, update: Ii },
Oi = "__r",
Ti = "__c";
function Mi(e, t, n) {
var r = Di;
return function i() {
null !== t.apply(null, arguments) && Fi(e, i, n, r);
};
}
var Ni = on && !(oe && Number(oe[1]) <= 53);
function Pi(e, t, n, r) {
if (Ni) {
var i = Jn,
o = t;
t = o._wrapper = function (e) {
if (
e.target === e.currentTarget ||
e.timeStamp >= i ||
e.timeStamp <= 0 ||
e.target.ownerDocument !== document
)
return o.apply(this, arguments);
};
}
Di.addEventListener(e, t, se ? { capture: n, passive: r } : n);
}
function Fi(e, t, n, r) {
(r || Di).removeEventListener(e, t._wrapper || t, n);
}
function Li(e, t) {
if (!c(e.data.on) || !c(t.data.on)) {
var n = t.data.on || {},
r = e.data.on || {};
((Di = t.elm || e.elm),
(function (e) {
if (l(e[Oi])) {
var t = ee ? "change" : "input";
((e[t] = [].concat(e[Oi], e[t] || [])), delete e[Oi]);
}
l(e[Ti]) &&
((e.change = [].concat(e[Ti], e.change || [])),
delete e[Ti]);
})(n),
ht(n, r, Pi, Fi, Mi, t.context),
(Di = void 0));
}
}
var Ri,
ji = {
create: Li,
update: Li,
destroy: function (e) {
return Li(e, fi);
},
};
function $i(e, t) {
if (!c(e.data.domProps) || !c(t.data.domProps)) {
var n,
r,
i = t.elm,
o = e.data.domProps || {},
a = t.data.domProps || {};
for (n in ((l(a.__ob__) || d(a._v_attr_proxy)) &&
(a = t.data.domProps = F({}, a)),
o))
n in a || (i[n] = "");
for (n in a) {
if (((r = a[n]), "textContent" === n || "innerHTML" === n)) {
if ((t.children && (t.children.length = 0), r === o[n]))
continue;
1 === i.childNodes.length && i.removeChild(i.childNodes[0]);
}
if ("value" === n && "PROGRESS" !== i.tagName) {
i._value = r;
var s = c(r) ? "" : String(r);
Ui(i, s) && (i.value = s);
} else if (
"innerHTML" === n &&
ii(i.tagName) &&
c(i.innerHTML)
) {
(Ri = Ri || document.createElement("div")).innerHTML =
"");
for (var u = Ri.firstChild; i.firstChild; )
i.removeChild(i.firstChild);
for (; u.firstChild; ) i.appendChild(u.firstChild);
} else if (r !== o[n])
try {
i[n] = r;
} catch (e) {}
}
}
}
function Ui(e, t) {
return (
!e.composing &&
("OPTION" === e.tagName ||
(function (e, t) {
var n = !0;
try {
n = document.activeElement !== e;
} catch (e) {}
return n && e.value !== t;
})(e, t) ||
(function (e, t) {
var n = e.value,
r = e._vModifiers;
if (l(r)) {
if (r.number) return k(n) !== k(t);
if (r.trim) return n.trim() !== t.trim();
}
return n !== t;
})(e, t))
);
}
var Bi = { create: $i, update: $i },
Gi = I(function (e) {
var t = {},
n = /:(.+)/;
return (
e.split(/;(?![^(]*\))/g).forEach(function (e) {
if (e) {
var r = e.split(n);
r.length > 1 && (t[r[0].trim()] = r[1].trim());
}
}),
t
);
});
function zi(e) {
var t = Hi(e.style);
return e.staticStyle ? F(e.staticStyle, t) : t;
}
function Hi(e) {
return Array.isArray(e) ? L(e) : "string" == typeof e ? Gi(e) : e;
}
var qi,
Vi = /^--/,
Wi = /\s*!important$/,
Xi = function (e, t, n) {
if (Vi.test(t)) e.style.setProperty(t, n);
else if (Wi.test(n))
e.style.setProperty(M(t), n.replace(Wi, ""), "important");
else {
var r = Yi(t);
if (Array.isArray(n))
for (var i = 0, o = n.length; i < o; i++) e.style[r] = n[i];
else e.style[r] = n;
}
},
Ki = ["Webkit", "Moz", "ms"],
Yi = I(function (e) {
if (
((qi = qi || document.createElement("div").style),
"filter" !== (e = S(e)) && e in qi)
)
return e;
for (
var t = e.charAt(0).toUpperCase() + e.slice(1), n = 0;
n < Ki.length;
n++
) {
var r = Ki[n] + t;
if (r in qi) return r;
}
});
function Ji(e, t) {
var n = t.data,
r = e.data;
if (
!(
c(n.staticStyle) &&
c(n.style) &&
c(r.staticStyle) &&
c(r.style)
)
) {
var i,
o,
a = t.elm,
s = r.staticStyle,
u = r.normalizedStyle || r.style || {},
d = s || u,
f = Hi(t.data.style) || {};
t.data.normalizedStyle = l(f.__ob__) ? F({}, f) : f;
var p = (function (e, t) {
for (var n, r = {}, i = e; i.componentInstance; )
(i = i.componentInstance._vnode) &&
i.data &&
(n = zi(i.data)) &&
F(r, n);
(n = zi(e.data)) && F(r, n);
for (var o = e; (o = o.parent); )
o.data && (n = zi(o.data)) && F(r, n);
return r;
})(t);
for (o in d) c(p[o]) && Xi(a, o, "");
for (o in p) ((i = p[o]), Xi(a, o, null == i ? "" : i));
}
}
var Qi = { create: Ji, update: Ji },
Zi = /\s+/;
function eo(e, t) {
if (t && (t = t.trim()))
if (e.classList)
t.indexOf(" ") > -1
? t.split(Zi).forEach(function (t) {
return e.classList.add(t);
})
: e.classList.add(t);
else {
var n = " ".concat(e.getAttribute("class") || "", " ");
n.indexOf(" " + t + " ") < 0 &&
e.setAttribute("class", (n + t).trim());
}
}
function to(e, t) {
if (t && (t = t.trim()))
if (e.classList)
(t.indexOf(" ") > -1
? t.split(Zi).forEach(function (t) {
return e.classList.remove(t);
})
: e.classList.remove(t),
e.classList.length || e.removeAttribute("class"));
else {
for (
var n = " ".concat(e.getAttribute("class") || "", " "),
r = " " + t + " ";
n.indexOf(r) >= 0;
)
n = n.replace(r, " ");
(n = n.trim())
? e.setAttribute("class", n)
: e.removeAttribute("class");
}
}
function no(e) {
if (e) {
if ("object" == (0, a["default"])(e)) {
var t = {};
return (!1 !== e.css && F(t, ro(e.name || "v")), F(t, e), t);
}
return "string" == typeof e ? ro(e) : void 0;
}
}
var ro = I(function (e) {
return {
enterClass: "".concat(e, "-enter"),
enterToClass: "".concat(e, "-enter-to"),
enterActiveClass: "".concat(e, "-enter-active"),
leaveClass: "".concat(e, "-leave"),
leaveToClass: "".concat(e, "-leave-to"),
leaveActiveClass: "".concat(e, "-leave-active"),
};
}),
io = Q && !te,
oo = "transition",
ao = "animation",
so = "transition",
uo = "transitionend",
co = "animation",
lo = "animationend";
io &&
(void 0 === window.ontransitionend &&
void 0 !== window.onwebkittransitionend &&
((so = "WebkitTransition"), (uo = "webkitTransitionEnd")),
void 0 === window.onanimationend &&
void 0 !== window.onwebkitanimationend &&
((co = "WebkitAnimation"), (lo = "webkitAnimationEnd")));
var fo = Q
? window.requestAnimationFrame
? window.requestAnimationFrame.bind(window)
: setTimeout
: function (e) {
return e();
};
function po(e) {
fo(function () {
fo(e);
});
}
function ho(e, t) {
var n = e._transitionClasses || (e._transitionClasses = []);
n.indexOf(t) < 0 && (n.push(t), eo(e, t));
}
function mo(e, t) {
(e._transitionClasses && A(e._transitionClasses, t), to(e, t));
}
function go(e, t, n) {
var r = _o(e, t),
i = r.type,
o = r.timeout,
a = r.propCount;
if (!i) return n();
var s = i === oo ? uo : lo,
u = 0,
c = function () {
(e.removeEventListener(s, l), n());
},
l = function (t) {
t.target === e && ++u >= a && c();
};
(setTimeout(function () {
u < a && c();
}, o + 1),
e.addEventListener(s, l));
}
var vo = /\b(transform|all)(,|$)/;
function _o(e, t) {
var n,
r = window.getComputedStyle(e),
i = (r[so + "Delay"] || "").split(", "),
o = (r[so + "Duration"] || "").split(", "),
a = yo(i, o),
s = (r[co + "Delay"] || "").split(", "),
u = (r[co + "Duration"] || "").split(", "),
c = yo(s, u),
l = 0,
d = 0;
return (
t === oo
? a > 0 && ((n = oo), (l = a), (d = o.length))
: t === ao
? c > 0 && ((n = ao), (l = c), (d = u.length))
: (d = (n =
(l = Math.max(a, c)) > 0 ? (a > c ? oo : ao) : null)
? n === oo
? o.length
: u.length
: 0),
{
type: n,
timeout: l,
propCount: d,
hasTransform: n === oo && vo.test(r[so + "Property"]),
}
);
}
function yo(e, t) {
for (; e.length < t.length; ) e = e.concat(e);
return Math.max.apply(
null,
t.map(function (t, n) {
return bo(t) + bo(e[n]);
}),
);
}
function bo(e) {
return 1e3 * Number(e.slice(0, -1).replace(",", "."));
}
function ko(e, t) {
var n = e.elm;
l(n._leaveCb) && ((n._leaveCb.cancelled = !0), n._leaveCb());
var r = no(e.data.transition);
if (!c(r) && !l(n._enterCb) && 1 === n.nodeType) {
for (
var i = r.css,
o = r.type,
a = r.enterClass,
s = r.enterToClass,
u = r.enterActiveClass,
d = r.appearClass,
f = r.appearToClass,
m = r.appearActiveClass,
g = r.beforeEnter,
v = r.enter,
_ = r.afterEnter,
y = r.enterCancelled,
b = r.beforeAppear,
w = r.appear,
E = r.afterAppear,
A = r.appearCancelled,
C = r.duration,
x = $n,
I = $n.$vnode;
I && I.parent;
)
((x = I.context), (I = I.parent));
var D = !x._isMounted || !e.isRootInsert;
if (!D || w || "" === w) {
var S = D && d ? d : a,
O = D && m ? m : u,
T = D && f ? f : s,
M = (D && b) || g,
N = D && p(w) ? w : v,
P = (D && E) || _,
F = (D && A) || y,
L = k(h(C) ? C.enter : C),
R = !1 !== i && !te,
j = Ao(N),
$ = (n._enterCb = G(function () {
(R && (mo(n, T), mo(n, O)),
$.cancelled ? (R && mo(n, S), F && F(n)) : P && P(n),
(n._enterCb = null));
}));
(e.data.show ||
mt(e, "insert", function () {
var t = n.parentNode,
r = t && t._pending && t._pending[e.key];
(r &&
r.tag === e.tag &&
r.elm._leaveCb &&
r.elm._leaveCb(),
N && N(n, $));
}),
M && M(n),
R &&
(ho(n, S),
ho(n, O),
po(function () {
(mo(n, S),
$.cancelled ||
(ho(n, T),
j || (Eo(L) ? setTimeout($, L) : go(n, o, $))));
})),
e.data.show && (t && t(), N && N(n, $)),
R || j || $());
}
}
}
function wo(e, t) {
var n = e.elm;
l(n._enterCb) && ((n._enterCb.cancelled = !0), n._enterCb());
var r = no(e.data.transition);
if (c(r) || 1 !== n.nodeType) return t();
if (!l(n._leaveCb)) {
var i = r.css,
o = r.type,
a = r.leaveClass,
s = r.leaveToClass,
u = r.leaveActiveClass,
d = r.beforeLeave,
f = r.leave,
p = r.afterLeave,
m = r.leaveCancelled,
g = r.delayLeave,
v = r.duration,
_ = !1 !== i && !te,
y = Ao(f),
b = k(h(v) ? v.leave : v),
w = (n._leaveCb = G(function () {
(n.parentNode &&
n.parentNode._pending &&
(n.parentNode._pending[e.key] = null),
_ && (mo(n, s), mo(n, u)),
w.cancelled
? (_ && mo(n, a), m && m(n))
: (t(), p && p(n)),
(n._leaveCb = null));
}));
g ? g(E) : E();
}
function E() {
w.cancelled ||
(!e.data.show &&
n.parentNode &&
((n.parentNode._pending || (n.parentNode._pending = {}))[
e.key
] = e),
d && d(n),
_ &&
(ho(n, a),
ho(n, u),
po(function () {
(mo(n, a),
w.cancelled ||
(ho(n, s),
y || (Eo(b) ? setTimeout(w, b) : go(n, o, w))));
})),
f && f(n, w),
_ || y || w());
}
}
function Eo(e) {
return "number" == typeof e && !isNaN(e);
}
function Ao(e) {
if (c(e)) return !1;
var t = e.fns;
return l(t)
? Ao(Array.isArray(t) ? t[0] : t)
: (e._length || e.length) > 1;
}
function Co(e, t) {
!0 !== t.data.show && ko(t);
}
var xo = (function (e) {
var t,
n,
r = {},
i = e.modules,
o = e.nodeOps;
for (t = 0; t < pi.length; ++t)
for (r[pi[t]] = [], n = 0; n < i.length; ++n)
l(i[n][pi[t]]) && r[pi[t]].push(i[n][pi[t]]);
function a(e) {
var t = o.parentNode(e);
l(t) && o.removeChild(t, e);
}
function s(e, t, n, i, a, s, u) {
if (
(l(e.elm) && l(s) && (e = s[u] = ye(e)),
(e.isRootInsert = !a),
!(function (e, t, n, i) {
var o = e.data;
if (l(o)) {
var a = l(e.componentInstance) && o.keepAlive;
if (
(l((o = o.hook)) && l((o = o.init)) && o(e, !1),
l(e.componentInstance))
)
return (
p(e, t),
h(n, e.elm, i),
d(a) &&
(function (e, t, n, i) {
for (var o, a = e; a.componentInstance; )
if (
l(
(o = (a = a.componentInstance._vnode).data),
) &&
l((o = o.transition))
) {
for (o = 0; o < r.activate.length; ++o)
r.activate[o](fi, a);
t.push(a);
break;
}
h(n, e.elm, i);
})(e, t, n, i),
!0
);
}
})(e, t, n, i))
) {
var c = e.data,
f = e.children,
g = e.tag;
l(g)
? ((e.elm = e.ns
? o.createElementNS(e.ns, g)
: o.createElement(g, e)),
_(e),
m(e, f, t),
l(c) && v(e, t),
h(n, e.elm, i))
: d(e.isComment)
? ((e.elm = o.createComment(e.text)), h(n, e.elm, i))
: ((e.elm = o.createTextNode(e.text)), h(n, e.elm, i));
}
}
function p(e, t) {
(l(e.data.pendingInsert) &&
(t.push.apply(t, e.data.pendingInsert),
(e.data.pendingInsert = null)),
(e.elm = e.componentInstance.$el),
g(e) ? (v(e, t), _(e)) : (li(e), t.push(e)));
}
function h(e, t, n) {
l(e) &&
(l(n)
? o.parentNode(n) === e && o.insertBefore(e, t, n)
: o.appendChild(e, t));
}
function m(e, t, n) {
if (u(t))
for (var r = 0; r < t.length; ++r)
s(t[r], n, e.elm, null, !0, t, r);
else
f(e.text) &&
o.appendChild(e.elm, o.createTextNode(String(e.text)));
}
function g(e) {
for (; e.componentInstance; ) e = e.componentInstance._vnode;
return l(e.tag);
}
function v(e, n) {
for (var i = 0; i < r.create.length; ++i) r.create[i](fi, e);
l((t = e.data.hook)) &&
(l(t.create) && t.create(fi, e), l(t.insert) && n.push(e));
}
function _(e) {
var t;
if (l((t = e.fnScopeId))) o.setStyleScope(e.elm, t);
else
for (var n = e; n; )
(l((t = n.context)) &&
l((t = t.$options._scopeId)) &&
o.setStyleScope(e.elm, t),
(n = n.parent));
l((t = $n)) &&
t !== e.context &&
t !== e.fnContext &&
l((t = t.$options._scopeId)) &&
o.setStyleScope(e.elm, t);
}
function y(e, t, n, r, i, o) {
for (; r <= i; ++r) s(n[r], o, e, t, !1, n, r);
}
function b(e) {
var t,
n,
i = e.data;
if (l(i))
for (
l((t = i.hook)) && l((t = t.destroy)) && t(e), t = 0;
t < r.destroy.length;
++t
)
r.destroy[t](e);
if (l((t = e.children)))
for (n = 0; n < e.children.length; ++n) b(e.children[n]);
}
function k(e, t, n) {
for (; t <= n; ++t) {
var r = e[t];
l(r) && (l(r.tag) ? (E(r), b(r)) : a(r.elm));
}
}
function E(e, t) {
if (l(t) || l(e.data)) {
var n,
i = r.remove.length + 1;
for (
l(t)
? (t.listeners += i)
: (t = (function (e, t) {
function n() {
0 == --n.listeners && a(e);
}
return ((n.listeners = t), n);
})(e.elm, i)),
l((n = e.componentInstance)) &&
l((n = n._vnode)) &&
l(n.data) &&
E(n, t),
n = 0;
n < r.remove.length;
++n
)
r.remove[n](e, t);
l((n = e.data.hook)) && l((n = n.remove)) ? n(e, t) : t();
} else a(e.elm);
}
function A(e, t, n, r) {
for (var i = n; i < r; i++) {
var o = t[i];
if (l(o) && hi(e, o)) return i;
}
}
function C(e, t, n, i, a, u) {
if (e !== t) {
l(t.elm) && l(i) && (t = i[a] = ye(t));
var f = (t.elm = e.elm);
if (d(e.isAsyncPlaceholder))
l(t.asyncFactory.resolved)
? D(e.elm, t, n)
: (t.isAsyncPlaceholder = !0);
else if (
d(t.isStatic) &&
d(e.isStatic) &&
t.key === e.key &&
(d(t.isCloned) || d(t.isOnce))
)
t.componentInstance = e.componentInstance;
else {
var p,
h = t.data;
l(h) && l((p = h.hook)) && l((p = p.prepatch)) && p(e, t);
var m = e.children,
v = t.children;
if (l(h) && g(t)) {
for (p = 0; p < r.update.length; ++p) r.update[p](e, t);
l((p = h.hook)) && l((p = p.update)) && p(e, t);
}
(c(t.text)
? l(m) && l(v)
? m !== v &&
(function (e, t, n, r, i) {
for (
var a,
u,
d,
f = 0,
p = 0,
h = t.length - 1,
m = t[0],
g = t[h],
v = n.length - 1,
_ = n[0],
b = n[v],
w = !i;
f <= h && p <= v;
)
c(m)
? (m = t[++f])
: c(g)
? (g = t[--h])
: hi(m, _)
? (C(m, _, r, n, p),
(m = t[++f]),
(_ = n[++p]))
: hi(g, b)
? (C(g, b, r, n, v),
(g = t[--h]),
(b = n[--v]))
: hi(m, b)
? (C(m, b, r, n, v),
w &&
o.insertBefore(
e,
m.elm,
o.nextSibling(g.elm),
),
(m = t[++f]),
(b = n[--v]))
: hi(g, _)
? (C(g, _, r, n, p),
w &&
o.insertBefore(e, g.elm, m.elm),
(g = t[--h]),
(_ = n[++p]))
: (c(a) && (a = mi(t, f, h)),
c(
(u = l(_.key)
? a[_.key]
: A(_, t, f, h)),
)
? s(_, r, e, m.elm, !1, n, p)
: hi((d = t[u]), _)
? (C(d, _, r, n, p),
(t[u] = void 0),
w &&
o.insertBefore(
e,
d.elm,
m.elm,
))
: s(_, r, e, m.elm, !1, n, p),
(_ = n[++p]));
f > h
? y(
e,
c(n[v + 1]) ? null : n[v + 1].elm,
n,
p,
v,
r,
)
: p > v && k(t, f, h);
})(f, m, v, n, u)
: l(v)
? (l(e.text) && o.setTextContent(f, ""),
y(f, null, v, 0, v.length - 1, n))
: l(m)
? k(m, 0, m.length - 1)
: l(e.text) && o.setTextContent(f, "")
: e.text !== t.text && o.setTextContent(f, t.text),
l(h) &&
l((p = h.hook)) &&
l((p = p.postpatch)) &&
p(e, t));
}
}
}
function x(e, t, n) {
if (d(n) && l(e.parent)) e.parent.data.pendingInsert = t;
else
for (var r = 0; r < t.length; ++r)
t[r].data.hook.insert(t[r]);
}
var I = w("attrs,class,staticClass,staticStyle,key");
function D(e, t, n, r) {
var i,
o = t.tag,
a = t.data,
s = t.children;
if (
((r = r || (a && a.pre)),
(t.elm = e),
d(t.isComment) && l(t.asyncFactory))
)
return ((t.isAsyncPlaceholder = !0), !0);
if (
l(a) &&
(l((i = a.hook)) && l((i = i.init)) && i(t, !0),
l((i = t.componentInstance)))
)
return (p(t, n), !0);
if (l(o)) {
if (l(s))
if (e.hasChildNodes())
if (
l((i = a)) &&
l((i = i.domProps)) &&
l((i = i.innerHTML))
) {
if (i !== e.innerHTML) return !1;
} else {
for (
var u = !0, c = e.firstChild, f = 0;
f < s.length;
f++
) {
if (!c || !D(c, s[f], n, r)) {
u = !1;
break;
}
c = c.nextSibling;
}
if (!u || c) return !1;
}
else m(t, s, n);
if (l(a)) {
var h = !1;
for (var g in a)
if (!I(g)) {
((h = !0), v(t, n));
break;
}
!h && a["class"] && On(a["class"]);
}
} else e.data !== t.text && (e.data = t.text);
return !0;
}
return function (e, t, n, i) {
if (!c(t)) {
var a,
u = !1,
f = [];
if (c(e)) ((u = !0), s(t, f));
else {
var p = l(e.nodeType);
if (!p && hi(e, t)) C(e, t, f, null, null, i);
else {
if (p) {
if (
(1 === e.nodeType &&
e.hasAttribute(H) &&
(e.removeAttribute(H), (n = !0)),
d(n) && D(e, t, f))
)
return (x(t, f, !0), e);
((a = e),
(e = new ge(
o.tagName(a).toLowerCase(),
{},
[],
void 0,
a,
)));
}
var h = e.elm,
m = o.parentNode(h);
if (
(s(t, f, h._leaveCb ? null : m, o.nextSibling(h)),
l(t.parent))
)
for (var v = t.parent, _ = g(t); v; ) {
for (var y = 0; y < r.destroy.length; ++y)
r.destroy[y](v);
if (((v.elm = t.elm), _)) {
for (var w = 0; w < r.create.length; ++w)
r.create[w](fi, v);
var E = v.data.hook.insert;
if (E.merged)
for (
var A = E.fns.slice(1), I = 0;
I < A.length;
I++
)
A[I]();
} else li(v);
v = v.parent;
}
l(m) ? k([e], 0, 0) : l(e.tag) && b(e);
}
}
return (x(t, f, u), t.elm);
}
l(e) && b(e);
};
})({
nodeOps: ui,
modules: [
xi,
Si,
ji,
Bi,
Qi,
Q
? {
create: Co,
activate: Co,
remove: function (e, t) {
!0 !== e.data.show ? wo(e, t) : t();
},
}
: {},
].concat(wi),
});
te &&
document.addEventListener("selectionchange", function () {
var e = document.activeElement;
e && e.vmodel && Po(e, "input");
});
var Io = {
inserted: function (e, t, n, r) {
"select" === n.tag
? (r.elm && !r.elm._vOptions
? mt(n, "postpatch", function () {
Io.componentUpdated(e, t, n);
})
: Do(e, t, n.context),
(e._vOptions = [].map.call(e.options, To)))
: ("textarea" === n.tag || si(e.type)) &&
((e._vModifiers = t.modifiers),
t.modifiers.lazy ||
(e.addEventListener("compositionstart", Mo),
e.addEventListener("compositionend", No),
e.addEventListener("change", No),
te && (e.vmodel = !0)));
},
componentUpdated: function (e, t, n) {
if ("select" === n.tag) {
Do(e, t, n.context);
var r = e._vOptions,
i = (e._vOptions = [].map.call(e.options, To));
i.some(function (e, t) {
return !U(e, r[t]);
}) &&
(e.multiple
? t.value.some(function (e) {
return Oo(e, i);
})
: t.value !== t.oldValue && Oo(t.value, i)) &&
Po(e, "change");
}
},
};
function Do(e, t, n) {
(So(e, t),
(ee || ne) &&
setTimeout(function () {
So(e, t);
}, 0));
}
function So(e, t, n) {
var r = t.value,
i = e.multiple;
if (!i || Array.isArray(r)) {
for (var o, a, s = 0, u = e.options.length; s < u; s++)
if (((a = e.options[s]), i))
((o = B(r, To(a)) > -1),
a.selected !== o && (a.selected = o));
else if (U(To(a), r))
return void (
e.selectedIndex !== s && (e.selectedIndex = s)
);
i || (e.selectedIndex = -1);
}
}
function Oo(e, t) {
return t.every(function (t) {
return !U(t, e);
});
}
function To(e) {
return "_value" in e ? e._value : e.value;
}
function Mo(e) {
e.target.composing = !0;
}
function No(e) {
e.target.composing &&
((e.target.composing = !1), Po(e.target, "input"));
}
function Po(e, t) {
var n = document.createEvent("HTMLEvents");
(n.initEvent(t, !0, !0), e.dispatchEvent(n));
}
function Fo(e) {
return !e.componentInstance || (e.data && e.data.transition)
? e
: Fo(e.componentInstance._vnode);
}
var Lo = {
bind: function (e, t, n) {
var r = t.value,
i = (n = Fo(n)).data && n.data.transition,
o = (e.__vOriginalDisplay =
"none" === e.style.display ? "" : e.style.display);
r && i
? ((n.data.show = !0),
ko(n, function () {
e.style.display = o;
}))
: (e.style.display = r ? o : "none");
},
update: function (e, t, n) {
var r = t.value;
!r != !t.oldValue &&
((n = Fo(n)).data && n.data.transition
? ((n.data.show = !0),
r
? ko(n, function () {
e.style.display = e.__vOriginalDisplay;
})
: wo(n, function () {
e.style.display = "none";
}))
: (e.style.display = r ? e.__vOriginalDisplay : "none"));
},
unbind: function (e, t, n, r, i) {
i || (e.style.display = e.__vOriginalDisplay);
},
},
Ro = { model: Io, show: Lo },
jo = {
name: String,
appear: Boolean,
css: Boolean,
mode: String,
type: String,
enterClass: String,
leaveClass: String,
enterToClass: String,
leaveToClass: String,
enterActiveClass: String,
leaveActiveClass: String,
appearClass: String,
appearActiveClass: String,
appearToClass: String,
duration: [Number, String, Object],
};
function $o(e) {
var t = e && e.componentOptions;
return t && t.Ctor.options.abstract ? $o(Xt(t.children)) : e;
}
function Uo(e) {
var t = {},
n = e.$options;
for (var r in n.propsData) t[r] = e[r];
var i = n._parentListeners;
for (var o in i) t[S(o)] = i[o];
return t;
}
function Bo(e, t) {
if (/\d-keep-alive$/.test(t.tag))
return e("keep-alive", { props: t.componentOptions.propsData });
}
var Go = function (e) {
return e.tag || Rt(e);
},
zo = function (e) {
return "show" === e.name;
},
Ho = {
name: "transition",
props: jo,
abstract: !0,
render: function (e) {
var t = this,
n = this.$slots["default"];
if (n && (n = n.filter(Go)).length) {
var r = this.mode,
i = n[0];
if (
(function (e) {
for (; (e = e.parent); )
if (e.data.transition) return !0;
})(this.$vnode)
)
return i;
var o = $o(i);
if (!o) return i;
if (this._leaving) return Bo(e, i);
var a = "__transition-".concat(this._uid, "-");
o.key =
null == o.key
? o.isComment
? a + "comment"
: a + o.tag
: f(o.key)
? 0 === String(o.key).indexOf(a)
? o.key
: a + o.key
: o.key;
var s = ((o.data || (o.data = {})).transition = Uo(this)),
u = this._vnode,
c = $o(u);
if (
(o.data.directives &&
o.data.directives.some(zo) &&
(o.data.show = !0),
c &&
c.data &&
!(function (e, t) {
return t.key === e.key && t.tag === e.tag;
})(o, c) &&
!Rt(c) &&
(!c.componentInstance ||
!c.componentInstance._vnode.isComment))
) {
var l = (c.data.transition = F({}, s));
if ("out-in" === r)
return (
(this._leaving = !0),
mt(l, "afterLeave", function () {
((t._leaving = !1), t.$forceUpdate());
}),
Bo(e, i)
);
if ("in-out" === r) {
if (Rt(o)) return u;
var d,
p = function () {
d();
};
(mt(s, "afterEnter", p),
mt(s, "enterCancelled", p),
mt(l, "delayLeave", function (e) {
d = e;
}));
}
}
return i;
}
},
},
qo = F({ tag: String, moveClass: String }, jo);
delete qo.mode;
var Vo = {
props: qo,
beforeMount: function () {
var e = this,
t = this._update;
this._update = function (n, r) {
var i = Un(e);
(e.__patch__(e._vnode, e.kept, !1, !0),
(e._vnode = e.kept),
i(),
t.call(e, n, r));
};
},
render: function (e) {
for (
var t = this.tag || this.$vnode.data.tag || "span",
n = Object.create(null),
r = (this.prevChildren = this.children),
i = this.$slots["default"] || [],
o = (this.children = []),
a = Uo(this),
s = 0;
s < i.length;
s++
) {
var u = i[s];
u.tag &&
null != u.key &&
0 !== String(u.key).indexOf("__vlist") &&
(o.push(u),
(n[u.key] = u),
((u.data || (u.data = {})).transition = a));
}
if (r) {
for (var c = [], l = [], d = 0; d < r.length; d++) {
var f = r[d];
((f.data.transition = a),
(f.data.pos = f.elm.getBoundingClientRect()),
n[f.key] ? c.push(f) : l.push(f));
}
((this.kept = e(t, null, c)), (this.removed = l));
}
return e(t, null, o);
},
updated: function () {
var e = this.prevChildren,
t = this.moveClass || (this.name || "v") + "-move";
e.length &&
this.hasMove(e[0].elm, t) &&
(e.forEach(Wo),
e.forEach(Xo),
e.forEach(Ko),
(this._reflow = document.body.offsetHeight),
e.forEach(function (e) {
if (e.data.moved) {
var n = e.elm,
r = n.style;
(ho(n, t),
(r.transform =
r.WebkitTransform =
r.transitionDuration =
""),
n.addEventListener(
uo,
(n._moveCb = function i(e) {
(e && e.target !== n) ||
(e && !/transform$/.test(e.propertyName)) ||
(n.removeEventListener(uo, i),
(n._moveCb = null),
mo(n, t));
}),
));
}
}));
},
methods: {
hasMove: function (e, t) {
if (!io) return !1;
if (this._hasMove) return this._hasMove;
var n = e.cloneNode();
(e._transitionClasses &&
e._transitionClasses.forEach(function (e) {
to(n, e);
}),
eo(n, t),
(n.style.display = "none"),
this.$el.appendChild(n));
var r = _o(n);
return (
this.$el.removeChild(n),
(this._hasMove = r.hasTransform)
);
},
},
};
function Wo(e) {
(e.elm._moveCb && e.elm._moveCb(),
e.elm._enterCb && e.elm._enterCb());
}
function Xo(e) {
e.data.newPos = e.elm.getBoundingClientRect();
}
function Ko(e) {
var t = e.data.pos,
n = e.data.newPos,
r = t.left - n.left,
i = t.top - n.top;
if (r || i) {
e.data.moved = !0;
var o = e.elm.style;
((o.transform = o.WebkitTransform =
"translate(".concat(r, "px,").concat(i, "px)")),
(o.transitionDuration = "0s"));
}
}
var Yo = { Transition: Ho, TransitionGroup: Vo };
((Lr.config.mustUseProp = function (e, t, n) {
return (
("value" === n && Hr(e) && "button" !== t) ||
("selected" === n && "option" === e) ||
("checked" === n && "input" === e) ||
("muted" === n && "video" === e)
);
}),
(Lr.config.isReservedTag = oi),
(Lr.config.isReservedAttr = zr),
(Lr.config.getTagNamespace = function (e) {
return ii(e) ? "svg" : "math" === e ? "math" : void 0;
}),
(Lr.config.isUnknownElement = function (e) {
if (!Q) return !0;
if (oi(e)) return !1;
if (((e = e.toLowerCase()), null != ai[e])) return ai[e];
var t = document.createElement(e);
return e.indexOf("-") > -1
? (ai[e] =
t.constructor === window.HTMLUnknownElement ||
t.constructor === window.HTMLElement)
: (ai[e] = /HTMLUnknownElement/.test(t.toString()));
}),
F(Lr.options.directives, Ro),
F(Lr.options.components, Yo),
(Lr.prototype.__patch__ = Q ? xo : R),
(Lr.prototype.$mount = function (e, t) {
return (function (e, t, n) {
var r;
((e.$el = t),
e.$options.render || (e.$options.render = ve),
Hn(e, "beforeMount"),
(r = function () {
e._update(e._render(), n);
}),
new Pn(
e,
r,
R,
{
before: function () {
e._isMounted &&
!e._isDestroyed &&
Hn(e, "beforeUpdate");
},
},
!0,
),
(n = !1));
var i = e._preWatchers;
if (i) for (var o = 0; o < i.length; o++) i[o].run();
return (
null == e.$vnode && ((e._isMounted = !0), Hn(e, "mounted")),
e
);
})(
this,
(e =
e && Q
? (function (e) {
return "string" == typeof e
? document.querySelector(e) ||
document.createElement("div")
: e;
})(e)
: void 0),
t,
);
}),
Q &&
setTimeout(function () {
W.devtools && le && le.emit("init", Lr);
}, 0),
F(Lr, Dn),
(e.exports = Lr));
},
3774: function (e, t, n) {
"use strict";
var r = n(477);
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.Lexer = void 0));
var i = r(n(8850)),
o = r(n(1332)),
a = n(4001),
s = n(4008),
u = n(5779),
c = n(9105);
function l(e) {
return e
.replace(/---/g, "—")
.replace(/--/g, "–")
.replace(/(^|[-\u2014/(\[{"\s])'/g, "$1‘")
.replace(/'/g, "’")
.replace(/(^|[-\u2014/(\[{\u2018\s])"/g, "$1“")
.replace(/"/g, "”")
.replace(/\.{3}/g, "…");
}
function d(e) {
var t,
n,
r = "",
i = e.length;
for (t = 0; t < i; t++)
((n = e.charCodeAt(t)),
Math.random() > 0.5 && (n = "x" + n.toString(16)),
(r += "" + n + ";"));
return r;
}
t.Lexer = (function () {
function e(t) {
((0, i["default"])(this, e),
(this.tokens = []),
(this.tokens.links = Object.create(null)),
(this.options = t || s.defaults),
(this.options.tokenizer =
this.options.tokenizer || new a.Tokenizer()),
(this.tokenizer = this.options.tokenizer),
(this.tokenizer.options = this.options),
(this.tokenizer.lexer = this),
(this.inlineQueue = []),
(this.state = { inLink: !1, inRawBlock: !1, top: !0 }));
var n = { block: u.block.normal, inline: u.inline.normal };
(this.options.pedantic
? ((n.block = u.block.pedantic),
(n.inline = u.inline.pedantic))
: this.options.gfm &&
((n.block = u.block.gfm),
this.options.breaks
? (n.inline = u.inline.breaks)
: (n.inline = u.inline.gfm)),
(this.tokenizer.rules = n));
}
return (
(0, o["default"])(
e,
[
{
key: "lex",
value: function (e) {
var t;
for (
e = e
.replace(/\r\n|\r/g, "\n")
.replace(/\t/g, " "),
this.blockTokens(e, this.tokens);
(t = this.inlineQueue.shift());
)
this.inlineTokens(t.src, t.tokens);
return this.tokens;
},
},
{
key: "blockTokens",
value: function (e) {
var t,
n,
r,
i,
o = this,
a =
arguments.length > 1 && arguments[1] !== undefined
? arguments[1]
: [];
this.options.pedantic && (e = e.replace(/^ +$/gm, ""));
for (
var s,
u = function () {
if (
o.options.extensions &&
o.options.extensions.block &&
o.options.extensions.block.some(function (n) {
return (
!!(t = n.call({ lexer: o }, e, a)) &&
((e = e.substring(t.raw.length)),
a.push(t),
!0)
);
})
)
return 0;
if ((t = o.tokenizer.space(e)))
return (
(e = e.substring(t.raw.length)),
1 === t.raw.length && a.length > 0
? (a[a.length - 1].raw += "\n")
: a.push(t),
0
);
if ((t = o.tokenizer.code(e)))
return (
(e = e.substring(t.raw.length)),
!(n = a[a.length - 1]) ||
("paragraph" !== n.type && "text" !== n.type)
? a.push(t)
: ((n.raw += "\n" + t.raw),
(n.text += "\n" + t.text),
(o.inlineQueue[
o.inlineQueue.length - 1
].src = n.text)),
0
);
if ((t = o.tokenizer.fences(e)))
return (
(e = e.substring(t.raw.length)),
a.push(t),
0
);
if ((t = o.tokenizer.heading(e)))
return (
(e = e.substring(t.raw.length)),
a.push(t),
0
);
if ((t = o.tokenizer.hr(e)))
return (
(e = e.substring(t.raw.length)),
a.push(t),
0
);
if ((t = o.tokenizer.blockquote(e)))
return (
(e = e.substring(t.raw.length)),
a.push(t),
0
);
if ((t = o.tokenizer.list(e)))
return (
(e = e.substring(t.raw.length)),
a.push(t),
0
);
if ((t = o.tokenizer.html(e)))
return (
(e = e.substring(t.raw.length)),
a.push(t),
0
);
if ((t = o.tokenizer.def(e)))
return (
(e = e.substring(t.raw.length)),
!(n = a[a.length - 1]) ||
("paragraph" !== n.type && "text" !== n.type)
? o.tokens.links[t.tag] ||
(o.tokens.links[t.tag] = {
href: t.href,
title: t.title,
})
: ((n.raw += "\n" + t.raw),
(n.text += "\n" + t.raw),
(o.inlineQueue[
o.inlineQueue.length - 1
].src = n.text)),
0
);
if ((t = o.tokenizer.table(e)))
return (
(e = e.substring(t.raw.length)),
a.push(t),
0
);
if ((t = o.tokenizer.lheading(e)))
return (
(e = e.substring(t.raw.length)),
a.push(t),
0
);
if (
((r = e),
o.options.extensions &&
o.options.extensions.startBlock)
) {
var s,
u = Infinity,
c = e.slice(1);
(o.options.extensions.startBlock.forEach(
function (e) {
"number" ==
typeof (s = e.call({ lexer: this }, c)) &&
s >= 0 &&
(u = Math.min(u, s));
},
),
u < Infinity &&
u >= 0 &&
(r = e.substring(0, u + 1)));
}
if (o.state.top && (t = o.tokenizer.paragraph(r)))
return (
(n = a[a.length - 1]),
i && "paragraph" === n.type
? ((n.raw += "\n" + t.raw),
(n.text += "\n" + t.text),
o.inlineQueue.pop(),
(o.inlineQueue[
o.inlineQueue.length - 1
].src = n.text))
: a.push(t),
(i = r.length !== e.length),
(e = e.substring(t.raw.length)),
0
);
if ((t = o.tokenizer.text(e)))
return (
(e = e.substring(t.raw.length)),
(n = a[a.length - 1]) && "text" === n.type
? ((n.raw += "\n" + t.raw),
(n.text += "\n" + t.text),
o.inlineQueue.pop(),
(o.inlineQueue[
o.inlineQueue.length - 1
].src = n.text))
: a.push(t),
0
);
if (e) {
var l =
"Infinite loop on byte: " + e.charCodeAt(0);
if (o.options.silent)
return (console.error(l), 1);
throw new Error(l);
}
};
e && (0 === (s = u()) || 1 !== s);
);
return ((this.state.top = !0), a);
},
},
{
key: "inline",
value: function (e, t) {
this.inlineQueue.push({ src: e, tokens: t });
},
},
{
key: "inlineTokens",
value: function (e) {
var t,
n,
r,
i,
o,
a,
s = this,
u =
arguments.length > 1 && arguments[1] !== undefined
? arguments[1]
: [],
f = e;
if (this.tokens.links) {
var p = Object.keys(this.tokens.links);
if (p.length > 0)
for (
;
null !=
(i =
this.tokenizer.rules.inline.reflinkSearch.exec(
f,
));
)
p.includes(
i[0].slice(i[0].lastIndexOf("[") + 1, -1),
) &&
(f =
f.slice(0, i.index) +
"[" +
(0, c.repeatString)("a", i[0].length - 2) +
"]" +
f.slice(
this.tokenizer.rules.inline.reflinkSearch
.lastIndex,
));
}
for (
;
null !=
(i = this.tokenizer.rules.inline.blockSkip.exec(f));
)
f =
f.slice(0, i.index) +
"[" +
(0, c.repeatString)("a", i[0].length - 2) +
"]" +
f.slice(
this.tokenizer.rules.inline.blockSkip.lastIndex,
);
for (
;
null !=
(i = this.tokenizer.rules.inline.escapedEmSt.exec(f));
)
f =
f.slice(0, i.index) +
"++" +
f.slice(
this.tokenizer.rules.inline.escapedEmSt.lastIndex,
);
for (
var h,
m = function () {
if (
(o || (a = ""),
(o = !1),
(t = s.tokenizer.owo(e)))
)
return (
(e = e.substring(t.raw.length)),
t.type && u.push(t),
0
);
if (
s.options.extensions &&
s.options.extensions.inline &&
s.options.extensions.inline.some(function (n) {
return (
!!(t = n.call({ lexer: s }, e, u)) &&
((e = e.substring(t.raw.length)),
u.push(t),
!0)
);
})
)
return 0;
if ((t = s.tokenizer.escape(e)))
return (
(e = e.substring(t.raw.length)),
u.push(t),
0
);
if ((t = s.tokenizer.tag(e)))
return (
(e = e.substring(t.raw.length)),
(n = u[u.length - 1]) &&
"text" === t.type &&
"text" === n.type
? ((n.raw += t.raw), (n.text += t.text))
: u.push(t),
0
);
if ((t = s.tokenizer.link(e)))
return (
(e = e.substring(t.raw.length)),
u.push(t),
0
);
if ((t = s.tokenizer.reflink(e, s.tokens.links)))
return (
(e = e.substring(t.raw.length)),
(n = u[u.length - 1]) &&
"text" === t.type &&
"text" === n.type
? ((n.raw += t.raw), (n.text += t.text))
: u.push(t),
0
);
if ((t = s.tokenizer.emStrong(e, f, a)))
return (
(e = e.substring(t.raw.length)),
u.push(t),
0
);
if ((t = s.tokenizer.codespan(e)))
return (
(e = e.substring(t.raw.length)),
u.push(t),
0
);
if ((t = s.tokenizer.br(e)))
return (
(e = e.substring(t.raw.length)),
u.push(t),
0
);
if ((t = s.tokenizer.del(e)))
return (
(e = e.substring(t.raw.length)),
u.push(t),
0
);
if ((t = s.tokenizer.autolink(e, d)))
return (
(e = e.substring(t.raw.length)),
u.push(t),
0
);
if (
!s.state.inLink &&
(t = s.tokenizer.url(e, d))
)
return (
(e = e.substring(t.raw.length)),
u.push(t),
0
);
if (
((r = e),
s.options.extensions &&
s.options.extensions.startInline)
) {
var i,
c = Infinity,
p = e.slice(1);
(s.options.extensions.startInline.forEach(
function (e) {
"number" ==
typeof (i = e.call({ lexer: this }, p)) &&
i >= 0 &&
(c = Math.min(c, i));
},
),
c < Infinity &&
c >= 0 &&
(r = e.substring(0, c + 1)));
}
if ((t = s.tokenizer.inlineText(r, l)))
return (
(e = e.substring(t.raw.length)),
"_" !== t.raw.slice(-1) &&
(a = t.raw.slice(-1)),
(o = !0),
(n = u[u.length - 1]) && "text" === n.type
? ((n.raw += t.raw), (n.text += t.text))
: u.push(t),
0
);
if (e) {
var h =
"Infinite loop on byte: " + e.charCodeAt(0);
if (s.options.silent)
return (console.error(h), 1);
throw new Error(h);
}
};
e && (0 === (h = m()) || 1 !== h);
);
return u;
},
},
],
[
{
key: "rules",
get: function () {
return { block: u.block, inline: u.inline };
},
},
{
key: "lex",
value: function (t, n) {
return new e(n).lex(t);
},
},
{
key: "lexInline",
value: function (t, n) {
return new e(n).inlineTokens(t);
},
},
],
),
e
);
})();
},
2817: function (e, t, n) {
"use strict";
var r = n(477);
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.Parser = void 0));
var i = r(n(8850)),
o = r(n(1332)),
a = n(7565),
s = n(1674),
u = n(2123),
c = n(4008),
l = n(9105);
t.Parser = (function () {
function e(t) {
((0, i["default"])(this, e),
(this.options = t || c.defaults),
(this.options.renderer =
this.options.renderer || new a.Renderer()),
(this.renderer = this.options.renderer),
(this.renderer.options = this.options),
(this.textRenderer = new s.TextRenderer()),
(this.slugger = new u.Slugger()));
}
return (
(0, o["default"])(
e,
[
{
key: "parse",
value: function (e) {
var t,
n,
r,
i,
o,
a,
s,
u,
c,
d,
f,
p,
h,
m,
g,
v,
_,
y,
b,
k =
!(
arguments.length > 1 && arguments[1] !== undefined
) || arguments[1],
w = "",
E = e.length;
for (t = 0; t < E; t++)
if (
((d = e[t]),
!(
this.options.extensions &&
this.options.extensions.renderers &&
this.options.extensions.renderers[d.type]
) ||
(!1 ===
(b = this.options.extensions.renderers[
d.type
].call({ parser: this }, d)) &&
[
"space",
"hr",
"heading",
"code",
"table",
"blockquote",
"list",
"html",
"paragraph",
"text",
].includes(d.type)))
)
switch (d.type) {
case "space":
continue;
case "hr":
w += this.renderer.hr();
continue;
case "heading":
w += this.renderer.heading(
this.parseInline(d.tokens),
d.depth,
(0, l.unescape)(
this.parseInline(
d.tokens,
this.textRenderer,
),
),
this.slugger,
);
continue;
case "code":
w += this.renderer.code(
d.text,
d.lang,
d.escaped,
);
continue;
case "table":
for (
u = "", s = "", i = d.header.length, n = 0;
n < i;
n++
)
s += this.renderer.tablecell(
this.parseInline(d.header[n].tokens),
{ header: !0, align: d.align[n] },
);
for (
u += this.renderer.tablerow(s),
c = "",
i = d.rows.length,
n = 0;
n < i;
n++
) {
for (
s = "", o = (a = d.rows[n]).length, r = 0;
r < o;
r++
)
s += this.renderer.tablecell(
this.parseInline(a[r].tokens),
{ header: !1, align: d.align[r] },
);
c += this.renderer.tablerow(s);
}
w += this.renderer.table(u, c);
continue;
case "blockquote":
((c = this.parse(d.tokens)),
(w += this.renderer.blockquote(c)));
continue;
case "list":
for (
f = d.ordered,
p = d.start,
h = d.loose,
i = d.items.length,
c = "",
n = 0;
n < i;
n++
)
((v = (g = d.items[n]).checked),
(_ = g.task),
(m = ""),
g.task &&
((y = this.renderer.checkbox(v)),
h
? g.tokens.length > 0 &&
"paragraph" === g.tokens[0].type
? ((g.tokens[0].text =
y + " " + g.tokens[0].text),
g.tokens[0].tokens &&
g.tokens[0].tokens.length > 0 &&
"text" ===
g.tokens[0].tokens[0].type &&
(g.tokens[0].tokens[0].text =
y +
" " +
g.tokens[0].tokens[0].text))
: g.tokens.unshift({
type: "text",
text: y,
})
: (m += y)),
(m += this.parse(g.tokens, h)),
(c += this.renderer.listitem(m, _, v)));
w += this.renderer.list(c, f, p);
continue;
case "html":
w += this.renderer.html(d.text);
continue;
case "paragraph":
w += this.renderer.paragraph(
this.parseInline(d.tokens),
);
continue;
case "text":
for (
c = d.tokens
? this.parseInline(d.tokens)
: d.text;
t + 1 < E && "text" === e[t + 1].type;
)
c +=
"\n" +
((d = e[++t]).tokens
? this.parseInline(d.tokens)
: d.text);
w += k ? this.renderer.paragraph(c) : c;
continue;
default:
var A =
'Token with "' +
d.type +
'" type was not found.';
if (this.options.silent)
return void console.error(A);
throw new Error(A);
}
else w += b || "";
return w;
},
},
{
key: "parseInline",
value: function (e, t) {
t = t || this.renderer;
var n,
r,
i,
o = "",
a = e.length;
for (n = 0; n < a; n++)
if (
((r = e[n]),
!(
this.options.extensions &&
this.options.extensions.renderers &&
this.options.extensions.renderers[r.type]
) ||
(!1 ===
(i = this.options.extensions.renderers[
r.type
].call({ parser: this }, r)) &&
[
"escape",
"html",
"link",
"image",
"strong",
"em",
"codespan",
"br",
"del",
"text",
].includes(r.type)))
)
switch (r.type) {
case "owo":
o += t.owo(r.text);
break;
case "escape":
case "text":
o += t.text(r.text);
break;
case "html":
o += t.html(r.text);
break;
case "link":
o += t.link(
r.href,
r.title,
this.parseInline(r.tokens, t),
);
break;
case "image":
o += t.image(r.href, r.title, r.text);
break;
case "strong":
o += t.strong(this.parseInline(r.tokens, t));
break;
case "em":
o += t.em(this.parseInline(r.tokens, t));
break;
case "codespan":
o += t.codespan(r.text);
break;
case "br":
o += t.br();
break;
case "del":
o += t.del(this.parseInline(r.tokens, t));
break;
default:
var s =
'Token with "' +
r.type +
'" type was not found.';
if (this.options.silent)
return void console.error(s);
throw new Error(s);
}
else o += i || "";
return o;
},
},
],
[
{
key: "parse",
value: function (t, n) {
return new e(n).parse(t);
},
},
{
key: "parseInline",
value: function (t, n) {
return new e(n).parseInline(t);
},
},
],
),
e
);
})();
},
7565: function (e, t, n) {
"use strict";
var r = n(477);
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.Renderer = void 0));
var i = r(n(8850)),
o = r(n(1332)),
a = n(4008),
s = n(9105);
t.Renderer = (function () {
function e(t) {
((0, i["default"])(this, e), (this.options = t || a.defaults));
}
return (
(0, o["default"])(e, [
{
key: "owo",
value: function (e) {
var t = this.options.odata;
return t && t[e]
? ''
: ":" + e + ":";
},
},
{
key: "code",
value: function (e, t, n) {
var r = (t || "").match(/\S*/)[0];
if (this.options.highlight) {
var i = this.options.highlight(e, r);
null != i && i !== e && ((n = !0), (e = i));
}
return (
(e = e.replace(/\n$/, "") + "\n"),
r
? '
' +
(n ? e : (0, s.escape)(e, !0)) +
"\n"
: "" +
(n ? e : (0, s.escape)(e, !0)) +
"\n"
);
},
},
{
key: "blockquote",
value: function (e) {
return "\n" + e + "\n"; }, }, { key: "html", value: function (e) { return e; }, }, { key: "heading", value: function (e, t, n, r) { return this.options.headerIds ? "
" + e + "
\n"; }, }, { key: "table", value: function (e, t) { return ( t && (t = "" + t + ""), "" + e + "";
},
},
{
key: "br",
value: function () {
return this.options.xhtml ? "An error occurred:
" +
(0, c.escape)(d.message + "", !0) +
""
);
throw d;
}
}
((p.options = p.setOptions =
function (e) {
return (
(0, c.merge)(p.defaults, e),
(0, l.changeDefaults)(p.defaults),
p
);
}),
(p.getDefaults = l.getDefaults),
(p.defaults = l.defaults),
(p.use = function () {
for (
var e = arguments.length, t = new Array(e), n = 0;
n < e;
n++
)
t[n] = arguments[n];
var r,
i = c.merge.apply(void 0, [{}].concat(t)),
s = p.defaults.extensions || {
renderers: {},
childTokens: {},
};
t.forEach(function (e) {
if (
(e.extensions &&
((r = !0),
e.extensions.forEach(function (e) {
if (!e.name) throw new Error("extension name required");
if (e.renderer) {
var t = s.renderers ? s.renderers[e.name] : null;
s.renderers[e.name] = t
? function () {
for (
var n = arguments.length,
r = new Array(n),
i = 0;
i < n;
i++
)
r[i] = arguments[i];
var o = e.renderer.apply(this, r);
return (!1 === o && (o = t.apply(this, r)), o);
}
: e.renderer;
}
if (e.tokenizer) {
if (
!e.level ||
("block" !== e.level && "inline" !== e.level)
)
throw new Error(
"extension level must be 'block' or 'inline'",
);
(s[e.level]
? s[e.level].unshift(e.tokenizer)
: (s[e.level] = [e.tokenizer]),
e.start &&
("block" === e.level
? s.startBlock
? s.startBlock.push(e.start)
: (s.startBlock = [e.start])
: "inline" === e.level &&
(s.startInline
? s.startInline.push(e.start)
: (s.startInline = [e.start]))));
}
e.childTokens &&
(s.childTokens[e.name] = e.childTokens);
})),
e.renderer)
) {
var t = p.defaults.renderer || new a.Renderer(),
n = function (n) {
var r = t[n];
t[n] = function () {
for (
var i = arguments.length, o = new Array(i), a = 0;
a < i;
a++
)
o[a] = arguments[a];
var s = e.renderer[n].apply(t, o);
return (!1 === s && (s = r.apply(t, o)), s);
};
};
for (var u in e.renderer) n(u);
i.renderer = t;
}
if (e.tokenizer) {
var c = p.defaults.tokenizer || new o.Tokenizer(),
l = function (t) {
var n = c[t];
c[t] = function () {
for (
var r = arguments.length, i = new Array(r), o = 0;
o < r;
o++
)
i[o] = arguments[o];
var a = e.tokenizer[t].apply(c, i);
return (!1 === a && (a = n.apply(c, i)), a);
};
};
for (var d in e.tokenizer) l(d);
i.tokenizer = c;
}
if (e.walkTokens) {
var f = p.defaults.walkTokens;
i.walkTokens = function (t) {
(e.walkTokens.call(this, t), f && f.call(this, t));
};
}
(r && (i.extensions = s), p.setOptions(i));
});
}),
(p.walkTokens = function (e, t) {
var n,
r = d(e);
try {
var i = function () {
var e = n.value;
switch ((t.call(p, e), e.type)) {
case "table":
var r,
i = d(e.header);
try {
for (i.s(); !(r = i.n()).done; ) {
var o = r.value;
p.walkTokens(o.tokens, t);
}
} catch (f) {
i.e(f);
} finally {
i.f();
}
var a,
s = d(e.rows);
try {
for (s.s(); !(a = s.n()).done; ) {
var u,
c = d(a.value);
try {
for (c.s(); !(u = c.n()).done; ) {
var l = u.value;
p.walkTokens(l.tokens, t);
}
} catch (f) {
c.e(f);
} finally {
c.f();
}
}
} catch (f) {
s.e(f);
} finally {
s.f();
}
break;
case "list":
p.walkTokens(e.items, t);
break;
default:
p.defaults.extensions &&
p.defaults.extensions.childTokens &&
p.defaults.extensions.childTokens[e.type]
? p.defaults.extensions.childTokens[e.type].forEach(
function (n) {
p.walkTokens(e[n], t);
},
)
: e.tokens && p.walkTokens(e.tokens, t);
}
};
for (r.s(); !(n = r.n()).done; ) i();
} catch (o) {
r.e(o);
} finally {
r.f();
}
}),
(p.parseInline = function (e, t) {
if (null == e)
throw new Error(
"marked.parseInline(): input parameter is undefined or null",
);
if ("string" != typeof e)
throw new Error(
"marked.parseInline(): input parameter is of type " +
Object.prototype.toString.call(e) +
", string expected",
);
((t = (0, c.merge)({}, p.defaults, t || {})),
(0, c.checkSanitizeDeprecation)(t));
try {
var n = r.Lexer.lexInline(e, t);
return (
t.walkTokens && p.walkTokens(n, t.walkTokens),
i.Parser.parseInline(n, t)
);
} catch (o) {
if (
((o.message +=
"\nPlease report this to https://github.com/markedjs/marked."),
t.silent)
)
return (
"An error occurred:
" +
(0, c.escape)(o.message + "", !0) +
""
);
throw o;
}
}),
(p.Parser = i.Parser),
(p.parser = i.Parser.parse),
(p.Renderer = a.Renderer),
(p.TextRenderer = s.TextRenderer),
(p.Lexer = r.Lexer),
(p.lexer = r.Lexer.lex),
(p.Tokenizer = o.Tokenizer),
(p.Slugger = u.Slugger),
(p.parse = p),
(t.options = p.options),
(t.setOptions = p.setOptions),
(t.use = p.use),
(t.walkTokens = p.walkTokens),
(t.parseInline = p.parseInline),
(t.parse = p),
(t.parser = i.Parser.parse),
(t.lexer = r.Lexer.lex));
},
5779: function (e, t, n) {
"use strict";
(Object.defineProperty(t, "__esModule", { value: !0 }),
(t.inline = t.block = void 0));
var r = n(9105),
i = (t.block = {
newline: /^(?: *(?:\n|$))+/,
code: /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,
fences:
/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,
hr: /^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,
heading: /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,
blockquote: /^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,
list: /^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,
html: "^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",
def: /^ {0,3}\[(label)\]: *(?:\n *)?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,
table: r.noopTest,
lheading: /^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,
_paragraph:
/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,
text: /^[^\n]+/,
});
((i._label = /(?!\s*\])(?:\\.|[^\[\]\\])+/),
(i._title =
/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/),
(i.def = (0, r.edit)(i.def)
.replace("label", i._label)
.replace("title", i._title)
.getRegex()),
(i.bullet = /(?:[*+-]|\d{1,9}[.)])/),
(i.listItemStart = (0, r.edit)(/^( *)(bull) */)
.replace("bull", i.bullet)
.getRegex()),
(i.list = (0, r.edit)(i.list)
.replace(/bull/g, i.bullet)
.replace(
"hr",
"\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))",
)
.replace("def", "\\n+(?=" + i.def.source + ")")
.getRegex()),
(i._tag =
"address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul"),
(i._comment = /|$)/),
(i.html = (0, r.edit)(i.html, "i")
.replace("comment", i._comment)
.replace("tag", i._tag)
.replace(
"attribute",
/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/,
)
.getRegex()),
(i.paragraph = (0, r.edit)(i._paragraph)
.replace("hr", i.hr)
.replace("heading", " {0,3}#{1,6} ")
.replace("|lheading", "")
.replace("|table", "")
.replace("blockquote", " {0,3}>")
.replace(
"fences",
" {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n",
)
.replace("list", " {0,3}(?:[*+-]|1[.)]) ")
.replace(
"html",
"?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)",
)
.replace("tag", i._tag)
.getRegex()),
(i.blockquote = (0, r.edit)(i.blockquote)
.replace("paragraph", i.paragraph)
.getRegex()),
(i.normal = (0, r.merge)({}, i)),
(i.gfm = (0, r.merge)({}, i.normal, {
table:
"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",
})),
(i.gfm.table = (0, r.edit)(i.gfm.table)
.replace("hr", i.hr)
.replace("heading", " {0,3}#{1,6} ")
.replace("blockquote", " {0,3}>")
.replace("code", " {4}[^\\n]")
.replace(
"fences",
" {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n",
)
.replace("list", " {0,3}(?:[*+-]|1[.)]) ")
.replace(
"html",
"?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)",
)
.replace("tag", i._tag)
.getRegex()),
(i.gfm.paragraph = (0, r.edit)(i._paragraph)
.replace("hr", i.hr)
.replace("heading", " {0,3}#{1,6} ")
.replace("|lheading", "")
.replace("table", i.gfm.table)
.replace("blockquote", " {0,3}>")
.replace(
"fences",
" {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n",
)
.replace("list", " {0,3}(?:[*+-]|1[.)]) ")
.replace(
"html",
"?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)",
)
.replace("tag", i._tag)
.getRegex()),
(i.pedantic = (0, r.merge)({}, i.normal, {
html: (0, r.edit)(
"^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|