You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/public/react/build/static/js/17.e95d1477.chunk.js

1 line
73 KiB

webpackJsonp([17],{1304:function(e,t,r){e.exports=r(1486)},1393:function(e,t,r){"use strict";r.d(t,"f",function(){return E}),r.d(t,"d",function(){return C}),r.d(t,"g",function(){return j}),r.d(t,"e",function(){return T}),r.d(t,"c",function(){return S}),r.d(t,"b",function(){return D}),r.d(t,"i",function(){return P}),r.d(t,"p",function(){return I}),r.d(t,"m",function(){return B}),r.d(t,"n",function(){return M}),r.d(t,"q",function(){return U}),r.d(t,"a",function(){return L}),r.d(t,"j",function(){return R}),r.d(t,"l",function(){return N}),r.d(t,"h",function(){return G}),r.d(t,"o",function(){return F}),r.d(t,"k",function(){return q});var a=r(1304),o=r.n(a),n=r(12),u=r.n(n);function i(e){return function(){var u=e.apply(this,arguments);return new Promise(function(i,o){return function t(e,r){try{var a=u[e](r),n=a.value}catch(e){return void o(e)}if(!a.done)return Promise.resolve(n).then(function(e){t("next",e)},function(e){t("throw",e)});i(n)}("next")})}}var d,s,c,_,l,p,f,h,y,A,g,m,v,b,w,O,k,x,E=(d=i(o.a.mark(function e(t){var r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r={},Object.keys(t).forEach(function(e){t[e]&&(r[e]=t[e])}),e.abrupt("return",u.a.get("/problems.json",{params:r}));case 4:case"end":return e.stop()}},e,this)})),function(e){return d.apply(this,arguments)}),C=(s=i(o.a.mark(function e(t){var r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="/problems/"+t+".json",e.abrupt("return",u.a.delete(r));case 2:case"end":return e.stop()}},e,this)})),function(e){return s.apply(this,arguments)}),j=(c=i(o.a.mark(function e(t){var r,a,n,i;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.params,a=t.submitType,n=t.identifier,i="add"===a?"/problems.json":"/problems/"+n+".json",e.abrupt("return",n?u.a.put(i,r):u.a.post(i,r));case 3:case"end":return e.stop()}},e,this)})),function(e){return c.apply(this,arguments)}),T=(_=i(o.a.mark(function e(t){var r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="/problems/"+t+"/edit.json",e.abrupt("return",u.a.get(r));case 2:case"end":return e.stop()}},e,this)})),function(e){return _.apply(this,arguments)}),S=(l=i(o.a.mark(function e(t,r){var a;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a="/myproblems/"+t+"/code_debug.json",e.abrupt("return",u.a.get(a,{params:r}));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return l.apply(this,arguments)}),D=(p=i(o.a.mark(function e(t,r){var a;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a="/myproblems/"+t+"/result.json",e.abrupt("return",u.a.get(a,{params:r}));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return p.apply(this,arguments)}),P=(f=i(o.a.mark(function e(t){var r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="/problems/"+t+"/start.json",e.abrupt("return",u.a.get(r));case 2:case"end":return e.stop()}},e,this)})),function(e){return f.apply(this,arguments)}),I=(h=i(o.a.mark(function e(t){var r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="/myproblems/"+t+".json",e.abrupt("return",u.a.get(r));case 2:case"end":return e.stop()}},e,this)})),function(e){return h.apply(this,arguments)}),B=(y=i(o.a.mark(function e(t){var r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="/myproblems/"+t+"/submit_records.json",e.abrupt("return",u.a.get(r));case 3:case"end":return e.stop()}},e,this)})),function(e){return y.apply(this,arguments)}),M=(A=i(o.a.mark(function e(t){var r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r={id:t},e.abrupt("return",u.a.get("/myproblems/record_detail.json",{params:r}));case 3:case"end":return e.stop()}},e,this)})),function(e){return A.apply(this,arguments)}),U=(g=i(o.a.mark(function e(t){var r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="/problems/"+t+"/publish.json",e.abrupt("return",u.a.post(r));case 2:case"end":return e.stop()}},e,this)})),function(e){return g.apply(this,arguments)}),L=(m=i(o.a.mark(function e(t){var r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="/problems/"+t+"/cancel_publish.json",e.abrupt("return",u.a.post(r));case 2:case"end":return e.stop()}},e,this)})),function(e){return m.apply(this,arguments)}),R=(v=i(o.a.mark(function e(t,r){var a;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a="/myproblems/"+t+"/update_code.json",e.abrupt("return",u.a.post(a,r));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return v.apply(this,arguments)}),N=(b=i(o.a.mark(function e(t){var r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="/myproblems/"+t+"/code_submit.json",e.abrupt("return",u.a.get(r));case 2:case"end":return e.stop()}},e,this)})),function(e){return b.apply(this,arguments)}),G=(w=i(o.a.mark(function e(t){var r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="/myproblems/"+t+"/sync_code.json",e.abrupt("return",u.a.post(r));case 2:case"end":return e.stop()}},e,this)})),function(e){return w.apply(this,arguments)}),F=(O=i(o.a.mark(function e(){return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u.a.get("/problems/new.json"));case 2:case"end":return e.stop()}},e,this)})),function(){return O.apply(this,arguments)}),q=(k=i(o.a.mark(function e(t){return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u.a.post("/attachments.json",t));case 2:case"end":return e.stop()}},e,this)})),function(e){return k.apply(this,arguments)});x=i(o.a.mark(function e(t){var r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="/attachments/"+t,e.abrupt("return",u.a.get(r));case 2:case"end":return e.stop()}},e,this)}))},1486:function(e,t,r){var a=function(){return this}()||Function("return this")(),n=a.regeneratorRuntime&&0<=Object.getOwnPropertyNames(a).indexOf("regeneratorRuntime"),i=n&&a.regeneratorRuntime;if(a.regeneratorRuntime=void 0,e.exports=r(1487),n)a.regeneratorRuntime=i;else try{delete a.regeneratorRuntime}catch(e){a.regeneratorRuntime=void 0}},1487:function(P,e){!function(e){"use strict";var d,t=Object.prototype,s=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag",o="object"==typeof P,u=e.regeneratorRuntime;if(u)o&&(P.exports=u);else{(u=e.regeneratorRuntime=o?P.exports:{}).wrap=m;var _="suspendedStart",l="suspendedYield",p="executing",f="completed",h={},c={};c[n]=function(){return this};var y=Object.getPrototypeOf,A=y&&y(y(S([])));A&&A!==t&&s.call(A,n)&&(c=A);var g=O.prototype=b.prototype=Object.create(c);w.prototype=g.constructor=O,O.constructor=w,O[i]=w.displayName="GeneratorFunction",u.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,O):(e.__proto__=O,i in e||(e[i]="GeneratorFunction")),e.prototype=Object.create(g),e},u.awrap=function(e){return{__await:e}},k(x.prototype),x.prototype[a]=function(){return this},u.AsyncIterator=x,u.async=function(e,t,r,a){var n=new x(m(e,t,r,a));return u.isGeneratorFunction(t)?n:n.next().then(function(e){return e.done?e.value:n.next()})},k(g),g[i]="Generator",g[n]=function(){return this},g.toString=function(){return"[object Generator]"},u.keys=function(r){var a=[];for(var e in r)a.push(e);return a.reverse(),function e(){for(;a.length;){var t=a.pop();if(t in r)return e.value=t,e.done=!1,e}return e.done=!0,e}},u.values=S,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=d,this.done=!1,this.delegate=null,this.method="next",this.arg=d,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&s.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=d)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var a=this;function e(e,t){return i.type="throw",i.arg=r,a.next=e,t&&(a.method="next",a.arg=d),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t],i=n.completion;if("root"===n.tryLoc)return e("end");if(n.tryLoc<=this.prev){var o=s.call(n,"catchLoc"),u=s.call(n,"finallyLoc");if(o&&u){if(this.prev<n.catchLoc)return e(n.catchLoc,!0);if(this.prev<n.finallyLoc)return e(n.finallyLoc)}else if(o){if(this.prev<n.catchLoc)return e(n.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return e(n.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;0<=r;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&s.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var n=a;break}}n&&("break"===e||"continue"===e)&&n.tryLoc<=t&&t<=n.finallyLoc&&(n=null);var i=n?n.completion:{};return i.type=e,i.arg=t,n?(this.method="next",this.next=n.finallyLoc,h):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),j(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var a=r.completion;if("throw"===a.type){var n=a.arg;j(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=d),h}}}function m(e,t,r,a){var i,o,u,d,n=t&&t.prototype instanceof b?t:b,s=Object.create(n.prototype),c=new T(a||[]);return s._invoke=(i=e,o=r,u=c,d=_,function(e,t){if(d===p)throw new Error("Generator is already running");if(d===f){if("throw"===e)throw t;return D()}for(u.method=e,u.arg=t;;){var r=u.delegate;if(r){var a=E(r,u);if(a){if(a===h)continue;return a}}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if(d===_)throw d=f,u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);d=p;var n=v(i,o,u);if("normal"===n.type){if(d=u.done?f:l,n.arg===h)continue;return{value:n.arg,done:u.done}}"throw"===n.type&&(d=f,u.method="throw",u.arg=n.arg)}}),s}function v(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function b(){}function w(){}function O(){}function k(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function x(d){var t;this._invoke=function(r,a){function e(){return new Promise(function(e,t){!function t(e,r,a,n){var i=v(d[e],d,r);if("throw"!==i.type){var o=i.arg,u=o.value;return u&&"object"==typeof u&&s.call(u,"__await")?Promise.resolve(u.__await).then(function(e){t("next",e,a,n)},function(e){t("throw",e,a,n)}):Promise.resolve(u).then(function(e){o.value=e,a(o)},n)}n(i.arg)}(r,a,e,t)})}return t=t?t.then(e,e):e()}}function E(e,t){var r=e.iterator[t.method];if(r===d){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=d,E(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var a=v(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,h;var n=a.arg;return n?n.done?(t[e.resultName]=n.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=d),t.delegate=null,h):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function S(t){if(t){var e=t[n];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function e(){for(;++r<t.length;)if(s.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=d,e.done=!0,e};return a.next=a}}return{next:D}}function D(){return{value:d,done:!0}}}(function(){return this}()||Function("return this")())},1573:function(e,t,r){"use strict";t.a={jcLabel:{name:"任务名称",language:"编程语言",description:"描述",difficult:"难易度",category:"分类",openOrNot:"公开程序",timeLimit:"时间限制"},fontSetting:{title:"代码格式",type:"select",content:[{text:"显示风格",type:"style",value:[{key:"dark",text:"黑色背景",value:"dark"},{key:"light",text:"白色背景",value:"light"}]},{text:"字体大小",type:"font",value:[{key:1,text:"12px",value:12},{key:1,text:"14px",value:14},{key:1,text:"16px",value:16},{key:1,text:"18px",value:18},{key:1,text:"24px",value:24},{key:1,text:"30px",value:30}]}]},opacitySetting:{title:"代码格式",type:"label",content:[{text:"字体大小",value:"CTRL + S"},{text:"唤出快捷键列表",value:"F1/ALT + F1"},{text:"向左缩进",value:"CTRL + ["},{text:"向右缩进",value:"CTRL + ]"},{text:"跳到匹配的括号",value:"CTRL + SHIFT + \\"},{text:"转到行首",value:"HOME"},{text:"转到行尾",value:"END"}]},tagBackground:{1:"#52c41a",2:"#faad14",3:"#f5222d"},diffText:{1:"简单",2:"中等",3:"困难"},reviewResult:{"-1":"测试用例结果不匹配",0:"评测通过",1:"",2:"评测超时",3:"评测pod失败",4:"编译失败",5:"执行失败"}}},1574:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"monaco",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"noop",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"deepMerge",{enumerable:!0,get:function(){return i.default}});var a=o(r(2623)),n=o(r(2625)),i=o(r(2626));function o(e){return e&&e.__esModule?e:{default:e}}},1579:function(e,t,r){"use strict";var a=r(1804),n=r(1805),i=r(1806),o=r(1807),u=r(1808),d=r(1809),s=r(1810);t.a={toggleTodo:a.a,getOJList:n.c,deleteItem:n.b,changePaginationInfo:n.a,getOJFormById:i.d,saveOJFormId:i.f,clearOJFormStore:i.b,validateOjForm:i.p,saveOjFormCode:i.g,validateOJName:i.l,validateOjLanguage:i.q,validateOjDescription:i.n,validateOjDifficult:i.o,validateOjTimeLimit:i.r,validateOjCategory:i.m,validateOpenOrNot:i.s,handleClickCancelPublish:i.e,addTestCase:i.a,deleteTestCase:i.c,testCaseInputChange:i.h,testCaseOutputChange:i.i,debuggerCode:o.c,startProgramQuestion:o.m,changeShowOrHideControl:u.c,changeLoadingState:u.a,getUserCommitRecord:o.d,getUserCommitRecordDetail:o.e,updateCode:o.o,saveUserInputCode:o.k,changeUserCodeTab:o.a,changeSubmitLoadingStatus:u.d,submitUserCode:o.n,changePublishLoadingStatus:u.b,isMyPublish:u.e,getUserProgramDetail:o.f,updateTestAndValidate:i.k,updateOpenTestCaseIndex:i.j,saveUserProgramIdentifier:o.l,restoreInitialCode:o.g,getUserInfoForNew:d.a,saveUserCodeForInterval:o.j,saveEditorCodeForDetail:o.h,saveOpacityType:o.i,clearOjForUserReducer:o.b,getJupyterTpiDataSet:s.g,getJupyterTpiUrl:s.h,getJupyterInfo:s.f,syncJupyterCode:s.k,changeGetJupyterUrlState:s.d,saveJupyterTpi:s.j,changeCurrentPage:s.c,changeshowDrawer:s.e,reset_with_tpi:s.i,addjypertime:s.b,active_with_tpi:s.a,updataspinning:s.l}},1731:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DiffEditor",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"ControlledEditor",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"monaco",{enumerable:!0,get:function(){return o.monaco}}),t.default=void 0;var a=u(r(2617)),n=u(r(2629)),i=u(r(2631)),o=r(1574);function u(e){return e&&e.__esModule?e:{default:e}}var d=a.default;t.default=d},1804:function(e,t,r){"use strict";t.a=function(){return{type:a.a.ADD_TODO}};var a=r(51)},1805:function(e,t,r){"use strict";r.d(t,"c",function(){return i}),r.d(t,"a",function(){return o}),r.d(t,"b",function(){return u});var a=r(51),n=r(1393),i=function(e){return function(r){Object(n.f)(e).then(function(e){var t=e.data;r({type:a.a.GET_OJ_LIST,payload:t}),r({type:a.a.CHANGE_PAGINATION_INFO,payload:{total:t.hacks_count}})})}},o=function(e){return{type:a.a.CHANGE_PAGINATION_INFO,payload:e}},u=function(a){return function(t,e){var r=e().ojListReducer.pagination;Object(n.d)(a).then(function(e){200===e.status&&t(i(r))})}}},1806:function(e,t,r){"use strict";r.d(t,"p",function(){return d}),r.d(t,"e",function(){return s}),r.d(t,"g",function(){return c}),r.d(t,"l",function(){return _}),r.d(t,"q",function(){return l}),r.d(t,"n",function(){return p}),r.d(t,"o",function(){return f}),r.d(t,"r",function(){return h}),r.d(t,"m",function(){return y}),r.d(t,"s",function(){return A}),r.d(t,"a",function(){return g}),r.d(t,"c",function(){return m}),r.d(t,"d",function(){return v}),r.d(t,"f",function(){return b}),r.d(t,"b",function(){return w}),r.d(t,"h",function(){return O}),r.d(t,"i",function(){return k}),r.d(t,"k",function(){return x}),r.d(t,"j",function(){return E});var a=r(46),n=(r.n(a),r(47)),S=r.n(n),D=r(51),i=r(1573),P=r(1393),I=r(188),o=(r.n(I),r(5));function B(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M(e,t){return[void 0,"",null].includes(t)?B({},e,{validateStatus:"error",errMsg:L[e].label+"不能为空"}):B({},e,{validateStatus:"",errMsg:""})}function U(e,t,r,a){return{ojForm:B({},e,r?"":t),ojFormValidate:B({},e,a)}}var u=i.a.jcLabel,L={name:{label:u.name,type:D.a.VALIDATE_OJ_NAME},language:{label:u.language,type:D.a.VALIDATE_OJ_LANGUAGE},description:{label:u.description,type:D.a.VALIDATE_OJ_DESCRIPTION},difficult:{label:u.difficult,type:D.a.VALIDATE_OJ_DIFFICULT},timeLimit:{label:u.timeLimit,type:D.a.VALIDATE_OJ_TIMELIMIT},category:{label:u.category,type:D.a.VALIDATE_OJ_CATEGORY},openOrNot:{label:u.openOrNot,type:D.a.VALIDATE_OJ_OPENORNOT},input:{label:"输入"},output:{label:"输出"}};function R(e,t){Object(o._4)("oj_description",""),e({type:D.a.IS_MY_SOURCE,payload:!0}),setTimeout(function(){t.history.push("/problems")},1e3)}var d=function(j,T){return function(n,e){var t=e().ojFormReducer,i=t.ojForm,o=t.testCases,r=t.identifier,a=(t.code,Object.keys(i)),u=!0;a.forEach(function(e){var t=i[e],r=M(e,t),a=r[e].errMsg;a&&(u=!1,n({type:L[e].type,payload:U(e,t,a,r[e])}))});var d=[];if(o.forEach(function(t,n){var i={};["input","output"].forEach(function(r){var a=t[r],e=M(r,a);e[r].errMsg?u=!1:o.some(function(e,t){return t<n&&"input"===r&&e[r]===a})&&(u=!1,e=B({},r,{validateStatus:"error",errMsg:"与测试用例"+n+"的输入值重复了,请重新填写"}));Object.assign(i,e)}),d.push(i)}),0===o.length&&(u=!1,S.a.error({message:"提示",description:"测试用例必须输入!"})),n({type:D.a.UPDATE_TEST_AND_VALIDATE,payload:{testCaseValidate:d}}),u||(n({type:D.a.SUBMIT_LOADING_STATUS,payload:!1}),n({type:D.a.PUBLISH_LOADING_STATUS,payload:!1})),u){var s=e().ojFormReducer,c=s.code,_=s.score,l=s.ojForm,p=s.testCases,f=void 0===p?[]:p,h=l.category,y=l.description,A=l.difficult,g=l.language,m=l.name,v=l.openOrNot,b=l.timeLimit,w={},O={name:m,description:JSON.stringify(y),difficult:A,category:h,open_or_not:v,time_limit:b,score:_},k={code:I.Base64.encode(c),language:g};if(r){var x=[],E=[];f.forEach(function(e){e.isAdd?(delete e.isAdd,E.push(e)):(delete e.isAdd,x.push(e))}),w.params={hack:O,hack_sets:E,hack_codes:k,update_hack_sets:x},w.submitType="update",w.identifier=r}else{var C=f.map(function(e){return delete e.isAdd,e});w.params={hack:O,hack_sets:C,hack_codes:k},w.submitType="add"}"publish"===T?Object(P.q)(r).then(function(e){0===e.data.status&&(S.a.success({message:"提示",description:"发布成功!"}),R(n,j)),n({type:D.a.PUBLISH_LOADING_STATUS,payload:!1})}).catch(function(){n({type:D.a.PUBLISH_LOADING_STATUS,payload:!1})}):Object(P.g)(w).then(function(e){200===e.status&&(0===e.data.status&&(S.a.success({message:"提示",description:"update"===w.submitType?"更新成功":"保存成功"}),R(n,j)),n({type:D.a.SUBMIT_LOADING_STATUS,payload:!1}))}).catch(function(e){n({type:D.a.SUBMIT_LOADING_STATUS,payload:!1})})}}},s=function(r,e){return function(t){Object(P.a)(e).then(function(e){t({type:D.a.PUBLISH_LOADING_STATUS,payload:!1}),!(e.status=200)||0===e.data.status&&(S.a.success({message:"提示",description:"撤销发布成功!"}),R(t,r))}).catch(function(){t({type:D.a.PUBLISH_LOADING_STATUS,payload:!1})})}},c=function(e){return{type:D.a.SAVE_OJ_FORM_CODE,payload:e}},_=function(e){var t=M("name",e).name,r=t.errMsg;return{type:D.a.VALIDATE_OJ_NAME,payload:U("name",e,r,t)}},l=function(e){var t=M("language",e).language,r=t.errMsg;return{type:D.a.VALIDATE_OJ_LANGUAGE,payload:U("language",e,r,t)}},p=function(e){var t=M("description",e).description,r=t.errMsg;return{type:D.a.VALIDATE_OJ_DESCRIPTION,payload:U("description",e,r,t)}},f=function(e){var t=M("difficult",e).difficult,r=t.errMsg;return{type:D.a.VALIDATE_OJ_DIFFICULT,payload:U("difficult",e,r,t)}},h=function(e){var t=M("timeLimit",e).timeLimit,r=t.errMsg;return{type:D.a.VALIDATE_OJ_TIMELIMIT,payload:U("timeLimit",e,r,t)}},y=function(e){var t=M("category",e).category,r=t.errMsg;return{type:D.a.VALIDATE_OJ_CATEGORY,payload:U("category",e,r,t)}},A=function(e){var t=M("openOrNot",e).openOrNot,r=t.errMsg;return{type:D.a.VALIDATE_OJ_OPENORNOT,payload:U("openOrNot",e,r,t)}},g=function(e){return{type:D.a.ADD_TEST_CASE,payload:e}},m=function(e){return{type:D.a.DELETE_TEST_CASE,payload:e}},v=function(e){return function(t){Object(P.e)(e).then(function(e){t({type:D.a.SAVE_EDIT_OJ_FORM_AND_TEST_CASE,payload:e.data}),t({type:D.a.SAVE_USER_INFO,payload:e.data.user})})}},b=function(e){return{type:D.a.SAVE_OJ_FORM_ID,payload:e}},w=function(){return{type:D.a.CLEAR_JSFORM_STORE}},O=function(n,i){return function(e,t){var r=M("input",n).input;if(!r.errMsg){var a="";t().ojFormReducer.testCases.some(function(e,t){return t!==i&&(e.input===n&&(a="与测试用例"+i+"的输入值重复了,请重新填写"),e.input===n)})&&(r={validateStatus:"error",errMsg:a})}e({type:D.a.TEST_CASE_INPUT_CHANGE,payload:{input:r,value:n,index:i}})}},k=function(e,t){var r=M("output",e).output;return{type:D.a.TEST_CASE_OUTPUT_CHANGE,payload:{output:r,value:e,index:t}}},x=function(t){return function(e){e({type:D.a.UPDATE_TEST_AND_VALIDATE,payload:t})}},E=function(e){return{type:D.a.UPDATE_OPEN_TESTCASE_INDEX,payload:e}}},1807:function(e,t,r){"use strict";r.d(t,"m",function(){return u}),r.d(t,"l",function(){return d}),r.d(t,"f",function(){return s}),r.d(t,"j",function(){return p}),r.d(t,"o",function(){return f}),r.d(t,"c",function(){return h}),r.d(t,"d",function(){return y}),r.d(t,"e",function(){return A}),r.d(t,"k",function(){return g}),r.d(t,"a",function(){return m}),r.d(t,"n",function(){return v}),r.d(t,"g",function(){return b}),r.d(t,"h",function(){return w}),r.d(t,"i",function(){return O}),r.d(t,"b",function(){return k});function c(o,u,d,t){var r=1,s=setInterval(function(){var a,e,n,i;a=t,e=r++,n=s,i=e++*500,Object(l.b)(u,{mode:d}).then(function(e){var t=e.data.status;if(0==+t||a+1<i/1e3){clearInterval(n);var r=n=null;r=1===t?{error_line:-1,error_msg:"",execute_memory:"",execute_time:a,input:"",output:"",status:2,expected_output:""}:e.data.data,o({type:_.a.COMMIT_RECORD_DETAIL,payload:{type:d,data:r}}),d&&"debug"!==d?(o({type:_.a.SUBMIT_LOADING_STATUS,payload:!1}),o({type:_.a.CHANGE_USER_CODE_TAB,payload:"record"}),o(y(u)),o(O(d))):(o({type:_.a.LOADING_STATUS,payload:!1}),o({type:_.a.TEST_CODE_STATUS,payload:"finish"}))}}).catch(function(e){clearInterval(n),n=null,o(d&&"debug"!==d?{type:_.a.SUBMIT_LOADING_STATUS,payload:!1}:{type:_.a.LOADING_STATUS,payload:!1})})},500)}var a=r(46),n=(r.n(a),r(47)),i=r.n(n),_=r(51),o=r(188),l=(r.n(o),r(1393)),u=function(i,o){return function(n){Object(l.i)(i).then(function(e){var t=e.status,r=e.data;if(200===t){var a=r.identifier;n({type:_.a.SAVE_USER_PROGRAM_ID,payload:a}),n({type:_.a.SAVE_HACK_IDENTIFIER,payload:i}),a&&o.history.push({pathname:"/myproblems/"+a})}})}},d=function(e){return{type:_.a.SAVE_USER_PROGRAM_ID,payload:e}},s=function(e,o){return function(i){Object(l.p)(e).then(function(e){var t=e.status,r=e.data,a=void 0===r?{}:r;if(200===t){if(401===a.status)return;i(o?{type:_.a.GET_COMMIT_RECORD_DETAIL_BY_ID,payload:a}:{type:_.a.USER_PROGRAM_DETAIL,payload:a}),i({type:_.a.SAVE_USE_TEST_CASE_VALUE,payload:a.test_case||{}});var n=!1;a.hack&&(n=a.hack.modify_code),i({type:_.a.SAVE_NOTICE_COUNT,payload:n}),i({type:_.a.SAVE_USER_INFO,payload:a.user})}})}},p=function(e,r){return function(t){t({type:_.a.AUTO_UPDATE_CODE,payload:!0}),Object(l.j)(e,{code:o.Base64.encode(r)}).then(function(e){401!==e.data.status&&setTimeout(function(){t({type:_.a.AUTO_UPDATE_CODE,payload:!1})},1e3)}).catch(function(){t({type:_.a.AUTO_UPDATE_CODE,payload:!1})})}},f=function(n,i,o){return function(t,e){var r=e().ojForUserReducer,a=r.userCode;r.isUpdateCode?Object(l.j)(n,{code:a}).then(function(e){401!==e.data.status?(t({type:_.a.IS_UPDATE_CODE,flag:!1}),t(h(n,i,o))):t({type:_.a.LOADING_STATUS,payload:!1})}):t(h(n,i,o))}},h=function(n,i,o){return function(t,e){var r=e().ojForUserReducer.hack.time_limit,a=void 0===r?0:r;o&&"debug"!==o||t({type:_.a.TEST_CODE_STATUS,payload:"loading"}),Object(l.c)(n,i).then(function(e){if(200===e.status){if(401===e.data.status)return void t({type:_.a.LOADING_STATUS,payload:!1});c(t,n,o,a)}}).catch(function(){t({type:_.a.TEST_CODE_STATUS,payload:"error"}),t({type:_.a.LOADING_STATUS,payload:!1}),t({type:_.a.SUBMIT_LOADING_STATUS,payload:!1})})}},y=function(e){return function(a){Object(l.m)(e).then(function(e){var t=e.status,r=e.data;200===t&&a({type:_.a.COMMIT_RECORD,payload:r})})}},A=function(e){return function(r){Object(l.n)(e).then(function(e){var t=e.data;401!==t.status&&(r({type:_.a.GET_COMMIT_RECORD_DETAIL_BY_ID,payload:t}),r({type:_.a.CLICK_OPERATE_TYPE,payload:""}))})}},g=function(e){return{type:_.a.SAVE_USER_CODE,payload:e}},m=function(e){return{type:_.a.CHANGE_USER_CODE_TAB,payload:e}},v=function(d,e,s){return function(t,e){var r=e().ojForUserReducer,a=r.userCode,n=r.isUpdateCode,i=r.hack.time_limit,o=void 0===i?0:i;function u(){Object(l.l)(d).then(function(e){if(200===e.status){if(401===e.data.status)return void t({type:_.a.SUBMIT_LOADING_STATUS,payload:!1});c(t,d,s,o)}}).catch(function(){t({type:_.a.SUBMIT_LOADING_STATUS,payload:!1})})}n?Object(l.j)(d,{code:a}).then(function(e){401!==e.data.status?(t({type:_.a.IS_UPDATE_CODE,flag:!1}),u()):t({type:_.a.SUBMIT_LOADING_STATUS,payload:!1})}).catch(function(){t({type:_.a.SUBMIT_LOADING_STATUS,payload:!1})}):u()}},b=function(e,n){return function(a){Object(l.h)(e).then(function(e){if(401!==e.data.status){var t=e.status,r=e.data;200===t&&(a({type:_.a.RESTORE_INITIAL_CODE,payload:r.code}),i.a.success({message:"提示",description:n}),a({type:_.a.SAVE_NOTICE_COUNT,payload:!1}))}})}},w=function(e){return{type:_.a.SAVE_EDITOR_CODE,payload:e}},O=function(e){return{type:_.a.CLICK_OPERATE_TYPE,payload:e}},k=function(){return{type:_.a.CLEAR_OJ_FOR_USER_REDUCER}}},1808:function(e,t,r){"use strict";r.d(t,"c",function(){return n}),r.d(t,"a",function(){return i}),r.d(t,"d",function(){return o}),r.d(t,"b",function(){return u}),r.d(t,"e",function(){return d});var a=r(51),n=function(e){return{type:a.a.SHOW_OR_HIDE_CONTROL,payload:e}},i=function(e){return{type:a.a.LOADING_STATUS,payload:e}},o=function(e){return{type:a.a.SUBMIT_LOADING_STATUS,payload:e}},u=function(e){return{type:a.a.PUBLISH_LOADING_STATUS,payload:e}},d=function(e){return{type:a.a.IS_MY_SOURCE,payload:e}}},1809:function(e,t,r){"use strict";r.d(t,"a",function(){return i});var a=r(51),n=r(1393),i=function(){return function(r){Object(n.o)().then(function(e){var t=e.data;401!==t.status&&r({type:a.a.SAVE_USER_INFO,payload:t.user})})}}},1810:function(e,t,r){"use strict";r.d(t,"f",function(){return i}),r.d(t,"g",function(){return s}),r.d(t,"h",function(){return c}),r.d(t,"k",function(){return l}),r.d(t,"i",function(){return p}),r.d(t,"a",function(){return f}),r.d(t,"d",function(){return h}),r.d(t,"j",function(){return y}),r.d(t,"c",function(){return A}),r.d(t,"e",function(){return g}),r.d(t,"b",function(){return m}),r.d(t,"l",function(){return v});var a=r(178),n=(r.n(a),r(179)),o=r.n(n),u=r(51),d=r(1811),i=function(t){return function(n,e){var i=e().jupyterReducer.jupyter_pagination;Object(d.b)(t).then(function(e){if(401!==e.data.status&&200===e.status){var t=e.data;n({type:u.a.SAVE_JUPYTER_INFO,payload:t});var r=t.identifier,a=t.myshixun_identifier;n(_(r)),n(s(r,i)),n(c({identifier:a}))}})}},s=function(t,r){return function(n,e){r=r||e().jupyterReducer.jupyter_pagination,Object(d.c)(t,r).then(function(e){if(401!==e.data.status&&200===e.status){var t=e.data,r=t.data_sets,a=t.data_sets_count;n({type:u.a.GET_JUPYTER_DATA_SETS,payload:{data_sets:r,data_sets_count:a}})}})}},c=function(a){return function(o,e){var t=e().jupyterReducer.jupyter_info;if(a.identifier||t.myshixun_identifier){var r=a.identifier||t.myshixun_identifier;Object(d.d)({identifier:r}).then(function(e){if(401!==e.data.status&&200===e.status){var t=e.data,r=t.status,a=t.url,n=void 0===a?"":a,i=t.port;m(Date.now()+36e5),o({type:u.a.GET_JUPYTER_TPI_URL,payload:{status:r,url:n,port:i}})}})}}},_=function(e){return{type:u.a.SAVE_JUPYTER_IDENTIFIER,payload:e}},l=function(t,r){return function(e){Object(d.f)(t).then(function(e){401!==e.data.status&&200===e.status&&0===e.data.status&&(o.a.success(r),v(!1),setTimeout(function(){window.location.reload()},300))})}},p=function(e,n){return function(e,t){var r=t().jupyterReducer.jupyter_info;if(r.myshixun_identifier){var a={identifier:r.myshixun_identifier};Object(d.g)(a).then(function(e){401!==e.data.status&&200===e.status&&0===e.data.status&&(o.a.success(n),v(!1),setTimeout(function(){window.location.reload()},300))})}}},f=function(e,n){return function(e,t){var r=t().jupyterReducer.jupyter_info;if(r.myshixun_identifier){var a={identifier:r.myshixun_identifier};Object(d.a)(a).then(function(e){401!==e.data.status&&200===e.status&&0===e.data.status&&(o.a.success(n),m(Date.now()+9e5))})}}},h=function(e){return{type:u.a.CHANGE_JUPYTER_URL_STATE,payload:e}},y=function(){return function(t,e){var r=e().jupyterReducer,a=r.jupyter_tpi_code,n=r.jupyter_info;if(n.myshixun_identifier){var i={identifier:n.myshixun_identifier,jupyter_port:a};Object(d.e)(i).then(function(e){t({type:u.a.LOADING_STATUS,payload:!1}),200!==e.status||0===e.data.status&&o.a.success("保存成功!")}).catch(function(){t({type:u.a.LOADING_STATUS,payload:!1})})}}},A=function(e){return{type:u.a.CHANGE_JUPYTER_CURRENT_PAGE,payload:e}},g=function(e){return{type:u.a.CHANGE_SHOW_DRAWER,payload:e}},m=function(e){return{type:u.a.CHANGE_JYPYTER_TIME,payload:e}},v=function(e){return{type:u.a.CHANGE_UPDETA_SPIN,payload:e}}},1811:function(e,t,r){"use strict";r.d(t,"b",function(){return h}),r.d(t,"c",function(){return y}),r.d(t,"d",function(){return A}),r.d(t,"f",function(){return g}),r.d(t,"e",function(){return m}),r.d(t,"g",function(){return v}),r.d(t,"a",function(){return b});var a=r(1304),n=r.n(a),i=r(12),o=r.n(i);function u(e){return function(){var u=e.apply(this,arguments);return new Promise(function(i,o){return function t(e,r){try{var a=u[e](r),n=a.value}catch(e){return void o(e)}if(!a.done)return Promise.resolve(n).then(function(e){t("next",e)},function(e){t("throw",e)});i(n)}("next")})}}var d,s,c,_,l,p,f,h=(d=u(n.a.mark(function e(t){var r;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="/tasks/"+t+"/jupyter.json",e.abrupt("return",o.a.get(r));case 2:case"end":return e.stop()}},e,this)})),function(e){return d.apply(this,arguments)}),y=(s=u(n.a.mark(function e(t,r){var a;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a="/shixuns/"+t+"/get_data_sets.json",e.abrupt("return",o.a.get(a,{params:r}));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return s.apply(this,arguments)}),A=(c=u(n.a.mark(function e(t){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",o.a.get("/jupyters/get_info_with_tpi.json",{params:t}));case 2:case"end":return e.stop()}},e,this)})),function(e){return c.apply(this,arguments)}),g=(_=u(n.a.mark(function e(t){var r;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="/myshixuns/"+t+"/sync_code.json",e.abrupt("return",o.a.post(r));case 2:case"end":return e.stop()}},e,this)})),function(e){return _.apply(this,arguments)}),m=(l=u(n.a.mark(function e(t){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",o.a.get("/jupyters/save_with_tpi.json",{params:t}));case 2:case"end":return e.stop()}},e,this)})),function(e){return l.apply(this,arguments)}),v=(p=u(n.a.mark(function e(t){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",o.a.get("/jupyters/reset_with_tpi.json",{params:t}));case 2:case"end":return e.stop()}},e,this)})),function(e){return p.apply(this,arguments)}),b=(f=u(n.a.mark(function e(t){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",o.a.get("/jupyters/active_with_tpi.json",{params:t}));case 2:case"end":return e.stop()}},e,this)})),function(e){return f.apply(this,arguments)})},1944:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,n=r(0),i=(a=r(2619))&&a.__esModule?a:{default:a};var o=(0,n.memo)(i.default);t.default=o},1945:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMount",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"useUpdate",{enumerable:!0,get:function(){return n.default}});var a=i(r(2627)),n=i(r(2628));function i(e){return e&&e.__esModule?e:{default:e}}},1946:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={"night-dark":{base:"vs-dark",inherit:!0,rules:[],colors:{"editor.background":"#202124"}}};t.default=a},2006:function(e,t,r){"use strict";var a=r(2007),n=(r.n(a),r(0)),i=r.n(n),o=r(5);t.a=function(e){var t=e.userInfo,r=t.image_url,a=t.name;return i.a.createElement("div",{className:"avator_nicker"},i.a.createElement("img",{style:{display:r?"inline-block":"none"},alt:"用户头像",className:"student_img",src:Object(o.M)("images/"+r||"images/educoder/headNavLogo.png?1526520218")}),i.a.createElement("span",{className:"student_nicker"},a||""))}},2007:function(e,t,r){var a=r(2008);"string"==typeof a&&(a=[[e.i,a,""]]);var n={hmr:!0,transform:void 0};r(288)(a,n);a.locals&&(e.exports=a.locals)},2008:function(e,t,r){(e.exports=r(287)(!0)).push([e.i,".avator_nicker{position:absolute;color:#fff;line-height:65px;left:20px}.avator_nicker .student_img,.avator_nicker .student_nicker{display:inline-block;vertical-align:top}.avator_nicker .student_nicker{margin-left:10px}.avator_nicker .student_img{width:30px;height:30px;border-radius:50%;margin-top:15px}","",{version:3,sources:["/Users/yangshuming/Desktop/new__educode/educoder/public/react/src/modules/developer/components/userInfo/index.scss"],names:[],mappings:"AAAA,eAAe,kBAAkB,WAAW,iBAAiB,SAAS,CAAC,2DAA2D,qBAAqB,kBAAkB,CAAC,+BAA+B,gBAAgB,CAAC,4BAA4B,WAAW,YAAY,kBAAkB,eAAe,CAAC",file:"index.scss",sourcesContent:[".avator_nicker{position:absolute;color:#fff;line-height:65px;left:20px}.avator_nicker .student_img,.avator_nicker .student_nicker{display:inline-block;vertical-align:top}.avator_nicker .student_nicker{margin-left:10px}.avator_nicker .student_img{width:30px;height:30px;border-radius:50%;margin-top:15px}\n"],sourceRoot:""}])},2617:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,n=r(0),i=(a=r(2618))&&a.__esModule?a:{default:a};var o=(0,n.memo)(i.default);t.default=o},2618:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var w=function(e){if(e&&e.__esModule)return e;var t=o();if(t&&t.has(e))return t.get(e);var r={};if(null!=e){var a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=a?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n]}}r.default=e,t&&t.set(e,r);return r}(r(0)),a=n(r(1)),O=n(r(1944)),k=r(1574),x=r(1945),E=n(r(1946));function n(e){return e&&e.__esModule?e:{default:e}}function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function C(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,a)}return r}function j(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var r=[],a=!0,n=!1,i=void 0;try{for(var o,u=e[Symbol.iterator]();!(a=(o=u.next()).done)&&(r.push(o.value),!t||r.length!==t);a=!0);}catch(e){n=!0,i=e}finally{try{a||null==u.return||u.return()}finally{if(n)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){var r=e.value,t=e.language,a=e.editorDidMount,n=e.theme,i=e.line,o=e.width,u=e.height,d=e.loading,s=e.options,c=e._isControlledMode,_=T((0,w.useState)(!1),2),l=_[0],p=_[1],f=T((0,w.useState)(!0),2),h=f[0],y=f[1],A=(0,w.useRef)(),g=(0,w.useRef)(),m=(0,w.useRef)();(0,x.useMount)(function(e){return k.monaco.init().then(function(e){return(g.current=e)&&y(!1)}).catch(function(e){}),b}),(0,x.useUpdate)(function(e){if(s.readOnly)A.current.setValue(r);else{if(A.current.executeEdits("",[{range:A.current.getModel().getFullModelRange(),text:r}]),c){var t=A.current.getModel();t.forceTokenization(t.getLineCount())}A.current.pushUndoStop()}},[r],l),(0,x.useUpdate)(function(e){A.current.setValue(r),g.current.editor.setModelLanguage(A.current.getModel(),t)},[t],l),(0,x.useUpdate)(function(e){A.current.setScrollPosition({scrollTop:i})},[i],l),(0,x.useUpdate)(function(e){g.current.editor.setTheme(n)},[n],l),(0,x.useUpdate)(function(e){A.current.updateOptions(s)},[s],l);var v=(0,w.useCallback)(function(e){A.current=g.current.editor.create(m.current,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?C(r,!0).forEach(function(e){j(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):C(r).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({value:r,language:t,automaticLayout:!0},s)),a(A.current.getValue.bind(A.current),A.current),g.current.editor.defineTheme("dark",E.default["night-dark"]),g.current.editor.setTheme(n),p(!0)},[a,t,s,n,r]);(0,w.useEffect)(function(e){h||l||v()},[h,l,v]);var b=function(){return A.current&&A.current.dispose()};return w.default.createElement(O.default,{width:o,height:u,isEditorReady:l,loading:d,_ref:m})}i.propTypes={value:a.default.string,language:a.default.string,editorDidMount:a.default.func,theme:a.default.string,line:a.default.number,width:a.default.oneOfType([a.default.number,a.default.string]),height:a.default.oneOfType([a.default.number,a.default.string]),loading:a.default.oneOfType([a.default.element,a.default.string]),options:a.default.object,_isControlledMode:a.default.bool},i.defaultProps={editorDidMount:k.noop,theme:"light",width:"100%",height:"100%",loading:"Loading...",options:{},_isControlledMode:!1};var u=i;t.default=u},2619:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(0)),a=n(r(1)),u=n(r(2620)),d=n(r(2622));function n(e){return e&&e.__esModule?e:{default:e}}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,a)}return r}function s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(r,!0).forEach(function(e){c(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(r).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _(e){var t=e.width,r=e.height,a=e.isEditorReady,n=e.loading,i=e._ref;return o.default.createElement("section",{style:s({},d.default.wrapper,{width:t,height:r})},!a&&o.default.createElement(u.default,{content:n}),o.default.createElement("div",{ref:i,style:s({},d.default.fullWidth,{},!a&&d.default.hide)}))}_.propTypes={width:a.default.oneOfType([a.default.number,a.default.string]).isRequired,height:a.default.oneOfType([a.default.number,a.default.string]).isRequired,loading:a.default.oneOfType([a.default.element,a.default.string]).isRequired,isEditorReady:a.default.bool.isRequired};var l=_;t.default=l},2620:function(e,t,r){"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=((a=r(2621))&&a.__esModule?a:{default:a}).default;t.default=n},2621:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,n=(a=r(0))&&a.__esModule?a:{default:a};var i={display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"};function o(e){var t=e.content;return n.default.createElement("div",{style:i},t)}t.default=o},2622:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}};t.default=a},2623:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,n=(a=r(2624))&&a.__esModule?a:{default:a},i=r(1574);function o(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var d=new(function(){function t(){var r=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),u(this,"handleMainScriptLoad",function(e){document.removeEventListener("monaco_init",r.handleMainScriptLoad),r.resolve(window.monaco)}),u(this,"isInitialized",!1),u(this,"wrapperPromise",new Promise(function(e,t){r.resolve=e,r.reject=t})),this.__config=e}var e,r,a;return e=t,(r=[{key:"config",value:function(e){return e&&(this.__config=(0,i.deepMerge)(this.__config,e)),this}},{key:"injectScripts",value:function(e){document.body.appendChild(e)}},{key:"createScript",value:function(e){var t=document.createElement("script");return e&&(t.src=e),t}},{key:"createMonacoLoaderScript",value:function(t){var r=this,e=this.createScript(this.__config.urls.monacoLoader);return e.onload=function(e){return r.injectScripts(t)},e.onerror=this.reject,e}},{key:"createMainScript",value:function(){var e=this.createScript();return e.innerHTML="\n require.config({ paths: { 'vs': '".concat(this.__config.urls.monacoBase,"' } });\n require(['vs/editor/editor.main'], function() {\n document.dispatchEvent(new Event('monaco_init'));\n });\n "),e.onerror=this.reject,e}},{key:"init",value:function(){if(!this.isInitialized){if(window.monaco&&window.monaco.editor)return new Promise(function(e,t){return e(window.monaco)});document.addEventListener("monaco_init",this.handleMainScriptLoad);var e=this.createMainScript(),t=this.createMonacoLoaderScript(e);this.injectScripts(t)}return this.isInitialized=!0,this.wrapperPromise}}])&&o(e.prototype,r),a&&o(e,a),t}())(n.default);t.default=d},2624:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={urls:{monacoLoader:"https://cdn.jsdelivr.net/npm/monaco-editor@0.18.1/min/vs/loader.js",monacoBase:"https://cdn.jsdelivr.net/npm/monaco-editor@0.18.1/min/vs"}};t.default=a},2625:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;function a(){}t.default=a},2626:function(e,t,r){"use strict";function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,a)}return r}function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;function i(t,r){return Object.keys(r).forEach(function(e){r[e]instanceof Object&&Object.assign(r[e],i(t[e],r[e]))}),function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(r,!0).forEach(function(e){n(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(r).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({},t,{},r)}t.default=i},2627:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;function a(e){return(0,n.useEffect)(e,[])}var n=r(0);t.default=a},2628:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;function a(e,t,r){var a=!(2<arguments.length&&void 0!==r)||r,n=(0,i.useRef)(!0);(0,i.useEffect)(n.current||!a?function(e){n.current=!1}:e,t)}var i=r(0);t.default=a},2629:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,n=r(0),i=(a=r(2630))&&a.__esModule?a:{default:a};var o=(0,n.memo)(i.default);t.default=o},2630:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var x=function(e){if(e&&e.__esModule)return e;var t=o();if(t&&t.has(e))return t.get(e);var r={};if(null!=e){var a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=a?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n]}}r.default=e,t&&t.set(e,r);return r}(r(0)),a=n(r(1)),E=n(r(1944)),C=r(1574),j=r(1945),T=n(r(1946));function n(e){return e&&e.__esModule?e:{default:e}}function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function S(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,a)}return r}function D(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var r=[],a=!0,n=!1,i=void 0;try{for(var o,u=e[Symbol.iterator]();!(a=(o=u.next()).done)&&(r.push(o.value),!t||r.length!==t);a=!0);}catch(e){n=!0,i=e}finally{try{a||null==u.return||u.return()}finally{if(n)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){var a=e.original,n=e.modified,i=e.language,o=e.originalLanguage,u=e.modifiedLanguage,d=e.editorDidMount,s=e.theme,t=e.line,r=e.width,c=e.height,_=e.loading,l=e.options,p=P((0,x.useState)(!1),2),f=p[0],h=p[1],y=P((0,x.useState)(!0),2),A=y[0],g=y[1],m=(0,x.useRef)(),v=(0,x.useRef)(),b=(0,x.useRef)();(0,j.useMount)(function(e){return C.monaco.init().then(function(e){return(v.current=e)&&g(!1)}).catch(function(e){}),k}),(0,j.useUpdate)(function(e){m.current.getModel().modified.setValue(n)},[n],f),(0,j.useUpdate)(function(e){m.current.getModel().original.setValue(a)},[a],f),(0,j.useUpdate)(function(e){var t=m.current.getModel(),r=t.original,a=t.modified;v.current.editor.setModelLanguage(r,o||i),v.current.editor.setModelLanguage(a,u||i)},[i,o,u],f),(0,j.useUpdate)(function(e){m.current.setScrollPosition({scrollTop:t})},[t],f),(0,j.useUpdate)(function(e){v.current.editor.setTheme(s)},[s],f),(0,j.useUpdate)(function(e){m.current.updateOptions(l)},[l],f);var w=(0,x.useCallback)(function(e){var t=v.current.editor.createModel(a,o||i),r=v.current.editor.createModel(n,u||i);m.current.setModel({original:t,modified:r})},[i,n,u,a,o]),O=(0,x.useCallback)(function(e){m.current=v.current.editor.createDiffEditor(b.current,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?S(r,!0).forEach(function(e){D(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):S(r).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({automaticLayout:!0},l)),w();var t=m.current.getModel(),r=t.original,a=t.modified;d(a.getValue.bind(a),r.getValue.bind(r),m.current),v.current.editor.defineTheme("dark",T.default["night-dark"]),v.current.editor.setTheme(s),h(!0)},[d,l,s,w]);(0,x.useEffect)(function(e){A||f||O()},[A,f,O]);var k=function(){return m.current&&m.current.dispose()};return x.default.createElement(E.default,{width:r,height:c,isEditorReady:f,loading:_,_ref:b})}i.propTypes={original:a.default.string,modified:a.default.string,language:a.default.string,originalLanguage:a.default.string,modifiedLanguage:a.default.string,editorDidMount:a.default.func,theme:a.default.string,line:a.default.number,width:a.default.oneOfType([a.default.number,a.default.string]),height:a.default.oneOfType([a.default.number,a.default.string]),loading:a.default.oneOfType([a.default.element,a.default.string]),options:a.default.object},i.defaultProps={editorDidMount:C.noop,theme:"light",width:"100%",height:"100%",loading:"Loading...",options:{}};var u=i;t.default=u},2631:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,n=r(0),i=(a=r(2632))&&a.__esModule?a:{default:a};var o=(0,n.memo)(i.default);t.default=o},2632:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;var t=d();if(t&&t.has(e))return t.get(e);var r={};if(null!=e){var a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=a?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n]}}r.default=e,t&&t.set(e,r);return r}(r(0)),a=i(r(1)),u=i(r(1731)),n=r(1574);function i(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}function c(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r,a,n={},i=Object.keys(e);for(a=0;a<i.length;a++)r=i[a],0<=t.indexOf(r)||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _(e){var t=e.value,n=e.onChange,r=e.editorDidMount,a=c(e,["value","onChange","editorDidMount"]),i=(0,o.useRef)(t);return o.default.createElement(u.default,s({value:t,editorDidMount:function(e,a){a.onDidChangeModelContent(function(e){var t=a.getValue();if(t!==i.current&&!e.isUndoing&&!e.isRedoing){i.current=t;var r=n(e,t);"string"==typeof r&&t!==r&&a.setValue(r)}}),r(e,a)},_isControlledMode:!0},a))}_.propTypes={value:a.default.string,editorDidMount:a.default.func,onChange:a.default.func},_.defaultProps={editorDidMount:n.noop,onChange:n.noop};var l=_;t.default=l},3162:function(e,t,r){"use strict";var a=r(3163),n=(r.n(a),r(0)),c=r.n(n),i=r(1731),_=r.n(i);t.a=function(e){var t=e.detail,s=e.language;return c.a.createElement(c.a.Fragment,null,function(e){var t=0<arguments.length&&void 0!==e?e:{},r=t.status,a=t.error_msg,n=t.expected_output,i=t.input,o=t.output,u=t.execute_time,d=null;switch(r){case-1:d=c.a.createElement("div",{className:"error_result_wrap error_result_txt"},c.a.createElement("p",null,"输入: [",i,"]"),c.a.createElement("p",null,"输出: [",o,"]"),c.a.createElement("p",null,"预期: [",n,"]"));break;case 2:d=c.a.createElement("div",{className:"error_result_wrap error_result_txt"},c.a.createElement("p",null,"执行超时,限制时限: ",u+"s"));break;case 3:d=c.a.createElement("div",{className:"error_result_wrap"});break;case 4:d=c.a.createElement("div",{className:"error_result_wrap error_result_code"},c.a.createElement(_.a,{height:"100%",width:"100%",language:s&&s.toLowerCase()||"c",value:a,theme:"dark"}));break;case 5:d=c.a.createElement("div",{className:"error_result_wrap"},c.a.createElement("p",null,"执行出错信息: "),c.a.createElement("p",null,"最后执行的输入: ",i));break;default:return d}return d}(t))}},3163:function(e,t,r){var a=r(3164);"string"==typeof a&&(a=[[e.i,a,""]]);var n={hmr:!0,transform:void 0};r(288)(a,n);a.locals&&(e.exports=a.locals)},3164:function(e,t,r){(e.exports=r(287)(!0)).push([e.i,".error_result_wrap.error_result_txt{padding:20px 30px}.error_result_wrap.error_result_code{height:150px}.error_result_wrap.error_result_code .error_result_code_txt{line-height:32px}","",{version:3,sources:["/Users/yangshuming/Desktop/new__educode/educoder/public/react/src/modules/developer/components/errorResult/index.scss"],names:[],mappings:"AAAA,oCAAoC,iBAAiB,CAAC,qCAAqC,YAAY,CAAC,4DAA4D,gBAAgB,CAAC",file:"index.scss",sourcesContent:[".error_result_wrap.error_result_txt{padding:20px 30px}.error_result_wrap.error_result_code{height:150px}.error_result_wrap.error_result_code .error_result_code_txt{line-height:32px}\n"],sourceRoot:""}])},4543:function(e,t,r){var a=r(4544);"string"==typeof a&&(a=[[e.i,a,""]]);var n={hmr:!0,transform:void 0};r(288)(a,n);a.locals&&(e.exports=a.locals)},4544:function(e,t,r){(e.exports=r(287)(!0)).push([e.i,".new_add_task_wrap,.record_detail_area,.student_study_warp{height:100vh}.new_add_task_wrap .record_detail_header,.new_add_task_wrap .student_study_header,.new_add_task_wrap .task_header,.record_detail_area .record_detail_header,.record_detail_area .student_study_header,.record_detail_area .task_header,.student_study_warp .record_detail_header,.student_study_warp .student_study_header,.student_study_warp .task_header{height:65px;background:#070f19;padding:0 20px}.new_add_task_wrap .task_header,.record_detail_area .task_header,.student_study_warp .task_header{position:relative;line-height:65px}.new_add_task_wrap .task_header .header_btn,.new_add_task_wrap .task_header .header_title,.record_detail_area .task_header .header_btn,.record_detail_area .task_header .header_title,.student_study_warp .task_header .header_btn,.student_study_warp .task_header .header_title{color:#fff;line-height:65px}.new_add_task_wrap .task_header .header_title,.record_detail_area .task_header .header_title,.student_study_warp .task_header .header_title{text-align:center}.new_add_task_wrap .task_header .header_btn,.record_detail_area .task_header .header_btn,.student_study_warp .task_header .header_btn{position:absolute;line-height:32px;top:18px}.new_add_task_wrap .task_header .header_btn:last-child,.record_detail_area .task_header .header_btn:last-child,.student_study_warp .task_header .header_btn:last-child{right:30px}.new_add_task_wrap .pane_right_area,.new_add_task_wrap .record_detail_header,.new_add_task_wrap .split-pane-area,.new_add_task_wrap .student_study_header,.record_detail_area .pane_right_area,.record_detail_area .record_detail_header,.record_detail_area .split-pane-area,.record_detail_area .student_study_header,.student_study_warp .pane_right_area,.student_study_warp .record_detail_header,.student_study_warp .split-pane-area,.student_study_warp .student_study_header{position:relative}.new_add_task_wrap .record_detail_header .avator_nicker,.new_add_task_wrap .record_detail_header .study_name,.new_add_task_wrap .record_detail_header .study_quit,.new_add_task_wrap .student_study_header .avator_nicker,.new_add_task_wrap .student_study_header .study_name,.new_add_task_wrap .student_study_header .study_quit,.record_detail_area .record_detail_header .avator_nicker,.record_detail_area .record_detail_header .study_name,.record_detail_area .record_detail_header .study_quit,.record_detail_area .student_study_header .avator_nicker,.record_detail_area .student_study_header .study_name,.record_detail_area .student_study_header .study_quit,.student_study_warp .record_detail_header .avator_nicker,.student_study_warp .record_detail_header .study_name,.student_study_warp .record_detail_header .study_quit,.student_study_warp .student_study_header .avator_nicker,.student_study_warp .student_study_header .study_name,.student_study_warp .student_study_header .study_quit{color:#fff;line-height:65px}.new_add_task_wrap .record_detail_header .avator_nicker,.new_add_task_wrap .record_detail_header .study_quit,.new_add_task_wrap .student_study_header .avator_nicker,.new_add_task_wrap .student_study_header .study_quit,.record_detail_area .record_detail_header .avator_nicker,.record_detail_area .record_detail_header .study_quit,.record_detail_area .student_study_header .avator_nicker,.record_detail_area .student_study_header .study_quit,.student_study_warp .record_detail_header .avator_nicker,.student_study_warp .record_detail_header .study_quit,.student_study_warp .student_study_header .avator_nicker,.student_study_warp .student_study_header .study_quit{display:inline-block;vertical-align:top}.new_add_task_wrap .record_detail_header .student_nicker,.new_add_task_wrap .student_study_header .student_nicker,.record_detail_area .record_detail_header .student_nicker,.record_detail_area .student_study_header .student_nicker,.student_study_warp .record_detail_header .student_nicker,.student_study_warp .student_study_header .student_nicker{margin-left:10px}.new_add_task_wrap .record_detail_header .student_img,.new_add_task_wrap .student_study_header .student_img,.record_detail_area .record_detail_header .student_img,.record_detail_area .student_study_header .student_img,.student_study_warp .record_detail_header .student_img,.student_study_warp .student_study_header .student_img{width:30px;height:30px}.new_add_task_wrap .record_detail_header .study_quit,.new_add_task_wrap .student_study_header .study_quit,.record_detail_area .record_detail_header .study_quit,.record_detail_area .student_study_header .study_quit,.student_study_warp .record_detail_header .study_quit,.student_study_warp .student_study_header .study_quit{float:right}.new_add_task_wrap .record_detail_header .study_name,.new_add_task_wrap .student_study_header .study_name,.record_detail_area .record_detail_header .study_name,.record_detail_area .student_study_header .study_name,.student_study_warp .record_detail_header .study_name,.student_study_warp .student_study_header .study_name{position:absolute;left:0;right:0;bottom:0;top:0;text-align:center}.add_editor_list_area{background:#fff;padding:0 20px;margin:0}.add_editor_list_area .add_editor_item{display:inline-block;height:56px;line-height:56px;box-sizing:border-box;margin-right:30px;border-bottom:2px solid transparent;transition:all .3s;cursor:pointer}.add_editor_list_area .add_editor_item .item-span{color:#666;font-size:16px}.add_editor_list_area .add_editor_item.active{border-bottom-color:#5091ff}.add_editor_list_area .add_editor_item.active .item-span{color:#5091ff}.comp_ctx{height:calc(100vh - 178px);overflow-y:hidden}.split-pane-area .ant-tabs-nav-wrap,.split-pane-left .ant-tabs-nav-wrap{padding:0 20px}.split-pane-area .ant-tabs-bar,.split-pane-left .ant-tabs-bar{margin:0}.split-pane-area .ant-form-item-control,.split-pane-left .ant-form-item-control{line-height:1}.split-pane-area .editor_area,.split-pane-area .prev_area,.split-pane-left .editor_area,.split-pane-left .prev_area{height:100%;overflow-y:auto}.Resizer{background:#000;opacity:.2;z-index:1;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;-moz-background-clip:padding;-webkit-background-clip:padding;background-clip:padding-box}.Resizer:hover{-webkit-transition:all 2s ease;transition:all 2s ease}.Resizer.horizontal{height:11px;margin:-5px 0;border-top:5px solid hsla(0,0%,100%,0);border-bottom:5px solid hsla(0,0%,100%,0);cursor:row-resize;width:100%}.Resizer.horizontal:hover{border-top:5px solid rgba(0,0,0,.5);border-bottom:5px solid rgba(0,0,0,.5)}.Resizer.vertical{width:11px;margin:0 -5px;border-left:5px solid hsla(0,0%,100%,0);border-right:5px solid hsla(0,0%,100%,0);cursor:col-resize}.Resizer.vertical:hover{border-left:5px solid rgba(0,0,0,.5);border-right:5px solid rgba(0,0,0,.5)}.Resizer.disabled{cursor:not-allowed}.Resizer.disabled:hover{border-color:transparent}.record_detail_area .record_detail_ctx{padding:0 20px}.record_detail_area .record_detail_ctx .detail_ctx_header{position:relative;height:56px}.record_detail_area .record_detail_ctx .header_h2{line-height:56px}.record_detail_area .record_detail_ctx .header_btn{position:absolute;right:0;top:14px}.record_detail_area .record_detail_ctx .detail_ctx_status{height:18px;line-height:18px}.record_detail_area .record_detail_ctx .detail_ctx_status .status_label{color:#999;margin-right:40px}.record_detail_area .record_detail_ctx .detail_ctx_status .status_label_error{color:#e51c24}.record_detail_area .record_detail_ctx .detail_ctx_status .status_label_success{color:#28bd8b}.record_detail_area .record_detail_ctx .detail_ctx_status .status_label_sub{color:#333}.record_detail_area .record_detail_ctx .result_code_area{height:calc(100vh - 360px)}.record_detail_area .record_detail_ctx .result_error_area{margin-top:15px}","",{version:3,sources:["/Users/yangshuming/Desktop/new__educode/educoder/public/react/src/modules/developer/recordDetail/index.scss"],names:[],mappings:"AAAA,2DAA2D,YAAY,CAAC,4VAA4V,YAAY,mBAAmB,cAAc,CAAC,kGAAkG,kBAAkB,gBAAgB,CAAC,kRAAkR,WAAW,gBAAgB,CAAC,4IAA4I,iBAAiB,CAAC,sIAAsI,kBAAkB,iBAAiB,QAAQ,CAAC,uKAAuK,UAAU,CAAC,AAA8O,sdAA0P,iBAAiB,CAAC,w9BAAw9B,WAAW,gBAAgB,CAAC,spBAAspB,qBAAqB,kBAAkB,CAAC,0VAA0V,gBAAgB,CAAC,wUAAwU,WAAW,WAAW,CAAC,kUAAkU,WAAW,CAAC,kUAAkU,kBAAkB,OAAO,QAAQ,SAAS,MAAM,iBAAiB,CAAC,sBAAsB,gBAAgB,eAAe,QAAQ,CAAC,uCAAuC,qBAAqB,YAAY,iBAAiB,sBAAsB,kBAAkB,oCAAoC,mBAAmB,cAAc,CAAC,kDAAkD,WAAW,cAAc,CAAC,8CAA8C,2BAA2B,CAAC,yDAAyD,aAAa,CAAC,UAAU,2BAA2B,iBAAiB,CAAC,wEAAwE,cAAc,CAAC,8DAA8D,QAAQ,CAAC,gFAAgF,aAAa,CAAC,oHAAoH,YAAY,eAAe,CAAC,SAAS,gBAAgB,WAAY,UAAU,2BAA2B,8BAA8B,sBAAsB,6BAA6B,gCAAgC,2BAA2B,CAAC,eAAe,+BAA+B,sBAAsB,CAAC,oBAAoB,YAAY,cAAc,uCAAyC,0CAA4C,kBAAkB,UAAU,CAAC,0BAA0B,oCAAqC,sCAAuC,CAAC,kBAAkB,WAAW,cAAc,wCAA0C,yCAA2C,iBAAiB,CAAC,wBAAwB,qCAAsC,qCAAsC,CAAC,kBAAkB,kBAAkB,CAAC,wBAAwB,wBAAwB,CAAC,uCAAuC,cAAc,CAAC,0DAA0D,kBAAkB,WAAW,CAAC,kDAAkD,gBAAgB,CAAC,mDAAmD,kBAAkB,QAAQ,QAAQ,CAAC,0DAA0D,YAAY,gBAAgB,CAAC,wEAAwE,WAAW,iBAAiB,CAAC,8EAA8E,aAAa,CAAC,gFAAgF,aAAa,CAAC,4EAA4E,UAAa,CAAC,yDAAyD,0BAA0B,CAAC,0DAA0D,eAAe,CAAC",file:"index.scss",sourcesContent:[".new_add_task_wrap,.student_study_warp,.record_detail_area{height:100vh}.new_add_task_wrap .task_header,.new_add_task_wrap .student_study_header,.new_add_task_wrap .record_detail_header,.student_study_warp .task_header,.student_study_warp .student_study_header,.student_study_warp .record_detail_header,.record_detail_area .task_header,.record_detail_area .student_study_header,.record_detail_area .record_detail_header{height:65px;background:#070f19;padding:0 20px}.new_add_task_wrap .task_header,.student_study_warp .task_header,.record_detail_area .task_header{position:relative;line-height:65px}.new_add_task_wrap .task_header .header_btn,.new_add_task_wrap .task_header .header_title,.student_study_warp .task_header .header_btn,.student_study_warp .task_header .header_title,.record_detail_area .task_header .header_btn,.record_detail_area .task_header .header_title{color:#fff;line-height:65px}.new_add_task_wrap .task_header .header_title,.student_study_warp .task_header .header_title,.record_detail_area .task_header .header_title{text-align:center}.new_add_task_wrap .task_header .header_btn,.student_study_warp .task_header .header_btn,.record_detail_area .task_header .header_btn{position:absolute;line-height:32px;top:18px}.new_add_task_wrap .task_header .header_btn:last-child,.student_study_warp .task_header .header_btn:last-child,.record_detail_area .task_header .header_btn:last-child{right:30px}.new_add_task_wrap .split-pane-area,.new_add_task_wrap .pane_right_area,.student_study_warp .split-pane-area,.student_study_warp .pane_right_area,.record_detail_area .split-pane-area,.record_detail_area .pane_right_area{position:relative}.new_add_task_wrap .student_study_header,.new_add_task_wrap .record_detail_header,.student_study_warp .student_study_header,.student_study_warp .record_detail_header,.record_detail_area .student_study_header,.record_detail_area .record_detail_header{position:relative}.new_add_task_wrap .student_study_header .avator_nicker,.new_add_task_wrap .student_study_header .study_quit,.new_add_task_wrap .student_study_header .study_name,.new_add_task_wrap .record_detail_header .avator_nicker,.new_add_task_wrap .record_detail_header .study_quit,.new_add_task_wrap .record_detail_header .study_name,.student_study_warp .student_study_header .avator_nicker,.student_study_warp .student_study_header .study_quit,.student_study_warp .student_study_header .study_name,.student_study_warp .record_detail_header .avator_nicker,.student_study_warp .record_detail_header .study_quit,.student_study_warp .record_detail_header .study_name,.record_detail_area .student_study_header .avator_nicker,.record_detail_area .student_study_header .study_quit,.record_detail_area .student_study_header .study_name,.record_detail_area .record_detail_header .avator_nicker,.record_detail_area .record_detail_header .study_quit,.record_detail_area .record_detail_header .study_name{color:#fff;line-height:65px}.new_add_task_wrap .student_study_header .avator_nicker,.new_add_task_wrap .student_study_header .study_quit,.new_add_task_wrap .record_detail_header .avator_nicker,.new_add_task_wrap .record_detail_header .study_quit,.student_study_warp .student_study_header .avator_nicker,.student_study_warp .student_study_header .study_quit,.student_study_warp .record_detail_header .avator_nicker,.student_study_warp .record_detail_header .study_quit,.record_detail_area .student_study_header .avator_nicker,.record_detail_area .student_study_header .study_quit,.record_detail_area .record_detail_header .avator_nicker,.record_detail_area .record_detail_header .study_quit{display:inline-block;vertical-align:top}.new_add_task_wrap .student_study_header .student_nicker,.new_add_task_wrap .record_detail_header .student_nicker,.student_study_warp .student_study_header .student_nicker,.student_study_warp .record_detail_header .student_nicker,.record_detail_area .student_study_header .student_nicker,.record_detail_area .record_detail_header .student_nicker{margin-left:10px}.new_add_task_wrap .student_study_header .student_img,.new_add_task_wrap .record_detail_header .student_img,.student_study_warp .student_study_header .student_img,.student_study_warp .record_detail_header .student_img,.record_detail_area .student_study_header .student_img,.record_detail_area .record_detail_header .student_img{width:30px;height:30px}.new_add_task_wrap .student_study_header .study_quit,.new_add_task_wrap .record_detail_header .study_quit,.student_study_warp .student_study_header .study_quit,.student_study_warp .record_detail_header .study_quit,.record_detail_area .student_study_header .study_quit,.record_detail_area .record_detail_header .study_quit{float:right}.new_add_task_wrap .student_study_header .study_name,.new_add_task_wrap .record_detail_header .study_name,.student_study_warp .student_study_header .study_name,.student_study_warp .record_detail_header .study_name,.record_detail_area .student_study_header .study_name,.record_detail_area .record_detail_header .study_name{position:absolute;left:0;right:0;bottom:0;top:0;text-align:center}.add_editor_list_area{background:#fff;padding:0 20px;margin:0}.add_editor_list_area .add_editor_item{display:inline-block;height:56px;line-height:56px;box-sizing:border-box;margin-right:30px;border-bottom:2px solid transparent;transition:all .3s;cursor:pointer}.add_editor_list_area .add_editor_item .item-span{color:#666;font-size:16px}.add_editor_list_area .add_editor_item.active{border-bottom-color:#5091FF}.add_editor_list_area .add_editor_item.active .item-span{color:#5091FF}.comp_ctx{height:calc(100vh - 178px);overflow-y:hidden}.split-pane-area .ant-tabs-nav-wrap,.split-pane-left .ant-tabs-nav-wrap{padding:0 20px}.split-pane-area .ant-tabs-bar,.split-pane-left .ant-tabs-bar{margin:0}.split-pane-area .ant-form-item-control,.split-pane-left .ant-form-item-control{line-height:1}.split-pane-area .editor_area,.split-pane-area .prev_area,.split-pane-left .editor_area,.split-pane-left .prev_area{height:100%;overflow-y:auto}.Resizer{background:#000;opacity:0.2;z-index:1;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;-moz-background-clip:padding;-webkit-background-clip:padding;background-clip:padding-box}.Resizer:hover{-webkit-transition:all 2s ease;transition:all 2s ease}.Resizer.horizontal{height:11px;margin:-5px 0;border-top:5px solid rgba(255,255,255,0);border-bottom:5px solid rgba(255,255,255,0);cursor:row-resize;width:100%}.Resizer.horizontal:hover{border-top:5px solid rgba(0,0,0,0.5);border-bottom:5px solid rgba(0,0,0,0.5)}.Resizer.vertical{width:11px;margin:0 -5px;border-left:5px solid rgba(255,255,255,0);border-right:5px solid rgba(255,255,255,0);cursor:col-resize}.Resizer.vertical:hover{border-left:5px solid rgba(0,0,0,0.5);border-right:5px solid rgba(0,0,0,0.5)}.Resizer.disabled{cursor:not-allowed}.Resizer.disabled:hover{border-color:transparent}.record_detail_area .record_detail_ctx{padding:0 20px}.record_detail_area .record_detail_ctx .detail_ctx_header{position:relative;height:56px}.record_detail_area .record_detail_ctx .header_h2{line-height:56px}.record_detail_area .record_detail_ctx .header_btn{position:absolute;right:0;top:14px}.record_detail_area .record_detail_ctx .detail_ctx_status{height:18px;line-height:18px}.record_detail_area .record_detail_ctx .detail_ctx_status .status_label{color:#999;margin-right:40px}.record_detail_area .record_detail_ctx .detail_ctx_status .status_label_error{color:#E51C24}.record_detail_area .record_detail_ctx .detail_ctx_status .status_label_success{color:#28BD8B}.record_detail_area .record_detail_ctx .detail_ctx_status .status_label_sub{color:#333333}.record_detail_area .record_detail_ctx .result_code_area{height:calc(100vh - 360px)}.record_detail_area .record_detail_ctx .result_error_area{margin-top:15px}\n"],sourceRoot:""}])},800:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r(86),n=(r.n(a),r(73)),g=r.n(n),i=r(4543),m=(r.n(i),r(0)),v=r.n(m),o=r(83),b=r.n(o),w=r(3162),O=r(45),u=r(1731),k=r.n(u),d=r(324),s=r(1579),c=r(1573),x=r(2006),E=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],a=!0,n=!1,i=void 0;try{for(var o,u=e[Symbol.iterator]();!(a=(o=u.next()).done)&&(r.push(o.value),!t||r.length!==t);a=!0);}catch(e){n=!0,i=e}finally{try{!a&&u.return&&u.return()}finally{if(n)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},C=c.a.reviewResult;t.default=Object(d.b)(function(e){return{recordDetail:e.ojForUserReducer.recordDetail}},function(r){return{getUserCommitRecordDetail:function(e,t){return r(s.a.getUserCommitRecordDetail(e,t))},saveEditorCodeForDetail:function(e){return r(s.a.saveEditorCodeForDetail(e))}}})(function(e){var t=e.match.params,a=e.recordDetail,r=e.getUserCommitRecordDetail,n=e.saveEditorCodeForDetail,i=t.id,o=Object(m.useState)({}),u=E(o,2),d=u[0],s=u[1],c=Object(m.useState)({}),_=E(c,2),l=_[0],p=_[1],f=Object(m.useState)(""),h=E(f,2),y=h[0],A=h[1];return Object(m.useEffect)(function(){r(i,"detail")},[]),Object(m.useEffect)(function(){if(s(a),a){var e=a.user,t=a.myproblem_identifier,r=a.code;p(e),A(t),r&&n(r)}},[a]),v.a.createElement("div",{className:"record_detail_area"},v.a.createElement("div",{className:"record_detail_header"},v.a.createElement(x.a,{userInfo:l||{}}),v.a.createElement("div",{className:"study_name"},v.a.createElement("span",null,d.name||"test")),v.a.createElement("div",{className:"study_quit"},v.a.createElement(g.a,{style:{visibility:y?"visible":"hidden"}},v.a.createElement(O.b,{to:"/myproblems/"+y},"返回该题")))),v.a.createElement("div",{className:"record_detail_ctx"},v.a.createElement("div",{className:"detail_ctx_header"},v.a.createElement("h2",{className:"header_h2"},"提交记录")),v.a.createElement("div",{className:"detail_ctx_status"},v.a.createElement("span",{className:"status_label"},"状态: ",v.a.createElement("span",{className:0===d.status?"status_label_success":"status_label_error"},C[d.status])),v.a.createElement("span",{className:"status_label"},"提交时间: ",v.a.createElement("span",{className:"status_label_sub"},b()(d.created_at).format("YYYY-MM-DD HH:mm"))),v.a.createElement("span",{className:"status_label"},"语言: ",v.a.createElement("span",{className:"status_label_sub"},d.language)),v.a.createElement("span",{className:"status_label",style:{visibility:0===d.status?"visible":"hidden"}},"执行用时: ",v.a.createElement("span",{className:"status_label_sub"},(d.execute_time&&1e3*d.execute_time)+"ms"))),v.a.createElement("div",{className:"result_error_area"},v.a.createElement(w.a,{detail:d})),v.a.createElement("div",{className:"detail_ctx_header"},v.a.createElement("h2",{className:"header_h2"},"提交内容"),v.a.createElement(g.a,{style:{visibility:y?"visible":"hidden"},className:"header_btn",type:"primary"},v.a.createElement(O.b,{to:"/myproblems/"+y},"编辑代码"))),v.a.createElement("div",{className:"result_code_area"},v.a.createElement(k.a,{height:"100%",width:"100%",language:d.language&&d.language.toLowerCase()||"",value:d.code||"",theme:"dark",readOnly:!0}))))})}});