You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/layouts__index.01db42e8.asy...

108 lines
43 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{"+ego":
/*!*******************************************!*\
!*** ./src/layouts/index.tsx + 7 modules ***!
\*******************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@ant-design/icons/es/icons/CloseOutlined.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/regenerator/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/User/PopLoginRegister/PopLogin.less?modules (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/User/PopLoginRegister/components/LoginPanel/index.less?modules (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/User/PopLoginRegister/components/OauthPanel/index.less?modules (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./src/.umi-production/core/umiExports.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/Header/index.tsx */
/*! ModuleConcatenation bailout: Cannot concat with ./src/service/user.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./src/styles/index.tsx */
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/env.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/fetch.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/util.tsx */
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/User/PopLoginRegister/components/OauthPanel/qq.svg (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/User/PopLoginRegister/components/OauthPanel/wechat.svg (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/button/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/button/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/checkbox/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/checkbox/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/col/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/col/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/config-provider/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/config-provider/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/form/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/form/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/input/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/input/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/locale/zh_CN.js (<- Module is referenced from these modules with unsupported syntax: ./src/.umi-production/plugin-locale/locale.tsx (referenced with cjs require)) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/message/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/message/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/modal/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/modal/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/row/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/row/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/spin/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/spin/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tabs/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tabs/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tooltip/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tooltip/style/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/moment/moment.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react-router-dom/esm/react-router-dom.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react-router/esm/react-router.js */
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,a){"use strict";a.r(t);a("GNNt");var n,r=a("wEI+"),o=(a("T2oS"),a("W9HT")),l=(a("2qtc"),a("kLXV")),i=a("k1fw"),s=a("9og8"),c=a("PpiC"),u=a("WmNS"),d=a.n(u),m=a("q1tI"),p=a.n(m),f=a("+Gva"),g=a("9kvl"),h=(a("14J3"),a("BMrR")),b=(a("jCWc"),a("kPKH")),v=(a("miYZ"),a("tsqr")),w=a("tJVT"),y=(a("Znn+"),a("ZTPi")),E=(a("+L6B"),a("2/Rp")),x=(a("sRBo"),a("kaz8")),j=(a("5NDa"),a("5rEg")),O=(a("y8nQ"),a("Vl3Y")),k=a("55Ip"),_=a("jb+D"),T=a("4i/N"),S=a("Ty5D"),C=a("m3rI"),N=(a("0zpY"),{height:48,borderRadius:4}),I=Object(g.a)((function(e){var t=e.user,a=e.loading;return{user:t,globalSetting:e.globalSetting,loading:a.models.index}}))((function(e){var t=e.dispatch,a=(e.setType,e.user),n=(e.setusername,O.a.useForm()),r=Object(w.a)(n,1)[0],o=Object(S.h)(),l=Object(m.useState)(""),i=Object(w.a)(l,2),c=i[0],u=i[1],f=Object(m.useState)(0),h=Object(w.a)(f,2),b=h[0],y=h[1],I=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/,q=Object(m.useMemo)((function(){return"/rucaptcha?t="+(new Date).getTime()}),[b]),P=function(){var e=Object(s.a)(d.a.mark((function e(t){var a,n,l,i;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(_.b)(t);case 2:if(!(a=e.sent).status){e.next=6;break}return u(null==a?void 0:a.message),e.abrupt("return");case 6:null!=a&&a.show?(localStorage.setItem("extension-modal","exist"),localStorage.setItem("extension-date",null==a?void 0:a.start_date)):localStorage.removeItem("extension-modal"),console.log(g.d,"history"),"/user/login"===o.pathname||"/login"===o.pathname?(i=(null===(n=o.query)||void 0===n?void 0:n.from)||(null===(l=o.query)||void 0===l?void 0:l.back_url))?window.location.href=decodeURIComponent(i):I.test(t.password)?window.location.reload():(v.b.info("系统检测您的密码强度过低,请及时修改"),window.location.href="/account/secure"):window.location.reload(),r.resetFields();case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return p.a.createElement(O.a,{layout:"vertical",form:r,initialValues:{autologin:!0,login:a.actionTabs.phone},onFinish:P,onValuesChange:function(){return u("")}},!!c&&p.a.createElement("div",{className:"res-error-values"},p.a.createElement("span",null,c),p.a.createElement(T.a,{onClick:function(){return u("")}})),p.a.createElement(O.a.Item,{name:"login",rules:[{required:!0,message:"请输入用户名、手机号或邮箱"}]},p.a.createElement(j.a,{style:N,size:"large",placeholder:"请输入有效的手机号/邮箱号/账号",onBlur:function(){t({type:"user/setActionTabs",payload:{phone:r.getFieldValue("login")}})}})),p.a.createElement(O.a.Item,{name:"password",rules:[{required:!0,message:"请输入8-16位密码区分大小写、不能使用空格"}]},p.a.createElement(j.a.Password,{style:N,size:"large",placeholder:"密码"})),p.a.createElement(O.a.Item,{name:"code",rules:[{required:!0,message:"请输入验证码"}]},p.a.createElement("div",{style:{display:"flex"}},p.a.createElement(j.a,{style:N,size:"large",placeholder:"验证码"}),p.a.createElement("img",{src:(null===C.a||void 0===C.a?void 0:C.a.API_SERVER)+q,style:{height:"32px",marginLeft:"10px"},onClick:function(){y(b+1)}}))),p.a.createElement(O.a.Item,null,p.a.createElement("div",{className:"flex-container",style:{justifyContent:"space-between"}},p.a.createElement(O.a.Item,{name:"autologin",noStyle:!0,valuePropName:"checked"},p.a.createElement(x.a,null,"下次自动登录")),p.a.createElement("div",null,p.a.createElement("span",{className:"current font14 c-blue"},p.a.createElement(k.a,{className:"c-grey-333 font14",onClick:function(){t({type:"user/showPopLogin",payload:{showPopLogin:!1}})},to:"/user/reset-password?from=".concat(o.pathname)},"找回密码"))))),p.a.createElement(O.a.Item,null,p.a.createElement(E.a,{size:"large",type:"primary",htmlType:"submit",block:!0,className:"font16",style:N},"登录")))})),q=(a("5Dmo"),a("3S7+")),P=a("1vsH"),F={height:48},z=/(\b[\w\.-]+@[\w\.-]+\.\w{2,4}\b)|(^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$)/i,L=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/,V={timer:0};function R(e,t){switch(t.type){case n.setTimer:return Object(i.a)(Object(i.a)({},e),{},{timer:t.payload});default:throw new Error}}!function(e){e[e.setTimer=0]="setTimer"}(n||(n={}));var B,W=Object(g.a)((function(e){return{globalSetting:e.globalSetting}}))((function(e){var t,a=e.validateName,r=e.getCode,o=e.register,l=e.style,i=void 0===l?{}:l,c=e.buttonText,u=void 0===c?"注册":c,f=e.globalSetting,g=O.a.useForm(),h=Object(w.a)(g,1)[0],b=Object(m.useReducer)(R,V),v=Object(w.a)(b,2),y=v[0],x=v[1],k=Object(m.useState)(!1),_=Object(w.a)(k,2),T=_[0],S=_[1],C=y.timer;function N(){return(N=Object(s.a)(d.a.mark((function e(t){var a,n,r,l,i;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.login,n=t.password,r=t.code,e.next=3,o({login:a,password:n,code:r});case 3:if(l=e.sent,i=l.message,!(l.status<0)){e.next=9;break}return h.setFields([{name:"code",errors:[i]}]),e.abrupt("return");case 9:window.location.reload();case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function I(){return B.apply(this,arguments)}function B(){return(B=Object(s.a)(d.a.mark((function e(){var t,n,r,o,l;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=h.getFieldValue("login"),n=0,z.test(t)&&!(t.indexOf(" ")>-1)){e.next=6;break}return h.setFields([{name:"login",errors:["请输入正确的手机号或邮箱"]}]),n=1,e.abrupt("return",n);case 6:return e.next=8,a({login:t,type:1});case 8:return r=e.sent,o=r.status,l=r.message,o>0?n=2:(h.setFields([{name:"login",errors:[l]}]),n=1),e.abrupt("return",n);case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var W=function(){var e=Object(s.a)(d.a.mark((function e(){var t,o,l,i,s;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h.getFieldValue("verify"),t=h.getFieldValue("login")){e.next=6;break}h.validateFields(["login"]),e.next=21;break;case 6:return e.next=8,a({login:t,type:1});case 8:if(1===(null==(o=e.sent)?void 0:o.status)){e.next=12;break}return h.setFields([{name:"login",errors:[null==o?void 0:o.message]}]),e.abrupt("return");case 12:return S(!0),e.next=15,r({login:t,type:1,smscode:Object(P.X)(t)});case 15:l=e.sent,i=l.status,s=l.message,i<0&&h.setFields([{name:"code",errors:[s]}]),x({type:n.setTimer,payload:60}),S(!1);case 21:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();Object(m.useEffect)((function(){C>0&&setTimeout((function(){x({type:n.setTimer,payload:C-1})}),1e3)}),[C]);return p.a.createElement(O.a,{layout:"vertical",form:h,style:i,initialValues:{autologin:!0,protool:!1},onFinish:function(e){return N.apply(this,arguments)}},p.a.createElement(O.a.Item,{name:"login",rules:[{required:!0,message:"请输入正确的手机号或邮箱"},{validator:function(e,t){return t?t.indexOf(" ")>-1?Promise.reject("请输入正确的手机号或邮箱"):z.test(t)?Promise.resolve():Promise.reject("请输入正确的手机号或邮箱"):Promise.resolve()}}]},p.a.createElement(j.a,{style:F,autoComplete:"new-login",size:"large",placeholder:"请输入有效的手机号/邮箱号",onBlur:function(){return I},onChange:function(){return h.setFieldsValue({verify:0})}})),!(null!=f&&null!==(t=f.setting)&&void 0!==t&&t.is_local)&&p.a.createElement(O.a.Item,{name:"code",rules:[{required:!0,message:"请输入验证码"}]},p.a.createElement(j.a,{suffix:p.a.createElement(E.a,{loading:T,type:"link",onClick:W,disabled:C>0}," ",0===C?"获取验证码":"".concat(C,"秒可重新获取")),style:{paddingRight:2,height:48},placeholder:"请输入验证码",size:"large"})),p.a.createElement(q.a,{title:p.a.createElement("div",null,p.a.createElement("span",null,"长度为8-16位字符"),p.a.createElement("br",null),p.a.createElement("span",null,"字母/数字以及标点符号至少包含2种"),p.a.createElement("br",null),p.a.createElement("span",null,"不允许有空格、中文")),placement:"topRight"},p.a.createElement(O.a.Item,{name:"password",rules:[{required:!0,message:"请输入8-16位密码区分大小写、不能使用空格"},{validator:function(e,t){if(!t)return Promise.resolve();if(!L.test(t))return Promise.reject("请输入8~16位字符字母、数字和特殊符号至少包含2种");if(t.indexOf(" ")>-1)return Promise.reject("请输入8-16位密码区分大小写、不能使用空格");var a=t.length;return a>=8&&a<=16?Promise.resolve():Promise.reject("请输入8-16位密码区分大小写、不能使用空格")}}]},p.a.createElement(j.a.Password,{autoComplete:"new-password",style:F,size:"large",placeholder:"请输入8~16位字符字母、数字和特殊符号至少包含2种"}))),p.a.createElement(O.a.Item,null,p.a.createElement(E.a,{size:"large",type:"primary",htmlType:"submit",block:!0,style:F,className:"font16"}," ",u," ")),p.a.createElement("div",{className:"tc",style:{paddingTop:0,paddingBottom:35}},"注册并登录即代表您已阅读并同意",p.a.createElement("a",{href:"https://engineer.educoder.net/help?index=4",target:"_blank"},"《服务协议条款》")))})),D={height:48},H=/(\b[\w\.-]+@[\w\.-]+\.\w{2,4}\b)|(^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$)/i,M=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/,$={timer:0};function A(e,t){switch(t.type){case B.setTimer:return Object(i.a)(Object(i.a)({},e),{},{timer:t.payload});default:throw new Error}}!function(e){e[e.setTimer=0]="setTimer"}(B||(B={}));var Z=Object(g.a)((function(e){return{globalSetting:e.globalSetting}}))((function(e){var t,a=e.validateName,n=e.getCode,r=e.register,o=e.style,l=void 0===o?{}:o,i=e.buttonText,c=void 0===i?"注册":i,u=e.globalSetting,f=O.a.useForm(),g=Object(w.a)(f,1)[0],h=Object(m.useReducer)(A,$),b=Object(w.a)(h,2),v=b[0],y=b[1],x=Object(m.useState)(!1),k=Object(w.a)(x,2),_=k[0],T=k[1],S=v.timer;function C(){return(C=Object(s.a)(d.a.mark((function e(t){var a,n,o,l,i;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.login,n=t.new_password,o=t.code,e.next=3,r({login:a,new_password:n,code:o});case 3:if(l=e.sent,i=l.message,!(l.status<0)){e.next=9;break}return g.setFields([{name:"code",errors:[i]}]),e.abrupt("return");case 9:location.reload();case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var N=function(){var e=Object(s.a)(d.a.mark((function e(){var t,a,r,o;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return g.getFieldValue("verify"),t=g.getFieldValue("login"),e.next=4,g.validateFields(["login"]);case 4:if(t){e.next=8;break}g.validateFields(["login"]),e.next=17;break;case 8:return T(!0),e.next=11,n({login:t,type:2,smscode:Object(P.X)(t)});case 11:a=e.sent,r=a.status,o=a.message,r<0&&g.setFields([{name:"code",errors:[o]}]),y({type:B.setTimer,payload:60}),T(!1);case 17:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();Object(m.useEffect)((function(){S>0&&setTimeout((function(){y({type:B.setTimer,payload:S-1})}),1e3)}),[S]);var I=function(){var e=Object(s.a)(d.a.mark((function e(t,n){var r,o,l;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt("return",Promise.resolve());case 2:if(!(n.indexOf(" ")>-1)){e.next=4;break}return e.abrupt("return",Promise.reject("请输入正确的手机号或邮箱"));case 4:if(!H.test(n)){e.next=18;break}return e.next=7,a({login:n,type:2});case 7:if(r=e.sent,o=r.status,l=r.message,!(o>0)){e.next=15;break}return e.abrupt("return",Promise.resolve());case 15:return e.abrupt("return",Promise.reject(l));case 16:e.next=19;break;case 18:return e.abrupt("return",Promise.reject("请输入正确的手机号或邮箱"));case 19:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}();return p.a.createElement(O.a,{layout:"vertical",form:g,style:l,initialValues:{autologin:!0,protool:!1},onFinish:function(e){return C.apply(this,arguments)}},p.a.createElement(O.a.Item,{name:"login",rules:[{required:!0,message:"请输入正确的手机号或邮箱"},{validator:I}]},p.a.createElement(j.a,{style:D,autoComplete:"new-login",size:"large",placeholder:"请输入有效的手机号/邮箱号",onChange:function(){return g.setFieldsValue({verify:0})}})),p.a.createElement(q.a,{title:p.a.createElement("div",null,p.a.createElement("span",null,"长度为8-16位字符"),p.a.createElement("br",null),p.a.createElement("span",null,"字母/数字以及标点符号至少包含2种"),p.a.createElement("br",null),p.a.createElement("span",null,"不允许有空格、中文")),placement:"topRight"},p.a.createElement(O.a.Item,{name:"new_password",rules:[{required:!0,message:"请输入8-16位新密码区分大小写、不能使用空格"},{validator:function(e,t){if(!t)return Promise.resolve();if(!M.test(t))return Promise.reject("请输入8~16位字符字母、数字和特殊符号至少包含2种");if(t.indexOf(" ")>-1)return Promise.reject("请输入8-16位新密码区分大小写、不能使用空格");var a=t.length;return a>=8&&a<=16?Promise.resolve():Promise.reject("请输入8-16位新密码区分大小写、不能使用空格")}}]},p.a.createElement(j.a.Password,{autoComplete:"new-password",style:D,size:"large",placeholder:"输入816位新密码区分大小写"}))),!(null!=u&&null!==(t=u.setting)&&void 0!==t&&t.is_local)&&p.a.createElement(O.a.Item,{name:"code",rules:[{required:!0,message:"请输入验证码"}]},p.a.createElement(j.a,{suffix:p.a.createElement(E.a,{loading:_,type:"link",onClick:N,disabled:S>0}," ",0===S?"获取验证码":"".concat(S,"秒可重新获取")),style:{paddingRight:2,height:48},placeholder:"请输入验证码",size:"large"})),p.a.createElement(O.a.Item,null,p.a.createElement(E.a,{size:"large",type:"primary",htmlType:"submit",block:!0,style:D,className:"font16"}," ",c," ")),p.a.createElement("div",{className:"tc",style:{paddingTop:0,paddingBottom:20}},"修改并登录即代表您已阅读并同意",p.a.createElement("a",{href:"https://engineer.educoder.net/help?index=4",target:"_blank"},"《服务协议条款》")))})),Y=a("h0ge"),G=a.n(Y),Q=a("/nL+"),X=a.n(Q),J=a("IxGP"),U=a.n(J),K=window.location.host,ee=C.a.QQLoginCB,te=function(e){var t=e.onWechatLogin,a=e.setType,n=e.loginType;return p.a.createElement(p.a.Fragment,null,(1===n||2===n)&&p.a.createElement("div",{style:{marginTop:4===n?20:92,marginBottom:60},className:"font16 tc"},"没有账号?",p.a.createElement("span",{onClick:function(){return a(3)},className:"c-blue current"},"免费注册")),(3===n||4===n||5===n)&&p.a.createElement("div",{style:{marginTop:92,marginBottom:60},className:"font16 tc"},"已有账号?",p.a.createElement("span",{onClick:function(){return a(1)},className:"c-blue current"},"立即登录")),p.a.createElement("p",{className:U.a.driver},p.a.createElement("span",{style:{color:"#444444"}},"快速登录")),p.a.createElement("div",{className:U.a["other-login"]},p.a.createElement("a",{title:"微信登录",onClick:t},p.a.createElement("img",{src:G.a,alt:"微信",width:66})),p.a.createElement("a",{title:"qq登录",onClick:function(){Object(P.M)()?window.location.href="https://graph.qq.com/oauth2.0/show?which=Login&display=pc&client_id=101508858&redirect_uri=".concat(ee,"%2fotherloginqq&state=null,").concat(K,"&response_type=code"):Object(P.Q)("https://xui.ptlogin2.qq.com/cgi-bin/xlogin?appid=716027609&pt_3rd_aid=101508858&daid=383&pt_skey_valid=0&style=35&s_url=http%3A%2F%2Fconnect.qq.com&refer_cgi=authorize&which=&client_id=101508858&response_type=code&scope=get_user_info&redirect_uri=".concat(ee,"%2fotherloginqq&state=null,").concat(K,"&response_type=code"))}},p.a.createElement("img",{src:X.a,alt:"QQ",width:66}))))};function ae(e){e.onBack;var t=e.setType;return p.a.createElement(p.a.Fragment,null,p.a.createElement("div",{style:{overflow:"hidden",width:300,height:300,margin:"20px auto 0 auto"}},p.a.createElement("iframe",{className:U.a["wechat-qrcode"],frameBorder:"0",sandbox:"allow-scripts allow-same-origin allow-top-navigation",scrolling:"no",src:"https://open.weixin.qq.com/connect/qrconnect?appid=wx6b119e2d829c13fa&redirect_uri=".concat(ee,"%2fotherloginstart&response_type=code&scope=snsapi_login&state=null,").concat(K,"#wechat_redirect")})),p.a.createElement("div",{style:{marginTop:17,marginBottom:10},className:"font16 bold tc c-blue current"},p.a.createElement("span",{onClick:function(){return t(1)},style:{borderBottom:"2px solid #0152d9"}},"返回账号登录")))}var ne,re={height:48},oe=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{8,16}$/,le={timer:0};function ie(e,t){switch(t.type){case ne.setTimer:return Object(i.a)(Object(i.a)({},e),{},{timer:t.payload});default:throw new Error}}!function(e){e[e.setTimer=0]="setTimer"}(ne||(ne={}));var se=Object(g.a)((function(e){return{globalSetting:e.globalSetting}}))((function(e){e.validateName,e.getCode;var t=e.register,a=e.style,n=void 0===a?{}:a,r=e.buttonText,o=void 0===r?"注册":r,l=(e.globalSetting,O.a.useForm()),i=Object(w.a)(l,1)[0],c=Object(m.useReducer)(ie,le),u=Object(w.a)(c,2),f=u[0],g=u[1],h=Object(m.useState)(!1),b=Object(w.a)(h,2),v=(b[0],b[1],f.timer);function y(){return(y=Object(s.a)(d.a.mark((function e(a){var n,r,o,l;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.old_password,r=a.newPassword,e.next=3,t({old_password:n,newPassword:r});case 3:if(o=e.sent,l=o.message,!(o.status<0)){e.next=9;break}return i.setFields([{name:"code",errors:[l]}]),e.abrupt("return");case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return Object(m.useEffect)((function(){v>0&&setTimeout((function(){g({type:ne.setTimer,payload:v-1})}),1e3)}),[v]),p.a.createElement(O.a,{layout:"vertical",form:i,style:n,initialValues:{autologin:!0,protool:!1},onFinish:function(e){return y.apply(this,arguments)}},p.a.createElement(O.a.Item,{name:"old_password",rules:[{required:!0,message:"请输入816位密码区分大小写"}]},p.a.createElement(j.a,{style:re,autoComplete:"new-login",size:"large",type:"password",placeholder:"请输入旧密码",onChange:function(){return i.setFieldsValue({verify:0})}})),p.a.createElement(q.a,{title:p.a.createElement("div",null,p.a.createElement("span",null,"长度为8-16位字符"),p.a.createElement("br",null),p.a.createElement("span",null,"字母/数字以及标点符号至少包含2种"),p.a.createElement("br",null),p.a.createElement("span",null,"不允许有空格、中文")),placement:"topRight"},p.a.createElement(O.a.Item,{name:"newPassword",rules:[{required:!0,message:"请输入8-16位新密码区分大小写、不能使用空格"},{validator:function(e,t,a){t?t.indexOf(" ")>-1?a("请输入8-16位密码区分大小写、不能使用空格"):t.length<8||t.length>16?a("请输入8-16位字符的新密码区分大小写"):oe.test(t)?a():a("请输入8~16位字符字母、数字和特殊符号至少包含2种"):a("请输入8-16位字符的新密码区分大小写")}}]},p.a.createElement(j.a.Password,{autoComplete:"new-password",style:re,size:"large",placeholder:"输入816位新密码区分大小写"}))),p.a.createElement(q.a,{title:p.a.createElement("div",null,p.a.createElement("span",null,"长度为8-16位字符"),p.a.createElement("br",null),p.a.createElement("span",null,"字母/数字以及标点符号至少包含2种"),p.a.createElement("br",null),p.a.createElement("span",null,"不允许有空格、中文")),placement:"topRight"},p.a.createElement(O.a.Item,{name:"againPassword",rules:[{required:!0,message:"请再次输入新密码"},{validator:function(e,t,a){t!=i.getFieldsValue().newPassword?a("两次输入的新密码必须一致!"):a()}}]},p.a.createElement(j.a.Password,{autoComplete:"new-password",style:re,size:"large",placeholder:"请再次输入新密码"}))),p.a.createElement(O.a.Item,null,p.a.createElement(E.a,{size:"large",type:"primary",htmlType:"submit",block:!0,style:re,className:"font16"}," ",o," ")),p.a.createElement("div",{className:"tc",style:{paddingTop:0,paddingBottom:20}},"修改并登录即代表您已阅读并同意",p.a.createElement("a",{href:"https://engineer.educoder.net/help?index=4",target:"_blank"},"《服务协议条款》")))})),ce=a("4R62"),ue=a.n(ce),de=y.a.TabPane,me=function(e){e.dispatch,e.is_main_site;var t=e.is_local,a=e.style,n=void 0===a?{}:a,r=Object(m.useState)(!1),o=Object(w.a)(r,2),l=(o[0],o[1]),c=Object(m.useState)("1"),u=Object(w.a)(c,2),f=u[0],g=u[1],E=Object(m.useState)(1),x=Object(w.a)(E,2),j=x[0],O=x[1],k=Object(m.useState)(),T=Object(w.a)(k,2),S=T[0],C=T[1];function N(){O(1),l(!1)}function q(e){console.log(e),g(e)}_.F,_.v,P=Object(s.a)(d.a.mark((function e(t){var a;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(_.a)({phone:t.login,code:t.code});case 2:if(0!==(a=e.sent).status){e.next=6;break}return null!=a&&a.show?(localStorage.setItem("extension-modal","exist"),localStorage.setItem("extension-date",null==a?void 0:a.start_date)):localStorage.removeItem("extension-modal"),e.abrupt("return","/");case 6:return e.abrupt("return",a);case 7:case"end":return e.stop()}}),e)})));var P,F,z,L,V={buttonText:"注册并登录",validateName:_.F,getCode:_.v,register:(F=Object(s.a)(d.a.mark((function e(t){var a;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(_.y)(Object(i.a)({},t));case 2:if(0!==(a=e.sent).status){e.next=9;break}return"1"===localStorage.getItem("addinfo")?localStorage.setItem("addinfo","2"):localStorage.setItem("registeruser","1"),localStorage.removeItem("extension-modal"),v.b.info("注册并登陆成功"),e.abrupt("return","/");case 9:return e.abrupt("return",a);case 10:case"end":return e.stop()}}),e)}))),function(e){return F.apply(this,arguments)})},R={buttonText:"修改密码",validateName:_.F,getCode:_.v,register:(z=Object(s.a)(d.a.mark((function e(t){var a;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(_.f)(Object(i.a)({login:S},t));case 2:return a=e.sent,v.b.info("修改密码成功"),e.abrupt("return",a);case 5:case"end":return e.stop()}}),e)}))),function(e){return z.apply(this,arguments)})},B={buttonText:"修改并登录",validateName:_.F,getCode:_.v,register:(L=Object(s.a)(d.a.mark((function e(t){var a;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.new_password_confirmation=t.new_password,e.next=3,Object(_.z)(Object(i.a)({},t));case 3:if(0!==(a=e.sent).status){e.next=8;break}return null!=a&&a.show?(localStorage.setItem("extension-modal","exist"),localStorage.setItem("extension-date",null==a?void 0:a.start_date)):localStorage.removeItem("extension-modal"),v.b.info("修改成功"),e.abrupt("return","/");case 8:return e.abrupt("return",a);case 9:case"end":return e.stop()}}),e)}))),function(e){return L.apply(this,arguments)})},D=Object(m.useCallback)((function(){switch(j){case 1:return p.a.createElement(y.a,{defaultActiveKey:f,onChange:q,className:ue.a.tabs},p.a.createElement(de,{tab:"账号登录",key:"1"},p.a.createElement("div",{className:"mt20"},"1"===f&&p.a.createElement(I,{setusername:C,setType:O}))));case 2:return p.a.createElement(ae,{setType:O,onBack:N});case 3:return p.a.createElement("div",{className:"ml40"},p.a.createElement("h1",{className:"font18 mb20 mt35"},"新用户注册"),p.a.createElement(W,V));case 4:return p.a.createElement("div",{className:"ml40"},p.a.createElement("h1",{className:"font18 mb20 mt35"},"找回密码"),p.a.createElement(Z,B));case 5:return p.a.createElement("div",{className:"ml40"},p.a.createElement("h1",{className:"font18 mb20 mt35"},"修改密码"),p.a.createElement(se,R))}}),[j,f]);return p.a.createElement("div",{className:ue.a["login-panel-wrapper2"],style:n},p.a.createElement(h.a,null,p.a.createElement(b.a,{flex:"1"},D()),p.a.createElement(b.a,{flex:"295px",className:ue.a["login-panel-right-wrp"]},!t&&p.a.createElement(te,{loginType:j,setType:O,onWechatLogin:function(){O(2),l(!0)}}))))},pe=a("1TMG"),fe=a.n(pe),ge=Object(g.a)((function(e){var t=e.user,a=e.loading;return{user:t,globalSetting:e.globalSetting,loading:a.models.index}}))((function(e){var t,a,n=e.user,r=e.globalSetting,o=(e.loading,e.dispatch),i=null===(t=r.setting)||void 0===t?void 0:t.main_site,s=null===(a=r.setting)||void 0===a?void 0:a.is_local;return p.a.createElement(l.a,{centered:!0,visible:n.showPopLogin,footer:null,width:s?420:765,keyboard:!1,maskClosable:!1,wrapClassName:fe.a.popLogin,closable:n.showClosable,onCancel:function(){o({type:"user/showPopLogin",payload:{showPopLogin:!1,showClosable:!1}})}},n.showPopLogin&&p.a.createElement(me,{is_main_site:i,is_local:s}))})),he=(a("wd/R"),a("ruvs")),be=a("JatN"),ve=a("ErOA");t.default=Object(g.a)((function(e){return{loading:e.loading,globalSetting:e.globalSetting,user:e.user}}))((function(e){e.loading;var t=e.globalSetting,a=e.children,n=(e.user,e.dispatch),u=e.location,h=(Object(c.a)(e,["loading","globalSetting","children","user","dispatch","location"]),Object(S.h)()),b=Object(he.b)(),v=t.globalLoading,w=function(){var e=Object(s.a)(d.a.mark((function e(){var t,a,r,o;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==u||!u.search){e.next=9;break}return(o=u.pathname.split("/")).includes("paths")&&(r=o[2]),e.next=6,n({type:"user/getUserInfo",payload:Object(i.a)(Object(i.a)(Object(i.a)({},b),u.query),{},{subject_id:r,websiteName:"educoder"})});case 6:a=e.sent,e.next=12;break;case 9:return e.next=11,n({type:"user/getUserInfo",payload:Object(i.a)({},b)});case 11:a=e.sent;case 12:null!==(t=a)&&void 0!==t&&t.username&&"/login"===h.pathname&&(u.href="/");case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();Object(m.useEffect)((function(){window.less.modifyVars(Object(i.a)({},be.a[t.theme]))}),[t.theme]),Object(m.useEffect)((function(){w()}),[u.pathname]),Object(m.useEffect)((function(){var e,t,a;if("/"!==u.pathname)if(null!==(e=u.pathname)&&void 0!==e&&e.includes("/competitions")||n({type:"competitions/switchLanguage",payload:!0}),u.pathname.indexOf("classrooms")>-1&&-1===u.pathname.indexOf("detail")||document.body.scrollIntoView(),u.pathname.indexOf("/classrooms/4RW9CYHY")>-1&&"localhost"!==document.domain&&"kepukehuan.educoder.net"!==document.domain)window.location.href="https://kepukehuan.educoder.net/classrooms/4RW9CYHY/exercise";else if(u.pathname.indexOf("/classrooms/qb4ft587")>-1&&"localhost"!==document.domain&&"kepukehuan.educoder.net"!==document.domain)window.location.href="https://kepukehuan.educoder.net/classrooms/qb4ft587/exercise";else if(u.pathname.indexOf("/classrooms/c5q9bsp2")>-1&&"localhost"!==document.domain&&"kepukehuan.educoder.net"!==document.domain)window.location.href="https://kepukehuan.educoder.net/classrooms/c5q9bsp2/exercise";else if(n({type:"globalSetting/query",payload:{}}),n({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),console.log(u,":location"),"https://jetcoder.educoder.net"!==window.location.href&&"https://jetcoder.educoder.net/"!==window.location.href)if(null!==(t=window.location.href)&&void 0!==t&&t.includes("/problems")&&null!==(a=window.location.href)&&void 0!==a&&a.includes("/share")){var r,o,i,s=null===(r=window.location)||void 0===r||null===(o=r.pathname)||void 0===o||null===(i=o.split("/"))||void 0===i?void 0:i[2];Object(ve.a)("/api/practices/".concat(s,"/start"),{method:"get"}).then((function(e){0===(null==e?void 0:e.status)&&g.d.replace("/problems/".concat(null==e?void 0:e.identifier,"/oj/").concat(s))}))}else{if("/admins"===u.pathname||"/sidekiq"===u.pathname){var c=document.domain;if(c.indexOf("educoder.net")>-1)switch(c){case"openi.org.cn":case"educoder.net":window.location.href="https://data.educoder.net".concat(u.pathname);break;default:var d=document.domain.split(".");d[0]=d[0]+"-data",window.location.href="https://".concat(d.join(".")).concat(u.pathname)}}l.a.destroyAll(),Object(P.L)()&&Object(P.r)("2.0.0")>0&&l.a.info({title:"客户端版本过低",centered:!0,content:p.a.createElement("div",null,p.a.createElement("span",{className:"c-red"},"您的启智考试系统柜客户端版本过低"),',请升级至最新版本后再使用,点击"确定"后将下载最新版本的客户端,',p.a.createElement("span",{className:"c-red"},"下载后请先退出客户端再安装")),okText:"立即升级",visible:!0,maskClosable:!1,onOk:function(){return Object(P.t)("启智.exe","https://www-cdn.educoder.net/app/启智.exe"),new Promise((function(){}))}}),Object(g.f)("zh-CN",!1)}else window.location.href="/problems";else g.d.replace("/forums")}),[u.pathname]),Object(m.useEffect)((function(){t.updateData.system_update?localStorage.updateEndTime||(new Date).getTime()<new Date(t.updateData.end_time).getTime()&&l.a.info({title:t.updateData.subject,content:t.updateData.system_score,onOk:function(){localStorage.updateEndTime=t.updateData.end_time}}):localStorage.removeItem("updateEndTime")}),[t.updateData.system_update]);return p.a.createElement(r.b,{locale:f.default},p.a.createElement(ge,null),p.a.createElement(o.a,{size:"large",spinning:v.show,tip:v.text,className:"ant-spin-nested-loading-black"},a))}))},"/nL+":
/*!***************************************************************************!*\
!*** ./src/components/User/PopLoginRegister/components/OauthPanel/qq.svg ***!
\***************************************************************************/
/*! no static exports found */
/*! exports used: default */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,a){e.exports=a.p+"static/qq.ee284be0.svg"},"0zpY":
/*!*******************************************************************************!*\
!*** ./src/components/User/PopLoginRegister/components/LoginPanel/index.less ***!
\*******************************************************************************/
/*! no static exports found */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,a){},"1TMG":
/*!********************************************************************!*\
!*** ./src/components/User/PopLoginRegister/PopLogin.less?modules ***!
\********************************************************************/
/*! no static exports found */
/*! exports used: default */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,a){e.exports={popLogin:"popLogin___3dT1f"}},"4R62":
/*!***************************************************************************************!*\
!*** ./src/components/User/PopLoginRegister/components/LoginPanel/index.less?modules ***!
\***************************************************************************************/
/*! no static exports found */
/*! exports used: default */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,a){e.exports={"login-panel-wrapper2":"login-panel-wrapper2___togLZ","ant-form-item-explain":"ant-form-item-explain___ThRBE","ant-form-item":"ant-form-item___3IV6B","ant-form-item-with-help":"ant-form-item-with-help___tz-ky","login-panel-right-wrp":"login-panel-right-wrp___2GQ8_","res-error-values":"res-error-values___2aGnb",tabs:"tabs___2wmM-"}},"6cGi":
/*!*********************************************************!*\
!*** ./node_modules/rc-util/es/hooks/useMergedState.js ***!
\*********************************************************/
/*! exports provided: default */
/*! exports used: default */function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));var n=a(/*! @babel/runtime/helpers/esm/slicedToArray */"ODXe"),r=a(/*! react */"q1tI");function o(e,t){var a=t||{},o=a.defaultValue,l=a.value,i=a.onChange,s=a.postState,c=r.useState((function(){return void 0!==l?l:void 0!==o?"function"==typeof o?o():o:"function"==typeof e?e():e})),u=Object(n.a)(c,2),d=u[0],m=u[1],p=void 0!==l?l:d;s&&(p=s(p));var f=r.useRef(i);f.current=i;var g=r.useCallback((function(e){m(e),p!==e&&f.current&&f.current(e,p)}),[p,f]),h=r.useRef(!0);return r.useEffect((function(){h.current?h.current=!1:void 0===l&&m(l)}),[l]),[p,g]}},BU3w:
/*!***************************************************!*\
!*** ./node_modules/rc-util/es/Dom/dynamicCSS.js ***!
\***************************************************/
/*! exports provided: injectCSS, updateCSS */
/*! exports used: updateCSS */function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var n=a(/*! ./canUseDom */"MNnm");function r(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function o(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Object(n.a)())return null;var o,l=document.createElement("style");(null===(t=a.csp)||void 0===t?void 0:t.nonce)&&(l.nonce=null===(o=a.csp)||void 0===o?void 0:o.nonce);l.innerHTML=e;var i=r(a),s=i.firstChild;return a.prepend&&i.prepend?i.prepend(l):a.prepend&&s?i.insertBefore(l,s):i.appendChild(l),l}var l=new Map;function i(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r(a);if(!l.has(n)){var i=o("",a),s=i.parentNode;l.set(n,s),s.removeChild(i)}var c=Array.from(l.get(n).children).find((function(e){return"STYLE"===e.tagName&&e["rc-util-key"]===t}));if(c){var u,d,m;if((null===(u=a.csp)||void 0===u?void 0:u.nonce)&&c.nonce!==(null===(d=a.csp)||void 0===d?void 0:d.nonce))c.nonce=null===(m=a.csp)||void 0===m?void 0:m.nonce;return c.innerHTML!==e&&(c.innerHTML=e),c}var p=o(e,a);return p["rc-util-key"]=t,p}},IxGP:
/*!***************************************************************************************!*\
!*** ./src/components/User/PopLoginRegister/components/OauthPanel/index.less?modules ***!
\***************************************************************************************/
/*! no static exports found */
/*! exports used: default */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,a){e.exports={"other-login":"other-login___re0Nc","btn-link":"btn-link___1uZTy","wechat-qrcode":"wechat-qrcode___14L6l",driver:"driver___1fhl_"}},JatN:
/*!******************************************!*\
!*** ./src/styles/index.tsx + 2 modules ***!
\******************************************/
/*! exports provided: default */
/*! exports used: default */function(e,t,a){"use strict";var n={"@primary-color":"#0152d9"},r={"@primary-color":"#196efd"};t.a={defaults:n,vspaces:r}},ZpRC:
/*!*************************************************************************!*\
!*** ./node_modules/scroll-into-view-if-needed/es/index.js + 1 modules ***!
\*************************************************************************/
/*! exports provided: default */
/*! exports used: default */function(e,t,a){"use strict";function n(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function r(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function o(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var a=getComputedStyle(e,null);return r(a.overflowY,t)||r(a.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function l(e,t,a,n,r,o,l,i){return o<e&&l>t||o>e&&l<t?0:o<=e&&i<=a||l>=t&&i>=a?o-e-n:l>t&&i<a||o<e&&i>a?l-t+r:0}var i=function(e,t){var a=window,r=t.scrollMode,i=t.block,s=t.inline,c=t.boundary,u=t.skipOverflowHiddenElements,d="function"==typeof c?c:function(e){return e!==c};if(!n(e))throw new TypeError("Invalid target");for(var m=document.scrollingElement||document.documentElement,p=[],f=e;n(f)&&d(f);){if((f=f.parentElement)===m){p.push(f);break}null!=f&&f===document.body&&o(f)&&!o(document.documentElement)||null!=f&&o(f,u)&&p.push(f)}for(var g=a.visualViewport?a.visualViewport.width:innerWidth,h=a.visualViewport?a.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,w=e.getBoundingClientRect(),y=w.height,E=w.width,x=w.top,j=w.right,O=w.bottom,k=w.left,_="start"===i||"nearest"===i?x:"end"===i?O:x+y/2,T="center"===s?k+E/2:"end"===s?j:k,S=[],C=0;C<p.length;C++){var N=p[C],I=N.getBoundingClientRect(),q=I.height,P=I.width,F=I.top,z=I.right,L=I.bottom,V=I.left;if("if-needed"===r&&x>=0&&k>=0&&O<=h&&j<=g&&x>=F&&O<=L&&k>=V&&j<=z)return S;var R=getComputedStyle(N),B=parseInt(R.borderLeftWidth,10),W=parseInt(R.borderTopWidth,10),D=parseInt(R.borderRightWidth,10),H=parseInt(R.borderBottomWidth,10),M=0,$=0,A="offsetWidth"in N?N.offsetWidth-N.clientWidth-B-D:0,Z="offsetHeight"in N?N.offsetHeight-N.clientHeight-W-H:0;if(m===N)M="start"===i?_:"end"===i?_-h:"nearest"===i?l(v,v+h,h,W,H,v+_,v+_+y,y):_-h/2,$="start"===s?T:"center"===s?T-g/2:"end"===s?T-g:l(b,b+g,g,B,D,b+T,b+T+E,E),M=Math.max(0,M+v),$=Math.max(0,$+b);else{M="start"===i?_-F-W:"end"===i?_-L+H+Z:"nearest"===i?l(F,L,q,W,H+Z,_,_+y,y):_-(F+q/2)+Z/2,$="start"===s?T-V-B:"center"===s?T-(V+P/2)+A/2:"end"===s?T-z+D+A:l(V,z,P,B,D+A,T,T+E,E);var Y=N.scrollLeft,G=N.scrollTop;_+=G-(M=Math.max(0,Math.min(G+M,N.scrollHeight-q+Z))),T+=Y-($=Math.max(0,Math.min(Y+$,N.scrollWidth-P+A)))}S.push({el:N,top:M,left:$})}return S};function s(e){return e===Object(e)&&0!==Object.keys(e).length}t.a=function(e,t){var a=!e.ownerDocument.documentElement.contains(e);if(s(t)&&"function"==typeof t.behavior)return t.behavior(a?[]:i(e,t));if(!a){var n=function(e){return!1===e?{block:"end",inline:"nearest"}:s(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var a="scrollBehavior"in document.body.style;e.forEach((function(e){var n=e.el,r=e.top,o=e.left;n.scroll&&a?n.scroll({top:r,left:o,behavior:t}):(n.scrollTop=r,n.scrollLeft=o)}))}(i(e,n),n.behavior)}}},h0ge:
/*!*******************************************************************************!*\
!*** ./src/components/User/PopLoginRegister/components/OauthPanel/wechat.svg ***!
\*******************************************************************************/
/*! no static exports found */
/*! exports used: default */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,a){e.exports=a.p+"static/wechat.044c9ad6.svg"}}]);