From 13da482e3963f59633a14e2e2c57ae0f43aeb627 Mon Sep 17 00:00:00 2001 From: autosubmit Date: Tue, 14 Oct 2025 15:14:41 +0800 Subject: [PATCH] Auto Submit --- index.html | 2 +- umi.14d14c3c.js => umi.16ab513b.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename umi.14d14c3c.js => umi.16ab513b.js (98%) diff --git a/index.html b/index.html index 5a28dca5f8..e0e3d2ced5 100644 --- a/index.html +++ b/index.html @@ -172,7 +172,7 @@ display: block !important; } - + \ No newline at end of file diff --git a/umi.14d14c3c.js b/umi.16ab513b.js similarity index 98% rename from umi.14d14c3c.js rename to umi.16ab513b.js index 4d789d9422..62f9e0b01e 100644 --- a/umi.14d14c3c.js +++ b/umi.16ab513b.js @@ -972,7 +972,7 @@ http://j.mp/37Fkd5Q `).replace(/ +$/g,"\x1B[41m \x1B[0m");return console.debug("str:",_,JSON.stringify(d)),_},StatusTags=d=>{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 d.data&&d.data.map(function(e,r){return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{key:r,className:_[e]&&_[e].class},e)})},formatHomeWorkStatusToName=d=>({[-1]:"\u91CD\u505A\u4E2D",0:"\u672A\u5F00\u542F",1:"\u672A\u901A\u5173",2:"\u6309\u65F6\u901A\u5173"})[d]||"\u8FDF\u4EA4\u901A\u5173",HomeWorkListStatus=d=>{var _,e;const r={[-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:(_=r==null?void 0:r[d.status])==null?void 0:_.class},(e=r==null?void 0:r[d.status])==null?void 0:e.name)},HomeWorkShixunListStatus=d=>{var _,e;const r={[-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:(_=r==null?void 0:r[d.status])==null?void 0:_.class},(e=r==null?void 0:r[d.status])==null?void 0:e.name)},HomeWorkDetailStatus=d=>{var _,e;const r={[-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:(_=r==null?void 0:r[d.status])==null?void 0:_.color,borderRadius:"20px",width:"65px",height:"18px",justifyContent:"center",display:"inline-flex",lineHeight:"18px"}},(e=r==null?void 0:r[d.status])==null?void 0:e.name)},HomeWorkShixunDetailStatus=d=>{var _,e;const r={[-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:(_=r==null?void 0:r[d.status])==null?void 0:_.color,borderRadius:"20px",padding:"0 8px",height:"18px",justifyContent:"center",display:"inline-flex",lineHeight:"18px"}},(e=r==null?void 0:r[d.status])==null?void 0:e.name)},HomeWorkCommonDetailStatus=d=>{var _,e;const r={[-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:(_=r==null?void 0:r[d.status])==null?void 0:_.color,borderRadius:"20px",padding:"0 8px",height:"18px",justifyContent:"center",display:"inline-flex",lineHeight:"18px"}},(e=r==null?void 0:r[d.status])==null?void 0:e.name)},StatusGraduationProjectTags=d=>{const{status:_}=d,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(r){console.log("utils.StatusGraduationProjectTags",d.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=d=>{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"}};d.temporary&&(_=__spreadValues(__spreadValues({},_),e));const r=[];d.is_random&&r.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"tag-style bg-blue ml10"},"\u968F\u673A"));try{d.status&&d.status.map((i,l)=>{r.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:(d==null?void 0:d.style)||[],key:l,className:_[i]&&_[i].class},i))})}catch(i){console.log("utils.status.tag:",i,d.status)}return r},exerciseTips=(d,_)=>{if(d===5||_)return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{backgroundColor:"#f59a23"},className:"tag-style ml5"},"\u96C6\u4E2D\u9605\u5377");if(d===1)return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{backgroundColor:"#B8B8B8"},className:"tag-style ml5"},"\u672A\u5F00\u59CB");if(d===2)return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{backgroundColor:"#007AFF"},className:"tag-style ml5"},"\u8003\u8BD5\u4E2D");if(d===3||d===4)return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{backgroundColor:"#FC2D6B"},className:"tag-style ml5"},"\u5DF2\u622A\u6B62");if(d===-1)return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"export ml5"},"\u5BFC\u5165")},WorkStatus=d=>{var _,e;const r={[-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:(_=r[d.status])==null?void 0:_.class},(e=r[d.status])==null?void 0:e.name)},CommonWorkStatus=d=>{var _,e;const r={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${d!=null&&d.lineBreak?` `:""}\uFF08\u6559\u5E08\u63D0\u4EA4\uFF09`,class:"c-green"},5:{name:`\u672A\u63D0\u4EA4${d!=null&&d.lineBreak?` `:""}\uFF08\u6559\u5E08\u63D0\u4EA4\uFF09`,class:"c-black"},6:{name:"\u6309\u65F6\u63D0\u4EA4\uFF08\u7EBF\u4E0B\uFF09",class:"c-green"}};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:(_=r[d.status])==null?void 0:_.class},(e=r[d.status])==null?void 0:e.name)},timego=d=>{d=new Date(d).getTime();let _=1e3*60,e=_*60,r=e*24,i="",c=new Date().getTime()-d;if(c<0)return console.log("\u65F6\u95F4\u4E0D\u5BF9\u52B2,\u670D\u52A1\u5668\u521B\u5EFA\u65F6\u95F4\u4E0E\u5F53\u524D\u65F6\u95F4\u4E0D\u540C\u6B65"),i="\u521A\u521A";let f=parseInt(c/r,10),u=parseInt(c/e,10),h=parseInt(c/_,10);return f>30?i=""+timeformat(d,"yyyy-MM-dd"):f>1?i=""+f+"\u5929\u524D":f==1?i="\u6628\u5929":u>=1?i=""+u+"\u5C0F\u65F6\u524D":h>=5?i=""+h+"\u5206\u949F\u524D":i="\u521A\u521A",i};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=(d,_)=>{typeof d=="string"&&(d.indexOf("T")>=0&&(d=d.replace("T"," ")),d=new Date(Date.parse(d.replace(/-/g,"/")))),d=new Date(d);let e={"M+":d.getMonth()+1,"d+":d.getDate(),"h+":d.getHours(),"m+":d.getMinutes(),"s+":d.getSeconds(),"q+":Math.floor((d.getMonth()+3)/3),S:d.getMilliseconds()},r=[["\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,(d.getFullYear()+"").substr(4-RegExp.$1.length))),/(w+)/.test(_)&&(_=_.replace(RegExp.$1,r[RegExp.$1.length-1][d.getDay()]));for(let i in e)new RegExp("("+i+")").test(_)&&(_=_.replace(RegExp.$1,RegExp.$1.length==1?e[i]:("00"+e[i]).substr((""+e[i]).length)));return _},toTimeFormat=d=>{if(!d||d<0)return"0\u79D2";console.log("time:",d);let _=60,e=_*60,r=e*24,i=d/r,l=d/e,c=d/_,f=d%60;return i>=1?parseInt(i.toString())+"\u5929"+Math.floor(l%24)+"\u65F6"+Math.floor(c%60)+"\u5206"+Math.floor(d%60)+"\u79D2":l>1?parseInt(l.toString())+"\u65F6"+Math.floor(c%60)+"\u5206"+Math.floor(d%60)+"\u79D2":c>=1?parseInt(c.toString())+"\u5206"+Math.floor(d%60)+"\u79D2":Math.ceil(d)+"\u79D2"},validateLength=(d="",_=100)=>{let e=0;if(d){e=d.length;for(let r=0;r=55296&&i<=56319&&(e--,r++)}}return e<=_};function buildTree(d,_){const e={};let r=null;return d.forEach(i=>{e[i.properties.uuid]=__spreadProps(__spreadValues({},i),{children:[]})}),_.forEach(i=>{const l=e[i.startNodeUuid],c=e[i.endNodeUuid];l&&c&&l.children.push(c)}),d.forEach(i=>{!_.some(c=>c.endNodeUuid===i.properties.uuid)&&(r=e[i.properties.uuid])}),r}const handleValidatorNickName=(d,_,e)=>{if(_){let r=/[`~!@#$%^&*()\-+=<>?:"{}|,.\/;'\\[\]~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘’,。、]/im;const l=/[\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(_),c=r.test(_);(l===!0||c===!0||_.length<2||_.length>=21)&&e("2-20\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57\u53CA\u4E0B\u5212\u7EBF")}e()},handleValidatorName=(d,_,e)=>{if(_){let r=/[`~!@#$%^&()_\-+=<>?:"{}|,.\/;'\\[\]~!@#¥%……&()——\-+={}|《》?:“”【】、;‘’,。、]/im;const l=/[\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(_),c=r.test(_);(l===!0||c===!0||_.length<2||_.length>=21)&&e("2-20\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57")}e()},getHiddenName=d=>{if(!d)return"";let _=d.length-1,e="";for(var r=0;r<_;r++)e+="*";return d.substr(0,1)+e},getBase64=(d,_)=>{const e=new FileReader;e.addEventListener("load",()=>_(e.result)),e.readAsDataURL(d)},getFileContentAndUrl=d=>new Promise((_,e)=>{var r=new FileReader;r.onload=function(){try{const i=window.URL.createObjectURL(d);_({text:this.result,link:i})}catch(i){antd__WEBPACK_IMPORTED_MODULE_14__.ZP.warning("\u5F53\u524D\u6587\u4EF6\u65E0\u6CD5\u8BFB\u53D6\u5185\u5BB9"),e("\u5F53\u524D\u6587\u4EF6\u65E0\u6CD5\u8BFB\u53D6\u5185\u5BB9")}},r.readAsText(d)});function setmiyah(d){return md5__WEBPACK_IMPORTED_MODULE_6___default()("79e33abd4b6588941ab7622aed1e67e8"+d)}const getCookie=d=>{var _,e=RegExp("(^| )"+d+"=([^;]+)(;|$)");return(_=document.cookie.match(e))?decodeURIComponent(_[2]):null};function setCookie(d,_,e){var r=new Date;r.setTime(r.getTime()+e*24*60*60*1e3);var i="expires="+r.toUTCString();document.cookie=d+"="+_+"; "+i+`;domain=${document.domain.indexOf("educoder.net")>-1?".educoder.net":document.domain};path=/;SameSite=None;secure`}const delCookie=d=>{document.cookie=d+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;"},clearAllCookies=()=>{for(var d=document.cookie.split(";"),_=0;_-1?e.substr(0,r):e;document.cookie=i+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT"}};function downLoadLink(d,_){let e=document.createElement("a");document.body.appendChild(e),e.href=_,d&&(e.title=d,e.download=d);let r=document.createEvent("MouseEvents");r.initEvent("click",!1,!1),e.dispatchEvent(r),document.body.removeChild(e)}function getFirstLevelDomain(){var d=window.location.hostname,_=d.split(".").reverse();return _.length>2?[_[1],_[0]].join("."):d}function getBlob(d){return new Promise(_=>{const e=new window.XMLHttpRequest;(d.indexOf(getFirstLevelDomain())>-1||location.hostname==="localhost"&&d.indexOf("/api/")>-1)&&(e.withCredentials=!0),e.open("GET",d,!0),e.responseType="blob",e.onload=()=>{e.status===200&&_(e.response)},e.send()})}function saveAs(d,_){if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveBlob(d,_);else{const e=document.createElement("a"),r=document.querySelector("body");e.href=window.URL.createObjectURL(d),e.download=_,e.style.display="none",r.appendChild(e),e.click(),r.removeChild(e),window.URL.revokeObjectURL(e.href)}}function download(d,_){getBlob(d).then(e=>{saveAs(e,_)})}function downLoadFileIframe(d,_){return new Promise((e,r)=>{var i=_,l=document.createElement("iframe"),c;document.body.appendChild(l),l.src=i,l.style.display="none",l.addEventListener("load",function(){setTimeout(()=>{document.body.removeChild(l)},1e3)},!0),c=setInterval(()=>{getCookie("fileDownload")&&(delCookie("fileDownload"),clearInterval(c),document.body.removeChild(l),e())},1e3)})}function downLoadFile(d,_){downLoadLink(d,_)}const setUrlQuery=d=>{let{url:_,query:e}=d;if(!_)return"";if(e){let r=[];for(const i in e)e.hasOwnProperty(i)&&!isUnOrNull(e[i])&&(typeof e[i]=="object"?e[i].map(l=>{r.push(`${i}[]=${l}`)}):r.push(`${i}=${e[i]}`));_.indexOf("?")!==-1?_=`${_}&${r.join("&")}`:_=`${_}?${r.join("&")}`,console.log("url1111",_)}return _};function isPc(){let d=navigator.userAgent,_=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],e=!0;for(var r=0;r<_.length;r++)if(d.indexOf(_[r])>0){e=!1;break}return e}function isChrome(){let d=navigator.userAgent;return["Chrome"].some(e=>d.indexOf(e)>-1)}function isFirefox(){let d=navigator.userAgent;return["Firefox"].some(e=>d.indexOf(e)>-1)}function isChromeOrFirefox(){let d=navigator.userAgent;return["Chrome","Firefox"].some(e=>d.indexOf(e)>-1)}const formatMoney=(d="")=>{var _;return(_=d==null?void 0:d.toString())==null?void 0:_.replace(/\B(?=(\d{3})+(?!\d))/g,",")},openNewWindow=d=>{let _=document.createElement("a");_.target="_blank",document.body.appendChild(_),_.href=d;let e=document.createEvent("MouseEvents");e.initEvent("click",!1,!1),_.dispatchEvent(e),document.body.removeChild(_)},openNewWindows=d=>{let _=document.createElement("a");document.body.appendChild(_),_.href=d;let e=document.createEvent("MouseEvents");e.initEvent("click",!1,!1),_.dispatchEvent(e),document.body.removeChild(_)},formatTextMiddleIntercept=(d="")=>d.length<=6?d:`${d.substring(0,3)}...${d.substring(d.length-3,d.length)}`,HalfPastOne=()=>{let d=new Date().getHours(),_=new Date().getMinutes();return _>=30?(d++,_="00"):_="30",d+":"+_},DayHalfPastOne=(d="-")=>{let _=new Date().getHours(),e=new Date().getMinutes();return e>=30?(_++,e="00"):e="30",new Date().toLocaleDateString().replace(/\//g,d)+" "+_+":"+e};var Type=(d=>(d.Number="Number",d.String="String",d.Boolean="Boolean",d.Object="Object",d.Array="Array",d.Function="Function",d))(Type||{});const type=d=>{const _=Object.prototype.toString.call(d);return _.substring(8,_.length-1)},isEmpty=d=>type(d)==="Array"?d.length===0:type(d)==="Object"?Object.keys(d).length===0:!d,rangeNumber=(d,_)=>{const e=[];for(let r=d;r<_;r++)e.push(r);return e},middleEllipsis=(d,_=12)=>{let e=_/2-2,r=_/2+3;return d.length>_?d.substr(0,e)+"..."+d.substr(r,_):d},formatRate=d=>d>4.5?5:d>4&&d<=4.5?4.5:d>3.5&&d<=4?4:d>3&&d<=3.5?3.5:d>2.5&&d<=3?3:d>2&&d<=2.5?2.5:d>1.5&&d<=2?2:d>1&&d<=1.5?1.5:d>.5&&d<=1?1:d>0&&d<=.5?.5:0,isUnOrNull=d=>d==null;function getUrlToken(d,_){const e=new RegExp(`(^|&)${d}=([^&]*)(&|$)`,"i"),r=_.substr(1).match(e);return r!=null?decodeURIComponent(r[2]):null}const getMessagesUrl=d=>{var _;if(d.link_url)return window.open(d.link_url);switch(d==null?void 0:d.container_type){case"TeacherChangeUserInfo":return window.open("/account/profile");case"TeacherResetUserPassword":return window.open("/account/secure");case"ApplyUserAuthentication":return window.open("/account/certification")}switch(d.container_type){case"ApplyUserAuthentication":if(d.tiding_type==="Apply"){if(d.auth_type===1)return window.open("/admins/identity_authentications");if(d.auth_type===2)return window.open("/admins/professional_authentications")}return d.tiding_type==="System"?window.open("/account/certification"):d.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 d.tiding_type==="Apply"?window.open("/admins/department_applies"):d.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAddSchools":return d.tiding_type==="Apply"?window.open("/admins/unit_applies"):d.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAction":switch(d.parent_container_type){case"ApplyShixun":if(d.tiding_type==="Apply")return window.open("/admins/shixun_authorizations");if(d.tiding_type==="System")return window.open(`/shixuns/${d.identifier}/challenges`);case"ApplySubject":if(d.tiding_type==="Apply")return window.open("/admins/subject_authorizations");if(d.tiding_type==="System")return window.open(`/paths/${d.parent_container_id}`);case"TrialAuthorization":if(d.tiding_type==="Apply")return window.open("/managements/trial_authorization");if(d.tiding_type==="System")return window.open("/account/profile")}return;case"JoinCourse":return window.open(`/classrooms/${d.belong_container_id}/teachers`);case"StudentJoinCourse":if(d.tiding_type==="Apply")return window.open(`/classrooms/${d.belong_container_id}/teachers`);if(d.tiding_type==="System")return window.open(`/classrooms/${d.belong_container_id}/students`);case"DealCourse":return window.open(`/classrooms/${d.belong_container_id}/shixun_homework/`);case"TeacherJoinCourse":return window.open(`/classrooms/${d.belong_container_id}/shixun_homework/`);case"Course":return d.tiding_type==="Delete"?void 0:window.open(`/classrooms/${d.belong_container_id}/shixun_homework/`);case"ArchiveCourse":return window.open(`/classrooms/${d.belong_container_id}/shixun_homework/`);case"Shixun":return window.open(`/shixuns/${d.identifier}/challenges`);case"Subject":return window.open(`/paths/${d.container_id}`);case"JournalsForMessage":switch(d.parent_container_type){case"Principal":return"";case"HomeworkCommon":return d.homework_type==="normal"?window.open(`/classrooms/${d.belong_container_id}/common_homework/${d.parent_container_id}/question`):d.homework_type==="group"?window.open(`/classrooms/${d.belong_container_id}/group_homework/${d.parent_container_id}/question`):d.homework_type==="practice"?window.open(`/classrooms/${d.belong_container_id}/shixun_homework/${d.parent_container_id}/detail?tabs=1`):"";case"GraduationTopic":return window.open(`/classrooms/${d.belong_container_id}/graduation_topics/${d.parent_container_id}/detail`);case"StudentWorksScore":return window.open(d.link_url)}case"Memo":return window.open(`/forums/${d.parent_container_id}`);case"Message":return window.open("/forums/");case"Watcher":return window.open(`/users/${d.trigger_user.login}/classrooms`);case"PraiseTread":return"";case"Grade":return"";case"JoinProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+d.project_url);case"ReporterJoinProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+d.project_url);case"DealProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+d.project_url);case"ManagerJoinProject":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+d.project_url);case"Poll":switch(d.parent_container_type){case"CommitPoll":return window.open(` /classrooms/${d.belong_container_id}/poll/${d.container_id}/detail`);default:return window.open(` /classrooms/${d.belong_container_id}/poll/${d.container_id}/detail`)}case"Exercise":switch(d.parent_container_type){case"CommitExercise":return window.open(` /classrooms/${d.belong_container_id}/exercise/${d.container_id}/detail?tab=0`);case"ExerciseScore":return window.open(` /classrooms/${d.belong_container_id}/exercise/${d.container_id}/detail?tab=0`);default:return window.open(`/classrooms/${d.belong_container_id}/exercise/${d.container_id}/detail?tab=0`)}case"StudentGraduationTopic":return window.open(`/classrooms/${d.belong_container_id}/graduation_topics/${d.parent_container_id}/detail`);case"DealStudentTopicSelect":return window.open(`/classrooms/${d.belong_container_id}/graduation_topics/${d.parent_container_id}/detail`);case"GraduationTask":return window.open(`/classrooms/${d.belong_container_id}/graduation_tasks/${d.container_id}`);case"GraduationWork":return window.open(`/classrooms/${d.belong_container_id}/graduation_tasks/${d.container_id}`);case"GraduationWorkScore":return window.open(`/classrooms/${d.belong_container_id}/graduation_tasks/${d.parent_container_id}`);case"HomeworkCommon":switch(d.parent_container_type){case"AnonymousCommentFail":if(d.homework_type==="normal")return window.open(`/classrooms/${d.belong_container_id}/common_homework/${d.parent_container_id}/detail`);if(d.homework_type==="group")return window.open(`/classrooms/${d.belong_container_id}/group_homework/${d.parent_container_id}/detail`);if(d.homework_type==="practice")return window.open(`/classrooms/${d.belong_container_id}/shixun_homework/${d.parent_container_id}/detail?tabs=0`);case"HomeworkPublish":if(d.homework_type==="normal")return window.open(`/classrooms/${d.belong_container_id}/common_homework/${d.parent_container_id}/detail`);if(d.homework_type==="group")return window.open(`/classrooms/${d.belong_container_id}/group_homework/${d.parent_container_id}/detail`);if(d.homework_type==="practice")return window.open(`/classrooms/${d.belong_container_id}/shixun_homework/${d.parent_container_id}/detail?tabs=0`);case"AnonymousAppeal":if(d.homework_type==="normal")return window.open(`/classrooms/${d.belong_container_id}/common_homework/${d.parent_container_id}/detail`);if(d.homework_type==="group")return window.open(`/classrooms/${d.belong_container_id}/group_homework/${d.parent_container_id}/detail`);if(d.homework_type==="practice")return window.open(`/classrooms/${d.belong_container_id}/shixun_homework/${d.parent_container_id}/detail?tabs=0`);default:if(d.homework_type==="normal")return window.open(`/classrooms/${d.belong_container_id}/common_homework/${d.parent_container_id}/detail`);if(d.homework_type==="group")return window.open(`/classrooms/${d.belong_container_id}/group_homework/${d.parent_container_id}/detail`);if(d.homework_type==="practice")return window.open(`/classrooms/${d.belong_container_id}/shixun_homework/${d.parent_container_id}/detail?tabs=0`)}case"StudentWork":if(d.homework_type==="normal")return window.open(`/classrooms/${d.belong_container_id}/common_homework/${d.parent_container_id}/review/${d.container_id}`);if(d.homework_type==="group")return window.open(`/classrooms/${d.belong_container_id}/group_homework/${d.parent_container_id}/review/${d.container_id}`);if(d.homework_type==="practice")return window.open(`/classrooms/${d.belong_container_id}/shixun_homework/${d.parent_container_id}/detail`);case"StudentWorksScore":return window.open(`/classrooms/${d.belong_container_id}/common_homework/${d.trigger_user.id}/review/${d.parent_container_id}`);case"StudentWorksScoresAppeal":return window.open(`/classrooms/${d.belong_container_id}/common_homework/${d.trigger_user.id}/review/${d.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/${d.parent_container_id}`);case"Issue":return window.open(`/issues/${d.container_id}`);case"PullRequest":return window.open(_env__WEBPACK_IMPORTED_MODULE_7__.Z.FORGE+d.project_url);case"Department":return window.open("/account/profile");case"Library":if(d.tiding_type==="Apply")return window.open("/admins/library_applies");if(d.tiding_type==="System")return window.open(`/moop_cases/${d.container_id}`);case"ProjectPackage":return d.tiding_type==="Destroyed"||d.tiding_type==="Destroyed_end"?void 0:d.tiding_type==="Apply"?window.open("/admins/project_package_applies"):window.open(`/crowdsourcing/${d.container_id}`);case"Discuss":return d.parent_container_type==="Hack"&&d.extra?window.open(`/myproblems/${d.extra}/comment`):d.extra==="ai_reply"&&d.task_identifier?window.open(`/tasks/${d.task_identifier}?extra=extra`):window.open(`/shixuns/${d.identifier}/shixun_discuss`);case"Video":return d.tiding_type==="Apply"?window.open("/admins/video_applies"):d.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/${d.container_id}/informs`);case"SubjectStartCourse":return window.open(`/paths/${d.container_id}`);case"ResubmitStudentWork":if(d.homework_type==="normal")return window.open(`/classrooms/${d.belong_container_id}/common_homework/${d.parent_container_id}/${d.container_id}/appraise`);if(d.homework_type==="group")return window.open(`/classrooms/${d.belong_container_id}/group_homework/${d.parent_container_id}/${d.container_id}/appraise`);case"AdjustScore":if(d.homework_type==="normal")return window.open(`/classrooms/${d.belong_container_id}/common_homework/${d.parent_container_id}`);if(d.homework_type==="group")return window.open(`/classrooms/${d.belong_container_id}/group_homework/${d.parent_container_id}`);case"LiveLink":return window.open(`/classrooms/${d.belong_container_id}/course_videos?open=live`);case"Hack":if(d.extra&&d.parent_container_type!=="HackDelete")return window.open(`/problems/${d.extra}/edit`);default:return}},checkLocalOrPublicIp=(d,_)=>__async(void 0,null,function*(){let e="",r;return new Promise((i,l)=>__async(void 0,null,function*(){if(d.ip_limit!=="no"||d.ip_bind_type)try{e=yield(0,_components_Exercise_ip__WEBPACK_IMPORTED_MODULE_2__.y)({ip_limit:d==null?void 0:d.ip_limit,ip_bind:d==null?void 0:d.ip_bind_type}),console.log(e,44)}catch(f){l(void 0)}const c=yield(0,_service_exercise__WEBPACK_IMPORTED_MODULE_3__.Cl)({id:d.exerciseId,ip:e});if(c.status===0)i(c);else if(c.status===-5){(0,umi__WEBPACK_IMPORTED_MODULE_5__.getDvaApp)()._store.dispatch({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:{errorMessage:c==null?void 0:c.message,exercise_user_id:d==null?void 0:d.exercise_user_id,id:d.exerciseId,unlockClose:d.unlockClose}}});return}else i(c);if(d.errmsgHide||_)return!0;if(c.status===-1)return r=antd__WEBPACK_IMPORTED_MODULE_15__.default.info({title:react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_16__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_17__.Z,{flex:"1"},"\u63D0\u793A"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_17__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:()=>r.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(c.status===-2)return r=antd__WEBPACK_IMPORTED_MODULE_15__.default.info({title:react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_16__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_17__.Z,{flex:"1"},"\u63D0\u793A"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(antd__WEBPACK_IMPORTED_MODULE_17__.Z,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:()=>r.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"},c.ip),"\u8BF7\u4F7F\u7528\u8BE5IP\u5730\u5740\u8FDB\u5165\u8003\u8BD5\u3002"),okText:"\u6211\u77E5\u9053\u4E86"}),!1}))});function isInsecureOrLocalhost(d){try{const _=new URL(d),e=_.hostname==="localhost"||_.hostname==="127.0.0.1";return!(_.protocol==="https:")&&!e}catch(_){return!0}}const checkDisabledExam=d=>new Promise((_,e)=>__async(void 0,null,function*(){const r=yield(0,_service_exercise__WEBPACK_IMPORTED_MODULE_3__.Zg)({id:d==null?void 0:d.exerciseId,coursesId:d==null?void 0:d.coursesId});if((r==null?void 0:r.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=d=>__async(void 0,null,function*(){var _,e,r;sessionStorage.removeItem("studentunlock");let i;if((location.pathname.indexOf("/classrooms/4RW9CYHY")>-1||location.pathname.indexOf("/classrooms/qb4ft587")>-1||location.pathname.indexOf("/classrooms/c5q9bsp2")>-1)&&!isPc()){antd__WEBPACK_IMPORTED_MODULE_15__.default.info({content:"\u8BF7\u4F7F\u7528\u7535\u8111\u53C2\u52A0\u8003\u8BD5\uFF01"});return}if(copyTextFuc(" ",!0),yield checkDisabledExam(d),d.ip_limit!=="no"||d.ip_bind){const l=yield checkLocalOrPublicIp(d,!0);if((l==null?void 0:l.status)!==0)return;if(!isChrome()){antd__WEBPACK_IMPORTED_MODULE_15__.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(d.forbid_screen){const l=new WebSocket("ws://localhost:8082");yield new Promise(c=>setTimeout(()=>c(),200)),sendAppStatus(l,d)}if(d.open_camera||d.screen_open||d.ip_limit!=="no"||d.identity_verify){if(!isChromeOrFirefox())return antd__WEBPACK_IMPORTED_MODULE_15__.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;d.open_phone_video_recording?window.location.href=`/classrooms/${d.coursesId}/exercise/${d.exerciseId}/users/${(_=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:_.login}/check`:d.identity_verify&&d.current_status===2?window.location.href=`/classrooms/${d.coursesId}/exercise/${d.exerciseId}/users/${(e=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:e.login}/check`:window.location.href=`/classrooms/${d.coursesId}/exercise/${d.exerciseId}/users/${(r=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:r.login}`}else d.identity_verify&&d.current_status===2?window.location.href=`/classrooms/${d.coursesId}/exercise/${d.exerciseId}/users/${d.login}/check`:window.location.href=`/classrooms/${d.coursesId}/exercise/${d.exerciseId}/users/${d.login}`});var httpBuildQuery=function(d,_,e,r){if(console.log("param:",d),_=_||null,e=e||"&",r=r||null,!d)return"";var i=function(u){for(var h=new Array,o=0;o{const e={},r=Object.assign(!0,d,{}),i=[];return Object.keys(r).sort().forEach(function(l){if(r[l]=r[l]===!0?"true":r[l],r[l]=r[l]===!1?"false":r[l],_==="GET"){if(r[l]!==null){if(typeof r[l]=="object"&&(!Array.isArray(r[l])||Array.isArray(r[l])&&!r[l].length))return;const c=r[l]===null||r[l]==="null"?"":r[l];i.push(`${l}=${typeof c=="string"||typeof c=="number"?decodeURIComponent(c):JSON.stringify(c)}`)}}else{const c=r[l]===null||r[l]==="null"?"":r[l];i.push(`${l}=${typeof c=="string"||typeof c=="number"?c:JSON.stringify(c)}`),r[l],e[l]=r[l]}}),i.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}];function getTopLevelDomain(){let d=window.location.hostname;if(/^\d+\.\d+\.\d+\.\d+$/.test(d)||d==="localhost")return d;let _=d.split(".");return _.length>2&&/^[a-z]{2}$/.test(_[_.length-2])?_.slice(-3).join("."):_.slice(-2).join(".")}const setHeader=(d,_)=>{var e;try{const r=Date.now(),i=(0,uuid__WEBPACK_IMPORTED_MODULE_18__.Z)();let l="method="+((e=d.method)==null?void 0:e.toLocaleUpperCase())+"&ak="+getKey(_key__WEBPACK_IMPORTED_MODULE_19__.mi)+"&sk="+getKey(_key__WEBPACK_IMPORTED_MODULE_19__.hw)+"&time="+r;return d.headers["X-EDU-Type"]="pc",d.headers["X-EDU-Timestamp"]=r,d.headers["X-EDU-Signature"]=md5__WEBPACK_IMPORTED_MODULE_6___default()(window.btoa(l)),d.headers["Pc-Authorization"]=getCookie("_educoder_session"),d.headers["X-Request-Id"]=i,d}catch(r){console.log("error:",r,d,_)}},setThreeComponent=()=>{(function(d){XMLHttpRequest.prototype.open=function(_,e,r=!0){const i=setHeader({method:_,headers:{}});d.call(this,_,e,r);try{e.indexOf(getTopLevelDomain())>-1&&(this.setRequestHeader("X-EDU-Type","pc"),this.setRequestHeader("X-EDU-Timestamps",i.headers["X-EDU-Timestamp"]),this.setRequestHeader("X-EDU-Signatures",i.headers["X-EDU-Signature"]),this.setRequestHeader("Pc-Authorization",getCookie("_educoder_session")))}catch(l){}}})(XMLHttpRequest.prototype.open),function(d){window.fetch=function(_,e){var r;return e=e||{},(r=e.headers)!=null&&r["X-EDU-Timestamp"]||setHeader(e),d.apply(this,arguments).then(function(i){return i})}}(window.fetch)},parseUrl=d=>{const _=/(\w+)=([^\#&]*)/gi,e={};return d.replace(_,function(r,i,l){e[i]=decodeURI(l)}),e},messageInfo=(d,_)=>{const r={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`}[d];antd__WEBPACK_IMPORTED_MODULE_14__.ZP.warning(r)},base64ToBlob=(d,_)=>{var e;const r=window.atob(d),i=r.length,l=new Uint8Array(i);for(let c=0;c{const r=base64ToBlob(_,e);if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(r,d);else{const i=document.createElement("a");i.href=window.URL.createObjectURL(r),i.download=d,document.body.appendChild(i);const l=document.createEvent("MouseEvents");l.initEvent("click",!1,!1),i.dispatchEvent(l),document.body.removeChild(i)}},trackEvent=d=>{var _;if(d.length)try{window._czc.push(["_trackEvent",...d]),window==null||window.gtag("event",d[1],{event_category:d[0],event_label:d[2]||"",value:d[3]||"",user_id:((_=(0,_utils_authority__WEBPACK_IMPORTED_MODULE_1__.eY)())==null?void 0:_.login)||""})}catch(e){console.log("trackEvent:err:",e)}},trackEventCustom=d=>{if(d.length)try{window._czc.push(["_setCustomVar",...d])}catch(_){console.log("trackEvent:err:",_)}},onPreviewImage=d=>{const _=(i,l)=>{if(i.localName===l)return i;for(let c=0,f=i;f=f.parentNode;c++){if(f.localName===l)return f;if(f==document.documentElement)return!1}},e=d.target,r=_(e,"a");if(!(r!=null&&r.href)&&e.tagName.toUpperCase()==="IMG"){let i=e.src||e.getAttribute("src");i&&i.indexOf("/images/avatars/User")===-1&&(d.stopPropagation(),d.preventDefault(),_components_mediator__WEBPACK_IMPORTED_MODULE_8__.Z.publish("preview-image",i))}},getCategoryName=(d,_)=>{var e,r,i,l;if(d&&d!=""){let c=(e=d==null?void 0:d.filter(f=>f.type===location.pathname.split("/")[3]))==null?void 0:e[0];return _?(l=(i=(r=c==null?void 0:c.second_category)==null?void 0:r.filter(f=>f.category_id==_))==null?void 0:i[0])==null?void 0:l.category_name:c==null?void 0:c.name}return null},bindPhone=d=>{const _=antd__WEBPACK_IMPORTED_MODULE_15__.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(),d!=null&&d.onCancel&&d.onCancel()}})},copyTextFuc=(d="",_=!1)=>{const e=document.createElement("textarea");e.value=d,document.body.appendChild(e),e.select(),document.execCommand("Copy"),_||antd__WEBPACK_IMPORTED_MODULE_14__.ZP.success("\u590D\u5236\u6210\u529F"),document.body.removeChild(e)},getJsonFromUrl=d=>{if(d||(d=window.location.search),!d)return{};let _=d.substring(1),e={};return _.split("&").forEach(function(r){let i=r.split("=");e[i[0]]=decodeURIComponent(i[1])}),e},arrTrans=(d,_)=>{if(!_)return null;const e=[];return _.forEach((r,i)=>{const l=Math.floor(i/d);e[l]||(e[l]=[]),e[l].push(r)}),e},setDocumentTitle=d=>{checkIsClientExam()?document.title="\u8003\u8BD5\u7CFB\u7EDF":d!==""&&d&&(document.title=d||(document.domain.indexOf(".educoder.net")>-1?"\u5B9E\u8DF5\u6559\u5B66\u5E73\u53F0":""))},checkIsClientExam=()=>{var d;return(d=window==null?void 0:window.localStorage)==null?void 0:d.isClientExam},localSort={setItem:(d,_,e)=>{const r=d,i=localStorage.getItem(r),l=i!==null&&i!=="[object Object]"?JSON.parse(i):{};l[e]=_,localStorage.setItem(r,JSON.stringify(l))},getItem:(d,_)=>{const e=d,r=localStorage.getItem(e);return(r!==null&&r!=="[object Object]"?JSON.parse(r):{})[_]}},ImgSrcConvert=d=>d!=null&&d.startsWith("http")?d:_env__WEBPACK_IMPORTED_MODULE_7__.Z.IMG_SERVER+d,compareVersion=d=>{const _=getVersion(),e=d.split("."),r=_.split("."),i=Math.max(e.length,r.length);for(;e.lengthf)return 1;if(c{d=`${d}${_?","+_:""}`;const e=crypto_js__WEBPACK_IMPORTED_MODULE_11___default().enc.Utf8.parse(window.atob(window.atob(_key__WEBPACK_IMPORTED_MODULE_19__.Bn)).substring(0,16)),r=crypto_js__WEBPACK_IMPORTED_MODULE_11___default().AES.encrypt(d||"",e,{iv:e,mode:crypto_js__WEBPACK_IMPORTED_MODULE_11___default().mode.CBC});return window.btoa(r.toString())},getVersion=()=>{const _=navigator.userAgent.toLowerCase().match(/version\/[\d.]+/gi);return _&&_[0].replace(/version\//,"")},isLocalApp=()=>navigator.userAgent.indexOf("ExerciseApp")>-1;function randomArray(d,_){let e=d.length,r,i;_=_||1;let l=function(){var c=Math.sin(_++)*1e3;return c-Math.floor(c)};for(;e!==0;)i=Math.floor(l()*e),e-=1,r=d[e],d[e]=d[i],d[i]=r;return d}function pointerEvents(d){const _=document.getElementsByTagName("iframe");for(let r=0;r<_.length;r++)_[r].style["pointer-events"]=d;const e=document.getElementsByTagName("canvas");for(let r=0;rnew Promise((_,e)=>{var r=new XMLHttpRequest;r.withCredentials=!0,r.onload=function(){var i=new FileReader;i.onloadend=function(){_(i.result)},i.readAsDataURL(r.response)},r.open("GET",d),r.responseType="blob",r.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(d){var _;(_=document.querySelector(d))==null||_.scrollTo({left:0,top:0,behavior:"smooth"})}function dealUploadChange(d){var _,e,r,i,l;const c=(_=d.fileList)==null?void 0:_.map(f=>{var u,h;return __spreadProps(__spreadValues({},f),{status:typeof(f==null?void 0:f.response)=="string"||((u=f==null?void 0:f.response)==null?void 0:u.status)===-1?"error":f.status,response:typeof(f==null?void 0:f.response)=="string"?f==null?void 0:f.response:f!=null&&f.response&&(f==null?void 0:f.response.status)===-1?(h=f==null?void 0:f.response)==null?void 0:h.message:f==null?void 0:f.response})});return((r=(e=d.file)==null?void 0:e.response)==null?void 0:r.status)===-1&&(antd__WEBPACK_IMPORTED_MODULE_14__.ZP.destroy(),antd__WEBPACK_IMPORTED_MODULE_14__.ZP.warning((l=(i=d.file)==null?void 0:i.response)==null?void 0:l.message)),c}function cutFileName(d="",_){if(!d)return"";const e=d.lastIndexOf(".");let r=[d,""];if(e!==-1&&e!==d.length-1){const i=d.substring(0,e),l=d.substring(e+1);r=[i,l]}return r[0].length>_?r[0].slice(0,_)+"..."+r[1]:d}function cutName(d="",_,e="--"){return d?(d==null?void 0:d.length)>=_?(d==null?void 0:d.slice(0,_))+"...":d:e}function timeContrast(d){return d?moment__WEBPACK_IMPORTED_MODULE_12___default()().isBefore(moment__WEBPACK_IMPORTED_MODULE_12___default()(d)):!0}function showTotal(d){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",d,"\xA0"),"\u6761\u6570\u636E")}const formatRandomPaperData=d=>{const _={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D",7:"\u4E03"};if(!d)return;const{exam:e,single_questions:r,multiple_questions:i,judgement_questions:l,program_questions:c,completion_questions:f,subjective_questions:u,practical_questions:h,combination_questions:o,bprogram_questions:a}=d||{},x=[__spreadValues({type:"SINGLE",name:"\u5355\u9009\u9898"},r),__spreadValues({type:"MULTIPLE",name:"\u591A\u9009\u9898"},i),__spreadValues({type:"COMPLETION",name:"\u586B\u7A7A\u9898"},f),__spreadValues({type:"JUDGMENT",name:"\u5224\u65AD\u9898"},l),__spreadValues({type:"SUBJECTIVE",name:"\u7B80\u7B54\u9898"},u),__spreadValues({type:"PROGRAM",name:"\u7F16\u7A0B\u9898"},c),__spreadValues({type:"BPROGRAM",name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"},a),__spreadValues({type:"PRACTICAL",name:"\u5B9E\u8BAD\u9898"},h),__spreadValues({type:"COMBINATION",name:"\u7EC4\u5408\u9898"},o)],p=[];let y=0,m=0;const b=x.filter(S=>S.questions_count>0).map((S,R)=>{var L;return(L=S.questions)==null||L.forEach(C=>{p.push(C.id),y=y+C.score,m=m+1}),__spreadValues(__spreadValues({},S),{number:_[R+1]})});return{all_questions_count:m,all_score:y,questionList:b,ids:p,exam:e}},formatRandomPaperDatas=d=>{var _;const e={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D",7:"\u4E03"};if(!d)return;const{exam:r,single_questions:i,multiple_questions:l,judgement_questions:c,program_questions:f,completion_questions:u,subjective_questions:h,practical_questions:o,combination_questions:a,bprogram_questions:x}=d||{},p=[__spreadValues({type:"SINGLE",name:"\u5355\u9009\u9898"},i),__spreadValues({type:"MULTIPLE",name:"\u591A\u9009\u9898"},l),__spreadValues({type:"COMPLETION",name:"\u586B\u7A7A\u9898"},u),__spreadValues({type:"JUDGMENT",name:"\u5224\u65AD\u9898"},c),__spreadValues({type:"SUBJECTIVE",name:"\u7B80\u7B54\u9898"},h),__spreadValues({type:"PROGRAM",name:"\u7F16\u7A0B\u9898"},f),__spreadValues({type:"BPROGRAM",name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"},x),__spreadValues({type:"PRACTICAL",name:"\u5B9E\u8BAD\u9898"},o),__spreadValues({type:"COMBINATION",name:"\u7EC4\u5408\u9898"},a)];let y=[];(_=r==null?void 0:r.question_type_position)==null||_.map((L,C)=>{p==null||p.map((D,F)=>{L.type===D.type&&y.push(D)})});const m=[];let b=0,S=0;const R=y.filter(L=>L.questions_count>0).map((L,C)=>{var D;return(D=L.questions)==null||D.forEach(F=>{m.push(F.id),b=b+F.score,S=S+1}),__spreadValues(__spreadValues({},L),{number:e[C+1]})});return{all_questions_count:S,all_score:b,questionList:R,ids:m,exam:r}},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=(d,_)=>{var e;try{_?(d.send(JSON.stringify({type:"toggleLockExit",data:!0})),_!=null&&_.forbid_screen&&d.send(JSON.stringify({type:"open-disabled-switchscreen"})),_!=null&&_.use_white_list&&d.send(JSON.stringify({type:"open-only-allow-runapp",data:_==null?void 0:_.white_list})),_!=null&&_.net_limit&&d.send(JSON.stringify({type:"network-close",data:(e=_==null?void 0:_.net_limit_list)==null?void 0:e.split(` -`)}))):(d.send(JSON.stringify({type:"toggleLockExit",data:!1})),d.send(JSON.stringify({type:"close-disabled-switchscreen"})),d.send(JSON.stringify({type:"close-only-allow-runapp"})),d.send(JSON.stringify({type:"network-open"})))}catch(r){}},addJumping=()=>{const d=document.querySelector('a[title="\u589E\u52A0\u586B\u7A7A"]'),_=d==null?void 0:d.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=d=>d!=null&&d.forbid_student_visit?(antd__WEBPACK_IMPORTED_MODULE_15__.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}},d==null?void 0:d.username,"\u8001\u5E08 "),"\u5DF2\u5173\u95ED\u8BE5\u8BFE\u5802\uFF0C\u5B66\u751F\u7528\u6237\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE ")}),!0):!1,getExamRestrictionInfo=d=>{const _=[];return d.is_locked&&_.push("\u8003\u8BD5\u89E3\u9501\u7801"),d.login_restrict&&_.push("\u8003\u8BD5\u767B\u5F55\u9650\u5236"),d.screen_open&&_.push("\u5207\u5C4F\u540E\u5F3A\u5236\u4EA4\u5377"),d.ip_bind&&_.push("IP\u5730\u5740\u7ED1\u5B9A"),(d.ip_limit==="pub"||d.ip_limit==="inner")&&_.push("\u9650\u5236\u8003\u8BD5\u8BBF\u95EEIP"),d.open_camera&&_.push("\u8003\u8BD5\u4E2D\u542F\u7528\u62CD\u7167\u529F\u80FD\u8FDB\u884C\u76D1\u8003\u548C\u884C\u4E3A\u5206\u6790"),d.identity_verify&&_.push("\u8003\u8BD5\u524D\u4EBA\u8138\u8EAB\u4EFD\u6838\u9A8C"),d.open_phone_video_recording&&_.push("\u8003\u8BD5\u4E2D\u5F00\u542F\u624B\u673A\u89C6\u9891\u5F55\u5236"),_.length>0?_.join("\u3001"):""},releaseRuleDataAdjust=d=>{const _=d.reduce((r,i)=>{const l=`${i.publish_time}_${i.end_time}_${i.is_admin}`;return r[l]?(r[l].group_name.push(i.group_name),r[l].group_id.push(i.group_id)):r[l]={publish_time:i.publish_time,end_time:i.end_time,is_admin:i.is_admin,group_name:[i.group_name],group_id:[i.group_id]},r},{});return Object.values(_).map(r=>__spreadProps(__spreadValues({},r),{group_name:r.group_name.flat(),group_id:r.group_id.flat()}))},showInstallWebRtcDoc=()=>new Promise((d,_)=>__async(void 0,null,function*(){const e=yield(0,_utils_fetch__WEBPACK_IMPORTED_MODULE_10__.ZP)("/api/documents/webrtc_content",{method:"get"});antd__WEBPACK_IMPORTED_MODULE_15__.default.info({title:"WebRTC\u63D2\u4EF6\u5B89\u88C5\u6559\u7A0B",width:"1000px",centered:!0,content:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{style:{maxHeight:"70vh",overflow:"auto"}},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_RenderHtml__WEBPACK_IMPORTED_MODULE_9__.Z,{value:(e==null?void 0:e.data)||""}))}),d(e==null?void 0:e.data)}));function skipNetLogin(d){var _,e,r;const i=((_=window.location)==null?void 0:_.hostname)==="app-kyxt.pcl.ac.cn";if(d)return i;const l=(0,umi__WEBPACK_IMPORTED_MODULE_5__.getDvaApp)()._store.getState();if((e=l.globalSetting)!=null&&e.setting.openi_url){openNewWindow((r=l.globalSetting)==null?void 0:r.setting.openi_url);return}i?window.open("https://openi.pcl.ac.cn/login/oauth/authorize?client_id=5109524b-c405-4809-8bdf-dc4ceb713064&redirect_uri=https://app-kyxt.pcl.ac.cn/auth/openi/login&response_type=code&state=STATE","_self"):window.open("https://openi.pcl.ac.cn/login/oauth/authorize?client_id=526db77d-71f4-418c-bd8d-61fa388c4c2e&redirect_uri=https://app-kyxt.pcl.ac.cn/auth/openi/login&response_type=code&state=STATE","_self")}function copyToClipboard(d){return navigator.clipboard?navigator.clipboard.writeText(d).then(()=>(console.log("Text copied to clipboard successfully!"),!0)).catch(_=>{throw console.error("Failed to copy text: ",_),_}):new Promise((_,e)=>{const r=document.createElement("textarea");r.value=d,document.body.appendChild(r),r.select();try{const i=document.execCommand("copy");document.body.removeChild(r),i?(console.log("Text copied to clipboard successfully!"),_(!0)):(console.error("Failed to copy text using execCommand."),e(!1))}catch(i){document.body.removeChild(r),console.error("Failed to copy text: ",i),e(i)}})}const isArrayBuffer=d=>Object.prototype.toString.call(d)==="[object ArrayBuffer]",parseArrayBufferAsText=(d,_="utf-8")=>isArrayBuffer(d)?new TextDecoder(_).decode(d):d,numFormat=d=>d?(d>=1e3&&(d=d/1e3+"K"),d):0,aiReviewConfigformatChecks=d=>{if(!d||d.length===0)return!0;const _=new Set,e=new Set;let r=!0,i=!0;const l=d==null?void 0:d.reduce((c,f)=>{_!=null&&_.has(f.name)&&(r=!1),_==null||_.add(f.name),e!=null&&e.has(f.content)&&(i=!1),e==null||e.add(f.content);const u=parseFloat(f.weight);return c+u},0);return r?i?parseFloat(l.toFixed(2))!=100?(antd__WEBPACK_IMPORTED_MODULE_14__.ZP.warning("\u6240\u6709\u8BC4\u5206\u9879\u76EE\u7684\u6743\u91CD\u4E4B\u548C\u5FC5\u987B\u4E3A100%"),!1):!0:(antd__WEBPACK_IMPORTED_MODULE_14__.ZP.warning("\u8BC4\u5206\u6807\u51C6\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D!"),!1):(antd__WEBPACK_IMPORTED_MODULE_14__.ZP.warning("\u8BC4\u5206\u9879\u76EE\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D!"),!1)},handleJupyterlabModal=(d={})=>{if((d==null?void 0:d.status)===300004){antd__WEBPACK_IMPORTED_MODULE_15__.default.warning({centered:!0,title:"\u63D0\u793A",icon:null,width:550,content:react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,"\u521B\u5EFA\u4EFB\u52A1\u5931\u8D25\uFF0C\u60A8\u8D26\u53F7\u5F53\u524D\u79EF\u5206\u4E0D\u8DB3\uFF0C\u65E0\u6CD5\u8FDB\u884C\u6A21\u62DF\u5B9E\u6218\u3002\u53EF\u70B9\u51FB\u4E0B\u65B9\u94FE\u63A5\u8FDB\u5165\u4E2A\u4EBA\u7B97\u529B\u79EF\u5206\u5956\u52B1\u89C4\u5219\u9875\u9762\uFF0C\u5EFA\u8BAE\u6309\u7167\u89C4\u5219\u83B7\u53D6\u79EF\u5206\u3002",react__WEBPACK_IMPORTED_MODULE_0__.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_0__.createElement("a",{className:"mt10",target:"_blank",href:"https://openi.pcl.ac.cn/reward/point/rule"},"https://openi.pcl.ac.cn/reward/point/rule"))});return}antd__WEBPACK_IMPORTED_MODULE_15__.default.warning({centered:!0,title:"\u63D0\u793A",icon:null,width:550,content:react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,"\u521B\u5EFA\u4EFB\u52A1\u5931\u8D25\uFF0C\u60A8\u8D26\u53F7\u4E0B\u5DF2\u521B\u5EFA5\u4E2A\u8C03\u8BD5\u4EFB\u52A1\u6216\u67091\u4E2A\u8C03\u8BD5\u4EFB\u52A1\u6B63\u5728\u8FD0\u884C\u3002\u8BF7\u70B9\u51FB\u4E0B\u65B9\u94FE\u63A5\u8DF3\u8F6C\u81F3\u4EFB\u52A1\u7BA1\u7406\u9875\u9762\uFF0C\u6E05\u7406\u8C03\u8BD5\u4EFB\u52A1\u540E\uFF0C\u518D\u8FDB\u884C\u6A21\u62DF\u6311\u6218\u3002",react__WEBPACK_IMPORTED_MODULE_0__.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_0__.createElement("a",{className:"mt10",target:"_blank",href:"https://openi.pcl.ac.cn/cloudbrains"},"https://openi.pcl.ac.cn/cloudbrains"))})}},68312:function(d,_,e){"use strict";e.d(_,{t:function(){return r}});const r=l=>{var c=/^(\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 c.test(l)},i=l=>{var c=/^(\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 c.test(l)}},50731:function(d,_,e){"use strict";e.d(_,{Il:function(){return f},Ov:function(){return u},T$:function(){return o}});var r=e(38127),i=e(59301),l=e(35338),c=["element"],f=i.createContext({});function u(){return i.useContext(f)}function h(){var y=(0,l.TH)(),m=u(),b=m.clientRoutes,S=(0,l.fp)(b,y.pathname);return S||[]}function o(){var y,m=h().slice(-1),b=((y=m[0])===null||y===void 0?void 0:y.route)||{},S=b.element,R=(0,r.Z)(b,c);return R}function a(){var y=h(),m=u(),b=m.serverLoaderData,S=m.basename,R=React.useState(function(){var F={},B=!1;return y.forEach(function(N){var K=b[N.route.id];K&&(Object.assign(F,K),B=!0)}),B?F:void 0}),L=_slicedToArray(R,2),C=L[0],D=L[1];return React.useEffect(function(){window.__UMI_LOADER_DATA__||Promise.all(y.filter(function(F){return F.route.hasServerLoader}).map(function(F){return new Promise(function(B){fetchServerLoader({id:F.route.id,basename:S,cb:B})})})).then(function(F){if(F.length){var B={};F.forEach(function(N){Object.assign(B,N)}),D(B)}})},[]),{data:C}}function x(){var y=useRouteData(),m=u();return{data:m.clientLoaderData[y.route.id]}}function p(){var y=a(),m=x();return{data:_objectSpread(_objectSpread({},y.data),m.data)}}},91392:function(d){var _={en_GB:"en-gb",en_US:"en",zh_CN:"zh-cn",zh_TW:"zh-tw"},e=function(i){var l=_[i];return l||i.split("_")[0]};d.exports=function(r,i,l){var c=i.prototype.locale;i.prototype.locale=function(f){return typeof f=="string"&&(f=e(f)),c.call(this,f)}}},92806:function(d,_,e){"use strict";var r=e(41799),i=e(59301),l=e(3113),c=e(67797);function f(h){return!!(h&&h.then)}const u=h=>{const{type:o,children:a,prefixCls:x,buttonProps:p,close:y,autoFocus:m,emitEvent:b,isSilent:S,quitOnNullishReturnValue:R,actionFn:L}=h,C=i.useRef(!1),D=i.useRef(null),[F,B]=(0,r.Z)(!1),N=function(){y==null||y.apply(void 0,arguments)};i.useEffect(()=>{let W=null;return m&&(W=setTimeout(()=>{var ae;(ae=D.current)===null||ae===void 0||ae.focus()})),()=>{W&&clearTimeout(W)}},[]);const K=W=>{f(W)&&(B(!0),W.then(function(){B(!1,!0),N.apply(void 0,arguments),C.current=!1},ae=>{if(B(!1,!0),C.current=!1,!(S!=null&&S()))return Promise.reject(ae)}))},V=W=>{if(C.current)return;if(C.current=!0,!L){N();return}let ae;if(b){if(ae=L(W),R&&!f(ae)){C.current=!1,N(W);return}}else if(L.length)ae=L(y),C.current=!1;else if(ae=L(),!ae){N();return}K(ae)};return i.createElement(l.ZP,Object.assign({},(0,c.n)(o),{onClick:V,loading:F,prefixCls:x},p,{ref:D}),a)};_.Z=u},53487:function(d,_,e){"use strict";e.d(_,{Z:function(){return u},i:function(){return f}});var r=e(18929),i=e(59301),l=e(92736),c=e(36355);function f(h){return function(a){return i.createElement(l.ZP,{theme:{token:{motion:!1,zIndexPopupBase:0}}},i.createElement(h,Object.assign({},a)))}}function u(h,o,a,x){function p(y){const{prefixCls:m,style:b}=y,S=i.useRef(null),[R,L]=i.useState(0),[C,D]=i.useState(0),[F,B]=(0,r.Z)(!1,{value:y.open}),{getPrefixCls:N}=i.useContext(c.E_),K=N(o||"select",m);i.useEffect(()=>{if(B(!0),typeof ResizeObserver!="undefined"){const W=new ResizeObserver(ne=>{const se=ne[0].target;L(se.offsetHeight+8),D(se.offsetWidth)}),ae=setInterval(()=>{var ne;const se=a?`.${a(K)}`:`.${K}-dropdown`,q=(ne=S.current)===null||ne===void 0?void 0:ne.querySelector(se);q&&(clearInterval(ae),W.observe(q))},10);return()=>{clearInterval(ae),W.disconnect()}}},[]);let V=Object.assign(Object.assign({},y),{style:Object.assign(Object.assign({},b),{margin:0}),open:F,visible:F,getPopupContainer:()=>S.current});return x&&(V=x(V)),i.createElement("div",{ref:S,style:{paddingBottom:R,position:"relative",minWidth:C}},i.createElement(h,Object.assign({},V)))}return f(p)}},36785:function(d,_,e){"use strict";e.d(_,{o2:function(){return f},yT:function(){return u}});var r=e(94480),i=e(33166);const l=i.i.map(h=>`${h}-inverse`),c=["success","processing","error","default","warning"];function f(h){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,r.Z)(l),(0,r.Z)(i.i)).includes(h):i.i.includes(h)}function u(h){return c.includes(h)}},47729:function(d,_,e){"use strict";e.d(_,{Z:function(){return c}});var r=e(99267),i=e(59301);function l(f,u,h){return typeof f=="boolean"?f:u===void 0?!!h:u!==!1&&u!==null}function c(f,u,h){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:i.createElement(r.Z,null),a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!l(f,u,a))return[!1,null];const p=typeof u=="boolean"||u===void 0||u===null?o:u;return[!0,h?h(p):p]}},62892:function(d,_,e){"use strict";e.d(_,{m:function(){return h}});const r=()=>({height:0,opacity:0}),i=o=>{const{scrollHeight:a}=o;return{height:a,opacity:1}},l=o=>({height:o?o.offsetHeight:0}),c=(o,a)=>(a==null?void 0:a.deadline)===!0||a.propertyName==="height",f=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:r,onEnterStart:r,onAppearActive:i,onEnterActive:i,onLeaveStart:l,onLeaveActive:r,onAppearEnd:c,onEnterEnd:c,onLeaveEnd:c,motionDeadline:500}},u=null,h=(o,a,x)=>x!==void 0?x:`${o}-${a}`;_.Z=f},79676:function(d,_,e){"use strict";e.d(_,{Z:function(){return u}});var r=e(19447);function i(h,o,a,x){if(x===!1)return{adjustX:!1,adjustY:!1};const p=x&&typeof x=="object"?x:{},y={};switch(h){case"top":case"bottom":y.shiftX=o.dropdownArrowOffset*2+a;break;case"left":case"right":y.shiftY=o.dropdownArrowOffsetVertical*2+a;break}const m=Object.assign(Object.assign({},y),p);return m.shiftX||(m.adjustX=!0),m.shiftY||(m.adjustY=!0),m}const l={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},c={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},f=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function u(h){const{arrowWidth:o,autoAdjustOverflow:a,arrowPointAtCenter:x,offset:p,borderRadius:y,visibleFirst:m}=h,b=o/2,S={};return Object.keys(l).forEach(R=>{const L=x&&c[R]||l[R],C=Object.assign(Object.assign({},L),{offset:[0,0]});switch(S[R]=C,f.has(R)&&(C.autoArrow=!1),R){case"top":case"topLeft":case"topRight":C.offset[1]=-b-p;break;case"bottom":case"bottomLeft":case"bottomRight":C.offset[1]=b+p;break;case"left":case"leftTop":case"leftBottom":C.offset[0]=-b-p;break;case"right":case"rightTop":case"rightBottom":C.offset[0]=b+p;break}const D=(0,r.fS)({contentRadius:y,limitVerticalRadius:!0});if(x)switch(R){case"topLeft":case"bottomLeft":C.offset[0]=-D.dropdownArrowOffset-b;break;case"topRight":case"bottomRight":C.offset[0]=D.dropdownArrowOffset+b;break;case"leftTop":case"rightTop":C.offset[1]=-D.dropdownArrowOffset-b;break;case"leftBottom":case"rightBottom":C.offset[1]=D.dropdownArrowOffset+b;break}C.overflow=i(R,D,o,a),m&&(C.htmlRegion="visibleFirst")}),S}},92343:function(d,_,e){"use strict";var r;e.d(_,{M2:function(){return c},Tm:function(){return u},l$:function(){return l},wm:function(){return f}});var i=e(59301);const{isValidElement:l}=r||(r=e.t(i,2));function c(h){return h&&l(h)&&h.type===i.Fragment}function f(h,o,a){return l(h)?i.cloneElement(h,typeof a=="function"?a(h.props||{}):a):o}function u(h,o){return f(h,h,o)}},69507:function(d,_,e){"use strict";e.d(_,{ZP:function(){return u},c4:function(){return l},m9:function(){return h}});var r=e(59301),i=e(88088);const l=["xxl","xl","lg","md","sm","xs"],c=o=>({xs:`(max-width: ${o.screenXSMax}px)`,sm:`(min-width: ${o.screenSM}px)`,md:`(min-width: ${o.screenMD}px)`,lg:`(min-width: ${o.screenLG}px)`,xl:`(min-width: ${o.screenXL}px)`,xxl:`(min-width: ${o.screenXXL}px)`}),f=o=>{const a=o,x=[].concat(l).reverse();return x.forEach((p,y)=>{const m=p.toUpperCase(),b=`screen${m}Min`,S=`screen${m}`;if(!(a[b]<=a[S]))throw new Error(`${b}<=${S} fails : !(${a[b]}<=${a[S]})`);if(y{const x=new Map;let p=-1,y={};return{matchHandlers:{},dispatch(m){return y=m,x.forEach(b=>b(y)),x.size>=1},subscribe(m){return x.size||this.register(),p+=1,x.set(p,m),m(y),p},unsubscribe(m){x.delete(m),x.size||this.unregister()},unregister(){Object.keys(a).forEach(m=>{const b=a[m],S=this.matchHandlers[b];S==null||S.mql.removeListener(S==null?void 0:S.listener)}),x.clear()},register(){Object.keys(a).forEach(m=>{const b=a[m],S=L=>{let{matches:C}=L;this.dispatch(Object.assign(Object.assign({},y),{[m]:C}))},R=window.matchMedia(b);R.addListener(S),this.matchHandlers[b]={mql:R,listener:S},S(R)})},responsiveMap:a}},[o])}const h=(o,a)=>{if(a&&typeof a=="object")for(let x=0;x{const{componentCls:se,colorPrimary:q}=ne;return{[se]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${q})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${ne.motionEaseOutCirc}`,`opacity 2s ${ne.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${ne.motionEaseInOut}`,`opacity 0.35s ${ne.motionEaseInOut}`].join(",")}}}}};var x=(0,o.Z)("Wave",ne=>[a(ne)]),p=e(70425),y=e(16089),m=e(77900),b=e(1585);function S(ne){const se=(ne||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return se&&se[1]&&se[2]&&se[3]?!(se[1]===se[2]&&se[2]===se[3]):!0}function R(ne){return ne&&ne!=="#fff"&&ne!=="#ffffff"&&ne!=="rgb(255, 255, 255)"&&ne!=="rgba(255, 255, 255, 1)"&&S(ne)&&!/rgba\((?:\d*, ){3}0\)/.test(ne)&&ne!=="transparent"}function L(ne){const{borderTopColor:se,borderColor:q,backgroundColor:Q}=getComputedStyle(ne);return R(se)?se:R(q)?q:R(Q)?Q:null}var C=e(4572);function D(ne){return Number.isNaN(ne)?0:ne}const F=ne=>{const{className:se,target:q,component:Q}=ne,H=f.useRef(null),[oe,ee]=f.useState(null),[J,le]=f.useState([]),[$,j]=f.useState(0),[ie,ve]=f.useState(0),[Te,De]=f.useState(0),[Ke,ze]=f.useState(0),[Mt,Et]=f.useState(!1),kt={left:$,top:ie,width:Te,height:Ke,borderRadius:J.map(yt=>`${yt}px`).join(" ")};oe&&(kt["--wave-color"]=oe);function $t(){const yt=getComputedStyle(q);ee(L(q));const Ne=yt.position==="static",{borderLeftWidth:vt,borderTopWidth:Nt}=yt;j(Ne?q.offsetLeft:D(-parseFloat(vt))),ve(Ne?q.offsetTop:D(-parseFloat(Nt))),De(q.offsetWidth),ze(q.offsetHeight);const{borderTopLeftRadius:tt,borderTopRightRadius:_t,borderBottomLeftRadius:ft,borderBottomRightRadius:Je}=yt;le([tt,_t,Je,ft].map(Be=>D(parseFloat(Be))))}if(f.useEffect(()=>{if(q){const yt=(0,y.Z)(()=>{$t(),Et(!0)});let Ne;return typeof ResizeObserver!="undefined"&&(Ne=new ResizeObserver($t),Ne.observe(q)),()=>{y.Z.cancel(yt),Ne==null||Ne.disconnect()}}},[]),!Mt)return null;const Bt=(Q==="Checkbox"||Q==="Radio")&&(q==null?void 0:q.classList.contains(C.A));return f.createElement(m.default,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(yt,Ne)=>{var vt;if(Ne.deadline||Ne.propertyName==="opacity"){const Nt=(vt=H.current)===null||vt===void 0?void 0:vt.parentElement;(0,b.v)(Nt).then(()=>{Nt==null||Nt.remove()})}return!1}},yt=>{let{className:Ne}=yt;return f.createElement("div",{ref:H,className:i()(se,{"wave-quick":Bt},Ne),style:kt})})};var N=(ne,se)=>{var q;const{component:Q}=se;if(Q==="Checkbox"&&!(!((q=ne.querySelector("input"))===null||q===void 0)&&q.checked))return;const H=document.createElement("div");H.style.position="absolute",H.style.left="0px",H.style.top="0px",ne==null||ne.insertBefore(H,ne==null?void 0:ne.firstChild),(0,b.s)(f.createElement(F,Object.assign({},se,{target:ne})),H)},K=e(88088);function V(ne,se,q){const{wave:Q}=f.useContext(u.E_),[,H,oe]=(0,K.Z)(),ee=(0,p.useEvent)($=>{const j=ne.current;if(Q!=null&&Q.disabled||!j)return;const ie=j.querySelector(`.${C.A}`)||j,{showEffect:ve}=Q||{};(ve||N)(ie,{className:se,token:H,component:q,event:$,hashId:oe})}),J=f.useRef();return $=>{y.Z.cancel(J.current),J.current=(0,y.Z)(()=>{ee($)})}}var ae=ne=>{const{children:se,disabled:q,component:Q}=ne,{getPrefixCls:H}=(0,f.useContext)(u.E_),oe=(0,f.useRef)(null),ee=H("wave"),[,J]=x(ee),le=V(oe,i()(ee,J),Q);if(f.useEffect(()=>{const j=oe.current;if(!j||j.nodeType!==1||q)return;const ie=ve=>{!(0,c.Z)(ve.target)||!j.getAttribute||j.getAttribute("disabled")||j.disabled||j.className.includes("disabled")||j.className.includes("-leave")||le(ve)};return j.addEventListener("click",ie,!0),()=>{j.removeEventListener("click",ie,!0)}},[q]),!f.isValidElement(se))return se!=null?se:null;const $=(0,l.Yr)(se)?(0,l.sQ)(se.ref,oe):oe;return(0,h.Tm)(se,{ref:$})}},4572:function(d,_,e){"use strict";e.d(_,{A:function(){return r}});const r="ant-wave-target"},67797:function(d,_,e){"use strict";e.d(_,{n:function(){return Ft},Z:function(){return Gt}});var r=e(59301),i=e(92310),l=e.n(i),c=e(2738),f=e(8654),u=e(14088),h=e(36355),o=e(1684),a=e(19716),x=e(33234),p=e(88088),y=function(Oe,ce){var pe={};for(var Dt in Oe)Object.prototype.hasOwnProperty.call(Oe,Dt)&&ce.indexOf(Dt)<0&&(pe[Dt]=Oe[Dt]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Dt=Object.getOwnPropertySymbols(Oe);Pe{const{getPrefixCls:ce,direction:pe}=r.useContext(h.E_),{prefixCls:Dt,size:Pe,className:ct}=Oe,Wt=y(Oe,["prefixCls","size","className"]),Tt=ce("btn-group",Dt),[,,Ie]=(0,p.Z)();let St="";switch(Pe){case"large":St="lg";break;case"small":St="sm";break;case"middle":case void 0:break;default:}const We=l()(Tt,{[`${Tt}-${St}`]:St,[`${Tt}-rtl`]:pe==="rtl"},ct,Ie);return r.createElement(m.Provider,{value:Pe},r.createElement("div",Object.assign({},Wt,{className:We})))},R=e(92343);const L=/^[\u4e00-\u9fa5]{2}$/,C=L.test.bind(L);function D(Oe){return typeof Oe=="string"}function F(Oe){return Oe==="text"||Oe==="link"}function B(Oe,ce){if(Oe==null)return;const pe=ce?" ":"";return typeof Oe!="string"&&typeof Oe!="number"&&D(Oe.type)&&C(Oe.props.children)?(0,R.Tm)(Oe,{children:Oe.props.children.split("").join(pe)}):D(Oe)?C(Oe)?r.createElement("span",null,Oe.split("").join(pe)):r.createElement("span",null,Oe):(0,R.M2)(Oe)?r.createElement("span",null,Oe):Oe}function N(Oe,ce){let pe=!1;const Dt=[];return r.Children.forEach(Oe,Pe=>{const ct=typeof Pe,Wt=ct==="string"||ct==="number";if(pe&&Wt){const Tt=Dt.length-1,Ie=Dt[Tt];Dt[Tt]=`${Ie}${Pe}`}else Dt.push(Pe);pe=Wt}),r.Children.map(Dt,Pe=>B(Pe,ce))}const K=null,V=null,W=null;var ne=(0,r.forwardRef)((Oe,ce)=>{const{className:pe,style:Dt,children:Pe,prefixCls:ct}=Oe,Wt=l()(`${ct}-icon`,pe);return r.createElement("span",{ref:ce,className:Wt,style:Dt},Pe)}),se=e(58617),q=e(77900);const Q=(0,r.forwardRef)((Oe,ce)=>{let{prefixCls:pe,className:Dt,style:Pe,iconClassName:ct}=Oe;const Wt=l()(`${pe}-loading-icon`,Dt);return r.createElement(ne,{prefixCls:pe,className:Wt,style:Pe,ref:ce},r.createElement(se.Z,{className:ct}))}),H=()=>({width:0,opacity:0,transform:"scale(0)"}),oe=Oe=>({width:Oe.scrollWidth,opacity:1,transform:"scale(1)"});var J=Oe=>{const{prefixCls:ce,loading:pe,existIcon:Dt,className:Pe,style:ct}=Oe,Wt=!!pe;return Dt?r.createElement(Q,{prefixCls:ce,className:Pe,style:ct}):r.createElement(q.default,{visible:Wt,motionName:`${ce}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:H,onAppearActive:oe,onEnterStart:H,onEnterActive:oe,onLeaveStart:oe,onLeaveActive:H},(Tt,Ie)=>{let{className:St,style:We}=Tt;return r.createElement(Q,{prefixCls:ce,className:Pe,style:Object.assign(Object.assign({},ct),We),ref:Ie,iconClassName:St})})},le=e(17313),$=e(37613),j=e(83116);const ie=(Oe,ce)=>({[`> span, > ${Oe}`]:{"&:not(:last-child)":{[`&, & > ${Oe}`]:{"&:not(:disabled)":{borderInlineEndColor:ce}}},"&:not(:first-child)":{[`&, & > ${Oe}`]:{"&:not(:disabled)":{borderInlineStartColor:ce}}}}});var Te=Oe=>{const{componentCls:ce,fontSize:pe,lineWidth:Dt,groupBorderColor:Pe,colorErrorHover:ct}=Oe;return{[`${ce}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${ce}`]:{"&:not(:last-child)":{[`&, & > ${ce}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-Dt,[`&, & > ${ce}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[ce]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${ce}-icon-only`]:{fontSize:pe}},ie(`${ce}-primary`,Pe),ie(`${ce}-danger`,ct)]}};const De=Oe=>{const{componentCls:ce,iconCls:pe,fontWeight:Dt}=Oe;return{[ce]:{outline:"none",position:"relative",display:"inline-block",fontWeight:Dt,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${Oe.lineWidth}px ${Oe.lineType} transparent`,cursor:"pointer",transition:`all ${Oe.motionDurationMid} ${Oe.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:Oe.lineHeight,color:Oe.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${ce}-icon`]:{lineHeight:0},[`> ${pe} + span, > span + ${pe}`]:{marginInlineStart:Oe.marginXS},[`&:not(${ce}-icon-only) > ${ce}-icon`]:{[`&${ce}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:Oe.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,le.Qy)(Oe)),[`&-icon-only${ce}-compact-item`]:{flex:"none"},[`&-compact-item${ce}-primary`]:{[`&:not([disabled]) + ${ce}-compact-item${ce}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-Oe.lineWidth,insetInlineStart:-Oe.lineWidth,display:"inline-block",width:Oe.lineWidth,height:`calc(100% + ${Oe.lineWidth*2}px)`,backgroundColor:Oe.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${ce}-primary`]:{[`&:not([disabled]) + ${ce}-compact-vertical-item${ce}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-Oe.lineWidth,insetInlineStart:-Oe.lineWidth,display:"inline-block",width:`calc(100% + ${Oe.lineWidth*2}px)`,height:Oe.lineWidth,backgroundColor:Oe.colorPrimaryHover,content:'""'}}}}}}},Ke=(Oe,ce,pe)=>({[`&:not(:disabled):not(${Oe}-disabled)`]:{"&:hover":ce,"&:active":pe}}),ze=Oe=>({minWidth:Oe.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Mt=Oe=>({borderRadius:Oe.controlHeight,paddingInlineStart:Oe.controlHeight/2,paddingInlineEnd:Oe.controlHeight/2}),Et=Oe=>({cursor:"not-allowed",borderColor:Oe.borderColorDisabled,color:Oe.colorTextDisabled,backgroundColor:Oe.colorBgContainerDisabled,boxShadow:"none"}),kt=(Oe,ce,pe,Dt,Pe,ct,Wt,Tt)=>({[`&${Oe}-background-ghost`]:Object.assign(Object.assign({color:pe||void 0,backgroundColor:ce,borderColor:Dt||void 0,boxShadow:"none"},Ke(Oe,Object.assign({backgroundColor:ce},Wt),Object.assign({backgroundColor:ce},Tt))),{"&:disabled":{cursor:"not-allowed",color:Pe||void 0,borderColor:ct||void 0}})}),$t=Oe=>({[`&:disabled, &${Oe.componentCls}-disabled`]:Object.assign({},Et(Oe))}),Bt=Oe=>Object.assign({},$t(Oe)),yt=Oe=>({[`&:disabled, &${Oe.componentCls}-disabled`]:{cursor:"not-allowed",color:Oe.colorTextDisabled}}),Ne=Oe=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Bt(Oe)),{backgroundColor:Oe.defaultBg,borderColor:Oe.defaultBorderColor,color:Oe.defaultColor,boxShadow:Oe.defaultShadow}),Ke(Oe.componentCls,{color:Oe.colorPrimaryHover,borderColor:Oe.colorPrimaryHover},{color:Oe.colorPrimaryActive,borderColor:Oe.colorPrimaryActive})),kt(Oe.componentCls,Oe.ghostBg,Oe.defaultGhostColor,Oe.defaultGhostBorderColor,Oe.colorTextDisabled,Oe.colorBorder)),{[`&${Oe.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:Oe.colorError,borderColor:Oe.colorError},Ke(Oe.componentCls,{color:Oe.colorErrorHover,borderColor:Oe.colorErrorBorderHover},{color:Oe.colorErrorActive,borderColor:Oe.colorErrorActive})),kt(Oe.componentCls,Oe.ghostBg,Oe.colorError,Oe.colorError,Oe.colorTextDisabled,Oe.colorBorder)),$t(Oe))}),vt=Oe=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Bt(Oe)),{color:Oe.primaryColor,backgroundColor:Oe.colorPrimary,boxShadow:Oe.primaryShadow}),Ke(Oe.componentCls,{color:Oe.colorTextLightSolid,backgroundColor:Oe.colorPrimaryHover},{color:Oe.colorTextLightSolid,backgroundColor:Oe.colorPrimaryActive})),kt(Oe.componentCls,Oe.ghostBg,Oe.colorPrimary,Oe.colorPrimary,Oe.colorTextDisabled,Oe.colorBorder,{color:Oe.colorPrimaryHover,borderColor:Oe.colorPrimaryHover},{color:Oe.colorPrimaryActive,borderColor:Oe.colorPrimaryActive})),{[`&${Oe.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:Oe.colorError,boxShadow:Oe.dangerShadow,color:Oe.dangerColor},Ke(Oe.componentCls,{backgroundColor:Oe.colorErrorHover},{backgroundColor:Oe.colorErrorActive})),kt(Oe.componentCls,Oe.ghostBg,Oe.colorError,Oe.colorError,Oe.colorTextDisabled,Oe.colorBorder,{color:Oe.colorErrorHover,borderColor:Oe.colorErrorHover},{color:Oe.colorErrorActive,borderColor:Oe.colorErrorActive})),$t(Oe))}),Nt=Oe=>Object.assign(Object.assign({},Ne(Oe)),{borderStyle:"dashed"}),tt=Oe=>Object.assign(Object.assign(Object.assign({color:Oe.colorLink},Ke(Oe.componentCls,{color:Oe.colorLinkHover,backgroundColor:Oe.linkHoverBg},{color:Oe.colorLinkActive})),yt(Oe)),{[`&${Oe.componentCls}-dangerous`]:Object.assign(Object.assign({color:Oe.colorError},Ke(Oe.componentCls,{color:Oe.colorErrorHover},{color:Oe.colorErrorActive})),yt(Oe))}),_t=Oe=>Object.assign(Object.assign(Object.assign({},Ke(Oe.componentCls,{color:Oe.colorText,backgroundColor:Oe.textHoverBg},{color:Oe.colorText,backgroundColor:Oe.colorBgTextActive})),yt(Oe)),{[`&${Oe.componentCls}-dangerous`]:Object.assign(Object.assign({color:Oe.colorError},yt(Oe)),Ke(Oe.componentCls,{color:Oe.colorErrorHover,backgroundColor:Oe.colorErrorBg},{color:Oe.colorErrorHover,backgroundColor:Oe.colorErrorBg}))}),ft=Oe=>{const{componentCls:ce}=Oe;return{[`${ce}-default`]:Ne(Oe),[`${ce}-primary`]:vt(Oe),[`${ce}-dashed`]:Nt(Oe),[`${ce}-link`]:tt(Oe),[`${ce}-text`]:_t(Oe),[`${ce}-ghost`]:kt(Oe.componentCls,Oe.ghostBg,Oe.colorBgContainer,Oe.colorBgContainer,Oe.colorTextDisabled,Oe.colorBorder)}},Je=function(Oe){let ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:pe,controlHeight:Dt,fontSize:Pe,lineHeight:ct,lineWidth:Wt,borderRadius:Tt,buttonPaddingHorizontal:Ie,iconCls:St}=Oe,We=Math.max(0,(Dt-Pe*ct)/2-Wt),we=`${pe}-icon-only`;return[{[`${pe}${ce}`]:{fontSize:Pe,height:Dt,padding:`${We}px ${Ie}px`,borderRadius:Tt,[`&${we}`]:{width:Dt,paddingInlineStart:0,paddingInlineEnd:0,[`&${pe}-round`]:{width:"auto"},[St]:{fontSize:Oe.buttonIconOnlyFontSize}},[`&${pe}-loading`]:{opacity:Oe.opacityLoading,cursor:"default"},[`${pe}-loading-icon`]:{transition:`width ${Oe.motionDurationSlow} ${Oe.motionEaseInOut}, opacity ${Oe.motionDurationSlow} ${Oe.motionEaseInOut}`}}},{[`${pe}${pe}-circle${ce}`]:ze(Oe)},{[`${pe}${pe}-round${ce}`]:Mt(Oe)}]},Be=Oe=>Je((0,$.TS)(Oe,{fontSize:Oe.contentFontSize})),xe=Oe=>{const ce=(0,$.TS)(Oe,{controlHeight:Oe.controlHeightSM,fontSize:Oe.contentFontSizeSM,padding:Oe.paddingXS,buttonPaddingHorizontal:Oe.paddingInlineSM,borderRadius:Oe.borderRadiusSM,buttonIconOnlyFontSize:Oe.onlyIconSizeSM});return Je(ce,`${Oe.componentCls}-sm`)},Le=Oe=>{const ce=(0,$.TS)(Oe,{controlHeight:Oe.controlHeightLG,fontSize:Oe.contentFontSizeLG,buttonPaddingHorizontal:Oe.paddingInlineLG,borderRadius:Oe.borderRadiusLG,buttonIconOnlyFontSize:Oe.onlyIconSizeLG});return Je(ce,`${Oe.componentCls}-lg`)},Ve=Oe=>{const{componentCls:ce}=Oe;return{[ce]:{[`&${ce}-block`]:{width:"100%"}}}},Ge=Oe=>{const{paddingInline:ce,onlyIconSize:pe}=Oe;return(0,$.TS)(Oe,{buttonPaddingHorizontal:ce,buttonIconOnlyFontSize:pe})},Qe=Oe=>({fontWeight:400,defaultShadow:`0 ${Oe.controlOutlineWidth}px 0 ${Oe.controlTmpOutline}`,primaryShadow:`0 ${Oe.controlOutlineWidth}px 0 ${Oe.controlOutline}`,dangerShadow:`0 ${Oe.controlOutlineWidth}px 0 ${Oe.colorErrorOutline}`,primaryColor:Oe.colorTextLightSolid,dangerColor:Oe.colorTextLightSolid,borderColorDisabled:Oe.colorBorder,defaultGhostColor:Oe.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:Oe.colorBgContainer,paddingInline:Oe.paddingContentHorizontal-Oe.lineWidth,paddingInlineLG:Oe.paddingContentHorizontal-Oe.lineWidth,paddingInlineSM:8-Oe.lineWidth,onlyIconSize:Oe.fontSizeLG,onlyIconSizeSM:Oe.fontSizeLG-2,onlyIconSizeLG:Oe.fontSizeLG+2,groupBorderColor:Oe.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:Oe.colorBgTextHover,defaultColor:Oe.colorText,defaultBg:Oe.colorBgContainer,defaultBorderColor:Oe.colorBorder,defaultBorderColorDisabled:Oe.colorBorder,contentFontSize:Oe.fontSize,contentFontSizeSM:Oe.fontSize,contentFontSizeLG:Oe.fontSizeLG});var dt=(0,j.Z)("Button",Oe=>{const ce=Ge(Oe);return[De(ce),xe(ce),Be(ce),Le(ce),Ve(ce),ft(ce),Te(ce)]},Qe),wt=e(74207);function tr(Oe,ce){return{[`&-item:not(${ce}-last-item)`]:{marginBottom:-Oe.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Jt(Oe,ce){return{[`&-item:not(${ce}-first-item):not(${ce}-last-item)`]:{borderRadius:0},[`&-item${ce}-first-item:not(${ce}-last-item)`]:{[`&, &${Oe}-sm, &${Oe}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${ce}-last-item:not(${ce}-first-item)`]:{[`&, &${Oe}-sm, &${Oe}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function gt(Oe){const ce=`${Oe.componentCls}-compact-vertical`;return{[ce]:Object.assign(Object.assign({},tr(Oe,ce)),Jt(Oe.componentCls,ce))}}var it=(0,j.b)(["Button","compact"],Oe=>{const ce=Ge(Oe);return[(0,wt.c)(ce),gt(ce)]},Qe),Xt=function(Oe,ce){var pe={};for(var Dt in Oe)Object.prototype.hasOwnProperty.call(Oe,Dt)&&ce.indexOf(Dt)<0&&(pe[Dt]=Oe[Dt]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Dt=Object.getOwnPropertySymbols(Oe);Pe{var pe,Dt;const{loading:Pe=!1,prefixCls:ct,type:Wt="default",danger:Tt,shape:Ie="default",size:St,styles:We,disabled:we,className:bt,rootClassName:Rt,children:je,icon:Ar,ghost:Ct=!1,block:Yr=!1,htmlType:en="button",classNames:Cr,style:Rr={}}=Oe,pr=Xt(Oe,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:zr,autoInsertSpaceInButton:an,direction:mn,button:Yt}=(0,r.useContext)(h.E_),mt=zr("btn",ct),[ye,ot]=dt(mt),Lt=(0,r.useContext)(o.Z),_r=we!=null?we:Lt,mr=(0,r.useContext)(m),Jr=(0,r.useMemo)(()=>Zt(Pe),[Pe]),[$r,En]=(0,r.useState)(Jr.loading),[xt,Ir]=(0,r.useState)(!1),In=(0,r.createRef)(),Qn=(0,f.sQ)(ce,In),Mn=r.Children.count(je)===1&&!Ar&&!F(Wt);(0,r.useEffect)(()=>{let Ti=null;Jr.delay>0?Ti=setTimeout(()=>{Ti=null,En(!0)},Jr.delay):En(Jr.loading);function Di(){Ti&&(clearTimeout(Ti),Ti=null)}return Di},[Jr]),(0,r.useEffect)(()=>{if(!Qn||!Qn.current||an===!1)return;const Ti=Qn.current.textContent;Mn&&C(Ti)?xt||Ir(!0):xt&&Ir(!1)},[Qn]);const ti=Ti=>{const{onClick:Di}=Oe;if($r||_r){Ti.preventDefault();return}Di==null||Di(Ti)},ii=an!==!1,{compactSize:Si,compactItemClassnames:pi}=(0,x.ri)(mt,mn),ki={large:"lg",small:"sm",middle:void 0},ua=(0,a.Z)(Ti=>{var Di,Ci;return(Ci=(Di=St!=null?St:Si)!==null&&Di!==void 0?Di:mr)!==null&&Ci!==void 0?Ci:Ti}),Ji=ua&&ki[ua]||"",Ki=$r?"loading":Ar,es=(0,c.Z)(pr,["navigate"]),Yi=l()(mt,ot,{[`${mt}-${Ie}`]:Ie!=="default"&&Ie,[`${mt}-${Wt}`]:Wt,[`${mt}-${Ji}`]:Ji,[`${mt}-icon-only`]:!je&&je!==0&&!!Ki,[`${mt}-background-ghost`]:Ct&&!F(Wt),[`${mt}-loading`]:$r,[`${mt}-two-chinese-chars`]:xt&&ii&&!$r,[`${mt}-block`]:Yr,[`${mt}-dangerous`]:!!Tt,[`${mt}-rtl`]:mn==="rtl"},pi,bt,Rt,Yt==null?void 0:Yt.className),Ta=Object.assign(Object.assign({},Yt==null?void 0:Yt.style),Rr),Yn=l()(Cr==null?void 0:Cr.icon,(pe=Yt==null?void 0:Yt.classNames)===null||pe===void 0?void 0:pe.icon),It=Object.assign(Object.assign({},(We==null?void 0:We.icon)||{}),((Dt=Yt==null?void 0:Yt.styles)===null||Dt===void 0?void 0:Dt.icon)||{}),Vi=Ar&&!$r?r.createElement(ne,{prefixCls:mt,className:Yn,style:It},Ar):r.createElement(J,{existIcon:!!Ar,prefixCls:mt,loading:!!$r}),oi=je||je===0?N(je,Mn&&ii):null;if(es.href!==void 0)return ye(r.createElement("a",Object.assign({},es,{className:l()(Yi,{[`${mt}-disabled`]:_r}),style:Ta,onClick:ti,ref:Qn}),Vi,oi));let ja=r.createElement("button",Object.assign({},pr,{type:en,className:Yi,style:Ta,onClick:ti,disabled:_r,ref:Qn}),Vi,oi,pi&&r.createElement(it,{key:"compact",prefixCls:mt}));return F(Wt)||(ja=r.createElement(u.Z,{component:"Button",disabled:!!$r},ja)),ye(ja)},nr=(0,r.forwardRef)(Ht);nr.Group=S,nr.__ANT_BUTTON=!0;var Gt=nr},3113:function(d,_,e){"use strict";var r=e(67797);_.ZP=r.Z},43604:function(d,_,e){"use strict";var r=e(37028);_.Z=r.Z},1684:function(d,_,e){"use strict";e.d(_,{n:function(){return l}});var r=e(59301);const i=r.createContext(!1),l=c=>{let{children:f,disabled:u}=c;const h=r.useContext(i);return r.createElement(i.Provider,{value:u!=null?u:h},f)};_.Z=i},52946:function(d,_,e){"use strict";e.d(_,{q:function(){return l}});var r=e(59301);const i=r.createContext(void 0),l=c=>{let{children:f,size:u}=c;const h=r.useContext(i);return r.createElement(i.Provider,{value:u||h},f)};_.Z=i},36355:function(d,_,e){"use strict";e.d(_,{E_:function(){return c},oR:function(){return i}});var r=e(59301);const i="anticon",l=(u,h)=>h||(u?`ant-${u}`:"ant"),c=r.createContext({getPrefixCls:l,iconPrefixCls:i}),{Consumer:f}=c},19716:function(d,_,e){"use strict";var r=e(59301),i=e(52946);const l=c=>{const f=r.useContext(i.Z);return r.useMemo(()=>c?typeof c=="string"?c!=null?c:f:c instanceof Function?c(f):f:f,[c,f])};_.Z=l},92736:function(d,_,e){"use strict";e.d(_,{ZP:function(){return yt},w6:function(){return kt}});var r=e(36237),i=e(18418),l=e(80547),c=e(24434),f=e(59301),u=e(28726),h=e(98044),o=e(41887);const a="internalMark";var p=Ne=>{const{locale:vt={},children:Nt,_ANT_MARK__:tt}=Ne;f.useEffect(()=>(0,h.f)(vt&&vt.Modal),[vt]);const _t=f.useMemo(()=>Object.assign(Object.assign({},vt),{exist:!0}),[vt]);return f.createElement(o.Z.Provider,{value:_t},Nt)},y=e(31724),m=e(45246),b=e(34117),S=e(36355),R=e(30071),L=e(64993),C=e(47273),D=e(810);const F=`-ant-${Date.now()}-${Math.random()}`;function B(Ne,vt){const Nt={},tt=(Je,Be)=>{let xe=Je.clone();return xe=(Be==null?void 0:Be(xe))||xe,xe.toRgbString()},_t=(Je,Be)=>{const xe=new L.C(Je),Le=(0,R.generate)(xe.toRgbString());Nt[`${Be}-color`]=tt(xe),Nt[`${Be}-color-disabled`]=Le[1],Nt[`${Be}-color-hover`]=Le[4],Nt[`${Be}-color-active`]=Le[6],Nt[`${Be}-color-outline`]=xe.clone().setAlpha(.2).toRgbString(),Nt[`${Be}-color-deprecated-bg`]=Le[0],Nt[`${Be}-color-deprecated-border`]=Le[2]};if(vt.primaryColor){_t(vt.primaryColor,"primary");const Je=new L.C(vt.primaryColor),Be=(0,R.generate)(Je.toRgbString());Be.forEach((Le,Ve)=>{Nt[`primary-${Ve+1}`]=Le}),Nt["primary-color-deprecated-l-35"]=tt(Je,Le=>Le.lighten(35)),Nt["primary-color-deprecated-l-20"]=tt(Je,Le=>Le.lighten(20)),Nt["primary-color-deprecated-t-20"]=tt(Je,Le=>Le.tint(20)),Nt["primary-color-deprecated-t-50"]=tt(Je,Le=>Le.tint(50)),Nt["primary-color-deprecated-f-12"]=tt(Je,Le=>Le.setAlpha(Le.getAlpha()*.12));const xe=new L.C(Be[0]);Nt["primary-color-active-deprecated-f-30"]=tt(xe,Le=>Le.setAlpha(Le.getAlpha()*.3)),Nt["primary-color-active-deprecated-d-02"]=tt(xe,Le=>Le.darken(2))}return vt.successColor&&_t(vt.successColor,"success"),vt.warningColor&&_t(vt.warningColor,"warning"),vt.errorColor&&_t(vt.errorColor,"error"),vt.infoColor&&_t(vt.infoColor,"info"),` +`)}))):(d.send(JSON.stringify({type:"toggleLockExit",data:!1})),d.send(JSON.stringify({type:"close-disabled-switchscreen"})),d.send(JSON.stringify({type:"close-only-allow-runapp"})),d.send(JSON.stringify({type:"network-open"})))}catch(r){}},addJumping=()=>{const d=document.querySelector('a[title="\u589E\u52A0\u586B\u7A7A"]'),_=d==null?void 0:d.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=d=>d!=null&&d.forbid_student_visit?(antd__WEBPACK_IMPORTED_MODULE_15__.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}},d==null?void 0:d.username,"\u8001\u5E08 "),"\u5DF2\u5173\u95ED\u8BE5\u8BFE\u5802\uFF0C\u5B66\u751F\u7528\u6237\u6682\u65F6\u65E0\u6CD5\u8BBF\u95EE ")}),!0):!1,getExamRestrictionInfo=d=>{const _=[];return d.is_locked&&_.push("\u8003\u8BD5\u89E3\u9501\u7801"),d.login_restrict&&_.push("\u8003\u8BD5\u767B\u5F55\u9650\u5236"),d.screen_open&&_.push("\u5207\u5C4F\u540E\u5F3A\u5236\u4EA4\u5377"),d.ip_bind&&_.push("IP\u5730\u5740\u7ED1\u5B9A"),(d.ip_limit==="pub"||d.ip_limit==="inner")&&_.push("\u9650\u5236\u8003\u8BD5\u8BBF\u95EEIP"),d.open_camera&&_.push("\u8003\u8BD5\u4E2D\u542F\u7528\u62CD\u7167\u529F\u80FD\u8FDB\u884C\u76D1\u8003\u548C\u884C\u4E3A\u5206\u6790"),d.identity_verify&&_.push("\u8003\u8BD5\u524D\u4EBA\u8138\u8EAB\u4EFD\u6838\u9A8C"),d.open_phone_video_recording&&_.push("\u8003\u8BD5\u4E2D\u5F00\u542F\u624B\u673A\u89C6\u9891\u5F55\u5236"),_.length>0?_.join("\u3001"):""},releaseRuleDataAdjust=d=>{const _=d.reduce((r,i)=>{const l=`${i.publish_time}_${i.end_time}_${i.is_admin}`;return r[l]?(r[l].group_name.push(i.group_name),r[l].group_id.push(i.group_id)):r[l]={publish_time:i.publish_time,end_time:i.end_time,is_admin:i.is_admin,group_name:[i.group_name],group_id:[i.group_id]},r},{});return Object.values(_).map(r=>__spreadProps(__spreadValues({},r),{group_name:r.group_name.flat(),group_id:r.group_id.flat()}))},showInstallWebRtcDoc=()=>new Promise((d,_)=>__async(void 0,null,function*(){const e=yield(0,_utils_fetch__WEBPACK_IMPORTED_MODULE_10__.ZP)("/api/documents/webrtc_content",{method:"get"});antd__WEBPACK_IMPORTED_MODULE_15__.default.info({title:"WebRTC\u63D2\u4EF6\u5B89\u88C5\u6559\u7A0B",width:"1000px",centered:!0,content:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{style:{maxHeight:"70vh",overflow:"auto"}},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_RenderHtml__WEBPACK_IMPORTED_MODULE_9__.Z,{value:(e==null?void 0:e.data)||""}))}),d(e==null?void 0:e.data)}));function skipNetLogin(d){var _,e,r;const i=((_=window.location)==null?void 0:_.hostname)==="app-kyxt.pcl.ac.cn";if(d)return i;const l=(0,umi__WEBPACK_IMPORTED_MODULE_5__.getDvaApp)()._store.getState();if((e=l.globalSetting)!=null&&e.setting.openi_url){window.location.href=(r=l.globalSetting)==null?void 0:r.setting.openi_url;return}i?window.open("https://openi.pcl.ac.cn/login/oauth/authorize?client_id=5109524b-c405-4809-8bdf-dc4ceb713064&redirect_uri=https://app-kyxt.pcl.ac.cn/auth/openi/login&response_type=code&state=STATE","_self"):window.open("https://openi.pcl.ac.cn/login/oauth/authorize?client_id=526db77d-71f4-418c-bd8d-61fa388c4c2e&redirect_uri=https://app-kyxt.pcl.ac.cn/auth/openi/login&response_type=code&state=STATE","_self")}function copyToClipboard(d){return navigator.clipboard?navigator.clipboard.writeText(d).then(()=>(console.log("Text copied to clipboard successfully!"),!0)).catch(_=>{throw console.error("Failed to copy text: ",_),_}):new Promise((_,e)=>{const r=document.createElement("textarea");r.value=d,document.body.appendChild(r),r.select();try{const i=document.execCommand("copy");document.body.removeChild(r),i?(console.log("Text copied to clipboard successfully!"),_(!0)):(console.error("Failed to copy text using execCommand."),e(!1))}catch(i){document.body.removeChild(r),console.error("Failed to copy text: ",i),e(i)}})}const isArrayBuffer=d=>Object.prototype.toString.call(d)==="[object ArrayBuffer]",parseArrayBufferAsText=(d,_="utf-8")=>isArrayBuffer(d)?new TextDecoder(_).decode(d):d,numFormat=d=>d?(d>=1e3&&(d=d/1e3+"K"),d):0,aiReviewConfigformatChecks=d=>{if(!d||d.length===0)return!0;const _=new Set,e=new Set;let r=!0,i=!0;const l=d==null?void 0:d.reduce((c,f)=>{_!=null&&_.has(f.name)&&(r=!1),_==null||_.add(f.name),e!=null&&e.has(f.content)&&(i=!1),e==null||e.add(f.content);const u=parseFloat(f.weight);return c+u},0);return r?i?parseFloat(l.toFixed(2))!=100?(antd__WEBPACK_IMPORTED_MODULE_14__.ZP.warning("\u6240\u6709\u8BC4\u5206\u9879\u76EE\u7684\u6743\u91CD\u4E4B\u548C\u5FC5\u987B\u4E3A100%"),!1):!0:(antd__WEBPACK_IMPORTED_MODULE_14__.ZP.warning("\u8BC4\u5206\u6807\u51C6\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D!"),!1):(antd__WEBPACK_IMPORTED_MODULE_14__.ZP.warning("\u8BC4\u5206\u9879\u76EE\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D!"),!1)},handleJupyterlabModal=(d={})=>{if((d==null?void 0:d.status)===300004){antd__WEBPACK_IMPORTED_MODULE_15__.default.warning({centered:!0,title:"\u63D0\u793A",icon:null,width:550,content:react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,"\u521B\u5EFA\u4EFB\u52A1\u5931\u8D25\uFF0C\u60A8\u8D26\u53F7\u5F53\u524D\u79EF\u5206\u4E0D\u8DB3\uFF0C\u65E0\u6CD5\u8FDB\u884C\u6A21\u62DF\u5B9E\u6218\u3002\u53EF\u70B9\u51FB\u4E0B\u65B9\u94FE\u63A5\u8FDB\u5165\u4E2A\u4EBA\u7B97\u529B\u79EF\u5206\u5956\u52B1\u89C4\u5219\u9875\u9762\uFF0C\u5EFA\u8BAE\u6309\u7167\u89C4\u5219\u83B7\u53D6\u79EF\u5206\u3002",react__WEBPACK_IMPORTED_MODULE_0__.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_0__.createElement("a",{className:"mt10",target:"_blank",href:"https://openi.pcl.ac.cn/reward/point/rule"},"https://openi.pcl.ac.cn/reward/point/rule"))});return}antd__WEBPACK_IMPORTED_MODULE_15__.default.warning({centered:!0,title:"\u63D0\u793A",icon:null,width:550,content:react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,"\u521B\u5EFA\u4EFB\u52A1\u5931\u8D25\uFF0C\u60A8\u8D26\u53F7\u4E0B\u5DF2\u521B\u5EFA5\u4E2A\u8C03\u8BD5\u4EFB\u52A1\u6216\u67091\u4E2A\u8C03\u8BD5\u4EFB\u52A1\u6B63\u5728\u8FD0\u884C\u3002\u8BF7\u70B9\u51FB\u4E0B\u65B9\u94FE\u63A5\u8DF3\u8F6C\u81F3\u4EFB\u52A1\u7BA1\u7406\u9875\u9762\uFF0C\u6E05\u7406\u8C03\u8BD5\u4EFB\u52A1\u540E\uFF0C\u518D\u8FDB\u884C\u6A21\u62DF\u6311\u6218\u3002",react__WEBPACK_IMPORTED_MODULE_0__.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_0__.createElement("a",{className:"mt10",target:"_blank",href:"https://openi.pcl.ac.cn/cloudbrains"},"https://openi.pcl.ac.cn/cloudbrains"))})}},68312:function(d,_,e){"use strict";e.d(_,{t:function(){return r}});const r=l=>{var c=/^(\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 c.test(l)},i=l=>{var c=/^(\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 c.test(l)}},50731:function(d,_,e){"use strict";e.d(_,{Il:function(){return f},Ov:function(){return u},T$:function(){return o}});var r=e(38127),i=e(59301),l=e(35338),c=["element"],f=i.createContext({});function u(){return i.useContext(f)}function h(){var y=(0,l.TH)(),m=u(),b=m.clientRoutes,S=(0,l.fp)(b,y.pathname);return S||[]}function o(){var y,m=h().slice(-1),b=((y=m[0])===null||y===void 0?void 0:y.route)||{},S=b.element,R=(0,r.Z)(b,c);return R}function a(){var y=h(),m=u(),b=m.serverLoaderData,S=m.basename,R=React.useState(function(){var F={},B=!1;return y.forEach(function(N){var K=b[N.route.id];K&&(Object.assign(F,K),B=!0)}),B?F:void 0}),L=_slicedToArray(R,2),C=L[0],D=L[1];return React.useEffect(function(){window.__UMI_LOADER_DATA__||Promise.all(y.filter(function(F){return F.route.hasServerLoader}).map(function(F){return new Promise(function(B){fetchServerLoader({id:F.route.id,basename:S,cb:B})})})).then(function(F){if(F.length){var B={};F.forEach(function(N){Object.assign(B,N)}),D(B)}})},[]),{data:C}}function x(){var y=useRouteData(),m=u();return{data:m.clientLoaderData[y.route.id]}}function p(){var y=a(),m=x();return{data:_objectSpread(_objectSpread({},y.data),m.data)}}},91392:function(d){var _={en_GB:"en-gb",en_US:"en",zh_CN:"zh-cn",zh_TW:"zh-tw"},e=function(i){var l=_[i];return l||i.split("_")[0]};d.exports=function(r,i,l){var c=i.prototype.locale;i.prototype.locale=function(f){return typeof f=="string"&&(f=e(f)),c.call(this,f)}}},92806:function(d,_,e){"use strict";var r=e(41799),i=e(59301),l=e(3113),c=e(67797);function f(h){return!!(h&&h.then)}const u=h=>{const{type:o,children:a,prefixCls:x,buttonProps:p,close:y,autoFocus:m,emitEvent:b,isSilent:S,quitOnNullishReturnValue:R,actionFn:L}=h,C=i.useRef(!1),D=i.useRef(null),[F,B]=(0,r.Z)(!1),N=function(){y==null||y.apply(void 0,arguments)};i.useEffect(()=>{let W=null;return m&&(W=setTimeout(()=>{var ae;(ae=D.current)===null||ae===void 0||ae.focus()})),()=>{W&&clearTimeout(W)}},[]);const K=W=>{f(W)&&(B(!0),W.then(function(){B(!1,!0),N.apply(void 0,arguments),C.current=!1},ae=>{if(B(!1,!0),C.current=!1,!(S!=null&&S()))return Promise.reject(ae)}))},V=W=>{if(C.current)return;if(C.current=!0,!L){N();return}let ae;if(b){if(ae=L(W),R&&!f(ae)){C.current=!1,N(W);return}}else if(L.length)ae=L(y),C.current=!1;else if(ae=L(),!ae){N();return}K(ae)};return i.createElement(l.ZP,Object.assign({},(0,c.n)(o),{onClick:V,loading:F,prefixCls:x},p,{ref:D}),a)};_.Z=u},53487:function(d,_,e){"use strict";e.d(_,{Z:function(){return u},i:function(){return f}});var r=e(18929),i=e(59301),l=e(92736),c=e(36355);function f(h){return function(a){return i.createElement(l.ZP,{theme:{token:{motion:!1,zIndexPopupBase:0}}},i.createElement(h,Object.assign({},a)))}}function u(h,o,a,x){function p(y){const{prefixCls:m,style:b}=y,S=i.useRef(null),[R,L]=i.useState(0),[C,D]=i.useState(0),[F,B]=(0,r.Z)(!1,{value:y.open}),{getPrefixCls:N}=i.useContext(c.E_),K=N(o||"select",m);i.useEffect(()=>{if(B(!0),typeof ResizeObserver!="undefined"){const W=new ResizeObserver(ne=>{const se=ne[0].target;L(se.offsetHeight+8),D(se.offsetWidth)}),ae=setInterval(()=>{var ne;const se=a?`.${a(K)}`:`.${K}-dropdown`,q=(ne=S.current)===null||ne===void 0?void 0:ne.querySelector(se);q&&(clearInterval(ae),W.observe(q))},10);return()=>{clearInterval(ae),W.disconnect()}}},[]);let V=Object.assign(Object.assign({},y),{style:Object.assign(Object.assign({},b),{margin:0}),open:F,visible:F,getPopupContainer:()=>S.current});return x&&(V=x(V)),i.createElement("div",{ref:S,style:{paddingBottom:R,position:"relative",minWidth:C}},i.createElement(h,Object.assign({},V)))}return f(p)}},36785:function(d,_,e){"use strict";e.d(_,{o2:function(){return f},yT:function(){return u}});var r=e(94480),i=e(33166);const l=i.i.map(h=>`${h}-inverse`),c=["success","processing","error","default","warning"];function f(h){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,r.Z)(l),(0,r.Z)(i.i)).includes(h):i.i.includes(h)}function u(h){return c.includes(h)}},47729:function(d,_,e){"use strict";e.d(_,{Z:function(){return c}});var r=e(99267),i=e(59301);function l(f,u,h){return typeof f=="boolean"?f:u===void 0?!!h:u!==!1&&u!==null}function c(f,u,h){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:i.createElement(r.Z,null),a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!l(f,u,a))return[!1,null];const p=typeof u=="boolean"||u===void 0||u===null?o:u;return[!0,h?h(p):p]}},62892:function(d,_,e){"use strict";e.d(_,{m:function(){return h}});const r=()=>({height:0,opacity:0}),i=o=>{const{scrollHeight:a}=o;return{height:a,opacity:1}},l=o=>({height:o?o.offsetHeight:0}),c=(o,a)=>(a==null?void 0:a.deadline)===!0||a.propertyName==="height",f=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:r,onEnterStart:r,onAppearActive:i,onEnterActive:i,onLeaveStart:l,onLeaveActive:r,onAppearEnd:c,onEnterEnd:c,onLeaveEnd:c,motionDeadline:500}},u=null,h=(o,a,x)=>x!==void 0?x:`${o}-${a}`;_.Z=f},79676:function(d,_,e){"use strict";e.d(_,{Z:function(){return u}});var r=e(19447);function i(h,o,a,x){if(x===!1)return{adjustX:!1,adjustY:!1};const p=x&&typeof x=="object"?x:{},y={};switch(h){case"top":case"bottom":y.shiftX=o.dropdownArrowOffset*2+a;break;case"left":case"right":y.shiftY=o.dropdownArrowOffsetVertical*2+a;break}const m=Object.assign(Object.assign({},y),p);return m.shiftX||(m.adjustX=!0),m.shiftY||(m.adjustY=!0),m}const l={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},c={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},f=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function u(h){const{arrowWidth:o,autoAdjustOverflow:a,arrowPointAtCenter:x,offset:p,borderRadius:y,visibleFirst:m}=h,b=o/2,S={};return Object.keys(l).forEach(R=>{const L=x&&c[R]||l[R],C=Object.assign(Object.assign({},L),{offset:[0,0]});switch(S[R]=C,f.has(R)&&(C.autoArrow=!1),R){case"top":case"topLeft":case"topRight":C.offset[1]=-b-p;break;case"bottom":case"bottomLeft":case"bottomRight":C.offset[1]=b+p;break;case"left":case"leftTop":case"leftBottom":C.offset[0]=-b-p;break;case"right":case"rightTop":case"rightBottom":C.offset[0]=b+p;break}const D=(0,r.fS)({contentRadius:y,limitVerticalRadius:!0});if(x)switch(R){case"topLeft":case"bottomLeft":C.offset[0]=-D.dropdownArrowOffset-b;break;case"topRight":case"bottomRight":C.offset[0]=D.dropdownArrowOffset+b;break;case"leftTop":case"rightTop":C.offset[1]=-D.dropdownArrowOffset-b;break;case"leftBottom":case"rightBottom":C.offset[1]=D.dropdownArrowOffset+b;break}C.overflow=i(R,D,o,a),m&&(C.htmlRegion="visibleFirst")}),S}},92343:function(d,_,e){"use strict";var r;e.d(_,{M2:function(){return c},Tm:function(){return u},l$:function(){return l},wm:function(){return f}});var i=e(59301);const{isValidElement:l}=r||(r=e.t(i,2));function c(h){return h&&l(h)&&h.type===i.Fragment}function f(h,o,a){return l(h)?i.cloneElement(h,typeof a=="function"?a(h.props||{}):a):o}function u(h,o){return f(h,h,o)}},69507:function(d,_,e){"use strict";e.d(_,{ZP:function(){return u},c4:function(){return l},m9:function(){return h}});var r=e(59301),i=e(88088);const l=["xxl","xl","lg","md","sm","xs"],c=o=>({xs:`(max-width: ${o.screenXSMax}px)`,sm:`(min-width: ${o.screenSM}px)`,md:`(min-width: ${o.screenMD}px)`,lg:`(min-width: ${o.screenLG}px)`,xl:`(min-width: ${o.screenXL}px)`,xxl:`(min-width: ${o.screenXXL}px)`}),f=o=>{const a=o,x=[].concat(l).reverse();return x.forEach((p,y)=>{const m=p.toUpperCase(),b=`screen${m}Min`,S=`screen${m}`;if(!(a[b]<=a[S]))throw new Error(`${b}<=${S} fails : !(${a[b]}<=${a[S]})`);if(y{const x=new Map;let p=-1,y={};return{matchHandlers:{},dispatch(m){return y=m,x.forEach(b=>b(y)),x.size>=1},subscribe(m){return x.size||this.register(),p+=1,x.set(p,m),m(y),p},unsubscribe(m){x.delete(m),x.size||this.unregister()},unregister(){Object.keys(a).forEach(m=>{const b=a[m],S=this.matchHandlers[b];S==null||S.mql.removeListener(S==null?void 0:S.listener)}),x.clear()},register(){Object.keys(a).forEach(m=>{const b=a[m],S=L=>{let{matches:C}=L;this.dispatch(Object.assign(Object.assign({},y),{[m]:C}))},R=window.matchMedia(b);R.addListener(S),this.matchHandlers[b]={mql:R,listener:S},S(R)})},responsiveMap:a}},[o])}const h=(o,a)=>{if(a&&typeof a=="object")for(let x=0;x{const{componentCls:se,colorPrimary:q}=ne;return{[se]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${q})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${ne.motionEaseOutCirc}`,`opacity 2s ${ne.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${ne.motionEaseInOut}`,`opacity 0.35s ${ne.motionEaseInOut}`].join(",")}}}}};var x=(0,o.Z)("Wave",ne=>[a(ne)]),p=e(70425),y=e(16089),m=e(77900),b=e(1585);function S(ne){const se=(ne||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return se&&se[1]&&se[2]&&se[3]?!(se[1]===se[2]&&se[2]===se[3]):!0}function R(ne){return ne&&ne!=="#fff"&&ne!=="#ffffff"&&ne!=="rgb(255, 255, 255)"&&ne!=="rgba(255, 255, 255, 1)"&&S(ne)&&!/rgba\((?:\d*, ){3}0\)/.test(ne)&&ne!=="transparent"}function L(ne){const{borderTopColor:se,borderColor:q,backgroundColor:Q}=getComputedStyle(ne);return R(se)?se:R(q)?q:R(Q)?Q:null}var C=e(4572);function D(ne){return Number.isNaN(ne)?0:ne}const F=ne=>{const{className:se,target:q,component:Q}=ne,H=f.useRef(null),[oe,ee]=f.useState(null),[J,le]=f.useState([]),[$,j]=f.useState(0),[ie,ve]=f.useState(0),[Te,De]=f.useState(0),[Ke,ze]=f.useState(0),[Mt,Et]=f.useState(!1),kt={left:$,top:ie,width:Te,height:Ke,borderRadius:J.map(yt=>`${yt}px`).join(" ")};oe&&(kt["--wave-color"]=oe);function $t(){const yt=getComputedStyle(q);ee(L(q));const Ne=yt.position==="static",{borderLeftWidth:vt,borderTopWidth:Nt}=yt;j(Ne?q.offsetLeft:D(-parseFloat(vt))),ve(Ne?q.offsetTop:D(-parseFloat(Nt))),De(q.offsetWidth),ze(q.offsetHeight);const{borderTopLeftRadius:tt,borderTopRightRadius:_t,borderBottomLeftRadius:ft,borderBottomRightRadius:Je}=yt;le([tt,_t,Je,ft].map(Be=>D(parseFloat(Be))))}if(f.useEffect(()=>{if(q){const yt=(0,y.Z)(()=>{$t(),Et(!0)});let Ne;return typeof ResizeObserver!="undefined"&&(Ne=new ResizeObserver($t),Ne.observe(q)),()=>{y.Z.cancel(yt),Ne==null||Ne.disconnect()}}},[]),!Mt)return null;const Bt=(Q==="Checkbox"||Q==="Radio")&&(q==null?void 0:q.classList.contains(C.A));return f.createElement(m.default,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(yt,Ne)=>{var vt;if(Ne.deadline||Ne.propertyName==="opacity"){const Nt=(vt=H.current)===null||vt===void 0?void 0:vt.parentElement;(0,b.v)(Nt).then(()=>{Nt==null||Nt.remove()})}return!1}},yt=>{let{className:Ne}=yt;return f.createElement("div",{ref:H,className:i()(se,{"wave-quick":Bt},Ne),style:kt})})};var N=(ne,se)=>{var q;const{component:Q}=se;if(Q==="Checkbox"&&!(!((q=ne.querySelector("input"))===null||q===void 0)&&q.checked))return;const H=document.createElement("div");H.style.position="absolute",H.style.left="0px",H.style.top="0px",ne==null||ne.insertBefore(H,ne==null?void 0:ne.firstChild),(0,b.s)(f.createElement(F,Object.assign({},se,{target:ne})),H)},K=e(88088);function V(ne,se,q){const{wave:Q}=f.useContext(u.E_),[,H,oe]=(0,K.Z)(),ee=(0,p.useEvent)($=>{const j=ne.current;if(Q!=null&&Q.disabled||!j)return;const ie=j.querySelector(`.${C.A}`)||j,{showEffect:ve}=Q||{};(ve||N)(ie,{className:se,token:H,component:q,event:$,hashId:oe})}),J=f.useRef();return $=>{y.Z.cancel(J.current),J.current=(0,y.Z)(()=>{ee($)})}}var ae=ne=>{const{children:se,disabled:q,component:Q}=ne,{getPrefixCls:H}=(0,f.useContext)(u.E_),oe=(0,f.useRef)(null),ee=H("wave"),[,J]=x(ee),le=V(oe,i()(ee,J),Q);if(f.useEffect(()=>{const j=oe.current;if(!j||j.nodeType!==1||q)return;const ie=ve=>{!(0,c.Z)(ve.target)||!j.getAttribute||j.getAttribute("disabled")||j.disabled||j.className.includes("disabled")||j.className.includes("-leave")||le(ve)};return j.addEventListener("click",ie,!0),()=>{j.removeEventListener("click",ie,!0)}},[q]),!f.isValidElement(se))return se!=null?se:null;const $=(0,l.Yr)(se)?(0,l.sQ)(se.ref,oe):oe;return(0,h.Tm)(se,{ref:$})}},4572:function(d,_,e){"use strict";e.d(_,{A:function(){return r}});const r="ant-wave-target"},67797:function(d,_,e){"use strict";e.d(_,{n:function(){return Ft},Z:function(){return Gt}});var r=e(59301),i=e(92310),l=e.n(i),c=e(2738),f=e(8654),u=e(14088),h=e(36355),o=e(1684),a=e(19716),x=e(33234),p=e(88088),y=function(Oe,ce){var pe={};for(var Dt in Oe)Object.prototype.hasOwnProperty.call(Oe,Dt)&&ce.indexOf(Dt)<0&&(pe[Dt]=Oe[Dt]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Dt=Object.getOwnPropertySymbols(Oe);Pe{const{getPrefixCls:ce,direction:pe}=r.useContext(h.E_),{prefixCls:Dt,size:Pe,className:ct}=Oe,Wt=y(Oe,["prefixCls","size","className"]),Tt=ce("btn-group",Dt),[,,Ie]=(0,p.Z)();let St="";switch(Pe){case"large":St="lg";break;case"small":St="sm";break;case"middle":case void 0:break;default:}const We=l()(Tt,{[`${Tt}-${St}`]:St,[`${Tt}-rtl`]:pe==="rtl"},ct,Ie);return r.createElement(m.Provider,{value:Pe},r.createElement("div",Object.assign({},Wt,{className:We})))},R=e(92343);const L=/^[\u4e00-\u9fa5]{2}$/,C=L.test.bind(L);function D(Oe){return typeof Oe=="string"}function F(Oe){return Oe==="text"||Oe==="link"}function B(Oe,ce){if(Oe==null)return;const pe=ce?" ":"";return typeof Oe!="string"&&typeof Oe!="number"&&D(Oe.type)&&C(Oe.props.children)?(0,R.Tm)(Oe,{children:Oe.props.children.split("").join(pe)}):D(Oe)?C(Oe)?r.createElement("span",null,Oe.split("").join(pe)):r.createElement("span",null,Oe):(0,R.M2)(Oe)?r.createElement("span",null,Oe):Oe}function N(Oe,ce){let pe=!1;const Dt=[];return r.Children.forEach(Oe,Pe=>{const ct=typeof Pe,Wt=ct==="string"||ct==="number";if(pe&&Wt){const Tt=Dt.length-1,Ie=Dt[Tt];Dt[Tt]=`${Ie}${Pe}`}else Dt.push(Pe);pe=Wt}),r.Children.map(Dt,Pe=>B(Pe,ce))}const K=null,V=null,W=null;var ne=(0,r.forwardRef)((Oe,ce)=>{const{className:pe,style:Dt,children:Pe,prefixCls:ct}=Oe,Wt=l()(`${ct}-icon`,pe);return r.createElement("span",{ref:ce,className:Wt,style:Dt},Pe)}),se=e(58617),q=e(77900);const Q=(0,r.forwardRef)((Oe,ce)=>{let{prefixCls:pe,className:Dt,style:Pe,iconClassName:ct}=Oe;const Wt=l()(`${pe}-loading-icon`,Dt);return r.createElement(ne,{prefixCls:pe,className:Wt,style:Pe,ref:ce},r.createElement(se.Z,{className:ct}))}),H=()=>({width:0,opacity:0,transform:"scale(0)"}),oe=Oe=>({width:Oe.scrollWidth,opacity:1,transform:"scale(1)"});var J=Oe=>{const{prefixCls:ce,loading:pe,existIcon:Dt,className:Pe,style:ct}=Oe,Wt=!!pe;return Dt?r.createElement(Q,{prefixCls:ce,className:Pe,style:ct}):r.createElement(q.default,{visible:Wt,motionName:`${ce}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:H,onAppearActive:oe,onEnterStart:H,onEnterActive:oe,onLeaveStart:oe,onLeaveActive:H},(Tt,Ie)=>{let{className:St,style:We}=Tt;return r.createElement(Q,{prefixCls:ce,className:Pe,style:Object.assign(Object.assign({},ct),We),ref:Ie,iconClassName:St})})},le=e(17313),$=e(37613),j=e(83116);const ie=(Oe,ce)=>({[`> span, > ${Oe}`]:{"&:not(:last-child)":{[`&, & > ${Oe}`]:{"&:not(:disabled)":{borderInlineEndColor:ce}}},"&:not(:first-child)":{[`&, & > ${Oe}`]:{"&:not(:disabled)":{borderInlineStartColor:ce}}}}});var Te=Oe=>{const{componentCls:ce,fontSize:pe,lineWidth:Dt,groupBorderColor:Pe,colorErrorHover:ct}=Oe;return{[`${ce}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${ce}`]:{"&:not(:last-child)":{[`&, & > ${ce}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-Dt,[`&, & > ${ce}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[ce]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${ce}-icon-only`]:{fontSize:pe}},ie(`${ce}-primary`,Pe),ie(`${ce}-danger`,ct)]}};const De=Oe=>{const{componentCls:ce,iconCls:pe,fontWeight:Dt}=Oe;return{[ce]:{outline:"none",position:"relative",display:"inline-block",fontWeight:Dt,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${Oe.lineWidth}px ${Oe.lineType} transparent`,cursor:"pointer",transition:`all ${Oe.motionDurationMid} ${Oe.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:Oe.lineHeight,color:Oe.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${ce}-icon`]:{lineHeight:0},[`> ${pe} + span, > span + ${pe}`]:{marginInlineStart:Oe.marginXS},[`&:not(${ce}-icon-only) > ${ce}-icon`]:{[`&${ce}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:Oe.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,le.Qy)(Oe)),[`&-icon-only${ce}-compact-item`]:{flex:"none"},[`&-compact-item${ce}-primary`]:{[`&:not([disabled]) + ${ce}-compact-item${ce}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-Oe.lineWidth,insetInlineStart:-Oe.lineWidth,display:"inline-block",width:Oe.lineWidth,height:`calc(100% + ${Oe.lineWidth*2}px)`,backgroundColor:Oe.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${ce}-primary`]:{[`&:not([disabled]) + ${ce}-compact-vertical-item${ce}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-Oe.lineWidth,insetInlineStart:-Oe.lineWidth,display:"inline-block",width:`calc(100% + ${Oe.lineWidth*2}px)`,height:Oe.lineWidth,backgroundColor:Oe.colorPrimaryHover,content:'""'}}}}}}},Ke=(Oe,ce,pe)=>({[`&:not(:disabled):not(${Oe}-disabled)`]:{"&:hover":ce,"&:active":pe}}),ze=Oe=>({minWidth:Oe.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Mt=Oe=>({borderRadius:Oe.controlHeight,paddingInlineStart:Oe.controlHeight/2,paddingInlineEnd:Oe.controlHeight/2}),Et=Oe=>({cursor:"not-allowed",borderColor:Oe.borderColorDisabled,color:Oe.colorTextDisabled,backgroundColor:Oe.colorBgContainerDisabled,boxShadow:"none"}),kt=(Oe,ce,pe,Dt,Pe,ct,Wt,Tt)=>({[`&${Oe}-background-ghost`]:Object.assign(Object.assign({color:pe||void 0,backgroundColor:ce,borderColor:Dt||void 0,boxShadow:"none"},Ke(Oe,Object.assign({backgroundColor:ce},Wt),Object.assign({backgroundColor:ce},Tt))),{"&:disabled":{cursor:"not-allowed",color:Pe||void 0,borderColor:ct||void 0}})}),$t=Oe=>({[`&:disabled, &${Oe.componentCls}-disabled`]:Object.assign({},Et(Oe))}),Bt=Oe=>Object.assign({},$t(Oe)),yt=Oe=>({[`&:disabled, &${Oe.componentCls}-disabled`]:{cursor:"not-allowed",color:Oe.colorTextDisabled}}),Ne=Oe=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Bt(Oe)),{backgroundColor:Oe.defaultBg,borderColor:Oe.defaultBorderColor,color:Oe.defaultColor,boxShadow:Oe.defaultShadow}),Ke(Oe.componentCls,{color:Oe.colorPrimaryHover,borderColor:Oe.colorPrimaryHover},{color:Oe.colorPrimaryActive,borderColor:Oe.colorPrimaryActive})),kt(Oe.componentCls,Oe.ghostBg,Oe.defaultGhostColor,Oe.defaultGhostBorderColor,Oe.colorTextDisabled,Oe.colorBorder)),{[`&${Oe.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:Oe.colorError,borderColor:Oe.colorError},Ke(Oe.componentCls,{color:Oe.colorErrorHover,borderColor:Oe.colorErrorBorderHover},{color:Oe.colorErrorActive,borderColor:Oe.colorErrorActive})),kt(Oe.componentCls,Oe.ghostBg,Oe.colorError,Oe.colorError,Oe.colorTextDisabled,Oe.colorBorder)),$t(Oe))}),vt=Oe=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Bt(Oe)),{color:Oe.primaryColor,backgroundColor:Oe.colorPrimary,boxShadow:Oe.primaryShadow}),Ke(Oe.componentCls,{color:Oe.colorTextLightSolid,backgroundColor:Oe.colorPrimaryHover},{color:Oe.colorTextLightSolid,backgroundColor:Oe.colorPrimaryActive})),kt(Oe.componentCls,Oe.ghostBg,Oe.colorPrimary,Oe.colorPrimary,Oe.colorTextDisabled,Oe.colorBorder,{color:Oe.colorPrimaryHover,borderColor:Oe.colorPrimaryHover},{color:Oe.colorPrimaryActive,borderColor:Oe.colorPrimaryActive})),{[`&${Oe.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:Oe.colorError,boxShadow:Oe.dangerShadow,color:Oe.dangerColor},Ke(Oe.componentCls,{backgroundColor:Oe.colorErrorHover},{backgroundColor:Oe.colorErrorActive})),kt(Oe.componentCls,Oe.ghostBg,Oe.colorError,Oe.colorError,Oe.colorTextDisabled,Oe.colorBorder,{color:Oe.colorErrorHover,borderColor:Oe.colorErrorHover},{color:Oe.colorErrorActive,borderColor:Oe.colorErrorActive})),$t(Oe))}),Nt=Oe=>Object.assign(Object.assign({},Ne(Oe)),{borderStyle:"dashed"}),tt=Oe=>Object.assign(Object.assign(Object.assign({color:Oe.colorLink},Ke(Oe.componentCls,{color:Oe.colorLinkHover,backgroundColor:Oe.linkHoverBg},{color:Oe.colorLinkActive})),yt(Oe)),{[`&${Oe.componentCls}-dangerous`]:Object.assign(Object.assign({color:Oe.colorError},Ke(Oe.componentCls,{color:Oe.colorErrorHover},{color:Oe.colorErrorActive})),yt(Oe))}),_t=Oe=>Object.assign(Object.assign(Object.assign({},Ke(Oe.componentCls,{color:Oe.colorText,backgroundColor:Oe.textHoverBg},{color:Oe.colorText,backgroundColor:Oe.colorBgTextActive})),yt(Oe)),{[`&${Oe.componentCls}-dangerous`]:Object.assign(Object.assign({color:Oe.colorError},yt(Oe)),Ke(Oe.componentCls,{color:Oe.colorErrorHover,backgroundColor:Oe.colorErrorBg},{color:Oe.colorErrorHover,backgroundColor:Oe.colorErrorBg}))}),ft=Oe=>{const{componentCls:ce}=Oe;return{[`${ce}-default`]:Ne(Oe),[`${ce}-primary`]:vt(Oe),[`${ce}-dashed`]:Nt(Oe),[`${ce}-link`]:tt(Oe),[`${ce}-text`]:_t(Oe),[`${ce}-ghost`]:kt(Oe.componentCls,Oe.ghostBg,Oe.colorBgContainer,Oe.colorBgContainer,Oe.colorTextDisabled,Oe.colorBorder)}},Je=function(Oe){let ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:pe,controlHeight:Dt,fontSize:Pe,lineHeight:ct,lineWidth:Wt,borderRadius:Tt,buttonPaddingHorizontal:Ie,iconCls:St}=Oe,We=Math.max(0,(Dt-Pe*ct)/2-Wt),we=`${pe}-icon-only`;return[{[`${pe}${ce}`]:{fontSize:Pe,height:Dt,padding:`${We}px ${Ie}px`,borderRadius:Tt,[`&${we}`]:{width:Dt,paddingInlineStart:0,paddingInlineEnd:0,[`&${pe}-round`]:{width:"auto"},[St]:{fontSize:Oe.buttonIconOnlyFontSize}},[`&${pe}-loading`]:{opacity:Oe.opacityLoading,cursor:"default"},[`${pe}-loading-icon`]:{transition:`width ${Oe.motionDurationSlow} ${Oe.motionEaseInOut}, opacity ${Oe.motionDurationSlow} ${Oe.motionEaseInOut}`}}},{[`${pe}${pe}-circle${ce}`]:ze(Oe)},{[`${pe}${pe}-round${ce}`]:Mt(Oe)}]},Be=Oe=>Je((0,$.TS)(Oe,{fontSize:Oe.contentFontSize})),xe=Oe=>{const ce=(0,$.TS)(Oe,{controlHeight:Oe.controlHeightSM,fontSize:Oe.contentFontSizeSM,padding:Oe.paddingXS,buttonPaddingHorizontal:Oe.paddingInlineSM,borderRadius:Oe.borderRadiusSM,buttonIconOnlyFontSize:Oe.onlyIconSizeSM});return Je(ce,`${Oe.componentCls}-sm`)},Le=Oe=>{const ce=(0,$.TS)(Oe,{controlHeight:Oe.controlHeightLG,fontSize:Oe.contentFontSizeLG,buttonPaddingHorizontal:Oe.paddingInlineLG,borderRadius:Oe.borderRadiusLG,buttonIconOnlyFontSize:Oe.onlyIconSizeLG});return Je(ce,`${Oe.componentCls}-lg`)},Ve=Oe=>{const{componentCls:ce}=Oe;return{[ce]:{[`&${ce}-block`]:{width:"100%"}}}},Ge=Oe=>{const{paddingInline:ce,onlyIconSize:pe}=Oe;return(0,$.TS)(Oe,{buttonPaddingHorizontal:ce,buttonIconOnlyFontSize:pe})},Qe=Oe=>({fontWeight:400,defaultShadow:`0 ${Oe.controlOutlineWidth}px 0 ${Oe.controlTmpOutline}`,primaryShadow:`0 ${Oe.controlOutlineWidth}px 0 ${Oe.controlOutline}`,dangerShadow:`0 ${Oe.controlOutlineWidth}px 0 ${Oe.colorErrorOutline}`,primaryColor:Oe.colorTextLightSolid,dangerColor:Oe.colorTextLightSolid,borderColorDisabled:Oe.colorBorder,defaultGhostColor:Oe.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:Oe.colorBgContainer,paddingInline:Oe.paddingContentHorizontal-Oe.lineWidth,paddingInlineLG:Oe.paddingContentHorizontal-Oe.lineWidth,paddingInlineSM:8-Oe.lineWidth,onlyIconSize:Oe.fontSizeLG,onlyIconSizeSM:Oe.fontSizeLG-2,onlyIconSizeLG:Oe.fontSizeLG+2,groupBorderColor:Oe.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:Oe.colorBgTextHover,defaultColor:Oe.colorText,defaultBg:Oe.colorBgContainer,defaultBorderColor:Oe.colorBorder,defaultBorderColorDisabled:Oe.colorBorder,contentFontSize:Oe.fontSize,contentFontSizeSM:Oe.fontSize,contentFontSizeLG:Oe.fontSizeLG});var dt=(0,j.Z)("Button",Oe=>{const ce=Ge(Oe);return[De(ce),xe(ce),Be(ce),Le(ce),Ve(ce),ft(ce),Te(ce)]},Qe),wt=e(74207);function tr(Oe,ce){return{[`&-item:not(${ce}-last-item)`]:{marginBottom:-Oe.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Jt(Oe,ce){return{[`&-item:not(${ce}-first-item):not(${ce}-last-item)`]:{borderRadius:0},[`&-item${ce}-first-item:not(${ce}-last-item)`]:{[`&, &${Oe}-sm, &${Oe}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${ce}-last-item:not(${ce}-first-item)`]:{[`&, &${Oe}-sm, &${Oe}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function gt(Oe){const ce=`${Oe.componentCls}-compact-vertical`;return{[ce]:Object.assign(Object.assign({},tr(Oe,ce)),Jt(Oe.componentCls,ce))}}var it=(0,j.b)(["Button","compact"],Oe=>{const ce=Ge(Oe);return[(0,wt.c)(ce),gt(ce)]},Qe),Xt=function(Oe,ce){var pe={};for(var Dt in Oe)Object.prototype.hasOwnProperty.call(Oe,Dt)&&ce.indexOf(Dt)<0&&(pe[Dt]=Oe[Dt]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Dt=Object.getOwnPropertySymbols(Oe);Pe{var pe,Dt;const{loading:Pe=!1,prefixCls:ct,type:Wt="default",danger:Tt,shape:Ie="default",size:St,styles:We,disabled:we,className:bt,rootClassName:Rt,children:je,icon:Ar,ghost:Ct=!1,block:Yr=!1,htmlType:en="button",classNames:Cr,style:Rr={}}=Oe,pr=Xt(Oe,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:zr,autoInsertSpaceInButton:an,direction:mn,button:Yt}=(0,r.useContext)(h.E_),mt=zr("btn",ct),[ye,ot]=dt(mt),Lt=(0,r.useContext)(o.Z),_r=we!=null?we:Lt,mr=(0,r.useContext)(m),Jr=(0,r.useMemo)(()=>Zt(Pe),[Pe]),[$r,En]=(0,r.useState)(Jr.loading),[xt,Ir]=(0,r.useState)(!1),In=(0,r.createRef)(),Qn=(0,f.sQ)(ce,In),Mn=r.Children.count(je)===1&&!Ar&&!F(Wt);(0,r.useEffect)(()=>{let Ti=null;Jr.delay>0?Ti=setTimeout(()=>{Ti=null,En(!0)},Jr.delay):En(Jr.loading);function Di(){Ti&&(clearTimeout(Ti),Ti=null)}return Di},[Jr]),(0,r.useEffect)(()=>{if(!Qn||!Qn.current||an===!1)return;const Ti=Qn.current.textContent;Mn&&C(Ti)?xt||Ir(!0):xt&&Ir(!1)},[Qn]);const ti=Ti=>{const{onClick:Di}=Oe;if($r||_r){Ti.preventDefault();return}Di==null||Di(Ti)},ii=an!==!1,{compactSize:Si,compactItemClassnames:pi}=(0,x.ri)(mt,mn),ki={large:"lg",small:"sm",middle:void 0},ua=(0,a.Z)(Ti=>{var Di,Ci;return(Ci=(Di=St!=null?St:Si)!==null&&Di!==void 0?Di:mr)!==null&&Ci!==void 0?Ci:Ti}),Ji=ua&&ki[ua]||"",Ki=$r?"loading":Ar,es=(0,c.Z)(pr,["navigate"]),Yi=l()(mt,ot,{[`${mt}-${Ie}`]:Ie!=="default"&&Ie,[`${mt}-${Wt}`]:Wt,[`${mt}-${Ji}`]:Ji,[`${mt}-icon-only`]:!je&&je!==0&&!!Ki,[`${mt}-background-ghost`]:Ct&&!F(Wt),[`${mt}-loading`]:$r,[`${mt}-two-chinese-chars`]:xt&&ii&&!$r,[`${mt}-block`]:Yr,[`${mt}-dangerous`]:!!Tt,[`${mt}-rtl`]:mn==="rtl"},pi,bt,Rt,Yt==null?void 0:Yt.className),Ta=Object.assign(Object.assign({},Yt==null?void 0:Yt.style),Rr),Yn=l()(Cr==null?void 0:Cr.icon,(pe=Yt==null?void 0:Yt.classNames)===null||pe===void 0?void 0:pe.icon),It=Object.assign(Object.assign({},(We==null?void 0:We.icon)||{}),((Dt=Yt==null?void 0:Yt.styles)===null||Dt===void 0?void 0:Dt.icon)||{}),Vi=Ar&&!$r?r.createElement(ne,{prefixCls:mt,className:Yn,style:It},Ar):r.createElement(J,{existIcon:!!Ar,prefixCls:mt,loading:!!$r}),oi=je||je===0?N(je,Mn&&ii):null;if(es.href!==void 0)return ye(r.createElement("a",Object.assign({},es,{className:l()(Yi,{[`${mt}-disabled`]:_r}),style:Ta,onClick:ti,ref:Qn}),Vi,oi));let ja=r.createElement("button",Object.assign({},pr,{type:en,className:Yi,style:Ta,onClick:ti,disabled:_r,ref:Qn}),Vi,oi,pi&&r.createElement(it,{key:"compact",prefixCls:mt}));return F(Wt)||(ja=r.createElement(u.Z,{component:"Button",disabled:!!$r},ja)),ye(ja)},nr=(0,r.forwardRef)(Ht);nr.Group=S,nr.__ANT_BUTTON=!0;var Gt=nr},3113:function(d,_,e){"use strict";var r=e(67797);_.ZP=r.Z},43604:function(d,_,e){"use strict";var r=e(37028);_.Z=r.Z},1684:function(d,_,e){"use strict";e.d(_,{n:function(){return l}});var r=e(59301);const i=r.createContext(!1),l=c=>{let{children:f,disabled:u}=c;const h=r.useContext(i);return r.createElement(i.Provider,{value:u!=null?u:h},f)};_.Z=i},52946:function(d,_,e){"use strict";e.d(_,{q:function(){return l}});var r=e(59301);const i=r.createContext(void 0),l=c=>{let{children:f,size:u}=c;const h=r.useContext(i);return r.createElement(i.Provider,{value:u||h},f)};_.Z=i},36355:function(d,_,e){"use strict";e.d(_,{E_:function(){return c},oR:function(){return i}});var r=e(59301);const i="anticon",l=(u,h)=>h||(u?`ant-${u}`:"ant"),c=r.createContext({getPrefixCls:l,iconPrefixCls:i}),{Consumer:f}=c},19716:function(d,_,e){"use strict";var r=e(59301),i=e(52946);const l=c=>{const f=r.useContext(i.Z);return r.useMemo(()=>c?typeof c=="string"?c!=null?c:f:c instanceof Function?c(f):f:f,[c,f])};_.Z=l},92736:function(d,_,e){"use strict";e.d(_,{ZP:function(){return yt},w6:function(){return kt}});var r=e(36237),i=e(18418),l=e(80547),c=e(24434),f=e(59301),u=e(28726),h=e(98044),o=e(41887);const a="internalMark";var p=Ne=>{const{locale:vt={},children:Nt,_ANT_MARK__:tt}=Ne;f.useEffect(()=>(0,h.f)(vt&&vt.Modal),[vt]);const _t=f.useMemo(()=>Object.assign(Object.assign({},vt),{exist:!0}),[vt]);return f.createElement(o.Z.Provider,{value:_t},Nt)},y=e(31724),m=e(45246),b=e(34117),S=e(36355),R=e(30071),L=e(64993),C=e(47273),D=e(810);const F=`-ant-${Date.now()}-${Math.random()}`;function B(Ne,vt){const Nt={},tt=(Je,Be)=>{let xe=Je.clone();return xe=(Be==null?void 0:Be(xe))||xe,xe.toRgbString()},_t=(Je,Be)=>{const xe=new L.C(Je),Le=(0,R.generate)(xe.toRgbString());Nt[`${Be}-color`]=tt(xe),Nt[`${Be}-color-disabled`]=Le[1],Nt[`${Be}-color-hover`]=Le[4],Nt[`${Be}-color-active`]=Le[6],Nt[`${Be}-color-outline`]=xe.clone().setAlpha(.2).toRgbString(),Nt[`${Be}-color-deprecated-bg`]=Le[0],Nt[`${Be}-color-deprecated-border`]=Le[2]};if(vt.primaryColor){_t(vt.primaryColor,"primary");const Je=new L.C(vt.primaryColor),Be=(0,R.generate)(Je.toRgbString());Be.forEach((Le,Ve)=>{Nt[`primary-${Ve+1}`]=Le}),Nt["primary-color-deprecated-l-35"]=tt(Je,Le=>Le.lighten(35)),Nt["primary-color-deprecated-l-20"]=tt(Je,Le=>Le.lighten(20)),Nt["primary-color-deprecated-t-20"]=tt(Je,Le=>Le.tint(20)),Nt["primary-color-deprecated-t-50"]=tt(Je,Le=>Le.tint(50)),Nt["primary-color-deprecated-f-12"]=tt(Je,Le=>Le.setAlpha(Le.getAlpha()*.12));const xe=new L.C(Be[0]);Nt["primary-color-active-deprecated-f-30"]=tt(xe,Le=>Le.setAlpha(Le.getAlpha()*.3)),Nt["primary-color-active-deprecated-d-02"]=tt(xe,Le=>Le.darken(2))}return vt.successColor&&_t(vt.successColor,"success"),vt.warningColor&&_t(vt.warningColor,"warning"),vt.errorColor&&_t(vt.errorColor,"error"),vt.infoColor&&_t(vt.infoColor,"info"),` :root { ${Object.keys(Nt).map(Je=>`--${Ne}-${Je}: ${Nt[Je]};`).join(` `)}