|
|
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[13142,36707,96525],{88294:function(e,n,t){t.d(n,{JW:function(){return T},Jd:function(){return C},Kl:function(){return D},L5:function(){return h},MH:function(){return R},MI:function(){return Q},Qo:function(){return _},SO:function(){return m},Tf:function(){return j},XO:function(){return p},Xy:function(){return y},Y0:function(){return Z},Ye:function(){return X},Yv:function(){return G},ZH:function(){return U},am:function(){return M},bD:function(){return H},fA:function(){return B},fY:function(){return A},g6:function(){return f},g7:function(){return J},gT:function(){return w},gn:function(){return L},h$:function(){return Y},hG:function(){return b},i8:function(){return z},j3:function(){return O},lH:function(){return E},li:function(){return x},n4:function(){return v},pU:function(){return N},qK:function(){return g},sA:function(){return k},sP:function(){return S},t$:function(){return P},zl:function(){return I}});var i=t(7557),r=t.n(i),c=t(41498),a=t.n(c),s=t(82242),o=t.n(s),l=t(35325),u=(0,t(1079).oP)(),d={};function p(e){return(0,l.U2)("tasks/".concat(e,".json"),d)}function f(e){return(0,l.U2)("myshixuns/".concat(e,"/challenges.json"))}function m(e,n){return(0,l.U2)("myshixuns/".concat(e,"/subject_challenges.json"),n)}function h(e,n,t){return(0,l.U2)("tasks/".concat(e,"/star.json"),{shixun_id:n,star:t})}function x(e,n){return(0,l.U2)("tasks/".concat(e,"/rep_content.json"),o()(o()({},n),d))}function v(e,n){return(0,l.v_)("myshixuns/".concat(e,"/update_file.json"),n)}function g(e,n){return(0,l.U2)("tasks/".concat(e,"/reset_original_code.json"),o()(o()({},n),d))}function j(e,n){return(0,l.v_)("myshixuns/".concat(e,"/reset_repository.json"),n)}function b(e,n){return(0,l.U2)("tasks/".concat(e,"/reset_passed_code.json"),o()(o()({},n),d))}function y(e,n){return(0,l.v_)("tasks/".concat(e,"/game_build.json"),o()(o()({},n),d))}function _(e,n){return(0,l.U2)("tasks/".concat(e,"/game_status.json"),o()(o()({},n),d))}function I(e,n){return(0,l.v_)("tasks/".concat(e,"/choose_build.json"),o()(o()({},n),d))}function A(e){return(0,l.U2)("myshixuns/".concat(e,"/get_remaining_time.json"))}function w(e){return(0,l.U2)("tasks/".concat(e,"/picture_display.json"),d)}function Z(e){return(0,l.v_)("tasks/".concat(e,"/plus_or_cancel_praise.json"))}function N(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,l.v_)("myshixuns/".concat(e,"/repository.json"),n)}function k(e,n){return(0,l.U2)("myshixuns/".concat(e,"/start.json"),n||{})}function M(e,n){return(0,l.U2)("myshixuns/".concat(e,"/reset_pod.json"),n)}function C(e,n){return(0,l.ZP)("/api/tasks/".concat(e,"/reboot_esc.json"),{method:"post",body:n})}function P(e){return(0,l.U2)("tasks/".concat(e,"/check_test_sets.json"))}function E(e){return(0,l.U2)("tasks/".concat(e,"/get_answer_info.json"))}function S(e){return(0,l.U2)("tasks/".concat(e,"/get_choose_answer.json"))}function R(e){return(0,l.U2)("tasks/".concat(e,"/unlock_choose_answer.json"))}function O(e,n){return(0,l.U2)("tasks/".concat(e,"/unlock_answer.json"),{answer_id:n})}function T(e,n,t){return(0,l.v_)("tasks/".concat(e,"/set_games_status.json"),{result:n,data:t})}function D(e,n){return(0,l.U2)("myshixuns/".concat(e,"/active_pod.json"),n)}function z(e,n){return(0,l.U2)("tasks/".concat(e,"/rank_list.json"),n)}function B(e,n){return(0,l.v_)("tasks/".concat(e,"/close_windows_vnc.json"),{tpi_id:n})}function U(e,n){return(0,l.U2)("tasks/".concat(e,"/commit_files.json"),n)}function L(e,n){return(0,l.U2)("tasks/".concat(e,"/pull_files.json"),n)}function Y(e,n){return(0,l.v_)("tasks/".concat(e,"/log_output"),n)}function G(e,n){return(0,l.U2)("tasks/".concat(e,"/stop_log_output.json"),n)}function Q(e){return W.apply(this,arguments)}function W(){return(W=a()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/myshixuns/".concat(n.id,"/add_file.json"),{method:"post",body:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function H(e){return V.apply(this,arguments)}function V(){return(V=a()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/myshixuns/".concat(n.id,"/delete_git_file.json"),{method:"Delete",body:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function J(e){return F.apply(this,arguments)}function F(){return(F=a()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/myshixuns/".concat(n.id,"/mv_file.json"),{method:"post",body:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function X(e,n){return(0,l.ZP)("/api/shixuns/".concat(e,"/set_start_permanent.json"),{method:"put",body:n})}null!=u&&u.homework_common_id&&(d.homework_common_id=null==u?void 0:u.homework_common_id),null!=u&&u.exercisesId&&(d.exercise_id=null==u?void 0:u.exercisesId)},96525:function(e,n,t){t.d(n,{z:function(){return Z},Z:function(){return N}});var i=t(7557),r=t.n(i),c=t(41498),a=t.n(c),s=t(82242),o=t.n(s),l=t(37205),u=t.n(l),d=t(79800),p=t.n(d),f=t(59301),m=t(54580),h=t(8591),x=t(43418),v=t(3113),g=t(67390),j=t(91303),b=t(37712),y=" ";function _(e){if(0==e)return"0 Byte";var n=parseInt(""+Math.floor(Math.log(e)/Math.log(1024)),10);return(e/Math.pow(1024,n)).toFixed(1)+" "+["Bytes","KB","MB","GB","TB"][n]}var I=t(61481),A=t(89392);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var w=m.Z.Dragger;function Z(e){var n=[];return e&&e.length>0&&(n=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+y+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),n}var N=function(e){var n=e.value,t=e.onChange,i=e.action,c=e.data,s=e.className,l=e.maxSize,d=void 0===l?150:l,Z=e.title,N=void 0===Z?"上传附件":Z,k=e.showRemoveModal,M=void 0!==k&&k,C=e.accept,P=void 0===C?"":C,E=e.additionalText,S=e.isDragger,R=e.number,O=void 0===R?1e3:R,T=e.aloneClear,D=void 0!==T&&T,z=(0,f.useState)(!1),B=p()(z,2),U=B[0],L=B[1],Y=(0,f.useState)(n||[]),G=p()(Y,2),Q=G[0],W=G[1],H=(0,f.useState)(1),V=p()(H,2),J=V[0],F=V[1];(0,f.useEffect)((function(){n&&(1===J&&W(u()(n)),F(2),O===(null==n?void 0:n.length)&&L(!0))}),[n]);var X,q=function(){setTimeout((function(){Q.pop(),W(u()(Q))}),500)},K={multiple:!0,disabled:U,accept:P,withCredentials:!0,fileList:Q,beforeUpload:function(e,n){var t=e.size/1024/1024;return Q.concat(n).length>O?(Q.pop(),W(u()(Q)),h.ZP.error("最多只能上传".concat(O,"个文件")),D?Promise.reject():(q(),!1)):t<d||(h.ZP.error("该文件无法上传。超过文件大小限制(".concat(d,"MB).")),D?Promise.reject():(q(),!1))},data:c,action:i||"".concat(g.Z.API_SERVER,"/api/attachments.json"),onChange:function(e){var n,i;(Q="removed"===e.file.status?e.fileList:(0,A.uniqBy)([].concat(u()(e.fileList),u()(Q)),"uid"),"done"!==e.file.status||-1!==(null===(n=e.file)||void 0===n||null===(n=n.response)||void 0===n?void 0:n.status))?(Q.length>=O?L(!0):L(!1),W(u()(Q)),Q=Q.map((function(e){var n,t;null!=e&&null!==(n=e.response)&&void 0!==n&&n.id&&(e.url="/api/attachments/".concat(null==e||null===(t=e.response)||void 0===t?void 0:t.id));return-1===e.name.indexOf(y)&&(e.name="".concat(e.name).concat(y).concat(_(e.size))),o()({},e)})),console.log("info:",e,Q),t(Q)):h.ZP.error(null===(i=e.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:(X=a()(r()().mark((function e(n){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=function(){var e=a()(r()().mark((function e(){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n.response?n.response.id:n.id)){e.next=8;break}return e.next=4,(0,j.JZ)(n.response?n.response.id:n.uid);case 4:return t=e.sent,e.abrupt("return",Promise.resolve(t));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!M){e.next=5;break}return e.abrupt("return",new Promise((function(e,n){var i;x.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,b.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=a()(r()().mark((function n(){return r()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t();case 2:n.sent,h.ZP.success("删除成功"),e(!0);case 5:case"end":return n.stop()}}),n)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 5:return e.next=7,t();case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}}),e)}))),function(e){return X.apply(this,arguments)})};return(0,b.jsxs)("div",{className:"multi-upload ".concat(s||""),children:[S&&(0,b.jsxs)(w,o()(o()({},K),{},{children:[(0,b.jsx)("p",{className:"ant-upload-drag-icon",children:(0,b.jsx)(I.Z,{})}),(0,b.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,b.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),E]})),!S&&(0,b.jsxs)(m.Z,o()(o()({},K),{},{children:[(0,b.jsxs)(v.ZP,{disabled:U,className:"upload_button",children:[(0,b.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),N]}),(0,b.jsxs)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:["(单个文件最大",d,"MB)"," "]})]}))]})}},12940:function(e,n,t){t.d(n,{Z:function(){return _}});var i=t(82242),r=t.n(i),c=t(7557),a=t.n(c),s=t(41498),o=t.n(s),l=t(79800),u=t.n(l),d=t(59301),p={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},f=t(3113),m=t(70557),h=t(10446),x=t(6848),v=t(1079),g=t(26613),j=t(46172),b=t(67390),y=t(37712),_=function(e){var n,t,i,c,s,l,_,I=e.editOffice,A=void 0===I?"view":I,w=e.data,Z=(e.theme,e.type),N=e.filename,k=e.monacoEditor,M=e.className,C=e.style,P=e.close,E=e.onClose,S=e.hasMask,R=e.disabledDownload,O=e.onImgDimensions,T=e.showNodata,D=(0,d.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),z=u()(D,2),B=(z[0],z[1],(0,d.useState)("")),U=u()(B,2),L=(U[0],U[1]),Y=(0,d.useState)(),G=u()(Y,2),Q=G[0],W=G[1],H="build"===window.ENV?"/react/build":"",V=location.host.startsWith("localhost")?b.Z.PROXY_SERVER:b.Z.API_SERVER,J=(0,d.useRef)();null!==(n=w)&&void 0!==n&&n.startsWith("/api")&&"txt"!==Z&&(w=b.Z.API_SERVER+w),N&&(k.filename=N),(0,d.useEffect)((function(){var e,n=null===(e=document.cookie)||void 0===e||null===(e=e.replace(/\s/g,""))||void 0===e?void 0:e.split(";");null==n||n.map((function(e){var n=e.split("=");"_educoder_session"===n[0]&&L(n[1])}))}),[]),(0,d.useEffect)((function(){"office"===Z&&F()}),[Z,w]);var F=function(){var e=o()(a()().mark((function e(){var n,t,i;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=w,w.startsWith("http")||(n=location.origin+n),t=new URL(n).pathname.split("/").pop(),e.next=5,(0,g.gJ)({attachment_id:t});case 5:i=e.sent,W(i);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),X=function(){q()},q=function(){(0,v.Nd)(N||"educoder",decodeURIComponent(w))};return(0,y.jsxs)("div",{style:r()({},C||{}),className:"".concat(S&&p.bgBlack," ").concat(Z?p.wrp:"hide"),children:[P&&(0,y.jsxs)("div",{className:p.close,ref:J,children:[!!O&&(0,y.jsx)(x.Z,{title:"点击对图片进行批注",getPopupContainer:function(){return J.current},children:(0,y.jsx)("span",{onClick:function(){E(),O()},children:(0,y.jsx)("i",{className:"icon-yulanpizhu"})})}),!R&&(0,y.jsx)(x.Z,{title:"点击下载此文件",getPopupContainer:function(){return J.current},children:(0,y.jsx)("span",{onClick:q,children:(0,y.jsx)("i",{className:"icon-quxiaozhiding"})})}),(0,y.jsx)(x.Z,{title:"关闭",getPopupContainer:function(){return J.current},children:(0,y.jsx)("span",{className:"",onClick:E,children:(0,y.jsx)("i",{className:"icon-guanbi1"})})})]}),(0,y.jsx)("div",{className:"".concat(p[M]," ").concat(M," ").concat(p.monaco," ").concat("txt"===Z?"show":"hide"),children:"txt"===Z&&(0,y.jsx)(h.ZP,r()({},k))}),"audio"===Z&&(0,y.jsx)("audio",{src:(null===(t=w)||void 0===t?void 0:t.indexOf("http"))>-1||null!==(i=w)&&void 0!==i&&i.startsWith("/api")?w:"data:image/png;base64,".concat(w),autoPlay:!0}),"video"===Z&&(0,y.jsx)(y.Fragment,{children:(null===(c=w)||void 0===c?void 0:c.indexOf("http"))>-1||null!==(s=w)&&void 0!==s&&s.startsWith("/api")?(0,y.jsx)("video",{controls:!0,src:"".concat(w),autoPlay:!0}):(0,y.jsx)("video",{controls:!0,src:"data:video/mp4;base64,".concat(w),autoPlay:!0})}),"office"===Z&&Q&&(0,y.jsx)("iframe",{src:"".concat(H,"/office.html?key=").concat(Q.key,"&url=").concat(V+Q.url,"&callbackUrl=").concat(V+Q.callbackUrl,"&fileType=").concat(Q.fileType,"&title=").concat(Q.title,"&model=").concat(A,"&officeServer=").concat(b.Z.ONLYOFFICE,"&disabledDownload=").concat(!!R)}),"html"===Z&&(0,y.jsx)("iframe",{src:w+"&disposition=inline"}),"pdf"===Z&&(0,y.jsx)("iframe",{src:"".concat(H,"/js/pdfview/index.html?url=").concat(w,"&disabledDownload=").concat(!!R)}),"image"===Z&&(0,y.jsx)("img",{src:(null===(l=w)||void 0===l?void 0:l.indexOf("http"))>-1||null!==(_=w)&&void 0!==_&&_.startsWith("/api")?w:"data:image/png;base64,".concat(w)}),("other"===Z||"download"===Z)&&(0,y.jsx)(y.Fragment,{children:T?(0,y.jsx)(j.Z,{customText:"当前文件不支持预览,可点击下载查看",ButtonTwo:(0,y.jsx)(f.ZP,{icon:(0,y.jsx)("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:X,children:"下载"})}):(0,y.jsxs)(f.ZP,{type:"primary",size:"middle",onClick:X,children:[(0,y.jsx)(m.Z,{}),"点击下载"]})})]})}},36707:function(e,n,t){t.d(n,{Z:function(){return G}});var i=t(82242),r=t.n(i),c=t(37205),a=t.n(c),s=t(91232),o=t.n(s),l=t(79800),u=t.n(l),d=t(59301),p=(t(8944),t(32834)),f=t.n(p),m=t(11690);var h=[],x=["<ul>"],v=new(f().Renderer),g=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function j(){h.length=0,x=["<ul>"]}var b={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function y(e,n,t,i){if(n>=e.length||e[n].level<=t)return n;var r=e[n];i.push("<li><a href='#"+r.anchor+"'>"+r.text+"</a>");var c=[];return n=y(e,++n,r.level,c),c.length>0&&(i.push("<ul>"),c.forEach((function(e){i.push(e)})),i.push("</ul>")),i.push("</li>"),n=y(e,n,t,i)}function _(){return y(h,0,0,x),x.push("</ul>"),x.join("")}var I={heading:function(e){var n=g.exec(e);if(n)return{type:"heading",raw:n[0],depth:n[1].length,text:n[2]}},fences:function(e){var n=this.rules.block.fences.exec(e);if(n){var t=n[0],i=function(e,n){var t=e.match(/^(\s+)(?:```)/);if(null===t)return n;var i=t[1];return n.split("\n").map((function(e){var n=e.match(/^\s+/);return null===n?e:u()(n,1)[0].length>=i.length?e.slice(i.length):e})).join("\n")}(t,n[3]||""),r=n[2]?n[2].trim():n[2];if(["latex","katex","math"].indexOf(r)>=0){var c=Z(),a=i;i=c,N[c]={type:"block",expression:a}}return{type:"code",raw:t,lang:r,text:i}}}},A=/(?:\${2})([^\n`]+?)(?:\${2})/gi,w=0,Z=function(){return"__special_katext_id_".concat(w++,"__")},N={};function k(){return N}function M(){w=0,N={}}function C(e){return e=e.replace(A,(function(e,n){var t=Z();return N[t]={type:"inline",expression:n},t}))}var P=v.listitem;v.listitem=function(e){return P(C(e))};var E=v.paragraph;v.paragraph=function(e){return E(C(e))};var S=v.tablecell;v.tablecell=function(e,n){return S(C(e),n)},v.code=function(e,n,t){var i=(n||"").match(/\S*/)[0];return i?["latex","katex","math"].indexOf(i)>=0?"<p class='editormd-tex'>".concat(e,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(n,'">').concat(t?e:(0,m.escape)(e,!0),"</code></pre>\n"):'<pre class="prettyprint linenums"><code>'+(t?e:(0,m.escape)(e,!0))+"</code></pre>"},v.heading=function(e,n,t){var i=this.options.headerPrefix+t.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return h.push({anchor:i,level:n,text:e}),"<h"+n+' id="'+i+'">'+e+"</h"+n+">"},f().setOptions({silent:!0,gfm:!0,pedantic:!1}),f().use({tokenizer:I,renderer:v});var R=f(),O=(t(64018),t(79710)),T=t(67390),D=t(15342),z=t(1012),B=t(12940),U=t(37712),L="@▁@",Y=/<pre[^>]*>/g;var G=function(e){var n=e.value,t=void 0===n?"":n,i=e.className,c=e.showTextOnly,s=e.showLines,l=e.style,p=void 0===l?{}:l,f=e.stylesPrev,m=void 0===f?{}:f,h=e.highlightKeywords,x=e.showProgramFill,v=(e.isProgramFill,e.disabledFill),g=void 0!==v&&v,y=e.programFillValue,I=e.onFillChange,A=void 0===I?function(e){}:I,w=e.onFillBlur,Z=void 0===w?function(){}:w,N=String(t),C=(0,d.useState)(""),P=u()(C,2),E=P[0],S=P[1],G=(0,d.useState)("office"),Q=u()(G,2),W=Q[0],H=Q[1],V=(0,d.useState)([]),J=u()(V,2),F=J[0],X=J[1],q=(0,d.useRef)("a"+(0,z.Z)()),K={},$=function(e){return e.replace(/<style.*?>([\s\S]+?)<\/style>/gim,(function(e,n){var t=n.replace(/(\n|\r)/g,"").split("}"),i=[];return t.map((function(e){""!=e&&i.push(".".concat(q.current," ").concat(e))})),"<style>".concat(i.join("}"),"</style>")}))},ee=(0,d.useMemo)((function(){try{N=N.replace(/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,"("+T.Z.API_SERVER+"/api/attachments/").replace(/\"\/api\/attachments\/|\"\/attachments\/download\//g,'"'+T.Z.API_SERVER+"/api/attachments/").replace(/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,'"'+T.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,"\n")}catch(e){}if(x){var e=-1;return N=N.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,(function(n,t,i){return function(e,n){var t=document.createElement(e===L?"input":"textarea");t.style.width="100%",t.style.height=e===L?"40px":"151px",t.rows=5,t.spellcheck=!1,t.name="edu-program-fill",t.placeholder="请输入",t.dataset.id=n;var i=Object.keys(K).length;return K[i]=t,'<span class="edu-program-fill-wrap '.concat(e===L?"":"show",'" style="width:').concat(e===L?"200px":"100%",'"><span>').concat(t.outerHTML,'<span class="edu-program-fill-score"></span></span></span>')}(n,++e)})),'<pre style="background:#fff;padding:4px">'.concat($(N||""),"</pre>")}var n=R(N);n=$(n);var t=k();N.match(/\[TOC\]/)&&(n=n.replace("<p>[TOC]</p>",_()),j()),n=n.replace(/(__special_katext_id_\d+__)/g,(function(e,n){var i=t[n],r=i.type,c=i.expression;return(0,D.renderToString)(function(e){var n=document.createElement("div");return n.innerHTML=e,0===n.childNodes.length?"":n.childNodes[0].nodeValue}(c)||"",{displayMode:"block"===r,throwOnError:!1,output:"html"})})),n=n.replace(/▁/g,"▁▁▁"),M();var i=document.createElement("div");return i.innerHTML=n,h?(ie(i,h.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),i.innerHTML):c?i.innerText:(setTimeout((function(){return ae()}),500),i.innerHTML)}),[N,h]);(0,d.useEffect)((function(){re.current&&re.current.querySelectorAll(["input","textarea"]).forEach((function(e){e.oninput=ne,e.onblur=te}))}),[F]),(0,d.useEffect)((function(){if(null!=y&&y.length){var e,n=re.current.querySelectorAll(".edu-program-fill-score"),t=re.current.querySelectorAll('[name="edu-program-fill"]'),i=o()(t.entries());try{for(i.s();!(e=i.n()).done;){var r,c=u()(e.value,2),a=c[0],s=c[1];s.value=null===(r=y[a])||void 0===r?void 0:r.value,"warning"===y[a].type?s.className="program-fill-warning":"success"===y[a].type?s.className="program-fill-success":s.className=""}}catch(e){i.e(e)}finally{i.f()}var l,d=o()(n.entries());try{for(d.s();!(l=d.n()).done;){var p,f,m=u()(l.value,2),h=m[0];m[1].innerHTML=null!==(p=y[h])&&void 0!==p&&p.score?"".concat(null===(f=y[h])||void 0===f?void 0:f.score,"分"):""}}catch(e){d.e(e)}finally{d.f()}X(y)}}),[y]);var ne=function(e){F[e.target.dataset.id]=F[e.target.dataset.id]||{},F[e.target.dataset.id].value=e.target.value,X(a()(F)),A(F,e.target.dataset.id)},te=function(e){F[e.target.dataset.id]=F[e.target.dataset.id]||{},F[e.target.dataset.id].value=e.target.value,X(a()(F)),Z(F,e.target.dataset.id)};function ie(e,n){return e.childNodes.forEach((function(e){if(e.childNodes.length>0)ie(e,n);else if("IMG"!==e.nodeName)if(e.innerHTML){var t;e.innerHTML=null===(t=e.innerHTML)||void 0===t?void 0:t.replace(new RegExp(n,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>')}else{var i=document.createElement("span");i.innerHTML=e.textContent.replace(new RegExp(n,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),e.replaceWith(i)}}))}var re=(0,d.useRef)();function ce(e){var n=e.target;if("A"===n.tagName.toUpperCase()){var t=n.getAttribute("href");if(t.indexOf("office")>-1)e.preventDefault(),S(t),H("office");else if(t.indexOf("application/pdf")>-1)e.preventDefault(),S(t),H("pdf");else if(t.indexOf("text/html")>-1)e.preventDefault(),S(t),H("html");else if(t.startsWith("#")){e.preventDefault();var i=document.getElementById(t.replace("#",""));i&&i.scrollIntoView(!0)}}}b.WebkitLineClamp=s,s&&(p=r()(r()({},p),b));var ae=function(){var e,n=null===(e=re.current)||void 0===e?void 0:e.querySelectorAll("video");null==n||n.forEach((function(e){if(e.oncontextmenu=function(){return!1},e.src.indexOf(".m3u8")>-1)if(e.canPlayType("application/vnd.apple.mpegurl"));else if(O.ZP.isSupported()){var n=new O.ZP;n.loadSource(e.src),n.attachMedia(e)}}))};return(0,d.useEffect)((function(){if(re.current&&ee&&ee.match(Y)&&window.PR.prettyPrint(),re.current)return re.current.addEventListener("click",ce),function(){var e;null===(e=re.current)||void 0===e||e.removeEventListener("click",ce),M(),j()}}),[ee,re.current,ce]),(0,U.jsxs)(U.Fragment,{children:[c&&(0,U.jsx)("div",{ref:re,children:ee}),!c&&(0,U.jsx)("div",{ref:re,style:r()({},p),className:"".concat(i||""," ").concat(g?"disabled-fill":""," markdown-body ").concat(q.current),dangerouslySetInnerHTML:{__html:ee}}),(0,U.jsx)(B.Z,{close:!0,data:E,type:null!=E&&E.length?W:"",style:r()({},m),onClose:function(){return S("")}})]})}},87273:function(e,n,t){t.d(n,{Z:function(){return k}});var i=t(7557),r=t.n(i),c=t(41498),a=t.n(c),s=t(59301),o=(t(39744),t(43418)),l=t(8591),u=(t(10249),t(95237)),d=t(43604),p=t(76618),f=t(56102),m=t(80184),h=t(96525),x=t(67390),v=t(35325),g=t(79800),j=t.n(g),b=t(1079),y=t(37712),_=(0,s.forwardRef)((function(e,n){e.time;console.log("ScreenRecord:",n);var t=(0,s.useRef)(),i=(0,s.useState)(),c=j()(i,2),o=(c[0],c[1],(0,s.useRef)()),u=[];function d(){return(d=a()(r()().mark((function e(n,t){var i,c;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=[],e.next=3,new MediaRecorder(n);case 3:(c=e.sent).ondataavailable=function(e){i.push(e.data)},c.start(),o.current=c,window.recorderRefs=c,c.addEventListener("stop",(function(e){var n=URL.createObjectURL(i[0],{type:"video/mp4"});(0,b.Nd)("xxx.webm",n)}));case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(){window.recorderRefs?(t.current.srcObject.getTracks().forEach((function(e){e.stop()})),window.recorderRefs.addEventListener("dataavailable",(function(e){var n=URL.createObjectURL(e.data,{type:"video/mp4"});(0,b.Nd)("屏幕录制视频.webm",n)}))):l.ZP.warning("您还没有开启视频录制,请先去录制视频吧!")}function f(){navigator.mediaDevices.getDisplayMedia({video:!0,audio:!0}).then((function(e){return t.current.srcObject=e,u.push(e),t.current.captureStream=t.current.captureStream||t.current.mozCaptureStream,new Promise((function(e){return t.current.onplaying=e}))})).then((function(){return function(e,n){return d.apply(this,arguments)}(t.current.captureStream(),2e3)})).then((function(e){})).catch((function(e){"NotFoundError"===e.name?l.ZP.warning("找不到摄像头或麦克风。无法录制."):"UnknownError"===e.name&&l.ZP.warning("录制失败")}))}return(0,s.useImperativeHandle)(n,(function(){return{startScreenRecord:f,downloadFile:p}})),(0,y.jsx)("div",{style:{position:"absolute",top:"0",zIndex:-1},children:(0,y.jsx)("video",{onPause:function(){},width:"60",height:"120",autoPlay:!0,muted:!0,ref:t})})})),I=_,A=t(89392),w=t(23329),Z=t(3878),N={1:"简单",2:"中等",3:"困难"},k=function(e){var n=e.className,t=e.git_url,i=e.difficulty,c=e.task_pass,g=e.test_set_permission,j=e.onVncAction,b=e.windows_vnc,_=(e.linux_vnc,e.vnc_url,e.unity_3d_routes),k=(e.index_tab,e.shixun_environment_id),M=e.tab_type,C=e.reboot_cloud,P=(e.cloud_type,e.resData),E=e.instance_startup_type,S=e.mirror_description_multi,R=e.is_jupyter_notebook,O=e.is_jupyter_lab,T=e.jupyterData,D=e.is_jupyter,z=e.onHideToolBar,B=(e.monitoring_url,e.port,(0,m.useParams)()),U=(0,s.useRef)(),L=b?"C:/Windows/AppReadiness/userfiles":"/data/workspace/userfiles",Y=b?"C:/Windows/AppReadiness/downloadfiles":"/data/workspace/downloadfiles",G=!(0,A.isEmpty)(P)||!(0,A.isEmpty)(T),Q=T?{name:null==T?void 0:T.main_mirror_name,description:null==T?void 0:T.main_mirror_description}:null==S?void 0:S.find((function(e){return e.shixun_environment_id===k}));return(0,y.jsxs)("div",{className:"tpi-code-setting ".concat(n),children:[(0,y.jsx)("h3",{children:"功能"}),(0,y.jsxs)("section",{children:[(_||R||O)&&(0,y.jsxs)("a",{title:"全屏",className:"file-item action",onClick:function(){j("full-screen")},children:[(0,y.jsx)("i",{className:"iconfont icon-quanping"}),"开启 / 退出全屏"]}),(2===M||3===M||4===M||R||O)&&(0,y.jsxs)("a",{onClick:function(){return j("reset-task")},className:"file-item action",title:"重置环境",children:[(0,y.jsx)("i",{className:"iconfont icon-zhongzhishixun1"}),"重置环境"]}),(2===M||3===M||5===M||O)&&(0,y.jsxs)("a",{onClick:function(){return j("reset-git-code")},className:"file-item action",title:"重置代码仓库",children:[(0,y.jsx)("i",{className:"iconfont icon-zhongzhishixun"}),"重置代码仓库"]}),(3===M||4===M||R||O)&&(0,y.jsxs)("a",{onClick:function(){return z(),void o.Z.info({title:"文件上传",icon:null,okText:"关闭",width:600,centered:!0,content:(0,y.jsx)("div",{className:"pt10",children:(0,y.jsx)(h.Z,{isDragger:!0,maxSize:20,additionalText:'默认存放目录路径为"'.concat(L,'"'),action:"".concat(x.Z.API_SERVER,"/api/tasks/").concat(B.taskId||B.identifier,"/upload_file?debug=admin&shixun_environment_id=").concat(k||null,"&tab_type=").concat(M||null,"&is_jupyter=").concat(D||!1),onChange:function(e){e.every((function(e){var n;return 0===(null===(n=e.response)||void 0===n?void 0:n.status)}))&&(o.Z.destroyAll(),l.ZP.info("文件上传成功")),console.log("fileList:",e)}})})})},className:"file-item action",title:"上传文件",children:[(0,y.jsx)("i",{className:"iconfont icon-shangchuanwenjian"}),"上传文件"]}),(3===M||4===M||R||O)&&(0,y.jsxs)("a",{onClick:function(){return z(),void o.Z.confirm({title:"下载代码",centered:!0,width:600,content:"代码下载功能:将“".concat(Y,"”目录进行打包并下载"),onOk:(e=a()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,v.ZP)("/api/tasks/".concat(B.taskId||B.identifier,"/download_file?debug=admin"),{method:"post",body:{autoDownload:!0,shixun_environment_id:k||null,tab_type:M||null,is_jupyter:D||!1},headers:{responseType:"arraybuffer",Accept:"application/vnd.ms-excel;charset=utf-8"}});case 2:return e.abrupt("return",!0);case 3:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})});var e},className:"file-item action",title:"下载文件",children:[(0,y.jsx)("i",{className:"iconfont icon-xiazai3"}),"下载文件"]}),(3===M||5===M)&&"https:"===location.protocol&&(0,y.jsxs)("a",{onClick:function(){var e,n;null===(e=U.current)||void 0===e||null===(n=e.startScreenRecord)||void 0===n||n.call(e)},className:"file-item action",title:"屏幕录制",children:[(0,y.jsx)("i",{className:"iconfont icon-jiaruketang1"}),"屏幕录制"]}),C&&G&&(0,y.jsxs)("a",{onClick:function(){return j("restart-reboot")},className:"file-item action",title:"重启云主机",children:[(0,y.jsx)(p.Z,{style:{marginRight:21,color:"#FFF"},className:"c-white font16"}),"重启云主机 "]}),(3===M||5===M||R||O)&&(0,y.jsxs)("a",{onClick:function(){return j("reset-code")},className:"file-item action",title:"恢复初始代码",children:[(0,y.jsx)("i",{className:"iconfont icon-zhongzhi font20",style:{marginRight:19}}),"恢复初始代码"]}),t&&(0,y.jsx)(f.CopyToClipboard,{text:t,onCopy:function(){return l.ZP.success("复制成功")},children:(0,y.jsxs)("a",{title:"复制版本库地址",className:"file-item action",children:[(0,y.jsx)("i",{className:"iconfont icon-fuzhibanbenkudizhi1"}),"复制版本库地址"]})}),3===M&&(0,y.jsxs)("a",{className:"file-item action",onClick:function(){j("show-clipboard-box")},children:[(0,y.jsx)("i",{className:"iconfont icon-fuzhiniantie"}),"复制粘贴"]}),4===M&&G&&(0,y.jsxs)("a",{className:"file-item action",onClick:function(){z(),o.Z.info({title:"SSH直连",width:600,centered:!0,content:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(u.Z,{children:[(0,y.jsx)(d.Z,{flex:"50px",children:"账号"}),(0,y.jsx)(d.Z,{children:null==P?void 0:P.username})]}),(0,y.jsxs)(u.Z,{children:[(0,y.jsx)(d.Z,{flex:"50px",children:"地址"}),(0,y.jsx)(d.Z,{children:null==P?void 0:P.ssh_address})]}),(0,y.jsxs)(u.Z,{children:[(0,y.jsx)(d.Z,{flex:"50px",children:"端口"}),(0,y.jsx)(d.Z,{children:null==P?void 0:P.port})]}),(0,y.jsxs)(u.Z,{children:[(0,y.jsx)(d.Z,{flex:"50px",children:"密码"}),(0,y.jsx)(d.Z,{children:null==P?void 0:P.password})]})]})})},children:[(0,y.jsx)("i",{className:"iconfont icon-congshulianjie"}),"SSH直连"]}),2===E&&G&&(0,y.jsxs)("a",{className:"file-item action",onClick:function(){z(),o.Z.info({title:"RDP直连",icon:null,className:Z.Z.CustomTipsModalCss,okButtonProps:{type:"primary"},okText:"我知道啦",width:600,centered:!0,content:(0,y.jsxs)("div",{children:[(0,y.jsxs)(u.Z,{children:[(0,y.jsx)(d.Z,{className:"c-grey-999",flex:"50px",children:"账号"}),(0,y.jsx)(d.Z,{className:"c-grey-333",children:null==P?void 0:P.username})]}),(0,y.jsxs)(u.Z,{className:"mt10",children:[(0,y.jsx)(d.Z,{className:"c-grey-999",flex:"50px",children:"地址"}),(0,y.jsx)(d.Z,{className:"c-grey-333",children:null==P?void 0:P.host})]}),(0,y.jsxs)(u.Z,{className:"mt10",children:[(0,y.jsx)(d.Z,{className:"c-grey-999",flex:"50px",children:"端口"}),(0,y.jsx)(d.Z,{className:"c-grey-333",children:null==P?void 0:P.port})]}),(0,y.jsxs)(u.Z,{className:"mt10",children:[(0,y.jsx)(d.Z,{className:"c-grey-999",flex:"50px",children:"密码"}),(0,y.jsx)(d.Z,{className:"c-grey-333",children:null==P?void 0:P.password})]}),(0,y.jsx)("a",{style:{textDecoration:"underline",display:"inline-block"},href:"https://www.educoder.net/forums/36696",target:"_blank",className:"mt10 font14 current c-light-primary",children:"操作说明"})]})})},children:[(0,y.jsx)("i",{className:"iconfont icon-RDPzhilian"}),"RDP直连"]})]}),!!M&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("h3",{children:"关卡配置信息"}),(0,y.jsxs)("section",{children:[(0,y.jsxs)("a",{className:"file-item",title:c?"允许学员跳关挑战":"不允许学员跳关挑战",children:[(0,y.jsx)("b",{children:"跳关"}),(0,y.jsx)("span",{children:c?"允许":"不允许"})]}),(0,y.jsxs)("a",{className:"file-item",title:g?"允许学员通过金币解锁查看测试集内容":"不允许学员通过金币解锁查看测试集内容",children:[(0,y.jsx)("b",{children:"测试集解锁"}),(0,y.jsx)("span",{children:g?"允许":"不允许"})]})]})]}),(0,y.jsx)("h3",{children:"实训基本信息"}),(0,y.jsxs)("section",{children:[(0,y.jsxs)("div",{className:"file-item",children:[(0,y.jsx)("b",{children:"实训难易度"}),(0,y.jsx)("span",{children:(null==T?void 0:T.difficulty)||N[i]})]}),(0,y.jsxs)("div",{className:"file-item",style:{alignItems:"flex-start"},children:[(0,y.jsx)("b",{children:"实验环境"}),_?(0,y.jsx)("span",{className:"multi_ellipsis1",children:"暂无"}):Q&&(0,y.jsx)(w.Z,{value:[Q],title:"实验环境说明",children:(0,y.jsx)("span",{title:null==Q?void 0:Q.name,className:"multi_ellipsis1 current",children:null==Q?void 0:Q.name})})]})]}),(0,y.jsx)(I,{ref:U})]})}},39910:function(e,n,t){var i=t(31468),r=t.n(i),c=t(7557),a=t.n(c),s=t(41498),o=t.n(s),l=t(79800),u=t.n(l),d=t(59301),p=t(31797),f=t(78241),m=t(43418),h=t(1710),x=t(10249),v=t(95237),g=t(43604),j=t(3113),b=t(26613),y=t(61186),_=t.n(y),I=t(80184),A=t(1079),w=t(41889),Z=t(13277),N=t(37712);p.Z.Countdown;n.Z=(0,I.connect)((function(e){return{exercise:e.exercise}}))((function(e){var n,t,i,c,s=e.exercise,l=e.successCb,p=e.dispatch,y=(0,I.useParams)(),k=f.Z.useForm(),M=u()(k,1)[0],C=(0,d.useState)(!1),P=u()(C,2),E=P[0],S=P[1],R=(0,d.useRef)(),O=s.actionTabs;(0,d.useEffect)((function(){"student-unlock"===s.actionTabs.key&&(S(!1),M.resetFields())}),[s.actionTabs.key]);var T=function(){var e=o()(a()().mark((function e(){var n,t,i,r,c,s,u,d,f,m;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,M.validateFields();case 2:if(c=M.getFieldsValue(),S(!0),!("no"!==(null==O||null===(n=O.exerciseParams)||void 0===n?void 0:n.ip_limit)||null!=O&&null!==(t=O.exerciseParams)&&void 0!==t&&t.ip_bind)){e.next=7;break}return e.next=7,new Promise(function(){var e=o()(a()().mark((function e(n){var t,i;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.y)({ip_limit:null==O||null===(t=O.exerciseParams)||void 0===t?void 0:t.ip_limit,ip_bind:null==O||null===(i=O.exerciseParams)||void 0===i?void 0:i.ip_bind});case 2:return R.current=e.sent,e.abrupt("return",n());case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}());case 7:return e.next=9,(0,b.ZD)(null==O||null===(i=O.exerciseParams)||void 0===i?void 0:i.id,{exercise_user_id:null==O||null===(r=O.exerciseParams)||void 0===r?void 0:r.exercise_user_id,unlock_key:c.unlock_key,ip:R.current});case 9:if(0!==e.sent.status){e.next=22;break}if(!l){e.next=15;break}return p({type:"exercise/setActionTabs",payload:{}}),l(),e.abrupt("return");case 15:if(!c.time){e.next=19;break}return f={time:_()(c.time).format("YYYY-MM-DD HH:mm"),exercise_user_id:null==O||null===(u=O.exerciseParams)||void 0===u?void 0:u.exercise_user_id,id:null==O||null===(d=O.exerciseParams)||void 0===d?void 0:d.id},e.next=19,(0,b.qz)(f);case 19:m=null==O?void 0:O.exerciseParams,(0,A.nr)({inner_ip:m.inner_ip,public_ip:m.public_ip,open_camera:m.open_camera,ip_limit:m.ip_limit,ip_bind:m.ip_bind,exercise_tips:m.exercise_tips,exerciseId:m.id,screen_open:m.screen_open,screen_num:m.screen_num,screen_sec:m.screen_sec,coursesId:y.coursesId,login:null===(s=(0,Z.eY)())||void 0===s?void 0:s.login,history:history,identity_verify:m.identity_verify,open_phone_video_recording:m.open_phone_video_recording,current_status:m.current_status}),p({type:"exercise/setActionTabs",payload:{}});case 22:S(!1);case 23:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),D=[{title:"IP地址",dataIndex:"ip",key:"ip",render:function(e){return(0,N.jsx)("span",{className:e.indexOf("异常")>-1?"c-red":"c-green",children:e})}},{title:"浏览器",dataIndex:"browser",key:"browser",render:function(e){return(0,N.jsx)("span",{className:e.indexOf("异常")>-1?"c-red":"c-green",children:e})}},{title:"上次登录时间",dataIndex:"last_login_time",key:"last_login_time"}],z=(null==O||null===(n=O.exerciseParams)||void 0===n?void 0:n.errorMessage)&&"object"===r()(null==O||null===(t=O.exerciseParams)||void 0===t?void 0:t.errorMessage);return(0,N.jsx)(N.Fragment,{children:(0,N.jsxs)(m.Z,{width:514,centered:!0,closable:!(null==O||null===(i=O.exerciseParams)||void 0===i||!i.unlockClose),maskClosable:!1,keyboard:!1,maskStyle:{background:"#000"},title:"提示",open:"student-unlock"===s.actionTabs.key,footer:null,onCancel:function(){p({type:"exercise/setActionTabs",payload:{}})},children:[z&&(0,N.jsx)("div",{style:{marginBottom:16},children:"该账号已经存在异常情况,若非本人操作,请联系监考老师说明情况。 "}),!z&&(0,N.jsx)("div",{style:{marginBottom:16},children:"系统检测到您在考试时中途退出,现已将考试锁定。如需继续进行考试, 请尽快联系课堂老师进行解锁!"}),z&&(0,N.jsx)(h.Z,{className:"mb20",pagination:{hideOnSinglePage:!0},dataSource:[(null==O||null===(c=O.exerciseParams)||void 0===c?void 0:c.errorMessage)||{}],columns:D}),(0,N.jsx)("div",{className:"",children:(0,N.jsx)(f.Z,{form:M,layout:"vertical",autoComplete:"off",children:(0,N.jsx)(f.Z.Item,{label:"考试解锁码",name:"unlock_key",rules:[{required:!0,message:"请输入考试解锁码"}],children:(0,N.jsx)(x.Z.Password,{autoComplete:"off",placeholder:"请输入考试解锁码",visibilityToggle:!1})})})}),(0,N.jsxs)(v.Z,{justify:"space-between",align:"middle",children:[(0,N.jsx)(g.Z,{}),(0,N.jsx)(g.Z,{children:(0,N.jsx)(j.ZP,{loading:E,onClick:T,children:"进入考试"})})]})]})})}))},91303:function(e,n,t){t.d(n,{$J:function(){return o},JZ:function(){return u},bN:function(){return f},jP:function(){return p},rO:function(){return l}});var i=t(7557),r=t.n(i),c=t(41498),a=t.n(c),s=t(35325);function o(e){return(0,s.U2)("libraries/".concat(e,".json"))}function l(){return(0,s.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=a()(r()().mark((function e(n){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.IV)("attachments/".concat(n,".json"));case 2:return t=e.sent,e.abrupt("return",0===t.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return(0,s.v_)("libraries.json",e)}function f(e,n){return(0,s.gz)("libraries/".concat(e,".json"),n)}},23329:function(e,n,t){t.d(n,{Z:function(){return u}});var i=t(79800),r=t.n(i),c=t(59301),a="modal___yy3VB",s=t(43418),o=t(36707),l=t(37712),u=function(e){var n=e.title,t=e.children,i=e.value,u=(0,c.useState)(!1),d=r()(u,2),p=d[0],f=d[1];return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{onClick:function(){return f(!0)},children:t}),(0,l.jsxs)(s.Z,{title:n,open:p,width:1e3,destroyOnClose:!0,centered:!0,onCancel:function(){return f(!1)},className:a,footer:null,children:["string"==typeof i&&(0,l.jsx)(o.Z,{value:i||""}),"[object Array]"===Object.prototype.toString.call(i)&&(0,l.jsx)(l.Fragment,{children:null==i?void 0:i.map((function(e,n){return(0,l.jsxs)("div",{children:[(0,l.jsx)("b",{children:e.name||e.type_name}),(0,l.jsx)(o.Z,{value:e.description||""})]},n)}))})]})]})}},59537:function(e,n,t){t(59301);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;n.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNENTUiIGN4PSIxOCIgY3k9IjE4IiByPSIxOCIvPjxwYXRoIGQ9Ik0xOCA2YTIuODE4IDIuODE4IDAgMCAxIDIuODEzIDIuOTk0bC0uNjg4IDExLjAxYTIuMTI5IDIuMTI5IDAgMCAxLTQuMjUgMGwtLjY4OC0xMS4wMUEyLjgxOCAyLjgxOCAwIDAgMSAxOCA2WiIgZmlsbD0iIzE3Mjc0MCIvPjxjaXJjbGUgZmlsbD0iIzE3Mjc0MCIgY3g9IjE4IiBjeT0iMjYuNSIgcj0iMi41Ii8+PC9nPjwvc3ZnPg=="},36322:function(e,n,t){t(59301);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;n.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMiAxKSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIHN0cm9rZT0iI0Q1NSIgc3Ryb2tlLXdpZHRoPSIyIiBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiLz48cGF0aCBkPSJNMTQgNWEyIDIgMCAwIDEgMiAydjhhMiAyIDAgMSAxLTQgMFY3YTIgMiAwIDAgMSAyLTJaIiBmaWxsPSIjRDU1Ii8+PGNpcmNsZSBmaWxsPSIjRDU1IiBjeD0iMTQiIGN5PSIyMSIgcj0iMiIvPjwvZz48L3N2Zz4="},38359:function(e,n,t){t(59301);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;n.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiMxOUNCNzAiIGN4PSIxOCIgY3k9IjE4IiByPSIxOCIvPjxwYXRoIHN0cm9rZT0iIzE3Mjc0MCIgc3Ryb2tlLXdpZHRoPSI0IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGQ9Ik0xMCAxOC44NSAxNS4yNzQgMjQgMjYgMTQiLz48L2c+PC9zdmc+"},3878:function(e,n){n.Z={flex_box_center:"flex_box_center___vG4eV",flex_space_between:"flex_space_between___qVVxe",flex_box_vertical_center:"flex_box_vertical_center___P8Z8s",flex_box_center_end:"flex_box_center_end___VMme3",flex_box_column:"flex_box_column___VMHwm",dropdownmenus:"dropdownmenus___oVzoj",popupClassNames:"popupClassNames___OcZq7",selectdown:"selectdown___mmcA8"}},39744:function(){},21978:function(e){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAACgCAYAAAB+HS7YAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAua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