From 0a019e03a671e14cb4ffdc54992976da7734014e Mon Sep 17 00:00:00 2001 From: autosubmit Date: Fri, 6 Dec 2024 16:17:54 +0800 Subject: [PATCH] Auto Submit --- index.html | 2 +- umi.28d42d61.js => umi.b4b24975.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename umi.28d42d61.js => umi.b4b24975.js (99%) diff --git a/index.html b/index.html index d189f869eb..dd2f5bf9cc 100644 --- a/index.html +++ b/index.html @@ -167,7 +167,7 @@ display: block !important; } - + \ No newline at end of file diff --git a/umi.28d42d61.js b/umi.b4b24975.js similarity index 99% rename from umi.28d42d61.js rename to umi.b4b24975.js index 99263bce9a..f73a6bdfa2 100644 --- a/umi.28d42d61.js +++ b/umi.b4b24975.js @@ -97,7 +97,7 @@ http://j.mp/37Fkd5Q `);be=JSON.parse(st)}catch(Ae){}}else Ve.headers["Content-Type"]==="application/xml"?be=yield ot.text():(It=ee.body)!=null&&It.autoDownload||(Wt=ee.params)!=null&&Wt.autoDownload?be=yield Re(ot):be=yield ot.arrayBuffer();try{be.status===401&&(!((Pt=Ve.params)!=null&&Pt.hidePopLogin)||!((Be=Ve.body)!=null&&Be.hidePopLogin))&&(0,a.getDvaApp)()._store.dispatch({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),be.status===402&&(localStorage.getItem("addinfo")==="2"?(0,a.getDvaApp)()._store.dispatch({type:"shixunHomeworks/setActionTabs",payload:{key:"\u586B\u5145\u4FE1\u606F\u5F39\u7A97"}}):(A=A||n.default.confirm({visible:!1,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88"}),A.update({centered:!0,visible:!0,title:"\u63D0\u793A",content:"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{a.history.push("/account/profile/edit")}})))}catch(Ae){console.log("fetcherr",Ae)}return $(be,q),be})).catch((ot,It,Wt)=>{try{const Pt=ot.code;if(ot instanceof TypeError&&window.showNetworkErrorTip(!0),Pt){if(Pt===401){(0,a.getDvaApp)()._store.dispatch({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}});return}$(ot,q)}else q.includes("/file/filePatchMerge")?(0,a.getDvaApp)()._store.dispatch({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5206\u7247\u4E13\u7528504",params:Ve.body}}):ot.message!=="403"&&window.showNetworkErrorTip(!0);return ot}catch(Pt){}})}let N=!1,G=!1;const $=(q,j)=>{var B,K,ee;if(q.status==-6&&!G){G=!0,(0,d.d8)("_educoder_session","logout",1),(0,d.m5)(),setTimeout(()=>G=!1,500),n.default.info({title:"\u7CFB\u7EDF\u901A\u77E5",content:q.message,okText:"\u77E5\u9053\u4E86",maskStyle:{background:"#000"},onOk:()=>{window.location.reload()}});return}if(q.status==-7){G=!0,setTimeout(()=>G=!1,500);let ce="";(B=q==null?void 0:q.data)!=null&&B.exercise_list&&((ee=(K=q==null?void 0:q.data)==null?void 0:K.exercise_list)==null||ee.map(pe=>{ce+=`\u300A${pe.exercise_name}\u300B`})),n.default.info({title:"\u63D0\u793A",content:u.createElement("div",{id:"fetchStatus7",className:"fetchStatus7"},""),maskClosable:!1,closeIcon:!1,width:550,maskStyle:{background:"#000"},okText:"\u8FD4\u56DE\u9996\u9875",onOk:()=>{window.location.href="/"}}),setTimeout(()=>{document.getElementById("fetchStatus7").innerHTML=`
\u60A8\u5F53\u524D\u6709\u6B63\u5728\u8FDB\u884C\u7684\u8003\u8BD5 ${ce} \uFF0C\u8BF7\u5728\u8003\u8BD5\u7ED3\u675F\u540E\u8BBF\u95EE\u8BE5\u9875\u9762
`},500);return}if((q.status==-1||q.status==-2||q.status==-102||q.status>400)&&q.status!=403&&!G){G=!0,setTimeout(()=>G=!1,500),i.ZP.warning({content:q.message,key:"message-key"});return}const se={403:"/403",404:"/404",500:"/500"};if(se[q.status]&&!N){const{user:ce}=(0,a.getDvaApp)()._store.getState(),{userInfo:pe}=ce;throw window.location.pathname.indexOf("/users")>-1&&document.domain==="kepukehuan.educoder.net"&&(N=!0),setTimeout(()=>N=!1,500),sessionStorage.setItem("errorStatus",JSON.stringify(q)),location.replace(se[q.status]),new Error("403")}};function V(q,j){return Z(`/api/${q}`,{method:"Get",params:j||{}})}function H(q,j){return Z(`/${q}`,{method:"Get",params:j})}function X(q,j){return Z(`/api/${q}`,{method:"Post",body:O({},j)})}function Y(q,j){return Z(`/api/${q}`,{method:"Put",body:O({},j)})}function U(q,j){return Z(`/api/${q}`,{method:"delete",body:O({},j||{})})}},78809:function(o,_,e){"use strict";e.d(_,{Bn:function(){return n},hw:function(){return r},mi:function(){return t}});const t="WlRsa1pEVmlORE15TW1ZNVpqZGtPRE5rTURBNVpHVTVZbVpoTVRBd1l6TT0=",r="TW1VelpHRXdObUZsTWpaaVlUbG1OelpoTldRNFpETTFOVGMwTm1ZeVptVT0=",n="T1RkaE1XWTRaalJoTUdaaE9HUmxaR016T0RGa05XTTNPRFkwTkdJeVpUQT0="},13330:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{AS:function(){return vtrsKey},BO:function(){return NewAntdDisabledDate},Br:function(){return getBlob},DH:function(){return timego},Dk:function(){return setDocumentTitle},Dw:function(){return onPreviewImage},EM:function(){return toChineseNumber},EN:function(){return preciseCalculation},Ec:function(){return setHeader},FH:function(){return downLoadFile},G5:function(){return sendAppStatus},G7:function(){return handleValidatorNickName},HJ:function(){return handleValidatorName},I9:function(){return RomanNumber},IS:function(){return isWechatBrowser},Il:function(){return setThreeComponent},JL:function(){return formatHomeWorkStatusToName},Jn:function(){return getImageUrl},L4:function(){return PollsStatus},L9:function(){return trackEvent},LR:function(){return download},Ll:function(){return checkIsClientExam},M:function(){return setmiyah},M2:function(){return randomArray},NY:function(){return setUrlQuery},Nd:function(){return downLoadLink},Oo:function(){return getCategoryName},Or:function(){return toWechatLogin},PF:function(){return formatRandomPaperDatas},Pq:function(){return cutName},Q8:function(){return disabledDate},QB:function(){return timeContrast},QH:function(){return downLoadFileIframe},Qq:function(){return JudgeSort},RD:function(){return bytesToSize},RG:function(){return copyTextFuc},Sp:function(){return rangeNumber},Sv:function(){return downloadFile},Tv:function(){return ImgSrcConvert},U6:function(){return HalfPastOne},UQ:function(){return HomeWorkDetailStatus},Uw:function(){return CommonWorkStatus},VV:function(){return StatusClassroomsTags},Vf:function(){return domScrollToTop},W:function(){return isUnOrNull},WX:function(){return isLocalApp},Y:function(){return HomeWorkCommonDetailStatus},YA:function(){return getHiddenName},ZJ:function(){return toDataUrl},_g:function(){return getMessagesUrl},_m:function(){return isKepuKehuan},ad:function(){return formatRandomPaperData},b9:function(){return isPc},cX:function(){return localSort},d0:function(){return disabledTime},d8:function(){return setCookie},db:function(){return getFileContentAndUrl},eF:function(){return bindPhone},eR:function(){return validateLength},ej:function(){return getCookie},en:function(){return parseUrl},fX:function(){return buildTree},hi:function(){return getExamRestrictionInfo},hv:function(){return NewAntdDisabledTime},i7:function(){return isChrome},j1:function(){return StatusGraduationProjectTags},jh:function(){return educationList},ju:function(){return ExerciseStatus},jz:function(){return replaceParamVal},k3:function(){return scrollToTop},kk:function(){return pointerEvents},lC:function(){return HomeWorkListStatus},lF:function(){return toWNumber},li:function(){return toTimeFormat},m5:function(){return clearAllCookies},nr:function(){return startExercise},oP:function(){return getJsonFromUrl},oV:function(){return ZimuSort},og:function(){return formatRate},oi:function(){return checkLocalOrPublicIp},pE:function(){return addJumping},pp:function(){return findEndWhitespace},qZ:function(){return arrTrans},qd:function(){return DayHalfPastOne},rK:function(){return HomeWorkShixunListStatus},rU:function(){return showTotal},rz:function(){return moveArray},s2:function(){return isMobileDevice},tP:function(){return cutFileName},tw:function(){return getTwoDecimalPlaces},uD:function(){return dealUploadChange},vA:function(){return HomeWorkShixunDetailStatus},vB:function(){return exerciseTips},xg:function(){return openNewWindow},y3:function(){return getBase64},yC:function(){return compareVersion}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(59301),_utils_authority__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(44835),antd__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(8591),antd__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(43418),antd__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(95237),antd__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(43604),_components_Exercise_ip__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(46617),_service_exercise__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(38100),_contentType__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(90863),umi__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(41167),md5__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(93735),md5__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(md5__WEBPACK_IMPORTED_MODULE_6__),_env__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(71848),_components_mediator__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(87042),crypto_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(28209),crypto_js__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(crypto_js__WEBPACK_IMPORTED_MODULE_9__),_key__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(78809),moment__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(61186),moment__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_10__),dayjs_plugin_customParseFormat__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(33656),dayjs_plugin_customParseFormat__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(dayjs_plugin_customParseFormat__WEBPACK_IMPORTED_MODULE_11__),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(o,_,e)=>_ in o?__defProp(o,_,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[_]=e,__spreadValues=(o,_)=>{for(var e in _||(_={}))__hasOwnProp.call(_,e)&&__defNormalProp(o,e,_[e]);if(__getOwnPropSymbols)for(var e of __getOwnPropSymbols(_))__propIsEnum.call(_,e)&&__defNormalProp(o,e,_[e]);return o},__spreadProps=(o,_)=>__defProps(o,__getOwnPropDescs(_)),__async=(o,_,e)=>new Promise((t,r)=>{var n=c=>{try{s(e.next(c))}catch(u){r(u)}},i=c=>{try{s(e.throw(c))}catch(u){r(u)}},s=c=>c.done?t(c.value):Promise.resolve(c.value).then(n,i);s((e=e.apply(o,_)).next())}),_a,_b;moment__WEBPACK_IMPORTED_MODULE_10___default().extend(dayjs_plugin_customParseFormat__WEBPACK_IMPORTED_MODULE_11___default());const parseParams=o=>{o=o||{};let _="";for(let e in o)typeof o[e]=="object"?Array.isArray(o[e])&&o[e].forEach((t,r)=>{_+="&"+e+"[]="+t}):o[e]!==void 0&&(_+="&"+e+"="+o[e]);return _.substr(1)},getKey=o=>window.atob(window.atob(o));function bytesToSize(o){var _=["Bytes","KB","MB","GB","TB"];if(o==0)return"0 Byte";var e=parseInt(""+Math.floor(Math.log(o)/Math.log(1024)),10);return(o/Math.pow(1024,e)).toFixed(1)+" "+_[e]}const getTwoDecimalPlaces=o=>Math.round(Math.round(o*1e5)/1e3*100)/100,NewAntdDisabledDate=(o,_=null)=>{const e=omoment__WEBPACK_IMPORTED_MODULE_10___default()(_==null?void 0:_.endTime).endOf("day"),r=o{const e=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()(o).format("HH")),t=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()(o).format("mm")),r=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()().format("HH")),n=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()().format("mm")),i=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()().format("ss"));function s(c,u){const a=[];for(let d=c;ds(0,r),disabledMinutes:()=>s(0,n)};if(_!=null&&_.compared){const c=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()(_==null?void 0:_.compared).format("HH")),u=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()(_==null?void 0:_.compared).format("mm")),a=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()(_==null?void 0:_.compared).format("ss"));return moment__WEBPACK_IMPORTED_MODULE_10___default()(o).isSame(moment__WEBPACK_IMPORTED_MODULE_10___default()(_==null?void 0:_.compared),"day")?{disabledHours:()=>s(0,c),disabledMinutes:()=>e<=c?s(0,u):[]}:void 0}if(moment__WEBPACK_IMPORTED_MODULE_10___default()(o).isSame(moment__WEBPACK_IMPORTED_MODULE_10___default()(),"day"))return{disabledHours:()=>s(0,r),disabledMinutes:()=>moment__WEBPACK_IMPORTED_MODULE_10___default()(o).isSame(moment__WEBPACK_IMPORTED_MODULE_10___default()(),"hour")&&e<=r?s(0,n):[]}},disabledDate=(o,_,e,t)=>{t=typeof t=="string"?moment__WEBPACK_IMPORTED_MODULE_10___default()(t):t;const r=t?o<(t==null?void 0:t.startOf("day")):omoment__WEBPACK_IMPORTED_MODULE_10___default()(_).endOf("day"),i=o{const e=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()(o).format("HH")),t=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()().format("HH")),r=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()().format("mm"));function n(i,s){const c=[];for(let u=i;un(0,t),disabledMinutes:()=>n(0,r)};if(_){const i=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()(_).format("HH")),s=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()(_).format("mm"));return moment__WEBPACK_IMPORTED_MODULE_10___default()(o).isSame(moment__WEBPACK_IMPORTED_MODULE_10___default()(_),"day")?{disabledHours:()=>n(0,i),disabledMinutes:()=>e<=i?n(0,s):[]}:void 0}if(moment__WEBPACK_IMPORTED_MODULE_10___default()(o).isSame(moment__WEBPACK_IMPORTED_MODULE_10___default()(),"day"))return{disabledHours:()=>n(0,t),disabledMinutes:()=>moment__WEBPACK_IMPORTED_MODULE_10___default()(o).isSame(moment__WEBPACK_IMPORTED_MODULE_10___default()(),"hour")&&e<=t?n(0,r):[]}},preciseCalculation=(o,_,e)=>{typeof o=="string"&&(o=Number(o)),typeof _=="string"&&(_=Number(_));const t=(o.toString().split(".")[1]||"").length,r=(_.toString().split(".")[1]||"").length,n=Math.max(t,r),i=Math.pow(10,n);return(()=>{switch(e){case"+":return(Math.round(o*i)+Math.round(_*i))/i;case"-":return(Math.round(o*i)-Math.round(_*i))/i;case"*":return Math.round(o*i)*Math.round(_*i)/(i*i);case"/":return Math.round(o*i)/Math.round(_*i);default:throw new Error("\u4E0D\u652F\u6301\u7684\u8FD0\u7B97\u7B26\u53F7")}})()},toWNumber=o=>o/1e4>1?react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,Math.round(o/1e4*100)/100,react__WEBPACK_IMPORTED_MODULE_0__.createElement("i",{className:"font12"},"w")):o,toChineseNumber=o=>{const _=o.toString().replace(/(?=(\d{4})+$)/g,",").split(",").filter(Boolean),e=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],t=["","\u5341","\u767E","\u5343"],r=["","\u4E07","\u4EBF"],n=s=>{let c="";for(let u=0;u{const t=o.splice(_,1)[0];return o.splice(e,0,t),o},ZimuSort=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],JudgeSort=["\u6B63\u786E","\u9519\u8BEF"],RomanNumber=["I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII","XIII","XIV","XV","XVI","XVII","XVIII","XIX","XX"],findEndWhitespace=o=>{if(!o)return"";const _=o.replace(/(?:\r\n|\n)/g,`\x1B[41m\x1B[37m\u21B5\x1B[0m\r `).replace(/ +$/g,"\x1B[41m \x1B[0m");return console.debug("str:",_,JSON.stringify(o)),_},StatusTags=o=>{const _={\u5DF2\u622A\u6B62:{class:"tag-style bg-pink ml10"},\u63D0\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"},\u8FDB\u884C\u4E2D:{class:"tag-style bg-blue ml10"},\u672A\u53D1\u5E03:{class:"tag-style bgB8B8B8 ml10"},\u8865\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"},\u96C6\u4E2D\u9605\u5377:{class:"tag-style bg-light-orangess ml10soft"}};return o.data&&o.data.map(function(e,t){return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{key:t,className:_[e]&&_[e].class},e)})},formatHomeWorkStatusToName=o=>({[-1]:"\u91CD\u505A\u4E2D",0:"\u672A\u5F00\u542F",1:"\u672A\u901A\u5173",2:"\u6309\u65F6\u901A\u5173"})[o]||"\u8FDF\u4EA4\u901A\u5173",HomeWorkListStatus=o=>{var _,e;const t={[-1]:{name:"\u91CD\u505A\u4E2D",class:"c-orange"},0:{name:"\u672A\u5F00\u542F",class:"c-black"},1:{name:"\u672A\u901A\u5173",class:"c-red"},2:{name:"\u6309\u65F6\u901A\u5173",class:"c-green"},3:{name:"\u8865\u4EA4\u901A\u5173",class:"c-orange"},4:{name:"\u622A\u6B62\u901A\u5173",class:"c-red"}};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:(_=t==null?void 0:t[o.status])==null?void 0:_.class},(e=t==null?void 0:t[o.status])==null?void 0:e.name)},HomeWorkShixunListStatus=o=>{var _,e;const t={[-1]:{name:"\u91CD\u505A\u4E2D",class:"c-orange"},0:{name:"\u672A\u5F00\u542F",class:"c-black"},1:{name:"\u672A\u901A\u5173",class:"c-red"},2:{name:"\u6309\u65F6\u901A\u5173",class:"c-green"},3:{name:"\u8865\u4EA4\u901A\u5173",class:"c-orange"},4:{name:"\u622A\u6B62\u540E\u901A\u5173",class:"c-red"}};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:(_=t==null?void 0:t[o.status])==null?void 0:_.class},(e=t==null?void 0:t[o.status])==null?void 0:e.name)},HomeWorkDetailStatus=o=>{var _,e;const t={[-1]:{name:"\u91CD\u505A\u4E2D",class:"c-orange",color:"#999999"},0:{name:"\u672A\u5F00\u542F",class:"c-black",color:"#999999"},1:{name:"\u672A\u901A\u5173",class:"c-red",color:"#d4443d"},2:{name:"\u6309\u65F6\u901A\u5173",class:"c-green",color:"#57be40"},3:{name:"\u8865\u4EA4\u901A\u5173",class:"c-orange",color:"#f09143"},4:{name:"\u622A\u6B62\u901A\u5173",class:"c-red",color:"#d4443d"}};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{marginLeft:"10px",color:"#fff",background:(_=t==null?void 0:t[o.status])==null?void 0:_.color,borderRadius:"20px",width:"65px",height:"18px",justifyContent:"center",display:"inline-flex",lineHeight:"18px"}},(e=t==null?void 0:t[o.status])==null?void 0:e.name)},HomeWorkShixunDetailStatus=o=>{var _,e;const t={[-1]:{name:"\u91CD\u505A\u4E2D",class:"c-orange",color:"#999999"},0:{name:"\u672A\u5F00\u542F",class:"c-black",color:"#999999"},1:{name:"\u672A\u901A\u5173",class:"c-red",color:"#d4443d"},2:{name:"\u6309\u65F6\u901A\u5173",class:"c-green",color:"#57be40"},3:{name:"\u8865\u4EA4\u901A\u5173",class:"c-orange",color:"#f09143"},4:{name:"\u622A\u6B62\u540E\u901A\u5173",class:"c-red",color:"#d4443d"},5:{name:"\u622A\u6B62\u540E\u8BC4\u6D4B",class:"c-red",color:"#d4443d"}};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{marginLeft:"10px",color:"#fff",background:(_=t==null?void 0:t[o.status])==null?void 0:_.color,borderRadius:"20px",padding:"0 8px",height:"18px",justifyContent:"center",display:"inline-flex",lineHeight:"18px"}},(e=t==null?void 0:t[o.status])==null?void 0:e.name)},HomeWorkCommonDetailStatus=o=>{var _,e;const t={[-1]:{name:"\u91CD\u505A\u4E2D",class:"c-black",color:"#999999"},0:{name:"\u672A\u63D0\u4EA4",class:"c-black",color:"#999999"},1:{name:"\u6309\u65F6\u63D0\u4EA4",class:"c-green",color:"#57be40"},2:{name:"\u5EF6\u65F6\u63D0\u4EA4",class:"c-red",color:"#d4443d"}};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{marginLeft:"10px",color:"#fff",background:(_=t==null?void 0:t[o.status])==null?void 0:_.color,borderRadius:"20px",padding:"0 8px",height:"18px",justifyContent:"center",display:"inline-flex",lineHeight:"18px"}},(e=t==null?void 0:t[o.status])==null?void 0:e.name)},StatusGraduationProjectTags=o=>{const{status:_}=o,e={0:{class:"tag-style bg-blue ml10",name:"\u5F85\u9009\u4E2D"},1:{class:"tag-style bg-blue ml10",name:"\u5F85\u786E\u8BA4"},2:{class:"tag-style bg-pink ml10",name:"\u5DF2\u786E\u8BA4"}};try{return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:e[_].class},e[_].name)}catch(t){console.log("utils.StatusGraduationProjectTags",o.status)}},ExerciseStatus={1:"\u672A\u53D1\u5E03",2:"\u8003\u8BD5\u4E2D",3:"\u5DF2\u622A\u6B62",4:"\u5DF2\u7ED3\u675F",5:"\u96C6\u4E2D\u9605\u5377",99:"\u6A21\u62DF\u8003\u8BD5\u4E2D"},PollsStatus={1:"\u672A\u53D1\u5E03",2:"\u63D0\u4EA4\u4E2D",3:"\u5DF2\u622A\u6B62",4:"\u5DF2\u7ED3\u675F",5:"\u672A\u5F00\u59CB"},StatusClassroomsTags=o=>{let _={\u6A21\u62DF\u8003\u8BD5\u4E2D:{class:"tag-style bg-light-pink ml10"},\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A:{class:"tag-style-fzb ml10 iconfont icon-fangzuobi"},\u516C\u5F00:{class:"tag-style bg-blue ml10"},\u5DF2\u5F00\u542F\u8865\u4EA4:{class:"tag-style bg-green ml10soft"},\u672A\u5F00\u542F\u8865\u4EA4:{class:"tag-style bg-pink ml10soft"},\u672A\u53D1\u5E03:{class:"tag-style bgB8B8B8 ml10soft"},\u672A\u5F00\u59CB:{class:"tag-style bg-c5d6ff ml10soft"},\u533F\u540D\u4F5C\u54C1:{class:"tag-style bg-cyan ml10"},\u5DF2\u9009\u62E9:{class:"tag-style bg-grey-ede ml10"},\u5DF2\u7ED3\u675F:{class:"tag-style bg-grey-ede ml10soft"},\u63D0\u4EA4\u4E2D:{class:"tag-style bg-blue ml10soft"},\u8FDB\u884C\u4E2D:{class:"tag-style bg-blue ml10soft"},\u533F\u8BC4\u4E2D:{class:"tag-style bg-blue ml10"},\u7533\u8BC9\u4E2D:{class:"tag-style bg-blue ml10"},\u8003\u8BD5\u4E2D:{class:"tag-style bg-light-blue ml10"},\u8865\u4EA4\u4E2D:{class:"tag-style bg-blue ml10soft"},\u8BC4\u9605\u4E2D:{class:"tag-style bg-blue ml10"},\u5F85\u9009\u4E2D:{class:"tag-style bg-blue ml10"},\u4EA4\u53C9\u8BC4\u9605\u4E2D:{class:"tag-style bg-light-orange ml10"},\u5DF2\u5F00\u542F\u4EA4\u53C9\u8BC4\u9605:{class:"tag-style bg-lightblue-purple ml10"},\u5F85\u786E\u8BA4:{class:"tag-style bg-lightblue-purple ml10"},\u5F85\u5904\u7406:{class:"tag-style bg-lightblue-purple ml10"},\u79C1\u6709:{class:"tag-style bg-lightblue-purple ml10"},\u672A\u63D0\u4EA4:{class:"tag-style bg-lightblue-purple ml10"},\u5DF2\u786E\u8BA4:{class:"tag-style bg-light-pink ml10"},\u5DF2\u53D1\u5E03:{class:"tag-style bg-light-blue ml10"},\u5DF2\u622A\u6B62:{class:"tag-style bg-light-pink ml10soft"},\u5F00\u53D1\u8BFE\u7A0B:{class:"tag-style bg-orange ml10"},\u5DF2\u5F00\u64AD:{class:"tag-style-border border-green c-green ml10"},\u672A\u5F00\u64AD:{class:"tag-style-border border-light-black ml10"},\u6309\u65F6\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u8FDF\u4EA4\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u672A\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u672A\u5F00\u542F:{class:"tag-style-border border-light-black ml10"},\u5BFC\u5165:{class:"export ml10"},\u96C6\u4E2D\u9605\u5377:{class:"tag-style bg-light-orangess ml10soft"}};const e={\u672A\u53D1\u5E03:{class:"tag-style bg-C6CED6 ml10soft"},\u672A\u5F00\u59CB:{class:"tag-style bg-C1E2FF ml10soft"},\u8FDB\u884C\u4E2D:{class:"tag-style bg-0152d9 ml10soft"},\u5DF2\u622A\u6B62:{class:"tag-style bg-E53333 ml10soft"},\u63D0\u4EA4\u4E2D:{class:"tag-style bg-0152d9 ml10soft"},\u8865\u4EA4\u4E2D:{class:"tag-style bg-44D7B6 ml10soft"}};o.temporary&&(_=__spreadValues(__spreadValues({},_),e));const t=[];o.is_random&&t.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"tag-style bg-blue ml10"},"\u968F\u673A"));try{o.status&&o.status.map((r,n)=>{t.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:(o==null?void 0:o.style)||[],key:n,className:_[r]&&_[r].class},r))})}catch(r){console.log("utils.status.tag:",r,o.status)}return t},exerciseTips=(o,_)=>{if(o===5||_)return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{backgroundColor:"#f59a23"},className:"tag-style ml5"},"\u96C6\u4E2D\u9605\u5377");if(o===1)return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{backgroundColor:"#B8B8B8"},className:"tag-style ml5"},"\u672A\u5F00\u59CB");if(o===2)return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{backgroundColor:"#007AFF"},className:"tag-style ml5"},"\u8003\u8BD5\u4E2D");if(o===3)return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{backgroundColor:"#FC2D6B"},className:"tag-style ml5"},"\u5DF2\u622A\u6B62");if(o===-1)return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"export ml5"},"\u5BFC\u5165")},WorkStatus=o=>{var _,e;const t={[-1]:{name:"\u91CD\u505A\u4E2D",class:"c-orange"},0:{name:"\u672A\u63D0\u4EA4",class:"c-black"},1:{name:"\u672A\u901A\u5173",class:"c-red"},2:{name:"\u6309\u65F6\u901A\u5173",class:"c-green"},3:{name:"\u8FDF\u4EA4\u901A\u5173",class:"c-orange"}};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:(_=t[o.status])==null?void 0:_.class},(e=t[o.status])==null?void 0:e.name)},CommonWorkStatus=o=>{var _,e;const t={0:{name:"\u672A\u63D0\u4EA4",class:"c-black"},1:{name:"\u6309\u65F6\u63D0\u4EA4",class:"c-green"},2:{name:"\u5EF6\u65F6\u63D0\u4EA4",class:"c-red"},3:{name:"\u90E8\u5206\u63D0\u4EA4",class:"c-green"},4:{name:`\u6309\u65F6\u63D0\u4EA4${o!=null&&o.lineBreak?` `:""}\uFF08\u6559\u5E08\u63D0\u4EA4\uFF09`,class:"c-green"},5:{name:`\u672A\u63D0\u4EA4${o!=null&&o.lineBreak?` -`:""}\uFF08\u6559\u5E08\u63D0\u4EA4\uFF09`,class:"c-black"}};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:(_=t[o.status])==null?void 0:_.class},(e=t[o.status])==null?void 0:e.name)},timego=o=>{o=new Date(o).getTime();let _=1e3*60,e=_*60,t=e*24,r="",i=new Date().getTime()-o;if(i<0)return console.log("\u65F6\u95F4\u4E0D\u5BF9\u52B2,\u670D\u52A1\u5668\u521B\u5EFA\u65F6\u95F4\u4E0E\u5F53\u524D\u65F6\u95F4\u4E0D\u540C\u6B65"),r="\u521A\u521A";let s=parseInt(i/t,10),c=parseInt(i/e,10),u=parseInt(i/_,10);return s>30?r=""+timeformat(o,"yyyy-MM-dd"):s>1?r=""+s+"\u5929\u524D":s==1?r="\u6628\u5929":c>=1?r=""+c+"\u5C0F\u65F6\u524D":u>=5?r=""+u+"\u5206\u949F\u524D":r="\u521A\u521A",r};function replaceParamVal(paramName,replaceWith){var oUrl=window.location.href.toString(),re=eval("/("+paramName+"=)([^&]*)/gi"),nUrl=oUrl.replace(re,paramName+"="+replaceWith);window.history.replaceState(null,"",nUrl)}const timeformat=(o,_)=>{typeof o=="string"&&(o.indexOf("T")>=0&&(o=o.replace("T"," ")),o=new Date(Date.parse(o.replace(/-/g,"/")))),o=new Date(o);let e={"M+":o.getMonth()+1,"d+":o.getDate(),"h+":o.getHours(),"m+":o.getMinutes(),"s+":o.getSeconds(),"q+":Math.floor((o.getMonth()+3)/3),S:o.getMilliseconds()},t=[["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]];/(y+)/.test(_)&&(_=_.replace(RegExp.$1,(o.getFullYear()+"").substr(4-RegExp.$1.length))),/(w+)/.test(_)&&(_=_.replace(RegExp.$1,t[RegExp.$1.length-1][o.getDay()]));for(let r in e)new RegExp("("+r+")").test(_)&&(_=_.replace(RegExp.$1,RegExp.$1.length==1?e[r]:("00"+e[r]).substr((""+e[r]).length)));return _},toTimeFormat=o=>{if(!o||o<0)return"0\u79D2";console.log("time:",o);let _=60,e=_*60,t=e*24,r=o/t,n=o/e,i=o/_,s=o%60;return r>=1?parseInt(r.toString())+"\u5929"+Math.floor(n%24)+"\u65F6"+Math.floor(i%60)+"\u5206"+Math.floor(o%60)+"\u79D2":n>1?parseInt(n.toString())+"\u65F6"+Math.floor(i%60)+"\u5206"+Math.floor(o%60)+"\u79D2":i>=1?parseInt(i.toString())+"\u5206"+Math.floor(o%60)+"\u79D2":Math.ceil(o)+"\u79D2"},validateLength=(o="",_=100)=>{let e=0;if(o){e=o.length;for(let t=0;t=55296&&r<=56319&&(e--,t++)}}return e<=_};function buildTree(o,_){const e={};let t=null;return o.forEach(r=>{e[r.properties.uuid]=__spreadProps(__spreadValues({},r),{children:[]})}),_.forEach(r=>{const n=e[r.startNodeUuid],i=e[r.endNodeUuid];n&&i&&n.children.push(i)}),o.forEach(r=>{!_.some(i=>i.endNodeUuid===r.properties.uuid)&&(t=e[r.properties.uuid])}),t}const handleValidatorNickName=(o,_,e)=>{if(_){let t=/[`~!@#$%^&*()\-+=<>?:"{}|,.\/;'\\[\]~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘’,。、]/im;const n=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi.test(_),i=t.test(_);(n===!0||i===!0||_.length<2||_.length>=21)&&e("2-20\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57\u53CA\u4E0B\u5212\u7EBF")}e()},handleValidatorName=(o,_,e)=>{if(_){let t=/[`~!@#$%^&()_\-+=<>?:"{}|,.\/;'\\[\]~!@#¥%……&()——\-+={}|《》?:“”【】、;‘’,。、]/im;const n=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi.test(_),i=t.test(_);(n===!0||i===!0||_.length<2||_.length>=21)&&e("2-20\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57")}e()},getHiddenName=o=>{if(!o)return"";let _=o.length-1,e="";for(var t=0;t<_;t++)e+="*";return o.substr(0,1)+e},getBase64=(o,_)=>{const e=new FileReader;e.addEventListener("load",()=>_(e.result)),e.readAsDataURL(o)},getFileContentAndUrl=o=>new Promise((_,e)=>{var t=new FileReader;t.onload=function(){try{const r=window.URL.createObjectURL(o);_({text:this.result,link:r})}catch(r){antd__WEBPACK_IMPORTED_MODULE_12__.ZP.warning("\u5F53\u524D\u6587\u4EF6\u65E0\u6CD5\u8BFB\u53D6\u5185\u5BB9"),e("\u5F53\u524D\u6587\u4EF6\u65E0\u6CD5\u8BFB\u53D6\u5185\u5BB9")}},t.readAsText(o)});function setmiyah(o){return md5__WEBPACK_IMPORTED_MODULE_6___default()("79e33abd4b6588941ab7622aed1e67e8"+o)}const getCookie=o=>{var _,e=RegExp("(^| )"+o+"=([^;]+)(;|$)");return(_=document.cookie.match(e))?decodeURIComponent(_[2]):null};function setCookie(o,_,e){var t=new Date;t.setTime(t.getTime()+e*24*60*60*1e3);var r="expires="+t.toUTCString();document.cookie=o+"="+_+"; "+r+`;domain=${document.domain.indexOf("educoder.net")>-1?".educoder.net":document.domain};path=/;SameSite=None;secure`}const delCookie=o=>{document.cookie=o+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;"},clearAllCookies=()=>{for(var o=document.cookie.split(";"),_=0;_-1?e.substr(0,t):e;document.cookie=r+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT"}};function downLoadLink(o,_){let e=document.createElement("a");document.body.appendChild(e),e.href=_,o&&(e.title=o,e.download=o);let t=document.createEvent("MouseEvents");t.initEvent("click",!1,!1),e.dispatchEvent(t),document.body.removeChild(e)}function getFirstLevelDomain(){var o=window.location.hostname,_=o.split(".").reverse();return _.length>2?[_[1],_[0]].join("."):o}function getBlob(o){return new Promise(_=>{const e=new window.XMLHttpRequest;(o.indexOf(getFirstLevelDomain())>-1||location.hostname==="localhost"&&o.indexOf("/api/")>-1)&&(e.withCredentials=!0),e.open("GET",o,!0),e.responseType="blob",e.onload=()=>{e.status===200&&_(e.response)},e.send()})}function saveAs(o,_){if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveBlob(o,_);else{const e=document.createElement("a"),t=document.querySelector("body");e.href=window.URL.createObjectURL(o),e.download=_,e.style.display="none",t.appendChild(e),e.click(),t.removeChild(e),window.URL.revokeObjectURL(e.href)}}function download(o,_){getBlob(o).then(e=>{saveAs(e,_)})}function downLoadFileIframe(o,_){return new Promise((e,t)=>{var r=_,n=document.createElement("iframe"),i;document.body.appendChild(n),n.src=r,n.style.display="none",n.addEventListener("load",function(){setTimeout(()=>{document.body.removeChild(n)},1e3)},!0),i=setInterval(()=>{getCookie("fileDownload")&&(delCookie("fileDownload"),clearInterval(i),document.body.removeChild(n),e())},1e3)})}function downLoadFile(o,_){downLoadLink(o,_)}const setUrlQuery=o=>{let{url:_,query:e}=o;if(!_)return"";if(e){let t=[];for(const r in e)e.hasOwnProperty(r)&&!isUnOrNull(e[r])&&(typeof e[r]=="object"?e[r].map(n=>{t.push(`${r}[]=${n}`)}):t.push(`${r}=${e[r]}`));_.indexOf("?")!==-1?_=`${_}&${t.join("&")}`:_=`${_}?${t.join("&")}`,console.log("url1111",_)}return _};function isPc(){let o=navigator.userAgent,_=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],e=!0;for(var t=0;t<_.length;t++)if(o.indexOf(_[t])>0){e=!1;break}return e}function isChrome(){let o=navigator.userAgent;return["Chrome"].some(e=>o.indexOf(e)>-1)}function isFirefox(){let o=navigator.userAgent;return["Firefox"].some(e=>o.indexOf(e)>-1)}function isChromeOrFirefox(){let o=navigator.userAgent;return["Chrome","Firefox"].some(e=>o.indexOf(e)>-1)}const formatMoney=(o="")=>{var _;return(_=o==null?void 0:o.toString())==null?void 0:_.replace(/\B(?=(\d{3})+(?!\d))/g,",")},openNewWindow=o=>{let _=document.createElement("a");_.target="_blank",document.body.appendChild(_),_.href=o;let e=document.createEvent("MouseEvents");e.initEvent("click",!1,!1),_.dispatchEvent(e),document.body.removeChild(_)},openNewWindows=o=>{let _=document.createElement("a");document.body.appendChild(_),_.href=o;let e=document.createEvent("MouseEvents");e.initEvent("click",!1,!1),_.dispatchEvent(e),document.body.removeChild(_)},formatTextMiddleIntercept=(o="")=>o.length<=6?o:`${o.substring(0,3)}...${o.substring(o.length-3,o.length)}`,HalfPastOne=()=>{let o=new Date().getHours(),_=new Date().getMinutes();return _>=30?(o++,_="00"):_="30",o+":"+_},DayHalfPastOne=(o="-")=>{let _=new Date().getHours(),e=new Date().getMinutes();return e>=30?(_++,e="00"):e="30",new Date().toLocaleDateString().replace(/\//g,o)+" "+_+":"+e};var Type=(o=>(o.Number="Number",o.String="String",o.Boolean="Boolean",o.Object="Object",o.Array="Array",o.Function="Function",o))(Type||{});const type=o=>{const _=Object.prototype.toString.call(o);return _.substring(8,_.length-1)},isEmpty=o=>type(o)==="Array"?o.length===0:type(o)==="Object"?Object.keys(o).length===0:!o,rangeNumber=(o,_)=>{const e=[];for(let t=o;t<_;t++)e.push(t);return e},middleEllipsis=(o,_=12)=>{let e=_/2-2,t=_/2+3;return o.length>_?o.substr(0,e)+"..."+o.substr(t,_):o},formatRate=o=>o>4.5?5:o>4&&o<=4.5?4.5:o>3.5&&o<=4?4:o>3&&o<=3.5?3.5:o>2.5&&o<=3?3:o>2&&o<=2.5?2.5:o>1.5&&o<=2?2:o>1&&o<=1.5?1.5:o>.5&&o<=1?1:o>0&&o<=.5?.5:0,isUnOrNull=o=>o==null;function getUrlToken(o,_){const e=new RegExp(`(^|&)${o}=([^&]*)(&|$)`,"i"),t=_.substr(1).match(e);return t!=null?decodeURIComponent(t[2]):null}const getMessagesUrl=o=>{var _;if(o.link_url)return window.open(o.link_url);switch(o==null?void 0:o.container_type){case"TeacherChangeUserInfo":return window.open("/account/profile");case"TeacherResetUserPassword":return window.open("/account/secure");case"ApplyUserAuthentication":return window.open("/account/certification")}switch(o.container_type){case"ApplyUserAuthentication":if(o.tiding_type==="Apply"){if(o.auth_type===1)return window.open("/admins/identity_authentications");if(o.auth_type===2)return window.open("/admins/professional_authentications")}return o.tiding_type==="System"?window.open("/account/certification"):o.tiding_type==="Code"?window.open("/account/profile"):void 0;case"CancelUserAuthentication":return window.open("/account/certification");case"CancelUserProCertification":return window.open("/account/certification");case"ApplyAddMajor":return window.open("/account/profile");case"Major":return window.open("/account/profile");case"ApplyAddDepartment":return o.tiding_type==="Apply"?window.open("/admins/department_applies"):o.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAddSchools":return o.tiding_type==="Apply"?window.open("/admins/unit_applies"):o.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAction":switch(o.parent_container_type){case"ApplyShixun":if(o.tiding_type==="Apply")return window.open("/admins/shixun_authorizations");if(o.tiding_type==="System")return window.open(`/shixuns/${o.identifier}/challenges`);case"ApplySubject":if(o.tiding_type==="Apply")return window.open("/admins/subject_authorizations");if(o.tiding_type==="System")return window.open(`/paths/${o.parent_container_id}`);case"TrialAuthorization":if(o.tiding_type==="Apply")return window.open("/managements/trial_authorization");if(o.tiding_type==="System")return window.open("/account/profile")}return;case"JoinCourse":return window.open(`/classrooms/${o.belong_container_id}/teachers`);case"StudentJoinCourse":if(o.tiding_type==="Apply")return window.open(`/classrooms/${o.belong_container_id}/teachers`);if(o.tiding_type==="System")return window.open(`/classrooms/${o.belong_container_id}/students`);case"DealCourse":return window.open(`/classrooms/${o.belong_container_id}/shixun_homework/`);case"TeacherJoinCourse":return window.open(`/classrooms/${o.belong_container_id}/shixun_homework/`);case"Course":return o.tiding_type==="Delete"?void 0:window.open(`/classrooms/${o.belong_container_id}/shixun_homework/`);case"ArchiveCourse":return window.open(`/classrooms/${o.belong_container_id}/shixun_homework/`);case"Shixun":return window.open(`/shixuns/${o.identifier}/challenges`);case"Subject":return window.open(`/paths/${o.container_id}`);case"JournalsForMessage":switch(o.parent_container_type){case"Principal":return"";case"HomeworkCommon":return o.homework_type==="normal"?window.open(`/classrooms/${o.belong_container_id}/common_homework/${o.parent_container_id}/question`):o.homework_type==="group"?window.open(`/classrooms/${o.belong_container_id}/group_homework/${o.parent_container_id}/question`):o.homework_type==="practice"?window.open(`/classrooms/${o.belong_container_id}/shixun_homework/${o.parent_container_id}/detail?tabs=1`):"";case"GraduationTopic":return window.open(`/classrooms/${o.belong_container_id}/graduation_topics/${o.parent_container_id}/detail`);case"StudentWorksScore":return window.open(o.link_url)}case"Memo":return window.open(`/forums/${o.parent_container_id}`);case"Message":return window.open("/forums/");case"Watcher":return window.open(`/users/${o.trigger_user.login}/classrooms`);case"PraiseTread":return"";case"Grade":return"";case"JoinProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+o.project_url);case"ReporterJoinProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+o.project_url);case"DealProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+o.project_url);case"ManagerJoinProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+o.project_url);case"Poll":switch(o.parent_container_type){case"CommitPoll":return window.open(` /classrooms/${o.belong_container_id}/poll/${o.container_id}/detail`);default:return window.open(` /classrooms/${o.belong_container_id}/poll/${o.container_id}/detail`)}case"Exercise":switch(o.parent_container_type){case"CommitExercise":return window.open(` /classrooms/${o.belong_container_id}/exercise/${o.container_id}/detail?tab=0`);case"ExerciseScore":return window.open(` /classrooms/${o.belong_container_id}/exercise/${o.container_id}/detail?tab=0`);default:return window.open(`/classrooms/${o.belong_container_id}/exercise/${o.container_id}/detail?tab=0`)}case"StudentGraduationTopic":return window.open(`/classrooms/${o.belong_container_id}/graduation_topics/${o.parent_container_id}/detail`);case"DealStudentTopicSelect":return window.open(`/classrooms/${o.belong_container_id}/graduation_topics/${o.parent_container_id}/detail`);case"GraduationTask":return window.open(`/classrooms/${o.belong_container_id}/graduation_tasks/${o.container_id}`);case"GraduationWork":return window.open(`/classrooms/${o.belong_container_id}/graduation_tasks/${o.container_id}`);case"GraduationWorkScore":return window.open(`/classrooms/${o.belong_container_id}/graduation_tasks/${o.parent_container_id}`);case"HomeworkCommon":switch(o.parent_container_type){case"AnonymousCommentFail":if(o.homework_type==="normal")return window.open(`/classrooms/${o.belong_container_id}/common_homework/${o.parent_container_id}/detail`);if(o.homework_type==="group")return window.open(`/classrooms/${o.belong_container_id}/group_homework/${o.parent_container_id}/detail`);if(o.homework_type==="practice")return window.open(`/classrooms/${o.belong_container_id}/shixun_homework/${o.parent_container_id}/detail?tabs=0`);case"HomeworkPublish":if(o.homework_type==="normal")return window.open(`/classrooms/${o.belong_container_id}/common_homework/${o.parent_container_id}/detail`);if(o.homework_type==="group")return window.open(`/classrooms/${o.belong_container_id}/group_homework/${o.parent_container_id}/detail`);if(o.homework_type==="practice")return window.open(`/classrooms/${o.belong_container_id}/shixun_homework/${o.parent_container_id}/detail?tabs=0`);case"AnonymousAppeal":if(o.homework_type==="normal")return window.open(`/classrooms/${o.belong_container_id}/common_homework/${o.parent_container_id}/detail`);if(o.homework_type==="group")return window.open(`/classrooms/${o.belong_container_id}/group_homework/${o.parent_container_id}/detail`);if(o.homework_type==="practice")return window.open(`/classrooms/${o.belong_container_id}/shixun_homework/${o.parent_container_id}/detail?tabs=0`);default:if(o.homework_type==="normal")return window.open(`/classrooms/${o.belong_container_id}/common_homework/${o.parent_container_id}/detail`);if(o.homework_type==="group")return window.open(`/classrooms/${o.belong_container_id}/group_homework/${o.parent_container_id}/detail`);if(o.homework_type==="practice")return window.open(`/classrooms/${o.belong_container_id}/shixun_homework/${o.parent_container_id}/detail?tabs=0`)}case"StudentWork":if(o.homework_type==="normal")return window.open(`/classrooms/${o.belong_container_id}/common_homework/${o.parent_container_id}/review/${o.container_id}`);if(o.homework_type==="group")return window.open(`/classrooms/${o.belong_container_id}/group_homework/${o.parent_container_id}/review/${o.container_id}`);if(o.homework_type==="practice")return window.open(`/classrooms/${o.belong_container_id}/shixun_homework/${o.parent_container_id}/detail`);case"StudentWorksScore":return window.open(`/classrooms/${o.belong_container_id}/common_homework/${o.trigger_user.id}/review/${o.parent_container_id}`);case"StudentWorksScoresAppeal":return window.open(`/classrooms/${o.belong_container_id}/common_homework/${o.trigger_user.id}/review/${o.parent_container_id}`);case"ChallengeWorkScore":return"";case"SendMessage":return window.open(`${_env__WEBPACK_IMPORTED_MODULE_7__.Z.API_SERVER}/admins/mirror_repositories`);case"Journal":return window.open(`/issues/${o.parent_container_id}`);case"Issue":return window.open(`/issues/${o.container_id}`);case"PullRequest":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+o.project_url);case"Department":return window.open("/account/profile");case"Library":if(o.tiding_type==="Apply")return window.open("/admins/library_applies");if(o.tiding_type==="System")return window.open(`/moop_cases/${o.container_id}`);case"ProjectPackage":return o.tiding_type==="Destroyed"||o.tiding_type==="Destroyed_end"?void 0:o.tiding_type==="Apply"?window.open("/admins/project_package_applies"):window.open(`/crowdsourcing/${o.container_id}`);case"Discuss":return o.parent_container_type==="Hack"&&o.extra?window.open(`/myproblems/${o.extra}/comment`):o.extra==="ai_reply"&&o.task_identifier?window.open(`/tasks/${o.task_identifier}?extra=extra`):window.open(`/shixuns/${o.identifier}/shixun_discuss`);case"Video":return o.tiding_type==="Apply"?window.open("/admins/video_applies"):o.tiding_type==="System"?window.open(`/users/${(_=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:_.login}/videos`):"";case"PublicCourseStart":return window.open(`/classrooms/${o.container_id}/informs`);case"SubjectStartCourse":return window.open(`/paths/${o.container_id}`);case"ResubmitStudentWork":if(o.homework_type==="normal")return window.open(`/classrooms/${o.belong_container_id}/common_homework/${o.parent_container_id}/${o.container_id}/appraise`);if(o.homework_type==="group")return window.open(`/classrooms/${o.belong_container_id}/group_homework/${o.parent_container_id}/${o.container_id}/appraise`);case"AdjustScore":if(o.homework_type==="normal")return window.open(`/classrooms/${o.belong_container_id}/common_homework/${o.parent_container_id}`);if(o.homework_type==="group")return window.open(`/classrooms/${o.belong_container_id}/group_homework/${o.parent_container_id}`);case"LiveLink":return window.open(`/classrooms/${o.belong_container_id}/course_videos?open=live`);case"Hack":if(o.extra&&o.parent_container_type!=="HackDelete")return window.open(`/problems/${o.extra}/edit`);default:return}},checkLocalOrPublicIp=(o,_)=>__async(void 0,null,function*(){let e="",t;return new Promise((r,n)=>__async(void 0,null,function*(){if(o.ip_limit!=="no"||o.ip_bind_type)try{e=yield(0,_components_Exercise_ip__WEBPACK_IMPORTED_MODULE_2__.y)({ip_limit:o==null?void 0:o.ip_limit,ip_bind:o==null?void 0:o.ip_bind_type}),console.log(e,44)}catch(s){n(void 0)}const i=yield(0,_service_exercise__WEBPACK_IMPORTED_MODULE_3__.Cl)({id:o.exerciseId,ip:e});if(i.status===0)r(i);else if(i.status===-5){(0,umi__WEBPACK_IMPORTED_MODULE_5__.getDvaApp)()._store.dispatch({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:{errorMessage:i==null?void 0:i.message,exercise_user_id:o==null?void 0:o.exercise_user_id,id:o.exerciseId,unlockClose:o.unlockClose}}});return}else r(i);if(o.errmsgHide||_)return!0;if(i.status===-1)return t=antd__WEBPACK_IMPORTED_MODULE_13__.default.info({title:react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_14__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_15__.Z,{flex:"1"},"\u63D0\u793A"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_15__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:()=>t.destroy()}))),icon:null,className:"custom-modal-divider",content:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"font16 p20"},"\u60A8\u7684IP\u4E0D\u5728\u8003\u8BD5\u5141\u8BB8\u7684\u8303\u56F4\u5185\uFF01"),okText:"\u6211\u77E5\u9053\u4E86"}),!1;if(i.status===-2)return t=antd__WEBPACK_IMPORTED_MODULE_13__.default.info({title:react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_14__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_15__.Z,{flex:"1"},"\u63D0\u793A"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_15__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:()=>t.destroy()}))),icon:null,className:"custom-modal-divider",content:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"font16 p20"},"\u60A8\u5DF2\u7ED1\u5B9A\u5F53\u524D\u8003\u8BD5IP\u5730\u5740\uFF1A",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},i.ip),"\u8BF7\u4F7F\u7528\u8BE5IP\u5730\u5740\u8FDB\u5165\u8003\u8BD5\u3002"),okText:"\u6211\u77E5\u9053\u4E86"}),!1}))}),checkDisabledExam=o=>new Promise((_,e)=>__async(void 0,null,function*(){const t=yield(0,_service_exercise__WEBPACK_IMPORTED_MODULE_3__.Zg)({id:o==null?void 0:o.exerciseId,coursesId:o==null?void 0:o.coursesId});if((t==null?void 0:t.status)===0){_("");return}setTimeout(()=>{window.location.reload()},2e3),e("")})),isKepuKehuan=()=>location.pathname.indexOf("/classrooms/4RW9CYHY")>-1||location.pathname.indexOf("/classrooms/qb4ft587")>-1||location.pathname.indexOf("/classrooms/c5q9bsp2")>-1,startExercise=o=>__async(void 0,null,function*(){var _,e,t;sessionStorage.removeItem("studentunlock");let r;if((location.pathname.indexOf("/classrooms/4RW9CYHY")>-1||location.pathname.indexOf("/classrooms/qb4ft587")>-1||location.pathname.indexOf("/classrooms/c5q9bsp2")>-1)&&!isPc()){antd__WEBPACK_IMPORTED_MODULE_13__.default.info({content:"\u8BF7\u4F7F\u7528\u7535\u8111\u53C2\u52A0\u8003\u8BD5\uFF01"});return}if(copyTextFuc(" ",!0),yield checkDisabledExam(o),o.ip_limit!=="no"||o.ip_bind){const n=yield checkLocalOrPublicIp(o,!0);if((n==null?void 0:n.status)!==0)return;if(!isChrome()){antd__WEBPACK_IMPORTED_MODULE_13__.default.info({icon:null,okText:"\u786E\u5B9A",width:500,content:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"font16"},"\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u4EC5\u652F\u6301",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3002",react__WEBPACK_IMPORTED_MODULE_0__.createElement("br",null),"\u8BF7\u4F7F\u7528",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u6D4F\u89C8\u5668\u5F00\u59CB\u8003\u8BD5\u3002")});return}}if(o.open_camera||o.screen_open||o.ip_limit!=="no"||o.identity_verify){if(!isChromeOrFirefox())return antd__WEBPACK_IMPORTED_MODULE_13__.default.info({icon:null,okText:"\u786E\u5B9A",width:500,content:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"font16"},"\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u4EC5\u652F\u6301",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3001",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u706B\u72D0"),"\u6D4F\u89C8\u5668\u3002",react__WEBPACK_IMPORTED_MODULE_0__.createElement("br",null),"\u8BF7\u4F7F\u7528",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3001",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u706B\u72D0"),"\u6D4F\u89C8\u5668\u5F00\u59CB\u8003\u8BD5\u3002")}),!1;o.open_phone_video_recording?window.location.href=`/classrooms/${o.coursesId}/exercise/${o.exerciseId}/users/${(_=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:_.login}/check`:o.identity_verify&&o.current_status===2?window.location.href=`/classrooms/${o.coursesId}/exercise/${o.exerciseId}/users/${(e=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:e.login}/check`:window.location.href=`/classrooms/${o.coursesId}/exercise/${o.exerciseId}/users/${(t=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:t.login}`}else o.identity_verify&&o.current_status===2?window.location.href=`/classrooms/${o.coursesId}/exercise/${o.exerciseId}/users/${o.login}/check`:window.location.href=`/classrooms/${o.coursesId}/exercise/${o.exerciseId}/users/${o.login}`});var httpBuildQuery=function(o,_,e,t){if(console.log("param:",o),_=_||null,e=e||"&",t=t||null,!o)return"";var r=function(c){for(var u=new Array,a=0;a{const e={},t=Object.assign(!0,o,{}),r=[];return Object.keys(t).sort().forEach(function(n){if(t[n]=t[n]===!0?"true":t[n],t[n]=t[n]===!1?"false":t[n],_==="GET"){if(t[n]!==null){if(typeof t[n]=="object"&&(!Array.isArray(t[n])||Array.isArray(t[n])&&!t[n].length))return;const i=t[n]===null||t[n]==="null"?"":t[n];r.push(`${n}=${typeof i=="string"||typeof i=="number"?decodeURIComponent(i):JSON.stringify(i)}`)}}else{const i=t[n]===null||t[n]==="null"?"":t[n];r.push(`${n}=${typeof i=="string"||typeof i=="number"?i:JSON.stringify(i)}`),t[n],e[n]=t[n]}}),r.join("&").trim()},educationList=[{name:"\u672C\u79D1",id:6},{name:"\u5927\u4E13",id:5},{name:"\u4E2D\u4E13",id:4},{name:"\u9AD8\u4E2D",id:3},{name:"\u521D\u4E2D",id:2},{name:"\u5C0F\u5B66",id:1},{name:"\u5176\u4ED6",id:9},{name:"\u7855\u58EB",id:7},{name:"\u535A\u58EB",id:8},{name:"\u9AD8\u4E2D",id:3},{name:"\u521D\u4E2D",id:2},{name:"\u5C0F\u5B66",id:1},{name:"\u5176\u4ED6",id:9},{name:"\u7855\u58EB",id:7},{name:"\u535A\u58EB",id:8}],setHeader=(o,_)=>{var e;try{const t=Date.now();let r="method="+((e=o.method)==null?void 0:e.toLocaleUpperCase())+"&ak="+getKey(_key__WEBPACK_IMPORTED_MODULE_16__.mi)+"&sk="+getKey(_key__WEBPACK_IMPORTED_MODULE_16__.hw)+"&time="+t;return o.headers["X-EDU-Type"]="pc",o.headers["X-EDU-Timestamp"]=t,o.headers["X-EDU-Signature"]=md5__WEBPACK_IMPORTED_MODULE_6___default()(window.btoa(r)),o.headers["Pc-Authorization"]=getCookie("_educoder_session"),o}catch(t){console.log("error:",t,o,_)}},setThreeComponent=()=>{(function(o){XMLHttpRequest.prototype.open=function(_,e,t=!0){const r=setHeader({method:_,headers:{}});o.call(this,_,e,t);try{this.setRequestHeader("X-EDU-Type","pc"),this.setRequestHeader("X-EDU-Timestamps",r.headers["X-EDU-Timestamp"]),this.setRequestHeader("X-EDU-Signatures",r.headers["X-EDU-Signature"])}catch(n){}}})(XMLHttpRequest.prototype.open),function(o){window.fetch=function(_,e){var t;return e=e||{},(t=e.headers)!=null&&t["X-EDU-Timestamp"]||setHeader(e),o.apply(this,arguments).then(function(r){return r})}}(window.fetch)},parseUrl=o=>{const _=/(\w+)=([^\#&]*)/gi,e={};return o.replace(_,function(t,r,n){e[r]=decodeURI(n)}),e},messageInfo=(o,_)=>{const t={1:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u6682\u672A\u53D1\u5E03\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u6559\u5E08\u3002",2:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u4E0D\u5B58\u5728\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u6559\u5E08\u3002",3:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u6559\u5E08\u3002",4:`\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u5C06\u4E8E${_}\u53D1\u5E03\uFF0C\u8BF7\u7B49\u5F85\u3002`}[o];antd__WEBPACK_IMPORTED_MODULE_12__.ZP.warning(t)},base64ToBlob=(o,_)=>{var e;const t=window.atob(o),r=t.length,n=new Uint8Array(r);for(let i=0;i{const t=base64ToBlob(_,e);if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(t,o);else{const r=document.createElement("a");r.href=window.URL.createObjectURL(t),r.download=o,document.body.appendChild(r);const n=document.createEvent("MouseEvents");n.initEvent("click",!1,!1),r.dispatchEvent(n),document.body.removeChild(r)}},trackEvent=o=>{var _;if(o.length)try{window._czc.push(["_trackEvent",...o]),window==null||window.gtag("event",o[1],{event_category:o[0],event_label:o[2]||"",value:o[3]||"",user_id:((_=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:_.login)||""})}catch(e){console.log("trackEvent:err:",e)}},trackEventCustom=o=>{if(o.length)try{window._czc.push(["_setCustomVar",...o])}catch(_){console.log("trackEvent:err:",_)}},onPreviewImage=o=>{const _=(r,n)=>{if(r.localName===n)return r;for(let i=0,s=r;s=s.parentNode;i++){if(s.localName===n)return s;if(s==document.documentElement)return!1}},e=o.target,t=_(e,"a");if(!(t!=null&&t.href)&&e.tagName.toUpperCase()==="IMG"){let r=e.src||e.getAttribute("src");r&&r.indexOf("/images/avatars/User")===-1&&(o.stopPropagation(),o.preventDefault(),_components_mediator__WEBPACK_IMPORTED_MODULE_8__.Z.publish("preview-image",r))}},getCategoryName=(o,_)=>{var e,t,r,n;if(o){let i=(e=o==null?void 0:o.filter(s=>s.type===location.pathname.split("/")[3]))==null?void 0:e[0];return _?(n=(r=(t=i==null?void 0:i.second_category)==null?void 0:t.filter(s=>s.category_id==_))==null?void 0:r[0])==null?void 0:n.category_name:i==null?void 0:i.name}return null},bindPhone=o=>{const _=antd__WEBPACK_IMPORTED_MODULE_13__.default.confirm({title:"\u5B8C\u5584\u624B\u673A\u53F7\u7801",content:"\u6309\u7167\u6709\u5173\u653F\u7B56\u89C4\u5B9A\uFF0C\u7279\u6B8A\u5B9E\u9A8C\u9700\u8981\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u624D\u80FD\u4F7F\u7528\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801",okText:"\u7ACB\u5373\u7ED1\u5B9A",cancelText:"\u53D6\u6D88",centered:!0,onOk:()=>{location.href="/account/secure"},onCancel:()=>{_.destroy(),o!=null&&o.onCancel&&o.onCancel()}})},copyTextFuc=(o="",_=!1)=>{const e=document.createElement("textarea");e.value=o,document.body.appendChild(e),e.select(),document.execCommand("Copy"),_||antd__WEBPACK_IMPORTED_MODULE_12__.ZP.success("\u590D\u5236\u6210\u529F"),document.body.removeChild(e)},getJsonFromUrl=o=>{if(o||(o=window.location.search),!o)return{};let _=o.substring(1),e={};return _.split("&").forEach(function(t){let r=t.split("=");e[r[0]]=decodeURIComponent(r[1])}),e},arrTrans=(o,_)=>{if(!_)return null;const e=[];return _.forEach((t,r)=>{const n=Math.floor(r/o);e[n]||(e[n]=[]),e[n].push(t)}),e},setDocumentTitle=o=>{checkIsClientExam()?document.title="\u5934\u6B4C\u8003\u8BD5\u7CFB\u7EDF":o!==""&&o&&(document.title=o||(document.domain.indexOf(".educoder.net")>-1?"\u5934\u6B4C\u5B9E\u8DF5\u6559\u5B66\u5E73\u53F0":""))},checkIsClientExam=()=>{var o;return(o=window==null?void 0:window.localStorage)==null?void 0:o.isClientExam},localSort={setItem:(o,_,e)=>{const t=o,r=localStorage.getItem(t),n=r!==null&&r!=="[object Object]"?JSON.parse(r):{};n[e]=_,localStorage.setItem(t,JSON.stringify(n))},getItem:(o,_)=>{const e=o,t=localStorage.getItem(e);return(t!==null&&t!=="[object Object]"?JSON.parse(t):{})[_]}},ImgSrcConvert=o=>o!=null&&o.startsWith("http")?o:_env__WEBPACK_IMPORTED_MODULE_7__.Z.IMG_SERVER+o,compareVersion=o=>{const _=getVersion(),e=o.split("."),t=_.split("."),r=Math.max(e.length,t.length);for(;e.lengths)return 1;if(i{o=`${o}${_?","+_:""}`;const e=crypto_js__WEBPACK_IMPORTED_MODULE_9___default().enc.Utf8.parse(window.atob(window.atob(_key__WEBPACK_IMPORTED_MODULE_16__.Bn)).substring(0,16)),t=crypto_js__WEBPACK_IMPORTED_MODULE_9___default().AES.encrypt(o||"",e,{iv:e,mode:crypto_js__WEBPACK_IMPORTED_MODULE_9___default().mode.CBC});return window.btoa(t.toString())},getVersion=()=>{const _=navigator.userAgent.toLowerCase().match(/version\/[\d.]+/gi);return _&&_[0].replace(/version\//,"")},isLocalApp=()=>navigator.userAgent.indexOf("ExerciseApp")>-1;function randomArray(o,_){let e=o.length,t,r;_=_||1;let n=function(){var i=Math.sin(_++)*1e3;return i-Math.floor(i)};for(;e!==0;)r=Math.floor(n()*e),e-=1,t=o[e],o[e]=o[r],o[r]=t;return o}function pointerEvents(o){const _=document.getElementsByTagName("iframe");for(let t=0;t<_.length;t++)_[t].style["pointer-events"]=o;const e=document.getElementsByTagName("canvas");for(let t=0;tnew Promise((_,e)=>{var t=new XMLHttpRequest;t.withCredentials=!0,t.onload=function(){var r=new FileReader;r.onloadend=function(){_(r.result)},r.readAsDataURL(t.response)},t.open("GET",o),t.responseType="blob",t.send()}),vtrsKey=(_b=(_a=location==null?void 0:location.pathname)==null?void 0:_a.split("/"))==null?void 0:_b[1];function scrollToTop(){window.scrollTo({left:0,top:0,behavior:"smooth"})}function domScrollToTop(o){var _;(_=document.querySelector(o))==null||_.scrollTo({left:0,top:0,behavior:"smooth"})}function dealUploadChange(o){var _,e,t,r,n;const i=(_=o.fileList)==null?void 0:_.map(s=>{var c,u;return __spreadProps(__spreadValues({},s),{status:typeof(s==null?void 0:s.response)=="string"||((c=s==null?void 0:s.response)==null?void 0:c.status)===-1?"error":s.status,response:typeof(s==null?void 0:s.response)=="string"?s==null?void 0:s.response:s!=null&&s.response&&(s==null?void 0:s.response.status)===-1?(u=s==null?void 0:s.response)==null?void 0:u.message:s==null?void 0:s.response})});return((t=(e=o.file)==null?void 0:e.response)==null?void 0:t.status)===-1&&(antd__WEBPACK_IMPORTED_MODULE_12__.ZP.destroy(),antd__WEBPACK_IMPORTED_MODULE_12__.ZP.warning((n=(r=o.file)==null?void 0:r.response)==null?void 0:n.message)),i}function cutFileName(o="",_){if(!o)return"";const e=o.lastIndexOf(".");let t=[o,""];if(e!==-1&&e!==o.length-1){const r=o.substring(0,e),n=o.substring(e+1);t=[r,n]}return t[0].length>_?t[0].slice(0,_)+"..."+t[1]:o}function cutName(o="",_,e="--"){return o?(o==null?void 0:o.length)>=_?(o==null?void 0:o.slice(0,_))+"...":o:e}function timeContrast(o){return o?moment__WEBPACK_IMPORTED_MODULE_10___default()().isBefore(moment__WEBPACK_IMPORTED_MODULE_10___default()(o)):!0}function showTotal(o){return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"font14 c-grey-333"},"\u5171",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-light-primary"},"\xA0",o,"\xA0"),"\u6761\u6570\u636E")}const formatRandomPaperData=o=>{const _={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D",7:"\u4E03"};if(!o)return;const{exam:e,single_questions:t,multiple_questions:r,judgement_questions:n,program_questions:i,completion_questions:s,subjective_questions:c,practical_questions:u,combination_questions:a,bprogram_questions:d}=o||{},g=[__spreadValues({type:"SINGLE",name:"\u5355\u9009\u9898"},t),__spreadValues({type:"MULTIPLE",name:"\u591A\u9009\u9898"},r),__spreadValues({type:"COMPLETION",name:"\u586B\u7A7A\u9898"},s),__spreadValues({type:"JUDGMENT",name:"\u5224\u65AD\u9898"},n),__spreadValues({type:"SUBJECTIVE",name:"\u7B80\u7B54\u9898"},c),__spreadValues({type:"PROGRAM",name:"\u7F16\u7A0B\u9898"},i),__spreadValues({type:"BPROGRAM",name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"},d),__spreadValues({type:"PRACTICAL",name:"\u5B9E\u8BAD\u9898"},u),__spreadValues({type:"COMBINATION",name:"\u7EC4\u5408\u9898"},a)],f=[];let b=0,h=0;const E=g.filter(P=>P.questions_count>0).map((P,I)=>{var O;return(O=P.questions)==null||O.forEach(S=>{f.push(S.id),b=b+S.score,h=h+1}),__spreadValues(__spreadValues({},P),{number:_[I+1]})});return{all_questions_count:h,all_score:b,questionList:E,ids:f,exam:e}},formatRandomPaperDatas=o=>{var _;const e={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D",7:"\u4E03"};if(!o)return;const{exam:t,single_questions:r,multiple_questions:n,judgement_questions:i,program_questions:s,completion_questions:c,subjective_questions:u,practical_questions:a,combination_questions:d,bprogram_questions:g}=o||{},f=[__spreadValues({type:"SINGLE",name:"\u5355\u9009\u9898"},r),__spreadValues({type:"MULTIPLE",name:"\u591A\u9009\u9898"},n),__spreadValues({type:"COMPLETION",name:"\u586B\u7A7A\u9898"},c),__spreadValues({type:"JUDGMENT",name:"\u5224\u65AD\u9898"},i),__spreadValues({type:"SUBJECTIVE",name:"\u7B80\u7B54\u9898"},u),__spreadValues({type:"PROGRAM",name:"\u7F16\u7A0B\u9898"},s),__spreadValues({type:"BPROGRAM",name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"},g),__spreadValues({type:"PRACTICAL",name:"\u5B9E\u8BAD\u9898"},a),__spreadValues({type:"COMBINATION",name:"\u7EC4\u5408\u9898"},d)];let b=[];(_=t==null?void 0:t.question_type_position)==null||_.map((O,S)=>{f==null||f.map((C,A)=>{O.type===C.type&&b.push(C)})});const h=[];let E=0,P=0;const I=b.filter(O=>O.questions_count>0).map((O,S)=>{var C;return(C=O.questions)==null||C.forEach(A=>{h.push(A.id),E=E+A.score,P=P+1}),__spreadValues(__spreadValues({},O),{number:e[S+1]})});return{all_questions_count:P,all_score:E,questionList:I,ids:h,exam:t}},isWechatBrowser=()=>navigator.userAgent.toLowerCase().match(/MicroMessenger/i)=="micromessenger",toWechatLogin=()=>{isWechatBrowser()?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx0955caba88bc37eb&redirect_uri=https%3A%2F%2Fwww.educoder.net%2fotherloginstart&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":window.location.href="/wxlogin.html"},isMobileDevice=()=>typeof window.orientation!="undefined"||navigator.userAgent.indexOf("Mobi")!==-1,sendAppStatus=(o,_)=>{var e;try{_?(o.send(JSON.stringify({type:"toggleLockExit",data:!0})),_!=null&&_.forbid_screen&&o.send(JSON.stringify({type:"open-disabled-switchscreen"})),_!=null&&_.use_white_list&&o.send(JSON.stringify({type:"open-only-allow-runapp",data:_==null?void 0:_.white_list})),_!=null&&_.net_limit&&o.send(JSON.stringify({type:"network-close",data:(e=_==null?void 0:_.net_limit_list)==null?void 0:e.split(` +`:""}\uFF08\u6559\u5E08\u63D0\u4EA4\uFF09`,class:"c-black"}};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:(_=t[o.status])==null?void 0:_.class},(e=t[o.status])==null?void 0:e.name)},timego=o=>{o=new Date(o).getTime();let _=1e3*60,e=_*60,t=e*24,r="",i=new Date().getTime()-o;if(i<0)return console.log("\u65F6\u95F4\u4E0D\u5BF9\u52B2,\u670D\u52A1\u5668\u521B\u5EFA\u65F6\u95F4\u4E0E\u5F53\u524D\u65F6\u95F4\u4E0D\u540C\u6B65"),r="\u521A\u521A";let s=parseInt(i/t,10),c=parseInt(i/e,10),u=parseInt(i/_,10);return s>30?r=""+timeformat(o,"yyyy-MM-dd"):s>1?r=""+s+"\u5929\u524D":s==1?r="\u6628\u5929":c>=1?r=""+c+"\u5C0F\u65F6\u524D":u>=5?r=""+u+"\u5206\u949F\u524D":r="\u521A\u521A",r};function replaceParamVal(paramName,replaceWith){var oUrl=window.location.href.toString(),re=eval("/("+paramName+"=)([^&]*)/gi"),nUrl=oUrl.replace(re,paramName+"="+replaceWith);window.history.replaceState(null,"",nUrl)}const timeformat=(o,_)=>{typeof o=="string"&&(o.indexOf("T")>=0&&(o=o.replace("T"," ")),o=new Date(Date.parse(o.replace(/-/g,"/")))),o=new Date(o);let e={"M+":o.getMonth()+1,"d+":o.getDate(),"h+":o.getHours(),"m+":o.getMinutes(),"s+":o.getSeconds(),"q+":Math.floor((o.getMonth()+3)/3),S:o.getMilliseconds()},t=[["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]];/(y+)/.test(_)&&(_=_.replace(RegExp.$1,(o.getFullYear()+"").substr(4-RegExp.$1.length))),/(w+)/.test(_)&&(_=_.replace(RegExp.$1,t[RegExp.$1.length-1][o.getDay()]));for(let r in e)new RegExp("("+r+")").test(_)&&(_=_.replace(RegExp.$1,RegExp.$1.length==1?e[r]:("00"+e[r]).substr((""+e[r]).length)));return _},toTimeFormat=o=>{if(!o||o<0)return"0\u79D2";console.log("time:",o);let _=60,e=_*60,t=e*24,r=o/t,n=o/e,i=o/_,s=o%60;return r>=1?parseInt(r.toString())+"\u5929"+Math.floor(n%24)+"\u65F6"+Math.floor(i%60)+"\u5206"+Math.floor(o%60)+"\u79D2":n>1?parseInt(n.toString())+"\u65F6"+Math.floor(i%60)+"\u5206"+Math.floor(o%60)+"\u79D2":i>=1?parseInt(i.toString())+"\u5206"+Math.floor(o%60)+"\u79D2":Math.ceil(o)+"\u79D2"},validateLength=(o="",_=100)=>{let e=0;if(o){e=o.length;for(let t=0;t=55296&&r<=56319&&(e--,t++)}}return e<=_};function buildTree(o,_){const e={};let t=null;return o.forEach(r=>{e[r.properties.uuid]=__spreadProps(__spreadValues({},r),{children:[]})}),_.forEach(r=>{const n=e[r.startNodeUuid],i=e[r.endNodeUuid];n&&i&&n.children.push(i)}),o.forEach(r=>{!_.some(i=>i.endNodeUuid===r.properties.uuid)&&(t=e[r.properties.uuid])}),t}const handleValidatorNickName=(o,_,e)=>{if(_){let t=/[`~!@#$%^&*()\-+=<>?:"{}|,.\/;'\\[\]~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘’,。、]/im;const n=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi.test(_),i=t.test(_);(n===!0||i===!0||_.length<2||_.length>=21)&&e("2-20\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57\u53CA\u4E0B\u5212\u7EBF")}e()},handleValidatorName=(o,_,e)=>{if(_){let t=/[`~!@#$%^&()_\-+=<>?:"{}|,.\/;'\\[\]~!@#¥%……&()——\-+={}|《》?:“”【】、;‘’,。、]/im;const n=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi.test(_),i=t.test(_);(n===!0||i===!0||_.length<2||_.length>=21)&&e("2-20\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57")}e()},getHiddenName=o=>{if(!o)return"";let _=o.length-1,e="";for(var t=0;t<_;t++)e+="*";return o.substr(0,1)+e},getBase64=(o,_)=>{const e=new FileReader;e.addEventListener("load",()=>_(e.result)),e.readAsDataURL(o)},getFileContentAndUrl=o=>new Promise((_,e)=>{var t=new FileReader;t.onload=function(){try{const r=window.URL.createObjectURL(o);_({text:this.result,link:r})}catch(r){antd__WEBPACK_IMPORTED_MODULE_12__.ZP.warning("\u5F53\u524D\u6587\u4EF6\u65E0\u6CD5\u8BFB\u53D6\u5185\u5BB9"),e("\u5F53\u524D\u6587\u4EF6\u65E0\u6CD5\u8BFB\u53D6\u5185\u5BB9")}},t.readAsText(o)});function setmiyah(o){return md5__WEBPACK_IMPORTED_MODULE_6___default()("79e33abd4b6588941ab7622aed1e67e8"+o)}const getCookie=o=>{var _,e=RegExp("(^| )"+o+"=([^;]+)(;|$)");return(_=document.cookie.match(e))?decodeURIComponent(_[2]):null};function setCookie(o,_,e){var t=new Date;t.setTime(t.getTime()+e*24*60*60*1e3);var r="expires="+t.toUTCString();document.cookie=o+"="+_+"; "+r+`;domain=${document.domain.indexOf("educoder.net")>-1?".educoder.net":document.domain};path=/;SameSite=None;secure`}const delCookie=o=>{document.cookie=o+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;"},clearAllCookies=()=>{for(var o=document.cookie.split(";"),_=0;_-1?e.substr(0,t):e;document.cookie=r+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT"}};function downLoadLink(o,_){let e=document.createElement("a");document.body.appendChild(e),e.href=_,o&&(e.title=o,e.download=o);let t=document.createEvent("MouseEvents");t.initEvent("click",!1,!1),e.dispatchEvent(t),document.body.removeChild(e)}function getFirstLevelDomain(){var o=window.location.hostname,_=o.split(".").reverse();return _.length>2?[_[1],_[0]].join("."):o}function getBlob(o){return new Promise(_=>{const e=new window.XMLHttpRequest;(o.indexOf(getFirstLevelDomain())>-1||location.hostname==="localhost"&&o.indexOf("/api/")>-1)&&(e.withCredentials=!0),e.open("GET",o,!0),e.responseType="blob",e.onload=()=>{e.status===200&&_(e.response)},e.send()})}function saveAs(o,_){if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveBlob(o,_);else{const e=document.createElement("a"),t=document.querySelector("body");e.href=window.URL.createObjectURL(o),e.download=_,e.style.display="none",t.appendChild(e),e.click(),t.removeChild(e),window.URL.revokeObjectURL(e.href)}}function download(o,_){getBlob(o).then(e=>{saveAs(e,_)})}function downLoadFileIframe(o,_){return new Promise((e,t)=>{var r=_,n=document.createElement("iframe"),i;document.body.appendChild(n),n.src=r,n.style.display="none",n.addEventListener("load",function(){setTimeout(()=>{document.body.removeChild(n)},1e3)},!0),i=setInterval(()=>{getCookie("fileDownload")&&(delCookie("fileDownload"),clearInterval(i),document.body.removeChild(n),e())},1e3)})}function downLoadFile(o,_){downLoadLink(o,_)}const setUrlQuery=o=>{let{url:_,query:e}=o;if(!_)return"";if(e){let t=[];for(const r in e)e.hasOwnProperty(r)&&!isUnOrNull(e[r])&&(typeof e[r]=="object"?e[r].map(n=>{t.push(`${r}[]=${n}`)}):t.push(`${r}=${e[r]}`));_.indexOf("?")!==-1?_=`${_}&${t.join("&")}`:_=`${_}?${t.join("&")}`,console.log("url1111",_)}return _};function isPc(){let o=navigator.userAgent,_=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],e=!0;for(var t=0;t<_.length;t++)if(o.indexOf(_[t])>0){e=!1;break}return e}function isChrome(){let o=navigator.userAgent;return["Chrome"].some(e=>o.indexOf(e)>-1)}function isFirefox(){let o=navigator.userAgent;return["Firefox"].some(e=>o.indexOf(e)>-1)}function isChromeOrFirefox(){let o=navigator.userAgent;return["Chrome","Firefox"].some(e=>o.indexOf(e)>-1)}const formatMoney=(o="")=>{var _;return(_=o==null?void 0:o.toString())==null?void 0:_.replace(/\B(?=(\d{3})+(?!\d))/g,",")},openNewWindow=o=>{let _=document.createElement("a");_.target="_blank",document.body.appendChild(_),_.href=o;let e=document.createEvent("MouseEvents");e.initEvent("click",!1,!1),_.dispatchEvent(e),document.body.removeChild(_)},openNewWindows=o=>{let _=document.createElement("a");document.body.appendChild(_),_.href=o;let e=document.createEvent("MouseEvents");e.initEvent("click",!1,!1),_.dispatchEvent(e),document.body.removeChild(_)},formatTextMiddleIntercept=(o="")=>o.length<=6?o:`${o.substring(0,3)}...${o.substring(o.length-3,o.length)}`,HalfPastOne=()=>{let o=new Date().getHours(),_=new Date().getMinutes();return _>=30?(o++,_="00"):_="30",o+":"+_},DayHalfPastOne=(o="-")=>{let _=new Date().getHours(),e=new Date().getMinutes();return e>=30?(_++,e="00"):e="30",new Date().toLocaleDateString().replace(/\//g,o)+" "+_+":"+e};var Type=(o=>(o.Number="Number",o.String="String",o.Boolean="Boolean",o.Object="Object",o.Array="Array",o.Function="Function",o))(Type||{});const type=o=>{const _=Object.prototype.toString.call(o);return _.substring(8,_.length-1)},isEmpty=o=>type(o)==="Array"?o.length===0:type(o)==="Object"?Object.keys(o).length===0:!o,rangeNumber=(o,_)=>{const e=[];for(let t=o;t<_;t++)e.push(t);return e},middleEllipsis=(o,_=12)=>{let e=_/2-2,t=_/2+3;return o.length>_?o.substr(0,e)+"..."+o.substr(t,_):o},formatRate=o=>o>4.5?5:o>4&&o<=4.5?4.5:o>3.5&&o<=4?4:o>3&&o<=3.5?3.5:o>2.5&&o<=3?3:o>2&&o<=2.5?2.5:o>1.5&&o<=2?2:o>1&&o<=1.5?1.5:o>.5&&o<=1?1:o>0&&o<=.5?.5:0,isUnOrNull=o=>o==null;function getUrlToken(o,_){const e=new RegExp(`(^|&)${o}=([^&]*)(&|$)`,"i"),t=_.substr(1).match(e);return t!=null?decodeURIComponent(t[2]):null}const getMessagesUrl=o=>{var _;if(o.link_url)return window.open(o.link_url);switch(o==null?void 0:o.container_type){case"TeacherChangeUserInfo":return window.open("/account/profile");case"TeacherResetUserPassword":return window.open("/account/secure");case"ApplyUserAuthentication":return window.open("/account/certification")}switch(o.container_type){case"ApplyUserAuthentication":if(o.tiding_type==="Apply"){if(o.auth_type===1)return window.open("/admins/identity_authentications");if(o.auth_type===2)return window.open("/admins/professional_authentications")}return o.tiding_type==="System"?window.open("/account/certification"):o.tiding_type==="Code"?window.open("/account/profile"):void 0;case"CancelUserAuthentication":return window.open("/account/certification");case"CancelUserProCertification":return window.open("/account/certification");case"ApplyAddMajor":return window.open("/account/profile");case"Major":return window.open("/account/profile");case"ApplyAddDepartment":return o.tiding_type==="Apply"?window.open("/admins/department_applies"):o.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAddSchools":return o.tiding_type==="Apply"?window.open("/admins/unit_applies"):o.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAction":switch(o.parent_container_type){case"ApplyShixun":if(o.tiding_type==="Apply")return window.open("/admins/shixun_authorizations");if(o.tiding_type==="System")return window.open(`/shixuns/${o.identifier}/challenges`);case"ApplySubject":if(o.tiding_type==="Apply")return window.open("/admins/subject_authorizations");if(o.tiding_type==="System")return window.open(`/paths/${o.parent_container_id}`);case"TrialAuthorization":if(o.tiding_type==="Apply")return window.open("/managements/trial_authorization");if(o.tiding_type==="System")return window.open("/account/profile")}return;case"JoinCourse":return window.open(`/classrooms/${o.belong_container_id}/teachers`);case"StudentJoinCourse":if(o.tiding_type==="Apply")return window.open(`/classrooms/${o.belong_container_id}/teachers`);if(o.tiding_type==="System")return window.open(`/classrooms/${o.belong_container_id}/students`);case"DealCourse":return window.open(`/classrooms/${o.belong_container_id}/shixun_homework/`);case"TeacherJoinCourse":return window.open(`/classrooms/${o.belong_container_id}/shixun_homework/`);case"Course":return o.tiding_type==="Delete"?void 0:window.open(`/classrooms/${o.belong_container_id}/shixun_homework/`);case"ArchiveCourse":return window.open(`/classrooms/${o.belong_container_id}/shixun_homework/`);case"Shixun":return window.open(`/shixuns/${o.identifier}/challenges`);case"Subject":return window.open(`/paths/${o.container_id}`);case"JournalsForMessage":switch(o.parent_container_type){case"Principal":return"";case"HomeworkCommon":return o.homework_type==="normal"?window.open(`/classrooms/${o.belong_container_id}/common_homework/${o.parent_container_id}/question`):o.homework_type==="group"?window.open(`/classrooms/${o.belong_container_id}/group_homework/${o.parent_container_id}/question`):o.homework_type==="practice"?window.open(`/classrooms/${o.belong_container_id}/shixun_homework/${o.parent_container_id}/detail?tabs=1`):"";case"GraduationTopic":return window.open(`/classrooms/${o.belong_container_id}/graduation_topics/${o.parent_container_id}/detail`);case"StudentWorksScore":return window.open(o.link_url)}case"Memo":return window.open(`/forums/${o.parent_container_id}`);case"Message":return window.open("/forums/");case"Watcher":return window.open(`/users/${o.trigger_user.login}/classrooms`);case"PraiseTread":return"";case"Grade":return"";case"JoinProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+o.project_url);case"ReporterJoinProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+o.project_url);case"DealProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+o.project_url);case"ManagerJoinProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+o.project_url);case"Poll":switch(o.parent_container_type){case"CommitPoll":return window.open(` /classrooms/${o.belong_container_id}/poll/${o.container_id}/detail`);default:return window.open(` /classrooms/${o.belong_container_id}/poll/${o.container_id}/detail`)}case"Exercise":switch(o.parent_container_type){case"CommitExercise":return window.open(` /classrooms/${o.belong_container_id}/exercise/${o.container_id}/detail?tab=0`);case"ExerciseScore":return window.open(` /classrooms/${o.belong_container_id}/exercise/${o.container_id}/detail?tab=0`);default:return window.open(`/classrooms/${o.belong_container_id}/exercise/${o.container_id}/detail?tab=0`)}case"StudentGraduationTopic":return window.open(`/classrooms/${o.belong_container_id}/graduation_topics/${o.parent_container_id}/detail`);case"DealStudentTopicSelect":return window.open(`/classrooms/${o.belong_container_id}/graduation_topics/${o.parent_container_id}/detail`);case"GraduationTask":return window.open(`/classrooms/${o.belong_container_id}/graduation_tasks/${o.container_id}`);case"GraduationWork":return window.open(`/classrooms/${o.belong_container_id}/graduation_tasks/${o.container_id}`);case"GraduationWorkScore":return window.open(`/classrooms/${o.belong_container_id}/graduation_tasks/${o.parent_container_id}`);case"HomeworkCommon":switch(o.parent_container_type){case"AnonymousCommentFail":if(o.homework_type==="normal")return window.open(`/classrooms/${o.belong_container_id}/common_homework/${o.parent_container_id}/detail`);if(o.homework_type==="group")return window.open(`/classrooms/${o.belong_container_id}/group_homework/${o.parent_container_id}/detail`);if(o.homework_type==="practice")return window.open(`/classrooms/${o.belong_container_id}/shixun_homework/${o.parent_container_id}/detail?tabs=0`);case"HomeworkPublish":if(o.homework_type==="normal")return window.open(`/classrooms/${o.belong_container_id}/common_homework/${o.parent_container_id}/detail`);if(o.homework_type==="group")return window.open(`/classrooms/${o.belong_container_id}/group_homework/${o.parent_container_id}/detail`);if(o.homework_type==="practice")return window.open(`/classrooms/${o.belong_container_id}/shixun_homework/${o.parent_container_id}/detail?tabs=0`);case"AnonymousAppeal":if(o.homework_type==="normal")return window.open(`/classrooms/${o.belong_container_id}/common_homework/${o.parent_container_id}/detail`);if(o.homework_type==="group")return window.open(`/classrooms/${o.belong_container_id}/group_homework/${o.parent_container_id}/detail`);if(o.homework_type==="practice")return window.open(`/classrooms/${o.belong_container_id}/shixun_homework/${o.parent_container_id}/detail?tabs=0`);default:if(o.homework_type==="normal")return window.open(`/classrooms/${o.belong_container_id}/common_homework/${o.parent_container_id}/detail`);if(o.homework_type==="group")return window.open(`/classrooms/${o.belong_container_id}/group_homework/${o.parent_container_id}/detail`);if(o.homework_type==="practice")return window.open(`/classrooms/${o.belong_container_id}/shixun_homework/${o.parent_container_id}/detail?tabs=0`)}case"StudentWork":if(o.homework_type==="normal")return window.open(`/classrooms/${o.belong_container_id}/common_homework/${o.parent_container_id}/review/${o.container_id}`);if(o.homework_type==="group")return window.open(`/classrooms/${o.belong_container_id}/group_homework/${o.parent_container_id}/review/${o.container_id}`);if(o.homework_type==="practice")return window.open(`/classrooms/${o.belong_container_id}/shixun_homework/${o.parent_container_id}/detail`);case"StudentWorksScore":return window.open(`/classrooms/${o.belong_container_id}/common_homework/${o.trigger_user.id}/review/${o.parent_container_id}`);case"StudentWorksScoresAppeal":return window.open(`/classrooms/${o.belong_container_id}/common_homework/${o.trigger_user.id}/review/${o.parent_container_id}`);case"ChallengeWorkScore":return"";case"SendMessage":return window.open(`${_env__WEBPACK_IMPORTED_MODULE_7__.Z.API_SERVER}/admins/mirror_repositories`);case"Journal":return window.open(`/issues/${o.parent_container_id}`);case"Issue":return window.open(`/issues/${o.container_id}`);case"PullRequest":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+o.project_url);case"Department":return window.open("/account/profile");case"Library":if(o.tiding_type==="Apply")return window.open("/admins/library_applies");if(o.tiding_type==="System")return window.open(`/moop_cases/${o.container_id}`);case"ProjectPackage":return o.tiding_type==="Destroyed"||o.tiding_type==="Destroyed_end"?void 0:o.tiding_type==="Apply"?window.open("/admins/project_package_applies"):window.open(`/crowdsourcing/${o.container_id}`);case"Discuss":return o.parent_container_type==="Hack"&&o.extra?window.open(`/myproblems/${o.extra}/comment`):o.extra==="ai_reply"&&o.task_identifier?window.open(`/tasks/${o.task_identifier}?extra=extra`):window.open(`/shixuns/${o.identifier}/shixun_discuss`);case"Video":return o.tiding_type==="Apply"?window.open("/admins/video_applies"):o.tiding_type==="System"?window.open(`/users/${(_=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:_.login}/videos`):"";case"PublicCourseStart":return window.open(`/classrooms/${o.container_id}/informs`);case"SubjectStartCourse":return window.open(`/paths/${o.container_id}`);case"ResubmitStudentWork":if(o.homework_type==="normal")return window.open(`/classrooms/${o.belong_container_id}/common_homework/${o.parent_container_id}/${o.container_id}/appraise`);if(o.homework_type==="group")return window.open(`/classrooms/${o.belong_container_id}/group_homework/${o.parent_container_id}/${o.container_id}/appraise`);case"AdjustScore":if(o.homework_type==="normal")return window.open(`/classrooms/${o.belong_container_id}/common_homework/${o.parent_container_id}`);if(o.homework_type==="group")return window.open(`/classrooms/${o.belong_container_id}/group_homework/${o.parent_container_id}`);case"LiveLink":return window.open(`/classrooms/${o.belong_container_id}/course_videos?open=live`);case"Hack":if(o.extra&&o.parent_container_type!=="HackDelete")return window.open(`/problems/${o.extra}/edit`);default:return}},checkLocalOrPublicIp=(o,_)=>__async(void 0,null,function*(){let e="",t;return new Promise((r,n)=>__async(void 0,null,function*(){if(o.ip_limit!=="no"||o.ip_bind_type)try{e=yield(0,_components_Exercise_ip__WEBPACK_IMPORTED_MODULE_2__.y)({ip_limit:o==null?void 0:o.ip_limit,ip_bind:o==null?void 0:o.ip_bind_type}),console.log(e,44)}catch(s){n(void 0)}const i=yield(0,_service_exercise__WEBPACK_IMPORTED_MODULE_3__.Cl)({id:o.exerciseId,ip:e});if(i.status===0)r(i);else if(i.status===-5){(0,umi__WEBPACK_IMPORTED_MODULE_5__.getDvaApp)()._store.dispatch({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:{errorMessage:i==null?void 0:i.message,exercise_user_id:o==null?void 0:o.exercise_user_id,id:o.exerciseId,unlockClose:o.unlockClose}}});return}else r(i);if(o.errmsgHide||_)return!0;if(i.status===-1)return t=antd__WEBPACK_IMPORTED_MODULE_13__.default.info({title:react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_14__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_15__.Z,{flex:"1"},"\u63D0\u793A"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_15__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:()=>t.destroy()}))),icon:null,className:"custom-modal-divider",content:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"font16 p20"},"\u60A8\u7684IP\u4E0D\u5728\u8003\u8BD5\u5141\u8BB8\u7684\u8303\u56F4\u5185\uFF01"),okText:"\u6211\u77E5\u9053\u4E86"}),!1;if(i.status===-2)return t=antd__WEBPACK_IMPORTED_MODULE_13__.default.info({title:react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_14__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_15__.Z,{flex:"1"},"\u63D0\u793A"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_15__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:()=>t.destroy()}))),icon:null,className:"custom-modal-divider",content:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"font16 p20"},"\u60A8\u5DF2\u7ED1\u5B9A\u5F53\u524D\u8003\u8BD5IP\u5730\u5740\uFF1A",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},i.ip),"\u8BF7\u4F7F\u7528\u8BE5IP\u5730\u5740\u8FDB\u5165\u8003\u8BD5\u3002"),okText:"\u6211\u77E5\u9053\u4E86"}),!1}))}),checkDisabledExam=o=>new Promise((_,e)=>__async(void 0,null,function*(){const t=yield(0,_service_exercise__WEBPACK_IMPORTED_MODULE_3__.Zg)({id:o==null?void 0:o.exerciseId,coursesId:o==null?void 0:o.coursesId});if((t==null?void 0:t.status)===0){_("");return}setTimeout(()=>{window.location.reload()},2e3),e("")})),isKepuKehuan=()=>location.pathname.indexOf("/classrooms/4RW9CYHY")>-1||location.pathname.indexOf("/classrooms/qb4ft587")>-1||location.pathname.indexOf("/classrooms/c5q9bsp2")>-1,startExercise=o=>__async(void 0,null,function*(){var _,e,t;sessionStorage.removeItem("studentunlock");let r;if((location.pathname.indexOf("/classrooms/4RW9CYHY")>-1||location.pathname.indexOf("/classrooms/qb4ft587")>-1||location.pathname.indexOf("/classrooms/c5q9bsp2")>-1)&&!isPc()){antd__WEBPACK_IMPORTED_MODULE_13__.default.info({content:"\u8BF7\u4F7F\u7528\u7535\u8111\u53C2\u52A0\u8003\u8BD5\uFF01"});return}if(copyTextFuc(" ",!0),yield checkDisabledExam(o),o.ip_limit!=="no"||o.ip_bind){const n=yield checkLocalOrPublicIp(o,!0);if((n==null?void 0:n.status)!==0)return;if(!isChrome()){antd__WEBPACK_IMPORTED_MODULE_13__.default.info({icon:null,okText:"\u786E\u5B9A",width:500,content:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"font16"},"\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u4EC5\u652F\u6301",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3002",react__WEBPACK_IMPORTED_MODULE_0__.createElement("br",null),"\u8BF7\u4F7F\u7528",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u6D4F\u89C8\u5668\u5F00\u59CB\u8003\u8BD5\u3002")});return}}if(o.open_camera||o.screen_open||o.ip_limit!=="no"||o.identity_verify){if(!isChromeOrFirefox())return antd__WEBPACK_IMPORTED_MODULE_13__.default.info({icon:null,okText:"\u786E\u5B9A",width:500,content:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"font16"},"\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u4EC5\u652F\u6301",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3001",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u706B\u72D0"),"\u6D4F\u89C8\u5668\u3002",react__WEBPACK_IMPORTED_MODULE_0__.createElement("br",null),"\u8BF7\u4F7F\u7528",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3001",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-red"},"\u706B\u72D0"),"\u6D4F\u89C8\u5668\u5F00\u59CB\u8003\u8BD5\u3002")}),!1;o.open_phone_video_recording?window.location.href=`/classrooms/${o.coursesId}/exercise/${o.exerciseId}/users/${(_=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:_.login}/check`:o.identity_verify&&o.current_status===2?window.location.href=`/classrooms/${o.coursesId}/exercise/${o.exerciseId}/users/${(e=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:e.login}/check`:window.location.href=`/classrooms/${o.coursesId}/exercise/${o.exerciseId}/users/${(t=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:t.login}`}else o.identity_verify&&o.current_status===2?window.location.href=`/classrooms/${o.coursesId}/exercise/${o.exerciseId}/users/${o.login}/check`:window.location.href=`/classrooms/${o.coursesId}/exercise/${o.exerciseId}/users/${o.login}`});var httpBuildQuery=function(o,_,e,t){if(console.log("param:",o),_=_||null,e=e||"&",t=t||null,!o)return"";var r=function(c){for(var u=new Array,a=0;a{const e={},t=Object.assign(!0,o,{}),r=[];return Object.keys(t).sort().forEach(function(n){if(t[n]=t[n]===!0?"true":t[n],t[n]=t[n]===!1?"false":t[n],_==="GET"){if(t[n]!==null){if(typeof t[n]=="object"&&(!Array.isArray(t[n])||Array.isArray(t[n])&&!t[n].length))return;const i=t[n]===null||t[n]==="null"?"":t[n];r.push(`${n}=${typeof i=="string"||typeof i=="number"?decodeURIComponent(i):JSON.stringify(i)}`)}}else{const i=t[n]===null||t[n]==="null"?"":t[n];r.push(`${n}=${typeof i=="string"||typeof i=="number"?i:JSON.stringify(i)}`),t[n],e[n]=t[n]}}),r.join("&").trim()},educationList=[{name:"\u672C\u79D1",id:6},{name:"\u5927\u4E13",id:5},{name:"\u4E2D\u4E13",id:4},{name:"\u9AD8\u4E2D",id:3},{name:"\u521D\u4E2D",id:2},{name:"\u5C0F\u5B66",id:1},{name:"\u5176\u4ED6",id:9},{name:"\u7855\u58EB",id:7},{name:"\u535A\u58EB",id:8},{name:"\u9AD8\u4E2D",id:3},{name:"\u521D\u4E2D",id:2},{name:"\u5C0F\u5B66",id:1},{name:"\u5176\u4ED6",id:9},{name:"\u7855\u58EB",id:7},{name:"\u535A\u58EB",id:8}],setHeader=(o,_)=>{var e;try{const t=Date.now();let r="method="+((e=o.method)==null?void 0:e.toLocaleUpperCase())+"&ak="+getKey(_key__WEBPACK_IMPORTED_MODULE_16__.mi)+"&sk="+getKey(_key__WEBPACK_IMPORTED_MODULE_16__.hw)+"&time="+t;return o.headers["X-EDU-Type"]="pc",o.headers["X-EDU-Timestamp"]=t,o.headers["X-EDU-Signature"]=md5__WEBPACK_IMPORTED_MODULE_6___default()(window.btoa(r)),o.headers["Pc-Authorization"]=getCookie("_educoder_session"),o}catch(t){console.log("error:",t,o,_)}},setThreeComponent=()=>{(function(o){XMLHttpRequest.prototype.open=function(_,e,t=!0){const r=setHeader({method:_,headers:{}});o.call(this,_,e,t);try{this.setRequestHeader("X-EDU-Type","pc"),this.setRequestHeader("X-EDU-Timestamps",r.headers["X-EDU-Timestamp"]),this.setRequestHeader("X-EDU-Signatures",r.headers["X-EDU-Signature"]),this.setRequestHeader("X-EDU-Signatures",getCookie("_educoder_session"))}catch(n){}}})(XMLHttpRequest.prototype.open),function(o){window.fetch=function(_,e){var t;return e=e||{},(t=e.headers)!=null&&t["X-EDU-Timestamp"]||setHeader(e),o.apply(this,arguments).then(function(r){return r})}}(window.fetch)},parseUrl=o=>{const _=/(\w+)=([^\#&]*)/gi,e={};return o.replace(_,function(t,r,n){e[r]=decodeURI(n)}),e},messageInfo=(o,_)=>{const t={1:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u6682\u672A\u53D1\u5E03\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u6559\u5E08\u3002",2:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u4E0D\u5B58\u5728\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u6559\u5E08\u3002",3:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u6559\u5E08\u3002",4:`\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u5C06\u4E8E${_}\u53D1\u5E03\uFF0C\u8BF7\u7B49\u5F85\u3002`}[o];antd__WEBPACK_IMPORTED_MODULE_12__.ZP.warning(t)},base64ToBlob=(o,_)=>{var e;const t=window.atob(o),r=t.length,n=new Uint8Array(r);for(let i=0;i{const t=base64ToBlob(_,e);if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(t,o);else{const r=document.createElement("a");r.href=window.URL.createObjectURL(t),r.download=o,document.body.appendChild(r);const n=document.createEvent("MouseEvents");n.initEvent("click",!1,!1),r.dispatchEvent(n),document.body.removeChild(r)}},trackEvent=o=>{var _;if(o.length)try{window._czc.push(["_trackEvent",...o]),window==null||window.gtag("event",o[1],{event_category:o[0],event_label:o[2]||"",value:o[3]||"",user_id:((_=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:_.login)||""})}catch(e){console.log("trackEvent:err:",e)}},trackEventCustom=o=>{if(o.length)try{window._czc.push(["_setCustomVar",...o])}catch(_){console.log("trackEvent:err:",_)}},onPreviewImage=o=>{const _=(r,n)=>{if(r.localName===n)return r;for(let i=0,s=r;s=s.parentNode;i++){if(s.localName===n)return s;if(s==document.documentElement)return!1}},e=o.target,t=_(e,"a");if(!(t!=null&&t.href)&&e.tagName.toUpperCase()==="IMG"){let r=e.src||e.getAttribute("src");r&&r.indexOf("/images/avatars/User")===-1&&(o.stopPropagation(),o.preventDefault(),_components_mediator__WEBPACK_IMPORTED_MODULE_8__.Z.publish("preview-image",r))}},getCategoryName=(o,_)=>{var e,t,r,n;if(o){let i=(e=o==null?void 0:o.filter(s=>s.type===location.pathname.split("/")[3]))==null?void 0:e[0];return _?(n=(r=(t=i==null?void 0:i.second_category)==null?void 0:t.filter(s=>s.category_id==_))==null?void 0:r[0])==null?void 0:n.category_name:i==null?void 0:i.name}return null},bindPhone=o=>{const _=antd__WEBPACK_IMPORTED_MODULE_13__.default.confirm({title:"\u5B8C\u5584\u624B\u673A\u53F7\u7801",content:"\u6309\u7167\u6709\u5173\u653F\u7B56\u89C4\u5B9A\uFF0C\u7279\u6B8A\u5B9E\u9A8C\u9700\u8981\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u624D\u80FD\u4F7F\u7528\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801",okText:"\u7ACB\u5373\u7ED1\u5B9A",cancelText:"\u53D6\u6D88",centered:!0,onOk:()=>{location.href="/account/secure"},onCancel:()=>{_.destroy(),o!=null&&o.onCancel&&o.onCancel()}})},copyTextFuc=(o="",_=!1)=>{const e=document.createElement("textarea");e.value=o,document.body.appendChild(e),e.select(),document.execCommand("Copy"),_||antd__WEBPACK_IMPORTED_MODULE_12__.ZP.success("\u590D\u5236\u6210\u529F"),document.body.removeChild(e)},getJsonFromUrl=o=>{if(o||(o=window.location.search),!o)return{};let _=o.substring(1),e={};return _.split("&").forEach(function(t){let r=t.split("=");e[r[0]]=decodeURIComponent(r[1])}),e},arrTrans=(o,_)=>{if(!_)return null;const e=[];return _.forEach((t,r)=>{const n=Math.floor(r/o);e[n]||(e[n]=[]),e[n].push(t)}),e},setDocumentTitle=o=>{checkIsClientExam()?document.title="\u5934\u6B4C\u8003\u8BD5\u7CFB\u7EDF":o!==""&&o&&(document.title=o||(document.domain.indexOf(".educoder.net")>-1?"\u5934\u6B4C\u5B9E\u8DF5\u6559\u5B66\u5E73\u53F0":""))},checkIsClientExam=()=>{var o;return(o=window==null?void 0:window.localStorage)==null?void 0:o.isClientExam},localSort={setItem:(o,_,e)=>{const t=o,r=localStorage.getItem(t),n=r!==null&&r!=="[object Object]"?JSON.parse(r):{};n[e]=_,localStorage.setItem(t,JSON.stringify(n))},getItem:(o,_)=>{const e=o,t=localStorage.getItem(e);return(t!==null&&t!=="[object Object]"?JSON.parse(t):{})[_]}},ImgSrcConvert=o=>o!=null&&o.startsWith("http")?o:_env__WEBPACK_IMPORTED_MODULE_7__.Z.IMG_SERVER+o,compareVersion=o=>{const _=getVersion(),e=o.split("."),t=_.split("."),r=Math.max(e.length,t.length);for(;e.lengths)return 1;if(i{o=`${o}${_?","+_:""}`;const e=crypto_js__WEBPACK_IMPORTED_MODULE_9___default().enc.Utf8.parse(window.atob(window.atob(_key__WEBPACK_IMPORTED_MODULE_16__.Bn)).substring(0,16)),t=crypto_js__WEBPACK_IMPORTED_MODULE_9___default().AES.encrypt(o||"",e,{iv:e,mode:crypto_js__WEBPACK_IMPORTED_MODULE_9___default().mode.CBC});return window.btoa(t.toString())},getVersion=()=>{const _=navigator.userAgent.toLowerCase().match(/version\/[\d.]+/gi);return _&&_[0].replace(/version\//,"")},isLocalApp=()=>navigator.userAgent.indexOf("ExerciseApp")>-1;function randomArray(o,_){let e=o.length,t,r;_=_||1;let n=function(){var i=Math.sin(_++)*1e3;return i-Math.floor(i)};for(;e!==0;)r=Math.floor(n()*e),e-=1,t=o[e],o[e]=o[r],o[r]=t;return o}function pointerEvents(o){const _=document.getElementsByTagName("iframe");for(let t=0;t<_.length;t++)_[t].style["pointer-events"]=o;const e=document.getElementsByTagName("canvas");for(let t=0;tnew Promise((_,e)=>{var t=new XMLHttpRequest;t.withCredentials=!0,t.onload=function(){var r=new FileReader;r.onloadend=function(){_(r.result)},r.readAsDataURL(t.response)},t.open("GET",o),t.responseType="blob",t.send()}),vtrsKey=(_b=(_a=location==null?void 0:location.pathname)==null?void 0:_a.split("/"))==null?void 0:_b[1];function scrollToTop(){window.scrollTo({left:0,top:0,behavior:"smooth"})}function domScrollToTop(o){var _;(_=document.querySelector(o))==null||_.scrollTo({left:0,top:0,behavior:"smooth"})}function dealUploadChange(o){var _,e,t,r,n;const i=(_=o.fileList)==null?void 0:_.map(s=>{var c,u;return __spreadProps(__spreadValues({},s),{status:typeof(s==null?void 0:s.response)=="string"||((c=s==null?void 0:s.response)==null?void 0:c.status)===-1?"error":s.status,response:typeof(s==null?void 0:s.response)=="string"?s==null?void 0:s.response:s!=null&&s.response&&(s==null?void 0:s.response.status)===-1?(u=s==null?void 0:s.response)==null?void 0:u.message:s==null?void 0:s.response})});return((t=(e=o.file)==null?void 0:e.response)==null?void 0:t.status)===-1&&(antd__WEBPACK_IMPORTED_MODULE_12__.ZP.destroy(),antd__WEBPACK_IMPORTED_MODULE_12__.ZP.warning((n=(r=o.file)==null?void 0:r.response)==null?void 0:n.message)),i}function cutFileName(o="",_){if(!o)return"";const e=o.lastIndexOf(".");let t=[o,""];if(e!==-1&&e!==o.length-1){const r=o.substring(0,e),n=o.substring(e+1);t=[r,n]}return t[0].length>_?t[0].slice(0,_)+"..."+t[1]:o}function cutName(o="",_,e="--"){return o?(o==null?void 0:o.length)>=_?(o==null?void 0:o.slice(0,_))+"...":o:e}function timeContrast(o){return o?moment__WEBPACK_IMPORTED_MODULE_10___default()().isBefore(moment__WEBPACK_IMPORTED_MODULE_10___default()(o)):!0}function showTotal(o){return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"font14 c-grey-333"},"\u5171",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"c-light-primary"},"\xA0",o,"\xA0"),"\u6761\u6570\u636E")}const formatRandomPaperData=o=>{const _={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D",7:"\u4E03"};if(!o)return;const{exam:e,single_questions:t,multiple_questions:r,judgement_questions:n,program_questions:i,completion_questions:s,subjective_questions:c,practical_questions:u,combination_questions:a,bprogram_questions:d}=o||{},g=[__spreadValues({type:"SINGLE",name:"\u5355\u9009\u9898"},t),__spreadValues({type:"MULTIPLE",name:"\u591A\u9009\u9898"},r),__spreadValues({type:"COMPLETION",name:"\u586B\u7A7A\u9898"},s),__spreadValues({type:"JUDGMENT",name:"\u5224\u65AD\u9898"},n),__spreadValues({type:"SUBJECTIVE",name:"\u7B80\u7B54\u9898"},c),__spreadValues({type:"PROGRAM",name:"\u7F16\u7A0B\u9898"},i),__spreadValues({type:"BPROGRAM",name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"},d),__spreadValues({type:"PRACTICAL",name:"\u5B9E\u8BAD\u9898"},u),__spreadValues({type:"COMBINATION",name:"\u7EC4\u5408\u9898"},a)],f=[];let b=0,h=0;const E=g.filter(P=>P.questions_count>0).map((P,I)=>{var O;return(O=P.questions)==null||O.forEach(S=>{f.push(S.id),b=b+S.score,h=h+1}),__spreadValues(__spreadValues({},P),{number:_[I+1]})});return{all_questions_count:h,all_score:b,questionList:E,ids:f,exam:e}},formatRandomPaperDatas=o=>{var _;const e={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D",7:"\u4E03"};if(!o)return;const{exam:t,single_questions:r,multiple_questions:n,judgement_questions:i,program_questions:s,completion_questions:c,subjective_questions:u,practical_questions:a,combination_questions:d,bprogram_questions:g}=o||{},f=[__spreadValues({type:"SINGLE",name:"\u5355\u9009\u9898"},r),__spreadValues({type:"MULTIPLE",name:"\u591A\u9009\u9898"},n),__spreadValues({type:"COMPLETION",name:"\u586B\u7A7A\u9898"},c),__spreadValues({type:"JUDGMENT",name:"\u5224\u65AD\u9898"},i),__spreadValues({type:"SUBJECTIVE",name:"\u7B80\u7B54\u9898"},u),__spreadValues({type:"PROGRAM",name:"\u7F16\u7A0B\u9898"},s),__spreadValues({type:"BPROGRAM",name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"},g),__spreadValues({type:"PRACTICAL",name:"\u5B9E\u8BAD\u9898"},a),__spreadValues({type:"COMBINATION",name:"\u7EC4\u5408\u9898"},d)];let b=[];(_=t==null?void 0:t.question_type_position)==null||_.map((O,S)=>{f==null||f.map((C,A)=>{O.type===C.type&&b.push(C)})});const h=[];let E=0,P=0;const I=b.filter(O=>O.questions_count>0).map((O,S)=>{var C;return(C=O.questions)==null||C.forEach(A=>{h.push(A.id),E=E+A.score,P=P+1}),__spreadValues(__spreadValues({},O),{number:e[S+1]})});return{all_questions_count:P,all_score:E,questionList:I,ids:h,exam:t}},isWechatBrowser=()=>navigator.userAgent.toLowerCase().match(/MicroMessenger/i)=="micromessenger",toWechatLogin=()=>{isWechatBrowser()?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx0955caba88bc37eb&redirect_uri=https%3A%2F%2Fwww.educoder.net%2fotherloginstart&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":window.location.href="/wxlogin.html"},isMobileDevice=()=>typeof window.orientation!="undefined"||navigator.userAgent.indexOf("Mobi")!==-1,sendAppStatus=(o,_)=>{var e;try{_?(o.send(JSON.stringify({type:"toggleLockExit",data:!0})),_!=null&&_.forbid_screen&&o.send(JSON.stringify({type:"open-disabled-switchscreen"})),_!=null&&_.use_white_list&&o.send(JSON.stringify({type:"open-only-allow-runapp",data:_==null?void 0:_.white_list})),_!=null&&_.net_limit&&o.send(JSON.stringify({type:"network-close",data:(e=_==null?void 0:_.net_limit_list)==null?void 0:e.split(` `)}))):(o.send(JSON.stringify({type:"toggleLockExit",data:!1})),o.send(JSON.stringify({type:"close-disabled-switchscreen"})),o.send(JSON.stringify({type:"close-only-allow-runapp"})),o.send(JSON.stringify({type:"network-open"})))}catch(t){}},addJumping=()=>{const o=document.querySelector('a[title="\u589E\u52A0\u586B\u7A7A"]'),_=o==null?void 0:o.querySelector("span");_&&(_.classList.remove("jumping-icon"),_.offsetWidth,_.classList.add("jumping-icon"),setTimeout(()=>{var e;(e=_==null?void 0:_.classList)==null||e.remove("jumping-icon")},2e3))},showClassroomsmodal=o=>o!=null&&o.forbid_student_visit?(antd__WEBPACK_IMPORTED_MODULE_13__.default.warning({title:"\u63D0\u793A",icon:null,centered:!0,okText:"\u6211\u77E5\u9053\u4E86",content:react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{fontWeight:600}},o==null?void 0:o.username,"\u8001\u5E08 "),"\u5DF2\u5173\u95ED\u8BE5\u8BFE\u5802\uFF0C\u5B66\u751F\u7528\u6237\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE ")}),!0):!1,getExamRestrictionInfo=o=>{const _=[];return o.is_locked&&_.push("\u8003\u8BD5\u89E3\u9501\u7801"),o.login_restrict&&_.push("\u8003\u8BD5\u767B\u5F55\u9650\u5236"),o.screen_open&&_.push("\u5207\u5C4F\u540E\u5F3A\u5236\u4EA4\u5377"),o.ip_bind&&_.push("IP\u5730\u5740\u7ED1\u5B9A"),(o.ip_limit==="pub"||o.ip_limit==="inner")&&_.push("\u9650\u5236\u8003\u8BD5\u8BBF\u95EEIP"),o.open_camera&&_.push("\u8003\u8BD5\u4E2D\u542F\u7528\u62CD\u7167\u529F\u80FD\u8FDB\u884C\u76D1\u8003\u548C\u884C\u4E3A\u5206\u6790"),o.identity_verify&&_.push("\u8003\u8BD5\u524D\u4EBA\u8138\u8EAB\u4EFD\u6838\u9A8C"),o.open_phone_video_recording&&_.push("\u8003\u8BD5\u4E2D\u5F00\u542F\u624B\u673A\u89C6\u9891\u5F55\u5236"),_.length>0?_.join("\u3001"):""}},28565:function(o,_,e){"use strict";e.d(_,{t:function(){return t}});const t=n=>{var i=/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/;return i.test(n)},r=n=>{var i=/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.$/;return i.test(n)}},73956:function(o,_,e){"use strict";e.d(_,{Il:function(){return s},Ov:function(){return c},T$:function(){return a}});var t=e(38127),r=e(59301),n=e(35338),i=["element"],s=r.createContext({});function c(){return r.useContext(s)}function u(){var b=(0,n.TH)(),h=c(),E=h.clientRoutes,P=(0,n.fp)(E,b.pathname);return P||[]}function a(){var b,h=u().slice(-1),E=((b=h[0])===null||b===void 0?void 0:b.route)||{},P=E.element,I=(0,t.Z)(E,i);return I}function d(){var b=u(),h=c(),E=h.serverLoaderData,P=h.basename,I=React.useState(function(){var A={},D=!1;return b.forEach(function(T){var L=E[T.route.id];L&&(Object.assign(A,L),D=!0)}),D?A:void 0}),O=_slicedToArray(I,2),S=O[0],C=O[1];return React.useEffect(function(){window.__UMI_LOADER_DATA__||Promise.all(b.filter(function(A){return A.route.hasServerLoader}).map(function(A){return new Promise(function(D){fetchServerLoader({id:A.route.id,basename:P,cb:D})})})).then(function(A){if(A.length){var D={};A.forEach(function(T){Object.assign(D,T)}),C(D)}})},[]),{data:S}}function g(){var b=useRouteData(),h=c();return{data:h.clientLoaderData[b.route.id]}}function f(){var b=d(),h=g();return{data:_objectSpread(_objectSpread({},b.data),h.data)}}},91392:function(o){var _={en_GB:"en-gb",en_US:"en",zh_CN:"zh-cn",zh_TW:"zh-tw"},e=function(r){var n=_[r];return n||r.split("_")[0]};o.exports=function(t,r,n){var i=r.prototype.locale;r.prototype.locale=function(s){return typeof s=="string"&&(s=e(s)),i.call(this,s)}}},92806:function(o,_,e){"use strict";var t=e(34121),r=e(59301),n=e(3113),i=e(67797);function s(u){return!!(u&&u.then)}const c=u=>{const{type:a,children:d,prefixCls:g,buttonProps:f,close:b,autoFocus:h,emitEvent:E,isSilent:P,quitOnNullishReturnValue:I,actionFn:O}=u,S=r.useRef(!1),C=r.useRef(null),[A,D]=(0,t.Z)(!1),T=function(){b==null||b.apply(void 0,arguments)};r.useEffect(()=>{let R=null;return h&&(R=setTimeout(()=>{var Z;(Z=C.current)===null||Z===void 0||Z.focus()})),()=>{R&&clearTimeout(R)}},[]);const L=R=>{s(R)&&(D(!0),R.then(function(){D(!1,!0),T.apply(void 0,arguments),S.current=!1},Z=>{if(D(!1,!0),S.current=!1,!(P!=null&&P()))return Promise.reject(Z)}))},M=R=>{if(S.current)return;if(S.current=!0,!O){T();return}let Z;if(E){if(Z=O(R),I&&!s(Z)){S.current=!1,T(R);return}}else if(O.length)Z=O(b),S.current=!1;else if(Z=O(),!Z){T();return}L(Z)};return r.createElement(n.ZP,Object.assign({},(0,i.n)(a),{onClick:M,loading:A,prefixCls:g},f,{ref:C}),d)};_.Z=c},53487:function(o,_,e){"use strict";e.d(_,{Z:function(){return c},i:function(){return s}});var t=e(30489),r=e(59301),n=e(92736),i=e(36355);function s(u){return function(d){return r.createElement(n.ZP,{theme:{token:{motion:!1,zIndexPopupBase:0}}},r.createElement(u,Object.assign({},d)))}}function c(u,a,d,g){function f(b){const{prefixCls:h,style:E}=b,P=r.useRef(null),[I,O]=r.useState(0),[S,C]=r.useState(0),[A,D]=(0,t.Z)(!1,{value:b.open}),{getPrefixCls:T}=r.useContext(i.E_),L=T(a||"select",h);r.useEffect(()=>{if(D(!0),typeof ResizeObserver!="undefined"){const R=new ResizeObserver(N=>{const G=N[0].target;O(G.offsetHeight+8),C(G.offsetWidth)}),Z=setInterval(()=>{var N;const G=d?`.${d(L)}`:`.${L}-dropdown`,$=(N=P.current)===null||N===void 0?void 0:N.querySelector(G);$&&(clearInterval(Z),R.observe($))},10);return()=>{clearInterval(Z),R.disconnect()}}},[]);let M=Object.assign(Object.assign({},b),{style:Object.assign(Object.assign({},E),{margin:0}),open:A,visible:A,getPopupContainer:()=>P.current});return g&&(M=g(M)),r.createElement("div",{ref:P,style:{paddingBottom:I,position:"relative",minWidth:S}},r.createElement(u,Object.assign({},M)))}return s(f)}},47729:function(o,_,e){"use strict";e.d(_,{Z:function(){return i}});var t=e(72119),r=e(59301);function n(s,c,u){return typeof s=="boolean"?s:c===void 0?!!u:c!==!1&&c!==null}function i(s,c,u){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:r.createElement(t.Z,null),d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!n(s,c,d))return[!1,null];const f=typeof c=="boolean"||c===void 0||c===null?a:c;return[!0,u?u(f):f]}},62892:function(o,_,e){"use strict";e.d(_,{m:function(){return u}});const t=()=>({height:0,opacity:0}),r=a=>{const{scrollHeight:d}=a;return{height:d,opacity:1}},n=a=>({height:a?a.offsetHeight:0}),i=(a,d)=>(d==null?void 0:d.deadline)===!0||d.propertyName==="height",s=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:t,onEnterStart:t,onAppearActive:r,onEnterActive:r,onLeaveStart:n,onLeaveActive:t,onAppearEnd:i,onEnterEnd:i,onLeaveEnd:i,motionDeadline:500}},c=null,u=(a,d,g)=>g!==void 0?g:`${a}-${d}`;_.Z=s},92343:function(o,_,e){"use strict";var t;e.d(_,{M2:function(){return i},Tm:function(){return c},l$:function(){return n},wm:function(){return s}});var r=e(59301);const{isValidElement:n}=t||(t=e.t(r,2));function i(u){return u&&n(u)&&u.type===r.Fragment}function s(u,a,d){return n(u)?r.cloneElement(u,typeof d=="function"?d(u.props||{}):d):a}function c(u,a){return s(u,u,a)}},69507:function(o,_,e){"use strict";e.d(_,{ZP:function(){return c},c4:function(){return n},m9:function(){return u}});var t=e(59301),r=e(88088);const n=["xxl","xl","lg","md","sm","xs"],i=a=>({xs:`(max-width: ${a.screenXSMax}px)`,sm:`(min-width: ${a.screenSM}px)`,md:`(min-width: ${a.screenMD}px)`,lg:`(min-width: ${a.screenLG}px)`,xl:`(min-width: ${a.screenXL}px)`,xxl:`(min-width: ${a.screenXXL}px)`}),s=a=>{const d=a,g=[].concat(n).reverse();return g.forEach((f,b)=>{const h=f.toUpperCase(),E=`screen${h}Min`,P=`screen${h}`;if(!(d[E]<=d[P]))throw new Error(`${E}<=${P} fails : !(${d[E]}<=${d[P]})`);if(b{const g=new Map;let f=-1,b={};return{matchHandlers:{},dispatch(h){return b=h,g.forEach(E=>E(b)),g.size>=1},subscribe(h){return g.size||this.register(),f+=1,g.set(f,h),h(b),f},unsubscribe(h){g.delete(h),g.size||this.unregister()},unregister(){Object.keys(d).forEach(h=>{const E=d[h],P=this.matchHandlers[E];P==null||P.mql.removeListener(P==null?void 0:P.listener)}),g.clear()},register(){Object.keys(d).forEach(h=>{const E=d[h],P=O=>{let{matches:S}=O;this.dispatch(Object.assign(Object.assign({},b),{[h]:S}))},I=window.matchMedia(E);I.addListener(P),this.matchHandlers[E]={mql:I,listener:P},P(I)})},responsiveMap:d}},[a])}const u=(a,d)=>{if(d&&typeof d=="object")for(let g=0;g{const{componentCls:G,colorPrimary:$}=N;return{[G]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${$})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${N.motionEaseOutCirc}`,`opacity 2s ${N.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${N.motionEaseInOut}`,`opacity 0.35s ${N.motionEaseInOut}`].join(",")}}}}};var g=(0,a.Z)("Wave",N=>[d(N)]),f=e(21947),b=e(44778),h=e(6487),E=e(17211);function P(N){const G=(N||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return G&&G[1]&&G[2]&&G[3]?!(G[1]===G[2]&&G[2]===G[3]):!0}function I(N){return N&&N!=="#fff"&&N!=="#ffffff"&&N!=="rgb(255, 255, 255)"&&N!=="rgba(255, 255, 255, 1)"&&P(N)&&!/rgba\((?:\d*, ){3}0\)/.test(N)&&N!=="transparent"}function O(N){const{borderTopColor:G,borderColor:$,backgroundColor:V}=getComputedStyle(N);return I(G)?G:I($)?$:I(V)?V:null}var S=e(4572);function C(N){return Number.isNaN(N)?0:N}const A=N=>{const{className:G,target:$,component:V}=N,H=s.useRef(null),[X,Y]=s.useState(null),[U,q]=s.useState([]),[j,B]=s.useState(0),[K,ee]=s.useState(0),[se,ce]=s.useState(0),[pe,fe]=s.useState(0),[Ke,Ue]=s.useState(!1),Ve={left:j,top:K,width:se,height:pe,borderRadius:U.map(wt=>`${wt}px`).join(" ")};X&&(Ve["--wave-color"]=X);function _t(){const wt=getComputedStyle($);Y(O($));const Re=wt.position==="static",{borderLeftWidth:Ye,borderTopWidth:ot}=wt;B(Re?$.offsetLeft:C(-parseFloat(Ye))),ee(Re?$.offsetTop:C(-parseFloat(ot))),ce($.offsetWidth),fe($.offsetHeight);const{borderTopLeftRadius:It,borderTopRightRadius:Wt,borderBottomLeftRadius:Pt,borderBottomRightRadius:Be}=wt;q([It,Wt,Be,Pt].map(be=>C(parseFloat(be))))}if(s.useEffect(()=>{if($){const wt=(0,b.Z)(()=>{_t(),Ue(!0)});let Re;return typeof ResizeObserver!="undefined"&&(Re=new ResizeObserver(_t),Re.observe($)),()=>{b.Z.cancel(wt),Re==null||Re.disconnect()}}},[]),!Ke)return null;const et=(V==="Checkbox"||V==="Radio")&&($==null?void 0:$.classList.contains(S.A));return s.createElement(h.default,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(wt,Re)=>{var Ye;if(Re.deadline||Re.propertyName==="opacity"){const ot=(Ye=H.current)===null||Ye===void 0?void 0:Ye.parentElement;(0,E.v)(ot).then(()=>{ot==null||ot.remove()})}return!1}},wt=>{let{className:Re}=wt;return s.createElement("div",{ref:H,className:r()(G,{"wave-quick":et},Re),style:Ve})})};var T=(N,G)=>{var $;const{component:V}=G;if(V==="Checkbox"&&!(!(($=N.querySelector("input"))===null||$===void 0)&&$.checked))return;const H=document.createElement("div");H.style.position="absolute",H.style.left="0px",H.style.top="0px",N==null||N.insertBefore(H,N==null?void 0:N.firstChild),(0,E.s)(s.createElement(A,Object.assign({},G,{target:N})),H)},L=e(88088);function M(N,G,$){const{wave:V}=s.useContext(c.E_),[,H,X]=(0,L.Z)(),Y=(0,f.useEvent)(j=>{const B=N.current;if(V!=null&&V.disabled||!B)return;const K=B.querySelector(`.${S.A}`)||B,{showEffect:ee}=V||{};(ee||T)(K,{className:G,token:H,component:$,event:j,hashId:X})}),U=s.useRef();return j=>{b.Z.cancel(U.current),U.current=(0,b.Z)(()=>{Y(j)})}}var Z=N=>{const{children:G,disabled:$,component:V}=N,{getPrefixCls:H}=(0,s.useContext)(c.E_),X=(0,s.useRef)(null),Y=H("wave"),[,U]=g(Y),q=M(X,r()(Y,U),V);if(s.useEffect(()=>{const B=X.current;if(!B||B.nodeType!==1||$)return;const K=ee=>{!(0,i.Z)(ee.target)||!B.getAttribute||B.getAttribute("disabled")||B.disabled||B.className.includes("disabled")||B.className.includes("-leave")||q(ee)};return B.addEventListener("click",K,!0),()=>{B.removeEventListener("click",K,!0)}},[$]),!s.isValidElement(G))return G!=null?G:null;const j=(0,n.Yr)(G)?(0,n.sQ)(G.ref,X):X;return(0,u.Tm)(G,{ref:j})}},4572:function(o,_,e){"use strict";e.d(_,{A:function(){return t}});const t="ant-wave-target"},67797:function(o,_,e){"use strict";e.d(_,{n:function(){return vt},Z:function(){return jt}});var t=e(59301),r=e(92310),n=e.n(r),i=e(70748),s=e(91447),c=e(14088),u=e(36355),a=e(1684),d=e(19716),g=e(33234),f=e(88088),b=function(we,pt){var dt={};for(var Ct in we)Object.prototype.hasOwnProperty.call(we,Ct)&&pt.indexOf(Ct)<0&&(dt[Ct]=we[Ct]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,Ct=Object.getOwnPropertySymbols(we);Mt{const{getPrefixCls:pt,direction:dt}=t.useContext(u.E_),{prefixCls:Ct,size:Mt,className:Ne}=we,Qe=b(we,["prefixCls","size","className"]),Vt=pt("btn-group",Ct),[,,er]=(0,f.Z)();let Se="";switch(Mt){case"large":Se="lg";break;case"small":Se="sm";break;case"middle":case void 0:break;default:}const lr=n()(Vt,{[`${Vt}-${Se}`]:Se,[`${Vt}-rtl`]:dt==="rtl"},Ne,er);return t.createElement(h.Provider,{value:Mt},t.createElement("div",Object.assign({},Qe,{className:lr})))},I=e(92343);const O=/^[\u4e00-\u9fa5]{2}$/,S=O.test.bind(O);function C(we){return typeof we=="string"}function A(we){return we==="text"||we==="link"}function D(we,pt){if(we==null)return;const dt=pt?" ":"";return typeof we!="string"&&typeof we!="number"&&C(we.type)&&S(we.props.children)?(0,I.Tm)(we,{children:we.props.children.split("").join(dt)}):C(we)?S(we)?t.createElement("span",null,we.split("").join(dt)):t.createElement("span",null,we):(0,I.M2)(we)?t.createElement("span",null,we):we}function T(we,pt){let dt=!1;const Ct=[];return t.Children.forEach(we,Mt=>{const Ne=typeof Mt,Qe=Ne==="string"||Ne==="number";if(dt&&Qe){const Vt=Ct.length-1,er=Ct[Vt];Ct[Vt]=`${er}${Mt}`}else Ct.push(Mt);dt=Qe}),t.Children.map(Ct,Mt=>D(Mt,pt))}const L=null,M=null,R=null;var N=(0,t.forwardRef)((we,pt)=>{const{className:dt,style:Ct,children:Mt,prefixCls:Ne}=we,Qe=n()(`${Ne}-icon`,dt);return t.createElement("span",{ref:pt,className:Qe,style:Ct},Mt)}),G=e(50023),$=e(6487);const V=(0,t.forwardRef)((we,pt)=>{let{prefixCls:dt,className:Ct,style:Mt,iconClassName:Ne}=we;const Qe=n()(`${dt}-loading-icon`,Ct);return t.createElement(N,{prefixCls:dt,className:Qe,style:Mt,ref:pt},t.createElement(G.Z,{className:Ne}))}),H=()=>({width:0,opacity:0,transform:"scale(0)"}),X=we=>({width:we.scrollWidth,opacity:1,transform:"scale(1)"});var U=we=>{const{prefixCls:pt,loading:dt,existIcon:Ct,className:Mt,style:Ne}=we,Qe=!!dt;return Ct?t.createElement(V,{prefixCls:pt,className:Mt,style:Ne}):t.createElement($.default,{visible:Qe,motionName:`${pt}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:H,onAppearActive:X,onEnterStart:H,onEnterActive:X,onLeaveStart:X,onLeaveActive:H},(Vt,er)=>{let{className:Se,style:lr}=Vt;return t.createElement(V,{prefixCls:pt,className:Mt,style:Object.assign(Object.assign({},Ne),lr),ref:er,iconClassName:Se})})},q=e(17313),j=e(37613),B=e(83116);const K=(we,pt)=>({[`> span, > ${we}`]:{"&:not(:last-child)":{[`&, & > ${we}`]:{"&:not(:disabled)":{borderInlineEndColor:pt}}},"&:not(:first-child)":{[`&, & > ${we}`]:{"&:not(:disabled)":{borderInlineStartColor:pt}}}}});var se=we=>{const{componentCls:pt,fontSize:dt,lineWidth:Ct,groupBorderColor:Mt,colorErrorHover:Ne}=we;return{[`${pt}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${pt}`]:{"&:not(:last-child)":{[`&, & > ${pt}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-Ct,[`&, & > ${pt}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[pt]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${pt}-icon-only`]:{fontSize:dt}},K(`${pt}-primary`,Mt),K(`${pt}-danger`,Ne)]}};const ce=we=>{const{componentCls:pt,iconCls:dt,fontWeight:Ct}=we;return{[pt]:{outline:"none",position:"relative",display:"inline-block",fontWeight:Ct,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${we.lineWidth}px ${we.lineType} transparent`,cursor:"pointer",transition:`all ${we.motionDurationMid} ${we.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:we.lineHeight,color:we.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${pt}-icon`]:{lineHeight:0},[`> ${dt} + span, > span + ${dt}`]:{marginInlineStart:we.marginXS},[`&:not(${pt}-icon-only) > ${pt}-icon`]:{[`&${pt}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:we.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,q.Qy)(we)),[`&-icon-only${pt}-compact-item`]:{flex:"none"},[`&-compact-item${pt}-primary`]:{[`&:not([disabled]) + ${pt}-compact-item${pt}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-we.lineWidth,insetInlineStart:-we.lineWidth,display:"inline-block",width:we.lineWidth,height:`calc(100% + ${we.lineWidth*2}px)`,backgroundColor:we.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${pt}-primary`]:{[`&:not([disabled]) + ${pt}-compact-vertical-item${pt}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-we.lineWidth,insetInlineStart:-we.lineWidth,display:"inline-block",width:`calc(100% + ${we.lineWidth*2}px)`,height:we.lineWidth,backgroundColor:we.colorPrimaryHover,content:'""'}}}}}}},pe=(we,pt,dt)=>({[`&:not(:disabled):not(${we}-disabled)`]:{"&:hover":pt,"&:active":dt}}),fe=we=>({minWidth:we.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Ke=we=>({borderRadius:we.controlHeight,paddingInlineStart:we.controlHeight/2,paddingInlineEnd:we.controlHeight/2}),Ue=we=>({cursor:"not-allowed",borderColor:we.borderColorDisabled,color:we.colorTextDisabled,backgroundColor:we.colorBgContainerDisabled,boxShadow:"none"}),Ve=(we,pt,dt,Ct,Mt,Ne,Qe,Vt)=>({[`&${we}-background-ghost`]:Object.assign(Object.assign({color:dt||void 0,backgroundColor:pt,borderColor:Ct||void 0,boxShadow:"none"},pe(we,Object.assign({backgroundColor:pt},Qe),Object.assign({backgroundColor:pt},Vt))),{"&:disabled":{cursor:"not-allowed",color:Mt||void 0,borderColor:Ne||void 0}})}),_t=we=>({[`&:disabled, &${we.componentCls}-disabled`]:Object.assign({},Ue(we))}),et=we=>Object.assign({},_t(we)),wt=we=>({[`&:disabled, &${we.componentCls}-disabled`]:{cursor:"not-allowed",color:we.colorTextDisabled}}),Re=we=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},et(we)),{backgroundColor:we.defaultBg,borderColor:we.defaultBorderColor,color:we.defaultColor,boxShadow:we.defaultShadow}),pe(we.componentCls,{color:we.colorPrimaryHover,borderColor:we.colorPrimaryHover},{color:we.colorPrimaryActive,borderColor:we.colorPrimaryActive})),Ve(we.componentCls,we.ghostBg,we.defaultGhostColor,we.defaultGhostBorderColor,we.colorTextDisabled,we.colorBorder)),{[`&${we.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:we.colorError,borderColor:we.colorError},pe(we.componentCls,{color:we.colorErrorHover,borderColor:we.colorErrorBorderHover},{color:we.colorErrorActive,borderColor:we.colorErrorActive})),Ve(we.componentCls,we.ghostBg,we.colorError,we.colorError,we.colorTextDisabled,we.colorBorder)),_t(we))}),Ye=we=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},et(we)),{color:we.primaryColor,backgroundColor:we.colorPrimary,boxShadow:we.primaryShadow}),pe(we.componentCls,{color:we.colorTextLightSolid,backgroundColor:we.colorPrimaryHover},{color:we.colorTextLightSolid,backgroundColor:we.colorPrimaryActive})),Ve(we.componentCls,we.ghostBg,we.colorPrimary,we.colorPrimary,we.colorTextDisabled,we.colorBorder,{color:we.colorPrimaryHover,borderColor:we.colorPrimaryHover},{color:we.colorPrimaryActive,borderColor:we.colorPrimaryActive})),{[`&${we.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:we.colorError,boxShadow:we.dangerShadow,color:we.dangerColor},pe(we.componentCls,{backgroundColor:we.colorErrorHover},{backgroundColor:we.colorErrorActive})),Ve(we.componentCls,we.ghostBg,we.colorError,we.colorError,we.colorTextDisabled,we.colorBorder,{color:we.colorErrorHover,borderColor:we.colorErrorHover},{color:we.colorErrorActive,borderColor:we.colorErrorActive})),_t(we))}),ot=we=>Object.assign(Object.assign({},Re(we)),{borderStyle:"dashed"}),It=we=>Object.assign(Object.assign(Object.assign({color:we.colorLink},pe(we.componentCls,{color:we.colorLinkHover,backgroundColor:we.linkHoverBg},{color:we.colorLinkActive})),wt(we)),{[`&${we.componentCls}-dangerous`]:Object.assign(Object.assign({color:we.colorError},pe(we.componentCls,{color:we.colorErrorHover},{color:we.colorErrorActive})),wt(we))}),Wt=we=>Object.assign(Object.assign(Object.assign({},pe(we.componentCls,{color:we.colorText,backgroundColor:we.textHoverBg},{color:we.colorText,backgroundColor:we.colorBgTextActive})),wt(we)),{[`&${we.componentCls}-dangerous`]:Object.assign(Object.assign({color:we.colorError},wt(we)),pe(we.componentCls,{color:we.colorErrorHover,backgroundColor:we.colorErrorBg},{color:we.colorErrorHover,backgroundColor:we.colorErrorBg}))}),Pt=we=>{const{componentCls:pt}=we;return{[`${pt}-default`]:Re(we),[`${pt}-primary`]:Ye(we),[`${pt}-dashed`]:ot(we),[`${pt}-link`]:It(we),[`${pt}-text`]:Wt(we),[`${pt}-ghost`]:Ve(we.componentCls,we.ghostBg,we.colorBgContainer,we.colorBgContainer,we.colorTextDisabled,we.colorBorder)}},Be=function(we){let pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:dt,controlHeight:Ct,fontSize:Mt,lineHeight:Ne,lineWidth:Qe,borderRadius:Vt,buttonPaddingHorizontal:er,iconCls:Se}=we,lr=Math.max(0,(Ct-Mt*Ne)/2-Qe),_r=`${dt}-icon-only`;return[{[`${dt}${pt}`]:{fontSize:Mt,height:Ct,padding:`${lr}px ${er}px`,borderRadius:Vt,[`&${_r}`]:{width:Ct,paddingInlineStart:0,paddingInlineEnd:0,[`&${dt}-round`]:{width:"auto"},[Se]:{fontSize:we.buttonIconOnlyFontSize}},[`&${dt}-loading`]:{opacity:we.opacityLoading,cursor:"default"},[`${dt}-loading-icon`]:{transition:`width ${we.motionDurationSlow} ${we.motionEaseInOut}, opacity ${we.motionDurationSlow} ${we.motionEaseInOut}`}}},{[`${dt}${dt}-circle${pt}`]:fe(we)},{[`${dt}${dt}-round${pt}`]:Ke(we)}]},be=we=>Be((0,j.TS)(we,{fontSize:we.contentFontSize})),Ae=we=>{const pt=(0,j.TS)(we,{controlHeight:we.controlHeightSM,fontSize:we.contentFontSizeSM,padding:we.paddingXS,buttonPaddingHorizontal:we.paddingInlineSM,borderRadius:we.borderRadiusSM,buttonIconOnlyFontSize:we.onlyIconSizeSM});return Be(pt,`${we.componentCls}-sm`)},me=we=>{const pt=(0,j.TS)(we,{controlHeight:we.controlHeightLG,fontSize:we.contentFontSizeLG,buttonPaddingHorizontal:we.paddingInlineLG,borderRadius:we.borderRadiusLG,buttonIconOnlyFontSize:we.onlyIconSizeLG});return Be(pt,`${we.componentCls}-lg`)},Ee=we=>{const{componentCls:pt}=we;return{[pt]:{[`&${pt}-block`]:{width:"100%"}}}},Te=we=>{const{paddingInline:pt,onlyIconSize:dt}=we;return(0,j.TS)(we,{buttonPaddingHorizontal:pt,buttonIconOnlyFontSize:dt})},Je=we=>({fontWeight:400,defaultShadow:`0 ${we.controlOutlineWidth}px 0 ${we.controlTmpOutline}`,primaryShadow:`0 ${we.controlOutlineWidth}px 0 ${we.controlOutline}`,dangerShadow:`0 ${we.controlOutlineWidth}px 0 ${we.colorErrorOutline}`,primaryColor:we.colorTextLightSolid,dangerColor:we.colorTextLightSolid,borderColorDisabled:we.colorBorder,defaultGhostColor:we.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:we.colorBgContainer,paddingInline:we.paddingContentHorizontal-we.lineWidth,paddingInlineLG:we.paddingContentHorizontal-we.lineWidth,paddingInlineSM:8-we.lineWidth,onlyIconSize:we.fontSizeLG,onlyIconSizeSM:we.fontSizeLG-2,onlyIconSizeLG:we.fontSizeLG+2,groupBorderColor:we.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:we.colorBgTextHover,defaultColor:we.colorText,defaultBg:we.colorBgContainer,defaultBorderColor:we.colorBorder,defaultBorderColorDisabled:we.colorBorder,contentFontSize:we.fontSize,contentFontSizeSM:we.fontSize,contentFontSizeLG:we.fontSizeLG});var st=(0,B.Z)("Button",we=>{const pt=Te(we);return[ce(pt),Ae(pt),be(pt),me(pt),Ee(pt),Pt(pt),se(pt)]},Je),at=e(74207);function Ht(we,pt){return{[`&-item:not(${pt}-last-item)`]:{marginBottom:-we.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Zt(we,pt){return{[`&-item:not(${pt}-first-item):not(${pt}-last-item)`]:{borderRadius:0},[`&-item${pt}-first-item:not(${pt}-last-item)`]:{[`&, &${we}-sm, &${we}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${pt}-last-item:not(${pt}-first-item)`]:{[`&, &${we}-sm, &${we}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function ve(we){const pt=`${we.componentCls}-compact-vertical`;return{[pt]:Object.assign(Object.assign({},Ht(we,pt)),Zt(we.componentCls,pt))}}var Ie=(0,B.b)(["Button","compact"],we=>{const pt=Te(we);return[(0,at.c)(pt),ve(pt)]},Je),yt=function(we,pt){var dt={};for(var Ct in we)Object.prototype.hasOwnProperty.call(we,Ct)&&pt.indexOf(Ct)<0&&(dt[Ct]=we[Ct]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,Ct=Object.getOwnPropertySymbols(we);Mt{var dt,Ct;const{loading:Mt=!1,prefixCls:Ne,type:Qe="default",danger:Vt,shape:er="default",size:Se,styles:lr,disabled:_r,className:Mr,rootClassName:hr,children:mr,icon:qr,ghost:rr=!1,block:Ut=!1,htmlType:ar="button",classNames:xr,style:Ir={}}=we,ur=yt(we,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:Xr,autoInsertSpaceInButton:Qr,direction:un,button:bt}=(0,t.useContext)(u.E_),qe=Xr("btn",Ne),[Ze,$e]=st(qe),ae=(0,t.useContext)(a.Z),Tt=_r!=null?_r:ae,Ot=(0,t.useContext)(h),dr=(0,t.useMemo)(()=>ft(Mt),[Mt]),[fr,Yr]=(0,t.useState)(dr.loading),[pn,or]=(0,t.useState)(!1),Jr=(0,t.createRef)(),tn=(0,s.sQ)(pt,Jr),gn=t.Children.count(mr)===1&&!qr&&!A(Qe);(0,t.useEffect)(()=>{let $n=null;dr.delay>0?$n=setTimeout(()=>{$n=null,Yr(!0)},dr.delay):Yr(dr.loading);function On(){$n&&(clearTimeout($n),$n=null)}return On},[dr]),(0,t.useEffect)(()=>{if(!tn||!tn.current||Qr===!1)return;const $n=tn.current.textContent;gn&&S($n)?pn||or(!0):pn&&or(!1)},[tn]);const ga=$n=>{const{onClick:On}=we;if(fr||Tt){$n.preventDefault();return}On==null||On($n)},Un=Qr!==!1,{compactSize:aa,compactItemClassnames:Ea}=(0,g.ri)(qe,un),je={large:"lg",small:"sm",middle:void 0},En=(0,d.Z)($n=>{var On,ln;return(ln=(On=Se!=null?Se:aa)!==null&&On!==void 0?On:Ot)!==null&&ln!==void 0?ln:$n}),Kn=En&&je[En]||"",Xa=fr?"loading":qr,wn=(0,i.Z)(ur,["navigate"]),Ba=n()(qe,$e,{[`${qe}-${er}`]:er!=="default"&&er,[`${qe}-${Qe}`]:Qe,[`${qe}-${Kn}`]:Kn,[`${qe}-icon-only`]:!mr&&mr!==0&&!!Xa,[`${qe}-background-ghost`]:rr&&!A(Qe),[`${qe}-loading`]:fr,[`${qe}-two-chinese-chars`]:pn&&Un&&!fr,[`${qe}-block`]:Ut,[`${qe}-dangerous`]:!!Vt,[`${qe}-rtl`]:un==="rtl"},Ea,Mr,hr,bt==null?void 0:bt.className),Ga=Object.assign(Object.assign({},bt==null?void 0:bt.style),Ir),Oe=n()(xr==null?void 0:xr.icon,(dt=bt==null?void 0:bt.classNames)===null||dt===void 0?void 0:dt.icon),Vn=Object.assign(Object.assign({},(lr==null?void 0:lr.icon)||{}),((Ct=bt==null?void 0:bt.styles)===null||Ct===void 0?void 0:Ct.icon)||{}),pa=qr&&!fr?t.createElement(N,{prefixCls:qe,className:Oe,style:Vn},qr):t.createElement(U,{existIcon:!!qr,prefixCls:qe,loading:!!fr}),Hn=mr||mr===0?T(mr,gn&&Un):null;if(wn.href!==void 0)return Ze(t.createElement("a",Object.assign({},wn,{className:n()(Ba,{[`${qe}-disabled`]:Tt}),style:Ga,onClick:ga,ref:tn}),pa,Hn));let Da=t.createElement("button",Object.assign({},ur,{type:ar,className:Ba,style:Ga,onClick:ga,disabled:Tt,ref:tn}),pa,Hn,Ea&&t.createElement(Ie,{key:"compact",prefixCls:qe}));return A(Qe)||(Da=t.createElement(c.Z,{component:"Button",disabled:!!fr},Da)),Ze(Da)},rt=(0,t.forwardRef)(Me);rt.Group=P,rt.__ANT_BUTTON=!0;var jt=rt},3113:function(o,_,e){"use strict";var t=e(67797);_.ZP=t.Z},43604:function(o,_,e){"use strict";var t=e(37028);_.Z=t.Z},1684:function(o,_,e){"use strict";e.d(_,{n:function(){return n}});var t=e(59301);const r=t.createContext(!1),n=i=>{let{children:s,disabled:c}=i;const u=t.useContext(r);return t.createElement(r.Provider,{value:c!=null?c:u},s)};_.Z=r},52946:function(o,_,e){"use strict";e.d(_,{q:function(){return n}});var t=e(59301);const r=t.createContext(void 0),n=i=>{let{children:s,size:c}=i;const u=t.useContext(r);return t.createElement(r.Provider,{value:c||u},s)};_.Z=r},36355:function(o,_,e){"use strict";e.d(_,{E_:function(){return i},oR:function(){return r}});var t=e(59301);const r="anticon",n=(c,u)=>u||(c?`ant-${c}`:"ant"),i=t.createContext({getPrefixCls:n,iconPrefixCls:r}),{Consumer:s}=i},19716:function(o,_,e){"use strict";var t=e(59301),r=e(52946);const n=i=>{const s=t.useContext(r.Z);return t.useMemo(()=>i?typeof i=="string"?i!=null?i:s:i instanceof Function?i(s):s:s,[i,s])};_.Z=n},92736:function(o,_,e){"use strict";e.d(_,{ZP:function(){return wt},w6:function(){return Ve}});var t=e(62363),r=e(97635),n=e(75049),i=e(47035),s=e(59301),c=e(28726),u=e(98044),a=e(41887);const d="internalMark";var f=Re=>{const{locale:Ye={},children:ot,_ANT_MARK__:It}=Re;s.useEffect(()=>(0,u.f)(Ye&&Ye.Modal),[Ye]);const Wt=s.useMemo(()=>Object.assign(Object.assign({},Ye),{exist:!0}),[Ye]);return s.createElement(a.Z.Provider,{value:Wt},ot)},b=e(31724),h=e(45246),E=e(34117),P=e(36355),I=e(88453),O=e(64993),S=e(70052),C=e(42278);const A=`-ant-${Date.now()}-${Math.random()}`;function D(Re,Ye){const ot={},It=(Be,be)=>{let Ae=Be.clone();return Ae=(be==null?void 0:be(Ae))||Ae,Ae.toRgbString()},Wt=(Be,be)=>{const Ae=new O.C(Be),me=(0,I.generate)(Ae.toRgbString());ot[`${be}-color`]=It(Ae),ot[`${be}-color-disabled`]=me[1],ot[`${be}-color-hover`]=me[4],ot[`${be}-color-active`]=me[6],ot[`${be}-color-outline`]=Ae.clone().setAlpha(.2).toRgbString(),ot[`${be}-color-deprecated-bg`]=me[0],ot[`${be}-color-deprecated-border`]=me[2]};if(Ye.primaryColor){Wt(Ye.primaryColor,"primary");const Be=new O.C(Ye.primaryColor),be=(0,I.generate)(Be.toRgbString());be.forEach((me,Ee)=>{ot[`primary-${Ee+1}`]=me}),ot["primary-color-deprecated-l-35"]=It(Be,me=>me.lighten(35)),ot["primary-color-deprecated-l-20"]=It(Be,me=>me.lighten(20)),ot["primary-color-deprecated-t-20"]=It(Be,me=>me.tint(20)),ot["primary-color-deprecated-t-50"]=It(Be,me=>me.tint(50)),ot["primary-color-deprecated-f-12"]=It(Be,me=>me.setAlpha(me.getAlpha()*.12));const Ae=new O.C(be[0]);ot["primary-color-active-deprecated-f-30"]=It(Ae,me=>me.setAlpha(me.getAlpha()*.3)),ot["primary-color-active-deprecated-d-02"]=It(Ae,me=>me.darken(2))}return Ye.successColor&&Wt(Ye.successColor,"success"),Ye.warningColor&&Wt(Ye.warningColor,"warning"),Ye.errorColor&&Wt(Ye.errorColor,"error"),Ye.infoColor&&Wt(Ye.infoColor,"info"),` :root { ${Object.keys(ot).map(Be=>`--${Re}-${Be}: ${ot[Be]};`).join(`