|
|
(self.webpackChunk=self.webpackChunk||[]).push([[91045,90963,39752],{66455:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},o=null,i=!1,a=!1,r=null,l=!1,s=null,c=null,d=0;d<arguments.length;d++){var u=arguments[d];if(null!==u)switch(_typeof(u)){case"number":t=u.toFixed(1);break;case"string":u.match(new RegExp("^[0-9]\\.[0-9]+$"))?t=u:r=u;break;case"object":void 0!==u.is3D?o=u:n=u;break;case"boolean":i=u,a=!0}}null===o&&(o={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},void 0===n.material_id||a||(i=!0)),null!==r&&void 0===n.id&&(n.id=r);var p="",f=!1,m=null,h=null,g=null,v=!1,w=null,x=null,b=null;void 0!==n.height&&(n.height=Math.round(n.height)),void 0!==n.width&&(n.width=Math.round(n.width));var y=function(e){return parseFloat(e)>4?parseFloat(e):5};function _(){try{return window.self!==window.top}catch(e){return!0}}function j(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,G(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(s=e,D(e,t))},e.getHTML5CodebaseVersion=function(){return h},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){b=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var o,i="auto",a=n.id,r=!1,s=0;s<arguments.length;s++){var c=arguments[s];"string"==typeof c?(c=c.toLowerCase()).match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?i=c:a=arguments[s]:"boolean"==typeof c?r=c:c instanceof HTMLElement&&(o=c)}function d(){if(l){i=L(i);var s=o||document.getElementById(a);if(s)if(e.removeExistingApplet(s,!1),void 0===n.width&&s.clientWidth&&(n.width=s.clientWidth),void 0===n.height&&s.clientHeight&&(n.height=s.clientHeight),n.width&&n.height||"html5"!==i||(delete n.width,delete n.height),m=i,"screenshot"===i)C(s,n);else{var c=!1;n.hasOwnProperty("playButton")&&n.playButton||n.hasOwnProperty("clickToLoad")&&n.clickToLoad?c=!0:n.hasOwnProperty("playButtonAutoDecide")&&n.playButtonAutoDecide&&(c=(!_()||t())&&j()),c?(m="screenshot",P(s,n,r,i)):N(s,n,r)}else console.log("possibly bug on ajax loading? ")}else setTimeout(d,200)}d()},e.getViews=function(){return o},e.isJavaInstalled=function(){return!1};var A=function(t){var i=function(){n.onError&&n.onError(),F("Error: Fetching material (id "+n.material_id+") failed.",n)},a=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",r="/materials/"+n.material_id+"?scope=basic";k("https://"+a+"/api/proxy.php?path="+encodeURIComponent(r),(function(a){var r=JSON.parse(a),l=r.elements?r.elements.filter((function(e){return"G"==e.type||"E"==e.type}))[0]:r;if(l&&l.url){n.fileName=l.url,S(l.settings||{}),o.is3D=!0;var s="https://www.geogebra.org/images/";e.setPreviewImage(w||l.previewUrl,s+"GeoGebra_loading.png",s+"applet_play.png"),t()}else i()}),i)};function S(e){["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach((function(t){e[t]=!!e[t]})),["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"].forEach((function(t){void 0===n[t]&&void 0!==e[t]&&(n[t]=e[t])})),void 0===n.showToolBarHelp&&(n.showToolBarHelp=n.showToolBar)}function k(e,t,n){var o=new XMLHttpRequest;o.open("GET",e),o.onload=function(){t(o.responseText)},o.onerror=n,o.send()}e.isHTML5Installed=function(){return!0},e.getLoadedAppletType=function(){return m},e.setPreviewImage=function(e,t,n){w=e,x=t,n},e.removeExistingApplet=function(e,t){var o;"string"==typeof e&&(e=document.getElementById(e)),m=null;var i=null;for(o=0;o<e.childNodes.length;o++){var a=e.childNodes[o],r=a.className;"applet_screenshot"===r?t?(a.style.display="block",m="screenshot"):a.style.display="none":"applet_scaler prerender"!==r&&(e.removeChild(a),i=r&&-1!=r.indexOf("appletParameters")?a.id:null,o--)}var l=void 0!==n.id?n.id:i,s=window[l];s&&"function"==typeof s.getBase64&&(s.remove(),window[l]=null)},e.refreshHitPoints=function(){if(y(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var B=function(e){return e&&"false"!==e},N=function(t,n,o){y(h)<=4.2&&(o=!0);var i=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==h||ggbHTML5LoadedCodebaseIsWebSimple&&!v)&&(i=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var a=document.createElement("div");a.classList.add("appletParameters","notranslate");var r=n.width,l=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(y(h)<=4.4)B(n.showToolBar)&&(n.height-=7),B(n.showAlgebraInput)&&(n.height-=37),n.width<605&&B(n.showToolBar)&&(n.width=605,r=605);else{var d=100;(B(n.showToolBar)||B(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),d=B(n.showMenuBar)?245:155),r<d&&(n.width=d,r=d)}for(var u in a.style.border="none",a.style.display="inline-block",n)n.hasOwnProperty(u)&&"appletOnLoad"!==u&&a.setAttribute("data-param-"+u,n[u]);b&&a.setAttribute("data-param-fontscssurl",b),e.resize=function(){GGBAppletUtils.responsiveResize(t,n)},window.addEventListener("resize",(function(t){e.resize()}));var f="function"==typeof n.appletOnLoad?n.appletOnLoad:function(){};if(o||void 0===n.width){var m=document.createElement("div");m.className="applet_scaler",m.style.position="relative",m.style.display="block",m.appendChild(a),t.appendChild(m),n.appletOnLoad=function(t){e.resize(),f(t)}}else{n.hasOwnProperty("showSplash")||a.setAttribute("data-param-showSplash","false");var w=t.querySelector(".applet_scaler.prerender"),x=null!==w;if(x)_=w.querySelector(".ggb_preview");else{var _=M(r,l,n.borderColor,!1);(w=document.createElement("div")).className="applet_scaler",w.style.position="relative",w.style.display="block",w.style.width=r+"px",w.style.height=l+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(w,"66%"),y(h)>=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(w),window.GGBT_wsf_view&&$(window).trigger("resize"),f(e)},x||w.appendChild(_)):a.appendChild(_),w.appendChild(a),x||t.appendChild(w),setTimeout((function(){e.resize()}),1)}function j(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),F("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function A(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){j(e.article,e.params)})),html5AppletsToProcess=null)},y(h)<5&&(e.className+=" geogebraweb")):j(e,t)}if(i){scriptLoadStarted=!0;for(var S=0;S<a.childNodes.length;S++){"TABLE"===a.childNodes[S].tagName&&(a.removeChild(a.childNodes[S]),S--)}if(null!==ggbHTML5LoadedScript){var k=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');null!=k&&k.parentNode.removeChild(k)}var N=document.createElement("script"),C=function(){A(a,n)};N.src=p+g,ggbHTML5LoadedCodebaseIsWebSimple=v,ggbHTML5LoadedCodebaseVersion=h,ggbHTML5LoadedScript=N.src,F("GeoGebra HTML5 codebase loaded: '"+p+"'.",n),c||s&&"5.0"!=s?p.requirejs?__webpack_require__.e(5783).then(function(){var e=[__webpack_require__(5783)];C.apply(null,e)}.bind(this)).catch(__webpack_require__.oe):(N.onload=C,t.appendChild(N)):(v?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),C())}else A(a,n);n.height=l,n.width=r},C=function(t,n,o){var i=M(n.width,n.height,n.borderColor,o),a=document.createElement("div");a.style.position="relative",a.style.display="block",a.style.width=n.width+"px",a.style.height=n.height+"px",a.className="applet_screenshot applet_scaler"+(o?" applet_screenshot_play":""),a.appendChild(i);var r=GGBAppletUtils.getScale(n,t,o);o?(t.appendChild(E()),window.GGBT_wsf_view||(t.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(a,"66%"),t.appendChild(a),1===r||isNaN(r)||(GGBAppletUtils.scaleElement(a,r),a.style.width=n.width+"px",a.style.height=n.height+"px",a.parentNode.style.width=n.width*r+"px",a.parentNode.style.height=n.height*r+"px"),e.resize=function(){T(t,i,a,o)},window.addEventListener("resize",(function(t){e.resize()})),e.resize()};function T(e,t,o,i){if(e.contains(t)){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if("fullscreencontent"!==e.id)return;window.GGBT_wsf_view.setCloseBtnPosition(e)}var a=GGBAppletUtils.getScale(n,e,i);null!==o.parentNode&&(isNaN(a)||1===a?(GGBAppletUtils.scaleElement(o,1),o.parentNode.style.width=n.width+"px",o.parentNode.style.height=n.height+"px"):(GGBAppletUtils.scaleElement(o,a),o.parentNode.style.width=n.width*a+"px",o.parentNode.style.height=n.height*a+"px")),"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(e),"object"===_typeof(window.GGBT_ws_header_footer)&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}e.onExitFullscreen=function(e,t){t.appendChild(e)};var P=function(e,t,n,o){C(e,t,!0);for(var i=function(){var n=[];for(r=0;r<e.childNodes.length;r++)n.push(e.childNodes[r]);if(window.GGBT_wsf_view){var i=window.GGBT_wsf_view.renderFullScreen(e,t.id),a=document.getElementById("fullscreencontainer"),l=jQuery(e).find(".fullscreencontent");l.length>0?(i.remove(),l.attr("id","fullscreencontent").show(),jQuery(a).append(l),window.dispatchEvent(new Event("resize"))):N(i,t,!1),window.GGBT_wsf_view.launchFullScreen(a)}else m=o,N(e,t,!1);if(!window.GGBT_wsf_view)for(r=0;r<n.length;r++)e.removeChild(n[r])},a=e.getElementsByClassName("ggb_preview_play"),r=0;r<a.length;r++)a[r].addEventListener("click",i,!1),a[r].addEventListener("ontouchstart",i,!1);"function"==typeof window.ggbAppletPlayerOnload&&window.ggbAppletPlayerOnload(e),j()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},E=function(){var e=document.createElement("div");if(e.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var t='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',n=document.createElement("style");n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t)),document.getElementsByTagName("head")[0].appendChild(n)}return e},M=function(e,t,n,o){var i=document.createElement("div");i.className="ggb_preview",i.style.position="absolute",i.style.zIndex="90",i.style.width=e-2+"px",i.style.height=t-2+"px",i.style.top="0px",i.style.left="0px",i.style.overflow="hidden",i.style.backgroundColor="white";var a="lightgrey";void 0!==n&&(a="none"===n?"transparent":n),i.style.border="1px solid "+a;var r,l,s,c=document.createElement("img");if((c.style.position="relative",c.style.zIndex="1000",c.style.top="-1px",c.style.left="-1px",null!==w&&c.setAttribute("src",w),c.style.opacity=.7,null!==x)&&!o){(r=document.createElement("img")).style.position="absolute",r.style.zIndex="1001",r.style.opacity=1,c.style.opacity=.3,(l=360)>e/4*3&&(l=e/4*3),s=l/5.8,r.setAttribute("src",x),r.setAttribute("width",l),r.setAttribute("height",s);var d=(e-l)/2,u=(t-s)/2;r.style.left=d+"px",r.style.top=u+"px",i.appendChild(r)}return i.appendChild(c),i},L=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},O=["web","webSimple","web3d","tablet","tablet3d","phone"],D=function(e,t){if(h=e,t)G(h,!0);else{var a,r,l=!i;if(l){var s=y(h);!isNaN(s)&&s<4.4&&(l=!1)}a="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=h.indexOf("//");for(var d in r=c>0?h:0===c?a+h:"https://www.geogebra.org/apps/5.2.814.0/",O)if(h.slice(-1*O[d].length)===O[d]||h.slice(-1*(O[d].length+1))===O[d]+"/")return void G(r,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||o.is3D||o.AV||o.SV||o.CV||o.EV2||o.CP||o.PC||o.DA||o.FI||o.PV||B(n.showToolBar)||B(n.showMenuBar)||B(n.showAlgebraInput)||B(n.enableRightClick)||n.appName&&"classic"!=n.appName?r+="web3d/":r+="webSimple/",G(r,!1)}},G=function(e,t){if(e.requirejs)p=e;else{"/"!==e.slice(-1)&&(e+="/"),p=e,null===t&&(t=-1===e.indexOf("http")),f=t,g="web.nocache.js",v=!1;var n=p.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?O.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",v=!0)),n=e.split("/"),"test"===(h=n[n.length-3]).substr(0,4)?h=h.substr(4,1)+"."+h.substr(5,1):"war"!==h.substr(0,3)&&"beta"!==h.substr(0,4)||(h="5.0");var o=parseFloat(h);NaN!==o&&o<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+o+" is deprecated. Using version latest instead."),D("5.0",t))}},F=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function R(){var e=t;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),D(e,!1),null!==c&&G(c,f),l=!0}return void 0!==n.material_id?A(R):R(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,o,i){if(e.isScreenshoGenerator)return 1;var a,r=void 0!==o&&o,l=null!=e.noScaleMargin&&e.noScaleMargin,s=(a=e.autoHeight)&&"false"!==a,c=function(e,t,n,o,i,a){var r=null;if(null!=a&&""!=a)for(var l=e.parentNode;null!=l;){if((" "+l.className+" ").indexOf(" "+a+" ")>-1){r=l;break}l=l.parentNode}var s=0,c=0,d=0,u=0,p=0,f=0,m=0;if(r)s=r.offsetWidth,c=Math.max(o?r.offsetWidth:0,r.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),d=s):(s=window.innerWidth,c=window.innerHeight,d=window.innerWidth),e){var h=e.getBoundingClientRect();h.left>0&&h.left<=s&&(void 0===i||!i)&&("rtl"===document.dir?(p=s-h.width-h.left,f=d<=480?10:30):(f=h.left,p=d<=480?10:30),u=f+p)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(u=40,m=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(u=0,m=40))}return e&&((void 0===n||!n)&&t>0&&t+u<s?s=t:s-=u,"object"!==_typeof(window.GGBT_wsf_view)||!window.GGBT_wsf_view.isFullscreen()||void 0!==n&&n||(c-=m)),{width:s,height:c}}(t,e.width,n,s,r&&window.GGBT_wsf_view||l,i),d=parseInt(c.width),u=e.width,p=e.height;if(void 0===u){var f=t.querySelector(".appletParameters");f&&(u=f.offsetWidth,p=f.offsetHeight)}var m=d/u,h=r?1:c.height/p;return void 0===n||n||(m=Math.min(1,m),h=Math.min(1,h)),Math.min(m,h)}function o(e,t,o){var i,a=1,r=!1;return e.hasOwnProperty("allowUpscale")&&(r=e.allowUpscale),e.hasOwnProperty("scale")&&(a=parseFloat(e.scale),(isNaN(a)||null===a||0===a)&&(a=1),a>1&&(r=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(r=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?a:(i=n(e,t,r,o,e.scaleContainerClass),!r||e.hasOwnProperty("scale")&&1!==a?Math.min(a,i):i)}function i(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),o=e.getBoundingClientRect(),i=(t-o.width)/2,a=(n-o.height)/2;a<0&&(a=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=i<40?"40px":i+"px",e.style.top=a+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=a<40?"40px":a+"px",e.style.left=i+"px")}return{responsiveResize:function(n,a){var r=n.querySelector(".appletParameters");if(r){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(a.id!==r.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(r.parentElement&&/fullscreen/.test(r.parentElement.className))return;var l=o(a,n);e()&&r.setAttribute("data-param-scale",l);for(var s=null,c=0;c<n.childNodes.length;c++)if(void 0!==n.childNodes[c].className&&n.childNodes[c].className.match(/^applet_scaler/)){s=n.childNodes[c];break}if(null!==s&&null!==s.querySelector(".noscale"))return;var d=void 0!==a.id?a.id:"ggbApplet",u=window[d];null!=u&&u.recalculateEnvironments||null===s||s.className.match(/fullscreen/)||(s.parentNode.style.transform="",isNaN(l)||1===l?(t(s,1),s.parentNode.style.width=a.width+"px",s.parentNode.style.height=a.height+"px"):(s.parentNode.style.width=a.width*l+"px",s.parentNode.style.height=a.height*l+"px",t(s,l))),"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&i(n),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(r).parents(".content-added-content"))}},isFlexibleWorksheetEditor:e,positionCenter:i,getScale:o,scaleElement:t}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var e=n.location.search;return-1!=e.indexOf(J)||-1!=e.indexOf(K)}function q(e,t){}q(H,I),webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{},t;function u(){return v(),t}function v(){if(!t){var e=o.createElement(Q);if(e.id=L,e.style.cssText=R+S,e.tabIndex=-1,o.body.appendChild(e),t=e.contentWindow.document,-1==navigator.userAgent.indexOf(T)){t.open();var n=document.compatMode==U?V:W;t.write(n+X),t.close()}}}function w(e){q(cb,eb),function(e){function t(){return _typeof(o.readyState)==Y?_typeof(o.body)!=Y&&null!=o.body:/loaded|complete/.test(o.readyState)}var n=t();if(n)e();else{o.addEventListener&&o.addEventListener(Z,a,!1);var i=setInterval((function(){a()}),$)}function a(){if(!n){if(!t())return;n=!0,e(),o.removeEventListener&&o.removeEventListener(Z,a,!1),i&&clearInterval(i)}}}((function(){var t,n,o,i;t=e,n=u(),o=n.body,(i=n.createElement(_)).language=ab,i.crossOrigin=W,i.src=t,webModule.__errFn&&(i.onerror=function(){webModule.__errFn(L,new Error(bb+t))}),o.appendChild(i),q(cb,db)}))}function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var o=e.lastIndexOf(tb,Math.min(n,t));return o>=O?e.substring(O,o+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;n<t.length;++n)if(-1!=t[n].src.indexOf(xb))return e(t[n].src);return W}()),n==W&&(n=function(){var e=o.getElementsByTagName(yb);return e.length>O?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,o=[],i=[];function a(e){var t=i[e](),n=o[e];if(t in n)return t;var a=[];for(var l in n)a[n[l]]=l;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in o[e]},webModule.__getPropMap=function(){var e={};for(var t in o)o.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var l=(e=Cb).indexOf(Db);-1!=l&&(t=parseInt(e.substring(l+P),$),e=e.substring(O,l))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},o=e[webModule.__softPermutationId],i=O;i<o.length;i++){var a=o[i];n[a[O]]=a[P]}return n}},webModule.__startLoadingFragment=function(e){return C(e)},webModule.__installRunAsyncCode=function(e){var t=u(),n=t.body,o=t.createElement(_);o.language=ab,o.text=e,n.appendChild(o),n.removeChild(o)},A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},"function"!=typeof window.web3d&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),"function"!=typeof window.webSimple&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet}else console.warn("deployggb.js was loaded twice")})()},55087:function(e,t,n){"use strict";function o(e){var t=!0;if(e.length>0){for(var n=0;n<e.length;n++)if(0==e[n].compile_success||!e[n].compile_success){t=!1;break}}else t=!1;return t}function i(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[],o=0;o<e.length;o++){var i=e[o],a=t?"".concat(t,"/").concat(i.name):"".concat(i.name);n.push({title:i.name,type:i.type,isLeaf:"tree"!==i.type,key:a})}return n}function a(e,t,n){for(var o=0;o<e.length;o++){var i=e[o];if(i.key===t){i.children=n;break}i.children&&a(i.children,t,n)}return e}function r(e,t,n){var o;return function(){var i=this,a=arguments,r=function(){o=null,n||e.apply(i,a)},l=n&&!o;clearTimeout(o),o=setTimeout(r,t),l&&e.apply(i,a)}}n.d(t,{Ax:function(){return a},Ds:function(){return r},KI:function(){return l},SI:function(){return i},f1:function(){return o}});var l=n(27065).Z.API_SERVER},74908:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var o=n(7557),i=n.n(o),a=n(41498),r=n.n(a),l=n(79800),s=n.n(l),c=n(59301),d="imageDimensions___a7crR",u="img___Kroat",p="fullWidth___c492T",f=n(92310),m=n.n(f),h=n(71418),g=n(2859),v=n(51136),w=n(6457),x=n(37712),b=function(e){var t=e.data,n=e.className,o=e.fullWidth,a=e.style,l=void 0===a?{}:a,f=e.onClose,b=e.onOk,y=e.showFullTools,_=e.noAssociationId,j=(0,c.useRef)(null),A=(0,c.useRef)(null),S=(0,c.useState)(!1),k=s()(S,2),B=k[0],N=k[1],C=(0,c.useState)("正在加载中"),T=s()(C,2),P=T[0],E=T[1];(0,c.useEffect)((function(){null!=t&&t.visible?document.body.setAttribute("data-custom","y-hidden"):document.body.removeAttribute("data-custom"),null!=t&&t.src&&M()}),[null==t?void 0:t.visible]);var M=function(){var e=r()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),E("正在加载中"),e.next=4,(0,w.ZJ)(null==t?void 0:t.src);case 4:n=e.sent,j.current.src="",j.current.src=n,j.current.onload=function(){O()},N(!1),E("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),L=function(){var e=r()(i()().mark((function e(n){var o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),E("正在保存中"),e.next=4,(0,v.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:t.title,file:n.dataUrl}});case 4:if(null==(o=e.sent)||!o.id||_){e.next=12;break}return e.next=8,(0,v.ZP)("/api/attachments/".concat(t.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==o?void 0:o.id,settings:JSON.stringify(n.state)}});case 8:0===e.sent.status&&b(),e.next=13;break;case 12:null!=o&&o.id&&b(o);case 13:N(!1),E("");case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),O=function(){A.current=new g.hP(j.current),A.current.addEventListener("render",L),A.current.addEventListener("beforeclose",f),y&&(A.current.availableMarkerTypes=A.current.ALL_MARKER_TYPES,A.current.uiStyleSettings.redoButtonVisible=!0,A.current.uiStyleSettings.notesButtonVisible=!0,A.current.uiStyleSettings.zoomButtonVisible=!0,A.current.uiStyleSettings.zoomOutButtonVisible=!0,A.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=A.current.uiStyleSettings,A.current.show(),null!=t&&t.snapshotData&&A.current.restoreState(t.snapshotData),setTimeout((function(){var e;(e=document.querySelector('a[href="https://markerjs.com/"]'))&&e.parentNode&&(e.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"选择"},{name:'[data-action="delete"]',title:"删除元素"},{name:'[data-action="undo"]',title:"撤销"},{name:'[data-type-name="FrameMarker"]',title:"矩形"},{name:'[data-type-name="FreehandMarker"]',title:"画线"},{name:'[data-type-name="ArrowMarker"]',title:"箭头"},{name:'[data-type-name="TextMarker"]',title:"文本"},{name:'[data-type-name="EllipseMarker"]',title:"椭圆"},{name:'[data-type-name="HighlightMarker"]',title:"方块"},{name:'[data-type-name="CalloutMarker"]',title:"注释"},{name:'[data-action="render"]',title:"保存"},{name:'[data-action="close"]',title:"退出"}].forEach((function(e){var t=document.querySelector(e.name);t&&t.setAttribute("title",e.title)}))}),300)};return(0,x.jsx)(c.Fragment,{children:(null==t?void 0:t.visible)&&(0,x.jsxs)("div",{className:m()(d,n,o?p:""),style:l,children:[(0,x.jsx)(h.Z,{spinning:B,tip:P,style:{position:"absolute"}}),(0,x.jsx)("img",{className:u,ref:j})]})})}},37507:function(e,t,n){"use strict";n.d(t,{h:function(){return v}});var o=n(82242),i=n.n(o),a=n(79800),r=n.n(a),l=n(59301),s=n(57809),c=n(78241),d=n(3113),u=n(89780),p=n.n(u),f=(n(81974),n(3693),n(37712)),m=s.default.Option,h={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function v(e){var t=e.value,n=e.onChange,o=e.mode,a=e.options,s=void 0===a?{}:a,c=(0,l.useRef)(),d=(0,l.useState)(),u=r()(d,2),m=u[0],h=u[1];return(0,l.useEffect)((function(){if(m){var e=function(e){var t=e.getValue();n&&n(t)};return m.on("change",e),function(){m.off("change",e)}}}),[m,n]),(0,l.useEffect)((function(){m&&m.setOption("mode",o)}),[m,o]),(0,l.useEffect)((function(){m&&(t===m.getValue()&&""!==t||setTimeout((function(){m.setValue(t||"")}),300))}),[m,t]),(0,l.useEffect)((function(){if(c.current&&!m){var e=p().fromTextArea(c.current,i()({mode:o,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));h(e)}}),[c.current,m]),(0,f.jsx)("div",{className:"my-codemirror-container",children:(0,f.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,o=(0,l.useState)("python"),a=r()(o,2),u=a[0],p=a[1];return(0,f.jsxs)(c.Z,i()(i()({},h),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,f.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,f.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){p(g[e][1])},children:Object.keys(g).map((function(e){return(0,f.jsx)(m,{value:e,children:g[e][0]},e)}))})}),(0,f.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,f.jsx)(v,{mode:u})}),(0,f.jsxs)("div",{className:"flex-container flex-end",children:[(0,f.jsx)(d.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,f.jsx)(d.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))}},11094:function(e,t,n){"use strict";n.d(t,{Z:function(){return Be}});var o=n(91232),i=n.n(o),a=n(79800),r=n.n(a),l=n(85573),s=n.n(l),c=n(59301),d=n(89780),u=n.n(d),p=n(76374),f=(n(81974),n(6313),n(25717),n(99498),n(25419),n(67549),n(42783)),m=n(37712),h=function(e){var t=e.value,n=void 0===t?"":t,o=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,m.jsx)(m.Fragment,{children:(0,m.jsx)("div",{dangerouslySetInnerHTML:{__html:o}})})},g=n(82242),v=n.n(g),w=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function x(e){var t=e.onActionCallback,n=e.title,o=e.icon,i=e.actionName,a=e.className,r=void 0===a?"":a,l=e.children;return(0,m.jsxs)("a",{title:n,className:r,onClick:function(){t(i)},children:[(0,m.jsx)("i",{className:"".concat(o)}),l]})}var b=function(e){var t=e.watch,n=e.showNullButton,o=e.showNullProgramButton,i=e.onActionCallback,a=e.fullScreen,r=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(w,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,m.jsxs)("ul",{className:"markdown-toolbar-container",children:[!l&&c.map((function(e,t){return(0,m.jsx)("li",{children:e.actionName?(0,m.jsx)(x,v()(v()({},e),{},{onActionCallback:i})):(0,m.jsx)("span",{className:"v-line"})},t)})),n?(0,m.jsx)("li",{children:(0,m.jsx)(x,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:i,children:(0,m.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,o?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("li",{children:(0,m.jsx)(x,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:i,children:(0,m.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,m.jsx)("li",{children:(0,m.jsx)(x,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:i,children:(0,m.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,r&&(0,m.jsx)("li",{children:(0,m.jsx)(x,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(r),onActionCallback:i,children:(0,m.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,m.jsx)("li",{children:s}),(0,m.jsx)("li",{className:"btn-full-screen",children:(0,m.jsx)(x,{icon:"".concat(a?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:a?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:i})})]})},y=n(27308),_=n(78241),j=n(8772),A=n(3113),S={labelCol:{span:4},wrapperCol:{span:20}},k=function(e){var t=e.callback,n=e.onCancel;return(0,m.jsxs)(_.Z,v()(v()({},S),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,m.jsx)(_.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,m.jsx)(j.Z,{})}),(0,m.jsx)(_.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,m.jsx)(j.Z,{})}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(A.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(A.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},B=n(37507),N=n(8591),C=n(55087),T=_.Z.useForm,P={width:280,marginRight:10},E={labelCol:{span:5},wrapperCol:{span:19}},M=function(e){var t=e.callback,n=e.onCancel,o=T(),i=r()(o,1)[0],a=(0,c.useRef)();function l(e,t){-1!==e.status?i.setFieldsValue({src:"/api/attachments/".concat(e.id),type:t.type}):N.ZP.error(e.message)}return(0,m.jsxs)(_.Z,v()(v()({form:i},E),{},{className:"upload-image-panel",onFinish:function(e){t(e,a.current)},style:{width:470,overflow:"hidden"},children:[(0,m.jsx)(_.Z.Item,{label:"图片地址",required:!0,children:(0,m.jsxs)("div",{className:"flex-container",children:[(0,m.jsx)(_.Z.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"请输入图片地址"}],children:(0,m.jsx)(j.Z,{style:P})}),(0,m.jsx)(L,{onFileChange:function(e){var t=e.target.files[0];a.current=t,O(t,l)}})]})}),(0,m.jsx)(_.Z.Item,{label:"图片描述",name:"alt",children:(0,m.jsx)(j.Z,{style:{width:264}})}),(0,m.jsxs)(_.Z.Item,{style:{textAlign:"right"},children:[(0,m.jsx)(A.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(A.ZP,{type:"default",onClick:n,children:"取消"})]})]}))};function L(e){var t=e.onFileChange;return(0,m.jsxs)("label",{className:"upload-button",style:{cursor:"pointer"},children:["本地上传",(0,m.jsx)("input",{type:"file",onChange:t})]})}function O(e,t){if(!e)throw new String("没有文件");var n=new FormData;n.append("editormd-image-file",e),n.append("file_param_name","editormd-image-file"),n.append("byxhr","true");var o=new window.XMLHttpRequest;o.withCredentials=!0,o.addEventListener("load",(function(n){t(JSON.parse(n.target.responseText),e)}),!1),o.addEventListener("error",(function(e){console.error(e)}),!1),o.open("POST","".concat(C.KI,"/api/attachments.json")),o.send(n)}var D=n(95237),G=n(74908),F=function(e){var t=e.callback,n=e.onCancel,o=document.createElement("canvas"),i=o.getContext("2d");o.width=1e3,o.height=800,i.fillStyle="#ffffff",i.fillRect(0,0,o.width,o.height);var a=o.toDataURL("image/png");return(0,m.jsx)(D.Z,{style:{height:"100vh"},children:(0,m.jsx)(G.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:a,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},R=n(7557),H=n.n(R),Z=n(41498),I=n.n(Z),W=n(37205),z=n.n(W),U=n(12378);function V(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(V,go.CommandHandler),V.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},V.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},V.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},V.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},V.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},V.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},V.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},V.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var o=0;o<n.length-1;o++){var i=n[o],a=i.actualBounds.y+i.actualBounds.height+e;n[o+1].move(new go.Point(i.actualBounds.x,a))}t.commitTransaction("align Column")},V.prototype.alignRow=function(e){void 0===e&&(e=0),e=parseFloat(e);var t=this.diagram;t.startTransaction("align Row");var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var o=0;o<n.length-1;o++){var i=n[o],a=i.actualBounds.x+i.actualBounds.width+e;n[o+1].move(new go.Point(a,i.actualBounds.y))}t.commitTransaction("align Row")},V.prototype.canRotate=function(e){var t=this.diagram;return null!==t&&!t.isReadOnly&&!t.isModelReadOnly&&!(t.selection.count<1)},V.prototype.rotate=function(e){var t;void 0===e&&(e=90),(t=this.diagram).startTransaction("rotate "+e.toString()),(t=this.diagram).selection.each((function(t){t instanceof go.Link||t instanceof go.Group||(t.angle+=e)})),t.commitTransaction("rotate "+e.toString())},V.prototype.pullToFront=function(){var e=this.diagram;e.startTransaction("pullToFront");var t=new go.Map;e.selection.each((function(e){t.set(e.layer,0)})),t.iteratorKeys.each((function(e){var n=0;e.parts.each((function(e){if(!e.isSelected){var t=e.zOrder;isNaN(t)?e.zOrder=0:n=Math.max(n,t)}})),t.set(e,n)})),e.selection.each((function(e){V._assignZOrder(e,t.get(e.layer)+1)})),e.commitTransaction("pullToFront")},V.prototype.pushToBack=function(){var e=this.diagram;e.startTransaction("pushToBack");var t=new go.Map;e.selection.each((function(e){t.set(e.layer,0)})),t.iteratorKeys.each((function(e){var n=0;e.parts.each((function(e){if(!e.isSelected){var t=e.zOrder;isNaN(t)?e.zOrder=0:n=Math.min(n,t)}})),t.set(e,n)})),e.selection.each((function(e){V._assignZOrder(e,t.get(e.layer)-1-V._findGroupDepth(e))})),e.commitTransaction("pushToBack")},V._assignZOrder=function(e,t,n){void 0===n&&(n=e),e.layer===n.layer&&(e.zOrder=t),e instanceof go.Group&&e.memberParts.each((function(e){V._assignZOrder(e,t+1,n)}))},V._findGroupDepth=function(e){if(e instanceof go.Group){var t=0;return e.memberParts.each((function(e){t=Math.max(t,V._findGroupDepth(e))})),t+1}return 0},V.prototype.doKeyDown=function(){var e=this.diagram;if(null!==e){var t=e.lastInput;if("Up"===t.key||"Down"===t.key||"Left"===t.key||"Right"===t.key){var n=this.arrowKeyBehavior;if("none"===n)return;if("select"===n)return void this._arrowKeySelect();if("move"===n)return void this._arrowKeyMove();if("tree"===n)return void this._arrowKeyTree()}go.CommandHandler.prototype.doKeyDown.call(this)}},V.prototype._getAllParts=function(){var e=new Array;return this.diagram.nodes.each((function(t){e.push(t)})),this.diagram.parts.each((function(t){e.push(t)})),e},V.prototype._arrowKeyMove=function(){var e=this.diagram,t=e.lastInput,n=0,o=0;if(t.control||t.meta)n=1,o=1;else if(null!==e.grid){var i=e.grid.gridCellSize;o=i.width,n=i.height}e.startTransaction("arrowKeyMove"),e.selection.each((function(e){"Up"===t.key?e.move(new go.Point(e.actualBounds.x,e.actualBounds.y-n)):"Down"===t.key?e.move(new go.Point(e.actualBounds.x,e.actualBounds.y+n)):"Left"===t.key?e.move(new go.Point(e.actualBounds.x-o,e.actualBounds.y)):"Right"===t.key&&e.move(new go.Point(e.actualBounds.x+o,e.actualBounds.y))})),e.commitTransaction("arrowKeyMove")},V.prototype._arrowKeySelect=function(){var e=this.diagram,t=e.lastInput,n=null;"Up"===t.key?n=this._findNearestPartTowards(270):"Down"===t.key?n=this._findNearestPartTowards(90):"Left"===t.key?n=this._findNearestPartTowards(180):"Right"===t.key&&(n=this._findNearestPartTowards(0)),null!==n&&(t.shift?n.isSelected=!0:t.control||t.meta?n.isSelected=!n.isSelected:e.select(n))},V.prototype._findNearestPartTowards=function(e){var t=this.diagram.selection.first();if(null===t)return null;for(var n=t.actualBounds.center,o=this._getAllParts(),i=1/0,a=t,r=0;r<o.length;r++){var l=o[r];if(l!==t&&l.canSelect()){var s=l.actualBounds.center,c=n.directionPoint(s),d=this._angleCloseness(c,e);if(d<=45){var u=n.distanceSquaredPoint(s);(u*=1+Math.sin(d*Math.PI/180))<i&&(i=u,a=l)}}}return a},V.prototype._angleCloseness=function(e,t){return Math.min(Math.abs(t-e),Math.min(Math.abs(t+360-e),Math.abs(t-360-e)))},V.prototype._arrowKeyTree=function(){var e=this.diagram,t=e.selection.first();if(t instanceof go.Node){var n=e.lastInput;if("Right"===n.key)if(t.isTreeLeaf);else if(t.isTreeExpanded){null!==(i=this._sortTreeChildrenByY(t).first())&&e.select(i)}else e.commandHandler.canExpandTree(t)&&e.commandHandler.expandTree(t);else if("Left"===n.key){if(!t.isTreeLeaf&&t.isTreeExpanded)e.commandHandler.canCollapseTree(t)&&e.commandHandler.collapseTree(t);else null!==(a=t.findTreeParentNode())&&e.select(a)}else if("Up"===n.key){if(null!==(a=t.findTreeParentNode()))if((l=(r=this._sortTreeChildrenByY(a)).indexOf(t))>0){for(var o=r.elt(l-1);null!==o&&o.isTreeExpanded&&!o.isTreeLeaf;){o=this._sortTreeChildrenByY(o).last()}null!==o&&e.select(o)}else e.select(a)}else if("Down"===n.key){var i;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(i=this._sortTreeChildrenByY(t).first())&&e.select(i);else for(;null!==t;){var a,r,l;if(null===(a=t.findTreeParentNode()))break;if((l=(r=this._sortTreeChildrenByY(a)).indexOf(t))<r.length-1){e.select(r.elt(l+1));break}t=a}}var s=e.selection.first();null!==s&&e.scrollToRect(s.actualBounds)}},V.prototype._sortTreeChildrenByY=function(e){var t=(new go.List).addAll(e.findTreeChildrenNodes());return t.sort((function(e,t){var n=e.location,o=t.location;return n.y<o.y?-1:n.y>o.y?1:n.x<o.x?-1:n.x>o.x?1:0})),t},V.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},V.prototype.pasteFromClipboard=function(){var e=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(e,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),e},Object.defineProperty(V.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(e){if("move"!==e&&"select"!==e&&"scroll"!==e&&"tree"!==e&&"none"!==e)throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+e);this._arrowKeyBehavior=e}}),Object.defineProperty(V.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var q=V,J=(n(31270),n(85160)),K=n(43418),Q=n(43604),X=n(51136),Y="myPaletteDiv___Xjz2I",$="maxH60___Pd4Re";window.go=U;var ee=function(e){var t=e.onCancel,n=e.callback,o=(0,c.useRef)(),i=(0,c.useRef)(),a=(0,c.useRef)(),l=(0,c.useRef)(!1),s=(0,c.useRef)(!1),d=(0,c.useState)(0),u=r()(d,2),p=u[0],f=u[1],h=function(){var e=I()(H()().mark((function e(){var t,i;return H()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.current.makeImage(),e.next=3,(0,X.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:i=e.sent,n({src:i.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){f(p+1)}),[]),(0,m.jsx)("div",{ref:s,className:l.current?"".concat($," body-overflow-initial"):"body-overflow-initial",children:(0,m.jsx)(K.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!p,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,m.jsxs)(D.Z,{children:[(0,m.jsx)(Q.Z,{flex:1,children:"插入流程图"}),(0,m.jsx)(Q.Z,{onClick:function(){l.current=!l.current,f(p+1)},children:(0,m.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,m.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,m.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,m.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,m.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,m.jsx)("div",{style:{height:"calc(100% - 50px)"},className:Y,ref:a})]}),(0,m.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,m.jsx)(J.FI,{initDiagram:function(){var e=U.GraphObject.make,t="#ff3333",n="#3358ff",r="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",d="#ffffff",u="#000000",p="#fffcd5",f="#d5ebff",m="#f2dfe0",h="#a5d2fa",g="#cccccc",v="#b3e6b3",w="#fcbbbd";function x(t,n){var o=function(e,n){e.handled=!0,e.diagram.model.commit((function(o){var i=n.part.adornedPart,a=(new U.Point).setRectSpot(i.actualBounds,t);a.subtract(i.location),a.scale(2,2),a.x+=130*Math.sign(a.x),a.y+=130*Math.sign(a.y),a.add(i.location),a.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var r=o.copyNodeData(i.data);o.setGroupKeyForNodeData(r,o.getGroupKeyForNodeData(i.data)),o.addNodeData(r);var l={from:i.key,to:o.getKeyForNodeData(r)};o.addLinkData(l);var s=e.diagram.findNodeForData(r);s.location=a,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(U.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(U.Spot.Top)||t.equals(U.Spot.Bottom)?25:18,height:t.equals(U.Spot.Top)||t.equals(U.Spot.Bottom)?18:25,fill:"orange",stroke:d,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:o,contextClick:o})}function b(t){return e(U.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function y(e,t){return function(n,o){n.handled=!0,n.diagram.model.commit((function(n){n.set(o.part.adornedPart.data,e,t)}))}}function _(t,n){return n||(n="color"),e(U.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:y(n,t),contextClick:y(n,t)})}function j(){return[e("ContextMenuButton",e(U.Panel,"Horizontal",_(d,"fill"),_(p,"fill"),_(f,"fill"),_(m,"fill"))),e("ContextMenuButton",e(U.Panel,"Horizontal",_(g,"fill"),_(v,"fill"),_(h,"fill"),_(w,"fill")))]}function A(){return[e("ContextMenuButton",e(U.Panel,"Horizontal",_(u),_(r),_(n),_(t))),e("ContextMenuButton",e(U.Panel,"Horizontal",_(d),_(l),_(s),_(c)))]}function S(t,n){return n||(n="thickness"),e(U.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:y(n,t),contextClick:y(n,t)})}function k(t,n){return n||(n="dash"),e(U.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:y(n,t),contextClick:y(n,t)})}function B(){return[e("ContextMenuButton",e(U.Panel,"Horizontal",S(1),S(2),S(3),S(4))),e("ContextMenuButton",e(U.Panel,"Horizontal",k(null),k([2,4]),k([4,4])))]}function N(t,n){return n||(n="figure"),e(U.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:y(n,t),contextClick:y(n,t)})}function C(t){return e(U.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function T(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(U.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:y("dir",t),contextClick:y("dir",t)})}function P(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var o=n.part.adornedPart;e.set(o.data,t?"toSpot":"fromSpot",U.Spot.stringify(U.Spot.AllSides)),(t?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(U.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function E(t,n){var o=0,i=U.Spot.RightSide;t.equals(U.Spot.Top)?(o=270,i=U.Spot.TopSide):t.equals(U.Spot.Left)?(o=180,i=U.Spot.LeftSide):t.equals(U.Spot.Bottom)&&(o=90,i=U.Spot.BottomSide),n||(o-=180);var a=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var o=t.part.adornedPart;e.set(o.data,n?"toSpot":"fromSpot",U.Spot.stringify(i)),(n?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(U.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:o,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:a,contextClick:a})}return o.current=new U.Diagram(i.current,{padding:20,grid:e(U.Panel,"Grid",e(U.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(U.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:function(e){e.diagram.commandHandler.addTopLevelParts(e.diagram.selection,!0)||e.diagram.currentTool.doCancel()},commandHandler:e(q),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),o.current.nodeTemplate=e(U.Node,"Auto",{locationSpot:U.Spot.Center,locationObjectName:"SHAPE",desiredSize:new U.Size(120,60),minSize:new U.Size(40,40),resizable:!0,resizeCellSize:new U.Size(10,10),rotatable:!0},new U.Binding("location","loc",U.Point.parse).makeTwoWay(U.Point.stringify),new U.Binding("desiredSize","size",U.Size.parse).makeTwoWay(U.Size.stringify),e(U.Shape,{name:"SHAPE",fill:d,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:U.Spot.AllSides,toSpot:U.Spot.AllSides},new U.Binding("figure"),new U.Binding("fill"),new U.Binding("stroke","borderColor"),new U.Binding("strokeWidth","thickness"),new U.Binding("strokeDashArray","dash")),e(U.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(U.TextBlock,{margin:1,textAlign:"center",overflow:U.TextBlock.OverflowEllipsis,editable:!0},new U.Binding("text").makeTwoWay(),new U.Binding("stroke","color"))),o.current.nodeTemplate.toolTip=e("ToolTip",e(U.Panel,"Vertical",{maxSize:new U.Size(200,NaN)},e(U.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new U.Binding("text")),e(U.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new U.Binding("text","details")))),o.current.nodeTemplate.selectionAdornmentTemplate=e(U.Adornment,"Spot",e(U.Placeholder,{padding:10}),x(U.Spot.Top,"TriangleUp"),x(U.Spot.Left,"TriangleLeft"),x(U.Spot.Right,"TriangleRight"),x(U.Spot.Bottom,"TriangleDown"),b({alignment:new U.Spot(.75,0)})),o.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(U.Panel,"Horizontal",N("Rectangle"),N("RoundedRectangle"),N("Ellipse"),N("Diamond"))),e("ContextMenuButton",e(U.Panel,"Horizontal",N("Parallelogram2"),N("ManualOperation"),N("Procedure"),N("Cylinder1"))),e("ContextMenuButton",e(U.Panel,"Horizontal",N("Terminator"),N("CreateRequest"),N("Document"),N("TriangleDown"))),j(),A(),B()),o.current.groupTemplate=e(U.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:U.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new U.Binding("location","loc",U.Point.parse).makeTwoWay(U.Point.stringify),e(U.Panel,"Auto",{name:"BODY"},e(U.Shape,{parameter1:10,fill:d,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:U.Spot.AllSides,toSpot:U.Spot.AllSides},new U.Binding("fill"),new U.Binding("stroke","color"),new U.Binding("strokeWidth","thickness"),new U.Binding("strokeDashArray","dash")),e(U.Placeholder,{background:"transparent",margin:20})),e(U.TextBlock,{alignment:U.Spot.Top,alignmentFocus:U.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new U.Binding("text"),new U.Binding("stroke","color"))),o.current.groupTemplate.selectionAdornmentTemplate=e(U.Adornment,"Spot",e(U.Panel,"Auto",e(U.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(U.Placeholder,{margin:1.5})),b({alignment:U.Spot.TopRight,alignmentFocus:U.Spot.BottomRight})),o.current.groupTemplate.contextMenu=e("ContextMenu",j(),A(),B()),o.current.linkTemplate=e(U.Link,{layerName:"Foreground",routing:U.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new U.Binding("fromSpot","fromSpot",U.Spot.parse),new U.Binding("toSpot","toSpot",U.Spot.parse),new U.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new U.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new U.Binding("points").makeTwoWay(),e(U.Shape,{strokeWidth:2},new U.Binding("stroke","color"),new U.Binding("strokeWidth","thickness"),new U.Binding("strokeDashArray","dash")),e(U.Shape,{segmentIndex:0,segmentOffset:new U.Point(15,0),segmentOrientation:U.Link.OrientAlong,alignmentFocus:U.Spot.Right,figure:"circle",width:10,strokeWidth:0},new U.Binding("fill","color"),new U.Binding("visible","dir",(function(e){return 1===e}))),e(U.Shape,{segmentIndex:-1,segmentOffset:new U.Point(-10,6),segmentOrientation:U.Link.OrientPlus90,alignmentFocus:U.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new U.Binding("fill","color"),new U.Binding("visible","dir",(function(e){return e>=1})),new U.Binding("width","thickness",(function(e){return 7+3*e})),new U.Binding("height","thickness",(function(e){return 7+3*e})),new U.Binding("segmentOffset","thickness",(function(e){return new U.Point(-15,4+1.5*e)}))),e(U.Shape,{segmentIndex:0,segmentOffset:new U.Point(15,-6),segmentOrientation:U.Link.OrientMinus90,alignmentFocus:U.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new U.Binding("fill","color"),new U.Binding("visible","dir",(function(e){return 2===e})),new U.Binding("width","thickness",(function(e){return 7+3*e})),new U.Binding("height","thickness",(function(e){return 7+3*e})),new U.Binding("segmentOffset","thickness",(function(e){return new U.Point(-15,4+1.5*e)}))),e(U.TextBlock,{alignmentFocus:new U.Spot(0,1,-4,0),editable:!0},new U.Binding("text").makeTwoWay(),new U.Binding("stroke","color"))),o.current.linkTemplate.selectionAdornmentTemplate=e(U.Adornment,e(U.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:C(2)},new U.Binding("pathPattern","thickness",C)),b({alignmentFocus:new U.Spot(0,0,-6,-4)})),o.current.linkTemplate.contextMenu=e("ContextMenu",A(),B(),e("ContextMenuButton",e(U.Panel,"Horizontal",T(0),T(1),T(2))),e("ContextMenuButton",e(U.Panel,"Horizontal",e(U.Panel,"Spot",P(!1),E(U.Spot.Top,!1),E(U.Spot.Left,!1),E(U.Spot.Right,!1),E(U.Spot.Bottom,!1)),e(U.Panel,"Spot",{margin:new U.Margin(0,0,0,2)},P(!0),E(U.Spot.Top,!0),E(U.Spot.Left,!0),E(U.Spot.Right,!0),E(U.Spot.Bottom,!0))))),new U.Palette(a.current,{maxSelectionCount:1,linkTemplate:e(U.Link,{locationSpot:U.Spot.Center,selectionAdornmentTemplate:e(U.Adornment,"Link",{locationSpot:U.Spot.Center},e(U.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(U.Shape,{toArrow:"Standard",stroke:null}))},{routing:U.Link.AvoidsNodes,curve:U.Link.JumpOver,corner:5,toShortLength:4},new U.Binding("points"),e(U.Shape,{isPanelMain:!0,strokeWidth:2}),e(U.Shape,{toArrow:"Standard",stroke:null})),model:new U.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(z()(U.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(U.Node,"Auto",{locationSpot:U.Spot.Center},new U.Binding("location","location",U.Point.parse).makeTwoWay(U.Point.stringify),e(U.Shape,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new U.Binding("stroke").makeTwoWay(),new U.Binding("fill").makeTwoWay(),new U.Binding("figure")),e(U.TextBlock,{margin:new U.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new U.Size(16,16),maxSize:new U.Size(10,NaN),textAlign:"center",editable:!0},new U.Binding("key").makeTwoWay())),setTimeout((function(){o.current.grid=e(U.Panel,"Grid",e(U.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(U.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),o.current.grid.visible=!0,o.current.grid.gridCellStroke="darkgray",o.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=o.current,o.current},divClassName:"diagram-component",style:{height:"80vh"}}),(0,m.jsx)("div",{ref:i})]})]}),(0,m.jsx)("div",{className:"tr",children:(0,m.jsx)(A.ZP,{size:"large",onClick:h,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},te=n(5112),ne=n(97913),oe=te.ZP.Group,ie={margin:"0 8px"},ae=function(e){var t=e.callback,n=e.onCancel;return(0,m.jsxs)(_.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,m.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,m.jsx)("span",{style:ie,children:"单元格数:"}),(0,m.jsx)("span",{style:ie,children:"行数"}),(0,m.jsx)(_.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,m.jsx)(ne.Z,{})}),(0,m.jsx)("span",{style:ie,children:"列数"}),(0,m.jsx)(_.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,m.jsx)(ne.Z,{})})]}),(0,m.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,m.jsx)("span",{style:ie,children:"对齐方式:"}),(0,m.jsx)(_.Z.Item,{name:"align",children:(0,m.jsxs)(oe,{children:[(0,m.jsx)(te.ZP,{value:"default",children:(0,m.jsx)("i",{className:"fa fa-align-justify"})}),(0,m.jsx)(te.ZP,{value:"left",children:(0,m.jsx)("i",{className:"fa fa-align-left"})}),(0,m.jsx)(te.ZP,{value:"center",children:(0,m.jsx)("i",{className:"fa fa-align-center"})}),(0,m.jsx)(te.ZP,{value:"right",children:(0,m.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(A.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(A.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},re=n(78673),le=n(66455),se=n.n(le),ce=(0,c.forwardRef)((function(e,t){var n=e.use3d,o=e.width,i=e.height,a=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),d=(0,c.useState)(!1),u=r()(d,2),p=u[0],f=u[1],h=(0,c.useRef)({id:l,appName:"graphing",width:o||1e3,height:i||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(se())(h.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return a&&a(e),e};return(0,c.useEffect)((function(){h.current.appName=p?"3D":"graphing",s.current.inject("applet_container")}),[p]),(0,c.useEffect)((function(){f(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,m.jsxs)(D.Z,{align:"middle",children:[(0,m.jsx)(Q.Z,{flex:1,children:(0,m.jsx)(re.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:p,onChange:function(e){return f(e)}})}),(0,m.jsx)(Q.Z,{children:(0,m.jsx)(A.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),de=n(33773),ue=n(27065),pe="link",fe="upload-image",me="add-flowchart",he="draw-image",ge="code-block",ve="add-table",we="------------",xe={default:we,left:":".concat(we),center:":".concat(we,":"),right:"".concat(we,":")},be=n(56266);var ye="@▁▁@",_e=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function je(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var Ae=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Se=s()(s()({},Ae+"-B","bold"),Ae+"-I","italic"),ke=s()(s()(s()(s()(s()(s()(s()(s()({},pe,"添加链接"),ge,"添加代码块"),fe,"添加图片"),he,"添加画图"),me,"插入流程图"),ve,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),Be=function(e){var t=e.defaultValue,n=void 0===t?"":t,o=e.onChange,a=e.width,l=void 0===a?"100%":a,d=e.height,g=void 0===d?400:d,v=e.miniToolbar,w=void 0!==v&&v,x=e.isFocus,_=void 0!==x&&x,j=e.watch,A=e.insertTemp,S=e.mode,C=void 0===S?"markdown":S,T=e.id,P=void 0===T?"markdown-editor-id":T,E=e.showResizeBar,L=void 0!==E&&E,D=e.noStorage,G=void 0!==D&&D,R=e.showNullButton,H=void 0!==R&&R,Z=e.showNullProgramButton,I=void 0!==Z&&Z,W=e.hidetoolBar,z=void 0!==W&&W,U=e.fullScreen,V=void 0!==U&&U,q=e.onBlur,J=e.onCMBeforeChange,Q=e.onFullScreen,X=e.className,Y=void 0===X?"":X,$=e.disablePaste,te=void 0!==$&&$,ne=e.disabled,oe=void 0!==ne&&ne,ie=e.disabledFill,re=void 0!==ie&&ie,le=e.placeholder,se=void 0===le?"":le,we=e.values,Ae=void 0===we?"":we,Be=e.extraUse,Ne=(0,c.useState)(null),Ce=r()(Ne,2),Te=Ce[0],Pe=Ce[1],Ee=(0,c.useState)(n),Me=r()(Ee,2),Le=Me[0],Oe=Me[1],De=(0,c.useState)(j),Ge=r()(De,2),Fe=Ge[0],Re=Ge[1],He=(0,c.useState)(V),Ze=r()(He,2),Ie=Ze[0],We=Ze[1],ze=(0,c.useState)(""),Ue=r()(ze,2),Ve=Ue[0],qe=Ue[1],Je=(0,c.useState)(0),Ke=r()(Je,2),Qe=Ke[0],Xe=Ke[1],Ye=(0,c.useState)(g),$e=r()(Ye,2),et=$e[0],tt=$e[1],nt=(0,c.useState)(!1),ot=r()(nt,2),it=(ot[0],ot[1]),at=(0,c.useState)(0),rt=r()(at,2),lt=rt[0],st=rt[1],ct=(0,c.useState)(0),dt=r()(ct,2),ut=dt[0],pt=dt[1],ft=(0,c.useRef)(),mt=(0,c.useRef)(),ht=(0,c.useRef)(),gt=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Oe(Ae),null==Te||Te.setValue(Ae),window.scrollTo(0,e)}),[Ae]),(0,c.useEffect)((function(){null==Q||Q(Ie)}),[Ie]),(0,c.useEffect)((function(){if(ft.current){var e=function(e,n){if(!te){var o=n.clipboardData;if(o){var i=o.types.toString(),a=o.items;if("Files"===i||o.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==C)return;try{var r,l=a[1];"file"===(null===(r=a[0])||void 0===r?void 0:r.kind)&&(l=a[0]);var s=l.getAsFile(),c=s.name.split(".").pop();O(s,(function(e){var n,o,i;e.id?(null==s||null===(n=s.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection(".concat(e.content_type,")")):(null==s||null===(o=s.type)||void 0===o?void 0:o.indexOf("video"))>-1?t.replaceSelection('<video width="100%" controls src="'.concat(ue.Z.API_SERVER,"/api/attachments/").concat(e.id,'"></video>')):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("pdf"))>-1?t.replaceSelection('<a href="'.concat(ue.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(s.type,'&disposition=inline" target="_blank">').concat(s.name,"</a>")):_e.includes(c)?t.replaceSelection('<a href="'.concat(ue.Z.API_SERVER,"/api/attachments/").concat(e.id,'?type=office&disposition=inline" target="_blank">').concat(s.name,"</a>")):t.replaceSelection("[".concat(s.name,"](").concat(ue.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){N.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=u().fromTextArea(ft.current,{mode:C,lineNumbers:!w,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",se):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),o=n.getCursor(),i=n.getLine(o.line),a=i.charAt(o.ch-1),r=i.lastIndexOf("@▁@",o.ch),l=i.lastIndexOf("@▁▁@",o.ch),s=r>l?r:l,c=r>l?3:4;if(-1===ye.indexOf(a))return null;if(console.log("change1:",t,e,i,o,s,r,l,a),s>=0&&o.ch-s<5){var d=s+c;return n.replaceRange("",{line:o.line,ch:s},{line:o.line,ch:d}),{line:o.line,ch:d}}return null}(e);n&&t.preventDefault()}})),_&&t.focus(),t.on("paste",e),oe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Pe(t),function(){t.off("paste",e)}}}),[]);var vt=(0,c.useCallback)((function(){mt.current}),[et,mt,Ie]);(0,c.useEffect)((function(){if(Te){var e=function(){var e=new p.Z((function(e){var t,n=i()(e);try{for(n.s();!(t=n.n()).done;){var o=t.value;(o.target.offsetHeight>0||o.target.offsetWidth>0)&&(vt(),Te.setSize("100%","100%"),Te.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(ft.current.parentElement),e}();return function(){var t,n;null!==(t=ft.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=ft.current)||void 0===n?void 0:n.parentElement)}}}),[Te,vt]),(0,c.useEffect)((function(){if(Te){for(var e=[],t=function(){var t=r()(o[n],2),i=t[0],a=t[1],l=s()({},i,(function(){wt(a)}));e.push(l),Te.addKeyMap(l)},n=0,o=Object.entries(Se);n<o.length;n++)t();return function(){for(var t=0,n=e;t<n.length;t++){var o=n[t];Te.removeKeyMap(o)}}}}),[Te]),(0,c.useEffect)((function(){V!==Ie&&We(V)}),[V]),(0,be.Z)((function(){if(!G&&Qe>0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(P);e>=Qe+1e4&&(!t||t!==Le)&&(window.sessionStorage.setItem(P,Le),it(!0))}}),1e4),(0,c.useEffect)((function(){Re(j)}),[Te,j]),(0,c.useEffect)((function(){Te&&_&&Te.focus()}),[Te,_]),(0,c.useEffect)((function(){if(Fe&&Te){var e=function(e){var t=e.target;if(gt.current){var n=t.scrollTop/t.scrollHeight;gt.current.scrollTop=gt.current.scrollHeight*n}},t=Te.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Te,Fe]),(0,c.useEffect)((function(){if(Te&&J){var e=function(e,t){J(e,t)};return Te.on("beforeChange",e),function(){Te.off("beforeChange",e)}}}),[Te,J]),(0,c.useEffect)((function(){if(Te&&q){var e=function(){q(Te.getValue())};return Te.on("blur",e),function(){Te.off("blur",e)}}}),[Te,q]),(0,c.useEffect)((function(){if(Te){var e=function(e,t){var n=e.getValue();Oe(n),Xe((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),o&&(I?o(n,jt(n)):o(n))};return Te.on("change",e),function(){Te.off("change",e)}}}),[Te,o]),(0,c.useEffect)((function(){if(Te)if(null==n)Te.setValue(""),Oe("");else{var e=window.scrollY||window.pageYOffset;n!==Te.getValue()&&(Te.setValue(n),Oe(n),Te.setCursor(oe?1:Te.lineCount(),0),window.scrollTo(0,e))}}),[Te,n]);var wt=(0,c.useCallback)((function(e){var t=Te.getCursor(),n=Te.getSelection(),o=n.split("\n");switch(e){case"bold":return Te.replaceSelection("**"+n+"**"),""===n&&Te.setCursor(t.line,t.ch+2),Te.focus();case"italic":return Te.replaceSelection("*"+n+"*"),""===n&&Te.setCursor(t.line,t.ch+1),Te.focus();case"code":return Te.replaceSelection("`"+n+"`"),""===n&&Te.setCursor(t.line,t.ch+1),Te.focus();case"inline-latex":return qe("inline-latex"),Te.focus();case"latex":return Te.replaceSelection("```latex\n"+n+"\n```"),Te.setCursor(t.line+1,n.length+1),Te.focus();case"line-break":return Te.replaceSelection("<br/>\n"),Te.focus();case"list-ul":return""===n?Te.replaceSelection("- "+n):Te.replaceSelection(o.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Te.focus();case"list-ol":return""===n?Te.replaceSelection("1. "+n):Te.replaceSelection(o.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Te.focus();case"add-null-ch":return""===n&&Te.setCursor(t.line,t.ch),Te.replaceSelection("▁"),Te.focus();case"add-signal":return""===n&&Te.setCursor(t.line,t.ch),Te.replaceSelection("@▁@"),Te.focus();case"add-multiple":return""===n&&Te.setCursor(t.line,t.ch),Te.replaceSelection(ye),Te.focus();case"inster-template-1":return""===n&&Te.setCursor(t.line,t.ch),Te.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Te.focus();case"eraser":return Te.setValue(""),Te.focus();case"trigger-watch":return Re(!Fe),Te.focus();case"trigger-full-screen":return We(!Ie),Te.focus();case pe:return void qe(pe);case ge:return void qe(ge);case fe:return void qe(fe);case he:return void qe(he);case"maths-latex":return void qe("maths-latex");case me:return void qe(me);case ve:return void qe(ve);default:throw new Error}}),[Te,Fe,Ie]),xt=(0,c.useCallback)((function(e,t){var n,o,i,a,r;switch(qe(""),Ve){case pe:var l=e.title,s=e.link;return Te.replaceSelection("[".concat(l,"](").concat(s,")")),Te.focus();case ge:var c=e.language,d=e.content;return Te.replaceSelection(["```"+c,d,"```"].join("\n")),Te.focus();case"maths-latex":for(var u=atob(e),p=new Uint8Array(u.length),f=0;f<u.length;f++)p[f]=u.charCodeAt(f);O(new Blob([p],{type:"image/png"}),(function(e){e.id?Te.replaceSelection(".concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}));break;case"inline-latex":Te.replaceSelection("`$$"+e+"$$`");break;case fe:case he:case"add-flowchart":var m=e.src,h=e.alt,g=t,v=null==g||null===(n=g.name)||void 0===n||null===(n=n.split("."))||void 0===n||null===(o=n.pop)||void 0===o?void 0:o.call(n);return(null==g||null===(i=g.type)||void 0===i?void 0:i.indexOf("image"))>-1||null==g||!g.type?h?Te.replaceSelection(".concat(m,' "').concat(h,'" )')):Te.replaceSelection("")):(null==g||null===(a=g.type)||void 0===a?void 0:a.indexOf("video"))>-1?Te.replaceSelection('<video width="100%" controls src="'.concat(ue.Z.API_SERVER).concat(m,'"></video>')):(null==g||null===(r=g.type)||void 0===r?void 0:r.indexOf("pdf"))>-1?Te.replaceSelection('<a href="'.concat(ue.Z.API_SERVER).concat(m,"?type=").concat(g.type,'&disposition=inline" target="_blank">').concat(g.name,"</a>")):_e.includes(v)?Te.replaceSelection('<a href="'.concat(ue.Z.API_SERVER).concat(m,'?type=office&disposition=inline" target="_blank">').concat(g.name,"</a>")):Te.replaceSelection("[".concat(g.name,"](").concat(ue.Z.API_SERVER).concat(m,")")),Te.focus();case ve:for(var w=e.row,x=e.col,b=e.align,y="\n",_=0;_<w;_++){for(var j=[],A=[],S=0;S<x;S++)1===_&&A.push(xe[b]),j.push(" ");1===_&&(y+="| ".concat(A.join(" | ")," |\n")),y+="| ".concat(j.join(1===x?"":" | ")," |\n")}return Te.replaceSelection(y+"\n"),Te.focus();default:throw new Error}}),[Te,Ve]),bt=(0,c.useMemo)((function(){switch(Ve){case pe:return(0,m.jsx)(k,{callback:xt,onCancel:yt});case ge:return(0,m.jsx)(B.Z,{callback:xt,onCancel:yt});case fe:return(0,m.jsx)(M,{callback:xt,onCancel:yt});case me:return(0,m.jsx)(ee,{callback:xt,onCancel:yt});case ve:return(0,m.jsx)(ae,{callback:xt,onCancel:yt});case"maths-latex":return(0,m.jsx)(ce,{showSaveButton:!0,callback:xt});case"inline-latex":return(0,m.jsx)(de.Z,{showSaveButton:!0,callback:xt});default:return null}}),[Ve]);function yt(){qe("")}(0,c.useEffect)((function(){if(ht.current){var e=function(e){i=!0,a=e.pageY},t=function(){i=!1},n=function(e){if(i){var t=e.pageY-a;t<0&&(t=0),t>300&&(t=300),tt(g+t+"px")}},o=ht.current,i=!1,a=0;return o.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){o.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Te,ht]),(0,c.useEffect)((function(){tt(g)}),[g]);var _t={width:je(l),height:je(et)},jt=((0,c.useMemo)((function(){if(Qe){var e=new Date(Qe),t=e.getHours(),n=e.getMinutes(),o=e.getSeconds();return n=n<10?"0"+n:n,o=o<10?"0"+o:o,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(o)}return 0}),[Qe]),function(e){var t=[];if(I){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,o){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){if(ke[Ve]&&Ve!==he&&Ve!==me){var e=document.getElementsByClassName("ant-modal")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;st(t),pt(n)}}),[Ve]);var At=function(e,t,n,o){var i=document.body.clientHeight,a=document.body.clientWidth;return!(e<20&&n>e||e>a-20&&n<e||t<20&&o>t||t>i-20&&o<t)||(document.body.onmousemove=null,document.body.onmouseup=null,!1)};return(0,m.jsxs)(c.Fragment,{children:[(0,m.jsx)("div",{className:"markdown-editor-wrapper",ref:mt,children:(0,m.jsxs)("div",{className:"markdown-editor-container ".concat(Y," ").concat(Fe?"on-preview":""," ").concat(w?"mini":""," ").concat(Ie?"full-screen":""),style:_t,children:[(0,m.jsx)(b,{insertTemp:A,watch:Fe,fullScreen:Ie,showNullButton:H,showNullProgramButton:I,onActionCallback:wt,hidetoolBar:z,extraUse:Be}),(0,m.jsxs)("div",{className:"markdown-editor-body",children:[(0,m.jsx)("div",{className:"codemirror-container",children:(0,m.jsx)("textarea",{ref:ft,placeholder:se})}),Fe?(0,m.jsxs)("div",{ref:gt,className:"preview-container",children:["stex"===C&&(0,m.jsx)(h,{value:Le}),"stex"!==C&&(0,m.jsx)(f.Z,{disabledFill:re,showProgramFill:I,value:Le})]}):null]})]})}),L?(0,m.jsx)("a",{ref:ht,className:"editor-resize"}):null,Ve===he&&(0,m.jsx)(F,{callback:xt,onCancel:yt}),Ve===me&&(0,m.jsx)(ee,{callback:xt,onCancel:yt}),(0,m.jsx)(y.Z,{children:ke[Ve]&&Ve!==he&&Ve!==me?(0,m.jsx)(K.Z,{maskClosable:!1,centered:!0,style:{position:"absolute",left:lt,top:ut},title:(0,m.jsx)("div",{style:{cursor:"move"},onMouseDown:function(e){e.preventDefault();var t=e.clientX-lt,n=e.clientY-ut;document.body.onmousemove=function(e){var o=e.clientX-t,i=e.clientY-n,a=document.getElementsByClassName("ant-modal")[0],r=window.innerWidth-a.offsetWidth,l=window.innerHeight-a.offsetHeight;o=Math.max(0,Math.min(o,r)),i=Math.max(0,Math.min(i,l)),At(e.clientX,e.clientY,t,n)&&(st(o),pt(i))},document.body.onmouseup=function(){document.body.onmousemove=null}},children:ke[Ve]}),open:!0,onCancel:yt,footer:null,destroyOnClose:!0,width:Ve===me?"1200px":null,height:Ve===me?"80vh":null,className:"markdown-popup-form",children:bt}):null})]})}},27308:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var o=n(82100),i=n.n(o),a=n(29186),r=n.n(a),l=n(80619),s=n.n(l),c=n(47074),d=n.n(c),u=n(59301),p=n(4676),f=function(e){s()(n,e);var t=d()(n);function n(e){var o;i()(this,n),o=t.call(this,e);var a=window.document;return o.node=a.createElement("div"),a.body.appendChild(o.node),o}return r()(n,[{key:"render",value:function(){var e=this.props.children;return(0,p.createPortal)(e,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),n}(u.Component)},90963:function(e,t,n){"use strict";n.d(t,{jL:function(){return s},w9:function(){return xe},QD:function(){return $e},cQ:function(){return ve},op:function(){return Ve},O5:function(){return st},_b:function(){return it},t7:function(){return O},Gi:function(){return je},YG:function(){return _e},qp:function(){return A},vr:function(){return tt},qE:function(){return Ke},Je:function(){return F},wb:function(){return ae},cq:function(){return Le},tp:function(){return B}});var o=n(59301),i="banner___PoUBO",a="content___XoDjy",r="btns___Pb35j",l=n(37712),s=function(e){var t=e.dataSource,n=void 0===t?[]:t,o=e.img,s=e.imgWidth,c=void 0===s?346:s,d=e.title,u=e.sunTitle,p=e.bannerExtraContent;return(0,l.jsx)("div",{className:i,children:(0,l.jsxs)("div",{className:a,children:[(0,l.jsxs)("aside",{children:[(0,l.jsxs)("p",{children:[(0,l.jsx)("b",{children:d}),(0,l.jsx)("span",{children:u})]}),n.length>0&&(0,l.jsx)("div",{className:r,children:n.map((function(e,t){return(0,l.jsxs)("div",{onClick:e.click,children:[e.name,e.sign?(0,l.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgU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28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",width:39}):null]},t)}))}),p]}),o&&(0,l.jsx)("img",{style:{marginTop:33,marginRight:38},src:o,width:c})]})})},c=n(79800),d=n.n(c),u="row___aXJjm",p="title___HUKL0",f="tagsWrap___XB2W3",m="action___VdHb1",h="bar___t1kKC",g="tag___V7Eft",v="name___Hk1Ip",w="num___xQpcH",x="active___XryTX",b="tagsBorderWrap___OMxjs",y=n(92310),_=n.n(y),j=n(89392),A=function(e){var t=e.dataSource,n=void 0===t?[]:t,i=e.value,a=e.onChange,r=e.onTitleChange,s=e.className,c=e.title,y=e.titleWidth,A=void 0===y?41:y,S=e.style,k=void 0===S?{}:S,B=e.fontColor,N=void 0===B?"#6A7283":B,C=e.showCount,T=(0,o.useState)(0),P=d()(T,2),E=P[0],M=P[1],L=(0,o.useState)(!1),O=d()(L,2),D=O[0],G=O[1],F=(0,o.useRef)(null),R=(0,o.useRef)(null);return(0,o.useEffect)((function(){var e;0!==n.length&&((null==F||null===(e=F.current)||void 0===e?void 0:e.clientHeight)>97?M(1):M(0));0===n.length&&M(0),G(!1)}),[n]),(0,l.jsxs)("div",{className:_()(u,s),style:k,children:[(0,l.jsx)("div",{onClick:(0,j.throttle)((function(){return null==r?void 0:r()}),2e3),style:{width:A,marginTop:D?12:4},className:"".concat(p," ").concat(r?"current":""),children:c}),(0,l.jsxs)("div",{className:D?"".concat(f," ").concat(b):f,children:[(0,l.jsx)("div",{className:h,ref:R,style:E>0?{height:1===E?97:"auto",overflow:1===E?"hidden":"auto",paddingRight:55}:{paddingRight:0},children:(0,l.jsx)("div",{className:g,ref:F,children:null==n?void 0:n.map((function(e){return(0,l.jsxs)("span",{onClick:function(){return a(e.id)},style:{color:N},className:i===e.id?x:"",children:[(0,l.jsx)("span",{title:e.name,className:v,children:e.name}),!!C&&(0,l.jsx)("span",{className:w,children:e.count})]},e.id)}))})}),!!E&&(0,l.jsx)(o.Fragment,{children:1===E?(0,l.jsxs)("div",{onClick:function(){var e;M(2),(null==F||null===(e=F.current)||void 0===e?void 0:e.clientHeight)>245?G(!0):G(!1)},className:m,children:["展开",(0,l.jsx)("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})]}):(0,l.jsxs)("div",{onClick:function(){R.current.scrollTop=0,M(1),G(!1)},className:m,children:["收起",(0,l.jsx)("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})]})})]})]})},S="tabs___GTqPV",k="active___F26E8",B=function(e){var t=e.dataSource,n=void 0===t?[]:t,o=e.value,i=e.onChange,a=e.className,r=e.style,s=void 0===r?{}:r;return(0,l.jsx)("div",{style:s,className:_()(S,a),children:n.map((function(e){return(0,l.jsx)("span",{onClick:function(){return i(e.id)},className:o===e.id?k:"",children:e.name},e.id)}))})},N="input___PW2zI",C="dropdown___vSy8B",T="menu___NiyBu",P="text___Grueu",E="b1___ZKryM",M="b2___aKyGa",L=n(8772),O=function(e){var t,n=e.dataSource,i=void 0===n?[]:n,a=e.value,r=void 0===a?"":a,s=e.onChange,c=e.onInputChange,u=void 0===c?function(){}:c,p=e.className,f=e.style,m=void 0===f?{}:f,h=e.placeholder,g=(e.allowClear,(0,o.useState)("")),v=d()(g,2),w=v[0],x=v[1],b=(0,o.useState)(""),y=d()(b,2),j=y[0],A=y[1];(0,o.useEffect)((function(){var e,t=r;null!==(e=JSON.stringify(r))&&void 0!==e&&e.includes("{")&&(x(r.id),t=r.value||"");try{A(decodeURIComponent(t||""))}catch(e){A(decodeURIComponent(t||""))}}),[r]);var S=function(){s(encodeURIComponent(j),w||null)};return(0,l.jsxs)("div",{className:_()(N,p),style:m,children:[!!i.length&&(0,l.jsxs)("div",{className:C,children:[(0,l.jsxs)("div",{className:P,children:[null===(t=i.find((function(e){return e.id===w})))||void 0===t?void 0:t.name,(0,l.jsx)("i",{className:"iconfont icon-zhankai4"}),(0,l.jsx)("b",{className:E}),(0,l.jsx)("b",{className:M})]}),(0,l.jsx)("div",{className:T,children:i.map((function(e,t){return(0,l.jsx)("div",{onClick:function(){var t;(t=e.id)!==w&&(x(t),s(encodeURIComponent(j),t))},children:e.name},t)}))})]}),(0,l.jsx)(L.Z,{onPressEnter:S,value:j,onChange:function(e){A(e.target.value),u(encodeURIComponent(e.target.value),w||null)},bordered:!1,placeholder:h}),(0,l.jsx)("i",{onClick:S,className:"iconfont icon-sousuo9 font14 pl10 current"})]})},D="quickPager___GM30J",G="disabled___Ozc8I",F=function(e){var t=e.value,n=e.onChange,o=e.className,i=e.total,a=e.pageSize,r=e.style,s=void 0===r?{}:r,c=t<2,d=t>=Math.ceil(i/a);return i<=a?(0,l.jsx)(l.Fragment,{}):(0,l.jsxs)("div",{className:_()(D,o),style:s,children:[(0,l.jsx)("div",{onClick:function(){c||n(t-1,"prev")},className:c?G:"",children:"上一页"}),(0,l.jsx)("div",{onClick:function(){d||n(t+1,"next")},className:d?G:"",children:"下一页"})]})},R="list___oOsiS",H="wrap___G6T7F",Z="lockWrap___Rl79E",I="li___oZZ7l",W="cover___b2bYW",z="img___IQX7w",U="sign___HkT6C",V="name___SsJx8",q="e___TMqq0",J="tags___bcjyo",K="rate___YACg7",Q=n(71418),X=n(6848),Y=n(41750),$=n(27065),ee=n(6457),te=n(96908),ne=n(57177),oe=n(81378),ie=n(7406),ae=function(e){var t=e.className,n=e.dataSource,o=void 0===n?[]:n,i=e.col,a=void 0===i?4:i,r=e.right,s=e.bottom,c=void 0===s?23:s,d=e.precision,u=void 0===d?0:d,p=e.wrapWidth,f=void 0===p?1200:p,m=e.trackEventItems,h=e.loading,g=Math.floor((f-(a-1)*r)/a);return(0,l.jsx)(Q.Z,{spinning:h,children:(0,l.jsxs)("div",{className:_()(R,t),children:[!!o.length&&o.map((function(e,t){var n=e.name,o=e.id,i=e.identifier,s=e.power,d=(e.cover_image_id,e.pic);return(0,l.jsxs)("div",{className:H,style:{width:g,marginRight:(1+t)%a==0?0:r+u,marginBottom:c},children:[(0,l.jsxs)("a",{target:"_blank",href:"/shixuns/".concat(i,"/challenges"),className:I,onClick:function(e){e.preventDefault(),m&&(0,ee.L9)([m]),s&&(0,ee.xg)("/shixuns/".concat(i,"/challenges"))},children:[(0,l.jsxs)("div",{className:z,children:[(0,l.jsx)("img",{className:W,src:"".concat(d)}),e.is_jupyter&&(0,l.jsx)("img",{className:U,src:te}),e.is_jupyter_lab&&(0,l.jsx)("img",{className:U,src:ne}),e.is_unity_3d&&(0,l.jsx)("img",{className:U,src:oe})]}),(0,l.jsx)("div",{className:V,children:(0,l.jsx)(X.Z,{title:n||"实践项目名称-未填写",children:(0,l.jsx)("span",{className:q,children:n||"实践项目名称-未填写"})})}),(0,l.jsxs)("div",{className:J,children:[(0,l.jsx)(X.Z,{placement:"bottom",title:"关卡数",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),(0,l.jsx)("span",{children:e.challenges_count})]})}),!!e.myshixuns_count&&(0,l.jsx)(X.Z,{placement:"bottom",title:"学习人数",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-chengyuan font14 mr2"}),(0,l.jsx)("span",{children:e.myshixuns_count})]})}),(0,l.jsx)(X.Z,{placement:"bottom",title:"难度等级",children:(0,l.jsx)("span",{children:(0,l.jsx)("span",{children:e.level})})}),(0,l.jsxs)("div",{className:K,children:[(0,l.jsx)(Y.Z,{allowHalf:!0,disabled:!0,defaultValue:e.score_info}),(0,l.jsxs)("span",{children:[" ",e.score_info?"".concat(e.score_info,"分"):"5分"]})]})]})]}),!s&&(0,l.jsxs)("div",{className:Z,children:[(0,l.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,l.jsx)("span",{className:"mt15 font16 c-white",children:"定向开放内容,需要授权"})]})]},o)})),!o.length&&(0,l.jsx)(ie.Z,{})]})})},re="list___jb2Ay",le="wrap___VsQDr",se="li___IxCLC",ce="cover___Mu8wr",de="img___IpFLA",ue="bq___Bil0T",pe="sign___DXJ4d",fe="name___l7FoJ",me="e___pXQUG",he="unit___wCIFR",ge="tags___w_Mil",ve=function(e){var t=e.className,n=e.dataSource,o=void 0===n?[]:n,i=e.col,a=void 0===i?4:i,r=e.right,s=e.bottom,c=void 0===s?23:s,d=e.precision,u=void 0===d?0:d,p=e.wrapWidth,f=void 0===p?1200:p,m=e.trackEventItems,h=e.loading,g=Math.floor((f-(a-1)*r)/a),v=[{name:"推荐自学",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101计划",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"国家一流",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"省级一流",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"精品课程",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"军队一流",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"}];return(0,l.jsx)(Q.Z,{spinning:h,children:(0,l.jsxs)("div",{className:_()(re,t),children:[!(null==o||!o.length)&&(null==o?void 0:o.map((function(e,t){var n,o=e.name,i=e.id,s=e.identifier,d=(e.featured,e.school_name),p=e.image_url;e.excellent,e.is_plan;return(0,l.jsx)("div",{className:le,style:{width:g,marginRight:(1+t)%a==0?0:r+u,marginBottom:c},children:(0,l.jsxs)("a",{target:"_blank",href:"/paths/".concat(s),className:se,onClick:function(e){e.preventDefault(),m&&(0,ee.L9)([m]),(0,ee.xg)("/paths/".concat(s))},children:[(0,l.jsxs)("div",{className:de,children:[(0,l.jsx)("img",{className:ce,src:"".concat(p)}),null==e||null===(n=e.subject_tags)||void 0===n?void 0:n.map((function(e,t){var n;if(0===t){var o,i=null===(o=v.find((function(t){return t.name==e})))||void 0===o?void 0:o.swimg;return(0,l.jsx)("img",{className:pe,src:i,style:{left:"-4px"}})}var a=null===(n=v.find((function(t){return t.name==e})))||void 0===n?void 0:n.ptimg;return(0,l.jsx)("img",{className:pe,src:a,style:{left:"".concat(48+52*(t-1)+2*t,"px")}})})),(0,l.jsx)("div",{style:{position:"absolute",top:"150px",left:"4px"},children:(null==e?void 0:e.excellent)&&(0,l.jsx)("div",{className:ue,children:"开放课程"})})]}),(0,l.jsx)("div",{className:fe,children:(0,l.jsx)(X.Z,{title:o,children:(0,l.jsx)("span",{className:me,children:o})})}),(0,l.jsx)(X.Z,{title:"发布单位:".concat(d),children:(0,l.jsxs)("div",{className:he,children:[(0,l.jsx)("i",{className:"iconfont icon-danwei1 font14 mr3"}),d]})}),(0,l.jsx)("div",{className:ge,children:(0,l.jsxs)("div",{children:[(0,l.jsx)(X.Z,{placement:"bottom",title:"章节数",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),(0,l.jsx)("span",{children:e.stages_count})]})}),(0,l.jsx)(X.Z,{placement:"bottom",title:"学习人数",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-chengyuan font14 mr3"}),(0,l.jsx)("span",{children:e.members_count})]})})]})})]})},i)}))),!o.length&&(0,l.jsx)(ie.Z,{})]})})},we={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},xe=function(e){var t=e.className,n=e.dataSource,o=void 0===n?[]:n,i=e.col,a=void 0===i?4:i,r=e.right,s=e.bottom,c=void 0===s?23:s,d=e.precision,u=void 0===d?0:d,p=e.wrapWidth,f=void 0===p?1200:p,m=e.trackEventItems,h=e.loading,g=Math.floor((f-(a-1)*r)/a);return(0,l.jsx)(Q.Z,{spinning:h,children:(0,l.jsxs)("div",{className:_()(we.list,t),children:[!!o.length&&o.map((function(e,t){var n=e.subject_identifier,o=e.id,i=(e.identifier,e.power,0!=e.is_public&&e.is_public);return(0,l.jsxs)("div",{className:we.wrap,style:{width:g,marginRight:(1+t)%a==0?0:r+u,marginBottom:c},children:[(0,l.jsxs)("a",{className:we.li,onClick:function(t){t.preventDefault(),m&&(0,ee.L9)([m]),(0,ee.xg)(e.first_category_url)},children:[(0,l.jsxs)("div",{className:we.top,children:[(0,l.jsx)(X.Z,{title:e.name,children:(0,l.jsx)("div",{className:we.name,children:e.name})}),(0,l.jsx)("img",{className:we.img,src:$.Z.IMG_SERVER+"/images/"+e.avatar_url}),(0,l.jsx)("div",{className:we.text,title:e.creator,children:e.creator}),n&&(0,l.jsxs)("div",{className:we.btns,children:[(0,l.jsx)("div",{children:"开放课程"}),(0,l.jsx)("aside",{children:"开放课堂"})]}),i&&(0,l.jsx)("div",{className:we.sign,children:"公开"})]}),(0,l.jsxs)("div",{className:we.bottom,children:[e.visits>0&&(0,l.jsx)(X.Z,{title:"访问量",placement:"bottom",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-liulanyan"}),(0,l.jsx)("span",{children:e.visits})]})}),e.course_members_count>0&&(0,l.jsx)(X.Z,{title:"成员",placement:"bottom",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-chengyuan"}),e.course_members_count]})}),e.tasks_count>0&&(0,l.jsx)(X.Z,{title:"作业",placement:"bottom",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-zuoye"}),e.tasks_count]})}),e.is_end?(0,l.jsx)("div",{style:{color:"#6B758B"},children:"已结束"}):(0,l.jsx)("div",{style:{color:"#00B187"},children:"进行中"})]})]}),!e.is_accessible&&(0,l.jsxs)("div",{className:we.lockWrap,children:[(0,l.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,l.jsx)("span",{className:"mt15 font16 c-white",children:"非课堂成员不可进入"})]})]},o)})),!o.length&&(0,l.jsx)(ie.Z,{})]})})},be={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},ye=n(7880),_e=function(e){var t=e.dataSource,n=void 0===t?[]:t,o=e.value,i=e.onChange,a=e.className,r=e.style,s=void 0===r?{}:r,c=e.tabBarExtraContent;return(0,l.jsxs)("div",{className:_()(be.tabs,a),style:s,children:[(0,l.jsx)("div",{className:be.tabsWrap,children:n.map((function(e,t){return(0,l.jsxs)("aside",{className:be.tab,onClick:function(){i(e.id),e.link&&ye.history.push(e.link)},children:[(0,l.jsx)("div",{className:o===e.id?be.active:"",children:e.name}),null==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,l.jsxs)("span",{children:["(",null==e?void 0:e.total,")"]}),void 0!==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,l.jsx)(X.Z,{title:null!=(null==e?void 0:e.tip)?null==e?void 0:e.tip:"",children:(0,l.jsxs)("span",{style:{color:"#9096A3"},children:["(",(0,l.jsx)("span",{style:{color:"#000"},children:null==e?void 0:e.resetCount}),"/",(0,l.jsx)("span",{children:null==e?void 0:e.total}),")"]})})]},t)}))}),(0,l.jsx)("div",{className:be.tabBar,children:c})]})},je=function(e){var t=e.className,n=e.style,o=void 0===n?{}:n,i=e.children;return(0,l.jsx)("div",{className:_()(t),style:o,children:i})},Ae="orderWrap___ZfyGX",Se="orderIconWrap___XTB_O",ke="orderAsc___KWHmA",Be="orderDesc___rHdbB",Ne="active___a7eSP",Ce="cursorPointer___gs9kL",Te="orderTextWrap___teAKn",Pe=n(38854),Ee=n(20834),Me=[{id:"updated_at",name:"最新动态"},{id:"created_at",name:"最新创建"},{id:"name",name:"名称排序"}],Le=function(e){var t,n=e.sortValue,o=e.dropValue,i=e.className,a=e.onSort,r=e.onDrop,s=e.dataSource,c=void 0===s?Me:s;return(0,l.jsxs)("div",{className:_()(Ae,i),children:[(0,l.jsx)(Pe.Z,{dropdownRender:function(){return(0,l.jsx)(Ee.Z,{children:c.map((function(e,t){return(0,l.jsx)(Ee.Z.Item,{onClick:function(){return r(e.id)},children:e.name},t)}))})},children:(0,l.jsx)("span",{className:Te,children:null===(t=c.find((function(e){return o===e.id})))||void 0===t?void 0:t.name})}),(0,l.jsxs)("span",{className:Se,children:[(0,l.jsx)("span",{className:ke,children:(0,l.jsx)("i",{className:"asc"===n?"iconfont icon-sanjiaoxing-up font12 ".concat(Ce," ").concat(Ne):"iconfont icon-sanjiaoxing-up font12 ".concat(Ce),onClick:function(){return a("asc"===n?"desc":"asc")}})}),(0,l.jsx)("span",{className:Be,children:(0,l.jsx)("i",{className:"desc"===n?"iconfont icon-sanjiaoxing-down font12 ".concat(Ce," ").concat(Ne):"iconfont icon-sanjiaoxing-down font12 ".concat(Ce),onClick:function(){return a("asc"===n?"desc":"asc")}})})]})]})},Oe=n(82242),De=n.n(Oe),Ge=n(7557),Fe=n.n(Ge),Re=n(41498),He=n.n(Re),Ze=n(39647),Ie=n.n(Ze),We={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},ze=n(3113),Ue=["className","style","children","loading","openLoading","onClick","size","shape"],Ve=function(e){var t=e.className,n=e.style,i=e.children,a=e.loading,r=void 0!==a&&a,s=e.openLoading,c=e.onClick,u=void 0===c?function(){}:c,p=e.size,f=void 0===p?"middle":p,m=e.shape,h=void 0===m?"round":m,g=Ie()(e,Ue),v=(0,o.useState)(!1),w=d()(v,2),x=w[0],b=w[1];return(0,l.jsx)(ze.ZP,De()(De()({onClick:(0,j.throttle)(function(){var e=He()(Fe()().mark((function e(t){return Fe()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s&&b(!0),e.prev=1,e.next=4,u(t);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),console.log("error",e.t0);case 9:s&&b(!1);case 10:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(t){return e.apply(this,arguments)}}(),2e3,{leading:!0,trailing:!1}),className:_()(We.btn,We["".concat(f,"-").concat(h)],t),style:n,size:f,shape:h,loading:x||r},g),{},{children:i}))},qe="head___ghH72",Je="node___mjPEy",Ke=function(e){var t=e.className,n=e.style,o=e.children,i=void 0===o?null:o,a=e.onClick,r=e.title;return(0,l.jsxs)("div",{className:_()(qe,t),style:n,children:[(0,l.jsxs)("span",{className:"primary-hover",onClick:a,children:[(0,l.jsx)("i",{className:"iconfont icon-fanhui2 font12"}),"返回"]}),(0,l.jsx)("b",{title:r,children:r}),(0,l.jsx)("div",{className:Je,children:i})]})},Qe="btns___sNgTb",Xe="confirm___Ozirl",Ye="cancel___aiq1I",$e=function(e){var t=e.confirmShow,n=void 0===t||t,o=e.confirmTitle,i=e.confirmClick,a=e.cancelShow,r=void 0===a||a,s=e.cancelTitle,c=e.cancelClick,d=e.className,u=e.style,p=e.confirmLoading,f=void 0!==p&&p;return(0,l.jsxs)("div",{className:_()(Qe,d),style:u,children:[n&&(0,l.jsx)(ze.ZP,{loading:f,onClick:i,type:"primary",className:Xe,children:o}),r&&(0,l.jsx)(ze.ZP,{onClick:c,className:Ye,children:s})]})},et={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},tt=function(e){var t=e.className,n=e.style,o=void 0===n?{}:n,i=e.LeftContent,a=e.children,r=e.RightContent;return(0,l.jsx)("div",{className:_()(et.fixedBottom,t),style:o,children:(0,l.jsxs)("div",{className:et.wrap,children:[(0,l.jsx)("div",{className:et.left,children:i}),(0,l.jsx)("div",{className:et.center,children:a}),(0,l.jsx)("div",{className:et.right,children:r})]})})},nt="crumbs___V41Oe",ot="hover___bEIVd",it=function(e){var t=e.className,n=e.style,i=void 0===n?{}:n,a=e.dataSource,r=void 0===a?[]:a;return(0,l.jsx)("div",{className:_()(nt,t),style:i,children:r.map((function(e,t){return t<r.length-1?(0,l.jsxs)(o.Fragment,{children:[e.path?(0,l.jsx)("span",{className:ot,onClick:function(){return ye.history.push(e.path)},children:e.name}):(0,l.jsx)("span",{children:e.name}),(0,l.jsxs)("span",{children:[" ",">"," "]})]},t):(0,l.jsx)("span",{style:{color:"#5F6368"},children:e.name},t)}))})},at=n(31797),rt=["onChange"],lt=at.Z.Countdown,st=function(e){var t=e.onChange,n=Ie()(e,rt),i=(0,o.useState)(null),a=d()(i,2),r=a[0],s=a[1];(0,o.useEffect)((function(){"number"==typeof r&&r>=0&&t(r)}),[r]);return(0,l.jsx)(lt,De()(De()({},n),{},{onChange:function(e){var t=Math.floor(e/1e3);s(t)}}))}},56266:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(59301);function i(e,t){var n=(0,o.useRef)();(0,o.useEffect)((function(){n.current=e})),(0,o.useEffect)((function(){if(null!==t){var e=setInterval((function(){n.current()}),t);return function(){return clearInterval(e)}}}),[t])}},82636:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return I}});var o=n(7557),i=n.n(o),a=n(41498),r=n.n(a),l=n(79800),s=n.n(l),c=n(70236),d=n.n(c),u=n(59301),p=n(51136),f="wrap___jhaRK",m=n(37205),h=n.n(m),g=n(8591),v=n(8772),w=n(97913),x="add___QhmVz",b="row___jUJhV",y="input___rAwei",_="title___IS6B6",j="list___oafqL",A="listRow___JbnHf",S="listNextRow___zlQFB",k=n(90963),B=n(11094),N=n(89392),C=n(6457),T=n(7880),P=n(37712),E=function(e){d()(e);var t=(0,T.useParams)(),n=(t.virtual_spacesId,t.id),o=(0,u.useState)(""),a=s()(o,2),l=a[0],c=a[1],f=(0,u.useState)([]),m=s()(f,2),E=m[0],M=m[1],L=(0,u.useState)(!1),O=s()(L,2),D=O[0],G=O[1];(0,u.useEffect)((function(){n&&F()}),[n]);var F=function(){var e=r()(i()().mark((function e(){var o,a,r;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,p.ZP)("/api/virtual_classrooms/".concat(t.virtual_spacesId,"/knowledge_systems/").concat(n,"/show_content.json"),{method:"get"});case 2:-1!==(null==(o=e.sent)?void 0:o.status)&&(M(null==o||null===(a=o.members)||void 0===a?void 0:a.module_content),c(null==o||null===(r=o.members)||void 0===r?void 0:r.module_name));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),R=function(e,t,n){var o=(0,N.cloneDeep)(E);o[t][e]=n,M(o)},H=function(){var e=r()(i()().mark((function e(){var o,a;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l){e.next=3;break}return g.ZP.warning("请输入模块名称"),e.abrupt("return");case 3:if(E.length){e.next=6;break}return g.ZP.warning("请添加知识点"),e.abrupt("return");case 6:return G(!0),o="/api/virtual_classrooms/".concat(t.virtual_spacesId,"/knowledge_systems/add_content.json"),n&&(o="/api/virtual_classrooms/".concat(t.virtual_spacesId,"/knowledge_systems/").concat(n,"/update_content.json")),e.next=11,(0,p.ZP)(o,{method:n?"put":"post",body:{module_content:E,module_name:l,virtual_module_id:window.localStorage.getItem("vtrsModuleId")}});case 11:-1!==(null==(a=e.sent)?void 0:a.status)&&403!==(null==a?void 0:a.status)&&(g.ZP.success("操作成功"),T.history.push("/".concat(C.AS,"/").concat(t.virtual_spacesId,"/knowledge?active=desc&leftMenuId=").concat(window.localStorage.getItem("vtrsModuleId")))),G(!1);case 14:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,P.jsxs)("div",{style:{marginTop:n?30:0},className:x,children:[(0,P.jsxs)("div",{className:b,children:[(0,P.jsx)("span",{className:"c-grey-666 font14 mr20",children:"模块名称"}),(0,P.jsx)(v.Z,{placeholder:"请输入",onChange:function(e){return c(e.target.value)},value:l,className:y})]}),(0,P.jsxs)("div",{className:_,children:[(0,P.jsx)("b",{}),(0,P.jsx)("span",{children:"模块内容"})]}),E.map((function(e,t){var n=e.knowledge_point,o=e.content,i=e.target,a=e.class_hour,r=e.lesson_plan;return(0,P.jsxs)("div",{className:j,children:[(0,P.jsxs)("div",{className:A,children:[(0,P.jsx)("span",{children:"知识点"}),(0,P.jsx)(v.Z,{onChange:function(e){return R("knowledge_point",t,e.target.value)},value:n,placeholder:"请输入",className:y})]}),(0,P.jsxs)("div",{className:A,children:[(0,P.jsx)("span",{children:"主要内容"}),(0,P.jsx)(v.Z.TextArea,{onChange:function(e){return R("content",t,e.target.value)},value:o,autoSize:{minRows:3,maxRows:6},className:y})]}),(0,P.jsxs)("div",{className:A,children:[(0,P.jsx)("span",{children:"能力目标"}),(0,P.jsx)(v.Z.TextArea,{onChange:function(e){return R("target",t,e.target.value)},value:i,autoSize:{minRows:3,maxRows:6},className:y})]}),(0,P.jsxs)("div",{className:A,children:[(0,P.jsx)("span",{children:"参考学时"}),(0,P.jsx)(w.Z,{onChange:function(e){return R("class_hour",t,e)},precision:1,min:.1,value:a,className:y})]}),(0,P.jsxs)("div",{className:S,children:[(0,P.jsx)("span",{children:"教案"}),(0,P.jsx)("div",{style:{flex:1},children:(0,P.jsx)(B.Z,{onChange:function(e){return R("lesson_plan",t,e)},defaultValue:r,height:280,values:"2222"})}),(0,P.jsx)("i",{onClick:function(){return e=t,n=E.filter((function(t,n){return n!==e})),void M(n);var e,n},className:"iconfont icon-piliangshanchubeifen"})]})]},t)})),(0,P.jsxs)(k.op,{onClick:function(){M([].concat(h()(E),[{knowledge_point:"",content:"",target:"",class_hour:"",lesson_plan:""}]))},style:{display:"inline-block",marginTop:20},children:[(0,P.jsx)("i",{className:"iconfont icon-tianjiashitixiaojiahao font14 mr5"}),"新增知识点"]}),(0,P.jsx)(k.QD,{confirmTitle:"确认发布",confirmLoading:D,confirmClick:H,cancelClick:function(){T.history.push("/".concat(C.AS,"/").concat(t.virtual_spacesId,"/knowledge?active=desc&leftMenuId=").concat(window.localStorage.getItem("vtrsModuleId")))},cancelTitle:"取消",className:"mb25 mt20"})]})},M=n(82242),L=n.n(M),O=n(43418),D=n(95237),G=n(21068),F={flex_box_center:"flex_box_center___MWmFU",flex_space_between:"flex_space_between___YKGNN",flex_box_vertical_center:"flex_box_vertical_center___DDTno",flex_box_center_end:"flex_box_center_end___nE28i",flex_box_column:"flex_box_column___OZbik"},R=n(27065),H=n(14661),Z=function(e){d()(e);var t=(0,T.useParams)(),n=(t.virtual_spacesId,(0,u.useState)([])),o=s()(n,2),a=o[0],l=o[1],c=(0,u.useState)(!1),f=s()(c,2),m=f[0],h=f[1],v={onRemove:function(){l([])},beforeUpload:function(e){var t,n,o,i,a=null==e||null===(t=e.name)||void 0===t?void 0:t.substring(null==e||null===(n=e.name)||void 0===n?void 0:n.lastIndexOf("."),null==e||null===(o=e.name)||void 0===o?void 0:o.length);if(".xls"!==(a=null===(i=a)||void 0===i?void 0:i.toLowerCase())&&".xlsx"!==a)return g.ZP.error("只能上传.xls,.xlsx格式的文档"),Promise.reject();var r=[];return r.push(e),l([].concat(r)),Promise.reject()},fileList:a,accept:".xls,.xlsx"},w=function(){var e=r()(i()().mark((function e(){var n,o,r,l;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((null==a?void 0:a.length)<=0)){e.next=3;break}return g.ZP.info("请上传文件"),e.abrupt("return");case 3:return(n=new FormData).append("file",a[0]),n.append("virtual_module_id",window.localStorage.getItem("vtrsModuleId")),h(!0),o="/api/virtual_classrooms/".concat(t.virtual_spacesId,"/knowledge_systems/batch_import.json"),e.next=10,(0,p.ZP)(o,{method:"post",body:n},!0);case 10:-1!==(null==(r=e.sent)?void 0:r.status)&&403!==(null==r?void 0:r.status)&&O.Z.info({centered:!0,keyboard:!1,maskClosable:!1,okText:"确定",icon:null,title:"提示",className:H.Z.CustomTipsModalCss,content:(0,P.jsxs)("div",{children:[(0,P.jsxs)("div",{children:["成功",null==r?void 0:r.success,"条"]}),(0,P.jsxs)("div",{children:["失败",(null==r||null===(l=r.fail)||void 0===l?void 0:l.length)||0,"条"]})]}),onOk:function(){T.history.push("/".concat(C.AS,"/").concat(t.virtual_spacesId,"/knowledge?active=desc&leftMenuId=").concat(window.localStorage.getItem("vtrsModuleId")))}}),h(!1);case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,P.jsxs)("div",{className:F.add,children:[(0,P.jsxs)(D.Z,{className:"mt20",children:[(0,P.jsx)("div",{className:"c-grey-666 font14 mr20 pt5",children:"上传文件"}),(0,P.jsxs)("div",{children:[(0,P.jsx)(G.Z,L()(L()({},v),{},{children:(0,P.jsxs)(k.op,{style:{borderRadius:2},children:[(0,P.jsx)("i",{className:"iconfont icon-tianjiashitixiaojiahao font14 mr5"}),"选择文件"]})})),(0,P.jsx)("div",{className:"c-grey-666 font14 mt35",children:"注意:"}),(0,P.jsx)("div",{className:"c-grey-666 font14 pt5 pb5",children:"1、仅支持上传.xlsx 或 .xls类型的文件"}),(0,P.jsxs)("div",{className:"c-grey-666 font14",children:["2、需按照指定模板上传数据 ",(0,P.jsx)("a",{className:"ml5 mr5",onClick:r()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,C.FH)("",(0,C.NY)({url:R.Z.API_SERVER+"/api/virtual_classrooms/download_content_module_template",query:{}}));case 1:case"end":return e.stop()}}),e)}))),children:"点击下载模板"})]})]})]}),(0,P.jsx)(k.QD,{confirmTitle:"确认上传",confirmLoading:m,confirmClick:w,cancelClick:function(){T.history.push("/".concat(C.AS,"/").concat(t.virtual_spacesId,"/knowledge?active=desc&leftMenuId=").concat(window.localStorage.getItem("vtrsModuleId")))},cancelTitle:"取消",className:"mb25 mt20"})]})},I=function(e){d()(e);var t=(0,T.useParams)(),n=(0,u.useState)("1"),o=s()(n,2),a=o[0],l=o[1],c=t.virtual_spacesId,m=t.id,h=(0,u.useState)(!1),g=s()(h,2),v=g[0],w=g[1];(0,u.useEffect)((function(){x()}),[]);var x=function(){var e=r()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,p.ZP)("/api/virtual_classrooms/".concat(c,"/settings_auth.json"),{method:"get"});case 2:0===e.sent.status&&w(!0);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return v?(0,P.jsxs)("div",{className:f,children:[(0,P.jsx)(k.qE,{title:m?"编辑知识点模块":"新建知识点模块",onClick:function(){return T.history.push("/".concat(C.AS,"/").concat(c,"/knowledge?leftMenuId=").concat(window.localStorage.getItem("vtrsModuleId")))}}),!m&&(0,P.jsx)(k.qp,{titleWidth:56,dataSource:[{id:"1",name:"单个新增"},{id:"2",name:"批量导入"}],className:"mt25",title:"新增模式",value:a,onChange:function(e){return l(e)}}),"1"===a&&(0,P.jsx)(E,{}),"2"===a&&(0,P.jsx)(Z,{})]}):(0,P.jsx)(P.Fragment,{})}},14661:function(e,t){"use strict";t.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"}},56762:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(59301);function i(){const[,e]=o.useReducer((e=>e+1),0);return e}},38854:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var o=n(91857),i=n(92310),a=n.n(i),r=n(59301),l=n(62722),s=n(3113),c=n(36355),d=n(81327),u=n(33234),p=n(47211),f=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n};const m=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:i}=r.useContext(c.E_),{prefixCls:m,type:h="default",danger:g,disabled:v,loading:w,onClick:x,htmlType:b,children:y,className:_,menu:j,arrow:A,autoFocus:S,overlay:k,trigger:B,align:N,open:C,onOpenChange:T,placement:P,getPopupContainer:E,href:M,icon:L=r.createElement(l.Z,null),title:O,buttonsRender:D=(e=>e),mouseEnterDelay:G,mouseLeaveDelay:F,overlayClassName:R,overlayStyle:H,destroyPopupOnHide:Z,dropdownRender:I}=e,W=f(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),z=n("dropdown",m),U=`${z}-button`,[V,q]=(0,p.Z)(z),J={menu:j,arrow:A,autoFocus:S,align:N,disabled:v,trigger:v?[]:B,onOpenChange:T,getPopupContainer:E||t,mouseEnterDelay:G,mouseLeaveDelay:F,overlayClassName:R,overlayStyle:H,destroyPopupOnHide:Z,dropdownRender:I},{compactSize:K,compactItemClassnames:Q}=(0,u.ri)(z,i),X=a()(U,Q,_,q);"overlay"in e&&(J.overlay=k),"open"in e&&(J.open=C),J.placement="placement"in e?P:"rtl"===i?"bottomLeft":"bottomRight";const Y=r.createElement(s.ZP,{type:h,danger:g,disabled:v,loading:w,onClick:x,htmlType:b,href:M,title:O},y),$=r.createElement(s.ZP,{type:h,danger:g,icon:L}),[ee,te]=D([Y,$]);return V(r.createElement(d.Z.Compact,Object.assign({className:X,size:K,block:!0},W),ee,r.createElement(o.Z,Object.assign({},J),te)))};m.__ANT_BUTTON=!0;var h=m;const g=o.Z;g.Button=h;var v=g},57809:function(e,t,n){"use strict";var o=n(92310),i=n.n(o),a=n(77861),r=n(62805),l=n(59301),s=n(53487),c=n(62892),d=n(19080),u=n(36355),p=n(1684),f=n(93891),m=n(19716),h=n(32441),g=n(33234),v=n(14154),w=n(58582),x=n(84443),b=n(66339),y=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n};const _="SECRET_COMBOBOX_MODE_DO_NOT_USE",j=(e,t)=>{var n,{prefixCls:o,bordered:s=!0,className:j,rootClassName:A,getPopupContainer:S,popupClassName:k,dropdownClassName:B,listHeight:N=256,placement:C,listItemHeight:T=24,size:P,disabled:E,notFoundContent:M,status:L,builtinPlacements:O,dropdownMatchSelectWidth:D,popupMatchSelectWidth:G,direction:F,style:R,allowClear:H}=e,Z=y(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:I,getPrefixCls:W,renderEmpty:z,direction:U,virtual:V,popupMatchSelectWidth:q,popupOverflow:J,select:K}=l.useContext(u.E_),Q=W("select",o),X=W(),Y=null!=F?F:U,{compactSize:$,compactItemClassnames:ee}=(0,g.ri)(Q,Y),[te,ne]=(0,v.Z)(Q),oe=l.useMemo((()=>{const{mode:e}=Z;if("combobox"!==e)return e===_?"combobox":e}),[Z.mode]),ie="multiple"===oe||"tags"===oe,ae=(0,x.Z)(Z.suffixIcon,Z.showArrow),re=null!==(n=null!=G?G:D)&&void 0!==n?n:q,{status:le,hasFeedback:se,isFormItemInput:ce,feedbackIcon:de}=l.useContext(h.aM),ue=(0,d.F)(le,L);let pe;pe=void 0!==M?M:"combobox"===oe?null:(null==z?void 0:z("Select"))||l.createElement(f.Z,{componentName:"Select"});const{suffixIcon:fe,itemIcon:me,removeIcon:he,clearIcon:ge}=(0,b.Z)(Object.assign(Object.assign({},Z),{multiple:ie,hasFeedback:se,feedbackIcon:de,showSuffixIcon:ae,prefixCls:Q,showArrow:Z.showArrow,componentName:"Select"})),ve=!0===H?{clearIcon:ge}:H,we=(0,r.Z)(Z,["suffixIcon","itemIcon"]),xe=i()(k||B,{[`${Q}-dropdown-${Y}`]:"rtl"===Y},A,ne),be=(0,m.Z)((e=>{var t;return null!==(t=null!=P?P:$)&&void 0!==t?t:e})),ye=l.useContext(p.Z),_e=null!=E?E:ye,je=i()({[`${Q}-lg`]:"large"===be,[`${Q}-sm`]:"small"===be,[`${Q}-rtl`]:"rtl"===Y,[`${Q}-borderless`]:!s,[`${Q}-in-form-item`]:ce},(0,d.Z)(Q,ue,se),ee,null==K?void 0:K.className,j,A,ne),Ae=l.useMemo((()=>void 0!==C?C:"rtl"===Y?"bottomRight":"bottomLeft"),[C,Y]),Se=(0,w.Z)(O,J);return te(l.createElement(a.ZP,Object.assign({ref:t,virtual:V,showSearch:null==K?void 0:K.showSearch},we,{style:Object.assign(Object.assign({},null==K?void 0:K.style),R),dropdownMatchSelectWidth:re,builtinPlacements:Se,transitionName:(0,c.m)(X,"slide-up",Z.transitionName),listHeight:N,listItemHeight:T,mode:oe,prefixCls:Q,placement:Ae,direction:Y,suffixIcon:fe,menuItemSelectedIcon:me,removeIcon:he,allowClear:ve,notFoundContent:pe,className:je,getPopupContainer:S||I,dropdownClassName:xe,disabled:_e})))};const A=l.forwardRef(j),S=(0,s.Z)(A);A.SECRET_COMBOBOX_MODE_DO_NOT_USE=_,A.Option=a.Wx,A.OptGroup=a.Xo,A._InternalPanelDoNotUseOrYouWillBeFired=S,t.default=A},81327:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var o=n(59301),i=n(92310),a=n.n(i),r=n(47783),l=n(36355),s=n(33234);const c=o.createContext({latestIndex:0}),d=c.Provider;var u=e=>{let{className:t,index:n,children:i,split:a,style:r}=e;const{latestIndex:l}=o.useContext(c);return null==i?null:o.createElement(o.Fragment,null,o.createElement("div",{className:t,style:r},i),n<l&&a&&o.createElement("span",{className:`${t}-split`},a))},p=n(2856);function f(e){return["small","middle","large"].includes(e)}function m(e){return!!e&&("number"==typeof e&&!Number.isNaN(e))}var h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n};const g=o.forwardRef(((e,t)=>{var n,i;const{getPrefixCls:s,space:c,direction:g}=o.useContext(l.E_),{size:v=(null==c?void 0:c.size)||"small",align:w,className:x,rootClassName:b,children:y,direction:_="horizontal",prefixCls:j,split:A,style:S,wrap:k=!1,classNames:B,styles:N}=e,C=h(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[T,P]=Array.isArray(v)?v:[v,v],E=f(P),M=f(T),L=m(P),O=m(T),D=(0,r.Z)(y,{keepEmpty:!0}),G=void 0===w&&"horizontal"===_?"center":w,F=s("space",j),[R,H]=(0,p.Z)(F),Z=a()(F,null==c?void 0:c.className,H,`${F}-${_}`,{[`${F}-rtl`]:"rtl"===g,[`${F}-align-${G}`]:G,[`${F}-gap-row-${P}`]:E,[`${F}-gap-col-${T}`]:M},x,b),I=a()(`${F}-item`,null!==(n=null==B?void 0:B.item)&&void 0!==n?n:null===(i=null==c?void 0:c.classNames)||void 0===i?void 0:i.item);let W=0;const z=D.map(((e,t)=>{var n,i;null!=e&&(W=t);const a=e&&e.key||`${I}-${t}`;return o.createElement(u,{className:I,key:a,index:t,split:A,style:null!==(n=null==N?void 0:N.item)&&void 0!==n?n:null===(i=null==c?void 0:c.styles)||void 0===i?void 0:i.item},e)})),U=o.useMemo((()=>({latestIndex:W})),[W]);if(0===D.length)return null;const V={};return k&&(V.flexWrap="wrap"),!M&&O&&(V.columnGap=T),!E&&L&&(V.rowGap=P),R(o.createElement("div",Object.assign({ref:t,className:Z,style:Object.assign(Object.assign(Object.assign({},V),null==c?void 0:c.style),S)},C),o.createElement(d,{value:U},z)))}));const v=g;v.Compact=s.ZP;var w=v},96908:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj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