You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__User__Detail__Topics__Ex...

1190 lines
942 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(self.webpackChunk=self.webpackChunk||[]).push([[2806],{40001:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return We}});var E=ne(60499),Qe=ne(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},tt=xe,Ee=ne(7657),Be=function(he,Je){return Qe.createElement(Ee.Z,(0,E.Z)({},he,{ref:Je,icon:tt}))},De=Qe.forwardRef(Be),We=De},73331:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return We}});var E=ne(60499),Qe=ne(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},tt=xe,Ee=ne(7657),Be=function(he,Je){return Qe.createElement(Ee.Z,(0,E.Z)({},he,{ref:Je,icon:tt}))},De=Qe.forwardRef(Be),We=De},15277:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return We}});var E=ne(60499),Qe=ne(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},tt=xe,Ee=ne(7657),Be=function(he,Je){return Qe.createElement(Ee.Z,(0,E.Z)({},he,{ref:Je,icon:tt}))},De=Qe.forwardRef(Be),We=De},33853:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return We}});var E=ne(60499),Qe=ne(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},tt=xe,Ee=ne(7657),Be=function(he,Je){return Qe.createElement(Ee.Z,(0,E.Z)({},he,{ref:Je,icon:tt}))},De=Qe.forwardRef(Be),We=De},61485:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return We}});var E=ne(60499),Qe=ne(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},tt=xe,Ee=ne(7657),Be=function(he,Je){return Qe.createElement(Ee.Z,(0,E.Z)({},he,{ref:Je,icon:tt}))},De=Qe.forwardRef(Be),We=De},47472:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return We}});var E=ne(60499),Qe=ne(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},tt=xe,Ee=ne(7657),Be=function(he,Je){return Qe.createElement(Ee.Z,(0,E.Z)({},he,{ref:Je,icon:tt}))},De=Qe.forwardRef(Be),We=De},87395:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return We}});var E=ne(60499),Qe=ne(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},tt=xe,Ee=ne(7657),Be=function(he,Je){return Qe.createElement(Ee.Z,(0,E.Z)({},he,{ref:Je,icon:tt}))},De=Qe.forwardRef(Be),We=De},88319:function(){"use strict"},94896:function(){"use strict"},74501:function(on,$t){"use strict";$t.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},39967:function(on,$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"}},84915:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var on={},$t="5.0",ne={},E=null,Qe=!1,xe=!1,tt=null,Ee=!1,Be=null,De=null,We=0;We<arguments.length;We++){var Ie=arguments[We];if(Ie!==null)switch(typeof Ie){case"number":$t=Ie.toFixed(1);break;case"string":Ie.match(new RegExp("^[0-9]\\.[0-9]+$"))?$t=Ie:tt=Ie;break;case"object":typeof Ie.is3D!="undefined"?E=Ie:ne=Ie;break;case"boolean":Qe=Ie,xe=!0;break}}E===null&&(E={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ne.material_id!==void 0&&!xe&&(Qe=!0)),tt!==null&&ne.id===void 0&&(ne.id=tt);var he="",Je="",Pe=!1,dt=null,Ze=null,Ce=null,Te=!1,_e=null,rt=null,gt=null,Pt=null,ht=null;ne.height!==void 0&&(ne.height=Math.round(ne.height)),ne.width!==void 0&&(ne.width=Math.round(ne.width));var it=function(ge){return parseFloat(ge)>4?parseFloat(ge):5};on.setHTML5Codebase=function(ge,He){De=ge,Ue(ge,He)},on.setJavaCodebase=on.setJavaCodebaseVersion=on.isCompiledInstalled=on.setPreCompiledScriptPath=on.setPreCompiledResourcePath=function(){},on.setHTML5CodebaseVersion=function(ge,He){var Ge=parseFloat(ge);if(Ge!==NaN&&Ge<5){console.log("The GeoGebra HTML5 codebase version "+Ge+" is deprecated. Using version latest instead.");return}Be=ge,ce(ge,He)},on.getHTML5CodebaseVersion=function(){return Ze},on.getParameters=function(){return ne},on.setFontsCSSURL=function(ge){Pt=ge},on.setGiacJSURL=function(ge){},on.setJNLPFile=function(ge){he=ge},on.setJNLPBaseDir=function(ge){},on.inject=function(){function ge(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var He="auto",Ge=ne.id,Tt,wt=!1,Lt=0;Lt<arguments.length;Lt++){var $e=arguments[Lt];typeof $e=="string"?($e=$e.toLowerCase(),$e.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?He=$e:Ge=arguments[Lt]):typeof $e=="boolean"?wt=$e:$e instanceof HTMLElement&&(Tt=$e)}At();function At(){if(!Ee){setTimeout(At,200);return}He=ct(He);var st=Tt||document.getElementById(Ge);if(!st){console.log("possibly bug on ajax loading? ");return}if(on.removeExistingApplet(st,!1),ne.width===void 0&&st.clientWidth&&(ne.width=st.clientWidth),ne.height===void 0&&st.clientHeight&&(ne.height=st.clientHeight),!(ne.width&&ne.height)&&He==="html5"&&(delete ne.width,delete ne.height),dt=He,He==="screenshot")ze(st,ne);else{var ae=!1;ne.hasOwnProperty("playButton")&&ne.playButton||ne.hasOwnProperty("clickToLoad")&&ne.clickToLoad?ae=!0:ne.hasOwnProperty("playButtonAutoDecide")&&ne.playButtonAutoDecide&&(ae=(!nt()||ge())&&Fe()),ae?(dt="screenshot",qe(st,ne,wt,He)):Ke(st,ne,wt)}}};function nt(){try{return window.self!==window.top}catch(ge){return!0}}function Fe(){return ne.hasOwnProperty("screenshotGenerator")&&ne.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}on.getViews=function(){return E},on.isJavaInstalled=function(){return!1};var kt=function(ge){var He=function(Lt){var $e=JSON.parse(Lt),At=function(te){return te.type=="G"||te.type=="E"},st=$e.elements?$e.elements.filter(At)[0]:$e;if(!st||!st.url){Ge();return}ne.fileName=st.url,lt(st.settings||{}),E.is3D=!0;var ae="https://www.geogebra.org/images/";on.setPreviewImage(_e||st.previewUrl,ae+"GeoGebra_loading.png",ae+"applet_play.png"),ge()},Ge=function(){ne.onError&&ne.onError(),It("Error: Fetching material (id "+ne.material_id+") failed.",ne)},Tt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",wt="/materials/"+ne.material_id+"?scope=basic";et("https://"+Tt+"/api/proxy.php?path="+encodeURIComponent(wt),He,Ge)};function lt(ge){var He=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ge){ge[Ge]=!!ge[Ge]}),He.forEach(function(Ge){ne[Ge]===void 0&&ge[Ge]!==void 0&&(ne[Ge]=ge[Ge])}),ne.showToolBarHelp===void 0&&(ne.showToolBarHelp=ne.showToolBar)}function et(ge,He,Ge){var Tt=new XMLHttpRequest;Tt.open("GET",ge),Tt.onload=function(){He(Tt.responseText)},Tt.onerror=Ge,Tt.send()}on.isHTML5Installed=function(){return!0},on.getLoadedAppletType=function(){return dt},on.setPreviewImage=function(ge,He,Ge){_e=ge,rt=He,gt=Ge},on.removeExistingApplet=function(ge,He){var Ge;typeof ge=="string"&&(ge=document.getElementById(ge)),dt=null;var Tt=null;for(Ge=0;Ge<ge.childNodes.length;Ge++){var wt=ge.childNodes[Ge],Lt=wt.className;Lt==="applet_screenshot"?He?(wt.style.display="block",dt="screenshot"):wt.style.display="none":Lt!=="applet_scaler prerender"&&(ge.removeChild(wt),Tt=Lt&&Lt.indexOf("appletParameters")!=-1?wt.id:null,Ge--)}var $e=ne.id!==void 0?ne.id:Tt,At=window[$e];At&&typeof At.getBase64=="function"&&(At.remove(),window[$e]=null)},on.refreshHitPoints=function(){if(it(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ge=on.getAppletObject();return ge&&typeof ge.recalculateEnvironments=="function"?(ge.recalculateEnvironments(),!0):!1},on.startAnimation=function(){var ge=on.getAppletObject();return ge&&typeof ge.startAnimation=="function"?(ge.startAnimation(),!0):!1},on.stopAnimation=function(){var ge=on.getAppletObject();return ge&&typeof ge.stopAnimation=="function"?(ge.stopAnimation(),!0):!1},on.getAppletObject=function(){var ge=ne.id!==void 0?ne.id:"ggbApplet";return window[ge]},on.resize=function(){};var St=function(ge,He,Ge){var Tt=document.createElement("param");Tt.setAttribute("name",He),Tt.setAttribute("value",Ge),ge.appendChild(Tt)},Me=function(ge){return ge&&ge!=="false"},Ke=function(ge,He,Ge){it(Ze)<=4.2&&(Ge=!0);var Tt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ze||ggbHTML5LoadedCodebaseIsWebSimple&&!Te)&&(Tt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var wt=document.createElement("div");wt.classList.add("appletParameters","notranslate");var Lt=He.width,$e=He.height;if(He.disableAutoScale=He.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():He.disableAutoScale,He.width!==void 0)if(it(Ze)<=4.4)Me(He.showToolBar)&&(He.height-=7),Me(He.showAlgebraInput)&&(He.height-=37),He.width<605&&Me(He.showToolBar)&&(He.width=605,Lt=605);else{var At=100;(Me(He.showToolBar)||Me(He.showMenuBar))&&(He.hasOwnProperty("customToolBar")&&(He.customToolbar=He.customToolBar),At=Me(He.showMenuBar)?245:155),Lt<At&&(He.width=At,Lt=At)}wt.style.border="none",wt.style.display="inline-block";for(var st in He)He.hasOwnProperty(st)&&st!=="appletOnLoad"&&wt.setAttribute("data-param-"+st,He[st]);Pt&&wt.setAttribute("data-param-fontscssurl",Pt),on.resize=function(){GGBAppletUtils.responsiveResize(ge,He)},window.addEventListener("resize",function(Bt){on.resize()});var ae=typeof He.appletOnLoad=="function"?He.appletOnLoad:function(){};if(!Ge&&He.width!==void 0){He.hasOwnProperty("showSplash")||wt.setAttribute("data-param-showSplash","false");var te=ge.querySelector(".applet_scaler.prerender"),ee=te!==null;if(ee)var oe=te.querySelector(".ggb_preview");else{var oe=Ae(Lt,$e,He.borderColor,!1);te=document.createElement("div"),te.className="applet_scaler",te.style.position="relative",te.style.display="block",te.style.width=Lt+"px",te.style.height=$e+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(te,"66%"),it(Ze)>=5?(He.appletOnLoad=function(Bt){var Et=ge.querySelector(".ggb_preview");Et&&Et.parentNode.removeChild(Et),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(te),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(Bt)},ee||te.appendChild(oe)):wt.appendChild(oe),te.appendChild(wt),ee||ge.appendChild(te),setTimeout(function(){on.resize()},1)}else{var ue=document.createElement("div");ue.className="applet_scaler",ue.style.position="relative",ue.style.display="block",ue.appendChild(wt),ge.appendChild(ue),He.appletOnLoad=function(Bt){on.resize(),ae(Bt)}}function re(Bt,Et){Et&&typeof Et.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Bt,Et.appletOnLoad):renderGGBElement(Bt),It("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Et)}function ve(Bt,Et){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Bt,params:Et}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Ut){re(Ut.article,Ut.params)}),html5AppletsToProcess=null)},it(Ze)<5&&(Bt.className+=" geogebraweb")):re(Bt,Et)}if(Tt){scriptLoadStarted=!0;for(var we=0;we<wt.childNodes.length;we++){var ft=wt.childNodes[we].tagName;ft==="TABLE"&&(wt.removeChild(wt.childNodes[we]),we--)}if(ggbHTML5LoadedScript!==null){var Oe=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Oe!=null&&Oe.parentNode.removeChild(Oe)}var Ye=document.createElement("script"),mt=function(){ve(wt,He)};Ye.src=Je+Ce,ggbHTML5LoadedCodebaseIsWebSimple=Te,ggbHTML5LoadedCodebaseVersion=Ze,ggbHTML5LoadedScript=Ye.src,It("GeoGebra HTML5 codebase loaded: '"+Je+"'.",He),!De&&(!Be||Be=="5.0")?(Te?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),mt()):Je.requirejs?__webpack_require__.e(4510).then(function(){var Bt=[__webpack_require__(4510)];mt.apply(null,Bt)}.bind(this)).catch(__webpack_require__.oe):(Ye.onload=mt,ge.appendChild(Ye))}else ve(wt,He);He.height=$e,He.width=Lt},ze=function(ge,He,Ge){var Tt=Ae(He.width,He.height,He.borderColor,Ge),wt=document.createElement("div");wt.style.position="relative",wt.style.display="block",wt.style.width=He.width+"px",wt.style.height=He.height+"px",wt.className="applet_screenshot applet_scaler"+(Ge?" applet_screenshot_play":""),wt.appendChild(Tt);var Lt=GGBAppletUtils.getScale(He,ge,Ge);Ge?(ge.appendChild(Le()),window.GGBT_wsf_view||(ge.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(wt,"66%"),ge.appendChild(wt),Lt!==1&&!isNaN(Lt)&&(GGBAppletUtils.scaleElement(wt,Lt),wt.style.width=He.width+"px",wt.style.height=He.height+"px",wt.parentNode.style.width=He.width*Lt+"px",wt.parentNode.style.height=He.height*Lt+"px"),on.resize=function(){se(ge,Tt,wt,Ge)},window.addEventListener("resize",function($e){on.resize()}),on.resize()};function se(ge,He,Ge,Tt){if(ge.contains(He)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ge.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ge)}var wt=GGBAppletUtils.getScale(ne,ge,Tt);Ge.parentNode!==null&&(!isNaN(wt)&&wt!==1?(GGBAppletUtils.scaleElement(Ge,wt),Ge.parentNode.style.width=ne.width*wt+"px",Ge.parentNode.style.height=ne.height*wt+"px"):(GGBAppletUtils.scaleElement(Ge,1),Ge.parentNode.style.width=ne.width+"px",Ge.parentNode.style.height=ne.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(ge),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}on.onExitFullscreen=function(ge,He){He.appendChild(ge)};var qe=function(ge,He,Ge,Tt){ze(ge,He,!0);for(var wt=function(){var At=[];for($e=0;$e<ge.childNodes.length;$e++)At.push(ge.childNodes[$e]);if(window.GGBT_wsf_view){var st=window.GGBT_wsf_view.renderFullScreen(ge,He.id),ae=document.getElementById("fullscreencontainer"),te=jQuery(ge).find(".fullscreencontent");te.length>0?(st.remove(),te.attr("id","fullscreencontent").show(),jQuery(ae).append(te),window.dispatchEvent(new Event("resize"))):Ke(st,He,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else dt=Tt,Ke(ge,He,!1);if(!window.GGBT_wsf_view)for($e=0;$e<At.length;$e++)ge.removeChild(At[$e])},Lt=ge.getElementsByClassName("ggb_preview_play"),$e=0;$e<Lt.length;$e++)Lt[$e].addEventListener("click",wt,!1),Lt[$e].addEventListener("ontouchstart",wt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ge),Fe()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Le=function(){var ge=document.createElement("div");if(ge.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var He='.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");}',Ge=document.createElement("style");Ge.styleSheet?Ge.styleSheet.cssText=He:Ge.appendChild(document.createTextNode(He)),document.getElementsByTagName("head")[0].appendChild(Ge)}return ge},Ae=function(ge,He,Ge,Tt){var wt=document.createElement("div");wt.className="ggb_preview",wt.style.position="absolute",wt.style.zIndex="90",wt.style.width=ge-2+"px",wt.style.height=He-2+"px",wt.style.top="0px",wt.style.left="0px",wt.style.overflow="hidden",wt.style.backgroundColor="white";var Lt="lightgrey";Ge!==void 0&&(Ge==="none"?Lt="transparent":Lt=Ge),wt.style.border="1px solid "+Lt;var $e=document.createElement("img");if($e.style.position="relative",$e.style.zIndex="1000",$e.style.top="-1px",$e.style.left="-1px",_e!==null&&$e.setAttribute("src",_e),$e.style.opacity=.7,rt!==null){var At,st,ae;if(!Tt){At=document.createElement("img"),At.style.position="absolute",At.style.zIndex="1001",At.style.opacity=1,$e.style.opacity=.3,st=360,st>ge/4*3&&(st=ge/4*3),ae=st/5.8,At.setAttribute("src",rt),At.setAttribute("width",st),At.setAttribute("height",ae);var te=(ge-st)/2,ee=(He-ae)/2;At.style.left=te+"px",At.style.top=ee+"px",wt.appendChild(At)}}return wt.appendChild($e),wt},ct=function(ge){return ge=ge.toLowerCase(),ge==="html5"||ge==="screenshot"?ge:"html5"},ye=["web","webSimple","web3d","tablet","tablet3d","phone"],ce=function(ge,He){if(Ze=ge,He){Ue(Ze,!0);return}var Ge=!Qe;if(Ge){var Tt=it(Ze);!isNaN(Tt)&&Tt<4.4&&(Ge=!1)}var wt,Lt;window.location.protocol.substr(0,4)==="http"?wt=window.location.protocol:wt="http:";var $e=Ze.indexOf("//");$e>0?Lt=Ze:$e===0?Lt=wt+Ze:Lt="https://www.geogebra.org/apps/5.2.814.0/";for(var At in ye)if(Ze.slice(ye[At].length*-1)===ye[At]||Ze.slice((ye[At].length+1)*-1)===ye[At]+"/"){Ue(Lt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ge&&!E.is3D&&!E.AV&&!E.SV&&!E.CV&&!E.EV2&&!E.CP&&!E.PC&&!E.DA&&!E.FI&&!E.PV&&!Me(ne.showToolBar)&&!Me(ne.showMenuBar)&&!Me(ne.showAlgebraInput)&&!Me(ne.enableRightClick)&&(!ne.appName||ne.appName=="classic")?Lt+="webSimple/":Lt+="web3d/",Ue(Lt,!1)},Ue=function(ge,He){if(ge.requirejs){Je=ge;return}ge.slice(-1)!=="/"&&(ge+="/"),Je=ge,He===null&&(He=ge.indexOf("http")===-1),Pe=He,Ce="web.nocache.js",Te=!1;var Ge=Je.split("/");Ge.length>1&&(!He&&Ge[Ge.length-2]==="webSimple"?(Ce="webSimple.nocache.js",Te=!0):ye.indexOf(Ge[Ge.length-2])>=0&&(Ce=Ge[Ge.length-2]+".nocache.js")),Ge=ge.split("/"),Ze=Ge[Ge.length-3],Ze.substr(0,4)==="test"?Ze=Ze.substr(4,1)+"."+Ze.substr(5,1):(Ze.substr(0,3)==="war"||Ze.substr(0,4)==="beta")&&(Ze="5.0");var Tt=parseFloat(Ze);Tt!==NaN&&Tt<5&&ge.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Tt+" is deprecated. Using version latest instead."),ce("5.0",He))},It=function(ge,He){window.console&&window.console.log&&(!He||typeof He.showLogging=="undefined"||He.showLogging&&He.showLogging!=="false")&&console.log(ge)};ne.material_id!==void 0?kt(bt):bt();function bt(){var ge=$t;Be!==null?ge=Be:parseFloat(ge)<5&&(ge="5.0"),ce(ge,!1),De!==null&&Ue(De,Pe),Ee=!0}return on},GGBAppletUtils=function(){"use strict";function on(){return window.GGBT_wsf_edit!==void 0}function $t(Ee,Be){Be!=1?(Ee.style.transformOrigin="0% 0% 0px",Ee.style.webkitTransformOrigin="0% 0% 0px",Ee.style.transform="scale("+Be+","+Be+")",Ee.style.webkitTransform="scale("+Be+","+Be+")",Ee.style.maxWidth="initial",Ee.querySelector(".ggb_preview")!==null&&(Ee.querySelector(".ggb_preview").style.maxWidth="initial"),Ee.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ee.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ee.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ee.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ee.style.transform="none",Ee.style.webkitTransform="none")}function ne(Ee,Be,De,We,Ie,he){var Je=null;if(he!=null&&he!="")for(var Pe=Ee.parentNode;Pe!=null;)if((" "+Pe.className+" ").indexOf(" "+he+" ")>-1){Je=Pe;break}else Pe=Pe.parentNode;var dt=0,Ze=0,Ce=0,Te=0,_e=0,rt=0,gt=0;if(Je)dt=Je.offsetWidth,Ze=Math.max(We?Je.offsetWidth:0,Je.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(dt=Math.min(window.innerWidth,document.documentElement.clientWidth),Ze=Math.min(window.innerHeight,document.documentElement.clientHeight),Ce=dt):(dt=window.innerWidth,Ze=window.innerHeight,Ce=window.innerWidth),Ee){var Pt=Ee.getBoundingClientRect();Pt.left>0&&Pt.left<=dt&&(Ie===void 0||!Ie)&&(document.dir==="rtl"?(_e=dt-Pt.width-Pt.left,rt=Ce<=480?10:30):(rt=Pt.left,_e=Ce<=480?10:30),Te=rt+_e)}if(Ee&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ht=Ee.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Te=40,gt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Te=0,gt=40)}}return Ee&&((De===void 0||!De)&&Be>0&&Be+Te<dt?dt=Be:dt-=Te,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(De===void 0||!De)&&(Ze-=gt)),{width:dt,height:Ze}}function E(Ee,Be,De,We,Ie){if(Ee.isScreenshoGenerator)return 1;var he=We!==void 0&&We,Je=Ee.noScaleMargin!=null&&Ee.noScaleMargin,Pe=function(ht){return ht&&ht!=="false"},dt=Pe(Ee.autoHeight),Ze=ne(Be,Ee.width,De,dt,he&&window.GGBT_wsf_view||Je,Ie),Ce=parseInt(Ze.width),Te=Ee.width,_e=Ee.height;if(Te===void 0){var rt=Be.querySelector(".appletParameters");rt&&(Te=rt.offsetWidth,_e=rt.offsetHeight)}var gt=Ce/Te,Pt=he?1:Ze.height/_e;return De!==void 0&&!De&&(gt=Math.min(1,gt),Pt=Math.min(1,Pt)),Math.min(gt,Pt)}function Qe(Ee,Be,De){var We=1,Ie,he=!1;if(Ee.hasOwnProperty("allowUpscale")&&(he=Ee.allowUpscale),Ee.hasOwnProperty("scale")&&(We=parseFloat(Ee.scale),(isNaN(We)||We===null||We===0)&&(We=1),We>1&&(he=!0)),Be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(he=!0),!(Ee.hasOwnProperty("disableAutoScale")&&Ee.disableAutoScale))Ie=E(Ee,Be,he,De,Ee.scaleContainerClass);else return We;return he&&(!Ee.hasOwnProperty("scale")||We===1)?Ie:Math.min(We,Ie)}function xe(Ee){var Be=Math.min(window.innerWidth,document.documentElement.clientWidth),De=Math.min(window.innerHeight,document.documentElement.clientHeight),We=Ee.getBoundingClientRect(),Ie=(Be-We.width)/2,he=(De-We.height)/2;he<0&&(he=0),Ee.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ie<40?Ee.style.left="40px":Ee.style.left=Ie+"px",Ee.style.top=he+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(he<40?Ee.style.top="40px":Ee.style.top=he+"px",Ee.style.left=Ie+"px")}function tt(Ee,Be){var De=Ee.querySelector(".appletParameters");if(De){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Be.id!==De.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ee)}if(De.parentElement&&/fullscreen/.test(De.parentElement.className))return;var We=Qe(Be,Ee);on()&&De.setAttribute("data-param-scale",We);for(var Ie=null,he=0;he<Ee.childNodes.length;he++)if(Ee.childNodes[he].className!==void 0&&Ee.childNodes[he].className.match(/^applet_scaler/)){Ie=Ee.childNodes[he];break}if(Ie!==null&&Ie.querySelector(".noscale")!==null)return;var Je=Be.id!==void 0?Be.id:"ggbApplet",Pe=window[Je];(Pe==null||!Pe.recalculateEnvironments)&&Ie!==null&&!Ie.className.match(/fullscreen/)&&(Ie.parentNode.style.transform="",!isNaN(We)&&We!==1?(Ie.parentNode.style.width=Be.width*We+"px",Ie.parentNode.style.height=Be.height*We+"px",$t(Ie,We)):($t(Ie,1),Ie.parentNode.style.width=Be.width+"px",Ie.parentNode.style.height=Be.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&xe(Ee),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(De).parents(".content-added-content"))}}return{responsiveResize:tt,isFlexibleWorksheetEditor:on,positionCenter:xe,getScale:Qe,scaleElement:$t}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(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 on=n.location.search;return on.indexOf(J)!=-1||on.indexOf(K)!=-1}function q(on,$t){}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||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(on){var $t=s[L].bindings;s[L].bindings=function(){for(var ne=$t?$t():{},E=on[webModule.__softPermutationId],Qe=O;Qe<E.length;Qe++){var xe=E[Qe];ne[xe[O]]=xe[P]}return ne}};var t;function u(){return v(),t}function v(){if(!t){var on=o.createElement(Q);if(on.id=L,on.style.cssText=R+S,on.tabIndex=-1,o.body.appendChild(on),t=on.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var $t=document.compatMode==U?V:W;t.write($t+X),t.close()}}}function w(on){function $t(E){function Qe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var xe=Qe();if(xe){E();return}function tt(){if(!xe){if(!Qe())return;xe=!0,E(),o.removeEventListener&&o.removeEventListener(Z,tt,!1),Ee&&clearInterval(Ee)}}o.addEventListener&&o.addEventListener(Z,tt,!1);var Ee=setInterval(function(){tt()},$)}function ne(E){var Qe=u(),xe=Qe.body,tt=Qe.createElement(_);tt.language=ab,tt.crossOrigin=W,tt.src=E,webModule.__errFn&&(tt.onerror=function(){webModule.__errFn(L,new Error(bb+E))}),xe.appendChild(tt)}$t(function(){ne(on)})}webModule.__startLoadingFragment=function(on){return C(on)},webModule.__installRunAsyncCode=function(on){var $t=u(),ne=$t.body,E=$t.createElement(_);E.language=ab,E.text=on,ne.appendChild(E),ne.removeChild(E)};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(on){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(on){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(on){var $t=c[on];return $t==null?null:$t},r=d,webModule.__errFn=e}function B(){function on(Ee){var Be=Ee.lastIndexOf(rb);Be==-1&&(Be=Ee.length);var De=Ee.indexOf(sb);De==-1&&(De=Ee.length);var We=Ee.lastIndexOf(tb,Math.min(De,Be));return We>=O?Ee.substring(O,We+P):W}function $t(Ee){if(!Ee.match(/^\w+:\/\//)){var Be=o.createElement(ub);Be.src=Ee+vb,Ee=on(Be.src)}return Ee}function ne(){var Ee=__gwt_getMetaProperty(wb);return Ee!=null?Ee:W}function E(){for(var Ee=o.getElementsByTagName(_),Be=O;Be<Ee.length;++Be)if(Ee[Be].src.indexOf(xb)!=-1)return on(Ee[Be].src);return W}function Qe(){var Ee=o.getElementsByTagName(yb);return Ee.length>O?Ee[Ee.length-P].href:W}function xe(){var Ee=o.location;return Ee.href==Ee.protocol+zb+Ee.host+Ee.pathname+Ee.search+Ee.hash}var tt=ne();return tt==W&&(tt=E()),tt==W&&(tt=Qe()),tt==W&&xe()&&(tt=on(o.location.href)),tt=$t(tt),tt}function C(on){return on.match(/^\//)||on.match(/^[a-zA-Z]+:\/\//)?on:webModule.__moduleBase+on}function D(){var on=[],$t=O,ne=[],E=[];function Qe(Ee){var Be=E[Ee](),De=ne[Ee];if(Be in De)return Be;var We=[];for(var Ie in De)We[De[Ie]]=Ie;throw r&&r(Ee,We,Be),null}if(__gwt_isKnownPropertyValue=function(Ee,Be){return Be in ne[Ee]},webModule.__getPropMap=function(){var Ee={};for(var Be in ne)ne.hasOwnProperty(Be)&&(Ee[Be]=Qe(Be));return Ee},webModule.__computePropValue=Qe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var xe;try{xe=Cb;var tt=xe.indexOf(Db);tt!=-1&&($t=parseInt(xe.substring(tt+P),$),xe=xe.substring(O,tt))}catch(Ee){}return webModule.__softPermutationId=$t,C(xe+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},23216:function(on,$t,ne){"use strict";ne.d($t,{Ax:function(){return tt},Ds:function(){return Ee},KI:function(){return De},SI:function(){return xe},f1:function(){return Qe}});var E=ne(14185);function Qe(We){let Ie=!0;if(We.length>0){for(let he=0;he<We.length;he++)if(We[he].compile_success==0||!We[he].compile_success){Ie=!1;break}}else Ie=!1;return Ie}function xe(We,Ie=""){let he=[];for(let Je=0;Je<We.length;Je++){let Pe=We[Je],dt=Ie?`${Ie}/${Pe.name}`:`${Pe.name}`;he.push({title:Pe.name,type:Pe.type,isLeaf:Pe.type!=="tree",key:dt})}return he}function tt(We,Ie,he){for(let Je=0;Je<We.length;Je++){let Pe=We[Je];if(Pe.key===Ie){Pe.children=he;break}Pe.children&&tt(Pe.children,Ie,he)}return We}function Ee(We,Ie,he){let Je;return function(){let Pe=this,dt=arguments,Ze=function(){Je=null,he||We.apply(Pe,dt)},Ce=he&&!Je;clearTimeout(Je),Je=setTimeout(Ze,Ie),Ce&&We.apply(Pe,dt)}}const Be=!0,De=E.Z.API_SERVER},5622:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return Ie}});var E=ne(59301),Qe=ne(37568),xe=ne(96599),tt=ne(6767),Ee={flex:"flex___eLcnP",flex1:"flex1___yUTT7",color666:"color666___TiUhG",error:"error___gTTtv",deleteIcon:"deleteIcon___mnZW1",addIcon:"addIcon___JC5NS"},Be=ne(62772);const{TextArea:De}=Qe.default;class We extends E.Component{constructor(Je){super(Je),this.state={inputVisible:!1,EditInputIndex:-1}}render(){let{index:Je,onAnswerChange:Pe,addChildAnswer:dt,exerciseIsPublish:Ze,answers:Ce,activeOptionErrorIndex:Te,flex:_e="0 0 1000px"}=this.props;console.log("----",Ce);let{inputVisible:rt,EditInputIndex:gt}=this.state;return E.createElement("div",{className:Ee.flex},E.createElement("div",{className:`${Ee.color666} mb5 mt6`,style:{flex:"0 0 90px"}},"\u7B54\u6848(\u586B\u7A7A",Je+1,"):"),E.createElement("div",{style:{border:"1px solid #f6f6f6",flex:1,padding:10}},Ce==null?void 0:Ce.map((Pt,ht)=>E.createElement(E.Fragment,null,gt!==ht?(Pt==null?void 0:Pt.length)>0?E.createElement(xe.default,{className:"edit-tag",key:Pt,closable:!(Je===0&&ht===0),onClose:it=>{it.preventDefault(),(Ce==null?void 0:Ce.length)===1&&ht===0?this.props.deleteChildAnswermain(Je,ht):this.props.deleteChildAnswer(Je,ht)}},E.createElement("span",{onDoubleClick:it=>{this.setState({EditInputIndex:ht}),it.preventDefault()}},Pt)):E.createElement(Qe.default,{defaultValue:Pt,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:it=>{if(it.target.value.replaceAll(" ","").length<=0){tt.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Pe(Je,ht,it.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}):E.createElement(Qe.default,{defaultValue:Pt,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:it=>{if(it.target.value.replaceAll(" ","").length<=0){tt.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Pe(Je,ht,it.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}))),!rt&&E.createElement(xe.default,{className:"site-tag-plus",onClick:()=>{dt(Je),this.setState({inputVisible:!0})}},E.createElement(Be.Z,null)," \u65B0\u589E\u7B54\u6848")))}}var Ie=We},74072:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return Ze}});var E=ne(59301),Qe=ne(39116),xe=Object.defineProperty,tt=Object.defineProperties,Ee=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Ie=(Ce,Te,_e)=>Te in Ce?xe(Ce,Te,{enumerable:!0,configurable:!0,writable:!0,value:_e}):Ce[Te]=_e,he=(Ce,Te)=>{for(var _e in Te||(Te={}))De.call(Te,_e)&&Ie(Ce,_e,Te[_e]);if(Be)for(var _e of Be(Te))We.call(Te,_e)&&Ie(Ce,_e,Te[_e]);return Ce},Je=(Ce,Te)=>tt(Ce,Ee(Te)),Pe=(Ce,Te,_e)=>Ie(Ce,typeof Te!="symbol"?Te+"":Te,_e);const dt="\u2581";class Ze extends E.Component{constructor(){super(...arguments),Pe(this,"getChCountBeforeCursor",(Te,_e)=>{const rt=_e.line;let gt=0;for(let ht=0;ht<rt;ht++)gt+=Te.getLine(ht).split(dt).length-1;const Pt=Te.getLine(rt).substring(0,_e.ch);return gt+=Pt.split(dt).length-1,gt}),Pe(this,"onCMBeforeChange",(Te,_e)=>{const rt=Te.getRange(_e.from,_e.to);let gt=0;if(_e.text.forEach(Pt=>{gt+=Pt.split(dt).length-1}),rt&&rt.indexOf(dt)!=-1){const Pt=rt.split(dt).length-1,ht=this.getChCountBeforeCursor(Te,_e.from);console.log(`\u5220\u9664${Pt}\u4E2A\uFF0C \u4E4B\u524D\u6709${ht}\u4E2A\uFF0C\u65B0\u589E${gt}\u4E2A`),this.props.deleteEmptyDisabled?_e.cancel():this.props.onPlaceholderChange&&this.props.onPlaceholderChange(ht,Pt,gt)}else if(gt){const Pt=this.getChCountBeforeCursor(Te,_e.from);console.log(`\u65B0\u589E${gt}\u4E2A\uFF0C\u4E4B\u524D\u6709${Pt}\u4E2A`),this.props.onPlaceholderChange&&this.props.onPlaceholderChange(Pt,0,gt)}})}render(){return E.createElement(Qe.Z,Je(he({},this.props),{onCMBeforeChange:this.onCMBeforeChange}))}}},40254:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return Je}});var E=ne(59301),Qe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},xe=ne(92310),tt=ne.n(xe),Ee=ne(29787),Be=ne(2859),De=ne(49317),We=ne(76406),Ie=(Pe,dt,Ze)=>new Promise((Ce,Te)=>{var _e=Pt=>{try{gt(Ze.next(Pt))}catch(ht){Te(ht)}},rt=Pt=>{try{gt(Ze.throw(Pt))}catch(ht){Te(ht)}},gt=Pt=>Pt.done?Ce(Pt.value):Promise.resolve(Pt.value).then(_e,rt);gt((Ze=Ze.apply(Pe,dt)).next())}),Je=({data:Pe,className:dt,fullWidth:Ze,style:Ce={},onClose:Te,onOk:_e,showFullTools:rt,noAssociationId:gt})=>{const Pt=(0,E.useRef)(null),ht=(0,E.useRef)(null),it=(0,E.useRef)(null),nt=(0,E.useRef)(null),[Fe,kt]=(0,E.useState)(!1),[lt,et]=(0,E.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,E.useEffect)(()=>(it.current||(it.current=document.createElement("style"),document.head.appendChild(it.current)),Pe!=null&&Pe.visible?(document.body.setAttribute("data-custom","y-hidden"),it.current.innerHTML=" html { overflow-y: hidden; }",Pe!=null&&Pe.src&&St()):(document.body.removeAttribute("data-custom"),it.current&&(document.head.removeChild(it.current),it.current=null)),()=>{document.body.removeAttribute("data-custom"),it.current&&(document.head.removeChild(it.current),it.current=null)}),[Pe==null?void 0:Pe.visible]);const St=()=>Ie(void 0,null,function*(){kt(!0),et("\u6B63\u5728\u52A0\u8F7D\u4E2D");const se=yield(0,We.ZJ)(Pe==null?void 0:Pe.src);Pt.current.src="",Pt.current.src=se,Pt.current.onload=function(){ze()},kt(!1),et("")}),Me=se=>Ie(void 0,null,function*(){kt(!0),et("\u6B63\u5728\u4FDD\u5B58\u4E2D");const qe=yield(0,De.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Pe.title,file:se.dataUrl}});qe!=null&&qe.id&&!gt?(yield(0,De.ZP)(`/api/attachments/${Pe.id}/add_subitem.json`,{method:"post",body:{subitem_id:qe==null?void 0:qe.id,settings:JSON.stringify(se.state)}})).status===0&&_e():qe!=null&&qe.id&&_e(qe),kt(!1),et("")}),Ke=()=>{const se=document.querySelector('a[href="https://markerjs.com/"]');se&&se.parentNode&&(se.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Le=>{const Ae=document.querySelector(Le.name);Ae&&Ae.setAttribute("title",Le.title)})},ze=()=>{ht.current=new Be.hP(Pt.current),ht.current.targetRoot=nt.current,ht.current.addEventListener("render",Me),ht.current.addEventListener("beforeclose",Te),rt&&(ht.current.availableMarkerTypes=ht.current.ALL_MARKER_TYPES,ht.current.uiStyleSettings.redoButtonVisible=!0,ht.current.uiStyleSettings.notesButtonVisible=!0,ht.current.uiStyleSettings.zoomButtonVisible=!0,ht.current.uiStyleSettings.zoomOutButtonVisible=!0,ht.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ht.current.uiStyleSettings,ht.current.show(),Pe!=null&&Pe.snapshotData&&ht.current.restoreState(Pe.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ke()},300)};return E.createElement(E.Fragment,null,(Pe==null?void 0:Pe.visible)&&E.createElement(Ee.Z,{spinning:Fe,tip:lt,style:{position:"absolute",width:"100vw"}},E.createElement("div",{ref:nt,className:tt()(Qe.imageDimensions,dt,Ze?Qe.fullWidth:""),style:Ce},E.createElement("img",{className:Qe.img,ref:Pt}))))}},9057:function(on,$t,ne){"use strict";var E=ne(59301),Qe=ne(77019),xe=ne(5269),tt=ne(31691),Ee=ne(7939),Be=ne(35883),De=ne(74501),We=ne(48136),Ie=ne(59301);const he=(0,E.forwardRef)(({callback:Je,showSaveButton:Pe,value:dt=""},Ze)=>{const Ce=(0,E.useRef)(),Te=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],_e=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],rt=ht=>{Ce.current.setValue(Ce.current.getValue()+" "+ht.value+" ")},gt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ie.createElement(Qe.Z,{className:De.Z.lists,gutter:[10,10]},Te.map((ht,it)=>Ie.createElement(xe.Z,{flex:"110px",className:De.Z.item},Ie.createElement("div",null,Ie.createElement(Be.Z,{value:`$$${ht.value}$$`}),ht.name),Ie.createElement("div",{className:De.Z.children},ht.children.map((nt,Fe)=>Ie.createElement("div",{key:Fe},Ie.createElement("h1",null,nt.name),Ie.createElement(Qe.Z,{gutter:[10,10]},nt.data.map((kt,lt)=>Ie.createElement(xe.Z,{key:lt,onClick:()=>rt(kt),className:De.Z.diamond},Ie.createElement(Be.Z,{value:"`$$"+kt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ie.createElement(Qe.Z,{className:De.Z.lists,gutter:[10,10]},_e.map((ht,it)=>Ie.createElement(xe.Z,{flex:"110px",className:De.Z.item},Ie.createElement("div",null,Ie.createElement(Be.Z,{value:"`$$"+ht.value+"$$`"}),ht.name),Ie.createElement("div",{className:De.Z.children},ht.children.map((nt,Fe)=>Ie.createElement("div",{key:Fe},nt.name&&Ie.createElement("h1",null,nt.name),Ie.createElement(Qe.Z,{gutter:[10,10]},nt.data.map((kt,lt)=>Ie.createElement(xe.Z,{key:lt,onClick:()=>rt(kt),className:De.Z.diamond},Ie.createElement(Be.Z,{value:"`$$"+kt.value+"$$`"}))))))))))}],Pt=()=>{var ht=document.createElement("div");ht.innerHTML=Ce.current.getValue();var it=ht.innerText;return Je&&Je(it),it};return(0,E.useImperativeHandle)(Ze,()=>({getData:Pt})),Ie.createElement("div",{className:De.Z.mathWrap},Ie.createElement(tt.default,{defaultActiveKey:"1",items:gt}),Ie.createElement("math-field",{locale:"zh_cn",className:De.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Ce,style:{width:800,marginTop:30,fontSize:18}},dt||""),Pe&&Ie.createElement("div",{className:De.Z.button},Ie.createElement(Ee.ZP,{size:"large",onClick:Pt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});$t.Z=he},90736:function(on,$t,ne){"use strict";var E=ne(59301),Qe=ne(4977),xe=ne(7939),tt=Object.defineProperty,Ee=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,he=(Ze,Ce,Te)=>Ce in Ze?tt(Ze,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Te}):Ze[Ce]=Te,Je=(Ze,Ce)=>{for(var Te in Ce||(Ce={}))We.call(Ce,Te)&&he(Ze,Te,Ce[Te]);if(De)for(var Te of De(Ce))Ie.call(Ce,Te)&&he(Ze,Te,Ce[Te]);return Ze},Pe=(Ze,Ce)=>Ee(Ze,Be(Ce));const dt=({img:Ze,buttonProps:Ce={},styles:Te={},customText:_e,ButtonText:rt,ButtonClick:gt,Buttonclass:Pt,ButtonTwo:ht,imgStyles:it,loading:nt=!1,className:Fe=""})=>E.createElement("section",{className:`tc animated fadeIn ${Fe}`,style:Je({color:"#999",margin:"100px auto",visibility:nt?"hidden":"visible"},Te)},E.createElement("img",{src:Ze||Qe,style:Pe(Je({},it),{pointerEvents:"none",userSelect:"none"})}),E.createElement("p",{className:"mt20 font14"},_e||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),rt&&E.createElement(xe.ZP,Je({className:Pt,onClick:gt},Ce),rt),ht&&ht);$t.Z=dt},86974:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return Pt}});var E=ne(59301),Qe={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},xe=ne(7939),tt=ne(70557),Ee=ne(34728),Be=ne(25399),De=ne(76406),We=ne(84849),Ie=ne(90736),he=ne(14185),Je=ne(52078),Pe=ne(59301),dt=Object.defineProperty,Ze=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,_e=(ht,it,nt)=>it in ht?dt(ht,it,{enumerable:!0,configurable:!0,writable:!0,value:nt}):ht[it]=nt,rt=(ht,it)=>{for(var nt in it||(it={}))Ce.call(it,nt)&&_e(ht,nt,it[nt]);if(Ze)for(var nt of Ze(it))Te.call(it,nt)&&_e(ht,nt,it[nt]);return ht},gt=(ht,it,nt)=>new Promise((Fe,kt)=>{var lt=Me=>{try{St(nt.next(Me))}catch(Ke){kt(Ke)}},et=Me=>{try{St(nt.throw(Me))}catch(Ke){kt(Ke)}},St=Me=>Me.done?Fe(Me.value):Promise.resolve(Me.value).then(lt,et);St((nt=nt.apply(ht,it)).next())}),Pt=({editOffice:ht="view",data:it,issaver:nt,onSaver:Fe,theme:kt,type:lt,filename:et,monacoEditor:St,className:Me,style:Ke,close:ze,onClose:se,hasMask:qe,disabledDownload:Le,onImgDimensions:Ae,showNodata:ct,recordInfo:ye})=>{const[ce,Ue]=(0,E.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[It,bt]=(0,E.useState)(""),[ge,He]=(0,E.useState)(),Ge=window.ENV==="build"?"/react/build":"",Tt=location.host.startsWith("localhost")?he.Z.PROXY_SERVER:he.Z.API_SERVER,Lt=10*(1024*1024),$e=(0,E.useRef)();it!=null&&it.startsWith("/api")&&lt!=="txt"&&(it=he.Z.API_SERVER+it);const At=ue=>ue.substring(ue.lastIndexOf("/")+1).split(".").pop();et&&St&&(St.filename=et),(0,E.useEffect)(()=>{var ue,re;const ve=(re=(ue=document.cookie)==null?void 0:ue.replace(/\s/g,""))==null?void 0:re.split(";");ve==null||ve.map(we=>{let ft=we.split("=");ft[0]==="_educoder_session"&&bt(ft[1])})},[]),(0,E.useEffect)(()=>{lt==="office"&&(it.indexOf("bigfilescdn.")>-1||it.indexOf("bigfiles1")>-1?He({url:it,fileType:At(it),model:it.indexOf("model=edit")?"edit":"view"}):it.indexOf("coze")>-1?He({url:it,fileType:"doc",model:"view"}):ae())},[lt,it]);function st(ue){return gt(this,null,function*(){ue.data.type==="pdfdata"&&(Fe(ue.data.data),window.removeEventListener("message",st,!1)),console.log("mess---:",ue.data)})}const ae=()=>gt(void 0,null,function*(){console.log("data:",it);let ue=it;it.startsWith("http")||(ue=location.origin+ue);let re=new URL(ue).pathname.split("/").pop();const ve=yield(0,We.gJ)({attachment_id:re});ve.url=Tt+ve.url,He(ve)}),te=()=>{if(it.startsWith("http")||it.startsWith("blob:")){ee();return}(0,De.Sv)(et||"educoder",it,et)},ee=()=>{ye&&(0,Je.fc)({id:ye==null?void 0:ye.id,watch_type:1,course_id:ye==null?void 0:ye.course_id}),(0,De.Nd)(et||"educoder",decodeURIComponent(it))};(0,E.useEffect)(()=>(window.addEventListener("message",oe),()=>{window.removeEventListener("message",oe)}),[]);const oe=ue=>{var re;((re=ue==null?void 0:ue.data)==null?void 0:re.type)==="closePop"&&se()};return Pe.createElement("div",{style:rt({},Ke||{}),className:`${qe&&Qe.bgBlack} ${lt?Qe.wrp:"hide"}`},!!lt&&ze&&Pe.createElement("div",{id:"closePop",className:Qe.close,ref:$e},!!Ae&&Pe.createElement(Be.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>$e.current},Pe.createElement("span",{onClick:()=>{se(),Ae()}},Pe.createElement("i",{className:"icon-yulanpizhu"}))),!Le&&window.parent===window&&Pe.createElement(Be.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>$e.current},Pe.createElement("span",{onClick:ee},Pe.createElement("i",{className:"icon-quxiaozhiding"}))),nt&&Pe.createElement(Be.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>$e.current},Pe.createElement("span",{className:"",onClick:()=>{const ue=document.getElementById("pdfiframe");window.addEventListener("message",st,!1),setTimeout(()=>{ue.contentWindow.postMessage("getData","*")},300)}},Pe.createElement("i",{className:"icon-baocun"}))),Pe.createElement(Be.Z,{title:"\u5173\u95ED",getPopupContainer:()=>$e.current},Pe.createElement("span",{className:"",onClick:()=>{se()}},Pe.createElement("i",{className:"icon-guanbi1"})))),Pe.createElement("div",{className:`${Qe[Me]} ${Me} ${Qe.monaco} ${lt==="txt"?"show":"hide"}`},lt==="txt"&&Pe.createElement(Pe.Fragment,null,Pe.createElement(Ee.ZP,rt({},St)))),lt==="audio"&&Pe.createElement("audio",{controls:!0,src:`${(it==null?void 0:it.indexOf("http://"))>-1||(it==null?void 0:it.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${it}`,autoPlay:!0}),lt==="video"&&Pe.createElement(Pe.Fragment,null,(it==null?void 0:it.indexOf("http"))>-1?Pe.createElement("video",{controls:!0,src:`${it}`,autoPlay:!0}):Pe.createElement("video",{controls:!0,src:`data:video/mp4;base64,${it}`,autoPlay:!0})),lt==="office"&&ge&&Pe.createElement("iframe",{src:`${Ge}/office.html?key=${ge.key}&url=${btoa(ge.url)}&callbackUrl=${Tt+(ge.callbackUrl||"")}&fileType=${ge.fileType}&title=${ge.title||""}&model=${ht}&officeServer=${he.Z.ONLYOFFICE}&disabledDownload=${!!Le}`}),lt==="html"&&Pe.createElement("iframe",{src:it+"&disposition=inline"}),lt==="pdf"&&Pe.createElement("iframe",{id:"pdfiframe",src:`${Ge}/js/pdf/index.html?filename=${et||"educoder.pdf"}&url=${encodeURIComponent(it)}&disabledDownload=${!!Le}&model=${ht}`}),lt==="image"&&Pe.createElement("img",{src:`${(it==null?void 0:it.indexOf("http://"))>-1||(it==null?void 0:it.indexOf("https://"))>-1?"":"data:image/png;base64,"}${it}`}),(lt==="other"||lt==="download")&&Pe.createElement(Pe.Fragment,null,ct?Pe.createElement(Ie.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Pe.createElement(xe.ZP,{icon:Pe.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:te,disabled:Le},"\u4E0B\u8F7D")}):Pe.createElement(xe.ZP,{type:"primary",size:"middle",onClick:te,disabled:Le},Pe.createElement(tt.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),lt==="flowChart"&&Pe.createElement("div",{className:"embed"},Pe.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${it||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},35883:function(on,$t,ne){"use strict";ne.d($t,{z:function(){return St},Z:function(){return Me}});var E=ne(59301),Qe=ne(46214),xe=ne(20047),tt=ne(64018),Ee=ne(16471),Be=ne(14185),De=ne(76406),We=ne(15342),Ie=ne(44104),he=ne(7939),Je=ne(1012),Pe=ne(86974),dt=ne(59301),Ce=({html:Ke})=>{const ze=(0,E.useRef)(null),se=(0,E.useRef)(null),qe=`.markdown-body p {
margin: 0 0 16px 0 !important;
line-height: 28px;
white-space: pre-wrap;
}
ol,
ul,
li {
list-style-type: none
}
ol,
ul,
dl {
margin-bottom: 0px;
}
.markdown-body {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
color: #333;
overflow: hidden;
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
word-break: break-word;
font-size: 16px;
line-height: 1.6;
white-space: normal;
word-wrap: break-word;
position: relative;
}
.markdown-body ul>li {
list-style-type: disc;
}
.markdown-body ol>li {
list-style-type: decimal;
}
.markdown-body a {
background: transparent;
}
.markdown-body a:active,
.markdown-body a:hover {
outline: 0;
}
.markdown-body strong {
font-weight: bold;
}
.markdown-body h1 {
font-size: 2em;
margin: 0.67em 0;
}
.markdown-body img {
border: 0;
}
.markdown-body hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
.markdown-body pre {
overflow: auto;
}
.markdown-body code,
.markdown-body kbd,
.markdown-body pre {
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
font-size: 1em;
}
.markdown-body input {
color: inherit;
font: inherit;
margin: 0;
}
.markdown-body html input[disabled] {
cursor: default;
}
.markdown-body input {
line-height: normal;
}
.markdown-body input[type="checkbox"] {
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
}
.markdown-body table {
border-collapse: collapse;
border-spacing: 0;
}
.markdown-body td,
.markdown-body th {
padding: 0;
}
.markdown-body * {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body input {
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
}
.markdown-body a {
color: #4183c4;
text-decoration: none;
}
.markdown-body a:hover,
.markdown-body a:active {
text-decoration: underline;
}
.markdown-body hr {
height: 0;
margin: 15px 0;
overflow: hidden;
background: transparent;
border: 0;
border-bottom: 1px solid #ddd;
}
.markdown-body hr:before {
display: table;
content: "";
}
.markdown-body hr:after {
display: table;
clear: both;
content: "";
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
margin-top: 15px;
margin-bottom: 15px;
line-height: 1.1;
}
.markdown-body h1 {
font-size: 30px;
}
.markdown-body h2 {
font-size: 21px;
}
.markdown-body h3 {
font-size: 16px;
}
.markdown-body h4 {
font-size: 14px;
}
.markdown-body h5 {
font-size: 12px;
}
.markdown-body h6 {
font-size: 11px;
}
.markdown-body blockquote {
margin: 0;
}
.markdown-body ul,
.markdown-body ol {
padding: 0;
margin-top: 0;
margin-bottom: 0;
}
ul.linenums,
ol.linenums {
padding: 16px 0 0 56px !important;
}
.markdown-body ul,
.markdown-body ol {
padding-left: 2em;
}
.markdown-body ol ol,
.markdown-body ul ol {
list-style-type: lower-roman;
}
.markdown-body ul ul ol,
.markdown-body ul ol ol,
.markdown-body ol ul ol,
.markdown-body ol ol ol {
list-style-type: lower-alpha;
}
.markdown-body dd {
margin-left: 0;
}
.markdown-body code {
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-size: 12px;
}
.markdown-body pre {
margin-top: 0;
margin-bottom: 0;
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
.markdown-body .octicon {
font: normal normal 16px octicons-anchor;
line-height: 1;
display: inline-block;
text-decoration: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.markdown-body .octicon-link:before {
content: '\f05c';
}
.markdown-body>*:first-child {
margin-top: 0 !important;
}
.markdown-body>*:last-child {
margin-bottom: 0 !important;
}
.markdown-body .anchor {
position: absolute;
top: 0;
left: 0;
display: block;
padding-right: 6px;
padding-left: 30px;
margin-left: -30px;
}
.markdown-body .anchor:focus {
outline: none;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
position: relative;
margin-top: 1em;
margin-bottom: 16px;
font-weight: bold;
line-height: 1.4;
}
.markdown-body h1 .octicon-link,
.markdown-body h2 .octicon-link,
.markdown-body h3 .octicon-link,
.markdown-body h4 .octicon-link,
.markdown-body h5 .octicon-link,
.markdown-body h6 .octicon-link {
display: none;
color: #000;
vertical-align: middle;
}
.markdown-body h1:hover .anchor,
.markdown-body h2:hover .anchor,
.markdown-body h3:hover .anchor,
.markdown-body h4:hover .anchor,
.markdown-body h5:hover .anchor,
.markdown-body h6:hover .anchor {
padding-left: 8px;
margin-left: -30px;
text-decoration: none;
}
.markdown-body h1:hover .anchor .octicon-link,
.markdown-body h2:hover .anchor .octicon-link,
.markdown-body h3:hover .anchor .octicon-link,
.markdown-body h4:hover .anchor .octicon-link,
.markdown-body h5:hover .anchor .octicon-link,
.markdown-body h6:hover .anchor .octicon-link {
display: inline-block;
}
.markdown-body h1 {
padding-bottom: 0.3em;
font-size: 2.25em;
line-height: 1.2;
border-bottom: 1px solid #eee;
}
.markdown-body h1 .anchor {
line-height: 1;
}
.markdown-body h2 {
padding-bottom: 0.3em;
font-size: 1.75em;
line-height: 1.225;
border-bottom: 1px solid #eee;
}
.markdown-body h2 .anchor {
line-height: 1;
}
.markdown-body h3 {
font-size: 1.5em;
line-height: 1.43;
}
.markdown-body h3 .anchor {
line-height: 1.2;
}
.markdown-body h4 {
font-size: 1.25em;
}
.markdown-body h4 .anchor {
line-height: 1.2;
}
.markdown-body h5 {
font-size: 1em;
}
.markdown-body h5 .anchor {
line-height: 1.1;
}
.markdown-body h6 {
font-size: 1em;
color: #777;
}
.markdown-body h6 .anchor {
line-height: 1.1;
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}
.markdown-body ul ul,
.markdown-body ul ol,
.markdown-body ol ol,
.markdown-body ol ul {
margin-top: 0;
margin-bottom: 0;
}
.markdown-body li>p {
margin-top: 16px;
}
.markdown-body dl {
padding: 0;
}
.markdown-body dl dt {
padding: 0;
margin-top: 16px;
font-size: 1em;
font-style: italic;
font-weight: bold;
}
.markdown-body dl dd {
padding: 0 16px;
margin-bottom: 16px;
}
.markdown-body blockquote {
padding: 0 15px;
color: #777;
border-left: 4px solid #ddd;
}
.markdown-body blockquote> :first-child {
margin-top: 0;
}
.markdown-body blockquote> :last-child {
margin-bottom: 0;
}
.markdown-body table {
display: block;
width: 100%;
overflow: auto;
word-break: normal;
word-break: keep-all;
}
.markdown-body table th {
font-weight: bold;
text-align: revert;
}
.markdown-body table th,
.markdown-body table td {
padding: 6px 13px;
border: 1px solid #ddd;
}
.markdown-body table tr {
background-color: #fff;
border-top: 1px solid #ccc;
}
.markdown-body table tr:nth-child(2n) {
background-color: #f8f8f8;
}
.markdown-body img {
max-width: 100%;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body code {
padding: 0;
padding-top: 0.2em;
padding-bottom: 0.2em;
margin: 0;
font-size: 85%;
background-color: rgba(0, 0, 0, 0.04);
border-radius: 3px;
}
.markdown-body code:has(.katex) {
background-color: transparent;
}
.markdown-body code:before,
.markdown-body code:after {
letter-spacing: -0.2em;
content: "\\00a0";
}
.markdown-body pre>code {
padding: 0;
margin: 0;
font-size: 100%;
word-break: normal;
white-space: pre;
background: transparent;
border: 0;
}
.markdown-body .highlight {
margin-bottom: 16px;
}
.markdown-body .highlight pre,
.markdown-body pre {
padding: 16px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: #f7f7f7;
border-radius: 3px;
}
.markdown-body .highlight pre {
margin-bottom: 0;
word-break: normal;
}
.markdown-body pre {
word-wrap: normal;
}
.markdown-body pre code {
display: inline;
max-width: initial;
padding: 0;
margin: 0;
overflow: initial;
line-height: inherit;
word-wrap: normal;
background-color: transparent;
border: 0;
}
.markdown-body pre code:before,
.markdown-body pre code:after {
content: normal;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font-size: 11px;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .pl-c {
color: #969896;
}
.markdown-body .pl-c1,
.markdown-body .pl-mdh,
.markdown-body .pl-mm,
.markdown-body .pl-mp,
.markdown-body .pl-mr,
.markdown-body .pl-s1 .pl-v,
.markdown-body .pl-s3,
.markdown-body .pl-sc,
.markdown-body .pl-sv {
color: #0086b3;
}
.markdown-body .pl-e,
.markdown-body .pl-en {
color: #795da3;
}
.markdown-body .pl-s1 .pl-s2,
.markdown-body .pl-smi,
.markdown-body .pl-smp,
.markdown-body .pl-stj,
.markdown-body .pl-vo,
.markdown-body .pl-vpf {
color: #333;
}
.markdown-body .pl-ent {
color: #63a35c;
}
.markdown-body .pl-k,
.markdown-body .pl-s,
.markdown-body .pl-st {
color: #a71d5d;
}
.markdown-body .pl-pds,
.markdown-body .pl-s1,
.markdown-body .pl-s1 .pl-pse .pl-s2,
.markdown-body .pl-sr,
.markdown-body .pl-sr .pl-cce,
.markdown-body .pl-sr .pl-sra,
.markdown-body .pl-sr .pl-sre,
.markdown-body .pl-src {
color: #df5000;
}
.markdown-body .pl-mo,
.markdown-body .pl-v {
color: #1d3e81;
}
.markdown-body .pl-id {
color: #b52a1d;
}
.markdown-body .pl-ii {
background-color: #b52a1d;
color: #f8f8f8;
}
.markdown-body .pl-sr .pl-cce {
color: #63a35c;
font-weight: bold;
}
.markdown-body .pl-ml {
color: #693a17;
}
.markdown-body .pl-mh,
.markdown-body .pl-mh .pl-en,
.markdown-body .pl-ms {
color: #1d3e81;
font-weight: bold;
}
.markdown-body .pl-mq {
color: #008080;
}
.markdown-body .pl-mi {
color: #333;
font-style: italic;
}
.markdown-body .pl-mb {
color: #333;
font-weight: bold;
}
.markdown-body .pl-md,
.markdown-body .pl-mdhf {
background-color: #ffecec;
color: #bd2c00;
}
.markdown-body .pl-mdht,
.markdown-body .pl-mi1 {
background-color: #eaffea;
color: #55a532;
}
.markdown-body .pl-mdr {
color: #795da3;
font-weight: bold;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .task-list-item {
list-style-type: none;
}
.markdown-body .task-list-item+.task-list-item {
margin-top: 3px;
}
.markdown-body .task-list-item input {
float: left;
margin: 0.3em 0 0.25em -1.6em;
vertical-align: middle;
}
.markdown-body :checked+.radio-label {
z-index: 1;
position: relative;
border-color: #4183c4;
}
/*! Pretty printing styles. Used with prettify.js. */
/* SPAN elements with the classes below are added by prettyprint. */
.pln {
color: #000
}
/* plain text */
@media screen {
.str {
color: #080
}
/* string content */
.kwd {
color: #008
}
/* a keyword */
.com {
color: #800
}
/* a comment */
.typ {
color: #606
}
/* a type name */
.lit {
color: #066
}
/* a literal value */
/* punctuation, lisp open bracket, lisp close bracket */
.pun,
.opn,
.clo {
color: #660
}
.tag {
color: #008
}
/* a markup tag name */
.atn {
color: #606
}
/* a markup attribute name */
.atv {
color: #080
}
/* a markup attribute value */
.dec,
.var {
color: #606
}
/* a declaration; a variable name */
.fun {
color: red
}
/* a function name */
}
/* Use higher contrast and text-weight for printable form. */
@media print,
projection {
.str {
color: #060
}
.kwd {
color: #006;
font-weight: bold
}
.com {
color: #600;
font-style: italic
}
.typ {
color: #404;
font-weight: bold
}
.lit {
color: #044
}
.pun,
.opn,
.clo {
color: #440
}
.tag {
color: #006;
font-weight: bold
}
.atn {
color: #404
}
.atv {
color: #060
}
}
/* Put a border around prettyprinted code snippets. */
pre.prettyprint {
padding: 2px;
/* border: 1px solid #888 */
}
/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
margin-top: 0;
margin-bottom: 0
}
/* IE indents via margin-left */
li.L0,
li.L1,
li.L2,
li.L3,
li.L5,
li.L6,
li.L7,
li.L8 {
list-style-type: none
}
/* Alternate shading for lines */
li.L1,
li.L3,
li.L5,
li.L7,
li.L9 {
background: #eee
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}`;return(0,E.useEffect)(()=>{const Le=ze.current.attachShadow({mode:"open"});se.current=document.createElement("div"),se.current.className="markdown-body",se.current.innerHTML=Ke,Le.appendChild(se.current);const Ae=document.createElement("style");return Ae.textContent=qe,Le.appendChild(Ae),()=>{Le.innerHTML=""}},[]),(0,E.useEffect)(()=>{se.current&&(se.current.innerHTML=Ke)},[Ke]),dt.createElement("div",{ref:ze})};function Te(Ke){const ze=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],se=new RegExp(`\\b(${ze.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),qe=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return Ke.replace(se,"").replace(qe,"").trim()}var _e={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},rt=Object.defineProperty,gt=Object.getOwnPropertySymbols,Pt=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,it=(Ke,ze,se)=>ze in Ke?rt(Ke,ze,{enumerable:!0,configurable:!0,writable:!0,value:se}):Ke[ze]=se,nt=(Ke,ze)=>{for(var se in ze||(ze={}))Pt.call(ze,se)&&it(Ke,se,ze[se]);if(gt)for(var se of gt(ze))ht.call(ze,se)&&it(Ke,se,ze[se]);return Ke};const Fe="@\u2581\u2581@",kt="@\u2581@",lt=/<pre[^>]*>/g;function et(Ke){let ze=document.createElement("div");return ze.innerHTML=Ke,ze.childNodes.length===0?"":ze.childNodes[0].nodeValue}const St=(Ke,ze)=>{Ke=Ke||"";const se=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,qe=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Le=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ae=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return ze?Ke.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(se,(ct,ye,ce,Ue,It,bt,ge)=>{const He=ye||Ue||bt,Ge=ce||It||ge||"?";return Be.Z.API_SERVER+"/api/attachments/"+He+Ge+"&t="+(0,De.Jn)(He,Date.now())+(ct.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Ke=Ke.replace(Ae,(ct,ye,ce,Ue,It,bt,ge)=>{const He=ye||Ue||bt,Ge=ce||It||ge||"?";return Be.Z.API_SERVER+"/attachments/download/"+He+Ge+"&t="+(0,De.Jn)(He,Date.now())+(ct.indexOf(")")>-1?")":"&")}).replace(se,(ct,ye,ce,Ue,It,bt,ge)=>{const He=ye||Ue||bt,Ge=ce||It||ge||"?";return Be.Z.API_SERVER+"/api/attachments/"+He+Ge+"&t="+(0,De.Jn)(He,Date.now())+(ct.indexOf(")")>-1?")":"&")}).replace(qe,(ct,ye,ce,Ue,It)=>{const bt=ye||Ue,ge=ce||It||"";return'"'+Be.Z.API_SERVER+"/api/attachments/"+bt+ge+bt+ge+"&t="+(0,De.Jn)(bt,Date.now())}).replace(Le,(ct,ye,ce,Ue,It)=>{const bt=ye||Ue,ge=ce||It||"";return"("+Be.Z.API_SERVER+"/files/uploads/"+bt+ge+bt+ge+"&t="+(0,De.Jn)(bt,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),Ke)};var Me=({value:Ke="",edit:ze=!1,className:se,showTextOnly:qe,showLines:Le,style:Ae={},stylesPrev:ct={},highlightKeywords:ye,showProgramFill:ce,isProgramFill:Ue,disabledFill:It=!1,programFillValue:bt,openEditor:ge=()=>{},onFillChange:He=wt=>{},onFillBlur:Ge=()=>{},onFillFocus:Tt=()=>{}})=>{let wt=Te(String(Ke||""));const Lt=(0,E.useRef)(),$e=(0,E.useRef)(),[At,st]=(0,E.useState)(""),[ae,te]=(0,E.useState)("office"),[ee,oe]=(0,E.useState)([]),ue=(0,E.useRef)("a"+(0,Je.Z)()),re={},ve=Dt=>/<style[\s\S]*?>/i.test(Dt||""),we=(Dt,tn,Vt)=>{const je=document.createElement(Dt===kt?"input":"textarea");je.style.width="100%",je.style.height=Dt===kt?"40px":"151px",je.rows=5,je.spellcheck=!1,je.name="edu-program-fill",je.placeholder="\u8BF7\u8F93\u5165",je.dataset.id=tn;const pt=Object.keys(re).length;return re[pt]=je,`<span class="edu-program-fill-wrap ${Dt===kt?"":"show"}" style="width:${Dt===kt?"600px":"100%"}" title=${Vt||""}><span>${je.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function ft(Dt){return Dt=Dt.replace(/!\[.*?\]\(.*?\)/g,""),Dt=Dt.replace(/\[.*?\]\(.*?\)/g,""),Dt=Dt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Dt=Dt.replace(/<embed.*?>/g,""),Dt=Dt.replace(/<img.*?>/g,""),Dt=Dt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Dt=Dt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Dt=Dt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Dt=Dt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Dt}const Oe=Dt=>!qe&&ve(wt)?Dt:Dt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(tn,Vt){let je=Vt.replace(/(\n|\r)/g,"").split("}"),pt=[];return je.map(Ft=>{Ft!=""&&pt.push(`.${ue.current} ${Ft}`)}),`<style>${pt.join("}")}</style>`}),Ye=(0,E.useMemo)(()=>{(0,xe.Iy)();try{const je=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,pt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ft=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,jt=/\(\/attachments\/download\//g;wt=wt.replace(jt,"("+Be.Z.API_SERVER+"/attachments/download/").replace(je,"("+Be.Z.API_SERVER+"/api/attachments/").replace(pt,'"'+Be.Z.API_SERVER+"/api/attachments/").replace(Ft,'"'+Be.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),Lt.current.style.display="none"}catch(je){}if(ce){let je=-1;return wt=wt.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(pt,Ft,jt){var Ne;return++je,we(pt,je,(Ne=bt==null?void 0:bt[je])==null?void 0:Ne.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${Oe(wt||"")}</pre>`}let Dt=Oe(wt);Dt=(0,xe.ZP)(Dt);const tn=(0,xe.ez)();wt.match(/\[TOC\]/)&&(Dt=Dt.replace("<p>[TOC]</p>",(0,xe.Qv)()),(0,xe.Iy)()),Dt=Dt.replace(/(__special_katext_id_\d+__)/g,(je,pt)=>{const{type:Ft,expression:jt}=tn[pt];return(0,We.renderToString)(et(jt)||"",{displayMode:Ft==="block",throwOnError:!1,output:"html"})}),Dt=Dt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,xe.AL)();const Vt=document.createElement("div");if(Vt.innerHTML=Dt,qe)return Vt.innerText;if(ye){const je=ye.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Ut(Vt,je),Vt.innerHTML}return setTimeout(()=>ln(),500),Vt.innerHTML},[wt,ye]);(0,E.useEffect)(()=>{Wt.current&&Wt.current.querySelectorAll(["input","textarea"]).forEach(tn=>{tn.oninput=mt,tn.onblur=Bt,tn.onfocus=Et})},[ee]),(0,E.useEffect)(()=>{var Dt,tn,Vt,je,pt;if(bt!=null&&bt.length)try{const Ft=Wt.current.querySelectorAll(".edu-program-fill-score"),jt=Wt.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ne,ot]of jt.entries())ot.value=((Dt=bt==null?void 0:bt[Ne])==null?void 0:Dt.value)||"",((tn=bt==null?void 0:bt[Ne])==null?void 0:tn.type)==="warning"?ot.className="program-fill-warning":((Vt=bt==null?void 0:bt[Ne])==null?void 0:Vt.type)==="success"?ot.className="program-fill-success":ot.className="";for(const[Ne,ot]of Ft.entries())ot.innerHTML=(je=bt==null?void 0:bt[Ne])!=null&&je.score?`${(pt=bt==null?void 0:bt[Ne])==null?void 0:pt.score}\u5206`:"";oe(bt)}catch(Ft){console.log(Ft,"error")}},[bt]);const mt=Dt=>{ee[Dt.target.dataset.id]=ee[Dt.target.dataset.id]||{},ee[Dt.target.dataset.id].value=Dt.target.value,oe([...ee]),He(ee,Dt.target.dataset.id)},Bt=Dt=>{ee[Dt.target.dataset.id]=ee[Dt.target.dataset.id]||{},ee[Dt.target.dataset.id].value=Dt.target.value,oe([...ee]),Ge(ee,Dt.target.dataset.id)},Et=Dt=>{ee[Dt.target.dataset.id]=ee[Dt.target.dataset.id]||{},ee[Dt.target.dataset.id].value=Dt.target.value,oe([...ee]),Tt(ee,Dt.target.dataset.id)};function Ut(Dt,tn){return Dt.childNodes.forEach(Vt=>{var je;if(Vt.childNodes.length>0)Ut(Vt,tn);else if(Vt.nodeName!=="IMG")if(Vt.innerHTML)Vt.innerHTML=(je=Vt.innerHTML)==null?void 0:je.replace(new RegExp(tn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const pt=document.createElement("span");pt.innerHTML=Vt.textContent.replace(new RegExp(tn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Vt.replaceWith(pt)}})}const Wt=(0,E.useRef)();xe.jb.WebkitLineClamp=Le,Le&&(Ae=nt(nt({},Ae),xe.jb));function Ht(Dt){let tn=Dt.target;if(tn.tagName.toUpperCase()==="A"){let Vt=tn.getAttribute("href");if(Vt.indexOf("office")>-1)Dt.preventDefault(),st(Vt),te("office");else if(Vt.indexOf("application/pdf")>-1)Dt.preventDefault(),st(Vt),te("pdf");else if(Vt.indexOf("text/html")>-1)Dt.preventDefault(),st(Vt),te("html");else if(Vt.startsWith("#")){Dt.preventDefault();let je=document.getElementById(Vt.replace("#",""));je&&je.scrollIntoView(!0)}}}const ln=()=>{var Dt;const tn=(Dt=Wt.current)==null?void 0:Dt.querySelectorAll("video");tn==null||tn.forEach(Vt=>{if(Vt.oncontextmenu=()=>!1,Vt.src.indexOf(".m3u8")>-1&&!Vt.canPlayType("application/vnd.apple.mpegurl")){if(Ee.ZP.isSupported()){var je=new Ee.ZP;je.loadSource(Vt.src),je.attachMedia(Vt)}}})};(0,E.useEffect)(()=>{if(Wt.current&&Ye&&Ye.match(lt)&&window.PR.prettyPrint(),Wt.current)return Wt.current.addEventListener("click",Ht),()=>{var Dt;(Dt=Wt.current)==null||Dt.removeEventListener("click",Ht),(0,xe.AL)(),(0,xe.Iy)()}},[Ye,Wt.current,Ht]);const qt=Dt=>{Dt.target.nodeName==="IMG"&&Dt.target.className.indexOf("draw-flowchart")>-1?(Lt.current.style.zIndex=1,Lt.current.style.display="flex",Lt.current.style.width=Dt.target.clientWidth+"px",Lt.current.style.height=Dt.target.clientHeight+"px",Lt.current.style.top=Dt.target.offsetTop+"px",Lt.current.style.left=Dt.target.offsetLeft+"px",Dt.target.id&&($e.current=Dt.target.id)):Lt.current.style.display="none"},sn=()=>{Lt.current.style.display="none"};return(0,E.useEffect)(()=>{var Dt;const tn=Vt=>{Vt.preventDefault(),Vt.clipboardData.setData("text",window.getSelection().toString())};return(Dt=Wt.current)==null||Dt.addEventListener("copy",tn),()=>{var Vt;(Vt=Wt.current)==null||Vt.removeEventListener("copy",tn)}},[Wt.current]),E.createElement("div",{style:{position:"relative"},onMouseLeave:sn},qe&&E.createElement("div",{ref:Wt,className:`${_e.mdBody} `},Ye),!qe&&!ve(Ye)&&E.createElement("div",{ref:Wt,style:nt({},Ae),onMouseOver:qt,className:`${se||""} ${It?"disabled-fill":""} markdown-body ${_e.mdBody} ${ue.current}`,dangerouslySetInnerHTML:{__html:Ye}}),!qe&&ve(Ye)&&E.createElement(Ce,{html:Ye}),E.createElement("div",{ref:Lt,className:`${_e.button} ${ze?"":_e.previewFlowChart}`},E.createElement(Ie.Z,null,E.createElement(he.ZP,{onClick:()=>{ze?ge($e.current):(st($e.current),te("flowChart"))}},ze?"\u7F16\u8F91":"\u9884\u89C8"))),E.createElement(Pe.Z,{close:!0,data:At,type:At!=null&&At.length?ae:"",style:nt({},ct),onClose:()=>st("")}))}},28267:function(on,$t,ne){"use strict";ne.d($t,{h:function(){return ht}});var E=ne(59301),Qe=ne(82326),xe=ne(28284),tt=ne(7939),Ee=ne(89780),Be=ne.n(Ee),De=ne(88319),We=ne(94896),Ie=Object.defineProperty,he=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,Pe=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,Ce=(it,nt,Fe)=>nt in it?Ie(it,nt,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):it[nt]=Fe,Te=(it,nt)=>{for(var Fe in nt||(nt={}))dt.call(nt,Fe)&&Ce(it,Fe,nt[Fe]);if(Pe)for(var Fe of Pe(nt))Ze.call(nt,Fe)&&Ce(it,Fe,nt[Fe]);return it},_e=(it,nt)=>he(it,Je(nt));const rt=Qe.default.Option,gt={labelCol:{span:4},wrapperCol:{span:20}},Pt={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"]};$t.Z=({callback:it,onCancel:nt})=>{const[Fe,kt]=(0,E.useState)("python");function lt(St){kt(Pt[St][1])}function et(St){it(St)}return E.createElement(xe.default,_e(Te({},gt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:et,style:{width:500}}),E.createElement(xe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},E.createElement(Qe.default,{getPopupContainer:St=>St.parentNode,onChange:lt},Object.keys(Pt).map(St=>E.createElement(rt,{key:St,value:St},Pt[St][0])))),E.createElement(xe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},E.createElement(ht,{mode:Fe})),E.createElement("div",{className:"flex-container flex-end"},E.createElement(tt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(tt.ZP,{type:"ghost",onClick:nt},"\u53D6\u6D88")))};function ht({value:it,onChange:nt,mode:Fe,options:kt={}}){const lt=(0,E.useRef)(),[et,St]=(0,E.useState)();return(0,E.useEffect)(()=>{if(et){let Me=function(Ke){const ze=Ke.getValue();nt&&nt(ze)};return et.on("change",Me),()=>{et.off("change",Me)}}},[et,nt]),(0,E.useEffect)(()=>{et&&et.setOption("mode",Fe)},[et,Fe]),(0,E.useEffect)(()=>{et&&(it!==et.getValue()||it==="")&&setTimeout(()=>{et.setValue(it||"")},300)},[et,it]),(0,E.useEffect)(()=>{if(lt.current&&!et){const Me=Be().fromTextArea(lt.current,Te({mode:Fe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},kt));St(Me)}},[lt.current,et]),E.createElement("div",{className:"my-codemirror-container"},E.createElement("textarea",{ref:lt}))}},39116:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return _t}});var E=ne(59301),Qe=ne(44283),xe=ne(89780),tt=ne.n(xe),Ee=ne(76374),Be=ne(88319),De=ne(6313),We=ne(25717),Ie=ne(99498),he=ne(25419),Je=ne(67549),Pe=ne(35883),dt=({value:Ot="",className:an,showTextOnly:nn,showLines:en,style:xn={}})=>{const Pn=(0,E.useMemo)(()=>"",[Ot]);return E.createElement(E.Fragment,null,E.createElement("div",{dangerouslySetInnerHTML:{__html:Pn}}))},Ze=Object.defineProperty,Ce=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,Pt=(Ot,an,nn)=>an in Ot?Ze(Ot,an,{enumerable:!0,configurable:!0,writable:!0,value:nn}):Ot[an]=nn,ht=(Ot,an)=>{for(var nn in an||(an={}))rt.call(an,nn)&&Pt(Ot,nn,an[nn]);if(_e)for(var nn of _e(an))gt.call(an,nn)&&Pt(Ot,nn,an[nn]);return Ot},it=(Ot,an)=>Ce(Ot,Te(an));let nt=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Fe({onActionCallback:Ot,title:an,icon:nn,actionName:en,className:xn="",children:Pn}){function Cn(){Ot(en)}return E.createElement("a",{title:an,className:xn,onClick:Cn},E.createElement("i",{className:`${nn}`}),Pn)}var kt=({watch:Ot,showNullButton:an,showNullProgramButton:nn,onActionCallback:en,fullScreen:xn,insertTemp:Pn,hidetoolBar:Cn,extraUse:Nn})=>{const An=[...nt,{title:`${Ot?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Ot?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return E.createElement("ul",{className:"markdown-toolbar-container"},!Cn&&An.map((Qn,zn)=>E.createElement("li",{key:zn},Qn.actionName?E.createElement(Fe,it(ht({},Qn),{onActionCallback:en})):E.createElement("span",{className:"v-line"}))),an?E.createElement("li",null,E.createElement(Fe,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:en},E.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,nn?E.createElement(E.Fragment,null,E.createElement("li",null,E.createElement(Fe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:en},E.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),E.createElement("li",null,E.createElement(Fe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:en},E.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Pn&&E.createElement("li",null,E.createElement(Fe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Pn}`,onActionCallback:en},E.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Nn&&E.createElement("li",null,Nn),E.createElement("li",{className:"btn-full-screen"},E.createElement(Fe,{icon:`${xn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:xn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:en})))},lt=ne(88487),et=ne(28284),St=ne(37568),Me=ne(7939),Ke=Object.defineProperty,ze=Object.defineProperties,se=Object.getOwnPropertyDescriptors,qe=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,ct=(Ot,an,nn)=>an in Ot?Ke(Ot,an,{enumerable:!0,configurable:!0,writable:!0,value:nn}):Ot[an]=nn,ye=(Ot,an)=>{for(var nn in an||(an={}))Le.call(an,nn)&&ct(Ot,nn,an[nn]);if(qe)for(var nn of qe(an))Ae.call(an,nn)&&ct(Ot,nn,an[nn]);return Ot},ce=(Ot,an)=>ze(Ot,se(an));const Ue={labelCol:{span:4},wrapperCol:{span:20}};var It=({callback:Ot,onCancel:an})=>{function nn(en){Ot(en)}return E.createElement(et.default,ce(ye({},Ue),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:nn,style:{width:500}}),E.createElement(et.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},E.createElement(St.default,null)),E.createElement(et.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},E.createElement(St.default,null)),E.createElement("div",{className:"flex-container flex-end"},E.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(Me.ZP,{type:"ghost",onClick:an},"\u53D6\u6D88")))},bt=ne(28267),ge=ne(53332),He=ne(62957),Ge=ne(77019),Tt=ne(40254),wt=ne(59301),Lt=({callback:Ot,onCancel:an})=>{const nn=document.createElement("canvas"),en=nn.getContext("2d");nn.width=1e3,nn.height=800,en.fillStyle="#ffffff",en.fillRect(0,0,nn.width,nn.height);const xn=nn.toDataURL("image/png");return wt.createElement(He.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},wt.createElement(Ge.Z,{style:{height:"100vh"}},wt.createElement(Tt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:xn,visible:!0,title:String(Date.now())},onOk:Pn=>{Ot({src:Pn.url})},onClose:an})))},$e=ne(36207),At=ne(5269),st=ne(6767),ae={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},te=ne(59301),oe=(0,E.forwardRef)(({onCancel:Ot,editImgId:an,callback:nn},en)=>{let xn=(0,E.useRef)(),Pn=(0,E.useRef)(),Cn=(0,E.useRef)(),Nn=(0,E.useRef)(!1);const An=(0,E.useRef)(!1);console.log("ref:",en);const[Qn,zn]=(0,E.useState)(0),[Nt,Qt]=(0,E.useState)("100vh");return(0,E.useEffect)(()=>{zn(1)},[]),(0,E.useImperativeHandle)(en,()=>({setHeight:Qt})),te.createElement("div",{ref:An,className:"body-overflow-initial"},te.createElement($e.Z,{width:"100vw",height:Nt,footer:null,closable:!0,placement:"bottom",open:!!Qn,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ae.drawerWrap}`,onClose:()=>{window.saveDrawData(En=>{nn({src:`/api/attachments/${En}`,id:En})})},title:te.createElement(Ge.Z,{align:"middle"},te.createElement(At.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),te.createElement(At.Z,{onClick:()=>{Qt(Nt==="60px"?"100vh":"60px")}},te.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),te.createElement(At.Z,{onClick:()=>{window.saveDrawData(En=>{if(En===null){st.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}st.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),nn({src:`/api/attachments/${En}`,id:En,disabledClose:!0})})}},te.createElement(Me.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},te.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${an||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Pn})))}),ue=ne(14185),re=ne(47889),ve=ne(4875);const we=re.ZP.Group,ft={margin:"0 8px"};var Oe=({callback:Ot,onCancel:an})=>{function nn(en){Ot(en)}return E.createElement(et.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:nn},E.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},E.createElement("span",{style:ft},"\u5355\u5143\u683C\u6570\uFF1A"),E.createElement("span",{style:ft},"\u884C\u6570"),E.createElement(et.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},E.createElement(ve.Z,null)),E.createElement("span",{style:ft},"\u5217\u6570"),E.createElement(et.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},E.createElement(ve.Z,null))),E.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},E.createElement("span",{style:ft},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),E.createElement(et.default.Item,{name:"align"},E.createElement(we,null,E.createElement(re.ZP,{value:"default"},E.createElement("i",{className:"fa fa-align-justify"})),E.createElement(re.ZP,{value:"left"},E.createElement("i",{className:"fa fa-align-left"})),E.createElement(re.ZP,{value:"center"},E.createElement("i",{className:"fa fa-align-center"})),E.createElement(re.ZP,{value:"right"},E.createElement("i",{className:"fa fa-align-right"}))))),E.createElement("div",{className:"flex-container flex-end"},E.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(Me.ZP,{type:"ghost",onClick:an},"\u53D6\u6D88")))},Ye=ne(58755),mt=ne(84915),Bt=ne.n(mt),Ut=(0,E.forwardRef)(({use3d:Ot,width:an,height:nn,callback:en,showSaveButton:xn},Pn)=>{const Cn=(0,E.useRef)(),Nn=(0,E.useRef)(),[An,Qn]=(0,E.useState)(!1),zn=(0,E.useRef)({id:Cn,appName:"graphing",width:an||1e3,height:nn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,E.useEffect)(()=>{Nn.current=new(Bt())(zn.current,!0),window.onload=function(){Nn.current.inject("applet_container")}},[]);const Nt=()=>{var Qt=window.ggbApplet.getPNGBase64(1,!0,72);return en&&en(Qt),Qt};return(0,E.useEffect)(()=>{zn.current.appName=An?"3D":"graphing",Nn.current.inject("applet_container")},[An]),(0,E.useEffect)(()=>{Qn(Ot)},[Ot]),(0,E.useImperativeHandle)(Pn,()=>({getImgData:Nt})),E.createElement(E.Fragment,null,E.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Cn}),E.createElement(Ge.Z,{align:"middle"},E.createElement(At.Z,{flex:1},E.createElement(Ye.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:An,onChange:Qt=>Qn(Qt)})),E.createElement(At.Z,null,E.createElement(Me.ZP,{size:"large",onClick:Nt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Wt=ne(9057);const Ht="link",ln="upload-image",qt="add-flowchart",sn="draw-image",Dt="add-flowchart",tn="code-block",Vt="add-table",je="------------",pt={default:je,left:`:${je}`,center:`:${je}:`,right:`${je}:`};var Ft=ne(79006),jt=ne(76406);function Ne(){}let ot=0;const yt=1e4,Mt="\u2581",Kt="@\u2581\u2581@",cn="@\u2581@",Dn=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,kn=["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 un(Ot){return/^\d+$/.test(Ot)?`${Ot}px`:Ot}const fn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Gt={[fn+"-B"]:"bold",[fn+"-I"]:"italic"},Rt={[Ht]:"\u6DFB\u52A0\u94FE\u63A5",[tn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[ln]:"\u6DFB\u52A0\u56FE\u7247",[sn]:"\u6DFB\u52A0\u753B\u56FE",[qt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Vt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var _t=({defaultValue:Ot="",onChange:an,width:nn="100%",height:en=400,miniToolbar:xn=!1,isFocus:Pn=!1,watch:Cn,insertTemp:Nn,mode:An="markdown",id:Qn="markdown-editor-id",showResizeBar:zn=!1,noStorage:Nt=!1,showNullButton:Qt=!1,showNullProgramButton:En=!1,hidetoolBar:mn=!1,fullScreen:Xe=!1,onBlur:ut,onCMBeforeChange:ke,onFullScreen:be,className:fe="",disablePaste:pe=!1,disabled:Ve=!1,disabledFill:Xt=!1,placeholder:rn="",values:Yt="",extraUse:Ct,onAddBlank:Re})=>{const[xt,Jt]=(0,E.useState)(null),[gn,On]=(0,E.useState)(Ot),[Sn,Fn]=(0,E.useState)(Cn),[Xn,qn]=(0,E.useState)(Xe),[Hn,Ln]=(0,E.useState)(""),[Rn,Zn]=(0,E.useState)(0),[or,rr]=(0,E.useState)(en),[ir,Un]=(0,E.useState)(!1),[Kn,Tn]=(0,E.useState)(0),[mr,Vn]=(0,E.useState)(0),Bn=(0,E.useRef)(),Yn=(0,E.useRef)(),Jn=(0,E.useRef)(),dr=(0,E.useRef)(),sr=(0,E.useRef)(),_n=(0,E.useRef)(),hr=(0,Qe.useDispatch)();(0,E.useEffect)(()=>{const vn=window.scrollY||window.pageYOffset;On(Yt),xt==null||xt.setValue(Yt),window.scrollTo(0,vn)},[Yt]),(0,E.useEffect)(()=>{be==null||be(Xn)},[Xn]),(0,E.useEffect)(()=>{if(Bn.current){let vn=function(jn,Wn){var vr;if(pe){Wn.preventDefault();return}const kr=Wn.clipboardData;if(kr){const Br=kr.types.toString(),Tr=kr.items;if(Br==="Files"||kr.types.indexOf("Files")>-1){if(Wn.preventDefault(),An=="stex")return;try{let Ar=Tr[1];((vr=Tr[0])==null?void 0:vr.kind)==="file"&&(Ar=Tr[0]);const Nr=Ar.getAsFile(),zr=Nr.name.split(".").pop();(0,ge.I)(Nr,Lr=>{var jr,Jr,Zr;Lr.id?((jr=Nr==null?void 0:Nr.type)==null?void 0:jr.indexOf("image"))>-1?yn.replaceSelection(`<img width="100%" src="/api/attachments/${Lr.id}?type=${Lr.content_type})" alt="" />`):((Jr=Nr==null?void 0:Nr.type)==null?void 0:Jr.indexOf("video"))>-1?yn.replaceSelection(`<video width="100%" controls src="/api/attachments/${Lr.id}"></video>`):((Zr=Nr==null?void 0:Nr.type)==null?void 0:Zr.indexOf("pdf"))>-1?yn.replaceSelection(`<a href="/api/attachments/${Lr.id}?type=${Nr.type}&disposition=inline" target="_blank">${Nr.name}</a>`):kn.includes(zr)?yn.replaceSelection(`<a href="/api/attachments/${Lr.id}?type=office&disposition=inline" target="_blank">${Nr.name}</a>`):yn.replaceSelection(`[${Nr.name}](/api/attachments/${Lr.id}?type=${Lr.content_type})`):(Lr==null?void 0:Lr.status)===401&&(document.location.href="/user/login")})}catch(Ar){st.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const yn=tt().fromTextArea(Bn.current,{mode:An,lineNumbers:!xn,lineWrapping:!0,value:Ot,autoCloseTags:!0,autoCloseBrackets:!0});return yn.on("keyup",function(jn,Wn){Wn.keyCode===8&&(jn.getValue()==""?yn.setOption("placeholder",rn):yn.setOption("placeholder",null))}),yn.on("keydown",function(jn,Wn){if(Wn.keyCode===8){var vr=pr(jn);vr&&Wn.preventDefault()}}),Pn&&yn.focus(),yn.on("paste",vn),Ve&&yn.on("beforeChange",function(jn,Wn){(Wn.origin==="paste"||Wn.origin==="+input")&&Wn.cancel()}),Jt(yn),()=>{yn.off("paste",vn)}}},[]);const ar=(0,E.useCallback)(()=>{if(Yn.current)try{}catch(vn){console.log(vn,"---- to set md editor body height")}},[or,Yn,Xn]);(0,E.useEffect)(()=>{function vn(){let yn=new Ee.Z(jn=>{for(let Wn of jn)(Wn.target.offsetHeight>0||Wn.target.offsetWidth>0)&&(ar(),xt.setSize("100%","100%"),xt.refresh())});return yn.observe(Bn.current.parentElement),yn}if(xt){const yn=vn();return()=>{var jn,Wn;(jn=Bn.current)!=null&&jn.parentElement&&yn.unobserve((Wn=Bn.current)==null?void 0:Wn.parentElement)}}},[xt,ar]),(0,E.useEffect)(()=>{if(xt){let vn=[];for(const[yn,jn]of Object.entries(Gt)){let Wn={[yn]:()=>{fr(jn)}};vn.push(Wn),xt.addKeyMap(Wn)}return()=>{for(let yn of vn)xt.removeKeyMap(yn)}}},[xt]),(0,E.useEffect)(()=>{Xe!==Xn&&qn(Xe)},[Xe]),(0,Ft.Z)(()=>{if(!Nt&&Rn>0){let vn=new Date().getTime(),yn=window.sessionStorage.getItem(Qn);vn>=Rn+yt&&(!yn||yn!==gn)&&(window.sessionStorage.setItem(Qn,gn),Un(!0))}},yt),(0,E.useEffect)(()=>{Fn(Cn)},[xt,Cn]),(0,E.useEffect)(()=>{xt&&Pn&&xt.focus()},[xt,Pn]),(0,E.useEffect)(()=>{if(Sn&&xt){let vn=function(jn){let Wn=jn.target;if(dr.current){let vr=Wn.scrollTop/Wn.scrollHeight;dr.current.scrollTop=dr.current.scrollHeight*vr}};const yn=xt.getScrollerElement();return yn.addEventListener("scroll",vn),()=>{yn.removeEventListener("scroll",vn)}}},[xt,Sn]),(0,E.useEffect)(()=>{if(xt&&ke){let vn=function(yn,jn){ke(yn,jn)};return xt.on("beforeChange",vn),()=>{xt.off("beforeChange",vn)}}},[xt,ke]),(0,E.useEffect)(()=>{if(xt&&ut){let vn=function(){ut(xt.getValue())};return xt.on("blur",vn),()=>{xt.off("blur",vn)}}},[xt,ut]);function pr(vn,yn){var jn=vn.getDoc(),Wn=jn.getCursor(),vr=jn.getLine(Wn.line),kr=vr.charAt(Wn.ch-1),Br=vr.lastIndexOf("@\u2581@",Wn.ch),Tr=vr.lastIndexOf("@\u2581\u2581@",Wn.ch),Ar=Br>Tr?Br:Tr,Nr=Br>Tr?3:4;if(Kt.indexOf(kr)===-1)return null;if(console.log("change1:",yn,vn,vr,Wn,Ar,Br,Tr,kr),Ar>=0&&Wn.ch-Ar<5){var zr=Ar+Nr;return jn.replaceRange("",{line:Wn.line,ch:Ar},{line:Wn.line,ch:zr}),{line:Wn.line,ch:zr}}return null}(0,E.useEffect)(()=>{if(xt){let vn=function(yn,jn){const Wn=yn.getValue();On(Wn),Zn(new Date().getTime()),yn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),an&&(En?an(Wn,In(Wn)):an(Wn))};return xt.on("change",vn),()=>{xt.off("change",vn)}}},[xt,an]),(0,E.useEffect)(()=>{if(xt)if(Ot==null)xt.setValue(""),On("");else{const vn=window.scrollY||window.pageYOffset;Ot!==xt.getValue()&&(xt.setValue(Ot),On(Ot),xt.setCursor(Ve?1:xt.lineCount(),0),window.scrollTo(0,vn))}},[xt,Ot]);const fr=(0,E.useCallback)(vn=>{const yn=xt.getCursor(),jn=xt.getSelection();let Wn=jn.split(`
`);switch(vn){case"bold":return xt.replaceSelection("**"+jn+"**"),jn===""&&xt.setCursor(yn.line,yn.ch+2),xt.focus();case"italic":return xt.replaceSelection("*"+jn+"*"),jn===""&&xt.setCursor(yn.line,yn.ch+1),xt.focus();case"code":return xt.replaceSelection("`"+jn+"`"),jn===""&&xt.setCursor(yn.line,yn.ch+1),xt.focus();case"inline-latex":return(0,jt.Ye)(hr)?void 0:(Ln("inline-latex"),xt.focus());case"latex":return xt.replaceSelection("```latex\n"+jn+"\n```"),xt.setCursor(yn.line+1,jn.length+1),xt.focus();case"line-break":return xt.replaceSelection(`<br/>
`),xt.focus();case"list-ul":return jn===""?xt.replaceSelection("- "+jn):xt.replaceSelection(Wn.map(vr=>vr===""?"":`- ${vr}`).join(`
`)),xt.focus();case"list-ol":return jn===""?xt.replaceSelection("1. "+jn):xt.replaceSelection(Wn.map((vr,kr)=>vr===""?"":`${kr+1}. ${vr}`).join(`
`)),xt.focus();case"add-null-ch":Re==null||Re();return;case"add-signal":return jn===""&&xt.setCursor(yn.line,yn.ch),xt.replaceSelection(cn),xt.focus();case"add-multiple":return jn===""&&xt.setCursor(yn.line,yn.ch),xt.replaceSelection(Kt),xt.focus();case"inster-template-1":return jn===""&&xt.setCursor(yn.line,yn.ch),xt.replaceSelection(Dn),xt.focus();case"eraser":return xt.setValue(""),xt.focus();case"trigger-watch":return Fn(!Sn),xt.focus();case"trigger-full-screen":return qn(!Xn),xt.focus();case Ht:Ln(Ht);return;case tn:Ln(tn);return;case ln:Ln(ln);return;case sn:Ln(sn);return;case"maths-latex":if((0,jt.Ye)(hr))return;Ln("maths-latex");return;case qt:sr.current="",sessionStorage.removeItem("file_id"),Ln(qt);return;case Vt:Ln(Vt);return;default:throw new Error}},[xt,Sn,Xn]),wr=(0,E.useCallback)((vn,yn)=>{var jn,Wn,vr,kr,Br,Tr;vn!=null&&vn.disabledClose||Ln("");const{src:Ar,alt:Nr,id:zr}=vn||{};switch(Hn){case Ht:const{title:zi,link:ui}=vn;return xt.replaceSelection(`[${zi}](${ui})`),xt.focus();case tn:const{language:ri,content:yi}=vn;return xt.replaceSelection(["```"+ri,yi,"```"].join(`
`)),xt.focus();case"maths-latex":for(var Lr=atob(vn),jr=new Uint8Array(Lr.length),Jr=0;Jr<Lr.length;Jr++)jr[Jr]=Lr.charCodeAt(Jr);var Zr=new Blob([jr],{type:"image/png"});return(0,ge.I)(Zr,bi=>{bi.id?xt.replaceSelection(`![,](/api/attachments/${bi.id}?type=${bi.content_type})`):(bi==null?void 0:bi.status)===401&&(document.location.href="/user/login")}),xt.focus();case"inline-latex":return(0,jt.Ye)(hr)?void 0:(xt.replaceSelection("`$$"+vn+"$$`"),xt.focus());case Dt:return zr?(xt.getValue().indexOf(Ar)===-1?xt.replaceSelection(`<center><img id="${zr}" width="80%" src="${Ar}" class="draw-flowchart" alt="${Nr||""}" /></center>`):document.getElementById(zr).src=ue.Z.API_SERVER+Ar+"?t="+Date.now(),xt.focus()):void 0;case ln:case sn:const Fr=yn,Ui=(vr=(Wn=(jn=Fr==null?void 0:Fr.name)==null?void 0:jn.split("."))==null?void 0:Wn.pop)==null?void 0:vr.call(Wn);return((kr=Fr==null?void 0:Fr.type)==null?void 0:kr.indexOf("image"))>-1||!(Fr!=null&&Fr.type)?Fr!=null&&Fr.align||Fr!=null&&Fr.width?xt.replaceSelection(`<p style="text-align:${Fr.align||"initial"}"><img width="${Fr.width?Fr.width+"%":"initial"}" src="${Ar}" alt="${Nr||""}" /></p>`):xt.replaceSelection(`<img width="100%" src="${Ar}" alt="${Nr||""}" />`):((Br=Fr==null?void 0:Fr.type)==null?void 0:Br.indexOf("video"))>-1?xt.replaceSelection(`<video width="100%" controls src="${Ar}"></video>`):((Tr=Fr==null?void 0:Fr.type)==null?void 0:Tr.indexOf("pdf"))>-1?xt.replaceSelection(`<a href="${Ar}?type=${Fr.type}&disposition=inline" target="_blank">${Fr.name}</a>`):kn.includes(Ui)?xt.replaceSelection(`<a href="${Ar}?type=office&disposition=inline" target="_blank">${Fr.name}</a>`):xt.replaceSelection(`[${Fr.name}](${Ar})`),xt.focus();case Vt:const{row:qr,col:Ti,align:Ni}=vn;let Wi=`
`;for(let bi=0;bi<qr;bi++){let Ii=[],Vr=[];for(let Mr=0;Mr<Ti;Mr++)bi===1&&Vr.push(pt[Ni]),Ii.push(" ");bi===1&&(Wi+=`| ${Vr.join(" | ")} |
`),Wi+=`| ${Ii.join(Ti===1?"":" | ")} |
`}return xt.replaceSelection(Wi+`
`),xt.focus();default:throw new Error}},[xt,Hn]),br=(0,E.useMemo)(()=>{switch(Hn){case Ht:return E.createElement(It,{callback:wr,onCancel:Or});case tn:return E.createElement(bt.Z,{callback:wr,onCancel:Or});case ln:return E.createElement(ge.Z,{callback:wr,onCancel:Or});case qt:return E.createElement(oe,{editImgId:sr.current,callback:wr,onCancel:Or});case Vt:return E.createElement(Oe,{callback:wr,onCancel:Or});case"maths-latex":return E.createElement(Ut,{showSaveButton:!0,callback:wr});case"inline-latex":return E.createElement(Wt.Z,{showSaveButton:!0,callback:wr});default:return null}},[Hn]);function Or(){Ln("")}(0,E.useEffect)(()=>{if(Jn.current){let vn=function(Br){vr=!0,kr=Br.pageY},yn=function(){vr=!1},jn=function(Br){if(vr){let Tr=Br.pageY-kr;Tr<0&&(Tr=0),Tr>300&&(Tr=300);let Ar=en+Tr+"px";rr(Ar)}},Wn=Jn.current,vr=!1,kr=0;return Wn.addEventListener("mousedown",vn),document.addEventListener("mousemove",jn),document.addEventListener("mouseup",yn),()=>{Wn.removeEventListener("mousedown",vn),document.removeEventListener("mousemove",jn),document.removeEventListener("mouseup",yn)}}},[xt,Jn]),(0,E.useEffect)(()=>{rr(en)},[en]);const _r=un(nn),xr=un(or),ur={width:_r,height:xr},pn=(0,E.useMemo)(()=>{if(Rn){let vn=new Date(Rn),yn=vn.getHours(),jn=vn.getMinutes(),Wn=vn.getSeconds();return yn=yn<10?"0"+yn:yn,jn=jn<10?"0"+jn:jn,Wn=Wn<10?"0"+Wn:Wn,`${yn}:${jn}:${Wn}`}return 0},[Rn]),In=vn=>{const yn=[];if(En){let jn=-1;vn=vn.replace(/(@▁▁@|@▁@)/g,function(Wn,vr,kr){yn.push({multiLine:Wn!==cn})})}return yn};function wn(){window.sessionStorage.removeItem(Qn),Un(!1),Zn(0)}function dn(){Un(!1),Zn(0),xt.setValue(window.sessionStorage.getItem(Qn))}(0,E.useEffect)(()=>{Rt[Hn]&&Hn!==sn&&Hn!==qt&&setTimeout(()=>{const vn=document.getElementsByClassName("markdown-popup-form")[0],yn=window.innerWidth/2-vn.offsetWidth/2,jn=window.innerHeight/2-vn.offsetHeight/2;Tn(yn),Vn(jn)},0)},[Hn]);const Gn=vn=>{vn.preventDefault();const yn=vn.clientX-Kn,jn=vn.clientY-mr;document.body.onmousemove=Wn=>{let vr=Wn.clientX-yn,kr=Wn.clientY-jn;const Br=document.getElementsByClassName("markdown-popup-form")[0],Tr=window.innerWidth-Br.offsetWidth,Ar=window.innerHeight-Br.offsetHeight;vr=Math.max(0,Math.min(vr,Tr)),kr=Math.max(0,Math.min(kr,Ar)),nr(Wn.clientX,Wn.clientY,yn,jn)&&(Tn(vr),Vn(kr))},document.body.onmouseup=function(){document.body.onmousemove=null}},nr=(vn,yn,jn,Wn)=>{const vr=document.body.clientHeight,kr=document.body.clientWidth;return vn<20&&jn>vn||vn>kr-20&&jn<vn||yn<20&&Wn>yn||yn>vr-20&&Wn<yn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return E.createElement(E.Fragment,null,E.createElement("div",{className:"markdown-editor-wrapper",ref:Yn},E.createElement("div",{className:`markdown-editor-container ${fe} ${Sn?"on-preview":""} ${xn?"mini":""} ${Xn?"full-screen":""}`,style:ur},E.createElement(kt,{insertTemp:Nn,watch:Sn,fullScreen:Xn,showNullButton:Qt,showNullProgramButton:En,onActionCallback:fr,hidetoolBar:mn,extraUse:Ct}),E.createElement("div",{className:"markdown-editor-body"},E.createElement("div",{className:"codemirror-container"},E.createElement("textarea",{ref:Bn,placeholder:rn})),Sn?E.createElement("div",{ref:dr,className:"preview-container"},An==="stex"&&E.createElement(dt,{value:gn}),An!=="stex"&&E.createElement(Pe.Z,{edit:!0,disabledFill:Xt,showProgramFill:En,value:gn,openEditor:vn=>{var yn;sr.current=vn,(yn=_n.current)==null||yn.setHeight("100vh"),setTimeout(()=>{Ln("add-flowchart")},150)}})):null))),zn?E.createElement("a",{ref:Jn,className:"editor-resize"}):null,Hn===sn&&E.createElement(Lt,{callback:wr,onCancel:Or}),Hn===qt&&E.createElement(oe,{ref:_n,editImgId:sr.current,callback:wr,onCancel:Or}),E.createElement(lt.Z,null,Rt[Hn]&&Hn!==sn&&Hn!==qt?E.createElement(He.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Kn,top:mr},title:E.createElement("div",{style:{cursor:"move"},onMouseDown:Gn},Rt[Hn]),open:!0,onCancel:Or,footer:null,destroyOnClose:!0,width:Hn===qt?"1200px":null,height:Hn===qt?"80vh":null,className:"markdown-popup-form"},br):null))}},53332:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return nt},I:function(){return kt}});var E=ne(28284),Qe=ne(6767),xe=ne(37568),tt=ne(44104),Ee=ne(4875),Be=ne(47889),De=ne(7939),We=ne(23216),Ie=ne(59301),he=ne(59301),Je=Object.defineProperty,Pe=Object.defineProperties,dt=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,_e=(lt,et,St)=>et in lt?Je(lt,et,{enumerable:!0,configurable:!0,writable:!0,value:St}):lt[et]=St,rt=(lt,et)=>{for(var St in et||(et={}))Ce.call(et,St)&&_e(lt,St,et[St]);if(Ze)for(var St of Ze(et))Te.call(et,St)&&_e(lt,St,et[St]);return lt},gt=(lt,et)=>Pe(lt,dt(et));const{useForm:Pt}=E.default,ht={width:280,marginRight:10},it={labelCol:{span:5},wrapperCol:{span:19}};var nt=({callback:lt,onCancel:et})=>{const[St]=Pt();let Me=(0,Ie.useRef)();function Ke(qe){Me.current.width=St.getFieldValue("width"),Me.current.align=St.getFieldValue("align"),lt(qe,Me.current)}function ze(qe,Le){if(qe.status===-1){Qe.ZP.error(qe.message);return}St.setFieldsValue({src:`/api/attachments/${qe.id}`,type:Le.type})}function se(qe){let Le=qe.target.files[0];Me.current=Le,kt(Le,ze)}return he.createElement(E.default,gt(rt({form:St},it),{className:"upload-image-panel",onFinish:Ke,style:{width:470,overflow:"hidden"}}),he.createElement(E.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},he.createElement("div",{className:"flex-container"},he.createElement(E.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},he.createElement(xe.default,{style:ht})),he.createElement(Fe,{onFileChange:se}))),he.createElement(E.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},he.createElement(xe.default,{style:{width:264}})),he.createElement(E.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},he.createElement(tt.Z,null,he.createElement(E.default.Item,{name:"width",style:{margin:0}},he.createElement(Ee.Z,{style:{width:264}})),he.createElement("span",{className:"ml8"},"%"))),he.createElement(E.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},he.createElement(Be.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),he.createElement("aside",null,he.createElement(E.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},he.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),he.createElement(De.ZP,{type:"default",onClick:et},"\u53D6\u6D88"))))};function Fe({onFileChange:lt}){return he.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",he.createElement("input",{type:"file",onChange:lt}))}function kt(lt,et){if(!lt)throw new String("\u6CA1\u6709\u6587\u4EF6");let St=new FormData;St.append("editormd-image-file",lt),St.append("file_param_name","editormd-image-file"),St.append("byxhr","true");var Me=new window.XMLHttpRequest;Me.withCredentials=!0,Me.addEventListener("load",function(Ke){et(JSON.parse(Ke.target.responseText),lt)},!1),Me.addEventListener("error",function(Ke){console.error(Ke)},!1),Me.open("POST",`${We.KI}/api/attachments.json`),Me.send(St)}},88487:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return xe}});var E=ne(59301),Qe=ne(4676);class xe extends E.Component{constructor(Ee){super(Ee);const Be=window.document;this.node=Be.createElement("div"),Be.body.appendChild(this.node)}render(){const{children:Ee}=this.props;return(0,Qe.createPortal)(Ee,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34728:function(on,$t,ne){"use strict";ne.d($t,{SV:function(){return Lt},ZP:function(){return wt}});var E=ne(59301),Qe=ne(76374);const xe={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},tt={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},Ee={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
`)},{label:"if",content:["if () {"," $0","}"].join(`
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
`)},{label:"using namespace std",content:["using namespace std"].join(`
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
`)},{label:"include <vector>",content:["#include <vector>"].join(`
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
`)},{label:"include <map>",content:["#include <map>"].join(`
`)},{label:"include <string>",content:["#include <string>"].join(`
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
`)}]},Be={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
`)}]},De={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
`)}]};var We=ne(53184),Ie=ne.n(We),he=($e,At,st)=>new Promise((ae,te)=>{var ee=re=>{try{ue(st.next(re))}catch(ve){te(ve)}},oe=re=>{try{ue(st.throw(re))}catch(ve){te(ve)}},ue=re=>re.done?ae(re.value):Promise.resolve(re.value).then(ee,oe);ue((st=st.apply($e,At)).next())});const Je={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},Pe=($e,At,st,ae)=>{const te=At.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:st.lineNumber,endColumn:st.column});return Array.from(new Set(te.match(/\b\w{2,}\b/g)||[])).map(oe=>({label:oe,kind:$e.languages.CompletionItemKind.Text,insertText:oe,range:ae}))},dt=($e,At,st,ae)=>{$e.languages.registerCompletionItemProvider(At,{provideCompletionItems(te,ee){const oe=te.getWordUntilPosition(ee),ue={startLineNumber:ee.lineNumber,endLineNumber:ee.lineNumber,startColumn:oe.startColumn,endColumn:oe.endColumn},re=te.getLineContent(ee.lineNumber).substring(oe.startColumn-2,oe.endColumn);return{suggestions:[...Pe($e,te,ee,ue),...st.map(we=>({label:we,kind:$e.languages.CompletionItemKind.Keyword,documentation:we,insertText:we,insertTextRules:$e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ue})),...ae.map(we=>({label:we.label,kind:$e.languages.CompletionItemKind.Snippet,documentation:we.content,insertText:re.startsWith("#")?we.content.replace(/#/,""):we.content,insertTextRules:$e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ue}))]}}})};var Ze=$e=>{Je.languages.forEach(At=>{$e.languages.registerDocumentFormattingEditProvider(At,{provideDocumentFormattingEdits(st){return he(this,null,function*(){const ae=Ie()(st.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:st.getFullModelRange(),text:ae}]})}})}),dt($e,"java",tt.keywords,tt.quickKey),dt($e,"cpp",Ee.keywords,Ee.quickKey),dt($e,"c",xe.keywords,[]),dt($e,"python",Be.keywords,Be.quickKey),dt($e,"scala",De.keywords,De.quickKey)};const Ce="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Te=Object.defineProperty,_e=($e,At,st)=>At in $e?Te($e,At,{enumerable:!0,configurable:!0,writable:!0,value:st}):$e[At]=st,rt=($e,At,st)=>_e($e,typeof At!="symbol"?At+"":At,st);const gt=class _s{constructor(At,st,ae){this.placeholder=At,this.editor=st,this.monaco=ae,st.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return _s.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};rt(gt,"ID","editor.widget.placeholderHint");var ht=gt,it=ne(96236),nt=ne(6767),Fe=ne(25399),kt=ne(78267),lt=ne(33156),et=ne(56102),St=Object.defineProperty,Me=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,Le=($e,At,st)=>At in $e?St($e,At,{enumerable:!0,configurable:!0,writable:!0,value:st}):$e[At]=st,Ae=($e,At)=>{for(var st in At||(At={}))se.call(At,st)&&Le($e,st,At[st]);if(ze)for(var st of ze(At))qe.call(At,st)&&Le($e,st,At[st]);return $e},ct=($e,At)=>Me($e,Ke(At)),ye=($e,At)=>{var st={};for(var ae in $e)se.call($e,ae)&&At.indexOf(ae)<0&&(st[ae]=$e[ae]);if($e!=null&&ze)for(var ae of ze($e))At.indexOf(ae)<0&&qe.call($e,ae)&&(st[ae]=$e[ae]);return st},ce=($e,At,st)=>new Promise((ae,te)=>{var ee=re=>{try{ue(st.next(re))}catch(ve){te(ve)}},oe=re=>{try{ue(st.throw(re))}catch(ve){te(ve)}},ue=re=>re.done?ae(re.value):Promise.resolve(re.value).then(ee,oe);ue((st=st.apply($e,At)).next())});function Ue($e){return/^\d+$/.test($e)?`${$e}px`:$e}function It(){}let bt=!1;const ge={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function He($e=[]){let At=$e;if(Array.isArray($e)){for(let st=0;st<$e.length;st++){let ae=ge[$e[st]];if(ae)return ae}return At[0]}return ge[At]||At}let Ge=null;const Tt=()=>ce(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch($e){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",$e)}});var wt=$e=>{var At=$e,{width:st="100%",height:ae="100%",value:te,language:ee="javascript",style:oe={},options:ue={},overrideServices:re={},theme:ve="vs-dark",onEditBlur:we,isCopy:ft=!1,onSave:Oe,autoHeight:Ye=!1,forbidCopy:mt=!1,forbidCopyTips:Bt,onChange:Et=It,editorDidMount:Ut=It,onFocus:Wt=It,onBreakPoint:Ht=It,breakPointValue:ln=[],filename:qt="educoder.txt",errorLine:sn,errorContent:Dt="",highlightLine:tn,openBreakPoint:Vt=!1,placeholder:je="",showMiniMap:pt=!0}=At,Ft=ye(At,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","forbidCopyTips","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const jt=(0,E.useRef)(),Ne=(0,E.useRef)({}),ot=(0,E.useRef)(),yt=(0,E.useRef)(),Mt=(0,E.useRef)([]),Kt=(0,E.useRef)(!1),cn=(0,E.useRef)(),Dn=(0,E.useRef)(),kn=(0,E.useRef)(!1),[un,bn]=(0,E.useState)(!1);function fn(){let Nt;return jt.current&&(Nt=new Qe.Z(Qt=>{for(let En of Qt)(En.target.offsetHeight>0||En.target.offsetWidth>0)&&Ne.current.instance.layout()}),Nt.observe(jt.current)),Nt}function Gt(){nt.ZP.warning({content:decodeURIComponent(Bt||Ce),key:"monaco-editor-tip"})}const Rt=()=>{let Nt=Ne.current.instance;if(te!=null&&Nt&&un){const Qt=Nt.getModel();Qt&&te!==Qt.getValue()&&(bt=!0,Qt.setValue(te),Nt.layout(),bt=!1)}};(0,E.useEffect)(()=>{const Nt=lt.Z.subscribe("formatDocument",Qt=>{var En;let mn=Ne.current.instance;(En=mn==null?void 0:mn.getAction)==null||En.call(mn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Qt=>{Et(Qt)},Nt},[]),(0,E.useEffect)(()=>{var Nt;let Qt=Ne.current.instance;yt.current&&clearTimeout(yt.current),yt.current=setTimeout(()=>{Rt()},500),te&&(te!=null&&te.length)&&((Nt=Qt==null?void 0:Qt.updateOptions)==null||Nt.call(Qt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(te.split(/\r\n|\r|\n/g).length))+3,5)}))},[te,un,Ne.current]),(0,E.useEffect)(()=>{if(sn&&Ne.current&&Ne.current.instance){let Qt=Ne.current.instance;Qt.changeViewZones(function(En){var mn=document.createElement("div");mn.style.padding="10px 20px",mn.style.width="calc(100% - 20px)",mn.className="my-error-line-wrp",mn.innerHTML=Dt,En.addZone({afterLineNumber:sn||11,heightInLines:3,domNode:mn})});var Nt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Qt.addOverlayWidget(Nt),Qt.revealPositionInCenter({lineNumber:20,column:1})}},[sn,Ne.current,un]);const _t=(Nt="",Qt)=>{if(!Nt||Nt.trim()==="")return!0;const mn=Ne.current.instance.getModel().getLineTokens(Qt);let Xe=!1;for(let ut=0;ut<2;ut++)mn.getStandardTokenType(ut)===1&&(Xe=!0);return Xe};(0,E.useEffect)(()=>{var Nt;const Qt=(Nt=Ne.current)==null?void 0:Nt.instance;if(Qt&&un&&mt){const En=Qt.onDidBlurEditorWidget(()=>{kn.current=!1}),mn=Qt.onDidFocusEditorText(()=>{kn.current=!0});return()=>{En.dispose(),mn.dispose()}}},[Ne.current,un,mt]),(0,E.useEffect)(()=>{var Nt;if((Nt=Ne.current)!=null&&Nt.instance&&un&&Vt){let Qt=Ne.current.instance,En=Qt.getModel();if(!En)return;(()=>{var Ct;let Re=[],xt=[];const Jt=En.getAllDecorations();for(let On of Jt)On.options.className==="highlighted-line"&&(Re.push((Ct=On==null?void 0:On.range)==null?void 0:Ct.startLineNumber),xt.push(On==null?void 0:On.id));if(tn===Re[0])return;En.deltaDecorations(xt,[]);const gn=En.getLineCount();tn&&tn<=gn&&(Qt.deltaDecorations([],[{range:new Ge.Range(tn,1,tn,En.getLineMaxColumn(tn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Qt.revealLineInCenter(tn))})();const Xe=(Ct=!1)=>{var Re;let xt=[],Jt=[];const gn=En.getAllDecorations();for(let On of gn)On.options.linesDecorationsClassName==="breakpoints-select"&&(xt.push((Re=On==null?void 0:On.range)==null?void 0:Re.startLineNumber),Jt.push(On==null?void 0:On.id));if(Ct)return{lines:xt,ids:Jt};Ht(xt)},ut=Ct=>ce(void 0,null,function*(){let Re={range:new Ge.Range(Ct,1,Ct,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield En.deltaDecorations([],[Re]),Xe()}),ke=Ct=>ce(void 0,null,function*(){let Re=[];const xt=Qt.getLineDecorations(Ct);for(let Jt of xt)Jt.options.linesDecorationsClassName==="breakpoints-select"&&Re.push(Jt.id);yield En.deltaDecorations(Re,[]),Xe()}),be=Ct=>{let Re=Qt.getLineDecorations(Ct);for(let xt of Re)if(xt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,kt.isEqual)(ln,Xe(!0).lines)){En.deltaDecorations(Xe(!0).ids,[]);const Ct=ln.map(Re=>({range:new Ge.Range(Re,1,Re,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));En.deltaDecorations([],Ct)}const fe=Qt.onDidChangeModelContent(Ct=>{let Re=Qt.getPosition();if(Re){let xt=Re.lineNumber;clearTimeout(Dn.current),Dn.current=setTimeout(()=>{_t(En.getLineContent(xt),xt)?ke(xt):be(xt)?(ke(xt),ut(xt)):Xe()},100)}}),pe=Qt.onMouseDown(Ct=>{var Re,xt,Jt;if(Ct.target.detail&&((Jt=(xt=(Re=Ct.target)==null?void 0:Re.element)==null?void 0:xt.className)!=null&&Jt.includes("line-numbers"))){let gn=Ct.target.position.lineNumber;if(_t(En.getLineContent(gn),gn))return;be(gn)?ke(gn):ut(gn)}}),Ve=Ct=>{let Re={range:new Ge.Range(Ct,1,Ct,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Mt.current=Qt.deltaDecorations(Mt.current,[Re])},Xt=()=>{Mt.current=Qt.deltaDecorations(Mt.current,[])},rn=Qt.onMouseMove(Ct=>{var Re,xt,Jt;if(Xt(),Ct.target.detail&&((Jt=(xt=(Re=Ct.target)==null?void 0:Re.element)==null?void 0:xt.className)!=null&&Jt.includes("line-numbers"))){let gn=Ct.target.position.lineNumber;if(_t(En.getLineContent(gn),gn))return;Ve(gn)}}),Yt=Qt.onMouseLeave(()=>{Xt()});return()=>{fe.dispose(),pe.dispose(),rn.dispose(),Yt.dispose()}}},[Ne.current,un,ln,tn,Vt,ee]),(0,E.useEffect)(()=>{var Nt;(Nt=Ne.current)!=null&&Nt.instance&&Vt&&Ne.current.instance.setPosition({lineNumber:0,column:0})},[tn]);function Ot(){let Nt=Ne.current.instance;if(Nt){const Qt=Nt.getSelection(),En=Ne.current.pastePos||{},mn=new Ge.Range(En.startLineNumber||Qt.endLineNumber,En.startColumn||Qt.endColumn,En.endLineNumber||Qt.endLineNumber,En.endColumn||Qt.endColumn);setTimeout(()=>{Nt.executeEdits("",[{range:mn,text:""}])},300)}}function an(Nt){(window.navigator.platform.match("Mac")?Nt.metaKey:Nt.ctrlKey)&&Nt.keyCode==83&&(Nt.preventDefault(),Oe())}const nn=()=>{if(Ye&&Ne.current.instance){const Nt=Ne.current.instance.getContentHeight();Qn(Nt<ae?ae:Nt)}else Qn(ae)};function en(Nt){var Qt=document.createEvent("MouseEvents");Qt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Nt.dispatchEvent(Qt)}const xn=Nt=>{if(!kn.current)return;const{keyCode:Qt,ctrlKey:En,metaKey:mn,target:Xe,type:ut}=Nt;return(ut==="paste"||(Qt===67||Qt===86)&&(mn||En))&&Xe.nodeName==="TEXTAREA"&&(Gt(),Nt.preventDefault()),!1};function Pn(Nt,Qt){var En=window.URL||window.webkitURL||window,mn=new Blob([Qt]),Xe=document.createElementNS("http://www.w3.org/1999/xhtml","a");Xe.href=En.createObjectURL(mn),Xe.download=Nt,en(Xe)}(0,E.useEffect)(()=>{nn()},[nn]),(0,E.useEffect)(()=>{jt.current&&!un&&Promise.all([ne.e(8909),ne.e(5977)]).then(ne.bind(ne,71448)).then(Nt=>{try{Ge=Nt,Ne.current.instance=Ge.editor.create(jt.current,{value:te,language:He(ee),theme:ve,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:pt||!1}},re);const Qt=Ne.current.instance;let Xe=[...it.BH._menuItems].find(fe=>fe[0]._debugName=="EditorContext")[1],ut=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],ke=(fe,pe)=>{var Ve,Xt;let rn=fe._first;do pe.includes((Xt=(Ve=rn.element)==null?void 0:Ve.command)==null?void 0:Xt.id)&&fe._remove(rn);while(rn=rn.next)};if(Ut(Qt,Ge),setTimeout(()=>{nn(),Ne.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Pn(qt||"educoder.txt",Qt.getValue())}})},500),Ne.current.subscription=Qt.onDidChangeModelContent(fe=>{Kt.current?clearTimeout(cn.current):(nn(),Et(Qt.getValue(),fe)),cn.current=setTimeout(()=>{Kt.current=!1},500)}),window.Monaco||Ze(Ge,He(ee)),mt&&(ke(Xe,ut),jt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",xn),window.removeEventListener("paste",xn),window.addEventListener("keydown",xn),window.addEventListener("paste",xn)),window.Monaco=Ge,we&&Qt.onDidBlurEditorWidget(()=>{we(Qt.getValue())}),Wt&&Qt.onDidFocusEditorText(()=>{mt&&Tt(),Wt(Qt.getValue())}),mt){Tt();try{Qt.onDidPaste(fe=>{const pe=Qt.getSelection(),Ve=Ne.current.pastePos||{},Xt=new Ge.Range(Ve.startLineNumber||pe.endLineNumber,Ve.startColumn||pe.endColumn,Ve.endLineNumber||pe.endLineNumber,Ve.endColumn||pe.endColumn);Qt.executeEdits("",[{range:fe.range,text:""}])})}catch(fe){}}let be=fn();return je&&typeof je=="string"&&new ht(je,Qt,Ge),bn(!0),()=>{const fe=Ne.current.instance;fe.dispose();const pe=fe.getModel();pe&&pe.dispose(),Ne.current.subscription&&Ne.current.subscription.dispose(),be.unobserve(jt.current)}}catch(Qt){}})},[]),(0,E.useEffect)(()=>{if(Ne.current.instance&&un)return document.addEventListener("keydown",an,!1),()=>{document.removeEventListener("keydown",an)}},[Oe,un]),(0,E.useEffect)(()=>{let Nt=Ne.current.instance;if(Nt&&un){let Qt=He(ee);Ge.editor.setModelLanguage(Nt.getModel(),Qt)}},[ee,un]),(0,E.useEffect)(()=>{Ne.current.instance&&un&&Ge.editor.setTheme(ve)},[ve,un]),(0,E.useEffect)(()=>{let Nt=Ne.current.instance;ot.current=ue,Nt&&un&&(Nt.updateOptions(Ae({},ue)),setTimeout(()=>{Nt.getModel().updateOptions(Ae({},ue))},200))},[JSON.stringify(ue),un]),(0,E.useEffect)(()=>{let Nt=Ne.current.instance;Nt&&un&&Nt.layout()},[st,ae,un]);const[Cn,Nn]=(0,E.useState)(Ue(st)),[An,Qn]=(0,E.useState)(Ue(ae)),zn=ct(Ae({},oe),{width:Cn,height:An,position:"relative"});return E.createElement("div",{className:"my-monaco-editor",ref:jt,style:zn,onFocus:()=>{mt&&Tt()}},ft&&E.createElement(et.CopyToClipboard,{text:te,onCopy:()=>nt.ZP.success("\u590D\u5236\u6210\u529F")},E.createElement(Fe.Z,{title:"\u590D\u5236\u4EE3\u7801"},E.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},E.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Lt({width:$e="100%",height:At="100%",original:st,modified:ae,language:te,options:ee={}}){const oe=(0,E.useRef)(),[ue,re]=(0,E.useState)(null);function ve(Ye){let mt;return oe.current&&(mt=new Qe.Z(Bt=>{for(let Et of Bt)(Et.target.offsetHeight>0||Et.target.offsetWidth>0)&&Ye.layout()}),mt.observe(oe.current)),mt}(0,E.useEffect)(()=>(oe.current&&Promise.all([ne.e(8909),ne.e(9404)]).then(ne.bind(ne,2550)).then(Ye=>{Ge=Ye;const mt=Ge.editor.createDiffEditor(oe.current,ct(Ae({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},ee),{wordWrap:!0}));re(mt);let Bt=ve(mt);return()=>{mt.dispose();const Et=mt.getModel();Et&&Et.dispose(),Bt.unobserve(oe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,E.useEffect)(()=>{ue&&ue.setModel({original:Ge.editor.createModel(st,te),modified:Ge.editor.createModel(ae,te)})},[st,ae,te,ue]);const we=Ue($e),ft=Ue(At),Oe={width:we,height:ft};return E.createElement("div",{className:"my-diff-editor",ref:oe,style:Oe})}},54077:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return Je}});var E={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT",tagsDom:"tagsDom___COQg7",hiddenbq:"hiddenbq___TqlUF"},Qe=ne(29787),xe=ne(25399),tt=ne(89787),Ee=ne(92310),Be=ne.n(Ee),De=ne(76406),We=ne(90736),Ie=ne(59301),Je=({className:Pe,dataSource:dt=[],col:Ze=4,right:Ce,bottom:Te=23,precision:_e=0,wrapWidth:rt=1200,trackEventItems:gt,loading:Pt,onRemove:ht=()=>{},isCurrent:it=!0,showProgress:nt=!1,showAlias:Fe=!1,category:kt="notDisplay",hiddenClick:lt=()=>{}})=>{const et=Math.floor((rt-(Ze-1)*Ce)/Ze),St=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png",ptclass:"sprite-70",swclass:"sprite-68"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png",ptclass:"sprite-60",swclass:"sprite-65"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png",ptclass:"sprite-58",swclass:"sprite-63"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png",ptclass:"sprite-62",swclass:"sprite-67"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png",ptclass:"sprite-61",swclass:"sprite-66"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png",ptclass:"sprite-59",swclass:"sprite-64"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png",ptclass:"sprite-71",swclass:"sprite-69"}];return Ie.createElement(Qe.Z,{spinning:Pt},Ie.createElement("div",{className:Be()(E.list,Pe)},!!(dt!=null&&dt.length)&&(dt==null?void 0:dt.map((Me,Ke)=>{var ze,se,qe,Le,Ae,ct,ye;const{name:ce,id:Ue,identifier:It,featured:bt,school_name:ge,image_url:He,excellent:Ge,is_plan:Tt}=Me;return Ie.createElement("div",{key:Ue,className:it&&nt?E.wrapisCurrent:E.wrap,style:{width:et,marginRight:(1+Ke)%Ze===0?0:Ce+_e,marginBottom:Te}},Ie.createElement("a",{className:E.li,onClick:wt=>{wt.preventDefault(),wt.stopPropagation(),gt&&(0,De.L9)([gt]),(0,De.xg)(`/paths/${It}`)}},Ie.createElement("div",{className:E.img},Ie.createElement("img",{className:E.cover,src:`${He}`}),(ze=Me==null?void 0:Me.subject_tags)==null?void 0:ze.map((wt,Lt)=>{var $e,At;if(Lt===0){const ae=($e=St.find(te=>te.name==wt))==null?void 0:$e.swclass;return Ie.createElement("span",{className:`sprite ${ae} ${E.sign}`,style:{left:"-4px"}})}const st=(At=St.find(ae=>ae.name==wt))==null?void 0:At.ptclass;return Ie.createElement("span",{className:`sprite ${st} ${E.sign}`,style:{left:`${48+52*(Lt-1)+2*Lt}px`}})}),Ie.createElement("div",{className:E.tagsDom},Ie.createElement("div",{className:"flex flex-wrap item-center",style:{gap:"0 6px"}},(Me==null?void 0:Me.excellent)&&Ie.createElement("div",{className:E.bq},"\u5F00\u653E\u8BFE\u7A0B"),((se=Me==null?void 0:Me.custom_tags)==null?void 0:se.length)>0&&(Me==null?void 0:Me.custom_tags.map((wt,Lt)=>{var $e;return Ie.createElement(xe.Z,{title:wt==null?void 0:wt.tag_name,key:Lt},Ie.createElement("div",{className:"font12 rounded-2px c-white flex item-center",style:{height:22,padding:"0 6px",maxWidth:(($e=Me==null?void 0:Me.custom_tags)==null?void 0:$e.length)>2?"60px":"71px",background:"rgba(48, 97, 208, .6)",border:"1px solid #8FAFF8"}},Ie.createElement("span",{className:"multi-llipsis1e"},wt==null?void 0:wt.tag_name)))})))),kt=="hide"&&(Me==null?void 0:Me.studying)&&it&&Ie.createElement("div",{className:`${E.movebq} user-path-items`,onClick:wt=>{wt.stopPropagation(),ht(Me)}},Ie.createElement("i",{className:"iconfont icon-yichu1 font12"}),Ie.createElement("span",null,"\u79FB\u9664")),!["notDisplay","collect","payed"].includes(kt)&&it&&Ie.createElement("div",{className:`${E.hiddenbq} user-path-items`,onClick:wt=>{wt.stopPropagation(),lt(Me)}},Ie.createElement("i",{className:`iconfont ${kt=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Ie.createElement("span",null,kt=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),Ie.createElement("div",{className:E.name},Ie.createElement(xe.Z,{title:Fe&&(Me!=null&&Me.excellent_alias_name)?Ie.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${ce}`,Ie.createElement("br",null),Ie.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Me==null?void 0:Me.excellent_alias_name}`)):ce},Ie.createElement("span",{className:E.e},Fe&&(Me==null?void 0:Me.excellent_alias_name)||ce))),it&&nt&&((qe=Me==null?void 0:Me.progress)==null?void 0:qe.all_score)!=0&&Ie.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Ie.createElement(tt.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Le=Me==null?void 0:Me.progress)==null?void 0:Le.my_score)/((Ae=Me==null?void 0:Me.progress)==null?void 0:Ae.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(ct=Me==null?void 0:Me.progress)==null?void 0:ct.my_score,"/",(ye=Me==null?void 0:Me.progress)==null?void 0:ye.all_score),(!it||!nt)&&Ie.createElement(xe.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${ge}`},Ie.createElement("div",{className:E.unit},Ie.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),ge)),(!it||!nt)&&Ie.createElement("div",{className:E.tags},Ie.createElement("div",null,Ie.createElement(xe.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Ie.createElement("span",null,Ie.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Ie.createElement("span",null,Me.stages_count))),Ie.createElement(xe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ie.createElement("span",null,Ie.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Ie.createElement("span",null,Me.members_count)))))))})),!dt.length&&Ie.createElement(We.Z,null)))}},70467:function(on,$t,ne){"use strict";ne.d($t,{jL:function(){return tt},w9:function(){return ce},QD:function(){return ln},cQ:function(){return Ke.Z},op:function(){return mt},O5:function(){return fn},_b:function(){return je},t7:function(){return _e},Gi:function(){return Ge},YG:function(){return ge},qp:function(){return he},vr:function(){return Dt},qE:function(){return Ut},Je:function(){return Pt},wb:function(){return Me},cq:function(){return st},tp:function(){return dt}});var E=ne(59301),Qe={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},tt=({dataSource:Gt=[],img:Rt,imgWidth:_t=346,title:Ot,sunTitle:an,bannerExtraContent:nn})=>E.createElement("div",{className:Qe.banner},E.createElement("div",{className:Qe.content},E.createElement("aside",null,E.createElement("p",null,E.createElement("b",null,Ot),E.createElement("span",null,an)),Gt.length>0&&E.createElement("div",{className:Qe.btns},Gt.map((en,xn)=>E.createElement("div",{key:xn,onClick:en.click},en.name,en.sign?E.createElement("span",{className:"sprite sprite-33"}):null))),nn),Rt&&E.createElement("img",{style:{marginTop:33,marginRight:38},src:Rt,width:_t}))),Ee={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},Be=ne(92310),De=ne.n(Be),We=ne(78267),he=({dataSource:Gt=[],value:Rt,onChange:_t,onTitleChange:Ot,className:an,title:nn,titleWidth:en=41,style:xn={},fontColor:Pn="#6A7283",showCount:Cn})=>{const[Nn,An]=(0,E.useState)(1),[Qn,zn]=(0,E.useState)(!1),Nt=(0,E.useRef)(null),Qt=(0,E.useRef)(null);return(0,E.useEffect)(()=>{var En;Gt.length!==0&&(((En=Nt==null?void 0:Nt.current)==null?void 0:En.clientHeight)>97?An(1):An(0)),Gt.length===0&&An(0),zn(!1)},[Gt]),E.createElement("div",{className:De()(Ee.row,an,"fadeIn","animated"),style:xn},E.createElement("div",{onClick:(0,We.throttle)(()=>Ot==null?void 0:Ot(),2e3),style:{width:en,marginTop:Qn?12:4},className:`${Ee.title} ${Ot?"current":""}`},nn),E.createElement("div",{className:Qn?`${Ee.tagsWrap} ${Ee.tagsBorderWrap}`:Ee.tagsWrap},E.createElement("div",{className:Ee.bar,ref:Qt,style:Nn>0?{height:Nn===1?97:"auto",overflow:Nn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},E.createElement("div",{className:Ee.tag,ref:Nt},Gt==null?void 0:Gt.map(En=>E.createElement("span",{onClick:()=>_t(En.id),key:En.id,style:{color:Pn},className:Rt===En.id?Ee.active:""},E.createElement("span",{title:En.name,className:Ee.name},En.name),!!Cn&&E.createElement("span",{className:Ee.num},En.count))))),!!Nn&&E.createElement(E.Fragment,null,Nn===1?E.createElement("div",{onClick:()=>{var En;An(2),((En=Nt==null?void 0:Nt.current)==null?void 0:En.clientHeight)>245?zn(!0):zn(!1)},className:Ee.action},"\u5C55\u5F00",E.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):E.createElement("div",{onClick:()=>{Qt.current.scrollTop=0,An(1),zn(!1)},className:Ee.action},"\u6536\u8D77",E.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Je={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},dt=({dataSource:Gt=[],value:Rt,onChange:_t,className:Ot,style:an={}})=>E.createElement("div",{style:an,className:De()(Je.tabs,Ot)},Gt.map(nn=>E.createElement("span",{onClick:()=>_t(nn.id),className:Rt===nn.id?Je.active:"",key:nn.id},nn.name))),Ze={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},Ce=ne(37568),_e=({dataSource:Gt=[],value:Rt="",onChange:_t,onInputChange:Ot=()=>{},className:an,style:nn={},placeholder:en,allowClear:xn=!1})=>{var Pn;const[Cn,Nn]=(0,E.useState)(""),[An,Qn]=(0,E.useState)("");(0,E.useEffect)(()=>{var Qt;let En=Rt;(Qt=JSON.stringify(Rt))!=null&&Qt.includes("{")&&(Nn(Rt.id),En=Rt.value||"");try{Qn(decodeURIComponent(En||""))}catch(mn){Qn(decodeURIComponent(En||""))}},[Rt]);const zn=()=>{_t(encodeURIComponent(An),Cn||null)},Nt=Qt=>{Qt!==Cn&&(Nn(Qt),_t(encodeURIComponent(An),Qt))};return E.createElement("div",{className:De()(Ze.input,an),style:nn},!!Gt.length&&E.createElement("div",{className:Ze.dropdown},E.createElement("div",{className:Ze.text},(Pn=Gt.find(Qt=>Qt.id===Cn))==null?void 0:Pn.name,E.createElement("i",{className:"iconfont icon-zhankai4"}),E.createElement("b",{className:Ze.b1}),E.createElement("b",{className:Ze.b2})),E.createElement("div",{className:Ze.menu},Gt.map((Qt,En)=>E.createElement("div",{key:En,onClick:()=>Nt(Qt.id)},Qt.name)))),E.createElement(Ce.default,{onPressEnter:zn,value:An,onChange:Qt=>{Qn(Qt.target.value),Ot(encodeURIComponent(Qt.target.value),Cn||null)},placeholder:en,variant:"borderless",allowClear:xn,onClear:()=>_t("",Cn||null)}),E.createElement("i",{onClick:zn,className:"iconfont icon-sousuo9 font14 current"}))},rt={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},Pt=({value:Gt,onChange:Rt,className:_t,total:Ot,pageSize:an,style:nn={}})=>{const en=Gt<2,xn=Gt>=Math.ceil(Ot/an);return Ot<=an?E.createElement(E.Fragment,null):E.createElement("div",{className:De()(rt.quickPager,_t),style:nn},E.createElement("div",{onClick:()=>{en||Rt(Gt-1,"prev")},className:en?rt.disabled:""},"\u4E0A\u4E00\u9875"),E.createElement("div",{onClick:()=>{xn||Rt(Gt+1,"next")},className:xn?rt.disabled:""},"\u4E0B\u4E00\u9875"))},ht={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},it=ne(29787),nt=ne(25399),Fe=ne(63139),kt=ne(14185),lt=ne(76406),et=ne(90736),Me=({className:Gt,dataSource:Rt=[],col:_t=4,right:Ot,bottom:an=23,precision:nn=0,wrapWidth:en=1200,trackEventItems:xn,loading:Pn})=>{const Cn=Math.floor((en-(_t-1)*Ot)/_t);return E.createElement(it.Z,{spinning:Pn},E.createElement("div",{className:De()(ht.list,Gt)},!!Rt.length&&Rt.map((Nn,An)=>{const{name:Qn,id:zn,identifier:Nt,power:Qt,cover_image_id:En,pic:mn}=Nn;return E.createElement("div",{className:ht.wrap,key:zn,style:{width:Cn,marginRight:(1+An)%_t===0?0:Ot+nn,marginBottom:an}},E.createElement("a",{target:"_blank",href:`/shixuns/${Nt}/challenges`,className:ht.li,onClick:Xe=>{Xe.preventDefault(),xn&&(0,lt.L9)([xn]),Qt&&(0,lt.xg)(`/shixuns/${Nt}/challenges`)}},E.createElement("div",{className:ht.img},E.createElement("img",{className:ht.cover,src:`${mn}`}),Nn.is_jupyter&&E.createElement("span",{className:`sprite sprite-43 ${ht.sign}`}),Nn.is_jupyter_lab&&E.createElement("span",{className:`sprite sprite-42 ${ht.sign}`}),Nn.is_unity_3d&&E.createElement("span",{className:`sprite sprite-44 ${ht.sign}`})),E.createElement("div",{className:ht.name},E.createElement(nt.Z,{title:Qn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},E.createElement("span",{className:ht.e},Qn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),E.createElement("div",{className:ht.tags},E.createElement(nt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},E.createElement("span",null,E.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),E.createElement("span",null,Nn.challenges_count))),!!Nn.myshixuns_count&&E.createElement(nt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},E.createElement("span",null,E.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),E.createElement("span",null,Nn.myshixuns_count))),E.createElement(nt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},E.createElement("span",null,E.createElement("span",null,Nn.level))),E.createElement("div",{className:ht.rate},E.createElement(Fe.Z,{allowHalf:!0,disabled:!0,defaultValue:Nn.score_info}),E.createElement("span",null,"\xA0",Nn.score_info?`${Nn.score_info}\u5206`:"5\u5206")))),!Qt&&E.createElement("div",{className:ht.lockWrap},E.createElement("img",{src:`${kt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),E.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Rt.length&&E.createElement(et.Z,null)))},Ke=ne(54077),ze={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",hidden:"hidden___NniIi",wrap:"wrap___pKgcW",btnsTop:"btnsTop___Lrm6T",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},se=ne(62957),qe=ne(96599),Le="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLRYo9vpuZE7YGdyG2Q0R5UvQBWxYwKwBn8pWPEPg7IlhdiKDYnrMIXAz6WDrh/mu3bXcNcEC5P7wIbrdQzH9eQCZF7+2WkrsCWPZcD/TgRbZsF1zTmrBrBX5HN3tyxwD7YTOVRy8KVL0Bd65Vmo667q2dStcdASx6rofyjouqUK/B9dsXFUohcksnenLbAMtemy1UfnrRiLE84NZ6IdqRirtvbdfi1TbA2Xz5r5j5j5Z5ehe705RMf51KRP64ncVoC2BxHLDH9/batlz2gJPnFc7PArNVgvjViABH6Zhm/ZErQoxkH7AmxYhHlsX71s7aWr9XbNek6M52HBQtA6xdflx5pldCVaEMHDuvcK5A8AjI5oB8EShXgEoZKFeBSgVQCohEgKjr/4z3AUP9gCIg7jLWpBn9fa9lsMXa5d7UqquxJYCFYrOFyk964c8V4F44oVCsEs5lgfNZIJcHPMFIk27wU0sbof/V0UcyBgz2AyMDQDQCbBzwXrtAEz2airu/3ErQQEsA5wqVT3qe93WbPKfqAS+eUsiWCWdmgJPTQLVaB2gjw6oB3U9B0azbsGz5XV6KsWFg01pAzGqXjniIua89ilZK3ZWMu99ohklTgP0YqsqLNlnz+SJh7ymF8xkf2JKEkFu+BOx1Y8CGNcBAH2P9gGe5h5VujqZTCfeKZjFeTQHO5EpfA/ApW9N5ZYYweU5h6jhwPlfHcpux5Ha/BxCLAldfBqSijMtHX2sg4x/SyejvLIXNkgAHoa07bEnNe48rnCkQDr8CFBokehh2q1ntIizYsOVG3y/g6AH7dl3gykuAvj4gAkahSihUCCVP9nryJfNgj1dguIrQ5wKJCCMZZaSjjOGEh6jV9LbuSUb2YAW+ZamQ3CUBzubLT9mKW95zTOFkhnDoqC8NL8clL0oqSYgnCSoCVIM92580axAjji+BuyqQ4RgQOq8wUKrK/0jv83Ilo8BQzMO6VBUDseWYQfM+JO46lYi8cbE7FwVYZxxUvf9u3kXzOyZnCIfPKuw/FAhSgcxTz3GbyFQLpOh6Ics877qE9AAQiZEGSyJUI6JGOT5VxlxocEWvdgTcAGQBUtQwWRTDTQTkYhXIlQnZElD2fMBjDmMizdjYX0VkhSlbOepXF/M6LQpwJl/ebiOd5FyR8PxxhQNHgGKP8+9EL04PKU2tAr5LjIQLJB0DJmswDbACpuP41KuBFYDlEwBsKFdz72ClZqvA2SJpI4yALc+PJ6rYPCDSevOXvSd3EG1PJyK/1KjthgBLIhg8frjbwYgq9MRhB5PHgXOZha01k5nq9d4FalEgowk4/UMKTp/fR59iJBX0nqkBo8ASpsGVPdYHVD7yuwY8uLcGcrAyNZCljbopZErAqQKhWPGB3pD2cEl/RUyK3S5d+88renujhLeGI8nmyv9rI8vv+aMKh6cJk8eC8Tbjye1Oi4BEkpDo91lxVDFSjghS/lVjuQZgMXc6DDdgxRrYEAWbl0GDHwC6FMBmuLkycKJAKFUJMQe4YriCwdjy6t6S1ZhKRn6l0TY37386Pxd4st21rr9fWNnTkw72HeyNnit7Z/+YAsn+CUbaBWJ68wzADbFZQ8GaJSuex6INy9ZCVmDvNkBLW2Y/DrPpxdbmTBGYLhCYCBvSVWzury4rNSvgTfX5yQsoOJMr/T2AJXWrVsDfeUThldOEoydbubu9e9wIYWBUFtJnxwPOHPuct28KyHWs1yHWVCsgCgULwAZkDXBA3ealaAdgmYWoXlNZ0vtzfx9wzUhZ97NM19fSyeinw33NA1jKJmTzlePdZtaL40Cod8+BQGq2OLtIFBgcVVrlSTiMtDPXeHgy+ndDgYFkrPfZEBUb9cgA7H8X7M/B3m0o17QXNLvkjGRsx/OkJW+R2q8erWjW3fuLZlIJdyJcTmIewPl85QNV9r7X7UD2nVTYd4wweXTplpoZNuqf7osB6WEFD4xBw5IbdFG/b8rfMlENoKZQn01rISvYg42qNPcSzLFneRH0FWL/razR6QLh7KxvNLl2tLwsUrZD6oOJhHu3Gd88gLP5skRH3tnK4Je6Z/tBBwenGkvOnbYtHqL+Nb5DeFgMFK2wPSNBB9gYdu2zaNZg14QsvZfPl6r1ixH+NFCfms3nfBk4lSdEXcK1Y2X0tTLuZo0u8T0R3ZtKRN67AGApVZQrVI52W81GDANPHnGw64XA5RcaTODsWbSswGJCthguhsYJHjNGWwXXEJ0BSChYfjdsGKzB05Qb/M/swWGVSb8MwbMycNNGeG9uhse5EnC6qLShRUAWga5Xl1T/ScbddabEU42CbbkEX55W2DtFONAg87WZltToBZAFHV4rbBkYiDASLSzOPLYUAtgA6APFvkFD2HQAvBikjSQt1C036BdAKDt4EbSEbQwjIQNIM8BEXz5fJu3Zunqkt7basCuxthbZfOm7zPjNZgNt9v3OSYWXpgjHpxf655sB3Kjt0XEhLyDpMvrrBZVGqmadXlDbPo3QFLJUacOJYuhce+NXDu4z0nRY0hbDiTgu6oWxZmsi30sXIniJk0NUKDGK9Ooiwr+kEtGPhsQGCZEpH7NRQc7sv9PnlgzA0HNrZslKpgnxftKq0FCHZkAjYEl/AkxNWBKngo4aYWxdR7h8Qr5f3AJVKDF2H/FNnZHASSHgmz26FbCkv6kcoQrCVaMVpHsUiCAV+VLJyNoawEHtxz2tDLLZPT894OClI37oTTeXcoHRCaUdBbLvLrH2S3YzT481+CrA84CKJ2oc49feRHA1T176+vlBT8eGxSJ+PJgxc7ZjmRQ9+WiOEHMJ142WemYIibqRqyVYXs8qkyv9HoCvNptgK98/+rKD3S8CxVIrdy9+z8ioguoDBiOMePO1X9hQ6JkwFcuNQkns+UaJSpnx4V8iOC28QY+/6KFSBeIxaJVHuxoDo0k7sz1bIpwrETalq5hI9oxVfzadjP6dD3C+/B9gfn87g1zs3u2HHDz9/CIGjmY8OWhUjBlD4wpR8lWijq6wcyD4XW/ZQTBfqeJHbM5WGB9/W2sA/2yvp6k+0Qckoj6rNlaxdsYoe/8reV/6u3GsBKcdFtBqR0T/kU5EPqABzuZLLzPjklafXeq+n73s4JkXgFIXFDw2IdIMMBbh1vTdRgOqM0roNQwiN8TLpcEtC6dhfPK25gCLivbALtZUm4wDcQFYjCQdbh/ioDg1q3TwwIaUfSomwqFUInqpVOiK5QqVnK16yz854OCFg/LSLBSi6nFopBaJnXlkgtBHjCEb9WVDDgPDmiVao6zBBUR4+sztPsAvHmU89KwvOMn+KuDJfhuLsLZ7y/8kPFc+ArDEZndCwWYdROAShnLjmjKUZSqWetfJuJuk7Cxfx5XyszaoV9rQQtYkMD3TWYsjYwQ3ThgV6u1k7w11G1aRTJy1sEfJnBAOU5DPLOOzd/gA//wA49+3+/ZoAU8C9hIxRqoPSCeAlAG3zwc+2uEebIaYKQPTswqbByoYj9t3L5IbuZ5s2Z/NoB9/WWH/FOHY6QZ6cIM45nAQnbQxsVHpSIzRaGcvSPgpAViANTZvEazEEWDYswB8+QTjnTdKGA7hbJbx7YeBM1mgT8CNCqjsAxuHTpOR/Ve+kxfA2LE7JT6zF8vLcs2wfeOH2KUpVyh/3vP4i90vp9/CnuMKe15pbMlqxqJF700PkdYPJSKjkyvs9dEB8SEjhuy9IgUbAeuWrcC1m+aziVKF8cOngJdPCKA8n3KjQFxYdjRwMYZiuToZqzxzukjIVwnXj5T1S2PzUoq+QNl86dvM+JithjNFwtOTCk8+17zFeqF6fK2CijLWRHyvTzeX5gwBBUs7QrkSzSl6rLDW224A1gws3snOA4xnXvapt541a0NHKOynm3FKQN+JosLGlIeJpKR22LuI8B3K5sr3M/id9pr19+Fn9/sJZK3mFkn/Gy5ROjpj1IJwpfdcAVhin4U1e6ISARMDwLbrhAqbv0FHzzCeeInR5wCpuL/v9sneKy9gyG/czdrJMEVlSrmErcN2UzwI9GPK5MuP2U7mfmZS4YVX/Bjo8LWUGizS85p1hGSdE7+txTP6bqAOCRVrlajqS83XbwbecJnOs2252fwsQ6hZ2pFMRtl/ayG3gamy5cYWufFkUYLwCTeNWbZsEe2gbK70LAPXdTvI8PPTeYKA/OTu4L9GQFzCXzgwAKSGFIYc7spnKtgZdUgAFvelsOZrNwE3X946sOH5VD3Gjn2sbdkxAdmCgBVuX9yJ58oKVw1XkLSY50zAc7IHWzNyhAf96AEH+yehpelWrjVjhGiSMBZlcR51fIUBFoFKqFcMGrddD1w63hnAMpgn93uQUCRRmbQU3aWKFJ5gvgKcLilc2l/FSMye0UOMHZTJlU/bzBw0Az+dIzx3TGHHLn8PbHZt2KSgHMZ4N+qRsVYFrFnSUWXfFYPGO28ELptYCHClyrjnCeCJF32Hxi1XAnfcLFLy/Hu37w0ADqxYhoprHqpmE1zie9HLjxUUxpNVLWzZu2iasvnyLDN3s6yLjuexgw4OHAUOmbjoJUa++RKlY5bFc9TxFQZY2HPZ/+RngXe/Hrh87UKAv79DTJDzA99Fwn7PG+ff+8huD/kS0C/6cNwXtsRUaSNiUnawyRxhKAZcNmBPHyaiUk8Bzs4SnplSePw5P5uwfgsOC12XvE7BdRgjXfDnmr3ZWKvEHBkAfMfrgS3rFgL8Z//M+gUQsIxrUSTmP//Q/Hsf2OXp+/qTvtokurCoSyaeuuOXMnjwlRwhFSVcMWRPktYA94pFmwnvO6EgyWdPPOdLtDUvf92KXHKZ7z3qxLEvL4oSyVli8uTEQckOrPgClrxYuSLjzpsJV6xfCPBf/AvrPVrAMi+gWKw+5/thatf9z3g4XwAGk0DaOBsCn7D2NNZnQrSJ+NG8H30pgpa9S7Po3ghZ4UE+dUjh+DnCzr3zSy6E77lsi9KpJ+0ArM2QoRIe2lsURGr4rkDfW5QtAu97E+HKBgDf97RIyHMAS5ti4br9pvkA3/e0h5k8MBAALGZM0Yd1THUQ01XLoOhAljteJN3ONRbjtbSQ1Qs1qf4NFIqS/fjISWDfoSDZuq6myqVbFGLi/zXSQJ3tPaxpSfvakCFxVAFXEEuV1nsFYDFJGndghZErAO+/hXDVhsZC1oPPAruP+C/LdZuBt1+3UMj6wROM0xnGQMKn4Hk26SDHycRxmQS2dijxaIEQUaQzIWxdWk2ylSbabFCirkim4akZ4NmXfBDCe/DlW5SOvdJOBpNxv0ijJiPfUKuxVA0lgY0jvgAkL4BsCcb+fOm4sNcOSCsYw6GTrL1P2gccfKTfmTxr27b8XwcAhCxcbdhTMCUsOgJcPWSRRRM9JqbKHzH49mYA2fheFuSpIw7OFYCn9wRhPQHKW7YqXdhsIsicr0VfBB2HKdgYMgyI8vKsHwLeek17Viobc2Jm7J1iZIq+AaRmp24zlMcXsoArLAJMoPutOxtaWbTnjymcLRB27YcOr5Vr6xWkY5Q3JedaMKCaMknyjfEQyXeyzwqFFivAnW/ojkJbGfdi92SLjJ0HWbsXta06FAjQChXLnCbzhOE+xusG7TkctLPBtruw1YU6lSHsP62QLQC7DwJrxhWqirFloI5FByjXtuTQPlsTpMrAb79t+anXzFWo+Me7WEd6yN4sTgmTEtMKwBL8d7ygsDZZxXqLhg7tLrTt8G8VYHPfoWmF4znC0TMKmSrwun5PmwH9sjfBj9CebGpVihnSWKlyReBTv9KhA7ndAS9y/z1PeugPoj5MOE+rEZe5ih/ZIUaOIYuJ49rhbztkp5P1kr10+wEXB2cIG/s9DPbNVa+rUYnZi4N4ZpGShTVLPctMAfjM7Z0BfOgE4+cHgfN5YP0ocOtVrbkS6+f5b9s9DKUCCTtg1SbdpdmazJT8tJZrR+xmIOqQHdtBd80ms9j3UtTkP3dHMBpnbOpnQ8C1MoXmOSMxi+QqUq2w+Ewe+My72gf4wV2Me570JV/tpPB8gH7/DmDNYHsS93d/4gNcs3QFOnIrtmrRgUWWuGmNPQm6FnQnC7ccxo5WgL/72QgqHuPGCV4ArBG05Kdmz2UgN+sDfDYL/O672wN4aprxt/fMpaEIECacdt0w8Ad3tgfwPz3kYbQfWk/WwQFBWG0zgEWNFwl6oA/YMmgT4CBsVhY+ky/fDebfaAWEXt7zyAEHR2YUbpjwEHfnDCI1cg4iNLQLMGDPYj48m2kfYKHeR3b7QpGoNgZg8TzJnv4XH5bvWgf5Hx/0MNLvmzLDADdzRuSrUqlH6XoeaxIWPUnhwHebqSvdvABTM8CDByLYMMDYPNA4jNQYLjQQs5J240dBtsuif/A4Y9+UgMFatRGAhTMUSqT39N/eBmwYaR3gbz7oYTQNDKR8Z4REf7TibZJojlmPcMOo9bzhudQVm8ln3QAsz37vWVez5zdvDAEc+tUALM53EbBmAoA//c72WPR9TzFePsma2kR/FR1cABbqPZ8nfPhWYP1wewCPpIHBNgAWs6qwZynWstWigUPWcV7ymd6HLaWPdgvwzikHe04oXD/uYbjBIXnzKLgInAsAvqtNNen+ZxiTp1mrNkJtYkcWwU24grT5628mrG0DYM2iDcChPXgpFi2hOjNlhcstq0cL0kcDQctKAni3AIv/9vu7I7rK683rF7LpBQAXgDMZ4BPvaI+CJc/o2FnW3iHRW8UTJHu7ULAIbe+5mTAx1DoFf+thD8MCcEjIMtV7Gq2JCXqX6gLXj5XbCgRstsYNE8BtlXBo1nkr3+84pPDSGQc3rfMwUkfFJq9XVCRh0YaCP/QWQryFUFjTv0RonJzxU1I0BSs/+kMoeCbruwvHW1SVJL/p7sdYAyxStE5Oa6ImCfWeLYlwVcF4wm7aSsMSDraKsLQCYLN7ciXgnr0RXQfrzZt4XtEWDXCdFC37sGQoXLe5dYr72R4PJ87DZ9GBkGUo+FweeMd1tGRgfHgOzx1mPH+E9f4rAGtX4hIAy94r3iOXCNePlawmni1ahMVn03bKKDUDsJXv/++4g+eOKlw55mHT4NwT2oMU6MEiaIkeLFQsku8Nl0jUhqScNAf68X0eTmXmwm8MixbOIJXof/kawmj/0u3kZhn7p4Bdh31hTbPn4IURgBfLPJR0lUyZsGWwiuG4RdXIP1upcRklWcKVtkuHgfc8xg/3RFGsspaoE0G2gzZ0BA59baoUVSnvmxoF5GyBtIVL9nJxRsglViqxb+uEMskUjPvClXwkPEe8P1pNEs9UYB0TKpb2MtKelA4O0l5M6SVxKMjeLWqWBOJJW8LujbNBUk8bxWsVKuJYIKTlqAGL0Rtm7ZYshGarlGErFNrKPScyhAdecrXA9cYNfhlgk60gYMii66C6or93SuSGRD4KSKUKaVYuFK9LFjoCJOv9Viq362zBIM9Xx2OJqTJg/aYt+SltSx+Vqm9OlMu0pdNLg7YkXlpKOwi7X6x+R1lYc9Yv43PDSFn7j+1eTUoZSme2ipHaGviuowq7TzgYTTJuWucLI8Yebfbi2QBUne8rlBscpCXgGoAFZDE8SByVpj5x64XSQOV7aVf2YT8x3P+ISVTUJ+nLpLqatvTBXAElS1smrSVc+9Ksg6mwU2afNY9YZs26H6X+Ph13PxNe+wWbjK1ywrYAFl/rAy9FcSoHbB5kbBllDZpJKtPpoKGUUJGEBSShNh35EQiopui3T30+0Pr0tKDAmc4hDgQ4kw1hgJW/dX9BrrGpVGteGOEAus0glMcUSgvXddHFSSukzZGXWXTqh9e5pXLCWtiyVBDcFsiywD960UVmlnDNuIe16YCKg2o5RjfWe7MAEQBsYrfmFSM1Vd5DZYRN8W8twAVCnGlT/5T4MX34g++gNtXwxN+rSz0EFfG0V6pW8HRu9lKUVFyCUuXuqhH75Rq0nNFqQXDNpi2V9LcFsLQjqtOPX3Qhhca3jjHWpX1nhA7eC1ixYd36b3koFCigIx39lai5B8Phrvr2IGHcsHbNBYLgwHDYkC6FGDows1Yhvu5QD2nTgCv7vtTFsl2Lo7bG7ZT01yBbOpTDJsiZWeDhgxEtSIlDQth1GBQTqFeLugx1HsSm+1uVsOPQWQ4B7r7TKngpwjU9arFhcxWF5yrBm1LFQQeGLcvzx/KEfIV0wtq1wz0sDE70WDoReUujtV5U0bN5rI5NkCUT75EDEQjYw3HGNeNz0nWAT8jP2KDnYMZm4o1ipswLop9eysgUqsUVbsdUs9NV36OMa0Z7w5bN7Do6VkfvxRYPxrIJsuzJ2w9HcCLrn4N07bicUGazh87bkvpXx3JySAhhPCkCVaV3bNk3bHR2MJZM0fbRdp0vW+Mnxeu055QDqTa1cRDYNMAd17TsdmyyX5+UksEl2eMJW4aqGLPpwG/EjLo92k7vxZYPp+x2Ieufl1NOdr7i4lxRLEuMSwcYo6mFZxzZ7te0J3vtzKwvTMk5iAMxxpXDlR4YMRrOoLvDKX3J0v7xsrYXW3Rl8T7tOen4xUIjrIWwsYSd/N1G4xXVSYA9UyRUPKkeC1w+WMVo74qL1g3D0vGy0upqciUu9XJIwN6+0w4OTit9rI2rWLsb1yQZ6b7OSxKbPkVHlvMLZ2ZJq23i55LDpzcNVrE26fV0r62ft7UDogMq7tkR77apWdqrMuPwjMLhGQdydqI2TijW8dZyVKzYjyWoT2zBi1URFtYrOrcOrq+I98ePwxbmLwYNOdlsfdrDaHx5D7/S62X7iHdf4OKNVa4804t6Hr0A2bQpOvPRjIOTOYWzRd/VOFel3a9ma8yYNcNJrQSir0zJ/RHJXY5D25BFOhYz5cpcNO2Qe1MiQQ1OxVg4ouaO09AzuWLlDvb4XlsHRi/3AklJ4POzCjkpyD0rjgmlvUQV5uBsYXHC+6BHHKF01npsqo+RtFCcrdv5yoHQpOjOZMy9r9W22gJYGs3my3/FzH/UagcX77O3AkT016lE5I/babFtgJnZzRYqP7VdHa+dQV+Q9xLtSMXdtxJRW+kPbQMc7MfrPZR3MGPjBbnYyzxpIkwqRG5JJGiq3a47Alg68YPlK4++2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Ae=ne(59301),ct=(Gt,Rt,_t)=>new Promise((Ot,an)=>{var nn=Pn=>{try{xn(_t.next(Pn))}catch(Cn){an(Cn)}},en=Pn=>{try{xn(_t.throw(Pn))}catch(Cn){an(Cn)}},xn=Pn=>Pn.done?Ot(Pn.value):Promise.resolve(Pn.value).then(nn,en);xn((_t=_t.apply(Gt,Rt)).next())}),ce=({className:Gt,dataSource:Rt=[],col:_t=4,right:Ot,bottom:an=23,precision:nn=0,wrapWidth:en=1200,trackEventItems:xn,loading:Pn,category:Cn,hiddenClick:Nn,handleVery:An=()=>!0,isCurrent:Qn})=>{const[zn,Nt]=se.default.useModal(),Qt=Math.floor((en-(_t-1)*Ot)/_t),En=mn=>ct(void 0,null,function*(){zn.confirm({title:"\u7F6E\u9876",width:500,content:Ae.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",Ae.createElement("span",{className:"c-blue"},"\u201C",mn.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return Ae.createElement(it.Z,{spinning:Pn},Nt,Ae.createElement("div",{className:De()(ze.list,Gt)},!!Rt.length&&Rt.map((mn,Xe)=>{const{subject_identifier:ut,id:ke,identifier:be,power:fe}=mn,pe=mn.is_public!=0&&mn.is_public;return Ae.createElement("div",{className:ze.wrap,key:ke,style:{width:Qt,marginRight:(1+Xe)%_t===0?0:Ot+nn,marginBottom:an}},mn.homepage_show&&Ae.createElement("div",{className:ze.btnsTop},Ae.createElement(qe.default,{color:"red"},"\u7F6E\u9876")),Ae.createElement("a",{className:ze.li,onClick:Ve=>{Ve.preventDefault(),An(mn==null?void 0:mn.first_category_url)&&(xn&&(0,lt.L9)([xn]),(0,lt.xg)(mn.first_category_url))}},Ae.createElement("div",{className:ze.top},Ae.createElement(nt.Z,{title:mn.name},Ae.createElement("div",{className:ze.name},mn.name)),Ae.createElement("img",{className:ze.img,src:kt.Z.IMG_SERVER+"/images/"+mn.avatar_url}),Ae.createElement("div",{className:ze.text,title:mn.creator},mn.creator),ut&&Ae.createElement("div",{className:ze.btns},Ae.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Ae.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),pe&&Ae.createElement("div",{className:ze.sign},"\u516C\u5F00"),Qn&&Ae.createElement("div",{className:ze.hidden,onClick:Ve=>{Ve.stopPropagation(),Nn(mn)}},Ae.createElement("i",{className:`iconfont ${Cn=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Cn=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),Ae.createElement("div",{className:ze.bottom},mn.visits>0&&Ae.createElement(nt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Ae.createElement("span",null,Ae.createElement("i",{className:"iconfont icon-liulanyan"}),Ae.createElement("span",null,mn.visits))),mn.course_members_count>0&&Ae.createElement(nt.Z,{title:"\u6210\u5458",placement:"bottom"},Ae.createElement("span",null,Ae.createElement("i",{className:"iconfont icon-chengyuan"}),mn.course_members_count)),mn.tasks_count>0&&Ae.createElement(nt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Ae.createElement("span",null,Ae.createElement("i",{className:"iconfont icon-zuoye"}),mn.tasks_count)),mn.is_end?Ae.createElement("div",{style:{color:"#6B758B"}}):Ae.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!mn.is_accessible&&Ae.createElement("div",{className:ze.lockWrap},Ae.createElement("img",{src:`${kt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Ae.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Rt.length&&Ae.createElement(et.Z,null)))},Ue={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"},It=ne(44283),ge=({dataSource:Gt=[],value:Rt,onChange:_t,className:Ot,style:an={},tabBarExtraContent:nn})=>E.createElement("div",{className:De()(Ue.tabs,Ot),style:an},E.createElement("div",{className:Ue.tabsWrap},Gt.map((en,xn)=>!(en!=null&&en.hide)&&E.createElement("aside",{className:Ue.tab,onClick:()=>{_t(en.id),en.link&&It.history.push(en.link)},key:xn},E.createElement("div",{className:Rt===en.id?Ue.active:""},en.name),(en==null?void 0:en.resetCount)==null&&(en==null?void 0:en.total)!==void 0&&E.createElement("span",null,"\uFF08",en==null?void 0:en.total,"\uFF09"),(en==null?void 0:en.resetCount)!==void 0&&(en==null?void 0:en.total)!==void 0&&E.createElement(nt.Z,{title:(en==null?void 0:en.tip)!=null?en==null?void 0:en.tip:""},E.createElement("span",{style:{color:"#9096A3"}},"\uFF08",E.createElement("span",{style:{color:"#000"}},en==null?void 0:en.resetCount),"/",E.createElement("span",null,en==null?void 0:en.total),"\uFF09"))))),E.createElement("div",{className:Ue.tabBar},nn)),Ge=({className:Gt,style:Rt={},children:_t})=>E.createElement("div",{className:De()(Gt),style:Rt},_t),Tt={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},wt=ne(75727),Lt=ne(93041);const $e=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var st=({sortValue:Gt,dropValue:Rt,className:_t,onSort:Ot,onDrop:an,dataSource:nn=$e})=>{var en;return E.createElement("div",{className:De()(Tt.orderWrap,_t)},E.createElement(wt.Z,{dropdownRender:()=>E.createElement(Lt.default,null,nn.map((xn,Pn)=>E.createElement(Lt.default.Item,{key:Pn,onClick:()=>an(xn.id)},xn.name)))},E.createElement("span",{className:Tt.orderTextWrap},(en=nn.find(xn=>Rt===xn.id))==null?void 0:en.name)),E.createElement("span",{className:Tt.orderIconWrap},E.createElement("span",{className:Tt.orderAsc},E.createElement("i",{className:Gt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Tt.cursorPointer} ${Tt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Tt.cursorPointer}`,onClick:()=>Ot(Gt==="asc"?"desc":"asc")})),E.createElement("span",{className:Tt.orderDesc},E.createElement("i",{className:Gt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Tt.cursorPointer} ${Tt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Tt.cursorPointer}`,onClick:()=>Ot(Gt==="asc"?"desc":"asc")}))))},ae={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"},te=ne(7939),ee=Object.defineProperty,oe=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ve=(Gt,Rt,_t)=>Rt in Gt?ee(Gt,Rt,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Gt[Rt]=_t,we=(Gt,Rt)=>{for(var _t in Rt||(Rt={}))ue.call(Rt,_t)&&ve(Gt,_t,Rt[_t]);if(oe)for(var _t of oe(Rt))re.call(Rt,_t)&&ve(Gt,_t,Rt[_t]);return Gt},ft=(Gt,Rt)=>{var _t={};for(var Ot in Gt)ue.call(Gt,Ot)&&Rt.indexOf(Ot)<0&&(_t[Ot]=Gt[Ot]);if(Gt!=null&&oe)for(var Ot of oe(Gt))Rt.indexOf(Ot)<0&&re.call(Gt,Ot)&&(_t[Ot]=Gt[Ot]);return _t},Oe=(Gt,Rt,_t)=>new Promise((Ot,an)=>{var nn=Pn=>{try{xn(_t.next(Pn))}catch(Cn){an(Cn)}},en=Pn=>{try{xn(_t.throw(Pn))}catch(Cn){an(Cn)}},xn=Pn=>Pn.done?Ot(Pn.value):Promise.resolve(Pn.value).then(nn,en);xn((_t=_t.apply(Gt,Rt)).next())}),mt=Gt=>{var Rt=Gt,{className:_t,style:Ot,children:an,loading:nn=!1,openLoading:en,onClick:xn=()=>{},size:Pn="middle",shape:Cn="round"}=Rt,Nn=ft(Rt,["className","style","children","loading","openLoading","onClick","size","shape"]);const[An,Qn]=(0,E.useState)(!1);return E.createElement(te.ZP,we({onClick:(0,We.throttle)(zn=>Oe(void 0,null,function*(){en&&Qn(!0);try{yield xn(zn)}catch(Nt){console.log("error",Nt)}en&&Qn(!1)}),2e3,{leading:!0,trailing:!1}),className:De()(ae.btn,ae[`${Pn}-${Cn}`],_t),style:Ot,size:Pn,shape:Cn,loading:An||nn},Nn),an)},Bt={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},Ut=({className:Gt,style:Rt,children:_t=null,onClick:Ot,title:an})=>E.createElement("div",{className:De()(Bt.head,Gt),style:Rt},E.createElement("span",{className:"primary-hover",onClick:Ot},E.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),E.createElement("b",{title:an},an),E.createElement("div",{className:Bt.node},_t)),Wt={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},ln=({confirmShow:Gt=!0,confirmTitle:Rt,confirmClick:_t,cancelShow:Ot=!0,cancelTitle:an,cancelClick:nn,className:en,style:xn,confirmLoading:Pn=!1})=>E.createElement("div",{className:De()(Wt.btns,en),style:xn},Gt&&E.createElement(te.ZP,{loading:Pn,onClick:_t,type:"primary",className:Wt.confirm},Rt),Ot&&E.createElement(te.ZP,{onClick:nn,className:Wt.cancel},an)),qt={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"},Dt=({className:Gt,style:Rt={},LeftContent:_t,children:Ot,RightContent:an})=>E.createElement("div",{className:De()(qt.fixedBottom,Gt),style:Rt},E.createElement("div",{className:qt.wrap},E.createElement("div",{className:qt.left},_t),E.createElement("div",{className:qt.center},Ot),E.createElement("div",{className:qt.right},an))),tn={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},je=({className:Gt,style:Rt={},dataSource:_t=[]})=>E.createElement("div",{className:De()(tn.crumbs,Gt),style:Rt},_t.map((Ot,an)=>an<_t.length-1?E.createElement(E.Fragment,{key:an},Ot.path||Ot.onClick?E.createElement("span",{className:tn.hover,onClick:Ot!=null&&Ot.onClick?Ot.onClick:()=>It.history.push(Ot.path)},Ot.name):E.createElement("span",null,Ot.name),E.createElement("span",null,"\xA0",">","\xA0")):E.createElement("span",{key:an,style:{color:"#5F6368"}},Ot.name))),pt=ne(11938),Ft=Object.defineProperty,jt=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,ot=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,Kt=(Gt,Rt,_t)=>Rt in Gt?Ft(Gt,Rt,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Gt[Rt]=_t,cn=(Gt,Rt)=>{for(var _t in Rt||(Rt={}))yt.call(Rt,_t)&&Kt(Gt,_t,Rt[_t]);if(ot)for(var _t of ot(Rt))Mt.call(Rt,_t)&&Kt(Gt,_t,Rt[_t]);return Gt},Dn=(Gt,Rt)=>jt(Gt,Ne(Rt)),kn=(Gt,Rt)=>{var _t={};for(var Ot in Gt)yt.call(Gt,Ot)&&Rt.indexOf(Ot)<0&&(_t[Ot]=Gt[Ot]);if(Gt!=null&&ot)for(var Ot of ot(Gt))Rt.indexOf(Ot)<0&&Mt.call(Gt,Ot)&&(_t[Ot]=Gt[Ot]);return _t};const{Countdown:un}=pt.default;var fn=Gt=>{var Rt=Gt,{onChange:_t}=Rt,Ot=kn(Rt,["onChange"]);const[an,nn]=(0,E.useState)(null);(0,E.useEffect)(()=>{typeof an=="number"&&an>=0&&_t(an)},[an]);const en=xn=>{const Pn=Math.floor(xn/1e3);nn(Pn)};return E.createElement(un,Dn(cn({},Ot),{onChange:en}))}},79006:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return Qe}});var E=ne(59301);function Qe(xe,tt){const Ee=(0,E.useRef)();(0,E.useEffect)(()=>{Ee.current=xe}),(0,E.useEffect)(()=>{function Be(){Ee.current()}if(tt!==null){let De=setInterval(Be,tt);return()=>clearInterval(De)}},[tt])}},6808:function(on,$t,ne){"use strict";ne.r($t),ne.d($t,{default:function(){return ke}});var E=ne(59301),Qe=ne(44283),xe=ne(93041),tt=ne(24404),Ee=ne(28284),Be=ne(6767),De=ne(37285),We=ne(91882),Ie=ne(77019),he=ne(5269),Je=ne(62957),Pe=ne(31691),dt=ne(37568),Ze=ne(7939),Ce=ne(92216),Te=ne(32352),_e=ne(90736),rt=ne(25399),gt=ne(62673),Pt=ne(4875),ht=ne(84849),it=ne(39116),nt=ne(35883),Fe={flex_box_center:"flex_box_center___p1qG1",flex_space_between:"flex_space_between___EHoRl",flex_box_vertical_center:"flex_box_vertical_center___c0u2d",flex_box_center_end:"flex_box_center_end___ueiDD",flex_box_column:"flex_box_column___tyRHS",wrap:"wrap___ce8sS",modal:"modal___yzD47",titleWrap:"titleWrap___OBPcs",required:"required___ncxFF",title:"title___cxIaz",colorGray:"colorGray___NXXsn",choiceWrap:"choiceWrap___AhJbr",answer:"answer____f42Z",activeAnswer:"activeAnswer___BqxNg",deleteIcon:"deleteIcon___iHXv4",addIcon:"addIcon___Kb1l4",editorWrap:"editorWrap___UmeId",htmlWrap:"htmlWrap____EtjV",radio:"radio___zqqhF",color333:"color333___PUxW5",color999:"color999___Uiwst",questionType:"questionType___GcJoU",questionChoices:"questionChoices___WgikS"},kt=Object.defineProperty,lt=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,Me=(be,fe,pe)=>fe in be?kt(be,fe,{enumerable:!0,configurable:!0,writable:!0,value:pe}):be[fe]=pe,Ke=(be,fe)=>{for(var pe in fe||(fe={}))et.call(fe,pe)&&Me(be,pe,fe[pe]);if(lt)for(var pe of lt(fe))St.call(fe,pe)&&Me(be,pe,fe[pe]);return be},ze=(be,fe)=>{var pe={};for(var Ve in be)et.call(be,Ve)&&fe.indexOf(Ve)<0&&(pe[Ve]=be[Ve]);if(be!=null&&lt)for(var Ve of lt(be))fe.indexOf(Ve)<0&&St.call(be,Ve)&&(pe[Ve]=be[Ve]);return pe},se=(be,fe,pe)=>new Promise((Ve,Xt)=>{var rn=Re=>{try{Ct(pe.next(Re))}catch(xt){Xt(xt)}},Yt=Re=>{try{Ct(pe.throw(Re))}catch(xt){Xt(xt)}},Ct=Re=>Re.done?Ve(Re.value):Promise.resolve(Re.value).then(rn,Yt);Ct((pe=pe.apply(be,fe)).next())});const qe=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Le=(be,fe)=>{var pe=be,{problemset:Ve,globalSetting:Xt,loading:rn,dispatch:Yt,onRef:Ct=()=>{},editData:Re}=pe,xt=ze(pe,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const[Jt,gn]=(0,E.useState)([]),[On,Sn]=(0,E.useState)(),[Fn,Xn]=(0,E.useState)([]),[qn,Hn]=(0,E.useState)(""),[Ln,Rn]=(0,E.useState)(5),[Zn,or]=(0,E.useState)(!1),rr=(0,Qe.useParams)();(0,E.useEffect)(()=>{gn(["","","",""])},[]),(0,E.useEffect)(()=>{if(!(Re!=null&&Re.question_choices)){or(!0);return}Hn(Re==null?void 0:Re.question_title),Rn(parseInt(Re==null?void 0:Re.question_score)),gn(Re==null?void 0:Re.question_choices.map(Bn=>Bn.choice_text));const Vn=[];Re==null||Re.standard_answer.map((Bn,Yn)=>{Vn.push(Bn-1)}),Xn(Vn)},[Re]),(0,E.useImperativeHandle)(fe,()=>({onSave:ir,isEdit:Zn}));const ir=()=>se(void 0,null,function*(){if(!qn)return Be.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;const Vn=Jt.findIndex(Jn=>!Jn);if(Vn>-1)return Be.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${qe[Vn]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!Fn.length)return Be.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;if(Fn.length<1)return Be.ZP.info("\u8BF7\u9009\u62E9\u7B54\u6848"),!1;const Bn=Jt.map((Jn,dr)=>({choice_text:Jn,is_answer:Fn.includes(dr)?dr+1:0}));let Yn;Re.question_id?Yn=yield Yt({type:"exercise/editExerciseQuestion",payload:{id:Re.question_id,question_title:qn,question_type:1,question_score:"5.0",question_choices:Bn.map(Jn=>Jn.choice_text),standard_answers:Bn.filter(Jn=>Jn.is_answer).map(Jn=>Jn.is_answer)}}):Yn=yield Yt({type:"exercise/addExerciseQuestion",payload:{categoryId:rr.categoryId,question_title:qn,question_type:1,question_score:"5.0",question_choices:Bn.map(Jn=>Jn.choice_text),standard_answers:Bn.filter(Jn=>Jn.is_answer).map(Jn=>Jn.is_answer)}}),Yn.status===0&&(Be.ZP.success("\u4FDD\u5B58\u6210\u529F"),or(!1),Yt({type:"exercise/editExercise",payload:Ke({},rr)}))}),Un=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],Kn=Vn=>se(void 0,null,function*(){switch(Vn.id){case"del":let Bn;Je.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return se(this,null,function*(){yield(0,ht.Fl)({id:Re.question_id}),Yt({type:"exercise/editExercise",payload:Ke({},rr)})})}});break;case"up":case"down":yield Yt({type:"exercise/exeriseMoveUpDown",payload:{id:Re.question_id,opr:Vn.id}}),Yt({type:"exercise/editExercise",payload:Ke({},rr)});break;case"edit":or(!0);break}}),Tn=()=>{var Vn;return E.createElement("aside",null,E.createElement("div",{className:Fe.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},Re.key,"\u3001\u591A\u9009\u9898"),"\uFF08",Re.question_score,"\u5206\uFF09"),!Re.hideAction&&Un.map(function(Bn,Yn){return Bn.id==="up"&&Re.key===1||Bn.id==="down"&&Re.key===Re.len?null:E.createElement(rt.Z,{key:Yn,placement:"bottom",title:Bn.name},E.createElement("span",{onClick:()=>Kn(Bn),className:Bn.icon}))})),E.createElement("div",{className:"mt5"},E.createElement(nt.Z,{value:Re.question_title})),E.createElement("div",{className:Fe.questionChoices},(Vn=Re==null?void 0:Re.question_choices)==null?void 0:Vn.map(function(Bn,Yn){return E.createElement(Ie.Z,null,E.createElement(he.Z,null,E.createElement(gt.default,{key:Yn,checked:Re.standard_answer.includes(Yn+1),disabled:!0},qe[Yn],".")),E.createElement(he.Z,{flex:"1"},E.createElement("span",{className:"c-black font14"},E.createElement(nt.Z,{value:Bn.choice_text}))))})))},mr=()=>E.createElement("aside",null,E.createElement("div",{className:Fe.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),E.createElement("p",{className:Fe.titleWrap},E.createElement("span",{className:Fe.required},"*"),E.createElement("span",{className:Fe.title},"\u9898\u5E72\uFF1A")),E.createElement(it.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:qn,onChange:Vn=>Hn(Vn)}),E.createElement("p",{className:Fe.titleWrap},E.createElement("span",{className:Fe.required},"*"),E.createElement("span",{className:Fe.title},"\u7B54\u6848\u9009\u9879\uFF1A",E.createElement("span",{className:Fe.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),Jt.map((Vn,Bn)=>E.createElement("div",{className:Fe.choiceWrap,key:Bn},E.createElement(rt.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},E.createElement("div",{className:`${Fe.answer} ${Fn.includes(Bn)?Fe.activeAnswer:""}`,onClick:()=>{Fn.includes(Bn)?Xn(Fn.filter(Yn=>Yn!==Bn)):Xn([...Fn,Bn])}},qe[Bn])),E.createElement("div",{className:Fe.editorWrap},On===Bn?E.createElement(it.Z,{id:`single-question-option-${Bn}`,watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Vn,onChange:Yn=>{Jt[Bn]=Yn,gn(Jt)}}):E.createElement("div",{className:Fe.htmlWrap,onClick:()=>Sn(Bn)},E.createElement(nt.Z,{value:Vn}))),Bn>1&&E.createElement(rt.Z,{title:"\u5220\u9664"},E.createElement("i",{className:`${Fe.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>gn(Jt.filter((Yn,Jn)=>Jn!==Bn))})),Bn<7&&Bn===Jt.length-1&&E.createElement(rt.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},E.createElement("i",{className:`${Fe.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>gn([...Jt,""])})))),E.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\u8F93\u5165\u6846\u53EF\u8BBE\u7F6E\u7B54\u6848\uFF1B\u9009\u4E2D\u7684\u9009\u9879\u5373\u4E3A\u6B63\u786E\u7B54\u6848\uFF0C\u9009\u62E9\u591A\u4E2A\u7B54\u6848\u5373\u4E3A\u591A\u9009\u9898"),E.createElement("p",{className:""},"\u5206\u503C\uFF1A",E.createElement(Pt.Z,{value:Ln,max:1e4,min:-1,onChange:Vn=>{Rn(Vn)}})," \u5206"),E.createElement("aside",{className:"tr"},Re.question_id&&E.createElement(Ze.ZP,{type:"default",onClick:()=>or(!1)},"\u53D6\u6D88"),E.createElement(Ze.ZP,{className:"ml20",type:"primary",onClick:()=>ir()},"\u4FDD\u5B58")));return E.createElement("section",{className:Fe.wrap},!Zn&&Tn(),Zn&&mr())};var Ae=(0,Qe.connect)(({problemset:be,loading:fe,globalSetting:pe})=>({problemset:be,globalSetting:pe,loading:fe.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(Le)),ct=ne(47889),ye=Object.defineProperty,ce=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,bt=(be,fe,pe)=>fe in be?ye(be,fe,{enumerable:!0,configurable:!0,writable:!0,value:pe}):be[fe]=pe,ge=(be,fe)=>{for(var pe in fe||(fe={}))Ue.call(fe,pe)&&bt(be,pe,fe[pe]);if(ce)for(var pe of ce(fe))It.call(fe,pe)&&bt(be,pe,fe[pe]);return be},He=(be,fe)=>{var pe={};for(var Ve in be)Ue.call(be,Ve)&&fe.indexOf(Ve)<0&&(pe[Ve]=be[Ve]);if(be!=null&&ce)for(var Ve of ce(be))fe.indexOf(Ve)<0&&It.call(be,Ve)&&(pe[Ve]=be[Ve]);return pe},Ge=(be,fe,pe)=>new Promise((Ve,Xt)=>{var rn=Re=>{try{Ct(pe.next(Re))}catch(xt){Xt(xt)}},Yt=Re=>{try{Ct(pe.throw(Re))}catch(xt){Xt(xt)}},Ct=Re=>Re.done?Ve(Re.value):Promise.resolve(Re.value).then(rn,Yt);Ct((pe=pe.apply(be,fe)).next())});const Tt=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],wt=(be,fe)=>{var pe=be,{problemset:Ve,globalSetting:Xt,loading:rn,dispatch:Yt,onRef:Ct=()=>{},editData:Re}=pe,xt=He(pe,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const[Jt,gn]=(0,E.useState)([]),[On,Sn]=(0,E.useState)(),[Fn,Xn]=(0,E.useState)([]),[qn,Hn]=(0,E.useState)(""),[Ln,Rn]=(0,E.useState)(0),[Zn,or]=(0,E.useState)(!1),rr=(0,Qe.useParams)();(0,E.useEffect)(()=>{gn(["","","",""])},[]),(0,E.useEffect)(()=>{if(!(Re!=null&&Re.question_choices)){or(!0);return}Hn(Re==null?void 0:Re.question_title),Rn(parseInt(Re==null?void 0:Re.question_score)),gn(Re==null?void 0:Re.question_choices.map(Bn=>Bn.choice_text));const Vn=[];Re==null||Re.standard_answer.map((Bn,Yn)=>{Vn.push(Bn-1)}),Xn(Vn)},[Re]),(0,E.useImperativeHandle)(fe,()=>({onSave:ir,isEdit:Zn}));const ir=()=>Ge(void 0,null,function*(){if(!qn)return Be.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;const Vn=Jt.findIndex(Jn=>!Jn);if(Vn>-1)return Be.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Tt[Vn]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!Fn.length)return Be.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;if(Fn.length<1)return Be.ZP.info("\u8BF7\u9009\u62E9\u7B54\u6848"),!1;const Bn=Jt.map((Jn,dr)=>({choice_text:Jn,is_answer:Fn.includes(dr)?dr+1:0}));let Yn;Re.question_id?Yn=yield(0,Ce.Kc)({id:Re.question_id,question_title:qn,question_type:1,question_score:Ln,question_choices:Bn.map(Jn=>Jn.choice_text),standard_answers:Bn.filter(Jn=>Jn.is_answer).map(Jn=>Jn.is_answer)}):Yn=yield(0,Ce.iV)({exercise_bank_id:rr.topicId,question_title:qn,question_type:1,question_score:"5.0",question_choices:Bn.map(Jn=>Jn.choice_text),standard_answers:Bn.filter(Jn=>Jn.is_answer).map(Jn=>Jn.is_answer)}),Yn.status===0&&(Be.ZP.success("\u4FDD\u5B58\u6210\u529F"),or(!1)),yield Yt({type:"polls/getExerciseBanks",payload:ge({},rr)})}),Un=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],Kn=Vn=>Ge(void 0,null,function*(){switch(Vn.id){case"del":let Bn;Je.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return Ge(this,null,function*(){yield(0,Ce.x$)({pollsId:Re.question_id}),Yt({type:"polls/getExerciseBanks",payload:ge({},rr)})})}});break;case"up":case"down":yield(0,Ce.W)({exerciseId:Re==null?void 0:Re.question_id,opr:Vn.id}),Yt({type:"polls/getExerciseBanks",payload:ge({},rr)});break;case"edit":or(!0);break}}),Tn=()=>{var Vn;return E.createElement("aside",null,E.createElement("div",{className:Fe.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},Re.key,"\u3001\u5355\u9009\u9898"),"\uFF08",Re.question_score,"\u5206\uFF09"),!Re.hideAction&&Un.map(function(Bn,Yn){return Bn.id==="up"&&Re.key===1||Bn.id==="down"&&Re.key===Re.len?null:E.createElement(rt.Z,{key:Yn,placement:"bottom",title:Bn.name},E.createElement("span",{onClick:()=>Kn(Bn),className:Bn.icon}))})),E.createElement("div",{className:"mt5"},E.createElement(nt.Z,{value:Re.question_title})),E.createElement("div",{className:Fe.questionChoices},(Vn=Re==null?void 0:Re.question_choices)==null?void 0:Vn.map(function(Bn,Yn){return E.createElement(Ie.Z,null,E.createElement(he.Z,null,E.createElement(ct.ZP,{key:Yn,checked:Re.standard_answer.includes(Yn+1),disabled:!0},Tt[Yn],".")),E.createElement(he.Z,{flex:"1"},E.createElement("span",{className:"c-black font14"},E.createElement(nt.Z,{value:Bn.choice_text}))))})))},mr=()=>E.createElement("aside",null,E.createElement("div",{className:Fe.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),E.createElement("p",{className:Fe.titleWrap},E.createElement("span",{className:Fe.required},"*"),E.createElement("span",{className:Fe.title},"\u9898\u5E72\uFF1A")),E.createElement(it.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:qn,onChange:Vn=>Hn(Vn)}),E.createElement("p",{className:Fe.titleWrap},E.createElement("span",{className:Fe.required},"*"),E.createElement("span",{className:Fe.title},"\u7B54\u6848\u9009\u9879\uFF1A",E.createElement("span",{className:Fe.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),Jt.map((Vn,Bn)=>E.createElement("div",{className:Fe.choiceWrap,key:Bn},E.createElement(rt.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},E.createElement("div",{className:`${Fe.answer} ${Fn.includes(Bn)?Fe.activeAnswer:""}`,onClick:()=>{Fn.includes(Bn)?Xn(Fn.filter(Yn=>Yn!==Bn)):Xn([...Fn,Bn])}},Tt[Bn])),E.createElement("div",{className:Fe.editorWrap},On===Bn?E.createElement(it.Z,{id:`single-question-option-${Bn}`,watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Vn,onChange:Yn=>{Jt[Bn]=Yn,gn(Jt)}}):E.createElement("div",{className:Fe.htmlWrap,onClick:()=>Sn(Bn)},E.createElement(nt.Z,{value:Vn}))),Bn>1&&E.createElement(rt.Z,{title:"\u5220\u9664"},E.createElement("i",{className:`${Fe.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>gn(Jt.filter((Yn,Jn)=>Jn!==Bn))})),Bn<7&&Bn===Jt.length-1&&E.createElement(rt.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},E.createElement("i",{className:`${Fe.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>gn([...Jt,""])})))),E.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\u8F93\u5165\u6846\u53EF\u8BBE\u7F6E\u7B54\u6848\uFF1B\u9009\u4E2D\u7684\u9009\u9879\u5373\u4E3A\u6B63\u786E\u7B54\u6848\uFF0C\u9009\u62E9\u591A\u4E2A\u7B54\u6848\u5373\u4E3A\u591A\u9009\u9898"),E.createElement("p",{className:""},"\u5206\u503C\uFF1A",E.createElement(Pt.Z,{value:Ln,max:1e4,min:-1,onChange:Vn=>{Rn(Vn)}})," \u5206"),E.createElement("aside",{className:"tr"},Re.question_id&&E.createElement(Ze.ZP,{type:"default",onClick:()=>or(!1)},"\u53D6\u6D88"),E.createElement(Ze.ZP,{className:"ml20",type:"primary",onClick:()=>ir()},"\u4FDD\u5B58")));return E.createElement("section",{className:Fe.wrap},!Zn&&Tn(),Zn&&mr())};var Lt=(0,Qe.connect)(({problemset:be,loading:fe,globalSetting:pe})=>({problemset:be,globalSetting:pe,loading:fe.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(wt)),$e=Object.defineProperty,At=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,te=(be,fe,pe)=>fe in be?$e(be,fe,{enumerable:!0,configurable:!0,writable:!0,value:pe}):be[fe]=pe,ee=(be,fe)=>{for(var pe in fe||(fe={}))st.call(fe,pe)&&te(be,pe,fe[pe]);if(At)for(var pe of At(fe))ae.call(fe,pe)&&te(be,pe,fe[pe]);return be},oe=(be,fe)=>{var pe={};for(var Ve in be)st.call(be,Ve)&&fe.indexOf(Ve)<0&&(pe[Ve]=be[Ve]);if(be!=null&&At)for(var Ve of At(be))fe.indexOf(Ve)<0&&ae.call(be,Ve)&&(pe[Ve]=be[Ve]);return pe},ue=(be,fe,pe)=>new Promise((Ve,Xt)=>{var rn=Re=>{try{Ct(pe.next(Re))}catch(xt){Xt(xt)}},Yt=Re=>{try{Ct(pe.throw(Re))}catch(xt){Xt(xt)}},Ct=Re=>Re.done?Ve(Re.value):Promise.resolve(Re.value).then(rn,Yt);Ct((pe=pe.apply(be,fe)).next())});const re=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],ve=(be,fe)=>{var pe=be,{problemset:Ve,globalSetting:Xt,loading:rn,dispatch:Yt,onRef:Ct=()=>{},editData:Re}=pe,xt=oe(pe,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const[Jt,gn]=(0,E.useState)(),[On,Sn]=(0,E.useState)(""),[Fn,Xn]=(0,E.useState)(!1),[qn,Hn]=(0,E.useState)(5),Ln=(0,Qe.useParams)();(0,E.useEffect)(()=>{if(!(Re!=null&&Re.question_choices)){Xn(!0);return}Sn(Re==null?void 0:Re.question_title),Hn(Re==null?void 0:Re.question_score),gn(Re.standard_answer[0]+"")},[Re]),(0,E.useImperativeHandle)(fe,()=>({onSave:Rn,isEdit:Fn}));const Rn=()=>ue(void 0,null,function*(){if(!On)return Be.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;if(!Jt)return Be.ZP.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),!1;const Un=[{choice_text:"\u6B63\u786E",is_answer:Jt==="1"?1:0},{choice_text:"\u9519\u8BEF",is_answer:Jt==="2"?2:0}];let Kn;return Re.question_id?Kn=yield(0,Ce.Kc)({id:Re.question_id,question_title:On,question_type:2,question_score:qn,question_choices:Un.map(Tn=>Tn.choice_text),standard_answers:Un.filter(Tn=>Tn.is_answer).map(Tn=>Tn.is_answer)}):Kn=yield(0,Ce.iV)({exercise_bank_id:Ln.topicId,question_title:On,question_type:2,question_score:qn,question_choices:Un.map(Tn=>Tn.choice_text),standard_answers:Un.filter(Tn=>Tn.is_answer).map(Tn=>Tn.is_answer)}),Kn.status===0&&(Be.ZP.success("\u4FDD\u5B58\u6210\u529F"),Xn(!1)),Yt({type:"polls/getExerciseBanks",payload:ee({},Ln)}),{name:On,choices:Un}}),Zn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],or=Un=>ue(void 0,null,function*(){switch(Un.id){case"del":let Kn;Je.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return ue(this,null,function*(){yield(0,Ce.x$)({pollsId:Re.question_id}),Yt({type:"polls/getExerciseBanks",payload:ee({},Ln)})})}});break;case"up":case"down":yield(0,Ce.W)({exerciseId:Re==null?void 0:Re.question_id,opr:Un.id}),Yt({type:"polls/getExerciseBanks",payload:ee({},Ln)});break;case"edit":Xn(!0);break}}),rr=()=>{var Un;return E.createElement("aside",null,E.createElement("div",{className:Fe.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},Re.key,"\u3001\u5224\u65AD\u9898"),"\uFF08",Re.question_score,"\u5206\uFF09"),!Re.hideAction&&Zn.map(function(Kn,Tn){return Kn.id==="up"&&Re.key===1||Kn.id==="down"&&Re.key===Re.len?null:E.createElement(rt.Z,{key:Tn,placement:"bottom",title:Kn.name},E.createElement("span",{onClick:()=>or(Kn),className:Kn.icon}))})),E.createElement("div",{className:"mt5"},Re.question_title),E.createElement("div",{className:Fe.questionChoices},(Un=Re==null?void 0:Re.question_choices)==null?void 0:Un.map(function(Kn,Tn){return E.createElement(ct.ZP,{key:Tn,checked:Re.standard_answer.includes(Tn+1),disabled:!0},re[Tn],". ",E.createElement("span",{className:"c-black font14"},Kn.choice_text))})))},ir=()=>E.createElement("aside",null,E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},"\u5224\u65AD\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09"),E.createElement("p",{className:Fe.titleWrap},E.createElement("span",{className:Fe.required},"*"),E.createElement("span",{className:Fe.title},"\u9898\u5E72\uFF1A")),E.createElement(it.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:On,onChange:Un=>Sn(Un)}),E.createElement("p",{className:Fe.titleWrap},E.createElement("span",{className:Fe.required},"*"),E.createElement("span",{className:Fe.title},"\u7B54\u6848\u9009\u9879\uFF1A",E.createElement("span",{className:Fe.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),E.createElement(ct.ZP.Group,{buttonStyle:"solid",value:Jt,onChange:Un=>gn(Un.target.value)},E.createElement(ct.ZP.Button,{value:"1",className:`${Fe.radio} mr40`},"\u6B63\u786E"),E.createElement(ct.ZP.Button,{value:"2",className:Fe.radio},"\u9519\u8BEF")),E.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\uFF0C\u53EF\u4EE5\u76F4\u63A5\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848"),E.createElement("p",{className:""},"\u5206\u503C\uFF1A",E.createElement(Pt.Z,{value:qn,max:1e4,min:-1,onChange:Un=>{Hn(Un)}})," \u5206"),E.createElement("aside",{className:"tr"},Re.question_id&&E.createElement(Ze.ZP,{type:"default",onClick:()=>Xn(!1)},"\u53D6\u6D88"),E.createElement(Ze.ZP,{className:"ml20",type:"primary",onClick:()=>Rn()},"\u4FDD\u5B58")));return E.createElement("section",{className:Fe.wrap},!Fn&&rr(),Fn&&ir())};var we=(0,Qe.connect)(({problemset:be,loading:fe,globalSetting:pe})=>({problemset:be,globalSetting:pe,loading:fe.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(ve)),ft=ne(74072),Oe=ne(5622),Ye=ne(76406),mt=Object.defineProperty,Bt=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable,Wt=(be,fe,pe)=>fe in be?mt(be,fe,{enumerable:!0,configurable:!0,writable:!0,value:pe}):be[fe]=pe,Ht=(be,fe)=>{for(var pe in fe||(fe={}))Et.call(fe,pe)&&Wt(be,pe,fe[pe]);if(Bt)for(var pe of Bt(fe))Ut.call(fe,pe)&&Wt(be,pe,fe[pe]);return be},ln=(be,fe)=>{var pe={};for(var Ve in be)Et.call(be,Ve)&&fe.indexOf(Ve)<0&&(pe[Ve]=be[Ve]);if(be!=null&&Bt)for(var Ve of Bt(be))fe.indexOf(Ve)<0&&Ut.call(be,Ve)&&(pe[Ve]=be[Ve]);return pe},qt=(be,fe,pe)=>new Promise((Ve,Xt)=>{var rn=Re=>{try{Ct(pe.next(Re))}catch(xt){Xt(xt)}},Yt=Re=>{try{Ct(pe.throw(Re))}catch(xt){Xt(xt)}},Ct=Re=>Re.done?Ve(Re.value):Promise.resolve(Re.value).then(rn,Yt);Ct((pe=pe.apply(be,fe)).next())});const sn=null,Dt=(be,fe)=>{var pe=be,{problemset:Ve,globalSetting:Xt,loading:rn,dispatch:Yt,editData:Ct}=pe,Re=ln(pe,["problemset","globalSetting","loading","dispatch","editData"]);const[xt,Jt]=(0,E.useState)(""),[gn,On]=(0,E.useState)(""),[Sn,Fn]=(0,E.useState)([]),[Xn,qn]=(0,E.useState)(""),[Hn,Ln]=(0,E.useState)(),[Rn,Zn]=(0,E.useState)(!1),[or,rr]=(0,E.useState)(5),[ir,Un]=(0,E.useState)(!1),Kn=(0,Qe.useParams)();(0,E.useEffect)(()=>{if(!(Ct!=null&&Ct.question_title)){Un(!0);return}Jt(Ct==null?void 0:Ct.question_title),Ln(Ct==null?void 0:Ct.is_ordered),rr(Ct==null?void 0:Ct.question_score);const ar=Ct==null?void 0:Ct.standard_answer.map(pr=>pr.answer_text);Fn(ar)},[Ve.editData]),(0,E.useEffect)(()=>{Zn(!1)},[ir]),(0,E.useImperativeHandle)(fe,()=>({onSave:Tn,isEdit:ir}));const Tn=()=>qt(void 0,null,function*(){let ar=[],pr=!1;if(Sn.forEach((wr,br)=>{ar.push({choice_id:br+1,answer_text:[]}),wr.forEach((Or,_r)=>{ar[br].answer_text.push(Or),(!Or||!(0,Ye.eR)(Or,1e4))&&(qn(`${br}-${_r}`),Be.ZP.info(Or?"\u7B54\u6848\u4E0D\u80FD\u8D85\u8FC710000\u5B57\u7B26":"\u7B54\u6848\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"),pr=!0)})}),pr)return!1;let fr;return Ct.question_id?fr=yield(0,Ce.Kc)({id:Ct.question_id,question_title:xt,question_type:3,question_score:or,is_ordered:Hn,standard_answers:ar}):fr=yield(0,Ce.iV)({exercise_bank_id:Kn.topicId,question_title:xt,question_type:3,question_score:or,is_ordered:Hn,standard_answers:ar}),fr.status===0&&(Be.ZP.success("\u4FDD\u5B58\u6210\u529F"),Un(!1)),Yt({type:"polls/getExerciseBanks",payload:Ht({},Kn)}),{name:xt,analysis:gn,standard_answers:ar,is_ordered:Hn}}),mr=(ar,pr,fr)=>{const wr=Sn.slice();if(pr&&wr.splice(ar,pr),fr&&Rn)for(let br=0;br<fr;br++)wr.splice(ar+br,0,[""]);Zn(!0),Fn(wr)},Vn=(ar,pr,fr)=>{qn("");let wr=Sn.slice();wr[ar][pr]=fr,Fn(wr)},Bn=ar=>{let pr=Sn.slice();pr[ar]=[...pr[ar],""],Fn(pr)},Yn=(ar,pr)=>{let fr=Sn.slice();if(!fr[ar][pr]){fr[ar]=fr[ar].filter((wr,br)=>br!==pr),Fn(fr);return}Je.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Fe.modal,onOk:()=>{fr[ar]=fr[ar].filter((wr,br)=>br!==pr),Fn(fr)}})},Jn=ar=>{Je.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Fe.modal,onOk:()=>{let pr=Sn.slice();pr=Sn.filter((fr,wr)=>ar!==wr),Fn(pr)}})},dr=()=>E.createElement("aside",null,E.createElement("div",{className:Fe.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},"\u586B\u7A7A\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u5141\u8BB8\u624B\u52A8\u8C03\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848 \uFF1B\u652F\u6301\u6700\u591A5\u4E2A\u7A7A\uFF0C\u6BCF\u7A7A\u5F97\u5206\u6309\u7167\u672C\u9898\u7684\u603B\u5206\u5E73\u5747\u8BA1\u7B97\uFF09")),E.createElement("div",null,E.createElement(ft.Z,{id:"completion-question-tittle",placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE",height:155,defaultValue:xt,onChange:ar=>Jt(ar),showNullButton:!0,onPlaceholderChange:mr})),E.createElement("div",{className:"mt20"},Sn.map((ar,pr)=>E.createElement(Oe.Z,{key:pr,answers:ar,index:pr,is_md:!0,activeOptionErrorIndex:Xn,onAnswerChange:Vn,addChildAnswer:Bn,deleteChildAnswer:Yn,deleteChildAnswermain:Jn}))),E.createElement("div",{className:"mt20"},Sn.length>1&&E.createElement("span",null,E.createElement(gt.default,{checked:Hn,onChange:ar=>Ln(ar.target.checked),className:`${Fe.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),E.createElement("span",{className:`${Fe.color999} font12`},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),E.createElement("p",{className:""},"\u5206\u503C\uFF1A",E.createElement(Pt.Z,{value:or,max:1e4,min:-1,onChange:ar=>{rr(ar)}})," \u5206"),E.createElement("aside",{className:"tr"},Ct.question_id&&E.createElement(Ze.ZP,{type:"default",onClick:()=>Un(!1)},"\u53D6\u6D88"),E.createElement(Ze.ZP,{className:"ml20",type:"primary",onClick:()=>Tn()},"\u4FDD\u5B58"))),sr=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],_n=ar=>qt(void 0,null,function*(){switch(ar.id){case"del":let pr;Je.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return qt(this,null,function*(){yield(0,Ce.x$)({pollsId:Ct.question_id}),Yt({type:"polls/getExerciseBanks",payload:Ht({},Kn)})})}});break;case"up":case"down":yield(0,Ce.W)({exerciseId:Ct==null?void 0:Ct.question_id,opr:ar.id}),Yt({type:"polls/getExerciseBanks",payload:Ht({},Kn)});break;case"edit":Un(!0);break}}),hr=()=>{var ar;return E.createElement("aside",null,E.createElement("div",{className:Fe.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},Ct.key,"\u3001\u586B\u7A7A\u9898"),"\uFF08",Ct.question_score,"\u5206\uFF09"),!Ct.hideAction&&sr.map(function(pr,fr){return pr.id==="up"&&Ct.key===1||pr.id==="down"&&Ct.key===Ct.len?null:E.createElement(rt.Z,{key:fr,placement:"bottom",title:pr.name},E.createElement("span",{onClick:()=>_n(pr),className:pr.icon}))})),E.createElement("div",{className:"mt5"},Ct.question_title),E.createElement("div",{className:Fe.questionChoices},(ar=Ct==null?void 0:Ct.standard_answer)==null?void 0:ar.map(function(pr,fr){return E.createElement(Ie.Z,null,E.createElement(he.Z,null,"\u7B54\u6848\uFF08\u586B\u7A7A",pr.choice_id,"\uFF09\uFF1A"),E.createElement(he.Z,{flex:"1"},E.createElement(dt.default,{key:fr,checked:Ct.standard_answer.includes(fr),disabled:!0,value:pr.answer_text})))})))};return E.createElement("section",{className:Fe.wrap},!ir&&hr(),ir&&dr())};var tn=(0,Qe.connect)(({problemset:be,loading:fe,globalSetting:pe})=>({problemset:be,globalSetting:pe,loading:fe.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(Dt)),Vt=Object.defineProperty,je=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,jt=(be,fe,pe)=>fe in be?Vt(be,fe,{enumerable:!0,configurable:!0,writable:!0,value:pe}):be[fe]=pe,Ne=(be,fe)=>{for(var pe in fe||(fe={}))pt.call(fe,pe)&&jt(be,pe,fe[pe]);if(je)for(var pe of je(fe))Ft.call(fe,pe)&&jt(be,pe,fe[pe]);return be},ot=(be,fe)=>{var pe={};for(var Ve in be)pt.call(be,Ve)&&fe.indexOf(Ve)<0&&(pe[Ve]=be[Ve]);if(be!=null&&je)for(var Ve of je(be))fe.indexOf(Ve)<0&&Ft.call(be,Ve)&&(pe[Ve]=be[Ve]);return pe},yt=(be,fe,pe)=>new Promise((Ve,Xt)=>{var rn=Re=>{try{Ct(pe.next(Re))}catch(xt){Xt(xt)}},Yt=Re=>{try{Ct(pe.throw(Re))}catch(xt){Xt(xt)}},Ct=Re=>Re.done?Ve(Re.value):Promise.resolve(Re.value).then(rn,Yt);Ct((pe=pe.apply(be,fe)).next())});const Mt=null,Kt=(be,fe)=>{var pe=be,{problemset:Ve,globalSetting:Xt,loading:rn,dispatch:Yt,onRef:Ct=()=>{},editData:Re}=pe,xt=ot(pe,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const[Jt,gn]=(0,E.useState)(""),[On,Sn]=(0,E.useState)(""),[Fn,Xn]=(0,E.useState)(""),[qn,Hn]=(0,E.useState)(5),[Ln,Rn]=(0,E.useState)(!1),Zn=(0,Qe.useParams)();(0,E.useEffect)(()=>{var Tn;if(!(Re!=null&&Re.question_title)){Rn(!0);return}gn(Re==null?void 0:Re.question_title),Xn((Tn=Re==null?void 0:Re.standard_answer)==null?void 0:Tn[0]),Hn(Re==null?void 0:Re.question_score)},[Ve.editData]),(0,E.useImperativeHandle)(fe,()=>({onSave:or,isEdit:Ln}));const or=()=>yt(void 0,null,function*(){if(!Jt)return Be.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;let Tn;return Re.question_id?Tn=yield(0,Ce.Kc)({id:Re.question_id,question_title:Jt,question_type:4,question_score:qn,standard_answers:[Fn]}):Tn=yield(0,Ce.iV)({exercise_bank_id:Zn.topicId,question_title:Jt,question_type:4,question_score:qn,standard_answers:[Fn]}),Tn.status===0&&(Be.ZP.success("\u4FDD\u5B58\u6210\u529F"),Rn(!1),Yt({type:"polls/getExerciseBanks",payload:Ne({},Zn)})),{name:Jt,answer_texts:[Fn],analysis:On}}),rr=()=>E.createElement("aside",null,E.createElement("div",{className:Fe.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},"\u7B80\u7B54\u9898"),"\uFF08\u4E3B\u89C2\u9898\uFF0C\u672A\u4F5C\u7B54\u7684\u60C5\u51B5\u4E0B\u81EA\u52A8\u8BC4\u4E3A\u96F6\u5206\uFF09")),E.createElement(it.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Jt,onChange:Tn=>gn(Tn)}),E.createElement("p",{className:Fe.titleWrap},E.createElement("span",{className:Fe.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),E.createElement(it.Z,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:Fn,onChange:Tn=>Xn(Tn)}),E.createElement("p",{className:""},"\u5206\u503C\uFF1A",E.createElement(Pt.Z,{value:qn,max:1e4,min:-1,onChange:Tn=>{Hn(Tn)}})," \u5206"),E.createElement("aside",{className:"tr"},Re.question_id&&E.createElement(Ze.ZP,{type:"default",onClick:()=>Rn(!1)},"\u53D6\u6D88"),E.createElement(Ze.ZP,{className:"ml20",type:"primary",onClick:()=>or()},"\u4FDD\u5B58"))),ir=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],Un=Tn=>yt(void 0,null,function*(){switch(Tn.id){case"del":let mr;Je.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return yt(this,null,function*(){yield(0,Ce.x$)({pollsId:Re.question_id}),Yt({type:"polls/getExerciseBanks",payload:Ne({},Zn)})})}});break;case"up":case"down":yield(0,Ce.W)({exerciseId:Re==null?void 0:Re.question_id,opr:Tn.id}),Yt({type:"polls/getExerciseBanks",payload:Ne({},Zn)});break;case"edit":Rn(!0);break}}),Kn=()=>E.createElement("aside",null,E.createElement("div",{className:Fe.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},Re.key,"\u3001\u7B80\u7B54\u9898"),"\uFF08",Re.question_score,"\u5206\uFF09"),!Re.hideAction&&ir.map(function(Tn,mr){return Tn.id==="up"&&Re.key===1||Tn.id==="down"&&Re.key===Re.len?null:E.createElement(rt.Z,{key:mr,placement:"bottom",title:Tn.name},E.createElement("span",{onClick:()=>Un(Tn),className:Tn.icon}))})),E.createElement("div",{className:"mt5"},Re.question_title),E.createElement("div",{className:Fe.questionChoices},E.createElement("p",null,E.createElement("strong",null,"\u53C2\u8003\u7B54\u6848\uFF1A")),E.createElement(nt.Z,{value:Fn})));return E.createElement("section",{className:Fe.wrap},!Ln&&Kn(),Ln&&rr())};var cn=(0,Qe.connect)(({problemset:be,loading:fe,globalSetting:pe})=>({problemset:be,globalSetting:pe,loading:fe.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(Kt)),Dn=Object.defineProperty,kn=Object.getOwnPropertySymbols,un=Object.prototype.hasOwnProperty,bn=Object.prototype.propertyIsEnumerable,fn=(be,fe,pe)=>fe in be?Dn(be,fe,{enumerable:!0,configurable:!0,writable:!0,value:pe}):be[fe]=pe,Gt=(be,fe)=>{for(var pe in fe||(fe={}))un.call(fe,pe)&&fn(be,pe,fe[pe]);if(kn)for(var pe of kn(fe))bn.call(fe,pe)&&fn(be,pe,fe[pe]);return be},Rt=(be,fe)=>{var pe={};for(var Ve in be)un.call(be,Ve)&&fe.indexOf(Ve)<0&&(pe[Ve]=be[Ve]);if(be!=null&&kn)for(var Ve of kn(be))fe.indexOf(Ve)<0&&bn.call(be,Ve)&&(pe[Ve]=be[Ve]);return pe},_t=(be,fe,pe)=>new Promise((Ve,Xt)=>{var rn=Re=>{try{Ct(pe.next(Re))}catch(xt){Xt(xt)}},Yt=Re=>{try{Ct(pe.throw(Re))}catch(xt){Xt(xt)}},Ct=Re=>Re.done?Ve(Re.value):Promise.resolve(Re.value).then(rn,Yt);Ct((pe=pe.apply(be,fe)).next())});const Ot=null,an=(be,fe)=>{var pe=be,{problemset:Ve,globalSetting:Xt,loading:rn,dispatch:Yt,editData:Ct}=pe,Re=Rt(pe,["problemset","globalSetting","loading","dispatch","editData"]);const[xt,Jt]=(0,E.useState)(""),[gn,On]=(0,E.useState)(""),[Sn,Fn]=(0,E.useState)(""),[Xn,qn]=(0,E.useState)([]),[Hn,Ln]=(0,E.useState)(""),[Rn,Zn]=(0,E.useState)(),[or,rr]=(0,E.useState)(!1),[ir,Un]=(0,E.useState)([]),[Kn,Tn]=(0,E.useState)(!1),mr=(0,Qe.useParams)();(0,E.useEffect)(()=>{var sr;Ct.edit&&Tn(!0),Jt(Ct.shixun_name),On(Ct.question_title);const _n=[];(sr=Ct.shixun)==null||sr.map(hr=>{_n.push(hr.challenge_score)}),Un(_n)},[Ct]),(0,E.useEffect)(()=>{rr(!1)},[Kn]),(0,E.useImperativeHandle)(fe,()=>({onSave:Vn,isEdit:Kn}));const Vn=()=>_t(void 0,null,function*(){let sr=[];if(!1)return!1;let hr;return Ct.question_id?hr=yield(0,Ce.Kc)({id:Ct.question_id,question_title:gn,shixun_name:xt,shixun_id:Ct.shixun_id,question_type:5,question_scores:ir}):hr=yield(0,Ce.iV)({exercise_bank_id:mr.topicId,question_title:gn,shixun_name:xt,shixun_id:Ct.shixun_id,question_type:5,question_scores:ir}),hr.status===0&&(Be.ZP.success("\u4FDD\u5B58\u6210\u529F"),Tn(!1)),yield Yt({type:"polls/getExerciseBanks",payload:Gt({},mr)}),{name:gn,analysis:Sn,standard_answers:sr,is_ordered:Rn}}),Bn=()=>{var sr;return E.createElement("aside",null,E.createElement("div",{className:Fe.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},"\u5B9E\u8BAD\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u5141\u8BB8\u624B\u52A8\u8C03\u5206\uFF09")),E.createElement("div",{className:"mt10"},E.createElement(dt.default,{defaultValue:xt,onChange:_n=>{Jt(_n.target.value)}})),E.createElement("div",{className:"mt10"},E.createElement(it.Z,{id:"single-question-option-0",height:155,placeholder:"\u8BF7\u8F93\u5165\u5B9E\u8BAD\u9898\u5B8C\u6210\u8981\u6C42",defaultValue:gn,onChange:_n=>{On(_n)}})),E.createElement("div",{className:"mt20"},(sr=Ct.shixun)==null?void 0:sr.map((_n,hr)=>E.createElement(Ie.Z,{gutter:[20,20]},E.createElement(he.Z,{flex:"1"},hr+1,".",_n.challenge_name),E.createElement(he.Z,null,E.createElement(Pt.Z,{defaultValue:ir[hr],onChange:ar=>{ir[hr]=ar,Un(ir),console.log("srore:L",ir[hr])}}))))),E.createElement("div",{className:"mt20"},Xn.length>1&&E.createElement("span",null,E.createElement(gt.default,{checked:Rn,onChange:_n=>Zn(_n.target.checked),className:`${Fe.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),E.createElement("span",{className:`${Fe.color999} font12`},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),E.createElement("aside",{className:"tr"},!(Ct!=null&&Ct.edit)&&E.createElement(Ze.ZP,{type:"default",onClick:()=>Tn(!1)},"\u53D6\u6D88"),E.createElement(Ze.ZP,{className:"ml20",type:"primary",onClick:()=>Vn()},"\u4FDD\u5B58")))},Yn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],Jn=sr=>_t(void 0,null,function*(){switch(sr.id){case"del":let _n;Je.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return _t(this,null,function*(){yield(0,Ce.x$)({pollsId:Ct.question_id}),Yt({type:"polls/getExerciseBanks",payload:Gt({},mr)})})}});break;case"up":case"down":yield(0,Ce.W)({exerciseId:Ct==null?void 0:Ct.question_id,opr:sr.id}),Yt({type:"polls/getExerciseBanks",payload:Gt({},mr)});break;case"edit":Tn(!0);break}}),dr=()=>{var sr;return E.createElement("aside",null,E.createElement("div",{className:Fe.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},Ct.key,"\u3001\u5B9E\u8BAD\u9898"),"\uFF08",Ct.question_score,"\u5206\uFF09"),E.createElement("div",{className:"tr"},E.createElement(Qe.Link,{target:"_blank",to:`/shixuns/${Ct.shixun_identifier}/challenges`},"\u5B9E\u8BAD\u8BE6\u60C5"),!Ct.hideAction&&Yn.map(function(_n,hr){return _n.id==="up"&&Ct.key===1||_n.id==="down"&&Ct.key===Ct.len?null:E.createElement(rt.Z,{key:hr,placement:"bottom",title:_n.name},E.createElement("span",{onClick:()=>Jn(_n),className:_n.icon}))}))),E.createElement("div",{className:"font16"},Ct.shixun_name),E.createElement("div",{className:"mt30"}),(sr=Ct.shixun)==null?void 0:sr.map(function(_n,hr){return E.createElement("div",{key:hr},"\u7B2C",hr+1,"\u5173 ",E.createElement("span",{className:"ml10"},_n.challenge_name)," ",E.createElement("span",{className:"ml10"},_n.challenge_score))}))};return E.createElement("section",{className:Fe.wrap},!Kn&&dr(),Kn&&Bn())};var nn=(0,Qe.connect)(({problemset:be,loading:fe,globalSetting:pe})=>({problemset:be,globalSetting:pe,loading:fe.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(an)),en={flex_box_center:"flex_box_center___eWsYC",flex_space_between:"flex_space_between___RALuo",flex_box_vertical_center:"flex_box_vertical_center___f7uVp",flex_box_center_end:"flex_box_center_end___UxPR3",flex_box_column:"flex_box_column___YUFuv",bg:"bg___zWTsF",containerTitle:"containerTitle___DzTZh",containerDesc:"containerDesc___a3TiA",listItem:"listItem____nHKG",info:"info___LWlgA",title:"title___gtaI4",titleLeft:"titleLeft___Ce3h9",titleRight:"titleRight___gARIc",acitons:"acitons___MrR2u",export:"export___u_8cL"},xn=ne(78568),Pn=Object.defineProperty,Cn=Object.getOwnPropertySymbols,Nn=Object.prototype.hasOwnProperty,An=Object.prototype.propertyIsEnumerable,Qn=(be,fe,pe)=>fe in be?Pn(be,fe,{enumerable:!0,configurable:!0,writable:!0,value:pe}):be[fe]=pe,zn=(be,fe)=>{for(var pe in fe||(fe={}))Nn.call(fe,pe)&&Qn(be,pe,fe[pe]);if(Cn)for(var pe of Cn(fe))An.call(fe,pe)&&Qn(be,pe,fe[pe]);return be},Nt=(be,fe)=>{var pe={};for(var Ve in be)Nn.call(be,Ve)&&fe.indexOf(Ve)<0&&(pe[Ve]=be[Ve]);if(be!=null&&Cn)for(var Ve of Cn(be))fe.indexOf(Ve)<0&&An.call(be,Ve)&&(pe[Ve]=be[Ve]);return pe},Qt=(be,fe,pe)=>new Promise((Ve,Xt)=>{var rn=Re=>{try{Ct(pe.next(Re))}catch(xt){Xt(xt)}},Yt=Re=>{try{Ct(pe.throw(Re))}catch(xt){Xt(xt)}},Ct=Re=>Re.done?Ve(Re.value):Promise.resolve(Re.value).then(rn,Yt);Ct((pe=pe.apply(be,fe)).next())});const{SubMenu:En}=xe.default,{Content:mn,Sider:Xe}=tt.default,ut=be=>{var fe=be,{polls:pe,globalSetting:Ve,loading:Xt,user:rn,dispatch:Yt}=fe,Ct=Nt(fe,["polls","globalSetting","loading","user","dispatch"]),Re,xt,Jt,gn,On,Sn,Fn,Xn,qn,Hn,Ln,Rn,Zn,or,rr,ir,Un,Kn,Tn,mr,Vn,Bn,Yn,Jn,dr,sr,_n,hr,ar,pr,fr,wr,br,Or,_r,xr,ur,pn,In,wn,dn,Gn,nr,vn,yn,jn,Wn,vr,kr,Br,Tr,Ar,Nr,zr,Lr,jr,Jr;const Zr=(0,Qe.useParams)(),zi=(0,Qe.useLocation)(),{userInfo:ui}=rn,[ri]=Ee.default.useForm(),[yi,Fr]=(0,E.useState)([]),[Ui,qr]=(0,E.useState)(!1),Ti=[{name:"\u9009\u62E9\u9898",id:0},{name:"\u5224\u65AD\u9898",id:2},{name:"\u586B\u7A7A\u9898",id:3},{name:"\u7B80\u7B54\u9898",id:4},{name:"\u5B9E\u8BAD\u9898",id:5}],Ni=(0,E.useRef)();(0,E.useEffect)(()=>{var Mr,ai,pi,Xr,to,Ki;(Mr=pe.exerciseBanks)!=null&&Mr.exercise_questions&&(Fr([...(ai=pe.exerciseBanks)==null?void 0:ai.exercise_questions]),ri.setFieldsValue({exercise_name:(Xr=(pi=pe.exerciseBanks)==null?void 0:pi.exercise)==null?void 0:Xr.exercise_name,exercise_description:(Ki=(to=pe.exerciseBanks)==null?void 0:to.exercise)==null?void 0:Ki.exercise_description}))},[pe.exerciseBanks]),(0,E.useEffect)(()=>{Yt({type:"polls/getExerciseBanks",payload:zn({},Zr)})},[Zr.categoryId]);const Wi=()=>Qt(void 0,null,function*(){var Mr,ai;yield ri.validateFields();const pi=ri.getFieldValue();pi.is_md=!0,pi.topicId=(ai=(Mr=pe.exerciseBanks)==null?void 0:Mr.exercise)==null?void 0:ai.id,qr(!1),yield(0,Ce.hO)(zn({},pi)),Yt({type:"polls/getExerciseBanks",payload:zn({},Zr)})}),bi=Mr=>Qt(void 0,null,function*(){const ai=yield Ni==null?void 0:Ni.current;if(ai!=null&&ai.isEdit){Be.ZP.error("\u4E0D\u80FD\u540C\u65F6\u7F16\u8F91\u4E24\u9898");return}Mr===5?Yt({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"}}):Fr([...yi,{question_type:Mr}])}),Ii=()=>{Yt({type:"userDetail/setActionTabs",payload:{key:"UserDetail-SendToClass",params:{object_id:[Zr.topicId],object_type:"exercise"}}})},Vr=function(){return yi==null?void 0:yi.map(function(Mr,ai){if(Mr.key=ai+1,Mr.len=yi.length,Mr.question_type===0)return E.createElement("aside",null,E.createElement(Lt,{ref:Ni,editData:Mr}),E.createElement(De.Z,null));if(Mr.question_type===1)return E.createElement("aside",null,E.createElement(Ae,{ref:Ni,editData:Mr}),E.createElement(De.Z,null));if(Mr.question_type===2)return E.createElement("aside",null,E.createElement(we,{ref:Ni,editData:Mr}),E.createElement(De.Z,null));if(Mr.question_type===3)return E.createElement("aside",null,E.createElement(tn,{editData:Mr}),E.createElement(De.Z,null));if(Mr.question_type===4)return E.createElement("aside",null,E.createElement(cn,{editData:Mr}),E.createElement(De.Z,null));if(Mr.question_type===5)return E.createElement("aside",null,E.createElement(nn,{editData:Mr}),E.createElement(De.Z,null))})};return E.createElement("section",{className:"edu-container"},E.createElement("section",{className:"animated fadeIn"},E.createElement("aside",{className:"mt10"},ui&&E.createElement(We.Z,{separator:">"},E.createElement(We.Z.Item,null,E.createElement(Qe.Link,{to:`/users/${Zr.username}/${Zr.topictype==="personal"?"topics":"topicbank"}/${Zr.topictype}`},Zr.topictype==="personal"?"\u6211\u7684\u9898\u5E93":"\u516C\u5171\u9898\u5E93")),E.createElement(We.Z.Item,null,"\u8BE6\u60C5"))),E.createElement("aside",{className:[en.title,"mt20"].join(" ")},E.createElement(Ie.Z,{style:{width:"100%"},align:"middle"},E.createElement(he.Z,{flex:"1"},E.createElement("strong",{className:"font20 ml5"},(xt=(Re=pe.exerciseBanks)==null?void 0:Re.exercise)==null?void 0:xt.exercise_name),E.createElement(Ye.VV,{status:[(gn=(Jt=pe.exerciseBanks)==null?void 0:Jt.exercise)!=null&&gn.is_public?"\u516C\u5F00":"\u79C1\u6709"]})),E.createElement(he.Z,null,E.createElement(Qe.Link,{className:"font16 c-light-black",to:`/users/${ui.login}/topics/${Zr.topictype}`},"\u8FD4\u56DE"))))),E.createElement("section",{className:[en.bg,"pl30","pr30","pb30","mt20 relative"].join(" ")},E.createElement("div",{className:en.export},((On=pe.exerciseBanks)==null?void 0:On.authorize)&&E.createElement(E.Fragment,null,E.createElement("a",{onClick:Mr=>{Mr.preventDefault(),Je.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664?",onOk:()=>Qt(void 0,null,function*(){(yield(0,Te.Tv)({object_type:"normal",object_id:[Zr.topicId]})).status===0&&Qe.history.push(`/users/${Zr.username}/topics/personal`)})})}},"\u5220\u9664"),E.createElement(Qe.Link,{to:`/users/${ui.login}/topics/${Zr.topicId}/${Zr.topictype}/exercise/edit`},"\u7F16\u8F91")),E.createElement("a",{onClick:Mr=>{Mr.preventDefault(),Ii()}},"\u53D1\u9001")),E.createElement(Pe.default,{className:en.tabs},E.createElement(Pe.default.TabPane,{tab:E.createElement("span",{className:"font16 pt10 pb12"},"\u5185\u5BB9\u8BE6\u60C5"),key:"1"},E.createElement("div",{className:"c-light-black"},(Fn=(Sn=pe.exerciseBanks)==null?void 0:Sn.exercise)==null?void 0:Fn.exercise_description))),Ui&&E.createElement(Ee.default,{layout:"vertical",form:ri},E.createElement(Ee.default.Item,{name:"exercise_name",label:"\u8BD5\u5377\u6807\u9898\uFF1A",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BD5\u5377\u6807\u9898"}]},E.createElement(dt.default,{maxLength:60,placeholder:"\u8BD5\u5377\u6807\u9898\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"})),E.createElement(Ee.default.Item,{label:"\u8BD5\u5377\u987B\u77E5\uFF1A",name:"exercise_description"},E.createElement(dt.default.TextArea,{rows:6,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u672C\u6B21\u8BD5\u5377\u7B54\u9898\u7684\u76F8\u5173\u8BF4\u660E\uFF0C\u6700\u5927\u9650\u5236100\u4E2A\u5B57\u7B26"})),E.createElement(Ee.default.Item,{className:"tr"},E.createElement(Ze.ZP,{type:"primary",onClick:()=>{Wi()}},"\u4FDD\u5B58")))),E.createElement("p",{className:"mt10",style:{display:"flex"}},E.createElement("span",{className:"fl",style:{flex:"1"}},!!((qn=(Xn=pe.exerciseBanks)==null?void 0:Xn.exercise_types)!=null&&qn.q_singles)&&E.createElement("span",{className:"ml20"},"\u5355\u9009\u9898",(Ln=(Hn=pe.exerciseBanks)==null?void 0:Hn.exercise_types)==null?void 0:Ln.q_singles,"\u9898\uFF0C\u5171",(Zn=(Rn=pe.exerciseBanks)==null?void 0:Rn.exercise_types)==null?void 0:Zn.q_singles_scores,"\u5206"),!!((rr=(or=pe.exerciseBanks)==null?void 0:or.exercise_types)!=null&&rr.q_doubles)&&E.createElement("span",{className:"ml20"},"\u591A\u9009\u9898",(Un=(ir=pe.exerciseBanks)==null?void 0:ir.exercise_types)==null?void 0:Un.q_doubles,"\u9898\uFF0C\u5171",(Tn=(Kn=pe.exerciseBanks)==null?void 0:Kn.exercise_types)==null?void 0:Tn.q_doubles_scores,"\u5206"),!!((Vn=(mr=pe.exerciseBanks)==null?void 0:mr.exercise_types)!=null&&Vn.q_judges)&&E.createElement("span",{className:"ml20"},"\u5224\u65AD\u9898",(Yn=(Bn=pe.exerciseBanks)==null?void 0:Bn.exercise_types)==null?void 0:Yn.q_judges,"\u9898\uFF0C\u5171",(dr=(Jn=pe.exerciseBanks)==null?void 0:Jn.exercise_types)==null?void 0:dr.q_judges_scores,"\u5206"),!!((_n=(sr=pe.exerciseBanks)==null?void 0:sr.exercise_types)!=null&&_n.q_nulls)&&E.createElement("span",{className:"ml20"},"\u586B\u7A7A\u9898",(ar=(hr=pe.exerciseBanks)==null?void 0:hr.exercise_types)==null?void 0:ar.q_nulls,"\u9898\uFF0C\u5171",(fr=(pr=pe.exerciseBanks)==null?void 0:pr.exercise_types)==null?void 0:fr.q_nulls_scores,"\u5206"),!!((br=(wr=pe.exerciseBanks)==null?void 0:wr.exercise_types)!=null&&br.q_mains)&&E.createElement("span",{className:"ml20"},"\u7B80\u7B54\u9898",(_r=(Or=pe.exerciseBanks)==null?void 0:Or.exercise_types)==null?void 0:_r.q_mains,"\u9898\uFF0C\u5171",(ur=(xr=pe.exerciseBanks)==null?void 0:xr.exercise_types)==null?void 0:ur.q_mains_scores,"\u5206"),!!((In=(pn=pe.exerciseBanks)==null?void 0:pn.exercise_types)!=null&&In.q_shixuns)&&E.createElement("span",{className:"ml20"},"\u5B9E\u8BAD\u9898",(dn=(wn=pe.exerciseBanks)==null?void 0:wn.exercise_types)==null?void 0:dn.q_shixuns,"\u9898\uFF0C\u5171",(nr=(Gn=pe.exerciseBanks)==null?void 0:Gn.exercise_types)==null?void 0:nr.q_shixuns_scores,"\u5206"),!!((yn=(vn=pe.exerciseBanks)==null?void 0:vn.exercise_types)!=null&&yn.q_pros)&&E.createElement("span",{className:"ml20"},"\u7F16\u7A0B\u9898",(Wn=(jn=pe.exerciseBanks)==null?void 0:jn.exercise_types)==null?void 0:Wn.q_pros,"\u9898\uFF0C\u5171",(kr=(vr=pe.exerciseBanks)==null?void 0:vr.exercise_types)==null?void 0:kr.q_pros_scores,"\u5206")),E.createElement("span",{className:"fr"},!!((Tr=(Br=pe.exerciseBanks)==null?void 0:Br.exercise_types)!=null&&Tr.q_counts)&&E.createElement("span",null,"\u5408\u8BA1 ",E.createElement("span",{className:"color-blue"},(Nr=(Ar=pe.exerciseBanks)==null?void 0:Ar.exercise_types)==null?void 0:Nr.q_counts)," \u9898\uFF0C \u5171 ",E.createElement("span",{className:`${((Lr=(zr=pe.exerciseBanks)==null?void 0:zr.exercise_types)==null?void 0:Lr.q_scores)>100?"color-red font-bd":"color-orange"}`},(Jr=(jr=pe.exerciseBanks)==null?void 0:jr.exercise_types)==null?void 0:Jr.q_scores)," \u5206"))),E.createElement("section",{className:[en.bg,"pt30","pl20","pr20","pb20","mt20"].join(" ")},yi!=""&&Vr(),yi==""&&E.createElement(_e.Z,null)),E.createElement(xn.Z,null))};var ke=(0,Qe.connect)(({polls:be,loading:fe,user:pe,globalSetting:Ve})=>({polls:be,globalSetting:Ve,user:pe,loading:fe.effects}))(ut)},78568:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return Ke}});var E=ne(59301),Qe=ne(44283),xe=ne(6767),tt=ne(62957),Ee=ne(31691),Be=ne(458),De=ne(47889),We={title:"title___XAxiE",radioWrap:"radioWrap___k0pOB",radio:"radio___x9kMt",colorFF0000:"colorFF0000___IMgd0",pagination:"pagination___ou2ht",checkboxWrapper:"checkboxWrapper___kF7xI"},Ie=ne(76406),he=ne(70467),Je=ne(29787),Pe=ne(62673),dt=ne(32352),Ze=ne(26724),Ce=ne.n(Ze),Te=(ze,se,qe)=>new Promise((Le,Ae)=>{var ct=Ue=>{try{ce(qe.next(Ue))}catch(It){Ae(It)}},ye=Ue=>{try{ce(qe.throw(Ue))}catch(It){Ae(It)}},ce=Ue=>Ue.done?Le(Ue.value):Promise.resolve(Ue.value).then(ct,ye);ce((qe=qe.apply(ze,se)).next())}),rt=({username:ze,setStages:se,stages:qe,hasError:Le,setHasError:Ae})=>{const[ct,ye]=(0,E.useState)(""),[ce,Ue]=(0,E.useState)(1),[It,bt]=(0,E.useState)([]),[ge,He]=(0,E.useState)(!1),[Ge,Tt]=(0,E.useState)(0);(0,E.useEffect)(()=>{wt({page:1,search:""},!0)},[]);const wt=($e,At)=>Te(void 0,null,function*(){He(!0);const st=yield(0,dt.w3)({username:ze,category:"manage",page:$e.page,search:$e.search});He(!1),bt(ae=>At?st==null?void 0:st.subjects:[...ae,...st==null?void 0:st.subjects]),Tt(st==null?void 0:st.count)}),Lt=(0,E.useRef)();return E.createElement("div",{className:We.wrap},E.createElement("div",{className:"mb10"},E.createElement(he.t7,{placeholder:"\u8BF7\u8F93\u5165\u5B9E\u8DF5\u8BFE\u7A0B\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:ct,style:{width:500},onChange:$e=>{ye($e),Ue(1),Lt.current.scrollTo({behavior:"smooth",top:0}),wt({page:1,search:$e},!0)}})),E.createElement(Je.Z,{spinning:ge},E.createElement("div",{className:We.radioWrap,ref:Lt},E.createElement(Ce(),{initialLoad:!1,pageStart:1,threshold:6,loadMore:()=>{Ue(ce+1),wt({page:ce+1,search:ct},!1)},hasMore:It.length<Ge,useWindow:!1},E.createElement(De.ZP.Group,{value:qe.subjectId,onChange:$e=>{se({subjectId:$e.target.value,stage_ids:[]}),Ae(!1)}},It.map($e=>{const At=$e.stages.map(st=>({label:st.name,value:st.id}));return E.createElement("div",{key:$e.id},E.createElement(De.ZP,{className:We.radio,value:$e.id},$e.name),$e.id===qe.subjectId&&E.createElement("div",{className:We.checkboxWrapper},At.length>0&&E.createElement(Pe.default,{indeterminate:qe.stage_ids.length>0&&qe.stage_ids.length<At.length,onChange:st=>{se({subjectId:$e.id,stage_ids:st.target.checked?At.map(ae=>ae.value):[]})},checked:qe.stage_ids.length===At.length},"\u5168\u9009"),E.createElement(Pe.default.Group,{options:At,value:qe.stage_ids,onChange:st=>se({subjectId:$e.id,stage_ids:st})})))}))))),Le&&E.createElement("div",{className:We.colorFF0000},"\u8BF7\u5148\u9009\u62E9\u5B9E\u8DF5\u8BFE\u7A0B\u53CA\u7AE0\u8282"))},gt=ne(39967),Pt=ne(48404),ht=Object.defineProperty,it=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,kt=(ze,se,qe)=>se in ze?ht(ze,se,{enumerable:!0,configurable:!0,writable:!0,value:qe}):ze[se]=qe,lt=(ze,se)=>{for(var qe in se||(se={}))nt.call(se,qe)&&kt(ze,qe,se[qe]);if(it)for(var qe of it(se))Fe.call(se,qe)&&kt(ze,qe,se[qe]);return ze},et=(ze,se)=>{var qe={};for(var Le in ze)nt.call(ze,Le)&&se.indexOf(Le)<0&&(qe[Le]=ze[Le]);if(ze!=null&&it)for(var Le of it(ze))se.indexOf(Le)<0&&Fe.call(ze,Le)&&(qe[Le]=ze[Le]);return qe},St=(ze,se,qe)=>new Promise((Le,Ae)=>{var ct=Ue=>{try{ce(qe.next(Ue))}catch(It){Ae(It)}},ye=Ue=>{try{ce(qe.throw(Ue))}catch(It){Ae(It)}},ce=Ue=>Ue.done?Le(Ue.value):Promise.resolve(Ue.value).then(ct,ye);ce((qe=qe.apply(ze,se)).next())});const Me=ze=>{var se=ze,{userDetail:qe,globalSetting:Le,loading:Ae,user:ct,dispatch:ye}=se,ce=et(se,["userDetail","globalSetting","loading","user","dispatch"]),Ue,It,bt,ge,He;const[Ge,Tt]=(0,E.useState)("course"),[wt,Lt]=(0,E.useState)(""),[$e,At]=(0,E.useState)([]),[st,ae]=(0,E.useState)(),[te,ee]=(0,E.useState)(!1),[oe,ue]=(0,E.useState)(!1);(0,E.useEffect)(()=>{qe.actionTabs.key==="UserDetail-SendToClass"&&re(wt)},[qe.actionTabs.key]);const re=Oe=>St(void 0,null,function*(){ee(!0);const Ye=yield ye({type:"userDetail/topicGetCourseList",payload:{search:Oe}});Ye&&At((Ye==null?void 0:Ye.courses)||[]),ee(!1)}),[ve,we]=(0,E.useState)({subjectId:"",stage_ids:[]}),ft=()=>St(void 0,null,function*(){var Oe,Ye,mt,Bt,Et,Ut;if(Ge==="course"){if(!st){ue(!0);return}const Wt=yield ye({type:"userDetail/topicSendToClass",payload:lt({course_id:st},(Oe=qe.actionTabs)==null?void 0:Oe.params)});if(ye({type:"userDetail/setActionTabs",payload:{}}),Wt&&Wt.status===0){const Ht={normal:"common_homework",group:"group_homework",exercise:"exercise",poll:"poll",videos:"video"};(0,Ie.xg)(`/classrooms/${st}/${Ht[(mt=(Ye=qe.actionTabs)==null?void 0:Ye.params)==null?void 0:mt.object_type]}`)}}else{if(!ve.subjectId||!ve.stage_ids.length){ue(!0);return}(yield(0,Pt.nI)({id:(Et=(Bt=qe.actionTabs)==null?void 0:Bt.params)==null?void 0:Et.object_id,login:(Ut=ct.userInfo)==null?void 0:Ut.login},{stage_ids:ve.stage_ids})).status===0&&(xe.ZP.success("\u53D1\u9001\u6210\u529F"),ye({type:"userDetail/setActionTabs",payload:{}}),(0,Ie.xg)(`/paths/${ve.subjectId}`))}});return E.createElement(tt.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:qe.actionTabs.key==="UserDetail-SendToClass",title:"\u53D1\u9001",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:Ae["userDetail/sendToClass"],width:600,afterClose:()=>{ue(!1),At([]),we({subjectId:"",stage_ids:[]}),Lt("")},onOk:ft,wrapClassName:gt.Z.CustomCss,onCancel:()=>{ye({type:"userDetail/setActionTabs",payload:{}})}},E.createElement(Ee.default,{activeKey:Ge,onChange:Oe=>{ue(!1),Tt(Oe)},items:[{label:"\u8BFE\u5802",key:"course",children:E.createElement("div",{className:We.wrap},E.createElement("div",{className:"mb10"},E.createElement(he.t7,{placeholder:"\u8BF7\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:wt,style:{width:500},onChange:Oe=>{Lt(Oe),re(Oe)}})),E.createElement(Be.Z,{active:!0,loading:te},E.createElement("div",{className:We.radioWrap},E.createElement(De.ZP.Group,{value:st,onChange:Oe=>{ae(Oe.target.value),ue(!1)}},$e.map((Oe,Ye)=>E.createElement(De.ZP,{className:We.radio,value:Oe.course_id,key:Oe.course_id},Oe.course_name))))),((It=(Ue=qe.actionTabs)==null?void 0:Ue.params)==null?void 0:It.object_type)!=="videos"&&E.createElement("div",{className:We.title},"\u6E29\u99A8\u63D0\u793A\uFF1A\u9009\u62E9\u7684\u9898\u5C06\u4F1A\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802"),oe&&E.createElement("div",{className:We.colorFF0000},"\u8BF7\u5148\u9009\u62E9\u8BFE\u5802")),show:!0},{label:"\u5B9E\u8DF5\u8BFE\u7A0B",key:"subject",children:E.createElement(rt,{username:(bt=ct.userInfo)==null?void 0:bt.login,stages:ve,setStages:we,hasError:oe,setHasError:ue}),show:((He=(ge=qe.actionTabs)==null?void 0:ge.params)==null?void 0:He.object_type)==="videos"}].filter(Oe=>Oe.show)}))};var Ke=(0,Qe.connect)(({userDetail:ze,loading:se,globalSetting:qe,user:Le})=>({userDetail:ze,globalSetting:qe,loading:se.effects,user:Le}))(Me)},20047:function(on,$t,ne){"use strict";ne.d($t,{AL:function(){return ht},Iy:function(){return Je},Qv:function(){return Ze},ez:function(){return Pt},jb:function(){return Pe}});var E=ne(32834),Qe=ne.n(E),xe=ne(11690),tt=ne.n(xe);let Ee=1;function Be(lt,et){const St=lt.match(/^(\s+)(?:```)/);if(St===null)return et;const Me=St[1];return et.split(`
`).map(Ke=>{const ze=Ke.match(/^\s+/);if(ze===null)return Ke;const[se]=ze;return se.length>=Me.length?Ke.slice(Me.length):Ke}).join(`
`)}let De=[],We=["<ul>"];const Ie=new(Qe()).Renderer,he=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Je(){De.length=0,We=["<ul>"]}const Pe={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function dt(lt,et,St,Me){if(et>=lt.length||lt[et].level<=St)return et;var Ke=lt[et];Me.push("<li><a href='#"+Ee+Ke.anchor+"'>"+Ke.text+"</a>"),et++;var ze=[];return et=dt(lt,et,Ke.level,ze),ze.length>0&&(Me.push("<ul>"),ze.forEach(function(se){Me.push(se)}),Me.push("</ul>")),Me.push("</li>"),et=dt(lt,et,St,Me),et}function Ze(){return dt(De,0,0,We),We.push("</ul>"),We.join("")}const Ce={heading(lt){const et=he.exec(lt);if(Ee+=1,et)return{type:"heading",raw:et[0],depth:et[1].length,text:et[2]}},fences(lt){const et=this.rules.block.fences.exec(lt);if(et){const St=et[0];let Me=Be(St,et[3]||"");const Ke=et[2]?et[2].trim():et[2];if(["latex","katex","math"].indexOf(Ke)>=0){const ze=rt(),se=Me;Me=ze,gt[ze]={type:"block",expression:se}}return{type:"code",raw:St,lang:Ke,text:Me}}}},Te=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let _e=0;const rt=()=>`__special_katext_id_${_e++}__`;let gt={};function Pt(){return gt}function ht(){_e=0,gt={}}function it(lt){return lt=lt.replace(Te,(et,St)=>{const Me=rt();return gt[Me]={type:"inline",expression:St},Me}),lt}const nt=Ie.listitem;Ie.listitem=function(lt){return nt(it(lt))};const Fe=Ie.paragraph;Ie.paragraph=function(lt){return Fe(it(lt))};const kt=Ie.tablecell;Ie.tablecell=function(lt,et){return kt(it(lt),et)},Ie.code=function(lt,et,St){const Me=(et||"").match(/\S*/)[0];return Me?["latex","katex","math"].indexOf(Me)>=0?`<p class='editormd-tex'>${lt}</p>`:`<pre class="prettyprint linenums"><code class="language-${et}">${St?lt:(0,xe.escape)(lt,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(St?lt:(0,xe.escape)(lt,!0))+"</code></pre>"},Ie.heading=function(lt,et,St){let Me=this.options.headerPrefix+St.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return De.push({anchor:Me,level:et,text:lt}),"<h"+et+' id="'+Ee+Me+'">'+lt+"</h"+et+">"},Qe().setOptions({silent:!0,gfm:!0,pedantic:!1}),Qe().use({tokenizer:Ce,renderer:Ie}),$t.ZP=Qe()},86013:function(on,$t,ne){"use strict";var E=ne(59301),Qe=ne(19248);const xe=tt=>{let Ee;return typeof tt=="object"&&(tt!=null&&tt.clearIcon)?Ee=tt:tt&&(Ee={clearIcon:E.createElement(Qe.Z,null)}),Ee};$t.Z=xe},91882:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return Le}});var E=ne(59301),Qe=ne(92310),xe=ne.n(Qe),tt=ne(11592),Ee=ne(26112),Be=ne(22703),De=ne(48755),We=ne(84105),Ie=ne(19563);const he=Ae=>{let{children:ct}=Ae;const{getPrefixCls:ye}=E.useContext(De.E_),ce=ye("breadcrumb");return E.createElement("li",{className:`${ce}-separator`,"aria-hidden":"true"},ct===""?ct:ct||"/")};he.__ANT_BREADCRUMB_SEPARATOR=!0;var Je=he,Pe=function(Ae,ct){var ye={};for(var ce in Ae)Object.prototype.hasOwnProperty.call(Ae,ce)&&ct.indexOf(ce)<0&&(ye[ce]=Ae[ce]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,ce=Object.getOwnPropertySymbols(Ae);Ue<ce.length;Ue++)ct.indexOf(ce[Ue])<0&&Object.prototype.propertyIsEnumerable.call(Ae,ce[Ue])&&(ye[ce[Ue]]=Ae[ce[Ue]]);return ye};function dt(Ae,ct){if(Ae.title===void 0||Ae.title===null)return null;const ye=Object.keys(ct).join("|");return typeof Ae.title=="object"?Ae.title:String(Ae.title).replace(new RegExp(`:(${ye})`,"g"),(ce,Ue)=>ct[Ue]||ce)}function Ze(Ae,ct,ye,ce){if(ye==null)return null;const{className:Ue,onClick:It}=ct,bt=Pe(ct,["className","onClick"]),ge=Object.assign(Object.assign({},(0,Ee.Z)(bt,{data:!0,aria:!0})),{onClick:It});return ce!==void 0?E.createElement("a",Object.assign({},ge,{className:xe()(`${Ae}-link`,Ue),href:ce}),ye):E.createElement("span",Object.assign({},ge,{className:xe()(`${Ae}-link`,Ue)}),ye)}function Ce(Ae,ct){return(ce,Ue,It,bt,ge)=>{if(ct)return ct(ce,Ue,It,bt);const He=dt(ce,Ue);return Ze(Ae,ce,He,ge)}}var Te=function(Ae,ct){var ye={};for(var ce in Ae)Object.prototype.hasOwnProperty.call(Ae,ce)&&ct.indexOf(ce)<0&&(ye[ce]=Ae[ce]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,ce=Object.getOwnPropertySymbols(Ae);Ue<ce.length;Ue++)ct.indexOf(ce[Ue])<0&&Object.prototype.propertyIsEnumerable.call(Ae,ce[Ue])&&(ye[ce[Ue]]=Ae[ce[Ue]]);return ye};const _e=Ae=>{const{prefixCls:ct,separator:ye="/",children:ce,menu:Ue,overlay:It,dropdownProps:bt,href:ge}=Ae,Ge=(Tt=>{if(Ue||It){const wt=Object.assign({},bt);if(Ue){const Lt=Ue||{},{items:$e}=Lt,At=Te(Lt,["items"]);wt.menu=Object.assign(Object.assign({},At),{items:$e==null?void 0:$e.map((st,ae)=>{var{key:te,title:ee,label:oe,path:ue}=st,re=Te(st,["key","title","label","path"]);let ve=oe!=null?oe:ee;return ue&&(ve=E.createElement("a",{href:`${ge}${ue}`},ve)),Object.assign(Object.assign({},re),{key:te!=null?te:ae,label:ve})})})}else It&&(wt.overlay=It);return E.createElement(Ie.Z,Object.assign({placement:"bottom"},wt),E.createElement("span",{className:`${ct}-overlay-link`},Tt,E.createElement(We.Z,null)))}return Tt})(ce);return Ge!=null?E.createElement(E.Fragment,null,E.createElement("li",null,Ge),ye&&E.createElement(Je,null,ye)):null},rt=Ae=>{const{prefixCls:ct,children:ye,href:ce}=Ae,Ue=Te(Ae,["prefixCls","children","href"]),{getPrefixCls:It}=E.useContext(De.E_),bt=It("breadcrumb",ct);return E.createElement(_e,Object.assign({},Ue,{prefixCls:bt}),Ze(bt,Ue,ye,ce))};rt.__ANT_BREADCRUMB_ITEM=!0;var gt=rt,Pt=ne(36237),ht=ne(63356),it=ne(16931),nt=ne(51636);const Fe=Ae=>{const{componentCls:ct,iconCls:ye,calc:ce}=Ae;return{[ct]:Object.assign(Object.assign({},(0,ht.Wf)(Ae)),{color:Ae.itemColor,fontSize:Ae.fontSize,[ye]:{fontSize:Ae.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Ae.linkColor,transition:`color ${Ae.motionDurationMid}`,padding:`0 ${(0,Pt.unit)(Ae.paddingXXS)}`,borderRadius:Ae.borderRadiusSM,height:Ae.fontHeight,display:"inline-block",marginInline:ce(Ae.marginXXS).mul(-1).equal(),"&:hover":{color:Ae.linkHoverColor,backgroundColor:Ae.colorBgTextHover}},(0,ht.Qy)(Ae)),"li:last-child":{color:Ae.lastItemColor},[`${ct}-separator`]:{marginInline:Ae.separatorMargin,color:Ae.separatorColor},[`${ct}-link`]:{[`
> ${ye} + span,
> ${ye} + a
`]:{marginInlineStart:Ae.marginXXS}},[`${ct}-overlay-link`]:{borderRadius:Ae.borderRadiusSM,height:Ae.fontHeight,display:"inline-block",padding:`0 ${(0,Pt.unit)(Ae.paddingXXS)}`,marginInline:ce(Ae.marginXXS).mul(-1).equal(),[`> ${ye}`]:{marginInlineStart:Ae.marginXXS,fontSize:Ae.fontSizeIcon},"&:hover":{color:Ae.linkHoverColor,backgroundColor:Ae.colorBgTextHover,a:{color:Ae.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Ae.componentCls}-rtl`]:{direction:"rtl"}})}},kt=Ae=>({itemColor:Ae.colorTextDescription,lastItemColor:Ae.colorText,iconFontSize:Ae.fontSize,linkColor:Ae.colorTextDescription,linkHoverColor:Ae.colorText,separatorColor:Ae.colorTextDescription,separatorMargin:Ae.marginXS});var lt=(0,it.I$)("Breadcrumb",Ae=>{const ct=(0,nt.mergeToken)(Ae,{});return Fe(ct)},kt),et=function(Ae,ct){var ye={};for(var ce in Ae)Object.prototype.hasOwnProperty.call(Ae,ce)&&ct.indexOf(ce)<0&&(ye[ce]=Ae[ce]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,ce=Object.getOwnPropertySymbols(Ae);Ue<ce.length;Ue++)ct.indexOf(ce[Ue])<0&&Object.prototype.propertyIsEnumerable.call(Ae,ce[Ue])&&(ye[ce[Ue]]=Ae[ce[Ue]]);return ye};function St(Ae){const{breadcrumbName:ct,children:ye}=Ae,ce=et(Ae,["breadcrumbName","children"]),Ue=Object.assign({title:ct},ce);return ye&&(Ue.menu={items:ye.map(It=>{var{breadcrumbName:bt}=It,ge=et(It,["breadcrumbName"]);return Object.assign(Object.assign({},ge),{title:bt})})}),Ue}function Me(Ae,ct){return(0,E.useMemo)(()=>Ae||(ct?ct.map(St):null),[Ae,ct])}var Ke=function(Ae,ct){var ye={};for(var ce in Ae)Object.prototype.hasOwnProperty.call(Ae,ce)&&ct.indexOf(ce)<0&&(ye[ce]=Ae[ce]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,ce=Object.getOwnPropertySymbols(Ae);Ue<ce.length;Ue++)ct.indexOf(ce[Ue])<0&&Object.prototype.propertyIsEnumerable.call(Ae,ce[Ue])&&(ye[ce[Ue]]=Ae[ce[Ue]]);return ye};const ze=(Ae,ct)=>{if(ct===void 0)return ct;let ye=(ct||"").replace(/^\//,"");return Object.keys(Ae).forEach(ce=>{ye=ye.replace(`:${ce}`,Ae[ce])}),ye},se=Ae=>{const{prefixCls:ct,separator:ye="/",style:ce,className:Ue,rootClassName:It,routes:bt,items:ge,children:He,itemRender:Ge,params:Tt={}}=Ae,wt=Ke(Ae,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Lt,direction:$e,breadcrumb:At}=E.useContext(De.E_);let st;const ae=Lt("breadcrumb",ct),[te,ee,oe]=lt(ae),ue=Me(ge,bt),re=Ce(ae,Ge);if(ue&&ue.length>0){const ft=[],Oe=ge||bt;st=ue.map((Ye,mt)=>{const{path:Bt,key:Et,type:Ut,menu:Wt,overlay:Ht,onClick:ln,className:qt,separator:sn,dropdownProps:Dt}=Ye,tn=ze(Tt,Bt);tn!==void 0&&ft.push(tn);const Vt=Et!=null?Et:mt;if(Ut==="separator")return E.createElement(Je,{key:Vt},sn);const je={},pt=mt===ue.length-1;Wt?je.menu=Wt:Ht&&(je.overlay=Ht);let{href:Ft}=Ye;return ft.length&&tn!==void 0&&(Ft=`#/${ft.join("/")}`),E.createElement(_e,Object.assign({key:Vt},je,(0,Ee.Z)(Ye,{data:!0,aria:!0}),{className:qt,dropdownProps:Dt,href:Ft,separator:pt?"":ye,onClick:ln,prefixCls:ae}),re(Ye,Tt,Oe,ft,Ft))})}else if(He){const ft=(0,tt.Z)(He).length;st=(0,tt.Z)(He).map((Oe,Ye)=>{if(!Oe)return Oe;const mt=Ye===ft-1;return(0,Be.Tm)(Oe,{separator:mt?"":ye,key:Ye})})}const ve=xe()(ae,At==null?void 0:At.className,{[`${ae}-rtl`]:$e==="rtl"},Ue,It,ee,oe),we=Object.assign(Object.assign({},At==null?void 0:At.style),ce);return te(E.createElement("nav",Object.assign({className:ve,style:we},wt),E.createElement("ol",null,st)))};se.Item=gt,se.Separator=Je;var qe=se,Le=qe},62673:function(on,$t,ne){"use strict";ne.d($t,{default:function(){return lt}});var E=ne(59301),Qe=ne(92310),xe=ne.n(Qe),tt=ne(16632),Ee=ne(8654),Be=ne(12919),De=ne(63872),We=ne(48755),Ie=ne(2171),he=ne(83397),Je=ne(56553),dt=E.createContext(null),Ze=ne(36170),Ce=ne(74632),Te=function(et,St){var Me={};for(var Ke in et)Object.prototype.hasOwnProperty.call(et,Ke)&&St.indexOf(Ke)<0&&(Me[Ke]=et[Ke]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,Ke=Object.getOwnPropertySymbols(et);ze<Ke.length;ze++)St.indexOf(Ke[ze])<0&&Object.prototype.propertyIsEnumerable.call(et,Ke[ze])&&(Me[Ke[ze]]=et[Ke[ze]]);return Me};const _e=(et,St)=>{var Me;const{prefixCls:Ke,className:ze,rootClassName:se,children:qe,indeterminate:Le=!1,style:Ae,onMouseEnter:ct,onMouseLeave:ye,skipGroup:ce=!1,disabled:Ue}=et,It=Te(et,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:bt,direction:ge,checkbox:He}=E.useContext(We.E_),Ge=E.useContext(dt),{isFormItemInput:Tt}=E.useContext(Je.aM),wt=E.useContext(Ie.Z),Lt=(Me=(Ge==null?void 0:Ge.disabled)||Ue)!==null&&Me!==void 0?Me:wt,$e=E.useRef(It.value),At=E.useRef(null),st=(0,Ee.sQ)(St,At);E.useEffect(()=>{Ge==null||Ge.registerValue(It.value)},[]),E.useEffect(()=>{if(!ce)return It.value!==$e.current&&(Ge==null||Ge.cancelValue($e.current),Ge==null||Ge.registerValue(It.value),$e.current=It.value),()=>Ge==null?void 0:Ge.cancelValue(It.value)},[It.value]),E.useEffect(()=>{var Ye;!((Ye=At.current)===null||Ye===void 0)&&Ye.input&&(At.current.input.indeterminate=Le)},[Le]);const ae=bt("checkbox",Ke),te=(0,he.Z)(ae),[ee,oe,ue]=(0,Ze.ZP)(ae,te),re=Object.assign({},It);Ge&&!ce&&(re.onChange=function(){It.onChange&&It.onChange.apply(It,arguments),Ge.toggleOption&&Ge.toggleOption({label:qe,value:It.value})},re.name=Ge.name,re.checked=Ge.value.includes(It.value));const ve=xe()(`${ae}-wrapper`,{[`${ae}-rtl`]:ge==="rtl",[`${ae}-wrapper-checked`]:re.checked,[`${ae}-wrapper-disabled`]:Lt,[`${ae}-wrapper-in-form-item`]:Tt},He==null?void 0:He.className,ze,se,ue,te,oe),we=xe()({[`${ae}-indeterminate`]:Le},De.A,oe),[ft,Oe]=(0,Ce.Z)(re.onClick);return ee(E.createElement(Be.Z,{component:"Checkbox",disabled:Lt},E.createElement("label",{className:ve,style:Object.assign(Object.assign({},He==null?void 0:He.style),Ae),onMouseEnter:ct,onMouseLeave:ye,onClick:ft},E.createElement(tt.Z,Object.assign({},re,{onClick:Oe,prefixCls:ae,className:we,disabled:Lt,ref:st})),qe!==void 0&&E.createElement("span",{className:`${ae}-label`},qe))))};var gt=E.forwardRef(_e),Pt=ne(77654),ht=ne(2738),it=function(et,St){var Me={};for(var Ke in et)Object.prototype.hasOwnProperty.call(et,Ke)&&St.indexOf(Ke)<0&&(Me[Ke]=et[Ke]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,Ke=Object.getOwnPropertySymbols(et);ze<Ke.length;ze++)St.indexOf(Ke[ze])<0&&Object.prototype.propertyIsEnumerable.call(et,Ke[ze])&&(Me[Ke[ze]]=et[Ke[ze]]);return Me},Fe=E.forwardRef((et,St)=>{const{defaultValue:Me,children:Ke,options:ze=[],prefixCls:se,className:qe,rootClassName:Le,style:Ae,onChange:ct}=et,ye=it(et,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ce,direction:Ue}=E.useContext(We.E_),[It,bt]=E.useState(ye.value||Me||[]),[ge,He]=E.useState([]);E.useEffect(()=>{"value"in ye&&bt(ye.value||[])},[ye.value]);const Ge=E.useMemo(()=>ze.map(we=>typeof we=="string"||typeof we=="number"?{label:we,value:we}:we),[ze]),Tt=we=>{He(ft=>ft.filter(Oe=>Oe!==we))},wt=we=>{He(ft=>[].concat((0,Pt.Z)(ft),[we]))},Lt=we=>{const ft=It.indexOf(we.value),Oe=(0,Pt.Z)(It);ft===-1?Oe.push(we.value):Oe.splice(ft,1),"value"in ye||bt(Oe),ct==null||ct(Oe.filter(Ye=>ge.includes(Ye)).sort((Ye,mt)=>{const Bt=Ge.findIndex(Ut=>Ut.value===Ye),Et=Ge.findIndex(Ut=>Ut.value===mt);return Bt-Et}))},$e=ce("checkbox",se),At=`${$e}-group`,st=(0,he.Z)($e),[ae,te,ee]=(0,Ze.ZP)($e,st),oe=(0,ht.Z)(ye,["value","disabled"]),ue=ze.length?Ge.map(we=>E.createElement(gt,{prefixCls:$e,key:we.value.toString(),disabled:"disabled"in we?we.disabled:ye.disabled,value:we.value,checked:It.includes(we.value),onChange:we.onChange,className:`${At}-item`,style:we.style,title:we.title,id:we.id,required:we.required},we.label)):Ke,re={toggleOption:Lt,value:It,disabled:ye.disabled,name:ye.name,registerValue:wt,cancelValue:Tt},ve=xe()(At,{[`${At}-rtl`]:Ue==="rtl"},qe,Le,ee,st,te);return ae(E.createElement("div",Object.assign({className:ve,style:Ae},oe,{ref:St}),E.createElement(dt.Provider,{value:re},ue)))});const kt=gt;kt.Group=Fe,kt.__ANT_CHECKBOX=!0;var lt=kt},36170:function(on,$t,ne){"use strict";ne.d($t,{C2:function(){return Be}});var E=ne(36237),Qe=ne(63356),xe=ne(51636),tt=ne(16931);const Ee=De=>{const{checkboxCls:We}=De,Ie=`${We}-wrapper`;return[{[`${We}-group`]:Object.assign(Object.assign({},(0,Qe.Wf)(De)),{display:"inline-flex",flexWrap:"wrap",columnGap:De.marginXS,[`> ${De.antCls}-row`]:{flex:1}}),[Ie]:Object.assign(Object.assign({},(0,Qe.Wf)(De)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ie}`]:{marginInlineStart:0},[`&${Ie}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[We]:Object.assign(Object.assign({},(0,Qe.Wf)(De)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:De.borderRadiusSM,alignSelf:"center",[`${We}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${We}-inner`]:Object.assign({},(0,Qe.oN)(De))},[`${We}-inner`]:{boxSizing:"border-box",display:"block",width:De.checkboxSize,height:De.checkboxSize,direction:"ltr",backgroundColor:De.colorBgContainer,border:`${(0,E.unit)(De.lineWidth)} ${De.lineType} ${De.colorBorder}`,borderRadius:De.borderRadiusSM,borderCollapse:"separate",transition:`all ${De.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:De.calc(De.checkboxSize).div(14).mul(5).equal(),height:De.calc(De.checkboxSize).div(14).mul(8).equal(),border:`${(0,E.unit)(De.lineWidthBold)} solid ${De.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${De.motionDurationFast} ${De.motionEaseInBack}, opacity ${De.motionDurationFast}`}},"& + span":{paddingInlineStart:De.paddingXS,paddingInlineEnd:De.paddingXS}})},{[`
${Ie}:not(${Ie}-disabled),
${We}:not(${We}-disabled)
`]:{[`&:hover ${We}-inner`]:{borderColor:De.colorPrimary}},[`${Ie}:not(${Ie}-disabled)`]:{[`&:hover ${We}-checked:not(${We}-disabled) ${We}-inner`]:{backgroundColor:De.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${We}-checked:not(${We}-disabled):after`]:{borderColor:De.colorPrimaryHover}}},{[`${We}-checked`]:{[`${We}-inner`]:{backgroundColor:De.colorPrimary,borderColor:De.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${De.motionDurationMid} ${De.motionEaseOutBack} ${De.motionDurationFast}`}}},[`
${Ie}-checked:not(${Ie}-disabled),
${We}-checked:not(${We}-disabled)
`]:{[`&:hover ${We}-inner`]:{backgroundColor:De.colorPrimaryHover,borderColor:"transparent"}}},{[We]:{"&-indeterminate":{[`${We}-inner`]:{backgroundColor:`${De.colorBgContainer} !important`,borderColor:`${De.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:De.calc(De.fontSizeLG).div(2).equal(),height:De.calc(De.fontSizeLG).div(2).equal(),backgroundColor:De.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${We}-inner`]:{backgroundColor:`${De.colorBgContainer} !important`,borderColor:`${De.colorPrimary} !important`}}}},{[`${Ie}-disabled`]:{cursor:"not-allowed"},[`${We}-disabled`]:{[`&, ${We}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${We}-inner`]:{background:De.colorBgContainerDisabled,borderColor:De.colorBorder,"&:after":{borderColor:De.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:De.colorTextDisabled},[`&${We}-indeterminate ${We}-inner::after`]:{background:De.colorTextDisabled}}}]};function Be(De,We){const Ie=(0,xe.mergeToken)(We,{checkboxCls:`.${De}`,checkboxSize:We.controlInteractiveSize});return[Ee(Ie)]}$t.ZP=(0,tt.I$)("Checkbox",(De,We)=>{let{prefixCls:Ie}=We;return[Be(Ie,De)]})},38406:function(on,$t,ne){"use strict";var E=ne(59301),Qe=ne(48755),xe=ne(584);const tt=Ee=>{const{componentName:Be}=Ee,{getPrefixCls:De}=(0,E.useContext)(Qe.E_),We=De("empty");switch(Be){case"Table":case"List":return E.createElement(xe.Z,{image:xe.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return E.createElement(xe.Z,{image:xe.Z.PRESENTED_IMAGE_SIMPLE,className:`${We}-small`});case"Table.filter":return null;default:return E.createElement(xe.Z,null)}};$t.Z=tt},37285:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return Ze}});var E=ne(59301),Qe=ne(92310),xe=ne.n(Qe),tt=ne(48755),Ee=ne(36237),Be=ne(63356),De=ne(16931),We=ne(51636);const Ie=Ce=>{const{componentCls:Te,sizePaddingEdgeHorizontal:_e,colorSplit:rt,lineWidth:gt,textPaddingInline:Pt,orientationMargin:ht,verticalMarginInline:it}=Ce;return{[Te]:Object.assign(Object.assign({},(0,Be.Wf)(Ce)),{borderBlockStart:`${(0,Ee.unit)(gt)} solid ${rt}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:it,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,Ee.unit)(gt)} solid ${rt}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,Ee.unit)(Ce.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${Te}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,Ee.unit)(Ce.dividerHorizontalWithTextGutterMargin)} 0`,color:Ce.colorTextHeading,fontWeight:500,fontSize:Ce.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${rt}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,Ee.unit)(gt)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Te}-with-text-start`]:{"&::before":{width:`calc(${ht} * 100%)`},"&::after":{width:`calc(100% - ${ht} * 100%)`}},[`&-horizontal${Te}-with-text-end`]:{"&::before":{width:`calc(100% - ${ht} * 100%)`},"&::after":{width:`calc(${ht} * 100%)`}},[`${Te}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:Pt},"&-dashed":{background:"none",borderColor:rt,borderStyle:"dashed",borderWidth:`${(0,Ee.unit)(gt)} 0 0`},[`&-horizontal${Te}-with-text${Te}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Te}-dashed`]:{borderInlineStartWidth:gt,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:rt,borderStyle:"dotted",borderWidth:`${(0,Ee.unit)(gt)} 0 0`},[`&-horizontal${Te}-with-text${Te}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${Te}-dotted`]:{borderInlineStartWidth:gt,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Te}-with-text`]:{color:Ce.colorText,fontWeight:"normal",fontSize:Ce.fontSize},[`&-horizontal${Te}-with-text-start${Te}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Te}-inner-text`]:{paddingInlineStart:_e}},[`&-horizontal${Te}-with-text-end${Te}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Te}-inner-text`]:{paddingInlineEnd:_e}}})}},he=Ce=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Ce.marginXS});var Je=(0,De.I$)("Divider",Ce=>{const Te=(0,We.mergeToken)(Ce,{dividerHorizontalWithTextGutterMargin:Ce.margin,dividerHorizontalGutterMargin:Ce.marginLG,sizePaddingEdgeHorizontal:0});return[Ie(Te)]},he,{unitless:{orientationMargin:!0}}),Pe=function(Ce,Te){var _e={};for(var rt in Ce)Object.prototype.hasOwnProperty.call(Ce,rt)&&Te.indexOf(rt)<0&&(_e[rt]=Ce[rt]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,rt=Object.getOwnPropertySymbols(Ce);gt<rt.length;gt++)Te.indexOf(rt[gt])<0&&Object.prototype.propertyIsEnumerable.call(Ce,rt[gt])&&(_e[rt[gt]]=Ce[rt[gt]]);return _e},Ze=Ce=>{const{getPrefixCls:Te,direction:_e,className:rt,style:gt}=(0,tt.dj)("divider"),{prefixCls:Pt,type:ht="horizontal",orientation:it="center",orientationMargin:nt,className:Fe,rootClassName:kt,children:lt,dashed:et,variant:St="solid",plain:Me,style:Ke}=Ce,ze=Pe(Ce,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),se=Te("divider",Pt),[qe,Le,Ae]=Je(se),ct=!!lt,ye=E.useMemo(()=>it==="left"?_e==="rtl"?"end":"start":it==="right"?_e==="rtl"?"start":"end":it,[_e,it]),ce=ye==="start"&&nt!=null,Ue=ye==="end"&&nt!=null,It=xe()(se,rt,Le,Ae,`${se}-${ht}`,{[`${se}-with-text`]:ct,[`${se}-with-text-${ye}`]:ct,[`${se}-dashed`]:!!et,[`${se}-${St}`]:St!=="solid",[`${se}-plain`]:!!Me,[`${se}-rtl`]:_e==="rtl",[`${se}-no-default-orientation-margin-start`]:ce,[`${se}-no-default-orientation-margin-end`]:Ue},Fe,kt),bt=E.useMemo(()=>typeof nt=="number"?nt:/^\d+$/.test(nt)?Number(nt):nt,[nt]),ge={marginInlineStart:ce?bt:void 0,marginInlineEnd:Ue?bt:void 0};return qe(E.createElement("div",Object.assign({className:It,style:Object.assign(Object.assign({},gt),Ke)},ze,{role:"separator"}),lt&&ht!=="vertical"&&E.createElement("span",{className:`${se}-inner-text`,style:ge},lt)))}},36207:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return ft}});var E=ne(59301),Qe=ne(92310),xe=ne.n(Qe),tt=ne(85899),Ee=ne(72190),Be=ne(43403),De=ne(34280),We=E.createContext(null),Ie=E.createContext({}),he=We,Je=ne(18642),Pe=ne(60499),dt=ne(77900),Ze=ne(10228),Ce=ne(26112),Te=ne(42244),_e=ne(8654),rt=["prefixCls","className","containerRef"],gt=function(Ye){var mt=Ye.prefixCls,Bt=Ye.className,Et=Ye.containerRef,Ut=(0,Te.Z)(Ye,rt),Wt=E.useContext(Ie),Ht=Wt.panel,ln=(0,_e.x1)(Ht,Et);return E.createElement("div",(0,Pe.Z)({className:xe()("".concat(mt,"-content"),Bt),role:"dialog",ref:ln},(0,Ce.Z)(Ye,{aria:!0}),{"aria-modal":"true"},Ut))},Pt=gt,ht=ne(48736);function it(Oe){return typeof Oe=="string"&&String(Number(Oe))===Oe?((0,ht.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Oe)):Oe}function nt(Oe){warning(!("wrapperClassName"in Oe),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Oe.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Fe={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function kt(Oe,Ye){var mt,Bt,Et,Ut=Oe.prefixCls,Wt=Oe.open,Ht=Oe.placement,ln=Oe.inline,qt=Oe.push,sn=Oe.forceRender,Dt=Oe.autoFocus,tn=Oe.keyboard,Vt=Oe.classNames,je=Oe.rootClassName,pt=Oe.rootStyle,Ft=Oe.zIndex,jt=Oe.className,Ne=Oe.id,ot=Oe.style,yt=Oe.motion,Mt=Oe.width,Kt=Oe.height,cn=Oe.children,Dn=Oe.mask,kn=Oe.maskClosable,un=Oe.maskMotion,bn=Oe.maskClassName,fn=Oe.maskStyle,Gt=Oe.afterOpenChange,Rt=Oe.onClose,_t=Oe.onMouseEnter,Ot=Oe.onMouseOver,an=Oe.onMouseLeave,nn=Oe.onClick,en=Oe.onKeyDown,xn=Oe.onKeyUp,Pn=Oe.styles,Cn=Oe.drawerRender,Nn=E.useRef(),An=E.useRef(),Qn=E.useRef();E.useImperativeHandle(Ye,function(){return Nn.current});var zn=function(Re){var xt=Re.keyCode,Jt=Re.shiftKey;switch(xt){case Ze.Z.TAB:{if(xt===Ze.Z.TAB){if(!Jt&&document.activeElement===Qn.current){var gn;(gn=An.current)===null||gn===void 0||gn.focus({preventScroll:!0})}else if(Jt&&document.activeElement===An.current){var On;(On=Qn.current)===null||On===void 0||On.focus({preventScroll:!0})}}break}case Ze.Z.ESC:{Rt&&tn&&(Re.stopPropagation(),Rt(Re));break}}};E.useEffect(function(){if(Wt&&Dt){var Ct;(Ct=Nn.current)===null||Ct===void 0||Ct.focus({preventScroll:!0})}},[Wt]);var Nt=E.useState(!1),Qt=(0,Ee.Z)(Nt,2),En=Qt[0],mn=Qt[1],Xe=E.useContext(he),ut;typeof qt=="boolean"?ut=qt?{}:{distance:0}:ut=qt||{};var ke=(mt=(Bt=(Et=ut)===null||Et===void 0?void 0:Et.distance)!==null&&Bt!==void 0?Bt:Xe==null?void 0:Xe.pushDistance)!==null&&mt!==void 0?mt:180,be=E.useMemo(function(){return{pushDistance:ke,push:function(){mn(!0)},pull:function(){mn(!1)}}},[ke]);E.useEffect(function(){if(Wt){var Ct;Xe==null||(Ct=Xe.push)===null||Ct===void 0||Ct.call(Xe)}else{var Re;Xe==null||(Re=Xe.pull)===null||Re===void 0||Re.call(Xe)}},[Wt]),E.useEffect(function(){return function(){var Ct;Xe==null||(Ct=Xe.pull)===null||Ct===void 0||Ct.call(Xe)}},[]);var fe=Dn&&E.createElement(dt.default,(0,Pe.Z)({key:"mask"},un,{visible:Wt}),function(Ct,Re){var xt=Ct.className,Jt=Ct.style;return E.createElement("div",{className:xe()("".concat(Ut,"-mask"),xt,Vt==null?void 0:Vt.mask,bn),style:(0,tt.Z)((0,tt.Z)((0,tt.Z)({},Jt),fn),Pn==null?void 0:Pn.mask),onClick:kn&&Wt?Rt:void 0,ref:Re})}),pe=typeof yt=="function"?yt(Ht):yt,Ve={};if(En&&ke)switch(Ht){case"top":Ve.transform="translateY(".concat(ke,"px)");break;case"bottom":Ve.transform="translateY(".concat(-ke,"px)");break;case"left":Ve.transform="translateX(".concat(ke,"px)");break;default:Ve.transform="translateX(".concat(-ke,"px)");break}Ht==="left"||Ht==="right"?Ve.width=it(Mt):Ve.height=it(Kt);var Xt={onMouseEnter:_t,onMouseOver:Ot,onMouseLeave:an,onClick:nn,onKeyDown:en,onKeyUp:xn},rn=E.createElement(dt.default,(0,Pe.Z)({key:"panel"},pe,{visible:Wt,forceRender:sn,onVisibleChanged:function(Re){Gt==null||Gt(Re)},removeOnLeave:!1,leavedClassName:"".concat(Ut,"-content-wrapper-hidden")}),function(Ct,Re){var xt=Ct.className,Jt=Ct.style,gn=E.createElement(Pt,(0,Pe.Z)({id:Ne,containerRef:Re,prefixCls:Ut,className:xe()(jt,Vt==null?void 0:Vt.content),style:(0,tt.Z)((0,tt.Z)({},ot),Pn==null?void 0:Pn.content)},(0,Ce.Z)(Oe,{aria:!0}),Xt),cn);return E.createElement("div",(0,Pe.Z)({className:xe()("".concat(Ut,"-content-wrapper"),Vt==null?void 0:Vt.wrapper,xt),style:(0,tt.Z)((0,tt.Z)((0,tt.Z)({},Ve),Jt),Pn==null?void 0:Pn.wrapper)},(0,Ce.Z)(Oe,{data:!0})),Cn?Cn(gn):gn)}),Yt=(0,tt.Z)({},pt);return Ft&&(Yt.zIndex=Ft),E.createElement(he.Provider,{value:be},E.createElement("div",{className:xe()(Ut,"".concat(Ut,"-").concat(Ht),je,(0,Je.Z)((0,Je.Z)({},"".concat(Ut,"-open"),Wt),"".concat(Ut,"-inline"),ln)),style:Yt,tabIndex:-1,ref:Nn,onKeyDown:zn},fe,E.createElement("div",{tabIndex:0,ref:An,style:Fe,"aria-hidden":"true","data-sentinel":"start"}),rn,E.createElement("div",{tabIndex:0,ref:Qn,style:Fe,"aria-hidden":"true","data-sentinel":"end"})))}var lt=E.forwardRef(kt),et=lt,St=function(Ye){var mt=Ye.open,Bt=mt===void 0?!1:mt,Et=Ye.prefixCls,Ut=Et===void 0?"rc-drawer":Et,Wt=Ye.placement,Ht=Wt===void 0?"right":Wt,ln=Ye.autoFocus,qt=ln===void 0?!0:ln,sn=Ye.keyboard,Dt=sn===void 0?!0:sn,tn=Ye.width,Vt=tn===void 0?378:tn,je=Ye.mask,pt=je===void 0?!0:je,Ft=Ye.maskClosable,jt=Ft===void 0?!0:Ft,Ne=Ye.getContainer,ot=Ye.forceRender,yt=Ye.afterOpenChange,Mt=Ye.destroyOnClose,Kt=Ye.onMouseEnter,cn=Ye.onMouseOver,Dn=Ye.onMouseLeave,kn=Ye.onClick,un=Ye.onKeyDown,bn=Ye.onKeyUp,fn=Ye.panelRef,Gt=E.useState(!1),Rt=(0,Ee.Z)(Gt,2),_t=Rt[0],Ot=Rt[1],an=E.useState(!1),nn=(0,Ee.Z)(an,2),en=nn[0],xn=nn[1];(0,De.Z)(function(){xn(!0)},[]);var Pn=en?Bt:!1,Cn=E.useRef(),Nn=E.useRef();(0,De.Z)(function(){Pn&&(Nn.current=document.activeElement)},[Pn]);var An=function(En){var mn;if(Ot(En),yt==null||yt(En),!En&&Nn.current&&!((mn=Cn.current)!==null&&mn!==void 0&&mn.contains(Nn.current))){var Xe;(Xe=Nn.current)===null||Xe===void 0||Xe.focus({preventScroll:!0})}},Qn=E.useMemo(function(){return{panel:fn}},[fn]);if(!ot&&!_t&&!Pn&&Mt)return null;var zn={onMouseEnter:Kt,onMouseOver:cn,onMouseLeave:Dn,onClick:kn,onKeyDown:un,onKeyUp:bn},Nt=(0,tt.Z)((0,tt.Z)({},Ye),{},{open:Pn,prefixCls:Ut,placement:Ht,autoFocus:qt,keyboard:Dt,width:Vt,mask:pt,maskClosable:jt,inline:Ne===!1,afterOpenChange:An,ref:Cn},zn);return E.createElement(Ie.Provider,{value:Qn},E.createElement(Be.Z,{open:Pn||ot||_t,autoDestroy:!1,getContainer:Ne,autoLock:pt&&(Pn||_t)},E.createElement(et,Nt)))},Me=St,Ke=Me,ze=ne(62487),se=ne(75030),qe=ne(86641),Le=ne(55743),Ae=ne(48755),ct=ne(91190),ye=ne(78776),ce=ne(458),It=Oe=>{var Ye,mt;const{prefixCls:Bt,title:Et,footer:Ut,extra:Wt,loading:Ht,onClose:ln,headerStyle:qt,bodyStyle:sn,footerStyle:Dt,children:tn,classNames:Vt,styles:je}=Oe,pt=(0,Ae.dj)("drawer"),Ft=E.useCallback(Mt=>E.createElement("button",{type:"button",onClick:ln,"aria-label":"Close",className:`${Bt}-close`},Mt),[ln]),[jt,Ne]=(0,ye.Z)((0,ye.w)(Oe),(0,ye.w)(pt),{closable:!0,closeIconRender:Ft}),ot=E.useMemo(()=>{var Mt,Kt;return!Et&&!jt?null:E.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Mt=pt.styles)===null||Mt===void 0?void 0:Mt.header),qt),je==null?void 0:je.header),className:xe()(`${Bt}-header`,{[`${Bt}-header-close-only`]:jt&&!Et&&!Wt},(Kt=pt.classNames)===null||Kt===void 0?void 0:Kt.header,Vt==null?void 0:Vt.header)},E.createElement("div",{className:`${Bt}-header-title`},Ne,Et&&E.createElement("div",{className:`${Bt}-title`},Et)),Wt&&E.createElement("div",{className:`${Bt}-extra`},Wt))},[jt,Ne,Wt,qt,Bt,Et]),yt=E.useMemo(()=>{var Mt,Kt;if(!Ut)return null;const cn=`${Bt}-footer`;return E.createElement("div",{className:xe()(cn,(Mt=pt.classNames)===null||Mt===void 0?void 0:Mt.footer,Vt==null?void 0:Vt.footer),style:Object.assign(Object.assign(Object.assign({},(Kt=pt.styles)===null||Kt===void 0?void 0:Kt.footer),Dt),je==null?void 0:je.footer)},Ut)},[Ut,Dt,Bt]);return E.createElement(E.Fragment,null,ot,E.createElement("div",{className:xe()(`${Bt}-body`,Vt==null?void 0:Vt.body,(Ye=pt.classNames)===null||Ye===void 0?void 0:Ye.body),style:Object.assign(Object.assign(Object.assign({},(mt=pt.styles)===null||mt===void 0?void 0:mt.body),sn),je==null?void 0:je.body)},Ht?E.createElement(ce.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${Bt}-body-skeleton`}):tn),yt)},bt=ne(36237),ge=ne(63356),He=ne(16931),Ge=ne(51636);const Tt=Oe=>{const Ye="100%";return{left:`translateX(-${Ye})`,right:`translateX(${Ye})`,top:`translateY(-${Ye})`,bottom:`translateY(${Ye})`}[Oe]},wt=(Oe,Ye)=>({"&-enter, &-appear":Object.assign(Object.assign({},Oe),{"&-active":Ye}),"&-leave":Object.assign(Object.assign({},Ye),{"&-active":Oe})}),Lt=(Oe,Ye)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Ye}`}}},wt({opacity:Oe},{opacity:1})),$e=(Oe,Ye)=>[Lt(.7,Ye),wt({transform:Tt(Oe)},{transform:"none"})];var st=Oe=>{const{componentCls:Ye,motionDurationSlow:mt}=Oe;return{[Ye]:{[`${Ye}-mask-motion`]:Lt(0,mt),[`${Ye}-panel-motion`]:["left","right","top","bottom"].reduce((Bt,Et)=>Object.assign(Object.assign({},Bt),{[`&-${Et}`]:$e(Et,mt)}),{})}}};const ae=Oe=>{const{borderRadiusSM:Ye,componentCls:mt,zIndexPopup:Bt,colorBgMask:Et,colorBgElevated:Ut,motionDurationSlow:Wt,motionDurationMid:Ht,paddingXS:ln,padding:qt,paddingLG:sn,fontSizeLG:Dt,lineHeightLG:tn,lineWidth:Vt,lineType:je,colorSplit:pt,marginXS:Ft,colorIcon:jt,colorIconHover:Ne,colorBgTextHover:ot,colorBgTextActive:yt,colorText:Mt,fontWeightStrong:Kt,footerPaddingBlock:cn,footerPaddingInline:Dn,calc:kn}=Oe,un=`${mt}-content-wrapper`;return{[mt]:{position:"fixed",inset:0,zIndex:Bt,pointerEvents:"none",color:Mt,"&-pure":{position:"relative",background:Ut,display:"flex",flexDirection:"column",[`&${mt}-left`]:{boxShadow:Oe.boxShadowDrawerLeft},[`&${mt}-right`]:{boxShadow:Oe.boxShadowDrawerRight},[`&${mt}-top`]:{boxShadow:Oe.boxShadowDrawerUp},[`&${mt}-bottom`]:{boxShadow:Oe.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${mt}-mask`]:{position:"absolute",inset:0,zIndex:Bt,background:Et,pointerEvents:"auto"},[un]:{position:"absolute",zIndex:Bt,maxWidth:"100vw",transition:`all ${Wt}`,"&-hidden":{display:"none"}},[`&-left > ${un}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Oe.boxShadowDrawerLeft},[`&-right > ${un}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Oe.boxShadowDrawerRight},[`&-top > ${un}`]:{top:0,insetInline:0,boxShadow:Oe.boxShadowDrawerUp},[`&-bottom > ${un}`]:{bottom:0,insetInline:0,boxShadow:Oe.boxShadowDrawerDown},[`${mt}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:Ut,pointerEvents:"auto"},[`${mt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,bt.unit)(qt)} ${(0,bt.unit)(sn)}`,fontSize:Dt,lineHeight:tn,borderBottom:`${(0,bt.unit)(Vt)} ${je} ${pt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${mt}-extra`]:{flex:"none"},[`${mt}-close`]:Object.assign({display:"inline-flex",width:kn(Dt).add(ln).equal(),height:kn(Dt).add(ln).equal(),borderRadius:Ye,justifyContent:"center",alignItems:"center",marginInlineEnd:Ft,color:jt,fontWeight:Kt,fontSize:Dt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Ht}`,textRendering:"auto","&:hover":{color:Ne,backgroundColor:ot,textDecoration:"none"},"&:active":{backgroundColor:yt}},(0,ge.Qy)(Oe)),[`${mt}-title`]:{flex:1,margin:0,fontWeight:Oe.fontWeightStrong,fontSize:Dt,lineHeight:tn},[`${mt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:sn,overflow:"auto",[`${mt}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${mt}-footer`]:{flexShrink:0,padding:`${(0,bt.unit)(cn)} ${(0,bt.unit)(Dn)}`,borderTop:`${(0,bt.unit)(Vt)} ${je} ${pt}`},"&-rtl":{direction:"rtl"}}}},te=Oe=>({zIndexPopup:Oe.zIndexPopupBase,footerPaddingBlock:Oe.paddingXS,footerPaddingInline:Oe.padding});var ee=(0,He.I$)("Drawer",Oe=>{const Ye=(0,Ge.mergeToken)(Oe,{});return[ae(Ye),st(Ye)]},te),oe=function(Oe,Ye){var mt={};for(var Bt in Oe)Object.prototype.hasOwnProperty.call(Oe,Bt)&&Ye.indexOf(Bt)<0&&(mt[Bt]=Oe[Bt]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,Bt=Object.getOwnPropertySymbols(Oe);Et<Bt.length;Et++)Ye.indexOf(Bt[Et])<0&&Object.prototype.propertyIsEnumerable.call(Oe,Bt[Et])&&(mt[Bt[Et]]=Oe[Bt[Et]]);return mt};const ue=null,re={distance:180},ve=Oe=>{var Ye;const{rootClassName:mt,width:Bt,height:Et,size:Ut="default",mask:Wt=!0,push:Ht=re,open:ln,afterOpenChange:qt,onClose:sn,prefixCls:Dt,getContainer:tn,style:Vt,className:je,visible:pt,afterVisibleChange:Ft,maskStyle:jt,drawerStyle:Ne,contentWrapperStyle:ot}=Oe,yt=oe(Oe,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:Mt,getPrefixCls:Kt,direction:cn,className:Dn,style:kn,classNames:un,styles:bn}=(0,Ae.dj)("drawer"),fn=Kt("drawer",Dt),[Gt,Rt,_t]=ee(fn),Ot=tn===void 0&&Mt?()=>Mt(document.body):tn,an=xe()({"no-mask":!Wt,[`${fn}-rtl`]:cn==="rtl"},mt,Rt,_t),nn=E.useMemo(()=>Bt!=null?Bt:Ut==="large"?736:378,[Bt,Ut]),en=E.useMemo(()=>Et!=null?Et:Ut==="large"?736:378,[Et,Ut]),xn={motionName:(0,qe.m)(fn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Pn=Nt=>({motionName:(0,qe.m)(fn,`panel-motion-${Nt}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Cn=(0,ct.H)(),[Nn,An]=(0,se.Cn)("Drawer",yt.zIndex),{classNames:Qn={},styles:zn={}}=yt;return Gt(E.createElement(ze.Z,{form:!0,space:!0},E.createElement(Le.Z.Provider,{value:An},E.createElement(Ke,Object.assign({prefixCls:fn,onClose:sn,maskMotion:xn,motion:Pn},yt,{classNames:{mask:xe()(Qn.mask,un.mask),content:xe()(Qn.content,un.content),wrapper:xe()(Qn.wrapper,un.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},zn.mask),jt),bn.mask),content:Object.assign(Object.assign(Object.assign({},zn.content),Ne),bn.content),wrapper:Object.assign(Object.assign(Object.assign({},zn.wrapper),ot),bn.wrapper)},open:ln!=null?ln:pt,mask:Wt,push:Ht,width:nn,height:en,style:Object.assign(Object.assign({},kn),Vt),className:xe()(Dn,je),rootClassName:an,getContainer:Ot,afterOpenChange:qt!=null?qt:Ft,panelRef:Cn,zIndex:Nn}),E.createElement(It,Object.assign({prefixCls:fn},yt,{onClose:sn}))))))},we=Oe=>{const{prefixCls:Ye,style:mt,className:Bt,placement:Et="right"}=Oe,Ut=oe(Oe,["prefixCls","style","className","placement"]),{getPrefixCls:Wt}=E.useContext(Ae.E_),Ht=Wt("drawer",Ye),[ln,qt,sn]=ee(Ht),Dt=xe()(Ht,`${Ht}-pure`,`${Ht}-${Et}`,qt,sn,Bt);return ln(E.createElement("div",{className:Dt,style:mt},E.createElement(It,Object.assign({prefixCls:Ht},Ut))))};ve._InternalPanelDoNotUseOrYouWillBeFired=we;var ft=ve},19563:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return bt}});var E=ne(59301),Qe=ne(33853),xe=ne(38819),tt=ne(92310),Ee=ne.n(tt),Be=ne(96478),De=ne(6089),We=ne(18929),Ie=ne(2738),he=ne(75030),Pe=ge=>typeof ge!="object"&&typeof ge!="function"||ge===null,dt=ne(52838),Ze=ne(45915),Ce=ne(22703),Te=ne(32383),_e=ne(55743),rt=ne(48755),gt=ne(83397),Pt=ne(93041),ht=ne(78857),it=ne(57700),nt=ne(36237),Fe=ne(63356),kt=ne(46e3),lt=ne(93873),et=ne(34925),St=ne(37645),Me=ne(36305),Ke=ne(16931),ze=ne(51636),qe=ge=>{const{componentCls:He,menuCls:Ge,colorError:Tt,colorTextLightSolid:wt}=ge,Lt=`${Ge}-item`;return{[`${He}, ${He}-menu-submenu`]:{[`${Ge} ${Lt}`]:{[`&${Lt}-danger:not(${Lt}-disabled)`]:{color:Tt,"&:hover":{color:wt,backgroundColor:Tt}}}}}};const Le=ge=>{const{componentCls:He,menuCls:Ge,zIndexPopup:Tt,dropdownArrowDistance:wt,sizePopupArrow:Lt,antCls:$e,iconCls:At,motionDurationMid:st,paddingBlock:ae,fontSize:te,dropdownEdgeChildPadding:ee,colorTextDisabled:oe,fontSizeIcon:ue,controlPaddingHorizontal:re,colorBgElevated:ve}=ge;return[{[He]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Tt,display:"block","&::before":{position:"absolute",insetBlock:ge.calc(Lt).div(2).sub(wt).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${$e}-btn`]:{[`& > ${At}-down, & > ${$e}-btn-icon > ${At}-down`]:{fontSize:ue}},[`${He}-wrap`]:{position:"relative",[`${$e}-btn > ${At}-down`]:{fontSize:ue},[`${At}-down::before`]:{transition:`transform ${st}`}},[`${He}-wrap-open`]:{[`${At}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${$e}-slide-down-enter${$e}-slide-down-enter-active${He}-placement-bottomLeft,
&${$e}-slide-down-appear${$e}-slide-down-appear-active${He}-placement-bottomLeft,
&${$e}-slide-down-enter${$e}-slide-down-enter-active${He}-placement-bottom,
&${$e}-slide-down-appear${$e}-slide-down-appear-active${He}-placement-bottom,
&${$e}-slide-down-enter${$e}-slide-down-enter-active${He}-placement-bottomRight,
&${$e}-slide-down-appear${$e}-slide-down-appear-active${He}-placement-bottomRight`]:{animationName:kt.fJ},[`&${$e}-slide-up-enter${$e}-slide-up-enter-active${He}-placement-topLeft,
&${$e}-slide-up-appear${$e}-slide-up-appear-active${He}-placement-topLeft,
&${$e}-slide-up-enter${$e}-slide-up-enter-active${He}-placement-top,
&${$e}-slide-up-appear${$e}-slide-up-appear-active${He}-placement-top,
&${$e}-slide-up-enter${$e}-slide-up-enter-active${He}-placement-topRight,
&${$e}-slide-up-appear${$e}-slide-up-appear-active${He}-placement-topRight`]:{animationName:kt.Qt},[`&${$e}-slide-down-leave${$e}-slide-down-leave-active${He}-placement-bottomLeft,
&${$e}-slide-down-leave${$e}-slide-down-leave-active${He}-placement-bottom,
&${$e}-slide-down-leave${$e}-slide-down-leave-active${He}-placement-bottomRight`]:{animationName:kt.Uw},[`&${$e}-slide-up-leave${$e}-slide-up-leave-active${He}-placement-topLeft,
&${$e}-slide-up-leave${$e}-slide-up-leave-active${He}-placement-top,
&${$e}-slide-up-leave${$e}-slide-up-leave-active${He}-placement-topRight`]:{animationName:kt.ly}}},(0,St.ZP)(ge,ve,{arrowPlacement:{top:!0,bottom:!0}}),{[`${He} ${Ge}`]:{position:"relative",margin:0},[`${Ge}-submenu-popup`]:{position:"absolute",zIndex:Tt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${He}, ${He}-menu-submenu`]:Object.assign(Object.assign({},(0,Fe.Wf)(ge)),{[Ge]:Object.assign(Object.assign({padding:ee,listStyleType:"none",backgroundColor:ve,backgroundClip:"padding-box",borderRadius:ge.borderRadiusLG,outline:"none",boxShadow:ge.boxShadowSecondary},(0,Fe.Qy)(ge)),{"&:empty":{padding:0,boxShadow:"none"},[`${Ge}-item-group-title`]:{padding:`${(0,nt.unit)(ae)} ${(0,nt.unit)(re)}`,color:ge.colorTextDescription,transition:`all ${st}`},[`${Ge}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Ge}-item-icon`]:{minWidth:te,marginInlineEnd:ge.marginXS,fontSize:ge.fontSizeSM},[`${Ge}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${st}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${Ge}-item-extra`]:{paddingInlineStart:ge.padding,marginInlineStart:"auto",fontSize:ge.fontSizeSM,color:ge.colorTextDescription}},[`${Ge}-item, ${Ge}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,nt.unit)(ae)} ${(0,nt.unit)(re)}`,color:ge.colorText,fontWeight:"normal",fontSize:te,lineHeight:ge.lineHeight,cursor:"pointer",transition:`all ${st}`,borderRadius:ge.borderRadiusSM,"&:hover, &-active":{backgroundColor:ge.controlItemBgHover}},(0,Fe.Qy)(ge)),{"&-selected":{color:ge.colorPrimary,backgroundColor:ge.controlItemBgActive,"&:hover, &-active":{backgroundColor:ge.controlItemBgActiveHover}},"&-disabled":{color:oe,cursor:"not-allowed","&:hover":{color:oe,backgroundColor:ve,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,nt.unit)(ge.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:ge.colorSplit},[`${He}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ge.paddingXS,[`${He}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ge.colorTextDescription,fontSize:ue,fontStyle:"normal"}}}),[`${Ge}-item-group-list`]:{margin:`0 ${(0,nt.unit)(ge.marginXS)}`,padding:0,listStyle:"none"},[`${Ge}-submenu-title`]:{paddingInlineEnd:ge.calc(re).add(ge.fontSizeSM).equal()},[`${Ge}-submenu-vertical`]:{position:"relative"},[`${Ge}-submenu${Ge}-submenu-disabled ${He}-menu-submenu-title`]:{[`&, ${He}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:ve,cursor:"not-allowed"}},[`${Ge}-submenu-selected ${He}-menu-submenu-title`]:{color:ge.colorPrimary}})})},[(0,kt.oN)(ge,"slide-up"),(0,kt.oN)(ge,"slide-down"),(0,lt.Fm)(ge,"move-up"),(0,lt.Fm)(ge,"move-down"),(0,et._y)(ge,"zoom-big")]]},Ae=ge=>Object.assign(Object.assign({zIndexPopup:ge.zIndexPopupBase+50,paddingBlock:(ge.controlHeight-ge.fontSize*ge.lineHeight)/2},(0,St.wZ)({contentRadius:ge.borderRadiusLG,limitVerticalRadius:!0})),(0,Me.w)(ge));var ct=(0,Ke.I$)("Dropdown",ge=>{const{marginXXS:He,sizePopupArrow:Ge,paddingXXS:Tt,componentCls:wt}=ge,Lt=(0,ze.mergeToken)(ge,{menuCls:`${wt}-menu`,dropdownArrowDistance:ge.calc(Ge).div(2).add(He).equal(),dropdownEdgeChildPadding:Tt});return[Le(Lt),qe(Lt)]},Ae,{resetStyle:!1});const ye=null,ce=ge=>{var He;const{menu:Ge,arrow:Tt,prefixCls:wt,children:Lt,trigger:$e,disabled:At,dropdownRender:st,getPopupContainer:ae,overlayClassName:te,rootClassName:ee,overlayStyle:oe,open:ue,onOpenChange:re,visible:ve,onVisibleChange:we,mouseEnterDelay:ft=.15,mouseLeaveDelay:Oe=.1,autoAdjustOverflow:Ye=!0,placement:mt="",overlay:Bt,transitionName:Et}=ge,{getPopupContainer:Ut,getPrefixCls:Wt,direction:Ht,dropdown:ln}=E.useContext(rt.E_),qt=(0,Te.ln)("Dropdown"),sn=E.useMemo(()=>{const Ot=Wt();return Et!==void 0?Et:mt.includes("top")?`${Ot}-slide-down`:`${Ot}-slide-up`},[Wt,mt,Et]),Dt=E.useMemo(()=>mt?mt.includes("Center")?mt.slice(0,mt.indexOf("Center")):mt:Ht==="rtl"?"bottomRight":"bottomLeft",[mt,Ht]),tn=Wt("dropdown",wt),Vt=(0,gt.Z)(tn),[je,pt,Ft]=ct(tn,Vt),[,jt]=(0,it.ZP)(),Ne=E.Children.only(Pe(Lt)?E.createElement("span",null,Lt):Lt),ot=(0,Ce.Tm)(Ne,{className:Ee()(`${tn}-trigger`,{[`${tn}-rtl`]:Ht==="rtl"},Ne.props.className),disabled:(He=Ne.props.disabled)!==null&&He!==void 0?He:At}),yt=At?[]:$e,Mt=!!(yt!=null&&yt.includes("contextMenu")),[Kt,cn]=(0,We.Z)(!1,{value:ue!=null?ue:ve}),Dn=(0,De.Z)(Ot=>{re==null||re(Ot,{source:"trigger"}),we==null||we(Ot),cn(Ot)}),kn=Ee()(te,ee,pt,Ft,Vt,ln==null?void 0:ln.className,{[`${tn}-rtl`]:Ht==="rtl"}),un=(0,dt.Z)({arrowPointAtCenter:typeof Tt=="object"&&Tt.pointAtCenter,autoAdjustOverflow:Ye,offset:jt.marginXXS,arrowWidth:Tt?jt.sizePopupArrow:0,borderRadius:jt.borderRadius}),bn=E.useCallback(()=>{Ge!=null&&Ge.selectable&&(Ge!=null&&Ge.multiple)||(re==null||re(!1,{source:"menu"}),cn(!1))},[Ge==null?void 0:Ge.selectable,Ge==null?void 0:Ge.multiple]),fn=()=>{let Ot;return Ge!=null&&Ge.items?Ot=E.createElement(Pt.default,Object.assign({},Ge)):typeof Bt=="function"?Ot=Bt():Ot=Bt,st&&(Ot=st(Ot)),Ot=E.Children.only(typeof Ot=="string"?E.createElement("span",null,Ot):Ot),E.createElement(ht.J,{prefixCls:`${tn}-menu`,rootClassName:Ee()(Ft,Vt),expandIcon:E.createElement("span",{className:`${tn}-menu-submenu-arrow`},Ht==="rtl"?E.createElement(Qe.Z,{className:`${tn}-menu-submenu-arrow-icon`}):E.createElement(xe.Z,{className:`${tn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:bn,validator:an=>{let{mode:nn}=an}},Ot)},[Gt,Rt]=(0,he.Cn)("Dropdown",oe==null?void 0:oe.zIndex);let _t=E.createElement(Be.Z,Object.assign({alignPoint:Mt},(0,Ie.Z)(ge,["rootClassName"]),{mouseEnterDelay:ft,mouseLeaveDelay:Oe,visible:Kt,builtinPlacements:un,arrow:!!Tt,overlayClassName:kn,prefixCls:tn,getPopupContainer:ae||Ut,transitionName:sn,trigger:yt,overlay:fn,placement:Dt,onVisibleChange:Dn,overlayStyle:Object.assign(Object.assign(Object.assign({},ln==null?void 0:ln.style),oe),{zIndex:Gt})}),ot);return Gt&&(_t=E.createElement(_e.Z.Provider,{value:Rt},_t)),je(_t)},Ue=(0,Ze.Z)(ce,"align",void 0,"dropdown",ge=>ge),It=ge=>E.createElement(Ue,Object.assign({},ge),E.createElement("span",null));ce._InternalPanelDoNotUseOrYouWillBeFired=It;var bt=ce},75727:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return Ze}});var E=ne(19563),Qe=ne(59301),xe=ne(18785),tt=ne(92310),Ee=ne.n(tt),Be=ne(7939),De=ne(48755),We=ne(44104),Ie=ne(70045),he=function(Ce,Te){var _e={};for(var rt in Ce)Object.prototype.hasOwnProperty.call(Ce,rt)&&Te.indexOf(rt)<0&&(_e[rt]=Ce[rt]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,rt=Object.getOwnPropertySymbols(Ce);gt<rt.length;gt++)Te.indexOf(rt[gt])<0&&Object.prototype.propertyIsEnumerable.call(Ce,rt[gt])&&(_e[rt[gt]]=Ce[rt[gt]]);return _e};const Je=Ce=>{const{getPopupContainer:Te,getPrefixCls:_e,direction:rt}=Qe.useContext(De.E_),{prefixCls:gt,type:Pt="default",danger:ht,disabled:it,loading:nt,onClick:Fe,htmlType:kt,children:lt,className:et,menu:St,arrow:Me,autoFocus:Ke,overlay:ze,trigger:se,align:qe,open:Le,onOpenChange:Ae,placement:ct,getPopupContainer:ye,href:ce,icon:Ue=Qe.createElement(xe.Z,null),title:It,buttonsRender:bt=ft=>ft,mouseEnterDelay:ge,mouseLeaveDelay:He,overlayClassName:Ge,overlayStyle:Tt,destroyPopupOnHide:wt,dropdownRender:Lt}=Ce,$e=he(Ce,["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"]),At=_e("dropdown",gt),st=`${At}-button`,ae={menu:St,arrow:Me,autoFocus:Ke,align:qe,disabled:it,trigger:it?[]:se,onOpenChange:Ae,getPopupContainer:ye||Te,mouseEnterDelay:ge,mouseLeaveDelay:He,overlayClassName:Ge,overlayStyle:Tt,destroyPopupOnHide:wt,dropdownRender:Lt},{compactSize:te,compactItemClassnames:ee}=(0,Ie.ri)(At,rt),oe=Ee()(st,ee,et);"overlay"in Ce&&(ae.overlay=ze),"open"in Ce&&(ae.open=Le),"placement"in Ce?ae.placement=ct:ae.placement=rt==="rtl"?"bottomLeft":"bottomRight";const ue=Qe.createElement(Be.ZP,{type:Pt,danger:ht,disabled:it,loading:nt,onClick:Fe,htmlType:kt,href:ce,title:It},lt),re=Qe.createElement(Be.ZP,{type:Pt,danger:ht,icon:Ue}),[ve,we]=bt([ue,re]);return Qe.createElement(We.Z.Compact,Object.assign({className:oe,size:te,block:!0},$e),ve,Qe.createElement(E.Z,Object.assign({},ae),we))};Je.__ANT_BUTTON=!0;var Pe=Je;const dt=E.Z;dt.Button=Pe;var Ze=dt},584:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return Pt}});var E=ne(59301),Qe=ne(92310),xe=ne.n(Qe),tt=ne(9017),Ee=ne(17835),Be=ne(57700),We=()=>{const[,ht]=(0,Be.ZP)(),[it]=(0,tt.Z)("Empty"),Fe=new Ee.FastColor(ht.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return E.createElement("svg",{style:Fe,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},E.createElement("title",null,(it==null?void 0:it.description)||"Empty"),E.createElement("g",{fill:"none",fillRule:"evenodd"},E.createElement("g",{transform:"translate(24 31.67)"},E.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),E.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),E.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),E.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),E.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),E.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),E.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},E.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),E.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},he=()=>{const[,ht]=(0,Be.ZP)(),[it]=(0,tt.Z)("Empty"),{colorFill:nt,colorFillTertiary:Fe,colorFillQuaternary:kt,colorBgContainer:lt}=ht,{borderColor:et,shadowColor:St,contentColor:Me}=(0,E.useMemo)(()=>({borderColor:new Ee.FastColor(nt).onBackground(lt).toHexString(),shadowColor:new Ee.FastColor(Fe).onBackground(lt).toHexString(),contentColor:new Ee.FastColor(kt).onBackground(lt).toHexString()}),[nt,Fe,kt,lt]);return E.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},E.createElement("title",null,(it==null?void 0:it.description)||"Empty"),E.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},E.createElement("ellipse",{fill:St,cx:"32",cy:"33",rx:"32",ry:"7"}),E.createElement("g",{fillRule:"nonzero",stroke:et},E.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),E.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Me}))))},Je=ne(16931),Pe=ne(51636);const dt=ht=>{const{componentCls:it,margin:nt,marginXS:Fe,marginXL:kt,fontSize:lt,lineHeight:et}=ht;return{[it]:{marginInline:Fe,fontSize:lt,lineHeight:et,textAlign:"center",[`${it}-image`]:{height:ht.emptyImgHeight,marginBottom:Fe,opacity:ht.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${it}-description`]:{color:ht.colorTextDescription},[`${it}-footer`]:{marginTop:nt},"&-normal":{marginBlock:kt,color:ht.colorTextDescription,[`${it}-description`]:{color:ht.colorTextDescription},[`${it}-image`]:{height:ht.emptyImgHeightMD}},"&-small":{marginBlock:Fe,color:ht.colorTextDescription,[`${it}-image`]:{height:ht.emptyImgHeightSM}}}}};var Ze=(0,Je.I$)("Empty",ht=>{const{componentCls:it,controlHeightLG:nt,calc:Fe}=ht,kt=(0,Pe.mergeToken)(ht,{emptyImgCls:`${it}-img`,emptyImgHeight:Fe(nt).mul(2.5).equal(),emptyImgHeightMD:nt,emptyImgHeightSM:Fe(nt).mul(.875).equal()});return[dt(kt)]}),Ce=ne(48755),Te=function(ht,it){var nt={};for(var Fe in ht)Object.prototype.hasOwnProperty.call(ht,Fe)&&it.indexOf(Fe)<0&&(nt[Fe]=ht[Fe]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,Fe=Object.getOwnPropertySymbols(ht);kt<Fe.length;kt++)it.indexOf(Fe[kt])<0&&Object.prototype.propertyIsEnumerable.call(ht,Fe[kt])&&(nt[Fe[kt]]=ht[Fe[kt]]);return nt};const _e=E.createElement(We,null),rt=E.createElement(he,null),gt=ht=>{const{className:it,rootClassName:nt,prefixCls:Fe,image:kt=_e,description:lt,children:et,imageStyle:St,style:Me,classNames:Ke,styles:ze}=ht,se=Te(ht,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:qe,direction:Le,className:Ae,style:ct,classNames:ye,styles:ce}=(0,Ce.dj)("empty"),Ue=qe("empty",Fe),[It,bt,ge]=Ze(Ue),[He]=(0,tt.Z)("Empty"),Ge=typeof lt!="undefined"?lt:He==null?void 0:He.description,Tt=typeof Ge=="string"?Ge:"empty";let wt=null;return typeof kt=="string"?wt=E.createElement("img",{alt:Tt,src:kt}):wt=kt,It(E.createElement("div",Object.assign({className:xe()(bt,ge,Ue,Ae,{[`${Ue}-normal`]:kt===rt,[`${Ue}-rtl`]:Le==="rtl"},it,nt,ye.root,Ke==null?void 0:Ke.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},ce.root),ct),ze==null?void 0:ze.root),Me)},se),E.createElement("div",{className:xe()(`${Ue}-image`,ye.image,Ke==null?void 0:Ke.image),style:Object.assign(Object.assign(Object.assign({},St),ce.image),ze==null?void 0:ze.image)},wt),Ge&&E.createElement("div",{className:xe()(`${Ue}-description`,ye.description,Ke==null?void 0:Ke.description),style:Object.assign(Object.assign({},ce.description),ze==null?void 0:ze.description)},Ge),et&&E.createElement("div",{className:xe()(`${Ue}-footer`,ye.footer,Ke==null?void 0:Ke.footer),style:Object.assign(Object.assign({},ce.footer),ze==null?void 0:ze.footer)},et)))};gt.PRESENTED_IMAGE_DEFAULT=_e,gt.PRESENTED_IMAGE_SIMPLE=rt;var Pt=gt},28284:function(on,$t,ne){"use strict";ne.d($t,{default:function(){return ut}});var E=ne(56553),Qe=ne(77654),xe=ne(59301),tt=ne(92310),Ee=ne.n(tt),Be=ne(77900),De=ne(86641),We=ne(83397);function Ie(ke){const[be,fe]=xe.useState(ke);return xe.useEffect(()=>{const pe=setTimeout(()=>{fe(ke)},ke.length?0:10);return()=>{clearTimeout(pe)}},[ke]),be}var he=ne(36237),Je=ne(63356),Pe=ne(34925),dt=ne(34961),Ze=ne(51636),Ce=ne(16931),_e=ke=>{const{componentCls:be}=ke,fe=`${be}-show-help`,pe=`${be}-show-help-item`;return{[fe]:{transition:`opacity ${ke.motionDurationFast} ${ke.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[pe]:{overflow:"hidden",transition:`height ${ke.motionDurationFast} ${ke.motionEaseInOut},
opacity ${ke.motionDurationFast} ${ke.motionEaseInOut},
transform ${ke.motionDurationFast} ${ke.motionEaseInOut} !important`,[`&${pe}-appear, &${pe}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${pe}-leave-active`]:{transform:"translateY(-5px)"}}}}};const rt=ke=>({legend:{display:"block",width:"100%",marginBottom:ke.marginLG,padding:0,color:ke.colorTextDescription,fontSize:ke.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,he.unit)(ke.lineWidth)} ${ke.lineType} ${ke.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${(0,he.unit)(ke.controlOutlineWidth)} ${ke.controlOutline}`},output:{display:"block",paddingTop:15,color:ke.colorText,fontSize:ke.fontSize,lineHeight:ke.lineHeight}}),gt=(ke,be)=>{const{formItemCls:fe}=ke;return{[fe]:{[`${fe}-label > label`]:{height:be},[`${fe}-control-input`]:{minHeight:be}}}},Pt=ke=>{const{componentCls:be}=ke;return{[ke.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Je.Wf)(ke)),rt(ke)),{[`${be}-text`]:{display:"inline-block",paddingInlineEnd:ke.paddingSM},"&-small":Object.assign({},gt(ke,ke.controlHeightSM)),"&-large":Object.assign({},gt(ke,ke.controlHeightLG))})}},ht=ke=>{const{formItemCls:be,iconCls:fe,rootPrefixCls:pe,antCls:Ve,labelRequiredMarkColor:Xt,labelColor:rn,labelFontSize:Yt,labelHeight:Ct,labelColonMarginInlineStart:Re,labelColonMarginInlineEnd:xt,itemMarginBottom:Jt}=ke;return{[be]:Object.assign(Object.assign({},(0,Je.Wf)(ke)),{marginBottom:Jt,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden${Ve}-row`]:{display:"none"},"&-has-warning":{[`${be}-split`]:{color:ke.colorError}},"&-has-error":{[`${be}-split`]:{color:ke.colorWarning}},[`${be}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:ke.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Ct,color:rn,fontSize:Yt,[`> ${fe}`]:{fontSize:ke.fontSize,verticalAlign:"top"},[`&${be}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:ke.marginXXS,color:Xt,fontSize:ke.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${be}-required-mark-hidden, &${be}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${be}-optional`]:{display:"inline-block",marginInlineStart:ke.marginXXS,color:ke.colorTextDescription,[`&${be}-required-mark-hidden`]:{display:"none"}},[`${be}-tooltip`]:{color:ke.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:ke.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Re,marginInlineEnd:xt},[`&${be}-no-colon::after`]:{content:'"\\a0"'}}},[`${be}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${pe}-col-'"]):not([class*="' ${pe}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:ke.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[be]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:ke.colorTextDescription,fontSize:ke.fontSize,lineHeight:ke.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:ke.controlHeightSM,transition:`color ${ke.motionDurationMid} ${ke.motionEaseOut}`},"&-explain":{"&-error":{color:ke.colorError},"&-warning":{color:ke.colorWarning}}},[`&-with-help ${be}-explain`]:{height:"auto",opacity:1},[`${be}-feedback-icon`]:{fontSize:ke.fontSize,textAlign:"center",visibility:"visible",animationName:Pe.kr,animationDuration:ke.motionDurationMid,animationTimingFunction:ke.motionEaseOutBack,pointerEvents:"none","&-success":{color:ke.colorSuccess},"&-error":{color:ke.colorError},"&-warning":{color:ke.colorWarning},"&-validating":{color:ke.colorPrimary}}})}},it=(ke,be)=>{const{formItemCls:fe}=ke;return{[`${be}-horizontal`]:{[`${fe}-label`]:{flexGrow:0},[`${fe}-control`]:{flex:"1 1 0",minWidth:0},[`${fe}-label[class$='-24'], ${fe}-label[class*='-24 ']`]:{[`& + ${fe}-control`]:{minWidth:"unset"}}}}},nt=ke=>{const{componentCls:be,formItemCls:fe,inlineItemMarginBottom:pe}=ke;return{[`${be}-inline`]:{display:"flex",flexWrap:"wrap",[fe]:{flex:"none",marginInlineEnd:ke.margin,marginBottom:pe,"&-row":{flexWrap:"nowrap"},[`> ${fe}-label,
> ${fe}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${fe}-label`]:{flex:"none"},[`${be}-text`]:{display:"inline-block"},[`${fe}-has-feedback`]:{display:"inline-block"}}}}},Fe=ke=>({padding:ke.verticalLabelPadding,margin:ke.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),kt=ke=>{const{componentCls:be,formItemCls:fe,rootPrefixCls:pe}=ke;return{[`${fe} ${fe}-label`]:Fe(ke),[`${be}:not(${be}-inline)`]:{[fe]:{flexWrap:"wrap",[`${fe}-label, ${fe}-control`]:{[`&:not([class*=" ${pe}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},lt=ke=>{const{componentCls:be,formItemCls:fe,antCls:pe}=ke;return{[`${be}-vertical`]:{[`${fe}:not(${fe}-horizontal)`]:{[`${fe}-row`]:{flexDirection:"column"},[`${fe}-label > label`]:{height:"auto"},[`${fe}-control`]:{width:"100%"},[`${fe}-label,
${pe}-col-24${fe}-label,
${pe}-col-xl-24${fe}-label`]:Fe(ke)}},[`@media (max-width: ${(0,he.unit)(ke.screenXSMax)})`]:[kt(ke),{[be]:{[`${fe}:not(${fe}-horizontal)`]:{[`${pe}-col-xs-24${fe}-label`]:Fe(ke)}}}],[`@media (max-width: ${(0,he.unit)(ke.screenSMMax)})`]:{[be]:{[`${fe}:not(${fe}-horizontal)`]:{[`${pe}-col-sm-24${fe}-label`]:Fe(ke)}}},[`@media (max-width: ${(0,he.unit)(ke.screenMDMax)})`]:{[be]:{[`${fe}:not(${fe}-horizontal)`]:{[`${pe}-col-md-24${fe}-label`]:Fe(ke)}}},[`@media (max-width: ${(0,he.unit)(ke.screenLGMax)})`]:{[be]:{[`${fe}:not(${fe}-horizontal)`]:{[`${pe}-col-lg-24${fe}-label`]:Fe(ke)}}}}},et=ke=>{const{formItemCls:be,antCls:fe}=ke;return{[`${be}-vertical`]:{[`${be}-row`]:{flexDirection:"column"},[`${be}-label > label`]:{height:"auto"},[`${be}-control`]:{width:"100%"}},[`${be}-vertical ${be}-label,
${fe}-col-24${be}-label,
${fe}-col-xl-24${be}-label`]:Fe(ke),[`@media (max-width: ${(0,he.unit)(ke.screenXSMax)})`]:[kt(ke),{[be]:{[`${fe}-col-xs-24${be}-label`]:Fe(ke)}}],[`@media (max-width: ${(0,he.unit)(ke.screenSMMax)})`]:{[be]:{[`${fe}-col-sm-24${be}-label`]:Fe(ke)}},[`@media (max-width: ${(0,he.unit)(ke.screenMDMax)})`]:{[be]:{[`${fe}-col-md-24${be}-label`]:Fe(ke)}},[`@media (max-width: ${(0,he.unit)(ke.screenLGMax)})`]:{[be]:{[`${fe}-col-lg-24${be}-label`]:Fe(ke)}}}},St=ke=>({labelRequiredMarkColor:ke.colorError,labelColor:ke.colorTextHeading,labelFontSize:ke.fontSize,labelHeight:ke.controlHeight,labelColonMarginInlineStart:ke.marginXXS/2,labelColonMarginInlineEnd:ke.marginXS,itemMarginBottom:ke.marginLG,verticalLabelPadding:`0 0 ${ke.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Me=(ke,be)=>(0,Ze.mergeToken)(ke,{formItemCls:`${ke.componentCls}-item`,rootPrefixCls:be});var Ke=(0,Ce.I$)("Form",(ke,be)=>{let{rootPrefixCls:fe}=be;const pe=Me(ke,fe);return[Pt(pe),ht(pe),_e(pe),it(pe,pe.componentCls),it(pe,pe.formItemCls),nt(pe),lt(pe),et(pe),(0,dt.Z)(pe),Pe.kr]},St,{order:-1e3});const ze=[];function se(ke,be,fe){let pe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof ke=="string"?ke:`${be}-${pe}`,error:ke,errorStatus:fe}}var Le=ke=>{let{help:be,helpStatus:fe,errors:pe=ze,warnings:Ve=ze,className:Xt,fieldId:rn,onVisibleChanged:Yt}=ke;const{prefixCls:Ct}=xe.useContext(E.Rk),Re=`${Ct}-item-explain`,xt=(0,We.Z)(Ct),[Jt,gn,On]=Ke(Ct,xt),Sn=xe.useMemo(()=>(0,De.Z)(Ct),[Ct]),Fn=Ie(pe),Xn=Ie(Ve),qn=xe.useMemo(()=>be!=null?[se(be,"help",fe)]:[].concat((0,Qe.Z)(Fn.map((Rn,Zn)=>se(Rn,"error","error",Zn))),(0,Qe.Z)(Xn.map((Rn,Zn)=>se(Rn,"warning","warning",Zn)))),[be,fe,Fn,Xn]),Hn=xe.useMemo(()=>{const Rn={};return qn.forEach(Zn=>{let{key:or}=Zn;Rn[or]=(Rn[or]||0)+1}),qn.map((Zn,or)=>Object.assign(Object.assign({},Zn),{key:Rn[Zn.key]>1?`${Zn.key}-fallback-${or}`:Zn.key}))},[qn]),Ln={};return rn&&(Ln.id=`${rn}_help`),Jt(xe.createElement(Be.default,{motionDeadline:Sn.motionDeadline,motionName:`${Ct}-show-help`,visible:!!Hn.length,onVisibleChanged:Yt},Rn=>{const{className:Zn,style:or}=Rn;return xe.createElement("div",Object.assign({},Ln,{className:Ee()(Re,Zn,On,xt,Xt,gn),style:or}),xe.createElement(Be.CSSMotionList,Object.assign({keys:Hn},(0,De.Z)(Ct),{motionName:`${Ct}-show-help-item`,component:!1}),rr=>{const{key:ir,error:Un,errorStatus:Kn,className:Tn,style:mr}=rr;return xe.createElement("div",{key:ir,className:Ee()(Tn,{[`${Re}-${Kn}`]:Kn}),style:mr},Un)}))}))},Ae=ne(69180),ct=ne(48755),ye=ne(2171),ce=ne(31756),Ue=ne(23069),It=ne(76846),bt=ne(16722);const ge=["parentNode"],He="form_item";function Ge(ke){return ke===void 0||ke===!1?[]:Array.isArray(ke)?ke:[ke]}function Tt(ke,be){if(!ke.length)return;const fe=ke.join("_");return be?`${be}_${fe}`:ge.includes(fe)?`${He}_${fe}`:fe}function wt(ke,be,fe,pe,Ve,Xt){let rn=pe;return Xt!==void 0?rn=Xt:fe.validating?rn="validating":ke.length?rn="error":be.length?rn="warning":(fe.touched||Ve&&fe.validated)&&(rn="success"),rn}var Lt=function(ke,be){var fe={};for(var pe in ke)Object.prototype.hasOwnProperty.call(ke,pe)&&be.indexOf(pe)<0&&(fe[pe]=ke[pe]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,pe=Object.getOwnPropertySymbols(ke);Ve<pe.length;Ve++)be.indexOf(pe[Ve])<0&&Object.prototype.propertyIsEnumerable.call(ke,pe[Ve])&&(fe[pe[Ve]]=ke[pe[Ve]]);return fe};function $e(ke){return Ge(ke).join("_")}function At(ke,be){const fe=be.getFieldInstance(ke),pe=(0,It.bn)(fe);if(pe)return pe;const Ve=Tt(Ge(ke),be.__INTERNAL__.name);if(Ve)return document.getElementById(Ve)}function st(ke){const[be]=(0,Ae.useForm)(),fe=xe.useRef({}),pe=xe.useMemo(()=>ke!=null?ke:Object.assign(Object.assign({},be),{__INTERNAL__:{itemRef:Ve=>Xt=>{const rn=$e(Ve);Xt?fe.current[rn]=Xt:delete fe.current[rn]}},scrollToField:function(Ve){let Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:rn}=Xt,Yt=Lt(Xt,["focus"]),Ct=At(Ve,pe);Ct&&((0,bt.Z)(Ct,Object.assign({scrollMode:"if-needed",block:"nearest"},Yt)),rn&&pe.focusField(Ve))},focusField:Ve=>{var Xt,rn;const Yt=pe.getFieldInstance(Ve);typeof(Yt==null?void 0:Yt.focus)=="function"?Yt.focus():(rn=(Xt=At(Ve,pe))===null||Xt===void 0?void 0:Xt.focus)===null||rn===void 0||rn.call(Xt)},getFieldInstance:Ve=>{const Xt=$e(Ve);return fe.current[Xt]}}),[ke,be]);return[pe]}var ae=ne(98350),te=function(ke,be){var fe={};for(var pe in ke)Object.prototype.hasOwnProperty.call(ke,pe)&&be.indexOf(pe)<0&&(fe[pe]=ke[pe]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,pe=Object.getOwnPropertySymbols(ke);Ve<pe.length;Ve++)be.indexOf(pe[Ve])<0&&Object.prototype.propertyIsEnumerable.call(ke,pe[Ve])&&(fe[pe[Ve]]=ke[pe[Ve]]);return fe};const ee=(ke,be)=>{const fe=xe.useContext(ye.Z),{getPrefixCls:pe,direction:Ve,requiredMark:Xt,colon:rn,scrollToFirstError:Yt,className:Ct,style:Re}=(0,ct.dj)("form"),{prefixCls:xt,className:Jt,rootClassName:gn,size:On,disabled:Sn=fe,form:Fn,colon:Xn,labelAlign:qn,labelWrap:Hn,labelCol:Ln,wrapperCol:Rn,hideRequiredMark:Zn,layout:or="horizontal",scrollToFirstError:rr,requiredMark:ir,onFinishFailed:Un,name:Kn,style:Tn,feedbackIcons:mr,variant:Vn}=ke,Bn=te(ke,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),Yn=(0,ce.Z)(On),Jn=xe.useContext(ae.Z),dr=xe.useMemo(()=>ir!==void 0?ir:Zn?!1:Xt!==void 0?Xt:!0,[Zn,ir,Xt]),sr=Xn!=null?Xn:rn,_n=pe("form",xt),hr=(0,We.Z)(_n),[ar,pr,fr]=Ke(_n,hr),wr=Ee()(_n,`${_n}-${or}`,{[`${_n}-hide-required-mark`]:dr===!1,[`${_n}-rtl`]:Ve==="rtl",[`${_n}-${Yn}`]:Yn},fr,hr,pr,Ct,Jt,gn),[br]=st(Fn),{__INTERNAL__:Or}=br;Or.name=Kn;const _r=xe.useMemo(()=>({name:Kn,labelAlign:qn,labelCol:Ln,labelWrap:Hn,wrapperCol:Rn,vertical:or==="vertical",colon:sr,requiredMark:dr,itemRef:Or.itemRef,form:br,feedbackIcons:mr}),[Kn,qn,Ln,Rn,or,sr,dr,br,mr]),xr=xe.useRef(null);xe.useImperativeHandle(be,()=>{var In;return Object.assign(Object.assign({},br),{nativeElement:(In=xr.current)===null||In===void 0?void 0:In.nativeElement})});const ur=(In,wn)=>{if(In){let dn={block:"nearest"};typeof In=="object"&&(dn=Object.assign(Object.assign({},dn),In)),br.scrollToField(wn,dn)}},pn=In=>{if(Un==null||Un(In),In.errorFields.length){const wn=In.errorFields[0].name;if(rr!==void 0){ur(rr,wn);return}Yt!==void 0&&ur(Yt,wn)}};return ar(xe.createElement(E.pg.Provider,{value:Vn},xe.createElement(ye.n,{disabled:Sn},xe.createElement(Ue.Z.Provider,{value:Yn},xe.createElement(E.RV,{validateMessages:Jn},xe.createElement(E.q3.Provider,{value:_r},xe.createElement(Ae.default,Object.assign({id:Kn},Bn,{name:Kn,onFinishFailed:pn,form:br,ref:xr,style:Object.assign(Object.assign({},Re),Tn),className:wr}))))))))};var ue=xe.forwardRef(ee),re=ne(41799),ve=ne(8654),we=ne(22703),ft=ne(32383),Oe=ne(11592);function Ye(ke){if(typeof ke=="function")return ke;const be=(0,Oe.Z)(ke);return be.length<=1?be[0]:be}const mt=()=>{const{status:ke,errors:be=[],warnings:fe=[]}=xe.useContext(E.aM);return{status:ke,errors:be,warnings:fe}};mt.Context=E.aM;var Bt=mt,Et=ne(16089);function Ut(ke){const[be,fe]=xe.useState(ke),pe=xe.useRef(null),Ve=xe.useRef([]),Xt=xe.useRef(!1);xe.useEffect(()=>(Xt.current=!1,()=>{Xt.current=!0,Et.Z.cancel(pe.current),pe.current=null}),[]);function rn(Yt){Xt.current||(pe.current===null&&(Ve.current=[],pe.current=(0,Et.Z)(()=>{pe.current=null,fe(Ct=>{let Re=Ct;return Ve.current.forEach(xt=>{Re=xt(Re)}),Re})})),Ve.current.push(Yt))}return[be,rn]}function Wt(){const{itemRef:ke}=xe.useContext(E.q3),be=xe.useRef({});function fe(pe,Ve){const Xt=Ve&&typeof Ve=="object"&&(0,ve.C4)(Ve),rn=pe.join("_");return(be.current.name!==rn||be.current.originRef!==Xt)&&(be.current.name=rn,be.current.originRef=Xt,be.current.ref=(0,ve.sQ)(ke(pe),Xt)),be.current.ref}return fe}var Ht=ne(29194),ln=ne(34280),qt=ne(2738),sn=ne(65970),Dt=ne(70425),tn=ne(5472);const Vt=ke=>{const{formItemCls:be}=ke;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${be}-control`]:{display:"flex"}}}};var je=(0,Ce.bk)(["Form","item-item"],(ke,be)=>{let{rootPrefixCls:fe}=be;const pe=Me(ke,fe);return[Vt(pe)]}),pt=function(ke,be){var fe={};for(var pe in ke)Object.prototype.hasOwnProperty.call(ke,pe)&&be.indexOf(pe)<0&&(fe[pe]=ke[pe]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,pe=Object.getOwnPropertySymbols(ke);Ve<pe.length;Ve++)be.indexOf(pe[Ve])<0&&Object.prototype.propertyIsEnumerable.call(ke,pe[Ve])&&(fe[pe[Ve]]=ke[pe[Ve]]);return fe};const Ft=24;var Ne=ke=>{const{prefixCls:be,status:fe,labelCol:pe,wrapperCol:Ve,children:Xt,errors:rn,warnings:Yt,_internalItemRender:Ct,extra:Re,help:xt,fieldId:Jt,marginBottom:gn,onErrorVisibleChanged:On,label:Sn}=ke,Fn=`${be}-item`,Xn=xe.useContext(E.q3),qn=xe.useMemo(()=>{let Bn=Object.assign({},Ve||Xn.wrapperCol||{});return Sn===null&&!pe&&!Ve&&Xn.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(Jn=>{const dr=Jn?[Jn]:[],sr=(0,Dt.U2)(Xn.labelCol,dr),_n=typeof sr=="object"?sr:{},hr=(0,Dt.U2)(Bn,dr),ar=typeof hr=="object"?hr:{};"span"in _n&&!("offset"in ar)&&_n.span<Ft&&(Bn=(0,Dt.t8)(Bn,[].concat(dr,["offset"]),_n.span))}),Bn},[Ve,Xn]),Hn=Ee()(`${Fn}-control`,qn.className),Ln=xe.useMemo(()=>{const{labelCol:Bn,wrapperCol:Yn}=Xn;return pt(Xn,["labelCol","wrapperCol"])},[Xn]),Rn=xe.useRef(null),[Zn,or]=xe.useState(0);(0,ln.Z)(()=>{Re&&Rn.current?or(Rn.current.clientHeight):or(0)},[Re]);const rr=xe.createElement("div",{className:`${Fn}-control-input`},xe.createElement("div",{className:`${Fn}-control-input-content`},Xt)),ir=xe.useMemo(()=>({prefixCls:be,status:fe}),[be,fe]),Un=gn!==null||rn.length||Yt.length?xe.createElement(E.Rk.Provider,{value:ir},xe.createElement(Le,{fieldId:Jt,errors:rn,warnings:Yt,help:xt,helpStatus:fe,className:`${Fn}-explain-connected`,onVisibleChanged:On})):null,Kn={};Jt&&(Kn.id=`${Jt}_extra`);const Tn=Re?xe.createElement("div",Object.assign({},Kn,{className:`${Fn}-extra`,ref:Rn}),Re):null,mr=Un||Tn?xe.createElement("div",{className:`${Fn}-additional`,style:gn?{minHeight:gn+Zn}:{}},Un,Tn):null,Vn=Ct&&Ct.mark==="pro_table_render"&&Ct.render?Ct.render(ke,{input:rr,errorList:Un,extra:Tn}):xe.createElement(xe.Fragment,null,rr,mr);return xe.createElement(E.q3.Provider,{value:Ln},xe.createElement(tn.Z,Object.assign({},qn,{className:Hn}),Vn),xe.createElement(je,{prefixCls:be}))},ot=ne(61485),yt=ne(9017),Mt=ne(85981),Kt=ne(25399),cn=function(ke,be){var fe={};for(var pe in ke)Object.prototype.hasOwnProperty.call(ke,pe)&&be.indexOf(pe)<0&&(fe[pe]=ke[pe]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,pe=Object.getOwnPropertySymbols(ke);Ve<pe.length;Ve++)be.indexOf(pe[Ve])<0&&Object.prototype.propertyIsEnumerable.call(ke,pe[Ve])&&(fe[pe[Ve]]=ke[pe[Ve]]);return fe};function Dn(ke){return ke?typeof ke=="object"&&!xe.isValidElement(ke)?ke:{title:ke}:null}var un=ke=>{let{prefixCls:be,label:fe,htmlFor:pe,labelCol:Ve,labelAlign:Xt,colon:rn,required:Yt,requiredMark:Ct,tooltip:Re,vertical:xt}=ke;var Jt;const[gn]=(0,yt.Z)("Form"),{labelAlign:On,labelCol:Sn,labelWrap:Fn,colon:Xn}=xe.useContext(E.q3);if(!fe)return null;const qn=Ve||Sn||{},Hn=Xt||On,Ln=`${be}-item-label`,Rn=Ee()(Ln,Hn==="left"&&`${Ln}-left`,qn.className,{[`${Ln}-wrap`]:!!Fn});let Zn=fe;const or=rn===!0||Xn!==!1&&rn!==!1;or&&!xt&&typeof fe=="string"&&fe.trim()&&(Zn=fe.replace(/[:|]\s*$/,""));const ir=Dn(Re);if(ir){const{icon:Bn=xe.createElement(ot.Z,null)}=ir,Yn=cn(ir,["icon"]),Jn=xe.createElement(Kt.Z,Object.assign({},Yn),xe.cloneElement(Bn,{className:`${be}-item-tooltip`,title:"",onClick:dr=>{dr.preventDefault()},tabIndex:null}));Zn=xe.createElement(xe.Fragment,null,Zn,Jn)}const Un=Ct==="optional",Kn=typeof Ct=="function",Tn=Ct===!1;Kn?Zn=Ct(Zn,{required:!!Yt}):Un&&!Yt&&(Zn=xe.createElement(xe.Fragment,null,Zn,xe.createElement("span",{className:`${be}-item-optional`,title:""},(gn==null?void 0:gn.optional)||((Jt=Mt.Z.Form)===null||Jt===void 0?void 0:Jt.optional))));let mr;Tn?mr="hidden":(Un||Kn)&&(mr="optional");const Vn=Ee()({[`${be}-item-required`]:Yt,[`${be}-item-required-mark-${mr}`]:mr,[`${be}-item-no-colon`]:!or});return xe.createElement(tn.Z,Object.assign({},qn,{className:Rn}),xe.createElement("label",{htmlFor:pe,className:Vn,title:typeof fe=="string"?fe:""},Zn))},bn=ne(29679),fn=ne(19248),Gt=ne(96512),Rt=ne(58617);const _t={success:bn.Z,warning:Gt.Z,error:fn.Z,validating:Rt.Z};function Ot(ke){let{children:be,errors:fe,warnings:pe,hasFeedback:Ve,validateStatus:Xt,prefixCls:rn,meta:Yt,noStyle:Ct}=ke;const Re=`${rn}-item`,{feedbackIcons:xt}=xe.useContext(E.q3),Jt=wt(fe,pe,Yt,null,!!Ve,Xt),{isFormItemInput:gn,status:On,hasFeedback:Sn,feedbackIcon:Fn}=xe.useContext(E.aM),Xn=xe.useMemo(()=>{var qn;let Hn;if(Ve){const Rn=Ve!==!0&&Ve.icons||xt,Zn=Jt&&((qn=Rn==null?void 0:Rn({status:Jt,errors:fe,warnings:pe}))===null||qn===void 0?void 0:qn[Jt]),or=Jt&&_t[Jt];Hn=Zn!==!1&&or?xe.createElement("span",{className:Ee()(`${Re}-feedback-icon`,`${Re}-feedback-icon-${Jt}`)},Zn||xe.createElement(or,null)):null}const Ln={status:Jt||"",errors:fe,warnings:pe,hasFeedback:!!Ve,feedbackIcon:Hn,isFormItemInput:!0};return Ct&&(Ln.status=(Jt!=null?Jt:On)||"",Ln.isFormItemInput=gn,Ln.hasFeedback=!!(Ve!=null?Ve:Sn),Ln.feedbackIcon=Ve!==void 0?Ln.feedbackIcon:Fn),Ln},[Jt,Ve,Ct,gn,On]);return xe.createElement(E.aM.Provider,{value:Xn},be)}var an=function(ke,be){var fe={};for(var pe in ke)Object.prototype.hasOwnProperty.call(ke,pe)&&be.indexOf(pe)<0&&(fe[pe]=ke[pe]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,pe=Object.getOwnPropertySymbols(ke);Ve<pe.length;Ve++)be.indexOf(pe[Ve])<0&&Object.prototype.propertyIsEnumerable.call(ke,pe[Ve])&&(fe[pe[Ve]]=ke[pe[Ve]]);return fe};function nn(ke){const{prefixCls:be,className:fe,rootClassName:pe,style:Ve,help:Xt,errors:rn,warnings:Yt,validateStatus:Ct,meta:Re,hasFeedback:xt,hidden:Jt,children:gn,fieldId:On,required:Sn,isRequired:Fn,onSubItemMetaChange:Xn,layout:qn}=ke,Hn=an(ke,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),Ln=`${be}-item`,{requiredMark:Rn,vertical:Zn}=xe.useContext(E.q3),or=Zn||qn==="vertical",rr=xe.useRef(null),ir=Ie(rn),Un=Ie(Yt),Kn=Xt!=null,Tn=!!(Kn||rn.length||Yt.length),mr=!!rr.current&&(0,Ht.Z)(rr.current),[Vn,Bn]=xe.useState(null);(0,ln.Z)(()=>{if(Tn&&rr.current){const _n=getComputedStyle(rr.current);Bn(parseInt(_n.marginBottom,10))}},[Tn,mr]);const Yn=_n=>{_n||Bn(null)},dr=function(){let _n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const hr=_n?ir:Re.errors,ar=_n?Un:Re.warnings;return wt(hr,ar,Re,"",!!xt,Ct)}(),sr=Ee()(Ln,fe,pe,{[`${Ln}-with-help`]:Kn||ir.length||Un.length,[`${Ln}-has-feedback`]:dr&&xt,[`${Ln}-has-success`]:dr==="success",[`${Ln}-has-warning`]:dr==="warning",[`${Ln}-has-error`]:dr==="error",[`${Ln}-is-validating`]:dr==="validating",[`${Ln}-hidden`]:Jt,[`${Ln}-${qn}`]:qn});return xe.createElement("div",{className:sr,style:Ve,ref:rr},xe.createElement(sn.Z,Object.assign({className:`${Ln}-row`},(0,qt.Z)(Hn,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),xe.createElement(un,Object.assign({htmlFor:On},ke,{requiredMark:Rn,required:Sn!=null?Sn:Fn,prefixCls:be,vertical:or})),xe.createElement(Ne,Object.assign({},ke,Re,{errors:ir,warnings:Un,prefixCls:be,status:dr,help:Xt,marginBottom:Vn,onErrorVisibleChanged:Yn}),xe.createElement(E.qI.Provider,{value:Xn},xe.createElement(Ot,{prefixCls:be,meta:Re,errors:Re.errors,warnings:Re.warnings,hasFeedback:xt,validateStatus:dr},gn)))),!!Vn&&xe.createElement("div",{className:`${Ln}-margin-offset`,style:{marginBottom:-Vn}}))}const en="__SPLIT__",xn=null;function Pn(ke,be){const fe=Object.keys(ke),pe=Object.keys(be);return fe.length===pe.length&&fe.every(Ve=>{const Xt=ke[Ve],rn=be[Ve];return Xt===rn||typeof Xt=="function"||typeof rn=="function"})}const Cn=xe.memo(ke=>{let{children:be}=ke;return be},(ke,be)=>Pn(ke.control,be.control)&&ke.update===be.update&&ke.childProps.length===be.childProps.length&&ke.childProps.every((fe,pe)=>fe===be.childProps[pe]));function Nn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function An(ke){const{name:be,noStyle:fe,className:pe,dependencies:Ve,prefixCls:Xt,shouldUpdate:rn,rules:Yt,children:Ct,required:Re,label:xt,messageVariables:Jt,trigger:gn="onChange",validateTrigger:On,hidden:Sn,help:Fn,layout:Xn}=ke,{getPrefixCls:qn}=xe.useContext(ct.E_),{name:Hn}=xe.useContext(E.q3),Ln=Ye(Ct),Rn=typeof Ln=="function",Zn=xe.useContext(E.qI),{validateTrigger:or}=xe.useContext(Ae.FieldContext),rr=On!==void 0?On:or,ir=be!=null,Un=qn("form",Xt),Kn=(0,We.Z)(Un),[Tn,mr,Vn]=Ke(Un,Kn),Bn=(0,ft.ln)("Form.Item"),Yn=xe.useContext(Ae.ListContext),Jn=xe.useRef(null),[dr,sr]=Ut({}),[_n,hr]=(0,re.Z)(()=>Nn()),ar=xr=>{const ur=Yn==null?void 0:Yn.getKey(xr.name);if(hr(xr.destroy?Nn():xr,!0),fe&&Fn!==!1&&Zn){let pn=xr.name;if(xr.destroy)pn=Jn.current||pn;else if(ur!==void 0){const[In,wn]=ur;pn=[In].concat((0,Qe.Z)(wn)),Jn.current=pn}Zn(xr,pn)}},pr=(xr,ur)=>{sr(pn=>{const In=Object.assign({},pn),dn=[].concat((0,Qe.Z)(xr.name.slice(0,-1)),(0,Qe.Z)(ur)).join(en);return xr.destroy?delete In[dn]:In[dn]=xr,In})},[fr,wr]=xe.useMemo(()=>{const xr=(0,Qe.Z)(_n.errors),ur=(0,Qe.Z)(_n.warnings);return Object.values(dr).forEach(pn=>{xr.push.apply(xr,(0,Qe.Z)(pn.errors||[])),ur.push.apply(ur,(0,Qe.Z)(pn.warnings||[]))}),[xr,ur]},[dr,_n.errors,_n.warnings]),br=Wt();function Or(xr,ur,pn){return fe&&!Sn?xe.createElement(Ot,{prefixCls:Un,hasFeedback:ke.hasFeedback,validateStatus:ke.validateStatus,meta:_n,errors:fr,warnings:wr,noStyle:!0},xr):xe.createElement(nn,Object.assign({key:"row"},ke,{className:Ee()(pe,Vn,Kn,mr),prefixCls:Un,fieldId:ur,isRequired:pn,errors:fr,warnings:wr,meta:_n,onSubItemMetaChange:pr,layout:Xn}),xr)}if(!ir&&!Rn&&!Ve)return Tn(Or(Ln));let _r={};return typeof xt=="string"?_r.label=xt:be&&(_r.label=String(be)),Jt&&(_r=Object.assign(Object.assign({},_r),Jt)),Tn(xe.createElement(Ae.Field,Object.assign({},ke,{messageVariables:_r,trigger:gn,validateTrigger:rr,onMetaChange:ar}),(xr,ur,pn)=>{const In=Ge(be).length&&ur?ur.name:[],wn=Tt(In,Hn),dn=Re!==void 0?Re:!!(Yt!=null&&Yt.some(vn=>{if(vn&&typeof vn=="object"&&vn.required&&!vn.warningOnly)return!0;if(typeof vn=="function"){const yn=vn(pn);return(yn==null?void 0:yn.required)&&!(yn!=null&&yn.warningOnly)}return!1})),Gn=Object.assign({},xr);let nr=null;if(Array.isArray(Ln)&&ir)nr=Ln;else if(!(Rn&&(!(rn||Ve)||ir))){if(!(Ve&&!Rn&&!ir))if(xe.isValidElement(Ln)){const vn=Object.assign(Object.assign({},Ln.props),Gn);if(vn.id||(vn.id=wn),Fn||fr.length>0||wr.length>0||ke.extra){const Wn=[];(Fn||fr.length>0)&&Wn.push(`${wn}_help`),ke.extra&&Wn.push(`${wn}_extra`),vn["aria-describedby"]=Wn.join(" ")}fr.length>0&&(vn["aria-invalid"]="true"),dn&&(vn["aria-required"]="true"),(0,ve.Yr)(Ln)&&(vn.ref=br(In,Ln)),new Set([].concat((0,Qe.Z)(Ge(gn)),(0,Qe.Z)(Ge(rr)))).forEach(Wn=>{vn[Wn]=function(){for(var vr,kr,Br,Tr,Ar,Nr=arguments.length,zr=new Array(Nr),Lr=0;Lr<Nr;Lr++)zr[Lr]=arguments[Lr];(Br=Gn[Wn])===null||Br===void 0||(vr=Br).call.apply(vr,[Gn].concat(zr)),(Ar=(Tr=Ln.props)[Wn])===null||Ar===void 0||(kr=Ar).call.apply(kr,[Tr].concat(zr))}});const jn=[vn["aria-required"],vn["aria-invalid"],vn["aria-describedby"]];nr=xe.createElement(Cn,{control:Gn,update:Ln,childProps:jn},(0,we.Tm)(Ln,vn))}else Rn&&(rn||Ve)&&!ir?nr=Ln(pn):nr=Ln}return Or(nr,wn,dn)}))}const Qn=An;Qn.useStatus=Bt;var zn=Qn,Nt=function(ke,be){var fe={};for(var pe in ke)Object.prototype.hasOwnProperty.call(ke,pe)&&be.indexOf(pe)<0&&(fe[pe]=ke[pe]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,pe=Object.getOwnPropertySymbols(ke);Ve<pe.length;Ve++)be.indexOf(pe[Ve])<0&&Object.prototype.propertyIsEnumerable.call(ke,pe[Ve])&&(fe[pe[Ve]]=ke[pe[Ve]]);return fe},En=ke=>{var{prefixCls:be,children:fe}=ke,pe=Nt(ke,["prefixCls","children"]);const{getPrefixCls:Ve}=xe.useContext(ct.E_),Xt=Ve("form",be),rn=xe.useMemo(()=>({prefixCls:Xt,status:"error"}),[Xt]);return xe.createElement(Ae.List,Object.assign({},pe),(Yt,Ct,Re)=>xe.createElement(E.Rk.Provider,{value:rn},fe(Yt.map(xt=>Object.assign(Object.assign({},xt),{fieldKey:xt.key})),Ct,{errors:Re.errors,warnings:Re.warnings})))};function mn(){const{form:ke}=xe.useContext(E.q3);return ke}const Xe=ue;Xe.Item=zn,Xe.List=En,Xe.ErrorList=Le,Xe.useForm=st,Xe.useFormInstance=mn,Xe.useWatch=Ae.useWatch,Xe.Provider=E.RV,Xe.create=()=>{};var ut=Xe},4875:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return jt}});var E=ne(59301),Qe=ne(84105),xe=ne(87395),tt=ne(92310),Ee=ne.n(tt),Be=ne(60499),De=ne(18642),We=ne(43749),Ie=ne(72190),he=ne(42244),Je=ne(38705),Pe=ne(17212);function dt(){return typeof BigInt=="function"}function Ze(Ne){return!Ne&&Ne!==0&&!Number.isNaN(Ne)||!String(Ne).trim()}function Ce(Ne){var ot=Ne.trim(),yt=ot.startsWith("-");yt&&(ot=ot.slice(1)),ot=ot.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),ot.startsWith(".")&&(ot="0".concat(ot));var Mt=ot||"0",Kt=Mt.split("."),cn=Kt[0]||"0",Dn=Kt[1]||"0";cn==="0"&&Dn==="0"&&(yt=!1);var kn=yt?"-":"";return{negative:yt,negativeStr:kn,trimStr:Mt,integerStr:cn,decimalStr:Dn,fullStr:"".concat(kn).concat(Mt)}}function Te(Ne){var ot=String(Ne);return!Number.isNaN(Number(ot))&&ot.includes("e")}function _e(Ne){var ot=String(Ne);if(Te(Ne)){var yt=Number(ot.slice(ot.indexOf("e-")+2)),Mt=ot.match(/\.(\d+)/);return Mt!=null&&Mt[1]&&(yt+=Mt[1].length),yt}return ot.includes(".")&&gt(ot)?ot.length-ot.indexOf(".")-1:0}function rt(Ne){var ot=String(Ne);if(Te(Ne)){if(Ne>Number.MAX_SAFE_INTEGER)return String(dt()?BigInt(Ne).toString():Number.MAX_SAFE_INTEGER);if(Ne<Number.MIN_SAFE_INTEGER)return String(dt()?BigInt(Ne).toString():Number.MIN_SAFE_INTEGER);ot=Ne.toFixed(_e(ot))}return Ce(ot).fullStr}function gt(Ne){return typeof Ne=="number"?!Number.isNaN(Ne):Ne?/^\s*-?\d+(\.\d+)?\s*$/.test(Ne)||/^\s*-?\d+\.\s*$/.test(Ne)||/^\s*-?\.\d+\s*$/.test(Ne):!1}var Pt=function(){function Ne(ot){if((0,Je.Z)(this,Ne),(0,De.Z)(this,"origin",""),(0,De.Z)(this,"negative",void 0),(0,De.Z)(this,"integer",void 0),(0,De.Z)(this,"decimal",void 0),(0,De.Z)(this,"decimalLen",void 0),(0,De.Z)(this,"empty",void 0),(0,De.Z)(this,"nan",void 0),Ze(ot)){this.empty=!0;return}if(this.origin=String(ot),ot==="-"||Number.isNaN(ot)){this.nan=!0;return}var yt=ot;if(Te(yt)&&(yt=Number(yt)),yt=typeof yt=="string"?yt:rt(yt),gt(yt)){var Mt=Ce(yt);this.negative=Mt.negative;var Kt=Mt.trimStr.split(".");this.integer=BigInt(Kt[0]);var cn=Kt[1]||"0";this.decimal=BigInt(cn),this.decimalLen=cn.length}else this.nan=!0}return(0,Pe.Z)(Ne,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(yt){var Mt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(yt,"0"));return BigInt(Mt)}},{key:"negate",value:function(){var yt=new Ne(this.toString());return yt.negative=!yt.negative,yt}},{key:"cal",value:function(yt,Mt,Kt){var cn=Math.max(this.getDecimalStr().length,yt.getDecimalStr().length),Dn=this.alignDecimal(cn),kn=yt.alignDecimal(cn),un=Mt(Dn,kn).toString(),bn=Kt(cn),fn=Ce(un),Gt=fn.negativeStr,Rt=fn.trimStr,_t="".concat(Gt).concat(Rt.padStart(bn+1,"0"));return new Ne("".concat(_t.slice(0,-bn),".").concat(_t.slice(-bn)))}},{key:"add",value:function(yt){if(this.isInvalidate())return new Ne(yt);var Mt=new Ne(yt);return Mt.isInvalidate()?this:this.cal(Mt,function(Kt,cn){return Kt+cn},function(Kt){return Kt})}},{key:"multi",value:function(yt){var Mt=new Ne(yt);return this.isInvalidate()||Mt.isInvalidate()?new Ne(NaN):this.cal(Mt,function(Kt,cn){return Kt*cn},function(Kt){return Kt*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(yt){return this.toString()===(yt==null?void 0:yt.toString())}},{key:"lessEquals",value:function(yt){return this.add(yt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return yt?this.isInvalidate()?"":Ce("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Ne}(),ht=function(){function Ne(ot){if((0,Je.Z)(this,Ne),(0,De.Z)(this,"origin",""),(0,De.Z)(this,"number",void 0),(0,De.Z)(this,"empty",void 0),Ze(ot)){this.empty=!0;return}this.origin=String(ot),this.number=Number(ot)}return(0,Pe.Z)(Ne,[{key:"negate",value:function(){return new Ne(-this.toNumber())}},{key:"add",value:function(yt){if(this.isInvalidate())return new Ne(yt);var Mt=Number(yt);if(Number.isNaN(Mt))return this;var Kt=this.number+Mt;if(Kt>Number.MAX_SAFE_INTEGER)return new Ne(Number.MAX_SAFE_INTEGER);if(Kt<Number.MIN_SAFE_INTEGER)return new Ne(Number.MIN_SAFE_INTEGER);var cn=Math.max(_e(this.number),_e(Mt));return new Ne(Kt.toFixed(cn))}},{key:"multi",value:function(yt){var Mt=Number(yt);if(this.isInvalidate()||Number.isNaN(Mt))return new Ne(NaN);var Kt=this.number*Mt;if(Kt>Number.MAX_SAFE_INTEGER)return new Ne(Number.MAX_SAFE_INTEGER);if(Kt<Number.MIN_SAFE_INTEGER)return new Ne(Number.MIN_SAFE_INTEGER);var cn=Math.max(_e(this.number),_e(Mt));return new Ne(Kt.toFixed(cn))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(yt){return this.toNumber()===(yt==null?void 0:yt.toNumber())}},{key:"lessEquals",value:function(yt){return this.add(yt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return yt?this.isInvalidate()?"":rt(this.number):this.origin}}]),Ne}();function it(Ne){return dt()?new Pt(Ne):new ht(Ne)}function nt(Ne,ot,yt){var Mt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Ne==="")return"";var Kt=Ce(Ne),cn=Kt.negativeStr,Dn=Kt.integerStr,kn=Kt.decimalStr,un="".concat(ot).concat(kn),bn="".concat(cn).concat(Dn);if(yt>=0){var fn=Number(kn[yt]);if(fn>=5&&!Mt){var Gt=it(Ne).add("".concat(cn,"0.").concat("0".repeat(yt)).concat(10-fn));return nt(Gt.toString(),ot,yt,Mt)}return yt===0?bn:"".concat(bn).concat(ot).concat(kn.padEnd(yt,"0").slice(0,yt))}return un===".0"?bn:"".concat(bn).concat(un)}var Fe=it,kt=ne(36901),lt=ne(34280);function et(Ne,ot){return typeof Proxy!="undefined"&&Ne?new Proxy(Ne,{get:function(Mt,Kt){if(ot[Kt])return ot[Kt];var cn=Mt[Kt];return typeof cn=="function"?cn.bind(Mt):cn}}):Ne}var St=ne(8654),Me=ne(48736);function Ke(Ne,ot){var yt=(0,E.useRef)(null);function Mt(){try{var cn=Ne.selectionStart,Dn=Ne.selectionEnd,kn=Ne.value,un=kn.substring(0,cn),bn=kn.substring(Dn);yt.current={start:cn,end:Dn,value:kn,beforeTxt:un,afterTxt:bn}}catch(fn){}}function Kt(){if(Ne&&yt.current&&ot)try{var cn=Ne.value,Dn=yt.current,kn=Dn.beforeTxt,un=Dn.afterTxt,bn=Dn.start,fn=cn.length;if(cn.startsWith(kn))fn=kn.length;else if(cn.endsWith(un))fn=cn.length-yt.current.afterTxt.length;else{var Gt=kn[bn-1],Rt=cn.indexOf(Gt,bn-1);Rt!==-1&&(fn=Rt+1)}Ne.setSelectionRange(fn,fn)}catch(_t){(0,Me.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(_t.message))}}return[Mt,Kt]}var ze=ne(49658),se=function(){var ot=(0,E.useState)(!1),yt=(0,Ie.Z)(ot,2),Mt=yt[0],Kt=yt[1];return(0,lt.Z)(function(){Kt((0,ze.Z)())},[]),Mt},qe=se,Le=ne(16089),Ae=200,ct=600;function ye(Ne){var ot=Ne.prefixCls,yt=Ne.upNode,Mt=Ne.downNode,Kt=Ne.upDisabled,cn=Ne.downDisabled,Dn=Ne.onStep,kn=E.useRef(),un=E.useRef([]),bn=E.useRef();bn.current=Dn;var fn=function(){clearTimeout(kn.current)},Gt=function(Pn,Cn){Pn.preventDefault(),fn(),bn.current(Cn);function Nn(){bn.current(Cn),kn.current=setTimeout(Nn,Ae)}kn.current=setTimeout(Nn,ct)};E.useEffect(function(){return function(){fn(),un.current.forEach(function(xn){return Le.Z.cancel(xn)})}},[]);var Rt=qe();if(Rt)return null;var _t="".concat(ot,"-handler"),Ot=Ee()(_t,"".concat(_t,"-up"),(0,De.Z)({},"".concat(_t,"-up-disabled"),Kt)),an=Ee()(_t,"".concat(_t,"-down"),(0,De.Z)({},"".concat(_t,"-down-disabled"),cn)),nn=function(){return un.current.push((0,Le.Z)(fn))},en={unselectable:"on",role:"button",onMouseUp:nn,onMouseLeave:nn};return E.createElement("div",{className:"".concat(_t,"-wrap")},E.createElement("span",(0,Be.Z)({},en,{onMouseDown:function(Pn){Gt(Pn,!0)},"aria-label":"Increase Value","aria-disabled":Kt,className:Ot}),yt||E.createElement("span",{unselectable:"on",className:"".concat(ot,"-handler-up-inner")})),E.createElement("span",(0,Be.Z)({},en,{onMouseDown:function(Pn){Gt(Pn,!1)},"aria-label":"Decrease Value","aria-disabled":cn,className:an}),Mt||E.createElement("span",{unselectable:"on",className:"".concat(ot,"-handler-down-inner")})))}function ce(Ne){var ot=typeof Ne=="number"?rt(Ne):Ce(Ne).fullStr,yt=ot.includes(".");return yt?Ce(ot.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Ne+"0"}var Ue=ne(30292),It=function(){var Ne=(0,E.useRef)(0),ot=function(){Le.Z.cancel(Ne.current)};return(0,E.useEffect)(function(){return ot},[]),function(yt){ot(),Ne.current=(0,Le.Z)(function(){yt()})}},bt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],ge=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],He=function(ot,yt){return ot||yt.isEmpty()?yt.toString():yt.toNumber()},Ge=function(ot){var yt=Fe(ot);return yt.isInvalidate()?null:yt},Tt=E.forwardRef(function(Ne,ot){var yt=Ne.prefixCls,Mt=Ne.className,Kt=Ne.style,cn=Ne.min,Dn=Ne.max,kn=Ne.step,un=kn===void 0?1:kn,bn=Ne.defaultValue,fn=Ne.value,Gt=Ne.disabled,Rt=Ne.readOnly,_t=Ne.upHandler,Ot=Ne.downHandler,an=Ne.keyboard,nn=Ne.changeOnWheel,en=nn===void 0?!1:nn,xn=Ne.controls,Pn=xn===void 0?!0:xn,Cn=Ne.classNames,Nn=Ne.stringMode,An=Ne.parser,Qn=Ne.formatter,zn=Ne.precision,Nt=Ne.decimalSeparator,Qt=Ne.onChange,En=Ne.onInput,mn=Ne.onPressEnter,Xe=Ne.onStep,ut=Ne.changeOnBlur,ke=ut===void 0?!0:ut,be=Ne.domRef,fe=(0,he.Z)(Ne,bt),pe="".concat(yt,"-input"),Ve=E.useRef(null),Xt=E.useState(!1),rn=(0,Ie.Z)(Xt,2),Yt=rn[0],Ct=rn[1],Re=E.useRef(!1),xt=E.useRef(!1),Jt=E.useRef(!1),gn=E.useState(function(){return Fe(fn!=null?fn:bn)}),On=(0,Ie.Z)(gn,2),Sn=On[0],Fn=On[1];function Xn(wn){fn===void 0&&Fn(wn)}var qn=E.useCallback(function(wn,dn){if(!dn)return zn>=0?zn:Math.max(_e(wn),_e(un))},[zn,un]),Hn=E.useCallback(function(wn){var dn=String(wn);if(An)return An(dn);var Gn=dn;return Nt&&(Gn=Gn.replace(Nt,".")),Gn.replace(/[^\w.-]+/g,"")},[An,Nt]),Ln=E.useRef(""),Rn=E.useCallback(function(wn,dn){if(Qn)return Qn(wn,{userTyping:dn,input:String(Ln.current)});var Gn=typeof wn=="number"?rt(wn):wn;if(!dn){var nr=qn(Gn,dn);if(gt(Gn)&&(Nt||nr>=0)){var vn=Nt||".";Gn=nt(Gn,vn,nr)}}return Gn},[Qn,qn,Nt]),Zn=E.useState(function(){var wn=bn!=null?bn:fn;return Sn.isInvalidate()&&["string","number"].includes((0,We.Z)(wn))?Number.isNaN(wn)?"":wn:Rn(Sn.toString(),!1)}),or=(0,Ie.Z)(Zn,2),rr=or[0],ir=or[1];Ln.current=rr;function Un(wn,dn){ir(Rn(wn.isInvalidate()?wn.toString(!1):wn.toString(!dn),dn))}var Kn=E.useMemo(function(){return Ge(Dn)},[Dn,zn]),Tn=E.useMemo(function(){return Ge(cn)},[cn,zn]),mr=E.useMemo(function(){return!Kn||!Sn||Sn.isInvalidate()?!1:Kn.lessEquals(Sn)},[Kn,Sn]),Vn=E.useMemo(function(){return!Tn||!Sn||Sn.isInvalidate()?!1:Sn.lessEquals(Tn)},[Tn,Sn]),Bn=Ke(Ve.current,Yt),Yn=(0,Ie.Z)(Bn,2),Jn=Yn[0],dr=Yn[1],sr=function(dn){return Kn&&!dn.lessEquals(Kn)?Kn:Tn&&!Tn.lessEquals(dn)?Tn:null},_n=function(dn){return!sr(dn)},hr=function(dn,Gn){var nr=dn,vn=_n(nr)||nr.isEmpty();if(!nr.isEmpty()&&!Gn&&(nr=sr(nr)||nr,vn=!0),!Rt&&!Gt&&vn){var yn=nr.toString(),jn=qn(yn,Gn);return jn>=0&&(nr=Fe(nt(yn,".",jn)),_n(nr)||(nr=Fe(nt(yn,".",jn,!0)))),nr.equals(Sn)||(Xn(nr),Qt==null||Qt(nr.isEmpty()?null:He(Nn,nr)),fn===void 0&&Un(nr,Gn)),nr}return Sn},ar=It(),pr=function wn(dn){if(Jn(),Ln.current=dn,ir(dn),!xt.current){var Gn=Hn(dn),nr=Fe(Gn);nr.isNaN()||hr(nr,!0)}En==null||En(dn),ar(function(){var vn=dn;An||(vn=dn.replace(/。/g,".")),vn!==dn&&wn(vn)})},fr=function(){xt.current=!0},wr=function(){xt.current=!1,pr(Ve.current.value)},br=function(dn){pr(dn.target.value)},Or=function(dn){var Gn;if(!(dn&&mr||!dn&&Vn)){Re.current=!1;var nr=Fe(Jt.current?ce(un):un);dn||(nr=nr.negate());var vn=(Sn||Fe(0)).add(nr.toString()),yn=hr(vn,!1);Xe==null||Xe(He(Nn,yn),{offset:Jt.current?ce(un):un,type:dn?"up":"down"}),(Gn=Ve.current)===null||Gn===void 0||Gn.focus()}},_r=function(dn){var Gn=Fe(Hn(rr)),nr;Gn.isNaN()?nr=hr(Sn,dn):nr=hr(Gn,dn),fn!==void 0?Un(Sn,!1):nr.isNaN()||Un(nr,!1)},xr=function(){Re.current=!0},ur=function(dn){var Gn=dn.key,nr=dn.shiftKey;Re.current=!0,Jt.current=nr,Gn==="Enter"&&(xt.current||(Re.current=!1),_r(!1),mn==null||mn(dn)),an!==!1&&!xt.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Gn)&&(Or(Gn==="Up"||Gn==="ArrowUp"),dn.preventDefault())},pn=function(){Re.current=!1,Jt.current=!1};E.useEffect(function(){if(en&&Yt){var wn=function(nr){Or(nr.deltaY<0),nr.preventDefault()},dn=Ve.current;if(dn)return dn.addEventListener("wheel",wn,{passive:!1}),function(){return dn.removeEventListener("wheel",wn)}}});var In=function(){ke&&_r(!1),Ct(!1),Re.current=!1};return(0,lt.o)(function(){Sn.isInvalidate()||Un(Sn,!1)},[zn,Qn]),(0,lt.o)(function(){var wn=Fe(fn);Fn(wn);var dn=Fe(Hn(rr));(!wn.equals(dn)||!Re.current||Qn)&&Un(wn,Re.current)},[fn]),(0,lt.o)(function(){Qn&&dr()},[rr]),E.createElement("div",{ref:be,className:Ee()(yt,Mt,(0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)({},"".concat(yt,"-focused"),Yt),"".concat(yt,"-disabled"),Gt),"".concat(yt,"-readonly"),Rt),"".concat(yt,"-not-a-number"),Sn.isNaN()),"".concat(yt,"-out-of-range"),!Sn.isInvalidate()&&!_n(Sn))),style:Kt,onFocus:function(){Ct(!0)},onBlur:In,onKeyDown:ur,onKeyUp:pn,onCompositionStart:fr,onCompositionEnd:wr,onBeforeInput:xr},Pn&&E.createElement(ye,{prefixCls:yt,upNode:_t,downNode:Ot,upDisabled:mr,downDisabled:Vn,onStep:Or}),E.createElement("div",{className:"".concat(pe,"-wrap")},E.createElement("input",(0,Be.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":cn,"aria-valuemax":Dn,"aria-valuenow":Sn.isInvalidate()?null:Sn.toString(),step:un},fe,{ref:(0,St.sQ)(Ve,ot),className:pe,value:rr,onChange:br,disabled:Gt,readOnly:Rt}))))}),wt=E.forwardRef(function(Ne,ot){var yt=Ne.disabled,Mt=Ne.style,Kt=Ne.prefixCls,cn=Kt===void 0?"rc-input-number":Kt,Dn=Ne.value,kn=Ne.prefix,un=Ne.suffix,bn=Ne.addonBefore,fn=Ne.addonAfter,Gt=Ne.className,Rt=Ne.classNames,_t=(0,he.Z)(Ne,ge),Ot=E.useRef(null),an=E.useRef(null),nn=E.useRef(null),en=function(Pn){nn.current&&(0,Ue.nH)(nn.current,Pn)};return E.useImperativeHandle(ot,function(){return et(nn.current,{focus:en,nativeElement:Ot.current.nativeElement||an.current})}),E.createElement(kt.BaseInput,{className:Gt,triggerFocus:en,prefixCls:cn,value:Dn,disabled:yt,style:Mt,prefix:kn,suffix:un,addonAfter:fn,addonBefore:bn,classNames:Rt,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:Ot},E.createElement(Tt,(0,Be.Z)({prefixCls:cn,disabled:yt,ref:nn,domRef:an,className:Rt==null?void 0:Rt.input},_t)))}),Lt=wt,$e=Lt,At=ne(62487),st=ne(82855),ae=ne(48755),te=ne(60840),ee=ne(2171),oe=ne(83397),ue=ne(31756),re=ne(56553),ve=ne(24971),we=ne(70045),ft=ne(36237),Oe=ne(53075),Ye=ne(64910),mt=ne(39082),Bt=ne(63356),Et=ne(56119),Ut=ne(16931),Wt=ne(51636),Ht=ne(17835);const ln=Ne=>{var ot;const yt=(ot=Ne.handleVisible)!==null&&ot!==void 0?ot:"auto",Mt=Ne.controlHeightSM-Ne.lineWidth*2;return Object.assign(Object.assign({},(0,Ye.T)(Ne)),{controlWidth:90,handleWidth:Mt,handleFontSize:Ne.fontSize/2,handleVisible:yt,handleActiveBg:Ne.colorFillAlter,handleBg:Ne.colorBgContainer,filledHandleBg:new Ht.FastColor(Ne.colorFillSecondary).onBackground(Ne.colorBgContainer).toHexString(),handleHoverColor:Ne.colorPrimary,handleBorderColor:Ne.colorBorder,handleOpacity:yt===!0?1:0,handleVisibleWidth:yt===!0?Mt:0})},qt=(Ne,ot)=>{let{componentCls:yt,borderRadiusSM:Mt,borderRadiusLG:Kt}=Ne;const cn=ot==="lg"?Kt:Mt;return{[`&-${ot}`]:{[`${yt}-handler-wrap`]:{borderStartEndRadius:cn,borderEndEndRadius:cn},[`${yt}-handler-up`]:{borderStartEndRadius:cn},[`${yt}-handler-down`]:{borderEndEndRadius:cn}}}},sn=Ne=>{const{componentCls:ot,lineWidth:yt,lineType:Mt,borderRadius:Kt,inputFontSizeSM:cn,inputFontSizeLG:Dn,controlHeightLG:kn,controlHeightSM:un,colorError:bn,paddingInlineSM:fn,paddingBlockSM:Gt,paddingBlockLG:Rt,paddingInlineLG:_t,colorTextDescription:Ot,motionDurationMid:an,handleHoverColor:nn,handleOpacity:en,paddingInline:xn,paddingBlock:Pn,handleBg:Cn,handleActiveBg:Nn,colorTextDisabled:An,borderRadiusSM:Qn,borderRadiusLG:zn,controlWidth:Nt,handleBorderColor:Qt,filledHandleBg:En,lineHeightLG:mn,calc:Xe}=Ne;return[{[ot]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Bt.Wf)(Ne)),(0,Oe.ik)(Ne)),{display:"inline-block",width:Nt,margin:0,padding:0,borderRadius:Kt}),(0,mt.qG)(Ne,{[`${ot}-handler-wrap`]:{background:Cn,[`${ot}-handler-down`]:{borderBlockStart:`${(0,ft.unit)(yt)} ${Mt} ${Qt}`}}})),(0,mt.H8)(Ne,{[`${ot}-handler-wrap`]:{background:En,[`${ot}-handler-down`]:{borderBlockStart:`${(0,ft.unit)(yt)} ${Mt} ${Qt}`}},"&:focus-within":{[`${ot}-handler-wrap`]:{background:Cn}}})),(0,mt.vc)(Ne,{[`${ot}-handler-wrap`]:{background:Cn,[`${ot}-handler-down`]:{borderBlockStart:`${(0,ft.unit)(yt)} ${Mt} ${Qt}`}}})),(0,mt.Mu)(Ne)),{"&-rtl":{direction:"rtl",[`${ot}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Dn,lineHeight:mn,borderRadius:zn,[`input${ot}-input`]:{height:Xe(kn).sub(Xe(yt).mul(2)).equal(),padding:`${(0,ft.unit)(Rt)} ${(0,ft.unit)(_t)}`}},"&-sm":{padding:0,fontSize:cn,borderRadius:Qn,[`input${ot}-input`]:{height:Xe(un).sub(Xe(yt).mul(2)).equal(),padding:`${(0,ft.unit)(Gt)} ${(0,ft.unit)(fn)}`}},"&-out-of-range":{[`${ot}-input-wrap`]:{input:{color:bn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Bt.Wf)(Ne)),(0,Oe.s7)(Ne)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${ot}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${ot}-group-addon`]:{borderRadius:zn,fontSize:Ne.fontSizeLG}},"&-sm":{[`${ot}-group-addon`]:{borderRadius:Qn}}},(0,mt.ir)(Ne)),(0,mt.S5)(Ne)),{[`&:not(${ot}-compact-first-item):not(${ot}-compact-last-item)${ot}-compact-item`]:{[`${ot}, ${ot}-group-addon`]:{borderRadius:0}},[`&:not(${ot}-compact-last-item)${ot}-compact-first-item`]:{[`${ot}, ${ot}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${ot}-compact-first-item)${ot}-compact-last-item`]:{[`${ot}, ${ot}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${ot}-input`]:{cursor:"not-allowed"},[ot]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Bt.Wf)(Ne)),{width:"100%",padding:`${(0,ft.unit)(Pn)} ${(0,ft.unit)(xn)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Kt,outline:0,transition:`all ${an} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Oe.nz)(Ne.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${ot}-handler-wrap, &-focused ${ot}-handler-wrap`]:{width:Ne.handleWidth,opacity:1}})},{[ot]:Object.assign(Object.assign(Object.assign({[`${ot}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Ne.handleVisibleWidth,opacity:en,height:"100%",borderStartStartRadius:0,borderStartEndRadius:Kt,borderEndEndRadius:Kt,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${an}`,overflow:"hidden",[`${ot}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${ot}-handler-up-inner,
${ot}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:Ne.handleFontSize}}},[`${ot}-handler`]:{height:"50%",overflow:"hidden",color:Ot,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,ft.unit)(yt)} ${Mt} ${Qt}`,transition:`all ${an} linear`,"&:active":{background:Nn},"&:hover":{height:"60%",[`
${ot}-handler-up-inner,
${ot}-handler-down-inner
`]:{color:nn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Bt.Ro)()),{color:Ot,transition:`all ${an} linear`,userSelect:"none"})},[`${ot}-handler-up`]:{borderStartEndRadius:Kt},[`${ot}-handler-down`]:{borderEndEndRadius:Kt}},qt(Ne,"lg")),qt(Ne,"sm")),{"&-disabled, &-readonly":{[`${ot}-handler-wrap`]:{display:"none"},[`${ot}-input`]:{color:"inherit"}},[`
${ot}-handler-up-disabled,
${ot}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${ot}-handler-up-disabled:hover &-handler-up-inner,
${ot}-handler-down-disabled:hover &-handler-down-inner
`]:{color:An}})}]},Dt=Ne=>{const{componentCls:ot,paddingBlock:yt,paddingInline:Mt,inputAffixPadding:Kt,controlWidth:cn,borderRadiusLG:Dn,borderRadiusSM:kn,paddingInlineLG:un,paddingInlineSM:bn,paddingBlockLG:fn,paddingBlockSM:Gt,motionDurationMid:Rt}=Ne;return{[`${ot}-affix-wrapper`]:Object.assign(Object.assign({[`input${ot}-input`]:{padding:`${(0,ft.unit)(yt)} 0`}},(0,Oe.ik)(Ne)),{position:"relative",display:"inline-flex",alignItems:"center",width:cn,padding:0,paddingInlineStart:Mt,"&-lg":{borderRadius:Dn,paddingInlineStart:un,[`input${ot}-input`]:{padding:`${(0,ft.unit)(fn)} 0`}},"&-sm":{borderRadius:kn,paddingInlineStart:bn,[`input${ot}-input`]:{padding:`${(0,ft.unit)(Gt)} 0`}},[`&:not(${ot}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${ot}-disabled`]:{background:"transparent"},[`> div${ot}`]:{width:"100%",border:"none",outline:"none",[`&${ot}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${ot}-handler-wrap`]:{zIndex:2},[ot]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Kt},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:Mt,marginInlineStart:Kt,transition:`margin ${Rt}`}},[`&:hover ${ot}-handler-wrap, &-focused ${ot}-handler-wrap`]:{width:Ne.handleWidth,opacity:1},[`&:not(${ot}-affix-wrapper-without-controls):hover ${ot}-suffix`]:{marginInlineEnd:Ne.calc(Ne.handleWidth).add(Mt).equal()}})}};var tn=(0,Ut.I$)("InputNumber",Ne=>{const ot=(0,Wt.mergeToken)(Ne,(0,Ye.e)(Ne));return[sn(ot),Dt(ot),(0,Et.c)(ot)]},ln,{unitless:{handleOpacity:!0}}),Vt=function(Ne,ot){var yt={};for(var Mt in Ne)Object.prototype.hasOwnProperty.call(Ne,Mt)&&ot.indexOf(Mt)<0&&(yt[Mt]=Ne[Mt]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Kt=0,Mt=Object.getOwnPropertySymbols(Ne);Kt<Mt.length;Kt++)ot.indexOf(Mt[Kt])<0&&Object.prototype.propertyIsEnumerable.call(Ne,Mt[Kt])&&(yt[Mt[Kt]]=Ne[Mt[Kt]]);return yt};const je=E.forwardRef((Ne,ot)=>{const{getPrefixCls:yt,direction:Mt}=E.useContext(ae.E_),Kt=E.useRef(null);E.useImperativeHandle(ot,()=>Kt.current);const{className:cn,rootClassName:Dn,size:kn,disabled:un,prefixCls:bn,addonBefore:fn,addonAfter:Gt,prefix:Rt,suffix:_t,bordered:Ot,readOnly:an,status:nn,controls:en,variant:xn}=Ne,Pn=Vt(Ne,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),Cn=yt("input-number",bn),Nn=(0,oe.Z)(Cn),[An,Qn,zn]=tn(Cn,Nn),{compactSize:Nt,compactItemClassnames:Qt}=(0,we.ri)(Cn,Mt);let En=E.createElement(xe.Z,{className:`${Cn}-handler-up-inner`}),mn=E.createElement(Qe.Z,{className:`${Cn}-handler-down-inner`});const Xe=typeof en=="boolean"?en:void 0;typeof en=="object"&&(En=typeof en.upIcon=="undefined"?En:E.createElement("span",{className:`${Cn}-handler-up-inner`},en.upIcon),mn=typeof en.downIcon=="undefined"?mn:E.createElement("span",{className:`${Cn}-handler-down-inner`},en.downIcon));const{hasFeedback:ut,status:ke,isFormItemInput:be,feedbackIcon:fe}=E.useContext(re.aM),pe=(0,st.F)(ke,nn),Ve=(0,ue.Z)(On=>{var Sn;return(Sn=kn!=null?kn:Nt)!==null&&Sn!==void 0?Sn:On}),Xt=E.useContext(ee.Z),rn=un!=null?un:Xt,[Yt,Ct]=(0,ve.Z)("inputNumber",xn,Ot),Re=ut&&E.createElement(E.Fragment,null,fe),xt=Ee()({[`${Cn}-lg`]:Ve==="large",[`${Cn}-sm`]:Ve==="small",[`${Cn}-rtl`]:Mt==="rtl",[`${Cn}-in-form-item`]:be},Qn),Jt=`${Cn}-group`,gn=E.createElement($e,Object.assign({ref:Kt,disabled:rn,className:Ee()(zn,Nn,cn,Dn,Qt),upHandler:En,downHandler:mn,prefixCls:Cn,readOnly:an,controls:Xe,prefix:Rt,suffix:Re||_t,addonBefore:fn&&E.createElement(At.Z,{form:!0,space:!0},fn),addonAfter:Gt&&E.createElement(At.Z,{form:!0,space:!0},Gt),classNames:{input:xt,variant:Ee()({[`${Cn}-${Yt}`]:Ct},(0,st.Z)(Cn,pe,ut)),affixWrapper:Ee()({[`${Cn}-affix-wrapper-sm`]:Ve==="small",[`${Cn}-affix-wrapper-lg`]:Ve==="large",[`${Cn}-affix-wrapper-rtl`]:Mt==="rtl",[`${Cn}-affix-wrapper-without-controls`]:en===!1||rn},Qn),wrapper:Ee()({[`${Jt}-rtl`]:Mt==="rtl"},Qn),groupWrapper:Ee()({[`${Cn}-group-wrapper-sm`]:Ve==="small",[`${Cn}-group-wrapper-lg`]:Ve==="large",[`${Cn}-group-wrapper-rtl`]:Mt==="rtl",[`${Cn}-group-wrapper-${Yt}`]:Ct},(0,st.Z)(`${Cn}-group-wrapper`,pe,ut),Qn)}},Pn));return An(gn)}),pt=je,Ft=Ne=>E.createElement(te.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},E.createElement(je,Object.assign({},Ne)));pt._InternalPanelDoNotUseOrYouWillBeFired=Ft;var jt=pt},49397:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return ht}});var E=ne(59301),Qe=ne(92310),xe=ne.n(Qe),tt=ne(36901),Ee=ne(8654),Be=ne(62487),De=ne(86013),We=ne(82855),Ie=ne(48755),he=ne(2171),Je=ne(83397),Pe=ne(31756),dt=ne(56553),Ze=ne(24971),Ce=ne(70045),Te=ne(23826),_e=ne(53075);function rt(it){return!!(it.prefix||it.suffix||it.allowClear||it.showCount)}var gt=function(it,nt){var Fe={};for(var kt in it)Object.prototype.hasOwnProperty.call(it,kt)&&nt.indexOf(kt)<0&&(Fe[kt]=it[kt]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,kt=Object.getOwnPropertySymbols(it);lt<kt.length;lt++)nt.indexOf(kt[lt])<0&&Object.prototype.propertyIsEnumerable.call(it,kt[lt])&&(Fe[kt[lt]]=it[kt[lt]]);return Fe},ht=(0,E.forwardRef)((it,nt)=>{const{prefixCls:Fe,bordered:kt=!0,status:lt,size:et,disabled:St,onBlur:Me,onFocus:Ke,suffix:ze,allowClear:se,addonAfter:qe,addonBefore:Le,className:Ae,style:ct,styles:ye,rootClassName:ce,onChange:Ue,classNames:It,variant:bt}=it,ge=gt(it,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:He,direction:Ge,allowClear:Tt,autoComplete:wt,className:Lt,style:$e,classNames:At,styles:st}=(0,Ie.dj)("input"),ae=He("input",Fe),te=(0,E.useRef)(null),ee=(0,Je.Z)(ae),[oe,ue,re]=(0,_e.TI)(ae,ce),[ve]=(0,_e.ZP)(ae,ee),{compactSize:we,compactItemClassnames:ft}=(0,Ce.ri)(ae,Ge),Oe=(0,Pe.Z)(jt=>{var Ne;return(Ne=et!=null?et:we)!==null&&Ne!==void 0?Ne:jt}),Ye=E.useContext(he.Z),mt=St!=null?St:Ye,{status:Bt,hasFeedback:Et,feedbackIcon:Ut}=(0,E.useContext)(dt.aM),Wt=(0,We.F)(Bt,lt),Ht=rt(it)||!!Et,ln=(0,E.useRef)(Ht),qt=(0,Te.Z)(te,!0),sn=jt=>{qt(),Me==null||Me(jt)},Dt=jt=>{qt(),Ke==null||Ke(jt)},tn=jt=>{qt(),Ue==null||Ue(jt)},Vt=(Et||ze)&&E.createElement(E.Fragment,null,ze,Et&&Ut),je=(0,De.Z)(se!=null?se:Tt),[pt,Ft]=(0,Ze.Z)("input",bt,kt);return oe(ve(E.createElement(tt.default,Object.assign({ref:(0,Ee.sQ)(nt,te),prefixCls:ae,autoComplete:wt},ge,{disabled:mt,onBlur:sn,onFocus:Dt,style:Object.assign(Object.assign({},$e),ct),styles:Object.assign(Object.assign({},st),ye),suffix:Vt,allowClear:je,className:xe()(Ae,ce,re,ee,ft,Lt),onChange:tn,addonBefore:Le&&E.createElement(Be.Z,{form:!0,space:!0},Le),addonAfter:qe&&E.createElement(Be.Z,{form:!0,space:!0},qe),classNames:Object.assign(Object.assign(Object.assign({},It),At),{input:xe()({[`${ae}-sm`]:Oe==="small",[`${ae}-lg`]:Oe==="large",[`${ae}-rtl`]:Ge==="rtl"},It==null?void 0:It.input,At.input,ue),variant:xe()({[`${ae}-${pt}`]:Ft},(0,We.Z)(ae,Wt)),affixWrapper:xe()({[`${ae}-affix-wrapper-sm`]:Oe==="small",[`${ae}-affix-wrapper-lg`]:Oe==="large",[`${ae}-affix-wrapper-rtl`]:Ge==="rtl"},ue),wrapper:xe()({[`${ae}-group-rtl`]:Ge==="rtl"},ue),groupWrapper:xe()({[`${ae}-group-wrapper-sm`]:Oe==="small",[`${ae}-group-wrapper-lg`]:Oe==="large",[`${ae}-group-wrapper-rtl`]:Ge==="rtl",[`${ae}-group-wrapper-${pt}`]:Ft},(0,We.Z)(`${ae}-group-wrapper`,Wt,Et),ue)})}))))})},79809:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return nt}});var E=ne(59301),Qe=ne(92310),xe=ne.n(Qe),tt=ne(22711),Ee=ne(86013),Be=ne(82855),De=ne(48755),We=ne(2171),Ie=ne(83397),he=ne(31756),Je=ne(56553),Pe=ne(24971),dt=ne(70045),Ze=ne(30292),Ce=ne(53075),Te=ne(16931),_e=ne(51636),rt=ne(64910);const gt=Fe=>{const{componentCls:kt,paddingLG:lt}=Fe,et=`${kt}-textarea`;return{[`textarea${kt}`]:{maxWidth:"100%",height:"auto",minHeight:Fe.controlHeight,lineHeight:Fe.lineHeight,verticalAlign:"bottom",transition:`all ${Fe.motionDurationSlow}`,resize:"vertical",[`&${kt}-mouse-active`]:{transition:`all ${Fe.motionDurationSlow}, height 0s, width 0s`}},[`${kt}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[et]:{position:"relative","&-show-count":{[`> ${kt}`]:{height:"100%"},[`${kt}-data-count`]:{position:"absolute",bottom:Fe.calc(Fe.fontSize).mul(Fe.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Fe.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
&-allow-clear > ${kt},
&-affix-wrapper${et}-has-feedback ${kt}
`]:{paddingInlineEnd:lt},[`&-affix-wrapper${kt}-affix-wrapper`]:{padding:0,[`> textarea${kt}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Fe.calc(Fe.controlHeight).sub(Fe.calc(Fe.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${kt}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${kt}-clear-icon`]:{position:"absolute",insetInlineEnd:Fe.paddingInline,insetBlockStart:Fe.paddingXS},[`${et}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Fe.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${kt}-affix-wrapper-sm`]:{[`${kt}-suffix`]:{[`${kt}-clear-icon`]:{insetInlineEnd:Fe.paddingInlineSM}}}}}};var Pt=(0,Te.I$)(["Input","TextArea"],Fe=>{const kt=(0,_e.mergeToken)(Fe,(0,rt.e)(Fe));return[gt(kt)]},rt.T,{resetFont:!1}),ht=function(Fe,kt){var lt={};for(var et in Fe)Object.prototype.hasOwnProperty.call(Fe,et)&&kt.indexOf(et)<0&&(lt[et]=Fe[et]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,et=Object.getOwnPropertySymbols(Fe);St<et.length;St++)kt.indexOf(et[St])<0&&Object.prototype.propertyIsEnumerable.call(Fe,et[St])&&(lt[et[St]]=Fe[et[St]]);return lt},nt=(0,E.forwardRef)((Fe,kt)=>{var lt;const{prefixCls:et,bordered:St=!0,size:Me,disabled:Ke,status:ze,allowClear:se,classNames:qe,rootClassName:Le,className:Ae,style:ct,styles:ye,variant:ce,showCount:Ue,onMouseDown:It,onResize:bt}=Fe,ge=ht(Fe,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:He,direction:Ge,allowClear:Tt,autoComplete:wt,className:Lt,style:$e,classNames:At,styles:st}=(0,De.dj)("textArea"),ae=E.useContext(We.Z),te=Ke!=null?Ke:ae,{status:ee,hasFeedback:oe,feedbackIcon:ue}=E.useContext(Je.aM),re=(0,Be.F)(ee,ze),ve=E.useRef(null);E.useImperativeHandle(kt,()=>{var Ft;return{resizableTextArea:(Ft=ve.current)===null||Ft===void 0?void 0:Ft.resizableTextArea,focus:jt=>{var Ne,ot;(0,Ze.nH)((ot=(Ne=ve.current)===null||Ne===void 0?void 0:Ne.resizableTextArea)===null||ot===void 0?void 0:ot.textArea,jt)},blur:()=>{var jt;return(jt=ve.current)===null||jt===void 0?void 0:jt.blur()}}});const we=He("input",et),ft=(0,Ie.Z)(we),[Oe,Ye,mt]=(0,Ce.TI)(we,Le),[Bt]=Pt(we,ft),{compactSize:Et,compactItemClassnames:Ut}=(0,dt.ri)(we,Ge),Wt=(0,he.Z)(Ft=>{var jt;return(jt=Me!=null?Me:Et)!==null&&jt!==void 0?jt:Ft}),[Ht,ln]=(0,Pe.Z)("textArea",ce,St),qt=(0,Ee.Z)(se!=null?se:Tt),[sn,Dt]=E.useState(!1),[tn,Vt]=E.useState(!1),je=Ft=>{Dt(!0),It==null||It(Ft);const jt=()=>{Dt(!1),document.removeEventListener("mouseup",jt)};document.addEventListener("mouseup",jt)},pt=Ft=>{var jt,Ne;if(bt==null||bt(Ft),sn&&typeof getComputedStyle=="function"){const ot=(Ne=(jt=ve.current)===null||jt===void 0?void 0:jt.nativeElement)===null||Ne===void 0?void 0:Ne.querySelector("textarea");ot&&getComputedStyle(ot).resize==="both"&&Vt(!0)}};return Oe(Bt(E.createElement(tt.default,Object.assign({autoComplete:wt},ge,{style:Object.assign(Object.assign({},$e),ct),styles:Object.assign(Object.assign({},st),ye),disabled:te,allowClear:qt,className:xe()(mt,ft,Ae,Le,Ut,Lt,tn&&`${we}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},qe),At),{textarea:xe()({[`${we}-sm`]:Wt==="small",[`${we}-lg`]:Wt==="large"},Ye,qe==null?void 0:qe.textarea,At.textarea,sn&&`${we}-mouse-active`),variant:xe()({[`${we}-${Ht}`]:ln},(0,Be.Z)(we,re)),affixWrapper:xe()(`${we}-textarea-affix-wrapper`,{[`${we}-affix-wrapper-rtl`]:Ge==="rtl",[`${we}-affix-wrapper-sm`]:Wt==="small",[`${we}-affix-wrapper-lg`]:Wt==="large",[`${we}-textarea-show-count`]:Ue||((lt=Fe.count)===null||lt===void 0?void 0:lt.show)},Ye)}),prefixCls:we,suffix:oe&&E.createElement("span",{className:`${we}-textarea-suffix`},ue),showCount:Ue,ref:ve,onResize:pt,onMouseDown:je}))))})},23826:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return Qe}});var E=ne(59301);function Qe(xe,tt){const Ee=(0,E.useRef)([]),Be=()=>{Ee.current.push(setTimeout(()=>{var De,We,Ie,he;!((De=xe.current)===null||De===void 0)&&De.input&&((We=xe.current)===null||We===void 0?void 0:We.input.getAttribute("type"))==="password"&&(!((Ie=xe.current)===null||Ie===void 0)&&Ie.input.hasAttribute("value"))&&((he=xe.current)===null||he===void 0||he.input.removeAttribute("value"))}))};return(0,E.useEffect)(()=>(tt&&Be(),()=>Ee.current.forEach(De=>{De&&clearTimeout(De)})),[]),Be}},37568:function(on,$t,ne){"use strict";ne.d($t,{default:function(){return At}});var E=ne(59301),Qe=ne(92310),xe=ne.n(Qe),tt=ne(48755),Ee=ne(56553),Be=ne(53075),We=st=>{const{getPrefixCls:ae,direction:te}=(0,E.useContext)(tt.E_),{prefixCls:ee,className:oe}=st,ue=ae("input-group",ee),re=ae("input"),[ve,we,ft]=(0,Be.ZP)(re),Oe=xe()(ue,ft,{[`${ue}-lg`]:st.size==="large",[`${ue}-sm`]:st.size==="small",[`${ue}-compact`]:st.compact,[`${ue}-rtl`]:te==="rtl"},we,oe),Ye=(0,E.useContext)(Ee.aM),mt=(0,E.useMemo)(()=>Object.assign(Object.assign({},Ye),{isFormItemInput:!1}),[Ye]);return ve(E.createElement("span",{className:Oe,style:st.style,onMouseEnter:st.onMouseEnter,onMouseLeave:st.onMouseLeave,onFocus:st.onFocus,onBlur:st.onBlur},E.createElement(Ee.aM.Provider,{value:mt},st.children)))},Ie=ne(49397),he=ne(77654),Je=ne(6089),Pe=ne(26112),dt=ne(82855),Ze=ne(31756),Ce=ne(16931),Te=ne(51636),_e=ne(64910);const rt=st=>{const{componentCls:ae,paddingXS:te}=st;return{[ae]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:te,"&-rtl":{direction:"rtl"},[`${ae}-input`]:{textAlign:"center",paddingInline:st.paddingXXS},[`&${ae}-sm ${ae}-input`]:{paddingInline:st.calc(st.paddingXXS).div(2).equal()},[`&${ae}-lg ${ae}-input`]:{paddingInline:st.paddingXS}}}};var gt=(0,Ce.I$)(["Input","OTP"],st=>{const ae=(0,Te.mergeToken)(st,(0,_e.e)(st));return[rt(ae)]},_e.T),Pt=ne(16089),ht=function(st,ae){var te={};for(var ee in st)Object.prototype.hasOwnProperty.call(st,ee)&&ae.indexOf(ee)<0&&(te[ee]=st[ee]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(st);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(st,ee[oe])&&(te[ee[oe]]=st[ee[oe]]);return te},nt=E.forwardRef((st,ae)=>{const{value:te,onChange:ee,onActiveChange:oe,index:ue,mask:re}=st,ve=ht(st,["value","onChange","onActiveChange","index","mask"]),we=te&&typeof re=="string"?re:te,ft=Et=>{ee(ue,Et.target.value)},Oe=E.useRef(null);E.useImperativeHandle(ae,()=>Oe.current);const Ye=()=>{(0,Pt.Z)(()=>{var Et;const Ut=(Et=Oe.current)===null||Et===void 0?void 0:Et.input;document.activeElement===Ut&&Ut&&Ut.select()})},mt=Et=>{const{key:Ut,ctrlKey:Wt,metaKey:Ht}=Et;Ut==="ArrowLeft"?oe(ue-1):Ut==="ArrowRight"?oe(ue+1):Ut==="z"&&(Wt||Ht)&&Et.preventDefault(),Ye()},Bt=Et=>{Et.key==="Backspace"&&!te&&oe(ue-1),Ye()};return E.createElement(Ie.Z,Object.assign({type:re===!0?"password":"text"},ve,{ref:Oe,value:we,onInput:ft,onFocus:Ye,onKeyDown:mt,onKeyUp:Bt,onMouseDown:Ye,onMouseUp:Ye}))}),Fe=function(st,ae){var te={};for(var ee in st)Object.prototype.hasOwnProperty.call(st,ee)&&ae.indexOf(ee)<0&&(te[ee]=st[ee]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(st);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(st,ee[oe])&&(te[ee[oe]]=st[ee[oe]]);return te};function kt(st){return(st||"").split("")}const lt=st=>{const{index:ae,prefixCls:te,separator:ee}=st,oe=typeof ee=="function"?ee(ae):ee;return oe?E.createElement("span",{className:`${te}-separator`},oe):null};var St=E.forwardRef((st,ae)=>{const{prefixCls:te,length:ee=6,size:oe,defaultValue:ue,value:re,onChange:ve,formatter:we,separator:ft,variant:Oe,disabled:Ye,status:mt,autoFocus:Bt,mask:Et,type:Ut,onInput:Wt,inputMode:Ht}=st,ln=Fe(st,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:qt,direction:sn}=E.useContext(tt.E_),Dt=qt("otp",te),tn=(0,Pe.Z)(ln,{aria:!0,data:!0,attr:!0}),[Vt,je,pt]=gt(Dt),Ft=(0,Ze.Z)(Rt=>oe!=null?oe:Rt),jt=E.useContext(Ee.aM),Ne=(0,dt.F)(jt.status,mt),ot=E.useMemo(()=>Object.assign(Object.assign({},jt),{status:Ne,hasFeedback:!1,feedbackIcon:null}),[jt,Ne]),yt=E.useRef(null),Mt=E.useRef({});E.useImperativeHandle(ae,()=>({focus:()=>{var Rt;(Rt=Mt.current[0])===null||Rt===void 0||Rt.focus()},blur:()=>{var Rt;for(let _t=0;_t<ee;_t+=1)(Rt=Mt.current[_t])===null||Rt===void 0||Rt.blur()},nativeElement:yt.current}));const Kt=Rt=>we?we(Rt):Rt,[cn,Dn]=E.useState(()=>kt(Kt(ue||"")));E.useEffect(()=>{re!==void 0&&Dn(kt(re))},[re]);const kn=(0,Je.Z)(Rt=>{Dn(Rt),Wt&&Wt(Rt),ve&&Rt.length===ee&&Rt.every(_t=>_t)&&Rt.some((_t,Ot)=>cn[Ot]!==_t)&&ve(Rt.join(""))}),un=(0,Je.Z)((Rt,_t)=>{let Ot=(0,he.Z)(cn);for(let nn=0;nn<Rt;nn+=1)Ot[nn]||(Ot[nn]="");_t.length<=1?Ot[Rt]=_t:Ot=Ot.slice(0,Rt).concat(kt(_t)),Ot=Ot.slice(0,ee);for(let nn=Ot.length-1;nn>=0&&!Ot[nn];nn-=1)Ot.pop();const an=Kt(Ot.map(nn=>nn||" ").join(""));return Ot=kt(an).map((nn,en)=>nn===" "&&!Ot[en]?Ot[en]:nn),Ot}),bn=(Rt,_t)=>{var Ot;const an=un(Rt,_t),nn=Math.min(Rt+_t.length,ee-1);nn!==Rt&&an[Rt]!==void 0&&((Ot=Mt.current[nn])===null||Ot===void 0||Ot.focus()),kn(an)},fn=Rt=>{var _t;(_t=Mt.current[Rt])===null||_t===void 0||_t.focus()},Gt={variant:Oe,disabled:Ye,status:Ne,mask:Et,type:Ut,inputMode:Ht};return Vt(E.createElement("div",Object.assign({},tn,{ref:yt,className:xe()(Dt,{[`${Dt}-sm`]:Ft==="small",[`${Dt}-lg`]:Ft==="large",[`${Dt}-rtl`]:sn==="rtl"},pt,je)}),E.createElement(Ee.aM.Provider,{value:ot},Array.from({length:ee}).map((Rt,_t)=>{const Ot=`otp-${_t}`,an=cn[_t]||"";return E.createElement(E.Fragment,{key:Ot},E.createElement(nt,Object.assign({ref:nn=>{Mt.current[_t]=nn},index:_t,size:Ft,htmlSize:1,className:`${Dt}-input`,onChange:bn,value:an,onActiveChange:fn,autoFocus:_t===0&&Bt},Gt)),_t<ee-1&&E.createElement(lt,{separator:ft,index:_t,prefixCls:Dt}))}))))}),Me=ne(73331),Ke=ne(15277),ze=ne(2738),se=ne(8654),qe=ne(2171),Le=ne(23826),Ae=function(st,ae){var te={};for(var ee in st)Object.prototype.hasOwnProperty.call(st,ee)&&ae.indexOf(ee)<0&&(te[ee]=st[ee]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(st);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(st,ee[oe])&&(te[ee[oe]]=st[ee[oe]]);return te};const ct=st=>st?E.createElement(Ke.Z,null):E.createElement(Me.Z,null),ye={click:"onClick",hover:"onMouseOver"};var Ue=E.forwardRef((st,ae)=>{const{disabled:te,action:ee="click",visibilityToggle:oe=!0,iconRender:ue=ct}=st,re=E.useContext(qe.Z),ve=te!=null?te:re,we=typeof oe=="object"&&oe.visible!==void 0,[ft,Oe]=(0,E.useState)(()=>we?oe.visible:!1),Ye=(0,E.useRef)(null);E.useEffect(()=>{we&&Oe(oe.visible)},[we,oe]);const mt=(0,Le.Z)(Ye),Bt=()=>{var Ft;if(ve)return;ft&&mt();const jt=!ft;Oe(jt),typeof oe=="object"&&((Ft=oe.onVisibleChange)===null||Ft===void 0||Ft.call(oe,jt))},Et=Ft=>{const jt=ye[ee]||"",Ne=ue(ft),ot={[jt]:Bt,className:`${Ft}-icon`,key:"passwordIcon",onMouseDown:yt=>{yt.preventDefault()},onMouseUp:yt=>{yt.preventDefault()}};return E.cloneElement(E.isValidElement(Ne)?Ne:E.createElement("span",null,Ne),ot)},{className:Ut,prefixCls:Wt,inputPrefixCls:Ht,size:ln}=st,qt=Ae(st,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:sn}=E.useContext(tt.E_),Dt=sn("input",Ht),tn=sn("input-password",Wt),Vt=oe&&Et(tn),je=xe()(tn,Ut,{[`${tn}-${ln}`]:!!ln}),pt=Object.assign(Object.assign({},(0,ze.Z)(qt,["suffix","iconRender","visibilityToggle"])),{type:ft?"text":"password",className:je,prefixCls:Dt,suffix:Vt});return ln&&(pt.size=ln),E.createElement(Ie.Z,Object.assign({ref:(0,se.sQ)(ae,Ye)},pt))}),It=ne(47472),bt=ne(22703),ge=ne(7939),He=ne(70045),Ge=function(st,ae){var te={};for(var ee in st)Object.prototype.hasOwnProperty.call(st,ee)&&ae.indexOf(ee)<0&&(te[ee]=st[ee]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(st);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(st,ee[oe])&&(te[ee[oe]]=st[ee[oe]]);return te},wt=E.forwardRef((st,ae)=>{const{prefixCls:te,inputPrefixCls:ee,className:oe,size:ue,suffix:re,enterButton:ve=!1,addonAfter:we,loading:ft,disabled:Oe,onSearch:Ye,onChange:mt,onCompositionStart:Bt,onCompositionEnd:Et}=st,Ut=Ge(st,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Wt,direction:Ht}=E.useContext(tt.E_),ln=E.useRef(!1),qt=Wt("input-search",te),sn=Wt("input",ee),{compactSize:Dt}=(0,He.ri)(qt,Ht),tn=(0,Ze.Z)(bn=>{var fn;return(fn=ue!=null?ue:Dt)!==null&&fn!==void 0?fn:bn}),Vt=E.useRef(null),je=bn=>{bn!=null&&bn.target&&bn.type==="click"&&Ye&&Ye(bn.target.value,bn,{source:"clear"}),mt==null||mt(bn)},pt=bn=>{var fn;document.activeElement===((fn=Vt.current)===null||fn===void 0?void 0:fn.input)&&bn.preventDefault()},Ft=bn=>{var fn,Gt;Ye&&Ye((Gt=(fn=Vt.current)===null||fn===void 0?void 0:fn.input)===null||Gt===void 0?void 0:Gt.value,bn,{source:"input"})},jt=bn=>{ln.current||ft||Ft(bn)},Ne=typeof ve=="boolean"?E.createElement(It.Z,null):null,ot=`${qt}-button`;let yt;const Mt=ve||{},Kt=Mt.type&&Mt.type.__ANT_BUTTON===!0;Kt||Mt.type==="button"?yt=(0,bt.Tm)(Mt,Object.assign({onMouseDown:pt,onClick:bn=>{var fn,Gt;(Gt=(fn=Mt==null?void 0:Mt.props)===null||fn===void 0?void 0:fn.onClick)===null||Gt===void 0||Gt.call(fn,bn),Ft(bn)},key:"enterButton"},Kt?{className:ot,size:tn}:{})):yt=E.createElement(ge.ZP,{className:ot,type:ve?"primary":void 0,size:tn,disabled:Oe,key:"enterButton",onMouseDown:pt,onClick:Ft,loading:ft,icon:Ne},ve),we&&(yt=[yt,(0,bt.Tm)(we,{key:"addonAfter"})]);const cn=xe()(qt,{[`${qt}-rtl`]:Ht==="rtl",[`${qt}-${tn}`]:!!tn,[`${qt}-with-button`]:!!ve},oe),Dn=Object.assign(Object.assign({},Ut),{className:cn,prefixCls:sn,type:"search"}),kn=bn=>{ln.current=!0,Bt==null||Bt(bn)},un=bn=>{ln.current=!1,Et==null||Et(bn)};return E.createElement(Ie.Z,Object.assign({ref:(0,se.sQ)(Vt,ae),onPressEnter:jt},Dn,{size:tn,onCompositionStart:kn,onCompositionEnd:un,addonAfter:yt,suffix:re,onChange:je,disabled:Oe}))}),Lt=ne(79809);const $e=Ie.Z;$e.Group=We,$e.Search=wt,$e.TextArea=Lt.Z,$e.Password=Ue,$e.OTP=St;var At=$e},24303:function(on,$t,ne){"use strict";ne.d($t,{D:function(){return Fe},Z:function(){return et}});var E=ne(59301),Qe=ne(60499),xe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},tt=xe,Ee=ne(7657),Be=function(Me,Ke){return E.createElement(Ee.Z,(0,Qe.Z)({},Me,{ref:Ke,icon:tt}))},De=E.forwardRef(Be),We=De,Ie=ne(33853),he=ne(38819),Je=ne(92310),Pe=ne.n(Je),dt=ne(2738),Ze=ne(48755),Ce=ne(6989),Te=ne(36237),_e=ne(48923),rt=ne(16931);const gt=St=>{const{componentCls:Me,siderBg:Ke,motionDurationMid:ze,motionDurationSlow:se,antCls:qe,triggerHeight:Le,triggerColor:Ae,triggerBg:ct,headerHeight:ye,zeroTriggerWidth:ce,zeroTriggerHeight:Ue,borderRadiusLG:It,lightSiderBg:bt,lightTriggerColor:ge,lightTriggerBg:He,bodyBg:Ge}=St;return{[Me]:{position:"relative",minWidth:0,background:Ke,transition:`all ${ze}, background 0s`,"&-has-trigger":{paddingBottom:Le},"&-right":{order:1},[`${Me}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${qe}-menu${qe}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Me}-children`]:{overflow:"hidden"},[`${Me}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:Le,color:Ae,lineHeight:(0,Te.unit)(Le),textAlign:"center",background:ct,cursor:"pointer",transition:`all ${ze}`},[`${Me}-zero-width-trigger`]:{position:"absolute",top:ye,insetInlineEnd:St.calc(ce).mul(-1).equal(),zIndex:1,width:ce,height:Ue,color:Ae,fontSize:St.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ke,borderRadius:`0 ${(0,Te.unit)(It)} ${(0,Te.unit)(It)} 0`,cursor:"pointer",transition:`background ${se} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${se}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:St.calc(ce).mul(-1).equal(),borderRadius:`${(0,Te.unit)(It)} 0 0 ${(0,Te.unit)(It)}`}},"&-light":{background:bt,[`${Me}-trigger`]:{color:ge,background:He},[`${Me}-zero-width-trigger`]:{color:ge,background:He,border:`1px solid ${Ge}`,borderInlineStart:0}}}}};var Pt=(0,rt.I$)(["Layout","Sider"],St=>[gt(St)],_e.eh,{deprecatedTokens:_e.jn}),ht=function(St,Me){var Ke={};for(var ze in St)Object.prototype.hasOwnProperty.call(St,ze)&&Me.indexOf(ze)<0&&(Ke[ze]=St[ze]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,ze=Object.getOwnPropertySymbols(St);se<ze.length;se++)Me.indexOf(ze[se])<0&&Object.prototype.propertyIsEnumerable.call(St,ze[se])&&(Ke[ze[se]]=St[ze[se]]);return Ke};const it={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},nt=St=>!Number.isNaN(Number.parseFloat(St))&&isFinite(St),Fe=E.createContext({}),kt=(()=>{let St=0;return function(){let Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return St+=1,`${Me}${St}`}})();var et=E.forwardRef((St,Me)=>{const{prefixCls:Ke,className:ze,trigger:se,children:qe,defaultCollapsed:Le=!1,theme:Ae="dark",style:ct={},collapsible:ye=!1,reverseArrow:ce=!1,width:Ue=200,collapsedWidth:It=80,zeroWidthTriggerStyle:bt,breakpoint:ge,onCollapse:He,onBreakpoint:Ge}=St,Tt=ht(St,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:wt}=(0,E.useContext)(Ce.V),[Lt,$e]=(0,E.useState)("collapsed"in St?St.collapsed:Le),[At,st]=(0,E.useState)(!1);(0,E.useEffect)(()=>{"collapsed"in St&&$e(St.collapsed)},[St.collapsed]);const ae=(tn,Vt)=>{"collapsed"in St||$e(tn),He==null||He(tn,Vt)},{getPrefixCls:te,direction:ee}=(0,E.useContext)(Ze.E_),oe=te("layout-sider",Ke),[ue,re,ve]=Pt(oe),we=(0,E.useRef)(null);we.current=tn=>{st(tn.matches),Ge==null||Ge(tn.matches),Lt!==tn.matches&&ae(tn.matches,"responsive")},(0,E.useEffect)(()=>{function tn(je){return we.current(je)}let Vt;if(typeof window!="undefined"){const{matchMedia:je}=window;if(je&&ge&&ge in it){Vt=je(`screen and (max-width: ${it[ge]})`);try{Vt.addEventListener("change",tn)}catch(pt){Vt.addListener(tn)}tn(Vt)}}return()=>{try{Vt==null||Vt.removeEventListener("change",tn)}catch(je){Vt==null||Vt.removeListener(tn)}}},[ge]),(0,E.useEffect)(()=>{const tn=kt("ant-sider-");return wt.addSider(tn),()=>wt.removeSider(tn)},[]);const ft=()=>{ae(!Lt,"clickTrigger")},Oe=(0,dt.Z)(Tt,["collapsed"]),Ye=Lt?It:Ue,mt=nt(Ye)?`${Ye}px`:String(Ye),Bt=parseFloat(String(It||0))===0?E.createElement("span",{onClick:ft,className:Pe()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${ce?"right":"left"}`),style:bt},se||E.createElement(We,null)):null,Et=ee==="rtl"==!ce,Ht={expanded:Et?E.createElement(he.Z,null):E.createElement(Ie.Z,null),collapsed:Et?E.createElement(Ie.Z,null):E.createElement(he.Z,null)}[Lt?"collapsed":"expanded"],ln=se!==null?Bt||E.createElement("div",{className:`${oe}-trigger`,onClick:ft,style:{width:mt}},se||Ht):null,qt=Object.assign(Object.assign({},ct),{flex:`0 0 ${mt}`,maxWidth:mt,minWidth:mt,width:mt}),sn=Pe()(oe,`${oe}-${Ae}`,{[`${oe}-collapsed`]:!!Lt,[`${oe}-has-trigger`]:ye&&se!==null&&!Bt,[`${oe}-below`]:!!At,[`${oe}-zero-width`]:parseFloat(mt)===0},ze,re,ve),Dt=E.useMemo(()=>({siderCollapsed:Lt}),[Lt]);return ue(E.createElement(Fe.Provider,{value:Dt},E.createElement("aside",Object.assign({className:sn},Oe,{style:qt,ref:Me}),E.createElement("div",{className:`${oe}-children`},qe),ye||At&&Bt?ln:null)))})},6989:function(on,$t,ne){"use strict";ne.d($t,{V:function(){return Qe}});var E=ne(59301);const Qe=E.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},24404:function(on,$t,ne){"use strict";ne.d($t,{default:function(){return it}});var E=ne(77654),Qe=ne(59301),xe=ne(92310),tt=ne.n(xe),Ee=ne(2738),Be=ne(48755),De=ne(6989),We=ne(11592),Ie=ne(24303);function he(nt,Fe,kt){return typeof kt=="boolean"?kt:nt.length?!0:(0,We.Z)(Fe).some(et=>et.type===Ie.Z)}var Je=ne(48923),Pe=function(nt,Fe){var kt={};for(var lt in nt)Object.prototype.hasOwnProperty.call(nt,lt)&&Fe.indexOf(lt)<0&&(kt[lt]=nt[lt]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,lt=Object.getOwnPropertySymbols(nt);et<lt.length;et++)Fe.indexOf(lt[et])<0&&Object.prototype.propertyIsEnumerable.call(nt,lt[et])&&(kt[lt[et]]=nt[lt[et]]);return kt};function dt(nt){let{suffixCls:Fe,tagName:kt,displayName:lt}=nt;return et=>Qe.forwardRef((Me,Ke)=>Qe.createElement(et,Object.assign({ref:Ke,suffixCls:Fe,tagName:kt},Me)))}const Ze=Qe.forwardRef((nt,Fe)=>{const{prefixCls:kt,suffixCls:lt,className:et,tagName:St}=nt,Me=Pe(nt,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ke}=Qe.useContext(Be.E_),ze=Ke("layout",kt),[se,qe,Le]=(0,Je.ZP)(ze),Ae=lt?`${ze}-${lt}`:ze;return se(Qe.createElement(St,Object.assign({className:tt()(kt||Ae,et,qe,Le),ref:Fe},Me)))}),Ce=Qe.forwardRef((nt,Fe)=>{const{direction:kt}=Qe.useContext(Be.E_),[lt,et]=Qe.useState([]),{prefixCls:St,className:Me,rootClassName:Ke,children:ze,hasSider:se,tagName:qe,style:Le}=nt,Ae=Pe(nt,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ct=(0,Ee.Z)(Ae,["suffixCls"]),{getPrefixCls:ye,className:ce,style:Ue}=(0,Be.dj)("layout"),It=ye("layout",St),bt=he(lt,ze,se),[ge,He,Ge]=(0,Je.ZP)(It),Tt=tt()(It,{[`${It}-has-sider`]:bt,[`${It}-rtl`]:kt==="rtl"},ce,Me,Ke,He,Ge),wt=Qe.useMemo(()=>({siderHook:{addSider:Lt=>{et($e=>[].concat((0,E.Z)($e),[Lt]))},removeSider:Lt=>{et($e=>$e.filter(At=>At!==Lt))}}}),[]);return ge(Qe.createElement(De.V.Provider,{value:wt},Qe.createElement(qe,Object.assign({ref:Fe,className:Tt,style:Object.assign(Object.assign({},Ue),Le)},ct),ze)))}),Te=dt({tagName:"div",displayName:"Layout"})(Ce),_e=dt({suffixCls:"header",tagName:"header",displayName:"Header"})(Ze),rt=dt({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Ze),gt=dt({suffixCls:"content",tagName:"main",displayName:"Content"})(Ze);var Pt=Te;const ht=Pt;ht.Header=_e,ht.Footer=rt,ht.Content=gt,ht.Sider=Ie.Z,ht._InternalSiderContext=Ie.D;var it=ht},48923:function(on,$t,ne){"use strict";ne.d($t,{eh:function(){return tt},jn:function(){return Ee}});var E=ne(36237),Qe=ne(16931);const xe=Be=>{const{antCls:De,componentCls:We,colorText:Ie,footerBg:he,headerHeight:Je,headerPadding:Pe,headerColor:dt,footerPadding:Ze,fontSize:Ce,bodyBg:Te,headerBg:_e}=Be;return{[We]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Te,"&, *":{boxSizing:"border-box"},[`&${We}-has-sider`]:{flexDirection:"row",[`> ${We}, > ${We}-content`]:{width:0}},[`${We}-header, &${We}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${We}-header`]:{height:Je,padding:Pe,color:dt,lineHeight:(0,E.unit)(Je),background:_e,[`${De}-menu`]:{lineHeight:"inherit"}},[`${We}-footer`]:{padding:Ze,color:Ie,fontSize:Ce,background:he},[`${We}-content`]:{flex:"auto",color:Ie,minHeight:0}}},tt=Be=>{const{colorBgLayout:De,controlHeight:We,controlHeightLG:Ie,colorText:he,controlHeightSM:Je,marginXXS:Pe,colorTextLightSolid:dt,colorBgContainer:Ze}=Be,Ce=Ie*1.25;return{colorBgHeader:"#001529",colorBgBody:De,colorBgTrigger:"#002140",bodyBg:De,headerBg:"#001529",headerHeight:We*2,headerPadding:`0 ${Ce}px`,headerColor:he,footerPadding:`${Je}px ${Ce}px`,footerBg:De,siderBg:"#001529",triggerHeight:Ie+Pe*2,triggerBg:"#002140",triggerColor:dt,zeroTriggerWidth:Ie,zeroTriggerHeight:Ie,lightSiderBg:Ze,lightTriggerBg:Ze,lightTriggerColor:he}},Ee=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];$t.ZP=(0,Qe.I$)("Layout",Be=>[xe(Be)],tt,{deprecatedTokens:Ee})},78857:function(on,$t,ne){"use strict";ne.d($t,{J:function(){return Be}});var E=ne(59301),Qe=ne(8654),xe=ne(62487),tt=function(De,We){var Ie={};for(var he in De)Object.prototype.hasOwnProperty.call(De,he)&&We.indexOf(he)<0&&(Ie[he]=De[he]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,he=Object.getOwnPropertySymbols(De);Je<he.length;Je++)We.indexOf(he[Je])<0&&Object.prototype.propertyIsEnumerable.call(De,he[Je])&&(Ie[he[Je]]=De[he[Je]]);return Ie};const Ee=E.createContext(null),Be=E.forwardRef((De,We)=>{const{children:Ie}=De,he=tt(De,["children"]),Je=E.useContext(Ee),Pe=E.useMemo(()=>Object.assign(Object.assign({},Je),he),[Je,he.prefixCls,he.mode,he.selectable,he.rootClassName]),dt=(0,Qe.t4)(Ie),Ze=(0,Qe.x1)(We,dt?(0,Qe.C4)(Ie):null);return E.createElement(Ee.Provider,{value:Pe},E.createElement(xe.Z,{space:!0},dt?E.cloneElement(Ie,{ref:Ze}):Ie))});$t.Z=Ee},93041:function(on,$t,ne){"use strict";ne.d($t,{default:function(){return ue}});var E=ne(59301),Qe=ne(28321),xe=ne(24303),tt=ne(18785),Ee=ne(92310),Be=ne.n(Ee),De=ne(6089),We=ne(2738),Ie=ne(86641),he=ne(22703),Je=ne(48755),Pe=ne(83397),Ze=(0,E.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Ce=function(re,ve){var we={};for(var ft in re)Object.prototype.hasOwnProperty.call(re,ft)&&ve.indexOf(ft)<0&&(we[ft]=re[ft]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,ft=Object.getOwnPropertySymbols(re);Oe<ft.length;Oe++)ve.indexOf(ft[Oe])<0&&Object.prototype.propertyIsEnumerable.call(re,ft[Oe])&&(we[ft[Oe]]=re[ft[Oe]]);return we},_e=re=>{const{prefixCls:ve,className:we,dashed:ft}=re,Oe=Ce(re,["prefixCls","className","dashed"]),{getPrefixCls:Ye}=E.useContext(Je.E_),mt=Ye("menu",ve),Bt=Be()({[`${mt}-item-divider-dashed`]:!!ft},we);return E.createElement(Qe.iz,Object.assign({className:Bt},Oe))},rt=ne(11592),gt=ne(25399),ht=re=>{var ve;const{className:we,children:ft,icon:Oe,title:Ye,danger:mt,extra:Bt}=re,{prefixCls:Et,firstLevel:Ut,direction:Wt,disableMenuItemTitleTooltip:Ht,inlineCollapsed:ln}=E.useContext(Ze),qt=pt=>{const Ft=ft==null?void 0:ft[0],jt=E.createElement("span",{className:Be()(`${Et}-title-content`,{[`${Et}-title-content-with-extra`]:!!Bt||Bt===0})},ft);return(!Oe||E.isValidElement(ft)&&ft.type==="span")&&ft&&pt&&Ut&&typeof Ft=="string"?E.createElement("div",{className:`${Et}-inline-collapsed-noicon`},Ft.charAt(0)):jt},{siderCollapsed:sn}=E.useContext(xe.D);let Dt=Ye;typeof Ye=="undefined"?Dt=Ut?ft:"":Ye===!1&&(Dt="");const tn={title:Dt};!sn&&!ln&&(tn.title=null,tn.open=!1);const Vt=(0,rt.Z)(ft).length;let je=E.createElement(Qe.ck,Object.assign({},(0,We.Z)(re,["title","icon","danger"]),{className:Be()({[`${Et}-item-danger`]:mt,[`${Et}-item-only-child`]:(Oe?Vt+1:Vt)===1},we),title:typeof Ye=="string"?Ye:void 0}),(0,he.Tm)(Oe,{className:Be()(E.isValidElement(Oe)?(ve=Oe.props)===null||ve===void 0?void 0:ve.className:"",`${Et}-item-icon`)}),qt(ln));return Ht||(je=E.createElement(gt.Z,Object.assign({},tn,{placement:Wt==="rtl"?"left":"right",classNames:{root:`${Et}-inline-collapsed-tooltip`}}),je)),je},it=ne(78857),nt=ne(36237),Fe=ne(17835),kt=ne(63356),lt=ne(34961),et=ne(46e3),St=ne(34925),Me=ne(16931),Ke=ne(51636),se=re=>{const{componentCls:ve,motionDurationSlow:we,horizontalLineHeight:ft,colorSplit:Oe,lineWidth:Ye,lineType:mt,itemPaddingInline:Bt}=re;return{[`${ve}-horizontal`]:{lineHeight:ft,border:0,borderBottom:`${(0,nt.unit)(Ye)} ${mt} ${Oe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ve}-item, ${ve}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Bt},[`> ${ve}-item:hover,
> ${ve}-item-active,
> ${ve}-submenu ${ve}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ve}-item, ${ve}-submenu-title`]:{transition:[`border-color ${we}`,`background ${we}`].join(",")},[`${ve}-submenu-arrow`]:{display:"none"}}}},Le=re=>{let{componentCls:ve,menuArrowOffset:we,calc:ft}=re;return{[`${ve}-rtl`]:{direction:"rtl"},[`${ve}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ve}-rtl${ve}-vertical,
${ve}-submenu-rtl ${ve}-vertical`]:{[`${ve}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,nt.unit)(ft(we).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,nt.unit)(we)})`}}}}};const Ae=re=>Object.assign({},(0,kt.oN)(re));var ye=(re,ve)=>{const{componentCls:we,itemColor:ft,itemSelectedColor:Oe,subMenuItemSelectedColor:Ye,groupTitleColor:mt,itemBg:Bt,subMenuItemBg:Et,itemSelectedBg:Ut,activeBarHeight:Wt,activeBarWidth:Ht,activeBarBorderWidth:ln,motionDurationSlow:qt,motionEaseInOut:sn,motionEaseOut:Dt,itemPaddingInline:tn,motionDurationMid:Vt,itemHoverColor:je,lineType:pt,colorSplit:Ft,itemDisabledColor:jt,dangerItemColor:Ne,dangerItemHoverColor:ot,dangerItemSelectedColor:yt,dangerItemActiveBg:Mt,dangerItemSelectedBg:Kt,popupBg:cn,itemHoverBg:Dn,itemActiveBg:kn,menuSubMenuBg:un,horizontalItemSelectedColor:bn,horizontalItemSelectedBg:fn,horizontalItemBorderRadius:Gt,horizontalItemHoverBg:Rt}=re;return{[`${we}-${ve}, ${we}-${ve} > ${we}`]:{color:ft,background:Bt,[`&${we}-root:focus-visible`]:Object.assign({},Ae(re)),[`${we}-item`]:{"&-group-title, &-extra":{color:mt}},[`${we}-submenu-selected > ${we}-submenu-title`]:{color:Ye},[`${we}-item, ${we}-submenu-title`]:{color:ft,[`&:not(${we}-item-disabled):focus-visible`]:Object.assign({},Ae(re))},[`${we}-item-disabled, ${we}-submenu-disabled`]:{color:`${jt} !important`},[`${we}-item:not(${we}-item-selected):not(${we}-submenu-selected)`]:{[`&:hover, > ${we}-submenu-title:hover`]:{color:je}},[`&:not(${we}-horizontal)`]:{[`${we}-item:not(${we}-item-selected)`]:{"&:hover":{backgroundColor:Dn},"&:active":{backgroundColor:kn}},[`${we}-submenu-title`]:{"&:hover":{backgroundColor:Dn},"&:active":{backgroundColor:kn}}},[`${we}-item-danger`]:{color:Ne,[`&${we}-item:hover`]:{[`&:not(${we}-item-selected):not(${we}-submenu-selected)`]:{color:ot}},[`&${we}-item:active`]:{background:Mt}},[`${we}-item a`]:{"&, &:hover":{color:"inherit"}},[`${we}-item-selected`]:{color:Oe,[`&${we}-item-danger`]:{color:yt},"a, a:hover":{color:"inherit"}},[`& ${we}-item-selected`]:{backgroundColor:Ut,[`&${we}-item-danger`]:{backgroundColor:Kt}},[`&${we}-submenu > ${we}`]:{backgroundColor:un},[`&${we}-popup > ${we}`]:{backgroundColor:cn},[`&${we}-submenu-popup > ${we}`]:{backgroundColor:cn},[`&${we}-horizontal`]:Object.assign(Object.assign({},ve==="dark"?{borderBottom:0}:{}),{[`> ${we}-item, > ${we}-submenu`]:{top:ln,marginTop:re.calc(ln).mul(-1).equal(),marginBottom:0,borderRadius:Gt,"&::after":{position:"absolute",insetInline:tn,bottom:0,borderBottom:`${(0,nt.unit)(Wt)} solid transparent`,transition:`border-color ${qt} ${sn}`,content:'""'},"&:hover, &-active, &-open":{background:Rt,"&::after":{borderBottomWidth:Wt,borderBottomColor:bn}},"&-selected":{color:bn,backgroundColor:fn,"&:hover":{backgroundColor:fn},"&::after":{borderBottomWidth:Wt,borderBottomColor:bn}}}}),[`&${we}-root`]:{[`&${we}-inline, &${we}-vertical`]:{borderInlineEnd:`${(0,nt.unit)(ln)} ${pt} ${Ft}`}},[`&${we}-inline`]:{[`${we}-sub${we}-inline`]:{background:Et},[`${we}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,nt.unit)(Ht)} solid ${Oe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Vt} ${Dt}`,`opacity ${Vt} ${Dt}`].join(","),content:'""'},[`&${we}-item-danger`]:{"&::after":{borderInlineEndColor:yt}}},[`${we}-selected, ${we}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Vt} ${sn}`,`opacity ${Vt} ${sn}`].join(",")}}}}}};const ce=re=>{const{componentCls:ve,itemHeight:we,itemMarginInline:ft,padding:Oe,menuArrowSize:Ye,marginXS:mt,itemMarginBlock:Bt,itemWidth:Et,itemPaddingInline:Ut}=re,Wt=re.calc(Ye).add(Oe).add(mt).equal();return{[`${ve}-item`]:{position:"relative",overflow:"hidden"},[`${ve}-item, ${ve}-submenu-title`]:{height:we,lineHeight:(0,nt.unit)(we),paddingInline:Ut,overflow:"hidden",textOverflow:"ellipsis",marginInline:ft,marginBlock:Bt,width:Et},[`> ${ve}-item,
> ${ve}-submenu > ${ve}-submenu-title`]:{height:we,lineHeight:(0,nt.unit)(we)},[`${ve}-item-group-list ${ve}-submenu-title,
${ve}-submenu-title`]:{paddingInlineEnd:Wt}}};var It=re=>{const{componentCls:ve,iconCls:we,itemHeight:ft,colorTextLightSolid:Oe,dropdownWidth:Ye,controlHeightLG:mt,motionEaseOut:Bt,paddingXL:Et,itemMarginInline:Ut,fontSizeLG:Wt,motionDurationFast:Ht,motionDurationSlow:ln,paddingXS:qt,boxShadowSecondary:sn,collapsedWidth:Dt,collapsedIconSize:tn}=re,Vt={height:ft,lineHeight:(0,nt.unit)(ft),listStylePosition:"inside",listStyleType:"disc"};return[{[ve]:{"&-inline, &-vertical":Object.assign({[`&${ve}-root`]:{boxShadow:"none"}},ce(re))},[`${ve}-submenu-popup`]:{[`${ve}-vertical`]:Object.assign(Object.assign({},ce(re)),{boxShadow:sn})}},{[`${ve}-submenu-popup ${ve}-vertical${ve}-sub`]:{minWidth:Ye,maxHeight:`calc(100vh - ${(0,nt.unit)(re.calc(mt).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ve}-inline`]:{width:"100%",[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${ln}`,`background ${ln}`,`padding ${Ht} ${Bt}`].join(","),[`> ${ve}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ve}-sub${ve}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ve}-submenu > ${ve}-submenu-title`]:Vt,[`& ${ve}-item-group-title`]:{paddingInlineStart:Et}},[`${ve}-item`]:Vt}},{[`${ve}-inline-collapsed`]:{width:Dt,[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu ${ve}-submenu-title`]:{[`> ${ve}-inline-collapsed-noicon`]:{fontSize:Wt,textAlign:"center"}}},[`> ${ve}-item,
> ${ve}-item-group > ${ve}-item-group-list > ${ve}-item,
> ${ve}-item-group > ${ve}-item-group-list > ${ve}-submenu > ${ve}-submenu-title,
> ${ve}-submenu > ${ve}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,nt.unit)(re.calc(tn).div(2).equal())} - ${(0,nt.unit)(Ut)})`,textOverflow:"clip",[`
${ve}-submenu-arrow,
${ve}-submenu-expand-icon
`]:{opacity:0},[`${ve}-item-icon, ${we}`]:{margin:0,fontSize:tn,lineHeight:(0,nt.unit)(ft),"+ span":{display:"inline-block",opacity:0}}},[`${ve}-item-icon, ${we}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ve}-item-icon, ${we}`]:{display:"none"},"a, a:hover":{color:Oe}},[`${ve}-item-group-title`]:Object.assign(Object.assign({},kt.vS),{paddingInline:qt})}}]};const bt=re=>{const{componentCls:ve,motionDurationSlow:we,motionDurationMid:ft,motionEaseInOut:Oe,motionEaseOut:Ye,iconCls:mt,iconSize:Bt,iconMarginInlineEnd:Et}=re;return{[`${ve}-item, ${ve}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${we}`,`background ${we}`,`padding calc(${we} + 0.1s) ${Oe}`].join(","),[`${ve}-item-icon, ${mt}`]:{minWidth:Bt,fontSize:Bt,transition:[`font-size ${ft} ${Ye}`,`margin ${we} ${Oe}`,`color ${we}`].join(","),"+ span":{marginInlineStart:Et,opacity:1,transition:[`opacity ${we} ${Oe}`,`margin ${we}`,`color ${we}`].join(",")}},[`${ve}-item-icon`]:Object.assign({},(0,kt.Ro)()),[`&${ve}-item-only-child`]:{[`> ${mt}, > ${ve}-item-icon`]:{marginInlineEnd:0}}},[`${ve}-item-disabled, ${ve}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${ve}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ge=re=>{const{componentCls:ve,motionDurationSlow:we,motionEaseInOut:ft,borderRadius:Oe,menuArrowSize:Ye,menuArrowOffset:mt}=re;return{[`${ve}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:re.margin,width:Ye,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${we} ${ft}, opacity ${we}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:re.calc(Ye).mul(.6).equal(),height:re.calc(Ye).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Oe,transition:[`background ${we} ${ft}`,`transform ${we} ${ft}`,`top ${we} ${ft}`,`color ${we} ${ft}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,nt.unit)(re.calc(mt).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,nt.unit)(mt)})`}}}}},He=re=>{const{antCls:ve,componentCls:we,fontSize:ft,motionDurationSlow:Oe,motionDurationMid:Ye,motionEaseInOut:mt,paddingXS:Bt,padding:Et,colorSplit:Ut,lineWidth:Wt,zIndexPopup:Ht,borderRadiusLG:ln,subMenuItemBorderRadius:qt,menuArrowSize:sn,menuArrowOffset:Dt,lineType:tn,groupTitleLineHeight:Vt,groupTitleFontSize:je}=re;return[{"":{[we]:Object.assign(Object.assign({},(0,kt.dF)()),{"&-hidden":{display:"none"}})},[`${we}-submenu-hidden`]:{display:"none"}},{[we]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,kt.Wf)(re)),(0,kt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ft,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Oe} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${we}-item`]:{flex:"none"}},[`${we}-item, ${we}-submenu, ${we}-submenu-title`]:{borderRadius:re.itemBorderRadius},[`${we}-item-group-title`]:{padding:`${(0,nt.unit)(Bt)} ${(0,nt.unit)(Et)}`,fontSize:je,lineHeight:Vt,transition:`all ${Oe}`},[`&-horizontal ${we}-submenu`]:{transition:[`border-color ${Oe} ${mt}`,`background ${Oe} ${mt}`].join(",")},[`${we}-submenu, ${we}-submenu-inline`]:{transition:[`border-color ${Oe} ${mt}`,`background ${Oe} ${mt}`,`padding ${Ye} ${mt}`].join(",")},[`${we}-submenu ${we}-sub`]:{cursor:"initial",transition:[`background ${Oe} ${mt}`,`padding ${Oe} ${mt}`].join(",")},[`${we}-title-content`]:{transition:`color ${Oe}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${ve}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${we}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:re.padding}},[`${we}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${we}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Ut,borderStyle:tn,borderWidth:0,borderTopWidth:Wt,marginBlock:Wt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),bt(re)),{[`${we}-item-group`]:{[`${we}-item-group-list`]:{margin:0,padding:0,[`${we}-item, ${we}-submenu-title`]:{paddingInline:`${(0,nt.unit)(re.calc(ft).mul(2).equal())} ${(0,nt.unit)(Et)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ht,borderRadius:ln,boxShadow:"none",transformOrigin:"0 0",[`&${we}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${we}`]:Object.assign(Object.assign(Object.assign({borderRadius:ln},bt(re)),ge(re)),{[`${we}-item, ${we}-submenu > ${we}-submenu-title`]:{borderRadius:qt},[`${we}-submenu-title::after`]:{transition:`transform ${Oe} ${mt}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:re.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:re.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:re.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:re.paddingXS}}}),ge(re)),{[`&-inline-collapsed ${we}-submenu-arrow,
&-inline ${we}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,nt.unit)(Dt)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,nt.unit)(re.calc(Dt).mul(-1).equal())})`}},[`${we}-submenu-open${we}-submenu-inline > ${we}-submenu-title > ${we}-submenu-arrow`]:{transform:`translateY(${(0,nt.unit)(re.calc(sn).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,nt.unit)(re.calc(Dt).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,nt.unit)(Dt)})`}}})},{[`${ve}-layout-header`]:{[we]:{lineHeight:"inherit"}}}]},Ge=re=>{var ve,we,ft;const{colorPrimary:Oe,colorError:Ye,colorTextDisabled:mt,colorErrorBg:Bt,colorText:Et,colorTextDescription:Ut,colorBgContainer:Wt,colorFillAlter:Ht,colorFillContent:ln,lineWidth:qt,lineWidthBold:sn,controlItemBgActive:Dt,colorBgTextHover:tn,controlHeightLG:Vt,lineHeight:je,colorBgElevated:pt,marginXXS:Ft,padding:jt,fontSize:Ne,controlHeightSM:ot,fontSizeLG:yt,colorTextLightSolid:Mt,colorErrorHover:Kt}=re,cn=(ve=re.activeBarWidth)!==null&&ve!==void 0?ve:0,Dn=(we=re.activeBarBorderWidth)!==null&&we!==void 0?we:qt,kn=(ft=re.itemMarginInline)!==null&&ft!==void 0?ft:re.marginXXS,un=new Fe.FastColor(Mt).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:re.zIndexPopupBase+50,radiusItem:re.borderRadiusLG,itemBorderRadius:re.borderRadiusLG,radiusSubMenuItem:re.borderRadiusSM,subMenuItemBorderRadius:re.borderRadiusSM,colorItemText:Et,itemColor:Et,colorItemTextHover:Et,itemHoverColor:Et,colorItemTextHoverHorizontal:Oe,horizontalItemHoverColor:Oe,colorGroupTitle:Ut,groupTitleColor:Ut,colorItemTextSelected:Oe,itemSelectedColor:Oe,subMenuItemSelectedColor:Oe,colorItemTextSelectedHorizontal:Oe,horizontalItemSelectedColor:Oe,colorItemBg:Wt,itemBg:Wt,colorItemBgHover:tn,itemHoverBg:tn,colorItemBgActive:ln,itemActiveBg:Dt,colorSubItemBg:Ht,subMenuItemBg:Ht,colorItemBgSelected:Dt,itemSelectedBg:Dt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:cn,colorActiveBarHeight:sn,activeBarHeight:sn,colorActiveBarBorderSize:qt,activeBarBorderWidth:Dn,colorItemTextDisabled:mt,itemDisabledColor:mt,colorDangerItemText:Ye,dangerItemColor:Ye,colorDangerItemTextHover:Ye,dangerItemHoverColor:Ye,colorDangerItemTextSelected:Ye,dangerItemSelectedColor:Ye,colorDangerItemBgActive:Bt,dangerItemActiveBg:Bt,colorDangerItemBgSelected:Bt,dangerItemSelectedBg:Bt,itemMarginInline:kn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Vt,groupTitleLineHeight:je,collapsedWidth:Vt*2,popupBg:pt,itemMarginBlock:Ft,itemPaddingInline:jt,horizontalLineHeight:`${Vt*1.15}px`,iconSize:Ne,iconMarginInlineEnd:ot-Ne,collapsedIconSize:yt,groupTitleFontSize:Ne,darkItemDisabledColor:new Fe.FastColor(Mt).setA(.25).toRgbString(),darkItemColor:un,darkDangerItemColor:Ye,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Mt,darkItemSelectedBg:Oe,darkDangerItemSelectedBg:Ye,darkItemHoverBg:"transparent",darkGroupTitleColor:un,darkItemHoverColor:Mt,darkDangerItemHoverColor:Kt,darkDangerItemSelectedColor:Mt,darkDangerItemActiveBg:Ye,itemWidth:cn?`calc(100% + ${Dn}px)`:`calc(100% - ${kn*2}px)`}};var Tt=function(re){let ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:re,we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Me.I$)("Menu",Oe=>{const{colorBgElevated:Ye,controlHeightLG:mt,fontSize:Bt,darkItemColor:Et,darkDangerItemColor:Ut,darkItemBg:Wt,darkSubMenuItemBg:Ht,darkItemSelectedColor:ln,darkItemSelectedBg:qt,darkDangerItemSelectedBg:sn,darkItemHoverBg:Dt,darkGroupTitleColor:tn,darkItemHoverColor:Vt,darkItemDisabledColor:je,darkDangerItemHoverColor:pt,darkDangerItemSelectedColor:Ft,darkDangerItemActiveBg:jt,popupBg:Ne,darkPopupBg:ot}=Oe,yt=Oe.calc(Bt).div(7).mul(5).equal(),Mt=(0,Ke.mergeToken)(Oe,{menuArrowSize:yt,menuHorizontalHeight:Oe.calc(mt).mul(1.15).equal(),menuArrowOffset:Oe.calc(yt).mul(.25).equal(),menuSubMenuBg:Ye,calc:Oe.calc,popupBg:Ne}),Kt=(0,Ke.mergeToken)(Mt,{itemColor:Et,itemHoverColor:Vt,groupTitleColor:tn,itemSelectedColor:ln,subMenuItemSelectedColor:ln,itemBg:Wt,popupBg:ot,subMenuItemBg:Ht,itemActiveBg:"transparent",itemSelectedBg:qt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Dt,itemDisabledColor:je,dangerItemColor:Ut,dangerItemHoverColor:pt,dangerItemSelectedColor:Ft,dangerItemActiveBg:jt,dangerItemSelectedBg:sn,menuSubMenuBg:Ht,horizontalItemSelectedColor:ln,horizontalItemSelectedBg:qt});return[He(Mt),se(Mt),It(Mt),ye(Mt,"light"),ye(Kt,"dark"),Le(Mt),(0,lt.Z)(Mt),(0,et.oN)(Mt,"slide-up"),(0,et.oN)(Mt,"slide-down"),(0,St._y)(Mt,"zoom-big")]},Ge,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:we,unitless:{groupTitleLineHeight:!0}})(re,ve)},wt=ne(75030),$e=re=>{var ve;const{popupClassName:we,icon:ft,title:Oe,theme:Ye}=re,mt=E.useContext(Ze),{prefixCls:Bt,inlineCollapsed:Et,theme:Ut}=mt,Wt=(0,Qe.Xl)();let Ht;if(!ft)Ht=Et&&!Wt.length&&Oe&&typeof Oe=="string"?E.createElement("div",{className:`${Bt}-inline-collapsed-noicon`},Oe.charAt(0)):E.createElement("span",{className:`${Bt}-title-content`},Oe);else{const sn=E.isValidElement(Oe)&&Oe.type==="span";Ht=E.createElement(E.Fragment,null,(0,he.Tm)(ft,{className:Be()(E.isValidElement(ft)?(ve=ft.props)===null||ve===void 0?void 0:ve.className:"",`${Bt}-item-icon`)}),sn?Oe:E.createElement("span",{className:`${Bt}-title-content`},Oe))}const ln=E.useMemo(()=>Object.assign(Object.assign({},mt),{firstLevel:!1}),[mt]),[qt]=(0,wt.Cn)("Menu");return E.createElement(Ze.Provider,{value:ln},E.createElement(Qe.Wd,Object.assign({},(0,We.Z)(re,["icon"]),{title:Ht,popupClassName:Be()(Bt,we,`${Bt}-${Ye||Ut}`),popupStyle:Object.assign({zIndex:qt},re.popupStyle)})))},At=function(re,ve){var we={};for(var ft in re)Object.prototype.hasOwnProperty.call(re,ft)&&ve.indexOf(ft)<0&&(we[ft]=re[ft]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,ft=Object.getOwnPropertySymbols(re);Oe<ft.length;Oe++)ve.indexOf(ft[Oe])<0&&Object.prototype.propertyIsEnumerable.call(re,ft[Oe])&&(we[ft[Oe]]=re[ft[Oe]]);return we};function st(re){return re===null||re===!1}const ae={item:ht,submenu:$e,divider:_e};var ee=(0,E.forwardRef)((re,ve)=>{var we;const ft=E.useContext(it.Z),Oe=ft||{},{getPrefixCls:Ye,getPopupContainer:mt,direction:Bt,menu:Et}=E.useContext(Je.E_),Ut=Ye(),{prefixCls:Wt,className:Ht,style:ln,theme:qt="light",expandIcon:sn,_internalDisableMenuItemTitleTooltip:Dt,inlineCollapsed:tn,siderCollapsed:Vt,rootClassName:je,mode:pt,selectable:Ft,onClick:jt,overflowedIndicatorPopupClassName:Ne}=re,ot=At(re,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),yt=(0,We.Z)(ot,["collapsedWidth"]);(we=Oe.validator)===null||we===void 0||we.call(Oe,{mode:pt});const Mt=(0,De.Z)(function(){var nn;jt==null||jt.apply(void 0,arguments),(nn=Oe.onClick)===null||nn===void 0||nn.call(Oe)}),Kt=Oe.mode||pt,cn=Ft!=null?Ft:Oe.selectable,Dn=tn!=null?tn:Vt,kn={horizontal:{motionName:`${Ut}-slide-up`},inline:(0,Ie.Z)(Ut),other:{motionName:`${Ut}-zoom-big`}},un=Ye("menu",Wt||Oe.prefixCls),bn=(0,Pe.Z)(un),[fn,Gt,Rt]=Tt(un,bn,!ft),_t=Be()(`${un}-${qt}`,Et==null?void 0:Et.className,Ht),Ot=E.useMemo(()=>{var nn,en;if(typeof sn=="function"||st(sn))return sn||null;if(typeof Oe.expandIcon=="function"||st(Oe.expandIcon))return Oe.expandIcon||null;if(typeof(Et==null?void 0:Et.expandIcon)=="function"||st(Et==null?void 0:Et.expandIcon))return(Et==null?void 0:Et.expandIcon)||null;const xn=(nn=sn!=null?sn:Oe==null?void 0:Oe.expandIcon)!==null&&nn!==void 0?nn:Et==null?void 0:Et.expandIcon;return(0,he.Tm)(xn,{className:Be()(`${un}-submenu-expand-icon`,E.isValidElement(xn)?(en=xn.props)===null||en===void 0?void 0:en.className:void 0)})},[sn,Oe==null?void 0:Oe.expandIcon,Et==null?void 0:Et.expandIcon,un]),an=E.useMemo(()=>({prefixCls:un,inlineCollapsed:Dn||!1,direction:Bt,firstLevel:!0,theme:qt,mode:Kt,disableMenuItemTitleTooltip:Dt}),[un,Dn,Bt,Dt,qt]);return fn(E.createElement(it.Z.Provider,{value:null},E.createElement(Ze.Provider,{value:an},E.createElement(Qe.ZP,Object.assign({getPopupContainer:mt,overflowedIndicator:E.createElement(tt.Z,null),overflowedIndicatorPopupClassName:Be()(un,`${un}-${qt}`,Ne),mode:Kt,selectable:cn,onClick:Mt},yt,{inlineCollapsed:Dn,style:Object.assign(Object.assign({},Et==null?void 0:Et.style),ln),className:_t,prefixCls:un,direction:Bt,defaultMotions:kn,expandIcon:Ot,ref:ve,rootClassName:Be()(je,Gt,Oe.rootClassName,Rt,bn),_internalComponents:ae})))))});const oe=(0,E.forwardRef)((re,ve)=>{const we=(0,E.useRef)(null),ft=E.useContext(xe.D);return(0,E.useImperativeHandle)(ve,()=>({menu:we.current,focus:Oe=>{var Ye;(Ye=we.current)===null||Ye===void 0||Ye.focus(Oe)}})),E.createElement(ee,Object.assign({ref:we},re,ft))});oe.Item=ht,oe.SubMenu=$e,oe.Divider=_e,oe.ItemGroup=Qe.BW;var ue=oe},89787:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return Vt}});var E=ne(59301),Qe=ne(17835),xe=ne(29679),tt=ne(40001),Ee=ne(19248),Be=ne(99267),De=ne(92310),We=ne.n(De),Ie=ne(2738),he=ne(48755),Je=ne(60499),Pe=ne(85899),dt=ne(42244),Ze={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Ce=function(){var pt=(0,E.useRef)([]),Ft=(0,E.useRef)(null);return(0,E.useEffect)(function(){var jt=Date.now(),Ne=!1;pt.current.forEach(function(ot){if(ot){Ne=!0;var yt=ot.style;yt.transitionDuration=".3s, .3s, .3s, .06s",Ft.current&&jt-Ft.current<100&&(yt.transitionDuration="0s, 0s")}}),Ne&&(Ft.current=Date.now())}),pt.current},Te=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],_e=function(pt){var Ft=(0,Pe.Z)((0,Pe.Z)({},Ze),pt),jt=Ft.className,Ne=Ft.percent,ot=Ft.prefixCls,yt=Ft.strokeColor,Mt=Ft.strokeLinecap,Kt=Ft.strokeWidth,cn=Ft.style,Dn=Ft.trailColor,kn=Ft.trailWidth,un=Ft.transition,bn=(0,dt.Z)(Ft,Te);delete bn.gapPosition;var fn=Array.isArray(Ne)?Ne:[Ne],Gt=Array.isArray(yt)?yt:[yt],Rt=Ce(),_t=Kt/2,Ot=100-Kt/2,an="M ".concat(Mt==="round"?_t:0,",").concat(_t,`
L `).concat(Mt==="round"?Ot:100,",").concat(_t),nn="0 0 100 ".concat(Kt),en=0;return E.createElement("svg",(0,Je.Z)({className:We()("".concat(ot,"-line"),jt),viewBox:nn,preserveAspectRatio:"none",style:cn},bn),E.createElement("path",{className:"".concat(ot,"-line-trail"),d:an,strokeLinecap:Mt,stroke:Dn,strokeWidth:kn||Kt,fillOpacity:"0"}),fn.map(function(xn,Pn){var Cn=1;switch(Mt){case"round":Cn=1-Kt/100;break;case"square":Cn=1-Kt/2/100;break;default:Cn=1;break}var Nn={strokeDasharray:"".concat(xn*Cn,"px, 100px"),strokeDashoffset:"-".concat(en,"px"),transition:un||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},An=Gt[Pn]||Gt[Gt.length-1];return en+=xn,E.createElement("path",{key:Pn,className:"".concat(ot,"-line-path"),d:an,strokeLinecap:Mt,stroke:An,strokeWidth:Kt,fillOpacity:"0",ref:function(zn){Rt[Pn]=zn},style:Nn})}))},rt=_e,gt=ne(43749),Pt=ne(72190),ht=ne(47273),it=0,nt=(0,ht.Z)();function Fe(){var je;return nt?(je=it,it+=1):je="TEST_OR_SSR",je}var kt=function(je){var pt=E.useState(),Ft=(0,Pt.Z)(pt,2),jt=Ft[0],Ne=Ft[1];return E.useEffect(function(){Ne("rc_progress_".concat(Fe()))},[]),je||jt},lt=function(pt){var Ft=pt.bg,jt=pt.children;return E.createElement("div",{style:{width:"100%",height:"100%",background:Ft}},jt)};function et(je,pt){return Object.keys(je).map(function(Ft){var jt=parseFloat(Ft),Ne="".concat(Math.floor(jt*pt),"%");return"".concat(je[Ft]," ").concat(Ne)})}var St=E.forwardRef(function(je,pt){var Ft=je.prefixCls,jt=je.color,Ne=je.gradientId,ot=je.radius,yt=je.style,Mt=je.ptg,Kt=je.strokeLinecap,cn=je.strokeWidth,Dn=je.size,kn=je.gapDegree,un=jt&&(0,gt.Z)(jt)==="object",bn=un?"#FFF":void 0,fn=Dn/2,Gt=E.createElement("circle",{className:"".concat(Ft,"-circle-path"),r:ot,cx:fn,cy:fn,stroke:bn,strokeLinecap:Kt,strokeWidth:cn,opacity:Mt===0?0:1,style:yt,ref:pt});if(!un)return Gt;var Rt="".concat(Ne,"-conic"),_t=kn?"".concat(180+kn/2,"deg"):"0deg",Ot=et(jt,(360-kn)/360),an=et(jt,1),nn="conic-gradient(from ".concat(_t,", ").concat(Ot.join(", "),")"),en="linear-gradient(to ".concat(kn?"bottom":"top",", ").concat(an.join(", "),")");return E.createElement(E.Fragment,null,E.createElement("mask",{id:Rt},Gt),E.createElement("foreignObject",{x:0,y:0,width:Dn,height:Dn,mask:"url(#".concat(Rt,")")},E.createElement(lt,{bg:en},E.createElement(lt,{bg:nn}))))}),Me=St,Ke=100,ze=function(pt,Ft,jt,Ne,ot,yt,Mt,Kt,cn,Dn){var kn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,un=jt/100*360*((360-yt)/360),bn=yt===0?0:{bottom:0,top:180,left:90,right:-90}[Mt],fn=(100-Ne)/100*Ft;cn==="round"&&Ne!==100&&(fn+=Dn/2,fn>=Ft&&(fn=Ft-.01));var Gt=Ke/2;return{stroke:typeof Kt=="string"?Kt:void 0,strokeDasharray:"".concat(Ft,"px ").concat(pt),strokeDashoffset:fn+kn,transform:"rotate(".concat(ot+un+bn,"deg)"),transformOrigin:"".concat(Gt,"px ").concat(Gt,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},se=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function qe(je){var pt=je!=null?je:[];return Array.isArray(pt)?pt:[pt]}var Le=function(pt){var Ft=(0,Pe.Z)((0,Pe.Z)({},Ze),pt),jt=Ft.id,Ne=Ft.prefixCls,ot=Ft.steps,yt=Ft.strokeWidth,Mt=Ft.trailWidth,Kt=Ft.gapDegree,cn=Kt===void 0?0:Kt,Dn=Ft.gapPosition,kn=Ft.trailColor,un=Ft.strokeLinecap,bn=Ft.style,fn=Ft.className,Gt=Ft.strokeColor,Rt=Ft.percent,_t=(0,dt.Z)(Ft,se),Ot=Ke/2,an=kt(jt),nn="".concat(an,"-gradient"),en=Ot-yt/2,xn=Math.PI*2*en,Pn=cn>0?90+cn/2:-90,Cn=xn*((360-cn)/360),Nn=(0,gt.Z)(ot)==="object"?ot:{count:ot,gap:2},An=Nn.count,Qn=Nn.gap,zn=qe(Rt),Nt=qe(Gt),Qt=Nt.find(function(fe){return fe&&(0,gt.Z)(fe)==="object"}),En=Qt&&(0,gt.Z)(Qt)==="object",mn=En?"butt":un,Xe=ze(xn,Cn,0,100,Pn,cn,Dn,kn,mn,yt),ut=Ce(),ke=function(){var pe=0;return zn.map(function(Ve,Xt){var rn=Nt[Xt]||Nt[Nt.length-1],Yt=ze(xn,Cn,pe,Ve,Pn,cn,Dn,rn,mn,yt);return pe+=Ve,E.createElement(Me,{key:Xt,color:rn,ptg:Ve,radius:en,prefixCls:Ne,gradientId:nn,style:Yt,strokeLinecap:mn,strokeWidth:yt,gapDegree:cn,ref:function(Re){ut[Xt]=Re},size:Ke})}).reverse()},be=function(){var pe=Math.round(An*(zn[0]/100)),Ve=100/An,Xt=0;return new Array(An).fill(null).map(function(rn,Yt){var Ct=Yt<=pe-1?Nt[0]:kn,Re=Ct&&(0,gt.Z)(Ct)==="object"?"url(#".concat(nn,")"):void 0,xt=ze(xn,Cn,Xt,Ve,Pn,cn,Dn,Ct,"butt",yt,Qn);return Xt+=(Cn-xt.strokeDashoffset+Qn)*100/Cn,E.createElement("circle",{key:Yt,className:"".concat(Ne,"-circle-path"),r:en,cx:Ot,cy:Ot,stroke:Re,strokeWidth:yt,opacity:1,style:xt,ref:function(gn){ut[Yt]=gn}})})};return E.createElement("svg",(0,Je.Z)({className:We()("".concat(Ne,"-circle"),fn),viewBox:"0 0 ".concat(Ke," ").concat(Ke),style:bn,id:jt,role:"presentation"},_t),!An&&E.createElement("circle",{className:"".concat(Ne,"-circle-trail"),r:en,cx:Ot,cy:Ot,stroke:kn,strokeLinecap:mn,strokeWidth:Mt||yt,style:Xe}),An?be():ke())},Ae=Le,ct={Line:rt,Circle:Ae},ye=ne(25399),ce=ne(68361);function Ue(je){return!je||je<0?0:je>100?100:je}function It(je){let{success:pt,successPercent:Ft}=je,jt=Ft;return pt&&"progress"in pt&&(jt=pt.progress),pt&&"percent"in pt&&(jt=pt.percent),jt}const bt=je=>{let{percent:pt,success:Ft,successPercent:jt}=je;const Ne=Ue(It({success:Ft,successPercent:jt}));return[Ne,Ue(Ue(pt)-Ne)]},ge=je=>{let{success:pt={},strokeColor:Ft}=je;const{strokeColor:jt}=pt;return[jt||ce.presetPrimaryColors.green,Ft||null]},He=(je,pt,Ft)=>{var jt,Ne,ot,yt;let Mt=-1,Kt=-1;if(pt==="step"){const cn=Ft.steps,Dn=Ft.strokeWidth;typeof je=="string"||typeof je=="undefined"?(Mt=je==="small"?2:14,Kt=Dn!=null?Dn:8):typeof je=="number"?[Mt,Kt]=[je,je]:[Mt=14,Kt=8]=Array.isArray(je)?je:[je.width,je.height],Mt*=cn}else if(pt==="line"){const cn=Ft==null?void 0:Ft.strokeWidth;typeof je=="string"||typeof je=="undefined"?Kt=cn||(je==="small"?6:8):typeof je=="number"?[Mt,Kt]=[je,je]:[Mt=-1,Kt=8]=Array.isArray(je)?je:[je.width,je.height]}else(pt==="circle"||pt==="dashboard")&&(typeof je=="string"||typeof je=="undefined"?[Mt,Kt]=je==="small"?[60,60]:[120,120]:typeof je=="number"?[Mt,Kt]=[je,je]:Array.isArray(je)&&(Mt=(Ne=(jt=je[0])!==null&&jt!==void 0?jt:je[1])!==null&&Ne!==void 0?Ne:120,Kt=(yt=(ot=je[0])!==null&&ot!==void 0?ot:je[1])!==null&&yt!==void 0?yt:120));return[Mt,Kt]},Ge=3,Tt=je=>Ge/je*100;var Lt=je=>{const{prefixCls:pt,trailColor:Ft=null,strokeLinecap:jt="round",gapPosition:Ne,gapDegree:ot,width:yt=120,type:Mt,children:Kt,success:cn,size:Dn=yt,steps:kn}=je,[un,bn]=He(Dn,"circle");let{strokeWidth:fn}=je;fn===void 0&&(fn=Math.max(Tt(un),6));const Gt={width:un,height:bn,fontSize:un*.15+6},Rt=E.useMemo(()=>{if(ot||ot===0)return ot;if(Mt==="dashboard")return 75},[ot,Mt]),_t=bt(je),Ot=Ne||Mt==="dashboard"&&"bottom"||void 0,an=Object.prototype.toString.call(je.strokeColor)==="[object Object]",nn=ge({success:cn,strokeColor:je.strokeColor}),en=We()(`${pt}-inner`,{[`${pt}-circle-gradient`]:an}),xn=E.createElement(Ae,{steps:kn,percent:kn?_t[1]:_t,strokeWidth:fn,trailWidth:fn,strokeColor:kn?nn[1]:nn,strokeLinecap:jt,trailColor:Ft,prefixCls:pt,gapDegree:Rt,gapPosition:Ot}),Pn=un<=20,Cn=E.createElement("div",{className:en,style:Gt},xn,!Pn&&Kt);return Pn?E.createElement(ye.Z,{title:Kt},Cn):Cn},$e=ne(36237),At=ne(63356),st=ne(16931),ae=ne(51636);const te="--progress-line-stroke-color",ee="--progress-percent",oe=je=>{const pt=je?"100%":"-100%";return new $e.Keyframes(`antProgress${je?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${pt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${pt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ue=je=>{const{componentCls:pt,iconCls:Ft}=je;return{[pt]:Object.assign(Object.assign({},(0,At.Wf)(je)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:je.fontSize},[`${pt}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${pt}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:je.remainingColor,borderRadius:je.lineBorderRadius},[`${pt}-inner:not(${pt}-circle-gradient)`]:{[`${pt}-circle-path`]:{stroke:je.defaultColor}},[`${pt}-success-bg, ${pt}-bg`]:{position:"relative",background:je.defaultColor,borderRadius:je.lineBorderRadius,transition:`all ${je.motionDurationSlow} ${je.motionEaseInOutCirc}`},[`${pt}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${pt}-text`]:{width:"max-content",marginInlineStart:0,marginTop:je.marginXXS}},[`${pt}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${te})`]},height:"100%",width:`calc(1 / var(${ee}) * 100%)`,display:"block"},[`&${pt}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${pt}-text-inner`]:{color:je.colorWhite,[`&${pt}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${pt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:je.colorSuccess},[`${pt}-text`]:{display:"inline-block",marginInlineStart:je.marginXS,color:je.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Ft]:{fontSize:je.fontSize},[`&${pt}-text-outer`]:{width:"max-content"},[`&${pt}-text-outer${pt}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:je.marginXS}},[`${pt}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,$e.unit)(je.paddingXXS)}`,[`&${pt}-text-start`]:{justifyContent:"start"},[`&${pt}-text-end`]:{justifyContent:"end"}},[`&${pt}-status-active`]:{[`${pt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:je.colorBgContainer,borderRadius:je.lineBorderRadius,opacity:0,animationName:oe(),animationDuration:je.progressActiveMotionDuration,animationTimingFunction:je.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${pt}-rtl${pt}-status-active`]:{[`${pt}-bg::before`]:{animationName:oe(!0)}},[`&${pt}-status-exception`]:{[`${pt}-bg`]:{backgroundColor:je.colorError},[`${pt}-text`]:{color:je.colorError}},[`&${pt}-status-exception ${pt}-inner:not(${pt}-circle-gradient)`]:{[`${pt}-circle-path`]:{stroke:je.colorError}},[`&${pt}-status-success`]:{[`${pt}-bg`]:{backgroundColor:je.colorSuccess},[`${pt}-text`]:{color:je.colorSuccess}},[`&${pt}-status-success ${pt}-inner:not(${pt}-circle-gradient)`]:{[`${pt}-circle-path`]:{stroke:je.colorSuccess}}})}},re=je=>{const{componentCls:pt,iconCls:Ft}=je;return{[pt]:{[`${pt}-circle-trail`]:{stroke:je.remainingColor},[`&${pt}-circle ${pt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${pt}-circle ${pt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:je.circleTextColor,fontSize:je.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Ft]:{fontSize:je.circleIconFontSize}},[`${pt}-circle&-status-exception`]:{[`${pt}-text`]:{color:je.colorError}},[`${pt}-circle&-status-success`]:{[`${pt}-text`]:{color:je.colorSuccess}}},[`${pt}-inline-circle`]:{lineHeight:1,[`${pt}-inner`]:{verticalAlign:"bottom"}}}},ve=je=>{const{componentCls:pt}=je;return{[pt]:{[`${pt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:je.progressStepMinWidth,marginInlineEnd:je.progressStepMarginInlineEnd,backgroundColor:je.remainingColor,transition:`all ${je.motionDurationSlow}`,"&-active":{backgroundColor:je.defaultColor}}}}}},we=je=>{const{componentCls:pt,iconCls:Ft}=je;return{[pt]:{[`${pt}-small&-line, ${pt}-small&-line ${pt}-text ${Ft}`]:{fontSize:je.fontSizeSM}}}},ft=je=>({circleTextColor:je.colorText,defaultColor:je.colorInfo,remainingColor:je.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${je.fontSize/je.fontSizeSM}em`});var Oe=(0,st.I$)("Progress",je=>{const pt=je.calc(je.marginXXS).div(2).equal(),Ft=(0,ae.mergeToken)(je,{progressStepMarginInlineEnd:pt,progressStepMinWidth:pt,progressActiveMotionDuration:"2.4s"});return[ue(Ft),re(Ft),ve(Ft),we(Ft)]},ft),Ye=function(je,pt){var Ft={};for(var jt in je)Object.prototype.hasOwnProperty.call(je,jt)&&pt.indexOf(jt)<0&&(Ft[jt]=je[jt]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,jt=Object.getOwnPropertySymbols(je);Ne<jt.length;Ne++)pt.indexOf(jt[Ne])<0&&Object.prototype.propertyIsEnumerable.call(je,jt[Ne])&&(Ft[jt[Ne]]=je[jt[Ne]]);return Ft};const mt=je=>{let pt=[];return Object.keys(je).forEach(Ft=>{const jt=parseFloat(Ft.replace(/%/g,""));Number.isNaN(jt)||pt.push({key:jt,value:je[Ft]})}),pt=pt.sort((Ft,jt)=>Ft.key-jt.key),pt.map(Ft=>{let{key:jt,value:Ne}=Ft;return`${Ne} ${jt}%`}).join(", ")},Bt=(je,pt)=>{const{from:Ft=ce.presetPrimaryColors.blue,to:jt=ce.presetPrimaryColors.blue,direction:Ne=pt==="rtl"?"to left":"to right"}=je,ot=Ye(je,["from","to","direction"]);if(Object.keys(ot).length!==0){const Mt=mt(ot),Kt=`linear-gradient(${Ne}, ${Mt})`;return{background:Kt,[te]:Kt}}const yt=`linear-gradient(${Ne}, ${Ft}, ${jt})`;return{background:yt,[te]:yt}};var Ut=je=>{const{prefixCls:pt,direction:Ft,percent:jt,size:Ne,strokeWidth:ot,strokeColor:yt,strokeLinecap:Mt="round",children:Kt,trailColor:cn=null,percentPosition:Dn,success:kn}=je,{align:un,type:bn}=Dn,fn=yt&&typeof yt!="string"?Bt(yt,Ft):{[te]:yt,background:yt},Gt=Mt==="square"||Mt==="butt"?0:void 0,Rt=Ne!=null?Ne:[-1,ot||(Ne==="small"?6:8)],[_t,Ot]=He(Rt,"line",{strokeWidth:ot}),an={backgroundColor:cn||void 0,borderRadius:Gt},nn=Object.assign(Object.assign({width:`${Ue(jt)}%`,height:Ot,borderRadius:Gt},fn),{[ee]:Ue(jt)/100}),en=It(je),xn={width:`${Ue(en)}%`,height:Ot,borderRadius:Gt,backgroundColor:kn==null?void 0:kn.strokeColor},Pn={width:_t<0?"100%":_t},Cn=E.createElement("div",{className:`${pt}-inner`,style:an},E.createElement("div",{className:We()(`${pt}-bg`,`${pt}-bg-${bn}`),style:nn},bn==="inner"&&Kt),en!==void 0&&E.createElement("div",{className:`${pt}-success-bg`,style:xn})),Nn=bn==="outer"&&un==="start",An=bn==="outer"&&un==="end";return bn==="outer"&&un==="center"?E.createElement("div",{className:`${pt}-layout-bottom`},Cn,Kt):E.createElement("div",{className:`${pt}-outer`,style:Pn},Nn&&Kt,Cn,An&&Kt)},Ht=je=>{const{size:pt,steps:Ft,rounding:jt=Math.round,percent:Ne=0,strokeWidth:ot=8,strokeColor:yt,trailColor:Mt=null,prefixCls:Kt,children:cn}=je,Dn=jt(Ft*(Ne/100)),kn=pt==="small"?2:14,un=pt!=null?pt:[kn,ot],[bn,fn]=He(un,"step",{steps:Ft,strokeWidth:ot}),Gt=bn/Ft,Rt=Array.from({length:Ft});for(let _t=0;_t<Ft;_t++){const Ot=Array.isArray(yt)?yt[_t]:yt;Rt[_t]=E.createElement("div",{key:_t,className:We()(`${Kt}-steps-item`,{[`${Kt}-steps-item-active`]:_t<=Dn-1}),style:{backgroundColor:_t<=Dn-1?Ot:Mt,width:Gt,height:fn}})}return E.createElement("div",{className:`${Kt}-steps-outer`},Rt,cn)},ln=function(je,pt){var Ft={};for(var jt in je)Object.prototype.hasOwnProperty.call(je,jt)&&pt.indexOf(jt)<0&&(Ft[jt]=je[jt]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,jt=Object.getOwnPropertySymbols(je);Ne<jt.length;Ne++)pt.indexOf(jt[Ne])<0&&Object.prototype.propertyIsEnumerable.call(je,jt[Ne])&&(Ft[jt[Ne]]=je[jt[Ne]]);return Ft};const qt=null,sn=["normal","exception","active","success"];var tn=E.forwardRef((je,pt)=>{const{prefixCls:Ft,className:jt,rootClassName:Ne,steps:ot,strokeColor:yt,percent:Mt=0,size:Kt="default",showInfo:cn=!0,type:Dn="line",status:kn,format:un,style:bn,percentPosition:fn={}}=je,Gt=ln(je,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:Rt="end",type:_t="outer"}=fn,Ot=Array.isArray(yt)?yt[0]:yt,an=typeof yt=="string"||Array.isArray(yt)?yt:void 0,nn=E.useMemo(()=>{if(Ot){const ke=typeof Ot=="string"?Ot:Object.values(Ot)[0];return new Qe.FastColor(ke).isLight()}return!1},[yt]),en=E.useMemo(()=>{var ke,be;const fe=It(je);return parseInt(fe!==void 0?(ke=fe!=null?fe:0)===null||ke===void 0?void 0:ke.toString():(be=Mt!=null?Mt:0)===null||be===void 0?void 0:be.toString(),10)},[Mt,je.success,je.successPercent]),xn=E.useMemo(()=>!sn.includes(kn)&&en>=100?"success":kn||"normal",[kn,en]),{getPrefixCls:Pn,direction:Cn,progress:Nn}=E.useContext(he.E_),An=Pn("progress",Ft),[Qn,zn,Nt]=Oe(An),Qt=Dn==="line",En=Qt&&!ot,mn=E.useMemo(()=>{if(!cn)return null;const ke=It(je);let be;const fe=un||(Ve=>`${Ve}%`),pe=Qt&&nn&&_t==="inner";return _t==="inner"||un||xn!=="exception"&&xn!=="success"?be=fe(Ue(Mt),Ue(ke)):xn==="exception"?be=Qt?E.createElement(Ee.Z,null):E.createElement(Be.Z,null):xn==="success"&&(be=Qt?E.createElement(xe.Z,null):E.createElement(tt.Z,null)),E.createElement("span",{className:We()(`${An}-text`,{[`${An}-text-bright`]:pe,[`${An}-text-${Rt}`]:En,[`${An}-text-${_t}`]:En}),title:typeof be=="string"?be:void 0},be)},[cn,Mt,en,xn,Dn,An,un]);let Xe;Dn==="line"?Xe=ot?E.createElement(Ht,Object.assign({},je,{strokeColor:an,prefixCls:An,steps:typeof ot=="object"?ot.count:ot}),mn):E.createElement(Ut,Object.assign({},je,{strokeColor:Ot,prefixCls:An,direction:Cn,percentPosition:{align:Rt,type:_t}}),mn):(Dn==="circle"||Dn==="dashboard")&&(Xe=E.createElement(Lt,Object.assign({},je,{strokeColor:Ot,prefixCls:An,progressStatus:xn}),mn));const ut=We()(An,`${An}-status-${xn}`,{[`${An}-${Dn==="dashboard"&&"circle"||Dn}`]:Dn!=="line",[`${An}-inline-circle`]:Dn==="circle"&&He(Kt,"circle")[0]<=20,[`${An}-line`]:En,[`${An}-line-align-${Rt}`]:En,[`${An}-line-position-${_t}`]:En,[`${An}-steps`]:ot,[`${An}-show-info`]:cn,[`${An}-${Kt}`]:typeof Kt=="string",[`${An}-rtl`]:Cn==="rtl"},Nn==null?void 0:Nn.className,jt,Ne,zn,Nt);return Qn(E.createElement("div",Object.assign({ref:pt,style:Object.assign(Object.assign({},Nn==null?void 0:Nn.style),bn),className:ut,role:"progressbar","aria-valuenow":en,"aria-valuemin":0,"aria-valuemax":100},(0,Ie.Z)(Gt,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Xe))}),Vt=tn},63139:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return bt}});var E=ne(59301),Qe=ne(60499),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},tt=xe,Ee=ne(7657),Be=function(He,Ge){return E.createElement(Ee.Z,(0,Qe.Z)({},He,{ref:Ge,icon:tt}))},De=E.forwardRef(Be),We=De,Ie=ne(92310),he=ne.n(Ie),Je=ne(18642),Pe=ne(72190),dt=ne(42244),Ze=ne(18929),Ce=ne(10228),Te=ne(26112);function _e(ge,He){var Ge=ge.disabled,Tt=ge.prefixCls,wt=ge.character,Lt=ge.characterRender,$e=ge.index,At=ge.count,st=ge.value,ae=ge.allowHalf,te=ge.focused,ee=ge.onHover,oe=ge.onClick,ue=function(Bt){ee(Bt,$e)},re=function(Bt){oe(Bt,$e)},ve=function(Bt){Bt.keyCode===Ce.Z.ENTER&&oe(Bt,$e)},we=$e+1,ft=new Set([Tt]);st===0&&$e===0&&te?ft.add("".concat(Tt,"-focused")):ae&&st+.5>=we&&st<we?(ft.add("".concat(Tt,"-half")),ft.add("".concat(Tt,"-active")),te&&ft.add("".concat(Tt,"-focused"))):(we<=st?ft.add("".concat(Tt,"-full")):ft.add("".concat(Tt,"-zero")),we===st&&te&&ft.add("".concat(Tt,"-focused")));var Oe=typeof wt=="function"?wt(ge):wt,Ye=E.createElement("li",{className:he()(Array.from(ft)),ref:He},E.createElement("div",{onClick:Ge?null:re,onKeyDown:Ge?null:ve,onMouseMove:Ge?null:ue,role:"radio","aria-checked":st>$e?"true":"false","aria-posinset":$e+1,"aria-setsize":At,tabIndex:Ge?-1:0},E.createElement("div",{className:"".concat(Tt,"-first")},Oe),E.createElement("div",{className:"".concat(Tt,"-second")},Oe)));return Lt&&(Ye=Lt(Ye,ge)),Ye}var rt=E.forwardRef(_e);function gt(){var ge=E.useRef({});function He(Tt){return ge.current[Tt]}function Ge(Tt){return function(wt){ge.current[Tt]=wt}}return[He,Ge]}function Pt(ge){var He=ge.pageXOffset,Ge="scrollLeft";if(typeof He!="number"){var Tt=ge.document;He=Tt.documentElement[Ge],typeof He!="number"&&(He=Tt.body[Ge])}return He}function ht(ge){var He,Ge,Tt=ge.ownerDocument,wt=Tt.body,Lt=Tt&&Tt.documentElement,$e=ge.getBoundingClientRect();return He=$e.left,Ge=$e.top,He-=Lt.clientLeft||wt.clientLeft||0,Ge-=Lt.clientTop||wt.clientTop||0,{left:He,top:Ge}}function it(ge){var He=ht(ge),Ge=ge.ownerDocument,Tt=Ge.defaultView||Ge.parentWindow;return He.left+=Pt(Tt),He.left}var nt=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Fe(ge,He){var Ge=ge.prefixCls,Tt=Ge===void 0?"rc-rate":Ge,wt=ge.className,Lt=ge.defaultValue,$e=ge.value,At=ge.count,st=At===void 0?5:At,ae=ge.allowHalf,te=ae===void 0?!1:ae,ee=ge.allowClear,oe=ee===void 0?!0:ee,ue=ge.keyboard,re=ue===void 0?!0:ue,ve=ge.character,we=ve===void 0?"\u2605":ve,ft=ge.characterRender,Oe=ge.disabled,Ye=ge.direction,mt=Ye===void 0?"ltr":Ye,Bt=ge.tabIndex,Et=Bt===void 0?0:Bt,Ut=ge.autoFocus,Wt=ge.onHoverChange,Ht=ge.onChange,ln=ge.onFocus,qt=ge.onBlur,sn=ge.onKeyDown,Dt=ge.onMouseLeave,tn=(0,dt.Z)(ge,nt),Vt=gt(),je=(0,Pe.Z)(Vt,2),pt=je[0],Ft=je[1],jt=E.useRef(null),Ne=function(){if(!Oe){var mn;(mn=jt.current)===null||mn===void 0||mn.focus()}};E.useImperativeHandle(He,function(){return{focus:Ne,blur:function(){if(!Oe){var mn;(mn=jt.current)===null||mn===void 0||mn.blur()}}}});var ot=(0,Ze.Z)(Lt||0,{value:$e}),yt=(0,Pe.Z)(ot,2),Mt=yt[0],Kt=yt[1],cn=(0,Ze.Z)(null),Dn=(0,Pe.Z)(cn,2),kn=Dn[0],un=Dn[1],bn=function(mn,Xe){var ut=mt==="rtl",ke=mn+1;if(te){var be=pt(mn),fe=it(be),pe=be.clientWidth;(ut&&Xe-fe>pe/2||!ut&&Xe-fe<pe/2)&&(ke-=.5)}return ke},fn=function(mn){Kt(mn),Ht==null||Ht(mn)},Gt=E.useState(!1),Rt=(0,Pe.Z)(Gt,2),_t=Rt[0],Ot=Rt[1],an=function(){Ot(!0),ln==null||ln()},nn=function(){Ot(!1),qt==null||qt()},en=E.useState(null),xn=(0,Pe.Z)(en,2),Pn=xn[0],Cn=xn[1],Nn=function(mn,Xe){var ut=bn(Xe,mn.pageX);ut!==kn&&(Cn(ut),un(null)),Wt==null||Wt(ut)},An=function(mn){Oe||(Cn(null),un(null),Wt==null||Wt(void 0)),mn&&(Dt==null||Dt(mn))},Qn=function(mn,Xe){var ut=bn(Xe,mn.pageX),ke=!1;oe&&(ke=ut===Mt),An(),fn(ke?0:ut),un(ke?ut:null)},zn=function(mn){var Xe=mn.keyCode,ut=mt==="rtl",ke=te?.5:1;re&&(Xe===Ce.Z.RIGHT&&Mt<st&&!ut?(fn(Mt+ke),mn.preventDefault()):Xe===Ce.Z.LEFT&&Mt>0&&!ut||Xe===Ce.Z.RIGHT&&Mt>0&&ut?(fn(Mt-ke),mn.preventDefault()):Xe===Ce.Z.LEFT&&Mt<st&&ut&&(fn(Mt+ke),mn.preventDefault())),sn==null||sn(mn)};E.useEffect(function(){Ut&&!Oe&&Ne()},[]);var Nt=new Array(st).fill(0).map(function(En,mn){return E.createElement(rt,{ref:Ft(mn),index:mn,count:st,disabled:Oe,prefixCls:"".concat(Tt,"-star"),allowHalf:te,value:Pn===null?Mt:Pn,onClick:Qn,onHover:Nn,key:En||mn,character:we,characterRender:ft,focused:_t})}),Qt=he()(Tt,wt,(0,Je.Z)((0,Je.Z)({},"".concat(Tt,"-disabled"),Oe),"".concat(Tt,"-rtl"),mt==="rtl"));return E.createElement("ul",(0,Qe.Z)({className:Qt,onMouseLeave:An,tabIndex:Oe?-1:Et,onFocus:Oe?null:an,onBlur:Oe?null:nn,onKeyDown:Oe?null:zn,ref:jt},(0,Te.Z)(tn,{aria:!0,data:!0,attr:!0})),Nt)}var kt=E.forwardRef(Fe),lt=kt,et=ne(48755),St=ne(25399),Me=ne(36237),Ke=ne(63356),ze=ne(16931),se=ne(51636);const qe=ge=>{const{componentCls:He}=ge;return{[`${He}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:ge.marginXS},"> div":{transition:`all ${ge.motionDurationMid}, outline 0s`,"&:hover":{transform:ge.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,Me.unit)(ge.lineWidth)} dashed ${ge.starColor}`,transform:ge.starHoverScale}},"&-first, &-second":{color:ge.starBg,transition:`all ${ge.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${He}-star-first, &-half ${He}-star-second`]:{opacity:1},[`&-half ${He}-star-first, &-full ${He}-star-second`]:{color:"inherit"}}}},Le=ge=>({[`&-rtl${ge.componentCls}`]:{direction:"rtl"}}),Ae=ge=>{const{componentCls:He}=ge;return{[He]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ke.Wf)(ge)),{display:"inline-block",margin:0,padding:0,color:ge.starColor,fontSize:ge.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${He} ${He}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),qe(ge)),Le(ge))}},ct=ge=>({starColor:ge.yellow6,starSize:ge.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:ge.colorFillContent});var ye=(0,ze.I$)("Rate",ge=>{const He=(0,se.mergeToken)(ge,{});return[Ae(He)]},ct),ce=ne(2171),Ue=function(ge,He){var Ge={};for(var Tt in ge)Object.prototype.hasOwnProperty.call(ge,Tt)&&He.indexOf(Tt)<0&&(Ge[Tt]=ge[Tt]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wt=0,Tt=Object.getOwnPropertySymbols(ge);wt<Tt.length;wt++)He.indexOf(Tt[wt])<0&&Object.prototype.propertyIsEnumerable.call(ge,Tt[wt])&&(Ge[Tt[wt]]=ge[Tt[wt]]);return Ge},bt=E.forwardRef((ge,He)=>{const{prefixCls:Ge,className:Tt,rootClassName:wt,style:Lt,tooltips:$e,character:At=E.createElement(We,null),disabled:st}=ge,ae=Ue(ge,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),te=(Bt,Et)=>{let{index:Ut}=Et;return $e?E.createElement(St.Z,{title:$e[Ut]},Bt):Bt},{getPrefixCls:ee,direction:oe,rate:ue}=E.useContext(et.E_),re=ee("rate",Ge),[ve,we,ft]=ye(re),Oe=Object.assign(Object.assign({},ue==null?void 0:ue.style),Lt),Ye=E.useContext(ce.Z),mt=st!=null?st:Ye;return ve(E.createElement(lt,Object.assign({ref:He,character:At,characterRender:te,disabled:mt},ae,{className:he()(Tt,wt,we,ft,ue==null?void 0:ue.className),style:Oe,prefixCls:re,direction:oe})))})},82326:function(on,$t,ne){"use strict";var E=ne(59301),Qe=ne(92310),xe=ne.n(Qe),tt=ne(37463),Ee=ne(2738),Be=ne(75030),De=ne(86641),We=ne(45915),Ie=ne(82855),he=ne(48755),Je=ne(38406),Pe=ne(2171),dt=ne(83397),Ze=ne(31756),Ce=ne(56553),Te=ne(24971),_e=ne(70045),rt=ne(57700),gt=ne(1722),Pt=ne(90376),ht=ne(68525),it=ne(90005),nt=function(St,Me){var Ke={};for(var ze in St)Object.prototype.hasOwnProperty.call(St,ze)&&Me.indexOf(ze)<0&&(Ke[ze]=St[ze]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,ze=Object.getOwnPropertySymbols(St);se<ze.length;se++)Me.indexOf(ze[se])<0&&Object.prototype.propertyIsEnumerable.call(St,ze[se])&&(Ke[ze[se]]=St[ze[se]]);return Ke};const Fe="SECRET_COMBOBOX_MODE_DO_NOT_USE",kt=(St,Me)=>{var Ke;const{prefixCls:ze,bordered:se,className:qe,rootClassName:Le,getPopupContainer:Ae,popupClassName:ct,dropdownClassName:ye,listHeight:ce=256,placement:Ue,listItemHeight:It,size:bt,disabled:ge,notFoundContent:He,status:Ge,builtinPlacements:Tt,dropdownMatchSelectWidth:wt,popupMatchSelectWidth:Lt,direction:$e,style:At,allowClear:st,variant:ae,dropdownStyle:te,transitionName:ee,tagRender:oe,maxCount:ue,prefix:re}=St,ve=nt(St,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:we,getPrefixCls:ft,renderEmpty:Oe,direction:Ye,virtual:mt,popupMatchSelectWidth:Bt,popupOverflow:Et}=E.useContext(he.E_),Ut=(0,he.dj)("select"),[,Wt]=(0,rt.ZP)(),Ht=It!=null?It:Wt==null?void 0:Wt.controlHeight,ln=ft("select",ze),qt=ft(),sn=$e!=null?$e:Ye,{compactSize:Dt,compactItemClassnames:tn}=(0,_e.ri)(ln,sn),[Vt,je]=(0,Te.Z)("select",ae,se),pt=(0,dt.Z)(ln),[Ft,jt,Ne]=(0,Pt.Z)(ln,pt),ot=E.useMemo(()=>{const{mode:zn}=St;if(zn!=="combobox")return zn===Fe?"combobox":zn},[St.mode]),yt=ot==="multiple"||ot==="tags",Mt=(0,it.Z)(St.suffixIcon,St.showArrow),Kt=(Ke=Lt!=null?Lt:wt)!==null&&Ke!==void 0?Ke:Bt,{status:cn,hasFeedback:Dn,isFormItemInput:kn,feedbackIcon:un}=E.useContext(Ce.aM),bn=(0,Ie.F)(cn,Ge);let fn;He!==void 0?fn=He:ot==="combobox"?fn=null:fn=(Oe==null?void 0:Oe("Select"))||E.createElement(Je.Z,{componentName:"Select"});const{suffixIcon:Gt,itemIcon:Rt,removeIcon:_t,clearIcon:Ot}=(0,ht.Z)(Object.assign(Object.assign({},ve),{multiple:yt,hasFeedback:Dn,feedbackIcon:un,showSuffixIcon:Mt,prefixCls:ln,componentName:"Select"})),an=st===!0?{clearIcon:Ot}:st,nn=(0,Ee.Z)(ve,["suffixIcon","itemIcon"]),en=xe()(ct||ye,{[`${ln}-dropdown-${sn}`]:sn==="rtl"},Le,Ne,pt,jt),xn=(0,Ze.Z)(zn=>{var Nt;return(Nt=bt!=null?bt:Dt)!==null&&Nt!==void 0?Nt:zn}),Pn=E.useContext(Pe.Z),Cn=ge!=null?ge:Pn,Nn=xe()({[`${ln}-lg`]:xn==="large",[`${ln}-sm`]:xn==="small",[`${ln}-rtl`]:sn==="rtl",[`${ln}-${Vt}`]:je,[`${ln}-in-form-item`]:kn},(0,Ie.Z)(ln,bn,Dn),tn,Ut.className,qe,Le,Ne,pt,jt),An=E.useMemo(()=>Ue!==void 0?Ue:sn==="rtl"?"bottomRight":"bottomLeft",[Ue,sn]),[Qn]=(0,Be.Cn)("SelectLike",te==null?void 0:te.zIndex);return Ft(E.createElement(tt.ZP,Object.assign({ref:Me,virtual:mt,showSearch:Ut.showSearch},nn,{style:Object.assign(Object.assign({},Ut.style),At),dropdownMatchSelectWidth:Kt,transitionName:(0,De.m)(qt,"slide-up",ee),builtinPlacements:(0,gt.Z)(Tt,Et),listHeight:ce,listItemHeight:Ht,mode:ot,prefixCls:ln,placement:An,direction:sn,prefix:re,suffixIcon:Gt,menuItemSelectedIcon:Rt,removeIcon:_t,allowClear:an,notFoundContent:fn,className:Nn,getPopupContainer:Ae||we,dropdownClassName:en,disabled:Cn,dropdownStyle:Object.assign(Object.assign({},te),{zIndex:Qn}),maxCount:yt?ue:void 0,tagRender:yt?oe:void 0})))},lt=E.forwardRef(kt),et=(0,We.Z)(lt,"dropdownAlign");lt.SECRET_COMBOBOX_MODE_DO_NOT_USE=Fe,lt.Option=tt.Wx,lt.OptGroup=tt.Xo,lt._InternalPanelDoNotUseOrYouWillBeFired=et,$t.default=lt},1722:function(on,$t){"use strict";const ne=Qe=>{const tt={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Qe==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},tt),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},tt),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},tt),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},tt),{points:["br","tr"],offset:[0,-4]})}};function E(Qe,xe){return Qe||ne(xe)}$t.Z=E},90376:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return ze}});var E=ne(63356),Qe=ne(56119),xe=ne(16931),tt=ne(51636),Ee=ne(46e3),Be=ne(93873);const De=se=>{const{optionHeight:qe,optionFontSize:Le,optionLineHeight:Ae,optionPadding:ct}=se;return{position:"relative",display:"block",minHeight:qe,padding:ct,color:se.colorText,fontWeight:"normal",fontSize:Le,lineHeight:Ae,boxSizing:"border-box"}};var Ie=se=>{const{antCls:qe,componentCls:Le}=se,Ae=`${Le}-item`,ct=`&${qe}-slide-up-enter${qe}-slide-up-enter-active`,ye=`&${qe}-slide-up-appear${qe}-slide-up-appear-active`,ce=`&${qe}-slide-up-leave${qe}-slide-up-leave-active`,Ue=`${Le}-dropdown-placement-`,It=`${Ae}-option-selected`;return[{[`${Le}-dropdown`]:Object.assign(Object.assign({},(0,E.Wf)(se)),{position:"absolute",top:-9999,zIndex:se.zIndexPopup,boxSizing:"border-box",padding:se.paddingXXS,overflow:"hidden",fontSize:se.fontSize,fontVariant:"initial",backgroundColor:se.colorBgElevated,borderRadius:se.borderRadiusLG,outline:"none",boxShadow:se.boxShadowSecondary,[`
${ct}${Ue}bottomLeft,
${ye}${Ue}bottomLeft
`]:{animationName:Ee.fJ},[`
${ct}${Ue}topLeft,
${ye}${Ue}topLeft,
${ct}${Ue}topRight,
${ye}${Ue}topRight
`]:{animationName:Ee.Qt},[`${ce}${Ue}bottomLeft`]:{animationName:Ee.Uw},[`
${ce}${Ue}topLeft,
${ce}${Ue}topRight
`]:{animationName:Ee.ly},"&-hidden":{display:"none"},[Ae]:Object.assign(Object.assign({},De(se)),{cursor:"pointer",transition:`background ${se.motionDurationSlow} ease`,borderRadius:se.borderRadiusSM,"&-group":{color:se.colorTextDescription,fontSize:se.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},E.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Ae}-option-disabled)`]:{backgroundColor:se.optionActiveBg},[`&-selected:not(${Ae}-option-disabled)`]:{color:se.optionSelectedColor,fontWeight:se.optionSelectedFontWeight,backgroundColor:se.optionSelectedBg,[`${Ae}-option-state`]:{color:se.colorPrimary}},"&-disabled":{[`&${Ae}-option-selected`]:{backgroundColor:se.colorBgContainerDisabled},color:se.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:se.calc(se.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},De(se)),{color:se.colorTextDisabled})}),[`${It}:has(+ ${It})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${It}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,Ee.oN)(se,"slide-up"),(0,Ee.oN)(se,"slide-down"),(0,Be.Fm)(se,"move-up"),(0,Be.Fm)(se,"move-down")]},he=ne(26743),Je=ne(36237);function Pe(se,qe){const{componentCls:Le,inputPaddingHorizontalBase:Ae,borderRadius:ct}=se,ye=se.calc(se.controlHeight).sub(se.calc(se.lineWidth).mul(2)).equal(),ce=qe?`${Le}-${qe}`:"";return{[`${Le}-single${ce}`]:{fontSize:se.fontSize,height:se.controlHeight,[`${Le}-selector`]:Object.assign(Object.assign({},(0,E.Wf)(se,!0)),{display:"flex",borderRadius:ct,flex:"1 1 auto",[`${Le}-selection-wrap:after`]:{lineHeight:(0,Je.unit)(ye)},[`${Le}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
${Le}-selection-item,
${Le}-selection-placeholder
`]:{display:"block",padding:0,lineHeight:(0,Je.unit)(ye),transition:`all ${se.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Le}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Le}-selection-item:empty:after`,`${Le}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${Le}-show-arrow ${Le}-selection-item,
&${Le}-show-arrow ${Le}-selection-search,
&${Le}-show-arrow ${Le}-selection-placeholder
`]:{paddingInlineEnd:se.showArrowPaddingInlineEnd},[`&${Le}-open ${Le}-selection-item`]:{color:se.colorTextPlaceholder},[`&:not(${Le}-customize-input)`]:{[`${Le}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,Je.unit)(Ae)}`,[`${Le}-selection-search-input`]:{height:ye,fontSize:se.fontSize},"&:after":{lineHeight:(0,Je.unit)(ye)}}},[`&${Le}-customize-input`]:{[`${Le}-selector`]:{"&:after":{display:"none"},[`${Le}-selection-search`]:{position:"static",width:"100%"},[`${Le}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,Je.unit)(Ae)}`,"&:after":{display:"none"}}}}}}}function dt(se){const{componentCls:qe}=se,Le=se.calc(se.controlPaddingHorizontalSM).sub(se.lineWidth).equal();return[Pe(se),Pe((0,tt.mergeToken)(se,{controlHeight:se.controlHeightSM,borderRadius:se.borderRadiusSM}),"sm"),{[`${qe}-single${qe}-sm`]:{[`&:not(${qe}-customize-input)`]:{[`${qe}-selector`]:{padding:`0 ${(0,Je.unit)(Le)}`},[`&${qe}-show-arrow ${qe}-selection-search`]:{insetInlineEnd:se.calc(Le).add(se.calc(se.fontSize).mul(1.5)).equal()},[`
&${qe}-show-arrow ${qe}-selection-item,
&${qe}-show-arrow ${qe}-selection-placeholder
`]:{paddingInlineEnd:se.calc(se.fontSize).mul(1.5).equal()}}}},Pe((0,tt.mergeToken)(se,{controlHeight:se.singleItemHeightLG,fontSize:se.fontSizeLG,borderRadius:se.borderRadiusLG}),"lg")]}const Ze=se=>{const{fontSize:qe,lineHeight:Le,lineWidth:Ae,controlHeight:ct,controlHeightSM:ye,controlHeightLG:ce,paddingXXS:Ue,controlPaddingHorizontal:It,zIndexPopupBase:bt,colorText:ge,fontWeightStrong:He,controlItemBgActive:Ge,controlItemBgHover:Tt,colorBgContainer:wt,colorFillSecondary:Lt,colorBgContainerDisabled:$e,colorTextDisabled:At,colorPrimaryHover:st,colorPrimary:ae,controlOutline:te}=se,ee=Ue*2,oe=Ae*2,ue=Math.min(ct-ee,ct-oe),re=Math.min(ye-ee,ye-oe),ve=Math.min(ce-ee,ce-oe);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(Ue/2),zIndexPopup:bt+50,optionSelectedColor:ge,optionSelectedFontWeight:He,optionSelectedBg:Ge,optionActiveBg:Tt,optionPadding:`${(ct-qe*Le)/2}px ${It}px`,optionFontSize:qe,optionLineHeight:Le,optionHeight:ct,selectorBg:wt,clearBg:wt,singleItemHeightLG:ce,multipleItemBg:Lt,multipleItemBorderColor:"transparent",multipleItemHeight:ue,multipleItemHeightSM:re,multipleItemHeightLG:ve,multipleSelectorBgDisabled:$e,multipleItemColorDisabled:At,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(se.fontSize*1.25),hoverBorderColor:st,activeBorderColor:ae,activeOutlineColor:te,selectAffixPadding:Ue}},Ce=(se,qe)=>{const{componentCls:Le,antCls:Ae,controlOutlineWidth:ct}=se;return{[`&:not(${Le}-customize-input) ${Le}-selector`]:{border:`${(0,Je.unit)(se.lineWidth)} ${se.lineType} ${qe.borderColor}`,background:se.selectorBg},[`&:not(${Le}-disabled):not(${Le}-customize-input):not(${Ae}-pagination-size-changer)`]:{[`&:hover ${Le}-selector`]:{borderColor:qe.hoverBorderHover},[`${Le}-focused& ${Le}-selector`]:{borderColor:qe.activeBorderColor,boxShadow:`0 0 0 ${(0,Je.unit)(ct)} ${qe.activeOutlineColor}`,outline:0},[`${Le}-prefix`]:{color:qe.color}}}},Te=(se,qe)=>({[`&${se.componentCls}-status-${qe.status}`]:Object.assign({},Ce(se,qe))}),_e=se=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ce(se,{borderColor:se.colorBorder,hoverBorderHover:se.hoverBorderColor,activeBorderColor:se.activeBorderColor,activeOutlineColor:se.activeOutlineColor,color:se.colorText})),Te(se,{status:"error",borderColor:se.colorError,hoverBorderHover:se.colorErrorHover,activeBorderColor:se.colorError,activeOutlineColor:se.colorErrorOutline,color:se.colorError})),Te(se,{status:"warning",borderColor:se.colorWarning,hoverBorderHover:se.colorWarningHover,activeBorderColor:se.colorWarning,activeOutlineColor:se.colorWarningOutline,color:se.colorWarning})),{[`&${se.componentCls}-disabled`]:{[`&:not(${se.componentCls}-customize-input) ${se.componentCls}-selector`]:{background:se.colorBgContainerDisabled,color:se.colorTextDisabled}},[`&${se.componentCls}-multiple ${se.componentCls}-selection-item`]:{background:se.multipleItemBg,border:`${(0,Je.unit)(se.lineWidth)} ${se.lineType} ${se.multipleItemBorderColor}`}})}),rt=(se,qe)=>{const{componentCls:Le,antCls:Ae}=se;return{[`&:not(${Le}-customize-input) ${Le}-selector`]:{background:qe.bg,border:`${(0,Je.unit)(se.lineWidth)} ${se.lineType} transparent`,color:qe.color},[`&:not(${Le}-disabled):not(${Le}-customize-input):not(${Ae}-pagination-size-changer)`]:{[`&:hover ${Le}-selector`]:{background:qe.hoverBg},[`${Le}-focused& ${Le}-selector`]:{background:se.selectorBg,borderColor:qe.activeBorderColor,outline:0}}}},gt=(se,qe)=>({[`&${se.componentCls}-status-${qe.status}`]:Object.assign({},rt(se,qe))}),Pt=se=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},rt(se,{bg:se.colorFillTertiary,hoverBg:se.colorFillSecondary,activeBorderColor:se.activeBorderColor,color:se.colorText})),gt(se,{status:"error",bg:se.colorErrorBg,hoverBg:se.colorErrorBgHover,activeBorderColor:se.colorError,color:se.colorError})),gt(se,{status:"warning",bg:se.colorWarningBg,hoverBg:se.colorWarningBgHover,activeBorderColor:se.colorWarning,color:se.colorWarning})),{[`&${se.componentCls}-disabled`]:{[`&:not(${se.componentCls}-customize-input) ${se.componentCls}-selector`]:{borderColor:se.colorBorder,background:se.colorBgContainerDisabled,color:se.colorTextDisabled}},[`&${se.componentCls}-multiple ${se.componentCls}-selection-item`]:{background:se.colorBgContainer,border:`${(0,Je.unit)(se.lineWidth)} ${se.lineType} ${se.colorSplit}`}})}),ht=se=>({"&-borderless":{[`${se.componentCls}-selector`]:{background:"transparent",border:`${(0,Je.unit)(se.lineWidth)} ${se.lineType} transparent`},[`&${se.componentCls}-disabled`]:{[`&:not(${se.componentCls}-customize-input) ${se.componentCls}-selector`]:{color:se.colorTextDisabled}},[`&${se.componentCls}-multiple ${se.componentCls}-selection-item`]:{background:se.multipleItemBg,border:`${(0,Je.unit)(se.lineWidth)} ${se.lineType} ${se.multipleItemBorderColor}`},[`&${se.componentCls}-status-error`]:{[`${se.componentCls}-prefix, ${se.componentCls}-selection-item`]:{color:se.colorError}},[`&${se.componentCls}-status-warning`]:{[`${se.componentCls}-prefix, ${se.componentCls}-selection-item`]:{color:se.colorWarning}}}}),it=(se,qe)=>{const{componentCls:Le,antCls:Ae}=se;return{[`&:not(${Le}-customize-input) ${Le}-selector`]:{borderWidth:`0 0 ${(0,Je.unit)(se.lineWidth)} 0`,borderStyle:`none none ${se.lineType} none`,borderColor:qe.borderColor,background:se.selectorBg,borderRadius:0},[`&:not(${Le}-disabled):not(${Le}-customize-input):not(${Ae}-pagination-size-changer)`]:{[`&:hover ${Le}-selector`]:{borderColor:qe.hoverBorderHover},[`${Le}-focused& ${Le}-selector`]:{borderColor:qe.activeBorderColor,outline:0},[`${Le}-prefix`]:{color:qe.color}}}},nt=(se,qe)=>({[`&${se.componentCls}-status-${qe.status}`]:Object.assign({},it(se,qe))}),Fe=se=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},it(se,{borderColor:se.colorBorder,hoverBorderHover:se.hoverBorderColor,activeBorderColor:se.activeBorderColor,activeOutlineColor:se.activeOutlineColor,color:se.colorText})),nt(se,{status:"error",borderColor:se.colorError,hoverBorderHover:se.colorErrorHover,activeBorderColor:se.colorError,activeOutlineColor:se.colorErrorOutline,color:se.colorError})),nt(se,{status:"warning",borderColor:se.colorWarning,hoverBorderHover:se.colorWarningHover,activeBorderColor:se.colorWarning,activeOutlineColor:se.colorWarningOutline,color:se.colorWarning})),{[`&${se.componentCls}-disabled`]:{[`&:not(${se.componentCls}-customize-input) ${se.componentCls}-selector`]:{color:se.colorTextDisabled}},[`&${se.componentCls}-multiple ${se.componentCls}-selection-item`]:{background:se.multipleItemBg,border:`${(0,Je.unit)(se.lineWidth)} ${se.lineType} ${se.multipleItemBorderColor}`}})});var lt=se=>({[se.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},_e(se)),Pt(se)),ht(se)),Fe(se))});const et=se=>{const{componentCls:qe}=se;return{position:"relative",transition:`all ${se.motionDurationMid} ${se.motionEaseInOut}`,input:{cursor:"pointer"},[`${qe}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${qe}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},St=se=>{const{componentCls:qe}=se;return{[`${qe}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},Me=se=>{const{antCls:qe,componentCls:Le,inputPaddingHorizontalBase:Ae,iconCls:ct}=se;return{[Le]:Object.assign(Object.assign({},(0,E.Wf)(se)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${Le}-customize-input) ${Le}-selector`]:Object.assign(Object.assign({},et(se)),St(se)),[`${Le}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},E.vS),{[`> ${qe}-typography`]:{display:"inline"}}),[`${Le}-selection-placeholder`]:Object.assign(Object.assign({},E.vS),{flex:1,color:se.colorTextPlaceholder,pointerEvents:"none"}),[`${Le}-arrow`]:Object.assign(Object.assign({},(0,E.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ae,height:se.fontSizeIcon,marginTop:se.calc(se.fontSizeIcon).mul(-1).div(2).equal(),color:se.colorTextQuaternary,fontSize:se.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${se.motionDurationSlow} ease`,[ct]:{verticalAlign:"top",transition:`transform ${se.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Le}-suffix)`]:{pointerEvents:"auto"}},[`${Le}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Le}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${Le}-prefix`]:{flex:"none",marginInlineEnd:se.selectAffixPadding},[`${Le}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ae,zIndex:1,display:"inline-block",width:se.fontSizeIcon,height:se.fontSizeIcon,marginTop:se.calc(se.fontSizeIcon).mul(-1).div(2).equal(),color:se.colorTextQuaternary,fontSize:se.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${se.motionDurationMid} ease, opacity ${se.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:se.colorTextTertiary}},[`&:hover ${Le}-clear`]:{opacity:1,background:se.colorBgBase,borderRadius:"50%"}}),[`${Le}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${Le}-has-feedback`]:{[`${Le}-clear`]:{insetInlineEnd:se.calc(Ae).add(se.fontSize).add(se.paddingXS).equal()}}}}}},Ke=se=>{const{componentCls:qe}=se;return[{[qe]:{[`&${qe}-in-form-item`]:{width:"100%"}}},Me(se),dt(se),(0,he.ZP)(se),Ie(se),{[`${qe}-rtl`]:{direction:"rtl"}},(0,Qe.c)(se,{borderElCls:`${qe}-selector`,focusElCls:`${qe}-focused`})]};var ze=(0,xe.I$)("Select",(se,qe)=>{let{rootPrefixCls:Le}=qe;const Ae=(0,tt.mergeToken)(se,{rootPrefixCls:Le,inputPaddingHorizontalBase:se.calc(se.paddingSM).sub(1).equal(),multipleSelectItemHeight:se.multipleItemHeight,selectHeight:se.controlHeight});return[Ke(Ae),lt(Ae)]},Ze,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(on,$t,ne){"use strict";ne.d($t,{_z:function(){return Be},gp:function(){return tt}});var E=ne(36237),Qe=ne(63356),xe=ne(51636);const tt=he=>{const{multipleSelectItemHeight:Je,paddingXXS:Pe,lineWidth:dt,INTERNAL_FIXED_ITEM_MARGIN:Ze}=he,Ce=he.max(he.calc(Pe).sub(dt).equal(),0),Te=he.max(he.calc(Ce).sub(Ze).equal(),0);return{basePadding:Ce,containerPadding:Te,itemHeight:(0,E.unit)(Je),itemLineHeight:(0,E.unit)(he.calc(Je).sub(he.calc(he.lineWidth).mul(2)).equal())}},Ee=he=>{const{multipleSelectItemHeight:Je,selectHeight:Pe,lineWidth:dt}=he;return he.calc(Pe).sub(Je).div(2).sub(dt).equal()},Be=he=>{const{componentCls:Je,iconCls:Pe,borderRadiusSM:dt,motionDurationSlow:Ze,paddingXS:Ce,multipleItemColorDisabled:Te,multipleItemBorderColorDisabled:_e,colorIcon:rt,colorIconHover:gt,INTERNAL_FIXED_ITEM_MARGIN:Pt}=he;return{[`${Je}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${Je}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:Pt,borderRadius:dt,cursor:"default",transition:`font-size ${Ze}, line-height ${Ze}, height ${Ze}`,marginInlineEnd:he.calc(Pt).mul(2).equal(),paddingInlineStart:Ce,paddingInlineEnd:he.calc(Ce).div(2).equal(),[`${Je}-disabled&`]:{color:Te,borderColor:_e,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:he.calc(Ce).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Qe.Ro)()),{display:"inline-flex",alignItems:"center",color:rt,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Pe}`]:{verticalAlign:"-0.2em"},"&:hover":{color:gt}})}}}},De=(he,Je)=>{const{componentCls:Pe,INTERNAL_FIXED_ITEM_MARGIN:dt}=he,Ze=`${Pe}-selection-overflow`,Ce=he.multipleSelectItemHeight,Te=Ee(he),_e=Je?`${Pe}-${Je}`:"",rt=tt(he);return{[`${Pe}-multiple${_e}`]:Object.assign(Object.assign({},Be(he)),{[`${Pe}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:rt.basePadding,paddingBlock:rt.containerPadding,borderRadius:he.borderRadius,[`${Pe}-disabled&`]:{background:he.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,E.unit)(dt)} 0`,lineHeight:(0,E.unit)(Ce),visibility:"hidden",content:'"\\a0"'}},[`${Pe}-selection-item`]:{height:rt.itemHeight,lineHeight:(0,E.unit)(rt.itemLineHeight)},[`${Pe}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,E.unit)(Ce),marginBlock:dt}},[`${Pe}-prefix`]:{marginInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(rt.basePadding).equal()},[`${Ze}-item + ${Ze}-item,
${Pe}-prefix + ${Pe}-selection-wrap
`]:{[`${Pe}-selection-search`]:{marginInlineStart:0},[`${Pe}-selection-placeholder`]:{insetInlineStart:0}},[`${Ze}-item-suffix`]:{minHeight:rt.itemHeight,marginBlock:dt},[`${Pe}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(Te).equal(),"\n &-input,\n &-mirror\n ":{height:Ce,fontFamily:he.fontFamily,lineHeight:(0,E.unit)(Ce),transition:`all ${he.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Pe}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(rt.basePadding).equal(),insetInlineEnd:he.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${he.motionDurationSlow}`}})}};function We(he,Je){const{componentCls:Pe}=he,dt=Je?`${Pe}-${Je}`:"",Ze={[`${Pe}-multiple${dt}`]:{fontSize:he.fontSize,[`${Pe}-selector`]:{[`${Pe}-show-search&`]:{cursor:"text"}},[`
&${Pe}-show-arrow ${Pe}-selector,
&${Pe}-allow-clear ${Pe}-selector
`]:{paddingInlineEnd:he.calc(he.fontSizeIcon).add(he.controlPaddingHorizontal).equal()}}};return[De(he,Je),Ze]}const Ie=he=>{const{componentCls:Je}=he,Pe=(0,xe.mergeToken)(he,{selectHeight:he.controlHeightSM,multipleSelectItemHeight:he.multipleItemHeightSM,borderRadius:he.borderRadiusSM,borderRadiusSM:he.borderRadiusXS}),dt=(0,xe.mergeToken)(he,{fontSize:he.fontSizeLG,selectHeight:he.controlHeightLG,multipleSelectItemHeight:he.multipleItemHeightLG,borderRadius:he.borderRadiusLG,borderRadiusSM:he.borderRadius});return[We(he),We(Pe,"sm"),{[`${Je}-multiple${Je}-sm`]:{[`${Je}-selection-placeholder`]:{insetInline:he.calc(he.controlPaddingHorizontalSM).sub(he.lineWidth).equal()},[`${Je}-selection-search`]:{marginInlineStart:2}}},We(dt,"lg")]};$t.ZP=Ie},68525:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return We}});var E=ne(59301),Qe=ne(40001),xe=ne(19248),tt=ne(99267),Ee=ne(84105),Be=ne(58617),De=ne(47472);function We(Ie){let{suffixIcon:he,clearIcon:Je,menuItemSelectedIcon:Pe,removeIcon:dt,loading:Ze,multiple:Ce,hasFeedback:Te,prefixCls:_e,showSuffixIcon:rt,feedbackIcon:gt,showArrow:Pt,componentName:ht}=Ie;const it=Je!=null?Je:E.createElement(xe.Z,null),nt=et=>he===null&&!Te&&!Pt?null:E.createElement(E.Fragment,null,rt!==!1&&et,Te&&gt);let Fe=null;if(he!==void 0)Fe=nt(he);else if(Ze)Fe=nt(E.createElement(Be.Z,{spin:!0}));else{const et=`${_e}-suffix`;Fe=St=>{let{open:Me,showSearch:Ke}=St;return nt(Me&&Ke?E.createElement(De.Z,{className:et}):E.createElement(Ee.Z,{className:et}))}}let kt=null;Pe!==void 0?kt=Pe:Ce?kt=E.createElement(Qe.Z,null):kt=null;let lt=null;return dt!==void 0?lt=dt:lt=E.createElement(tt.Z,null),{clearIcon:it,suffixIcon:Fe,itemIcon:kt,removeIcon:lt}}},90005:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return E}});function E(Qe,xe){return xe!==void 0?xe:Qe!==null}},11938:function(on,$t,ne){"use strict";ne.d($t,{default:function(){return St}});var E=ne(59301),Qe=ne(40192),xe=ne(22703),tt=ne(92310),Ee=ne.n(tt),Be=ne(26112),De=ne(48755),We=ne(458),he=Me=>{const{value:Ke,formatter:ze,precision:se,decimalSeparator:qe,groupSeparator:Le="",prefixCls:Ae}=Me;let ct;if(typeof ze=="function")ct=ze(Ke);else{const ye=String(Ke),ce=ye.match(/^(-?)(\d*)(\.(\d+))?$/);if(!ce||ye==="-")ct=ye;else{const Ue=ce[1];let It=ce[2]||"0",bt=ce[4]||"";It=It.replace(/\B(?=(\d{3})+(?!\d))/g,Le),typeof se=="number"&&(bt=bt.padEnd(se,"0").slice(0,se>0?se:0)),bt&&(bt=`${qe}${bt}`),ct=[E.createElement("span",{key:"int",className:`${Ae}-content-value-int`},Ue,It),bt&&E.createElement("span",{key:"decimal",className:`${Ae}-content-value-decimal`},bt)]}}return E.createElement("span",{className:`${Ae}-content-value`},ct)},Je=ne(63356),Pe=ne(16931),dt=ne(51636);const Ze=Me=>{const{componentCls:Ke,marginXXS:ze,padding:se,colorTextDescription:qe,titleFontSize:Le,colorTextHeading:Ae,contentFontSize:ct,fontFamily:ye}=Me;return{[Ke]:Object.assign(Object.assign({},(0,Je.Wf)(Me)),{[`${Ke}-title`]:{marginBottom:ze,color:qe,fontSize:Le},[`${Ke}-skeleton`]:{paddingTop:se},[`${Ke}-content`]:{color:Ae,fontSize:ct,fontFamily:ye,[`${Ke}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Ke}-content-prefix, ${Ke}-content-suffix`]:{display:"inline-block"},[`${Ke}-content-prefix`]:{marginInlineEnd:ze},[`${Ke}-content-suffix`]:{marginInlineStart:ze}}})}},Ce=Me=>{const{fontSizeHeading3:Ke,fontSize:ze}=Me;return{titleFontSize:ze,contentFontSize:Ke}};var Te=(0,Pe.I$)("Statistic",Me=>{const Ke=(0,dt.mergeToken)(Me,{});return[Ze(Ke)]},Ce),_e=function(Me,Ke){var ze={};for(var se in Me)Object.prototype.hasOwnProperty.call(Me,se)&&Ke.indexOf(se)<0&&(ze[se]=Me[se]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,se=Object.getOwnPropertySymbols(Me);qe<se.length;qe++)Ke.indexOf(se[qe])<0&&Object.prototype.propertyIsEnumerable.call(Me,se[qe])&&(ze[se[qe]]=Me[se[qe]]);return ze},gt=Me=>{const{prefixCls:Ke,className:ze,rootClassName:se,style:qe,valueStyle:Le,value:Ae=0,title:ct,valueRender:ye,prefix:ce,suffix:Ue,loading:It=!1,formatter:bt,precision:ge,decimalSeparator:He=".",groupSeparator:Ge=",",onMouseEnter:Tt,onMouseLeave:wt}=Me,Lt=_e(Me,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:$e,direction:At,className:st,style:ae}=(0,De.dj)("statistic"),te=$e("statistic",Ke),[ee,oe,ue]=Te(te),re=E.createElement(he,{decimalSeparator:He,groupSeparator:Ge,prefixCls:te,formatter:bt,precision:ge,value:Ae}),ve=Ee()(te,{[`${te}-rtl`]:At==="rtl"},st,ze,se,oe,ue),we=(0,Be.Z)(Lt,{aria:!0,data:!0});return ee(E.createElement("div",Object.assign({},we,{className:ve,style:Object.assign(Object.assign({},ae),qe),onMouseEnter:Tt,onMouseLeave:wt}),ct&&E.createElement("div",{className:`${te}-title`},ct),E.createElement(We.Z,{paragraph:!1,loading:It,className:`${te}-skeleton`},E.createElement("div",{style:Le,className:`${te}-content`},ce&&E.createElement("span",{className:`${te}-content-prefix`},ce),ye?ye(re):re,Ue&&E.createElement("span",{className:`${te}-content-suffix`},Ue)))))};const Pt=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function ht(Me,Ke){let ze=Me;const se=/\[[^\]]*]/g,qe=(Ke.match(se)||[]).map(ye=>ye.slice(1,-1)),Le=Ke.replace(se,"[]"),Ae=Pt.reduce((ye,ce)=>{let[Ue,It]=ce;if(ye.includes(Ue)){const bt=Math.floor(ze/It);return ze-=bt*It,ye.replace(new RegExp(`${Ue}+`,"g"),ge=>{const He=ge.length;return bt.toString().padStart(He,"0")})}return ye},Le);let ct=0;return Ae.replace(se,()=>{const ye=qe[ct];return ct+=1,ye})}function it(Me,Ke){const{format:ze=""}=Ke,se=new Date(Me).getTime(),qe=Date.now(),Le=Math.max(se-qe,0);return ht(Le,ze)}var nt=function(Me,Ke){var ze={};for(var se in Me)Object.prototype.hasOwnProperty.call(Me,se)&&Ke.indexOf(se)<0&&(ze[se]=Me[se]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,se=Object.getOwnPropertySymbols(Me);qe<se.length;qe++)Ke.indexOf(se[qe])<0&&Object.prototype.propertyIsEnumerable.call(Me,se[qe])&&(ze[se[qe]]=Me[se[qe]]);return ze};const Fe=1e3/30;function kt(Me){return new Date(Me).getTime()}const lt=Me=>{const{value:Ke,format:ze="HH:mm:ss",onChange:se,onFinish:qe}=Me,Le=nt(Me,["value","format","onChange","onFinish"]),Ae=(0,Qe.Z)(),ct=E.useRef(null),ye=()=>{qe==null||qe(),ct.current&&(clearInterval(ct.current),ct.current=null)},ce=()=>{const bt=kt(Ke);bt>=Date.now()&&(ct.current=setInterval(()=>{Ae(),se==null||se(bt-Date.now()),bt<Date.now()&&ye()},Fe))};E.useEffect(()=>(ce(),()=>{ct.current&&(clearInterval(ct.current),ct.current=null)}),[Ke]);const Ue=(bt,ge)=>it(bt,Object.assign(Object.assign({},ge),{format:ze})),It=bt=>(0,xe.Tm)(bt,{title:void 0});return E.createElement(gt,Object.assign({},Le,{value:Ke,valueRender:It,formatter:Ue}))};var et=E.memo(lt);gt.Countdown=et;var St=gt},58755:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return qe}});var E=ne(59301),Qe=ne(58617),xe=ne(92310),tt=ne.n(xe),Ee=ne(60499),Be=ne(18642),De=ne(72190),We=ne(42244),Ie=ne(18929),he=ne(10228),Je=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Pe=E.forwardRef(function(Le,Ae){var ct,ye=Le.prefixCls,ce=ye===void 0?"rc-switch":ye,Ue=Le.className,It=Le.checked,bt=Le.defaultChecked,ge=Le.disabled,He=Le.loadingIcon,Ge=Le.checkedChildren,Tt=Le.unCheckedChildren,wt=Le.onClick,Lt=Le.onChange,$e=Le.onKeyDown,At=(0,We.Z)(Le,Je),st=(0,Ie.Z)(!1,{value:It,defaultValue:bt}),ae=(0,De.Z)(st,2),te=ae[0],ee=ae[1];function oe(we,ft){var Oe=te;return ge||(Oe=we,ee(Oe),Lt==null||Lt(Oe,ft)),Oe}function ue(we){we.which===he.Z.LEFT?oe(!1,we):we.which===he.Z.RIGHT&&oe(!0,we),$e==null||$e(we)}function re(we){var ft=oe(!te,we);wt==null||wt(ft,we)}var ve=tt()(ce,Ue,(ct={},(0,Be.Z)(ct,"".concat(ce,"-checked"),te),(0,Be.Z)(ct,"".concat(ce,"-disabled"),ge),ct));return E.createElement("button",(0,Ee.Z)({},At,{type:"button",role:"switch","aria-checked":te,disabled:ge,className:ve,ref:Ae,onKeyDown:ue,onClick:re}),He,E.createElement("span",{className:"".concat(ce,"-inner")},E.createElement("span",{className:"".concat(ce,"-inner-checked")},Ge),E.createElement("span",{className:"".concat(ce,"-inner-unchecked")},Tt)))});Pe.displayName="Switch";var dt=Pe,Ze=ne(12919),Ce=ne(48755),Te=ne(2171),_e=ne(31756),rt=ne(36237),gt=ne(17835),Pt=ne(63356),ht=ne(16931),it=ne(51636);const nt=Le=>{const{componentCls:Ae,trackHeightSM:ct,trackPadding:ye,trackMinWidthSM:ce,innerMinMarginSM:Ue,innerMaxMarginSM:It,handleSizeSM:bt,calc:ge}=Le,He=`${Ae}-inner`,Ge=(0,rt.unit)(ge(bt).add(ge(ye).mul(2)).equal()),Tt=(0,rt.unit)(ge(It).mul(2).equal());return{[Ae]:{[`&${Ae}-small`]:{minWidth:ce,height:ct,lineHeight:(0,rt.unit)(ct),[`${Ae}-inner`]:{paddingInlineStart:It,paddingInlineEnd:Ue,[`${He}-checked, ${He}-unchecked`]:{minHeight:ct},[`${He}-checked`]:{marginInlineStart:`calc(-100% + ${Ge} - ${Tt})`,marginInlineEnd:`calc(100% - ${Ge} + ${Tt})`},[`${He}-unchecked`]:{marginTop:ge(ct).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${Ae}-handle`]:{width:bt,height:bt},[`${Ae}-loading-icon`]:{top:ge(ge(bt).sub(Le.switchLoadingIconSize)).div(2).equal(),fontSize:Le.switchLoadingIconSize},[`&${Ae}-checked`]:{[`${Ae}-inner`]:{paddingInlineStart:Ue,paddingInlineEnd:It,[`${He}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${He}-unchecked`]:{marginInlineStart:`calc(100% - ${Ge} + ${Tt})`,marginInlineEnd:`calc(-100% + ${Ge} - ${Tt})`}},[`${Ae}-handle`]:{insetInlineStart:`calc(100% - ${(0,rt.unit)(ge(bt).add(ye).equal())})`}},[`&:not(${Ae}-disabled):active`]:{[`&:not(${Ae}-checked) ${He}`]:{[`${He}-unchecked`]:{marginInlineStart:ge(Le.marginXXS).div(2).equal(),marginInlineEnd:ge(Le.marginXXS).mul(-1).div(2).equal()}},[`&${Ae}-checked ${He}`]:{[`${He}-checked`]:{marginInlineStart:ge(Le.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:ge(Le.marginXXS).div(2).equal()}}}}}}},Fe=Le=>{const{componentCls:Ae,handleSize:ct,calc:ye}=Le;return{[Ae]:{[`${Ae}-loading-icon${Le.iconCls}`]:{position:"relative",top:ye(ye(ct).sub(Le.fontSize)).div(2).equal(),color:Le.switchLoadingIconColor,verticalAlign:"top"},[`&${Ae}-checked ${Ae}-loading-icon`]:{color:Le.switchColor}}}},kt=Le=>{const{componentCls:Ae,trackPadding:ct,handleBg:ye,handleShadow:ce,handleSize:Ue,calc:It}=Le,bt=`${Ae}-handle`;return{[Ae]:{[bt]:{position:"absolute",top:ct,insetInlineStart:ct,width:Ue,height:Ue,transition:`all ${Le.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:ye,borderRadius:It(Ue).div(2).equal(),boxShadow:ce,transition:`all ${Le.switchDuration} ease-in-out`,content:'""'}},[`&${Ae}-checked ${bt}`]:{insetInlineStart:`calc(100% - ${(0,rt.unit)(It(Ue).add(ct).equal())})`},[`&:not(${Ae}-disabled):active`]:{[`${bt}::before`]:{insetInlineEnd:Le.switchHandleActiveInset,insetInlineStart:0},[`&${Ae}-checked ${bt}::before`]:{insetInlineEnd:0,insetInlineStart:Le.switchHandleActiveInset}}}}},lt=Le=>{const{componentCls:Ae,trackHeight:ct,trackPadding:ye,innerMinMargin:ce,innerMaxMargin:Ue,handleSize:It,calc:bt}=Le,ge=`${Ae}-inner`,He=(0,rt.unit)(bt(It).add(bt(ye).mul(2)).equal()),Ge=(0,rt.unit)(bt(Ue).mul(2).equal());return{[Ae]:{[ge]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Ue,paddingInlineEnd:ce,transition:`padding-inline-start ${Le.switchDuration} ease-in-out, padding-inline-end ${Le.switchDuration} ease-in-out`,[`${ge}-checked, ${ge}-unchecked`]:{display:"block",color:Le.colorTextLightSolid,fontSize:Le.fontSizeSM,transition:`margin-inline-start ${Le.switchDuration} ease-in-out, margin-inline-end ${Le.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:ct},[`${ge}-checked`]:{marginInlineStart:`calc(-100% + ${He} - ${Ge})`,marginInlineEnd:`calc(100% - ${He} + ${Ge})`},[`${ge}-unchecked`]:{marginTop:bt(ct).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${Ae}-checked ${ge}`]:{paddingInlineStart:ce,paddingInlineEnd:Ue,[`${ge}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ge}-unchecked`]:{marginInlineStart:`calc(100% - ${He} + ${Ge})`,marginInlineEnd:`calc(-100% + ${He} - ${Ge})`}},[`&:not(${Ae}-disabled):active`]:{[`&:not(${Ae}-checked) ${ge}`]:{[`${ge}-unchecked`]:{marginInlineStart:bt(ye).mul(2).equal(),marginInlineEnd:bt(ye).mul(-1).mul(2).equal()}},[`&${Ae}-checked ${ge}`]:{[`${ge}-checked`]:{marginInlineStart:bt(ye).mul(-1).mul(2).equal(),marginInlineEnd:bt(ye).mul(2).equal()}}}}}},et=Le=>{const{componentCls:Ae,trackHeight:ct,trackMinWidth:ye}=Le;return{[Ae]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Pt.Wf)(Le)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:ye,height:ct,lineHeight:(0,rt.unit)(ct),verticalAlign:"middle",background:Le.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Le.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Ae}-disabled)`]:{background:Le.colorTextTertiary}}),(0,Pt.Qy)(Le)),{[`&${Ae}-checked`]:{background:Le.switchColor,[`&:hover:not(${Ae}-disabled)`]:{background:Le.colorPrimaryHover}},[`&${Ae}-loading, &${Ae}-disabled`]:{cursor:"not-allowed",opacity:Le.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ae}-rtl`]:{direction:"rtl"}})}},St=Le=>{const{fontSize:Ae,lineHeight:ct,controlHeight:ye,colorWhite:ce}=Le,Ue=Ae*ct,It=ye/2,bt=2,ge=Ue-bt*2,He=It-bt*2;return{trackHeight:Ue,trackHeightSM:It,trackMinWidth:ge*2+bt*4,trackMinWidthSM:He*2+bt*2,trackPadding:bt,handleBg:ce,handleSize:ge,handleSizeSM:He,handleShadow:`0 2px 4px 0 ${new gt.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:ge/2,innerMaxMargin:ge+bt+bt*2,innerMinMarginSM:He/2,innerMaxMarginSM:He+bt+bt*2}};var Me=(0,ht.I$)("Switch",Le=>{const Ae=(0,it.mergeToken)(Le,{switchDuration:Le.motionDurationMid,switchColor:Le.colorPrimary,switchDisabledOpacity:Le.opacityLoading,switchLoadingIconSize:Le.calc(Le.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${Le.opacityLoading})`,switchHandleActiveInset:"-30%"});return[et(Ae),lt(Ae),kt(Ae),Fe(Ae),nt(Ae)]},St),Ke=function(Le,Ae){var ct={};for(var ye in Le)Object.prototype.hasOwnProperty.call(Le,ye)&&Ae.indexOf(ye)<0&&(ct[ye]=Le[ye]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,ye=Object.getOwnPropertySymbols(Le);ce<ye.length;ce++)Ae.indexOf(ye[ce])<0&&Object.prototype.propertyIsEnumerable.call(Le,ye[ce])&&(ct[ye[ce]]=Le[ye[ce]]);return ct};const se=E.forwardRef((Le,Ae)=>{const{prefixCls:ct,size:ye,disabled:ce,loading:Ue,className:It,rootClassName:bt,style:ge,checked:He,value:Ge,defaultChecked:Tt,defaultValue:wt,onChange:Lt}=Le,$e=Ke(Le,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[At,st]=(0,Ie.Z)(!1,{value:He!=null?He:Ge,defaultValue:Tt!=null?Tt:wt}),{getPrefixCls:ae,direction:te,switch:ee}=E.useContext(Ce.E_),oe=E.useContext(Te.Z),ue=(ce!=null?ce:oe)||Ue,re=ae("switch",ct),ve=E.createElement("div",{className:`${re}-handle`},Ue&&E.createElement(Qe.Z,{className:`${re}-loading-icon`})),[we,ft,Oe]=Me(re),Ye=(0,_e.Z)(ye),mt=tt()(ee==null?void 0:ee.className,{[`${re}-small`]:Ye==="small",[`${re}-loading`]:Ue,[`${re}-rtl`]:te==="rtl"},It,bt,ft,Oe),Bt=Object.assign(Object.assign({},ee==null?void 0:ee.style),ge),Et=function(){st(arguments.length<=0?void 0:arguments[0]),Lt==null||Lt.apply(void 0,arguments)};return we(E.createElement(Ze.Z,{component:"Switch"},E.createElement(dt,Object.assign({},$e,{checked:At,onChange:Et,prefixCls:re,className:mt,style:Bt,disabled:ue,ref:Ae,loadingIcon:ve}))))});se.__ANT_SWITCH=!0;var qe=se},96599:function(on,$t,ne){"use strict";ne.d($t,{default:function(){return ze}});var E=ne(59301),Qe=ne(92310),xe=ne.n(Qe),tt=ne(2738),Ee=ne(29509),Be=ne(78776),De=ne(22703),We=ne(12919),Ie=ne(48755),he=ne(36237),Je=ne(17835),Pe=ne(63356),dt=ne(51636),Ze=ne(16931);const Ce=se=>{const{paddingXXS:qe,lineWidth:Le,tagPaddingHorizontal:Ae,componentCls:ct,calc:ye}=se,ce=ye(Ae).sub(Le).equal(),Ue=ye(qe).sub(Le).equal();return{[ct]:Object.assign(Object.assign({},(0,Pe.Wf)(se)),{display:"inline-block",height:"auto",marginInlineEnd:se.marginXS,paddingInline:ce,fontSize:se.tagFontSize,lineHeight:se.tagLineHeight,whiteSpace:"nowrap",background:se.defaultBg,border:`${(0,he.unit)(se.lineWidth)} ${se.lineType} ${se.colorBorder}`,borderRadius:se.borderRadiusSM,opacity:1,transition:`all ${se.motionDurationMid}`,textAlign:"start",position:"relative",[`&${ct}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:se.defaultColor},[`${ct}-close-icon`]:{marginInlineStart:Ue,fontSize:se.tagIconSize,color:se.colorTextDescription,cursor:"pointer",transition:`all ${se.motionDurationMid}`,"&:hover":{color:se.colorTextHeading}},[`&${ct}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${se.iconCls}-close, ${se.iconCls}-close:hover`]:{color:se.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${ct}-checkable-checked):hover`]:{color:se.colorPrimary,backgroundColor:se.colorFillSecondary},"&:active, &-checked":{color:se.colorTextLightSolid},"&-checked":{backgroundColor:se.colorPrimary,"&:hover":{backgroundColor:se.colorPrimaryHover}},"&:active":{backgroundColor:se.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${se.iconCls} + span, > span + ${se.iconCls}`]:{marginInlineStart:ce}}),[`${ct}-borderless`]:{borderColor:"transparent",background:se.tagBorderlessBg}}},Te=se=>{const{lineWidth:qe,fontSizeIcon:Le,calc:Ae}=se,ct=se.fontSizeSM;return(0,dt.mergeToken)(se,{tagFontSize:ct,tagLineHeight:(0,he.unit)(Ae(se.lineHeightSM).mul(ct).equal()),tagIconSize:Ae(Le).sub(Ae(qe).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:se.defaultBg})},_e=se=>({defaultBg:new Je.FastColor(se.colorFillQuaternary).onBackground(se.colorBgContainer).toHexString(),defaultColor:se.colorText});var rt=(0,Ze.I$)("Tag",se=>{const qe=Te(se);return Ce(qe)},_e),gt=function(se,qe){var Le={};for(var Ae in se)Object.prototype.hasOwnProperty.call(se,Ae)&&qe.indexOf(Ae)<0&&(Le[Ae]=se[Ae]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,Ae=Object.getOwnPropertySymbols(se);ct<Ae.length;ct++)qe.indexOf(Ae[ct])<0&&Object.prototype.propertyIsEnumerable.call(se,Ae[ct])&&(Le[Ae[ct]]=se[Ae[ct]]);return Le},ht=E.forwardRef((se,qe)=>{const{prefixCls:Le,style:Ae,className:ct,checked:ye,onChange:ce,onClick:Ue}=se,It=gt(se,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:bt,tag:ge}=E.useContext(Ie.E_),He=At=>{ce==null||ce(!ye),Ue==null||Ue(At)},Ge=bt("tag",Le),[Tt,wt,Lt]=rt(Ge),$e=xe()(Ge,`${Ge}-checkable`,{[`${Ge}-checkable-checked`]:ye},ge==null?void 0:ge.className,ct,wt,Lt);return Tt(E.createElement("span",Object.assign({},It,{ref:qe,style:Object.assign(Object.assign({},Ae),ge==null?void 0:ge.style),className:$e,onClick:He})))}),it=ne(93427);const nt=se=>(0,it.Z)(se,(qe,Le)=>{let{textColor:Ae,lightBorderColor:ct,lightColor:ye,darkColor:ce}=Le;return{[`${se.componentCls}${se.componentCls}-${qe}`]:{color:Ae,background:ye,borderColor:ct,"&-inverse":{color:se.colorTextLightSolid,background:ce,borderColor:ce},[`&${se.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Fe=(0,Ze.bk)(["Tag","preset"],se=>{const qe=Te(se);return nt(qe)},_e);function kt(se){return typeof se!="string"?se:se.charAt(0).toUpperCase()+se.slice(1)}const lt=(se,qe,Le)=>{const Ae=kt(Le);return{[`${se.componentCls}${se.componentCls}-${qe}`]:{color:se[`color${Le}`],background:se[`color${Ae}Bg`],borderColor:se[`color${Ae}Border`],[`&${se.componentCls}-borderless`]:{borderColor:"transparent"}}}};var et=(0,Ze.bk)(["Tag","status"],se=>{const qe=Te(se);return[lt(qe,"success","Success"),lt(qe,"processing","Info"),lt(qe,"error","Error"),lt(qe,"warning","Warning")]},_e),St=function(se,qe){var Le={};for(var Ae in se)Object.prototype.hasOwnProperty.call(se,Ae)&&qe.indexOf(Ae)<0&&(Le[Ae]=se[Ae]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,Ae=Object.getOwnPropertySymbols(se);ct<Ae.length;ct++)qe.indexOf(Ae[ct])<0&&Object.prototype.propertyIsEnumerable.call(se,Ae[ct])&&(Le[Ae[ct]]=se[Ae[ct]]);return Le};const Ke=E.forwardRef((se,qe)=>{const{prefixCls:Le,className:Ae,rootClassName:ct,style:ye,children:ce,icon:Ue,color:It,onClose:bt,bordered:ge=!0,visible:He}=se,Ge=St(se,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:Tt,direction:wt,tag:Lt}=E.useContext(Ie.E_),[$e,At]=E.useState(!0),st=(0,tt.Z)(Ge,["closeIcon","closable"]);E.useEffect(()=>{He!==void 0&&At(He)},[He]);const ae=(0,Ee.o2)(It),te=(0,Ee.yT)(It),ee=ae||te,oe=Object.assign(Object.assign({backgroundColor:It&&!ee?It:void 0},Lt==null?void 0:Lt.style),ye),ue=Tt("tag",Le),[re,ve,we]=rt(ue),ft=xe()(ue,Lt==null?void 0:Lt.className,{[`${ue}-${It}`]:ee,[`${ue}-has-color`]:It&&!ee,[`${ue}-hidden`]:!$e,[`${ue}-rtl`]:wt==="rtl",[`${ue}-borderless`]:!ge},Ae,ct,ve,we),Oe=Wt=>{Wt.stopPropagation(),bt==null||bt(Wt),!Wt.defaultPrevented&&At(!1)},[,Ye]=(0,Be.Z)((0,Be.w)(se),(0,Be.w)(Lt),{closable:!1,closeIconRender:Wt=>{const Ht=E.createElement("span",{className:`${ue}-close-icon`,onClick:Oe},Wt);return(0,De.wm)(Wt,Ht,ln=>({onClick:qt=>{var sn;(sn=ln==null?void 0:ln.onClick)===null||sn===void 0||sn.call(ln,qt),Oe(qt)},className:xe()(ln==null?void 0:ln.className,`${ue}-close-icon`)}))}}),mt=typeof Ge.onClick=="function"||ce&&ce.type==="a",Bt=Ue||null,Et=Bt?E.createElement(E.Fragment,null,Bt,ce&&E.createElement("span",null,ce)):ce,Ut=E.createElement("span",Object.assign({},st,{ref:qe,className:ft,style:oe}),Et,Ye,ae&&E.createElement(Fe,{key:"preset",prefixCls:ue}),te&&E.createElement(et,{key:"status",prefixCls:ue}));return re(mt?E.createElement(We.Z,{component:"Tag"},Ut):Ut)});Ke.CheckableTag=ht;var ze=Ke},99498:function(on,$t,ne){(function(E){E(ne(89780))})(function(E){E.defineOption("placeholder","",function(We,Ie,he){var Je=he&&he!=E.Init;if(Ie&&!Je)We.on("blur",Ee),We.on("change",Be),We.on("swapDoc",Be),E.on(We.getInputField(),"compositionupdate",We.state.placeholderCompose=function(){tt(We)}),Be(We);else if(!Ie&&Je){We.off("blur",Ee),We.off("change",Be),We.off("swapDoc",Be),E.off(We.getInputField(),"compositionupdate",We.state.placeholderCompose),Qe(We);var Pe=We.getWrapperElement();Pe.className=Pe.className.replace(" CodeMirror-empty","")}Ie&&!We.hasFocus()&&Ee(We)});function Qe(We){We.state.placeholder&&(We.state.placeholder.parentNode.removeChild(We.state.placeholder),We.state.placeholder=null)}function xe(We){Qe(We);var Ie=We.state.placeholder=document.createElement("pre");Ie.style.cssText="height: 0; overflow: visible",Ie.style.direction=We.getOption("direction"),Ie.className="CodeMirror-placeholder CodeMirror-line-like";var he=We.getOption("placeholder");typeof he=="string"&&(he=document.createTextNode(he)),Ie.appendChild(he),We.display.lineSpace.insertBefore(Ie,We.display.lineSpace.firstChild)}function tt(We){setTimeout(function(){var Ie=!1,he=We.getInputField();he.nodeName=="TEXTAREA"?Ie=!he.value:We.lineCount()==1&&(Ie=!/[^\u200b]/.test(he.querySelector(".CodeMirror-line").textContent)),Ie?xe(We):Qe(We)},20)}function Ee(We){De(We)&&xe(We)}function Be(We){var Ie=We.getWrapperElement(),he=De(We);Ie.className=Ie.className.replace(" CodeMirror-empty","")+(he?" CodeMirror-empty":""),he?xe(We):Qe(We)}function De(We){return We.lineCount()===1&&We.getLine(0)===""}})},25717:function(on,$t,ne){(function(E){E(ne(89780))})(function(E){var Qe={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},xe=E.Pos;E.defineOption("autoCloseBrackets",!1,function(Ce,Te,_e){_e&&_e!=E.Init&&(Ce.removeKeyMap(Ee),Ce.state.closeBrackets=null),Te&&(Be(tt(Te,"pairs")),Ce.state.closeBrackets=Te,Ce.addKeyMap(Ee))});function tt(Ce,Te){return Te=="pairs"&&typeof Ce=="string"?Ce:typeof Ce=="object"&&Ce[Te]!=null?Ce[Te]:Qe[Te]}var Ee={Backspace:Ie,Enter:he};function Be(Ce){for(var Te=0;Te<Ce.length;Te++){var _e=Ce.charAt(Te),rt="'"+_e+"'";Ee[rt]||(Ee[rt]=De(_e))}}Be(Qe.pairs+"`");function De(Ce){return function(Te){return Pe(Te,Ce)}}function We(Ce){var Te=Ce.state.closeBrackets;if(!Te||Te.override)return Te;var _e=Ce.getModeAt(Ce.getCursor());return _e.closeBrackets||Te}function Ie(Ce){var Te=We(Ce);if(!Te||Ce.getOption("disableInput"))return E.Pass;for(var _e=tt(Te,"pairs"),rt=Ce.listSelections(),gt=0;gt<rt.length;gt++){if(!rt[gt].empty())return E.Pass;var Pt=dt(Ce,rt[gt].head);if(!Pt||_e.indexOf(Pt)%2!=0)return E.Pass}for(var gt=rt.length-1;gt>=0;gt--){var ht=rt[gt].head;Ce.replaceRange("",xe(ht.line,ht.ch-1),xe(ht.line,ht.ch+1),"+delete")}}function he(Ce){var Te=We(Ce),_e=Te&&tt(Te,"explode");if(!_e||Ce.getOption("disableInput"))return E.Pass;for(var rt=Ce.listSelections(),gt=0;gt<rt.length;gt++){if(!rt[gt].empty())return E.Pass;var Pt=dt(Ce,rt[gt].head);if(!Pt||_e.indexOf(Pt)%2!=0)return E.Pass}Ce.operation(function(){var ht=Ce.lineSeparator()||`
`;Ce.replaceSelection(ht+ht,null),Ce.execCommand("goCharLeft"),rt=Ce.listSelections();for(var it=0;it<rt.length;it++){var nt=rt[it].head.line;Ce.indentLine(nt,null,!0),Ce.indentLine(nt+1,null,!0)}})}function Je(Ce){var Te=E.cmpPos(Ce.anchor,Ce.head)>0;return{anchor:new xe(Ce.anchor.line,Ce.anchor.ch+(Te?-1:1)),head:new xe(Ce.head.line,Ce.head.ch+(Te?1:-1))}}function Pe(Ce,Te){var _e=We(Ce);if(!_e||Ce.getOption("disableInput"))return E.Pass;var rt=tt(_e,"pairs"),gt=rt.indexOf(Te);if(gt==-1)return E.Pass;for(var Pt=tt(_e,"closeBefore"),ht=tt(_e,"triples"),it=rt.charAt(gt+1)==Te,nt=Ce.listSelections(),Fe=gt%2==0,kt,lt=0;lt<nt.length;lt++){var et=nt[lt],St=et.head,Me,Ke=Ce.getRange(St,xe(St.line,St.ch+1));if(Fe&&!et.empty())Me="surround";else if((it||!Fe)&&Ke==Te)it&&Ze(Ce,St)?Me="both":ht.indexOf(Te)>=0&&Ce.getRange(St,xe(St.line,St.ch+3))==Te+Te+Te?Me="skipThree":Me="skip";else if(it&&St.ch>1&&ht.indexOf(Te)>=0&&Ce.getRange(xe(St.line,St.ch-2),St)==Te+Te){if(St.ch>2&&/\bstring/.test(Ce.getTokenTypeAt(xe(St.line,St.ch-2))))return E.Pass;Me="addFour"}else if(it){var ze=St.ch==0?" ":Ce.getRange(xe(St.line,St.ch-1),St);if(!E.isWordChar(Ke)&&ze!=Te&&!E.isWordChar(ze))Me="both";else return E.Pass}else if(Fe&&(Ke.length===0||/\s/.test(Ke)||Pt.indexOf(Ke)>-1))Me="both";else return E.Pass;if(!kt)kt=Me;else if(kt!=Me)return E.Pass}var se=gt%2?rt.charAt(gt-1):Te,qe=gt%2?Te:rt.charAt(gt+1);Ce.operation(function(){if(kt=="skip")Ce.execCommand("goCharRight");else if(kt=="skipThree")for(var Le=0;Le<3;Le++)Ce.execCommand("goCharRight");else if(kt=="surround"){for(var Ae=Ce.getSelections(),Le=0;Le<Ae.length;Le++)Ae[Le]=se+Ae[Le]+qe;Ce.replaceSelections(Ae,"around"),Ae=Ce.listSelections().slice();for(var Le=0;Le<Ae.length;Le++)Ae[Le]=Je(Ae[Le]);Ce.setSelections(Ae)}else kt=="both"?(Ce.replaceSelection(se+qe,null),Ce.triggerElectric(se+qe),Ce.execCommand("goCharLeft")):kt=="addFour"&&(Ce.replaceSelection(se+se+se+se,"before"),Ce.execCommand("goCharRight"))})}function dt(Ce,Te){var _e=Ce.getRange(xe(Te.line,Te.ch-1),xe(Te.line,Te.ch+1));return _e.length==2?_e:null}function Ze(Ce,Te){var _e=Ce.getTokenAt(xe(Te.line,Te.ch+1));return/\bstring/.test(_e.type)&&_e.start==Te.ch&&(Te.ch==0||!/\bstring/.test(Ce.getTokenTypeAt(Te)))}})},6313:function(on,$t,ne){(function(E){E(ne(89780),ne(32855))})(function(E){E.defineOption("autoCloseTags",!1,function(Ie,he,Je){if(Je!=E.Init&&Je&&Ie.removeKeyMap("autoCloseTags"),!!he){var Pe={name:"autoCloseTags"};(typeof he!="object"||he.whenClosing!==!1)&&(Pe["'/'"]=function(dt){return Be(dt)}),(typeof he!="object"||he.whenOpening!==!1)&&(Pe["'>'"]=function(dt){return tt(dt)}),Ie.addKeyMap(Pe)}});var Qe=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],xe=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function tt(Ie){if(Ie.getOption("disableInput"))return E.Pass;for(var he=Ie.listSelections(),Je=[],Pe=Ie.getOption("autoCloseTags"),dt=0;dt<he.length;dt++){if(!he[dt].empty())return E.Pass;var Ze=he[dt].head,Ce=Ie.getTokenAt(Ze),Te=E.innerMode(Ie.getMode(),Ce.state),_e=Te.state,rt=Te.mode.xmlCurrentTag&&Te.mode.xmlCurrentTag(_e),gt=rt&&rt.name;if(!gt)return E.Pass;var Pt=Te.mode.configuration=="html",ht=typeof Pe=="object"&&Pe.dontCloseTags||Pt&&Qe,it=typeof Pe=="object"&&Pe.indentTags||Pt&&xe;Ce.end>Ze.ch&&(gt=gt.slice(0,gt.length-Ce.end+Ze.ch));var nt=gt.toLowerCase();if(!gt||Ce.type=="string"&&(Ce.end!=Ze.ch||!/[\"\']/.test(Ce.string.charAt(Ce.string.length-1))||Ce.string.length==1)||Ce.type=="tag"&&rt.close||Ce.string.indexOf("/")==Ze.ch-Ce.start-1||ht&&De(ht,nt)>-1||We(Ie,Te.mode.xmlCurrentContext&&Te.mode.xmlCurrentContext(_e)||[],gt,Ze,!0))return E.Pass;var Fe=typeof Pe=="object"&&Pe.emptyTags;if(Fe&&De(Fe,gt)>-1){Je[dt]={text:"/>",newPos:E.Pos(Ze.line,Ze.ch+2)};continue}var kt=it&&De(it,nt)>-1;Je[dt]={indent:kt,text:">"+(kt?`
`:"")+"</"+gt+">",newPos:kt?E.Pos(Ze.line+1,0):E.Pos(Ze.line,Ze.ch+1)}}for(var lt=typeof Pe=="object"&&Pe.dontIndentOnAutoClose,dt=he.length-1;dt>=0;dt--){var et=Je[dt];Ie.replaceRange(et.text,he[dt].head,he[dt].anchor,"+insert");var St=Ie.listSelections().slice(0);St[dt]={head:et.newPos,anchor:et.newPos},Ie.setSelections(St),!lt&&et.indent&&(Ie.indentLine(et.newPos.line,null,!0),Ie.indentLine(et.newPos.line+1,null,!0))}}function Ee(Ie,he){for(var Je=Ie.listSelections(),Pe=[],dt=he?"/":"</",Ze=Ie.getOption("autoCloseTags"),Ce=typeof Ze=="object"&&Ze.dontIndentOnSlash,Te=0;Te<Je.length;Te++){if(!Je[Te].empty())return E.Pass;var _e=Je[Te].head,rt=Ie.getTokenAt(_e),gt=E.innerMode(Ie.getMode(),rt.state),Pt=gt.state;if(he&&(rt.type=="string"||rt.string.charAt(0)!="<"||rt.start!=_e.ch-1))return E.Pass;var ht,it=gt.mode.name!="xml"&&Ie.getMode().name=="htmlmixed";if(it&&gt.mode.name=="javascript")ht=dt+"script";else if(it&&gt.mode.name=="css")ht=dt+"style";else{var nt=gt.mode.xmlCurrentContext&&gt.mode.xmlCurrentContext(Pt);if(!nt||nt.length&&We(Ie,nt,nt[nt.length-1],_e))return E.Pass;ht=dt+nt[nt.length-1]}Ie.getLine(_e.line).charAt(rt.end)!=">"&&(ht+=">"),Pe[Te]=ht}if(Ie.replaceSelections(Pe),Je=Ie.listSelections(),!Ce)for(var Te=0;Te<Je.length;Te++)(Te==Je.length-1||Je[Te].head.line<Je[Te+1].head.line)&&Ie.indentLine(Je[Te].head.line)}function Be(Ie){return Ie.getOption("disableInput")?E.Pass:Ee(Ie,!0)}E.commands.closeTag=function(Ie){return Ee(Ie)};function De(Ie,he){if(Ie.indexOf)return Ie.indexOf(he);for(var Je=0,Pe=Ie.length;Je<Pe;++Je)if(Ie[Je]==he)return Je;return-1}function We(Ie,he,Je,Pe,dt){if(!E.scanForClosingTag)return!1;var Ze=Math.min(Ie.lastLine()+1,Pe.line+500),Ce=E.scanForClosingTag(Ie,Pe,null,Ze);if(!Ce||Ce.tag!=Je)return!1;for(var Te=dt?1:0,_e=he.length-1;_e>=0&&he[_e]==Je;_e--)++Te;Pe=Ce.to;for(var _e=1;_e<Te;_e++){var rt=E.scanForClosingTag(Ie,Pe,null,Ze);if(!rt||rt.tag!=Je)return!1;Pe=rt.to}return!0}})},32855:function(on,$t,ne){(function(E){E(ne(89780))})(function(E){"use strict";var Qe=E.Pos;function xe(_e,rt){return _e.line-rt.line||_e.ch-rt.ch}var tt="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Ee=tt+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Be=new RegExp("<(/?)(["+tt+"]["+Ee+"]*)","g");function De(_e,rt,gt,Pt){this.line=rt,this.ch=gt,this.cm=_e,this.text=_e.getLine(rt),this.min=Pt?Math.max(Pt.from,_e.firstLine()):_e.firstLine(),this.max=Pt?Math.min(Pt.to-1,_e.lastLine()):_e.lastLine()}function We(_e,rt){var gt=_e.cm.getTokenTypeAt(Qe(_e.line,rt));return gt&&/\btag\b/.test(gt)}function Ie(_e){if(!(_e.line>=_e.max))return _e.ch=0,_e.text=_e.cm.getLine(++_e.line),!0}function he(_e){if(!(_e.line<=_e.min))return _e.text=_e.cm.getLine(--_e.line),_e.ch=_e.text.length,!0}function Je(_e){for(;;){var rt=_e.text.indexOf(">",_e.ch);if(rt==-1){if(Ie(_e))continue;return}if(!We(_e,rt+1)){_e.ch=rt+1;continue}var gt=_e.text.lastIndexOf("/",rt),Pt=gt>-1&&!/\S/.test(_e.text.slice(gt+1,rt));return _e.ch=rt+1,Pt?"selfClose":"regular"}}function Pe(_e){for(;;){var rt=_e.ch?_e.text.lastIndexOf("<",_e.ch-1):-1;if(rt==-1){if(he(_e))continue;return}if(!We(_e,rt+1)){_e.ch=rt;continue}Be.lastIndex=rt,_e.ch=rt;var gt=Be.exec(_e.text);if(gt&&gt.index==rt)return gt}}function dt(_e){for(;;){Be.lastIndex=_e.ch;var rt=Be.exec(_e.text);if(!rt){if(Ie(_e))continue;return}if(!We(_e,rt.index+1)){_e.ch=rt.index+1;continue}return _e.ch=rt.index+rt[0].length,rt}}function Ze(_e){for(;;){var rt=_e.ch?_e.text.lastIndexOf(">",_e.ch-1):-1;if(rt==-1){if(he(_e))continue;return}if(!We(_e,rt+1)){_e.ch=rt;continue}var gt=_e.text.lastIndexOf("/",rt),Pt=gt>-1&&!/\S/.test(_e.text.slice(gt+1,rt));return _e.ch=rt+1,Pt?"selfClose":"regular"}}function Ce(_e,rt){for(var gt=[];;){var Pt=dt(_e),ht,it=_e.line,nt=_e.ch-(Pt?Pt[0].length:0);if(!Pt||!(ht=Je(_e)))return;if(ht!="selfClose")if(Pt[1]){for(var Fe=gt.length-1;Fe>=0;--Fe)if(gt[Fe]==Pt[2]){gt.length=Fe;break}if(Fe<0&&(!rt||rt==Pt[2]))return{tag:Pt[2],from:Qe(it,nt),to:Qe(_e.line,_e.ch)}}else gt.push(Pt[2])}}function Te(_e,rt){for(var gt=[];;){var Pt=Ze(_e);if(!Pt)return;if(Pt=="selfClose"){Pe(_e);continue}var ht=_e.line,it=_e.ch,nt=Pe(_e);if(!nt)return;if(nt[1])gt.push(nt[2]);else{for(var Fe=gt.length-1;Fe>=0;--Fe)if(gt[Fe]==nt[2]){gt.length=Fe;break}if(Fe<0&&(!rt||rt==nt[2]))return{tag:nt[2],from:Qe(_e.line,_e.ch),to:Qe(ht,it)}}}}E.registerHelper("fold","xml",function(_e,rt){for(var gt=new De(_e,rt.line,0);;){var Pt=dt(gt);if(!Pt||gt.line!=rt.line)return;var ht=Je(gt);if(!ht)return;if(!Pt[1]&&ht!="selfClose"){var it=Qe(gt.line,gt.ch),nt=Ce(gt,Pt[2]);return nt&&xe(nt.from,it)>0?{from:it,to:nt.from}:null}}}),E.findMatchingTag=function(_e,rt,gt){var Pt=new De(_e,rt.line,rt.ch,gt);if(!(Pt.text.indexOf(">")==-1&&Pt.text.indexOf("<")==-1)){var ht=Je(Pt),it=ht&&Qe(Pt.line,Pt.ch),nt=ht&&Pe(Pt);if(!(!ht||!nt||xe(Pt,rt)>0)){var Fe={from:Qe(Pt.line,Pt.ch),to:it,tag:nt[2]};return ht=="selfClose"?{open:Fe,close:null,at:"open"}:nt[1]?{open:Te(Pt,nt[2]),close:Fe,at:"close"}:(Pt=new De(_e,it.line,it.ch,gt),{open:Fe,close:Ce(Pt,nt[2]),at:"open"})}}},E.findEnclosingTag=function(_e,rt,gt,Pt){for(var ht=new De(_e,rt.line,rt.ch,gt);;){var it=Te(ht,Pt);if(!it)break;var nt=new De(_e,rt.line,rt.ch,gt),Fe=Ce(nt,it.tag);if(Fe)return{open:it,close:Fe}}},E.scanForClosingTag=function(_e,rt,gt,Pt){var ht=new De(_e,rt.line,rt.ch,Pt?{from:0,to:Pt}:null);return Ce(ht,gt)}})},89780:function(on){(function($t,ne){on.exports=ne()})(this,function(){"use strict";var $t=navigator.userAgent,ne=navigator.platform,E=/gecko\/\d/i.test($t),Qe=/MSIE \d/.test($t),xe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec($t),tt=/Edge\/(\d+)/.exec($t),Ee=Qe||xe||tt,Be=Ee&&(Qe?document.documentMode||6:+(tt||xe)[1]),De=!tt&&/WebKit\//.test($t),We=De&&/Qt\/\d+\.\d+/.test($t),Ie=!tt&&/Chrome\//.test($t),he=/Opera\//.test($t),Je=/Apple Computer/.test(navigator.vendor),Pe=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test($t),dt=/PhantomJS/.test($t),Ze=!tt&&/AppleWebKit/.test($t)&&/Mobile\/\w+/.test($t),Ce=/Android/.test($t),Te=Ze||Ce||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test($t),_e=Ze||/Mac/.test(ne),rt=/\bCrOS\b/.test($t),gt=/win/i.test(ne),Pt=he&&$t.match(/Version\/(\d*\.\d*)/);Pt&&(Pt=Number(Pt[1])),Pt&&Pt>=15&&(he=!1,De=!0);var ht=_e&&(We||he&&(Pt==null||Pt<12.11)),it=E||Ee&&Be>=9;function nt(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Fe=function(a,y){var x=a.className,b=nt(y).exec(x);if(b){var z=x.slice(b.index+b[0].length);a.className=x.slice(0,b.index)+(z?b[1]+z:"")}};function kt(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function lt(a,y){return kt(a).appendChild(y)}function et(a,y,x,b){var z=document.createElement(a);if(x&&(z.className=x),b&&(z.style.cssText=b),typeof y=="string")z.appendChild(document.createTextNode(y));else if(y)for(var ie=0;ie<y.length;++ie)z.appendChild(y[ie]);return z}function St(a,y,x,b){var z=et(a,y,x,b);return z.setAttribute("role","presentation"),z}var Me;document.createRange?Me=function(a,y,x,b){var z=document.createRange();return z.setEnd(b||a,x),z.setStart(a,y),z}:Me=function(a,y,x){var b=document.body.createTextRange();try{b.moveToElementText(a.parentNode)}catch(z){return b}return b.collapse(!0),b.moveEnd("character",x),b.moveStart("character",y),b};function Ke(a,y){if(y.nodeType==3&&(y=y.parentNode),a.contains)return a.contains(y);do if(y.nodeType==11&&(y=y.host),y==a)return!0;while(y=y.parentNode)}function ze(){var a;try{a=document.activeElement}catch(y){a=document.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function se(a,y){var x=a.className;nt(y).test(x)||(a.className+=(x?" ":"")+y)}function qe(a,y){for(var x=a.split(" "),b=0;b<x.length;b++)x[b]&&!nt(x[b]).test(y)&&(y+=" "+x[b]);return y}var Le=function(a){a.select()};Ze?Le=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:Ee&&(Le=function(a){try{a.select()}catch(y){}});function Ae(a){var y=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,y)}}function ct(a,y,x){y||(y={});for(var b in a)a.hasOwnProperty(b)&&(x!==!1||!y.hasOwnProperty(b))&&(y[b]=a[b]);return y}function ye(a,y,x,b,z){y==null&&(y=a.search(/[^\s\u00a0]/),y==-1&&(y=a.length));for(var ie=b||0,le=z||0;;){var de=a.indexOf(" ",ie);if(de<0||de>=y)return le+(y-ie);le+=de-ie,le+=x-le%x,ie=de+1}}var ce=function(){this.id=null,this.f=null,this.time=0,this.handler=Ae(this.onTimeout,this)};ce.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},ce.prototype.set=function(a,y){this.f=y;var x=+new Date+a;(!this.id||x<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=x)};function Ue(a,y){for(var x=0;x<a.length;++x)if(a[x]==y)return x;return-1}var It=50,bt={toString:function(){return"CodeMirror.Pass"}},ge={scroll:!1},He={origin:"*mouse"},Ge={origin:"+move"};function Tt(a,y,x){for(var b=0,z=0;;){var ie=a.indexOf(" ",b);ie==-1&&(ie=a.length);var le=ie-b;if(ie==a.length||z+le>=y)return b+Math.min(le,y-z);if(z+=ie-b,z+=x-z%x,b=ie+1,z>=y)return b}}var wt=[""];function Lt(a){for(;wt.length<=a;)wt.push($e(wt)+" ");return wt[a]}function $e(a){return a[a.length-1]}function At(a,y){for(var x=[],b=0;b<a.length;b++)x[b]=y(a[b],b);return x}function st(a,y,x){for(var b=0,z=x(y);b<a.length&&x(a[b])<=z;)b++;a.splice(b,0,y)}function ae(){}function te(a,y){var x;return Object.create?x=Object.create(a):(ae.prototype=a,x=new ae),y&&ct(y,x),x}var ee=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function oe(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||ee.test(a))}function ue(a,y){return y?y.source.indexOf("\\w")>-1&&oe(a)?!0:y.test(a):oe(a)}function re(a){for(var y in a)if(a.hasOwnProperty(y)&&a[y])return!1;return!0}var ve=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function we(a){return a.charCodeAt(0)>=768&&ve.test(a)}function ft(a,y,x){for(;(x<0?y>0:y<a.length)&&we(a.charAt(y));)y+=x;return y}function Oe(a,y,x){for(var b=y>x?-1:1;;){if(y==x)return y;var z=(y+x)/2,ie=b<0?Math.ceil(z):Math.floor(z);if(ie==y)return a(ie)?y:x;a(ie)?x=ie:y=ie+b}}function Ye(a,y,x,b){if(!a)return b(y,x,"ltr",0);for(var z=!1,ie=0;ie<a.length;++ie){var le=a[ie];(le.from<x&&le.to>y||y==x&&le.to==y)&&(b(Math.max(le.from,y),Math.min(le.to,x),le.level==1?"rtl":"ltr",ie),z=!0)}z||b(y,x,"ltr")}var mt=null;function Bt(a,y,x){var b;mt=null;for(var z=0;z<a.length;++z){var ie=a[z];if(ie.from<y&&ie.to>y)return z;ie.to==y&&(ie.from!=ie.to&&x=="before"?b=z:mt=z),ie.from==y&&(ie.from!=ie.to&&x!="before"?b=z:mt=z)}return b!=null?b:mt}var Et=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function x(Se){return Se<=247?a.charAt(Se):1424<=Se&&Se<=1524?"R":1536<=Se&&Se<=1785?y.charAt(Se-1536):1774<=Se&&Se<=2220?"r":8192<=Se&&Se<=8203?"w":Se==8204?"b":"L"}var b=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,z=/[stwN]/,ie=/[LRr]/,le=/[Lb1n]/,de=/[1n]/;function me(Se,at,vt){this.level=Se,this.from=at,this.to=vt}return function(Se,at){var vt=at=="ltr"?"L":"R";if(Se.length==0||at=="ltr"&&!b.test(Se))return!1;for(var Zt=Se.length,zt=[],hn=0;hn<Zt;++hn)zt.push(x(Se.charCodeAt(hn)));for(var Mn=0,$n=vt;Mn<Zt;++Mn){var er=zt[Mn];er=="m"?zt[Mn]=$n:$n=er}for(var lr=0,tr=vt;lr<Zt;++lr){var cr=zt[lr];cr=="1"&&tr=="r"?zt[lr]="n":ie.test(cr)&&(tr=cr,cr=="r"&&(zt[lr]="R"))}for(var Cr=1,gr=zt[0];Cr<Zt-1;++Cr){var Dr=zt[Cr];Dr=="+"&&gr=="1"&&zt[Cr+1]=="1"?zt[Cr]="1":Dr==","&&gr==zt[Cr+1]&&(gr=="1"||gr=="n")&&(zt[Cr]=gr),gr=Dr}for(var Ur=0;Ur<Zt;++Ur){var fi=zt[Ur];if(fi==",")zt[Ur]="N";else if(fi=="%"){var Yr=void 0;for(Yr=Ur+1;Yr<Zt&&zt[Yr]=="%";++Yr);for(var $i=Ur&&zt[Ur-1]=="!"||Yr<Zt&&zt[Yr]=="1"?"1":"N",Di=Ur;Di<Yr;++Di)zt[Di]=$i;Ur=Yr-1}}for(var ii=0,Ai=vt;ii<Zt;++ii){var gi=zt[ii];Ai=="L"&&gi=="1"?zt[ii]="L":ie.test(gi)&&(Ai=gi)}for(var si=0;si<Zt;++si)if(z.test(zt[si])){var oi=void 0;for(oi=si+1;oi<Zt&&z.test(zt[oi]);++oi);for(var Qr=(si?zt[si-1]:vt)=="L",Mi=(oi<Zt?zt[oi]:vt)=="L",Vo=Qr==Mi?Qr?"L":"R":vt,xo=si;xo<oi;++xo)zt[xo]=Vo;si=oi-1}for(var Si=[],oo,hi=0;hi<Zt;)if(le.test(zt[hi])){var bl=hi;for(++hi;hi<Zt&&le.test(zt[hi]);++hi);Si.push(new me(0,bl,hi))}else{var uo=hi,Oo=Si.length,ko=at=="rtl"?1:0;for(++hi;hi<Zt&&zt[hi]!="L";++hi);for(var Bi=uo;Bi<hi;)if(de.test(zt[Bi])){uo<Bi&&(Si.splice(Oo,0,new me(1,uo,Bi)),Oo+=ko);var Go=Bi;for(++Bi;Bi<hi&&de.test(zt[Bi]);++Bi);Si.splice(Oo,0,new me(2,Go,Bi)),Oo+=ko,uo=Bi}else++Bi;uo<hi&&Si.splice(Oo,0,new me(1,uo,hi))}return at=="ltr"&&(Si[0].level==1&&(oo=Se.match(/^\s+/))&&(Si[0].from=oo[0].length,Si.unshift(new me(0,0,oo[0].length))),$e(Si).level==1&&(oo=Se.match(/\s+$/))&&($e(Si).to-=oo[0].length,Si.push(new me(0,Zt-oo[0].length,Zt)))),at=="rtl"?Si.reverse():Si}}();function Ut(a,y){var x=a.order;return x==null&&(x=a.order=Et(a.text,y)),x}var Wt=[],Ht=function(a,y,x){if(a.addEventListener)a.addEventListener(y,x,!1);else if(a.attachEvent)a.attachEvent("on"+y,x);else{var b=a._handlers||(a._handlers={});b[y]=(b[y]||Wt).concat(x)}};function ln(a,y){return a._handlers&&a._handlers[y]||Wt}function qt(a,y,x){if(a.removeEventListener)a.removeEventListener(y,x,!1);else if(a.detachEvent)a.detachEvent("on"+y,x);else{var b=a._handlers,z=b&&b[y];if(z){var ie=Ue(z,x);ie>-1&&(b[y]=z.slice(0,ie).concat(z.slice(ie+1)))}}}function sn(a,y){var x=ln(a,y);if(x.length)for(var b=Array.prototype.slice.call(arguments,2),z=0;z<x.length;++z)x[z].apply(null,b)}function Dt(a,y,x){return typeof y=="string"&&(y={type:y,preventDefault:function(){this.defaultPrevented=!0}}),sn(a,x||y.type,a,y),jt(y)||y.codemirrorIgnore}function tn(a){var y=a._handlers&&a._handlers.cursorActivity;if(y)for(var x=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),b=0;b<y.length;++b)Ue(x,y[b])==-1&&x.push(y[b])}function Vt(a,y){return ln(a,y).length>0}function je(a){a.prototype.on=function(y,x){Ht(this,y,x)},a.prototype.off=function(y,x){qt(this,y,x)}}function pt(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Ft(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function jt(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Ne(a){pt(a),Ft(a)}function ot(a){return a.target||a.srcElement}function yt(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),_e&&a.ctrlKey&&y==1&&(y=3),y}var Mt=function(){if(Ee&&Be<9)return!1;var a=et("div");return"draggable"in a||"dragDrop"in a}(),Kt;function cn(a){if(Kt==null){var y=et("span","\u200B");lt(a,et("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Kt=y.offsetWidth<=1&&y.offsetHeight>2&&!(Ee&&Be<8))}var x=Kt?et("span","\u200B"):et("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var Dn;function kn(a){if(Dn!=null)return Dn;var y=lt(a,document.createTextNode("A\u062EA")),x=Me(y,0,1).getBoundingClientRect(),b=Me(y,1,2).getBoundingClientRect();return kt(a),!x||x.left==x.right?!1:Dn=b.right-x.right<3}var un=`
b`.split(/\n/).length!=3?function(a){for(var y=0,x=[],b=a.length;y<=b;){var z=a.indexOf(`
`,y);z==-1&&(z=a.length);var ie=a.slice(y,a.charAt(z-1)=="\r"?z-1:z),le=ie.indexOf("\r");le!=-1?(x.push(ie.slice(0,le)),y+=le+1):(x.push(ie),y=z+1)}return x}:function(a){return a.split(/\r\n?|\n/)},bn=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(y){return!1}}:function(a){var y;try{y=a.ownerDocument.selection.createRange()}catch(x){}return!y||y.parentElement()!=a?!1:y.compareEndPoints("StartToEnd",y)!=0},fn=function(){var a=et("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),Gt=null;function Rt(a){if(Gt!=null)return Gt;var y=lt(a,et("span","x")),x=y.getBoundingClientRect(),b=Me(y,0,1).getBoundingClientRect();return Gt=Math.abs(x.left-b.left)>1}var _t={},Ot={};function an(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),_t[a]=y}function nn(a,y){Ot[a]=y}function en(a){if(typeof a=="string"&&Ot.hasOwnProperty(a))a=Ot[a];else if(a&&typeof a.name=="string"&&Ot.hasOwnProperty(a.name)){var y=Ot[a.name];typeof y=="string"&&(y={name:y}),a=te(y,a),a.name=y.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return en("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return en("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function xn(a,y){y=en(y);var x=_t[y.name];if(!x)return xn(a,"text/plain");var b=x(a,y);if(Pn.hasOwnProperty(y.name)){var z=Pn[y.name];for(var ie in z)z.hasOwnProperty(ie)&&(b.hasOwnProperty(ie)&&(b["_"+ie]=b[ie]),b[ie]=z[ie])}if(b.name=y.name,y.helperType&&(b.helperType=y.helperType),y.modeProps)for(var le in y.modeProps)b[le]=y.modeProps[le];return b}var Pn={};function Cn(a,y){var x=Pn.hasOwnProperty(a)?Pn[a]:Pn[a]={};ct(y,x)}function Nn(a,y){if(y===!0)return y;if(a.copyState)return a.copyState(y);var x={};for(var b in y){var z=y[b];z instanceof Array&&(z=z.concat([])),x[b]=z}return x}function An(a,y){for(var x;a.innerMode&&(x=a.innerMode(y),!(!x||x.mode==a));)y=x.state,a=x.mode;return x||{mode:a,state:y}}function Qn(a,y,x){return a.startState?a.startState(y,x):!0}var zn=function(a,y,x){this.pos=this.start=0,this.string=a,this.tabSize=y||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=x};zn.prototype.eol=function(){return this.pos>=this.string.length},zn.prototype.sol=function(){return this.pos==this.lineStart},zn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},zn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},zn.prototype.eat=function(a){var y=this.string.charAt(this.pos),x;if(typeof a=="string"?x=y==a:x=y&&(a.test?a.test(y):a(y)),x)return++this.pos,y},zn.prototype.eatWhile=function(a){for(var y=this.pos;this.eat(a););return this.pos>y},zn.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},zn.prototype.skipToEnd=function(){this.pos=this.string.length},zn.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},zn.prototype.backUp=function(a){this.pos-=a},zn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ye(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ye(this.string,this.lineStart,this.tabSize):0)},zn.prototype.indentation=function(){return ye(this.string,null,this.tabSize)-(this.lineStart?ye(this.string,this.lineStart,this.tabSize):0)},zn.prototype.match=function(a,y,x){if(typeof a=="string"){var b=function(le){return x?le.toLowerCase():le},z=this.string.substr(this.pos,a.length);if(b(z)==b(a))return y!==!1&&(this.pos+=a.length),!0}else{var ie=this.string.slice(this.pos).match(a);return ie&&ie.index>0?null:(ie&&y!==!1&&(this.pos+=ie[0].length),ie)}},zn.prototype.current=function(){return this.string.slice(this.start,this.pos)},zn.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},zn.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},zn.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Nt(a,y){if(y-=a.first,y<0||y>=a.size)throw new Error("There is no line "+(y+a.first)+" in the document.");for(var x=a;!x.lines;)for(var b=0;;++b){var z=x.children[b],ie=z.chunkSize();if(y<ie){x=z;break}y-=ie}return x.lines[y]}function Qt(a,y,x){var b=[],z=y.line;return a.iter(y.line,x.line+1,function(ie){var le=ie.text;z==x.line&&(le=le.slice(0,x.ch)),z==y.line&&(le=le.slice(y.ch)),b.push(le),++z}),b}function En(a,y,x){var b=[];return a.iter(y,x,function(z){b.push(z.text)}),b}function mn(a,y){var x=y-a.height;if(x)for(var b=a;b;b=b.parent)b.height+=x}function Xe(a){if(a.parent==null)return null;for(var y=a.parent,x=Ue(y.lines,a),b=y.parent;b;y=b,b=b.parent)for(var z=0;b.children[z]!=y;++z)x+=b.children[z].chunkSize();return x+y.first}function ut(a,y){var x=a.first;e:do{for(var b=0;b<a.children.length;++b){var z=a.children[b],ie=z.height;if(y<ie){a=z;continue e}y-=ie,x+=z.chunkSize()}return x}while(!a.lines);for(var le=0;le<a.lines.length;++le){var de=a.lines[le],me=de.height;if(y<me)break;y-=me}return x+le}function ke(a,y){return y>=a.first&&y<a.first+a.size}function be(a,y){return String(a.lineNumberFormatter(y+a.firstLineNumber))}function fe(a,y,x){if(x===void 0&&(x=null),!(this instanceof fe))return new fe(a,y,x);this.line=a,this.ch=y,this.sticky=x}function pe(a,y){return a.line-y.line||a.ch-y.ch}function Ve(a,y){return a.sticky==y.sticky&&pe(a,y)==0}function Xt(a){return fe(a.line,a.ch)}function rn(a,y){return pe(a,y)<0?y:a}function Yt(a,y){return pe(a,y)<0?a:y}function Ct(a,y){return Math.max(a.first,Math.min(y,a.first+a.size-1))}function Re(a,y){if(y.line<a.first)return fe(a.first,0);var x=a.first+a.size-1;return y.line>x?fe(x,Nt(a,x).text.length):xt(y,Nt(a,y.line).text.length)}function xt(a,y){var x=a.ch;return x==null||x>y?fe(a.line,y):x<0?fe(a.line,0):a}function Jt(a,y){for(var x=[],b=0;b<y.length;b++)x[b]=Re(a,y[b]);return x}var gn=function(a,y){this.state=a,this.lookAhead=y},On=function(a,y,x,b){this.state=y,this.doc=a,this.line=x,this.maxLookAhead=b||0,this.baseTokens=null,this.baseTokenPos=1};On.prototype.lookAhead=function(a){var y=this.doc.getLine(this.line+a);return y!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),y},On.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var y=this.baseTokens[this.baseTokenPos+1];return{type:y&&y.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},On.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},On.fromSaved=function(a,y,x){return y instanceof gn?new On(a,Nn(a.mode,y.state),x,y.lookAhead):new On(a,Nn(a.mode,y),x)},On.prototype.save=function(a){var y=a!==!1?Nn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new gn(y,this.maxLookAhead):y};function Sn(a,y,x,b){var z=[a.state.modeGen],ie={};rr(a,y.text,a.doc.mode,x,function(Se,at){return z.push(Se,at)},ie,b);for(var le=x.state,de=function(Se){x.baseTokens=z;var at=a.state.overlays[Se],vt=1,Zt=0;x.state=!0,rr(a,y.text,at.mode,x,function(zt,hn){for(var Mn=vt;Zt<zt;){var $n=z[vt];$n>zt&&z.splice(vt,1,zt,z[vt+1],$n),vt+=2,Zt=Math.min(zt,$n)}if(hn)if(at.opaque)z.splice(Mn,vt-Mn,zt,"overlay "+hn),vt=Mn+2;else for(;Mn<vt;Mn+=2){var er=z[Mn+1];z[Mn+1]=(er?er+" ":"")+"overlay "+hn}},ie),x.state=le,x.baseTokens=null,x.baseTokenPos=1},me=0;me<a.state.overlays.length;++me)de(me);return{styles:z,classes:ie.bgClass||ie.textClass?ie:null}}function Fn(a,y,x){if(!y.styles||y.styles[0]!=a.state.modeGen){var b=Xn(a,Xe(y)),z=y.text.length>a.options.maxHighlightLength&&Nn(a.doc.mode,b.state),ie=Sn(a,y,b);z&&(b.state=z),y.stateAfter=b.save(!z),y.styles=ie.styles,ie.classes?y.styleClasses=ie.classes:y.styleClasses&&(y.styleClasses=null),x===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return y.styles}function Xn(a,y,x){var b=a.doc,z=a.display;if(!b.mode.startState)return new On(b,!0,y);var ie=ir(a,y,x),le=ie>b.first&&Nt(b,ie-1).stateAfter,de=le?On.fromSaved(b,le,ie):new On(b,Qn(b.mode),ie);return b.iter(ie,y,function(me){qn(a,me.text,de);var Se=de.line;me.stateAfter=Se==y-1||Se%5==0||Se>=z.viewFrom&&Se<z.viewTo?de.save():null,de.nextLine()}),x&&(b.modeFrontier=de.line),de}function qn(a,y,x,b){var z=a.doc.mode,ie=new zn(y,a.options.tabSize,x);for(ie.start=ie.pos=b||0,y==""&&Hn(z,x.state);!ie.eol();)Ln(z,ie,x.state),ie.start=ie.pos}function Hn(a,y){if(a.blankLine)return a.blankLine(y);if(a.innerMode){var x=An(a,y);if(x.mode.blankLine)return x.mode.blankLine(x.state)}}function Ln(a,y,x,b){for(var z=0;z<10;z++){b&&(b[0]=An(a,x).mode);var ie=a.token(y,x);if(y.pos>y.start)return ie}throw new Error("Mode "+a.name+" failed to advance stream.")}var Rn=function(a,y,x){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=x};function Zn(a,y,x,b){var z=a.doc,ie=z.mode,le;y=Re(z,y);var de=Nt(z,y.line),me=Xn(a,y.line,x),Se=new zn(de.text,a.options.tabSize,me),at;for(b&&(at=[]);(b||Se.pos<y.ch)&&!Se.eol();)Se.start=Se.pos,le=Ln(ie,Se,me.state),b&&at.push(new Rn(Se,le,Nn(z.mode,me.state)));return b?at:new Rn(Se,le,me.state)}function or(a,y){if(a)for(;;){var x=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!x)break;a=a.slice(0,x.index)+a.slice(x.index+x[0].length);var b=x[1]?"bgClass":"textClass";y[b]==null?y[b]=x[2]:new RegExp("(?:^|\\s)"+x[2]+"(?:$|\\s)").test(y[b])||(y[b]+=" "+x[2])}return a}function rr(a,y,x,b,z,ie,le){var de=x.flattenSpans;de==null&&(de=a.options.flattenSpans);var me=0,Se=null,at=new zn(y,a.options.tabSize,b),vt,Zt=a.options.addModeClass&&[null];for(y==""&&or(Hn(x,b.state),ie);!at.eol();){if(at.pos>a.options.maxHighlightLength?(de=!1,le&&qn(a,y,b,at.pos),at.pos=y.length,vt=null):vt=or(Ln(x,at,b.state,Zt),ie),Zt){var zt=Zt[0].name;zt&&(vt="m-"+(vt?zt+" "+vt:zt))}if(!de||Se!=vt){for(;me<at.start;)me=Math.min(at.start,me+5e3),z(me,Se);Se=vt}at.start=at.pos}for(;me<at.pos;){var hn=Math.min(at.pos,me+5e3);z(hn,Se),me=hn}}function ir(a,y,x){for(var b,z,ie=a.doc,le=x?-1:y-(a.doc.mode.innerMode?1e3:100),de=y;de>le;--de){if(de<=ie.first)return ie.first;var me=Nt(ie,de-1),Se=me.stateAfter;if(Se&&(!x||de+(Se instanceof gn?Se.lookAhead:0)<=ie.modeFrontier))return de;var at=ye(me.text,null,a.options.tabSize);(z==null||b>at)&&(z=de-1,b=at)}return z}function Un(a,y){if(a.modeFrontier=Math.min(a.modeFrontier,y),!(a.highlightFrontier<y-10)){for(var x=a.first,b=y-1;b>x;b--){var z=Nt(a,b).stateAfter;if(z&&(!(z instanceof gn)||b+z.lookAhead<y)){x=b+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,x)}}var Kn=!1,Tn=!1;function mr(){Kn=!0}function Vn(){Tn=!0}function Bn(a,y,x){this.marker=a,this.from=y,this.to=x}function Yn(a,y){if(a)for(var x=0;x<a.length;++x){var b=a[x];if(b.marker==y)return b}}function Jn(a,y){for(var x,b=0;b<a.length;++b)a[b]!=y&&(x||(x=[])).push(a[b]);return x}function dr(a,y){a.markedSpans=a.markedSpans?a.markedSpans.concat([y]):[y],y.marker.attachLine(a)}function sr(a,y,x){var b;if(a)for(var z=0;z<a.length;++z){var ie=a[z],le=ie.marker,de=ie.from==null||(le.inclusiveLeft?ie.from<=y:ie.from<y);if(de||ie.from==y&&le.type=="bookmark"&&(!x||!ie.marker.insertLeft)){var me=ie.to==null||(le.inclusiveRight?ie.to>=y:ie.to>y);(b||(b=[])).push(new Bn(le,ie.from,me?null:ie.to))}}return b}function _n(a,y,x){var b;if(a)for(var z=0;z<a.length;++z){var ie=a[z],le=ie.marker,de=ie.to==null||(le.inclusiveRight?ie.to>=y:ie.to>y);if(de||ie.from==y&&le.type=="bookmark"&&(!x||ie.marker.insertLeft)){var me=ie.from==null||(le.inclusiveLeft?ie.from<=y:ie.from<y);(b||(b=[])).push(new Bn(le,me?null:ie.from-y,ie.to==null?null:ie.to-y))}}return b}function hr(a,y){if(y.full)return null;var x=ke(a,y.from.line)&&Nt(a,y.from.line).markedSpans,b=ke(a,y.to.line)&&Nt(a,y.to.line).markedSpans;if(!x&&!b)return null;var z=y.from.ch,ie=y.to.ch,le=pe(y.from,y.to)==0,de=sr(x,z,le),me=_n(b,ie,le),Se=y.text.length==1,at=$e(y.text).length+(Se?z:0);if(de)for(var vt=0;vt<de.length;++vt){var Zt=de[vt];if(Zt.to==null){var zt=Yn(me,Zt.marker);zt?Se&&(Zt.to=zt.to==null?null:zt.to+at):Zt.to=z}}if(me)for(var hn=0;hn<me.length;++hn){var Mn=me[hn];if(Mn.to!=null&&(Mn.to+=at),Mn.from==null){var $n=Yn(de,Mn.marker);$n||(Mn.from=at,Se&&(de||(de=[])).push(Mn))}else Mn.from+=at,Se&&(de||(de=[])).push(Mn)}de&&(de=ar(de)),me&&me!=de&&(me=ar(me));var er=[de];if(!Se){var lr=y.text.length-2,tr;if(lr>0&&de)for(var cr=0;cr<de.length;++cr)de[cr].to==null&&(tr||(tr=[])).push(new Bn(de[cr].marker,null,null));for(var Cr=0;Cr<lr;++Cr)er.push(tr);er.push(me)}return er}function ar(a){for(var y=0;y<a.length;++y){var x=a[y];x.from!=null&&x.from==x.to&&x.marker.clearWhenEmpty!==!1&&a.splice(y--,1)}return a.length?a:null}function pr(a,y,x){var b=null;if(a.iter(y.line,x.line+1,function(zt){if(zt.markedSpans)for(var hn=0;hn<zt.markedSpans.length;++hn){var Mn=zt.markedSpans[hn].marker;Mn.readOnly&&(!b||Ue(b,Mn)==-1)&&(b||(b=[])).push(Mn)}}),!b)return null;for(var z=[{from:y,to:x}],ie=0;ie<b.length;++ie)for(var le=b[ie],de=le.find(0),me=0;me<z.length;++me){var Se=z[me];if(!(pe(Se.to,de.from)<0||pe(Se.from,de.to)>0)){var at=[me,1],vt=pe(Se.from,de.from),Zt=pe(Se.to,de.to);(vt<0||!le.inclusiveLeft&&!vt)&&at.push({from:Se.from,to:de.from}),(Zt>0||!le.inclusiveRight&&!Zt)&&at.push({from:de.to,to:Se.to}),z.splice.apply(z,at),me+=at.length-3}}return z}function fr(a){var y=a.markedSpans;if(y){for(var x=0;x<y.length;++x)y[x].marker.detachLine(a);a.markedSpans=null}}function wr(a,y){if(y){for(var x=0;x<y.length;++x)y[x].marker.attachLine(a);a.markedSpans=y}}function br(a){return a.inclusiveLeft?-1:0}function Or(a){return a.inclusiveRight?1:0}function _r(a,y){var x=a.lines.length-y.lines.length;if(x!=0)return x;var b=a.find(),z=y.find(),ie=pe(b.from,z.from)||br(a)-br(y);if(ie)return-ie;var le=pe(b.to,z.to)||Or(a)-Or(y);return le||y.id-a.id}function xr(a,y){var x=Tn&&a.markedSpans,b;if(x)for(var z=void 0,ie=0;ie<x.length;++ie)z=x[ie],z.marker.collapsed&&(y?z.from:z.to)==null&&(!b||_r(b,z.marker)<0)&&(b=z.marker);return b}function ur(a){return xr(a,!0)}function pn(a){return xr(a,!1)}function In(a,y){var x=Tn&&a.markedSpans,b;if(x)for(var z=0;z<x.length;++z){var ie=x[z];ie.marker.collapsed&&(ie.from==null||ie.from<y)&&(ie.to==null||ie.to>y)&&(!b||_r(b,ie.marker)<0)&&(b=ie.marker)}return b}function wn(a,y,x,b,z){var ie=Nt(a,y),le=Tn&&ie.markedSpans;if(le)for(var de=0;de<le.length;++de){var me=le[de];if(me.marker.collapsed){var Se=me.marker.find(0),at=pe(Se.from,x)||br(me.marker)-br(z),vt=pe(Se.to,b)||Or(me.marker)-Or(z);if(!(at>=0&&vt<=0||at<=0&&vt>=0)&&(at<=0&&(me.marker.inclusiveRight&&z.inclusiveLeft?pe(Se.to,x)>=0:pe(Se.to,x)>0)||at>=0&&(me.marker.inclusiveRight&&z.inclusiveLeft?pe(Se.from,b)<=0:pe(Se.from,b)<0)))return!0}}}function dn(a){for(var y;y=ur(a);)a=y.find(-1,!0).line;return a}function Gn(a){for(var y;y=pn(a);)a=y.find(1,!0).line;return a}function nr(a){for(var y,x;y=pn(a);)a=y.find(1,!0).line,(x||(x=[])).push(a);return x}function vn(a,y){var x=Nt(a,y),b=dn(x);return x==b?y:Xe(b)}function yn(a,y){if(y>a.lastLine())return y;var x=Nt(a,y),b;if(!jn(a,x))return y;for(;b=pn(x);)x=b.find(1,!0).line;return Xe(x)+1}function jn(a,y){var x=Tn&&y.markedSpans;if(x){for(var b=void 0,z=0;z<x.length;++z)if(b=x[z],!!b.marker.collapsed){if(b.from==null)return!0;if(!b.marker.widgetNode&&b.from==0&&b.marker.inclusiveLeft&&Wn(a,y,b))return!0}}}function Wn(a,y,x){if(x.to==null){var b=x.marker.find(1,!0);return Wn(a,b.line,Yn(b.line.markedSpans,x.marker))}if(x.marker.inclusiveRight&&x.to==y.text.length)return!0;for(var z=void 0,ie=0;ie<y.markedSpans.length;++ie)if(z=y.markedSpans[ie],z.marker.collapsed&&!z.marker.widgetNode&&z.from==x.to&&(z.to==null||z.to!=x.from)&&(z.marker.inclusiveLeft||x.marker.inclusiveRight)&&Wn(a,y,z))return!0}function vr(a){a=dn(a);for(var y=0,x=a.parent,b=0;b<x.lines.length;++b){var z=x.lines[b];if(z==a)break;y+=z.height}for(var ie=x.parent;ie;x=ie,ie=x.parent)for(var le=0;le<ie.children.length;++le){var de=ie.children[le];if(de==x)break;y+=de.height}return y}function kr(a){if(a.height==0)return 0;for(var y=a.text.length,x,b=a;x=ur(b);){var z=x.find(0,!0);b=z.from.line,y+=z.from.ch-z.to.ch}for(b=a;x=pn(b);){var ie=x.find(0,!0);y-=b.text.length-ie.from.ch,b=ie.to.line,y+=b.text.length-ie.to.ch}return y}function Br(a){var y=a.display,x=a.doc;y.maxLine=Nt(x,x.first),y.maxLineLength=kr(y.maxLine),y.maxLineChanged=!0,x.iter(function(b){var z=kr(b);z>y.maxLineLength&&(y.maxLineLength=z,y.maxLine=b)})}var Tr=function(a,y,x){this.text=a,wr(this,y),this.height=x?x(this):1};Tr.prototype.lineNo=function(){return Xe(this)},je(Tr);function Ar(a,y,x,b){a.text=y,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),fr(a),wr(a,x);var z=b?b(a):1;z!=a.height&&mn(a,z)}function Nr(a){a.parent=null,fr(a)}var zr={},Lr={};function jr(a,y){if(!a||/^\s*$/.test(a))return null;var x=y.addModeClass?Lr:zr;return x[a]||(x[a]=a.replace(/\S+/g,"cm-$&"))}function Jr(a,y){var x=St("span",null,null,De?"padding-right: .1px":null),b={pre:St("pre",[x],"CodeMirror-line"),content:x,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};y.measure={};for(var z=0;z<=(y.rest?y.rest.length:0);z++){var ie=z?y.rest[z-1]:y.line,le=void 0;b.pos=0,b.addToken=zi,kn(a.display.measure)&&(le=Ut(ie,a.doc.direction))&&(b.addToken=ri(b.addToken,le)),b.map=[];var de=y!=a.display.externalMeasured&&Xe(ie);Fr(ie,b,Fn(a,ie,de)),ie.styleClasses&&(ie.styleClasses.bgClass&&(b.bgClass=qe(ie.styleClasses.bgClass,b.bgClass||"")),ie.styleClasses.textClass&&(b.textClass=qe(ie.styleClasses.textClass,b.textClass||""))),b.map.length==0&&b.map.push(0,0,b.content.appendChild(cn(a.display.measure))),z==0?(y.measure.map=b.map,y.measure.cache={}):((y.measure.maps||(y.measure.maps=[])).push(b.map),(y.measure.caches||(y.measure.caches=[])).push({}))}if(De){var me=b.content.lastChild;(/\bcm-tab\b/.test(me.className)||me.querySelector&&me.querySelector(".cm-tab"))&&(b.content.className="cm-tab-wrap-hack")}return sn(a,"renderLine",a,y.line,b.pre),b.pre.className&&(b.textClass=qe(b.pre.className,b.textClass||"")),b}function Zr(a){var y=et("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function zi(a,y,x,b,z,ie,le){if(y){var de=a.splitSpaces?ui(y,a.trailingSpace):y,me=a.cm.state.specialChars,Se=!1,at;if(!me.test(y))a.col+=y.length,at=document.createTextNode(de),a.map.push(a.pos,a.pos+y.length,at),Ee&&Be<9&&(Se=!0),a.pos+=y.length;else{at=document.createDocumentFragment();for(var vt=0;;){me.lastIndex=vt;var Zt=me.exec(y),zt=Zt?Zt.index-vt:y.length-vt;if(zt){var hn=document.createTextNode(de.slice(vt,vt+zt));Ee&&Be<9?at.appendChild(et("span",[hn])):at.appendChild(hn),a.map.push(a.pos,a.pos+zt,hn),a.col+=zt,a.pos+=zt}if(!Zt)break;vt+=zt+1;var Mn=void 0;if(Zt[0]==" "){var $n=a.cm.options.tabSize,er=$n-a.col%$n;Mn=at.appendChild(et("span",Lt(er),"cm-tab")),Mn.setAttribute("role","presentation"),Mn.setAttribute("cm-text"," "),a.col+=er}else Zt[0]=="\r"||Zt[0]==`
`?(Mn=at.appendChild(et("span",Zt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Mn.setAttribute("cm-text",Zt[0]),a.col+=1):(Mn=a.cm.options.specialCharPlaceholder(Zt[0]),Mn.setAttribute("cm-text",Zt[0]),Ee&&Be<9?at.appendChild(et("span",[Mn])):at.appendChild(Mn),a.col+=1);a.map.push(a.pos,a.pos+1,Mn),a.pos++}}if(a.trailingSpace=de.charCodeAt(y.length-1)==32,x||b||z||Se||ie||le){var lr=x||"";b&&(lr+=b),z&&(lr+=z);var tr=et("span",[at],lr,ie);if(le)for(var cr in le)le.hasOwnProperty(cr)&&cr!="style"&&cr!="class"&&tr.setAttribute(cr,le[cr]);return a.content.appendChild(tr)}a.content.appendChild(at)}}function ui(a,y){if(a.length>1&&!/ /.test(a))return a;for(var x=y,b="",z=0;z<a.length;z++){var ie=a.charAt(z);ie==" "&&x&&(z==a.length-1||a.charCodeAt(z+1)==32)&&(ie="\xA0"),b+=ie,x=ie==" "}return b}function ri(a,y){return function(x,b,z,ie,le,de,me){z=z?z+" cm-force-border":"cm-force-border";for(var Se=x.pos,at=Se+b.length;;){for(var vt=void 0,Zt=0;Zt<y.length&&(vt=y[Zt],!(vt.to>Se&&vt.from<=Se));Zt++);if(vt.to>=at)return a(x,b,z,ie,le,de,me);a(x,b.slice(0,vt.to-Se),z,ie,null,de,me),ie=null,b=b.slice(vt.to-Se),Se=vt.to}}}function yi(a,y,x,b){var z=!b&&x.widgetNode;z&&a.map.push(a.pos,a.pos+y,z),!b&&a.cm.display.input.needsContentAttribute&&(z||(z=a.content.appendChild(document.createElement("span"))),z.setAttribute("cm-marker",x.id)),z&&(a.cm.display.input.setUneditable(z),a.content.appendChild(z)),a.pos+=y,a.trailingSpace=!1}function Fr(a,y,x){var b=a.markedSpans,z=a.text,ie=0;if(!b){for(var le=1;le<x.length;le+=2)y.addToken(y,z.slice(ie,ie=x[le]),jr(x[le+1],y.cm.options));return}for(var de=z.length,me=0,Se=1,at="",vt,Zt,zt=0,hn,Mn,$n,er,lr;;){if(zt==me){hn=Mn=$n=Zt="",lr=null,er=null,zt=1/0;for(var tr=[],cr=void 0,Cr=0;Cr<b.length;++Cr){var gr=b[Cr],Dr=gr.marker;if(Dr.type=="bookmark"&&gr.from==me&&Dr.widgetNode)tr.push(Dr);else if(gr.from<=me&&(gr.to==null||gr.to>me||Dr.collapsed&&gr.to==me&&gr.from==me)){if(gr.to!=null&&gr.to!=me&&zt>gr.to&&(zt=gr.to,Mn=""),Dr.className&&(hn+=" "+Dr.className),Dr.css&&(Zt=(Zt?Zt+";":"")+Dr.css),Dr.startStyle&&gr.from==me&&($n+=" "+Dr.startStyle),Dr.endStyle&&gr.to==zt&&(cr||(cr=[])).push(Dr.endStyle,gr.to),Dr.title&&((lr||(lr={})).title=Dr.title),Dr.attributes)for(var Ur in Dr.attributes)(lr||(lr={}))[Ur]=Dr.attributes[Ur];Dr.collapsed&&(!er||_r(er.marker,Dr)<0)&&(er=gr)}else gr.from>me&&zt>gr.from&&(zt=gr.from)}if(cr)for(var fi=0;fi<cr.length;fi+=2)cr[fi+1]==zt&&(Mn+=" "+cr[fi]);if(!er||er.from==me)for(var Yr=0;Yr<tr.length;++Yr)yi(y,0,tr[Yr]);if(er&&(er.from||0)==me){if(yi(y,(er.to==null?de+1:er.to)-me,er.marker,er.from==null),er.to==null)return;er.to==me&&(er=!1)}}if(me>=de)break;for(var $i=Math.min(de,zt);;){if(at){var Di=me+at.length;if(!er){var ii=Di>$i?at.slice(0,$i-me):at;y.addToken(y,ii,vt?vt+hn:hn,$n,me+ii.length==zt?Mn:"",Zt,lr)}if(Di>=$i){at=at.slice($i-me),me=$i;break}me=Di,$n=""}at=z.slice(ie,ie=x[Se++]),vt=jr(x[Se++],y.cm.options)}}}function Ui(a,y,x){this.line=y,this.rest=nr(y),this.size=this.rest?Xe($e(this.rest))-x+1:1,this.node=this.text=null,this.hidden=jn(a,y)}function qr(a,y,x){for(var b=[],z,ie=y;ie<x;ie=z){var le=new Ui(a.doc,Nt(a.doc,ie),ie);z=ie+le.size,b.push(le)}return b}var Ti=null;function Ni(a){Ti?Ti.ops.push(a):a.ownsGroup=Ti={ops:[a],delayedCallbacks:[]}}function Wi(a){var y=a.delayedCallbacks,x=0;do{for(;x<y.length;x++)y[x].call(null);for(var b=0;b<a.ops.length;b++){var z=a.ops[b];if(z.cursorActivityHandlers)for(;z.cursorActivityCalled<z.cursorActivityHandlers.length;)z.cursorActivityHandlers[z.cursorActivityCalled++].call(null,z.cm)}}while(x<y.length)}function bi(a,y){var x=a.ownsGroup;if(x)try{Wi(x)}finally{Ti=null,y(x)}}var Ii=null;function Vr(a,y){var x=ln(a,y);if(x.length){var b=Array.prototype.slice.call(arguments,2),z;Ti?z=Ti.delayedCallbacks:Ii?z=Ii:(z=Ii=[],setTimeout(Mr,0));for(var ie=function(de){z.push(function(){return x[de].apply(null,b)})},le=0;le<x.length;++le)ie(le)}}function Mr(){var a=Ii;Ii=null;for(var y=0;y<a.length;++y)a[y]()}function ai(a,y,x,b){for(var z=0;z<y.changes.length;z++){var ie=y.changes[z];ie=="text"?Ki(a,y):ie=="gutter"?Ir(a,y,x,b):ie=="class"?yr(a,y):ie=="widget"&&Sr(a,y,b)}y.changes=null}function pi(a){return a.node==a.text&&(a.node=et("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),Ee&&Be<8&&(a.node.style.zIndex=2)),a.node}function Xr(a,y){var x=y.bgClass?y.bgClass+" "+(y.line.bgClass||""):y.line.bgClass;if(x&&(x+=" CodeMirror-linebackground"),y.background)x?y.background.className=x:(y.background.parentNode.removeChild(y.background),y.background=null);else if(x){var b=pi(y);y.background=b.insertBefore(et("div",null,x),b.firstChild),a.display.input.setUneditable(y.background)}}function to(a,y){var x=a.display.externalMeasured;return x&&x.line==y.line?(a.display.externalMeasured=null,y.measure=x.measure,x.built):Jr(a,y)}function Ki(a,y){var x=y.text.className,b=to(a,y);y.text==y.node&&(y.node=b.pre),y.text.parentNode.replaceChild(b.pre,y.text),y.text=b.pre,b.bgClass!=y.bgClass||b.textClass!=y.textClass?(y.bgClass=b.bgClass,y.textClass=b.textClass,yr(a,y)):x&&(y.text.className=x)}function yr(a,y){Xr(a,y),y.line.wrapClass?pi(y).className=y.line.wrapClass:y.node!=y.text&&(y.node.className="");var x=y.textClass?y.textClass+" "+(y.line.textClass||""):y.line.textClass;y.text.className=x||""}function Ir(a,y,x,b){if(y.gutter&&(y.node.removeChild(y.gutter),y.gutter=null),y.gutterBackground&&(y.node.removeChild(y.gutterBackground),y.gutterBackground=null),y.line.gutterClass){var z=pi(y);y.gutterBackground=et("div",null,"CodeMirror-gutter-background "+y.line.gutterClass,"left: "+(a.options.fixedGutter?b.fixedPos:-b.gutterTotalWidth)+"px; width: "+b.gutterTotalWidth+"px"),a.display.input.setUneditable(y.gutterBackground),z.insertBefore(y.gutterBackground,y.text)}var ie=y.line.gutterMarkers;if(a.options.lineNumbers||ie){var le=pi(y),de=y.gutter=et("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?b.fixedPos:-b.gutterTotalWidth)+"px");if(a.display.input.setUneditable(de),le.insertBefore(de,y.text),y.line.gutterClass&&(de.className+=" "+y.line.gutterClass),a.options.lineNumbers&&(!ie||!ie["CodeMirror-linenumbers"])&&(y.lineNumber=de.appendChild(et("div",be(a.options,x),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+b.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),ie)for(var me=0;me<a.display.gutterSpecs.length;++me){var Se=a.display.gutterSpecs[me].className,at=ie.hasOwnProperty(Se)&&ie[Se];at&&de.appendChild(et("div",[at],"CodeMirror-gutter-elt","left: "+b.gutterLeft[Se]+"px; width: "+b.gutterWidth[Se]+"px"))}}}function Sr(a,y,x){y.alignable&&(y.alignable=null);for(var b=nt("CodeMirror-linewidget"),z=y.node.firstChild,ie=void 0;z;z=ie)ie=z.nextSibling,b.test(z.className)&&y.node.removeChild(z);$r(a,y,x)}function Er(a,y,x,b){var z=to(a,y);return y.text=y.node=z.pre,z.bgClass&&(y.bgClass=z.bgClass),z.textClass&&(y.textClass=z.textClass),yr(a,y),Ir(a,y,x,b),$r(a,y,b),y.node}function $r(a,y,x){if(Gr(a,y.line,y,x,!0),y.rest)for(var b=0;b<y.rest.length;b++)Gr(a,y.rest[b],y,x,!1)}function Gr(a,y,x,b,z){if(y.widgets)for(var ie=pi(x),le=0,de=y.widgets;le<de.length;++le){var me=de[le],Se=et("div",[me.node],"CodeMirror-linewidget"+(me.className?" "+me.className:""));me.handleMouseEvents||Se.setAttribute("cm-ignore-events","true"),Xi(me,Se,x,b),a.display.input.setUneditable(Se),z&&me.above?ie.insertBefore(Se,x.gutter||x.text):ie.appendChild(Se),Vr(me,"redraw")}}function Xi(a,y,x,b){if(a.noHScroll){(x.alignable||(x.alignable=[])).push(y);var z=b.wrapperWidth;y.style.left=b.fixedPos+"px",a.coverGutter||(z-=b.gutterTotalWidth,y.style.paddingLeft=b.gutterTotalWidth+"px"),y.style.width=z+"px"}a.coverGutter&&(y.style.zIndex=5,y.style.position="relative",a.noHScroll||(y.style.marginLeft=-b.gutterTotalWidth+"px"))}function wi(a){if(a.height!=null)return a.height;var y=a.doc.cm;if(!y)return 0;if(!Ke(document.body,a.node)){var x="position: relative;";a.coverGutter&&(x+="margin-left: -"+y.display.gutters.offsetWidth+"px;"),a.noHScroll&&(x+="width: "+y.display.wrapper.clientWidth+"px;"),lt(y.display.measure,et("div",[a.node],null,x))}return a.height=a.node.parentNode.offsetHeight}function mi(a,y){for(var x=ot(y);x!=a.wrapper;x=x.parentNode)if(!x||x.nodeType==1&&x.getAttribute("cm-ignore-events")=="true"||x.parentNode==a.sizer&&x!=a.mover)return!0}function ei(a){return a.lineSpace.offsetTop}function Zi(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function no(a){if(a.cachedPaddingH)return a.cachedPaddingH;var y=lt(a.measure,et("pre","x","CodeMirror-line-like")),x=window.getComputedStyle?window.getComputedStyle(y):y.currentStyle,b={left:parseInt(x.paddingLeft),right:parseInt(x.paddingRight)};return!isNaN(b.left)&&!isNaN(b.right)&&(a.cachedPaddingH=b),b}function Li(a){return It-a.display.nativeBarWidth}function ro(a){return a.display.scroller.clientWidth-Li(a)-a.display.barWidth}function ao(a){return a.display.scroller.clientHeight-Li(a)-a.display.barHeight}function Yi(a,y,x){var b=a.options.lineWrapping,z=b&&ro(a);if(!y.measure.heights||b&&y.measure.width!=z){var ie=y.measure.heights=[];if(b){y.measure.width=z;for(var le=y.text.firstChild.getClientRects(),de=0;de<le.length-1;de++){var me=le[de],Se=le[de+1];Math.abs(me.bottom-Se.bottom)>2&&ie.push((me.bottom+Se.top)/2-x.top)}}ie.push(x.bottom-x.top)}}function Do(a,y,x){if(a.line==y)return{map:a.measure.map,cache:a.measure.cache};for(var b=0;b<a.rest.length;b++)if(a.rest[b]==y)return{map:a.measure.maps[b],cache:a.measure.caches[b]};for(var z=0;z<a.rest.length;z++)if(Xe(a.rest[z])>x)return{map:a.measure.maps[z],cache:a.measure.caches[z],before:!0}}function Za(a,y){y=dn(y);var x=Xe(y),b=a.display.externalMeasured=new Ui(a.doc,y,x);b.lineN=x;var z=b.built=Jr(a,b);return b.text=z.pre,lt(a.display.lineMeasure,z.pre),b}function ya(a,y,x,b){return Vi(a,co(a,y),x,b)}function io(a,y){if(y>=a.display.viewFrom&&y<a.display.viewTo)return a.display.view[wo(a,y)];var x=a.display.externalMeasured;if(x&&y>=x.lineN&&y<x.lineN+x.size)return x}function co(a,y){var x=Xe(y),b=io(a,x);b&&!b.text?b=null:b&&b.changes&&(ai(a,b,x,fo(a)),a.curOp.forceUpdate=!0),b||(b=Za(a,y));var z=Do(b,y,x);return{line:y,view:b,rect:null,map:z.map,cache:z.cache,before:z.before,hasHeights:!1}}function Vi(a,y,x,b,z){y.before&&(x=-1);var ie=x+(b||""),le;return y.cache.hasOwnProperty(ie)?le=y.cache[ie]:(y.rect||(y.rect=y.view.text.getBoundingClientRect()),y.hasHeights||(Yi(a,y.view,y.rect),y.hasHeights=!0),le=Ca(a,y,x,b),le.bogus||(y.cache[ie]=le)),{left:le.left,right:le.right,top:z?le.rtop:le.top,bottom:z?le.rbottom:le.bottom}}var ba={left:0,right:0,top:0,bottom:0};function xa(a,y,x){for(var b,z,ie,le,de,me,Se=0;Se<a.length;Se+=3)if(de=a[Se],me=a[Se+1],y<de?(z=0,ie=1,le="left"):y<me?(z=y-de,ie=z+1):(Se==a.length-3||y==me&&a[Se+3]>y)&&(ie=me-de,z=ie-1,y>=me&&(le="right")),z!=null){if(b=a[Se+2],de==me&&x==(b.insertLeft?"left":"right")&&(le=x),x=="left"&&z==0)for(;Se&&a[Se-2]==a[Se-3]&&a[Se-1].insertLeft;)b=a[(Se-=3)+2],le="left";if(x=="right"&&z==me-de)for(;Se<a.length-3&&a[Se+3]==a[Se+4]&&!a[Se+5].insertLeft;)b=a[(Se+=3)+2],le="right";break}return{node:b,start:z,end:ie,collapse:le,coverStart:de,coverEnd:me}}function Va(a,y){var x=ba;if(y=="left")for(var b=0;b<a.length&&(x=a[b]).left==x.right;b++);else for(var z=a.length-1;z>=0&&(x=a[z]).left==x.right;z--);return x}function Ca(a,y,x,b){var z=xa(y.map,x,b),ie=z.node,le=z.start,de=z.end,me=z.collapse,Se;if(ie.nodeType==3){for(var at=0;at<4;at++){for(;le&&we(y.line.text.charAt(z.coverStart+le));)--le;for(;z.coverStart+de<z.coverEnd&&we(y.line.text.charAt(z.coverStart+de));)++de;if(Ee&&Be<9&&le==0&&de==z.coverEnd-z.coverStart?Se=ie.parentNode.getBoundingClientRect():Se=Va(Me(ie,le,de).getClientRects(),b),Se.left||Se.right||le==0)break;de=le,le=le-1,me="right"}Ee&&Be<11&&(Se=Ga(a.display.measure,Se))}else{le>0&&(me=b="right");var vt;a.options.lineWrapping&&(vt=ie.getClientRects()).length>1?Se=vt[b=="right"?vt.length-1:0]:Se=ie.getBoundingClientRect()}if(Ee&&Be<9&&!le&&(!Se||!Se.left&&!Se.right)){var Zt=ie.parentNode.getClientRects()[0];Zt?Se={left:Zt.left,right:Zt.left+Qi(a.display),top:Zt.top,bottom:Zt.bottom}:Se=ba}for(var zt=Se.top-y.rect.top,hn=Se.bottom-y.rect.top,Mn=(zt+hn)/2,$n=y.view.measure.heights,er=0;er<$n.length-1&&!(Mn<$n[er]);er++);var lr=er?$n[er-1]:0,tr=$n[er],cr={left:(me=="right"?Se.right:Se.left)-y.rect.left,right:(me=="left"?Se.left:Se.right)-y.rect.left,top:lr,bottom:tr};return!Se.left&&!Se.right&&(cr.bogus=!0),a.options.singleCursorHeightPerLine||(cr.rtop=zt,cr.rbottom=hn),cr}function Ga(a,y){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Rt(a))return y;var x=screen.logicalXDPI/screen.deviceXDPI,b=screen.logicalYDPI/screen.deviceYDPI;return{left:y.left*x,right:y.right*x,top:y.top*b,bottom:y.bottom*b}}function Uo(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var y=0;y<a.rest.length;y++)a.measure.caches[y]={}}function Ko(a){a.display.externalMeasure=null,kt(a.display.lineMeasure);for(var y=0;y<a.display.view.length;y++)Uo(a.display.view[y])}function Co(a){Ko(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function Xo(){return Ie&&Ce?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Sa(){return Ie&&Ce?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Yo(a){var y=0;if(a.widgets)for(var x=0;x<a.widgets.length;++x)a.widgets[x].above&&(y+=wi(a.widgets[x]));return y}function Ao(a,y,x,b,z){if(!z){var ie=Yo(y);x.top+=ie,x.bottom+=ie}if(b=="line")return x;b||(b="local");var le=vr(y);if(b=="local"?le+=ei(a.display):le-=a.display.viewOffset,b=="page"||b=="window"){var de=a.display.lineSpace.getBoundingClientRect();le+=de.top+(b=="window"?0:Sa());var me=de.left+(b=="window"?0:Xo());x.left+=me,x.right+=me}return x.top+=le,x.bottom+=le,x}function wa(a,y,x){if(x=="div")return y;var b=y.left,z=y.top;if(x=="page")b-=Xo(),z-=Sa();else if(x=="local"||!x){var ie=a.display.sizer.getBoundingClientRect();b+=ie.left,z+=ie.top}var le=a.display.lineSpace.getBoundingClientRect();return{left:b-le.left,top:z-le.top}}function Mo(a,y,x,b,z){return b||(b=Nt(a.doc,y.line)),Ao(a,b,ya(a,b,y.ch,z),x)}function Pi(a,y,x,b,z,ie){b=b||Nt(a.doc,y.line),z||(z=co(a,b));function le(hn,Mn){var $n=Vi(a,z,hn,Mn?"right":"left",ie);return Mn?$n.left=$n.right:$n.right=$n.left,Ao(a,b,$n,x)}var de=Ut(b,a.doc.direction),me=y.ch,Se=y.sticky;if(me>=b.text.length?(me=b.text.length,Se="before"):me<=0&&(me=0,Se="after"),!de)return le(Se=="before"?me-1:me,Se=="before");function at(hn,Mn,$n){var er=de[Mn],lr=er.level==1;return le($n?hn-1:hn,lr!=$n)}var vt=Bt(de,me,Se),Zt=mt,zt=at(me,vt,Se=="before");return Zt!=null&&(zt.other=at(me,Zt,Se!="before")),zt}function Rr(a,y){var x=0;y=Re(a.doc,y),a.options.lineWrapping||(x=Qi(a.display)*y.ch);var b=Nt(a.doc,y.line),z=vr(b)+ei(a.display);return{left:x,right:x,top:z,bottom:z+b.height}}function Pr(a,y,x,b,z){var ie=fe(a,y,x);return ie.xRel=z,b&&(ie.outside=b),ie}function vi(a,y,x){var b=a.doc;if(x+=a.display.viewOffset,x<0)return Pr(b.first,0,null,-1,-1);var z=ut(b,x),ie=b.first+b.size-1;if(z>ie)return Pr(b.first+b.size-1,Nt(b,ie).text.length,null,1,1);y<0&&(y=0);for(var le=Nt(b,z);;){var de=Ji(a,le,z,y,x),me=In(le,de.ch+(de.xRel>0||de.outside>0?1:0));if(!me)return de;var Se=me.find(1);if(Se.line==z)return Se;le=Nt(b,z=Se.line)}}function xi(a,y,x,b){b-=Yo(y);var z=y.text.length,ie=Oe(function(le){return Vi(a,x,le-1).bottom<=b},z,0);return z=Oe(function(le){return Vi(a,x,le).top>b},ie,z),{begin:ie,end:z}}function ti(a,y,x,b){x||(x=co(a,y));var z=Ao(a,y,Vi(a,x,b),"line").top;return xi(a,y,x,z)}function li(a,y,x,b){return a.bottom<=x?!1:a.top>x?!0:(b?a.left:a.right)>y}function Ji(a,y,x,b,z){z-=vr(y);var ie=co(a,y),le=Yo(y),de=0,me=y.text.length,Se=!0,at=Ut(y,a.doc.direction);if(at){var vt=(a.options.lineWrapping?lo:Gi)(a,y,x,ie,at,b,z);Se=vt.level!=1,de=Se?vt.from:vt.to-1,me=Se?vt.to:vt.from-1}var Zt=null,zt=null,hn=Oe(function(Cr){var gr=Vi(a,ie,Cr);return gr.top+=le,gr.bottom+=le,li(gr,b,z,!1)?(gr.top<=z&&gr.left<=b&&(Zt=Cr,zt=gr),!0):!1},de,me),Mn,$n,er=!1;if(zt){var lr=b-zt.left<zt.right-b,tr=lr==Se;hn=Zt+(tr?0:1),$n=tr?"after":"before",Mn=lr?zt.left:zt.right}else{!Se&&(hn==me||hn==de)&&hn++,$n=hn==0?"after":hn==y.text.length?"before":Vi(a,ie,hn-(Se?1:0)).bottom+le<=z==Se?"after":"before";var cr=Pi(a,fe(x,hn,$n),"line",y,ie);Mn=cr.left,er=z<cr.top?-1:z>=cr.bottom?1:0}return hn=ft(y.text,hn,1),Pr(x,hn,$n,er,b-Mn)}function Gi(a,y,x,b,z,ie,le){var de=Oe(function(vt){var Zt=z[vt],zt=Zt.level!=1;return li(Pi(a,fe(x,zt?Zt.to:Zt.from,zt?"before":"after"),"line",y,b),ie,le,!0)},0,z.length-1),me=z[de];if(de>0){var Se=me.level!=1,at=Pi(a,fe(x,Se?me.from:me.to,Se?"after":"before"),"line",y,b);li(at,ie,le,!0)&&at.top>le&&(me=z[de-1])}return me}function lo(a,y,x,b,z,ie,le){var de=xi(a,y,b,le),me=de.begin,Se=de.end;/\s/.test(y.text.charAt(Se-1))&&Se--;for(var at=null,vt=null,Zt=0;Zt<z.length;Zt++){var zt=z[Zt];if(!(zt.from>=Se||zt.to<=me)){var hn=zt.level!=1,Mn=Vi(a,b,hn?Math.min(Se,zt.to)-1:Math.max(me,zt.from)).right,$n=Mn<ie?ie-Mn+1e9:Mn-ie;(!at||vt>$n)&&(at=zt,vt=$n)}}return at||(at=z[z.length-1]),at.from<me&&(at={from:me,to:at.to,level:at.level}),at.to>Se&&(at={from:at.from,to:Se,level:at.level}),at}var Fi;function Ri(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(Fi==null){Fi=et("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)Fi.appendChild(document.createTextNode("x")),Fi.appendChild(et("br"));Fi.appendChild(document.createTextNode("x"))}lt(a.measure,Fi);var x=Fi.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),kt(a.measure),x||1}function Qi(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=et("span","xxxxxxxxxx"),x=et("pre",[y],"CodeMirror-line-like");lt(a.measure,x);var b=y.getBoundingClientRect(),z=(b.right-b.left)/10;return z>2&&(a.cachedCharWidth=z),z||10}function fo(a){for(var y=a.display,x={},b={},z=y.gutters.clientLeft,ie=y.gutters.firstChild,le=0;ie;ie=ie.nextSibling,++le){var de=a.display.gutterSpecs[le].className;x[de]=ie.offsetLeft+ie.clientLeft+z,b[de]=ie.clientWidth}return{fixedPos:Ua(y),gutterTotalWidth:y.gutters.offsetWidth,gutterLeft:x,gutterWidth:b,wrapperWidth:y.wrapper.clientWidth}}function Ua(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Cl(a){var y=Ri(a.display),x=a.options.lineWrapping,b=x&&Math.max(5,a.display.scroller.clientWidth/Qi(a.display)-3);return function(z){if(jn(a.doc,z))return 0;var ie=0;if(z.widgets)for(var le=0;le<z.widgets.length;le++)z.widgets[le].height&&(ie+=z.widgets[le].height);return x?ie+(Math.ceil(z.text.length/b)||1)*y:ie+y}}function Ka(a){var y=a.doc,x=Cl(a);y.iter(function(b){var z=x(b);z!=b.height&&mn(b,z)})}function So(a,y,x,b){var z=a.display;if(!x&&ot(y).getAttribute("cm-not-content")=="true")return null;var ie,le,de=z.lineSpace.getBoundingClientRect();try{ie=y.clientX-de.left,le=y.clientY-de.top}catch(vt){return null}var me=vi(a,ie,le),Se;if(b&&me.xRel>0&&(Se=Nt(a.doc,me.line).text).length==me.ch){var at=ye(Se,Se.length,a.options.tabSize)-Se.length;me=fe(me.line,Math.max(0,Math.round((ie-no(a.display).left)/Qi(a.display))-at))}return me}function wo(a,y){if(y>=a.display.viewTo||(y-=a.display.viewFrom,y<0))return null;for(var x=a.display.view,b=0;b<x.length;b++)if(y-=x[b].size,y<0)return b}function Oi(a,y,x,b){y==null&&(y=a.doc.first),x==null&&(x=a.doc.first+a.doc.size),b||(b=0);var z=a.display;if(b&&x<z.viewTo&&(z.updateLineNumbers==null||z.updateLineNumbers>y)&&(z.updateLineNumbers=y),a.curOp.viewChanged=!0,y>=z.viewTo)Tn&&vn(a.doc,y)<z.viewTo&&po(a);else if(x<=z.viewFrom)Tn&&yn(a.doc,x+b)>z.viewFrom?po(a):(z.viewFrom+=b,z.viewTo+=b);else if(y<=z.viewFrom&&x>=z.viewTo)po(a);else if(y<=z.viewFrom){var ie=Ea(a,x,x+b,1);ie?(z.view=z.view.slice(ie.index),z.viewFrom=ie.lineN,z.viewTo+=b):po(a)}else if(x>=z.viewTo){var le=Ea(a,y,y,-1);le?(z.view=z.view.slice(0,le.index),z.viewTo=le.lineN):po(a)}else{var de=Ea(a,y,y,-1),me=Ea(a,x,x+b,1);de&&me?(z.view=z.view.slice(0,de.index).concat(qr(a,de.lineN,me.lineN)).concat(z.view.slice(me.index)),z.viewTo+=b):po(a)}var Se=z.externalMeasured;Se&&(x<Se.lineN?Se.lineN+=b:y<Se.lineN+Se.size&&(z.externalMeasured=null))}function ho(a,y,x){a.curOp.viewChanged=!0;var b=a.display,z=a.display.externalMeasured;if(z&&y>=z.lineN&&y<z.lineN+z.size&&(b.externalMeasured=null),!(y<b.viewFrom||y>=b.viewTo)){var ie=b.view[wo(a,y)];if(ie.node!=null){var le=ie.changes||(ie.changes=[]);Ue(le,x)==-1&&le.push(x)}}}function po(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Ea(a,y,x,b){var z=wo(a,y),ie,le=a.display.view;if(!Tn||x==a.doc.first+a.doc.size)return{index:z,lineN:x};for(var de=a.display.viewFrom,me=0;me<z;me++)de+=le[me].size;if(de!=y){if(b>0){if(z==le.length-1)return null;ie=de+le[z].size-y,z++}else ie=de-y;y+=ie,x+=ie}for(;vn(a.doc,x)!=x;){if(z==(b<0?0:le.length-1))return null;x+=b*le[z-(b<0?1:0)].size,z+=b}return{index:z,lineN:x}}function $s(a,y,x){var b=a.display,z=b.view;z.length==0||y>=b.viewTo||x<=b.viewFrom?(b.view=qr(a,y,x),b.viewFrom=y):(b.viewFrom>y?b.view=qr(a,y,b.viewFrom).concat(b.view):b.viewFrom<y&&(b.view=b.view.slice(wo(a,y))),b.viewFrom=y,b.viewTo<x?b.view=b.view.concat(qr(a,b.viewTo,x)):b.viewTo>x&&(b.view=b.view.slice(0,wo(a,x)))),b.viewTo=x}function Sl(a){for(var y=a.display.view,x=0,b=0;b<y.length;b++){var z=y[b];!z.hidden&&(!z.node||z.changes)&&++x}return x}function Jo(a){a.display.input.showSelection(a.display.input.prepareSelection())}function wl(a,y){y===void 0&&(y=!0);for(var x=a.doc,b={},z=b.cursors=document.createDocumentFragment(),ie=b.selection=document.createDocumentFragment(),le=0;le<x.sel.ranges.length;le++)if(!(!y&&le==x.sel.primIndex)){var de=x.sel.ranges[le];if(!(de.from().line>=a.display.viewTo||de.to().line<a.display.viewFrom)){var me=de.empty();(me||a.options.showCursorWhenSelecting)&&El(a,de.head,z),me||zs(a,de,ie)}}return b}function El(a,y,x){var b=Pi(a,y,"div",null,null,!a.options.singleCursorHeightPerLine),z=x.appendChild(et("div","\xA0","CodeMirror-cursor"));if(z.style.left=b.left+"px",z.style.top=b.top+"px",z.style.height=Math.max(0,b.bottom-b.top)*a.options.cursorHeight+"px",b.other){var ie=x.appendChild(et("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ie.style.display="",ie.style.left=b.other.left+"px",ie.style.top=b.other.top+"px",ie.style.height=(b.other.bottom-b.other.top)*.85+"px"}}function Ba(a,y){return a.top-y.top||a.left-y.left}function zs(a,y,x){var b=a.display,z=a.doc,ie=document.createDocumentFragment(),le=no(a.display),de=le.left,me=Math.max(b.sizerWidth,ro(a)-b.sizer.offsetLeft)-le.right,Se=z.direction=="ltr";function at(tr,cr,Cr,gr){cr<0&&(cr=0),cr=Math.round(cr),gr=Math.round(gr),ie.appendChild(et("div",null,"CodeMirror-selected","position: absolute; left: "+tr+`px;
top: `+cr+"px; width: "+(Cr==null?me-tr:Cr)+`px;
height: `+(gr-cr)+"px"))}function vt(tr,cr,Cr){var gr=Nt(z,tr),Dr=gr.text.length,Ur,fi;function Yr(ii,Ai){return Mo(a,fe(tr,ii),"div",gr,Ai)}function $i(ii,Ai,gi){var si=ti(a,gr,null,ii),oi=Ai=="ltr"==(gi=="after")?"left":"right",Qr=gi=="after"?si.begin:si.end-(/\s/.test(gr.text.charAt(si.end-1))?2:1);return Yr(Qr,oi)[oi]}var Di=Ut(gr,z.direction);return Ye(Di,cr||0,Cr==null?Dr:Cr,function(ii,Ai,gi,si){var oi=gi=="ltr",Qr=Yr(ii,oi?"left":"right"),Mi=Yr(Ai-1,oi?"right":"left"),Vo=cr==null&&ii==0,xo=Cr==null&&Ai==Dr,Si=si==0,oo=!Di||si==Di.length-1;if(Mi.top-Qr.top<=3){var hi=(Se?Vo:xo)&&Si,bl=(Se?xo:Vo)&&oo,uo=hi?de:(oi?Qr:Mi).left,Oo=bl?me:(oi?Mi:Qr).right;at(uo,Qr.top,Oo-uo,Qr.bottom)}else{var ko,Bi,Go,xl;oi?(ko=Se&&Vo&&Si?de:Qr.left,Bi=Se?me:$i(ii,gi,"before"),Go=Se?de:$i(Ai,gi,"after"),xl=Se&&xo&&oo?me:Mi.right):(ko=Se?$i(ii,gi,"before"):de,Bi=!Se&&Vo&&Si?me:Qr.right,Go=!Se&&xo&&oo?de:Mi.left,xl=Se?$i(Ai,gi,"after"):me),at(ko,Qr.top,Bi-ko,Qr.bottom),Qr.bottom<Mi.top&&at(de,Qr.bottom,null,Mi.top),at(Go,Mi.top,xl-Go,Mi.bottom)}(!Ur||Ba(Qr,Ur)<0)&&(Ur=Qr),Ba(Mi,Ur)<0&&(Ur=Mi),(!fi||Ba(Qr,fi)<0)&&(fi=Qr),Ba(Mi,fi)<0&&(fi=Mi)}),{start:Ur,end:fi}}var Zt=y.from(),zt=y.to();if(Zt.line==zt.line)vt(Zt.line,Zt.ch,zt.ch);else{var hn=Nt(z,Zt.line),Mn=Nt(z,zt.line),$n=dn(hn)==dn(Mn),er=vt(Zt.line,Zt.ch,$n?hn.text.length+1:null).end,lr=vt(zt.line,$n?0:null,zt.ch).start;$n&&(er.top<lr.top-2?(at(er.right,er.top,null,er.bottom),at(de,lr.top,lr.left,lr.bottom)):at(er.right,er.top,lr.left-er.right,er.bottom)),er.bottom<lr.top&&at(de,er.bottom,null,lr.top)}x.appendChild(ie)}function Xa(a){if(a.state.focused){var y=a.display;clearInterval(y.blinker);var x=!0;y.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?y.blinker=setInterval(function(){a.hasFocus()||To(a),y.cursorDiv.style.visibility=(x=!x)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(y.cursorDiv.style.visibility="hidden")}}function Bl(a){a.state.focused||(a.display.input.focus(),Ya(a))}function Il(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,To(a))},100)}function Ya(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(sn(a,"focus",a,y),a.state.focused=!0,se(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),De&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Xa(a))}function To(a,y){a.state.delayingBlurEvent||(a.state.focused&&(sn(a,"blur",a,y),a.state.focused=!1,Fe(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function Ia(a){for(var y=a.display,x=y.lineDiv.offsetTop,b=0;b<y.view.length;b++){var z=y.view[b],ie=a.options.lineWrapping,le=void 0,de=0;if(!z.hidden){if(Ee&&Be<8){var me=z.node.offsetTop+z.node.offsetHeight;le=me-x,x=me}else{var Se=z.node.getBoundingClientRect();le=Se.bottom-Se.top,!ie&&z.text.firstChild&&(de=z.text.firstChild.getBoundingClientRect().right-Se.left-1)}var at=z.line.height-le;if((at>.005||at<-.005)&&(mn(z.line,le),Pl(z.line),z.rest))for(var vt=0;vt<z.rest.length;vt++)Pl(z.rest[vt]);if(de>a.display.sizerWidth){var Zt=Math.ceil(de/Qi(a.display));Zt>a.display.maxLineLength&&(a.display.maxLineLength=Zt,a.display.maxLine=z.line,a.display.maxLineChanged=!0)}}}}function Pl(a){if(a.widgets)for(var y=0;y<a.widgets.length;++y){var x=a.widgets[y],b=x.node.parentNode;b&&(x.height=b.offsetHeight)}}function Pa(a,y,x){var b=x&&x.top!=null?Math.max(0,x.top):a.scroller.scrollTop;b=Math.floor(b-ei(a));var z=x&&x.bottom!=null?x.bottom:b+a.wrapper.clientHeight,ie=ut(y,b),le=ut(y,z);if(x&&x.ensure){var de=x.ensure.from.line,me=x.ensure.to.line;de<ie?(ie=de,le=ut(y,vr(Nt(y,de))+a.wrapper.clientHeight)):Math.min(me,y.lastLine())>=le&&(ie=ut(y,vr(Nt(y,me))-a.wrapper.clientHeight),le=me)}return{from:ie,to:Math.max(le,ie+1)}}function Hs(a,y){if(!Dt(a,"scrollCursorIntoView")){var x=a.display,b=x.sizer.getBoundingClientRect(),z=null;if(y.top+b.top<0?z=!0:y.bottom+b.top>(window.innerHeight||document.documentElement.clientHeight)&&(z=!1),z!=null&&!dt){var ie=et("div","\u200B",null,`position: absolute;
top: `+(y.top-x.viewOffset-ei(a.display))+`px;
height: `+(y.bottom-y.top+Li(a)+x.barHeight)+`px;
left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(ie),ie.scrollIntoView(z),a.display.lineSpace.removeChild(ie)}}}function js(a,y,x,b){b==null&&(b=0);var z;!a.options.lineWrapping&&y==x&&(y=y.ch?fe(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,x=y.sticky=="before"?fe(y.line,y.ch+1,"before"):y);for(var ie=0;ie<5;ie++){var le=!1,de=Pi(a,y),me=!x||x==y?de:Pi(a,x);z={left:Math.min(de.left,me.left),top:Math.min(de.top,me.top)-b,right:Math.max(de.left,me.left),bottom:Math.max(de.bottom,me.bottom)+b};var Se=Ja(a,z),at=a.doc.scrollTop,vt=a.doc.scrollLeft;if(Se.scrollTop!=null&&(qo(a,Se.scrollTop),Math.abs(a.doc.scrollTop-at)>1&&(le=!0)),Se.scrollLeft!=null&&(Eo(a,Se.scrollLeft),Math.abs(a.doc.scrollLeft-vt)>1&&(le=!0)),!le)break}return z}function Ws(a,y){var x=Ja(a,y);x.scrollTop!=null&&qo(a,x.scrollTop),x.scrollLeft!=null&&Eo(a,x.scrollLeft)}function Ja(a,y){var x=a.display,b=Ri(a.display);y.top<0&&(y.top=0);var z=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:x.scroller.scrollTop,ie=ao(a),le={};y.bottom-y.top>ie&&(y.bottom=y.top+ie);var de=a.doc.height+Zi(x),me=y.top<b,Se=y.bottom>de-b;if(y.top<z)le.scrollTop=me?0:y.top;else if(y.bottom>z+ie){var at=Math.min(y.top,(Se?de:y.bottom)-ie);at!=z&&(le.scrollTop=at)}var vt=a.options.fixedGutter?0:x.gutters.offsetWidth,Zt=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-vt,zt=ro(a)-x.gutters.offsetWidth,hn=y.right-y.left>zt;return hn&&(y.right=y.left+zt),y.left<10?le.scrollLeft=0:y.left<Zt?le.scrollLeft=Math.max(0,y.left+vt-(hn?0:10)):y.right>zt+Zt-3&&(le.scrollLeft=y.right+(hn?0:10)-zt),le}function Qa(a,y){y!=null&&(Oa(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function No(a){Oa(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function Qo(a,y,x){(y!=null||x!=null)&&Oa(a),y!=null&&(a.curOp.scrollLeft=y),x!=null&&(a.curOp.scrollTop=x)}function Zs(a,y){Oa(a),a.curOp.scrollToPos=y}function Oa(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var x=Rr(a,y.from),b=Rr(a,y.to);Ol(a,x,b,y.margin)}}function Ol(a,y,x,b){var z=Ja(a,{left:Math.min(y.left,x.left),top:Math.min(y.top,x.top)-b,right:Math.max(y.right,x.right),bottom:Math.max(y.bottom,x.bottom)+b});Qo(a,z.scrollLeft,z.scrollTop)}function qo(a,y){Math.abs(a.doc.scrollTop-y)<2||(E||el(a,{top:y}),kl(a,y,!0),E&&el(a),na(a,100))}function kl(a,y,x){y=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,y)),!(a.display.scroller.scrollTop==y&&!x)&&(a.doc.scrollTop=y,a.display.scrollbars.setScrollTop(y),a.display.scroller.scrollTop!=y&&(a.display.scroller.scrollTop=y))}function Eo(a,y,x,b){y=Math.max(0,Math.min(y,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((x?y==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-y)<2)&&!b)&&(a.doc.scrollLeft=y,Nl(a),a.display.scroller.scrollLeft!=y&&(a.display.scroller.scrollLeft=y),a.display.scrollbars.setScrollLeft(y))}function ea(a){var y=a.display,x=y.gutters.offsetWidth,b=Math.round(a.doc.height+Zi(a.display));return{clientHeight:y.scroller.clientHeight,viewHeight:y.wrapper.clientHeight,scrollWidth:y.scroller.scrollWidth,clientWidth:y.scroller.clientWidth,viewWidth:y.wrapper.clientWidth,barLeft:a.options.fixedGutter?x:0,docHeight:b,scrollHeight:b+Li(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:x}}var Bo=function(a,y,x){this.cm=x;var b=this.vert=et("div",[et("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),z=this.horiz=et("div",[et("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");b.tabIndex=z.tabIndex=-1,a(b),a(z),Ht(b,"scroll",function(){b.clientHeight&&y(b.scrollTop,"vertical")}),Ht(z,"scroll",function(){z.clientWidth&&y(z.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Ee&&Be<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Bo.prototype.update=function(a){var y=a.scrollWidth>a.clientWidth+1,x=a.scrollHeight>a.clientHeight+1,b=a.nativeBarWidth;if(x){this.vert.style.display="block",this.vert.style.bottom=y?b+"px":"0";var z=a.viewHeight-(y?b:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+z)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(y){this.horiz.style.display="block",this.horiz.style.right=x?b+"px":"0",this.horiz.style.left=a.barLeft+"px";var ie=a.viewWidth-a.barLeft-(x?b:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+ie)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(b==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:x?b:0,bottom:y?b:0}},Bo.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Bo.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Bo.prototype.zeroWidthHack=function(){var a=_e&&!Pe?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ce,this.disableVert=new ce},Bo.prototype.enableZeroWidthBar=function(a,y,x){a.style.pointerEvents="auto";function b(){var z=a.getBoundingClientRect(),ie=x=="vert"?document.elementFromPoint(z.right-1,(z.top+z.bottom)/2):document.elementFromPoint((z.right+z.left)/2,z.bottom-1);ie!=a?a.style.pointerEvents="none":y.set(1e3,b)}y.set(1e3,b)},Bo.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var ta=function(){};ta.prototype.update=function(){return{bottom:0,right:0}},ta.prototype.setScrollLeft=function(){},ta.prototype.setScrollTop=function(){},ta.prototype.clear=function(){};function Lo(a,y){y||(y=ea(a));var x=a.display.barWidth,b=a.display.barHeight;Dl(a,y);for(var z=0;z<4&&x!=a.display.barWidth||b!=a.display.barHeight;z++)x!=a.display.barWidth&&a.options.lineWrapping&&Ia(a),Dl(a,ea(a)),x=a.display.barWidth,b=a.display.barHeight}function Dl(a,y){var x=a.display,b=x.scrollbars.update(y);x.sizer.style.paddingRight=(x.barWidth=b.right)+"px",x.sizer.style.paddingBottom=(x.barHeight=b.bottom)+"px",x.heightForcer.style.borderBottom=b.bottom+"px solid transparent",b.right&&b.bottom?(x.scrollbarFiller.style.display="block",x.scrollbarFiller.style.height=b.bottom+"px",x.scrollbarFiller.style.width=b.right+"px"):x.scrollbarFiller.style.display="",b.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(x.gutterFiller.style.display="block",x.gutterFiller.style.height=b.bottom+"px",x.gutterFiller.style.width=y.gutterWidth+"px"):x.gutterFiller.style.display=""}var Al={native:Bo,null:ta};function Ml(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Fe(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Al[a.options.scrollbarStyle](function(y){a.display.wrapper.insertBefore(y,a.display.scrollbarFiller),Ht(y,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),y.setAttribute("cm-not-content","true")},function(y,x){x=="horizontal"?Eo(a,y):qo(a,y)},a),a.display.scrollbars.addClass&&se(a.display.wrapper,a.display.scrollbars.addClass)}var Vs=0;function Io(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Vs},Ni(a.curOp)}function Po(a){var y=a.curOp;y&&bi(y,function(x){for(var b=0;b<x.ops.length;b++)x.ops[b].cm.curOp=null;Gs(x)})}function Gs(a){for(var y=a.ops,x=0;x<y.length;x++)Us(y[x]);for(var b=0;b<y.length;b++)Ks(y[b]);for(var z=0;z<y.length;z++)Xs(y[z]);for(var ie=0;ie<y.length;ie++)Ys(y[ie]);for(var le=0;le<y.length;le++)Js(y[le])}function Us(a){var y=a.cm,x=y.display;qs(y),a.updateMaxLine&&Br(y),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<x.viewFrom||a.scrollToPos.to.line>=x.viewTo)||x.maxLineChanged&&y.options.lineWrapping,a.update=a.mustUpdate&&new ka(y,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Ks(a){a.updatedDisplay=a.mustUpdate&&qa(a.cm,a.update)}function Xs(a){var y=a.cm,x=y.display;a.updatedDisplay&&Ia(y),a.barMeasure=ea(y),x.maxLineChanged&&!y.options.lineWrapping&&(a.adjustWidthTo=ya(y,x.maxLine,x.maxLine.text.length).left+3,y.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(x.scroller.clientWidth,x.sizer.offsetLeft+a.adjustWidthTo+Li(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,x.sizer.offsetLeft+a.adjustWidthTo-ro(y))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=x.input.prepareSelection())}function Ys(a){var y=a.cm;a.adjustWidthTo!=null&&(y.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<y.doc.scrollLeft&&Eo(y,Math.min(y.display.scroller.scrollLeft,a.maxScrollLeft),!0),y.display.maxLineChanged=!1);var x=a.focus&&a.focus==ze();a.preparedSelection&&y.display.input.showSelection(a.preparedSelection,x),(a.updatedDisplay||a.startHeight!=y.doc.height)&&Lo(y,a.barMeasure),a.updatedDisplay&&nl(y,a.barMeasure),a.selectionChanged&&Xa(y),y.state.focused&&a.updateInput&&y.display.input.reset(a.typing),x&&Bl(a.cm)}function Js(a){var y=a.cm,x=y.display,b=y.doc;if(a.updatedDisplay&&Tl(y,a.update),x.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(x.wheelStartX=x.wheelStartY=null),a.scrollTop!=null&&kl(y,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&Eo(y,a.scrollLeft,!0,!0),a.scrollToPos){var z=js(y,Re(b,a.scrollToPos.from),Re(b,a.scrollToPos.to),a.scrollToPos.margin);Hs(y,z)}var ie=a.maybeHiddenMarkers,le=a.maybeUnhiddenMarkers;if(ie)for(var de=0;de<ie.length;++de)ie[de].lines.length||sn(ie[de],"hide");if(le)for(var me=0;me<le.length;++me)le[me].lines.length&&sn(le[me],"unhide");x.wrapper.offsetHeight&&(b.scrollTop=y.display.scroller.scrollTop),a.changeObjs&&sn(y,"changes",y,a.changeObjs),a.update&&a.update.finish()}function _i(a,y){if(a.curOp)return y();Io(a);try{return y()}finally{Po(a)}}function ci(a,y){return function(){if(a.curOp)return y.apply(a,arguments);Io(a);try{return y.apply(a,arguments)}finally{Po(a)}}}function Ei(a){return function(){if(this.curOp)return a.apply(this,arguments);Io(this);try{return a.apply(this,arguments)}finally{Po(this)}}}function di(a){return function(){var y=this.cm;if(!y||y.curOp)return a.apply(this,arguments);Io(y);try{return a.apply(this,arguments)}finally{Po(y)}}}function na(a,y){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(y,Ae(Qs,a))}function Qs(a){var y=a.doc;if(!(y.highlightFrontier>=a.display.viewTo)){var x=+new Date+a.options.workTime,b=Xn(a,y.highlightFrontier),z=[];y.iter(b.line,Math.min(y.first+y.size,a.display.viewTo+500),function(ie){if(b.line>=a.display.viewFrom){var le=ie.styles,de=ie.text.length>a.options.maxHighlightLength?Nn(y.mode,b.state):null,me=Sn(a,ie,b,!0);de&&(b.state=de),ie.styles=me.styles;var Se=ie.styleClasses,at=me.classes;at?ie.styleClasses=at:Se&&(ie.styleClasses=null);for(var vt=!le||le.length!=ie.styles.length||Se!=at&&(!Se||!at||Se.bgClass!=at.bgClass||Se.textClass!=at.textClass),Zt=0;!vt&&Zt<le.length;++Zt)vt=le[Zt]!=ie.styles[Zt];vt&&z.push(b.line),ie.stateAfter=b.save(),b.nextLine()}else ie.text.length<=a.options.maxHighlightLength&&qn(a,ie.text,b),ie.stateAfter=b.line%5==0?b.save():null,b.nextLine();if(+new Date>x)return na(a,a.options.workDelay),!0}),y.highlightFrontier=b.line,y.modeFrontier=Math.max(y.modeFrontier,b.line),z.length&&_i(a,function(){for(var ie=0;ie<z.length;ie++)ho(a,z[ie],"text")})}}var ka=function(a,y,x){var b=a.display;this.viewport=y,this.visible=Pa(b,a.doc,y),this.editorIsHidden=!b.wrapper.offsetWidth,this.wrapperHeight=b.wrapper.clientHeight,this.wrapperWidth=b.wrapper.clientWidth,this.oldDisplayWidth=ro(a),this.force=x,this.dims=fo(a),this.events=[]};ka.prototype.signal=function(a,y){Vt(a,y)&&this.events.push(arguments)},ka.prototype.finish=function(){for(var a=0;a<this.events.length;a++)sn.apply(null,this.events[a])};function qs(a){var y=a.display;!y.scrollbarsClipped&&y.scroller.offsetWidth&&(y.nativeBarWidth=y.scroller.offsetWidth-y.scroller.clientWidth,y.heightForcer.style.height=Li(a)+"px",y.sizer.style.marginBottom=-y.nativeBarWidth+"px",y.sizer.style.borderRightWidth=Li(a)+"px",y.scrollbarsClipped=!0)}function eu(a){if(a.hasFocus())return null;var y=ze();if(!y||!Ke(a.display.lineDiv,y))return null;var x={activeElt:y};if(window.getSelection){var b=window.getSelection();b.anchorNode&&b.extend&&Ke(a.display.lineDiv,b.anchorNode)&&(x.anchorNode=b.anchorNode,x.anchorOffset=b.anchorOffset,x.focusNode=b.focusNode,x.focusOffset=b.focusOffset)}return x}function tu(a){if(!(!a||!a.activeElt||a.activeElt==ze())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&Ke(document.body,a.anchorNode)&&Ke(document.body,a.focusNode))){var y=window.getSelection(),x=document.createRange();x.setEnd(a.anchorNode,a.anchorOffset),x.collapse(!1),y.removeAllRanges(),y.addRange(x),y.extend(a.focusNode,a.focusOffset)}}function qa(a,y){var x=a.display,b=a.doc;if(y.editorIsHidden)return po(a),!1;if(!y.force&&y.visible.from>=x.viewFrom&&y.visible.to<=x.viewTo&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo)&&x.renderedView==x.view&&Sl(a)==0)return!1;Ll(a)&&(po(a),y.dims=fo(a));var z=b.first+b.size,ie=Math.max(y.visible.from-a.options.viewportMargin,b.first),le=Math.min(z,y.visible.to+a.options.viewportMargin);x.viewFrom<ie&&ie-x.viewFrom<20&&(ie=Math.max(b.first,x.viewFrom)),x.viewTo>le&&x.viewTo-le<20&&(le=Math.min(z,x.viewTo)),Tn&&(ie=vn(a.doc,ie),le=yn(a.doc,le));var de=ie!=x.viewFrom||le!=x.viewTo||x.lastWrapHeight!=y.wrapperHeight||x.lastWrapWidth!=y.wrapperWidth;$s(a,ie,le),x.viewOffset=vr(Nt(a.doc,x.viewFrom)),a.display.mover.style.top=x.viewOffset+"px";var me=Sl(a);if(!de&&me==0&&!y.force&&x.renderedView==x.view&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo))return!1;var Se=eu(a);return me>4&&(x.lineDiv.style.display="none"),nu(a,x.updateLineNumbers,y.dims),me>4&&(x.lineDiv.style.display=""),x.renderedView=x.view,tu(Se),kt(x.cursorDiv),kt(x.selectionDiv),x.gutters.style.height=x.sizer.style.minHeight=0,de&&(x.lastWrapHeight=y.wrapperHeight,x.lastWrapWidth=y.wrapperWidth,na(a,400)),x.updateLineNumbers=null,!0}function Tl(a,y){for(var x=y.viewport,b=!0;;b=!1){if(!b||!a.options.lineWrapping||y.oldDisplayWidth==ro(a)){if(x&&x.top!=null&&(x={top:Math.min(a.doc.height+Zi(a.display)-ao(a),x.top)}),y.visible=Pa(a.display,a.doc,x),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else b&&(y.visible=Pa(a.display,a.doc,x));if(!qa(a,y))break;Ia(a);var z=ea(a);Jo(a),Lo(a,z),nl(a,z),y.force=!1}y.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(y.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function el(a,y){var x=new ka(a,y);if(qa(a,x)){Ia(a),Tl(a,x);var b=ea(a);Jo(a),Lo(a,b),nl(a,b),x.finish()}}function nu(a,y,x){var b=a.display,z=a.options.lineNumbers,ie=b.lineDiv,le=ie.firstChild;function de(hn){var Mn=hn.nextSibling;return De&&_e&&a.display.currentWheelTarget==hn?hn.style.display="none":hn.parentNode.removeChild(hn),Mn}for(var me=b.view,Se=b.viewFrom,at=0;at<me.length;at++){var vt=me[at];if(!vt.hidden)if(!vt.node||vt.node.parentNode!=ie){var Zt=Er(a,vt,Se,x);ie.insertBefore(Zt,le)}else{for(;le!=vt.node;)le=de(le);var zt=z&&y!=null&&y<=Se&&vt.lineNumber;vt.changes&&(Ue(vt.changes,"gutter")>-1&&(zt=!1),ai(a,vt,Se,x)),zt&&(kt(vt.lineNumber),vt.lineNumber.appendChild(document.createTextNode(be(a.options,Se)))),le=vt.node.nextSibling}Se+=vt.size}for(;le;)le=de(le)}function tl(a){var y=a.gutters.offsetWidth;a.sizer.style.marginLeft=y+"px"}function nl(a,y){a.display.sizer.style.minHeight=y.docHeight+"px",a.display.heightForcer.style.top=y.docHeight+"px",a.display.gutters.style.height=y.docHeight+a.display.barHeight+Li(a)+"px"}function Nl(a){var y=a.display,x=y.view;if(!(!y.alignWidgets&&(!y.gutters.firstChild||!a.options.fixedGutter))){for(var b=Ua(y)-y.scroller.scrollLeft+a.doc.scrollLeft,z=y.gutters.offsetWidth,ie=b+"px",le=0;le<x.length;le++)if(!x[le].hidden){a.options.fixedGutter&&(x[le].gutter&&(x[le].gutter.style.left=ie),x[le].gutterBackground&&(x[le].gutterBackground.style.left=ie));var de=x[le].alignable;if(de)for(var me=0;me<de.length;me++)de[me].style.left=ie}a.options.fixedGutter&&(y.gutters.style.left=b+z+"px")}}function Ll(a){if(!a.options.lineNumbers)return!1;var y=a.doc,x=be(a.options,y.first+y.size-1),b=a.display;if(x.length!=b.lineNumChars){var z=b.measure.appendChild(et("div",[et("div",x)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ie=z.firstChild.offsetWidth,le=z.offsetWidth-ie;return b.lineGutter.style.width="",b.lineNumInnerWidth=Math.max(ie,b.lineGutter.offsetWidth-le)+1,b.lineNumWidth=b.lineNumInnerWidth+le,b.lineNumChars=b.lineNumInnerWidth?x.length:-1,b.lineGutter.style.width=b.lineNumWidth+"px",tl(a.display),!0}return!1}function rl(a,y){for(var x=[],b=!1,z=0;z<a.length;z++){var ie=a[z],le=null;if(typeof ie!="string"&&(le=ie.style,ie=ie.className),ie=="CodeMirror-linenumbers")if(y)b=!0;else continue;x.push({className:ie,style:le})}return y&&!b&&x.push({className:"CodeMirror-linenumbers",style:null}),x}function Fl(a){var y=a.gutters,x=a.gutterSpecs;kt(y),a.lineGutter=null;for(var b=0;b<x.length;++b){var z=x[b],ie=z.className,le=z.style,de=y.appendChild(et("div",null,"CodeMirror-gutter "+ie));le&&(de.style.cssText=le),ie=="CodeMirror-linenumbers"&&(a.lineGutter=de,de.style.width=(a.lineNumWidth||1)+"px")}y.style.display=x.length?"":"none",tl(a)}function ra(a){Fl(a.display),Oi(a),Nl(a)}function ru(a,y,x,b){var z=this;this.input=x,z.scrollbarFiller=et("div",null,"CodeMirror-scrollbar-filler"),z.scrollbarFiller.setAttribute("cm-not-content","true"),z.gutterFiller=et("div",null,"CodeMirror-gutter-filler"),z.gutterFiller.setAttribute("cm-not-content","true"),z.lineDiv=St("div",null,"CodeMirror-code"),z.selectionDiv=et("div",null,null,"position: relative; z-index: 1"),z.cursorDiv=et("div",null,"CodeMirror-cursors"),z.measure=et("div",null,"CodeMirror-measure"),z.lineMeasure=et("div",null,"CodeMirror-measure"),z.lineSpace=St("div",[z.measure,z.lineMeasure,z.selectionDiv,z.cursorDiv,z.lineDiv],null,"position: relative; outline: none");var ie=St("div",[z.lineSpace],"CodeMirror-lines");z.mover=et("div",[ie],null,"position: relative"),z.sizer=et("div",[z.mover],"CodeMirror-sizer"),z.sizerWidth=null,z.heightForcer=et("div",null,null,"position: absolute; height: "+It+"px; width: 1px;"),z.gutters=et("div",null,"CodeMirror-gutters"),z.lineGutter=null,z.scroller=et("div",[z.sizer,z.heightForcer,z.gutters],"CodeMirror-scroll"),z.scroller.setAttribute("tabIndex","-1"),z.wrapper=et("div",[z.scrollbarFiller,z.gutterFiller,z.scroller],"CodeMirror"),Ee&&Be<8&&(z.gutters.style.zIndex=-1,z.scroller.style.paddingRight=0),!De&&!(E&&Te)&&(z.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(z.wrapper):a(z.wrapper)),z.viewFrom=z.viewTo=y.first,z.reportedViewFrom=z.reportedViewTo=y.first,z.view=[],z.renderedView=null,z.externalMeasured=null,z.viewOffset=0,z.lastWrapHeight=z.lastWrapWidth=0,z.updateLineNumbers=null,z.nativeBarWidth=z.barHeight=z.barWidth=0,z.scrollbarsClipped=!1,z.lineNumWidth=z.lineNumInnerWidth=z.lineNumChars=null,z.alignWidgets=!1,z.cachedCharWidth=z.cachedTextHeight=z.cachedPaddingH=null,z.maxLine=null,z.maxLineLength=0,z.maxLineChanged=!1,z.wheelDX=z.wheelDY=z.wheelStartX=z.wheelStartY=null,z.shift=!1,z.selForContextMenu=null,z.activeTouch=null,z.gutterSpecs=rl(b.gutters,b.lineNumbers),Fl(z),x.init(z)}var Da=0,Hi=null;Ee?Hi=-.53:E?Hi=15:Ie?Hi=-.7:Je&&(Hi=-1/3);function Rl(a){var y=a.wheelDeltaX,x=a.wheelDeltaY;return y==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(y=a.detail),x==null&&a.detail&&a.axis==a.VERTICAL_AXIS?x=a.detail:x==null&&(x=a.wheelDelta),{x:y,y:x}}function iu(a){var y=Rl(a);return y.x*=Hi,y.y*=Hi,y}function _l(a,y){var x=Rl(y),b=x.x,z=x.y,ie=a.display,le=ie.scroller,de=le.scrollWidth>le.clientWidth,me=le.scrollHeight>le.clientHeight;if(b&&de||z&&me){if(z&&_e&&De){e:for(var Se=y.target,at=ie.view;Se!=le;Se=Se.parentNode)for(var vt=0;vt<at.length;vt++)if(at[vt].node==Se){a.display.currentWheelTarget=Se;break e}}if(b&&!E&&!he&&Hi!=null){z&&me&&qo(a,Math.max(0,le.scrollTop+z*Hi)),Eo(a,Math.max(0,le.scrollLeft+b*Hi)),(!z||z&&me)&&pt(y),ie.wheelStartX=null;return}if(z&&Hi!=null){var Zt=z*Hi,zt=a.doc.scrollTop,hn=zt+ie.wrapper.clientHeight;Zt<0?zt=Math.max(0,zt+Zt-50):hn=Math.min(a.doc.height,hn+Zt+50),el(a,{top:zt,bottom:hn})}Da<20&&(ie.wheelStartX==null?(ie.wheelStartX=le.scrollLeft,ie.wheelStartY=le.scrollTop,ie.wheelDX=b,ie.wheelDY=z,setTimeout(function(){if(ie.wheelStartX!=null){var Mn=le.scrollLeft-ie.wheelStartX,$n=le.scrollTop-ie.wheelStartY,er=$n&&ie.wheelDY&&$n/ie.wheelDY||Mn&&ie.wheelDX&&Mn/ie.wheelDX;ie.wheelStartX=ie.wheelStartY=null,er&&(Hi=(Hi*Da+er)/(Da+1),++Da)}},200)):(ie.wheelDX+=b,ie.wheelDY+=z))}}var ji=function(a,y){this.ranges=a,this.primIndex=y};ji.prototype.primary=function(){return this.ranges[this.primIndex]},ji.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var y=0;y<this.ranges.length;y++){var x=this.ranges[y],b=a.ranges[y];if(!Ve(x.anchor,b.anchor)||!Ve(x.head,b.head))return!1}return!0},ji.prototype.deepCopy=function(){for(var a=[],y=0;y<this.ranges.length;y++)a[y]=new Hr(Xt(this.ranges[y].anchor),Xt(this.ranges[y].head));return new ji(a,this.primIndex)},ji.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},ji.prototype.contains=function(a,y){y||(y=a);for(var x=0;x<this.ranges.length;x++){var b=this.ranges[x];if(pe(y,b.from())>=0&&pe(a,b.to())<=0)return x}return-1};var Hr=function(a,y){this.anchor=a,this.head=y};Hr.prototype.from=function(){return Yt(this.anchor,this.head)},Hr.prototype.to=function(){return rn(this.anchor,this.head)},Hr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function qi(a,y,x){var b=a&&a.options.selectionsMayTouch,z=y[x];y.sort(function(Zt,zt){return pe(Zt.from(),zt.from())}),x=Ue(y,z);for(var ie=1;ie<y.length;ie++){var le=y[ie],de=y[ie-1],me=pe(de.to(),le.from());if(b&&!le.empty()?me>0:me>=0){var Se=Yt(de.from(),le.from()),at=rn(de.to(),le.to()),vt=de.empty()?le.from()==le.head:de.from()==de.head;ie<=x&&--x,y.splice(--ie,2,new Hr(vt?at:Se,vt?Se:at))}}return new ji(y,x)}function mo(a,y){return new ji([new Hr(a,y||a)],0)}function vo(a){return a.text?fe(a.from.line+a.text.length-1,$e(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function $l(a,y){if(pe(a,y.from)<0)return a;if(pe(a,y.to)<=0)return vo(y);var x=a.line+y.text.length-(y.to.line-y.from.line)-1,b=a.ch;return a.line==y.to.line&&(b+=vo(y).ch-y.to.ch),fe(x,b)}function il(a,y){for(var x=[],b=0;b<a.sel.ranges.length;b++){var z=a.sel.ranges[b];x.push(new Hr($l(z.anchor,y),$l(z.head,y)))}return qi(a.cm,x,a.sel.primIndex)}function zl(a,y,x){return a.line==y.line?fe(x.line,a.ch-y.ch+x.ch):fe(x.line+(a.line-y.line),a.ch)}function ou(a,y,x){for(var b=[],z=fe(a.first,0),ie=z,le=0;le<y.length;le++){var de=y[le],me=zl(de.from,z,ie),Se=zl(vo(de),z,ie);if(z=de.to,ie=Se,x=="around"){var at=a.sel.ranges[le],vt=pe(at.head,at.anchor)<0;b[le]=new Hr(vt?Se:me,vt?me:Se)}else b[le]=new Hr(me,me)}return new ji(b,a.sel.primIndex)}function ol(a){a.doc.mode=xn(a.options,a.doc.modeOption),ia(a)}function ia(a){a.doc.iter(function(y){y.stateAfter&&(y.stateAfter=null),y.styles&&(y.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,na(a,100),a.state.modeGen++,a.curOp&&Oi(a)}function Hl(a,y){return y.from.ch==0&&y.to.ch==0&&$e(y.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function al(a,y,x,b){function z(lr){return x?x[lr]:null}function ie(lr,tr,cr){Ar(lr,tr,cr,b),Vr(lr,"change",lr,y)}function le(lr,tr){for(var cr=[],Cr=lr;Cr<tr;++Cr)cr.push(new Tr(Se[Cr],z(Cr),b));return cr}var de=y.from,me=y.to,Se=y.text,at=Nt(a,de.line),vt=Nt(a,me.line),Zt=$e(Se),zt=z(Se.length-1),hn=me.line-de.line;if(y.full)a.insert(0,le(0,Se.length)),a.remove(Se.length,a.size-Se.length);else if(Hl(a,y)){var Mn=le(0,Se.length-1);ie(vt,vt.text,zt),hn&&a.remove(de.line,hn),Mn.length&&a.insert(de.line,Mn)}else if(at==vt)if(Se.length==1)ie(at,at.text.slice(0,de.ch)+Zt+at.text.slice(me.ch),zt);else{var $n=le(1,Se.length-1);$n.push(new Tr(Zt+at.text.slice(me.ch),zt,b)),ie(at,at.text.slice(0,de.ch)+Se[0],z(0)),a.insert(de.line+1,$n)}else if(Se.length==1)ie(at,at.text.slice(0,de.ch)+Se[0]+vt.text.slice(me.ch),z(0)),a.remove(de.line+1,hn);else{ie(at,at.text.slice(0,de.ch)+Se[0],z(0)),ie(vt,Zt+vt.text.slice(me.ch),zt);var er=le(1,Se.length-1);hn>1&&a.remove(de.line+1,hn-1),a.insert(de.line+1,er)}Vr(a,"change",a,y)}function go(a,y,x){function b(z,ie,le){if(z.linked)for(var de=0;de<z.linked.length;++de){var me=z.linked[de];if(me.doc!=ie){var Se=le&&me.sharedHist;x&&!Se||(y(me.doc,Se),b(me.doc,z,Se))}}}b(a,null,!0)}function jl(a,y){if(y.cm)throw new Error("This document is already in use.");a.doc=y,y.cm=a,Ka(a),ol(a),Wl(a),a.options.lineWrapping||Br(a),a.options.mode=y.modeOption,Oi(a)}function Wl(a){(a.doc.direction=="rtl"?se:Fe)(a.display.lineDiv,"CodeMirror-rtl")}function au(a){_i(a,function(){Wl(a),Oi(a)})}function Aa(a){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=a||1}function ll(a,y){var x={from:Xt(y.from),to:vo(y),text:Qt(a,y.from,y.to)};return Gl(a,x,y.from.line,y.to.line+1),go(a,function(b){return Gl(b,x,y.from.line,y.to.line+1)},!0),x}function Zl(a){for(;a.length;){var y=$e(a);if(y.ranges)a.pop();else break}}function lu(a,y){if(y)return Zl(a.done),$e(a.done);if(a.done.length&&!$e(a.done).ranges)return $e(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),$e(a.done)}function Vl(a,y,x,b){var z=a.history;z.undone.length=0;var ie=+new Date,le,de;if((z.lastOp==b||z.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&z.lastModTime>ie-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(le=lu(z,z.lastOp==b)))de=$e(le.changes),pe(y.from,y.to)==0&&pe(y.from,de.to)==0?de.to=vo(y):le.changes.push(ll(a,y));else{var me=$e(z.done);for((!me||!me.ranges)&&Ma(a.sel,z.done),le={changes:[ll(a,y)],generation:z.generation},z.done.push(le);z.done.length>z.undoDepth;)z.done.shift(),z.done[0].ranges||z.done.shift()}z.done.push(x),z.generation=++z.maxGeneration,z.lastModTime=z.lastSelTime=ie,z.lastOp=z.lastSelOp=b,z.lastOrigin=z.lastSelOrigin=y.origin,de||sn(a,"historyAdded")}function su(a,y,x,b){var z=y.charAt(0);return z=="*"||z=="+"&&x.ranges.length==b.ranges.length&&x.somethingSelected()==b.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function uu(a,y,x,b){var z=a.history,ie=b&&b.origin;x==z.lastSelOp||ie&&z.lastSelOrigin==ie&&(z.lastModTime==z.lastSelTime&&z.lastOrigin==ie||su(a,ie,$e(z.done),y))?z.done[z.done.length-1]=y:Ma(y,z.done),z.lastSelTime=+new Date,z.lastSelOrigin=ie,z.lastSelOp=x,b&&b.clearRedo!==!1&&Zl(z.undone)}function Ma(a,y){var x=$e(y);x&&x.ranges&&x.equals(a)||y.push(a)}function Gl(a,y,x,b){var z=y["spans_"+a.id],ie=0;a.iter(Math.max(a.first,x),Math.min(a.first+a.size,b),function(le){le.markedSpans&&((z||(z=y["spans_"+a.id]={}))[ie]=le.markedSpans),++ie})}function cu(a){if(!a)return null;for(var y,x=0;x<a.length;++x)a[x].marker.explicitlyCleared?y||(y=a.slice(0,x)):y&&y.push(a[x]);return y?y.length?y:null:a}function du(a,y){var x=y["spans_"+a.id];if(!x)return null;for(var b=[],z=0;z<y.text.length;++z)b.push(cu(x[z]));return b}function Ul(a,y){var x=du(a,y),b=hr(a,y);if(!x)return b;if(!b)return x;for(var z=0;z<x.length;++z){var ie=x[z],le=b[z];if(ie&&le)e:for(var de=0;de<le.length;++de){for(var me=le[de],Se=0;Se<ie.length;++Se)if(ie[Se].marker==me.marker)continue e;ie.push(me)}else le&&(x[z]=le)}return x}function Fo(a,y,x){for(var b=[],z=0;z<a.length;++z){var ie=a[z];if(ie.ranges){b.push(x?ji.prototype.deepCopy.call(ie):ie);continue}var le=ie.changes,de=[];b.push({changes:de});for(var me=0;me<le.length;++me){var Se=le[me],at=void 0;if(de.push({from:Se.from,to:Se.to,text:Se.text}),y)for(var vt in Se)(at=vt.match(/^spans_(\d+)$/))&&Ue(y,Number(at[1]))>-1&&($e(de)[vt]=Se[vt],delete Se[vt])}}return b}function sl(a,y,x,b){if(b){var z=a.anchor;if(x){var ie=pe(y,z)<0;ie!=pe(x,z)<0?(z=y,y=x):ie!=pe(y,x)<0&&(y=x)}return new Hr(z,y)}else return new Hr(x||y,y)}function Ta(a,y,x,b,z){z==null&&(z=a.cm&&(a.cm.display.shift||a.extend)),Ci(a,new ji([sl(a.sel.primary(),y,x,z)],0),b)}function Kl(a,y,x){for(var b=[],z=a.cm&&(a.cm.display.shift||a.extend),ie=0;ie<a.sel.ranges.length;ie++)b[ie]=sl(a.sel.ranges[ie],y[ie],null,z);var le=qi(a.cm,b,a.sel.primIndex);Ci(a,le,x)}function ul(a,y,x,b){var z=a.sel.ranges.slice(0);z[y]=x,Ci(a,qi(a.cm,z,a.sel.primIndex),b)}function Xl(a,y,x,b){Ci(a,mo(y,x),b)}function fu(a,y,x){var b={ranges:y.ranges,update:function(z){this.ranges=[];for(var ie=0;ie<z.length;ie++)this.ranges[ie]=new Hr(Re(a,z[ie].anchor),Re(a,z[ie].head))},origin:x&&x.origin};return sn(a,"beforeSelectionChange",a,b),a.cm&&sn(a.cm,"beforeSelectionChange",a.cm,b),b.ranges!=y.ranges?qi(a.cm,b.ranges,b.ranges.length-1):y}function Yl(a,y,x){var b=a.history.done,z=$e(b);z&&z.ranges?(b[b.length-1]=y,Na(a,y,x)):Ci(a,y,x)}function Ci(a,y,x){Na(a,y,x),uu(a,a.sel,a.cm?a.cm.curOp.id:NaN,x)}function Na(a,y,x){(Vt(a,"beforeSelectionChange")||a.cm&&Vt(a.cm,"beforeSelectionChange"))&&(y=fu(a,y,x));var b=x&&x.bias||(pe(y.primary().head,a.sel.primary().head)<0?-1:1);Jl(a,ql(a,y,b,!0)),!(x&&x.scroll===!1)&&a.cm&&No(a.cm)}function Jl(a,y){y.equals(a.sel)||(a.sel=y,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,tn(a.cm)),Vr(a,"cursorActivity",a))}function Ql(a){Jl(a,ql(a,a.sel,null,!1))}function ql(a,y,x,b){for(var z,ie=0;ie<y.ranges.length;ie++){var le=y.ranges[ie],de=y.ranges.length==a.sel.ranges.length&&a.sel.ranges[ie],me=La(a,le.anchor,de&&de.anchor,x,b),Se=La(a,le.head,de&&de.head,x,b);(z||me!=le.anchor||Se!=le.head)&&(z||(z=y.ranges.slice(0,ie)),z[ie]=new Hr(me,Se))}return z?qi(a.cm,z,y.primIndex):y}function Ro(a,y,x,b,z){var ie=Nt(a,y.line);if(ie.markedSpans)for(var le=0;le<ie.markedSpans.length;++le){var de=ie.markedSpans[le],me=de.marker,Se="selectLeft"in me?!me.selectLeft:me.inclusiveLeft,at="selectRight"in me?!me.selectRight:me.inclusiveRight;if((de.from==null||(Se?de.from<=y.ch:de.from<y.ch))&&(de.to==null||(at?de.to>=y.ch:de.to>y.ch))){if(z&&(sn(me,"beforeCursorEnter"),me.explicitlyCleared))if(ie.markedSpans){--le;continue}else break;if(!me.atomic)continue;if(x){var vt=me.find(b<0?1:-1),Zt=void 0;if((b<0?at:Se)&&(vt=es(a,vt,-b,vt&&vt.line==y.line?ie:null)),vt&&vt.line==y.line&&(Zt=pe(vt,x))&&(b<0?Zt<0:Zt>0))return Ro(a,vt,y,b,z)}var zt=me.find(b<0?-1:1);return(b<0?Se:at)&&(zt=es(a,zt,b,zt.line==y.line?ie:null)),zt?Ro(a,zt,y,b,z):null}}return y}function La(a,y,x,b,z){var ie=b||1,le=Ro(a,y,x,ie,z)||!z&&Ro(a,y,x,ie,!0)||Ro(a,y,x,-ie,z)||!z&&Ro(a,y,x,-ie,!0);return le||(a.cantEdit=!0,fe(a.first,0))}function es(a,y,x,b){return x<0&&y.ch==0?y.line>a.first?Re(a,fe(y.line-1)):null:x>0&&y.ch==(b||Nt(a,y.line)).text.length?y.line<a.first+a.size-1?fe(y.line+1,0):null:new fe(y.line,y.ch+x)}function ts(a){a.setSelection(fe(a.firstLine(),0),fe(a.lastLine()),ge)}function ns(a,y,x){var b={canceled:!1,from:y.from,to:y.to,text:y.text,origin:y.origin,cancel:function(){return b.canceled=!0}};return x&&(b.update=function(z,ie,le,de){z&&(b.from=Re(a,z)),ie&&(b.to=Re(a,ie)),le&&(b.text=le),de!==void 0&&(b.origin=de)}),sn(a,"beforeChange",a,b),a.cm&&sn(a.cm,"beforeChange",a.cm,b),b.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:b.from,to:b.to,text:b.text,origin:b.origin}}function _o(a,y,x){if(a.cm){if(!a.cm.curOp)return ci(a.cm,_o)(a,y,x);if(a.cm.state.suppressEdits)return}if(!((Vt(a,"beforeChange")||a.cm&&Vt(a.cm,"beforeChange"))&&(y=ns(a,y,!0),!y))){var b=Kn&&!x&&pr(a,y.from,y.to);if(b)for(var z=b.length-1;z>=0;--z)rs(a,{from:b[z].from,to:b[z].to,text:z?[""]:y.text,origin:y.origin});else rs(a,y)}}function rs(a,y){if(!(y.text.length==1&&y.text[0]==""&&pe(y.from,y.to)==0)){var x=il(a,y);Vl(a,y,x,a.cm?a.cm.curOp.id:NaN),oa(a,y,x,hr(a,y));var b=[];go(a,function(z,ie){!ie&&Ue(b,z.history)==-1&&(ls(z.history,y),b.push(z.history)),oa(z,y,null,hr(z,y))})}}function Fa(a,y,x){var b=a.cm&&a.cm.state.suppressEdits;if(!(b&&!x)){for(var z=a.history,ie,le=a.sel,de=y=="undo"?z.done:z.undone,me=y=="undo"?z.undone:z.done,Se=0;Se<de.length&&(ie=de[Se],!(x?ie.ranges&&!ie.equals(a.sel):!ie.ranges));Se++);if(Se!=de.length){for(z.lastOrigin=z.lastSelOrigin=null;;)if(ie=de.pop(),ie.ranges){if(Ma(ie,me),x&&!ie.equals(a.sel)){Ci(a,ie,{clearRedo:!1});return}le=ie}else if(b){de.push(ie);return}else break;var at=[];Ma(le,me),me.push({changes:at,generation:z.generation}),z.generation=ie.generation||++z.maxGeneration;for(var vt=Vt(a,"beforeChange")||a.cm&&Vt(a.cm,"beforeChange"),Zt=function(Mn){var $n=ie.changes[Mn];if($n.origin=y,vt&&!ns(a,$n,!1))return de.length=0,{};at.push(ll(a,$n));var er=Mn?il(a,$n):$e(de);oa(a,$n,er,Ul(a,$n)),!Mn&&a.cm&&a.cm.scrollIntoView({from:$n.from,to:vo($n)});var lr=[];go(a,function(tr,cr){!cr&&Ue(lr,tr.history)==-1&&(ls(tr.history,$n),lr.push(tr.history)),oa(tr,$n,null,Ul(tr,$n))})},zt=ie.changes.length-1;zt>=0;--zt){var hn=Zt(zt);if(hn)return hn.v}}}}function is(a,y){if(y!=0&&(a.first+=y,a.sel=new ji(At(a.sel.ranges,function(z){return new Hr(fe(z.anchor.line+y,z.anchor.ch),fe(z.head.line+y,z.head.ch))}),a.sel.primIndex),a.cm)){Oi(a.cm,a.first,a.first-y,y);for(var x=a.cm.display,b=x.viewFrom;b<x.viewTo;b++)ho(a.cm,b,"gutter")}}function oa(a,y,x,b){if(a.cm&&!a.cm.curOp)return ci(a.cm,oa)(a,y,x,b);if(y.to.line<a.first){is(a,y.text.length-1-(y.to.line-y.from.line));return}if(!(y.from.line>a.lastLine())){if(y.from.line<a.first){var z=y.text.length-1-(a.first-y.from.line);is(a,z),y={from:fe(a.first,0),to:fe(y.to.line+z,y.to.ch),text:[$e(y.text)],origin:y.origin}}var ie=a.lastLine();y.to.line>ie&&(y={from:y.from,to:fe(ie,Nt(a,ie).text.length),text:[y.text[0]],origin:y.origin}),y.removed=Qt(a,y.from,y.to),x||(x=il(a,y)),a.cm?hu(a.cm,y,b):al(a,y,b),Na(a,x,ge),a.cantEdit&&La(a,fe(a.firstLine(),0))&&(a.cantEdit=!1)}}function hu(a,y,x){var b=a.doc,z=a.display,ie=y.from,le=y.to,de=!1,me=ie.line;a.options.lineWrapping||(me=Xe(dn(Nt(b,ie.line))),b.iter(me,le.line+1,function(zt){if(zt==z.maxLine)return de=!0,!0})),b.sel.contains(y.from,y.to)>-1&&tn(a),al(b,y,x,Cl(a)),a.options.lineWrapping||(b.iter(me,ie.line+y.text.length,function(zt){var hn=kr(zt);hn>z.maxLineLength&&(z.maxLine=zt,z.maxLineLength=hn,z.maxLineChanged=!0,de=!1)}),de&&(a.curOp.updateMaxLine=!0)),Un(b,ie.line),na(a,400);var Se=y.text.length-(le.line-ie.line)-1;y.full?Oi(a):ie.line==le.line&&y.text.length==1&&!Hl(a.doc,y)?ho(a,ie.line,"text"):Oi(a,ie.line,le.line+1,Se);var at=Vt(a,"changes"),vt=Vt(a,"change");if(vt||at){var Zt={from:ie,to:le,text:y.text,removed:y.removed,origin:y.origin};vt&&Vr(a,"change",a,Zt),at&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Zt)}a.display.selForContextMenu=null}function $o(a,y,x,b,z){var ie;b||(b=x),pe(b,x)<0&&(ie=[b,x],x=ie[0],b=ie[1]),typeof y=="string"&&(y=a.splitLines(y)),_o(a,{from:x,to:b,text:y,origin:z})}function os(a,y,x,b){x<a.line?a.line+=b:y<a.line&&(a.line=y,a.ch=0)}function as(a,y,x,b){for(var z=0;z<a.length;++z){var ie=a[z],le=!0;if(ie.ranges){ie.copied||(ie=a[z]=ie.deepCopy(),ie.copied=!0);for(var de=0;de<ie.ranges.length;de++)os(ie.ranges[de].anchor,y,x,b),os(ie.ranges[de].head,y,x,b);continue}for(var me=0;me<ie.changes.length;++me){var Se=ie.changes[me];if(x<Se.from.line)Se.from=fe(Se.from.line+b,Se.from.ch),Se.to=fe(Se.to.line+b,Se.to.ch);else if(y<=Se.to.line){le=!1;break}}le||(a.splice(0,z+1),z=0)}}function ls(a,y){var x=y.from.line,b=y.to.line,z=y.text.length-(b-x)-1;as(a.done,x,b,z),as(a.undone,x,b,z)}function aa(a,y,x,b){var z=y,ie=y;return typeof y=="number"?ie=Nt(a,Ct(a,y)):z=Xe(y),z==null?null:(b(ie,z)&&a.cm&&ho(a.cm,z,x),ie)}function la(a){this.lines=a,this.parent=null;for(var y=0,x=0;x<a.length;++x)a[x].parent=this,y+=a[x].height;this.height=y}la.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,y){for(var x=a,b=a+y;x<b;++x){var z=this.lines[x];this.height-=z.height,Nr(z),Vr(z,"delete")}this.lines.splice(a,y)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,y,x){this.height+=x,this.lines=this.lines.slice(0,a).concat(y).concat(this.lines.slice(a));for(var b=0;b<y.length;++b)y[b].parent=this},iterN:function(a,y,x){for(var b=a+y;a<b;++a)if(x(this.lines[a]))return!0}};function sa(a){this.children=a;for(var y=0,x=0,b=0;b<a.length;++b){var z=a[b];y+=z.chunkSize(),x+=z.height,z.parent=this}this.size=y,this.height=x,this.parent=null}sa.prototype={chunkSize:function(){return this.size},removeInner:function(a,y){this.size-=y;for(var x=0;x<this.children.length;++x){var b=this.children[x],z=b.chunkSize();if(a<z){var ie=Math.min(y,z-a),le=b.height;if(b.removeInner(a,ie),this.height-=le-b.height,z==ie&&(this.children.splice(x--,1),b.parent=null),(y-=ie)==0)break;a=0}else a-=z}if(this.size-y<25&&(this.children.length>1||!(this.children[0]instanceof la))){var de=[];this.collapse(de),this.children=[new la(de)],this.children[0].parent=this}},collapse:function(a){for(var y=0;y<this.children.length;++y)this.children[y].collapse(a)},insertInner:function(a,y,x){this.size+=y.length,this.height+=x;for(var b=0;b<this.children.length;++b){var z=this.children[b],ie=z.chunkSize();if(a<=ie){if(z.insertInner(a,y,x),z.lines&&z.lines.length>50){for(var le=z.lines.length%25+25,de=le;de<z.lines.length;){var me=new la(z.lines.slice(de,de+=25));z.height-=me.height,this.children.splice(++b,0,me),me.parent=this}z.lines=z.lines.slice(0,le),this.maybeSpill()}break}a-=ie}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var y=a.children.splice(a.children.length-5,5),x=new sa(y);if(a.parent){a.size-=x.size,a.height-=x.height;var z=Ue(a.parent.children,a);a.parent.children.splice(z+1,0,x)}else{var b=new sa(a.children);b.parent=a,a.children=[b,x],a=b}x.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,y,x){for(var b=0;b<this.children.length;++b){var z=this.children[b],ie=z.chunkSize();if(a<ie){var le=Math.min(y,ie-a);if(z.iterN(a,le,x))return!0;if((y-=le)==0)break;a=0}else a-=ie}}};var ua=function(a,y,x){if(x)for(var b in x)x.hasOwnProperty(b)&&(this[b]=x[b]);this.doc=a,this.node=y};ua.prototype.clear=function(){var a=this.doc.cm,y=this.line.widgets,x=this.line,b=Xe(x);if(!(b==null||!y)){for(var z=0;z<y.length;++z)y[z]==this&&y.splice(z--,1);y.length||(x.widgets=null);var ie=wi(this);mn(x,Math.max(0,x.height-ie)),a&&(_i(a,function(){ss(a,x,-ie),ho(a,b,"widget")}),Vr(a,"lineWidgetCleared",a,this,b))}},ua.prototype.changed=function(){var a=this,y=this.height,x=this.doc.cm,b=this.line;this.height=null;var z=wi(this)-y;z&&(jn(this.doc,b)||mn(b,b.height+z),x&&_i(x,function(){x.curOp.forceUpdate=!0,ss(x,b,z),Vr(x,"lineWidgetChanged",x,a,Xe(b))}))},je(ua);function ss(a,y,x){vr(y)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&Qa(a,x)}function pu(a,y,x,b){var z=new ua(a,x,b),ie=a.cm;return ie&&z.noHScroll&&(ie.display.alignWidgets=!0),aa(a,y,"widget",function(le){var de=le.widgets||(le.widgets=[]);if(z.insertAt==null?de.push(z):de.splice(Math.min(de.length-1,Math.max(0,z.insertAt)),0,z),z.line=le,ie&&!jn(a,le)){var me=vr(le)<a.scrollTop;mn(le,le.height+wi(z)),me&&Qa(ie,z.height),ie.curOp.forceUpdate=!0}return!0}),ie&&Vr(ie,"lineWidgetAdded",ie,z,typeof y=="number"?y:Xe(y)),z}var us=0,yo=function(a,y){this.lines=[],this.type=y,this.doc=a,this.id=++us};yo.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,y=a&&!a.curOp;if(y&&Io(a),Vt(this,"clear")){var x=this.find();x&&Vr(this,"clear",x.from,x.to)}for(var b=null,z=null,ie=0;ie<this.lines.length;++ie){var le=this.lines[ie],de=Yn(le.markedSpans,this);a&&!this.collapsed?ho(a,Xe(le),"text"):a&&(de.to!=null&&(z=Xe(le)),de.from!=null&&(b=Xe(le))),le.markedSpans=Jn(le.markedSpans,de),de.from==null&&this.collapsed&&!jn(this.doc,le)&&a&&mn(le,Ri(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var me=0;me<this.lines.length;++me){var Se=dn(this.lines[me]),at=kr(Se);at>a.display.maxLineLength&&(a.display.maxLine=Se,a.display.maxLineLength=at,a.display.maxLineChanged=!0)}b!=null&&a&&this.collapsed&&Oi(a,b,z+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Ql(a.doc)),a&&Vr(a,"markerCleared",a,this,b,z),y&&Po(a),this.parent&&this.parent.clear()}},yo.prototype.find=function(a,y){a==null&&this.type=="bookmark"&&(a=1);for(var x,b,z=0;z<this.lines.length;++z){var ie=this.lines[z],le=Yn(ie.markedSpans,this);if(le.from!=null&&(x=fe(y?ie:Xe(ie),le.from),a==-1))return x;if(le.to!=null&&(b=fe(y?ie:Xe(ie),le.to),a==1))return b}return x&&{from:x,to:b}},yo.prototype.changed=function(){var a=this,y=this.find(-1,!0),x=this,b=this.doc.cm;!y||!b||_i(b,function(){var z=y.line,ie=Xe(y.line),le=io(b,ie);if(le&&(Uo(le),b.curOp.selectionChanged=b.curOp.forceUpdate=!0),b.curOp.updateMaxLine=!0,!jn(x.doc,z)&&x.height!=null){var de=x.height;x.height=null;var me=wi(x)-de;me&&mn(z,z.height+me)}Vr(b,"markerChanged",b,a)})},yo.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(!y.maybeHiddenMarkers||Ue(y.maybeHiddenMarkers,this)==-1)&&(y.maybeUnhiddenMarkers||(y.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},yo.prototype.detachLine=function(a){if(this.lines.splice(Ue(this.lines,a),1),!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(y.maybeHiddenMarkers||(y.maybeHiddenMarkers=[])).push(this)}},je(yo);function zo(a,y,x,b,z){if(b&&b.shared)return mu(a,y,x,b,z);if(a.cm&&!a.cm.curOp)return ci(a.cm,zo)(a,y,x,b,z);var ie=new yo(a,z),le=pe(y,x);if(b&&ct(b,ie,!1),le>0||le==0&&ie.clearWhenEmpty!==!1)return ie;if(ie.replacedWith&&(ie.collapsed=!0,ie.widgetNode=St("span",[ie.replacedWith],"CodeMirror-widget"),b.handleMouseEvents||ie.widgetNode.setAttribute("cm-ignore-events","true"),b.insertLeft&&(ie.widgetNode.insertLeft=!0)),ie.collapsed){if(wn(a,y.line,y,x,ie)||y.line!=x.line&&wn(a,x.line,y,x,ie))throw new Error("Inserting collapsed marker partially overlapping an existing one");Vn()}ie.addToHistory&&Vl(a,{from:y,to:x,origin:"markText"},a.sel,NaN);var de=y.line,me=a.cm,Se;if(a.iter(de,x.line+1,function(vt){me&&ie.collapsed&&!me.options.lineWrapping&&dn(vt)==me.display.maxLine&&(Se=!0),ie.collapsed&&de!=y.line&&mn(vt,0),dr(vt,new Bn(ie,de==y.line?y.ch:null,de==x.line?x.ch:null)),++de}),ie.collapsed&&a.iter(y.line,x.line+1,function(vt){jn(a,vt)&&mn(vt,0)}),ie.clearOnEnter&&Ht(ie,"beforeCursorEnter",function(){return ie.clear()}),ie.readOnly&&(mr(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),ie.collapsed&&(ie.id=++us,ie.atomic=!0),me){if(Se&&(me.curOp.updateMaxLine=!0),ie.collapsed)Oi(me,y.line,x.line+1);else if(ie.className||ie.startStyle||ie.endStyle||ie.css||ie.attributes||ie.title)for(var at=y.line;at<=x.line;at++)ho(me,at,"text");ie.atomic&&Ql(me.doc),Vr(me,"markerAdded",me,ie)}return ie}var ca=function(a,y){this.markers=a,this.primary=y;for(var x=0;x<a.length;++x)a[x].parent=this};ca.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();Vr(this,"clear")}},ca.prototype.find=function(a,y){return this.primary.find(a,y)},je(ca);function mu(a,y,x,b,z){b=ct(b),b.shared=!1;var ie=[zo(a,y,x,b,z)],le=ie[0],de=b.widgetNode;return go(a,function(me){de&&(b.widgetNode=de.cloneNode(!0)),ie.push(zo(me,Re(me,y),Re(me,x),b,z));for(var Se=0;Se<me.linked.length;++Se)if(me.linked[Se].isParent)return;le=$e(ie)}),new ca(ie,le)}function cs(a){return a.findMarks(fe(a.first,0),a.clipPos(fe(a.lastLine())),function(y){return y.parent})}function vu(a,y){for(var x=0;x<y.length;x++){var b=y[x],z=b.find(),ie=a.clipPos(z.from),le=a.clipPos(z.to);if(pe(ie,le)){var de=zo(a,ie,le,b.primary,b.primary.type);b.markers.push(de),de.parent=b}}}function gu(a){for(var y=function(b){var z=a[b],ie=[z.primary.doc];go(z.primary.doc,function(me){return ie.push(me)});for(var le=0;le<z.markers.length;le++){var de=z.markers[le];Ue(ie,de.doc)==-1&&(de.parent=null,z.markers.splice(le--,1))}},x=0;x<a.length;x++)y(x)}var yu=0,ki=function(a,y,x,b,z){if(!(this instanceof ki))return new ki(a,y,x,b,z);x==null&&(x=0),sa.call(this,[new la([new Tr("",null)])]),this.first=x,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=x;var ie=fe(x,0);this.sel=mo(ie),this.history=new Aa(null),this.id=++yu,this.modeOption=y,this.lineSep=b,this.direction=z=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),al(this,{from:ie,to:ie,text:a}),Ci(this,mo(ie),ge)};ki.prototype=te(sa.prototype,{constructor:ki,iter:function(a,y,x){x?this.iterN(a-this.first,y-a,x):this.iterN(this.first,this.first+this.size,a)},insert:function(a,y){for(var x=0,b=0;b<y.length;++b)x+=y[b].height;this.insertInner(a-this.first,y,x)},remove:function(a,y){this.removeInner(a-this.first,y)},getValue:function(a){var y=En(this,this.first,this.first+this.size);return a===!1?y:y.join(a||this.lineSeparator())},setValue:di(function(a){var y=fe(this.first,0),x=this.first+this.size-1;_o(this,{from:y,to:fe(x,Nt(this,x).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&Qo(this.cm,0,0),Ci(this,mo(y),ge)}),replaceRange:function(a,y,x,b){y=Re(this,y),x=x?Re(this,x):y,$o(this,a,y,x,b)},getRange:function(a,y,x){var b=Qt(this,Re(this,a),Re(this,y));return x===!1?b:b.join(x||this.lineSeparator())},getLine:function(a){var y=this.getLineHandle(a);return y&&y.text},getLineHandle:function(a){if(ke(this,a))return Nt(this,a)},getLineNumber:function(a){return Xe(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=Nt(this,a)),dn(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return Re(this,a)},getCursor:function(a){var y=this.sel.primary(),x;return a==null||a=="head"?x=y.head:a=="anchor"?x=y.anchor:a=="end"||a=="to"||a===!1?x=y.to():x=y.from(),x},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:di(function(a,y,x){Xl(this,Re(this,typeof a=="number"?fe(a,y||0):a),null,x)}),setSelection:di(function(a,y,x){Xl(this,Re(this,a),Re(this,y||a),x)}),extendSelection:di(function(a,y,x){Ta(this,Re(this,a),y&&Re(this,y),x)}),extendSelections:di(function(a,y){Kl(this,Jt(this,a),y)}),extendSelectionsBy:di(function(a,y){var x=At(this.sel.ranges,a);Kl(this,Jt(this,x),y)}),setSelections:di(function(a,y,x){if(a.length){for(var b=[],z=0;z<a.length;z++)b[z]=new Hr(Re(this,a[z].anchor),Re(this,a[z].head));y==null&&(y=Math.min(a.length-1,this.sel.primIndex)),Ci(this,qi(this.cm,b,y),x)}}),addSelection:di(function(a,y,x){var b=this.sel.ranges.slice(0);b.push(new Hr(Re(this,a),Re(this,y||a))),Ci(this,qi(this.cm,b,b.length-1),x)}),getSelection:function(a){for(var y=this.sel.ranges,x,b=0;b<y.length;b++){var z=Qt(this,y[b].from(),y[b].to());x=x?x.concat(z):z}return a===!1?x:x.join(a||this.lineSeparator())},getSelections:function(a){for(var y=[],x=this.sel.ranges,b=0;b<x.length;b++){var z=Qt(this,x[b].from(),x[b].to());a!==!1&&(z=z.join(a||this.lineSeparator())),y[b]=z}return y},replaceSelection:function(a,y,x){for(var b=[],z=0;z<this.sel.ranges.length;z++)b[z]=a;this.replaceSelections(b,y,x||"+input")},replaceSelections:di(function(a,y,x){for(var b=[],z=this.sel,ie=0;ie<z.ranges.length;ie++){var le=z.ranges[ie];b[ie]={from:le.from(),to:le.to(),text:this.splitLines(a[ie]),origin:x}}for(var de=y&&y!="end"&&ou(this,b,y),me=b.length-1;me>=0;me--)_o(this,b[me]);de?Yl(this,de):this.cm&&No(this.cm)}),undo:di(function(){Fa(this,"undo")}),redo:di(function(){Fa(this,"redo")}),undoSelection:di(function(){Fa(this,"undo",!0)}),redoSelection:di(function(){Fa(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,y=0,x=0,b=0;b<a.done.length;b++)a.done[b].ranges||++y;for(var z=0;z<a.undone.length;z++)a.undone[z].ranges||++x;return{undo:y,redo:x}},clearHistory:function(){var a=this;this.history=new Aa(this.history.maxGeneration),go(this,function(y){return y.history=a.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(a){return a&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},getHistory:function(){return{done:Fo(this.history.done),undone:Fo(this.history.undone)}},setHistory:function(a){var y=this.history=new Aa(this.history.maxGeneration);y.done=Fo(a.done.slice(0),null,!0),y.undone=Fo(a.undone.slice(0),null,!0)},setGutterMarker:di(function(a,y,x){return aa(this,a,"gutter",function(b){var z=b.gutterMarkers||(b.gutterMarkers={});return z[y]=x,!x&&re(z)&&(b.gutterMarkers=null),!0})}),clearGutter:di(function(a){var y=this;this.iter(function(x){x.gutterMarkers&&x.gutterMarkers[a]&&aa(y,x,"gutter",function(){return x.gutterMarkers[a]=null,re(x.gutterMarkers)&&(x.gutterMarkers=null),!0})})}),lineInfo:function(a){var y;if(typeof a=="number"){if(!ke(this,a)||(y=a,a=Nt(this,a),!a))return null}else if(y=Xe(a),y==null)return null;return{line:y,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:di(function(a,y,x){return aa(this,a,y=="gutter"?"gutter":"class",function(b){var z=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass";if(!b[z])b[z]=x;else{if(nt(x).test(b[z]))return!1;b[z]+=" "+x}return!0})}),removeLineClass:di(function(a,y,x){return aa(this,a,y=="gutter"?"gutter":"class",function(b){var z=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass",ie=b[z];if(ie)if(x==null)b[z]=null;else{var le=ie.match(nt(x));if(!le)return!1;var de=le.index+le[0].length;b[z]=ie.slice(0,le.index)+(!le.index||de==ie.length?"":" ")+ie.slice(de)||null}else return!1;return!0})}),addLineWidget:di(function(a,y,x){return pu(this,a,y,x)}),removeLineWidget:function(a){a.clear()},markText:function(a,y,x){return zo(this,Re(this,a),Re(this,y),x,x&&x.type||"range")},setBookmark:function(a,y){var x={replacedWith:y&&(y.nodeType==null?y.widget:y),insertLeft:y&&y.insertLeft,clearWhenEmpty:!1,shared:y&&y.shared,handleMouseEvents:y&&y.handleMouseEvents};return a=Re(this,a),zo(this,a,a,x,"bookmark")},findMarksAt:function(a){a=Re(this,a);var y=[],x=Nt(this,a.line).markedSpans;if(x)for(var b=0;b<x.length;++b){var z=x[b];(z.from==null||z.from<=a.ch)&&(z.to==null||z.to>=a.ch)&&y.push(z.marker.parent||z.marker)}return y},findMarks:function(a,y,x){a=Re(this,a),y=Re(this,y);var b=[],z=a.line;return this.iter(a.line,y.line+1,function(ie){var le=ie.markedSpans;if(le)for(var de=0;de<le.length;de++){var me=le[de];!(me.to!=null&&z==a.line&&a.ch>=me.to||me.from==null&&z!=a.line||me.from!=null&&z==y.line&&me.from>=y.ch)&&(!x||x(me.marker))&&b.push(me.marker.parent||me.marker)}++z}),b},getAllMarks:function(){var a=[];return this.iter(function(y){var x=y.markedSpans;if(x)for(var b=0;b<x.length;++b)x[b].from!=null&&a.push(x[b].marker)}),a},posFromIndex:function(a){var y,x=this.first,b=this.lineSeparator().length;return this.iter(function(z){var ie=z.text.length+b;if(ie>a)return y=a,!0;a-=ie,++x}),Re(this,fe(x,y))},indexFromPos:function(a){a=Re(this,a);var y=a.ch;if(a.line<this.first||a.ch<0)return 0;var x=this.lineSeparator().length;return this.iter(this.first,a.line,function(b){y+=b.text.length+x}),y},copy:function(a){var y=new ki(En(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return y.scrollTop=this.scrollTop,y.scrollLeft=this.scrollLeft,y.sel=this.sel,y.extend=!1,a&&(y.history.undoDepth=this.history.undoDepth,y.setHistory(this.getHistory())),y},linkedDoc:function(a){a||(a={});var y=this.first,x=this.first+this.size;a.from!=null&&a.from>y&&(y=a.from),a.to!=null&&a.to<x&&(x=a.to);var b=new ki(En(this,y,x),a.mode||this.modeOption,y,this.lineSep,this.direction);return a.sharedHist&&(b.history=this.history),(this.linked||(this.linked=[])).push({doc:b,sharedHist:a.sharedHist}),b.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],vu(b,cs(this)),b},unlinkDoc:function(a){if(a instanceof Kr&&(a=a.doc),this.linked)for(var y=0;y<this.linked.length;++y){var x=this.linked[y];if(x.doc==a){this.linked.splice(y,1),a.unlinkDoc(this),gu(cs(this));break}}if(a.history==this.history){var b=[a.id];go(a,function(z){return b.push(z.id)},!0),a.history=new Aa(null),a.history.done=Fo(this.history.done,b),a.history.undone=Fo(this.history.undone,b)}},iterLinkedDocs:function(a){go(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):un(a)},lineSeparator:function(){return this.lineSep||`
`},setDirection:di(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(y){return y.order=null}),this.cm&&au(this.cm))})}),ki.prototype.eachLine=ki.prototype.iter;var ds=0;function bu(a){var y=this;if(fs(y),!(Dt(y,a)||mi(y.display,a))){pt(a),Ee&&(ds=+new Date);var x=So(y,a,!0),b=a.dataTransfer.files;if(!(!x||y.isReadOnly()))if(b&&b.length&&window.FileReader&&window.File)for(var z=b.length,ie=Array(z),le=0,de=function(){++le==z&&ci(y,function(){x=Re(y.doc,x);var zt={from:x,to:x,text:y.doc.splitLines(ie.filter(function(hn){return hn!=null}).join(y.doc.lineSeparator())),origin:"paste"};_o(y.doc,zt),Yl(y.doc,mo(Re(y.doc,x),Re(y.doc,vo(zt))))})()},me=function(zt,hn){if(y.options.allowDropFileTypes&&Ue(y.options.allowDropFileTypes,zt.type)==-1){de();return}var Mn=new FileReader;Mn.onerror=function(){return de()},Mn.onload=function(){var $n=Mn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test($n)){de();return}ie[hn]=$n,de()},Mn.readAsText(zt)},Se=0;Se<b.length;Se++)me(b[Se],Se);else{if(y.state.draggingText&&y.doc.sel.contains(x)>-1){y.state.draggingText(a),setTimeout(function(){return y.display.input.focus()},20);return}try{var at=a.dataTransfer.getData("Text");if(at){var vt;if(y.state.draggingText&&!y.state.draggingText.copy&&(vt=y.listSelections()),Na(y.doc,mo(x,x)),vt)for(var Zt=0;Zt<vt.length;++Zt)$o(y.doc,"",vt[Zt].anchor,vt[Zt].head,"drag");y.replaceSelection(at,"around","paste"),y.display.input.focus()}}catch(zt){}}}}function xu(a,y){if(Ee&&(!a.state.draggingText||+new Date-ds<100)){Ne(y);return}if(!(Dt(a,y)||mi(a.display,y))&&(y.dataTransfer.setData("Text",a.getSelection()),y.dataTransfer.effectAllowed="copyMove",y.dataTransfer.setDragImage&&!Je)){var x=et("img",null,null,"position: fixed; left: 0; top: 0;");x.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",he&&(x.width=x.height=1,a.display.wrapper.appendChild(x),x._top=x.offsetTop),y.dataTransfer.setDragImage(x,0,0),he&&x.parentNode.removeChild(x)}}function Cu(a,y){var x=So(a,y);if(x){var b=document.createDocumentFragment();El(a,x,b),a.display.dragCursor||(a.display.dragCursor=et("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),lt(a.display.dragCursor,b)}}function fs(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function hs(a){if(document.getElementsByClassName){for(var y=document.getElementsByClassName("CodeMirror"),x=[],b=0;b<y.length;b++){var z=y[b].CodeMirror;z&&x.push(z)}x.length&&x[0].operation(function(){for(var ie=0;ie<x.length;ie++)a(x[ie])})}}var ps=!1;function Su(){ps||(wu(),ps=!0)}function wu(){var a;Ht(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,hs(Eu)},100))}),Ht(window,"blur",function(){return hs(To)})}function Eu(a){var y=a.display;y.cachedCharWidth=y.cachedTextHeight=y.cachedPaddingH=null,y.scrollbarsClipped=!1,a.setSize()}for(var bo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},da=0;da<10;da++)bo[da+48]=bo[da+96]=String(da);for(var Ra=65;Ra<=90;Ra++)bo[Ra]=String.fromCharCode(Ra);for(var fa=1;fa<=12;fa++)bo[fa+111]=bo[fa+63235]="F"+fa;var so={};so.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},so.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},so.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},so.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},so.default=_e?so.macDefault:so.pcDefault;function Bu(a){var y=a.split(/-(?!$)/);a=y[y.length-1];for(var x,b,z,ie,le=0;le<y.length-1;le++){var de=y[le];if(/^(cmd|meta|m)$/i.test(de))ie=!0;else if(/^a(lt)?$/i.test(de))x=!0;else if(/^(c|ctrl|control)$/i.test(de))b=!0;else if(/^s(hift)?$/i.test(de))z=!0;else throw new Error("Unrecognized modifier name: "+de)}return x&&(a="Alt-"+a),b&&(a="Ctrl-"+a),ie&&(a="Cmd-"+a),z&&(a="Shift-"+a),a}function Iu(a){var y={};for(var x in a)if(a.hasOwnProperty(x)){var b=a[x];if(/^(name|fallthrough|(de|at)tach)$/.test(x))continue;if(b=="..."){delete a[x];continue}for(var z=At(x.split(" "),Bu),ie=0;ie<z.length;ie++){var le=void 0,de=void 0;ie==z.length-1?(de=z.join(" "),le=b):(de=z.slice(0,ie+1).join(" "),le="...");var me=y[de];if(!me)y[de]=le;else if(me!=le)throw new Error("Inconsistent bindings for "+de)}delete a[x]}for(var Se in y)a[Se]=y[Se];return a}function Ho(a,y,x,b){y=_a(y);var z=y.call?y.call(a,b):y[a];if(z===!1)return"nothing";if(z==="...")return"multi";if(z!=null&&x(z))return"handled";if(y.fallthrough){if(Object.prototype.toString.call(y.fallthrough)!="[object Array]")return Ho(a,y.fallthrough,x,b);for(var ie=0;ie<y.fallthrough.length;ie++){var le=Ho(a,y.fallthrough[ie],x,b);if(le)return le}}}function ms(a){var y=typeof a=="string"?a:bo[a.keyCode];return y=="Ctrl"||y=="Alt"||y=="Shift"||y=="Mod"}function vs(a,y,x){var b=a;return y.altKey&&b!="Alt"&&(a="Alt-"+a),(ht?y.metaKey:y.ctrlKey)&&b!="Ctrl"&&(a="Ctrl-"+a),(ht?y.ctrlKey:y.metaKey)&&b!="Mod"&&(a="Cmd-"+a),!x&&y.shiftKey&&b!="Shift"&&(a="Shift-"+a),a}function gs(a,y){if(he&&a.keyCode==34&&a.char)return!1;var x=bo[a.keyCode];return x==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(x=a.code),vs(x,a,y))}function _a(a){return typeof a=="string"?so[a]:a}function jo(a,y){for(var x=a.doc.sel.ranges,b=[],z=0;z<x.length;z++){for(var ie=y(x[z]);b.length&&pe(ie.from,$e(b).to)<=0;){var le=b.pop();if(pe(le.from,ie.from)<0){ie.from=le.from;break}}b.push(ie)}_i(a,function(){for(var de=b.length-1;de>=0;de--)$o(a.doc,"",b[de].from,b[de].to,"+delete");No(a)})}function cl(a,y,x){var b=ft(a.text,y+x,x);return b<0||b>a.text.length?null:b}function dl(a,y,x){var b=cl(a,y.ch,x);return b==null?null:new fe(y.line,b,x<0?"after":"before")}function fl(a,y,x,b,z){if(a){y.doc.direction=="rtl"&&(z=-z);var ie=Ut(x,y.doc.direction);if(ie){var le=z<0?$e(ie):ie[0],de=z<0==(le.level==1),me=de?"after":"before",Se;if(le.level>0||y.doc.direction=="rtl"){var at=co(y,x);Se=z<0?x.text.length-1:0;var vt=Vi(y,at,Se).top;Se=Oe(function(Zt){return Vi(y,at,Zt).top==vt},z<0==(le.level==1)?le.from:le.to-1,Se),me=="before"&&(Se=cl(x,Se,1))}else Se=z<0?le.to:le.from;return new fe(b,Se,me)}}return new fe(b,z<0?x.text.length:0,z<0?"before":"after")}function Pu(a,y,x,b){var z=Ut(y,a.doc.direction);if(!z)return dl(y,x,b);x.ch>=y.text.length?(x.ch=y.text.length,x.sticky="before"):x.ch<=0&&(x.ch=0,x.sticky="after");var ie=Bt(z,x.ch,x.sticky),le=z[ie];if(a.doc.direction=="ltr"&&le.level%2==0&&(b>0?le.to>x.ch:le.from<x.ch))return dl(y,x,b);var de=function(er,lr){return cl(y,er instanceof fe?er.ch:er,lr)},me,Se=function(er){return a.options.lineWrapping?(me=me||co(a,y),ti(a,y,me,er)):{begin:0,end:y.text.length}},at=Se(x.sticky=="before"?de(x,-1):x.ch);if(a.doc.direction=="rtl"||le.level==1){var vt=le.level==1==b<0,Zt=de(x,vt?1:-1);if(Zt!=null&&(vt?Zt<=le.to&&Zt<=at.end:Zt>=le.from&&Zt>=at.begin)){var zt=vt?"before":"after";return new fe(x.line,Zt,zt)}}var hn=function(er,lr,tr){for(var cr=function(Ur,fi){return fi?new fe(x.line,de(Ur,1),"before"):new fe(x.line,Ur,"after")};er>=0&&er<z.length;er+=lr){var Cr=z[er],gr=lr>0==(Cr.level!=1),Dr=gr?tr.begin:de(tr.end,-1);if(Cr.from<=Dr&&Dr<Cr.to||(Dr=gr?Cr.from:de(Cr.to,-1),tr.begin<=Dr&&Dr<tr.end))return cr(Dr,gr)}},Mn=hn(ie+b,b,at);if(Mn)return Mn;var $n=b>0?at.end:de(at.begin,-1);return $n!=null&&!(b>0&&$n==y.text.length)&&(Mn=hn(b>0?0:z.length-1,b,Se($n)),Mn)?Mn:null}var ha={selectAll:ts,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),ge)},killLine:function(a){return jo(a,function(y){if(y.empty()){var x=Nt(a.doc,y.head.line).text.length;return y.head.ch==x&&y.head.line<a.lastLine()?{from:y.head,to:fe(y.head.line+1,0)}:{from:y.head,to:fe(y.head.line,x)}}else return{from:y.from(),to:y.to()}})},deleteLine:function(a){return jo(a,function(y){return{from:fe(y.from().line,0),to:Re(a.doc,fe(y.to().line+1,0))}})},delLineLeft:function(a){return jo(a,function(y){return{from:fe(y.from().line,0),to:y.from()}})},delWrappedLineLeft:function(a){return jo(a,function(y){var x=a.charCoords(y.head,"div").top+5,b=a.coordsChar({left:0,top:x},"div");return{from:b,to:y.from()}})},delWrappedLineRight:function(a){return jo(a,function(y){var x=a.charCoords(y.head,"div").top+5,b=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:x},"div");return{from:y.from(),to:b}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection(fe(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(fe(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(y){return ys(a,y.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(y){return bs(a,y.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(y){return Ou(a,y.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:x},"div")},Ge)},goLineLeft:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5;return a.coordsChar({left:0,top:x},"div")},Ge)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5,b=a.coordsChar({left:0,top:x},"div");return b.ch<a.getLine(b.line).search(/\S/)?bs(a,y.head):b},Ge)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"codepoint")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection(" ")},insertSoftTab:function(a){for(var y=[],x=a.listSelections(),b=a.options.tabSize,z=0;z<x.length;z++){var ie=x[z].from(),le=ye(a.getLine(ie.line),ie.ch,b);y.push(Lt(b-le%b))}a.replaceSelections(y)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return _i(a,function(){for(var y=a.listSelections(),x=[],b=0;b<y.length;b++)if(y[b].empty()){var z=y[b].head,ie=Nt(a.doc,z.line).text;if(ie){if(z.ch==ie.length&&(z=new fe(z.line,z.ch-1)),z.ch>0)z=new fe(z.line,z.ch+1),a.replaceRange(ie.charAt(z.ch-1)+ie.charAt(z.ch-2),fe(z.line,z.ch-2),z,"+transpose");else if(z.line>a.doc.first){var le=Nt(a.doc,z.line-1).text;le&&(z=new fe(z.line,1),a.replaceRange(ie.charAt(0)+a.doc.lineSeparator()+le.charAt(le.length-1),fe(z.line-1,le.length-1),z,"+transpose"))}}x.push(new Hr(z,z))}a.setSelections(x)})},newlineAndIndent:function(a){return _i(a,function(){for(var y=a.listSelections(),x=y.length-1;x>=0;x--)a.replaceRange(a.doc.lineSeparator(),y[x].anchor,y[x].head,"+input");y=a.listSelections();for(var b=0;b<y.length;b++)a.indentLine(y[b].from().line,null,!0);No(a)})},openLine:function(a){return a.replaceSelection(`
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function ys(a,y){var x=Nt(a.doc,y),b=dn(x);return b!=x&&(y=Xe(b)),fl(!0,a,b,y,1)}function Ou(a,y){var x=Nt(a.doc,y),b=Gn(x);return b!=x&&(y=Xe(b)),fl(!0,a,x,y,-1)}function bs(a,y){var x=ys(a,y.line),b=Nt(a.doc,x.line),z=Ut(b,a.doc.direction);if(!z||z[0].level==0){var ie=Math.max(x.ch,b.text.search(/\S/)),le=y.line==x.line&&y.ch<=ie&&y.ch;return fe(x.line,le?0:ie,x.sticky)}return x}function $a(a,y,x){if(typeof y=="string"&&(y=ha[y],!y))return!1;a.display.input.ensurePolled();var b=a.display.shift,z=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),x&&(a.display.shift=!1),z=y(a)!=bt}finally{a.display.shift=b,a.state.suppressEdits=!1}return z}function ku(a,y,x){for(var b=0;b<a.state.keyMaps.length;b++){var z=Ho(y,a.state.keyMaps[b],x,a);if(z)return z}return a.options.extraKeys&&Ho(y,a.options.extraKeys,x,a)||Ho(y,a.options.keyMap,x,a)}var Du=new ce;function pa(a,y,x,b){var z=a.state.keySeq;if(z){if(ms(y))return"handled";if(/\'$/.test(y)?a.state.keySeq=null:Du.set(50,function(){a.state.keySeq==z&&(a.state.keySeq=null,a.display.input.reset())}),xs(a,z+" "+y,x,b))return!0}return xs(a,y,x,b)}function xs(a,y,x,b){var z=ku(a,y,b);return z=="multi"&&(a.state.keySeq=y),z=="handled"&&Vr(a,"keyHandled",a,y,x),(z=="handled"||z=="multi")&&(pt(x),Xa(a)),!!z}function Cs(a,y){var x=gs(y,!0);return x?y.shiftKey&&!a.state.keySeq?pa(a,"Shift-"+x,y,function(b){return $a(a,b,!0)})||pa(a,x,y,function(b){if(typeof b=="string"?/^go[A-Z]/.test(b):b.motion)return $a(a,b)}):pa(a,x,y,function(b){return $a(a,b)}):!1}function Au(a,y,x){return pa(a,"'"+x+"'",y,function(b){return $a(a,b,!0)})}var hl=null;function Ss(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&(y.curOp.focus=ze(),!Dt(y,a))){Ee&&Be<11&&a.keyCode==27&&(a.returnValue=!1);var x=a.keyCode;y.display.shift=x==16||a.shiftKey;var b=Cs(y,a);he&&(hl=b?x:null,!b&&x==88&&!fn&&(_e?a.metaKey:a.ctrlKey)&&y.replaceSelection("",null,"cut")),E&&!_e&&!b&&x==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),x==18&&!/\bCodeMirror-crosshair\b/.test(y.display.lineDiv.className)&&Mu(y)}}function Mu(a){var y=a.display.lineDiv;se(y,"CodeMirror-crosshair");function x(b){(b.keyCode==18||!b.altKey)&&(Fe(y,"CodeMirror-crosshair"),qt(document,"keyup",x),qt(document,"mouseover",x))}Ht(document,"keyup",x),Ht(document,"mouseover",x)}function ws(a){a.keyCode==16&&(this.doc.sel.shift=!1),Dt(this,a)}function Es(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&!(mi(y.display,a)||Dt(y,a)||a.ctrlKey&&!a.altKey||_e&&a.metaKey)){var x=a.keyCode,b=a.charCode;if(he&&x==hl){hl=null,pt(a);return}if(!(he&&(!a.which||a.which<10)&&Cs(y,a))){var z=String.fromCharCode(b==null?x:b);z!="\b"&&(Au(y,a,z)||y.display.input.onKeyPress(a))}}}var Tu=400,pl=function(a,y,x){this.time=a,this.pos=y,this.button=x};pl.prototype.compare=function(a,y,x){return this.time+Tu>a&&pe(y,this.pos)==0&&x==this.button};var ma,va;function Nu(a,y){var x=+new Date;return va&&va.compare(x,a,y)?(ma=va=null,"triple"):ma&&ma.compare(x,a,y)?(va=new pl(x,a,y),ma=null,"double"):(ma=new pl(x,a,y),va=null,"single")}function Bs(a){var y=this,x=y.display;if(!(Dt(y,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,mi(x,a)){De||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!ml(y,a)){var b=So(y,a),z=yt(a),ie=b?Nu(b,z):"single";window.focus(),z==1&&y.state.selectingText&&y.state.selectingText(a),!(b&&Lu(y,z,b,ie,a))&&(z==1?b?Ru(y,b,ie,a):ot(a)==x.scroller&&pt(a):z==2?(b&&Ta(y.doc,b),setTimeout(function(){return x.input.focus()},20)):z==3&&(it?y.display.input.onContextMenu(a):Il(y)))}}}function Lu(a,y,x,b,z){var ie="Click";return b=="double"?ie="Double"+ie:b=="triple"&&(ie="Triple"+ie),ie=(y==1?"Left":y==2?"Middle":"Right")+ie,pa(a,vs(ie,z),z,function(le){if(typeof le=="string"&&(le=ha[le]),!le)return!1;var de=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),de=le(a,x)!=bt}finally{a.state.suppressEdits=!1}return de})}function Fu(a,y,x){var b=a.getOption("configureMouse"),z=b?b(a,y,x):{};if(z.unit==null){var ie=rt?x.shiftKey&&x.metaKey:x.altKey;z.unit=ie?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(z.extend==null||a.doc.extend)&&(z.extend=a.doc.extend||x.shiftKey),z.addNew==null&&(z.addNew=_e?x.metaKey:x.ctrlKey),z.moveOnDrag==null&&(z.moveOnDrag=!(_e?x.altKey:x.ctrlKey)),z}function Ru(a,y,x,b){Ee?setTimeout(Ae(Bl,a),0):a.curOp.focus=ze();var z=Fu(a,x,b),ie=a.doc.sel,le;a.options.dragDrop&&Mt&&!a.isReadOnly()&&x=="single"&&(le=ie.contains(y))>-1&&(pe((le=ie.ranges[le]).from(),y)<0||y.xRel>0)&&(pe(le.to(),y)>0||y.xRel<0)?_u(a,b,y,z):$u(a,b,y,z)}function _u(a,y,x,b){var z=a.display,ie=!1,le=ci(a,function(Se){De&&(z.scroller.draggable=!1),a.state.draggingText=!1,qt(z.wrapper.ownerDocument,"mouseup",le),qt(z.wrapper.ownerDocument,"mousemove",de),qt(z.scroller,"dragstart",me),qt(z.scroller,"drop",le),ie||(pt(Se),b.addNew||Ta(a.doc,x,null,null,b.extend),De&&!Je||Ee&&Be==9?setTimeout(function(){z.wrapper.ownerDocument.body.focus({preventScroll:!0}),z.input.focus()},20):z.input.focus())}),de=function(Se){ie=ie||Math.abs(y.clientX-Se.clientX)+Math.abs(y.clientY-Se.clientY)>=10},me=function(){return ie=!0};De&&(z.scroller.draggable=!0),a.state.draggingText=le,le.copy=!b.moveOnDrag,z.scroller.dragDrop&&z.scroller.dragDrop(),Ht(z.wrapper.ownerDocument,"mouseup",le),Ht(z.wrapper.ownerDocument,"mousemove",de),Ht(z.scroller,"dragstart",me),Ht(z.scroller,"drop",le),Il(a),setTimeout(function(){return z.input.focus()},20)}function Is(a,y,x){if(x=="char")return new Hr(y,y);if(x=="word")return a.findWordAt(y);if(x=="line")return new Hr(fe(y.line,0),Re(a.doc,fe(y.line+1,0)));var b=x(a,y);return new Hr(b.from,b.to)}function $u(a,y,x,b){var z=a.display,ie=a.doc;pt(y);var le,de,me=ie.sel,Se=me.ranges;if(b.addNew&&!b.extend?(de=ie.sel.contains(x),de>-1?le=Se[de]:le=new Hr(x,x)):(le=ie.sel.primary(),de=ie.sel.primIndex),b.unit=="rectangle")b.addNew||(le=new Hr(x,x)),x=So(a,y,!0,!0),de=-1;else{var at=Is(a,x,b.unit);b.extend?le=sl(le,at.anchor,at.head,b.extend):le=at}b.addNew?de==-1?(de=Se.length,Ci(ie,qi(a,Se.concat([le]),de),{scroll:!1,origin:"*mouse"})):Se.length>1&&Se[de].empty()&&b.unit=="char"&&!b.extend?(Ci(ie,qi(a,Se.slice(0,de).concat(Se.slice(de+1)),0),{scroll:!1,origin:"*mouse"}),me=ie.sel):ul(ie,de,le,He):(de=0,Ci(ie,new ji([le],0),He),me=ie.sel);var vt=x;function Zt(tr){if(pe(vt,tr)!=0)if(vt=tr,b.unit=="rectangle"){for(var cr=[],Cr=a.options.tabSize,gr=ye(Nt(ie,x.line).text,x.ch,Cr),Dr=ye(Nt(ie,tr.line).text,tr.ch,Cr),Ur=Math.min(gr,Dr),fi=Math.max(gr,Dr),Yr=Math.min(x.line,tr.line),$i=Math.min(a.lastLine(),Math.max(x.line,tr.line));Yr<=$i;Yr++){var Di=Nt(ie,Yr).text,ii=Tt(Di,Ur,Cr);Ur==fi?cr.push(new Hr(fe(Yr,ii),fe(Yr,ii))):Di.length>ii&&cr.push(new Hr(fe(Yr,ii),fe(Yr,Tt(Di,fi,Cr))))}cr.length||cr.push(new Hr(x,x)),Ci(ie,qi(a,me.ranges.slice(0,de).concat(cr),de),{origin:"*mouse",scroll:!1}),a.scrollIntoView(tr)}else{var Ai=le,gi=Is(a,tr,b.unit),si=Ai.anchor,oi;pe(gi.anchor,si)>0?(oi=gi.head,si=Yt(Ai.from(),gi.anchor)):(oi=gi.anchor,si=rn(Ai.to(),gi.head));var Qr=me.ranges.slice(0);Qr[de]=zu(a,new Hr(Re(ie,si),oi)),Ci(ie,qi(a,Qr,de),He)}}var zt=z.wrapper.getBoundingClientRect(),hn=0;function Mn(tr){var cr=++hn,Cr=So(a,tr,!0,b.unit=="rectangle");if(Cr)if(pe(Cr,vt)!=0){a.curOp.focus=ze(),Zt(Cr);var gr=Pa(z,ie);(Cr.line>=gr.to||Cr.line<gr.from)&&setTimeout(ci(a,function(){hn==cr&&Mn(tr)}),150)}else{var Dr=tr.clientY<zt.top?-20:tr.clientY>zt.bottom?20:0;Dr&&setTimeout(ci(a,function(){hn==cr&&(z.scroller.scrollTop+=Dr,Mn(tr))}),50)}}function $n(tr){a.state.selectingText=!1,hn=1/0,tr&&(pt(tr),z.input.focus()),qt(z.wrapper.ownerDocument,"mousemove",er),qt(z.wrapper.ownerDocument,"mouseup",lr),ie.history.lastSelOrigin=null}var er=ci(a,function(tr){tr.buttons===0||!yt(tr)?$n(tr):Mn(tr)}),lr=ci(a,$n);a.state.selectingText=lr,Ht(z.wrapper.ownerDocument,"mousemove",er),Ht(z.wrapper.ownerDocument,"mouseup",lr)}function zu(a,y){var x=y.anchor,b=y.head,z=Nt(a.doc,x.line);if(pe(x,b)==0&&x.sticky==b.sticky)return y;var ie=Ut(z);if(!ie)return y;var le=Bt(ie,x.ch,x.sticky),de=ie[le];if(de.from!=x.ch&&de.to!=x.ch)return y;var me=le+(de.from==x.ch==(de.level!=1)?0:1);if(me==0||me==ie.length)return y;var Se;if(b.line!=x.line)Se=(b.line-x.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var at=Bt(ie,b.ch,b.sticky),vt=at-le||(b.ch-x.ch)*(de.level==1?-1:1);at==me-1||at==me?Se=vt<0:Se=vt>0}var Zt=ie[me+(Se?-1:0)],zt=Se==(Zt.level==1),hn=zt?Zt.from:Zt.to,Mn=zt?"after":"before";return x.ch==hn&&x.sticky==Mn?y:new Hr(new fe(x.line,hn,Mn),b)}function Ps(a,y,x,b){var z,ie;if(y.touches)z=y.touches[0].clientX,ie=y.touches[0].clientY;else try{z=y.clientX,ie=y.clientY}catch(Zt){return!1}if(z>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;b&&pt(y);var le=a.display,de=le.lineDiv.getBoundingClientRect();if(ie>de.bottom||!Vt(a,x))return jt(y);ie-=de.top-le.viewOffset;for(var me=0;me<a.display.gutterSpecs.length;++me){var Se=le.gutters.childNodes[me];if(Se&&Se.getBoundingClientRect().right>=z){var at=ut(a.doc,ie),vt=a.display.gutterSpecs[me];return sn(a,x,a,at,vt.className,y),jt(y)}}}function ml(a,y){return Ps(a,y,"gutterClick",!0)}function Os(a,y){mi(a.display,y)||Hu(a,y)||Dt(a,y,"contextmenu")||it||a.display.input.onContextMenu(y)}function Hu(a,y){return Vt(a,"gutterContextMenu")?Ps(a,y,"gutterContextMenu",!1):!1}function ks(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Co(a)}var Wo={toString:function(){return"CodeMirror.Init"}},Ds={},za={};function ju(a){var y=a.optionHandlers;function x(b,z,ie,le){a.defaults[b]=z,ie&&(y[b]=le?function(de,me,Se){Se!=Wo&&ie(de,me,Se)}:ie)}a.defineOption=x,a.Init=Wo,x("value","",function(b,z){return b.setValue(z)},!0),x("mode",null,function(b,z){b.doc.modeOption=z,ol(b)},!0),x("indentUnit",2,ol,!0),x("indentWithTabs",!1),x("smartIndent",!0),x("tabSize",4,function(b){ia(b),Co(b),Oi(b)},!0),x("lineSeparator",null,function(b,z){if(b.doc.lineSep=z,!!z){var ie=[],le=b.doc.first;b.doc.iter(function(me){for(var Se=0;;){var at=me.text.indexOf(z,Se);if(at==-1)break;Se=at+z.length,ie.push(fe(le,at))}le++});for(var de=ie.length-1;de>=0;de--)$o(b.doc,z,ie[de],fe(ie[de].line,ie[de].ch+z.length))}}),x("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(b,z,ie){b.state.specialChars=new RegExp(z.source+(z.test(" ")?"":"| "),"g"),ie!=Wo&&b.refresh()}),x("specialCharPlaceholder",Zr,function(b){return b.refresh()},!0),x("electricChars",!0),x("inputStyle",Te?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),x("spellcheck",!1,function(b,z){return b.getInputField().spellcheck=z},!0),x("autocorrect",!1,function(b,z){return b.getInputField().autocorrect=z},!0),x("autocapitalize",!1,function(b,z){return b.getInputField().autocapitalize=z},!0),x("rtlMoveVisually",!gt),x("wholeLineUpdateBefore",!0),x("theme","default",function(b){ks(b),ra(b)},!0),x("keyMap","default",function(b,z,ie){var le=_a(z),de=ie!=Wo&&_a(ie);de&&de.detach&&de.detach(b,le),le.attach&&le.attach(b,de||null)}),x("extraKeys",null),x("configureMouse",null),x("lineWrapping",!1,Zu,!0),x("gutters",[],function(b,z){b.display.gutterSpecs=rl(z,b.options.lineNumbers),ra(b)},!0),x("fixedGutter",!0,function(b,z){b.display.gutters.style.left=z?Ua(b.display)+"px":"0",b.refresh()},!0),x("coverGutterNextToScrollbar",!1,function(b){return Lo(b)},!0),x("scrollbarStyle","native",function(b){Ml(b),Lo(b),b.display.scrollbars.setScrollTop(b.doc.scrollTop),b.display.scrollbars.setScrollLeft(b.doc.scrollLeft)},!0),x("lineNumbers",!1,function(b,z){b.display.gutterSpecs=rl(b.options.gutters,z),ra(b)},!0),x("firstLineNumber",1,ra,!0),x("lineNumberFormatter",function(b){return b},ra,!0),x("showCursorWhenSelecting",!1,Jo,!0),x("resetSelectionOnContextMenu",!0),x("lineWiseCopyCut",!0),x("pasteLinesPerSelection",!0),x("selectionsMayTouch",!1),x("readOnly",!1,function(b,z){z=="nocursor"&&(To(b),b.display.input.blur()),b.display.input.readOnlyChanged(z)}),x("screenReaderLabel",null,function(b,z){z=z===""?null:z,b.display.input.screenReaderLabelChanged(z)}),x("disableInput",!1,function(b,z){z||b.display.input.reset()},!0),x("dragDrop",!0,Wu),x("allowDropFileTypes",null),x("cursorBlinkRate",530),x("cursorScrollMargin",0),x("cursorHeight",1,Jo,!0),x("singleCursorHeightPerLine",!0,Jo,!0),x("workTime",100),x("workDelay",100),x("flattenSpans",!0,ia,!0),x("addModeClass",!1,ia,!0),x("pollInterval",100),x("undoDepth",200,function(b,z){return b.doc.history.undoDepth=z}),x("historyEventDelay",1250),x("viewportMargin",10,function(b){return b.refresh()},!0),x("maxHighlightLength",1e4,ia,!0),x("moveInputWithCursor",!0,function(b,z){z||b.display.input.resetPosition()}),x("tabindex",null,function(b,z){return b.display.input.getField().tabIndex=z||""}),x("autofocus",null),x("direction","ltr",function(b,z){return b.doc.setDirection(z)},!0),x("phrases",null)}function Wu(a,y,x){var b=x&&x!=Wo;if(!y!=!b){var z=a.display.dragFunctions,ie=y?Ht:qt;ie(a.display.scroller,"dragstart",z.start),ie(a.display.scroller,"dragenter",z.enter),ie(a.display.scroller,"dragover",z.over),ie(a.display.scroller,"dragleave",z.leave),ie(a.display.scroller,"drop",z.drop)}}function Zu(a){a.options.lineWrapping?(se(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Fe(a.display.wrapper,"CodeMirror-wrap"),Br(a)),Ka(a),Oi(a),Co(a),setTimeout(function(){return Lo(a)},100)}function Kr(a,y){var x=this;if(!(this instanceof Kr))return new Kr(a,y);this.options=y=y?ct(y):{},ct(Ds,y,!1);var b=y.value;typeof b=="string"?b=new ki(b,y.mode,null,y.lineSeparator,y.direction):y.mode&&(b.modeOption=y.mode),this.doc=b;var z=new Kr.inputStyles[y.inputStyle](this),ie=this.display=new ru(a,b,z,y);ie.wrapper.CodeMirror=this,ks(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ml(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ce,keySeq:null,specialChars:null},y.autofocus&&!Te&&ie.input.focus(),Ee&&Be<11&&setTimeout(function(){return x.display.input.reset(!0)},20),Vu(this),Su(),Io(this),this.curOp.forceUpdate=!0,jl(this,b),y.autofocus&&!Te||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&Ya(x)},20):To(this);for(var le in za)za.hasOwnProperty(le)&&za[le](this,y[le],Wo);Ll(this),y.finishInit&&y.finishInit(this);for(var de=0;de<vl.length;++de)vl[de](this);Po(this),De&&y.lineWrapping&&getComputedStyle(ie.lineDiv).textRendering=="optimizelegibility"&&(ie.lineDiv.style.textRendering="auto")}Kr.defaults=Ds,Kr.optionHandlers=za;function Vu(a){var y=a.display;Ht(y.scroller,"mousedown",ci(a,Bs)),Ee&&Be<11?Ht(y.scroller,"dblclick",ci(a,function(me){if(!Dt(a,me)){var Se=So(a,me);if(!(!Se||ml(a,me)||mi(a.display,me))){pt(me);var at=a.findWordAt(Se);Ta(a.doc,at.anchor,at.head)}}})):Ht(y.scroller,"dblclick",function(me){return Dt(a,me)||pt(me)}),Ht(y.scroller,"contextmenu",function(me){return Os(a,me)}),Ht(y.input.getField(),"contextmenu",function(me){y.scroller.contains(me.target)||Os(a,me)});var x,b={end:0};function z(){y.activeTouch&&(x=setTimeout(function(){return y.activeTouch=null},1e3),b=y.activeTouch,b.end=+new Date)}function ie(me){if(me.touches.length!=1)return!1;var Se=me.touches[0];return Se.radiusX<=1&&Se.radiusY<=1}function le(me,Se){if(Se.left==null)return!0;var at=Se.left-me.left,vt=Se.top-me.top;return at*at+vt*vt>20*20}Ht(y.scroller,"touchstart",function(me){if(!Dt(a,me)&&!ie(me)&&!ml(a,me)){y.input.ensurePolled(),clearTimeout(x);var Se=+new Date;y.activeTouch={start:Se,moved:!1,prev:Se-b.end<=300?b:null},me.touches.length==1&&(y.activeTouch.left=me.touches[0].pageX,y.activeTouch.top=me.touches[0].pageY)}}),Ht(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),Ht(y.scroller,"touchend",function(me){var Se=y.activeTouch;if(Se&&!mi(y,me)&&Se.left!=null&&!Se.moved&&new Date-Se.start<300){var at=a.coordsChar(y.activeTouch,"page"),vt;!Se.prev||le(Se,Se.prev)?vt=new Hr(at,at):!Se.prev.prev||le(Se,Se.prev.prev)?vt=a.findWordAt(at):vt=new Hr(fe(at.line,0),Re(a.doc,fe(at.line+1,0))),a.setSelection(vt.anchor,vt.head),a.focus(),pt(me)}z()}),Ht(y.scroller,"touchcancel",z),Ht(y.scroller,"scroll",function(){y.scroller.clientHeight&&(qo(a,y.scroller.scrollTop),Eo(a,y.scroller.scrollLeft,!0),sn(a,"scroll",a))}),Ht(y.scroller,"mousewheel",function(me){return _l(a,me)}),Ht(y.scroller,"DOMMouseScroll",function(me){return _l(a,me)}),Ht(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(me){Dt(a,me)||Ne(me)},over:function(me){Dt(a,me)||(Cu(a,me),Ne(me))},start:function(me){return xu(a,me)},drop:ci(a,bu),leave:function(me){Dt(a,me)||fs(a)}};var de=y.input.getField();Ht(de,"keyup",function(me){return ws.call(a,me)}),Ht(de,"keydown",ci(a,Ss)),Ht(de,"keypress",ci(a,Es)),Ht(de,"focus",function(me){return Ya(a,me)}),Ht(de,"blur",function(me){return To(a,me)})}var vl=[];Kr.defineInitHook=function(a){return vl.push(a)};function ga(a,y,x,b){var z=a.doc,ie;x==null&&(x="add"),x=="smart"&&(z.mode.indent?ie=Xn(a,y).state:x="prev");var le=a.options.tabSize,de=Nt(z,y),me=ye(de.text,null,le);de.stateAfter&&(de.stateAfter=null);var Se=de.text.match(/^\s*/)[0],at;if(!b&&!/\S/.test(de.text))at=0,x="not";else if(x=="smart"&&(at=z.mode.indent(ie,de.text.slice(Se.length),de.text),at==bt||at>150)){if(!b)return;x="prev"}x=="prev"?y>z.first?at=ye(Nt(z,y-1).text,null,le):at=0:x=="add"?at=me+a.options.indentUnit:x=="subtract"?at=me-a.options.indentUnit:typeof x=="number"&&(at=me+x),at=Math.max(0,at);var vt="",Zt=0;if(a.options.indentWithTabs)for(var zt=Math.floor(at/le);zt;--zt)Zt+=le,vt+=" ";if(Zt<at&&(vt+=Lt(at-Zt)),vt!=Se)return $o(z,vt,fe(y,0),fe(y,Se.length),"+input"),de.stateAfter=null,!0;for(var hn=0;hn<z.sel.ranges.length;hn++){var Mn=z.sel.ranges[hn];if(Mn.head.line==y&&Mn.head.ch<Se.length){var $n=fe(y,Se.length);ul(z,hn,new Hr($n,$n));break}}}var eo=null;function Ha(a){eo=a}function gl(a,y,x,b,z){var ie=a.doc;a.display.shift=!1,b||(b=ie.sel);var le=+new Date-200,de=z=="paste"||a.state.pasteIncoming>le,me=un(y),Se=null;if(de&&b.ranges.length>1)if(eo&&eo.text.join(`
`)==y){if(b.ranges.length%eo.text.length==0){Se=[];for(var at=0;at<eo.text.length;at++)Se.push(ie.splitLines(eo.text[at]))}}else me.length==b.ranges.length&&a.options.pasteLinesPerSelection&&(Se=At(me,function(er){return[er]}));for(var vt=a.curOp.updateInput,Zt=b.ranges.length-1;Zt>=0;Zt--){var zt=b.ranges[Zt],hn=zt.from(),Mn=zt.to();zt.empty()&&(x&&x>0?hn=fe(hn.line,hn.ch-x):a.state.overwrite&&!de?Mn=fe(Mn.line,Math.min(Nt(ie,Mn.line).text.length,Mn.ch+$e(me).length)):de&&eo&&eo.lineWise&&eo.text.join(`
`)==me.join(`
`)&&(hn=Mn=fe(hn.line,0)));var $n={from:hn,to:Mn,text:Se?Se[Zt%Se.length]:me,origin:z||(de?"paste":a.state.cutIncoming>le?"cut":"+input")};_o(a.doc,$n),Vr(a,"inputRead",a,$n)}y&&!de&&Ms(a,y),No(a),a.curOp.updateInput<2&&(a.curOp.updateInput=vt),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function As(a,y){var x=a.clipboardData&&a.clipboardData.getData("Text");if(x)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&_i(y,function(){return gl(y,x,0,null,"paste")}),!0}function Ms(a,y){if(!(!a.options.electricChars||!a.options.smartIndent))for(var x=a.doc.sel,b=x.ranges.length-1;b>=0;b--){var z=x.ranges[b];if(!(z.head.ch>100||b&&x.ranges[b-1].head.line==z.head.line)){var ie=a.getModeAt(z.head),le=!1;if(ie.electricChars){for(var de=0;de<ie.electricChars.length;de++)if(y.indexOf(ie.electricChars.charAt(de))>-1){le=ga(a,z.head.line,"smart");break}}else ie.electricInput&&ie.electricInput.test(Nt(a.doc,z.head.line).text.slice(0,z.head.ch))&&(le=ga(a,z.head.line,"smart"));le&&Vr(a,"electricInput",a,z.head.line)}}}function Ts(a){for(var y=[],x=[],b=0;b<a.doc.sel.ranges.length;b++){var z=a.doc.sel.ranges[b].head.line,ie={anchor:fe(z,0),head:fe(z+1,0)};x.push(ie),y.push(a.getRange(ie.anchor,ie.head))}return{text:y,ranges:x}}function Ns(a,y,x,b){a.setAttribute("autocorrect",x?"":"off"),a.setAttribute("autocapitalize",b?"":"off"),a.setAttribute("spellcheck",!!y)}function Ls(){var a=et("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),y=et("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return De?a.style.width="1000px":a.setAttribute("wrap","off"),Ze&&(a.style.border="1px solid black"),Ns(a),y}function Gu(a){var y=a.optionHandlers,x=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(b,z){var ie=this.options,le=ie[b];ie[b]==z&&b!="mode"||(ie[b]=z,y.hasOwnProperty(b)&&ci(this,y[b])(this,z,le),sn(this,"optionChange",this,b))},getOption:function(b){return this.options[b]},getDoc:function(){return this.doc},addKeyMap:function(b,z){this.state.keyMaps[z?"push":"unshift"](_a(b))},removeKeyMap:function(b){for(var z=this.state.keyMaps,ie=0;ie<z.length;++ie)if(z[ie]==b||z[ie].name==b)return z.splice(ie,1),!0},addOverlay:Ei(function(b,z){var ie=b.token?b:a.getMode(this.options,b);if(ie.startState)throw new Error("Overlays may not be stateful.");st(this.state.overlays,{mode:ie,modeSpec:b,opaque:z&&z.opaque,priority:z&&z.priority||0},function(le){return le.priority}),this.state.modeGen++,Oi(this)}),removeOverlay:Ei(function(b){for(var z=this.state.overlays,ie=0;ie<z.length;++ie){var le=z[ie].modeSpec;if(le==b||typeof b=="string"&&le.name==b){z.splice(ie,1),this.state.modeGen++,Oi(this);return}}}),indentLine:Ei(function(b,z,ie){typeof z!="string"&&typeof z!="number"&&(z==null?z=this.options.smartIndent?"smart":"prev":z=z?"add":"subtract"),ke(this.doc,b)&&ga(this,b,z,ie)}),indentSelection:Ei(function(b){for(var z=this.doc.sel.ranges,ie=-1,le=0;le<z.length;le++){var de=z[le];if(de.empty())de.head.line>ie&&(ga(this,de.head.line,b,!0),ie=de.head.line,le==this.doc.sel.primIndex&&No(this));else{var me=de.from(),Se=de.to(),at=Math.max(ie,me.line);ie=Math.min(this.lastLine(),Se.line-(Se.ch?0:1))+1;for(var vt=at;vt<ie;++vt)ga(this,vt,b);var Zt=this.doc.sel.ranges;me.ch==0&&z.length==Zt.length&&Zt[le].from().ch>0&&ul(this.doc,le,new Hr(me,Zt[le].to()),ge)}}}),getTokenAt:function(b,z){return Zn(this,b,z)},getLineTokens:function(b,z){return Zn(this,fe(b),z,!0)},getTokenTypeAt:function(b){b=Re(this.doc,b);var z=Fn(this,Nt(this.doc,b.line)),ie=0,le=(z.length-1)/2,de=b.ch,me;if(de==0)me=z[2];else for(;;){var Se=ie+le>>1;if((Se?z[Se*2-1]:0)>=de)le=Se;else if(z[Se*2+1]<de)ie=Se+1;else{me=z[Se*2+2];break}}var at=me?me.indexOf("overlay "):-1;return at<0?me:at==0?null:me.slice(0,at-1)},getModeAt:function(b){var z=this.doc.mode;return z.innerMode?a.innerMode(z,this.getTokenAt(b).state).mode:z},getHelper:function(b,z){return this.getHelpers(b,z)[0]},getHelpers:function(b,z){var ie=[];if(!x.hasOwnProperty(z))return ie;var le=x[z],de=this.getModeAt(b);if(typeof de[z]=="string")le[de[z]]&&ie.push(le[de[z]]);else if(de[z])for(var me=0;me<de[z].length;me++){var Se=le[de[z][me]];Se&&ie.push(Se)}else de.helperType&&le[de.helperType]?ie.push(le[de.helperType]):le[de.name]&&ie.push(le[de.name]);for(var at=0;at<le._global.length;at++){var vt=le._global[at];vt.pred(de,this)&&Ue(ie,vt.val)==-1&&ie.push(vt.val)}return ie},getStateAfter:function(b,z){var ie=this.doc;return b=Ct(ie,b==null?ie.first+ie.size-1:b),Xn(this,b+1,z).state},cursorCoords:function(b,z){var ie,le=this.doc.sel.primary();return b==null?ie=le.head:typeof b=="object"?ie=Re(this.doc,b):ie=b?le.from():le.to(),Pi(this,ie,z||"page")},charCoords:function(b,z){return Mo(this,Re(this.doc,b),z||"page")},coordsChar:function(b,z){return b=wa(this,b,z||"page"),vi(this,b.left,b.top)},lineAtHeight:function(b,z){return b=wa(this,{top:b,left:0},z||"page").top,ut(this.doc,b+this.display.viewOffset)},heightAtLine:function(b,z,ie){var le=!1,de;if(typeof b=="number"){var me=this.doc.first+this.doc.size-1;b<this.doc.first?b=this.doc.first:b>me&&(b=me,le=!0),de=Nt(this.doc,b)}else de=b;return Ao(this,de,{top:0,left:0},z||"page",ie||le).top+(le?this.doc.height-vr(de):0)},defaultTextHeight:function(){return Ri(this.display)},defaultCharWidth:function(){return Qi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(b,z,ie,le,de){var me=this.display;b=Pi(this,Re(this.doc,b));var Se=b.bottom,at=b.left;if(z.style.position="absolute",z.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(z),me.sizer.appendChild(z),le=="over")Se=b.top;else if(le=="above"||le=="near"){var vt=Math.max(me.wrapper.clientHeight,this.doc.height),Zt=Math.max(me.sizer.clientWidth,me.lineSpace.clientWidth);(le=="above"||b.bottom+z.offsetHeight>vt)&&b.top>z.offsetHeight?Se=b.top-z.offsetHeight:b.bottom+z.offsetHeight<=vt&&(Se=b.bottom),at+z.offsetWidth>Zt&&(at=Zt-z.offsetWidth)}z.style.top=Se+"px",z.style.left=z.style.right="",de=="right"?(at=me.sizer.clientWidth-z.offsetWidth,z.style.right="0px"):(de=="left"?at=0:de=="middle"&&(at=(me.sizer.clientWidth-z.offsetWidth)/2),z.style.left=at+"px"),ie&&Ws(this,{left:at,top:Se,right:at+z.offsetWidth,bottom:Se+z.offsetHeight})},triggerOnKeyDown:Ei(Ss),triggerOnKeyPress:Ei(Es),triggerOnKeyUp:ws,triggerOnMouseDown:Ei(Bs),execCommand:function(b){if(ha.hasOwnProperty(b))return ha[b].call(null,this)},triggerElectric:Ei(function(b){Ms(this,b)}),findPosH:function(b,z,ie,le){var de=1;z<0&&(de=-1,z=-z);for(var me=Re(this.doc,b),Se=0;Se<z&&(me=yl(this.doc,me,de,ie,le),!me.hitSide);++Se);return me},moveH:Ei(function(b,z){var ie=this;this.extendSelectionsBy(function(le){return ie.display.shift||ie.doc.extend||le.empty()?yl(ie.doc,le.head,b,z,ie.options.rtlMoveVisually):b<0?le.from():le.to()},Ge)}),deleteH:Ei(function(b,z){var ie=this.doc.sel,le=this.doc;ie.somethingSelected()?le.replaceSelection("",null,"+delete"):jo(this,function(de){var me=yl(le,de.head,b,z,!1);return b<0?{from:me,to:de.head}:{from:de.head,to:me}})}),findPosV:function(b,z,ie,le){var de=1,me=le;z<0&&(de=-1,z=-z);for(var Se=Re(this.doc,b),at=0;at<z;++at){var vt=Pi(this,Se,"div");if(me==null?me=vt.left:vt.left=me,Se=Fs(this,vt,de,ie),Se.hitSide)break}return Se},moveV:Ei(function(b,z){var ie=this,le=this.doc,de=[],me=!this.display.shift&&!le.extend&&le.sel.somethingSelected();if(le.extendSelectionsBy(function(at){if(me)return b<0?at.from():at.to();var vt=Pi(ie,at.head,"div");at.goalColumn!=null&&(vt.left=at.goalColumn),de.push(vt.left);var Zt=Fs(ie,vt,b,z);return z=="page"&&at==le.sel.primary()&&Qa(ie,Mo(ie,Zt,"div").top-vt.top),Zt},Ge),de.length)for(var Se=0;Se<le.sel.ranges.length;Se++)le.sel.ranges[Se].goalColumn=de[Se]}),findWordAt:function(b){var z=this.doc,ie=Nt(z,b.line).text,le=b.ch,de=b.ch;if(ie){var me=this.getHelper(b,"wordChars");(b.sticky=="before"||de==ie.length)&&le?--le:++de;for(var Se=ie.charAt(le),at=ue(Se,me)?function(vt){return ue(vt,me)}:/\s/.test(Se)?function(vt){return/\s/.test(vt)}:function(vt){return!/\s/.test(vt)&&!ue(vt)};le>0&&at(ie.charAt(le-1));)--le;for(;de<ie.length&&at(ie.charAt(de));)++de}return new Hr(fe(b.line,le),fe(b.line,de))},toggleOverwrite:function(b){b!=null&&b==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?se(this.display.cursorDiv,"CodeMirror-overwrite"):Fe(this.display.cursorDiv,"CodeMirror-overwrite"),sn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ze()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ei(function(b,z){Qo(this,b,z)}),getScrollInfo:function(){var b=this.display.scroller;return{left:b.scrollLeft,top:b.scrollTop,height:b.scrollHeight-Li(this)-this.display.barHeight,width:b.scrollWidth-Li(this)-this.display.barWidth,clientHeight:ao(this),clientWidth:ro(this)}},scrollIntoView:Ei(function(b,z){b==null?(b={from:this.doc.sel.primary().head,to:null},z==null&&(z=this.options.cursorScrollMargin)):typeof b=="number"?b={from:fe(b,0),to:null}:b.from==null&&(b={from:b,to:null}),b.to||(b.to=b.from),b.margin=z||0,b.from.line!=null?Zs(this,b):Ol(this,b.from,b.to,b.margin)}),setSize:Ei(function(b,z){var ie=this,le=function(me){return typeof me=="number"||/^\d+$/.test(String(me))?me+"px":me};b!=null&&(this.display.wrapper.style.width=le(b)),z!=null&&(this.display.wrapper.style.height=le(z)),this.options.lineWrapping&&Ko(this);var de=this.display.viewFrom;this.doc.iter(de,this.display.viewTo,function(me){if(me.widgets){for(var Se=0;Se<me.widgets.length;Se++)if(me.widgets[Se].noHScroll){ho(ie,de,"widget");break}}++de}),this.curOp.forceUpdate=!0,sn(this,"refresh",this)}),operation:function(b){return _i(this,b)},startOperation:function(){return Io(this)},endOperation:function(){return Po(this)},refresh:Ei(function(){var b=this.display.cachedTextHeight;Oi(this),this.curOp.forceUpdate=!0,Co(this),Qo(this,this.doc.scrollLeft,this.doc.scrollTop),tl(this.display),(b==null||Math.abs(b-Ri(this.display))>.5||this.options.lineWrapping)&&Ka(this),sn(this,"refresh",this)}),swapDoc:Ei(function(b){var z=this.doc;return z.cm=null,this.state.selectingText&&this.state.selectingText(),jl(this,b),Co(this),this.display.input.reset(),Qo(this,b.scrollLeft,b.scrollTop),this.curOp.forceScroll=!0,Vr(this,"swapDoc",this,z),z}),phrase:function(b){var z=this.options.phrases;return z&&Object.prototype.hasOwnProperty.call(z,b)?z[b]:b},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},je(a),a.registerHelper=function(b,z,ie){x.hasOwnProperty(b)||(x[b]=a[b]={_global:[]}),x[b][z]=ie},a.registerGlobalHelper=function(b,z,ie,le){a.registerHelper(b,z,le),x[b]._global.push({pred:ie,val:le})}}function yl(a,y,x,b,z){var ie=y,le=x,de=Nt(a,y.line),me=z&&a.direction=="rtl"?-x:x;function Se(){var lr=y.line+me;return lr<a.first||lr>=a.first+a.size?!1:(y=new fe(lr,y.ch,y.sticky),de=Nt(a,lr))}function at(lr){var tr;if(b=="codepoint"){var cr=de.text.charCodeAt(y.ch+(b>0?0:-1));isNaN(cr)?tr=null:tr=new fe(y.line,Math.max(0,Math.min(de.text.length,y.ch+x*(cr>=55296&&cr<56320?2:1))),-x)}else z?tr=Pu(a.cm,de,y,x):tr=dl(de,y,x);if(tr==null)if(!lr&&Se())y=fl(z,a.cm,de,y.line,me);else return!1;else y=tr;return!0}if(b=="char"||b=="codepoint")at();else if(b=="column")at(!0);else if(b=="word"||b=="group")for(var vt=null,Zt=b=="group",zt=a.cm&&a.cm.getHelper(y,"wordChars"),hn=!0;!(x<0&&!at(!hn));hn=!1){var Mn=de.text.charAt(y.ch)||`
`,$n=ue(Mn,zt)?"w":Zt&&Mn==`
`?"n":!Zt||/\s/.test(Mn)?null:"p";if(Zt&&!hn&&!$n&&($n="s"),vt&&vt!=$n){x<0&&(x=1,at(),y.sticky="after");break}if($n&&(vt=$n),x>0&&!at(!hn))break}var er=La(a,y,ie,le,!0);return Ve(ie,er)&&(er.hitSide=!0),er}function Fs(a,y,x,b){var z=a.doc,ie=y.left,le;if(b=="page"){var de=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),me=Math.max(de-.5*Ri(a.display),3);le=(x>0?y.bottom:y.top)+x*me}else b=="line"&&(le=x>0?y.bottom+3:y.top-3);for(var Se;Se=vi(a,ie,le),!!Se.outside;){if(x<0?le<=0:le>=z.height){Se.hitSide=!0;break}le+=x*5}return Se}var Wr=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ce,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Wr.prototype.init=function(a){var y=this,x=this,b=x.cm,z=x.div=a.lineDiv;Ns(z,b.options.spellcheck,b.options.autocorrect,b.options.autocapitalize);function ie(de){for(var me=de.target;me;me=me.parentNode){if(me==z)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(me.className))break}return!1}Ht(z,"paste",function(de){!ie(de)||Dt(b,de)||As(de,b)||Be<=11&&setTimeout(ci(b,function(){return y.updateFromDOM()}),20)}),Ht(z,"compositionstart",function(de){y.composing={data:de.data,done:!1}}),Ht(z,"compositionupdate",function(de){y.composing||(y.composing={data:de.data,done:!1})}),Ht(z,"compositionend",function(de){y.composing&&(de.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),Ht(z,"touchstart",function(){return x.forceCompositionEnd()}),Ht(z,"input",function(){y.composing||y.readFromDOMSoon()});function le(de){if(!(!ie(de)||Dt(b,de))){if(b.somethingSelected())Ha({lineWise:!1,text:b.getSelections()}),de.type=="cut"&&b.replaceSelection("",null,"cut");else if(b.options.lineWiseCopyCut){var me=Ts(b);Ha({lineWise:!0,text:me.text}),de.type=="cut"&&b.operation(function(){b.setSelections(me.ranges,0,ge),b.replaceSelection("",null,"cut")})}else return;if(de.clipboardData){de.clipboardData.clearData();var Se=eo.text.join(`
`);if(de.clipboardData.setData("Text",Se),de.clipboardData.getData("Text")==Se){de.preventDefault();return}}var at=Ls(),vt=at.firstChild;b.display.lineSpace.insertBefore(at,b.display.lineSpace.firstChild),vt.value=eo.text.join(`
`);var Zt=document.activeElement;Le(vt),setTimeout(function(){b.display.lineSpace.removeChild(at),Zt.focus(),Zt==z&&x.showPrimarySelection()},50)}}Ht(z,"copy",le),Ht(z,"cut",le)},Wr.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Wr.prototype.prepareSelection=function(){var a=wl(this.cm,!1);return a.focus=document.activeElement==this.div,a},Wr.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Wr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Wr.prototype.showPrimarySelection=function(){var a=this.getSelection(),y=this.cm,x=y.doc.sel.primary(),b=x.from(),z=x.to();if(y.display.viewTo==y.display.viewFrom||b.line>=y.display.viewTo||z.line<y.display.viewFrom){a.removeAllRanges();return}var ie=ja(y,a.anchorNode,a.anchorOffset),le=ja(y,a.focusNode,a.focusOffset);if(!(ie&&!ie.bad&&le&&!le.bad&&pe(Yt(ie,le),b)==0&&pe(rn(ie,le),z)==0)){var de=y.display.view,me=b.line>=y.display.viewFrom&&Rs(y,b)||{node:de[0].measure.map[2],offset:0},Se=z.line<y.display.viewTo&&Rs(y,z);if(!Se){var at=de[de.length-1].measure,vt=at.maps?at.maps[at.maps.length-1]:at.map;Se={node:vt[vt.length-1],offset:vt[vt.length-2]-vt[vt.length-3]}}if(!me||!Se){a.removeAllRanges();return}var Zt=a.rangeCount&&a.getRangeAt(0),zt;try{zt=Me(me.node,me.offset,Se.offset,Se.node)}catch(hn){}zt&&(!E&&y.state.focused?(a.collapse(me.node,me.offset),zt.collapsed||(a.removeAllRanges(),a.addRange(zt))):(a.removeAllRanges(),a.addRange(zt)),Zt&&a.anchorNode==null?a.addRange(Zt):E&&this.startGracePeriod()),this.rememberSelection()}},Wr.prototype.startGracePeriod=function(){var a=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){a.gracePeriod=!1,a.selectionChanged()&&a.cm.operation(function(){return a.cm.curOp.selectionChanged=!0})},20)},Wr.prototype.showMultipleSelections=function(a){lt(this.cm.display.cursorDiv,a.cursors),lt(this.cm.display.selectionDiv,a.selection)},Wr.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},Wr.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var y=a.getRangeAt(0).commonAncestorContainer;return Ke(this.div,y)},Wr.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Wr.prototype.blur=function(){this.div.blur()},Wr.prototype.getField=function(){return this.div},Wr.prototype.supportsTouch=function(){return!0},Wr.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():_i(this.cm,function(){return a.cm.curOp.selectionChanged=!0});function y(){a.cm.state.focused&&(a.pollSelection(),a.polling.set(a.cm.options.pollInterval,y))}this.polling.set(this.cm.options.pollInterval,y)},Wr.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},Wr.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),y=this.cm;if(Ce&&Ie&&this.cm.display.gutterSpecs.length&&Uu(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var x=ja(y,a.anchorNode,a.anchorOffset),b=ja(y,a.focusNode,a.focusOffset);x&&b&&_i(y,function(){Ci(y.doc,mo(x,b),ge),(x.bad||b.bad)&&(y.curOp.selectionChanged=!0)})}}},Wr.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,y=a.display,x=a.doc.sel.primary(),b=x.from(),z=x.to();if(b.ch==0&&b.line>a.firstLine()&&(b=fe(b.line-1,Nt(a.doc,b.line-1).length)),z.ch==Nt(a.doc,z.line).text.length&&z.line<a.lastLine()&&(z=fe(z.line+1,0)),b.line<y.viewFrom||z.line>y.viewTo-1)return!1;var ie,le,de;b.line==y.viewFrom||(ie=wo(a,b.line))==0?(le=Xe(y.view[0].line),de=y.view[0].node):(le=Xe(y.view[ie].line),de=y.view[ie-1].node.nextSibling);var me=wo(a,z.line),Se,at;if(me==y.view.length-1?(Se=y.viewTo-1,at=y.lineDiv.lastChild):(Se=Xe(y.view[me+1].line)-1,at=y.view[me+1].node.previousSibling),!de)return!1;for(var vt=a.doc.splitLines(Ku(a,de,at,le,Se)),Zt=Qt(a.doc,fe(le,0),fe(Se,Nt(a.doc,Se).text.length));vt.length>1&&Zt.length>1;)if($e(vt)==$e(Zt))vt.pop(),Zt.pop(),Se--;else if(vt[0]==Zt[0])vt.shift(),Zt.shift(),le++;else break;for(var zt=0,hn=0,Mn=vt[0],$n=Zt[0],er=Math.min(Mn.length,$n.length);zt<er&&Mn.charCodeAt(zt)==$n.charCodeAt(zt);)++zt;for(var lr=$e(vt),tr=$e(Zt),cr=Math.min(lr.length-(vt.length==1?zt:0),tr.length-(Zt.length==1?zt:0));hn<cr&&lr.charCodeAt(lr.length-hn-1)==tr.charCodeAt(tr.length-hn-1);)++hn;if(vt.length==1&&Zt.length==1&&le==b.line)for(;zt&&zt>b.ch&&lr.charCodeAt(lr.length-hn-1)==tr.charCodeAt(tr.length-hn-1);)zt--,hn++;vt[vt.length-1]=lr.slice(0,lr.length-hn).replace(/^\u200b+/,""),vt[0]=vt[0].slice(zt).replace(/\u200b+$/,"");var Cr=fe(le,zt),gr=fe(Se,Zt.length?$e(Zt).length-hn:0);if(vt.length>1||vt[0]||pe(Cr,gr))return $o(a.doc,vt,Cr,gr,"+input"),!0},Wr.prototype.ensurePolled=function(){this.forceCompositionEnd()},Wr.prototype.reset=function(){this.forceCompositionEnd()},Wr.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Wr.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},Wr.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&_i(this.cm,function(){return Oi(a.cm)})},Wr.prototype.setUneditable=function(a){a.contentEditable="false"},Wr.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||ci(this.cm,gl)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},Wr.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},Wr.prototype.onContextMenu=function(){},Wr.prototype.resetPosition=function(){},Wr.prototype.needsContentAttribute=!0;function Rs(a,y){var x=io(a,y.line);if(!x||x.hidden)return null;var b=Nt(a.doc,y.line),z=Do(x,b,y.line),ie=Ut(b,a.doc.direction),le="left";if(ie){var de=Bt(ie,y.ch);le=de%2?"right":"left"}var me=xa(z.map,y.ch,le);return me.offset=me.collapse=="right"?me.end:me.start,me}function Uu(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function Zo(a,y){return y&&(a.bad=!0),a}function Ku(a,y,x,b,z){var ie="",le=!1,de=a.doc.lineSeparator(),me=!1;function Se(zt){return function(hn){return hn.id==zt}}function at(){le&&(ie+=de,me&&(ie+=de),le=me=!1)}function vt(zt){zt&&(at(),ie+=zt)}function Zt(zt){if(zt.nodeType==1){var hn=zt.getAttribute("cm-text");if(hn){vt(hn);return}var Mn=zt.getAttribute("cm-marker"),$n;if(Mn){var er=a.findMarks(fe(b,0),fe(z+1,0),Se(+Mn));er.length&&($n=er[0].find(0))&&vt(Qt(a.doc,$n.from,$n.to).join(de));return}if(zt.getAttribute("contenteditable")=="false")return;var lr=/^(pre|div|p|li|table|br)$/i.test(zt.nodeName);if(!/^br$/i.test(zt.nodeName)&&zt.textContent.length==0)return;lr&&at();for(var tr=0;tr<zt.childNodes.length;tr++)Zt(zt.childNodes[tr]);/^(pre|p)$/i.test(zt.nodeName)&&(me=!0),lr&&(le=!0)}else zt.nodeType==3&&vt(zt.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Zt(y),y!=x;)y=y.nextSibling,me=!1;return ie}function ja(a,y,x){var b;if(y==a.display.lineDiv){if(b=a.display.lineDiv.childNodes[x],!b)return Zo(a.clipPos(fe(a.display.viewTo-1)),!0);y=null,x=0}else for(b=y;;b=b.parentNode){if(!b||b==a.display.lineDiv)return null;if(b.parentNode&&b.parentNode==a.display.lineDiv)break}for(var z=0;z<a.display.view.length;z++){var ie=a.display.view[z];if(ie.node==b)return Xu(ie,y,x)}}function Xu(a,y,x){var b=a.text.firstChild,z=!1;if(!y||!Ke(b,y))return Zo(fe(Xe(a.line),0),!0);if(y==b&&(z=!0,y=b.childNodes[x],x=0,!y)){var ie=a.rest?$e(a.rest):a.line;return Zo(fe(Xe(ie),ie.text.length),z)}var le=y.nodeType==3?y:null,de=y;for(!le&&y.childNodes.length==1&&y.firstChild.nodeType==3&&(le=y.firstChild,x&&(x=le.nodeValue.length));de.parentNode!=b;)de=de.parentNode;var me=a.measure,Se=me.maps;function at($n,er,lr){for(var tr=-1;tr<(Se?Se.length:0);tr++)for(var cr=tr<0?me.map:Se[tr],Cr=0;Cr<cr.length;Cr+=3){var gr=cr[Cr+2];if(gr==$n||gr==er){var Dr=Xe(tr<0?a.line:a.rest[tr]),Ur=cr[Cr]+lr;return(lr<0||gr!=$n)&&(Ur=cr[Cr+(lr?1:0)]),fe(Dr,Ur)}}}var vt=at(le,de,x);if(vt)return Zo(vt,z);for(var Zt=de.nextSibling,zt=le?le.nodeValue.length-x:0;Zt;Zt=Zt.nextSibling){if(vt=at(Zt,Zt.firstChild,0),vt)return Zo(fe(vt.line,vt.ch-zt),z);zt+=Zt.textContent.length}for(var hn=de.previousSibling,Mn=x;hn;hn=hn.previousSibling){if(vt=at(hn,hn.firstChild,-1),vt)return Zo(fe(vt.line,vt.ch+Mn),z);Mn+=hn.textContent.length}}var ni=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new ce,this.hasSelection=!1,this.composing=null};ni.prototype.init=function(a){var y=this,x=this,b=this.cm;this.createField(a);var z=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),Ze&&(z.style.width="0px"),Ht(z,"input",function(){Ee&&Be>=9&&y.hasSelection&&(y.hasSelection=null),x.poll()}),Ht(z,"paste",function(le){Dt(b,le)||As(le,b)||(b.state.pasteIncoming=+new Date,x.fastPoll())});function ie(le){if(!Dt(b,le)){if(b.somethingSelected())Ha({lineWise:!1,text:b.getSelections()});else if(b.options.lineWiseCopyCut){var de=Ts(b);Ha({lineWise:!0,text:de.text}),le.type=="cut"?b.setSelections(de.ranges,null,ge):(x.prevInput="",z.value=de.text.join(`
`),Le(z))}else return;le.type=="cut"&&(b.state.cutIncoming=+new Date)}}Ht(z,"cut",ie),Ht(z,"copy",ie),Ht(a.scroller,"paste",function(le){if(!(mi(a,le)||Dt(b,le))){if(!z.dispatchEvent){b.state.pasteIncoming=+new Date,x.focus();return}var de=new Event("paste");de.clipboardData=le.clipboardData,z.dispatchEvent(de)}}),Ht(a.lineSpace,"selectstart",function(le){mi(a,le)||pt(le)}),Ht(z,"compositionstart",function(){var le=b.getCursor("from");x.composing&&x.composing.range.clear(),x.composing={start:le,range:b.markText(le,b.getCursor("to"),{className:"CodeMirror-composing"})}}),Ht(z,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},ni.prototype.createField=function(a){this.wrapper=Ls(),this.textarea=this.wrapper.firstChild},ni.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},ni.prototype.prepareSelection=function(){var a=this.cm,y=a.display,x=a.doc,b=wl(a);if(a.options.moveInputWithCursor){var z=Pi(a,x.sel.primary().head,"div"),ie=y.wrapper.getBoundingClientRect(),le=y.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,z.top+le.top-ie.top)),b.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,z.left+le.left-ie.left))}return b},ni.prototype.showSelection=function(a){var y=this.cm,x=y.display;lt(x.cursorDiv,a.cursors),lt(x.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},ni.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var y=this.cm;if(y.somethingSelected()){this.prevInput="";var x=y.getSelection();this.textarea.value=x,y.state.focused&&Le(this.textarea),Ee&&Be>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",Ee&&Be>=9&&(this.hasSelection=null))}},ni.prototype.getField=function(){return this.textarea},ni.prototype.supportsTouch=function(){return!1},ni.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Te||ze()!=this.textarea))try{this.textarea.focus()}catch(a){}},ni.prototype.blur=function(){this.textarea.blur()},ni.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ni.prototype.receivedFocus=function(){this.slowPoll()},ni.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},ni.prototype.fastPoll=function(){var a=!1,y=this;y.pollingFast=!0;function x(){var b=y.poll();!b&&!a?(a=!0,y.polling.set(60,x)):(y.pollingFast=!1,y.slowPoll())}y.polling.set(20,x)},ni.prototype.poll=function(){var a=this,y=this.cm,x=this.textarea,b=this.prevInput;if(this.contextMenuPending||!y.state.focused||bn(x)&&!b&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var z=x.value;if(z==b&&!y.somethingSelected())return!1;if(Ee&&Be>=9&&this.hasSelection===z||_e&&/[\uf700-\uf7ff]/.test(z))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var ie=z.charCodeAt(0);if(ie==8203&&!b&&(b="\u200B"),ie==8666)return this.reset(),this.cm.execCommand("undo")}for(var le=0,de=Math.min(b.length,z.length);le<de&&b.charCodeAt(le)==z.charCodeAt(le);)++le;return _i(y,function(){gl(y,z.slice(le),b.length-le,null,a.composing?"*compose":null),z.length>1e3||z.indexOf(`
`)>-1?x.value=a.prevInput="":a.prevInput=z,a.composing&&(a.composing.range.clear(),a.composing.range=y.markText(a.composing.start,y.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ni.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ni.prototype.onKeyPress=function(){Ee&&Be>=9&&(this.hasSelection=null),this.fastPoll()},ni.prototype.onContextMenu=function(a){var y=this,x=y.cm,b=x.display,z=y.textarea;y.contextMenuPending&&y.contextMenuPending();var ie=So(x,a),le=b.scroller.scrollTop;if(!ie||he)return;var de=x.options.resetSelectionOnContextMenu;de&&x.doc.sel.contains(ie)==-1&&ci(x,Ci)(x.doc,mo(ie),ge);var me=z.style.cssText,Se=y.wrapper.style.cssText,at=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",z.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(a.clientY-at.top-5)+"px; left: "+(a.clientX-at.left-5)+`px;
z-index: 1000; background: `+(Ee?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var vt;De&&(vt=window.scrollY),b.input.focus(),De&&window.scrollTo(null,vt),b.input.reset(),x.somethingSelected()||(z.value=y.prevInput=" "),y.contextMenuPending=zt,b.selForContextMenu=x.doc.sel,clearTimeout(b.detectingSelectAll);function Zt(){if(z.selectionStart!=null){var Mn=x.somethingSelected(),$n="\u200B"+(Mn?z.value:"");z.value="\u21DA",z.value=$n,y.prevInput=Mn?"":"\u200B",z.selectionStart=1,z.selectionEnd=$n.length,b.selForContextMenu=x.doc.sel}}function zt(){if(y.contextMenuPending==zt&&(y.contextMenuPending=!1,y.wrapper.style.cssText=Se,z.style.cssText=me,Ee&&Be<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=le),z.selectionStart!=null)){(!Ee||Ee&&Be<9)&&Zt();var Mn=0,$n=function(){b.selForContextMenu==x.doc.sel&&z.selectionStart==0&&z.selectionEnd>0&&y.prevInput=="\u200B"?ci(x,ts)(x):Mn++<10?b.detectingSelectAll=setTimeout($n,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout($n,200)}}if(Ee&&Be>=9&&Zt(),it){Ne(a);var hn=function(){qt(window,"mouseup",hn),setTimeout(zt,20)};Ht(window,"mouseup",hn)}else setTimeout(zt,50)},ni.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},ni.prototype.setUneditable=function(){},ni.prototype.needsContentAttribute=!1;function Yu(a,y){if(y=y?ct(y):{},y.value=a.value,!y.tabindex&&a.tabIndex&&(y.tabindex=a.tabIndex),!y.placeholder&&a.placeholder&&(y.placeholder=a.placeholder),y.autofocus==null){var x=ze();y.autofocus=x==a||a.getAttribute("autofocus")!=null&&x==document.body}function b(){a.value=de.getValue()}var z;if(a.form&&(Ht(a.form,"submit",b),!y.leaveSubmitMethodAlone)){var ie=a.form;z=ie.submit;try{var le=ie.submit=function(){b(),ie.submit=z,ie.submit(),ie.submit=le}}catch(me){}}y.finishInit=function(me){me.save=b,me.getTextArea=function(){return a},me.toTextArea=function(){me.toTextArea=isNaN,b(),a.parentNode.removeChild(me.getWrapperElement()),a.style.display="",a.form&&(qt(a.form,"submit",b),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=z))}},a.style.display="none";var de=Kr(function(me){return a.parentNode.insertBefore(me,a.nextSibling)},y);return de}function Ju(a){a.off=qt,a.on=Ht,a.wheelEventPixels=iu,a.Doc=ki,a.splitLines=un,a.countColumn=ye,a.findColumn=Tt,a.isWordChar=oe,a.Pass=bt,a.signal=sn,a.Line=Tr,a.changeEnd=vo,a.scrollbarModel=Al,a.Pos=fe,a.cmpPos=pe,a.modes=_t,a.mimeModes=Ot,a.resolveMode=en,a.getMode=xn,a.modeExtensions=Pn,a.extendMode=Cn,a.copyState=Nn,a.startState=Qn,a.innerMode=An,a.commands=ha,a.keyMap=so,a.keyName=gs,a.isModifierKey=ms,a.lookupKey=Ho,a.normalizeKeyMap=Iu,a.StringStream=zn,a.SharedTextMarker=ca,a.TextMarker=yo,a.LineWidget=ua,a.e_preventDefault=pt,a.e_stopPropagation=Ft,a.e_stop=Ne,a.addClass=se,a.contains=Ke,a.rmClass=Fe,a.keyNames=bo}ju(Kr),Gu(Kr);var Qu="iter insert remove copy getEditor constructor".split(" ");for(var Wa in ki.prototype)ki.prototype.hasOwnProperty(Wa)&&Ue(Qu,Wa)<0&&(Kr.prototype[Wa]=function(a){return function(){return a.apply(this.doc,arguments)}}(ki.prototype[Wa]));return je(ki),Kr.inputStyles={textarea:ni,contenteditable:Wr},Kr.defineMode=function(a){!Kr.defaults.mode&&a!="null"&&(Kr.defaults.mode=a),an.apply(this,arguments)},Kr.defineMIME=nn,Kr.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Kr.defineMIME("text/plain","null"),Kr.defineExtension=function(a,y){Kr.prototype[a]=y},Kr.defineDocExtension=function(a,y){ki.prototype[a]=y},Kr.fromTextArea=Yu,Ju(Kr),Kr.version="5.58.2",Kr})},25419:function(on,$t,ne){(function(E){E(ne(89780),ne(15525),ne(98101))})(function(E){"use strict";E.defineMode("markdown",function(Qe,xe){var tt=E.getMode(Qe,"text/html"),Ee=tt.name=="null";function Be(ye){if(E.findModeByName){var ce=E.findModeByName(ye);ce&&(ye=ce.mime||ce.mimes[0])}var Ue=E.getMode(Qe,ye);return Ue.name=="null"?null:Ue}xe.highlightFormatting===void 0&&(xe.highlightFormatting=!1),xe.maxBlockquoteDepth===void 0&&(xe.maxBlockquoteDepth=0),xe.taskLists===void 0&&(xe.taskLists=!1),xe.strikethrough===void 0&&(xe.strikethrough=!1),xe.emoji===void 0&&(xe.emoji=!1),xe.fencedCodeBlockHighlighting===void 0&&(xe.fencedCodeBlockHighlighting=!0),xe.fencedCodeBlockDefaultMode===void 0&&(xe.fencedCodeBlockDefaultMode="text/plain"),xe.xml===void 0&&(xe.xml=!0),xe.tokenTypeOverrides===void 0&&(xe.tokenTypeOverrides={});var De={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var We in De)De.hasOwnProperty(We)&&xe.tokenTypeOverrides[We]&&(De[We]=xe.tokenTypeOverrides[We]);var Ie=/^([*\-_])(?:\s*\1){2,}\s*$/,he=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Je=/^\[(x| )\](?=\s)/i,Pe=xe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,dt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ze=/^[^#!\[\]*_\\<>` "'(~:]+/,Ce=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Te=/^\s*\[[^\]]+?\]:.*$/,_e=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,rt=" ";function gt(ye,ce,Ue){return ce.f=ce.inline=Ue,Ue(ye,ce)}function Pt(ye,ce,Ue){return ce.f=ce.block=Ue,Ue(ye,ce)}function ht(ye){return!ye||!/\S/.test(ye.string)}function it(ye){if(ye.linkTitle=!1,ye.linkHref=!1,ye.linkText=!1,ye.em=!1,ye.strong=!1,ye.strikethrough=!1,ye.quote=0,ye.indentedCode=!1,ye.f==Fe){var ce=Ee;if(!ce){var Ue=E.innerMode(tt,ye.htmlState);ce=Ue.mode.name=="xml"&&Ue.state.tagStart===null&&!Ue.state.context&&Ue.state.tokenize.isInText}ce&&(ye.f=St,ye.block=nt,ye.htmlState=null)}return ye.trailingSpace=0,ye.trailingSpaceNewLine=!1,ye.prevLine=ye.thisLine,ye.thisLine={stream:null},null}function nt(ye,ce){var Ue=ye.column()===ce.indentation,It=ht(ce.prevLine.stream),bt=ce.indentedCode,ge=ce.prevLine.hr,He=ce.list!==!1,Ge=(ce.listStack[ce.listStack.length-1]||0)+3;ce.indentedCode=!1;var Tt=ce.indentation;if(ce.indentationDiff===null&&(ce.indentationDiff=ce.indentation,He)){for(ce.list=null;Tt<ce.listStack[ce.listStack.length-1];)ce.listStack.pop(),ce.listStack.length?ce.indentation=ce.listStack[ce.listStack.length-1]:ce.list=!1;ce.list!==!1&&(ce.indentationDiff=Tt-ce.listStack[ce.listStack.length-1])}var wt=!It&&!ge&&!ce.prevLine.header&&(!He||!bt)&&!ce.prevLine.fencedCodeEnd,Lt=(ce.list===!1||ge||It)&&ce.indentation<=Ge&&ye.match(Ie),$e=null;if(ce.indentationDiff>=4&&(bt||ce.prevLine.fencedCodeEnd||ce.prevLine.header||It))return ye.skipToEnd(),ce.indentedCode=!0,De.code;if(ye.eatSpace())return null;if(Ue&&ce.indentation<=Ge&&($e=ye.match(Pe))&&$e[1].length<=6)return ce.quote=0,ce.header=$e[1].length,ce.thisLine.header=!0,xe.highlightFormatting&&(ce.formatting="header"),ce.f=ce.inline,lt(ce);if(ce.indentation<=Ge&&ye.eat(">"))return ce.quote=Ue?1:ce.quote+1,xe.highlightFormatting&&(ce.formatting="quote"),ye.eatSpace(),lt(ce);if(!Lt&&!ce.setext&&Ue&&ce.indentation<=Ge&&($e=ye.match(he))){var At=$e[1]?"ol":"ul";return ce.indentation=Tt+ye.current().length,ce.list=!0,ce.quote=0,ce.listStack.push(ce.indentation),ce.em=!1,ce.strong=!1,ce.code=!1,ce.strikethrough=!1,xe.taskLists&&ye.match(Je,!1)&&(ce.taskList=!0),ce.f=ce.inline,xe.highlightFormatting&&(ce.formatting=["list","list-"+At]),lt(ce)}else{if(Ue&&ce.indentation<=Ge&&($e=ye.match(Ce,!0)))return ce.quote=0,ce.fencedEndRE=new RegExp($e[1]+"+ *$"),ce.localMode=xe.fencedCodeBlockHighlighting&&Be($e[2]||xe.fencedCodeBlockDefaultMode),ce.localMode&&(ce.localState=E.startState(ce.localMode)),ce.f=ce.block=kt,xe.highlightFormatting&&(ce.formatting="code-block"),ce.code=-1,lt(ce);if(ce.setext||(!wt||!He)&&!ce.quote&&ce.list===!1&&!ce.code&&!Lt&&!Te.test(ye.string)&&($e=ye.lookAhead(1))&&($e=$e.match(dt)))return ce.setext?(ce.header=ce.setext,ce.setext=0,ye.skipToEnd(),xe.highlightFormatting&&(ce.formatting="header")):(ce.header=$e[0].charAt(0)=="="?1:2,ce.setext=ce.header),ce.thisLine.header=!0,ce.f=ce.inline,lt(ce);if(Lt)return ye.skipToEnd(),ce.hr=!0,ce.thisLine.hr=!0,De.hr;if(ye.peek()==="[")return gt(ye,ce,qe)}return gt(ye,ce,ce.inline)}function Fe(ye,ce){var Ue=tt.token(ye,ce.htmlState);if(!Ee){var It=E.innerMode(tt,ce.htmlState);(It.mode.name=="xml"&&It.state.tagStart===null&&!It.state.context&&It.state.tokenize.isInText||ce.md_inside&&ye.current().indexOf(">")>-1)&&(ce.f=St,ce.block=nt,ce.htmlState=null)}return Ue}function kt(ye,ce){var Ue=ce.listStack[ce.listStack.length-1]||0,It=ce.indentation<Ue,bt=Ue+3;if(ce.fencedEndRE&&ce.indentation<=bt&&(It||ye.match(ce.fencedEndRE))){xe.highlightFormatting&&(ce.formatting="code-block");var ge;return It||(ge=lt(ce)),ce.localMode=ce.localState=null,ce.block=nt,ce.f=St,ce.fencedEndRE=null,ce.code=0,ce.thisLine.fencedCodeEnd=!0,It?Pt(ye,ce,ce.block):ge}else return ce.localMode?ce.localMode.token(ye,ce.localState):(ye.skipToEnd(),De.code)}function lt(ye){var ce=[];if(ye.formatting){ce.push(De.formatting),typeof ye.formatting=="string"&&(ye.formatting=[ye.formatting]);for(var Ue=0;Ue<ye.formatting.length;Ue++)ce.push(De.formatting+"-"+ye.formatting[Ue]),ye.formatting[Ue]==="header"&&ce.push(De.formatting+"-"+ye.formatting[Ue]+"-"+ye.header),ye.formatting[Ue]==="quote"&&(!xe.maxBlockquoteDepth||xe.maxBlockquoteDepth>=ye.quote?ce.push(De.formatting+"-"+ye.formatting[Ue]+"-"+ye.quote):ce.push("error"))}if(ye.taskOpen)return ce.push("meta"),ce.length?ce.join(" "):null;if(ye.taskClosed)return ce.push("property"),ce.length?ce.join(" "):null;if(ye.linkHref?ce.push(De.linkHref,"url"):(ye.strong&&ce.push(De.strong),ye.em&&ce.push(De.em),ye.strikethrough&&ce.push(De.strikethrough),ye.emoji&&ce.push(De.emoji),ye.linkText&&ce.push(De.linkText),ye.code&&ce.push(De.code),ye.image&&ce.push(De.image),ye.imageAltText&&ce.push(De.imageAltText,"link"),ye.imageMarker&&ce.push(De.imageMarker)),ye.header&&ce.push(De.header,De.header+"-"+ye.header),ye.quote&&(ce.push(De.quote),!xe.maxBlockquoteDepth||xe.maxBlockquoteDepth>=ye.quote?ce.push(De.quote+"-"+ye.quote):ce.push(De.quote+"-"+xe.maxBlockquoteDepth)),ye.list!==!1){var It=(ye.listStack.length-1)%3;It?It===1?ce.push(De.list2):ce.push(De.list3):ce.push(De.list1)}return ye.trailingSpaceNewLine?ce.push("trailing-space-new-line"):ye.trailingSpace&&ce.push("trailing-space-"+(ye.trailingSpace%2?"a":"b")),ce.length?ce.join(" "):null}function et(ye,ce){if(ye.match(Ze,!0))return lt(ce)}function St(ye,ce){var Ue=ce.text(ye,ce);if(typeof Ue!="undefined")return Ue;if(ce.list)return ce.list=null,lt(ce);if(ce.taskList){var It=ye.match(Je,!0)[1]===" ";return It?ce.taskOpen=!0:ce.taskClosed=!0,xe.highlightFormatting&&(ce.formatting="task"),ce.taskList=!1,lt(ce)}if(ce.taskOpen=!1,ce.taskClosed=!1,ce.header&&ye.match(/^#+$/,!0))return xe.highlightFormatting&&(ce.formatting="header"),lt(ce);var bt=ye.next();if(ce.linkTitle){ce.linkTitle=!1;var ge=bt;bt==="("&&(ge=")"),ge=(ge+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var He="^\\s*(?:[^"+ge+"\\\\]+|\\\\\\\\|\\\\.)"+ge;if(ye.match(new RegExp(He),!0))return De.linkHref}if(bt==="`"){var Ge=ce.formatting;xe.highlightFormatting&&(ce.formatting="code"),ye.eatWhile("`");var Tt=ye.current().length;if(ce.code==0&&(!ce.quote||Tt==1))return ce.code=Tt,lt(ce);if(Tt==ce.code){var wt=lt(ce);return ce.code=0,wt}else return ce.formatting=Ge,lt(ce)}else if(ce.code)return lt(ce);if(bt==="\\"&&(ye.next(),xe.highlightFormatting)){var Lt=lt(ce),$e=De.formatting+"-escape";return Lt?Lt+" "+$e:$e}if(bt==="!"&&ye.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ce.imageMarker=!0,ce.image=!0,xe.highlightFormatting&&(ce.formatting="image"),lt(ce);if(bt==="["&&ce.imageMarker&&ye.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ce.imageMarker=!1,ce.imageAltText=!0,xe.highlightFormatting&&(ce.formatting="image"),lt(ce);if(bt==="]"&&ce.imageAltText){xe.highlightFormatting&&(ce.formatting="image");var Lt=lt(ce);return ce.imageAltText=!1,ce.image=!1,ce.inline=ce.f=Ke,Lt}if(bt==="["&&!ce.image)return ce.linkText&&ye.match(/^.*?\]/)||(ce.linkText=!0,xe.highlightFormatting&&(ce.formatting="link")),lt(ce);if(bt==="]"&&ce.linkText){xe.highlightFormatting&&(ce.formatting="link");var Lt=lt(ce);return ce.linkText=!1,ce.inline=ce.f=ye.match(/\(.*?\)| ?\[.*?\]/,!1)?Ke:St,Lt}if(bt==="<"&&ye.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ce.f=ce.inline=Me,xe.highlightFormatting&&(ce.formatting="link");var Lt=lt(ce);return Lt?Lt+=" ":Lt="",Lt+De.linkInline}if(bt==="<"&&ye.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ce.f=ce.inline=Me,xe.highlightFormatting&&(ce.formatting="link");var Lt=lt(ce);return Lt?Lt+=" ":Lt="",Lt+De.linkEmail}if(xe.xml&&bt==="<"&&ye.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var At=ye.string.indexOf(">",ye.pos);if(At!=-1){var st=ye.string.substring(ye.start,At);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(st)&&(ce.md_inside=!0)}return ye.backUp(1),ce.htmlState=E.startState(tt),Pt(ye,ce,Fe)}if(xe.xml&&bt==="<"&&ye.match(/^\/\w*?>/))return ce.md_inside=!1,"tag";if(bt==="*"||bt==="_"){for(var ae=1,te=ye.pos==1?" ":ye.string.charAt(ye.pos-2);ae<3&&ye.eat(bt);)ae++;var ee=ye.peek()||" ",oe=!/\s/.test(ee)&&(!_e.test(ee)||/\s/.test(te)||_e.test(te)),ue=!/\s/.test(te)&&(!_e.test(te)||/\s/.test(ee)||_e.test(ee)),re=null,ve=null;if(ae%2&&(!ce.em&&oe&&(bt==="*"||!ue||_e.test(te))?re=!0:ce.em==bt&&ue&&(bt==="*"||!oe||_e.test(ee))&&(re=!1)),ae>1&&(!ce.strong&&oe&&(bt==="*"||!ue||_e.test(te))?ve=!0:ce.strong==bt&&ue&&(bt==="*"||!oe||_e.test(ee))&&(ve=!1)),ve!=null||re!=null){xe.highlightFormatting&&(ce.formatting=re==null?"strong":ve==null?"em":"strong em"),re===!0&&(ce.em=bt),ve===!0&&(ce.strong=bt);var wt=lt(ce);return re===!1&&(ce.em=!1),ve===!1&&(ce.strong=!1),wt}}else if(bt===" "&&(ye.eat("*")||ye.eat("_"))){if(ye.peek()===" ")return lt(ce);ye.backUp(1)}if(xe.strikethrough){if(bt==="~"&&ye.eatWhile(bt)){if(ce.strikethrough){xe.highlightFormatting&&(ce.formatting="strikethrough");var wt=lt(ce);return ce.strikethrough=!1,wt}else if(ye.match(/^[^\s]/,!1))return ce.strikethrough=!0,xe.highlightFormatting&&(ce.formatting="strikethrough"),lt(ce)}else if(bt===" "&&ye.match(/^~~/,!0)){if(ye.peek()===" ")return lt(ce);ye.backUp(2)}}if(xe.emoji&&bt===":"&&ye.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ce.emoji=!0,xe.highlightFormatting&&(ce.formatting="emoji");var we=lt(ce);return ce.emoji=!1,we}return bt===" "&&(ye.match(/^ +$/,!1)?ce.trailingSpace++:ce.trailingSpace&&(ce.trailingSpaceNewLine=!0)),lt(ce)}function Me(ye,ce){var Ue=ye.next();if(Ue===">"){ce.f=ce.inline=St,xe.highlightFormatting&&(ce.formatting="link");var It=lt(ce);return It?It+=" ":It="",It+De.linkInline}return ye.match(/^[^>]+/,!0),De.linkInline}function Ke(ye,ce){if(ye.eatSpace())return null;var Ue=ye.next();return Ue==="("||Ue==="["?(ce.f=ce.inline=se(Ue==="("?")":"]"),xe.highlightFormatting&&(ce.formatting="link-string"),ce.linkHref=!0,lt(ce)):"error"}var ze={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function se(ye){return function(ce,Ue){var It=ce.next();if(It===ye){Ue.f=Ue.inline=St,xe.highlightFormatting&&(Ue.formatting="link-string");var bt=lt(Ue);return Ue.linkHref=!1,bt}return ce.match(ze[ye]),Ue.linkHref=!0,lt(Ue)}}function qe(ye,ce){return ye.match(/^([^\]\\]|\\.)*\]:/,!1)?(ce.f=Le,ye.next(),xe.highlightFormatting&&(ce.formatting="link"),ce.linkText=!0,lt(ce)):gt(ye,ce,St)}function Le(ye,ce){if(ye.match(/^\]:/,!0)){ce.f=ce.inline=Ae,xe.highlightFormatting&&(ce.formatting="link");var Ue=lt(ce);return ce.linkText=!1,Ue}return ye.match(/^([^\]\\]|\\.)+/,!0),De.linkText}function Ae(ye,ce){return ye.eatSpace()?null:(ye.match(/^[^\s]+/,!0),ye.peek()===void 0?ce.linkTitle=!0:ye.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ce.f=ce.inline=St,De.linkHref+" url")}var ct={startState:function(){return{f:nt,prevLine:{stream:null},thisLine:{stream:null},block:nt,htmlState:null,indentation:0,inline:St,text:et,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(ye){return{f:ye.f,prevLine:ye.prevLine,thisLine:ye.thisLine,block:ye.block,htmlState:ye.htmlState&&E.copyState(tt,ye.htmlState),indentation:ye.indentation,localMode:ye.localMode,localState:ye.localMode?E.copyState(ye.localMode,ye.localState):null,inline:ye.inline,text:ye.text,formatting:!1,linkText:ye.linkText,linkTitle:ye.linkTitle,linkHref:ye.linkHref,code:ye.code,em:ye.em,strong:ye.strong,strikethrough:ye.strikethrough,emoji:ye.emoji,header:ye.header,setext:ye.setext,hr:ye.hr,taskList:ye.taskList,list:ye.list,listStack:ye.listStack.slice(0),quote:ye.quote,indentedCode:ye.indentedCode,trailingSpace:ye.trailingSpace,trailingSpaceNewLine:ye.trailingSpaceNewLine,md_inside:ye.md_inside,fencedEndRE:ye.fencedEndRE}},token:function(ye,ce){if(ce.formatting=!1,ye!=ce.thisLine.stream){if(ce.header=0,ce.hr=!1,ye.match(/^\s*$/,!0))return it(ce),null;if(ce.prevLine=ce.thisLine,ce.thisLine={stream:ye},ce.taskList=!1,ce.trailingSpace=0,ce.trailingSpaceNewLine=!1,!ce.localState&&(ce.f=ce.block,ce.f!=Fe)){var Ue=ye.match(/^\s*/,!0)[0].replace(/\t/g,rt).length;if(ce.indentation=Ue,ce.indentationDiff=null,Ue>0)return null}}return ce.f(ye,ce)},innerMode:function(ye){return ye.block==Fe?{state:ye.htmlState,mode:tt}:ye.localState?{state:ye.localState,mode:ye.localMode}:{state:ye,mode:ct}},indent:function(ye,ce,Ue){return ye.block==Fe&&tt.indent?tt.indent(ye.htmlState,ce,Ue):ye.localState&&ye.localMode.indent?ye.localMode.indent(ye.localState,ce,Ue):E.Pass},blankLine:it,getType:lt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return ct},"xml"),E.defineMIME("text/markdown","markdown"),E.defineMIME("text/x-markdown","markdown")})},98101:function(on,$t,ne){(function(E){E(ne(89780))})(function(E){"use strict";E.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var Qe=0;Qe<E.modeInfo.length;Qe++){var xe=E.modeInfo[Qe];xe.mimes&&(xe.mime=xe.mimes[0])}E.findModeByMIME=function(tt){tt=tt.toLowerCase();for(var Ee=0;Ee<E.modeInfo.length;Ee++){var Be=E.modeInfo[Ee];if(Be.mime==tt)return Be;if(Be.mimes){for(var De=0;De<Be.mimes.length;De++)if(Be.mimes[De]==tt)return Be}}if(/\+xml$/.test(tt))return E.findModeByMIME("application/xml");if(/\+json$/.test(tt))return E.findModeByMIME("application/json")},E.findModeByExtension=function(tt){tt=tt.toLowerCase();for(var Ee=0;Ee<E.modeInfo.length;Ee++){var Be=E.modeInfo[Ee];if(Be.ext){for(var De=0;De<Be.ext.length;De++)if(Be.ext[De]==tt)return Be}}},E.findModeByFileName=function(tt){for(var Ee=0;Ee<E.modeInfo.length;Ee++){var Be=E.modeInfo[Ee];if(Be.file&&Be.file.test(tt))return Be}var De=tt.lastIndexOf("."),We=De>-1&&tt.substring(De+1,tt.length);if(We)return E.findModeByExtension(We)},E.findModeByName=function(tt){tt=tt.toLowerCase();for(var Ee=0;Ee<E.modeInfo.length;Ee++){var Be=E.modeInfo[Ee];if(Be.name.toLowerCase()==tt)return Be;if(Be.alias){for(var De=0;De<Be.alias.length;De++)if(Be.alias[De].toLowerCase()==tt)return Be}}}})},67549:function(on,$t,ne){(function(E){E(ne(89780))})(function(E){"use strict";E.defineMode("stex",function(Qe,xe){"use strict";function tt(Ze,Ce){Ze.cmdState.push(Ce)}function Ee(Ze){return Ze.cmdState.length>0?Ze.cmdState[Ze.cmdState.length-1]:null}function Be(Ze){var Ce=Ze.cmdState.pop();Ce&&Ce.closeBracket()}function De(Ze){for(var Ce=Ze.cmdState,Te=Ce.length-1;Te>=0;Te--){var _e=Ce[Te];if(_e.name!="DEFAULT")return _e}return{styleIdentifier:function(){return null}}}function We(Ze,Ce,Te){return function(){this.name=Ze,this.bracketNo=0,this.style=Ce,this.styles=Te,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Ie={};Ie.importmodule=We("importmodule","tag",["string","builtin"]),Ie.documentclass=We("documentclass","tag",["","atom"]),Ie.usepackage=We("usepackage","tag",["atom"]),Ie.begin=We("begin","tag",["atom"]),Ie.end=We("end","tag",["atom"]),Ie.label=We("label","tag",["atom"]),Ie.ref=We("ref","tag",["atom"]),Ie.eqref=We("eqref","tag",["atom"]),Ie.cite=We("cite","tag",["atom"]),Ie.bibitem=We("bibitem","tag",["atom"]),Ie.Bibitem=We("Bibitem","tag",["atom"]),Ie.RBibitem=We("RBibitem","tag",["atom"]),Ie.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function he(Ze,Ce){Ze.f=Ce}function Je(Ze,Ce){var Te;if(Ze.match(/^\\[a-zA-Z@]+/)){var _e=Ze.current().slice(1);return Te=Ie.hasOwnProperty(_e)?Ie[_e]:Ie.DEFAULT,Te=new Te,tt(Ce,Te),he(Ce,dt),Te.style}if(Ze.match(/^\\[$&%#{}_]/)||Ze.match(/^\\[,;!\/\\]/))return"tag";if(Ze.match("\\["))return he(Ce,function(gt,Pt){return Pe(gt,Pt,"\\]")}),"keyword";if(Ze.match("\\("))return he(Ce,function(gt,Pt){return Pe(gt,Pt,"\\)")}),"keyword";if(Ze.match("$$"))return he(Ce,function(gt,Pt){return Pe(gt,Pt,"$$")}),"keyword";if(Ze.match("$"))return he(Ce,function(gt,Pt){return Pe(gt,Pt,"$")}),"keyword";var rt=Ze.next();if(rt=="%")return Ze.skipToEnd(),"comment";if(rt=="}"||rt=="]"){if(Te=Ee(Ce),Te)Te.closeBracket(rt),he(Ce,dt);else return"error";return"bracket"}else return rt=="{"||rt=="["?(Te=Ie.DEFAULT,Te=new Te,tt(Ce,Te),"bracket"):/\d/.test(rt)?(Ze.eatWhile(/[\w.%]/),"atom"):(Ze.eatWhile(/[\w\-_]/),Te=De(Ce),Te.name=="begin"&&(Te.argument=Ze.current()),Te.styleIdentifier())}function Pe(Ze,Ce,Te){if(Ze.eatSpace())return null;if(Te&&Ze.match(Te))return he(Ce,Je),"keyword";if(Ze.match(/^\\[a-zA-Z@]+/))return"tag";if(Ze.match(/^[a-zA-Z]+/))return"variable-2";if(Ze.match(/^\\[$&%#{}_]/)||Ze.match(/^\\[,;!\/]/)||Ze.match(/^[\^_&]/))return"tag";if(Ze.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ze.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var _e=Ze.next();return _e=="{"||_e=="}"||_e=="["||_e=="]"||_e=="("||_e==")"?"bracket":_e=="%"?(Ze.skipToEnd(),"comment"):"error"}function dt(Ze,Ce){var Te=Ze.peek(),_e;return Te=="{"||Te=="["?(_e=Ee(Ce),_e.openBracket(Te),Ze.eat(Te),he(Ce,Je),"bracket"):/[ \t\r]/.test(Te)?(Ze.eat(Te),null):(he(Ce,Je),Be(Ce),Je(Ze,Ce))}return{startState:function(){var Ze=xe.inMathMode?function(Ce,Te){return Pe(Ce,Te)}:Je;return{cmdState:[],f:Ze}},copyState:function(Ze){return{cmdState:Ze.cmdState.slice(),f:Ze.f}},token:function(Ze,Ce){return Ce.f(Ze,Ce)},blankLine:function(Ze){Ze.f=Je,Ze.cmdState.length=0},lineComment:"%"}}),E.defineMIME("text/x-stex","stex"),E.defineMIME("text/x-latex","stex")})},15525:function(on,$t,ne){(function(E){E(ne(89780))})(function(E){"use strict";var Qe={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},xe={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};E.defineMode("xml",function(tt,Ee){var Be=tt.indentUnit,De={},We=Ee.htmlMode?Qe:xe;for(var Ie in We)De[Ie]=We[Ie];for(var Ie in Ee)De[Ie]=Ee[Ie];var he,Je;function Pe(Me,Ke){function ze(Le){return Ke.tokenize=Le,Le(Me,Ke)}var se=Me.next();if(se=="<")return Me.eat("!")?Me.eat("[")?Me.match("CDATA[")?ze(Ce("atom","]]>")):null:Me.match("--")?ze(Ce("comment","-->")):Me.match("DOCTYPE",!0,!0)?(Me.eatWhile(/[\w\._\-]/),ze(Te(1))):null:Me.eat("?")?(Me.eatWhile(/[\w\._\-]/),Ke.tokenize=Ce("meta","?>"),"meta"):(he=Me.eat("/")?"closeTag":"openTag",Ke.tokenize=dt,"tag bracket");if(se=="&"){var qe;return Me.eat("#")?Me.eat("x")?qe=Me.eatWhile(/[a-fA-F\d]/)&&Me.eat(";"):qe=Me.eatWhile(/[\d]/)&&Me.eat(";"):qe=Me.eatWhile(/[\w\.\-:]/)&&Me.eat(";"),qe?"atom":"error"}else return Me.eatWhile(/[^&<]/),null}Pe.isInText=!0;function dt(Me,Ke){var ze=Me.next();if(ze==">"||ze=="/"&&Me.eat(">"))return Ke.tokenize=Pe,he=ze==">"?"endTag":"selfcloseTag","tag bracket";if(ze=="=")return he="equals",null;if(ze=="<"){Ke.tokenize=Pe,Ke.state=Pt,Ke.tagName=Ke.tagStart=null;var se=Ke.tokenize(Me,Ke);return se?se+" tag error":"tag error"}else return/[\'\"]/.test(ze)?(Ke.tokenize=Ze(ze),Ke.stringStartCol=Me.column(),Ke.tokenize(Me,Ke)):(Me.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ze(Me){var Ke=function(ze,se){for(;!ze.eol();)if(ze.next()==Me){se.tokenize=dt;break}return"string"};return Ke.isInAttribute=!0,Ke}function Ce(Me,Ke){return function(ze,se){for(;!ze.eol();){if(ze.match(Ke)){se.tokenize=Pe;break}ze.next()}return Me}}function Te(Me){return function(Ke,ze){for(var se;(se=Ke.next())!=null;){if(se=="<")return ze.tokenize=Te(Me+1),ze.tokenize(Ke,ze);if(se==">")if(Me==1){ze.tokenize=Pe;break}else return ze.tokenize=Te(Me-1),ze.tokenize(Ke,ze)}return"meta"}}function _e(Me,Ke,ze){this.prev=Me.context,this.tagName=Ke,this.indent=Me.indented,this.startOfLine=ze,(De.doNotIndent.hasOwnProperty(Ke)||Me.context&&Me.context.noIndent)&&(this.noIndent=!0)}function rt(Me){Me.context&&(Me.context=Me.context.prev)}function gt(Me,Ke){for(var ze;;){if(!Me.context||(ze=Me.context.tagName,!De.contextGrabbers.hasOwnProperty(ze)||!De.contextGrabbers[ze].hasOwnProperty(Ke)))return;rt(Me)}}function Pt(Me,Ke,ze){return Me=="openTag"?(ze.tagStart=Ke.column(),ht):Me=="closeTag"?it:Pt}function ht(Me,Ke,ze){return Me=="word"?(ze.tagName=Ke.current(),Je="tag",kt):De.allowMissingTagName&&Me=="endTag"?(Je="tag bracket",kt(Me,Ke,ze)):(Je="error",ht)}function it(Me,Ke,ze){if(Me=="word"){var se=Ke.current();return ze.context&&ze.context.tagName!=se&&De.implicitlyClosed.hasOwnProperty(ze.context.tagName)&&rt(ze),ze.context&&ze.context.tagName==se||De.matchClosing===!1?(Je="tag",nt):(Je="tag error",Fe)}else return De.allowMissingTagName&&Me=="endTag"?(Je="tag bracket",nt(Me,Ke,ze)):(Je="error",Fe)}function nt(Me,Ke,ze){return Me!="endTag"?(Je="error",nt):(rt(ze),Pt)}function Fe(Me,Ke,ze){return Je="error",nt(Me,Ke,ze)}function kt(Me,Ke,ze){if(Me=="word")return Je="attribute",lt;if(Me=="endTag"||Me=="selfcloseTag"){var se=ze.tagName,qe=ze.tagStart;return ze.tagName=ze.tagStart=null,Me=="selfcloseTag"||De.autoSelfClosers.hasOwnProperty(se)?gt(ze,se):(gt(ze,se),ze.context=new _e(ze,se,qe==ze.indented)),Pt}return Je="error",kt}function lt(Me,Ke,ze){return Me=="equals"?et:(De.allowMissing||(Je="error"),kt(Me,Ke,ze))}function et(Me,Ke,ze){return Me=="string"?St:Me=="word"&&De.allowUnquoted?(Je="string",kt):(Je="error",kt(Me,Ke,ze))}function St(Me,Ke,ze){return Me=="string"?St:kt(Me,Ke,ze)}return{startState:function(Me){var Ke={tokenize:Pe,state:Pt,indented:Me||0,tagName:null,tagStart:null,context:null};return Me!=null&&(Ke.baseIndent=Me),Ke},token:function(Me,Ke){if(!Ke.tagName&&Me.sol()&&(Ke.indented=Me.indentation()),Me.eatSpace())return null;he=null;var ze=Ke.tokenize(Me,Ke);return(ze||he)&&ze!="comment"&&(Je=null,Ke.state=Ke.state(he||ze,Me,Ke),Je&&(ze=Je=="error"?ze+" error":Je)),ze},indent:function(Me,Ke,ze){var se=Me.context;if(Me.tokenize.isInAttribute)return Me.tagStart==Me.indented?Me.stringStartCol+1:Me.indented+Be;if(se&&se.noIndent)return E.Pass;if(Me.tokenize!=dt&&Me.tokenize!=Pe)return ze?ze.match(/^(\s*)/)[0].length:0;if(Me.tagName)return De.multilineTagIndentPastTag!==!1?Me.tagStart+Me.tagName.length+2:Me.tagStart+Be*(De.multilineTagIndentFactor||1);if(De.alignCDATA&&/<!\[CDATA\[/.test(Ke))return 0;var qe=Ke&&/^<(\/)?([\w_:\.-]*)/.exec(Ke);if(qe&&qe[1])for(;se;)if(se.tagName==qe[2]){se=se.prev;break}else if(De.implicitlyClosed.hasOwnProperty(se.tagName))se=se.prev;else break;else if(qe)for(;se;){var Le=De.contextGrabbers[se.tagName];if(Le&&Le.hasOwnProperty(qe[2]))se=se.prev;else break}for(;se&&se.prev&&!se.startOfLine;)se=se.prev;return se?se.indent+Be:Me.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:De.htmlMode?"html":"xml",helperType:De.htmlMode?"html":"xml",skipAttribute:function(Me){Me.state==et&&(Me.state=kt)},xmlCurrentTag:function(Me){return Me.tagName?{name:Me.tagName,close:Me.type=="closeTag"}:null},xmlCurrentContext:function(Me){for(var Ke=[],ze=Me.context;ze;ze=ze.prev)ze.tagName&&Ke.push(ze.tagName);return Ke.reverse()}}}),E.defineMIME("text/xml","xml"),E.defineMIME("application/xml","xml"),E.mimeModes.hasOwnProperty("text/html")||E.defineMIME("text/html",{name:"xml",htmlMode:!0})})},2859:function(on,$t,ne){"use strict";ne.d($t,{hP:function(){return st}});var E=function(ae,te){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,oe){ee.__proto__=oe}||function(ee,oe){for(var ue in oe)Object.prototype.hasOwnProperty.call(oe,ue)&&(ee[ue]=oe[ue])})(ae,te)};function Qe(ae,te){function ee(){this.constructor=ae}E(ae,te),ae.prototype=te===null?Object.create(te):(ee.prototype=te.prototype,new ee)}function xe(ae,te,ee,oe){return new(ee||(ee=Promise))(function(ue,re){function ve(Oe){try{ft(oe.next(Oe))}catch(Ye){re(Ye)}}function we(Oe){try{ft(oe.throw(Oe))}catch(Ye){re(Ye)}}function ft(Oe){var Ye;Oe.done?ue(Oe.value):(Ye=Oe.value,Ye instanceof ee?Ye:new ee(function(mt){mt(Ye)})).then(ve,we)}ft((oe=oe.apply(ae,te||[])).next())})}function tt(ae,te){var ee,oe,ue,re,ve={label:0,sent:function(){if(1&ue[0])throw ue[1];return ue[1]},trys:[],ops:[]};return re={next:we(0),throw:we(1),return:we(2)},typeof Symbol=="function"&&(re[Symbol.iterator]=function(){return this}),re;function we(ft){return function(Oe){return function(Ye){if(ee)throw new TypeError("Generator is already executing.");for(;ve;)try{if(ee=1,oe&&(ue=2&Ye[0]?oe.return:Ye[0]?oe.throw||((ue=oe.return)&&ue.call(oe),0):oe.next)&&!(ue=ue.call(oe,Ye[1])).done)return ue;switch(oe=0,ue&&(Ye=[2&Ye[0],ue.value]),Ye[0]){case 0:case 1:ue=Ye;break;case 4:return ve.label++,{value:Ye[1],done:!1};case 5:ve.label++,oe=Ye[1],Ye=[0];continue;case 7:Ye=ve.ops.pop(),ve.trys.pop();continue;default:if(ue=ve.trys,!((ue=ue.length>0&&ue[ue.length-1])||Ye[0]!==6&&Ye[0]!==2)){ve=0;continue}if(Ye[0]===3&&(!ue||Ye[1]>ue[0]&&Ye[1]<ue[3])){ve.label=Ye[1];break}if(Ye[0]===6&&ve.label<ue[1]){ve.label=ue[1],ue=Ye;break}if(ue&&ve.label<ue[2]){ve.label=ue[2],ve.ops.push(Ye);break}ue[2]&&ve.ops.pop(),ve.trys.pop();continue}Ye=te.call(ae,ve)}catch(mt){Ye=[6,mt],oe=0}finally{ee=ue=0}if(5&Ye[0])throw Ye[1];return{value:Ye[0]?Ye[1]:void 0,done:!0}}([ft,Oe])}}}function Ee(){for(var ae=0,te=0,ee=arguments.length;te<ee;te++)ae+=arguments[te].length;var oe=Array(ae),ue=0;for(te=0;te<ee;te++)for(var re=arguments[te],ve=0,we=re.length;ve<we;ve++,ue++)oe[ue]=re[ve];return oe}var Be=function(){function ae(){}return ae.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ae.setAttributes=function(te,ee){for(var oe=0,ue=ee;oe<ue.length;oe++){var re=ue[oe],ve=re[0],we=re[1];te.setAttribute(ve,we)}},ae.createRect=function(te,ee,oe){var ue=document.createElementNS("http://www.w3.org/2000/svg","rect");return ue.setAttribute("width",te.toString()),ue.setAttribute("height",ee.toString()),oe&&ae.setAttributes(ue,oe),ue},ae.createLine=function(te,ee,oe,ue,re){var ve=document.createElementNS("http://www.w3.org/2000/svg","line");return ve.setAttribute("x1",te.toString()),ve.setAttribute("y1",ee.toString()),ve.setAttribute("x2",oe.toString()),ve.setAttribute("y2",ue.toString()),re&&ae.setAttributes(ve,re),ve},ae.createPolygon=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return oe.setAttribute("points",te),ee&&ae.setAttributes(oe,ee),oe},ae.createCircle=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","circle");return oe.setAttribute("cx",(te/2).toString()),oe.setAttribute("cy",(te/2).toString()),oe.setAttribute("r",te.toString()),ee&&ae.setAttributes(oe,ee),oe},ae.createEllipse=function(te,ee,oe){var ue=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ue.setAttribute("cx",(te/2).toString()),ue.setAttribute("cy",(ee/2).toString()),ue.setAttribute("rx",(te/2).toString()),ue.setAttribute("ry",(ee/2).toString()),oe&&ae.setAttributes(ue,oe),ue},ae.createGroup=function(te){var ee=document.createElementNS("http://www.w3.org/2000/svg","g");return te&&ae.setAttributes(ee,te),ee},ae.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ae.createMarker=function(te,ee,oe,ue,re,ve,we){var ft=document.createElementNS("http://www.w3.org/2000/svg","marker");return ae.setAttributes(ft,[["id",te],["orient",ee],["markerWidth",oe.toString()],["markerHeight",ue.toString()],["refX",re.toString()],["refY",ve.toString()]]),ft.appendChild(we),ft},ae.createText=function(te){var ee=document.createElementNS("http://www.w3.org/2000/svg","text");return ee.setAttribute("x","0"),ee.setAttribute("y","0"),te&&ae.setAttributes(ee,te),ee},ae.createTSpan=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return oe.textContent=te,ee&&ae.setAttributes(oe,ee),oe},ae.createImage=function(te){var ee=document.createElementNS("http://www.w3.org/2000/svg","image");return te&&ae.setAttributes(ee,te),ee},ae.createPoint=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return oe.x=te,oe.y=ee,oe},ae.createPath=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","path");return oe.setAttribute("d",te),ee&&ae.setAttributes(oe,ee),oe},ae}(),De=function(){function ae(){}return ae.addKey=function(te){ae.key=te},Object.defineProperty(ae,"isLicensed",{get:function(){return!!ae.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ae.key)},enumerable:!1,configurable:!0}),ae}(),We=function(){function ae(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ae.prototype.rasterize=function(te,ee,oe){var ue=this;return new Promise(function(re){var ve=oe!==void 0?oe:document.createElement("canvas");te===null&&(ue.markersOnly=!0,ue.naturalSize=!1);var we=document.createElementNS("http://www.w3.org/2000/svg","svg");we.setAttribute("xmlns","http://www.w3.org/2000/svg"),we.setAttribute("width",ee.width.baseVal.valueAsString),we.setAttribute("height",ee.height.baseVal.valueAsString),we.setAttribute("viewBox","0 0 "+ee.viewBox.baseVal.width.toString()+" "+ee.viewBox.baseVal.height.toString()),we.innerHTML=ee.innerHTML,ue.naturalSize===!0?(we.width.baseVal.value=te.naturalWidth,we.height.baseVal.value=te.naturalHeight):ue.width!==void 0&&ue.height!==void 0&&(we.width.baseVal.value=ue.width,we.height.baseVal.value=ue.height),ve.width=we.width.baseVal.value,ve.height=we.height.baseVal.value;var ft=we.outerHTML,Oe=ve.getContext("2d");ue.markersOnly!==!0&&Oe.drawImage(te,0,0,ve.width,ve.height);var Ye=window.URL,mt=new Image(ve.width,ve.height);mt.setAttribute("crossOrigin","anonymous");var Bt=new Blob([ft],{type:"image/svg+xml"}),Et=Ye.createObjectURL(Bt);mt.onload=function(){Oe.drawImage(mt,0,0),Ye.revokeObjectURL(Et);var Ut=ve.toDataURL(ue.imageType,ue.imageQuality);re(Ut)},mt.src=Et})},ae}(),Ie=function(){},he=function(){function ae(te){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+te+"_"}return Object.defineProperty(ae.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ae.prototype.addClass=function(te){return this.styleSheet===void 0&&this.addStyleSheet(),te.name=""+this.classNamePrefix+te.localName,this.classes.push(te),this.styleSheet.sheet.insertRule("."+te.name+" {"+te.style+"}",this.styleSheet.sheet.cssRules.length),te},ae.prototype.addRule=function(te){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(te),this.styleSheet.sheet.insertRule(te.selector+" {"+te.style+"}",this.styleSheet.sheet.cssRules.length)},ae.prototype.addStyleSheet=function(){var te;this.styleSheet=document.createElement("style"),((te=this.styleSheetRoot)!==null&&te!==void 0?te:document.head).appendChild(this.styleSheet),this.addRule(new Je("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Je("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new Je("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new Pe("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new Pe("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},ae.prototype.removeStyleSheet=function(){var te;this.styleSheet&&(((te=this.styleSheetRoot)!==null&&te!==void 0?te:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ae}(),Je=function(ae,te){this.selector=ae,this.style=te},Pe=function(ae,te){this.localName=ae,this.style=te},dt=function(){function ae(te,ee,oe,ue,re){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=te,this.displayMode=ee,this.markerItems=oe,this.uiStyleSettings=ue,this.styles=re,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ae.prototype.show=function(te){var ee=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=te,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var oe=document.createElement("div");oe.className=this.toolbarBlockStyleClass.name,oe.style.whiteSpace="nowrap",this.uiContainer.appendChild(oe),this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(re){var ve=document.createElement("div");ve.className=""+ee.toolbarButtonStyleClass.name,ve.setAttribute("data-type-name",re.typeName),ve.innerHTML=re.icon,ve.addEventListener("click",function(){ee.markerToolbarButtonClicked(ve,re)}),ee.buttons.push(ve),ee.markerButtons.push(ve)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var ue=document.createElement("div");ue.className=this.toolbarBlockStyleClass.name,ue.style.whiteSpace="nowrap",ue.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ue),this.addActionButton(ue,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(ue,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},ae.prototype.addButtonClickListener=function(te){this.buttonClickListeners.push(te)},ae.prototype.removeButtonClickListener=function(te){this.buttonClickListeners.indexOf(te)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(te),1)},ae.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ae.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var te=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ee=0;ee<this.markerButtons.length;ee++)ee<te||ee===te&&this.markerButtons.length-1===te?this.markerButtonBlock.appendChild(this.markerButtons[ee]):(ee===te&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[ee]))}},ae.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},ae.prototype.resetButtonStyles=function(){var te=this;this.buttons.forEach(function(ee){ee.className=ee.className.replace(te.uiStyleSettings.toolbarButtonStyleColorsClassName?te.uiStyleSettings.toolbarButtonStyleColorsClassName:te.toolbarButtonStyleColorsClass.name,"").trim(),ee.className=ee.className.replace(te.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?te.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:te.toolbarActiveButtonStyleColorsClass.name,"").trim(),ee.className+=" "+(te.uiStyleSettings.toolbarButtonStyleColorsClassName?te.uiStyleSettings.toolbarButtonStyleColorsClassName:te.toolbarButtonStyleColorsClass.name)})},ae.prototype.addActionButton=function(te,ee,oe){var ue=this,re=document.createElement("div");switch(re.className=""+this.toolbarButtonStyleClass.name,re.innerHTML=ee,re.setAttribute("data-action",oe),re.addEventListener("click",function(){ue.actionToolbarButtonClicked(re,oe)}),oe){case"select":re.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":re.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":re.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":re.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":re.style.fill=this.uiStyleSettings.closeButtonColor}te.appendChild(re),this.buttons.push(re)},ae.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Pe("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new Pe("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Pe("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Pe("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new Pe("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var te=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Pe("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*te)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*te)+`px;
padding: `+te+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Pe("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Pe("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Je("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new Je("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},ae.prototype.markerToolbarButtonClicked=function(te,ee){this.setActiveButton(te),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("marker",ee)}),this.markerButtonOverflowBlock.style.display="none"},ae.prototype.actionToolbarButtonClicked=function(te,ee){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("action",ee)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ae.prototype.setActiveButton=function(te){this.resetButtonStyles(),te.className=te.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),te.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ae.prototype.setActiveMarkerButton=function(te){var ee=this.markerButtons.find(function(oe){return oe.getAttribute("data-type-name")===te});ee&&this.setActiveButton(ee)},ae.prototype.setCurrentMarker=function(te){var ee=this;this.currentMarker=te,this.buttons.filter(function(oe){return/delete|notes/.test(oe.getAttribute("data-action"))}).forEach(function(oe){ee.currentMarker===void 0?(oe.style.fillOpacity="0.4",oe.style.pointerEvents="none"):(oe.style.fillOpacity="1",oe.style.pointerEvents="all")})},ae}(),Ze=function(){function ae(te,ee,oe,ue){this.panels=[],this.panelButtons=[],this.markerjsContainer=te,this.displayMode=ee,this.uiStyleSettings=oe,this.styles=ue,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ae.prototype.addStyles=function(){var te;this.toolboxStyleClass=this.styles.addClass(new Pe("toolbox",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: column;
font-family: sans-serif;
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
box-sizing: content-box;
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolboxStyleColorsClass=this.styles.addClass(new Pe("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var ee=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Pe("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Pe("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Pe("toolbox-panel-row",`
display: flex;
`+(this.displayMode==="inline"?"position: absolute;":"")+`
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
cursor: default;
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
`+(this.displayMode==="inline"?"width: 100%;":"")+`
box-sizing: content-box;
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new Pe("toolbox-panel-row_colors",`
background-color: `+((te=this.uiStyleSettings.toolboxBackgroundColor)!==null&&te!==void 0?te:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Pe("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*ee)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*ee)+`px;
padding: `+ee+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Pe("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Pe("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new Je("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Je("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},ae.prototype.show=function(te){var ee;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=te,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ae.prototype.setPanelButtons=function(te){var ee,oe,ue=this;this.panels=te,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((oe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&oe!==void 0?oe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(re){var ve;re.uiStyleSettings=ue.uiStyleSettings;var we=document.createElement("div");we.className=ue.toolboxButtonStyleClass.name+" "+((ve=ue.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ve!==void 0?ve:ue.toolboxButtonStyleColorsClass.name),we.innerHTML=re.icon,we.title=re.title,we.addEventListener("click",function(){ue.panelButtonClick(re)}),ue.panelButtons.push(we),ue.buttonRow.appendChild(we)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ae.prototype.panelButtonClick=function(te){var ee=this,oe=-1;if(te!==this.activePanel){oe=this.panels.indexOf(te),this.panelRow.innerHTML="";var ue=te.getUi();ue.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ue),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=te}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ee.displayMode==="inline"?ee.panelRow.style.display="none":ee.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(re,ve){var we,ft;re.className=ee.toolboxButtonStyleClass.name+" "+(ve===oe?""+((we=ee.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&we!==void 0?we:ee.toolboxActiveButtonStyleColorsClass.name):""+((ft=ee.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ft!==void 0?ft:ee.toolboxButtonStyleColorsClass.name))})},ae}(),Ce=function(ae,te){this.title=ae,this.icon=te},Te=function(ae){function te(ee,oe,ue,re){var ve=ae.call(this,ee,re||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return ve.colors=[],ve.addTransparent=!1,ve.colorBoxes=[],ve.colors=oe,ve.currentColor=ue,ve.setCurrentColor=ve.setCurrentColor.bind(ve),ve.getColorBox=ve.getColorBox.bind(ve),ve}return Qe(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.whiteSpace="nowrap",this.colors.forEach(function(ue){var re=ee.getColorBox(ue);oe.appendChild(re),ee.colorBoxes.push(re)}),oe},te.prototype.getColorBox=function(ee){var oe=this,ue=this.uiStyleSettings.toolbarHeight/4,re=this.uiStyleSettings.toolbarHeight-ue,ve=document.createElement("div");ve.style.display="inline-block",ve.style.boxSizing="content-box",ve.style.width=re-2+"px",ve.style.height=re-2+"px",ve.style.padding="1px",ve.style.marginRight="2px",ve.style.marginBottom="2px",ve.style.borderWidth="2px",ve.style.borderStyle="solid",ve.style.borderRadius=(re+2)/2+"px",ve.style.borderColor=ee===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ve.addEventListener("click",function(){oe.setCurrentColor(ee,ve)});var we=document.createElement("div");return we.style.display="inline-block",we.style.width=re-2+"px",we.style.height=re-2+"px",we.style.backgroundColor=ee,we.style.borderRadius=re/2+"px",ee==="transparent"&&(we.style.fill=this.uiStyleSettings.toolboxAccentColor,we.innerHTML=`<svg viewBox="0 0 24 24">
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
</svg>`),ve.appendChild(we),ve},te.prototype.setCurrentColor=function(ee,oe){var ue=this;this.currentColor=ee,this.colorBoxes.forEach(function(re){re.style.borderColor=re===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ee)},te}(Ce),_e=function(){function ae(te,ee,oe){this._state="new",this._isSelected=!1,this._container=te,this._overlayContainer=ee,this.globalSettings=oe,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ae.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ae.prototype.ownsTarget=function(te){return!1},Object.defineProperty(ae.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ae.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ae.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ae.prototype.pointerDown=function(te,ee){},ae.prototype.dblClick=function(te,ee){},ae.prototype.manipulate=function(te){},ae.prototype.pointerUp=function(te){this.stateChanged()},ae.prototype.dispose=function(){},ae.prototype.addMarkerVisualToContainer=function(te){this.container.childNodes.length>0?this.container.insertBefore(te,this.container.childNodes[0]):this.container.appendChild(te)},ae.prototype.getState=function(){return{typeName:ae.typeName,state:this.state,notes:this.notes}},ae.prototype.restoreState=function(te){this._state=te.state,this.notes=te.notes},ae.prototype.scale=function(te,ee){},ae.prototype.colorChanged=function(te){this.onColorChanged&&this.onColorChanged(te),this.stateChanged()},ae.prototype.fillColorChanged=function(te){this.onFillColorChanged&&this.onFillColorChanged(te),this.stateChanged()},ae.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var te=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),te.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(te)&&this.onStateChanged(this)}},ae.typeName="MarkerBase",ae}(),rt=function(){function ae(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ae.prototype.findGripByVisual=function(te){return this.topLeft.ownsTarget(te)?this.topLeft:this.topCenter.ownsTarget(te)?this.topCenter:this.topRight.ownsTarget(te)?this.topRight:this.centerLeft.ownsTarget(te)?this.centerLeft:this.centerRight.ownsTarget(te)?this.centerRight:this.bottomLeft.ownsTarget(te)?this.bottomLeft:this.bottomCenter.ownsTarget(te)?this.bottomCenter:this.bottomRight.ownsTarget(te)?this.bottomRight:void 0},ae}(),gt=function(){function ae(){this.GRIP_SIZE=10,this.visual=Be.createGroup(),this.visual.appendChild(Be.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Be.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ae.prototype.ownsTarget=function(te){return te===this.visual||te===this.visual.childNodes[0]||te===this.visual.childNodes[1]},ae}(),Pt=function(){function ae(){}return ae.toITransformMatrix=function(te){return{a:te.a,b:te.b,c:te.c,d:te.d,e:te.e,f:te.f}},ae.toSVGMatrix=function(te,ee){return te.a=ee.a,te.b=ee.b,te.c=ee.c,te.d=ee.d,te.e=ee.e,te.f=ee.f,te},ae}(),ht=function(ae){function te(ee,oe,ue){var re=ae.call(this,ee,oe,ue)||this;return re.left=0,re.top=0,re.width=0,re.height=0,re.defaultSize={x:50,y:20},re.offsetX=0,re.offsetY=0,re.rotationAngle=0,re.CB_DISTANCE=10,re._suppressMarkerCreateEvent=!1,re.container.transform.baseVal.appendItem(Be.createTransform()),re.setupControlBox(),re}return Qe(te,ae),Object.defineProperty(te.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"visual",{get:function(){return this._visual},set:function(ee){this._visual=ee;var oe=Be.createTransform();this._visual.transform.baseVal.appendItem(oe)},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(ee){return!!ae.prototype.ownsTarget.call(this,ee)||!!(this.controlGrips.findGripByVisual(ee)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ee))},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.left=ee.x,this.top=ee.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ue=this.unrotatePoint(ee);if(this.manipulationStartX=ue.x,this.manipulationStartY=ue.y,this.offsetX=ue.x-this.left,this.offsetY=ue.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(oe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(oe)){this.activeGrip=this.rotatorGrip;var re=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=re.x-this.width/2,this.top=re.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ve=this.container.transform.baseVal.getItem(0);ve.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ve,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},te.prototype.pointerUp=function(ee){var oe=this.state;ae.prototype.pointerUp.call(this,ee),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ee),this._state="select",oe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},te.prototype.moveVisual=function(ee){this.visual.style.transform="translate("+ee.x+"px, "+ee.y+"px)"},te.prototype.manipulate=function(ee){var oe=this.unrotatePoint(ee);this.state==="creating"?this.resize(ee):this.state==="move"?(this.left=this.manipulationStartLeft+(oe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(oe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(oe):this.state==="rotate"&&this.rotate(ee)},te.prototype.resize=function(ee){var oe=this.manipulationStartLeft,ue=this.manipulationStartWidth,re=this.manipulationStartTop,ve=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:oe=this.manipulationStartLeft+ee.x-this.manipulationStartX,ue=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ue=this.manipulationStartWidth+ee.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:re=this.manipulationStartTop+ee.y-this.manipulationStartY,ve=this.manipulationStartHeight+this.manipulationStartTop-re;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ve=this.manipulationStartHeight+ee.y-this.manipulationStartY}ue>=0?(this.left=oe,this.width=ue):(this.left=oe+ue,this.width=-ue),ve>=0?(this.top=re,this.height=ve):(this.top=re+ve,this.height=-ve),this.setSize()},te.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},te.prototype.rotate=function(ee){if(Math.abs(ee.x-this.centerX)>.1){var oe=Math.sign(ee.x-this.centerX);this.rotationAngle=180*Math.atan((ee.y-this.centerY)/(ee.x-this.centerX))/Math.PI+90*oe,this.applyRotation()}},te.prototype.applyRotation=function(){var ee=this.container.transform.baseVal.getItem(0);ee.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ee,0)},te.prototype.rotatePoint=function(ee){if(this.rotationAngle===0)return ee;var oe=this.container.getCTM(),ue=Be.createPoint(ee.x,ee.y);return{x:(ue=ue.matrixTransform(oe)).x,y:ue.y}},te.prototype.unrotatePoint=function(ee){if(this.rotationAngle===0)return ee;var oe=this.container.getCTM();oe=oe.inverse();var ue=Be.createPoint(ee.x,ee.y);return{x:(ue=ue.matrixTransform(oe)).x,y:ue.y}},te.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=Be.createGroup();var ee=Be.createTransform();ee.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ee),this.container.appendChild(this.controlBox),this.controlRect=Be.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=Be.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new rt,this.addControlGrips(),this.controlBox.style.display="none"},te.prototype.adjustControlBox=function(){var ee=this.controlBox.transform.baseVal.getItem(0);ee.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ee,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},te.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},te.prototype.createGrip=function(){var ee=new gt;return ee.visual.transform.baseVal.appendItem(Be.createTransform()),this.controlBox.appendChild(ee.visual),ee},te.prototype.positionGrips=function(){var ee=this.controlGrips.topLeft.GRIP_SIZE,oe=-ee/2,ue=oe,re=(this.width+this.CB_DISTANCE)/2-ee/2,ve=(this.height+this.CB_DISTANCE)/2-ee/2,we=this.height+this.CB_DISTANCE-ee/2,ft=this.width+this.CB_DISTANCE-ee/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,ue),this.positionGrip(this.controlGrips.topCenter.visual,re,ue),this.positionGrip(this.controlGrips.topRight.visual,ft,ue),this.positionGrip(this.controlGrips.centerLeft.visual,oe,ve),this.positionGrip(this.controlGrips.centerRight.visual,ft,ve),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,we),this.positionGrip(this.controlGrips.bottomCenter.visual,re,we),this.positionGrip(this.controlGrips.bottomRight.visual,ft,we),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,re,ue-3*this.CB_DISTANCE)},te.prototype.positionGrip=function(ee,oe,ue){var re=ee.transform.baseVal.getItem(0);re.setTranslate(oe,ue),ee.transform.baseVal.replaceItem(re,0)},te.prototype.hideControlBox=function(){this.controlBox.style.display="none"},te.prototype.showControlBox=function(){this.controlBox.style.display=""},te.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Pt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Pt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ae.prototype.getState.call(this))},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.left=oe.left,this.top=oe.top,this.width=oe.width,this.height=oe.height,this.rotationAngle=oe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Pt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Pt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,oe.containerTransformMatrix))},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe);var ue=this.rotatePoint({x:this.left,y:this.top}),re=this.unrotatePoint({x:ue.x*ee,y:ue.y*oe});this.left=re.x,this.top=re.y,this.width=this.width*ee,this.height=this.height*oe,this.adjustControlBox()},te}(_e),it=function(ae){function te(ee,oe,ue){var re=ae.call(this,ee,oe,ue)||this;return re.fillColor="transparent",re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.opacity=1,re.setStrokeColor=re.setStrokeColor.bind(re),re.setFillColor=re.setFillColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.createVisual=re.createVisual.bind(re),re}return Qe(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=Be.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.setSize()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),Be.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(ee){ae.prototype.pointerUp.call(this,ee),this.setSize()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.visual&&Be.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&Be.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&Be.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&Be.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ae.prototype.getState.call(this))},te.prototype.restoreState=function(ee){var oe=ee;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize()},te.title="Rectangle marker",te}(ht),nt=function(ae){function te(ee,oe,ue,re){var ve=ae.call(this,ee,re||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return ve.widths=[],ve.widthBoxes=[],ve.widths=oe,ve.currentWidth=ue,ve.setCurrentWidth=ve.setCurrentWidth.bind(ve),ve}return Qe(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.widths.forEach(function(ue){var re=document.createElement("div");re.style.display="flex",re.style.flexGrow="2",re.style.alignItems="center",re.style.justifyContent="space-between",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.borderColor=ue===ee.currentWidth?ee.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){ee.setCurrentWidth(ue,re)}),oe.appendChild(re);var ve=document.createElement("div");ve.innerText=ue.toString(),ve.style.marginRight="5px",re.appendChild(ve);var we=document.createElement("div");we.style.minHeight="20px",we.style.flexGrow="2",we.style.display="flex",we.style.alignItems="center";var ft=document.createElement("hr");ft.style.minWidth="20px",ft.style.border="0px",ft.style.borderTop=ue+"px solid "+ee.uiStyleSettings.toolboxColor,ft.style.flexGrow="2",we.appendChild(ft),re.appendChild(we),ee.widthBoxes.push(re)}),oe},te.prototype.setCurrentWidth=function(ee,oe){var ue=this;this.currentWidth=ee,this.widthBoxes.forEach(function(re){re.style.borderColor=re===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},te}(Ce),Fe=function(ae){function te(ee,oe,ue,re){var ve=ae.call(this,ee,re||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return ve.styles=[],ve.styleBoxes=[],ve.styles=oe,ve.currentStyle=ue,ve.setCurrentStyle=ve.setCurrentStyle.bind(ve),ve}return Qe(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.styles.forEach(function(ue){var re=document.createElement("div");re.style.display="flex",re.style.alignItems="center",re.style.justifyContent="space-between",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.overflow="hidden",re.style.maxWidth=100/ee.styles.length-5+"%",re.style.borderColor=ue===ee.currentStyle?ee.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){ee.setCurrentStyle(ue,re)}),oe.appendChild(re);var ve=document.createElement("div");ve.style.minHeight="20px",ve.style.flexGrow="2",ve.style.overflow="hidden";var we=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ee.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(ue!==""?'stroke-dasharray="'+ue+'"':"")+` />
</svg>`;ve.innerHTML=we,re.appendChild(ve),ee.styleBoxes.push(re)}),oe},te.prototype.setCurrentStyle=function(ee,oe){var ue=this;this.currentStyle=ee,this.styleBoxes.forEach(function(re){re.style.borderColor=re===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},te}(Ce),kt=function(ae){function te(ee,oe,ue){var re=ae.call(this,ee,oe,ue)||this;return re.strokeColor=ue.defaultColor,re.strokeWidth=ue.defaultStrokeWidth,re.strokeDasharray=ue.defaultStrokeDasharray,re.strokePanel=new Te("Line color",ue.defaultColorSet,ue.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new nt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Fe("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return Qe(te,ae),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="FrameMarker",te.title="Frame marker",te.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',te}(it),lt=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},et=function(ae){function te(ee,oe,ue){var re=ae.call(this,ee,oe,ue)||this;return re.x1=0,re.y1=0,re.x2=0,re.y2=0,re.defaultLength=50,re.manipulationStartX=0,re.manipulationStartY=0,re.manipulationStartX1=0,re.manipulationStartY1=0,re.manipulationStartX2=0,re.manipulationStartY2=0,re.setupControlBox(),re}return Qe(te,ae),te.prototype.ownsTarget=function(ee){return!!ae.prototype.ownsTarget.call(this,ee)||!(!this.grip1.ownsTarget(ee)&&!this.grip2.ownsTarget(ee))},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.manipulationStartX=ee.x,this.manipulationStartY=ee.y,this.state==="new"&&(this.x1=ee.x,this.y1=ee.y,this.x2=ee.x,this.y2=ee.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(oe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(oe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},te.prototype.pointerUp=function(ee){var oe=this.state;ae.prototype.pointerUp.call(this,ee),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(ee),this._state="select",oe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},te.prototype.adjustVisual=function(){},te.prototype.manipulate=function(ee){this.state==="creating"?this.resize(ee):this.state==="move"?(this.x1=this.manipulationStartX1+ee.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ee.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ee.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ee.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ee)},te.prototype.resize=function(ee){switch(this.activeGrip){case this.grip1:this.x1=ee.x,this.y1=ee.y;break;case this.grip2:case void 0:this.x2=ee.x,this.y2=ee.y}this.adjustVisual(),this.adjustControlBox()},te.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=Be.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},te.prototype.adjustControlBox=function(){this.positionGrips()},te.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},te.prototype.createGrip=function(){var ee=new gt;return ee.visual.transform.baseVal.appendItem(Be.createTransform()),this.controlBox.appendChild(ee.visual),ee},te.prototype.positionGrips=function(){var ee=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ee/2,this.y1-ee/2),this.positionGrip(this.grip2.visual,this.x2-ee/2,this.y2-ee/2)},te.prototype.positionGrip=function(ee,oe,ue){var re=ee.transform.baseVal.getItem(0);re.setTranslate(oe,ue),ee.transform.baseVal.replaceItem(re,0)},te.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ae.prototype.getState.call(this))},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.x1=oe.x1,this.y1=oe.y1,this.x2=oe.x2,this.y2=oe.y2},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.x1=this.x1*ee,this.y1=this.y1*oe,this.x2=this.x2*ee,this.y2=this.y2*oe,this.adjustVisual(),this.adjustControlBox()},te}(_e),St=function(ae){function te(ee,oe,ue){var re=ae.call(this,ee,oe,ue)||this;return re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.setStrokeColor=re.setStrokeColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.strokeColor=ue.defaultColor,re.strokeWidth=ue.defaultStrokeWidth,re.strokeDasharray=ue.defaultStrokeDasharray,re.strokePanel=new Te("Line color",ue.defaultColorSet,ue.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new nt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Fe("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return Qe(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.selectorLine&&ee!==this.visibleLine)},te.prototype.createVisual=function(){this.visual=Be.createGroup(),this.selectorLine=Be.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Be.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},te.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),Be.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Be.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Be.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.adjustVisual(),this.colorChanged(ee)},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.adjustVisual()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.createVisual(),this.adjustVisual()},te.typeName="LineMarker",te.title="Line marker",te.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',te}(et),Me=function(ae){function te(ee,oe,ue,re){var ve=ae.call(this,ee,re||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return ve.fonts=[],ve.fontBoxes=[],ve.fonts=oe,ve.currentFont=ue,ve.setCurrentFont=ve.setCurrentFont.bind(ve),ve}return Qe(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.flexGrow="2",this.fonts.forEach(function(ue){var re=document.createElement("div");re.style.display="inline-block",re.style.alignItems="center",re.style.justifyContent="space-between",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.overflow="hidden",re.style.maxWidth=100/ee.fonts.length-5+"%",re.style.borderColor=ue===ee.currentFont?ee.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){ee.setCurrentFont(ue,re)}),oe.appendChild(re);var ve=document.createElement("div");ve.style.display="flex",ve.style.minHeight="20px",ve.style.flexGrow="2",ve.style.fontFamily=ue,ve.style.overflow="hidden";var we=document.createElement("div");we.style.whiteSpace="nowrap",we.style.overflow="hidden",we.style.textOverflow="ellipsis",we.innerHTML="The quick brown fox jumps over the lazy dog",ve.appendChild(we),re.appendChild(ve),ee.fontBoxes.push(re)}),oe},te.prototype.setCurrentFont=function(ee,oe){var ue=this;this.currentFont=ee,this.fontBoxes.forEach(function(re){re.style.borderColor=re===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},te}(Ce),Ke=function(ae){function te(ee,oe,ue){var re=ae.call(this,ee,oe,ue)||this;return re.color="transparent",re.padding=5,re.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",re.text=re.DEFAULT_TEXT,re.isMoved=!1,re.color=ue.defaultColor,re.fontFamily=ue.defaultFontFamily,re.defaultSize={x:100,y:30},re.setColor=re.setColor.bind(re),re.setFont=re.setFont.bind(re),re.renderText=re.renderText.bind(re),re.sizeText=re.sizeText.bind(re),re.textEditDivClicked=re.textEditDivClicked.bind(re),re.showTextEditor=re.showTextEditor.bind(re),re.setSize=re.setSize.bind(re),re.positionTextEditor=re.positionTextEditor.bind(re),re.colorPanel=new Te("Color",ue.defaultColorSet,ue.defaultColor),re.colorPanel.onColorChanged=re.setColor,re.fontFamilyPanel=new Me("Font",ue.defaultFontFamilies,ue.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re}return Qe(te,ae),te.prototype.ownsTarget=function(ee){if(ae.prototype.ownsTarget.call(this,ee)||ee===this.visual||ee===this.textElement||ee===this.bgRectangle)return!0;var oe=!1;return this.textElement.childNodes.forEach(function(ue){ue===ee&&(oe=!0)}),oe},te.prototype.createVisual=function(){this.visual=Be.createGroup(),this.bgRectangle=Be.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Be.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Be.createTransform()),this.textElement.transform.baseVal.appendItem(Be.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.isMoved=!1,this.pointerDownPoint=ee,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.renderText=function(){var ee=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(oe){ee.textElement.appendChild(Be.createTSpan(oe.trim()===""?" ":oe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},te.prototype.getTextScale=function(){var ee=this.textElement.getBBox(),oe=1;if(ee.width>0&&ee.height>0){var ue=(1*this.width-this.width*this.padding*2/100)/ee.width,re=(1*this.height-this.height*this.padding*2/100)/ee.height;oe=Math.min(ue,re)}return oe},te.prototype.getTextPosition=function(ee){var oe=this.textElement.getBBox(),ue=0,re=0;return oe.width>0&&oe.height>0&&(ue=(this.width-oe.width*ee)/2,re=this.height/2-oe.height*ee/2),{x:ue,y:re}},te.prototype.sizeText=function(){var ee=this.textElement.getBBox(),oe=this.getTextScale(),ue=this.getTextPosition(oe);ue.y-=ee.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ue.x+"px, "+ue.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ue.x,ue.y),this.textElement.transform.baseVal.getItem(1).setScale(oe,oe))},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ee.x-this.pointerDownPoint.x)>5||Math.abs(ee.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.isMoved=!0,this.setSize(),this.sizeText()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Be.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Be.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},te.prototype.pointerUp=function(ee){var oe=this.state;oe==="creating"&&(this._suppressMarkerCreateEvent=!0),ae.prototype.pointerUp.call(this,ee),this.setSize(),(oe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.showTextEditor=function(){var ee=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(oe){oe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var oe=Number.parseFloat(ee.textEditor.style.fontSize);ee.textEditor.clientWidth>=Number.parseInt(ee.textEditor.style.maxWidth)&&oe>.9;)oe-=.1,ee.textEditor.style.fontSize=Math.max(oe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(oe){if(oe.clipboardData){var ue=oe.clipboardData.getData("text"),re=window.getSelection();if(!re.rangeCount)return!1;re.deleteFromDocument(),re.getRangeAt(0).insertNode(document.createTextNode(ue)),oe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ee.textEditDivClicked(ee.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},te.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ee=this.getTextScale(),oe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ue=this.textElement.getBBox(),re={x:ue.width*ee,y:ue.height*ee};oe.x-=re.x/2,oe.y-=re.y/2,this.textEditor.style.top=oe.y+"px",this.textEditor.style.left=oe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-oe.x+"px",this.textEditor.style.fontSize=Math.max(16*ee,12)+"px",this.textElement.style.display="none"}},te.prototype.textEditDivClicked=function(ee){this.text=ee.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},te.prototype.select=function(){ae.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},te.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ae.prototype.deselect.call(this)},te.prototype.dblClick=function(ee,oe){ae.prototype.dblClick.call(this,ee,oe),this.showTextEditor()},te.prototype.setColor=function(ee){this.textElement&&Be.setAttributes(this.textElement,[["fill",ee]]),this.color=ee,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ee)},te.prototype.setFont=function(ee){this.textElement&&Be.setAttributes(this.textElement,[["font-family",ee]]),this.fontFamily=ee,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},te.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},te.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){var oe=ee;this.color=oe.color,this.fontFamily=oe.fontFamily,this.padding=oe.padding,this.text=oe.text,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize(),this.sizeText(),this.positionTextEditor()},te.typeName="TextMarker",te.title="Text marker",te.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',te}(ht),ze=function(ae){function te(ee,oe,ue){var re=ae.call(this,ee,oe,ue)||this;return re.color="transparent",re.lineWidth=3,re.drawing=!1,re.pixelRatio=1,re.color=ue.defaultColor,re.lineWidth=ue.defaultStrokeWidth,re.pixelRatio=ue.freehandPixelRatio,re.setColor=re.setColor.bind(re),re.addCanvas=re.addCanvas.bind(re),re.finishCreation=re.finishCreation.bind(re),re.setLineWidth=re.setLineWidth.bind(re),re.colorPanel=new Te("Color",ue.defaultColorSet,ue.defaultColor),re.colorPanel.onColorChanged=re.setColor,re.lineWidthPanel=new nt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),re.lineWidthPanel.onWidthChanged=re.setLineWidth,re}return Qe(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.drawingImage)},te.prototype.createVisual=function(){this.visual=Be.createGroup(),this.drawingImage=Be.createImage(),this.visual.appendChild(this.drawingImage);var ee=Be.createTransform();this.visual.transform.baseVal.appendItem(ee),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(ee.x,ee.y),this.drawing=!0):ae.prototype.pointerDown.call(this,ee,oe)},te.prototype.manipulate=function(ee){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ee.x,ee.y),this.canvasContext.stroke()):ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),Be.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Be.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(ee){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ae.prototype.pointerUp.call(this,ee)},te.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},te.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.select.call(this)},te.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.deselect.call(this)},te.prototype.finishCreation=function(){for(var ee=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),oe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ue=oe[0],re=oe[1],ve=oe[2],we=oe[3],ft=!1,Oe=0;Oe<this.canvasElement.height;Oe++)for(var Ye=0;Ye<this.canvasElement.width;Ye++)ee.data[Oe*this.canvasElement.width*4+4*Ye+3]>0&&(ft=!0,Oe<re&&(re=Oe),Ye<ue&&(ue=Ye),Oe>we&&(we=Oe),Ye>ve&&(ve=Ye));if(ft){this.left=ue/this.pixelRatio,this.top=re/this.pixelRatio,this.width=(ve-ue)/this.pixelRatio,this.height=(we-re)/this.pixelRatio;var mt=document.createElement("canvas");mt.width=ve-ue,mt.height=we-re,mt.getContext("2d").putImageData(this.canvasContext.getImageData(ue,re,ve-ue,we-re),0,0),this.drawingImgUrl=mt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},te.prototype.setDrawingImage=function(){Be.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Be.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},te.prototype.setColor=function(ee){this.color=ee,this.colorChanged(ee)},te.prototype.setLineWidth=function(ee){this.lineWidth=ee},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({drawingImgUrl:this.drawingImgUrl},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){this.createVisual(),ae.prototype.restoreState.call(this,ee),this.drawingImgUrl=ee.drawingImgUrl,this.setDrawingImage()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setDrawingImage()},te.typeName="FreehandMarker",te.title="Freehand marker",te.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',te}(ht),se=function(ae){function te(ee,oe,ue){var re=ae.call(this,ee,ue||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return re.typeBoxes=[],re.currentType=oe,re.setCurrentType=re.setCurrentType.bind(re),re}return Qe(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2";for(var ue=function(we){var ft="both";switch(we){case 0:ft="both";break;case 1:ft="start";break;case 2:ft="end";break;case 3:ft="none"}var Oe=document.createElement("div");if(Oe.style.display="flex",Oe.style.flexGrow="2",Oe.style.alignItems="center",Oe.style.justifyContent="space-between",Oe.style.padding="5px",Oe.style.borderWidth="2px",Oe.style.borderStyle="solid",Oe.style.borderColor=ft===re.currentType?re.uiStyleSettings.toolboxAccentColor:"transparent",Oe.addEventListener("click",function(){ee.setCurrentType(ft,Oe)}),oe.appendChild(Oe),ft==="both"||ft==="start"){var Ye=document.createElement("div");Ye.style.display="flex",Ye.style.alignItems="center",Ye.style.minHeight="20px",Ye.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Ye.style.marginLeft="5px",Oe.appendChild(Ye)}var mt=document.createElement("div");mt.style.display="flex",mt.style.alignItems="center",mt.style.minHeight="20px",mt.style.flexGrow="2";var Bt=document.createElement("hr");if(Bt.style.minWidth="20px",Bt.style.border="0px",Bt.style.borderTop="3px solid "+(re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxColor:"#eeeeee"),Bt.style.flexGrow="2",mt.appendChild(Bt),Oe.appendChild(mt),ft==="both"||ft==="end"){var Et=document.createElement("div");Et.style.display="flex",Et.style.alignItems="center",Et.style.minHeight="20px",Et.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Et.style.marginRight="5px",Oe.appendChild(Et)}re.typeBoxes.push(Oe)},re=this,ve=0;ve<4;ve++)ue(ve);return oe},te.prototype.setCurrentType=function(ee,oe){var ue=this;this.currentType=ee,this.typeBoxes.forEach(function(re){re.style.borderColor=re===oe?ue.uiStyleSettings!==void 0?ue.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},te}(Ce),qe=function(ae){function te(ee,oe,ue){var re=ae.call(this,ee,oe,ue)||this;return re.arrowType="end",re.arrowBaseHeight=10,re.arrowBaseWidth=10,re.getArrowPoints=re.getArrowPoints.bind(re),re.setArrowType=re.setArrowType.bind(re),re.arrowTypePanel=new se("Arrow type","end"),re.arrowTypePanel.onArrowTypeChanged=re.setArrowType,re}return Qe(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.arrow1&&ee!==this.arrow2)},te.prototype.getArrowPoints=function(ee,oe){var ue=this.arrowBaseWidth+2*this.strokeWidth,re=this.arrowBaseHeight+2*this.strokeWidth;return ee-ue/2+","+(oe+re/2)+" "+ee+","+(oe-re/2)+" "+(ee+ue/2)+","+(oe+re/2)},te.prototype.createTips=function(){this.arrow1=Be.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Be.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Be.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Be.createTransform()),this.visual.appendChild(this.arrow2)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="creating"&&this.createTips()},te.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",Be.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Be.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ee=0;Math.abs(this.x1-this.x2)>.1&&(ee=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var oe=this.arrow1.transform.baseVal.getItem(0);oe.setRotate(ee,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(oe,0);var ue=this.arrow2.transform.baseVal.getItem(0);ue.setRotate(ee+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ue,0)}},te.prototype.setArrowType=function(ee){this.arrowType=ee,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({arrowType:this.arrowType},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.arrowType=oe.arrowType,this.createTips(),this.adjustVisual()},te.typeName="ArrowMarker",te.title="Arrow marker",te.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',te}(St),Le=function(ae){function te(ee,oe,ue){var re=ae.call(this,ee,oe,ue)||this;return re.fillColor=ue.defaultFillColor,re.strokeWidth=0,re.fillPanel=new Te("Color",ue.defaultColorSet,ue.defaultFillColor),re.fillPanel.onColorChanged=re.setFillColor,re}return Qe(te,ae),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="CoverMarker",te.title="Cover marker",te.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',te}(it),Ae=function(ae){function te(ee,oe,ue,re){var ve=ae.call(this,ee,re||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return ve.opacities=[],ve.opacityBoxes=[],ve.opacities=oe,ve.currentOpacity=ue,ve.setCurrentOpacity=ve.setCurrentOpacity.bind(ve),ve}return Qe(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",oe.style.justifyContent="space-between",this.opacities.forEach(function(ue){var re=document.createElement("div");re.style.display="flex",re.style.alignItems="center",re.style.justifyContent="center",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.borderColor=ue===ee.currentOpacity?ee.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){ee.setCurrentOpacity(ue,re)}),oe.appendChild(re);var ve=document.createElement("div");ve.innerText=100*ue+"%",re.appendChild(ve),ee.opacityBoxes.push(re)}),oe},te.prototype.setCurrentOpacity=function(ee,oe){var ue=this;this.currentOpacity=ee,this.opacityBoxes.forEach(function(re){re.style.borderColor=re===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},te}(Ce),ct=function(ae){function te(ee,oe,ue){var re=ae.call(this,ee,oe,ue)||this;return re.setOpacity=re.setOpacity.bind(re),re.fillColor=ue.defaultHighlightColor,re.strokeWidth=0,re.opacity=ue.defaultHighlightOpacity,re.fillPanel=new Te("Color",ue.defaultColorSet,re.fillColor),re.fillPanel.onColorChanged=re.setFillColor,re.opacityPanel=new Ae("Opacity",ue.defaultOpacitySteps,re.opacity),re.opacityPanel.onOpacityChanged=re.setOpacity,re}return Qe(te,ae),te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&Be.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="HighlightMarker",te.title="Highlight marker",te.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',te}(Le),ye='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',ce='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',Ue=function(ae){function te(ee,oe,ue){var re=ae.call(this,ee,oe,ue)||this;return re.bgColor="transparent",re.tipPosition={x:0,y:0},re.tipBase1Position={x:0,y:0},re.tipBase2Position={x:0,y:0},re.tipMoving=!1,re.color=ue.defaultStrokeColor,re.bgColor=ue.defaultFillColor,re.fontFamily=ue.defaultFontFamily,re.defaultSize={x:100,y:30},re.setBgColor=re.setBgColor.bind(re),re.getTipPoints=re.getTipPoints.bind(re),re.positionTip=re.positionTip.bind(re),re.setTipPoints=re.setTipPoints.bind(re),re.colorPanel=new Te("Text color",ue.defaultColorSet,re.color,ye),re.colorPanel.onColorChanged=re.setColor,re.bgColorPanel=new Te("Fill color",ue.defaultColorSet,re.bgColor,ce),re.bgColorPanel.onColorChanged=re.setBgColor,re.fontFamilyPanel=new Me("Font",ue.defaultFontFamilies,ue.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re.tipGrip=new gt,re.tipGrip.visual.transform.baseVal.appendItem(Be.createTransform()),re.controlBox.appendChild(re.tipGrip.visual),re}return Qe(te,ae),te.prototype.ownsTarget=function(ee){return ae.prototype.ownsTarget.call(this,ee)||this.tipGrip.ownsTarget(ee)||this.tip===ee},te.prototype.createTip=function(){Be.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Be.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},te.prototype.pointerDown=function(ee,oe){this.state==="new"&&ae.prototype.pointerDown.call(this,ee,oe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(oe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ae.prototype.pointerDown.call(this,ee,oe)},te.prototype.pointerUp=function(ee){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ae.prototype.pointerUp.call(this,ee);else{var oe=this.state==="creating";ae.prototype.pointerUp.call(this,ee),this.setTipPoints(oe),this.positionTip()}},te.prototype.manipulate=function(ee){if(this.tipMoving){var oe=this.unrotatePoint(ee);this.tipPosition={x:oe.x-this.manipulationStartLeft,y:oe.y-this.manipulationStartTop},this.positionTip()}else ae.prototype.manipulate.call(this,ee)},te.prototype.setBgColor=function(ee){this.bgRectangle&&this.tip&&(Be.setAttributes(this.bgRectangle,[["fill",ee]]),Be.setAttributes(this.tip,[["fill",ee]])),this.bgColor=ee,this.fillColorChanged(ee)},te.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},te.prototype.setTipPoints=function(ee){ee===void 0&&(ee=!1);var oe=Math.min(this.height/2,15),ue=this.height/5;ee&&(this.tipPosition={x:oe+ue/2,y:this.height+20});var re=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?re<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(ue=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:0},this.tipBase2Position={x:oe+ue,y:0}):(this.tipBase1Position={x:0,y:oe},this.tipBase2Position={x:0,y:oe+ue}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?re<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(ue=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-ue,y:0},this.tipBase2Position={x:this.width-oe,y:0}):(this.tipBase1Position={x:this.width,y:oe},this.tipBase2Position={x:this.width,y:oe+ue}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?re<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(ue=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-ue,y:this.height},this.tipBase2Position={x:this.width-oe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-oe-ue},this.tipBase2Position={x:this.width,y:this.height-oe}):re<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(ue=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:this.height},this.tipBase2Position={x:oe+ue,y:this.height}):(this.tipBase1Position={x:0,y:this.height-oe},this.tipBase2Position={x:0,y:this.height-oe-ue})},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.positionTip()},te.prototype.positionTip=function(){Be.setAttributes(this.tip,[["points",this.getTipPoints()]]);var ee=this.tipGrip.visual.transform.baseVal.getItem(0);ee.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(ee,0)},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),te.prototype.select=function(){this.positionTip(),ae.prototype.select.call(this)},te.prototype.getState=function(){var ee=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){var oe=ee;this.bgColor=oe.bgColor,this.tipPosition=oe.tipPosition,ae.prototype.restoreState.call(this,ee),this.createTip(),this.setTipPoints()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.tipPosition={x:this.tipPosition.x*ee,y:this.tipPosition.y*oe},this.positionTip()},te.typeName="CalloutMarker",te.title="Callout marker",te.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',te}(Ke),It=function(ae){function te(ee,oe,ue){var re=ae.call(this,ee,oe,ue)||this;return re.fillColor="transparent",re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.opacity=1,re.strokeColor=ue.defaultColor,re.strokeWidth=ue.defaultStrokeWidth,re.strokeDasharray=ue.defaultStrokeDasharray,re.fillColor=ue.defaultFillColor,re.setStrokeColor=re.setStrokeColor.bind(re),re.setFillColor=re.setFillColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.setOpacity=re.setOpacity.bind(re),re.createVisual=re.createVisual.bind(re),re.strokePanel=new Te("Line color",Ee(ue.defaultColorSet,["transparent"]),ue.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.fillPanel=new Te("Fill color",Ee(ue.defaultColorSet,["transparent"]),re.fillColor,ce),re.fillPanel.onColorChanged=re.setFillColor,re.strokeWidthPanel=new nt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Fe("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re.opacityPanel=new Ae("Opacity",ue.defaultOpacitySteps,re.opacity),re.opacityPanel.onOpacityChanged=re.setOpacity,re}return Qe(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=Be.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.setSize()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),Be.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},te.prototype.pointerUp=function(ee){ae.prototype.pointerUp.call(this,ee),this.setSize()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.visual&&Be.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&Be.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&Be.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&Be.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&Be.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){var oe=ee;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize()},te.typeName="EllipseMarker",te.title="Ellipse marker",te.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',te}(ht),bt=function(ae){function te(ee,oe,ue){return ae.call(this,ee,oe,ue)||this}return Qe(te,ae),Object.defineProperty(te.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.tip1&&ee!==this.tip2)},te.prototype.createTips=function(){this.tip1=Be.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(Be.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Be.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(Be.createTransform()),this.visual.appendChild(this.tip2)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="creating"&&this.createTips()},te.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Be.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Be.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var ee=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),oe=this.tip1.transform.baseVal.getItem(0);oe.setRotate(ee,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(oe,0);var ue=this.tip2.transform.baseVal.getItem(0);ue.setRotate(ee+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ue,0)}},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee),this.createTips(),this.adjustVisual()},te.typeName="MeasurementMarker",te.title="Measurement marker",te.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',te}(St),ge=function(ae){function te(ee,oe,ue){var re=ae.call(this,ee,oe,ue)||this;return re.strokePanel.colors=ue.defaultColorSet,re.fillColor="transparent",re}return Qe(te,ae),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="EllipseFrameMarker",te.title="Ellipse frame marker",te.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',te}(It),He=function(){function ae(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ae.prototype.addUndoStep=function(te){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(te)||(this.undoStack.push(te),JSON.stringify(this.lastRedoStep)!==JSON.stringify(te)&&this.redoStack.splice(0,this.redoStack.length))},ae.prototype.replaceLastUndoStep=function(te){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=te)},ae.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ae.prototype.undo=function(){if(this.undoStack.length>1){var te=this.undoStack.pop();return te!==void 0&&this.redoStack.push(te),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ae.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ae}(),Ge=function(ae){function te(ee,oe,ue){var re=ae.call(this,ee,oe,ue)||this;return re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.curveX=0,re.curveY=0,re.manipulationStartCurveX=0,re.manipulationStartCurveY=0,re.setStrokeColor=re.setStrokeColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.positionGrips=re.positionGrips.bind(re),re.addControlGrips=re.addControlGrips.bind(re),re.adjustVisual=re.adjustVisual.bind(re),re.setupControlBox=re.setupControlBox.bind(re),re.resize=re.resize.bind(re),re.strokeColor=ue.defaultColor,re.strokeWidth=ue.defaultStrokeWidth,re.strokeDasharray=ue.defaultStrokeDasharray,re.strokePanel=new Te("Line color",ue.defaultColorSet,ue.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new nt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Fe("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return Qe(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.selectorCurve&&ee!==this.visibleCurve&&!this.curveGrip.ownsTarget(ee))},te.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},te.prototype.createVisual=function(){this.visual=Be.createGroup(),this.selectorCurve=Be.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Be.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ee.x,this.curveY=ee.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(oe)&&(this.activeGrip=this.curveGrip,this._state="resize")},te.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Be.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Be.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Be.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=Be.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Be.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},te.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ae.prototype.addControlGrips.call(this)},te.prototype.positionGrips=function(){ae.prototype.positionGrips.call(this);var ee=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ee/2,this.curveY-ee/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},te.prototype.manipulate=function(ee){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ee.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ee.y-this.manipulationStartY),ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){this.activeGrip===this.curveGrip&&(this.curveX=ee.x,this.curveY=ee.y),ae.prototype.resize.call(this,ee),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.adjustVisual(),this.colorChanged(ee)},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.adjustVisual()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.adjustVisual()},te.prototype.scale=function(ee,oe){this.curveX=this.curveX*ee,this.curveY=this.curveY*oe,ae.prototype.scale.call(this,ee,oe)},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.curveX=oe.curveX,this.curveY=oe.curveY,this.createVisual(),this.adjustVisual()},te.typeName="CurveMarker",te.title="Curve marker",te.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',te}(et),Tt=function(ae){function te(ee,oe,ue){var re=ae.call(this,ee,oe,ue)||this;return re.fillColor="transparent",re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.textColor="transparent",re.fontSize="1rem",re.isMoved=!1,re.captionText="Caption",re.PADDING=5,re.captionBoxWidth=0,re.captionBoxHeight=0,re.strokeColor=ue.defaultColor,re.strokeWidth=ue.defaultStrokeWidth,re.strokeDasharray=ue.defaultStrokeDasharray,re.fillColor=ue.defaultFillColor,re.textColor=ue.defaultStrokeColor,re.fontFamily=ue.defaultFontFamily,re.fontSize=ue.defaultCaptionFontSize,re.captionText=ue.defaultCaptionText,re.setStrokeColor=re.setStrokeColor.bind(re),re.setFillColor=re.setFillColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.createVisual=re.createVisual.bind(re),re.sizeCaption=re.sizeCaption.bind(re),re.setCaptionText=re.setCaptionText.bind(re),re.showTextEditor=re.showTextEditor.bind(re),re.positionTextEditor=re.positionTextEditor.bind(re),re.finishTextEditing=re.finishTextEditing.bind(re),re.setFont=re.setFont.bind(re),re.setTextColor=re.setTextColor.bind(re),re.strokePanel=new Te("Line color",Ee(ue.defaultColorSet,["transparent"]),re.strokeColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.fillPanel=new Te("Fill color",Ee(ue.defaultColorSet,["transparent"]),re.fillColor,ce),re.fillPanel.onColorChanged=re.setFillColor,re.strokeWidthPanel=new nt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Fe("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re.fontFamilyPanel=new Me("Font",ue.defaultFontFamilies,ue.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re.textColorPanel=new Te("Text color",ue.defaultColorSet,re.textColor,ye),re.textColorPanel.onColorChanged=re.setTextColor,re}return Qe(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.frame&&ee!==this.captionBg&&ee!==this.captionElement)},te.prototype.createVisual=function(){this.visual=Be.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Be.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Be.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=Be.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},te.prototype.setCaptionText=function(ee){this.captionText=ee,this.captionElement.textContent=this.captionText,this.sizeCaption()},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.isMoved=!1,this.pointerDownPoint=ee,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ee.x-this.pointerDownPoint.x)>5||Math.abs(ee.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.setSize()},te.prototype.sizeCaption=function(){var ee=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ee.width+2*this.PADDING,this.captionBoxHeight=ee.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Be.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),Be.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},te.prototype.showTextEditor=function(){var ee=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(oe){oe.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(oe){oe.key==="Enter"&&ee.finishTextEditing(ee.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ee.finishTextEditing(ee.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ee.finishTextEditing(ee.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},te.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},te.prototype.finishTextEditing=function(ee){this.setCaptionText(ee.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},te.prototype.setFont=function(ee){this.captionElement&&Be.setAttributes(this.captionElement,[["font-family",ee]]),this.fontFamily=ee,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},te.prototype.setTextColor=function(ee){this.captionElement&&Be.setAttributes(this.captionElement,[["fill",ee]]),this.textColor=ee,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),Be.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},te.prototype.pointerUp=function(ee){ae.prototype.pointerUp.call(this,ee),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.dblClick=function(ee,oe){ae.prototype.dblClick.call(this,ee,oe),this.showTextEditor()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.frame&&Be.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.captionBg&&Be.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.frame&&Be.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.frame&&Be.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},ae.prototype.getState.call(this));return ee.typeName=this.typeName,ee},te.prototype.restoreState=function(ee){var oe=ee;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.textColor=oe.textColor,this.fontFamily=oe.fontFamily,this.captionText=oe.captionText,this.fontSize=oe.fontSize,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize()},te.typeName="CaptionFrameMarker",te.title="Caption frame marker",te.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',te}(ht),wt=function(){function ae(te,ee){ee===void 0&&(ee=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=te,this.cancelable=ee}return Object.defineProperty(ae.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ae.prototype.preventDefault=function(){this._defaultPrevented=!0},ae}(),Lt=function(ae){function te(ee,oe,ue){var re=ae.call(this,ee,!1)||this;return re.dataUrl=oe,re.state=ue,re}return Qe(te,ae),te}(wt),$e=function(ae){function te(ee,oe,ue){ue===void 0&&(ue=!1);var re=ae.call(this,ee,ue)||this;return re.marker=oe,re}return Qe(te,ae),te}(wt),At=function(){function ae(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return ae.prototype.addEventListener=function(te,ee){this[te].push(ee)},ae.prototype.removeEventListener=function(te,ee){var oe=this[te].indexOf(ee);oe>-1&&this[te].splice(oe,1)},ae}(),st=function(){function ae(te){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new lt,this._isOpen=!1,this.undoRedoManager=new He,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new At,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ae.instanceCounter++,this.styles=new he(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=te,this.targetRoot=document.body,this.width=te.clientWidth,this.height=te.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(ae.prototype,"ALL_MARKER_TYPES",{get:function(){return[kt,ze,qe,Ke,ge,It,ct,Ue,bt,Le,St,Ge,Tt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[kt,ze,qe,Ke,It,ct,Ue]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[kt,ze,qe,Ke,ct]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(te){var ee=this;this._availableMarkerTypes.splice(0),te.forEach(function(oe){if(typeof oe=="string"){var ue=ee.ALL_MARKER_TYPES.find(function(re){return re.typeName===oe});ue!==void 0&&ee._availableMarkerTypes.push(ue)}else ee._availableMarkerTypes.push(oe)})},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(te){this._zoomLevel=te,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ae.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),De.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var te=this;this.styles.styleSheetRoot===void 0&&Ie.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ie.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ee){return ee(new wt(te))})},ae.prototype.render=function(){return xe(this,void 0,void 0,function(){var te;return tt(this,function(ee){switch(ee.label){case 0:return this.setCurrentMarker(),(te=new We).naturalSize=this.renderAtNaturalSize,te.imageType=this.renderImageType,te.imageQuality=this.renderImageQuality,te.markersOnly=this.renderMarkersOnly,te.width=this.renderWidth,te.height=this.renderHeight,[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ee.sent(),[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ee.sent()]}})})},ae.prototype.close=function(te){var ee=this;if(te===void 0&&(te=!1),this.isOpen){var oe=!1;te||this.eventListeners.beforeclose.forEach(function(ue){var re=new wt(ee,!0);ue(re),re.defaultPrevented&&(oe=!0)}),oe||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(ue){return ue(new wt(ee))}),this.detachEvents(),this._isOpen=!1)}},ae.prototype.addMarkersToToolbar=function(){for(var te,ee=[],oe=0;oe<arguments.length;oe++)ee[oe]=arguments[oe];(te=this._availableMarkerTypes).push.apply(te,ee)},ae.prototype.addRenderEventListener=function(te){this.addEventListener("render",function(ee){te(ee.dataUrl,ee.state)})},ae.prototype.removeRenderEventListener=function(te){},ae.prototype.addCloseEventListener=function(te){this.addEventListener("close",function(){te()})},ae.prototype.removeCloseEventListener=function(te){},ae.prototype.setupResizeObserver=function(){var te=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){te.resize(te.target.clientWidth,te.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return te.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ae.prototype.onPopupTargetResize=function(){var te=1*this.target.clientWidth/this.target.clientHeight,ee=this.editorCanvas.clientWidth/te>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*te:this.editorCanvas.clientWidth,oe=ee<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/te;this.resize(ee,oe)},ae.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ae.prototype.resize=function(te,ee){this._isResizing=!0;var oe=te/this.imageWidth,ue=ee/this.imageHeight;this.imageWidth=Math.round(te),this.imageHeight=Math.round(ee),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(oe,ue),this._isResizing=!1},ae.prototype.scaleMarkers=function(te,ee){var oe,ue=this;this._currentMarker&&this._currentMarker instanceof Ke?this._currentMarker.scale(te,ee):(oe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(re){re!==ue._currentMarker&&re.scale(te,ee)}),oe!==void 0&&this.setCurrentMarker(oe)},ae.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},ae.prototype.setTopLeft=function(){var te=this.editingTarget.getBoundingClientRect(),ee=this.editorCanvas.getBoundingClientRect();this.left=te.left-ee.left,this.top=te.top-ee.top},ae.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},ae.prototype.addDefs=function(){for(var te,ee=[],oe=0;oe<arguments.length;oe++)ee[oe]=arguments[oe];this.defs=Be.createDefs(),this.addDefsToImage(),(te=this.defs).append.apply(te,ee)},ae.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},ae.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},ae.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},ae.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},ae.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},ae.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},ae.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},ae.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var te=document.createElement("a");te.href="https://markerjs.com/",te.target="_blank",te.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',te.title="Powered by marker.js",te.style.display="grid",te.style.alignItems="center",te.style.justifyItems="center",te.style.padding="3px",te.style.width="20px",te.style.height="20px",this.logoUI.appendChild(te),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ae.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},ae.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},ae.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ae.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var te=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=te+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new dt(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new Ze(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},ae.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ae.prototype.removeMarker=function(te){this.markerImage.removeChild(te.container),this.markers.indexOf(te)>-1&&this.markers.splice(this.markers.indexOf(te),1),te.dispose()},ae.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},ae.prototype.toolbarButtonClicked=function(te,ee){if(te==="marker"&&ee!==void 0)this.createNewMarker(ee);else if(te==="action")switch(ee){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},ae.prototype.deleteSelectedMarker=function(){var te=this;if(this._currentMarker!==void 0){var ee=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ue){var re=new $e(te,te._currentMarker,!0);ue(re),re.defaultPrevented&&(ee=!0)}),!ee){var oe=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(ue){return ue(new $e(te,oe))})}}},ae.prototype.clear=function(){var te=this,ee=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ve){var we=new $e(te,void 0,!0);ve(we),we.defaultPrevented&&(ee=!0)}),!ee)){this.setCurrentMarker();for(var oe=function(ve){var we=ue.markers[ve];ue.setCurrentMarker(ue.markers[ve]),ue._currentMarker.dispose(),ue.markerImage.removeChild(ue._currentMarker.container),ue.markers.splice(ue.markers.indexOf(ue._currentMarker),1),ue.eventListeners.markerdelete.forEach(function(ft){return ft(new $e(te,we))})},ue=this,re=this.markers.length-1;re>=0;re--)oe(re);this.addUndoStep()}},Object.defineProperty(ae.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ae.prototype.showNotesEditor=function(){var te;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(te=this._currentMarker.notes)!==null&&te!==void 0?te:"",this.overlayContainer.appendChild(this.notesArea))},ae.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},ae.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ae.prototype.addUndoStep=function(){var te=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ee=this.getState(),oe=this.undoRedoManager.getLastUndoStep();if(!oe||oe.width===ee.width&&oe.height===ee.height){var ue=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ee),ue<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(re){return re(new wt(te))})}else this.undoRedoManager.replaceLastUndoStep(ee),this.eventListeners.statechange.forEach(function(re){return re(new wt(te))})}},ae.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ae.prototype.undoStep=function(){var te=this,ee=this.undoRedoManager.undo();ee!==void 0&&(this.restoreState(ee),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new wt(te))}))},ae.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ae.prototype.redoStep=function(){var te=this,ee=this.undoRedoManager.redo();ee!==void 0&&(this.restoreState(ee),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new wt(te))}))},ae.prototype.stepZoom=function(){var te=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=te<this.zoomSteps.length-1?this.zoomSteps[te+1]:this.zoomSteps[0]},ae.prototype.panTo=function(te){this.contentDiv.scrollBy({left:this.prevPanPoint.x-te.x,top:this.prevPanPoint.y-te.y}),this.prevPanPoint=te},ae.prototype.startRenderAndClose=function(){return xe(this,void 0,void 0,function(){var te,ee,oe=this;return tt(this,function(ue){switch(ue.label){case 0:return[4,this.render()];case 1:return te=ue.sent(),ee=this.getState(),this.eventListeners.render.forEach(function(re){return re(new Lt(oe,te,ee))}),this.close(!0),[2]}})})},ae.prototype.getState=function(te){te===!0&&this.setCurrentMarker();var ee={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(oe){return ee.markers.push(oe.getState())}),ee},ae.prototype.restoreState=function(te){var ee=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);te.markers.forEach(function(oe){var ue=ee._availableMarkerTypes.find(function(ve){return ve.typeName===oe.typeName});if(ue!==void 0){var re=ee.addNewMarker(ue);re.restoreState(oe),ee.markers.push(re)}}),te.width&&te.height&&(te.width!==this.imageWidth||te.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/te.width,this.imageHeight/te.height),this.eventListeners.restorestate.forEach(function(oe){return oe(new wt(ee))})},ae.prototype.addNewMarker=function(te){var ee=Be.createGroup();return this.markerImage.appendChild(ee),new te(ee,this.overlayContainer,this.settings)},ae.prototype.createNewMarker=function(te){var ee,oe=this;(ee=typeof te=="string"?this._availableMarkerTypes.find(function(ue){return ue.typeName===te}):te)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(ee),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(ee.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(ue){return ue(new $e(oe,oe._currentMarker))}))},ae.prototype.markerCreated=function(te){var ee=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(te),this.setCurrentMarker(te),te instanceof ze&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(ze):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(oe){return oe(new $e(ee,ee._currentMarker))})},ae.prototype.colorChanged=function(te){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=te,this.settings.defaultStrokeColor=te)},ae.prototype.fillColorChanged=function(te){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=te)},ae.prototype.markerStateChanged=function(te){var ee=this;this.eventListeners.markerchange.forEach(function(oe){return oe(new $e(ee,te))})},ae.prototype.setCurrentMarker=function(te){var ee=this;this._currentMarker!==te&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(oe){return oe(new $e(ee,ee._currentMarker))})),this._currentMarker=te,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(oe){return oe(new $e(ee,ee._currentMarker))}))},ae.prototype.onPointerDown=function(te){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||te.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var ee=this.markers.find(function(oe){return oe.ownsTarget(te.target)});ee!==void 0?(this.setCurrentMarker(ee),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(te.clientX,te.clientY),te.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:te.clientX,y:te.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(te.clientX,te.clientY))},ae.prototype.onDblClick=function(te){if(this._isFocused||this.focus(),this.mode==="select"){var ee=this.markers.find(function(oe){return oe.ownsTarget(te.target)});ee!==void 0&&ee!==this._currentMarker&&this.setCurrentMarker(ee),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(te.clientX,te.clientY),te.target):this.setCurrentMarker()}},ae.prototype.onPointerMove=function(te){this.touchPoints!==1&&te.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||te.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(te.clientX,te.clientY)):this.zoomLevel>1&&this.panTo({x:te.clientX,y:te.clientY}))},ae.prototype.onPointerUp=function(te){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(te.clientX,te.clientY)),this.isDragging=!1,this.addUndoStep()},ae.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ae.prototype.onKeyUp=function(te){this._currentMarker===void 0||this.notesArea!==void 0||te.key!=="Delete"&&te.key!=="Backspace"||this.deleteSelectedMarker()},ae.prototype.clientToLocalCoordinates=function(te,ee){var oe=this.markerImage.getBoundingClientRect();return{x:(te-oe.left)/this.zoomLevel,y:(ee-oe.top)/this.zoomLevel}},ae.prototype.onWindowResize=function(){this.positionUI()},ae.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var te=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=te+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},ae.prototype.addLicenseKey=function(te){De.addKey(te)},ae.prototype.addEventListener=function(te,ee){this.eventListeners.addEventListener(te,ee)},ae.prototype.removeEventListener=function(te,ee){this.eventListeners.removeEventListener(te,ee)},ae.prototype.renderState=function(te){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(te),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ae.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ae.prototype.focus=function(){var te=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ee){return ee(new wt(te))}))},ae.prototype.blur=function(){var te=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ee){return ee(new wt(te))}))},ae.instanceCounter=0,ae}()},6551:function(on,$t,ne){"use strict";ne.d($t,{ZP:function(){return De}});var E=ne(72190),Qe=ne(59301),xe=ne(47273),tt=0,Ee=(0,xe.Z)();function Be(){var We;return Ee?(We=tt,tt+=1):We="TEST_OR_SSR",We}function De(We){var Ie=Qe.useState(),he=(0,E.Z)(Ie,2),Je=he[0],Pe=he[1];return Qe.useEffect(function(){Pe("rc_select_".concat(Be()))},[]),We||Je}},37463:function(on,$t,ne){"use strict";ne.d($t,{Ac:function(){return Dt},Xo:function(){return Vt},Wx:function(){return pt},ZP:function(){return mn},lk:function(){return Pt}});var E=ne(60499),Qe=ne(77654),xe=ne(18642),tt=ne(85899),Ee=ne(72190),Be=ne(42244),De=ne(43749),We=ne(18929),Ie=ne(48736),he=ne(59301),Je=ne(92310),Pe=ne.n(Je),dt=ne(34280),Ze=ne(49658),Ce=ne(8654),Te=function(ut){var ke=ut.className,be=ut.customizeIcon,fe=ut.customizeIconProps,pe=ut.children,Ve=ut.onMouseDown,Xt=ut.onClick,rn=typeof be=="function"?be(fe):be;return he.createElement("span",{className:ke,onMouseDown:function(Ct){Ct.preventDefault(),Ve==null||Ve(Ct)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Xt,"aria-hidden":!0},rn!==void 0?rn:he.createElement("span",{className:Pe()(ke.split(/\s+/).map(function(Yt){return"".concat(Yt,"-icon")}))},pe))},_e=Te,rt=function(ut,ke,be,fe,pe){var Ve=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Xt=arguments.length>6?arguments[6]:void 0,rn=arguments.length>7?arguments[7]:void 0,Yt=he.useMemo(function(){if((0,De.Z)(fe)==="object")return fe.clearIcon;if(pe)return pe},[fe,pe]),Ct=he.useMemo(function(){return!!(!Ve&&fe&&(be.length||Xt)&&!(rn==="combobox"&&Xt===""))},[fe,Ve,be.length,Xt,rn]);return{allowClear:Ct,clearIcon:he.createElement(_e,{className:"".concat(ut,"-clear"),onMouseDown:ke,customizeIcon:Yt},"\xD7")}},gt=he.createContext(null);function Pt(){return he.useContext(gt)}function ht(){var Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,ut=he.useState(!1),ke=(0,Ee.Z)(ut,2),be=ke[0],fe=ke[1],pe=he.useRef(null),Ve=function(){window.clearTimeout(pe.current)};he.useEffect(function(){return Ve},[]);var Xt=function(Yt,Ct){Ve(),pe.current=window.setTimeout(function(){fe(Yt),Ct&&Ct()},Xe)};return[be,Xt,Ve]}function it(){var Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,ut=he.useRef(null),ke=he.useRef(null);he.useEffect(function(){return function(){window.clearTimeout(ke.current)}},[]);function be(fe){(fe||ut.current===null)&&(ut.current=fe),window.clearTimeout(ke.current),ke.current=window.setTimeout(function(){ut.current=null},Xe)}return[function(){return ut.current},be]}function nt(Xe,ut,ke,be){var fe=he.useRef(null);fe.current={open:ut,triggerOpen:ke,customizedTrigger:be},he.useEffect(function(){function pe(Ve){var Xt;if(!((Xt=fe.current)!==null&&Xt!==void 0&&Xt.customizedTrigger)){var rn=Ve.target;rn.shadowRoot&&Ve.composed&&(rn=Ve.composedPath()[0]||rn),fe.current.open&&Xe().filter(function(Yt){return Yt}).every(function(Yt){return!Yt.contains(rn)&&Yt!==rn})&&fe.current.triggerOpen(!1)}}return window.addEventListener("mousedown",pe),function(){return window.removeEventListener("mousedown",pe)}},[])}var Fe=ne(10228);function kt(Xe){return Xe&&![Fe.Z.ESC,Fe.Z.SHIFT,Fe.Z.BACKSPACE,Fe.Z.TAB,Fe.Z.WIN_KEY,Fe.Z.ALT,Fe.Z.META,Fe.Z.WIN_KEY_RIGHT,Fe.Z.CTRL,Fe.Z.SEMICOLON,Fe.Z.EQUALS,Fe.Z.CAPS_LOCK,Fe.Z.CONTEXT_MENU,Fe.Z.F1,Fe.Z.F2,Fe.Z.F3,Fe.Z.F4,Fe.Z.F5,Fe.Z.F6,Fe.Z.F7,Fe.Z.F8,Fe.Z.F9,Fe.Z.F10,Fe.Z.F11,Fe.Z.F12].includes(Xe)}var lt=ne(26112),et=ne(83836);function St(Xe,ut,ke){var be=(0,tt.Z)((0,tt.Z)({},Xe),ke?ut:{});return Object.keys(ut).forEach(function(fe){var pe=ut[fe];typeof pe=="function"&&(be[fe]=function(){for(var Ve,Xt=arguments.length,rn=new Array(Xt),Yt=0;Yt<Xt;Yt++)rn[Yt]=arguments[Yt];return pe.apply(void 0,rn),(Ve=Xe[fe])===null||Ve===void 0?void 0:Ve.call.apply(Ve,[Xe].concat(rn))})}),be}var Me=St,Ke=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],ze=function(ut,ke){var be=ut.prefixCls,fe=ut.id,pe=ut.inputElement,Ve=ut.autoFocus,Xt=ut.autoComplete,rn=ut.editable,Yt=ut.activeDescendantId,Ct=ut.value,Re=ut.open,xt=ut.attrs,Jt=(0,Be.Z)(ut,Ke),gn=pe||he.createElement("input",null),On=gn,Sn=On.ref,Fn=On.props;return(0,Ie.Kp)(!("maxLength"in gn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),gn=he.cloneElement(gn,(0,tt.Z)((0,tt.Z)((0,tt.Z)({type:"search"},Me(Jt,Fn,!0)),{},{id:fe,ref:(0,Ce.sQ)(ke,Sn),autoComplete:Xt||"off",autoFocus:Ve,className:Pe()("".concat(be,"-selection-search-input"),Fn==null?void 0:Fn.className),role:"combobox","aria-expanded":Re||!1,"aria-haspopup":"listbox","aria-owns":"".concat(fe,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(fe,"_list"),"aria-activedescendant":Re?Yt:void 0},xt),{},{value:rn?Ct:"",readOnly:!rn,unselectable:rn?null:"on",style:(0,tt.Z)((0,tt.Z)({},Fn.style),{},{opacity:rn?null:0})})),gn},se=he.forwardRef(ze),qe=se;function Le(Xe){return Array.isArray(Xe)?Xe:Xe!==void 0?[Xe]:[]}var Ae=typeof window!="undefined"&&window.document&&window.document.documentElement,ct=Ae;function ye(Xe){return Xe!=null}function ce(Xe){return!Xe&&Xe!==0}function Ue(Xe){return["string","number"].includes((0,De.Z)(Xe))}function It(Xe){var ut=void 0;return Xe&&(Ue(Xe.title)?ut=Xe.title.toString():Ue(Xe.label)&&(ut=Xe.label.toString())),ut}function bt(Xe,ut){ct?he.useLayoutEffect(Xe,ut):he.useEffect(Xe,ut)}function ge(Xe){var ut;return(ut=Xe.key)!==null&&ut!==void 0?ut:Xe.value}var He=function(ut){ut.preventDefault(),ut.stopPropagation()},Ge=function(ut){var ke=ut.id,be=ut.prefixCls,fe=ut.values,pe=ut.open,Ve=ut.searchValue,Xt=ut.autoClearSearchValue,rn=ut.inputRef,Yt=ut.placeholder,Ct=ut.disabled,Re=ut.mode,xt=ut.showSearch,Jt=ut.autoFocus,gn=ut.autoComplete,On=ut.activeDescendantId,Sn=ut.tabIndex,Fn=ut.removeIcon,Xn=ut.maxTagCount,qn=ut.maxTagTextLength,Hn=ut.maxTagPlaceholder,Ln=Hn===void 0?function(wn){return"+ ".concat(wn.length," ...")}:Hn,Rn=ut.tagRender,Zn=ut.onToggleOpen,or=ut.onRemove,rr=ut.onInputChange,ir=ut.onInputPaste,Un=ut.onInputKeyDown,Kn=ut.onInputMouseDown,Tn=ut.onInputCompositionStart,mr=ut.onInputCompositionEnd,Vn=ut.onInputBlur,Bn=he.useRef(null),Yn=(0,he.useState)(0),Jn=(0,Ee.Z)(Yn,2),dr=Jn[0],sr=Jn[1],_n=(0,he.useState)(!1),hr=(0,Ee.Z)(_n,2),ar=hr[0],pr=hr[1],fr="".concat(be,"-selection"),wr=pe||Re==="multiple"&&Xt===!1||Re==="tags"?Ve:"",br=Re==="tags"||Re==="multiple"&&Xt===!1||xt&&(pe||ar);bt(function(){sr(Bn.current.scrollWidth)},[wr]);var Or=function(dn,Gn,nr,vn,yn){return he.createElement("span",{title:It(dn),className:Pe()("".concat(fr,"-item"),(0,xe.Z)({},"".concat(fr,"-item-disabled"),nr))},he.createElement("span",{className:"".concat(fr,"-item-content")},Gn),vn&&he.createElement(_e,{className:"".concat(fr,"-item-remove"),onMouseDown:He,onClick:yn,customizeIcon:Fn},"\xD7"))},_r=function(dn,Gn,nr,vn,yn,jn){var Wn=function(kr){He(kr),Zn(!pe)};return he.createElement("span",{onMouseDown:Wn},Rn({label:Gn,value:dn,disabled:nr,closable:vn,onClose:yn,isMaxTag:!!jn}))},xr=function(dn){var Gn=dn.disabled,nr=dn.label,vn=dn.value,yn=!Ct&&!Gn,jn=nr;if(typeof qn=="number"&&(typeof nr=="string"||typeof nr=="number")){var Wn=String(jn);Wn.length>qn&&(jn="".concat(Wn.slice(0,qn),"..."))}var vr=function(Br){Br&&Br.stopPropagation(),or(dn)};return typeof Rn=="function"?_r(vn,jn,Gn,yn,vr):Or(dn,jn,Gn,yn,vr)},ur=function(dn){if(!fe.length)return null;var Gn=typeof Ln=="function"?Ln(dn):Ln;return typeof Rn=="function"?_r(void 0,Gn,!1,!1,void 0,!0):Or({title:Gn},Gn,!1)},pn=he.createElement("div",{className:"".concat(fr,"-search"),style:{width:dr},onFocus:function(){pr(!0)},onBlur:function(){pr(!1)}},he.createElement(qe,{ref:rn,open:pe,prefixCls:be,id:ke,inputElement:null,disabled:Ct,autoFocus:Jt,autoComplete:gn,editable:br,activeDescendantId:On,value:wr,onKeyDown:Un,onMouseDown:Kn,onChange:rr,onPaste:ir,onCompositionStart:Tn,onCompositionEnd:mr,onBlur:Vn,tabIndex:Sn,attrs:(0,lt.Z)(ut,!0)}),he.createElement("span",{ref:Bn,className:"".concat(fr,"-search-mirror"),"aria-hidden":!0},wr,"\xA0")),In=he.createElement(et.Z,{prefixCls:"".concat(fr,"-overflow"),data:fe,renderItem:xr,renderRest:ur,suffix:pn,itemKey:ge,maxCount:Xn});return he.createElement("span",{className:"".concat(fr,"-wrap")},In,!fe.length&&!wr&&he.createElement("span",{className:"".concat(fr,"-placeholder")},Yt))},Tt=Ge,wt=function(ut){var ke=ut.inputElement,be=ut.prefixCls,fe=ut.id,pe=ut.inputRef,Ve=ut.disabled,Xt=ut.autoFocus,rn=ut.autoComplete,Yt=ut.activeDescendantId,Ct=ut.mode,Re=ut.open,xt=ut.values,Jt=ut.placeholder,gn=ut.tabIndex,On=ut.showSearch,Sn=ut.searchValue,Fn=ut.activeValue,Xn=ut.maxLength,qn=ut.onInputKeyDown,Hn=ut.onInputMouseDown,Ln=ut.onInputChange,Rn=ut.onInputPaste,Zn=ut.onInputCompositionStart,or=ut.onInputCompositionEnd,rr=ut.onInputBlur,ir=ut.title,Un=he.useState(!1),Kn=(0,Ee.Z)(Un,2),Tn=Kn[0],mr=Kn[1],Vn=Ct==="combobox",Bn=Vn||On,Yn=xt[0],Jn=Sn||"";Vn&&Fn&&!Tn&&(Jn=Fn),he.useEffect(function(){Vn&&mr(!1)},[Vn,Fn]);var dr=Ct!=="combobox"&&!Re&&!On?!1:!!Jn,sr=ir===void 0?It(Yn):ir,_n=he.useMemo(function(){return Yn?null:he.createElement("span",{className:"".concat(be,"-selection-placeholder"),style:dr?{visibility:"hidden"}:void 0},Jt)},[Yn,dr,Jt,be]);return he.createElement("span",{className:"".concat(be,"-selection-wrap")},he.createElement("span",{className:"".concat(be,"-selection-search")},he.createElement(qe,{ref:pe,prefixCls:be,id:fe,open:Re,inputElement:ke,disabled:Ve,autoFocus:Xt,autoComplete:rn,editable:Bn,activeDescendantId:Yt,value:Jn,onKeyDown:qn,onMouseDown:Hn,onChange:function(ar){mr(!0),Ln(ar)},onPaste:Rn,onCompositionStart:Zn,onCompositionEnd:or,onBlur:rr,tabIndex:gn,attrs:(0,lt.Z)(ut,!0),maxLength:Vn?Xn:void 0})),!Vn&&Yn?he.createElement("span",{className:"".concat(be,"-selection-item"),title:sr,style:dr?{visibility:"hidden"}:void 0},Yn.label):null,_n)},Lt=wt,$e=function(ut,ke){var be=(0,he.useRef)(null),fe=(0,he.useRef)(!1),pe=ut.prefixCls,Ve=ut.open,Xt=ut.mode,rn=ut.showSearch,Yt=ut.tokenWithEnter,Ct=ut.disabled,Re=ut.prefix,xt=ut.autoClearSearchValue,Jt=ut.onSearch,gn=ut.onSearchSubmit,On=ut.onToggleOpen,Sn=ut.onInputKeyDown,Fn=ut.onInputBlur,Xn=ut.domRef;he.useImperativeHandle(ke,function(){return{focus:function(sr){be.current.focus(sr)},blur:function(){be.current.blur()}}});var qn=it(0),Hn=(0,Ee.Z)(qn,2),Ln=Hn[0],Rn=Hn[1],Zn=function(sr){var _n=sr.which,hr=be.current instanceof HTMLTextAreaElement;!hr&&Ve&&(_n===Fe.Z.UP||_n===Fe.Z.DOWN)&&sr.preventDefault(),Sn&&Sn(sr),_n===Fe.Z.ENTER&&Xt==="tags"&&!fe.current&&!Ve&&(gn==null||gn(sr.target.value)),!(hr&&!Ve&&~[Fe.Z.UP,Fe.Z.DOWN,Fe.Z.LEFT,Fe.Z.RIGHT].indexOf(_n))&&kt(_n)&&On(!0)},or=function(){Rn(!0)},rr=(0,he.useRef)(null),ir=function(sr){Jt(sr,!0,fe.current)!==!1&&On(!0)},Un=function(){fe.current=!0},Kn=function(sr){fe.current=!1,Xt!=="combobox"&&ir(sr.target.value)},Tn=function(sr){var _n=sr.target.value;if(Yt&&rr.current&&/[\r\n]/.test(rr.current)){var hr=rr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");_n=_n.replace(hr,rr.current)}rr.current=null,ir(_n)},mr=function(sr){var _n=sr.clipboardData,hr=_n==null?void 0:_n.getData("text");rr.current=hr||""},Vn=function(sr){var _n=sr.target;if(_n!==be.current){var hr=document.body.style.msTouchAction!==void 0;hr?setTimeout(function(){be.current.focus()}):be.current.focus()}},Bn=function(sr){var _n=Ln();sr.target!==be.current&&!_n&&!(Xt==="combobox"&&Ct)&&sr.preventDefault(),(Xt!=="combobox"&&(!rn||!_n)||!Ve)&&(Ve&&xt!==!1&&Jt("",!0,!1),On())},Yn={inputRef:be,onInputKeyDown:Zn,onInputMouseDown:or,onInputChange:Tn,onInputPaste:mr,onInputCompositionStart:Un,onInputCompositionEnd:Kn,onInputBlur:Fn},Jn=Xt==="multiple"||Xt==="tags"?he.createElement(Tt,(0,E.Z)({},ut,Yn)):he.createElement(Lt,(0,E.Z)({},ut,Yn));return he.createElement("div",{ref:Xn,className:"".concat(pe,"-selector"),onClick:Vn,onMouseDown:Bn},Re&&he.createElement("div",{className:"".concat(pe,"-prefix")},Re),Jn)},At=he.forwardRef($e),st=At,ae=ne(68196),te=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ee=function(ut){var ke=ut===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:ke,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:ke,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:ke,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:ke,adjustY:1},htmlRegion:"scroll"}}},oe=function(ut,ke){var be=ut.prefixCls,fe=ut.disabled,pe=ut.visible,Ve=ut.children,Xt=ut.popupElement,rn=ut.animation,Yt=ut.transitionName,Ct=ut.dropdownStyle,Re=ut.dropdownClassName,xt=ut.direction,Jt=xt===void 0?"ltr":xt,gn=ut.placement,On=ut.builtinPlacements,Sn=ut.dropdownMatchSelectWidth,Fn=ut.dropdownRender,Xn=ut.dropdownAlign,qn=ut.getPopupContainer,Hn=ut.empty,Ln=ut.getTriggerDOMNode,Rn=ut.onPopupVisibleChange,Zn=ut.onPopupMouseEnter,or=(0,Be.Z)(ut,te),rr="".concat(be,"-dropdown"),ir=Xt;Fn&&(ir=Fn(Xt));var Un=he.useMemo(function(){return On||ee(Sn)},[On,Sn]),Kn=rn?"".concat(rr,"-").concat(rn):Yt,Tn=typeof Sn=="number",mr=he.useMemo(function(){return Tn?null:Sn===!1?"minWidth":"width"},[Sn,Tn]),Vn=Ct;Tn&&(Vn=(0,tt.Z)((0,tt.Z)({},Vn),{},{width:Sn}));var Bn=he.useRef(null);return he.useImperativeHandle(ke,function(){return{getPopupElement:function(){var Jn;return(Jn=Bn.current)===null||Jn===void 0?void 0:Jn.popupElement}}}),he.createElement(ae.Z,(0,E.Z)({},or,{showAction:Rn?["click"]:[],hideAction:Rn?["click"]:[],popupPlacement:gn||(Jt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Un,prefixCls:rr,popupTransitionName:Kn,popup:he.createElement("div",{onMouseEnter:Zn},ir),ref:Bn,stretch:mr,popupAlign:Xn,popupVisible:pe,getPopupContainer:qn,popupClassName:Pe()(Re,(0,xe.Z)({},"".concat(rr,"-empty"),Hn)),popupStyle:Vn,getTriggerDOMNode:Ln,onPopupVisibleChange:Rn}),Ve)},ue=he.forwardRef(oe),re=ue,ve=ne(48745);function we(Xe,ut){var ke=Xe.key,be;return"value"in Xe&&(be=Xe.value),ke!=null?ke:be!==void 0?be:"rc-index-key-".concat(ut)}function ft(Xe){return typeof Xe!="undefined"&&!Number.isNaN(Xe)}function Oe(Xe,ut){var ke=Xe||{},be=ke.label,fe=ke.value,pe=ke.options,Ve=ke.groupLabel,Xt=be||(ut?"children":"label");return{label:Xt,value:fe||"value",options:pe||"options",groupLabel:Ve||Xt}}function Ye(Xe){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ke=ut.fieldNames,be=ut.childrenAsData,fe=[],pe=Oe(ke,!1),Ve=pe.label,Xt=pe.value,rn=pe.options,Yt=pe.groupLabel;function Ct(Re,xt){Array.isArray(Re)&&Re.forEach(function(Jt){if(xt||!(rn in Jt)){var gn=Jt[Xt];fe.push({key:we(Jt,fe.length),groupOption:xt,data:Jt,label:Jt[Ve],value:gn})}else{var On=Jt[Yt];On===void 0&&be&&(On=Jt.label),fe.push({key:we(Jt,fe.length),group:!0,data:Jt,label:On}),Ct(Jt[rn],!0)}})}return Ct(Xe,!1),fe}function mt(Xe){var ut=(0,tt.Z)({},Xe);return"props"in ut||Object.defineProperty(ut,"props",{get:function(){return(0,Ie.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),ut}}),ut}var Bt=function(ut,ke,be){if(!ke||!ke.length)return null;var fe=!1,pe=function Xt(rn,Yt){var Ct=(0,ve.Z)(Yt),Re=Ct[0],xt=Ct.slice(1);if(!Re)return[rn];var Jt=rn.split(Re);return fe=fe||Jt.length>1,Jt.reduce(function(gn,On){return[].concat((0,Qe.Z)(gn),(0,Qe.Z)(Xt(On,xt)))},[]).filter(Boolean)},Ve=pe(ut,ke);return fe?typeof be!="undefined"?Ve.slice(0,be):Ve:null},Et=he.createContext(null),Ut=Et;function Wt(Xe){var ut=Xe.visible,ke=Xe.values;if(!ut)return null;var be=50;return he.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(ke.slice(0,be).map(function(fe){var pe=fe.label,Ve=fe.value;return["number","string"].includes((0,De.Z)(pe))?pe:Ve}).join(", ")),ke.length>be?", ...":null)}var Ht=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],ln=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],qt=function(ut){return ut==="tags"||ut==="multiple"},sn=he.forwardRef(function(Xe,ut){var ke,be=Xe.id,fe=Xe.prefixCls,pe=Xe.className,Ve=Xe.showSearch,Xt=Xe.tagRender,rn=Xe.direction,Yt=Xe.omitDomProps,Ct=Xe.displayValues,Re=Xe.onDisplayValuesChange,xt=Xe.emptyOptions,Jt=Xe.notFoundContent,gn=Jt===void 0?"Not Found":Jt,On=Xe.onClear,Sn=Xe.mode,Fn=Xe.disabled,Xn=Xe.loading,qn=Xe.getInputElement,Hn=Xe.getRawInputElement,Ln=Xe.open,Rn=Xe.defaultOpen,Zn=Xe.onDropdownVisibleChange,or=Xe.activeValue,rr=Xe.onActiveValueChange,ir=Xe.activeDescendantId,Un=Xe.searchValue,Kn=Xe.autoClearSearchValue,Tn=Xe.onSearch,mr=Xe.onSearchSplit,Vn=Xe.tokenSeparators,Bn=Xe.allowClear,Yn=Xe.prefix,Jn=Xe.suffixIcon,dr=Xe.clearIcon,sr=Xe.OptionList,_n=Xe.animation,hr=Xe.transitionName,ar=Xe.dropdownStyle,pr=Xe.dropdownClassName,fr=Xe.dropdownMatchSelectWidth,wr=Xe.dropdownRender,br=Xe.dropdownAlign,Or=Xe.placement,_r=Xe.builtinPlacements,xr=Xe.getPopupContainer,ur=Xe.showAction,pn=ur===void 0?[]:ur,In=Xe.onFocus,wn=Xe.onBlur,dn=Xe.onKeyUp,Gn=Xe.onKeyDown,nr=Xe.onMouseDown,vn=(0,Be.Z)(Xe,Ht),yn=qt(Sn),jn=(Ve!==void 0?Ve:yn)||Sn==="combobox",Wn=(0,tt.Z)({},vn);ln.forEach(function(Rr){delete Wn[Rr]}),Yt==null||Yt.forEach(function(Rr){delete Wn[Rr]});var vr=he.useState(!1),kr=(0,Ee.Z)(vr,2),Br=kr[0],Tr=kr[1];he.useEffect(function(){Tr((0,Ze.Z)())},[]);var Ar=he.useRef(null),Nr=he.useRef(null),zr=he.useRef(null),Lr=he.useRef(null),jr=he.useRef(null),Jr=he.useRef(!1),Zr=ht(),zi=(0,Ee.Z)(Zr,3),ui=zi[0],ri=zi[1],yi=zi[2];he.useImperativeHandle(ut,function(){var Rr,Pr;return{focus:(Rr=Lr.current)===null||Rr===void 0?void 0:Rr.focus,blur:(Pr=Lr.current)===null||Pr===void 0?void 0:Pr.blur,scrollTo:function(xi){var ti;return(ti=jr.current)===null||ti===void 0?void 0:ti.scrollTo(xi)},nativeElement:Ar.current||Nr.current}});var Fr=he.useMemo(function(){var Rr;if(Sn!=="combobox")return Un;var Pr=(Rr=Ct[0])===null||Rr===void 0?void 0:Rr.value;return typeof Pr=="string"||typeof Pr=="number"?String(Pr):""},[Un,Sn,Ct]),Ui=Sn==="combobox"&&typeof qn=="function"&&qn()||null,qr=typeof Hn=="function"&&Hn(),Ti=(0,Ce.x1)(Nr,qr==null||(ke=qr.props)===null||ke===void 0?void 0:ke.ref),Ni=he.useState(!1),Wi=(0,Ee.Z)(Ni,2),bi=Wi[0],Ii=Wi[1];(0,dt.Z)(function(){Ii(!0)},[]);var Vr=(0,We.Z)(!1,{defaultValue:Rn,value:Ln}),Mr=(0,Ee.Z)(Vr,2),ai=Mr[0],pi=Mr[1],Xr=bi?ai:!1,to=!gn&&xt;(Fn||to&&Xr&&Sn==="combobox")&&(Xr=!1);var Ki=to?!1:Xr,yr=he.useCallback(function(Rr){var Pr=Rr!==void 0?Rr:!Xr;Fn||(pi(Pr),Xr!==Pr&&(Zn==null||Zn(Pr)))},[Fn,Xr,pi,Zn]),Ir=he.useMemo(function(){return(Vn||[]).some(function(Rr){return[`
`,`\r
`].includes(Rr)})},[Vn]),Sr=he.useContext(Ut)||{},Er=Sr.maxCount,$r=Sr.rawValues,Gr=function(Pr,vi,xi){if(!(yn&&ft(Er)&&($r==null?void 0:$r.size)>=Er)){var ti=!0,li=Pr;rr==null||rr(null);var Ji=Bt(Pr,Vn,ft(Er)?Er-$r.size:void 0),Gi=xi?null:Ji;return Sn!=="combobox"&&Gi&&(li="",mr==null||mr(Gi),yr(!1),ti=!1),Tn&&Fr!==li&&Tn(li,{source:vi?"typing":"effect"}),ti}},Xi=function(Pr){!Pr||!Pr.trim()||Tn(Pr,{source:"submit"})};he.useEffect(function(){!Xr&&!yn&&Sn!=="combobox"&&Gr("",!1,!1)},[Xr]),he.useEffect(function(){ai&&Fn&&pi(!1),Fn&&!Jr.current&&ri(!1)},[Fn]);var wi=it(),mi=(0,Ee.Z)(wi,2),ei=mi[0],Zi=mi[1],no=he.useRef(!1),Li=function(Pr){var vi=ei(),xi=Pr.key,ti=xi==="Enter";if(ti&&(Sn!=="combobox"&&Pr.preventDefault(),Xr||yr(!0)),Zi(!!Fr),xi==="Backspace"&&!vi&&yn&&!Fr&&Ct.length){for(var li=(0,Qe.Z)(Ct),Ji=null,Gi=li.length-1;Gi>=0;Gi-=1){var lo=li[Gi];if(!lo.disabled){li.splice(Gi,1),Ji=lo;break}}Ji&&Re(li,{type:"remove",values:[Ji]})}for(var Fi=arguments.length,Ri=new Array(Fi>1?Fi-1:0),Qi=1;Qi<Fi;Qi++)Ri[Qi-1]=arguments[Qi];if(Xr&&(!ti||!no.current)){var fo;ti&&(no.current=!0),(fo=jr.current)===null||fo===void 0||fo.onKeyDown.apply(fo,[Pr].concat(Ri))}Gn==null||Gn.apply(void 0,[Pr].concat(Ri))},ro=function(Pr){for(var vi=arguments.length,xi=new Array(vi>1?vi-1:0),ti=1;ti<vi;ti++)xi[ti-1]=arguments[ti];if(Xr){var li;(li=jr.current)===null||li===void 0||li.onKeyUp.apply(li,[Pr].concat(xi))}Pr.key==="Enter"&&(no.current=!1),dn==null||dn.apply(void 0,[Pr].concat(xi))},ao=function(Pr){var vi=Ct.filter(function(xi){return xi!==Pr});Re(vi,{type:"remove",values:[Pr]})},Yi=function(){no.current=!1},Do=he.useRef(!1),Za=function(){ri(!0),Fn||(In&&!Do.current&&In.apply(void 0,arguments),pn.includes("focus")&&yr(!0)),Do.current=!0},ya=function(){Jr.current=!0,ri(!1,function(){Do.current=!1,Jr.current=!1,yr(!1)}),!Fn&&(Fr&&(Sn==="tags"?Tn(Fr,{source:"submit"}):Sn==="multiple"&&Tn("",{source:"blur"})),wn&&wn.apply(void 0,arguments))},io=[];he.useEffect(function(){return function(){io.forEach(function(Rr){return clearTimeout(Rr)}),io.splice(0,io.length)}},[]);var co=function(Pr){var vi,xi=Pr.target,ti=(vi=zr.current)===null||vi===void 0?void 0:vi.getPopupElement();if(ti&&ti.contains(xi)){var li=setTimeout(function(){var Fi=io.indexOf(li);if(Fi!==-1&&io.splice(Fi,1),yi(),!Br&&!ti.contains(document.activeElement)){var Ri;(Ri=Lr.current)===null||Ri===void 0||Ri.focus()}});io.push(li)}for(var Ji=arguments.length,Gi=new Array(Ji>1?Ji-1:0),lo=1;lo<Ji;lo++)Gi[lo-1]=arguments[lo];nr==null||nr.apply(void 0,[Pr].concat(Gi))},Vi=he.useState({}),ba=(0,Ee.Z)(Vi,2),xa=ba[1];function Va(){xa({})}var Ca;qr&&(Ca=function(Pr){yr(Pr)}),nt(function(){var Rr;return[Ar.current,(Rr=zr.current)===null||Rr===void 0?void 0:Rr.getPopupElement()]},Ki,yr,!!qr);var Ga=he.useMemo(function(){return(0,tt.Z)((0,tt.Z)({},Xe),{},{notFoundContent:gn,open:Xr,triggerOpen:Ki,id:be,showSearch:jn,multiple:yn,toggleOpen:yr})},[Xe,gn,Ki,Xr,be,jn,yn,yr]),Uo=!!Jn||Xn,Ko;Uo&&(Ko=he.createElement(_e,{className:Pe()("".concat(fe,"-arrow"),(0,xe.Z)({},"".concat(fe,"-arrow-loading"),Xn)),customizeIcon:Jn,customizeIconProps:{loading:Xn,searchValue:Fr,open:Xr,focused:ui,showSearch:jn}}));var Co=function(){var Pr;On==null||On(),(Pr=Lr.current)===null||Pr===void 0||Pr.focus(),Re([],{type:"clear",values:Ct}),Gr("",!1,!1)},Xo=rt(fe,Co,Ct,Bn,dr,Fn,Fr,Sn),Sa=Xo.allowClear,Yo=Xo.clearIcon,Ao=he.createElement(sr,{ref:jr}),wa=Pe()(fe,pe,(0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)({},"".concat(fe,"-focused"),ui),"".concat(fe,"-multiple"),yn),"".concat(fe,"-single"),!yn),"".concat(fe,"-allow-clear"),Bn),"".concat(fe,"-show-arrow"),Uo),"".concat(fe,"-disabled"),Fn),"".concat(fe,"-loading"),Xn),"".concat(fe,"-open"),Xr),"".concat(fe,"-customize-input"),Ui),"".concat(fe,"-show-search"),jn)),Mo=he.createElement(re,{ref:zr,disabled:Fn,prefixCls:fe,visible:Ki,popupElement:Ao,animation:_n,transitionName:hr,dropdownStyle:ar,dropdownClassName:pr,direction:rn,dropdownMatchSelectWidth:fr,dropdownRender:wr,dropdownAlign:br,placement:Or,builtinPlacements:_r,getPopupContainer:xr,empty:xt,getTriggerDOMNode:function(Pr){return Nr.current||Pr},onPopupVisibleChange:Ca,onPopupMouseEnter:Va},qr?he.cloneElement(qr,{ref:Ti}):he.createElement(st,(0,E.Z)({},Xe,{domRef:Nr,prefixCls:fe,inputElement:Ui,ref:Lr,id:be,prefix:Yn,showSearch:jn,autoClearSearchValue:Kn,mode:Sn,activeDescendantId:ir,tagRender:Xt,values:Ct,open:Xr,onToggleOpen:yr,activeValue:or,searchValue:Fr,onSearch:Gr,onSearchSubmit:Xi,onRemove:ao,tokenWithEnter:Ir,onInputBlur:Yi}))),Pi;return qr?Pi=Mo:Pi=he.createElement("div",(0,E.Z)({className:wa},Wn,{ref:Ar,onMouseDown:co,onKeyDown:Li,onKeyUp:ro,onFocus:Za,onBlur:ya}),he.createElement(Wt,{visible:ui&&!Xr,values:Ct}),Mo,Ko,Sa&&Yo),he.createElement(gt.Provider,{value:Ga},Pi)}),Dt=sn,tn=function(){return null};tn.isSelectOptGroup=!0;var Vt=tn,je=function(){return null};je.isSelectOption=!0;var pt=je,Ft=ne(80547),jt=ne(2738),Ne=ne(48911);function ot(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var yt=["disabled","title","children","style","className"];function Mt(Xe){return typeof Xe=="string"||typeof Xe=="number"}var Kt=function(ut,ke){var be=Pt(),fe=be.prefixCls,pe=be.id,Ve=be.open,Xt=be.multiple,rn=be.mode,Yt=be.searchValue,Ct=be.toggleOpen,Re=be.notFoundContent,xt=be.onPopupScroll,Jt=he.useContext(Ut),gn=Jt.maxCount,On=Jt.flattenOptions,Sn=Jt.onActiveValue,Fn=Jt.defaultActiveFirstOption,Xn=Jt.onSelect,qn=Jt.menuItemSelectedIcon,Hn=Jt.rawValues,Ln=Jt.fieldNames,Rn=Jt.virtual,Zn=Jt.direction,or=Jt.listHeight,rr=Jt.listItemHeight,ir=Jt.optionRender,Un="".concat(fe,"-item"),Kn=(0,Ft.Z)(function(){return On},[Ve,On],function(ur,pn){return pn[0]&&ur[1]!==pn[1]}),Tn=he.useRef(null),mr=he.useMemo(function(){return Xt&&ft(gn)&&(Hn==null?void 0:Hn.size)>=gn},[Xt,gn,Hn==null?void 0:Hn.size]),Vn=function(pn){pn.preventDefault()},Bn=function(pn){var In;(In=Tn.current)===null||In===void 0||In.scrollTo(typeof pn=="number"?{index:pn}:pn)},Yn=he.useCallback(function(ur){return rn==="combobox"?!1:Hn.has(ur)},[rn,(0,Qe.Z)(Hn).toString(),Hn.size]),Jn=function(pn){for(var In=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,wn=Kn.length,dn=0;dn<wn;dn+=1){var Gn=(pn+dn*In+wn)%wn,nr=Kn[Gn]||{},vn=nr.group,yn=nr.data;if(!vn&&!(yn!=null&&yn.disabled)&&(Yn(yn.value)||!mr))return Gn}return-1},dr=he.useState(function(){return Jn(0)}),sr=(0,Ee.Z)(dr,2),_n=sr[0],hr=sr[1],ar=function(pn){var In=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;hr(pn);var wn={source:In?"keyboard":"mouse"},dn=Kn[pn];if(!dn){Sn(null,-1,wn);return}Sn(dn.value,pn,wn)};(0,he.useEffect)(function(){ar(Fn!==!1?Jn(0):-1)},[Kn.length,Yt]);var pr=he.useCallback(function(ur){return rn==="combobox"?String(ur).toLowerCase()===Yt.toLowerCase():Hn.has(ur)},[rn,Yt,(0,Qe.Z)(Hn).toString(),Hn.size]);(0,he.useEffect)(function(){var ur=setTimeout(function(){if(!Xt&&Ve&&Hn.size===1){var In=Array.from(Hn)[0],wn=Kn.findIndex(function(dn){var Gn=dn.data;return Yt?String(Gn.value).startsWith(Yt):Gn.value===In});wn!==-1&&(ar(wn),Bn(wn))}});if(Ve){var pn;(pn=Tn.current)===null||pn===void 0||pn.scrollTo(void 0)}return function(){return clearTimeout(ur)}},[Ve,Yt]);var fr=function(pn){pn!==void 0&&Xn(pn,{selected:!Hn.has(pn)}),Xt||Ct(!1)};if(he.useImperativeHandle(ke,function(){return{onKeyDown:function(pn){var In=pn.which,wn=pn.ctrlKey;switch(In){case Fe.Z.N:case Fe.Z.P:case Fe.Z.UP:case Fe.Z.DOWN:{var dn=0;if(In===Fe.Z.UP?dn=-1:In===Fe.Z.DOWN?dn=1:ot()&&wn&&(In===Fe.Z.N?dn=1:In===Fe.Z.P&&(dn=-1)),dn!==0){var Gn=Jn(_n+dn,dn);Bn(Gn),ar(Gn,!0)}break}case Fe.Z.TAB:case Fe.Z.ENTER:{var nr,vn=Kn[_n];vn&&!(vn!=null&&(nr=vn.data)!==null&&nr!==void 0&&nr.disabled)&&!mr?fr(vn.value):fr(void 0),Ve&&pn.preventDefault();break}case Fe.Z.ESC:Ct(!1),Ve&&pn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(pn){Bn(pn)}}}),Kn.length===0)return he.createElement("div",{role:"listbox",id:"".concat(pe,"_list"),className:"".concat(Un,"-empty"),onMouseDown:Vn},Re);var wr=Object.keys(Ln).map(function(ur){return Ln[ur]}),br=function(pn){return pn.label};function Or(ur,pn){var In=ur.group;return{role:In?"presentation":"option",id:"".concat(pe,"_list_").concat(pn)}}var _r=function(pn){var In=Kn[pn];if(!In)return null;var wn=In.data||{},dn=wn.value,Gn=In.group,nr=(0,lt.Z)(wn,!0),vn=br(In);return In?he.createElement("div",(0,E.Z)({"aria-label":typeof vn=="string"&&!Gn?vn:null},nr,{key:pn},Or(In,pn),{"aria-selected":pr(dn)}),dn):null},xr={role:"listbox",id:"".concat(pe,"_list")};return he.createElement(he.Fragment,null,Rn&&he.createElement("div",(0,E.Z)({},xr,{style:{height:0,width:0,overflow:"hidden"}}),_r(_n-1),_r(_n),_r(_n+1)),he.createElement(Ne.Z,{itemKey:"key",ref:Tn,data:Kn,height:or,itemHeight:rr,fullHeight:!1,onMouseDown:Vn,onScroll:xt,virtual:Rn,direction:Zn,innerProps:Rn?null:xr},function(ur,pn){var In=ur.group,wn=ur.groupOption,dn=ur.data,Gn=ur.label,nr=ur.value,vn=dn.key;if(In){var yn,jn=(yn=dn.title)!==null&&yn!==void 0?yn:Mt(Gn)?Gn.toString():void 0;return he.createElement("div",{className:Pe()(Un,"".concat(Un,"-group"),dn.className),title:jn},Gn!==void 0?Gn:vn)}var Wn=dn.disabled,vr=dn.title,kr=dn.children,Br=dn.style,Tr=dn.className,Ar=(0,Be.Z)(dn,yt),Nr=(0,jt.Z)(Ar,wr),zr=Yn(nr),Lr=Wn||!zr&&mr,jr="".concat(Un,"-option"),Jr=Pe()(Un,jr,Tr,(0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)({},"".concat(jr,"-grouped"),wn),"".concat(jr,"-active"),_n===pn&&!Lr),"".concat(jr,"-disabled"),Lr),"".concat(jr,"-selected"),zr)),Zr=br(ur),zi=!qn||typeof qn=="function"||zr,ui=typeof Zr=="number"?Zr:Zr||nr,ri=Mt(ui)?ui.toString():void 0;return vr!==void 0&&(ri=vr),he.createElement("div",(0,E.Z)({},(0,lt.Z)(Nr),Rn?{}:Or(ur,pn),{"aria-selected":pr(nr),className:Jr,title:ri,onMouseMove:function(){_n===pn||Lr||ar(pn)},onClick:function(){Lr||fr(nr)},style:Br}),he.createElement("div",{className:"".concat(jr,"-content")},typeof ir=="function"?ir(ur,{index:pn}):ui),he.isValidElement(qn)||zr,zi&&he.createElement(_e,{className:"".concat(Un,"-option-state"),customizeIcon:qn,customizeIconProps:{value:nr,disabled:Lr,isSelected:zr}},zr?"\u2713":null))}))},cn=he.forwardRef(Kt),Dn=cn,kn=function(Xe,ut){var ke=he.useRef({values:new Map,options:new Map}),be=he.useMemo(function(){var pe=ke.current,Ve=pe.values,Xt=pe.options,rn=Xe.map(function(Re){if(Re.label===void 0){var xt;return(0,tt.Z)((0,tt.Z)({},Re),{},{label:(xt=Ve.get(Re.value))===null||xt===void 0?void 0:xt.label})}return Re}),Yt=new Map,Ct=new Map;return rn.forEach(function(Re){Yt.set(Re.value,Re),Ct.set(Re.value,ut.get(Re.value)||Xt.get(Re.value))}),ke.current.values=Yt,ke.current.options=Ct,rn},[Xe,ut]),fe=he.useCallback(function(pe){return ut.get(pe)||ke.current.options.get(pe)},[ut]);return[be,fe]};function un(Xe,ut){return Le(Xe).join("").toUpperCase().includes(ut)}var bn=function(Xe,ut,ke,be,fe){return he.useMemo(function(){if(!ke||be===!1)return Xe;var pe=ut.options,Ve=ut.label,Xt=ut.value,rn=[],Yt=typeof be=="function",Ct=ke.toUpperCase(),Re=Yt?be:function(Jt,gn){return fe?un(gn[fe],Ct):gn[pe]?un(gn[Ve!=="children"?Ve:"label"],Ct):un(gn[Xt],Ct)},xt=Yt?function(Jt){return mt(Jt)}:function(Jt){return Jt};return Xe.forEach(function(Jt){if(Jt[pe]){var gn=Re(ke,xt(Jt));if(gn)rn.push(Jt);else{var On=Jt[pe].filter(function(Sn){return Re(ke,xt(Sn))});On.length&&rn.push((0,tt.Z)((0,tt.Z)({},Jt),{},(0,xe.Z)({},pe,On)))}return}Re(ke,xt(Jt))&&rn.push(Jt)}),rn},[Xe,be,fe,ke,ut])},fn=ne(6551),Gt=ne(11592),Rt=["children","value"],_t=["children"];function Ot(Xe){var ut=Xe,ke=ut.key,be=ut.props,fe=be.children,pe=be.value,Ve=(0,Be.Z)(be,Rt);return(0,tt.Z)({key:ke,value:pe!==void 0?pe:ke,children:fe},Ve)}function an(Xe){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Gt.Z)(Xe).map(function(ke,be){if(!he.isValidElement(ke)||!ke.type)return null;var fe=ke,pe=fe.type.isSelectOptGroup,Ve=fe.key,Xt=fe.props,rn=Xt.children,Yt=(0,Be.Z)(Xt,_t);return ut||!pe?Ot(ke):(0,tt.Z)((0,tt.Z)({key:"__RC_SELECT_GRP__".concat(Ve===null?be:Ve,"__"),label:Ve},Yt),{},{options:an(rn)})}).filter(function(ke){return ke})}var nn=function(ut,ke,be,fe,pe){return he.useMemo(function(){var Ve=ut,Xt=!ut;Xt&&(Ve=an(ke));var rn=new Map,Yt=new Map,Ct=function(Jt,gn,On){On&&typeof On=="string"&&Jt.set(gn[On],gn)},Re=function xt(Jt){for(var gn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,On=0;On<Jt.length;On+=1){var Sn=Jt[On];!Sn[be.options]||gn?(rn.set(Sn[be.value],Sn),Ct(Yt,Sn,be.label),Ct(Yt,Sn,fe),Ct(Yt,Sn,pe)):xt(Sn[be.options],!0)}};return Re(Ve),{options:Ve,valueOptions:rn,labelOptions:Yt}},[ut,ke,be,fe,pe])},en=nn;function xn(Xe){var ut=he.useRef();ut.current=Xe;var ke=he.useCallback(function(){return ut.current.apply(ut,arguments)},[]);return ke}function Pn(Xe){var ut=Xe.mode,ke=Xe.options,be=Xe.children,fe=Xe.backfill,pe=Xe.allowClear,Ve=Xe.placeholder,Xt=Xe.getInputElement,rn=Xe.showSearch,Yt=Xe.onSearch,Ct=Xe.defaultOpen,Re=Xe.autoFocus,xt=Xe.labelInValue,Jt=Xe.value,gn=Xe.inputValue,On=Xe.optionLabelProp,Sn=isMultiple(ut),Fn=rn!==void 0?rn:Sn||ut==="combobox",Xn=ke||convertChildrenToData(be);if(warning(ut!=="tags"||Xn.every(function(Rn){return!Rn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ut==="tags"||ut==="combobox"){var qn=Xn.some(function(Rn){return Rn.options?Rn.options.some(function(Zn){return typeof("value"in Zn?Zn.value:Zn.key)=="number"}):typeof("value"in Rn?Rn.value:Rn.key)=="number"});warning(!qn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(ut!=="combobox"||!On,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(ut==="combobox"||!fe,"`backfill` only works with `combobox` mode."),warning(ut==="combobox"||!Xt,"`getInputElement` only work with `combobox` mode."),noteOnce(ut!=="combobox"||!Xt||!pe||!Ve,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Yt&&!Fn&&ut!=="combobox"&&ut!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Ct||Re,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Jt!=null){var Hn=toArray(Jt);warning(!xt||Hn.every(function(Rn){return _typeof(Rn)==="object"&&("key"in Rn||"value"in Rn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Sn||Array.isArray(Jt),"`value` should be array when `mode` is `multiple` or `tags`")}if(be){var Ln=null;toNodeArray(be).some(function(Rn){if(!React.isValidElement(Rn)||!Rn.type)return!1;var Zn=Rn,or=Zn.type;if(or.isSelectOption)return!1;if(or.isSelectOptGroup){var rr=toNodeArray(Rn.props.children).every(function(ir){return!React.isValidElement(ir)||!Rn.type||ir.type.isSelectOption?!0:(Ln=ir.type,!1)});return!rr}return Ln=or,!0}),Ln&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ln.displayName||Ln.name||Ln,"`.")),warning(gn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Cn(Xe,ut){if(Xe){var ke=function be(fe){for(var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ve=0;Ve<fe.length;Ve++){var Xt=fe[Ve];if(Xt[ut==null?void 0:ut.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!pe&&Array.isArray(Xt[ut==null?void 0:ut.options])&&be(Xt[ut==null?void 0:ut.options],!0))break}};ke(Xe)}}var Nn=null,An=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Qn=["inputValue"];function zn(Xe){return!Xe||(0,De.Z)(Xe)!=="object"}var Nt=he.forwardRef(function(Xe,ut){var ke=Xe.id,be=Xe.mode,fe=Xe.prefixCls,pe=fe===void 0?"rc-select":fe,Ve=Xe.backfill,Xt=Xe.fieldNames,rn=Xe.inputValue,Yt=Xe.searchValue,Ct=Xe.onSearch,Re=Xe.autoClearSearchValue,xt=Re===void 0?!0:Re,Jt=Xe.onSelect,gn=Xe.onDeselect,On=Xe.dropdownMatchSelectWidth,Sn=On===void 0?!0:On,Fn=Xe.filterOption,Xn=Xe.filterSort,qn=Xe.optionFilterProp,Hn=Xe.optionLabelProp,Ln=Xe.options,Rn=Xe.optionRender,Zn=Xe.children,or=Xe.defaultActiveFirstOption,rr=Xe.menuItemSelectedIcon,ir=Xe.virtual,Un=Xe.direction,Kn=Xe.listHeight,Tn=Kn===void 0?200:Kn,mr=Xe.listItemHeight,Vn=mr===void 0?20:mr,Bn=Xe.labelRender,Yn=Xe.value,Jn=Xe.defaultValue,dr=Xe.labelInValue,sr=Xe.onChange,_n=Xe.maxCount,hr=(0,Be.Z)(Xe,An),ar=(0,fn.ZP)(ke),pr=qt(be),fr=!!(!Ln&&Zn),wr=he.useMemo(function(){return Fn===void 0&&be==="combobox"?!1:Fn},[Fn,be]),br=he.useMemo(function(){return Oe(Xt,fr)},[JSON.stringify(Xt),fr]),Or=(0,We.Z)("",{value:Yt!==void 0?Yt:rn,postState:function(Ir){return Ir||""}}),_r=(0,Ee.Z)(Or,2),xr=_r[0],ur=_r[1],pn=en(Ln,Zn,br,qn,Hn),In=pn.valueOptions,wn=pn.labelOptions,dn=pn.options,Gn=he.useCallback(function(yr){var Ir=Le(yr);return Ir.map(function(Sr){var Er,$r,Gr,Xi,wi;if(zn(Sr))Er=Sr;else{var mi;Gr=Sr.key,$r=Sr.label,Er=(mi=Sr.value)!==null&&mi!==void 0?mi:Gr}var ei=In.get(Er);if(ei){var Zi;if($r===void 0&&($r=ei==null?void 0:ei[Hn||br.label]),Gr===void 0&&(Gr=(Zi=ei==null?void 0:ei.key)!==null&&Zi!==void 0?Zi:Er),Xi=ei==null?void 0:ei.disabled,wi=ei==null?void 0:ei.title,0)var no}return{label:$r,value:Er,key:Gr,disabled:Xi,title:wi}})},[br,Hn,In]),nr=(0,We.Z)(Jn,{value:Yn}),vn=(0,Ee.Z)(nr,2),yn=vn[0],jn=vn[1],Wn=he.useMemo(function(){var yr,Ir=pr&&yn===null?[]:yn,Sr=Gn(Ir);return be==="combobox"&&ce((yr=Sr[0])===null||yr===void 0?void 0:yr.value)?[]:Sr},[yn,Gn,be,pr]),vr=kn(Wn,In),kr=(0,Ee.Z)(vr,2),Br=kr[0],Tr=kr[1],Ar=he.useMemo(function(){if(!be&&Br.length===1){var yr=Br[0];if(yr.value===null&&(yr.label===null||yr.label===void 0))return[]}return Br.map(function(Ir){var Sr;return(0,tt.Z)((0,tt.Z)({},Ir),{},{label:(Sr=typeof Bn=="function"?Bn(Ir):Ir.label)!==null&&Sr!==void 0?Sr:Ir.value})})},[be,Br,Bn]),Nr=he.useMemo(function(){return new Set(Br.map(function(yr){return yr.value}))},[Br]);he.useEffect(function(){if(be==="combobox"){var yr,Ir=(yr=Br[0])===null||yr===void 0?void 0:yr.value;ur(ye(Ir)?String(Ir):"")}},[Br]);var zr=xn(function(yr,Ir){var Sr=Ir!=null?Ir:yr;return(0,xe.Z)((0,xe.Z)({},br.value,yr),br.label,Sr)}),Lr=he.useMemo(function(){if(be!=="tags")return dn;var yr=(0,Qe.Z)(dn),Ir=function(Er){return In.has(Er)};return(0,Qe.Z)(Br).sort(function(Sr,Er){return Sr.value<Er.value?-1:1}).forEach(function(Sr){var Er=Sr.value;Ir(Er)||yr.push(zr(Er,Sr.label))}),yr},[zr,dn,In,Br,be]),jr=bn(Lr,br,xr,wr,qn),Jr=he.useMemo(function(){return be!=="tags"||!xr||jr.some(function(yr){return yr[qn||"value"]===xr})||jr.some(function(yr){return yr[br.value]===xr})?jr:[zr(xr)].concat((0,Qe.Z)(jr))},[zr,qn,be,jr,xr,br]),Zr=function yr(Ir){var Sr=(0,Qe.Z)(Ir).sort(function(Er,$r){return Xn(Er,$r,{searchValue:xr})});return Sr.map(function(Er){return Array.isArray(Er.options)?(0,tt.Z)((0,tt.Z)({},Er),{},{options:Er.options.length>0?yr(Er.options):Er.options}):Er})},zi=he.useMemo(function(){return Xn?Zr(Jr):Jr},[Jr,Xn,xr]),ui=he.useMemo(function(){return Ye(zi,{fieldNames:br,childrenAsData:fr})},[zi,br,fr]),ri=function(Ir){var Sr=Gn(Ir);if(jn(Sr),sr&&(Sr.length!==Br.length||Sr.some(function(Gr,Xi){var wi;return((wi=Br[Xi])===null||wi===void 0?void 0:wi.value)!==(Gr==null?void 0:Gr.value)}))){var Er=dr?Sr:Sr.map(function(Gr){return Gr.value}),$r=Sr.map(function(Gr){return mt(Tr(Gr.value))});sr(pr?Er:Er[0],pr?$r:$r[0])}},yi=he.useState(null),Fr=(0,Ee.Z)(yi,2),Ui=Fr[0],qr=Fr[1],Ti=he.useState(0),Ni=(0,Ee.Z)(Ti,2),Wi=Ni[0],bi=Ni[1],Ii=or!==void 0?or:be!=="combobox",Vr=he.useCallback(function(yr,Ir){var Sr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Er=Sr.source,$r=Er===void 0?"keyboard":Er;bi(Ir),Ve&&be==="combobox"&&yr!==null&&$r==="keyboard"&&qr(String(yr))},[Ve,be]),Mr=function(Ir,Sr,Er){var $r=function(){var ao,Yi=Tr(Ir);return[dr?{label:Yi==null?void 0:Yi[br.label],value:Ir,key:(ao=Yi==null?void 0:Yi.key)!==null&&ao!==void 0?ao:Ir}:Ir,mt(Yi)]};if(Sr&&Jt){var Gr=$r(),Xi=(0,Ee.Z)(Gr,2),wi=Xi[0],mi=Xi[1];Jt(wi,mi)}else if(!Sr&&gn&&Er!=="clear"){var ei=$r(),Zi=(0,Ee.Z)(ei,2),no=Zi[0],Li=Zi[1];gn(no,Li)}},ai=xn(function(yr,Ir){var Sr,Er=pr?Ir.selected:!0;Er?Sr=pr?[].concat((0,Qe.Z)(Br),[yr]):[yr]:Sr=Br.filter(function($r){return $r.value!==yr}),ri(Sr),Mr(yr,Er),be==="combobox"?qr(""):(!qt||xt)&&(ur(""),qr(""))}),pi=function(Ir,Sr){ri(Ir);var Er=Sr.type,$r=Sr.values;(Er==="remove"||Er==="clear")&&$r.forEach(function(Gr){Mr(Gr.value,!1,Er)})},Xr=function(Ir,Sr){if(ur(Ir),qr(null),Sr.source==="submit"){var Er=(Ir||"").trim();if(Er){var $r=Array.from(new Set([].concat((0,Qe.Z)(Nr),[Er])));ri($r),Mr(Er,!0),ur("")}return}Sr.source!=="blur"&&(be==="combobox"&&ri(Ir),Ct==null||Ct(Ir))},to=function(Ir){var Sr=Ir;be!=="tags"&&(Sr=Ir.map(function($r){var Gr=wn.get($r);return Gr==null?void 0:Gr.value}).filter(function($r){return $r!==void 0}));var Er=Array.from(new Set([].concat((0,Qe.Z)(Nr),(0,Qe.Z)(Sr))));ri(Er),Er.forEach(function($r){Mr($r,!0)})},Ki=he.useMemo(function(){var yr=ir!==!1&&Sn!==!1;return(0,tt.Z)((0,tt.Z)({},pn),{},{flattenOptions:ui,onActiveValue:Vr,defaultActiveFirstOption:Ii,onSelect:ai,menuItemSelectedIcon:rr,rawValues:Nr,fieldNames:br,virtual:yr,direction:Un,listHeight:Tn,listItemHeight:Vn,childrenAsData:fr,maxCount:_n,optionRender:Rn})},[_n,pn,ui,Vr,Ii,ai,rr,Nr,br,ir,Sn,Un,Tn,Vn,fr,Rn]);return he.createElement(Ut.Provider,{value:Ki},he.createElement(Dt,(0,E.Z)({},hr,{id:ar,prefixCls:pe,ref:ut,omitDomProps:Qn,mode:be,displayValues:Ar,onDisplayValuesChange:pi,direction:Un,searchValue:xr,onSearch:Xr,autoClearSearchValue:xt,onSearchSplit:to,dropdownMatchSelectWidth:Sn,OptionList:Dn,emptyOptions:!ui.length,activeValue:Ui,activeDescendantId:"".concat(ar,"_list_").concat(Wi)})))}),Qt=Nt;Qt.Option=pt,Qt.OptGroup=Vt;var En=Qt,mn=En},22711:function(on,$t,ne){"use strict";ne.r($t),ne.d($t,{ResizableTextArea:function(){return Me},default:function(){return qe}});var E=ne(60499),Qe=ne(18642),xe=ne(85899),tt=ne(77654),Ee=ne(72190),Be=ne(42244),De=ne(92310),We=ne.n(De),Ie=ne(36901),he=ne(66003),Je=ne(30292),Pe=ne(18929),dt=ne(59301),Ze=ne(43749),Ce=ne(29301),Te=ne(34280),_e=ne(16089),rt=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,gt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Pt={},ht;function it(Le){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ct=Le.getAttribute("id")||Le.getAttribute("data-reactid")||Le.getAttribute("name");if(Ae&&Pt[ct])return Pt[ct];var ye=window.getComputedStyle(Le),ce=ye.getPropertyValue("box-sizing")||ye.getPropertyValue("-moz-box-sizing")||ye.getPropertyValue("-webkit-box-sizing"),Ue=parseFloat(ye.getPropertyValue("padding-bottom"))+parseFloat(ye.getPropertyValue("padding-top")),It=parseFloat(ye.getPropertyValue("border-bottom-width"))+parseFloat(ye.getPropertyValue("border-top-width")),bt=gt.map(function(He){return"".concat(He,":").concat(ye.getPropertyValue(He))}).join(";"),ge={sizingStyle:bt,paddingSize:Ue,borderSize:It,boxSizing:ce};return Ae&&ct&&(Pt[ct]=ge),ge}function nt(Le){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ye=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ht||(ht=document.createElement("textarea"),ht.setAttribute("tab-index","-1"),ht.setAttribute("aria-hidden","true"),ht.setAttribute("name","hiddenTextarea"),document.body.appendChild(ht)),Le.getAttribute("wrap")?ht.setAttribute("wrap",Le.getAttribute("wrap")):ht.removeAttribute("wrap");var ce=it(Le,Ae),Ue=ce.paddingSize,It=ce.borderSize,bt=ce.boxSizing,ge=ce.sizingStyle;ht.setAttribute("style","".concat(ge,";").concat(rt)),ht.value=Le.value||Le.placeholder||"";var He=void 0,Ge=void 0,Tt,wt=ht.scrollHeight;if(bt==="border-box"?wt+=It:bt==="content-box"&&(wt-=Ue),ct!==null||ye!==null){ht.value=" ";var Lt=ht.scrollHeight-Ue;ct!==null&&(He=Lt*ct,bt==="border-box"&&(He=He+Ue+It),wt=Math.max(He,wt)),ye!==null&&(Ge=Lt*ye,bt==="border-box"&&(Ge=Ge+Ue+It),Tt=wt>Ge?"":"hidden",wt=Math.min(Ge,wt))}var $e={height:wt,overflowY:Tt,resize:"none"};return He&&($e.minHeight=He),Ge&&($e.maxHeight=Ge),$e}var Fe=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],kt=0,lt=1,et=2,St=dt.forwardRef(function(Le,Ae){var ct=Le,ye=ct.prefixCls,ce=ct.defaultValue,Ue=ct.value,It=ct.autoSize,bt=ct.onResize,ge=ct.className,He=ct.style,Ge=ct.disabled,Tt=ct.onChange,wt=ct.onInternalAutoSize,Lt=(0,Be.Z)(ct,Fe),$e=(0,Pe.Z)(ce,{value:Ue,postState:function(pt){return pt!=null?pt:""}}),At=(0,Ee.Z)($e,2),st=At[0],ae=At[1],te=function(pt){ae(pt.target.value),Tt==null||Tt(pt)},ee=dt.useRef();dt.useImperativeHandle(Ae,function(){return{textArea:ee.current}});var oe=dt.useMemo(function(){return It&&(0,Ze.Z)(It)==="object"?[It.minRows,It.maxRows]:[]},[It]),ue=(0,Ee.Z)(oe,2),re=ue[0],ve=ue[1],we=!!It,ft=function(){try{if(document.activeElement===ee.current){var pt=ee.current,Ft=pt.selectionStart,jt=pt.selectionEnd,Ne=pt.scrollTop;ee.current.setSelectionRange(Ft,jt),ee.current.scrollTop=Ne}}catch(ot){}},Oe=dt.useState(et),Ye=(0,Ee.Z)(Oe,2),mt=Ye[0],Bt=Ye[1],Et=dt.useState(),Ut=(0,Ee.Z)(Et,2),Wt=Ut[0],Ht=Ut[1],ln=function(){Bt(kt)};(0,Te.Z)(function(){we&&ln()},[Ue,re,ve,we]),(0,Te.Z)(function(){if(mt===kt)Bt(lt);else if(mt===lt){var je=nt(ee.current,!1,re,ve);Bt(et),Ht(je)}else ft()},[mt]);var qt=dt.useRef(),sn=function(){_e.Z.cancel(qt.current)},Dt=function(pt){mt===et&&(bt==null||bt(pt),It&&(sn(),qt.current=(0,_e.Z)(function(){ln()})))};dt.useEffect(function(){return sn},[]);var tn=we?Wt:null,Vt=(0,xe.Z)((0,xe.Z)({},He),tn);return(mt===kt||mt===lt)&&(Vt.overflowY="hidden",Vt.overflowX="hidden"),dt.createElement(Ce.Z,{onResize:Dt,disabled:!(It||bt)},dt.createElement("textarea",(0,E.Z)({},Lt,{ref:ee,style:Vt,className:We()(ye,ge,(0,Qe.Z)({},"".concat(ye,"-disabled"),Ge)),disabled:Ge,value:st,onChange:te})))}),Me=St,Ke=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],ze=dt.forwardRef(function(Le,Ae){var ct,ye=Le.defaultValue,ce=Le.value,Ue=Le.onFocus,It=Le.onBlur,bt=Le.onChange,ge=Le.allowClear,He=Le.maxLength,Ge=Le.onCompositionStart,Tt=Le.onCompositionEnd,wt=Le.suffix,Lt=Le.prefixCls,$e=Lt===void 0?"rc-textarea":Lt,At=Le.showCount,st=Le.count,ae=Le.className,te=Le.style,ee=Le.disabled,oe=Le.hidden,ue=Le.classNames,re=Le.styles,ve=Le.onResize,we=Le.onClear,ft=Le.onPressEnter,Oe=Le.readOnly,Ye=Le.autoSize,mt=Le.onKeyDown,Bt=(0,Be.Z)(Le,Ke),Et=(0,Pe.Z)(ye,{value:ce,defaultValue:ye}),Ut=(0,Ee.Z)(Et,2),Wt=Ut[0],Ht=Ut[1],ln=Wt==null?"":String(Wt),qt=dt.useState(!1),sn=(0,Ee.Z)(qt,2),Dt=sn[0],tn=sn[1],Vt=dt.useRef(!1),je=dt.useState(null),pt=(0,Ee.Z)(je,2),Ft=pt[0],jt=pt[1],Ne=(0,dt.useRef)(null),ot=(0,dt.useRef)(null),yt=function(){var Qt;return(Qt=ot.current)===null||Qt===void 0?void 0:Qt.textArea},Mt=function(){yt().focus()};(0,dt.useImperativeHandle)(Ae,function(){var Nt;return{resizableTextArea:ot.current,focus:Mt,blur:function(){yt().blur()},nativeElement:((Nt=Ne.current)===null||Nt===void 0?void 0:Nt.nativeElement)||yt()}}),(0,dt.useEffect)(function(){tn(function(Nt){return!ee&&Nt})},[ee]);var Kt=dt.useState(null),cn=(0,Ee.Z)(Kt,2),Dn=cn[0],kn=cn[1];dt.useEffect(function(){if(Dn){var Nt;(Nt=yt()).setSelectionRange.apply(Nt,(0,tt.Z)(Dn))}},[Dn]);var un=(0,he.Z)(st,At),bn=(ct=un.max)!==null&&ct!==void 0?ct:He,fn=Number(bn)>0,Gt=un.strategy(ln),Rt=!!bn&&Gt>bn,_t=function(Qt,En){var mn=En;!Vt.current&&un.exceedFormatter&&un.max&&un.strategy(En)>un.max&&(mn=un.exceedFormatter(En,{max:un.max}),En!==mn&&kn([yt().selectionStart||0,yt().selectionEnd||0])),Ht(mn),(0,Je.rJ)(Qt.currentTarget,Qt,bt,mn)},Ot=function(Qt){Vt.current=!0,Ge==null||Ge(Qt)},an=function(Qt){Vt.current=!1,_t(Qt,Qt.currentTarget.value),Tt==null||Tt(Qt)},nn=function(Qt){_t(Qt,Qt.target.value)},en=function(Qt){Qt.key==="Enter"&&ft&&ft(Qt),mt==null||mt(Qt)},xn=function(Qt){tn(!0),Ue==null||Ue(Qt)},Pn=function(Qt){tn(!1),It==null||It(Qt)},Cn=function(Qt){Ht(""),Mt(),(0,Je.rJ)(yt(),Qt,bt)},Nn=wt,An;un.show&&(un.showFormatter?An=un.showFormatter({value:ln,count:Gt,maxLength:bn}):An="".concat(Gt).concat(fn?" / ".concat(bn):""),Nn=dt.createElement(dt.Fragment,null,Nn,dt.createElement("span",{className:We()("".concat($e,"-data-count"),ue==null?void 0:ue.count),style:re==null?void 0:re.count},An)));var Qn=function(Qt){var En;ve==null||ve(Qt),(En=yt())!==null&&En!==void 0&&En.style.height&&jt(!0)},zn=!Ye&&!At&&!ge;return dt.createElement(Ie.BaseInput,{ref:Ne,value:ln,allowClear:ge,handleReset:Cn,suffix:Nn,prefixCls:$e,classNames:(0,xe.Z)((0,xe.Z)({},ue),{},{affixWrapper:We()(ue==null?void 0:ue.affixWrapper,(0,Qe.Z)((0,Qe.Z)({},"".concat($e,"-show-count"),At),"".concat($e,"-textarea-allow-clear"),ge))}),disabled:ee,focused:Dt,className:We()(ae,Rt&&"".concat($e,"-out-of-range")),style:(0,xe.Z)((0,xe.Z)({},te),Ft&&!zn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof An=="string"?An:void 0}},hidden:oe,readOnly:Oe,onClear:we},dt.createElement(Me,(0,E.Z)({},Bt,{autoSize:Ye,maxLength:He,onKeyDown:en,onChange:nn,onFocus:xn,onBlur:Pn,onCompositionStart:Ot,onCompositionEnd:an,className:We()(ue==null?void 0:ue.textarea),style:(0,xe.Z)((0,xe.Z)({},re==null?void 0:re.textarea),{},{resize:te==null?void 0:te.resize}),disabled:ee,prefixCls:$e,onResize:Qn,ref:ot,readOnly:Oe})))}),se=ze,qe=se},48911:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return st}});var E=ne(60499),Qe=ne(43749),xe=ne(85899),tt=ne(18642),Ee=ne(72190),Be=ne(42244),De=ne(92310),We=ne.n(De),Ie=ne(29301),he=ne(70425),Je=ne(34280),Pe=ne(59301),dt=ne(4676),Ze=Pe.forwardRef(function(ae,te){var ee=ae.height,oe=ae.offsetY,ue=ae.offsetX,re=ae.children,ve=ae.prefixCls,we=ae.onInnerResize,ft=ae.innerProps,Oe=ae.rtl,Ye=ae.extra,mt={},Bt={display:"flex",flexDirection:"column"};return oe!==void 0&&(mt={height:ee,position:"relative",overflow:"hidden"},Bt=(0,xe.Z)((0,xe.Z)({},Bt),{},(0,tt.Z)((0,tt.Z)((0,tt.Z)((0,tt.Z)((0,tt.Z)({transform:"translateY(".concat(oe,"px)")},Oe?"marginRight":"marginLeft",-ue),"position","absolute"),"left",0),"right",0),"top",0))),Pe.createElement("div",{style:mt},Pe.createElement(Ie.Z,{onResize:function(Ut){var Wt=Ut.offsetHeight;Wt&&we&&we()}},Pe.createElement("div",(0,E.Z)({style:Bt,className:We()((0,tt.Z)({},"".concat(ve,"-holder-inner"),ve)),ref:te},ft),re,Ye)))});Ze.displayName="Filler";var Ce=Ze;function Te(ae){var te=ae.children,ee=ae.setRef,oe=Pe.useCallback(function(ue){ee(ue)},[]);return Pe.cloneElement(te,{ref:oe})}function _e(ae,te,ee,oe,ue,re,ve,we){var ft=we.getKey;return ae.slice(te,ee+1).map(function(Oe,Ye){var mt=te+Ye,Bt=ve(Oe,mt,{style:{width:oe},offsetX:ue}),Et=ft(Oe);return Pe.createElement(Te,{key:Et,setRef:function(Wt){return re(Oe,Wt)}},Bt)})}function rt(ae,te,ee,oe){var ue=ee-ae,re=te-ee,ve=Math.min(ue,re)*2;if(oe<=ve){var we=Math.floor(oe/2);return oe%2?ee+we+1:ee-we}return ue>re?ee-(oe-re):ee+(oe-ue)}function gt(ae,te,ee){var oe=ae.length,ue=te.length,re,ve;if(oe===0&&ue===0)return null;oe<ue?(re=ae,ve=te):(re=te,ve=ae);var we={__EMPTY_ITEM__:!0};function ft(Ut){return Ut!==void 0?ee(Ut):we}for(var Oe=null,Ye=Math.abs(oe-ue)!==1,mt=0;mt<ve.length;mt+=1){var Bt=ft(re[mt]),Et=ft(ve[mt]);if(Bt!==Et){Oe=mt,Ye=Ye||Bt!==ft(ve[mt+1]);break}}return Oe===null?null:{index:Oe,multiple:Ye}}function Pt(ae,te,ee){var oe=Pe.useState(ae),ue=(0,Ee.Z)(oe,2),re=ue[0],ve=ue[1],we=Pe.useState(null),ft=(0,Ee.Z)(we,2),Oe=ft[0],Ye=ft[1];return Pe.useEffect(function(){var mt=gt(re||[],ae||[],te);(mt==null?void 0:mt.index)!==void 0&&(ee==null||ee(mt.index),Ye(ae[mt.index])),ve(ae)},[ae]),[Oe]}var ht=ne(16089),it=(typeof navigator=="undefined"?"undefined":(0,Qe.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),nt=it,Fe=function(ae,te,ee,oe){var ue=(0,Pe.useRef)(!1),re=(0,Pe.useRef)(null);function ve(){clearTimeout(re.current),ue.current=!0,re.current=setTimeout(function(){ue.current=!1},50)}var we=(0,Pe.useRef)({top:ae,bottom:te,left:ee,right:oe});return we.current.top=ae,we.current.bottom=te,we.current.left=ee,we.current.right=oe,function(ft,Oe){var Ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,mt=ft?Oe<0&&we.current.left||Oe>0&&we.current.right:Oe<0&&we.current.top||Oe>0&&we.current.bottom;return Ye&&mt?(clearTimeout(re.current),ue.current=!1):(!mt||ue.current)&&ve(),!ue.current&&mt}};function kt(ae,te,ee,oe,ue,re,ve){var we=(0,Pe.useRef)(0),ft=(0,Pe.useRef)(null),Oe=(0,Pe.useRef)(null),Ye=(0,Pe.useRef)(!1),mt=Fe(te,ee,oe,ue);function Bt(qt,sn){if(ht.Z.cancel(ft.current),!mt(!1,sn)){var Dt=qt;if(!Dt._virtualHandled)Dt._virtualHandled=!0;else return;we.current+=sn,Oe.current=sn,nt||Dt.preventDefault(),ft.current=(0,ht.Z)(function(){var tn=Ye.current?10:1;ve(we.current*tn,!1),we.current=0})}}function Et(qt,sn){ve(sn,!0),nt||qt.preventDefault()}var Ut=(0,Pe.useRef)(null),Wt=(0,Pe.useRef)(null);function Ht(qt){if(ae){ht.Z.cancel(Wt.current),Wt.current=(0,ht.Z)(function(){Ut.current=null},2);var sn=qt.deltaX,Dt=qt.deltaY,tn=qt.shiftKey,Vt=sn,je=Dt;(Ut.current==="sx"||!Ut.current&&tn&&Dt&&!sn)&&(Vt=Dt,je=0,Ut.current="sx");var pt=Math.abs(Vt),Ft=Math.abs(je);Ut.current===null&&(Ut.current=re&&pt>Ft?"x":"y"),Ut.current==="y"?Bt(qt,je):Et(qt,Vt)}}function ln(qt){ae&&(Ye.current=qt.detail===Oe.current)}return[Ht,ln]}function lt(ae,te,ee,oe){var ue=Pe.useMemo(function(){return[new Map,[]]},[ae,ee.id,oe]),re=(0,Ee.Z)(ue,2),ve=re[0],we=re[1],ft=function(Ye){var mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ye,Bt=ve.get(Ye),Et=ve.get(mt);if(Bt===void 0||Et===void 0)for(var Ut=ae.length,Wt=we.length;Wt<Ut;Wt+=1){var Ht,ln=ae[Wt],qt=te(ln);ve.set(qt,Wt);var sn=(Ht=ee.get(qt))!==null&&Ht!==void 0?Ht:oe;if(we[Wt]=(we[Wt-1]||0)+sn,qt===Ye&&(Bt=Wt),qt===mt&&(Et=Wt),Bt!==void 0&&Et!==void 0)break}return{top:we[Bt-1]||0,bottom:we[Et]}};return ft}var et=ne(38705),St=ne(17212),Me=function(){function ae(){(0,et.Z)(this,ae),(0,tt.Z)(this,"maps",void 0),(0,tt.Z)(this,"id",0),(0,tt.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,St.Z)(ae,[{key:"set",value:function(ee,oe){this.diffRecords.set(ee,this.maps[ee]),this.maps[ee]=oe,this.id+=1}},{key:"get",value:function(ee){return this.maps[ee]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),ae}(),Ke=Me;function ze(ae){var te=parseFloat(ae);return isNaN(te)?0:te}function se(ae,te,ee){var oe=Pe.useState(0),ue=(0,Ee.Z)(oe,2),re=ue[0],ve=ue[1],we=(0,Pe.useRef)(new Map),ft=(0,Pe.useRef)(new Ke),Oe=(0,Pe.useRef)(0);function Ye(){Oe.current+=1}function mt(){var Et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ye();var Ut=function(){var ln=!1;we.current.forEach(function(qt,sn){if(qt&&qt.offsetParent){var Dt=qt.offsetHeight,tn=getComputedStyle(qt),Vt=tn.marginTop,je=tn.marginBottom,pt=ze(Vt),Ft=ze(je),jt=Dt+pt+Ft;ft.current.get(sn)!==jt&&(ft.current.set(sn,jt),ln=!0)}}),ln&&ve(function(qt){return qt+1})};if(Et)Ut();else{Oe.current+=1;var Wt=Oe.current;Promise.resolve().then(function(){Wt===Oe.current&&Ut()})}}function Bt(Et,Ut){var Wt=ae(Et),Ht=we.current.get(Wt);Ut?(we.current.set(Wt,Ut),mt()):we.current.delete(Wt),!Ht!=!Ut&&(Ut?te==null||te(Et):ee==null||ee(Et))}return(0,Pe.useEffect)(function(){return Ye},[]),[Bt,mt,ft.current,re]}var qe=14/15;function Le(ae,te,ee){var oe=(0,Pe.useRef)(!1),ue=(0,Pe.useRef)(0),re=(0,Pe.useRef)(0),ve=(0,Pe.useRef)(null),we=(0,Pe.useRef)(null),ft,Oe=function(Et){if(oe.current){var Ut=Math.ceil(Et.touches[0].pageX),Wt=Math.ceil(Et.touches[0].pageY),Ht=ue.current-Ut,ln=re.current-Wt,qt=Math.abs(Ht)>Math.abs(ln);qt?ue.current=Ut:re.current=Wt;var sn=ee(qt,qt?Ht:ln,!1,Et);sn&&Et.preventDefault(),clearInterval(we.current),sn&&(we.current=setInterval(function(){qt?Ht*=qe:ln*=qe;var Dt=Math.floor(qt?Ht:ln);(!ee(qt,Dt,!0)||Math.abs(Dt)<=.1)&&clearInterval(we.current)},16))}},Ye=function(){oe.current=!1,ft()},mt=function(Et){ft(),Et.touches.length===1&&!oe.current&&(oe.current=!0,ue.current=Math.ceil(Et.touches[0].pageX),re.current=Math.ceil(Et.touches[0].pageY),ve.current=Et.target,ve.current.addEventListener("touchmove",Oe,{passive:!1}),ve.current.addEventListener("touchend",Ye,{passive:!0}))};ft=function(){ve.current&&(ve.current.removeEventListener("touchmove",Oe),ve.current.removeEventListener("touchend",Ye))},(0,Je.Z)(function(){return ae&&te.current.addEventListener("touchstart",mt,{passive:!0}),function(){var Bt;(Bt=te.current)===null||Bt===void 0||Bt.removeEventListener("touchstart",mt),ft(),clearInterval(we.current)}},[ae])}function Ae(ae){return Math.floor(Math.pow(ae,.5))}function ct(ae,te){var ee="touches"in ae?ae.touches[0]:ae;return ee[te?"pageX":"pageY"]-window[te?"scrollX":"scrollY"]}function ye(ae,te,ee){Pe.useEffect(function(){var oe=te.current;if(ae&&oe){var ue=!1,re,ve,we=function(){ht.Z.cancel(re)},ft=function Bt(){we(),re=(0,ht.Z)(function(){ee(ve),Bt()})},Oe=function(){ue=!1,we()},Ye=function(Et){if(!(Et.target.draggable||Et.button!==0)){var Ut=Et;Ut._virtualHandled||(Ut._virtualHandled=!0,ue=!0)}},mt=function(Et){if(ue){var Ut=ct(Et,!1),Wt=oe.getBoundingClientRect(),Ht=Wt.top,ln=Wt.bottom;if(Ut<=Ht){var qt=Ht-Ut;ve=-Ae(qt),ft()}else if(Ut>=ln){var sn=Ut-ln;ve=Ae(sn),ft()}else we()}};return oe.addEventListener("mousedown",Ye),oe.ownerDocument.addEventListener("mouseup",Oe),oe.ownerDocument.addEventListener("mousemove",mt),oe.ownerDocument.addEventListener("dragend",Oe),function(){oe.removeEventListener("mousedown",Ye),oe.ownerDocument.removeEventListener("mouseup",Oe),oe.ownerDocument.removeEventListener("mousemove",mt),oe.ownerDocument.removeEventListener("dragend",Oe),we()}}},[ae])}var ce=10;function Ue(ae,te,ee,oe,ue,re,ve,we){var ft=Pe.useRef(),Oe=Pe.useState(null),Ye=(0,Ee.Z)(Oe,2),mt=Ye[0],Bt=Ye[1];return(0,Je.Z)(function(){if(mt&&mt.times<ce){if(!ae.current){Bt(function(un){return(0,xe.Z)({},un)});return}re();var Et=mt.targetAlign,Ut=mt.originAlign,Wt=mt.index,Ht=mt.offset,ln=ae.current.clientHeight,qt=!1,sn=Et,Dt=null;if(ln){for(var tn=Et||Ut,Vt=0,je=0,pt=0,Ft=Math.min(te.length-1,Wt),jt=0;jt<=Ft;jt+=1){var Ne=ue(te[jt]);je=Vt;var ot=ee.get(Ne);pt=je+(ot===void 0?oe:ot),Vt=pt}for(var yt=tn==="top"?Ht:ln-Ht,Mt=Ft;Mt>=0;Mt-=1){var Kt=ue(te[Mt]),cn=ee.get(Kt);if(cn===void 0){qt=!0;break}if(yt-=cn,yt<=0)break}switch(tn){case"top":Dt=je-Ht;break;case"bottom":Dt=pt-ln+Ht;break;default:{var Dn=ae.current.scrollTop,kn=Dn+ln;je<Dn?sn="top":pt>kn&&(sn="bottom")}}Dt!==null&&ve(Dt),Dt!==mt.lastTop&&(qt=!0)}qt&&Bt((0,xe.Z)((0,xe.Z)({},mt),{},{times:mt.times+1,targetAlign:sn,lastTop:Dt}))}},[mt,ae.current]),function(Et){if(Et==null){we();return}if(ht.Z.cancel(ft.current),typeof Et=="number")ve(Et);else if(Et&&(0,Qe.Z)(Et)==="object"){var Ut,Wt=Et.align;"index"in Et?Ut=Et.index:Ut=te.findIndex(function(qt){return ue(qt)===Et.key});var Ht=Et.offset,ln=Ht===void 0?0:Ht;Bt({times:0,index:Ut,offset:ln,originAlign:Wt})}}}var It=Pe.forwardRef(function(ae,te){var ee=ae.prefixCls,oe=ae.rtl,ue=ae.scrollOffset,re=ae.scrollRange,ve=ae.onStartMove,we=ae.onStopMove,ft=ae.onScroll,Oe=ae.horizontal,Ye=ae.spinSize,mt=ae.containerSize,Bt=ae.style,Et=ae.thumbStyle,Ut=ae.showScrollBar,Wt=Pe.useState(!1),Ht=(0,Ee.Z)(Wt,2),ln=Ht[0],qt=Ht[1],sn=Pe.useState(null),Dt=(0,Ee.Z)(sn,2),tn=Dt[0],Vt=Dt[1],je=Pe.useState(null),pt=(0,Ee.Z)(je,2),Ft=pt[0],jt=pt[1],Ne=!oe,ot=Pe.useRef(),yt=Pe.useRef(),Mt=Pe.useState(Ut),Kt=(0,Ee.Z)(Mt,2),cn=Kt[0],Dn=Kt[1],kn=Pe.useRef(),un=function(){Ut===!0||Ut===!1||(clearTimeout(kn.current),Dn(!0),kn.current=setTimeout(function(){Dn(!1)},3e3))},bn=re-mt||0,fn=mt-Ye||0,Gt=Pe.useMemo(function(){if(ue===0||bn===0)return 0;var Cn=ue/bn;return Cn*fn},[ue,bn,fn]),Rt=function(Nn){Nn.stopPropagation(),Nn.preventDefault()},_t=Pe.useRef({top:Gt,dragging:ln,pageY:tn,startTop:Ft});_t.current={top:Gt,dragging:ln,pageY:tn,startTop:Ft};var Ot=function(Nn){qt(!0),Vt(ct(Nn,Oe)),jt(_t.current.top),ve(),Nn.stopPropagation(),Nn.preventDefault()};Pe.useEffect(function(){var Cn=function(zn){zn.preventDefault()},Nn=ot.current,An=yt.current;return Nn.addEventListener("touchstart",Cn,{passive:!1}),An.addEventListener("touchstart",Ot,{passive:!1}),function(){Nn.removeEventListener("touchstart",Cn),An.removeEventListener("touchstart",Ot)}},[]);var an=Pe.useRef();an.current=bn;var nn=Pe.useRef();nn.current=fn,Pe.useEffect(function(){if(ln){var Cn,Nn=function(zn){var Nt=_t.current,Qt=Nt.dragging,En=Nt.pageY,mn=Nt.startTop;ht.Z.cancel(Cn);var Xe=ot.current.getBoundingClientRect(),ut=mt/(Oe?Xe.width:Xe.height);if(Qt){var ke=(ct(zn,Oe)-En)*ut,be=mn;!Ne&&Oe?be-=ke:be+=ke;var fe=an.current,pe=nn.current,Ve=pe?be/pe:0,Xt=Math.ceil(Ve*fe);Xt=Math.max(Xt,0),Xt=Math.min(Xt,fe),Cn=(0,ht.Z)(function(){ft(Xt,Oe)})}},An=function(){qt(!1),we()};return window.addEventListener("mousemove",Nn,{passive:!0}),window.addEventListener("touchmove",Nn,{passive:!0}),window.addEventListener("mouseup",An,{passive:!0}),window.addEventListener("touchend",An,{passive:!0}),function(){window.removeEventListener("mousemove",Nn),window.removeEventListener("touchmove",Nn),window.removeEventListener("mouseup",An),window.removeEventListener("touchend",An),ht.Z.cancel(Cn)}}},[ln]),Pe.useEffect(function(){return un(),function(){clearTimeout(kn.current)}},[ue]),Pe.useImperativeHandle(te,function(){return{delayHidden:un}});var en="".concat(ee,"-scrollbar"),xn={position:"absolute",visibility:cn?null:"hidden"},Pn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Oe?(Object.assign(xn,{height:8,left:0,right:0,bottom:0}),Object.assign(Pn,(0,tt.Z)({height:"100%",width:Ye},Ne?"left":"right",Gt))):(Object.assign(xn,(0,tt.Z)({width:8,top:0,bottom:0},Ne?"right":"left",0)),Object.assign(Pn,{width:"100%",height:Ye,top:Gt})),Pe.createElement("div",{ref:ot,className:We()(en,(0,tt.Z)((0,tt.Z)((0,tt.Z)({},"".concat(en,"-horizontal"),Oe),"".concat(en,"-vertical"),!Oe),"".concat(en,"-visible"),cn)),style:(0,xe.Z)((0,xe.Z)({},xn),Bt),onMouseDown:Rt,onMouseMove:un},Pe.createElement("div",{ref:yt,className:We()("".concat(en,"-thumb"),(0,tt.Z)({},"".concat(en,"-thumb-moving"),ln)),style:(0,xe.Z)((0,xe.Z)({},Pn),Et),onMouseDown:Ot}))}),bt=It,ge=20;function He(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ee=ae/te*ae;return isNaN(ee)&&(ee=0),ee=Math.max(ee,ge),Math.floor(ee)}var Ge=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Tt=[],wt={overflowY:"auto",overflowAnchor:"none"};function Lt(ae,te){var ee=ae.prefixCls,oe=ee===void 0?"rc-virtual-list":ee,ue=ae.className,re=ae.height,ve=ae.itemHeight,we=ae.fullHeight,ft=we===void 0?!0:we,Oe=ae.style,Ye=ae.data,mt=ae.children,Bt=ae.itemKey,Et=ae.virtual,Ut=ae.direction,Wt=ae.scrollWidth,Ht=ae.component,ln=Ht===void 0?"div":Ht,qt=ae.onScroll,sn=ae.onVirtualScroll,Dt=ae.onVisibleChange,tn=ae.innerProps,Vt=ae.extraRender,je=ae.styles,pt=ae.showScrollBar,Ft=pt===void 0?"optional":pt,jt=(0,Be.Z)(ae,Ge),Ne=Pe.useCallback(function(pn){return typeof Bt=="function"?Bt(pn):pn==null?void 0:pn[Bt]},[Bt]),ot=se(Ne,null,null),yt=(0,Ee.Z)(ot,4),Mt=yt[0],Kt=yt[1],cn=yt[2],Dn=yt[3],kn=!!(Et!==!1&&re&&ve),un=Pe.useMemo(function(){return Object.values(cn.maps).reduce(function(pn,In){return pn+In},0)},[cn.id,cn.maps]),bn=kn&&Ye&&(Math.max(ve*Ye.length,un)>re||!!Wt),fn=Ut==="rtl",Gt=We()(oe,(0,tt.Z)({},"".concat(oe,"-rtl"),fn),ue),Rt=Ye||Tt,_t=(0,Pe.useRef)(),Ot=(0,Pe.useRef)(),an=(0,Pe.useRef)(),nn=(0,Pe.useState)(0),en=(0,Ee.Z)(nn,2),xn=en[0],Pn=en[1],Cn=(0,Pe.useState)(0),Nn=(0,Ee.Z)(Cn,2),An=Nn[0],Qn=Nn[1],zn=(0,Pe.useState)(!1),Nt=(0,Ee.Z)(zn,2),Qt=Nt[0],En=Nt[1],mn=function(){En(!0)},Xe=function(){En(!1)},ut={getKey:Ne};function ke(pn){Pn(function(In){var wn;typeof pn=="function"?wn=pn(In):wn=pn;var dn=or(wn);return _t.current.scrollTop=dn,dn})}var be=(0,Pe.useRef)({start:0,end:Rt.length}),fe=(0,Pe.useRef)(),pe=Pt(Rt,Ne),Ve=(0,Ee.Z)(pe,1),Xt=Ve[0];fe.current=Xt;var rn=Pe.useMemo(function(){if(!kn)return{scrollHeight:void 0,start:0,end:Rt.length-1,offset:void 0};if(!bn){var pn;return{scrollHeight:((pn=Ot.current)===null||pn===void 0?void 0:pn.offsetHeight)||0,start:0,end:Rt.length-1,offset:void 0}}for(var In=0,wn,dn,Gn,nr=Rt.length,vn=0;vn<nr;vn+=1){var yn=Rt[vn],jn=Ne(yn),Wn=cn.get(jn),vr=In+(Wn===void 0?ve:Wn);vr>=xn&&wn===void 0&&(wn=vn,dn=In),vr>xn+re&&Gn===void 0&&(Gn=vn),In=vr}return wn===void 0&&(wn=0,dn=0,Gn=Math.ceil(re/ve)),Gn===void 0&&(Gn=Rt.length-1),Gn=Math.min(Gn+1,Rt.length-1),{scrollHeight:In,start:wn,end:Gn,offset:dn}},[bn,kn,xn,Rt,Dn,re]),Yt=rn.scrollHeight,Ct=rn.start,Re=rn.end,xt=rn.offset;be.current.start=Ct,be.current.end=Re,Pe.useLayoutEffect(function(){var pn=cn.getRecord();if(pn.size===1){var In=Array.from(pn.keys())[0],wn=pn.get(In),dn=Rt[Ct];if(dn&&wn===void 0){var Gn=Ne(dn);if(Gn===In){var nr=cn.get(In),vn=nr-ve;ke(function(yn){return yn+vn})}}}cn.resetRecord()},[Yt]);var Jt=Pe.useState({width:0,height:re}),gn=(0,Ee.Z)(Jt,2),On=gn[0],Sn=gn[1],Fn=function(In){Sn({width:In.offsetWidth,height:In.offsetHeight})},Xn=(0,Pe.useRef)(),qn=(0,Pe.useRef)(),Hn=Pe.useMemo(function(){return He(On.width,Wt)},[On.width,Wt]),Ln=Pe.useMemo(function(){return He(On.height,Yt)},[On.height,Yt]),Rn=Yt-re,Zn=(0,Pe.useRef)(Rn);Zn.current=Rn;function or(pn){var In=pn;return Number.isNaN(Zn.current)||(In=Math.min(In,Zn.current)),In=Math.max(In,0),In}var rr=xn<=0,ir=xn>=Rn,Un=An<=0,Kn=An>=Wt,Tn=Fe(rr,ir,Un,Kn),mr=function(){return{x:fn?-An:An,y:xn}},Vn=(0,Pe.useRef)(mr()),Bn=(0,he.zX)(function(pn){if(sn){var In=(0,xe.Z)((0,xe.Z)({},mr()),pn);(Vn.current.x!==In.x||Vn.current.y!==In.y)&&(sn(In),Vn.current=In)}});function Yn(pn,In){var wn=pn;In?((0,dt.flushSync)(function(){Qn(wn)}),Bn()):ke(wn)}function Jn(pn){var In=pn.currentTarget.scrollTop;In!==xn&&ke(In),qt==null||qt(pn),Bn()}var dr=function(In){var wn=In,dn=Wt?Wt-On.width:0;return wn=Math.max(wn,0),wn=Math.min(wn,dn),wn},sr=(0,he.zX)(function(pn,In){In?((0,dt.flushSync)(function(){Qn(function(wn){var dn=wn+(fn?-pn:pn);return dr(dn)})}),Bn()):ke(function(wn){var dn=wn+pn;return dn})}),_n=kt(kn,rr,ir,Un,Kn,!!Wt,sr),hr=(0,Ee.Z)(_n,2),ar=hr[0],pr=hr[1];Le(kn,_t,function(pn,In,wn,dn){var Gn=dn;return Tn(pn,In,wn)?!1:!Gn||!Gn._virtualHandled?(Gn&&(Gn._virtualHandled=!0),ar({preventDefault:function(){},deltaX:pn?In:0,deltaY:pn?0:In}),!0):!1}),ye(bn,_t,function(pn){ke(function(In){return In+pn})}),(0,Je.Z)(function(){function pn(wn){var dn=rr&&wn.detail<0,Gn=ir&&wn.detail>0;kn&&!dn&&!Gn&&wn.preventDefault()}var In=_t.current;return In.addEventListener("wheel",ar,{passive:!1}),In.addEventListener("DOMMouseScroll",pr,{passive:!0}),In.addEventListener("MozMousePixelScroll",pn,{passive:!1}),function(){In.removeEventListener("wheel",ar),In.removeEventListener("DOMMouseScroll",pr),In.removeEventListener("MozMousePixelScroll",pn)}},[kn,rr,ir]),(0,Je.Z)(function(){if(Wt){var pn=dr(An);Qn(pn),Bn({x:pn})}},[On.width,Wt]);var fr=function(){var In,wn;(In=Xn.current)===null||In===void 0||In.delayHidden(),(wn=qn.current)===null||wn===void 0||wn.delayHidden()},wr=Ue(_t,Rt,cn,ve,Ne,function(){return Kt(!0)},ke,fr);Pe.useImperativeHandle(te,function(){return{nativeElement:an.current,getScrollInfo:mr,scrollTo:function(In){function wn(dn){return dn&&(0,Qe.Z)(dn)==="object"&&("left"in dn||"top"in dn)}wn(In)?(In.left!==void 0&&Qn(dr(In.left)),wr(In.top)):wr(In)}}}),(0,Je.Z)(function(){if(Dt){var pn=Rt.slice(Ct,Re+1);Dt(pn,Rt)}},[Ct,Re,Rt]);var br=lt(Rt,Ne,cn,ve),Or=Vt==null?void 0:Vt({start:Ct,end:Re,virtual:bn,offsetX:An,offsetY:xt,rtl:fn,getSize:br}),_r=_e(Rt,Ct,Re,Wt,An,Mt,mt,ut),xr=null;re&&(xr=(0,xe.Z)((0,tt.Z)({},ft?"height":"maxHeight",re),wt),kn&&(xr.overflowY="hidden",Wt&&(xr.overflowX="hidden"),Qt&&(xr.pointerEvents="none")));var ur={};return fn&&(ur.dir="rtl"),Pe.createElement("div",(0,E.Z)({ref:an,style:(0,xe.Z)((0,xe.Z)({},Oe),{},{position:"relative"}),className:Gt},ur,jt),Pe.createElement(Ie.Z,{onResize:Fn},Pe.createElement(ln,{className:"".concat(oe,"-holder"),style:xr,ref:_t,onScroll:Jn,onMouseEnter:fr},Pe.createElement(Ce,{prefixCls:oe,height:Yt,offsetX:An,offsetY:xt,scrollWidth:Wt,onInnerResize:Kt,ref:Ot,innerProps:tn,rtl:fn,extra:Or},_r))),bn&&Yt>re&&Pe.createElement(bt,{ref:Xn,prefixCls:oe,scrollOffset:xn,scrollRange:Yt,rtl:fn,onScroll:Yn,onStartMove:mn,onStopMove:Xe,spinSize:Ln,containerSize:On.height,style:je==null?void 0:je.verticalScrollBar,thumbStyle:je==null?void 0:je.verticalScrollBarThumb,showScrollBar:Ft}),bn&&Wt>On.width&&Pe.createElement(bt,{ref:qn,prefixCls:oe,scrollOffset:An,scrollRange:Wt,rtl:fn,onScroll:Yn,onStartMove:mn,onStopMove:Xe,spinSize:Hn,containerSize:On.width,horizontal:!0,style:je==null?void 0:je.horizontalScrollBar,thumbStyle:je==null?void 0:je.horizontalScrollBarThumb,showScrollBar:Ft}))}var $e=Pe.forwardRef(Lt);$e.displayName="List";var At=$e,st=At},51581:function(on,$t,ne){"use strict";Object.defineProperty($t,"__esModule",{value:!0});var E=function(){function Pe(dt,Ze){for(var Ce=0;Ce<Ze.length;Ce++){var Te=Ze[Ce];Te.enumerable=Te.enumerable||!1,Te.configurable=!0,"value"in Te&&(Te.writable=!0),Object.defineProperty(dt,Te.key,Te)}}return function(dt,Ze,Ce){return Ze&&Pe(dt.prototype,Ze),Ce&&Pe(dt,Ce),dt}}(),Qe=ne(59301),xe=Be(Qe),tt=ne(12708),Ee=Be(tt);function Be(Pe){return Pe&&Pe.__esModule?Pe:{default:Pe}}function De(Pe,dt){var Ze={};for(var Ce in Pe)dt.indexOf(Ce)>=0||Object.prototype.hasOwnProperty.call(Pe,Ce)&&(Ze[Ce]=Pe[Ce]);return Ze}function We(Pe,dt){if(!(Pe instanceof dt))throw new TypeError("Cannot call a class as a function")}function Ie(Pe,dt){if(!Pe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return dt&&(typeof dt=="object"||typeof dt=="function")?dt:Pe}function he(Pe,dt){if(typeof dt!="function"&&dt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof dt);Pe.prototype=Object.create(dt&&dt.prototype,{constructor:{value:Pe,enumerable:!1,writable:!0,configurable:!0}}),dt&&(Object.setPrototypeOf?Object.setPrototypeOf(Pe,dt):Pe.__proto__=dt)}var Je=function(Pe){he(dt,Pe);function dt(Ze){We(this,dt);var Ce=Ie(this,(dt.__proto__||Object.getPrototypeOf(dt)).call(this,Ze));return Ce.scrollListener=Ce.scrollListener.bind(Ce),Ce.eventListenerOptions=Ce.eventListenerOptions.bind(Ce),Ce.mousewheelListener=Ce.mousewheelListener.bind(Ce),Ce}return E(dt,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var Ce=this.getParentElement(this.scrollComponent);Ce.scrollTop=Ce.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var Ce=!1,Te={get passive(){Ce=!0}};try{document.addEventListener("test",null,Te),document.removeEventListener("test",null,Te)}catch(_e){}return Ce}},{key:"eventListenerOptions",value:function(){var Ce=this.props.useCapture;return this.isPassiveSupported()&&(Ce={useCapture:this.props.useCapture,passive:!0}),Ce}},{key:"setDefaultLoader",value:function(Ce){this.defaultLoader=Ce}},{key:"detachMousewheelListener",value:function(){var Ce=window;this.props.useWindow===!1&&(Ce=this.scrollComponent.parentNode),Ce.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var Ce=window;this.props.useWindow===!1&&(Ce=this.getParentElement(this.scrollComponent)),Ce.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),Ce.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(Ce){var Te=this.props.getScrollParent&&this.props.getScrollParent();return Te!=null?Te:Ce&&Ce.parentNode}},{key:"filterProps",value:function(Ce){return Ce}},{key:"attachScrollListener",value:function(){var Ce=this.getParentElement(this.scrollComponent);if(!(!this.props.hasMore||!Ce)){var Te=window;this.props.useWindow===!1&&(Te=Ce),Te.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),Te.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),Te.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(Ce){Ce.deltaY===1&&!this.isPassiveSupported()&&Ce.preventDefault()}},{key:"scrollListener",value:function(){var Ce=this.scrollComponent,Te=window,_e=this.getParentElement(Ce),rt=void 0;if(this.props.useWindow){var gt=document.documentElement||document.body.parentNode||document.body,Pt=Te.pageYOffset!==void 0?Te.pageYOffset:gt.scrollTop;this.props.isReverse?rt=Pt:rt=this.calculateOffset(Ce,Pt)}else this.props.isReverse?rt=_e.scrollTop:rt=Ce.scrollHeight-_e.scrollTop-_e.clientHeight;rt<Number(this.props.threshold)&&Ce&&Ce.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=_e.scrollHeight,this.beforeScrollTop=_e.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(Ce,Te){return Ce?this.calculateTopPosition(Ce)+(Ce.offsetHeight-Te-window.innerHeight):0}},{key:"calculateTopPosition",value:function(Ce){return Ce?Ce.offsetTop+this.calculateTopPosition(Ce.offsetParent):0}},{key:"render",value:function(){var Ce=this,Te=this.filterProps(this.props),_e=Te.children,rt=Te.element,gt=Te.hasMore,Pt=Te.initialLoad,ht=Te.isReverse,it=Te.loader,nt=Te.loadMore,Fe=Te.pageStart,kt=Te.ref,lt=Te.threshold,et=Te.useCapture,St=Te.useWindow,Me=Te.getScrollParent,Ke=De(Te,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);Ke.ref=function(se){Ce.scrollComponent=se,kt&&kt(se)};var ze=[_e];return gt&&(it?ht?ze.unshift(it):ze.push(it):this.defaultLoader&&(ht?ze.unshift(this.defaultLoader):ze.push(this.defaultLoader))),xe.default.createElement(rt,Ke,ze)}}]),dt}(Qe.Component);Je.propTypes={children:Ee.default.node.isRequired,element:Ee.default.node,hasMore:Ee.default.bool,initialLoad:Ee.default.bool,isReverse:Ee.default.bool,loader:Ee.default.node,loadMore:Ee.default.func.isRequired,pageStart:Ee.default.number,ref:Ee.default.func,getScrollParent:Ee.default.func,threshold:Ee.default.number,useCapture:Ee.default.bool,useWindow:Ee.default.bool},Je.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},$t.default=Je,on.exports=$t.default},26724:function(on,$t,ne){on.exports=ne(51581)},4977:function(on){"use strict";on.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},16722:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return We}});const E=Ie=>typeof Ie=="object"&&Ie!=null&&Ie.nodeType===1,Qe=(Ie,he)=>(!he||Ie!=="hidden")&&Ie!=="visible"&&Ie!=="clip",xe=(Ie,he)=>{if(Ie.clientHeight<Ie.scrollHeight||Ie.clientWidth<Ie.scrollWidth){const Je=getComputedStyle(Ie,null);return Qe(Je.overflowY,he)||Qe(Je.overflowX,he)||(Pe=>{const dt=(Ze=>{if(!Ze.ownerDocument||!Ze.ownerDocument.defaultView)return null;try{return Ze.ownerDocument.defaultView.frameElement}catch(Ce){return null}})(Pe);return!!dt&&(dt.clientHeight<Pe.scrollHeight||dt.clientWidth<Pe.scrollWidth)})(Ie)}return!1},tt=(Ie,he,Je,Pe,dt,Ze,Ce,Te)=>Ze<Ie&&Ce>he||Ze>Ie&&Ce<he?0:Ze<=Ie&&Te<=Je||Ce>=he&&Te>=Je?Ze-Ie-Pe:Ce>he&&Te<Je||Ze<Ie&&Te>Je?Ce-he+dt:0,Ee=Ie=>{const he=Ie.parentElement;return he==null?Ie.getRootNode().host||null:he},Be=(Ie,he)=>{var Je,Pe,dt,Ze;if(typeof document=="undefined")return[];const{scrollMode:Ce,block:Te,inline:_e,boundary:rt,skipOverflowHiddenElements:gt}=he,Pt=typeof rt=="function"?rt:bt=>bt!==rt;if(!E(Ie))throw new TypeError("Invalid target");const ht=document.scrollingElement||document.documentElement,it=[];let nt=Ie;for(;E(nt)&&Pt(nt);){if(nt=Ee(nt),nt===ht){it.push(nt);break}nt!=null&&nt===document.body&&xe(nt)&&!xe(document.documentElement)||nt!=null&&xe(nt,gt)&&it.push(nt)}const Fe=(Pe=(Je=window.visualViewport)==null?void 0:Je.width)!=null?Pe:innerWidth,kt=(Ze=(dt=window.visualViewport)==null?void 0:dt.height)!=null?Ze:innerHeight,{scrollX:lt,scrollY:et}=window,{height:St,width:Me,top:Ke,right:ze,bottom:se,left:qe}=Ie.getBoundingClientRect(),{top:Le,right:Ae,bottom:ct,left:ye}=(bt=>{const ge=window.getComputedStyle(bt);return{top:parseFloat(ge.scrollMarginTop)||0,right:parseFloat(ge.scrollMarginRight)||0,bottom:parseFloat(ge.scrollMarginBottom)||0,left:parseFloat(ge.scrollMarginLeft)||0}})(Ie);let ce=Te==="start"||Te==="nearest"?Ke-Le:Te==="end"?se+ct:Ke+St/2-Le+ct,Ue=_e==="center"?qe+Me/2-ye+Ae:_e==="end"?ze+Ae:qe-ye;const It=[];for(let bt=0;bt<it.length;bt++){const ge=it[bt],{height:He,width:Ge,top:Tt,right:wt,bottom:Lt,left:$e}=ge.getBoundingClientRect();if(Ce==="if-needed"&&Ke>=0&&qe>=0&&se<=kt&&ze<=Fe&&(ge===ht&&!xe(ge)||Ke>=Tt&&se<=Lt&&qe>=$e&&ze<=wt))return It;const At=getComputedStyle(ge),st=parseInt(At.borderLeftWidth,10),ae=parseInt(At.borderTopWidth,10),te=parseInt(At.borderRightWidth,10),ee=parseInt(At.borderBottomWidth,10);let oe=0,ue=0;const re="offsetWidth"in ge?ge.offsetWidth-ge.clientWidth-st-te:0,ve="offsetHeight"in ge?ge.offsetHeight-ge.clientHeight-ae-ee:0,we="offsetWidth"in ge?ge.offsetWidth===0?0:Ge/ge.offsetWidth:0,ft="offsetHeight"in ge?ge.offsetHeight===0?0:He/ge.offsetHeight:0;if(ht===ge)oe=Te==="start"?ce:Te==="end"?ce-kt:Te==="nearest"?tt(et,et+kt,kt,ae,ee,et+ce,et+ce+St,St):ce-kt/2,ue=_e==="start"?Ue:_e==="center"?Ue-Fe/2:_e==="end"?Ue-Fe:tt(lt,lt+Fe,Fe,st,te,lt+Ue,lt+Ue+Me,Me),oe=Math.max(0,oe+et),ue=Math.max(0,ue+lt);else{oe=Te==="start"?ce-Tt-ae:Te==="end"?ce-Lt+ee+ve:Te==="nearest"?tt(Tt,Lt,He,ae,ee+ve,ce,ce+St,St):ce-(Tt+He/2)+ve/2,ue=_e==="start"?Ue-$e-st:_e==="center"?Ue-($e+Ge/2)+re/2:_e==="end"?Ue-wt+te+re:tt($e,wt,Ge,st,te+re,Ue,Ue+Me,Me);const{scrollLeft:Oe,scrollTop:Ye}=ge;oe=ft===0?0:Math.max(0,Math.min(Ye+oe/ft,ge.scrollHeight-He/ft+ve)),ue=we===0?0:Math.max(0,Math.min(Oe+ue/we,ge.scrollWidth-Ge/we+re)),ce+=Ye-oe,Ue+=Oe-ue}It.push({el:ge,top:oe,left:ue})}return It},De=Ie=>Ie===!1?{block:"end",inline:"nearest"}:(he=>he===Object(he)&&Object.keys(he).length!==0)(Ie)?Ie:{block:"start",inline:"nearest"};function We(Ie,he){if(!Ie.isConnected||!(dt=>{let Ze=dt;for(;Ze&&Ze.parentNode;){if(Ze.parentNode===document)return!0;Ze=Ze.parentNode instanceof ShadowRoot?Ze.parentNode.host:Ze.parentNode}return!1})(Ie))return;const Je=(dt=>{const Ze=window.getComputedStyle(dt);return{top:parseFloat(Ze.scrollMarginTop)||0,right:parseFloat(Ze.scrollMarginRight)||0,bottom:parseFloat(Ze.scrollMarginBottom)||0,left:parseFloat(Ze.scrollMarginLeft)||0}})(Ie);if((dt=>typeof dt=="object"&&typeof dt.behavior=="function")(he))return he.behavior(Be(Ie,he));const Pe=typeof he=="boolean"||he==null?void 0:he.behavior;for(const{el:dt,top:Ze,left:Ce}of Be(Ie,De(he))){const Te=Ze-Je.top+Je.bottom,_e=Ce-Je.left+Je.right;dt.scroll({top:Te,left:_e,behavior:Pe})}}}}]);