function encrypt(n) {
return C.AES.encrypt(n, C.enc.Utf8.parse("bSRRwjoAoGW2dX6w"), {
mode: C.mode.ECB,
padding: C.pad.Pkcs7
}).toString()
}
function refreshCode() {
this.verifyCode = k + "?t=" + new Date().getTime() + "&verifyToken=" + this.verifyToken
}
function handleThirdPartyLogin(n) {
const e = encodeURIComponent(this.redirectUrl);
location.href = `/api/rest/v2/unsecure/thirdPartyLogin/loginRedirect?thirdPartyType=${n}&callbackUrl=${e}`
}
async function handleSubmit() {
if (!(this.form.account === "" || this.form.password === ""))
try {
const n = await x({}, {
username: this.form.account,
password: this.encrypt(this.form.password),
checkCode: this.form.checkCode,
verifyToken: this.verifyToken
});
if (await Z(n.token),
await F.checkPasswordStatusUsingPOST({}) || !1) {
D({
title: "更改密码",
ModalContent: ne,
closable: !1,
maskClosable: !1,
param: {
title: "初次登录,请更改密码确保账号安全",
onOk() {
Q({
DrawerContent: H,
title: "更改密码",
width: "42%",
maskClosable: !1,
param: {
disableClose: !0
}
})
}
}
});
return
}
location.href = this.redirectUrl
} catch (n) {
console.error(n),
this.loginError = !0
}
}
function() {
function Be(Me) {
return typeof Me == "string" ? Ne : we
}
return function (Me) {
return {
encrypt: function (Ue, Le, Ve) {
return Be(Le).encrypt(Me, Ue, Le, Ve)
},
decrypt: function (Ue, Le, Ve) {
return Be(Le).decrypt(Me, Ue, Le, Ve)
}
}
}
}
encrypt: function(Be, Me, Ue, Le) {
Le = this.cfg.extend(Le);
var Ve = Be.createEncryptor(Ue, Le)
, He = Ve.finalize(Me)
, ze = Ve.cfg;
return _e.create({
ciphertext: He,
key: Ue,
iv: ze.iv,
algorithm: Be,
mode: ze.mode,
padding: ze.padding,
blockSize: Be.blockSize,
formatter: Le.format
})
},
decrypt: function(Be, Me, Ue, Le) {
Le = this.cfg.extend(Le),
Me = this._parse(Me, Le.format);
var Ve = Be.createDecryptor(Ue, Le).finalize(Me.ciphertext);
return Ve
},
init = function (ce) {
if (ce instanceof ArrayBuffer && (ce = new Uint8Array(ce)),
(ce instanceof Int8Array || typeof Uint8ClampedArray < "u" && ce instanceof Uint8ClampedArray || ce instanceof Int16Array || ce instanceof Uint16Array || ce instanceof Int32Array || ce instanceof Uint32Array || ce instanceof Float32Array || ce instanceof Float64Array) && (ce = new Uint8Array(ce.buffer, ce.byteOffset, ce.byteLength)),
ce instanceof Uint8Array) {
for (var de = ce.byteLength, ue = [], Ae = 0; Ae < de; Ae++)
ue[Ae >>> 2] |= ce[Ae] << 24 - Ae % 4 * 8;
se.call(this, ue, de)
} else
se.apply(this, arguments)
}
parse = function (Ce) {
return he.parse(unescape(encodeURIComponent(Ce)))
}
function he(ye, Ce) {
var _e = (this._lBlock >>> ye ^ this._rBlock) & Ce;
this._rBlock ^= _e,
this._lBlock ^= _e << ye
}
function ye(ve, be) {
var we = ne(ve).listeners;
if (!we.push)
throw new Error("Cannot add listener to an element that is not detectable.");
ne(ve).listeners.push(be)
}
function Ce(ve, be, we) {
we || (we = be,
be = ve,
ve = null),
ve = ve || {};
function Te() {
if (ve.debug) {
var ot = Array.prototype.slice.call(arguments);
if (ot.unshift(oe.get(be), "Scroll: "),
te.log.apply)
te.log.apply(null, ot);
else
for (var vt = 0; vt < ot.length; vt++)
te.log(ot[vt])
}
}
function Ee(ot) {
function vt(xt) {
var Nt = xt.getRootNode && xt.getRootNode().contains(xt);
return xt === xt.ownerDocument.body || xt.ownerDocument.body.contains(xt) || Nt
}
return !vt(ot) || window.getComputedStyle(ot) === null
}
function Ne(ot) {
var vt = ne(ot).container.childNodes[0]
, xt = window.getComputedStyle(vt);
return !xt.width || xt.width.indexOf("px") === -1
}
function Be() {
var ot = window.getComputedStyle(be)
, vt = {};
return vt.position = ot.position,
vt.width = be.offsetWidth,
vt.height = be.offsetHeight,
vt.top = ot.top,
vt.right = ot.right,
vt.bottom = ot.bottom,
vt.left = ot.left,
vt.widthCSS = ot.width,
vt.heightCSS = ot.height,
vt
}
function Me() {
var ot = Be();
ne(be).startSize = {
width: ot.width,
height: ot.height
},
Te("Element start size", ne(be).startSize)
}
function Ue() {
ne(be).listeners = []
}
function Le() {
if (Te("storeStyle invoked."),
!ne(be)) {
Te("Aborting because element has been uninstalled");
return
}
var ot = Be();
ne(be).style = ot
}
function Ve(ot, vt, xt) {
ne(ot).lastWidth = vt,
ne(ot).lastHeight = xt
}
function He(ot) {
return me(ot).childNodes[0]
}
function ze() {
return 2 * ie.width + 1
}
function Je() {
return 2 * ie.height + 1
}
function et(ot) {
return ot + 10 + ze()
}
function Ze(ot) {
return ot + 10 + Je()
}
function ft(ot) {
return ot * 2 + ze()
}
function it(ot) {
return ot * 2 + Je()
}
function nt(ot, vt, xt) {
var Nt = me(ot)
, It = ge(ot)
, kt = et(vt)
, zt = Ze(xt)
, Qt = ft(vt)
, Lt = it(xt);
Nt.scrollLeft = kt,
Nt.scrollTop = zt,
It.scrollLeft = Qt,
It.scrollTop = Lt
}
function lt() {
var ot = ne(be).container;
if (!ot) {
ot = document.createElement("div"),
ot.className = le,
ot.style.cssText = de(["visibility: hidden", "display: inline", "width: 0px", "height: 0px", "z-index: -1", "overflow: hidden", "margin: 0", "padding: 0"]),
ne(be).container = ot,
pe(ot),
be.appendChild(ot);
var vt = function () {
ne(be).onRendered && ne(be).onRendered()
};
fe(ot, "animationstart", vt),
ne(be).onAnimationStart = vt
}
return ot
}
function ht() {
function ot() {
var Ba = ne(be).style;
if (Ba.position === "static") {
be.style.setProperty("position", "relative", ve.important ? "important" : "");
var bt = function (wt, Bt, Pt, Yt) {
function ia(ma) {
return ma.replace(/[^-\d\.]/g, "")
}
var ra = Pt[Yt];
ra !== "auto" && ia(ra) !== "0" && (wt.warn("An element that is positioned static has style." + Yt + "=" + ra + " which is ignored due to the static positioning. The element will need to be positioned relative, so the style." + Yt + " will be set to 0. Element: ", Bt),
Bt.style[Yt] = 0)
};
bt(te, be, Ba, "top"),
bt(te, be, Ba, "right"),
bt(te, be, Ba, "bottom"),
bt(te, be, Ba, "left")
}
}
function vt(Ba, bt, wt, Bt) {
return Ba = Ba ? Ba + "px" : "0",
bt = bt ? bt + "px" : "0",
wt = wt ? wt + "px" : "0",
Bt = Bt ? Bt + "px" : "0",
["left: " + Ba, "top: " + bt, "right: " + Bt, "bottom: " + wt]
}
if (Te("Injecting elements"),
!ne(be)) {
Te("Aborting because element has been uninstalled");
return
}
ot();
var xt = ne(be).container;
xt || (xt = lt());
var Nt = ie.width
, It = ie.height
, kt = de(["position: absolute", "flex: none", "overflow: hidden", "z-index: -1", "visibility: hidden", "width: 100%", "height: 100%", "left: 0px", "top: 0px"])
, zt = de(["position: absolute", "flex: none", "overflow: hidden", "z-index: -1", "visibility: hidden"].concat(vt(-(1 + Nt), -(1 + It), -It, -Nt)))
, Qt = de(["position: absolute", "flex: none", "overflow: scroll", "z-index: -1", "visibility: hidden", "width: 100%", "height: 100%"])
, Lt = de(["position: absolute", "flex: none", "overflow: scroll", "z-index: -1", "visibility: hidden", "width: 100%", "height: 100%"])
, fa = de(["position: absolute", "left: 0", "top: 0"])
, Oa = de(["position: absolute", "width: 200%", "height: 200%"])
, ha = document.createElement("div")
, oa = document.createElement("div")
, da = document.createElement("div")
, Aa = document.createElement("div")
, Ua = document.createElement("div")
, Qa = document.createElement("div");
ha.dir = "ltr",
ha.style.cssText = kt,
ha.className = le,
oa.className = le,
oa.style.cssText = zt,
da.style.cssText = Qt,
Aa.style.cssText = fa,
Ua.style.cssText = Lt,
Qa.style.cssText = Oa,
da.appendChild(Aa),
Ua.appendChild(Qa),
oa.appendChild(da),
oa.appendChild(Ua),
ha.appendChild(oa),
xt.appendChild(ha);
function ya() {
var Ba = ne(be);
Ba && Ba.onExpand ? Ba.onExpand() : Te("Aborting expand scroll handler: element has been uninstalled")
}
function un() {
var Ba = ne(be);
Ba && Ba.onShrink ? Ba.onShrink() : Te("Aborting shrink scroll handler: element has been uninstalled")
}
fe(da, "scroll", ya),
fe(Ua, "scroll", un),
ne(be).onExpandScroll = ya,
ne(be).onShrinkScroll = un
}
function yt() {
function ot(Qt, Lt, fa) {
var Oa = He(Qt)
, ha = et(Lt)
, oa = Ze(fa);
Oa.style.setProperty("width", ha + "px", ve.important ? "important" : ""),
Oa.style.setProperty("height", oa + "px", ve.important ? "important" : "")
}
function vt(Qt) {
var Lt = be.offsetWidth
, fa = be.offsetHeight
, Oa = Lt !== ne(be).lastWidth || fa !== ne(be).lastHeight;
Te("Storing current size", Lt, fa),
Ve(be, Lt, fa),
ae.add(0, function () {
if (Oa) {
if (!ne(be)) {
Te("Aborting because element has been uninstalled");
return
}
if (!xt()) {
Te("Aborting because element container has not been initialized");
return
}
if (ve.debug) {
var oa = be.offsetWidth
, da = be.offsetHeight;
(oa !== Lt || da !== fa) && te.warn(oe.get(be), "Scroll: Size changed before updating detector elements.")
}
ot(be, Lt, fa)
}
}),
ae.add(1, function () {
if (!ne(be)) {
Te("Aborting because element has been uninstalled");
return
}
if (!xt()) {
Te("Aborting because element container has not been initialized");
return
}
nt(be, Lt, fa)
}),
Oa && Qt && ae.add(2, function () {
if (!ne(be)) {
Te("Aborting because element has been uninstalled");
return
}
if (!xt()) {
Te("Aborting because element container has not been initialized");
return
}
Qt()
})
}
function xt() {
return !!ne(be).container
}
function Nt() {
function Qt() {
return ne(be).lastNotifiedWidth === void 0
}
Te("notifyListenersIfNeeded invoked");
var Lt = ne(be);
if (Qt() && Lt.lastWidth === Lt.startSize.width && Lt.lastHeight === Lt.startSize.height)
return Te("Not notifying: Size is the same as the start size, and there has been no notification yet.");
if (Lt.lastWidth === Lt.lastNotifiedWidth && Lt.lastHeight === Lt.lastNotifiedHeight)
return Te("Not notifying: Size already notified");
Te("Current size not notified, notifying..."),
Lt.lastNotifiedWidth = Lt.lastWidth,
Lt.lastNotifiedHeight = Lt.lastHeight,
forEach$2(ne(be).listeners, function (fa) {
fa(be)
})
}
function It() {
if (Te("startanimation triggered."),
Ne(be)) {
Te("Ignoring since element is still unrendered...");
return
}
Te("Element rendered.");
var Qt = me(be)
, Lt = ge(be);
(Qt.scrollLeft === 0 || Qt.scrollTop === 0 || Lt.scrollLeft === 0 || Lt.scrollTop === 0) && (Te("Scrollbars out of sync. Updating detector elements..."),
vt(Nt))
}
function kt() {
if (Te("Scroll detected."),
Ne(be)) {
Te("Scroll event fired while unrendered. Ignoring...");
return
}
vt(Nt)
}
if (Te("registerListenersAndPositionElements invoked."),
!ne(be)) {
Te("Aborting because element has been uninstalled");
return
}
ne(be).onRendered = It,
ne(be).onExpand = kt,
ne(be).onShrink = kt;
var zt = ne(be).style;
ot(be, zt.width, zt.height)
}
function St() {
if (Te("finalizeDomMutation invoked."),
!ne(be)) {
Te("Aborting because element has been uninstalled");
return
}
var ot = ne(be).style;
Ve(be, ot.width, ot.height),
nt(be, ot.width, ot.height)
}
function At() {
we(be)
}
function rt() {
Te("Installing..."),
Ue(),
Me(),
ae.add(0, Le),
ae.add(1, ht),
ae.add(2, yt),
ae.add(3, St),
ae.add(4, At)
}
Te("Making detectable..."),
Ee(be) ? (Te("Element is detached"),
lt(),
Te("Waiting until element is attached..."),
ne(be).onRendered = function () {
Te("Element is now attached"),
rt()
}
) : rt()
}